gdb: pass inferior to check_pid_namespace_match
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
3f66685e
SM
12020-10-24 Simon Marchi <simon.marchi@efficios.com>
2
3 * linux-thread-db.c (check_pid_namespace_match): Add inferior
4 parameter and use it.
5 (thread_db_inferior_created): Pass inferior argument.
6
a0ff652f
SM
72020-10-24 Simon Marchi <simon.marchi@efficios.com>
8
9 * aix-thread.c (aix_thread_inferior_created): Add inferior
10 parameter.
11 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
12 * dummy-frame.c (cleanup_dummy_frames): Likewise.
13 * jit.c (jit_inferior_created): Likewise.
14 * linux-thread-db.c (thread_db_inferior_created): Likewise.
15 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
16 * observable.h (inferior_created): Likewise.
17 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
18 * symfile-mem.c (add_vsyscall_page): Likewise.
19 * infcmd.c (post_create_inferior): Pass inferior argument.
20
3c67532c
JB
212020-10-24 Joel Brobecker <brobecker@adacore.com>
22
23 GDB 10.1 released.
24
8747316e
JB
252020-10-23 Joel Brobecker <brobecker@adacore.com>
26
27 * ada-typeprint.c (ada_print_type): Remove superfluous second call
28 to ada_check_typedef.
29
1a0ea399
AB
302020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
31
32 * f-exp.y (f_parse): Rename to...
33 (f_language::parser): ...this.
34 * f-lang.c (f_get_encoding): Rename to...
35 (f_language::get_encoding): ...this.
36 (f_op_print_tab): Rename to...
37 (f_language::op_print_tab): ...this.
38 (exp_descriptor_f): Rename to...
39 (f_language::exp_descriptor_tab): ...this.
40 (class f_language): Moved to f-lang.h.
41 (f_language::language_arch_info): New function, moved out of class
42 declaration.
43 (f_language::search_name_hash): Likewise.
44 (f_language::lookup_symbol_nonlocal): Likewise.
45 (f_language::get_symbol_name_matcher_inner): Likewise.
46 * f-lang.h: Add 'valprint.h' include.
47 (class f_language): Moved here from f-lang.c.
48 * f-typeprint.c (f_type_print_args): Delete commented out
49 declaration.
50 (f_print_typedef): Rename to...
51 (f_language::print_typedef): ...this.
52 (f_print_type): Rename to...
53 (f_language::print_type): ...this.
54 (f_type_print_varspec_prefix): Delete declaration and rename to...
55 (f_language::f_type_print_varspec_prefix): ...this.
56 (f_type_print_varspec_suffix): Delete declaration and rename to...
57 (f_language::f_type_print_varspec_suffix): ...this.
58 (f_type_print_base): Delete declaration and rename to...
59 (f_language::f_type_print_base): ...this.
60 * f-valprint.c (f_value_print_inner): Rename to...
61 (f_language::value_print_inner): ...this.
62 * parse.c: Delete 'f-lang.h' include.
63
88cefd9b
AB
642020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
65
66 * language.h (language_defn::print_type): Add variable names in
67 declaration, and update header comment.
68
5399db93
AB
692020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
70
71 * ada-lang.c (ada_language::demangle): Rename to...
72 (ada_language::demangle_symbol): ...this.
73 * c-lang.c (cplus_language::demangle): Rename to...
74 (cplus_language::demangle_symbol): ...this.
75 * d-lang.c (d_language::demangle): Rename to...
76 (d_language::demangle_symbol): ...this.
77 * f-lang.c (f_language::demangle): Rename to...
78 (f_language::demangle_symbol): ...this.
79 * go-lang.c (go_language::demangle): Rename to...
80 (go_language::demangle_symbol): ...this.
81 * language.c (language_demangle): Update call to demangle_symbol.
82 (auto_or_unknown_language::demangle): Rename to...
83 (auto_or_unknown_language::demangle_symbol): ...this.
84 * language.h (language_defn::demangle): Rename to...
85 (language_defn::demangle_symbol): ...this.
86 * objc-lang.c (objc_language::demangle): Rename to...
87 (objc_language::demangle_symbol): ...this.
88 * rust-lang.c (rust_language::demangle): Rename to...
89 (rust_language::demangle_symbol): ...this.
90
4b2f86ef
AB
912020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
92
93 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
94 (iterate_over_file_blocks): Replace use of macro with the macros
95 definition.
96
e74b39de
AB
972020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
98
99 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
100 * valprint.c (maybe_print_array_index): Replace use of macro with
101 the macros definition.
102
00c696a6
AB
1032020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
104
105 * ada-lang.c (ada_language::print_array_index): Call value_print
106 directly.
107 * language.c (language_defn::print_array_index): Likewise.
108 * language.h (LA_VALUE_PRINT): Delete.
109 * valprint.c (value_print): Call value_print on the
110 current_language directly.
111
d3b67c56
AB
1122020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
113
114 * language.h (LA_PRINT_TYPEDEF): Delete.
115 * typeprint.c (typedef_print): Call print_typedef directly on the
116 current_language object.
117
790e2a12
AB
1182020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
119
120 * m2-exp.y (m2_parse): Rename to...
121 (m2_language::parser): ...this. Update function signature.
122 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
123 (m2_op_print): Rename to...
124 (m2_language::op_print_tab): ...this, and make const.
125 (exp_descriptor_modula2): Rename to...
126 (m2_language::exp_descriptor_modula2): ...this.
127 (class m2_language): Move to m2-lang.h.
128 (m2_language::language_arch_info): New function, moved out of
129 class declaration.
130 (m2_language::printchar): New function, body from m2_printchar.
131 (m2_language::printstr): New function, moved out of class
132 declaration.
133 (m2_language::emitchar): Likewise.
134 * m2-lang.h (m2_parse): Delete declaration.
135 (m2_print_typedef): Delete declaration.
136 (m2_value_print_inner): Delete declaration.
137 (class m2_language): Class declaration moved from m2-lang.c,
138 larger functions are left in m2-lang.c.
139 * m2-typeprint.c (m2_print_typedef): Rename to...
140 (m2_language::print_typedef): ...this, and update function
141 signature.
142 * m2-valprint.c (m2_value_print_inner): Rename to...
143 (m2_language::value_print_inner): ...this, replace use of
144 LA_PRINT_STRING with a direct call to printstr member function,
145 and update recursive call.
146
b01175fc
AB
1472020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
148
149 * language.c (default_is_string_type_p): Delete, implementation
150 moved into auto_or_unknown_language::is_string_type_p.
151 (unk_op_print_tab): Moved into
152 auto_or_unknown_language::opcode_print_table.
153 (unknown_language_arch_info): Delete, implementation moved into
154 auto_or_unknown_language::language_arch_info.
155 (class auto_or_unknown_language): New class, member functions
156 copied from unknown_language class, with some updates.
157 (class unknown_language): Most member functions moved into
158 auto_or_unknown_language class. Inherit from
159 auto_or_unknown_language class.
160 (class auto_language): Inherit from auto_or_unknown_language.
161 Delete most member functions.
162
1a97fe8c
HD
1632020-10-22 Hannes Domani <ssbssa@yahoo.de>
164
165 * stabsread.c (read_member_functions): Remove gdb_assert.
166
6b9d0dfd
HD
1672020-10-22 Hannes Domani <ssbssa@yahoo.de>
168
169 * gdbtypes.c (init_complex_type): Check target type name.
170
4b4bb603
SM
1712020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
172
173 * target-debug.h (target_debug_print_struct_target_ops_p):
174 Remove.
175 (target_debug_print_async_callback_ftype_p): Remove.
176 (target_debug_print_struct_trace_state_variable_p): Remove.
177 (target_debug_print_struct_traceframe_info_p): Remove.
178 (target_debug_print_VEC__btrace_block_s__pp): Remove.
179 (target_debug_print_enum_btrace_format): Remove.
180 (target_debug_print_enum_info_proc_what): Remove.
181 (target_debug_print_thread_info_pp): Remove.
182
24f5300a
SM
1832020-10-22 Simon Marchi <simon.marchi@efficios.com>
184
185 * target.h (struct target_ops) <make_corefile_notes>:
186 Change return type to unique pointer.
187 * target.c (dummy_make_corefile_notes): Likewise.
188 * exec.c (struct exec_target) <make_corefile_notes>:
189 Likewise.
190 (exec_target::make_corefile_notes): Likewise.
191 * procfs.c (class procfs_target) <make_corefile_notes>:
192 Likewise.
193 (procfs_do_thread_registers): Adjust to unique pointer.
194 (struct procfs_corefile_thread_data): Add constructor.
195 <note_data>: Change type to unique pointer.
196 (procfs_corefile_thread_callback): Adjust to unique pointer.
197 (procfs_target::make_corefile_notes): Change return type to
198 unique pointer.
199 * target-delegates.c: Re-generate.
200 * gcore.c (write_gcore_file_1): Adjust.
201 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
202 New.
203
5fb4027f
TV
2042020-10-22 Tom de Vries <tdevries@suse.de>
205
206 * block.c (find_block_in_blockvector): Make sure the returned block
207 contains pc.
208
4a636814
SM
2092020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
210
211 PR gdb/26693
212 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
213 parameter.
214 (load_cu): Pass existing CU.
215 (process_imported_unit_die): Likewise.
216 (follow_die_offset): Likewise.
217
1bd57575
LM
2182020-10-22 Luis Machado <luis.machado@linaro.org>
219
220 * corelow.c (core_target::xfer_partial): Also check for an empty
221 m_core_unavailable_mappings vector.
222
6b4c676c
AB
2232020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
224
225 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
226 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
227 * f-exp.y (arglist): Allow for a series of subranges.
228 (subrange): Add cases for subranges with strides.
229 * f-lang.c (value_f90_subarray): Catch use of array strides and
230 throw an error.
231 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
232
f2d8e4c5
AB
2332020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
234
235 * expprint.c (print_subexp_standard): Change enum range_type to
236 range_flag and rename variables to match.
237 (dump_subexp_body_standard): Likewise.
238 * expression.h (enum range_type): Rename to...
239 (enum range_flag): ...this.
240 (range_types): Rename to...
241 (range_flags): ...this.
242 * f-lang.c (value_f90_subarray): Change enum range_type to
243 range_flag and rename variables to match.
244 * parse.c (operator_length_standard): Likewise.
245 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
246 range_type to range_flag.
247 * rust-lang.c (rust_evaluate_funcall): Likewise.
248 (rust_range): Likewise.
249 (rust_compute_range): Likewise.
250 (rust_subscript): Likewise.
251
2f1b18db
AB
2522020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
253
254 * expprint.c (print_subexp_standard): Update to reflect changes to
255 enum range_type.
256 (dump_subexp_body_standard): Likewise.
257 * expression.h (enum range_type): Convert to a bit field enum, and
258 make the enum unsigned.
259 * f-exp.y (subrange): Update to reflect changes to enum
260 range_type.
261 * f-lang.c (value_f90_subarray): Likewise.
262 * parse.c (operator_length_standard): Likewise.
263 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
264 * rust-lang.c (rust_range): Likewise.
265 (rust_compute_range): Likewise.
266 (rust_subscript): Likewise.
267
a46d1843
SM
2682020-10-21 Simon Marchi <simon.marchi@efficios.com>
269
270 * infrun.c (displaced_step_in_progress_thread): Fix comment.
271 (displaced_step_in_progress): Fix comment.
272
c21f37a8
SM
2732020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
274
275 * gdbarch.sh (make_corefile_notes): Return unique pointer.
276 * gdbarch.c: Re-generate.
277 * gdbarch.h: Re-generate.
278 * gcore.c (write_gcore_file_1): Adjust.
279 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
280 constructor.
281 <note_data>: Change type to unique pointer.
282 <abort_iteration>: Change type to bool.
283 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
284 (fbsd_collect_thread_registers): Return void, adjust.
285 (struct fbsd_corefile_thread_data): Add construtor.
286 <note_data>: Change type to unique pointer.
287 (fbsd_corefile_thread): Adjust.
288 (fbsd_make_corefile_notes): Return unique pointer, adjust.
289 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
290 to unique pointer, adjust.
291 (struct linux_collect_regset_section_cb_data): Add constructor.
292 <note_data>: Change type to unique pointer.
293 <abort_iteration>: Change type to bool.
294 (linux_collect_thread_registers): Return void, adjust.
295 (struct linux_corefile_thread_data): Add constructor.
296 <note_data>: Change type to unique pointer.
297 (linux_corefile_thread): Adjust.
298 (linux_make_corefile_notes): Return unique pointer, adjust.
299
07fbbd01
SM
3002020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
301
302 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
303 * gdbarch.c: Re-generate.
304 * gdbarch.h: Re-generate.
305 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
306 bool.
307 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
308 Likewise.
309 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
310 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
311 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
312 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
313
39535193
SM
3142020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
315
316 * gdbarch.sh: Make generated predicates return bool.
317 * gdbarch.c: Re-generate.
318 * gdbarch.h: Re-generate.
319
ad523d01
TT
3202020-10-20 Tom Tromey <tom@tromey.com>
321
322 * varobj-iter.h (struct varobj_item): Remove typedef.
323
c4464ade
SM
3242020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
325
326 * infrun.c (currently_stepping): Change int to bool
327 (maybe_software_singlestep): Likewise.
328 (show_stop_on_solib_events): Likewise.
329 (stepping_past_nonsteppable_watchpoint): Likewise.
330 (displaced_step_in_progress_any_inferior): Likewise.
331 (displaced_step_in_progress_thread): Likewise.
332 (keep_going_stepped_thread): Likewise.
333 (thread_still_needs_step_over): Likewise.
334 (start_step_over): Likewise.
335 (do_target_resume): Likewise.
336 (resume_1): Likewise.
337 (clear_proceed_status): Likewise.
338 (thread_still_needs_step_over_bp): Likewise.
339 (proceed): Likewise.
340 (switch_back_to_stepped_thread): Likewise.
341 (adjust_pc_after_break): Likewise.
342 (stepped_in_from): Likewise.
343 (handle_stop_requested): Likewise.
344 (handle_syscall_event): Likewise.
345 (handle_no_resumed): Likewise.
346 (handle_inferior_event): Likewise.
347 (finish_step_over): Likewise.
348 (handle_signal_stop): Likewise.
349 (process_event_stop_test): Likewise.
350
2eb20436
SM
3512020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
352
353 * infrun.c (get_displaced_stepping_state): Fix comment.
354
e0c45ded
AS
3552020-10-20 Andreas Schwab <schwab@linux-m68k.org>
356
357 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
358
22cc388e
TT
3592020-10-19 Tom Tromey <tromey@adacore.com>
360
361 PR tui/26719
362 * tui/tui-winsource.h (struct tui_source_window_base)
363 <refresh_window>: Rename from refresh_pad.
364 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
365 Rename from refresh_pad.
366 (tui_source_window_base::show_source_content)
367 (tui_source_window_base::do_scroll_horizontal): Update.
368
3c6eb4d4
TBA
3692020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
370
371 * thread.c (_initialize_thread): Fine-tune the help text of
372 'info threads'.
373
26703721
TBA
3742020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
375
376 * frame.c: Remove the unused 'uinteger_option_def' type alias.
377
61c26be8
MS
3782020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
379
380 * breakpoint.c (handle_jit_event): Add an argument, change how
381 `jit_event_handler` is called.
382
932539d7
TT
3832020-10-17 Tom Tromey <tom@tromey.com>
384
385 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
386 (scan_xcoff_symtab): Update.
387 * psymtab.h (class psymtab_storage) <global_psymbols,
388 static_psymbols, current_global_psymbols,
389 current_static_psymbols>: Remove.
390 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
391 (match_partial_symbol, lookup_partial_symbol): Update.
392 (print_partial_symbols): Change parameters.
393 (dump_psymtab, recursively_search_psymtabs)
394 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
395 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
396 (concat): Remove.
397 (end_psymtab_common): Simplify.
398 (append_psymbol_to_list): Change parameters.
399 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
400 (init_psymbol_list): Simplify.
401 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
402 * psympriv.h (struct partial_symtab) <empty>: New method.
403 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
404 Remove.
405 <global_psymbols, static_psymbols>: New members.
406 <add_psymbol>: New methods.
407 (add_psymbol_to_list): Don't declare.
408 (psymbol_placement): Move earlier.
409 * mdebugread.c (parse_partial_symbols): Update.
410 (handle_psymbol_enumerators): Change parameters.
411 (mdebug_expand_psymtab): Update.
412 * dwarf2/read.c (process_psymtab_comp_unit_reader)
413 (add_partial_symbol): Update.
414 * dwarf2/index-write.c (write_psymbols): Change parameters.
415 (write_one_signatured_type): Update.
416 (recursively_count_psymbols): Update.
417 (recursively_write_psymbols): Update.
418 (class debug_names) <recursively_write_psymbols>: Update.
419 <write_psymbols>: Change parameters.
420 <write_one_signatured_type>: Update.
421 * dbxread.c (read_dbx_symtab): Update.
422 (dbx_end_psymtab): Use partial_symtab::empty.
423 * ctfread.c (struct ctf_context) <pst>: New member.
424 (create_partial_symtab): Set it.
425 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
426 (scan_partial_symbols): Use the psymtab's context. Update.
427
cfabbd35
TT
4282020-10-17 Tom Tromey <tom@tromey.com>
429
430 * valprint.c (generic_value_print): Remove comment.
431 * m2-valprint.c (m2_value_print_inner): Remove comment.
432 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
433 type.
434
520596f2
TV
4352020-10-17 Tom de Vries <tdevries@suse.de>
436
437 PR symtab/26317
438 * source.c (select_source_symtab): Handling sal.symtab == NULL for
439 symbol main.
440
76547ab3
TV
4412020-10-14 Tom de Vries <tdevries@suse.de>
442
443 PR gdb/26733
444 * solib.c (solib_contains_address_p): Handle
445 'solib->sections == nullptr'.
446
d3a07122
SM
4472020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
448
449 PR gdb/26642
450 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
451 target can't do async.
452 * target.c (target_wait): Assert that we don't pass
453 TARGET_WNOHANG to a target that can't async.
454
1b71cfcf
KR
4552020-10-13 Kamil Rytarowski <n54@gmx.com>
456
457 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
458 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
459 * alpha-bsd-nat.c: Adjust include.
460 * alpha-bsd-tdep.h: Adjust comment.
461 * alpha-nbsd-tdep.c: Rename to ...
462 * alpha-netbsd-tdep.c: ... this, adjust include.
463 * amd64-nbsd-nat.c: Rename to ...
464 * amd64-netbsd-nat.c: ... this, adjust include.
465 * amd64-nbsd-tdep.c: Rename to ...
466 * amd64-netbsd-tdep.c: ... this, adjust include.
467 * amd64-tdep.h: Adjust include.
468 * arm-nbsd-nat.c: Rename to ...
469 * arm-netbsd-nat.c: ... this, adjust include.
470 * arm-nbsd-tdep.c: Rename to ...
471 * arm-netbsd-tdep.c: ... this, adjust include.
472 * arm-nbsd-tdep.h: Rename to ...
473 * arm-netbsd-tdep.h: ... this, adjust include.
474 * configure.nat: Adjust file lists.
475 * configure.tgt: Likewise.
476 * hppa-nbsd-nat.c: Rename to ...
477 * hppa-netbsd-nat.c: ... this, adjust include.
478 * hppa-nbsd-tdep.c: Rename to ...
479 * hppa-netbsd-tdep.c: ... this, adjust include.
480 * i386-nbsd-nat.c: Rename to ...
481 * i386-netbsd-nat.c: ... this, adjust include.
482 * i386-nbsd-tdep.c: Rename to ...
483 * i386-netbsd-tdep.c: ... this, adjust include.
484 * m68k-bsd-nat.c: Adjust include.
485 * mips-nbsd-nat.c: Rename to ...
486 * mips-netbsd-nat.c: ... this, adjust include.
487 * mips-nbsd-tdep.c: Rename to ...
488 * mips-netbsd-tdep.c: ... this, adjust include.
489 * mips-nbsd-tdep.h: Rename to ...
490 * mips-netbsd-tdep.h: ... this.
491 * nbsd-nat.c: Rename to ...
492 * netbsd-nat.c: ... this, adjust include.
493 * nbsd-nat.h: Rename to ...
494 * netbsd-nat.h: ... this, adjust include.
495 * nbsd-tdep.c: Rename to ...
496 * netbsd-tdep.c: ... this, adjust include.
497 * nbsd-tdep.h: Rename to ...
498 * netbsd-tdep.h: ... this.
499 * ppc-nbsd-nat.c: Rename to ...
500 * ppc-netbsd-nat.c: ... this, adjust include.
501 * ppc-nbsd-tdep.c: Rename to ...
502 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
503 * ppc-nbsd-tdep.h: Rename to ...
504 * ppc-netbsd-tdep.h: ... this.
505 * sh-nbsd-nat.c: Rename to ...
506 * sh-netbsd-nat.c: ... this, adjust include.
507 * sh-nbsd-tdep.c: Rename to ...
508 * sh-netbsd-tdep.c: ... this, adjust include.
509 * sparc-nbsd-nat.c: Rename to ...
510 * sparc-netbsd-nat.c: ... this.
511 * sparc-nbsd-tdep.c: Rename to ...
512 * sparc-netbsd-tdep.c: ... this, adjust include.
513 * sparc64-nbsd-nat.c: Rename to ...
514 * sparc64-netbsd-nat.c: ... this.
515 * sparc64-nbsd-tdep.c: Rename to ...
516 * sparc64-netbsd-tdep.c: ... this, adjust include.
517 * sparc64-tdep.h: Adjust comment.
518 * vax-bsd-nat.c: Adjust include.
519 * vax-nbsd-tdep.c: Rename to ...
520 * vax-netbsd-tdep.c: ... this, adjust include.
521
d7a78e5c
TT
5222020-10-12 Tom Tromey <tom@tromey.com>
523
524 * target.h (struct target_ops) <get_section_table>: Update.
525 (target_get_section_table): Update.
526 * target.c (target_get_section_table, target_section_by_addr)
527 (memory_xfer_partial_1): Update.
528 * target-section.h (target_section_table): Now an alias.
529 * target-delegates.c: Rebuild.
530 * target-debug.h (target_debug_print_target_section_table_p):
531 Rename from target_debug_print_struct_target_section_table_p.
532 * symfile.c (build_section_addr_info_from_section_table): Update.
533 * solib.c (solib_map_sections, solib_contains_address_p): Update.
534 * solib-svr4.c (scan_dyntag): Update.
535 * solib-dsbt.c (scan_dyntag): Update.
536 * remote.c (remote_target::remote_xfer_live_readonly_partial):
537 Update.
538 * record-full.c (record_full_core_target::xfer_partial): Update.
539 * progspace.h (struct program_space) <target_sections>: Update.
540 * exec.h (print_section_info): Update.
541 * exec.c (exec_target::close, build_section_table)
542 (add_target_sections, add_target_sections_of_objfile)
543 (remove_target_sections, exec_on_vfork)
544 (section_table_available_memory)
545 (section_table_xfer_memory_partial)
546 (exec_target::get_section_table, exec_target::xfer_partial)
547 (print_section_info, set_section_command)
548 (exec_set_section_address, exec_target::has_memory): Update.
549 * corelow.c (core_target::build_file_mappings)
550 (core_target::xfer_partial, core_target::info_proc_mappings)
551 (core_target::info_proc_mappings): Update.
552 * bfd-target.c (class target_bfd): Update
553
eda214ce
TT
5542020-10-12 Tom Tromey <tom@tromey.com>
555
556 * progspace.c (program_space::~program_space): Don't call
557 clear_section_table.
558 * exec.h (clear_section_table): Don't declare.
559 * exec.c (exec_target::close): Update.
560 (clear_section_table): Remove.
561
91840ee3
TT
5622020-10-12 Tom Tromey <tom@tromey.com>
563
564 * exec.c (add_target_sections_of_objfile): Simplify.
565
2d128614
TT
5662020-10-12 Tom Tromey <tom@tromey.com>
567
568 * solib.c (solib_map_sections): Update.
569 * record-full.c (record_full_core_open_1): Update.
570 * exec.h (build_section_table): Return a target_section_table.
571 * exec.c (exec_file_attach): Update.
572 (build_section_table): Return a target_section_table.
573 * corelow.c (core_target::core_target): Update.
574 * bfd-target.c (target_bfd::target_bfd): Update.
575
bb2a6777
TT
5762020-10-12 Tom Tromey <tom@tromey.com>
577
578 * target.c (target_section_by_addr, memory_xfer_partial_1):
579 Update.
580 * target-section.h (struct target_section_table): Use
581 std::vector.
582 * symfile.h (build_section_addr_info_from_section_table): Take a
583 target_section_table.
584 * symfile.c (build_section_addr_info_from_section_table): Take a
585 target_section_table.
586 * solist.h (struct so_list) <sections>: Change type.
587 <sections_end>: Remove.
588 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
589 (solib_contains_address_p): Update.
590 * solib-svr4.c (scan_dyntag): Update.
591 * solib-dsbt.c (scan_dyntag): Update.
592 * remote.c (remote_target::remote_xfer_live_readonly_partial):
593 Update.
594 * record-full.c (record_full_core_start, record_full_core_end):
595 Remove.
596 (record_full_core_sections): New global.
597 (record_full_core_open_1, record_full_core_target::xfer_partial):
598 Update.
599 * exec.h (build_section_table, section_table_xfer_memory_partial)
600 (add_target_sections): Take a target_section_table.
601 * exec.c (exec_file_attach, clear_section_table): Update.
602 (resize_section_table): Remove.
603 (build_section_table, add_target_sections): Take a
604 target_section_table.
605 (add_target_sections_of_objfile, remove_target_sections)
606 (exec_on_vfork): Update.
607 (section_table_available_memory): Take a target_section_table.
608 (section_table_read_available_memory): Update.
609 (section_table_xfer_memory_partial): Take a target_section_table.
610 (print_section_info, set_section_command)
611 (exec_set_section_address, exec_target::has_memory): Update.
612 * corelow.c (class core_target) <m_core_section_table,
613 m_core_file_mappings>: Remove braces.
614 <~core_target>: Remove.
615 (core_target::core_target): Update.
616 (core_target::~core_target): Remove.
617 (core_target::build_file_mappings)
618 (core_target::xfer_memory_via_mappings)
619 (core_target::xfer_partial, core_target::info_proc_mappings):
620 Update.
621 * bfd-target.c (target_bfd::xfer_partial): Update.
622 (target_bfd::target_bfd): Update.
623 (target_bfd::~target_bfd): Remove.
624
7b466b10
TT
6252020-10-12 Tom Tromey <tom@tromey.com>
626
627 * target.h (struct target_section, struct target_section_table):
628 Move to target-section.h.
629 * target-section.h: New file.
630
87a37e5e
PA
6312020-10-12 Pedro Alves <pedro@palves.net>
632
633 PR exp/26602
634 * valops.c (struct struct_field_searcher): New.
635 (update_search_result): Rename to ...
636 (struct_field_searcher::update_result): ... this. Simplify
637 prototype. Record all found fields.
638 (do_search_struct_field): Rename to ...
639 (struct_field_searcher::search): ... this. Simplify prototype.
640 Maintain stack of visited baseclass path. Call update_result for
641 fields too. Keep searching fields in baseclasses instead of
642 stopping at the first found field.
643 (search_struct_field): Use struct_field_searcher. When looking
644 for fields, report ambiguous access attempts.
645
9370fd51
AB
6462020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
647
648 * frame.c (inside_main_func): Check full symbols as well as
649 minimal symbols.
650
59c8a30b
JB
6512020-10-09 Joel Brobecker <brobecker@adacore.com>
652
653 * ada-lang.c (advance_wild_match): Rewrite the function's
654 description. Change the type of target0, t0 and t1 to char.
655
7c184d33
TT
6562020-10-09 Tom Tromey <tromey@adacore.com>
657
658 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
659
5c4258f4
TT
6602020-10-09 Tom Tromey <tromey@adacore.com>
661
662 * ada-lang.h (ada_encode): Return std::string.
663 * ada-lang.c (ada_encode_1): Return std::string.
664 (ada_encode): Likewise.
665 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
666 Update.
667 * ada-exp.y (block_lookup, write_var_or_type): Update.
668
3d87245c
HD
6692020-10-09 Hannes Domani <ssbssa@yahoo.de>
670
671 PR exp/26714
672 * printcmd.c (print_formatted): Handle void results as
673 unformatted prints.
674
bbb826f5
AB
6752020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
676
677 * arch/aarch32.c (aarch32_create_target_description): Release the
678 target_desc_up as late as possible.
679 * arch/aarch64.c (aarch64_create_target_description): Likewise.
680 * arch/amd64.c (amd64_create_target_description): Likewise.
681 * arch/arc.c (arc_create_target_description): Return a
682 target_desc_up, don't release it.
683 * arch/arc.h (arc_create_target_description): Update declaration.
684 (arc_lookup_target_description): Move target_desc_up into the
685 cache, and return a borrowed pointer.
686 * arch/arm.c (arm_create_target_description): Release the
687 target_desc_up as late as possible.
688 * arch/i386.c (i386_create_target_description): Likewise.
689 * arch/riscv.h (riscv_create_target_description): Update
690 declaration to match definition.
691 * arch/tic6x.c (tic6x_create_target_description): Release the
692 target_desc_up as late as possible.
693
361cb219
AB
6942020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
695
696 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
697 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
698
f5c4b229
JV
6992020-10-09 Jan Vrany <jan.vrany@labware.com>
700
701 * source.c (directory_command): Notify observers that "directories"
702 parameter has changed.
703
b2701685
TT
7042020-10-08 Tom Tromey <tom@tromey.com>
705
706 * cli/cli-cmds.c (print_disassembly): Style function name and
707 addresses. Add _() wrappers.
708
ada508b6
SV
7092020-10-08 Shahab Vahedi <shahab@synopsys.com>
710
711 * NEWS: Mention ARC support in GDBserver.
712
51a948fd
AB
7132020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
714
715 * arch/aarch32.c (aarch32_create_target_description): Release
716 unique_ptr returned from allocate_target_description.
717 * arch/aarch64.c (aarch64_create_target_description): Likewise.
718 * arch/amd64.c (amd64_create_target_description): Likewise.
719 * arch/arc.c (arc_create_target_description): Likewise.
720 * arch/arm.c (arm_create_target_description): Likewise.
721 * arch/i386.c (i386_create_target_description): Likewise.
722 * arch/riscv.c (riscv_create_target_description): Update return
723 type. Handle allocate_target_description returning a unique_ptr.
724 (riscv_lookup_target_description): Update to handle unique_ptr.
725 * arch/tic6x.c (tic6x_create_target_description): Release
726 unique_ptr returned from allocate_target_description.
727 * features/microblaze-with-stack-protect.c: Regenerate.
728 * features/microblaze.c: Regenerate.
729 * features/mips-dsp-linux.c: Regenerate.
730 * features/mips-linux.c: Regenerate.
731 * features/mips64-dsp-linux.c: Regenerate.
732 * features/mips64-linux.c: Regenerate.
733 * features/nds32.c: Regenerate.
734 * features/nios2.c: Regenerate.
735 * features/or1k.c: Regenerate.
736 * features/rs6000/powerpc-32.c: Regenerate.
737 * features/rs6000/powerpc-32l.c: Regenerate.
738 * features/rs6000/powerpc-403.c: Regenerate.
739 * features/rs6000/powerpc-403gc.c: Regenerate.
740 * features/rs6000/powerpc-405.c: Regenerate.
741 * features/rs6000/powerpc-505.c: Regenerate.
742 * features/rs6000/powerpc-601.c: Regenerate.
743 * features/rs6000/powerpc-602.c: Regenerate.
744 * features/rs6000/powerpc-603.c: Regenerate.
745 * features/rs6000/powerpc-604.c: Regenerate.
746 * features/rs6000/powerpc-64.c: Regenerate.
747 * features/rs6000/powerpc-64l.c: Regenerate.
748 * features/rs6000/powerpc-7400.c: Regenerate.
749 * features/rs6000/powerpc-750.c: Regenerate.
750 * features/rs6000/powerpc-860.c: Regenerate.
751 * features/rs6000/powerpc-altivec32.c: Regenerate.
752 * features/rs6000/powerpc-altivec32l.c: Regenerate.
753 * features/rs6000/powerpc-altivec64.c: Regenerate.
754 * features/rs6000/powerpc-altivec64l.c: Regenerate.
755 * features/rs6000/powerpc-e500.c: Regenerate.
756 * features/rs6000/powerpc-e500l.c: Regenerate.
757 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
758 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
759 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
760 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
761 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
762 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
763 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
764 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
765 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
766 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
767 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
768 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
769 * features/rs6000/powerpc-vsx32.c: Regenerate.
770 * features/rs6000/powerpc-vsx32l.c: Regenerate.
771 * features/rs6000/powerpc-vsx64.c: Regenerate.
772 * features/rs6000/powerpc-vsx64l.c: Regenerate.
773 * features/rs6000/rs6000.c: Regenerate.
774 * features/rx.c: Regenerate.
775 * features/s390-gs-linux64.c: Regenerate.
776 * features/s390-linux32.c: Regenerate.
777 * features/s390-linux32v1.c: Regenerate.
778 * features/s390-linux32v2.c: Regenerate.
779 * features/s390-linux64.c: Regenerate.
780 * features/s390-linux64v1.c: Regenerate.
781 * features/s390-linux64v2.c: Regenerate.
782 * features/s390-te-linux64.c: Regenerate.
783 * features/s390-tevx-linux64.c: Regenerate.
784 * features/s390-vx-linux64.c: Regenerate.
785 * features/s390x-gs-linux64.c: Regenerate.
786 * features/s390x-linux64.c: Regenerate.
787 * features/s390x-linux64v1.c: Regenerate.
788 * features/s390x-linux64v2.c: Regenerate.
789 * features/s390x-te-linux64.c: Regenerate.
790 * features/s390x-tevx-linux64.c: Regenerate.
791 * features/s390x-vx-linux64.c: Regenerate.
792 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
793 from allocate_target_description.
794 * target-descriptions.c (allocate_target_description): Update
795 return type.
796 (print_c_tdesc::visit_pre): Release unique_ptr returned from
797 allocate_target_description.
798
485c47e5
TT
7992020-10-07 Tom Tromey <tromey@adacore.com>
800
801 * unittests/search-memory-selftests.c: New file.
802 * Makefile.in (SELFTESTS_SRCS): Add
803 unittests/search-memory-selftests.c.
804
3a135a91
TT
8052020-10-07 Tom Tromey <tromey@adacore.com>
806
807 PR gdb/16930:
808 * findcmd.c (_initialize_mem_search): Mention that the range is
809 inclusive.
810
4a72de73
TT
8112020-10-07 Tom Tromey <tromey@adacore.com>
812
813 * target.h (simple_search_memory): Don't declare.
814 * target.c (simple_search_memory): Move to gdbsupport.
815 (default_search_memory): Update.
816 * remote.c (remote_target::search_memory): Update.
817
a038ffd8
SM
8182020-10-07 Simon Marchi <simon.marchi@efficios.com>
819
820 * Makefile.in (COMPILE): Add CXXFLAGS.
821 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
822 (check-headers): Add CXXFLAGS.
823
cc463201
AK
8242020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
825
826 * arc-linux-tdep.h: New file.
827 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
828 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
829 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
830 arc_linux_gregset, arc_linux_v2_regset,
831 arc_linux_iterate_over_regset_sections,
832 arc_linux_core_read_description): Implement.
833 (arc_linux_init_osabi): Set iterate_over_regset_sections.
834 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
835 (arc_gdbarch_features_create): Add.
836 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
837
e4bd363f
SV
8382020-10-07 Shahab Vahedi <shahab@synopsys.com>
839
840 * arch/arc.h: Rename "arc_gdbarch_features" to
841 "arc_arch_features".
842 * arc-tdep.h: Likewise.
843 * arc-tdep.c: Likewise.
844
b68bef99
TBA
8452020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
846
847 * infcmd.c (attach_command): Remove the redundant call to
848 `clear_proceed_status`.
849
4641551a
KR
8502020-10-07 Kamil Rytarowski <n54@gmx.com>
851
852 * nat/netbsd-nat.c (write_memory, read_memory): Update.
853
91e5e8db
KR
8542020-10-07 Kamil Rytarowski <n54@gmx.com>
855
856 * nat/netbsd-nat.c (write_memory, read_memory): Add.
857 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
858 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
859
64c03bdb
SM
8602020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
861
862 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
863 (_initialize_break_catch_sig): Don't allocate array.
864
31a8f60f
AB
8652020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
866
867 * symtab.c (find_pc_line): Return unmapped addresses when the
868 requested address is also unmapped.
869
9e6dbd8b
SM
8702020-10-05 Simon Marchi <simon.marchi@efficios.com>
871
872 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
873 tui/tui-out.h.
874
a1d217e8
SM
8752020-10-05 Simon Marchi <simon.marchi@efficios.com>
876
877 * amd64-windows-tdep.c (amd64_windows_return_value): Use
878 type::is_vector instead of TYPE_VECTOR.
879
7d144117
SM
8802020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
881
882 * auto-load.c (auto_load_objfile_script_1): Don't use
883 debugfile_holder as temporary variable when stripping drive
884 letter.
885
cd096ec8
HD
8862020-10-05 Hannes Domani <ssbssa@yahoo.de>
887
888 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
889 Add TYPE_CODE_COMPLEX.
890 (amd64_windows_return_value): Fix types returned via XMM0.
891
b58e7f72
AH
8922020-10-05 Alan Hayward <alan.hayward@arm.com>
893
894 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
895 AArch64/ARM maintainers.
896
8d378f27
SM
8972020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
898
899 * NEWS: Mention set/show debug event-loop.
900
d5519913
TT
9012020-10-02 Tom Tromey <tromey@adacore.com>
902
903 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
904 REG_EXTENDED.
905
18b67edc
SM
9062020-10-02 Simon Marchi <simon.marchi@efficios.com>
907
908 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
909 * procfs.c (procfs_inferior_created): Remove.
910 (_initialize_procfs): Don't register procfs_inferior_created.
911
6b01403b
SM
9122020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
913
914 * async-event.c (invoke_async_signal_handlers): Add debug
915 print.
916 (check_async_event_handlers): Likewise.
917 * event-top.c (show_debug_event_loop): New function.
918 (_initialize_event_top): Register "set debug event-loop"
919 setting.
920
ba988419
SM
9212020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
922
923 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
924 * debug.h: Remove.
925 * infrun.c: Include gdbsupport/common-debug.h.
926 * linux-nat.c: Likewise.
927
db20ebdf
SM
9282020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
929
930 * async-event.h (create_async_signal_handler): Add name
931 parameter.
932 (create_async_event_handler): Likewise.
933 * async-event.c (struct async_signal_handler) <name>: New field.
934 (struct async_event_handler) <name>: New field.
935 (create_async_signal_handler): Assign name.
936 (create_async_event_handler): Assign name.
937 * event-top.c (async_init_signals): Pass name when creating
938 handler.
939 * infrun.c (_initialize_infrun): Likewise.
940 * record-btrace.c (record_btrace_push_target): Likewise.
941 * record-full.c (record_full_open): Likewise.
942 * remote-notif.c (remote_notif_state_allocate): Likewise.
943 * remote.c (remote_target::open_1): Likewise.
944 * tui/tui-win.c (tui_initialize_win): Likewise.
945
2554f6f5
SM
9462020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
947
948 * async-event.c (initialize_async_signal_handlers): Pass name to
949 add_file_handler
950 * event-top.c (ui_register_input_event_handler): Likewise.
951 * linux-nat.c (linux_nat_target::async): Likewise.
952 * run-on-main-thread.c (_initialize_run_on_main_thread):
953 Likewise
954 * ser-base.c (reschedule): Likewise.
955 (ser_base_async): Likewise.
956 * tui/tui-io.c: Likewise.
957 * top.h (struct ui) <num>: New field.
958 * top.c (highest_ui_num): New variable.
959 (ui::ui): Initialize num.
960
a7aba266
SM
9612020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
962
963 * observable.h <inferior_created>: Remove parameters. Update all
964 listeners.
965 * inferior.h (post_create_inferior): Remove target parameter.
966 Update all callers.
967
048fde1e 9682020-10-02 Nitika Achra <Nitika.Achra@amd.com>
969
970 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
971 and DW_MACRO_undef_strx.
972 (dwarf_decode_macros): Likewise
973 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
974 which is the value of DW_AT_str_offsets_base.
975 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
976 str_offsets_base.
977
064280be
KR
9782020-10-01 Kamil Rytarowski <n54@gmx.com>
979
980 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
981
6ff33035
KR
9822020-10-01 Kamil Rytarowski <n54@gmx.com>
983
984 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
985 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
986
1eb6eb79
KR
9872020-10-01 Kamil Rytarowski <n54@gmx.com>
988
989 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
990
95eb9e54
TV
9912020-09-30 Tom de Vries <tdevries@suse.de>
992
993 PR symtab/26683
994 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
995
cae21f8e
TT
9962020-09-30 Tom Tromey <tromey@adacore.com>
997
998 * dwarf2/read.c (handle_variant): Use constant_value.
999
529908cb
TT
10002020-09-29 Tom Tromey <tom@tromey.com>
1001
1002 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
1003 (read_file_scope, dwarf2_get_pc_bounds)
1004 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
1005 (read_structure_type, handle_struct_member_die)
1006 (read_enumeration_type, read_array_type, read_set_type)
1007 (read_tag_pointer_type, read_tag_reference_type)
1008 (read_subroutine_type, read_base_type, read_subrange_type)
1009 (read_full_die_1, partial_die_info::read)
1010 (partial_die_info::read, by, new_symbol)
1011 (dwarf2_const_value_data, dwarf2_const_value_attr)
1012 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1013 (prepare_one_comp_unit): Update.
1014 * dwarf2/attribute.h (DW_UNSND): Remove.
1015
c45bc3f8
TT
10162020-09-29 Tom Tromey <tom@tromey.com>
1017
1018 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1019 (read_subroutine_type, partial_die_info::read)
1020 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1021 (dwarf2_add_member_fn): Update.
1022 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1023 * dwarf2/attribute.c (attribute::as_boolean): New method.
1024
23dca5c3
TT
10252020-09-29 Tom Tromey <tom@tromey.com>
1026
1027 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1028 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1029 method.
1030 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1031
52c14d11
TT
10322020-09-29 Tom Tromey <tom@tromey.com>
1033
1034 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1035 the attribute's form.
1036
e8e5c158
TT
10372020-09-29 Tom Tromey <tom@tromey.com>
1038
1039 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1040 (dwarf2_add_member_fn): Update.
1041 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1042 * dwarf2/attribute.c (attribute::defaulted): New method, from
1043 is_valid_DW_AT_defaulted.
1044
d4df075e
TT
10452020-09-29 Tom Tromey <tom@tromey.com>
1046
1047 * dwarf2/read.c (dw2_get_file_names_reader)
1048 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1049 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1050 (dwarf2_symbol_mark_computed): Use as_unsigned.
1051 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1052 method.
1053 <form_is_section_offset>: Update comment.
1054
bf23a268
TT
10552020-09-29 Tom Tromey <tom@tromey.com>
1056
1057 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1058 dwarf2_default_access_attribute. Look up attribute.
1059 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1060 Update.
1061
7a5f294d
TT
10622020-09-29 Tom Tromey <tom@tromey.com>
1063
1064 * dwarf2/read.c (skip_one_die): Update.
1065 (read_full_die_1): Change how reprocessing is done.
1066 (partial_die_info::read): Update.
1067 (read_attribute_value): Remove need_reprocess parameter.
1068 (read_attribute): Likewise.
1069 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1070 New method.
1071
36d378cf
TT
10722020-09-29 Tom Tromey <tom@tromey.com>
1073
1074 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1075 (dwarf2_const_value_attr, dump_die_shallow)
1076 (dwarf2_fetch_constant_bytes): Update.
1077 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1078 comment.
1079 <set_address>: New method.
1080 (DW_ADDR): Remove.
1081 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1082 (attribute::as_string, attribute::as_address): Add assert.
1083
fe56917a
TT
10842020-09-29 Tom Tromey <tom@tromey.com>
1085
1086 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1087 (read_attribute_reprocess, read_attribute_value): Update.
1088 (read_attribute): Clear requires_reprocessing.
1089 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1090 form_requires_reprocessing>: New methods.
1091 <string_init>: Clear requires_reprocessing.
1092 <set_unsigned_reprocess>: New method.
1093 <name>: Shrink by one bit.
1094 <requires_reprocessing>: New member.
1095 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1096 method.
1097
414ad644
TT
10982020-09-29 Tom Tromey <tom@tromey.com>
1099
1100 * dwarf2/read.c (read_attribute_value): Update.
1101 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1102 set_unsigned>: New methods.
1103 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1104
1bc397c5
TT
11052020-09-29 Tom Tromey <tom@tromey.com>
1106
1107 * dwarf2/read.c (get_alignment, read_array_order)
1108 (read_attribute_value, dwarf2_const_value_attr)
1109 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1110 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1111 New methods.
1112 (DW_SND): Remove.
1113
630ed6b9
TT
11142020-09-29 Tom Tromey <tom@tromey.com>
1115
1116 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1117 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1118 Update.
1119 * dwarf2/attribute.h (struct attribute) <as_signature,
1120 set_signature>: New methods.
1121 (DW_SIGNATURE): Remove.
1122
9d2246fc
TT
11232020-09-29 Tom Tromey <tom@tromey.com>
1124
1125 * dwarf2/read.c (read_call_site_scope)
1126 (handle_data_member_location, dwarf2_add_member_fn)
1127 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1128 (partial_die_info::read, read_attribute_value)
1129 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1130 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1131 (dwarf2_symbol_mark_computed): Update.
1132 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1133 methods.
1134 (DW_BLOCK): Remove.
1135 * dwarf2/attribute.c (attribute::form_is_block): Add
1136 DW_FORM_data16.
1137
c6481205
TT
11382020-09-29 Tom Tromey <tom@tromey.com>
1139
1140 * dwarf2/read.c (read_cutu_die_from_dwo)
1141 (read_attribute_reprocess, read_attribute_value, read_attribute)
1142 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1143 (dwarf2_fetch_constant_bytes): Update.
1144 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1145 <set_string_noncanonical, set_string_canonical>: New methods.
1146 <string_is_canonical>: Update comment.
1147 <canonical_string_p>: Add assert.
1148 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1149 * dwarf2/attribute.c (attribute::form_is_string): New method.
1150 (attribute::string): Use it.
1151
3b64bf15
TT
11522020-09-29 Tom Tromey <tom@tromey.com>
1153
1154 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1155 (dump_die_shallow): Use canonical_string_p.
1156 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1157 method.
1158
2c830f54
TT
11592020-09-29 Tom Tromey <tom@tromey.com>
1160
1161 * dwarf2/read.c (partial_die_info::read)
1162 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1163 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1164 attribute::as_string.
1165
6c412691
TT
11662020-09-29 Tom Tromey <tom@tromey.com>
1167
1168 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1169 DW_ADDR.
1170 (attribute::string): Don't use DW_STRING.
1171 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1172 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1173
95f982e5
TT
11742020-09-29 Tom Tromey <tom@tromey.com>
1175
1176 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1177 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1178 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1179 * dwarf2/attribute.h (struct attribute): Rename methods.
1180 * dwarf2/attribute.c (attribute::as_address): Rename from
1181 value_as_address.
1182 (attribute::as_string): Rename from value_as_string.
1183
f800b00e
TT
11842020-09-29 Tom Tromey <tom@tromey.com>
1185
1186 * dwarf2/read.c (partial_die_info::read) <case
1187 DW_AT_linkage_name>: Use value_as_string.
1188 (dwarf2_string_attr): Use value_as_string.
1189 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1190 method.
1191 * dwarf2/attribute.c (attribute::value_as_string): New method.
1192
de38d64a
PA
11932020-09-29 Pedro Alves <pedro@palves.net>
1194
1195 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1196 defined before using '#pragma GCC diagnostic' instead of checking
1197 __clang__.
1198
9aed480c
TT
11992020-09-28 Tom Tromey <tom@tromey.com>
1200
1201 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1202 (handle_signal_stop): Update.
1203 * procfs.c (procfs_target::insert_watchpoint): Update.
1204 * target.h (target_have_steppable_watchpoint): Now a function.
1205
8a3ecb79
TT
12062020-09-28 Tom Tromey <tom@tromey.com>
1207
1208 * infrun.c (set_schedlock_func): Update.
1209 * target.h (target_can_lock_scheduler): Now a function.
1210
55f6301a
TT
12112020-09-28 Tom Tromey <tom@tromey.com>
1212
1213 * inferior.h (class inferior) <has_execution>: Update.
1214 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1215 * valops.c (find_function_in_inferior)
1216 (value_allocate_space_in_inferior): Update.
1217 * top.c (kill_or_detach): Update.
1218 * target.c (target_preopen, set_target_permissions): Update.
1219 (target_has_execution_current): Remove.
1220 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1221 Update.
1222 * solib.c (update_solib_list, reload_shared_libraries): Update.
1223 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1224 * solib-dsbt.c (enable_break): Update.
1225 * score-tdep.c (score7_fetch_inst): Update.
1226 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1227 Update.
1228 * remote.c (remote_target::start_remote)
1229 (remote_target::remote_check_symbols, remote_target::open_1)
1230 (remote_target::remote_detach_1, remote_target::verify_memory)
1231 (remote_target::xfer_partial, remote_target::read_description)
1232 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1233 * record-full.c (record_full_open_1): Update.
1234 * record-btrace.c (record_btrace_target_open): Update.
1235 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1236 (value_nsstring): Update.
1237 * linux-thread-db.c (add_thread_db_info)
1238 (thread_db_find_new_threads_silently, check_thread_db_callback)
1239 (try_thread_db_load_1, record_thread): Update.
1240 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1241 Update.
1242 * linux-fork.c (checkpoint_command): Update.
1243 * infrun.c (set_non_stop, set_observer_mode)
1244 (check_multi_target_resumption, for_each_just_stopped_thread)
1245 (maybe_remove_breakpoints, normal_stop)
1246 (class infcall_suspend_state): Update.
1247 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1248 (info_program_command, attach_command): Update.
1249 * infcall.c (call_function_by_hand_dummy): Update.
1250 * inf-loop.c (inferior_event_handler): Update.
1251 * gcore.c (gcore_command, derive_heap_segment): Update.
1252 * exec.c (exec_file_command): Update.
1253 * eval.c (evaluate_subexp): Update.
1254 * compile/compile.c (compile_to_object): Update.
1255 * cli/cli-dump.c (restore_command): Update.
1256 * breakpoint.c (update_watchpoint)
1257 (update_inserted_breakpoint_locations)
1258 (insert_breakpoint_locations, get_bpstat_thread): Update.
1259 * target.h (target_has_execution): Remove macro.
1260 (target_has_execution_current): Don't declare.
1261 (target_has_execution): Rename from target_has_execution_1. Add
1262 argument default.
1263
05374cfd
TT
12642020-09-28 Tom Tromey <tom@tromey.com>
1265
1266 * mi/mi-main.c (exec_reverse_continue)
1267 (mi_cmd_list_target_features): Update.
1268 * infrun.c (set_exec_direction_func): Update.
1269 * target.c (default_execution_direction): Update.
1270 * reverse.c (exec_reverse_once): Update.
1271 * target.h (target_can_execute_reverse): Now a function.
1272
9dccd06e
TT
12732020-09-28 Tom Tromey <tom@tromey.com>
1274
1275 * tui/tui-regs.c (tui_get_register)
1276 (tui_data_window::show_registers): Update.
1277 * thread.c (scoped_restore_current_thread::restore)
1278 (scoped_restore_current_thread::scoped_restore_current_thread):
1279 Update.
1280 * regcache-dump.c (regcache_print): Update.
1281 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1282 Update.
1283 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1284 * mep-tdep.c (current_me_module, current_options): Update.
1285 * linux-thread-db.c (thread_db_load): Update.
1286 * infcmd.c (registers_info, info_vector_command)
1287 (info_float_command): Update.
1288 * ia64-tdep.c (ia64_frame_prev_register)
1289 (ia64_sigtramp_frame_prev_register): Update.
1290 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1291 * gcore.c (derive_stack_segment): Update.
1292 * frame.c (get_current_frame, has_stack_frames): Update.
1293 * findvar.c (language_defn::read_var_value): Update.
1294 * arm-tdep.c (arm_pc_is_thumb): Update.
1295 * target.c (target_has_registers): Rename from
1296 target_has_registers_1.
1297 * target.h (target_has_registers): Remove macro.
1298 (target_has_registers): Rename from target_has_registers_1.
1299
841de120
TT
13002020-09-28 Tom Tromey <tom@tromey.com>
1301
1302 * windows-tdep.c (tlb_make_value): Update.
1303 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1304 * thread.c (scoped_restore_current_thread::restore)
1305 (scoped_restore_current_thread::scoped_restore_current_thread)
1306 (thread_command): Update.
1307 * stack.c (backtrace_command_1, frame_apply_level_command)
1308 (frame_apply_all_command, frame_apply_command): Update.
1309 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1310 Update.
1311 * gcore.c (derive_stack_segment): Update.
1312 * frame.c (get_current_frame, has_stack_frames): Update.
1313 * auxv.c (info_auxv_command): Update.
1314 * ada-tasks.c (ada_build_task_list): Update.
1315 * target.c (target_has_stack): Rename from target_has_stack_1.
1316 * target.h (target_has_stack): Remove macro.
1317 (target_has_stack): Rename from target_has_stack_1.
1318
a739972c
TT
13192020-09-28 Tom Tromey <tom@tromey.com>
1320
1321 * target.c (target_has_memory): Rename from target_has_memory_1.
1322 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1323 * thread.c (scoped_restore_current_thread::restore)
1324 (scoped_restore_current_thread::scoped_restore_current_thread):
1325 Update.
1326 * frame.c (get_current_frame, has_stack_frames): Update.
1327 * target.h (target_has_memory): Remove macro.
1328 (target_has_memory): Rename from target_has_memory_1.
1329
5b8a4776
TT
13302020-09-28 Tom Tromey <tom@tromey.com>
1331
1332 * target.c (target_has_all_memory_1): Remove.
1333 * target.h (target_has_all_memory): Remove define.
1334 (target_has_all_memory_1): Don't declare.
1335
bd356ec6
SM
13362020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1337
1338 * ser-base.c: Adjust comments formatting.
1339
2c72d5e5
TT
13402020-09-27 Tom Tromey <tom@tromey.com>
1341
1342 PR tui/25342:
1343 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1344
35a98237
TT
13452020-09-27 Tom Tromey <tom@tromey.com>
1346
1347 PR tui/25342:
1348 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1349
9e820dec
TT
13502020-09-27 Tom Tromey <tom@tromey.com>
1351
1352 * unittests/tui-selftests.c: Update.
1353 * tui/tui-winsource.h (struct tui_source_window_base)
1354 <extra_margin, show_line_number, refresh_pad>: New methods.
1355 <m_max_length, m_pad>: New members.
1356 (tui_copy_source_line): Update.
1357 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1358 first_col, line_width, ndigits parameters. Add length.
1359 (tui_source_window_base::show_source_line): Write to pad. Line
1360 number now 0-based.
1361 (tui_source_window_base::refresh_pad): New method.
1362 (tui_source_window_base::show_source_content): Write to pad. Call
1363 refresh_pad.
1364 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1365 not refill.
1366 (tui_source_window_base::update_exec_info): Call
1367 show_line_number.
1368 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1369 method.
1370 <m_digits>: New member.
1371 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1372 and m_max_length.
1373 (tui_source_window::show_line_number): New method.
1374 * tui/tui-io.h (tui_puts): Fix comment.
1375 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1376 m_max_length.
1377
c15c15c8
TT
13782020-09-27 Tom Tromey <tom@tromey.com>
1379
1380 * tui/tui-winsource.c
1381 (tui_source_window_base::set_is_exec_point_at): Don't call
1382 show_source_line.
1383
149830c1
TT
13842020-09-27 Tom Tromey <tom@tromey.com>
1385
1386 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1387 method.
1388 <erase>: Update.
1389 <cursor_x, cursor_y>: Remove.
1390 <m_inner_window>: New member.
1391 (tui_py_window::rerender): Create inner window.
1392 (tui_py_window::output): Write to inner window.
1393
8f9929bb
GR
13942020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1395
1396 PR python/26586
1397 * cli/cli-script.c (execute_control_commands): don't set
1398 instream to nullptr here as this breaks the from_tty argument
1399 to gdb.execute in Python.
1400 (execute_user_command): set instream to nullptr here instead.
1401
956bdb59
SM
14022020-09-25 Simon Marchi <simon.marchi@efficios.com>
1403
1404 * infrun.h (infrun_debug_printf): Fix formatting.
1405 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1406
3b93626b
SJ
14072020-09-25 Saagar Jha <saagar@saagarjha.com>
1408
1409 * compile/compile-object-load.h (struct munmap_list): Add
1410 explicitly-defined move constructor.
1411
b551a89f
TT
14122020-09-24 Tom Tromey <tromey@adacore.com>
1413
1414 PR tui/26638:
1415 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1416 method.
1417 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1418 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1419 (tui_prev_win): Rewrite.
1420
99bb393f
HD
14212020-09-23 Hannes Domani <ssbssa@yahoo.de>
1422
1423 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1424 in WOW64 processes as SIGINT.
1425 * nat/windows-nat.h: Make wow64_process a shared variable.
1426 * windows-nat.c: Remove static wow64_process variable.
1427
20a5fcbd
TT
14282020-09-23 Tom Tromey <tom@tromey.com>
1429
1430 PR symtab/25470:
1431 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1432 offset and bit size.
1433 * printcmd.c (print_scalar_formatted): Handle zero-length
1434 integer.
1435 (print_scalar_formatted): Use bit_size_differs_p.
1436 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1437 constant.
1438 (union type_specific): <int_stuff>: New member.
1439 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1440 methods.
1441 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1442 TYPE_SPECIFIC_FIELD.
1443 (recursive_dump_type, copy_type_recursive): Update.
1444 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1445 DW_AT_data_bit_offset.
1446
bac51ab7
TT
14472020-09-23 Tom Tromey <tom@tromey.com>
1448
1449 * utils.h (class gdb_argv): Add move operators.
1450 <append>: New methods.
1451 * compile/compile.c (build_argc_argv): Remove.
1452 (compile_args_argc): Remove.
1453 (compile_args_argv): Change type.
1454 (set_compile_args): Simplify.
1455 (append_args): Remove.
1456 (filter_args): Remove argcp parameter.
1457 (get_args): Return gdb_argv. Simplify.
1458 (compile_to_object): Update.
1459
92677124
TT
14602020-09-23 Tom Tromey <tom@tromey.com>
1461
1462 * compile/compile-object-run.c (do_module_cleanup)
1463 <~do_module_cleanup> :Remove.
1464 (do_module_cleanup): Update.
1465 * compile/compile-object-load.h (struct munmap_list): Add move
1466 assignment operator.
1467 <source_file>: Now a std::string.
1468 <munmap_list>: Rename. No longer a pointer.
1469 * compile/compile-object-load.c (struct setup_sections_data): Add
1470 constructor.
1471 <setup_one_section>: Declare.
1472 <munmap_list>: Move earlier.
1473 <m_bfd>: New member.
1474 <m_last_size, m_last_section_first, m_last_prot,
1475 m_last_max_alignment>: Rename, add initializers where needed.
1476 (setup_sections_data::setup_one_section): Rename from
1477 setup_sections. Update.
1478 (compile_object_load): Update. Don't use bfd_map_over_sections.
1479
e616f60a
TT
14802020-09-23 Tom Tromey <tom@tromey.com>
1481
1482 * compile/compile-object-run.c (struct do_module_cleanup): Add
1483 parameters to constructor. Update destructor.
1484 <source_file, scope, scope_data, out_value_type, out_value_addr,
1485 munmap_list_head, objfile_name_string>: Remove.
1486 <module>: New member.
1487 (do_module_cleanup): Update.
1488 (compile_object_run): Update.
1489
e947a848
TT
14902020-09-23 Tom Tromey <tom@tromey.com>
1491
1492 * compile/compile.c (eval_compile_command): Update.
1493 * compile/compile-object-run.h (compile_object_run): Take a
1494 compile_module_up.
1495 * compile/compile-object-run.c (compile_object_run): Take a
1496 compile_module_up.
1497 * compile/compile-object-load.h (struct compile_module): Add
1498 constructor, destructor.
1499 (compile_module_up): New typedef.
1500 (compile_object_load): Return compile_object_up.
1501 * compile/compile-object-load.c (compile_object_load): Return
1502 compile_module_up.
1503
0dbf6ee6
TT
15042020-09-23 Tom Tromey <tom@tromey.com>
1505
1506 * compile/compile-object-run.c (struct do_module_cleanup): Add
1507 constructor, destructor.
1508 <objfile_name_string>: Don't use struct hack.
1509 (do_module_cleanup): Use delete.
1510 (compile_object_run): Use new.
1511
ebe824f5
TT
15122020-09-23 Tom Tromey <tom@tromey.com>
1513
1514 * compile/compile-cplus-types.c
1515 (compile_cplus_convert_struct_or_union): Use std::vector.
1516 (compile_cplus_convert_func): Likewise.
1517 * compile/compile-c-types.c (convert_func): Use std::vector.
1518
5dd918d9
TT
15192020-09-21 Tom Tromey <tromey@adacore.com>
1520
1521 * sparc-tdep.c (sparc32_skip_prologue): Use
1522 skip_prologue_using_sal.
1523
5486c517
TT
15242020-09-19 Tom Tromey <tom@tromey.com>
1525
1526 * symfile.c (add_section_size_callback): Remove.
1527 (load_one_section): Rename from load_section_callback. Change
1528 parameters.
1529 (generic_load): Use foreach.
1530
8a6bb1d1
TT
15312020-09-19 Tom Tromey <tom@tromey.com>
1532
1533 * exec.c (add_to_section_table): Remove.
1534 (build_section_table): Use foreach.
1535
08f93a1a
TT
15362020-09-19 Tom Tromey <tom@tromey.com>
1537
1538 * elfread.c (elf_locate_sections): Change parameters.
1539 (elf_symfile_read): Use foreach.
1540
03cd72b8
TT
15412020-09-19 Tom Tromey <tom@tromey.com>
1542
1543 * cli/cli-dump.c (struct callback_data): Remove.
1544 (restore_one_section): Rename from restore_section_callback.
1545 Change parameters.
1546 (restore_binary_file): Change parameters.
1547 (restore_command): Use foreach.
1548
f4f2b85f
TT
15492020-09-19 Tom Tromey <tom@tromey.com>
1550
1551 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1552 (gcore_copy_callback): Likewise.
1553 (gcore_memory_sections): Use foreach.
1554
b35c1d1c
TT
15552020-09-19 Tom Tromey <tom@tromey.com>
1556
1557 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1558 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1559 parameters.
1560 (generic_elf_osabi_sniffer): Use foreach.
1561 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1562 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1563
5bb6e9dd
TT
15642020-09-19 Tom Tromey <tom@tromey.com>
1565
1566 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1567 (dwarf2_get_dwz_file): Use foreach.
1568 (dwarf2_locate_dwo_sections): Change parameters.
1569 (open_and_init_dwo_file): Use foreach.
1570 (dwarf2_locate_common_dwp_sections): Change parameters.
1571 (open_and_init_dwp_file): Use foreach.
1572
ad7277da
TT
15732020-09-19 Tom Tromey <tom@tromey.com>
1574
1575 * symfile.h: (find_lowest_section): Don't declare.
1576 * symfile.c (find_lowest_section): Now static. Change
1577 parameters.
1578 (struct place_section_arg): Remove.
1579 (place_section): Change parameters.
1580 (addr_info_make_relative): Use foreach.
1581 (symfile_dummy_outputs): Remove.
1582 (default_symfile_relocate): Use foreach.
1583
cb814f2e
TT
15842020-09-19 Tom Tromey <tom@tromey.com>
1585
1586 * objfiles.c (add_to_objfile_sections): Rename from
1587 add_to_objfile_sections_full.
1588 (add_to_objfile_sections): Remove.
1589 (build_objfile_section_table): Use foreach.
1590
3cabfd26
TT
15912020-09-19 Tom Tromey <tom@tromey.com>
1592
1593 * stap-probe.c (get_stap_base_address_1): Remove.
1594 (get_stap_base_address): Use foreach.
1595
1ce51eb5
TT
15962020-09-19 Tom Tromey <tom@tromey.com>
1597
1598 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1599 parameters.
1600 (gdb_bfd_close_or_warn): Use foreach.
1601
a190fabb
TT
16022020-09-19 Tom Tromey <tom@tromey.com>
1603
1604 * corelow.c (add_to_thread_list): Change parameters.
1605 (core_target_open): Use foreach.
1606
cafb0d81
TT
16072020-09-19 Tom Tromey <tom@tromey.com>
1608
1609 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1610 existing function.
1611
c8d5abea
AB
16122020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1613
1614 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1615 for arrays.
1616
6d816919
AB
16172020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1618
1619 * eval.c: Remove 'f-lang.h' include.
1620 (value_f90_subarray): Moved to f-lang.c.
1621 (eval_call): Renamed to...
1622 (evaluate_subexp_do_call): ...this, is no longer static, header
1623 comment moved into header file.
1624 (evaluate_funcall): Update call to eval_call.
1625 (skip_undetermined_arglist): Moved to f-lang.c.
1626 (fortran_value_subarray): Likewise.
1627 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1628 moved to evaluate_subexp_f.
1629 (calc_f77_array_dims): Moved to f-lang.c
1630 * expprint.c (print_subexp_funcall): New function.
1631 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1632 moved to print_subexp_f, OP_FUNCALL uses new function.
1633 (dump_subexp_body_funcall): New function.
1634 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1635 moved to dump_subexp_f, OP_FUNCALL uses new function.
1636 * expression.h (evaluate_subexp_do_call): Declare.
1637 * f-lang.c (value_f90_subarray): Moved from eval.c.
1638 (skip_undetermined_arglist): Likewise.
1639 (calc_f77_array_dims): Likewise.
1640 (fortran_value_subarray): Likewise.
1641 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1642 (operator_length_f): Likewise.
1643 (print_subexp_f): Likewise.
1644 (dump_subexp_body_f): Likewise.
1645 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1646 declaration of this operation to here.
1647 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1648 support moved to operator_length_f.
1649 * parser-defs.h (dump_subexp_body_funcall): Declare.
1650 (print_subexp_funcall): Declare.
1651 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1652 fortran-operator.def.
1653
8c37706a
AB
16542020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1655
1656 * eval.c (fortran_value_subarray): New function, content is taken
1657 from...
1658 (evaluate_subexp_standard): ...here, in two places. Now arrays
1659 and strings both call the new function.
1660 (calc_f77_array_dims): Add header comment, handle strings.
1661
14f9473c
VC
16622020-09-18 Victor Collod <vcollod@nvidia.com>
1663
1664 PR gdb/26635
1665 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1666 (i386_analyze_prologue): Call i386_skip_endbr.
1667
b60cea74
TT
16682020-09-18 Tom Tromey <tromey@adacore.com>
1669
1670 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1671 (windows_nat_target::wait): Update.
1672 * target/wait.h (enum target_wait_flag): New. Use
1673 DEF_ENUM_FLAGS_TYPE.
1674 * target/target.h (target_wait): Change type of options.
1675 * target.h (target_options_to_string, default_target_wait):
1676 Update.
1677 (struct target_ops) <wait>: Change type of options.
1678 * target.c (target_wait, default_target_wait, do_option): Change
1679 type of "options".
1680 (target_options_to_string): Likewise.
1681 * target-delegates.c: Rebuild.
1682 * target-debug.h (target_debug_print_target_wait_flags): Rename
1683 from target_debug_print_options.
1684 * sol-thread.c (class sol_thread_target) <wait>: Update.
1685 (sol_thread_target::wait): Update.
1686 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1687 (rs6000_nat_target::wait): Update.
1688 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1689 Update.
1690 (remote_target::wait_ns, remote_target::wait_as): Change type of
1691 "options".
1692 (remote_target::wait): Update.
1693 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1694 (gdbsim_target::wait): Update.
1695 * record-full.c (class record_full_base_target) <wait>: Update.
1696 (record_full_wait_1): Change type of "options".
1697 (record_full_base_target::wait): Update.
1698 * record-btrace.c (class record_btrace_target) <wait>: Update.
1699 (record_btrace_target::wait): Update.
1700 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1701 Update.
1702 (ravenscar_thread_target::wait): Update.
1703 * procfs.c (class procfs_target) <wait>: Update.
1704 (procfs_target::wait): Update.
1705 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1706 * obsd-nat.c (obsd_nat_target::wait): Update.
1707 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1708 (nto_procfs_target::wait): Update.
1709 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1710 * nbsd-nat.c (nbsd_wait): Change type of "options".
1711 (nbsd_nat_target::wait): Update.
1712 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1713 (thread_db_target::wait): Update.
1714 * linux-nat.h (class linux_nat_target) <wait>: Update.
1715 * linux-nat.c (linux_nat_target::wait): Update.
1716 (linux_nat_wait_1): Update.
1717 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1718 "options".
1719 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1720 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1721 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1722 (go32_nat_target::wait): Update.
1723 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1724 * gnu-nat.c (gnu_nat_target::wait): Update.
1725 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1726 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1727 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1728 * darwin-nat.c (darwin_nat_target::wait): Update.
1729 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1730 (bsd_uthread_target::wait): Update.
1731 * aix-thread.c (class aix_thread_target) <wait>: Update.
1732 (aix_thread_target::wait): Update.
1733
0295dde6
AB
17342020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1735
1736 * compile/compile-object-run.c (create_copied_type_recursive): New
1737 function.
1738 (compile_object_run): Use new function.
1739
d3483b43
JT
17402020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1741
1742 * NEWS: Mention x86_64 Cygwin core file support.
1743
e7d612ad
JT
17442020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1745
1746 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1747 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1748
aff9d387
JT
17492020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1750
62a5151b
JT
1751 * windows-tdep.h: Add prototypes.
1752 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1753 (i386_windows_core_pid_to_str): Move and rename ...
1754 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1755 (windows_core_pid_to_str): ... and here.
1756 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1757
17582020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
1759 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1760 (amd64_windows_init_abi_common): ... and register.
1761
7d155da3
JT
17622020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1763
1764 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1765 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1766
e8ef12b9
PA
17672020-09-18 Pedro Alves <pedro@palves.net>
1768
1769 PR gdb/26631
1770 * thread.c (thread_find_command): Switch inferior before calling
1771 target methods.
1772
c1e1314d
TT
17732020-09-17 Tom Tromey <tromey@adacore.com>
1774
1775 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1776 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1777 (tdesc_arch_data_up): New typedef.
1778 (tdesc_use_registers, tdesc_data_alloc): Update.
1779 (tdesc_data_cleanup): Don't declare.
1780 * target-descriptions.c (tdesc_data_alloc): Return a
1781 tdesc_arch_data_up.
1782 (tdesc_arch_data_deleter::operator()): Rename from
1783 tdesc_data_cleanup. Change argument type.
1784 (tdesc_use_registers): Change early_data to an rvalue reference.
1785 (tdesc_use_registers): Don't use delete.
1786 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1787 * s390-tdep.c (s390_gdbarch_init): Update.
1788 * rx-tdep.c (rx_gdbarch_init): Update.
1789 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1790 * riscv-tdep.c (riscv_gdbarch_init): Update.
1791 * or1k-tdep.c (or1k_gdbarch_init): Update.
1792 * nios2-tdep.c (nios2_gdbarch_init): Update.
1793 * nds32-tdep.c (nds32_gdbarch_init): Update.
1794 * mips-tdep.c (mips_gdbarch_init): Update.
1795 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1796 * m68k-tdep.c (m68k_gdbarch_init): Update.
1797 * i386-tdep.c (i386_gdbarch_init): Update.
1798 * arm-tdep.c (arm_gdbarch_init): Update.
1799 * arc-tdep.c (arc_tdesc_init): Update.
1800 (arc_gdbarch_init): Update.
1801 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1802
0363df3d
HD
18032020-09-17 Hannes Domani <ssbssa@yahoo.de>
1804
1805 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1806 for WOW64 processes.
1807
280a9412
TT
18082020-09-17 Tom Tromey <tom@tromey.com>
1809
1810 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1811
6108fd18
TT
18122020-09-17 Tom Tromey <tom@tromey.com>
1813
1814 * value.c (preserve_values): Update.
1815 * python/py-type.c (save_objfile_types): Update.
1816 * guile/scm-type.c (save_objfile_types): Update.
1817 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1818 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1819 * compile/compile-object-run.c (compile_object_run): Update.
1820
fa9b1164
TT
18212020-09-17 Tom Tromey <tom@tromey.com>
1822
1823 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1824 Remove.
1825 <m_table>: Now htab_up.
1826 * typeprint.c (typedef_hash_table::recursively_update)
1827 (typedef_hash_table::add_template_parameters)
1828 (typedef_hash_table::typedef_hash_table): Update.
1829 (typedef_hash_table::~typedef_hash_table): Remove.
1830 (typedef_hash_table::typedef_hash_table)
1831 (typedef_hash_table::find_global_typedef)
1832 (typedef_hash_table::find_typedef): Update.
1833
eb53f105
TT
18342020-09-17 Tom Tromey <tom@tromey.com>
1835
1836 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1837
7a8a5d47
TT
18382020-09-17 Tom Tromey <tom@tromey.com>
1839
1840 * linespec.c (class decode_compound_collector)
1841 <~decode_compound_collector>: Remove.
1842 <m_unique_syms>: Now htab_up.
1843 (decode_compound_collector::operator ()): Update.
1844 (class symtab_collector) <~symtab_collector>: Remove.
1845 <m_symtab_table>: Now htab_up.
1846 (symtab_collector::operator ()): Update.
1847
99032cfc
TT
18482020-09-17 Tom Tromey <tom@tromey.com>
1849
1850 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1851 (filename_seen_cache::clear): Update.
1852 (~filename_seen_cache): Remove.
1853 (filename_seen_cache::seen): Update.
1854 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1855 htab_up.
1856 <~filename_seen_cache>: Remove.
1857 <traverse>: Update.
1858
32580f6d
TT
18592020-09-17 Tom Tromey <tom@tromey.com>
1860
1861 * completer.c (completion_tracker::discard_completions)
1862 (completion_tracker::~completion_tracker)
1863 (completion_tracker::maybe_add_completion)
1864 (completion_tracker::remove_completion)
1865 (completion_tracker::recompute_lowest_common_denominator)
1866 (completion_tracker::build_completion_result): Update.
1867 * completer.h (class completion_tracker) <have_completions>:
1868 Update.
1869 <m_entries_hash>: Now htab_up.
1870
c1fb9836
TT
18712020-09-17 Tom Tromey <tom@tromey.com>
1872
1873 * breakpoint.c (ambiguous_names_p): Use htab_up.
1874
88f07206
TT
18752020-09-17 Tom Tromey <tom@tromey.com>
1876
1877 * auto-load.c (struct auto_load_pspace_info)
1878 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1879 <loaded_script_files, loaded_script_texts>: Change type to
1880 htab_up.
1881 (~auto_load_pspace_info) Remove.
1882 (init_loaded_scripts_info, maybe_add_script_file)
1883 (maybe_add_script_text, auto_load_info_scripts): Update.
1884
9519b2ee
TT
18852020-09-17 Tom Tromey <tromey@adacore.com>
1886
1887 * c-exp.y (name_obstack): Now static.
1888
d2cd4113
CC
18892020-09-17 Chungyi Chi <demonic@csie.io>
1890
1891 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1892
b650a282
SM
18932020-09-16 Simon Marchi <simon.marchi@efficios.com>
1894
1895 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1896 (add_solib_catchpoint): Likewise.
1897 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1898 to bool.
1899 (add_solib_catchpoint): Change int parameter/variable to bool.
1900 (catch_load_or_unload): Likewise.
1901 (init_catchpoint): Likewise.
1902 (create_fork_vfork_event_catchpoint): Likewise.
1903 (catch_fork_command_1): Likewise.
1904 (catch_exec_command_1): Likewise.
1905
4d0bcfcf
SM
19062020-09-16 Simon Marchi <simon.marchi@efficios.com>
1907
1908 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1909 Change instance_flags to m_instance_flags.
1910
fe830662
TT
19112020-09-16 Tom Tromey <tromey@adacore.com>
1912
1913 PR gdb/26598:
1914 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1915
fe5ddfc3
JB
19162020-09-16 John Baldwin <jhb@FreeBSD.org>
1917
1918 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1919 PL_FLAG_EXEC.
1920 (fbsd_nat_target::insert_exec_catchpoint)
1921 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1922 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1923 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1924
e911c666
JB
19252020-09-16 John Baldwin <jhb@FreeBSD.org>
1926
1927 * configure.ac: Remove check for kinfo_getvmmap().
1928 * configure, config.in: Regenerate.
1929 * fbsd-nat.c (fbsd_read_mapping): Remove
1930 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1931 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1932 kinfo_get_vmmap() are always present.
1933
1f17d372
JB
19342020-09-16 John Baldwin <jhb@FreeBSD.org>
1935
1936 * fbsd-nat.c: Always include support for
1937 TARGET_OBJECT_SIGNAL_INFO.
1938
bcb1da7f
JB
19392020-09-16 John Baldwin <jhb@FreeBSD.org>
1940
1941 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1942 sysctl and remove procfs fallback.
1943
5515f729
JB
19442020-09-16 John Baldwin <jhb@FreeBSD.org>
1945
1946 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1947 * fbsd-nat.h: Likewise.
1948
da1df1db
TBA
19492020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1950
1951 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1952 argument.
1953
0e25e767
AB
19542020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1955
1956 * ada-lang.c (ada_language_data): Delete.
1957 (ada_language): Remove references to ada_language_data.
1958 * c-lang.c (c_language_data): Delete.
1959 (c_language): Remove references to c_language_data.
1960 (cplus_language_data): Delete.
1961 (cplus_language): Remove references to cplus_language_data.
1962 (asm_language_data): Delete.
1963 (asm_language): Remove references to asm_language_data.
1964 (minimal_language_data): Delete.
1965 (minimal_language): Remove references to minimal_language_data.
1966 * d-lang.c (d_language_data): Delete.
1967 (d_language): Remove references to d_language_data.
1968 * f-lang.c (f_language_data): Delete.
1969 (f_language): Remove references to f_language_data.
1970 * go-lang.c (go_language_data): Delete.
1971 (go_language): Remove references to go_language_data.
1972 * language.c (unknown_language_data): Delete.
1973 (unknown_language): Remove references to unknown_language_data.
1974 (auto_language_data): Delete.
1975 (auto_language): Remove references to auto_language_data.
1976 * language.h (language_data): Delete struct.
1977 (language_defn): No longer inherit from language_data.
1978 * m2-lang.c (m2_language_data): Delete.
1979 (m2_language): Remove references to m2_language_data.
1980 * objc-lang.c (objc_language_data): Delete.
1981 (objc_language): Remove references to objc_language_data.
1982 * opencl-lang.c (opencl_language_data): Delete.
1983 (opencl_language): Remove references to opencl_language_data.
1984 * p-lang.c (pascal_language_data): Delete.
1985 (pascal_language): Remove references to pascal_language_data.
1986 * rust-lang.c (rust_language_data): Delete.
1987 (rust_language): Remove references to rust_language_data.
1988
b7c6e27d
AB
19892020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1990
1991 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1992 initializer.
1993 (ada_language::opcode_print_table): New member function.
1994 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1995 (c_language::opcode_print_table): New member function.
1996 (cplus_language_data): Remove la_op_print_tab initializer.
1997 (cplus_language::opcode_print_table): New member function.
1998 (asm_language_data): Remove la_op_print_tab initializer.
1999 (asm_language::opcode_print_table): New member function.
2000 (minimal_language_data): Remove la_op_print_tab initializer.
2001 (minimal_language::opcode_print_table): New member function.
2002 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
2003 (d_language::opcode_print_table): New member function.
2004 * expprint.c (print_subexp_standard): Update call to
2005 opcode_print_table.
2006 (op_string): Likewise.
2007 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2008 (f_language::opcode_print_table): New member function.
2009 * go-lang.c (go_language_data): Remove la_op_print_tab
2010 initializer.
2011 (go_language::opcode_print_table): New member function.
2012 * language.c (unknown_language_data): Remove la_op_print_tab
2013 initializer.
2014 (unknown_language::opcode_print_table): New member function.
2015 (auto_language_data): Remove la_op_print_tab initializer.
2016 (auto_language::opcode_print_table): New member function.
2017 * language.h (language_data): Remove la_op_print_tab field.
2018 (language_defn::opcode_print_table): Declare new member function.
2019 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2020 initializer.
2021 (m2_language::opcode_print_table): New member function.
2022 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2023 initializer.
2024 (objc_language::opcode_print_table): New member function.
2025 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2026 initializer.
2027 (opencl_language::opcode_print_table): New member function.
2028 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2029 initializer.
2030 (pascal_language::opcode_print_table): New member function.
2031 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2032 initializer.
2033 (rust_language::opcode_print_table): New member function.
2034
5aba6ebe
AB
20352020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2036
2037 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2038 (ada_language::expression_ops): New member function.
2039 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2040 (c_language::expression_ops): New member function.
2041 (cplus_language_data): Remove la_exp_desc initializer.
2042 (cplus_language::expression_ops): New member function.
2043 (asm_language_data): Remove la_exp_desc initializer.
2044 (asm_language::expression_ops): New member function.
2045 (minimal_language_data): Remove la_exp_desc initializer.
2046 (minimal_language::expression_ops): New member function.
2047 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2048 (d_language::expression_ops): New member function.
2049 * eval.c (evaluate_subexp): Update call to expression_ops.
2050 * expprint.c (print_subexp): Likewise.
2051 (op_name): Likewise.
2052 (dump_subexp_body): Likewise.
2053 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2054 (f_language::expression_ops): New member function.
2055 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2056 (go_language::expression_ops): New member function.
2057 * language.c (language_defn::expression_ops): New function.
2058 (unknown_language_data): Remove la_exp_desc initializer.
2059 (auto_language_data): Likewise.
2060 * language.h (language_data): Remove la_exp_desc field.
2061 (language_defn::expression_ops): Declare new member function.
2062 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2063 (m2_language::expression_ops): New member function.
2064 * objc-lang.c (objc_language_data): Remove la_exp_desc
2065 initializer.
2066 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2067 initializer.
2068 (opencl_language::expression_ops): New member function.
2069 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2070 * parse.c (operator_length): Update call to expression_ops.
2071 (exp_iterate): Likewise.
2072 * rust-lang.c (rust_language_data): Remove la_exp_desc
2073 initializer.
2074 (ruse_language::expression_ops): New member function.
2075
b63a3f3f
AB
20762020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2077
2078 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2079 initializer.
2080 (ada_language::varobj_ops): New member function.
2081 * c-lang.c (c_language_data): Remove la_varobj_ops
2082 initializer.
2083 (cplus_language_data): Likewise.
2084 (cplus_language::varobj_ops): New member function.
2085 (asm_language_data): Remove la_varobj_ops initializer.
2086 (minimal_language_data): Likewise.
2087 * d-lang.c (d_language_data): Likewise.
2088 * f-lang.c (f_language_data): Likewise.
2089 * go-lang.c (go_language_data): Likewise.
2090 * language.c (language_defn::varobj_ops): New function.
2091 (unknown_language_data): Remove la_varobj_ops
2092 initializer.
2093 (auto_language_data): Likewise.
2094 * language.h (language_data): Remove la_varobj_ops field.
2095 (language_defn::varobj_ops): Declare new member function.
2096 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2097 * objc-lang.c (objc_language_data): Likewise.
2098 * opencl-lang.c (opencl_language_data): Likewise.
2099 * p-lang.c (pascal_language_data): Likewise.
2100 * rust-lang.c (rust_language_data): Likewise.
2101 * varobj.c (varobj_create): Update call to varobj_ops.
2102 * varobj.h (default_varobj_ops): Delete define.
2103
1ac14a04
AB
21042020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2105
2106 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2107 initializer.
2108 * c-lang.c (c_language_data): Likewise.
2109 (c_language::macro_expansion): New member function.
2110 (cplus_language_data): Likewise.
2111 (cplus_language::macro_expansion): New member function.
2112 (asm_language_data): Likewise.
2113 (asm_language::macro_expansion): New member function.
2114 (minimal_language_data): Likewise.
2115 (minimal_language::macro_expansion): New member function.
2116 * d-lang.c (d_language_data): Remove la_macro_expansion
2117 initializer.
2118 * f-lang.c (f_language_data): Likewise.
2119 * go-lang.c (go_language_data): Likewise.
2120 * language.c (unknown_language_data): Likewise.
2121 (auto_language_data): Likewise.
2122 * language.h (language_data): Remove la_macro_expansion field.
2123 (language_defn::macro_expansion): New member function.
2124 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2125 initializer.
2126 * objc-lang.c (objc_language_data): Likewise.
2127 (objc_language::macro_expansion): New member function.
2128 * opencl-lang.c (opencl_language_data): Likewise.
2129 (opencl_language::macro_expansion): New member function.
2130 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2131 initializer.
2132 * rust-lang.c (rust_language_data): Likewise.
2133 * symtab.c (default_collect_symbol_completion_matches_break_on):
2134 Update call to macro_expansion.
2135
3a3440fb
AB
21362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2137
2138 * ada-lang.c (ada_language_data): Remove la_array_ordering
2139 initializer.
2140 * c-lang.c (c_language_data): Likewise.
2141 (cplus_language_data): Likewise.
2142 (asm_language_data): Likewise.
2143 (minimal_language_data): Likewise.
2144 * d-lang.c (d_language_data): Likewise.
2145 * dwarf2/read.c (read_array_order): Update for call to
2146 array_ordering.
2147 * f-lang.c (f_language_data): Remove la_array_ordering
2148 initializer.
2149 (f_language::array_ordering): New member function.
2150 * go-lang.c (go_language_data): Remove la_array_ordering
2151 initializer.
2152 * language.c (unknown_language_data): Likewise.
2153 (auto_language_data): Likewise.
2154 * language.h (language_data): Delete la_array_ordering field.
2155 (language_defn::array_ordering): New member function.
2156 * m2-lang.c (m2_language_data): Remove la_array_ordering
2157 initializer.
2158 * objc-lang.c (objc_language_data): Likewise.
2159 * opencl-lang.c (opencl_language_data): Likewise.
2160 * p-lang.c (pascal_language_data): Likewise.
2161 * rust-lang.c (rust_language_data): Likewise.
2162
0d201fa4
AB
21632020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2164
2165 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2166 initializer.
2167 * c-lang.c (c_language_data): Likewise.
2168 (cplus_language_data): Likewise.
2169 (asm_language_data): Likewise.
2170 (minimal_language_data): Likewise.
2171 * d-lang.c (d_language_data): Likewise.
2172 * f-lang.c (f_language_data): Likewise.
2173 (f_language::case_sensitivity): New member function.
2174 * go-lang.c (go_language_data): Remove la_case_sensitivity
2175 initializer.
2176 * language.c (enum case_mode): Moved here from language.h.
2177 (case_mode): Make static.
2178 (show_case_command): Update for case_sensitivity being a method.
2179 (set_case_command): Likewise.
2180 (set_range_case): Likewise.
2181 (unknown_language_data): Remove la_case_sensitivity initializer.
2182 (auto_language_data): Likewise.
2183 * language.h (case_mode): Delete, move enum declaration to
2184 language.c.
2185 (language_data): Delete la_case_sensitivity field.
2186 (language_defn::case_sensitivity): New member function.
2187 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2188 initializer.
2189 * objc-lang.c (objc_language_data): Likewise.
2190 * opencl-lang.c (opencl_language_data): Likewise.
2191 * p-lang.c (pascal_language_data): Likewise.
2192 * rust-lang.c (rust_language_data): Likewise.
2193
efdf6a73
AB
21942020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2195
2196 * ada-lang.c (ada_language_data): Remove la_range_check
2197 initializer.
2198 * c-lang.c (c_language_data): Likewise.
2199 (cplus_language_data): Likewise.
2200 (asm_language_data): Likewise.
2201 (minimal_language_data): Likewise.
2202 * d-lang.c (d_language_data): Likewise.
2203 * f-lang.c (f_language_data): Likewise.
2204 (f_language::range_checking_on_by_default): New member function.
2205 * go-lang.c (go_language_data): Remove la_range_check initializer.
2206 * language.c (enum range_mode): Moved here from language.h.
2207 (range_mode): Made static.
2208 (show_range_command): Update to use
2209 range_checking_on_by_default.
2210 (set_range_command): Likewise.
2211 (set_range_case): Likewise.
2212 (unknown_language_data): Remove la_range_check initializer.
2213 (auto_language_data): Likewise.
2214 * language.h (range_mode): Delete. Enum definition moved to
2215 language.c.
2216 (language_data): Remove la_range_check field.
2217 (language_defn::range_checking_on_by_default): New member
2218 function.
2219 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2220 (m2_language::range_checking_on_by_default): New member function.
2221 * objc-lang.c (objc_language_data): Remove la_range_check
2222 initializer.
2223 * opencl-lang.c (opencl_language_data): Likewise.
2224 * p-lang.c (pascal_language_data): Likewise.
2225 (pascal_language::range_checking_on_by_default): New member
2226 function.
2227 * rust-lang.c (rust_language_data): Remove la_range_check
2228 initializer.
2229 (rust_language::range_checking_on_by_default): New member
2230 function.
2231
bf92aec5
AB
22322020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2233
2234 * dwarf2/read.c (dwarf2_physname): Remove special case for
2235 language_go.
2236 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2237 member function.
2238
d3355e4d
AB
22392020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2240
2241 * ada-lang.c (ada_language_data): Remove
2242 la_store_sym_names_in_linkage_form_p initializer.
2243 (ada_language::store_sym_names_in_linkage_form_p): New member
2244 function.
2245 * c-lang.c (c_language_data): Remove
2246 la_store_sym_names_in_linkage_form_p initializer.
2247 (c_language::store_sym_names_in_linkage_form_p): New member
2248 function.
2249 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2250 initializer.
2251 (asm_language_data): Likewise.
2252 (asm_language::store_sym_names_in_linkage_form_p): New member
2253 function.
2254 (minimal_language_data): Remove
2255 la_store_sym_names_in_linkage_form_p initializer.
2256 (minimal_language::store_sym_names_in_linkage_form_p): New member
2257 function.
2258 * d-lang.c (d_language_data): Remove
2259 la_store_sym_names_in_linkage_form_p initializer.
2260 * dwarf2/read.c (dwarf2_physname): Update call to
2261 store_sym_names_in_linkage_form_p.
2262 * f-lang.c (f_language_data): Remove
2263 la_store_sym_names_in_linkage_form_p initializer.
2264 * go-lang.c (go_language_data): Remove
2265 la_store_sym_names_in_linkage_form_p initializer.
2266 * language.c (unknown_language_data): Remove
2267 la_store_sym_names_in_linkage_form_p initializer.
2268 (unknown_language::store_sym_names_in_linkage_form_p): New member
2269 function.
2270 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2271 initializer.
2272 (auto_language::store_sym_names_in_linkage_form_p): New member
2273 function.
2274 * language.h (language_data): Remove
2275 la_store_sym_names_in_linkage_form_p member variable.
2276 (language_defn::store_sym_names_in_linkage_form_p): New member
2277 function.
2278 * m2-lang.c (m2_language_data): Remove
2279 la_store_sym_names_in_linkage_form_p initializer.
2280 * objc-lang.c (objc_language_data): Likewise.
2281 * opencl-lang.c (opencl_language_data): Likewise.
2282 * p-lang.c (pascal_language_data): Likewise.
2283 * rust-lang.c (rust_language_data): Likewise.
2284
22c12a6c
AB
22852020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2286
2287 * ada-lang.c (ada_language_data): Remove string_lower_bound
2288 initializer.
2289 * c-lang.c (c_language_data): Likewise.
2290 (cplus_language_data): Likewise.
2291 (asm_language_data): Likewise.
2292 (minimal_language_data): Likewise.
2293 * d-lang.c (d_language_data): Likewise.
2294 * f-lang.c (f_language_data): Likewise.
2295 * go-lang.c (go_language_data): Likewise.
2296 * language.c (unknown_language_data): Likewise.
2297 (auto_language_data): Likewise.
2298 * language.h (language_data): Remove string_lower_bound field.
2299 (language_defn::string_lower_bound): New member function.
2300 * m2-lang.c (m2_language_data): Remove string_lower_bound
2301 initializer.
2302 (m2_language::string_lower_bound): New member function.
2303 * objc-lang.c (objc_language_data): Remove string_lower_bound
2304 initializer.
2305 * opencl-lang.c (opencl_language_data): Likewise.
2306 * p-lang.c (pascal_language_data): Likewise.
2307 * rust-lang.c (rust_language_data): Likewise.
2308 * valops.c (value_cstring): Update call to string_lower_bound.
2309 (value_string): Likewise.
2310 * value.c (allocate_repeated_value): Likewise.
2311
1c236ddd
AB
23122020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2313
2314 * valops.c (value_repeat): Fix incorrect argument name in comment.
2315
67bd3fd5
AB
23162020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2317
2318 * ada-lang.c (ada_language_data): Remove c_style_arrays
2319 initializer.
2320 (ada_language::c_style_arrays_p): New member fuction.
2321 * c-lang.c (c_language_data): Remove c_style_arrays
2322 initializer.
2323 (cplus_language_data): Likewise.
2324 (asm_language_data): Likewise.
2325 (minimal_language_data): Likewise.
2326 * d-lang.c (d_language_data): Likewise.
2327 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2328 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2329 (f_language::c_style_arrays_p): New member function.
2330 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2331 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2332 * language.c (unknown_language_data): Remove c_style_arrays
2333 initializer.
2334 (auto_language_data): Likewise.
2335 * language.h (language_data): Remove c_style_arrays field.
2336 (language_defn::c_style_arrays_p): New member function.
2337 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2338 (m2_language::c_style_arrays_p): New member function.
2339 * objc-lang.c (objc_language_data): Remove c_style_arrays
2340 initializer.
2341 * opencl-lang.c (opencl_language_data): Likewise.
2342 * p-lang.c (pascal_language_data): Likewise.
2343 * rust-lang.c (rust_language_data): Likewise.
2344 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2345 and update local variable to a bool.
2346 * valops.c (value_cast): Update call to c_style_arrays_p.
2347 (value_array): Likewise.
2348 * value.c (coerce_array): Likewise.
2349
85967615
AB
23502020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2351
2352 * ada-lang.c (ada_language_data): Remove la_language initializer.
2353 * c-lang.c (c_language_data): Likewise.
2354 (cplus_language_data): Likewise.
2355 (asm_language_data): Likewise.
2356 (minimal_language_data): Likewise.
2357 * d-lang.c (d_language_data): Likewise.
2358 * f-lang.c (f_language_data): Likewise.
2359 * go-lang.c (go_language_data): Likewise.
2360 * language.c (unknown_language_data): Likewise.
2361 (auto_language_data): Likewise.
2362 * language.h (language_data): Remove la_language field.
2363 (language_defn::language_defn): Initialise la_language field.
2364 (language_defn::la_language): New member variable.
2365 * m2-lang.c (m2_language_data): Remove la_language field.
2366 * objc-lang.c (objc_language_data): Likewise.
2367 * opencl-lang.c (opencl_language_data): Likewise.
2368 * p-lang.c (pascal_language_data): Likewise.
2369 * rust-lang.c (rust_language_data): Likewise.
2370
e171d6f1
AB
23712020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2372
2373 * ada-lang.c (ada_extensions): Delete, moved into
2374 ada_language::filename_extensions.
2375 (ada_language_data): Remove la_filename_extensions initializer.
2376 (ada_language::filename_extensions): New member function.
2377 * c-lang.c (c_extensions): Delete, moved into
2378 c_language::filename_extensions.
2379 (c_language_data): Remove la_filename_extensions initializer.
2380 (c_language::filename_extensions): New member function.
2381 (cplus_extensions): Delete, moved into
2382 cplus_language::filename_extensions.
2383 (cplus_language_data): Remove la_filename_extensions initializer.
2384 (cplus_language::filename_extensions): New member function.
2385 (asm_extensions): Delete, moved into
2386 asm_language::filename_extensions.
2387 (asm_language_data): Remove la_filename_extensions initializer.
2388 (asm_language::filename_extensions): New member function.
2389 (minimal_language_data): Remove la_filename_extensions
2390 initializer.
2391 * d-lang.c (d_extensions): Delete, moved into
2392 d_language::filename_extensions.
2393 (d_language_data): Remove la_filename_extensions initializer.
2394 (d_language::filename_extensions): New member function.
2395 * f-lang.c (f_extensions): Delete, moved into
2396 f_language::filename_extensions.
2397 (f_language_data): Remove la_filename_extensions initializer.
2398 (f_language::filename_extensions): New member function.
2399 * go-lang.c (go_language_data): Remove la_filename_extensions
2400 initializer.
2401 * language.c (add_set_language_command): Update now that
2402 filename_extensions returns a vector.
2403 (unknown_language_data): Remove la_filename_extensions
2404 initializer.
2405 (auto_language_data): Likewise.
2406 * language.h (language_data): Remove la_filename_extensions field.
2407 (language_defn::filename_extensions): New member function.
2408 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2409 initializer.
2410 * objc-lang.c (objc_extensions): Delete, moved into
2411 objc_language::filename_extensions.
2412 (objc_language_data): Remove la_filename_extensions initializer.
2413 (objc_language::filename_extensions): New member function.
2414 * opencl-lang.c (opencl_language_data): Remove
2415 la_filename_extensions initializer.
2416 * p-lang.c (pascal_extensions): Delete, moved into
2417 pascal_language::filename_extensions.
2418 (pascal_language_data): Remove la_filename_extensions initializer.
2419 (pascal_language::filename_extensions): New member function.
2420 * rust-lang.c (rust_extensions): Delete, moved into
2421 rust_language::filename_extensions.
2422 (rust_language_data): Remove la_filename_extensions initializer.
2423 (rust_language::filename_extensions): New member function.
2424 * symfile.c (add_filename_language): Add new assert.
2425
6f7664a9
AB
24262020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2427
2428 * ada-lang.c (ada_language_data): Remove la_name and
2429 la_natural_name initializers.
2430 (ada_language::name): New member function.
2431 (ada_language::natural_name): New member function.
2432 * c-lang.c (c_language_data): Remove la_name and
2433 la_natural_name initializers.
2434 (c_language::name): New member function.
2435 (c_language::natural_name): New member function.
2436 (cplus_language_data): Remove la_name and
2437 la_natural_name initializers.
2438 (cplus_language::name): New member function.
2439 (cplus_language::natural_name): New member function.
2440 (asm_language_data): Remove la_name and
2441 la_natural_name initializers.
2442 (asm_language::name): New member function.
2443 (asm_language::natural_name): New member function.
2444 (minimal_language_data): Remove la_name and
2445 la_natural_name initializers.
2446 (minimal_language::name): New member function.
2447 (minimal_language::natural_name): New member function.
2448 * compile/compile.c (compile_to_object): Update call to
2449 lanugage_defn::name.
2450 * d-lang.c (d_language_data): Remove la_name and
2451 la_natural_name initializers.
2452 (d_language::name): New member function.
2453 (d_language::natural_name): New member function.
2454 * expprint.c (print_subexp_standard): Update call to
2455 language_defn::name.
2456 (dump_raw_expression): Likewise
2457 (dump_prefix_expression): Likewise.
2458 * f-lang.c (f_language_data): Remove la_name and
2459 la_natural_name initializers.
2460 (f_language::name): New member function.
2461 (f_language::natural_name): New member function.
2462 * go-lang.c (go_language_data): Remove la_name and
2463 la_natural_name initializers.
2464 (go_language::name): New member function.
2465 (go_language::natural_name): New member function.
2466 * language.c (show_language_command): Update call to
2467 language_defn::name.
2468 (set_language_command): Likewise.
2469 (language_enum): Likewise.
2470 (language_str): Likewise.
2471 (add_set_language_command): Likewise, use
2472 language_defn::natural_name in the doc string.
2473 (unknown_language_data): Remove la_name and
2474 la_natural_name initializers.
2475 (unknown_language::name): New member function.
2476 (unknown_language::natural_name): New member function.
2477 (auto_language_data): Remove la_name and
2478 la_natural_name initializers.
2479 (auto_language::name): New member function.
2480 (auto_language::natural_name): New member function.
2481 (language_lookup_primitive_type_as_symbol): Update call to
2482 language_defn::name.
2483 * language.h (language_data): Remove la_name and la_natural_name
2484 member variables.
2485 (language_defn::name): New member function.
2486 (language_defn::natural_name): New member function.
2487 * m2-lang.c (m2_language_data): Remove la_name and
2488 la_natural_name initializers.
2489 (m2_language::name): New member function.
2490 (m2_language::natural_name): New member function.
2491 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2492 language_defn::natural_name.
2493 * objc-lang.c (objc_language_data): Remove la_name and
2494 la_natural_name initializers.
2495 (objc_language::name): New member function.
2496 (objc_language::natural_name): New member function.
2497 * opencl-lang.c (opencl_language_data): Remove la_name and
2498 la_natural_name initializers.
2499 (opencl_language::name): New member function.
2500 (opencl_language::natural_name): New member function.
2501 * p-lang.c (pascal_language_data): Remove la_name and
2502 la_natural_name initializers.
2503 (pascal_language::name): New member function.
2504 (pascal_language::natural_name): New member function.
2505 * rust-lang.c (rust_language_data): Remove la_name and
2506 la_natural_name initializers.
2507 (rust_language::name): New member function.
2508 (rust_language::natural_name): New member function.
2509 * symtab.c (lookup_language_this): Update call to
2510 language_defn::name.
2511
5bae7c4e
AB
25122020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2513
2514 * ada-lang.c (ada_language_data): Remove la_name_of_this
2515 initializer.
2516 * ax-gdb.c (gen_expr): Update call to name_of_this.
2517 * c-exp.y (classify_name): Likewise.
2518 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2519 (cplus_language_data): Likewise.
2520 (cplus_language::name_of_this): New member function.
2521 (asm_language_data): Remove la_name_of_this initializer.
2522 (minimal_language_data): Likewise.
2523 * d-lang.c (d_language_data): Likewise.
2524 (d_language::name_of_this): New member function.
2525 * expprint.c (print_subexp_standard): Update call to name_of_this.
2526 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2527 * go-lang.c (go_language_data): Likewise.
2528 * language.c (unknown_language_data): Likewise.
2529 (unknown_language::name_of_this): New member function.
2530 (auto_language_data): Remove la_name_of_this initializer.
2531 (auto_language::name_of_this): New member function.
2532 * language.h (language_data): Delete la_name_of_this member
2533 variable.
2534 (language_defn::name_of_this): New member function.
2535 * m2-lang.c (m2_language_data): Remove la_name_of_this
2536 initializer.
2537 * objc-lang.c (objc_language_data): Likewise.
2538 (objc_language::name_of_this): New member function.
2539 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2540 initializer.
2541 * p-lang.c (pascal_language_data): Likewise.
2542 (pascal_language::name_of_this): New member function.
2543 * rust-lang.c (rust_language_data): Remove la_name_of_this
2544 initializer.
2545 * symtab.c (lookup_language_this): Update call to name_of_this.
2546 (lookup_symbol_aux): Likewise.
2547 * valops.c (value_of_this): Likewise.
2548
22e3f3ed
AB
25492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2550
2551 * ada-lang.c (ada_language_data): Remove
2552 la_struct_too_deep_ellipsis initializer.
2553 (ada_language::struct_too_deep_ellipsis): New member function.
2554 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2555 initializer.
2556 (cplus_language_data): Likewise.
2557 (asm_language_data): Likewise.
2558 (minimal_language_data): Likewise.
2559 * cp-valprint.c (cp_print_value): Update call to
2560 struct_too_deep_ellipsis.
2561 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2562 initializer.
2563 * f-lang.c (f_language_data): Likewise.
2564 (f_language::struct_too_deep_ellipsis): New member function.
2565 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2566 initializer.
2567 * language.c (unknown_language_data): Likewise.
2568 (auto_language_data): Likewise.
2569 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2570 member variable.
2571 (language_defn::struct_too_deep_ellipsis): New member function.
2572 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2573 initializer.Q
2574 * objc-lang.c (objc_language_data): Likewise.
2575 * opencl-lang.c (opencl_language_data): Likewise.
2576 * p-lang.c (pascal_language_data): Likewise.
2577 * rust-lang.c (rust_language_data): Likewise.
2578 * valprint.c (val_print_check_max_depth): Update call to
2579 struct_too_deep_ellipsis.
2580
ed29e1c7
FW
25812020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2582
2583 * MAINTAINERS (Write After Approval): Add myself.
2584
12d8f940
TT
25852020-09-15 Tom Tromey <tom@tromey.com>
2586
2587 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2588 Remove.
2589
6b5a7bc7
TT
25902020-09-15 Tom Tromey <tom@tromey.com>
2591
2592 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2593 and TYPE_CODE_METHODPTR cases.
2594 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2595 (c_value_print_inner): Update.
2596 * valprint.c (generic_value_print_memberptr): New function, from
2597 c_value_print_memberptr.
2598 (generic_value_print): Use it. Call cplus_print_method_ptr.
2599
47f0e2ff
TT
26002020-09-15 Tom Tromey <tromey@adacore.com>
2601
2602 * python/python-internal.h (PyInt_FromLong): Remove define.
2603 * python/py-value.c (convert_value_from_python): Use
2604 gdb_py_object_from_longest.
2605 * python/py-type.c (typy_get_code): Use
2606 gdb_py_object_from_longest.
2607 * python/py-symtab.c (salpy_get_line): Use
2608 gdb_py_object_from_longest.
2609 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2610 gdb_py_object_from_longest.
2611 * python/py-record.c (recpy_gap_reason_code): Use
2612 gdb_py_object_from_longest.
2613 * python/py-record-btrace.c (recpy_bt_insn_size)
2614 (recpy_bt_func_level, btpy_list_count): Use
2615 gdb_py_object_from_longest.
2616 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2617 gdb_py_object_from_longest. Fix error handling.
2618 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2619 gdb_py_object_from_longest.
2620 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2621 gdb_py_object_from_longest.
2622 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2623 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2624 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2625
512116ce
TT
26262020-09-15 Tom Tromey <tromey@adacore.com>
2627
2628 * python/python.c (gdbpy_parameter_value): Use
2629 gdb_py_object_from_ulongest.
2630
4ab1029c
TT
26312020-09-15 Tom Tromey <tromey@adacore.com>
2632
2633 * python/py-infevents.c (create_register_changed_event_object):
2634 Use gdb_py_object_from_longest.
2635 * python/py-exitedevent.c (create_exited_event_object): Use
2636 gdb_py_object_from_longest.
2637
062534d4
TT
26382020-09-15 Tom Tromey <tromey@adacore.com>
2639
2640 * python/python.c (gdbpy_parameter_value): Use
2641 gdb_py_object_from_longest.
2642 * python/py-type.c (convert_field, typy_range): Use
2643 gdb_py_object_from_longest.
2644 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2645 gdb_py_object_from_longest.
2646 * python/py-lazy-string.c (stpy_get_length): Use
2647 gdb_py_object_from_longest.
2648 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2649 gdb_py_object_from_longest.
2650 * python/py-infevents.c (create_memory_changed_event_object): Use
2651 gdb_py_object_from_longest.
2652 * python/py-inferior.c (infpy_get_num): Use
2653 gdb_py_object_from_longest.
2654 (infpy_get_pid): Likewise.
2655
d1cab987
TT
26562020-09-15 Tom Tromey <tromey@adacore.com>
2657
2658 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2659 defines.
2660 * python/py-value.c (valpy_long): Use
2661 gdb_py_object_from_ulongest.
2662 * python/py-symtab.c (salpy_get_pc): Use
2663 gdb_py_object_from_ulongest.
2664 (salpy_get_last): Likewise.
2665 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2666 gdb_py_object_from_ulongest.
2667 * python/py-lazy-string.c (stpy_get_address): Use
2668 gdb_py_object_from_ulongest.
2669 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2670 * python/py-arch.c (archpy_disassemble): Use
2671 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2672 error handling.
2673
4bde49dc
TT
26742020-09-15 Tom Tromey <tromey@adacore.com>
2675
2676 * python/python-internal.h (gdb_py_long_from_longest): Remove
2677 defines.
2678 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2679 * python/py-type.c (convert_field, typy_get_sizeof): Use
2680 gdb_py_object_from_longest.
2681 * python/py-record-btrace.c (btpy_list_index): Use
2682 gdb_py_object_from_longest.
2683
37431074
TT
26842020-09-15 Tom Tromey <tromey@adacore.com>
2685
2686 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2687 * python/py-record.c (recpy_element_number): Use
2688 gdb_py_object_from_longest.
2689 (recpy_gap_number): Likewise.
2690
cbe25684
TT
26912020-09-15 Tom Tromey <tromey@adacore.com>
2692
2693 * top.c (ui::ui): Update.
2694 (highest_ui_num): Remove.
2695 * top.h (struct ui) <num>: Remove.
2696
db92ac45
TT
26972020-09-15 Tom Tromey <tromey@adacore.com>
2698
2699 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2700 * ui-style.c (ansi_regex_text): Now array.
2701 * rust-exp.y (number_regex_text): Now array.
2702 * linespec.c (linespec_quote_characters): Now array.
2703 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2704 Now arrays.
2705
d2b31b67
SM
27062020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2707
2708 * debuginfod-support.c (debuginfod_client_deleter): New.
2709 (debuginfod_client_up): New.
2710 (debuginfod_init): Return debuginfod_client_up.
2711 (debuginfod_source_query): Adjust.
2712 (debuginfod_debuginfo_query): Adjust.
2713
3246bd8e
SM
27142020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2715
2716 * debuginfod-support.c (debuginfod_source_query): Use
2717 make_unique_xstrdup.
2718
10242f36
SM
27192020-09-14 Simon Marchi <simon.marchi@efficios.com>
2720
2721 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2722 with `type::instance_flags`.
2723
e1044e6a
MM
27242020-09-14 Michael Mullin <masmullin@gmail.com>
2725
2726 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2727 Remove baton parameter.
2728
04902b09
PA
27292020-09-14 Pedro Alves <pedro@palves.net>
2730
2731 * Makefile.in (SELFTESTS_SRCS): Add
2732 unittests/enum-flags-selftests.c.
2733 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2734 btrace_function_flags instead of enum btrace_function_flag.
2735 * compile/compile-c-types.c (convert_qualified): Use
2736 enum_flags::raw.
2737 * compile/compile-cplus-symbols.c (convert_one_symbol)
2738 (convert_symbol_bmsym):
2739 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2740 (compile_cplus_convert_struct_or_union_methods)
2741 (compile_cplus_instance::convert_qualified_base):
2742 * go-exp.y (parse_string_or_char): Add cast to int.
2743 * unittests/enum-flags-selftests.c: New file.
2744 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2745 type to btrace_thread_flags from btrace_thread_flag.
2746 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2747 local's type to btrace_thread_flags from btrace_thread_flag. Add
2748 cast in DEBUG call.
2749
69896a2c
PA
27502020-09-14 Pedro Alves <pedro@palves.net>
2751
2752 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2753 * gdbtypes.c (address_space_name_to_int): Rename to ...
2754 (address_space_name_to_type_instance_flags): ... this.
2755 (address_space_int_to_name): Rename to ...
2756 (address_space_type_instance_flags_to_name): ... this.
2757 * gdbtypes.h (address_space_name_to_int): Rename to ...
2758 (address_space_name_to_type_instance_flags): ... this.
2759 (address_space_int_to_name): Rename to ...
2760 (address_space_type_instance_flags_to_name): ... this.
2761 * type-stack.c (type_stack::insert): Adjust to rename.
2762 * type-stack.h (type_stack::insert): Likewise.
2763
314ad88d
PA
27642020-09-14 Pedro Alves <pedro@palves.net>
2765 Andrew Burgess <andrew.burgess@embecosm.com>
2766
2767 * avr-tdep.c (avr_address_class_type_flags): Return
2768 type_instance_flags.
2769 (avr_address_class_type_flags_to_name): Take a
2770 type_instance_flags.
2771 (avr_address_class_name_to_type_flags): Return bool and take a
2772 type_instance_flags.
2773 * d-lang.c (build_d_types): Use type::set_instance_flags.
2774 * ft32-tdep.c (ft32_address_class_type_flags): Return
2775 type_instance_flags.
2776 (ft32_address_class_type_flags_to_name): Take a
2777 type_instance_flags.
2778 (ft32_address_class_name_to_type_flags): Return bool and take a
2779 type_instance_flags.
2780 (ft32_gdbarch_init): Use type::set_instance_flags.
2781 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2782 * gdbarch.h, gdbarch.c: Regenerate.
2783 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2784 (address_class_name_to_type_flags): Use type_instance_flags and
2785 bool.
2786 * gdbtypes.c (address_space_name_to_int)
2787 (address_space_int_to_name, make_qualified_type): Use
2788 type_instance_flags.
2789 (make_qualified_type): Use type_instance_flags and
2790 type::set_instance_flags.
2791 (make_type_with_address_space, make_cv_type, make_vector_type)
2792 (check_typedef): Use type_instance_flags.
2793 (recursive_dump_type): Cast type_instance_flags to unsigned for
2794 printing.
2795 (copy_type_recursive): Use type::set_instance_flags.
2796 (gdbtypes_post_init): Use type::set_instance_flags.
2797 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2798 <m_instance_flags>: ... this.
2799 <instance_flags, set_instance_flags>: New methods.
2800 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2801 (SET_TYPE_INSTANCE_FLAGS): New.
2802 (address_space_name_to_int, address_space_int_to_name)
2803 (make_type_with_address_space): Pass flags using
2804 type_instance_flags instead of int.
2805 * stabsread.c (cleanup_undefined_types_noname): Use
2806 type::set_instance_flags.
2807 * s390-tdep.c (s390_address_class_type_flags): Return
2808 type_instance_flags.
2809 (s390_address_class_type_flags_to_name): Take a
2810 type_instance_flags.
2811 (s390_address_class_name_to_type_flags): Return bool and take a
2812 type_instance_flags.
2813 * type-stack.c (type_stack::follow_types): Use
2814 type_instance_flags.
2815 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2816
27087b7f
TT
28172020-09-14 Tom Tromey <tromey@adacore.com>
2818
2819 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2820 * x86-tdep.c (x86_is_thunk_register_name)
2821 (x86_in_indirect_branch_thunk): Update.
2822 * sparc64-tdep.c (sparc64_fpu_register_names)
2823 (sparc64_cp0_register_names, sparc64_register_names)
2824 (sparc64_pseudo_register_names): Now const.
2825 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2826 cp0_registers_num>: Now const.
2827 * sparc-tdep.c (sparc_core_register_names)
2828 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2829 (sparc32_pseudo_register_names): Now const.
2830 (validate_tdesc_registers): Update.
2831 * rust-lang.c (rust_extensions): Now const.
2832 * p-lang.c (p_extensions): Now const.
2833 * objc-lang.c (objc_extensions): Now const.
2834 * nto-tdep.c (nto_thread_state_str): Now const.
2835 * moxie-tdep.c (moxie_register_names): Now const.
2836 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2837 Now const.
2838 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2839 (mips_linux_reg_names): Now const.
2840 (mips_gdbarch_init): Update.
2841 * microblaze-tdep.c (microblaze_register_names): Now const.
2842 * m68k-tdep.c (m68k_register_names): Now const.
2843 * m32r-tdep.c (m32r_register_names): Now const.
2844 * ia64-tdep.c (ia64_register_names): Now const.
2845 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2846 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2847 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2848 ymm_avx512_register_names, pkeys_register_names>: Now const.
2849 * i386-tdep.c (i386_register_names, i386_zmm_names)
2850 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2851 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2852 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2853 * f-lang.c (f_extensions): Now const.
2854 * d-lang.c (d_extensions): Now const.
2855 * csky-tdep.c (csky_register_names): Now const.
2856 * charset.c (default_charset_names, charset_enum): Now const.
2857 (_initialize_charset): Update.
2858 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2859 const.
2860 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2861 (bsd_uthread_solib_loaded): Update.
2862 (bsd_uthread_state): Now const.
2863 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2864 (amd64_ymm_avx512_names, amd64_ymmh_names)
2865 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2866 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2867 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2868 (amd64_dword_names): Now const.
2869 * agent.c (can_use_agent_enum): Now const.
2870 * ada-tasks.c (task_states, long_task_states): Now const.
2871 * ada-lang.c (known_runtime_file_name_patterns)
2872 (known_auxiliary_function_name_patterns, attribute_names)
2873 (standard_exc, ada_extensions): Now const.
2874
89806626
SM
28752020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2876
2877 * bcache.h (struct bcache) <bcache>: Remove constructor.
2878 <m_hash_function, m_compare_function>: Remove.
2879 <~bcache>: Make virtual.
2880 <compare>: Remove static method, introduce virtual method.
2881 <default_hash>: Remove.
2882 <hash>: New virtual method.
2883 * bcache.c (bcache::expand_hash_table): Update.
2884 (bcache::insert): Update.
2885 (bcache::hash): New.
2886 (bcache::compare): Update comment and parameter names.
2887 * gdbtypes.c (types_deeply_equal): Update.
2888 * psymtab.h (struct psymbol_bcache): New struct.
2889 (class psymtab_storage) <psymtab_storage>: Make default.
2890 <psymbol_cache>: Change type to psymbol_bcache.
2891 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2892 (psymbol_hash): Change to...
2893 (psymbol_bcache::hash): ... this.
2894 (psymbol_compare): Change to...
2895 (psymbol_bcache::compare): ... this.
2896
677c92fe
SM
28972020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2898
2899 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2900 checking for initial lwp.
2901
3eba3a01
TT
29022020-09-14 Tom Tromey <tromey@adacore.com>
2903
2904 * m68k-tdep.c (m68k_extract_return_value): Use
2905 pointer_result_regnum.
2906 (m68k_store_return_value): Likewise.
2907 (m68k_reg_struct_return_p): Handle vectors and arrays.
2908 (m68k_return_value): Handle arrays.
2909 (m68k_svr4_return_value): Fix single-element aggregate handling.
2910 Handle long double. Adjust for embedded ABI.
2911 (m68k_svr4_init_abi): Set pointer_result_regnum.
2912 (m68k_embedded_init_abi): New function.
2913 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2914 (m68k_osabi_sniffer): New function.
2915 (_initialize_m68k_tdep): Register osabi sniffer.
2916 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2917 member.
2918
33f4dd48
SM
29192020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2920
2921 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2922 with gdb::unique_xmalloc_ptr<char>.
2923
8400a90d
SM
29242020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2925
2926 * xml-support.h (xml_fetch_another): Change type to be a
2927 function_view.
2928 (xml_process_xincludes): Remove baton parameter.
2929 (xml_fetch_content_from_file): Change baton parameter to
2930 dirname.
2931 * xml-support.c (struct xinclude_parsing_data)
2932 <xinclude_parsing_data>: Remove baton parameter.
2933 <fetcher_baton>: Remove.
2934 (xinclude_start_include): Adjust.
2935 (xml_process_xincludes): Adjust.
2936 (xml_fetch_content_from_file): Replace baton parameter with
2937 dirname.
2938 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2939 (xml_init_syscalls_info): Use a lambda.
2940 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2941 (file_read_description_xml): Use a lambda.
2942 (fetch_available_features_from_target): Change baton parameter
2943 to target_ops.
2944 (target_read_description_xml): Use a lambda.
2945 (target_fetch_description_xml): Use a lambda.
2946 (string_read_description_xml): Update.
2947
04f5bab2
SM
29482020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2949
2950 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2951 uses with type::endianity_is_not_default.
2952
db558e34
SM
29532020-09-14 Simon Marchi <simon.marchi@efficios.com>
2954
2955 * gdbtypes.h (struct type) <endianity_is_not_default,
2956 set_endianity_is_not_default>: New methods.
2957 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2958 type::endianity_is_not_default, change all write call sites to
2959 use type::set_endianity_is_not_default.
2960
22c4c60c
SM
29612020-09-14 Simon Marchi <simon.marchi@efficios.com>
2962
2963 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2964 uses with type::is_fixed_instance.
2965
9cdd0d12
SM
29662020-09-14 Simon Marchi <simon.marchi@efficios.com>
2967
2968 * gdbtypes.h (struct type) <is_fixed_instance,
2969 set_is_fixed_instance>: New methods.
2970 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2971 write call sites to use type::set_is_fixed_instance.
2972
0becda7a
SM
29732020-09-14 Simon Marchi <simon.marchi@efficios.com>
2974
2975 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2976 uses with type::is_gnu_ifunc.
2977
03cc7249
SM
29782020-09-14 Simon Marchi <simon.marchi@efficios.com>
2979
2980 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2981 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2982 use type::set_is_gnu_ifunc.
2983
3f46044c
SM
29842020-09-14 Simon Marchi <simon.marchi@efficios.com>
2985
2986 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2987 uses with type::stub_is_supported.
2988
9baccff6
SM
29892020-09-14 Simon Marchi <simon.marchi@efficios.com>
2990
2991 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2992 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2993 use type::set_stub_is_supported.
2994
bd63c870
SM
29952020-09-14 Simon Marchi <simon.marchi@efficios.com>
2996
2997 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2998 uses with type::is_vector.
2999
2062087b
SM
30002020-09-14 Simon Marchi <simon.marchi@efficios.com>
3001
3002 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
3003 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
3004 use type::set_is_vector.
3005
a409645d
SM
30062020-09-14 Simon Marchi <simon.marchi@efficios.com>
3007
3008 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3009 uses with type::has_varargs.
3010
1d6286ed
SM
30112020-09-14 Simon Marchi <simon.marchi@efficios.com>
3012
3013 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3014 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3015 use type::set_has_varargs.
3016
7f9f399b
SM
30172020-09-14 Simon Marchi <simon.marchi@efficios.com>
3018
3019 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3020 uses with type::is_prototyped.
3021
27e69b7a
SM
30222020-09-14 Simon Marchi <simon.marchi@efficios.com>
3023
3024 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3025 New methods.
3026 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3027 call sites to use type::set_is_prototyped.
3028
d2183968
SM
30292020-09-14 Simon Marchi <simon.marchi@efficios.com>
3030
3031 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3032 uses with type::target_is_stub.
3033
8f53807e
SM
30342020-09-14 Simon Marchi <simon.marchi@efficios.com>
3035
3036 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3037 New methods.
3038 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3039 sites to use type::set_target_is_stub.
3040
e46d3488
SM
30412020-09-14 Simon Marchi <simon.marchi@efficios.com>
3042
3043 * gdbtypes.h (TYPE_STUB): Remove, replace all
3044 uses with type::is_stub.
3045
b4b73759
SM
30462020-09-14 Simon Marchi <simon.marchi@efficios.com>
3047
3048 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3049 (TYPE_STUB): Use type::is_stub, change all write call sites to
3050 use type::set_is_stub.
3051
20ce4123
SM
30522020-09-14 Simon Marchi <simon.marchi@efficios.com>
3053
3054 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3055 type::has_no_signedness.
3056
15152a54
SM
30572020-09-14 Simon Marchi <simon.marchi@efficios.com>
3058
3059 * gdbtypes.h (struct type) <has_no_signedness,
3060 set_has_no_signedness>: New methods.
3061 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3062 call sites to use type::set_has_no_signedness.
3063
c6d940a9
SM
30642020-09-14 Simon Marchi <simon.marchi@efficios.com>
3065
3066 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3067 type::is_unsigned.
3068
653223d3
SM
30692020-09-14 Simon Marchi <simon.marchi@efficios.com>
3070
3071 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3072 methods.
3073 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3074 sites to use type::set_is_unsigned.
3075
55ea94da 30762020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 3077 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 3078
e851246a
SM
3079 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3080 pointer and stack frame offset when unwinding.
55ea94da 3081
6791b117
PA
30822020-09-13 Pedro Alves <pedro@palves.net>
3083
3084 * NEWS: Document "-break-insert --qualified".
3085 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3086
77f2120b
PA
30872020-09-13 Pedro Alves <pedro@palves.net>
3088
3089 * linespec.c (classify_mtype, compare_msyms): Delete.
3090 (search_minsyms_for_name): Remove classification logic. Instead
3091 filter out trampoline symbols if we also found an external
3092 function of the same name.
3093
ed6a896c
JB
30942020-09-13 Joel Brobecker <brobecker@adacore.com>
3095
3096 * NEWS: Create a new section for the next release branch.
3097 Rename the section of the current branch, now that it has
3098 been cut.
3099
32aea73e
JB
31002020-09-13 Joel Brobecker <brobecker@adacore.com>
3101
3102 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3103 * version.in: Bump version to 11.0.50.DATE-git.
3104
8087c3fa
JB
31052020-09-12 Joel Brobecker <brobecker@adacore.com>
3106
3107 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3108
2a67f09d
FW
31092020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3110 Felix Willgerodt <Felix.Willgerodt@intel.com>
3111
3112 * gdbarch.sh: Added bfloat16 type.
3113 * gdbarch.c: Regenerated.
3114 * gdbarch.h: Regenerated.
3115 * gdbtypes.c (floatformats_bfloat16): New struct.
3116 (gdbtypes_post_init): Add builtin_bfloat16.
3117 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3118 (floatformats_bfloat16): New struct.
3119 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3120 (i386_ymm_type): Add field "v16_bfloat16"
3121 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3122 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3123 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3124 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3125 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3126 * features/i386/64bit-avx512.c: Regenerated.
3127 * features/i386/64bit-sse.xml: Add bfloat16 type.
3128 * features/i386/64bit-sse.c: Regenerated.
3129
1347d111
FW
31302020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3131
3132 * i386-tdep.c (i386_zmm_type): Fix field names.
3133 (i386_ymm_type): Fix field names.
3134
7a4e8e7d
TBA
31352020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3136
3137 * breakpoint.c: Fix typo in the help message of the
3138 "set breakpoint condition-evaluation" command.
3139
cf4ac4be
KR
31402020-09-10 Kamil Rytarowski <n54@gmx.com>
3141
3142 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3143 * (nbsd_nat_target::pid_to_exec_file)
3144 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3145 (nbsd_nat_target::post_startup_inferior)
3146 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3147 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3148 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3149 * (nbsd_thread_lister): Remove.
3150
f404573e
KR
31512020-09-10 Kamil Rytarowski <n54@gmx.com>
3152
3153 * fork-inferior.c (startup_inferior): Avoid double free.
3154
1ccb2c17
KR
31552020-09-10 Kamil Rytarowski <n54@gmx.com>
3156
3157 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3158 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3159
feedfcc7
KR
31602020-09-10 Kamil Rytarowski <n54@gmx.com>
3161
3162 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3163 * netbsd-nat.c: Include <sys/ptrace.h>.
3164 * (netbsd_nat::enable_proc_events): Add.
3165
c489f8c6
KR
31662020-09-10 Kamil Rytarowski <n54@gmx.com>
3167
3168 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3169 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3170 (netbsd_nat::for_each_thread): Add.
3171 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3172 "gdbsupport/common-debug.h".
3173 * (netbsd_nat::netbsd_thread_lister)
3174 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3175 (netbsd_nat::for_each_thread): Add.
3176
330662f6
KR
31772020-09-10 Kamil Rytarowski <n54@gmx.com>
3178
3179 * netbsd-nat.h: Include <unistd.h>.
3180 * (netbsd_nat::pid_to_exec_file): Add.
3181 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3182 * (netbsd_nat::pid_to_exec_file) Add.
3183
70b67307
KR
31842020-09-10 Kamil Rytarowski <n54@gmx.com>
3185
3186 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3187
99cf6da6
KR
31882020-09-10 Kamil Rytarowski <n54@gmx.com>
3189
3190 * netbsd-nat.h: New file.
3191 * netbsd-nat.c: Likewise.
3192
1b788fb6
TT
31932020-09-09 Tom Tromey <tromey@adacore.com>
3194
3195 * ada-lang.c (remove_extra_symbols): Do not increment when
3196 removing an element
3197
03b0a45f
TT
31982020-09-08 Tom Tromey <tromey@adacore.com>
3199
3200 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3201
3cae4447
TT
32022020-09-08 Tom Tromey <tromey@adacore.com>
3203
3204 PR win32/25302:
3205 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3206 (gdb_bfd_init_data): New function.
3207 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3208
7f08fd51
TBA
32092020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3210
3211 * infrun.c (fetch_inferior_event): Use
3212 `switch_to_target_no_thread` to switch the target.
3213
3e6ff933
TT
32142020-09-06 Tom Tromey <tom@tromey.com>
3215
3216 * symfile.h (dwarf2_free_objfile): Don't declare.
3217
e56798df
AKS
32182020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3219
3220 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3221 to match 16 byte real/complex type generated by Flang compiler.
3222
8f5c6526
TV
32232020-09-03 Tom de Vries <tdevries@suse.de>
3224
3225 PR breakpoint/26546
3226 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3227 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3228
c5065df0
SM
32292020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3230
3231 * maint.c (index_digits): New function.
3232 (struct maint_print_section_data): Remove.
3233 (print_bfd_section_info): Remove print_data parameter, add arg
3234 and index_digits.
3235 (print_objfile_section_info): Likewise.
3236 (print_bfd_section_info_maybe_relocated): Likewise (plus
3237 objfile).
3238 (maintenance_info_sections): Adjust calls.
3239
02c6f3f1
TT
32402020-09-02 Tom Tromey <tromey@adacore.com>
3241
3242 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3243 for null pointers.
3244 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3245
ef5e5b0b
SM
32462020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3247
3248 * bcache.h (struct bcache) <insert>: Change type of `added` to
3249 pointer to bool.
3250 * bcache.c (bcache::insert): Likewise.
3251 * gdbtypes.c (check_types_worklist): Adjust.
3252 * psymtab.c (add_psymbol_to_bcache): Adjust.
3253
973695d6
KB
32542020-08-31 Kevin Buettner <kevinb@redhat.com>
3255
3256 * corelow.c (unordered_set): Include.
3257 (class core_target): Add field 'm_core_unavailable_mappings'.
3258 (core_target::build_file_mappings): Print only one warning
3259 per inaccessible file. Add unavailable/broken mappings
3260 to m_core_unavailable_mappings.
3261 (core_target::xfer_partial): Call...
3262 (core_target::xfer_memory_via_mappings): New method.
3263
264fc0e2
SM
32642020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3265
3266 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3267 type to bool.
3268
2de01bdb
SM
32692020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3270
3271 * dwarf2/read.c (struct field_info): Fix indentation.
3272
f3bd50f1
SM
32732020-08-31 Simon Marchi <simon.marchi@efficios.com>
3274
3275 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3276 ordering in comment.
3277 * frame.c (frame_id_eq): Fix indentation.
3278
22b9b4b0
SL
32792020-08-31 Scott Linder <scott@scottlinder.com>
3280 Simon Marchi <simon.marchi@efficios.com>
3281
3282 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3283 inline frame ids in outer frame.
3284
84154d16
SM
32852020-08-31 Simon Marchi <simon.marchi@efficios.com>
3286
3287 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3288 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3289 (outer_frame_id): Use FID_STACK_OUTER instead of
3290 FID_STACK_INVALID.
3291 (frame_id_p): Don't check for outer_frame_id.
3292
8efaf6b3
SM
32932020-08-31 Simon Marchi <simon.marchi@efficios.com>
3294
3295 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3296 regnum/frame in value. Call allocate_value_lazy.
3297 * frame.c (frame_unwind_register_value): Use
3298 val_print_not_saved.
3299
fe1fe7ea
SM
33002020-08-31 Simon Marchi <simon.marchi@efficios.com>
3301
3302 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3303
f7c7700d
PA
33042020-08-29 Pedro Alves <pedro@palves.net>
3305
3306 * progspace.c (print_program_space): Use all_inferiors. Switch to
3307 the inferior before calling target_pid_to_str.
3308
e0814aae
TT
33092020-08-28 Tom Tromey <tom@tromey.com>
3310
3311 * xcoffread.c (xcoff_end_psymtab): Update comment.
3312 * dbxread.c (dbx_end_psymtab): Update comment.
3313
626d2320
TV
33142020-08-28 Tom de Vries <tdevries@suse.de>
3315
3316 PR breakpoint/26544
3317 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3318 event_location.
3319 (create_breakpoint): Same.
3320 (base_breakpoint_decode_location): Same.
3321 (bkpt_create_sals_from_location): Same.
3322 (bkpt_decode_location): Same.
3323 (bkpt_probe_create_sals_from_location): Same.
3324 (bkpt_probe_decode_location): Same.
3325 (tracepoint_create_sals_from_location): Same.
3326 (tracepoint_decode_location): Same.
3327 (tracepoint_probe_decode_location): Same.
3328 (strace_marker_create_sals_from_location): Same.
3329 (strace_marker_decode_location): Same.
3330 (create_sals_from_location_default): Same.
3331 (decode_location_default): Same.
3332 * breakpoint.h (struct breakpoint_ops): Same.
3333 (create_breakpoint): Same.
3334 * linespec.h (decode_line_full): Same.
3335 * linespec.c (decode_line_full): Same. Throw error if
3336 result.size () == 0.
3337
df631783
PA
33382020-08-27 Pedro Alves <pedro@palves.net>
3339
3340 PR gdb/26524
3341 * breakpoint.c (until_break_fsm) <location_breakpoint,
3342 caller_breakpoint>: Delete fields.
3343 <breakpoints>: New field.
3344 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3345 two individual breakpoints.
3346 (until_break_fsm::should_stop): Loop over breakpoints in the
3347 breakpoint vector.
3348 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3349 vector.
3350 (until_break_command): Handle location expanding into multiple
3351 sals.
3352
b2b38aa4
PA
33532020-08-27 Pedro Alves <pedro@palves.net>
3354
3355 PR gdb/26523
3356 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3357 bp_until breakpoints user-specified locations. Update intro
3358 comment.
3359
b886559f
SM
33602020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3361
3362 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3363 gdb_bfd_sections): New.
3364 * maint.c (print_bfd_section_info): Change param type to
3365 maint_print_section_data.
3366 (print_objfile_section_info): Likewise.
3367 (print_bfd_section_info_maybe_relocated): Likewise.
3368 (maintenance_info_sections): Use gdb_bfd_sections.
3369
4c6e63bf
SV
33702020-08-25 Shahab Vahedi <shahab@synopsys.com>
3371
3372 * MAINTAINERS: Add ARC target and maintainer.
3373
8d7f0635
AK
33742020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3375
3376 * configure.tgt: ARC support for GNU/Linux.
3377 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3378 * arc-linux-tdep.c: New file.
3379 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3380 * arc-tdep.c (arc_write_pc): Use it.
3381
fdd8731b
SV
33822020-08-25 Shahab Vahedi <shahab@synopsys.com>
3383
3384 * arc-tdep.c (arc_check_for_hardware_loop): New.
3385 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3386
22459524
SV
33872020-08-25 Shahab Vahedi <shahab@synopsys.com>
3388
3389 * arc-tdep.h: Include "gdbarch.h".
3390
995d3a19
SV
33912020-08-25 Shahab Vahedi <shahab@synopsys.com>
3392
3393 * arch/arc.h
3394 (arc_gdbarch_features): New class to stir the selection of target XML.
3395 (arc_create_target_description): Use FEATURES to choose XML target.
3396 (arc_lookup_target_description): Use arc_create_target_description
3397 to create _new_ target descriptions or return the already created
3398 ones if the FEATURES is the same.
3399 * arch/arc.c: Implementation of prototypes described above.
3400 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3401 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3402 * arc-tdep.c (*_feature_name): Make feature names consistent.
3403 (arc_register_feature): A new struct to hold information about
3404 registers of a particular target/feature.
3405 (arc_check_tdesc_feature): Check if XML provides registers in
3406 compliance with ARC_REGISTER_FEATURE structs.
3407 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3408 (determine_*_reg_feature_set): Which feature name to look for.
3409 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3410 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3411 to expected ISA enums to be used in arc_gdbarch_features structs.
3412 * features/Makefile (FEATURE_XMLFILES): Add new files.
3413 * gdb/features/arc/v1-aux.c: New file.
3414 * gdb/features/arc/v1-aux.xml: Likewise.
3415 * gdb/features/arc/v1-core.c: Likewise.
3416 * gdb/features/arc/v1-core.xml: Likewise.
3417 * gdb/features/arc/v2-aux.c: Likewise.
3418 * gdb/features/arc/v2-aux.xml: Likewise.
3419 * gdb/features/arc/v2-core.c: Likewise.
3420 * gdb/features/arc/v2-core.xml: Likewise.
3421 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3422
3945d2d7
GM
34232020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3424 Andrew Burgess <andrew.burgess@embecosm.com>
3425
3426 PR m2/26372
fc5d6901 3427 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
3428 an assert. Remove single element array indexing pattern as the
3429 MULTI_SUBSCRIPT support will handle this case too.
3430
2677f2d3
SM
34312020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3432
3433 * value.h (valprint_check_validity): Move declaration from
3434 here...
3435 * valprint.h (valprint_check_validity): ... to here.
3436
c426fddb
SM
34372020-08-24 Simon Marchi <simon.marchi@efficios.com>
3438
3439 * debug.h: New file.
3440 * debug.c (debug_prefixed_vprintf): New function.
3441 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3442 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3443
1eb8556f
SM
34442020-08-24 Simon Marchi <simon.marchi@efficios.com>
3445
3446 * infrun.h (infrun_debug_printf_1): New function declaration.
3447 (infrun_debug_printf): New macro.
3448 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3449 throughout.
3450 (infrun_debug_printf): New function.
3451 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3452 (handle_jit_event): Likewise.
3453
b8fff44e
MW
34542020-08-21 Mark Wielaard <mark@klomp.org>
3455
3456 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3457
d19c3068
SM
34582020-08-22 Simon Marchi <simon.marchi@efficios.com>
3459
3460 * frame.c (enum class frame_id_status): New.
3461 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3462 (fprintf_frame): Update.
3463 (compute_frame_id): Set frame id status to "computing" on entry.
3464 Set it back to "not_computed" on failure and to "computed" on
3465 success.
3466 (get_frame_id): Assert the frame id is not being computed.
3467 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3468 (create_new_frame): Likewise.
3469 (frame_cleanup_after_sniffer): Update assert.
3470
b70e516e
SM
34712020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3472
3473 * regcache.c (pid_ptid_regcache_map): New type.
3474 (target_ptid_regcache_map): Remove.
3475 (target_pid_ptid_regcache_map): New type.
3476 (regcaches): Change type to target_pid_ptid_regcache_map.
3477 (get_thread_arch_aspace_regcache): Update.
3478 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3479 case.
3480 (regcaches_size): Update.
3481 (regcache_count): Update.
3482 (registers_changed_ptid_target_pid_test): New.
3483 (_initialize_regcache): Register new test.
3484
cdd9148a
SM
34852020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3486
3487 * regcache.c (regcache_count): New.
3488 (struct regcache_test_data): New.
3489 (regcache_test_data_up): New.
3490 (populate_regcaches_for_test): New.
3491 (regcaches_test): Remove.
3492 (get_thread_arch_aspace_regcache_test): New.
3493 (registers_changed_ptid_all_test): New.
3494 (registers_changed_ptid_target_test): New.
3495 (registers_changed_ptid_target_ptid_test): New.
3496 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3497 (_initialize_regcache): Register new tests.
3498
dd125343
SM
34992020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3500
3501 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3502 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3503 gdbarch and aspace parameter. Use current inferior's aspace.
3504 Validate regcache's arch value.
3505 (regcaches_test): Update.
3506
3ee93972
SM
35072020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3508
3509 * regcache.c (regcaches_test): Call registers_changed.
3510
33bf4c5c
TBA
35112020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3512
3513 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3514
c2fd7fae
AKS
35152020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3516
3517 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3518 to find the end of prologue for flang compiled binaries.
3519 * arm-tdep.c (arm_skip_prologue): Likewise.
3520 * i386-tdep.c (i386_skip_prologue): Likewise.
3521 * producer.c (producer_is_llvm): New function.
3522 (producer_parsing_tests): Added new tests for clang/flang.
3523 * producer.h (producer_is_llvm): New declaration.
3524
9327494e
SM
35252020-08-18 Simon Marchi <simon.marchi@efficios.com>
3526
3527 * linux-nat.c (linux_nat_debug_printf): New function.
3528 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3529
d138725a
AM
35302020-08-18 Aaron Merey <amerey@redhat.com>
3531
3532 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3533 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3534 (CLIBS): Add DEBUGINFOD_LIBS.
3535
f9b11e6b
ST
35362020-08-17 Sergei Trofimovich <siarheit@google.com>
3537
3538 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3539 'gdbarch_num_regs'.
3540
3ae7ab99
TT
35412020-08-17 Tom Tromey <tromey@adacore.com>
3542
3543 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3544 ada_get_decoded_value returns NULL.
3545
b017825f
TT
35462020-08-17 Tom Tromey <tromey@adacore.com>
3547
3548 * python/py-inferior.c (infpy_search_memory): Use
3549 gdb_py_object_from_ulongest.
3550 * python/py-infevents.c (create_inferior_call_event_object)
3551 (create_memory_changed_event_object): Use
3552 gdb_py_object_from_ulongest.
3553 * python/py-linetable.c (ltpy_entry_get_pc): Use
3554 gdb_py_object_from_ulongest.
3555
7635cf79
SM
35562020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3557
3558 * loc.c (class symbol_needs_eval_context): Fix indentation.
3559
f54be24b
SM
35602020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3561
3562 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3563 bool.
3564
53d5a2a5
TV
35652020-08-17 Tom de Vries <tdevries@suse.de>
3566
3567 PR gdb/26393
3568 * gdbtypes.c (dump_dynamic_prop): New function.
3569 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3570
547ce8f0
TV
35712020-08-15 Tom de Vries <tdevries@suse.de>
3572
3573 PR backtrace/26390
3574 * stack.c (print_frame_args): Temporarily set the selected
3575 frame to FRAME while printing the frame's arguments.
3576
6ea815e7
PFC
35772020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3578
3579 PR breakpoints/26385
3580 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3581 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3582
6e562fa3
PFC
35832020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3584
3585 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3586 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3587 and >= to check return value instead of == -1 and != -1.
3588
d369b608
SM
35892020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3590
3591 * utils.h (class gdb_argv) <as_array_view>: New method.
3592 * utils.c (gdb_argv_as_array_view_test): New.
3593 (_initialize_utils): Register selftest.
3594 * maint.c (maintenance_selftest): Use the new method.
3595
b31488a3
KR
35962020-08-13 Kamil Rytarowski <n54@gmx.com>
3597
3598 * target.h (supports_dumpcore, dumpcore): New
3599 function declarations.
3600 * target.c (supports_dumpcore, dumpcore): New
3601 functions.
3602 * target-delegates.c: Rebuild.
3603 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3604 and target_dumpcore ().
3605
002a3166
AM
36062020-08-13 Aaron Merey <amerey@redhat.com>
3607
3608 * debuginfod-support.c: Replace global variables with user_data.
3609
ece5bc8a
SM
36102020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3611
3612 * maint.c (maintenance_selftest): Split args and pass array_view
3613 to run_tests.
3614
6d8a0a5e
LM
36152020-08-12 Luis Machado <luis.machado@linaro.org>
3616
3617 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3618 type's length.
3619 Use %s and pulongest to print the length.
3620
7cf663a9
PA
36212020-08-12 Pedro Alves <palves@redhat.com>
3622
3623 * NEWS: Move "Multi-target debugging support" item to the
3624 "Changes since GDB 9" section.
3625
27c7b875
PA
36262020-08-12 Pedro Alves <palves@redhat.com>
3627
3628 PR gdb/26336
3629 * progspace.c (program_space::remove_objfile): Invalidate the
3630 frame cache.
3631
1796a2a1
TV
36322020-08-11 Tom de Vries <tdevries@suse.de>
3633
3634 * MAINTAINERS: Mark ms1 as deleted.
3635
f8e3fe0d
LM
36362020-08-10 Luis Machado <luis.machado@linaro.org>
3637
3638 PR gdb/26310
3639
3640 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3641 act accordingly.
3642 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3643 movz/str/stur/stp skipping behavior.
3644
cc308722
LM
36452020-08-10 Luis Machado <luis.machado@linaro.org>
3646
3647 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3648 struct user_sve_header instead of struct sve_context.
3649
041d9819
SM
36502020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3651
3652 * read.h (dwarf2_fetch_die_loc_sect_off,
3653 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3654 `void *` parameter with function_view.
3655 * read.c (dwarf2_fetch_die_loc_sect_off,
3656 dwarf2_fetch_die_loc_cu_off): Likewise.
3657 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3658 (per_cu_dwarf_call): Adjust.
3659 (get_frame_address_in_block_wrapper): Remove.
3660 (indirect_synthetic_pointer): Adjust.
3661 (get_ax_pc): Remove.
3662 (dwarf2_compile_expr_to_ax): Adjust.
3663
38f8aa06
TV
36642020-08-08 Tom de Vries <tdevries@suse.de>
3665
3666 PR build/26344
3667 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3668 constructor.
3669 * regcache.c (get_thread_arch_aspace_regcache): Same.
3670
a52b3ae2
TT
36712020-08-07 Tom Tromey <tromey@adacore.com>
3672
3673 * ravenscar-thread.c
3674 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3675 New method.
3676 (ravenscar_thread_target::wait): Check
3677 runtime_initialized.
3678 (ravenscar_thread_target::prepare_to_store)
3679 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3680 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3681 (ravenscar_thread_target::stopped_by_watchpoint)
3682 (ravenscar_thread_target::stopped_data_address)
3683 (ravenscar_thread_target::core_of_thread): Use
3684 scoped_restore_current_thread and
3685 set_base_thread_from_ravenscar_task.
3686
0e29517d
TT
36872020-08-07 Tom Tromey <tromey@adacore.com>
3688
3689 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3690
592f9bd7
TT
36912020-08-07 Tom Tromey <tromey@adacore.com>
3692
3693 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3694 update_inferior_ptid before update_thread_list.
3695 (temporarily_change_regcache_ptid): New class.
3696 (ravenscar_thread_target::fetch_registers)
3697 (ravenscar_thread_target::store_registers)
3698 (ravenscar_thread_target::prepare_to_store): Use base thread when
3699 forwarding operation.
3700
39e2018a
TT
37012020-08-07 Tom Tromey <tromey@adacore.com>
3702
3703 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3704 "is_pid" case.
3705
2080266b
TT
37062020-08-07 Tom Tromey <tromey@adacore.com>
3707
3708 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3709 New methods.
3710 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3711 first.
3712 (ravenscar_thread_target::add_thread): Rename from
3713 ravenscar_add_thread.
3714 (ravenscar_thread_target::update_thread_list): Use a lambda.
3715 (ravenscar_thread_target::xfer_partial): New method.
3716
78c02f21
TT
37172020-08-07 Tom Tromey <tromey@adacore.com>
3718
3719 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3720 gdb::function_view.
3721 (iterate_over_live_ada_tasks): Change type of argument.
3722 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3723 of argument.
3724
d5d833af
TT
37252020-08-07 Tom Tromey <tromey@adacore.com>
3726
3727 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3728 Remove.
3729 (ravenscar_thread_target::extra_thread_info): Remove.
3730 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3731 defer to target beneath for non-Ravenscar threads.
3732
a8ac85bb
TT
37332020-08-07 Tom Tromey <tromey@adacore.com>
3734
3735 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3736 get_base_thread_from_ravenscar_task>: Now methods.
3737 <m_cpu_map>: New member.
3738 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3739 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3740 (ravenscar_thread_target::task_is_currently_active): Update.
3741 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3742 Now a method.
3743 (ravenscar_thread_target::add_active_thread): Put initial thread
3744 into the m_cpu_map.
3745
550ab58d
TT
37462020-08-07 Tom Tromey <tromey@adacore.com>
3747
3748 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3749 event_ptid.
3750
e9546579
TT
37512020-08-07 Tom Tromey <tromey@adacore.com>
3752
3753 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3754 runtime_initialized.
3755
3d4470e5
TT
37562020-08-07 Tom Tromey <tromey@adacore.com>
3757
3758 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3759 add_active_thread.
3760 (ravenscar_thread_target::add_active_thread): Now public.
3761 (ravenscar_inferior_created): Call add_active_thread after pushing
3762 the target.
3763
888bdb2b
SM
37642020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3765
3766 * regcache.c (ptid_regcache_map): New type.
3767 (target_ptid_regcache_map): New type.
3768 (regcaches): Change type to target_ptid_regcache_map.
3769 (get_thread_arch_aspace_regcache): Update to regcaches' new
3770 type.
3771 (regcache_thread_ptid_changed): Likewise.
3772 (registers_changed_ptid): Likewise.
3773 (regcaches_size): Likewise.
3774 (regcaches_test): Update.
3775 (regcache_thread_ptid_changed): Update.
3776 * regcache.h (regcache_up): New type.
3777 * gdbsupport/ptid.h (hash_ptid): New struct.
3778
b161a60d
SM
37792020-08-07 Simon Marchi <simon.marchi@efficios.com>
3780
3781 * observable.h (thread_ptid_changed): Add parameter
3782 `process_stratum_target *`.
3783 * infrun.c (infrun_thread_ptid_changed): Add parameter
3784 `process_stratum_target *` and use it.
3785 (selftests): New namespace.
3786 (infrun_thread_ptid_changed): New function.
3787 (_initialize_infrun): Register selftest.
3788 * regcache.c (regcache_thread_ptid_changed): Add parameter
3789 `process_stratum_target *` and use it.
3790 (regcache_thread_ptid_changed): New function.
3791 (_initialize_regcache): Register selftest.
3792 * thread.c (thread_change_ptid): Pass target to
3793 thread_ptid_changed observable.
3794
d2854d8d
CT
37952020-08-06 Caroline Tice <cmtice@google.com>
3796
fe4c3d43
SM
3797 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3798 (struct dwp_sections): Update field comments. Add loclists and
3799 rnglists fields.
3800 (struct virtual_v2_dwo_sections): Rename struct to
3801 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3802 size & offset fields for loclists and rnglists.
3803 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3804 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3805 skipping dummy type units.
3806 (create_dwp_hash_table): Update the large comment above the function to
3807 discuss Version 5 DWP files as well, with references. Update all the
3808 version checks in the function to check for version 5 as well. Add new
3809 section at the end to create dwp hash table for version 5.
3810 (create_dwp_v2_section): Rename function to
3811 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3812 Add V5 to error message text.
3813 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3814 into calls to create_dwp_v2_or_v5_section.
3815 (create_dwo_unit_in_dwp_v5): New function.
3816 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3817 check for version2; add else clause to handle version 5.
3818 (open_and_init_dwo_file): Add code to check dwarf version & only call
3819 create_debug_types_hash_table (with sections.types) if version is not 5;
3820 else call create_debug_type_hash_table, with sections.info.
3821 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3822 version 5.
3823 (dwarf2_locate_v5_dwp_sections): New function.
3824 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3825 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 3826
159ed7d9
SM
38272020-08-06 Simon Marchi <simon.marchi@efficios.com>
3828
3829 * regcache.h (class regcache): Remove friend
3830 registers_changed_ptid.
3831 <regcache_thread_ptid_changed>: Remove.
3832 <regcaches>: Remove.
3833 * regcache.c (regcache::regcaches): Rename to...
3834 (regcaches): ... this. Make static.
3835 (get_thread_arch_aspace_regcache): Update.
3836 (regcache::regcache_thread_ptid_changed): Rename to...
3837 (regcache_thread_ptid_changed): ... this. Update.
3838 (class regcache_access): Remove.
3839 (regcaches_test): Update.
3840 (_initialize_regcache): Update.
3841 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3842 <forward_list>.
3843
174981ae
SM
38442020-08-06 Simon Marchi <simon.marchi@efficios.com>
3845
3846 * regcache.h (class regcache) <current_regcache>: Rename to...
3847 <regcaches>: ... this. Move doc here.
3848 * regcache.c (regcache::current_regcache) Rename to...
3849 (regcache::regcaches): ... this. Move doc to header.
3850 (get_thread_arch_aspace_regcache): Update.
3851 (regcache::regcache_thread_ptid_changed): Update.
3852 (registers_changed_ptid): Update.
3853 (class regcache_access) <current_regcache_size>: Rename to...
3854 <regcaches_size>: ... this.
3855 (current_regcache_test): Rename to...
3856 (regcaches_test): ... this.
3857 (_initialize_regcache): Update.
3858
ed908db6
VC
38592020-08-06 Victor Collod <vcollod@nvidia.com>
3860
3861 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3862
b5582ab7
KB
38632020-08-05 Kevin Buettner <kevinb@redhat.com>
3864
3865 * corelow.c (core_target::build_file_mappings): Don't output
3866 null pathname in warning.
3867
ea946b86
SM
38682020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3869
3870 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3871 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3872 gdb.dwarf2/dw2-single-line-discriminators.exp,
3873 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3874
57d02173
TT
38752020-08-05 Tom Tromey <tromey@adacore.com>
3876
3877 PR rust/26197:
3878 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3879 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3880 Fix off-by-one and type size errors in ordinary case.
3881
5555c86d
TV
38822020-08-05 Tom de Vries <tdevries@suse.de>
3883
3884 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3885 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3886
97916bfe
SM
38872020-08-04 Simon Marchi <simon.marchi@efficios.com>
3888
3889 * frame.h (frame_id_p): Return bool.
3890 (frame_id_artificial_p): Return bool.
3891 (frame_id_eq): Return bool.
3892 (has_stack_frames): Return bool.
3893 (get_selected_frame): Fix typo in comment.
3894 (get_frame_pc_if_available): Return bool.
3895 (get_frame_address_in_block_if_available): Return bool.
3896 (get_frame_func_if_available): Return bool.
3897 (read_frame_register_unsigned): Return bool.
3898 (get_frame_register_bytes): Return bool.
3899 (safe_frame_unwind_memory): Return bool.
3900 (deprecated_frame_register_read): Return bool.
3901 (frame_unwinder_is): Return bool.
3902 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3903 bool.
3904 <this_id::p>: Likewise.
3905 <prev_p>: Likewise.
3906 (frame_stash_add): Return bool.
3907 (get_frame_id): Use bool.
3908 (frame_id_build_special) Use bool.
3909 (frame_id_build_unavailable_stack): Use bool.
3910 (frame_id_build): Use bool.
3911 (frame_id_p): Return bool, use true/false instead of 1/0.
3912 (frame_id_artificial_p): Likewise.
3913 (frame_id_eq): Likewise.
3914 (frame_id_inner): Likewise.
3915 (get_frame_func_if_available): Likewise.
3916 (read_frame_register_unsigned): Likewise.
3917 (deprecated_frame_register_read): Likewise.
3918 (get_frame_register_bytes): Likewise.
3919 (has_stack_frames): Likewise.
3920 (inside_main_func): Likewise.
3921 (inside_entry_func): Likewise.
3922 (get_frame_pc_if_available): Likewise.
3923 (get_frame_address_in_block_if_available): Likewise.
3924 (frame_unwinder_is): Likewise.
3925 (safe_frame_unwind_memory): Likewise.
3926 (frame_unwind_arch): Likewise.
3927
fedfee88
SM
39282020-08-04 Simon Marchi <simon.marchi@efficios.com>
3929
3930 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3931 type to cached_copy_status.
3932 (fprintf_frame): Adjust.
3933 (get_frame_func_if_available): Adjust.
3934 (frame_cleanup_after_sniffer): Adjust.
3935
6cfa9b59
MW
39362020-08-04 Mark Wielaard <mark@klomp.org>
3937
3938 * MAINTAINERS (Write After Approval): Update email address.
3939
66d6346b
SM
39402020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3941
3942 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3943 dynamic_prop::const_val.
3944
8a6d5e35
SM
39452020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3946
3947 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3948 dynamic_prop::kind.
3949
51d6067d
SM
39502020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3951
3952 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3953
b26e2ae7
JM
39542020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3955
3956 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3957
39791af2
JM
39582020-08-04 Weimin Pan <weimin.pan@oracle.com>
3959 Jose E. Marchesi <jose.marchesi@oracle.com>
3960
3961 * configure.tgt: Add entry for bpf-*-*.
3962 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3963 (ALLDEPFILES): Add bpf-tdep.c.
3964 * bpf-tdep.c: New file.
3965 * MAINTAINERS: Add bpf target and maintainer.
3966 * NEWS: Mention the support for the new target.
3967
521894aa
TV
39682020-08-04 Tom de Vries <tdevries@suse.de>
3969
3970 PR symtab/23270
3971 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3972 Error.
3973
5d6356e9
JB
39742020-08-03 John Baldwin <jhb@FreeBSD.org>
3975
3976 * syscalls/freebsd.xml: Regenerate.
3977
0cf82b81
JB
39782020-08-03 John Baldwin <jhb@FreeBSD.org>
3979
3980 * syscalls/update-freebsd.sh: Fix usage and year range.
3981
8f34b746
TV
39822020-08-03 Tom de Vries <tdevries@suse.de>
3983
3984 PR symtab/26333
3985 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3986 DW_LNE_lo_user/DW_LNE_hi_user range.
3987
5e500d33
SM
39882020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3989
3990 PR ada/26318
3991 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3992 kind.
3993
78319c15
TBA
39942020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3995
3996 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3997
4c55e970
TBA
39982020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3999
4000 * breakpoint.c (set_breakpoint_condition): Update the condition
4001 expressions after checking that the input condition string parses
4002 successfully and does not contain junk at the end.
4003
1e620590
TBA
40042020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4005
4006 * breakpoint.c (set_breakpoint_condition): Update the
4007 condition string after parsing the new condition successfully.
4008
c8693053
RO
40092020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4010
4011 * proc-api.c (_STRUCTURED_PROC): Don't define.
4012 * proc-events.c: Likewise.
4013 * proc-flags.c: Likewise.
4014 * proc-why.c: Likewise.
4015 * procfs.c: Likewise.
4016
4017 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4018 * configure, config.in: Regenerate.
4019
5a99adb8
TV
40202020-07-30 Tom de Vries <tdevries@suse.de>
4021
4022 PR build/26320
4023 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4024 m_red/m_green/m_blue in a union.
4025
8ba83e91
TV
40262020-07-29 Tom de Vries <tdevries@suse.de>
4027
4028 PR tdep/26280
4029 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4030
f75a0693
AB
40312020-07-28 Tom Tromey <tromey@adacore.com>
4032
4033 PR symtab/26270:
4034 * symtab.h (find_pc_partial_function_sym): Declare.
4035 * cli/cli-cmds.c (disassemble_command): Use
4036 find_pc_partial_function_sym. Check asm_demangle.
4037 * blockframe.c (cache_pc_function_sym): New global.
4038 (cache_pc_function_name): Remove.
4039 (clear_pc_function_cache): Update.
4040 (find_pc_partial_function_sym): New function, from
4041 find_pc_partial_function.
4042 (find_pc_partial_function): Rewrite using
4043 find_pc_partial_function_sym.
4044
16f3242c
TT
40452020-07-28 Tom Tromey <tromey@adacore.com>
4046
4047 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4048 help. Add usage.
4049
4888741a
TT
40502020-07-28 Tom Tromey <tromey@adacore.com>
4051
4052 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4053 <DW_OP_GNU_variable_value>: Cast to address type.
4054
4d46f402
KR
40552020-07-28 Kamil Rytarowski <n54@gmx.com>
4056
4057 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4058 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4059 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4060 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4061 (nbsd_get_siginfo_type): New.
4062 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4063 (_initialize_nbsd_tdep): New.
4064
d70f978b
L
40652020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4066
4067 PR binutils/26301
4068 * configure: Regenerated.
4069
377170fa
L
40702020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4071
4072 PR binutils/26301
4073 * configure: Regenerated.
4074
43d5901d
AB
40752020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4076
4077 * python/py-frame.c: Remove 'user-regs.h' include.
4078 (frapy_read_register): Rewrite to make use of
4079 gdbpy_parse_register_id.
4080 * python/py-registers.c (gdbpy_parse_register_id): New function,
4081 moved here from python/py-unwind.c. Updated the return type, and
4082 also accepts register descriptor objects.
4083 * python/py-unwind.c: Remove 'user-regs.h' include.
4084 (pyuw_parse_register_id): Moved to python/py-registers.c.
4085 (unwind_infopy_add_saved_register): Update to use
4086 gdbpy_parse_register_id.
4087 (pending_framepy_read_register): Likewise.
4088 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4089
14fa8fb3
AB
40902020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4091
4092 * python/py-registers.c: Add 'user-regs.h' include.
4093 (register_descriptor_iter_find): New function.
4094 (register_descriptor_iterator_object_methods): New static global
4095 methods array.
4096 (register_descriptor_iterator_object_type): Add pointer to methods
4097 array.
4098
ddce1758
JB
40992020-07-27 John Baldwin <jhb@FreeBSD.org>
4100
4101 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4102 for all architectures on FreeBSD 11.3 and later.
4103
a4089f52
TT
41042020-07-27 Tom Tromey <tromey@adacore.com>
4105
4106 * gcore.h (load_corefile): Don't declare.
4107
95420d30
TV
41082020-07-27 Tom de Vries <tdevries@suse.de>
4109
4110 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4111 * config.in: Regenerate.
4112 * configure: Regenerate.
4113
05a6b8c2
EZ
41142020-07-26 Eli Zaretskii <eliz@gnu.org>
4115
4116 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4117 ws2tcpip.h. When checking whether socklen_t type is defined, use
4118 ws2tcpip.h if it is available and sys/socket.h isn't.
4119 * configure: Regenerate.
4120 * config.in: Regenerate.
4121
e79eb02f
AB
41222020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4123
4124 PR fortran/23051
4125 PR fortran/26139
4126 * valops.c (value_ind): Pass address to
4127 readjust_indirect_value_type.
4128 * value.c (readjust_indirect_value_type): Make parameter
4129 non-const, and add extra address parameter. Resolve original type
4130 before using it.
4131 * value.h (readjust_indirect_value_type): Update function
4132 signature and comment.
4133
876518dd
TV
41342020-07-25 Tom de Vries <tdevries@suse.de>
4135
4136 PR symtab/26243
4137 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4138 entries.
4139
f6720b1c
AM
41402020-07-24 Aaron Merey <amerey@redhat.com>
4141
4142 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4143 * configure: Rebuild.
4144
513487e1
KB
41452020-07-23 Kevin Buettner <kevinb@redhat.com>
4146
4147 PR corefiles/26294
4148 * corelow.c (_initialize_corelow): Add period to help text
4149 for "maintenance print core-file-backed-mappings".
4150
e7bc9db8
PA
41512020-07-23 Pedro Alves <pedro@palves.net>
4152
4153 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4154 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4155 meanwhile.
4156 * frame.c (frame_cache_generation, get_frame_cache_generation):
4157 New.
4158 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4159 (get_prev_frame_if_no_cycle): On exception, don't touch
4160 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4161 * frame.h (get_frame_cache_generation): Declare.
4162
90fcc466
TV
41632020-07-23 Tom de Vries <tdevries@suse.de>
4164
4165 PR tui/26282
4166 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4167 New default constructor.
4168
78344df7
AB
41692020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4170
4171 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4172 exclude non-statement entries.
4173
b089853a
KB
41742020-07-22 Kevin Buettner <kevinb@redhat.com>
4175
4176 * NEWS (New commands): Mention new command
4177 "maintenance print core-file-backed-mappings".
4178
09c2f5d4
KB
41792020-07-22 Kevin Buettner <kevinb@redhat.com>
4180
4181 * corelow.c (gdbcmd.h): Include.
4182 (core_target::info_proc_mappings): New method.
4183 (get_current_core_target): New function.
4184 (maintenance_print_core_file_backed_mappings): New function.
4185 (_initialize_corelow): Add core-file-backed-mappings to
4186 "maint print" commands.
4187
9c5ec5c2 41882020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 4189
9c5ec5c2
KB
4190 * linux-tdep.c (dump_note_entry_p): New function.
4191 (linux_dump_mapping_p_ftype): New typedef.
4192 (linux_find_memory_regions_full): Add new parameter,
4193 should_dump_mapping_p.
4194 (linux_find_memory_regions): Adjust call to
4195 linux_find_memory_regions_full.
4196 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4197 call to linux_find_memory_regions_full.
4198
db082f59
KB
41992020-07-22 Kevin Buettner <kevinb@redhat.com>
4200
4201 * corelow.c (solist.h, unordered_map): Include.
4202 (class core_target): Add field m_core_file_mappings and
4203 method build_file_mappings.
4204 (core_target::core_target): Call build_file_mappings.
4205 (core_target::~core_target): Free memory associated with
4206 m_core_file_mappings.
4207 (core_target::build_file_mappings): New method.
4208 (core_target::xfer_partial): Use m_core_file_mappings
4209 for memory transfers.
4210 * linux-tdep.c (linux_read_core_file_mappings): New
4211 function.
4212 (linux_core_info_proc_mappings): Rewrite to use
4213 linux_read_core_file_mappings.
4214 (linux_init_abi): Register linux_read_core_file_mappings.
4215
7e183d27
KB
42162020-07-22 Kevin Buettner <kevinb@redhat.com>
4217
4218 * arch-utils.c (default_read_core_file_mappings): New function.
4219 * arch-utils.c (default_read_core_file_mappings): Declare.
4220 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4221 * gdbarch.h, gdbarch.c: Regenerate.
4222
2735d421
KB
42232020-07-22 Kevin Buettner <kevinb@redhat.com>
4224
4225 PR corefiles/25631
4226 * corelow.c (core_target:xfer_partial): Revise
4227 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4228 case after first checking the stratum beneath the core
4229 target.
4230 (has_all_memory): Return true.
4231 * target.c (raw_memory_xfer_partial): Revise comment
4232 regarding use of has_all_memory.
4233
e56cb451
KB
42342020-07-22 Kevin Buettner <kevinb@redhat.com>
4235
4236 * exec.h (section_table_xfer_memory): Revise declaration,
4237 replacing section name parameter with an optional callback
4238 predicate.
4239 * exec.c (section_table_xfer_memory): Likewise.
4240 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4241 of section_table_xfer_memory.
4242
32fa152e
TT
42432020-07-22 Tom Tromey <tromey@adacore.com>
4244
4245 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4246 lookup_symbol_search_name.
4247
a67a1c41
AB
42482020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4249
4250 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4251 redundant local variable.
4252 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4253 reference, not pointer, update code accordingly.
4254
a7b4ff4f
SM
42552020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4256 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4257
4258 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4259 * jit.c (jit_breakpoint_re_set_internal): Use the
4260 `skip_jit_symbol_lookup` field.
4261
2340e834
SM
42622020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4263 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4264
4265 * jit.c (jit_read_descriptor): Define the descriptor address once,
4266 use twice.
4267 (jit_breakpoint_deleted): Move the declaration of the loop variable
4268 `iter` into the loop header.
4269 (jit_breakpoint_re_set_internal): Move the declaration of the local
4270 variable `objf_data` to the first point of definition.
4271 (jit_event_handler): Move the declaration of local variables
4272 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4273 Rename `objf` to `jited`.
4274
c1072906
SM
42752020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4276
4277 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4278 Remove.
4279 * jit.c (get_jiter_objfile_data): Update.
4280
c8474dc3
TBA
42812020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4282 Simon Marchi <simon.marchi@polymtl.ca>
4283
4284 * jit.c (struct jit_program_space_data): Remove.
4285 (jit_program_space_key): Remove.
4286 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4287 stuff.
4288 (get_jit_program_space_data): Remove.
4289 (jit_breakpoint_deleted): Iterate on all of the program space's
4290 objfiles.
4291 (jit_inferior_init): Likewise.
4292 (jit_breakpoint_re_set_internal): Likewise. Also change return
4293 type to void.
4294 (jit_breakpoint_re_set): Pass current_program_space to
4295 jit_breakpoint_re_set_internal.
4296
77208eb7
SM
42972020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4298
4299 * jit.h (struct jiter_objfile_data) <cached_code_address,
4300 jit_breakpoint>: Move to here from ...
4301 * jit.c (jit_program_space_data): ... here.
4302 (jiter_objfile_data::~jiter_objfile_data): Update.
4303 (jit_breakpoint_deleted): Update.
4304 (jit_breakpoint_re_set_internal): Update.
4305
8c1c720f
SM
43062020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4307
4308 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4309 checks.
4310 (jit_read_descriptor): Remove NULL check.
4311 (jit_event_handler): Add an assertion.
4312
0e74a041
SM
43132020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4314
4315 * jit.h (struct jit_objfile_data): Split into...
4316 (struct jiter_objfile_data): ... this ...
4317 (struct jited_objfile_data): ... and this.
4318 * objfiles.h (struct objfile) <jit_data>: Remove.
4319 <jiter_data, jited_data>: New fields.
4320 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4321 (jiter_objfile_data::~jiter_objfile_data): ... this.
4322 (get_jit_objfile_data): Rename to ...
4323 (get_jiter_objfile_data): ... this.
4324 (add_objfile_entry): Update.
4325 (jit_read_descriptor): Use get_jiter_objfile_data.
4326 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4327 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4328 (jit_inferior_exit_hook): Use objfile's jited_data field.
4329
238b5c9f
SM
43302020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4331
4332 * jit.h: Forward-declare `struct minimal_symbol`.
4333 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4334 constructor, destructor, and an objfile* field.
4335 * jit.c (jit_objfile_data): Remove.
4336 (struct jit_objfile_data): Migrate from here to jit.h.
4337 (jit_objfile_data::~jit_objfile_data): New destructor
4338 implementation with code moved from free_objfile_data.
4339 (free_objfile_data): Delete.
4340 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4341 (jit_find_objf_with_entry_addr): Ditto.
4342 (jit_inferior_exit_hook): Ditto.
4343 (_initialize_jit): Remove the call to
4344 register_objfile_data_with_cleanup.
4345 * objfiles.h (struct objfile) <jit_data>: New field.
4346
fe053b9e
TBA
43472020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4348
4349 * jit.h: Forward-declare `struct objfile`.
4350 (jit_event_handler): Add a second parameter, the JITer objfile.
4351 * jit.c (jit_read_descriptor): Change the signature to take the
4352 JITer objfile as an argument instead of the jit_program_space_data.
4353 (jit_inferior_init): Update the call to jit_read_descriptor.
4354 (jit_event_handler): Use the new JITer objfile argument when calling
4355 jit_read_descriptor.
4356 * breakpoint.c (handle_jit_event): Update the call to
4357 jit_event_handler to pass the JITer objfile.
4358
4cec0c66
JB
43592020-07-21 John Baldwin <jhb@FreeBSD.org>
4360
4361 * gdbarch.c: Regenerate.
4362 * gdbarch.h: Regenerate.
4363 * gdbarch.sh (handle_segmentation_fault): Remove method.
4364 * infrun.c (handle_segmentation_fault): Remove.
4365 (print_signal_received_reason): Remove call to
4366 handle_segmentation_fault.
4367
0e42f66a
JB
43682020-07-21 John Baldwin <jhb@FreeBSD.org>
4369
4370 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4371 Rename to sparc64_linux_report_signal_info and add siggnal
4372 argument.
4373 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4374 instead of sparc64_linux_handle_segmentation_fault.
4375
77bdfeb2
JB
43762020-07-21 John Baldwin <jhb@FreeBSD.org>
4377
4378 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4379 i386_linux_report_signal_info instead of
4380 i386_linux_handle_segmentation_fault.
4381 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4382 to i386_linux_report_signal_info and add siggnal argument.
4383 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4384 of i386_linux_handle_segmentation_fault.
4385 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4386 to i386_linux_report_signal_info and add siggnal argument.
4387
ad97bfc5
JB
43882020-07-21 John Baldwin <jhb@FreeBSD.org>
4389
4390 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4391 hook if present.
4392
272bb05c
JB
43932020-07-21 John Baldwin <jhb@FreeBSD.org>
4394
4395 * gdbarch.c: Regenerate.
4396 * gdbarch.h: Regenerate.
4397 * gdbarch.sh (report_signal_info): New method.
4398 * infrun.c (print_signal_received_reason): Invoke gdbarch
4399 report_signal_info hook if present.
4400
baf8791e
AB
44012020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4402
4403 * python/py-registers.c : Add 'unordered_map' include.
4404 (gdbpy_new_reggroup): Renamed to...
4405 (gdbpy_get_reggroup): ...this. Update to only create register
4406 group descriptors when needed.
4407 (gdbpy_reggroup_iter_next): Update.
4408
f7306dac
AB
44092020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4410
4411 * python/py-registers.c (gdbpy_register_object_data): New static
4412 global.
4413 (gdbpy_register_object_data_init): New function.
4414 (gdbpy_new_register_descriptor): Renamed to...
4415 (gdbpy_get_register_descriptor): ...this, and update to reuse
4416 existing register descriptors where possible.
4417 (gdbpy_register_descriptor_iter_next): Update.
4418 (gdbpy_initialize_registers): Register new gdbarch data.
4419
05c309a8
SM
44202020-07-21 Simon Marchi <simon.marchi@efficios.com>
4421
4422 * linux-nat.c (stopped_pids): Make static.
4423
d1fd641e
SM
44242020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4425
4426 PR ada/26235
4427 * gdbtypes.c (ada_discrete_type_low_bound,
4428 ada_discrete_type_high_bound): Handle undefined bounds.
4429
1de14d77
KR
44302020-07-21 Kamil Rytarowski <n54@gmx.com>
4431
4432 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4433 declaration.
4434 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4435 function.
4436
ed810cc7
JB
44372020-07-20 John Baldwin <jhb@FreeBSD.org>
4438
4439 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4440 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4441 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4442 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4443 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4444 method.
4445
ae5369e7
LC
44462020-07-20 Ludovic Courtès <ludo@gnu.org>
4447
4448 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4449 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4450 which are deprecated in Guile 3.0.
4451 * configure.ac (try_guile_versions): Add "guile-3.0".
4452 * configure (try_guile_versions): Regenerate.
4453 * NEWS: Update entry.
4454
68cf161c
LC
44552020-07-20 Ludovic Courtès <ludo@gnu.org>
4456 Doug Evans <dje@google.com>
4457
4458 PR gdb/21104
4459 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4460 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4461 USING_GUILE_BEFORE_2_2.
4462 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4463 Change type to 'scm_t_port_type *'.
4464 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4465 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4466 parameter and honor it. Update callers.
4467 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4468 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4469 functions.
4470 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4471 USING_GUILE_BEFORE_2_2.
4472 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4473 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4474 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4475 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4476 and 'SCM_PORT_TYPE'.
4477 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4478 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4479 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4480 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4481 [!USING_GUILE_BEFORE_2_2]: New functions.
4482 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4483 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4484 'gdbscm_memory_port_read'.
4485 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4486 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4487 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4488 function.
4489 (ioscm_init_memory_port): Remove.
4490 (ioscm_init_memory_port_stream): New function
4491 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4492 function.
4493 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4494 Return scm_from_uint (0).
4495 (gdbscm_set_memory_port_read_buffer_size_x)
4496 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4497 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4498 Return scm_from_uint (0).
4499 (gdbscm_set_memory_port_write_buffer_size_x)
4500 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4501 * configure.ac (try_guile_versions): Add "guile-2.2".
4502 * configure: Regenerate.
4503 * NEWS: Add entry.
4504
aee91db3
TT
45052020-07-18 Tom Tromey <tom@tromey.com>
4506
4507 * linux-nat.c (linux_multi_process): Remove.
4508 (linux_nat_target::supports_multi_process): Return true.
4509
0e267416
AB
45102020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4511
4512 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4513 (riscv_lookup_target_description): Return pointer out of
4514 unique_ptr.
4515 * target-descriptions.c (allocate_target_description): Add
4516 comment.
4517 (target_desc_deleter::operator()): Likewise.
4518 * target-descriptions.h (struct target_desc_deleter): Moved to
4519 gdbsupport/tdesc.h.
4520 (target_desc_up): Likewise.
4521
f80c8ec4
TT
45222020-07-17 Tom Tromey <tromey@adacore.com>
4523
4524 * linux-nat.c (linux_nat_target::supports_non_stop)
4525 (linux_nat_target::always_non_stop_p): Use "true".
4526 (linux_nat_target::supports_disable_randomization): Use "true" and
4527 "false".
4528
d0ce17d8
CT
45292020-07-16 Caroline Tice <cmtice@google.com>
4530
4531 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4532 (RNGLIST_HEADER_SIZE64): New constant definition.
4533 (struct dwop_section_names): Add rnglists_dwo.
4534 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4535 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4536 (struct dwo_sections): Add rnglists field.
4537 (read_attribut_reprocess): Add tag parameter.
4538 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4539 (cu_debug_rnglists_section): New function (decl & definition).
4540 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4541 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4542 die whose range is being checked; get rnglist section from
4543 cu_debug_rnglists_section, to get from either objfile or dwo file as
4544 appropriate. Add cases for DW_RLE_base_addressx,
4545 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4546 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4547 test inside if-condition and updating complaint message.
4548 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4549 dwarf2_rnglists_process.
4550 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4551 dwarf2_ranges_process.
4552 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4553 need_ranges_base and update comment appropriately. Also pass die tag
4554 to dwarf2_ranges_read.
4555 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4556 need_ranges_base and update comment appropriately. Also pass die tag
4557 to dwarf2_ranges_process.
4558 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4559 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4560 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4561 need_ranges_base and update comment appropriately. Also pass die tag
4562 to read_attribute_reprocess and dwarf2_ranges_read.
4563 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4564 and update function comment appropriately.
4565 (read_loclist_index): Call read_loclists_rnglists_header instead of
4566 read_loclist_header.
4567 (read_rnglist_index): New function.
4568 (read_attribute_reprocess): Add tag parameter. Add code for
4569 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4570 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4571
3dcc261c
AB
45722020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4573
4574 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4575 being resolved.
4576
ccb9eba6
AB
45772020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4578
4579 * arch-utils.c (show_architecture): Update formatting of messages.
4580
cf88be68
SM
45812020-07-12 Simon Marchi <simon.marchi@efficios.com>
4582
4583 * gdbtypes.h (struct type) <bounds>: Handle array and string
4584 types.
4585 * ada-lang.c (assign_aggregate): Use type::bounds on
4586 array/string type.
4587 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4588 * c-varobj.c (c_number_of_children): Likewise.
4589 (c_describe_child): Likewise.
4590 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4591 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4592 (f_type_print_base): Likewise.
4593 * f-valprint.c (f77_array_offset_tbl): Likewise.
4594 (f77_get_upperbound): Likewise.
4595 (f77_print_array_1): Likewise.
4596 * guile/scm-type.c (gdbscm_type_range): Likewise.
4597 * m2-typeprint.c (m2_array): Likewise.
4598 (m2_is_long_set_of_type): Likewise.
4599 * m2-valprint.c (get_long_set_bounds): Likewise.
4600 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4601 * python/py-type.c (typy_range): Likewise.
4602 * rust-lang.c (rust_internal_print_type): Likewise.
4603 * type-stack.c (type_stack::follow_types): Likewise.
4604 * valarith.c (value_subscripted_rvalue): Likewise.
4605 * valops.c (value_cast): Likewise.
4606
509971ae
SM
46072020-07-12 Simon Marchi <simon.marchi@efficios.com>
4608
4609 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4610 callers to use the equivalent accessor methods.
4611
107406b7
SM
46122020-07-12 Simon Marchi <simon.marchi@efficios.com>
4613
4614 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4615 (struct type) <bit_stride>: New method.
4616 (TYPE_BIT_STRIDE): Remove.
4617 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4618
bb789949
SM
46192020-07-12 Simon Marchi <simon.marchi@efficios.com>
4620
4621 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4622 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4623 callers to use the equivalent accessor methods instead.
4624
39498edb
SM
46252020-07-12 Simon Marchi <simon.marchi@efficios.com>
4626
4627 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4628 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4629 callers to use the equivalent accessor methods instead.
4630
3b606f38
SM
46312020-07-12 Simon Marchi <simon.marchi@efficios.com>
4632
4633 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4634 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4635 to use dynamic_prop::kind.
4636
064d9cb9
SM
46372020-07-12 Simon Marchi <simon.marchi@efficios.com>
4638
4639 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4640 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4641 to get the bound property's kind and check against
4642 PROP_UNDEFINED.
4643
5537ddd0
SM
46442020-07-12 Simon Marchi <simon.marchi@efficios.com>
4645
4646 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4647 all callers to use type::range_bounds followed by
4648 dynamic_prop::{low,high}.
4649
8c2e4e06
SM
46502020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4651
4652 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4653 const_val, set_const_val, baton, set_locexpr, set_loclist,
4654 set_addr_offset, variant_parts, set_variant_parts,
4655 original_type, set_original_type>: New methods.
4656 <kind>: Rename to...
4657 <m_kind>: ... this. Update all users to use the new methods
4658 instead.
4659 <data>: Rename to...
4660 <m_data>: ... this. Update all users to use the new methods
4661 instead.
4662
7c6f2712
SM
46632020-07-12 Simon Marchi <simon.marchi@efficios.com>
4664
4665 * gdbtypes.c (get_discrete_bounds): Return failure if
4666 the range type's bounds are not both defined and constant
4667 values.
4668 (get_array_bounds): Update comment. Remove undefined bound check.
4669
599088e3
SM
46702020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4671
4672 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4673 the type::bounds method directly.
4674
c4dfcb36
SM
46752020-07-12 Simon Marchi <simon.marchi@efficios.com>
4676
4677 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4678 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4679 are used to set the range type's bounds to use set_bounds.
4680
0a278aa7
PW
46812020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4682
4683 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4684
cce20f10
PA
46852020-07-10 Pedro Alves <pedro@palves.net>
4686
4687 * gdbthread.h (inferior_ref): Define.
4688 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4689 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4690 * thread.c
4691 (scoped_restore_current_thread::restore):
4692 Adjust to gdb::ref_ptr.
4693 (scoped_restore_current_thread::~scoped_restore_current_thread):
4694 Remove manual decref handling.
4695 (scoped_restore_current_thread::scoped_restore_current_thread):
4696 Adjust to use
4697 inferior_ref::new_reference/thread_info_ref::new_reference.
4698 Incref the thread before calling get_frame_id instead of after.
4699 Let TARGET_CLOSE_ERROR propagate.
4700
6d7aa592
PA
47012020-07-10 Pedro Alves <pedro@palves.net>
4702
4703 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4704 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4705 NOT_AVAILABLE_ERROR.
4706 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4707 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4708
b3e3a4c1
SM
47092020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4710 Pedro Alves <pedro@palves.net>
4711
4712 PR gdb/26199
4713 * infrun.c (threads_are_resumed_pending_p): Delete.
4714 (do_target_wait): Remove threads_are_executing and
4715 threads_are_resumed_pending_p checks from the inferior_matches
4716 lambda. Update comments.
4717
d6cc5d98
PA
47182020-07-10 Pedro Alves <pedro@palves.net>
4719
4720 PR gdb/26199
4721 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4722 executing threads.
4723
7d3badc6
PA
47242020-07-10 Pedro Alves <pedro@palves.net>
4725
4726 PR gdb/26199
4727 * infrun.c (handle_no_resumed): Handle multiple targets.
4728
42bd97a6
PA
47292020-07-10 Pedro Alves <pedro@palves.net>
4730
4731 PR gdb/26199
4732 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4733 target_is_async_p.
4734
43667cc6
PA
47352020-07-10 Pedro Alves <pedro@palves.net>
4736
4737 PR gdb/26199
4738 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4739 threads, not all threads.
4740
96118d11
PA
47412020-07-10 Pedro Alves <pedro@palves.net>
4742
4743 PR gdb/26199
4744 * remote.c (remote_target::open_1): Pass remote target pointer as
4745 data to create_async_event_handler.
4746 (remote_async_inferior_event_handler): Mark async event handler
4747 before returning if the remote target still has either pending
4748 events or unacknowledged notifications.
4749
54904d81
JB
47502020-07-10 John Baldwin <jhb@FreeBSD.org>
4751
4752 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4753 declaration.
4754 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4755 function.
4756
f37e5866
JB
47572020-07-09 John Baldwin <jhb@FreeBSD.org>
4758
4759 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4760 inferior_ptid.
4761
fc238d4a
JB
47622020-07-09 John Baldwin <jhb@FreeBSD.org>
4763
4764 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4765 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4766 AT_FREEBSD_PS_STRINGS.
4767
6e2469ff
HD
47682020-07-08 Hannes Domani <ssbssa@yahoo.de>
4769
4770 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4771 of debugfile path on Windows.
4772
d1076c41
JB
47732020-07-08 John Baldwin <jhb@FreeBSD.org>
4774
4775 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4776 argument to 'data'.
4777
15f3b077
TT
47782020-07-08 Tom Tromey <tromey@adacore.com>
4779
4780 * ada-lang.c (ada_exception_message_1): Use read_memory.
4781
9fc501fd
AB
47822020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4783
4784 PR python/22748
4785 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4786 special handling for inline frames.
4787 * findvar.c (value_of_register_lazy): Skip inline frames when
4788 creating lazy register values.
4789 * frame.c (frame_id_computed_p): Delete definition.
4790 * frame.h (frame_id_computed_p): Delete declaration.
4791
64cb3757
AB
47922020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4793
4794 * NEWS: Mention additions to Python API.
4795 * python/py-arch.c (archpy_register_groups): New function.
4796 (arch_object_methods): Add 'register_groups' method.
4797 * python/py-registers.c (reggroup_iterator_object): New struct.
4798 (reggroup_object): New struct.
4799 (gdbpy_new_reggroup): New function.
4800 (gdbpy_reggroup_to_string): New function.
4801 (gdbpy_reggroup_name): New function.
4802 (gdbpy_reggroup_iter): New function.
4803 (gdbpy_reggroup_iter_next): New function.
4804 (gdbpy_new_reggroup_iterator): New function
4805 (gdbpy_initialize_registers): Register new types.
4806 (reggroup_iterator_object_type): Define new Python type.
4807 (gdbpy_reggroup_getset): New static global.
4808 (reggroup_object_type): Define new Python type.
4809 * python/python-internal.h
4810
0f767f94
AB
48112020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4812
4813 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4814 * python/py-arch.c (archpy_registers): New function.
4815 (arch_object_methods): Add 'registers' method.
4816 * python/py-registers.c: New file.
4817 * python/python-internal.h
4818 (gdbpy_new_register_descriptor_iterator): Declare.
4819 (gdbpy_initialize_registers): Declare.
4820 * python/python.c (do_start_initialization): Call
4821 gdbpy_initialize_registers.
4822 * NEWS: Mention additions to the Python API.
4823
87dbc774
AB
48242020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4825
4826 * NEWS: Mention new Python API method.
4827 * python/py-unwind.c (pending_framepy_architecture): New function.
4828 (pending_frame_object_methods): Add architecture method.
4829
3bc98c0c
AB
48302020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4831
4832 * gdbarch.c: Regenerate.
4833 * gdbarch.h: Regenerate.
4834 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4835 (gdbarch_data): Use internal_error for the case where
4836 deprecated_set_gdbarch_data was originally needed.
4837 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4838 and use passed in obstack.
4839 (libunwind_frame_set_descr): Should no longer get back NULL from
4840 gdbarch_data.
4841 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4842 type.
4843 * user-regs.c (user_regs_init): Update parameters, and use passed
4844 in obstack.
4845 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4846 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4847
d8cc8af6
TV
48482020-07-06 Tom de Vries <tdevries@suse.de>
4849
4850 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4851 End-Of-Sequence in lte_is_less_than.
4852 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4853 "gdb: Don't reorder line table entries too much when sorting".
4854
947f7597
TV
48552020-07-06 Tom de Vries <tdevries@suse.de>
4856
4857 PR tui/26205
4858 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4859
1e7c1b22
TV
48602020-07-05 Tom de Vries <tdevries@suse.de>
4861
4862 PR build/26187
4863 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4864 std::uncaught_exceptions instead of deprecated
4865 std::uncaught_exception.
4866
a36158ec
SM
48672020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4868
4869 * macroexp.h (macro_stringify): Return
4870 gdb::unique_xmalloc_ptr<char>.
4871 * macroexp.c (macro_stringify): Likewise.
4872 * macrotab.c (fixup_definition): Update.
4873
14d960c8
SM
48742020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4875
4876 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4877 (lex_one_token): Update.
4878 * macroexp.c (struct macro_buffer) <release>: Return
4879 gdb::unique_xmalloc_ptr<char>.
4880 (macro_stringify): Update.
4881 (macro_expand): Update.
4882 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4883 * macroexp.h (macro_expand_next): Likewise.
4884
211d5b1c
SM
48852020-07-02 Simon Marchi <simon.marchi@efficios.com>
4886
4887 * macroexp.h (macro_lookup_ftype): Remove.
4888 (macro_expand, macro_expand_once, macro_expand_next): Remove
4889 lookup function parameters, add scope parameter.
4890 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4891 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4892 * macroscope.h (standard_macro_lookup): Change parameter type
4893 to macro_scope.
4894 * macroscope.c (standard_macro_lookup): Likewise.
4895 * c-exp.y (lex_one_token): Update.
4896 * macrocmd.c (macro_expand_command): Likewise.
4897 (macro_expand_once_command): Likewise.
4898
b1a35af2
SM
48992020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4900
4901 * inf-loop.c (inferior_event_handler): Remove client_data param.
4902 * inf-loop.h (inferior_event_handler): Likewise.
4903 * infcmd.c (step_1): Adjust.
4904 * infrun.c (proceed): Adjust.
4905 (fetch_inferior_event): Remove client_data param.
4906 (infrun_async_inferior_event_handler): Adjust.
4907 * infrun.h (fetch_inferior_event): Remove `void *` param.
4908 * linux-nat.c (handle_target_event): Adjust.
4909 * record-btrace.c (record_btrace_handle_async_inferior_event):
4910 Adjust.
4911 * record-full.c (record_full_async_inferior_event_handler):
4912 Adjust.
4913 * remote.c (remote_async_inferior_event_handler): Adjust.
4914
1cdf9e33
TT
49152020-07-01 Tom Tromey <tom@tromey.com>
4916
4917 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4918 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4919
32c1e210
TT
49202020-07-01 Tom Tromey <tom@tromey.com>
4921
4922 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4923 tui_gen_win_info.
4924 (tui_win_info::make_window): Merge with
4925 tui_gen_win_info::make_window.
4926 (tui_win_info::make_visible): Move from tui_gen_win_info.
4927 * tui/tui-win.c (tui_win_info::max_width): Move from
4928 tui_gen_win_info.
4929 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4930 type.
4931 <window_factory>: Likewise.
4932 * tui/tui-layout.c (tui_win_info::resize): Move from
4933 tui_gen_win_info.
4934 (make_standard_window): Change return type.
4935 (get_locator_window, tui_get_window_by_name): Likewise.
4936 (tui_layout_window::apply): Remove a cast.
4937 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4938 (struct tui_win_info): Merge with tui_gen_win_info.
4939 (struct tui_gen_win_info): Remove.
4940
a30cb6da
TT
49412020-07-01 Tom Tromey <tom@tromey.com>
4942
4943 * tui/tui-stack.h (struct tui_locator_window): Derive from
4944 tui_win_info.
4945 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4946 <can_box>: New method.
4947
1eb2161f
TT
49482020-07-01 Tom Tromey <tom@tromey.com>
4949
4950 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4951
7134f2eb
TT
49522020-07-01 Tom Tromey <tom@tromey.com>
4953
4954 * tui/tui-regs.c (tui_data_window::display_registers_from)
4955 (tui_data_window::display_registers_from)
4956 (tui_data_window::first_data_item_displayed)
4957 (tui_data_window::delete_data_content_windows): Update.
4958 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4959 Remove.
4960 (tui_data_window::check_register_values): Update.
4961 (tui_data_item_window::rerender): Add parameters. Update.
4962 (tui_data_item_window::refresh_window): Remove.
4963 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4964 virtual.
4965 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4966 tui_gen_win_info.
4967 <refresh_window, max_height, min_height>: Remove.
4968 <rerender>: Add parameters.
4969 <x, y, visible>: New members.
4970 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4971 <m_item_width>: New member.
4972
22b7b041
TT
49732020-07-01 Tom Tromey <tom@tromey.com>
4974
4975 * tui/tui-regs.c (tui_data_window::show_register_group)
4976 (tui_data_window::check_register_values): Update.
4977 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4978 from item_no.
4979
c9753adb
TT
49802020-07-01 Tom Tromey <tom@tromey.com>
4981
4982 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4983 useless "if".
4984
9ab26b4a
TT
49852020-07-01 Tom Tromey <tom@tromey.com>
4986
4987 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4988 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4989
e555083f
TT
49902020-07-01 Tom Tromey <tom@tromey.com>
4991
4992 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4993 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4994 (struct tui_line_or_address): Move from tui-data.h.
4995 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4996 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4997 (tui_cmd_window, tui_source_window_base, tui_source_window)
4998 (tui_disasm_window): Don't declare.
4999 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
5000 to tui-winsource.h.
5001 (SINGLE_KEY): Move to tui-stack.c.
5002
7a02bab7
TT
50032020-07-01 Tom Tromey <tom@tromey.com>
5004
5005 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5006 std::string.
5007 * tui/tui-regs.c (class tab_expansion_file): New.
5008 (tab_expansion_file::write): New method.
5009 (tui_register_format): Change return type. Use
5010 tab_expansion_file.
5011 (tui_get_register, tui_data_window::display_registers_from)
5012 (tui_data_item_window::rerender): Update.
5013 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5014 * tui/tui-io.c (tui_expand_tabs): Remove.
5015
ea68593b
TT
50162020-07-01 Tom Tromey <tom@tromey.com>
5017
5018 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5019
a8caed5d
FS
50202020-07-01 Fangrui Song <maskray@google.com>
5021
5022 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5023
9cdf9820
AKS
50242020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5025
5026 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5027 forms for DW_AT_associated and DW_AT_allocated attributes,
5028 which is already checked in function attr_to_dynamic_prop.
5029
a1520ad8
TT
50302020-06-30 Tom Tromey <tromey@adacore.com>
5031
5032 * dwarf2/read.c (quirk_rust_enum): Correctly call
5033 alloc_rust_variant for default-less enum.
5034
5ac58899
TT
50352020-06-30 Tom Tromey <tromey@adacore.com>
5036
5037 PR build/26183:
5038 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5039 gdb::to_string.
5040
19b187a9
SM
50412020-06-29 Simon Marchi <simon.marchi@efficios.com>
5042
5043 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5044 * gdbarch.h: Re-generate.
5045
cd4c4c07
TT
50462020-06-28 Tom Tromey <tom@tromey.com>
5047
5048 * command.h (cmd_types): Remove.
5049 (cmd_type): Don't declare.
5050 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5051 typedef.
5052 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5053 * cli/cli-decode.c (cmd_type): Remove.
5054
05779d57
PA
50552020-06-27 Pedro Alves <palves@redhat.com>
5056
5057 * fork-child.c (prefork_hook): Adjust.
5058 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5059 Delete.
5060 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5061 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5062 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5063 Remove declarations.
5064 (struct inferior) <set_tty, tty>: New methods.
5065 (struct inferior) <terminal>: Rename to ...
5066 (struct inferior) <m_terminal>: ... this and make private.
5067 * main.c (captured_main_1): Adjust.
5068 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5069 (mi_cmd_inferior_tty_show): Adjust.
5070 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5071 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5072
1776e3e5
NA
50732020-06-26 Nick Alcock <nick.alcock@oracle.com>
5074
5075 * configure.ac: Add --enable-libctf: handle --disable-static
5076 properly.
5077 * acinclude.m4: sinclude ../config/enable.m4.
5078 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5079 (LIBCTF): Substitute in.
5080 (CTF_DEPS): New, likewise.
5081 (CLIBS): libctf needs symbols from libbfd: move earlier.
5082 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5083 flags.
5084 * ctfread.c: Surround in ENABLE_LIBCTF.
5085 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5086 * configure: Regenerate.
5087 * config.in: Likewise.
5088
58373b80
SM
50892020-06-25 Simon Marchi <simon.marchi@efficios.com>
5090
5091 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5092
277474ee
SM
50932020-06-25 Simon Marchi <simon.marchi@efficios.com>
5094
5095 * inferior.h (struct inferior) <terminal>: Change type to
5096 gdb::unique_xmalloc_ptr<char>.
5097 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5098 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5099 field, adjust to unique pointer.
5100 (get_inferior_io_terminal): Adjust to unique pointer.
5101
6d74da72
AB
51022020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5103
5104 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5105 registers, not just the known core set of registers.
5106
2e52d038
AB
51072020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5108
5109 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5110 fflags, frm, and fcsr registers.
5111 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5112 restore groups.
5113 (riscv_tdesc_unknown_reg): New function.
5114 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5115 tdesc_use_registers.
5116 * riscv-tdep.h (struct gdbarch_tdep): Add
5117 unknown_csrs_first_regnum, unknown_csrs_count,
5118 duplicate_fflags_regnum, duplicate_frm_regnum, and
5119 duplicate_fcsr_regnum fields.
5120
be64fd07
AB
51212020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5122
5123 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5124 callback, use the callback (when not null) to help number unknown
5125 registers.
5126 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5127 (tdesc_use_registers): Add extra parameter to declaration.
5128
3b9fce96
AB
51292020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5130
5131 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5132 in the file.
5133 (class riscv_pending_register_alias): Likewise.
5134 (riscv_register_feature::register_info): Change 'required_p' field
5135 to 'required', and change its type. Add 'check' member function.
5136 (riscv_register_feature::register_info::check): Define new member
5137 function.
5138 (riscv_xreg_feature): Change initialisation of 'required' field.
5139 (riscv_freg_feature): Likewise.
5140 (riscv_virtual_feature): Likewise.
5141 (riscv_csr_feature): Likewise.
5142 (riscv_check_tdesc_feature): Take extra parameter, the csr
5143 tdesc_feature, rewrite the function to use the new
5144 riscv_register_feature::register_info::check function.
5145 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5146
865bad26
AB
51472020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5148
5149 * features/Makefile: Remove all references to the deleted files
5150 below.
5151 * features/riscv/32bit-csr.c: Deleted.
5152 * features/riscv/32bit-csr.xml: Deleted.
5153 * features/riscv/64bit-csr.c: Deleted.
5154 * features/riscv/64bit-csr.xml: Deleted.
5155 * features/riscv/rebuild-csr-xml.sh: Deleted.
5156
ed69cbc8
AB
51572020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5158
5159 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5160 whitespace error for declaration of names member variable.
5161 (struct riscv_register_feature): Add new prefer_first_name member
5162 variable, and fix whitespace error in declaration of registers.
5163 (riscv_xreg_feature): Initialize prefer_first_name field.
5164 (riscv_freg_feature): Likewise.
5165 (riscv_virtual_feature): Likewise.
5166 (riscv_csr_feature): Likewise.
5167 (riscv_register_name): Expand on comments. Remove register name
5168 modifications for CSR and virtual registers.
5169
4445e8f5
AB
51702020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5171
5172 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5173 errors.
5174
767a879e
AB
51752020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5176
5177 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5178 riscv-opc.h.
5179 (class riscv_pending_register_alias): New class.
5180 (riscv_check_tdesc_feature): Take vector of pending aliases and
5181 populate it as appropriate.
5182 (riscv_setup_register_aliases): Delete.
5183 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5184 to riscv_check_tdesc_feature in all cases. Use the vector to
5185 create the register aliases.
5186
bb6e55f3
RO
51872020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5188
5189 * sol2-tdep.c (sol2_static_transform_name): Remove.
5190 (sol2_init_abi): Don't register it.
5191 * gdbarch.sh (static_transform_name): Remove.
5192 * gdbarch.c, gdbarch.h: Regenerate.
5193
5194 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5195 gdbarch_static_transform_name.
5196 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5197 * stabsread.c (define_symbol) <'X'>: Remove.
5198 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5199 handling.
5200 <'V'>: Likewise.
5201 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5202 <'S'>: Remove call to gdbarch_static_transform_name.
5203
c6d36836
RO
52042020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5205
5206 * procfs.c (procfs_pre_trace): New function.
5207 (procfs_target::create_inferior): Pass it to fork_inferior.
5208
a7e6196b
RO
52092020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5210
5211 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5212 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5213 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5214 sol2-tdep.o, sparc-sol2-tdep.o.
5215 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5216 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5217 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5218 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5219
d412e696
RO
52202020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5221
5222 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5223 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5224 Call sol2_init_abi.
5225 Remove calls to set_gdbarch_skip_solib_resolver,
5226 set_gdbarch_core_pid_to_str.
5227 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5228 (i386_sol2_static_transform_name): Remove.
5229 (i386_sol2_init_abi): Call sol2_init_abi.
5230 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5231 set_gdbarch_static_transform_name,
5232 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5233 Use sol2_sigtramp_p.
5234 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5235 (sol2_sigtramp_p): New function.
5236 (sol2_static_transform_name): New function.
5237 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5238 (sol2_init_abi): New function.
5239 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5240 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5241 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5242 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5243 (sparc_sol2_static_transform_name): Remove.
5244 (sparc32_sol2_init_abi): Call sol2_init_abi.
5245 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5246 set_gdbarch_static_transform_name,
5247 set_gdbarch_skip_solib_resolver,
5248 set_gdbarch_core_pid_to_str.
5249 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5250 (sparc_sol2_static_transform_name): Remove
5251 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5252 call sol2_sigtramp_p.
5253 (sparc64_sol2_init_abi): Call sol2_init_abi.
5254 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5255 set_gdbarch_static_transform_name,
5256 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5257
a8654e7d
PW
52582020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5259
5260 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5261 * exec.c (validate_exec_file): If from_tty, set both
5262 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5263 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5264 and from_tty, unconditionally ask a confirmation.
5265
caa7fd04
AB
52662020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5267
5268 * target-descriptions.c (tdesc_architecture_name): Protect against
5269 NULL pointer dereference.
5270 (maint_print_xml_tdesc_cmd): New function.
5271 (_initialize_target_descriptions): Register new 'maint print
5272 xml-tdesc' command and give it the filename completer.
5273 * NEWS: Mention new 'maint print xml-tdesc' command.
5274
fbf42f4e
AB
52752020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5276
5277 * target-descriptions.c (class tdesc_compatible_info): New class.
5278 (struct target_desc): Change type of compatible vector.
5279 (tdesc_compatible_p): Update for change in type of
5280 target_desc::compatible.
5281 (tdesc_compatible_info_list): New function.
5282 (tdesc_compatible_info_arch_name): New function.
5283 (tdesc_add_compatible): Update for change in type of
5284 target_desc::compatible.
5285 (print_c_tdesc::visit_pre): Likewise.
5286
20821f4e
AB
52872020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5288
5289 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5290 whitespace to underscore.
5291 (maint_print_c_tdesc_cmd): Use fake filename for target
5292 descriptions that came from the target.
5293 (_initialize_target_descriptions): Add filename command completion
5294 for 'maint print c-tdesc'.
5295
1fb5ee62
SM
52962020-06-23 Simon Marchi <simon.marchi@efficios.com>
5297
5298 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5299 lines.
5300
fc3ecb3e
SM
53012020-06-23 Simon Marchi <simon.marchi@efficios.com>
5302
5303 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5304 lines.
5305 (dwarf2_find_location_expression): Likewise.
5306 (call_site_parameter_matches): Likewise.
5307 (dwarf2_compile_expr_to_ax): Likewise.
5308 (disassemble_dwarf_expression): Likewise.
5309 (loclist_describe_location): Likewise.
5310
236ef034
PA
53112020-06-23 Pedro Alves <palves@redhat.com>
5312
5313 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5314 progspace-and-thread.h. Include scoped-mock-context.h instead.
5315 (register_to_value_test): Use scoped_mock_context.
5316 * regcache.c: Include "scoped-mock-context.h".
5317 (cooked_read_test): Don't error out if a target is already pushed.
5318 Use scoped_mock_context. Adjust.
5319 * scoped-mock-context.h: New file.
5320
39e7ecca
AB
53212020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5322
5323 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5324 initializer.
5325 (ada_language::is_string_type_p): New member function.
5326 * c-lang.c (c_language_data): Delete la_is_string_type_p
5327 initializer.
5328 (cplus_language_data): Likewise.
5329 (asm_language_data): Likewise.
5330 (minimal_language_data): Likewise.
5331 * d-lang.c (d_language_data): Likewise.
5332 * f-lang.c (f_is_string_type_p): Delete function, implementation
5333 moved to f_language::is_string_type_p.
5334 (f_language_data): Delete la_is_string_type_p initializer.
5335 (f_language::is_string_type_p): New member function,
5336 implementation from f_is_string_type_p.
5337 * go-lang.c (go_is_string_type_p): Delete function, implementation
5338 moved to go_language::is_string_type_p.
5339 (go_language_data): Delete la_is_string_type_p initializer.
5340 (go_language::is_string_type_p): New member function,
5341 implementation from go_is_string_type_p.
5342 * language.c (language_defn::is_string_type_p): Define new member
5343 function.
5344 (default_is_string_type_p): Make static, add comment copied from
5345 header file.
5346 (unknown_language_data): Delete la_is_string_type_p initializer.
5347 (unknown_language::is_string_type_p): New member function.
5348 (auto_language_data): Delete la_is_string_type_p initializer.
5349 (auto_language::is_string_type_p): New member function.
5350 * language.h (language_data): Delete la_is_string_type_p field.
5351 (language_defn::is_string_type_p): Declare new function.
5352 (default_is_string_type_p): Delete desclaration, move comment to
5353 definition.
5354 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5355 moved to m2_language::is_string_type_p.
5356 (m2_language_data): Delete la_is_string_type_p initializer.
5357 (m2_language::is_string_type_p): New member function,
5358 implementation from m2_is_string_type_p.
5359 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5360 initializer.
5361 * opencl-lang.c (opencl_language_data): Likewise.
5362 * p-lang.c (pascal_is_string_type_p): Delete function,
5363 implementation moved to pascal_language::is_string_type_p.
5364 (pascal_language_data): Delete la_is_string_type_p initializer.
5365 (pascal_language::is_string_type_p): New member function,
5366 implementation from pascal_is_string_type_p.
5367 * rust-lang.c (rust_is_string_type_p): Delete function,
5368 implementation moved to rust_language::is_string_type_p.
5369 (rust_language_data): Delete la_is_string_type_p initializer.
5370 (rust_language::is_string_type_p): New member function,
5371 implementation from rust_is_string_type_p.
5372 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5373 is_string_type_p.
5374
4ffc13fb
AB
53752020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5376
5377 * ada-lang.c (ada_language_data): Delete la_print_typedef
5378 initializer.
5379 (ada_language::print_typedef): New member function.
5380 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5381 (cplus_language_data): Likewise.
5382 (asm_language_data): Likewise.
5383 (minimal_language_data): Likewise.
5384 * d-lang.c (d_language_data): Likewise.
5385 * f-lang.c (f_language_data): Likewise.
5386 (f_language::print_typedef): New member function.
5387 * go-lang.c (go_language_data): Delete la_print_typedef
5388 initializer.
5389 * language.c (language_defn::print_typedef): Define member
5390 function.
5391 (unknown_language_data): Delete la_print_typedef initializer.
5392 (unknown_language::print_typedef): New member function.
5393 (auto_language_data): Delete la_print_typedef initializer.
5394 (auto_language::print_typedef): New member function.
5395 * language.h (language_data): Delete la_print_typedef field.
5396 (language_defn::print_typedef): Declare new member function.
5397 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5398 (default_print_typedef): Delete declaration.
5399 * m2-lang.c (m2_language_data): Delete la_print_typedef
5400 initializer.
5401 (m2_language::print_typedef): New member function.
5402 * objc-lang.c (objc_language_data): Delete la_print_typedef
5403 initializer.
5404 * opencl-lang.c (opencl_language_data): Likewise.
5405 * p-lang.c (pascal_language_data): Likewise.
5406 (pascal_language::print_typedef): New member function.
5407 * rust-lang.c (rust_print_typedef): Delete function,
5408 implementation moved to rust_language::print_typedef.
5409 (rust_language): Delete la_print_typedef initializer.
5410 (rust_language::print_typedef): New member function,
5411 implementation from rust_print_typedef.
5412 * typeprint.c (default_print_typedef): Delete.
5413
d711ee67
AB
54142020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5415
5416 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5417 (ada_language::printstr): New member function.
5418 * c-lang.c (c_language_data): Delete la_printstr initializer.
5419 (cplus_language_data): Likewise.
5420 (asm_language_data): Likewise.
5421 (minimal_language_data): Likewise.
5422 * d-lang.c (d_language_data): Likewise.
5423 * f-lang.c (f_printstr): Rename to f_language::printstr.
5424 (f_language_data): Delete la_printstr initializer.
5425 (f_language::printstr): New member function, implementation from
5426 f_printstr.
5427 * go-lang.c (go_language_data): Delete la_printstr initializer.
5428 * language.c (language_defn::printstr): Define new member
5429 function.
5430 (unk_lang_printstr): Delete.
5431 (unknown_language_data): Delete la_printstr initializer.
5432 (unknown_language::printstr): New member function.
5433 (auto_language_data): Delete la_printstr initializer.
5434 (auto_language::printstr): New member function.
5435 * language.h (language_data): Delete la_printstr field.
5436 (language_defn::printstr): Declare new member function.
5437 (LA_PRINT_STRING): Update call to printstr.
5438 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5439 (m2_language_data): Delete la_printstr initializer.
5440 (m2_language::printstr): New member function, implementation from
5441 m2_printstr.
5442 * objc-lang.c (objc_language_data): Delete la_printstr
5443 initializer.
5444 * opencl-lang.c (opencl_language_data): Likewise.
5445 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5446 (pascal_language_data): Delete la_printstr initializer.
5447 (pascal_language::printstr): New member function, implementation
5448 from pascal_printstr.
5449 * p-lang.h (pascal_printstr): Delete declaration.
5450 * rust-lang.c (rust_printstr): Update header comment.
5451 (rust_language_data): Delete la_printstr initializer.
5452 (rust_language::printstr): New member function.
5453
52b50f2c
AB
54542020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5455
5456 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5457 (ada_language::printchar): New member function.
5458 * c-lang.c (c_language_data): Delete la_printchar initializer.
5459 (cplus_language_data): Likewise.
5460 (asm_language_data): Likewise.
5461 (minimal_language_data): Likewise.
5462 * d-lang.c (d_language_data): Likewise.
5463 * f-lang.c (f_printchar): Rename to f_language::printchar.
5464 (f_language_data): Delete la_printchar initializer.
5465 (f_language::printchar): New member function, implementation from
5466 f_printchar.
5467 * go-lang.c (go_language_data): Delete la_printchar initializer.
5468 * language.c (unk_lang_printchar): Delete.
5469 (language_defn::printchar): Define new member function.
5470 (unknown_language_data): Delete la_printchar initializer.
5471 (unknown_language::printchar): New member function.
5472 (auto_language_data): Delete la_printchar initializer.
5473 (auto_language::printchar): New member function.
5474 * language.h (language_data): Delete la_printchar field.
5475 (language_defn::printchar): Declare new member function.
5476 (LA_PRINT_CHAR): Update call to printchar.
5477 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5478 (m2_language::printchar): New member function.
5479 * objc-lang.c (objc_language_data): Delete la_printchar
5480 initializer.
5481 * opencl-lang.c (opencl_language_data): Likewise.
5482 * p-lang.c (pascal_language_data): Delete la_printchar
5483 initializer.
5484 (pascal_language::printchar): New member function.
5485 * rust-lang.c (rust_printchar): Rename to
5486 rust_language::printchar.
5487 (rust_language_data): Delete la_printchar initializer.
5488 (rust_language::printchar): New member function, implementation
5489 from rust_printchar.
5490
ec8cec5b
AB
54912020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5492
5493 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5494 (ada_language_data): Delete la_emitchar initializer.
5495 (ada_language::emitchar): New member function, implementation from
5496 emit_char.
5497 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5498 (cplus_language_data): Likewise.
5499 (asm_language_data): Likewise.
5500 (minimal_language_data): Likewise.
5501 * d-lang.c (d_language_data): Likewise.
5502 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5503 (f_language_data): Delete la_emitchar initializer.
5504 (f_language::emitchar): New member function, implementation from
5505 f_emit_char.
5506 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5507 * language.c (unk_lang_emit_char): Delete.
5508 (language_defn::emitchar): New member function definition.
5509 (unknown_language_data): Delete la_emitchar initializer.
5510 (unknown_language::emitchar): New member function.
5511 (auto_language_data): Delete la_emitchar initializer.
5512 (auto_language::emitchar): New member function.
5513 * language.h (language_data): Delete la_emitchar field.
5514 (language_defn::emitchar): New member field declaration.
5515 (LA_EMIT_CHAR): Update call to emitchar.
5516 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5517 (m2_language_data): Delete la_emitchar initializer.
5518 (m2_language::emitchar): New member function, implementation from
5519 m2_emit_char.
5520 * objc-lang.c (objc_language_data): Delete la_emitchar
5521 initializer.
5522 * opencl-lang.c (opencl_language_data): Likewise.
5523 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5524 (pascal_language_data): Delete la_emitchar initializer.
5525 (pascal_language::emitchar): New member function, implementation
5526 from pascal_emit_char.
5527 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5528 (rust_language_data): Delete la_emitchar initializer.
5529 (rust_language::emitchar): New member function, implementation
5530 from rust_emitchar.
5531
1bf9c363
AB
55322020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5533
5534 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5535 (ada_language_data): Delete la_post_parser initializer.
5536 (ada_language::post_parser): New member function.
5537 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5538 (cplus_language_data): Likewise.
5539 (asm_language_data): Likewise.
5540 (minimal_language_data): Likewise.
5541 * d-lang.c (d_language_data): Likewise.
5542 * f-lang.c (f_language_data): Likewise.
5543 * go-lang.c (go_language_data): Likewise.
5544 * language.c (unknown_language_data): Likewise.
5545 (auto_language_data): Likewise.
5546 * language.h (language_data): Delete la_post_parser field.
5547 (language_defn::post_parser): New member function.
5548 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5549 * objc-lang.c (objc_language_data): Likewise.
5550 * opencl-lang.c (opencl_language_data): Likewise.
5551 * p-lang.c (pascal_language_data): Likewise.
5552 * parse.c (parse_exp_in_context): Update call to post_parser.
5553 (null_post_parser): Delete definition.
5554 * parser-defs.h (null_post_parser): Delete declaration.
5555 * rust-lang.c (rust_language_data): Delete la_post_parser
5556 initializer.
5557
87afa652
AB
55582020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5559
5560 * ada-lang.c (parse): Rename to ada_language::parser.
5561 (ada_language_data): Delete la_parser initializer.
5562 (ada_language::parser): New member function, implementation from
5563 parse.
5564 * c-lang.c (c_language_data): Delete la_parser initializer.
5565 (cplus_language_data): Likewise.
5566 (asm_language_data): Likewise.
5567 (minimal_language_data): Likewise.
5568 * d-lang.c (d_language_data): Likewise.
5569 (d_language::parser): New member function.
5570 * f-lang.c (f_language_data): Delete la_parser initializer.
5571 (f_language::parser): New member function.
5572 * go-lang.c (go_language_data): Delete la_parser initializer.
5573 (go_language::parser): New member function.
5574 * language.c (unk_lang_parser): Delete.
5575 (language_defn::parser): Define new member function.
5576 (unknown_language_data): Delete la_parser initializer.
5577 (unknown_language::parser): New member function.
5578 (auto_language_data): Delete la_parser initializer.
5579 (auto_language::parser): New member function.
5580 * language.h (language_data): Delete la_parser field.
5581 (language_defn::parser): Declare new member function.
5582 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5583 (m2_language::parser): New member function.
5584 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5585 * opencl-lang.c (opencl_language_data): Likewise.
5586 * p-lang.c (pascal_language_data): Likewise.
5587 (pascal_language::parser): New member function.
5588 * parse.c (parse_exp_in_context): Update call to parser.
5589 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5590 (rust_language::parser): New member function.
5591
37825800
AB
55922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5593
5594 * top.c (print_gdb_configuration): Print --with-python-libdir
5595 configuration value.
5596
5b860c93
PW
55972020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5598
5599 * NEWS: Mention change to the alias command.
5600
cf00cd6f
PW
56012020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5602
5603 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5604 (alias_command_completer)
5605 (make_alias_options_def_group): New functions.
5606 (alias_opts, alias_option_defs): New struct and array.
5607 (alias_usage_error): Update usage.
5608 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5609 Use option framework.
5610 (_initialize_cli_cmds): Update alias command help.
5611 Update aliases command help.
5612 (show_user):
5613 Add NULL for new default_args lookup_cmd argument.
5614 (valid_command_p): Rename to validate_aliased_command.
5615 Add NULL for new default_args lookup_cmd argument. Verify that the
5616 aliased_command has no default args.
5617 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5618 (lookup_cmd_1, lookup_cmd): New argument default_args.
5619 (add_alias_cmd):
5620 Add NULL for new default_args lookup_cmd argument.
5621 (print_help_for_command): Show default args under the layout
5622 alias some_alias = some_aliased_cmd some_alias_default_arg.
5623 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5624 xfree default_args in destructor.
5625 * cli/cli-script.c (process_next_line, do_define_command):
5626 Add NULL for new default_args lookup_cmd argument.
5627 * command.h: Declare new default_args argument in lookup_cmd
5628 and lookup_cmd_1.
5629 * completer.c (complete_line_internal_1):
5630 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5631 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5632 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5633 Likewise.
5634 * infcmd.c (_initialize_infcmd): Likewise.
5635 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5636 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5637 * python/py-param.c (add_setshow_generic): Likewise.
5638 * remote.c (_initialize_remote): Likewise.
5639 * top.c (execute_command): Prepend default_args if command has some.
5640 (set_verbose):
5641 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5642 * tracepoint.c (validate_actionline, encode_actions_1):
5643 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5644
bd920864
TBA
56452020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5646
5647 * jit.c (jit_read_descriptor): Use bool as the return type.
5648 (jit_breakpoint_re_set_internal): Use bool as the return type.
5649 Invert the return value logic; return true if the jit breakpoint
5650 has been successfully initialized.
5651 (jit_inferior_init): Update the call to
5652 jit_breakpoint_re_set_internal.
5653
f8098322
PA
56542020-06-22 Pedro Alves <palves@redhat.com>
5655
5656 PR gdb/25939
5657 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5658 Use the current inferior instead. Don't return
5659 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5660 wait again.
5661 * sol-thread.c (sol_thread_target::wait): Don't reference
5662 inferior_ptid.
5663 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5664 (sol_update_thread_list_callback): Use the current inferior's pid
5665 instead of inferior_ptid.
5666
196535a6
RO
56672020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5668
5669 * procfs.c: Cleanup many comments.
5670
5671 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5672 (AFTER_WATCHFLAG): Replace by value.
5673
5674 (MAIN_PROC_NAME_FORMAT): Inline ...
5675 (create_procinfo): ... here.
5676
5677 (procfs_debug_inferior): Remove SYS_exec handling.
5678 (syscall_is_exec): Likewise.
5679 (procfs_set_exec_trap): Likewise.
5680
5681 (syscall_is_lwp_exit): Inline in callers.
5682 (syscall_is_exit): Likewise.
5683 (syscall_is_exec): Likewise.
5684 (syscall_is_lwp_create): Likewise.
5685
5686 (invalidate_cache): Remove #if 0 code.
5687
5688 (make_signal_thread_runnable): Remove.
5689 (procfs_target::resume): Remove #if 0 code.
5690
cf6f3e86
RO
56912020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5692
5693 PR gdb/25939
5694 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5695 call ...
5696 (procfs_target::create_inferior): ... here.
5697
48e9cc84
PW
56982020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5699
5700 * exec.c (validate_exec_file): Ensure the build-id is up to
5701 date by calling reopen_exec_file (that checks file timestamp
5702 to decide to re-read the file).
5703
3922b302
PA
57042020-06-18 Pedro Alves <palves@redhat.com>
5705
5706 PR gdb/25412
5707 * gdbthread.h (delete_thread, delete_thread_silent)
5708 (find_thread_ptid): Update comments.
5709 * thread.c (current_thread_): New global.
5710 (is_current_thread): Move higher, and reimplement.
5711 (inferior_thread): Reimplement.
5712 (set_thread_exited): Use bool. Add assertions.
5713 (add_thread_silent): Simplify thread-reuse handling by always
5714 calling delete_thread.
5715 (delete_thread): Remove intro comment.
5716 (find_thread_ptid): Skip exited threads.
5717 (switch_to_thread_no_regs): Write to current_thread_.
5718 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5719 INFERIOR_PTID. Clear current_thread_.
5720
6dbdab44
PA
57212020-06-18 Pedro Alves <palves@redhat.com>
5722
5723 * aix-thread.c (pd_update): Use switch_to_thread.
5724
2da4b788
PA
57252020-06-18 Pedro Alves <palves@redhat.com>
5726
5727 * ravenscar-thread.c (ravenscar_thread_target): Update.
5728 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5729 (ravenscar_thread_target::add_active_thread): ... this. Don't
5730 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5731 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5732
50838d1b
PA
57332020-06-18 Pedro Alves <palves@redhat.com>
5734
5735 * nat/windows-nat.c (current_windows_thread): Remove.
5736 * nat/windows-nat.h (current_windows_thread): Remove.
5737 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5738 Adjust.
5739 (display_selectors): Adjust to fetch the current
5740 windows_thread_info based on inferior_ptid.
5741 (fake_create_process): No longer write to current_windows_thread.
5742 (windows_nat_target::get_windows_debug_event):
5743 Don't set inferior_ptid or current_windows_thread.
5744 (windows_nat_target::wait): Adjust to not rely on
5745 current_windows_thread.
5746 (do_initial_windows_stuff): Now a method of windows_nat_target.
5747 Switch to the last_ptid thread.
5748 (windows_nat_target::attach): Adjust.
5749 (windows_nat_target::detach): Use switch_to_no_thread instead of
5750 writing to inferior_ptid directly.
5751 (windows_nat_target::create_inferior): Adjust.
5752
31ce04e9
PA
57532020-06-18 Pedro Alves <palves@redhat.com>
5754
5755 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5756
1ee1a363
PA
57572020-06-18 Pedro Alves <palves@redhat.com>
5758
5759 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5760 after creating it, instead of writing to inferior_ptid. Don't
5761 write to inferior_ptid.
5762
6d350754
PA
57632020-06-18 Pedro Alves <palves@redhat.com>
5764
5765 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5766
5d971d48
PA
57672020-06-18 Pedro Alves <palves@redhat.com>
5768
5769 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5770 it, instead of writing to inferior_ptid.
5771
86e57d1b
PA
57722020-06-18 Pedro Alves <palves@redhat.com>
5773
5774 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5775 to inferior_ptid.
5776
f2e1c129
PA
57772020-06-18 Pedro Alves <palves@redhat.com>
5778
5779 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5780 instead of writing to inferior_ptid directly.
5781
60db1b85
PA
57822020-06-18 Pedro Alves <palves@redhat.com>
5783
5784 * corelow.c (core_target::close): Use switch_to_no_thread instead
5785 of writing to inferior_ptid directly.
5786 (add_to_thread_list, core_target_open): Use switch_to_thread
5787 instead of writing to inferior_ptid directly.
5788
fe7d6a8d
PA
57892020-06-18 Pedro Alves <palves@redhat.com>
5790
5791 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5792 inferior_ptid.
5793 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5794 inferior_ptid.
5795 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5796 inferior_ptid directly.
5797 (darwin_nat_target::init_thread_list): Switch to thread, instead
5798 of writing to inferior_ptid.
5799 (darwin_nat_target::attach): Don't write to inferior_ptid.
5800 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5801
975f8708
PA
58022020-06-18 Pedro Alves <palves@redhat.com>
5803
5804 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5805 thread.
5806 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5807 Instead use switch_to_thread.
5808 (gnu_nat_target::detach): Use switch_to_no_thread
5809 instead of writing to inferior_ptid directly. Used passed-in
5810 inferior instead of looking up the inferior by pid.
5811
1a204730
PA
58122020-06-18 Pedro Alves <palves@redhat.com>
5813
5814 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5815 inferior_ptid.
5816
ebe84f23
PA
58172020-06-18 Pedro Alves <palves@redhat.com>
5818
5819 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5820 inferior_ptid.
5821 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5822 thread.
5823 (nto_procfs_target::detach): Avoid referencing
5824 inferior_ptid. Use switch_to_no_thread instead of writing to
5825 inferior_ptid directly.
5826 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5827 instead of writing to inferior_ptid directly.
5828 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5829 to thread.
5830
191f02e5
PA
58312020-06-18 Pedro Alves <palves@redhat.com>
5832
5833 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5834 after creating it, instead of writing to inferior_ptid.
5835 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5836 to inferior_ptid directly.
5837 (gdbsim_target::wait): Don't write to inferior_ptid.
5838
0ac55310
PA
58392020-06-18 Pedro Alves <palves@redhat.com>
5840
5841 * remote.c (remote_target::remote_notice_new_inferior): Use
5842 switch_to_thread instead of writing to inferior_ptid directly.
5843 (remote_target::add_current_inferior_and_thread): Use
5844 switch_to_no_thread instead of writing to inferior_ptid directly.
5845 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5846 and switch_to_thread instead of using set_current_inferior or
5847 writing to inferior_ptid directly.
5848
5233f39b
PA
58492020-06-18 Pedro Alves <palves@redhat.com>
5850
5851 * tracectf.c (ctf_target_open): Switch to added thread instead of
5852 writing to inferior_ptid directly.
5853 (ctf_target::close): Use switch_to_no_thread instead of writing to
5854 inferior_ptid directly.
5855
087e161b
PA
58562020-06-18 Pedro Alves <palves@redhat.com>
5857
5858 * tracefile-tfile.c (tfile_target_open): Don't write to
5859 inferior_ptid directly, instead switch to added thread.
5860 (tfile_target::close): Use switch_to_no_thread instead of writing
5861 to inferior_ptid directly.
5862
7fb43e53
PA
58632020-06-18 Pedro Alves <palves@redhat.com>
5864
5865 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5866 (procfs_target::detach): Use switch_to_no_thread
5867 instead of writing to inferior_ptid directly.
5868 (do_attach): Change return type to void. Switch to the added
5869 thread.
5870 (procfs_target::create_inferior): Switch to the added thread.
5871 (procfs_do_thread_registers): Don't write to inferior_ptid.
5872
18493a00
PA
58732020-06-18 Pedro Alves <palves@redhat.com>
5874
5875 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5876 of writing to inferior_ptid.
5877 (scoped_restore_exited_inferior): Delete.
5878 (handle_vfork_child_exec_or_exit): Simplify using
5879 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5880 instead of writing to inferior_ptid.
5881 (THREAD_STOPPED_BY): Delete.
5882 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5883 (thread_stopped_by_hw_breakpoint): Delete.
5884 (save_waitstatus): Use
5885 scoped_restore_current_thread+switch_to_thread, and call
5886 target_stopped_by_watchpoint instead of
5887 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5888 instead of thread_stopped_by_sw_breakpoint, and
5889 target_stopped_by_hw_breakpoint instead of
5890 thread_stopped_by_hw_breakpoint.
5891 (handle_inferior_event)
5892 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5893 inferior_ptid directly, nor
5894 set_current_inferior/set_current_program_space. Use
5895 switch_to_thread / switch_to_inferior_no_thread instead.
5896
a0776b13
PA
58972020-06-18 Pedro Alves <palves@redhat.com>
5898
5899 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5900 instead of writing to inferior_ptid.
5901
6155c136
PA
59022020-06-18 Pedro Alves <palves@redhat.com>
5903
5904 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5905 added thread.
5906 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5907 to the added thread.
5908 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5909 instead of writing to inferior_ptid.
5910
c5316fc6
PA
59112020-06-18 Pedro Alves <palves@redhat.com>
5912
5913 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5914 (register_to_value_test): Mock a program_space too. Heap-allocate
5915 the address space. Don't write to inferior_ptid. Use
5916 switch_to_thread instead.
5917
8df01799
PA
59182020-06-18 Pedro Alves <palves@redhat.com>
5919
5920 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5921 Delete.
5922 (find_signalled_thread()): New, factored out from
5923 linux_make_corefile_notes and adjusted to handle exited threads.
5924 (linux_make_corefile_notes): Adjust to use the new
5925 find_signalled_thread.
5926
41792d68
PA
59272020-06-18 Pedro Alves <palves@redhat.com>
5928
5929 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5930 of saving/restoring inferior_ptid.
5931
612f258a
TT
59322020-06-17 Tom Tromey <tom@tromey.com>
5933
5934 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5935 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5936 declare.
5937 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5938
efb763a5
SM
59392020-06-15 Simon Marchi <simon.marchi@efficios.com>
5940
5941 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5942 of partial symtabs.
5943
2951f6c0
SM
59442020-06-17 Simon Marchi <simon.marchi@efficios.com>
5945
5946 * regformats/reg-arm.dat: Remove.
5947 * regformats/reg-bfin.dat: Remove.
5948 * regformats/reg-cris.dat: Remove.
5949 * regformats/reg-crisv32.dat: Remove.
5950 * regformats/reg-m32r.dat: Remove.
5951 * regformats/reg-tilegx.dat: Remove.
5952 * regformats/reg-tilegx32.dat: Remove.
5953
7d458ea5
SM
59542020-06-17 Simon Marchi <simon.marchi@efficios.com>
5955
5956 * features/Makefile (WHICH): Remove arm files.
5957 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5958 * regformats/arm/arm-with-neon.dat: Remove.
5959 * regformats/arm/arm-with-vfpv2.dat: Remove.
5960 * regformats/arm/arm-with-vfpv3.dat: Remove.
5961
3af96c0d
SM
59622020-06-17 Simon Marchi <simon.marchi@efficios.com>
5963
5964 * features/Makefile (XMLTOC): Remove rx.xml.
5965
b25e22fd
PA
59662020-06-17 Pedro Alves <palves@redhat.com>
5967
5968 * gdbthread.h (thread_control_state) <trap_expected> Update
5969 comments.
5970
a78a19b1
AB
59712020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5972
5973 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5974 ada_language::lookup_symbol_nonlocal.
5975 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5976 (ada_language::lookup_symbol_nonlocal): New member function,
5977 implementation from ada_lookup_symbol_nonlocal.
5978 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5979 initializer.
5980 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5981 initializer.
5982 (cplus_language::lookup_symbol_nonlocal): New member function.
5983 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5984 (minimal_language_data) Likewise.
5985 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5986 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5987 initializer.
5988 (d_language::lookup_symbol_nonlocal): New member function.
5989 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5990 initializer.
5991 (f_language::lookup_symbol_nonlocal): New member function.
5992 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5993 initializer.
5994 * language.c (unknown_language_data): Likewise.
5995 (auto_language_data): Likewise.
5996 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5997 field.
5998 (language_defn::lookup_symbol_nonlocal): New member function.
5999 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
6000 initializer.
6001 * objc-lang.c (objc_language_data): Likewise.
6002 * opencl-lang.c (opencl_language_data): Likewise.
6003 * p-lang.c (pascal_language_data): Likewise.
6004 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
6005 rust_language::lookup_symbol_nonlocal.
6006 (rust_language_data): Delete la_lookup_symbol_nonlocal
6007 initializer.
6008 (rust_language::lookup_symbol_nonlocal): New member function,
6009 implementation from rust_lookup_symbol_nonlocal.
6010 * symtab.c (lookup_symbol_aux): Update call to
6011 lookup_symbol_nonlocal.
6012 (basic_lookup_symbol_nonlocal): Rename to...
6013 (language_defn::lookup_symbol_nonlocal): ...this, and update
6014 header comment. Remove language_defn parameter, and replace with
6015 uses of `this'.
6016 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6017
ebe2334e
AB
60182020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6019
6020 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6021 initializer.
6022 (ada_language::value_print_inner): New member function.
6023 * c-lang.c (c_language_data): Delete la_value_print_inner
6024 initializer.
6025 (cplus_language_data): Likewise.
6026 (asm_language_data): Likewise.
6027 (minimal_language_data): Likewise.
6028 * d-lang.c (d_language_data): Likewise.
6029 (d_language::value_print_inner): New member function.
6030 * f-lang.c (f_language_data): Delete la_value_print_inner
6031 initializer.
6032 (f_language::value_print_inner): New member function.
6033 * f-lang.h (f_value_print_innner): Rename to...
6034 (f_value_print_inner): ...this (note spelling of 'inner').
6035 * f-valprint.c (f_value_print_innner): Rename to...
6036 (f_value_print_inner): ...this (note spelling of 'inner').
6037 * go-lang.c (go_language_data): Delete la_value_print_inner
6038 initializer.
6039 (go_language::value_print_inner): New member function.
6040 * language.c (language_defn::value_print_inner): Define new member
6041 function.
6042 (unk_lang_value_print_inner): Delete.
6043 (unknown_language_data): Delete la_value_print_inner initializer.
6044 (unknown_language::value_print_inner): New member function.
6045 (auto_language_data): Delete la_value_print_inner initializer.
6046 (auto_language::value_print_inner): New member function.
6047 * language.h (language_data): Delete la_value_print_inner field.
6048 (language_defn::value_print_inner): Delcare new member function.
6049 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6050 initializer.
6051 (m2_language::value_print_inner): New member function.
6052 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6053 initializer.
6054 * opencl-lang.c (opencl_language_data): Likewise.
6055 * p-lang.c (pascal_language_data): Likewise.
6056 (pascal_language::value_print_inner): New member function.
6057 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6058 initializer.
6059 (rust_language::value_print_inner): New member function.
6060 * valprint.c (do_val_print): Update call to value_print_inner.
6061
a1d1fa3e
AB
60622020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6063
6064 * ada-lang.c (ada_language_data): Delete la_value_print
6065 initializer.
6066 (ada_language::value_print): New member function.
6067 * c-lang.c (c_language_data): Delete la_value_print initializer.
6068 (cplus_language_data): Likewise.
6069 (asm_language_data): Likewise.
6070 (minimal_language_data): Likewise.
6071 * d-lang.c (d_language_data): Likewise.
6072 * f-lang.c (f_language_data): Likewise.
6073 * go-lang.c (go_language_data): Likewise.
6074 * language.c (unk_lang_value_print): Delete.
6075 (language_defn::value_print): Define new member function.
6076 (unknown_language_data): Delete la_value_print initializer.
6077 (unknown_language::value_print): New member function.
6078 (auto_language_data): Delete la_value_print initializer.
6079 (auto_language::value_print): New member function.
6080 * language.h (language_data): Delete la_value_print field.
6081 (language_defn::value_print): Declare new member function.
6082 (LA_VALUE_PRINT): Update call to value_print.
6083 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
6084 * objc-lang.c (objc_language_data): Likewise.
6085 * opencl-lang.c (opencl_language_data): Likewise.
6086 * p-lang.c (pascal_language_data): Likewise.
6087 (pascal_language::value_print): New member function.
6088 * rust-lang.c (rust_language_data): Delete la_value_print
6089 initializer.
6090
f16a9f57
AB
60912020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6092
6093 * ada-lang.c (ada_watch_location_expression): Rename to
6094 ada_language::watch_location_expression.
6095 (ada_language_data): Delete la_watch_location_expression
6096 initializer.
6097 (ada_language::watch_location_expression): New member function,
6098 implementation from ada_watch_location_expression.
6099 * breakpoint.c (watch_command_1): Update call to
6100 watch_location_expression.
6101 * c-lang.c (c_watch_location_expression): Rename to
6102 language_defn::watch_location_expression.
6103 (c_language_data): Delete la_watch_location_expression
6104 initializer.
6105 (cplus_language_data): Likewise.
6106 (asm_language_data): Likewise.
6107 (minimal_language_data): Likewise.
6108 * c-lang.h (c_watch_location_expression): Delete declaration.
6109 * d-lang.c (d_language_data): Delete la_watch_location_expression
6110 initializer.
6111 * f-lang.c (f_language_data): Likewise.
6112 * go-lang.c (go_language_data): Likewise.
6113 * language.c (language_defn::watch_location_expression): Member
6114 function implementation from c_watch_location_expression.
6115 (unknown_language_data): Delete la_watch_location_expression
6116 initializer.
6117 (auto_language_data): Likewise.
6118 * language.h (language_data): Delete la_watch_location_expression
6119 field.
6120 (language_defn::watch_location_expression): Declare new member
6121 function.
6122 * m2-lang.c (m2_language_data): Delete
6123 la_watch_location_expression initializer.
6124 * objc-lang.c (objc_language_data): Likewise.
6125 * opencl-lang.c (opencl_language_data): Likewise.
6126 * p-lang.c (pascal_language_data): Likewise.
6127 * rust-lang.c (rust_watch_location_expression): Rename to
6128 rust_language::watch_location_expression.
6129 (rust_language_data): Delete la_watch_location_expression
6130 initializer.
6131 (rust_language::watch_location_expression): New member function,
6132 implementation from rust_watch_location_expression.
6133
7e56227d
AB
61342020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6135
6136 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6137 ada_language::collect_symbol_completion_matches.
6138 (ada_language_data): Delete la_collect_symbol_completion_matches
6139 initializer.
6140 (ada_language::collect_symbol_completion_matches): New member
6141 function, implementation from
6142 ada_collect_symbol_completion_matches.
6143 * c-lang.c (c_language_data): Delete
6144 la_collect_symbol_completion_matches initializer.
6145 (cplus_language_data): Likewise.
6146 (asm_language_data): Likewise.
6147 (minimal_language_data): Likewise.
6148 * d-lang.c (d_language_data): Likewise.
6149 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6150 f_language::collect_symbol_completion_matches.
6151 (f_language_data): Delete la_collect_symbol_completion_matches
6152 initializer.
6153 (f_language::collect_symbol_completion_matches) New member
6154 function, implementation from f_collect_symbol_completion_matches.
6155 * go-lang.c (go_language_data): Delete
6156 la_collect_symbol_completion_matches initializer.
6157 * language.c (unknown_language_data): Likewise.
6158 (auto_language_data): Likewise.
6159 * language.h (language_data): Delete
6160 la_collect_symbol_completion_matches field.
6161 (language_defn::collect_symbol_completion_matches): New member
6162 function.
6163 * m2-lang.c (m2_language_data): Delete
6164 la_collect_symbol_completion_matches initializer.
6165 * objc-lang.c (objc_language_data): Likewise.
6166 * opencl-lang.c (opencl_language_data): Likewise.
6167 * p-lang.c (pascal_language_data): Likewise.
6168 * rust-lang.c (rust_language_data): Likewise.
6169 * symtab.c (default_collect_symbol_completion_matches): Delete.
6170 (collect_symbol_completion_matches): Update call to
6171 collect_symbol_completion_matches.
6172 (collect_symbol_completion_matches_type): Likewise.
6173 * symtab.h (default_collect_symbol_completion_matches): Delete
6174 declaration.
6175
53fc67f8
AB
61762020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6177
6178 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6179 (ada_language_data): Delete la_word_break_characters initializer.
6180 (ada_language::word_break_characters): New member function.
6181 * c-lang.c (c_language_data): Delete la_word_break_characters
6182 initializer.
6183 (cplus_language_data): Likewise.
6184 (asm_language_data): Likewise.
6185 (minimal_language_data): Likewise.
6186 * completer.c: Update global comment.
6187 (advance_to_expression_complete_word_point): Update call to
6188 word_break_characters.
6189 (complete_files_symbols): Likewise.
6190 (complete_line_internal_1): Likewise.
6191 (default_completer_handle_brkchars): Likewise.
6192 (skip_quoted_chars): Likewise.
6193 * d-lang.c (d_language_data): Delete la_word_break_characters
6194 initializer.
6195 * f-lang.c (f_word_break_characters): Delete.
6196 (f_language_data): Delete la_word_break_characters initializer.
6197 (f_language::word_break_characters): New member function.
6198 * go-lang.c (go_language_data): Delete la_word_break_characters
6199 initializer.
6200 * language.c (unknown_language_data): Likewise.
6201 (auto_language_data): Likewise.
6202 * language.h (default_word_break_characters): Move declaration to
6203 earlier in the file.
6204 (language_data): Delete la_word_break_characters field.
6205 (language_defn::word_break_characters): New member function.
6206 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6207 initializer.
6208 * objc-lang.c (objc_language_data): Likewise.
6209 * opencl-lang.c (opencl_language_data): Likewise.
6210 * p-lang.c (pascal_language_data): Likewise.
6211 * rust-lang.c (rust_language_data): Likewise.
6212
c9debfb9
AB
62132020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6214
6215 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6216 (ada_language_data): Delete la_get_symbol_name_matcher
6217 initializer.
6218 (language_defn::get_symbol_name_matcher_inner): New member
6219 function.
6220 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6221 initializer.
6222 (cplus_language_data): Likewise.
6223 (cplus_language::get_symbol_name_matcher_inner): New member
6224 function.
6225 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6226 (minimal_language_data): Likewise.
6227 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6228 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6229 initializer.
6230 * dictionary.c (iter_match_first_hashed): Update call to
6231 get_symbol_name_matcher.
6232 (iter_match_next_hashed): Likewise.
6233 (iter_match_next_linear): Likewise.
6234 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6235 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6236 initializer.
6237 (f_language::get_symbol_name_matcher_inner): New member function.
6238 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6239 initializer.
6240 * language.c (default_symbol_name_matcher): Update header comment,
6241 make static.
6242 (language_defn::get_symbol_name_matcher): New definition.
6243 (language_defn::get_symbol_name_matcher_inner): Likewise.
6244 (get_symbol_name_matcher): Delete.
6245 (unknown_language_data): Delete la_get_symbol_name_matcher
6246 initializer.
6247 (auto_language_data): Likewise.
6248 * language.h (language_data): Delete la_get_symbol_name_matcher
6249 field.
6250 (language_defn::get_symbol_name_matcher): New member function.
6251 (language_defn::get_symbol_name_matcher_inner): Likewise.
6252 (default_symbol_name_matcher): Delete declaration.
6253 * linespec.c (find_methods): Update call to
6254 get_symbol_name_matcher.
6255 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6256 initializer.
6257 * minsyms.c (lookup_minimal_symbol): Update call to
6258 get_symbol_name_matcher.
6259 (iterate_over_minimal_symbols): Likewise.
6260 * objc-lang.c (objc_language_data): Delete
6261 la_get_symbol_name_matcher initializer.
6262 * opencl-lang.c (opencl_language_data): Likewise.
6263 * p-lang.c (pascal_language_data): Likewise.
6264 * psymtab.c (psymbol_name_matches): Update call to
6265 get_symbol_name_matcher.
6266 * rust-lang.c (rust_language_data): Delete
6267 la_get_symbol_name_matcher initializer.
6268 * symtab.c (symbol_matches_search_name): Update call to
6269 get_symbol_name_matcher.
6270 (compare_symbol_name): Likewise.
6271
9a49ad8c
AB
62722020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6273
6274 * ada-lang.c (ada_language_data): Delete la_compute_program
6275 initializer.
6276 * c-lang.c (c_language_data): Likewise.
6277 (c_language::compute_program): New member function.
6278 (cplus_language_data): Delete la_compute_program initializer.
6279 (cplus_language::compute_program): New member function.
6280 (asm_language_data): Delete la_compute_program initializer.
6281 (minimal_language_data): Likewise.
6282 * c-lang.h (c_compute_program): Update comment.
6283 (cplus_compute_program): Likewise.
6284 * compile/compile-c-support.c (c_compute_program): Likewise.
6285 (cplus_compute_program): Likewise.
6286 * compile/compile.c (compile_to_object): Update call to
6287 la_compute_program.
6288 * d-lang.c (d_language_data): Delete la_compute_program
6289 initializer.
6290 * f-lang.c (f_language_data): Likewise.
6291 * go-lang.c (go_language_data): Likewise.
6292 * language.c (unknown_language_data): Likewise.
6293 (auto_language_data): Likewise.
6294 * language.h (language_data): Delete la_compute_program field.
6295 (language_defn::compute_program): New member function.
6296 * m2-lang.c (m2_language_data): Delete la_compute_program
6297 initializer.
6298 * objc-lang.c (objc_language_data): Likewise.
6299 * opencl-lang.c (opencl_language_data): Likewise.
6300 * p-lang.c (pascal_language_data): Likewise.
6301 * rust-lang.c (rust_language_data): Likewise.
6302
eff93b4d
AB
63032020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6304
6305 * ada-lang.c (ada_language_data) Delete
6306 la_class_name_from_physname initializer.
6307 * c-lang.c (c_language_data): Likewise.
6308 (cplus_language_data): Likewise.
6309 (cplus_language::class_name_from_physname): New member function.
6310 (asm_language_data): Delete la_class_name_from_physname
6311 initializer.
6312 (minimal_language_data): Likewise.
6313 * d-lang.c (d_language_data): Likewise.
6314 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6315 method on language_defn class.
6316 (guess_full_die_structure_name): Likewise.
6317 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6318 initializer.
6319 * go-lang.c (go_language_data): Likewise.
6320 * language.c (language_class_name_from_physname): Delete.
6321 (unk_lang_class_name): Delete.
6322 (unknown_language_data): Delete la_class_name_from_physname
6323 initializer.
6324 (auto_language_data): Likewise.
6325 * language.h (language_data): Delete la_class_name_from_physname
6326 field.
6327 (language_defn::class_name_from_physname): New function.
6328 (language_class_name_from_physname): Delete declaration.
6329 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6330 initializer.
6331 * objc-lang.c (objc_language_data): Likewise.
6332 * opencl-lang.c (opencl_language_data): Likewise.
6333 * p-lang.c (pascal_language_data): Likewise.
6334 * rust-lang.c (rust_language_data): Likewise.
6335
de543742
TT
63362020-06-16 Tom Tromey <tom@tromey.com>
6337
6338 * tui/tui-data.h (STATUS_NAME): New macro.
6339 * tui/tui-layout.c (tui_remove_some_windows)
6340 (initialize_known_windows, tui_register_window)
6341 (tui_layout_split::remove_windows, initialize_layouts)
6342 (tui_new_layout_command): Don't use hard-coded window names.
6343
a350efd4
TT
63442020-06-16 Tom Tromey <tom@tromey.com>
6345
6346 PR tui/25348:
6347 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6348 tui_initialize_readline. Only run once. Call rl_initialize.
6349 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6350 tui_initialize_readline.
6351 * tui/tui-io.c (tui_setup_io): Call
6352 tui_ensure_readline_initialized.
6353 * tui/tui-interp.c (tui_interp::init): Update.
6354
39ec0490
TT
63552020-06-16 Tom Tromey <tom@tromey.com>
6356
6357 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6358 Also preserve the status window.
6359
d2d1ea20
TT
63602020-06-16 Tom Tromey <tom@tromey.com>
6361
6362 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6363 where m_window==nullptr.
6364
66920317
TT
63652020-06-15 Tom Tromey <tromey@adacore.com>
6366
6367 * windows-nat.c (windows_nat::handle_output_debug_string):
6368 Update.
6369 (windows_nat::handle_ms_vc_exception): Update.
6370 * target.h (target_read_string): Change API.
6371 * target.c (target_read_string): Change API.
6372 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6373 Update.
6374 * solib-frv.c (frv_current_sos): Update.
6375 * solib-dsbt.c (dsbt_current_sos): Update.
6376 * solib-darwin.c (darwin_current_sos): Update.
6377 * linux-thread-db.c (inferior_has_bug): Update.
6378 * expprint.c (print_subexp_standard): Update.
6379 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6380 (ada_exception_message_1): Update.
6381
a5d871dd
TT
63822020-06-15 Tom Tromey <tromey@adacore.com>
6383
6384 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6385
670e35fa
TT
63862020-06-15 Tom Tromey <tromey@adacore.com>
6387
6388 * valprint.c (read_string): Update comment.
6389 * target.c (MIN): Remove.
6390 (target_read_string): Rewrite.
6391
f5272a3b
TT
63922020-06-15 Tom Tromey <tromey@adacore.com>
6393
6394 * corefile.c (read_memory_string): Remove.
6395 * ada-valprint.c (ada_value_print_ptr): Update.
6396 * ada-lang.h (ada_tag_name): Change return type.
6397 * ada-lang.c (type_from_tag): Update.
6398 (ada_tag_name_from_tsd): Change return type. Use
6399 target_read_string.
6400 (ada_tag_name): Likewise.
6401 * gdbcore.h (read_memory_string): Don't declare.
6402
2c074f49
HD
64032020-06-14 Hannes Domani <ssbssa@yahoo.de>
6404
6405 * symtab.c (rbreak_command): Ignore Windows drive colon.
6406
6a17d503
SM
64072020-06-12 Simon Marchi <simon.marchi@efficios.com>
6408
6409 * NEWS: Mention removed GDBserver host support.
6410
453c733f
NC
64112020-06-12 Nelson Chu <nelson.chu@sifive.com>
6412
6413 * features/riscv/rebuild-csr-xml.sh: Updated.
6414
2b4e6a3f
TT
64152020-06-11 Tom Tromey <tom@tromey.com>
6416
6417 PR gdb/18318:
6418 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6419
4412332f
JG
64202020-06-09 Jonny Grant <jg@jguk.org>
64212020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6422
6423 * main.c (captured_main_1): Don't print new line after help.
6424 (print_gdb_help): add mailing list and IRC channel information
6425 to --help. Add new lines between items in the footer. Remove
6426 quotes around bug url.
6427
2f33032a
KS
64282020-06-11 Keith Seitz <keiths@redhat.com>
6429
6430 PR gdb/21356
6431 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6432 Resolve typedefs for type length calculations.
6433
7ab96794
TV
64342020-06-10 Tom de Vries <tdevries@suse.de>
6435
6436 PR ada/24713
6437 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6438 (write_psymbols): Enable .gdb_index for ada.
6439 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6440 ada.
6441
e5f3ece2
TV
64422020-06-10 Tom de Vries <tdevries@suse.de>
6443
6444 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6445 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6446 namei" instead of "const char *name" argument.
6447 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6448 dw2_symtab_iter_init.
6449
940da03e
SM
64502020-06-08 Simon Marchi <simon.marchi@efficios.com>
6451
6452 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6453 to use type::field and field::type instead.
6454
b6cdac4b
SM
64552020-06-08 Simon Marchi <simon.marchi@efficios.com>
6456
6457 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6458 to use field::type instead.
6459
5d14b6e5
SM
64602020-06-08 Simon Marchi <simon.marchi@efficios.com>
6461
6462 * gdbtypes.h (struct field) <type, set_type>: New methods.
6463 Rename `type` field to...
6464 <m_type>: ... this. Change references throughout to use type or
6465 set_type methods.
6466 (FIELD_TYPE): Use field::type. Change call sites that modify
6467 the field's type to use field::set_type instead.
6468
3d967001
SM
64692020-06-08 Simon Marchi <simon.marchi@efficios.com>
6470
6471 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6472 to use type::index_type instead.
6473
262abc0d
SM
64742020-06-08 Simon Marchi <simon.marchi@efficios.com>
6475
6476 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6477 methods.
6478 (TYPE_INDEX_TYPE): Use type::index_type.
6479 * gdbtypes.c (create_array_type_with_stride): Likewise.
6480
82836c92
TT
64812020-06-07 Tom Tromey <tom@tromey.com>
6482
6483 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6484 parameter.
6485 (generic_value_print): Update.
6486
940dace9
AB
64872020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6488
6489 Revert commit 982a38f60b0.
6490 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6491
982a38f6
AB
64922020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6493
6494 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6495 avoid use after free.
6496
82f06518
TV
64972020-06-05 Tom de Vries <tdevries@suse.de>
6498
6499 * NEWS: Fix typos.
6500
f8c41851
SM
65012020-06-04 Simon Marchi <simon.marchi@efficios.com>
6502
6503 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6504 the per_bfd object.
6505 (dwarf2_read_debug_names): Likewise.
6506 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6507 object when re-using a per_bfd object with an index.
6508
f9b5d5ea
TV
65092020-06-03 Tom de Vries <tdevries@suse.de>
6510
6511 PR symtab/26046
6512 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6513 children for C++.
6514 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6515 DW_TAG_subprogram.
6516
f6eee2d0
AB
65172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6518
6519 * ada-lang.c (ada_language_data): Delete skip_trampoline
6520 initializer.
6521 * c-lang.c (c_language_data): Likewise.
6522 (cplus_language_data): Likewise.
6523 (cplus_language::skip_trampoline): New member function.
6524 (asm_language_data): Delete skip_trampoline initializer.
6525 (minimal_language_data): Likewise.
6526 * d-lang.c (d_language_data): Likewise.
6527 * f-lang.c (f_language_data): Likewise.
6528 * go-lang.c (go_language_data): Likewise.
6529 * language.c (unk_lang_trampoline): Delete function.
6530 (skip_language_trampoline): Update.
6531 (unknown_language_data): Delete skip_trampoline initializer.
6532 (auto_language_data): Likewise.
6533 * language.h (language_data): Delete skip_trampoline field.
6534 (language_defn::skip_trampoline): New function.
6535 * m2-lang.c (m2_language_data): Delete skip_trampoline
6536 initializer.
6537 * objc-lang.c (objc_skip_trampoline): Delete function, move
6538 implementation to objc_language::skip_trampoline.
6539 (objc_language_data): Delete skip_trampoline initializer.
6540 (objc_language::skip_trampoline): New member function with
6541 implementation from objc_skip_trampoline.
6542 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6543 initializer.
6544 * p-lang.c (pascal_language_data): Likewise.
6545 * rust-lang.c (rust_language_data): Likewise.
6546
0a50df5d
AB
65472020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6548
6549 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6550 (ada_language::demangle): New member function.
6551 * c-lang.c (c_language_data): Delete la_demangle initializer.
6552 (cplus_language_data): Delete la_demangle initializer.
6553 (cplus_language::demangle): New member function.
6554 (asm_language_data): Delete la_demangle initializer.
6555 (minimal_language_data): Delete la_demangle initializer.
6556 * d-lang.c (d_language_data): Delete la_demangle initializer.
6557 (d_language::demangle): New member function.
6558 * f-lang.c (f_language_data): Delete la_demangle initializer.
6559 (f_language::demangle): New member function.
6560 * go-lang.c (go_language_data): Delete la_demangle initializer.
6561 (go_language::demangle): New member function.
6562 * language.c (language_demangle): Update.
6563 (unk_lang_demangle): Delete.
6564 (unknown_language_data): Delete la_demangle initializer.
6565 (unknown_language::demangle): New member function.
6566 (auto_language_data): Delete la_demangle initializer.
6567 (auto_language::demangle): New member function.
6568 * language.h (language_data): Delete la_demangle field.
6569 (language_defn::demangle): New function.
6570 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6571 * objc-lang.c (objc_language_data): Delete la_demangle
6572 initializer.
6573 (objc_language::demangle): New member function.
6574 * opencl-lang.c (opencl_language_data): Delete la_demangle
6575 initializer.
6576 * p-lang.c (pascal_language_data): Likewise.
6577 * rust-lang.c (rust_language_data): Likewise.
6578 (rust_language::demangle): New member function.
6579
fbfb0a46
AB
65802020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6581
6582 * ada-lang.c (ada_language_data): Delete la_print_type
6583 initializer.
6584 (ada_language::print_type): New member function.
6585 * c-lang.c (c_language_data): Delete la_print_type initializer.
6586 (c_language::print_type): New member function.
6587 (cplus_language_data): Delete la_print_type initializer.
6588 (cplus_language::print_type): New member function.
6589 (asm_language_data): Delete la_print_type initializer.
6590 (asm_language::print_type): New member function.
6591 (minimal_language_data): Delete la_print_type initializer.
6592 (minimal_language::print_type): New member function.
6593 * d-lang.c (d_language_data): Delete la_print_type initializer.
6594 (d_language::print_type): New member function.
6595 * f-lang.c (f_language_data): Delete la_print_type initializer.
6596 (f_language::print_type): New member function.
6597 * go-lang.c (go_language_data): Delete la_print_type initializer.
6598 (go_language::print_type): New member function.
6599 * language.c (unk_lang_print_type): Delete.
6600 (unknown_language_data): Delete la_print_type initializer.
6601 (unknown_language::print_type): New member function.
6602 (auto_language_data): Delete la_print_type initializer.
6603 (auto_language::print_type): New member function.
6604 * language.h (language_data): Delete la_print_type field.
6605 (language_defn::print_type): New function.
6606 (LA_PRINT_TYPE): Update.
6607 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6608 (m2_language::print_type): New member function.
6609 * objc-lang.c (objc_language_data): Delete la_print_type
6610 initializer.
6611 (objc_language::print_type): New member function.
6612 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6613 to opencl_language::print_type.
6614 (opencl_language_data): Delete la_print_type initializer.
6615 (opencl_language::print_type): New member function, implementation
6616 from opencl_print_type.
6617 * p-lang.c (pascal_language_data): Delete la_print_type
6618 initializer.
6619 (pascal_language::print_type): New member function.
6620 * rust-lang.c (rust_print_type): Delete, implementation moved to
6621 rust_language::print_type.
6622 (rust_language_data): Delete la_print_type initializer.
6623 (rust_language::print_type): New member function, implementation
6624 from rust_print_type.
6625
6f827019
AB
66262020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6627
6628 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6629 implementation moves to...
6630 (ada_language::sniff_from_mangled_name): ...here. Update return
6631 type.
6632 (ada_language_data): Delete la_sniff_from_mangled_name
6633 initializer.
6634 * c-lang.c (c_language_data): Likewise.
6635 (cplus_language_data): Likewise.
6636 (cplus_language::sniff_from_mangled_name): New member function,
6637 implementation taken from gdb_sniff_from_mangled_name.
6638 (asm_language_data): Delete la_sniff_from_mangled_name
6639 initializer.
6640 (minimal_language_data): Likewise.
6641 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6642 implementation moves to cplus_language::sniff_from_mangled_name.
6643 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6644 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6645 moves to...
6646 (d_language::sniff_from_mangled_name): ...here.
6647 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6648 * f-lang.c (f_language_data): Likewise.
6649 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6650 moves to...
6651 (go_language::sniff_from_mangled_name): ...here.
6652 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6653 * language.c (language_sniff_from_mangled_name): Delete.
6654 (unknown_language_data): Delete la_sniff_from_mangled_name
6655 initializer.
6656 (auto_language_data): Likewise.
6657 * language.h (language_data): Delete la_sniff_from_mangled_name
6658 field.
6659 (language_defn::sniff_from_mangled_name): New function.
6660 (language_sniff_from_mangled_name): Delete declaration.
6661 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6662 field.
6663 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6664 implementation moves to...
6665 (objc_language::sniff_from_mangled_name): ...here.
6666 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6667 * opencl-lang.c (opencl_language_data): Likewise.
6668 * p-lang.c (pascal_language_data): Likewise.
6669 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6670 implementation moves to...
6671 (rust_language::sniff_from_mangled_name): ...here.
6672 (rust_language_data): Delete la_sniff_from_mangled_name
6673 initializer.
6674 * symtab.c (symbol_find_demangled_name): Call
6675 sniff_from_mangled_name member function.
6676
fb8006fd
AB
66772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6678
6679 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6680 initializer.
6681 * c-lang.c (c_language_data): Likewise.
6682 (cplus_language_data): Likewise.
6683 (cplus_language::search_name_hash): New member function.
6684 (asm_language_data): Delete la_search_name_hash initializer.
6685 (minimal_language_data): Likewise.
6686 * d-lang.c (d_language_data): Likewise.
6687 * dictionary.c (default_search_name_hash): Rename to...
6688 (language_defn::search_name_hash): ...this.
6689 * f-lang.c (f_language_data): Likewise.
6690 (f_language::search_name_hash): New member function.
6691 * go-lang.c (go_language_data): Delete la_search_name_hash
6692 initializer.
6693 * language.c (unknown_language_data): Likewise.
6694 (auto_language_data): Likewise.
6695 * language.h (struct language_data): Delete la_search_name_hash
6696 field.
6697 (language_defn::search_name_hash): Declare new member function.
6698 (default_search_name_hash): Delete declaration.
6699 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6700 initializer.
6701 * objc-lang.c (objc_language_data): Likewise.
6702 * opencl-lang.c (opencl_language_data): Likewise.
6703 * p-lang.c (pascal_language_data): Likewise.
6704 * rust-lang.c (rust_language_data): Likewise.
6705 * symtab.c (search_name_hash): Update call.
6706
8e25bafe
AB
67072020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6708
6709 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6710 initializer.
6711 * c-lang.c (class compile_instance): Declare.
6712 (c_language_data): Delete la_get_compile_instance initializer.
6713 (c_language::get_compile_instance): New member function.
6714 (cplus_language_data): Delete la_get_compile_instance initializer.
6715 (cplus_language::get_compile_instance): New member function.
6716 (asm_language_data): Delete la_get_compile_instance initializer.
6717 (minimal_language_data): Likewise.
6718 * c-lang.h (c_get_compile_context): Update comment.
6719 (cplus_get_compile_context): Update comment.
6720 * compile/compile.c (compile_to_object): Update calls, don't rely
6721 on function pointer being NULL.
6722 * d-lang.c (d_language_data): Delete la_get_compile_instance
6723 initializer.
6724 * f-lang.c (f_language_data): Likewise.
6725 * go-lang.c (go_language_data): Likewise.
6726 * language.c (unknown_language_data): Likewise.
6727 (auto_language_data): Likewise.
6728 * language.h (language_data): Delete la_get_compile_instance field.
6729 (language_defn::get_compile_instance): New member function.
6730 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6731 initializer.
6732 * objc-lang.c (objc_language_data): Likewise.
6733 * opencl-lang.c (opencl_language_data): Likewise.
6734 * p-lang.c (pascal_language_data): Likewise.
6735 * rust-lang.c (rust_language_data): Likewise.
6736
4009ee92
AB
67372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6738
6739 * ada-lang.c (ada_add_all_symbols): Update comment.
6740 (ada_iterate_over_symbols): Delete, move implementation to...
6741 (ada_language::iterate_over_symbols): ...here, a new member
6742 function, rewrite to use range based for loop.
6743 (ada_language_data): Delete la_iterate_over_symbols initializer.
6744 * c-lang.c (c_language_data): Likewise.
6745 (cplus_language_data): Likewise.
6746 (asm_language_data): Likewise.
6747 (minimal_language_data): Likewise.
6748 * d-lang.c (d_language_data): Likewise.
6749 * f-lang.c (f_language_data): Likewise.
6750 * go-lang.c (go_language_data): Likewise.
6751 * language.c (unknown_language_data): Likewise.
6752 (auto_language_data): Likewise.
6753 * language.h (language_data): Delete la_iterate_over_symbols field.
6754 (language_defn::iterate_over_symbols): New member function.
6755 (LA_ITERATE_OVER_SYMBOLS): Update.
6756 * linespec.c (iterate_over_all_matching_symtabs): Update.
6757 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6758 initializer.
6759 * objc-lang.c (objc_language_data): Likewise.
6760 * opencl-lang.c (opencl_language_data): Likewise.
6761 * p-lang.c (pascal_language_data): Likewise.
6762 * rust-lang.c (rust_language_data): Likewise.
6763
54f4ca46
AB
67642020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6765
6766 * ada-lang.c (ada_language_data): Delete
6767 la_lookup_transparent_type initializer.
6768 * c-lang.c (c_language_data): Likewise.
6769 (cplus_language_data): Likewise.
6770 (cplus_language::lookup_transparent_type): New member function.
6771 (asm_language_data): Delete la_lookup_transparent_type
6772 initializer.
6773 (minimal_language_data): Likewise.
6774 * d-lang.c (d_language_data): Likewise.
6775 * f-lang.c (f_language_data): Likewise.
6776 * go-lang.c (go_language_data): Likewise.
6777 * language.c (unknown_language_data): Likewise.
6778 (auto_language_data): Likewise.
6779 * language.h (struct language_data): Delete
6780 la_lookup_transparent_type field.
6781 (language_defn::lookup_transparent_type): New member function.
6782 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6783 initializer.
6784 * objc-lang.c (objc_language_data): Likewise.
6785 * opencl-lang.c (opencl_language_data): Likewise.
6786 * p-lang.c (pascal_language_data): Likewise.
6787 * rust-lang.c (rust_language_data): Likewise.
6788 * symtab.c (symbol_matches_domain): Update call.
6789
1fb314aa
AB
67902020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6791
6792 * ada-lang.c (ada_language_arch_info): Delete function, move
6793 implementation to...
6794 (ada_language::language_arch_info): ...here, a new member
6795 function.
6796 (ada_language_data): Delete la_language_arch_info.
6797 * c-lang.c (c_language_data): Likewise.
6798 (c_language::language_arch_info): New member function.
6799 (cplus_language_arch_info): Delete function, move
6800 implementation to...
6801 (cplus_language::language_arch_info): ...here, a new member
6802 function.
6803 (cplus_language_data): Delete la_language_arch_info.
6804 (asm_language_data): Likewise.
6805 (asm_language::language_arch_info): New member function.
6806 (minimal_language_data): Delete la_language_arch_info.
6807 (minimal_language::language_arch_info): New member function.
6808 * d-lang.c (d_language_arch_info): Delete function, move
6809 implementation to...
6810 (d_language::language_arch_info): ...here, a new member
6811 function.
6812 (d_language_data): Delete la_language_arch_info.
6813 * f-lang.c (f_language_arch_info): Delete function, move
6814 implementation to...
6815 (f_language::language_arch_info): ...here, a new member
6816 function.
6817 (f_language_data): Delete la_language_arch_info.
6818 * go-lang.c (go_language_arch_info): Delete function, move
6819 implementation to...
6820 (go_language::language_arch_info): ...here, a new member
6821 function.
6822 (go_language_data): Delete la_language_arch_info.
6823 * language.c (unknown_language_data): Likewise.
6824 (unknown_language::language_arch_info): New member function.
6825 (auto_language_data): Delete la_language_arch_info.
6826 (auto_language::language_arch_info): New member function.
6827 (language_gdbarch_post_init): Update call to
6828 la_language_arch_info.
6829 * language.h (language_data): Delete la_language_arch_info
6830 function pointer.
6831 (language_defn::language_arch_info): New function.
6832 * m2-lang.c (m2_language_arch_info): Delete function, move
6833 implementation to...
6834 (m2_language::language_arch_info): ...here, a new member
6835 function.
6836 (m2_language_data): Delete la_language_arch_info.
6837 * objc-lang.c (objc_language_arch_info): Delete function, move
6838 implementation to...
6839 (objc_language::language_arch_info): ...here, a new member
6840 function.
6841 (objc_language_data): Delete la_language_arch_info.
6842 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6843 implementation to...
6844 (opencl_language::language_arch_info): ...here, a new member
6845 function.
6846 (opencl_language_data): Delete la_language_arch_info.
6847 * p-lang.c (pascal_language_arch_info): Delete function, move
6848 implementation to...
6849 (pascal_language::language_arch_info): ...here, a new member
6850 function.
6851 (pascal_language_data): Delete la_language_arch_info.
6852 * rust-lang.c (rust_language_arch_info): Delete function, move
6853 implementation to...
6854 (rust_language::language_arch_info): ...here, a new member
6855 function.
6856 (rust_language_data): Delete la_language_arch_info.
6857
48448202
AB
68582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6859
6860 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6861 initializer.
6862 * c-lang.c (c_language_data): Likewise.
6863 (cplus_language_data): Likewise.
6864 (cplus_language::pass_by_reference_info): New method.
6865 (asm_language_data): Delete la_pass_by_reference initializer.
6866 (minimal_language_data): Likewise.
6867 * cp-abi.c (cp_pass_by_reference): Remove use of
6868 default_pass_by_reference.
6869 * d-lang.c (d_language_data): Likewise.
6870 * f-lang.c (f_language_data): Likewise.
6871 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6872 default_pass_by_reference.
6873 * go-lang.c (go_language_data): Likewise.
6874 * language.c (language_pass_by_reference): Update.
6875 (default_pass_by_reference): Delete.
6876 (unknown_language_data): Delete la_pass_by_reference
6877 initializer.
6878 (auto_language_data): Likewise.
6879 * language.h (struct language_data): Delete la_pass_by_reference
6880 field.
6881 (language_defn::pass_by_reference_info): New member function.
6882 (default_pass_by_reference): Delete declaration.
6883 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6884 initializer.
6885 * objc-lang.c (objc_language_data): Likewise.
6886 * opencl-lang.c (opencl_language_data): Likewise.
6887 * p-lang.c (pascal_language_data): Likewise.
6888 * rust-lang.c (rust_language_data): Likewise.
6889
15e5fd35
AB
68902020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6891
6892 * ada-lang.c (ada_read_var_value): Delete function, move
6893 implementation to...
6894 (ada_language::read_var_value): ...here.
6895 (ada_language_data): Delete la_read_var_value initializer.
6896 * c-lang.c (c_language_data): Likewise.
6897 (cplus_language_data): Likewise.
6898 (minimal_language_data): Likewise.
6899 * d-lang.c (d_language_data): Likewise.
6900 * f-lang.c (f_language_data): Likewise.
6901 * findvar.c (default_read_var_value): Rename to...
6902 (language_defn::read_var_value): ...this.
6903 * findvar.c (read_var_value): Update header comment, and change to
6904 call member function instead of function pointer.
6905 * go-lang.c (go_language_data): Likewise.
6906 * language.c (unknown_language_data): Delete la_read_var_value
6907 initializer.
6908 (auto_language_data): Likewise.
6909 * language.h (struct language_data): Delete la_read_var_value
6910 field.
6911 (language_defn::read_var_value): New member function.
6912 (default_read_var_value): Delete declaration.
6913 * m2-lang.c (m2_language_data): Delete la_read_var_value
6914 initializer.
6915 * objc-lang.c (objc_language_data): Likewise.
6916 * opencl-lang.c (opencl_language_data): Likewise.
6917 * p-lang.c (pascal_language_data): Likewise.
6918 * rust-lang.c (rust_language_data): Likewise.
6919 * value.h (default_read_var_value): Delete declaration.
6920
5bd40f2a
AB
69212020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6922
6923 * ada-lang.c (ada_print_array_index): Delete function, move
6924 implementation to...
6925 (ada_language::print_array_index): ...here.
6926 (ada_language_data): Delete la_print_array_index initializer.
6927 * c-lang.c (c_language_data): Likewise.
6928 (cplus_language_data): Likewise.
6929 (minimal_language_data): Likewise.
6930 * d-lang.c (d_language_data): Likewise.
6931 * f-lang.c (f_language_data): Likewise.
6932 * go-lang.c (go_language_data): Likewise.
6933 * language.c (default_print_array_index): Delete function, move
6934 implementation to...
6935 (language_defn::print_array_index): ...here.
6936 (unknown_language_data): Delete la_print_array_index initializer.
6937 (auto_language_data): Likewise.
6938 * language.h (struct language_data): Delete la_print_array_index
6939 field.
6940 (language_defn::print_array_index): New member function.
6941 (LA_PRINT_ARRAY_INDEX): Update.
6942 (default_print_array_index): Delete declaration.
6943 * m2-lang.c (m2_language_data): Delete la_print_array_index
6944 initializer.
6945 * objc-lang.c (objc_language_data): Likewise.
6946 * opencl-lang.c (opencl_language_data): Likewise.
6947 * p-lang.c (pascal_language_data): Likewise.
6948 * rust-lang.c (rust_language_data): Likewise.
6949
0874fd07
AB
69502020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6951
6952 * gdb/ada-lang.c (ada_language_defn): Convert to...
6953 (ada_language_data): ...this.
6954 (class ada_language): New class.
6955 (ada_language_defn): New static global.
6956 * gdb/c-lang.c (c_language_defn): Convert to...
6957 (c_language_data): ...this.
6958 (class c_language): New class.
6959 (c_language_defn): New static global.
6960 (cplus_language_defn): Convert to...
6961 (cplus_language_data): ...this.
6962 (class cplus_language): New class.
6963 (cplus_language_defn): New static global.
6964 (asm_language_defn): Convert to...
6965 (asm_language_data): ...this.
6966 (class asm_language): New class.
6967 (asm_language_defn): New static global.
6968 (minimal_language_defn): Convert to...
6969 (minimal_language_data): ...this.
6970 (class minimal_language): New class.
6971 (minimal_language_defn): New static global.
6972 * gdb/d-lang.c (d_language_defn): Convert to...
6973 (d_language_data): ...this.
6974 (class d_language): New class.
6975 (d_language_defn): New static global.
6976 * gdb/f-lang.c (f_language_defn): Convert to...
6977 (f_language_data): ...this.
6978 (class f_language): New class.
6979 (f_language_defn): New static global.
6980 * gdb/go-lang.c (go_language_defn): Convert to...
6981 (go_language_data): ...this.
6982 (class go_language): New class.
6983 (go_language_defn): New static global.
6984 * gdb/language.c (unknown_language_defn): Remove declaration.
6985 (current_language): Initialize to nullptr, real initialization is
6986 moved to _initialize_language.
6987 (languages): Delete global.
6988 (language_defn::languages): Define.
6989 (set_language_command): Use language_defn::languages.
6990 (set_language): Likewise.
6991 (range_error): Likewise.
6992 (language_enum): Likewise.
6993 (language_def): Likewise.
6994 (add_set_language_command): Use language_def::languages for the
6995 language list, and language_def to lookup language pointers.
6996 (skip_language_trampoline): Use language_defn::languages.
6997 (unknown_language_defn): Convert to...
6998 (unknown_language_data): ...this.
6999 (class unknown_language): New class.
7000 (unknown_language_defn): New static global.
7001 (auto_language_defn): Convert to...
7002 (auto_language_data): ...this.
7003 (class auto_language): New class.
7004 (auto_language_defn): New static global.
7005 (language_gdbarch_post_init): Use language_defn::languages.
7006 (_initialize_language): Initialize current_language.
7007 * gdb/language.h (struct language_defn): Rename to...
7008 (struct language_data): ...this.
7009 (struct language_defn): New.
7010 (auto_language_defn): Delete.
7011 (unknown_language_defn): Delete.
7012 (minimal_language_defn): Delete.
7013 (ada_language_defn): Delete.
7014 (asm_language_defn): Delete.
7015 (c_language_defn): Delete.
7016 (cplus_language_defn): Delete.
7017 (d_language_defn): Delete.
7018 (f_language_defn): Delete.
7019 (go_language_defn): Delete.
7020 (m2_language_defn): Delete.
7021 (objc_language_defn): Delete.
7022 (opencl_language_defn): Delete.
7023 (pascal_language_defn): Delete.
7024 (rust_language_defn): Delete.
7025 * gdb/m2-lang.c (m2_language_defn): Convert to...
7026 (m2_language_data): ...this.
7027 (class m2_language): New class.
7028 (m2_language_defn): New static global.
7029 * gdb/objc-lang.c (objc_language_defn): Convert to...
7030 (objc_language_data): ...this.
7031 (class objc_language): New class.
7032 (objc_language_defn): New static global.
7033 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7034 (opencl_language_data): ...this.
7035 (class opencl_language): New class.
7036 (opencl_language_defn): New static global.
7037 * gdb/p-lang.c (pascal_language_defn): Convert to...
7038 (pascal_language_data): ...this.
7039 (class pascal_language): New class.
7040 (pascal_language_defn): New static global.
7041 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7042 language pointer, update comment format.
7043 * gdb/rust-lang.c (rust_language_defn): Convert to...
7044 (rust_language_data): ...this.
7045 (class rust_language): New class.
7046 (rust_language_defn): New static global.
7047
1313c56e
AB
70482020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7049
7050 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7051 member variable.
7052 <m_stmt_at_address>: New member variable.
7053 (lnp_state_machine::record_line): Don't record some lines, update
7054 tracking of is_stmt at the same address.
7055 (lnp_state_machine::lnp_state_machine): Initialise new member
7056 variables.
7057
b7ed9f3d
ST
70582020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7059
7060 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7061 "-include gnu-nat-mig.h".
7062 * gnu-nat-mig.h: New file.
7063 * gnu-nat.c: Include "gnu-nat-mig.h".
7064 (exc_server, msg_reply_server, notify_server,
7065 process_reply_server): Remove declarations.
7066
14a8ad62
ST
70672020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7068
7069 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7070 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7071 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7072 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7073 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7074 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7075 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7076 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7077 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7078 to gnu_nat_target class.
7079 * gnu-nat.c: Likewise.
7080 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7081 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7082 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7083 object.
7084 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7085 instead of `gnu_target'.
7086
0af5e106
ST
70872020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7088
7089 * i386-gnu-tdep.c: Include "gdbcore.h"
7090 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7091 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7092 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7093 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7094 i386_gnu_sigcontext_addr): New functions
7095 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7096 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7097 tdep.
7098
078f2fc9
ST
70992020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7100
7101 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7102 before fork_inferior call. Avoid calling it if target_is_pushed returns
7103 true.
7104
53dff92c
ST
71052020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7106
7107 * gnu-nat.h (gnu_target): New variable declaration.
7108 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7109 gnu_target.
7110 * gnu-nat.c (gnu_target): New variable.
7111 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7112 add_thread_silent, and add_thread calls.
7113 (gnu_nat_target::create_inferior): Pass gnu_target to
7114 add_thread_silent, thread_change_ptid call.
7115 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7116 call.
7117
5a8b8627
ST
71182020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7119
7120 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7121 (gnu_nat_target::find_memory_regions): Remove unused
7122 `old_address' variable.
7123
366f550a
ST
71242020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7125
7126 * gnu-nat.c: Include "gdbarch.h".
7127
f14871bf
ST
71282020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7129
7130 * reply_mig_hack.awk (Error return): Cast function through
7131 void *, to bypass compiler function call check.
7132
c6887cfb
ST
71332020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7134
7135 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7136 $(srcdir)/reply_mig_hack.awk.
7137
6930bffe
ST
71382020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7139
7140 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7141
112c22ed
JG
71422020-05-30 Jonny Grant <jg@jguk.org>
7143
7144 * configure.ac (ACX_BUGURL): change bug URL to https.
7145
f68f85b5
PA
71462020-05-30 Pedro Alves <palves@redhat.com>
7147
7148 * cp-support.c (replace_typedefs_template): New.
7149 (replace_typedefs_qualified_name): Handle
7150 DEMANGLE_COMPONENT_TEMPLATE.
7151
976ca316
SM
71522020-05-29 Simon Marchi <simon.marchi@efficios.com>
7153
7154 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7155 dwarf2/index-cache.h, dwarf2/index-write.c,
7156 dwarf2/index-write.h, dwarf2/line-header.c,
7157 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7158 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7159 variables and fields from `dwarf2_per_objfile` to just
7160 `per_objfile` throughout.
7161
989ade05
SM
71622020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7163
7164 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7165 <push_dwarf_reg_entry_value>: Add comment.
7166
c47bae85
KB
71672020-05-28 Kevin Buettner <kevinb@redhat.com>
7168 Keith Seitz <keiths@redhat.com>
7169
7170 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7171 instead of PyEval_ReleaseLock.
7172 (class gdbpy_gil): Move to earlier in file.
7173 (finalize_python): Set gdb_python_initialized.
7174 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7175 when not initialized.
7176
44486dcf
SM
71772020-05-28 Simon Marchi <simon.marchi@efficios.com>
7178
7179 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7180 <push_dwarf_reg_entry_value>: Remove assert. Override
7181 per_objfile with caller_per_objfile.
7182
f030440d
TV
71832020-05-28 Tom de Vries <tdevries@suse.de>
7184
7185 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7186 PR gold/15646 workaround to symbol kind "type".
7187
f0fbb768
TT
71882020-05-27 Tom Tromey <tromey@adacore.com>
7189
7190 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7191
af0b2a3e
TT
71922020-05-27 Tom Tromey <tromey@adacore.com>
7193
7194 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7195 Use htab_find_with_hash.
7196 <add_abbrev>: Remove "abbrev_number" parameter.
7197 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7198 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7199 (hash_abbrev): Add comment.
7200 (abbrev_table::lookup_abbrev): Move to header file.
7201 (abbrev_table::read): Update.
7202
7d00ffec
TT
72032020-05-27 Tom Tromey <tromey@adacore.com>
7204
7205 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7206 method.
7207 <canonical_name>: New member.
7208 <raw_name>: Rename from "name".
7209 (partial_die_info): Initialize canonical_name.
7210 (scan_partial_symbols): Check raw_name.
7211 (partial_die_parent_scope, partial_die_full_name)
7212 (add_partial_symbol, add_partial_subprogram)
7213 (add_partial_enumeration, load_partial_dies): Use "name" method.
7214 (partial_die_info::name): New method.
7215 (partial_die_info::read, guess_partial_die_structure_name)
7216 (partial_die_info::fixup): Update.
7217
697bba18
TT
72182020-05-27 Tom Tromey <tromey@adacore.com>
7219
7220 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7221 <get_ref_die_offset>: Inline.
7222 <get_ref_die_offset_complaint>: New method.
7223 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7224 (attribute::get_ref_die_offset_complaint): Rename from
7225 get_ref_die_offset. Just issue complaint.
7226
c17ace43
HD
72272020-05-27 Hannes Domani <ssbssa@yahoo.de>
7228
7229 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7230
96445f0b
HD
72312020-05-27 Hannes Domani <ssbssa@yahoo.de>
7232
7233 * exec.c (exec_file_attach): Use errno value of first openp failure.
7234
ac637ec3
HD
72352020-05-27 Hannes Domani <ssbssa@yahoo.de>
7236
7237 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7238 Don't close thread handle.
7239
17ee85fc
TT
72402020-05-27 Tom Tromey <tom@tromey.com>
7241 Simon Marchi <simon.marchi@efficios.com>
7242
7243 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7244 shared_ptr.
7245 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7246 member.
7247 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7248 dwarf2_per_bfd_objfile_data_key>: New globals.
7249 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7250 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7251 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7252 shared.
7253 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7254 short-circuit when sharing.
7255 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7256 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7257
39b16f87
SM
72582020-05-27 Simon Marchi <simon.marchi@efficios.com>
7259
7260 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7261 to...
7262 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7263 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7264
fcf23d5b
SM
72652020-05-27 Simon Marchi <simon.marchi@efficios.com>
7266
7267 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7268 build_name_components, find_name_components_bounds>:
7269 Add per_objfile parameter.
7270 (struct mapped_index) <symbol_name_at>: Likewise.
7271 (struct mapped_debug_names): Remove constructor.
7272 <dwarf2_per_objfile>: Remove field.
7273 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7274 (mapped_index_base::find_name_components_bounds,
7275 mapped_index_base::build_name_components,
7276 dw2_expand_symtabs_matching_symbol): Likewise.
7277 (class mock_mapped_index) <symbol_name_at>: Likewise.
7278 (check_match): Likewise.
7279 (check_find_bounds_finds): Likewise.
7280 (test_mapped_index_find_name_component_bounds): Update.
7281 (CHECK_MATCH): Update.
7282 (dw2_expand_symtabs_matching): Update.
7283 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7284 per_objfile parameter.
7285 <find_vec_in_debug_names>: Likewise.
7286 <m_per_objfile>: New field.
7287 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7288 parameter.
7289 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7290 (dw2_debug_names_iterator::next): Update.
7291 (dw2_debug_names_lookup_symbol): Update.
7292 (dw2_debug_names_expand_symtabs_for_function): Update.
7293 (dw2_debug_names_map_matching_symbols): Update.
7294 (dw2_debug_names_expand_symtabs_matching): Update.
7295 (dwarf2_read_debug_names): Update.
7296
7188ed02
SM
72972020-05-27 Simon Marchi <simon.marchi@efficios.com>
7298
7299 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7300 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7301 move to dwarf2_per_objfile.
7302 <read_in_chain>: Remove.
7303 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7304 remove_all_cus, age_comp_units>: New methods.
7305 <m_dwarf2_cus>: New member.
7306 (struct dwarf2_per_cu_data) <cu>: Remove.
7307 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7308 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7309 moved to methods of dwarf2_per_objfile.
7310 (dwarf2_clear_marks): Remove.
7311 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7312 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7313 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7314 (dwarf2_per_objfile::remove_all_cus): New.
7315 (class free_cached_comp_units) <~free_cached_comp_units>:
7316 Update.
7317 (load_cu): Update.
7318 (dw2_do_instantiate_symtab): Adjust.
7319 (fill_in_sig_entry_from_dwo_entry): Adjust.
7320 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7321 (cutu_reader::cutu_reader): Likewise.
7322 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7323 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7324 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7325 and dwarf2_per_objfile::age_comp_units.
7326 (load_partial_comp_unit): Update.
7327 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7328 (process_queue): Likewise.
7329 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7330 backlink.
7331 (dwarf2_read_addr_index): Likewise.
7332 (follow_die_offset): Likewise.
7333 (dwarf2_fetch_die_loc_sect_off): Likewise.
7334 (dwarf2_fetch_constant_bytes): Likewise.
7335 (dwarf2_fetch_die_type_sect_off): Likewise.
7336 (follow_die_sig_1): Likewise.
7337 (load_full_type_unit): Likewise.
7338 (read_signatured_type): Likewise.
7339 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7340 (dwarf2_cu::~dwarf2_cu): Remove.
7341 (dwarf2_per_objfile::get_cu): New.
7342 (dwarf2_per_objfile::set_cu): New.
7343 (age_cached_comp_units): Rename to...
7344 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7345 to std::unordered_map.
7346 (free_one_cached_comp_unit): Rename to...
7347 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7348 to std::unordered_map.
7349 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7350 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7351 a dwarf2_per_objfile in data.
7352 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7353 (dwarf2_clear_marks): Remove.
7354
2e671100
SM
73552020-05-27 Simon Marchi <simon.marchi@efficios.com>
7356
7357 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7358 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7359 (init_tu_and_read_dwo_dies): Likewise.
7360 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7361 (cutu_reader::cutu_reader): Likewise.
7362 (load_partial_comp_unit): Likewise.
7363 (process_psymtab_comp_unit): Update.
7364 (build_type_psymtabs_1): Update.
7365 (process_skeletonless_type_unit): Update.
7366 (load_full_comp_unit): Update.
7367 (find_partial_die): Update.
7368 (dwarf2_read_addr_index): Update.
7369 (read_signatured_type): Update.
7370
2e6a9f79
SM
73712020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7372
7373 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7374 m_header_read_in>: New fields.
7375 <get_header>: New method.
7376 * dwarf2/read.c (per_cu_header_read_in): Remove.
7377 (dwarf2_per_cu_data::get_header): New.
7378 (dwarf2_per_cu_data::addr_size): Update.
7379 (dwarf2_per_cu_data::offset_size): Update.
7380 (dwarf2_per_cu_data::ref_addr_size): Update.
7381
1b555f17
SM
73822020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7383
7384 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7385 (dw2_do_instantiate_symtab): Update.
7386 (queue_and_load_all_dwo_tus): Change parameter from
7387 dwarf2_per_cu_data to dwarf2_cu.
7388 (dwarf2_fetch_die_loc_sect_off): Update.
7389 (dwarf2_fetch_constant_bytes): Update.
7390 (dwarf2_fetch_die_type_sect_off): Update.
7391
8fc0b21d
SM
73922020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7393
7394 * dwarf2/read.c (process_full_comp_unit,
7395 process_full_type_unit): Remove per_cu, per_objfile paramters.
7396 Add dwarf2_cu parameter.
7397 (process_queue): Update.
7398
168c9250
SM
73992020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7400
7401 * dwarf2/read.c (create_cu_from_index_list): Replace
7402 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7403 (create_cus_from_index_list): Likewise.
7404 (create_cus_from_index): Likewise.
7405 (create_signatured_type_table_from_index): Likewise.
7406 (create_cus_from_debug_names_list): Likewise.
7407 (create_cus_from_debug_names): Likewise.
7408 (dwarf2_read_gdb_index): Update.
7409 (dwarf2_read_debug_names): Update.
7410
e286671b
TT
74112020-05-27 Tom Tromey <tom@tromey.com>
7412 Simon Marchi <simon.marchi@efficios.com>
7413
7414 * dwarf2/read.h (struct dwarf2_per_objfile)
7415 <get_type_for_signatured_type, set_type_for_signatured_type>:
7416 New methods.
7417 <m_type_map>: New member.
7418 (struct signatured_type) <type>: Remove.
7419 * dwarf2/read.c
7420 (dwarf2_per_objfile::get_type_for_signatured_type,
7421 dwarf2_per_objfile::set_type_for_signatured_type): New.
7422 (get_signatured_type): Use new methods.
7423
8adb8487
TT
74242020-05-27 Tom Tromey <tom@tromey.com>
7425 Simon Marchi <simon.marchi@efficios.com>
7426
7427 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7428 (struct dwarf2_per_objfile) <type_units>: New member.
7429 <get_type_unit_group_unshareable>: New method.
7430 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7431 num_symtabs, symtabs>: Remove; move to
7432 type_unit_group_unshareable.
7433 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7434 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7435 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7436
127bbf4b
SM
74372020-05-27 Simon Marchi <simon.marchi@efficios.com>
7438
7439 * dwarf2/read.h (struct dwarf2_per_cu_data):
7440 <dwarf2_per_objfile>: Remove.
7441 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7442 dwarf2_per_objfile.
7443 (create_signatured_type_table_from_index): Likewise.
7444 (create_signatured_type_table_from_debug_names): Likewise.
7445 (create_debug_type_hash_table): Likewise.
7446 (fill_in_sig_entry_from_dwo_entry): Likewise.
7447 (create_type_unit_group): Likewise.
7448 (read_comp_units_from_section): Likewise.
7449 (create_cus_hash_table): Likewise.
7450
f6e649dd
SM
74512020-05-27 Simon Marchi <simon.marchi@efficios.com>
7452
7453 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7454 dwarf2_per_cu_data::dwarf2_per_objfile.
7455 (compute_compunit_symtab_includes): Likewise.
7456 (dwarf2_cu::start_symtab): Likewise.
7457
aa66c379
SM
74582020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7459
7460 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7461 parameter.
7462 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7463 (read_namespace_alias): Update.
7464 (lookup_die_type): Update.
7465 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7466 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7467 Update.
7468 (disassemble_dwarf_expression): Update.
7469
120ce1b5
SM
74702020-05-27 Simon Marchi <simon.marchi@efficios.com>
7471
7472 * dwarf2/read.h (struct dwarf2_queue_item): Add
7473 dwarf2_per_objfile parameter, assign new parameter.
7474 <per_objfile>: New field.
7475 * dwarf2/read.c (free_one_cached_comp_unit): Add
7476 dwarf2_per_objfile parameter.
7477 (queue_comp_unit): Likewise.
7478 (dw2_do_instantiate_symtab): Update.
7479 (process_psymtab_comp_unit): Update.
7480 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7481 (process_imported_unit_die): Update.
7482 (queue_and_load_dwo_tu): Update.
7483 (follow_die_offset): Update.
7484 (follow_die_sig_1): Update.
7485
9f47c707
SM
74862020-05-27 Simon Marchi <simon.marchi@efficios.com>
7487
7488 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7489 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7490 (read_call_site_scope): Assign per_objfile.
7491 (dwarf2_per_cu_data::objfile): Remove.
7492 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7493 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7494 dwarf2_per_objfile parameter.
7495 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7496 dwarf2_per_objfile parameter.
7497 (dwarf_expr_reg_to_entry_parameter): Add output
7498 dwarf2_per_objfile parameter.
7499 (locexpr_get_frame_base): Update.
7500 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7501 <push_dwarf_reg_entry_value>: Update.
7502 <call_site_to_target_addr>: Update.
7503 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7504 parameter.
7505 (value_of_dwarf_reg_entry): Update.
7506 (rw_pieced_value): Update.
7507 (indirect_synthetic_pointer): Update.
7508 (dwarf2_evaluate_property): Update.
7509 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7510 parameter.
7511 (locexpr_read_variable): Update.
7512 (locexpr_get_symbol_read_needs): Update.
7513 (loclist_read_variable): Update.
7514
14095eb3
SM
75152020-05-27 Simon Marchi <simon.marchi@efficios.com>
7516
7517 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7518 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7519 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7520 parameter.
7521 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7522 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7523 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7524 parameter.
7525 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7526 sect_variable_value): Add dwarf2_per_objfile parameter.
7527 (class dwarf_evaluate_loc_desc) <dwarf_call,
7528 dwarf_variable_value>: Update.
7529 (fetch_const_value_from_synthetic_pointer): Add
7530 dwarf2_per_objfile parameter.
7531 (fetch_const_value_from_synthetic_pointer): Update.
7532 (coerced_pieced_ref): Update.
7533 (class symbol_needs_eval_context) <dwarf_call,
7534 dwarf_variable_value>: Update.
7535 (dwarf2_compile_expr_to_ax): Update.
7536
3c3cd3d4
SM
75372020-05-27 Simon Marchi <simon.marchi@efficios.com>
7538
7539 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7540 parameter.
7541 (dwarf2_evaluate_loc_desc_full): Update.
7542
82ca3f51
SM
75432020-05-27 Simon Marchi <simon.marchi@efficios.com>
7544
7545 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7546 parameter.
7547 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7548 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7549 dwarf2_per_objfile parameter.
7550 (decode_debug_loc_dwo_addresses): Likewise.
7551 (dwarf2_find_location_expression): Update.
7552 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7553 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7554 parameter.
7555 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7556 parameter.
7557 (locexpr_describe_location_1): Likewise.
7558 (locexpr_describe_location): Update.
7559
4b167ea1
SM
75602020-05-27 Simon Marchi <simon.marchi@efficios.com>
7561
7562 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7563 Remove.
7564 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7565 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7566 (dwarf2_compile_property_to_c): Update.
7567 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7568 use text offset from objfile.
7569 (locexpr_tracepoint_var_ref): Update.
7570 (locexpr_generate_c_location): Update.
7571 (loclist_describe_location): Update.
7572 (loclist_tracepoint_var_ref): Update.
7573 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7574 dwarf2_per_objfile parameter.
7575 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7576 use text offset from objfile.
7577 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7578
89b07335
SM
75792020-05-27 Simon Marchi <simon.marchi@efficios.com>
7580
7581 * dwarf2/expr.h (struct dwarf_expr_context)
7582 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7583 <offset>: Remove.
7584 <per_objfile>: New member.
7585 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7586 dwarf2_per_objfile parameter. Don't set offset, set
7587 per_objfile.
7588 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7589 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7590 a dwarf2_per_objfile object instead of an offset.
7591 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7592 constructor.
7593 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7594 to dwarf2_expr_executor constructor. Don't set offset.
7595 (dwarf2_fetch_cfa_info): Update.
7596 (struct dwarf2_frame_cache) <text_offset>: Remove.
7597 <per_objfile>: New field.
7598 (dwarf2_frame_cache): Update.
7599 (dwarf2_frame_prev_register): Update.
7600 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7601 <dwarf_evaluate_loc_desc>: Add constructor.
7602 (dwarf2_evaluate_loc_desc_full): Update.
7603 (dwarf2_locexpr_baton_eval): Update.
7604 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7605 Add constructor.
7606 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7607
293e7e51
SM
76082020-05-27 Simon Marchi <simon.marchi@efficios.com>
7609
7610 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7611 addr_sized_int_type>: Move to dwarf2_cu.
7612 <int_type>: Move to dwarf2_per_objfile.
7613 (struct dwarf2_per_objfile) <int_type>: Move here.
7614 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7615 addr_sized_int_type>: Move here.
7616 (read_func_scope): Update.
7617 (read_array_type): Update.
7618 (read_tag_string_type): Update.
7619 (attr_to_dynamic_prop): Update.
7620 (dwarf2_per_cu_data::int_type): Rename to...
7621 (dwarf2_per_objfile::int_type): ... this.
7622 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7623 (dwarf2_cu::addr_sized_int_type): ... this.
7624 (read_subrange_type): Update.
7625 (dwarf2_per_cu_data::addr_type): Rename to...
7626 (dwarf2_cu::addr_type): ... this.
7627 (set_die_type): Update.
7628
64874a40
SM
76292020-05-27 Simon Marchi <simon.marchi@efficios.com>
7630
7631 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7632 data through per_cu->cu.
7633
4ab09049
SM
76342020-05-27 Simon Marchi <simon.marchi@efficios.com>
7635
7636 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7637 dwarf2_per_cu_data parameter fo dwarf2_cu.
7638 (lookup_dwo_type_unit): Likewise.
7639 (read_cutu_die_from_dwo): Likewise.
7640 (lookup_dwo_unit): Likewise.
7641 (open_and_init_dwo_file): Likewise.
7642 (lookup_dwo_cutu): Likewise.
7643 (lookup_dwo_comp_unit): Likewise.
7644 (lookup_dwo_type_unit): Likewise.
7645 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7646 (cutu_reader::cutu_reader): Update.
7647
47b14e86
SM
76482020-05-27 Simon Marchi <simon.marchi@efficios.com>
7649
7650 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7651 parameter.
7652 (process_full_type_unit): Likewise.
7653 (process_queue): Update.
7654
43182c09
SM
76552020-05-27 Simon Marchi <simon.marchi@efficios.com>
7656
7657 * dwarf2/read.c (recursively_compute_inclusions): Add
7658 dwarf2_per_objfile parameter.
7659 (compute_compunit_symtab_includes): Likewise.
7660 (process_cu_includes): Update.
7661
7aa104c4
SM
76622020-05-27 Simon Marchi <simon.marchi@efficios.com>
7663
7664 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7665 parameter.
7666 (create_type_unit_group): Update.
7667 (process_psymtab_comp_unit_reader): Update.
7668 (build_type_psymtabs_reader): Update.
7669
e3beb21d
SM
76702020-05-27 Simon Marchi <simon.marchi@efficios.com>
7671
7672 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7673 object through m_this_cu->cu.
7674
d460f660
SM
76752020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7676
7677 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7678 the info parameter.
7679 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7680
ab432490
SM
76812020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7682
7683 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7684 per_objfile parameter.
7685 (load_full_type_unit): Add per_objfile parameter.
7686 (read_signatured_type): Likewise.
7687 (load_full_comp_unit): Likewise.
7688 (load_cu): Likewise.
7689 (dw2_do_instantiate_symtab): Likewise.
7690 (dw2_get_file_names): Likewise.
7691 (dw2_map_symtabs_matching_filename): Update.
7692 (dw_expand_symtabs_matching_file_matcher): Update.
7693 (dw2_map_symbol_filenames): Update.
7694 (process_psymtab_comp_unit): Add per_objfile parameter.
7695 (build_type_psymtabs_1): Update.
7696 (process_skeletonless_type_unit): Update.
7697 (dwarf2_build_psymtabs_hard): Update.
7698 (load_partial_comp_unit): Add per_objfile parameter.
7699 (scan_partial_symbols): Update.
7700 (load_full_comp_unit): Add per_objfile parameter.
7701 (process_imported_unit_die): Update.
7702 (create_cus_hash_table): Update.
7703 (find_partial_die): Update.
7704 (dwarf2_read_addr_index): Update.
7705 (follow_die_offset): Update.
7706 (dwarf2_fetch_die_loc_sect_off): Update.
7707 (dwarf2_fetch_constant_bytes): Update.
7708 (dwarf2_fetch_die_type_sect_off): Update.
7709 (follow_die_sig_1): Update.
7710 (load_full_type_unit): Add per_objfile parameter.
7711 (read_signatured_type): Likewise.
7712
313bad1b
SM
77132020-05-27 Simon Marchi <simon.marchi@efficios.com>
7714
7715 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7716 of objfile_name.
7717
c3699833
SM
77182020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7719
7720 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7721 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7722 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7723 field.
7724 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7725 (create_cus_from_index): Update.
7726 (dwarf2_read_gdb_index): Update.
7727 (create_cus_from_debug_names): Update.
7728 (dwarf2_read_debug_names): Update.
7729 (get_abbrev_section_for_cu): Update.
7730 (create_all_comp_units): Update.
7731 (read_attribute_value): Update.
7732 (get_debug_line_section): Update.
7733 * dwarf2/index-cache.c (index_cache::store): Update.
7734 * dwarf2/index-write.c (save_gdb_index_command): Update.
7735 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7736
1859c670
SM
77372020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7738
7739 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7740 member.
7741 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7742 dwarf2_per_cu_data::per_bfd.
7743 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7744 (create_type_unit_group): Likewise.
7745 (queue_comp_unit): Remove reference to
7746 per_cu->dwarf2_per_objfile.
7747 (maybe_queue_comp_unit): Likewise.
7748 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7749 (create_cus_hash_table): Assign new field.
7750
5e22e966
SM
77512020-05-27 Simon Marchi <simon.marchi@efficios.com>
7752
7753 * dwarf2/read.c: Replace
7754 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7755 dwarf2_cu->per_objfile throughout.
7756
97a1449a
SM
77572020-05-27 Simon Marchi <simon.marchi@efficios.com>
7758
7759 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7760 parameter, don't use per_cu->dwarf2_per_objfile.
7761 (dw2_instantiate_symtab): Likewise.
7762 (dw2_find_last_source_symtab): Update.
7763 (dw2_map_expand_apply): Update.
7764 (dw2_lookup_symbol): Update.
7765 (dw2_expand_symtabs_for_function): Update.
7766 (dw2_expand_all_symtabs): Update.
7767 (dw2_expand_symtabs_with_fullname): Update.
7768 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7769 don't use per_cu->dwarf2_per_objfile.
7770 (dw2_expand_marked_cus): Update.
7771 (dw2_find_pc_sect_compunit_symtab): Update.
7772 (dw2_debug_names_lookup_symbol): Update.
7773 (dw2_debug_names_expand_symtabs_for_function): Update.
7774 (dw2_debug_names_map_matching_symbols): Update.
7775 (dwarf2_psymtab::expand_psymtab): Update.
7776
9e021579
SM
77772020-05-27 Simon Marchi <simon.marchi@efficios.com>
7778
7779 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7780 <per_objfile>: New member.
7781 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7782 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7783 call to dwarf2_cu.
7784 (cutu_reader::cutu_reader): Update.
7785 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7786
ae090bdb
SM
77872020-05-27 Simon Marchi <simon.marchi@efficios.com>
7788
7789 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7790 struct dwarf2_per_objfile.
7791 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7792 dwarf2_per_bfd.
7793 * dwarf2/read.c (set_die_type): Update.
7794 (get_die_type_at_offset): Update.
7795
af758d11
SM
77962020-05-27 Tom Tromey <tom@tromey.com>
7797 Simon Marchi <simon.marchi@efficios.com>
7798
7799 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7800 method.
7801 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7802 get_symtab, set_symtab>: New methods.
7803 <m_symtabs>: New field.
7804 (struct dwarf2_psymtab): Derive from partial_symtab.
7805 <readin_p, get_compunit_symtab>: Declare methods.
7806 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7807 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7808 New methods.
7809 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7810 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7811 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7812 (dw2_symtab_iter_next, dw2_print_stats)
7813 (dw2_expand_symtabs_with_fullname)
7814 (dw2_expand_symtabs_matching_one)
7815 (dw_expand_symtabs_matching_file_matcher)
7816 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7817 (dw2_debug_names_iterator::next)
7818 (dw2_debug_names_map_matching_symbols)
7819 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7820 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7821 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7822 New methods.
7823 (get_compunit_symtab, process_full_comp_unit)
7824 (process_full_type_unit): Update.
7825 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7826
5989a64e
SM
78272020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7828
7829 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7830 then introduce a new dwarf2_per_objfile type.
7831 <read_line_string>: Move to the new dwarf2_per_objfile type.
7832 <objfile>: Likewise.
7833 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7834 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7835 dwarf2_per_objfile->per_bfd.
7836 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7837 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7838 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7839 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7840 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7841 (dwarf2_per_objfile::locate_sections): Rename to...
7842 (dwarf2_per_bfd::locate_sections): ... this.
7843 (dwarf2_per_objfile::get_cutu): Rename to...
7844 (dwarf2_per_bfd::get_cutu): ... this.
7845 (dwarf2_per_objfile::get_cu): Rename to...
7846 (dwarf2_per_bfd::get_cu): ... this.
7847 (dwarf2_per_objfile::get_tu): Rename to...
7848 (dwarf2_per_bfd::get_tu): ... this.
7849 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7850 (dwarf2_per_bfd::allocate_per_cu): ... this.
7851 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7852 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7853 (get_gdb_index_contents_ftype): Change parameter from
7854 dwarf2_per_objfile to dwarf2_per_bfd.
7855 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7856 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7857
a50264ba
TT
78582020-05-27 Tom Tromey <tom@tromey.com>
7859 Simon Marchi <simon.marchi@efficios.com>
7860
7861 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7862 (allocate_piece_closure): Set "per_objfile" member.
7863 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7864 (locexpr_describe_location, loclist_describe_location): Use new
7865 member.
7866 * dwarf2/read.c (read_call_site_scope)
7867 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7868 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7869 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7870 handle_data_member_location): Set per_objfile member.
7871 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7872 member.
7873 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7874
d3473f0c
TT
78752020-05-27 Tom Tromey <tom@tromey.com>
7876
7877 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7878 allocate_signatured_type>: Declare new methods.
7879 <m_num_psymtabs>: New member.
7880 (struct dwarf2_per_cu_data) <index>: New member.
7881 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7882 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7883 (create_cu_from_index_list): Use allocate_per_cu.
7884 (create_signatured_type_table_from_index)
7885 (create_signatured_type_table_from_debug_names)
7886 (create_debug_type_hash_table, add_type_unit)
7887 (read_comp_units_from_section): Use allocate_signatured_type.
7888
5717c425
TT
78892020-05-27 Tom Tromey <tom@tromey.com>
7890
7891 * psymtab.c (partial_map_expand_apply)
7892 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7893 (psym_lookup_global_symbol_language)
7894 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7895 (psym_print_stats, psym_expand_symtabs_for_function)
7896 (psym_map_symbol_filenames, psym_map_matching_symbols)
7897 (psym_expand_symtabs_matching)
7898 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7899 (maintenance_check_psymtabs): Update.
7900 * psympriv.h (struct partial_symtab) <readin_p,
7901 get_compunit_symtab>: Add objfile parameter.
7902 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7903 Likewise.
7904 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7905 get_compunit_symtab>: Likewise.
7906 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7907
45940949
TT
79082020-05-27 Tom Tromey <tom@tromey.com>
7909
7910 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7911 member.
7912 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7913 (create_cu_from_index_list)
7914 (create_signatured_type_table_from_index)
7915 (create_signatured_type_table_from_debug_names)
7916 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7917 (dwarf2_create_include_psymtab)
7918 (create_debug_type_hash_table, add_type_unit)
7919 (create_type_unit_group, read_comp_units_from_section)
7920 (dwarf2_compute_name, create_cus_hash_table)
7921 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7922 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7923 obstack.
7924 (dw2_get_real_path): Likewise. Change argument to
7925 dwarf2_per_objfile.
7926
f8c6d152
LM
79272020-05-27 Luis Machado <luis.machado@linaro.org>
7928
7929 PR tdep/26000
7930 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7931 for ldrd (immediate).
7932
e98d2e6d
PW
79332020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7934
7935 * command.h: Add comment giving the name of class_tui.
7936 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7937 create the fake command for the help for class_tui.
7938
53a47a3e
TT
79392020-05-26 Tom Tromey <tromey@adacore.com>
7940
7941 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7942 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7943 (val_atr): New function.
7944 (value_val_atr): Use it.
7945 * ada-valprint.c (print_optional_low_bound): Change low bound
7946 handling for enums.
7947 (val_print_packed_array_elements): Don't call discrete_position.
7948 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7949 discrete_position for enum types.
7950 * language.c (default_print_array_index): Change type.
7951 * language.h (struct language_defn) <la_print_array_index>: Add
7952 index_type parameter, change type of index_value.
7953 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7954 (default_print_array_index): Update.
7955 * valprint.c (maybe_print_array_index): Don't call
7956 value_from_longest. Update.
7957 (value_print_array_elements): Don't call discrete_position.
7958
0bc2354b
TT
79592020-05-26 Tom Tromey <tromey@adacore.com>
7960
7961 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7962 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7963
1218a4bf
CDA
79642020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7965
7966 PR gdb/13519
7967 * avr-tdep.c (avr_integer_to_address): Return data or code
7968 address accordingly to the second 'type' argument of the
7969 function.
7970
92651b1d
MW
79712020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7972
7973 * infcmd.c, inferior.h: (construct_inferior_arguments):
7974 Moved function from here to gdbsupport/common-inferior.{h,cc}
7975
0a4f5f8c
TT
79762020-05-23 Tom Tromey <tom@tromey.com>
7977
7978 Revert commit eca1f90c:
7979 * NEWS: Remove entry for completion styling.
7980 * completer.c (_rl_completion_prefix_display_length): Move
7981 declaration later.
7982 (gdb_fnprint): Revert.
7983 (gdb_display_match_list_1): Likewise.
7984 * cli/cli-style.c (completion_prefix_style)
7985 (completion_difference_style, completion_suffix_style): Remove.
7986 (_initialize_cli_style): Revert.
7987 * cli/cli-style.h (completion_prefix_style)
7988 (completion_difference_style, completion_suffix_style): Don't
7989 declare.
7990
e08bd6c5
PA
79912020-05-24 Pedro Alves <palves@redhat.com>
7992
7993 * symtab.c (completion_list_add_name): Return boolean indication
7994 of whether the symbol matched.
7995 (completion_list_add_symbol): Don't try to remove C++ aliases if
7996 the symbol didn't match in the first place.
7997 * symtab.h (completion_list_add_name): Return bool.
7998
ceacbf6e
SM
79992020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
8000
8001 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
8002 type::field.
8003
26f16254
JB
80042020-05-23 Joel Brobecker <brobecker@adacore.com>
8005
8006 GDB 9.2 released.
8007
eca1f90c
TT
80082020-05-23 Tom Tromey <tom@tromey.com>
8009
8010 * NEWS: Add entry for completion styling.
8011 * completer.c (_rl_completion_prefix_display_length): Move
8012 declaration earlier.
8013 (gdb_fnprint): Use completion_style.
8014 (gdb_display_match_list_1): Likewise.
8015 * cli/cli-style.c (completion_prefix_style)
8016 (completion_difference_style, completion_suffix_style): New
8017 globals.
8018 (_initialize_cli_style): Register new globals.
8019 * cli/cli-style.h (completion_prefix_style)
8020 (completion_difference_style, completion_suffix_style): Declare.
8021
51e2cfa2
PA
80222020-05-23 Pedro Alves <palves@redhat.com>
8023
8024 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8025 (parse_escape): Use ISDIGIT instead of isdigit.
8026 (puts_debug): Use gdb_isprint instead of isprint.
8027 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8028 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8029 ISSPACE instead of isspace.
8030 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8031 instead of isspace.
8032 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8033 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8034 instead of isxdigit and ISDIGIT instead of isdigit.
8035
80fc5e77
SM
80362020-05-22 Simon Marchi <simon.marchi@efficios.com>
8037
8038 * gdbtypes.h (struct type) <field>: New method.
8039 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8040 or type::field.
8041
3cabb6b0
SM
80422020-05-22 Simon Marchi <simon.marchi@efficios.com>
8043
8044 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8045 (TYPE_FIELDS): Use type::fields. Change all call sites that
8046 modify the propery to use type::set_fields instead.
8047
1f704f76
SM
80482020-05-22 Simon Marchi <simon.marchi@efficios.com>
8049
8050 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8051 type::num_fields instead.
8052
5e33d5f4
SM
80532020-05-22 Simon Marchi <simon.marchi@efficios.com>
8054
8055 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8056 methods.
8057 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8058 that modify the number of fields to use type::set_num_fields
8059 instead.
8060
9392ebb3
TT
80612020-05-22 Tom Tromey <tromey@adacore.com>
8062
8063 * compile/compile-object-load.h (munmap_list_free): Don't
8064 declare.
8065
7c13f4e8
AB
80662020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8067
8068 * annotate.c (annotate_source_line): Update return type, add call
8069 to update current symtab and line.
8070 * annotate.h (annotate_source_line): Update return type, and
8071 extend header comment.
8072 * source.c (info_line_command): Check annotation_level before
8073 calling annotate_source_line.
8074 * stack.c (print_frame_info): If calling annotate_source_line
8075 returns true, then don't print any other source line information.
8076
aa370940
SM
80772020-05-21 Simon Marchi <simon.marchi@efficios.com>
8078
8079 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8080
84d53fa9
SM
80812020-05-21 Simon Marchi <simon.marchi@efficios.com>
8082
8083 * coffread.c (patch_type): Remove NULL check before xfree.
8084 * corefile.c (set_gnutarget): Likewise.
8085 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8086 * exec.c (build_section_table): Likewise.
8087 * remote.c (remote_target::pass_signals): Likewise.
8088 * utils.c (n_spaces): Likewise.
8089 * cli/cli-script.c (document_command): Likewise.
8090 * i386-windows-tdep.c (core_process_module_section): Likewise.
8091 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8092
9d428aae
SM
80932020-05-20 Simon Marchi <simon.marchi@efficios.com>
8094
8095 * symfile.c (reread_symbols): Clear objfile's section_offsets
8096 vector and section indices, re-compute them by calling
8097 sym_offsets.
8098
250106a7
TT
80992020-05-20 Tom Tromey <tromey@adacore.com>
8100
8101 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 8102 (desc_one_bound, desc_index_type): Compute field name.
250106a7 8103
9a0bacfb
TV
81042020-05-20 Tom de Vries <tdevries@suse.de>
8105
8106 PR symtab/25833
8107 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8108
7b958a48
AM
81092020-05-20 Alan Modra <amodra@gmail.com>
8110
8111 PR 25993
8112 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8113 bfd_set_filename.
8114 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8115 passed to bfd_set_filename.
8116 * symfile-mem.c (add_vsyscall_page): Likewise for string
8117 passed to symbol_file_add_from_memory.
8118 (symbol_file_add_from_memory): Make name param a const char* and
8119 don't strdup.
8120
c7e97679
AM
81212020-05-20 Alan Modra <amodra@gmail.com>
8122
8123 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8124 rather than accessing bfd->filename directly.
8125 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8126 and use bfd_section_name.
8127 * dwarf2/frame.c (decode_frame_entry): Likewise.
8128 * exec.c (exec_set_section_address): Likewise.
8129 * solib-aix.c (solib_aix_bfd_open): Likewise.
8130 * stap-probe.c (get_stap_base_address): Likewise.
8131 * symfile.c (reread_symbols): Likewise.
8132
563c591b
TT
81332020-05-19 Tom Tromey <tromey@adacore.com>
8134
8135 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8136
f408d82c
SM
81372020-05-19 Simon Marchi <simon.marchi@efficios.com>
8138
8139 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8140
98c59b52
PA
81412020-05-19 Pedro Alves <palves@redhat.com>
8142
8143 * NEWS (set exec-file-mismatch): Adjust entry.
8144 * exec.c: Include "build-id.h".
8145 (validate_exec_file): Try to match build IDs instead of filenames.
8146 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8147 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8148 and pass down 'warn_if_slow'.
8149 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8150 gdb_bfd_open_closure to pass it down.
8151 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8152
4111f652
PA
81532020-05-19 Pedro Alves <palves@redhat.com>
8154
8155 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8156 * target.c (target_fileio_open_1): Rename to target_fileio_open
8157 and make extern. Use bool.
8158 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8159 (target_fileio_read_alloc_1): Adjust.
8160 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8161 (target_fileio_open_warn_if_slow): Delete declaration.
8162
ad80db5b
PA
81632020-05-19 Pedro Alves <palves@redhat.com>
8164
8165 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8166 Adjust all callers.
8167
1d6ce4d3
YS
81682020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8169
8170 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8171 whether disp is negative.
8172
9005fbbb
SM
81732020-05-19 Simon Marchi <simon.marchi@efficios.com>
8174
8175 * symfile.h (struct symfile_segment_data)
8176 <~symfile_segment_data>: Remove.
8177 <segment_info>: Change to std::vector.
8178 * symfile.c (default_symfile_segments): Update.
8179 * elfread.c (elf_symfile_segments): Update.
8180
68b888ff
SM
81812020-05-19 Simon Marchi <simon.marchi@efficios.com>
8182
8183 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8184 <segments>: New.
8185 <segment_bases, segment_sizes>: Remove.
8186 * symfile.c (default_symfile_segments): Update.
8187 * elfread.c (elf_symfile_segments): Update.
8188 * remote.c (remote_target::get_offsets): Update.
8189 * solib-target.c (solib_target_relocate_section_addresses):
8190 Update.
8191
62982abd
SM
81922020-05-19 Simon Marchi <simon.marchi@efficios.com>
8193
8194 * symfile.h (struct symfile_segment_data): Initialize fields.
8195 <~symfile_segment_data>: Add.
8196 (symfile_segment_data_up): New.
8197 (struct sym_fns) <sym_segments>: Return a
8198 symfile_segment_data_up.
8199 (default_symfile_segments): Return a symfile_segment_data_up.
8200 (free_symfile_segment_data): Remove.
8201 (get_symfile_segment_data): Return a symfile_segment_data_up.
8202 * symfile.c (default_symfile_segments): Likewise.
8203 (get_symfile_segment_data): Likewise.
8204 (free_symfile_segment_data): Remove.
8205 (symfile_find_segment_sections): Update.
8206 * elfread.c (elf_symfile_segments): Return a
8207 symfile_segment_data_up.
8208 * remote.c (remote_target::get_offsets): Update.
8209 * solib-target.c (solib_target_relocate_section_addresses):
8210 Update.
8211 * symfile-debug.c (debug_sym_segments): Return a
8212 symfile_segment_data_up.
8213
7f204339
RO
82142020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8215
e52a0f1b
RO
8216 PR build/25981
8217 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8218 Hardcode register numbers.
8219
7f204339
RO
8220 PR build/25981
8221 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8222 procfs_find_LDT_entry): Remove.
8223 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8224 procfs_find_LDT_entry): Remove.
8225 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8226 Remove.
8227
7f32a4d5
PA
82282020-05-17 Pedro Alves <palves@redhat.com>
8229 Andrew Burgess <andrew.burgess@embecosm.com>
8230 Keno Fischer <keno@juliacomputing.com>
8231
8232 PR gdb/25741
8233 * breakpoint.c (build_target_condition_list): Update comments.
8234 (build_target_command_list): Update comments and skip matching
8235 locations.
8236 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8237 a separate function. Simplify "set breakpoint auto-hw off"
8238 handling.
8239 (insert_breakpoints): Update comment.
8240 (tracepoint_locations_match): New parameter. For breakpoints,
8241 compare location types too, if the caller wants to.
8242 (handle_automatic_hardware_breakpoints): New functions.
8243 (bp_location_is_less_than): Also sort by location type and
8244 hardware breakpoint length.
8245 (update_global_location_list): Handle "set breakpoint auto-hw on"
8246 here.
8247 (update_breakpoint_locations): Ask breakpoint_locations_match to
8248 ignore location types.
8249
7d93a1e0
SM
82502020-05-16 Simon Marchi <simon.marchi@efficios.com>
8251
8252 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8253 type::name instead.
8254
d0e39ea2
SM
82552020-05-16 Simon Marchi <simon.marchi@efficios.com>
8256
8257 * gdbtypes.h (struct type) <name, set_name>: New methods.
8258 (TYPE_CODE): Use type::name. Change all call sites used to set
8259 the name to use type::set_name instead.
8260
2dab0c7b
TT
82612020-05-16 Tom Tromey <tom@tromey.com>
8262
8263 * top.c (quit_force): Update.
8264 * infrun.c (handle_no_resumed): Update.
8265 * top.h (all_uis): New function.
8266 (ALL_UIS): Remove.
8267
59f7bd8d
SM
82682020-05-16 Simon Marchi <simon.marchi@efficios.com>
8269
8270 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8271
9bf058f0
PA
82722020-05-16 Pedro Alves <palves@redhat.com>
8273
8274 * ia64-linux-nat.c
8275 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8276 Declare method.
8277 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8278
8f86ae1a
SM
82792020-05-15 Simon Marchi <simon.marchi@efficios.com>
8280
8281 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8282 (sparc64_adi_info): Likewise.
8283
d6bc0792
TT
82842020-05-15 Tom Tromey <tom@tromey.com>
8285
8286 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8287 block_objfile.
8288 (lookup_objfile_from_block): Remove.
8289 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8290 (lookup_global_symbol): Use block_objfile.
8291 * symtab.h (lookup_objfile_from_block): Don't declare.
8292 * printcmd.c (clear_dangling_display_expressions): Use
8293 block_objfile.
8294 * parse.c (operator_check_standard): Use block_objfile.
8295
8c14c3a3
TT
82962020-05-15 Tom Tromey <tom@tromey.com>
8297
8298 * language.c (language_alloc_type_symbol): Set
8299 SYMBOL_SECTION.
8300 * symtab.c (initialize_objfile_symbol): Remove.
8301 (allocate_symbol): Remove.
8302 (allocate_template_symbol): Remove.
8303 * dwarf2/read.c (fixup_go_packaging): Use "new".
8304 (new_symbol): Use "new".
8305 (read_variable): Don't call initialize_objfile_symbol. Use
8306 "new".
8307 (read_func_scope): Use "new".
8308 * xcoffread.c (process_xcoff_symbol): Don't call
8309 initialize_objfile_symbol.
8310 (SYMBOL_DUP): Remove.
8311 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8312 "new".
8313 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8314 (allocate_template_symbol): Don't declare.
8315 (struct symbol): Add copy constructor. Change defaults.
8316 * jit.c (finalize_symtab): Use "new".
8317 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8318 Use "new".
8319 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8320 (common_block_end): Use "new".
8321 * mdebugread.c (parse_symbol): Use "new".
8322 (new_symbol): Likewise.
8323
5b4a1a8d
PW
83242020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8325
8326 * NEWS: Mention changes to help and apropos.
8327
57b4f16e
PW
83282020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8329
8330 * command.h (enum command_class): Improve comments, document
8331 that class_alias is for user-defined aliases, give the class
8332 name for each class, remove unused class_xdb.
8333 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8334 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8335 by a precise class.
8336 * infcmd.c (_initialize_infcmd): Likewise.
8337 * reverse.c (_initialize_reverse): Likewise.
8338 * stack.c (_initialize_stack): Likewise.
8339 * symfile.c (_initialize_symfile): Likewise.
8340 * tracepoint.c (_initialize_tracepoint): Likewise.
8341
7c05caf7
PW
83422020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8343
8344 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8345 when their aliased command is traversed.
8346 (help_cmd): Add fput_command_names_styled call to
8347 output command name and aliases when command has an alias.
8348
3b3aaacb
PW
83492020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8350
8351 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8352 * cli/cli-decode.c (help_cmd_list): Declare as static,
8353 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8354 a command together with the command.
8355 (fput_command_name_styled, fput_command_names_styled): New functions.
8356 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8357 fput_command_name_styled.
8358 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8359 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8360
7aa1b46f
PW
83612020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8362
8363 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8364 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8365 * command.h (cmd_show_list): Likewise.
8366 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8367 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8368
89bcba74
PW
83692020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8370
8371 * unittests/command-def-selftests.c (traverse_command_structure):
8372 Verify all commands of a list have the same prefix command and
8373 that only the top cmdlist commands have a null prefix.
8374
3f4d92eb
PW
83752020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8376
8377 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8378 as prefix, not one of its aliases.
8379 (set_cmd_prefix): Remove.
8380 (do_add_cmd): Centralize the setting of the prefix of a command, when
8381 command is defined after its full chain of prefix commands.
8382 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8383 (add_setshow_cmd_full): Likewise.
8384 (update_prefix_field_of_prefixed_commands): New function.
8385 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8386 update_prefix_field_of_prefixed_commands.
8387 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8388 addresses of remote_set_cmdlist and remote_show_cmdlist given
8389 as argument, not the address of an argument.
8390 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8391 * gdb/remote.c (_initialize_remote): Likewise.
8392
0605465f
PW
83932020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8394
8395 * cli/cli-cmds.c (alias_command): Check for an existing alias
8396 using lookup_cmd_composition, as valid_command_p is too strict
8397 and forbids aliases that are the prefix of an existing alias
8398 or command.
8399 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8400 command is properly recognised as a valid command.
8401
58e6ac70
PW
84022020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8403
8404 * unittests/help-doc-selftests.c: Rename to
8405 unittests/command-def-selftests.c
8406 * unittests/command-def-selftests.c (help_doc_tests): Update some
8407 comments.
8408 (command_structure_tests, traverse_command_structure): New namespace
8409 and function.
8410 (command_structure_invariants_tests): New function.
8411 (_initialize_command_def_selftests) Renamed from
8412 _initialize_help_doc_selftests, register command_structure_invariants
8413 selftest.
8414
a7b9ceb8
PW
84152020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8416
8417 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8418 an alias of 'show'.
8419
b2188a06
JB
84202020-05-15 Joel Brobecker <brobecker@adacore.com>
8421
8422 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8423 ada_is_fixed_point_type. Update all callers.
8424 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8425 all callers.
8426 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8427 Update all callers.
8428 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8429 print_fixed_point_type. Update all callers.
8430 * ada-valprint.c (ada_value_print_num): Replace call to
8431 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8432
a51951c2
KB
84332020-05-14 Kevin Buettner <kevinb@redhat.com>
8434
8435 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8436 processors.
8437 (cpu_supports_bts): Add CV_AMD case.
8438
29d6859f
LM
84392020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8440 Simon Marchi <simon.marchi@efficios.com>
8441
8442 * infrun.c (stop_all_threads): Collect multiple wait events at
8443 each pass.
8444
78134374
SM
84452020-05-14 Simon Marchi <simon.marchi@efficios.com>
8446
8447 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8448 type::code instead.
8449
67607e24
SM
84502020-05-14 Simon Marchi <simon.marchi@efficios.com>
8451
8452 * gdbtypes.h (struct type) <code, set_code>: New methods.
8453 (TYPE_CODE): Use type::code. Change all call sites used to set
8454 the code to use type::set_code instead.
8455
a05575d3
TBA
84562020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8457 Tom de Vries <tdevries@suse.de>
8458 Pedro Alves <palves@redhat.com>
8459
8460 PR threads/25478
8461 * infrun.c (stop_all_threads): Do NOT ignore
8462 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8463 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8464 received.
8465 (handle_no_resumed): Remove code handling a live inferior with no
8466 threads.
8467 * remote.c (has_single_non_exited_thread): New.
8468 (remote_target::update_thread_list): Do not delete a thread if is
8469 the last thread of the process.
8470 * thread.c (thread_select): Call delete_exited_threads instead of
8471 prune_threads.
8472
6ad82919
TBA
84732020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8474
8475 * infrun.c (stop_all_threads): Enable/disable thread events of all
8476 targets. Move a debug message denoting the end of the function
8477 into the SCOPED_EXIT block.
8478
d890404b
TBA
84792020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8480
8481 * process-stratum-target.h: Include <set>.
8482 (all_non_exited_process_targets, switch_to_target_no_thread): New
8483 function declarations.
8484 * process-stratum-target.c (all_non_exited_process_targets)
8485 (switch_to_target_no_thread): New function implementations.
8486
293b3ebc
TBA
84872020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8488
8489 * infrun.c (handle_inferior_event): Extract out a piece of code
8490 into...
8491 (mark_non_executing_threads): ...this new function.
8492
7ca9b62a
TBA
84932020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8494
8495 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8496 use.
8497
fc75c28b
TBA
84982020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8499
8500 * regcache.c (regcache_read_pc_protected): New function
8501 implementation that returns 0 if the PC cannot read via
8502 'regcache_read_pc'.
8503 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8504 instead of 'regcache_read_pc'.
8505 (keep_going_pass_signal): Ditto.
8506
a89febbd
TT
85072020-05-13 Tom Tromey <tromey@adacore.com>
8508
8509 * ada-lang.c (align_value): Remove.
8510 (ada_template_to_fixed_record_type_1): Use align_up.
8511
f7e23710
TBA
85122020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8513
8514 * async-event.c: Update the copyright year.
8515 * async-event.h: Update the copyright year.
8516
02ff80c2
SM
85172020-05-12 Simon Marchi <simon.marchi@efficios.com>
8518
8519 * objfiles.h (is_addr_in_objfile,
8520 shared_objfile_contains_address_p): Return bool.
8521 * objfile.c (is_addr_in_objfile,
8522 shared_objfile_contains_address_p): Return bool.
8523
4fd6c7e8
TT
85242020-05-11 Tom Tromey <tromey@adacore.com>
8525
8526 * cli/cli-cmds.c (info_command): Restore.
8527 (_initialize_cli_cmds): Use add_prefix_command for "info".
8528 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8529
5eb68a39
TT
85302020-05-11 Tom Tromey <tromey@adacore.com>
8531
8532 * ada-lang.c (ada_value_primitive_field): Now public.
8533 * ada-lang.h (ada_value_primitive_field): Declare.
8534 * ada-valprint.c (print_field_values): Use
8535 ada_value_primitive_field for wrapper fields.
8536
7666722f
TV
85372020-05-11 Tom de Vries <tdevries@suse.de>
8538
8539 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8540 MODULE_DOMAIN.
8541
3ee6bb11
TV
85422020-05-11 Tom de Vries <tdevries@suse.de>
8543
8544 PR symtab/25941
8545 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8546 with length 0, if not gdb-produced.
8547 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8548
43434996
TV
85492020-05-09 Tom de Vries <tdevries@suse.de>
8550
8551 PR gdb/25955
8552 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8553 calculation.
8554
2f78cffc
TT
85552020-05-09 Tom Tromey <tom@tromey.com>
8556
8557 * top.c (server_command): Now bool.
8558 * top.h (server_command): Now bool.
8559
4f7bc5ed
TT
85602020-05-08 Tom Tromey <tromey@adacore.com>
8561
8562 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8563 already being processed.
8564
8be4b118
TT
85652020-05-08 Tom Tromey <tom@tromey.com>
8566
8567 * printcmd.c (struct display) <next>: Remove.
8568 <display>: New constructor.
8569 <exp_string>: Now a std::string.
8570 <enabled_p>: Now a bool.
8571 (display_number): Move definition earlier.
8572 (displays): Rename from display_chain. Now a std::vector.
8573 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8574 (display_command): Update.
8575 (do_one_display, disable_display)
8576 (enable_disable_display_command, do_enable_disable_display):
8577 Update.
8578 (free_display): Remove.
8579 (clear_displays): Rewrite.
8580 (delete_display): Update.
8581 (map_display_numbers): Use function_view. Remove "data"
8582 parameter. Update.
8583 (do_delete_display): Remove.
8584 (undisplay_command): Update.
8585 (do_one_display, do_displays, disable_display)
8586 (info_display_command): Update.
8587 (do_enable_disable_display): Remove.
8588 (enable_disable_display_command)
8589 (clear_dangling_display_expressions): Update.
8590
94c93c35
TT
85912020-05-08 Tom Tromey <tom@tromey.com>
8592
8593 * symtab.c (set_symbol_cache_size)
8594 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8595 (maintenance_print_symbol_cache_statistics): Update.
8596 * symmisc.c (print_symbol_bcache_statistics)
8597 (print_objfile_statistics, maintenance_print_objfiles)
8598 (maintenance_info_symtabs, maintenance_check_symtabs)
8599 (maintenance_expand_symtabs, maintenance_info_line_tables):
8600 Update.
8601 * symfile-debug.c (set_debug_symfile): Update.
8602 * source.c (forget_cached_source_info): Update.
8603 * python/python.c (gdbpy_progspaces): Update.
8604 * psymtab.c (maintenance_info_psymtabs): Update.
8605 * probe.c (parse_probes): Update.
8606 * linespec.c (iterate_over_all_matching_symtabs)
8607 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8608 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8609 * exec.c (exec_target::close): Update.
8610 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8611 * breakpoint.c (print_one_breakpoint_location)
8612 (create_longjmp_master_breakpoint)
8613 (create_std_terminate_master_breakpoint): Update.
8614 * progspace.c (program_spaces): Now a std::vector.
8615 (maybe_new_address_space): Update.
8616 (add_program_space): Remove.
8617 (program_space::program_space): Update.
8618 (remove_program_space): Update.
8619 (number_of_program_spaces): Remove.
8620 (print_program_space, update_address_spaces): Update.
8621 * progspace.h (program_spaces): Change type.
8622 (ALL_PSPACES): Remove.
8623 (number_of_program_spaces): Don't declare.
8624 (struct program_space) <next>: Remove.
8625
a1fd1ac9
TT
86262020-05-08 Tom Tromey <tom@tromey.com>
8627
8628 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8629 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8630 (enable_break): Update.
8631 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8632 (frv_fdpic_find_canonical_descriptor): Update.
8633 (frv_fetch_objfile_link_map): Update.
8634 * progspace.c (program_space::free_all_objfiles): Update.
8635 (program_space::solibs): New method.
8636 * progspace.h (struct program_space) <solibs>: New method.
8637 * solist.h (master_so_list): Don't declare.
8638 (ALL_SO_LIBS): Remove.
8639 * solib.h (so_list_head): Remove.
8640 (update_solib_list): Update comment.
8641 * solib.c (master_so_list): Remove.
8642 (solib_used, update_solib_list, solib_add)
8643 (info_sharedlibrary_command, clear_solib)
8644 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8645
38eae084
TT
86462020-05-08 Tom Tromey <tom@tromey.com>
8647
8648 * extension.c (extension_languages): Now a std::array.
8649 (ALL_EXTENSION_LANGUAGES): Remove.
8650 (get_ext_lang_defn, get_ext_lang_of_file)
8651 (eval_ext_lang_from_control_command): Update.
8652 (finish_ext_lang_initialization)
8653 (auto_load_ext_lang_scripts_for_objfile)
8654 (ext_lang_type_printers::ext_lang_type_printers)
8655 (apply_ext_lang_type_printers)
8656 (ext_lang_type_printers::~ext_lang_type_printers)
8657 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8658 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8659 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8660 (get_matching_xmethod_workers, ext_lang_colorize)
8661 (ext_lang_before_prompt): Update.
8662 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8663
596dc4ad
TT
86642020-05-08 Tom Tromey <tom@tromey.com>
8665
8666 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8667 overload.
8668 <swap_string, m_string>: Remove.
8669 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8670 Update.
8671 * stabsread.c (define_symbol, read_type): Update.
8672 * linespec.c (find_linespec_symbols): Update.
8673 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8674 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8675 * dbxread.c (read_dbx_symtab): Update.
8676 * cp-support.h (cp_canonicalize_string_full)
8677 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8678 Return unique_xmalloc_ptr.
8679 * cp-support.c (inspect_type): Update.
8680 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8681 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8682 Likewise.
8683 * c-typeprint.c (print_name_maybe_canonical): Update.
8684 * break-catch-throw.c (check_status_exception_catchpoint):
8685 Update.
8686
bf4cb9be
TV
86872020-05-08 Tom de Vries <tdevries@suse.de>
8688
8689 * infrun.c (follow_fork): Copy current_line and current_symtab to
8690 child thread.
8691
a1b68f28
SM
86922020-05-07 Simon Marchi <simon.marchi@efficios.com>
8693
8694 * async-event.c (struct async_signal_handler, struct
8695 async_event_handler): Reformat, remove typedef.
8696
98d48915
SM
86972020-05-07 Simon Marchi <simon.marchi@efficios.com>
8698
8699 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8700 access thistype->main_type->dyn_prop_list directly.
8701
7aa91313
SM
87022020-05-07 Simon Marchi <simon.marchi@efficios.com>
8703
8704 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8705 (remove_dyn_prop): Remove. Update all users to use
8706 type::remove_dyn_prop.
8707 * gdbtypes.c (remove_dyn_prop): Rename to...
8708 (type::remove_dyn_prop): ... this.
8709
5c54719c
SM
87102020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8711
8712 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8713 (add_dyn_prop): Remove. Update all users to use
8714 type::add_dyn_prop.
8715 * gdbtypes.c (add_dyn_prop): Rename to...
8716 (type::add_dyn_prop): ... this.
8717
24e99c6c
SM
87182020-05-07 Simon Marchi <simon.marchi@efficios.com>
8719
8720 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8721 (get_dyn_prop): Remove. Update all users to use
8722 type::dyn_prop.
8723 * gdbtypes.c (get_dyn_prop): Rename to...
8724 (type::dyn_prop): ... this.
8725
0d4bf016
SM
87262020-05-06 Simon Marchi <simon.marchi@efficios.com>
8727
8728 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8729
ac4a4f1c
SM
87302020-05-06 Simon Marchi <simon.marchi@efficios.com>
8731
8732 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8733 instruction, skip it if it's there.
8734
a3bbacc1
SM
87352020-05-05 Simon Marchi <simon.marchi@efficios.com>
8736
8737 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8738
c3236f84
SM
87392020-05-04 Simon Marchi <simon.marchi@efficios.com>
8740
8741 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8742 * gdbtypes.c (recursive_dump_type): Remove use of
8743 TYPE_INCOMPLETE.
8744
3b6acaee
TT
87452020-05-03 Tom Tromey <tom@tromey.com>
8746
8747 * breakpoint.c (catch_command, tcatch_command): Remove.
8748 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8749 add_show_prefix_cmd.
8750 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8751 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8752 Remove.
8753 (add_internal_problem_command): Use add_basic_prefix_cmd,
8754 add_show_prefix_cmd.
8755 * mips-tdep.c (set_mipsfpu_command): Remove.
8756 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8757 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8758 (_initialize_index_cache): Use add_basic_prefix_cmd.
8759 * memattr.c (dummy_cmd): Remove.
8760 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8761 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8762 (_initialize_tui_win): Use add_basic_prefix_cmd,
8763 add_show_prefix_cmd.
8764 * cli/cli-logging.c (set_logging_command): Remove.
8765 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8766 add_show_prefix_cmd.
8767 (show_logging_command): Remove.
8768 * target.c (target_command): Remove.
8769 (add_target): Use add_basic_prefix_cmd.
8770
a51119cd
HD
87712020-05-02 Hannes Domani <ssbssa@yahoo.de>
8772
8773 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8774
652fc23a 87752020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8776
652fc23a
PW
8777 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8778 info_command.
8779
117539e6
KR
87802020-04-30 Kamil Rytarowski <n54@gmx.com>
8781
8782 * nbsd-nat.c (nbsd_enable_proc_events)
8783 (nbsd_nat_target::post_startup_inferior): Add.
8784 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8785 (nbsd_nat_target::update_thread_list): Rewrite.
8786 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8787 "PTRACE_LWP_CREATE".
8788 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8789
102e38eb 87902020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8791
102e38eb
PW
8792 * stack.c (_initialize_stack): Remove duplicated creation
8793 of "frame" command and "f" alias.
8794
ee9d1e5f
HD
87952020-04-30 Hannes Domani <ssbssa@yahoo.de>
8796
8797 PR gdb/18706
8798 * gdbtypes.c (check_typedef): Calculate size of array of
8799 stubbed type.
8800
627c7fb8
HD
88012020-04-30 Hannes Domani <ssbssa@yahoo.de>
8802
8803 PR gdb/15559
8804 * i386-tdep.c (i386_push_dummy_call): Call
8805 i386_thiscall_push_dummy_call.
8806 (i386_thiscall_push_dummy_call): New function.
8807 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8808 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8809 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8810
ffc2844e
SM
88112020-04-29 Simon Marchi <simon.marchi@efficios.com>
8812
8813 * gdbarch.sh (do_read): Add shellcheck disable directive for
8814 warning SC2162.
8815
1207375d
SM
88162020-04-29 Simon Marchi <simon.marchi@efficios.com>
8817
8818 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8819 "referenced but not assigned" warning.
8820
9fdb2916
SM
88212020-04-29 Simon Marchi <simon.marchi@efficios.com>
8822
8823 * gdbarch.sh: Remove code that sets fallbackdefault.
8824
759cea5e
SM
88252020-04-29 Simon Marchi <simon.marchi@efficios.com>
8826
8827 * gdbarch.sh: Use shell operators && and || instead of
8828 -a and -o.
8829
cb02ab24
SM
88302020-04-29 Simon Marchi <simon.marchi@efficios.com>
8831
8832 * gdbarch.sh: Use $(...) instead of `...`.
8833
a6fc5ffc
SM
88342020-04-29 Simon Marchi <simon.marchi@efficios.com>
8835
8836 * gdbarch.sh: Use double quotes around variables.
8837
8d113d13
SM
88382020-04-29 Simon Marchi <simon.marchi@efficios.com>
8839
8840 * gdbarch.sh: Use %s with printf, instead of variables in the
8841 format string.
8842
ed6acedd
TT
88432020-04-29 Tom Tromey <tromey@adacore.com>
8844
8845 PR ada/25875:
8846 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8847 type fields here.
8848 (read_enumeration_type): Call
8849 update_enumeration_type_from_children later. Update comments.
8850 (process_enumeration_scope): Don't create type fields.
8851
b68b1b58
KR
88522020-04-29 Kamil Rytarowski <n54@gmx.com>
8853
8854 * nbsd-tdep.c: Include "xml-syscall.h".
8855 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8856
f94b2e03
KR
88572020-04-29 Kamil Rytarowski <n54@gmx.com>
8858
8859 * nbsd-nat.c: Include "sys/wait.h".
8860 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8861 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8862 (nbsd_nat_target::remove_exec_catchpoint)
8863 (nbsd_nat_target::set_syscall_catchpoint): Add.
8864 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8865 (nbsd_nat_target::insert_exec_catchpoint)
8866 (nbsd_nat_target::remove_exec_catchpoint)
8867 (nbsd_nat_target::set_syscall_catchpoint): Add.
8868 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8869 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8870 `nbsd_get_syscall_number'.
8871
fc49bc72
TT
88722020-04-29 Tom Tromey <tom@tromey.com>
8873
8874 * stack.c (print_block_frame_labels): Remove.
8875
d642b692
HD
88762020-04-29 Hannes Domani <ssbssa@yahoo.de>
8877
8878 PR gdb/17320
8879 * ada-valprint.c (val_print_packed_array_elements): Move array
8880 end bracket to new line.
8881 (ada_val_print_string): Remove extra spaces before first array
8882 element.
8883 * c-valprint.c (c_value_print_array): Likewise.
8884 * m2-valprint.c (m2_print_array_contents): Likewise.
8885 (m2_value_print_inner): Likewise.
8886 * p-valprint.c (pascal_value_print_inner): Likewise.
8887 * valprint.c (generic_val_print_array): Likewise.
8888 (value_print_array_elements): Move first array element and array
8889 end bracket to new line.
8890
ea90f227
TV
88912020-04-29 Tom de Vries <tdevries@suse.de>
8892
8893 PR symtab/25889
8894 * linespec.c (find_method): Fix ix calculation.
8895
4498ef4f
KR
88962020-04-28 Kamil Rytarowski <n54@gmx.com>
8897
8898 * syscalls/update-netbsd.sh: New file.
8899 * syscalls/netbsd.xml: Regenerate.
8900 * data-directory/Makefile.in: Register `netbsd.xml' in
8901 `SYSCALLS_FILES'.
8902
a55e30b5
SM
89032020-04-28 Simon Marchi <simon.marchi@efficios.com>
8904
8905 * syscalls/update-freebsd.sh: Add double quotes.
8906
2b2fbab8
TT
89072020-04-28 Tom Tromey <tom@tromey.com>
8908
8909 * NEWS: Update.
8910 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8911 (cmdpy_init): Allow class_tui.
8912
a65189c9
TV
89132020-04-28 Mark Williams <mark@myosotissp.com>
8914
8915 PR gdb/24480
8916 * dwarf2read.c: Add missing assingments to list_in_scope when
8917 start_symtab was already called.
8918
1b95cdb7
SM
89192020-04-28 Simon Marchi <simon.marchi@efficios.com>
8920
8921 PR gdb/25881
8922 * dwarf2/read.c (offset_map_type): Use
8923 gdb:hash_enum<sect_offset> as hash function.
8924
15cd93d0
TV
89252020-04-28 Tom de Vries <tdevries@suse.de>
8926
8927 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8928 with DW_AT_signature.
8929
1eb39914
SM
89302020-04-27 Simon Marchi <simon.marchi@efficios.com>
8931
8932 * configure.ac: Remove check for fs_base/gs_base in
8933 user_regs_struct.
8934 * configure: Re-generate.
8935 * config.in: Re-generate.
8936 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8937 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8938 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8939
991a3e2e
LM
89402020-04-27 Luis Machado <luis.machado@linaro.org>
8941
8942 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8943 problematic inline frame unwinding situation.
8944 * frame.c (frame_id_computed_p): New function.
8945 * frame.h (frame_id_computed_p): New prototype.
8946
361ba0e8
TT
89472020-04-26 Tom Tromey <tom@tromey.com>
8948
8949 * command.h (enum command_class) <class_pseudo>: Remove.
8950
bc3609fd
PW
89512020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8952
8953 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8954 and whitespace.
8955
b9771db7
KR
89562020-04-25 Kamil Rytarowski <n54@gmx.com>
8957
ec16513e
SM
8958 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8959 `PT_GET_PROCESS_STATE' block.
b9771db7 8960
7151c1af
TT
89612020-04-24 Tom Tromey <tom@tromey.com>
8962
8963 * symtab.h (symbol_get_demangled_name): Don't declare.
8964 * symtab.c (symbol_get_demangled_name): Remove.
8965 (general_symbol_info::natural_name)
8966 (general_symbol_info::demangled_name): Update.
8967
906bb4c5
TT
89682020-04-24 Tom Tromey <tom@tromey.com>
8969
8970 PR rust/25025:
8971 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8972
bcfe6157
TT
89732020-04-24 Tom Tromey <tom@tromey.com>
8974
8975 PR symtab/12707:
8976 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8977 exists.
8978 (new_symbol): Likewise.
8979 * compile/compile-object-load.c (get_out_value_type): Use
8980 symbol_matches_search_name.
8981
f049a313
TT
89822020-04-24 Tom Tromey <tom@tromey.com>
8983
8984 * dwarf2/read.c (add_partial_symbol): Do not call
8985 compute_and_set_names.
8986
76e288d1
TT
89872020-04-24 Tom Tromey <tom@tromey.com>
8988
8989 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8990 overload.
8991
2467f4f6
TT
89922020-04-24 Tom Tromey <tom@tromey.com>
8993
8994 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8995 (add_psymbol_to_list): New overload. Make old overload call new
8996 one.
8997 * psympriv.h (add_psymbol_to_list): New overload.
8998
e61108c9
TT
89992020-04-24 Tom Tromey <tom@tromey.com>
9000
9001 * dwarf2/read.c (partial_die_info::read) <case
9002 DW_AT_linkage_name>: Use value_as_string.
9003 (dwarf2_string_attr): Use value_as_string.
9004 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
9005 method.
9006 * dwarf2/attribute.c (attribute::value_as_string): New method.
9007
8c87a452
TT
90082020-04-24 Tom Tromey <tom@tromey.com>
9009
9010 * symtab.c (general_symbol_info::natural_name)
9011 (general_symbol_info::demangled_name): Check for language_rust.
9012
787de330
TT
90132020-04-24 Tom Tromey <tom@tromey.com>
9014
9015 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9016 (dwarf2_physname): ... from here.
9017 (partial_die_info::read): Add Rust "{" hack.
9018
ff985671
TT
90192020-04-24 Tom Tromey <tom@tromey.com>
9020
9021 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9022 method.
9023 (symbol_set_demangled_name): Don't declare.
9024 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9025 symbol_set_demangled_name.
9026 (general_symbol_info::set_language)
9027 (general_symbol_info::compute_and_set_names): Update.
9028 * minsyms.c (minimal_symbol_reader::install): Update.
9029 * dwarf2/read.c (new_symbol): Update.
9030
1acda803
TT
90312020-04-24 Tom Tromey <tromey@adacore.com>
9032
9033 PR python/23662:
9034 * python/py-type.c (convert_field): Handle
9035 FIELD_LOC_KIND_DWARF_BLOCK.
9036 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9037 (typy_get_dynamic): Nw function.
9038 (type_object_getset): Add "dynamic".
9039 * NEWS: Add entry.
9040
d656f129
TT
90412020-04-24 Tom Tromey <tromey@adacore.com>
9042
9043 * ada-typeprint.c (print_choices, print_variant_part)
9044 (print_record_field_types_dynamic): New functions.
9045 (print_record_field_types): Use print_record_field_types_dynamic.
9046
7d79de9a
TT
90472020-04-24 Tom Tromey <tromey@adacore.com>
9048
9049 * dwarf2/read.c (handle_data_member_location): New overload.
9050 (dwarf2_add_field): Use it.
9051 (decode_locdesc): Add "computed" parameter. Update comment.
9052 * gdbtypes.c (is_dynamic_type_internal): Also look for
9053 FIELD_LOC_KIND_DWARF_BLOCK.
9054 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9055 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9056 virtual base classes.
9057 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9058 FIELD_LOC_KIND_DWARF_BLOCK.
9059
f8e89861
TT
90602020-04-24 Tom Tromey <tromey@adacore.com>
9061
9062 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9063 * gdbtypes.c (is_dynamic_type_internal): Check
9064 TYPE_HAS_DYNAMIC_LENGTH.
9065 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9066 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9067 New macros.
9068 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9069 constant.
9070
9c6a1327
TT
90712020-04-24 Tom Tromey <tromey@adacore.com>
9072
9073 * dwarf2/read.c (struct variant_field): Rewrite.
9074 (struct variant_part_builder): New.
9075 (struct nextfield): Remove "variant" field. Add "offset".
9076 (struct field_info): Add "current_variant_part" and
9077 "variant_parts".
9078 (alloc_discriminant_info): Remove.
9079 (alloc_rust_variant): New function.
9080 (quirk_rust_enum): Update.
9081 (dwarf2_add_field): Set "offset" member. Don't handle
9082 DW_TAG_variant_part.
9083 (offset_map_type): New typedef.
9084 (convert_variant_range, create_one_variant)
9085 (create_one_variant_part, create_variant_parts)
9086 (add_variant_property): New functions.
9087 (dwarf2_attach_fields_to_type): Call add_variant_property.
9088 (read_structure_type): Don't handle DW_TAG_variant_part.
9089 (handle_variant_part, handle_variant): New functions.
9090 (handle_struct_member_die): Use them.
9091 (process_structure_scope): Don't handle variant parts.
9092 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9093 (struct discriminant_info): Remove.
9094 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9095 (struct main_type) <flag_discriminated_union>: Remove.
9096 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9097 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9098 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9099 Update.
9100 * valops.c (value_union_variant): Remove.
9101 * value.h (value_union_variant): Don't declare.
9102
b249d2c2
TT
91032020-04-24 Tom Tromey <tromey@adacore.com>
9104
9105 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9106 (ada_value_primitive_packed_val): Update.
9107 * ada-valprint.c (ada_value_print_1): Update.
9108 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9109 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9110 just an address. Use evaluate_for_locexpr_baton.
9111 (dwarf2_evaluate_property): Update.
9112 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9113 array_view.
9114 * findvar.c (default_read_var_value): Update.
9115 * gdbtypes.c (compute_variant_fields_inner)
9116 (resolve_dynamic_type_internal): Update.
9117 (resolve_dynamic_type): Change type of valaddr parameter.
9118 * gdbtypes.h (resolve_dynamic_type): Update.
9119 * valarith.c (value_subscripted_rvalue): Update.
9120 * value.c (value_from_contents_and_address): Update.
9121
61122aa9
TT
91222020-04-24 Tom Tromey <tromey@adacore.com>
9123
9124 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9125 "push_initial_value" parameter.
9126 (dwarf2_evaluate_property): Likewise.
9127 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9128
ef83a141
TT
91292020-04-24 Tom Tromey <tromey@adacore.com>
9130
9131 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9132 (variant::matches, compute_variant_fields_recurse)
9133 (compute_variant_fields_inner, compute_variant_fields): New
9134 functions.
9135 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9136 Use resolved_type after type is made.
9137 (operator==): Add new cases.
9138 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9139 (struct discriminant_range, struct variant, struct variant_part):
9140 New.
9141 (union dynamic_prop_data) <variant_parts, original_type>: New
9142 members.
9143 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9144 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9145 constants.
9146 * value.c (unpack_bits_as_long): Now public.
9147 * value.h (unpack_bits_as_long): Declare.
9148
675127ec
TT
91492020-04-24 Tom Tromey <tromey@adacore.com>
9150
9151 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9152 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9153
9852ceef
HD
91542020-04-24 Hannes Domani <ssbssa@yahoo.de>
9155
9156 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9157
7632c6ce
KR
91582020-04-24 Kamil Rytarowski <n54@gmx.com>
9159
9160 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9161 (remove_fork_catchpoint, post_startup_inferior)
9162 (post_attach): Move...
9163 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9164 (remove_fork_catchpoint, post_startup_inferior)
9165 (post_attach): ...here.
9166 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9167 (remove_fork_catchpoint, post_startup_inferior)
9168 (post_attach): Move...
9169 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9170 (remove_fork_catchpoint, post_startup_inferior)
9171 (post_attach): ...here.
9172
7be2bb4f
TT
91732020-04-24 Tom Tromey <tromey@adacore.com>
9174
9175 * nat/windows-nat.h (struct windows_thread_info)
9176 <pc_adjusted>: New member.
9177 * windows-nat.c (windows_fetch_one_register): Check
9178 pc_adjusted.
9179 (windows_nat_target::get_windows_debug_event)
9180 (windows_nat_target::wait): Set pc_adjusted.
9181
f80cb3b4
TV
91822020-04-24 Tom de Vries <tdevries@suse.de>
9183
9184 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9185 Run gdb-add-index inside temp dir.
9186
29514b87
TT
91872020-04-23 Tom Tromey <tromey@adacore.com>
9188
9189 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9190 in loop.
9191
5939967b
LM
91922020-04-23 Luis Machado <luis.machado@linaro.org>
9193
9194 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9195 get_frame_register instead of gdbarch_unwind_pc.
9196
70bc38f5
TV
91972020-04-23 Tom de Vries <tdevries@suse.de>
9198
9199 * symtab.c (lookup_global_symbol): Prefer def over decl.
9200
de82891c
TV
92012020-04-23 Tom de Vries <tdevries@suse.de>
9202
9203 PR symtab/25807
9204 * block.c (best_symbol, better_symbol): Promote to external.
9205 * block.h (best_symbol, better_symbol): Declare.
9206 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9207 decl.
9208
ecc6c606
TT
92092020-04-23 Tom Tromey <tromey@adacore.com>
9210
9211 PR ada/25837:
9212 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9213 "const char *", not a "const std::string &".
9214 <name_and_matcher::operator==>: Update.
9215 * unittests/lookup_name_info-selftests.c: Change type of
9216 "result".
9217
740480b8
TT
92182020-04-23 Tom Tromey <tom@tromey.com>
9219
9220 * inferior.h (iterate_over_inferiors): Don't declare.
9221 * inferior.c (iterate_over_inferiors): Remove.
9222 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9223 Remove.
9224 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9225 use iterate_over_inferiors.
9226 (darwin_resume_inferior_it)
9227 (struct resume_inferior_threads_param)
9228 (darwin_resume_inferior_threads_it): Remove.
9229 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9230
ae3ab1f0
TV
92312020-04-23 Tom de Vries <tdevries@suse.de>
9232
9233 * blockframe.c (find_pc_partial_function): Use
9234 find_pc_sect_compunit_symtab rather than
9235 objfile->sf->qf->find_pc_sect_compunit_symtab.
9236
317d2668
TV
92372020-04-22 Tom de Vries <tdevries@suse.de>
9238
9239 PR symtab/25764
9240 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9241 in psymtabs.
9242
eea9e357
TV
92432020-04-22 Tom de Vries <tdevries@suse.de>
9244
9245 PR symtab/25801
9246 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9247 symtabs.
9248
3d5afab3
TV
92492020-04-22 Tom de Vries <tdevries@suse.de>
9250
9251 PR symtab/25700
9252 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9253 CU if already created.
9254
d43b7a2d
TBA
92552020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9256
9257 * infrun.c (displaced_step_fixup): Switch to the event_thread
9258 before calling displaced_step_restore, not after.
9259
d89edf9b
MM
92602020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9261
9262 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9263 its inferior is not recorded by us.
9264 (record_btrace_target_open): Replace call to
9265 all_non_exited_threads () with call to current_inferior
9266 ()->non_exited_threads ().
9267 (record_btrace_target::stop_recording): Likewise.
9268 (record_btrace_target::close): Likewise.
9269 (record_btrace_target::wait): Likewise.
9270 (record_btrace_target::record_stop_replaying): Likewise.
9271
5897fd49
MM
92722020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9273
9274 * btrace.c (btrace_enable): Throw an error on double enables and
9275 when enabling recording fails.
9276 (btrace_disable): Throw an error if the thread is not recorded.
9277
1a476b6d
MM
92782020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9279
9280 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9281 request if we do not have a thread_info.
9282
4778a5f8
TV
92832020-04-21 Tom de Vries <tdevries@suse.de>
9284
9285 PR gdb/25471
9286 * thread.c
9287 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9288 exception in get_frame_id.
9289
0fa7617d
TT
92902020-04-20 Tom Tromey <tromey@adacore.com>
9291
9292 * python/python.c (struct gdbpy_event): Mark move constructor as
9293 noexcept.
9294 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9295 constructor as noexcept.
9296 * completer.h (struct completion_result): Mark move constructor as
9297 noexcept.
9298 * completer.c (completion_result::completion_result): Use
9299 initialization style. Don't call reset_match_list.
9300
ad23bda0
MS
93012020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9302
9303 * MAINTAINERS (Write After Approval): Add myself.
9304
45e1f031
TT
93052020-04-18 Tom Tromey <tom@tromey.com>
9306
9307 * windows-tdep.c (init_w32_command_list)
9308 (w32_prefix_command_valid): Restore.
9309 (_initialize_windows_tdep): Call init_w32_command_list.
9310
08feed99
TT
93112020-04-18 Tom Tromey <tom@tromey.com>
9312
9313 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9314 * value.c (value_fn_field): Update.
9315 * valops.c (find_function_in_inferior)
9316 (value_allocate_space_in_inferior): Update.
9317 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9318 Update.
9319 * tui/tui-source.c (tui_source_window::set_contents): Update.
9320 * symtab.c (lookup_global_or_static_symbol)
9321 (find_function_start_sal_1, skip_prologue_sal)
9322 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9323 * symmisc.c (dump_msymbols, dump_symtab_1)
9324 (maintenance_print_one_line_table): Update.
9325 * symfile.c (init_entry_point_info, section_is_mapped)
9326 (list_overlays_command, simple_read_overlay_table)
9327 (simple_overlay_update_1): Update.
9328 * stap-probe.c (handle_stap_probe): Update.
9329 * stabsread.c (dbx_init_float_type, define_symbol)
9330 (read_one_struct_field, read_enum_type, read_range_type): Update.
9331 * source.c (info_line_command): Update.
9332 * python/python.c (gdbpy_source_objfile_script)
9333 (gdbpy_execute_objfile_script): Update.
9334 * python/py-type.c (save_objfile_types): Update.
9335 * python/py-objfile.c (py_free_objfile): Update.
9336 * python/py-inferior.c (python_new_objfile): Update.
9337 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9338 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9339 (maintenance_check_psymtabs): Update.
9340 * printcmd.c (info_address_command): Update.
9341 * objfiles.h (struct objfile) <arch>: New method, from
9342 get_objfile_arch.
9343 (get_objfile_arch): Don't declare.
9344 * objfiles.c (get_objfile_arch): Remove.
9345 (filter_overlapping_sections): Update.
9346 * minsyms.c (msymbol_is_function): Update.
9347 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9348 (output_nondebug_symbol): Update.
9349 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9350 (mdebug_expand_psymtab): Update.
9351 * machoread.c (macho_add_oso_symfile): Update.
9352 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9353 Update.
9354 * linux-fork.c (checkpoint_command): Update.
9355 * linespec.c (convert_linespec_to_sals): Update.
9356 * jit.c (finalize_symtab): Update.
9357 * infrun.c (insert_exception_resume_from_probe): Update.
9358 * ia64-tdep.c (ia64_find_unwind_table): Update.
9359 * hppa-tdep.c (internalize_unwinds): Update.
9360 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9361 Update.
9362 * gcore.c (call_target_sbrk): Update.
9363 * elfread.c (record_minimal_symbol, elf_symtab_read)
9364 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9365 (elf_gnu_ifunc_resolve_by_got): Update.
9366 * dwarf2/read.c (create_addrmap_from_index)
9367 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9368 (read_debug_names_from_section)
9369 (process_psymtab_comp_unit_reader, add_partial_symbol)
9370 (add_partial_subprogram, process_full_comp_unit)
9371 (read_file_scope, read_func_scope, read_lexical_block_scope)
9372 (read_call_site_scope, dwarf2_ranges_read)
9373 (dwarf2_record_block_ranges, dwarf2_add_field)
9374 (mark_common_block_symbol_computed, read_tag_pointer_type)
9375 (read_tag_string_type, dwarf2_init_float_type)
9376 (dwarf2_init_complex_target_type, read_base_type)
9377 (partial_die_info::read, partial_die_info::read)
9378 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9379 (dwarf2_fetch_die_loc_sect_off): Update.
9380 * dwarf2/loc.c (dwarf2_find_location_expression)
9381 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9382 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9383 (dwarf2_loc_desc_get_symbol_read_needs)
9384 (locexpr_describe_location_piece, locexpr_describe_location_1)
9385 (loclist_describe_location): Update.
9386 * dwarf2/index-write.c (write_debug_names): Update.
9387 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9388 * dtrace-probe.c (dtrace_process_dof): Update.
9389 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9390 (process_one_symbol): Update.
9391 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9392 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9393 (coff_read_enum_type): Update.
9394 * cli/cli-cmds.c (edit_command, list_command): Update.
9395 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9396 * breakpoint.c (create_overlay_event_breakpoint)
9397 (create_longjmp_master_breakpoint)
9398 (create_std_terminate_master_breakpoint)
9399 (create_exception_master_breakpoint, get_sal_arch): Update.
9400 * block.c (block_gdbarch): Update.
9401 * annotate.c (annotate_source_line): Update.
9402
0743fc83
TT
94032020-04-17 Tom Tromey <tromey@adacore.com>
9404
9405 * auto-load.c (show_auto_load_cmd): Remove.
9406 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9407 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9408 (maintenance_print_arc_command): Remove.
9409 * tui/tui-win.c (tui_command): Remove.
9410 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9411 * tui/tui-layout.c (tui_layout_command): Remove.
9412 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9413 * python/python.c (user_set_python, user_show_python): Remove.
9414 (_initialize_python): Use add_basic_prefix_cmd,
9415 add_show_prefix_cmd.
9416 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9417 (install_gdb_commands): Use add_basic_prefix_cmd,
9418 add_show_prefix_cmd.
9419 (info_guile_command): Remove.
9420 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9421 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9422 add_show_prefix_cmd.
9423 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9424 Remove do_set and do_show parameters.
9425 * cli/cli-style.c (set_style, show_style): Remove.
9426 (_initialize_cli_style): Use add_basic_prefix_cmd,
9427 add_show_prefix_cmd.
9428 (cli_style_option::add_setshow_commands): Remove do_set and
9429 do_show parameters.
9430 (cli_style_option::add_setshow_commands): Use
9431 add_basic_prefix_cmd, add_show_prefix_cmd.
9432 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9433 (set_style_name): Remove.
9434 * cli/cli-dump.c (dump_command, append_command): Remove.
9435 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9436 (tekhex_dump_command, binary_dump_command)
9437 (binary_append_command): Remove.
9438 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9439 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9440 (init_w32_command_list): Remove; move into ...
9441 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9442 * valprint.c (set_print, show_print, set_print_raw)
9443 (show_print_raw): Remove.
9444 (_initialize_valprint): Use add_basic_prefix_cmd,
9445 add_show_prefix_cmd.
9446 * typeprint.c (set_print_type, show_print_type): Remove.
9447 (_initialize_typeprint): Use add_basic_prefix_cmd,
9448 add_show_prefix_cmd.
9449 * record.c (set_record_command, show_record_command): Remove.
9450 (_initialize_record): Use add_basic_prefix_cmd,
9451 add_show_prefix_cmd.
9452 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9453 add_show_prefix_cmd.
9454 (info_command, show_command, set_debug, show_debug): Remove.
9455 * top.h (set_history, show_history): Don't declare.
9456 * top.c (set_history, show_history): Remove.
9457 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9458 (unset_tdesc_cmd): Remove.
9459 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9460 add_show_prefix_cmd.
9461 * symtab.c (info_module_command): Remove.
9462 (_initialize_symtab): Use add_basic_prefix_cmd.
9463 * symfile.c (overlay_command): Remove.
9464 (_initialize_symfile): Use add_basic_prefix_cmd.
9465 * sparc64-tdep.c (info_adi_command): Remove.
9466 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9467 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9468 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9469 add_show_prefix_cmd.
9470 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9471 (_initialize_serial): Use add_basic_prefix_cmd,
9472 add_show_prefix_cmd.
9473 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9474 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9475 add_show_prefix_cmd.
9476 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9477 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9478 add_show_prefix_cmd.
9479 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9480 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9481 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9482 add_show_prefix_cmd.
9483 * remote.c (remote_command, set_remote_cmd): Remove.
9484 (_initialize_remote): Use add_basic_prefix_cmd.
9485 * record-full.c (set_record_full_command)
9486 (show_record_full_command): Remove.
9487 (_initialize_record_full): Use add_basic_prefix_cmd,
9488 add_show_prefix_cmd.
9489 * record-btrace.c (cmd_set_record_btrace)
9490 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9491 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9492 (cmd_show_record_btrace_pt): Remove.
9493 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9494 add_show_prefix_cmd.
9495 * ravenscar-thread.c (set_ravenscar_command)
9496 (show_ravenscar_command): Remove.
9497 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9498 add_show_prefix_cmd.
9499 * mips-tdep.c (show_mips_command, set_mips_command)
9500 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9501 add_show_prefix_cmd.
9502 * maint.c (maintenance_command, maintenance_info_command)
9503 (maintenance_check_command, maintenance_print_command)
9504 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9505 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9506 add_show_prefix_cmd.
9507 (show_per_command_cmd): Remove.
9508 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9509 Remove.
9510 (maintenance_show_test_settings_cmd): Remove.
9511 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9512 add_show_prefix_cmd.
9513 * maint-test-options.c (maintenance_test_options_command):
9514 Remove.
9515 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9516 * macrocmd.c (macro_command): Remove
9517 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9518 * language.c (set_check, show_check): Remove.
9519 (_initialize_language): Use add_basic_prefix_cmd,
9520 add_show_prefix_cmd.
9521 * infcmd.c (unset_command): Remove.
9522 (_initialize_infcmd): Use add_basic_prefix_cmd.
9523 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9524 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9525 add_show_prefix_cmd.
9526 * go32-nat.c (go32_info_dos_command): Remove.
9527 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9528 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9529 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9530 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9531 (_initialize_frame): Use add_basic_prefix_cmd,
9532 add_show_prefix_cmd.
9533 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9534 (_initialize_dcache): Use add_basic_prefix_cmd,
9535 add_show_prefix_cmd.
9536 * cp-support.c (maint_cplus_command): Remove.
9537 (_initialize_cp_support): Use add_basic_prefix_cmd.
9538 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9539 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9540 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9541 add_basic_prefix_cmd, add_show_prefix_cmd.
9542 * breakpoint.c (save_command): Remove.
9543 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9544 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9545 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9546 add_show_prefix_cmd.
9547 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9548 (set_ada_command, show_ada_command): Remove.
9549 (_initialize_ada_language): Use add_basic_prefix_cmd,
9550 add_show_prefix_cmd.
9551 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9552
3557f442
KR
95532020-04-16 Kamil Rytarowski <n54@gmx.com>
9554
9555 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9556 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9557
16197208
SM
95582020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9559
9560 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9561 warning messages.
9562
00ac85d3
SM
95632020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9564
9565 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9566 import table is not at beginning of .idata section.
9567
381ce63f
PA
95682020-04-16 Pedro Alves <palves@redhat.com>
9569
9570 * inferior.c (delete_inferior): Use delete operator directly
9571 instead of delete_program_space.
9572 * progspace.c (add_program_space): New, factored out from
9573 program_space::program_space.
9574 (remove_program_space): New, factored out from
9575 delete_program_space.
9576 (program_space::program_space): Remove intro comment. Rewrite.
9577 (program_space::~program_space): Remove intro comment. Call
9578 remove_program_space.
9579 (delete_program_space): Delete.
9580 * progspace.h (program_space::program_space): Make explicit. Move
9581 intro comment here, adjusted.
9582 (program_space::~program_space): Move intro comment here,
9583 adjusted.
9584 (delete_program_space): Remove.
9585
a010605f
TT
95862020-04-16 Tom Tromey <tromey@adacore.com>
9587
9588 * windows-nat.c (windows_nat::handle_access_violation): New
9589 function.
9590 * nat/windows-nat.h (handle_access_violation): Declare.
9591 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9592 windows-nat.c. Call handle_access_violation.
9593
efba5c23
TV
95942020-04-16 Tom de Vries <tdevries@suse.de>
9595
9596 PR symtab/25791
9597 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9598 CUs without psymtab.
9599
97ed802d
KB
96002020-04-16 Kevin Buettner <kevinb@redhat.com>
9601
9602 * python/python.c (do_start_initialization): Don't call
9603 PyEval_InitThreads for Python 3.9 and beyond.
9604
c7d64809
KR
96052020-04-15 Kamil Rytarowski <n54@gmx.com>
9606
9607 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9608 thread functions.
9609 (obsd_nat_target::wait): Likewise.
9610
ce127a96
TT
96112020-04-15 Tom Tromey <tromey@adacore.com>
9612
9613 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9614 (DEBUG_EXCEPT): Use debug_printf.
9615
99f1bc6a
AB
96162020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9617
9618 * completer.c (class completion_tracker::completion_hash_entry)
9619 <hash_name>: New member function.
9620 (completion_tracker::discard_completions): New callback to hash a
9621 completion_hash_entry, pass this to htab_create_alloc.
9622
a0e9b532
JT
96232016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9624
9625 * windows-nat.c (windows_make_so): Warn rather than stopping with
9626 an error if realpath() fails.
9627
06ca5dd4
KR
96282020-04-14 Kamil Rytarowski <n54@gmx.com>
9629
9630 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9631 (nbsd_nat_target::info_proc): Add do_status.
9632
194d088f
TV
96332020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9634 Tom de Vries <tdevries@suse.de>
9635
9636 PR symtab/25718
9637 * psympriv.h (struct partial_symtab::read_symtab)
9638 (struct partial_symtab::expand_psymtab)
9639 (struct partial_symtab::read_dependencies): Update comments.
9640 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9641 read_symtab for includer.
9642 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9643 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9644 (struct dwarf2_include_psymtab::m_readin): Remove.
9645 (struct dwarf2_include_psymtab::includer): New member function.
9646 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9647
c1a66c06
TV
96482020-04-14 Tom de Vries <tdevries@suse.de>
9649
9650 PR symtab/25720
9651 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9652 with NULL symbol_matcher and lookup_name.
9653 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9654 and lookup_name.
9655 * dwarf2/read.c (dw2_expand_symtabs_matching)
9656 (dw2_debug_names_expand_symtabs_matching): Same.
9657 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9658 Make lookup_name a pointer. Update comment.
9659 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9660 lookup_name being a pointer.
9661 * symfile.c (expand_symtabs_matching): Same.
9662 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9663 * linespec.c (iterate_over_all_matching_symtabs): Same.
9664
400b5eca
TT
96652020-04-13 Tom Tromey <tom@tromey.com>
9666
9667 * run-on-main-thread.c: Update include.
9668 * unittests/main-thread-selftests.c: Update include.
9669 * tui/tui-win.c: Update include.
9670 * tui/tui-io.c: Update include.
9671 * tui/tui-interp.c: Update include.
9672 * tui/tui-hooks.c: Update include.
9673 * top.h: Update include.
9674 * top.c: Update include.
9675 * ser-base.c: Update include.
9676 * remote.c: Update include.
9677 * remote-notif.c: Update include.
9678 * remote-fileio.c: Update include.
9679 * record-full.c: Update include.
9680 * record-btrace.c: Update include.
9681 * python/python.c: Update include.
9682 * posix-hdep.c: Update include.
9683 * mingw-hdep.c: Update include.
9684 * mi/mi-main.c: Update include.
9685 * mi/mi-interp.c: Update include.
9686 * main.c: Update include.
9687 * linux-nat.c: Update include.
9688 * interps.c: Update include.
9689 * infrun.c: Update include.
9690 * inf-loop.c: Update include.
9691 * event-top.c: Update include.
9692 * event-loop.c: Move to ../gdbsupport/.
9693 * event-loop.h: Move to ../gdbsupport/.
9694 * async-event.h: Update include.
9695 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9696
93b54c8e
TT
96972020-04-13 Tom Tromey <tom@tromey.com>
9698
9699 * tui/tui-win.c: Include async-event.h.
9700 * remote.c: Include async-event.h.
9701 * remote-notif.c: Include async-event.h.
9702 * record-full.c: Include async-event.h.
9703 * record-btrace.c: Include async-event.h.
9704 * infrun.c: Include async-event.h.
9705 * event-top.c: Include async-event.h.
9706 * event-loop.h: Move some declarations to async-event.h.
9707 * event-loop.c: Don't include ser-event.h or top.h. Move some
9708 code to async-event.c.
9709 * async-event.h: New file.
9710 * async-event.c: New file.
9711 * Makefile.in (COMMON_SFILES): Add async-event.c.
9712 (HFILES_NO_SRCDIR): Add async-event.h.
9713
c1cd3163
TT
97142020-04-13 Tom Tromey <tom@tromey.com>
9715
9716 * utils.c (flush_streams): New function.
9717 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9718
29f2bf4f
TT
97192020-04-13 Tom Tromey <tom@tromey.com>
9720
9721 * event-loop.c (handle_file_event): Use warning, not
9722 printf_unfiltered.
9723
98029d02
TT
97242020-04-13 Tom Tromey <tom@tromey.com>
9725
9726 * event-loop.c: Include <chrono>.
9727
06cc9596
TT
97282020-04-13 Tom Tromey <tom@tromey.com>
9729
9730 * gdb_select.h: Move to ../gdbsupport/.
9731 * event-loop.c: Update include path.
9732 * top.c: Update include path.
9733 * ser-base.c: Update include path.
9734 * ui-file.c: Update include path.
9735 * ser-tcp.c: Update include path.
9736 * guile/scm-ports.c: Update include path.
9737 * posix-hdep.c: Update include path.
9738 * ser-unix.c: Update include path.
9739 * gdb_usleep.c: Update include path.
9740 * mingw-hdep.c: Update include path.
9741 * inflow.c: Update include path.
9742 * infrun.c: Update include path.
9743 * event-top.c: Update include path.
9744
8ae8e197
TT
97452020-04-13 Tom Tromey <tom@tromey.com>
9746
9747 * configure: Rebuild.
9748 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9749
58cf28e8
TT
97502020-04-13 Tom Tromey <tom@tromey.com>
9751
9752 * event-loop.h (start_event_loop): Don't declare.
9753 * event-loop.c (start_event_loop): Move...
9754 * main.c (start_event_loop): ...here. Now static.
9755
b7f999ae
SDJ
97562020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9757
9758 * MAINTAINERS: Update my email address.
9759
1085dfd4
KR
97602020-04-12 Kamil Rytarowski <n54@gmx.com>
9761
9762 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9763 IP_ALL.
9764
49d1d1f5
KR
97652020-04-12 Kamil Rytarowski <n54@gmx.com>
9766
9767 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 9768 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 9769
b4848d2a
KR
97702020-04-12 Kamil Rytarowski <n54@gmx.com>
9771
9772 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 9773 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 9774
51c133d5
KR
97752020-04-12 Kamil Rytarowski <n54@gmx.com>
9776
9777 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9778
54b8cbd0
KR
97792020-04-11 Kamil Rytarowski <n54@gmx.com>
9780
9781 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9782 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9783 (nbsd_nat_target::info_proc): New functions.
9784 * nbsd-nat.c (kinfo_get_vmmap): New function.
9785 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9786 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9787 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9788 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9789 functions.
9790 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9791 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9792 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9793 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9794 (KINFO_VME_FLAG_GROWS_DOWN): New.
9795
cf83625d
AS
97962020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9797
9798 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9799 bit shift.
9800
0c4311ab
TT
98012020-04-10 Tom Tromey <tromey@adacore.com>
9802
9803 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9804
3e65b3e9
TT
98052020-04-10 Tom Tromey <tromey@adacore.com>
9806
9807 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9808 separate debug files.
9809
13302e95
HD
98102020-04-10 Hannes Domani <ssbssa@yahoo.de>
9811
9812 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9813 Move to...
9814 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9815 ... here.
9816 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9817 Check for STATUS_WX86_BREAKPOINT.
9818 (windows_nat_target::wait): Same.
9819
bdfc1e8a
TV
98202020-04-10 Tom de Vries <tdevries@suse.de>
9821
9822 PR cli/25808
9823 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9824
f4460aec
SM
98252020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9826
9827 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9828 (Write After Approval): Remove Tom de Vries.
9829
a25198bb
BE
98302020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9831
9832 revert partially:
9833 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9834
aac66a4c
SM
9835 * buildsym.c (record_line): Fix undefined behavior and preserve
9836 lines at eof.
a25198bb 9837
206c98a6
KR
98382020-04-09 Kamil Rytarowski <n54@gmx.com>
9839
9840 * auxv.h (svr4_auxv_parse): New.
9841 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9842 and generic_auxv_parse.
9843 (svr4_auxv_parse): Add.
9844 * obsd-tdep.c: Include "auxv.h".
9845 (obsd_auxv_parse): Remove.
9846 (obsd_init_abi): Remove comment.
9847 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9848 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9849 * nbsd-tdep.c: Include "auxv.h".
9850 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9851
71fbdbaf
TT
98522020-04-08 Tom Tromey <tromey@adacore.com>
9853
9854 * nat/windows-nat.h (last_wait_event): Don't declare.
9855 (wait_for_debug_event): Update comment.
9856 * nat/windows-nat.c (last_wait_event): Now static.
9857
2c1d95e8
TT
98582020-04-08 Tom Tromey <tromey@adacore.com>
9859
9860 * windows-nat.c (wait_for_debug_event): Move to
9861 nat/windows-nat.c.
9862 * nat/windows-nat.h (wait_for_debug_event): Declare.
9863 * nat/windows-nat.c (wait_for_debug_event): Move from
9864 windows-nat.c. No longer static.
9865
d2977bc4
TT
98662020-04-08 Tom Tromey <tromey@adacore.com>
9867
9868 * windows-nat.c (get_windows_debug_event): Use
9869 fetch_pending_stop.
9870 * nat/windows-nat.h (fetch_pending_stop): Declare.
9871 * nat/windows-nat.c (fetch_pending_stop): New function.
9872
e758e19c
TT
98732020-04-08 Tom Tromey <tromey@adacore.com>
9874
9875 * windows-nat.c (windows_continue): Use matching_pending_stop and
9876 continue_last_debug_event.
9877 * nat/windows-nat.h (matching_pending_stop)
9878 (continue_last_debug_event): Declare.
9879 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9880 (matching_pending_stop, continue_last_debug_event): New
9881 functions.
9882
8d30e395
TT
98832020-04-08 Tom Tromey <tromey@adacore.com>
9884
9885 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9886 (handle_exception_result): Move to nat/windows-nat.h.
9887 (DEBUG_EXCEPTION_SIMPLE): Remove.
9888 (windows_nat::handle_ms_vc_exception): New function.
9889 (handle_exception): Move to nat/windows-nat.c.
9890 (get_windows_debug_event): Update.
9891 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9892 nat/windows-nat.c.
9893 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9894 (handle_exception_result): Move from windows-nat.c.
9895 (handle_exception): Declare.
9896 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9897 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9898 windows-nat.c.
9899
29de418d
TT
99002020-04-08 Tom Tromey <tromey@adacore.com>
9901
9902 * windows-nat.c (exception_count, event_count): Remove.
9903 (handle_exception, get_windows_debug_event)
9904 (do_initial_windows_stuff): Update.
9905
a816ba18
TT
99062020-04-08 Tom Tromey <tromey@adacore.com>
9907
9908 * windows-nat.c (windows_nat::handle_load_dll)
9909 (windows_nat::handle_unload_dll): Rename. No longer static.
9910 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9911 Declare.
9912
a00caa12
TT
99132020-04-08 Tom Tromey <tromey@adacore.com>
9914
9915 * complaints.h (stop_whining): Declare at top-level.
9916 (complaint): Don't declare stop_whining.
9917
d41b524f
TT
99182020-04-08 Tom Tromey <tromey@adacore.com>
9919
9920 * windows-nat.c (windows_nat::handle_output_debug_string):
9921 Rename. No longer static.
9922 * nat/windows-nat.h (handle_output_debug_string): Declare.
9923
3c76026d
TT
99242020-04-08 Tom Tromey <tromey@adacore.com>
9925
9926 * windows-nat.c (current_process_handle, current_process_id)
9927 (main_thread_id, last_sig, current_event, last_wait_event)
9928 (current_windows_thread, desired_stop_thread_id, pending_stops)
9929 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9930 (display_selectors, fake_create_process)
9931 (get_windows_debug_event): Update.
9932 * nat/windows-nat.h (current_process_handle, current_process_id)
9933 (main_thread_id, last_sig, current_event, last_wait_event)
9934 (current_windows_thread, desired_stop_thread_id, pending_stops)
9935 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9936 * nat/windows-nat.c (current_process_handle, current_process_id)
9937 (main_thread_id, last_sig, current_event, last_wait_event)
9938 (current_windows_thread, desired_stop_thread_id, pending_stops)
9939 (siginfo_er): New globals. Move from windows-nat.c.
9940
9d8679cc
TT
99412020-04-08 Tom Tromey <tromey@adacore.com>
9942
9943 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9944 (handle_load_dll): Update.
9945 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9946
28688adf
TT
99472020-04-08 Tom Tromey <tromey@adacore.com>
9948
9949 * windows-nat.c (enum thread_disposition_type): Move to
9950 nat/windows-nat.h.
9951 (windows_nat::thread_rec): Rename from thread_rec. No longer
9952 static.
9953 (windows_add_thread, windows_nat_target::fetch_registers)
9954 (windows_nat_target::store_registers, handle_exception)
9955 (windows_nat_target::resume, get_windows_debug_event)
9956 (windows_nat_target::get_tib_address)
9957 (windows_nat_target::thread_name)
9958 (windows_nat_target::thread_alive): Update.
9959 * nat/windows-nat.h (enum thread_disposition_type): Move from
9960 windows-nat.c.
9961 (thread_rec): Declare.
9962
4834dad0
TT
99632020-04-08 Tom Tromey <tromey@adacore.com>
9964
9965 * windows-nat.c: Add "using namespace".
9966 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9967 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9968
65bafd5b
TT
99692020-04-08 Tom Tromey <tromey@adacore.com>
9970
9971 * nat/windows-nat.h (struct windows_thread_info): Declare
9972 destructor.
9973 * nat/windows-nat.c (~windows_thread_info): New.
9974
0a4afda3
TT
99752020-04-08 Tom Tromey <tromey@adacore.com>
9976
9977 PR gdb/22992
9978 * windows-nat.c (current_event): Update comment.
9979 (last_wait_event, desired_stop_thread_id): New globals.
9980 (struct pending_stop): New.
9981 (pending_stops): New global.
9982 (windows_nat_target) <stopped_by_sw_breakpoint>
9983 <supports_stopped_by_sw_breakpoint>: New methods.
9984 (windows_fetch_one_register): Add assertions. Adjust PC.
9985 (windows_continue): Handle pending stops. Suspend other threads
9986 when stepping. Use last_wait_event
9987 (wait_for_debug_event): New function.
9988 (get_windows_debug_event): Use wait_for_debug_event. Handle
9989 pending stops. Queue spurious stops.
9990 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9991 (windows_nat_target::kill): Use wait_for_debug_event.
9992 * nat/windows-nat.h (struct windows_thread_info)
9993 <stopped_at_software_breakpoint>: New field.
9994 * nat/windows-nat.c (windows_thread_info::resume): Clear
9995 stopped_at_software_breakpoint.
9996
8e61ebec
TT
99972020-04-08 Tom Tromey <tromey@adacore.com>
9998
9999 * windows-nat.c (enum thread_disposition_type): New.
10000 (thread_rec): Replace "get_context" parameter with "disposition";
10001 change type.
10002 (windows_add_thread, windows_nat_target::fetch_registers)
10003 (windows_nat_target::store_registers, handle_exception)
10004 (windows_nat_target::resume, get_windows_debug_event)
10005 (windows_nat_target::get_tib_address)
10006 (windows_nat_target::thread_name)
10007 (windows_nat_target::thread_alive): Update.
10008
98a03287
TT
100092020-04-08 Tom Tromey <tromey@adacore.com>
10010
10011 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10012 (windows_continue): Use windows_continue::resume.
10013 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10014 resume>: Declare new methods.
10015 * nat/windows-nat.c: New file.
10016 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10017
7c7411bc
TT
100182020-04-08 Tom Tromey <tromey@adacore.com>
10019
10020 * windows-nat.c (windows_add_thread, windows_delete_thread)
10021 (windows_nat_target::fetch_registers)
10022 (windows_nat_target::store_registers, fake_create_process)
10023 (windows_nat_target::resume, windows_nat_target::resume)
10024 (get_windows_debug_event, windows_nat_target::wait)
10025 (windows_nat_target::pid_to_str)
10026 (windows_nat_target::get_tib_address)
10027 (windows_nat_target::get_ada_task_ptid)
10028 (windows_nat_target::thread_name)
10029 (windows_nat_target::thread_alive): Use lwp, not tid.
10030
2950fdf7
TT
100312020-04-08 Tom Tromey <tromey@adacore.com>
10032
10033 * windows-nat.c (handle_exception)
10034 (windows_nat_target::thread_name): Update.
10035 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10036 <name>: Now unique_xmalloc_ptr.
10037
62fe396b
TT
100382020-04-08 Tom Tromey <tromey@adacore.com>
10039
10040 * windows-nat.c (thread_rec)
10041 (windows_nat_target::fetch_registers): Update.
10042 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10043 Update comment.
10044 <debug_registers_changed, reload_context>: Now bool.
10045
e9534bd2
TT
100462020-04-08 Tom Tromey <tromey@adacore.com>
10047
10048 * windows-nat.c (windows_add_thread): Use new.
10049 (windows_init_thread_list, windows_delete_thread): Use delete.
10050 (get_windows_debug_event): Update.
10051 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10052 destructor, and initializers.
10053
ae1f8880
TT
100542020-04-08 Tom Tromey <tromey@adacore.com>
10055
10056 * windows-nat.c (struct windows_thread_info): Remove.
10057 * nat/windows-nat.h: New file.
10058
55a1e039
TT
100592020-04-08 Tom Tromey <tromey@adacore.com>
10060
10061 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10062 (thread_rec, windows_add_thread, windows_delete_thread)
10063 (windows_continue): Update.
10064
93366324
TT
100652020-04-08 Tom Tromey <tromey@adacore.com>
10066
10067 * windows-nat.c (struct windows_thread_info): Remove typedef.
10068 (thread_head): Remove.
10069 (thread_list): New global.
10070 (thread_rec, windows_add_thread, windows_init_thread_list)
10071 (windows_delete_thread, windows_continue): Update.
10072
0f2265e2
SM
100732020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10074
10075 * windows-tdep.h (windows_init_abi): Add comment.
10076 (cygwin_init_abi): New declaration.
10077 * windows-tdep.c: Split signal enumeration in two, one for
10078 Windows and one for Cygwin.
10079 (windows_gdb_signal_to_target): Only deal with signal of the
10080 Windows OS ABI.
10081 (cygwin_gdb_signal_to_target): New function.
10082 (windows_init_abi): Rename to windows_init_abi_common, don't set
10083 gdb_signal_to_target gdbarch method. Add new new function with
10084 this name.
10085 (cygwin_init_abi): New function.
10086 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10087 comment. Don't call windows_init_abi.
10088 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10089 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10090 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10091 i386_windows_init_abi_common, don't call windows_init_abi. Add
10092 a new function of this name.
10093 (i386_cygwin_init_abi): New function.
10094 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10095 OS ABI Cygwin.
10096
3810f182
SM
100972020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10098
10099 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10100 parameter.c.
10101 (dwarf2_read_gdb_index): Update.
10102
063f8e80
KR
101032020-04-07 Kamil Rytarowski <n54@gmx.com>
10104
10105 * nbsd-tdep.c: Include "objfiles.h".
10106 (nbsd_skip_solib_resolver): New.
10107 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10108
85a9510c 101092020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10110
10111 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10112 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10113 with DW_LLE_base_addressx are being emitted in DWARFv5.
10114 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10115 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10116 unsigned integer.
10117
9fc3eaae 101182020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10119
10120 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10121 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10122 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10123 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10124 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10125 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10126 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10127
10128
41144253 101292020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10130
10131 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10132 (read_loclist_index): New function definition.
10133 (lookup_loclist_base): New function definition.
10134 (read_loclist_header): New function definition.
10135 (dwarf2_cu): Add loclist_base and loclist_header field.
10136 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10137 (read_full_die_1): Read the value of DW_AT_loclists_base.
10138 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10139 (read_attribute_value): Handle DW_FORM_loclistx.
10140 (skip_one_die): Handle DW_FORM_loclistx.
10141 (loclist_header): New structure declaration.
10142 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10143
9f4e76a4
SM
101442020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10145
10146 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10147 constructor. Remove `addr` parameter from other constructor and
10148 add `per_cu` parameter.
10149 * dwarf2/read.c (create_partial_symtab): Update.
10150
25c11aca
TV
101512020-04-07 Tom de Vries <tdevries@suse.de>
10152
10153 PR symtab/25796
10154 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10155 (partial_die_info::fixup): Inherit has_const_value.
10156
5707e24b
TV
101572020-04-07 Tom de Vries <tdevries@suse.de>
10158
10159 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10160 symbols without address.
10161
05f00e22
KR
101622020-04-06 Kamil Rytarowski <n54@gmx.com>
10163
10164 * nbsd-nat.h (struct thread_info): Add forward declaration.
10165 (nbsd_nat_target::thread_alive): Add.
10166 (nbsd_nat_target::thread_name): Likewise.
10167 (nbsd_nat_target::update_thread_list): Likewise.
10168 (update_thread_list::post_attach): Likewise.
10169 (post_attach::pid_to_str): Likewise.
10170 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10171 (nbsd_thread_lister): Add.
10172 (nbsd_nat_target::thread_alive): Likewise.
10173 (nbsd_nat_target::thread_name): Likewise.
10174 (nbsd_add_threads): Likewise.
10175 (update_thread_list::post_attach): Likewise.
10176 (nbsd_nat_target::update_thread_list): Likewise.
10177 (post_attach::pid_to_str): Likewise.
10178
6ee448cc
TT
101792020-04-06 Tom Tromey <tromey@adacore.com>
10180
10181 * ada-valprint.c (print_variant_part): Extract the variant field.
10182 (print_field_values): Use the field as the outer value when
10183 recursing.
10184
dea34e8c
TT
101852020-04-06 Tom Tromey <tromey@adacore.com>
10186
10187 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10188 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10189 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10190 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10191 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10192
93689ce9
TT
101932020-04-06 Tom Tromey <tromey@adacore.com>
10194
10195 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10196 TYPE_CODE_ERROR.
10197
79743962
KR
101982020-04-06 Kamil Rytarowski <n54@gmx.com>
10199
10200 * nbsd-tdep.c: Include "gdbarch.h".
10201 Define enum with NetBSD signal numbers.
10202 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10203 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10204 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10205 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10206 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10207 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10208 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10209 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10210 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10211 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10212 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10213 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10214
9e7c9a03
HD
102152020-04-03 Hannes Domani <ssbssa@yahoo.de>
10216
10217 PR gdb/25325
10218 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10219
d9e49b61
TT
102202020-04-03 Tom Tromey <tromey@adacore.com>
10221
10222 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10223 Read constant block.
10224
e0fc5c3f
SM
102252020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10226
10227 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10228 (gdb_bfd_get_full_section_contents): New declaration.
10229 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10230 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10231 gdb_bfd_get_full_section_contents.
10232
e2ff18a0
SM
102332020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10234
10235 * exec.c (build_section_table): Replace internal_error with
10236 gdb_assert.
10237 (section_table_xfer_memory_partial): Likewise.
10238 * mdebugread.c (parse_partial_symbols): Likewise.
10239 * psymtab.c (lookup_partial_symbol): Likewise.
10240 * utils.c (wrap_here): Likewise.
10241
0830d301
TT
102422020-04-02 Tom Tromey <tromey@adacore.com>
10243
10244 * f-lang.c (build_fortran_types): Use arch_type to initialize
10245 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10246
e7da7f8f
TT
102472020-04-02 Tom Tromey <tromey@adacore.com>
10248
10249 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10250 of attributes.
10251
c90d28ac
AB
102522020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10253 Bernd Edlinger <bernd.edlinger@hotmail.de>
10254 Tom Tromey <tromey@adacore.com>
10255
10256 * buildsym.c (buildsym_compunit::record_line): Remove
10257 deduplication code.
10258
1aa98955
TV
102592020-04-02 Tom de Vries <tdevries@suse.de>
10260
10261 PR ada/24671
10262 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10263
d3214198
TV
102642020-04-02 Tom de Vries <tdevries@suse.de>
10265
10266 * dwarf2/read.c (dwarf2_gdb_index_functions,
10267 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10268 NULL.
10269 * psymtab.c (psym_lookup_global_symbol_language): New function.
10270 (psym_functions): Init psym_lookup_global_symbol_language with
10271 psym_lookup_global_symbol_language.
10272 * symfile-debug.c (debug_sym_quick_functions): Init
10273 lookup_global_symbol_language with NULL.
10274 * symfile.c (set_initial_language): Remove fixme comment.
10275 * symfile.h (struct quick_symbol_functions): Add
10276 lookup_global_symbol_language.
10277 * symtab.c (find_quick_global_symbol_language): New function.
10278 (find_main_name): Use find_quick_global_symbol_language.
10279
2836752f
SM
102802020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10281
10282 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10283
64dc2d4b
BE
102842020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10285
10286 * buildsym.c (record_line): Fix undefined behavior and preserve
10287 lines at eof.
10288
bbe3dc41
BE
102892020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10290
10291 * buildsym.c (record_line): Fix the resizing condition.
10292
6b4a335b
TT
102932020-04-01 Tom Tromey <tom@tromey.com>
10294
10295 * value.h (value_literal_complex): Add comment.
10296 * valops.c (value_literal_complex): Refer to value.h.
10297
3638a098
TT
102982020-04-01 Tom Tromey <tom@tromey.com>
10299
10300 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10301 (scalar_type): New rule, from typebase.
10302 (typebase): Use scalar_type. Recognize complex types.
10303 (field_name): Handle FLOAT_KEYWORD.
10304 (ident_tokens): Add _Complex and __complex__.
10305
c34e8714
TT
103062020-04-01 Tom Tromey <tom@tromey.com>
10307
10308 PR exp/25299:
10309 * valarith.c (promotion_type, complex_binop): New functions.
10310 (scalar_binop): Handle complex numbers. Use promotion_type.
10311 (value_pos, value_neg, value_complement): Handle complex numbers.
10312
fa649bb7
TT
103132020-04-01 Tom Tromey <tom@tromey.com>
10314
10315 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10316 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10317 (parse_number): Handle complex numbers.
10318
981c08ce
TT
103192020-04-01 Tom Tromey <tom@tromey.com>
10320
10321 * c-valprint.c (c_decorations): Change complex suffix to "i".
10322
4c99290d
TT
103232020-04-01 Tom Tromey <tom@tromey.com>
10324
10325 * valprint.c (generic_value_print_complex): Use accessors.
10326 * value.h (value_real_part, value_imaginary_part): Declare.
10327 * valops.c (value_real_part, value_imaginary_part): New
10328 functions.
10329 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10330
5b930b45
TT
103312020-04-01 Tom Tromey <tom@tromey.com>
10332
10333 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10334 (read_range_type): Update.
10335 * mdebugread.c (basic_type): Update.
10336 * go-lang.c (build_go_types): Use init_complex_type.
10337 * gdbtypes.h (struct main_type) <complex_type>: New member.
10338 (init_complex_type): Update.
10339 (arch_complex_type): Don't declare.
10340 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10341 Make name if none given. Use alloc_type_copy. Look for cached
10342 complex type.
10343 (arch_complex_type): Remove.
10344 (gdbtypes_post_init): Use init_complex_type.
10345 * f-lang.c (build_fortran_types): Use init_complex_type.
10346 * dwarf2/read.c (read_base_type): Update.
10347 * d-lang.c (build_d_types): Use init_complex_type.
10348 * ctfread.c (read_base_type): Update.
10349
53cccef1
TBA
103502020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10351
10352 * infrun.c (stop_all_threads): Update assertion, plus when
10353 stopping threads, take into account that we might be trying
10354 to stop an all-stop target.
10355 (stop_waiting): Call 'stop_all_threads' if there exists a
10356 non-stop target.
10357
a0714d30
TBA
103582020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10359
10360 * target.h (exists_non_stop_target): New function declaration.
10361 * target.c (exists_non_stop_target): New function.
10362
60e22c1e
HD
103632020-04-01 Hannes Domani <ssbssa@yahoo.de>
10364
10365 PR gdb/24789
10366 * eval.c (is_integral_or_integral_reference): New function.
10367 (evaluate_subexp_standard): Allow integer references in
10368 pointer arithmetic.
10369
e139a727
TBA
103702020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10371
10372 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10373 check for no ptid in the stop reply when the target is non-stop.
10374
e0802d59
TT
103752020-04-01 Tom Tromey <tromey@adacore.com>
10376
10377 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10378 "name" parameter to rvalue reference. Initialize m_name_holder.
10379 <lookup_name_info>: New overloads.
10380 <name>: Return gdb::string_view.
10381 <c_str>: New method.
10382 <make_ignore_params>: Update.
10383 <search_name_hash>: Update.
10384 <language_lookup_name>: Return const char *.
10385 <m_name>: Change type.
10386 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10387 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10388 (lookup_name_info::match_any): Update.
10389 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10390 Update.
10391 * minsyms.c (linkage_name_str): Update.
10392 * language.c (default_symbol_name_matcher): Update.
10393 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10394 Update.
10395 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10396 (ada_lookup_name_info::ada_lookup_name_info): Update.
10397 (literal_symbol_name_matcher): Update.
10398
8c072cb6
TT
103992020-04-01 Tom Tromey <tromey@adacore.com>
10400
10401 * psymtab.c (psymtab_search_name): Remove function.
10402 (psym_lookup_symbol): Create search name and lookup name here.
10403 (lookup_partial_symbol): Remove "name" parameter; add
10404 lookup_name.
10405 (psym_expand_symtabs_for_function): Update.
10406
6f29a534
TT
104072020-03-31 Joel Jones <joelkevinjones@gmail.com>
10408
10409 PR tui/25597:
10410 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10411
af62665e
TT
104122020-03-31 Tom Tromey <tromey@adacore.com>
10413
10414 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10415 memcpy.
10416
d1a89da5
NC
104172020-03-30 Nelson Chu <nelson.chu@sifive.com>
10418
10419 * features/riscv/32bit-csr.xml: Regenerated.
10420 * features/riscv/64bit-csr.xml: Regenerated.
10421
d8af9068
TT
104222020-03-30 Tom Tromey <tromey@adacore.com>
10423
10424 * ada-valprint.c (print_variant_part): Update.
10425 * ada-lang.h (ada_which_variant_applies): Update.
10426 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10427 outer_valaddr parameters; replace with "outer" value parameter.
10428 (to_fixed_variant_branch_type): Update.
10429
227c0bf4
PFC
104302020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10431
10432 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10433 <list>. Remove inclusion of observable.h.
10434 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10435 (struct arch_lwp_info): New struct.
10436 (class ppc_linux_dreg_interface): New class.
10437 (struct ppc_linux_process_info): New struct.
10438 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10439 <low_new_clone, low_forget_process, low_prepare_to_resume>
10440 <copy_thread_dreg_state, mark_thread_stale>
10441 <mark_debug_registers_changed, register_hw_breakpoint>
10442 <clear_hw_breakpoint, register_wp, clear_wp>
10443 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10444 <num_memory_accesses, get_trigger_type>
10445 <create_watchpoint_request, hwdebug_point_cmp>
10446 <init_arch_lwp_info, get_arch_lwp_info>
10447 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10448 methods.
10449 <struct ptid_hash>: New inner struct.
10450 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10451 members.
10452 (saved_dabr_value, hwdebug_info, max_slots_number)
10453 (struct hw_break_tuple, struct thread_points, ppc_threads)
10454 (have_ptrace_hwdebug_interface)
10455 (hwdebug_find_thread_points_by_tid)
10456 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10457 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10458 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10459 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10460 use m_dreg_interface.
10461 (hwdebug_point_cmp): Change to...
10462 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10463 reference arguments instead of pointers.
10464 (ppc_linux_nat_target::ranged_break_num_registers): Use
10465 m_dreg_interface.
10466 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10467 m_dreg_interface. Call register_hw_breakpoint.
10468 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10469 m_dreg_interface. Call clear_hw_breakpoint.
10470 (get_trigger_type): Change to...
10471 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10472 comment.
10473 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10474 use m_dreg_interface. Call register_hw_breakpoint.
10475 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10476 use m_dreg_interface. Call clear_hw_breakpoint.
10477 (can_use_watchpoint_cond_accel): Change to...
10478 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10479 method. Update comment, use m_dreg_interface and
10480 m_process_info.
10481 (calculate_dvc): Change to...
10482 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10483 m_dreg_interface.
10484 (num_memory_accesses): Change to...
10485 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10486 (check_condition): Change to...
10487 (ppc_linux_nat_target::check_condition): ...this method.
10488 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10489 comment, use m_dreg_interface.
10490 (create_watchpoint_request): Change to...
10491 (ppc_linux_nat_target::create_watchpoint_request): ...this
10492 method. Use m_dreg_interface.
10493 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10494 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10495 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10496 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10497 (ppc_linux_nat_target::low_forget_process)
10498 (ppc_linux_nat_target::low_new_fork)
10499 (ppc_linux_nat_target::low_new_clone)
10500 (ppc_linux_nat_target::low_delete_thread)
10501 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10502 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10503 only call mark_thread_stale.
10504 (ppc_linux_thread_exit): Remove.
10505 (ppc_linux_nat_target::stopped_data_address): Change to...
10506 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10507 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10508 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10509 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10510 comment. Call low_stopped_data_address.
10511 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10512 m_dreg_interface.
10513 (ppc_linux_nat_target::masked_watch_num_registers): Use
10514 m_dreg_interface.
10515 (ppc_linux_nat_target::copy_thread_dreg_state)
10516 (ppc_linux_nat_target::mark_thread_stale)
10517 (ppc_linux_nat_target::mark_debug_registers_changed)
10518 (ppc_linux_nat_target::register_hw_breakpoint)
10519 (ppc_linux_nat_target::clear_hw_breakpoint)
10520 (ppc_linux_nat_target::register_wp)
10521 (ppc_linux_nat_target::clear_wp)
10522 (ppc_linux_nat_target::init_arch_lwp_info)
10523 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10524 (_initialize_ppc_linux_nat): Remove observer callback.
10525
4db10d8f
PFC
105262020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10527
10528 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10529 (ppc_linux_nat_target::auxv_parse)
10530 (ppc_linux_nat_target::read_description)
10531 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10532 Move up.
10533
1310c1b0
PFC
105342020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10535
10536 * linux-nat.h (low_new_clone): New method.
10537 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10538
69b037c3
SM
105392020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10540
10541 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10542 (dbx_expand_psymtab): ... this.
10543 (start_psymtab): Update.
10544 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10545 (mdebug_expand_psymtab): ... this.
10546 (parse_partial_symbols): Update.
10547 (new_psymtab): Update.
10548 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10549 (xcoff_expand_psymtab): ... this.
10550 (xcoff_start_psymtab): Update.
10551
48993951
SM
105522020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10553
10554 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10555 <expand_dependencies>: ... this.
10556 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10557 (partial_symtab::expand_dependencies): ... this.
10558 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10559 Update.
10560 (dwarf2_psymtab::expand_psymtab): Update.
10561 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10562 * mdebugread.c (psymtab_to_symtab_1): Update.
10563 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10564
3ad83046
SM
105652020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10566
10567 * psympriv.h (discard_psymtab): Remove.
10568 * dbxread.c (dbx_end_psymtab): Update.
10569 * xcoffread.c (xcoff_end_psymtab): Update.
10570
4d1b9ab6
TT
105712020-03-28 Tom Tromey <tom@tromey.com>
10572
10573 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10574 comment.
10575
f1749218
TT
105762020-03-28 Tom Tromey <tom@tromey.com>
10577
10578 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10579
ebea7626
HD
105802020-03-27 Hannes Domani <ssbssa@yahoo.de>
10581
10582 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10583
a879b4d5
JB
105842020-03-26 John Baldwin <jhb@FreeBSD.org>
10585
10586 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10587
0826b30a
TT
105882020-03-26 Tom Tromey <tom@tromey.com>
10589
10590 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10591 (mark_common_block_symbol_computed, read_tag_string_type)
10592 (attr_to_dynamic_prop, read_subrange_type): Update.
10593 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10594 to be methods on struct attribute.
10595 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10596 (read_call_site_scope, partial_die_info::read)
10597 (partial_die_info::read, lookup_die_type, follow_die_ref):
10598 Update.
10599 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10600 from dwarf2_get_ref_die_offset.
10601 (attribute::constant_value): New method, from
10602 dwarf2_get_attr_constant_value.
10603 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10604 Declare method.
10605 <constant_value>: New method.
10606
2b2558bf
TT
106072020-03-26 Tom Tromey <tom@tromey.com>
10608
10609 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10610 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10611 (dwarf_type_encoding_name): Move to stringify.c.
10612 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10613 * dwarf2/stringify.c: New file.
10614 * dwarf2/stringify.h: New file.
10615
eeb64781
TT
106162020-03-26 Tom Tromey <tom@tromey.com>
10617
10618 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10619 Rewrite.
10620
a39fdb41
TT
106212020-03-26 Tom Tromey <tom@tromey.com>
10622
10623 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10624 methods.
10625 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10626 (lookup_ranges_base): Likewise.
10627 (read_cutu_die_from_dwo, read_full_die_1): Update.
10628
436c571c
TT
106292020-03-26 Tom Tromey <tom@tromey.com>
10630
10631 * dwarf2/read.c (read_import_statement, read_file_scope)
10632 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10633 (read_lexical_block_scope, read_call_site_scope)
10634 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10635 (handle_struct_member_die, process_structure_scope)
10636 (update_enumeration_type_from_children)
10637 (process_enumeration_scope, read_array_type, read_common_block)
10638 (read_namespace, read_module, read_subroutine_type): Update.
10639 (sibling_die): Remove.
10640
052c8bb8
TT
106412020-03-26 Tom Tromey <tom@tromey.com>
10642
10643 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10644 (build_type_psymtabs_reader, read_structure_type)
10645 (read_enumeration_type, read_full_die_1): Update.
10646 (dwarf2_attr_no_follow): Move to die.h.
10647 * dwarf2/die.h (struct die_info) <attr>: New method.
10648
2b24b6e4
TT
106492020-03-26 Tom Tromey <tom@tromey.com>
10650
10651 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10652 <base_address>: Now an optional.
10653 (dwarf2_find_base_address, dwarf2_rnglists_process)
10654 (dwarf2_ranges_process, fill_in_loclist_baton)
10655 (dwarf2_symbol_mark_computed): Update.
10656
c2d50fd0
TT
106572020-03-26 Tom Tromey <tom@tromey.com>
10658
10659 * dwarf2/read.c (struct die_info): Move to die.h.
10660 * dwarf2/die.h: New file.
10661
0df7ad3a
TT
106622020-03-26 Tom Tromey <tom@tromey.com>
10663
10664 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10665 * dwarf2/read.c
10666 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10667 Move to line-header.c.
10668 (read_checked_initial_length_and_offset, read_formatted_entries):
10669 Likewise.
10670 (dwarf_decode_line_header): Split into two.
10671 * dwarf2/line-header.c
10672 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10673 Move from read.c.
10674 (read_checked_initial_length_and_offset, read_formatted_entries):
10675 Likewise.
10676 (dwarf_decode_line_header): New function, split from read.c.
10677
86c0bb4c
TT
106782020-03-26 Tom Tromey <tom@tromey.com>
10679
10680 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10681 Declare method.
10682 * dwarf2/read.c (read_attribute_value): Update.
10683 (dwarf2_per_objfile::read_line_string): Rename from
10684 read_indirect_line_string.
10685 (read_formatted_entries): Update.
10686
2ef46c2f
TT
106872020-03-26 Tom Tromey <tom@tromey.com>
10688
10689 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10690 variable.
10691
4f9c1eda
TT
106922020-03-26 Tom Tromey <tom@tromey.com>
10693
10694 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10695 const.
10696 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10697 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10698 parameter const.
10699
5a0e026f
TT
107002020-03-26 Tom Tromey <tom@tromey.com>
10701
10702 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10703 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10704 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10705 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10706
8844c11b
TT
107072020-03-26 Tom Tromey <tom@tromey.com>
10708
10709 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10710 file_names_size, file_full_name, file_file_name>: Use const.
10711 <file_name_at, file_names>: Add const overload.
10712 * dwarf2/line-header.c (line_header::file_file_name)
10713 (line_header::file_full_name): Update.
10714
c90ec28a
TT
107152020-03-26 Tom Tromey <tom@tromey.com>
10716
10717 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10718 (macro_start_file, consume_improper_spaces)
10719 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10720 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10721 (dwarf_decode_macros): Move to macro.c.
10722 * dwarf2/macro.c: New file.
10723 * dwarf2/macro.h: New file.
10724 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10725
4f44ae6c
TT
107262020-03-26 Tom Tromey <tom@tromey.com>
10727
10728 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10729 method.
10730 * dwarf2/section.c: New method. From
10731 read_indirect_string_at_offset_from.
10732 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10733 (read_indirect_string_at_offset_from): Move to section.c.
10734 (read_indirect_string_at_offset): Rewrite.
10735 (read_indirect_line_string_at_offset): Remove.
10736 (read_indirect_string, read_indirect_line_string)
10737 (dwarf_decode_macro_bytes): Update.
10738
a0194fa8
TT
107392020-03-26 Tom Tromey <tom@tromey.com>
10740
10741 * dwarf2/section.h (struct dwarf2_section_info)
10742 <overload_complaint>: Declare.
10743 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10744 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10745 Rename from dwarf2_section_buffer_overflow_complaint.
10746 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10747 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10748
3d27bbdb
TT
107492020-03-26 Tom Tromey <tom@tromey.com>
10750
10751 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10752 Declare.
10753 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10754 Move from read.c.
10755 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10756 to section.c.
10757
9eac9650
TT
107582020-03-26 Tom Tromey <tom@tromey.com>
10759
10760 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10761
bf80d710
TT
107622020-03-26 Tom Tromey <tom@tromey.com>
10763
10764 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10765 "builder".
10766 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10767 parameter.
10768 (dwarf_decode_macros): Update.
10769
0314b390
TT
107702020-03-26 Tom Tromey <tom@tromey.com>
10771
10772 * dwarf2/read.c (read_attribute_value): Update.
10773 (read_indirect_string_from_dwz): Move to dwz.c; change into
10774 method.
10775 (dwarf_decode_macro_bytes): Update.
10776 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10777 * dwarf2/dwz.c: New file.
10778 * Makefile.in (COMMON_SFILES): Add dwz.c.
10779
9fda78b6
TT
107802020-03-26 Tom Tromey <tom@tromey.com>
10781
10782 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10783 * dwarf2/read.c: Add include.
10784 * dwarf2/index-write.c: Add include.
10785 * dwarf2/index-cache.c: Add include.
10786 * dwarf2/dwz.h: New file.
10787
33aa3c10
TT
107882020-03-25 Tom Tromey <tom@tromey.com>
10789
10790 * compile/compile-object-load.c (get_out_value_type): Mention
10791 correct symbol name in error message.
10792
d503b685
HD
107932020-03-25 Hannes Domani <ssbssa@yahoo.de>
10794
10795 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10796
7b1eff95
TV
107972020-03-25 Tom de Vries <tdevries@suse.de>
10798
10799 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10800 * symmisc.c (dump_symtab_1): Print user and includes fields.
10801 (maintenance_info_symtabs): Same.
10802
dd895392
AB
108032020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10804
10805 PR gdb/25534
10806 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10807 (riscv_regcache_cooked_write): New function.
10808 (riscv_push_dummy_call): Use new function.
10809 (riscv_return_value): Likewise.
10810
5ab2fbf1
SM
108112020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10812
10813 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10814 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10815 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10816 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10817 * infrun.c (follow_fork): Likewise.
10818 (follow_fork_inferior): Likewise.
10819 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10820 * linux-nat.h (class linux_nat_target): Likewise.
10821 * remote.c (class remote_target) <follow_fork>: Likewise.
10822 (remote_target::follow_fork): Likewise.
10823 * target-delegates.c: Re-generate.
10824 * target.c (default_follow_fork): Likewise.
10825 (target_follow_fork): Likewise.
10826 * target.h (struct target_ops) <follow_fork>: Likewise.
10827 (target_follow_fork): Likewise.
10828
a64fafb5
TV
108292020-03-24 Tom de Vries <tdevries@suse.de>
10830
10831 * psymtab.c (maintenance_info_psymtabs): Print user field.
10832
fe26d3a3
TT
108332020-03-20 Tom Tromey <tromey@adacore.com>
10834
10835 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10836 const.
10837 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10838 const.
10839
c884cc46
SM
108402020-03-20 Simon Marchi <simon.marchi@efficios.com>
10841
10842 * ptrace.m4: Don't check for ptrace declaration.
10843 * config.in: Re-generate.
10844 * configure: Re-generate.
10845 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10846 not defined.
10847
1ff700c2
KR
108482020-03-20 Kamil Rytarowski <n54@gmx.com>
10849
10850 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10851 `PTRACE_TYPE_RET'.
10852 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10853 * sparc-nat.c (gdb_ptrace): Likewise.
10854 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10855
f7d4f0b1
TT
108562020-03-20 Tom Tromey <tromey@adacore.com>
10857
10858 * c-exp.y (lex_one_token): Fix assert.
10859
f67210ff
TT
108602020-03-20 Tom Tromey <tromey@adacore.com>
10861
10862 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10863 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10864 strncpy call.
10865
1773be9e
TT
108662020-03-20 Tom Tromey <tromey@adacore.com>
10867
10868 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10869
70304be9
TT
108702020-03-20 Tom Tromey <tromey@adacore.com>
10871
10872 * ada-valprint.c (print_variant_part): Remove parameters; switch
10873 to value-based API.
10874 (print_field_values): Likewise.
10875 (ada_val_print_struct_union): Likewise.
10876 (ada_value_print_1): Update.
10877
9faa006d
KR
108782020-03-20 Kamil Rytarowski <n54@gmx.com>
10879
10880 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10881 nbsd_nat_target instead of inf_ptrace_target.
10882 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10883 nbsd_nat_target.
10884
4a90f062
KR
108852020-03-20 Kamil Rytarowski <n54@gmx.com>
10886
10887 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10888 it to the ptrace call.
10889 * (store_registers): Likewise.
10890
108912020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
10892
10893 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10894 it to the ptrace call.
10895 * (store_registers): Likewise.
10896
2d07da27
LM
108972020-03-19 Luis Machado <luis.machado@linaro.org>
10898
10899 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10900 valid, fetch vg value from ptrace.
10901
f09db380
KR
109022020-03-19 Kamil Rytarowski <n54@gmx.com>
10903 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10904 * inf-ptrace.c: Likewise.
10905 * (gdb_ptrace): Add.
10906 * (inf_ptrace_target::resume): Update.
10907 * (inf_ptrace_target::xfer_partial): Likewise.
10908 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10909 * (inf_ptrace_peek_poke): Update.
10910
fcc7376e
KR
109112020-03-19 Kamil Rytarowski <n54@gmx.com>
10912
10913 * x86-bsd-nat.c (gdb_ptrace): New.
10914 * (x86bsd_dr_set): Add new argument `ptid'.
10915 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10916 x86bsd_dr_set_addr): Update.
10917
cada5fc9
AB
109182020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10919
10920 * remote.c (remote_target::process_stop_reply): Handle events for
10921 all threads differently.
10922
19a2740f
AB
109232020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10924
10925 * completer.c (completion_tracker::remove_completion): Define new
10926 function.
10927 * completer.h (completion_tracker::remove_completion): Declare new
10928 function.
10929 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10930 when adding a C++ function symbol.
10931
724fd9ba
AB
109322020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10933
10934 * completer.c (completion_tracker::completion_hash_entry): Define
10935 new class.
10936 (advance_to_filename_complete_word_point): Call
10937 recompute_lowest_common_denominator.
10938 (completion_tracker::completion_tracker): Call discard_completions
10939 to setup the hash table.
10940 (completion_tracker::discard_completions): Allow for being called
10941 from the constructor, pass new equal function, and element deleter
10942 when constructing the hash table. Initialise new class member
10943 variables.
10944 (completion_tracker::maybe_add_completion): Remove use of
10945 m_entries_vec, and store more information into m_entries_hash.
10946 (completion_tracker::recompute_lcd_visitor): New function, most
10947 content taken from...
10948 (completion_tracker::recompute_lowest_common_denominator):
10949 ...here, this now just visits each item in the hash calling the
10950 above visitor.
10951 (completion_tracker::build_completion_result): Remove use of
10952 m_entries_vec, call recompute_lowest_common_denominator.
10953 * completer.h (completion_tracker::have_completions): Remove use
10954 of m_entries_vec.
10955 (completion_tracker::completion_hash_entry): Declare new class.
10956 (completion_tracker::recompute_lowest_common_denominator): Change
10957 function signature.
10958 (completion_tracker::recompute_lcd_visitor): Declare new function.
10959 (completion_tracker::m_entries_vec): Delete.
10960 (completion_tracker::m_entries_hash): Initialize to NULL.
10961 (completion_tracker::m_lowest_common_denominator_valid): New
10962 member variable.
10963 (completion_tracker::m_lowest_common_denominator_max_length): New
10964 member variable.
10965
5a82b8a1
KR
109662020-03-17 Kamil Rytarowski <n54@gmx.com>
10967
10968 * regformats/regdef.h: Put reg in gdb namespace.
10969
fb516a69
KR
109702020-03-17 Kamil Rytarowski <n54@gmx.com>
10971
10972 * i386-bsd-nat.c (gdb_ptrace): New.
10973 * (i386bsd_fetch_inferior_registers,
10974 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10975 * (i386bsd_fetch_inferior_registers,
10976 i386bsd_store_inferior_registers) Use gdb_ptrace.
10977
1c0aa1fb
KR
109782020-03-17 Kamil Rytarowski <n54@gmx.com>
10979
10980 * amd64-bsd-nat.c (gdb_ptrace): New.
10981 * (amd64bsd_fetch_inferior_registers,
10982 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10983 * (amd64bsd_fetch_inferior_registers,
10984 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10985
5ccd2fb7
KR
109862020-03-17 Kamil Rytarowski <n54@gmx.com>
10987
10988 * user-regs.c (user_reg::read): Rename to...
10989 (user_reg::xread): ...this.
10990 * (append_user_reg): Rename argument `read' to `xread'.
10991 * (user_reg_add_builtin): Likewise.
10992 * (user_reg_add): Likewise.
10993 * (value_of_user_reg): Likewise.
10994
2108a63a
KR
109952020-03-17 Kamil Rytarowski <n54@gmx.com>
10996
10997 * sparc-nat.c (gdb_ptrace): New.
10998 * sparc-nat.c (sparc_fetch_inferior_registers)
10999 (sparc_store_inferior_registers) Remove obsolete comment.
11000 * sparc-nat.c (sparc_fetch_inferior_registers)
11001 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
11002 * sparc-nat.c (sparc_fetch_inferior_registers)
11003 (sparc_store_inferior_registers) Use gdb_ptrace.
11004
a225c9a8
KR
110052020-03-17 Kamil Rytarowski <n54@gmx.com>
11006
11007 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11008 it to the ptrace call.
11009 * sh-nbsd-nat.c (store_registers): Likewise.
11010
98097623
KR
110112020-03-17 Kamil Rytarowski <n54@gmx.com>
11012
11013 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11014 nbsd_nat_target instead of inf_ptrace_target.
11015 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11016 nbsd_nat_target.
11017
9e38d619
KR
110182020-03-17 Kamil Rytarowski <n54@gmx.com>
11019
11020 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11021
a2ecbe9f
KR
110222020-03-17 Kamil Rytarowski <n54@gmx.com>
11023
11024 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11025 <sys/sysctl.h>.
11026 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11027
58990295
TV
110282020-03-17 Tom de Vries <tdevries@suse.de>
11029
11030 PR gdb/23710
11031 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11032 fields.
11033 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11034 fields.
11035 (process_imported_unit_die): Skip import of c++ CUs.
11036
771dd3a8
TT
110372020-03-16 Tom Tromey <tom@tromey.com>
11038
11039 * p-valprint.c (pascal_object_print_value): Initialize
11040 base_value.
11041
817a7585
AK
110422020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11043 Shahab Vahedi <shahab@synopsys.com>
11044
11045 * Makefile.in: Add arch/arc.o
11046 * configure.tgt: Likewise.
11047 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11048 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 11049 (arc_read_description): New function to cache target descriptions.
817a7585
AK
11050 * arc-tdep.h (arc_read_description): Add proto type.
11051 * arch/arc.c: New file.
11052 * arch/arc.h: Likewise.
11053 * features/Makefile: Replace old target descriptions with new.
11054 * features/arc-arcompact.c: Remove.
11055 * features/arc-arcompact.xml: Likewise.
11056 * features/arc-v2.c: Likewise
11057 * features/arc-v2.xml: Likewise
11058 * features/arc/aux-arcompact.xml: New file.
11059 * features/arc/aux-v2.xml: Likewise.
11060 * features/arc/core-arcompact.xml: Likewise.
11061 * features/arc/core-v2.xml: Likewise.
11062 * features/arc/aux-arcompact.c: Generate.
11063 * features/arc/aux-v2.c: Likewise.
11064 * features/arc/core-arcompact.c: Likewise.
11065 * features/arc/core-v2.c: Likewise.
11066 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11067
67430cd0
TT
110682020-03-16 Tom Tromey <tromey@adacore.com>
11069
11070 PR gdb/25663:
11071 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11072 putting value into bcache.
11073
30efb6c7
SM
110742020-03-16 Simon Marchi <simon.marchi@efficios.com>
11075
11076 PR gdb/21500
11077 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11078 to...
11079 (amd64_windows_init_abi_common): ... this. Don't set size of
11080 long type.
11081 (amd64_windows_init_abi): New function.
11082 (amd64_cygwin_init_abi): New function.
11083 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11084 the Cygwin OS ABI.
11085 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11086 comment.
11087
8db52437
SM
110882020-03-16 Simon Marchi <simon.marchi@efficios.com>
11089
11090 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11091 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11092 (pe_import_directory_entry): New struct type.
11093 (is_linked_with_cygwin_dll): New function.
11094 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11095 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11096 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11097
5982a56a
SM
110982020-03-16 Simon Marchi <simon.marchi@efficios.com>
11099
11100 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11101 i386_cygwin_core_osabi_sniffer.
11102
7a1998df
SM
111032020-03-16 Simon Marchi <simon.marchi@efficios.com>
11104
11105 * i386-cygwin-tdep.c: Rename to...
11106 * i386-windows-tdep.c: ... this.
11107 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11108 i386-windows-tdep.c.
11109 * configure.tgt: Likewise.
11110
053205cc
SM
111112020-03-16 Simon Marchi <simon.marchi@efficios.com>
11112
11113 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11114 * osabi.c (gdb_osabi_names): Add "Windows".
11115 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11116 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11117 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11118 i386_cygwin_osabi_sniffer.
11119 (_initialize_i386_cygwin_tdep): Register OS ABI
11120 GDB_OSABI_WINDOWS for i386.
11121 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11122 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11123 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11124 for x86-64.
11125 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11126 when the target matches '*-*-mingw*'.
11127
fe4b2ee6
SM
111282020-03-16 Simon Marchi <simon.marchi@efficios.com>
11129
11130 * defs.h (enum gdb_osabi): Move to...
11131 * osabi.h (enum gdb_osabi): ... here.
11132 * gdbarch.sh: Include osabi.h in gdbarch.h.
11133 * gdbarch.h: Re-generate.
11134
cb9b645d
SM
111352020-03-16 Simon Marchi <simon.marchi@efficios.com>
11136
11137 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11138 function.
11139 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11140
3293bbaf
TT
111412020-03-14 Tom Tromey <tom@tromey.com>
11142
11143 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11144 for C++.
11145 (c_type_print_modifier): Likewise. Add "language" parameter.
11146 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11147 (c_type_print_base_1): Update.
11148 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11149 constants.
11150 * type-stack.c (type_stack::insert): Handle tp_atomic and
11151 tp_restrict.
11152 (type_stack::follow_type_instance_flags): Likewise.
11153 (type_stack::follow_types): Likewise. Merge type-following code.
11154 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11155 (space_identifier, cv_with_space_id)
11156 (const_or_volatile_or_space_identifier_noopt)
11157 (const_or_volatile_or_space_identifier): Remove.
11158 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11159 rules.
11160 (ptr_operator, typebase): Update.
11161 (enum token_flag) <FLAG_C>: New constant.
11162 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11163 "_Atomic".
11164 (lex_one_token): Handle FLAG_C.
11165
154151a6
KR
111662020-03-14 Kamil Rytarowski <n54@gmx.com>
11167
11168 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11169 it to the ptrace call.
11170 * m68k-bsd-nat.c (store_registers): Likewise.
11171
bc107784
KR
111722020-03-14 Kamil Rytarowski <n54@gmx.com>
11173
11174 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11175 gdb_byte *.
11176 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11177 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11178 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11179
01a80117
KR
111802020-03-14 Kamil Rytarowski <n54@gmx.com>
11181
11182 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11183 nbsd_nat_target instead of inf_ptrace_target.
11184 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11185 nbsd_nat_target.
11186
f90280ca
KR
111872020-03-14 Kamil Rytarowski <n54@gmx.com>
11188
11189 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11190 register_t.
11191
6def66f1
KR
111922020-03-14 Kamil Rytarowski <n54@gmx.com>
11193
11194 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11195 it to the ptrace call.
11196 * alpha-bsd-nat.c (store_registers): Likewise.
11197
66eaca97
KR
111982020-03-14 Kamil Rytarowski <n54@gmx.com>
11199
11200 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11201 includes.
11202 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11203 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11204 fill_fpregset): Likewise.
11205
4fed520b
KR
112062020-03-14 Kamil Rytarowski <n54@gmx.com>
11207
11208 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11209 nbsd_nat_target instead of inf_ptrace_target.
11210 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11211 nbsd_nat_target.
11212
2190cf06
KR
112132020-03-14 Kamil Rytarowski <n54@gmx.com>
11214
11215 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11216 register_t.
11217
75c56d3d
KR
112182020-03-14 Kamil Rytarowski <n54@gmx.com>
11219
11220 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11221 it to the ptrace call.
11222 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11223 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11224 * arm-nbsd-nat.c (store_register): Likewise.
11225 * arm-nbsd-nat.c (store_regs): Likewise.
11226 * arm-nbsd-nat.c (store_fp_register): Likewise.
11227 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11228
6018d381
KR
112292020-03-14 Kamil Rytarowski <n54@gmx.com>
11230
11231 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11232 nbsd_nat_target instead of inf_ptrace_target.
11233 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11234 nbsd_nat_target.
11235
013f99f0
KR
112362020-03-14 Kamil Rytarowski <n54@gmx.com>
11237
11238 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11239 it to the ptrace call.
11240 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11241
12753073
KR
112422020-03-14 Kamil Rytarowski <n54@gmx.com>
11243
6227b330
KR
11244 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11245 it to the ptrace call.
11246 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11247
112482020-03-14 Kamil Rytarowski <n54@gmx.com>
11249
11250 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11251 gdb_byte *.
12753073
KR
11252 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11253
d5be5fa4
KR
112542020-03-14 Kamil Rytarowski <n54@gmx.com>
11255
11256 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11257 instead of inf_ptrace_target.
11258 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11259 nbsd_nat_target.
11260
8110f842
KR
112612020-03-14 Kamil Rytarowski <n54@gmx.com>
11262
11263 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11264 register_t.
11265
52feded7
KR
112662020-03-14 Kamil Rytarowski <n54@gmx.com>
11267
11268 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11269 register_t.
11270
25567eee
KR
112712020-03-14 Kamil Rytarowski <n54@gmx.com>
11272
11273 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11274 register_t.
11275
426a9c18
TT
112762020-03-13 Tom Tromey <tom@tromey.com>
11277
11278 * value.h (val_print): Don't declare.
11279 * valprint.h (val_print_array_elements)
11280 (val_print_scalar_formatted, generic_val_print): Don't declare.
11281 * valprint.c (generic_val_print_array): Take a struct value.
11282 (generic_val_print_ptr, generic_val_print_memberptr)
11283 (generic_val_print_bool, generic_val_print_int)
11284 (generic_val_print_char, generic_val_print_complex)
11285 (generic_val_print): Remove.
11286 (generic_value_print): Update.
11287 (do_val_print): Remove unused parameters. Don't call
11288 la_val_print.
11289 (val_print): Remove.
11290 (common_val_print): Update. Don't call value_check_printable.
11291 (val_print_scalar_formatted, val_print_array_elements): Remove.
11292 * rust-lang.c (rust_val_print): Remove.
11293 (rust_language_defn): Update.
11294 * p-valprint.c (pascal_val_print): Remove.
11295 (pascal_value_print_inner): Update.
11296 (pascal_object_print_val_fields, pascal_object_print_val):
11297 Remove.
11298 (pascal_object_print_static_field): Update.
11299 * p-lang.h (pascal_val_print): Don't declare.
11300 * p-lang.c (pascal_language_defn): Update.
11301 * opencl-lang.c (opencl_language_defn): Update.
11302 * objc-lang.c (objc_language_defn): Update.
11303 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11304 * m2-lang.h (m2_val_print): Don't declare.
11305 * m2-lang.c (m2_language_defn): Update.
11306 * language.h (struct language_defn) <la_val_print>: Remove.
11307 * language.c (unk_lang_value_print_inner): Rename. Change
11308 argument types.
11309 (unknown_language_defn, auto_language_defn): Update.
11310 * go-valprint.c (go_val_print): Remove.
11311 * go-lang.h (go_val_print): Don't declare.
11312 * go-lang.c (go_language_defn): Update.
11313 * f-valprint.c (f_val_print): Remove.
11314 * f-lang.h (f_value_print): Don't declare.
11315 * f-lang.c (f_language_defn): Update.
11316 * d-valprint.c (d_val_print): Remove.
11317 * d-lang.h (d_value_print): Don't declare.
11318 * d-lang.c (d_language_defn): Update.
11319 * cp-valprint.c (cp_print_value_fields)
11320 (cp_print_value_fields_rtti, cp_print_value): Remove.
11321 (cp_print_static_field): Update.
11322 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11323 (c_val_print_struct, c_val_print_union, c_val_print_int)
11324 (c_val_print_memberptr, c_val_print): Remove.
11325 * c-lang.h (c_val_print_array, cp_print_value_fields)
11326 (cp_print_value_fields_rtti): Don't declare.
11327 * c-lang.c (c_language_defn, cplus_language_defn)
11328 (asm_language_defn, minimal_language_defn): Update.
11329 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11330 (ada_val_print_enum): Take a struct value.
11331 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11332 (ada_val_print): Remove.
11333 (ada_value_print_1): Update.
11334 (printable_val_type): Remove.
11335 * ada-lang.h (ada_val_print): Don't declare.
11336 * ada-lang.c (ada_language_defn): Update.
11337
42331a1e
TT
113382020-03-13 Tom Tromey <tom@tromey.com>
11339
11340 * valprint.c (do_val_print): Update.
11341 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11342 a struct value.
11343 (value_to_value_object_no_release): Declare.
11344 * python/py-value.c (value_to_value_object_no_release): New
11345 function.
11346 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11347 struct value.
11348 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11349 function.
11350 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11351 a struct value.
11352 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11353 Declare.
11354 (gdbscm_apply_val_pretty_printer): Take a struct value.
11355 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11356 value.
11357 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11358 value.
11359 * extension-priv.h (struct extension_language_ops)
11360 <apply_val_pretty_printer>: Take a struct value.
11361 * cp-valprint.c (cp_print_value): Create a struct value.
11362 (cp_print_value): Update.
11363
3a916a97
TT
113642020-03-13 Tom Tromey <tom@tromey.com>
11365
11366 * ada-valprint.c (print_field_values): Call common_val_print.
11367
b59eac37
TT
113682020-03-13 Tom Tromey <tom@tromey.com>
11369
11370 * ada-valprint.c (val_print_packed_array_elements): Remove
11371 bitoffset and val parameters. Call common_val_print.
11372 (ada_val_print_string): Remove offset, address, and original_value
11373 parameters.
11374 (ada_val_print_array): Update.
11375 (ada_value_print_array): New function.
11376 (ada_value_print_1): Call it.
11377
03371129
TT
113782020-03-13 Tom Tromey <tom@tromey.com>
11379
11380 * ada-valprint.c (ada_value_print): Use common_val_print.
11381
2e088f8b
TT
113822020-03-13 Tom Tromey <tom@tromey.com>
11383
11384 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11385
39ef85a8
TT
113862020-03-13 Tom Tromey <tom@tromey.com>
11387
11388 * ada-valprint.c (ada_value_print_num): New function.
11389 (ada_value_print_1): Use it.
11390
b9fa6e07
TT
113912020-03-13 Tom Tromey <tom@tromey.com>
11392
11393 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11394
416595d6
TT
113952020-03-13 Tom Tromey <tom@tromey.com>
11396
11397 * ada-valprint.c (ada_value_print_ptr): New function.
11398 (ada_value_print_1): Use it.
11399
5b5e15ec
TT
114002020-03-13 Tom Tromey <tom@tromey.com>
11401
11402 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11403 call common_val_print.
11404 (ada_val_print_1): Update.
11405 (ada_value_print_1): New function.
11406 (ada_value_print_inner): Rewrite.
11407
fbf54e75
TT
114082020-03-13 Tom Tromey <tom@tromey.com>
11409
11410 * cp-valprint.c (cp_print_value_fields): Update.
11411 (cp_print_value): New function.
11412
64b653ca
TT
114132020-03-13 Tom Tromey <tom@tromey.com>
11414
11415 * m2-valprint.c (m2_value_print_inner): Use
11416 cp_print_value_fields.
11417 * cp-valprint.c (cp_print_value_fields): New function.
11418 * c-valprint.c (c_value_print_struct): New function.
11419 (c_value_print_inner): Use c_value_print_struct.
11420 * c-lang.h (cp_print_value_fields): Declare.
11421
6999f067
TT
114222020-03-13 Tom Tromey <tom@tromey.com>
11423
11424 * c-valprint.c (c_value_print_array): New function.
11425 (c_value_print_inner): Use it.
11426
ce80b8bd
TT
114272020-03-13 Tom Tromey <tom@tromey.com>
11428
11429 * c-valprint.c (c_value_print_memberptr): New function.
11430 (c_value_print_inner): Use it.
11431
2faac269
TT
114322020-03-13 Tom Tromey <tom@tromey.com>
11433
11434 * c-valprint.c (c_value_print_int): New function.
11435 (c_value_print_inner): Use it.
11436
da3e2c29
TT
114372020-03-13 Tom Tromey <tom@tromey.com>
11438
11439 * c-valprint.c (c_value_print_ptr): New function.
11440 (c_value_print_inner): Use it.
11441
50836231
TT
114422020-03-13 Tom Tromey <tom@tromey.com>
11443
11444 * c-valprint.c (c_value_print_inner): Rewrite.
11445
4f412b6e
TT
114462020-03-13 Tom Tromey <tom@tromey.com>
11447
11448 * valprint.c (generic_value_print_complex): New function.
11449 (generic_value_print): Use it.
11450
f5354008
TT
114512020-03-13 Tom Tromey <tom@tromey.com>
11452
11453 * valprint.c (generic_val_print_float): Don't call
11454 val_print_scalar_formatted.
11455 (generic_val_print, generic_value_print): Update.
11456
3eec3b05
TT
114572020-03-13 Tom Tromey <tom@tromey.com>
11458
11459 * valprint.c (generic_value_print_char): New function
11460 (generic_value_print): Use it.
11461
fdddfccb
TT
114622020-03-13 Tom Tromey <tom@tromey.com>
11463
11464 * valprint.c (generic_value_print_int): New function.
11465 (generic_value_print): Use it.
11466
6dde7521
TT
114672020-03-13 Tom Tromey <tom@tromey.com>
11468
11469 * valprint.c (generic_value_print_bool): New function.
11470 (generic_value_print): Use it.
11471
4112d2e6
TT
114722020-03-13 Tom Tromey <tom@tromey.com>
11473
11474 * valprint.c (generic_val_print_func): Simplify.
11475 (generic_val_print, generic_value_print): Update.
11476
65786af6
TT
114772020-03-13 Tom Tromey <tom@tromey.com>
11478
11479 * valprint.c (generic_val_print_flags): Remove.
11480 (generic_val_print, generic_value_print): Update.
11481 (val_print_type_code_flags): Add original_value parameter.
11482
40f3ce18
TT
114832020-03-13 Tom Tromey <tom@tromey.com>
11484
11485 * valprint.c (generic_val_print): Update.
11486 (generic_value_print): Update.
11487 * valprint.c (generic_val_print_enum): Don't call
11488 val_print_scalar_formatted.
11489
2a5b130b
TT
114902020-03-13 Tom Tromey <tom@tromey.com>
11491
11492 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11493 * valprint.c (generic_value_print_ptr): New function.
11494
abc66ce9
TT
114952020-03-13 Tom Tromey <tom@tromey.com>
11496
11497 * valprint.c (generic_value_print): Rewrite.
11498
07a32858
TT
114992020-03-13 Tom Tromey <tom@tromey.com>
11500
11501 * p-valprint.c (pascal_object_print_value_fields)
11502 (pascal_object_print_value): New functions.
11503
64d64d3a
TT
115042020-03-13 Tom Tromey <tom@tromey.com>
11505
11506 * p-valprint.c (pascal_value_print_inner): Rewrite.
11507
6a95a1f5
TT
115082020-03-13 Tom Tromey <tom@tromey.com>
11509
11510 * f-valprint.c (f_value_print_innner): Rewrite.
11511
59fcdac6
TT
115122020-03-13 Tom Tromey <tom@tromey.com>
11513
11514 * m2-valprint.c (m2_print_unbounded_array): New overload.
11515 (m2_print_unbounded_array): Update.
11516 (m2_print_array_contents): Take a struct value.
11517 (m2_value_print_inner): Rewrite.
11518
d133c3e1
TT
115192020-03-13 Tom Tromey <tom@tromey.com>
11520
11521 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11522 (d_value_print_inner): New function.
11523 * d-lang.h (d_value_print_inner): Declare.
11524 * d-lang.c (d_language_defn): Use d_value_print_inner.
11525
23b0f06b
TT
115262020-03-13 Tom Tromey <tom@tromey.com>
11527
11528 * go-valprint.c (go_value_print_inner): New function.
11529 * go-lang.h (go_value_print_inner): Declare.
11530 * go-lang.c (go_language_defn): Use go_value_print_inner.
11531
5f56f7cb
TT
115322020-03-13 Tom Tromey <tom@tromey.com>
11533
11534 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11535 API.
11536 (rust_val_print): Rewrite.
11537 (rust_value_print_inner): New function, from rust_val_print.
11538 (rust_language_defn): Use rust_value_print_inner.
11539
26792ee0
TT
115402020-03-13 Tom Tromey <tom@tromey.com>
11541
11542 * ada-valprint.c (ada_value_print_inner): New function.
11543 * ada-lang.h (ada_value_print_inner): Declare.
11544 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11545
24051bbe
TT
115462020-03-13 Tom Tromey <tom@tromey.com>
11547
11548 * f-valprint.c (f_value_print_innner): New function.
11549 * f-lang.h (f_value_print_innner): Declare.
11550 * f-lang.c (f_language_defn): Use f_value_print_innner.
11551
c0941be6
TT
115522020-03-13 Tom Tromey <tom@tromey.com>
11553
11554 * p-valprint.c (pascal_value_print_inner): New function.
11555 * p-lang.h (pascal_value_print_inner): Declare.
11556 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11557
62c4663d
TT
115582020-03-13 Tom Tromey <tom@tromey.com>
11559
11560 * m2-valprint.c (m2_value_print_inner): New function.
11561 * m2-lang.h (m2_value_print_inner): Declare.
11562 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11563
62182190
TT
115642020-03-13 Tom Tromey <tom@tromey.com>
11565
11566 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11567 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11568 * c-valprint.c (c_value_print_inner): New function.
11569 * c-lang.h (c_value_print_inner): Declare.
11570 * c-lang.c (c_language_defn, cplus_language_defn)
11571 (asm_language_defn, minimal_language_defn): Use
11572 c_value_print_inner.
11573
1e592a8a
TT
115742020-03-13 Tom Tromey <tom@tromey.com>
11575
11576 * p-valprint.c (pascal_object_print_value_fields): Now static.
11577 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11578
7fe471e9
TT
115792020-03-13 Tom Tromey <tom@tromey.com>
11580
11581 * c-valprint.c (c_val_print_array): Simplify.
11582
d121c6ce
TT
115832020-03-13 Tom Tromey <tom@tromey.com>
11584
11585 * valprint.c (value_print_array_elements): New function.
11586 * valprint.h (value_print_array_elements): Declare.
11587
4dba70ee
TT
115882020-03-13 Tom Tromey <tom@tromey.com>
11589
11590 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11591 * mips-tdep.c (mips_print_register): Use
11592 value_print_scalar_formatted.
11593
4f9ae810
TT
115942020-03-13 Tom Tromey <tom@tromey.com>
11595
11596 * valprint.h (value_print_scalar_formatted): Declare.
11597 * valprint.c (value_print_scalar_formatted): New function.
11598
156bfec9
TT
115992020-03-13 Tom Tromey <tom@tromey.com>
11600
11601 * valprint.h (generic_value_print): Declare.
11602 * valprint.c (generic_value_print): New function.
11603
2b4e573d
TT
116042020-03-13 Tom Tromey <tom@tromey.com>
11605
11606 * valprint.c (do_val_print): Call la_value_print_inner, if
11607 available.
11608 * rust-lang.c (rust_language_defn): Update.
11609 * p-lang.c (pascal_language_defn): Update.
11610 * opencl-lang.c (opencl_language_defn): Update.
11611 * objc-lang.c (objc_language_defn): Update.
11612 * m2-lang.c (m2_language_defn): Update.
11613 * language.h (struct language_defn) <la_value_print_inner>: New
11614 member.
11615 * language.c (unknown_language_defn, auto_language_defn): Update.
11616 * go-lang.c (go_language_defn): Update.
11617 * f-lang.c (f_language_defn): Update.
11618 * d-lang.c (d_language_defn): Update.
11619 * c-lang.c (c_language_defn, cplus_language_defn)
11620 (asm_language_defn, minimal_language_defn): Update.
11621 * ada-lang.c (ada_language_defn): Update.
11622
a1f6a07c
TT
116232020-03-13 Tom Tromey <tom@tromey.com>
11624
11625 * c-valprint.c (c_value_print): Use common_val_print.
11626
410cf315
TT
116272020-03-13 Tom Tromey <tom@tromey.com>
11628
11629 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11630
72a45c93
TT
116312020-03-13 Tom Tromey <tom@tromey.com>
11632
11633 * f-valprint.c (f77_print_array_1, f_val_print): Use
11634 common_val_print.
11635
040f66bd
TT
116362020-03-13 Tom Tromey <tom@tromey.com>
11637
11638 * riscv-tdep.c (riscv_print_one_register_info): Use
11639 common_val_print.
11640
a6e05a6c
TT
116412020-03-13 Tom Tromey <tom@tromey.com>
11642
11643 * mi/mi-main.c (output_register): Use common_val_print.
11644
3444c526
TT
116452020-03-13 Tom Tromey <tom@tromey.com>
11646
11647 * infcmd.c (default_print_one_register_info): Use
11648 common_val_print.
11649
c2a44efe
TT
116502020-03-13 Tom Tromey <tom@tromey.com>
11651
11652 * valprint.h (common_val_print_checked): Declare.
11653 * valprint.c (common_val_print_checked): New function.
11654 * stack.c (print_frame_arg): Use common_val_print_checked.
11655
b0c26e99
TT
116562020-03-13 Tom Tromey <tom@tromey.com>
11657
11658 * valprint.c (do_val_print): New function, from val_print.
11659 (val_print): Use do_val_print.
11660 (common_val_print): Use do_val_print.
11661
ce3acbe9
TT
116622020-03-13 Tom Tromey <tom@tromey.com>
11663
11664 * valprint.c (value_print): Use scoped_value_mark.
11665
96c7f873
TV
116662020-03-13 Tom de Vries <tdevries@suse.de>
11667
11668 PR symtab/25646
11669 * psymtab.c (partial_symtab::partial_symtab): Don't set
11670 globals_offset and statics_offset. Push element onto
11671 current_global_psymbols and current_static_psymbols stacks.
11672 (concat): New function.
11673 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11674 element from current_global_psymbols and current_static_psymbols
11675 stacks. Concat popped elements to global_psymbols and
11676 static_symbols.
11677 (add_psymbol_to_list): Use current_global_psymbols and
11678 current_static_psymbols stacks.
11679 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11680 current_static_psymbols fields.
11681
6ba0a321
CB
116822020-03-12 Christian Biesinger <cbiesinger@google.com>
11683
11684 * corelow.c (sniff_core_bfd): Remove.
11685 (class core_target) <m_core_vec>: Remove.
11686 (core_target::core_target): Update.
11687 (core_file_fns): Remove.
11688 (deprecated_add_core_fns): Remove.
11689 (default_core_sniffer): Remove.
11690 (sniff_core_bfd): Remove.
11691 (default_check_format): Remove.
11692 (gdb_check_format): Remove.
11693 (core_target_open): Update.
11694 (core_target::get_core_register_section): Update.
11695 (get_core_registers_cb): Update.
11696 (core_target::fetch_registers): Update.
11697 * gdbcore.h (struct core_fns): Remove.
11698 (deprecated_add_core_fns): Remove.
11699 (default_core_sniffer): Remove.
11700 (default_check_format): Remove.
11701
227031b2
TT
117022020-03-12 Tom Tromey <tom@tromey.com>
11703
11704 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11705 CORE_ADDR.
11706 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11707
53807e9f
TT
117082020-03-12 Tom Tromey <tom@tromey.com>
11709
11710 * remote.c (remote_target::download_tracepoint)
11711 (remote_target::enable_tracepoint)
11712 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11713 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11714 sprintf_vma.
11715
64f25102
TT
117162020-03-12 Tom Tromey <tom@tromey.com>
11717
11718 * symfile-mem.c: Update CORE_ADDR size assert.
11719
272cd5a3
SM
117202020-03-12 Simon Marchi <simon.marchi@efficios.com>
11721
11722 * selftest.m4: Move to gdbsupport/.
11723 * acinclude.m4: Update path to selftest.m4.
11724
74cd3f9d
SM
117252020-03-12 Simon Marchi <simon.marchi@efficios.com>
11726
11727 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11728 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11729 gdbarch-selfselftests.c and selftest-arch.c.
11730 (SUBDIR_UNITTESTS_OBS): Rename to...
11731 (SELFTESTS_OBS): ... this.
11732 (COMMON_SFILES): Remove disasm-selftests.c and
11733 gdbarch-selftests.c.
11734 * configure.ac: Don't add selftest-arch.{c,o} to
11735 CONFIG_{SRCS,OBS}.
11736 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11737 preprocessor conditions.
11738
db6878ac
SM
117392020-03-12 Simon Marchi <simon.marchi@efficios.com>
11740
11741 * configure.ac: Don't source bfd/development.sh.
11742 * selftest.m4: Modify comment.
11743 * configure: Re-generate.
11744
4d696a5c
SM
117452020-03-12 Simon Marchi <simon.marchi@efficios.com>
11746
11747 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11748 not "true" or "false".
11749 * configure: Re-generate.
11750
8dd8e1c7
CB
117512020-03-12 Christian Biesinger <cbiesinger@google.com>
11752
11753 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11754 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11755 renamed to arm_nbsd_supply_gregset.
11756 (fetch_register): Update to call arm_nbsd_supply_gregset.
11757 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11758 (arm_netbsd_nat_target::fetch_registers): Update.
11759 (fetch_elfcore_registers): Removed.
11760 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11761 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11762 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11763 not require NetBSD system headers.
11764 (arm_nbsd_regset): New struct.
11765 (arm_nbsd_iterate_over_regset_sections): New function.
11766 (arm_netbsd_init_abi_common): Updated to call
11767 set_gdbarch_iterate_over_regset_sections.
11768 * arm-nbsd-tdep.h: New file.
11769
dd69bf7a
KB
117702020-03-11 Kevin Buettner <kevinb@redhat.com>
11771
11772 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11773 recursion.
11774
a0761e34
SM
117752020-03-11 Simon Marchi <simon.marchi@efficios.com>
11776
11777 * configure: Re-generate.
11778
e7a82140
TT
117792020-03-11 Tom Tromey <tromey@adacore.com>
11780
11781 * ada-typeprint.c (print_choices): Fix comment.
11782
dcc050c8
AB
117832020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11784
11785 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11786 previous item in the list, when the list has no items.
11787
1c33af77
TV
117882020-03-11 Tom de Vries <tdevries@suse.de>
11789
11790 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11791 PROP_LOCLIST handling code.
11792
8c95582d
AB
117932020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11794
11795 * buildsym-legacy.c (record_line): Pass extra parameter to
11796 record_line.
11797 * buildsym.c (buildsym_compunit::record_line): Take an extra
11798 parameter, reduce duplication in the line table, and record the
11799 is_stmt flag in the line table.
11800 * buildsym.h (buildsym_compunit::record_line): Add extra
11801 parameter.
11802 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11803 non-statement lines.
11804 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11805 this to the symtab builder.
11806 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11807 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11808 through to dwarf_record_line_1.
11809 * infrun.c (process_event_stop_test): When stepping, don't stop at
11810 a non-statement instruction, and only refresh the step info when
11811 we land in the middle of a line's range. Also add an extra
11812 comment.
11813 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11814 field.
11815 * record-btrace.c (btrace_find_line_range): Only record lines
11816 marked as is-statement.
11817 * stack.c (frame_show_address): Show the frame address if we are
11818 in a non-statement sal.
11819 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11820 (maintenance_print_one_line_table): Print a header for the is_stmt
11821 column, and include is_stmt information in the output.
11822 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11823 preference to non-statements.
11824 (find_pcs_for_symtab_line): Prefer is-statement entries.
11825 (find_line_common): Likewise.
11826 * symtab.h (struct linetable_entry): Add is_stmt field.
11827 (struct symtab_and_line): Likewise.
11828 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11829 arranging the line table.
11830
e4003a34
TV
118312020-03-07 Tom de Vries <tdevries@suse.de>
11832
11833 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11834 DIE.
11835
e8932576
TT
118362020-03-07 Tom Tromey <tom@tromey.com>
11837
11838 * valops.c (value_literal_complex): Remove obsolete comment.
11839 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11840 comment.
11841
29734269
SM
118422020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11843
11844 * infrun.h: Forward-declare thread_info.
11845 (set_step_info): Add thread_info parameter, add doc.
11846 * infrun.c (set_step_info): Add thread_info parameter, move doc
11847 to header.
11848 * infrun.c (process_event_stop_test): Pass thread to
11849 set_step_info call.
11850 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11851 set_step_info.
11852 (prepare_one_step): Add thread_info parameter, pass it to
11853 set_step_frame and prepare_one_step (recursive) call.
11854 (step_1): Pass thread to prepare_one_step call.
11855 (step_command_fsm::should_stop): Pass thread to
11856 prepare_one_step.
11857 (until_next_fsm): Pass thread to set_step_frame call.
11858 (finish_command): Pass thread to set_step_info call.
11859
b7d64b29
HD
118602020-03-06 Hannes Domani <ssbssa@yahoo.de>
11861
11862 * windows-tdep.c (windows_solib_create_inferior_hook):
11863 Check if inferior is running.
11864
09f2921c
TV
118652020-03-06 Tom de Vries <tdevries@suse.de>
11866
11867 * NEWS: Fix "the the".
11868 * ctfread.c: Same.
11869
fd760e79
TV
118702020-03-06 Tom de Vries <tdevries@suse.de>
11871
11872 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11873
20ea4a60
AB
118742020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11875
11876 * .dir-locals.el: Add a comment referencing the other copies of
11877 this file.
11878
0afbabf0
JB
118792020-03-05 John Baldwin <jhb@FreeBSD.org>
11880
11881 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11882 psargs.
11883
842806cb
TBA
118842020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11885
11886 * .gitattributes: New file.
11887
be1e3d3e
TT
118882020-03-04 Tom Tromey <tom@tromey.com>
11889
11890 * symmisc.c (print_symbol_bcache_statistics)
11891 (print_objfile_statistics): Update.
11892 * symfile.c (allocate_symtab): Use intern.
11893 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11894 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11895 macro_cache>: Remove.
11896 <string_cache>: New member.
11897 (struct objfile) <intern>: New methods.
11898 * elfread.c (elf_symtab_read): Use intern.
11899 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11900 (dwarf2_compute_name, dwarf2_physname)
11901 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11902 names.
11903 (guess_partial_die_structure_name): Update.
11904 (partial_die_info::fixup): Intern name.
11905 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11906 name.
11907 (dwarf2_name): Intern name. Update.
11908 * buildsym.c (buildsym_compunit::get_macro_table): Use
11909 string_cache.
11910
4e7625fd
TT
119112020-03-04 Tom Tromey <tom@tromey.com>
11912
11913 * jit.c (bfd_open_from_target_memory): Make "target" const.
11914 * corefile.c (gnutarget): Now const.
11915 * gdbcore.h (gnutarget): Now const.
11916
46f9f931
HD
119172020-03-04 Hannes Domani <ssbssa@yahoo.de>
11918
11919 * NEWS: Mention support for WOW64 processes.
11920 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11921 (amd64_windows_segment_register_p): Remove static.
11922 (_initialize_amd64_windows_nat): Update.
11923 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11924 * i386-windows-nat.c (context_offset): Update.
11925 (i386_mappings): Rename and remove static.
11926 (i386_windows_segment_register_p): Remove static.
11927 (_initialize_i386_windows_nat): Update.
11928 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11929 (STATUS_WX86_SINGLE_STEP): New macro.
11930 (EnumProcessModulesEx): New macro.
11931 (Wow64SuspendThread): New macro.
11932 (Wow64GetThreadContext): New macro.
11933 (Wow64SetThreadContext): New macro.
11934 (Wow64GetThreadSelectorEntry): New macro.
11935 (windows_set_context_register_offsets): Add static.
11936 (windows_set_segment_register_p): Likewise.
11937 (windows_add_thread): Adapt for WOW64 processes.
11938 (windows_fetch_one_register): Likewise.
11939 (windows_nat_target::fetch_registers): Likewise.
11940 (windows_store_one_register): Likewise.
11941 (display_selector): Likewise.
11942 (display_selectors): Likewise.
11943 (handle_exception): Likewise.
11944 (windows_continue): Likewise.
11945 (windows_nat_target::resume): Likewise.
11946 (windows_add_all_dlls): Likewise.
11947 (do_initial_windows_stuff): Likewise.
11948 (windows_nat_target::attach): Likewise.
11949 (windows_get_exec_module_filename): Likewise.
11950 (windows_nat_target::create_inferior): Likewise.
11951 (windows_xfer_siginfo): Likewise.
11952 (_initialize_loadable): Initialize Wow64SuspendThread,
11953 Wow64GetThreadContext, Wow64SetThreadContext,
11954 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11955 * windows-nat.h (windows_set_context_register_offsets):
11956 Remove declaration.
11957 (windows_set_segment_register_p): Likewise.
11958 (i386_windows_segment_register_p): Add declaration.
11959 (amd64_windows_segment_register_p): Likewise.
11960
440cf44e
LM
119612020-03-04 Luis Machado <luis.machado@linaro.org>
11962
11963 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11964 in "info registers" for AArch64/ARM.
11965
11966 The change caused "info registers" to not print GPR's.
11967
11968 gdb/ChangeLog:
11969
11970 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11971
11972 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11973 when reg->group is empty and reggroup is not.
11974
1009d92f
TT
119752020-03-03 Tom Tromey <tromey@adacore.com>
11976
11977 * dwarf2/frame.c (struct dwarf2_frame_cache)
11978 <checked_tailcall_bottom, entry_cfa_sp_offset,
11979 entry_cfa_sp_offset_p>: Remove members.
11980 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11981 (dwarf2_frame_prev_register): Don't call
11982 dwarf2_tailcall_sniffer_first.
11983 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11984 * frame-unwind.c (add_unwinder): New fuction.
11985 (frame_unwind_init): Use it. Add tailcall unwinder.
11986
5e5d66b6
AB
119872020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11988 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11989
11990 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11991 value should be printed as true.
11992
584cf46d
HD
119932020-03-03 Hannes Domani <ssbssa@yahoo.de>
11994
11995 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11996 (windows_init_abi): Set and use windows_so_ops.
11997
7b973adc
SDJ
119982020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11999
12000 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
12001 when verifying if dealing with a convenience variable.
12002
bb7b70ab
LM
120032020-03-03 Luis Machado <luis.machado@linaro.org>
12004
12005 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12006
9822cb57
SM
120072020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12008
12009 * infrun.c (gdbarch_supports_displaced_stepping): New.
12010 (use_displaced_stepping): Break up conditions in smaller pieces.
12011 Use gdbarch_supports_displaced_stepping.
12012 (displaced_step_prepare_throw): Use
12013 gdbarch_supports_displaced_stepping.
12014
63e163f2
AB
120152020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12016
12017 * NEWS: Mention new behaviour of the history filename.
12018 * top.c (write_history_p): Add comment.
12019 (show_write_history_p): Add header comment, give a different
12020 message when history writing is on, but the history filename is
12021 empty.
12022 (history_filename): Add comment.
12023 (history_filename_empty): New function.
12024 (show_history_filename): Add header comment, give a different
12025 message when the filename is empty.
12026 (init_history): Compare history_filename against nullptr, and only
12027 read history if the filename is not empty.
12028 (set_history_filename): Add header comment, and only make
12029 non-empty filenames absolute.
12030 (init_main): Make the filename argument to 'set history filename'
12031 optional.
12032
81b86b97
CB
120332020-03-02 Christian Biesinger <cbiesinger@google.com>
12034
12035 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12036 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12037 (fetch_fp_register): Update.
12038 (fetch_fp_regs): Update.
12039 (store_fp_register): Update.
12040 (store_fp_regs): Update.
12041 (arm_netbsd_nat_target::read_description): New function.
12042 (fetch_elfcore_registers): Update.
12043
24ed6739
AB
120442020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12045
12046 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12047 general_thread if the stop reply is missing a thread-id.
12048 (remote_target::process_stop_reply): Use the first non-exited
12049 thread if the target didn't pass a thread-id.
12050 * infrun.c (do_target_wait): Move call to
12051 switch_to_inferior_no_thread to ....
12052 (do_target_wait_1): ... here.
12053
a84bb2a0
JT
120542020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12055
12056 * debuginfod-support.c: Include defs.h first.
12057
658dadf0
TV
120582020-02-28 Tom de Vries <tdevries@suse.de>
12059
12060 * symfile.c (set_initial_language): Use default language for lookup.
12061
4ebe4877
SM
120622020-02-28 Simon Marchi <simon.marchi@efficios.com>
12063
12064 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12065 reader variable, pass `this` to read_cutu_die_from_dwo.
12066
e5da1139
AM
120672020-02-27 Aaron Merey <amerey@redhat.com>
12068
12069 * source.c (open_source_file): Check for nullptr when computing
12070 srcpath.
12071
317f7127
TT
120722020-02-27 Tom Tromey <tromey@adacore.com>
12073
12074 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12075 member.
12076 (dwarf2_add_field): Don't update nfields.
12077 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12078
3104d9ee
AB
120792020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12080
12081 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12082 abs.
12083
b83470bf
TT
120842020-02-26 Tom Tromey <tom@tromey.com>
12085
12086 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12087 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12088 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12089 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12090 per_cu_data.
12091
edfe0a0c
TT
120922020-02-26 Tom Tromey <tom@tromey.com>
12093
12094 * dwarf2/index-write.c (psym_index_map): Change type.
12095 (add_address_entry_worker, write_one_signatured_type)
12096 (recursively_count_psymbols, recursively_write_psymbols)
12097 (class debug_names, psyms_seen_size, write_gdbindex)
12098 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12099
0d79cdc4
AM
121002020-02-26 Aaron Merey <amerey@redhat.com>
12101
12102 * Makefile.in: Handle optional debuginfod support.
12103 * NEWS: Update.
12104 * README: Add --with-debuginfod summary.
12105 * config.in: Regenerate.
12106 * configure: Regenerate.
12107 * configure.ac: Handle optional debuginfod support.
12108 * debuginfod-support.c: debuginfod helper functions.
12109 * debuginfod-support.h: Ditto.
12110 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12111 summary.
12112 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12113 when a dwz file cannot be found.
12114 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12115 debuginfo file cannot be found.
12116 * source.c (open_source_file): Query debuginfod servers when a
12117 source file cannot be found.
12118 * top.c (print_gdb_configuration): Include
12119 --{with,without}-debuginfod in the output.
12120
b65ce565
JG
121212020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12122
12123 * thread.c (thr_try_catch_cmd): Print thread name.
12124
d4c9a4f8
SM
121252020-02-26 Simon Marchi <simon.marchi@efficios.com>
12126
12127 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12128 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12129 dwarf2_fetch_die_type_sect_off): Move to...
12130 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12131 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12132 dwarf2_fetch_die_type_sect_off): ... here.
12133 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12134 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12135 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12136
0dce4280
TV
121372020-02-26 Tom de Vries <tdevries@suse.de>
12138
12139 PR gdb/25603
12140 * symfile.c (set_initial_language): Exit-early if
12141 language_mode == language_mode_manual.
12142
450a1bfc
SM
121432020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12144
12145 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12146 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12147 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12148
9e80cfa1
AB
121492020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12150
12151 * gdbtypes.c (create_array_type_with_stride): Handle negative
12152 array strides.
12153 * valarith.c (value_subscripted_rvalue): Likewise.
12154
09624f1f
LM
121552020-02-25 Luis Machado <luis.machado@linaro.org>
12156
12157 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12158
8cb5117c
SM
121592020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12160
12161 * loc.h (dwarf2_get_die_type): Move to...
12162 * read.h (dwarf2_get_die_type): ... here.
12163 * read.c (dwarf2_get_die_type): Move doc to header.
12164
c325c44e
JB
121652020-02-25 Joel Brobecker <brobecker@adacore.com>
12166
12167 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12168 'gnulib/Makefile.in' to the list.
12169
4ac93832
TT
121702020-02-24 Tom Tromey <tom@tromey.com>
12171
12172 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12173 Remove.
12174 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12175 XOBNEWVEC.
12176
197400e8
TT
121772020-02-24 Tom Tromey <tom@tromey.com>
12178
12179 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12180 New method.
12181 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12182 (dw2_do_instantiate_symtab, dw2_get_file_names)
12183 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12184
76935768
TT
121852020-02-24 Tom Tromey <tom@tromey.com>
12186
12187 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12188 make_scoped_restore.
12189 (dwarf2_psymtab::read_symtab): Don't clear
12190 reading_partial_symbols.
12191
a88ef40d
TV
121922020-02-24 Tom de Vries <tdevries@suse.de>
12193
12194 PR gdb/25592
12195 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12196
c9af6521
TV
121972020-02-24 Tom de Vries <tdevries@suse.de>
12198
12199 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12200 commands layout next/prev/regs.
12201
5707a07a
TT
122022020-02-22 Tom Tromey <tom@tromey.com>
12203
12204 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12205 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12206
3b0fb49e
TT
122072020-02-22 Tom Tromey <tom@tromey.com>
12208
12209 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12210
283be8bf
TT
122112020-02-22 Tom Tromey <tom@tromey.com>
12212
12213 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12214 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12215 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12216 * tui/tui.c (_initialize_tui): Add usage text.
12217
ca793b96
TT
122182020-02-22 Tom Tromey <tom@tromey.com>
12219
12220 * tui/tui-win.c (tui_set_focus_command)
12221 (tui_set_win_height_command): Use error_no_arg.
12222 (_initialize_tui_win): Update help text.
12223 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12224
432b5c40
TT
122252020-02-22 Tom Tromey <tom@tromey.com>
12226
12227 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12228 * tui/tui-disasm.h (struct tui_disasm_window)
12229 <display_start_addr>: Declare.
12230 * tui/tui-source.h (struct tui_source_window)
12231 <display_start_addr>: Declare.
12232 * tui/tui-winsource.h (struct tui_source_window_base)
12233 <show_source_line, display_start_addr>: New methods.
12234 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12235 Rename and move to protected section.
12236 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12237 (tui_source_window_base::do_erase_source_content): Update.
12238 (tui_source_window_base::show_source_line): Now a method.
12239 (tui_source_window_base::show_source_content)
12240 (tui_source_window_base::tui_source_window_base)
12241 (tui_source_window_base::rerender)
12242 (tui_source_window_base::refill)
12243 (tui_source_window_base::do_scroll_horizontal)
12244 (tui_source_window_base::set_is_exec_point_at)
12245 (tui_source_window_base::update_breakpoint_info)
12246 (tui_source_window_base::update_exec_info): Update.
12247 * tui/tui-source.c (tui_source_window::set_contents)
12248 (tui_source_window::showing_source_p)
12249 (tui_source_window::do_scroll_vertical)
12250 (tui_source_window::location_matches_p)
12251 (tui_source_window::line_is_displayed): Update.
12252 (tui_source_window::display_start_addr): New method.
12253 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12254 (tui_disasm_window::do_scroll_vertical)
12255 (tui_disasm_window::location_matches_p): Update.
12256 (tui_disasm_window::display_start_addr): New method.
12257
01b1af32
TT
122582020-02-22 Tom Tromey <tom@tromey.com>
12259
12260 * NEWS: Add entry for gdb.register_window_type.
12261 * tui/tui-layout.h (window_factory): New typedef.
12262 (tui_register_window): Declare.
12263 * tui/tui-layout.c (saved_tui_windows): New global.
12264 (tui_apply_current_layout): Use it.
12265 (tui_register_window): New function.
12266 * python/python.c (do_start_initialization): Call
12267 gdbpy_initialize_tui.
12268 (python_GdbMethods): Add "register_window_type" function.
12269 * python/python-internal.h (gdbpy_register_tui_window)
12270 (gdbpy_initialize_tui): Declare.
12271 * python/py-tui.c: New file.
12272 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12273
fc96d20b
TT
122742020-02-22 Tom Tromey <tom@tromey.com>
12275
12276 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12277
935c78c0
TT
122782020-02-22 Tom Tromey <tom@tromey.com>
12279
12280 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12281 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12282 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12283 (tui_set_win_focus_to): Move from tui-win.c.
12284
0240c8f1
TT
122852020-02-22 Tom Tromey <tom@tromey.com>
12286
12287 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12288 functions.
12289 (known_window_types): New global.
12290 (tui_get_window_by_name): Reimplement.
12291 (initialize_known_windows): New function.
12292 (validate_window_name): Rewrite.
12293 (_initialize_tui_layout): Call initialize_known_windows.
12294
fdb01f0c
TT
122952020-02-22 Tom Tromey <tom@tromey.com>
12296
12297 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12298 Remove constants.
12299 * tui/tui-winsource.h (struct tui_source_window_base)
12300 <tui_source_window_base>: Remove parameter.
12301 * tui/tui-winsource.c
12302 (tui_source_window_base::tui_source_window_base): Remove
12303 parameter.
12304 (tui_source_window_base::refill): Update.
12305 * tui/tui-stack.h (struct tui_locator_window)
12306 <tui_locator_window>: Update.
12307 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12308 Default the constructor.
12309 * tui/tui-regs.h (struct tui_data_item_window)
12310 <tui_data_item_window>: Default the constructor.
12311 (struct tui_data_window) <tui_data_window>: Likewise.
12312 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12313 Default the constructor.
12314 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12315 Default the constructor.
12316 <type>: Remove.
12317 (struct tui_win_info) <tui_win_info>: Default the constructor.
12318 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12319 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12320 Default the constructor.
12321
865a5aec
TT
123222020-02-22 Tom Tromey <tom@tromey.com>
12323
12324 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12325 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12326 * tui/tui-win.c (tui_resize_all): Don't call
12327 tui_delete_invisible_windows.
12328 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12329 done.
12330 (tui_set_layout): Update.
12331 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12332 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12333 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12334
e098d18c
TT
123352020-02-22 Tom Tromey <tom@tromey.com>
12336
12337 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12338 correctly.
12339
eb9c8874
TT
123402020-02-22 Tom Tromey <tom@tromey.com>
12341
12342 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12343
7eed1a8e
TT
123442020-02-22 Tom Tromey <tom@tromey.com>
12345
12346 * tui/tui-winsource.h (struct tui_source_window_iterator)
12347 <inner_iterator>: New etytypedef.
12348 <tui_source_window_iterator>: Take "end" parameter.
12349 <tui_source_window_iterator>: Take iterator.
12350 <operator*, advance>: Update.
12351 <m_iter>: Change type.
12352 <m_end>: New field.
12353 (struct tui_source_windows) <begin, end>: Update.
12354 * tui/tui-layout.c (tui_windows): New global.
12355 (tui_apply_current_layout): Clear tui_windows.
12356 (tui_layout_window::apply): Update tui_windows.
12357 * tui/tui-data.h (tui_windows): Declare.
12358 (all_tui_windows): Now inline function.
12359 (class tui_window_iterator, struct all_tui_windows): Remove.
12360
7c043ba6
TT
123612020-02-22 Tom Tromey <tom@tromey.com>
12362
12363 PR tui/17850:
12364 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12365 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12366 "height" argument.
12367 (class tui_layout_window) <get_sizes>: Likewise.
12368 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12369 argument.
12370 <get_sizes>: Add "height" argument.
12371 <m_vertical>: New field.
12372 * tui/tui-layout.c (tui_layout_split::clone): Update.
12373 (tui_layout_split::get_sizes): Add "height" argument.
12374 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12375 (tui_new_layout_command): Parse "-horizontal".
12376 (_initialize_tui_layout): Update help string.
12377 (tui_layout_split::specification): Add "-horizontal" when needed.
12378 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12379 argument.
12380 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12381 New methods.
12382
6bc56648
TT
123832020-02-22 Tom Tromey <tom@tromey.com>
12384
12385 * tui/tui-layout.h (enum tui_adjust_result): New.
12386 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12387 (class tui_layout_window) <adjust_size>: Return
12388 tui_adjust_result. Rewrite.
12389 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12390 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12391
c22fef7e
TT
123922020-02-22 Tom Tromey <tom@tromey.com>
12393
12394 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12395 parameter and return types.
12396 (class tui_layout_base) <specification>: Add "depth".
12397 (class tui_layout_window) <specification>: Add "depth".
12398 (class tui_layout_split) <specification>: Add "depth".
12399 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12400 and return types.
12401 (tui_new_layout_command): Parse sub-layouts.
12402 (_initialize_tui_layout): Update help string.
12403 (tui_layout_window::specification): Add "depth".
12404 (add_layout_command): Update.
12405
ee325b61
TT
124062020-02-22 Tom Tromey <tom@tromey.com>
12407
12408 * NEWS: Add "tui new-layout" item.
12409 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12410 Add new-layout command to help text.
12411 (validate_window_name): New function.
12412 (tui_new_layout_command): New function.
12413 (_initialize_tui_layout): Register "new-layout".
12414 (tui_layout_window::specification): New method.
12415 (tui_layout_window::specification): New method.
12416 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12417 method.
12418 (class tui_layout_window) <specification>: New method.
12419 (class tui_layout_split) <specification>: New method.
12420
416eb92d
TT
124212020-02-22 Tom Tromey <tom@tromey.com>
12422
12423 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12424 * tui/tui-win.c (window_name_completer): Update comment.
12425 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12426 Declare method.
12427 (class tui_layout_window) <replace_window>: Likewise.
12428 (class tui_layout_split) <replace_window>: Likewise.
12429 (tui_set_layout): Don't declare.
12430 (tui_set_initial_layout): Declare function.
12431 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12432 (asm_regs_layout): New globals.
12433 (tui_current_layout, show_layout): Remove.
12434 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12435 (find_layout, tui_apply_layout): New function.
12436 (layout_completer): Remove.
12437 (tui_next_layout): Reimplement.
12438 (tui_next_layout_command): New function.
12439 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12440 (tui_regs_layout): Reimplement.
12441 (tui_regs_layout_command): New function.
12442 (extract_display_start_addr): Rewrite.
12443 (next_layout, prev_layout): Remove.
12444 (tui_layout_window::replace_window): New method.
12445 (tui_layout_split::replace_window): New method.
12446 (destroy_layout): New function.
12447 (layout_list): New global.
12448 (add_layout_command): New function.
12449 (initialize_layouts): Update.
12450 (tui_layout_command): New function.
12451 (_initialize_tui_layout): Install "layout" commands.
12452 * tui/tui-data.h (enum tui_layout_type): Remove.
12453 (tui_current_layout): Don't declare.
12454
0dbc2fc7
TT
124552020-02-22 Tom Tromey <tom@tromey.com>
12456
12457 * tui/tui-regs.c (tui_reg_layout): Remove.
12458 (tui_reg_command): Use tui_regs_layout.
12459 * tui/tui-layout.h (tui_reg_command): Declare.
12460 * tui/tui-layout.c (tui_reg_command): New function.
12461
5afe342e
TT
124622020-02-22 Tom Tromey <tom@tromey.com>
12463
12464 * tui/tui.c (tui_rl_delete_other_windows): Call
12465 tui_remove_some_windows.
12466 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12467 Declare method.
12468 (class tui_layout_window) <remove_windows>: New method.
12469 (class tui_layout_split) <remove_windows>: Declare.
12470 (tui_remove_some_windows): Declare.
12471 * tui/tui-layout.c (tui_remove_some_windows): New function.
12472 (tui_layout_split::remove_windows): New method.
12473
427326a8
TT
124742020-02-22 Tom Tromey <tom@tromey.com>
12475
12476 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12477 * tui/tui-layout.h (tui_next_layout): Declare.
12478 * tui/tui-layout.c (tui_next_layout): New function.
12479
3fe12b6d
TT
124802020-02-22 Tom Tromey <tom@tromey.com>
12481
12482 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12483 correct coordinates.
12484
59b8b5d2
TT
124852020-02-22 Tom Tromey <tom@tromey.com>
12486
12487 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12488 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12489 DATA_WIN case.
12490
2a3d458b
TT
124912020-02-22 Tom Tromey <tom@tromey.com>
12492
12493 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12494 TUI_DISASM_WIN, not tui_win_list.
12495
3f0cbb04
TT
124962020-02-22 Tom Tromey <tom@tromey.com>
12497
12498 * valprint.c (generic_val_print_enum_1)
12499 (val_print_type_code_flags): Style member names.
12500 * rust-lang.c (val_print_struct, rust_print_enum)
12501 (rust_print_struct_def, rust_internal_print_type): Style member
12502 names.
12503 * p-valprint.c (pascal_object_print_value_fields): Style member
12504 names. Only call fprintf_symbol_filtered for static members.
12505 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12506 * f-valprint.c (f_val_print): Style member names.
12507 * f-typeprint.c (f_type_print_base): Style member names.
12508 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12509 call fprintf_symbol_filtered for static members.
12510 (cp_print_class_member): Style member names.
12511 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12512 member names.
12513 * ada-valprint.c (ada_print_scalar): Style enum names.
12514 (ada_val_print_enum): Likewise.
12515 * ada-typeprint.c (print_enum_type): Style enum names.
12516
d4d947ae
TT
125172020-02-21 Tom Tromey <tom@tromey.com>
12518
12519 * psympriv.h (struct partial_symtab): Update comment.
12520
e94e944b
TT
125212020-02-21 Tom Tromey <tromey@adacore.com>
12522
12523 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12524 type is CORE_ADDR.
12525
1eb73179
TV
125262020-02-21 Tom de Vries <tdevries@suse.de>
12527
12528 PR gdb/25534
12529 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12530 if dependencies[i]->user != NULL.
12531
4f180d53
AT
125322020-02-21 Ali Tamur <tamur@google.com>
12533
12534 * dwarf2/read.c (dwarf2_name): Add null check.
12535
22b6cd70
TT
125362020-02-20 Tom Tromey <tom@tromey.com>
12537
12538 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12539 ">=", in binary search.
12540 (dwarf2_find_containing_comp_unit): New overload.
12541 (run_test): New self-test.
12542 (_initialize_dwarf2_read): Register new test.
12543
bd0cf5a6
NC
125442020-02-20 Nelson Chu <nelson.chu@sifive.com>
12545
12546 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12547 * riscv-tdep.h: Likewise.
12548 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12549 rv32-only CSR.
12550 * features/riscv/64bit-csr.xml: Regenerated.
12551
3f702acd
SDJ
125522020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12553 Tom Tromey <tom@tromey.com>
12554
12555 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12556 of 'fputc_unfiltered'.
12557 (putchar_unfiltered): Call 'fputc_unfiltered'.
12558 (fputc_unfiltered): Call 'fputs_unfiltered'.
12559
d13c7322
AB
125602020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12561
12562 * config.in: Regenerate.
12563 * configure: Regenerate.
12564 * configure.ac: Add --with-python-libdir option.
12565 * main.c: Use WITH_PYTHON_LIBDIR.
12566
869d8950
TT
125672020-02-19 Tom Tromey <tom@tromey.com>
12568
12569 * symtab.c (general_symbol_info::compute_and_set_names): Use
12570 obstack_strndup. Simplify call to symbol_set_demangled_name.
12571
298e9637
SM
125722020-02-19 Simon Marchi <simon.marchi@efficios.com>
12573
12574 * dwarf2/read.c (allocate_signatured_type_table,
12575 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12576 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12577 Remove objfile parameter, update all callers.
12578
08410482
DE
125792020-02-19 Doug Evans <dje@google.com>
12580
12581 PR rust/25535
12582 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12583 rust_enum_variant calculation.
12584
dfdeeca1
TT
125852020-02-19 Tom Tromey <tromey@adacore.com>
12586
12587 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12588
2ef5453b
TT
125892020-02-19 Tom Tromey <tromey@adacore.com>
12590
12591 * ada-lang.c (cache_symbol): Use obstack_strdup.
12592
9f1528a1
AB
125932020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12594
12595 * configure: Regenerate.
12596
d3c22fa8
TT
125972020-02-19 Tom Tromey <tromey@adacore.com>
12598
12599 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12600 NULL check.
12601
bf84f706
MR
126022020-02-19 Maciej W. Rozycki <macro@wdc.com>
12603
12604 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12605
d1c9b20f
AB
126062020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12607
12608 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12609 if GDBSERVER is not defined.
12610 (riscv_tdesc_cache): Likewise, also store const target_desc.
12611 (STATIC_IN_GDB): Define.
12612 (riscv_create_target_description): Update declaration with
12613 STATIC_IN_GDB.
12614 (riscv_lookup_target_description): New function, only define if
12615 GDBSERVER is not defined.
12616 * arch/riscv.h (riscv_create_target_description): Declare only
12617 when GDBSERVER is defined.
12618 (riscv_lookup_target_description): New declaration when GDBSERVER
12619 is not defined.
12620 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12621 (riscv_linux_read_features): ...this, and return
12622 riscv_gdbarch_features instead of target_desc.
12623 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12624 (riscv_linux_read_description): Rename to...
12625 (riscv_linux_read_features): ...this.
12626 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12627 Update to use riscv_gdbarch_features and
12628 riscv_lookup_target_description.
12629 * riscv-tdep.c (riscv_find_default_target_description): Use
12630 riscv_lookup_target_description instead of
12631 riscv_create_target_description.
12632
373d7ac0
SM
126332020-02-18 Simon Marchi <simon.marchi@efficios.com>
12634
12635 * valprint.c (generic_val_print_enum_1): When printing a flag
12636 enum with value 0 and there is no enumerator with value 0, print
12637 just "0" instead of "(unknown: 0x0)".
12638
b29a2df0
SM
126392020-02-18 Simon Marchi <simon.marchi@efficios.com>
12640
12641 * valprint.c (generic_val_print_enum_1): Print unknown part of
12642 flag enum in hex.
12643
6740f0cc
SM
126442020-02-18 Simon Marchi <simon.marchi@efficios.com>
12645
12646 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12647 flag enums to contain duplicate enumerators.
12648 * valprint.c (generic_val_print_enum_1): Update comment.
12649
edd45eb0
SM
126502020-02-18 Simon Marchi <simon.marchi@efficios.com>
12651
12652 * dwarf2/read.c: Include "count-one-bits.h".
12653 (update_enumeration_type_from_children): If an enumerator has
12654 multiple bits set, don't treat the enumeration as a "flag enum".
12655 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12656 of flag enums have 0 or 1 bit set.
12657
6d0cf446
BE
126582020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12659
12660 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12661 conversion.
12662 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12663 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12664 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12665 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12666 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12667
7001c1b7
SM
126682020-02-18 Simon Marchi <simon.marchi@efficios.com>
12669
12670 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12671
fdb61c6c
SM
126722020-02-14 Simon Marchi <simon.marchi@efficios.com>
12673
12674 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12675 displaced_step_closure_up.
12676 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12677 (struct displaced_step_closure_up):
12678 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12679 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12680 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12681 Likewise.
12682 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12683 * gdbarch.c, gdbarch.h: Re-generate.
12684 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12685 displaced_step_closure_up.
12686 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12687 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12688 * infrun.h (displaced_step_closure_up): New type alias.
12689 (struct displaced_step_inferior_state) <step_closure>: Change
12690 type to displaced_step_closure_up.
12691 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12692 displaced_step_closure_up.
12693 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12694
a4a38eb4
TT
126952020-02-14 Tom Tromey <tom@tromey.com>
12696
12697 * minidebug.c (gnu_debug_key): New global.
12698 (find_separate_debug_file_in_section): Use it.
12699
e8217e61
SM
127002020-02-14 Simon Marchi <simon.marchi@efficios.com>
12701
12702 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12703 std::unique_ptr.
12704 * gdbarch.c: Re-generate.
12705 * gdbarch.h: Re-generate.
12706 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12707 change.
12708 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12709 type to std::unique_ptr.
12710 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12711 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12712 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12713 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12714 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12715 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12716 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12717 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12718 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12719
d8d83535
SM
127202020-02-14 Simon Marchi <simon.marchi@efficios.com>
12721
12722 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12723 std::unique_ptr.
12724 (displaced_step_clear): Rename to...
12725 (displaced_step_reset): ... this. Just call displaced->reset ().
12726 (displaced_step_clear_cleanup): Rename to...
12727 (displaced_step_reset_cleanup): ... this.
12728 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12729 (displaced_step_fixup): Likewise.
12730 (resume_1): Likewise.
12731 (handle_inferior_event): Restore child's memory before calling
12732 displaced_step_fixup on the parent.
12733 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12734 to std::unique_ptr.
12735 <step_closure>: Change type to std::unique_ptr.
12736
5f661e03
SM
127372020-02-14 Simon Marchi <simon.marchi@efficios.com>
12738
12739 * arm-tdep.c: Include count-one-bits.h.
12740 (cleanup_block_store_pc): Use count_one_bits.
12741 (cleanup_block_load_pc): Use count_one_bits.
12742 (arm_copy_block_xfer): Use count_one_bits.
12743 (thumb2_copy_block_xfer): Use count_one_bits.
12744 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12745 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12746 (thumb_get_next_pcs_raw): Use count_one_bits.
12747 (arm_get_next_pcs_raw): Use count_one_bits_l.
12748 * arch/arm.c (bitcount): Remove.
12749 * arch/arm.h (bitcount): Remove.
12750
8084e579
TT
127512020-02-14 Tom Tromey <tromey@adacore.com>
12752
12753 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12754 Update.
12755 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12756 * dwarf2/loc.c (call_site_find_chain_1): Return
12757 unique_xmalloc_ptr.
12758 (call_site_find_chain): Likewise.
12759
258bf0ee
RB
127602020-02-14 Richard Biener <rguenther@suse.de>
12761
12762 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12763 on expression with division operators.
12764
f98a8458
AKS
127652020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12766
12767 * MAINTAINERS (Write After Approval): Adding myself.
12768
d1437c0e
TT
127692020-02-12 Tom Tromey <tom@tromey.com>
12770
12771 * event-loop.c (event_data, gdb_event, event_handler_func):
12772 Remove.
12773
3d4560f7
TT
127742020-02-12 Tom Tromey <tom@tromey.com>
12775
12776 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12777 (dwarf2_frame_objfile_data): Add comment.
12778 (find_comp_unit, set_comp_unit): New functions.
12779 (dwarf2_frame_find_fde): Use find_comp_unit.
12780 (dwarf2_build_frame_info): Use set_comp_unit.
12781
21982304
TT
127822020-02-12 Tom Tromey <tom@tromey.com>
12783
12784 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12785 (comp_unit): Don't initialize objfile.
12786 (execute_cfa_program): Add text_offset parameter.
12787 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12788 (dwarf2_frame_cache): Update.
12789 (dwarf2_build_frame_info): Don't set "objfile" member.
12790
4debb237
TT
127912020-02-12 Tom Tromey <tom@tromey.com>
12792
12793 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12794 (decode_frame_entry): Likewise.
12795 (dwarf2_build_frame_info): Update.
12796
0d404d44
TT
127972020-02-12 Tom Tromey <tom@tromey.com>
12798
12799 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12800 (decode_frame_entry_1): Use the comp_unit obstack.
12801
a7a3ae5c
TT
128022020-02-12 Tom Tromey <tom@tromey.com>
12803
12804 * dwarf2/frame.c (struct comp_unit): Add initializers and
12805 constructor.
12806 (dwarf2_frame_objfile_data): Store a comp_unit.
12807 (dwarf2_frame_find_fde): Update.
12808 (dwarf2_build_frame_info): Use "new".
12809
a9d65418
TT
128102020-02-12 Tom Tromey <tom@tromey.com>
12811
12812 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12813 (dwarf2_fde_table): Typedef for std::vector.
12814 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12815 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12816 (decode_frame_entry): Update.
12817 (dwarf2_build_frame_info): Use "new".
12818
7559c217
CB
128192020-02-12 Christian Biesinger <cbiesinger@google.com>
12820
12821 * arm-tdep.c (arm_gdbarch_init): Update.
12822 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12823 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12824 have_neon, is_m>: Change to bool.
12825
aeefc73c
CB
128262020-02-12 Christian Biesinger <cbiesinger@google.com>
12827
12828 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12829
d27b8e5f
TT
128302020-02-12 Tom Tromey <tom@tromey.com>
12831
12832 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12833
cd5900f3
HD
128342020-02-12 Hannes Domani <ssbssa@yahoo.de>
12835
12836 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12837 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12838
f056b22b
TT
128392020-02-11 Tom Tromey <tom@tromey.com>
12840
12841 * psymtab.h: Update comment.
12842
f92ff6b5
TT
128432020-02-11 Tom Tromey <tom@tromey.com>
12844
12845 * gdb_obstack.h (struct auto_obstack): Use
12846 DISABLE_COPY_AND_ASSIGN.
12847
3fd6912b
TT
128482020-02-11 Tom Tromey <tom@tromey.com>
12849
12850 * dwarf2/frame.h (struct objfile): Don't forward declare.
12851
69ed9b74
CB
128522020-02-11 Christian Biesinger <cbiesinger@google.com>
12853
12854 * cris-tdep.c (cris_supply_gregset): Change signature to match
12855 what struct regset expects.
12856 (cris_regset): New struct.
12857 (fetch_core_registers): Remove.
12858 (cris_iterate_over_regset_sections): New function.
12859 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12860 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12861
bda874f6
CB
128622020-02-11 Christian Biesinger <cbiesinger@google.com>
12863
12864 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12865 registers.
12866
754e1564
CB
128672020-02-11 Christian Biesinger <cbiesinger@google.com>
12868
12869 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12870
8ddd8e0e
SM
128712020-02-11 Simon Marchi <simon.marchi@efficios.com>
12872
12873 * configure: Re-generate.
12874
898e7f60
SM
128752020-02-11 Simon Marchi <simon.marchi@efficios.com>
12876
12877 * configure: Re-generate.
12878
58df732b
SM
128792020-02-11 Simon Marchi <simon.marchi@efficios.com>
12880
12881 * acinclude: Update warning.m4 path.
12882 * warning.m4: Move to gdbsupport.
12883
da5bd37e
TT
128842020-02-11 Tom Tromey <tromey@adacore.com>
12885
12886 * remote.c (remote_console_output): Update.
12887 * printcmd.c (printf_command): Update.
12888 * event-loop.c (gdb_wait_for_event): Update.
12889 * linux-nat.c (sigchld_handler): Update.
12890 * remote-sim.c (gdb_os_write_stdout): Update.
12891 (gdb_os_flush_stdout): Update.
12892 (gdb_os_flush_stderr): Update.
12893 (gdb_os_write_stderr): Update.
12894 * exceptions.c (print_exception): Update.
12895 * remote-fileio.c (remote_fileio_func_read): Update.
12896 (remote_fileio_func_write): Update.
12897 * tui/tui.c (tui_enable): Update.
12898 * tui/tui-interp.c (tui_interp::init): Update.
12899 * utils.c (init_page_info): Update.
12900 (putchar_unfiltered, fputc_unfiltered): Update.
12901 (gdb_flush): Update.
12902 (emit_style_escape): Update.
12903 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12904 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12905 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12906 (stderr_file::write): Update.
12907 (stderr_file::puts): Update.
12908 * ui-file.h (ui_file_isatty, ui_file_write)
12909 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12910 (ui_file_puts): Don't declare.
12911
85f0dd3c
TV
129122020-02-10 Tom de Vries <tdevries@suse.de>
12913
12914 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12915 sentinel to char *.
12916
2e927613
TV
129172020-02-09 Tom de Vries <tdevries@suse.de>
12918
12919 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12920 filename if it matches "<artificial>".
12921
6bafc845
HD
129222020-02-09 Hannes Domani <ssbssa@yahoo.de>
12923
12924 * windows-tdep.c (struct enum_value_name): New struct.
12925 (create_enum): New function.
12926 (windows_get_siginfo_type): Create and use enum types.
12927
7928d571
HD
129282020-02-09 Hannes Domani <ssbssa@yahoo.de>
12929
12930 * NEWS: Mention $_siginfo support for Windows.
12931 * windows-nat.c (handle_exception): Set siginfo_er.
12932 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12933 (windows_xfer_siginfo): New function.
12934 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12935 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12936 (init_windows_gdbarch_data): New function.
12937 (get_windows_gdbarch_data): New function.
12938 (windows_get_siginfo_type): New function.
12939 (windows_init_abi): Register windows_get_siginfo_type.
12940 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12941
6751ebae
TT
129422020-02-08 Tom Tromey <tom@tromey.com>
12943
12944 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12945 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12946 <keep>: Declare method.
12947 <m_keep>: Remove member.
12948 <~cutu_reader>: Remove.
12949 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12950 (cutu_reader::cutu_reader): Update.
12951 (cutu_reader::keep): Rename from ~cutu_reader.
12952 (process_psymtab_comp_unit, build_type_psymtabs_1)
12953 (process_skeletonless_type_unit, load_partial_comp_unit)
12954 (load_full_comp_unit, dwarf2_read_addr_index)
12955 (read_signatured_type): Update.
12956
135f5437
TT
129572020-02-08 Tom Tromey <tom@tromey.com>
12958
12959 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12960 "want_partial_unit" parameter.
12961 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12962 Inline check for DW_TAG_partial_unit.
12963 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12964
9f66ff1c
TT
129652020-02-08 Tom Tromey <tom@tromey.com>
12966
12967 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12968 read.c.
12969 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12970 read.c.
12971
c8a7a66f
TT
129722020-02-08 Tom Tromey <tom@tromey.com>
12973
12974 * dwarf2/read.c (read_address): Move to comp-unit.c.
12975 (dwarf2_rnglists_process, dwarf2_ranges_process)
12976 (read_attribute_value, dwarf_decode_lines_1)
12977 (var_decode_location, decode_locdesc): Update.
12978 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12979 read.c. Remove "cu" parameter.
12980 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12981 method.
12982
8266302d
TT
129832020-02-08 Tom Tromey <tom@tromey.com>
12984
12985 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12986 (read_indirect_line_string): Update.
12987 * dwarf2/comp-unit.c (read_offset): Remove.
12988 (read_comp_unit_head): Update.
12989 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12990 method.
12991 (read_offset): Don't declare.
12992
4057dfde
TT
129932020-02-08 Tom Tromey <tom@tromey.com>
12994
12995 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12996 * dwarf2/read.c (struct comp_unit_head): Move to
12997 dwarf2/comp-unit.h.
12998 (enum class rcuh_kind): Move to comp-unit.h.
12999 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
13000 (read_comp_unit_head, error_check_comp_unit_head)
13001 (read_and_check_comp_unit_head): Move to comp-unit.c.
13002 (read_offset, dwarf_unit_type_name): Likewise.
13003 (create_debug_type_hash_table, read_cutu_die_from_dwo)
13004 (cutu_reader::cutu_reader, read_call_site_scope)
13005 (find_partial_die, follow_die_offset): Update.
13006 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13007
24aa364d
TT
130082020-02-08 Tom Tromey <tom@tromey.com>
13009
13010 * dwarf2/read.c (read_offset_1): Move to leb.c.
13011 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13012 (dwarf_decode_macro_bytes): Update.
13013 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13014 * dwarf2/leb.h (read_offset): Declare.
13015
2c7d5afc
TT
130162020-02-08 Tom Tromey <tom@tromey.com>
13017
13018 * dwarf2/read.c (dwarf2_section_size): Remove.
13019 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13020 Update.
13021 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13022
4075cb26
TT
130232020-02-08 Tom Tromey <tom@tromey.com>
13024
13025 * dwarf2/read.c (read_initial_length): Move to leb.c.
13026 * dwarf2/leb.h (read_initial_length): Declare.
13027 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13028 handle_nonstd parameter.
13029 * dwarf2/frame.c (read_initial_length): Remove.
13030 (decode_frame_entry_1): Update.
13031
09ba997f
TT
130322020-02-08 Tom Tromey <tom@tromey.com>
13033
13034 * dwarf2/loc.c (dwarf2_find_location_expression)
13035 (dwarf_evaluate_loc_desc::get_tls_address)
13036 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13037 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13038 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13039 (dwarf2_compile_property_to_c)
13040 (dwarf2_loc_desc_get_symbol_read_needs)
13041 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13042 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13043 (loclist_describe_location, loclist_tracepoint_var_ref)
13044 (loclist_generate_c_location): Update.
13045 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13046 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13047 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13048 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13049 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13050 (dwarf2_per_cu_data::addr_size)
13051 (dwarf2_per_cu_data::ref_addr_size)
13052 (dwarf2_per_cu_data::text_offset)
13053 (dwarf2_per_cu_data::addr_type): Now methods.
13054 (per_cu_header_read_in): Make per_cu "const".
13055 (dwarf2_version): Remove.
13056 (dwarf2_per_cu_data::int_type): Now a method.
13057 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13058 (set_die_type, read_array_type, read_subrange_index_type)
13059 (read_tag_string_type, read_subrange_type): Update.
13060 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13061 offset_size, ref_addr_size, text_offset, addr_type, version,
13062 objfile, int_type, addr_sized_int_type>: Declare methods.
13063
96c738c0
TT
130642020-02-08 Tom Tromey <tom@tromey.com>
13065
13066 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13067 Move earlier.
13068
8fdd972c
TT
130692020-02-08 Tom Tromey <tom@tromey.com>
13070
13071 * dwarf2/read.h (dwarf_line_debug): Declare.
13072 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13073 * dwarf2/read.c: Move line_header code to new files.
13074 (dwarf_line_debug): No longer static.
13075 * dwarf2/line-header.c: New file.
13076 * dwarf2/line-header.h: New file.
13077
03075812
TT
130782020-02-08 Tom Tromey <tom@tromey.com>
13079
13080 * dwarf2/read.c (struct line_header) <file_full_name,
13081 file_file_name>: Return unique_xmalloc_ptr.
13082 (line_header::file_file_name): Update.
13083 (line_header::file_full_name): Update.
13084 (dw2_get_file_names_reader): Update.
13085 (macro_start_file): Update.
13086
bb822404
TT
130872020-02-08 Tom Tromey <tom@tromey.com>
13088
13089 * dwarf2/read.c (struct line_header) <file_full_name,
13090 file_file_name>: Declare methods.
13091 (dw2_get_file_names_reader): Update.
13092 (file_file_name): Now a method.
13093 (file_full_name): Likewise.
13094 (macro_start_file): Update.
13095
009b64fc
TT
130962020-02-08 Tom Tromey <tom@tromey.com>
13097
13098 * dwarf2/read.c (dwarf_always_disassemble)
13099 (show_dwarf_always_disassemble): Move to loc.c.
13100 (_initialize_dwarf2_read): Move "always-disassemble" registration
13101 to loc.c.
13102 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13103 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13104 static.
13105 (show_dwarf_always_disassemble): Move from read.c.
13106 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13107
5895093f
TT
131082020-02-08 Tom Tromey <tom@tromey.com>
13109
13110 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13111 (create_quick_file_names_table): Return htab_up.
13112 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13113 Update.
13114 * dwarf2/read.h (struct dwarf2_per_objfile)
13115 <quick_file_names_table>: Now htab_up.
13116
b3b32279
TT
131172020-02-08 Tom Tromey <tom@tromey.com>
13118
13119 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13120
1d33d811
TT
131212020-02-08 Tom Tromey <tom@tromey.com>
13122
13123 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13124 Rewrite.
13125 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13126 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13127 (abbrev_table::abbrev_table): No longer inline.
13128 (ABBREV_HASH_SIZE): Remove.
13129 (abbrev_table::m_abbrevs): Now an htab_up.
13130
86de1d91
TT
131312020-02-08 Tom Tromey <tom@tromey.com>
13132
13133 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13134 (cutu_reader): Update.
13135 (build_type_psymtabs_1): Update.
13136 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13137 (abbrev_table::alloc_abbrev): Update.
13138 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13139 (abbrev_table::read): New static method, renamed from
13140 abbrev_table_read_table.
13141 (abbrev_table::alloc_abbrev)
13142 (abbrev_table::add_abbrev): Now private.
13143 (abbrev_table::abbrev_table): Now private.
13144 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13145
0335378b
TT
131462020-02-08 Tom Tromey <tom@tromey.com>
13147
13148 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13149 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13150 htab_up.
13151
48b490f2
TT
131522020-02-08 Tom Tromey <tom@tromey.com>
13153
13154 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13155 htab_up.
13156 (lookup_dwo_unit_in_dwp): Update.
13157 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13158 on obstack.
13159
bc68fb19
TT
131602020-02-08 Tom Tromey <tom@tromey.com>
13161
13162 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13163 obstack.
13164
d15acc42
TT
131652020-02-08 Tom Tromey <tom@tromey.com>
13166
13167 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13168 line_header_hash.
13169 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13170 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13171 Change type to htab_up.
13172
eaa5fa8b
TT
131732020-02-08 Tom Tromey <tom@tromey.com>
13174
13175 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13176 htab_up. Don't allocate on obstack.
13177 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13178 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13179 Change type to htab_up.
13180
b0b6a987
TT
131812020-02-08 Tom Tromey <tom@tromey.com>
13182
13183 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13184 Change type to htab_up.
13185 * dwarf2/read.c (create_signatured_type_table_from_index)
13186 (create_signatured_type_table_from_debug_names)
13187 (create_all_type_units, add_type_unit)
13188 (lookup_dwo_signatured_type, lookup_signatured_type)
13189 (process_skeletonless_type_unit): Update.
13190 (create_debug_type_hash_table, create_debug_types_hash_table):
13191 Change type of types_htab.
13192 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13193 htab_up. Don't allocate on obstack.
13194 (create_cus_hash_table): Change type of cus_htab parameter.
13195 (struct dwo_file) <cus, tus>: Now htab_up.
13196 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13197 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13198 (queue_and_load_all_dwo_tus): Update.
13199 * dwarf2/index-write.c (write_gdbindex): Update.
13200 (write_debug_names): Update.
13201
39856def
TT
132022020-02-08 Tom Tromey <tom@tromey.com>
13203
13204 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13205 dwarf2/read.c. Remove "next" member. Add constructor ntad
13206 destructor.
13207 (struct dwarf2_per_objfile) <queue>: New member.
13208 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13209 dwarf2/read.h.
13210 (dwarf2_queue, dwarf2_queue_tail): Remove.
13211 (class dwarf2_queue_guard): Add parameter to constructor. Use
13212 DISABLE_COPY_AND_ASSIGN.
13213 <m_per_objfile>: New member.
13214 <~dwarf2_queue_guard>: Rewrite.
13215 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13216 Update.
13217 (~dwarf2_queue_item): New.
13218
3e225074
TT
132192020-02-08 Tom Tromey <tom@tromey.com>
13220
13221 * dwarf2/read.c (struct die_info) <has_children>: New member.
13222 (dw2_get_file_names_reader): Remove has_children.
13223 (dw2_get_file_names): Update.
13224 (read_cutu_die_from_dwo): Remove has_children.
13225 (cutu_reader::init_tu_and_read_dwo_dies)
13226 (cutu_reader::cutu_reader): Update.
13227 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13228 Remove has_children.
13229 (build_type_psymtabs_1, process_skeletonless_type_unit)
13230 (load_partial_comp_unit, load_full_comp_unit): Update.
13231 (create_dwo_cu_reader): Remove has_children.
13232 (create_cus_hash_table, read_die_and_children): Update.
13233 (read_full_die_1,read_full_die): Remove has_children.
13234 (read_signatured_type): Update.
13235 (class cutu_reader) <has_children>: Remove.
13236
82ca8957
TT
132372020-02-08 Tom Tromey <tom@tromey.com>
13238
13239 * dwarf2/expr.c: Rename from dwarf2expr.c.
13240 * dwarf2/expr.h: Rename from dwarf2expr.h.
13241 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13242 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13243 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13244 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13245 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13246 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13247 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13248 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13249 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13250 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13251 * dwarf2/loc.c: Rename from dwarf2loc.c.
13252 * dwarf2/loc.h: Rename from dwarf2loc.h.
13253 * dwarf2/read.c: Rename from dwarf2read.c.
13254 * dwarf2/read.h: Rename from dwarf2read.h.
13255 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13256 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13257 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13258 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13259 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13260 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13261 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13262 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13263 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13264 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13265 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13266 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13267 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13268 Update.
13269 * Makefile.in (COMMON_SFILES): Update.
13270 (HFILES_NO_SRCDIR): Update.
13271
9e35d499
TT
132722020-02-08 Tom Tromey <tom@tromey.com>
13273
13274 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13275 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13276
1eba2311
TT
132772020-02-08 Tom Tromey <tom@tromey.com>
13278
13279 * dwarf2read.h (struct die_info): Don't declare.
13280
e41c2da2
TT
132812020-02-08 Tom Tromey <tom@tromey.com>
13282
13283 * dwarf2read.h (die_info_ptr): Remove typedef.
13284
4fc6c0d5
TT
132852020-02-08 Tom Tromey <tom@tromey.com>
13286
13287 * dwarf2read.c (read_call_site_scope)
13288 (handle_data_member_location, dwarf2_add_member_fn)
13289 (mark_common_block_symbol_computed, read_common_block)
13290 (attr_to_dynamic_prop, partial_die_info::read)
13291 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13292 (dwarf2_symbol_mark_computed, set_die_type): Update.
13293 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13294 method.
13295 (attr_form_is_block): Don't declare.
13296 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13297
cd6c91b4
TT
132982020-02-08 Tom Tromey <tom@tromey.com>
13299
13300 * dwarf2read.c (dwarf2_find_base_address, )
13301 (read_call_site_scope, rust_containing_type)
13302 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13303 (handle_data_member_location, dwarf2_add_member_fn)
13304 (get_alignment, read_structure_type, process_structure_scope)
13305 (mark_common_block_symbol_computed, read_common_block)
13306 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13307 (partial_die_info::read, read_attribute_value, new_symbol)
13308 (lookup_die_type, dwarf2_get_ref_die_offset)
13309 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13310 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13311 (dwarf2_symbol_mark_computed): Update.
13312 * dwarf2/attribute.h (struct attribute) <value_as_address,
13313 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13314 methods.
13315 (value_as_address, attr_form_is_section_offset)
13316 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13317 * dwarf2/attribute.c (attribute::value_as_address)
13318 (attribute::form_is_section_offset, attribute::form_is_constant)
13319 (attribute::form_is_ref): Now methods.
13320
162dce55
TT
133212020-02-08 Tom Tromey <tom@tromey.com>
13322
13323 * dwarf2read.c (struct attribute, DW_STRING)
13324 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13325 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13326 (attr_form_is_block, attr_form_is_section_offset)
13327 (attr_form_is_constant, attr_form_is_ref): Move.
13328 * dwarf2/attribute.h: New file.
13329 * dwarf2/attribute.c: New file, from dwarf2read.c.
13330 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13331
3054dd54
TT
133322020-02-08 Tom Tromey <tom@tromey.com>
13333
13334 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13335 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13336 Move.
13337 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13338 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13339 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13340 abbrev.c.
13341 * dwarf2/abbrev.h: New file.
13342 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13343 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13344
96b79293
TT
133452020-02-08 Tom Tromey <tom@tromey.com>
13346
13347 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13348 (dwarf2_section_size, dwarf2_get_section_info)
13349 (create_signatured_type_table_from_debug_names)
13350 (create_addrmap_from_aranges, read_debug_names_from_section)
13351 (get_gdb_index_contents_from_section, read_comp_unit_head)
13352 (error_check_comp_unit_head, read_abbrev_offset)
13353 (create_debug_type_hash_table, init_cu_die_reader)
13354 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13355 (read_comp_units_from_section, create_cus_hash_table)
13356 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13357 (create_dwp_v2_section, dwarf2_rnglists_process)
13358 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13359 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13360 (read_indirect_string_from_dwz, read_addr_index_1)
13361 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13362 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13363 (fill_in_loclist_baton): Update.
13364 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13365 get_containing_section, get_bfd_owner, get_bfd_section,
13366 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13367 (dwarf2_read_section, get_section_name, get_section_file_name)
13368 (get_containing_section, get_section_bfd_owner)
13369 (get_section_bfd_section, get_section_name, get_section_file_name)
13370 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13371 declare.
13372 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13373 (dwarf2_section_info::get_bfd_owner)
13374 (dwarf2_section_info::get_bfd_section)
13375 (dwarf2_section_info::get_name)
13376 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13377 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13378 (dwarf2_section_info::read): Now methods.
13379 * dwarf-index-write.c (class debug_names): Update.
13380
2c86cff9
TT
133812020-02-08 Tom Tromey <tom@tromey.com>
13382
13383 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13384 Move to dwarf2/section.h.
13385 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13386 (get_section_bfd_section, get_section_name)
13387 (get_section_file_name, get_section_id, get_section_flags)
13388 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13389 dwarf2/section.c.
13390 * dwarf2/section.h: New file.
13391 * dwarf2/section.c: New file, from dwarf2read.c.
13392 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13393
f4382c45
TT
133942020-02-08 Tom Tromey <tom@tromey.com>
13395
13396 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13397 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13398 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13399 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13400 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13401 * dwarf2/leb.h: New file, from dwarf2read.c.
13402 * dwarf2/leb.c: New file, from dwarf2read.c.
13403 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13404 Remove.
13405 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13406 (COMMON_SFILES): Add dwarf2/leb.c.
13407
01840b7a
JB
134082020-02-08 Joel Brobecker <brobecker@adacore.com>
13409
13410 GDB 9.1 released.
13411
dfcb27e4
IB
134122020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13413
13414 PR gdb/25190:
aac66a4c
SM
13415 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13416 * gdb/remote.c (remote_console_output): Update.
13417 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13418 (ui_file_puts): ...this.
13419 * gdb/ui-file.h (ui_file_puts): Add declaration.
13420 * gdb/utils.c (emit_style_escape): Update.
13421 (flush_wrap_buffer): Update.
13422 (fputs_maybe_filtered): Update.
13423 (fputs_unfiltered): Add function.
dfcb27e4 13424
faa17681
IB
134252020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13426
aac66a4c
SM
13427 * gdb/event-loop.c (gdb_wait_for_event): Update.
13428 * gdb/printcmd.c (printf_command): Update.
13429 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13430 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13431 (gdb_os_flush_stderr): Update.
13432 * gdb/remote.c (remote_console_output): Update.
13433 * gdb/ui-file.c (gdb_flush): Rename to...
13434 (ui_file_flush): ...this.
13435 (stderr_file::write): Update.
13436 (stderr_file::puts): Update.
13437 * gdb/ui-file.h (gdb_flush): Rename to...
13438 (ui_file_flush): ...this.
13439 * gdb/utils.c (gdb_flush): Add function.
13440 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 13441
5abbbe1d
TT
134422020-02-07 Tom Tromey <tromey@adacore.com>
13443
13444 PR breakpoints/24915:
13445 * source.c (find_and_open_source): Do not check basenames_may_differ.
13446
919adfe8
TT
134472020-02-07 Tom Tromey <tom@tromey.com>
13448
13449 * README: Update gdbserver documentation.
13450 * gdbserver: Move to top level.
13451 * configure.tgt (build_gdbserver): Remove.
13452 * configure.ac: Remove --enable-gdbserver.
13453 * configure: Rebuild.
13454 * Makefile.in (distclean): Don't mention gdbserver.
13455
1d5d29e7
SV
134562020-02-06 Shahab Vahedi <shahab@synopsys.com>
13457
13458 * source-cache.c (source_cache::ensure): Surround
13459 get_plain_source_lines with a try/catch.
13460 (source_cache::get_line_charpos): Get rid of try/catch
13461 and only check for the return value of "ensure".
13462 * tui/tui-source.c (tui_source_window::set_contents):
13463 Simplify "nlines" calculation.
13464
6eb1129c
SV
134652020-02-06 Shahab Vahedi <shahab@synopsys.com>
13466
13467 * MAINTAINERS (Write After Approval): Add myself.
13468
c6a42d11
CB
134692020-02-05 Christian Biesinger <cbiesinger@google.com>
13470
13471 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13472 function call.
13473
c8ecdda6
CB
134742020-02-05 Christian Biesinger <cbiesinger@google.com>
13475
13476 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13477
f6480e70
MR
134782020-02-05 Maciej W. Rozycki <macro@wdc.com>
13479
13480 * nat/riscv-linux-tdesc.h: New file.
13481 * nat/riscv-linux-tdesc.c: New file, taking code from...
13482 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13483 ... here.
13484 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13485 NATDEPFILES.
13486
dcc9fbc6
AB
134872020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13488
13489 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13490 we don't set the fake simulator ptid to the null_ptid.
13491
719546c4
SM
134922020-02-03 Simon Marchi <simon.marchi@efficios.com>
13493
13494 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13495 * gdbthread.h (class thread_info) <resumed>: Likewise.
13496 * infrun.c (resume_1): Likewise.
13497 (proceed): Likewise.
13498 (infrun_thread_stop_requested): Likewise.
13499 (stop_all_threads): Likewise.
13500 (handle_inferior_event): Likewise.
13501 (restart_threads): Likewise.
13502 (finish_step_over): Likewise.
13503 (keep_going_stepped_thread): Likewise.
13504 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13505 (linux_handle_extended_wait): Likewise.
13506 * record-btrace.c (get_thread_current_frame_id): Likewise.
13507 * record-full.c (record_full_wait_1): Likewise.
13508 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13509 * target.c (target_resume): Likewise.
13510 * thread.c (set_running_thread): Likewise.
13511
e409c542
AKS
135122020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13513
13514 * f-valprint.c (f77_print_array_1): Changed datatype of index
13515 variable to LONGEST from int to enable it to contain bound
13516 values correctly.
13517
ee98c0da
MR
135182020-02-03 Maciej W. Rozycki <macro@wdc.com>
13519
13520 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13521 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13522 offsets according to FLEN determined.
13523 (riscv_linux_nat_target::read_description): Determine FLEN
13524 dynamically.
13525 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13526 according to FLEN determined.
13527 (riscv_linux_nat_target::store_registers): Likewise.
13528
aa66aac4
SV
135292020-02-01 Shahab Vahedi <shahab@synopsys.com>
13530
13531 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13532 when reg->group is empty and reggroup is not.
13533
fd9faca8
TT
135342020-01-31 Tom Tromey <tromey@adacore.com>
13535
13536 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13537 Call beneath target's mourn_inferior after unpushing.
13538
42330a68
AB
135392020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13540
13541 PR tui/9765
13542 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13543 have enough lines to fill the screen, still return the lowest
13544 address we found.
13545
7a27a45b
AB
135462020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13547
13548 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13549 '-', '<', and '>' commands.
13550
c47f70e2
PA
135512020-01-29 Pedro Alves <palves@redhat.com>
13552 Sergio Durigan Junior <sergiodj@redhat.com>
13553
13554 * infcmd.c (construct_inferior_arguments): Assert that
13555 'argc' is greater than 0.
13556
5133a315
LM
135572020-01-29 Luis Machado <luis.machado@linaro.org>
13558
13559 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13560 (BRK_INSN_MASK): Define to 0xd4200000.
13561 (aarch64_program_breakpoint_here_p): New function.
13562 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13563 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13564 breakpoint.c.
13565 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13566 breakpoint.h
13567 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13568 call gdbarch_program_breakpoint_here_p.
13569 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13570 default_program_breakpoint_here_p, changed return type to bool and
13571 simplified.
13572 * breakpoint.h (program_breakpoint_here): Moved prototype to
13573 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13574 return type to bool.
13575 * gdbarch.c: Regenerate.
13576 * gdbarch.h: Regenerate.
13577 * gdbarch.sh (program_breakpoint_here_p): New method.
13578 * infrun.c (handle_signal_stop): Call
13579 gdbarch_program_breakpoint_here_p.
13580
168f8c6b
TT
135812020-01-26 Tom Tromey <tom@tromey.com>
13582
13583 * ctfread.c (struct ctf_fp_info): Reindent.
13584 (_initialize_ctfread): Remove.
13585
128a391f
TT
135862020-01-26 Tom Tromey <tom@tromey.com>
13587
13588 * psymtab.c (partial_map_expand_apply)
13589 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13590 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13591 (psym_print_stats, psym_expand_symtabs_for_function)
13592 (psym_map_symbol_filenames, psym_map_matching_symbols)
13593 (psym_expand_symtabs_matching)
13594 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13595 (maintenance_check_psymtabs): Use new methods.
13596 * psympriv.h (struct partial_symtab) <readin_p,
13597 get_compunit_symtab>: New methods.
13598 <readin, compunit_symtab>: Remove members.
13599 (struct standard_psymtab): New.
13600 (struct legacy_psymtab): Derive from standard_psymtab.
13601 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13602 standard_psymtab.
13603 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13604
0494dbec
TT
136052020-01-26 Tom Tromey <tom@tromey.com>
13606
13607 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13608 read_dependencies. Add assert.
13609 * psymtab.c (partial_symtab::read_dependencies): New method.
13610 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13611 method.
13612 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13613 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13614 read_dependencies.
13615 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13616 Add assert.
13617
8566b89b
TT
136182020-01-26 Tom Tromey <tom@tromey.com>
13619
13620 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13621 Call expand_psymtab.
13622 (xcoff_read_symtab): Call expand_psymtab.
13623 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13624 legacy_expand_psymtab.
13625 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13626 method.
13627 (struct legacy_psymtab) <expand_psymtab>: Implement.
13628 <legacy_expand_psymtab>: New member.
13629 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13630 (parse_partial_symbols): Set legacy_expand_psymtab.
13631 (psymtab_to_symtab_1): Change argument order. Call
13632 expand_psymtab.
13633 (new_psymtab): Set legacy_expand_psymtab.
13634 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13635 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13636 expand_psymtab.
13637 (dwarf2_psymtab::expand_psymtab): Rename from
13638 psymtab_to_symtab_1. Call expand_psymtab.
13639 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13640 (dbx_end_psymtab): Likewise.
13641 (dbx_psymtab_to_symtab_1): Change argument order. Call
13642 expand_psymtab.
13643 (dbx_read_symtab): Call expand_psymtab.
13644 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13645 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13646 (ctf_psymtab::read_symtab): Call expand_psymtab.
13647
077cbab2
TT
136482020-01-26 Tom Tromey <tom@tromey.com>
13649
13650 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13651 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13652 messages.
13653 * mdebugread.c (mdebug_read_symtab): Remove prints.
13654 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13655 assert.
13656 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13657
891813be
TT
136582020-01-26 Tom Tromey <tom@tromey.com>
13659
13660 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13661 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13662 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13663 legacy_symtab.
13664 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13665 * psymtab.c (psymtab_to_symtab): Call method.
13666 (dump_psymtab): Update.
13667 * psympriv.h (struct partial_symtab): Add virtual destructor.
13668 <read_symtab>: New method.
13669 (struct legacy_symtab): New.
13670 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13671 (struct pst_map) <pst>: Now a legacy_psymtab.
13672 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13673 (new_psymtab): Use legacy_psymtab.
13674 * dwarf2read.h (struct dwarf2_psymtab): New.
13675 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13676 * dwarf2read.c (dwarf2_create_include_psymtab)
13677 (dwarf2_build_include_psymtabs, create_type_unit_group)
13678 (create_partial_symtab, process_psymtab_comp_unit_reader)
13679 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13680 (set_partial_user): Use dwarf2_psymtab.
13681 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13682 (psymtab_to_symtab_1, process_full_comp_unit)
13683 (process_full_type_unit, dwarf2_ranges_read)
13684 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13685 (dwarf_decode_lines): Use dwarf2_psymtab.
13686 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13687 (add_address_entry_worker, write_one_signatured_type)
13688 (recursively_count_psymbols, recursively_write_psymbols)
13689 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13690 (write_debug_names): Likewise.
13691 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13692 <pst>: Now a legacy_psymtab.
13693 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13694 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13695 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13696 * ctfread.c (struct ctf_psymtab): New.
13697 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13698 ctf_psymtab.
13699 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13700 (create_partial_symtab): Return a ctf_psymtab.
13701 (scan_partial_symbols): Update.
13702
c3693a1d
TT
137032020-01-26 Tom Tromey <tom@tromey.com>
13704
13705 * xcoffread.c (xcoff_start_psymtab): Use new.
13706 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13707 renamed from start_psymtab_common.
13708 * psympriv.h (struct partial_symtab): Add new constructor.
13709 (start_psymtab_common): Don't declare.
13710 * mdebugread.c (parse_partial_symbols): Use new.
13711 * dwarf2read.c (create_partial_symtab): Use new.
13712 * dbxread.c (start_psymtab): Use new.
13713 * ctfread.c (create_partial_symtab): Use new.
13714
32caafd0
TT
137152020-01-26 Tom Tromey <tom@tromey.com>
13716
13717 * xcoffread.c (xcoff_end_psymtab): Use new.
13718 * psymtab.c (start_psymtab_common): Use new.
13719 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13720 Update.
13721 * psympriv.h (struct partial_symtab): Add parameters to
13722 constructor. Don't inline.
13723 (allocate_psymtab): Don't declare.
13724 * mdebugread.c (new_psymtab): Use new.
13725 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13726 * dbxread.c (dbx_end_psymtab): Use new.
13727
abaa2f23
TT
137282020-01-26 Tom Tromey <tom@tromey.com>
13729
13730 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13731 allocate_psymtab. Update documentation.
13732 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13733 allocate_psymtab. Do not use new.
13734 (allocate_psymtab): Use new. Update.
13735
6d94535f
TT
137362020-01-26 Tom Tromey <tom@tromey.com>
13737
13738 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13739 * psymtab.c (psym_print_stats): Update.
13740 * psympriv.h (struct partial_symtab) <readin,
13741 psymtabs_addrmap_supported, anonymous>: Now bool.
13742 * mdebugread.c (psymtab_to_symtab_1): Update.
13743 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13744 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13745 (process_full_comp_unit, process_full_type_unit): Update.
13746 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13747 * ctfread.c (psymtab_to_symtab): Update.
13748
6f17252b
TT
137492020-01-26 Tom Tromey <tom@tromey.com>
13750
13751 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13752 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13753 * psymtab.c (psymtab_storage): Delete psymtabs.
13754 (psymtab_storage::allocate_psymtab): Use new.
13755 (psymtab_storage::discard_psymtab): Use delete.
13756 * psympriv.h (struct partial_symtab): Add constructor and
13757 initializers.
13758
f6f1cebc
TT
137592020-01-26 Tom Tromey <tom@tromey.com>
13760
13761 * machoread.c: Do not include psympriv.h.
13762
e47e48f6
PW
137632020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13764
13765 * NEWS: Mention the new option and the set/show commands.
13766
a2fedca9
PW
137672020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13768
13769 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13770 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13771 (validate_exec_file): New variables, enums, functions.
13772 (exec_file_locate_attach, print_section_info): Style the filenames.
13773 (_initialize_exec): Install show_exec_file_mismatch_command and
13774 set_exec_file_mismatch_command.
13775 * gdbcore.h (validate_exec_file): Declare.
13776 * infcmd.c (attach_command): Call validate_exec_file.
13777 * remote.c ( remote_target::remote_add_inferior): Likewise.
13778
7ffa82e1
AB
137792020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13780
13781 * frame.c (find_frame_sal): Move call to get_next_frame into more
13782 inner scope.
13783 * inline-frame.c (inilne_state) <inline_state>: Update argument
13784 types.
13785 (inilne_state) <skipped_symbol>: Rename to...
13786 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13787 (skip_inline_frames): Build vector of skipped symbols and use this
13788 to reate the inline_state.
13789 (inline_skipped_symbol): Add a comment and some assertions, fetch
13790 skipped symbol from the list.
13791
3d92a3e3
AB
137922020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13793
13794 * buildsym.c (lte_is_less_than): Delete.
13795 (buildsym_compunit::end_symtab_with_blockvector): Create local
13796 lambda function to sort line table entries, and use
13797 std::stable_sort instead of std::sort.
13798 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13799 markers when looking for a previous line.
13800
94a72be7
AB
138012020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13802
13803 * dwarf2read.c (lnp_state_machine::record_line): Include
13804 end_sequence parameter in debug print out. Record the line if we
13805 are at an end_sequence marker even if it's not the start of a
13806 statement.
13807 * symmisc.c (maintenance_print_one_line_table): Print end of
13808 sequence markers with 'END' not '0'.
13809
53af73bf
PA
138102020-01-24 Pedro Alves <palves@redhat.com>
13811
13812 PR gdb/25410
13813 * thread.c (scoped_restore_current_thread::restore): Use
13814 switch_to_inferior_no_thread.
13815 * exec.c: Include "progspace-and-thread.h".
13816 (add_target_sections, remove_target_sections):
13817 scoped_restore_current_pspace_and_thread instead of
13818 scoped_restore_current_thread.
13819 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13820 and aspace to the inferior before calling clone_program_space.
13821 Remove stale comment.
13822
3050c6f4
CB
138232020-01-24 Christian Biesinger <cbiesinger@google.com>
13824
13825 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13826 (arm_netbsd_nat_target::fetch_registers): ...this.
13827 (arm_nbsd_nat_target::store_registers): Rename to...
13828 (arm_netbsd_nat_target::store_registers): ...this.
13829
73685c7e
CB
138302020-01-24 Christian Biesinger <cbiesinger@google.com>
13831
13832 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13833 register_t.
13834
89203d40
CB
138352020-01-24 Christian Biesinger <cbiesinger@google.com>
13836
13837 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13838 Update comment.
13839 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13840 Likewise.
13841 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13842 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13843 the correct replacement (iterate_over_regset_sections).
13844 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13845 Update comment.
13846
1ba1ac88
AB
138472020-01-24 Graham Markall <graham.markall@embecosm.com>
13848
13849 PR gdb/23718
13850 * gdb/python/python.c (execute_gdb_command): Call
13851 async_enable_stdin in catch block.
13852
f3364a6d
AB
138532020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13854
13855 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13856 SWITCH_THRU_ALL_UIS.
13857
733d0a67
AB
138582020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13859
13860 PR tui/9765
13861 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13862 comment, add extra parameter, and update to store previous symbol
13863 when appropriate.
13864 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13865 add extra parameter.
13866 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13867 remove unneeded parameter, add try/catch around gdb_print_insn,
13868 rewrite to add items to asm_lines vector.
13869 (tui_find_backward_disassembly_start_address): New function.
13870 (tui_find_disassembly_address): Updated throughout.
13871 (tui_disasm_window::set_contents): Update for changes to
13872 tui_disassemble.
13873 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13874 number of lines to scroll.
13875
b3b3bada
SM
138762020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13877
13878 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13879 (SECT_OFF_DATA): Likewise.
13880 (SECT_OFF_RODATA): Likewise.
13881 (SECT_OFF_TEXT): Likewise.
13882 (SECT_OFF_BSS): Likewise.
13883 (struct objfile) <text_section_offset, data_section_offset>: New
13884 methods.
13885 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13886 objfile::text_section_offset.
13887 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13888 * coffread.c (coff_symtab_read): Likewise.
13889 (enter_linenos): Likewise.
13890 (process_coff_symbol): Likewise.
13891 * ctfread.c (get_objfile_text_range): Likewise.
13892 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13893 Use objfile::data_section_offset.
13894 * dwarf2-frame.c (execute_cfa_program): Use
13895 objfile::text_section_offset.
13896 (dwarf2_frame_find_fde): Likewise.
13897 * dwarf2read.c (create_addrmap_from_index): Likewise.
13898 (create_addrmap_from_aranges): Likewise.
13899 (dw2_find_pc_sect_compunit_symtab): Likewise.
13900 (process_psymtab_comp_unit_reader): Likewise.
13901 (add_partial_symbol): Likewise.
13902 (add_partial_subprogram): Likewise.
13903 (process_full_comp_unit): Likewise.
13904 (read_file_scope): Likewise.
13905 (read_func_scope): Likewise.
13906 (read_lexical_block_scope): Likewise.
13907 (read_call_site_scope): Likewise.
13908 (dwarf2_rnglists_process): Likewise.
13909 (dwarf2_ranges_process): Likewise.
13910 (dwarf2_ranges_read): Likewise.
13911 (dwarf_decode_lines_1): Likewise.
13912 (new_symbol): Likewise.
13913 (dwarf2_fetch_die_loc_sect_off): Likewise.
13914 (dwarf2_per_cu_text_offset): Likewise.
13915 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13916 * hppa-tdep.c (read_unwind_info): Likewise.
13917 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13918 * psympriv.h (struct partial_symtab): Likewise.
13919 * psymtab.c (find_pc_sect_psymtab): Likewise.
13920 * solib-svr4.c (enable_break): Likewise.
13921 * stap-probe.c (relocate_address): Use
13922 objfile::data_section_offset.
13923 * xcoffread.c (enter_line_range): Use
13924 objfile::text_section_offset.
13925 (read_xcoff_symtab): Likewise.
13926
ab53f382
SM
139272020-01-23 Simon Marchi <simon.marchi@efficios.com>
13928
13929 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13930 declaration to narrower scopes.
13931
e7eee665
SM
139322020-01-23 Simon Marchi <simon.marchi@efficios.com>
13933
13934 * darwin-nat.h (struct darwin_exception_msg, enum
13935 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13936 Move up.
13937 (class darwin_nat_target) <wait_1, check_new_threads,
13938 decode_exception_message, decode_message, stop_inferior,
13939 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13940 * darwin-nat.c (darwin_check_new_threads): Rename to...
13941 (darwin_nat_target::check_new_threads): ... this.
13942 (darwin_suspend_inferior_it): Remove.
13943 (darwin_decode_exception_message): Rename to...
13944 (darwin_nat_target::decode_exception_message): ... this.
13945 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13946 (darwin_decode_message): Rename to...
13947 (darwin_nat_target::decode_message): ... this.
13948 (cancel_breakpoint): Rename to...
13949 (darwin_nat_target::cancel_breakpoint): ... this.
13950 (darwin_wait): Rename to...
13951 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13952 instead of iterate_over_inferiors.
13953 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13954 (darwin_stop_inferior): Rename to...
13955 (darwin_nat_target::stop_inferior): ... this.
13956 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13957 (darwin_init_thread_list): Rename to...
13958 (darwin_nat_target::init_thread_list): ... this.
13959 (darwin_ptrace_him): Rename to...
13960 (darwin_nat_target::ptrace_him): ... this.
13961 (darwin_nat_target::create_inferior): Pass lambda function to
13962 fork_inferior.
13963 (darwin_nat_target::detach): Call stop_inferior instead of
13964 darwin_stop_inferior.
13965 * fork-inferior.h (fork_inferior): Change init_trace_fun
13966 parameter to gdb::function_view.
13967 * fork-inferior.c (fork_inferior): Likewise.
13968
c162ed3e
HD
139692020-01-23 Hannes Domani <ssbssa@yahoo.de>
13970
13971 * i386-cygwin-tdep.c (core_process_module_section): Update.
13972 * windows-nat.c (struct lm_info_windows): Add text_offset.
13973 (windows_xfer_shared_libraries): Update.
13974 * windows-tdep.c (windows_xfer_shared_library):
13975 Add text_offset_cached argument.
13976 * windows-tdep.h (windows_xfer_shared_library): Update.
13977
a1237872
SM
139782020-01-21 Simon Marchi <simon.marchi@efficios.com>
13979
13980 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13981
b3ee6dd9
SM
139822020-01-21 Simon Marchi <simon.marchi@efficios.com>
13983
13984 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13985 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13986 replace with range-based for.
13987 (gdbsim_interrupt_inferior): Remove.
13988 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13989 with a range-based for. Inline code from
13990 gdbsim_interrupt_inferior.
13991
f9fac3c8
SM
139922020-01-21 Simon Marchi <simon.marchi@efficios.com>
13993
13994 * infrun.c (proceed): Fix indentation.
13995
f6474de9
TT
139962020-01-21 Tom Tromey <tromey@adacore.com>
13997
13998 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13999 * python/python.c (python_extension_ops): Update.
14000 (gdbpy_colorize): New function.
14001 * python/lib/gdb/__init__.py (colorize): New function.
14002 * extension.h (ext_lang_colorize): Declare.
14003 * extension.c (ext_lang_colorize): New function.
14004 * extension-priv.h (struct extension_language_ops) <colorize>: New
14005 member.
14006 * cli/cli-style.c (_initialize_cli_style): Update help text.
14007
f0c702d4
LM
140082020-01-21 Luis Machado <luis.machado@linaro.org>
14009
14010 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14011 <cond>: Change type to bool.
14012 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14013 (aarch64_displaced_step_cb): Likewise.
14014 (aarch64_displaced_step_tb): Likewise.
14015
1ab139e5
LM
140162020-01-21 Luis Machado <luis.machado@linaro.org>
14017
14018 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14019 output.
14020
0c271889
LM
140212020-01-21 Luis Machado <luis.machado@linaro.org>
14022
14023 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14024 <pc_adjust>: Adjust the documentation.
14025 (aarch64_displaced_step_fixup): Check if PC really moved before
14026 adjusting it.
14027
4d89c1c7
TT
140282020-01-19 Tom Tromey <tom@tromey.com>
14029
14030 * disasm.c (~gdb_disassembler): New destructor.
14031 (gdb_buffered_insn_length): Call disassemble_free_target.
14032 * disasm.h (class gdb_disassembler): Declare destructor. Use
14033 DISABLE_COPY_AND_ASSIGN.
14034
c0ab21c2
TT
140352020-01-19 Tom Tromey <tom@tromey.com>
14036
14037 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14038 (die_reader_func_ftype): Remove.
14039 (cutu_reader): New class.
14040 (dw2_get_file_names_reader): Remove "data" parameter.
14041 (dw2_get_file_names): Use cutu_reader.
14042 (create_debug_type_hash_table): Update.
14043 (read_cutu_die_from_dwo): Update comment.
14044 (lookup_dwo_unit): Add dwo_name parameter.
14045 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14046 die_reader_func_ftype and data parameters.
14047 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14048 Remove die_reader_func_ftype and data parameters.
14049 (~cutu_reader): New; from init_cutu_and_read_dies.
14050 (cutu_reader::cutu_reader): Rename from
14051 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14052 and data parameters.
14053 (init_cutu_and_read_dies_simple): Remove.
14054 (struct process_psymtab_comp_unit_data): Remove.
14055 (process_psymtab_comp_unit_reader): Remove data parameter; add
14056 want_partial_unit and pretend_language parameters.
14057 (process_psymtab_comp_unit): Use cutu_reader.
14058 (build_type_psymtabs_reader): Remove data parameter.
14059 (build_type_psymtabs_1): Use cutu_reader.
14060 (process_skeletonless_type_unit): Likewise.
14061 (load_partial_comp_unit_reader): Remove.
14062 (load_partial_comp_unit): Use cutu_reader.
14063 (load_full_comp_unit_reader): Remove.
14064 (load_full_comp_unit): Use cutu_reader.
14065 (struct create_dwo_cu_data): Remove.
14066 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14067 dwo_unit parameters.
14068 (create_cus_hash_table): Use cutu_reader.
14069 (struct dwarf2_read_addr_index_data): Remove.
14070 (dwarf2_read_addr_index_reader): Remove.
14071 (dwarf2_read_addr_index): Use cutu_reader.
14072 (read_signatured_type_reader): Remove.
14073 (read_signatured_type): Use cutu_reader.
14074
45bbae5c
TT
140752020-01-19 Tom Tromey <tom@tromey.com>
14076
14077 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14078 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14079 (tui_wrefresh): Declare.
14080 * tui/tui-wingeneral.c (suppress_output): New global.
14081 (tui_suppress_output, ~tui_suppress_output): New constructor and
14082 destructor.
14083 (tui_wrefresh): New function.
14084 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14085 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14086 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14087 method.
14088 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14089 tui_wrefresh.
14090 (tui_data_window::no_refresh): New method.
14091 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14092 (tui_reg_command): Use tui_suppress_output
14093 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14094 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14095 method.
14096 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14097
4f13c1c0
TT
140982020-01-19 Tom Tromey <tom@tromey.com>
14099
14100 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14101 Handle case where symtab is null.
14102
fa47e446
SM
141032020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14104
14105 * linux-fork.c (one_fork_p): Simplify.
14106
26f42329
SM
141072020-01-17 Simon Marchi <simon.marchi@efficios.com>
14108
14109 * top.c (struct qt_args): Remove.
14110 (kill_or_detach): Change return type to void, replace `void *`
14111 parameter with a proper one.
14112 (print_inferior_quit_action): Likewise.
14113 (quit_confirm): Use range-based for loop to iterate over inferiors.
14114 (quit_force): Likewise.
14115
a9ac81b1
SM
141162020-01-17 Simon Marchi <simon.marchi@efficios.com>
14117
14118 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14119 `void *` parameter with proper parameters.
14120 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14121 (print_one_inferior): Change return type to void, replace `void *`
14122 parameter with proper parameters.
14123 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14124 inferiors.
14125 (get_other_inferior): Remove.
14126 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14127 inferiors.
14128
788eca49
SM
141292020-01-17 Simon Marchi <simon.marchi@efficios.com>
14130
14131 * mi/mi-interp.c (report_initial_inferior): Remove.
14132 (mi_interp::init): Use range-based for to iterate over inferiors.
14133
d9bc85b6
SM
141342020-01-17 Simon Marchi <simon.marchi@efficios.com>
14135
14136 * python/py-inferior.c (build_inferior_list): Remove.
14137 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14138
40c94099
CB
141392020-01-16 Christian Biesinger <cbiesinger@google.com>
14140
14141 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14142 (btrace_stitch_trace): Likewise.
14143 * charset.c (intermediate_encoding): Likewise (vaild).
14144 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14145 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14146 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14147
e0cdfe3c
HD
141482020-01-16 Hannes Domani <ssbssa@yahoo.de>
14149
14150 * windows-tdep.c (windows_get_tlb_type):
14151 Add rtl_user_process_parameters type.
14152
790f1718 141532020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 14154 Norbert Lange <nolange79@gmail.com>
790f1718
PA
14155
14156 PR build/24805
14157 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14158 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14159 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14160 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14161 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14162 (ps_plog): Redeclare exported functions with default visibility.
14163
3112ed97
NA
141642020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14165
14166 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14167 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14168
8dc3273e
SM
141692020-01-15 Simon Marchi <simon.marchi@efficios.com>
14170
14171 * infcmd.c (post_create_inferior): Use get_thread_regcache
14172 instead of get_current_regcache.
14173
ff47f4f0
TT
141742020-01-14 Tom Tromey <tom@tromey.com>
14175
14176 PR symtab/12535:
14177 * python/python.c (gdbpy_decode_line): Treat empty string the same
14178 as no argument.
14179
975f45b7
TT
141802020-01-14 Tom Tromey <tom@tromey.com>
14181
14182 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14183
25e57356
TT
141842020-01-14 Tom Tromey <tom@tromey.com>
14185
14186 * nat/linux-btrace.c: Don't include <config.h>.
14187 * nat/linux-ptrace.c: Don't include <config.h>.
14188 * nat/x86-linux-dregs.c: Don't include <config.h>.
14189
05ea2a05
TT
141902020-01-14 Tom Tromey <tom@tromey.com>
14191
14192 * configure: Rebuild.
14193 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14194
01027315
TT
141952020-01-14 Tom Tromey <tom@tromey.com>
14196
14197 * nat/x86-linux-dregs.c: Include configh.h.
14198 * nat/linux-ptrace.c: Include configh.h.
14199 * nat/linux-btrace.c: Include configh.h.
14200 * defs.h: Include config.h, bfd.h.
14201 * configure.ac: Don't source common.host.
14202 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14203 * configure: Rebuild.
14204 * acinclude.m4: Update path.
14205 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14206 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14207 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14208 (CLIBS): Add LIBSUPPORT.
14209 (CDEPS): Likewise.
14210 (COMMON_SFILES): Remove gdbsupport files.
14211 (HFILES_NO_SRCDIR): Likewise.
14212 (stamp-version): Update path to create-version.sh.
14213 (ALLDEPFILES): Remove gdbsupport files.
14214
b2ceabe8
TT
142152020-01-14 Tom Tromey <tom@tromey.com>
14216
14217 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14218 USE_WIN32API when needed.
14219 * configure.ac (USE_WIN32API): Don't define.
14220 (WIN32LIBS): Use WIN32APILIBS.
14221 * configure: Rebuild.
14222
25c51f71
TT
142232020-01-14 Tom Tromey <tom@tromey.com>
14224
14225 * configure: Rebuild.
14226 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14227
717c684d
BE
142282020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14229
14230 * skip.c (skip_function_command): Make skip w/o arguments use the
14231 name of the inlined function if pc is inside any inlined function.
14232
7da6a5b9
LM
142332020-01-14 Luis Machado <luis.machado@linaro.org>
14234
14235 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14236 * infrun.c (resume_1): Likewise.
14237 (handle_inferior_event): Remove stale comment.
14238 * linux-nat.c (linux_nat_target::resume): Update comments.
14239 (save_stop_reason): Likewise.
14240 (linux_nat_filter_event): Likewise.
14241 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14242
44e4c775
AB
142432020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14244
14245 * elfread.c (record_minimal_symbol): Set section index to 0 for
14246 non-allocatable sections.
14247
18a8505e
AT
14248
142492020-01-13 Ali Tamur <tamur@google.com>
14250
14251 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14252 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14253 to gdb::optional. Update comments.
14254 (dwo_file): Update comments.
14255 (read_attribute): Update API to take an additional out parameter,
14256 need_reprocess. This is used to mark attributes that need other
14257 attributes (e.g. str_offsets_base) for correct computation which may not
14258 have been read yet.
14259 (read_attribute_reprocess): New function declaration.
14260 (read_addr_index): Likewise.
14261 (read_dwo_str_index): Likewise.
14262 (read_stub_str_index): Likewise.
14263 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14264 (lookup_addr_base): New function definition.
14265 (lookup_ranges_base): Likewise.
14266 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14267 lookup_ranges_base.
14268 (init_cutu_and_read_dies): Update comments.
14269 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14270 unit. This is used to inherit parent's str_offsets_base and addr_base.
14271 Update comments.
14272 (init_cutu_and_read_dies_simple): Reflect API changes.
14273 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14274 (create_cus_hash_table): Change API to take parent compile unit.
14275 Reflect API changes.
14276 (open_and_init_dwo_file): Reflect API changes.
14277 (dwarf2_get_pc_bounds): Update comments.
14278 (dwarf2_record_block_ranges): Likewise.
14279 (read_full_die_1): Change implementation to reprocess attributes that
14280 need str_offsets_base and addr_base.
14281 (partial_die_info::read): Likewise.
14282 (read_attribute_reprocess): New function definition.
14283 (read_attribute_value): Change API to take an additional out parameter,
14284 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14285 when a non-dwo compile unit has index based attributes.
14286 (read_attribute): Reflect API changes.
14287 (read_addr_index_1): Reflect API changes. Update comments.
14288 (dwarf2_read_addr_index_data): Reflect API changes.
14289 (dwarf2_read_addr_index): Likewise.
14290 (read_str_index): Change API and implementation. This becomes a helper
14291 to be used by the new string index related methods. Update error
14292 message and comments.
14293 (read_dwo_str_index): New function definition.
14294 (read_stub_str_index): Likewise.
14295 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14296 * symfile.h (dwarf2_debug_sections): Likewise.
14297 * xcoffread.c (dwarf2_debug_sections): Likewise.
14298
0cac9354
SM
142992020-01-13 Simon Marchi <simon.marchi@efficios.com>
14300
14301 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14302 core_reg_sect type to gdb_byte *.
14303 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14304 * cris-tdep.c (fetch_core_registers): Likewise.
14305 * corelow.c (core_target::get_core_register_section): Change
14306 type of `contents` to gdb::byte_vector.
14307
9a6d629c
AB
143082020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14309
14310 * tui/tui-wingeneral.c (box_win): Position the title in the center
14311 of the border.
14312
d8b2f9e3
SM
143132020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14314
14315 * corelow.c (core_target::get_core_register_section): Use
14316 std::vector instead of alloca.
14317
bb564c58
SM
143182020-01-13 Simon Marchi <simon.marchi@efficios.com>
14319
14320 * warning.m4: Add -Wmissing-declarations to build_warnings.
14321 * configure: Re-generate.
14322
6b366111
SM
143232020-01-13 Simon Marchi <simon.marchi@efficios.com>
14324
14325 * python/python.c (init__gdb_module): Add declaration.
14326
6c265988
SM
143272020-01-13 Simon Marchi <simon.marchi@efficios.com>
14328
14329 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14330 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14331 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14332 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14333 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14334 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14335 * ada-exp.y (_initialize_ada_exp): Add declaration.
14336 * ada-lang.c (_initialize_ada_language): Add declaration.
14337 * ada-tasks.c (_initialize_tasks): Add declaration.
14338 * agent.c (_initialize_agent): Add declaration.
14339 * aix-thread.c (_initialize_aix_thread): Add declaration.
14340 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14341 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14342 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14343 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14344 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14345 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14346 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14347 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14348 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14349 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14350 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14351 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14352 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14353 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14354 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14355 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14356 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14357 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14358 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14359 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14360 * annotate.c (_initialize_annotate): Add declaration.
14361 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14362 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14363 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14364 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14365 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14366 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14367 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14368 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14369 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14370 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14371 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14372 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14373 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14374 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14375 * auto-load.c (_initialize_auto_load): Add declaration.
14376 * auxv.c (_initialize_auxv): Add declaration.
14377 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14378 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14379 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14380 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14381 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14382 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14383 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14384 * breakpoint.c (_initialize_breakpoint): Add declaration.
14385 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14386 * btrace.c (_initialize_btrace): Add declaration.
14387 * charset.c (_initialize_charset): Add declaration.
14388 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14389 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14390 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14391 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14392 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14393 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14394 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14395 * coffread.c (_initialize_coffread): Add declaration.
14396 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14397 * compile/compile.c (_initialize_compile): Add declaration.
14398 * complaints.c (_initialize_complaints): Add declaration.
14399 * completer.c (_initialize_completer): Add declaration.
14400 * copying.c (_initialize_copying): Add declaration.
14401 * corefile.c (_initialize_core): Add declaration.
14402 * corelow.c (_initialize_corelow): Add declaration.
14403 * cp-abi.c (_initialize_cp_abi): Add declaration.
14404 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14405 * cp-support.c (_initialize_cp_support): Add declaration.
14406 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14407 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14408 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14409 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14410 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14411 * ctfread.c (_initialize_ctfread): Add declaration.
14412 * d-lang.c (_initialize_d_language): Add declaration.
14413 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14414 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14415 * dbxread.c (_initialize_dbxread): Add declaration.
14416 * dcache.c (_initialize_dcache): Add declaration.
14417 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14418 * disasm.c (_initialize_disasm): Add declaration.
14419 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14420 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14421 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14422 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14423 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14424 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14425 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14426 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14427 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14428 * elfread.c (_initialize_elfread): Add declaration.
14429 * exec.c (_initialize_exec): Add declaration.
14430 * extension.c (_initialize_extension): Add declaration.
14431 * f-lang.c (_initialize_f_language): Add declaration.
14432 * f-valprint.c (_initialize_f_valprint): Add declaration.
14433 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14434 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14435 * filesystem.c (_initialize_filesystem): Add declaration.
14436 * findcmd.c (_initialize_mem_search): Add declaration.
14437 * findvar.c (_initialize_findvar): Add declaration.
14438 * fork-child.c (_initialize_fork_child): Add declaration.
14439 * frame-base.c (_initialize_frame_base): Add declaration.
14440 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14441 * frame.c (_initialize_frame): Add declaration.
14442 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14443 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14444 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14445 * gcore.c (_initialize_gcore): Add declaration.
14446 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14447 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14448 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14449 * gdbarch.c (_initialize_gdbarch): Add declaration.
14450 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14451 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14452 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14453 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14454 * go-lang.c (_initialize_go_language): Add declaration.
14455 * go32-nat.c (_initialize_go32_nat): Add declaration.
14456 * guile/guile.c (_initialize_guile): Add declaration.
14457 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14458 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14459 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14460 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14461 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14462 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14463 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14464 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14465 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14466 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14467 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14468 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14469 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14470 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14471 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14472 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14473 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14474 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14475 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14476 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14477 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14478 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14479 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14480 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14481 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14482 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14483 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14484 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14485 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14486 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14487 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14488 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14489 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14490 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14491 * infcall.c (_initialize_infcall): Add declaration.
14492 * infcmd.c (_initialize_infcmd): Add declaration.
14493 * inflow.c (_initialize_inflow): Add declaration.
14494 * infrun.c (_initialize_infrun): Add declaration.
14495 * interps.c (_initialize_interpreter): Add declaration.
14496 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14497 * jit.c (_initialize_jit): Add declaration.
14498 * language.c (_initialize_language): Add declaration.
14499 * linux-fork.c (_initialize_linux_fork): Add declaration.
14500 * linux-nat.c (_initialize_linux_nat): Add declaration.
14501 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14502 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14503 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14504 * m2-lang.c (_initialize_m2_language): Add declaration.
14505 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14506 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14507 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14508 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14509 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14510 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14511 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14512 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14513 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14514 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14515 * machoread.c (_initialize_machoread): Add declaration.
14516 * macrocmd.c (_initialize_macrocmd): Add declaration.
14517 * macroscope.c (_initialize_macroscope): Add declaration.
14518 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14519 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14520 * maint.c (_initialize_maint_cmds): Add declaration.
14521 * mdebugread.c (_initialize_mdebugread): Add declaration.
14522 * memattr.c (_initialize_mem): Add declaration.
14523 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14524 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14525 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14526 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14527 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14528 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14529 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14530 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14531 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14532 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14533 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14534 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14535 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14536 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14537 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14538 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14539 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14540 * mipsread.c (_initialize_mipsread): Add declaration.
14541 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14542 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14543 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14544 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14545 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14546 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14547 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14548 * nto-procfs.c (_initialize_procfs): Add declaration.
14549 * objc-lang.c (_initialize_objc_language): Add declaration.
14550 * observable.c (_initialize_observer): Add declaration.
14551 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14552 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14553 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14554 * osabi.c (_initialize_gdb_osabi): Add declaration.
14555 * osdata.c (_initialize_osdata): Add declaration.
14556 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14557 * parse.c (_initialize_parse): Add declaration.
14558 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14559 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14560 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14561 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14562 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14563 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14564 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14565 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14566 * printcmd.c (_initialize_printcmd): Add declaration.
14567 * probe.c (_initialize_probe): Add declaration.
14568 * proc-api.c (_initialize_proc_api): Add declaration.
14569 * proc-events.c (_initialize_proc_events): Add declaration.
14570 * proc-service.c (_initialize_proc_service): Add declaration.
14571 * procfs.c (_initialize_procfs): Add declaration.
14572 * producer.c (_initialize_producer): Add declaration.
14573 * psymtab.c (_initialize_psymtab): Add declaration.
14574 * python/python.c (_initialize_python): Add declaration.
14575 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14576 * record-btrace.c (_initialize_record_btrace): Add declaration.
14577 * record-full.c (_initialize_record_full): Add declaration.
14578 * record.c (_initialize_record): Add declaration.
14579 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14580 * regcache.c (_initialize_regcache): Add declaration.
14581 * reggroups.c (_initialize_reggroup): Add declaration.
14582 * remote-notif.c (_initialize_notif): Add declaration.
14583 * remote-sim.c (_initialize_remote_sim): Add declaration.
14584 * remote.c (_initialize_remote): Add declaration.
14585 * reverse.c (_initialize_reverse): Add declaration.
14586 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14587 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14588 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14589 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14590 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14591 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14592 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14593 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14594 Add declaration.
14595 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14596 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14597 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14598 * rust-exp.y (_initialize_rust_exp): Add declaration.
14599 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14600 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14601 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14602 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14603 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14604 * score-tdep.c (_initialize_score_tdep): Add declaration.
14605 * ser-go32.c (_initialize_ser_dos): Add declaration.
14606 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14607 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14608 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14609 * ser-uds.c (_initialize_ser_socket): Add declaration.
14610 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14611 * serial.c (_initialize_serial): Add declaration.
14612 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14613 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14614 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14615 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14616 * skip.c (_initialize_step_skip): Add declaration.
14617 * sol-thread.c (_initialize_sol_thread): Add declaration.
14618 * solib-aix.c (_initialize_solib_aix): Add declaration.
14619 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14620 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14621 * solib-frv.c (_initialize_frv_solib): Add declaration.
14622 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14623 * solib-target.c (_initialize_solib_target): Add declaration.
14624 * solib.c (_initialize_solib): Add declaration.
14625 * source-cache.c (_initialize_source_cache): Add declaration.
14626 * source.c (_initialize_source): Add declaration.
14627 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14628 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14629 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14630 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14631 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14632 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14633 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14634 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14635 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14636 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14637 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14638 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14639 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14640 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14641 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14642 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14643 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14644 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14645 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14646 * stabsread.c (_initialize_stabsread): Add declaration.
14647 * stack.c (_initialize_stack): Add declaration.
14648 * stap-probe.c (_initialize_stap_probe): Add declaration.
14649 * std-regs.c (_initialize_frame_reg): Add declaration.
14650 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14651 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14652 * symfile.c (_initialize_symfile): Add declaration.
14653 * symmisc.c (_initialize_symmisc): Add declaration.
14654 * symtab.c (_initialize_symtab): Add declaration.
14655 * target.c (_initialize_target): Add declaration.
14656 * target-connection.c (_initialize_target_connection): Add
14657 declaration.
14658 * target-dcache.c (_initialize_target_dcache): Add declaration.
14659 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14660 * thread.c (_initialize_thread): Add declaration.
14661 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14662 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14663 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14664 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14665 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14666 * tracectf.c (_initialize_ctf): Add declaration.
14667 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14668 * tracefile.c (_initialize_tracefile): Add declaration.
14669 * tracepoint.c (_initialize_tracepoint): Add declaration.
14670 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14671 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14672 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14673 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14674 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14675 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14676 * tui/tui.c (_initialize_tui): Add declaration.
14677 * typeprint.c (_initialize_typeprint): Add declaration.
14678 * ui-style.c (_initialize_ui_style): Add declaration.
14679 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14680 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14681 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14682 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14683 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14684 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14685 * unittests/filtered_iterator-selftests.c
14686 (_initialize_filtered_iterator_selftests): Add declaration.
14687 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14688 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14689 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14690 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14691 * unittests/main-thread-selftests.c
14692 (_initialize_main_thread_selftests): Add declaration.
14693 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14694 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14695 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14696 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14697 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14698 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14699 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14700 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14701 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14702 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14703 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14704 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14705 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14706 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14707 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14708 declaration.
14709 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14710 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14711 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14712 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14713 * user-regs.c (_initialize_user_regs): Add declaration.
14714 * utils.c (_initialize_utils): Add declaration.
14715 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14716 * valops.c (_initialize_valops): Add declaration.
14717 * valprint.c (_initialize_valprint): Add declaration.
14718 * value.c (_initialize_values): Add declaration.
14719 * varobj.c (_initialize_varobj): Add declaration.
14720 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14721 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14722 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14723 * windows-nat.c (_initialize_windows_nat): Add declaration.
14724 (_initialize_check_for_gdb_ini): Add declaration.
14725 (_initialize_loadable): Add declaration.
14726 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14727 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14728 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14729 * xcoffread.c (_initialize_xcoffread): Add declaration.
14730 * xml-support.c (_initialize_xml_support): Add declaration.
14731 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14732 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14733 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14734 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14735
e2de1eec
SM
147362020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14737
14738 * regformats/regdat.sh: Generate declaration for init function.
14739
e0037b4c
SM
147402020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14741
14742 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14743 up.
14744 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14745 close_one_inferior>: New methods.
14746 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14747 pass down target to find_inferior_pid.
14748 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14749 Pass down target to find_inferior_ptid.
14750 (gdbsim_target::create_inferior): Pass down target to
14751 add_thread_silent.
14752 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14753 target down to find_inferior_ptid and switch_to_thread.
14754 (gdbsim_target::close): Update to call close_one_inferior.
14755 (struct resume_data): Remove.
14756 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14757 directly, rather than through a void pointer.
14758 (gdbsim_target::resume): Update to call resume_one_inferior.
14759
58920b5b
SM
147602020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14761
14762 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14763
4ec89149
PA
147642020-01-12 Pedro Alves <palves@redhat.com>
14765
14766 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14767 directly for the current inferior instead of
14768 discard_all_inferiors.
14769 (discard_all_inferiors): Delete.
14770
7c392d1d
TT
147712020-01-11 Tom Tromey <tom@tromey.com>
14772
14773 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14774 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14775 deprecated_safe_get_selected_frame.
14776
d9ebdab7
TBA
147772020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14778
14779 * inferior.c (print_inferior): Switch inferior before printing it.
14780
f3c469b9
PA
147812020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14782 Pedro Alves <palves@redhat.com>
14783
14784 * progspace-and-thread.c (switch_to_program_space_and_thread):
14785 Assert there's an inferior for PSPACE. Use
14786 switch_to_inferior_no_thread to switch the inferior too.
14787 * progspace.c (program_space::~program_space): Call
14788 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14789 (program_space::free_all_objfiles): Don't call clear_symtab_users
14790 here.
14791 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14792
65c574f6
PA
147932020-01-10 Pedro Alves <palves@redhat.com>
14794
14795 * NEWS: Mention multi-target debugging, "info connections", and
14796 "add-inferior -no-connection".
14797
2f4fcf00
PA
147982020-01-10 Pedro Alves <palves@redhat.com>
14799
14800 * infrun.c: Include "target-connection.h".
14801 (check_multi_target_resumption): New.
14802 (proceed): Call it.
14803 * target-connection.c (make_target_connection_string): Make
14804 extern.
14805 * target-connection.h (make_target_connection_string): Declare.
14806
121b3efd
PA
148072020-01-10 Pedro Alves <palves@redhat.com>
14808
14809 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14810 * inferior.c (uiout_field_connection): New function.
14811 (print_inferior): Add new "connection-id" column.
14812 (add_inferior_command): Show connection number/string of added
14813 inferior.
14814 * process-stratum-target.h
14815 (process_stratum_target::connection_string): New virtual method.
14816 (process_stratum_target::connection_number): New field.
14817 * remote.c (remote_target::connection_string): New override.
14818 * target-connection.c: New file.
14819 * target-connection.h: New file.
14820 * target.c (decref_target): Remove process_stratum targets from
14821 the connection list.
14822 (target_stack::push): Add process_stratum targets to the
14823 connection list.
14824
4f837581
PA
148252020-01-10 Pedro Alves <palves@redhat.com>
14826
14827 Revert:
14828 2016-04-12 Pedro Alves <palves@redhat.com>
14829 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14830 Remove references to name.
14831 * serial.h (struct serial) <name>: Delete.
14832
f4ec508e
PA
148332020-01-10 Pedro Alves <palves@redhat.com>
14834
14835 * gdbarch-selftests.c (register_to_value_test): Remove "target
14836 already pushed" check.
14837
5b6d1e4f
PA
148382020-01-10 Pedro Alves <palves@redhat.com>
14839 John Baldwin <jhb@FreeBSD.org>
14840
14841 * aarch64-linux-nat.c
14842 (aarch64_linux_nat_target::thread_architecture): Adjust.
14843 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14844 (task_command_1): Likewise.
14845 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14846 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14847 (aix_thread_target::store_registers)
14848 (aix_thread_target::thread_alive): Adjust.
14849 * amd64-fbsd-tdep.c: Include "inferior.h".
14850 (amd64fbsd_get_thread_local_address): Pass down target.
14851 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14852 thread's gdbarch instead of target_gdbarch.
14853 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14854 get_last_target_status.
14855 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14856 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14857 inferiors.
14858 (update_inserted_breakpoint_locations): Skip if inferiors with no
14859 execution.
14860 (update_global_location_list): When handling moribund locations,
14861 find representative inferior for location's pspace, and use thread
14862 count of its process_stratum target.
14863 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14864 * bsd-uthread.c (bsd_uthread_target::wait): Use
14865 as_process_stratum_target and adjust thread_change_ptid and
14866 add_thread calls.
14867 (bsd_uthread_target::update_thread_list): Use
14868 as_process_stratum_target and adjust find_thread_ptid,
14869 thread_change_ptid and add_thread calls.
14870 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14871 find_thread_ptid call.
14872 * corelow.c (add_to_thread_list): Adjust add_thread call.
14873 (core_target_open): Adjust add_thread_silent and thread_count
14874 calls.
14875 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14876 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14877 * event-top.c (async_disconnect): Pop targets from all inferiors.
14878 * exec.c (add_target_sections): Push exec target on all inferiors
14879 sharing the program space.
14880 (remove_target_sections): Remove the exec target from all
14881 inferiors sharing the program space.
14882 (exec_on_vfork): New.
14883 * exec.h (exec_on_vfork): Declare.
14884 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14885 Pass it down.
14886 (fbsd_nat_target::update_thread_list): Adjust.
14887 (fbsd_nat_target::resume): Adjust.
14888 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14889 down.
14890 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14891 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14892 get_thread_arch_regcache call.
14893 * fork-child.c (gdb_startup_inferior): Pass target down to
14894 startup_inferior and set_executing.
14895 * gdbthread.h (struct process_stratum_target): Forward declare.
14896 (add_thread, add_thread_silent, add_thread_with_info)
14897 (in_thread_list): Add process_stratum_target parameter.
14898 (find_thread_ptid(inferior*, ptid_t)): New overload.
14899 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14900 parameter.
14901 (all_threads()): Delete overload.
14902 (all_threads, all_non_exited_threads): Add process_stratum_target
14903 parameter.
14904 (all_threads_safe): Use brace initialization.
14905 (thread_count): Add process_stratum_target parameter.
14906 (set_resumed, set_running, set_stop_requested, set_executing)
14907 (threads_are_executing, finish_thread_state): Add
14908 process_stratum_target parameter.
14909 (switch_to_thread): Use is_current_thread.
14910 * i386-fbsd-tdep.c: Include "inferior.h".
14911 (i386fbsd_get_thread_local_address): Pass down target.
14912 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14913 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14914 have_inferiors check.
14915 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14916 (inf_ptrace_target::attach): Adjust.
14917 * infcall.c (run_inferior_call): Adjust.
14918 * infcmd.c (run_command_1): Pass target to
14919 scoped_finish_thread_state.
14920 (proceed_thread_callback): Skip inferiors with no execution.
14921 (continue_command): Rename 'all_threads' local to avoid hiding
14922 'all_threads' function. Adjust get_last_target_status call.
14923 (prepare_one_step): Adjust set_running call.
14924 (signal_command): Use user_visible_resume_target. Compare thread
14925 pointers instead of inferior_ptid.
14926 (info_program_command): Adjust to pass down target.
14927 (attach_command): Mark target's 'thread_executing' flag.
14928 (stop_current_target_threads_ns): New, factored out from ...
14929 (interrupt_target_1): ... this. Switch inferior before making
14930 target calls.
14931 * inferior-iter.h
14932 (struct all_inferiors_iterator, struct all_inferiors_range)
14933 (struct all_inferiors_safe_range)
14934 (struct all_non_exited_inferiors_range): Filter on
14935 process_stratum_target too. Remove explicit.
14936 * inferior.c (inferior::inferior): Push dummy target on target
14937 stack.
14938 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14939 Add process_stratum_target parameter, and pass it down.
14940 (have_live_inferiors): Adjust.
14941 (switch_to_inferior_and_push_target): New.
14942 (add_inferior_command, clone_inferior_command): Handle
14943 "-no-connection" parameter. Use
14944 switch_to_inferior_and_push_target.
14945 (_initialize_inferior): Mention "-no-connection" option in
14946 the help of "add-inferior" and "clone-inferior" commands.
14947 * inferior.h: Include "process-stratum-target.h".
14948 (interrupt_target_1): Use bool.
14949 (struct inferior) <push_target, unpush_target, target_is_pushed,
14950 find_target_beneath, top_target, process_target, target_at,
14951 m_stack>: New.
14952 (discard_all_inferiors): Delete.
14953 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14954 (all_inferiors, all_non_exited_inferiors): Add
14955 process_stratum_target parameter.
14956 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14957 (target_last_proc_target): New global.
14958 (follow_fork_inferior): Push target on new inferior. Pass target
14959 to add_thread_silent. Call exec_on_vfork. Handle target's
14960 reference count.
14961 (follow_fork): Adjust get_last_target_status call. Also consider
14962 target.
14963 (follow_exec): Push target on new inferior.
14964 (struct execution_control_state) <target>: New field.
14965 (user_visible_resume_target): New.
14966 (do_target_resume): Call target_async.
14967 (resume_1): Set target's threads_executing flag. Consider resume
14968 target.
14969 (commit_resume_all_targets): New.
14970 (proceed): Also consider resume target. Skip threads of inferiors
14971 with no execution. Commit resumtion in all targets.
14972 (start_remote): Pass current inferior to wait_for_inferior.
14973 (infrun_thread_stop_requested): Consider target as well. Pass
14974 thread_info pointer to clear_inline_frame_state instead of ptid.
14975 (infrun_thread_thread_exit): Consider target as well.
14976 (random_pending_event_thread): New inferior parameter. Use it.
14977 (do_target_wait): Rename to ...
14978 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14979 down.
14980 (threads_are_resumed_pending_p, do_target_wait): New.
14981 (prepare_for_detach): Adjust calls.
14982 (wait_for_inferior): New inferior parameter. Handle it. Use
14983 do_target_wait_1 instead of do_target_wait.
14984 (fetch_inferior_event): Adjust. Switch to representative
14985 inferior. Pass target down.
14986 (set_last_target_status): Add process_stratum_target parameter.
14987 Save target in global.
14988 (get_last_target_status): Add process_stratum_target parameter and
14989 handle it.
14990 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14991 (context_switch): Check inferior_ptid == null_ptid before calling
14992 inferior_thread().
14993 (get_inferior_stop_soon): Pass down target.
14994 (wait_one): Rename to ...
14995 (poll_one_curr_target): ... this.
14996 (struct wait_one_event): New.
14997 (wait_one): New.
14998 (stop_all_threads): Adjust.
14999 (handle_no_resumed, handle_inferior_event): Adjust to consider the
15000 event's target.
15001 (switch_back_to_stepped_thread): Also consider target.
15002 (print_stop_event): Update.
15003 (normal_stop): Update. Also consider the resume target.
15004 * infrun.h (wait_for_inferior): Remove declaration.
15005 (user_visible_resume_target): New declaration.
15006 (get_last_target_status, set_last_target_status): New
15007 process_stratum_target parameter.
15008 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15009 process_stratum_target parameter, and use it.
15010 (clear_inline_frame_state (thread_info*)): New.
15011 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15012 process_stratum_target parameter.
15013 (clear_inline_frame_state (thread_info*)): Declare.
15014 * linux-fork.c (delete_checkpoint_command): Pass target down to
15015 find_thread_ptid.
15016 (checkpoint_command): Adjust.
15017 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15018 instead of just tweaking inferior_ptid.
15019 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15020 (exit_lwp): Pass target down to find_thread_ptid.
15021 (attach_proc_task_lwp_callback): Pass target down to
15022 add_thread/set_running/set_executing.
15023 (linux_nat_target::attach): Pass target down to
15024 thread_change_ptid.
15025 (get_detach_signal): Pass target down to find_thread_ptid.
15026 Consider last target status's target.
15027 (linux_resume_one_lwp_throw, resume_lwp)
15028 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15029 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15030 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15031 (linux_nat_target::async_wait_fd): New.
15032 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15033 target down.
15034 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15035 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15036 * linux-thread-db.c (struct thread_db_info::process_target): New
15037 field.
15038 (add_thread_db_info): Save target.
15039 (get_thread_db_info): New process_stratum_target parameter. Also
15040 match target.
15041 (delete_thread_db_info): New process_stratum_target parameter.
15042 Also match target.
15043 (thread_from_lwp): Adjust to pass down target.
15044 (thread_db_notice_clone): Pass down target.
15045 (check_thread_db_callback): Pass down target.
15046 (try_thread_db_load_1): Always push the thread_db target.
15047 (try_thread_db_load, record_thread): Pass target down.
15048 (thread_db_target::detach): Pass target down. Always unpush the
15049 thread_db target.
15050 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15051 target down. Always unpush the thread_db target.
15052 (find_new_threads_callback, thread_db_find_new_threads_2)
15053 (thread_db_target::update_thread_list): Pass target down.
15054 (thread_db_target::pid_to_str): Pass current inferior down.
15055 (thread_db_target::get_thread_local_address): Pass target down.
15056 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15057 target down.
15058 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15059 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15060 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15061 (procfs_init_inferior): Rename to ...
15062 (procfs_target::procfs_init_inferior): ... this and adjust.
15063 (procfs_target::create_inferior, procfs_notice_thread)
15064 (procfs_do_thread_registers): Adjust.
15065 * ppc-fbsd-tdep.c: Include "inferior.h".
15066 (ppcfbsd_get_thread_local_address): Pass down target.
15067 * proc-service.c (ps_xfer_memory): Switch current inferior and
15068 program space as well.
15069 (get_ps_regcache): Pass target down.
15070 * process-stratum-target.c
15071 (process_stratum_target::thread_address_space)
15072 (process_stratum_target::thread_architecture): Pass target down.
15073 * process-stratum-target.h
15074 (process_stratum_target::threads_executing): New field.
15075 (as_process_stratum_target): New.
15076 * ravenscar-thread.c
15077 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15078 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15079 down.
15080 * record-btrace.c (record_btrace_target::info_record): Adjust.
15081 (record_btrace_target::record_method)
15082 (record_btrace_target::record_is_replaying)
15083 (record_btrace_target::fetch_registers)
15084 (get_thread_current_frame_id, record_btrace_target::resume)
15085 (record_btrace_target::wait, record_btrace_target::stop): Pass
15086 target down.
15087 * record-full.c (record_full_wait_1): Switch to event thread.
15088 Pass target down.
15089 * regcache.c (regcache::regcache)
15090 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15091 process_stratum_target parameter and handle it.
15092 (current_thread_target): New global.
15093 (get_thread_regcache): Add process_stratum_target parameter and
15094 handle it. Switch inferior before calling target method.
15095 (get_thread_regcache): Pass target down.
15096 (get_thread_regcache_for_ptid): Pass target down.
15097 (registers_changed_ptid): Add process_stratum_target parameter and
15098 handle it.
15099 (registers_changed_thread, registers_changed): Pass target down.
15100 (test_get_thread_arch_aspace_regcache): New.
15101 (current_regcache_test): Define a couple local test_target_ops
15102 instances and use them for testing.
15103 (readwrite_regcache): Pass process_stratum_target parameter.
15104 (cooked_read_test, cooked_write_test): Pass mock_target down.
15105 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15106 (get_thread_arch_aspace_regcache): Add process_stratum_target
15107 parameter.
15108 (regcache::target): New method.
15109 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15110 (regcache::registers_changed_ptid): Add process_stratum_target
15111 parameter.
15112 (regcache::m_target): New field.
15113 (registers_changed_ptid): Add process_stratum_target parameter.
15114 * remote.c (remote_state::supports_vCont_probed): New field.
15115 (remote_target::async_wait_fd): New method.
15116 (remote_unpush_and_throw): Add remote_target parameter.
15117 (get_current_remote_target): Adjust.
15118 (remote_target::remote_add_inferior): Push target.
15119 (remote_target::remote_add_thread)
15120 (remote_target::remote_notice_new_inferior)
15121 (get_remote_thread_info): Pass target down.
15122 (remote_target::update_thread_list): Skip threads of inferiors
15123 bound to other targets. (remote_target::close): Don't discard
15124 inferiors. (remote_target::add_current_inferior_and_thread)
15125 (remote_target::process_initial_stop_replies)
15126 (remote_target::start_remote)
15127 (remote_target::remote_serial_quit_handler): Pass down target.
15128 (remote_target::remote_unpush_target): New remote_target
15129 parameter. Unpush the target from all inferiors.
15130 (remote_target::remote_unpush_and_throw): New remote_target
15131 parameter. Pass it down.
15132 (remote_target::open_1): Check whether the current inferior has
15133 execution instead of checking whether any inferior is live. Pass
15134 target down.
15135 (remote_target::remote_detach_1): Pass down target. Use
15136 remote_unpush_target.
15137 (extended_remote_target::attach): Pass down target.
15138 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15139 (remote_target::append_resumption): Pass down target.
15140 (remote_target::append_pending_thread_resumptions)
15141 (remote_target::remote_resume_with_hc, remote_target::resume)
15142 (remote_target::commit_resume): Pass down target.
15143 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15144 (remote_target::interrupt_query)
15145 (remote_target::remove_new_fork_children)
15146 (remote_target::check_pending_events_prevent_wildcard_vcont)
15147 (remote_target::remote_parse_stop_reply)
15148 (remote_target::process_stop_reply): Pass down target.
15149 (first_remote_resumed_thread): New remote_target parameter. Pass
15150 it down.
15151 (remote_target::wait_as): Pass down target.
15152 (unpush_and_perror): New remote_target parameter. Pass it down.
15153 (remote_target::readchar, remote_target::remote_serial_write)
15154 (remote_target::getpkt_or_notif_sane_1)
15155 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15156 down target.
15157 (remote_target::mourn_inferior): Pass down target. Use
15158 remote_unpush_target.
15159 (remote_target::core_of_thread)
15160 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15161 (remote_target::pid_to_exec_file)
15162 (remote_target::thread_handle_to_thread_info): Pass down target.
15163 (remote_target::async_wait_fd): New.
15164 * riscv-fbsd-tdep.c: Include "inferior.h".
15165 (riscv_fbsd_get_thread_local_address): Pass down target.
15166 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15167 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15168 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15169 Adjust.
15170 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15171 * solib-svr4.c (enable_break): Pass down target.
15172 * spu-multiarch.c (parse_spufs_run): Pass down target.
15173 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15174 * target-delegates.c: Regenerate.
15175 * target.c (g_target_stack): Delete.
15176 (current_top_target): Return the current inferior's top target.
15177 (target_has_execution_1): Refer to the passed-in inferior's top
15178 target.
15179 (target_supports_terminal_ours): Check whether the initial
15180 inferior was already created.
15181 (decref_target): New.
15182 (target_stack::push): Incref/decref the target.
15183 (push_target, push_target, unpush_target): Adjust.
15184 (target_stack::unpush): Defref target.
15185 (target_is_pushed): Return bool. Adjust to refer to the current
15186 inferior's target stack.
15187 (dispose_inferior): Delete, and inline parts ...
15188 (target_preopen): ... here. Only dispose of the current inferior.
15189 (target_detach): Hold strong target reference while detaching.
15190 Pass target down.
15191 (target_thread_name): Add assertion.
15192 (target_resume): Pass down target.
15193 (target_ops::beneath, find_target_at): Adjust to refer to the
15194 current inferior's target stack.
15195 (get_dummy_target): New.
15196 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15197 has a thread running.
15198 (initialize_targets): Rename to ...
15199 (_initialize_target): ... this.
15200 * target.h: Include "gdbsupport/refcounted-object.h".
15201 (struct target_ops): Inherit refcounted_object.
15202 (target_ops::shortname, target_ops::longname): Make const.
15203 (target_ops::async_wait_fd): New method.
15204 (decref_target): Declare.
15205 (struct target_ops_ref_policy): New.
15206 (target_ops_ref): New typedef.
15207 (get_dummy_target): Declare function.
15208 (target_is_pushed): Return bool.
15209 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15210 (all_matching_threads_iterator::all_matching_threads_iterator):
15211 Handle filter target.
15212 * thread-iter.h (struct all_matching_threads_iterator, struct
15213 all_matching_threads_range, class all_non_exited_threads_range):
15214 Filter by target too. Remove explicit.
15215 * thread.c (threads_executing): Delete.
15216 (inferior_thread): Pass down current inferior.
15217 (clear_thread_inferior_resources): Pass down thread pointer
15218 instead of ptid_t.
15219 (add_thread_silent, add_thread_with_info, add_thread): Add
15220 process_stratum_target parameter. Use it for thread and inferior
15221 searches.
15222 (is_current_thread): New.
15223 (thread_info::deletable): Use it.
15224 (find_thread_ptid, thread_count, in_thread_list)
15225 (thread_change_ptid, set_resumed, set_running): New
15226 process_stratum_target parameter. Pass it down.
15227 (set_executing): New process_stratum_target parameter. Pass it
15228 down. Adjust reference to 'threads_executing'.
15229 (threads_are_executing): New process_stratum_target parameter.
15230 Adjust reference to 'threads_executing'.
15231 (set_stop_requested, finish_thread_state): New
15232 process_stratum_target parameter. Pass it down.
15233 (switch_to_thread): Also match inferior.
15234 (switch_to_thread): New process_stratum_target parameter. Pass it
15235 down.
15236 (update_threads_executing): Reimplement.
15237 * top.c (quit_force): Pop targets from all inferior.
15238 (gdb_init): Don't call initialize_targets.
15239 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15240 Declare.
15241 (windows_add_thread, windows_delete_thread): Adjust.
15242 (get_windows_debug_event): Rename to ...
15243 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15244 * tracefile-tfile.c (tfile_target_open): Pass down target.
15245 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15246 Forward declare.
15247 (switch_to_thread): Add process_stratum_target parameter.
15248 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15249 parameter. Use it.
15250 (mi_on_resume): Pass target down.
15251 * nat/fork-inferior.c (startup_inferior): Add
15252 process_stratum_target parameter. Pass it down.
15253 * nat/fork-inferior.h (startup_inferior): Add
15254 process_stratum_target parameter.
15255 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15256
75c6c844
PA
152572020-01-10 Pedro Alves <palves@redhat.com>
15258
15259 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15260 directly. Instead find the first thread in the thread list and
15261 use switch_to_thread.
15262
78f2c40a
PA
152632020-01-10 Pedro Alves <palves@redhat.com>
15264
15265 * remote.c (remote_target::remote_add_inferior): Don't bind a
15266 process to the current inferior if the current inferior is already
15267 bound to a process.
15268
e7af6c70
TBA
152692020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15270 Pedro Alves <palves@redhat.com>
15271
15272 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15273 If no process is specified, return null_ptid instead of
15274 inferior_ptid.
15275 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15276 TARGET_WAITKIND_SIGNALLED with no pid.
15277
31ba933e
PA
152782020-01-10 Pedro Alves <palves@redhat.com>
15279
15280 * remote.c (first_remote_resumed_thread): New.
15281 (remote_target::wait_as): Use it as default event_ptid instead of
15282 inferior_ptid.
15283
735fc2ca
PA
152842020-01-10 Pedro Alves <palves@redhat.com>
15285
15286 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15287
c17e02e1
PA
152882020-01-10 Pedro Alves <palves@redhat.com>
15289
15290 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15291 not -1.
15292
ab1ddbcf
PA
152932020-01-10 Pedro Alves <palves@redhat.com>
15294
15295 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15296 ptid to get_last_target_status.
15297 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15298 ptid to get_last_target_status.
15299 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15300 get_last_target_status.
15301 (info_program_command): Don't pass a target_waitstatus to
15302 get_last_target_status.
15303 * infrun.c (init_wait_for_inferior): Use
15304 nullify_last_target_wait_ptid.
15305 (get_last_target_status): Handle nullptr arguments.
15306 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15307 (print_stop_event): Don't pass a ptid to get_last_target_status.
15308 (normal_stop): Don't pass a ptid to get_last_target_status.
15309 * infrun.h (get_last_target_status, set_last_target_status): Move
15310 comments here and update.
15311 (nullify_last_target_wait_ptid): Declare.
15312 * linux-fork.c (fork_load_infrun_state): Remove local extern
15313 declaration of nullify_last_target_wait_ptid.
15314 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15315 to get_last_target_status.
15316
f3f8ece4
PA
153172020-01-10 Pedro Alves <palves@redhat.com>
15318
15319 * gdbthread.h (scoped_restore_current_thread)
15320 <dont_restore, restore, m_dont_restore>: Declare.
15321 * thread.c (thread_alive): Add assertion. Return bool.
15322 (switch_to_thread_if_alive): New.
15323 (prune_threads): Switch inferior/thread.
15324 (print_thread_info_1): Switch thread before calling target methods.
15325 (scoped_restore_current_thread::restore): New, factored out from
15326 ...
15327 (scoped_restore_current_thread::~scoped_restore_current_thread):
15328 ... this.
15329 (scoped_restore_current_thread::scoped_restore_current_thread):
15330 Add assertion.
15331 (thread_apply_all_command, thread_select): Use
15332 switch_to_thread_if_alive.
15333 * infrun.c (proceed, restart_threads, handle_signal_stop)
15334 (switch_back_to_stepped_thread): Switch current thread before
15335 calling target methods.
15336
db2d40f7
PA
153372020-01-10 Pedro Alves <palves@redhat.com>
15338
15339 * inferior.c (switch_to_inferior_no_thread): New function,
15340 factored out from ...
15341 (inferior_command): ... here.
15342 * inferior.h (switch_to_inferior_no_thread): Declare.
15343 * mi/mi-main.c (run_one_inferior): Use
15344 switch_to_inferior_no_thread.
15345
bd420a2d
PA
153462020-01-10 Pedro Alves <palves@redhat.com>
15347
15348 * infcmd.c (kill_command): Remove dead code.
15349
ddf5db90
PA
153502020-01-10 Pedro Alves <palves@redhat.com>
15351
15352 * remote.c (remote_target::mourn_inferior): No longer check
15353 whether the target is running.
15354
5018ce90
PA
153552020-01-10 Pedro Alves <palves@redhat.com>
15356
15357 * corelow.c (core_target::has_execution): Change parameter type to
15358 inferior pointer.
15359 * inferior.c (number_of_live_inferiors): Use
15360 inferior::has_execution instead of target_has_execution_1.
15361 * inferior.h (inferior::has_execution): New.
15362 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15363 inferior::has_execution instead of target_has_execution_1.
15364 * process-stratum-target.c
15365 (process_stratum_target::has_execution): Change parameter type to
15366 inferior pointer. Check the inferior's PID instead of
15367 inferior_ptid.
15368 * process-stratum-target.h
15369 (process_stratum_target::has_execution): Change parameter type to
15370 inferior pointer.
15371 * record-full.c (record_full_core_target::has_execution): Change
15372 parameter type to inferior pointer.
15373 * target.c (target_has_execution_1): Change parameter type to
15374 inferior pointer.
15375 (target_has_execution_current): Adjust.
15376 * target.h (target_ops::has_execution): Change parameter type to
15377 inferior pointer.
15378 (target_has_execution_1): Change parameter type to inferior
15379 pointer. Change return type to bool.
15380 * tracefile.h (tracefile_target::has_execution): Change parameter
15381 type to inferior pointer.
15382
74375d18
PA
153832020-01-10 Pedro Alves <palves@redhat.com>
15384
15385 * exceptions.c (print_flush): Remove current_top_target() check.
15386
acdf84a6
PA
153872020-01-10 Pedro Alves <palves@redhat.com>
15388
15389 * remote.c (show_remote_exec_file): Show the current inferior's
15390 exec-file instead of the command variable's value.
15391
ec506636
PA
153922020-01-10 Pedro Alves <palves@redhat.com>
15393
15394 * record-full.c (record_full_resume_ptid): New global.
15395 (record_full_target::resume): Set it.
15396 (record_full_wait_1): Use record_full_resume_ptid instead of
15397 inferior_ptid.
15398
873657b9
PA
153992020-01-10 Pedro Alves <palves@redhat.com>
15400
15401 * gdbthread.h (scoped_restore_current_thread)
15402 <dont_restore, restore, m_dont_restore>: Declare.
15403 * thread.c (thread_alive): Add assertion. Return bool.
15404 (switch_to_thread_if_alive): New.
15405 (prune_threads): Switch inferior/thread.
15406 (print_thread_info_1): Switch thread before calling target methods.
15407 (scoped_restore_current_thread::restore): New, factored out from
15408 ...
15409 (scoped_restore_current_thread::~scoped_restore_current_thread):
15410 ... this.
15411 (scoped_restore_current_thread::scoped_restore_current_thread):
15412 Add assertion.
15413 (thread_apply_all_command, thread_select): Use
15414 switch_to_thread_if_alive.
15415
7f0ae84c
GB
154162020-01-10 George Barrett <bob@bob131.so>
15417
15418 * stap-probe.c (stap_modify_semaphore): Don't check for null
15419 semaphores.
15420 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15421 for null semaphores.
15422
f5a7c406
AB
154232020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15424
15425 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15426 all source windows, and maintain horizontal scroll status while
15427 doing so.
15428
9ae6bf64
TT
154292020-01-09 Tom Tromey <tom@tromey.com>
15430
15431 PR tui/18932:
15432 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15433 update_source_window, not print_source_lines.
15434
b2efe70c
AB
154352020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15436
15437 * tui/tui.c (tui_enable): Register tui hooks after calling
15438 tui_display_main.
15439
5f23a082
CB
154402020-01-09 Christian Biesinger <cbiesinger@google.com>
15441
15442 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15443
3061113b
SM
154442020-01-08 Simon Marchi <simon.marchi@efficios.com>
15445
15446 * thread.c (print_thread_info_1): Fix indentation.
15447
57d75002
CB
154482020-01-09 Christian Biesinger <cbiesinger@google.com>
15449
15450 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15451 unique_xmalloc_ptr outside the if to always free the demangled name.
15452
6a053cb1
TT
154532020-01-08 Tom Tromey <tromey@adacore.com>
15454
15455 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15456 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15457 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15458 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15459 Remove.
15460 (section_offsets): New typedef.
15461 * symtab.c (fixup_section, get_msymbol_address): Update.
15462 * symmisc.c (dump_msymbols): Update.
15463 * symfile.h (relative_addr_info_to_section_offsets)
15464 (symfile_map_offsets_to_segments): Update.
15465 * symfile.c (build_section_addr_info_from_objfile)
15466 (init_objfile_sect_indices): Update.
15467 (struct place_section_arg): Change type of "offsets".
15468 (place_section): Update.
15469 (relative_addr_info_to_section_offsets): Change type of
15470 "section_offsets". Remove "num_sections" parameter.
15471 (default_symfile_offsets, syms_from_objfile_1)
15472 (set_objfile_default_section_offset): Update.
15473 (reread_symbols): No need to preserve section offsets by hand.
15474 (symfile_map_offsets_to_segments): Change type of "offsets".
15475 * stap-probe.c (relocate_address): Update.
15476 * stabsread.h (process_one_symbol): Update.
15477 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15478 (solib_target_relocate_section_addresses): Update.
15479 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15480 Update.
15481 * solib-frv.c (frv_relocate_main_executable): Update.
15482 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15483 * solib-aix.c (solib_aix_get_section_offsets): Change return
15484 type.
15485 (solib_aix_solib_create_inferior_hook): Update.
15486 * remote.c (remote_target::get_offsets): Update.
15487 * psymtab.c (find_pc_sect_psymtab): Update.
15488 * psympriv.h (struct partial_symbol) <address, text_low,
15489 text_high>: Update.
15490 * objfiles.h (obj_section_offset): Update.
15491 (struct objfile) <section_offsets>: Change type.
15492 <num_sections>: Remove.
15493 (objfile_relocate): Update.
15494 * objfiles.c (entry_point_address_query): Update
15495 (relocate_one_symbol): Change type of "section_offsets".
15496 (objfile_relocate1, objfile_relocate1): Change type of
15497 "new_offsets".
15498 (objfile_rebase1): Update.
15499 * mipsread.c (mipscoff_symfile_read): Update.
15500 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15501 parameter.
15502 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15503 (parse_external, psymtab_to_symtab_1): Update.
15504 * machoread.c (macho_symfile_offsets): Update.
15505 * ia64-tdep.c (ia64_find_unwind_table): Update.
15506 * hppa-tdep.c (read_unwind_info): Update.
15507 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15508 * dwarf2read.c (create_addrmap_from_index)
15509 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15510 (process_psymtab_comp_unit_reader, add_partial_symbol)
15511 (add_partial_subprogram, process_full_comp_unit)
15512 (read_file_scope, read_func_scope, read_lexical_block_scope)
15513 (read_call_site_scope, dwarf2_rnglists_process)
15514 (dwarf2_ranges_process, dwarf2_ranges_read)
15515 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15516 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15517 Update.
15518 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15519 Update.
15520 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15521 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15522 (process_one_symbol): Change type of "section_offsets".
15523 * ctfread.c (get_objfile_text_range): Update.
15524 * coffread.c (coff_symtab_read, enter_linenos)
15525 (process_coff_symbol): Update.
15526 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15527 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15528
456e800a
TT
155292020-01-08 Tom Tromey <tromey@adacore.com>
15530
15531 * dwarf2read.c (parse_macro_definition): Use std::string.
15532 (parse_macro_definition): Likewise.
15533
6dfa2fc2
TT
155342020-01-08 Tom Tromey <tromey@adacore.com>
15535
15536 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15537 (ATTR_ALLOC_CHUNK): Remove.
15538
421d1616
TT
155392020-01-08 Tom Tromey <tromey@adacore.com>
15540
15541 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15542
43816ebc
TT
155432020-01-08 Tom Tromey <tromey@adacore.com>
15544
15545 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15546 (dwarf2_compute_name, open_dwo_file): Likewise.
15547 (process_enumeration_scope): Use std::vector.
15548 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15549 (partial_die_info::fixup, dwarf2_start_subfile)
15550 (guess_full_die_structure_name, dwarf2_name): Likewise.
15551 (determine_prefix): Update.
15552 (guess_full_die_structure_name): Make return type const.
15553 (partial_die_full_name): Return unique_xmalloc_ptr.
15554 (DW_FIELD_ALLOC_CHUNK): Remove.
15555
4212d509
TT
155562020-01-07 Tom Tromey <tromey@adacore.com>
15557
15558 PR build/24937:
15559 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15560
06a6207a
JT
155612020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15562
15563 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15564
153d79c4
AB
155652020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15566
15567 * stack.c (print_frame_info): Move disassemble_next_line code
15568 inside source_print block.
15569
66182876
EZ
155702020-01-06 Eli Zaretskii <eliz@gnu.org>
15571
15572 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15573 gdb/signals.h, as we are now using native signal symbols.
15574
cbfa8581
SV
155752020-01-06 Shahab Vahedi <shahab@synopsys.com>
15576
15577 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15578 overflow by an early check of content vs threshold.
aac66a4c 15579 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
15580 Likewise.
15581
3f602821
EZ
155822020-01-06 Eli Zaretskii <eliz@gnu.org>
15583
15584 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15585
a08c904d
JT
155862020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15587
15588 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15589 export table if no section contains it's RVA.
15590
89a65580
EZ
155912020-01-06 Eli Zaretskii <eliz@gnu.org>
15592
15593 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15594
8b7fcda2
HD
155952020-01-06 Hannes Domani <ssbssa@yahoo.de>
15596
15597 * source.c (print_source_lines_base): Set last_line_listed.
15598
a61b4f69
SV
155992020-01-06 Shahab Vahedi <shahab@synopsys.com>
15600
15601 * tui/tui-disasm.c: Remove trailing spaces.
15602
559e7e50
EZ
156032020-01-06 Eli Zaretskii <eliz@gnu.org>
15604 Pedro Alves <palves@redhat.com>
15605
15606 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15607 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15608 (windows_gdb_signal_to_target): New function, uses the above
15609 enumeration to convert GDB internal signal codes to equivalent
15610 Windows codes.
15611 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15612 * windows-nat.c: Include "gdb_wait.h".
15613 (get_windows_debug_event): Extract the fatal exception from the
15614 exit status and convert to the equivalent Posix signal number.
15615 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15616 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15617 * gdbsupport/gdb_wait.c: New file, implements
15618 windows_status_to_termsig.
15619 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15620 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15621
f2302a34
AB
156222020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15623
15624 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15625 show_layout.
15626
6a5206eb
LM
156272020-01-05 Luis Machado <luis.machado@linaro.org>
15628
15629 * aarch64-linux-nat.c
15630 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15631 and bfd_mach_aarch64.
15632
6ec1d75e
PW
156332020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15634
15635 * ui-file.c (stdio_file::can_emit_style_escape)
15636 (tee_file::can_emit_style_escape): Ensure style is used also on
15637 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15638 to gdb_stdout.
15639 * main.c (set_gdb_data_directory): Use file style to output the
15640 warning that the given pathname is not a directory.
15641 * top.c (show_history_filename, gdb_safe_append_history)
15642 (show_gdb_datadir): Use file style.
15643
44f81a76
HD
156442020-01-03 Hannes Domani <ssbssa@yahoo.de>
15645
15646 * solib-target.c (struct lm_info_target):
15647 Change offsets to be a unique_xmalloc_ptr.
15648 (solib_target_relocate_section_addresses): Update.
15649
25057eb0
HD
156502020-01-03 Hannes Domani <ssbssa@yahoo.de>
15651
15652 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15653
6e2118f5
BE
156542020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15655
15656 * MAINTAINERS (Write After Approval): Add myself.
15657
8133c7dc
LM
156582020-01-02 Luis Machado <luis.machado@linaro.org>
15659
15660 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15661 Cell BE architecture.
15662 * target.h (struct target_ops) <thread_architecture>: Likewise.
15663
48189bec
HD
156642020-01-01 Hannes Domani <ssbssa@yahoo.de>
15665
15666 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15667
ead1063b
HD
156682020-01-01 Hannes Domani <ssbssa@yahoo.de>
15669
15670 * MAINTAINERS (Write After Approval): Add myself.
15671
e5d78223
JB
156722020-01-01 Joel Brobecker <brobecker@adacore.com>
15673
15674 * gdbarch.sh: Update copyright year range of generated files.
15675
b811d2c2
JB
156762020-01-01 Joel Brobecker <brobecker@adacore.com>
15677
15678 Update copyright year range in all GDB files.
15679
5f4def5c
JB
156802020-01-01 Joel Brobecker <brobecker@adacore.com>
15681
15682 * copyright.py: Convert to Python 3.
15683
51fd4002
JB
156842020-01-01 Joel Brobecker <brobecker@adacore.com>
15685
15686 * copyright.py: Adapt after move of gnulib directory from gdb
15687 directory to toplevel directory.
15688
5fb651f2
JB
156892020-01-01 Joel Brobecker <brobecker@adacore.com>
15690
15691 * copyright.py (main): Exit if run from the wrong directory.
15692
5dd8bf88
JB
156932020-01-01 Joel Brobecker <brobecker@adacore.com>
15694
15695 * top.c (print_gdb_version): Change copyright year to 2020.
15696
9f71dacb 156972020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 15698
9f71dacb 15699 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 15700
9f71dacb 15701For older changes see ChangeLog-2019.
c906108c
SS
15702\f
15703Local Variables:
15704mode: change-log
15705left-margin: 8
15706fill-column: 74
15707version-control: never
57da7796 15708coding: utf-8
c906108c 15709End:
This page took 3.204758 seconds and 4 git commands to generate.