gdb: add inferior parameter to inferior_created observable
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a0ff652f
SM
12020-10-24 Simon Marchi <simon.marchi@efficios.com>
2
3 * aix-thread.c (aix_thread_inferior_created): Add inferior
4 parameter.
5 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
6 * dummy-frame.c (cleanup_dummy_frames): Likewise.
7 * jit.c (jit_inferior_created): Likewise.
8 * linux-thread-db.c (thread_db_inferior_created): Likewise.
9 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
10 * observable.h (inferior_created): Likewise.
11 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
12 * symfile-mem.c (add_vsyscall_page): Likewise.
13 * infcmd.c (post_create_inferior): Pass inferior argument.
14
3c67532c
JB
152020-10-24 Joel Brobecker <brobecker@adacore.com>
16
17 GDB 10.1 released.
18
8747316e
JB
192020-10-23 Joel Brobecker <brobecker@adacore.com>
20
21 * ada-typeprint.c (ada_print_type): Remove superfluous second call
22 to ada_check_typedef.
23
1a0ea399
AB
242020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
25
26 * f-exp.y (f_parse): Rename to...
27 (f_language::parser): ...this.
28 * f-lang.c (f_get_encoding): Rename to...
29 (f_language::get_encoding): ...this.
30 (f_op_print_tab): Rename to...
31 (f_language::op_print_tab): ...this.
32 (exp_descriptor_f): Rename to...
33 (f_language::exp_descriptor_tab): ...this.
34 (class f_language): Moved to f-lang.h.
35 (f_language::language_arch_info): New function, moved out of class
36 declaration.
37 (f_language::search_name_hash): Likewise.
38 (f_language::lookup_symbol_nonlocal): Likewise.
39 (f_language::get_symbol_name_matcher_inner): Likewise.
40 * f-lang.h: Add 'valprint.h' include.
41 (class f_language): Moved here from f-lang.c.
42 * f-typeprint.c (f_type_print_args): Delete commented out
43 declaration.
44 (f_print_typedef): Rename to...
45 (f_language::print_typedef): ...this.
46 (f_print_type): Rename to...
47 (f_language::print_type): ...this.
48 (f_type_print_varspec_prefix): Delete declaration and rename to...
49 (f_language::f_type_print_varspec_prefix): ...this.
50 (f_type_print_varspec_suffix): Delete declaration and rename to...
51 (f_language::f_type_print_varspec_suffix): ...this.
52 (f_type_print_base): Delete declaration and rename to...
53 (f_language::f_type_print_base): ...this.
54 * f-valprint.c (f_value_print_inner): Rename to...
55 (f_language::value_print_inner): ...this.
56 * parse.c: Delete 'f-lang.h' include.
57
88cefd9b
AB
582020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
59
60 * language.h (language_defn::print_type): Add variable names in
61 declaration, and update header comment.
62
5399db93
AB
632020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
64
65 * ada-lang.c (ada_language::demangle): Rename to...
66 (ada_language::demangle_symbol): ...this.
67 * c-lang.c (cplus_language::demangle): Rename to...
68 (cplus_language::demangle_symbol): ...this.
69 * d-lang.c (d_language::demangle): Rename to...
70 (d_language::demangle_symbol): ...this.
71 * f-lang.c (f_language::demangle): Rename to...
72 (f_language::demangle_symbol): ...this.
73 * go-lang.c (go_language::demangle): Rename to...
74 (go_language::demangle_symbol): ...this.
75 * language.c (language_demangle): Update call to demangle_symbol.
76 (auto_or_unknown_language::demangle): Rename to...
77 (auto_or_unknown_language::demangle_symbol): ...this.
78 * language.h (language_defn::demangle): Rename to...
79 (language_defn::demangle_symbol): ...this.
80 * objc-lang.c (objc_language::demangle): Rename to...
81 (objc_language::demangle_symbol): ...this.
82 * rust-lang.c (rust_language::demangle): Rename to...
83 (rust_language::demangle_symbol): ...this.
84
4b2f86ef
AB
852020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
86
87 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
88 (iterate_over_file_blocks): Replace use of macro with the macros
89 definition.
90
e74b39de
AB
912020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
92
93 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
94 * valprint.c (maybe_print_array_index): Replace use of macro with
95 the macros definition.
96
00c696a6
AB
972020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
98
99 * ada-lang.c (ada_language::print_array_index): Call value_print
100 directly.
101 * language.c (language_defn::print_array_index): Likewise.
102 * language.h (LA_VALUE_PRINT): Delete.
103 * valprint.c (value_print): Call value_print on the
104 current_language directly.
105
d3b67c56
AB
1062020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
107
108 * language.h (LA_PRINT_TYPEDEF): Delete.
109 * typeprint.c (typedef_print): Call print_typedef directly on the
110 current_language object.
111
790e2a12
AB
1122020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
113
114 * m2-exp.y (m2_parse): Rename to...
115 (m2_language::parser): ...this. Update function signature.
116 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
117 (m2_op_print): Rename to...
118 (m2_language::op_print_tab): ...this, and make const.
119 (exp_descriptor_modula2): Rename to...
120 (m2_language::exp_descriptor_modula2): ...this.
121 (class m2_language): Move to m2-lang.h.
122 (m2_language::language_arch_info): New function, moved out of
123 class declaration.
124 (m2_language::printchar): New function, body from m2_printchar.
125 (m2_language::printstr): New function, moved out of class
126 declaration.
127 (m2_language::emitchar): Likewise.
128 * m2-lang.h (m2_parse): Delete declaration.
129 (m2_print_typedef): Delete declaration.
130 (m2_value_print_inner): Delete declaration.
131 (class m2_language): Class declaration moved from m2-lang.c,
132 larger functions are left in m2-lang.c.
133 * m2-typeprint.c (m2_print_typedef): Rename to...
134 (m2_language::print_typedef): ...this, and update function
135 signature.
136 * m2-valprint.c (m2_value_print_inner): Rename to...
137 (m2_language::value_print_inner): ...this, replace use of
138 LA_PRINT_STRING with a direct call to printstr member function,
139 and update recursive call.
140
b01175fc
AB
1412020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
142
143 * language.c (default_is_string_type_p): Delete, implementation
144 moved into auto_or_unknown_language::is_string_type_p.
145 (unk_op_print_tab): Moved into
146 auto_or_unknown_language::opcode_print_table.
147 (unknown_language_arch_info): Delete, implementation moved into
148 auto_or_unknown_language::language_arch_info.
149 (class auto_or_unknown_language): New class, member functions
150 copied from unknown_language class, with some updates.
151 (class unknown_language): Most member functions moved into
152 auto_or_unknown_language class. Inherit from
153 auto_or_unknown_language class.
154 (class auto_language): Inherit from auto_or_unknown_language.
155 Delete most member functions.
156
1a97fe8c
HD
1572020-10-22 Hannes Domani <ssbssa@yahoo.de>
158
159 * stabsread.c (read_member_functions): Remove gdb_assert.
160
6b9d0dfd
HD
1612020-10-22 Hannes Domani <ssbssa@yahoo.de>
162
163 * gdbtypes.c (init_complex_type): Check target type name.
164
4b4bb603
SM
1652020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
166
167 * target-debug.h (target_debug_print_struct_target_ops_p):
168 Remove.
169 (target_debug_print_async_callback_ftype_p): Remove.
170 (target_debug_print_struct_trace_state_variable_p): Remove.
171 (target_debug_print_struct_traceframe_info_p): Remove.
172 (target_debug_print_VEC__btrace_block_s__pp): Remove.
173 (target_debug_print_enum_btrace_format): Remove.
174 (target_debug_print_enum_info_proc_what): Remove.
175 (target_debug_print_thread_info_pp): Remove.
176
24f5300a
SM
1772020-10-22 Simon Marchi <simon.marchi@efficios.com>
178
179 * target.h (struct target_ops) <make_corefile_notes>:
180 Change return type to unique pointer.
181 * target.c (dummy_make_corefile_notes): Likewise.
182 * exec.c (struct exec_target) <make_corefile_notes>:
183 Likewise.
184 (exec_target::make_corefile_notes): Likewise.
185 * procfs.c (class procfs_target) <make_corefile_notes>:
186 Likewise.
187 (procfs_do_thread_registers): Adjust to unique pointer.
188 (struct procfs_corefile_thread_data): Add constructor.
189 <note_data>: Change type to unique pointer.
190 (procfs_corefile_thread_callback): Adjust to unique pointer.
191 (procfs_target::make_corefile_notes): Change return type to
192 unique pointer.
193 * target-delegates.c: Re-generate.
194 * gcore.c (write_gcore_file_1): Adjust.
195 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
196 New.
197
5fb4027f
TV
1982020-10-22 Tom de Vries <tdevries@suse.de>
199
200 * block.c (find_block_in_blockvector): Make sure the returned block
201 contains pc.
202
4a636814
SM
2032020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
204
205 PR gdb/26693
206 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
207 parameter.
208 (load_cu): Pass existing CU.
209 (process_imported_unit_die): Likewise.
210 (follow_die_offset): Likewise.
211
1bd57575
LM
2122020-10-22 Luis Machado <luis.machado@linaro.org>
213
214 * corelow.c (core_target::xfer_partial): Also check for an empty
215 m_core_unavailable_mappings vector.
216
6b4c676c
AB
2172020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
218
219 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
220 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
221 * f-exp.y (arglist): Allow for a series of subranges.
222 (subrange): Add cases for subranges with strides.
223 * f-lang.c (value_f90_subarray): Catch use of array strides and
224 throw an error.
225 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
226
f2d8e4c5
AB
2272020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
228
229 * expprint.c (print_subexp_standard): Change enum range_type to
230 range_flag and rename variables to match.
231 (dump_subexp_body_standard): Likewise.
232 * expression.h (enum range_type): Rename to...
233 (enum range_flag): ...this.
234 (range_types): Rename to...
235 (range_flags): ...this.
236 * f-lang.c (value_f90_subarray): Change enum range_type to
237 range_flag and rename variables to match.
238 * parse.c (operator_length_standard): Likewise.
239 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
240 range_type to range_flag.
241 * rust-lang.c (rust_evaluate_funcall): Likewise.
242 (rust_range): Likewise.
243 (rust_compute_range): Likewise.
244 (rust_subscript): Likewise.
245
2f1b18db
AB
2462020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
247
248 * expprint.c (print_subexp_standard): Update to reflect changes to
249 enum range_type.
250 (dump_subexp_body_standard): Likewise.
251 * expression.h (enum range_type): Convert to a bit field enum, and
252 make the enum unsigned.
253 * f-exp.y (subrange): Update to reflect changes to enum
254 range_type.
255 * f-lang.c (value_f90_subarray): Likewise.
256 * parse.c (operator_length_standard): Likewise.
257 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
258 * rust-lang.c (rust_range): Likewise.
259 (rust_compute_range): Likewise.
260 (rust_subscript): Likewise.
261
a46d1843
SM
2622020-10-21 Simon Marchi <simon.marchi@efficios.com>
263
264 * infrun.c (displaced_step_in_progress_thread): Fix comment.
265 (displaced_step_in_progress): Fix comment.
266
c21f37a8
SM
2672020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
268
269 * gdbarch.sh (make_corefile_notes): Return unique pointer.
270 * gdbarch.c: Re-generate.
271 * gdbarch.h: Re-generate.
272 * gcore.c (write_gcore_file_1): Adjust.
273 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
274 constructor.
275 <note_data>: Change type to unique pointer.
276 <abort_iteration>: Change type to bool.
277 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
278 (fbsd_collect_thread_registers): Return void, adjust.
279 (struct fbsd_corefile_thread_data): Add construtor.
280 <note_data>: Change type to unique pointer.
281 (fbsd_corefile_thread): Adjust.
282 (fbsd_make_corefile_notes): Return unique pointer, adjust.
283 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
284 to unique pointer, adjust.
285 (struct linux_collect_regset_section_cb_data): Add constructor.
286 <note_data>: Change type to unique pointer.
287 <abort_iteration>: Change type to bool.
288 (linux_collect_thread_registers): Return void, adjust.
289 (struct linux_corefile_thread_data): Add constructor.
290 <note_data>: Change type to unique pointer.
291 (linux_corefile_thread): Adjust.
292 (linux_make_corefile_notes): Return unique pointer, adjust.
293
07fbbd01
SM
2942020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
295
296 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
297 * gdbarch.c: Re-generate.
298 * gdbarch.h: Re-generate.
299 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
300 bool.
301 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
302 Likewise.
303 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
304 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
305 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
306 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
307
39535193
SM
3082020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
309
310 * gdbarch.sh: Make generated predicates return bool.
311 * gdbarch.c: Re-generate.
312 * gdbarch.h: Re-generate.
313
ad523d01
TT
3142020-10-20 Tom Tromey <tom@tromey.com>
315
316 * varobj-iter.h (struct varobj_item): Remove typedef.
317
c4464ade
SM
3182020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
319
320 * infrun.c (currently_stepping): Change int to bool
321 (maybe_software_singlestep): Likewise.
322 (show_stop_on_solib_events): Likewise.
323 (stepping_past_nonsteppable_watchpoint): Likewise.
324 (displaced_step_in_progress_any_inferior): Likewise.
325 (displaced_step_in_progress_thread): Likewise.
326 (keep_going_stepped_thread): Likewise.
327 (thread_still_needs_step_over): Likewise.
328 (start_step_over): Likewise.
329 (do_target_resume): Likewise.
330 (resume_1): Likewise.
331 (clear_proceed_status): Likewise.
332 (thread_still_needs_step_over_bp): Likewise.
333 (proceed): Likewise.
334 (switch_back_to_stepped_thread): Likewise.
335 (adjust_pc_after_break): Likewise.
336 (stepped_in_from): Likewise.
337 (handle_stop_requested): Likewise.
338 (handle_syscall_event): Likewise.
339 (handle_no_resumed): Likewise.
340 (handle_inferior_event): Likewise.
341 (finish_step_over): Likewise.
342 (handle_signal_stop): Likewise.
343 (process_event_stop_test): Likewise.
344
2eb20436
SM
3452020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
346
347 * infrun.c (get_displaced_stepping_state): Fix comment.
348
e0c45ded
AS
3492020-10-20 Andreas Schwab <schwab@linux-m68k.org>
350
351 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
352
22cc388e
TT
3532020-10-19 Tom Tromey <tromey@adacore.com>
354
355 PR tui/26719
356 * tui/tui-winsource.h (struct tui_source_window_base)
357 <refresh_window>: Rename from refresh_pad.
358 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
359 Rename from refresh_pad.
360 (tui_source_window_base::show_source_content)
361 (tui_source_window_base::do_scroll_horizontal): Update.
362
3c6eb4d4
TBA
3632020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
364
365 * thread.c (_initialize_thread): Fine-tune the help text of
366 'info threads'.
367
26703721
TBA
3682020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
369
370 * frame.c: Remove the unused 'uinteger_option_def' type alias.
371
61c26be8
MS
3722020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
373
374 * breakpoint.c (handle_jit_event): Add an argument, change how
375 `jit_event_handler` is called.
376
932539d7
TT
3772020-10-17 Tom Tromey <tom@tromey.com>
378
379 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
380 (scan_xcoff_symtab): Update.
381 * psymtab.h (class psymtab_storage) <global_psymbols,
382 static_psymbols, current_global_psymbols,
383 current_static_psymbols>: Remove.
384 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
385 (match_partial_symbol, lookup_partial_symbol): Update.
386 (print_partial_symbols): Change parameters.
387 (dump_psymtab, recursively_search_psymtabs)
388 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
389 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
390 (concat): Remove.
391 (end_psymtab_common): Simplify.
392 (append_psymbol_to_list): Change parameters.
393 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
394 (init_psymbol_list): Simplify.
395 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
396 * psympriv.h (struct partial_symtab) <empty>: New method.
397 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
398 Remove.
399 <global_psymbols, static_psymbols>: New members.
400 <add_psymbol>: New methods.
401 (add_psymbol_to_list): Don't declare.
402 (psymbol_placement): Move earlier.
403 * mdebugread.c (parse_partial_symbols): Update.
404 (handle_psymbol_enumerators): Change parameters.
405 (mdebug_expand_psymtab): Update.
406 * dwarf2/read.c (process_psymtab_comp_unit_reader)
407 (add_partial_symbol): Update.
408 * dwarf2/index-write.c (write_psymbols): Change parameters.
409 (write_one_signatured_type): Update.
410 (recursively_count_psymbols): Update.
411 (recursively_write_psymbols): Update.
412 (class debug_names) <recursively_write_psymbols>: Update.
413 <write_psymbols>: Change parameters.
414 <write_one_signatured_type>: Update.
415 * dbxread.c (read_dbx_symtab): Update.
416 (dbx_end_psymtab): Use partial_symtab::empty.
417 * ctfread.c (struct ctf_context) <pst>: New member.
418 (create_partial_symtab): Set it.
419 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
420 (scan_partial_symbols): Use the psymtab's context. Update.
421
cfabbd35
TT
4222020-10-17 Tom Tromey <tom@tromey.com>
423
424 * valprint.c (generic_value_print): Remove comment.
425 * m2-valprint.c (m2_value_print_inner): Remove comment.
426 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
427 type.
428
520596f2
TV
4292020-10-17 Tom de Vries <tdevries@suse.de>
430
431 PR symtab/26317
432 * source.c (select_source_symtab): Handling sal.symtab == NULL for
433 symbol main.
434
76547ab3
TV
4352020-10-14 Tom de Vries <tdevries@suse.de>
436
437 PR gdb/26733
438 * solib.c (solib_contains_address_p): Handle
439 'solib->sections == nullptr'.
440
d3a07122
SM
4412020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
442
443 PR gdb/26642
444 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
445 target can't do async.
446 * target.c (target_wait): Assert that we don't pass
447 TARGET_WNOHANG to a target that can't async.
448
1b71cfcf
KR
4492020-10-13 Kamil Rytarowski <n54@gmx.com>
450
451 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
452 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
453 * alpha-bsd-nat.c: Adjust include.
454 * alpha-bsd-tdep.h: Adjust comment.
455 * alpha-nbsd-tdep.c: Rename to ...
456 * alpha-netbsd-tdep.c: ... this, adjust include.
457 * amd64-nbsd-nat.c: Rename to ...
458 * amd64-netbsd-nat.c: ... this, adjust include.
459 * amd64-nbsd-tdep.c: Rename to ...
460 * amd64-netbsd-tdep.c: ... this, adjust include.
461 * amd64-tdep.h: Adjust include.
462 * arm-nbsd-nat.c: Rename to ...
463 * arm-netbsd-nat.c: ... this, adjust include.
464 * arm-nbsd-tdep.c: Rename to ...
465 * arm-netbsd-tdep.c: ... this, adjust include.
466 * arm-nbsd-tdep.h: Rename to ...
467 * arm-netbsd-tdep.h: ... this, adjust include.
468 * configure.nat: Adjust file lists.
469 * configure.tgt: Likewise.
470 * hppa-nbsd-nat.c: Rename to ...
471 * hppa-netbsd-nat.c: ... this, adjust include.
472 * hppa-nbsd-tdep.c: Rename to ...
473 * hppa-netbsd-tdep.c: ... this, adjust include.
474 * i386-nbsd-nat.c: Rename to ...
475 * i386-netbsd-nat.c: ... this, adjust include.
476 * i386-nbsd-tdep.c: Rename to ...
477 * i386-netbsd-tdep.c: ... this, adjust include.
478 * m68k-bsd-nat.c: Adjust include.
479 * mips-nbsd-nat.c: Rename to ...
480 * mips-netbsd-nat.c: ... this, adjust include.
481 * mips-nbsd-tdep.c: Rename to ...
482 * mips-netbsd-tdep.c: ... this, adjust include.
483 * mips-nbsd-tdep.h: Rename to ...
484 * mips-netbsd-tdep.h: ... this.
485 * nbsd-nat.c: Rename to ...
486 * netbsd-nat.c: ... this, adjust include.
487 * nbsd-nat.h: Rename to ...
488 * netbsd-nat.h: ... this, adjust include.
489 * nbsd-tdep.c: Rename to ...
490 * netbsd-tdep.c: ... this, adjust include.
491 * nbsd-tdep.h: Rename to ...
492 * netbsd-tdep.h: ... this.
493 * ppc-nbsd-nat.c: Rename to ...
494 * ppc-netbsd-nat.c: ... this, adjust include.
495 * ppc-nbsd-tdep.c: Rename to ...
496 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
497 * ppc-nbsd-tdep.h: Rename to ...
498 * ppc-netbsd-tdep.h: ... this.
499 * sh-nbsd-nat.c: Rename to ...
500 * sh-netbsd-nat.c: ... this, adjust include.
501 * sh-nbsd-tdep.c: Rename to ...
502 * sh-netbsd-tdep.c: ... this, adjust include.
503 * sparc-nbsd-nat.c: Rename to ...
504 * sparc-netbsd-nat.c: ... this.
505 * sparc-nbsd-tdep.c: Rename to ...
506 * sparc-netbsd-tdep.c: ... this, adjust include.
507 * sparc64-nbsd-nat.c: Rename to ...
508 * sparc64-netbsd-nat.c: ... this.
509 * sparc64-nbsd-tdep.c: Rename to ...
510 * sparc64-netbsd-tdep.c: ... this, adjust include.
511 * sparc64-tdep.h: Adjust comment.
512 * vax-bsd-nat.c: Adjust include.
513 * vax-nbsd-tdep.c: Rename to ...
514 * vax-netbsd-tdep.c: ... this, adjust include.
515
d7a78e5c
TT
5162020-10-12 Tom Tromey <tom@tromey.com>
517
518 * target.h (struct target_ops) <get_section_table>: Update.
519 (target_get_section_table): Update.
520 * target.c (target_get_section_table, target_section_by_addr)
521 (memory_xfer_partial_1): Update.
522 * target-section.h (target_section_table): Now an alias.
523 * target-delegates.c: Rebuild.
524 * target-debug.h (target_debug_print_target_section_table_p):
525 Rename from target_debug_print_struct_target_section_table_p.
526 * symfile.c (build_section_addr_info_from_section_table): Update.
527 * solib.c (solib_map_sections, solib_contains_address_p): Update.
528 * solib-svr4.c (scan_dyntag): Update.
529 * solib-dsbt.c (scan_dyntag): Update.
530 * remote.c (remote_target::remote_xfer_live_readonly_partial):
531 Update.
532 * record-full.c (record_full_core_target::xfer_partial): Update.
533 * progspace.h (struct program_space) <target_sections>: Update.
534 * exec.h (print_section_info): Update.
535 * exec.c (exec_target::close, build_section_table)
536 (add_target_sections, add_target_sections_of_objfile)
537 (remove_target_sections, exec_on_vfork)
538 (section_table_available_memory)
539 (section_table_xfer_memory_partial)
540 (exec_target::get_section_table, exec_target::xfer_partial)
541 (print_section_info, set_section_command)
542 (exec_set_section_address, exec_target::has_memory): Update.
543 * corelow.c (core_target::build_file_mappings)
544 (core_target::xfer_partial, core_target::info_proc_mappings)
545 (core_target::info_proc_mappings): Update.
546 * bfd-target.c (class target_bfd): Update
547
eda214ce
TT
5482020-10-12 Tom Tromey <tom@tromey.com>
549
550 * progspace.c (program_space::~program_space): Don't call
551 clear_section_table.
552 * exec.h (clear_section_table): Don't declare.
553 * exec.c (exec_target::close): Update.
554 (clear_section_table): Remove.
555
91840ee3
TT
5562020-10-12 Tom Tromey <tom@tromey.com>
557
558 * exec.c (add_target_sections_of_objfile): Simplify.
559
2d128614
TT
5602020-10-12 Tom Tromey <tom@tromey.com>
561
562 * solib.c (solib_map_sections): Update.
563 * record-full.c (record_full_core_open_1): Update.
564 * exec.h (build_section_table): Return a target_section_table.
565 * exec.c (exec_file_attach): Update.
566 (build_section_table): Return a target_section_table.
567 * corelow.c (core_target::core_target): Update.
568 * bfd-target.c (target_bfd::target_bfd): Update.
569
bb2a6777
TT
5702020-10-12 Tom Tromey <tom@tromey.com>
571
572 * target.c (target_section_by_addr, memory_xfer_partial_1):
573 Update.
574 * target-section.h (struct target_section_table): Use
575 std::vector.
576 * symfile.h (build_section_addr_info_from_section_table): Take a
577 target_section_table.
578 * symfile.c (build_section_addr_info_from_section_table): Take a
579 target_section_table.
580 * solist.h (struct so_list) <sections>: Change type.
581 <sections_end>: Remove.
582 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
583 (solib_contains_address_p): Update.
584 * solib-svr4.c (scan_dyntag): Update.
585 * solib-dsbt.c (scan_dyntag): Update.
586 * remote.c (remote_target::remote_xfer_live_readonly_partial):
587 Update.
588 * record-full.c (record_full_core_start, record_full_core_end):
589 Remove.
590 (record_full_core_sections): New global.
591 (record_full_core_open_1, record_full_core_target::xfer_partial):
592 Update.
593 * exec.h (build_section_table, section_table_xfer_memory_partial)
594 (add_target_sections): Take a target_section_table.
595 * exec.c (exec_file_attach, clear_section_table): Update.
596 (resize_section_table): Remove.
597 (build_section_table, add_target_sections): Take a
598 target_section_table.
599 (add_target_sections_of_objfile, remove_target_sections)
600 (exec_on_vfork): Update.
601 (section_table_available_memory): Take a target_section_table.
602 (section_table_read_available_memory): Update.
603 (section_table_xfer_memory_partial): Take a target_section_table.
604 (print_section_info, set_section_command)
605 (exec_set_section_address, exec_target::has_memory): Update.
606 * corelow.c (class core_target) <m_core_section_table,
607 m_core_file_mappings>: Remove braces.
608 <~core_target>: Remove.
609 (core_target::core_target): Update.
610 (core_target::~core_target): Remove.
611 (core_target::build_file_mappings)
612 (core_target::xfer_memory_via_mappings)
613 (core_target::xfer_partial, core_target::info_proc_mappings):
614 Update.
615 * bfd-target.c (target_bfd::xfer_partial): Update.
616 (target_bfd::target_bfd): Update.
617 (target_bfd::~target_bfd): Remove.
618
7b466b10
TT
6192020-10-12 Tom Tromey <tom@tromey.com>
620
621 * target.h (struct target_section, struct target_section_table):
622 Move to target-section.h.
623 * target-section.h: New file.
624
87a37e5e
PA
6252020-10-12 Pedro Alves <pedro@palves.net>
626
627 PR exp/26602
628 * valops.c (struct struct_field_searcher): New.
629 (update_search_result): Rename to ...
630 (struct_field_searcher::update_result): ... this. Simplify
631 prototype. Record all found fields.
632 (do_search_struct_field): Rename to ...
633 (struct_field_searcher::search): ... this. Simplify prototype.
634 Maintain stack of visited baseclass path. Call update_result for
635 fields too. Keep searching fields in baseclasses instead of
636 stopping at the first found field.
637 (search_struct_field): Use struct_field_searcher. When looking
638 for fields, report ambiguous access attempts.
639
9370fd51
AB
6402020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
641
642 * frame.c (inside_main_func): Check full symbols as well as
643 minimal symbols.
644
59c8a30b
JB
6452020-10-09 Joel Brobecker <brobecker@adacore.com>
646
647 * ada-lang.c (advance_wild_match): Rewrite the function's
648 description. Change the type of target0, t0 and t1 to char.
649
7c184d33
TT
6502020-10-09 Tom Tromey <tromey@adacore.com>
651
652 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
653
5c4258f4
TT
6542020-10-09 Tom Tromey <tromey@adacore.com>
655
656 * ada-lang.h (ada_encode): Return std::string.
657 * ada-lang.c (ada_encode_1): Return std::string.
658 (ada_encode): Likewise.
659 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
660 Update.
661 * ada-exp.y (block_lookup, write_var_or_type): Update.
662
3d87245c
HD
6632020-10-09 Hannes Domani <ssbssa@yahoo.de>
664
665 PR exp/26714
666 * printcmd.c (print_formatted): Handle void results as
667 unformatted prints.
668
bbb826f5
AB
6692020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
670
671 * arch/aarch32.c (aarch32_create_target_description): Release the
672 target_desc_up as late as possible.
673 * arch/aarch64.c (aarch64_create_target_description): Likewise.
674 * arch/amd64.c (amd64_create_target_description): Likewise.
675 * arch/arc.c (arc_create_target_description): Return a
676 target_desc_up, don't release it.
677 * arch/arc.h (arc_create_target_description): Update declaration.
678 (arc_lookup_target_description): Move target_desc_up into the
679 cache, and return a borrowed pointer.
680 * arch/arm.c (arm_create_target_description): Release the
681 target_desc_up as late as possible.
682 * arch/i386.c (i386_create_target_description): Likewise.
683 * arch/riscv.h (riscv_create_target_description): Update
684 declaration to match definition.
685 * arch/tic6x.c (tic6x_create_target_description): Release the
686 target_desc_up as late as possible.
687
361cb219
AB
6882020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
689
690 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
691 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
692
f5c4b229
JV
6932020-10-09 Jan Vrany <jan.vrany@labware.com>
694
695 * source.c (directory_command): Notify observers that "directories"
696 parameter has changed.
697
b2701685
TT
6982020-10-08 Tom Tromey <tom@tromey.com>
699
700 * cli/cli-cmds.c (print_disassembly): Style function name and
701 addresses. Add _() wrappers.
702
ada508b6
SV
7032020-10-08 Shahab Vahedi <shahab@synopsys.com>
704
705 * NEWS: Mention ARC support in GDBserver.
706
51a948fd
AB
7072020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
708
709 * arch/aarch32.c (aarch32_create_target_description): Release
710 unique_ptr returned from allocate_target_description.
711 * arch/aarch64.c (aarch64_create_target_description): Likewise.
712 * arch/amd64.c (amd64_create_target_description): Likewise.
713 * arch/arc.c (arc_create_target_description): Likewise.
714 * arch/arm.c (arm_create_target_description): Likewise.
715 * arch/i386.c (i386_create_target_description): Likewise.
716 * arch/riscv.c (riscv_create_target_description): Update return
717 type. Handle allocate_target_description returning a unique_ptr.
718 (riscv_lookup_target_description): Update to handle unique_ptr.
719 * arch/tic6x.c (tic6x_create_target_description): Release
720 unique_ptr returned from allocate_target_description.
721 * features/microblaze-with-stack-protect.c: Regenerate.
722 * features/microblaze.c: Regenerate.
723 * features/mips-dsp-linux.c: Regenerate.
724 * features/mips-linux.c: Regenerate.
725 * features/mips64-dsp-linux.c: Regenerate.
726 * features/mips64-linux.c: Regenerate.
727 * features/nds32.c: Regenerate.
728 * features/nios2.c: Regenerate.
729 * features/or1k.c: Regenerate.
730 * features/rs6000/powerpc-32.c: Regenerate.
731 * features/rs6000/powerpc-32l.c: Regenerate.
732 * features/rs6000/powerpc-403.c: Regenerate.
733 * features/rs6000/powerpc-403gc.c: Regenerate.
734 * features/rs6000/powerpc-405.c: Regenerate.
735 * features/rs6000/powerpc-505.c: Regenerate.
736 * features/rs6000/powerpc-601.c: Regenerate.
737 * features/rs6000/powerpc-602.c: Regenerate.
738 * features/rs6000/powerpc-603.c: Regenerate.
739 * features/rs6000/powerpc-604.c: Regenerate.
740 * features/rs6000/powerpc-64.c: Regenerate.
741 * features/rs6000/powerpc-64l.c: Regenerate.
742 * features/rs6000/powerpc-7400.c: Regenerate.
743 * features/rs6000/powerpc-750.c: Regenerate.
744 * features/rs6000/powerpc-860.c: Regenerate.
745 * features/rs6000/powerpc-altivec32.c: Regenerate.
746 * features/rs6000/powerpc-altivec32l.c: Regenerate.
747 * features/rs6000/powerpc-altivec64.c: Regenerate.
748 * features/rs6000/powerpc-altivec64l.c: Regenerate.
749 * features/rs6000/powerpc-e500.c: Regenerate.
750 * features/rs6000/powerpc-e500l.c: Regenerate.
751 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
752 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
753 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
754 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
755 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
756 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
757 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
758 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
759 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
760 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
761 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
762 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
763 * features/rs6000/powerpc-vsx32.c: Regenerate.
764 * features/rs6000/powerpc-vsx32l.c: Regenerate.
765 * features/rs6000/powerpc-vsx64.c: Regenerate.
766 * features/rs6000/powerpc-vsx64l.c: Regenerate.
767 * features/rs6000/rs6000.c: Regenerate.
768 * features/rx.c: Regenerate.
769 * features/s390-gs-linux64.c: Regenerate.
770 * features/s390-linux32.c: Regenerate.
771 * features/s390-linux32v1.c: Regenerate.
772 * features/s390-linux32v2.c: Regenerate.
773 * features/s390-linux64.c: Regenerate.
774 * features/s390-linux64v1.c: Regenerate.
775 * features/s390-linux64v2.c: Regenerate.
776 * features/s390-te-linux64.c: Regenerate.
777 * features/s390-tevx-linux64.c: Regenerate.
778 * features/s390-vx-linux64.c: Regenerate.
779 * features/s390x-gs-linux64.c: Regenerate.
780 * features/s390x-linux64.c: Regenerate.
781 * features/s390x-linux64v1.c: Regenerate.
782 * features/s390x-linux64v2.c: Regenerate.
783 * features/s390x-te-linux64.c: Regenerate.
784 * features/s390x-tevx-linux64.c: Regenerate.
785 * features/s390x-vx-linux64.c: Regenerate.
786 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
787 from allocate_target_description.
788 * target-descriptions.c (allocate_target_description): Update
789 return type.
790 (print_c_tdesc::visit_pre): Release unique_ptr returned from
791 allocate_target_description.
792
485c47e5
TT
7932020-10-07 Tom Tromey <tromey@adacore.com>
794
795 * unittests/search-memory-selftests.c: New file.
796 * Makefile.in (SELFTESTS_SRCS): Add
797 unittests/search-memory-selftests.c.
798
3a135a91
TT
7992020-10-07 Tom Tromey <tromey@adacore.com>
800
801 PR gdb/16930:
802 * findcmd.c (_initialize_mem_search): Mention that the range is
803 inclusive.
804
4a72de73
TT
8052020-10-07 Tom Tromey <tromey@adacore.com>
806
807 * target.h (simple_search_memory): Don't declare.
808 * target.c (simple_search_memory): Move to gdbsupport.
809 (default_search_memory): Update.
810 * remote.c (remote_target::search_memory): Update.
811
a038ffd8
SM
8122020-10-07 Simon Marchi <simon.marchi@efficios.com>
813
814 * Makefile.in (COMPILE): Add CXXFLAGS.
815 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
816 (check-headers): Add CXXFLAGS.
817
cc463201
AK
8182020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
819
820 * arc-linux-tdep.h: New file.
821 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
822 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
823 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
824 arc_linux_gregset, arc_linux_v2_regset,
825 arc_linux_iterate_over_regset_sections,
826 arc_linux_core_read_description): Implement.
827 (arc_linux_init_osabi): Set iterate_over_regset_sections.
828 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
829 (arc_gdbarch_features_create): Add.
830 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
831
e4bd363f
SV
8322020-10-07 Shahab Vahedi <shahab@synopsys.com>
833
834 * arch/arc.h: Rename "arc_gdbarch_features" to
835 "arc_arch_features".
836 * arc-tdep.h: Likewise.
837 * arc-tdep.c: Likewise.
838
b68bef99
TBA
8392020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
840
841 * infcmd.c (attach_command): Remove the redundant call to
842 `clear_proceed_status`.
843
4641551a
KR
8442020-10-07 Kamil Rytarowski <n54@gmx.com>
845
846 * nat/netbsd-nat.c (write_memory, read_memory): Update.
847
91e5e8db
KR
8482020-10-07 Kamil Rytarowski <n54@gmx.com>
849
850 * nat/netbsd-nat.c (write_memory, read_memory): Add.
851 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
852 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
853
64c03bdb
SM
8542020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
855
856 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
857 (_initialize_break_catch_sig): Don't allocate array.
858
31a8f60f
AB
8592020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
860
861 * symtab.c (find_pc_line): Return unmapped addresses when the
862 requested address is also unmapped.
863
9e6dbd8b
SM
8642020-10-05 Simon Marchi <simon.marchi@efficios.com>
865
866 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
867 tui/tui-out.h.
868
a1d217e8
SM
8692020-10-05 Simon Marchi <simon.marchi@efficios.com>
870
871 * amd64-windows-tdep.c (amd64_windows_return_value): Use
872 type::is_vector instead of TYPE_VECTOR.
873
7d144117
SM
8742020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
875
876 * auto-load.c (auto_load_objfile_script_1): Don't use
877 debugfile_holder as temporary variable when stripping drive
878 letter.
879
cd096ec8
HD
8802020-10-05 Hannes Domani <ssbssa@yahoo.de>
881
882 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
883 Add TYPE_CODE_COMPLEX.
884 (amd64_windows_return_value): Fix types returned via XMM0.
885
b58e7f72
AH
8862020-10-05 Alan Hayward <alan.hayward@arm.com>
887
888 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
889 AArch64/ARM maintainers.
890
8d378f27
SM
8912020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
892
893 * NEWS: Mention set/show debug event-loop.
894
d5519913
TT
8952020-10-02 Tom Tromey <tromey@adacore.com>
896
897 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
898 REG_EXTENDED.
899
18b67edc
SM
9002020-10-02 Simon Marchi <simon.marchi@efficios.com>
901
902 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
903 * procfs.c (procfs_inferior_created): Remove.
904 (_initialize_procfs): Don't register procfs_inferior_created.
905
6b01403b
SM
9062020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
907
908 * async-event.c (invoke_async_signal_handlers): Add debug
909 print.
910 (check_async_event_handlers): Likewise.
911 * event-top.c (show_debug_event_loop): New function.
912 (_initialize_event_top): Register "set debug event-loop"
913 setting.
914
ba988419
SM
9152020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
916
917 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
918 * debug.h: Remove.
919 * infrun.c: Include gdbsupport/common-debug.h.
920 * linux-nat.c: Likewise.
921
db20ebdf
SM
9222020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
923
924 * async-event.h (create_async_signal_handler): Add name
925 parameter.
926 (create_async_event_handler): Likewise.
927 * async-event.c (struct async_signal_handler) <name>: New field.
928 (struct async_event_handler) <name>: New field.
929 (create_async_signal_handler): Assign name.
930 (create_async_event_handler): Assign name.
931 * event-top.c (async_init_signals): Pass name when creating
932 handler.
933 * infrun.c (_initialize_infrun): Likewise.
934 * record-btrace.c (record_btrace_push_target): Likewise.
935 * record-full.c (record_full_open): Likewise.
936 * remote-notif.c (remote_notif_state_allocate): Likewise.
937 * remote.c (remote_target::open_1): Likewise.
938 * tui/tui-win.c (tui_initialize_win): Likewise.
939
2554f6f5
SM
9402020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
941
942 * async-event.c (initialize_async_signal_handlers): Pass name to
943 add_file_handler
944 * event-top.c (ui_register_input_event_handler): Likewise.
945 * linux-nat.c (linux_nat_target::async): Likewise.
946 * run-on-main-thread.c (_initialize_run_on_main_thread):
947 Likewise
948 * ser-base.c (reschedule): Likewise.
949 (ser_base_async): Likewise.
950 * tui/tui-io.c: Likewise.
951 * top.h (struct ui) <num>: New field.
952 * top.c (highest_ui_num): New variable.
953 (ui::ui): Initialize num.
954
a7aba266
SM
9552020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
956
957 * observable.h <inferior_created>: Remove parameters. Update all
958 listeners.
959 * inferior.h (post_create_inferior): Remove target parameter.
960 Update all callers.
961
048fde1e 9622020-10-02 Nitika Achra <Nitika.Achra@amd.com>
963
964 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
965 and DW_MACRO_undef_strx.
966 (dwarf_decode_macros): Likewise
967 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
968 which is the value of DW_AT_str_offsets_base.
969 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
970 str_offsets_base.
971
064280be
KR
9722020-10-01 Kamil Rytarowski <n54@gmx.com>
973
974 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
975
6ff33035
KR
9762020-10-01 Kamil Rytarowski <n54@gmx.com>
977
978 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
979 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
980
1eb6eb79
KR
9812020-10-01 Kamil Rytarowski <n54@gmx.com>
982
983 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
984
95eb9e54
TV
9852020-09-30 Tom de Vries <tdevries@suse.de>
986
987 PR symtab/26683
988 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
989
cae21f8e
TT
9902020-09-30 Tom Tromey <tromey@adacore.com>
991
992 * dwarf2/read.c (handle_variant): Use constant_value.
993
529908cb
TT
9942020-09-29 Tom Tromey <tom@tromey.com>
995
996 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
997 (read_file_scope, dwarf2_get_pc_bounds)
998 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
999 (read_structure_type, handle_struct_member_die)
1000 (read_enumeration_type, read_array_type, read_set_type)
1001 (read_tag_pointer_type, read_tag_reference_type)
1002 (read_subroutine_type, read_base_type, read_subrange_type)
1003 (read_full_die_1, partial_die_info::read)
1004 (partial_die_info::read, by, new_symbol)
1005 (dwarf2_const_value_data, dwarf2_const_value_attr)
1006 (dump_die_shallow, dwarf2_fetch_constant_bytes)
1007 (prepare_one_comp_unit): Update.
1008 * dwarf2/attribute.h (DW_UNSND): Remove.
1009
c45bc3f8
TT
10102020-09-29 Tom Tromey <tom@tromey.com>
1011
1012 * dwarf2/read.c (read_func_scope, prototyped_function_p)
1013 (read_subroutine_type, partial_die_info::read)
1014 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1015 (dwarf2_add_member_fn): Update.
1016 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1017 * dwarf2/attribute.c (attribute::as_boolean): New method.
1018
23dca5c3
TT
10192020-09-29 Tom Tromey <tom@tromey.com>
1020
1021 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1022 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1023 method.
1024 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1025
52c14d11
TT
10262020-09-29 Tom Tromey <tom@tromey.com>
1027
1028 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1029 the attribute's form.
1030
e8e5c158
TT
10312020-09-29 Tom Tromey <tom@tromey.com>
1032
1033 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1034 (dwarf2_add_member_fn): Update.
1035 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1036 * dwarf2/attribute.c (attribute::defaulted): New method, from
1037 is_valid_DW_AT_defaulted.
1038
d4df075e
TT
10392020-09-29 Tom Tromey <tom@tromey.com>
1040
1041 * dwarf2/read.c (dw2_get_file_names_reader)
1042 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1043 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1044 (dwarf2_symbol_mark_computed): Use as_unsigned.
1045 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1046 method.
1047 <form_is_section_offset>: Update comment.
1048
bf23a268
TT
10492020-09-29 Tom Tromey <tom@tromey.com>
1050
1051 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1052 dwarf2_default_access_attribute. Look up attribute.
1053 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1054 Update.
1055
7a5f294d
TT
10562020-09-29 Tom Tromey <tom@tromey.com>
1057
1058 * dwarf2/read.c (skip_one_die): Update.
1059 (read_full_die_1): Change how reprocessing is done.
1060 (partial_die_info::read): Update.
1061 (read_attribute_value): Remove need_reprocess parameter.
1062 (read_attribute): Likewise.
1063 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1064 New method.
1065
36d378cf
TT
10662020-09-29 Tom Tromey <tom@tromey.com>
1067
1068 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1069 (dwarf2_const_value_attr, dump_die_shallow)
1070 (dwarf2_fetch_constant_bytes): Update.
1071 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1072 comment.
1073 <set_address>: New method.
1074 (DW_ADDR): Remove.
1075 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1076 (attribute::as_string, attribute::as_address): Add assert.
1077
fe56917a
TT
10782020-09-29 Tom Tromey <tom@tromey.com>
1079
1080 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1081 (read_attribute_reprocess, read_attribute_value): Update.
1082 (read_attribute): Clear requires_reprocessing.
1083 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1084 form_requires_reprocessing>: New methods.
1085 <string_init>: Clear requires_reprocessing.
1086 <set_unsigned_reprocess>: New method.
1087 <name>: Shrink by one bit.
1088 <requires_reprocessing>: New member.
1089 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1090 method.
1091
414ad644
TT
10922020-09-29 Tom Tromey <tom@tromey.com>
1093
1094 * dwarf2/read.c (read_attribute_value): Update.
1095 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1096 set_unsigned>: New methods.
1097 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1098
1bc397c5
TT
10992020-09-29 Tom Tromey <tom@tromey.com>
1100
1101 * dwarf2/read.c (get_alignment, read_array_order)
1102 (read_attribute_value, dwarf2_const_value_attr)
1103 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1104 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1105 New methods.
1106 (DW_SND): Remove.
1107
630ed6b9
TT
11082020-09-29 Tom Tromey <tom@tromey.com>
1109
1110 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1111 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1112 Update.
1113 * dwarf2/attribute.h (struct attribute) <as_signature,
1114 set_signature>: New methods.
1115 (DW_SIGNATURE): Remove.
1116
9d2246fc
TT
11172020-09-29 Tom Tromey <tom@tromey.com>
1118
1119 * dwarf2/read.c (read_call_site_scope)
1120 (handle_data_member_location, dwarf2_add_member_fn)
1121 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1122 (partial_die_info::read, read_attribute_value)
1123 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1124 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1125 (dwarf2_symbol_mark_computed): Update.
1126 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1127 methods.
1128 (DW_BLOCK): Remove.
1129 * dwarf2/attribute.c (attribute::form_is_block): Add
1130 DW_FORM_data16.
1131
c6481205
TT
11322020-09-29 Tom Tromey <tom@tromey.com>
1133
1134 * dwarf2/read.c (read_cutu_die_from_dwo)
1135 (read_attribute_reprocess, read_attribute_value, read_attribute)
1136 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1137 (dwarf2_fetch_constant_bytes): Update.
1138 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1139 <set_string_noncanonical, set_string_canonical>: New methods.
1140 <string_is_canonical>: Update comment.
1141 <canonical_string_p>: Add assert.
1142 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1143 * dwarf2/attribute.c (attribute::form_is_string): New method.
1144 (attribute::string): Use it.
1145
3b64bf15
TT
11462020-09-29 Tom Tromey <tom@tromey.com>
1147
1148 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1149 (dump_die_shallow): Use canonical_string_p.
1150 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1151 method.
1152
2c830f54
TT
11532020-09-29 Tom Tromey <tom@tromey.com>
1154
1155 * dwarf2/read.c (partial_die_info::read)
1156 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1157 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1158 attribute::as_string.
1159
6c412691
TT
11602020-09-29 Tom Tromey <tom@tromey.com>
1161
1162 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1163 DW_ADDR.
1164 (attribute::string): Don't use DW_STRING.
1165 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1166 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1167
95f982e5
TT
11682020-09-29 Tom Tromey <tom@tromey.com>
1169
1170 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1171 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1172 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1173 * dwarf2/attribute.h (struct attribute): Rename methods.
1174 * dwarf2/attribute.c (attribute::as_address): Rename from
1175 value_as_address.
1176 (attribute::as_string): Rename from value_as_string.
1177
f800b00e
TT
11782020-09-29 Tom Tromey <tom@tromey.com>
1179
1180 * dwarf2/read.c (partial_die_info::read) <case
1181 DW_AT_linkage_name>: Use value_as_string.
1182 (dwarf2_string_attr): Use value_as_string.
1183 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1184 method.
1185 * dwarf2/attribute.c (attribute::value_as_string): New method.
1186
de38d64a
PA
11872020-09-29 Pedro Alves <pedro@palves.net>
1188
1189 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1190 defined before using '#pragma GCC diagnostic' instead of checking
1191 __clang__.
1192
9aed480c
TT
11932020-09-28 Tom Tromey <tom@tromey.com>
1194
1195 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1196 (handle_signal_stop): Update.
1197 * procfs.c (procfs_target::insert_watchpoint): Update.
1198 * target.h (target_have_steppable_watchpoint): Now a function.
1199
8a3ecb79
TT
12002020-09-28 Tom Tromey <tom@tromey.com>
1201
1202 * infrun.c (set_schedlock_func): Update.
1203 * target.h (target_can_lock_scheduler): Now a function.
1204
55f6301a
TT
12052020-09-28 Tom Tromey <tom@tromey.com>
1206
1207 * inferior.h (class inferior) <has_execution>: Update.
1208 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1209 * valops.c (find_function_in_inferior)
1210 (value_allocate_space_in_inferior): Update.
1211 * top.c (kill_or_detach): Update.
1212 * target.c (target_preopen, set_target_permissions): Update.
1213 (target_has_execution_current): Remove.
1214 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1215 Update.
1216 * solib.c (update_solib_list, reload_shared_libraries): Update.
1217 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1218 * solib-dsbt.c (enable_break): Update.
1219 * score-tdep.c (score7_fetch_inst): Update.
1220 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1221 Update.
1222 * remote.c (remote_target::start_remote)
1223 (remote_target::remote_check_symbols, remote_target::open_1)
1224 (remote_target::remote_detach_1, remote_target::verify_memory)
1225 (remote_target::xfer_partial, remote_target::read_description)
1226 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1227 * record-full.c (record_full_open_1): Update.
1228 * record-btrace.c (record_btrace_target_open): Update.
1229 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1230 (value_nsstring): Update.
1231 * linux-thread-db.c (add_thread_db_info)
1232 (thread_db_find_new_threads_silently, check_thread_db_callback)
1233 (try_thread_db_load_1, record_thread): Update.
1234 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1235 Update.
1236 * linux-fork.c (checkpoint_command): Update.
1237 * infrun.c (set_non_stop, set_observer_mode)
1238 (check_multi_target_resumption, for_each_just_stopped_thread)
1239 (maybe_remove_breakpoints, normal_stop)
1240 (class infcall_suspend_state): Update.
1241 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1242 (info_program_command, attach_command): Update.
1243 * infcall.c (call_function_by_hand_dummy): Update.
1244 * inf-loop.c (inferior_event_handler): Update.
1245 * gcore.c (gcore_command, derive_heap_segment): Update.
1246 * exec.c (exec_file_command): Update.
1247 * eval.c (evaluate_subexp): Update.
1248 * compile/compile.c (compile_to_object): Update.
1249 * cli/cli-dump.c (restore_command): Update.
1250 * breakpoint.c (update_watchpoint)
1251 (update_inserted_breakpoint_locations)
1252 (insert_breakpoint_locations, get_bpstat_thread): Update.
1253 * target.h (target_has_execution): Remove macro.
1254 (target_has_execution_current): Don't declare.
1255 (target_has_execution): Rename from target_has_execution_1. Add
1256 argument default.
1257
05374cfd
TT
12582020-09-28 Tom Tromey <tom@tromey.com>
1259
1260 * mi/mi-main.c (exec_reverse_continue)
1261 (mi_cmd_list_target_features): Update.
1262 * infrun.c (set_exec_direction_func): Update.
1263 * target.c (default_execution_direction): Update.
1264 * reverse.c (exec_reverse_once): Update.
1265 * target.h (target_can_execute_reverse): Now a function.
1266
9dccd06e
TT
12672020-09-28 Tom Tromey <tom@tromey.com>
1268
1269 * tui/tui-regs.c (tui_get_register)
1270 (tui_data_window::show_registers): Update.
1271 * thread.c (scoped_restore_current_thread::restore)
1272 (scoped_restore_current_thread::scoped_restore_current_thread):
1273 Update.
1274 * regcache-dump.c (regcache_print): Update.
1275 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1276 Update.
1277 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1278 * mep-tdep.c (current_me_module, current_options): Update.
1279 * linux-thread-db.c (thread_db_load): Update.
1280 * infcmd.c (registers_info, info_vector_command)
1281 (info_float_command): Update.
1282 * ia64-tdep.c (ia64_frame_prev_register)
1283 (ia64_sigtramp_frame_prev_register): Update.
1284 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1285 * gcore.c (derive_stack_segment): Update.
1286 * frame.c (get_current_frame, has_stack_frames): Update.
1287 * findvar.c (language_defn::read_var_value): Update.
1288 * arm-tdep.c (arm_pc_is_thumb): Update.
1289 * target.c (target_has_registers): Rename from
1290 target_has_registers_1.
1291 * target.h (target_has_registers): Remove macro.
1292 (target_has_registers): Rename from target_has_registers_1.
1293
841de120
TT
12942020-09-28 Tom Tromey <tom@tromey.com>
1295
1296 * windows-tdep.c (tlb_make_value): Update.
1297 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1298 * thread.c (scoped_restore_current_thread::restore)
1299 (scoped_restore_current_thread::scoped_restore_current_thread)
1300 (thread_command): Update.
1301 * stack.c (backtrace_command_1, frame_apply_level_command)
1302 (frame_apply_all_command, frame_apply_command): Update.
1303 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1304 Update.
1305 * gcore.c (derive_stack_segment): Update.
1306 * frame.c (get_current_frame, has_stack_frames): Update.
1307 * auxv.c (info_auxv_command): Update.
1308 * ada-tasks.c (ada_build_task_list): Update.
1309 * target.c (target_has_stack): Rename from target_has_stack_1.
1310 * target.h (target_has_stack): Remove macro.
1311 (target_has_stack): Rename from target_has_stack_1.
1312
a739972c
TT
13132020-09-28 Tom Tromey <tom@tromey.com>
1314
1315 * target.c (target_has_memory): Rename from target_has_memory_1.
1316 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1317 * thread.c (scoped_restore_current_thread::restore)
1318 (scoped_restore_current_thread::scoped_restore_current_thread):
1319 Update.
1320 * frame.c (get_current_frame, has_stack_frames): Update.
1321 * target.h (target_has_memory): Remove macro.
1322 (target_has_memory): Rename from target_has_memory_1.
1323
5b8a4776
TT
13242020-09-28 Tom Tromey <tom@tromey.com>
1325
1326 * target.c (target_has_all_memory_1): Remove.
1327 * target.h (target_has_all_memory): Remove define.
1328 (target_has_all_memory_1): Don't declare.
1329
bd356ec6
SM
13302020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1331
1332 * ser-base.c: Adjust comments formatting.
1333
2c72d5e5
TT
13342020-09-27 Tom Tromey <tom@tromey.com>
1335
1336 PR tui/25342:
1337 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1338
35a98237
TT
13392020-09-27 Tom Tromey <tom@tromey.com>
1340
1341 PR tui/25342:
1342 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1343
9e820dec
TT
13442020-09-27 Tom Tromey <tom@tromey.com>
1345
1346 * unittests/tui-selftests.c: Update.
1347 * tui/tui-winsource.h (struct tui_source_window_base)
1348 <extra_margin, show_line_number, refresh_pad>: New methods.
1349 <m_max_length, m_pad>: New members.
1350 (tui_copy_source_line): Update.
1351 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1352 first_col, line_width, ndigits parameters. Add length.
1353 (tui_source_window_base::show_source_line): Write to pad. Line
1354 number now 0-based.
1355 (tui_source_window_base::refresh_pad): New method.
1356 (tui_source_window_base::show_source_content): Write to pad. Call
1357 refresh_pad.
1358 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1359 not refill.
1360 (tui_source_window_base::update_exec_info): Call
1361 show_line_number.
1362 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1363 method.
1364 <m_digits>: New member.
1365 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1366 and m_max_length.
1367 (tui_source_window::show_line_number): New method.
1368 * tui/tui-io.h (tui_puts): Fix comment.
1369 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1370 m_max_length.
1371
c15c15c8
TT
13722020-09-27 Tom Tromey <tom@tromey.com>
1373
1374 * tui/tui-winsource.c
1375 (tui_source_window_base::set_is_exec_point_at): Don't call
1376 show_source_line.
1377
149830c1
TT
13782020-09-27 Tom Tromey <tom@tromey.com>
1379
1380 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1381 method.
1382 <erase>: Update.
1383 <cursor_x, cursor_y>: Remove.
1384 <m_inner_window>: New member.
1385 (tui_py_window::rerender): Create inner window.
1386 (tui_py_window::output): Write to inner window.
1387
8f9929bb
GR
13882020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1389
1390 PR python/26586
1391 * cli/cli-script.c (execute_control_commands): don't set
1392 instream to nullptr here as this breaks the from_tty argument
1393 to gdb.execute in Python.
1394 (execute_user_command): set instream to nullptr here instead.
1395
956bdb59
SM
13962020-09-25 Simon Marchi <simon.marchi@efficios.com>
1397
1398 * infrun.h (infrun_debug_printf): Fix formatting.
1399 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1400
3b93626b
SJ
14012020-09-25 Saagar Jha <saagar@saagarjha.com>
1402
1403 * compile/compile-object-load.h (struct munmap_list): Add
1404 explicitly-defined move constructor.
1405
b551a89f
TT
14062020-09-24 Tom Tromey <tromey@adacore.com>
1407
1408 PR tui/26638:
1409 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1410 method.
1411 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1412 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1413 (tui_prev_win): Rewrite.
1414
99bb393f
HD
14152020-09-23 Hannes Domani <ssbssa@yahoo.de>
1416
1417 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1418 in WOW64 processes as SIGINT.
1419 * nat/windows-nat.h: Make wow64_process a shared variable.
1420 * windows-nat.c: Remove static wow64_process variable.
1421
20a5fcbd
TT
14222020-09-23 Tom Tromey <tom@tromey.com>
1423
1424 PR symtab/25470:
1425 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1426 offset and bit size.
1427 * printcmd.c (print_scalar_formatted): Handle zero-length
1428 integer.
1429 (print_scalar_formatted): Use bit_size_differs_p.
1430 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1431 constant.
1432 (union type_specific): <int_stuff>: New member.
1433 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1434 methods.
1435 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1436 TYPE_SPECIFIC_FIELD.
1437 (recursive_dump_type, copy_type_recursive): Update.
1438 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1439 DW_AT_data_bit_offset.
1440
bac51ab7
TT
14412020-09-23 Tom Tromey <tom@tromey.com>
1442
1443 * utils.h (class gdb_argv): Add move operators.
1444 <append>: New methods.
1445 * compile/compile.c (build_argc_argv): Remove.
1446 (compile_args_argc): Remove.
1447 (compile_args_argv): Change type.
1448 (set_compile_args): Simplify.
1449 (append_args): Remove.
1450 (filter_args): Remove argcp parameter.
1451 (get_args): Return gdb_argv. Simplify.
1452 (compile_to_object): Update.
1453
92677124
TT
14542020-09-23 Tom Tromey <tom@tromey.com>
1455
1456 * compile/compile-object-run.c (do_module_cleanup)
1457 <~do_module_cleanup> :Remove.
1458 (do_module_cleanup): Update.
1459 * compile/compile-object-load.h (struct munmap_list): Add move
1460 assignment operator.
1461 <source_file>: Now a std::string.
1462 <munmap_list>: Rename. No longer a pointer.
1463 * compile/compile-object-load.c (struct setup_sections_data): Add
1464 constructor.
1465 <setup_one_section>: Declare.
1466 <munmap_list>: Move earlier.
1467 <m_bfd>: New member.
1468 <m_last_size, m_last_section_first, m_last_prot,
1469 m_last_max_alignment>: Rename, add initializers where needed.
1470 (setup_sections_data::setup_one_section): Rename from
1471 setup_sections. Update.
1472 (compile_object_load): Update. Don't use bfd_map_over_sections.
1473
e616f60a
TT
14742020-09-23 Tom Tromey <tom@tromey.com>
1475
1476 * compile/compile-object-run.c (struct do_module_cleanup): Add
1477 parameters to constructor. Update destructor.
1478 <source_file, scope, scope_data, out_value_type, out_value_addr,
1479 munmap_list_head, objfile_name_string>: Remove.
1480 <module>: New member.
1481 (do_module_cleanup): Update.
1482 (compile_object_run): Update.
1483
e947a848
TT
14842020-09-23 Tom Tromey <tom@tromey.com>
1485
1486 * compile/compile.c (eval_compile_command): Update.
1487 * compile/compile-object-run.h (compile_object_run): Take a
1488 compile_module_up.
1489 * compile/compile-object-run.c (compile_object_run): Take a
1490 compile_module_up.
1491 * compile/compile-object-load.h (struct compile_module): Add
1492 constructor, destructor.
1493 (compile_module_up): New typedef.
1494 (compile_object_load): Return compile_object_up.
1495 * compile/compile-object-load.c (compile_object_load): Return
1496 compile_module_up.
1497
0dbf6ee6
TT
14982020-09-23 Tom Tromey <tom@tromey.com>
1499
1500 * compile/compile-object-run.c (struct do_module_cleanup): Add
1501 constructor, destructor.
1502 <objfile_name_string>: Don't use struct hack.
1503 (do_module_cleanup): Use delete.
1504 (compile_object_run): Use new.
1505
ebe824f5
TT
15062020-09-23 Tom Tromey <tom@tromey.com>
1507
1508 * compile/compile-cplus-types.c
1509 (compile_cplus_convert_struct_or_union): Use std::vector.
1510 (compile_cplus_convert_func): Likewise.
1511 * compile/compile-c-types.c (convert_func): Use std::vector.
1512
5dd918d9
TT
15132020-09-21 Tom Tromey <tromey@adacore.com>
1514
1515 * sparc-tdep.c (sparc32_skip_prologue): Use
1516 skip_prologue_using_sal.
1517
5486c517
TT
15182020-09-19 Tom Tromey <tom@tromey.com>
1519
1520 * symfile.c (add_section_size_callback): Remove.
1521 (load_one_section): Rename from load_section_callback. Change
1522 parameters.
1523 (generic_load): Use foreach.
1524
8a6bb1d1
TT
15252020-09-19 Tom Tromey <tom@tromey.com>
1526
1527 * exec.c (add_to_section_table): Remove.
1528 (build_section_table): Use foreach.
1529
08f93a1a
TT
15302020-09-19 Tom Tromey <tom@tromey.com>
1531
1532 * elfread.c (elf_locate_sections): Change parameters.
1533 (elf_symfile_read): Use foreach.
1534
03cd72b8
TT
15352020-09-19 Tom Tromey <tom@tromey.com>
1536
1537 * cli/cli-dump.c (struct callback_data): Remove.
1538 (restore_one_section): Rename from restore_section_callback.
1539 Change parameters.
1540 (restore_binary_file): Change parameters.
1541 (restore_command): Use foreach.
1542
f4f2b85f
TT
15432020-09-19 Tom Tromey <tom@tromey.com>
1544
1545 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1546 (gcore_copy_callback): Likewise.
1547 (gcore_memory_sections): Use foreach.
1548
b35c1d1c
TT
15492020-09-19 Tom Tromey <tom@tromey.com>
1550
1551 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1552 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1553 parameters.
1554 (generic_elf_osabi_sniffer): Use foreach.
1555 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1556 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1557
5bb6e9dd
TT
15582020-09-19 Tom Tromey <tom@tromey.com>
1559
1560 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1561 (dwarf2_get_dwz_file): Use foreach.
1562 (dwarf2_locate_dwo_sections): Change parameters.
1563 (open_and_init_dwo_file): Use foreach.
1564 (dwarf2_locate_common_dwp_sections): Change parameters.
1565 (open_and_init_dwp_file): Use foreach.
1566
ad7277da
TT
15672020-09-19 Tom Tromey <tom@tromey.com>
1568
1569 * symfile.h: (find_lowest_section): Don't declare.
1570 * symfile.c (find_lowest_section): Now static. Change
1571 parameters.
1572 (struct place_section_arg): Remove.
1573 (place_section): Change parameters.
1574 (addr_info_make_relative): Use foreach.
1575 (symfile_dummy_outputs): Remove.
1576 (default_symfile_relocate): Use foreach.
1577
cb814f2e
TT
15782020-09-19 Tom Tromey <tom@tromey.com>
1579
1580 * objfiles.c (add_to_objfile_sections): Rename from
1581 add_to_objfile_sections_full.
1582 (add_to_objfile_sections): Remove.
1583 (build_objfile_section_table): Use foreach.
1584
3cabfd26
TT
15852020-09-19 Tom Tromey <tom@tromey.com>
1586
1587 * stap-probe.c (get_stap_base_address_1): Remove.
1588 (get_stap_base_address): Use foreach.
1589
1ce51eb5
TT
15902020-09-19 Tom Tromey <tom@tromey.com>
1591
1592 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1593 parameters.
1594 (gdb_bfd_close_or_warn): Use foreach.
1595
a190fabb
TT
15962020-09-19 Tom Tromey <tom@tromey.com>
1597
1598 * corelow.c (add_to_thread_list): Change parameters.
1599 (core_target_open): Use foreach.
1600
cafb0d81
TT
16012020-09-19 Tom Tromey <tom@tromey.com>
1602
1603 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1604 existing function.
1605
c8d5abea
AB
16062020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1607
1608 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1609 for arrays.
1610
6d816919
AB
16112020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1612
1613 * eval.c: Remove 'f-lang.h' include.
1614 (value_f90_subarray): Moved to f-lang.c.
1615 (eval_call): Renamed to...
1616 (evaluate_subexp_do_call): ...this, is no longer static, header
1617 comment moved into header file.
1618 (evaluate_funcall): Update call to eval_call.
1619 (skip_undetermined_arglist): Moved to f-lang.c.
1620 (fortran_value_subarray): Likewise.
1621 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1622 moved to evaluate_subexp_f.
1623 (calc_f77_array_dims): Moved to f-lang.c
1624 * expprint.c (print_subexp_funcall): New function.
1625 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1626 moved to print_subexp_f, OP_FUNCALL uses new function.
1627 (dump_subexp_body_funcall): New function.
1628 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1629 moved to dump_subexp_f, OP_FUNCALL uses new function.
1630 * expression.h (evaluate_subexp_do_call): Declare.
1631 * f-lang.c (value_f90_subarray): Moved from eval.c.
1632 (skip_undetermined_arglist): Likewise.
1633 (calc_f77_array_dims): Likewise.
1634 (fortran_value_subarray): Likewise.
1635 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1636 (operator_length_f): Likewise.
1637 (print_subexp_f): Likewise.
1638 (dump_subexp_body_f): Likewise.
1639 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1640 declaration of this operation to here.
1641 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1642 support moved to operator_length_f.
1643 * parser-defs.h (dump_subexp_body_funcall): Declare.
1644 (print_subexp_funcall): Declare.
1645 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1646 fortran-operator.def.
1647
8c37706a
AB
16482020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1649
1650 * eval.c (fortran_value_subarray): New function, content is taken
1651 from...
1652 (evaluate_subexp_standard): ...here, in two places. Now arrays
1653 and strings both call the new function.
1654 (calc_f77_array_dims): Add header comment, handle strings.
1655
14f9473c
VC
16562020-09-18 Victor Collod <vcollod@nvidia.com>
1657
1658 PR gdb/26635
1659 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1660 (i386_analyze_prologue): Call i386_skip_endbr.
1661
b60cea74
TT
16622020-09-18 Tom Tromey <tromey@adacore.com>
1663
1664 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1665 (windows_nat_target::wait): Update.
1666 * target/wait.h (enum target_wait_flag): New. Use
1667 DEF_ENUM_FLAGS_TYPE.
1668 * target/target.h (target_wait): Change type of options.
1669 * target.h (target_options_to_string, default_target_wait):
1670 Update.
1671 (struct target_ops) <wait>: Change type of options.
1672 * target.c (target_wait, default_target_wait, do_option): Change
1673 type of "options".
1674 (target_options_to_string): Likewise.
1675 * target-delegates.c: Rebuild.
1676 * target-debug.h (target_debug_print_target_wait_flags): Rename
1677 from target_debug_print_options.
1678 * sol-thread.c (class sol_thread_target) <wait>: Update.
1679 (sol_thread_target::wait): Update.
1680 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1681 (rs6000_nat_target::wait): Update.
1682 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1683 Update.
1684 (remote_target::wait_ns, remote_target::wait_as): Change type of
1685 "options".
1686 (remote_target::wait): Update.
1687 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1688 (gdbsim_target::wait): Update.
1689 * record-full.c (class record_full_base_target) <wait>: Update.
1690 (record_full_wait_1): Change type of "options".
1691 (record_full_base_target::wait): Update.
1692 * record-btrace.c (class record_btrace_target) <wait>: Update.
1693 (record_btrace_target::wait): Update.
1694 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1695 Update.
1696 (ravenscar_thread_target::wait): Update.
1697 * procfs.c (class procfs_target) <wait>: Update.
1698 (procfs_target::wait): Update.
1699 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1700 * obsd-nat.c (obsd_nat_target::wait): Update.
1701 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1702 (nto_procfs_target::wait): Update.
1703 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1704 * nbsd-nat.c (nbsd_wait): Change type of "options".
1705 (nbsd_nat_target::wait): Update.
1706 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1707 (thread_db_target::wait): Update.
1708 * linux-nat.h (class linux_nat_target) <wait>: Update.
1709 * linux-nat.c (linux_nat_target::wait): Update.
1710 (linux_nat_wait_1): Update.
1711 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1712 "options".
1713 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1714 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1715 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1716 (go32_nat_target::wait): Update.
1717 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1718 * gnu-nat.c (gnu_nat_target::wait): Update.
1719 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1720 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1721 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1722 * darwin-nat.c (darwin_nat_target::wait): Update.
1723 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1724 (bsd_uthread_target::wait): Update.
1725 * aix-thread.c (class aix_thread_target) <wait>: Update.
1726 (aix_thread_target::wait): Update.
1727
0295dde6
AB
17282020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1729
1730 * compile/compile-object-run.c (create_copied_type_recursive): New
1731 function.
1732 (compile_object_run): Use new function.
1733
d3483b43
JT
17342020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1735
1736 * NEWS: Mention x86_64 Cygwin core file support.
1737
e7d612ad
JT
17382020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1739
1740 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1741 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1742
aff9d387
JT
17432020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1744
62a5151b
JT
1745 * windows-tdep.h: Add prototypes.
1746 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1747 (i386_windows_core_pid_to_str): Move and rename ...
1748 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1749 (windows_core_pid_to_str): ... and here.
1750 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1751
17522020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
1753 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1754 (amd64_windows_init_abi_common): ... and register.
1755
7d155da3
JT
17562020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1757
1758 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1759 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1760
e8ef12b9
PA
17612020-09-18 Pedro Alves <pedro@palves.net>
1762
1763 PR gdb/26631
1764 * thread.c (thread_find_command): Switch inferior before calling
1765 target methods.
1766
c1e1314d
TT
17672020-09-17 Tom Tromey <tromey@adacore.com>
1768
1769 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1770 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1771 (tdesc_arch_data_up): New typedef.
1772 (tdesc_use_registers, tdesc_data_alloc): Update.
1773 (tdesc_data_cleanup): Don't declare.
1774 * target-descriptions.c (tdesc_data_alloc): Return a
1775 tdesc_arch_data_up.
1776 (tdesc_arch_data_deleter::operator()): Rename from
1777 tdesc_data_cleanup. Change argument type.
1778 (tdesc_use_registers): Change early_data to an rvalue reference.
1779 (tdesc_use_registers): Don't use delete.
1780 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1781 * s390-tdep.c (s390_gdbarch_init): Update.
1782 * rx-tdep.c (rx_gdbarch_init): Update.
1783 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1784 * riscv-tdep.c (riscv_gdbarch_init): Update.
1785 * or1k-tdep.c (or1k_gdbarch_init): Update.
1786 * nios2-tdep.c (nios2_gdbarch_init): Update.
1787 * nds32-tdep.c (nds32_gdbarch_init): Update.
1788 * mips-tdep.c (mips_gdbarch_init): Update.
1789 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1790 * m68k-tdep.c (m68k_gdbarch_init): Update.
1791 * i386-tdep.c (i386_gdbarch_init): Update.
1792 * arm-tdep.c (arm_gdbarch_init): Update.
1793 * arc-tdep.c (arc_tdesc_init): Update.
1794 (arc_gdbarch_init): Update.
1795 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1796
0363df3d
HD
17972020-09-17 Hannes Domani <ssbssa@yahoo.de>
1798
1799 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1800 for WOW64 processes.
1801
280a9412
TT
18022020-09-17 Tom Tromey <tom@tromey.com>
1803
1804 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1805
6108fd18
TT
18062020-09-17 Tom Tromey <tom@tromey.com>
1807
1808 * value.c (preserve_values): Update.
1809 * python/py-type.c (save_objfile_types): Update.
1810 * guile/scm-type.c (save_objfile_types): Update.
1811 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1812 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1813 * compile/compile-object-run.c (compile_object_run): Update.
1814
fa9b1164
TT
18152020-09-17 Tom Tromey <tom@tromey.com>
1816
1817 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1818 Remove.
1819 <m_table>: Now htab_up.
1820 * typeprint.c (typedef_hash_table::recursively_update)
1821 (typedef_hash_table::add_template_parameters)
1822 (typedef_hash_table::typedef_hash_table): Update.
1823 (typedef_hash_table::~typedef_hash_table): Remove.
1824 (typedef_hash_table::typedef_hash_table)
1825 (typedef_hash_table::find_global_typedef)
1826 (typedef_hash_table::find_typedef): Update.
1827
eb53f105
TT
18282020-09-17 Tom Tromey <tom@tromey.com>
1829
1830 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1831
7a8a5d47
TT
18322020-09-17 Tom Tromey <tom@tromey.com>
1833
1834 * linespec.c (class decode_compound_collector)
1835 <~decode_compound_collector>: Remove.
1836 <m_unique_syms>: Now htab_up.
1837 (decode_compound_collector::operator ()): Update.
1838 (class symtab_collector) <~symtab_collector>: Remove.
1839 <m_symtab_table>: Now htab_up.
1840 (symtab_collector::operator ()): Update.
1841
99032cfc
TT
18422020-09-17 Tom Tromey <tom@tromey.com>
1843
1844 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1845 (filename_seen_cache::clear): Update.
1846 (~filename_seen_cache): Remove.
1847 (filename_seen_cache::seen): Update.
1848 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1849 htab_up.
1850 <~filename_seen_cache>: Remove.
1851 <traverse>: Update.
1852
32580f6d
TT
18532020-09-17 Tom Tromey <tom@tromey.com>
1854
1855 * completer.c (completion_tracker::discard_completions)
1856 (completion_tracker::~completion_tracker)
1857 (completion_tracker::maybe_add_completion)
1858 (completion_tracker::remove_completion)
1859 (completion_tracker::recompute_lowest_common_denominator)
1860 (completion_tracker::build_completion_result): Update.
1861 * completer.h (class completion_tracker) <have_completions>:
1862 Update.
1863 <m_entries_hash>: Now htab_up.
1864
c1fb9836
TT
18652020-09-17 Tom Tromey <tom@tromey.com>
1866
1867 * breakpoint.c (ambiguous_names_p): Use htab_up.
1868
88f07206
TT
18692020-09-17 Tom Tromey <tom@tromey.com>
1870
1871 * auto-load.c (struct auto_load_pspace_info)
1872 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1873 <loaded_script_files, loaded_script_texts>: Change type to
1874 htab_up.
1875 (~auto_load_pspace_info) Remove.
1876 (init_loaded_scripts_info, maybe_add_script_file)
1877 (maybe_add_script_text, auto_load_info_scripts): Update.
1878
9519b2ee
TT
18792020-09-17 Tom Tromey <tromey@adacore.com>
1880
1881 * c-exp.y (name_obstack): Now static.
1882
d2cd4113
CC
18832020-09-17 Chungyi Chi <demonic@csie.io>
1884
1885 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1886
b650a282
SM
18872020-09-16 Simon Marchi <simon.marchi@efficios.com>
1888
1889 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1890 (add_solib_catchpoint): Likewise.
1891 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1892 to bool.
1893 (add_solib_catchpoint): Change int parameter/variable to bool.
1894 (catch_load_or_unload): Likewise.
1895 (init_catchpoint): Likewise.
1896 (create_fork_vfork_event_catchpoint): Likewise.
1897 (catch_fork_command_1): Likewise.
1898 (catch_exec_command_1): Likewise.
1899
4d0bcfcf
SM
19002020-09-16 Simon Marchi <simon.marchi@efficios.com>
1901
1902 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1903 Change instance_flags to m_instance_flags.
1904
fe830662
TT
19052020-09-16 Tom Tromey <tromey@adacore.com>
1906
1907 PR gdb/26598:
1908 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1909
fe5ddfc3
JB
19102020-09-16 John Baldwin <jhb@FreeBSD.org>
1911
1912 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1913 PL_FLAG_EXEC.
1914 (fbsd_nat_target::insert_exec_catchpoint)
1915 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1916 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1917 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1918
e911c666
JB
19192020-09-16 John Baldwin <jhb@FreeBSD.org>
1920
1921 * configure.ac: Remove check for kinfo_getvmmap().
1922 * configure, config.in: Regenerate.
1923 * fbsd-nat.c (fbsd_read_mapping): Remove
1924 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1925 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1926 kinfo_get_vmmap() are always present.
1927
1f17d372
JB
19282020-09-16 John Baldwin <jhb@FreeBSD.org>
1929
1930 * fbsd-nat.c: Always include support for
1931 TARGET_OBJECT_SIGNAL_INFO.
1932
bcb1da7f
JB
19332020-09-16 John Baldwin <jhb@FreeBSD.org>
1934
1935 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1936 sysctl and remove procfs fallback.
1937
5515f729
JB
19382020-09-16 John Baldwin <jhb@FreeBSD.org>
1939
1940 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1941 * fbsd-nat.h: Likewise.
1942
da1df1db
TBA
19432020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1944
1945 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1946 argument.
1947
0e25e767
AB
19482020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1949
1950 * ada-lang.c (ada_language_data): Delete.
1951 (ada_language): Remove references to ada_language_data.
1952 * c-lang.c (c_language_data): Delete.
1953 (c_language): Remove references to c_language_data.
1954 (cplus_language_data): Delete.
1955 (cplus_language): Remove references to cplus_language_data.
1956 (asm_language_data): Delete.
1957 (asm_language): Remove references to asm_language_data.
1958 (minimal_language_data): Delete.
1959 (minimal_language): Remove references to minimal_language_data.
1960 * d-lang.c (d_language_data): Delete.
1961 (d_language): Remove references to d_language_data.
1962 * f-lang.c (f_language_data): Delete.
1963 (f_language): Remove references to f_language_data.
1964 * go-lang.c (go_language_data): Delete.
1965 (go_language): Remove references to go_language_data.
1966 * language.c (unknown_language_data): Delete.
1967 (unknown_language): Remove references to unknown_language_data.
1968 (auto_language_data): Delete.
1969 (auto_language): Remove references to auto_language_data.
1970 * language.h (language_data): Delete struct.
1971 (language_defn): No longer inherit from language_data.
1972 * m2-lang.c (m2_language_data): Delete.
1973 (m2_language): Remove references to m2_language_data.
1974 * objc-lang.c (objc_language_data): Delete.
1975 (objc_language): Remove references to objc_language_data.
1976 * opencl-lang.c (opencl_language_data): Delete.
1977 (opencl_language): Remove references to opencl_language_data.
1978 * p-lang.c (pascal_language_data): Delete.
1979 (pascal_language): Remove references to pascal_language_data.
1980 * rust-lang.c (rust_language_data): Delete.
1981 (rust_language): Remove references to rust_language_data.
1982
b7c6e27d
AB
19832020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1984
1985 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1986 initializer.
1987 (ada_language::opcode_print_table): New member function.
1988 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1989 (c_language::opcode_print_table): New member function.
1990 (cplus_language_data): Remove la_op_print_tab initializer.
1991 (cplus_language::opcode_print_table): New member function.
1992 (asm_language_data): Remove la_op_print_tab initializer.
1993 (asm_language::opcode_print_table): New member function.
1994 (minimal_language_data): Remove la_op_print_tab initializer.
1995 (minimal_language::opcode_print_table): New member function.
1996 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1997 (d_language::opcode_print_table): New member function.
1998 * expprint.c (print_subexp_standard): Update call to
1999 opcode_print_table.
2000 (op_string): Likewise.
2001 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
2002 (f_language::opcode_print_table): New member function.
2003 * go-lang.c (go_language_data): Remove la_op_print_tab
2004 initializer.
2005 (go_language::opcode_print_table): New member function.
2006 * language.c (unknown_language_data): Remove la_op_print_tab
2007 initializer.
2008 (unknown_language::opcode_print_table): New member function.
2009 (auto_language_data): Remove la_op_print_tab initializer.
2010 (auto_language::opcode_print_table): New member function.
2011 * language.h (language_data): Remove la_op_print_tab field.
2012 (language_defn::opcode_print_table): Declare new member function.
2013 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2014 initializer.
2015 (m2_language::opcode_print_table): New member function.
2016 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2017 initializer.
2018 (objc_language::opcode_print_table): New member function.
2019 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2020 initializer.
2021 (opencl_language::opcode_print_table): New member function.
2022 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2023 initializer.
2024 (pascal_language::opcode_print_table): New member function.
2025 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2026 initializer.
2027 (rust_language::opcode_print_table): New member function.
2028
5aba6ebe
AB
20292020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2030
2031 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2032 (ada_language::expression_ops): New member function.
2033 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2034 (c_language::expression_ops): New member function.
2035 (cplus_language_data): Remove la_exp_desc initializer.
2036 (cplus_language::expression_ops): New member function.
2037 (asm_language_data): Remove la_exp_desc initializer.
2038 (asm_language::expression_ops): New member function.
2039 (minimal_language_data): Remove la_exp_desc initializer.
2040 (minimal_language::expression_ops): New member function.
2041 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2042 (d_language::expression_ops): New member function.
2043 * eval.c (evaluate_subexp): Update call to expression_ops.
2044 * expprint.c (print_subexp): Likewise.
2045 (op_name): Likewise.
2046 (dump_subexp_body): Likewise.
2047 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2048 (f_language::expression_ops): New member function.
2049 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2050 (go_language::expression_ops): New member function.
2051 * language.c (language_defn::expression_ops): New function.
2052 (unknown_language_data): Remove la_exp_desc initializer.
2053 (auto_language_data): Likewise.
2054 * language.h (language_data): Remove la_exp_desc field.
2055 (language_defn::expression_ops): Declare new member function.
2056 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2057 (m2_language::expression_ops): New member function.
2058 * objc-lang.c (objc_language_data): Remove la_exp_desc
2059 initializer.
2060 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2061 initializer.
2062 (opencl_language::expression_ops): New member function.
2063 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2064 * parse.c (operator_length): Update call to expression_ops.
2065 (exp_iterate): Likewise.
2066 * rust-lang.c (rust_language_data): Remove la_exp_desc
2067 initializer.
2068 (ruse_language::expression_ops): New member function.
2069
b63a3f3f
AB
20702020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2071
2072 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2073 initializer.
2074 (ada_language::varobj_ops): New member function.
2075 * c-lang.c (c_language_data): Remove la_varobj_ops
2076 initializer.
2077 (cplus_language_data): Likewise.
2078 (cplus_language::varobj_ops): New member function.
2079 (asm_language_data): Remove la_varobj_ops initializer.
2080 (minimal_language_data): Likewise.
2081 * d-lang.c (d_language_data): Likewise.
2082 * f-lang.c (f_language_data): Likewise.
2083 * go-lang.c (go_language_data): Likewise.
2084 * language.c (language_defn::varobj_ops): New function.
2085 (unknown_language_data): Remove la_varobj_ops
2086 initializer.
2087 (auto_language_data): Likewise.
2088 * language.h (language_data): Remove la_varobj_ops field.
2089 (language_defn::varobj_ops): Declare new member function.
2090 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2091 * objc-lang.c (objc_language_data): Likewise.
2092 * opencl-lang.c (opencl_language_data): Likewise.
2093 * p-lang.c (pascal_language_data): Likewise.
2094 * rust-lang.c (rust_language_data): Likewise.
2095 * varobj.c (varobj_create): Update call to varobj_ops.
2096 * varobj.h (default_varobj_ops): Delete define.
2097
1ac14a04
AB
20982020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2099
2100 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2101 initializer.
2102 * c-lang.c (c_language_data): Likewise.
2103 (c_language::macro_expansion): New member function.
2104 (cplus_language_data): Likewise.
2105 (cplus_language::macro_expansion): New member function.
2106 (asm_language_data): Likewise.
2107 (asm_language::macro_expansion): New member function.
2108 (minimal_language_data): Likewise.
2109 (minimal_language::macro_expansion): New member function.
2110 * d-lang.c (d_language_data): Remove la_macro_expansion
2111 initializer.
2112 * f-lang.c (f_language_data): Likewise.
2113 * go-lang.c (go_language_data): Likewise.
2114 * language.c (unknown_language_data): Likewise.
2115 (auto_language_data): Likewise.
2116 * language.h (language_data): Remove la_macro_expansion field.
2117 (language_defn::macro_expansion): New member function.
2118 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2119 initializer.
2120 * objc-lang.c (objc_language_data): Likewise.
2121 (objc_language::macro_expansion): New member function.
2122 * opencl-lang.c (opencl_language_data): Likewise.
2123 (opencl_language::macro_expansion): New member function.
2124 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2125 initializer.
2126 * rust-lang.c (rust_language_data): Likewise.
2127 * symtab.c (default_collect_symbol_completion_matches_break_on):
2128 Update call to macro_expansion.
2129
3a3440fb
AB
21302020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2131
2132 * ada-lang.c (ada_language_data): Remove la_array_ordering
2133 initializer.
2134 * c-lang.c (c_language_data): Likewise.
2135 (cplus_language_data): Likewise.
2136 (asm_language_data): Likewise.
2137 (minimal_language_data): Likewise.
2138 * d-lang.c (d_language_data): Likewise.
2139 * dwarf2/read.c (read_array_order): Update for call to
2140 array_ordering.
2141 * f-lang.c (f_language_data): Remove la_array_ordering
2142 initializer.
2143 (f_language::array_ordering): New member function.
2144 * go-lang.c (go_language_data): Remove la_array_ordering
2145 initializer.
2146 * language.c (unknown_language_data): Likewise.
2147 (auto_language_data): Likewise.
2148 * language.h (language_data): Delete la_array_ordering field.
2149 (language_defn::array_ordering): New member function.
2150 * m2-lang.c (m2_language_data): Remove la_array_ordering
2151 initializer.
2152 * objc-lang.c (objc_language_data): Likewise.
2153 * opencl-lang.c (opencl_language_data): Likewise.
2154 * p-lang.c (pascal_language_data): Likewise.
2155 * rust-lang.c (rust_language_data): Likewise.
2156
0d201fa4
AB
21572020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2158
2159 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2160 initializer.
2161 * c-lang.c (c_language_data): Likewise.
2162 (cplus_language_data): Likewise.
2163 (asm_language_data): Likewise.
2164 (minimal_language_data): Likewise.
2165 * d-lang.c (d_language_data): Likewise.
2166 * f-lang.c (f_language_data): Likewise.
2167 (f_language::case_sensitivity): New member function.
2168 * go-lang.c (go_language_data): Remove la_case_sensitivity
2169 initializer.
2170 * language.c (enum case_mode): Moved here from language.h.
2171 (case_mode): Make static.
2172 (show_case_command): Update for case_sensitivity being a method.
2173 (set_case_command): Likewise.
2174 (set_range_case): Likewise.
2175 (unknown_language_data): Remove la_case_sensitivity initializer.
2176 (auto_language_data): Likewise.
2177 * language.h (case_mode): Delete, move enum declaration to
2178 language.c.
2179 (language_data): Delete la_case_sensitivity field.
2180 (language_defn::case_sensitivity): New member function.
2181 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2182 initializer.
2183 * objc-lang.c (objc_language_data): Likewise.
2184 * opencl-lang.c (opencl_language_data): Likewise.
2185 * p-lang.c (pascal_language_data): Likewise.
2186 * rust-lang.c (rust_language_data): Likewise.
2187
efdf6a73
AB
21882020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2189
2190 * ada-lang.c (ada_language_data): Remove la_range_check
2191 initializer.
2192 * c-lang.c (c_language_data): Likewise.
2193 (cplus_language_data): Likewise.
2194 (asm_language_data): Likewise.
2195 (minimal_language_data): Likewise.
2196 * d-lang.c (d_language_data): Likewise.
2197 * f-lang.c (f_language_data): Likewise.
2198 (f_language::range_checking_on_by_default): New member function.
2199 * go-lang.c (go_language_data): Remove la_range_check initializer.
2200 * language.c (enum range_mode): Moved here from language.h.
2201 (range_mode): Made static.
2202 (show_range_command): Update to use
2203 range_checking_on_by_default.
2204 (set_range_command): Likewise.
2205 (set_range_case): Likewise.
2206 (unknown_language_data): Remove la_range_check initializer.
2207 (auto_language_data): Likewise.
2208 * language.h (range_mode): Delete. Enum definition moved to
2209 language.c.
2210 (language_data): Remove la_range_check field.
2211 (language_defn::range_checking_on_by_default): New member
2212 function.
2213 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2214 (m2_language::range_checking_on_by_default): New member function.
2215 * objc-lang.c (objc_language_data): Remove la_range_check
2216 initializer.
2217 * opencl-lang.c (opencl_language_data): Likewise.
2218 * p-lang.c (pascal_language_data): Likewise.
2219 (pascal_language::range_checking_on_by_default): New member
2220 function.
2221 * rust-lang.c (rust_language_data): Remove la_range_check
2222 initializer.
2223 (rust_language::range_checking_on_by_default): New member
2224 function.
2225
bf92aec5
AB
22262020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2227
2228 * dwarf2/read.c (dwarf2_physname): Remove special case for
2229 language_go.
2230 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2231 member function.
2232
d3355e4d
AB
22332020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2234
2235 * ada-lang.c (ada_language_data): Remove
2236 la_store_sym_names_in_linkage_form_p initializer.
2237 (ada_language::store_sym_names_in_linkage_form_p): New member
2238 function.
2239 * c-lang.c (c_language_data): Remove
2240 la_store_sym_names_in_linkage_form_p initializer.
2241 (c_language::store_sym_names_in_linkage_form_p): New member
2242 function.
2243 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2244 initializer.
2245 (asm_language_data): Likewise.
2246 (asm_language::store_sym_names_in_linkage_form_p): New member
2247 function.
2248 (minimal_language_data): Remove
2249 la_store_sym_names_in_linkage_form_p initializer.
2250 (minimal_language::store_sym_names_in_linkage_form_p): New member
2251 function.
2252 * d-lang.c (d_language_data): Remove
2253 la_store_sym_names_in_linkage_form_p initializer.
2254 * dwarf2/read.c (dwarf2_physname): Update call to
2255 store_sym_names_in_linkage_form_p.
2256 * f-lang.c (f_language_data): Remove
2257 la_store_sym_names_in_linkage_form_p initializer.
2258 * go-lang.c (go_language_data): Remove
2259 la_store_sym_names_in_linkage_form_p initializer.
2260 * language.c (unknown_language_data): Remove
2261 la_store_sym_names_in_linkage_form_p initializer.
2262 (unknown_language::store_sym_names_in_linkage_form_p): New member
2263 function.
2264 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2265 initializer.
2266 (auto_language::store_sym_names_in_linkage_form_p): New member
2267 function.
2268 * language.h (language_data): Remove
2269 la_store_sym_names_in_linkage_form_p member variable.
2270 (language_defn::store_sym_names_in_linkage_form_p): New member
2271 function.
2272 * m2-lang.c (m2_language_data): Remove
2273 la_store_sym_names_in_linkage_form_p initializer.
2274 * objc-lang.c (objc_language_data): Likewise.
2275 * opencl-lang.c (opencl_language_data): Likewise.
2276 * p-lang.c (pascal_language_data): Likewise.
2277 * rust-lang.c (rust_language_data): Likewise.
2278
22c12a6c
AB
22792020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2280
2281 * ada-lang.c (ada_language_data): Remove string_lower_bound
2282 initializer.
2283 * c-lang.c (c_language_data): Likewise.
2284 (cplus_language_data): Likewise.
2285 (asm_language_data): Likewise.
2286 (minimal_language_data): Likewise.
2287 * d-lang.c (d_language_data): Likewise.
2288 * f-lang.c (f_language_data): Likewise.
2289 * go-lang.c (go_language_data): Likewise.
2290 * language.c (unknown_language_data): Likewise.
2291 (auto_language_data): Likewise.
2292 * language.h (language_data): Remove string_lower_bound field.
2293 (language_defn::string_lower_bound): New member function.
2294 * m2-lang.c (m2_language_data): Remove string_lower_bound
2295 initializer.
2296 (m2_language::string_lower_bound): New member function.
2297 * objc-lang.c (objc_language_data): Remove string_lower_bound
2298 initializer.
2299 * opencl-lang.c (opencl_language_data): Likewise.
2300 * p-lang.c (pascal_language_data): Likewise.
2301 * rust-lang.c (rust_language_data): Likewise.
2302 * valops.c (value_cstring): Update call to string_lower_bound.
2303 (value_string): Likewise.
2304 * value.c (allocate_repeated_value): Likewise.
2305
1c236ddd
AB
23062020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2307
2308 * valops.c (value_repeat): Fix incorrect argument name in comment.
2309
67bd3fd5
AB
23102020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2311
2312 * ada-lang.c (ada_language_data): Remove c_style_arrays
2313 initializer.
2314 (ada_language::c_style_arrays_p): New member fuction.
2315 * c-lang.c (c_language_data): Remove c_style_arrays
2316 initializer.
2317 (cplus_language_data): Likewise.
2318 (asm_language_data): Likewise.
2319 (minimal_language_data): Likewise.
2320 * d-lang.c (d_language_data): Likewise.
2321 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2322 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2323 (f_language::c_style_arrays_p): New member function.
2324 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2325 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2326 * language.c (unknown_language_data): Remove c_style_arrays
2327 initializer.
2328 (auto_language_data): Likewise.
2329 * language.h (language_data): Remove c_style_arrays field.
2330 (language_defn::c_style_arrays_p): New member function.
2331 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2332 (m2_language::c_style_arrays_p): New member function.
2333 * objc-lang.c (objc_language_data): Remove c_style_arrays
2334 initializer.
2335 * opencl-lang.c (opencl_language_data): Likewise.
2336 * p-lang.c (pascal_language_data): Likewise.
2337 * rust-lang.c (rust_language_data): Likewise.
2338 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2339 and update local variable to a bool.
2340 * valops.c (value_cast): Update call to c_style_arrays_p.
2341 (value_array): Likewise.
2342 * value.c (coerce_array): Likewise.
2343
85967615
AB
23442020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2345
2346 * ada-lang.c (ada_language_data): Remove la_language initializer.
2347 * c-lang.c (c_language_data): Likewise.
2348 (cplus_language_data): Likewise.
2349 (asm_language_data): Likewise.
2350 (minimal_language_data): Likewise.
2351 * d-lang.c (d_language_data): Likewise.
2352 * f-lang.c (f_language_data): Likewise.
2353 * go-lang.c (go_language_data): Likewise.
2354 * language.c (unknown_language_data): Likewise.
2355 (auto_language_data): Likewise.
2356 * language.h (language_data): Remove la_language field.
2357 (language_defn::language_defn): Initialise la_language field.
2358 (language_defn::la_language): New member variable.
2359 * m2-lang.c (m2_language_data): Remove la_language field.
2360 * objc-lang.c (objc_language_data): Likewise.
2361 * opencl-lang.c (opencl_language_data): Likewise.
2362 * p-lang.c (pascal_language_data): Likewise.
2363 * rust-lang.c (rust_language_data): Likewise.
2364
e171d6f1
AB
23652020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2366
2367 * ada-lang.c (ada_extensions): Delete, moved into
2368 ada_language::filename_extensions.
2369 (ada_language_data): Remove la_filename_extensions initializer.
2370 (ada_language::filename_extensions): New member function.
2371 * c-lang.c (c_extensions): Delete, moved into
2372 c_language::filename_extensions.
2373 (c_language_data): Remove la_filename_extensions initializer.
2374 (c_language::filename_extensions): New member function.
2375 (cplus_extensions): Delete, moved into
2376 cplus_language::filename_extensions.
2377 (cplus_language_data): Remove la_filename_extensions initializer.
2378 (cplus_language::filename_extensions): New member function.
2379 (asm_extensions): Delete, moved into
2380 asm_language::filename_extensions.
2381 (asm_language_data): Remove la_filename_extensions initializer.
2382 (asm_language::filename_extensions): New member function.
2383 (minimal_language_data): Remove la_filename_extensions
2384 initializer.
2385 * d-lang.c (d_extensions): Delete, moved into
2386 d_language::filename_extensions.
2387 (d_language_data): Remove la_filename_extensions initializer.
2388 (d_language::filename_extensions): New member function.
2389 * f-lang.c (f_extensions): Delete, moved into
2390 f_language::filename_extensions.
2391 (f_language_data): Remove la_filename_extensions initializer.
2392 (f_language::filename_extensions): New member function.
2393 * go-lang.c (go_language_data): Remove la_filename_extensions
2394 initializer.
2395 * language.c (add_set_language_command): Update now that
2396 filename_extensions returns a vector.
2397 (unknown_language_data): Remove la_filename_extensions
2398 initializer.
2399 (auto_language_data): Likewise.
2400 * language.h (language_data): Remove la_filename_extensions field.
2401 (language_defn::filename_extensions): New member function.
2402 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2403 initializer.
2404 * objc-lang.c (objc_extensions): Delete, moved into
2405 objc_language::filename_extensions.
2406 (objc_language_data): Remove la_filename_extensions initializer.
2407 (objc_language::filename_extensions): New member function.
2408 * opencl-lang.c (opencl_language_data): Remove
2409 la_filename_extensions initializer.
2410 * p-lang.c (pascal_extensions): Delete, moved into
2411 pascal_language::filename_extensions.
2412 (pascal_language_data): Remove la_filename_extensions initializer.
2413 (pascal_language::filename_extensions): New member function.
2414 * rust-lang.c (rust_extensions): Delete, moved into
2415 rust_language::filename_extensions.
2416 (rust_language_data): Remove la_filename_extensions initializer.
2417 (rust_language::filename_extensions): New member function.
2418 * symfile.c (add_filename_language): Add new assert.
2419
6f7664a9
AB
24202020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2421
2422 * ada-lang.c (ada_language_data): Remove la_name and
2423 la_natural_name initializers.
2424 (ada_language::name): New member function.
2425 (ada_language::natural_name): New member function.
2426 * c-lang.c (c_language_data): Remove la_name and
2427 la_natural_name initializers.
2428 (c_language::name): New member function.
2429 (c_language::natural_name): New member function.
2430 (cplus_language_data): Remove la_name and
2431 la_natural_name initializers.
2432 (cplus_language::name): New member function.
2433 (cplus_language::natural_name): New member function.
2434 (asm_language_data): Remove la_name and
2435 la_natural_name initializers.
2436 (asm_language::name): New member function.
2437 (asm_language::natural_name): New member function.
2438 (minimal_language_data): Remove la_name and
2439 la_natural_name initializers.
2440 (minimal_language::name): New member function.
2441 (minimal_language::natural_name): New member function.
2442 * compile/compile.c (compile_to_object): Update call to
2443 lanugage_defn::name.
2444 * d-lang.c (d_language_data): Remove la_name and
2445 la_natural_name initializers.
2446 (d_language::name): New member function.
2447 (d_language::natural_name): New member function.
2448 * expprint.c (print_subexp_standard): Update call to
2449 language_defn::name.
2450 (dump_raw_expression): Likewise
2451 (dump_prefix_expression): Likewise.
2452 * f-lang.c (f_language_data): Remove la_name and
2453 la_natural_name initializers.
2454 (f_language::name): New member function.
2455 (f_language::natural_name): New member function.
2456 * go-lang.c (go_language_data): Remove la_name and
2457 la_natural_name initializers.
2458 (go_language::name): New member function.
2459 (go_language::natural_name): New member function.
2460 * language.c (show_language_command): Update call to
2461 language_defn::name.
2462 (set_language_command): Likewise.
2463 (language_enum): Likewise.
2464 (language_str): Likewise.
2465 (add_set_language_command): Likewise, use
2466 language_defn::natural_name in the doc string.
2467 (unknown_language_data): Remove la_name and
2468 la_natural_name initializers.
2469 (unknown_language::name): New member function.
2470 (unknown_language::natural_name): New member function.
2471 (auto_language_data): Remove la_name and
2472 la_natural_name initializers.
2473 (auto_language::name): New member function.
2474 (auto_language::natural_name): New member function.
2475 (language_lookup_primitive_type_as_symbol): Update call to
2476 language_defn::name.
2477 * language.h (language_data): Remove la_name and la_natural_name
2478 member variables.
2479 (language_defn::name): New member function.
2480 (language_defn::natural_name): New member function.
2481 * m2-lang.c (m2_language_data): Remove la_name and
2482 la_natural_name initializers.
2483 (m2_language::name): New member function.
2484 (m2_language::natural_name): New member function.
2485 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2486 language_defn::natural_name.
2487 * objc-lang.c (objc_language_data): Remove la_name and
2488 la_natural_name initializers.
2489 (objc_language::name): New member function.
2490 (objc_language::natural_name): New member function.
2491 * opencl-lang.c (opencl_language_data): Remove la_name and
2492 la_natural_name initializers.
2493 (opencl_language::name): New member function.
2494 (opencl_language::natural_name): New member function.
2495 * p-lang.c (pascal_language_data): Remove la_name and
2496 la_natural_name initializers.
2497 (pascal_language::name): New member function.
2498 (pascal_language::natural_name): New member function.
2499 * rust-lang.c (rust_language_data): Remove la_name and
2500 la_natural_name initializers.
2501 (rust_language::name): New member function.
2502 (rust_language::natural_name): New member function.
2503 * symtab.c (lookup_language_this): Update call to
2504 language_defn::name.
2505
5bae7c4e
AB
25062020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2507
2508 * ada-lang.c (ada_language_data): Remove la_name_of_this
2509 initializer.
2510 * ax-gdb.c (gen_expr): Update call to name_of_this.
2511 * c-exp.y (classify_name): Likewise.
2512 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2513 (cplus_language_data): Likewise.
2514 (cplus_language::name_of_this): New member function.
2515 (asm_language_data): Remove la_name_of_this initializer.
2516 (minimal_language_data): Likewise.
2517 * d-lang.c (d_language_data): Likewise.
2518 (d_language::name_of_this): New member function.
2519 * expprint.c (print_subexp_standard): Update call to name_of_this.
2520 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2521 * go-lang.c (go_language_data): Likewise.
2522 * language.c (unknown_language_data): Likewise.
2523 (unknown_language::name_of_this): New member function.
2524 (auto_language_data): Remove la_name_of_this initializer.
2525 (auto_language::name_of_this): New member function.
2526 * language.h (language_data): Delete la_name_of_this member
2527 variable.
2528 (language_defn::name_of_this): New member function.
2529 * m2-lang.c (m2_language_data): Remove la_name_of_this
2530 initializer.
2531 * objc-lang.c (objc_language_data): Likewise.
2532 (objc_language::name_of_this): New member function.
2533 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2534 initializer.
2535 * p-lang.c (pascal_language_data): Likewise.
2536 (pascal_language::name_of_this): New member function.
2537 * rust-lang.c (rust_language_data): Remove la_name_of_this
2538 initializer.
2539 * symtab.c (lookup_language_this): Update call to name_of_this.
2540 (lookup_symbol_aux): Likewise.
2541 * valops.c (value_of_this): Likewise.
2542
22e3f3ed
AB
25432020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2544
2545 * ada-lang.c (ada_language_data): Remove
2546 la_struct_too_deep_ellipsis initializer.
2547 (ada_language::struct_too_deep_ellipsis): New member function.
2548 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2549 initializer.
2550 (cplus_language_data): Likewise.
2551 (asm_language_data): Likewise.
2552 (minimal_language_data): Likewise.
2553 * cp-valprint.c (cp_print_value): Update call to
2554 struct_too_deep_ellipsis.
2555 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2556 initializer.
2557 * f-lang.c (f_language_data): Likewise.
2558 (f_language::struct_too_deep_ellipsis): New member function.
2559 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2560 initializer.
2561 * language.c (unknown_language_data): Likewise.
2562 (auto_language_data): Likewise.
2563 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2564 member variable.
2565 (language_defn::struct_too_deep_ellipsis): New member function.
2566 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2567 initializer.Q
2568 * objc-lang.c (objc_language_data): Likewise.
2569 * opencl-lang.c (opencl_language_data): Likewise.
2570 * p-lang.c (pascal_language_data): Likewise.
2571 * rust-lang.c (rust_language_data): Likewise.
2572 * valprint.c (val_print_check_max_depth): Update call to
2573 struct_too_deep_ellipsis.
2574
ed29e1c7
FW
25752020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2576
2577 * MAINTAINERS (Write After Approval): Add myself.
2578
12d8f940
TT
25792020-09-15 Tom Tromey <tom@tromey.com>
2580
2581 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2582 Remove.
2583
6b5a7bc7
TT
25842020-09-15 Tom Tromey <tom@tromey.com>
2585
2586 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2587 and TYPE_CODE_METHODPTR cases.
2588 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2589 (c_value_print_inner): Update.
2590 * valprint.c (generic_value_print_memberptr): New function, from
2591 c_value_print_memberptr.
2592 (generic_value_print): Use it. Call cplus_print_method_ptr.
2593
47f0e2ff
TT
25942020-09-15 Tom Tromey <tromey@adacore.com>
2595
2596 * python/python-internal.h (PyInt_FromLong): Remove define.
2597 * python/py-value.c (convert_value_from_python): Use
2598 gdb_py_object_from_longest.
2599 * python/py-type.c (typy_get_code): Use
2600 gdb_py_object_from_longest.
2601 * python/py-symtab.c (salpy_get_line): Use
2602 gdb_py_object_from_longest.
2603 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2604 gdb_py_object_from_longest.
2605 * python/py-record.c (recpy_gap_reason_code): Use
2606 gdb_py_object_from_longest.
2607 * python/py-record-btrace.c (recpy_bt_insn_size)
2608 (recpy_bt_func_level, btpy_list_count): Use
2609 gdb_py_object_from_longest.
2610 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2611 gdb_py_object_from_longest. Fix error handling.
2612 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2613 gdb_py_object_from_longest.
2614 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2615 gdb_py_object_from_longest.
2616 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2617 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2618 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2619
512116ce
TT
26202020-09-15 Tom Tromey <tromey@adacore.com>
2621
2622 * python/python.c (gdbpy_parameter_value): Use
2623 gdb_py_object_from_ulongest.
2624
4ab1029c
TT
26252020-09-15 Tom Tromey <tromey@adacore.com>
2626
2627 * python/py-infevents.c (create_register_changed_event_object):
2628 Use gdb_py_object_from_longest.
2629 * python/py-exitedevent.c (create_exited_event_object): Use
2630 gdb_py_object_from_longest.
2631
062534d4
TT
26322020-09-15 Tom Tromey <tromey@adacore.com>
2633
2634 * python/python.c (gdbpy_parameter_value): Use
2635 gdb_py_object_from_longest.
2636 * python/py-type.c (convert_field, typy_range): Use
2637 gdb_py_object_from_longest.
2638 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2639 gdb_py_object_from_longest.
2640 * python/py-lazy-string.c (stpy_get_length): Use
2641 gdb_py_object_from_longest.
2642 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2643 gdb_py_object_from_longest.
2644 * python/py-infevents.c (create_memory_changed_event_object): Use
2645 gdb_py_object_from_longest.
2646 * python/py-inferior.c (infpy_get_num): Use
2647 gdb_py_object_from_longest.
2648 (infpy_get_pid): Likewise.
2649
d1cab987
TT
26502020-09-15 Tom Tromey <tromey@adacore.com>
2651
2652 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2653 defines.
2654 * python/py-value.c (valpy_long): Use
2655 gdb_py_object_from_ulongest.
2656 * python/py-symtab.c (salpy_get_pc): Use
2657 gdb_py_object_from_ulongest.
2658 (salpy_get_last): Likewise.
2659 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2660 gdb_py_object_from_ulongest.
2661 * python/py-lazy-string.c (stpy_get_address): Use
2662 gdb_py_object_from_ulongest.
2663 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2664 * python/py-arch.c (archpy_disassemble): Use
2665 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2666 error handling.
2667
4bde49dc
TT
26682020-09-15 Tom Tromey <tromey@adacore.com>
2669
2670 * python/python-internal.h (gdb_py_long_from_longest): Remove
2671 defines.
2672 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2673 * python/py-type.c (convert_field, typy_get_sizeof): Use
2674 gdb_py_object_from_longest.
2675 * python/py-record-btrace.c (btpy_list_index): Use
2676 gdb_py_object_from_longest.
2677
37431074
TT
26782020-09-15 Tom Tromey <tromey@adacore.com>
2679
2680 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2681 * python/py-record.c (recpy_element_number): Use
2682 gdb_py_object_from_longest.
2683 (recpy_gap_number): Likewise.
2684
cbe25684
TT
26852020-09-15 Tom Tromey <tromey@adacore.com>
2686
2687 * top.c (ui::ui): Update.
2688 (highest_ui_num): Remove.
2689 * top.h (struct ui) <num>: Remove.
2690
db92ac45
TT
26912020-09-15 Tom Tromey <tromey@adacore.com>
2692
2693 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2694 * ui-style.c (ansi_regex_text): Now array.
2695 * rust-exp.y (number_regex_text): Now array.
2696 * linespec.c (linespec_quote_characters): Now array.
2697 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2698 Now arrays.
2699
d2b31b67
SM
27002020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2701
2702 * debuginfod-support.c (debuginfod_client_deleter): New.
2703 (debuginfod_client_up): New.
2704 (debuginfod_init): Return debuginfod_client_up.
2705 (debuginfod_source_query): Adjust.
2706 (debuginfod_debuginfo_query): Adjust.
2707
3246bd8e
SM
27082020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2709
2710 * debuginfod-support.c (debuginfod_source_query): Use
2711 make_unique_xstrdup.
2712
10242f36
SM
27132020-09-14 Simon Marchi <simon.marchi@efficios.com>
2714
2715 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2716 with `type::instance_flags`.
2717
e1044e6a
MM
27182020-09-14 Michael Mullin <masmullin@gmail.com>
2719
2720 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2721 Remove baton parameter.
2722
04902b09
PA
27232020-09-14 Pedro Alves <pedro@palves.net>
2724
2725 * Makefile.in (SELFTESTS_SRCS): Add
2726 unittests/enum-flags-selftests.c.
2727 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2728 btrace_function_flags instead of enum btrace_function_flag.
2729 * compile/compile-c-types.c (convert_qualified): Use
2730 enum_flags::raw.
2731 * compile/compile-cplus-symbols.c (convert_one_symbol)
2732 (convert_symbol_bmsym):
2733 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2734 (compile_cplus_convert_struct_or_union_methods)
2735 (compile_cplus_instance::convert_qualified_base):
2736 * go-exp.y (parse_string_or_char): Add cast to int.
2737 * unittests/enum-flags-selftests.c: New file.
2738 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2739 type to btrace_thread_flags from btrace_thread_flag.
2740 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2741 local's type to btrace_thread_flags from btrace_thread_flag. Add
2742 cast in DEBUG call.
2743
69896a2c
PA
27442020-09-14 Pedro Alves <pedro@palves.net>
2745
2746 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2747 * gdbtypes.c (address_space_name_to_int): Rename to ...
2748 (address_space_name_to_type_instance_flags): ... this.
2749 (address_space_int_to_name): Rename to ...
2750 (address_space_type_instance_flags_to_name): ... this.
2751 * gdbtypes.h (address_space_name_to_int): Rename to ...
2752 (address_space_name_to_type_instance_flags): ... this.
2753 (address_space_int_to_name): Rename to ...
2754 (address_space_type_instance_flags_to_name): ... this.
2755 * type-stack.c (type_stack::insert): Adjust to rename.
2756 * type-stack.h (type_stack::insert): Likewise.
2757
314ad88d
PA
27582020-09-14 Pedro Alves <pedro@palves.net>
2759 Andrew Burgess <andrew.burgess@embecosm.com>
2760
2761 * avr-tdep.c (avr_address_class_type_flags): Return
2762 type_instance_flags.
2763 (avr_address_class_type_flags_to_name): Take a
2764 type_instance_flags.
2765 (avr_address_class_name_to_type_flags): Return bool and take a
2766 type_instance_flags.
2767 * d-lang.c (build_d_types): Use type::set_instance_flags.
2768 * ft32-tdep.c (ft32_address_class_type_flags): Return
2769 type_instance_flags.
2770 (ft32_address_class_type_flags_to_name): Take a
2771 type_instance_flags.
2772 (ft32_address_class_name_to_type_flags): Return bool and take a
2773 type_instance_flags.
2774 (ft32_gdbarch_init): Use type::set_instance_flags.
2775 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2776 * gdbarch.h, gdbarch.c: Regenerate.
2777 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2778 (address_class_name_to_type_flags): Use type_instance_flags and
2779 bool.
2780 * gdbtypes.c (address_space_name_to_int)
2781 (address_space_int_to_name, make_qualified_type): Use
2782 type_instance_flags.
2783 (make_qualified_type): Use type_instance_flags and
2784 type::set_instance_flags.
2785 (make_type_with_address_space, make_cv_type, make_vector_type)
2786 (check_typedef): Use type_instance_flags.
2787 (recursive_dump_type): Cast type_instance_flags to unsigned for
2788 printing.
2789 (copy_type_recursive): Use type::set_instance_flags.
2790 (gdbtypes_post_init): Use type::set_instance_flags.
2791 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2792 <m_instance_flags>: ... this.
2793 <instance_flags, set_instance_flags>: New methods.
2794 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2795 (SET_TYPE_INSTANCE_FLAGS): New.
2796 (address_space_name_to_int, address_space_int_to_name)
2797 (make_type_with_address_space): Pass flags using
2798 type_instance_flags instead of int.
2799 * stabsread.c (cleanup_undefined_types_noname): Use
2800 type::set_instance_flags.
2801 * s390-tdep.c (s390_address_class_type_flags): Return
2802 type_instance_flags.
2803 (s390_address_class_type_flags_to_name): Take a
2804 type_instance_flags.
2805 (s390_address_class_name_to_type_flags): Return bool and take a
2806 type_instance_flags.
2807 * type-stack.c (type_stack::follow_types): Use
2808 type_instance_flags.
2809 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2810
27087b7f
TT
28112020-09-14 Tom Tromey <tromey@adacore.com>
2812
2813 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2814 * x86-tdep.c (x86_is_thunk_register_name)
2815 (x86_in_indirect_branch_thunk): Update.
2816 * sparc64-tdep.c (sparc64_fpu_register_names)
2817 (sparc64_cp0_register_names, sparc64_register_names)
2818 (sparc64_pseudo_register_names): Now const.
2819 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2820 cp0_registers_num>: Now const.
2821 * sparc-tdep.c (sparc_core_register_names)
2822 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2823 (sparc32_pseudo_register_names): Now const.
2824 (validate_tdesc_registers): Update.
2825 * rust-lang.c (rust_extensions): Now const.
2826 * p-lang.c (p_extensions): Now const.
2827 * objc-lang.c (objc_extensions): Now const.
2828 * nto-tdep.c (nto_thread_state_str): Now const.
2829 * moxie-tdep.c (moxie_register_names): Now const.
2830 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2831 Now const.
2832 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2833 (mips_linux_reg_names): Now const.
2834 (mips_gdbarch_init): Update.
2835 * microblaze-tdep.c (microblaze_register_names): Now const.
2836 * m68k-tdep.c (m68k_register_names): Now const.
2837 * m32r-tdep.c (m32r_register_names): Now const.
2838 * ia64-tdep.c (ia64_register_names): Now const.
2839 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2840 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2841 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2842 ymm_avx512_register_names, pkeys_register_names>: Now const.
2843 * i386-tdep.c (i386_register_names, i386_zmm_names)
2844 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2845 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2846 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2847 * f-lang.c (f_extensions): Now const.
2848 * d-lang.c (d_extensions): Now const.
2849 * csky-tdep.c (csky_register_names): Now const.
2850 * charset.c (default_charset_names, charset_enum): Now const.
2851 (_initialize_charset): Update.
2852 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2853 const.
2854 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2855 (bsd_uthread_solib_loaded): Update.
2856 (bsd_uthread_state): Now const.
2857 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2858 (amd64_ymm_avx512_names, amd64_ymmh_names)
2859 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2860 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2861 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2862 (amd64_dword_names): Now const.
2863 * agent.c (can_use_agent_enum): Now const.
2864 * ada-tasks.c (task_states, long_task_states): Now const.
2865 * ada-lang.c (known_runtime_file_name_patterns)
2866 (known_auxiliary_function_name_patterns, attribute_names)
2867 (standard_exc, ada_extensions): Now const.
2868
89806626
SM
28692020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2870
2871 * bcache.h (struct bcache) <bcache>: Remove constructor.
2872 <m_hash_function, m_compare_function>: Remove.
2873 <~bcache>: Make virtual.
2874 <compare>: Remove static method, introduce virtual method.
2875 <default_hash>: Remove.
2876 <hash>: New virtual method.
2877 * bcache.c (bcache::expand_hash_table): Update.
2878 (bcache::insert): Update.
2879 (bcache::hash): New.
2880 (bcache::compare): Update comment and parameter names.
2881 * gdbtypes.c (types_deeply_equal): Update.
2882 * psymtab.h (struct psymbol_bcache): New struct.
2883 (class psymtab_storage) <psymtab_storage>: Make default.
2884 <psymbol_cache>: Change type to psymbol_bcache.
2885 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2886 (psymbol_hash): Change to...
2887 (psymbol_bcache::hash): ... this.
2888 (psymbol_compare): Change to...
2889 (psymbol_bcache::compare): ... this.
2890
677c92fe
SM
28912020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2892
2893 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2894 checking for initial lwp.
2895
3eba3a01
TT
28962020-09-14 Tom Tromey <tromey@adacore.com>
2897
2898 * m68k-tdep.c (m68k_extract_return_value): Use
2899 pointer_result_regnum.
2900 (m68k_store_return_value): Likewise.
2901 (m68k_reg_struct_return_p): Handle vectors and arrays.
2902 (m68k_return_value): Handle arrays.
2903 (m68k_svr4_return_value): Fix single-element aggregate handling.
2904 Handle long double. Adjust for embedded ABI.
2905 (m68k_svr4_init_abi): Set pointer_result_regnum.
2906 (m68k_embedded_init_abi): New function.
2907 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2908 (m68k_osabi_sniffer): New function.
2909 (_initialize_m68k_tdep): Register osabi sniffer.
2910 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2911 member.
2912
33f4dd48
SM
29132020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2914
2915 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2916 with gdb::unique_xmalloc_ptr<char>.
2917
8400a90d
SM
29182020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2919
2920 * xml-support.h (xml_fetch_another): Change type to be a
2921 function_view.
2922 (xml_process_xincludes): Remove baton parameter.
2923 (xml_fetch_content_from_file): Change baton parameter to
2924 dirname.
2925 * xml-support.c (struct xinclude_parsing_data)
2926 <xinclude_parsing_data>: Remove baton parameter.
2927 <fetcher_baton>: Remove.
2928 (xinclude_start_include): Adjust.
2929 (xml_process_xincludes): Adjust.
2930 (xml_fetch_content_from_file): Replace baton parameter with
2931 dirname.
2932 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2933 (xml_init_syscalls_info): Use a lambda.
2934 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2935 (file_read_description_xml): Use a lambda.
2936 (fetch_available_features_from_target): Change baton parameter
2937 to target_ops.
2938 (target_read_description_xml): Use a lambda.
2939 (target_fetch_description_xml): Use a lambda.
2940 (string_read_description_xml): Update.
2941
04f5bab2
SM
29422020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2943
2944 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2945 uses with type::endianity_is_not_default.
2946
db558e34
SM
29472020-09-14 Simon Marchi <simon.marchi@efficios.com>
2948
2949 * gdbtypes.h (struct type) <endianity_is_not_default,
2950 set_endianity_is_not_default>: New methods.
2951 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2952 type::endianity_is_not_default, change all write call sites to
2953 use type::set_endianity_is_not_default.
2954
22c4c60c
SM
29552020-09-14 Simon Marchi <simon.marchi@efficios.com>
2956
2957 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2958 uses with type::is_fixed_instance.
2959
9cdd0d12
SM
29602020-09-14 Simon Marchi <simon.marchi@efficios.com>
2961
2962 * gdbtypes.h (struct type) <is_fixed_instance,
2963 set_is_fixed_instance>: New methods.
2964 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2965 write call sites to use type::set_is_fixed_instance.
2966
0becda7a
SM
29672020-09-14 Simon Marchi <simon.marchi@efficios.com>
2968
2969 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2970 uses with type::is_gnu_ifunc.
2971
03cc7249
SM
29722020-09-14 Simon Marchi <simon.marchi@efficios.com>
2973
2974 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2975 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2976 use type::set_is_gnu_ifunc.
2977
3f46044c
SM
29782020-09-14 Simon Marchi <simon.marchi@efficios.com>
2979
2980 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2981 uses with type::stub_is_supported.
2982
9baccff6
SM
29832020-09-14 Simon Marchi <simon.marchi@efficios.com>
2984
2985 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2986 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2987 use type::set_stub_is_supported.
2988
bd63c870
SM
29892020-09-14 Simon Marchi <simon.marchi@efficios.com>
2990
2991 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2992 uses with type::is_vector.
2993
2062087b
SM
29942020-09-14 Simon Marchi <simon.marchi@efficios.com>
2995
2996 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2997 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2998 use type::set_is_vector.
2999
a409645d
SM
30002020-09-14 Simon Marchi <simon.marchi@efficios.com>
3001
3002 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
3003 uses with type::has_varargs.
3004
1d6286ed
SM
30052020-09-14 Simon Marchi <simon.marchi@efficios.com>
3006
3007 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
3008 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
3009 use type::set_has_varargs.
3010
7f9f399b
SM
30112020-09-14 Simon Marchi <simon.marchi@efficios.com>
3012
3013 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3014 uses with type::is_prototyped.
3015
27e69b7a
SM
30162020-09-14 Simon Marchi <simon.marchi@efficios.com>
3017
3018 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3019 New methods.
3020 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3021 call sites to use type::set_is_prototyped.
3022
d2183968
SM
30232020-09-14 Simon Marchi <simon.marchi@efficios.com>
3024
3025 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3026 uses with type::target_is_stub.
3027
8f53807e
SM
30282020-09-14 Simon Marchi <simon.marchi@efficios.com>
3029
3030 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3031 New methods.
3032 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3033 sites to use type::set_target_is_stub.
3034
e46d3488
SM
30352020-09-14 Simon Marchi <simon.marchi@efficios.com>
3036
3037 * gdbtypes.h (TYPE_STUB): Remove, replace all
3038 uses with type::is_stub.
3039
b4b73759
SM
30402020-09-14 Simon Marchi <simon.marchi@efficios.com>
3041
3042 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3043 (TYPE_STUB): Use type::is_stub, change all write call sites to
3044 use type::set_is_stub.
3045
20ce4123
SM
30462020-09-14 Simon Marchi <simon.marchi@efficios.com>
3047
3048 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3049 type::has_no_signedness.
3050
15152a54
SM
30512020-09-14 Simon Marchi <simon.marchi@efficios.com>
3052
3053 * gdbtypes.h (struct type) <has_no_signedness,
3054 set_has_no_signedness>: New methods.
3055 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3056 call sites to use type::set_has_no_signedness.
3057
c6d940a9
SM
30582020-09-14 Simon Marchi <simon.marchi@efficios.com>
3059
3060 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3061 type::is_unsigned.
3062
653223d3
SM
30632020-09-14 Simon Marchi <simon.marchi@efficios.com>
3064
3065 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3066 methods.
3067 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3068 sites to use type::set_is_unsigned.
3069
55ea94da 30702020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 3071 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 3072
e851246a
SM
3073 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3074 pointer and stack frame offset when unwinding.
55ea94da 3075
6791b117
PA
30762020-09-13 Pedro Alves <pedro@palves.net>
3077
3078 * NEWS: Document "-break-insert --qualified".
3079 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3080
77f2120b
PA
30812020-09-13 Pedro Alves <pedro@palves.net>
3082
3083 * linespec.c (classify_mtype, compare_msyms): Delete.
3084 (search_minsyms_for_name): Remove classification logic. Instead
3085 filter out trampoline symbols if we also found an external
3086 function of the same name.
3087
ed6a896c
JB
30882020-09-13 Joel Brobecker <brobecker@adacore.com>
3089
3090 * NEWS: Create a new section for the next release branch.
3091 Rename the section of the current branch, now that it has
3092 been cut.
3093
32aea73e
JB
30942020-09-13 Joel Brobecker <brobecker@adacore.com>
3095
3096 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3097 * version.in: Bump version to 11.0.50.DATE-git.
3098
8087c3fa
JB
30992020-09-12 Joel Brobecker <brobecker@adacore.com>
3100
3101 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3102
2a67f09d
FW
31032020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3104 Felix Willgerodt <Felix.Willgerodt@intel.com>
3105
3106 * gdbarch.sh: Added bfloat16 type.
3107 * gdbarch.c: Regenerated.
3108 * gdbarch.h: Regenerated.
3109 * gdbtypes.c (floatformats_bfloat16): New struct.
3110 (gdbtypes_post_init): Add builtin_bfloat16.
3111 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3112 (floatformats_bfloat16): New struct.
3113 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3114 (i386_ymm_type): Add field "v16_bfloat16"
3115 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3116 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3117 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3118 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3119 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3120 * features/i386/64bit-avx512.c: Regenerated.
3121 * features/i386/64bit-sse.xml: Add bfloat16 type.
3122 * features/i386/64bit-sse.c: Regenerated.
3123
1347d111
FW
31242020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3125
3126 * i386-tdep.c (i386_zmm_type): Fix field names.
3127 (i386_ymm_type): Fix field names.
3128
7a4e8e7d
TBA
31292020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3130
3131 * breakpoint.c: Fix typo in the help message of the
3132 "set breakpoint condition-evaluation" command.
3133
cf4ac4be
KR
31342020-09-10 Kamil Rytarowski <n54@gmx.com>
3135
3136 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3137 * (nbsd_nat_target::pid_to_exec_file)
3138 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3139 (nbsd_nat_target::post_startup_inferior)
3140 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3141 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3142 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3143 * (nbsd_thread_lister): Remove.
3144
f404573e
KR
31452020-09-10 Kamil Rytarowski <n54@gmx.com>
3146
3147 * fork-inferior.c (startup_inferior): Avoid double free.
3148
1ccb2c17
KR
31492020-09-10 Kamil Rytarowski <n54@gmx.com>
3150
3151 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3152 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3153
feedfcc7
KR
31542020-09-10 Kamil Rytarowski <n54@gmx.com>
3155
3156 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3157 * netbsd-nat.c: Include <sys/ptrace.h>.
3158 * (netbsd_nat::enable_proc_events): Add.
3159
c489f8c6
KR
31602020-09-10 Kamil Rytarowski <n54@gmx.com>
3161
3162 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3163 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3164 (netbsd_nat::for_each_thread): Add.
3165 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3166 "gdbsupport/common-debug.h".
3167 * (netbsd_nat::netbsd_thread_lister)
3168 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3169 (netbsd_nat::for_each_thread): Add.
3170
330662f6
KR
31712020-09-10 Kamil Rytarowski <n54@gmx.com>
3172
3173 * netbsd-nat.h: Include <unistd.h>.
3174 * (netbsd_nat::pid_to_exec_file): Add.
3175 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3176 * (netbsd_nat::pid_to_exec_file) Add.
3177
70b67307
KR
31782020-09-10 Kamil Rytarowski <n54@gmx.com>
3179
3180 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3181
99cf6da6
KR
31822020-09-10 Kamil Rytarowski <n54@gmx.com>
3183
3184 * netbsd-nat.h: New file.
3185 * netbsd-nat.c: Likewise.
3186
1b788fb6
TT
31872020-09-09 Tom Tromey <tromey@adacore.com>
3188
3189 * ada-lang.c (remove_extra_symbols): Do not increment when
3190 removing an element
3191
03b0a45f
TT
31922020-09-08 Tom Tromey <tromey@adacore.com>
3193
3194 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3195
3cae4447
TT
31962020-09-08 Tom Tromey <tromey@adacore.com>
3197
3198 PR win32/25302:
3199 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3200 (gdb_bfd_init_data): New function.
3201 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3202
7f08fd51
TBA
32032020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3204
3205 * infrun.c (fetch_inferior_event): Use
3206 `switch_to_target_no_thread` to switch the target.
3207
3e6ff933
TT
32082020-09-06 Tom Tromey <tom@tromey.com>
3209
3210 * symfile.h (dwarf2_free_objfile): Don't declare.
3211
e56798df
AKS
32122020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3213
3214 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3215 to match 16 byte real/complex type generated by Flang compiler.
3216
8f5c6526
TV
32172020-09-03 Tom de Vries <tdevries@suse.de>
3218
3219 PR breakpoint/26546
3220 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3221 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3222
c5065df0
SM
32232020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3224
3225 * maint.c (index_digits): New function.
3226 (struct maint_print_section_data): Remove.
3227 (print_bfd_section_info): Remove print_data parameter, add arg
3228 and index_digits.
3229 (print_objfile_section_info): Likewise.
3230 (print_bfd_section_info_maybe_relocated): Likewise (plus
3231 objfile).
3232 (maintenance_info_sections): Adjust calls.
3233
02c6f3f1
TT
32342020-09-02 Tom Tromey <tromey@adacore.com>
3235
3236 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3237 for null pointers.
3238 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3239
ef5e5b0b
SM
32402020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3241
3242 * bcache.h (struct bcache) <insert>: Change type of `added` to
3243 pointer to bool.
3244 * bcache.c (bcache::insert): Likewise.
3245 * gdbtypes.c (check_types_worklist): Adjust.
3246 * psymtab.c (add_psymbol_to_bcache): Adjust.
3247
973695d6
KB
32482020-08-31 Kevin Buettner <kevinb@redhat.com>
3249
3250 * corelow.c (unordered_set): Include.
3251 (class core_target): Add field 'm_core_unavailable_mappings'.
3252 (core_target::build_file_mappings): Print only one warning
3253 per inaccessible file. Add unavailable/broken mappings
3254 to m_core_unavailable_mappings.
3255 (core_target::xfer_partial): Call...
3256 (core_target::xfer_memory_via_mappings): New method.
3257
264fc0e2
SM
32582020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3259
3260 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3261 type to bool.
3262
2de01bdb
SM
32632020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3264
3265 * dwarf2/read.c (struct field_info): Fix indentation.
3266
f3bd50f1
SM
32672020-08-31 Simon Marchi <simon.marchi@efficios.com>
3268
3269 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3270 ordering in comment.
3271 * frame.c (frame_id_eq): Fix indentation.
3272
22b9b4b0
SL
32732020-08-31 Scott Linder <scott@scottlinder.com>
3274 Simon Marchi <simon.marchi@efficios.com>
3275
3276 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3277 inline frame ids in outer frame.
3278
84154d16
SM
32792020-08-31 Simon Marchi <simon.marchi@efficios.com>
3280
3281 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3282 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3283 (outer_frame_id): Use FID_STACK_OUTER instead of
3284 FID_STACK_INVALID.
3285 (frame_id_p): Don't check for outer_frame_id.
3286
8efaf6b3
SM
32872020-08-31 Simon Marchi <simon.marchi@efficios.com>
3288
3289 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3290 regnum/frame in value. Call allocate_value_lazy.
3291 * frame.c (frame_unwind_register_value): Use
3292 val_print_not_saved.
3293
fe1fe7ea
SM
32942020-08-31 Simon Marchi <simon.marchi@efficios.com>
3295
3296 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3297
f7c7700d
PA
32982020-08-29 Pedro Alves <pedro@palves.net>
3299
3300 * progspace.c (print_program_space): Use all_inferiors. Switch to
3301 the inferior before calling target_pid_to_str.
3302
e0814aae
TT
33032020-08-28 Tom Tromey <tom@tromey.com>
3304
3305 * xcoffread.c (xcoff_end_psymtab): Update comment.
3306 * dbxread.c (dbx_end_psymtab): Update comment.
3307
626d2320
TV
33082020-08-28 Tom de Vries <tdevries@suse.de>
3309
3310 PR breakpoint/26544
3311 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3312 event_location.
3313 (create_breakpoint): Same.
3314 (base_breakpoint_decode_location): Same.
3315 (bkpt_create_sals_from_location): Same.
3316 (bkpt_decode_location): Same.
3317 (bkpt_probe_create_sals_from_location): Same.
3318 (bkpt_probe_decode_location): Same.
3319 (tracepoint_create_sals_from_location): Same.
3320 (tracepoint_decode_location): Same.
3321 (tracepoint_probe_decode_location): Same.
3322 (strace_marker_create_sals_from_location): Same.
3323 (strace_marker_decode_location): Same.
3324 (create_sals_from_location_default): Same.
3325 (decode_location_default): Same.
3326 * breakpoint.h (struct breakpoint_ops): Same.
3327 (create_breakpoint): Same.
3328 * linespec.h (decode_line_full): Same.
3329 * linespec.c (decode_line_full): Same. Throw error if
3330 result.size () == 0.
3331
df631783
PA
33322020-08-27 Pedro Alves <pedro@palves.net>
3333
3334 PR gdb/26524
3335 * breakpoint.c (until_break_fsm) <location_breakpoint,
3336 caller_breakpoint>: Delete fields.
3337 <breakpoints>: New field.
3338 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3339 two individual breakpoints.
3340 (until_break_fsm::should_stop): Loop over breakpoints in the
3341 breakpoint vector.
3342 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3343 vector.
3344 (until_break_command): Handle location expanding into multiple
3345 sals.
3346
b2b38aa4
PA
33472020-08-27 Pedro Alves <pedro@palves.net>
3348
3349 PR gdb/26523
3350 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3351 bp_until breakpoints user-specified locations. Update intro
3352 comment.
3353
b886559f
SM
33542020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3355
3356 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3357 gdb_bfd_sections): New.
3358 * maint.c (print_bfd_section_info): Change param type to
3359 maint_print_section_data.
3360 (print_objfile_section_info): Likewise.
3361 (print_bfd_section_info_maybe_relocated): Likewise.
3362 (maintenance_info_sections): Use gdb_bfd_sections.
3363
4c6e63bf
SV
33642020-08-25 Shahab Vahedi <shahab@synopsys.com>
3365
3366 * MAINTAINERS: Add ARC target and maintainer.
3367
8d7f0635
AK
33682020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3369
3370 * configure.tgt: ARC support for GNU/Linux.
3371 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3372 * arc-linux-tdep.c: New file.
3373 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3374 * arc-tdep.c (arc_write_pc): Use it.
3375
fdd8731b
SV
33762020-08-25 Shahab Vahedi <shahab@synopsys.com>
3377
3378 * arc-tdep.c (arc_check_for_hardware_loop): New.
3379 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3380
22459524
SV
33812020-08-25 Shahab Vahedi <shahab@synopsys.com>
3382
3383 * arc-tdep.h: Include "gdbarch.h".
3384
995d3a19
SV
33852020-08-25 Shahab Vahedi <shahab@synopsys.com>
3386
3387 * arch/arc.h
3388 (arc_gdbarch_features): New class to stir the selection of target XML.
3389 (arc_create_target_description): Use FEATURES to choose XML target.
3390 (arc_lookup_target_description): Use arc_create_target_description
3391 to create _new_ target descriptions or return the already created
3392 ones if the FEATURES is the same.
3393 * arch/arc.c: Implementation of prototypes described above.
3394 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3395 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3396 * arc-tdep.c (*_feature_name): Make feature names consistent.
3397 (arc_register_feature): A new struct to hold information about
3398 registers of a particular target/feature.
3399 (arc_check_tdesc_feature): Check if XML provides registers in
3400 compliance with ARC_REGISTER_FEATURE structs.
3401 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3402 (determine_*_reg_feature_set): Which feature name to look for.
3403 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3404 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3405 to expected ISA enums to be used in arc_gdbarch_features structs.
3406 * features/Makefile (FEATURE_XMLFILES): Add new files.
3407 * gdb/features/arc/v1-aux.c: New file.
3408 * gdb/features/arc/v1-aux.xml: Likewise.
3409 * gdb/features/arc/v1-core.c: Likewise.
3410 * gdb/features/arc/v1-core.xml: Likewise.
3411 * gdb/features/arc/v2-aux.c: Likewise.
3412 * gdb/features/arc/v2-aux.xml: Likewise.
3413 * gdb/features/arc/v2-core.c: Likewise.
3414 * gdb/features/arc/v2-core.xml: Likewise.
3415 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3416
3945d2d7
GM
34172020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3418 Andrew Burgess <andrew.burgess@embecosm.com>
3419
3420 PR m2/26372
fc5d6901 3421 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
3422 an assert. Remove single element array indexing pattern as the
3423 MULTI_SUBSCRIPT support will handle this case too.
3424
2677f2d3
SM
34252020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3426
3427 * value.h (valprint_check_validity): Move declaration from
3428 here...
3429 * valprint.h (valprint_check_validity): ... to here.
3430
c426fddb
SM
34312020-08-24 Simon Marchi <simon.marchi@efficios.com>
3432
3433 * debug.h: New file.
3434 * debug.c (debug_prefixed_vprintf): New function.
3435 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3436 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3437
1eb8556f
SM
34382020-08-24 Simon Marchi <simon.marchi@efficios.com>
3439
3440 * infrun.h (infrun_debug_printf_1): New function declaration.
3441 (infrun_debug_printf): New macro.
3442 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3443 throughout.
3444 (infrun_debug_printf): New function.
3445 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3446 (handle_jit_event): Likewise.
3447
b8fff44e
MW
34482020-08-21 Mark Wielaard <mark@klomp.org>
3449
3450 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3451
d19c3068
SM
34522020-08-22 Simon Marchi <simon.marchi@efficios.com>
3453
3454 * frame.c (enum class frame_id_status): New.
3455 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3456 (fprintf_frame): Update.
3457 (compute_frame_id): Set frame id status to "computing" on entry.
3458 Set it back to "not_computed" on failure and to "computed" on
3459 success.
3460 (get_frame_id): Assert the frame id is not being computed.
3461 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3462 (create_new_frame): Likewise.
3463 (frame_cleanup_after_sniffer): Update assert.
3464
b70e516e
SM
34652020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3466
3467 * regcache.c (pid_ptid_regcache_map): New type.
3468 (target_ptid_regcache_map): Remove.
3469 (target_pid_ptid_regcache_map): New type.
3470 (regcaches): Change type to target_pid_ptid_regcache_map.
3471 (get_thread_arch_aspace_regcache): Update.
3472 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3473 case.
3474 (regcaches_size): Update.
3475 (regcache_count): Update.
3476 (registers_changed_ptid_target_pid_test): New.
3477 (_initialize_regcache): Register new test.
3478
cdd9148a
SM
34792020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3480
3481 * regcache.c (regcache_count): New.
3482 (struct regcache_test_data): New.
3483 (regcache_test_data_up): New.
3484 (populate_regcaches_for_test): New.
3485 (regcaches_test): Remove.
3486 (get_thread_arch_aspace_regcache_test): New.
3487 (registers_changed_ptid_all_test): New.
3488 (registers_changed_ptid_target_test): New.
3489 (registers_changed_ptid_target_ptid_test): New.
3490 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3491 (_initialize_regcache): Register new tests.
3492
dd125343
SM
34932020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3494
3495 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3496 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3497 gdbarch and aspace parameter. Use current inferior's aspace.
3498 Validate regcache's arch value.
3499 (regcaches_test): Update.
3500
3ee93972
SM
35012020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3502
3503 * regcache.c (regcaches_test): Call registers_changed.
3504
33bf4c5c
TBA
35052020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3506
3507 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3508
c2fd7fae
AKS
35092020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3510
3511 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3512 to find the end of prologue for flang compiled binaries.
3513 * arm-tdep.c (arm_skip_prologue): Likewise.
3514 * i386-tdep.c (i386_skip_prologue): Likewise.
3515 * producer.c (producer_is_llvm): New function.
3516 (producer_parsing_tests): Added new tests for clang/flang.
3517 * producer.h (producer_is_llvm): New declaration.
3518
9327494e
SM
35192020-08-18 Simon Marchi <simon.marchi@efficios.com>
3520
3521 * linux-nat.c (linux_nat_debug_printf): New function.
3522 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3523
d138725a
AM
35242020-08-18 Aaron Merey <amerey@redhat.com>
3525
3526 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3527 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3528 (CLIBS): Add DEBUGINFOD_LIBS.
3529
f9b11e6b
ST
35302020-08-17 Sergei Trofimovich <siarheit@google.com>
3531
3532 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3533 'gdbarch_num_regs'.
3534
3ae7ab99
TT
35352020-08-17 Tom Tromey <tromey@adacore.com>
3536
3537 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3538 ada_get_decoded_value returns NULL.
3539
b017825f
TT
35402020-08-17 Tom Tromey <tromey@adacore.com>
3541
3542 * python/py-inferior.c (infpy_search_memory): Use
3543 gdb_py_object_from_ulongest.
3544 * python/py-infevents.c (create_inferior_call_event_object)
3545 (create_memory_changed_event_object): Use
3546 gdb_py_object_from_ulongest.
3547 * python/py-linetable.c (ltpy_entry_get_pc): Use
3548 gdb_py_object_from_ulongest.
3549
7635cf79
SM
35502020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3551
3552 * loc.c (class symbol_needs_eval_context): Fix indentation.
3553
f54be24b
SM
35542020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3555
3556 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3557 bool.
3558
53d5a2a5
TV
35592020-08-17 Tom de Vries <tdevries@suse.de>
3560
3561 PR gdb/26393
3562 * gdbtypes.c (dump_dynamic_prop): New function.
3563 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3564
547ce8f0
TV
35652020-08-15 Tom de Vries <tdevries@suse.de>
3566
3567 PR backtrace/26390
3568 * stack.c (print_frame_args): Temporarily set the selected
3569 frame to FRAME while printing the frame's arguments.
3570
6ea815e7
PFC
35712020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3572
3573 PR breakpoints/26385
3574 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3575 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3576
6e562fa3
PFC
35772020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3578
3579 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3580 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3581 and >= to check return value instead of == -1 and != -1.
3582
d369b608
SM
35832020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3584
3585 * utils.h (class gdb_argv) <as_array_view>: New method.
3586 * utils.c (gdb_argv_as_array_view_test): New.
3587 (_initialize_utils): Register selftest.
3588 * maint.c (maintenance_selftest): Use the new method.
3589
b31488a3
KR
35902020-08-13 Kamil Rytarowski <n54@gmx.com>
3591
3592 * target.h (supports_dumpcore, dumpcore): New
3593 function declarations.
3594 * target.c (supports_dumpcore, dumpcore): New
3595 functions.
3596 * target-delegates.c: Rebuild.
3597 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3598 and target_dumpcore ().
3599
002a3166
AM
36002020-08-13 Aaron Merey <amerey@redhat.com>
3601
3602 * debuginfod-support.c: Replace global variables with user_data.
3603
ece5bc8a
SM
36042020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3605
3606 * maint.c (maintenance_selftest): Split args and pass array_view
3607 to run_tests.
3608
6d8a0a5e
LM
36092020-08-12 Luis Machado <luis.machado@linaro.org>
3610
3611 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3612 type's length.
3613 Use %s and pulongest to print the length.
3614
7cf663a9
PA
36152020-08-12 Pedro Alves <palves@redhat.com>
3616
3617 * NEWS: Move "Multi-target debugging support" item to the
3618 "Changes since GDB 9" section.
3619
27c7b875
PA
36202020-08-12 Pedro Alves <palves@redhat.com>
3621
3622 PR gdb/26336
3623 * progspace.c (program_space::remove_objfile): Invalidate the
3624 frame cache.
3625
1796a2a1
TV
36262020-08-11 Tom de Vries <tdevries@suse.de>
3627
3628 * MAINTAINERS: Mark ms1 as deleted.
3629
f8e3fe0d
LM
36302020-08-10 Luis Machado <luis.machado@linaro.org>
3631
3632 PR gdb/26310
3633
3634 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3635 act accordingly.
3636 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3637 movz/str/stur/stp skipping behavior.
3638
cc308722
LM
36392020-08-10 Luis Machado <luis.machado@linaro.org>
3640
3641 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3642 struct user_sve_header instead of struct sve_context.
3643
041d9819
SM
36442020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3645
3646 * read.h (dwarf2_fetch_die_loc_sect_off,
3647 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3648 `void *` parameter with function_view.
3649 * read.c (dwarf2_fetch_die_loc_sect_off,
3650 dwarf2_fetch_die_loc_cu_off): Likewise.
3651 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3652 (per_cu_dwarf_call): Adjust.
3653 (get_frame_address_in_block_wrapper): Remove.
3654 (indirect_synthetic_pointer): Adjust.
3655 (get_ax_pc): Remove.
3656 (dwarf2_compile_expr_to_ax): Adjust.
3657
38f8aa06
TV
36582020-08-08 Tom de Vries <tdevries@suse.de>
3659
3660 PR build/26344
3661 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3662 constructor.
3663 * regcache.c (get_thread_arch_aspace_regcache): Same.
3664
a52b3ae2
TT
36652020-08-07 Tom Tromey <tromey@adacore.com>
3666
3667 * ravenscar-thread.c
3668 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3669 New method.
3670 (ravenscar_thread_target::wait): Check
3671 runtime_initialized.
3672 (ravenscar_thread_target::prepare_to_store)
3673 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3674 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3675 (ravenscar_thread_target::stopped_by_watchpoint)
3676 (ravenscar_thread_target::stopped_data_address)
3677 (ravenscar_thread_target::core_of_thread): Use
3678 scoped_restore_current_thread and
3679 set_base_thread_from_ravenscar_task.
3680
0e29517d
TT
36812020-08-07 Tom Tromey <tromey@adacore.com>
3682
3683 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3684
592f9bd7
TT
36852020-08-07 Tom Tromey <tromey@adacore.com>
3686
3687 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3688 update_inferior_ptid before update_thread_list.
3689 (temporarily_change_regcache_ptid): New class.
3690 (ravenscar_thread_target::fetch_registers)
3691 (ravenscar_thread_target::store_registers)
3692 (ravenscar_thread_target::prepare_to_store): Use base thread when
3693 forwarding operation.
3694
39e2018a
TT
36952020-08-07 Tom Tromey <tromey@adacore.com>
3696
3697 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3698 "is_pid" case.
3699
2080266b
TT
37002020-08-07 Tom Tromey <tromey@adacore.com>
3701
3702 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3703 New methods.
3704 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3705 first.
3706 (ravenscar_thread_target::add_thread): Rename from
3707 ravenscar_add_thread.
3708 (ravenscar_thread_target::update_thread_list): Use a lambda.
3709 (ravenscar_thread_target::xfer_partial): New method.
3710
78c02f21
TT
37112020-08-07 Tom Tromey <tromey@adacore.com>
3712
3713 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3714 gdb::function_view.
3715 (iterate_over_live_ada_tasks): Change type of argument.
3716 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3717 of argument.
3718
d5d833af
TT
37192020-08-07 Tom Tromey <tromey@adacore.com>
3720
3721 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3722 Remove.
3723 (ravenscar_thread_target::extra_thread_info): Remove.
3724 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3725 defer to target beneath for non-Ravenscar threads.
3726
a8ac85bb
TT
37272020-08-07 Tom Tromey <tromey@adacore.com>
3728
3729 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3730 get_base_thread_from_ravenscar_task>: Now methods.
3731 <m_cpu_map>: New member.
3732 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3733 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3734 (ravenscar_thread_target::task_is_currently_active): Update.
3735 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3736 Now a method.
3737 (ravenscar_thread_target::add_active_thread): Put initial thread
3738 into the m_cpu_map.
3739
550ab58d
TT
37402020-08-07 Tom Tromey <tromey@adacore.com>
3741
3742 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3743 event_ptid.
3744
e9546579
TT
37452020-08-07 Tom Tromey <tromey@adacore.com>
3746
3747 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3748 runtime_initialized.
3749
3d4470e5
TT
37502020-08-07 Tom Tromey <tromey@adacore.com>
3751
3752 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3753 add_active_thread.
3754 (ravenscar_thread_target::add_active_thread): Now public.
3755 (ravenscar_inferior_created): Call add_active_thread after pushing
3756 the target.
3757
888bdb2b
SM
37582020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3759
3760 * regcache.c (ptid_regcache_map): New type.
3761 (target_ptid_regcache_map): New type.
3762 (regcaches): Change type to target_ptid_regcache_map.
3763 (get_thread_arch_aspace_regcache): Update to regcaches' new
3764 type.
3765 (regcache_thread_ptid_changed): Likewise.
3766 (registers_changed_ptid): Likewise.
3767 (regcaches_size): Likewise.
3768 (regcaches_test): Update.
3769 (regcache_thread_ptid_changed): Update.
3770 * regcache.h (regcache_up): New type.
3771 * gdbsupport/ptid.h (hash_ptid): New struct.
3772
b161a60d
SM
37732020-08-07 Simon Marchi <simon.marchi@efficios.com>
3774
3775 * observable.h (thread_ptid_changed): Add parameter
3776 `process_stratum_target *`.
3777 * infrun.c (infrun_thread_ptid_changed): Add parameter
3778 `process_stratum_target *` and use it.
3779 (selftests): New namespace.
3780 (infrun_thread_ptid_changed): New function.
3781 (_initialize_infrun): Register selftest.
3782 * regcache.c (regcache_thread_ptid_changed): Add parameter
3783 `process_stratum_target *` and use it.
3784 (regcache_thread_ptid_changed): New function.
3785 (_initialize_regcache): Register selftest.
3786 * thread.c (thread_change_ptid): Pass target to
3787 thread_ptid_changed observable.
3788
d2854d8d
CT
37892020-08-06 Caroline Tice <cmtice@google.com>
3790
fe4c3d43
SM
3791 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3792 (struct dwp_sections): Update field comments. Add loclists and
3793 rnglists fields.
3794 (struct virtual_v2_dwo_sections): Rename struct to
3795 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3796 size & offset fields for loclists and rnglists.
3797 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3798 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3799 skipping dummy type units.
3800 (create_dwp_hash_table): Update the large comment above the function to
3801 discuss Version 5 DWP files as well, with references. Update all the
3802 version checks in the function to check for version 5 as well. Add new
3803 section at the end to create dwp hash table for version 5.
3804 (create_dwp_v2_section): Rename function to
3805 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3806 Add V5 to error message text.
3807 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3808 into calls to create_dwp_v2_or_v5_section.
3809 (create_dwo_unit_in_dwp_v5): New function.
3810 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3811 check for version2; add else clause to handle version 5.
3812 (open_and_init_dwo_file): Add code to check dwarf version & only call
3813 create_debug_types_hash_table (with sections.types) if version is not 5;
3814 else call create_debug_type_hash_table, with sections.info.
3815 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3816 version 5.
3817 (dwarf2_locate_v5_dwp_sections): New function.
3818 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3819 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 3820
159ed7d9
SM
38212020-08-06 Simon Marchi <simon.marchi@efficios.com>
3822
3823 * regcache.h (class regcache): Remove friend
3824 registers_changed_ptid.
3825 <regcache_thread_ptid_changed>: Remove.
3826 <regcaches>: Remove.
3827 * regcache.c (regcache::regcaches): Rename to...
3828 (regcaches): ... this. Make static.
3829 (get_thread_arch_aspace_regcache): Update.
3830 (regcache::regcache_thread_ptid_changed): Rename to...
3831 (regcache_thread_ptid_changed): ... this. Update.
3832 (class regcache_access): Remove.
3833 (regcaches_test): Update.
3834 (_initialize_regcache): Update.
3835 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3836 <forward_list>.
3837
174981ae
SM
38382020-08-06 Simon Marchi <simon.marchi@efficios.com>
3839
3840 * regcache.h (class regcache) <current_regcache>: Rename to...
3841 <regcaches>: ... this. Move doc here.
3842 * regcache.c (regcache::current_regcache) Rename to...
3843 (regcache::regcaches): ... this. Move doc to header.
3844 (get_thread_arch_aspace_regcache): Update.
3845 (regcache::regcache_thread_ptid_changed): Update.
3846 (registers_changed_ptid): Update.
3847 (class regcache_access) <current_regcache_size>: Rename to...
3848 <regcaches_size>: ... this.
3849 (current_regcache_test): Rename to...
3850 (regcaches_test): ... this.
3851 (_initialize_regcache): Update.
3852
ed908db6
VC
38532020-08-06 Victor Collod <vcollod@nvidia.com>
3854
3855 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3856
b5582ab7
KB
38572020-08-05 Kevin Buettner <kevinb@redhat.com>
3858
3859 * corelow.c (core_target::build_file_mappings): Don't output
3860 null pathname in warning.
3861
ea946b86
SM
38622020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3863
3864 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3865 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3866 gdb.dwarf2/dw2-single-line-discriminators.exp,
3867 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3868
57d02173
TT
38692020-08-05 Tom Tromey <tromey@adacore.com>
3870
3871 PR rust/26197:
3872 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3873 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3874 Fix off-by-one and type size errors in ordinary case.
3875
5555c86d
TV
38762020-08-05 Tom de Vries <tdevries@suse.de>
3877
3878 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3879 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3880
97916bfe
SM
38812020-08-04 Simon Marchi <simon.marchi@efficios.com>
3882
3883 * frame.h (frame_id_p): Return bool.
3884 (frame_id_artificial_p): Return bool.
3885 (frame_id_eq): Return bool.
3886 (has_stack_frames): Return bool.
3887 (get_selected_frame): Fix typo in comment.
3888 (get_frame_pc_if_available): Return bool.
3889 (get_frame_address_in_block_if_available): Return bool.
3890 (get_frame_func_if_available): Return bool.
3891 (read_frame_register_unsigned): Return bool.
3892 (get_frame_register_bytes): Return bool.
3893 (safe_frame_unwind_memory): Return bool.
3894 (deprecated_frame_register_read): Return bool.
3895 (frame_unwinder_is): Return bool.
3896 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3897 bool.
3898 <this_id::p>: Likewise.
3899 <prev_p>: Likewise.
3900 (frame_stash_add): Return bool.
3901 (get_frame_id): Use bool.
3902 (frame_id_build_special) Use bool.
3903 (frame_id_build_unavailable_stack): Use bool.
3904 (frame_id_build): Use bool.
3905 (frame_id_p): Return bool, use true/false instead of 1/0.
3906 (frame_id_artificial_p): Likewise.
3907 (frame_id_eq): Likewise.
3908 (frame_id_inner): Likewise.
3909 (get_frame_func_if_available): Likewise.
3910 (read_frame_register_unsigned): Likewise.
3911 (deprecated_frame_register_read): Likewise.
3912 (get_frame_register_bytes): Likewise.
3913 (has_stack_frames): Likewise.
3914 (inside_main_func): Likewise.
3915 (inside_entry_func): Likewise.
3916 (get_frame_pc_if_available): Likewise.
3917 (get_frame_address_in_block_if_available): Likewise.
3918 (frame_unwinder_is): Likewise.
3919 (safe_frame_unwind_memory): Likewise.
3920 (frame_unwind_arch): Likewise.
3921
fedfee88
SM
39222020-08-04 Simon Marchi <simon.marchi@efficios.com>
3923
3924 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3925 type to cached_copy_status.
3926 (fprintf_frame): Adjust.
3927 (get_frame_func_if_available): Adjust.
3928 (frame_cleanup_after_sniffer): Adjust.
3929
6cfa9b59
MW
39302020-08-04 Mark Wielaard <mark@klomp.org>
3931
3932 * MAINTAINERS (Write After Approval): Update email address.
3933
66d6346b
SM
39342020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3935
3936 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3937 dynamic_prop::const_val.
3938
8a6d5e35
SM
39392020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3940
3941 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3942 dynamic_prop::kind.
3943
51d6067d
SM
39442020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3945
3946 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3947
b26e2ae7
JM
39482020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3949
3950 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3951
39791af2
JM
39522020-08-04 Weimin Pan <weimin.pan@oracle.com>
3953 Jose E. Marchesi <jose.marchesi@oracle.com>
3954
3955 * configure.tgt: Add entry for bpf-*-*.
3956 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3957 (ALLDEPFILES): Add bpf-tdep.c.
3958 * bpf-tdep.c: New file.
3959 * MAINTAINERS: Add bpf target and maintainer.
3960 * NEWS: Mention the support for the new target.
3961
521894aa
TV
39622020-08-04 Tom de Vries <tdevries@suse.de>
3963
3964 PR symtab/23270
3965 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3966 Error.
3967
5d6356e9
JB
39682020-08-03 John Baldwin <jhb@FreeBSD.org>
3969
3970 * syscalls/freebsd.xml: Regenerate.
3971
0cf82b81
JB
39722020-08-03 John Baldwin <jhb@FreeBSD.org>
3973
3974 * syscalls/update-freebsd.sh: Fix usage and year range.
3975
8f34b746
TV
39762020-08-03 Tom de Vries <tdevries@suse.de>
3977
3978 PR symtab/26333
3979 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3980 DW_LNE_lo_user/DW_LNE_hi_user range.
3981
5e500d33
SM
39822020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3983
3984 PR ada/26318
3985 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3986 kind.
3987
78319c15
TBA
39882020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3989
3990 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3991
4c55e970
TBA
39922020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3993
3994 * breakpoint.c (set_breakpoint_condition): Update the condition
3995 expressions after checking that the input condition string parses
3996 successfully and does not contain junk at the end.
3997
1e620590
TBA
39982020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3999
4000 * breakpoint.c (set_breakpoint_condition): Update the
4001 condition string after parsing the new condition successfully.
4002
c8693053
RO
40032020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4004
4005 * proc-api.c (_STRUCTURED_PROC): Don't define.
4006 * proc-events.c: Likewise.
4007 * proc-flags.c: Likewise.
4008 * proc-why.c: Likewise.
4009 * procfs.c: Likewise.
4010
4011 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
4012 * configure, config.in: Regenerate.
4013
5a99adb8
TV
40142020-07-30 Tom de Vries <tdevries@suse.de>
4015
4016 PR build/26320
4017 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4018 m_red/m_green/m_blue in a union.
4019
8ba83e91
TV
40202020-07-29 Tom de Vries <tdevries@suse.de>
4021
4022 PR tdep/26280
4023 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4024
f75a0693
AB
40252020-07-28 Tom Tromey <tromey@adacore.com>
4026
4027 PR symtab/26270:
4028 * symtab.h (find_pc_partial_function_sym): Declare.
4029 * cli/cli-cmds.c (disassemble_command): Use
4030 find_pc_partial_function_sym. Check asm_demangle.
4031 * blockframe.c (cache_pc_function_sym): New global.
4032 (cache_pc_function_name): Remove.
4033 (clear_pc_function_cache): Update.
4034 (find_pc_partial_function_sym): New function, from
4035 find_pc_partial_function.
4036 (find_pc_partial_function): Rewrite using
4037 find_pc_partial_function_sym.
4038
16f3242c
TT
40392020-07-28 Tom Tromey <tromey@adacore.com>
4040
4041 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4042 help. Add usage.
4043
4888741a
TT
40442020-07-28 Tom Tromey <tromey@adacore.com>
4045
4046 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4047 <DW_OP_GNU_variable_value>: Cast to address type.
4048
4d46f402
KR
40492020-07-28 Kamil Rytarowski <n54@gmx.com>
4050
4051 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4052 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4053 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4054 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4055 (nbsd_get_siginfo_type): New.
4056 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4057 (_initialize_nbsd_tdep): New.
4058
d70f978b
L
40592020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4060
4061 PR binutils/26301
4062 * configure: Regenerated.
4063
377170fa
L
40642020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4065
4066 PR binutils/26301
4067 * configure: Regenerated.
4068
43d5901d
AB
40692020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4070
4071 * python/py-frame.c: Remove 'user-regs.h' include.
4072 (frapy_read_register): Rewrite to make use of
4073 gdbpy_parse_register_id.
4074 * python/py-registers.c (gdbpy_parse_register_id): New function,
4075 moved here from python/py-unwind.c. Updated the return type, and
4076 also accepts register descriptor objects.
4077 * python/py-unwind.c: Remove 'user-regs.h' include.
4078 (pyuw_parse_register_id): Moved to python/py-registers.c.
4079 (unwind_infopy_add_saved_register): Update to use
4080 gdbpy_parse_register_id.
4081 (pending_framepy_read_register): Likewise.
4082 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4083
14fa8fb3
AB
40842020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4085
4086 * python/py-registers.c: Add 'user-regs.h' include.
4087 (register_descriptor_iter_find): New function.
4088 (register_descriptor_iterator_object_methods): New static global
4089 methods array.
4090 (register_descriptor_iterator_object_type): Add pointer to methods
4091 array.
4092
ddce1758
JB
40932020-07-27 John Baldwin <jhb@FreeBSD.org>
4094
4095 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4096 for all architectures on FreeBSD 11.3 and later.
4097
a4089f52
TT
40982020-07-27 Tom Tromey <tromey@adacore.com>
4099
4100 * gcore.h (load_corefile): Don't declare.
4101
95420d30
TV
41022020-07-27 Tom de Vries <tdevries@suse.de>
4103
4104 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4105 * config.in: Regenerate.
4106 * configure: Regenerate.
4107
05a6b8c2
EZ
41082020-07-26 Eli Zaretskii <eliz@gnu.org>
4109
4110 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4111 ws2tcpip.h. When checking whether socklen_t type is defined, use
4112 ws2tcpip.h if it is available and sys/socket.h isn't.
4113 * configure: Regenerate.
4114 * config.in: Regenerate.
4115
e79eb02f
AB
41162020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4117
4118 PR fortran/23051
4119 PR fortran/26139
4120 * valops.c (value_ind): Pass address to
4121 readjust_indirect_value_type.
4122 * value.c (readjust_indirect_value_type): Make parameter
4123 non-const, and add extra address parameter. Resolve original type
4124 before using it.
4125 * value.h (readjust_indirect_value_type): Update function
4126 signature and comment.
4127
876518dd
TV
41282020-07-25 Tom de Vries <tdevries@suse.de>
4129
4130 PR symtab/26243
4131 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4132 entries.
4133
f6720b1c
AM
41342020-07-24 Aaron Merey <amerey@redhat.com>
4135
4136 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4137 * configure: Rebuild.
4138
513487e1
KB
41392020-07-23 Kevin Buettner <kevinb@redhat.com>
4140
4141 PR corefiles/26294
4142 * corelow.c (_initialize_corelow): Add period to help text
4143 for "maintenance print core-file-backed-mappings".
4144
e7bc9db8
PA
41452020-07-23 Pedro Alves <pedro@palves.net>
4146
4147 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4148 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4149 meanwhile.
4150 * frame.c (frame_cache_generation, get_frame_cache_generation):
4151 New.
4152 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4153 (get_prev_frame_if_no_cycle): On exception, don't touch
4154 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4155 * frame.h (get_frame_cache_generation): Declare.
4156
90fcc466
TV
41572020-07-23 Tom de Vries <tdevries@suse.de>
4158
4159 PR tui/26282
4160 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4161 New default constructor.
4162
78344df7
AB
41632020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4164
4165 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4166 exclude non-statement entries.
4167
b089853a
KB
41682020-07-22 Kevin Buettner <kevinb@redhat.com>
4169
4170 * NEWS (New commands): Mention new command
4171 "maintenance print core-file-backed-mappings".
4172
09c2f5d4
KB
41732020-07-22 Kevin Buettner <kevinb@redhat.com>
4174
4175 * corelow.c (gdbcmd.h): Include.
4176 (core_target::info_proc_mappings): New method.
4177 (get_current_core_target): New function.
4178 (maintenance_print_core_file_backed_mappings): New function.
4179 (_initialize_corelow): Add core-file-backed-mappings to
4180 "maint print" commands.
4181
9c5ec5c2 41822020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 4183
9c5ec5c2
KB
4184 * linux-tdep.c (dump_note_entry_p): New function.
4185 (linux_dump_mapping_p_ftype): New typedef.
4186 (linux_find_memory_regions_full): Add new parameter,
4187 should_dump_mapping_p.
4188 (linux_find_memory_regions): Adjust call to
4189 linux_find_memory_regions_full.
4190 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4191 call to linux_find_memory_regions_full.
4192
db082f59
KB
41932020-07-22 Kevin Buettner <kevinb@redhat.com>
4194
4195 * corelow.c (solist.h, unordered_map): Include.
4196 (class core_target): Add field m_core_file_mappings and
4197 method build_file_mappings.
4198 (core_target::core_target): Call build_file_mappings.
4199 (core_target::~core_target): Free memory associated with
4200 m_core_file_mappings.
4201 (core_target::build_file_mappings): New method.
4202 (core_target::xfer_partial): Use m_core_file_mappings
4203 for memory transfers.
4204 * linux-tdep.c (linux_read_core_file_mappings): New
4205 function.
4206 (linux_core_info_proc_mappings): Rewrite to use
4207 linux_read_core_file_mappings.
4208 (linux_init_abi): Register linux_read_core_file_mappings.
4209
7e183d27
KB
42102020-07-22 Kevin Buettner <kevinb@redhat.com>
4211
4212 * arch-utils.c (default_read_core_file_mappings): New function.
4213 * arch-utils.c (default_read_core_file_mappings): Declare.
4214 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4215 * gdbarch.h, gdbarch.c: Regenerate.
4216
2735d421
KB
42172020-07-22 Kevin Buettner <kevinb@redhat.com>
4218
4219 PR corefiles/25631
4220 * corelow.c (core_target:xfer_partial): Revise
4221 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4222 case after first checking the stratum beneath the core
4223 target.
4224 (has_all_memory): Return true.
4225 * target.c (raw_memory_xfer_partial): Revise comment
4226 regarding use of has_all_memory.
4227
e56cb451
KB
42282020-07-22 Kevin Buettner <kevinb@redhat.com>
4229
4230 * exec.h (section_table_xfer_memory): Revise declaration,
4231 replacing section name parameter with an optional callback
4232 predicate.
4233 * exec.c (section_table_xfer_memory): Likewise.
4234 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4235 of section_table_xfer_memory.
4236
32fa152e
TT
42372020-07-22 Tom Tromey <tromey@adacore.com>
4238
4239 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4240 lookup_symbol_search_name.
4241
a67a1c41
AB
42422020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4243
4244 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4245 redundant local variable.
4246 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4247 reference, not pointer, update code accordingly.
4248
a7b4ff4f
SM
42492020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4250 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4251
4252 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4253 * jit.c (jit_breakpoint_re_set_internal): Use the
4254 `skip_jit_symbol_lookup` field.
4255
2340e834
SM
42562020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4257 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4258
4259 * jit.c (jit_read_descriptor): Define the descriptor address once,
4260 use twice.
4261 (jit_breakpoint_deleted): Move the declaration of the loop variable
4262 `iter` into the loop header.
4263 (jit_breakpoint_re_set_internal): Move the declaration of the local
4264 variable `objf_data` to the first point of definition.
4265 (jit_event_handler): Move the declaration of local variables
4266 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4267 Rename `objf` to `jited`.
4268
c1072906
SM
42692020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4270
4271 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4272 Remove.
4273 * jit.c (get_jiter_objfile_data): Update.
4274
c8474dc3
TBA
42752020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4276 Simon Marchi <simon.marchi@polymtl.ca>
4277
4278 * jit.c (struct jit_program_space_data): Remove.
4279 (jit_program_space_key): Remove.
4280 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4281 stuff.
4282 (get_jit_program_space_data): Remove.
4283 (jit_breakpoint_deleted): Iterate on all of the program space's
4284 objfiles.
4285 (jit_inferior_init): Likewise.
4286 (jit_breakpoint_re_set_internal): Likewise. Also change return
4287 type to void.
4288 (jit_breakpoint_re_set): Pass current_program_space to
4289 jit_breakpoint_re_set_internal.
4290
77208eb7
SM
42912020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4292
4293 * jit.h (struct jiter_objfile_data) <cached_code_address,
4294 jit_breakpoint>: Move to here from ...
4295 * jit.c (jit_program_space_data): ... here.
4296 (jiter_objfile_data::~jiter_objfile_data): Update.
4297 (jit_breakpoint_deleted): Update.
4298 (jit_breakpoint_re_set_internal): Update.
4299
8c1c720f
SM
43002020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4301
4302 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4303 checks.
4304 (jit_read_descriptor): Remove NULL check.
4305 (jit_event_handler): Add an assertion.
4306
0e74a041
SM
43072020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4308
4309 * jit.h (struct jit_objfile_data): Split into...
4310 (struct jiter_objfile_data): ... this ...
4311 (struct jited_objfile_data): ... and this.
4312 * objfiles.h (struct objfile) <jit_data>: Remove.
4313 <jiter_data, jited_data>: New fields.
4314 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4315 (jiter_objfile_data::~jiter_objfile_data): ... this.
4316 (get_jit_objfile_data): Rename to ...
4317 (get_jiter_objfile_data): ... this.
4318 (add_objfile_entry): Update.
4319 (jit_read_descriptor): Use get_jiter_objfile_data.
4320 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4321 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4322 (jit_inferior_exit_hook): Use objfile's jited_data field.
4323
238b5c9f
SM
43242020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4325
4326 * jit.h: Forward-declare `struct minimal_symbol`.
4327 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4328 constructor, destructor, and an objfile* field.
4329 * jit.c (jit_objfile_data): Remove.
4330 (struct jit_objfile_data): Migrate from here to jit.h.
4331 (jit_objfile_data::~jit_objfile_data): New destructor
4332 implementation with code moved from free_objfile_data.
4333 (free_objfile_data): Delete.
4334 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4335 (jit_find_objf_with_entry_addr): Ditto.
4336 (jit_inferior_exit_hook): Ditto.
4337 (_initialize_jit): Remove the call to
4338 register_objfile_data_with_cleanup.
4339 * objfiles.h (struct objfile) <jit_data>: New field.
4340
fe053b9e
TBA
43412020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4342
4343 * jit.h: Forward-declare `struct objfile`.
4344 (jit_event_handler): Add a second parameter, the JITer objfile.
4345 * jit.c (jit_read_descriptor): Change the signature to take the
4346 JITer objfile as an argument instead of the jit_program_space_data.
4347 (jit_inferior_init): Update the call to jit_read_descriptor.
4348 (jit_event_handler): Use the new JITer objfile argument when calling
4349 jit_read_descriptor.
4350 * breakpoint.c (handle_jit_event): Update the call to
4351 jit_event_handler to pass the JITer objfile.
4352
4cec0c66
JB
43532020-07-21 John Baldwin <jhb@FreeBSD.org>
4354
4355 * gdbarch.c: Regenerate.
4356 * gdbarch.h: Regenerate.
4357 * gdbarch.sh (handle_segmentation_fault): Remove method.
4358 * infrun.c (handle_segmentation_fault): Remove.
4359 (print_signal_received_reason): Remove call to
4360 handle_segmentation_fault.
4361
0e42f66a
JB
43622020-07-21 John Baldwin <jhb@FreeBSD.org>
4363
4364 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4365 Rename to sparc64_linux_report_signal_info and add siggnal
4366 argument.
4367 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4368 instead of sparc64_linux_handle_segmentation_fault.
4369
77bdfeb2
JB
43702020-07-21 John Baldwin <jhb@FreeBSD.org>
4371
4372 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4373 i386_linux_report_signal_info instead of
4374 i386_linux_handle_segmentation_fault.
4375 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4376 to i386_linux_report_signal_info and add siggnal argument.
4377 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4378 of i386_linux_handle_segmentation_fault.
4379 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4380 to i386_linux_report_signal_info and add siggnal argument.
4381
ad97bfc5
JB
43822020-07-21 John Baldwin <jhb@FreeBSD.org>
4383
4384 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4385 hook if present.
4386
272bb05c
JB
43872020-07-21 John Baldwin <jhb@FreeBSD.org>
4388
4389 * gdbarch.c: Regenerate.
4390 * gdbarch.h: Regenerate.
4391 * gdbarch.sh (report_signal_info): New method.
4392 * infrun.c (print_signal_received_reason): Invoke gdbarch
4393 report_signal_info hook if present.
4394
baf8791e
AB
43952020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4396
4397 * python/py-registers.c : Add 'unordered_map' include.
4398 (gdbpy_new_reggroup): Renamed to...
4399 (gdbpy_get_reggroup): ...this. Update to only create register
4400 group descriptors when needed.
4401 (gdbpy_reggroup_iter_next): Update.
4402
f7306dac
AB
44032020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4404
4405 * python/py-registers.c (gdbpy_register_object_data): New static
4406 global.
4407 (gdbpy_register_object_data_init): New function.
4408 (gdbpy_new_register_descriptor): Renamed to...
4409 (gdbpy_get_register_descriptor): ...this, and update to reuse
4410 existing register descriptors where possible.
4411 (gdbpy_register_descriptor_iter_next): Update.
4412 (gdbpy_initialize_registers): Register new gdbarch data.
4413
05c309a8
SM
44142020-07-21 Simon Marchi <simon.marchi@efficios.com>
4415
4416 * linux-nat.c (stopped_pids): Make static.
4417
d1fd641e
SM
44182020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4419
4420 PR ada/26235
4421 * gdbtypes.c (ada_discrete_type_low_bound,
4422 ada_discrete_type_high_bound): Handle undefined bounds.
4423
1de14d77
KR
44242020-07-21 Kamil Rytarowski <n54@gmx.com>
4425
4426 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4427 declaration.
4428 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4429 function.
4430
ed810cc7
JB
44312020-07-20 John Baldwin <jhb@FreeBSD.org>
4432
4433 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4434 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4435 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4436 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4437 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4438 method.
4439
ae5369e7
LC
44402020-07-20 Ludovic Courtès <ludo@gnu.org>
4441
4442 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4443 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4444 which are deprecated in Guile 3.0.
4445 * configure.ac (try_guile_versions): Add "guile-3.0".
4446 * configure (try_guile_versions): Regenerate.
4447 * NEWS: Update entry.
4448
68cf161c
LC
44492020-07-20 Ludovic Courtès <ludo@gnu.org>
4450 Doug Evans <dje@google.com>
4451
4452 PR gdb/21104
4453 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4454 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4455 USING_GUILE_BEFORE_2_2.
4456 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4457 Change type to 'scm_t_port_type *'.
4458 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4459 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4460 parameter and honor it. Update callers.
4461 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4462 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4463 functions.
4464 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4465 USING_GUILE_BEFORE_2_2.
4466 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4467 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4468 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4469 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4470 and 'SCM_PORT_TYPE'.
4471 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4472 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4473 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4474 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4475 [!USING_GUILE_BEFORE_2_2]: New functions.
4476 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4477 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4478 'gdbscm_memory_port_read'.
4479 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4480 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4481 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4482 function.
4483 (ioscm_init_memory_port): Remove.
4484 (ioscm_init_memory_port_stream): New function
4485 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4486 function.
4487 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4488 Return scm_from_uint (0).
4489 (gdbscm_set_memory_port_read_buffer_size_x)
4490 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4491 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4492 Return scm_from_uint (0).
4493 (gdbscm_set_memory_port_write_buffer_size_x)
4494 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4495 * configure.ac (try_guile_versions): Add "guile-2.2".
4496 * configure: Regenerate.
4497 * NEWS: Add entry.
4498
aee91db3
TT
44992020-07-18 Tom Tromey <tom@tromey.com>
4500
4501 * linux-nat.c (linux_multi_process): Remove.
4502 (linux_nat_target::supports_multi_process): Return true.
4503
0e267416
AB
45042020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4505
4506 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4507 (riscv_lookup_target_description): Return pointer out of
4508 unique_ptr.
4509 * target-descriptions.c (allocate_target_description): Add
4510 comment.
4511 (target_desc_deleter::operator()): Likewise.
4512 * target-descriptions.h (struct target_desc_deleter): Moved to
4513 gdbsupport/tdesc.h.
4514 (target_desc_up): Likewise.
4515
f80c8ec4
TT
45162020-07-17 Tom Tromey <tromey@adacore.com>
4517
4518 * linux-nat.c (linux_nat_target::supports_non_stop)
4519 (linux_nat_target::always_non_stop_p): Use "true".
4520 (linux_nat_target::supports_disable_randomization): Use "true" and
4521 "false".
4522
d0ce17d8
CT
45232020-07-16 Caroline Tice <cmtice@google.com>
4524
4525 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4526 (RNGLIST_HEADER_SIZE64): New constant definition.
4527 (struct dwop_section_names): Add rnglists_dwo.
4528 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4529 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4530 (struct dwo_sections): Add rnglists field.
4531 (read_attribut_reprocess): Add tag parameter.
4532 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4533 (cu_debug_rnglists_section): New function (decl & definition).
4534 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4535 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4536 die whose range is being checked; get rnglist section from
4537 cu_debug_rnglists_section, to get from either objfile or dwo file as
4538 appropriate. Add cases for DW_RLE_base_addressx,
4539 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4540 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4541 test inside if-condition and updating complaint message.
4542 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4543 dwarf2_rnglists_process.
4544 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4545 dwarf2_ranges_process.
4546 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4547 need_ranges_base and update comment appropriately. Also pass die tag
4548 to dwarf2_ranges_read.
4549 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4550 need_ranges_base and update comment appropriately. Also pass die tag
4551 to dwarf2_ranges_process.
4552 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4553 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4554 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4555 need_ranges_base and update comment appropriately. Also pass die tag
4556 to read_attribute_reprocess and dwarf2_ranges_read.
4557 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4558 and update function comment appropriately.
4559 (read_loclist_index): Call read_loclists_rnglists_header instead of
4560 read_loclist_header.
4561 (read_rnglist_index): New function.
4562 (read_attribute_reprocess): Add tag parameter. Add code for
4563 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4564 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4565
3dcc261c
AB
45662020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4567
4568 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4569 being resolved.
4570
ccb9eba6
AB
45712020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4572
4573 * arch-utils.c (show_architecture): Update formatting of messages.
4574
cf88be68
SM
45752020-07-12 Simon Marchi <simon.marchi@efficios.com>
4576
4577 * gdbtypes.h (struct type) <bounds>: Handle array and string
4578 types.
4579 * ada-lang.c (assign_aggregate): Use type::bounds on
4580 array/string type.
4581 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4582 * c-varobj.c (c_number_of_children): Likewise.
4583 (c_describe_child): Likewise.
4584 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4585 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4586 (f_type_print_base): Likewise.
4587 * f-valprint.c (f77_array_offset_tbl): Likewise.
4588 (f77_get_upperbound): Likewise.
4589 (f77_print_array_1): Likewise.
4590 * guile/scm-type.c (gdbscm_type_range): Likewise.
4591 * m2-typeprint.c (m2_array): Likewise.
4592 (m2_is_long_set_of_type): Likewise.
4593 * m2-valprint.c (get_long_set_bounds): Likewise.
4594 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4595 * python/py-type.c (typy_range): Likewise.
4596 * rust-lang.c (rust_internal_print_type): Likewise.
4597 * type-stack.c (type_stack::follow_types): Likewise.
4598 * valarith.c (value_subscripted_rvalue): Likewise.
4599 * valops.c (value_cast): Likewise.
4600
509971ae
SM
46012020-07-12 Simon Marchi <simon.marchi@efficios.com>
4602
4603 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4604 callers to use the equivalent accessor methods.
4605
107406b7
SM
46062020-07-12 Simon Marchi <simon.marchi@efficios.com>
4607
4608 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4609 (struct type) <bit_stride>: New method.
4610 (TYPE_BIT_STRIDE): Remove.
4611 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4612
bb789949
SM
46132020-07-12 Simon Marchi <simon.marchi@efficios.com>
4614
4615 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4616 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4617 callers to use the equivalent accessor methods instead.
4618
39498edb
SM
46192020-07-12 Simon Marchi <simon.marchi@efficios.com>
4620
4621 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4622 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4623 callers to use the equivalent accessor methods instead.
4624
3b606f38
SM
46252020-07-12 Simon Marchi <simon.marchi@efficios.com>
4626
4627 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4628 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4629 to use dynamic_prop::kind.
4630
064d9cb9
SM
46312020-07-12 Simon Marchi <simon.marchi@efficios.com>
4632
4633 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4634 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4635 to get the bound property's kind and check against
4636 PROP_UNDEFINED.
4637
5537ddd0
SM
46382020-07-12 Simon Marchi <simon.marchi@efficios.com>
4639
4640 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4641 all callers to use type::range_bounds followed by
4642 dynamic_prop::{low,high}.
4643
8c2e4e06
SM
46442020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4645
4646 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4647 const_val, set_const_val, baton, set_locexpr, set_loclist,
4648 set_addr_offset, variant_parts, set_variant_parts,
4649 original_type, set_original_type>: New methods.
4650 <kind>: Rename to...
4651 <m_kind>: ... this. Update all users to use the new methods
4652 instead.
4653 <data>: Rename to...
4654 <m_data>: ... this. Update all users to use the new methods
4655 instead.
4656
7c6f2712
SM
46572020-07-12 Simon Marchi <simon.marchi@efficios.com>
4658
4659 * gdbtypes.c (get_discrete_bounds): Return failure if
4660 the range type's bounds are not both defined and constant
4661 values.
4662 (get_array_bounds): Update comment. Remove undefined bound check.
4663
599088e3
SM
46642020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4665
4666 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4667 the type::bounds method directly.
4668
c4dfcb36
SM
46692020-07-12 Simon Marchi <simon.marchi@efficios.com>
4670
4671 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4672 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4673 are used to set the range type's bounds to use set_bounds.
4674
0a278aa7
PW
46752020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4676
4677 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4678
cce20f10
PA
46792020-07-10 Pedro Alves <pedro@palves.net>
4680
4681 * gdbthread.h (inferior_ref): Define.
4682 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4683 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4684 * thread.c
4685 (scoped_restore_current_thread::restore):
4686 Adjust to gdb::ref_ptr.
4687 (scoped_restore_current_thread::~scoped_restore_current_thread):
4688 Remove manual decref handling.
4689 (scoped_restore_current_thread::scoped_restore_current_thread):
4690 Adjust to use
4691 inferior_ref::new_reference/thread_info_ref::new_reference.
4692 Incref the thread before calling get_frame_id instead of after.
4693 Let TARGET_CLOSE_ERROR propagate.
4694
6d7aa592
PA
46952020-07-10 Pedro Alves <pedro@palves.net>
4696
4697 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4698 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4699 NOT_AVAILABLE_ERROR.
4700 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4701 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4702
b3e3a4c1
SM
47032020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4704 Pedro Alves <pedro@palves.net>
4705
4706 PR gdb/26199
4707 * infrun.c (threads_are_resumed_pending_p): Delete.
4708 (do_target_wait): Remove threads_are_executing and
4709 threads_are_resumed_pending_p checks from the inferior_matches
4710 lambda. Update comments.
4711
d6cc5d98
PA
47122020-07-10 Pedro Alves <pedro@palves.net>
4713
4714 PR gdb/26199
4715 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4716 executing threads.
4717
7d3badc6
PA
47182020-07-10 Pedro Alves <pedro@palves.net>
4719
4720 PR gdb/26199
4721 * infrun.c (handle_no_resumed): Handle multiple targets.
4722
42bd97a6
PA
47232020-07-10 Pedro Alves <pedro@palves.net>
4724
4725 PR gdb/26199
4726 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4727 target_is_async_p.
4728
43667cc6
PA
47292020-07-10 Pedro Alves <pedro@palves.net>
4730
4731 PR gdb/26199
4732 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4733 threads, not all threads.
4734
96118d11
PA
47352020-07-10 Pedro Alves <pedro@palves.net>
4736
4737 PR gdb/26199
4738 * remote.c (remote_target::open_1): Pass remote target pointer as
4739 data to create_async_event_handler.
4740 (remote_async_inferior_event_handler): Mark async event handler
4741 before returning if the remote target still has either pending
4742 events or unacknowledged notifications.
4743
54904d81
JB
47442020-07-10 John Baldwin <jhb@FreeBSD.org>
4745
4746 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4747 declaration.
4748 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4749 function.
4750
f37e5866
JB
47512020-07-09 John Baldwin <jhb@FreeBSD.org>
4752
4753 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4754 inferior_ptid.
4755
fc238d4a
JB
47562020-07-09 John Baldwin <jhb@FreeBSD.org>
4757
4758 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4759 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4760 AT_FREEBSD_PS_STRINGS.
4761
6e2469ff
HD
47622020-07-08 Hannes Domani <ssbssa@yahoo.de>
4763
4764 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4765 of debugfile path on Windows.
4766
d1076c41
JB
47672020-07-08 John Baldwin <jhb@FreeBSD.org>
4768
4769 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4770 argument to 'data'.
4771
15f3b077
TT
47722020-07-08 Tom Tromey <tromey@adacore.com>
4773
4774 * ada-lang.c (ada_exception_message_1): Use read_memory.
4775
9fc501fd
AB
47762020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4777
4778 PR python/22748
4779 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4780 special handling for inline frames.
4781 * findvar.c (value_of_register_lazy): Skip inline frames when
4782 creating lazy register values.
4783 * frame.c (frame_id_computed_p): Delete definition.
4784 * frame.h (frame_id_computed_p): Delete declaration.
4785
64cb3757
AB
47862020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4787
4788 * NEWS: Mention additions to Python API.
4789 * python/py-arch.c (archpy_register_groups): New function.
4790 (arch_object_methods): Add 'register_groups' method.
4791 * python/py-registers.c (reggroup_iterator_object): New struct.
4792 (reggroup_object): New struct.
4793 (gdbpy_new_reggroup): New function.
4794 (gdbpy_reggroup_to_string): New function.
4795 (gdbpy_reggroup_name): New function.
4796 (gdbpy_reggroup_iter): New function.
4797 (gdbpy_reggroup_iter_next): New function.
4798 (gdbpy_new_reggroup_iterator): New function
4799 (gdbpy_initialize_registers): Register new types.
4800 (reggroup_iterator_object_type): Define new Python type.
4801 (gdbpy_reggroup_getset): New static global.
4802 (reggroup_object_type): Define new Python type.
4803 * python/python-internal.h
4804
0f767f94
AB
48052020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4806
4807 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4808 * python/py-arch.c (archpy_registers): New function.
4809 (arch_object_methods): Add 'registers' method.
4810 * python/py-registers.c: New file.
4811 * python/python-internal.h
4812 (gdbpy_new_register_descriptor_iterator): Declare.
4813 (gdbpy_initialize_registers): Declare.
4814 * python/python.c (do_start_initialization): Call
4815 gdbpy_initialize_registers.
4816 * NEWS: Mention additions to the Python API.
4817
87dbc774
AB
48182020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4819
4820 * NEWS: Mention new Python API method.
4821 * python/py-unwind.c (pending_framepy_architecture): New function.
4822 (pending_frame_object_methods): Add architecture method.
4823
3bc98c0c
AB
48242020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4825
4826 * gdbarch.c: Regenerate.
4827 * gdbarch.h: Regenerate.
4828 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4829 (gdbarch_data): Use internal_error for the case where
4830 deprecated_set_gdbarch_data was originally needed.
4831 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4832 and use passed in obstack.
4833 (libunwind_frame_set_descr): Should no longer get back NULL from
4834 gdbarch_data.
4835 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4836 type.
4837 * user-regs.c (user_regs_init): Update parameters, and use passed
4838 in obstack.
4839 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4840 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4841
d8cc8af6
TV
48422020-07-06 Tom de Vries <tdevries@suse.de>
4843
4844 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4845 End-Of-Sequence in lte_is_less_than.
4846 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4847 "gdb: Don't reorder line table entries too much when sorting".
4848
947f7597
TV
48492020-07-06 Tom de Vries <tdevries@suse.de>
4850
4851 PR tui/26205
4852 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4853
1e7c1b22
TV
48542020-07-05 Tom de Vries <tdevries@suse.de>
4855
4856 PR build/26187
4857 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4858 std::uncaught_exceptions instead of deprecated
4859 std::uncaught_exception.
4860
a36158ec
SM
48612020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4862
4863 * macroexp.h (macro_stringify): Return
4864 gdb::unique_xmalloc_ptr<char>.
4865 * macroexp.c (macro_stringify): Likewise.
4866 * macrotab.c (fixup_definition): Update.
4867
14d960c8
SM
48682020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4869
4870 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4871 (lex_one_token): Update.
4872 * macroexp.c (struct macro_buffer) <release>: Return
4873 gdb::unique_xmalloc_ptr<char>.
4874 (macro_stringify): Update.
4875 (macro_expand): Update.
4876 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4877 * macroexp.h (macro_expand_next): Likewise.
4878
211d5b1c
SM
48792020-07-02 Simon Marchi <simon.marchi@efficios.com>
4880
4881 * macroexp.h (macro_lookup_ftype): Remove.
4882 (macro_expand, macro_expand_once, macro_expand_next): Remove
4883 lookup function parameters, add scope parameter.
4884 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4885 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4886 * macroscope.h (standard_macro_lookup): Change parameter type
4887 to macro_scope.
4888 * macroscope.c (standard_macro_lookup): Likewise.
4889 * c-exp.y (lex_one_token): Update.
4890 * macrocmd.c (macro_expand_command): Likewise.
4891 (macro_expand_once_command): Likewise.
4892
b1a35af2
SM
48932020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4894
4895 * inf-loop.c (inferior_event_handler): Remove client_data param.
4896 * inf-loop.h (inferior_event_handler): Likewise.
4897 * infcmd.c (step_1): Adjust.
4898 * infrun.c (proceed): Adjust.
4899 (fetch_inferior_event): Remove client_data param.
4900 (infrun_async_inferior_event_handler): Adjust.
4901 * infrun.h (fetch_inferior_event): Remove `void *` param.
4902 * linux-nat.c (handle_target_event): Adjust.
4903 * record-btrace.c (record_btrace_handle_async_inferior_event):
4904 Adjust.
4905 * record-full.c (record_full_async_inferior_event_handler):
4906 Adjust.
4907 * remote.c (remote_async_inferior_event_handler): Adjust.
4908
1cdf9e33
TT
49092020-07-01 Tom Tromey <tom@tromey.com>
4910
4911 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4912 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4913
32c1e210
TT
49142020-07-01 Tom Tromey <tom@tromey.com>
4915
4916 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4917 tui_gen_win_info.
4918 (tui_win_info::make_window): Merge with
4919 tui_gen_win_info::make_window.
4920 (tui_win_info::make_visible): Move from tui_gen_win_info.
4921 * tui/tui-win.c (tui_win_info::max_width): Move from
4922 tui_gen_win_info.
4923 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4924 type.
4925 <window_factory>: Likewise.
4926 * tui/tui-layout.c (tui_win_info::resize): Move from
4927 tui_gen_win_info.
4928 (make_standard_window): Change return type.
4929 (get_locator_window, tui_get_window_by_name): Likewise.
4930 (tui_layout_window::apply): Remove a cast.
4931 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4932 (struct tui_win_info): Merge with tui_gen_win_info.
4933 (struct tui_gen_win_info): Remove.
4934
a30cb6da
TT
49352020-07-01 Tom Tromey <tom@tromey.com>
4936
4937 * tui/tui-stack.h (struct tui_locator_window): Derive from
4938 tui_win_info.
4939 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4940 <can_box>: New method.
4941
1eb2161f
TT
49422020-07-01 Tom Tromey <tom@tromey.com>
4943
4944 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4945
7134f2eb
TT
49462020-07-01 Tom Tromey <tom@tromey.com>
4947
4948 * tui/tui-regs.c (tui_data_window::display_registers_from)
4949 (tui_data_window::display_registers_from)
4950 (tui_data_window::first_data_item_displayed)
4951 (tui_data_window::delete_data_content_windows): Update.
4952 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4953 Remove.
4954 (tui_data_window::check_register_values): Update.
4955 (tui_data_item_window::rerender): Add parameters. Update.
4956 (tui_data_item_window::refresh_window): Remove.
4957 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4958 virtual.
4959 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4960 tui_gen_win_info.
4961 <refresh_window, max_height, min_height>: Remove.
4962 <rerender>: Add parameters.
4963 <x, y, visible>: New members.
4964 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4965 <m_item_width>: New member.
4966
22b7b041
TT
49672020-07-01 Tom Tromey <tom@tromey.com>
4968
4969 * tui/tui-regs.c (tui_data_window::show_register_group)
4970 (tui_data_window::check_register_values): Update.
4971 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4972 from item_no.
4973
c9753adb
TT
49742020-07-01 Tom Tromey <tom@tromey.com>
4975
4976 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4977 useless "if".
4978
9ab26b4a
TT
49792020-07-01 Tom Tromey <tom@tromey.com>
4980
4981 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4982 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4983
e555083f
TT
49842020-07-01 Tom Tromey <tom@tromey.com>
4985
4986 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4987 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4988 (struct tui_line_or_address): Move from tui-data.h.
4989 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4990 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4991 (tui_cmd_window, tui_source_window_base, tui_source_window)
4992 (tui_disasm_window): Don't declare.
4993 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4994 to tui-winsource.h.
4995 (SINGLE_KEY): Move to tui-stack.c.
4996
7a02bab7
TT
49972020-07-01 Tom Tromey <tom@tromey.com>
4998
4999 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
5000 std::string.
5001 * tui/tui-regs.c (class tab_expansion_file): New.
5002 (tab_expansion_file::write): New method.
5003 (tui_register_format): Change return type. Use
5004 tab_expansion_file.
5005 (tui_get_register, tui_data_window::display_registers_from)
5006 (tui_data_item_window::rerender): Update.
5007 * tui/tui-io.h (tui_expand_tabs): Don't declare.
5008 * tui/tui-io.c (tui_expand_tabs): Remove.
5009
ea68593b
TT
50102020-07-01 Tom Tromey <tom@tromey.com>
5011
5012 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
5013
a8caed5d
FS
50142020-07-01 Fangrui Song <maskray@google.com>
5015
5016 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5017
9cdf9820
AKS
50182020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5019
5020 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5021 forms for DW_AT_associated and DW_AT_allocated attributes,
5022 which is already checked in function attr_to_dynamic_prop.
5023
a1520ad8
TT
50242020-06-30 Tom Tromey <tromey@adacore.com>
5025
5026 * dwarf2/read.c (quirk_rust_enum): Correctly call
5027 alloc_rust_variant for default-less enum.
5028
5ac58899
TT
50292020-06-30 Tom Tromey <tromey@adacore.com>
5030
5031 PR build/26183:
5032 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5033 gdb::to_string.
5034
19b187a9
SM
50352020-06-29 Simon Marchi <simon.marchi@efficios.com>
5036
5037 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5038 * gdbarch.h: Re-generate.
5039
cd4c4c07
TT
50402020-06-28 Tom Tromey <tom@tromey.com>
5041
5042 * command.h (cmd_types): Remove.
5043 (cmd_type): Don't declare.
5044 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5045 typedef.
5046 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5047 * cli/cli-decode.c (cmd_type): Remove.
5048
05779d57
PA
50492020-06-27 Pedro Alves <palves@redhat.com>
5050
5051 * fork-child.c (prefork_hook): Adjust.
5052 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5053 Delete.
5054 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5055 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5056 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5057 Remove declarations.
5058 (struct inferior) <set_tty, tty>: New methods.
5059 (struct inferior) <terminal>: Rename to ...
5060 (struct inferior) <m_terminal>: ... this and make private.
5061 * main.c (captured_main_1): Adjust.
5062 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5063 (mi_cmd_inferior_tty_show): Adjust.
5064 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5065 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5066
1776e3e5
NA
50672020-06-26 Nick Alcock <nick.alcock@oracle.com>
5068
5069 * configure.ac: Add --enable-libctf: handle --disable-static
5070 properly.
5071 * acinclude.m4: sinclude ../config/enable.m4.
5072 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5073 (LIBCTF): Substitute in.
5074 (CTF_DEPS): New, likewise.
5075 (CLIBS): libctf needs symbols from libbfd: move earlier.
5076 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5077 flags.
5078 * ctfread.c: Surround in ENABLE_LIBCTF.
5079 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5080 * configure: Regenerate.
5081 * config.in: Likewise.
5082
58373b80
SM
50832020-06-25 Simon Marchi <simon.marchi@efficios.com>
5084
5085 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5086
277474ee
SM
50872020-06-25 Simon Marchi <simon.marchi@efficios.com>
5088
5089 * inferior.h (struct inferior) <terminal>: Change type to
5090 gdb::unique_xmalloc_ptr<char>.
5091 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5092 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5093 field, adjust to unique pointer.
5094 (get_inferior_io_terminal): Adjust to unique pointer.
5095
6d74da72
AB
50962020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5097
5098 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5099 registers, not just the known core set of registers.
5100
2e52d038
AB
51012020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5102
5103 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5104 fflags, frm, and fcsr registers.
5105 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5106 restore groups.
5107 (riscv_tdesc_unknown_reg): New function.
5108 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5109 tdesc_use_registers.
5110 * riscv-tdep.h (struct gdbarch_tdep): Add
5111 unknown_csrs_first_regnum, unknown_csrs_count,
5112 duplicate_fflags_regnum, duplicate_frm_regnum, and
5113 duplicate_fcsr_regnum fields.
5114
be64fd07
AB
51152020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5116
5117 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5118 callback, use the callback (when not null) to help number unknown
5119 registers.
5120 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5121 (tdesc_use_registers): Add extra parameter to declaration.
5122
3b9fce96
AB
51232020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5124
5125 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5126 in the file.
5127 (class riscv_pending_register_alias): Likewise.
5128 (riscv_register_feature::register_info): Change 'required_p' field
5129 to 'required', and change its type. Add 'check' member function.
5130 (riscv_register_feature::register_info::check): Define new member
5131 function.
5132 (riscv_xreg_feature): Change initialisation of 'required' field.
5133 (riscv_freg_feature): Likewise.
5134 (riscv_virtual_feature): Likewise.
5135 (riscv_csr_feature): Likewise.
5136 (riscv_check_tdesc_feature): Take extra parameter, the csr
5137 tdesc_feature, rewrite the function to use the new
5138 riscv_register_feature::register_info::check function.
5139 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5140
865bad26
AB
51412020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5142
5143 * features/Makefile: Remove all references to the deleted files
5144 below.
5145 * features/riscv/32bit-csr.c: Deleted.
5146 * features/riscv/32bit-csr.xml: Deleted.
5147 * features/riscv/64bit-csr.c: Deleted.
5148 * features/riscv/64bit-csr.xml: Deleted.
5149 * features/riscv/rebuild-csr-xml.sh: Deleted.
5150
ed69cbc8
AB
51512020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5152
5153 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5154 whitespace error for declaration of names member variable.
5155 (struct riscv_register_feature): Add new prefer_first_name member
5156 variable, and fix whitespace error in declaration of registers.
5157 (riscv_xreg_feature): Initialize prefer_first_name field.
5158 (riscv_freg_feature): Likewise.
5159 (riscv_virtual_feature): Likewise.
5160 (riscv_csr_feature): Likewise.
5161 (riscv_register_name): Expand on comments. Remove register name
5162 modifications for CSR and virtual registers.
5163
4445e8f5
AB
51642020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5165
5166 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5167 errors.
5168
767a879e
AB
51692020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5170
5171 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5172 riscv-opc.h.
5173 (class riscv_pending_register_alias): New class.
5174 (riscv_check_tdesc_feature): Take vector of pending aliases and
5175 populate it as appropriate.
5176 (riscv_setup_register_aliases): Delete.
5177 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5178 to riscv_check_tdesc_feature in all cases. Use the vector to
5179 create the register aliases.
5180
bb6e55f3
RO
51812020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5182
5183 * sol2-tdep.c (sol2_static_transform_name): Remove.
5184 (sol2_init_abi): Don't register it.
5185 * gdbarch.sh (static_transform_name): Remove.
5186 * gdbarch.c, gdbarch.h: Regenerate.
5187
5188 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5189 gdbarch_static_transform_name.
5190 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5191 * stabsread.c (define_symbol) <'X'>: Remove.
5192 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5193 handling.
5194 <'V'>: Likewise.
5195 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5196 <'S'>: Remove call to gdbarch_static_transform_name.
5197
c6d36836
RO
51982020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5199
5200 * procfs.c (procfs_pre_trace): New function.
5201 (procfs_target::create_inferior): Pass it to fork_inferior.
5202
a7e6196b
RO
52032020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5204
5205 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5206 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5207 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5208 sol2-tdep.o, sparc-sol2-tdep.o.
5209 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5210 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5211 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5212 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5213
d412e696
RO
52142020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5215
5216 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5217 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5218 Call sol2_init_abi.
5219 Remove calls to set_gdbarch_skip_solib_resolver,
5220 set_gdbarch_core_pid_to_str.
5221 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5222 (i386_sol2_static_transform_name): Remove.
5223 (i386_sol2_init_abi): Call sol2_init_abi.
5224 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5225 set_gdbarch_static_transform_name,
5226 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5227 Use sol2_sigtramp_p.
5228 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5229 (sol2_sigtramp_p): New function.
5230 (sol2_static_transform_name): New function.
5231 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5232 (sol2_init_abi): New function.
5233 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5234 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5235 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5236 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5237 (sparc_sol2_static_transform_name): Remove.
5238 (sparc32_sol2_init_abi): Call sol2_init_abi.
5239 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5240 set_gdbarch_static_transform_name,
5241 set_gdbarch_skip_solib_resolver,
5242 set_gdbarch_core_pid_to_str.
5243 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5244 (sparc_sol2_static_transform_name): Remove
5245 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5246 call sol2_sigtramp_p.
5247 (sparc64_sol2_init_abi): Call sol2_init_abi.
5248 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5249 set_gdbarch_static_transform_name,
5250 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5251
a8654e7d
PW
52522020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5253
5254 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5255 * exec.c (validate_exec_file): If from_tty, set both
5256 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5257 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5258 and from_tty, unconditionally ask a confirmation.
5259
caa7fd04
AB
52602020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5261
5262 * target-descriptions.c (tdesc_architecture_name): Protect against
5263 NULL pointer dereference.
5264 (maint_print_xml_tdesc_cmd): New function.
5265 (_initialize_target_descriptions): Register new 'maint print
5266 xml-tdesc' command and give it the filename completer.
5267 * NEWS: Mention new 'maint print xml-tdesc' command.
5268
fbf42f4e
AB
52692020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5270
5271 * target-descriptions.c (class tdesc_compatible_info): New class.
5272 (struct target_desc): Change type of compatible vector.
5273 (tdesc_compatible_p): Update for change in type of
5274 target_desc::compatible.
5275 (tdesc_compatible_info_list): New function.
5276 (tdesc_compatible_info_arch_name): New function.
5277 (tdesc_add_compatible): Update for change in type of
5278 target_desc::compatible.
5279 (print_c_tdesc::visit_pre): Likewise.
5280
20821f4e
AB
52812020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5282
5283 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5284 whitespace to underscore.
5285 (maint_print_c_tdesc_cmd): Use fake filename for target
5286 descriptions that came from the target.
5287 (_initialize_target_descriptions): Add filename command completion
5288 for 'maint print c-tdesc'.
5289
1fb5ee62
SM
52902020-06-23 Simon Marchi <simon.marchi@efficios.com>
5291
5292 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5293 lines.
5294
fc3ecb3e
SM
52952020-06-23 Simon Marchi <simon.marchi@efficios.com>
5296
5297 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5298 lines.
5299 (dwarf2_find_location_expression): Likewise.
5300 (call_site_parameter_matches): Likewise.
5301 (dwarf2_compile_expr_to_ax): Likewise.
5302 (disassemble_dwarf_expression): Likewise.
5303 (loclist_describe_location): Likewise.
5304
236ef034
PA
53052020-06-23 Pedro Alves <palves@redhat.com>
5306
5307 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5308 progspace-and-thread.h. Include scoped-mock-context.h instead.
5309 (register_to_value_test): Use scoped_mock_context.
5310 * regcache.c: Include "scoped-mock-context.h".
5311 (cooked_read_test): Don't error out if a target is already pushed.
5312 Use scoped_mock_context. Adjust.
5313 * scoped-mock-context.h: New file.
5314
39e7ecca
AB
53152020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5316
5317 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5318 initializer.
5319 (ada_language::is_string_type_p): New member function.
5320 * c-lang.c (c_language_data): Delete la_is_string_type_p
5321 initializer.
5322 (cplus_language_data): Likewise.
5323 (asm_language_data): Likewise.
5324 (minimal_language_data): Likewise.
5325 * d-lang.c (d_language_data): Likewise.
5326 * f-lang.c (f_is_string_type_p): Delete function, implementation
5327 moved to f_language::is_string_type_p.
5328 (f_language_data): Delete la_is_string_type_p initializer.
5329 (f_language::is_string_type_p): New member function,
5330 implementation from f_is_string_type_p.
5331 * go-lang.c (go_is_string_type_p): Delete function, implementation
5332 moved to go_language::is_string_type_p.
5333 (go_language_data): Delete la_is_string_type_p initializer.
5334 (go_language::is_string_type_p): New member function,
5335 implementation from go_is_string_type_p.
5336 * language.c (language_defn::is_string_type_p): Define new member
5337 function.
5338 (default_is_string_type_p): Make static, add comment copied from
5339 header file.
5340 (unknown_language_data): Delete la_is_string_type_p initializer.
5341 (unknown_language::is_string_type_p): New member function.
5342 (auto_language_data): Delete la_is_string_type_p initializer.
5343 (auto_language::is_string_type_p): New member function.
5344 * language.h (language_data): Delete la_is_string_type_p field.
5345 (language_defn::is_string_type_p): Declare new function.
5346 (default_is_string_type_p): Delete desclaration, move comment to
5347 definition.
5348 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5349 moved to m2_language::is_string_type_p.
5350 (m2_language_data): Delete la_is_string_type_p initializer.
5351 (m2_language::is_string_type_p): New member function,
5352 implementation from m2_is_string_type_p.
5353 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5354 initializer.
5355 * opencl-lang.c (opencl_language_data): Likewise.
5356 * p-lang.c (pascal_is_string_type_p): Delete function,
5357 implementation moved to pascal_language::is_string_type_p.
5358 (pascal_language_data): Delete la_is_string_type_p initializer.
5359 (pascal_language::is_string_type_p): New member function,
5360 implementation from pascal_is_string_type_p.
5361 * rust-lang.c (rust_is_string_type_p): Delete function,
5362 implementation moved to rust_language::is_string_type_p.
5363 (rust_language_data): Delete la_is_string_type_p initializer.
5364 (rust_language::is_string_type_p): New member function,
5365 implementation from rust_is_string_type_p.
5366 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5367 is_string_type_p.
5368
4ffc13fb
AB
53692020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5370
5371 * ada-lang.c (ada_language_data): Delete la_print_typedef
5372 initializer.
5373 (ada_language::print_typedef): New member function.
5374 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5375 (cplus_language_data): Likewise.
5376 (asm_language_data): Likewise.
5377 (minimal_language_data): Likewise.
5378 * d-lang.c (d_language_data): Likewise.
5379 * f-lang.c (f_language_data): Likewise.
5380 (f_language::print_typedef): New member function.
5381 * go-lang.c (go_language_data): Delete la_print_typedef
5382 initializer.
5383 * language.c (language_defn::print_typedef): Define member
5384 function.
5385 (unknown_language_data): Delete la_print_typedef initializer.
5386 (unknown_language::print_typedef): New member function.
5387 (auto_language_data): Delete la_print_typedef initializer.
5388 (auto_language::print_typedef): New member function.
5389 * language.h (language_data): Delete la_print_typedef field.
5390 (language_defn::print_typedef): Declare new member function.
5391 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5392 (default_print_typedef): Delete declaration.
5393 * m2-lang.c (m2_language_data): Delete la_print_typedef
5394 initializer.
5395 (m2_language::print_typedef): New member function.
5396 * objc-lang.c (objc_language_data): Delete la_print_typedef
5397 initializer.
5398 * opencl-lang.c (opencl_language_data): Likewise.
5399 * p-lang.c (pascal_language_data): Likewise.
5400 (pascal_language::print_typedef): New member function.
5401 * rust-lang.c (rust_print_typedef): Delete function,
5402 implementation moved to rust_language::print_typedef.
5403 (rust_language): Delete la_print_typedef initializer.
5404 (rust_language::print_typedef): New member function,
5405 implementation from rust_print_typedef.
5406 * typeprint.c (default_print_typedef): Delete.
5407
d711ee67
AB
54082020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5409
5410 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5411 (ada_language::printstr): New member function.
5412 * c-lang.c (c_language_data): Delete la_printstr initializer.
5413 (cplus_language_data): Likewise.
5414 (asm_language_data): Likewise.
5415 (minimal_language_data): Likewise.
5416 * d-lang.c (d_language_data): Likewise.
5417 * f-lang.c (f_printstr): Rename to f_language::printstr.
5418 (f_language_data): Delete la_printstr initializer.
5419 (f_language::printstr): New member function, implementation from
5420 f_printstr.
5421 * go-lang.c (go_language_data): Delete la_printstr initializer.
5422 * language.c (language_defn::printstr): Define new member
5423 function.
5424 (unk_lang_printstr): Delete.
5425 (unknown_language_data): Delete la_printstr initializer.
5426 (unknown_language::printstr): New member function.
5427 (auto_language_data): Delete la_printstr initializer.
5428 (auto_language::printstr): New member function.
5429 * language.h (language_data): Delete la_printstr field.
5430 (language_defn::printstr): Declare new member function.
5431 (LA_PRINT_STRING): Update call to printstr.
5432 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5433 (m2_language_data): Delete la_printstr initializer.
5434 (m2_language::printstr): New member function, implementation from
5435 m2_printstr.
5436 * objc-lang.c (objc_language_data): Delete la_printstr
5437 initializer.
5438 * opencl-lang.c (opencl_language_data): Likewise.
5439 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5440 (pascal_language_data): Delete la_printstr initializer.
5441 (pascal_language::printstr): New member function, implementation
5442 from pascal_printstr.
5443 * p-lang.h (pascal_printstr): Delete declaration.
5444 * rust-lang.c (rust_printstr): Update header comment.
5445 (rust_language_data): Delete la_printstr initializer.
5446 (rust_language::printstr): New member function.
5447
52b50f2c
AB
54482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5449
5450 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5451 (ada_language::printchar): New member function.
5452 * c-lang.c (c_language_data): Delete la_printchar initializer.
5453 (cplus_language_data): Likewise.
5454 (asm_language_data): Likewise.
5455 (minimal_language_data): Likewise.
5456 * d-lang.c (d_language_data): Likewise.
5457 * f-lang.c (f_printchar): Rename to f_language::printchar.
5458 (f_language_data): Delete la_printchar initializer.
5459 (f_language::printchar): New member function, implementation from
5460 f_printchar.
5461 * go-lang.c (go_language_data): Delete la_printchar initializer.
5462 * language.c (unk_lang_printchar): Delete.
5463 (language_defn::printchar): Define new member function.
5464 (unknown_language_data): Delete la_printchar initializer.
5465 (unknown_language::printchar): New member function.
5466 (auto_language_data): Delete la_printchar initializer.
5467 (auto_language::printchar): New member function.
5468 * language.h (language_data): Delete la_printchar field.
5469 (language_defn::printchar): Declare new member function.
5470 (LA_PRINT_CHAR): Update call to printchar.
5471 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5472 (m2_language::printchar): New member function.
5473 * objc-lang.c (objc_language_data): Delete la_printchar
5474 initializer.
5475 * opencl-lang.c (opencl_language_data): Likewise.
5476 * p-lang.c (pascal_language_data): Delete la_printchar
5477 initializer.
5478 (pascal_language::printchar): New member function.
5479 * rust-lang.c (rust_printchar): Rename to
5480 rust_language::printchar.
5481 (rust_language_data): Delete la_printchar initializer.
5482 (rust_language::printchar): New member function, implementation
5483 from rust_printchar.
5484
ec8cec5b
AB
54852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5486
5487 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5488 (ada_language_data): Delete la_emitchar initializer.
5489 (ada_language::emitchar): New member function, implementation from
5490 emit_char.
5491 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5492 (cplus_language_data): Likewise.
5493 (asm_language_data): Likewise.
5494 (minimal_language_data): Likewise.
5495 * d-lang.c (d_language_data): Likewise.
5496 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5497 (f_language_data): Delete la_emitchar initializer.
5498 (f_language::emitchar): New member function, implementation from
5499 f_emit_char.
5500 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5501 * language.c (unk_lang_emit_char): Delete.
5502 (language_defn::emitchar): New member function definition.
5503 (unknown_language_data): Delete la_emitchar initializer.
5504 (unknown_language::emitchar): New member function.
5505 (auto_language_data): Delete la_emitchar initializer.
5506 (auto_language::emitchar): New member function.
5507 * language.h (language_data): Delete la_emitchar field.
5508 (language_defn::emitchar): New member field declaration.
5509 (LA_EMIT_CHAR): Update call to emitchar.
5510 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5511 (m2_language_data): Delete la_emitchar initializer.
5512 (m2_language::emitchar): New member function, implementation from
5513 m2_emit_char.
5514 * objc-lang.c (objc_language_data): Delete la_emitchar
5515 initializer.
5516 * opencl-lang.c (opencl_language_data): Likewise.
5517 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5518 (pascal_language_data): Delete la_emitchar initializer.
5519 (pascal_language::emitchar): New member function, implementation
5520 from pascal_emit_char.
5521 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5522 (rust_language_data): Delete la_emitchar initializer.
5523 (rust_language::emitchar): New member function, implementation
5524 from rust_emitchar.
5525
1bf9c363
AB
55262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5527
5528 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5529 (ada_language_data): Delete la_post_parser initializer.
5530 (ada_language::post_parser): New member function.
5531 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5532 (cplus_language_data): Likewise.
5533 (asm_language_data): Likewise.
5534 (minimal_language_data): Likewise.
5535 * d-lang.c (d_language_data): Likewise.
5536 * f-lang.c (f_language_data): Likewise.
5537 * go-lang.c (go_language_data): Likewise.
5538 * language.c (unknown_language_data): Likewise.
5539 (auto_language_data): Likewise.
5540 * language.h (language_data): Delete la_post_parser field.
5541 (language_defn::post_parser): New member function.
5542 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5543 * objc-lang.c (objc_language_data): Likewise.
5544 * opencl-lang.c (opencl_language_data): Likewise.
5545 * p-lang.c (pascal_language_data): Likewise.
5546 * parse.c (parse_exp_in_context): Update call to post_parser.
5547 (null_post_parser): Delete definition.
5548 * parser-defs.h (null_post_parser): Delete declaration.
5549 * rust-lang.c (rust_language_data): Delete la_post_parser
5550 initializer.
5551
87afa652
AB
55522020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5553
5554 * ada-lang.c (parse): Rename to ada_language::parser.
5555 (ada_language_data): Delete la_parser initializer.
5556 (ada_language::parser): New member function, implementation from
5557 parse.
5558 * c-lang.c (c_language_data): Delete la_parser initializer.
5559 (cplus_language_data): Likewise.
5560 (asm_language_data): Likewise.
5561 (minimal_language_data): Likewise.
5562 * d-lang.c (d_language_data): Likewise.
5563 (d_language::parser): New member function.
5564 * f-lang.c (f_language_data): Delete la_parser initializer.
5565 (f_language::parser): New member function.
5566 * go-lang.c (go_language_data): Delete la_parser initializer.
5567 (go_language::parser): New member function.
5568 * language.c (unk_lang_parser): Delete.
5569 (language_defn::parser): Define new member function.
5570 (unknown_language_data): Delete la_parser initializer.
5571 (unknown_language::parser): New member function.
5572 (auto_language_data): Delete la_parser initializer.
5573 (auto_language::parser): New member function.
5574 * language.h (language_data): Delete la_parser field.
5575 (language_defn::parser): Declare new member function.
5576 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5577 (m2_language::parser): New member function.
5578 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5579 * opencl-lang.c (opencl_language_data): Likewise.
5580 * p-lang.c (pascal_language_data): Likewise.
5581 (pascal_language::parser): New member function.
5582 * parse.c (parse_exp_in_context): Update call to parser.
5583 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5584 (rust_language::parser): New member function.
5585
37825800
AB
55862020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5587
5588 * top.c (print_gdb_configuration): Print --with-python-libdir
5589 configuration value.
5590
5b860c93
PW
55912020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5592
5593 * NEWS: Mention change to the alias command.
5594
cf00cd6f
PW
55952020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5596
5597 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5598 (alias_command_completer)
5599 (make_alias_options_def_group): New functions.
5600 (alias_opts, alias_option_defs): New struct and array.
5601 (alias_usage_error): Update usage.
5602 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5603 Use option framework.
5604 (_initialize_cli_cmds): Update alias command help.
5605 Update aliases command help.
5606 (show_user):
5607 Add NULL for new default_args lookup_cmd argument.
5608 (valid_command_p): Rename to validate_aliased_command.
5609 Add NULL for new default_args lookup_cmd argument. Verify that the
5610 aliased_command has no default args.
5611 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5612 (lookup_cmd_1, lookup_cmd): New argument default_args.
5613 (add_alias_cmd):
5614 Add NULL for new default_args lookup_cmd argument.
5615 (print_help_for_command): Show default args under the layout
5616 alias some_alias = some_aliased_cmd some_alias_default_arg.
5617 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5618 xfree default_args in destructor.
5619 * cli/cli-script.c (process_next_line, do_define_command):
5620 Add NULL for new default_args lookup_cmd argument.
5621 * command.h: Declare new default_args argument in lookup_cmd
5622 and lookup_cmd_1.
5623 * completer.c (complete_line_internal_1):
5624 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5625 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5626 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5627 Likewise.
5628 * infcmd.c (_initialize_infcmd): Likewise.
5629 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5630 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5631 * python/py-param.c (add_setshow_generic): Likewise.
5632 * remote.c (_initialize_remote): Likewise.
5633 * top.c (execute_command): Prepend default_args if command has some.
5634 (set_verbose):
5635 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5636 * tracepoint.c (validate_actionline, encode_actions_1):
5637 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5638
bd920864
TBA
56392020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5640
5641 * jit.c (jit_read_descriptor): Use bool as the return type.
5642 (jit_breakpoint_re_set_internal): Use bool as the return type.
5643 Invert the return value logic; return true if the jit breakpoint
5644 has been successfully initialized.
5645 (jit_inferior_init): Update the call to
5646 jit_breakpoint_re_set_internal.
5647
f8098322
PA
56482020-06-22 Pedro Alves <palves@redhat.com>
5649
5650 PR gdb/25939
5651 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5652 Use the current inferior instead. Don't return
5653 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5654 wait again.
5655 * sol-thread.c (sol_thread_target::wait): Don't reference
5656 inferior_ptid.
5657 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5658 (sol_update_thread_list_callback): Use the current inferior's pid
5659 instead of inferior_ptid.
5660
196535a6
RO
56612020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5662
5663 * procfs.c: Cleanup many comments.
5664
5665 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5666 (AFTER_WATCHFLAG): Replace by value.
5667
5668 (MAIN_PROC_NAME_FORMAT): Inline ...
5669 (create_procinfo): ... here.
5670
5671 (procfs_debug_inferior): Remove SYS_exec handling.
5672 (syscall_is_exec): Likewise.
5673 (procfs_set_exec_trap): Likewise.
5674
5675 (syscall_is_lwp_exit): Inline in callers.
5676 (syscall_is_exit): Likewise.
5677 (syscall_is_exec): Likewise.
5678 (syscall_is_lwp_create): Likewise.
5679
5680 (invalidate_cache): Remove #if 0 code.
5681
5682 (make_signal_thread_runnable): Remove.
5683 (procfs_target::resume): Remove #if 0 code.
5684
cf6f3e86
RO
56852020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5686
5687 PR gdb/25939
5688 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5689 call ...
5690 (procfs_target::create_inferior): ... here.
5691
48e9cc84
PW
56922020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5693
5694 * exec.c (validate_exec_file): Ensure the build-id is up to
5695 date by calling reopen_exec_file (that checks file timestamp
5696 to decide to re-read the file).
5697
3922b302
PA
56982020-06-18 Pedro Alves <palves@redhat.com>
5699
5700 PR gdb/25412
5701 * gdbthread.h (delete_thread, delete_thread_silent)
5702 (find_thread_ptid): Update comments.
5703 * thread.c (current_thread_): New global.
5704 (is_current_thread): Move higher, and reimplement.
5705 (inferior_thread): Reimplement.
5706 (set_thread_exited): Use bool. Add assertions.
5707 (add_thread_silent): Simplify thread-reuse handling by always
5708 calling delete_thread.
5709 (delete_thread): Remove intro comment.
5710 (find_thread_ptid): Skip exited threads.
5711 (switch_to_thread_no_regs): Write to current_thread_.
5712 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5713 INFERIOR_PTID. Clear current_thread_.
5714
6dbdab44
PA
57152020-06-18 Pedro Alves <palves@redhat.com>
5716
5717 * aix-thread.c (pd_update): Use switch_to_thread.
5718
2da4b788
PA
57192020-06-18 Pedro Alves <palves@redhat.com>
5720
5721 * ravenscar-thread.c (ravenscar_thread_target): Update.
5722 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5723 (ravenscar_thread_target::add_active_thread): ... this. Don't
5724 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5725 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5726
50838d1b
PA
57272020-06-18 Pedro Alves <palves@redhat.com>
5728
5729 * nat/windows-nat.c (current_windows_thread): Remove.
5730 * nat/windows-nat.h (current_windows_thread): Remove.
5731 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5732 Adjust.
5733 (display_selectors): Adjust to fetch the current
5734 windows_thread_info based on inferior_ptid.
5735 (fake_create_process): No longer write to current_windows_thread.
5736 (windows_nat_target::get_windows_debug_event):
5737 Don't set inferior_ptid or current_windows_thread.
5738 (windows_nat_target::wait): Adjust to not rely on
5739 current_windows_thread.
5740 (do_initial_windows_stuff): Now a method of windows_nat_target.
5741 Switch to the last_ptid thread.
5742 (windows_nat_target::attach): Adjust.
5743 (windows_nat_target::detach): Use switch_to_no_thread instead of
5744 writing to inferior_ptid directly.
5745 (windows_nat_target::create_inferior): Adjust.
5746
31ce04e9
PA
57472020-06-18 Pedro Alves <palves@redhat.com>
5748
5749 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5750
1ee1a363
PA
57512020-06-18 Pedro Alves <palves@redhat.com>
5752
5753 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5754 after creating it, instead of writing to inferior_ptid. Don't
5755 write to inferior_ptid.
5756
6d350754
PA
57572020-06-18 Pedro Alves <palves@redhat.com>
5758
5759 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5760
5d971d48
PA
57612020-06-18 Pedro Alves <palves@redhat.com>
5762
5763 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5764 it, instead of writing to inferior_ptid.
5765
86e57d1b
PA
57662020-06-18 Pedro Alves <palves@redhat.com>
5767
5768 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5769 to inferior_ptid.
5770
f2e1c129
PA
57712020-06-18 Pedro Alves <palves@redhat.com>
5772
5773 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5774 instead of writing to inferior_ptid directly.
5775
60db1b85
PA
57762020-06-18 Pedro Alves <palves@redhat.com>
5777
5778 * corelow.c (core_target::close): Use switch_to_no_thread instead
5779 of writing to inferior_ptid directly.
5780 (add_to_thread_list, core_target_open): Use switch_to_thread
5781 instead of writing to inferior_ptid directly.
5782
fe7d6a8d
PA
57832020-06-18 Pedro Alves <palves@redhat.com>
5784
5785 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5786 inferior_ptid.
5787 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5788 inferior_ptid.
5789 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5790 inferior_ptid directly.
5791 (darwin_nat_target::init_thread_list): Switch to thread, instead
5792 of writing to inferior_ptid.
5793 (darwin_nat_target::attach): Don't write to inferior_ptid.
5794 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5795
975f8708
PA
57962020-06-18 Pedro Alves <palves@redhat.com>
5797
5798 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5799 thread.
5800 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5801 Instead use switch_to_thread.
5802 (gnu_nat_target::detach): Use switch_to_no_thread
5803 instead of writing to inferior_ptid directly. Used passed-in
5804 inferior instead of looking up the inferior by pid.
5805
1a204730
PA
58062020-06-18 Pedro Alves <palves@redhat.com>
5807
5808 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5809 inferior_ptid.
5810
ebe84f23
PA
58112020-06-18 Pedro Alves <palves@redhat.com>
5812
5813 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5814 inferior_ptid.
5815 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5816 thread.
5817 (nto_procfs_target::detach): Avoid referencing
5818 inferior_ptid. Use switch_to_no_thread instead of writing to
5819 inferior_ptid directly.
5820 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5821 instead of writing to inferior_ptid directly.
5822 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5823 to thread.
5824
191f02e5
PA
58252020-06-18 Pedro Alves <palves@redhat.com>
5826
5827 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5828 after creating it, instead of writing to inferior_ptid.
5829 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5830 to inferior_ptid directly.
5831 (gdbsim_target::wait): Don't write to inferior_ptid.
5832
0ac55310
PA
58332020-06-18 Pedro Alves <palves@redhat.com>
5834
5835 * remote.c (remote_target::remote_notice_new_inferior): Use
5836 switch_to_thread instead of writing to inferior_ptid directly.
5837 (remote_target::add_current_inferior_and_thread): Use
5838 switch_to_no_thread instead of writing to inferior_ptid directly.
5839 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5840 and switch_to_thread instead of using set_current_inferior or
5841 writing to inferior_ptid directly.
5842
5233f39b
PA
58432020-06-18 Pedro Alves <palves@redhat.com>
5844
5845 * tracectf.c (ctf_target_open): Switch to added thread instead of
5846 writing to inferior_ptid directly.
5847 (ctf_target::close): Use switch_to_no_thread instead of writing to
5848 inferior_ptid directly.
5849
087e161b
PA
58502020-06-18 Pedro Alves <palves@redhat.com>
5851
5852 * tracefile-tfile.c (tfile_target_open): Don't write to
5853 inferior_ptid directly, instead switch to added thread.
5854 (tfile_target::close): Use switch_to_no_thread instead of writing
5855 to inferior_ptid directly.
5856
7fb43e53
PA
58572020-06-18 Pedro Alves <palves@redhat.com>
5858
5859 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5860 (procfs_target::detach): Use switch_to_no_thread
5861 instead of writing to inferior_ptid directly.
5862 (do_attach): Change return type to void. Switch to the added
5863 thread.
5864 (procfs_target::create_inferior): Switch to the added thread.
5865 (procfs_do_thread_registers): Don't write to inferior_ptid.
5866
18493a00
PA
58672020-06-18 Pedro Alves <palves@redhat.com>
5868
5869 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5870 of writing to inferior_ptid.
5871 (scoped_restore_exited_inferior): Delete.
5872 (handle_vfork_child_exec_or_exit): Simplify using
5873 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5874 instead of writing to inferior_ptid.
5875 (THREAD_STOPPED_BY): Delete.
5876 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5877 (thread_stopped_by_hw_breakpoint): Delete.
5878 (save_waitstatus): Use
5879 scoped_restore_current_thread+switch_to_thread, and call
5880 target_stopped_by_watchpoint instead of
5881 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5882 instead of thread_stopped_by_sw_breakpoint, and
5883 target_stopped_by_hw_breakpoint instead of
5884 thread_stopped_by_hw_breakpoint.
5885 (handle_inferior_event)
5886 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5887 inferior_ptid directly, nor
5888 set_current_inferior/set_current_program_space. Use
5889 switch_to_thread / switch_to_inferior_no_thread instead.
5890
a0776b13
PA
58912020-06-18 Pedro Alves <palves@redhat.com>
5892
5893 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5894 instead of writing to inferior_ptid.
5895
6155c136
PA
58962020-06-18 Pedro Alves <palves@redhat.com>
5897
5898 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5899 added thread.
5900 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5901 to the added thread.
5902 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5903 instead of writing to inferior_ptid.
5904
c5316fc6
PA
59052020-06-18 Pedro Alves <palves@redhat.com>
5906
5907 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5908 (register_to_value_test): Mock a program_space too. Heap-allocate
5909 the address space. Don't write to inferior_ptid. Use
5910 switch_to_thread instead.
5911
8df01799
PA
59122020-06-18 Pedro Alves <palves@redhat.com>
5913
5914 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5915 Delete.
5916 (find_signalled_thread()): New, factored out from
5917 linux_make_corefile_notes and adjusted to handle exited threads.
5918 (linux_make_corefile_notes): Adjust to use the new
5919 find_signalled_thread.
5920
41792d68
PA
59212020-06-18 Pedro Alves <palves@redhat.com>
5922
5923 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5924 of saving/restoring inferior_ptid.
5925
612f258a
TT
59262020-06-17 Tom Tromey <tom@tromey.com>
5927
5928 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5929 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5930 declare.
5931 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5932
efb763a5
SM
59332020-06-15 Simon Marchi <simon.marchi@efficios.com>
5934
5935 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5936 of partial symtabs.
5937
2951f6c0
SM
59382020-06-17 Simon Marchi <simon.marchi@efficios.com>
5939
5940 * regformats/reg-arm.dat: Remove.
5941 * regformats/reg-bfin.dat: Remove.
5942 * regformats/reg-cris.dat: Remove.
5943 * regformats/reg-crisv32.dat: Remove.
5944 * regformats/reg-m32r.dat: Remove.
5945 * regformats/reg-tilegx.dat: Remove.
5946 * regformats/reg-tilegx32.dat: Remove.
5947
7d458ea5
SM
59482020-06-17 Simon Marchi <simon.marchi@efficios.com>
5949
5950 * features/Makefile (WHICH): Remove arm files.
5951 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5952 * regformats/arm/arm-with-neon.dat: Remove.
5953 * regformats/arm/arm-with-vfpv2.dat: Remove.
5954 * regformats/arm/arm-with-vfpv3.dat: Remove.
5955
3af96c0d
SM
59562020-06-17 Simon Marchi <simon.marchi@efficios.com>
5957
5958 * features/Makefile (XMLTOC): Remove rx.xml.
5959
b25e22fd
PA
59602020-06-17 Pedro Alves <palves@redhat.com>
5961
5962 * gdbthread.h (thread_control_state) <trap_expected> Update
5963 comments.
5964
a78a19b1
AB
59652020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5966
5967 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5968 ada_language::lookup_symbol_nonlocal.
5969 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5970 (ada_language::lookup_symbol_nonlocal): New member function,
5971 implementation from ada_lookup_symbol_nonlocal.
5972 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5973 initializer.
5974 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5975 initializer.
5976 (cplus_language::lookup_symbol_nonlocal): New member function.
5977 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5978 (minimal_language_data) Likewise.
5979 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5980 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5981 initializer.
5982 (d_language::lookup_symbol_nonlocal): New member function.
5983 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5984 initializer.
5985 (f_language::lookup_symbol_nonlocal): New member function.
5986 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5987 initializer.
5988 * language.c (unknown_language_data): Likewise.
5989 (auto_language_data): Likewise.
5990 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5991 field.
5992 (language_defn::lookup_symbol_nonlocal): New member function.
5993 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5994 initializer.
5995 * objc-lang.c (objc_language_data): Likewise.
5996 * opencl-lang.c (opencl_language_data): Likewise.
5997 * p-lang.c (pascal_language_data): Likewise.
5998 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5999 rust_language::lookup_symbol_nonlocal.
6000 (rust_language_data): Delete la_lookup_symbol_nonlocal
6001 initializer.
6002 (rust_language::lookup_symbol_nonlocal): New member function,
6003 implementation from rust_lookup_symbol_nonlocal.
6004 * symtab.c (lookup_symbol_aux): Update call to
6005 lookup_symbol_nonlocal.
6006 (basic_lookup_symbol_nonlocal): Rename to...
6007 (language_defn::lookup_symbol_nonlocal): ...this, and update
6008 header comment. Remove language_defn parameter, and replace with
6009 uses of `this'.
6010 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
6011
ebe2334e
AB
60122020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6013
6014 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6015 initializer.
6016 (ada_language::value_print_inner): New member function.
6017 * c-lang.c (c_language_data): Delete la_value_print_inner
6018 initializer.
6019 (cplus_language_data): Likewise.
6020 (asm_language_data): Likewise.
6021 (minimal_language_data): Likewise.
6022 * d-lang.c (d_language_data): Likewise.
6023 (d_language::value_print_inner): New member function.
6024 * f-lang.c (f_language_data): Delete la_value_print_inner
6025 initializer.
6026 (f_language::value_print_inner): New member function.
6027 * f-lang.h (f_value_print_innner): Rename to...
6028 (f_value_print_inner): ...this (note spelling of 'inner').
6029 * f-valprint.c (f_value_print_innner): Rename to...
6030 (f_value_print_inner): ...this (note spelling of 'inner').
6031 * go-lang.c (go_language_data): Delete la_value_print_inner
6032 initializer.
6033 (go_language::value_print_inner): New member function.
6034 * language.c (language_defn::value_print_inner): Define new member
6035 function.
6036 (unk_lang_value_print_inner): Delete.
6037 (unknown_language_data): Delete la_value_print_inner initializer.
6038 (unknown_language::value_print_inner): New member function.
6039 (auto_language_data): Delete la_value_print_inner initializer.
6040 (auto_language::value_print_inner): New member function.
6041 * language.h (language_data): Delete la_value_print_inner field.
6042 (language_defn::value_print_inner): Delcare new member function.
6043 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6044 initializer.
6045 (m2_language::value_print_inner): New member function.
6046 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6047 initializer.
6048 * opencl-lang.c (opencl_language_data): Likewise.
6049 * p-lang.c (pascal_language_data): Likewise.
6050 (pascal_language::value_print_inner): New member function.
6051 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6052 initializer.
6053 (rust_language::value_print_inner): New member function.
6054 * valprint.c (do_val_print): Update call to value_print_inner.
6055
a1d1fa3e
AB
60562020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6057
6058 * ada-lang.c (ada_language_data): Delete la_value_print
6059 initializer.
6060 (ada_language::value_print): New member function.
6061 * c-lang.c (c_language_data): Delete la_value_print initializer.
6062 (cplus_language_data): Likewise.
6063 (asm_language_data): Likewise.
6064 (minimal_language_data): Likewise.
6065 * d-lang.c (d_language_data): Likewise.
6066 * f-lang.c (f_language_data): Likewise.
6067 * go-lang.c (go_language_data): Likewise.
6068 * language.c (unk_lang_value_print): Delete.
6069 (language_defn::value_print): Define new member function.
6070 (unknown_language_data): Delete la_value_print initializer.
6071 (unknown_language::value_print): New member function.
6072 (auto_language_data): Delete la_value_print initializer.
6073 (auto_language::value_print): New member function.
6074 * language.h (language_data): Delete la_value_print field.
6075 (language_defn::value_print): Declare new member function.
6076 (LA_VALUE_PRINT): Update call to value_print.
6077 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
6078 * objc-lang.c (objc_language_data): Likewise.
6079 * opencl-lang.c (opencl_language_data): Likewise.
6080 * p-lang.c (pascal_language_data): Likewise.
6081 (pascal_language::value_print): New member function.
6082 * rust-lang.c (rust_language_data): Delete la_value_print
6083 initializer.
6084
f16a9f57
AB
60852020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6086
6087 * ada-lang.c (ada_watch_location_expression): Rename to
6088 ada_language::watch_location_expression.
6089 (ada_language_data): Delete la_watch_location_expression
6090 initializer.
6091 (ada_language::watch_location_expression): New member function,
6092 implementation from ada_watch_location_expression.
6093 * breakpoint.c (watch_command_1): Update call to
6094 watch_location_expression.
6095 * c-lang.c (c_watch_location_expression): Rename to
6096 language_defn::watch_location_expression.
6097 (c_language_data): Delete la_watch_location_expression
6098 initializer.
6099 (cplus_language_data): Likewise.
6100 (asm_language_data): Likewise.
6101 (minimal_language_data): Likewise.
6102 * c-lang.h (c_watch_location_expression): Delete declaration.
6103 * d-lang.c (d_language_data): Delete la_watch_location_expression
6104 initializer.
6105 * f-lang.c (f_language_data): Likewise.
6106 * go-lang.c (go_language_data): Likewise.
6107 * language.c (language_defn::watch_location_expression): Member
6108 function implementation from c_watch_location_expression.
6109 (unknown_language_data): Delete la_watch_location_expression
6110 initializer.
6111 (auto_language_data): Likewise.
6112 * language.h (language_data): Delete la_watch_location_expression
6113 field.
6114 (language_defn::watch_location_expression): Declare new member
6115 function.
6116 * m2-lang.c (m2_language_data): Delete
6117 la_watch_location_expression initializer.
6118 * objc-lang.c (objc_language_data): Likewise.
6119 * opencl-lang.c (opencl_language_data): Likewise.
6120 * p-lang.c (pascal_language_data): Likewise.
6121 * rust-lang.c (rust_watch_location_expression): Rename to
6122 rust_language::watch_location_expression.
6123 (rust_language_data): Delete la_watch_location_expression
6124 initializer.
6125 (rust_language::watch_location_expression): New member function,
6126 implementation from rust_watch_location_expression.
6127
7e56227d
AB
61282020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6129
6130 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6131 ada_language::collect_symbol_completion_matches.
6132 (ada_language_data): Delete la_collect_symbol_completion_matches
6133 initializer.
6134 (ada_language::collect_symbol_completion_matches): New member
6135 function, implementation from
6136 ada_collect_symbol_completion_matches.
6137 * c-lang.c (c_language_data): Delete
6138 la_collect_symbol_completion_matches initializer.
6139 (cplus_language_data): Likewise.
6140 (asm_language_data): Likewise.
6141 (minimal_language_data): Likewise.
6142 * d-lang.c (d_language_data): Likewise.
6143 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6144 f_language::collect_symbol_completion_matches.
6145 (f_language_data): Delete la_collect_symbol_completion_matches
6146 initializer.
6147 (f_language::collect_symbol_completion_matches) New member
6148 function, implementation from f_collect_symbol_completion_matches.
6149 * go-lang.c (go_language_data): Delete
6150 la_collect_symbol_completion_matches initializer.
6151 * language.c (unknown_language_data): Likewise.
6152 (auto_language_data): Likewise.
6153 * language.h (language_data): Delete
6154 la_collect_symbol_completion_matches field.
6155 (language_defn::collect_symbol_completion_matches): New member
6156 function.
6157 * m2-lang.c (m2_language_data): Delete
6158 la_collect_symbol_completion_matches initializer.
6159 * objc-lang.c (objc_language_data): Likewise.
6160 * opencl-lang.c (opencl_language_data): Likewise.
6161 * p-lang.c (pascal_language_data): Likewise.
6162 * rust-lang.c (rust_language_data): Likewise.
6163 * symtab.c (default_collect_symbol_completion_matches): Delete.
6164 (collect_symbol_completion_matches): Update call to
6165 collect_symbol_completion_matches.
6166 (collect_symbol_completion_matches_type): Likewise.
6167 * symtab.h (default_collect_symbol_completion_matches): Delete
6168 declaration.
6169
53fc67f8
AB
61702020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6171
6172 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6173 (ada_language_data): Delete la_word_break_characters initializer.
6174 (ada_language::word_break_characters): New member function.
6175 * c-lang.c (c_language_data): Delete la_word_break_characters
6176 initializer.
6177 (cplus_language_data): Likewise.
6178 (asm_language_data): Likewise.
6179 (minimal_language_data): Likewise.
6180 * completer.c: Update global comment.
6181 (advance_to_expression_complete_word_point): Update call to
6182 word_break_characters.
6183 (complete_files_symbols): Likewise.
6184 (complete_line_internal_1): Likewise.
6185 (default_completer_handle_brkchars): Likewise.
6186 (skip_quoted_chars): Likewise.
6187 * d-lang.c (d_language_data): Delete la_word_break_characters
6188 initializer.
6189 * f-lang.c (f_word_break_characters): Delete.
6190 (f_language_data): Delete la_word_break_characters initializer.
6191 (f_language::word_break_characters): New member function.
6192 * go-lang.c (go_language_data): Delete la_word_break_characters
6193 initializer.
6194 * language.c (unknown_language_data): Likewise.
6195 (auto_language_data): Likewise.
6196 * language.h (default_word_break_characters): Move declaration to
6197 earlier in the file.
6198 (language_data): Delete la_word_break_characters field.
6199 (language_defn::word_break_characters): New member function.
6200 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6201 initializer.
6202 * objc-lang.c (objc_language_data): Likewise.
6203 * opencl-lang.c (opencl_language_data): Likewise.
6204 * p-lang.c (pascal_language_data): Likewise.
6205 * rust-lang.c (rust_language_data): Likewise.
6206
c9debfb9
AB
62072020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6208
6209 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6210 (ada_language_data): Delete la_get_symbol_name_matcher
6211 initializer.
6212 (language_defn::get_symbol_name_matcher_inner): New member
6213 function.
6214 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6215 initializer.
6216 (cplus_language_data): Likewise.
6217 (cplus_language::get_symbol_name_matcher_inner): New member
6218 function.
6219 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6220 (minimal_language_data): Likewise.
6221 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6222 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6223 initializer.
6224 * dictionary.c (iter_match_first_hashed): Update call to
6225 get_symbol_name_matcher.
6226 (iter_match_next_hashed): Likewise.
6227 (iter_match_next_linear): Likewise.
6228 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6229 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6230 initializer.
6231 (f_language::get_symbol_name_matcher_inner): New member function.
6232 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6233 initializer.
6234 * language.c (default_symbol_name_matcher): Update header comment,
6235 make static.
6236 (language_defn::get_symbol_name_matcher): New definition.
6237 (language_defn::get_symbol_name_matcher_inner): Likewise.
6238 (get_symbol_name_matcher): Delete.
6239 (unknown_language_data): Delete la_get_symbol_name_matcher
6240 initializer.
6241 (auto_language_data): Likewise.
6242 * language.h (language_data): Delete la_get_symbol_name_matcher
6243 field.
6244 (language_defn::get_symbol_name_matcher): New member function.
6245 (language_defn::get_symbol_name_matcher_inner): Likewise.
6246 (default_symbol_name_matcher): Delete declaration.
6247 * linespec.c (find_methods): Update call to
6248 get_symbol_name_matcher.
6249 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6250 initializer.
6251 * minsyms.c (lookup_minimal_symbol): Update call to
6252 get_symbol_name_matcher.
6253 (iterate_over_minimal_symbols): Likewise.
6254 * objc-lang.c (objc_language_data): Delete
6255 la_get_symbol_name_matcher initializer.
6256 * opencl-lang.c (opencl_language_data): Likewise.
6257 * p-lang.c (pascal_language_data): Likewise.
6258 * psymtab.c (psymbol_name_matches): Update call to
6259 get_symbol_name_matcher.
6260 * rust-lang.c (rust_language_data): Delete
6261 la_get_symbol_name_matcher initializer.
6262 * symtab.c (symbol_matches_search_name): Update call to
6263 get_symbol_name_matcher.
6264 (compare_symbol_name): Likewise.
6265
9a49ad8c
AB
62662020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6267
6268 * ada-lang.c (ada_language_data): Delete la_compute_program
6269 initializer.
6270 * c-lang.c (c_language_data): Likewise.
6271 (c_language::compute_program): New member function.
6272 (cplus_language_data): Delete la_compute_program initializer.
6273 (cplus_language::compute_program): New member function.
6274 (asm_language_data): Delete la_compute_program initializer.
6275 (minimal_language_data): Likewise.
6276 * c-lang.h (c_compute_program): Update comment.
6277 (cplus_compute_program): Likewise.
6278 * compile/compile-c-support.c (c_compute_program): Likewise.
6279 (cplus_compute_program): Likewise.
6280 * compile/compile.c (compile_to_object): Update call to
6281 la_compute_program.
6282 * d-lang.c (d_language_data): Delete la_compute_program
6283 initializer.
6284 * f-lang.c (f_language_data): Likewise.
6285 * go-lang.c (go_language_data): Likewise.
6286 * language.c (unknown_language_data): Likewise.
6287 (auto_language_data): Likewise.
6288 * language.h (language_data): Delete la_compute_program field.
6289 (language_defn::compute_program): New member function.
6290 * m2-lang.c (m2_language_data): Delete la_compute_program
6291 initializer.
6292 * objc-lang.c (objc_language_data): Likewise.
6293 * opencl-lang.c (opencl_language_data): Likewise.
6294 * p-lang.c (pascal_language_data): Likewise.
6295 * rust-lang.c (rust_language_data): Likewise.
6296
eff93b4d
AB
62972020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6298
6299 * ada-lang.c (ada_language_data) Delete
6300 la_class_name_from_physname initializer.
6301 * c-lang.c (c_language_data): Likewise.
6302 (cplus_language_data): Likewise.
6303 (cplus_language::class_name_from_physname): New member function.
6304 (asm_language_data): Delete la_class_name_from_physname
6305 initializer.
6306 (minimal_language_data): Likewise.
6307 * d-lang.c (d_language_data): Likewise.
6308 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6309 method on language_defn class.
6310 (guess_full_die_structure_name): Likewise.
6311 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6312 initializer.
6313 * go-lang.c (go_language_data): Likewise.
6314 * language.c (language_class_name_from_physname): Delete.
6315 (unk_lang_class_name): Delete.
6316 (unknown_language_data): Delete la_class_name_from_physname
6317 initializer.
6318 (auto_language_data): Likewise.
6319 * language.h (language_data): Delete la_class_name_from_physname
6320 field.
6321 (language_defn::class_name_from_physname): New function.
6322 (language_class_name_from_physname): Delete declaration.
6323 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6324 initializer.
6325 * objc-lang.c (objc_language_data): Likewise.
6326 * opencl-lang.c (opencl_language_data): Likewise.
6327 * p-lang.c (pascal_language_data): Likewise.
6328 * rust-lang.c (rust_language_data): Likewise.
6329
de543742
TT
63302020-06-16 Tom Tromey <tom@tromey.com>
6331
6332 * tui/tui-data.h (STATUS_NAME): New macro.
6333 * tui/tui-layout.c (tui_remove_some_windows)
6334 (initialize_known_windows, tui_register_window)
6335 (tui_layout_split::remove_windows, initialize_layouts)
6336 (tui_new_layout_command): Don't use hard-coded window names.
6337
a350efd4
TT
63382020-06-16 Tom Tromey <tom@tromey.com>
6339
6340 PR tui/25348:
6341 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6342 tui_initialize_readline. Only run once. Call rl_initialize.
6343 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6344 tui_initialize_readline.
6345 * tui/tui-io.c (tui_setup_io): Call
6346 tui_ensure_readline_initialized.
6347 * tui/tui-interp.c (tui_interp::init): Update.
6348
39ec0490
TT
63492020-06-16 Tom Tromey <tom@tromey.com>
6350
6351 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6352 Also preserve the status window.
6353
d2d1ea20
TT
63542020-06-16 Tom Tromey <tom@tromey.com>
6355
6356 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6357 where m_window==nullptr.
6358
66920317
TT
63592020-06-15 Tom Tromey <tromey@adacore.com>
6360
6361 * windows-nat.c (windows_nat::handle_output_debug_string):
6362 Update.
6363 (windows_nat::handle_ms_vc_exception): Update.
6364 * target.h (target_read_string): Change API.
6365 * target.c (target_read_string): Change API.
6366 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6367 Update.
6368 * solib-frv.c (frv_current_sos): Update.
6369 * solib-dsbt.c (dsbt_current_sos): Update.
6370 * solib-darwin.c (darwin_current_sos): Update.
6371 * linux-thread-db.c (inferior_has_bug): Update.
6372 * expprint.c (print_subexp_standard): Update.
6373 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6374 (ada_exception_message_1): Update.
6375
a5d871dd
TT
63762020-06-15 Tom Tromey <tromey@adacore.com>
6377
6378 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6379
670e35fa
TT
63802020-06-15 Tom Tromey <tromey@adacore.com>
6381
6382 * valprint.c (read_string): Update comment.
6383 * target.c (MIN): Remove.
6384 (target_read_string): Rewrite.
6385
f5272a3b
TT
63862020-06-15 Tom Tromey <tromey@adacore.com>
6387
6388 * corefile.c (read_memory_string): Remove.
6389 * ada-valprint.c (ada_value_print_ptr): Update.
6390 * ada-lang.h (ada_tag_name): Change return type.
6391 * ada-lang.c (type_from_tag): Update.
6392 (ada_tag_name_from_tsd): Change return type. Use
6393 target_read_string.
6394 (ada_tag_name): Likewise.
6395 * gdbcore.h (read_memory_string): Don't declare.
6396
2c074f49
HD
63972020-06-14 Hannes Domani <ssbssa@yahoo.de>
6398
6399 * symtab.c (rbreak_command): Ignore Windows drive colon.
6400
6a17d503
SM
64012020-06-12 Simon Marchi <simon.marchi@efficios.com>
6402
6403 * NEWS: Mention removed GDBserver host support.
6404
453c733f
NC
64052020-06-12 Nelson Chu <nelson.chu@sifive.com>
6406
6407 * features/riscv/rebuild-csr-xml.sh: Updated.
6408
2b4e6a3f
TT
64092020-06-11 Tom Tromey <tom@tromey.com>
6410
6411 PR gdb/18318:
6412 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6413
4412332f
JG
64142020-06-09 Jonny Grant <jg@jguk.org>
64152020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6416
6417 * main.c (captured_main_1): Don't print new line after help.
6418 (print_gdb_help): add mailing list and IRC channel information
6419 to --help. Add new lines between items in the footer. Remove
6420 quotes around bug url.
6421
2f33032a
KS
64222020-06-11 Keith Seitz <keiths@redhat.com>
6423
6424 PR gdb/21356
6425 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6426 Resolve typedefs for type length calculations.
6427
7ab96794
TV
64282020-06-10 Tom de Vries <tdevries@suse.de>
6429
6430 PR ada/24713
6431 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6432 (write_psymbols): Enable .gdb_index for ada.
6433 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6434 ada.
6435
e5f3ece2
TV
64362020-06-10 Tom de Vries <tdevries@suse.de>
6437
6438 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6439 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6440 namei" instead of "const char *name" argument.
6441 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6442 dw2_symtab_iter_init.
6443
940da03e
SM
64442020-06-08 Simon Marchi <simon.marchi@efficios.com>
6445
6446 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6447 to use type::field and field::type instead.
6448
b6cdac4b
SM
64492020-06-08 Simon Marchi <simon.marchi@efficios.com>
6450
6451 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6452 to use field::type instead.
6453
5d14b6e5
SM
64542020-06-08 Simon Marchi <simon.marchi@efficios.com>
6455
6456 * gdbtypes.h (struct field) <type, set_type>: New methods.
6457 Rename `type` field to...
6458 <m_type>: ... this. Change references throughout to use type or
6459 set_type methods.
6460 (FIELD_TYPE): Use field::type. Change call sites that modify
6461 the field's type to use field::set_type instead.
6462
3d967001
SM
64632020-06-08 Simon Marchi <simon.marchi@efficios.com>
6464
6465 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6466 to use type::index_type instead.
6467
262abc0d
SM
64682020-06-08 Simon Marchi <simon.marchi@efficios.com>
6469
6470 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6471 methods.
6472 (TYPE_INDEX_TYPE): Use type::index_type.
6473 * gdbtypes.c (create_array_type_with_stride): Likewise.
6474
82836c92
TT
64752020-06-07 Tom Tromey <tom@tromey.com>
6476
6477 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6478 parameter.
6479 (generic_value_print): Update.
6480
940dace9
AB
64812020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6482
6483 Revert commit 982a38f60b0.
6484 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6485
982a38f6
AB
64862020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6487
6488 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6489 avoid use after free.
6490
82f06518
TV
64912020-06-05 Tom de Vries <tdevries@suse.de>
6492
6493 * NEWS: Fix typos.
6494
f8c41851
SM
64952020-06-04 Simon Marchi <simon.marchi@efficios.com>
6496
6497 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6498 the per_bfd object.
6499 (dwarf2_read_debug_names): Likewise.
6500 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6501 object when re-using a per_bfd object with an index.
6502
f9b5d5ea
TV
65032020-06-03 Tom de Vries <tdevries@suse.de>
6504
6505 PR symtab/26046
6506 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6507 children for C++.
6508 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6509 DW_TAG_subprogram.
6510
f6eee2d0
AB
65112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6512
6513 * ada-lang.c (ada_language_data): Delete skip_trampoline
6514 initializer.
6515 * c-lang.c (c_language_data): Likewise.
6516 (cplus_language_data): Likewise.
6517 (cplus_language::skip_trampoline): New member function.
6518 (asm_language_data): Delete skip_trampoline initializer.
6519 (minimal_language_data): Likewise.
6520 * d-lang.c (d_language_data): Likewise.
6521 * f-lang.c (f_language_data): Likewise.
6522 * go-lang.c (go_language_data): Likewise.
6523 * language.c (unk_lang_trampoline): Delete function.
6524 (skip_language_trampoline): Update.
6525 (unknown_language_data): Delete skip_trampoline initializer.
6526 (auto_language_data): Likewise.
6527 * language.h (language_data): Delete skip_trampoline field.
6528 (language_defn::skip_trampoline): New function.
6529 * m2-lang.c (m2_language_data): Delete skip_trampoline
6530 initializer.
6531 * objc-lang.c (objc_skip_trampoline): Delete function, move
6532 implementation to objc_language::skip_trampoline.
6533 (objc_language_data): Delete skip_trampoline initializer.
6534 (objc_language::skip_trampoline): New member function with
6535 implementation from objc_skip_trampoline.
6536 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6537 initializer.
6538 * p-lang.c (pascal_language_data): Likewise.
6539 * rust-lang.c (rust_language_data): Likewise.
6540
0a50df5d
AB
65412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6542
6543 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6544 (ada_language::demangle): New member function.
6545 * c-lang.c (c_language_data): Delete la_demangle initializer.
6546 (cplus_language_data): Delete la_demangle initializer.
6547 (cplus_language::demangle): New member function.
6548 (asm_language_data): Delete la_demangle initializer.
6549 (minimal_language_data): Delete la_demangle initializer.
6550 * d-lang.c (d_language_data): Delete la_demangle initializer.
6551 (d_language::demangle): New member function.
6552 * f-lang.c (f_language_data): Delete la_demangle initializer.
6553 (f_language::demangle): New member function.
6554 * go-lang.c (go_language_data): Delete la_demangle initializer.
6555 (go_language::demangle): New member function.
6556 * language.c (language_demangle): Update.
6557 (unk_lang_demangle): Delete.
6558 (unknown_language_data): Delete la_demangle initializer.
6559 (unknown_language::demangle): New member function.
6560 (auto_language_data): Delete la_demangle initializer.
6561 (auto_language::demangle): New member function.
6562 * language.h (language_data): Delete la_demangle field.
6563 (language_defn::demangle): New function.
6564 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6565 * objc-lang.c (objc_language_data): Delete la_demangle
6566 initializer.
6567 (objc_language::demangle): New member function.
6568 * opencl-lang.c (opencl_language_data): Delete la_demangle
6569 initializer.
6570 * p-lang.c (pascal_language_data): Likewise.
6571 * rust-lang.c (rust_language_data): Likewise.
6572 (rust_language::demangle): New member function.
6573
fbfb0a46
AB
65742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6575
6576 * ada-lang.c (ada_language_data): Delete la_print_type
6577 initializer.
6578 (ada_language::print_type): New member function.
6579 * c-lang.c (c_language_data): Delete la_print_type initializer.
6580 (c_language::print_type): New member function.
6581 (cplus_language_data): Delete la_print_type initializer.
6582 (cplus_language::print_type): New member function.
6583 (asm_language_data): Delete la_print_type initializer.
6584 (asm_language::print_type): New member function.
6585 (minimal_language_data): Delete la_print_type initializer.
6586 (minimal_language::print_type): New member function.
6587 * d-lang.c (d_language_data): Delete la_print_type initializer.
6588 (d_language::print_type): New member function.
6589 * f-lang.c (f_language_data): Delete la_print_type initializer.
6590 (f_language::print_type): New member function.
6591 * go-lang.c (go_language_data): Delete la_print_type initializer.
6592 (go_language::print_type): New member function.
6593 * language.c (unk_lang_print_type): Delete.
6594 (unknown_language_data): Delete la_print_type initializer.
6595 (unknown_language::print_type): New member function.
6596 (auto_language_data): Delete la_print_type initializer.
6597 (auto_language::print_type): New member function.
6598 * language.h (language_data): Delete la_print_type field.
6599 (language_defn::print_type): New function.
6600 (LA_PRINT_TYPE): Update.
6601 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6602 (m2_language::print_type): New member function.
6603 * objc-lang.c (objc_language_data): Delete la_print_type
6604 initializer.
6605 (objc_language::print_type): New member function.
6606 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6607 to opencl_language::print_type.
6608 (opencl_language_data): Delete la_print_type initializer.
6609 (opencl_language::print_type): New member function, implementation
6610 from opencl_print_type.
6611 * p-lang.c (pascal_language_data): Delete la_print_type
6612 initializer.
6613 (pascal_language::print_type): New member function.
6614 * rust-lang.c (rust_print_type): Delete, implementation moved to
6615 rust_language::print_type.
6616 (rust_language_data): Delete la_print_type initializer.
6617 (rust_language::print_type): New member function, implementation
6618 from rust_print_type.
6619
6f827019
AB
66202020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6621
6622 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6623 implementation moves to...
6624 (ada_language::sniff_from_mangled_name): ...here. Update return
6625 type.
6626 (ada_language_data): Delete la_sniff_from_mangled_name
6627 initializer.
6628 * c-lang.c (c_language_data): Likewise.
6629 (cplus_language_data): Likewise.
6630 (cplus_language::sniff_from_mangled_name): New member function,
6631 implementation taken from gdb_sniff_from_mangled_name.
6632 (asm_language_data): Delete la_sniff_from_mangled_name
6633 initializer.
6634 (minimal_language_data): Likewise.
6635 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6636 implementation moves to cplus_language::sniff_from_mangled_name.
6637 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6638 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6639 moves to...
6640 (d_language::sniff_from_mangled_name): ...here.
6641 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6642 * f-lang.c (f_language_data): Likewise.
6643 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6644 moves to...
6645 (go_language::sniff_from_mangled_name): ...here.
6646 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6647 * language.c (language_sniff_from_mangled_name): Delete.
6648 (unknown_language_data): Delete la_sniff_from_mangled_name
6649 initializer.
6650 (auto_language_data): Likewise.
6651 * language.h (language_data): Delete la_sniff_from_mangled_name
6652 field.
6653 (language_defn::sniff_from_mangled_name): New function.
6654 (language_sniff_from_mangled_name): Delete declaration.
6655 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6656 field.
6657 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6658 implementation moves to...
6659 (objc_language::sniff_from_mangled_name): ...here.
6660 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6661 * opencl-lang.c (opencl_language_data): Likewise.
6662 * p-lang.c (pascal_language_data): Likewise.
6663 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6664 implementation moves to...
6665 (rust_language::sniff_from_mangled_name): ...here.
6666 (rust_language_data): Delete la_sniff_from_mangled_name
6667 initializer.
6668 * symtab.c (symbol_find_demangled_name): Call
6669 sniff_from_mangled_name member function.
6670
fb8006fd
AB
66712020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6672
6673 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6674 initializer.
6675 * c-lang.c (c_language_data): Likewise.
6676 (cplus_language_data): Likewise.
6677 (cplus_language::search_name_hash): New member function.
6678 (asm_language_data): Delete la_search_name_hash initializer.
6679 (minimal_language_data): Likewise.
6680 * d-lang.c (d_language_data): Likewise.
6681 * dictionary.c (default_search_name_hash): Rename to...
6682 (language_defn::search_name_hash): ...this.
6683 * f-lang.c (f_language_data): Likewise.
6684 (f_language::search_name_hash): New member function.
6685 * go-lang.c (go_language_data): Delete la_search_name_hash
6686 initializer.
6687 * language.c (unknown_language_data): Likewise.
6688 (auto_language_data): Likewise.
6689 * language.h (struct language_data): Delete la_search_name_hash
6690 field.
6691 (language_defn::search_name_hash): Declare new member function.
6692 (default_search_name_hash): Delete declaration.
6693 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6694 initializer.
6695 * objc-lang.c (objc_language_data): Likewise.
6696 * opencl-lang.c (opencl_language_data): Likewise.
6697 * p-lang.c (pascal_language_data): Likewise.
6698 * rust-lang.c (rust_language_data): Likewise.
6699 * symtab.c (search_name_hash): Update call.
6700
8e25bafe
AB
67012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6702
6703 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6704 initializer.
6705 * c-lang.c (class compile_instance): Declare.
6706 (c_language_data): Delete la_get_compile_instance initializer.
6707 (c_language::get_compile_instance): New member function.
6708 (cplus_language_data): Delete la_get_compile_instance initializer.
6709 (cplus_language::get_compile_instance): New member function.
6710 (asm_language_data): Delete la_get_compile_instance initializer.
6711 (minimal_language_data): Likewise.
6712 * c-lang.h (c_get_compile_context): Update comment.
6713 (cplus_get_compile_context): Update comment.
6714 * compile/compile.c (compile_to_object): Update calls, don't rely
6715 on function pointer being NULL.
6716 * d-lang.c (d_language_data): Delete la_get_compile_instance
6717 initializer.
6718 * f-lang.c (f_language_data): Likewise.
6719 * go-lang.c (go_language_data): Likewise.
6720 * language.c (unknown_language_data): Likewise.
6721 (auto_language_data): Likewise.
6722 * language.h (language_data): Delete la_get_compile_instance field.
6723 (language_defn::get_compile_instance): New member function.
6724 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6725 initializer.
6726 * objc-lang.c (objc_language_data): Likewise.
6727 * opencl-lang.c (opencl_language_data): Likewise.
6728 * p-lang.c (pascal_language_data): Likewise.
6729 * rust-lang.c (rust_language_data): Likewise.
6730
4009ee92
AB
67312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6732
6733 * ada-lang.c (ada_add_all_symbols): Update comment.
6734 (ada_iterate_over_symbols): Delete, move implementation to...
6735 (ada_language::iterate_over_symbols): ...here, a new member
6736 function, rewrite to use range based for loop.
6737 (ada_language_data): Delete la_iterate_over_symbols initializer.
6738 * c-lang.c (c_language_data): Likewise.
6739 (cplus_language_data): Likewise.
6740 (asm_language_data): Likewise.
6741 (minimal_language_data): Likewise.
6742 * d-lang.c (d_language_data): Likewise.
6743 * f-lang.c (f_language_data): Likewise.
6744 * go-lang.c (go_language_data): Likewise.
6745 * language.c (unknown_language_data): Likewise.
6746 (auto_language_data): Likewise.
6747 * language.h (language_data): Delete la_iterate_over_symbols field.
6748 (language_defn::iterate_over_symbols): New member function.
6749 (LA_ITERATE_OVER_SYMBOLS): Update.
6750 * linespec.c (iterate_over_all_matching_symtabs): Update.
6751 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6752 initializer.
6753 * objc-lang.c (objc_language_data): Likewise.
6754 * opencl-lang.c (opencl_language_data): Likewise.
6755 * p-lang.c (pascal_language_data): Likewise.
6756 * rust-lang.c (rust_language_data): Likewise.
6757
54f4ca46
AB
67582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6759
6760 * ada-lang.c (ada_language_data): Delete
6761 la_lookup_transparent_type initializer.
6762 * c-lang.c (c_language_data): Likewise.
6763 (cplus_language_data): Likewise.
6764 (cplus_language::lookup_transparent_type): New member function.
6765 (asm_language_data): Delete la_lookup_transparent_type
6766 initializer.
6767 (minimal_language_data): Likewise.
6768 * d-lang.c (d_language_data): Likewise.
6769 * f-lang.c (f_language_data): Likewise.
6770 * go-lang.c (go_language_data): Likewise.
6771 * language.c (unknown_language_data): Likewise.
6772 (auto_language_data): Likewise.
6773 * language.h (struct language_data): Delete
6774 la_lookup_transparent_type field.
6775 (language_defn::lookup_transparent_type): New member function.
6776 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6777 initializer.
6778 * objc-lang.c (objc_language_data): Likewise.
6779 * opencl-lang.c (opencl_language_data): Likewise.
6780 * p-lang.c (pascal_language_data): Likewise.
6781 * rust-lang.c (rust_language_data): Likewise.
6782 * symtab.c (symbol_matches_domain): Update call.
6783
1fb314aa
AB
67842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6785
6786 * ada-lang.c (ada_language_arch_info): Delete function, move
6787 implementation to...
6788 (ada_language::language_arch_info): ...here, a new member
6789 function.
6790 (ada_language_data): Delete la_language_arch_info.
6791 * c-lang.c (c_language_data): Likewise.
6792 (c_language::language_arch_info): New member function.
6793 (cplus_language_arch_info): Delete function, move
6794 implementation to...
6795 (cplus_language::language_arch_info): ...here, a new member
6796 function.
6797 (cplus_language_data): Delete la_language_arch_info.
6798 (asm_language_data): Likewise.
6799 (asm_language::language_arch_info): New member function.
6800 (minimal_language_data): Delete la_language_arch_info.
6801 (minimal_language::language_arch_info): New member function.
6802 * d-lang.c (d_language_arch_info): Delete function, move
6803 implementation to...
6804 (d_language::language_arch_info): ...here, a new member
6805 function.
6806 (d_language_data): Delete la_language_arch_info.
6807 * f-lang.c (f_language_arch_info): Delete function, move
6808 implementation to...
6809 (f_language::language_arch_info): ...here, a new member
6810 function.
6811 (f_language_data): Delete la_language_arch_info.
6812 * go-lang.c (go_language_arch_info): Delete function, move
6813 implementation to...
6814 (go_language::language_arch_info): ...here, a new member
6815 function.
6816 (go_language_data): Delete la_language_arch_info.
6817 * language.c (unknown_language_data): Likewise.
6818 (unknown_language::language_arch_info): New member function.
6819 (auto_language_data): Delete la_language_arch_info.
6820 (auto_language::language_arch_info): New member function.
6821 (language_gdbarch_post_init): Update call to
6822 la_language_arch_info.
6823 * language.h (language_data): Delete la_language_arch_info
6824 function pointer.
6825 (language_defn::language_arch_info): New function.
6826 * m2-lang.c (m2_language_arch_info): Delete function, move
6827 implementation to...
6828 (m2_language::language_arch_info): ...here, a new member
6829 function.
6830 (m2_language_data): Delete la_language_arch_info.
6831 * objc-lang.c (objc_language_arch_info): Delete function, move
6832 implementation to...
6833 (objc_language::language_arch_info): ...here, a new member
6834 function.
6835 (objc_language_data): Delete la_language_arch_info.
6836 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6837 implementation to...
6838 (opencl_language::language_arch_info): ...here, a new member
6839 function.
6840 (opencl_language_data): Delete la_language_arch_info.
6841 * p-lang.c (pascal_language_arch_info): Delete function, move
6842 implementation to...
6843 (pascal_language::language_arch_info): ...here, a new member
6844 function.
6845 (pascal_language_data): Delete la_language_arch_info.
6846 * rust-lang.c (rust_language_arch_info): Delete function, move
6847 implementation to...
6848 (rust_language::language_arch_info): ...here, a new member
6849 function.
6850 (rust_language_data): Delete la_language_arch_info.
6851
48448202
AB
68522020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6853
6854 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6855 initializer.
6856 * c-lang.c (c_language_data): Likewise.
6857 (cplus_language_data): Likewise.
6858 (cplus_language::pass_by_reference_info): New method.
6859 (asm_language_data): Delete la_pass_by_reference initializer.
6860 (minimal_language_data): Likewise.
6861 * cp-abi.c (cp_pass_by_reference): Remove use of
6862 default_pass_by_reference.
6863 * d-lang.c (d_language_data): Likewise.
6864 * f-lang.c (f_language_data): Likewise.
6865 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6866 default_pass_by_reference.
6867 * go-lang.c (go_language_data): Likewise.
6868 * language.c (language_pass_by_reference): Update.
6869 (default_pass_by_reference): Delete.
6870 (unknown_language_data): Delete la_pass_by_reference
6871 initializer.
6872 (auto_language_data): Likewise.
6873 * language.h (struct language_data): Delete la_pass_by_reference
6874 field.
6875 (language_defn::pass_by_reference_info): New member function.
6876 (default_pass_by_reference): Delete declaration.
6877 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6878 initializer.
6879 * objc-lang.c (objc_language_data): Likewise.
6880 * opencl-lang.c (opencl_language_data): Likewise.
6881 * p-lang.c (pascal_language_data): Likewise.
6882 * rust-lang.c (rust_language_data): Likewise.
6883
15e5fd35
AB
68842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6885
6886 * ada-lang.c (ada_read_var_value): Delete function, move
6887 implementation to...
6888 (ada_language::read_var_value): ...here.
6889 (ada_language_data): Delete la_read_var_value initializer.
6890 * c-lang.c (c_language_data): Likewise.
6891 (cplus_language_data): Likewise.
6892 (minimal_language_data): Likewise.
6893 * d-lang.c (d_language_data): Likewise.
6894 * f-lang.c (f_language_data): Likewise.
6895 * findvar.c (default_read_var_value): Rename to...
6896 (language_defn::read_var_value): ...this.
6897 * findvar.c (read_var_value): Update header comment, and change to
6898 call member function instead of function pointer.
6899 * go-lang.c (go_language_data): Likewise.
6900 * language.c (unknown_language_data): Delete la_read_var_value
6901 initializer.
6902 (auto_language_data): Likewise.
6903 * language.h (struct language_data): Delete la_read_var_value
6904 field.
6905 (language_defn::read_var_value): New member function.
6906 (default_read_var_value): Delete declaration.
6907 * m2-lang.c (m2_language_data): Delete la_read_var_value
6908 initializer.
6909 * objc-lang.c (objc_language_data): Likewise.
6910 * opencl-lang.c (opencl_language_data): Likewise.
6911 * p-lang.c (pascal_language_data): Likewise.
6912 * rust-lang.c (rust_language_data): Likewise.
6913 * value.h (default_read_var_value): Delete declaration.
6914
5bd40f2a
AB
69152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6916
6917 * ada-lang.c (ada_print_array_index): Delete function, move
6918 implementation to...
6919 (ada_language::print_array_index): ...here.
6920 (ada_language_data): Delete la_print_array_index initializer.
6921 * c-lang.c (c_language_data): Likewise.
6922 (cplus_language_data): Likewise.
6923 (minimal_language_data): Likewise.
6924 * d-lang.c (d_language_data): Likewise.
6925 * f-lang.c (f_language_data): Likewise.
6926 * go-lang.c (go_language_data): Likewise.
6927 * language.c (default_print_array_index): Delete function, move
6928 implementation to...
6929 (language_defn::print_array_index): ...here.
6930 (unknown_language_data): Delete la_print_array_index initializer.
6931 (auto_language_data): Likewise.
6932 * language.h (struct language_data): Delete la_print_array_index
6933 field.
6934 (language_defn::print_array_index): New member function.
6935 (LA_PRINT_ARRAY_INDEX): Update.
6936 (default_print_array_index): Delete declaration.
6937 * m2-lang.c (m2_language_data): Delete la_print_array_index
6938 initializer.
6939 * objc-lang.c (objc_language_data): Likewise.
6940 * opencl-lang.c (opencl_language_data): Likewise.
6941 * p-lang.c (pascal_language_data): Likewise.
6942 * rust-lang.c (rust_language_data): Likewise.
6943
0874fd07
AB
69442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6945
6946 * gdb/ada-lang.c (ada_language_defn): Convert to...
6947 (ada_language_data): ...this.
6948 (class ada_language): New class.
6949 (ada_language_defn): New static global.
6950 * gdb/c-lang.c (c_language_defn): Convert to...
6951 (c_language_data): ...this.
6952 (class c_language): New class.
6953 (c_language_defn): New static global.
6954 (cplus_language_defn): Convert to...
6955 (cplus_language_data): ...this.
6956 (class cplus_language): New class.
6957 (cplus_language_defn): New static global.
6958 (asm_language_defn): Convert to...
6959 (asm_language_data): ...this.
6960 (class asm_language): New class.
6961 (asm_language_defn): New static global.
6962 (minimal_language_defn): Convert to...
6963 (minimal_language_data): ...this.
6964 (class minimal_language): New class.
6965 (minimal_language_defn): New static global.
6966 * gdb/d-lang.c (d_language_defn): Convert to...
6967 (d_language_data): ...this.
6968 (class d_language): New class.
6969 (d_language_defn): New static global.
6970 * gdb/f-lang.c (f_language_defn): Convert to...
6971 (f_language_data): ...this.
6972 (class f_language): New class.
6973 (f_language_defn): New static global.
6974 * gdb/go-lang.c (go_language_defn): Convert to...
6975 (go_language_data): ...this.
6976 (class go_language): New class.
6977 (go_language_defn): New static global.
6978 * gdb/language.c (unknown_language_defn): Remove declaration.
6979 (current_language): Initialize to nullptr, real initialization is
6980 moved to _initialize_language.
6981 (languages): Delete global.
6982 (language_defn::languages): Define.
6983 (set_language_command): Use language_defn::languages.
6984 (set_language): Likewise.
6985 (range_error): Likewise.
6986 (language_enum): Likewise.
6987 (language_def): Likewise.
6988 (add_set_language_command): Use language_def::languages for the
6989 language list, and language_def to lookup language pointers.
6990 (skip_language_trampoline): Use language_defn::languages.
6991 (unknown_language_defn): Convert to...
6992 (unknown_language_data): ...this.
6993 (class unknown_language): New class.
6994 (unknown_language_defn): New static global.
6995 (auto_language_defn): Convert to...
6996 (auto_language_data): ...this.
6997 (class auto_language): New class.
6998 (auto_language_defn): New static global.
6999 (language_gdbarch_post_init): Use language_defn::languages.
7000 (_initialize_language): Initialize current_language.
7001 * gdb/language.h (struct language_defn): Rename to...
7002 (struct language_data): ...this.
7003 (struct language_defn): New.
7004 (auto_language_defn): Delete.
7005 (unknown_language_defn): Delete.
7006 (minimal_language_defn): Delete.
7007 (ada_language_defn): Delete.
7008 (asm_language_defn): Delete.
7009 (c_language_defn): Delete.
7010 (cplus_language_defn): Delete.
7011 (d_language_defn): Delete.
7012 (f_language_defn): Delete.
7013 (go_language_defn): Delete.
7014 (m2_language_defn): Delete.
7015 (objc_language_defn): Delete.
7016 (opencl_language_defn): Delete.
7017 (pascal_language_defn): Delete.
7018 (rust_language_defn): Delete.
7019 * gdb/m2-lang.c (m2_language_defn): Convert to...
7020 (m2_language_data): ...this.
7021 (class m2_language): New class.
7022 (m2_language_defn): New static global.
7023 * gdb/objc-lang.c (objc_language_defn): Convert to...
7024 (objc_language_data): ...this.
7025 (class objc_language): New class.
7026 (objc_language_defn): New static global.
7027 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7028 (opencl_language_data): ...this.
7029 (class opencl_language): New class.
7030 (opencl_language_defn): New static global.
7031 * gdb/p-lang.c (pascal_language_defn): Convert to...
7032 (pascal_language_data): ...this.
7033 (class pascal_language): New class.
7034 (pascal_language_defn): New static global.
7035 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7036 language pointer, update comment format.
7037 * gdb/rust-lang.c (rust_language_defn): Convert to...
7038 (rust_language_data): ...this.
7039 (class rust_language): New class.
7040 (rust_language_defn): New static global.
7041
1313c56e
AB
70422020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7043
7044 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7045 member variable.
7046 <m_stmt_at_address>: New member variable.
7047 (lnp_state_machine::record_line): Don't record some lines, update
7048 tracking of is_stmt at the same address.
7049 (lnp_state_machine::lnp_state_machine): Initialise new member
7050 variables.
7051
b7ed9f3d
ST
70522020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7053
7054 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7055 "-include gnu-nat-mig.h".
7056 * gnu-nat-mig.h: New file.
7057 * gnu-nat.c: Include "gnu-nat-mig.h".
7058 (exc_server, msg_reply_server, notify_server,
7059 process_reply_server): Remove declarations.
7060
14a8ad62
ST
70612020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7062
7063 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7064 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7065 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7066 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7067 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7068 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7069 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7070 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7071 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7072 to gnu_nat_target class.
7073 * gnu-nat.c: Likewise.
7074 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7075 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7076 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7077 object.
7078 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7079 instead of `gnu_target'.
7080
0af5e106
ST
70812020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7082
7083 * i386-gnu-tdep.c: Include "gdbcore.h"
7084 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7085 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7086 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7087 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7088 i386_gnu_sigcontext_addr): New functions
7089 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7090 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7091 tdep.
7092
078f2fc9
ST
70932020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7094
7095 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7096 before fork_inferior call. Avoid calling it if target_is_pushed returns
7097 true.
7098
53dff92c
ST
70992020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7100
7101 * gnu-nat.h (gnu_target): New variable declaration.
7102 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7103 gnu_target.
7104 * gnu-nat.c (gnu_target): New variable.
7105 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7106 add_thread_silent, and add_thread calls.
7107 (gnu_nat_target::create_inferior): Pass gnu_target to
7108 add_thread_silent, thread_change_ptid call.
7109 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7110 call.
7111
5a8b8627
ST
71122020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7113
7114 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7115 (gnu_nat_target::find_memory_regions): Remove unused
7116 `old_address' variable.
7117
366f550a
ST
71182020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7119
7120 * gnu-nat.c: Include "gdbarch.h".
7121
f14871bf
ST
71222020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7123
7124 * reply_mig_hack.awk (Error return): Cast function through
7125 void *, to bypass compiler function call check.
7126
c6887cfb
ST
71272020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7128
7129 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7130 $(srcdir)/reply_mig_hack.awk.
7131
6930bffe
ST
71322020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7133
7134 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7135
112c22ed
JG
71362020-05-30 Jonny Grant <jg@jguk.org>
7137
7138 * configure.ac (ACX_BUGURL): change bug URL to https.
7139
f68f85b5
PA
71402020-05-30 Pedro Alves <palves@redhat.com>
7141
7142 * cp-support.c (replace_typedefs_template): New.
7143 (replace_typedefs_qualified_name): Handle
7144 DEMANGLE_COMPONENT_TEMPLATE.
7145
976ca316
SM
71462020-05-29 Simon Marchi <simon.marchi@efficios.com>
7147
7148 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7149 dwarf2/index-cache.h, dwarf2/index-write.c,
7150 dwarf2/index-write.h, dwarf2/line-header.c,
7151 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7152 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7153 variables and fields from `dwarf2_per_objfile` to just
7154 `per_objfile` throughout.
7155
989ade05
SM
71562020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7157
7158 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7159 <push_dwarf_reg_entry_value>: Add comment.
7160
c47bae85
KB
71612020-05-28 Kevin Buettner <kevinb@redhat.com>
7162 Keith Seitz <keiths@redhat.com>
7163
7164 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7165 instead of PyEval_ReleaseLock.
7166 (class gdbpy_gil): Move to earlier in file.
7167 (finalize_python): Set gdb_python_initialized.
7168 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7169 when not initialized.
7170
44486dcf
SM
71712020-05-28 Simon Marchi <simon.marchi@efficios.com>
7172
7173 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7174 <push_dwarf_reg_entry_value>: Remove assert. Override
7175 per_objfile with caller_per_objfile.
7176
f030440d
TV
71772020-05-28 Tom de Vries <tdevries@suse.de>
7178
7179 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7180 PR gold/15646 workaround to symbol kind "type".
7181
f0fbb768
TT
71822020-05-27 Tom Tromey <tromey@adacore.com>
7183
7184 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7185
af0b2a3e
TT
71862020-05-27 Tom Tromey <tromey@adacore.com>
7187
7188 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7189 Use htab_find_with_hash.
7190 <add_abbrev>: Remove "abbrev_number" parameter.
7191 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7192 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7193 (hash_abbrev): Add comment.
7194 (abbrev_table::lookup_abbrev): Move to header file.
7195 (abbrev_table::read): Update.
7196
7d00ffec
TT
71972020-05-27 Tom Tromey <tromey@adacore.com>
7198
7199 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7200 method.
7201 <canonical_name>: New member.
7202 <raw_name>: Rename from "name".
7203 (partial_die_info): Initialize canonical_name.
7204 (scan_partial_symbols): Check raw_name.
7205 (partial_die_parent_scope, partial_die_full_name)
7206 (add_partial_symbol, add_partial_subprogram)
7207 (add_partial_enumeration, load_partial_dies): Use "name" method.
7208 (partial_die_info::name): New method.
7209 (partial_die_info::read, guess_partial_die_structure_name)
7210 (partial_die_info::fixup): Update.
7211
697bba18
TT
72122020-05-27 Tom Tromey <tromey@adacore.com>
7213
7214 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7215 <get_ref_die_offset>: Inline.
7216 <get_ref_die_offset_complaint>: New method.
7217 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7218 (attribute::get_ref_die_offset_complaint): Rename from
7219 get_ref_die_offset. Just issue complaint.
7220
c17ace43
HD
72212020-05-27 Hannes Domani <ssbssa@yahoo.de>
7222
7223 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7224
96445f0b
HD
72252020-05-27 Hannes Domani <ssbssa@yahoo.de>
7226
7227 * exec.c (exec_file_attach): Use errno value of first openp failure.
7228
ac637ec3
HD
72292020-05-27 Hannes Domani <ssbssa@yahoo.de>
7230
7231 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7232 Don't close thread handle.
7233
17ee85fc
TT
72342020-05-27 Tom Tromey <tom@tromey.com>
7235 Simon Marchi <simon.marchi@efficios.com>
7236
7237 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7238 shared_ptr.
7239 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7240 member.
7241 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7242 dwarf2_per_bfd_objfile_data_key>: New globals.
7243 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7244 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7245 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7246 shared.
7247 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7248 short-circuit when sharing.
7249 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7250 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7251
39b16f87
SM
72522020-05-27 Simon Marchi <simon.marchi@efficios.com>
7253
7254 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7255 to...
7256 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7257 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7258
fcf23d5b
SM
72592020-05-27 Simon Marchi <simon.marchi@efficios.com>
7260
7261 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7262 build_name_components, find_name_components_bounds>:
7263 Add per_objfile parameter.
7264 (struct mapped_index) <symbol_name_at>: Likewise.
7265 (struct mapped_debug_names): Remove constructor.
7266 <dwarf2_per_objfile>: Remove field.
7267 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7268 (mapped_index_base::find_name_components_bounds,
7269 mapped_index_base::build_name_components,
7270 dw2_expand_symtabs_matching_symbol): Likewise.
7271 (class mock_mapped_index) <symbol_name_at>: Likewise.
7272 (check_match): Likewise.
7273 (check_find_bounds_finds): Likewise.
7274 (test_mapped_index_find_name_component_bounds): Update.
7275 (CHECK_MATCH): Update.
7276 (dw2_expand_symtabs_matching): Update.
7277 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7278 per_objfile parameter.
7279 <find_vec_in_debug_names>: Likewise.
7280 <m_per_objfile>: New field.
7281 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7282 parameter.
7283 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7284 (dw2_debug_names_iterator::next): Update.
7285 (dw2_debug_names_lookup_symbol): Update.
7286 (dw2_debug_names_expand_symtabs_for_function): Update.
7287 (dw2_debug_names_map_matching_symbols): Update.
7288 (dw2_debug_names_expand_symtabs_matching): Update.
7289 (dwarf2_read_debug_names): Update.
7290
7188ed02
SM
72912020-05-27 Simon Marchi <simon.marchi@efficios.com>
7292
7293 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7294 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7295 move to dwarf2_per_objfile.
7296 <read_in_chain>: Remove.
7297 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7298 remove_all_cus, age_comp_units>: New methods.
7299 <m_dwarf2_cus>: New member.
7300 (struct dwarf2_per_cu_data) <cu>: Remove.
7301 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7302 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7303 moved to methods of dwarf2_per_objfile.
7304 (dwarf2_clear_marks): Remove.
7305 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7306 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7307 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7308 (dwarf2_per_objfile::remove_all_cus): New.
7309 (class free_cached_comp_units) <~free_cached_comp_units>:
7310 Update.
7311 (load_cu): Update.
7312 (dw2_do_instantiate_symtab): Adjust.
7313 (fill_in_sig_entry_from_dwo_entry): Adjust.
7314 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7315 (cutu_reader::cutu_reader): Likewise.
7316 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7317 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7318 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7319 and dwarf2_per_objfile::age_comp_units.
7320 (load_partial_comp_unit): Update.
7321 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7322 (process_queue): Likewise.
7323 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7324 backlink.
7325 (dwarf2_read_addr_index): Likewise.
7326 (follow_die_offset): Likewise.
7327 (dwarf2_fetch_die_loc_sect_off): Likewise.
7328 (dwarf2_fetch_constant_bytes): Likewise.
7329 (dwarf2_fetch_die_type_sect_off): Likewise.
7330 (follow_die_sig_1): Likewise.
7331 (load_full_type_unit): Likewise.
7332 (read_signatured_type): Likewise.
7333 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7334 (dwarf2_cu::~dwarf2_cu): Remove.
7335 (dwarf2_per_objfile::get_cu): New.
7336 (dwarf2_per_objfile::set_cu): New.
7337 (age_cached_comp_units): Rename to...
7338 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7339 to std::unordered_map.
7340 (free_one_cached_comp_unit): Rename to...
7341 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7342 to std::unordered_map.
7343 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7344 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7345 a dwarf2_per_objfile in data.
7346 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7347 (dwarf2_clear_marks): Remove.
7348
2e671100
SM
73492020-05-27 Simon Marchi <simon.marchi@efficios.com>
7350
7351 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7352 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7353 (init_tu_and_read_dwo_dies): Likewise.
7354 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7355 (cutu_reader::cutu_reader): Likewise.
7356 (load_partial_comp_unit): Likewise.
7357 (process_psymtab_comp_unit): Update.
7358 (build_type_psymtabs_1): Update.
7359 (process_skeletonless_type_unit): Update.
7360 (load_full_comp_unit): Update.
7361 (find_partial_die): Update.
7362 (dwarf2_read_addr_index): Update.
7363 (read_signatured_type): Update.
7364
2e6a9f79
SM
73652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7366
7367 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7368 m_header_read_in>: New fields.
7369 <get_header>: New method.
7370 * dwarf2/read.c (per_cu_header_read_in): Remove.
7371 (dwarf2_per_cu_data::get_header): New.
7372 (dwarf2_per_cu_data::addr_size): Update.
7373 (dwarf2_per_cu_data::offset_size): Update.
7374 (dwarf2_per_cu_data::ref_addr_size): Update.
7375
1b555f17
SM
73762020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7377
7378 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7379 (dw2_do_instantiate_symtab): Update.
7380 (queue_and_load_all_dwo_tus): Change parameter from
7381 dwarf2_per_cu_data to dwarf2_cu.
7382 (dwarf2_fetch_die_loc_sect_off): Update.
7383 (dwarf2_fetch_constant_bytes): Update.
7384 (dwarf2_fetch_die_type_sect_off): Update.
7385
8fc0b21d
SM
73862020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7387
7388 * dwarf2/read.c (process_full_comp_unit,
7389 process_full_type_unit): Remove per_cu, per_objfile paramters.
7390 Add dwarf2_cu parameter.
7391 (process_queue): Update.
7392
168c9250
SM
73932020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7394
7395 * dwarf2/read.c (create_cu_from_index_list): Replace
7396 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7397 (create_cus_from_index_list): Likewise.
7398 (create_cus_from_index): Likewise.
7399 (create_signatured_type_table_from_index): Likewise.
7400 (create_cus_from_debug_names_list): Likewise.
7401 (create_cus_from_debug_names): Likewise.
7402 (dwarf2_read_gdb_index): Update.
7403 (dwarf2_read_debug_names): Update.
7404
e286671b
TT
74052020-05-27 Tom Tromey <tom@tromey.com>
7406 Simon Marchi <simon.marchi@efficios.com>
7407
7408 * dwarf2/read.h (struct dwarf2_per_objfile)
7409 <get_type_for_signatured_type, set_type_for_signatured_type>:
7410 New methods.
7411 <m_type_map>: New member.
7412 (struct signatured_type) <type>: Remove.
7413 * dwarf2/read.c
7414 (dwarf2_per_objfile::get_type_for_signatured_type,
7415 dwarf2_per_objfile::set_type_for_signatured_type): New.
7416 (get_signatured_type): Use new methods.
7417
8adb8487
TT
74182020-05-27 Tom Tromey <tom@tromey.com>
7419 Simon Marchi <simon.marchi@efficios.com>
7420
7421 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7422 (struct dwarf2_per_objfile) <type_units>: New member.
7423 <get_type_unit_group_unshareable>: New method.
7424 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7425 num_symtabs, symtabs>: Remove; move to
7426 type_unit_group_unshareable.
7427 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7428 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7429 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7430
127bbf4b
SM
74312020-05-27 Simon Marchi <simon.marchi@efficios.com>
7432
7433 * dwarf2/read.h (struct dwarf2_per_cu_data):
7434 <dwarf2_per_objfile>: Remove.
7435 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7436 dwarf2_per_objfile.
7437 (create_signatured_type_table_from_index): Likewise.
7438 (create_signatured_type_table_from_debug_names): Likewise.
7439 (create_debug_type_hash_table): Likewise.
7440 (fill_in_sig_entry_from_dwo_entry): Likewise.
7441 (create_type_unit_group): Likewise.
7442 (read_comp_units_from_section): Likewise.
7443 (create_cus_hash_table): Likewise.
7444
f6e649dd
SM
74452020-05-27 Simon Marchi <simon.marchi@efficios.com>
7446
7447 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7448 dwarf2_per_cu_data::dwarf2_per_objfile.
7449 (compute_compunit_symtab_includes): Likewise.
7450 (dwarf2_cu::start_symtab): Likewise.
7451
aa66c379
SM
74522020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7453
7454 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7455 parameter.
7456 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7457 (read_namespace_alias): Update.
7458 (lookup_die_type): Update.
7459 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7460 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7461 Update.
7462 (disassemble_dwarf_expression): Update.
7463
120ce1b5
SM
74642020-05-27 Simon Marchi <simon.marchi@efficios.com>
7465
7466 * dwarf2/read.h (struct dwarf2_queue_item): Add
7467 dwarf2_per_objfile parameter, assign new parameter.
7468 <per_objfile>: New field.
7469 * dwarf2/read.c (free_one_cached_comp_unit): Add
7470 dwarf2_per_objfile parameter.
7471 (queue_comp_unit): Likewise.
7472 (dw2_do_instantiate_symtab): Update.
7473 (process_psymtab_comp_unit): Update.
7474 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7475 (process_imported_unit_die): Update.
7476 (queue_and_load_dwo_tu): Update.
7477 (follow_die_offset): Update.
7478 (follow_die_sig_1): Update.
7479
9f47c707
SM
74802020-05-27 Simon Marchi <simon.marchi@efficios.com>
7481
7482 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7483 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7484 (read_call_site_scope): Assign per_objfile.
7485 (dwarf2_per_cu_data::objfile): Remove.
7486 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7487 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7488 dwarf2_per_objfile parameter.
7489 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7490 dwarf2_per_objfile parameter.
7491 (dwarf_expr_reg_to_entry_parameter): Add output
7492 dwarf2_per_objfile parameter.
7493 (locexpr_get_frame_base): Update.
7494 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7495 <push_dwarf_reg_entry_value>: Update.
7496 <call_site_to_target_addr>: Update.
7497 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7498 parameter.
7499 (value_of_dwarf_reg_entry): Update.
7500 (rw_pieced_value): Update.
7501 (indirect_synthetic_pointer): Update.
7502 (dwarf2_evaluate_property): Update.
7503 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7504 parameter.
7505 (locexpr_read_variable): Update.
7506 (locexpr_get_symbol_read_needs): Update.
7507 (loclist_read_variable): Update.
7508
14095eb3
SM
75092020-05-27 Simon Marchi <simon.marchi@efficios.com>
7510
7511 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7512 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7513 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7514 parameter.
7515 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7516 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7517 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7518 parameter.
7519 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7520 sect_variable_value): Add dwarf2_per_objfile parameter.
7521 (class dwarf_evaluate_loc_desc) <dwarf_call,
7522 dwarf_variable_value>: Update.
7523 (fetch_const_value_from_synthetic_pointer): Add
7524 dwarf2_per_objfile parameter.
7525 (fetch_const_value_from_synthetic_pointer): Update.
7526 (coerced_pieced_ref): Update.
7527 (class symbol_needs_eval_context) <dwarf_call,
7528 dwarf_variable_value>: Update.
7529 (dwarf2_compile_expr_to_ax): Update.
7530
3c3cd3d4
SM
75312020-05-27 Simon Marchi <simon.marchi@efficios.com>
7532
7533 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7534 parameter.
7535 (dwarf2_evaluate_loc_desc_full): Update.
7536
82ca3f51
SM
75372020-05-27 Simon Marchi <simon.marchi@efficios.com>
7538
7539 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7540 parameter.
7541 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7542 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7543 dwarf2_per_objfile parameter.
7544 (decode_debug_loc_dwo_addresses): Likewise.
7545 (dwarf2_find_location_expression): Update.
7546 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7547 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7548 parameter.
7549 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7550 parameter.
7551 (locexpr_describe_location_1): Likewise.
7552 (locexpr_describe_location): Update.
7553
4b167ea1
SM
75542020-05-27 Simon Marchi <simon.marchi@efficios.com>
7555
7556 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7557 Remove.
7558 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7559 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7560 (dwarf2_compile_property_to_c): Update.
7561 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7562 use text offset from objfile.
7563 (locexpr_tracepoint_var_ref): Update.
7564 (locexpr_generate_c_location): Update.
7565 (loclist_describe_location): Update.
7566 (loclist_tracepoint_var_ref): Update.
7567 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7568 dwarf2_per_objfile parameter.
7569 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7570 use text offset from objfile.
7571 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7572
89b07335
SM
75732020-05-27 Simon Marchi <simon.marchi@efficios.com>
7574
7575 * dwarf2/expr.h (struct dwarf_expr_context)
7576 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7577 <offset>: Remove.
7578 <per_objfile>: New member.
7579 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7580 dwarf2_per_objfile parameter. Don't set offset, set
7581 per_objfile.
7582 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7583 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7584 a dwarf2_per_objfile object instead of an offset.
7585 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7586 constructor.
7587 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7588 to dwarf2_expr_executor constructor. Don't set offset.
7589 (dwarf2_fetch_cfa_info): Update.
7590 (struct dwarf2_frame_cache) <text_offset>: Remove.
7591 <per_objfile>: New field.
7592 (dwarf2_frame_cache): Update.
7593 (dwarf2_frame_prev_register): Update.
7594 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7595 <dwarf_evaluate_loc_desc>: Add constructor.
7596 (dwarf2_evaluate_loc_desc_full): Update.
7597 (dwarf2_locexpr_baton_eval): Update.
7598 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7599 Add constructor.
7600 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7601
293e7e51
SM
76022020-05-27 Simon Marchi <simon.marchi@efficios.com>
7603
7604 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7605 addr_sized_int_type>: Move to dwarf2_cu.
7606 <int_type>: Move to dwarf2_per_objfile.
7607 (struct dwarf2_per_objfile) <int_type>: Move here.
7608 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7609 addr_sized_int_type>: Move here.
7610 (read_func_scope): Update.
7611 (read_array_type): Update.
7612 (read_tag_string_type): Update.
7613 (attr_to_dynamic_prop): Update.
7614 (dwarf2_per_cu_data::int_type): Rename to...
7615 (dwarf2_per_objfile::int_type): ... this.
7616 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7617 (dwarf2_cu::addr_sized_int_type): ... this.
7618 (read_subrange_type): Update.
7619 (dwarf2_per_cu_data::addr_type): Rename to...
7620 (dwarf2_cu::addr_type): ... this.
7621 (set_die_type): Update.
7622
64874a40
SM
76232020-05-27 Simon Marchi <simon.marchi@efficios.com>
7624
7625 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7626 data through per_cu->cu.
7627
4ab09049
SM
76282020-05-27 Simon Marchi <simon.marchi@efficios.com>
7629
7630 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7631 dwarf2_per_cu_data parameter fo dwarf2_cu.
7632 (lookup_dwo_type_unit): Likewise.
7633 (read_cutu_die_from_dwo): Likewise.
7634 (lookup_dwo_unit): Likewise.
7635 (open_and_init_dwo_file): Likewise.
7636 (lookup_dwo_cutu): Likewise.
7637 (lookup_dwo_comp_unit): Likewise.
7638 (lookup_dwo_type_unit): Likewise.
7639 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7640 (cutu_reader::cutu_reader): Update.
7641
47b14e86
SM
76422020-05-27 Simon Marchi <simon.marchi@efficios.com>
7643
7644 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7645 parameter.
7646 (process_full_type_unit): Likewise.
7647 (process_queue): Update.
7648
43182c09
SM
76492020-05-27 Simon Marchi <simon.marchi@efficios.com>
7650
7651 * dwarf2/read.c (recursively_compute_inclusions): Add
7652 dwarf2_per_objfile parameter.
7653 (compute_compunit_symtab_includes): Likewise.
7654 (process_cu_includes): Update.
7655
7aa104c4
SM
76562020-05-27 Simon Marchi <simon.marchi@efficios.com>
7657
7658 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7659 parameter.
7660 (create_type_unit_group): Update.
7661 (process_psymtab_comp_unit_reader): Update.
7662 (build_type_psymtabs_reader): Update.
7663
e3beb21d
SM
76642020-05-27 Simon Marchi <simon.marchi@efficios.com>
7665
7666 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7667 object through m_this_cu->cu.
7668
d460f660
SM
76692020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7670
7671 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7672 the info parameter.
7673 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7674
ab432490
SM
76752020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7676
7677 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7678 per_objfile parameter.
7679 (load_full_type_unit): Add per_objfile parameter.
7680 (read_signatured_type): Likewise.
7681 (load_full_comp_unit): Likewise.
7682 (load_cu): Likewise.
7683 (dw2_do_instantiate_symtab): Likewise.
7684 (dw2_get_file_names): Likewise.
7685 (dw2_map_symtabs_matching_filename): Update.
7686 (dw_expand_symtabs_matching_file_matcher): Update.
7687 (dw2_map_symbol_filenames): Update.
7688 (process_psymtab_comp_unit): Add per_objfile parameter.
7689 (build_type_psymtabs_1): Update.
7690 (process_skeletonless_type_unit): Update.
7691 (dwarf2_build_psymtabs_hard): Update.
7692 (load_partial_comp_unit): Add per_objfile parameter.
7693 (scan_partial_symbols): Update.
7694 (load_full_comp_unit): Add per_objfile parameter.
7695 (process_imported_unit_die): Update.
7696 (create_cus_hash_table): Update.
7697 (find_partial_die): Update.
7698 (dwarf2_read_addr_index): Update.
7699 (follow_die_offset): Update.
7700 (dwarf2_fetch_die_loc_sect_off): Update.
7701 (dwarf2_fetch_constant_bytes): Update.
7702 (dwarf2_fetch_die_type_sect_off): Update.
7703 (follow_die_sig_1): Update.
7704 (load_full_type_unit): Add per_objfile parameter.
7705 (read_signatured_type): Likewise.
7706
313bad1b
SM
77072020-05-27 Simon Marchi <simon.marchi@efficios.com>
7708
7709 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7710 of objfile_name.
7711
c3699833
SM
77122020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7713
7714 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7715 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7716 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7717 field.
7718 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7719 (create_cus_from_index): Update.
7720 (dwarf2_read_gdb_index): Update.
7721 (create_cus_from_debug_names): Update.
7722 (dwarf2_read_debug_names): Update.
7723 (get_abbrev_section_for_cu): Update.
7724 (create_all_comp_units): Update.
7725 (read_attribute_value): Update.
7726 (get_debug_line_section): Update.
7727 * dwarf2/index-cache.c (index_cache::store): Update.
7728 * dwarf2/index-write.c (save_gdb_index_command): Update.
7729 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7730
1859c670
SM
77312020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7732
7733 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7734 member.
7735 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7736 dwarf2_per_cu_data::per_bfd.
7737 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7738 (create_type_unit_group): Likewise.
7739 (queue_comp_unit): Remove reference to
7740 per_cu->dwarf2_per_objfile.
7741 (maybe_queue_comp_unit): Likewise.
7742 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7743 (create_cus_hash_table): Assign new field.
7744
5e22e966
SM
77452020-05-27 Simon Marchi <simon.marchi@efficios.com>
7746
7747 * dwarf2/read.c: Replace
7748 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7749 dwarf2_cu->per_objfile throughout.
7750
97a1449a
SM
77512020-05-27 Simon Marchi <simon.marchi@efficios.com>
7752
7753 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7754 parameter, don't use per_cu->dwarf2_per_objfile.
7755 (dw2_instantiate_symtab): Likewise.
7756 (dw2_find_last_source_symtab): Update.
7757 (dw2_map_expand_apply): Update.
7758 (dw2_lookup_symbol): Update.
7759 (dw2_expand_symtabs_for_function): Update.
7760 (dw2_expand_all_symtabs): Update.
7761 (dw2_expand_symtabs_with_fullname): Update.
7762 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7763 don't use per_cu->dwarf2_per_objfile.
7764 (dw2_expand_marked_cus): Update.
7765 (dw2_find_pc_sect_compunit_symtab): Update.
7766 (dw2_debug_names_lookup_symbol): Update.
7767 (dw2_debug_names_expand_symtabs_for_function): Update.
7768 (dw2_debug_names_map_matching_symbols): Update.
7769 (dwarf2_psymtab::expand_psymtab): Update.
7770
9e021579
SM
77712020-05-27 Simon Marchi <simon.marchi@efficios.com>
7772
7773 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7774 <per_objfile>: New member.
7775 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7776 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7777 call to dwarf2_cu.
7778 (cutu_reader::cutu_reader): Update.
7779 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7780
ae090bdb
SM
77812020-05-27 Simon Marchi <simon.marchi@efficios.com>
7782
7783 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7784 struct dwarf2_per_objfile.
7785 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7786 dwarf2_per_bfd.
7787 * dwarf2/read.c (set_die_type): Update.
7788 (get_die_type_at_offset): Update.
7789
af758d11
SM
77902020-05-27 Tom Tromey <tom@tromey.com>
7791 Simon Marchi <simon.marchi@efficios.com>
7792
7793 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7794 method.
7795 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7796 get_symtab, set_symtab>: New methods.
7797 <m_symtabs>: New field.
7798 (struct dwarf2_psymtab): Derive from partial_symtab.
7799 <readin_p, get_compunit_symtab>: Declare methods.
7800 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7801 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7802 New methods.
7803 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7804 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7805 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7806 (dw2_symtab_iter_next, dw2_print_stats)
7807 (dw2_expand_symtabs_with_fullname)
7808 (dw2_expand_symtabs_matching_one)
7809 (dw_expand_symtabs_matching_file_matcher)
7810 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7811 (dw2_debug_names_iterator::next)
7812 (dw2_debug_names_map_matching_symbols)
7813 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7814 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7815 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7816 New methods.
7817 (get_compunit_symtab, process_full_comp_unit)
7818 (process_full_type_unit): Update.
7819 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7820
5989a64e
SM
78212020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7822
7823 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7824 then introduce a new dwarf2_per_objfile type.
7825 <read_line_string>: Move to the new dwarf2_per_objfile type.
7826 <objfile>: Likewise.
7827 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7828 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7829 dwarf2_per_objfile->per_bfd.
7830 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7831 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7832 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7833 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7834 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7835 (dwarf2_per_objfile::locate_sections): Rename to...
7836 (dwarf2_per_bfd::locate_sections): ... this.
7837 (dwarf2_per_objfile::get_cutu): Rename to...
7838 (dwarf2_per_bfd::get_cutu): ... this.
7839 (dwarf2_per_objfile::get_cu): Rename to...
7840 (dwarf2_per_bfd::get_cu): ... this.
7841 (dwarf2_per_objfile::get_tu): Rename to...
7842 (dwarf2_per_bfd::get_tu): ... this.
7843 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7844 (dwarf2_per_bfd::allocate_per_cu): ... this.
7845 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7846 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7847 (get_gdb_index_contents_ftype): Change parameter from
7848 dwarf2_per_objfile to dwarf2_per_bfd.
7849 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7850 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7851
a50264ba
TT
78522020-05-27 Tom Tromey <tom@tromey.com>
7853 Simon Marchi <simon.marchi@efficios.com>
7854
7855 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7856 (allocate_piece_closure): Set "per_objfile" member.
7857 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7858 (locexpr_describe_location, loclist_describe_location): Use new
7859 member.
7860 * dwarf2/read.c (read_call_site_scope)
7861 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7862 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7863 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7864 handle_data_member_location): Set per_objfile member.
7865 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7866 member.
7867 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7868
d3473f0c
TT
78692020-05-27 Tom Tromey <tom@tromey.com>
7870
7871 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7872 allocate_signatured_type>: Declare new methods.
7873 <m_num_psymtabs>: New member.
7874 (struct dwarf2_per_cu_data) <index>: New member.
7875 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7876 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7877 (create_cu_from_index_list): Use allocate_per_cu.
7878 (create_signatured_type_table_from_index)
7879 (create_signatured_type_table_from_debug_names)
7880 (create_debug_type_hash_table, add_type_unit)
7881 (read_comp_units_from_section): Use allocate_signatured_type.
7882
5717c425
TT
78832020-05-27 Tom Tromey <tom@tromey.com>
7884
7885 * psymtab.c (partial_map_expand_apply)
7886 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7887 (psym_lookup_global_symbol_language)
7888 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7889 (psym_print_stats, psym_expand_symtabs_for_function)
7890 (psym_map_symbol_filenames, psym_map_matching_symbols)
7891 (psym_expand_symtabs_matching)
7892 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7893 (maintenance_check_psymtabs): Update.
7894 * psympriv.h (struct partial_symtab) <readin_p,
7895 get_compunit_symtab>: Add objfile parameter.
7896 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7897 Likewise.
7898 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7899 get_compunit_symtab>: Likewise.
7900 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7901
45940949
TT
79022020-05-27 Tom Tromey <tom@tromey.com>
7903
7904 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7905 member.
7906 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7907 (create_cu_from_index_list)
7908 (create_signatured_type_table_from_index)
7909 (create_signatured_type_table_from_debug_names)
7910 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7911 (dwarf2_create_include_psymtab)
7912 (create_debug_type_hash_table, add_type_unit)
7913 (create_type_unit_group, read_comp_units_from_section)
7914 (dwarf2_compute_name, create_cus_hash_table)
7915 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7916 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7917 obstack.
7918 (dw2_get_real_path): Likewise. Change argument to
7919 dwarf2_per_objfile.
7920
f8c6d152
LM
79212020-05-27 Luis Machado <luis.machado@linaro.org>
7922
7923 PR tdep/26000
7924 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7925 for ldrd (immediate).
7926
e98d2e6d
PW
79272020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7928
7929 * command.h: Add comment giving the name of class_tui.
7930 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7931 create the fake command for the help for class_tui.
7932
53a47a3e
TT
79332020-05-26 Tom Tromey <tromey@adacore.com>
7934
7935 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7936 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7937 (val_atr): New function.
7938 (value_val_atr): Use it.
7939 * ada-valprint.c (print_optional_low_bound): Change low bound
7940 handling for enums.
7941 (val_print_packed_array_elements): Don't call discrete_position.
7942 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7943 discrete_position for enum types.
7944 * language.c (default_print_array_index): Change type.
7945 * language.h (struct language_defn) <la_print_array_index>: Add
7946 index_type parameter, change type of index_value.
7947 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7948 (default_print_array_index): Update.
7949 * valprint.c (maybe_print_array_index): Don't call
7950 value_from_longest. Update.
7951 (value_print_array_elements): Don't call discrete_position.
7952
0bc2354b
TT
79532020-05-26 Tom Tromey <tromey@adacore.com>
7954
7955 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7956 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7957
1218a4bf
CDA
79582020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7959
7960 PR gdb/13519
7961 * avr-tdep.c (avr_integer_to_address): Return data or code
7962 address accordingly to the second 'type' argument of the
7963 function.
7964
92651b1d
MW
79652020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7966
7967 * infcmd.c, inferior.h: (construct_inferior_arguments):
7968 Moved function from here to gdbsupport/common-inferior.{h,cc}
7969
0a4f5f8c
TT
79702020-05-23 Tom Tromey <tom@tromey.com>
7971
7972 Revert commit eca1f90c:
7973 * NEWS: Remove entry for completion styling.
7974 * completer.c (_rl_completion_prefix_display_length): Move
7975 declaration later.
7976 (gdb_fnprint): Revert.
7977 (gdb_display_match_list_1): Likewise.
7978 * cli/cli-style.c (completion_prefix_style)
7979 (completion_difference_style, completion_suffix_style): Remove.
7980 (_initialize_cli_style): Revert.
7981 * cli/cli-style.h (completion_prefix_style)
7982 (completion_difference_style, completion_suffix_style): Don't
7983 declare.
7984
e08bd6c5
PA
79852020-05-24 Pedro Alves <palves@redhat.com>
7986
7987 * symtab.c (completion_list_add_name): Return boolean indication
7988 of whether the symbol matched.
7989 (completion_list_add_symbol): Don't try to remove C++ aliases if
7990 the symbol didn't match in the first place.
7991 * symtab.h (completion_list_add_name): Return bool.
7992
ceacbf6e
SM
79932020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7994
7995 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7996 type::field.
7997
26f16254
JB
79982020-05-23 Joel Brobecker <brobecker@adacore.com>
7999
8000 GDB 9.2 released.
8001
eca1f90c
TT
80022020-05-23 Tom Tromey <tom@tromey.com>
8003
8004 * NEWS: Add entry for completion styling.
8005 * completer.c (_rl_completion_prefix_display_length): Move
8006 declaration earlier.
8007 (gdb_fnprint): Use completion_style.
8008 (gdb_display_match_list_1): Likewise.
8009 * cli/cli-style.c (completion_prefix_style)
8010 (completion_difference_style, completion_suffix_style): New
8011 globals.
8012 (_initialize_cli_style): Register new globals.
8013 * cli/cli-style.h (completion_prefix_style)
8014 (completion_difference_style, completion_suffix_style): Declare.
8015
51e2cfa2
PA
80162020-05-23 Pedro Alves <palves@redhat.com>
8017
8018 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8019 (parse_escape): Use ISDIGIT instead of isdigit.
8020 (puts_debug): Use gdb_isprint instead of isprint.
8021 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8022 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8023 ISSPACE instead of isspace.
8024 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8025 instead of isspace.
8026 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8027 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8028 instead of isxdigit and ISDIGIT instead of isdigit.
8029
80fc5e77
SM
80302020-05-22 Simon Marchi <simon.marchi@efficios.com>
8031
8032 * gdbtypes.h (struct type) <field>: New method.
8033 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8034 or type::field.
8035
3cabb6b0
SM
80362020-05-22 Simon Marchi <simon.marchi@efficios.com>
8037
8038 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8039 (TYPE_FIELDS): Use type::fields. Change all call sites that
8040 modify the propery to use type::set_fields instead.
8041
1f704f76
SM
80422020-05-22 Simon Marchi <simon.marchi@efficios.com>
8043
8044 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8045 type::num_fields instead.
8046
5e33d5f4
SM
80472020-05-22 Simon Marchi <simon.marchi@efficios.com>
8048
8049 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8050 methods.
8051 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8052 that modify the number of fields to use type::set_num_fields
8053 instead.
8054
9392ebb3
TT
80552020-05-22 Tom Tromey <tromey@adacore.com>
8056
8057 * compile/compile-object-load.h (munmap_list_free): Don't
8058 declare.
8059
7c13f4e8
AB
80602020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8061
8062 * annotate.c (annotate_source_line): Update return type, add call
8063 to update current symtab and line.
8064 * annotate.h (annotate_source_line): Update return type, and
8065 extend header comment.
8066 * source.c (info_line_command): Check annotation_level before
8067 calling annotate_source_line.
8068 * stack.c (print_frame_info): If calling annotate_source_line
8069 returns true, then don't print any other source line information.
8070
aa370940
SM
80712020-05-21 Simon Marchi <simon.marchi@efficios.com>
8072
8073 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8074
84d53fa9
SM
80752020-05-21 Simon Marchi <simon.marchi@efficios.com>
8076
8077 * coffread.c (patch_type): Remove NULL check before xfree.
8078 * corefile.c (set_gnutarget): Likewise.
8079 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8080 * exec.c (build_section_table): Likewise.
8081 * remote.c (remote_target::pass_signals): Likewise.
8082 * utils.c (n_spaces): Likewise.
8083 * cli/cli-script.c (document_command): Likewise.
8084 * i386-windows-tdep.c (core_process_module_section): Likewise.
8085 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8086
9d428aae
SM
80872020-05-20 Simon Marchi <simon.marchi@efficios.com>
8088
8089 * symfile.c (reread_symbols): Clear objfile's section_offsets
8090 vector and section indices, re-compute them by calling
8091 sym_offsets.
8092
250106a7
TT
80932020-05-20 Tom Tromey <tromey@adacore.com>
8094
8095 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 8096 (desc_one_bound, desc_index_type): Compute field name.
250106a7 8097
9a0bacfb
TV
80982020-05-20 Tom de Vries <tdevries@suse.de>
8099
8100 PR symtab/25833
8101 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8102
7b958a48
AM
81032020-05-20 Alan Modra <amodra@gmail.com>
8104
8105 PR 25993
8106 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8107 bfd_set_filename.
8108 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8109 passed to bfd_set_filename.
8110 * symfile-mem.c (add_vsyscall_page): Likewise for string
8111 passed to symbol_file_add_from_memory.
8112 (symbol_file_add_from_memory): Make name param a const char* and
8113 don't strdup.
8114
c7e97679
AM
81152020-05-20 Alan Modra <amodra@gmail.com>
8116
8117 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8118 rather than accessing bfd->filename directly.
8119 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8120 and use bfd_section_name.
8121 * dwarf2/frame.c (decode_frame_entry): Likewise.
8122 * exec.c (exec_set_section_address): Likewise.
8123 * solib-aix.c (solib_aix_bfd_open): Likewise.
8124 * stap-probe.c (get_stap_base_address): Likewise.
8125 * symfile.c (reread_symbols): Likewise.
8126
563c591b
TT
81272020-05-19 Tom Tromey <tromey@adacore.com>
8128
8129 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8130
f408d82c
SM
81312020-05-19 Simon Marchi <simon.marchi@efficios.com>
8132
8133 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8134
98c59b52
PA
81352020-05-19 Pedro Alves <palves@redhat.com>
8136
8137 * NEWS (set exec-file-mismatch): Adjust entry.
8138 * exec.c: Include "build-id.h".
8139 (validate_exec_file): Try to match build IDs instead of filenames.
8140 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8141 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8142 and pass down 'warn_if_slow'.
8143 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8144 gdb_bfd_open_closure to pass it down.
8145 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8146
4111f652
PA
81472020-05-19 Pedro Alves <palves@redhat.com>
8148
8149 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8150 * target.c (target_fileio_open_1): Rename to target_fileio_open
8151 and make extern. Use bool.
8152 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8153 (target_fileio_read_alloc_1): Adjust.
8154 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8155 (target_fileio_open_warn_if_slow): Delete declaration.
8156
ad80db5b
PA
81572020-05-19 Pedro Alves <palves@redhat.com>
8158
8159 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8160 Adjust all callers.
8161
1d6ce4d3
YS
81622020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8163
8164 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8165 whether disp is negative.
8166
9005fbbb
SM
81672020-05-19 Simon Marchi <simon.marchi@efficios.com>
8168
8169 * symfile.h (struct symfile_segment_data)
8170 <~symfile_segment_data>: Remove.
8171 <segment_info>: Change to std::vector.
8172 * symfile.c (default_symfile_segments): Update.
8173 * elfread.c (elf_symfile_segments): Update.
8174
68b888ff
SM
81752020-05-19 Simon Marchi <simon.marchi@efficios.com>
8176
8177 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8178 <segments>: New.
8179 <segment_bases, segment_sizes>: Remove.
8180 * symfile.c (default_symfile_segments): Update.
8181 * elfread.c (elf_symfile_segments): Update.
8182 * remote.c (remote_target::get_offsets): Update.
8183 * solib-target.c (solib_target_relocate_section_addresses):
8184 Update.
8185
62982abd
SM
81862020-05-19 Simon Marchi <simon.marchi@efficios.com>
8187
8188 * symfile.h (struct symfile_segment_data): Initialize fields.
8189 <~symfile_segment_data>: Add.
8190 (symfile_segment_data_up): New.
8191 (struct sym_fns) <sym_segments>: Return a
8192 symfile_segment_data_up.
8193 (default_symfile_segments): Return a symfile_segment_data_up.
8194 (free_symfile_segment_data): Remove.
8195 (get_symfile_segment_data): Return a symfile_segment_data_up.
8196 * symfile.c (default_symfile_segments): Likewise.
8197 (get_symfile_segment_data): Likewise.
8198 (free_symfile_segment_data): Remove.
8199 (symfile_find_segment_sections): Update.
8200 * elfread.c (elf_symfile_segments): Return a
8201 symfile_segment_data_up.
8202 * remote.c (remote_target::get_offsets): Update.
8203 * solib-target.c (solib_target_relocate_section_addresses):
8204 Update.
8205 * symfile-debug.c (debug_sym_segments): Return a
8206 symfile_segment_data_up.
8207
7f204339
RO
82082020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8209
e52a0f1b
RO
8210 PR build/25981
8211 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8212 Hardcode register numbers.
8213
7f204339
RO
8214 PR build/25981
8215 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8216 procfs_find_LDT_entry): Remove.
8217 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8218 procfs_find_LDT_entry): Remove.
8219 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8220 Remove.
8221
7f32a4d5
PA
82222020-05-17 Pedro Alves <palves@redhat.com>
8223 Andrew Burgess <andrew.burgess@embecosm.com>
8224 Keno Fischer <keno@juliacomputing.com>
8225
8226 PR gdb/25741
8227 * breakpoint.c (build_target_condition_list): Update comments.
8228 (build_target_command_list): Update comments and skip matching
8229 locations.
8230 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8231 a separate function. Simplify "set breakpoint auto-hw off"
8232 handling.
8233 (insert_breakpoints): Update comment.
8234 (tracepoint_locations_match): New parameter. For breakpoints,
8235 compare location types too, if the caller wants to.
8236 (handle_automatic_hardware_breakpoints): New functions.
8237 (bp_location_is_less_than): Also sort by location type and
8238 hardware breakpoint length.
8239 (update_global_location_list): Handle "set breakpoint auto-hw on"
8240 here.
8241 (update_breakpoint_locations): Ask breakpoint_locations_match to
8242 ignore location types.
8243
7d93a1e0
SM
82442020-05-16 Simon Marchi <simon.marchi@efficios.com>
8245
8246 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8247 type::name instead.
8248
d0e39ea2
SM
82492020-05-16 Simon Marchi <simon.marchi@efficios.com>
8250
8251 * gdbtypes.h (struct type) <name, set_name>: New methods.
8252 (TYPE_CODE): Use type::name. Change all call sites used to set
8253 the name to use type::set_name instead.
8254
2dab0c7b
TT
82552020-05-16 Tom Tromey <tom@tromey.com>
8256
8257 * top.c (quit_force): Update.
8258 * infrun.c (handle_no_resumed): Update.
8259 * top.h (all_uis): New function.
8260 (ALL_UIS): Remove.
8261
59f7bd8d
SM
82622020-05-16 Simon Marchi <simon.marchi@efficios.com>
8263
8264 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8265
9bf058f0
PA
82662020-05-16 Pedro Alves <palves@redhat.com>
8267
8268 * ia64-linux-nat.c
8269 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8270 Declare method.
8271 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8272
8f86ae1a
SM
82732020-05-15 Simon Marchi <simon.marchi@efficios.com>
8274
8275 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8276 (sparc64_adi_info): Likewise.
8277
d6bc0792
TT
82782020-05-15 Tom Tromey <tom@tromey.com>
8279
8280 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8281 block_objfile.
8282 (lookup_objfile_from_block): Remove.
8283 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8284 (lookup_global_symbol): Use block_objfile.
8285 * symtab.h (lookup_objfile_from_block): Don't declare.
8286 * printcmd.c (clear_dangling_display_expressions): Use
8287 block_objfile.
8288 * parse.c (operator_check_standard): Use block_objfile.
8289
8c14c3a3
TT
82902020-05-15 Tom Tromey <tom@tromey.com>
8291
8292 * language.c (language_alloc_type_symbol): Set
8293 SYMBOL_SECTION.
8294 * symtab.c (initialize_objfile_symbol): Remove.
8295 (allocate_symbol): Remove.
8296 (allocate_template_symbol): Remove.
8297 * dwarf2/read.c (fixup_go_packaging): Use "new".
8298 (new_symbol): Use "new".
8299 (read_variable): Don't call initialize_objfile_symbol. Use
8300 "new".
8301 (read_func_scope): Use "new".
8302 * xcoffread.c (process_xcoff_symbol): Don't call
8303 initialize_objfile_symbol.
8304 (SYMBOL_DUP): Remove.
8305 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8306 "new".
8307 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8308 (allocate_template_symbol): Don't declare.
8309 (struct symbol): Add copy constructor. Change defaults.
8310 * jit.c (finalize_symtab): Use "new".
8311 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8312 Use "new".
8313 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8314 (common_block_end): Use "new".
8315 * mdebugread.c (parse_symbol): Use "new".
8316 (new_symbol): Likewise.
8317
5b4a1a8d
PW
83182020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8319
8320 * NEWS: Mention changes to help and apropos.
8321
57b4f16e
PW
83222020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8323
8324 * command.h (enum command_class): Improve comments, document
8325 that class_alias is for user-defined aliases, give the class
8326 name for each class, remove unused class_xdb.
8327 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8328 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8329 by a precise class.
8330 * infcmd.c (_initialize_infcmd): Likewise.
8331 * reverse.c (_initialize_reverse): Likewise.
8332 * stack.c (_initialize_stack): Likewise.
8333 * symfile.c (_initialize_symfile): Likewise.
8334 * tracepoint.c (_initialize_tracepoint): Likewise.
8335
7c05caf7
PW
83362020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8337
8338 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8339 when their aliased command is traversed.
8340 (help_cmd): Add fput_command_names_styled call to
8341 output command name and aliases when command has an alias.
8342
3b3aaacb
PW
83432020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8344
8345 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8346 * cli/cli-decode.c (help_cmd_list): Declare as static,
8347 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8348 a command together with the command.
8349 (fput_command_name_styled, fput_command_names_styled): New functions.
8350 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8351 fput_command_name_styled.
8352 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8353 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8354
7aa1b46f
PW
83552020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8356
8357 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8358 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8359 * command.h (cmd_show_list): Likewise.
8360 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8361 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8362
89bcba74
PW
83632020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8364
8365 * unittests/command-def-selftests.c (traverse_command_structure):
8366 Verify all commands of a list have the same prefix command and
8367 that only the top cmdlist commands have a null prefix.
8368
3f4d92eb
PW
83692020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8370
8371 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8372 as prefix, not one of its aliases.
8373 (set_cmd_prefix): Remove.
8374 (do_add_cmd): Centralize the setting of the prefix of a command, when
8375 command is defined after its full chain of prefix commands.
8376 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8377 (add_setshow_cmd_full): Likewise.
8378 (update_prefix_field_of_prefixed_commands): New function.
8379 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8380 update_prefix_field_of_prefixed_commands.
8381 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8382 addresses of remote_set_cmdlist and remote_show_cmdlist given
8383 as argument, not the address of an argument.
8384 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8385 * gdb/remote.c (_initialize_remote): Likewise.
8386
0605465f
PW
83872020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8388
8389 * cli/cli-cmds.c (alias_command): Check for an existing alias
8390 using lookup_cmd_composition, as valid_command_p is too strict
8391 and forbids aliases that are the prefix of an existing alias
8392 or command.
8393 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8394 command is properly recognised as a valid command.
8395
58e6ac70
PW
83962020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8397
8398 * unittests/help-doc-selftests.c: Rename to
8399 unittests/command-def-selftests.c
8400 * unittests/command-def-selftests.c (help_doc_tests): Update some
8401 comments.
8402 (command_structure_tests, traverse_command_structure): New namespace
8403 and function.
8404 (command_structure_invariants_tests): New function.
8405 (_initialize_command_def_selftests) Renamed from
8406 _initialize_help_doc_selftests, register command_structure_invariants
8407 selftest.
8408
a7b9ceb8
PW
84092020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8410
8411 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8412 an alias of 'show'.
8413
b2188a06
JB
84142020-05-15 Joel Brobecker <brobecker@adacore.com>
8415
8416 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8417 ada_is_fixed_point_type. Update all callers.
8418 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8419 all callers.
8420 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8421 Update all callers.
8422 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8423 print_fixed_point_type. Update all callers.
8424 * ada-valprint.c (ada_value_print_num): Replace call to
8425 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8426
a51951c2
KB
84272020-05-14 Kevin Buettner <kevinb@redhat.com>
8428
8429 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8430 processors.
8431 (cpu_supports_bts): Add CV_AMD case.
8432
29d6859f
LM
84332020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8434 Simon Marchi <simon.marchi@efficios.com>
8435
8436 * infrun.c (stop_all_threads): Collect multiple wait events at
8437 each pass.
8438
78134374
SM
84392020-05-14 Simon Marchi <simon.marchi@efficios.com>
8440
8441 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8442 type::code instead.
8443
67607e24
SM
84442020-05-14 Simon Marchi <simon.marchi@efficios.com>
8445
8446 * gdbtypes.h (struct type) <code, set_code>: New methods.
8447 (TYPE_CODE): Use type::code. Change all call sites used to set
8448 the code to use type::set_code instead.
8449
a05575d3
TBA
84502020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8451 Tom de Vries <tdevries@suse.de>
8452 Pedro Alves <palves@redhat.com>
8453
8454 PR threads/25478
8455 * infrun.c (stop_all_threads): Do NOT ignore
8456 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8457 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8458 received.
8459 (handle_no_resumed): Remove code handling a live inferior with no
8460 threads.
8461 * remote.c (has_single_non_exited_thread): New.
8462 (remote_target::update_thread_list): Do not delete a thread if is
8463 the last thread of the process.
8464 * thread.c (thread_select): Call delete_exited_threads instead of
8465 prune_threads.
8466
6ad82919
TBA
84672020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8468
8469 * infrun.c (stop_all_threads): Enable/disable thread events of all
8470 targets. Move a debug message denoting the end of the function
8471 into the SCOPED_EXIT block.
8472
d890404b
TBA
84732020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8474
8475 * process-stratum-target.h: Include <set>.
8476 (all_non_exited_process_targets, switch_to_target_no_thread): New
8477 function declarations.
8478 * process-stratum-target.c (all_non_exited_process_targets)
8479 (switch_to_target_no_thread): New function implementations.
8480
293b3ebc
TBA
84812020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8482
8483 * infrun.c (handle_inferior_event): Extract out a piece of code
8484 into...
8485 (mark_non_executing_threads): ...this new function.
8486
7ca9b62a
TBA
84872020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8488
8489 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8490 use.
8491
fc75c28b
TBA
84922020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8493
8494 * regcache.c (regcache_read_pc_protected): New function
8495 implementation that returns 0 if the PC cannot read via
8496 'regcache_read_pc'.
8497 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8498 instead of 'regcache_read_pc'.
8499 (keep_going_pass_signal): Ditto.
8500
a89febbd
TT
85012020-05-13 Tom Tromey <tromey@adacore.com>
8502
8503 * ada-lang.c (align_value): Remove.
8504 (ada_template_to_fixed_record_type_1): Use align_up.
8505
f7e23710
TBA
85062020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8507
8508 * async-event.c: Update the copyright year.
8509 * async-event.h: Update the copyright year.
8510
02ff80c2
SM
85112020-05-12 Simon Marchi <simon.marchi@efficios.com>
8512
8513 * objfiles.h (is_addr_in_objfile,
8514 shared_objfile_contains_address_p): Return bool.
8515 * objfile.c (is_addr_in_objfile,
8516 shared_objfile_contains_address_p): Return bool.
8517
4fd6c7e8
TT
85182020-05-11 Tom Tromey <tromey@adacore.com>
8519
8520 * cli/cli-cmds.c (info_command): Restore.
8521 (_initialize_cli_cmds): Use add_prefix_command for "info".
8522 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8523
5eb68a39
TT
85242020-05-11 Tom Tromey <tromey@adacore.com>
8525
8526 * ada-lang.c (ada_value_primitive_field): Now public.
8527 * ada-lang.h (ada_value_primitive_field): Declare.
8528 * ada-valprint.c (print_field_values): Use
8529 ada_value_primitive_field for wrapper fields.
8530
7666722f
TV
85312020-05-11 Tom de Vries <tdevries@suse.de>
8532
8533 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8534 MODULE_DOMAIN.
8535
3ee6bb11
TV
85362020-05-11 Tom de Vries <tdevries@suse.de>
8537
8538 PR symtab/25941
8539 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8540 with length 0, if not gdb-produced.
8541 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8542
43434996
TV
85432020-05-09 Tom de Vries <tdevries@suse.de>
8544
8545 PR gdb/25955
8546 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8547 calculation.
8548
2f78cffc
TT
85492020-05-09 Tom Tromey <tom@tromey.com>
8550
8551 * top.c (server_command): Now bool.
8552 * top.h (server_command): Now bool.
8553
4f7bc5ed
TT
85542020-05-08 Tom Tromey <tromey@adacore.com>
8555
8556 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8557 already being processed.
8558
8be4b118
TT
85592020-05-08 Tom Tromey <tom@tromey.com>
8560
8561 * printcmd.c (struct display) <next>: Remove.
8562 <display>: New constructor.
8563 <exp_string>: Now a std::string.
8564 <enabled_p>: Now a bool.
8565 (display_number): Move definition earlier.
8566 (displays): Rename from display_chain. Now a std::vector.
8567 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8568 (display_command): Update.
8569 (do_one_display, disable_display)
8570 (enable_disable_display_command, do_enable_disable_display):
8571 Update.
8572 (free_display): Remove.
8573 (clear_displays): Rewrite.
8574 (delete_display): Update.
8575 (map_display_numbers): Use function_view. Remove "data"
8576 parameter. Update.
8577 (do_delete_display): Remove.
8578 (undisplay_command): Update.
8579 (do_one_display, do_displays, disable_display)
8580 (info_display_command): Update.
8581 (do_enable_disable_display): Remove.
8582 (enable_disable_display_command)
8583 (clear_dangling_display_expressions): Update.
8584
94c93c35
TT
85852020-05-08 Tom Tromey <tom@tromey.com>
8586
8587 * symtab.c (set_symbol_cache_size)
8588 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8589 (maintenance_print_symbol_cache_statistics): Update.
8590 * symmisc.c (print_symbol_bcache_statistics)
8591 (print_objfile_statistics, maintenance_print_objfiles)
8592 (maintenance_info_symtabs, maintenance_check_symtabs)
8593 (maintenance_expand_symtabs, maintenance_info_line_tables):
8594 Update.
8595 * symfile-debug.c (set_debug_symfile): Update.
8596 * source.c (forget_cached_source_info): Update.
8597 * python/python.c (gdbpy_progspaces): Update.
8598 * psymtab.c (maintenance_info_psymtabs): Update.
8599 * probe.c (parse_probes): Update.
8600 * linespec.c (iterate_over_all_matching_symtabs)
8601 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8602 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8603 * exec.c (exec_target::close): Update.
8604 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8605 * breakpoint.c (print_one_breakpoint_location)
8606 (create_longjmp_master_breakpoint)
8607 (create_std_terminate_master_breakpoint): Update.
8608 * progspace.c (program_spaces): Now a std::vector.
8609 (maybe_new_address_space): Update.
8610 (add_program_space): Remove.
8611 (program_space::program_space): Update.
8612 (remove_program_space): Update.
8613 (number_of_program_spaces): Remove.
8614 (print_program_space, update_address_spaces): Update.
8615 * progspace.h (program_spaces): Change type.
8616 (ALL_PSPACES): Remove.
8617 (number_of_program_spaces): Don't declare.
8618 (struct program_space) <next>: Remove.
8619
a1fd1ac9
TT
86202020-05-08 Tom Tromey <tom@tromey.com>
8621
8622 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8623 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8624 (enable_break): Update.
8625 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8626 (frv_fdpic_find_canonical_descriptor): Update.
8627 (frv_fetch_objfile_link_map): Update.
8628 * progspace.c (program_space::free_all_objfiles): Update.
8629 (program_space::solibs): New method.
8630 * progspace.h (struct program_space) <solibs>: New method.
8631 * solist.h (master_so_list): Don't declare.
8632 (ALL_SO_LIBS): Remove.
8633 * solib.h (so_list_head): Remove.
8634 (update_solib_list): Update comment.
8635 * solib.c (master_so_list): Remove.
8636 (solib_used, update_solib_list, solib_add)
8637 (info_sharedlibrary_command, clear_solib)
8638 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8639
38eae084
TT
86402020-05-08 Tom Tromey <tom@tromey.com>
8641
8642 * extension.c (extension_languages): Now a std::array.
8643 (ALL_EXTENSION_LANGUAGES): Remove.
8644 (get_ext_lang_defn, get_ext_lang_of_file)
8645 (eval_ext_lang_from_control_command): Update.
8646 (finish_ext_lang_initialization)
8647 (auto_load_ext_lang_scripts_for_objfile)
8648 (ext_lang_type_printers::ext_lang_type_printers)
8649 (apply_ext_lang_type_printers)
8650 (ext_lang_type_printers::~ext_lang_type_printers)
8651 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8652 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8653 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8654 (get_matching_xmethod_workers, ext_lang_colorize)
8655 (ext_lang_before_prompt): Update.
8656 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8657
596dc4ad
TT
86582020-05-08 Tom Tromey <tom@tromey.com>
8659
8660 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8661 overload.
8662 <swap_string, m_string>: Remove.
8663 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8664 Update.
8665 * stabsread.c (define_symbol, read_type): Update.
8666 * linespec.c (find_linespec_symbols): Update.
8667 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8668 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8669 * dbxread.c (read_dbx_symtab): Update.
8670 * cp-support.h (cp_canonicalize_string_full)
8671 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8672 Return unique_xmalloc_ptr.
8673 * cp-support.c (inspect_type): Update.
8674 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8675 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8676 Likewise.
8677 * c-typeprint.c (print_name_maybe_canonical): Update.
8678 * break-catch-throw.c (check_status_exception_catchpoint):
8679 Update.
8680
bf4cb9be
TV
86812020-05-08 Tom de Vries <tdevries@suse.de>
8682
8683 * infrun.c (follow_fork): Copy current_line and current_symtab to
8684 child thread.
8685
a1b68f28
SM
86862020-05-07 Simon Marchi <simon.marchi@efficios.com>
8687
8688 * async-event.c (struct async_signal_handler, struct
8689 async_event_handler): Reformat, remove typedef.
8690
98d48915
SM
86912020-05-07 Simon Marchi <simon.marchi@efficios.com>
8692
8693 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8694 access thistype->main_type->dyn_prop_list directly.
8695
7aa91313
SM
86962020-05-07 Simon Marchi <simon.marchi@efficios.com>
8697
8698 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8699 (remove_dyn_prop): Remove. Update all users to use
8700 type::remove_dyn_prop.
8701 * gdbtypes.c (remove_dyn_prop): Rename to...
8702 (type::remove_dyn_prop): ... this.
8703
5c54719c
SM
87042020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8705
8706 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8707 (add_dyn_prop): Remove. Update all users to use
8708 type::add_dyn_prop.
8709 * gdbtypes.c (add_dyn_prop): Rename to...
8710 (type::add_dyn_prop): ... this.
8711
24e99c6c
SM
87122020-05-07 Simon Marchi <simon.marchi@efficios.com>
8713
8714 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8715 (get_dyn_prop): Remove. Update all users to use
8716 type::dyn_prop.
8717 * gdbtypes.c (get_dyn_prop): Rename to...
8718 (type::dyn_prop): ... this.
8719
0d4bf016
SM
87202020-05-06 Simon Marchi <simon.marchi@efficios.com>
8721
8722 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8723
ac4a4f1c
SM
87242020-05-06 Simon Marchi <simon.marchi@efficios.com>
8725
8726 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8727 instruction, skip it if it's there.
8728
a3bbacc1
SM
87292020-05-05 Simon Marchi <simon.marchi@efficios.com>
8730
8731 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8732
c3236f84
SM
87332020-05-04 Simon Marchi <simon.marchi@efficios.com>
8734
8735 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8736 * gdbtypes.c (recursive_dump_type): Remove use of
8737 TYPE_INCOMPLETE.
8738
3b6acaee
TT
87392020-05-03 Tom Tromey <tom@tromey.com>
8740
8741 * breakpoint.c (catch_command, tcatch_command): Remove.
8742 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8743 add_show_prefix_cmd.
8744 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8745 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8746 Remove.
8747 (add_internal_problem_command): Use add_basic_prefix_cmd,
8748 add_show_prefix_cmd.
8749 * mips-tdep.c (set_mipsfpu_command): Remove.
8750 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8751 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8752 (_initialize_index_cache): Use add_basic_prefix_cmd.
8753 * memattr.c (dummy_cmd): Remove.
8754 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8755 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8756 (_initialize_tui_win): Use add_basic_prefix_cmd,
8757 add_show_prefix_cmd.
8758 * cli/cli-logging.c (set_logging_command): Remove.
8759 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8760 add_show_prefix_cmd.
8761 (show_logging_command): Remove.
8762 * target.c (target_command): Remove.
8763 (add_target): Use add_basic_prefix_cmd.
8764
a51119cd
HD
87652020-05-02 Hannes Domani <ssbssa@yahoo.de>
8766
8767 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8768
652fc23a 87692020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8770
652fc23a
PW
8771 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8772 info_command.
8773
117539e6
KR
87742020-04-30 Kamil Rytarowski <n54@gmx.com>
8775
8776 * nbsd-nat.c (nbsd_enable_proc_events)
8777 (nbsd_nat_target::post_startup_inferior): Add.
8778 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8779 (nbsd_nat_target::update_thread_list): Rewrite.
8780 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8781 "PTRACE_LWP_CREATE".
8782 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8783
102e38eb 87842020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8785
102e38eb
PW
8786 * stack.c (_initialize_stack): Remove duplicated creation
8787 of "frame" command and "f" alias.
8788
ee9d1e5f
HD
87892020-04-30 Hannes Domani <ssbssa@yahoo.de>
8790
8791 PR gdb/18706
8792 * gdbtypes.c (check_typedef): Calculate size of array of
8793 stubbed type.
8794
627c7fb8
HD
87952020-04-30 Hannes Domani <ssbssa@yahoo.de>
8796
8797 PR gdb/15559
8798 * i386-tdep.c (i386_push_dummy_call): Call
8799 i386_thiscall_push_dummy_call.
8800 (i386_thiscall_push_dummy_call): New function.
8801 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8802 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8803 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8804
ffc2844e
SM
88052020-04-29 Simon Marchi <simon.marchi@efficios.com>
8806
8807 * gdbarch.sh (do_read): Add shellcheck disable directive for
8808 warning SC2162.
8809
1207375d
SM
88102020-04-29 Simon Marchi <simon.marchi@efficios.com>
8811
8812 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8813 "referenced but not assigned" warning.
8814
9fdb2916
SM
88152020-04-29 Simon Marchi <simon.marchi@efficios.com>
8816
8817 * gdbarch.sh: Remove code that sets fallbackdefault.
8818
759cea5e
SM
88192020-04-29 Simon Marchi <simon.marchi@efficios.com>
8820
8821 * gdbarch.sh: Use shell operators && and || instead of
8822 -a and -o.
8823
cb02ab24
SM
88242020-04-29 Simon Marchi <simon.marchi@efficios.com>
8825
8826 * gdbarch.sh: Use $(...) instead of `...`.
8827
a6fc5ffc
SM
88282020-04-29 Simon Marchi <simon.marchi@efficios.com>
8829
8830 * gdbarch.sh: Use double quotes around variables.
8831
8d113d13
SM
88322020-04-29 Simon Marchi <simon.marchi@efficios.com>
8833
8834 * gdbarch.sh: Use %s with printf, instead of variables in the
8835 format string.
8836
ed6acedd
TT
88372020-04-29 Tom Tromey <tromey@adacore.com>
8838
8839 PR ada/25875:
8840 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8841 type fields here.
8842 (read_enumeration_type): Call
8843 update_enumeration_type_from_children later. Update comments.
8844 (process_enumeration_scope): Don't create type fields.
8845
b68b1b58
KR
88462020-04-29 Kamil Rytarowski <n54@gmx.com>
8847
8848 * nbsd-tdep.c: Include "xml-syscall.h".
8849 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8850
f94b2e03
KR
88512020-04-29 Kamil Rytarowski <n54@gmx.com>
8852
8853 * nbsd-nat.c: Include "sys/wait.h".
8854 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8855 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8856 (nbsd_nat_target::remove_exec_catchpoint)
8857 (nbsd_nat_target::set_syscall_catchpoint): Add.
8858 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8859 (nbsd_nat_target::insert_exec_catchpoint)
8860 (nbsd_nat_target::remove_exec_catchpoint)
8861 (nbsd_nat_target::set_syscall_catchpoint): Add.
8862 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8863 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8864 `nbsd_get_syscall_number'.
8865
fc49bc72
TT
88662020-04-29 Tom Tromey <tom@tromey.com>
8867
8868 * stack.c (print_block_frame_labels): Remove.
8869
d642b692
HD
88702020-04-29 Hannes Domani <ssbssa@yahoo.de>
8871
8872 PR gdb/17320
8873 * ada-valprint.c (val_print_packed_array_elements): Move array
8874 end bracket to new line.
8875 (ada_val_print_string): Remove extra spaces before first array
8876 element.
8877 * c-valprint.c (c_value_print_array): Likewise.
8878 * m2-valprint.c (m2_print_array_contents): Likewise.
8879 (m2_value_print_inner): Likewise.
8880 * p-valprint.c (pascal_value_print_inner): Likewise.
8881 * valprint.c (generic_val_print_array): Likewise.
8882 (value_print_array_elements): Move first array element and array
8883 end bracket to new line.
8884
ea90f227
TV
88852020-04-29 Tom de Vries <tdevries@suse.de>
8886
8887 PR symtab/25889
8888 * linespec.c (find_method): Fix ix calculation.
8889
4498ef4f
KR
88902020-04-28 Kamil Rytarowski <n54@gmx.com>
8891
8892 * syscalls/update-netbsd.sh: New file.
8893 * syscalls/netbsd.xml: Regenerate.
8894 * data-directory/Makefile.in: Register `netbsd.xml' in
8895 `SYSCALLS_FILES'.
8896
a55e30b5
SM
88972020-04-28 Simon Marchi <simon.marchi@efficios.com>
8898
8899 * syscalls/update-freebsd.sh: Add double quotes.
8900
2b2fbab8
TT
89012020-04-28 Tom Tromey <tom@tromey.com>
8902
8903 * NEWS: Update.
8904 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8905 (cmdpy_init): Allow class_tui.
8906
a65189c9
TV
89072020-04-28 Mark Williams <mark@myosotissp.com>
8908
8909 PR gdb/24480
8910 * dwarf2read.c: Add missing assingments to list_in_scope when
8911 start_symtab was already called.
8912
1b95cdb7
SM
89132020-04-28 Simon Marchi <simon.marchi@efficios.com>
8914
8915 PR gdb/25881
8916 * dwarf2/read.c (offset_map_type): Use
8917 gdb:hash_enum<sect_offset> as hash function.
8918
15cd93d0
TV
89192020-04-28 Tom de Vries <tdevries@suse.de>
8920
8921 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8922 with DW_AT_signature.
8923
1eb39914
SM
89242020-04-27 Simon Marchi <simon.marchi@efficios.com>
8925
8926 * configure.ac: Remove check for fs_base/gs_base in
8927 user_regs_struct.
8928 * configure: Re-generate.
8929 * config.in: Re-generate.
8930 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8931 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8932 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8933
991a3e2e
LM
89342020-04-27 Luis Machado <luis.machado@linaro.org>
8935
8936 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8937 problematic inline frame unwinding situation.
8938 * frame.c (frame_id_computed_p): New function.
8939 * frame.h (frame_id_computed_p): New prototype.
8940
361ba0e8
TT
89412020-04-26 Tom Tromey <tom@tromey.com>
8942
8943 * command.h (enum command_class) <class_pseudo>: Remove.
8944
bc3609fd
PW
89452020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8946
8947 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8948 and whitespace.
8949
b9771db7
KR
89502020-04-25 Kamil Rytarowski <n54@gmx.com>
8951
ec16513e
SM
8952 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8953 `PT_GET_PROCESS_STATE' block.
b9771db7 8954
7151c1af
TT
89552020-04-24 Tom Tromey <tom@tromey.com>
8956
8957 * symtab.h (symbol_get_demangled_name): Don't declare.
8958 * symtab.c (symbol_get_demangled_name): Remove.
8959 (general_symbol_info::natural_name)
8960 (general_symbol_info::demangled_name): Update.
8961
906bb4c5
TT
89622020-04-24 Tom Tromey <tom@tromey.com>
8963
8964 PR rust/25025:
8965 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8966
bcfe6157
TT
89672020-04-24 Tom Tromey <tom@tromey.com>
8968
8969 PR symtab/12707:
8970 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8971 exists.
8972 (new_symbol): Likewise.
8973 * compile/compile-object-load.c (get_out_value_type): Use
8974 symbol_matches_search_name.
8975
f049a313
TT
89762020-04-24 Tom Tromey <tom@tromey.com>
8977
8978 * dwarf2/read.c (add_partial_symbol): Do not call
8979 compute_and_set_names.
8980
76e288d1
TT
89812020-04-24 Tom Tromey <tom@tromey.com>
8982
8983 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8984 overload.
8985
2467f4f6
TT
89862020-04-24 Tom Tromey <tom@tromey.com>
8987
8988 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8989 (add_psymbol_to_list): New overload. Make old overload call new
8990 one.
8991 * psympriv.h (add_psymbol_to_list): New overload.
8992
e61108c9
TT
89932020-04-24 Tom Tromey <tom@tromey.com>
8994
8995 * dwarf2/read.c (partial_die_info::read) <case
8996 DW_AT_linkage_name>: Use value_as_string.
8997 (dwarf2_string_attr): Use value_as_string.
8998 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8999 method.
9000 * dwarf2/attribute.c (attribute::value_as_string): New method.
9001
8c87a452
TT
90022020-04-24 Tom Tromey <tom@tromey.com>
9003
9004 * symtab.c (general_symbol_info::natural_name)
9005 (general_symbol_info::demangled_name): Check for language_rust.
9006
787de330
TT
90072020-04-24 Tom Tromey <tom@tromey.com>
9008
9009 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
9010 (dwarf2_physname): ... from here.
9011 (partial_die_info::read): Add Rust "{" hack.
9012
ff985671
TT
90132020-04-24 Tom Tromey <tom@tromey.com>
9014
9015 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9016 method.
9017 (symbol_set_demangled_name): Don't declare.
9018 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9019 symbol_set_demangled_name.
9020 (general_symbol_info::set_language)
9021 (general_symbol_info::compute_and_set_names): Update.
9022 * minsyms.c (minimal_symbol_reader::install): Update.
9023 * dwarf2/read.c (new_symbol): Update.
9024
1acda803
TT
90252020-04-24 Tom Tromey <tromey@adacore.com>
9026
9027 PR python/23662:
9028 * python/py-type.c (convert_field): Handle
9029 FIELD_LOC_KIND_DWARF_BLOCK.
9030 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9031 (typy_get_dynamic): Nw function.
9032 (type_object_getset): Add "dynamic".
9033 * NEWS: Add entry.
9034
d656f129
TT
90352020-04-24 Tom Tromey <tromey@adacore.com>
9036
9037 * ada-typeprint.c (print_choices, print_variant_part)
9038 (print_record_field_types_dynamic): New functions.
9039 (print_record_field_types): Use print_record_field_types_dynamic.
9040
7d79de9a
TT
90412020-04-24 Tom Tromey <tromey@adacore.com>
9042
9043 * dwarf2/read.c (handle_data_member_location): New overload.
9044 (dwarf2_add_field): Use it.
9045 (decode_locdesc): Add "computed" parameter. Update comment.
9046 * gdbtypes.c (is_dynamic_type_internal): Also look for
9047 FIELD_LOC_KIND_DWARF_BLOCK.
9048 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9049 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9050 virtual base classes.
9051 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9052 FIELD_LOC_KIND_DWARF_BLOCK.
9053
f8e89861
TT
90542020-04-24 Tom Tromey <tromey@adacore.com>
9055
9056 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9057 * gdbtypes.c (is_dynamic_type_internal): Check
9058 TYPE_HAS_DYNAMIC_LENGTH.
9059 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9060 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9061 New macros.
9062 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9063 constant.
9064
9c6a1327
TT
90652020-04-24 Tom Tromey <tromey@adacore.com>
9066
9067 * dwarf2/read.c (struct variant_field): Rewrite.
9068 (struct variant_part_builder): New.
9069 (struct nextfield): Remove "variant" field. Add "offset".
9070 (struct field_info): Add "current_variant_part" and
9071 "variant_parts".
9072 (alloc_discriminant_info): Remove.
9073 (alloc_rust_variant): New function.
9074 (quirk_rust_enum): Update.
9075 (dwarf2_add_field): Set "offset" member. Don't handle
9076 DW_TAG_variant_part.
9077 (offset_map_type): New typedef.
9078 (convert_variant_range, create_one_variant)
9079 (create_one_variant_part, create_variant_parts)
9080 (add_variant_property): New functions.
9081 (dwarf2_attach_fields_to_type): Call add_variant_property.
9082 (read_structure_type): Don't handle DW_TAG_variant_part.
9083 (handle_variant_part, handle_variant): New functions.
9084 (handle_struct_member_die): Use them.
9085 (process_structure_scope): Don't handle variant parts.
9086 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9087 (struct discriminant_info): Remove.
9088 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9089 (struct main_type) <flag_discriminated_union>: Remove.
9090 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9091 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9092 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9093 Update.
9094 * valops.c (value_union_variant): Remove.
9095 * value.h (value_union_variant): Don't declare.
9096
b249d2c2
TT
90972020-04-24 Tom Tromey <tromey@adacore.com>
9098
9099 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9100 (ada_value_primitive_packed_val): Update.
9101 * ada-valprint.c (ada_value_print_1): Update.
9102 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9103 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9104 just an address. Use evaluate_for_locexpr_baton.
9105 (dwarf2_evaluate_property): Update.
9106 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9107 array_view.
9108 * findvar.c (default_read_var_value): Update.
9109 * gdbtypes.c (compute_variant_fields_inner)
9110 (resolve_dynamic_type_internal): Update.
9111 (resolve_dynamic_type): Change type of valaddr parameter.
9112 * gdbtypes.h (resolve_dynamic_type): Update.
9113 * valarith.c (value_subscripted_rvalue): Update.
9114 * value.c (value_from_contents_and_address): Update.
9115
61122aa9
TT
91162020-04-24 Tom Tromey <tromey@adacore.com>
9117
9118 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9119 "push_initial_value" parameter.
9120 (dwarf2_evaluate_property): Likewise.
9121 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9122
ef83a141
TT
91232020-04-24 Tom Tromey <tromey@adacore.com>
9124
9125 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9126 (variant::matches, compute_variant_fields_recurse)
9127 (compute_variant_fields_inner, compute_variant_fields): New
9128 functions.
9129 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9130 Use resolved_type after type is made.
9131 (operator==): Add new cases.
9132 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9133 (struct discriminant_range, struct variant, struct variant_part):
9134 New.
9135 (union dynamic_prop_data) <variant_parts, original_type>: New
9136 members.
9137 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9138 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9139 constants.
9140 * value.c (unpack_bits_as_long): Now public.
9141 * value.h (unpack_bits_as_long): Declare.
9142
675127ec
TT
91432020-04-24 Tom Tromey <tromey@adacore.com>
9144
9145 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9146 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9147
9852ceef
HD
91482020-04-24 Hannes Domani <ssbssa@yahoo.de>
9149
9150 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9151
7632c6ce
KR
91522020-04-24 Kamil Rytarowski <n54@gmx.com>
9153
9154 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9155 (remove_fork_catchpoint, post_startup_inferior)
9156 (post_attach): Move...
9157 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9158 (remove_fork_catchpoint, post_startup_inferior)
9159 (post_attach): ...here.
9160 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9161 (remove_fork_catchpoint, post_startup_inferior)
9162 (post_attach): Move...
9163 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9164 (remove_fork_catchpoint, post_startup_inferior)
9165 (post_attach): ...here.
9166
7be2bb4f
TT
91672020-04-24 Tom Tromey <tromey@adacore.com>
9168
9169 * nat/windows-nat.h (struct windows_thread_info)
9170 <pc_adjusted>: New member.
9171 * windows-nat.c (windows_fetch_one_register): Check
9172 pc_adjusted.
9173 (windows_nat_target::get_windows_debug_event)
9174 (windows_nat_target::wait): Set pc_adjusted.
9175
f80cb3b4
TV
91762020-04-24 Tom de Vries <tdevries@suse.de>
9177
9178 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9179 Run gdb-add-index inside temp dir.
9180
29514b87
TT
91812020-04-23 Tom Tromey <tromey@adacore.com>
9182
9183 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9184 in loop.
9185
5939967b
LM
91862020-04-23 Luis Machado <luis.machado@linaro.org>
9187
9188 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9189 get_frame_register instead of gdbarch_unwind_pc.
9190
70bc38f5
TV
91912020-04-23 Tom de Vries <tdevries@suse.de>
9192
9193 * symtab.c (lookup_global_symbol): Prefer def over decl.
9194
de82891c
TV
91952020-04-23 Tom de Vries <tdevries@suse.de>
9196
9197 PR symtab/25807
9198 * block.c (best_symbol, better_symbol): Promote to external.
9199 * block.h (best_symbol, better_symbol): Declare.
9200 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9201 decl.
9202
ecc6c606
TT
92032020-04-23 Tom Tromey <tromey@adacore.com>
9204
9205 PR ada/25837:
9206 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9207 "const char *", not a "const std::string &".
9208 <name_and_matcher::operator==>: Update.
9209 * unittests/lookup_name_info-selftests.c: Change type of
9210 "result".
9211
740480b8
TT
92122020-04-23 Tom Tromey <tom@tromey.com>
9213
9214 * inferior.h (iterate_over_inferiors): Don't declare.
9215 * inferior.c (iterate_over_inferiors): Remove.
9216 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9217 Remove.
9218 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9219 use iterate_over_inferiors.
9220 (darwin_resume_inferior_it)
9221 (struct resume_inferior_threads_param)
9222 (darwin_resume_inferior_threads_it): Remove.
9223 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9224
ae3ab1f0
TV
92252020-04-23 Tom de Vries <tdevries@suse.de>
9226
9227 * blockframe.c (find_pc_partial_function): Use
9228 find_pc_sect_compunit_symtab rather than
9229 objfile->sf->qf->find_pc_sect_compunit_symtab.
9230
317d2668
TV
92312020-04-22 Tom de Vries <tdevries@suse.de>
9232
9233 PR symtab/25764
9234 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9235 in psymtabs.
9236
eea9e357
TV
92372020-04-22 Tom de Vries <tdevries@suse.de>
9238
9239 PR symtab/25801
9240 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9241 symtabs.
9242
3d5afab3
TV
92432020-04-22 Tom de Vries <tdevries@suse.de>
9244
9245 PR symtab/25700
9246 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9247 CU if already created.
9248
d43b7a2d
TBA
92492020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9250
9251 * infrun.c (displaced_step_fixup): Switch to the event_thread
9252 before calling displaced_step_restore, not after.
9253
d89edf9b
MM
92542020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9255
9256 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9257 its inferior is not recorded by us.
9258 (record_btrace_target_open): Replace call to
9259 all_non_exited_threads () with call to current_inferior
9260 ()->non_exited_threads ().
9261 (record_btrace_target::stop_recording): Likewise.
9262 (record_btrace_target::close): Likewise.
9263 (record_btrace_target::wait): Likewise.
9264 (record_btrace_target::record_stop_replaying): Likewise.
9265
5897fd49
MM
92662020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9267
9268 * btrace.c (btrace_enable): Throw an error on double enables and
9269 when enabling recording fails.
9270 (btrace_disable): Throw an error if the thread is not recorded.
9271
1a476b6d
MM
92722020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9273
9274 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9275 request if we do not have a thread_info.
9276
4778a5f8
TV
92772020-04-21 Tom de Vries <tdevries@suse.de>
9278
9279 PR gdb/25471
9280 * thread.c
9281 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9282 exception in get_frame_id.
9283
0fa7617d
TT
92842020-04-20 Tom Tromey <tromey@adacore.com>
9285
9286 * python/python.c (struct gdbpy_event): Mark move constructor as
9287 noexcept.
9288 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9289 constructor as noexcept.
9290 * completer.h (struct completion_result): Mark move constructor as
9291 noexcept.
9292 * completer.c (completion_result::completion_result): Use
9293 initialization style. Don't call reset_match_list.
9294
ad23bda0
MS
92952020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9296
9297 * MAINTAINERS (Write After Approval): Add myself.
9298
45e1f031
TT
92992020-04-18 Tom Tromey <tom@tromey.com>
9300
9301 * windows-tdep.c (init_w32_command_list)
9302 (w32_prefix_command_valid): Restore.
9303 (_initialize_windows_tdep): Call init_w32_command_list.
9304
08feed99
TT
93052020-04-18 Tom Tromey <tom@tromey.com>
9306
9307 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9308 * value.c (value_fn_field): Update.
9309 * valops.c (find_function_in_inferior)
9310 (value_allocate_space_in_inferior): Update.
9311 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9312 Update.
9313 * tui/tui-source.c (tui_source_window::set_contents): Update.
9314 * symtab.c (lookup_global_or_static_symbol)
9315 (find_function_start_sal_1, skip_prologue_sal)
9316 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9317 * symmisc.c (dump_msymbols, dump_symtab_1)
9318 (maintenance_print_one_line_table): Update.
9319 * symfile.c (init_entry_point_info, section_is_mapped)
9320 (list_overlays_command, simple_read_overlay_table)
9321 (simple_overlay_update_1): Update.
9322 * stap-probe.c (handle_stap_probe): Update.
9323 * stabsread.c (dbx_init_float_type, define_symbol)
9324 (read_one_struct_field, read_enum_type, read_range_type): Update.
9325 * source.c (info_line_command): Update.
9326 * python/python.c (gdbpy_source_objfile_script)
9327 (gdbpy_execute_objfile_script): Update.
9328 * python/py-type.c (save_objfile_types): Update.
9329 * python/py-objfile.c (py_free_objfile): Update.
9330 * python/py-inferior.c (python_new_objfile): Update.
9331 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9332 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9333 (maintenance_check_psymtabs): Update.
9334 * printcmd.c (info_address_command): Update.
9335 * objfiles.h (struct objfile) <arch>: New method, from
9336 get_objfile_arch.
9337 (get_objfile_arch): Don't declare.
9338 * objfiles.c (get_objfile_arch): Remove.
9339 (filter_overlapping_sections): Update.
9340 * minsyms.c (msymbol_is_function): Update.
9341 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9342 (output_nondebug_symbol): Update.
9343 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9344 (mdebug_expand_psymtab): Update.
9345 * machoread.c (macho_add_oso_symfile): Update.
9346 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9347 Update.
9348 * linux-fork.c (checkpoint_command): Update.
9349 * linespec.c (convert_linespec_to_sals): Update.
9350 * jit.c (finalize_symtab): Update.
9351 * infrun.c (insert_exception_resume_from_probe): Update.
9352 * ia64-tdep.c (ia64_find_unwind_table): Update.
9353 * hppa-tdep.c (internalize_unwinds): Update.
9354 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9355 Update.
9356 * gcore.c (call_target_sbrk): Update.
9357 * elfread.c (record_minimal_symbol, elf_symtab_read)
9358 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9359 (elf_gnu_ifunc_resolve_by_got): Update.
9360 * dwarf2/read.c (create_addrmap_from_index)
9361 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9362 (read_debug_names_from_section)
9363 (process_psymtab_comp_unit_reader, add_partial_symbol)
9364 (add_partial_subprogram, process_full_comp_unit)
9365 (read_file_scope, read_func_scope, read_lexical_block_scope)
9366 (read_call_site_scope, dwarf2_ranges_read)
9367 (dwarf2_record_block_ranges, dwarf2_add_field)
9368 (mark_common_block_symbol_computed, read_tag_pointer_type)
9369 (read_tag_string_type, dwarf2_init_float_type)
9370 (dwarf2_init_complex_target_type, read_base_type)
9371 (partial_die_info::read, partial_die_info::read)
9372 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9373 (dwarf2_fetch_die_loc_sect_off): Update.
9374 * dwarf2/loc.c (dwarf2_find_location_expression)
9375 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9376 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9377 (dwarf2_loc_desc_get_symbol_read_needs)
9378 (locexpr_describe_location_piece, locexpr_describe_location_1)
9379 (loclist_describe_location): Update.
9380 * dwarf2/index-write.c (write_debug_names): Update.
9381 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9382 * dtrace-probe.c (dtrace_process_dof): Update.
9383 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9384 (process_one_symbol): Update.
9385 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9386 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9387 (coff_read_enum_type): Update.
9388 * cli/cli-cmds.c (edit_command, list_command): Update.
9389 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9390 * breakpoint.c (create_overlay_event_breakpoint)
9391 (create_longjmp_master_breakpoint)
9392 (create_std_terminate_master_breakpoint)
9393 (create_exception_master_breakpoint, get_sal_arch): Update.
9394 * block.c (block_gdbarch): Update.
9395 * annotate.c (annotate_source_line): Update.
9396
0743fc83
TT
93972020-04-17 Tom Tromey <tromey@adacore.com>
9398
9399 * auto-load.c (show_auto_load_cmd): Remove.
9400 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9401 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9402 (maintenance_print_arc_command): Remove.
9403 * tui/tui-win.c (tui_command): Remove.
9404 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9405 * tui/tui-layout.c (tui_layout_command): Remove.
9406 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9407 * python/python.c (user_set_python, user_show_python): Remove.
9408 (_initialize_python): Use add_basic_prefix_cmd,
9409 add_show_prefix_cmd.
9410 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9411 (install_gdb_commands): Use add_basic_prefix_cmd,
9412 add_show_prefix_cmd.
9413 (info_guile_command): Remove.
9414 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9415 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9416 add_show_prefix_cmd.
9417 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9418 Remove do_set and do_show parameters.
9419 * cli/cli-style.c (set_style, show_style): Remove.
9420 (_initialize_cli_style): Use add_basic_prefix_cmd,
9421 add_show_prefix_cmd.
9422 (cli_style_option::add_setshow_commands): Remove do_set and
9423 do_show parameters.
9424 (cli_style_option::add_setshow_commands): Use
9425 add_basic_prefix_cmd, add_show_prefix_cmd.
9426 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9427 (set_style_name): Remove.
9428 * cli/cli-dump.c (dump_command, append_command): Remove.
9429 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9430 (tekhex_dump_command, binary_dump_command)
9431 (binary_append_command): Remove.
9432 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9433 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9434 (init_w32_command_list): Remove; move into ...
9435 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9436 * valprint.c (set_print, show_print, set_print_raw)
9437 (show_print_raw): Remove.
9438 (_initialize_valprint): Use add_basic_prefix_cmd,
9439 add_show_prefix_cmd.
9440 * typeprint.c (set_print_type, show_print_type): Remove.
9441 (_initialize_typeprint): Use add_basic_prefix_cmd,
9442 add_show_prefix_cmd.
9443 * record.c (set_record_command, show_record_command): Remove.
9444 (_initialize_record): Use add_basic_prefix_cmd,
9445 add_show_prefix_cmd.
9446 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9447 add_show_prefix_cmd.
9448 (info_command, show_command, set_debug, show_debug): Remove.
9449 * top.h (set_history, show_history): Don't declare.
9450 * top.c (set_history, show_history): Remove.
9451 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9452 (unset_tdesc_cmd): Remove.
9453 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9454 add_show_prefix_cmd.
9455 * symtab.c (info_module_command): Remove.
9456 (_initialize_symtab): Use add_basic_prefix_cmd.
9457 * symfile.c (overlay_command): Remove.
9458 (_initialize_symfile): Use add_basic_prefix_cmd.
9459 * sparc64-tdep.c (info_adi_command): Remove.
9460 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9461 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9462 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9463 add_show_prefix_cmd.
9464 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9465 (_initialize_serial): Use add_basic_prefix_cmd,
9466 add_show_prefix_cmd.
9467 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9468 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9469 add_show_prefix_cmd.
9470 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9471 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9472 add_show_prefix_cmd.
9473 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9474 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9475 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9476 add_show_prefix_cmd.
9477 * remote.c (remote_command, set_remote_cmd): Remove.
9478 (_initialize_remote): Use add_basic_prefix_cmd.
9479 * record-full.c (set_record_full_command)
9480 (show_record_full_command): Remove.
9481 (_initialize_record_full): Use add_basic_prefix_cmd,
9482 add_show_prefix_cmd.
9483 * record-btrace.c (cmd_set_record_btrace)
9484 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9485 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9486 (cmd_show_record_btrace_pt): Remove.
9487 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9488 add_show_prefix_cmd.
9489 * ravenscar-thread.c (set_ravenscar_command)
9490 (show_ravenscar_command): Remove.
9491 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9492 add_show_prefix_cmd.
9493 * mips-tdep.c (show_mips_command, set_mips_command)
9494 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9495 add_show_prefix_cmd.
9496 * maint.c (maintenance_command, maintenance_info_command)
9497 (maintenance_check_command, maintenance_print_command)
9498 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9499 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9500 add_show_prefix_cmd.
9501 (show_per_command_cmd): Remove.
9502 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9503 Remove.
9504 (maintenance_show_test_settings_cmd): Remove.
9505 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9506 add_show_prefix_cmd.
9507 * maint-test-options.c (maintenance_test_options_command):
9508 Remove.
9509 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9510 * macrocmd.c (macro_command): Remove
9511 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9512 * language.c (set_check, show_check): Remove.
9513 (_initialize_language): Use add_basic_prefix_cmd,
9514 add_show_prefix_cmd.
9515 * infcmd.c (unset_command): Remove.
9516 (_initialize_infcmd): Use add_basic_prefix_cmd.
9517 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9518 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9519 add_show_prefix_cmd.
9520 * go32-nat.c (go32_info_dos_command): Remove.
9521 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9522 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9523 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9524 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9525 (_initialize_frame): Use add_basic_prefix_cmd,
9526 add_show_prefix_cmd.
9527 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9528 (_initialize_dcache): Use add_basic_prefix_cmd,
9529 add_show_prefix_cmd.
9530 * cp-support.c (maint_cplus_command): Remove.
9531 (_initialize_cp_support): Use add_basic_prefix_cmd.
9532 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9533 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9534 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9535 add_basic_prefix_cmd, add_show_prefix_cmd.
9536 * breakpoint.c (save_command): Remove.
9537 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9538 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9539 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9540 add_show_prefix_cmd.
9541 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9542 (set_ada_command, show_ada_command): Remove.
9543 (_initialize_ada_language): Use add_basic_prefix_cmd,
9544 add_show_prefix_cmd.
9545 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9546
3557f442
KR
95472020-04-16 Kamil Rytarowski <n54@gmx.com>
9548
9549 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9550 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9551
16197208
SM
95522020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9553
9554 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9555 warning messages.
9556
00ac85d3
SM
95572020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9558
9559 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9560 import table is not at beginning of .idata section.
9561
381ce63f
PA
95622020-04-16 Pedro Alves <palves@redhat.com>
9563
9564 * inferior.c (delete_inferior): Use delete operator directly
9565 instead of delete_program_space.
9566 * progspace.c (add_program_space): New, factored out from
9567 program_space::program_space.
9568 (remove_program_space): New, factored out from
9569 delete_program_space.
9570 (program_space::program_space): Remove intro comment. Rewrite.
9571 (program_space::~program_space): Remove intro comment. Call
9572 remove_program_space.
9573 (delete_program_space): Delete.
9574 * progspace.h (program_space::program_space): Make explicit. Move
9575 intro comment here, adjusted.
9576 (program_space::~program_space): Move intro comment here,
9577 adjusted.
9578 (delete_program_space): Remove.
9579
a010605f
TT
95802020-04-16 Tom Tromey <tromey@adacore.com>
9581
9582 * windows-nat.c (windows_nat::handle_access_violation): New
9583 function.
9584 * nat/windows-nat.h (handle_access_violation): Declare.
9585 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9586 windows-nat.c. Call handle_access_violation.
9587
efba5c23
TV
95882020-04-16 Tom de Vries <tdevries@suse.de>
9589
9590 PR symtab/25791
9591 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9592 CUs without psymtab.
9593
97ed802d
KB
95942020-04-16 Kevin Buettner <kevinb@redhat.com>
9595
9596 * python/python.c (do_start_initialization): Don't call
9597 PyEval_InitThreads for Python 3.9 and beyond.
9598
c7d64809
KR
95992020-04-15 Kamil Rytarowski <n54@gmx.com>
9600
9601 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9602 thread functions.
9603 (obsd_nat_target::wait): Likewise.
9604
ce127a96
TT
96052020-04-15 Tom Tromey <tromey@adacore.com>
9606
9607 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9608 (DEBUG_EXCEPT): Use debug_printf.
9609
99f1bc6a
AB
96102020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9611
9612 * completer.c (class completion_tracker::completion_hash_entry)
9613 <hash_name>: New member function.
9614 (completion_tracker::discard_completions): New callback to hash a
9615 completion_hash_entry, pass this to htab_create_alloc.
9616
a0e9b532
JT
96172016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9618
9619 * windows-nat.c (windows_make_so): Warn rather than stopping with
9620 an error if realpath() fails.
9621
06ca5dd4
KR
96222020-04-14 Kamil Rytarowski <n54@gmx.com>
9623
9624 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9625 (nbsd_nat_target::info_proc): Add do_status.
9626
194d088f
TV
96272020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9628 Tom de Vries <tdevries@suse.de>
9629
9630 PR symtab/25718
9631 * psympriv.h (struct partial_symtab::read_symtab)
9632 (struct partial_symtab::expand_psymtab)
9633 (struct partial_symtab::read_dependencies): Update comments.
9634 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9635 read_symtab for includer.
9636 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9637 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9638 (struct dwarf2_include_psymtab::m_readin): Remove.
9639 (struct dwarf2_include_psymtab::includer): New member function.
9640 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9641
c1a66c06
TV
96422020-04-14 Tom de Vries <tdevries@suse.de>
9643
9644 PR symtab/25720
9645 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9646 with NULL symbol_matcher and lookup_name.
9647 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9648 and lookup_name.
9649 * dwarf2/read.c (dw2_expand_symtabs_matching)
9650 (dw2_debug_names_expand_symtabs_matching): Same.
9651 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9652 Make lookup_name a pointer. Update comment.
9653 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9654 lookup_name being a pointer.
9655 * symfile.c (expand_symtabs_matching): Same.
9656 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9657 * linespec.c (iterate_over_all_matching_symtabs): Same.
9658
400b5eca
TT
96592020-04-13 Tom Tromey <tom@tromey.com>
9660
9661 * run-on-main-thread.c: Update include.
9662 * unittests/main-thread-selftests.c: Update include.
9663 * tui/tui-win.c: Update include.
9664 * tui/tui-io.c: Update include.
9665 * tui/tui-interp.c: Update include.
9666 * tui/tui-hooks.c: Update include.
9667 * top.h: Update include.
9668 * top.c: Update include.
9669 * ser-base.c: Update include.
9670 * remote.c: Update include.
9671 * remote-notif.c: Update include.
9672 * remote-fileio.c: Update include.
9673 * record-full.c: Update include.
9674 * record-btrace.c: Update include.
9675 * python/python.c: Update include.
9676 * posix-hdep.c: Update include.
9677 * mingw-hdep.c: Update include.
9678 * mi/mi-main.c: Update include.
9679 * mi/mi-interp.c: Update include.
9680 * main.c: Update include.
9681 * linux-nat.c: Update include.
9682 * interps.c: Update include.
9683 * infrun.c: Update include.
9684 * inf-loop.c: Update include.
9685 * event-top.c: Update include.
9686 * event-loop.c: Move to ../gdbsupport/.
9687 * event-loop.h: Move to ../gdbsupport/.
9688 * async-event.h: Update include.
9689 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9690
93b54c8e
TT
96912020-04-13 Tom Tromey <tom@tromey.com>
9692
9693 * tui/tui-win.c: Include async-event.h.
9694 * remote.c: Include async-event.h.
9695 * remote-notif.c: Include async-event.h.
9696 * record-full.c: Include async-event.h.
9697 * record-btrace.c: Include async-event.h.
9698 * infrun.c: Include async-event.h.
9699 * event-top.c: Include async-event.h.
9700 * event-loop.h: Move some declarations to async-event.h.
9701 * event-loop.c: Don't include ser-event.h or top.h. Move some
9702 code to async-event.c.
9703 * async-event.h: New file.
9704 * async-event.c: New file.
9705 * Makefile.in (COMMON_SFILES): Add async-event.c.
9706 (HFILES_NO_SRCDIR): Add async-event.h.
9707
c1cd3163
TT
97082020-04-13 Tom Tromey <tom@tromey.com>
9709
9710 * utils.c (flush_streams): New function.
9711 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9712
29f2bf4f
TT
97132020-04-13 Tom Tromey <tom@tromey.com>
9714
9715 * event-loop.c (handle_file_event): Use warning, not
9716 printf_unfiltered.
9717
98029d02
TT
97182020-04-13 Tom Tromey <tom@tromey.com>
9719
9720 * event-loop.c: Include <chrono>.
9721
06cc9596
TT
97222020-04-13 Tom Tromey <tom@tromey.com>
9723
9724 * gdb_select.h: Move to ../gdbsupport/.
9725 * event-loop.c: Update include path.
9726 * top.c: Update include path.
9727 * ser-base.c: Update include path.
9728 * ui-file.c: Update include path.
9729 * ser-tcp.c: Update include path.
9730 * guile/scm-ports.c: Update include path.
9731 * posix-hdep.c: Update include path.
9732 * ser-unix.c: Update include path.
9733 * gdb_usleep.c: Update include path.
9734 * mingw-hdep.c: Update include path.
9735 * inflow.c: Update include path.
9736 * infrun.c: Update include path.
9737 * event-top.c: Update include path.
9738
8ae8e197
TT
97392020-04-13 Tom Tromey <tom@tromey.com>
9740
9741 * configure: Rebuild.
9742 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9743
58cf28e8
TT
97442020-04-13 Tom Tromey <tom@tromey.com>
9745
9746 * event-loop.h (start_event_loop): Don't declare.
9747 * event-loop.c (start_event_loop): Move...
9748 * main.c (start_event_loop): ...here. Now static.
9749
b7f999ae
SDJ
97502020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9751
9752 * MAINTAINERS: Update my email address.
9753
1085dfd4
KR
97542020-04-12 Kamil Rytarowski <n54@gmx.com>
9755
9756 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9757 IP_ALL.
9758
49d1d1f5
KR
97592020-04-12 Kamil Rytarowski <n54@gmx.com>
9760
9761 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 9762 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 9763
b4848d2a
KR
97642020-04-12 Kamil Rytarowski <n54@gmx.com>
9765
9766 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 9767 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 9768
51c133d5
KR
97692020-04-12 Kamil Rytarowski <n54@gmx.com>
9770
9771 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9772
54b8cbd0
KR
97732020-04-11 Kamil Rytarowski <n54@gmx.com>
9774
9775 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9776 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9777 (nbsd_nat_target::info_proc): New functions.
9778 * nbsd-nat.c (kinfo_get_vmmap): New function.
9779 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9780 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9781 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9782 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9783 functions.
9784 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9785 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9786 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9787 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9788 (KINFO_VME_FLAG_GROWS_DOWN): New.
9789
cf83625d
AS
97902020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9791
9792 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9793 bit shift.
9794
0c4311ab
TT
97952020-04-10 Tom Tromey <tromey@adacore.com>
9796
9797 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9798
3e65b3e9
TT
97992020-04-10 Tom Tromey <tromey@adacore.com>
9800
9801 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9802 separate debug files.
9803
13302e95
HD
98042020-04-10 Hannes Domani <ssbssa@yahoo.de>
9805
9806 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9807 Move to...
9808 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9809 ... here.
9810 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9811 Check for STATUS_WX86_BREAKPOINT.
9812 (windows_nat_target::wait): Same.
9813
bdfc1e8a
TV
98142020-04-10 Tom de Vries <tdevries@suse.de>
9815
9816 PR cli/25808
9817 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9818
f4460aec
SM
98192020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9820
9821 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9822 (Write After Approval): Remove Tom de Vries.
9823
a25198bb
BE
98242020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9825
9826 revert partially:
9827 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9828
aac66a4c
SM
9829 * buildsym.c (record_line): Fix undefined behavior and preserve
9830 lines at eof.
a25198bb 9831
206c98a6
KR
98322020-04-09 Kamil Rytarowski <n54@gmx.com>
9833
9834 * auxv.h (svr4_auxv_parse): New.
9835 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9836 and generic_auxv_parse.
9837 (svr4_auxv_parse): Add.
9838 * obsd-tdep.c: Include "auxv.h".
9839 (obsd_auxv_parse): Remove.
9840 (obsd_init_abi): Remove comment.
9841 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9842 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9843 * nbsd-tdep.c: Include "auxv.h".
9844 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9845
71fbdbaf
TT
98462020-04-08 Tom Tromey <tromey@adacore.com>
9847
9848 * nat/windows-nat.h (last_wait_event): Don't declare.
9849 (wait_for_debug_event): Update comment.
9850 * nat/windows-nat.c (last_wait_event): Now static.
9851
2c1d95e8
TT
98522020-04-08 Tom Tromey <tromey@adacore.com>
9853
9854 * windows-nat.c (wait_for_debug_event): Move to
9855 nat/windows-nat.c.
9856 * nat/windows-nat.h (wait_for_debug_event): Declare.
9857 * nat/windows-nat.c (wait_for_debug_event): Move from
9858 windows-nat.c. No longer static.
9859
d2977bc4
TT
98602020-04-08 Tom Tromey <tromey@adacore.com>
9861
9862 * windows-nat.c (get_windows_debug_event): Use
9863 fetch_pending_stop.
9864 * nat/windows-nat.h (fetch_pending_stop): Declare.
9865 * nat/windows-nat.c (fetch_pending_stop): New function.
9866
e758e19c
TT
98672020-04-08 Tom Tromey <tromey@adacore.com>
9868
9869 * windows-nat.c (windows_continue): Use matching_pending_stop and
9870 continue_last_debug_event.
9871 * nat/windows-nat.h (matching_pending_stop)
9872 (continue_last_debug_event): Declare.
9873 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9874 (matching_pending_stop, continue_last_debug_event): New
9875 functions.
9876
8d30e395
TT
98772020-04-08 Tom Tromey <tromey@adacore.com>
9878
9879 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9880 (handle_exception_result): Move to nat/windows-nat.h.
9881 (DEBUG_EXCEPTION_SIMPLE): Remove.
9882 (windows_nat::handle_ms_vc_exception): New function.
9883 (handle_exception): Move to nat/windows-nat.c.
9884 (get_windows_debug_event): Update.
9885 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9886 nat/windows-nat.c.
9887 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9888 (handle_exception_result): Move from windows-nat.c.
9889 (handle_exception): Declare.
9890 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9891 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9892 windows-nat.c.
9893
29de418d
TT
98942020-04-08 Tom Tromey <tromey@adacore.com>
9895
9896 * windows-nat.c (exception_count, event_count): Remove.
9897 (handle_exception, get_windows_debug_event)
9898 (do_initial_windows_stuff): Update.
9899
a816ba18
TT
99002020-04-08 Tom Tromey <tromey@adacore.com>
9901
9902 * windows-nat.c (windows_nat::handle_load_dll)
9903 (windows_nat::handle_unload_dll): Rename. No longer static.
9904 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9905 Declare.
9906
a00caa12
TT
99072020-04-08 Tom Tromey <tromey@adacore.com>
9908
9909 * complaints.h (stop_whining): Declare at top-level.
9910 (complaint): Don't declare stop_whining.
9911
d41b524f
TT
99122020-04-08 Tom Tromey <tromey@adacore.com>
9913
9914 * windows-nat.c (windows_nat::handle_output_debug_string):
9915 Rename. No longer static.
9916 * nat/windows-nat.h (handle_output_debug_string): Declare.
9917
3c76026d
TT
99182020-04-08 Tom Tromey <tromey@adacore.com>
9919
9920 * windows-nat.c (current_process_handle, current_process_id)
9921 (main_thread_id, last_sig, current_event, last_wait_event)
9922 (current_windows_thread, desired_stop_thread_id, pending_stops)
9923 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9924 (display_selectors, fake_create_process)
9925 (get_windows_debug_event): Update.
9926 * nat/windows-nat.h (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 from windows-nat.c.
9930 * nat/windows-nat.c (current_process_handle, current_process_id)
9931 (main_thread_id, last_sig, current_event, last_wait_event)
9932 (current_windows_thread, desired_stop_thread_id, pending_stops)
9933 (siginfo_er): New globals. Move from windows-nat.c.
9934
9d8679cc
TT
99352020-04-08 Tom Tromey <tromey@adacore.com>
9936
9937 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9938 (handle_load_dll): Update.
9939 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9940
28688adf
TT
99412020-04-08 Tom Tromey <tromey@adacore.com>
9942
9943 * windows-nat.c (enum thread_disposition_type): Move to
9944 nat/windows-nat.h.
9945 (windows_nat::thread_rec): Rename from thread_rec. No longer
9946 static.
9947 (windows_add_thread, windows_nat_target::fetch_registers)
9948 (windows_nat_target::store_registers, handle_exception)
9949 (windows_nat_target::resume, get_windows_debug_event)
9950 (windows_nat_target::get_tib_address)
9951 (windows_nat_target::thread_name)
9952 (windows_nat_target::thread_alive): Update.
9953 * nat/windows-nat.h (enum thread_disposition_type): Move from
9954 windows-nat.c.
9955 (thread_rec): Declare.
9956
4834dad0
TT
99572020-04-08 Tom Tromey <tromey@adacore.com>
9958
9959 * windows-nat.c: Add "using namespace".
9960 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9961 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9962
65bafd5b
TT
99632020-04-08 Tom Tromey <tromey@adacore.com>
9964
9965 * nat/windows-nat.h (struct windows_thread_info): Declare
9966 destructor.
9967 * nat/windows-nat.c (~windows_thread_info): New.
9968
0a4afda3
TT
99692020-04-08 Tom Tromey <tromey@adacore.com>
9970
9971 PR gdb/22992
9972 * windows-nat.c (current_event): Update comment.
9973 (last_wait_event, desired_stop_thread_id): New globals.
9974 (struct pending_stop): New.
9975 (pending_stops): New global.
9976 (windows_nat_target) <stopped_by_sw_breakpoint>
9977 <supports_stopped_by_sw_breakpoint>: New methods.
9978 (windows_fetch_one_register): Add assertions. Adjust PC.
9979 (windows_continue): Handle pending stops. Suspend other threads
9980 when stepping. Use last_wait_event
9981 (wait_for_debug_event): New function.
9982 (get_windows_debug_event): Use wait_for_debug_event. Handle
9983 pending stops. Queue spurious stops.
9984 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9985 (windows_nat_target::kill): Use wait_for_debug_event.
9986 * nat/windows-nat.h (struct windows_thread_info)
9987 <stopped_at_software_breakpoint>: New field.
9988 * nat/windows-nat.c (windows_thread_info::resume): Clear
9989 stopped_at_software_breakpoint.
9990
8e61ebec
TT
99912020-04-08 Tom Tromey <tromey@adacore.com>
9992
9993 * windows-nat.c (enum thread_disposition_type): New.
9994 (thread_rec): Replace "get_context" parameter with "disposition";
9995 change type.
9996 (windows_add_thread, windows_nat_target::fetch_registers)
9997 (windows_nat_target::store_registers, handle_exception)
9998 (windows_nat_target::resume, get_windows_debug_event)
9999 (windows_nat_target::get_tib_address)
10000 (windows_nat_target::thread_name)
10001 (windows_nat_target::thread_alive): Update.
10002
98a03287
TT
100032020-04-08 Tom Tromey <tromey@adacore.com>
10004
10005 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
10006 (windows_continue): Use windows_continue::resume.
10007 * nat/windows-nat.h (struct windows_thread_info) <suspend,
10008 resume>: Declare new methods.
10009 * nat/windows-nat.c: New file.
10010 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
10011
7c7411bc
TT
100122020-04-08 Tom Tromey <tromey@adacore.com>
10013
10014 * windows-nat.c (windows_add_thread, windows_delete_thread)
10015 (windows_nat_target::fetch_registers)
10016 (windows_nat_target::store_registers, fake_create_process)
10017 (windows_nat_target::resume, windows_nat_target::resume)
10018 (get_windows_debug_event, windows_nat_target::wait)
10019 (windows_nat_target::pid_to_str)
10020 (windows_nat_target::get_tib_address)
10021 (windows_nat_target::get_ada_task_ptid)
10022 (windows_nat_target::thread_name)
10023 (windows_nat_target::thread_alive): Use lwp, not tid.
10024
2950fdf7
TT
100252020-04-08 Tom Tromey <tromey@adacore.com>
10026
10027 * windows-nat.c (handle_exception)
10028 (windows_nat_target::thread_name): Update.
10029 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10030 <name>: Now unique_xmalloc_ptr.
10031
62fe396b
TT
100322020-04-08 Tom Tromey <tromey@adacore.com>
10033
10034 * windows-nat.c (thread_rec)
10035 (windows_nat_target::fetch_registers): Update.
10036 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10037 Update comment.
10038 <debug_registers_changed, reload_context>: Now bool.
10039
e9534bd2
TT
100402020-04-08 Tom Tromey <tromey@adacore.com>
10041
10042 * windows-nat.c (windows_add_thread): Use new.
10043 (windows_init_thread_list, windows_delete_thread): Use delete.
10044 (get_windows_debug_event): Update.
10045 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10046 destructor, and initializers.
10047
ae1f8880
TT
100482020-04-08 Tom Tromey <tromey@adacore.com>
10049
10050 * windows-nat.c (struct windows_thread_info): Remove.
10051 * nat/windows-nat.h: New file.
10052
55a1e039
TT
100532020-04-08 Tom Tromey <tromey@adacore.com>
10054
10055 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10056 (thread_rec, windows_add_thread, windows_delete_thread)
10057 (windows_continue): Update.
10058
93366324
TT
100592020-04-08 Tom Tromey <tromey@adacore.com>
10060
10061 * windows-nat.c (struct windows_thread_info): Remove typedef.
10062 (thread_head): Remove.
10063 (thread_list): New global.
10064 (thread_rec, windows_add_thread, windows_init_thread_list)
10065 (windows_delete_thread, windows_continue): Update.
10066
0f2265e2
SM
100672020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10068
10069 * windows-tdep.h (windows_init_abi): Add comment.
10070 (cygwin_init_abi): New declaration.
10071 * windows-tdep.c: Split signal enumeration in two, one for
10072 Windows and one for Cygwin.
10073 (windows_gdb_signal_to_target): Only deal with signal of the
10074 Windows OS ABI.
10075 (cygwin_gdb_signal_to_target): New function.
10076 (windows_init_abi): Rename to windows_init_abi_common, don't set
10077 gdb_signal_to_target gdbarch method. Add new new function with
10078 this name.
10079 (cygwin_init_abi): New function.
10080 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10081 comment. Don't call windows_init_abi.
10082 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10083 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10084 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10085 i386_windows_init_abi_common, don't call windows_init_abi. Add
10086 a new function of this name.
10087 (i386_cygwin_init_abi): New function.
10088 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10089 OS ABI Cygwin.
10090
3810f182
SM
100912020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10092
10093 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10094 parameter.c.
10095 (dwarf2_read_gdb_index): Update.
10096
063f8e80
KR
100972020-04-07 Kamil Rytarowski <n54@gmx.com>
10098
10099 * nbsd-tdep.c: Include "objfiles.h".
10100 (nbsd_skip_solib_resolver): New.
10101 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10102
85a9510c 101032020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10104
10105 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10106 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10107 with DW_LLE_base_addressx are being emitted in DWARFv5.
10108 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10109 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10110 unsigned integer.
10111
9fc3eaae 101122020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10113
10114 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10115 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10116 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10117 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10118 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10119 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10120 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10121
10122
41144253 101232020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10124
10125 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10126 (read_loclist_index): New function definition.
10127 (lookup_loclist_base): New function definition.
10128 (read_loclist_header): New function definition.
10129 (dwarf2_cu): Add loclist_base and loclist_header field.
10130 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10131 (read_full_die_1): Read the value of DW_AT_loclists_base.
10132 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10133 (read_attribute_value): Handle DW_FORM_loclistx.
10134 (skip_one_die): Handle DW_FORM_loclistx.
10135 (loclist_header): New structure declaration.
10136 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10137
9f4e76a4
SM
101382020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10139
10140 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10141 constructor. Remove `addr` parameter from other constructor and
10142 add `per_cu` parameter.
10143 * dwarf2/read.c (create_partial_symtab): Update.
10144
25c11aca
TV
101452020-04-07 Tom de Vries <tdevries@suse.de>
10146
10147 PR symtab/25796
10148 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10149 (partial_die_info::fixup): Inherit has_const_value.
10150
5707e24b
TV
101512020-04-07 Tom de Vries <tdevries@suse.de>
10152
10153 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10154 symbols without address.
10155
05f00e22
KR
101562020-04-06 Kamil Rytarowski <n54@gmx.com>
10157
10158 * nbsd-nat.h (struct thread_info): Add forward declaration.
10159 (nbsd_nat_target::thread_alive): Add.
10160 (nbsd_nat_target::thread_name): Likewise.
10161 (nbsd_nat_target::update_thread_list): Likewise.
10162 (update_thread_list::post_attach): Likewise.
10163 (post_attach::pid_to_str): Likewise.
10164 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10165 (nbsd_thread_lister): Add.
10166 (nbsd_nat_target::thread_alive): Likewise.
10167 (nbsd_nat_target::thread_name): Likewise.
10168 (nbsd_add_threads): Likewise.
10169 (update_thread_list::post_attach): Likewise.
10170 (nbsd_nat_target::update_thread_list): Likewise.
10171 (post_attach::pid_to_str): Likewise.
10172
6ee448cc
TT
101732020-04-06 Tom Tromey <tromey@adacore.com>
10174
10175 * ada-valprint.c (print_variant_part): Extract the variant field.
10176 (print_field_values): Use the field as the outer value when
10177 recursing.
10178
dea34e8c
TT
101792020-04-06 Tom Tromey <tromey@adacore.com>
10180
10181 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10182 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10183 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10184 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10185 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10186
93689ce9
TT
101872020-04-06 Tom Tromey <tromey@adacore.com>
10188
10189 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10190 TYPE_CODE_ERROR.
10191
79743962
KR
101922020-04-06 Kamil Rytarowski <n54@gmx.com>
10193
10194 * nbsd-tdep.c: Include "gdbarch.h".
10195 Define enum with NetBSD signal numbers.
10196 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10197 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10198 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10199 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10200 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10201 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10202 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10203 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10204 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10205 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10206 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10207 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10208
9e7c9a03
HD
102092020-04-03 Hannes Domani <ssbssa@yahoo.de>
10210
10211 PR gdb/25325
10212 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10213
d9e49b61
TT
102142020-04-03 Tom Tromey <tromey@adacore.com>
10215
10216 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10217 Read constant block.
10218
e0fc5c3f
SM
102192020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10220
10221 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10222 (gdb_bfd_get_full_section_contents): New declaration.
10223 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10224 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10225 gdb_bfd_get_full_section_contents.
10226
e2ff18a0
SM
102272020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10228
10229 * exec.c (build_section_table): Replace internal_error with
10230 gdb_assert.
10231 (section_table_xfer_memory_partial): Likewise.
10232 * mdebugread.c (parse_partial_symbols): Likewise.
10233 * psymtab.c (lookup_partial_symbol): Likewise.
10234 * utils.c (wrap_here): Likewise.
10235
0830d301
TT
102362020-04-02 Tom Tromey <tromey@adacore.com>
10237
10238 * f-lang.c (build_fortran_types): Use arch_type to initialize
10239 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10240
e7da7f8f
TT
102412020-04-02 Tom Tromey <tromey@adacore.com>
10242
10243 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10244 of attributes.
10245
c90d28ac
AB
102462020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10247 Bernd Edlinger <bernd.edlinger@hotmail.de>
10248 Tom Tromey <tromey@adacore.com>
10249
10250 * buildsym.c (buildsym_compunit::record_line): Remove
10251 deduplication code.
10252
1aa98955
TV
102532020-04-02 Tom de Vries <tdevries@suse.de>
10254
10255 PR ada/24671
10256 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10257
d3214198
TV
102582020-04-02 Tom de Vries <tdevries@suse.de>
10259
10260 * dwarf2/read.c (dwarf2_gdb_index_functions,
10261 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10262 NULL.
10263 * psymtab.c (psym_lookup_global_symbol_language): New function.
10264 (psym_functions): Init psym_lookup_global_symbol_language with
10265 psym_lookup_global_symbol_language.
10266 * symfile-debug.c (debug_sym_quick_functions): Init
10267 lookup_global_symbol_language with NULL.
10268 * symfile.c (set_initial_language): Remove fixme comment.
10269 * symfile.h (struct quick_symbol_functions): Add
10270 lookup_global_symbol_language.
10271 * symtab.c (find_quick_global_symbol_language): New function.
10272 (find_main_name): Use find_quick_global_symbol_language.
10273
2836752f
SM
102742020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10275
10276 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10277
64dc2d4b
BE
102782020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10279
10280 * buildsym.c (record_line): Fix undefined behavior and preserve
10281 lines at eof.
10282
bbe3dc41
BE
102832020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10284
10285 * buildsym.c (record_line): Fix the resizing condition.
10286
6b4a335b
TT
102872020-04-01 Tom Tromey <tom@tromey.com>
10288
10289 * value.h (value_literal_complex): Add comment.
10290 * valops.c (value_literal_complex): Refer to value.h.
10291
3638a098
TT
102922020-04-01 Tom Tromey <tom@tromey.com>
10293
10294 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10295 (scalar_type): New rule, from typebase.
10296 (typebase): Use scalar_type. Recognize complex types.
10297 (field_name): Handle FLOAT_KEYWORD.
10298 (ident_tokens): Add _Complex and __complex__.
10299
c34e8714
TT
103002020-04-01 Tom Tromey <tom@tromey.com>
10301
10302 PR exp/25299:
10303 * valarith.c (promotion_type, complex_binop): New functions.
10304 (scalar_binop): Handle complex numbers. Use promotion_type.
10305 (value_pos, value_neg, value_complement): Handle complex numbers.
10306
fa649bb7
TT
103072020-04-01 Tom Tromey <tom@tromey.com>
10308
10309 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10310 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10311 (parse_number): Handle complex numbers.
10312
981c08ce
TT
103132020-04-01 Tom Tromey <tom@tromey.com>
10314
10315 * c-valprint.c (c_decorations): Change complex suffix to "i".
10316
4c99290d
TT
103172020-04-01 Tom Tromey <tom@tromey.com>
10318
10319 * valprint.c (generic_value_print_complex): Use accessors.
10320 * value.h (value_real_part, value_imaginary_part): Declare.
10321 * valops.c (value_real_part, value_imaginary_part): New
10322 functions.
10323 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10324
5b930b45
TT
103252020-04-01 Tom Tromey <tom@tromey.com>
10326
10327 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10328 (read_range_type): Update.
10329 * mdebugread.c (basic_type): Update.
10330 * go-lang.c (build_go_types): Use init_complex_type.
10331 * gdbtypes.h (struct main_type) <complex_type>: New member.
10332 (init_complex_type): Update.
10333 (arch_complex_type): Don't declare.
10334 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10335 Make name if none given. Use alloc_type_copy. Look for cached
10336 complex type.
10337 (arch_complex_type): Remove.
10338 (gdbtypes_post_init): Use init_complex_type.
10339 * f-lang.c (build_fortran_types): Use init_complex_type.
10340 * dwarf2/read.c (read_base_type): Update.
10341 * d-lang.c (build_d_types): Use init_complex_type.
10342 * ctfread.c (read_base_type): Update.
10343
53cccef1
TBA
103442020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10345
10346 * infrun.c (stop_all_threads): Update assertion, plus when
10347 stopping threads, take into account that we might be trying
10348 to stop an all-stop target.
10349 (stop_waiting): Call 'stop_all_threads' if there exists a
10350 non-stop target.
10351
a0714d30
TBA
103522020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10353
10354 * target.h (exists_non_stop_target): New function declaration.
10355 * target.c (exists_non_stop_target): New function.
10356
60e22c1e
HD
103572020-04-01 Hannes Domani <ssbssa@yahoo.de>
10358
10359 PR gdb/24789
10360 * eval.c (is_integral_or_integral_reference): New function.
10361 (evaluate_subexp_standard): Allow integer references in
10362 pointer arithmetic.
10363
e139a727
TBA
103642020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10365
10366 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10367 check for no ptid in the stop reply when the target is non-stop.
10368
e0802d59
TT
103692020-04-01 Tom Tromey <tromey@adacore.com>
10370
10371 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10372 "name" parameter to rvalue reference. Initialize m_name_holder.
10373 <lookup_name_info>: New overloads.
10374 <name>: Return gdb::string_view.
10375 <c_str>: New method.
10376 <make_ignore_params>: Update.
10377 <search_name_hash>: Update.
10378 <language_lookup_name>: Return const char *.
10379 <m_name>: Change type.
10380 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10381 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10382 (lookup_name_info::match_any): Update.
10383 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10384 Update.
10385 * minsyms.c (linkage_name_str): Update.
10386 * language.c (default_symbol_name_matcher): Update.
10387 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10388 Update.
10389 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10390 (ada_lookup_name_info::ada_lookup_name_info): Update.
10391 (literal_symbol_name_matcher): Update.
10392
8c072cb6
TT
103932020-04-01 Tom Tromey <tromey@adacore.com>
10394
10395 * psymtab.c (psymtab_search_name): Remove function.
10396 (psym_lookup_symbol): Create search name and lookup name here.
10397 (lookup_partial_symbol): Remove "name" parameter; add
10398 lookup_name.
10399 (psym_expand_symtabs_for_function): Update.
10400
6f29a534
TT
104012020-03-31 Joel Jones <joelkevinjones@gmail.com>
10402
10403 PR tui/25597:
10404 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10405
af62665e
TT
104062020-03-31 Tom Tromey <tromey@adacore.com>
10407
10408 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10409 memcpy.
10410
d1a89da5
NC
104112020-03-30 Nelson Chu <nelson.chu@sifive.com>
10412
10413 * features/riscv/32bit-csr.xml: Regenerated.
10414 * features/riscv/64bit-csr.xml: Regenerated.
10415
d8af9068
TT
104162020-03-30 Tom Tromey <tromey@adacore.com>
10417
10418 * ada-valprint.c (print_variant_part): Update.
10419 * ada-lang.h (ada_which_variant_applies): Update.
10420 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10421 outer_valaddr parameters; replace with "outer" value parameter.
10422 (to_fixed_variant_branch_type): Update.
10423
227c0bf4
PFC
104242020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10425
10426 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10427 <list>. Remove inclusion of observable.h.
10428 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10429 (struct arch_lwp_info): New struct.
10430 (class ppc_linux_dreg_interface): New class.
10431 (struct ppc_linux_process_info): New struct.
10432 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10433 <low_new_clone, low_forget_process, low_prepare_to_resume>
10434 <copy_thread_dreg_state, mark_thread_stale>
10435 <mark_debug_registers_changed, register_hw_breakpoint>
10436 <clear_hw_breakpoint, register_wp, clear_wp>
10437 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10438 <num_memory_accesses, get_trigger_type>
10439 <create_watchpoint_request, hwdebug_point_cmp>
10440 <init_arch_lwp_info, get_arch_lwp_info>
10441 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10442 methods.
10443 <struct ptid_hash>: New inner struct.
10444 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10445 members.
10446 (saved_dabr_value, hwdebug_info, max_slots_number)
10447 (struct hw_break_tuple, struct thread_points, ppc_threads)
10448 (have_ptrace_hwdebug_interface)
10449 (hwdebug_find_thread_points_by_tid)
10450 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10451 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10452 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10453 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10454 use m_dreg_interface.
10455 (hwdebug_point_cmp): Change to...
10456 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10457 reference arguments instead of pointers.
10458 (ppc_linux_nat_target::ranged_break_num_registers): Use
10459 m_dreg_interface.
10460 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10461 m_dreg_interface. Call register_hw_breakpoint.
10462 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10463 m_dreg_interface. Call clear_hw_breakpoint.
10464 (get_trigger_type): Change to...
10465 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10466 comment.
10467 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10468 use m_dreg_interface. Call register_hw_breakpoint.
10469 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10470 use m_dreg_interface. Call clear_hw_breakpoint.
10471 (can_use_watchpoint_cond_accel): Change to...
10472 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10473 method. Update comment, use m_dreg_interface and
10474 m_process_info.
10475 (calculate_dvc): Change to...
10476 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10477 m_dreg_interface.
10478 (num_memory_accesses): Change to...
10479 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10480 (check_condition): Change to...
10481 (ppc_linux_nat_target::check_condition): ...this method.
10482 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10483 comment, use m_dreg_interface.
10484 (create_watchpoint_request): Change to...
10485 (ppc_linux_nat_target::create_watchpoint_request): ...this
10486 method. Use m_dreg_interface.
10487 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10488 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10489 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10490 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10491 (ppc_linux_nat_target::low_forget_process)
10492 (ppc_linux_nat_target::low_new_fork)
10493 (ppc_linux_nat_target::low_new_clone)
10494 (ppc_linux_nat_target::low_delete_thread)
10495 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10496 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10497 only call mark_thread_stale.
10498 (ppc_linux_thread_exit): Remove.
10499 (ppc_linux_nat_target::stopped_data_address): Change to...
10500 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10501 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10502 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10503 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10504 comment. Call low_stopped_data_address.
10505 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10506 m_dreg_interface.
10507 (ppc_linux_nat_target::masked_watch_num_registers): Use
10508 m_dreg_interface.
10509 (ppc_linux_nat_target::copy_thread_dreg_state)
10510 (ppc_linux_nat_target::mark_thread_stale)
10511 (ppc_linux_nat_target::mark_debug_registers_changed)
10512 (ppc_linux_nat_target::register_hw_breakpoint)
10513 (ppc_linux_nat_target::clear_hw_breakpoint)
10514 (ppc_linux_nat_target::register_wp)
10515 (ppc_linux_nat_target::clear_wp)
10516 (ppc_linux_nat_target::init_arch_lwp_info)
10517 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10518 (_initialize_ppc_linux_nat): Remove observer callback.
10519
4db10d8f
PFC
105202020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10521
10522 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10523 (ppc_linux_nat_target::auxv_parse)
10524 (ppc_linux_nat_target::read_description)
10525 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10526 Move up.
10527
1310c1b0
PFC
105282020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10529
10530 * linux-nat.h (low_new_clone): New method.
10531 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10532
69b037c3
SM
105332020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10534
10535 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10536 (dbx_expand_psymtab): ... this.
10537 (start_psymtab): Update.
10538 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10539 (mdebug_expand_psymtab): ... this.
10540 (parse_partial_symbols): Update.
10541 (new_psymtab): Update.
10542 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10543 (xcoff_expand_psymtab): ... this.
10544 (xcoff_start_psymtab): Update.
10545
48993951
SM
105462020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10547
10548 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10549 <expand_dependencies>: ... this.
10550 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10551 (partial_symtab::expand_dependencies): ... this.
10552 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10553 Update.
10554 (dwarf2_psymtab::expand_psymtab): Update.
10555 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10556 * mdebugread.c (psymtab_to_symtab_1): Update.
10557 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10558
3ad83046
SM
105592020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10560
10561 * psympriv.h (discard_psymtab): Remove.
10562 * dbxread.c (dbx_end_psymtab): Update.
10563 * xcoffread.c (xcoff_end_psymtab): Update.
10564
4d1b9ab6
TT
105652020-03-28 Tom Tromey <tom@tromey.com>
10566
10567 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10568 comment.
10569
f1749218
TT
105702020-03-28 Tom Tromey <tom@tromey.com>
10571
10572 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10573
ebea7626
HD
105742020-03-27 Hannes Domani <ssbssa@yahoo.de>
10575
10576 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10577
a879b4d5
JB
105782020-03-26 John Baldwin <jhb@FreeBSD.org>
10579
10580 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10581
0826b30a
TT
105822020-03-26 Tom Tromey <tom@tromey.com>
10583
10584 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10585 (mark_common_block_symbol_computed, read_tag_string_type)
10586 (attr_to_dynamic_prop, read_subrange_type): Update.
10587 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10588 to be methods on struct attribute.
10589 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10590 (read_call_site_scope, partial_die_info::read)
10591 (partial_die_info::read, lookup_die_type, follow_die_ref):
10592 Update.
10593 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10594 from dwarf2_get_ref_die_offset.
10595 (attribute::constant_value): New method, from
10596 dwarf2_get_attr_constant_value.
10597 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10598 Declare method.
10599 <constant_value>: New method.
10600
2b2558bf
TT
106012020-03-26 Tom Tromey <tom@tromey.com>
10602
10603 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10604 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10605 (dwarf_type_encoding_name): Move to stringify.c.
10606 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10607 * dwarf2/stringify.c: New file.
10608 * dwarf2/stringify.h: New file.
10609
eeb64781
TT
106102020-03-26 Tom Tromey <tom@tromey.com>
10611
10612 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10613 Rewrite.
10614
a39fdb41
TT
106152020-03-26 Tom Tromey <tom@tromey.com>
10616
10617 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10618 methods.
10619 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10620 (lookup_ranges_base): Likewise.
10621 (read_cutu_die_from_dwo, read_full_die_1): Update.
10622
436c571c
TT
106232020-03-26 Tom Tromey <tom@tromey.com>
10624
10625 * dwarf2/read.c (read_import_statement, read_file_scope)
10626 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10627 (read_lexical_block_scope, read_call_site_scope)
10628 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10629 (handle_struct_member_die, process_structure_scope)
10630 (update_enumeration_type_from_children)
10631 (process_enumeration_scope, read_array_type, read_common_block)
10632 (read_namespace, read_module, read_subroutine_type): Update.
10633 (sibling_die): Remove.
10634
052c8bb8
TT
106352020-03-26 Tom Tromey <tom@tromey.com>
10636
10637 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10638 (build_type_psymtabs_reader, read_structure_type)
10639 (read_enumeration_type, read_full_die_1): Update.
10640 (dwarf2_attr_no_follow): Move to die.h.
10641 * dwarf2/die.h (struct die_info) <attr>: New method.
10642
2b24b6e4
TT
106432020-03-26 Tom Tromey <tom@tromey.com>
10644
10645 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10646 <base_address>: Now an optional.
10647 (dwarf2_find_base_address, dwarf2_rnglists_process)
10648 (dwarf2_ranges_process, fill_in_loclist_baton)
10649 (dwarf2_symbol_mark_computed): Update.
10650
c2d50fd0
TT
106512020-03-26 Tom Tromey <tom@tromey.com>
10652
10653 * dwarf2/read.c (struct die_info): Move to die.h.
10654 * dwarf2/die.h: New file.
10655
0df7ad3a
TT
106562020-03-26 Tom Tromey <tom@tromey.com>
10657
10658 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10659 * dwarf2/read.c
10660 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10661 Move to line-header.c.
10662 (read_checked_initial_length_and_offset, read_formatted_entries):
10663 Likewise.
10664 (dwarf_decode_line_header): Split into two.
10665 * dwarf2/line-header.c
10666 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10667 Move from read.c.
10668 (read_checked_initial_length_and_offset, read_formatted_entries):
10669 Likewise.
10670 (dwarf_decode_line_header): New function, split from read.c.
10671
86c0bb4c
TT
106722020-03-26 Tom Tromey <tom@tromey.com>
10673
10674 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10675 Declare method.
10676 * dwarf2/read.c (read_attribute_value): Update.
10677 (dwarf2_per_objfile::read_line_string): Rename from
10678 read_indirect_line_string.
10679 (read_formatted_entries): Update.
10680
2ef46c2f
TT
106812020-03-26 Tom Tromey <tom@tromey.com>
10682
10683 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10684 variable.
10685
4f9c1eda
TT
106862020-03-26 Tom Tromey <tom@tromey.com>
10687
10688 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10689 const.
10690 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10691 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10692 parameter const.
10693
5a0e026f
TT
106942020-03-26 Tom Tromey <tom@tromey.com>
10695
10696 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10697 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10698 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10699 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10700
8844c11b
TT
107012020-03-26 Tom Tromey <tom@tromey.com>
10702
10703 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10704 file_names_size, file_full_name, file_file_name>: Use const.
10705 <file_name_at, file_names>: Add const overload.
10706 * dwarf2/line-header.c (line_header::file_file_name)
10707 (line_header::file_full_name): Update.
10708
c90ec28a
TT
107092020-03-26 Tom Tromey <tom@tromey.com>
10710
10711 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10712 (macro_start_file, consume_improper_spaces)
10713 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10714 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10715 (dwarf_decode_macros): Move to macro.c.
10716 * dwarf2/macro.c: New file.
10717 * dwarf2/macro.h: New file.
10718 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10719
4f44ae6c
TT
107202020-03-26 Tom Tromey <tom@tromey.com>
10721
10722 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10723 method.
10724 * dwarf2/section.c: New method. From
10725 read_indirect_string_at_offset_from.
10726 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10727 (read_indirect_string_at_offset_from): Move to section.c.
10728 (read_indirect_string_at_offset): Rewrite.
10729 (read_indirect_line_string_at_offset): Remove.
10730 (read_indirect_string, read_indirect_line_string)
10731 (dwarf_decode_macro_bytes): Update.
10732
a0194fa8
TT
107332020-03-26 Tom Tromey <tom@tromey.com>
10734
10735 * dwarf2/section.h (struct dwarf2_section_info)
10736 <overload_complaint>: Declare.
10737 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10738 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10739 Rename from dwarf2_section_buffer_overflow_complaint.
10740 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10741 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10742
3d27bbdb
TT
107432020-03-26 Tom Tromey <tom@tromey.com>
10744
10745 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10746 Declare.
10747 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10748 Move from read.c.
10749 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10750 to section.c.
10751
9eac9650
TT
107522020-03-26 Tom Tromey <tom@tromey.com>
10753
10754 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10755
bf80d710
TT
107562020-03-26 Tom Tromey <tom@tromey.com>
10757
10758 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10759 "builder".
10760 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10761 parameter.
10762 (dwarf_decode_macros): Update.
10763
0314b390
TT
107642020-03-26 Tom Tromey <tom@tromey.com>
10765
10766 * dwarf2/read.c (read_attribute_value): Update.
10767 (read_indirect_string_from_dwz): Move to dwz.c; change into
10768 method.
10769 (dwarf_decode_macro_bytes): Update.
10770 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10771 * dwarf2/dwz.c: New file.
10772 * Makefile.in (COMMON_SFILES): Add dwz.c.
10773
9fda78b6
TT
107742020-03-26 Tom Tromey <tom@tromey.com>
10775
10776 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10777 * dwarf2/read.c: Add include.
10778 * dwarf2/index-write.c: Add include.
10779 * dwarf2/index-cache.c: Add include.
10780 * dwarf2/dwz.h: New file.
10781
33aa3c10
TT
107822020-03-25 Tom Tromey <tom@tromey.com>
10783
10784 * compile/compile-object-load.c (get_out_value_type): Mention
10785 correct symbol name in error message.
10786
d503b685
HD
107872020-03-25 Hannes Domani <ssbssa@yahoo.de>
10788
10789 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10790
7b1eff95
TV
107912020-03-25 Tom de Vries <tdevries@suse.de>
10792
10793 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10794 * symmisc.c (dump_symtab_1): Print user and includes fields.
10795 (maintenance_info_symtabs): Same.
10796
dd895392
AB
107972020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10798
10799 PR gdb/25534
10800 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10801 (riscv_regcache_cooked_write): New function.
10802 (riscv_push_dummy_call): Use new function.
10803 (riscv_return_value): Likewise.
10804
5ab2fbf1
SM
108052020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10806
10807 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10808 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10809 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10810 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10811 * infrun.c (follow_fork): Likewise.
10812 (follow_fork_inferior): Likewise.
10813 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10814 * linux-nat.h (class linux_nat_target): Likewise.
10815 * remote.c (class remote_target) <follow_fork>: Likewise.
10816 (remote_target::follow_fork): Likewise.
10817 * target-delegates.c: Re-generate.
10818 * target.c (default_follow_fork): Likewise.
10819 (target_follow_fork): Likewise.
10820 * target.h (struct target_ops) <follow_fork>: Likewise.
10821 (target_follow_fork): Likewise.
10822
a64fafb5
TV
108232020-03-24 Tom de Vries <tdevries@suse.de>
10824
10825 * psymtab.c (maintenance_info_psymtabs): Print user field.
10826
fe26d3a3
TT
108272020-03-20 Tom Tromey <tromey@adacore.com>
10828
10829 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10830 const.
10831 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10832 const.
10833
c884cc46
SM
108342020-03-20 Simon Marchi <simon.marchi@efficios.com>
10835
10836 * ptrace.m4: Don't check for ptrace declaration.
10837 * config.in: Re-generate.
10838 * configure: Re-generate.
10839 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10840 not defined.
10841
1ff700c2
KR
108422020-03-20 Kamil Rytarowski <n54@gmx.com>
10843
10844 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10845 `PTRACE_TYPE_RET'.
10846 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10847 * sparc-nat.c (gdb_ptrace): Likewise.
10848 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10849
f7d4f0b1
TT
108502020-03-20 Tom Tromey <tromey@adacore.com>
10851
10852 * c-exp.y (lex_one_token): Fix assert.
10853
f67210ff
TT
108542020-03-20 Tom Tromey <tromey@adacore.com>
10855
10856 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10857 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10858 strncpy call.
10859
1773be9e
TT
108602020-03-20 Tom Tromey <tromey@adacore.com>
10861
10862 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10863
70304be9
TT
108642020-03-20 Tom Tromey <tromey@adacore.com>
10865
10866 * ada-valprint.c (print_variant_part): Remove parameters; switch
10867 to value-based API.
10868 (print_field_values): Likewise.
10869 (ada_val_print_struct_union): Likewise.
10870 (ada_value_print_1): Update.
10871
9faa006d
KR
108722020-03-20 Kamil Rytarowski <n54@gmx.com>
10873
10874 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10875 nbsd_nat_target instead of inf_ptrace_target.
10876 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10877 nbsd_nat_target.
10878
4a90f062
KR
108792020-03-20 Kamil Rytarowski <n54@gmx.com>
10880
10881 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10882 it to the ptrace call.
10883 * (store_registers): Likewise.
10884
108852020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
10886
10887 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10888 it to the ptrace call.
10889 * (store_registers): Likewise.
10890
2d07da27
LM
108912020-03-19 Luis Machado <luis.machado@linaro.org>
10892
10893 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10894 valid, fetch vg value from ptrace.
10895
f09db380
KR
108962020-03-19 Kamil Rytarowski <n54@gmx.com>
10897 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10898 * inf-ptrace.c: Likewise.
10899 * (gdb_ptrace): Add.
10900 * (inf_ptrace_target::resume): Update.
10901 * (inf_ptrace_target::xfer_partial): Likewise.
10902 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10903 * (inf_ptrace_peek_poke): Update.
10904
fcc7376e
KR
109052020-03-19 Kamil Rytarowski <n54@gmx.com>
10906
10907 * x86-bsd-nat.c (gdb_ptrace): New.
10908 * (x86bsd_dr_set): Add new argument `ptid'.
10909 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10910 x86bsd_dr_set_addr): Update.
10911
cada5fc9
AB
109122020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10913
10914 * remote.c (remote_target::process_stop_reply): Handle events for
10915 all threads differently.
10916
19a2740f
AB
109172020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10918
10919 * completer.c (completion_tracker::remove_completion): Define new
10920 function.
10921 * completer.h (completion_tracker::remove_completion): Declare new
10922 function.
10923 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10924 when adding a C++ function symbol.
10925
724fd9ba
AB
109262020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10927
10928 * completer.c (completion_tracker::completion_hash_entry): Define
10929 new class.
10930 (advance_to_filename_complete_word_point): Call
10931 recompute_lowest_common_denominator.
10932 (completion_tracker::completion_tracker): Call discard_completions
10933 to setup the hash table.
10934 (completion_tracker::discard_completions): Allow for being called
10935 from the constructor, pass new equal function, and element deleter
10936 when constructing the hash table. Initialise new class member
10937 variables.
10938 (completion_tracker::maybe_add_completion): Remove use of
10939 m_entries_vec, and store more information into m_entries_hash.
10940 (completion_tracker::recompute_lcd_visitor): New function, most
10941 content taken from...
10942 (completion_tracker::recompute_lowest_common_denominator):
10943 ...here, this now just visits each item in the hash calling the
10944 above visitor.
10945 (completion_tracker::build_completion_result): Remove use of
10946 m_entries_vec, call recompute_lowest_common_denominator.
10947 * completer.h (completion_tracker::have_completions): Remove use
10948 of m_entries_vec.
10949 (completion_tracker::completion_hash_entry): Declare new class.
10950 (completion_tracker::recompute_lowest_common_denominator): Change
10951 function signature.
10952 (completion_tracker::recompute_lcd_visitor): Declare new function.
10953 (completion_tracker::m_entries_vec): Delete.
10954 (completion_tracker::m_entries_hash): Initialize to NULL.
10955 (completion_tracker::m_lowest_common_denominator_valid): New
10956 member variable.
10957 (completion_tracker::m_lowest_common_denominator_max_length): New
10958 member variable.
10959
5a82b8a1
KR
109602020-03-17 Kamil Rytarowski <n54@gmx.com>
10961
10962 * regformats/regdef.h: Put reg in gdb namespace.
10963
fb516a69
KR
109642020-03-17 Kamil Rytarowski <n54@gmx.com>
10965
10966 * i386-bsd-nat.c (gdb_ptrace): New.
10967 * (i386bsd_fetch_inferior_registers,
10968 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10969 * (i386bsd_fetch_inferior_registers,
10970 i386bsd_store_inferior_registers) Use gdb_ptrace.
10971
1c0aa1fb
KR
109722020-03-17 Kamil Rytarowski <n54@gmx.com>
10973
10974 * amd64-bsd-nat.c (gdb_ptrace): New.
10975 * (amd64bsd_fetch_inferior_registers,
10976 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10977 * (amd64bsd_fetch_inferior_registers,
10978 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10979
5ccd2fb7
KR
109802020-03-17 Kamil Rytarowski <n54@gmx.com>
10981
10982 * user-regs.c (user_reg::read): Rename to...
10983 (user_reg::xread): ...this.
10984 * (append_user_reg): Rename argument `read' to `xread'.
10985 * (user_reg_add_builtin): Likewise.
10986 * (user_reg_add): Likewise.
10987 * (value_of_user_reg): Likewise.
10988
2108a63a
KR
109892020-03-17 Kamil Rytarowski <n54@gmx.com>
10990
10991 * sparc-nat.c (gdb_ptrace): New.
10992 * sparc-nat.c (sparc_fetch_inferior_registers)
10993 (sparc_store_inferior_registers) Remove obsolete comment.
10994 * sparc-nat.c (sparc_fetch_inferior_registers)
10995 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10996 * sparc-nat.c (sparc_fetch_inferior_registers)
10997 (sparc_store_inferior_registers) Use gdb_ptrace.
10998
a225c9a8
KR
109992020-03-17 Kamil Rytarowski <n54@gmx.com>
11000
11001 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
11002 it to the ptrace call.
11003 * sh-nbsd-nat.c (store_registers): Likewise.
11004
98097623
KR
110052020-03-17 Kamil Rytarowski <n54@gmx.com>
11006
11007 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
11008 nbsd_nat_target instead of inf_ptrace_target.
11009 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11010 nbsd_nat_target.
11011
9e38d619
KR
110122020-03-17 Kamil Rytarowski <n54@gmx.com>
11013
11014 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11015
a2ecbe9f
KR
110162020-03-17 Kamil Rytarowski <n54@gmx.com>
11017
11018 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11019 <sys/sysctl.h>.
11020 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11021
58990295
TV
110222020-03-17 Tom de Vries <tdevries@suse.de>
11023
11024 PR gdb/23710
11025 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11026 fields.
11027 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11028 fields.
11029 (process_imported_unit_die): Skip import of c++ CUs.
11030
771dd3a8
TT
110312020-03-16 Tom Tromey <tom@tromey.com>
11032
11033 * p-valprint.c (pascal_object_print_value): Initialize
11034 base_value.
11035
817a7585
AK
110362020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11037 Shahab Vahedi <shahab@synopsys.com>
11038
11039 * Makefile.in: Add arch/arc.o
11040 * configure.tgt: Likewise.
11041 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11042 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 11043 (arc_read_description): New function to cache target descriptions.
817a7585
AK
11044 * arc-tdep.h (arc_read_description): Add proto type.
11045 * arch/arc.c: New file.
11046 * arch/arc.h: Likewise.
11047 * features/Makefile: Replace old target descriptions with new.
11048 * features/arc-arcompact.c: Remove.
11049 * features/arc-arcompact.xml: Likewise.
11050 * features/arc-v2.c: Likewise
11051 * features/arc-v2.xml: Likewise
11052 * features/arc/aux-arcompact.xml: New file.
11053 * features/arc/aux-v2.xml: Likewise.
11054 * features/arc/core-arcompact.xml: Likewise.
11055 * features/arc/core-v2.xml: Likewise.
11056 * features/arc/aux-arcompact.c: Generate.
11057 * features/arc/aux-v2.c: Likewise.
11058 * features/arc/core-arcompact.c: Likewise.
11059 * features/arc/core-v2.c: Likewise.
11060 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11061
67430cd0
TT
110622020-03-16 Tom Tromey <tromey@adacore.com>
11063
11064 PR gdb/25663:
11065 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11066 putting value into bcache.
11067
30efb6c7
SM
110682020-03-16 Simon Marchi <simon.marchi@efficios.com>
11069
11070 PR gdb/21500
11071 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11072 to...
11073 (amd64_windows_init_abi_common): ... this. Don't set size of
11074 long type.
11075 (amd64_windows_init_abi): New function.
11076 (amd64_cygwin_init_abi): New function.
11077 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11078 the Cygwin OS ABI.
11079 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11080 comment.
11081
8db52437
SM
110822020-03-16 Simon Marchi <simon.marchi@efficios.com>
11083
11084 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11085 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11086 (pe_import_directory_entry): New struct type.
11087 (is_linked_with_cygwin_dll): New function.
11088 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11089 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11090 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11091
5982a56a
SM
110922020-03-16 Simon Marchi <simon.marchi@efficios.com>
11093
11094 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11095 i386_cygwin_core_osabi_sniffer.
11096
7a1998df
SM
110972020-03-16 Simon Marchi <simon.marchi@efficios.com>
11098
11099 * i386-cygwin-tdep.c: Rename to...
11100 * i386-windows-tdep.c: ... this.
11101 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11102 i386-windows-tdep.c.
11103 * configure.tgt: Likewise.
11104
053205cc
SM
111052020-03-16 Simon Marchi <simon.marchi@efficios.com>
11106
11107 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11108 * osabi.c (gdb_osabi_names): Add "Windows".
11109 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11110 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11111 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11112 i386_cygwin_osabi_sniffer.
11113 (_initialize_i386_cygwin_tdep): Register OS ABI
11114 GDB_OSABI_WINDOWS for i386.
11115 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11116 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11117 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11118 for x86-64.
11119 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11120 when the target matches '*-*-mingw*'.
11121
fe4b2ee6
SM
111222020-03-16 Simon Marchi <simon.marchi@efficios.com>
11123
11124 * defs.h (enum gdb_osabi): Move to...
11125 * osabi.h (enum gdb_osabi): ... here.
11126 * gdbarch.sh: Include osabi.h in gdbarch.h.
11127 * gdbarch.h: Re-generate.
11128
cb9b645d
SM
111292020-03-16 Simon Marchi <simon.marchi@efficios.com>
11130
11131 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11132 function.
11133 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11134
3293bbaf
TT
111352020-03-14 Tom Tromey <tom@tromey.com>
11136
11137 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11138 for C++.
11139 (c_type_print_modifier): Likewise. Add "language" parameter.
11140 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11141 (c_type_print_base_1): Update.
11142 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11143 constants.
11144 * type-stack.c (type_stack::insert): Handle tp_atomic and
11145 tp_restrict.
11146 (type_stack::follow_type_instance_flags): Likewise.
11147 (type_stack::follow_types): Likewise. Merge type-following code.
11148 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11149 (space_identifier, cv_with_space_id)
11150 (const_or_volatile_or_space_identifier_noopt)
11151 (const_or_volatile_or_space_identifier): Remove.
11152 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11153 rules.
11154 (ptr_operator, typebase): Update.
11155 (enum token_flag) <FLAG_C>: New constant.
11156 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11157 "_Atomic".
11158 (lex_one_token): Handle FLAG_C.
11159
154151a6
KR
111602020-03-14 Kamil Rytarowski <n54@gmx.com>
11161
11162 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11163 it to the ptrace call.
11164 * m68k-bsd-nat.c (store_registers): Likewise.
11165
bc107784
KR
111662020-03-14 Kamil Rytarowski <n54@gmx.com>
11167
11168 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11169 gdb_byte *.
11170 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11171 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11172 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11173
01a80117
KR
111742020-03-14 Kamil Rytarowski <n54@gmx.com>
11175
11176 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11177 nbsd_nat_target instead of inf_ptrace_target.
11178 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11179 nbsd_nat_target.
11180
f90280ca
KR
111812020-03-14 Kamil Rytarowski <n54@gmx.com>
11182
11183 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11184 register_t.
11185
6def66f1
KR
111862020-03-14 Kamil Rytarowski <n54@gmx.com>
11187
11188 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11189 it to the ptrace call.
11190 * alpha-bsd-nat.c (store_registers): Likewise.
11191
66eaca97
KR
111922020-03-14 Kamil Rytarowski <n54@gmx.com>
11193
11194 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11195 includes.
11196 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11197 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11198 fill_fpregset): Likewise.
11199
4fed520b
KR
112002020-03-14 Kamil Rytarowski <n54@gmx.com>
11201
11202 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11203 nbsd_nat_target instead of inf_ptrace_target.
11204 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11205 nbsd_nat_target.
11206
2190cf06
KR
112072020-03-14 Kamil Rytarowski <n54@gmx.com>
11208
11209 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11210 register_t.
11211
75c56d3d
KR
112122020-03-14 Kamil Rytarowski <n54@gmx.com>
11213
11214 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11215 it to the ptrace call.
11216 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11217 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11218 * arm-nbsd-nat.c (store_register): Likewise.
11219 * arm-nbsd-nat.c (store_regs): Likewise.
11220 * arm-nbsd-nat.c (store_fp_register): Likewise.
11221 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11222
6018d381
KR
112232020-03-14 Kamil Rytarowski <n54@gmx.com>
11224
11225 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11226 nbsd_nat_target instead of inf_ptrace_target.
11227 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11228 nbsd_nat_target.
11229
013f99f0
KR
112302020-03-14 Kamil Rytarowski <n54@gmx.com>
11231
11232 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11233 it to the ptrace call.
11234 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11235
12753073
KR
112362020-03-14 Kamil Rytarowski <n54@gmx.com>
11237
6227b330
KR
11238 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11239 it to the ptrace call.
11240 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11241
112422020-03-14 Kamil Rytarowski <n54@gmx.com>
11243
11244 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11245 gdb_byte *.
12753073
KR
11246 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11247
d5be5fa4
KR
112482020-03-14 Kamil Rytarowski <n54@gmx.com>
11249
11250 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11251 instead of inf_ptrace_target.
11252 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11253 nbsd_nat_target.
11254
8110f842
KR
112552020-03-14 Kamil Rytarowski <n54@gmx.com>
11256
11257 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11258 register_t.
11259
52feded7
KR
112602020-03-14 Kamil Rytarowski <n54@gmx.com>
11261
11262 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11263 register_t.
11264
25567eee
KR
112652020-03-14 Kamil Rytarowski <n54@gmx.com>
11266
11267 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11268 register_t.
11269
426a9c18
TT
112702020-03-13 Tom Tromey <tom@tromey.com>
11271
11272 * value.h (val_print): Don't declare.
11273 * valprint.h (val_print_array_elements)
11274 (val_print_scalar_formatted, generic_val_print): Don't declare.
11275 * valprint.c (generic_val_print_array): Take a struct value.
11276 (generic_val_print_ptr, generic_val_print_memberptr)
11277 (generic_val_print_bool, generic_val_print_int)
11278 (generic_val_print_char, generic_val_print_complex)
11279 (generic_val_print): Remove.
11280 (generic_value_print): Update.
11281 (do_val_print): Remove unused parameters. Don't call
11282 la_val_print.
11283 (val_print): Remove.
11284 (common_val_print): Update. Don't call value_check_printable.
11285 (val_print_scalar_formatted, val_print_array_elements): Remove.
11286 * rust-lang.c (rust_val_print): Remove.
11287 (rust_language_defn): Update.
11288 * p-valprint.c (pascal_val_print): Remove.
11289 (pascal_value_print_inner): Update.
11290 (pascal_object_print_val_fields, pascal_object_print_val):
11291 Remove.
11292 (pascal_object_print_static_field): Update.
11293 * p-lang.h (pascal_val_print): Don't declare.
11294 * p-lang.c (pascal_language_defn): Update.
11295 * opencl-lang.c (opencl_language_defn): Update.
11296 * objc-lang.c (objc_language_defn): Update.
11297 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11298 * m2-lang.h (m2_val_print): Don't declare.
11299 * m2-lang.c (m2_language_defn): Update.
11300 * language.h (struct language_defn) <la_val_print>: Remove.
11301 * language.c (unk_lang_value_print_inner): Rename. Change
11302 argument types.
11303 (unknown_language_defn, auto_language_defn): Update.
11304 * go-valprint.c (go_val_print): Remove.
11305 * go-lang.h (go_val_print): Don't declare.
11306 * go-lang.c (go_language_defn): Update.
11307 * f-valprint.c (f_val_print): Remove.
11308 * f-lang.h (f_value_print): Don't declare.
11309 * f-lang.c (f_language_defn): Update.
11310 * d-valprint.c (d_val_print): Remove.
11311 * d-lang.h (d_value_print): Don't declare.
11312 * d-lang.c (d_language_defn): Update.
11313 * cp-valprint.c (cp_print_value_fields)
11314 (cp_print_value_fields_rtti, cp_print_value): Remove.
11315 (cp_print_static_field): Update.
11316 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11317 (c_val_print_struct, c_val_print_union, c_val_print_int)
11318 (c_val_print_memberptr, c_val_print): Remove.
11319 * c-lang.h (c_val_print_array, cp_print_value_fields)
11320 (cp_print_value_fields_rtti): Don't declare.
11321 * c-lang.c (c_language_defn, cplus_language_defn)
11322 (asm_language_defn, minimal_language_defn): Update.
11323 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11324 (ada_val_print_enum): Take a struct value.
11325 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11326 (ada_val_print): Remove.
11327 (ada_value_print_1): Update.
11328 (printable_val_type): Remove.
11329 * ada-lang.h (ada_val_print): Don't declare.
11330 * ada-lang.c (ada_language_defn): Update.
11331
42331a1e
TT
113322020-03-13 Tom Tromey <tom@tromey.com>
11333
11334 * valprint.c (do_val_print): Update.
11335 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11336 a struct value.
11337 (value_to_value_object_no_release): Declare.
11338 * python/py-value.c (value_to_value_object_no_release): New
11339 function.
11340 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11341 struct value.
11342 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11343 function.
11344 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11345 a struct value.
11346 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11347 Declare.
11348 (gdbscm_apply_val_pretty_printer): Take a struct value.
11349 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11350 value.
11351 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11352 value.
11353 * extension-priv.h (struct extension_language_ops)
11354 <apply_val_pretty_printer>: Take a struct value.
11355 * cp-valprint.c (cp_print_value): Create a struct value.
11356 (cp_print_value): Update.
11357
3a916a97
TT
113582020-03-13 Tom Tromey <tom@tromey.com>
11359
11360 * ada-valprint.c (print_field_values): Call common_val_print.
11361
b59eac37
TT
113622020-03-13 Tom Tromey <tom@tromey.com>
11363
11364 * ada-valprint.c (val_print_packed_array_elements): Remove
11365 bitoffset and val parameters. Call common_val_print.
11366 (ada_val_print_string): Remove offset, address, and original_value
11367 parameters.
11368 (ada_val_print_array): Update.
11369 (ada_value_print_array): New function.
11370 (ada_value_print_1): Call it.
11371
03371129
TT
113722020-03-13 Tom Tromey <tom@tromey.com>
11373
11374 * ada-valprint.c (ada_value_print): Use common_val_print.
11375
2e088f8b
TT
113762020-03-13 Tom Tromey <tom@tromey.com>
11377
11378 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11379
39ef85a8
TT
113802020-03-13 Tom Tromey <tom@tromey.com>
11381
11382 * ada-valprint.c (ada_value_print_num): New function.
11383 (ada_value_print_1): Use it.
11384
b9fa6e07
TT
113852020-03-13 Tom Tromey <tom@tromey.com>
11386
11387 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11388
416595d6
TT
113892020-03-13 Tom Tromey <tom@tromey.com>
11390
11391 * ada-valprint.c (ada_value_print_ptr): New function.
11392 (ada_value_print_1): Use it.
11393
5b5e15ec
TT
113942020-03-13 Tom Tromey <tom@tromey.com>
11395
11396 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11397 call common_val_print.
11398 (ada_val_print_1): Update.
11399 (ada_value_print_1): New function.
11400 (ada_value_print_inner): Rewrite.
11401
fbf54e75
TT
114022020-03-13 Tom Tromey <tom@tromey.com>
11403
11404 * cp-valprint.c (cp_print_value_fields): Update.
11405 (cp_print_value): New function.
11406
64b653ca
TT
114072020-03-13 Tom Tromey <tom@tromey.com>
11408
11409 * m2-valprint.c (m2_value_print_inner): Use
11410 cp_print_value_fields.
11411 * cp-valprint.c (cp_print_value_fields): New function.
11412 * c-valprint.c (c_value_print_struct): New function.
11413 (c_value_print_inner): Use c_value_print_struct.
11414 * c-lang.h (cp_print_value_fields): Declare.
11415
6999f067
TT
114162020-03-13 Tom Tromey <tom@tromey.com>
11417
11418 * c-valprint.c (c_value_print_array): New function.
11419 (c_value_print_inner): Use it.
11420
ce80b8bd
TT
114212020-03-13 Tom Tromey <tom@tromey.com>
11422
11423 * c-valprint.c (c_value_print_memberptr): New function.
11424 (c_value_print_inner): Use it.
11425
2faac269
TT
114262020-03-13 Tom Tromey <tom@tromey.com>
11427
11428 * c-valprint.c (c_value_print_int): New function.
11429 (c_value_print_inner): Use it.
11430
da3e2c29
TT
114312020-03-13 Tom Tromey <tom@tromey.com>
11432
11433 * c-valprint.c (c_value_print_ptr): New function.
11434 (c_value_print_inner): Use it.
11435
50836231
TT
114362020-03-13 Tom Tromey <tom@tromey.com>
11437
11438 * c-valprint.c (c_value_print_inner): Rewrite.
11439
4f412b6e
TT
114402020-03-13 Tom Tromey <tom@tromey.com>
11441
11442 * valprint.c (generic_value_print_complex): New function.
11443 (generic_value_print): Use it.
11444
f5354008
TT
114452020-03-13 Tom Tromey <tom@tromey.com>
11446
11447 * valprint.c (generic_val_print_float): Don't call
11448 val_print_scalar_formatted.
11449 (generic_val_print, generic_value_print): Update.
11450
3eec3b05
TT
114512020-03-13 Tom Tromey <tom@tromey.com>
11452
11453 * valprint.c (generic_value_print_char): New function
11454 (generic_value_print): Use it.
11455
fdddfccb
TT
114562020-03-13 Tom Tromey <tom@tromey.com>
11457
11458 * valprint.c (generic_value_print_int): New function.
11459 (generic_value_print): Use it.
11460
6dde7521
TT
114612020-03-13 Tom Tromey <tom@tromey.com>
11462
11463 * valprint.c (generic_value_print_bool): New function.
11464 (generic_value_print): Use it.
11465
4112d2e6
TT
114662020-03-13 Tom Tromey <tom@tromey.com>
11467
11468 * valprint.c (generic_val_print_func): Simplify.
11469 (generic_val_print, generic_value_print): Update.
11470
65786af6
TT
114712020-03-13 Tom Tromey <tom@tromey.com>
11472
11473 * valprint.c (generic_val_print_flags): Remove.
11474 (generic_val_print, generic_value_print): Update.
11475 (val_print_type_code_flags): Add original_value parameter.
11476
40f3ce18
TT
114772020-03-13 Tom Tromey <tom@tromey.com>
11478
11479 * valprint.c (generic_val_print): Update.
11480 (generic_value_print): Update.
11481 * valprint.c (generic_val_print_enum): Don't call
11482 val_print_scalar_formatted.
11483
2a5b130b
TT
114842020-03-13 Tom Tromey <tom@tromey.com>
11485
11486 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11487 * valprint.c (generic_value_print_ptr): New function.
11488
abc66ce9
TT
114892020-03-13 Tom Tromey <tom@tromey.com>
11490
11491 * valprint.c (generic_value_print): Rewrite.
11492
07a32858
TT
114932020-03-13 Tom Tromey <tom@tromey.com>
11494
11495 * p-valprint.c (pascal_object_print_value_fields)
11496 (pascal_object_print_value): New functions.
11497
64d64d3a
TT
114982020-03-13 Tom Tromey <tom@tromey.com>
11499
11500 * p-valprint.c (pascal_value_print_inner): Rewrite.
11501
6a95a1f5
TT
115022020-03-13 Tom Tromey <tom@tromey.com>
11503
11504 * f-valprint.c (f_value_print_innner): Rewrite.
11505
59fcdac6
TT
115062020-03-13 Tom Tromey <tom@tromey.com>
11507
11508 * m2-valprint.c (m2_print_unbounded_array): New overload.
11509 (m2_print_unbounded_array): Update.
11510 (m2_print_array_contents): Take a struct value.
11511 (m2_value_print_inner): Rewrite.
11512
d133c3e1
TT
115132020-03-13 Tom Tromey <tom@tromey.com>
11514
11515 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11516 (d_value_print_inner): New function.
11517 * d-lang.h (d_value_print_inner): Declare.
11518 * d-lang.c (d_language_defn): Use d_value_print_inner.
11519
23b0f06b
TT
115202020-03-13 Tom Tromey <tom@tromey.com>
11521
11522 * go-valprint.c (go_value_print_inner): New function.
11523 * go-lang.h (go_value_print_inner): Declare.
11524 * go-lang.c (go_language_defn): Use go_value_print_inner.
11525
5f56f7cb
TT
115262020-03-13 Tom Tromey <tom@tromey.com>
11527
11528 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11529 API.
11530 (rust_val_print): Rewrite.
11531 (rust_value_print_inner): New function, from rust_val_print.
11532 (rust_language_defn): Use rust_value_print_inner.
11533
26792ee0
TT
115342020-03-13 Tom Tromey <tom@tromey.com>
11535
11536 * ada-valprint.c (ada_value_print_inner): New function.
11537 * ada-lang.h (ada_value_print_inner): Declare.
11538 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11539
24051bbe
TT
115402020-03-13 Tom Tromey <tom@tromey.com>
11541
11542 * f-valprint.c (f_value_print_innner): New function.
11543 * f-lang.h (f_value_print_innner): Declare.
11544 * f-lang.c (f_language_defn): Use f_value_print_innner.
11545
c0941be6
TT
115462020-03-13 Tom Tromey <tom@tromey.com>
11547
11548 * p-valprint.c (pascal_value_print_inner): New function.
11549 * p-lang.h (pascal_value_print_inner): Declare.
11550 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11551
62c4663d
TT
115522020-03-13 Tom Tromey <tom@tromey.com>
11553
11554 * m2-valprint.c (m2_value_print_inner): New function.
11555 * m2-lang.h (m2_value_print_inner): Declare.
11556 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11557
62182190
TT
115582020-03-13 Tom Tromey <tom@tromey.com>
11559
11560 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11561 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11562 * c-valprint.c (c_value_print_inner): New function.
11563 * c-lang.h (c_value_print_inner): Declare.
11564 * c-lang.c (c_language_defn, cplus_language_defn)
11565 (asm_language_defn, minimal_language_defn): Use
11566 c_value_print_inner.
11567
1e592a8a
TT
115682020-03-13 Tom Tromey <tom@tromey.com>
11569
11570 * p-valprint.c (pascal_object_print_value_fields): Now static.
11571 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11572
7fe471e9
TT
115732020-03-13 Tom Tromey <tom@tromey.com>
11574
11575 * c-valprint.c (c_val_print_array): Simplify.
11576
d121c6ce
TT
115772020-03-13 Tom Tromey <tom@tromey.com>
11578
11579 * valprint.c (value_print_array_elements): New function.
11580 * valprint.h (value_print_array_elements): Declare.
11581
4dba70ee
TT
115822020-03-13 Tom Tromey <tom@tromey.com>
11583
11584 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11585 * mips-tdep.c (mips_print_register): Use
11586 value_print_scalar_formatted.
11587
4f9ae810
TT
115882020-03-13 Tom Tromey <tom@tromey.com>
11589
11590 * valprint.h (value_print_scalar_formatted): Declare.
11591 * valprint.c (value_print_scalar_formatted): New function.
11592
156bfec9
TT
115932020-03-13 Tom Tromey <tom@tromey.com>
11594
11595 * valprint.h (generic_value_print): Declare.
11596 * valprint.c (generic_value_print): New function.
11597
2b4e573d
TT
115982020-03-13 Tom Tromey <tom@tromey.com>
11599
11600 * valprint.c (do_val_print): Call la_value_print_inner, if
11601 available.
11602 * rust-lang.c (rust_language_defn): Update.
11603 * p-lang.c (pascal_language_defn): Update.
11604 * opencl-lang.c (opencl_language_defn): Update.
11605 * objc-lang.c (objc_language_defn): Update.
11606 * m2-lang.c (m2_language_defn): Update.
11607 * language.h (struct language_defn) <la_value_print_inner>: New
11608 member.
11609 * language.c (unknown_language_defn, auto_language_defn): Update.
11610 * go-lang.c (go_language_defn): Update.
11611 * f-lang.c (f_language_defn): Update.
11612 * d-lang.c (d_language_defn): Update.
11613 * c-lang.c (c_language_defn, cplus_language_defn)
11614 (asm_language_defn, minimal_language_defn): Update.
11615 * ada-lang.c (ada_language_defn): Update.
11616
a1f6a07c
TT
116172020-03-13 Tom Tromey <tom@tromey.com>
11618
11619 * c-valprint.c (c_value_print): Use common_val_print.
11620
410cf315
TT
116212020-03-13 Tom Tromey <tom@tromey.com>
11622
11623 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11624
72a45c93
TT
116252020-03-13 Tom Tromey <tom@tromey.com>
11626
11627 * f-valprint.c (f77_print_array_1, f_val_print): Use
11628 common_val_print.
11629
040f66bd
TT
116302020-03-13 Tom Tromey <tom@tromey.com>
11631
11632 * riscv-tdep.c (riscv_print_one_register_info): Use
11633 common_val_print.
11634
a6e05a6c
TT
116352020-03-13 Tom Tromey <tom@tromey.com>
11636
11637 * mi/mi-main.c (output_register): Use common_val_print.
11638
3444c526
TT
116392020-03-13 Tom Tromey <tom@tromey.com>
11640
11641 * infcmd.c (default_print_one_register_info): Use
11642 common_val_print.
11643
c2a44efe
TT
116442020-03-13 Tom Tromey <tom@tromey.com>
11645
11646 * valprint.h (common_val_print_checked): Declare.
11647 * valprint.c (common_val_print_checked): New function.
11648 * stack.c (print_frame_arg): Use common_val_print_checked.
11649
b0c26e99
TT
116502020-03-13 Tom Tromey <tom@tromey.com>
11651
11652 * valprint.c (do_val_print): New function, from val_print.
11653 (val_print): Use do_val_print.
11654 (common_val_print): Use do_val_print.
11655
ce3acbe9
TT
116562020-03-13 Tom Tromey <tom@tromey.com>
11657
11658 * valprint.c (value_print): Use scoped_value_mark.
11659
96c7f873
TV
116602020-03-13 Tom de Vries <tdevries@suse.de>
11661
11662 PR symtab/25646
11663 * psymtab.c (partial_symtab::partial_symtab): Don't set
11664 globals_offset and statics_offset. Push element onto
11665 current_global_psymbols and current_static_psymbols stacks.
11666 (concat): New function.
11667 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11668 element from current_global_psymbols and current_static_psymbols
11669 stacks. Concat popped elements to global_psymbols and
11670 static_symbols.
11671 (add_psymbol_to_list): Use current_global_psymbols and
11672 current_static_psymbols stacks.
11673 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11674 current_static_psymbols fields.
11675
6ba0a321
CB
116762020-03-12 Christian Biesinger <cbiesinger@google.com>
11677
11678 * corelow.c (sniff_core_bfd): Remove.
11679 (class core_target) <m_core_vec>: Remove.
11680 (core_target::core_target): Update.
11681 (core_file_fns): Remove.
11682 (deprecated_add_core_fns): Remove.
11683 (default_core_sniffer): Remove.
11684 (sniff_core_bfd): Remove.
11685 (default_check_format): Remove.
11686 (gdb_check_format): Remove.
11687 (core_target_open): Update.
11688 (core_target::get_core_register_section): Update.
11689 (get_core_registers_cb): Update.
11690 (core_target::fetch_registers): Update.
11691 * gdbcore.h (struct core_fns): Remove.
11692 (deprecated_add_core_fns): Remove.
11693 (default_core_sniffer): Remove.
11694 (default_check_format): Remove.
11695
227031b2
TT
116962020-03-12 Tom Tromey <tom@tromey.com>
11697
11698 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11699 CORE_ADDR.
11700 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11701
53807e9f
TT
117022020-03-12 Tom Tromey <tom@tromey.com>
11703
11704 * remote.c (remote_target::download_tracepoint)
11705 (remote_target::enable_tracepoint)
11706 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11707 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11708 sprintf_vma.
11709
64f25102
TT
117102020-03-12 Tom Tromey <tom@tromey.com>
11711
11712 * symfile-mem.c: Update CORE_ADDR size assert.
11713
272cd5a3
SM
117142020-03-12 Simon Marchi <simon.marchi@efficios.com>
11715
11716 * selftest.m4: Move to gdbsupport/.
11717 * acinclude.m4: Update path to selftest.m4.
11718
74cd3f9d
SM
117192020-03-12 Simon Marchi <simon.marchi@efficios.com>
11720
11721 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11722 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11723 gdbarch-selfselftests.c and selftest-arch.c.
11724 (SUBDIR_UNITTESTS_OBS): Rename to...
11725 (SELFTESTS_OBS): ... this.
11726 (COMMON_SFILES): Remove disasm-selftests.c and
11727 gdbarch-selftests.c.
11728 * configure.ac: Don't add selftest-arch.{c,o} to
11729 CONFIG_{SRCS,OBS}.
11730 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11731 preprocessor conditions.
11732
db6878ac
SM
117332020-03-12 Simon Marchi <simon.marchi@efficios.com>
11734
11735 * configure.ac: Don't source bfd/development.sh.
11736 * selftest.m4: Modify comment.
11737 * configure: Re-generate.
11738
4d696a5c
SM
117392020-03-12 Simon Marchi <simon.marchi@efficios.com>
11740
11741 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11742 not "true" or "false".
11743 * configure: Re-generate.
11744
8dd8e1c7
CB
117452020-03-12 Christian Biesinger <cbiesinger@google.com>
11746
11747 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11748 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11749 renamed to arm_nbsd_supply_gregset.
11750 (fetch_register): Update to call arm_nbsd_supply_gregset.
11751 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11752 (arm_netbsd_nat_target::fetch_registers): Update.
11753 (fetch_elfcore_registers): Removed.
11754 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11755 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11756 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11757 not require NetBSD system headers.
11758 (arm_nbsd_regset): New struct.
11759 (arm_nbsd_iterate_over_regset_sections): New function.
11760 (arm_netbsd_init_abi_common): Updated to call
11761 set_gdbarch_iterate_over_regset_sections.
11762 * arm-nbsd-tdep.h: New file.
11763
dd69bf7a
KB
117642020-03-11 Kevin Buettner <kevinb@redhat.com>
11765
11766 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11767 recursion.
11768
a0761e34
SM
117692020-03-11 Simon Marchi <simon.marchi@efficios.com>
11770
11771 * configure: Re-generate.
11772
e7a82140
TT
117732020-03-11 Tom Tromey <tromey@adacore.com>
11774
11775 * ada-typeprint.c (print_choices): Fix comment.
11776
dcc050c8
AB
117772020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11778
11779 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11780 previous item in the list, when the list has no items.
11781
1c33af77
TV
117822020-03-11 Tom de Vries <tdevries@suse.de>
11783
11784 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11785 PROP_LOCLIST handling code.
11786
8c95582d
AB
117872020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11788
11789 * buildsym-legacy.c (record_line): Pass extra parameter to
11790 record_line.
11791 * buildsym.c (buildsym_compunit::record_line): Take an extra
11792 parameter, reduce duplication in the line table, and record the
11793 is_stmt flag in the line table.
11794 * buildsym.h (buildsym_compunit::record_line): Add extra
11795 parameter.
11796 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11797 non-statement lines.
11798 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11799 this to the symtab builder.
11800 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11801 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11802 through to dwarf_record_line_1.
11803 * infrun.c (process_event_stop_test): When stepping, don't stop at
11804 a non-statement instruction, and only refresh the step info when
11805 we land in the middle of a line's range. Also add an extra
11806 comment.
11807 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11808 field.
11809 * record-btrace.c (btrace_find_line_range): Only record lines
11810 marked as is-statement.
11811 * stack.c (frame_show_address): Show the frame address if we are
11812 in a non-statement sal.
11813 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11814 (maintenance_print_one_line_table): Print a header for the is_stmt
11815 column, and include is_stmt information in the output.
11816 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11817 preference to non-statements.
11818 (find_pcs_for_symtab_line): Prefer is-statement entries.
11819 (find_line_common): Likewise.
11820 * symtab.h (struct linetable_entry): Add is_stmt field.
11821 (struct symtab_and_line): Likewise.
11822 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11823 arranging the line table.
11824
e4003a34
TV
118252020-03-07 Tom de Vries <tdevries@suse.de>
11826
11827 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11828 DIE.
11829
e8932576
TT
118302020-03-07 Tom Tromey <tom@tromey.com>
11831
11832 * valops.c (value_literal_complex): Remove obsolete comment.
11833 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11834 comment.
11835
29734269
SM
118362020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11837
11838 * infrun.h: Forward-declare thread_info.
11839 (set_step_info): Add thread_info parameter, add doc.
11840 * infrun.c (set_step_info): Add thread_info parameter, move doc
11841 to header.
11842 * infrun.c (process_event_stop_test): Pass thread to
11843 set_step_info call.
11844 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11845 set_step_info.
11846 (prepare_one_step): Add thread_info parameter, pass it to
11847 set_step_frame and prepare_one_step (recursive) call.
11848 (step_1): Pass thread to prepare_one_step call.
11849 (step_command_fsm::should_stop): Pass thread to
11850 prepare_one_step.
11851 (until_next_fsm): Pass thread to set_step_frame call.
11852 (finish_command): Pass thread to set_step_info call.
11853
b7d64b29
HD
118542020-03-06 Hannes Domani <ssbssa@yahoo.de>
11855
11856 * windows-tdep.c (windows_solib_create_inferior_hook):
11857 Check if inferior is running.
11858
09f2921c
TV
118592020-03-06 Tom de Vries <tdevries@suse.de>
11860
11861 * NEWS: Fix "the the".
11862 * ctfread.c: Same.
11863
fd760e79
TV
118642020-03-06 Tom de Vries <tdevries@suse.de>
11865
11866 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11867
20ea4a60
AB
118682020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11869
11870 * .dir-locals.el: Add a comment referencing the other copies of
11871 this file.
11872
0afbabf0
JB
118732020-03-05 John Baldwin <jhb@FreeBSD.org>
11874
11875 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11876 psargs.
11877
842806cb
TBA
118782020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11879
11880 * .gitattributes: New file.
11881
be1e3d3e
TT
118822020-03-04 Tom Tromey <tom@tromey.com>
11883
11884 * symmisc.c (print_symbol_bcache_statistics)
11885 (print_objfile_statistics): Update.
11886 * symfile.c (allocate_symtab): Use intern.
11887 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11888 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11889 macro_cache>: Remove.
11890 <string_cache>: New member.
11891 (struct objfile) <intern>: New methods.
11892 * elfread.c (elf_symtab_read): Use intern.
11893 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11894 (dwarf2_compute_name, dwarf2_physname)
11895 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11896 names.
11897 (guess_partial_die_structure_name): Update.
11898 (partial_die_info::fixup): Intern name.
11899 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11900 name.
11901 (dwarf2_name): Intern name. Update.
11902 * buildsym.c (buildsym_compunit::get_macro_table): Use
11903 string_cache.
11904
4e7625fd
TT
119052020-03-04 Tom Tromey <tom@tromey.com>
11906
11907 * jit.c (bfd_open_from_target_memory): Make "target" const.
11908 * corefile.c (gnutarget): Now const.
11909 * gdbcore.h (gnutarget): Now const.
11910
46f9f931
HD
119112020-03-04 Hannes Domani <ssbssa@yahoo.de>
11912
11913 * NEWS: Mention support for WOW64 processes.
11914 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11915 (amd64_windows_segment_register_p): Remove static.
11916 (_initialize_amd64_windows_nat): Update.
11917 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11918 * i386-windows-nat.c (context_offset): Update.
11919 (i386_mappings): Rename and remove static.
11920 (i386_windows_segment_register_p): Remove static.
11921 (_initialize_i386_windows_nat): Update.
11922 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11923 (STATUS_WX86_SINGLE_STEP): New macro.
11924 (EnumProcessModulesEx): New macro.
11925 (Wow64SuspendThread): New macro.
11926 (Wow64GetThreadContext): New macro.
11927 (Wow64SetThreadContext): New macro.
11928 (Wow64GetThreadSelectorEntry): New macro.
11929 (windows_set_context_register_offsets): Add static.
11930 (windows_set_segment_register_p): Likewise.
11931 (windows_add_thread): Adapt for WOW64 processes.
11932 (windows_fetch_one_register): Likewise.
11933 (windows_nat_target::fetch_registers): Likewise.
11934 (windows_store_one_register): Likewise.
11935 (display_selector): Likewise.
11936 (display_selectors): Likewise.
11937 (handle_exception): Likewise.
11938 (windows_continue): Likewise.
11939 (windows_nat_target::resume): Likewise.
11940 (windows_add_all_dlls): Likewise.
11941 (do_initial_windows_stuff): Likewise.
11942 (windows_nat_target::attach): Likewise.
11943 (windows_get_exec_module_filename): Likewise.
11944 (windows_nat_target::create_inferior): Likewise.
11945 (windows_xfer_siginfo): Likewise.
11946 (_initialize_loadable): Initialize Wow64SuspendThread,
11947 Wow64GetThreadContext, Wow64SetThreadContext,
11948 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11949 * windows-nat.h (windows_set_context_register_offsets):
11950 Remove declaration.
11951 (windows_set_segment_register_p): Likewise.
11952 (i386_windows_segment_register_p): Add declaration.
11953 (amd64_windows_segment_register_p): Likewise.
11954
440cf44e
LM
119552020-03-04 Luis Machado <luis.machado@linaro.org>
11956
11957 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11958 in "info registers" for AArch64/ARM.
11959
11960 The change caused "info registers" to not print GPR's.
11961
11962 gdb/ChangeLog:
11963
11964 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11965
11966 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11967 when reg->group is empty and reggroup is not.
11968
1009d92f
TT
119692020-03-03 Tom Tromey <tromey@adacore.com>
11970
11971 * dwarf2/frame.c (struct dwarf2_frame_cache)
11972 <checked_tailcall_bottom, entry_cfa_sp_offset,
11973 entry_cfa_sp_offset_p>: Remove members.
11974 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11975 (dwarf2_frame_prev_register): Don't call
11976 dwarf2_tailcall_sniffer_first.
11977 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11978 * frame-unwind.c (add_unwinder): New fuction.
11979 (frame_unwind_init): Use it. Add tailcall unwinder.
11980
5e5d66b6
AB
119812020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11982 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11983
11984 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11985 value should be printed as true.
11986
584cf46d
HD
119872020-03-03 Hannes Domani <ssbssa@yahoo.de>
11988
11989 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11990 (windows_init_abi): Set and use windows_so_ops.
11991
7b973adc
SDJ
119922020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11993
11994 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11995 when verifying if dealing with a convenience variable.
11996
bb7b70ab
LM
119972020-03-03 Luis Machado <luis.machado@linaro.org>
11998
11999 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
12000
9822cb57
SM
120012020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
12002
12003 * infrun.c (gdbarch_supports_displaced_stepping): New.
12004 (use_displaced_stepping): Break up conditions in smaller pieces.
12005 Use gdbarch_supports_displaced_stepping.
12006 (displaced_step_prepare_throw): Use
12007 gdbarch_supports_displaced_stepping.
12008
63e163f2
AB
120092020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12010
12011 * NEWS: Mention new behaviour of the history filename.
12012 * top.c (write_history_p): Add comment.
12013 (show_write_history_p): Add header comment, give a different
12014 message when history writing is on, but the history filename is
12015 empty.
12016 (history_filename): Add comment.
12017 (history_filename_empty): New function.
12018 (show_history_filename): Add header comment, give a different
12019 message when the filename is empty.
12020 (init_history): Compare history_filename against nullptr, and only
12021 read history if the filename is not empty.
12022 (set_history_filename): Add header comment, and only make
12023 non-empty filenames absolute.
12024 (init_main): Make the filename argument to 'set history filename'
12025 optional.
12026
81b86b97
CB
120272020-03-02 Christian Biesinger <cbiesinger@google.com>
12028
12029 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12030 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12031 (fetch_fp_register): Update.
12032 (fetch_fp_regs): Update.
12033 (store_fp_register): Update.
12034 (store_fp_regs): Update.
12035 (arm_netbsd_nat_target::read_description): New function.
12036 (fetch_elfcore_registers): Update.
12037
24ed6739
AB
120382020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12039
12040 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12041 general_thread if the stop reply is missing a thread-id.
12042 (remote_target::process_stop_reply): Use the first non-exited
12043 thread if the target didn't pass a thread-id.
12044 * infrun.c (do_target_wait): Move call to
12045 switch_to_inferior_no_thread to ....
12046 (do_target_wait_1): ... here.
12047
a84bb2a0
JT
120482020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12049
12050 * debuginfod-support.c: Include defs.h first.
12051
658dadf0
TV
120522020-02-28 Tom de Vries <tdevries@suse.de>
12053
12054 * symfile.c (set_initial_language): Use default language for lookup.
12055
4ebe4877
SM
120562020-02-28 Simon Marchi <simon.marchi@efficios.com>
12057
12058 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12059 reader variable, pass `this` to read_cutu_die_from_dwo.
12060
e5da1139
AM
120612020-02-27 Aaron Merey <amerey@redhat.com>
12062
12063 * source.c (open_source_file): Check for nullptr when computing
12064 srcpath.
12065
317f7127
TT
120662020-02-27 Tom Tromey <tromey@adacore.com>
12067
12068 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12069 member.
12070 (dwarf2_add_field): Don't update nfields.
12071 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12072
3104d9ee
AB
120732020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12074
12075 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12076 abs.
12077
b83470bf
TT
120782020-02-26 Tom Tromey <tom@tromey.com>
12079
12080 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12081 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12082 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12083 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12084 per_cu_data.
12085
edfe0a0c
TT
120862020-02-26 Tom Tromey <tom@tromey.com>
12087
12088 * dwarf2/index-write.c (psym_index_map): Change type.
12089 (add_address_entry_worker, write_one_signatured_type)
12090 (recursively_count_psymbols, recursively_write_psymbols)
12091 (class debug_names, psyms_seen_size, write_gdbindex)
12092 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12093
0d79cdc4
AM
120942020-02-26 Aaron Merey <amerey@redhat.com>
12095
12096 * Makefile.in: Handle optional debuginfod support.
12097 * NEWS: Update.
12098 * README: Add --with-debuginfod summary.
12099 * config.in: Regenerate.
12100 * configure: Regenerate.
12101 * configure.ac: Handle optional debuginfod support.
12102 * debuginfod-support.c: debuginfod helper functions.
12103 * debuginfod-support.h: Ditto.
12104 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12105 summary.
12106 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12107 when a dwz file cannot be found.
12108 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12109 debuginfo file cannot be found.
12110 * source.c (open_source_file): Query debuginfod servers when a
12111 source file cannot be found.
12112 * top.c (print_gdb_configuration): Include
12113 --{with,without}-debuginfod in the output.
12114
b65ce565
JG
121152020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12116
12117 * thread.c (thr_try_catch_cmd): Print thread name.
12118
d4c9a4f8
SM
121192020-02-26 Simon Marchi <simon.marchi@efficios.com>
12120
12121 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12122 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12123 dwarf2_fetch_die_type_sect_off): Move to...
12124 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12125 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12126 dwarf2_fetch_die_type_sect_off): ... here.
12127 * dwarf2/read.c (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 doc to header file.
12130
0dce4280
TV
121312020-02-26 Tom de Vries <tdevries@suse.de>
12132
12133 PR gdb/25603
12134 * symfile.c (set_initial_language): Exit-early if
12135 language_mode == language_mode_manual.
12136
450a1bfc
SM
121372020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12138
12139 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12140 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12141 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12142
9e80cfa1
AB
121432020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12144
12145 * gdbtypes.c (create_array_type_with_stride): Handle negative
12146 array strides.
12147 * valarith.c (value_subscripted_rvalue): Likewise.
12148
09624f1f
LM
121492020-02-25 Luis Machado <luis.machado@linaro.org>
12150
12151 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12152
8cb5117c
SM
121532020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12154
12155 * loc.h (dwarf2_get_die_type): Move to...
12156 * read.h (dwarf2_get_die_type): ... here.
12157 * read.c (dwarf2_get_die_type): Move doc to header.
12158
c325c44e
JB
121592020-02-25 Joel Brobecker <brobecker@adacore.com>
12160
12161 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12162 'gnulib/Makefile.in' to the list.
12163
4ac93832
TT
121642020-02-24 Tom Tromey <tom@tromey.com>
12165
12166 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12167 Remove.
12168 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12169 XOBNEWVEC.
12170
197400e8
TT
121712020-02-24 Tom Tromey <tom@tromey.com>
12172
12173 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12174 New method.
12175 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12176 (dw2_do_instantiate_symtab, dw2_get_file_names)
12177 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12178
76935768
TT
121792020-02-24 Tom Tromey <tom@tromey.com>
12180
12181 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12182 make_scoped_restore.
12183 (dwarf2_psymtab::read_symtab): Don't clear
12184 reading_partial_symbols.
12185
a88ef40d
TV
121862020-02-24 Tom de Vries <tdevries@suse.de>
12187
12188 PR gdb/25592
12189 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12190
c9af6521
TV
121912020-02-24 Tom de Vries <tdevries@suse.de>
12192
12193 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12194 commands layout next/prev/regs.
12195
5707a07a
TT
121962020-02-22 Tom Tromey <tom@tromey.com>
12197
12198 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12199 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12200
3b0fb49e
TT
122012020-02-22 Tom Tromey <tom@tromey.com>
12202
12203 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12204
283be8bf
TT
122052020-02-22 Tom Tromey <tom@tromey.com>
12206
12207 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12208 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12209 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12210 * tui/tui.c (_initialize_tui): Add usage text.
12211
ca793b96
TT
122122020-02-22 Tom Tromey <tom@tromey.com>
12213
12214 * tui/tui-win.c (tui_set_focus_command)
12215 (tui_set_win_height_command): Use error_no_arg.
12216 (_initialize_tui_win): Update help text.
12217 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12218
432b5c40
TT
122192020-02-22 Tom Tromey <tom@tromey.com>
12220
12221 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12222 * tui/tui-disasm.h (struct tui_disasm_window)
12223 <display_start_addr>: Declare.
12224 * tui/tui-source.h (struct tui_source_window)
12225 <display_start_addr>: Declare.
12226 * tui/tui-winsource.h (struct tui_source_window_base)
12227 <show_source_line, display_start_addr>: New methods.
12228 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12229 Rename and move to protected section.
12230 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12231 (tui_source_window_base::do_erase_source_content): Update.
12232 (tui_source_window_base::show_source_line): Now a method.
12233 (tui_source_window_base::show_source_content)
12234 (tui_source_window_base::tui_source_window_base)
12235 (tui_source_window_base::rerender)
12236 (tui_source_window_base::refill)
12237 (tui_source_window_base::do_scroll_horizontal)
12238 (tui_source_window_base::set_is_exec_point_at)
12239 (tui_source_window_base::update_breakpoint_info)
12240 (tui_source_window_base::update_exec_info): Update.
12241 * tui/tui-source.c (tui_source_window::set_contents)
12242 (tui_source_window::showing_source_p)
12243 (tui_source_window::do_scroll_vertical)
12244 (tui_source_window::location_matches_p)
12245 (tui_source_window::line_is_displayed): Update.
12246 (tui_source_window::display_start_addr): New method.
12247 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12248 (tui_disasm_window::do_scroll_vertical)
12249 (tui_disasm_window::location_matches_p): Update.
12250 (tui_disasm_window::display_start_addr): New method.
12251
01b1af32
TT
122522020-02-22 Tom Tromey <tom@tromey.com>
12253
12254 * NEWS: Add entry for gdb.register_window_type.
12255 * tui/tui-layout.h (window_factory): New typedef.
12256 (tui_register_window): Declare.
12257 * tui/tui-layout.c (saved_tui_windows): New global.
12258 (tui_apply_current_layout): Use it.
12259 (tui_register_window): New function.
12260 * python/python.c (do_start_initialization): Call
12261 gdbpy_initialize_tui.
12262 (python_GdbMethods): Add "register_window_type" function.
12263 * python/python-internal.h (gdbpy_register_tui_window)
12264 (gdbpy_initialize_tui): Declare.
12265 * python/py-tui.c: New file.
12266 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12267
fc96d20b
TT
122682020-02-22 Tom Tromey <tom@tromey.com>
12269
12270 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12271
935c78c0
TT
122722020-02-22 Tom Tromey <tom@tromey.com>
12273
12274 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12275 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12276 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12277 (tui_set_win_focus_to): Move from tui-win.c.
12278
0240c8f1
TT
122792020-02-22 Tom Tromey <tom@tromey.com>
12280
12281 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12282 functions.
12283 (known_window_types): New global.
12284 (tui_get_window_by_name): Reimplement.
12285 (initialize_known_windows): New function.
12286 (validate_window_name): Rewrite.
12287 (_initialize_tui_layout): Call initialize_known_windows.
12288
fdb01f0c
TT
122892020-02-22 Tom Tromey <tom@tromey.com>
12290
12291 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12292 Remove constants.
12293 * tui/tui-winsource.h (struct tui_source_window_base)
12294 <tui_source_window_base>: Remove parameter.
12295 * tui/tui-winsource.c
12296 (tui_source_window_base::tui_source_window_base): Remove
12297 parameter.
12298 (tui_source_window_base::refill): Update.
12299 * tui/tui-stack.h (struct tui_locator_window)
12300 <tui_locator_window>: Update.
12301 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12302 Default the constructor.
12303 * tui/tui-regs.h (struct tui_data_item_window)
12304 <tui_data_item_window>: Default the constructor.
12305 (struct tui_data_window) <tui_data_window>: Likewise.
12306 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12307 Default the constructor.
12308 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12309 Default the constructor.
12310 <type>: Remove.
12311 (struct tui_win_info) <tui_win_info>: Default the constructor.
12312 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12313 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12314 Default the constructor.
12315
865a5aec
TT
123162020-02-22 Tom Tromey <tom@tromey.com>
12317
12318 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12319 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12320 * tui/tui-win.c (tui_resize_all): Don't call
12321 tui_delete_invisible_windows.
12322 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12323 done.
12324 (tui_set_layout): Update.
12325 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12326 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12327 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12328
e098d18c
TT
123292020-02-22 Tom Tromey <tom@tromey.com>
12330
12331 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12332 correctly.
12333
eb9c8874
TT
123342020-02-22 Tom Tromey <tom@tromey.com>
12335
12336 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12337
7eed1a8e
TT
123382020-02-22 Tom Tromey <tom@tromey.com>
12339
12340 * tui/tui-winsource.h (struct tui_source_window_iterator)
12341 <inner_iterator>: New etytypedef.
12342 <tui_source_window_iterator>: Take "end" parameter.
12343 <tui_source_window_iterator>: Take iterator.
12344 <operator*, advance>: Update.
12345 <m_iter>: Change type.
12346 <m_end>: New field.
12347 (struct tui_source_windows) <begin, end>: Update.
12348 * tui/tui-layout.c (tui_windows): New global.
12349 (tui_apply_current_layout): Clear tui_windows.
12350 (tui_layout_window::apply): Update tui_windows.
12351 * tui/tui-data.h (tui_windows): Declare.
12352 (all_tui_windows): Now inline function.
12353 (class tui_window_iterator, struct all_tui_windows): Remove.
12354
7c043ba6
TT
123552020-02-22 Tom Tromey <tom@tromey.com>
12356
12357 PR tui/17850:
12358 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12359 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12360 "height" argument.
12361 (class tui_layout_window) <get_sizes>: Likewise.
12362 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12363 argument.
12364 <get_sizes>: Add "height" argument.
12365 <m_vertical>: New field.
12366 * tui/tui-layout.c (tui_layout_split::clone): Update.
12367 (tui_layout_split::get_sizes): Add "height" argument.
12368 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12369 (tui_new_layout_command): Parse "-horizontal".
12370 (_initialize_tui_layout): Update help string.
12371 (tui_layout_split::specification): Add "-horizontal" when needed.
12372 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12373 argument.
12374 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12375 New methods.
12376
6bc56648
TT
123772020-02-22 Tom Tromey <tom@tromey.com>
12378
12379 * tui/tui-layout.h (enum tui_adjust_result): New.
12380 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12381 (class tui_layout_window) <adjust_size>: Return
12382 tui_adjust_result. Rewrite.
12383 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12384 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12385
c22fef7e
TT
123862020-02-22 Tom Tromey <tom@tromey.com>
12387
12388 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12389 parameter and return types.
12390 (class tui_layout_base) <specification>: Add "depth".
12391 (class tui_layout_window) <specification>: Add "depth".
12392 (class tui_layout_split) <specification>: Add "depth".
12393 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12394 and return types.
12395 (tui_new_layout_command): Parse sub-layouts.
12396 (_initialize_tui_layout): Update help string.
12397 (tui_layout_window::specification): Add "depth".
12398 (add_layout_command): Update.
12399
ee325b61
TT
124002020-02-22 Tom Tromey <tom@tromey.com>
12401
12402 * NEWS: Add "tui new-layout" item.
12403 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12404 Add new-layout command to help text.
12405 (validate_window_name): New function.
12406 (tui_new_layout_command): New function.
12407 (_initialize_tui_layout): Register "new-layout".
12408 (tui_layout_window::specification): New method.
12409 (tui_layout_window::specification): New method.
12410 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12411 method.
12412 (class tui_layout_window) <specification>: New method.
12413 (class tui_layout_split) <specification>: New method.
12414
416eb92d
TT
124152020-02-22 Tom Tromey <tom@tromey.com>
12416
12417 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12418 * tui/tui-win.c (window_name_completer): Update comment.
12419 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12420 Declare method.
12421 (class tui_layout_window) <replace_window>: Likewise.
12422 (class tui_layout_split) <replace_window>: Likewise.
12423 (tui_set_layout): Don't declare.
12424 (tui_set_initial_layout): Declare function.
12425 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12426 (asm_regs_layout): New globals.
12427 (tui_current_layout, show_layout): Remove.
12428 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12429 (find_layout, tui_apply_layout): New function.
12430 (layout_completer): Remove.
12431 (tui_next_layout): Reimplement.
12432 (tui_next_layout_command): New function.
12433 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12434 (tui_regs_layout): Reimplement.
12435 (tui_regs_layout_command): New function.
12436 (extract_display_start_addr): Rewrite.
12437 (next_layout, prev_layout): Remove.
12438 (tui_layout_window::replace_window): New method.
12439 (tui_layout_split::replace_window): New method.
12440 (destroy_layout): New function.
12441 (layout_list): New global.
12442 (add_layout_command): New function.
12443 (initialize_layouts): Update.
12444 (tui_layout_command): New function.
12445 (_initialize_tui_layout): Install "layout" commands.
12446 * tui/tui-data.h (enum tui_layout_type): Remove.
12447 (tui_current_layout): Don't declare.
12448
0dbc2fc7
TT
124492020-02-22 Tom Tromey <tom@tromey.com>
12450
12451 * tui/tui-regs.c (tui_reg_layout): Remove.
12452 (tui_reg_command): Use tui_regs_layout.
12453 * tui/tui-layout.h (tui_reg_command): Declare.
12454 * tui/tui-layout.c (tui_reg_command): New function.
12455
5afe342e
TT
124562020-02-22 Tom Tromey <tom@tromey.com>
12457
12458 * tui/tui.c (tui_rl_delete_other_windows): Call
12459 tui_remove_some_windows.
12460 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12461 Declare method.
12462 (class tui_layout_window) <remove_windows>: New method.
12463 (class tui_layout_split) <remove_windows>: Declare.
12464 (tui_remove_some_windows): Declare.
12465 * tui/tui-layout.c (tui_remove_some_windows): New function.
12466 (tui_layout_split::remove_windows): New method.
12467
427326a8
TT
124682020-02-22 Tom Tromey <tom@tromey.com>
12469
12470 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12471 * tui/tui-layout.h (tui_next_layout): Declare.
12472 * tui/tui-layout.c (tui_next_layout): New function.
12473
3fe12b6d
TT
124742020-02-22 Tom Tromey <tom@tromey.com>
12475
12476 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12477 correct coordinates.
12478
59b8b5d2
TT
124792020-02-22 Tom Tromey <tom@tromey.com>
12480
12481 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12482 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12483 DATA_WIN case.
12484
2a3d458b
TT
124852020-02-22 Tom Tromey <tom@tromey.com>
12486
12487 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12488 TUI_DISASM_WIN, not tui_win_list.
12489
3f0cbb04
TT
124902020-02-22 Tom Tromey <tom@tromey.com>
12491
12492 * valprint.c (generic_val_print_enum_1)
12493 (val_print_type_code_flags): Style member names.
12494 * rust-lang.c (val_print_struct, rust_print_enum)
12495 (rust_print_struct_def, rust_internal_print_type): Style member
12496 names.
12497 * p-valprint.c (pascal_object_print_value_fields): Style member
12498 names. Only call fprintf_symbol_filtered for static members.
12499 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12500 * f-valprint.c (f_val_print): Style member names.
12501 * f-typeprint.c (f_type_print_base): Style member names.
12502 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12503 call fprintf_symbol_filtered for static members.
12504 (cp_print_class_member): Style member names.
12505 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12506 member names.
12507 * ada-valprint.c (ada_print_scalar): Style enum names.
12508 (ada_val_print_enum): Likewise.
12509 * ada-typeprint.c (print_enum_type): Style enum names.
12510
d4d947ae
TT
125112020-02-21 Tom Tromey <tom@tromey.com>
12512
12513 * psympriv.h (struct partial_symtab): Update comment.
12514
e94e944b
TT
125152020-02-21 Tom Tromey <tromey@adacore.com>
12516
12517 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12518 type is CORE_ADDR.
12519
1eb73179
TV
125202020-02-21 Tom de Vries <tdevries@suse.de>
12521
12522 PR gdb/25534
12523 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12524 if dependencies[i]->user != NULL.
12525
4f180d53
AT
125262020-02-21 Ali Tamur <tamur@google.com>
12527
12528 * dwarf2/read.c (dwarf2_name): Add null check.
12529
22b6cd70
TT
125302020-02-20 Tom Tromey <tom@tromey.com>
12531
12532 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12533 ">=", in binary search.
12534 (dwarf2_find_containing_comp_unit): New overload.
12535 (run_test): New self-test.
12536 (_initialize_dwarf2_read): Register new test.
12537
bd0cf5a6
NC
125382020-02-20 Nelson Chu <nelson.chu@sifive.com>
12539
12540 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12541 * riscv-tdep.h: Likewise.
12542 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12543 rv32-only CSR.
12544 * features/riscv/64bit-csr.xml: Regenerated.
12545
3f702acd
SDJ
125462020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12547 Tom Tromey <tom@tromey.com>
12548
12549 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12550 of 'fputc_unfiltered'.
12551 (putchar_unfiltered): Call 'fputc_unfiltered'.
12552 (fputc_unfiltered): Call 'fputs_unfiltered'.
12553
d13c7322
AB
125542020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12555
12556 * config.in: Regenerate.
12557 * configure: Regenerate.
12558 * configure.ac: Add --with-python-libdir option.
12559 * main.c: Use WITH_PYTHON_LIBDIR.
12560
869d8950
TT
125612020-02-19 Tom Tromey <tom@tromey.com>
12562
12563 * symtab.c (general_symbol_info::compute_and_set_names): Use
12564 obstack_strndup. Simplify call to symbol_set_demangled_name.
12565
298e9637
SM
125662020-02-19 Simon Marchi <simon.marchi@efficios.com>
12567
12568 * dwarf2/read.c (allocate_signatured_type_table,
12569 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12570 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12571 Remove objfile parameter, update all callers.
12572
08410482
DE
125732020-02-19 Doug Evans <dje@google.com>
12574
12575 PR rust/25535
12576 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12577 rust_enum_variant calculation.
12578
dfdeeca1
TT
125792020-02-19 Tom Tromey <tromey@adacore.com>
12580
12581 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12582
2ef5453b
TT
125832020-02-19 Tom Tromey <tromey@adacore.com>
12584
12585 * ada-lang.c (cache_symbol): Use obstack_strdup.
12586
9f1528a1
AB
125872020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12588
12589 * configure: Regenerate.
12590
d3c22fa8
TT
125912020-02-19 Tom Tromey <tromey@adacore.com>
12592
12593 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12594 NULL check.
12595
bf84f706
MR
125962020-02-19 Maciej W. Rozycki <macro@wdc.com>
12597
12598 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12599
d1c9b20f
AB
126002020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12601
12602 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12603 if GDBSERVER is not defined.
12604 (riscv_tdesc_cache): Likewise, also store const target_desc.
12605 (STATIC_IN_GDB): Define.
12606 (riscv_create_target_description): Update declaration with
12607 STATIC_IN_GDB.
12608 (riscv_lookup_target_description): New function, only define if
12609 GDBSERVER is not defined.
12610 * arch/riscv.h (riscv_create_target_description): Declare only
12611 when GDBSERVER is defined.
12612 (riscv_lookup_target_description): New declaration when GDBSERVER
12613 is not defined.
12614 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12615 (riscv_linux_read_features): ...this, and return
12616 riscv_gdbarch_features instead of target_desc.
12617 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12618 (riscv_linux_read_description): Rename to...
12619 (riscv_linux_read_features): ...this.
12620 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12621 Update to use riscv_gdbarch_features and
12622 riscv_lookup_target_description.
12623 * riscv-tdep.c (riscv_find_default_target_description): Use
12624 riscv_lookup_target_description instead of
12625 riscv_create_target_description.
12626
373d7ac0
SM
126272020-02-18 Simon Marchi <simon.marchi@efficios.com>
12628
12629 * valprint.c (generic_val_print_enum_1): When printing a flag
12630 enum with value 0 and there is no enumerator with value 0, print
12631 just "0" instead of "(unknown: 0x0)".
12632
b29a2df0
SM
126332020-02-18 Simon Marchi <simon.marchi@efficios.com>
12634
12635 * valprint.c (generic_val_print_enum_1): Print unknown part of
12636 flag enum in hex.
12637
6740f0cc
SM
126382020-02-18 Simon Marchi <simon.marchi@efficios.com>
12639
12640 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12641 flag enums to contain duplicate enumerators.
12642 * valprint.c (generic_val_print_enum_1): Update comment.
12643
edd45eb0
SM
126442020-02-18 Simon Marchi <simon.marchi@efficios.com>
12645
12646 * dwarf2/read.c: Include "count-one-bits.h".
12647 (update_enumeration_type_from_children): If an enumerator has
12648 multiple bits set, don't treat the enumeration as a "flag enum".
12649 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12650 of flag enums have 0 or 1 bit set.
12651
6d0cf446
BE
126522020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12653
12654 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12655 conversion.
12656 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12657 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12658 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12659 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12660 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12661
7001c1b7
SM
126622020-02-18 Simon Marchi <simon.marchi@efficios.com>
12663
12664 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12665
fdb61c6c
SM
126662020-02-14 Simon Marchi <simon.marchi@efficios.com>
12667
12668 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12669 displaced_step_closure_up.
12670 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12671 (struct displaced_step_closure_up):
12672 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12673 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12674 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12675 Likewise.
12676 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12677 * gdbarch.c, gdbarch.h: Re-generate.
12678 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12679 displaced_step_closure_up.
12680 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12681 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12682 * infrun.h (displaced_step_closure_up): New type alias.
12683 (struct displaced_step_inferior_state) <step_closure>: Change
12684 type to displaced_step_closure_up.
12685 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12686 displaced_step_closure_up.
12687 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12688
a4a38eb4
TT
126892020-02-14 Tom Tromey <tom@tromey.com>
12690
12691 * minidebug.c (gnu_debug_key): New global.
12692 (find_separate_debug_file_in_section): Use it.
12693
e8217e61
SM
126942020-02-14 Simon Marchi <simon.marchi@efficios.com>
12695
12696 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12697 std::unique_ptr.
12698 * gdbarch.c: Re-generate.
12699 * gdbarch.h: Re-generate.
12700 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12701 change.
12702 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12703 type to std::unique_ptr.
12704 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12705 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12706 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12707 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12708 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12709 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12710 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12711 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12712 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12713
d8d83535
SM
127142020-02-14 Simon Marchi <simon.marchi@efficios.com>
12715
12716 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12717 std::unique_ptr.
12718 (displaced_step_clear): Rename to...
12719 (displaced_step_reset): ... this. Just call displaced->reset ().
12720 (displaced_step_clear_cleanup): Rename to...
12721 (displaced_step_reset_cleanup): ... this.
12722 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12723 (displaced_step_fixup): Likewise.
12724 (resume_1): Likewise.
12725 (handle_inferior_event): Restore child's memory before calling
12726 displaced_step_fixup on the parent.
12727 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12728 to std::unique_ptr.
12729 <step_closure>: Change type to std::unique_ptr.
12730
5f661e03
SM
127312020-02-14 Simon Marchi <simon.marchi@efficios.com>
12732
12733 * arm-tdep.c: Include count-one-bits.h.
12734 (cleanup_block_store_pc): Use count_one_bits.
12735 (cleanup_block_load_pc): Use count_one_bits.
12736 (arm_copy_block_xfer): Use count_one_bits.
12737 (thumb2_copy_block_xfer): Use count_one_bits.
12738 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12739 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12740 (thumb_get_next_pcs_raw): Use count_one_bits.
12741 (arm_get_next_pcs_raw): Use count_one_bits_l.
12742 * arch/arm.c (bitcount): Remove.
12743 * arch/arm.h (bitcount): Remove.
12744
8084e579
TT
127452020-02-14 Tom Tromey <tromey@adacore.com>
12746
12747 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12748 Update.
12749 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12750 * dwarf2/loc.c (call_site_find_chain_1): Return
12751 unique_xmalloc_ptr.
12752 (call_site_find_chain): Likewise.
12753
258bf0ee
RB
127542020-02-14 Richard Biener <rguenther@suse.de>
12755
12756 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12757 on expression with division operators.
12758
f98a8458
AKS
127592020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12760
12761 * MAINTAINERS (Write After Approval): Adding myself.
12762
d1437c0e
TT
127632020-02-12 Tom Tromey <tom@tromey.com>
12764
12765 * event-loop.c (event_data, gdb_event, event_handler_func):
12766 Remove.
12767
3d4560f7
TT
127682020-02-12 Tom Tromey <tom@tromey.com>
12769
12770 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12771 (dwarf2_frame_objfile_data): Add comment.
12772 (find_comp_unit, set_comp_unit): New functions.
12773 (dwarf2_frame_find_fde): Use find_comp_unit.
12774 (dwarf2_build_frame_info): Use set_comp_unit.
12775
21982304
TT
127762020-02-12 Tom Tromey <tom@tromey.com>
12777
12778 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12779 (comp_unit): Don't initialize objfile.
12780 (execute_cfa_program): Add text_offset parameter.
12781 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12782 (dwarf2_frame_cache): Update.
12783 (dwarf2_build_frame_info): Don't set "objfile" member.
12784
4debb237
TT
127852020-02-12 Tom Tromey <tom@tromey.com>
12786
12787 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12788 (decode_frame_entry): Likewise.
12789 (dwarf2_build_frame_info): Update.
12790
0d404d44
TT
127912020-02-12 Tom Tromey <tom@tromey.com>
12792
12793 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12794 (decode_frame_entry_1): Use the comp_unit obstack.
12795
a7a3ae5c
TT
127962020-02-12 Tom Tromey <tom@tromey.com>
12797
12798 * dwarf2/frame.c (struct comp_unit): Add initializers and
12799 constructor.
12800 (dwarf2_frame_objfile_data): Store a comp_unit.
12801 (dwarf2_frame_find_fde): Update.
12802 (dwarf2_build_frame_info): Use "new".
12803
a9d65418
TT
128042020-02-12 Tom Tromey <tom@tromey.com>
12805
12806 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12807 (dwarf2_fde_table): Typedef for std::vector.
12808 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12809 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12810 (decode_frame_entry): Update.
12811 (dwarf2_build_frame_info): Use "new".
12812
7559c217
CB
128132020-02-12 Christian Biesinger <cbiesinger@google.com>
12814
12815 * arm-tdep.c (arm_gdbarch_init): Update.
12816 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12817 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12818 have_neon, is_m>: Change to bool.
12819
aeefc73c
CB
128202020-02-12 Christian Biesinger <cbiesinger@google.com>
12821
12822 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12823
d27b8e5f
TT
128242020-02-12 Tom Tromey <tom@tromey.com>
12825
12826 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12827
cd5900f3
HD
128282020-02-12 Hannes Domani <ssbssa@yahoo.de>
12829
12830 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12831 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12832
f056b22b
TT
128332020-02-11 Tom Tromey <tom@tromey.com>
12834
12835 * psymtab.h: Update comment.
12836
f92ff6b5
TT
128372020-02-11 Tom Tromey <tom@tromey.com>
12838
12839 * gdb_obstack.h (struct auto_obstack): Use
12840 DISABLE_COPY_AND_ASSIGN.
12841
3fd6912b
TT
128422020-02-11 Tom Tromey <tom@tromey.com>
12843
12844 * dwarf2/frame.h (struct objfile): Don't forward declare.
12845
69ed9b74
CB
128462020-02-11 Christian Biesinger <cbiesinger@google.com>
12847
12848 * cris-tdep.c (cris_supply_gregset): Change signature to match
12849 what struct regset expects.
12850 (cris_regset): New struct.
12851 (fetch_core_registers): Remove.
12852 (cris_iterate_over_regset_sections): New function.
12853 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12854 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12855
bda874f6
CB
128562020-02-11 Christian Biesinger <cbiesinger@google.com>
12857
12858 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12859 registers.
12860
754e1564
CB
128612020-02-11 Christian Biesinger <cbiesinger@google.com>
12862
12863 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12864
8ddd8e0e
SM
128652020-02-11 Simon Marchi <simon.marchi@efficios.com>
12866
12867 * configure: Re-generate.
12868
898e7f60
SM
128692020-02-11 Simon Marchi <simon.marchi@efficios.com>
12870
12871 * configure: Re-generate.
12872
58df732b
SM
128732020-02-11 Simon Marchi <simon.marchi@efficios.com>
12874
12875 * acinclude: Update warning.m4 path.
12876 * warning.m4: Move to gdbsupport.
12877
da5bd37e
TT
128782020-02-11 Tom Tromey <tromey@adacore.com>
12879
12880 * remote.c (remote_console_output): Update.
12881 * printcmd.c (printf_command): Update.
12882 * event-loop.c (gdb_wait_for_event): Update.
12883 * linux-nat.c (sigchld_handler): Update.
12884 * remote-sim.c (gdb_os_write_stdout): Update.
12885 (gdb_os_flush_stdout): Update.
12886 (gdb_os_flush_stderr): Update.
12887 (gdb_os_write_stderr): Update.
12888 * exceptions.c (print_exception): Update.
12889 * remote-fileio.c (remote_fileio_func_read): Update.
12890 (remote_fileio_func_write): Update.
12891 * tui/tui.c (tui_enable): Update.
12892 * tui/tui-interp.c (tui_interp::init): Update.
12893 * utils.c (init_page_info): Update.
12894 (putchar_unfiltered, fputc_unfiltered): Update.
12895 (gdb_flush): Update.
12896 (emit_style_escape): Update.
12897 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12898 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12899 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12900 (stderr_file::write): Update.
12901 (stderr_file::puts): Update.
12902 * ui-file.h (ui_file_isatty, ui_file_write)
12903 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12904 (ui_file_puts): Don't declare.
12905
85f0dd3c
TV
129062020-02-10 Tom de Vries <tdevries@suse.de>
12907
12908 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12909 sentinel to char *.
12910
2e927613
TV
129112020-02-09 Tom de Vries <tdevries@suse.de>
12912
12913 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12914 filename if it matches "<artificial>".
12915
6bafc845
HD
129162020-02-09 Hannes Domani <ssbssa@yahoo.de>
12917
12918 * windows-tdep.c (struct enum_value_name): New struct.
12919 (create_enum): New function.
12920 (windows_get_siginfo_type): Create and use enum types.
12921
7928d571
HD
129222020-02-09 Hannes Domani <ssbssa@yahoo.de>
12923
12924 * NEWS: Mention $_siginfo support for Windows.
12925 * windows-nat.c (handle_exception): Set siginfo_er.
12926 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12927 (windows_xfer_siginfo): New function.
12928 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12929 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12930 (init_windows_gdbarch_data): New function.
12931 (get_windows_gdbarch_data): New function.
12932 (windows_get_siginfo_type): New function.
12933 (windows_init_abi): Register windows_get_siginfo_type.
12934 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12935
6751ebae
TT
129362020-02-08 Tom Tromey <tom@tromey.com>
12937
12938 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12939 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12940 <keep>: Declare method.
12941 <m_keep>: Remove member.
12942 <~cutu_reader>: Remove.
12943 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12944 (cutu_reader::cutu_reader): Update.
12945 (cutu_reader::keep): Rename from ~cutu_reader.
12946 (process_psymtab_comp_unit, build_type_psymtabs_1)
12947 (process_skeletonless_type_unit, load_partial_comp_unit)
12948 (load_full_comp_unit, dwarf2_read_addr_index)
12949 (read_signatured_type): Update.
12950
135f5437
TT
129512020-02-08 Tom Tromey <tom@tromey.com>
12952
12953 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12954 "want_partial_unit" parameter.
12955 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12956 Inline check for DW_TAG_partial_unit.
12957 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12958
9f66ff1c
TT
129592020-02-08 Tom Tromey <tom@tromey.com>
12960
12961 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12962 read.c.
12963 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12964 read.c.
12965
c8a7a66f
TT
129662020-02-08 Tom Tromey <tom@tromey.com>
12967
12968 * dwarf2/read.c (read_address): Move to comp-unit.c.
12969 (dwarf2_rnglists_process, dwarf2_ranges_process)
12970 (read_attribute_value, dwarf_decode_lines_1)
12971 (var_decode_location, decode_locdesc): Update.
12972 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12973 read.c. Remove "cu" parameter.
12974 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12975 method.
12976
8266302d
TT
129772020-02-08 Tom Tromey <tom@tromey.com>
12978
12979 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12980 (read_indirect_line_string): Update.
12981 * dwarf2/comp-unit.c (read_offset): Remove.
12982 (read_comp_unit_head): Update.
12983 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12984 method.
12985 (read_offset): Don't declare.
12986
4057dfde
TT
129872020-02-08 Tom Tromey <tom@tromey.com>
12988
12989 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12990 * dwarf2/read.c (struct comp_unit_head): Move to
12991 dwarf2/comp-unit.h.
12992 (enum class rcuh_kind): Move to comp-unit.h.
12993 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12994 (read_comp_unit_head, error_check_comp_unit_head)
12995 (read_and_check_comp_unit_head): Move to comp-unit.c.
12996 (read_offset, dwarf_unit_type_name): Likewise.
12997 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12998 (cutu_reader::cutu_reader, read_call_site_scope)
12999 (find_partial_die, follow_die_offset): Update.
13000 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
13001
24aa364d
TT
130022020-02-08 Tom Tromey <tom@tromey.com>
13003
13004 * dwarf2/read.c (read_offset_1): Move to leb.c.
13005 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
13006 (dwarf_decode_macro_bytes): Update.
13007 * dwarf2/leb.c (read_offset): Rename; move from read.c.
13008 * dwarf2/leb.h (read_offset): Declare.
13009
2c7d5afc
TT
130102020-02-08 Tom Tromey <tom@tromey.com>
13011
13012 * dwarf2/read.c (dwarf2_section_size): Remove.
13013 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13014 Update.
13015 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13016
4075cb26
TT
130172020-02-08 Tom Tromey <tom@tromey.com>
13018
13019 * dwarf2/read.c (read_initial_length): Move to leb.c.
13020 * dwarf2/leb.h (read_initial_length): Declare.
13021 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13022 handle_nonstd parameter.
13023 * dwarf2/frame.c (read_initial_length): Remove.
13024 (decode_frame_entry_1): Update.
13025
09ba997f
TT
130262020-02-08 Tom Tromey <tom@tromey.com>
13027
13028 * dwarf2/loc.c (dwarf2_find_location_expression)
13029 (dwarf_evaluate_loc_desc::get_tls_address)
13030 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13031 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13032 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13033 (dwarf2_compile_property_to_c)
13034 (dwarf2_loc_desc_get_symbol_read_needs)
13035 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13036 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13037 (loclist_describe_location, loclist_tracepoint_var_ref)
13038 (loclist_generate_c_location): Update.
13039 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13040 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13041 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13042 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13043 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13044 (dwarf2_per_cu_data::addr_size)
13045 (dwarf2_per_cu_data::ref_addr_size)
13046 (dwarf2_per_cu_data::text_offset)
13047 (dwarf2_per_cu_data::addr_type): Now methods.
13048 (per_cu_header_read_in): Make per_cu "const".
13049 (dwarf2_version): Remove.
13050 (dwarf2_per_cu_data::int_type): Now a method.
13051 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13052 (set_die_type, read_array_type, read_subrange_index_type)
13053 (read_tag_string_type, read_subrange_type): Update.
13054 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13055 offset_size, ref_addr_size, text_offset, addr_type, version,
13056 objfile, int_type, addr_sized_int_type>: Declare methods.
13057
96c738c0
TT
130582020-02-08 Tom Tromey <tom@tromey.com>
13059
13060 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13061 Move earlier.
13062
8fdd972c
TT
130632020-02-08 Tom Tromey <tom@tromey.com>
13064
13065 * dwarf2/read.h (dwarf_line_debug): Declare.
13066 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13067 * dwarf2/read.c: Move line_header code to new files.
13068 (dwarf_line_debug): No longer static.
13069 * dwarf2/line-header.c: New file.
13070 * dwarf2/line-header.h: New file.
13071
03075812
TT
130722020-02-08 Tom Tromey <tom@tromey.com>
13073
13074 * dwarf2/read.c (struct line_header) <file_full_name,
13075 file_file_name>: Return unique_xmalloc_ptr.
13076 (line_header::file_file_name): Update.
13077 (line_header::file_full_name): Update.
13078 (dw2_get_file_names_reader): Update.
13079 (macro_start_file): Update.
13080
bb822404
TT
130812020-02-08 Tom Tromey <tom@tromey.com>
13082
13083 * dwarf2/read.c (struct line_header) <file_full_name,
13084 file_file_name>: Declare methods.
13085 (dw2_get_file_names_reader): Update.
13086 (file_file_name): Now a method.
13087 (file_full_name): Likewise.
13088 (macro_start_file): Update.
13089
009b64fc
TT
130902020-02-08 Tom Tromey <tom@tromey.com>
13091
13092 * dwarf2/read.c (dwarf_always_disassemble)
13093 (show_dwarf_always_disassemble): Move to loc.c.
13094 (_initialize_dwarf2_read): Move "always-disassemble" registration
13095 to loc.c.
13096 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13097 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13098 static.
13099 (show_dwarf_always_disassemble): Move from read.c.
13100 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13101
5895093f
TT
131022020-02-08 Tom Tromey <tom@tromey.com>
13103
13104 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13105 (create_quick_file_names_table): Return htab_up.
13106 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13107 Update.
13108 * dwarf2/read.h (struct dwarf2_per_objfile)
13109 <quick_file_names_table>: Now htab_up.
13110
b3b32279
TT
131112020-02-08 Tom Tromey <tom@tromey.com>
13112
13113 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13114
1d33d811
TT
131152020-02-08 Tom Tromey <tom@tromey.com>
13116
13117 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13118 Rewrite.
13119 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13120 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13121 (abbrev_table::abbrev_table): No longer inline.
13122 (ABBREV_HASH_SIZE): Remove.
13123 (abbrev_table::m_abbrevs): Now an htab_up.
13124
86de1d91
TT
131252020-02-08 Tom Tromey <tom@tromey.com>
13126
13127 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13128 (cutu_reader): Update.
13129 (build_type_psymtabs_1): Update.
13130 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13131 (abbrev_table::alloc_abbrev): Update.
13132 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13133 (abbrev_table::read): New static method, renamed from
13134 abbrev_table_read_table.
13135 (abbrev_table::alloc_abbrev)
13136 (abbrev_table::add_abbrev): Now private.
13137 (abbrev_table::abbrev_table): Now private.
13138 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13139
0335378b
TT
131402020-02-08 Tom Tromey <tom@tromey.com>
13141
13142 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13143 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13144 htab_up.
13145
48b490f2
TT
131462020-02-08 Tom Tromey <tom@tromey.com>
13147
13148 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13149 htab_up.
13150 (lookup_dwo_unit_in_dwp): Update.
13151 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13152 on obstack.
13153
bc68fb19
TT
131542020-02-08 Tom Tromey <tom@tromey.com>
13155
13156 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13157 obstack.
13158
d15acc42
TT
131592020-02-08 Tom Tromey <tom@tromey.com>
13160
13161 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13162 line_header_hash.
13163 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13164 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13165 Change type to htab_up.
13166
eaa5fa8b
TT
131672020-02-08 Tom Tromey <tom@tromey.com>
13168
13169 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13170 htab_up. Don't allocate on obstack.
13171 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13172 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13173 Change type to htab_up.
13174
b0b6a987
TT
131752020-02-08 Tom Tromey <tom@tromey.com>
13176
13177 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13178 Change type to htab_up.
13179 * dwarf2/read.c (create_signatured_type_table_from_index)
13180 (create_signatured_type_table_from_debug_names)
13181 (create_all_type_units, add_type_unit)
13182 (lookup_dwo_signatured_type, lookup_signatured_type)
13183 (process_skeletonless_type_unit): Update.
13184 (create_debug_type_hash_table, create_debug_types_hash_table):
13185 Change type of types_htab.
13186 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13187 htab_up. Don't allocate on obstack.
13188 (create_cus_hash_table): Change type of cus_htab parameter.
13189 (struct dwo_file) <cus, tus>: Now htab_up.
13190 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13191 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13192 (queue_and_load_all_dwo_tus): Update.
13193 * dwarf2/index-write.c (write_gdbindex): Update.
13194 (write_debug_names): Update.
13195
39856def
TT
131962020-02-08 Tom Tromey <tom@tromey.com>
13197
13198 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13199 dwarf2/read.c. Remove "next" member. Add constructor ntad
13200 destructor.
13201 (struct dwarf2_per_objfile) <queue>: New member.
13202 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13203 dwarf2/read.h.
13204 (dwarf2_queue, dwarf2_queue_tail): Remove.
13205 (class dwarf2_queue_guard): Add parameter to constructor. Use
13206 DISABLE_COPY_AND_ASSIGN.
13207 <m_per_objfile>: New member.
13208 <~dwarf2_queue_guard>: Rewrite.
13209 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13210 Update.
13211 (~dwarf2_queue_item): New.
13212
3e225074
TT
132132020-02-08 Tom Tromey <tom@tromey.com>
13214
13215 * dwarf2/read.c (struct die_info) <has_children>: New member.
13216 (dw2_get_file_names_reader): Remove has_children.
13217 (dw2_get_file_names): Update.
13218 (read_cutu_die_from_dwo): Remove has_children.
13219 (cutu_reader::init_tu_and_read_dwo_dies)
13220 (cutu_reader::cutu_reader): Update.
13221 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13222 Remove has_children.
13223 (build_type_psymtabs_1, process_skeletonless_type_unit)
13224 (load_partial_comp_unit, load_full_comp_unit): Update.
13225 (create_dwo_cu_reader): Remove has_children.
13226 (create_cus_hash_table, read_die_and_children): Update.
13227 (read_full_die_1,read_full_die): Remove has_children.
13228 (read_signatured_type): Update.
13229 (class cutu_reader) <has_children>: Remove.
13230
82ca8957
TT
132312020-02-08 Tom Tromey <tom@tromey.com>
13232
13233 * dwarf2/expr.c: Rename from dwarf2expr.c.
13234 * dwarf2/expr.h: Rename from dwarf2expr.h.
13235 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13236 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13237 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13238 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13239 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13240 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13241 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13242 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13243 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13244 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13245 * dwarf2/loc.c: Rename from dwarf2loc.c.
13246 * dwarf2/loc.h: Rename from dwarf2loc.h.
13247 * dwarf2/read.c: Rename from dwarf2read.c.
13248 * dwarf2/read.h: Rename from dwarf2read.h.
13249 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13250 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13251 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13252 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13253 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13254 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13255 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13256 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13257 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13258 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13259 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13260 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13261 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13262 Update.
13263 * Makefile.in (COMMON_SFILES): Update.
13264 (HFILES_NO_SRCDIR): Update.
13265
9e35d499
TT
132662020-02-08 Tom Tromey <tom@tromey.com>
13267
13268 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13269 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13270
1eba2311
TT
132712020-02-08 Tom Tromey <tom@tromey.com>
13272
13273 * dwarf2read.h (struct die_info): Don't declare.
13274
e41c2da2
TT
132752020-02-08 Tom Tromey <tom@tromey.com>
13276
13277 * dwarf2read.h (die_info_ptr): Remove typedef.
13278
4fc6c0d5
TT
132792020-02-08 Tom Tromey <tom@tromey.com>
13280
13281 * dwarf2read.c (read_call_site_scope)
13282 (handle_data_member_location, dwarf2_add_member_fn)
13283 (mark_common_block_symbol_computed, read_common_block)
13284 (attr_to_dynamic_prop, partial_die_info::read)
13285 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13286 (dwarf2_symbol_mark_computed, set_die_type): Update.
13287 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13288 method.
13289 (attr_form_is_block): Don't declare.
13290 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13291
cd6c91b4
TT
132922020-02-08 Tom Tromey <tom@tromey.com>
13293
13294 * dwarf2read.c (dwarf2_find_base_address, )
13295 (read_call_site_scope, rust_containing_type)
13296 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13297 (handle_data_member_location, dwarf2_add_member_fn)
13298 (get_alignment, read_structure_type, process_structure_scope)
13299 (mark_common_block_symbol_computed, read_common_block)
13300 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13301 (partial_die_info::read, read_attribute_value, new_symbol)
13302 (lookup_die_type, dwarf2_get_ref_die_offset)
13303 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13304 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13305 (dwarf2_symbol_mark_computed): Update.
13306 * dwarf2/attribute.h (struct attribute) <value_as_address,
13307 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13308 methods.
13309 (value_as_address, attr_form_is_section_offset)
13310 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13311 * dwarf2/attribute.c (attribute::value_as_address)
13312 (attribute::form_is_section_offset, attribute::form_is_constant)
13313 (attribute::form_is_ref): Now methods.
13314
162dce55
TT
133152020-02-08 Tom Tromey <tom@tromey.com>
13316
13317 * dwarf2read.c (struct attribute, DW_STRING)
13318 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13319 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13320 (attr_form_is_block, attr_form_is_section_offset)
13321 (attr_form_is_constant, attr_form_is_ref): Move.
13322 * dwarf2/attribute.h: New file.
13323 * dwarf2/attribute.c: New file, from dwarf2read.c.
13324 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13325
3054dd54
TT
133262020-02-08 Tom Tromey <tom@tromey.com>
13327
13328 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13329 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13330 Move.
13331 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13332 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13333 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13334 abbrev.c.
13335 * dwarf2/abbrev.h: New file.
13336 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13337 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13338
96b79293
TT
133392020-02-08 Tom Tromey <tom@tromey.com>
13340
13341 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13342 (dwarf2_section_size, dwarf2_get_section_info)
13343 (create_signatured_type_table_from_debug_names)
13344 (create_addrmap_from_aranges, read_debug_names_from_section)
13345 (get_gdb_index_contents_from_section, read_comp_unit_head)
13346 (error_check_comp_unit_head, read_abbrev_offset)
13347 (create_debug_type_hash_table, init_cu_die_reader)
13348 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13349 (read_comp_units_from_section, create_cus_hash_table)
13350 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13351 (create_dwp_v2_section, dwarf2_rnglists_process)
13352 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13353 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13354 (read_indirect_string_from_dwz, read_addr_index_1)
13355 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13356 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13357 (fill_in_loclist_baton): Update.
13358 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13359 get_containing_section, get_bfd_owner, get_bfd_section,
13360 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13361 (dwarf2_read_section, get_section_name, get_section_file_name)
13362 (get_containing_section, get_section_bfd_owner)
13363 (get_section_bfd_section, get_section_name, get_section_file_name)
13364 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13365 declare.
13366 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13367 (dwarf2_section_info::get_bfd_owner)
13368 (dwarf2_section_info::get_bfd_section)
13369 (dwarf2_section_info::get_name)
13370 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13371 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13372 (dwarf2_section_info::read): Now methods.
13373 * dwarf-index-write.c (class debug_names): Update.
13374
2c86cff9
TT
133752020-02-08 Tom Tromey <tom@tromey.com>
13376
13377 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13378 Move to dwarf2/section.h.
13379 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13380 (get_section_bfd_section, get_section_name)
13381 (get_section_file_name, get_section_id, get_section_flags)
13382 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13383 dwarf2/section.c.
13384 * dwarf2/section.h: New file.
13385 * dwarf2/section.c: New file, from dwarf2read.c.
13386 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13387
f4382c45
TT
133882020-02-08 Tom Tromey <tom@tromey.com>
13389
13390 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13391 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13392 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13393 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13394 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13395 * dwarf2/leb.h: New file, from dwarf2read.c.
13396 * dwarf2/leb.c: New file, from dwarf2read.c.
13397 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13398 Remove.
13399 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13400 (COMMON_SFILES): Add dwarf2/leb.c.
13401
01840b7a
JB
134022020-02-08 Joel Brobecker <brobecker@adacore.com>
13403
13404 GDB 9.1 released.
13405
dfcb27e4
IB
134062020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13407
13408 PR gdb/25190:
aac66a4c
SM
13409 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13410 * gdb/remote.c (remote_console_output): Update.
13411 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13412 (ui_file_puts): ...this.
13413 * gdb/ui-file.h (ui_file_puts): Add declaration.
13414 * gdb/utils.c (emit_style_escape): Update.
13415 (flush_wrap_buffer): Update.
13416 (fputs_maybe_filtered): Update.
13417 (fputs_unfiltered): Add function.
dfcb27e4 13418
faa17681
IB
134192020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13420
aac66a4c
SM
13421 * gdb/event-loop.c (gdb_wait_for_event): Update.
13422 * gdb/printcmd.c (printf_command): Update.
13423 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13424 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13425 (gdb_os_flush_stderr): Update.
13426 * gdb/remote.c (remote_console_output): Update.
13427 * gdb/ui-file.c (gdb_flush): Rename to...
13428 (ui_file_flush): ...this.
13429 (stderr_file::write): Update.
13430 (stderr_file::puts): Update.
13431 * gdb/ui-file.h (gdb_flush): Rename to...
13432 (ui_file_flush): ...this.
13433 * gdb/utils.c (gdb_flush): Add function.
13434 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 13435
5abbbe1d
TT
134362020-02-07 Tom Tromey <tromey@adacore.com>
13437
13438 PR breakpoints/24915:
13439 * source.c (find_and_open_source): Do not check basenames_may_differ.
13440
919adfe8
TT
134412020-02-07 Tom Tromey <tom@tromey.com>
13442
13443 * README: Update gdbserver documentation.
13444 * gdbserver: Move to top level.
13445 * configure.tgt (build_gdbserver): Remove.
13446 * configure.ac: Remove --enable-gdbserver.
13447 * configure: Rebuild.
13448 * Makefile.in (distclean): Don't mention gdbserver.
13449
1d5d29e7
SV
134502020-02-06 Shahab Vahedi <shahab@synopsys.com>
13451
13452 * source-cache.c (source_cache::ensure): Surround
13453 get_plain_source_lines with a try/catch.
13454 (source_cache::get_line_charpos): Get rid of try/catch
13455 and only check for the return value of "ensure".
13456 * tui/tui-source.c (tui_source_window::set_contents):
13457 Simplify "nlines" calculation.
13458
6eb1129c
SV
134592020-02-06 Shahab Vahedi <shahab@synopsys.com>
13460
13461 * MAINTAINERS (Write After Approval): Add myself.
13462
c6a42d11
CB
134632020-02-05 Christian Biesinger <cbiesinger@google.com>
13464
13465 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13466 function call.
13467
c8ecdda6
CB
134682020-02-05 Christian Biesinger <cbiesinger@google.com>
13469
13470 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13471
f6480e70
MR
134722020-02-05 Maciej W. Rozycki <macro@wdc.com>
13473
13474 * nat/riscv-linux-tdesc.h: New file.
13475 * nat/riscv-linux-tdesc.c: New file, taking code from...
13476 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13477 ... here.
13478 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13479 NATDEPFILES.
13480
dcc9fbc6
AB
134812020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13482
13483 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13484 we don't set the fake simulator ptid to the null_ptid.
13485
719546c4
SM
134862020-02-03 Simon Marchi <simon.marchi@efficios.com>
13487
13488 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13489 * gdbthread.h (class thread_info) <resumed>: Likewise.
13490 * infrun.c (resume_1): Likewise.
13491 (proceed): Likewise.
13492 (infrun_thread_stop_requested): Likewise.
13493 (stop_all_threads): Likewise.
13494 (handle_inferior_event): Likewise.
13495 (restart_threads): Likewise.
13496 (finish_step_over): Likewise.
13497 (keep_going_stepped_thread): Likewise.
13498 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13499 (linux_handle_extended_wait): Likewise.
13500 * record-btrace.c (get_thread_current_frame_id): Likewise.
13501 * record-full.c (record_full_wait_1): Likewise.
13502 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13503 * target.c (target_resume): Likewise.
13504 * thread.c (set_running_thread): Likewise.
13505
e409c542
AKS
135062020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13507
13508 * f-valprint.c (f77_print_array_1): Changed datatype of index
13509 variable to LONGEST from int to enable it to contain bound
13510 values correctly.
13511
ee98c0da
MR
135122020-02-03 Maciej W. Rozycki <macro@wdc.com>
13513
13514 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13515 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13516 offsets according to FLEN determined.
13517 (riscv_linux_nat_target::read_description): Determine FLEN
13518 dynamically.
13519 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13520 according to FLEN determined.
13521 (riscv_linux_nat_target::store_registers): Likewise.
13522
aa66aac4
SV
135232020-02-01 Shahab Vahedi <shahab@synopsys.com>
13524
13525 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13526 when reg->group is empty and reggroup is not.
13527
fd9faca8
TT
135282020-01-31 Tom Tromey <tromey@adacore.com>
13529
13530 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13531 Call beneath target's mourn_inferior after unpushing.
13532
42330a68
AB
135332020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13534
13535 PR tui/9765
13536 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13537 have enough lines to fill the screen, still return the lowest
13538 address we found.
13539
7a27a45b
AB
135402020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13541
13542 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13543 '-', '<', and '>' commands.
13544
c47f70e2
PA
135452020-01-29 Pedro Alves <palves@redhat.com>
13546 Sergio Durigan Junior <sergiodj@redhat.com>
13547
13548 * infcmd.c (construct_inferior_arguments): Assert that
13549 'argc' is greater than 0.
13550
5133a315
LM
135512020-01-29 Luis Machado <luis.machado@linaro.org>
13552
13553 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13554 (BRK_INSN_MASK): Define to 0xd4200000.
13555 (aarch64_program_breakpoint_here_p): New function.
13556 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13557 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13558 breakpoint.c.
13559 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13560 breakpoint.h
13561 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13562 call gdbarch_program_breakpoint_here_p.
13563 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13564 default_program_breakpoint_here_p, changed return type to bool and
13565 simplified.
13566 * breakpoint.h (program_breakpoint_here): Moved prototype to
13567 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13568 return type to bool.
13569 * gdbarch.c: Regenerate.
13570 * gdbarch.h: Regenerate.
13571 * gdbarch.sh (program_breakpoint_here_p): New method.
13572 * infrun.c (handle_signal_stop): Call
13573 gdbarch_program_breakpoint_here_p.
13574
168f8c6b
TT
135752020-01-26 Tom Tromey <tom@tromey.com>
13576
13577 * ctfread.c (struct ctf_fp_info): Reindent.
13578 (_initialize_ctfread): Remove.
13579
128a391f
TT
135802020-01-26 Tom Tromey <tom@tromey.com>
13581
13582 * psymtab.c (partial_map_expand_apply)
13583 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13584 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13585 (psym_print_stats, psym_expand_symtabs_for_function)
13586 (psym_map_symbol_filenames, psym_map_matching_symbols)
13587 (psym_expand_symtabs_matching)
13588 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13589 (maintenance_check_psymtabs): Use new methods.
13590 * psympriv.h (struct partial_symtab) <readin_p,
13591 get_compunit_symtab>: New methods.
13592 <readin, compunit_symtab>: Remove members.
13593 (struct standard_psymtab): New.
13594 (struct legacy_psymtab): Derive from standard_psymtab.
13595 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13596 standard_psymtab.
13597 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13598
0494dbec
TT
135992020-01-26 Tom Tromey <tom@tromey.com>
13600
13601 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13602 read_dependencies. Add assert.
13603 * psymtab.c (partial_symtab::read_dependencies): New method.
13604 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13605 method.
13606 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13607 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13608 read_dependencies.
13609 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13610 Add assert.
13611
8566b89b
TT
136122020-01-26 Tom Tromey <tom@tromey.com>
13613
13614 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13615 Call expand_psymtab.
13616 (xcoff_read_symtab): Call expand_psymtab.
13617 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13618 legacy_expand_psymtab.
13619 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13620 method.
13621 (struct legacy_psymtab) <expand_psymtab>: Implement.
13622 <legacy_expand_psymtab>: New member.
13623 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13624 (parse_partial_symbols): Set legacy_expand_psymtab.
13625 (psymtab_to_symtab_1): Change argument order. Call
13626 expand_psymtab.
13627 (new_psymtab): Set legacy_expand_psymtab.
13628 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13629 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13630 expand_psymtab.
13631 (dwarf2_psymtab::expand_psymtab): Rename from
13632 psymtab_to_symtab_1. Call expand_psymtab.
13633 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13634 (dbx_end_psymtab): Likewise.
13635 (dbx_psymtab_to_symtab_1): Change argument order. Call
13636 expand_psymtab.
13637 (dbx_read_symtab): Call expand_psymtab.
13638 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13639 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13640 (ctf_psymtab::read_symtab): Call expand_psymtab.
13641
077cbab2
TT
136422020-01-26 Tom Tromey <tom@tromey.com>
13643
13644 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13645 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13646 messages.
13647 * mdebugread.c (mdebug_read_symtab): Remove prints.
13648 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13649 assert.
13650 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13651
891813be
TT
136522020-01-26 Tom Tromey <tom@tromey.com>
13653
13654 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13655 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13656 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13657 legacy_symtab.
13658 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13659 * psymtab.c (psymtab_to_symtab): Call method.
13660 (dump_psymtab): Update.
13661 * psympriv.h (struct partial_symtab): Add virtual destructor.
13662 <read_symtab>: New method.
13663 (struct legacy_symtab): New.
13664 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13665 (struct pst_map) <pst>: Now a legacy_psymtab.
13666 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13667 (new_psymtab): Use legacy_psymtab.
13668 * dwarf2read.h (struct dwarf2_psymtab): New.
13669 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13670 * dwarf2read.c (dwarf2_create_include_psymtab)
13671 (dwarf2_build_include_psymtabs, create_type_unit_group)
13672 (create_partial_symtab, process_psymtab_comp_unit_reader)
13673 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13674 (set_partial_user): Use dwarf2_psymtab.
13675 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13676 (psymtab_to_symtab_1, process_full_comp_unit)
13677 (process_full_type_unit, dwarf2_ranges_read)
13678 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13679 (dwarf_decode_lines): Use dwarf2_psymtab.
13680 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13681 (add_address_entry_worker, write_one_signatured_type)
13682 (recursively_count_psymbols, recursively_write_psymbols)
13683 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13684 (write_debug_names): Likewise.
13685 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13686 <pst>: Now a legacy_psymtab.
13687 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13688 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13689 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13690 * ctfread.c (struct ctf_psymtab): New.
13691 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13692 ctf_psymtab.
13693 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13694 (create_partial_symtab): Return a ctf_psymtab.
13695 (scan_partial_symbols): Update.
13696
c3693a1d
TT
136972020-01-26 Tom Tromey <tom@tromey.com>
13698
13699 * xcoffread.c (xcoff_start_psymtab): Use new.
13700 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13701 renamed from start_psymtab_common.
13702 * psympriv.h (struct partial_symtab): Add new constructor.
13703 (start_psymtab_common): Don't declare.
13704 * mdebugread.c (parse_partial_symbols): Use new.
13705 * dwarf2read.c (create_partial_symtab): Use new.
13706 * dbxread.c (start_psymtab): Use new.
13707 * ctfread.c (create_partial_symtab): Use new.
13708
32caafd0
TT
137092020-01-26 Tom Tromey <tom@tromey.com>
13710
13711 * xcoffread.c (xcoff_end_psymtab): Use new.
13712 * psymtab.c (start_psymtab_common): Use new.
13713 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13714 Update.
13715 * psympriv.h (struct partial_symtab): Add parameters to
13716 constructor. Don't inline.
13717 (allocate_psymtab): Don't declare.
13718 * mdebugread.c (new_psymtab): Use new.
13719 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13720 * dbxread.c (dbx_end_psymtab): Use new.
13721
abaa2f23
TT
137222020-01-26 Tom Tromey <tom@tromey.com>
13723
13724 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13725 allocate_psymtab. Update documentation.
13726 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13727 allocate_psymtab. Do not use new.
13728 (allocate_psymtab): Use new. Update.
13729
6d94535f
TT
137302020-01-26 Tom Tromey <tom@tromey.com>
13731
13732 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13733 * psymtab.c (psym_print_stats): Update.
13734 * psympriv.h (struct partial_symtab) <readin,
13735 psymtabs_addrmap_supported, anonymous>: Now bool.
13736 * mdebugread.c (psymtab_to_symtab_1): Update.
13737 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13738 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13739 (process_full_comp_unit, process_full_type_unit): Update.
13740 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13741 * ctfread.c (psymtab_to_symtab): Update.
13742
6f17252b
TT
137432020-01-26 Tom Tromey <tom@tromey.com>
13744
13745 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13746 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13747 * psymtab.c (psymtab_storage): Delete psymtabs.
13748 (psymtab_storage::allocate_psymtab): Use new.
13749 (psymtab_storage::discard_psymtab): Use delete.
13750 * psympriv.h (struct partial_symtab): Add constructor and
13751 initializers.
13752
f6f1cebc
TT
137532020-01-26 Tom Tromey <tom@tromey.com>
13754
13755 * machoread.c: Do not include psympriv.h.
13756
e47e48f6
PW
137572020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13758
13759 * NEWS: Mention the new option and the set/show commands.
13760
a2fedca9
PW
137612020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13762
13763 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13764 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13765 (validate_exec_file): New variables, enums, functions.
13766 (exec_file_locate_attach, print_section_info): Style the filenames.
13767 (_initialize_exec): Install show_exec_file_mismatch_command and
13768 set_exec_file_mismatch_command.
13769 * gdbcore.h (validate_exec_file): Declare.
13770 * infcmd.c (attach_command): Call validate_exec_file.
13771 * remote.c ( remote_target::remote_add_inferior): Likewise.
13772
7ffa82e1
AB
137732020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13774
13775 * frame.c (find_frame_sal): Move call to get_next_frame into more
13776 inner scope.
13777 * inline-frame.c (inilne_state) <inline_state>: Update argument
13778 types.
13779 (inilne_state) <skipped_symbol>: Rename to...
13780 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13781 (skip_inline_frames): Build vector of skipped symbols and use this
13782 to reate the inline_state.
13783 (inline_skipped_symbol): Add a comment and some assertions, fetch
13784 skipped symbol from the list.
13785
3d92a3e3
AB
137862020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13787
13788 * buildsym.c (lte_is_less_than): Delete.
13789 (buildsym_compunit::end_symtab_with_blockvector): Create local
13790 lambda function to sort line table entries, and use
13791 std::stable_sort instead of std::sort.
13792 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13793 markers when looking for a previous line.
13794
94a72be7
AB
137952020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13796
13797 * dwarf2read.c (lnp_state_machine::record_line): Include
13798 end_sequence parameter in debug print out. Record the line if we
13799 are at an end_sequence marker even if it's not the start of a
13800 statement.
13801 * symmisc.c (maintenance_print_one_line_table): Print end of
13802 sequence markers with 'END' not '0'.
13803
53af73bf
PA
138042020-01-24 Pedro Alves <palves@redhat.com>
13805
13806 PR gdb/25410
13807 * thread.c (scoped_restore_current_thread::restore): Use
13808 switch_to_inferior_no_thread.
13809 * exec.c: Include "progspace-and-thread.h".
13810 (add_target_sections, remove_target_sections):
13811 scoped_restore_current_pspace_and_thread instead of
13812 scoped_restore_current_thread.
13813 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13814 and aspace to the inferior before calling clone_program_space.
13815 Remove stale comment.
13816
3050c6f4
CB
138172020-01-24 Christian Biesinger <cbiesinger@google.com>
13818
13819 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13820 (arm_netbsd_nat_target::fetch_registers): ...this.
13821 (arm_nbsd_nat_target::store_registers): Rename to...
13822 (arm_netbsd_nat_target::store_registers): ...this.
13823
73685c7e
CB
138242020-01-24 Christian Biesinger <cbiesinger@google.com>
13825
13826 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13827 register_t.
13828
89203d40
CB
138292020-01-24 Christian Biesinger <cbiesinger@google.com>
13830
13831 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13832 Update comment.
13833 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13834 Likewise.
13835 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13836 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13837 the correct replacement (iterate_over_regset_sections).
13838 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13839 Update comment.
13840
1ba1ac88
AB
138412020-01-24 Graham Markall <graham.markall@embecosm.com>
13842
13843 PR gdb/23718
13844 * gdb/python/python.c (execute_gdb_command): Call
13845 async_enable_stdin in catch block.
13846
f3364a6d
AB
138472020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13848
13849 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13850 SWITCH_THRU_ALL_UIS.
13851
733d0a67
AB
138522020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13853
13854 PR tui/9765
13855 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13856 comment, add extra parameter, and update to store previous symbol
13857 when appropriate.
13858 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13859 add extra parameter.
13860 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13861 remove unneeded parameter, add try/catch around gdb_print_insn,
13862 rewrite to add items to asm_lines vector.
13863 (tui_find_backward_disassembly_start_address): New function.
13864 (tui_find_disassembly_address): Updated throughout.
13865 (tui_disasm_window::set_contents): Update for changes to
13866 tui_disassemble.
13867 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13868 number of lines to scroll.
13869
b3b3bada
SM
138702020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13871
13872 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13873 (SECT_OFF_DATA): Likewise.
13874 (SECT_OFF_RODATA): Likewise.
13875 (SECT_OFF_TEXT): Likewise.
13876 (SECT_OFF_BSS): Likewise.
13877 (struct objfile) <text_section_offset, data_section_offset>: New
13878 methods.
13879 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13880 objfile::text_section_offset.
13881 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13882 * coffread.c (coff_symtab_read): Likewise.
13883 (enter_linenos): Likewise.
13884 (process_coff_symbol): Likewise.
13885 * ctfread.c (get_objfile_text_range): Likewise.
13886 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13887 Use objfile::data_section_offset.
13888 * dwarf2-frame.c (execute_cfa_program): Use
13889 objfile::text_section_offset.
13890 (dwarf2_frame_find_fde): Likewise.
13891 * dwarf2read.c (create_addrmap_from_index): Likewise.
13892 (create_addrmap_from_aranges): Likewise.
13893 (dw2_find_pc_sect_compunit_symtab): Likewise.
13894 (process_psymtab_comp_unit_reader): Likewise.
13895 (add_partial_symbol): Likewise.
13896 (add_partial_subprogram): Likewise.
13897 (process_full_comp_unit): Likewise.
13898 (read_file_scope): Likewise.
13899 (read_func_scope): Likewise.
13900 (read_lexical_block_scope): Likewise.
13901 (read_call_site_scope): Likewise.
13902 (dwarf2_rnglists_process): Likewise.
13903 (dwarf2_ranges_process): Likewise.
13904 (dwarf2_ranges_read): Likewise.
13905 (dwarf_decode_lines_1): Likewise.
13906 (new_symbol): Likewise.
13907 (dwarf2_fetch_die_loc_sect_off): Likewise.
13908 (dwarf2_per_cu_text_offset): Likewise.
13909 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13910 * hppa-tdep.c (read_unwind_info): Likewise.
13911 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13912 * psympriv.h (struct partial_symtab): Likewise.
13913 * psymtab.c (find_pc_sect_psymtab): Likewise.
13914 * solib-svr4.c (enable_break): Likewise.
13915 * stap-probe.c (relocate_address): Use
13916 objfile::data_section_offset.
13917 * xcoffread.c (enter_line_range): Use
13918 objfile::text_section_offset.
13919 (read_xcoff_symtab): Likewise.
13920
ab53f382
SM
139212020-01-23 Simon Marchi <simon.marchi@efficios.com>
13922
13923 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13924 declaration to narrower scopes.
13925
e7eee665
SM
139262020-01-23 Simon Marchi <simon.marchi@efficios.com>
13927
13928 * darwin-nat.h (struct darwin_exception_msg, enum
13929 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13930 Move up.
13931 (class darwin_nat_target) <wait_1, check_new_threads,
13932 decode_exception_message, decode_message, stop_inferior,
13933 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13934 * darwin-nat.c (darwin_check_new_threads): Rename to...
13935 (darwin_nat_target::check_new_threads): ... this.
13936 (darwin_suspend_inferior_it): Remove.
13937 (darwin_decode_exception_message): Rename to...
13938 (darwin_nat_target::decode_exception_message): ... this.
13939 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13940 (darwin_decode_message): Rename to...
13941 (darwin_nat_target::decode_message): ... this.
13942 (cancel_breakpoint): Rename to...
13943 (darwin_nat_target::cancel_breakpoint): ... this.
13944 (darwin_wait): Rename to...
13945 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13946 instead of iterate_over_inferiors.
13947 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13948 (darwin_stop_inferior): Rename to...
13949 (darwin_nat_target::stop_inferior): ... this.
13950 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13951 (darwin_init_thread_list): Rename to...
13952 (darwin_nat_target::init_thread_list): ... this.
13953 (darwin_ptrace_him): Rename to...
13954 (darwin_nat_target::ptrace_him): ... this.
13955 (darwin_nat_target::create_inferior): Pass lambda function to
13956 fork_inferior.
13957 (darwin_nat_target::detach): Call stop_inferior instead of
13958 darwin_stop_inferior.
13959 * fork-inferior.h (fork_inferior): Change init_trace_fun
13960 parameter to gdb::function_view.
13961 * fork-inferior.c (fork_inferior): Likewise.
13962
c162ed3e
HD
139632020-01-23 Hannes Domani <ssbssa@yahoo.de>
13964
13965 * i386-cygwin-tdep.c (core_process_module_section): Update.
13966 * windows-nat.c (struct lm_info_windows): Add text_offset.
13967 (windows_xfer_shared_libraries): Update.
13968 * windows-tdep.c (windows_xfer_shared_library):
13969 Add text_offset_cached argument.
13970 * windows-tdep.h (windows_xfer_shared_library): Update.
13971
a1237872
SM
139722020-01-21 Simon Marchi <simon.marchi@efficios.com>
13973
13974 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13975
b3ee6dd9
SM
139762020-01-21 Simon Marchi <simon.marchi@efficios.com>
13977
13978 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13979 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13980 replace with range-based for.
13981 (gdbsim_interrupt_inferior): Remove.
13982 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13983 with a range-based for. Inline code from
13984 gdbsim_interrupt_inferior.
13985
f9fac3c8
SM
139862020-01-21 Simon Marchi <simon.marchi@efficios.com>
13987
13988 * infrun.c (proceed): Fix indentation.
13989
f6474de9
TT
139902020-01-21 Tom Tromey <tromey@adacore.com>
13991
13992 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13993 * python/python.c (python_extension_ops): Update.
13994 (gdbpy_colorize): New function.
13995 * python/lib/gdb/__init__.py (colorize): New function.
13996 * extension.h (ext_lang_colorize): Declare.
13997 * extension.c (ext_lang_colorize): New function.
13998 * extension-priv.h (struct extension_language_ops) <colorize>: New
13999 member.
14000 * cli/cli-style.c (_initialize_cli_style): Update help text.
14001
f0c702d4
LM
140022020-01-21 Luis Machado <luis.machado@linaro.org>
14003
14004 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
14005 <cond>: Change type to bool.
14006 (aarch64_displaced_step_b_cond): Update cond to use bool type.
14007 (aarch64_displaced_step_cb): Likewise.
14008 (aarch64_displaced_step_tb): Likewise.
14009
1ab139e5
LM
140102020-01-21 Luis Machado <luis.machado@linaro.org>
14011
14012 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
14013 output.
14014
0c271889
LM
140152020-01-21 Luis Machado <luis.machado@linaro.org>
14016
14017 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14018 <pc_adjust>: Adjust the documentation.
14019 (aarch64_displaced_step_fixup): Check if PC really moved before
14020 adjusting it.
14021
4d89c1c7
TT
140222020-01-19 Tom Tromey <tom@tromey.com>
14023
14024 * disasm.c (~gdb_disassembler): New destructor.
14025 (gdb_buffered_insn_length): Call disassemble_free_target.
14026 * disasm.h (class gdb_disassembler): Declare destructor. Use
14027 DISABLE_COPY_AND_ASSIGN.
14028
c0ab21c2
TT
140292020-01-19 Tom Tromey <tom@tromey.com>
14030
14031 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14032 (die_reader_func_ftype): Remove.
14033 (cutu_reader): New class.
14034 (dw2_get_file_names_reader): Remove "data" parameter.
14035 (dw2_get_file_names): Use cutu_reader.
14036 (create_debug_type_hash_table): Update.
14037 (read_cutu_die_from_dwo): Update comment.
14038 (lookup_dwo_unit): Add dwo_name parameter.
14039 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14040 die_reader_func_ftype and data parameters.
14041 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14042 Remove die_reader_func_ftype and data parameters.
14043 (~cutu_reader): New; from init_cutu_and_read_dies.
14044 (cutu_reader::cutu_reader): Rename from
14045 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14046 and data parameters.
14047 (init_cutu_and_read_dies_simple): Remove.
14048 (struct process_psymtab_comp_unit_data): Remove.
14049 (process_psymtab_comp_unit_reader): Remove data parameter; add
14050 want_partial_unit and pretend_language parameters.
14051 (process_psymtab_comp_unit): Use cutu_reader.
14052 (build_type_psymtabs_reader): Remove data parameter.
14053 (build_type_psymtabs_1): Use cutu_reader.
14054 (process_skeletonless_type_unit): Likewise.
14055 (load_partial_comp_unit_reader): Remove.
14056 (load_partial_comp_unit): Use cutu_reader.
14057 (load_full_comp_unit_reader): Remove.
14058 (load_full_comp_unit): Use cutu_reader.
14059 (struct create_dwo_cu_data): Remove.
14060 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14061 dwo_unit parameters.
14062 (create_cus_hash_table): Use cutu_reader.
14063 (struct dwarf2_read_addr_index_data): Remove.
14064 (dwarf2_read_addr_index_reader): Remove.
14065 (dwarf2_read_addr_index): Use cutu_reader.
14066 (read_signatured_type_reader): Remove.
14067 (read_signatured_type): Use cutu_reader.
14068
45bbae5c
TT
140692020-01-19 Tom Tromey <tom@tromey.com>
14070
14071 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14072 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14073 (tui_wrefresh): Declare.
14074 * tui/tui-wingeneral.c (suppress_output): New global.
14075 (tui_suppress_output, ~tui_suppress_output): New constructor and
14076 destructor.
14077 (tui_wrefresh): New function.
14078 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14079 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14080 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14081 method.
14082 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14083 tui_wrefresh.
14084 (tui_data_window::no_refresh): New method.
14085 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14086 (tui_reg_command): Use tui_suppress_output
14087 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14088 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14089 method.
14090 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14091
4f13c1c0
TT
140922020-01-19 Tom Tromey <tom@tromey.com>
14093
14094 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14095 Handle case where symtab is null.
14096
fa47e446
SM
140972020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14098
14099 * linux-fork.c (one_fork_p): Simplify.
14100
26f42329
SM
141012020-01-17 Simon Marchi <simon.marchi@efficios.com>
14102
14103 * top.c (struct qt_args): Remove.
14104 (kill_or_detach): Change return type to void, replace `void *`
14105 parameter with a proper one.
14106 (print_inferior_quit_action): Likewise.
14107 (quit_confirm): Use range-based for loop to iterate over inferiors.
14108 (quit_force): Likewise.
14109
a9ac81b1
SM
141102020-01-17 Simon Marchi <simon.marchi@efficios.com>
14111
14112 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14113 `void *` parameter with proper parameters.
14114 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14115 (print_one_inferior): Change return type to void, replace `void *`
14116 parameter with proper parameters.
14117 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14118 inferiors.
14119 (get_other_inferior): Remove.
14120 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14121 inferiors.
14122
788eca49
SM
141232020-01-17 Simon Marchi <simon.marchi@efficios.com>
14124
14125 * mi/mi-interp.c (report_initial_inferior): Remove.
14126 (mi_interp::init): Use range-based for to iterate over inferiors.
14127
d9bc85b6
SM
141282020-01-17 Simon Marchi <simon.marchi@efficios.com>
14129
14130 * python/py-inferior.c (build_inferior_list): Remove.
14131 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14132
40c94099
CB
141332020-01-16 Christian Biesinger <cbiesinger@google.com>
14134
14135 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14136 (btrace_stitch_trace): Likewise.
14137 * charset.c (intermediate_encoding): Likewise (vaild).
14138 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14139 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14140 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14141
e0cdfe3c
HD
141422020-01-16 Hannes Domani <ssbssa@yahoo.de>
14143
14144 * windows-tdep.c (windows_get_tlb_type):
14145 Add rtl_user_process_parameters type.
14146
790f1718 141472020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 14148 Norbert Lange <nolange79@gmail.com>
790f1718
PA
14149
14150 PR build/24805
14151 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14152 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14153 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14154 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14155 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14156 (ps_plog): Redeclare exported functions with default visibility.
14157
3112ed97
NA
141582020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14159
14160 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14161 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14162
8dc3273e
SM
141632020-01-15 Simon Marchi <simon.marchi@efficios.com>
14164
14165 * infcmd.c (post_create_inferior): Use get_thread_regcache
14166 instead of get_current_regcache.
14167
ff47f4f0
TT
141682020-01-14 Tom Tromey <tom@tromey.com>
14169
14170 PR symtab/12535:
14171 * python/python.c (gdbpy_decode_line): Treat empty string the same
14172 as no argument.
14173
975f45b7
TT
141742020-01-14 Tom Tromey <tom@tromey.com>
14175
14176 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14177
25e57356
TT
141782020-01-14 Tom Tromey <tom@tromey.com>
14179
14180 * nat/linux-btrace.c: Don't include <config.h>.
14181 * nat/linux-ptrace.c: Don't include <config.h>.
14182 * nat/x86-linux-dregs.c: Don't include <config.h>.
14183
05ea2a05
TT
141842020-01-14 Tom Tromey <tom@tromey.com>
14185
14186 * configure: Rebuild.
14187 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14188
01027315
TT
141892020-01-14 Tom Tromey <tom@tromey.com>
14190
14191 * nat/x86-linux-dregs.c: Include configh.h.
14192 * nat/linux-ptrace.c: Include configh.h.
14193 * nat/linux-btrace.c: Include configh.h.
14194 * defs.h: Include config.h, bfd.h.
14195 * configure.ac: Don't source common.host.
14196 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14197 * configure: Rebuild.
14198 * acinclude.m4: Update path.
14199 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14200 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14201 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14202 (CLIBS): Add LIBSUPPORT.
14203 (CDEPS): Likewise.
14204 (COMMON_SFILES): Remove gdbsupport files.
14205 (HFILES_NO_SRCDIR): Likewise.
14206 (stamp-version): Update path to create-version.sh.
14207 (ALLDEPFILES): Remove gdbsupport files.
14208
b2ceabe8
TT
142092020-01-14 Tom Tromey <tom@tromey.com>
14210
14211 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14212 USE_WIN32API when needed.
14213 * configure.ac (USE_WIN32API): Don't define.
14214 (WIN32LIBS): Use WIN32APILIBS.
14215 * configure: Rebuild.
14216
25c51f71
TT
142172020-01-14 Tom Tromey <tom@tromey.com>
14218
14219 * configure: Rebuild.
14220 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14221
717c684d
BE
142222020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14223
14224 * skip.c (skip_function_command): Make skip w/o arguments use the
14225 name of the inlined function if pc is inside any inlined function.
14226
7da6a5b9
LM
142272020-01-14 Luis Machado <luis.machado@linaro.org>
14228
14229 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14230 * infrun.c (resume_1): Likewise.
14231 (handle_inferior_event): Remove stale comment.
14232 * linux-nat.c (linux_nat_target::resume): Update comments.
14233 (save_stop_reason): Likewise.
14234 (linux_nat_filter_event): Likewise.
14235 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14236
44e4c775
AB
142372020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14238
14239 * elfread.c (record_minimal_symbol): Set section index to 0 for
14240 non-allocatable sections.
14241
18a8505e
AT
14242
142432020-01-13 Ali Tamur <tamur@google.com>
14244
14245 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14246 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14247 to gdb::optional. Update comments.
14248 (dwo_file): Update comments.
14249 (read_attribute): Update API to take an additional out parameter,
14250 need_reprocess. This is used to mark attributes that need other
14251 attributes (e.g. str_offsets_base) for correct computation which may not
14252 have been read yet.
14253 (read_attribute_reprocess): New function declaration.
14254 (read_addr_index): Likewise.
14255 (read_dwo_str_index): Likewise.
14256 (read_stub_str_index): Likewise.
14257 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14258 (lookup_addr_base): New function definition.
14259 (lookup_ranges_base): Likewise.
14260 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14261 lookup_ranges_base.
14262 (init_cutu_and_read_dies): Update comments.
14263 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14264 unit. This is used to inherit parent's str_offsets_base and addr_base.
14265 Update comments.
14266 (init_cutu_and_read_dies_simple): Reflect API changes.
14267 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14268 (create_cus_hash_table): Change API to take parent compile unit.
14269 Reflect API changes.
14270 (open_and_init_dwo_file): Reflect API changes.
14271 (dwarf2_get_pc_bounds): Update comments.
14272 (dwarf2_record_block_ranges): Likewise.
14273 (read_full_die_1): Change implementation to reprocess attributes that
14274 need str_offsets_base and addr_base.
14275 (partial_die_info::read): Likewise.
14276 (read_attribute_reprocess): New function definition.
14277 (read_attribute_value): Change API to take an additional out parameter,
14278 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14279 when a non-dwo compile unit has index based attributes.
14280 (read_attribute): Reflect API changes.
14281 (read_addr_index_1): Reflect API changes. Update comments.
14282 (dwarf2_read_addr_index_data): Reflect API changes.
14283 (dwarf2_read_addr_index): Likewise.
14284 (read_str_index): Change API and implementation. This becomes a helper
14285 to be used by the new string index related methods. Update error
14286 message and comments.
14287 (read_dwo_str_index): New function definition.
14288 (read_stub_str_index): Likewise.
14289 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14290 * symfile.h (dwarf2_debug_sections): Likewise.
14291 * xcoffread.c (dwarf2_debug_sections): Likewise.
14292
0cac9354
SM
142932020-01-13 Simon Marchi <simon.marchi@efficios.com>
14294
14295 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14296 core_reg_sect type to gdb_byte *.
14297 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14298 * cris-tdep.c (fetch_core_registers): Likewise.
14299 * corelow.c (core_target::get_core_register_section): Change
14300 type of `contents` to gdb::byte_vector.
14301
9a6d629c
AB
143022020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14303
14304 * tui/tui-wingeneral.c (box_win): Position the title in the center
14305 of the border.
14306
d8b2f9e3
SM
143072020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14308
14309 * corelow.c (core_target::get_core_register_section): Use
14310 std::vector instead of alloca.
14311
bb564c58
SM
143122020-01-13 Simon Marchi <simon.marchi@efficios.com>
14313
14314 * warning.m4: Add -Wmissing-declarations to build_warnings.
14315 * configure: Re-generate.
14316
6b366111
SM
143172020-01-13 Simon Marchi <simon.marchi@efficios.com>
14318
14319 * python/python.c (init__gdb_module): Add declaration.
14320
6c265988
SM
143212020-01-13 Simon Marchi <simon.marchi@efficios.com>
14322
14323 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14324 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14325 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14326 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14327 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14328 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14329 * ada-exp.y (_initialize_ada_exp): Add declaration.
14330 * ada-lang.c (_initialize_ada_language): Add declaration.
14331 * ada-tasks.c (_initialize_tasks): Add declaration.
14332 * agent.c (_initialize_agent): Add declaration.
14333 * aix-thread.c (_initialize_aix_thread): Add declaration.
14334 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14335 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14336 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14337 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14338 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14339 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14340 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14341 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14342 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14343 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14344 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14345 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14346 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14347 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14348 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14349 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14350 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14351 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14352 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14353 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14354 * annotate.c (_initialize_annotate): Add declaration.
14355 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14356 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14357 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14358 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14359 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14360 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14361 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14362 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14363 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14364 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14365 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14366 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14367 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14368 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14369 * auto-load.c (_initialize_auto_load): Add declaration.
14370 * auxv.c (_initialize_auxv): Add declaration.
14371 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14372 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14373 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14374 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14375 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14376 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14377 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14378 * breakpoint.c (_initialize_breakpoint): Add declaration.
14379 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14380 * btrace.c (_initialize_btrace): Add declaration.
14381 * charset.c (_initialize_charset): Add declaration.
14382 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14383 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14384 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14385 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14386 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14387 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14388 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14389 * coffread.c (_initialize_coffread): Add declaration.
14390 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14391 * compile/compile.c (_initialize_compile): Add declaration.
14392 * complaints.c (_initialize_complaints): Add declaration.
14393 * completer.c (_initialize_completer): Add declaration.
14394 * copying.c (_initialize_copying): Add declaration.
14395 * corefile.c (_initialize_core): Add declaration.
14396 * corelow.c (_initialize_corelow): Add declaration.
14397 * cp-abi.c (_initialize_cp_abi): Add declaration.
14398 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14399 * cp-support.c (_initialize_cp_support): Add declaration.
14400 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14401 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14402 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14403 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14404 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14405 * ctfread.c (_initialize_ctfread): Add declaration.
14406 * d-lang.c (_initialize_d_language): Add declaration.
14407 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14408 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14409 * dbxread.c (_initialize_dbxread): Add declaration.
14410 * dcache.c (_initialize_dcache): Add declaration.
14411 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14412 * disasm.c (_initialize_disasm): Add declaration.
14413 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14414 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14415 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14416 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14417 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14418 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14419 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14420 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14421 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14422 * elfread.c (_initialize_elfread): Add declaration.
14423 * exec.c (_initialize_exec): Add declaration.
14424 * extension.c (_initialize_extension): Add declaration.
14425 * f-lang.c (_initialize_f_language): Add declaration.
14426 * f-valprint.c (_initialize_f_valprint): Add declaration.
14427 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14428 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14429 * filesystem.c (_initialize_filesystem): Add declaration.
14430 * findcmd.c (_initialize_mem_search): Add declaration.
14431 * findvar.c (_initialize_findvar): Add declaration.
14432 * fork-child.c (_initialize_fork_child): Add declaration.
14433 * frame-base.c (_initialize_frame_base): Add declaration.
14434 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14435 * frame.c (_initialize_frame): Add declaration.
14436 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14437 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14438 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14439 * gcore.c (_initialize_gcore): Add declaration.
14440 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14441 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14442 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14443 * gdbarch.c (_initialize_gdbarch): Add declaration.
14444 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14445 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14446 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14447 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14448 * go-lang.c (_initialize_go_language): Add declaration.
14449 * go32-nat.c (_initialize_go32_nat): Add declaration.
14450 * guile/guile.c (_initialize_guile): Add declaration.
14451 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14452 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14453 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14454 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14455 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14456 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14457 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14458 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14459 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14460 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14461 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14462 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14463 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14464 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14465 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14466 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14467 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14468 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14469 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14470 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14471 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14472 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14473 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14474 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14475 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14476 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14477 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14478 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14479 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14480 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14481 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14482 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14483 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14484 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14485 * infcall.c (_initialize_infcall): Add declaration.
14486 * infcmd.c (_initialize_infcmd): Add declaration.
14487 * inflow.c (_initialize_inflow): Add declaration.
14488 * infrun.c (_initialize_infrun): Add declaration.
14489 * interps.c (_initialize_interpreter): Add declaration.
14490 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14491 * jit.c (_initialize_jit): Add declaration.
14492 * language.c (_initialize_language): Add declaration.
14493 * linux-fork.c (_initialize_linux_fork): Add declaration.
14494 * linux-nat.c (_initialize_linux_nat): Add declaration.
14495 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14496 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14497 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14498 * m2-lang.c (_initialize_m2_language): Add declaration.
14499 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14500 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14501 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14502 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14503 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14504 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14505 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14506 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14507 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14508 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14509 * machoread.c (_initialize_machoread): Add declaration.
14510 * macrocmd.c (_initialize_macrocmd): Add declaration.
14511 * macroscope.c (_initialize_macroscope): Add declaration.
14512 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14513 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14514 * maint.c (_initialize_maint_cmds): Add declaration.
14515 * mdebugread.c (_initialize_mdebugread): Add declaration.
14516 * memattr.c (_initialize_mem): Add declaration.
14517 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14518 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14519 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14520 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14521 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14522 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14523 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14524 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14525 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14526 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14527 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14528 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14529 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14530 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14531 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14532 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14533 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14534 * mipsread.c (_initialize_mipsread): Add declaration.
14535 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14536 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14537 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14538 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14539 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14540 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14541 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14542 * nto-procfs.c (_initialize_procfs): Add declaration.
14543 * objc-lang.c (_initialize_objc_language): Add declaration.
14544 * observable.c (_initialize_observer): Add declaration.
14545 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14546 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14547 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14548 * osabi.c (_initialize_gdb_osabi): Add declaration.
14549 * osdata.c (_initialize_osdata): Add declaration.
14550 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14551 * parse.c (_initialize_parse): Add declaration.
14552 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14553 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14554 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14555 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14556 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14557 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14558 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14559 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14560 * printcmd.c (_initialize_printcmd): Add declaration.
14561 * probe.c (_initialize_probe): Add declaration.
14562 * proc-api.c (_initialize_proc_api): Add declaration.
14563 * proc-events.c (_initialize_proc_events): Add declaration.
14564 * proc-service.c (_initialize_proc_service): Add declaration.
14565 * procfs.c (_initialize_procfs): Add declaration.
14566 * producer.c (_initialize_producer): Add declaration.
14567 * psymtab.c (_initialize_psymtab): Add declaration.
14568 * python/python.c (_initialize_python): Add declaration.
14569 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14570 * record-btrace.c (_initialize_record_btrace): Add declaration.
14571 * record-full.c (_initialize_record_full): Add declaration.
14572 * record.c (_initialize_record): Add declaration.
14573 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14574 * regcache.c (_initialize_regcache): Add declaration.
14575 * reggroups.c (_initialize_reggroup): Add declaration.
14576 * remote-notif.c (_initialize_notif): Add declaration.
14577 * remote-sim.c (_initialize_remote_sim): Add declaration.
14578 * remote.c (_initialize_remote): Add declaration.
14579 * reverse.c (_initialize_reverse): Add declaration.
14580 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14581 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14582 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14583 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14584 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14585 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14586 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14587 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14588 Add declaration.
14589 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14590 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14591 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14592 * rust-exp.y (_initialize_rust_exp): Add declaration.
14593 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14594 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14595 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14596 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14597 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14598 * score-tdep.c (_initialize_score_tdep): Add declaration.
14599 * ser-go32.c (_initialize_ser_dos): Add declaration.
14600 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14601 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14602 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14603 * ser-uds.c (_initialize_ser_socket): Add declaration.
14604 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14605 * serial.c (_initialize_serial): Add declaration.
14606 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14607 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14608 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14609 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14610 * skip.c (_initialize_step_skip): Add declaration.
14611 * sol-thread.c (_initialize_sol_thread): Add declaration.
14612 * solib-aix.c (_initialize_solib_aix): Add declaration.
14613 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14614 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14615 * solib-frv.c (_initialize_frv_solib): Add declaration.
14616 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14617 * solib-target.c (_initialize_solib_target): Add declaration.
14618 * solib.c (_initialize_solib): Add declaration.
14619 * source-cache.c (_initialize_source_cache): Add declaration.
14620 * source.c (_initialize_source): Add declaration.
14621 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14622 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14623 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14624 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14625 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14626 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14627 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14628 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14629 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14630 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14631 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14632 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14633 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14634 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14635 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14636 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14637 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14638 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14639 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14640 * stabsread.c (_initialize_stabsread): Add declaration.
14641 * stack.c (_initialize_stack): Add declaration.
14642 * stap-probe.c (_initialize_stap_probe): Add declaration.
14643 * std-regs.c (_initialize_frame_reg): Add declaration.
14644 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14645 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14646 * symfile.c (_initialize_symfile): Add declaration.
14647 * symmisc.c (_initialize_symmisc): Add declaration.
14648 * symtab.c (_initialize_symtab): Add declaration.
14649 * target.c (_initialize_target): Add declaration.
14650 * target-connection.c (_initialize_target_connection): Add
14651 declaration.
14652 * target-dcache.c (_initialize_target_dcache): Add declaration.
14653 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14654 * thread.c (_initialize_thread): Add declaration.
14655 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14656 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14657 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14658 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14659 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14660 * tracectf.c (_initialize_ctf): Add declaration.
14661 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14662 * tracefile.c (_initialize_tracefile): Add declaration.
14663 * tracepoint.c (_initialize_tracepoint): Add declaration.
14664 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14665 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14666 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14667 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14668 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14669 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14670 * tui/tui.c (_initialize_tui): Add declaration.
14671 * typeprint.c (_initialize_typeprint): Add declaration.
14672 * ui-style.c (_initialize_ui_style): Add declaration.
14673 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14674 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14675 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14676 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14677 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14678 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14679 * unittests/filtered_iterator-selftests.c
14680 (_initialize_filtered_iterator_selftests): Add declaration.
14681 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14682 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14683 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14684 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14685 * unittests/main-thread-selftests.c
14686 (_initialize_main_thread_selftests): Add declaration.
14687 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14688 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14689 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14690 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14691 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14692 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14693 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14694 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14695 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14696 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14697 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14698 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14699 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14700 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14701 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14702 declaration.
14703 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14704 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14705 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14706 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14707 * user-regs.c (_initialize_user_regs): Add declaration.
14708 * utils.c (_initialize_utils): Add declaration.
14709 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14710 * valops.c (_initialize_valops): Add declaration.
14711 * valprint.c (_initialize_valprint): Add declaration.
14712 * value.c (_initialize_values): Add declaration.
14713 * varobj.c (_initialize_varobj): Add declaration.
14714 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14715 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14716 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14717 * windows-nat.c (_initialize_windows_nat): Add declaration.
14718 (_initialize_check_for_gdb_ini): Add declaration.
14719 (_initialize_loadable): Add declaration.
14720 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14721 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14722 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14723 * xcoffread.c (_initialize_xcoffread): Add declaration.
14724 * xml-support.c (_initialize_xml_support): Add declaration.
14725 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14726 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14727 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14728 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14729
e2de1eec
SM
147302020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14731
14732 * regformats/regdat.sh: Generate declaration for init function.
14733
e0037b4c
SM
147342020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14735
14736 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14737 up.
14738 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14739 close_one_inferior>: New methods.
14740 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14741 pass down target to find_inferior_pid.
14742 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14743 Pass down target to find_inferior_ptid.
14744 (gdbsim_target::create_inferior): Pass down target to
14745 add_thread_silent.
14746 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14747 target down to find_inferior_ptid and switch_to_thread.
14748 (gdbsim_target::close): Update to call close_one_inferior.
14749 (struct resume_data): Remove.
14750 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14751 directly, rather than through a void pointer.
14752 (gdbsim_target::resume): Update to call resume_one_inferior.
14753
58920b5b
SM
147542020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14755
14756 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14757
4ec89149
PA
147582020-01-12 Pedro Alves <palves@redhat.com>
14759
14760 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14761 directly for the current inferior instead of
14762 discard_all_inferiors.
14763 (discard_all_inferiors): Delete.
14764
7c392d1d
TT
147652020-01-11 Tom Tromey <tom@tromey.com>
14766
14767 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14768 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14769 deprecated_safe_get_selected_frame.
14770
d9ebdab7
TBA
147712020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14772
14773 * inferior.c (print_inferior): Switch inferior before printing it.
14774
f3c469b9
PA
147752020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14776 Pedro Alves <palves@redhat.com>
14777
14778 * progspace-and-thread.c (switch_to_program_space_and_thread):
14779 Assert there's an inferior for PSPACE. Use
14780 switch_to_inferior_no_thread to switch the inferior too.
14781 * progspace.c (program_space::~program_space): Call
14782 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14783 (program_space::free_all_objfiles): Don't call clear_symtab_users
14784 here.
14785 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14786
65c574f6
PA
147872020-01-10 Pedro Alves <palves@redhat.com>
14788
14789 * NEWS: Mention multi-target debugging, "info connections", and
14790 "add-inferior -no-connection".
14791
2f4fcf00
PA
147922020-01-10 Pedro Alves <palves@redhat.com>
14793
14794 * infrun.c: Include "target-connection.h".
14795 (check_multi_target_resumption): New.
14796 (proceed): Call it.
14797 * target-connection.c (make_target_connection_string): Make
14798 extern.
14799 * target-connection.h (make_target_connection_string): Declare.
14800
121b3efd
PA
148012020-01-10 Pedro Alves <palves@redhat.com>
14802
14803 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14804 * inferior.c (uiout_field_connection): New function.
14805 (print_inferior): Add new "connection-id" column.
14806 (add_inferior_command): Show connection number/string of added
14807 inferior.
14808 * process-stratum-target.h
14809 (process_stratum_target::connection_string): New virtual method.
14810 (process_stratum_target::connection_number): New field.
14811 * remote.c (remote_target::connection_string): New override.
14812 * target-connection.c: New file.
14813 * target-connection.h: New file.
14814 * target.c (decref_target): Remove process_stratum targets from
14815 the connection list.
14816 (target_stack::push): Add process_stratum targets to the
14817 connection list.
14818
4f837581
PA
148192020-01-10 Pedro Alves <palves@redhat.com>
14820
14821 Revert:
14822 2016-04-12 Pedro Alves <palves@redhat.com>
14823 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14824 Remove references to name.
14825 * serial.h (struct serial) <name>: Delete.
14826
f4ec508e
PA
148272020-01-10 Pedro Alves <palves@redhat.com>
14828
14829 * gdbarch-selftests.c (register_to_value_test): Remove "target
14830 already pushed" check.
14831
5b6d1e4f
PA
148322020-01-10 Pedro Alves <palves@redhat.com>
14833 John Baldwin <jhb@FreeBSD.org>
14834
14835 * aarch64-linux-nat.c
14836 (aarch64_linux_nat_target::thread_architecture): Adjust.
14837 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14838 (task_command_1): Likewise.
14839 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14840 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14841 (aix_thread_target::store_registers)
14842 (aix_thread_target::thread_alive): Adjust.
14843 * amd64-fbsd-tdep.c: Include "inferior.h".
14844 (amd64fbsd_get_thread_local_address): Pass down target.
14845 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14846 thread's gdbarch instead of target_gdbarch.
14847 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14848 get_last_target_status.
14849 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14850 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14851 inferiors.
14852 (update_inserted_breakpoint_locations): Skip if inferiors with no
14853 execution.
14854 (update_global_location_list): When handling moribund locations,
14855 find representative inferior for location's pspace, and use thread
14856 count of its process_stratum target.
14857 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14858 * bsd-uthread.c (bsd_uthread_target::wait): Use
14859 as_process_stratum_target and adjust thread_change_ptid and
14860 add_thread calls.
14861 (bsd_uthread_target::update_thread_list): Use
14862 as_process_stratum_target and adjust find_thread_ptid,
14863 thread_change_ptid and add_thread calls.
14864 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14865 find_thread_ptid call.
14866 * corelow.c (add_to_thread_list): Adjust add_thread call.
14867 (core_target_open): Adjust add_thread_silent and thread_count
14868 calls.
14869 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14870 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14871 * event-top.c (async_disconnect): Pop targets from all inferiors.
14872 * exec.c (add_target_sections): Push exec target on all inferiors
14873 sharing the program space.
14874 (remove_target_sections): Remove the exec target from all
14875 inferiors sharing the program space.
14876 (exec_on_vfork): New.
14877 * exec.h (exec_on_vfork): Declare.
14878 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14879 Pass it down.
14880 (fbsd_nat_target::update_thread_list): Adjust.
14881 (fbsd_nat_target::resume): Adjust.
14882 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14883 down.
14884 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14885 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14886 get_thread_arch_regcache call.
14887 * fork-child.c (gdb_startup_inferior): Pass target down to
14888 startup_inferior and set_executing.
14889 * gdbthread.h (struct process_stratum_target): Forward declare.
14890 (add_thread, add_thread_silent, add_thread_with_info)
14891 (in_thread_list): Add process_stratum_target parameter.
14892 (find_thread_ptid(inferior*, ptid_t)): New overload.
14893 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14894 parameter.
14895 (all_threads()): Delete overload.
14896 (all_threads, all_non_exited_threads): Add process_stratum_target
14897 parameter.
14898 (all_threads_safe): Use brace initialization.
14899 (thread_count): Add process_stratum_target parameter.
14900 (set_resumed, set_running, set_stop_requested, set_executing)
14901 (threads_are_executing, finish_thread_state): Add
14902 process_stratum_target parameter.
14903 (switch_to_thread): Use is_current_thread.
14904 * i386-fbsd-tdep.c: Include "inferior.h".
14905 (i386fbsd_get_thread_local_address): Pass down target.
14906 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14907 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14908 have_inferiors check.
14909 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14910 (inf_ptrace_target::attach): Adjust.
14911 * infcall.c (run_inferior_call): Adjust.
14912 * infcmd.c (run_command_1): Pass target to
14913 scoped_finish_thread_state.
14914 (proceed_thread_callback): Skip inferiors with no execution.
14915 (continue_command): Rename 'all_threads' local to avoid hiding
14916 'all_threads' function. Adjust get_last_target_status call.
14917 (prepare_one_step): Adjust set_running call.
14918 (signal_command): Use user_visible_resume_target. Compare thread
14919 pointers instead of inferior_ptid.
14920 (info_program_command): Adjust to pass down target.
14921 (attach_command): Mark target's 'thread_executing' flag.
14922 (stop_current_target_threads_ns): New, factored out from ...
14923 (interrupt_target_1): ... this. Switch inferior before making
14924 target calls.
14925 * inferior-iter.h
14926 (struct all_inferiors_iterator, struct all_inferiors_range)
14927 (struct all_inferiors_safe_range)
14928 (struct all_non_exited_inferiors_range): Filter on
14929 process_stratum_target too. Remove explicit.
14930 * inferior.c (inferior::inferior): Push dummy target on target
14931 stack.
14932 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14933 Add process_stratum_target parameter, and pass it down.
14934 (have_live_inferiors): Adjust.
14935 (switch_to_inferior_and_push_target): New.
14936 (add_inferior_command, clone_inferior_command): Handle
14937 "-no-connection" parameter. Use
14938 switch_to_inferior_and_push_target.
14939 (_initialize_inferior): Mention "-no-connection" option in
14940 the help of "add-inferior" and "clone-inferior" commands.
14941 * inferior.h: Include "process-stratum-target.h".
14942 (interrupt_target_1): Use bool.
14943 (struct inferior) <push_target, unpush_target, target_is_pushed,
14944 find_target_beneath, top_target, process_target, target_at,
14945 m_stack>: New.
14946 (discard_all_inferiors): Delete.
14947 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14948 (all_inferiors, all_non_exited_inferiors): Add
14949 process_stratum_target parameter.
14950 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14951 (target_last_proc_target): New global.
14952 (follow_fork_inferior): Push target on new inferior. Pass target
14953 to add_thread_silent. Call exec_on_vfork. Handle target's
14954 reference count.
14955 (follow_fork): Adjust get_last_target_status call. Also consider
14956 target.
14957 (follow_exec): Push target on new inferior.
14958 (struct execution_control_state) <target>: New field.
14959 (user_visible_resume_target): New.
14960 (do_target_resume): Call target_async.
14961 (resume_1): Set target's threads_executing flag. Consider resume
14962 target.
14963 (commit_resume_all_targets): New.
14964 (proceed): Also consider resume target. Skip threads of inferiors
14965 with no execution. Commit resumtion in all targets.
14966 (start_remote): Pass current inferior to wait_for_inferior.
14967 (infrun_thread_stop_requested): Consider target as well. Pass
14968 thread_info pointer to clear_inline_frame_state instead of ptid.
14969 (infrun_thread_thread_exit): Consider target as well.
14970 (random_pending_event_thread): New inferior parameter. Use it.
14971 (do_target_wait): Rename to ...
14972 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14973 down.
14974 (threads_are_resumed_pending_p, do_target_wait): New.
14975 (prepare_for_detach): Adjust calls.
14976 (wait_for_inferior): New inferior parameter. Handle it. Use
14977 do_target_wait_1 instead of do_target_wait.
14978 (fetch_inferior_event): Adjust. Switch to representative
14979 inferior. Pass target down.
14980 (set_last_target_status): Add process_stratum_target parameter.
14981 Save target in global.
14982 (get_last_target_status): Add process_stratum_target parameter and
14983 handle it.
14984 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14985 (context_switch): Check inferior_ptid == null_ptid before calling
14986 inferior_thread().
14987 (get_inferior_stop_soon): Pass down target.
14988 (wait_one): Rename to ...
14989 (poll_one_curr_target): ... this.
14990 (struct wait_one_event): New.
14991 (wait_one): New.
14992 (stop_all_threads): Adjust.
14993 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14994 event's target.
14995 (switch_back_to_stepped_thread): Also consider target.
14996 (print_stop_event): Update.
14997 (normal_stop): Update. Also consider the resume target.
14998 * infrun.h (wait_for_inferior): Remove declaration.
14999 (user_visible_resume_target): New declaration.
15000 (get_last_target_status, set_last_target_status): New
15001 process_stratum_target parameter.
15002 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15003 process_stratum_target parameter, and use it.
15004 (clear_inline_frame_state (thread_info*)): New.
15005 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
15006 process_stratum_target parameter.
15007 (clear_inline_frame_state (thread_info*)): Declare.
15008 * linux-fork.c (delete_checkpoint_command): Pass target down to
15009 find_thread_ptid.
15010 (checkpoint_command): Adjust.
15011 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
15012 instead of just tweaking inferior_ptid.
15013 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15014 (exit_lwp): Pass target down to find_thread_ptid.
15015 (attach_proc_task_lwp_callback): Pass target down to
15016 add_thread/set_running/set_executing.
15017 (linux_nat_target::attach): Pass target down to
15018 thread_change_ptid.
15019 (get_detach_signal): Pass target down to find_thread_ptid.
15020 Consider last target status's target.
15021 (linux_resume_one_lwp_throw, resume_lwp)
15022 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15023 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15024 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15025 (linux_nat_target::async_wait_fd): New.
15026 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15027 target down.
15028 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15029 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15030 * linux-thread-db.c (struct thread_db_info::process_target): New
15031 field.
15032 (add_thread_db_info): Save target.
15033 (get_thread_db_info): New process_stratum_target parameter. Also
15034 match target.
15035 (delete_thread_db_info): New process_stratum_target parameter.
15036 Also match target.
15037 (thread_from_lwp): Adjust to pass down target.
15038 (thread_db_notice_clone): Pass down target.
15039 (check_thread_db_callback): Pass down target.
15040 (try_thread_db_load_1): Always push the thread_db target.
15041 (try_thread_db_load, record_thread): Pass target down.
15042 (thread_db_target::detach): Pass target down. Always unpush the
15043 thread_db target.
15044 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15045 target down. Always unpush the thread_db target.
15046 (find_new_threads_callback, thread_db_find_new_threads_2)
15047 (thread_db_target::update_thread_list): Pass target down.
15048 (thread_db_target::pid_to_str): Pass current inferior down.
15049 (thread_db_target::get_thread_local_address): Pass target down.
15050 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15051 target down.
15052 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15053 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15054 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15055 (procfs_init_inferior): Rename to ...
15056 (procfs_target::procfs_init_inferior): ... this and adjust.
15057 (procfs_target::create_inferior, procfs_notice_thread)
15058 (procfs_do_thread_registers): Adjust.
15059 * ppc-fbsd-tdep.c: Include "inferior.h".
15060 (ppcfbsd_get_thread_local_address): Pass down target.
15061 * proc-service.c (ps_xfer_memory): Switch current inferior and
15062 program space as well.
15063 (get_ps_regcache): Pass target down.
15064 * process-stratum-target.c
15065 (process_stratum_target::thread_address_space)
15066 (process_stratum_target::thread_architecture): Pass target down.
15067 * process-stratum-target.h
15068 (process_stratum_target::threads_executing): New field.
15069 (as_process_stratum_target): New.
15070 * ravenscar-thread.c
15071 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15072 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15073 down.
15074 * record-btrace.c (record_btrace_target::info_record): Adjust.
15075 (record_btrace_target::record_method)
15076 (record_btrace_target::record_is_replaying)
15077 (record_btrace_target::fetch_registers)
15078 (get_thread_current_frame_id, record_btrace_target::resume)
15079 (record_btrace_target::wait, record_btrace_target::stop): Pass
15080 target down.
15081 * record-full.c (record_full_wait_1): Switch to event thread.
15082 Pass target down.
15083 * regcache.c (regcache::regcache)
15084 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15085 process_stratum_target parameter and handle it.
15086 (current_thread_target): New global.
15087 (get_thread_regcache): Add process_stratum_target parameter and
15088 handle it. Switch inferior before calling target method.
15089 (get_thread_regcache): Pass target down.
15090 (get_thread_regcache_for_ptid): Pass target down.
15091 (registers_changed_ptid): Add process_stratum_target parameter and
15092 handle it.
15093 (registers_changed_thread, registers_changed): Pass target down.
15094 (test_get_thread_arch_aspace_regcache): New.
15095 (current_regcache_test): Define a couple local test_target_ops
15096 instances and use them for testing.
15097 (readwrite_regcache): Pass process_stratum_target parameter.
15098 (cooked_read_test, cooked_write_test): Pass mock_target down.
15099 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15100 (get_thread_arch_aspace_regcache): Add process_stratum_target
15101 parameter.
15102 (regcache::target): New method.
15103 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15104 (regcache::registers_changed_ptid): Add process_stratum_target
15105 parameter.
15106 (regcache::m_target): New field.
15107 (registers_changed_ptid): Add process_stratum_target parameter.
15108 * remote.c (remote_state::supports_vCont_probed): New field.
15109 (remote_target::async_wait_fd): New method.
15110 (remote_unpush_and_throw): Add remote_target parameter.
15111 (get_current_remote_target): Adjust.
15112 (remote_target::remote_add_inferior): Push target.
15113 (remote_target::remote_add_thread)
15114 (remote_target::remote_notice_new_inferior)
15115 (get_remote_thread_info): Pass target down.
15116 (remote_target::update_thread_list): Skip threads of inferiors
15117 bound to other targets. (remote_target::close): Don't discard
15118 inferiors. (remote_target::add_current_inferior_and_thread)
15119 (remote_target::process_initial_stop_replies)
15120 (remote_target::start_remote)
15121 (remote_target::remote_serial_quit_handler): Pass down target.
15122 (remote_target::remote_unpush_target): New remote_target
15123 parameter. Unpush the target from all inferiors.
15124 (remote_target::remote_unpush_and_throw): New remote_target
15125 parameter. Pass it down.
15126 (remote_target::open_1): Check whether the current inferior has
15127 execution instead of checking whether any inferior is live. Pass
15128 target down.
15129 (remote_target::remote_detach_1): Pass down target. Use
15130 remote_unpush_target.
15131 (extended_remote_target::attach): Pass down target.
15132 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15133 (remote_target::append_resumption): Pass down target.
15134 (remote_target::append_pending_thread_resumptions)
15135 (remote_target::remote_resume_with_hc, remote_target::resume)
15136 (remote_target::commit_resume): Pass down target.
15137 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15138 (remote_target::interrupt_query)
15139 (remote_target::remove_new_fork_children)
15140 (remote_target::check_pending_events_prevent_wildcard_vcont)
15141 (remote_target::remote_parse_stop_reply)
15142 (remote_target::process_stop_reply): Pass down target.
15143 (first_remote_resumed_thread): New remote_target parameter. Pass
15144 it down.
15145 (remote_target::wait_as): Pass down target.
15146 (unpush_and_perror): New remote_target parameter. Pass it down.
15147 (remote_target::readchar, remote_target::remote_serial_write)
15148 (remote_target::getpkt_or_notif_sane_1)
15149 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15150 down target.
15151 (remote_target::mourn_inferior): Pass down target. Use
15152 remote_unpush_target.
15153 (remote_target::core_of_thread)
15154 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15155 (remote_target::pid_to_exec_file)
15156 (remote_target::thread_handle_to_thread_info): Pass down target.
15157 (remote_target::async_wait_fd): New.
15158 * riscv-fbsd-tdep.c: Include "inferior.h".
15159 (riscv_fbsd_get_thread_local_address): Pass down target.
15160 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15161 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15162 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15163 Adjust.
15164 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15165 * solib-svr4.c (enable_break): Pass down target.
15166 * spu-multiarch.c (parse_spufs_run): Pass down target.
15167 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15168 * target-delegates.c: Regenerate.
15169 * target.c (g_target_stack): Delete.
15170 (current_top_target): Return the current inferior's top target.
15171 (target_has_execution_1): Refer to the passed-in inferior's top
15172 target.
15173 (target_supports_terminal_ours): Check whether the initial
15174 inferior was already created.
15175 (decref_target): New.
15176 (target_stack::push): Incref/decref the target.
15177 (push_target, push_target, unpush_target): Adjust.
15178 (target_stack::unpush): Defref target.
15179 (target_is_pushed): Return bool. Adjust to refer to the current
15180 inferior's target stack.
15181 (dispose_inferior): Delete, and inline parts ...
15182 (target_preopen): ... here. Only dispose of the current inferior.
15183 (target_detach): Hold strong target reference while detaching.
15184 Pass target down.
15185 (target_thread_name): Add assertion.
15186 (target_resume): Pass down target.
15187 (target_ops::beneath, find_target_at): Adjust to refer to the
15188 current inferior's target stack.
15189 (get_dummy_target): New.
15190 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15191 has a thread running.
15192 (initialize_targets): Rename to ...
15193 (_initialize_target): ... this.
15194 * target.h: Include "gdbsupport/refcounted-object.h".
15195 (struct target_ops): Inherit refcounted_object.
15196 (target_ops::shortname, target_ops::longname): Make const.
15197 (target_ops::async_wait_fd): New method.
15198 (decref_target): Declare.
15199 (struct target_ops_ref_policy): New.
15200 (target_ops_ref): New typedef.
15201 (get_dummy_target): Declare function.
15202 (target_is_pushed): Return bool.
15203 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15204 (all_matching_threads_iterator::all_matching_threads_iterator):
15205 Handle filter target.
15206 * thread-iter.h (struct all_matching_threads_iterator, struct
15207 all_matching_threads_range, class all_non_exited_threads_range):
15208 Filter by target too. Remove explicit.
15209 * thread.c (threads_executing): Delete.
15210 (inferior_thread): Pass down current inferior.
15211 (clear_thread_inferior_resources): Pass down thread pointer
15212 instead of ptid_t.
15213 (add_thread_silent, add_thread_with_info, add_thread): Add
15214 process_stratum_target parameter. Use it for thread and inferior
15215 searches.
15216 (is_current_thread): New.
15217 (thread_info::deletable): Use it.
15218 (find_thread_ptid, thread_count, in_thread_list)
15219 (thread_change_ptid, set_resumed, set_running): New
15220 process_stratum_target parameter. Pass it down.
15221 (set_executing): New process_stratum_target parameter. Pass it
15222 down. Adjust reference to 'threads_executing'.
15223 (threads_are_executing): New process_stratum_target parameter.
15224 Adjust reference to 'threads_executing'.
15225 (set_stop_requested, finish_thread_state): New
15226 process_stratum_target parameter. Pass it down.
15227 (switch_to_thread): Also match inferior.
15228 (switch_to_thread): New process_stratum_target parameter. Pass it
15229 down.
15230 (update_threads_executing): Reimplement.
15231 * top.c (quit_force): Pop targets from all inferior.
15232 (gdb_init): Don't call initialize_targets.
15233 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15234 Declare.
15235 (windows_add_thread, windows_delete_thread): Adjust.
15236 (get_windows_debug_event): Rename to ...
15237 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15238 * tracefile-tfile.c (tfile_target_open): Pass down target.
15239 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15240 Forward declare.
15241 (switch_to_thread): Add process_stratum_target parameter.
15242 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15243 parameter. Use it.
15244 (mi_on_resume): Pass target down.
15245 * nat/fork-inferior.c (startup_inferior): Add
15246 process_stratum_target parameter. Pass it down.
15247 * nat/fork-inferior.h (startup_inferior): Add
15248 process_stratum_target parameter.
15249 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15250
75c6c844
PA
152512020-01-10 Pedro Alves <palves@redhat.com>
15252
15253 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15254 directly. Instead find the first thread in the thread list and
15255 use switch_to_thread.
15256
78f2c40a
PA
152572020-01-10 Pedro Alves <palves@redhat.com>
15258
15259 * remote.c (remote_target::remote_add_inferior): Don't bind a
15260 process to the current inferior if the current inferior is already
15261 bound to a process.
15262
e7af6c70
TBA
152632020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15264 Pedro Alves <palves@redhat.com>
15265
15266 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15267 If no process is specified, return null_ptid instead of
15268 inferior_ptid.
15269 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15270 TARGET_WAITKIND_SIGNALLED with no pid.
15271
31ba933e
PA
152722020-01-10 Pedro Alves <palves@redhat.com>
15273
15274 * remote.c (first_remote_resumed_thread): New.
15275 (remote_target::wait_as): Use it as default event_ptid instead of
15276 inferior_ptid.
15277
735fc2ca
PA
152782020-01-10 Pedro Alves <palves@redhat.com>
15279
15280 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15281
c17e02e1
PA
152822020-01-10 Pedro Alves <palves@redhat.com>
15283
15284 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15285 not -1.
15286
ab1ddbcf
PA
152872020-01-10 Pedro Alves <palves@redhat.com>
15288
15289 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15290 ptid to get_last_target_status.
15291 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15292 ptid to get_last_target_status.
15293 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15294 get_last_target_status.
15295 (info_program_command): Don't pass a target_waitstatus to
15296 get_last_target_status.
15297 * infrun.c (init_wait_for_inferior): Use
15298 nullify_last_target_wait_ptid.
15299 (get_last_target_status): Handle nullptr arguments.
15300 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15301 (print_stop_event): Don't pass a ptid to get_last_target_status.
15302 (normal_stop): Don't pass a ptid to get_last_target_status.
15303 * infrun.h (get_last_target_status, set_last_target_status): Move
15304 comments here and update.
15305 (nullify_last_target_wait_ptid): Declare.
15306 * linux-fork.c (fork_load_infrun_state): Remove local extern
15307 declaration of nullify_last_target_wait_ptid.
15308 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15309 to get_last_target_status.
15310
f3f8ece4
PA
153112020-01-10 Pedro Alves <palves@redhat.com>
15312
15313 * gdbthread.h (scoped_restore_current_thread)
15314 <dont_restore, restore, m_dont_restore>: Declare.
15315 * thread.c (thread_alive): Add assertion. Return bool.
15316 (switch_to_thread_if_alive): New.
15317 (prune_threads): Switch inferior/thread.
15318 (print_thread_info_1): Switch thread before calling target methods.
15319 (scoped_restore_current_thread::restore): New, factored out from
15320 ...
15321 (scoped_restore_current_thread::~scoped_restore_current_thread):
15322 ... this.
15323 (scoped_restore_current_thread::scoped_restore_current_thread):
15324 Add assertion.
15325 (thread_apply_all_command, thread_select): Use
15326 switch_to_thread_if_alive.
15327 * infrun.c (proceed, restart_threads, handle_signal_stop)
15328 (switch_back_to_stepped_thread): Switch current thread before
15329 calling target methods.
15330
db2d40f7
PA
153312020-01-10 Pedro Alves <palves@redhat.com>
15332
15333 * inferior.c (switch_to_inferior_no_thread): New function,
15334 factored out from ...
15335 (inferior_command): ... here.
15336 * inferior.h (switch_to_inferior_no_thread): Declare.
15337 * mi/mi-main.c (run_one_inferior): Use
15338 switch_to_inferior_no_thread.
15339
bd420a2d
PA
153402020-01-10 Pedro Alves <palves@redhat.com>
15341
15342 * infcmd.c (kill_command): Remove dead code.
15343
ddf5db90
PA
153442020-01-10 Pedro Alves <palves@redhat.com>
15345
15346 * remote.c (remote_target::mourn_inferior): No longer check
15347 whether the target is running.
15348
5018ce90
PA
153492020-01-10 Pedro Alves <palves@redhat.com>
15350
15351 * corelow.c (core_target::has_execution): Change parameter type to
15352 inferior pointer.
15353 * inferior.c (number_of_live_inferiors): Use
15354 inferior::has_execution instead of target_has_execution_1.
15355 * inferior.h (inferior::has_execution): New.
15356 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15357 inferior::has_execution instead of target_has_execution_1.
15358 * process-stratum-target.c
15359 (process_stratum_target::has_execution): Change parameter type to
15360 inferior pointer. Check the inferior's PID instead of
15361 inferior_ptid.
15362 * process-stratum-target.h
15363 (process_stratum_target::has_execution): Change parameter type to
15364 inferior pointer.
15365 * record-full.c (record_full_core_target::has_execution): Change
15366 parameter type to inferior pointer.
15367 * target.c (target_has_execution_1): Change parameter type to
15368 inferior pointer.
15369 (target_has_execution_current): Adjust.
15370 * target.h (target_ops::has_execution): Change parameter type to
15371 inferior pointer.
15372 (target_has_execution_1): Change parameter type to inferior
15373 pointer. Change return type to bool.
15374 * tracefile.h (tracefile_target::has_execution): Change parameter
15375 type to inferior pointer.
15376
74375d18
PA
153772020-01-10 Pedro Alves <palves@redhat.com>
15378
15379 * exceptions.c (print_flush): Remove current_top_target() check.
15380
acdf84a6
PA
153812020-01-10 Pedro Alves <palves@redhat.com>
15382
15383 * remote.c (show_remote_exec_file): Show the current inferior's
15384 exec-file instead of the command variable's value.
15385
ec506636
PA
153862020-01-10 Pedro Alves <palves@redhat.com>
15387
15388 * record-full.c (record_full_resume_ptid): New global.
15389 (record_full_target::resume): Set it.
15390 (record_full_wait_1): Use record_full_resume_ptid instead of
15391 inferior_ptid.
15392
873657b9
PA
153932020-01-10 Pedro Alves <palves@redhat.com>
15394
15395 * gdbthread.h (scoped_restore_current_thread)
15396 <dont_restore, restore, m_dont_restore>: Declare.
15397 * thread.c (thread_alive): Add assertion. Return bool.
15398 (switch_to_thread_if_alive): New.
15399 (prune_threads): Switch inferior/thread.
15400 (print_thread_info_1): Switch thread before calling target methods.
15401 (scoped_restore_current_thread::restore): New, factored out from
15402 ...
15403 (scoped_restore_current_thread::~scoped_restore_current_thread):
15404 ... this.
15405 (scoped_restore_current_thread::scoped_restore_current_thread):
15406 Add assertion.
15407 (thread_apply_all_command, thread_select): Use
15408 switch_to_thread_if_alive.
15409
7f0ae84c
GB
154102020-01-10 George Barrett <bob@bob131.so>
15411
15412 * stap-probe.c (stap_modify_semaphore): Don't check for null
15413 semaphores.
15414 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15415 for null semaphores.
15416
f5a7c406
AB
154172020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15418
15419 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15420 all source windows, and maintain horizontal scroll status while
15421 doing so.
15422
9ae6bf64
TT
154232020-01-09 Tom Tromey <tom@tromey.com>
15424
15425 PR tui/18932:
15426 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15427 update_source_window, not print_source_lines.
15428
b2efe70c
AB
154292020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15430
15431 * tui/tui.c (tui_enable): Register tui hooks after calling
15432 tui_display_main.
15433
5f23a082
CB
154342020-01-09 Christian Biesinger <cbiesinger@google.com>
15435
15436 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15437
3061113b
SM
154382020-01-08 Simon Marchi <simon.marchi@efficios.com>
15439
15440 * thread.c (print_thread_info_1): Fix indentation.
15441
57d75002
CB
154422020-01-09 Christian Biesinger <cbiesinger@google.com>
15443
15444 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15445 unique_xmalloc_ptr outside the if to always free the demangled name.
15446
6a053cb1
TT
154472020-01-08 Tom Tromey <tromey@adacore.com>
15448
15449 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15450 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15451 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15452 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15453 Remove.
15454 (section_offsets): New typedef.
15455 * symtab.c (fixup_section, get_msymbol_address): Update.
15456 * symmisc.c (dump_msymbols): Update.
15457 * symfile.h (relative_addr_info_to_section_offsets)
15458 (symfile_map_offsets_to_segments): Update.
15459 * symfile.c (build_section_addr_info_from_objfile)
15460 (init_objfile_sect_indices): Update.
15461 (struct place_section_arg): Change type of "offsets".
15462 (place_section): Update.
15463 (relative_addr_info_to_section_offsets): Change type of
15464 "section_offsets". Remove "num_sections" parameter.
15465 (default_symfile_offsets, syms_from_objfile_1)
15466 (set_objfile_default_section_offset): Update.
15467 (reread_symbols): No need to preserve section offsets by hand.
15468 (symfile_map_offsets_to_segments): Change type of "offsets".
15469 * stap-probe.c (relocate_address): Update.
15470 * stabsread.h (process_one_symbol): Update.
15471 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15472 (solib_target_relocate_section_addresses): Update.
15473 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15474 Update.
15475 * solib-frv.c (frv_relocate_main_executable): Update.
15476 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15477 * solib-aix.c (solib_aix_get_section_offsets): Change return
15478 type.
15479 (solib_aix_solib_create_inferior_hook): Update.
15480 * remote.c (remote_target::get_offsets): Update.
15481 * psymtab.c (find_pc_sect_psymtab): Update.
15482 * psympriv.h (struct partial_symbol) <address, text_low,
15483 text_high>: Update.
15484 * objfiles.h (obj_section_offset): Update.
15485 (struct objfile) <section_offsets>: Change type.
15486 <num_sections>: Remove.
15487 (objfile_relocate): Update.
15488 * objfiles.c (entry_point_address_query): Update
15489 (relocate_one_symbol): Change type of "section_offsets".
15490 (objfile_relocate1, objfile_relocate1): Change type of
15491 "new_offsets".
15492 (objfile_rebase1): Update.
15493 * mipsread.c (mipscoff_symfile_read): Update.
15494 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15495 parameter.
15496 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15497 (parse_external, psymtab_to_symtab_1): Update.
15498 * machoread.c (macho_symfile_offsets): Update.
15499 * ia64-tdep.c (ia64_find_unwind_table): Update.
15500 * hppa-tdep.c (read_unwind_info): Update.
15501 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15502 * dwarf2read.c (create_addrmap_from_index)
15503 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15504 (process_psymtab_comp_unit_reader, add_partial_symbol)
15505 (add_partial_subprogram, process_full_comp_unit)
15506 (read_file_scope, read_func_scope, read_lexical_block_scope)
15507 (read_call_site_scope, dwarf2_rnglists_process)
15508 (dwarf2_ranges_process, dwarf2_ranges_read)
15509 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15510 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15511 Update.
15512 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15513 Update.
15514 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15515 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15516 (process_one_symbol): Change type of "section_offsets".
15517 * ctfread.c (get_objfile_text_range): Update.
15518 * coffread.c (coff_symtab_read, enter_linenos)
15519 (process_coff_symbol): Update.
15520 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15521 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15522
456e800a
TT
155232020-01-08 Tom Tromey <tromey@adacore.com>
15524
15525 * dwarf2read.c (parse_macro_definition): Use std::string.
15526 (parse_macro_definition): Likewise.
15527
6dfa2fc2
TT
155282020-01-08 Tom Tromey <tromey@adacore.com>
15529
15530 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15531 (ATTR_ALLOC_CHUNK): Remove.
15532
421d1616
TT
155332020-01-08 Tom Tromey <tromey@adacore.com>
15534
15535 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15536
43816ebc
TT
155372020-01-08 Tom Tromey <tromey@adacore.com>
15538
15539 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15540 (dwarf2_compute_name, open_dwo_file): Likewise.
15541 (process_enumeration_scope): Use std::vector.
15542 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15543 (partial_die_info::fixup, dwarf2_start_subfile)
15544 (guess_full_die_structure_name, dwarf2_name): Likewise.
15545 (determine_prefix): Update.
15546 (guess_full_die_structure_name): Make return type const.
15547 (partial_die_full_name): Return unique_xmalloc_ptr.
15548 (DW_FIELD_ALLOC_CHUNK): Remove.
15549
4212d509
TT
155502020-01-07 Tom Tromey <tromey@adacore.com>
15551
15552 PR build/24937:
15553 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15554
06a6207a
JT
155552020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15556
15557 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15558
153d79c4
AB
155592020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15560
15561 * stack.c (print_frame_info): Move disassemble_next_line code
15562 inside source_print block.
15563
66182876
EZ
155642020-01-06 Eli Zaretskii <eliz@gnu.org>
15565
15566 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15567 gdb/signals.h, as we are now using native signal symbols.
15568
cbfa8581
SV
155692020-01-06 Shahab Vahedi <shahab@synopsys.com>
15570
15571 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15572 overflow by an early check of content vs threshold.
aac66a4c 15573 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
15574 Likewise.
15575
3f602821
EZ
155762020-01-06 Eli Zaretskii <eliz@gnu.org>
15577
15578 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15579
a08c904d
JT
155802020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15581
15582 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15583 export table if no section contains it's RVA.
15584
89a65580
EZ
155852020-01-06 Eli Zaretskii <eliz@gnu.org>
15586
15587 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15588
8b7fcda2
HD
155892020-01-06 Hannes Domani <ssbssa@yahoo.de>
15590
15591 * source.c (print_source_lines_base): Set last_line_listed.
15592
a61b4f69
SV
155932020-01-06 Shahab Vahedi <shahab@synopsys.com>
15594
15595 * tui/tui-disasm.c: Remove trailing spaces.
15596
559e7e50
EZ
155972020-01-06 Eli Zaretskii <eliz@gnu.org>
15598 Pedro Alves <palves@redhat.com>
15599
15600 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15601 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15602 (windows_gdb_signal_to_target): New function, uses the above
15603 enumeration to convert GDB internal signal codes to equivalent
15604 Windows codes.
15605 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15606 * windows-nat.c: Include "gdb_wait.h".
15607 (get_windows_debug_event): Extract the fatal exception from the
15608 exit status and convert to the equivalent Posix signal number.
15609 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15610 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15611 * gdbsupport/gdb_wait.c: New file, implements
15612 windows_status_to_termsig.
15613 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15614 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15615
f2302a34
AB
156162020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15617
15618 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15619 show_layout.
15620
6a5206eb
LM
156212020-01-05 Luis Machado <luis.machado@linaro.org>
15622
15623 * aarch64-linux-nat.c
15624 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15625 and bfd_mach_aarch64.
15626
6ec1d75e
PW
156272020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15628
15629 * ui-file.c (stdio_file::can_emit_style_escape)
15630 (tee_file::can_emit_style_escape): Ensure style is used also on
15631 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15632 to gdb_stdout.
15633 * main.c (set_gdb_data_directory): Use file style to output the
15634 warning that the given pathname is not a directory.
15635 * top.c (show_history_filename, gdb_safe_append_history)
15636 (show_gdb_datadir): Use file style.
15637
44f81a76
HD
156382020-01-03 Hannes Domani <ssbssa@yahoo.de>
15639
15640 * solib-target.c (struct lm_info_target):
15641 Change offsets to be a unique_xmalloc_ptr.
15642 (solib_target_relocate_section_addresses): Update.
15643
25057eb0
HD
156442020-01-03 Hannes Domani <ssbssa@yahoo.de>
15645
15646 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15647
6e2118f5
BE
156482020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15649
15650 * MAINTAINERS (Write After Approval): Add myself.
15651
8133c7dc
LM
156522020-01-02 Luis Machado <luis.machado@linaro.org>
15653
15654 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15655 Cell BE architecture.
15656 * target.h (struct target_ops) <thread_architecture>: Likewise.
15657
48189bec
HD
156582020-01-01 Hannes Domani <ssbssa@yahoo.de>
15659
15660 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15661
ead1063b
HD
156622020-01-01 Hannes Domani <ssbssa@yahoo.de>
15663
15664 * MAINTAINERS (Write After Approval): Add myself.
15665
e5d78223
JB
156662020-01-01 Joel Brobecker <brobecker@adacore.com>
15667
15668 * gdbarch.sh: Update copyright year range of generated files.
15669
b811d2c2
JB
156702020-01-01 Joel Brobecker <brobecker@adacore.com>
15671
15672 Update copyright year range in all GDB files.
15673
5f4def5c
JB
156742020-01-01 Joel Brobecker <brobecker@adacore.com>
15675
15676 * copyright.py: Convert to Python 3.
15677
51fd4002
JB
156782020-01-01 Joel Brobecker <brobecker@adacore.com>
15679
15680 * copyright.py: Adapt after move of gnulib directory from gdb
15681 directory to toplevel directory.
15682
5fb651f2
JB
156832020-01-01 Joel Brobecker <brobecker@adacore.com>
15684
15685 * copyright.py (main): Exit if run from the wrong directory.
15686
5dd8bf88
JB
156872020-01-01 Joel Brobecker <brobecker@adacore.com>
15688
15689 * top.c (print_gdb_version): Change copyright year to 2020.
15690
9f71dacb 156912020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 15692
9f71dacb 15693 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 15694
9f71dacb 15695For older changes see ChangeLog-2019.
c906108c
SS
15696\f
15697Local Variables:
15698mode: change-log
15699left-margin: 8
15700fill-column: 74
15701version-control: never
57da7796 15702coding: utf-8
c906108c 15703End:
This page took 3.521323 seconds and 4 git commands to generate.