]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
asan: alpha-vms: buffer overflow
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
3c67532c
JB
12020-10-24 Joel Brobecker <brobecker@adacore.com>
2
3 GDB 10.1 released.
4
8747316e
JB
52020-10-23 Joel Brobecker <brobecker@adacore.com>
6
7 * ada-typeprint.c (ada_print_type): Remove superfluous second call
8 to ada_check_typedef.
9
1a0ea399
AB
102020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
11
12 * f-exp.y (f_parse): Rename to...
13 (f_language::parser): ...this.
14 * f-lang.c (f_get_encoding): Rename to...
15 (f_language::get_encoding): ...this.
16 (f_op_print_tab): Rename to...
17 (f_language::op_print_tab): ...this.
18 (exp_descriptor_f): Rename to...
19 (f_language::exp_descriptor_tab): ...this.
20 (class f_language): Moved to f-lang.h.
21 (f_language::language_arch_info): New function, moved out of class
22 declaration.
23 (f_language::search_name_hash): Likewise.
24 (f_language::lookup_symbol_nonlocal): Likewise.
25 (f_language::get_symbol_name_matcher_inner): Likewise.
26 * f-lang.h: Add 'valprint.h' include.
27 (class f_language): Moved here from f-lang.c.
28 * f-typeprint.c (f_type_print_args): Delete commented out
29 declaration.
30 (f_print_typedef): Rename to...
31 (f_language::print_typedef): ...this.
32 (f_print_type): Rename to...
33 (f_language::print_type): ...this.
34 (f_type_print_varspec_prefix): Delete declaration and rename to...
35 (f_language::f_type_print_varspec_prefix): ...this.
36 (f_type_print_varspec_suffix): Delete declaration and rename to...
37 (f_language::f_type_print_varspec_suffix): ...this.
38 (f_type_print_base): Delete declaration and rename to...
39 (f_language::f_type_print_base): ...this.
40 * f-valprint.c (f_value_print_inner): Rename to...
41 (f_language::value_print_inner): ...this.
42 * parse.c: Delete 'f-lang.h' include.
43
88cefd9b
AB
442020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
45
46 * language.h (language_defn::print_type): Add variable names in
47 declaration, and update header comment.
48
5399db93
AB
492020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
50
51 * ada-lang.c (ada_language::demangle): Rename to...
52 (ada_language::demangle_symbol): ...this.
53 * c-lang.c (cplus_language::demangle): Rename to...
54 (cplus_language::demangle_symbol): ...this.
55 * d-lang.c (d_language::demangle): Rename to...
56 (d_language::demangle_symbol): ...this.
57 * f-lang.c (f_language::demangle): Rename to...
58 (f_language::demangle_symbol): ...this.
59 * go-lang.c (go_language::demangle): Rename to...
60 (go_language::demangle_symbol): ...this.
61 * language.c (language_demangle): Update call to demangle_symbol.
62 (auto_or_unknown_language::demangle): Rename to...
63 (auto_or_unknown_language::demangle_symbol): ...this.
64 * language.h (language_defn::demangle): Rename to...
65 (language_defn::demangle_symbol): ...this.
66 * objc-lang.c (objc_language::demangle): Rename to...
67 (objc_language::demangle_symbol): ...this.
68 * rust-lang.c (rust_language::demangle): Rename to...
69 (rust_language::demangle_symbol): ...this.
70
4b2f86ef
AB
712020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
72
73 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
74 (iterate_over_file_blocks): Replace use of macro with the macros
75 definition.
76
e74b39de
AB
772020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
78
79 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
80 * valprint.c (maybe_print_array_index): Replace use of macro with
81 the macros definition.
82
00c696a6
AB
832020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
84
85 * ada-lang.c (ada_language::print_array_index): Call value_print
86 directly.
87 * language.c (language_defn::print_array_index): Likewise.
88 * language.h (LA_VALUE_PRINT): Delete.
89 * valprint.c (value_print): Call value_print on the
90 current_language directly.
91
d3b67c56
AB
922020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
93
94 * language.h (LA_PRINT_TYPEDEF): Delete.
95 * typeprint.c (typedef_print): Call print_typedef directly on the
96 current_language object.
97
790e2a12
AB
982020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
99
100 * m2-exp.y (m2_parse): Rename to...
101 (m2_language::parser): ...this. Update function signature.
102 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
103 (m2_op_print): Rename to...
104 (m2_language::op_print_tab): ...this, and make const.
105 (exp_descriptor_modula2): Rename to...
106 (m2_language::exp_descriptor_modula2): ...this.
107 (class m2_language): Move to m2-lang.h.
108 (m2_language::language_arch_info): New function, moved out of
109 class declaration.
110 (m2_language::printchar): New function, body from m2_printchar.
111 (m2_language::printstr): New function, moved out of class
112 declaration.
113 (m2_language::emitchar): Likewise.
114 * m2-lang.h (m2_parse): Delete declaration.
115 (m2_print_typedef): Delete declaration.
116 (m2_value_print_inner): Delete declaration.
117 (class m2_language): Class declaration moved from m2-lang.c,
118 larger functions are left in m2-lang.c.
119 * m2-typeprint.c (m2_print_typedef): Rename to...
120 (m2_language::print_typedef): ...this, and update function
121 signature.
122 * m2-valprint.c (m2_value_print_inner): Rename to...
123 (m2_language::value_print_inner): ...this, replace use of
124 LA_PRINT_STRING with a direct call to printstr member function,
125 and update recursive call.
126
b01175fc
AB
1272020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
128
129 * language.c (default_is_string_type_p): Delete, implementation
130 moved into auto_or_unknown_language::is_string_type_p.
131 (unk_op_print_tab): Moved into
132 auto_or_unknown_language::opcode_print_table.
133 (unknown_language_arch_info): Delete, implementation moved into
134 auto_or_unknown_language::language_arch_info.
135 (class auto_or_unknown_language): New class, member functions
136 copied from unknown_language class, with some updates.
137 (class unknown_language): Most member functions moved into
138 auto_or_unknown_language class. Inherit from
139 auto_or_unknown_language class.
140 (class auto_language): Inherit from auto_or_unknown_language.
141 Delete most member functions.
142
1a97fe8c
HD
1432020-10-22 Hannes Domani <ssbssa@yahoo.de>
144
145 * stabsread.c (read_member_functions): Remove gdb_assert.
146
6b9d0dfd
HD
1472020-10-22 Hannes Domani <ssbssa@yahoo.de>
148
149 * gdbtypes.c (init_complex_type): Check target type name.
150
4b4bb603
SM
1512020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
152
153 * target-debug.h (target_debug_print_struct_target_ops_p):
154 Remove.
155 (target_debug_print_async_callback_ftype_p): Remove.
156 (target_debug_print_struct_trace_state_variable_p): Remove.
157 (target_debug_print_struct_traceframe_info_p): Remove.
158 (target_debug_print_VEC__btrace_block_s__pp): Remove.
159 (target_debug_print_enum_btrace_format): Remove.
160 (target_debug_print_enum_info_proc_what): Remove.
161 (target_debug_print_thread_info_pp): Remove.
162
24f5300a
SM
1632020-10-22 Simon Marchi <simon.marchi@efficios.com>
164
165 * target.h (struct target_ops) <make_corefile_notes>:
166 Change return type to unique pointer.
167 * target.c (dummy_make_corefile_notes): Likewise.
168 * exec.c (struct exec_target) <make_corefile_notes>:
169 Likewise.
170 (exec_target::make_corefile_notes): Likewise.
171 * procfs.c (class procfs_target) <make_corefile_notes>:
172 Likewise.
173 (procfs_do_thread_registers): Adjust to unique pointer.
174 (struct procfs_corefile_thread_data): Add constructor.
175 <note_data>: Change type to unique pointer.
176 (procfs_corefile_thread_callback): Adjust to unique pointer.
177 (procfs_target::make_corefile_notes): Change return type to
178 unique pointer.
179 * target-delegates.c: Re-generate.
180 * gcore.c (write_gcore_file_1): Adjust.
181 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
182 New.
183
5fb4027f
TV
1842020-10-22 Tom de Vries <tdevries@suse.de>
185
186 * block.c (find_block_in_blockvector): Make sure the returned block
187 contains pc.
188
4a636814
SM
1892020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
190
191 PR gdb/26693
192 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
193 parameter.
194 (load_cu): Pass existing CU.
195 (process_imported_unit_die): Likewise.
196 (follow_die_offset): Likewise.
197
1bd57575
LM
1982020-10-22 Luis Machado <luis.machado@linaro.org>
199
200 * corelow.c (core_target::xfer_partial): Also check for an empty
201 m_core_unavailable_mappings vector.
202
6b4c676c
AB
2032020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
204
205 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
206 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
207 * f-exp.y (arglist): Allow for a series of subranges.
208 (subrange): Add cases for subranges with strides.
209 * f-lang.c (value_f90_subarray): Catch use of array strides and
210 throw an error.
211 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
212
f2d8e4c5
AB
2132020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
214
215 * expprint.c (print_subexp_standard): Change enum range_type to
216 range_flag and rename variables to match.
217 (dump_subexp_body_standard): Likewise.
218 * expression.h (enum range_type): Rename to...
219 (enum range_flag): ...this.
220 (range_types): Rename to...
221 (range_flags): ...this.
222 * f-lang.c (value_f90_subarray): Change enum range_type to
223 range_flag and rename variables to match.
224 * parse.c (operator_length_standard): Likewise.
225 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
226 range_type to range_flag.
227 * rust-lang.c (rust_evaluate_funcall): Likewise.
228 (rust_range): Likewise.
229 (rust_compute_range): Likewise.
230 (rust_subscript): Likewise.
231
2f1b18db
AB
2322020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
233
234 * expprint.c (print_subexp_standard): Update to reflect changes to
235 enum range_type.
236 (dump_subexp_body_standard): Likewise.
237 * expression.h (enum range_type): Convert to a bit field enum, and
238 make the enum unsigned.
239 * f-exp.y (subrange): Update to reflect changes to enum
240 range_type.
241 * f-lang.c (value_f90_subarray): Likewise.
242 * parse.c (operator_length_standard): Likewise.
243 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
244 * rust-lang.c (rust_range): Likewise.
245 (rust_compute_range): Likewise.
246 (rust_subscript): Likewise.
247
a46d1843
SM
2482020-10-21 Simon Marchi <simon.marchi@efficios.com>
249
250 * infrun.c (displaced_step_in_progress_thread): Fix comment.
251 (displaced_step_in_progress): Fix comment.
252
c21f37a8
SM
2532020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
254
255 * gdbarch.sh (make_corefile_notes): Return unique pointer.
256 * gdbarch.c: Re-generate.
257 * gdbarch.h: Re-generate.
258 * gcore.c (write_gcore_file_1): Adjust.
259 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
260 constructor.
261 <note_data>: Change type to unique pointer.
262 <abort_iteration>: Change type to bool.
263 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
264 (fbsd_collect_thread_registers): Return void, adjust.
265 (struct fbsd_corefile_thread_data): Add construtor.
266 <note_data>: Change type to unique pointer.
267 (fbsd_corefile_thread): Adjust.
268 (fbsd_make_corefile_notes): Return unique pointer, adjust.
269 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
270 to unique pointer, adjust.
271 (struct linux_collect_regset_section_cb_data): Add constructor.
272 <note_data>: Change type to unique pointer.
273 <abort_iteration>: Change type to bool.
274 (linux_collect_thread_registers): Return void, adjust.
275 (struct linux_corefile_thread_data): Add constructor.
276 <note_data>: Change type to unique pointer.
277 (linux_corefile_thread): Adjust.
278 (linux_make_corefile_notes): Return unique pointer, adjust.
279
07fbbd01
SM
2802020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
281
282 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
283 * gdbarch.c: Re-generate.
284 * gdbarch.h: Re-generate.
285 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
286 bool.
287 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
288 Likewise.
289 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
290 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
291 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
292 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
293
39535193
SM
2942020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
295
296 * gdbarch.sh: Make generated predicates return bool.
297 * gdbarch.c: Re-generate.
298 * gdbarch.h: Re-generate.
299
ad523d01
TT
3002020-10-20 Tom Tromey <tom@tromey.com>
301
302 * varobj-iter.h (struct varobj_item): Remove typedef.
303
c4464ade
SM
3042020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
305
306 * infrun.c (currently_stepping): Change int to bool
307 (maybe_software_singlestep): Likewise.
308 (show_stop_on_solib_events): Likewise.
309 (stepping_past_nonsteppable_watchpoint): Likewise.
310 (displaced_step_in_progress_any_inferior): Likewise.
311 (displaced_step_in_progress_thread): Likewise.
312 (keep_going_stepped_thread): Likewise.
313 (thread_still_needs_step_over): Likewise.
314 (start_step_over): Likewise.
315 (do_target_resume): Likewise.
316 (resume_1): Likewise.
317 (clear_proceed_status): Likewise.
318 (thread_still_needs_step_over_bp): Likewise.
319 (proceed): Likewise.
320 (switch_back_to_stepped_thread): Likewise.
321 (adjust_pc_after_break): Likewise.
322 (stepped_in_from): Likewise.
323 (handle_stop_requested): Likewise.
324 (handle_syscall_event): Likewise.
325 (handle_no_resumed): Likewise.
326 (handle_inferior_event): Likewise.
327 (finish_step_over): Likewise.
328 (handle_signal_stop): Likewise.
329 (process_event_stop_test): Likewise.
330
2eb20436
SM
3312020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
332
333 * infrun.c (get_displaced_stepping_state): Fix comment.
334
e0c45ded
AS
3352020-10-20 Andreas Schwab <schwab@linux-m68k.org>
336
337 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
338
22cc388e
TT
3392020-10-19 Tom Tromey <tromey@adacore.com>
340
341 PR tui/26719
342 * tui/tui-winsource.h (struct tui_source_window_base)
343 <refresh_window>: Rename from refresh_pad.
344 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
345 Rename from refresh_pad.
346 (tui_source_window_base::show_source_content)
347 (tui_source_window_base::do_scroll_horizontal): Update.
348
3c6eb4d4
TBA
3492020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
350
351 * thread.c (_initialize_thread): Fine-tune the help text of
352 'info threads'.
353
26703721
TBA
3542020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
355
356 * frame.c: Remove the unused 'uinteger_option_def' type alias.
357
61c26be8
MS
3582020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
359
360 * breakpoint.c (handle_jit_event): Add an argument, change how
361 `jit_event_handler` is called.
362
932539d7
TT
3632020-10-17 Tom Tromey <tom@tromey.com>
364
365 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
366 (scan_xcoff_symtab): Update.
367 * psymtab.h (class psymtab_storage) <global_psymbols,
368 static_psymbols, current_global_psymbols,
369 current_static_psymbols>: Remove.
370 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
371 (match_partial_symbol, lookup_partial_symbol): Update.
372 (print_partial_symbols): Change parameters.
373 (dump_psymtab, recursively_search_psymtabs)
374 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
375 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
376 (concat): Remove.
377 (end_psymtab_common): Simplify.
378 (append_psymbol_to_list): Change parameters.
379 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
380 (init_psymbol_list): Simplify.
381 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
382 * psympriv.h (struct partial_symtab) <empty>: New method.
383 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
384 Remove.
385 <global_psymbols, static_psymbols>: New members.
386 <add_psymbol>: New methods.
387 (add_psymbol_to_list): Don't declare.
388 (psymbol_placement): Move earlier.
389 * mdebugread.c (parse_partial_symbols): Update.
390 (handle_psymbol_enumerators): Change parameters.
391 (mdebug_expand_psymtab): Update.
392 * dwarf2/read.c (process_psymtab_comp_unit_reader)
393 (add_partial_symbol): Update.
394 * dwarf2/index-write.c (write_psymbols): Change parameters.
395 (write_one_signatured_type): Update.
396 (recursively_count_psymbols): Update.
397 (recursively_write_psymbols): Update.
398 (class debug_names) <recursively_write_psymbols>: Update.
399 <write_psymbols>: Change parameters.
400 <write_one_signatured_type>: Update.
401 * dbxread.c (read_dbx_symtab): Update.
402 (dbx_end_psymtab): Use partial_symtab::empty.
403 * ctfread.c (struct ctf_context) <pst>: New member.
404 (create_partial_symtab): Set it.
405 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
406 (scan_partial_symbols): Use the psymtab's context. Update.
407
cfabbd35
TT
4082020-10-17 Tom Tromey <tom@tromey.com>
409
410 * valprint.c (generic_value_print): Remove comment.
411 * m2-valprint.c (m2_value_print_inner): Remove comment.
412 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
413 type.
414
520596f2
TV
4152020-10-17 Tom de Vries <tdevries@suse.de>
416
417 PR symtab/26317
418 * source.c (select_source_symtab): Handling sal.symtab == NULL for
419 symbol main.
420
76547ab3
TV
4212020-10-14 Tom de Vries <tdevries@suse.de>
422
423 PR gdb/26733
424 * solib.c (solib_contains_address_p): Handle
425 'solib->sections == nullptr'.
426
d3a07122
SM
4272020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
428
429 PR gdb/26642
430 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
431 target can't do async.
432 * target.c (target_wait): Assert that we don't pass
433 TARGET_WNOHANG to a target that can't async.
434
1b71cfcf
KR
4352020-10-13 Kamil Rytarowski <n54@gmx.com>
436
437 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
438 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
439 * alpha-bsd-nat.c: Adjust include.
440 * alpha-bsd-tdep.h: Adjust comment.
441 * alpha-nbsd-tdep.c: Rename to ...
442 * alpha-netbsd-tdep.c: ... this, adjust include.
443 * amd64-nbsd-nat.c: Rename to ...
444 * amd64-netbsd-nat.c: ... this, adjust include.
445 * amd64-nbsd-tdep.c: Rename to ...
446 * amd64-netbsd-tdep.c: ... this, adjust include.
447 * amd64-tdep.h: Adjust include.
448 * arm-nbsd-nat.c: Rename to ...
449 * arm-netbsd-nat.c: ... this, adjust include.
450 * arm-nbsd-tdep.c: Rename to ...
451 * arm-netbsd-tdep.c: ... this, adjust include.
452 * arm-nbsd-tdep.h: Rename to ...
453 * arm-netbsd-tdep.h: ... this, adjust include.
454 * configure.nat: Adjust file lists.
455 * configure.tgt: Likewise.
456 * hppa-nbsd-nat.c: Rename to ...
457 * hppa-netbsd-nat.c: ... this, adjust include.
458 * hppa-nbsd-tdep.c: Rename to ...
459 * hppa-netbsd-tdep.c: ... this, adjust include.
460 * i386-nbsd-nat.c: Rename to ...
461 * i386-netbsd-nat.c: ... this, adjust include.
462 * i386-nbsd-tdep.c: Rename to ...
463 * i386-netbsd-tdep.c: ... this, adjust include.
464 * m68k-bsd-nat.c: Adjust include.
465 * mips-nbsd-nat.c: Rename to ...
466 * mips-netbsd-nat.c: ... this, adjust include.
467 * mips-nbsd-tdep.c: Rename to ...
468 * mips-netbsd-tdep.c: ... this, adjust include.
469 * mips-nbsd-tdep.h: Rename to ...
470 * mips-netbsd-tdep.h: ... this.
471 * nbsd-nat.c: Rename to ...
472 * netbsd-nat.c: ... this, adjust include.
473 * nbsd-nat.h: Rename to ...
474 * netbsd-nat.h: ... this, adjust include.
475 * nbsd-tdep.c: Rename to ...
476 * netbsd-tdep.c: ... this, adjust include.
477 * nbsd-tdep.h: Rename to ...
478 * netbsd-tdep.h: ... this.
479 * ppc-nbsd-nat.c: Rename to ...
480 * ppc-netbsd-nat.c: ... this, adjust include.
481 * ppc-nbsd-tdep.c: Rename to ...
482 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
483 * ppc-nbsd-tdep.h: Rename to ...
484 * ppc-netbsd-tdep.h: ... this.
485 * sh-nbsd-nat.c: Rename to ...
486 * sh-netbsd-nat.c: ... this, adjust include.
487 * sh-nbsd-tdep.c: Rename to ...
488 * sh-netbsd-tdep.c: ... this, adjust include.
489 * sparc-nbsd-nat.c: Rename to ...
490 * sparc-netbsd-nat.c: ... this.
491 * sparc-nbsd-tdep.c: Rename to ...
492 * sparc-netbsd-tdep.c: ... this, adjust include.
493 * sparc64-nbsd-nat.c: Rename to ...
494 * sparc64-netbsd-nat.c: ... this.
495 * sparc64-nbsd-tdep.c: Rename to ...
496 * sparc64-netbsd-tdep.c: ... this, adjust include.
497 * sparc64-tdep.h: Adjust comment.
498 * vax-bsd-nat.c: Adjust include.
499 * vax-nbsd-tdep.c: Rename to ...
500 * vax-netbsd-tdep.c: ... this, adjust include.
501
d7a78e5c
TT
5022020-10-12 Tom Tromey <tom@tromey.com>
503
504 * target.h (struct target_ops) <get_section_table>: Update.
505 (target_get_section_table): Update.
506 * target.c (target_get_section_table, target_section_by_addr)
507 (memory_xfer_partial_1): Update.
508 * target-section.h (target_section_table): Now an alias.
509 * target-delegates.c: Rebuild.
510 * target-debug.h (target_debug_print_target_section_table_p):
511 Rename from target_debug_print_struct_target_section_table_p.
512 * symfile.c (build_section_addr_info_from_section_table): Update.
513 * solib.c (solib_map_sections, solib_contains_address_p): Update.
514 * solib-svr4.c (scan_dyntag): Update.
515 * solib-dsbt.c (scan_dyntag): Update.
516 * remote.c (remote_target::remote_xfer_live_readonly_partial):
517 Update.
518 * record-full.c (record_full_core_target::xfer_partial): Update.
519 * progspace.h (struct program_space) <target_sections>: Update.
520 * exec.h (print_section_info): Update.
521 * exec.c (exec_target::close, build_section_table)
522 (add_target_sections, add_target_sections_of_objfile)
523 (remove_target_sections, exec_on_vfork)
524 (section_table_available_memory)
525 (section_table_xfer_memory_partial)
526 (exec_target::get_section_table, exec_target::xfer_partial)
527 (print_section_info, set_section_command)
528 (exec_set_section_address, exec_target::has_memory): Update.
529 * corelow.c (core_target::build_file_mappings)
530 (core_target::xfer_partial, core_target::info_proc_mappings)
531 (core_target::info_proc_mappings): Update.
532 * bfd-target.c (class target_bfd): Update
533
eda214ce
TT
5342020-10-12 Tom Tromey <tom@tromey.com>
535
536 * progspace.c (program_space::~program_space): Don't call
537 clear_section_table.
538 * exec.h (clear_section_table): Don't declare.
539 * exec.c (exec_target::close): Update.
540 (clear_section_table): Remove.
541
91840ee3
TT
5422020-10-12 Tom Tromey <tom@tromey.com>
543
544 * exec.c (add_target_sections_of_objfile): Simplify.
545
2d128614
TT
5462020-10-12 Tom Tromey <tom@tromey.com>
547
548 * solib.c (solib_map_sections): Update.
549 * record-full.c (record_full_core_open_1): Update.
550 * exec.h (build_section_table): Return a target_section_table.
551 * exec.c (exec_file_attach): Update.
552 (build_section_table): Return a target_section_table.
553 * corelow.c (core_target::core_target): Update.
554 * bfd-target.c (target_bfd::target_bfd): Update.
555
bb2a6777
TT
5562020-10-12 Tom Tromey <tom@tromey.com>
557
558 * target.c (target_section_by_addr, memory_xfer_partial_1):
559 Update.
560 * target-section.h (struct target_section_table): Use
561 std::vector.
562 * symfile.h (build_section_addr_info_from_section_table): Take a
563 target_section_table.
564 * symfile.c (build_section_addr_info_from_section_table): Take a
565 target_section_table.
566 * solist.h (struct so_list) <sections>: Change type.
567 <sections_end>: Remove.
568 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
569 (solib_contains_address_p): Update.
570 * solib-svr4.c (scan_dyntag): Update.
571 * solib-dsbt.c (scan_dyntag): Update.
572 * remote.c (remote_target::remote_xfer_live_readonly_partial):
573 Update.
574 * record-full.c (record_full_core_start, record_full_core_end):
575 Remove.
576 (record_full_core_sections): New global.
577 (record_full_core_open_1, record_full_core_target::xfer_partial):
578 Update.
579 * exec.h (build_section_table, section_table_xfer_memory_partial)
580 (add_target_sections): Take a target_section_table.
581 * exec.c (exec_file_attach, clear_section_table): Update.
582 (resize_section_table): Remove.
583 (build_section_table, add_target_sections): Take a
584 target_section_table.
585 (add_target_sections_of_objfile, remove_target_sections)
586 (exec_on_vfork): Update.
587 (section_table_available_memory): Take a target_section_table.
588 (section_table_read_available_memory): Update.
589 (section_table_xfer_memory_partial): Take a target_section_table.
590 (print_section_info, set_section_command)
591 (exec_set_section_address, exec_target::has_memory): Update.
592 * corelow.c (class core_target) <m_core_section_table,
593 m_core_file_mappings>: Remove braces.
594 <~core_target>: Remove.
595 (core_target::core_target): Update.
596 (core_target::~core_target): Remove.
597 (core_target::build_file_mappings)
598 (core_target::xfer_memory_via_mappings)
599 (core_target::xfer_partial, core_target::info_proc_mappings):
600 Update.
601 * bfd-target.c (target_bfd::xfer_partial): Update.
602 (target_bfd::target_bfd): Update.
603 (target_bfd::~target_bfd): Remove.
604
7b466b10
TT
6052020-10-12 Tom Tromey <tom@tromey.com>
606
607 * target.h (struct target_section, struct target_section_table):
608 Move to target-section.h.
609 * target-section.h: New file.
610
87a37e5e
PA
6112020-10-12 Pedro Alves <pedro@palves.net>
612
613 PR exp/26602
614 * valops.c (struct struct_field_searcher): New.
615 (update_search_result): Rename to ...
616 (struct_field_searcher::update_result): ... this. Simplify
617 prototype. Record all found fields.
618 (do_search_struct_field): Rename to ...
619 (struct_field_searcher::search): ... this. Simplify prototype.
620 Maintain stack of visited baseclass path. Call update_result for
621 fields too. Keep searching fields in baseclasses instead of
622 stopping at the first found field.
623 (search_struct_field): Use struct_field_searcher. When looking
624 for fields, report ambiguous access attempts.
625
9370fd51
AB
6262020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
627
628 * frame.c (inside_main_func): Check full symbols as well as
629 minimal symbols.
630
59c8a30b
JB
6312020-10-09 Joel Brobecker <brobecker@adacore.com>
632
633 * ada-lang.c (advance_wild_match): Rewrite the function's
634 description. Change the type of target0, t0 and t1 to char.
635
7c184d33
TT
6362020-10-09 Tom Tromey <tromey@adacore.com>
637
638 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
639
5c4258f4
TT
6402020-10-09 Tom Tromey <tromey@adacore.com>
641
642 * ada-lang.h (ada_encode): Return std::string.
643 * ada-lang.c (ada_encode_1): Return std::string.
644 (ada_encode): Likewise.
645 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
646 Update.
647 * ada-exp.y (block_lookup, write_var_or_type): Update.
648
3d87245c
HD
6492020-10-09 Hannes Domani <ssbssa@yahoo.de>
650
651 PR exp/26714
652 * printcmd.c (print_formatted): Handle void results as
653 unformatted prints.
654
bbb826f5
AB
6552020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
656
657 * arch/aarch32.c (aarch32_create_target_description): Release the
658 target_desc_up as late as possible.
659 * arch/aarch64.c (aarch64_create_target_description): Likewise.
660 * arch/amd64.c (amd64_create_target_description): Likewise.
661 * arch/arc.c (arc_create_target_description): Return a
662 target_desc_up, don't release it.
663 * arch/arc.h (arc_create_target_description): Update declaration.
664 (arc_lookup_target_description): Move target_desc_up into the
665 cache, and return a borrowed pointer.
666 * arch/arm.c (arm_create_target_description): Release the
667 target_desc_up as late as possible.
668 * arch/i386.c (i386_create_target_description): Likewise.
669 * arch/riscv.h (riscv_create_target_description): Update
670 declaration to match definition.
671 * arch/tic6x.c (tic6x_create_target_description): Release the
672 target_desc_up as late as possible.
673
361cb219
AB
6742020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
675
676 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
677 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
678
f5c4b229
JV
6792020-10-09 Jan Vrany <jan.vrany@labware.com>
680
681 * source.c (directory_command): Notify observers that "directories"
682 parameter has changed.
683
b2701685
TT
6842020-10-08 Tom Tromey <tom@tromey.com>
685
686 * cli/cli-cmds.c (print_disassembly): Style function name and
687 addresses. Add _() wrappers.
688
ada508b6
SV
6892020-10-08 Shahab Vahedi <shahab@synopsys.com>
690
691 * NEWS: Mention ARC support in GDBserver.
692
51a948fd
AB
6932020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
694
695 * arch/aarch32.c (aarch32_create_target_description): Release
696 unique_ptr returned from allocate_target_description.
697 * arch/aarch64.c (aarch64_create_target_description): Likewise.
698 * arch/amd64.c (amd64_create_target_description): Likewise.
699 * arch/arc.c (arc_create_target_description): Likewise.
700 * arch/arm.c (arm_create_target_description): Likewise.
701 * arch/i386.c (i386_create_target_description): Likewise.
702 * arch/riscv.c (riscv_create_target_description): Update return
703 type. Handle allocate_target_description returning a unique_ptr.
704 (riscv_lookup_target_description): Update to handle unique_ptr.
705 * arch/tic6x.c (tic6x_create_target_description): Release
706 unique_ptr returned from allocate_target_description.
707 * features/microblaze-with-stack-protect.c: Regenerate.
708 * features/microblaze.c: Regenerate.
709 * features/mips-dsp-linux.c: Regenerate.
710 * features/mips-linux.c: Regenerate.
711 * features/mips64-dsp-linux.c: Regenerate.
712 * features/mips64-linux.c: Regenerate.
713 * features/nds32.c: Regenerate.
714 * features/nios2.c: Regenerate.
715 * features/or1k.c: Regenerate.
716 * features/rs6000/powerpc-32.c: Regenerate.
717 * features/rs6000/powerpc-32l.c: Regenerate.
718 * features/rs6000/powerpc-403.c: Regenerate.
719 * features/rs6000/powerpc-403gc.c: Regenerate.
720 * features/rs6000/powerpc-405.c: Regenerate.
721 * features/rs6000/powerpc-505.c: Regenerate.
722 * features/rs6000/powerpc-601.c: Regenerate.
723 * features/rs6000/powerpc-602.c: Regenerate.
724 * features/rs6000/powerpc-603.c: Regenerate.
725 * features/rs6000/powerpc-604.c: Regenerate.
726 * features/rs6000/powerpc-64.c: Regenerate.
727 * features/rs6000/powerpc-64l.c: Regenerate.
728 * features/rs6000/powerpc-7400.c: Regenerate.
729 * features/rs6000/powerpc-750.c: Regenerate.
730 * features/rs6000/powerpc-860.c: Regenerate.
731 * features/rs6000/powerpc-altivec32.c: Regenerate.
732 * features/rs6000/powerpc-altivec32l.c: Regenerate.
733 * features/rs6000/powerpc-altivec64.c: Regenerate.
734 * features/rs6000/powerpc-altivec64l.c: Regenerate.
735 * features/rs6000/powerpc-e500.c: Regenerate.
736 * features/rs6000/powerpc-e500l.c: Regenerate.
737 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
738 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
739 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
740 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
741 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
742 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
743 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
744 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
745 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
746 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
747 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
748 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
749 * features/rs6000/powerpc-vsx32.c: Regenerate.
750 * features/rs6000/powerpc-vsx32l.c: Regenerate.
751 * features/rs6000/powerpc-vsx64.c: Regenerate.
752 * features/rs6000/powerpc-vsx64l.c: Regenerate.
753 * features/rs6000/rs6000.c: Regenerate.
754 * features/rx.c: Regenerate.
755 * features/s390-gs-linux64.c: Regenerate.
756 * features/s390-linux32.c: Regenerate.
757 * features/s390-linux32v1.c: Regenerate.
758 * features/s390-linux32v2.c: Regenerate.
759 * features/s390-linux64.c: Regenerate.
760 * features/s390-linux64v1.c: Regenerate.
761 * features/s390-linux64v2.c: Regenerate.
762 * features/s390-te-linux64.c: Regenerate.
763 * features/s390-tevx-linux64.c: Regenerate.
764 * features/s390-vx-linux64.c: Regenerate.
765 * features/s390x-gs-linux64.c: Regenerate.
766 * features/s390x-linux64.c: Regenerate.
767 * features/s390x-linux64v1.c: Regenerate.
768 * features/s390x-linux64v2.c: Regenerate.
769 * features/s390x-te-linux64.c: Regenerate.
770 * features/s390x-tevx-linux64.c: Regenerate.
771 * features/s390x-vx-linux64.c: Regenerate.
772 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
773 from allocate_target_description.
774 * target-descriptions.c (allocate_target_description): Update
775 return type.
776 (print_c_tdesc::visit_pre): Release unique_ptr returned from
777 allocate_target_description.
778
485c47e5
TT
7792020-10-07 Tom Tromey <tromey@adacore.com>
780
781 * unittests/search-memory-selftests.c: New file.
782 * Makefile.in (SELFTESTS_SRCS): Add
783 unittests/search-memory-selftests.c.
784
3a135a91
TT
7852020-10-07 Tom Tromey <tromey@adacore.com>
786
787 PR gdb/16930:
788 * findcmd.c (_initialize_mem_search): Mention that the range is
789 inclusive.
790
4a72de73
TT
7912020-10-07 Tom Tromey <tromey@adacore.com>
792
793 * target.h (simple_search_memory): Don't declare.
794 * target.c (simple_search_memory): Move to gdbsupport.
795 (default_search_memory): Update.
796 * remote.c (remote_target::search_memory): Update.
797
a038ffd8
SM
7982020-10-07 Simon Marchi <simon.marchi@efficios.com>
799
800 * Makefile.in (COMPILE): Add CXXFLAGS.
801 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
802 (check-headers): Add CXXFLAGS.
803
cc463201
AK
8042020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
805
806 * arc-linux-tdep.h: New file.
807 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
808 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
809 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
810 arc_linux_gregset, arc_linux_v2_regset,
811 arc_linux_iterate_over_regset_sections,
812 arc_linux_core_read_description): Implement.
813 (arc_linux_init_osabi): Set iterate_over_regset_sections.
814 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
815 (arc_gdbarch_features_create): Add.
816 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
817
e4bd363f
SV
8182020-10-07 Shahab Vahedi <shahab@synopsys.com>
819
820 * arch/arc.h: Rename "arc_gdbarch_features" to
821 "arc_arch_features".
822 * arc-tdep.h: Likewise.
823 * arc-tdep.c: Likewise.
824
b68bef99
TBA
8252020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
826
827 * infcmd.c (attach_command): Remove the redundant call to
828 `clear_proceed_status`.
829
4641551a
KR
8302020-10-07 Kamil Rytarowski <n54@gmx.com>
831
832 * nat/netbsd-nat.c (write_memory, read_memory): Update.
833
91e5e8db
KR
8342020-10-07 Kamil Rytarowski <n54@gmx.com>
835
836 * nat/netbsd-nat.c (write_memory, read_memory): Add.
837 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
838 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
839
64c03bdb
SM
8402020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
841
842 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
843 (_initialize_break_catch_sig): Don't allocate array.
844
31a8f60f
AB
8452020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
846
847 * symtab.c (find_pc_line): Return unmapped addresses when the
848 requested address is also unmapped.
849
9e6dbd8b
SM
8502020-10-05 Simon Marchi <simon.marchi@efficios.com>
851
852 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
853 tui/tui-out.h.
854
a1d217e8
SM
8552020-10-05 Simon Marchi <simon.marchi@efficios.com>
856
857 * amd64-windows-tdep.c (amd64_windows_return_value): Use
858 type::is_vector instead of TYPE_VECTOR.
859
7d144117
SM
8602020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
861
862 * auto-load.c (auto_load_objfile_script_1): Don't use
863 debugfile_holder as temporary variable when stripping drive
864 letter.
865
cd096ec8
HD
8662020-10-05 Hannes Domani <ssbssa@yahoo.de>
867
868 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
869 Add TYPE_CODE_COMPLEX.
870 (amd64_windows_return_value): Fix types returned via XMM0.
871
b58e7f72
AH
8722020-10-05 Alan Hayward <alan.hayward@arm.com>
873
874 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
875 AArch64/ARM maintainers.
876
8d378f27
SM
8772020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
878
879 * NEWS: Mention set/show debug event-loop.
880
d5519913
TT
8812020-10-02 Tom Tromey <tromey@adacore.com>
882
883 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
884 REG_EXTENDED.
885
18b67edc
SM
8862020-10-02 Simon Marchi <simon.marchi@efficios.com>
887
888 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
889 * procfs.c (procfs_inferior_created): Remove.
890 (_initialize_procfs): Don't register procfs_inferior_created.
891
6b01403b
SM
8922020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
893
894 * async-event.c (invoke_async_signal_handlers): Add debug
895 print.
896 (check_async_event_handlers): Likewise.
897 * event-top.c (show_debug_event_loop): New function.
898 (_initialize_event_top): Register "set debug event-loop"
899 setting.
900
ba988419
SM
9012020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
902
903 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
904 * debug.h: Remove.
905 * infrun.c: Include gdbsupport/common-debug.h.
906 * linux-nat.c: Likewise.
907
db20ebdf
SM
9082020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
909
910 * async-event.h (create_async_signal_handler): Add name
911 parameter.
912 (create_async_event_handler): Likewise.
913 * async-event.c (struct async_signal_handler) <name>: New field.
914 (struct async_event_handler) <name>: New field.
915 (create_async_signal_handler): Assign name.
916 (create_async_event_handler): Assign name.
917 * event-top.c (async_init_signals): Pass name when creating
918 handler.
919 * infrun.c (_initialize_infrun): Likewise.
920 * record-btrace.c (record_btrace_push_target): Likewise.
921 * record-full.c (record_full_open): Likewise.
922 * remote-notif.c (remote_notif_state_allocate): Likewise.
923 * remote.c (remote_target::open_1): Likewise.
924 * tui/tui-win.c (tui_initialize_win): Likewise.
925
2554f6f5
SM
9262020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
927
928 * async-event.c (initialize_async_signal_handlers): Pass name to
929 add_file_handler
930 * event-top.c (ui_register_input_event_handler): Likewise.
931 * linux-nat.c (linux_nat_target::async): Likewise.
932 * run-on-main-thread.c (_initialize_run_on_main_thread):
933 Likewise
934 * ser-base.c (reschedule): Likewise.
935 (ser_base_async): Likewise.
936 * tui/tui-io.c: Likewise.
937 * top.h (struct ui) <num>: New field.
938 * top.c (highest_ui_num): New variable.
939 (ui::ui): Initialize num.
940
a7aba266
SM
9412020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
942
943 * observable.h <inferior_created>: Remove parameters. Update all
944 listeners.
945 * inferior.h (post_create_inferior): Remove target parameter.
946 Update all callers.
947
048fde1e 9482020-10-02 Nitika Achra <Nitika.Achra@amd.com>
949
950 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
951 and DW_MACRO_undef_strx.
952 (dwarf_decode_macros): Likewise
953 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
954 which is the value of DW_AT_str_offsets_base.
955 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
956 str_offsets_base.
957
064280be
KR
9582020-10-01 Kamil Rytarowski <n54@gmx.com>
959
960 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
961
6ff33035
KR
9622020-10-01 Kamil Rytarowski <n54@gmx.com>
963
964 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
965 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
966
1eb6eb79
KR
9672020-10-01 Kamil Rytarowski <n54@gmx.com>
968
969 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
970
95eb9e54
TV
9712020-09-30 Tom de Vries <tdevries@suse.de>
972
973 PR symtab/26683
974 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
975
cae21f8e
TT
9762020-09-30 Tom Tromey <tromey@adacore.com>
977
978 * dwarf2/read.c (handle_variant): Use constant_value.
979
529908cb
TT
9802020-09-29 Tom Tromey <tom@tromey.com>
981
982 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
983 (read_file_scope, dwarf2_get_pc_bounds)
984 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
985 (read_structure_type, handle_struct_member_die)
986 (read_enumeration_type, read_array_type, read_set_type)
987 (read_tag_pointer_type, read_tag_reference_type)
988 (read_subroutine_type, read_base_type, read_subrange_type)
989 (read_full_die_1, partial_die_info::read)
990 (partial_die_info::read, by, new_symbol)
991 (dwarf2_const_value_data, dwarf2_const_value_attr)
992 (dump_die_shallow, dwarf2_fetch_constant_bytes)
993 (prepare_one_comp_unit): Update.
994 * dwarf2/attribute.h (DW_UNSND): Remove.
995
c45bc3f8
TT
9962020-09-29 Tom Tromey <tom@tromey.com>
997
998 * dwarf2/read.c (read_func_scope, prototyped_function_p)
999 (read_subroutine_type, partial_die_info::read)
1000 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
1001 (dwarf2_add_member_fn): Update.
1002 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
1003 * dwarf2/attribute.c (attribute::as_boolean): New method.
1004
23dca5c3
TT
10052020-09-29 Tom Tromey <tom@tromey.com>
1006
1007 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
1008 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
1009 method.
1010 * dwarf2/attribute.c (attribute::as_virtuality): New method.
1011
52c14d11
TT
10122020-09-29 Tom Tromey <tom@tromey.com>
1013
1014 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
1015 the attribute's form.
1016
e8e5c158
TT
10172020-09-29 Tom Tromey <tom@tromey.com>
1018
1019 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
1020 (dwarf2_add_member_fn): Update.
1021 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
1022 * dwarf2/attribute.c (attribute::defaulted): New method, from
1023 is_valid_DW_AT_defaulted.
1024
d4df075e
TT
10252020-09-29 Tom Tromey <tom@tromey.com>
1026
1027 * dwarf2/read.c (dw2_get_file_names_reader)
1028 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
1029 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
1030 (dwarf2_symbol_mark_computed): Use as_unsigned.
1031 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
1032 method.
1033 <form_is_section_offset>: Update comment.
1034
bf23a268
TT
10352020-09-29 Tom Tromey <tom@tromey.com>
1036
1037 * dwarf2/read.c (dwarf2_access_attribute): Rename from
1038 dwarf2_default_access_attribute. Look up attribute.
1039 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
1040 Update.
1041
7a5f294d
TT
10422020-09-29 Tom Tromey <tom@tromey.com>
1043
1044 * dwarf2/read.c (skip_one_die): Update.
1045 (read_full_die_1): Change how reprocessing is done.
1046 (partial_die_info::read): Update.
1047 (read_attribute_value): Remove need_reprocess parameter.
1048 (read_attribute): Likewise.
1049 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
1050 New method.
1051
36d378cf
TT
10522020-09-29 Tom Tromey <tom@tromey.com>
1053
1054 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
1055 (dwarf2_const_value_attr, dump_die_shallow)
1056 (dwarf2_fetch_constant_bytes): Update.
1057 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
1058 comment.
1059 <set_address>: New method.
1060 (DW_ADDR): Remove.
1061 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
1062 (attribute::as_string, attribute::as_address): Add assert.
1063
fe56917a
TT
10642020-09-29 Tom Tromey <tom@tromey.com>
1065
1066 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
1067 (read_attribute_reprocess, read_attribute_value): Update.
1068 (read_attribute): Clear requires_reprocessing.
1069 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
1070 form_requires_reprocessing>: New methods.
1071 <string_init>: Clear requires_reprocessing.
1072 <set_unsigned_reprocess>: New method.
1073 <name>: Shrink by one bit.
1074 <requires_reprocessing>: New member.
1075 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
1076 method.
1077
414ad644
TT
10782020-09-29 Tom Tromey <tom@tromey.com>
1079
1080 * dwarf2/read.c (read_attribute_value): Update.
1081 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1082 set_unsigned>: New methods.
1083 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1084
1bc397c5
TT
10852020-09-29 Tom Tromey <tom@tromey.com>
1086
1087 * dwarf2/read.c (get_alignment, read_array_order)
1088 (read_attribute_value, dwarf2_const_value_attr)
1089 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1090 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1091 New methods.
1092 (DW_SND): Remove.
1093
630ed6b9
TT
10942020-09-29 Tom Tromey <tom@tromey.com>
1095
1096 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1097 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1098 Update.
1099 * dwarf2/attribute.h (struct attribute) <as_signature,
1100 set_signature>: New methods.
1101 (DW_SIGNATURE): Remove.
1102
9d2246fc
TT
11032020-09-29 Tom Tromey <tom@tromey.com>
1104
1105 * dwarf2/read.c (read_call_site_scope)
1106 (handle_data_member_location, dwarf2_add_member_fn)
1107 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1108 (partial_die_info::read, read_attribute_value)
1109 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1110 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1111 (dwarf2_symbol_mark_computed): Update.
1112 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1113 methods.
1114 (DW_BLOCK): Remove.
1115 * dwarf2/attribute.c (attribute::form_is_block): Add
1116 DW_FORM_data16.
1117
c6481205
TT
11182020-09-29 Tom Tromey <tom@tromey.com>
1119
1120 * dwarf2/read.c (read_cutu_die_from_dwo)
1121 (read_attribute_reprocess, read_attribute_value, read_attribute)
1122 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1123 (dwarf2_fetch_constant_bytes): Update.
1124 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1125 <set_string_noncanonical, set_string_canonical>: New methods.
1126 <string_is_canonical>: Update comment.
1127 <canonical_string_p>: Add assert.
1128 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1129 * dwarf2/attribute.c (attribute::form_is_string): New method.
1130 (attribute::string): Use it.
1131
3b64bf15
TT
11322020-09-29 Tom Tromey <tom@tromey.com>
1133
1134 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1135 (dump_die_shallow): Use canonical_string_p.
1136 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1137 method.
1138
2c830f54
TT
11392020-09-29 Tom Tromey <tom@tromey.com>
1140
1141 * dwarf2/read.c (partial_die_info::read)
1142 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1143 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1144 attribute::as_string.
1145
6c412691
TT
11462020-09-29 Tom Tromey <tom@tromey.com>
1147
1148 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1149 DW_ADDR.
1150 (attribute::string): Don't use DW_STRING.
1151 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1152 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1153
95f982e5
TT
11542020-09-29 Tom Tromey <tom@tromey.com>
1155
1156 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1157 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1158 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1159 * dwarf2/attribute.h (struct attribute): Rename methods.
1160 * dwarf2/attribute.c (attribute::as_address): Rename from
1161 value_as_address.
1162 (attribute::as_string): Rename from value_as_string.
1163
f800b00e
TT
11642020-09-29 Tom Tromey <tom@tromey.com>
1165
1166 * dwarf2/read.c (partial_die_info::read) <case
1167 DW_AT_linkage_name>: Use value_as_string.
1168 (dwarf2_string_attr): Use value_as_string.
1169 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1170 method.
1171 * dwarf2/attribute.c (attribute::value_as_string): New method.
1172
de38d64a
PA
11732020-09-29 Pedro Alves <pedro@palves.net>
1174
1175 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1176 defined before using '#pragma GCC diagnostic' instead of checking
1177 __clang__.
1178
9aed480c
TT
11792020-09-28 Tom Tromey <tom@tromey.com>
1180
1181 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1182 (handle_signal_stop): Update.
1183 * procfs.c (procfs_target::insert_watchpoint): Update.
1184 * target.h (target_have_steppable_watchpoint): Now a function.
1185
8a3ecb79
TT
11862020-09-28 Tom Tromey <tom@tromey.com>
1187
1188 * infrun.c (set_schedlock_func): Update.
1189 * target.h (target_can_lock_scheduler): Now a function.
1190
55f6301a
TT
11912020-09-28 Tom Tromey <tom@tromey.com>
1192
1193 * inferior.h (class inferior) <has_execution>: Update.
1194 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1195 * valops.c (find_function_in_inferior)
1196 (value_allocate_space_in_inferior): Update.
1197 * top.c (kill_or_detach): Update.
1198 * target.c (target_preopen, set_target_permissions): Update.
1199 (target_has_execution_current): Remove.
1200 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1201 Update.
1202 * solib.c (update_solib_list, reload_shared_libraries): Update.
1203 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1204 * solib-dsbt.c (enable_break): Update.
1205 * score-tdep.c (score7_fetch_inst): Update.
1206 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1207 Update.
1208 * remote.c (remote_target::start_remote)
1209 (remote_target::remote_check_symbols, remote_target::open_1)
1210 (remote_target::remote_detach_1, remote_target::verify_memory)
1211 (remote_target::xfer_partial, remote_target::read_description)
1212 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1213 * record-full.c (record_full_open_1): Update.
1214 * record-btrace.c (record_btrace_target_open): Update.
1215 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1216 (value_nsstring): Update.
1217 * linux-thread-db.c (add_thread_db_info)
1218 (thread_db_find_new_threads_silently, check_thread_db_callback)
1219 (try_thread_db_load_1, record_thread): Update.
1220 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1221 Update.
1222 * linux-fork.c (checkpoint_command): Update.
1223 * infrun.c (set_non_stop, set_observer_mode)
1224 (check_multi_target_resumption, for_each_just_stopped_thread)
1225 (maybe_remove_breakpoints, normal_stop)
1226 (class infcall_suspend_state): Update.
1227 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1228 (info_program_command, attach_command): Update.
1229 * infcall.c (call_function_by_hand_dummy): Update.
1230 * inf-loop.c (inferior_event_handler): Update.
1231 * gcore.c (gcore_command, derive_heap_segment): Update.
1232 * exec.c (exec_file_command): Update.
1233 * eval.c (evaluate_subexp): Update.
1234 * compile/compile.c (compile_to_object): Update.
1235 * cli/cli-dump.c (restore_command): Update.
1236 * breakpoint.c (update_watchpoint)
1237 (update_inserted_breakpoint_locations)
1238 (insert_breakpoint_locations, get_bpstat_thread): Update.
1239 * target.h (target_has_execution): Remove macro.
1240 (target_has_execution_current): Don't declare.
1241 (target_has_execution): Rename from target_has_execution_1. Add
1242 argument default.
1243
05374cfd
TT
12442020-09-28 Tom Tromey <tom@tromey.com>
1245
1246 * mi/mi-main.c (exec_reverse_continue)
1247 (mi_cmd_list_target_features): Update.
1248 * infrun.c (set_exec_direction_func): Update.
1249 * target.c (default_execution_direction): Update.
1250 * reverse.c (exec_reverse_once): Update.
1251 * target.h (target_can_execute_reverse): Now a function.
1252
9dccd06e
TT
12532020-09-28 Tom Tromey <tom@tromey.com>
1254
1255 * tui/tui-regs.c (tui_get_register)
1256 (tui_data_window::show_registers): Update.
1257 * thread.c (scoped_restore_current_thread::restore)
1258 (scoped_restore_current_thread::scoped_restore_current_thread):
1259 Update.
1260 * regcache-dump.c (regcache_print): Update.
1261 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1262 Update.
1263 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1264 * mep-tdep.c (current_me_module, current_options): Update.
1265 * linux-thread-db.c (thread_db_load): Update.
1266 * infcmd.c (registers_info, info_vector_command)
1267 (info_float_command): Update.
1268 * ia64-tdep.c (ia64_frame_prev_register)
1269 (ia64_sigtramp_frame_prev_register): Update.
1270 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1271 * gcore.c (derive_stack_segment): Update.
1272 * frame.c (get_current_frame, has_stack_frames): Update.
1273 * findvar.c (language_defn::read_var_value): Update.
1274 * arm-tdep.c (arm_pc_is_thumb): Update.
1275 * target.c (target_has_registers): Rename from
1276 target_has_registers_1.
1277 * target.h (target_has_registers): Remove macro.
1278 (target_has_registers): Rename from target_has_registers_1.
1279
841de120
TT
12802020-09-28 Tom Tromey <tom@tromey.com>
1281
1282 * windows-tdep.c (tlb_make_value): Update.
1283 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1284 * thread.c (scoped_restore_current_thread::restore)
1285 (scoped_restore_current_thread::scoped_restore_current_thread)
1286 (thread_command): Update.
1287 * stack.c (backtrace_command_1, frame_apply_level_command)
1288 (frame_apply_all_command, frame_apply_command): Update.
1289 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1290 Update.
1291 * gcore.c (derive_stack_segment): Update.
1292 * frame.c (get_current_frame, has_stack_frames): Update.
1293 * auxv.c (info_auxv_command): Update.
1294 * ada-tasks.c (ada_build_task_list): Update.
1295 * target.c (target_has_stack): Rename from target_has_stack_1.
1296 * target.h (target_has_stack): Remove macro.
1297 (target_has_stack): Rename from target_has_stack_1.
1298
a739972c
TT
12992020-09-28 Tom Tromey <tom@tromey.com>
1300
1301 * target.c (target_has_memory): Rename from target_has_memory_1.
1302 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1303 * thread.c (scoped_restore_current_thread::restore)
1304 (scoped_restore_current_thread::scoped_restore_current_thread):
1305 Update.
1306 * frame.c (get_current_frame, has_stack_frames): Update.
1307 * target.h (target_has_memory): Remove macro.
1308 (target_has_memory): Rename from target_has_memory_1.
1309
5b8a4776
TT
13102020-09-28 Tom Tromey <tom@tromey.com>
1311
1312 * target.c (target_has_all_memory_1): Remove.
1313 * target.h (target_has_all_memory): Remove define.
1314 (target_has_all_memory_1): Don't declare.
1315
bd356ec6
SM
13162020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1317
1318 * ser-base.c: Adjust comments formatting.
1319
2c72d5e5
TT
13202020-09-27 Tom Tromey <tom@tromey.com>
1321
1322 PR tui/25342:
1323 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1324
35a98237
TT
13252020-09-27 Tom Tromey <tom@tromey.com>
1326
1327 PR tui/25342:
1328 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1329
9e820dec
TT
13302020-09-27 Tom Tromey <tom@tromey.com>
1331
1332 * unittests/tui-selftests.c: Update.
1333 * tui/tui-winsource.h (struct tui_source_window_base)
1334 <extra_margin, show_line_number, refresh_pad>: New methods.
1335 <m_max_length, m_pad>: New members.
1336 (tui_copy_source_line): Update.
1337 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1338 first_col, line_width, ndigits parameters. Add length.
1339 (tui_source_window_base::show_source_line): Write to pad. Line
1340 number now 0-based.
1341 (tui_source_window_base::refresh_pad): New method.
1342 (tui_source_window_base::show_source_content): Write to pad. Call
1343 refresh_pad.
1344 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1345 not refill.
1346 (tui_source_window_base::update_exec_info): Call
1347 show_line_number.
1348 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1349 method.
1350 <m_digits>: New member.
1351 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1352 and m_max_length.
1353 (tui_source_window::show_line_number): New method.
1354 * tui/tui-io.h (tui_puts): Fix comment.
1355 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1356 m_max_length.
1357
c15c15c8
TT
13582020-09-27 Tom Tromey <tom@tromey.com>
1359
1360 * tui/tui-winsource.c
1361 (tui_source_window_base::set_is_exec_point_at): Don't call
1362 show_source_line.
1363
149830c1
TT
13642020-09-27 Tom Tromey <tom@tromey.com>
1365
1366 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1367 method.
1368 <erase>: Update.
1369 <cursor_x, cursor_y>: Remove.
1370 <m_inner_window>: New member.
1371 (tui_py_window::rerender): Create inner window.
1372 (tui_py_window::output): Write to inner window.
1373
8f9929bb
GR
13742020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1375
1376 PR python/26586
1377 * cli/cli-script.c (execute_control_commands): don't set
1378 instream to nullptr here as this breaks the from_tty argument
1379 to gdb.execute in Python.
1380 (execute_user_command): set instream to nullptr here instead.
1381
956bdb59
SM
13822020-09-25 Simon Marchi <simon.marchi@efficios.com>
1383
1384 * infrun.h (infrun_debug_printf): Fix formatting.
1385 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1386
3b93626b
SJ
13872020-09-25 Saagar Jha <saagar@saagarjha.com>
1388
1389 * compile/compile-object-load.h (struct munmap_list): Add
1390 explicitly-defined move constructor.
1391
b551a89f
TT
13922020-09-24 Tom Tromey <tromey@adacore.com>
1393
1394 PR tui/26638:
1395 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1396 method.
1397 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1398 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1399 (tui_prev_win): Rewrite.
1400
99bb393f
HD
14012020-09-23 Hannes Domani <ssbssa@yahoo.de>
1402
1403 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1404 in WOW64 processes as SIGINT.
1405 * nat/windows-nat.h: Make wow64_process a shared variable.
1406 * windows-nat.c: Remove static wow64_process variable.
1407
20a5fcbd
TT
14082020-09-23 Tom Tromey <tom@tromey.com>
1409
1410 PR symtab/25470:
1411 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1412 offset and bit size.
1413 * printcmd.c (print_scalar_formatted): Handle zero-length
1414 integer.
1415 (print_scalar_formatted): Use bit_size_differs_p.
1416 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1417 constant.
1418 (union type_specific): <int_stuff>: New member.
1419 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1420 methods.
1421 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1422 TYPE_SPECIFIC_FIELD.
1423 (recursive_dump_type, copy_type_recursive): Update.
1424 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1425 DW_AT_data_bit_offset.
1426
bac51ab7
TT
14272020-09-23 Tom Tromey <tom@tromey.com>
1428
1429 * utils.h (class gdb_argv): Add move operators.
1430 <append>: New methods.
1431 * compile/compile.c (build_argc_argv): Remove.
1432 (compile_args_argc): Remove.
1433 (compile_args_argv): Change type.
1434 (set_compile_args): Simplify.
1435 (append_args): Remove.
1436 (filter_args): Remove argcp parameter.
1437 (get_args): Return gdb_argv. Simplify.
1438 (compile_to_object): Update.
1439
92677124
TT
14402020-09-23 Tom Tromey <tom@tromey.com>
1441
1442 * compile/compile-object-run.c (do_module_cleanup)
1443 <~do_module_cleanup> :Remove.
1444 (do_module_cleanup): Update.
1445 * compile/compile-object-load.h (struct munmap_list): Add move
1446 assignment operator.
1447 <source_file>: Now a std::string.
1448 <munmap_list>: Rename. No longer a pointer.
1449 * compile/compile-object-load.c (struct setup_sections_data): Add
1450 constructor.
1451 <setup_one_section>: Declare.
1452 <munmap_list>: Move earlier.
1453 <m_bfd>: New member.
1454 <m_last_size, m_last_section_first, m_last_prot,
1455 m_last_max_alignment>: Rename, add initializers where needed.
1456 (setup_sections_data::setup_one_section): Rename from
1457 setup_sections. Update.
1458 (compile_object_load): Update. Don't use bfd_map_over_sections.
1459
e616f60a
TT
14602020-09-23 Tom Tromey <tom@tromey.com>
1461
1462 * compile/compile-object-run.c (struct do_module_cleanup): Add
1463 parameters to constructor. Update destructor.
1464 <source_file, scope, scope_data, out_value_type, out_value_addr,
1465 munmap_list_head, objfile_name_string>: Remove.
1466 <module>: New member.
1467 (do_module_cleanup): Update.
1468 (compile_object_run): Update.
1469
e947a848
TT
14702020-09-23 Tom Tromey <tom@tromey.com>
1471
1472 * compile/compile.c (eval_compile_command): Update.
1473 * compile/compile-object-run.h (compile_object_run): Take a
1474 compile_module_up.
1475 * compile/compile-object-run.c (compile_object_run): Take a
1476 compile_module_up.
1477 * compile/compile-object-load.h (struct compile_module): Add
1478 constructor, destructor.
1479 (compile_module_up): New typedef.
1480 (compile_object_load): Return compile_object_up.
1481 * compile/compile-object-load.c (compile_object_load): Return
1482 compile_module_up.
1483
0dbf6ee6
TT
14842020-09-23 Tom Tromey <tom@tromey.com>
1485
1486 * compile/compile-object-run.c (struct do_module_cleanup): Add
1487 constructor, destructor.
1488 <objfile_name_string>: Don't use struct hack.
1489 (do_module_cleanup): Use delete.
1490 (compile_object_run): Use new.
1491
ebe824f5
TT
14922020-09-23 Tom Tromey <tom@tromey.com>
1493
1494 * compile/compile-cplus-types.c
1495 (compile_cplus_convert_struct_or_union): Use std::vector.
1496 (compile_cplus_convert_func): Likewise.
1497 * compile/compile-c-types.c (convert_func): Use std::vector.
1498
5dd918d9
TT
14992020-09-21 Tom Tromey <tromey@adacore.com>
1500
1501 * sparc-tdep.c (sparc32_skip_prologue): Use
1502 skip_prologue_using_sal.
1503
5486c517
TT
15042020-09-19 Tom Tromey <tom@tromey.com>
1505
1506 * symfile.c (add_section_size_callback): Remove.
1507 (load_one_section): Rename from load_section_callback. Change
1508 parameters.
1509 (generic_load): Use foreach.
1510
8a6bb1d1
TT
15112020-09-19 Tom Tromey <tom@tromey.com>
1512
1513 * exec.c (add_to_section_table): Remove.
1514 (build_section_table): Use foreach.
1515
08f93a1a
TT
15162020-09-19 Tom Tromey <tom@tromey.com>
1517
1518 * elfread.c (elf_locate_sections): Change parameters.
1519 (elf_symfile_read): Use foreach.
1520
03cd72b8
TT
15212020-09-19 Tom Tromey <tom@tromey.com>
1522
1523 * cli/cli-dump.c (struct callback_data): Remove.
1524 (restore_one_section): Rename from restore_section_callback.
1525 Change parameters.
1526 (restore_binary_file): Change parameters.
1527 (restore_command): Use foreach.
1528
f4f2b85f
TT
15292020-09-19 Tom Tromey <tom@tromey.com>
1530
1531 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1532 (gcore_copy_callback): Likewise.
1533 (gcore_memory_sections): Use foreach.
1534
b35c1d1c
TT
15352020-09-19 Tom Tromey <tom@tromey.com>
1536
1537 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1538 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1539 parameters.
1540 (generic_elf_osabi_sniffer): Use foreach.
1541 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1542 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1543
5bb6e9dd
TT
15442020-09-19 Tom Tromey <tom@tromey.com>
1545
1546 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1547 (dwarf2_get_dwz_file): Use foreach.
1548 (dwarf2_locate_dwo_sections): Change parameters.
1549 (open_and_init_dwo_file): Use foreach.
1550 (dwarf2_locate_common_dwp_sections): Change parameters.
1551 (open_and_init_dwp_file): Use foreach.
1552
ad7277da
TT
15532020-09-19 Tom Tromey <tom@tromey.com>
1554
1555 * symfile.h: (find_lowest_section): Don't declare.
1556 * symfile.c (find_lowest_section): Now static. Change
1557 parameters.
1558 (struct place_section_arg): Remove.
1559 (place_section): Change parameters.
1560 (addr_info_make_relative): Use foreach.
1561 (symfile_dummy_outputs): Remove.
1562 (default_symfile_relocate): Use foreach.
1563
cb814f2e
TT
15642020-09-19 Tom Tromey <tom@tromey.com>
1565
1566 * objfiles.c (add_to_objfile_sections): Rename from
1567 add_to_objfile_sections_full.
1568 (add_to_objfile_sections): Remove.
1569 (build_objfile_section_table): Use foreach.
1570
3cabfd26
TT
15712020-09-19 Tom Tromey <tom@tromey.com>
1572
1573 * stap-probe.c (get_stap_base_address_1): Remove.
1574 (get_stap_base_address): Use foreach.
1575
1ce51eb5
TT
15762020-09-19 Tom Tromey <tom@tromey.com>
1577
1578 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1579 parameters.
1580 (gdb_bfd_close_or_warn): Use foreach.
1581
a190fabb
TT
15822020-09-19 Tom Tromey <tom@tromey.com>
1583
1584 * corelow.c (add_to_thread_list): Change parameters.
1585 (core_target_open): Use foreach.
1586
cafb0d81
TT
15872020-09-19 Tom Tromey <tom@tromey.com>
1588
1589 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1590 existing function.
1591
c8d5abea
AB
15922020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1593
1594 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1595 for arrays.
1596
6d816919
AB
15972020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1598
1599 * eval.c: Remove 'f-lang.h' include.
1600 (value_f90_subarray): Moved to f-lang.c.
1601 (eval_call): Renamed to...
1602 (evaluate_subexp_do_call): ...this, is no longer static, header
1603 comment moved into header file.
1604 (evaluate_funcall): Update call to eval_call.
1605 (skip_undetermined_arglist): Moved to f-lang.c.
1606 (fortran_value_subarray): Likewise.
1607 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1608 moved to evaluate_subexp_f.
1609 (calc_f77_array_dims): Moved to f-lang.c
1610 * expprint.c (print_subexp_funcall): New function.
1611 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1612 moved to print_subexp_f, OP_FUNCALL uses new function.
1613 (dump_subexp_body_funcall): New function.
1614 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1615 moved to dump_subexp_f, OP_FUNCALL uses new function.
1616 * expression.h (evaluate_subexp_do_call): Declare.
1617 * f-lang.c (value_f90_subarray): Moved from eval.c.
1618 (skip_undetermined_arglist): Likewise.
1619 (calc_f77_array_dims): Likewise.
1620 (fortran_value_subarray): Likewise.
1621 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1622 (operator_length_f): Likewise.
1623 (print_subexp_f): Likewise.
1624 (dump_subexp_body_f): Likewise.
1625 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1626 declaration of this operation to here.
1627 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1628 support moved to operator_length_f.
1629 * parser-defs.h (dump_subexp_body_funcall): Declare.
1630 (print_subexp_funcall): Declare.
1631 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1632 fortran-operator.def.
1633
8c37706a
AB
16342020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1635
1636 * eval.c (fortran_value_subarray): New function, content is taken
1637 from...
1638 (evaluate_subexp_standard): ...here, in two places. Now arrays
1639 and strings both call the new function.
1640 (calc_f77_array_dims): Add header comment, handle strings.
1641
14f9473c
VC
16422020-09-18 Victor Collod <vcollod@nvidia.com>
1643
1644 PR gdb/26635
1645 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1646 (i386_analyze_prologue): Call i386_skip_endbr.
1647
b60cea74
TT
16482020-09-18 Tom Tromey <tromey@adacore.com>
1649
1650 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1651 (windows_nat_target::wait): Update.
1652 * target/wait.h (enum target_wait_flag): New. Use
1653 DEF_ENUM_FLAGS_TYPE.
1654 * target/target.h (target_wait): Change type of options.
1655 * target.h (target_options_to_string, default_target_wait):
1656 Update.
1657 (struct target_ops) <wait>: Change type of options.
1658 * target.c (target_wait, default_target_wait, do_option): Change
1659 type of "options".
1660 (target_options_to_string): Likewise.
1661 * target-delegates.c: Rebuild.
1662 * target-debug.h (target_debug_print_target_wait_flags): Rename
1663 from target_debug_print_options.
1664 * sol-thread.c (class sol_thread_target) <wait>: Update.
1665 (sol_thread_target::wait): Update.
1666 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1667 (rs6000_nat_target::wait): Update.
1668 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1669 Update.
1670 (remote_target::wait_ns, remote_target::wait_as): Change type of
1671 "options".
1672 (remote_target::wait): Update.
1673 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1674 (gdbsim_target::wait): Update.
1675 * record-full.c (class record_full_base_target) <wait>: Update.
1676 (record_full_wait_1): Change type of "options".
1677 (record_full_base_target::wait): Update.
1678 * record-btrace.c (class record_btrace_target) <wait>: Update.
1679 (record_btrace_target::wait): Update.
1680 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1681 Update.
1682 (ravenscar_thread_target::wait): Update.
1683 * procfs.c (class procfs_target) <wait>: Update.
1684 (procfs_target::wait): Update.
1685 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1686 * obsd-nat.c (obsd_nat_target::wait): Update.
1687 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1688 (nto_procfs_target::wait): Update.
1689 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1690 * nbsd-nat.c (nbsd_wait): Change type of "options".
1691 (nbsd_nat_target::wait): Update.
1692 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1693 (thread_db_target::wait): Update.
1694 * linux-nat.h (class linux_nat_target) <wait>: Update.
1695 * linux-nat.c (linux_nat_target::wait): Update.
1696 (linux_nat_wait_1): Update.
1697 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1698 "options".
1699 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1700 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1701 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1702 (go32_nat_target::wait): Update.
1703 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1704 * gnu-nat.c (gnu_nat_target::wait): Update.
1705 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1706 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1707 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1708 * darwin-nat.c (darwin_nat_target::wait): Update.
1709 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1710 (bsd_uthread_target::wait): Update.
1711 * aix-thread.c (class aix_thread_target) <wait>: Update.
1712 (aix_thread_target::wait): Update.
1713
0295dde6
AB
17142020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1715
1716 * compile/compile-object-run.c (create_copied_type_recursive): New
1717 function.
1718 (compile_object_run): Use new function.
1719
d3483b43
JT
17202020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1721
1722 * NEWS: Mention x86_64 Cygwin core file support.
1723
e7d612ad
JT
17242020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1725
1726 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1727 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1728
aff9d387
JT
17292020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1730
62a5151b
JT
1731 * windows-tdep.h: Add prototypes.
1732 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1733 (i386_windows_core_pid_to_str): Move and rename ...
1734 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1735 (windows_core_pid_to_str): ... and here.
1736 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1737
17382020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
1739 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1740 (amd64_windows_init_abi_common): ... and register.
1741
7d155da3
JT
17422020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1743
1744 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1745 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1746
e8ef12b9
PA
17472020-09-18 Pedro Alves <pedro@palves.net>
1748
1749 PR gdb/26631
1750 * thread.c (thread_find_command): Switch inferior before calling
1751 target methods.
1752
c1e1314d
TT
17532020-09-17 Tom Tromey <tromey@adacore.com>
1754
1755 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1756 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1757 (tdesc_arch_data_up): New typedef.
1758 (tdesc_use_registers, tdesc_data_alloc): Update.
1759 (tdesc_data_cleanup): Don't declare.
1760 * target-descriptions.c (tdesc_data_alloc): Return a
1761 tdesc_arch_data_up.
1762 (tdesc_arch_data_deleter::operator()): Rename from
1763 tdesc_data_cleanup. Change argument type.
1764 (tdesc_use_registers): Change early_data to an rvalue reference.
1765 (tdesc_use_registers): Don't use delete.
1766 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1767 * s390-tdep.c (s390_gdbarch_init): Update.
1768 * rx-tdep.c (rx_gdbarch_init): Update.
1769 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1770 * riscv-tdep.c (riscv_gdbarch_init): Update.
1771 * or1k-tdep.c (or1k_gdbarch_init): Update.
1772 * nios2-tdep.c (nios2_gdbarch_init): Update.
1773 * nds32-tdep.c (nds32_gdbarch_init): Update.
1774 * mips-tdep.c (mips_gdbarch_init): Update.
1775 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1776 * m68k-tdep.c (m68k_gdbarch_init): Update.
1777 * i386-tdep.c (i386_gdbarch_init): Update.
1778 * arm-tdep.c (arm_gdbarch_init): Update.
1779 * arc-tdep.c (arc_tdesc_init): Update.
1780 (arc_gdbarch_init): Update.
1781 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1782
0363df3d
HD
17832020-09-17 Hannes Domani <ssbssa@yahoo.de>
1784
1785 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1786 for WOW64 processes.
1787
280a9412
TT
17882020-09-17 Tom Tromey <tom@tromey.com>
1789
1790 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1791
6108fd18
TT
17922020-09-17 Tom Tromey <tom@tromey.com>
1793
1794 * value.c (preserve_values): Update.
1795 * python/py-type.c (save_objfile_types): Update.
1796 * guile/scm-type.c (save_objfile_types): Update.
1797 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1798 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1799 * compile/compile-object-run.c (compile_object_run): Update.
1800
fa9b1164
TT
18012020-09-17 Tom Tromey <tom@tromey.com>
1802
1803 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1804 Remove.
1805 <m_table>: Now htab_up.
1806 * typeprint.c (typedef_hash_table::recursively_update)
1807 (typedef_hash_table::add_template_parameters)
1808 (typedef_hash_table::typedef_hash_table): Update.
1809 (typedef_hash_table::~typedef_hash_table): Remove.
1810 (typedef_hash_table::typedef_hash_table)
1811 (typedef_hash_table::find_global_typedef)
1812 (typedef_hash_table::find_typedef): Update.
1813
eb53f105
TT
18142020-09-17 Tom Tromey <tom@tromey.com>
1815
1816 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1817
7a8a5d47
TT
18182020-09-17 Tom Tromey <tom@tromey.com>
1819
1820 * linespec.c (class decode_compound_collector)
1821 <~decode_compound_collector>: Remove.
1822 <m_unique_syms>: Now htab_up.
1823 (decode_compound_collector::operator ()): Update.
1824 (class symtab_collector) <~symtab_collector>: Remove.
1825 <m_symtab_table>: Now htab_up.
1826 (symtab_collector::operator ()): Update.
1827
99032cfc
TT
18282020-09-17 Tom Tromey <tom@tromey.com>
1829
1830 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1831 (filename_seen_cache::clear): Update.
1832 (~filename_seen_cache): Remove.
1833 (filename_seen_cache::seen): Update.
1834 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1835 htab_up.
1836 <~filename_seen_cache>: Remove.
1837 <traverse>: Update.
1838
32580f6d
TT
18392020-09-17 Tom Tromey <tom@tromey.com>
1840
1841 * completer.c (completion_tracker::discard_completions)
1842 (completion_tracker::~completion_tracker)
1843 (completion_tracker::maybe_add_completion)
1844 (completion_tracker::remove_completion)
1845 (completion_tracker::recompute_lowest_common_denominator)
1846 (completion_tracker::build_completion_result): Update.
1847 * completer.h (class completion_tracker) <have_completions>:
1848 Update.
1849 <m_entries_hash>: Now htab_up.
1850
c1fb9836
TT
18512020-09-17 Tom Tromey <tom@tromey.com>
1852
1853 * breakpoint.c (ambiguous_names_p): Use htab_up.
1854
88f07206
TT
18552020-09-17 Tom Tromey <tom@tromey.com>
1856
1857 * auto-load.c (struct auto_load_pspace_info)
1858 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1859 <loaded_script_files, loaded_script_texts>: Change type to
1860 htab_up.
1861 (~auto_load_pspace_info) Remove.
1862 (init_loaded_scripts_info, maybe_add_script_file)
1863 (maybe_add_script_text, auto_load_info_scripts): Update.
1864
9519b2ee
TT
18652020-09-17 Tom Tromey <tromey@adacore.com>
1866
1867 * c-exp.y (name_obstack): Now static.
1868
d2cd4113
CC
18692020-09-17 Chungyi Chi <demonic@csie.io>
1870
1871 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1872
b650a282
SM
18732020-09-16 Simon Marchi <simon.marchi@efficios.com>
1874
1875 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1876 (add_solib_catchpoint): Likewise.
1877 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1878 to bool.
1879 (add_solib_catchpoint): Change int parameter/variable to bool.
1880 (catch_load_or_unload): Likewise.
1881 (init_catchpoint): Likewise.
1882 (create_fork_vfork_event_catchpoint): Likewise.
1883 (catch_fork_command_1): Likewise.
1884 (catch_exec_command_1): Likewise.
1885
4d0bcfcf
SM
18862020-09-16 Simon Marchi <simon.marchi@efficios.com>
1887
1888 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1889 Change instance_flags to m_instance_flags.
1890
fe830662
TT
18912020-09-16 Tom Tromey <tromey@adacore.com>
1892
1893 PR gdb/26598:
1894 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1895
fe5ddfc3
JB
18962020-09-16 John Baldwin <jhb@FreeBSD.org>
1897
1898 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1899 PL_FLAG_EXEC.
1900 (fbsd_nat_target::insert_exec_catchpoint)
1901 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1902 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1903 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1904
e911c666
JB
19052020-09-16 John Baldwin <jhb@FreeBSD.org>
1906
1907 * configure.ac: Remove check for kinfo_getvmmap().
1908 * configure, config.in: Regenerate.
1909 * fbsd-nat.c (fbsd_read_mapping): Remove
1910 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1911 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1912 kinfo_get_vmmap() are always present.
1913
1f17d372
JB
19142020-09-16 John Baldwin <jhb@FreeBSD.org>
1915
1916 * fbsd-nat.c: Always include support for
1917 TARGET_OBJECT_SIGNAL_INFO.
1918
bcb1da7f
JB
19192020-09-16 John Baldwin <jhb@FreeBSD.org>
1920
1921 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1922 sysctl and remove procfs fallback.
1923
5515f729
JB
19242020-09-16 John Baldwin <jhb@FreeBSD.org>
1925
1926 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1927 * fbsd-nat.h: Likewise.
1928
da1df1db
TBA
19292020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1930
1931 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1932 argument.
1933
0e25e767
AB
19342020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1935
1936 * ada-lang.c (ada_language_data): Delete.
1937 (ada_language): Remove references to ada_language_data.
1938 * c-lang.c (c_language_data): Delete.
1939 (c_language): Remove references to c_language_data.
1940 (cplus_language_data): Delete.
1941 (cplus_language): Remove references to cplus_language_data.
1942 (asm_language_data): Delete.
1943 (asm_language): Remove references to asm_language_data.
1944 (minimal_language_data): Delete.
1945 (minimal_language): Remove references to minimal_language_data.
1946 * d-lang.c (d_language_data): Delete.
1947 (d_language): Remove references to d_language_data.
1948 * f-lang.c (f_language_data): Delete.
1949 (f_language): Remove references to f_language_data.
1950 * go-lang.c (go_language_data): Delete.
1951 (go_language): Remove references to go_language_data.
1952 * language.c (unknown_language_data): Delete.
1953 (unknown_language): Remove references to unknown_language_data.
1954 (auto_language_data): Delete.
1955 (auto_language): Remove references to auto_language_data.
1956 * language.h (language_data): Delete struct.
1957 (language_defn): No longer inherit from language_data.
1958 * m2-lang.c (m2_language_data): Delete.
1959 (m2_language): Remove references to m2_language_data.
1960 * objc-lang.c (objc_language_data): Delete.
1961 (objc_language): Remove references to objc_language_data.
1962 * opencl-lang.c (opencl_language_data): Delete.
1963 (opencl_language): Remove references to opencl_language_data.
1964 * p-lang.c (pascal_language_data): Delete.
1965 (pascal_language): Remove references to pascal_language_data.
1966 * rust-lang.c (rust_language_data): Delete.
1967 (rust_language): Remove references to rust_language_data.
1968
b7c6e27d
AB
19692020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1970
1971 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1972 initializer.
1973 (ada_language::opcode_print_table): New member function.
1974 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1975 (c_language::opcode_print_table): New member function.
1976 (cplus_language_data): Remove la_op_print_tab initializer.
1977 (cplus_language::opcode_print_table): New member function.
1978 (asm_language_data): Remove la_op_print_tab initializer.
1979 (asm_language::opcode_print_table): New member function.
1980 (minimal_language_data): Remove la_op_print_tab initializer.
1981 (minimal_language::opcode_print_table): New member function.
1982 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1983 (d_language::opcode_print_table): New member function.
1984 * expprint.c (print_subexp_standard): Update call to
1985 opcode_print_table.
1986 (op_string): Likewise.
1987 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1988 (f_language::opcode_print_table): New member function.
1989 * go-lang.c (go_language_data): Remove la_op_print_tab
1990 initializer.
1991 (go_language::opcode_print_table): New member function.
1992 * language.c (unknown_language_data): Remove la_op_print_tab
1993 initializer.
1994 (unknown_language::opcode_print_table): New member function.
1995 (auto_language_data): Remove la_op_print_tab initializer.
1996 (auto_language::opcode_print_table): New member function.
1997 * language.h (language_data): Remove la_op_print_tab field.
1998 (language_defn::opcode_print_table): Declare new member function.
1999 * m2-lang.c (m2_language_data): Remove la_op_print_tab
2000 initializer.
2001 (m2_language::opcode_print_table): New member function.
2002 * objc-lang.c (objc_language_data): Remove la_op_print_tab
2003 initializer.
2004 (objc_language::opcode_print_table): New member function.
2005 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
2006 initializer.
2007 (opencl_language::opcode_print_table): New member function.
2008 * p-lang.c (pascal_language_data): Remove la_op_print_tab
2009 initializer.
2010 (pascal_language::opcode_print_table): New member function.
2011 * rust-lang.c (rust_language_data): Remove la_op_print_tab
2012 initializer.
2013 (rust_language::opcode_print_table): New member function.
2014
5aba6ebe
AB
20152020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2016
2017 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
2018 (ada_language::expression_ops): New member function.
2019 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
2020 (c_language::expression_ops): New member function.
2021 (cplus_language_data): Remove la_exp_desc initializer.
2022 (cplus_language::expression_ops): New member function.
2023 (asm_language_data): Remove la_exp_desc initializer.
2024 (asm_language::expression_ops): New member function.
2025 (minimal_language_data): Remove la_exp_desc initializer.
2026 (minimal_language::expression_ops): New member function.
2027 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
2028 (d_language::expression_ops): New member function.
2029 * eval.c (evaluate_subexp): Update call to expression_ops.
2030 * expprint.c (print_subexp): Likewise.
2031 (op_name): Likewise.
2032 (dump_subexp_body): Likewise.
2033 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
2034 (f_language::expression_ops): New member function.
2035 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
2036 (go_language::expression_ops): New member function.
2037 * language.c (language_defn::expression_ops): New function.
2038 (unknown_language_data): Remove la_exp_desc initializer.
2039 (auto_language_data): Likewise.
2040 * language.h (language_data): Remove la_exp_desc field.
2041 (language_defn::expression_ops): Declare new member function.
2042 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
2043 (m2_language::expression_ops): New member function.
2044 * objc-lang.c (objc_language_data): Remove la_exp_desc
2045 initializer.
2046 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
2047 initializer.
2048 (opencl_language::expression_ops): New member function.
2049 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
2050 * parse.c (operator_length): Update call to expression_ops.
2051 (exp_iterate): Likewise.
2052 * rust-lang.c (rust_language_data): Remove la_exp_desc
2053 initializer.
2054 (ruse_language::expression_ops): New member function.
2055
b63a3f3f
AB
20562020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2057
2058 * ada-lang.c (ada_language_data): Remove la_varobj_ops
2059 initializer.
2060 (ada_language::varobj_ops): New member function.
2061 * c-lang.c (c_language_data): Remove la_varobj_ops
2062 initializer.
2063 (cplus_language_data): Likewise.
2064 (cplus_language::varobj_ops): New member function.
2065 (asm_language_data): Remove la_varobj_ops initializer.
2066 (minimal_language_data): Likewise.
2067 * d-lang.c (d_language_data): Likewise.
2068 * f-lang.c (f_language_data): Likewise.
2069 * go-lang.c (go_language_data): Likewise.
2070 * language.c (language_defn::varobj_ops): New function.
2071 (unknown_language_data): Remove la_varobj_ops
2072 initializer.
2073 (auto_language_data): Likewise.
2074 * language.h (language_data): Remove la_varobj_ops field.
2075 (language_defn::varobj_ops): Declare new member function.
2076 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
2077 * objc-lang.c (objc_language_data): Likewise.
2078 * opencl-lang.c (opencl_language_data): Likewise.
2079 * p-lang.c (pascal_language_data): Likewise.
2080 * rust-lang.c (rust_language_data): Likewise.
2081 * varobj.c (varobj_create): Update call to varobj_ops.
2082 * varobj.h (default_varobj_ops): Delete define.
2083
1ac14a04
AB
20842020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2085
2086 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2087 initializer.
2088 * c-lang.c (c_language_data): Likewise.
2089 (c_language::macro_expansion): New member function.
2090 (cplus_language_data): Likewise.
2091 (cplus_language::macro_expansion): New member function.
2092 (asm_language_data): Likewise.
2093 (asm_language::macro_expansion): New member function.
2094 (minimal_language_data): Likewise.
2095 (minimal_language::macro_expansion): New member function.
2096 * d-lang.c (d_language_data): Remove la_macro_expansion
2097 initializer.
2098 * f-lang.c (f_language_data): Likewise.
2099 * go-lang.c (go_language_data): Likewise.
2100 * language.c (unknown_language_data): Likewise.
2101 (auto_language_data): Likewise.
2102 * language.h (language_data): Remove la_macro_expansion field.
2103 (language_defn::macro_expansion): New member function.
2104 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2105 initializer.
2106 * objc-lang.c (objc_language_data): Likewise.
2107 (objc_language::macro_expansion): New member function.
2108 * opencl-lang.c (opencl_language_data): Likewise.
2109 (opencl_language::macro_expansion): New member function.
2110 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2111 initializer.
2112 * rust-lang.c (rust_language_data): Likewise.
2113 * symtab.c (default_collect_symbol_completion_matches_break_on):
2114 Update call to macro_expansion.
2115
3a3440fb
AB
21162020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2117
2118 * ada-lang.c (ada_language_data): Remove la_array_ordering
2119 initializer.
2120 * c-lang.c (c_language_data): Likewise.
2121 (cplus_language_data): Likewise.
2122 (asm_language_data): Likewise.
2123 (minimal_language_data): Likewise.
2124 * d-lang.c (d_language_data): Likewise.
2125 * dwarf2/read.c (read_array_order): Update for call to
2126 array_ordering.
2127 * f-lang.c (f_language_data): Remove la_array_ordering
2128 initializer.
2129 (f_language::array_ordering): New member function.
2130 * go-lang.c (go_language_data): Remove la_array_ordering
2131 initializer.
2132 * language.c (unknown_language_data): Likewise.
2133 (auto_language_data): Likewise.
2134 * language.h (language_data): Delete la_array_ordering field.
2135 (language_defn::array_ordering): New member function.
2136 * m2-lang.c (m2_language_data): Remove la_array_ordering
2137 initializer.
2138 * objc-lang.c (objc_language_data): Likewise.
2139 * opencl-lang.c (opencl_language_data): Likewise.
2140 * p-lang.c (pascal_language_data): Likewise.
2141 * rust-lang.c (rust_language_data): Likewise.
2142
0d201fa4
AB
21432020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2144
2145 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2146 initializer.
2147 * c-lang.c (c_language_data): Likewise.
2148 (cplus_language_data): Likewise.
2149 (asm_language_data): Likewise.
2150 (minimal_language_data): Likewise.
2151 * d-lang.c (d_language_data): Likewise.
2152 * f-lang.c (f_language_data): Likewise.
2153 (f_language::case_sensitivity): New member function.
2154 * go-lang.c (go_language_data): Remove la_case_sensitivity
2155 initializer.
2156 * language.c (enum case_mode): Moved here from language.h.
2157 (case_mode): Make static.
2158 (show_case_command): Update for case_sensitivity being a method.
2159 (set_case_command): Likewise.
2160 (set_range_case): Likewise.
2161 (unknown_language_data): Remove la_case_sensitivity initializer.
2162 (auto_language_data): Likewise.
2163 * language.h (case_mode): Delete, move enum declaration to
2164 language.c.
2165 (language_data): Delete la_case_sensitivity field.
2166 (language_defn::case_sensitivity): New member function.
2167 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2168 initializer.
2169 * objc-lang.c (objc_language_data): Likewise.
2170 * opencl-lang.c (opencl_language_data): Likewise.
2171 * p-lang.c (pascal_language_data): Likewise.
2172 * rust-lang.c (rust_language_data): Likewise.
2173
efdf6a73
AB
21742020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2175
2176 * ada-lang.c (ada_language_data): Remove la_range_check
2177 initializer.
2178 * c-lang.c (c_language_data): Likewise.
2179 (cplus_language_data): Likewise.
2180 (asm_language_data): Likewise.
2181 (minimal_language_data): Likewise.
2182 * d-lang.c (d_language_data): Likewise.
2183 * f-lang.c (f_language_data): Likewise.
2184 (f_language::range_checking_on_by_default): New member function.
2185 * go-lang.c (go_language_data): Remove la_range_check initializer.
2186 * language.c (enum range_mode): Moved here from language.h.
2187 (range_mode): Made static.
2188 (show_range_command): Update to use
2189 range_checking_on_by_default.
2190 (set_range_command): Likewise.
2191 (set_range_case): Likewise.
2192 (unknown_language_data): Remove la_range_check initializer.
2193 (auto_language_data): Likewise.
2194 * language.h (range_mode): Delete. Enum definition moved to
2195 language.c.
2196 (language_data): Remove la_range_check field.
2197 (language_defn::range_checking_on_by_default): New member
2198 function.
2199 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2200 (m2_language::range_checking_on_by_default): New member function.
2201 * objc-lang.c (objc_language_data): Remove la_range_check
2202 initializer.
2203 * opencl-lang.c (opencl_language_data): Likewise.
2204 * p-lang.c (pascal_language_data): Likewise.
2205 (pascal_language::range_checking_on_by_default): New member
2206 function.
2207 * rust-lang.c (rust_language_data): Remove la_range_check
2208 initializer.
2209 (rust_language::range_checking_on_by_default): New member
2210 function.
2211
bf92aec5
AB
22122020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2213
2214 * dwarf2/read.c (dwarf2_physname): Remove special case for
2215 language_go.
2216 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2217 member function.
2218
d3355e4d
AB
22192020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2220
2221 * ada-lang.c (ada_language_data): Remove
2222 la_store_sym_names_in_linkage_form_p initializer.
2223 (ada_language::store_sym_names_in_linkage_form_p): New member
2224 function.
2225 * c-lang.c (c_language_data): Remove
2226 la_store_sym_names_in_linkage_form_p initializer.
2227 (c_language::store_sym_names_in_linkage_form_p): New member
2228 function.
2229 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2230 initializer.
2231 (asm_language_data): Likewise.
2232 (asm_language::store_sym_names_in_linkage_form_p): New member
2233 function.
2234 (minimal_language_data): Remove
2235 la_store_sym_names_in_linkage_form_p initializer.
2236 (minimal_language::store_sym_names_in_linkage_form_p): New member
2237 function.
2238 * d-lang.c (d_language_data): Remove
2239 la_store_sym_names_in_linkage_form_p initializer.
2240 * dwarf2/read.c (dwarf2_physname): Update call to
2241 store_sym_names_in_linkage_form_p.
2242 * f-lang.c (f_language_data): Remove
2243 la_store_sym_names_in_linkage_form_p initializer.
2244 * go-lang.c (go_language_data): Remove
2245 la_store_sym_names_in_linkage_form_p initializer.
2246 * language.c (unknown_language_data): Remove
2247 la_store_sym_names_in_linkage_form_p initializer.
2248 (unknown_language::store_sym_names_in_linkage_form_p): New member
2249 function.
2250 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2251 initializer.
2252 (auto_language::store_sym_names_in_linkage_form_p): New member
2253 function.
2254 * language.h (language_data): Remove
2255 la_store_sym_names_in_linkage_form_p member variable.
2256 (language_defn::store_sym_names_in_linkage_form_p): New member
2257 function.
2258 * m2-lang.c (m2_language_data): Remove
2259 la_store_sym_names_in_linkage_form_p initializer.
2260 * objc-lang.c (objc_language_data): Likewise.
2261 * opencl-lang.c (opencl_language_data): Likewise.
2262 * p-lang.c (pascal_language_data): Likewise.
2263 * rust-lang.c (rust_language_data): Likewise.
2264
22c12a6c
AB
22652020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2266
2267 * ada-lang.c (ada_language_data): Remove string_lower_bound
2268 initializer.
2269 * c-lang.c (c_language_data): Likewise.
2270 (cplus_language_data): Likewise.
2271 (asm_language_data): Likewise.
2272 (minimal_language_data): Likewise.
2273 * d-lang.c (d_language_data): Likewise.
2274 * f-lang.c (f_language_data): Likewise.
2275 * go-lang.c (go_language_data): Likewise.
2276 * language.c (unknown_language_data): Likewise.
2277 (auto_language_data): Likewise.
2278 * language.h (language_data): Remove string_lower_bound field.
2279 (language_defn::string_lower_bound): New member function.
2280 * m2-lang.c (m2_language_data): Remove string_lower_bound
2281 initializer.
2282 (m2_language::string_lower_bound): New member function.
2283 * objc-lang.c (objc_language_data): Remove string_lower_bound
2284 initializer.
2285 * opencl-lang.c (opencl_language_data): Likewise.
2286 * p-lang.c (pascal_language_data): Likewise.
2287 * rust-lang.c (rust_language_data): Likewise.
2288 * valops.c (value_cstring): Update call to string_lower_bound.
2289 (value_string): Likewise.
2290 * value.c (allocate_repeated_value): Likewise.
2291
1c236ddd
AB
22922020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2293
2294 * valops.c (value_repeat): Fix incorrect argument name in comment.
2295
67bd3fd5
AB
22962020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2297
2298 * ada-lang.c (ada_language_data): Remove c_style_arrays
2299 initializer.
2300 (ada_language::c_style_arrays_p): New member fuction.
2301 * c-lang.c (c_language_data): Remove c_style_arrays
2302 initializer.
2303 (cplus_language_data): Likewise.
2304 (asm_language_data): Likewise.
2305 (minimal_language_data): Likewise.
2306 * d-lang.c (d_language_data): Likewise.
2307 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2308 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2309 (f_language::c_style_arrays_p): New member function.
2310 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2311 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2312 * language.c (unknown_language_data): Remove c_style_arrays
2313 initializer.
2314 (auto_language_data): Likewise.
2315 * language.h (language_data): Remove c_style_arrays field.
2316 (language_defn::c_style_arrays_p): New member function.
2317 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2318 (m2_language::c_style_arrays_p): New member function.
2319 * objc-lang.c (objc_language_data): Remove c_style_arrays
2320 initializer.
2321 * opencl-lang.c (opencl_language_data): Likewise.
2322 * p-lang.c (pascal_language_data): Likewise.
2323 * rust-lang.c (rust_language_data): Likewise.
2324 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2325 and update local variable to a bool.
2326 * valops.c (value_cast): Update call to c_style_arrays_p.
2327 (value_array): Likewise.
2328 * value.c (coerce_array): Likewise.
2329
85967615
AB
23302020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2331
2332 * ada-lang.c (ada_language_data): Remove la_language initializer.
2333 * c-lang.c (c_language_data): Likewise.
2334 (cplus_language_data): Likewise.
2335 (asm_language_data): Likewise.
2336 (minimal_language_data): Likewise.
2337 * d-lang.c (d_language_data): Likewise.
2338 * f-lang.c (f_language_data): Likewise.
2339 * go-lang.c (go_language_data): Likewise.
2340 * language.c (unknown_language_data): Likewise.
2341 (auto_language_data): Likewise.
2342 * language.h (language_data): Remove la_language field.
2343 (language_defn::language_defn): Initialise la_language field.
2344 (language_defn::la_language): New member variable.
2345 * m2-lang.c (m2_language_data): Remove la_language field.
2346 * objc-lang.c (objc_language_data): Likewise.
2347 * opencl-lang.c (opencl_language_data): Likewise.
2348 * p-lang.c (pascal_language_data): Likewise.
2349 * rust-lang.c (rust_language_data): Likewise.
2350
e171d6f1
AB
23512020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2352
2353 * ada-lang.c (ada_extensions): Delete, moved into
2354 ada_language::filename_extensions.
2355 (ada_language_data): Remove la_filename_extensions initializer.
2356 (ada_language::filename_extensions): New member function.
2357 * c-lang.c (c_extensions): Delete, moved into
2358 c_language::filename_extensions.
2359 (c_language_data): Remove la_filename_extensions initializer.
2360 (c_language::filename_extensions): New member function.
2361 (cplus_extensions): Delete, moved into
2362 cplus_language::filename_extensions.
2363 (cplus_language_data): Remove la_filename_extensions initializer.
2364 (cplus_language::filename_extensions): New member function.
2365 (asm_extensions): Delete, moved into
2366 asm_language::filename_extensions.
2367 (asm_language_data): Remove la_filename_extensions initializer.
2368 (asm_language::filename_extensions): New member function.
2369 (minimal_language_data): Remove la_filename_extensions
2370 initializer.
2371 * d-lang.c (d_extensions): Delete, moved into
2372 d_language::filename_extensions.
2373 (d_language_data): Remove la_filename_extensions initializer.
2374 (d_language::filename_extensions): New member function.
2375 * f-lang.c (f_extensions): Delete, moved into
2376 f_language::filename_extensions.
2377 (f_language_data): Remove la_filename_extensions initializer.
2378 (f_language::filename_extensions): New member function.
2379 * go-lang.c (go_language_data): Remove la_filename_extensions
2380 initializer.
2381 * language.c (add_set_language_command): Update now that
2382 filename_extensions returns a vector.
2383 (unknown_language_data): Remove la_filename_extensions
2384 initializer.
2385 (auto_language_data): Likewise.
2386 * language.h (language_data): Remove la_filename_extensions field.
2387 (language_defn::filename_extensions): New member function.
2388 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2389 initializer.
2390 * objc-lang.c (objc_extensions): Delete, moved into
2391 objc_language::filename_extensions.
2392 (objc_language_data): Remove la_filename_extensions initializer.
2393 (objc_language::filename_extensions): New member function.
2394 * opencl-lang.c (opencl_language_data): Remove
2395 la_filename_extensions initializer.
2396 * p-lang.c (pascal_extensions): Delete, moved into
2397 pascal_language::filename_extensions.
2398 (pascal_language_data): Remove la_filename_extensions initializer.
2399 (pascal_language::filename_extensions): New member function.
2400 * rust-lang.c (rust_extensions): Delete, moved into
2401 rust_language::filename_extensions.
2402 (rust_language_data): Remove la_filename_extensions initializer.
2403 (rust_language::filename_extensions): New member function.
2404 * symfile.c (add_filename_language): Add new assert.
2405
6f7664a9
AB
24062020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2407
2408 * ada-lang.c (ada_language_data): Remove la_name and
2409 la_natural_name initializers.
2410 (ada_language::name): New member function.
2411 (ada_language::natural_name): New member function.
2412 * c-lang.c (c_language_data): Remove la_name and
2413 la_natural_name initializers.
2414 (c_language::name): New member function.
2415 (c_language::natural_name): New member function.
2416 (cplus_language_data): Remove la_name and
2417 la_natural_name initializers.
2418 (cplus_language::name): New member function.
2419 (cplus_language::natural_name): New member function.
2420 (asm_language_data): Remove la_name and
2421 la_natural_name initializers.
2422 (asm_language::name): New member function.
2423 (asm_language::natural_name): New member function.
2424 (minimal_language_data): Remove la_name and
2425 la_natural_name initializers.
2426 (minimal_language::name): New member function.
2427 (minimal_language::natural_name): New member function.
2428 * compile/compile.c (compile_to_object): Update call to
2429 lanugage_defn::name.
2430 * d-lang.c (d_language_data): Remove la_name and
2431 la_natural_name initializers.
2432 (d_language::name): New member function.
2433 (d_language::natural_name): New member function.
2434 * expprint.c (print_subexp_standard): Update call to
2435 language_defn::name.
2436 (dump_raw_expression): Likewise
2437 (dump_prefix_expression): Likewise.
2438 * f-lang.c (f_language_data): Remove la_name and
2439 la_natural_name initializers.
2440 (f_language::name): New member function.
2441 (f_language::natural_name): New member function.
2442 * go-lang.c (go_language_data): Remove la_name and
2443 la_natural_name initializers.
2444 (go_language::name): New member function.
2445 (go_language::natural_name): New member function.
2446 * language.c (show_language_command): Update call to
2447 language_defn::name.
2448 (set_language_command): Likewise.
2449 (language_enum): Likewise.
2450 (language_str): Likewise.
2451 (add_set_language_command): Likewise, use
2452 language_defn::natural_name in the doc string.
2453 (unknown_language_data): Remove la_name and
2454 la_natural_name initializers.
2455 (unknown_language::name): New member function.
2456 (unknown_language::natural_name): New member function.
2457 (auto_language_data): Remove la_name and
2458 la_natural_name initializers.
2459 (auto_language::name): New member function.
2460 (auto_language::natural_name): New member function.
2461 (language_lookup_primitive_type_as_symbol): Update call to
2462 language_defn::name.
2463 * language.h (language_data): Remove la_name and la_natural_name
2464 member variables.
2465 (language_defn::name): New member function.
2466 (language_defn::natural_name): New member function.
2467 * m2-lang.c (m2_language_data): Remove la_name and
2468 la_natural_name initializers.
2469 (m2_language::name): New member function.
2470 (m2_language::natural_name): New member function.
2471 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2472 language_defn::natural_name.
2473 * objc-lang.c (objc_language_data): Remove la_name and
2474 la_natural_name initializers.
2475 (objc_language::name): New member function.
2476 (objc_language::natural_name): New member function.
2477 * opencl-lang.c (opencl_language_data): Remove la_name and
2478 la_natural_name initializers.
2479 (opencl_language::name): New member function.
2480 (opencl_language::natural_name): New member function.
2481 * p-lang.c (pascal_language_data): Remove la_name and
2482 la_natural_name initializers.
2483 (pascal_language::name): New member function.
2484 (pascal_language::natural_name): New member function.
2485 * rust-lang.c (rust_language_data): Remove la_name and
2486 la_natural_name initializers.
2487 (rust_language::name): New member function.
2488 (rust_language::natural_name): New member function.
2489 * symtab.c (lookup_language_this): Update call to
2490 language_defn::name.
2491
5bae7c4e
AB
24922020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2493
2494 * ada-lang.c (ada_language_data): Remove la_name_of_this
2495 initializer.
2496 * ax-gdb.c (gen_expr): Update call to name_of_this.
2497 * c-exp.y (classify_name): Likewise.
2498 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2499 (cplus_language_data): Likewise.
2500 (cplus_language::name_of_this): New member function.
2501 (asm_language_data): Remove la_name_of_this initializer.
2502 (minimal_language_data): Likewise.
2503 * d-lang.c (d_language_data): Likewise.
2504 (d_language::name_of_this): New member function.
2505 * expprint.c (print_subexp_standard): Update call to name_of_this.
2506 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2507 * go-lang.c (go_language_data): Likewise.
2508 * language.c (unknown_language_data): Likewise.
2509 (unknown_language::name_of_this): New member function.
2510 (auto_language_data): Remove la_name_of_this initializer.
2511 (auto_language::name_of_this): New member function.
2512 * language.h (language_data): Delete la_name_of_this member
2513 variable.
2514 (language_defn::name_of_this): New member function.
2515 * m2-lang.c (m2_language_data): Remove la_name_of_this
2516 initializer.
2517 * objc-lang.c (objc_language_data): Likewise.
2518 (objc_language::name_of_this): New member function.
2519 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2520 initializer.
2521 * p-lang.c (pascal_language_data): Likewise.
2522 (pascal_language::name_of_this): New member function.
2523 * rust-lang.c (rust_language_data): Remove la_name_of_this
2524 initializer.
2525 * symtab.c (lookup_language_this): Update call to name_of_this.
2526 (lookup_symbol_aux): Likewise.
2527 * valops.c (value_of_this): Likewise.
2528
22e3f3ed
AB
25292020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2530
2531 * ada-lang.c (ada_language_data): Remove
2532 la_struct_too_deep_ellipsis initializer.
2533 (ada_language::struct_too_deep_ellipsis): New member function.
2534 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2535 initializer.
2536 (cplus_language_data): Likewise.
2537 (asm_language_data): Likewise.
2538 (minimal_language_data): Likewise.
2539 * cp-valprint.c (cp_print_value): Update call to
2540 struct_too_deep_ellipsis.
2541 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2542 initializer.
2543 * f-lang.c (f_language_data): Likewise.
2544 (f_language::struct_too_deep_ellipsis): New member function.
2545 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2546 initializer.
2547 * language.c (unknown_language_data): Likewise.
2548 (auto_language_data): Likewise.
2549 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2550 member variable.
2551 (language_defn::struct_too_deep_ellipsis): New member function.
2552 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2553 initializer.Q
2554 * objc-lang.c (objc_language_data): Likewise.
2555 * opencl-lang.c (opencl_language_data): Likewise.
2556 * p-lang.c (pascal_language_data): Likewise.
2557 * rust-lang.c (rust_language_data): Likewise.
2558 * valprint.c (val_print_check_max_depth): Update call to
2559 struct_too_deep_ellipsis.
2560
ed29e1c7
FW
25612020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2562
2563 * MAINTAINERS (Write After Approval): Add myself.
2564
12d8f940
TT
25652020-09-15 Tom Tromey <tom@tromey.com>
2566
2567 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2568 Remove.
2569
6b5a7bc7
TT
25702020-09-15 Tom Tromey <tom@tromey.com>
2571
2572 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2573 and TYPE_CODE_METHODPTR cases.
2574 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2575 (c_value_print_inner): Update.
2576 * valprint.c (generic_value_print_memberptr): New function, from
2577 c_value_print_memberptr.
2578 (generic_value_print): Use it. Call cplus_print_method_ptr.
2579
47f0e2ff
TT
25802020-09-15 Tom Tromey <tromey@adacore.com>
2581
2582 * python/python-internal.h (PyInt_FromLong): Remove define.
2583 * python/py-value.c (convert_value_from_python): Use
2584 gdb_py_object_from_longest.
2585 * python/py-type.c (typy_get_code): Use
2586 gdb_py_object_from_longest.
2587 * python/py-symtab.c (salpy_get_line): Use
2588 gdb_py_object_from_longest.
2589 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2590 gdb_py_object_from_longest.
2591 * python/py-record.c (recpy_gap_reason_code): Use
2592 gdb_py_object_from_longest.
2593 * python/py-record-btrace.c (recpy_bt_insn_size)
2594 (recpy_bt_func_level, btpy_list_count): Use
2595 gdb_py_object_from_longest.
2596 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2597 gdb_py_object_from_longest. Fix error handling.
2598 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2599 gdb_py_object_from_longest.
2600 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2601 gdb_py_object_from_longest.
2602 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2603 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2604 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2605
512116ce
TT
26062020-09-15 Tom Tromey <tromey@adacore.com>
2607
2608 * python/python.c (gdbpy_parameter_value): Use
2609 gdb_py_object_from_ulongest.
2610
4ab1029c
TT
26112020-09-15 Tom Tromey <tromey@adacore.com>
2612
2613 * python/py-infevents.c (create_register_changed_event_object):
2614 Use gdb_py_object_from_longest.
2615 * python/py-exitedevent.c (create_exited_event_object): Use
2616 gdb_py_object_from_longest.
2617
062534d4
TT
26182020-09-15 Tom Tromey <tromey@adacore.com>
2619
2620 * python/python.c (gdbpy_parameter_value): Use
2621 gdb_py_object_from_longest.
2622 * python/py-type.c (convert_field, typy_range): Use
2623 gdb_py_object_from_longest.
2624 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2625 gdb_py_object_from_longest.
2626 * python/py-lazy-string.c (stpy_get_length): Use
2627 gdb_py_object_from_longest.
2628 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2629 gdb_py_object_from_longest.
2630 * python/py-infevents.c (create_memory_changed_event_object): Use
2631 gdb_py_object_from_longest.
2632 * python/py-inferior.c (infpy_get_num): Use
2633 gdb_py_object_from_longest.
2634 (infpy_get_pid): Likewise.
2635
d1cab987
TT
26362020-09-15 Tom Tromey <tromey@adacore.com>
2637
2638 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2639 defines.
2640 * python/py-value.c (valpy_long): Use
2641 gdb_py_object_from_ulongest.
2642 * python/py-symtab.c (salpy_get_pc): Use
2643 gdb_py_object_from_ulongest.
2644 (salpy_get_last): Likewise.
2645 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2646 gdb_py_object_from_ulongest.
2647 * python/py-lazy-string.c (stpy_get_address): Use
2648 gdb_py_object_from_ulongest.
2649 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2650 * python/py-arch.c (archpy_disassemble): Use
2651 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2652 error handling.
2653
4bde49dc
TT
26542020-09-15 Tom Tromey <tromey@adacore.com>
2655
2656 * python/python-internal.h (gdb_py_long_from_longest): Remove
2657 defines.
2658 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2659 * python/py-type.c (convert_field, typy_get_sizeof): Use
2660 gdb_py_object_from_longest.
2661 * python/py-record-btrace.c (btpy_list_index): Use
2662 gdb_py_object_from_longest.
2663
37431074
TT
26642020-09-15 Tom Tromey <tromey@adacore.com>
2665
2666 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2667 * python/py-record.c (recpy_element_number): Use
2668 gdb_py_object_from_longest.
2669 (recpy_gap_number): Likewise.
2670
cbe25684
TT
26712020-09-15 Tom Tromey <tromey@adacore.com>
2672
2673 * top.c (ui::ui): Update.
2674 (highest_ui_num): Remove.
2675 * top.h (struct ui) <num>: Remove.
2676
db92ac45
TT
26772020-09-15 Tom Tromey <tromey@adacore.com>
2678
2679 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2680 * ui-style.c (ansi_regex_text): Now array.
2681 * rust-exp.y (number_regex_text): Now array.
2682 * linespec.c (linespec_quote_characters): Now array.
2683 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2684 Now arrays.
2685
d2b31b67
SM
26862020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2687
2688 * debuginfod-support.c (debuginfod_client_deleter): New.
2689 (debuginfod_client_up): New.
2690 (debuginfod_init): Return debuginfod_client_up.
2691 (debuginfod_source_query): Adjust.
2692 (debuginfod_debuginfo_query): Adjust.
2693
3246bd8e
SM
26942020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2695
2696 * debuginfod-support.c (debuginfod_source_query): Use
2697 make_unique_xstrdup.
2698
10242f36
SM
26992020-09-14 Simon Marchi <simon.marchi@efficios.com>
2700
2701 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2702 with `type::instance_flags`.
2703
e1044e6a
MM
27042020-09-14 Michael Mullin <masmullin@gmail.com>
2705
2706 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2707 Remove baton parameter.
2708
04902b09
PA
27092020-09-14 Pedro Alves <pedro@palves.net>
2710
2711 * Makefile.in (SELFTESTS_SRCS): Add
2712 unittests/enum-flags-selftests.c.
2713 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2714 btrace_function_flags instead of enum btrace_function_flag.
2715 * compile/compile-c-types.c (convert_qualified): Use
2716 enum_flags::raw.
2717 * compile/compile-cplus-symbols.c (convert_one_symbol)
2718 (convert_symbol_bmsym):
2719 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2720 (compile_cplus_convert_struct_or_union_methods)
2721 (compile_cplus_instance::convert_qualified_base):
2722 * go-exp.y (parse_string_or_char): Add cast to int.
2723 * unittests/enum-flags-selftests.c: New file.
2724 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2725 type to btrace_thread_flags from btrace_thread_flag.
2726 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2727 local's type to btrace_thread_flags from btrace_thread_flag. Add
2728 cast in DEBUG call.
2729
69896a2c
PA
27302020-09-14 Pedro Alves <pedro@palves.net>
2731
2732 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2733 * gdbtypes.c (address_space_name_to_int): Rename to ...
2734 (address_space_name_to_type_instance_flags): ... this.
2735 (address_space_int_to_name): Rename to ...
2736 (address_space_type_instance_flags_to_name): ... this.
2737 * gdbtypes.h (address_space_name_to_int): Rename to ...
2738 (address_space_name_to_type_instance_flags): ... this.
2739 (address_space_int_to_name): Rename to ...
2740 (address_space_type_instance_flags_to_name): ... this.
2741 * type-stack.c (type_stack::insert): Adjust to rename.
2742 * type-stack.h (type_stack::insert): Likewise.
2743
314ad88d
PA
27442020-09-14 Pedro Alves <pedro@palves.net>
2745 Andrew Burgess <andrew.burgess@embecosm.com>
2746
2747 * avr-tdep.c (avr_address_class_type_flags): Return
2748 type_instance_flags.
2749 (avr_address_class_type_flags_to_name): Take a
2750 type_instance_flags.
2751 (avr_address_class_name_to_type_flags): Return bool and take a
2752 type_instance_flags.
2753 * d-lang.c (build_d_types): Use type::set_instance_flags.
2754 * ft32-tdep.c (ft32_address_class_type_flags): Return
2755 type_instance_flags.
2756 (ft32_address_class_type_flags_to_name): Take a
2757 type_instance_flags.
2758 (ft32_address_class_name_to_type_flags): Return bool and take a
2759 type_instance_flags.
2760 (ft32_gdbarch_init): Use type::set_instance_flags.
2761 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2762 * gdbarch.h, gdbarch.c: Regenerate.
2763 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2764 (address_class_name_to_type_flags): Use type_instance_flags and
2765 bool.
2766 * gdbtypes.c (address_space_name_to_int)
2767 (address_space_int_to_name, make_qualified_type): Use
2768 type_instance_flags.
2769 (make_qualified_type): Use type_instance_flags and
2770 type::set_instance_flags.
2771 (make_type_with_address_space, make_cv_type, make_vector_type)
2772 (check_typedef): Use type_instance_flags.
2773 (recursive_dump_type): Cast type_instance_flags to unsigned for
2774 printing.
2775 (copy_type_recursive): Use type::set_instance_flags.
2776 (gdbtypes_post_init): Use type::set_instance_flags.
2777 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2778 <m_instance_flags>: ... this.
2779 <instance_flags, set_instance_flags>: New methods.
2780 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2781 (SET_TYPE_INSTANCE_FLAGS): New.
2782 (address_space_name_to_int, address_space_int_to_name)
2783 (make_type_with_address_space): Pass flags using
2784 type_instance_flags instead of int.
2785 * stabsread.c (cleanup_undefined_types_noname): Use
2786 type::set_instance_flags.
2787 * s390-tdep.c (s390_address_class_type_flags): Return
2788 type_instance_flags.
2789 (s390_address_class_type_flags_to_name): Take a
2790 type_instance_flags.
2791 (s390_address_class_name_to_type_flags): Return bool and take a
2792 type_instance_flags.
2793 * type-stack.c (type_stack::follow_types): Use
2794 type_instance_flags.
2795 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2796
27087b7f
TT
27972020-09-14 Tom Tromey <tromey@adacore.com>
2798
2799 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2800 * x86-tdep.c (x86_is_thunk_register_name)
2801 (x86_in_indirect_branch_thunk): Update.
2802 * sparc64-tdep.c (sparc64_fpu_register_names)
2803 (sparc64_cp0_register_names, sparc64_register_names)
2804 (sparc64_pseudo_register_names): Now const.
2805 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2806 cp0_registers_num>: Now const.
2807 * sparc-tdep.c (sparc_core_register_names)
2808 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2809 (sparc32_pseudo_register_names): Now const.
2810 (validate_tdesc_registers): Update.
2811 * rust-lang.c (rust_extensions): Now const.
2812 * p-lang.c (p_extensions): Now const.
2813 * objc-lang.c (objc_extensions): Now const.
2814 * nto-tdep.c (nto_thread_state_str): Now const.
2815 * moxie-tdep.c (moxie_register_names): Now const.
2816 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2817 Now const.
2818 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2819 (mips_linux_reg_names): Now const.
2820 (mips_gdbarch_init): Update.
2821 * microblaze-tdep.c (microblaze_register_names): Now const.
2822 * m68k-tdep.c (m68k_register_names): Now const.
2823 * m32r-tdep.c (m32r_register_names): Now const.
2824 * ia64-tdep.c (ia64_register_names): Now const.
2825 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2826 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2827 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2828 ymm_avx512_register_names, pkeys_register_names>: Now const.
2829 * i386-tdep.c (i386_register_names, i386_zmm_names)
2830 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2831 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2832 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2833 * f-lang.c (f_extensions): Now const.
2834 * d-lang.c (d_extensions): Now const.
2835 * csky-tdep.c (csky_register_names): Now const.
2836 * charset.c (default_charset_names, charset_enum): Now const.
2837 (_initialize_charset): Update.
2838 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2839 const.
2840 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2841 (bsd_uthread_solib_loaded): Update.
2842 (bsd_uthread_state): Now const.
2843 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2844 (amd64_ymm_avx512_names, amd64_ymmh_names)
2845 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2846 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2847 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2848 (amd64_dword_names): Now const.
2849 * agent.c (can_use_agent_enum): Now const.
2850 * ada-tasks.c (task_states, long_task_states): Now const.
2851 * ada-lang.c (known_runtime_file_name_patterns)
2852 (known_auxiliary_function_name_patterns, attribute_names)
2853 (standard_exc, ada_extensions): Now const.
2854
89806626
SM
28552020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2856
2857 * bcache.h (struct bcache) <bcache>: Remove constructor.
2858 <m_hash_function, m_compare_function>: Remove.
2859 <~bcache>: Make virtual.
2860 <compare>: Remove static method, introduce virtual method.
2861 <default_hash>: Remove.
2862 <hash>: New virtual method.
2863 * bcache.c (bcache::expand_hash_table): Update.
2864 (bcache::insert): Update.
2865 (bcache::hash): New.
2866 (bcache::compare): Update comment and parameter names.
2867 * gdbtypes.c (types_deeply_equal): Update.
2868 * psymtab.h (struct psymbol_bcache): New struct.
2869 (class psymtab_storage) <psymtab_storage>: Make default.
2870 <psymbol_cache>: Change type to psymbol_bcache.
2871 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2872 (psymbol_hash): Change to...
2873 (psymbol_bcache::hash): ... this.
2874 (psymbol_compare): Change to...
2875 (psymbol_bcache::compare): ... this.
2876
677c92fe
SM
28772020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2878
2879 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2880 checking for initial lwp.
2881
3eba3a01
TT
28822020-09-14 Tom Tromey <tromey@adacore.com>
2883
2884 * m68k-tdep.c (m68k_extract_return_value): Use
2885 pointer_result_regnum.
2886 (m68k_store_return_value): Likewise.
2887 (m68k_reg_struct_return_p): Handle vectors and arrays.
2888 (m68k_return_value): Handle arrays.
2889 (m68k_svr4_return_value): Fix single-element aggregate handling.
2890 Handle long double. Adjust for embedded ABI.
2891 (m68k_svr4_init_abi): Set pointer_result_regnum.
2892 (m68k_embedded_init_abi): New function.
2893 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2894 (m68k_osabi_sniffer): New function.
2895 (_initialize_m68k_tdep): Register osabi sniffer.
2896 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2897 member.
2898
33f4dd48
SM
28992020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2900
2901 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2902 with gdb::unique_xmalloc_ptr<char>.
2903
8400a90d
SM
29042020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2905
2906 * xml-support.h (xml_fetch_another): Change type to be a
2907 function_view.
2908 (xml_process_xincludes): Remove baton parameter.
2909 (xml_fetch_content_from_file): Change baton parameter to
2910 dirname.
2911 * xml-support.c (struct xinclude_parsing_data)
2912 <xinclude_parsing_data>: Remove baton parameter.
2913 <fetcher_baton>: Remove.
2914 (xinclude_start_include): Adjust.
2915 (xml_process_xincludes): Adjust.
2916 (xml_fetch_content_from_file): Replace baton parameter with
2917 dirname.
2918 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2919 (xml_init_syscalls_info): Use a lambda.
2920 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2921 (file_read_description_xml): Use a lambda.
2922 (fetch_available_features_from_target): Change baton parameter
2923 to target_ops.
2924 (target_read_description_xml): Use a lambda.
2925 (target_fetch_description_xml): Use a lambda.
2926 (string_read_description_xml): Update.
2927
04f5bab2
SM
29282020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2929
2930 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2931 uses with type::endianity_is_not_default.
2932
db558e34
SM
29332020-09-14 Simon Marchi <simon.marchi@efficios.com>
2934
2935 * gdbtypes.h (struct type) <endianity_is_not_default,
2936 set_endianity_is_not_default>: New methods.
2937 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2938 type::endianity_is_not_default, change all write call sites to
2939 use type::set_endianity_is_not_default.
2940
22c4c60c
SM
29412020-09-14 Simon Marchi <simon.marchi@efficios.com>
2942
2943 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2944 uses with type::is_fixed_instance.
2945
9cdd0d12
SM
29462020-09-14 Simon Marchi <simon.marchi@efficios.com>
2947
2948 * gdbtypes.h (struct type) <is_fixed_instance,
2949 set_is_fixed_instance>: New methods.
2950 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2951 write call sites to use type::set_is_fixed_instance.
2952
0becda7a
SM
29532020-09-14 Simon Marchi <simon.marchi@efficios.com>
2954
2955 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2956 uses with type::is_gnu_ifunc.
2957
03cc7249
SM
29582020-09-14 Simon Marchi <simon.marchi@efficios.com>
2959
2960 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2961 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2962 use type::set_is_gnu_ifunc.
2963
3f46044c
SM
29642020-09-14 Simon Marchi <simon.marchi@efficios.com>
2965
2966 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2967 uses with type::stub_is_supported.
2968
9baccff6
SM
29692020-09-14 Simon Marchi <simon.marchi@efficios.com>
2970
2971 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2972 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2973 use type::set_stub_is_supported.
2974
bd63c870
SM
29752020-09-14 Simon Marchi <simon.marchi@efficios.com>
2976
2977 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2978 uses with type::is_vector.
2979
2062087b
SM
29802020-09-14 Simon Marchi <simon.marchi@efficios.com>
2981
2982 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2983 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2984 use type::set_is_vector.
2985
a409645d
SM
29862020-09-14 Simon Marchi <simon.marchi@efficios.com>
2987
2988 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2989 uses with type::has_varargs.
2990
1d6286ed
SM
29912020-09-14 Simon Marchi <simon.marchi@efficios.com>
2992
2993 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2994 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2995 use type::set_has_varargs.
2996
7f9f399b
SM
29972020-09-14 Simon Marchi <simon.marchi@efficios.com>
2998
2999 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
3000 uses with type::is_prototyped.
3001
27e69b7a
SM
30022020-09-14 Simon Marchi <simon.marchi@efficios.com>
3003
3004 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
3005 New methods.
3006 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
3007 call sites to use type::set_is_prototyped.
3008
d2183968
SM
30092020-09-14 Simon Marchi <simon.marchi@efficios.com>
3010
3011 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
3012 uses with type::target_is_stub.
3013
8f53807e
SM
30142020-09-14 Simon Marchi <simon.marchi@efficios.com>
3015
3016 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
3017 New methods.
3018 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
3019 sites to use type::set_target_is_stub.
3020
e46d3488
SM
30212020-09-14 Simon Marchi <simon.marchi@efficios.com>
3022
3023 * gdbtypes.h (TYPE_STUB): Remove, replace all
3024 uses with type::is_stub.
3025
b4b73759
SM
30262020-09-14 Simon Marchi <simon.marchi@efficios.com>
3027
3028 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
3029 (TYPE_STUB): Use type::is_stub, change all write call sites to
3030 use type::set_is_stub.
3031
20ce4123
SM
30322020-09-14 Simon Marchi <simon.marchi@efficios.com>
3033
3034 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
3035 type::has_no_signedness.
3036
15152a54
SM
30372020-09-14 Simon Marchi <simon.marchi@efficios.com>
3038
3039 * gdbtypes.h (struct type) <has_no_signedness,
3040 set_has_no_signedness>: New methods.
3041 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
3042 call sites to use type::set_has_no_signedness.
3043
c6d940a9
SM
30442020-09-14 Simon Marchi <simon.marchi@efficios.com>
3045
3046 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
3047 type::is_unsigned.
3048
653223d3
SM
30492020-09-14 Simon Marchi <simon.marchi@efficios.com>
3050
3051 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
3052 methods.
3053 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
3054 sites to use type::set_is_unsigned.
3055
55ea94da 30562020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 3057 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 3058
e851246a
SM
3059 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
3060 pointer and stack frame offset when unwinding.
55ea94da 3061
6791b117
PA
30622020-09-13 Pedro Alves <pedro@palves.net>
3063
3064 * NEWS: Document "-break-insert --qualified".
3065 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
3066
77f2120b
PA
30672020-09-13 Pedro Alves <pedro@palves.net>
3068
3069 * linespec.c (classify_mtype, compare_msyms): Delete.
3070 (search_minsyms_for_name): Remove classification logic. Instead
3071 filter out trampoline symbols if we also found an external
3072 function of the same name.
3073
ed6a896c
JB
30742020-09-13 Joel Brobecker <brobecker@adacore.com>
3075
3076 * NEWS: Create a new section for the next release branch.
3077 Rename the section of the current branch, now that it has
3078 been cut.
3079
32aea73e
JB
30802020-09-13 Joel Brobecker <brobecker@adacore.com>
3081
3082 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3083 * version.in: Bump version to 11.0.50.DATE-git.
3084
8087c3fa
JB
30852020-09-12 Joel Brobecker <brobecker@adacore.com>
3086
3087 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3088
2a67f09d
FW
30892020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3090 Felix Willgerodt <Felix.Willgerodt@intel.com>
3091
3092 * gdbarch.sh: Added bfloat16 type.
3093 * gdbarch.c: Regenerated.
3094 * gdbarch.h: Regenerated.
3095 * gdbtypes.c (floatformats_bfloat16): New struct.
3096 (gdbtypes_post_init): Add builtin_bfloat16.
3097 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3098 (floatformats_bfloat16): New struct.
3099 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3100 (i386_ymm_type): Add field "v16_bfloat16"
3101 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3102 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3103 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3104 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3105 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3106 * features/i386/64bit-avx512.c: Regenerated.
3107 * features/i386/64bit-sse.xml: Add bfloat16 type.
3108 * features/i386/64bit-sse.c: Regenerated.
3109
1347d111
FW
31102020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3111
3112 * i386-tdep.c (i386_zmm_type): Fix field names.
3113 (i386_ymm_type): Fix field names.
3114
7a4e8e7d
TBA
31152020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3116
3117 * breakpoint.c: Fix typo in the help message of the
3118 "set breakpoint condition-evaluation" command.
3119
cf4ac4be
KR
31202020-09-10 Kamil Rytarowski <n54@gmx.com>
3121
3122 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3123 * (nbsd_nat_target::pid_to_exec_file)
3124 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3125 (nbsd_nat_target::post_startup_inferior)
3126 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3127 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3128 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3129 * (nbsd_thread_lister): Remove.
3130
f404573e
KR
31312020-09-10 Kamil Rytarowski <n54@gmx.com>
3132
3133 * fork-inferior.c (startup_inferior): Avoid double free.
3134
1ccb2c17
KR
31352020-09-10 Kamil Rytarowski <n54@gmx.com>
3136
3137 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3138 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3139
feedfcc7
KR
31402020-09-10 Kamil Rytarowski <n54@gmx.com>
3141
3142 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3143 * netbsd-nat.c: Include <sys/ptrace.h>.
3144 * (netbsd_nat::enable_proc_events): Add.
3145
c489f8c6
KR
31462020-09-10 Kamil Rytarowski <n54@gmx.com>
3147
3148 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3149 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3150 (netbsd_nat::for_each_thread): Add.
3151 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3152 "gdbsupport/common-debug.h".
3153 * (netbsd_nat::netbsd_thread_lister)
3154 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3155 (netbsd_nat::for_each_thread): Add.
3156
330662f6
KR
31572020-09-10 Kamil Rytarowski <n54@gmx.com>
3158
3159 * netbsd-nat.h: Include <unistd.h>.
3160 * (netbsd_nat::pid_to_exec_file): Add.
3161 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3162 * (netbsd_nat::pid_to_exec_file) Add.
3163
70b67307
KR
31642020-09-10 Kamil Rytarowski <n54@gmx.com>
3165
3166 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3167
99cf6da6
KR
31682020-09-10 Kamil Rytarowski <n54@gmx.com>
3169
3170 * netbsd-nat.h: New file.
3171 * netbsd-nat.c: Likewise.
3172
1b788fb6
TT
31732020-09-09 Tom Tromey <tromey@adacore.com>
3174
3175 * ada-lang.c (remove_extra_symbols): Do not increment when
3176 removing an element
3177
03b0a45f
TT
31782020-09-08 Tom Tromey <tromey@adacore.com>
3179
3180 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3181
3cae4447
TT
31822020-09-08 Tom Tromey <tromey@adacore.com>
3183
3184 PR win32/25302:
3185 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3186 (gdb_bfd_init_data): New function.
3187 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3188
7f08fd51
TBA
31892020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3190
3191 * infrun.c (fetch_inferior_event): Use
3192 `switch_to_target_no_thread` to switch the target.
3193
3e6ff933
TT
31942020-09-06 Tom Tromey <tom@tromey.com>
3195
3196 * symfile.h (dwarf2_free_objfile): Don't declare.
3197
e56798df
AKS
31982020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3199
3200 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3201 to match 16 byte real/complex type generated by Flang compiler.
3202
8f5c6526
TV
32032020-09-03 Tom de Vries <tdevries@suse.de>
3204
3205 PR breakpoint/26546
3206 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3207 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3208
c5065df0
SM
32092020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3210
3211 * maint.c (index_digits): New function.
3212 (struct maint_print_section_data): Remove.
3213 (print_bfd_section_info): Remove print_data parameter, add arg
3214 and index_digits.
3215 (print_objfile_section_info): Likewise.
3216 (print_bfd_section_info_maybe_relocated): Likewise (plus
3217 objfile).
3218 (maintenance_info_sections): Adjust calls.
3219
02c6f3f1
TT
32202020-09-02 Tom Tromey <tromey@adacore.com>
3221
3222 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3223 for null pointers.
3224 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3225
ef5e5b0b
SM
32262020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3227
3228 * bcache.h (struct bcache) <insert>: Change type of `added` to
3229 pointer to bool.
3230 * bcache.c (bcache::insert): Likewise.
3231 * gdbtypes.c (check_types_worklist): Adjust.
3232 * psymtab.c (add_psymbol_to_bcache): Adjust.
3233
973695d6
KB
32342020-08-31 Kevin Buettner <kevinb@redhat.com>
3235
3236 * corelow.c (unordered_set): Include.
3237 (class core_target): Add field 'm_core_unavailable_mappings'.
3238 (core_target::build_file_mappings): Print only one warning
3239 per inaccessible file. Add unavailable/broken mappings
3240 to m_core_unavailable_mappings.
3241 (core_target::xfer_partial): Call...
3242 (core_target::xfer_memory_via_mappings): New method.
3243
264fc0e2
SM
32442020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3245
3246 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3247 type to bool.
3248
2de01bdb
SM
32492020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3250
3251 * dwarf2/read.c (struct field_info): Fix indentation.
3252
f3bd50f1
SM
32532020-08-31 Simon Marchi <simon.marchi@efficios.com>
3254
3255 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3256 ordering in comment.
3257 * frame.c (frame_id_eq): Fix indentation.
3258
22b9b4b0
SL
32592020-08-31 Scott Linder <scott@scottlinder.com>
3260 Simon Marchi <simon.marchi@efficios.com>
3261
3262 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3263 inline frame ids in outer frame.
3264
84154d16
SM
32652020-08-31 Simon Marchi <simon.marchi@efficios.com>
3266
3267 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3268 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3269 (outer_frame_id): Use FID_STACK_OUTER instead of
3270 FID_STACK_INVALID.
3271 (frame_id_p): Don't check for outer_frame_id.
3272
8efaf6b3
SM
32732020-08-31 Simon Marchi <simon.marchi@efficios.com>
3274
3275 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3276 regnum/frame in value. Call allocate_value_lazy.
3277 * frame.c (frame_unwind_register_value): Use
3278 val_print_not_saved.
3279
fe1fe7ea
SM
32802020-08-31 Simon Marchi <simon.marchi@efficios.com>
3281
3282 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3283
f7c7700d
PA
32842020-08-29 Pedro Alves <pedro@palves.net>
3285
3286 * progspace.c (print_program_space): Use all_inferiors. Switch to
3287 the inferior before calling target_pid_to_str.
3288
e0814aae
TT
32892020-08-28 Tom Tromey <tom@tromey.com>
3290
3291 * xcoffread.c (xcoff_end_psymtab): Update comment.
3292 * dbxread.c (dbx_end_psymtab): Update comment.
3293
626d2320
TV
32942020-08-28 Tom de Vries <tdevries@suse.de>
3295
3296 PR breakpoint/26544
3297 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3298 event_location.
3299 (create_breakpoint): Same.
3300 (base_breakpoint_decode_location): Same.
3301 (bkpt_create_sals_from_location): Same.
3302 (bkpt_decode_location): Same.
3303 (bkpt_probe_create_sals_from_location): Same.
3304 (bkpt_probe_decode_location): Same.
3305 (tracepoint_create_sals_from_location): Same.
3306 (tracepoint_decode_location): Same.
3307 (tracepoint_probe_decode_location): Same.
3308 (strace_marker_create_sals_from_location): Same.
3309 (strace_marker_decode_location): Same.
3310 (create_sals_from_location_default): Same.
3311 (decode_location_default): Same.
3312 * breakpoint.h (struct breakpoint_ops): Same.
3313 (create_breakpoint): Same.
3314 * linespec.h (decode_line_full): Same.
3315 * linespec.c (decode_line_full): Same. Throw error if
3316 result.size () == 0.
3317
df631783
PA
33182020-08-27 Pedro Alves <pedro@palves.net>
3319
3320 PR gdb/26524
3321 * breakpoint.c (until_break_fsm) <location_breakpoint,
3322 caller_breakpoint>: Delete fields.
3323 <breakpoints>: New field.
3324 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3325 two individual breakpoints.
3326 (until_break_fsm::should_stop): Loop over breakpoints in the
3327 breakpoint vector.
3328 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3329 vector.
3330 (until_break_command): Handle location expanding into multiple
3331 sals.
3332
b2b38aa4
PA
33332020-08-27 Pedro Alves <pedro@palves.net>
3334
3335 PR gdb/26523
3336 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3337 bp_until breakpoints user-specified locations. Update intro
3338 comment.
3339
b886559f
SM
33402020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3341
3342 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3343 gdb_bfd_sections): New.
3344 * maint.c (print_bfd_section_info): Change param type to
3345 maint_print_section_data.
3346 (print_objfile_section_info): Likewise.
3347 (print_bfd_section_info_maybe_relocated): Likewise.
3348 (maintenance_info_sections): Use gdb_bfd_sections.
3349
4c6e63bf
SV
33502020-08-25 Shahab Vahedi <shahab@synopsys.com>
3351
3352 * MAINTAINERS: Add ARC target and maintainer.
3353
8d7f0635
AK
33542020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3355
3356 * configure.tgt: ARC support for GNU/Linux.
3357 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3358 * arc-linux-tdep.c: New file.
3359 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3360 * arc-tdep.c (arc_write_pc): Use it.
3361
fdd8731b
SV
33622020-08-25 Shahab Vahedi <shahab@synopsys.com>
3363
3364 * arc-tdep.c (arc_check_for_hardware_loop): New.
3365 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3366
22459524
SV
33672020-08-25 Shahab Vahedi <shahab@synopsys.com>
3368
3369 * arc-tdep.h: Include "gdbarch.h".
3370
995d3a19
SV
33712020-08-25 Shahab Vahedi <shahab@synopsys.com>
3372
3373 * arch/arc.h
3374 (arc_gdbarch_features): New class to stir the selection of target XML.
3375 (arc_create_target_description): Use FEATURES to choose XML target.
3376 (arc_lookup_target_description): Use arc_create_target_description
3377 to create _new_ target descriptions or return the already created
3378 ones if the FEATURES is the same.
3379 * arch/arc.c: Implementation of prototypes described above.
3380 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3381 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3382 * arc-tdep.c (*_feature_name): Make feature names consistent.
3383 (arc_register_feature): A new struct to hold information about
3384 registers of a particular target/feature.
3385 (arc_check_tdesc_feature): Check if XML provides registers in
3386 compliance with ARC_REGISTER_FEATURE structs.
3387 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3388 (determine_*_reg_feature_set): Which feature name to look for.
3389 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3390 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3391 to expected ISA enums to be used in arc_gdbarch_features structs.
3392 * features/Makefile (FEATURE_XMLFILES): Add new files.
3393 * gdb/features/arc/v1-aux.c: New file.
3394 * gdb/features/arc/v1-aux.xml: Likewise.
3395 * gdb/features/arc/v1-core.c: Likewise.
3396 * gdb/features/arc/v1-core.xml: Likewise.
3397 * gdb/features/arc/v2-aux.c: Likewise.
3398 * gdb/features/arc/v2-aux.xml: Likewise.
3399 * gdb/features/arc/v2-core.c: Likewise.
3400 * gdb/features/arc/v2-core.xml: Likewise.
3401 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3402
3945d2d7
GM
34032020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3404 Andrew Burgess <andrew.burgess@embecosm.com>
3405
3406 PR m2/26372
fc5d6901 3407 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
3408 an assert. Remove single element array indexing pattern as the
3409 MULTI_SUBSCRIPT support will handle this case too.
3410
2677f2d3
SM
34112020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3412
3413 * value.h (valprint_check_validity): Move declaration from
3414 here...
3415 * valprint.h (valprint_check_validity): ... to here.
3416
c426fddb
SM
34172020-08-24 Simon Marchi <simon.marchi@efficios.com>
3418
3419 * debug.h: New file.
3420 * debug.c (debug_prefixed_vprintf): New function.
3421 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3422 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3423
1eb8556f
SM
34242020-08-24 Simon Marchi <simon.marchi@efficios.com>
3425
3426 * infrun.h (infrun_debug_printf_1): New function declaration.
3427 (infrun_debug_printf): New macro.
3428 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3429 throughout.
3430 (infrun_debug_printf): New function.
3431 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3432 (handle_jit_event): Likewise.
3433
b8fff44e
MW
34342020-08-21 Mark Wielaard <mark@klomp.org>
3435
3436 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3437
d19c3068
SM
34382020-08-22 Simon Marchi <simon.marchi@efficios.com>
3439
3440 * frame.c (enum class frame_id_status): New.
3441 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3442 (fprintf_frame): Update.
3443 (compute_frame_id): Set frame id status to "computing" on entry.
3444 Set it back to "not_computed" on failure and to "computed" on
3445 success.
3446 (get_frame_id): Assert the frame id is not being computed.
3447 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3448 (create_new_frame): Likewise.
3449 (frame_cleanup_after_sniffer): Update assert.
3450
b70e516e
SM
34512020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3452
3453 * regcache.c (pid_ptid_regcache_map): New type.
3454 (target_ptid_regcache_map): Remove.
3455 (target_pid_ptid_regcache_map): New type.
3456 (regcaches): Change type to target_pid_ptid_regcache_map.
3457 (get_thread_arch_aspace_regcache): Update.
3458 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3459 case.
3460 (regcaches_size): Update.
3461 (regcache_count): Update.
3462 (registers_changed_ptid_target_pid_test): New.
3463 (_initialize_regcache): Register new test.
3464
cdd9148a
SM
34652020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3466
3467 * regcache.c (regcache_count): New.
3468 (struct regcache_test_data): New.
3469 (regcache_test_data_up): New.
3470 (populate_regcaches_for_test): New.
3471 (regcaches_test): Remove.
3472 (get_thread_arch_aspace_regcache_test): New.
3473 (registers_changed_ptid_all_test): New.
3474 (registers_changed_ptid_target_test): New.
3475 (registers_changed_ptid_target_ptid_test): New.
3476 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3477 (_initialize_regcache): Register new tests.
3478
dd125343
SM
34792020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3480
3481 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3482 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3483 gdbarch and aspace parameter. Use current inferior's aspace.
3484 Validate regcache's arch value.
3485 (regcaches_test): Update.
3486
3ee93972
SM
34872020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3488
3489 * regcache.c (regcaches_test): Call registers_changed.
3490
33bf4c5c
TBA
34912020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3492
3493 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3494
c2fd7fae
AKS
34952020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3496
3497 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3498 to find the end of prologue for flang compiled binaries.
3499 * arm-tdep.c (arm_skip_prologue): Likewise.
3500 * i386-tdep.c (i386_skip_prologue): Likewise.
3501 * producer.c (producer_is_llvm): New function.
3502 (producer_parsing_tests): Added new tests for clang/flang.
3503 * producer.h (producer_is_llvm): New declaration.
3504
9327494e
SM
35052020-08-18 Simon Marchi <simon.marchi@efficios.com>
3506
3507 * linux-nat.c (linux_nat_debug_printf): New function.
3508 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3509
d138725a
AM
35102020-08-18 Aaron Merey <amerey@redhat.com>
3511
3512 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3513 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3514 (CLIBS): Add DEBUGINFOD_LIBS.
3515
f9b11e6b
ST
35162020-08-17 Sergei Trofimovich <siarheit@google.com>
3517
3518 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3519 'gdbarch_num_regs'.
3520
3ae7ab99
TT
35212020-08-17 Tom Tromey <tromey@adacore.com>
3522
3523 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3524 ada_get_decoded_value returns NULL.
3525
b017825f
TT
35262020-08-17 Tom Tromey <tromey@adacore.com>
3527
3528 * python/py-inferior.c (infpy_search_memory): Use
3529 gdb_py_object_from_ulongest.
3530 * python/py-infevents.c (create_inferior_call_event_object)
3531 (create_memory_changed_event_object): Use
3532 gdb_py_object_from_ulongest.
3533 * python/py-linetable.c (ltpy_entry_get_pc): Use
3534 gdb_py_object_from_ulongest.
3535
7635cf79
SM
35362020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3537
3538 * loc.c (class symbol_needs_eval_context): Fix indentation.
3539
f54be24b
SM
35402020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3541
3542 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3543 bool.
3544
53d5a2a5
TV
35452020-08-17 Tom de Vries <tdevries@suse.de>
3546
3547 PR gdb/26393
3548 * gdbtypes.c (dump_dynamic_prop): New function.
3549 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3550
547ce8f0
TV
35512020-08-15 Tom de Vries <tdevries@suse.de>
3552
3553 PR backtrace/26390
3554 * stack.c (print_frame_args): Temporarily set the selected
3555 frame to FRAME while printing the frame's arguments.
3556
6ea815e7
PFC
35572020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3558
3559 PR breakpoints/26385
3560 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3561 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3562
6e562fa3
PFC
35632020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3564
3565 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3566 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3567 and >= to check return value instead of == -1 and != -1.
3568
d369b608
SM
35692020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3570
3571 * utils.h (class gdb_argv) <as_array_view>: New method.
3572 * utils.c (gdb_argv_as_array_view_test): New.
3573 (_initialize_utils): Register selftest.
3574 * maint.c (maintenance_selftest): Use the new method.
3575
b31488a3
KR
35762020-08-13 Kamil Rytarowski <n54@gmx.com>
3577
3578 * target.h (supports_dumpcore, dumpcore): New
3579 function declarations.
3580 * target.c (supports_dumpcore, dumpcore): New
3581 functions.
3582 * target-delegates.c: Rebuild.
3583 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3584 and target_dumpcore ().
3585
002a3166
AM
35862020-08-13 Aaron Merey <amerey@redhat.com>
3587
3588 * debuginfod-support.c: Replace global variables with user_data.
3589
ece5bc8a
SM
35902020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3591
3592 * maint.c (maintenance_selftest): Split args and pass array_view
3593 to run_tests.
3594
6d8a0a5e
LM
35952020-08-12 Luis Machado <luis.machado@linaro.org>
3596
3597 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3598 type's length.
3599 Use %s and pulongest to print the length.
3600
7cf663a9
PA
36012020-08-12 Pedro Alves <palves@redhat.com>
3602
3603 * NEWS: Move "Multi-target debugging support" item to the
3604 "Changes since GDB 9" section.
3605
27c7b875
PA
36062020-08-12 Pedro Alves <palves@redhat.com>
3607
3608 PR gdb/26336
3609 * progspace.c (program_space::remove_objfile): Invalidate the
3610 frame cache.
3611
1796a2a1
TV
36122020-08-11 Tom de Vries <tdevries@suse.de>
3613
3614 * MAINTAINERS: Mark ms1 as deleted.
3615
f8e3fe0d
LM
36162020-08-10 Luis Machado <luis.machado@linaro.org>
3617
3618 PR gdb/26310
3619
3620 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3621 act accordingly.
3622 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3623 movz/str/stur/stp skipping behavior.
3624
cc308722
LM
36252020-08-10 Luis Machado <luis.machado@linaro.org>
3626
3627 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3628 struct user_sve_header instead of struct sve_context.
3629
041d9819
SM
36302020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3631
3632 * read.h (dwarf2_fetch_die_loc_sect_off,
3633 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3634 `void *` parameter with function_view.
3635 * read.c (dwarf2_fetch_die_loc_sect_off,
3636 dwarf2_fetch_die_loc_cu_off): Likewise.
3637 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3638 (per_cu_dwarf_call): Adjust.
3639 (get_frame_address_in_block_wrapper): Remove.
3640 (indirect_synthetic_pointer): Adjust.
3641 (get_ax_pc): Remove.
3642 (dwarf2_compile_expr_to_ax): Adjust.
3643
38f8aa06
TV
36442020-08-08 Tom de Vries <tdevries@suse.de>
3645
3646 PR build/26344
3647 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3648 constructor.
3649 * regcache.c (get_thread_arch_aspace_regcache): Same.
3650
a52b3ae2
TT
36512020-08-07 Tom Tromey <tromey@adacore.com>
3652
3653 * ravenscar-thread.c
3654 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3655 New method.
3656 (ravenscar_thread_target::wait): Check
3657 runtime_initialized.
3658 (ravenscar_thread_target::prepare_to_store)
3659 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3660 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3661 (ravenscar_thread_target::stopped_by_watchpoint)
3662 (ravenscar_thread_target::stopped_data_address)
3663 (ravenscar_thread_target::core_of_thread): Use
3664 scoped_restore_current_thread and
3665 set_base_thread_from_ravenscar_task.
3666
0e29517d
TT
36672020-08-07 Tom Tromey <tromey@adacore.com>
3668
3669 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3670
592f9bd7
TT
36712020-08-07 Tom Tromey <tromey@adacore.com>
3672
3673 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3674 update_inferior_ptid before update_thread_list.
3675 (temporarily_change_regcache_ptid): New class.
3676 (ravenscar_thread_target::fetch_registers)
3677 (ravenscar_thread_target::store_registers)
3678 (ravenscar_thread_target::prepare_to_store): Use base thread when
3679 forwarding operation.
3680
39e2018a
TT
36812020-08-07 Tom Tromey <tromey@adacore.com>
3682
3683 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3684 "is_pid" case.
3685
2080266b
TT
36862020-08-07 Tom Tromey <tromey@adacore.com>
3687
3688 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3689 New methods.
3690 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3691 first.
3692 (ravenscar_thread_target::add_thread): Rename from
3693 ravenscar_add_thread.
3694 (ravenscar_thread_target::update_thread_list): Use a lambda.
3695 (ravenscar_thread_target::xfer_partial): New method.
3696
78c02f21
TT
36972020-08-07 Tom Tromey <tromey@adacore.com>
3698
3699 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3700 gdb::function_view.
3701 (iterate_over_live_ada_tasks): Change type of argument.
3702 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3703 of argument.
3704
d5d833af
TT
37052020-08-07 Tom Tromey <tromey@adacore.com>
3706
3707 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3708 Remove.
3709 (ravenscar_thread_target::extra_thread_info): Remove.
3710 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3711 defer to target beneath for non-Ravenscar threads.
3712
a8ac85bb
TT
37132020-08-07 Tom Tromey <tromey@adacore.com>
3714
3715 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3716 get_base_thread_from_ravenscar_task>: Now methods.
3717 <m_cpu_map>: New member.
3718 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3719 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3720 (ravenscar_thread_target::task_is_currently_active): Update.
3721 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3722 Now a method.
3723 (ravenscar_thread_target::add_active_thread): Put initial thread
3724 into the m_cpu_map.
3725
550ab58d
TT
37262020-08-07 Tom Tromey <tromey@adacore.com>
3727
3728 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3729 event_ptid.
3730
e9546579
TT
37312020-08-07 Tom Tromey <tromey@adacore.com>
3732
3733 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3734 runtime_initialized.
3735
3d4470e5
TT
37362020-08-07 Tom Tromey <tromey@adacore.com>
3737
3738 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3739 add_active_thread.
3740 (ravenscar_thread_target::add_active_thread): Now public.
3741 (ravenscar_inferior_created): Call add_active_thread after pushing
3742 the target.
3743
888bdb2b
SM
37442020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3745
3746 * regcache.c (ptid_regcache_map): New type.
3747 (target_ptid_regcache_map): New type.
3748 (regcaches): Change type to target_ptid_regcache_map.
3749 (get_thread_arch_aspace_regcache): Update to regcaches' new
3750 type.
3751 (regcache_thread_ptid_changed): Likewise.
3752 (registers_changed_ptid): Likewise.
3753 (regcaches_size): Likewise.
3754 (regcaches_test): Update.
3755 (regcache_thread_ptid_changed): Update.
3756 * regcache.h (regcache_up): New type.
3757 * gdbsupport/ptid.h (hash_ptid): New struct.
3758
b161a60d
SM
37592020-08-07 Simon Marchi <simon.marchi@efficios.com>
3760
3761 * observable.h (thread_ptid_changed): Add parameter
3762 `process_stratum_target *`.
3763 * infrun.c (infrun_thread_ptid_changed): Add parameter
3764 `process_stratum_target *` and use it.
3765 (selftests): New namespace.
3766 (infrun_thread_ptid_changed): New function.
3767 (_initialize_infrun): Register selftest.
3768 * regcache.c (regcache_thread_ptid_changed): Add parameter
3769 `process_stratum_target *` and use it.
3770 (regcache_thread_ptid_changed): New function.
3771 (_initialize_regcache): Register selftest.
3772 * thread.c (thread_change_ptid): Pass target to
3773 thread_ptid_changed observable.
3774
d2854d8d
CT
37752020-08-06 Caroline Tice <cmtice@google.com>
3776
fe4c3d43
SM
3777 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3778 (struct dwp_sections): Update field comments. Add loclists and
3779 rnglists fields.
3780 (struct virtual_v2_dwo_sections): Rename struct to
3781 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3782 size & offset fields for loclists and rnglists.
3783 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3784 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3785 skipping dummy type units.
3786 (create_dwp_hash_table): Update the large comment above the function to
3787 discuss Version 5 DWP files as well, with references. Update all the
3788 version checks in the function to check for version 5 as well. Add new
3789 section at the end to create dwp hash table for version 5.
3790 (create_dwp_v2_section): Rename function to
3791 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3792 Add V5 to error message text.
3793 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3794 into calls to create_dwp_v2_or_v5_section.
3795 (create_dwo_unit_in_dwp_v5): New function.
3796 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3797 check for version2; add else clause to handle version 5.
3798 (open_and_init_dwo_file): Add code to check dwarf version & only call
3799 create_debug_types_hash_table (with sections.types) if version is not 5;
3800 else call create_debug_type_hash_table, with sections.info.
3801 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3802 version 5.
3803 (dwarf2_locate_v5_dwp_sections): New function.
3804 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3805 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 3806
159ed7d9
SM
38072020-08-06 Simon Marchi <simon.marchi@efficios.com>
3808
3809 * regcache.h (class regcache): Remove friend
3810 registers_changed_ptid.
3811 <regcache_thread_ptid_changed>: Remove.
3812 <regcaches>: Remove.
3813 * regcache.c (regcache::regcaches): Rename to...
3814 (regcaches): ... this. Make static.
3815 (get_thread_arch_aspace_regcache): Update.
3816 (regcache::regcache_thread_ptid_changed): Rename to...
3817 (regcache_thread_ptid_changed): ... this. Update.
3818 (class regcache_access): Remove.
3819 (regcaches_test): Update.
3820 (_initialize_regcache): Update.
3821 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3822 <forward_list>.
3823
174981ae
SM
38242020-08-06 Simon Marchi <simon.marchi@efficios.com>
3825
3826 * regcache.h (class regcache) <current_regcache>: Rename to...
3827 <regcaches>: ... this. Move doc here.
3828 * regcache.c (regcache::current_regcache) Rename to...
3829 (regcache::regcaches): ... this. Move doc to header.
3830 (get_thread_arch_aspace_regcache): Update.
3831 (regcache::regcache_thread_ptid_changed): Update.
3832 (registers_changed_ptid): Update.
3833 (class regcache_access) <current_regcache_size>: Rename to...
3834 <regcaches_size>: ... this.
3835 (current_regcache_test): Rename to...
3836 (regcaches_test): ... this.
3837 (_initialize_regcache): Update.
3838
ed908db6
VC
38392020-08-06 Victor Collod <vcollod@nvidia.com>
3840
3841 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3842
b5582ab7
KB
38432020-08-05 Kevin Buettner <kevinb@redhat.com>
3844
3845 * corelow.c (core_target::build_file_mappings): Don't output
3846 null pathname in warning.
3847
ea946b86
SM
38482020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3849
3850 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3851 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3852 gdb.dwarf2/dw2-single-line-discriminators.exp,
3853 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3854
57d02173
TT
38552020-08-05 Tom Tromey <tromey@adacore.com>
3856
3857 PR rust/26197:
3858 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3859 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3860 Fix off-by-one and type size errors in ordinary case.
3861
5555c86d
TV
38622020-08-05 Tom de Vries <tdevries@suse.de>
3863
3864 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3865 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3866
97916bfe
SM
38672020-08-04 Simon Marchi <simon.marchi@efficios.com>
3868
3869 * frame.h (frame_id_p): Return bool.
3870 (frame_id_artificial_p): Return bool.
3871 (frame_id_eq): Return bool.
3872 (has_stack_frames): Return bool.
3873 (get_selected_frame): Fix typo in comment.
3874 (get_frame_pc_if_available): Return bool.
3875 (get_frame_address_in_block_if_available): Return bool.
3876 (get_frame_func_if_available): Return bool.
3877 (read_frame_register_unsigned): Return bool.
3878 (get_frame_register_bytes): Return bool.
3879 (safe_frame_unwind_memory): Return bool.
3880 (deprecated_frame_register_read): Return bool.
3881 (frame_unwinder_is): Return bool.
3882 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3883 bool.
3884 <this_id::p>: Likewise.
3885 <prev_p>: Likewise.
3886 (frame_stash_add): Return bool.
3887 (get_frame_id): Use bool.
3888 (frame_id_build_special) Use bool.
3889 (frame_id_build_unavailable_stack): Use bool.
3890 (frame_id_build): Use bool.
3891 (frame_id_p): Return bool, use true/false instead of 1/0.
3892 (frame_id_artificial_p): Likewise.
3893 (frame_id_eq): Likewise.
3894 (frame_id_inner): Likewise.
3895 (get_frame_func_if_available): Likewise.
3896 (read_frame_register_unsigned): Likewise.
3897 (deprecated_frame_register_read): Likewise.
3898 (get_frame_register_bytes): Likewise.
3899 (has_stack_frames): Likewise.
3900 (inside_main_func): Likewise.
3901 (inside_entry_func): Likewise.
3902 (get_frame_pc_if_available): Likewise.
3903 (get_frame_address_in_block_if_available): Likewise.
3904 (frame_unwinder_is): Likewise.
3905 (safe_frame_unwind_memory): Likewise.
3906 (frame_unwind_arch): Likewise.
3907
fedfee88
SM
39082020-08-04 Simon Marchi <simon.marchi@efficios.com>
3909
3910 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3911 type to cached_copy_status.
3912 (fprintf_frame): Adjust.
3913 (get_frame_func_if_available): Adjust.
3914 (frame_cleanup_after_sniffer): Adjust.
3915
6cfa9b59
MW
39162020-08-04 Mark Wielaard <mark@klomp.org>
3917
3918 * MAINTAINERS (Write After Approval): Update email address.
3919
66d6346b
SM
39202020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3921
3922 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3923 dynamic_prop::const_val.
3924
8a6d5e35
SM
39252020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3926
3927 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3928 dynamic_prop::kind.
3929
51d6067d
SM
39302020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3931
3932 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3933
b26e2ae7
JM
39342020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3935
3936 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3937
39791af2
JM
39382020-08-04 Weimin Pan <weimin.pan@oracle.com>
3939 Jose E. Marchesi <jose.marchesi@oracle.com>
3940
3941 * configure.tgt: Add entry for bpf-*-*.
3942 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3943 (ALLDEPFILES): Add bpf-tdep.c.
3944 * bpf-tdep.c: New file.
3945 * MAINTAINERS: Add bpf target and maintainer.
3946 * NEWS: Mention the support for the new target.
3947
521894aa
TV
39482020-08-04 Tom de Vries <tdevries@suse.de>
3949
3950 PR symtab/23270
3951 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3952 Error.
3953
5d6356e9
JB
39542020-08-03 John Baldwin <jhb@FreeBSD.org>
3955
3956 * syscalls/freebsd.xml: Regenerate.
3957
0cf82b81
JB
39582020-08-03 John Baldwin <jhb@FreeBSD.org>
3959
3960 * syscalls/update-freebsd.sh: Fix usage and year range.
3961
8f34b746
TV
39622020-08-03 Tom de Vries <tdevries@suse.de>
3963
3964 PR symtab/26333
3965 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3966 DW_LNE_lo_user/DW_LNE_hi_user range.
3967
5e500d33
SM
39682020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3969
3970 PR ada/26318
3971 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3972 kind.
3973
78319c15
TBA
39742020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3975
3976 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3977
4c55e970
TBA
39782020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3979
3980 * breakpoint.c (set_breakpoint_condition): Update the condition
3981 expressions after checking that the input condition string parses
3982 successfully and does not contain junk at the end.
3983
1e620590
TBA
39842020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3985
3986 * breakpoint.c (set_breakpoint_condition): Update the
3987 condition string after parsing the new condition successfully.
3988
c8693053
RO
39892020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3990
3991 * proc-api.c (_STRUCTURED_PROC): Don't define.
3992 * proc-events.c: Likewise.
3993 * proc-flags.c: Likewise.
3994 * proc-why.c: Likewise.
3995 * procfs.c: Likewise.
3996
3997 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3998 * configure, config.in: Regenerate.
3999
5a99adb8
TV
40002020-07-30 Tom de Vries <tdevries@suse.de>
4001
4002 PR build/26320
4003 * ui-style.h (struct ui_file_style::color): Wrap m_value and
4004 m_red/m_green/m_blue in a union.
4005
8ba83e91
TV
40062020-07-29 Tom de Vries <tdevries@suse.de>
4007
4008 PR tdep/26280
4009 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
4010
f75a0693
AB
40112020-07-28 Tom Tromey <tromey@adacore.com>
4012
4013 PR symtab/26270:
4014 * symtab.h (find_pc_partial_function_sym): Declare.
4015 * cli/cli-cmds.c (disassemble_command): Use
4016 find_pc_partial_function_sym. Check asm_demangle.
4017 * blockframe.c (cache_pc_function_sym): New global.
4018 (cache_pc_function_name): Remove.
4019 (clear_pc_function_cache): Update.
4020 (find_pc_partial_function_sym): New function, from
4021 find_pc_partial_function.
4022 (find_pc_partial_function): Rewrite using
4023 find_pc_partial_function_sym.
4024
16f3242c
TT
40252020-07-28 Tom Tromey <tromey@adacore.com>
4026
4027 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4028 help. Add usage.
4029
4888741a
TT
40302020-07-28 Tom Tromey <tromey@adacore.com>
4031
4032 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4033 <DW_OP_GNU_variable_value>: Cast to address type.
4034
4d46f402
KR
40352020-07-28 Kamil Rytarowski <n54@gmx.com>
4036
4037 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4038 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
4039 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
4040 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
4041 (nbsd_get_siginfo_type): New.
4042 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
4043 (_initialize_nbsd_tdep): New.
4044
d70f978b
L
40452020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4046
4047 PR binutils/26301
4048 * configure: Regenerated.
4049
377170fa
L
40502020-07-28 H.J. Lu <hongjiu.lu@intel.com>
4051
4052 PR binutils/26301
4053 * configure: Regenerated.
4054
43d5901d
AB
40552020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4056
4057 * python/py-frame.c: Remove 'user-regs.h' include.
4058 (frapy_read_register): Rewrite to make use of
4059 gdbpy_parse_register_id.
4060 * python/py-registers.c (gdbpy_parse_register_id): New function,
4061 moved here from python/py-unwind.c. Updated the return type, and
4062 also accepts register descriptor objects.
4063 * python/py-unwind.c: Remove 'user-regs.h' include.
4064 (pyuw_parse_register_id): Moved to python/py-registers.c.
4065 (unwind_infopy_add_saved_register): Update to use
4066 gdbpy_parse_register_id.
4067 (pending_framepy_read_register): Likewise.
4068 * python/python-internal.h (gdbpy_parse_register_id): Declare.
4069
14fa8fb3
AB
40702020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
4071
4072 * python/py-registers.c: Add 'user-regs.h' include.
4073 (register_descriptor_iter_find): New function.
4074 (register_descriptor_iterator_object_methods): New static global
4075 methods array.
4076 (register_descriptor_iterator_object_type): Add pointer to methods
4077 array.
4078
ddce1758
JB
40792020-07-27 John Baldwin <jhb@FreeBSD.org>
4080
4081 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4082 for all architectures on FreeBSD 11.3 and later.
4083
a4089f52
TT
40842020-07-27 Tom Tromey <tromey@adacore.com>
4085
4086 * gcore.h (load_corefile): Don't declare.
4087
95420d30
TV
40882020-07-27 Tom de Vries <tdevries@suse.de>
4089
4090 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4091 * config.in: Regenerate.
4092 * configure: Regenerate.
4093
05a6b8c2
EZ
40942020-07-26 Eli Zaretskii <eliz@gnu.org>
4095
4096 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4097 ws2tcpip.h. When checking whether socklen_t type is defined, use
4098 ws2tcpip.h if it is available and sys/socket.h isn't.
4099 * configure: Regenerate.
4100 * config.in: Regenerate.
4101
e79eb02f
AB
41022020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4103
4104 PR fortran/23051
4105 PR fortran/26139
4106 * valops.c (value_ind): Pass address to
4107 readjust_indirect_value_type.
4108 * value.c (readjust_indirect_value_type): Make parameter
4109 non-const, and add extra address parameter. Resolve original type
4110 before using it.
4111 * value.h (readjust_indirect_value_type): Update function
4112 signature and comment.
4113
876518dd
TV
41142020-07-25 Tom de Vries <tdevries@suse.de>
4115
4116 PR symtab/26243
4117 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4118 entries.
4119
f6720b1c
AM
41202020-07-24 Aaron Merey <amerey@redhat.com>
4121
4122 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4123 * configure: Rebuild.
4124
513487e1
KB
41252020-07-23 Kevin Buettner <kevinb@redhat.com>
4126
4127 PR corefiles/26294
4128 * corelow.c (_initialize_corelow): Add period to help text
4129 for "maintenance print core-file-backed-mappings".
4130
e7bc9db8
PA
41312020-07-23 Pedro Alves <pedro@palves.net>
4132
4133 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4134 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4135 meanwhile.
4136 * frame.c (frame_cache_generation, get_frame_cache_generation):
4137 New.
4138 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4139 (get_prev_frame_if_no_cycle): On exception, don't touch
4140 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4141 * frame.h (get_frame_cache_generation): Declare.
4142
90fcc466
TV
41432020-07-23 Tom de Vries <tdevries@suse.de>
4144
4145 PR tui/26282
4146 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4147 New default constructor.
4148
78344df7
AB
41492020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4150
4151 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4152 exclude non-statement entries.
4153
b089853a
KB
41542020-07-22 Kevin Buettner <kevinb@redhat.com>
4155
4156 * NEWS (New commands): Mention new command
4157 "maintenance print core-file-backed-mappings".
4158
09c2f5d4
KB
41592020-07-22 Kevin Buettner <kevinb@redhat.com>
4160
4161 * corelow.c (gdbcmd.h): Include.
4162 (core_target::info_proc_mappings): New method.
4163 (get_current_core_target): New function.
4164 (maintenance_print_core_file_backed_mappings): New function.
4165 (_initialize_corelow): Add core-file-backed-mappings to
4166 "maint print" commands.
4167
9c5ec5c2 41682020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 4169
9c5ec5c2
KB
4170 * linux-tdep.c (dump_note_entry_p): New function.
4171 (linux_dump_mapping_p_ftype): New typedef.
4172 (linux_find_memory_regions_full): Add new parameter,
4173 should_dump_mapping_p.
4174 (linux_find_memory_regions): Adjust call to
4175 linux_find_memory_regions_full.
4176 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4177 call to linux_find_memory_regions_full.
4178
db082f59
KB
41792020-07-22 Kevin Buettner <kevinb@redhat.com>
4180
4181 * corelow.c (solist.h, unordered_map): Include.
4182 (class core_target): Add field m_core_file_mappings and
4183 method build_file_mappings.
4184 (core_target::core_target): Call build_file_mappings.
4185 (core_target::~core_target): Free memory associated with
4186 m_core_file_mappings.
4187 (core_target::build_file_mappings): New method.
4188 (core_target::xfer_partial): Use m_core_file_mappings
4189 for memory transfers.
4190 * linux-tdep.c (linux_read_core_file_mappings): New
4191 function.
4192 (linux_core_info_proc_mappings): Rewrite to use
4193 linux_read_core_file_mappings.
4194 (linux_init_abi): Register linux_read_core_file_mappings.
4195
7e183d27
KB
41962020-07-22 Kevin Buettner <kevinb@redhat.com>
4197
4198 * arch-utils.c (default_read_core_file_mappings): New function.
4199 * arch-utils.c (default_read_core_file_mappings): Declare.
4200 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4201 * gdbarch.h, gdbarch.c: Regenerate.
4202
2735d421
KB
42032020-07-22 Kevin Buettner <kevinb@redhat.com>
4204
4205 PR corefiles/25631
4206 * corelow.c (core_target:xfer_partial): Revise
4207 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4208 case after first checking the stratum beneath the core
4209 target.
4210 (has_all_memory): Return true.
4211 * target.c (raw_memory_xfer_partial): Revise comment
4212 regarding use of has_all_memory.
4213
e56cb451
KB
42142020-07-22 Kevin Buettner <kevinb@redhat.com>
4215
4216 * exec.h (section_table_xfer_memory): Revise declaration,
4217 replacing section name parameter with an optional callback
4218 predicate.
4219 * exec.c (section_table_xfer_memory): Likewise.
4220 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4221 of section_table_xfer_memory.
4222
32fa152e
TT
42232020-07-22 Tom Tromey <tromey@adacore.com>
4224
4225 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4226 lookup_symbol_search_name.
4227
a67a1c41
AB
42282020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4229
4230 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4231 redundant local variable.
4232 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4233 reference, not pointer, update code accordingly.
4234
a7b4ff4f
SM
42352020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4236 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4237
4238 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4239 * jit.c (jit_breakpoint_re_set_internal): Use the
4240 `skip_jit_symbol_lookup` field.
4241
2340e834
SM
42422020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4243 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4244
4245 * jit.c (jit_read_descriptor): Define the descriptor address once,
4246 use twice.
4247 (jit_breakpoint_deleted): Move the declaration of the loop variable
4248 `iter` into the loop header.
4249 (jit_breakpoint_re_set_internal): Move the declaration of the local
4250 variable `objf_data` to the first point of definition.
4251 (jit_event_handler): Move the declaration of local variables
4252 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4253 Rename `objf` to `jited`.
4254
c1072906
SM
42552020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4256
4257 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4258 Remove.
4259 * jit.c (get_jiter_objfile_data): Update.
4260
c8474dc3
TBA
42612020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4262 Simon Marchi <simon.marchi@polymtl.ca>
4263
4264 * jit.c (struct jit_program_space_data): Remove.
4265 (jit_program_space_key): Remove.
4266 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4267 stuff.
4268 (get_jit_program_space_data): Remove.
4269 (jit_breakpoint_deleted): Iterate on all of the program space's
4270 objfiles.
4271 (jit_inferior_init): Likewise.
4272 (jit_breakpoint_re_set_internal): Likewise. Also change return
4273 type to void.
4274 (jit_breakpoint_re_set): Pass current_program_space to
4275 jit_breakpoint_re_set_internal.
4276
77208eb7
SM
42772020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4278
4279 * jit.h (struct jiter_objfile_data) <cached_code_address,
4280 jit_breakpoint>: Move to here from ...
4281 * jit.c (jit_program_space_data): ... here.
4282 (jiter_objfile_data::~jiter_objfile_data): Update.
4283 (jit_breakpoint_deleted): Update.
4284 (jit_breakpoint_re_set_internal): Update.
4285
8c1c720f
SM
42862020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4287
4288 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4289 checks.
4290 (jit_read_descriptor): Remove NULL check.
4291 (jit_event_handler): Add an assertion.
4292
0e74a041
SM
42932020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4294
4295 * jit.h (struct jit_objfile_data): Split into...
4296 (struct jiter_objfile_data): ... this ...
4297 (struct jited_objfile_data): ... and this.
4298 * objfiles.h (struct objfile) <jit_data>: Remove.
4299 <jiter_data, jited_data>: New fields.
4300 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4301 (jiter_objfile_data::~jiter_objfile_data): ... this.
4302 (get_jit_objfile_data): Rename to ...
4303 (get_jiter_objfile_data): ... this.
4304 (add_objfile_entry): Update.
4305 (jit_read_descriptor): Use get_jiter_objfile_data.
4306 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4307 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4308 (jit_inferior_exit_hook): Use objfile's jited_data field.
4309
238b5c9f
SM
43102020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4311
4312 * jit.h: Forward-declare `struct minimal_symbol`.
4313 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4314 constructor, destructor, and an objfile* field.
4315 * jit.c (jit_objfile_data): Remove.
4316 (struct jit_objfile_data): Migrate from here to jit.h.
4317 (jit_objfile_data::~jit_objfile_data): New destructor
4318 implementation with code moved from free_objfile_data.
4319 (free_objfile_data): Delete.
4320 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4321 (jit_find_objf_with_entry_addr): Ditto.
4322 (jit_inferior_exit_hook): Ditto.
4323 (_initialize_jit): Remove the call to
4324 register_objfile_data_with_cleanup.
4325 * objfiles.h (struct objfile) <jit_data>: New field.
4326
fe053b9e
TBA
43272020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4328
4329 * jit.h: Forward-declare `struct objfile`.
4330 (jit_event_handler): Add a second parameter, the JITer objfile.
4331 * jit.c (jit_read_descriptor): Change the signature to take the
4332 JITer objfile as an argument instead of the jit_program_space_data.
4333 (jit_inferior_init): Update the call to jit_read_descriptor.
4334 (jit_event_handler): Use the new JITer objfile argument when calling
4335 jit_read_descriptor.
4336 * breakpoint.c (handle_jit_event): Update the call to
4337 jit_event_handler to pass the JITer objfile.
4338
4cec0c66
JB
43392020-07-21 John Baldwin <jhb@FreeBSD.org>
4340
4341 * gdbarch.c: Regenerate.
4342 * gdbarch.h: Regenerate.
4343 * gdbarch.sh (handle_segmentation_fault): Remove method.
4344 * infrun.c (handle_segmentation_fault): Remove.
4345 (print_signal_received_reason): Remove call to
4346 handle_segmentation_fault.
4347
0e42f66a
JB
43482020-07-21 John Baldwin <jhb@FreeBSD.org>
4349
4350 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4351 Rename to sparc64_linux_report_signal_info and add siggnal
4352 argument.
4353 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4354 instead of sparc64_linux_handle_segmentation_fault.
4355
77bdfeb2
JB
43562020-07-21 John Baldwin <jhb@FreeBSD.org>
4357
4358 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4359 i386_linux_report_signal_info instead of
4360 i386_linux_handle_segmentation_fault.
4361 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4362 to i386_linux_report_signal_info and add siggnal argument.
4363 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4364 of i386_linux_handle_segmentation_fault.
4365 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4366 to i386_linux_report_signal_info and add siggnal argument.
4367
ad97bfc5
JB
43682020-07-21 John Baldwin <jhb@FreeBSD.org>
4369
4370 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4371 hook if present.
4372
272bb05c
JB
43732020-07-21 John Baldwin <jhb@FreeBSD.org>
4374
4375 * gdbarch.c: Regenerate.
4376 * gdbarch.h: Regenerate.
4377 * gdbarch.sh (report_signal_info): New method.
4378 * infrun.c (print_signal_received_reason): Invoke gdbarch
4379 report_signal_info hook if present.
4380
baf8791e
AB
43812020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4382
4383 * python/py-registers.c : Add 'unordered_map' include.
4384 (gdbpy_new_reggroup): Renamed to...
4385 (gdbpy_get_reggroup): ...this. Update to only create register
4386 group descriptors when needed.
4387 (gdbpy_reggroup_iter_next): Update.
4388
f7306dac
AB
43892020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4390
4391 * python/py-registers.c (gdbpy_register_object_data): New static
4392 global.
4393 (gdbpy_register_object_data_init): New function.
4394 (gdbpy_new_register_descriptor): Renamed to...
4395 (gdbpy_get_register_descriptor): ...this, and update to reuse
4396 existing register descriptors where possible.
4397 (gdbpy_register_descriptor_iter_next): Update.
4398 (gdbpy_initialize_registers): Register new gdbarch data.
4399
05c309a8
SM
44002020-07-21 Simon Marchi <simon.marchi@efficios.com>
4401
4402 * linux-nat.c (stopped_pids): Make static.
4403
d1fd641e
SM
44042020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4405
4406 PR ada/26235
4407 * gdbtypes.c (ada_discrete_type_low_bound,
4408 ada_discrete_type_high_bound): Handle undefined bounds.
4409
1de14d77
KR
44102020-07-21 Kamil Rytarowski <n54@gmx.com>
4411
4412 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4413 declaration.
4414 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4415 function.
4416
ed810cc7
JB
44172020-07-20 John Baldwin <jhb@FreeBSD.org>
4418
4419 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4420 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4421 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4422 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4423 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4424 method.
4425
ae5369e7
LC
44262020-07-20 Ludovic Courtès <ludo@gnu.org>
4427
4428 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4429 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4430 which are deprecated in Guile 3.0.
4431 * configure.ac (try_guile_versions): Add "guile-3.0".
4432 * configure (try_guile_versions): Regenerate.
4433 * NEWS: Update entry.
4434
68cf161c
LC
44352020-07-20 Ludovic Courtès <ludo@gnu.org>
4436 Doug Evans <dje@google.com>
4437
4438 PR gdb/21104
4439 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4440 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4441 USING_GUILE_BEFORE_2_2.
4442 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4443 Change type to 'scm_t_port_type *'.
4444 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4445 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4446 parameter and honor it. Update callers.
4447 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4448 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4449 functions.
4450 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4451 USING_GUILE_BEFORE_2_2.
4452 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4453 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4454 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4455 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4456 and 'SCM_PORT_TYPE'.
4457 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4458 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4459 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4460 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4461 [!USING_GUILE_BEFORE_2_2]: New functions.
4462 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4463 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4464 'gdbscm_memory_port_read'.
4465 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4466 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4467 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4468 function.
4469 (ioscm_init_memory_port): Remove.
4470 (ioscm_init_memory_port_stream): New function
4471 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4472 function.
4473 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4474 Return scm_from_uint (0).
4475 (gdbscm_set_memory_port_read_buffer_size_x)
4476 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4477 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4478 Return scm_from_uint (0).
4479 (gdbscm_set_memory_port_write_buffer_size_x)
4480 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4481 * configure.ac (try_guile_versions): Add "guile-2.2".
4482 * configure: Regenerate.
4483 * NEWS: Add entry.
4484
aee91db3
TT
44852020-07-18 Tom Tromey <tom@tromey.com>
4486
4487 * linux-nat.c (linux_multi_process): Remove.
4488 (linux_nat_target::supports_multi_process): Return true.
4489
0e267416
AB
44902020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4491
4492 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4493 (riscv_lookup_target_description): Return pointer out of
4494 unique_ptr.
4495 * target-descriptions.c (allocate_target_description): Add
4496 comment.
4497 (target_desc_deleter::operator()): Likewise.
4498 * target-descriptions.h (struct target_desc_deleter): Moved to
4499 gdbsupport/tdesc.h.
4500 (target_desc_up): Likewise.
4501
f80c8ec4
TT
45022020-07-17 Tom Tromey <tromey@adacore.com>
4503
4504 * linux-nat.c (linux_nat_target::supports_non_stop)
4505 (linux_nat_target::always_non_stop_p): Use "true".
4506 (linux_nat_target::supports_disable_randomization): Use "true" and
4507 "false".
4508
d0ce17d8
CT
45092020-07-16 Caroline Tice <cmtice@google.com>
4510
4511 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4512 (RNGLIST_HEADER_SIZE64): New constant definition.
4513 (struct dwop_section_names): Add rnglists_dwo.
4514 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4515 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4516 (struct dwo_sections): Add rnglists field.
4517 (read_attribut_reprocess): Add tag parameter.
4518 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4519 (cu_debug_rnglists_section): New function (decl & definition).
4520 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4521 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4522 die whose range is being checked; get rnglist section from
4523 cu_debug_rnglists_section, to get from either objfile or dwo file as
4524 appropriate. Add cases for DW_RLE_base_addressx,
4525 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4526 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4527 test inside if-condition and updating complaint message.
4528 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4529 dwarf2_rnglists_process.
4530 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4531 dwarf2_ranges_process.
4532 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4533 need_ranges_base and update comment appropriately. Also pass die tag
4534 to dwarf2_ranges_read.
4535 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4536 need_ranges_base and update comment appropriately. Also pass die tag
4537 to dwarf2_ranges_process.
4538 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4539 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4540 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4541 need_ranges_base and update comment appropriately. Also pass die tag
4542 to read_attribute_reprocess and dwarf2_ranges_read.
4543 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4544 and update function comment appropriately.
4545 (read_loclist_index): Call read_loclists_rnglists_header instead of
4546 read_loclist_header.
4547 (read_rnglist_index): New function.
4548 (read_attribute_reprocess): Add tag parameter. Add code for
4549 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4550 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4551
3dcc261c
AB
45522020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4553
4554 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4555 being resolved.
4556
ccb9eba6
AB
45572020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4558
4559 * arch-utils.c (show_architecture): Update formatting of messages.
4560
cf88be68
SM
45612020-07-12 Simon Marchi <simon.marchi@efficios.com>
4562
4563 * gdbtypes.h (struct type) <bounds>: Handle array and string
4564 types.
4565 * ada-lang.c (assign_aggregate): Use type::bounds on
4566 array/string type.
4567 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4568 * c-varobj.c (c_number_of_children): Likewise.
4569 (c_describe_child): Likewise.
4570 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4571 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4572 (f_type_print_base): Likewise.
4573 * f-valprint.c (f77_array_offset_tbl): Likewise.
4574 (f77_get_upperbound): Likewise.
4575 (f77_print_array_1): Likewise.
4576 * guile/scm-type.c (gdbscm_type_range): Likewise.
4577 * m2-typeprint.c (m2_array): Likewise.
4578 (m2_is_long_set_of_type): Likewise.
4579 * m2-valprint.c (get_long_set_bounds): Likewise.
4580 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4581 * python/py-type.c (typy_range): Likewise.
4582 * rust-lang.c (rust_internal_print_type): Likewise.
4583 * type-stack.c (type_stack::follow_types): Likewise.
4584 * valarith.c (value_subscripted_rvalue): Likewise.
4585 * valops.c (value_cast): Likewise.
4586
509971ae
SM
45872020-07-12 Simon Marchi <simon.marchi@efficios.com>
4588
4589 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4590 callers to use the equivalent accessor methods.
4591
107406b7
SM
45922020-07-12 Simon Marchi <simon.marchi@efficios.com>
4593
4594 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4595 (struct type) <bit_stride>: New method.
4596 (TYPE_BIT_STRIDE): Remove.
4597 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4598
bb789949
SM
45992020-07-12 Simon Marchi <simon.marchi@efficios.com>
4600
4601 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4602 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4603 callers to use the equivalent accessor methods instead.
4604
39498edb
SM
46052020-07-12 Simon Marchi <simon.marchi@efficios.com>
4606
4607 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4608 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4609 callers to use the equivalent accessor methods instead.
4610
3b606f38
SM
46112020-07-12 Simon Marchi <simon.marchi@efficios.com>
4612
4613 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4614 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4615 to use dynamic_prop::kind.
4616
064d9cb9
SM
46172020-07-12 Simon Marchi <simon.marchi@efficios.com>
4618
4619 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4620 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4621 to get the bound property's kind and check against
4622 PROP_UNDEFINED.
4623
5537ddd0
SM
46242020-07-12 Simon Marchi <simon.marchi@efficios.com>
4625
4626 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4627 all callers to use type::range_bounds followed by
4628 dynamic_prop::{low,high}.
4629
8c2e4e06
SM
46302020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4631
4632 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4633 const_val, set_const_val, baton, set_locexpr, set_loclist,
4634 set_addr_offset, variant_parts, set_variant_parts,
4635 original_type, set_original_type>: New methods.
4636 <kind>: Rename to...
4637 <m_kind>: ... this. Update all users to use the new methods
4638 instead.
4639 <data>: Rename to...
4640 <m_data>: ... this. Update all users to use the new methods
4641 instead.
4642
7c6f2712
SM
46432020-07-12 Simon Marchi <simon.marchi@efficios.com>
4644
4645 * gdbtypes.c (get_discrete_bounds): Return failure if
4646 the range type's bounds are not both defined and constant
4647 values.
4648 (get_array_bounds): Update comment. Remove undefined bound check.
4649
599088e3
SM
46502020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4651
4652 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4653 the type::bounds method directly.
4654
c4dfcb36
SM
46552020-07-12 Simon Marchi <simon.marchi@efficios.com>
4656
4657 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4658 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4659 are used to set the range type's bounds to use set_bounds.
4660
0a278aa7
PW
46612020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4662
4663 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4664
cce20f10
PA
46652020-07-10 Pedro Alves <pedro@palves.net>
4666
4667 * gdbthread.h (inferior_ref): Define.
4668 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4669 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4670 * thread.c
4671 (scoped_restore_current_thread::restore):
4672 Adjust to gdb::ref_ptr.
4673 (scoped_restore_current_thread::~scoped_restore_current_thread):
4674 Remove manual decref handling.
4675 (scoped_restore_current_thread::scoped_restore_current_thread):
4676 Adjust to use
4677 inferior_ref::new_reference/thread_info_ref::new_reference.
4678 Incref the thread before calling get_frame_id instead of after.
4679 Let TARGET_CLOSE_ERROR propagate.
4680
6d7aa592
PA
46812020-07-10 Pedro Alves <pedro@palves.net>
4682
4683 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4684 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4685 NOT_AVAILABLE_ERROR.
4686 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4687 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4688
b3e3a4c1
SM
46892020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4690 Pedro Alves <pedro@palves.net>
4691
4692 PR gdb/26199
4693 * infrun.c (threads_are_resumed_pending_p): Delete.
4694 (do_target_wait): Remove threads_are_executing and
4695 threads_are_resumed_pending_p checks from the inferior_matches
4696 lambda. Update comments.
4697
d6cc5d98
PA
46982020-07-10 Pedro Alves <pedro@palves.net>
4699
4700 PR gdb/26199
4701 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4702 executing threads.
4703
7d3badc6
PA
47042020-07-10 Pedro Alves <pedro@palves.net>
4705
4706 PR gdb/26199
4707 * infrun.c (handle_no_resumed): Handle multiple targets.
4708
42bd97a6
PA
47092020-07-10 Pedro Alves <pedro@palves.net>
4710
4711 PR gdb/26199
4712 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4713 target_is_async_p.
4714
43667cc6
PA
47152020-07-10 Pedro Alves <pedro@palves.net>
4716
4717 PR gdb/26199
4718 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4719 threads, not all threads.
4720
96118d11
PA
47212020-07-10 Pedro Alves <pedro@palves.net>
4722
4723 PR gdb/26199
4724 * remote.c (remote_target::open_1): Pass remote target pointer as
4725 data to create_async_event_handler.
4726 (remote_async_inferior_event_handler): Mark async event handler
4727 before returning if the remote target still has either pending
4728 events or unacknowledged notifications.
4729
54904d81
JB
47302020-07-10 John Baldwin <jhb@FreeBSD.org>
4731
4732 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4733 declaration.
4734 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4735 function.
4736
f37e5866
JB
47372020-07-09 John Baldwin <jhb@FreeBSD.org>
4738
4739 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4740 inferior_ptid.
4741
fc238d4a
JB
47422020-07-09 John Baldwin <jhb@FreeBSD.org>
4743
4744 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4745 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4746 AT_FREEBSD_PS_STRINGS.
4747
6e2469ff
HD
47482020-07-08 Hannes Domani <ssbssa@yahoo.de>
4749
4750 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4751 of debugfile path on Windows.
4752
d1076c41
JB
47532020-07-08 John Baldwin <jhb@FreeBSD.org>
4754
4755 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4756 argument to 'data'.
4757
15f3b077
TT
47582020-07-08 Tom Tromey <tromey@adacore.com>
4759
4760 * ada-lang.c (ada_exception_message_1): Use read_memory.
4761
9fc501fd
AB
47622020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4763
4764 PR python/22748
4765 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4766 special handling for inline frames.
4767 * findvar.c (value_of_register_lazy): Skip inline frames when
4768 creating lazy register values.
4769 * frame.c (frame_id_computed_p): Delete definition.
4770 * frame.h (frame_id_computed_p): Delete declaration.
4771
64cb3757
AB
47722020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4773
4774 * NEWS: Mention additions to Python API.
4775 * python/py-arch.c (archpy_register_groups): New function.
4776 (arch_object_methods): Add 'register_groups' method.
4777 * python/py-registers.c (reggroup_iterator_object): New struct.
4778 (reggroup_object): New struct.
4779 (gdbpy_new_reggroup): New function.
4780 (gdbpy_reggroup_to_string): New function.
4781 (gdbpy_reggroup_name): New function.
4782 (gdbpy_reggroup_iter): New function.
4783 (gdbpy_reggroup_iter_next): New function.
4784 (gdbpy_new_reggroup_iterator): New function
4785 (gdbpy_initialize_registers): Register new types.
4786 (reggroup_iterator_object_type): Define new Python type.
4787 (gdbpy_reggroup_getset): New static global.
4788 (reggroup_object_type): Define new Python type.
4789 * python/python-internal.h
4790
0f767f94
AB
47912020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4792
4793 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4794 * python/py-arch.c (archpy_registers): New function.
4795 (arch_object_methods): Add 'registers' method.
4796 * python/py-registers.c: New file.
4797 * python/python-internal.h
4798 (gdbpy_new_register_descriptor_iterator): Declare.
4799 (gdbpy_initialize_registers): Declare.
4800 * python/python.c (do_start_initialization): Call
4801 gdbpy_initialize_registers.
4802 * NEWS: Mention additions to the Python API.
4803
87dbc774
AB
48042020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4805
4806 * NEWS: Mention new Python API method.
4807 * python/py-unwind.c (pending_framepy_architecture): New function.
4808 (pending_frame_object_methods): Add architecture method.
4809
3bc98c0c
AB
48102020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4811
4812 * gdbarch.c: Regenerate.
4813 * gdbarch.h: Regenerate.
4814 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4815 (gdbarch_data): Use internal_error for the case where
4816 deprecated_set_gdbarch_data was originally needed.
4817 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4818 and use passed in obstack.
4819 (libunwind_frame_set_descr): Should no longer get back NULL from
4820 gdbarch_data.
4821 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4822 type.
4823 * user-regs.c (user_regs_init): Update parameters, and use passed
4824 in obstack.
4825 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4826 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4827
d8cc8af6
TV
48282020-07-06 Tom de Vries <tdevries@suse.de>
4829
4830 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4831 End-Of-Sequence in lte_is_less_than.
4832 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4833 "gdb: Don't reorder line table entries too much when sorting".
4834
947f7597
TV
48352020-07-06 Tom de Vries <tdevries@suse.de>
4836
4837 PR tui/26205
4838 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4839
1e7c1b22
TV
48402020-07-05 Tom de Vries <tdevries@suse.de>
4841
4842 PR build/26187
4843 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4844 std::uncaught_exceptions instead of deprecated
4845 std::uncaught_exception.
4846
a36158ec
SM
48472020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4848
4849 * macroexp.h (macro_stringify): Return
4850 gdb::unique_xmalloc_ptr<char>.
4851 * macroexp.c (macro_stringify): Likewise.
4852 * macrotab.c (fixup_definition): Update.
4853
14d960c8
SM
48542020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4855
4856 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4857 (lex_one_token): Update.
4858 * macroexp.c (struct macro_buffer) <release>: Return
4859 gdb::unique_xmalloc_ptr<char>.
4860 (macro_stringify): Update.
4861 (macro_expand): Update.
4862 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4863 * macroexp.h (macro_expand_next): Likewise.
4864
211d5b1c
SM
48652020-07-02 Simon Marchi <simon.marchi@efficios.com>
4866
4867 * macroexp.h (macro_lookup_ftype): Remove.
4868 (macro_expand, macro_expand_once, macro_expand_next): Remove
4869 lookup function parameters, add scope parameter.
4870 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4871 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4872 * macroscope.h (standard_macro_lookup): Change parameter type
4873 to macro_scope.
4874 * macroscope.c (standard_macro_lookup): Likewise.
4875 * c-exp.y (lex_one_token): Update.
4876 * macrocmd.c (macro_expand_command): Likewise.
4877 (macro_expand_once_command): Likewise.
4878
b1a35af2
SM
48792020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4880
4881 * inf-loop.c (inferior_event_handler): Remove client_data param.
4882 * inf-loop.h (inferior_event_handler): Likewise.
4883 * infcmd.c (step_1): Adjust.
4884 * infrun.c (proceed): Adjust.
4885 (fetch_inferior_event): Remove client_data param.
4886 (infrun_async_inferior_event_handler): Adjust.
4887 * infrun.h (fetch_inferior_event): Remove `void *` param.
4888 * linux-nat.c (handle_target_event): Adjust.
4889 * record-btrace.c (record_btrace_handle_async_inferior_event):
4890 Adjust.
4891 * record-full.c (record_full_async_inferior_event_handler):
4892 Adjust.
4893 * remote.c (remote_async_inferior_event_handler): Adjust.
4894
1cdf9e33
TT
48952020-07-01 Tom Tromey <tom@tromey.com>
4896
4897 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4898 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4899
32c1e210
TT
49002020-07-01 Tom Tromey <tom@tromey.com>
4901
4902 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4903 tui_gen_win_info.
4904 (tui_win_info::make_window): Merge with
4905 tui_gen_win_info::make_window.
4906 (tui_win_info::make_visible): Move from tui_gen_win_info.
4907 * tui/tui-win.c (tui_win_info::max_width): Move from
4908 tui_gen_win_info.
4909 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4910 type.
4911 <window_factory>: Likewise.
4912 * tui/tui-layout.c (tui_win_info::resize): Move from
4913 tui_gen_win_info.
4914 (make_standard_window): Change return type.
4915 (get_locator_window, tui_get_window_by_name): Likewise.
4916 (tui_layout_window::apply): Remove a cast.
4917 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4918 (struct tui_win_info): Merge with tui_gen_win_info.
4919 (struct tui_gen_win_info): Remove.
4920
a30cb6da
TT
49212020-07-01 Tom Tromey <tom@tromey.com>
4922
4923 * tui/tui-stack.h (struct tui_locator_window): Derive from
4924 tui_win_info.
4925 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4926 <can_box>: New method.
4927
1eb2161f
TT
49282020-07-01 Tom Tromey <tom@tromey.com>
4929
4930 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4931
7134f2eb
TT
49322020-07-01 Tom Tromey <tom@tromey.com>
4933
4934 * tui/tui-regs.c (tui_data_window::display_registers_from)
4935 (tui_data_window::display_registers_from)
4936 (tui_data_window::first_data_item_displayed)
4937 (tui_data_window::delete_data_content_windows): Update.
4938 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4939 Remove.
4940 (tui_data_window::check_register_values): Update.
4941 (tui_data_item_window::rerender): Add parameters. Update.
4942 (tui_data_item_window::refresh_window): Remove.
4943 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4944 virtual.
4945 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4946 tui_gen_win_info.
4947 <refresh_window, max_height, min_height>: Remove.
4948 <rerender>: Add parameters.
4949 <x, y, visible>: New members.
4950 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4951 <m_item_width>: New member.
4952
22b7b041
TT
49532020-07-01 Tom Tromey <tom@tromey.com>
4954
4955 * tui/tui-regs.c (tui_data_window::show_register_group)
4956 (tui_data_window::check_register_values): Update.
4957 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4958 from item_no.
4959
c9753adb
TT
49602020-07-01 Tom Tromey <tom@tromey.com>
4961
4962 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4963 useless "if".
4964
9ab26b4a
TT
49652020-07-01 Tom Tromey <tom@tromey.com>
4966
4967 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4968 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4969
e555083f
TT
49702020-07-01 Tom Tromey <tom@tromey.com>
4971
4972 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4973 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4974 (struct tui_line_or_address): Move from tui-data.h.
4975 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4976 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4977 (tui_cmd_window, tui_source_window_base, tui_source_window)
4978 (tui_disasm_window): Don't declare.
4979 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4980 to tui-winsource.h.
4981 (SINGLE_KEY): Move to tui-stack.c.
4982
7a02bab7
TT
49832020-07-01 Tom Tromey <tom@tromey.com>
4984
4985 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4986 std::string.
4987 * tui/tui-regs.c (class tab_expansion_file): New.
4988 (tab_expansion_file::write): New method.
4989 (tui_register_format): Change return type. Use
4990 tab_expansion_file.
4991 (tui_get_register, tui_data_window::display_registers_from)
4992 (tui_data_item_window::rerender): Update.
4993 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4994 * tui/tui-io.c (tui_expand_tabs): Remove.
4995
ea68593b
TT
49962020-07-01 Tom Tromey <tom@tromey.com>
4997
4998 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4999
a8caed5d
FS
50002020-07-01 Fangrui Song <maskray@google.com>
5001
5002 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
5003
9cdf9820
AKS
50042020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5005
5006 * dwarf2/read.c (set_die_type): Removed conditions to restrict
5007 forms for DW_AT_associated and DW_AT_allocated attributes,
5008 which is already checked in function attr_to_dynamic_prop.
5009
a1520ad8
TT
50102020-06-30 Tom Tromey <tromey@adacore.com>
5011
5012 * dwarf2/read.c (quirk_rust_enum): Correctly call
5013 alloc_rust_variant for default-less enum.
5014
5ac58899
TT
50152020-06-30 Tom Tromey <tromey@adacore.com>
5016
5017 PR build/26183:
5018 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
5019 gdb::to_string.
5020
19b187a9
SM
50212020-06-29 Simon Marchi <simon.marchi@efficios.com>
5022
5023 * gdbarch.sh (displaced_step_copy_insn): Update doc.
5024 * gdbarch.h: Re-generate.
5025
cd4c4c07
TT
50262020-06-28 Tom Tromey <tom@tromey.com>
5027
5028 * command.h (cmd_types): Remove.
5029 (cmd_type): Don't declare.
5030 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
5031 typedef.
5032 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
5033 * cli/cli-decode.c (cmd_type): Remove.
5034
05779d57
PA
50352020-06-27 Pedro Alves <palves@redhat.com>
5036
5037 * fork-child.c (prefork_hook): Adjust.
5038 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
5039 Delete.
5040 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
5041 * inferior.c (inferior::set_tty, inferior::tty): New methods.
5042 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
5043 Remove declarations.
5044 (struct inferior) <set_tty, tty>: New methods.
5045 (struct inferior) <terminal>: Rename to ...
5046 (struct inferior) <m_terminal>: ... this and make private.
5047 * main.c (captured_main_1): Adjust.
5048 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
5049 (mi_cmd_inferior_tty_show): Adjust.
5050 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
5051 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
5052
1776e3e5
NA
50532020-06-26 Nick Alcock <nick.alcock@oracle.com>
5054
5055 * configure.ac: Add --enable-libctf: handle --disable-static
5056 properly.
5057 * acinclude.m4: sinclude ../config/enable.m4.
5058 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
5059 (LIBCTF): Substitute in.
5060 (CTF_DEPS): New, likewise.
5061 (CLIBS): libctf needs symbols from libbfd: move earlier.
5062 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
5063 flags.
5064 * ctfread.c: Surround in ENABLE_LIBCTF.
5065 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
5066 * configure: Regenerate.
5067 * config.in: Likewise.
5068
58373b80
SM
50692020-06-25 Simon Marchi <simon.marchi@efficios.com>
5070
5071 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
5072
277474ee
SM
50732020-06-25 Simon Marchi <simon.marchi@efficios.com>
5074
5075 * inferior.h (struct inferior) <terminal>: Change type to
5076 gdb::unique_xmalloc_ptr<char>.
5077 * inferior.c (inferior::~inferior): Don't free inf->terminal.
5078 * infcmd.c (set_inferior_io_terminal): Don't free terminal
5079 field, adjust to unique pointer.
5080 (get_inferior_io_terminal): Adjust to unique pointer.
5081
6d74da72
AB
50822020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5083
5084 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5085 registers, not just the known core set of registers.
5086
2e52d038
AB
50872020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5088
5089 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5090 fflags, frm, and fcsr registers.
5091 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5092 restore groups.
5093 (riscv_tdesc_unknown_reg): New function.
5094 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5095 tdesc_use_registers.
5096 * riscv-tdep.h (struct gdbarch_tdep): Add
5097 unknown_csrs_first_regnum, unknown_csrs_count,
5098 duplicate_fflags_regnum, duplicate_frm_regnum, and
5099 duplicate_fcsr_regnum fields.
5100
be64fd07
AB
51012020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5102
5103 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5104 callback, use the callback (when not null) to help number unknown
5105 registers.
5106 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5107 (tdesc_use_registers): Add extra parameter to declaration.
5108
3b9fce96
AB
51092020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5110
5111 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5112 in the file.
5113 (class riscv_pending_register_alias): Likewise.
5114 (riscv_register_feature::register_info): Change 'required_p' field
5115 to 'required', and change its type. Add 'check' member function.
5116 (riscv_register_feature::register_info::check): Define new member
5117 function.
5118 (riscv_xreg_feature): Change initialisation of 'required' field.
5119 (riscv_freg_feature): Likewise.
5120 (riscv_virtual_feature): Likewise.
5121 (riscv_csr_feature): Likewise.
5122 (riscv_check_tdesc_feature): Take extra parameter, the csr
5123 tdesc_feature, rewrite the function to use the new
5124 riscv_register_feature::register_info::check function.
5125 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5126
865bad26
AB
51272020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5128
5129 * features/Makefile: Remove all references to the deleted files
5130 below.
5131 * features/riscv/32bit-csr.c: Deleted.
5132 * features/riscv/32bit-csr.xml: Deleted.
5133 * features/riscv/64bit-csr.c: Deleted.
5134 * features/riscv/64bit-csr.xml: Deleted.
5135 * features/riscv/rebuild-csr-xml.sh: Deleted.
5136
ed69cbc8
AB
51372020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5138
5139 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5140 whitespace error for declaration of names member variable.
5141 (struct riscv_register_feature): Add new prefer_first_name member
5142 variable, and fix whitespace error in declaration of registers.
5143 (riscv_xreg_feature): Initialize prefer_first_name field.
5144 (riscv_freg_feature): Likewise.
5145 (riscv_virtual_feature): Likewise.
5146 (riscv_csr_feature): Likewise.
5147 (riscv_register_name): Expand on comments. Remove register name
5148 modifications for CSR and virtual registers.
5149
4445e8f5
AB
51502020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5151
5152 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5153 errors.
5154
767a879e
AB
51552020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5156
5157 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5158 riscv-opc.h.
5159 (class riscv_pending_register_alias): New class.
5160 (riscv_check_tdesc_feature): Take vector of pending aliases and
5161 populate it as appropriate.
5162 (riscv_setup_register_aliases): Delete.
5163 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5164 to riscv_check_tdesc_feature in all cases. Use the vector to
5165 create the register aliases.
5166
bb6e55f3
RO
51672020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5168
5169 * sol2-tdep.c (sol2_static_transform_name): Remove.
5170 (sol2_init_abi): Don't register it.
5171 * gdbarch.sh (static_transform_name): Remove.
5172 * gdbarch.c, gdbarch.h: Regenerate.
5173
5174 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5175 gdbarch_static_transform_name.
5176 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5177 * stabsread.c (define_symbol) <'X'>: Remove.
5178 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5179 handling.
5180 <'V'>: Likewise.
5181 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5182 <'S'>: Remove call to gdbarch_static_transform_name.
5183
c6d36836
RO
51842020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5185
5186 * procfs.c (procfs_pre_trace): New function.
5187 (procfs_target::create_inferior): Pass it to fork_inferior.
5188
a7e6196b
RO
51892020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5190
5191 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5192 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5193 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5194 sol2-tdep.o, sparc-sol2-tdep.o.
5195 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5196 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5197 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5198 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5199
d412e696
RO
52002020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5201
5202 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5203 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5204 Call sol2_init_abi.
5205 Remove calls to set_gdbarch_skip_solib_resolver,
5206 set_gdbarch_core_pid_to_str.
5207 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5208 (i386_sol2_static_transform_name): Remove.
5209 (i386_sol2_init_abi): Call sol2_init_abi.
5210 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5211 set_gdbarch_static_transform_name,
5212 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5213 Use sol2_sigtramp_p.
5214 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5215 (sol2_sigtramp_p): New function.
5216 (sol2_static_transform_name): New function.
5217 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5218 (sol2_init_abi): New function.
5219 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5220 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5221 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5222 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5223 (sparc_sol2_static_transform_name): Remove.
5224 (sparc32_sol2_init_abi): Call sol2_init_abi.
5225 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5226 set_gdbarch_static_transform_name,
5227 set_gdbarch_skip_solib_resolver,
5228 set_gdbarch_core_pid_to_str.
5229 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5230 (sparc_sol2_static_transform_name): Remove
5231 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5232 call sol2_sigtramp_p.
5233 (sparc64_sol2_init_abi): Call sol2_init_abi.
5234 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5235 set_gdbarch_static_transform_name,
5236 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5237
a8654e7d
PW
52382020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5239
5240 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5241 * exec.c (validate_exec_file): If from_tty, set both
5242 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5243 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5244 and from_tty, unconditionally ask a confirmation.
5245
caa7fd04
AB
52462020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5247
5248 * target-descriptions.c (tdesc_architecture_name): Protect against
5249 NULL pointer dereference.
5250 (maint_print_xml_tdesc_cmd): New function.
5251 (_initialize_target_descriptions): Register new 'maint print
5252 xml-tdesc' command and give it the filename completer.
5253 * NEWS: Mention new 'maint print xml-tdesc' command.
5254
fbf42f4e
AB
52552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5256
5257 * target-descriptions.c (class tdesc_compatible_info): New class.
5258 (struct target_desc): Change type of compatible vector.
5259 (tdesc_compatible_p): Update for change in type of
5260 target_desc::compatible.
5261 (tdesc_compatible_info_list): New function.
5262 (tdesc_compatible_info_arch_name): New function.
5263 (tdesc_add_compatible): Update for change in type of
5264 target_desc::compatible.
5265 (print_c_tdesc::visit_pre): Likewise.
5266
20821f4e
AB
52672020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5268
5269 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5270 whitespace to underscore.
5271 (maint_print_c_tdesc_cmd): Use fake filename for target
5272 descriptions that came from the target.
5273 (_initialize_target_descriptions): Add filename command completion
5274 for 'maint print c-tdesc'.
5275
1fb5ee62
SM
52762020-06-23 Simon Marchi <simon.marchi@efficios.com>
5277
5278 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5279 lines.
5280
fc3ecb3e
SM
52812020-06-23 Simon Marchi <simon.marchi@efficios.com>
5282
5283 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5284 lines.
5285 (dwarf2_find_location_expression): Likewise.
5286 (call_site_parameter_matches): Likewise.
5287 (dwarf2_compile_expr_to_ax): Likewise.
5288 (disassemble_dwarf_expression): Likewise.
5289 (loclist_describe_location): Likewise.
5290
236ef034
PA
52912020-06-23 Pedro Alves <palves@redhat.com>
5292
5293 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5294 progspace-and-thread.h. Include scoped-mock-context.h instead.
5295 (register_to_value_test): Use scoped_mock_context.
5296 * regcache.c: Include "scoped-mock-context.h".
5297 (cooked_read_test): Don't error out if a target is already pushed.
5298 Use scoped_mock_context. Adjust.
5299 * scoped-mock-context.h: New file.
5300
39e7ecca
AB
53012020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5302
5303 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5304 initializer.
5305 (ada_language::is_string_type_p): New member function.
5306 * c-lang.c (c_language_data): Delete la_is_string_type_p
5307 initializer.
5308 (cplus_language_data): Likewise.
5309 (asm_language_data): Likewise.
5310 (minimal_language_data): Likewise.
5311 * d-lang.c (d_language_data): Likewise.
5312 * f-lang.c (f_is_string_type_p): Delete function, implementation
5313 moved to f_language::is_string_type_p.
5314 (f_language_data): Delete la_is_string_type_p initializer.
5315 (f_language::is_string_type_p): New member function,
5316 implementation from f_is_string_type_p.
5317 * go-lang.c (go_is_string_type_p): Delete function, implementation
5318 moved to go_language::is_string_type_p.
5319 (go_language_data): Delete la_is_string_type_p initializer.
5320 (go_language::is_string_type_p): New member function,
5321 implementation from go_is_string_type_p.
5322 * language.c (language_defn::is_string_type_p): Define new member
5323 function.
5324 (default_is_string_type_p): Make static, add comment copied from
5325 header file.
5326 (unknown_language_data): Delete la_is_string_type_p initializer.
5327 (unknown_language::is_string_type_p): New member function.
5328 (auto_language_data): Delete la_is_string_type_p initializer.
5329 (auto_language::is_string_type_p): New member function.
5330 * language.h (language_data): Delete la_is_string_type_p field.
5331 (language_defn::is_string_type_p): Declare new function.
5332 (default_is_string_type_p): Delete desclaration, move comment to
5333 definition.
5334 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5335 moved to m2_language::is_string_type_p.
5336 (m2_language_data): Delete la_is_string_type_p initializer.
5337 (m2_language::is_string_type_p): New member function,
5338 implementation from m2_is_string_type_p.
5339 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5340 initializer.
5341 * opencl-lang.c (opencl_language_data): Likewise.
5342 * p-lang.c (pascal_is_string_type_p): Delete function,
5343 implementation moved to pascal_language::is_string_type_p.
5344 (pascal_language_data): Delete la_is_string_type_p initializer.
5345 (pascal_language::is_string_type_p): New member function,
5346 implementation from pascal_is_string_type_p.
5347 * rust-lang.c (rust_is_string_type_p): Delete function,
5348 implementation moved to rust_language::is_string_type_p.
5349 (rust_language_data): Delete la_is_string_type_p initializer.
5350 (rust_language::is_string_type_p): New member function,
5351 implementation from rust_is_string_type_p.
5352 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5353 is_string_type_p.
5354
4ffc13fb
AB
53552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5356
5357 * ada-lang.c (ada_language_data): Delete la_print_typedef
5358 initializer.
5359 (ada_language::print_typedef): New member function.
5360 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5361 (cplus_language_data): Likewise.
5362 (asm_language_data): Likewise.
5363 (minimal_language_data): Likewise.
5364 * d-lang.c (d_language_data): Likewise.
5365 * f-lang.c (f_language_data): Likewise.
5366 (f_language::print_typedef): New member function.
5367 * go-lang.c (go_language_data): Delete la_print_typedef
5368 initializer.
5369 * language.c (language_defn::print_typedef): Define member
5370 function.
5371 (unknown_language_data): Delete la_print_typedef initializer.
5372 (unknown_language::print_typedef): New member function.
5373 (auto_language_data): Delete la_print_typedef initializer.
5374 (auto_language::print_typedef): New member function.
5375 * language.h (language_data): Delete la_print_typedef field.
5376 (language_defn::print_typedef): Declare new member function.
5377 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5378 (default_print_typedef): Delete declaration.
5379 * m2-lang.c (m2_language_data): Delete la_print_typedef
5380 initializer.
5381 (m2_language::print_typedef): New member function.
5382 * objc-lang.c (objc_language_data): Delete la_print_typedef
5383 initializer.
5384 * opencl-lang.c (opencl_language_data): Likewise.
5385 * p-lang.c (pascal_language_data): Likewise.
5386 (pascal_language::print_typedef): New member function.
5387 * rust-lang.c (rust_print_typedef): Delete function,
5388 implementation moved to rust_language::print_typedef.
5389 (rust_language): Delete la_print_typedef initializer.
5390 (rust_language::print_typedef): New member function,
5391 implementation from rust_print_typedef.
5392 * typeprint.c (default_print_typedef): Delete.
5393
d711ee67
AB
53942020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5395
5396 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5397 (ada_language::printstr): New member function.
5398 * c-lang.c (c_language_data): Delete la_printstr initializer.
5399 (cplus_language_data): Likewise.
5400 (asm_language_data): Likewise.
5401 (minimal_language_data): Likewise.
5402 * d-lang.c (d_language_data): Likewise.
5403 * f-lang.c (f_printstr): Rename to f_language::printstr.
5404 (f_language_data): Delete la_printstr initializer.
5405 (f_language::printstr): New member function, implementation from
5406 f_printstr.
5407 * go-lang.c (go_language_data): Delete la_printstr initializer.
5408 * language.c (language_defn::printstr): Define new member
5409 function.
5410 (unk_lang_printstr): Delete.
5411 (unknown_language_data): Delete la_printstr initializer.
5412 (unknown_language::printstr): New member function.
5413 (auto_language_data): Delete la_printstr initializer.
5414 (auto_language::printstr): New member function.
5415 * language.h (language_data): Delete la_printstr field.
5416 (language_defn::printstr): Declare new member function.
5417 (LA_PRINT_STRING): Update call to printstr.
5418 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5419 (m2_language_data): Delete la_printstr initializer.
5420 (m2_language::printstr): New member function, implementation from
5421 m2_printstr.
5422 * objc-lang.c (objc_language_data): Delete la_printstr
5423 initializer.
5424 * opencl-lang.c (opencl_language_data): Likewise.
5425 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5426 (pascal_language_data): Delete la_printstr initializer.
5427 (pascal_language::printstr): New member function, implementation
5428 from pascal_printstr.
5429 * p-lang.h (pascal_printstr): Delete declaration.
5430 * rust-lang.c (rust_printstr): Update header comment.
5431 (rust_language_data): Delete la_printstr initializer.
5432 (rust_language::printstr): New member function.
5433
52b50f2c
AB
54342020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5435
5436 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5437 (ada_language::printchar): New member function.
5438 * c-lang.c (c_language_data): Delete la_printchar initializer.
5439 (cplus_language_data): Likewise.
5440 (asm_language_data): Likewise.
5441 (minimal_language_data): Likewise.
5442 * d-lang.c (d_language_data): Likewise.
5443 * f-lang.c (f_printchar): Rename to f_language::printchar.
5444 (f_language_data): Delete la_printchar initializer.
5445 (f_language::printchar): New member function, implementation from
5446 f_printchar.
5447 * go-lang.c (go_language_data): Delete la_printchar initializer.
5448 * language.c (unk_lang_printchar): Delete.
5449 (language_defn::printchar): Define new member function.
5450 (unknown_language_data): Delete la_printchar initializer.
5451 (unknown_language::printchar): New member function.
5452 (auto_language_data): Delete la_printchar initializer.
5453 (auto_language::printchar): New member function.
5454 * language.h (language_data): Delete la_printchar field.
5455 (language_defn::printchar): Declare new member function.
5456 (LA_PRINT_CHAR): Update call to printchar.
5457 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5458 (m2_language::printchar): New member function.
5459 * objc-lang.c (objc_language_data): Delete la_printchar
5460 initializer.
5461 * opencl-lang.c (opencl_language_data): Likewise.
5462 * p-lang.c (pascal_language_data): Delete la_printchar
5463 initializer.
5464 (pascal_language::printchar): New member function.
5465 * rust-lang.c (rust_printchar): Rename to
5466 rust_language::printchar.
5467 (rust_language_data): Delete la_printchar initializer.
5468 (rust_language::printchar): New member function, implementation
5469 from rust_printchar.
5470
ec8cec5b
AB
54712020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5472
5473 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5474 (ada_language_data): Delete la_emitchar initializer.
5475 (ada_language::emitchar): New member function, implementation from
5476 emit_char.
5477 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5478 (cplus_language_data): Likewise.
5479 (asm_language_data): Likewise.
5480 (minimal_language_data): Likewise.
5481 * d-lang.c (d_language_data): Likewise.
5482 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5483 (f_language_data): Delete la_emitchar initializer.
5484 (f_language::emitchar): New member function, implementation from
5485 f_emit_char.
5486 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5487 * language.c (unk_lang_emit_char): Delete.
5488 (language_defn::emitchar): New member function definition.
5489 (unknown_language_data): Delete la_emitchar initializer.
5490 (unknown_language::emitchar): New member function.
5491 (auto_language_data): Delete la_emitchar initializer.
5492 (auto_language::emitchar): New member function.
5493 * language.h (language_data): Delete la_emitchar field.
5494 (language_defn::emitchar): New member field declaration.
5495 (LA_EMIT_CHAR): Update call to emitchar.
5496 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5497 (m2_language_data): Delete la_emitchar initializer.
5498 (m2_language::emitchar): New member function, implementation from
5499 m2_emit_char.
5500 * objc-lang.c (objc_language_data): Delete la_emitchar
5501 initializer.
5502 * opencl-lang.c (opencl_language_data): Likewise.
5503 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5504 (pascal_language_data): Delete la_emitchar initializer.
5505 (pascal_language::emitchar): New member function, implementation
5506 from pascal_emit_char.
5507 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5508 (rust_language_data): Delete la_emitchar initializer.
5509 (rust_language::emitchar): New member function, implementation
5510 from rust_emitchar.
5511
1bf9c363
AB
55122020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5513
5514 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5515 (ada_language_data): Delete la_post_parser initializer.
5516 (ada_language::post_parser): New member function.
5517 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5518 (cplus_language_data): Likewise.
5519 (asm_language_data): Likewise.
5520 (minimal_language_data): Likewise.
5521 * d-lang.c (d_language_data): Likewise.
5522 * f-lang.c (f_language_data): Likewise.
5523 * go-lang.c (go_language_data): Likewise.
5524 * language.c (unknown_language_data): Likewise.
5525 (auto_language_data): Likewise.
5526 * language.h (language_data): Delete la_post_parser field.
5527 (language_defn::post_parser): New member function.
5528 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5529 * objc-lang.c (objc_language_data): Likewise.
5530 * opencl-lang.c (opencl_language_data): Likewise.
5531 * p-lang.c (pascal_language_data): Likewise.
5532 * parse.c (parse_exp_in_context): Update call to post_parser.
5533 (null_post_parser): Delete definition.
5534 * parser-defs.h (null_post_parser): Delete declaration.
5535 * rust-lang.c (rust_language_data): Delete la_post_parser
5536 initializer.
5537
87afa652
AB
55382020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5539
5540 * ada-lang.c (parse): Rename to ada_language::parser.
5541 (ada_language_data): Delete la_parser initializer.
5542 (ada_language::parser): New member function, implementation from
5543 parse.
5544 * c-lang.c (c_language_data): Delete la_parser initializer.
5545 (cplus_language_data): Likewise.
5546 (asm_language_data): Likewise.
5547 (minimal_language_data): Likewise.
5548 * d-lang.c (d_language_data): Likewise.
5549 (d_language::parser): New member function.
5550 * f-lang.c (f_language_data): Delete la_parser initializer.
5551 (f_language::parser): New member function.
5552 * go-lang.c (go_language_data): Delete la_parser initializer.
5553 (go_language::parser): New member function.
5554 * language.c (unk_lang_parser): Delete.
5555 (language_defn::parser): Define new member function.
5556 (unknown_language_data): Delete la_parser initializer.
5557 (unknown_language::parser): New member function.
5558 (auto_language_data): Delete la_parser initializer.
5559 (auto_language::parser): New member function.
5560 * language.h (language_data): Delete la_parser field.
5561 (language_defn::parser): Declare new member function.
5562 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5563 (m2_language::parser): New member function.
5564 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5565 * opencl-lang.c (opencl_language_data): Likewise.
5566 * p-lang.c (pascal_language_data): Likewise.
5567 (pascal_language::parser): New member function.
5568 * parse.c (parse_exp_in_context): Update call to parser.
5569 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5570 (rust_language::parser): New member function.
5571
37825800
AB
55722020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5573
5574 * top.c (print_gdb_configuration): Print --with-python-libdir
5575 configuration value.
5576
5b860c93
PW
55772020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5578
5579 * NEWS: Mention change to the alias command.
5580
cf00cd6f
PW
55812020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5582
5583 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5584 (alias_command_completer)
5585 (make_alias_options_def_group): New functions.
5586 (alias_opts, alias_option_defs): New struct and array.
5587 (alias_usage_error): Update usage.
5588 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5589 Use option framework.
5590 (_initialize_cli_cmds): Update alias command help.
5591 Update aliases command help.
5592 (show_user):
5593 Add NULL for new default_args lookup_cmd argument.
5594 (valid_command_p): Rename to validate_aliased_command.
5595 Add NULL for new default_args lookup_cmd argument. Verify that the
5596 aliased_command has no default args.
5597 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5598 (lookup_cmd_1, lookup_cmd): New argument default_args.
5599 (add_alias_cmd):
5600 Add NULL for new default_args lookup_cmd argument.
5601 (print_help_for_command): Show default args under the layout
5602 alias some_alias = some_aliased_cmd some_alias_default_arg.
5603 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5604 xfree default_args in destructor.
5605 * cli/cli-script.c (process_next_line, do_define_command):
5606 Add NULL for new default_args lookup_cmd argument.
5607 * command.h: Declare new default_args argument in lookup_cmd
5608 and lookup_cmd_1.
5609 * completer.c (complete_line_internal_1):
5610 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5611 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5612 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5613 Likewise.
5614 * infcmd.c (_initialize_infcmd): Likewise.
5615 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5616 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5617 * python/py-param.c (add_setshow_generic): Likewise.
5618 * remote.c (_initialize_remote): Likewise.
5619 * top.c (execute_command): Prepend default_args if command has some.
5620 (set_verbose):
5621 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5622 * tracepoint.c (validate_actionline, encode_actions_1):
5623 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5624
bd920864
TBA
56252020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5626
5627 * jit.c (jit_read_descriptor): Use bool as the return type.
5628 (jit_breakpoint_re_set_internal): Use bool as the return type.
5629 Invert the return value logic; return true if the jit breakpoint
5630 has been successfully initialized.
5631 (jit_inferior_init): Update the call to
5632 jit_breakpoint_re_set_internal.
5633
f8098322
PA
56342020-06-22 Pedro Alves <palves@redhat.com>
5635
5636 PR gdb/25939
5637 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5638 Use the current inferior instead. Don't return
5639 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5640 wait again.
5641 * sol-thread.c (sol_thread_target::wait): Don't reference
5642 inferior_ptid.
5643 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5644 (sol_update_thread_list_callback): Use the current inferior's pid
5645 instead of inferior_ptid.
5646
196535a6
RO
56472020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5648
5649 * procfs.c: Cleanup many comments.
5650
5651 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5652 (AFTER_WATCHFLAG): Replace by value.
5653
5654 (MAIN_PROC_NAME_FORMAT): Inline ...
5655 (create_procinfo): ... here.
5656
5657 (procfs_debug_inferior): Remove SYS_exec handling.
5658 (syscall_is_exec): Likewise.
5659 (procfs_set_exec_trap): Likewise.
5660
5661 (syscall_is_lwp_exit): Inline in callers.
5662 (syscall_is_exit): Likewise.
5663 (syscall_is_exec): Likewise.
5664 (syscall_is_lwp_create): Likewise.
5665
5666 (invalidate_cache): Remove #if 0 code.
5667
5668 (make_signal_thread_runnable): Remove.
5669 (procfs_target::resume): Remove #if 0 code.
5670
cf6f3e86
RO
56712020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5672
5673 PR gdb/25939
5674 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5675 call ...
5676 (procfs_target::create_inferior): ... here.
5677
48e9cc84
PW
56782020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5679
5680 * exec.c (validate_exec_file): Ensure the build-id is up to
5681 date by calling reopen_exec_file (that checks file timestamp
5682 to decide to re-read the file).
5683
3922b302
PA
56842020-06-18 Pedro Alves <palves@redhat.com>
5685
5686 PR gdb/25412
5687 * gdbthread.h (delete_thread, delete_thread_silent)
5688 (find_thread_ptid): Update comments.
5689 * thread.c (current_thread_): New global.
5690 (is_current_thread): Move higher, and reimplement.
5691 (inferior_thread): Reimplement.
5692 (set_thread_exited): Use bool. Add assertions.
5693 (add_thread_silent): Simplify thread-reuse handling by always
5694 calling delete_thread.
5695 (delete_thread): Remove intro comment.
5696 (find_thread_ptid): Skip exited threads.
5697 (switch_to_thread_no_regs): Write to current_thread_.
5698 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5699 INFERIOR_PTID. Clear current_thread_.
5700
6dbdab44
PA
57012020-06-18 Pedro Alves <palves@redhat.com>
5702
5703 * aix-thread.c (pd_update): Use switch_to_thread.
5704
2da4b788
PA
57052020-06-18 Pedro Alves <palves@redhat.com>
5706
5707 * ravenscar-thread.c (ravenscar_thread_target): Update.
5708 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5709 (ravenscar_thread_target::add_active_thread): ... this. Don't
5710 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5711 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5712
50838d1b
PA
57132020-06-18 Pedro Alves <palves@redhat.com>
5714
5715 * nat/windows-nat.c (current_windows_thread): Remove.
5716 * nat/windows-nat.h (current_windows_thread): Remove.
5717 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5718 Adjust.
5719 (display_selectors): Adjust to fetch the current
5720 windows_thread_info based on inferior_ptid.
5721 (fake_create_process): No longer write to current_windows_thread.
5722 (windows_nat_target::get_windows_debug_event):
5723 Don't set inferior_ptid or current_windows_thread.
5724 (windows_nat_target::wait): Adjust to not rely on
5725 current_windows_thread.
5726 (do_initial_windows_stuff): Now a method of windows_nat_target.
5727 Switch to the last_ptid thread.
5728 (windows_nat_target::attach): Adjust.
5729 (windows_nat_target::detach): Use switch_to_no_thread instead of
5730 writing to inferior_ptid directly.
5731 (windows_nat_target::create_inferior): Adjust.
5732
31ce04e9
PA
57332020-06-18 Pedro Alves <palves@redhat.com>
5734
5735 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5736
1ee1a363
PA
57372020-06-18 Pedro Alves <palves@redhat.com>
5738
5739 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5740 after creating it, instead of writing to inferior_ptid. Don't
5741 write to inferior_ptid.
5742
6d350754
PA
57432020-06-18 Pedro Alves <palves@redhat.com>
5744
5745 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5746
5d971d48
PA
57472020-06-18 Pedro Alves <palves@redhat.com>
5748
5749 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5750 it, instead of writing to inferior_ptid.
5751
86e57d1b
PA
57522020-06-18 Pedro Alves <palves@redhat.com>
5753
5754 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5755 to inferior_ptid.
5756
f2e1c129
PA
57572020-06-18 Pedro Alves <palves@redhat.com>
5758
5759 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5760 instead of writing to inferior_ptid directly.
5761
60db1b85
PA
57622020-06-18 Pedro Alves <palves@redhat.com>
5763
5764 * corelow.c (core_target::close): Use switch_to_no_thread instead
5765 of writing to inferior_ptid directly.
5766 (add_to_thread_list, core_target_open): Use switch_to_thread
5767 instead of writing to inferior_ptid directly.
5768
fe7d6a8d
PA
57692020-06-18 Pedro Alves <palves@redhat.com>
5770
5771 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5772 inferior_ptid.
5773 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5774 inferior_ptid.
5775 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5776 inferior_ptid directly.
5777 (darwin_nat_target::init_thread_list): Switch to thread, instead
5778 of writing to inferior_ptid.
5779 (darwin_nat_target::attach): Don't write to inferior_ptid.
5780 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5781
975f8708
PA
57822020-06-18 Pedro Alves <palves@redhat.com>
5783
5784 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5785 thread.
5786 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5787 Instead use switch_to_thread.
5788 (gnu_nat_target::detach): Use switch_to_no_thread
5789 instead of writing to inferior_ptid directly. Used passed-in
5790 inferior instead of looking up the inferior by pid.
5791
1a204730
PA
57922020-06-18 Pedro Alves <palves@redhat.com>
5793
5794 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5795 inferior_ptid.
5796
ebe84f23
PA
57972020-06-18 Pedro Alves <palves@redhat.com>
5798
5799 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5800 inferior_ptid.
5801 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5802 thread.
5803 (nto_procfs_target::detach): Avoid referencing
5804 inferior_ptid. Use switch_to_no_thread instead of writing to
5805 inferior_ptid directly.
5806 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5807 instead of writing to inferior_ptid directly.
5808 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5809 to thread.
5810
191f02e5
PA
58112020-06-18 Pedro Alves <palves@redhat.com>
5812
5813 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5814 after creating it, instead of writing to inferior_ptid.
5815 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5816 to inferior_ptid directly.
5817 (gdbsim_target::wait): Don't write to inferior_ptid.
5818
0ac55310
PA
58192020-06-18 Pedro Alves <palves@redhat.com>
5820
5821 * remote.c (remote_target::remote_notice_new_inferior): Use
5822 switch_to_thread instead of writing to inferior_ptid directly.
5823 (remote_target::add_current_inferior_and_thread): Use
5824 switch_to_no_thread instead of writing to inferior_ptid directly.
5825 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5826 and switch_to_thread instead of using set_current_inferior or
5827 writing to inferior_ptid directly.
5828
5233f39b
PA
58292020-06-18 Pedro Alves <palves@redhat.com>
5830
5831 * tracectf.c (ctf_target_open): Switch to added thread instead of
5832 writing to inferior_ptid directly.
5833 (ctf_target::close): Use switch_to_no_thread instead of writing to
5834 inferior_ptid directly.
5835
087e161b
PA
58362020-06-18 Pedro Alves <palves@redhat.com>
5837
5838 * tracefile-tfile.c (tfile_target_open): Don't write to
5839 inferior_ptid directly, instead switch to added thread.
5840 (tfile_target::close): Use switch_to_no_thread instead of writing
5841 to inferior_ptid directly.
5842
7fb43e53
PA
58432020-06-18 Pedro Alves <palves@redhat.com>
5844
5845 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5846 (procfs_target::detach): Use switch_to_no_thread
5847 instead of writing to inferior_ptid directly.
5848 (do_attach): Change return type to void. Switch to the added
5849 thread.
5850 (procfs_target::create_inferior): Switch to the added thread.
5851 (procfs_do_thread_registers): Don't write to inferior_ptid.
5852
18493a00
PA
58532020-06-18 Pedro Alves <palves@redhat.com>
5854
5855 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5856 of writing to inferior_ptid.
5857 (scoped_restore_exited_inferior): Delete.
5858 (handle_vfork_child_exec_or_exit): Simplify using
5859 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5860 instead of writing to inferior_ptid.
5861 (THREAD_STOPPED_BY): Delete.
5862 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5863 (thread_stopped_by_hw_breakpoint): Delete.
5864 (save_waitstatus): Use
5865 scoped_restore_current_thread+switch_to_thread, and call
5866 target_stopped_by_watchpoint instead of
5867 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5868 instead of thread_stopped_by_sw_breakpoint, and
5869 target_stopped_by_hw_breakpoint instead of
5870 thread_stopped_by_hw_breakpoint.
5871 (handle_inferior_event)
5872 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5873 inferior_ptid directly, nor
5874 set_current_inferior/set_current_program_space. Use
5875 switch_to_thread / switch_to_inferior_no_thread instead.
5876
a0776b13
PA
58772020-06-18 Pedro Alves <palves@redhat.com>
5878
5879 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5880 instead of writing to inferior_ptid.
5881
6155c136
PA
58822020-06-18 Pedro Alves <palves@redhat.com>
5883
5884 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5885 added thread.
5886 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5887 to the added thread.
5888 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5889 instead of writing to inferior_ptid.
5890
c5316fc6
PA
58912020-06-18 Pedro Alves <palves@redhat.com>
5892
5893 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5894 (register_to_value_test): Mock a program_space too. Heap-allocate
5895 the address space. Don't write to inferior_ptid. Use
5896 switch_to_thread instead.
5897
8df01799
PA
58982020-06-18 Pedro Alves <palves@redhat.com>
5899
5900 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5901 Delete.
5902 (find_signalled_thread()): New, factored out from
5903 linux_make_corefile_notes and adjusted to handle exited threads.
5904 (linux_make_corefile_notes): Adjust to use the new
5905 find_signalled_thread.
5906
41792d68
PA
59072020-06-18 Pedro Alves <palves@redhat.com>
5908
5909 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5910 of saving/restoring inferior_ptid.
5911
612f258a
TT
59122020-06-17 Tom Tromey <tom@tromey.com>
5913
5914 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5915 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5916 declare.
5917 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5918
efb763a5
SM
59192020-06-15 Simon Marchi <simon.marchi@efficios.com>
5920
5921 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5922 of partial symtabs.
5923
2951f6c0
SM
59242020-06-17 Simon Marchi <simon.marchi@efficios.com>
5925
5926 * regformats/reg-arm.dat: Remove.
5927 * regformats/reg-bfin.dat: Remove.
5928 * regformats/reg-cris.dat: Remove.
5929 * regformats/reg-crisv32.dat: Remove.
5930 * regformats/reg-m32r.dat: Remove.
5931 * regformats/reg-tilegx.dat: Remove.
5932 * regformats/reg-tilegx32.dat: Remove.
5933
7d458ea5
SM
59342020-06-17 Simon Marchi <simon.marchi@efficios.com>
5935
5936 * features/Makefile (WHICH): Remove arm files.
5937 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5938 * regformats/arm/arm-with-neon.dat: Remove.
5939 * regformats/arm/arm-with-vfpv2.dat: Remove.
5940 * regformats/arm/arm-with-vfpv3.dat: Remove.
5941
3af96c0d
SM
59422020-06-17 Simon Marchi <simon.marchi@efficios.com>
5943
5944 * features/Makefile (XMLTOC): Remove rx.xml.
5945
b25e22fd
PA
59462020-06-17 Pedro Alves <palves@redhat.com>
5947
5948 * gdbthread.h (thread_control_state) <trap_expected> Update
5949 comments.
5950
a78a19b1
AB
59512020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5952
5953 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5954 ada_language::lookup_symbol_nonlocal.
5955 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5956 (ada_language::lookup_symbol_nonlocal): New member function,
5957 implementation from ada_lookup_symbol_nonlocal.
5958 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5959 initializer.
5960 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5961 initializer.
5962 (cplus_language::lookup_symbol_nonlocal): New member function.
5963 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5964 (minimal_language_data) Likewise.
5965 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5966 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5967 initializer.
5968 (d_language::lookup_symbol_nonlocal): New member function.
5969 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5970 initializer.
5971 (f_language::lookup_symbol_nonlocal): New member function.
5972 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5973 initializer.
5974 * language.c (unknown_language_data): Likewise.
5975 (auto_language_data): Likewise.
5976 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5977 field.
5978 (language_defn::lookup_symbol_nonlocal): New member function.
5979 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5980 initializer.
5981 * objc-lang.c (objc_language_data): Likewise.
5982 * opencl-lang.c (opencl_language_data): Likewise.
5983 * p-lang.c (pascal_language_data): Likewise.
5984 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5985 rust_language::lookup_symbol_nonlocal.
5986 (rust_language_data): Delete la_lookup_symbol_nonlocal
5987 initializer.
5988 (rust_language::lookup_symbol_nonlocal): New member function,
5989 implementation from rust_lookup_symbol_nonlocal.
5990 * symtab.c (lookup_symbol_aux): Update call to
5991 lookup_symbol_nonlocal.
5992 (basic_lookup_symbol_nonlocal): Rename to...
5993 (language_defn::lookup_symbol_nonlocal): ...this, and update
5994 header comment. Remove language_defn parameter, and replace with
5995 uses of `this'.
5996 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5997
ebe2334e
AB
59982020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5999
6000 * ada-lang.c (ada_language_data): Delete la_value_print_inner
6001 initializer.
6002 (ada_language::value_print_inner): New member function.
6003 * c-lang.c (c_language_data): Delete la_value_print_inner
6004 initializer.
6005 (cplus_language_data): Likewise.
6006 (asm_language_data): Likewise.
6007 (minimal_language_data): Likewise.
6008 * d-lang.c (d_language_data): Likewise.
6009 (d_language::value_print_inner): New member function.
6010 * f-lang.c (f_language_data): Delete la_value_print_inner
6011 initializer.
6012 (f_language::value_print_inner): New member function.
6013 * f-lang.h (f_value_print_innner): Rename to...
6014 (f_value_print_inner): ...this (note spelling of 'inner').
6015 * f-valprint.c (f_value_print_innner): Rename to...
6016 (f_value_print_inner): ...this (note spelling of 'inner').
6017 * go-lang.c (go_language_data): Delete la_value_print_inner
6018 initializer.
6019 (go_language::value_print_inner): New member function.
6020 * language.c (language_defn::value_print_inner): Define new member
6021 function.
6022 (unk_lang_value_print_inner): Delete.
6023 (unknown_language_data): Delete la_value_print_inner initializer.
6024 (unknown_language::value_print_inner): New member function.
6025 (auto_language_data): Delete la_value_print_inner initializer.
6026 (auto_language::value_print_inner): New member function.
6027 * language.h (language_data): Delete la_value_print_inner field.
6028 (language_defn::value_print_inner): Delcare new member function.
6029 * m2-lang.c (m2_language_data): Delete la_value_print_inner
6030 initializer.
6031 (m2_language::value_print_inner): New member function.
6032 * objc-lang.c (objc_language_data): Delete la_value_print_inner
6033 initializer.
6034 * opencl-lang.c (opencl_language_data): Likewise.
6035 * p-lang.c (pascal_language_data): Likewise.
6036 (pascal_language::value_print_inner): New member function.
6037 * rust-lang.c (rust_language_data): Delete la_value_print_inner
6038 initializer.
6039 (rust_language::value_print_inner): New member function.
6040 * valprint.c (do_val_print): Update call to value_print_inner.
6041
a1d1fa3e
AB
60422020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6043
6044 * ada-lang.c (ada_language_data): Delete la_value_print
6045 initializer.
6046 (ada_language::value_print): New member function.
6047 * c-lang.c (c_language_data): Delete la_value_print initializer.
6048 (cplus_language_data): Likewise.
6049 (asm_language_data): Likewise.
6050 (minimal_language_data): Likewise.
6051 * d-lang.c (d_language_data): Likewise.
6052 * f-lang.c (f_language_data): Likewise.
6053 * go-lang.c (go_language_data): Likewise.
6054 * language.c (unk_lang_value_print): Delete.
6055 (language_defn::value_print): Define new member function.
6056 (unknown_language_data): Delete la_value_print initializer.
6057 (unknown_language::value_print): New member function.
6058 (auto_language_data): Delete la_value_print initializer.
6059 (auto_language::value_print): New member function.
6060 * language.h (language_data): Delete la_value_print field.
6061 (language_defn::value_print): Declare new member function.
6062 (LA_VALUE_PRINT): Update call to value_print.
6063 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
6064 * objc-lang.c (objc_language_data): Likewise.
6065 * opencl-lang.c (opencl_language_data): Likewise.
6066 * p-lang.c (pascal_language_data): Likewise.
6067 (pascal_language::value_print): New member function.
6068 * rust-lang.c (rust_language_data): Delete la_value_print
6069 initializer.
6070
f16a9f57
AB
60712020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6072
6073 * ada-lang.c (ada_watch_location_expression): Rename to
6074 ada_language::watch_location_expression.
6075 (ada_language_data): Delete la_watch_location_expression
6076 initializer.
6077 (ada_language::watch_location_expression): New member function,
6078 implementation from ada_watch_location_expression.
6079 * breakpoint.c (watch_command_1): Update call to
6080 watch_location_expression.
6081 * c-lang.c (c_watch_location_expression): Rename to
6082 language_defn::watch_location_expression.
6083 (c_language_data): Delete la_watch_location_expression
6084 initializer.
6085 (cplus_language_data): Likewise.
6086 (asm_language_data): Likewise.
6087 (minimal_language_data): Likewise.
6088 * c-lang.h (c_watch_location_expression): Delete declaration.
6089 * d-lang.c (d_language_data): Delete la_watch_location_expression
6090 initializer.
6091 * f-lang.c (f_language_data): Likewise.
6092 * go-lang.c (go_language_data): Likewise.
6093 * language.c (language_defn::watch_location_expression): Member
6094 function implementation from c_watch_location_expression.
6095 (unknown_language_data): Delete la_watch_location_expression
6096 initializer.
6097 (auto_language_data): Likewise.
6098 * language.h (language_data): Delete la_watch_location_expression
6099 field.
6100 (language_defn::watch_location_expression): Declare new member
6101 function.
6102 * m2-lang.c (m2_language_data): Delete
6103 la_watch_location_expression initializer.
6104 * objc-lang.c (objc_language_data): Likewise.
6105 * opencl-lang.c (opencl_language_data): Likewise.
6106 * p-lang.c (pascal_language_data): Likewise.
6107 * rust-lang.c (rust_watch_location_expression): Rename to
6108 rust_language::watch_location_expression.
6109 (rust_language_data): Delete la_watch_location_expression
6110 initializer.
6111 (rust_language::watch_location_expression): New member function,
6112 implementation from rust_watch_location_expression.
6113
7e56227d
AB
61142020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6115
6116 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6117 ada_language::collect_symbol_completion_matches.
6118 (ada_language_data): Delete la_collect_symbol_completion_matches
6119 initializer.
6120 (ada_language::collect_symbol_completion_matches): New member
6121 function, implementation from
6122 ada_collect_symbol_completion_matches.
6123 * c-lang.c (c_language_data): Delete
6124 la_collect_symbol_completion_matches initializer.
6125 (cplus_language_data): Likewise.
6126 (asm_language_data): Likewise.
6127 (minimal_language_data): Likewise.
6128 * d-lang.c (d_language_data): Likewise.
6129 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6130 f_language::collect_symbol_completion_matches.
6131 (f_language_data): Delete la_collect_symbol_completion_matches
6132 initializer.
6133 (f_language::collect_symbol_completion_matches) New member
6134 function, implementation from f_collect_symbol_completion_matches.
6135 * go-lang.c (go_language_data): Delete
6136 la_collect_symbol_completion_matches initializer.
6137 * language.c (unknown_language_data): Likewise.
6138 (auto_language_data): Likewise.
6139 * language.h (language_data): Delete
6140 la_collect_symbol_completion_matches field.
6141 (language_defn::collect_symbol_completion_matches): New member
6142 function.
6143 * m2-lang.c (m2_language_data): Delete
6144 la_collect_symbol_completion_matches initializer.
6145 * objc-lang.c (objc_language_data): Likewise.
6146 * opencl-lang.c (opencl_language_data): Likewise.
6147 * p-lang.c (pascal_language_data): Likewise.
6148 * rust-lang.c (rust_language_data): Likewise.
6149 * symtab.c (default_collect_symbol_completion_matches): Delete.
6150 (collect_symbol_completion_matches): Update call to
6151 collect_symbol_completion_matches.
6152 (collect_symbol_completion_matches_type): Likewise.
6153 * symtab.h (default_collect_symbol_completion_matches): Delete
6154 declaration.
6155
53fc67f8
AB
61562020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6157
6158 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6159 (ada_language_data): Delete la_word_break_characters initializer.
6160 (ada_language::word_break_characters): New member function.
6161 * c-lang.c (c_language_data): Delete la_word_break_characters
6162 initializer.
6163 (cplus_language_data): Likewise.
6164 (asm_language_data): Likewise.
6165 (minimal_language_data): Likewise.
6166 * completer.c: Update global comment.
6167 (advance_to_expression_complete_word_point): Update call to
6168 word_break_characters.
6169 (complete_files_symbols): Likewise.
6170 (complete_line_internal_1): Likewise.
6171 (default_completer_handle_brkchars): Likewise.
6172 (skip_quoted_chars): Likewise.
6173 * d-lang.c (d_language_data): Delete la_word_break_characters
6174 initializer.
6175 * f-lang.c (f_word_break_characters): Delete.
6176 (f_language_data): Delete la_word_break_characters initializer.
6177 (f_language::word_break_characters): New member function.
6178 * go-lang.c (go_language_data): Delete la_word_break_characters
6179 initializer.
6180 * language.c (unknown_language_data): Likewise.
6181 (auto_language_data): Likewise.
6182 * language.h (default_word_break_characters): Move declaration to
6183 earlier in the file.
6184 (language_data): Delete la_word_break_characters field.
6185 (language_defn::word_break_characters): New member function.
6186 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6187 initializer.
6188 * objc-lang.c (objc_language_data): Likewise.
6189 * opencl-lang.c (opencl_language_data): Likewise.
6190 * p-lang.c (pascal_language_data): Likewise.
6191 * rust-lang.c (rust_language_data): Likewise.
6192
c9debfb9
AB
61932020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6194
6195 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6196 (ada_language_data): Delete la_get_symbol_name_matcher
6197 initializer.
6198 (language_defn::get_symbol_name_matcher_inner): New member
6199 function.
6200 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6201 initializer.
6202 (cplus_language_data): Likewise.
6203 (cplus_language::get_symbol_name_matcher_inner): New member
6204 function.
6205 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6206 (minimal_language_data): Likewise.
6207 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6208 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6209 initializer.
6210 * dictionary.c (iter_match_first_hashed): Update call to
6211 get_symbol_name_matcher.
6212 (iter_match_next_hashed): Likewise.
6213 (iter_match_next_linear): Likewise.
6214 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6215 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6216 initializer.
6217 (f_language::get_symbol_name_matcher_inner): New member function.
6218 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6219 initializer.
6220 * language.c (default_symbol_name_matcher): Update header comment,
6221 make static.
6222 (language_defn::get_symbol_name_matcher): New definition.
6223 (language_defn::get_symbol_name_matcher_inner): Likewise.
6224 (get_symbol_name_matcher): Delete.
6225 (unknown_language_data): Delete la_get_symbol_name_matcher
6226 initializer.
6227 (auto_language_data): Likewise.
6228 * language.h (language_data): Delete la_get_symbol_name_matcher
6229 field.
6230 (language_defn::get_symbol_name_matcher): New member function.
6231 (language_defn::get_symbol_name_matcher_inner): Likewise.
6232 (default_symbol_name_matcher): Delete declaration.
6233 * linespec.c (find_methods): Update call to
6234 get_symbol_name_matcher.
6235 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6236 initializer.
6237 * minsyms.c (lookup_minimal_symbol): Update call to
6238 get_symbol_name_matcher.
6239 (iterate_over_minimal_symbols): Likewise.
6240 * objc-lang.c (objc_language_data): Delete
6241 la_get_symbol_name_matcher initializer.
6242 * opencl-lang.c (opencl_language_data): Likewise.
6243 * p-lang.c (pascal_language_data): Likewise.
6244 * psymtab.c (psymbol_name_matches): Update call to
6245 get_symbol_name_matcher.
6246 * rust-lang.c (rust_language_data): Delete
6247 la_get_symbol_name_matcher initializer.
6248 * symtab.c (symbol_matches_search_name): Update call to
6249 get_symbol_name_matcher.
6250 (compare_symbol_name): Likewise.
6251
9a49ad8c
AB
62522020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6253
6254 * ada-lang.c (ada_language_data): Delete la_compute_program
6255 initializer.
6256 * c-lang.c (c_language_data): Likewise.
6257 (c_language::compute_program): New member function.
6258 (cplus_language_data): Delete la_compute_program initializer.
6259 (cplus_language::compute_program): New member function.
6260 (asm_language_data): Delete la_compute_program initializer.
6261 (minimal_language_data): Likewise.
6262 * c-lang.h (c_compute_program): Update comment.
6263 (cplus_compute_program): Likewise.
6264 * compile/compile-c-support.c (c_compute_program): Likewise.
6265 (cplus_compute_program): Likewise.
6266 * compile/compile.c (compile_to_object): Update call to
6267 la_compute_program.
6268 * d-lang.c (d_language_data): Delete la_compute_program
6269 initializer.
6270 * f-lang.c (f_language_data): Likewise.
6271 * go-lang.c (go_language_data): Likewise.
6272 * language.c (unknown_language_data): Likewise.
6273 (auto_language_data): Likewise.
6274 * language.h (language_data): Delete la_compute_program field.
6275 (language_defn::compute_program): New member function.
6276 * m2-lang.c (m2_language_data): Delete la_compute_program
6277 initializer.
6278 * objc-lang.c (objc_language_data): Likewise.
6279 * opencl-lang.c (opencl_language_data): Likewise.
6280 * p-lang.c (pascal_language_data): Likewise.
6281 * rust-lang.c (rust_language_data): Likewise.
6282
eff93b4d
AB
62832020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6284
6285 * ada-lang.c (ada_language_data) Delete
6286 la_class_name_from_physname initializer.
6287 * c-lang.c (c_language_data): Likewise.
6288 (cplus_language_data): Likewise.
6289 (cplus_language::class_name_from_physname): New member function.
6290 (asm_language_data): Delete la_class_name_from_physname
6291 initializer.
6292 (minimal_language_data): Likewise.
6293 * d-lang.c (d_language_data): Likewise.
6294 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6295 method on language_defn class.
6296 (guess_full_die_structure_name): Likewise.
6297 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6298 initializer.
6299 * go-lang.c (go_language_data): Likewise.
6300 * language.c (language_class_name_from_physname): Delete.
6301 (unk_lang_class_name): Delete.
6302 (unknown_language_data): Delete la_class_name_from_physname
6303 initializer.
6304 (auto_language_data): Likewise.
6305 * language.h (language_data): Delete la_class_name_from_physname
6306 field.
6307 (language_defn::class_name_from_physname): New function.
6308 (language_class_name_from_physname): Delete declaration.
6309 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6310 initializer.
6311 * objc-lang.c (objc_language_data): Likewise.
6312 * opencl-lang.c (opencl_language_data): Likewise.
6313 * p-lang.c (pascal_language_data): Likewise.
6314 * rust-lang.c (rust_language_data): Likewise.
6315
de543742
TT
63162020-06-16 Tom Tromey <tom@tromey.com>
6317
6318 * tui/tui-data.h (STATUS_NAME): New macro.
6319 * tui/tui-layout.c (tui_remove_some_windows)
6320 (initialize_known_windows, tui_register_window)
6321 (tui_layout_split::remove_windows, initialize_layouts)
6322 (tui_new_layout_command): Don't use hard-coded window names.
6323
a350efd4
TT
63242020-06-16 Tom Tromey <tom@tromey.com>
6325
6326 PR tui/25348:
6327 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6328 tui_initialize_readline. Only run once. Call rl_initialize.
6329 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6330 tui_initialize_readline.
6331 * tui/tui-io.c (tui_setup_io): Call
6332 tui_ensure_readline_initialized.
6333 * tui/tui-interp.c (tui_interp::init): Update.
6334
39ec0490
TT
63352020-06-16 Tom Tromey <tom@tromey.com>
6336
6337 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6338 Also preserve the status window.
6339
d2d1ea20
TT
63402020-06-16 Tom Tromey <tom@tromey.com>
6341
6342 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6343 where m_window==nullptr.
6344
66920317
TT
63452020-06-15 Tom Tromey <tromey@adacore.com>
6346
6347 * windows-nat.c (windows_nat::handle_output_debug_string):
6348 Update.
6349 (windows_nat::handle_ms_vc_exception): Update.
6350 * target.h (target_read_string): Change API.
6351 * target.c (target_read_string): Change API.
6352 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6353 Update.
6354 * solib-frv.c (frv_current_sos): Update.
6355 * solib-dsbt.c (dsbt_current_sos): Update.
6356 * solib-darwin.c (darwin_current_sos): Update.
6357 * linux-thread-db.c (inferior_has_bug): Update.
6358 * expprint.c (print_subexp_standard): Update.
6359 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6360 (ada_exception_message_1): Update.
6361
a5d871dd
TT
63622020-06-15 Tom Tromey <tromey@adacore.com>
6363
6364 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6365
670e35fa
TT
63662020-06-15 Tom Tromey <tromey@adacore.com>
6367
6368 * valprint.c (read_string): Update comment.
6369 * target.c (MIN): Remove.
6370 (target_read_string): Rewrite.
6371
f5272a3b
TT
63722020-06-15 Tom Tromey <tromey@adacore.com>
6373
6374 * corefile.c (read_memory_string): Remove.
6375 * ada-valprint.c (ada_value_print_ptr): Update.
6376 * ada-lang.h (ada_tag_name): Change return type.
6377 * ada-lang.c (type_from_tag): Update.
6378 (ada_tag_name_from_tsd): Change return type. Use
6379 target_read_string.
6380 (ada_tag_name): Likewise.
6381 * gdbcore.h (read_memory_string): Don't declare.
6382
2c074f49
HD
63832020-06-14 Hannes Domani <ssbssa@yahoo.de>
6384
6385 * symtab.c (rbreak_command): Ignore Windows drive colon.
6386
6a17d503
SM
63872020-06-12 Simon Marchi <simon.marchi@efficios.com>
6388
6389 * NEWS: Mention removed GDBserver host support.
6390
453c733f
NC
63912020-06-12 Nelson Chu <nelson.chu@sifive.com>
6392
6393 * features/riscv/rebuild-csr-xml.sh: Updated.
6394
2b4e6a3f
TT
63952020-06-11 Tom Tromey <tom@tromey.com>
6396
6397 PR gdb/18318:
6398 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6399
4412332f
JG
64002020-06-09 Jonny Grant <jg@jguk.org>
64012020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6402
6403 * main.c (captured_main_1): Don't print new line after help.
6404 (print_gdb_help): add mailing list and IRC channel information
6405 to --help. Add new lines between items in the footer. Remove
6406 quotes around bug url.
6407
2f33032a
KS
64082020-06-11 Keith Seitz <keiths@redhat.com>
6409
6410 PR gdb/21356
6411 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6412 Resolve typedefs for type length calculations.
6413
7ab96794
TV
64142020-06-10 Tom de Vries <tdevries@suse.de>
6415
6416 PR ada/24713
6417 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6418 (write_psymbols): Enable .gdb_index for ada.
6419 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6420 ada.
6421
e5f3ece2
TV
64222020-06-10 Tom de Vries <tdevries@suse.de>
6423
6424 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6425 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6426 namei" instead of "const char *name" argument.
6427 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6428 dw2_symtab_iter_init.
6429
940da03e
SM
64302020-06-08 Simon Marchi <simon.marchi@efficios.com>
6431
6432 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6433 to use type::field and field::type instead.
6434
b6cdac4b
SM
64352020-06-08 Simon Marchi <simon.marchi@efficios.com>
6436
6437 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6438 to use field::type instead.
6439
5d14b6e5
SM
64402020-06-08 Simon Marchi <simon.marchi@efficios.com>
6441
6442 * gdbtypes.h (struct field) <type, set_type>: New methods.
6443 Rename `type` field to...
6444 <m_type>: ... this. Change references throughout to use type or
6445 set_type methods.
6446 (FIELD_TYPE): Use field::type. Change call sites that modify
6447 the field's type to use field::set_type instead.
6448
3d967001
SM
64492020-06-08 Simon Marchi <simon.marchi@efficios.com>
6450
6451 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6452 to use type::index_type instead.
6453
262abc0d
SM
64542020-06-08 Simon Marchi <simon.marchi@efficios.com>
6455
6456 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6457 methods.
6458 (TYPE_INDEX_TYPE): Use type::index_type.
6459 * gdbtypes.c (create_array_type_with_stride): Likewise.
6460
82836c92
TT
64612020-06-07 Tom Tromey <tom@tromey.com>
6462
6463 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6464 parameter.
6465 (generic_value_print): Update.
6466
940dace9
AB
64672020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6468
6469 Revert commit 982a38f60b0.
6470 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6471
982a38f6
AB
64722020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6473
6474 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6475 avoid use after free.
6476
82f06518
TV
64772020-06-05 Tom de Vries <tdevries@suse.de>
6478
6479 * NEWS: Fix typos.
6480
f8c41851
SM
64812020-06-04 Simon Marchi <simon.marchi@efficios.com>
6482
6483 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6484 the per_bfd object.
6485 (dwarf2_read_debug_names): Likewise.
6486 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6487 object when re-using a per_bfd object with an index.
6488
f9b5d5ea
TV
64892020-06-03 Tom de Vries <tdevries@suse.de>
6490
6491 PR symtab/26046
6492 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6493 children for C++.
6494 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6495 DW_TAG_subprogram.
6496
f6eee2d0
AB
64972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6498
6499 * ada-lang.c (ada_language_data): Delete skip_trampoline
6500 initializer.
6501 * c-lang.c (c_language_data): Likewise.
6502 (cplus_language_data): Likewise.
6503 (cplus_language::skip_trampoline): New member function.
6504 (asm_language_data): Delete skip_trampoline initializer.
6505 (minimal_language_data): Likewise.
6506 * d-lang.c (d_language_data): Likewise.
6507 * f-lang.c (f_language_data): Likewise.
6508 * go-lang.c (go_language_data): Likewise.
6509 * language.c (unk_lang_trampoline): Delete function.
6510 (skip_language_trampoline): Update.
6511 (unknown_language_data): Delete skip_trampoline initializer.
6512 (auto_language_data): Likewise.
6513 * language.h (language_data): Delete skip_trampoline field.
6514 (language_defn::skip_trampoline): New function.
6515 * m2-lang.c (m2_language_data): Delete skip_trampoline
6516 initializer.
6517 * objc-lang.c (objc_skip_trampoline): Delete function, move
6518 implementation to objc_language::skip_trampoline.
6519 (objc_language_data): Delete skip_trampoline initializer.
6520 (objc_language::skip_trampoline): New member function with
6521 implementation from objc_skip_trampoline.
6522 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6523 initializer.
6524 * p-lang.c (pascal_language_data): Likewise.
6525 * rust-lang.c (rust_language_data): Likewise.
6526
0a50df5d
AB
65272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6528
6529 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6530 (ada_language::demangle): New member function.
6531 * c-lang.c (c_language_data): Delete la_demangle initializer.
6532 (cplus_language_data): Delete la_demangle initializer.
6533 (cplus_language::demangle): New member function.
6534 (asm_language_data): Delete la_demangle initializer.
6535 (minimal_language_data): Delete la_demangle initializer.
6536 * d-lang.c (d_language_data): Delete la_demangle initializer.
6537 (d_language::demangle): New member function.
6538 * f-lang.c (f_language_data): Delete la_demangle initializer.
6539 (f_language::demangle): New member function.
6540 * go-lang.c (go_language_data): Delete la_demangle initializer.
6541 (go_language::demangle): New member function.
6542 * language.c (language_demangle): Update.
6543 (unk_lang_demangle): Delete.
6544 (unknown_language_data): Delete la_demangle initializer.
6545 (unknown_language::demangle): New member function.
6546 (auto_language_data): Delete la_demangle initializer.
6547 (auto_language::demangle): New member function.
6548 * language.h (language_data): Delete la_demangle field.
6549 (language_defn::demangle): New function.
6550 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6551 * objc-lang.c (objc_language_data): Delete la_demangle
6552 initializer.
6553 (objc_language::demangle): New member function.
6554 * opencl-lang.c (opencl_language_data): Delete la_demangle
6555 initializer.
6556 * p-lang.c (pascal_language_data): Likewise.
6557 * rust-lang.c (rust_language_data): Likewise.
6558 (rust_language::demangle): New member function.
6559
fbfb0a46
AB
65602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6561
6562 * ada-lang.c (ada_language_data): Delete la_print_type
6563 initializer.
6564 (ada_language::print_type): New member function.
6565 * c-lang.c (c_language_data): Delete la_print_type initializer.
6566 (c_language::print_type): New member function.
6567 (cplus_language_data): Delete la_print_type initializer.
6568 (cplus_language::print_type): New member function.
6569 (asm_language_data): Delete la_print_type initializer.
6570 (asm_language::print_type): New member function.
6571 (minimal_language_data): Delete la_print_type initializer.
6572 (minimal_language::print_type): New member function.
6573 * d-lang.c (d_language_data): Delete la_print_type initializer.
6574 (d_language::print_type): New member function.
6575 * f-lang.c (f_language_data): Delete la_print_type initializer.
6576 (f_language::print_type): New member function.
6577 * go-lang.c (go_language_data): Delete la_print_type initializer.
6578 (go_language::print_type): New member function.
6579 * language.c (unk_lang_print_type): Delete.
6580 (unknown_language_data): Delete la_print_type initializer.
6581 (unknown_language::print_type): New member function.
6582 (auto_language_data): Delete la_print_type initializer.
6583 (auto_language::print_type): New member function.
6584 * language.h (language_data): Delete la_print_type field.
6585 (language_defn::print_type): New function.
6586 (LA_PRINT_TYPE): Update.
6587 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6588 (m2_language::print_type): New member function.
6589 * objc-lang.c (objc_language_data): Delete la_print_type
6590 initializer.
6591 (objc_language::print_type): New member function.
6592 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6593 to opencl_language::print_type.
6594 (opencl_language_data): Delete la_print_type initializer.
6595 (opencl_language::print_type): New member function, implementation
6596 from opencl_print_type.
6597 * p-lang.c (pascal_language_data): Delete la_print_type
6598 initializer.
6599 (pascal_language::print_type): New member function.
6600 * rust-lang.c (rust_print_type): Delete, implementation moved to
6601 rust_language::print_type.
6602 (rust_language_data): Delete la_print_type initializer.
6603 (rust_language::print_type): New member function, implementation
6604 from rust_print_type.
6605
6f827019
AB
66062020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6607
6608 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6609 implementation moves to...
6610 (ada_language::sniff_from_mangled_name): ...here. Update return
6611 type.
6612 (ada_language_data): Delete la_sniff_from_mangled_name
6613 initializer.
6614 * c-lang.c (c_language_data): Likewise.
6615 (cplus_language_data): Likewise.
6616 (cplus_language::sniff_from_mangled_name): New member function,
6617 implementation taken from gdb_sniff_from_mangled_name.
6618 (asm_language_data): Delete la_sniff_from_mangled_name
6619 initializer.
6620 (minimal_language_data): Likewise.
6621 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6622 implementation moves to cplus_language::sniff_from_mangled_name.
6623 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6624 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6625 moves to...
6626 (d_language::sniff_from_mangled_name): ...here.
6627 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6628 * f-lang.c (f_language_data): Likewise.
6629 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6630 moves to...
6631 (go_language::sniff_from_mangled_name): ...here.
6632 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6633 * language.c (language_sniff_from_mangled_name): Delete.
6634 (unknown_language_data): Delete la_sniff_from_mangled_name
6635 initializer.
6636 (auto_language_data): Likewise.
6637 * language.h (language_data): Delete la_sniff_from_mangled_name
6638 field.
6639 (language_defn::sniff_from_mangled_name): New function.
6640 (language_sniff_from_mangled_name): Delete declaration.
6641 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6642 field.
6643 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6644 implementation moves to...
6645 (objc_language::sniff_from_mangled_name): ...here.
6646 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6647 * opencl-lang.c (opencl_language_data): Likewise.
6648 * p-lang.c (pascal_language_data): Likewise.
6649 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6650 implementation moves to...
6651 (rust_language::sniff_from_mangled_name): ...here.
6652 (rust_language_data): Delete la_sniff_from_mangled_name
6653 initializer.
6654 * symtab.c (symbol_find_demangled_name): Call
6655 sniff_from_mangled_name member function.
6656
fb8006fd
AB
66572020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6658
6659 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6660 initializer.
6661 * c-lang.c (c_language_data): Likewise.
6662 (cplus_language_data): Likewise.
6663 (cplus_language::search_name_hash): New member function.
6664 (asm_language_data): Delete la_search_name_hash initializer.
6665 (minimal_language_data): Likewise.
6666 * d-lang.c (d_language_data): Likewise.
6667 * dictionary.c (default_search_name_hash): Rename to...
6668 (language_defn::search_name_hash): ...this.
6669 * f-lang.c (f_language_data): Likewise.
6670 (f_language::search_name_hash): New member function.
6671 * go-lang.c (go_language_data): Delete la_search_name_hash
6672 initializer.
6673 * language.c (unknown_language_data): Likewise.
6674 (auto_language_data): Likewise.
6675 * language.h (struct language_data): Delete la_search_name_hash
6676 field.
6677 (language_defn::search_name_hash): Declare new member function.
6678 (default_search_name_hash): Delete declaration.
6679 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6680 initializer.
6681 * objc-lang.c (objc_language_data): Likewise.
6682 * opencl-lang.c (opencl_language_data): Likewise.
6683 * p-lang.c (pascal_language_data): Likewise.
6684 * rust-lang.c (rust_language_data): Likewise.
6685 * symtab.c (search_name_hash): Update call.
6686
8e25bafe
AB
66872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6688
6689 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6690 initializer.
6691 * c-lang.c (class compile_instance): Declare.
6692 (c_language_data): Delete la_get_compile_instance initializer.
6693 (c_language::get_compile_instance): New member function.
6694 (cplus_language_data): Delete la_get_compile_instance initializer.
6695 (cplus_language::get_compile_instance): New member function.
6696 (asm_language_data): Delete la_get_compile_instance initializer.
6697 (minimal_language_data): Likewise.
6698 * c-lang.h (c_get_compile_context): Update comment.
6699 (cplus_get_compile_context): Update comment.
6700 * compile/compile.c (compile_to_object): Update calls, don't rely
6701 on function pointer being NULL.
6702 * d-lang.c (d_language_data): Delete la_get_compile_instance
6703 initializer.
6704 * f-lang.c (f_language_data): Likewise.
6705 * go-lang.c (go_language_data): Likewise.
6706 * language.c (unknown_language_data): Likewise.
6707 (auto_language_data): Likewise.
6708 * language.h (language_data): Delete la_get_compile_instance field.
6709 (language_defn::get_compile_instance): New member function.
6710 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6711 initializer.
6712 * objc-lang.c (objc_language_data): Likewise.
6713 * opencl-lang.c (opencl_language_data): Likewise.
6714 * p-lang.c (pascal_language_data): Likewise.
6715 * rust-lang.c (rust_language_data): Likewise.
6716
4009ee92
AB
67172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6718
6719 * ada-lang.c (ada_add_all_symbols): Update comment.
6720 (ada_iterate_over_symbols): Delete, move implementation to...
6721 (ada_language::iterate_over_symbols): ...here, a new member
6722 function, rewrite to use range based for loop.
6723 (ada_language_data): Delete la_iterate_over_symbols initializer.
6724 * c-lang.c (c_language_data): Likewise.
6725 (cplus_language_data): Likewise.
6726 (asm_language_data): Likewise.
6727 (minimal_language_data): Likewise.
6728 * d-lang.c (d_language_data): Likewise.
6729 * f-lang.c (f_language_data): Likewise.
6730 * go-lang.c (go_language_data): Likewise.
6731 * language.c (unknown_language_data): Likewise.
6732 (auto_language_data): Likewise.
6733 * language.h (language_data): Delete la_iterate_over_symbols field.
6734 (language_defn::iterate_over_symbols): New member function.
6735 (LA_ITERATE_OVER_SYMBOLS): Update.
6736 * linespec.c (iterate_over_all_matching_symtabs): Update.
6737 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6738 initializer.
6739 * objc-lang.c (objc_language_data): Likewise.
6740 * opencl-lang.c (opencl_language_data): Likewise.
6741 * p-lang.c (pascal_language_data): Likewise.
6742 * rust-lang.c (rust_language_data): Likewise.
6743
54f4ca46
AB
67442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6745
6746 * ada-lang.c (ada_language_data): Delete
6747 la_lookup_transparent_type initializer.
6748 * c-lang.c (c_language_data): Likewise.
6749 (cplus_language_data): Likewise.
6750 (cplus_language::lookup_transparent_type): New member function.
6751 (asm_language_data): Delete la_lookup_transparent_type
6752 initializer.
6753 (minimal_language_data): Likewise.
6754 * d-lang.c (d_language_data): Likewise.
6755 * f-lang.c (f_language_data): Likewise.
6756 * go-lang.c (go_language_data): Likewise.
6757 * language.c (unknown_language_data): Likewise.
6758 (auto_language_data): Likewise.
6759 * language.h (struct language_data): Delete
6760 la_lookup_transparent_type field.
6761 (language_defn::lookup_transparent_type): New member function.
6762 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6763 initializer.
6764 * objc-lang.c (objc_language_data): Likewise.
6765 * opencl-lang.c (opencl_language_data): Likewise.
6766 * p-lang.c (pascal_language_data): Likewise.
6767 * rust-lang.c (rust_language_data): Likewise.
6768 * symtab.c (symbol_matches_domain): Update call.
6769
1fb314aa
AB
67702020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6771
6772 * ada-lang.c (ada_language_arch_info): Delete function, move
6773 implementation to...
6774 (ada_language::language_arch_info): ...here, a new member
6775 function.
6776 (ada_language_data): Delete la_language_arch_info.
6777 * c-lang.c (c_language_data): Likewise.
6778 (c_language::language_arch_info): New member function.
6779 (cplus_language_arch_info): Delete function, move
6780 implementation to...
6781 (cplus_language::language_arch_info): ...here, a new member
6782 function.
6783 (cplus_language_data): Delete la_language_arch_info.
6784 (asm_language_data): Likewise.
6785 (asm_language::language_arch_info): New member function.
6786 (minimal_language_data): Delete la_language_arch_info.
6787 (minimal_language::language_arch_info): New member function.
6788 * d-lang.c (d_language_arch_info): Delete function, move
6789 implementation to...
6790 (d_language::language_arch_info): ...here, a new member
6791 function.
6792 (d_language_data): Delete la_language_arch_info.
6793 * f-lang.c (f_language_arch_info): Delete function, move
6794 implementation to...
6795 (f_language::language_arch_info): ...here, a new member
6796 function.
6797 (f_language_data): Delete la_language_arch_info.
6798 * go-lang.c (go_language_arch_info): Delete function, move
6799 implementation to...
6800 (go_language::language_arch_info): ...here, a new member
6801 function.
6802 (go_language_data): Delete la_language_arch_info.
6803 * language.c (unknown_language_data): Likewise.
6804 (unknown_language::language_arch_info): New member function.
6805 (auto_language_data): Delete la_language_arch_info.
6806 (auto_language::language_arch_info): New member function.
6807 (language_gdbarch_post_init): Update call to
6808 la_language_arch_info.
6809 * language.h (language_data): Delete la_language_arch_info
6810 function pointer.
6811 (language_defn::language_arch_info): New function.
6812 * m2-lang.c (m2_language_arch_info): Delete function, move
6813 implementation to...
6814 (m2_language::language_arch_info): ...here, a new member
6815 function.
6816 (m2_language_data): Delete la_language_arch_info.
6817 * objc-lang.c (objc_language_arch_info): Delete function, move
6818 implementation to...
6819 (objc_language::language_arch_info): ...here, a new member
6820 function.
6821 (objc_language_data): Delete la_language_arch_info.
6822 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6823 implementation to...
6824 (opencl_language::language_arch_info): ...here, a new member
6825 function.
6826 (opencl_language_data): Delete la_language_arch_info.
6827 * p-lang.c (pascal_language_arch_info): Delete function, move
6828 implementation to...
6829 (pascal_language::language_arch_info): ...here, a new member
6830 function.
6831 (pascal_language_data): Delete la_language_arch_info.
6832 * rust-lang.c (rust_language_arch_info): Delete function, move
6833 implementation to...
6834 (rust_language::language_arch_info): ...here, a new member
6835 function.
6836 (rust_language_data): Delete la_language_arch_info.
6837
48448202
AB
68382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6839
6840 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6841 initializer.
6842 * c-lang.c (c_language_data): Likewise.
6843 (cplus_language_data): Likewise.
6844 (cplus_language::pass_by_reference_info): New method.
6845 (asm_language_data): Delete la_pass_by_reference initializer.
6846 (minimal_language_data): Likewise.
6847 * cp-abi.c (cp_pass_by_reference): Remove use of
6848 default_pass_by_reference.
6849 * d-lang.c (d_language_data): Likewise.
6850 * f-lang.c (f_language_data): Likewise.
6851 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6852 default_pass_by_reference.
6853 * go-lang.c (go_language_data): Likewise.
6854 * language.c (language_pass_by_reference): Update.
6855 (default_pass_by_reference): Delete.
6856 (unknown_language_data): Delete la_pass_by_reference
6857 initializer.
6858 (auto_language_data): Likewise.
6859 * language.h (struct language_data): Delete la_pass_by_reference
6860 field.
6861 (language_defn::pass_by_reference_info): New member function.
6862 (default_pass_by_reference): Delete declaration.
6863 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6864 initializer.
6865 * objc-lang.c (objc_language_data): Likewise.
6866 * opencl-lang.c (opencl_language_data): Likewise.
6867 * p-lang.c (pascal_language_data): Likewise.
6868 * rust-lang.c (rust_language_data): Likewise.
6869
15e5fd35
AB
68702020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6871
6872 * ada-lang.c (ada_read_var_value): Delete function, move
6873 implementation to...
6874 (ada_language::read_var_value): ...here.
6875 (ada_language_data): Delete la_read_var_value initializer.
6876 * c-lang.c (c_language_data): Likewise.
6877 (cplus_language_data): Likewise.
6878 (minimal_language_data): Likewise.
6879 * d-lang.c (d_language_data): Likewise.
6880 * f-lang.c (f_language_data): Likewise.
6881 * findvar.c (default_read_var_value): Rename to...
6882 (language_defn::read_var_value): ...this.
6883 * findvar.c (read_var_value): Update header comment, and change to
6884 call member function instead of function pointer.
6885 * go-lang.c (go_language_data): Likewise.
6886 * language.c (unknown_language_data): Delete la_read_var_value
6887 initializer.
6888 (auto_language_data): Likewise.
6889 * language.h (struct language_data): Delete la_read_var_value
6890 field.
6891 (language_defn::read_var_value): New member function.
6892 (default_read_var_value): Delete declaration.
6893 * m2-lang.c (m2_language_data): Delete la_read_var_value
6894 initializer.
6895 * objc-lang.c (objc_language_data): Likewise.
6896 * opencl-lang.c (opencl_language_data): Likewise.
6897 * p-lang.c (pascal_language_data): Likewise.
6898 * rust-lang.c (rust_language_data): Likewise.
6899 * value.h (default_read_var_value): Delete declaration.
6900
5bd40f2a
AB
69012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6902
6903 * ada-lang.c (ada_print_array_index): Delete function, move
6904 implementation to...
6905 (ada_language::print_array_index): ...here.
6906 (ada_language_data): Delete la_print_array_index initializer.
6907 * c-lang.c (c_language_data): Likewise.
6908 (cplus_language_data): Likewise.
6909 (minimal_language_data): Likewise.
6910 * d-lang.c (d_language_data): Likewise.
6911 * f-lang.c (f_language_data): Likewise.
6912 * go-lang.c (go_language_data): Likewise.
6913 * language.c (default_print_array_index): Delete function, move
6914 implementation to...
6915 (language_defn::print_array_index): ...here.
6916 (unknown_language_data): Delete la_print_array_index initializer.
6917 (auto_language_data): Likewise.
6918 * language.h (struct language_data): Delete la_print_array_index
6919 field.
6920 (language_defn::print_array_index): New member function.
6921 (LA_PRINT_ARRAY_INDEX): Update.
6922 (default_print_array_index): Delete declaration.
6923 * m2-lang.c (m2_language_data): Delete la_print_array_index
6924 initializer.
6925 * objc-lang.c (objc_language_data): Likewise.
6926 * opencl-lang.c (opencl_language_data): Likewise.
6927 * p-lang.c (pascal_language_data): Likewise.
6928 * rust-lang.c (rust_language_data): Likewise.
6929
0874fd07
AB
69302020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6931
6932 * gdb/ada-lang.c (ada_language_defn): Convert to...
6933 (ada_language_data): ...this.
6934 (class ada_language): New class.
6935 (ada_language_defn): New static global.
6936 * gdb/c-lang.c (c_language_defn): Convert to...
6937 (c_language_data): ...this.
6938 (class c_language): New class.
6939 (c_language_defn): New static global.
6940 (cplus_language_defn): Convert to...
6941 (cplus_language_data): ...this.
6942 (class cplus_language): New class.
6943 (cplus_language_defn): New static global.
6944 (asm_language_defn): Convert to...
6945 (asm_language_data): ...this.
6946 (class asm_language): New class.
6947 (asm_language_defn): New static global.
6948 (minimal_language_defn): Convert to...
6949 (minimal_language_data): ...this.
6950 (class minimal_language): New class.
6951 (minimal_language_defn): New static global.
6952 * gdb/d-lang.c (d_language_defn): Convert to...
6953 (d_language_data): ...this.
6954 (class d_language): New class.
6955 (d_language_defn): New static global.
6956 * gdb/f-lang.c (f_language_defn): Convert to...
6957 (f_language_data): ...this.
6958 (class f_language): New class.
6959 (f_language_defn): New static global.
6960 * gdb/go-lang.c (go_language_defn): Convert to...
6961 (go_language_data): ...this.
6962 (class go_language): New class.
6963 (go_language_defn): New static global.
6964 * gdb/language.c (unknown_language_defn): Remove declaration.
6965 (current_language): Initialize to nullptr, real initialization is
6966 moved to _initialize_language.
6967 (languages): Delete global.
6968 (language_defn::languages): Define.
6969 (set_language_command): Use language_defn::languages.
6970 (set_language): Likewise.
6971 (range_error): Likewise.
6972 (language_enum): Likewise.
6973 (language_def): Likewise.
6974 (add_set_language_command): Use language_def::languages for the
6975 language list, and language_def to lookup language pointers.
6976 (skip_language_trampoline): Use language_defn::languages.
6977 (unknown_language_defn): Convert to...
6978 (unknown_language_data): ...this.
6979 (class unknown_language): New class.
6980 (unknown_language_defn): New static global.
6981 (auto_language_defn): Convert to...
6982 (auto_language_data): ...this.
6983 (class auto_language): New class.
6984 (auto_language_defn): New static global.
6985 (language_gdbarch_post_init): Use language_defn::languages.
6986 (_initialize_language): Initialize current_language.
6987 * gdb/language.h (struct language_defn): Rename to...
6988 (struct language_data): ...this.
6989 (struct language_defn): New.
6990 (auto_language_defn): Delete.
6991 (unknown_language_defn): Delete.
6992 (minimal_language_defn): Delete.
6993 (ada_language_defn): Delete.
6994 (asm_language_defn): Delete.
6995 (c_language_defn): Delete.
6996 (cplus_language_defn): Delete.
6997 (d_language_defn): Delete.
6998 (f_language_defn): Delete.
6999 (go_language_defn): Delete.
7000 (m2_language_defn): Delete.
7001 (objc_language_defn): Delete.
7002 (opencl_language_defn): Delete.
7003 (pascal_language_defn): Delete.
7004 (rust_language_defn): Delete.
7005 * gdb/m2-lang.c (m2_language_defn): Convert to...
7006 (m2_language_data): ...this.
7007 (class m2_language): New class.
7008 (m2_language_defn): New static global.
7009 * gdb/objc-lang.c (objc_language_defn): Convert to...
7010 (objc_language_data): ...this.
7011 (class objc_language): New class.
7012 (objc_language_defn): New static global.
7013 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
7014 (opencl_language_data): ...this.
7015 (class opencl_language): New class.
7016 (opencl_language_defn): New static global.
7017 * gdb/p-lang.c (pascal_language_defn): Convert to...
7018 (pascal_language_data): ...this.
7019 (class pascal_language): New class.
7020 (pascal_language_defn): New static global.
7021 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
7022 language pointer, update comment format.
7023 * gdb/rust-lang.c (rust_language_defn): Convert to...
7024 (rust_language_data): ...this.
7025 (class rust_language): New class.
7026 (rust_language_defn): New static global.
7027
1313c56e
AB
70282020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
7029
7030 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
7031 member variable.
7032 <m_stmt_at_address>: New member variable.
7033 (lnp_state_machine::record_line): Don't record some lines, update
7034 tracking of is_stmt at the same address.
7035 (lnp_state_machine::lnp_state_machine): Initialise new member
7036 variables.
7037
b7ed9f3d
ST
70382020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
7039
7040 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
7041 "-include gnu-nat-mig.h".
7042 * gnu-nat-mig.h: New file.
7043 * gnu-nat.c: Include "gnu-nat-mig.h".
7044 (exc_server, msg_reply_server, notify_server,
7045 process_reply_server): Remove declarations.
7046
14a8ad62
ST
70472020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7048
7049 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
7050 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
7051 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
7052 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
7053 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
7054 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
7055 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
7056 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
7057 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
7058 to gnu_nat_target class.
7059 * gnu-nat.c: Likewise.
7060 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
7061 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
7062 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
7063 object.
7064 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
7065 instead of `gnu_target'.
7066
0af5e106
ST
70672020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7068
7069 * i386-gnu-tdep.c: Include "gdbcore.h"
7070 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
7071 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
7072 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
7073 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
7074 i386_gnu_sigcontext_addr): New functions
7075 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
7076 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
7077 tdep.
7078
078f2fc9
ST
70792020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7080
7081 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7082 before fork_inferior call. Avoid calling it if target_is_pushed returns
7083 true.
7084
53dff92c
ST
70852020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7086
7087 * gnu-nat.h (gnu_target): New variable declaration.
7088 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7089 gnu_target.
7090 * gnu-nat.c (gnu_target): New variable.
7091 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7092 add_thread_silent, and add_thread calls.
7093 (gnu_nat_target::create_inferior): Pass gnu_target to
7094 add_thread_silent, thread_change_ptid call.
7095 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7096 call.
7097
5a8b8627
ST
70982020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7099
7100 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7101 (gnu_nat_target::find_memory_regions): Remove unused
7102 `old_address' variable.
7103
366f550a
ST
71042020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7105
7106 * gnu-nat.c: Include "gdbarch.h".
7107
f14871bf
ST
71082020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7109
7110 * reply_mig_hack.awk (Error return): Cast function through
7111 void *, to bypass compiler function call check.
7112
c6887cfb
ST
71132020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7114
7115 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7116 $(srcdir)/reply_mig_hack.awk.
7117
6930bffe
ST
71182020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7119
7120 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7121
112c22ed
JG
71222020-05-30 Jonny Grant <jg@jguk.org>
7123
7124 * configure.ac (ACX_BUGURL): change bug URL to https.
7125
f68f85b5
PA
71262020-05-30 Pedro Alves <palves@redhat.com>
7127
7128 * cp-support.c (replace_typedefs_template): New.
7129 (replace_typedefs_qualified_name): Handle
7130 DEMANGLE_COMPONENT_TEMPLATE.
7131
976ca316
SM
71322020-05-29 Simon Marchi <simon.marchi@efficios.com>
7133
7134 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7135 dwarf2/index-cache.h, dwarf2/index-write.c,
7136 dwarf2/index-write.h, dwarf2/line-header.c,
7137 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7138 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7139 variables and fields from `dwarf2_per_objfile` to just
7140 `per_objfile` throughout.
7141
989ade05
SM
71422020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7143
7144 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7145 <push_dwarf_reg_entry_value>: Add comment.
7146
c47bae85
KB
71472020-05-28 Kevin Buettner <kevinb@redhat.com>
7148 Keith Seitz <keiths@redhat.com>
7149
7150 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7151 instead of PyEval_ReleaseLock.
7152 (class gdbpy_gil): Move to earlier in file.
7153 (finalize_python): Set gdb_python_initialized.
7154 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7155 when not initialized.
7156
44486dcf
SM
71572020-05-28 Simon Marchi <simon.marchi@efficios.com>
7158
7159 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7160 <push_dwarf_reg_entry_value>: Remove assert. Override
7161 per_objfile with caller_per_objfile.
7162
f030440d
TV
71632020-05-28 Tom de Vries <tdevries@suse.de>
7164
7165 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7166 PR gold/15646 workaround to symbol kind "type".
7167
f0fbb768
TT
71682020-05-27 Tom Tromey <tromey@adacore.com>
7169
7170 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7171
af0b2a3e
TT
71722020-05-27 Tom Tromey <tromey@adacore.com>
7173
7174 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7175 Use htab_find_with_hash.
7176 <add_abbrev>: Remove "abbrev_number" parameter.
7177 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7178 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7179 (hash_abbrev): Add comment.
7180 (abbrev_table::lookup_abbrev): Move to header file.
7181 (abbrev_table::read): Update.
7182
7d00ffec
TT
71832020-05-27 Tom Tromey <tromey@adacore.com>
7184
7185 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7186 method.
7187 <canonical_name>: New member.
7188 <raw_name>: Rename from "name".
7189 (partial_die_info): Initialize canonical_name.
7190 (scan_partial_symbols): Check raw_name.
7191 (partial_die_parent_scope, partial_die_full_name)
7192 (add_partial_symbol, add_partial_subprogram)
7193 (add_partial_enumeration, load_partial_dies): Use "name" method.
7194 (partial_die_info::name): New method.
7195 (partial_die_info::read, guess_partial_die_structure_name)
7196 (partial_die_info::fixup): Update.
7197
697bba18
TT
71982020-05-27 Tom Tromey <tromey@adacore.com>
7199
7200 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7201 <get_ref_die_offset>: Inline.
7202 <get_ref_die_offset_complaint>: New method.
7203 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7204 (attribute::get_ref_die_offset_complaint): Rename from
7205 get_ref_die_offset. Just issue complaint.
7206
c17ace43
HD
72072020-05-27 Hannes Domani <ssbssa@yahoo.de>
7208
7209 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7210
96445f0b
HD
72112020-05-27 Hannes Domani <ssbssa@yahoo.de>
7212
7213 * exec.c (exec_file_attach): Use errno value of first openp failure.
7214
ac637ec3
HD
72152020-05-27 Hannes Domani <ssbssa@yahoo.de>
7216
7217 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7218 Don't close thread handle.
7219
17ee85fc
TT
72202020-05-27 Tom Tromey <tom@tromey.com>
7221 Simon Marchi <simon.marchi@efficios.com>
7222
7223 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7224 shared_ptr.
7225 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7226 member.
7227 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7228 dwarf2_per_bfd_objfile_data_key>: New globals.
7229 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7230 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7231 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7232 shared.
7233 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7234 short-circuit when sharing.
7235 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7236 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7237
39b16f87
SM
72382020-05-27 Simon Marchi <simon.marchi@efficios.com>
7239
7240 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7241 to...
7242 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7243 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7244
fcf23d5b
SM
72452020-05-27 Simon Marchi <simon.marchi@efficios.com>
7246
7247 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7248 build_name_components, find_name_components_bounds>:
7249 Add per_objfile parameter.
7250 (struct mapped_index) <symbol_name_at>: Likewise.
7251 (struct mapped_debug_names): Remove constructor.
7252 <dwarf2_per_objfile>: Remove field.
7253 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7254 (mapped_index_base::find_name_components_bounds,
7255 mapped_index_base::build_name_components,
7256 dw2_expand_symtabs_matching_symbol): Likewise.
7257 (class mock_mapped_index) <symbol_name_at>: Likewise.
7258 (check_match): Likewise.
7259 (check_find_bounds_finds): Likewise.
7260 (test_mapped_index_find_name_component_bounds): Update.
7261 (CHECK_MATCH): Update.
7262 (dw2_expand_symtabs_matching): Update.
7263 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7264 per_objfile parameter.
7265 <find_vec_in_debug_names>: Likewise.
7266 <m_per_objfile>: New field.
7267 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7268 parameter.
7269 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7270 (dw2_debug_names_iterator::next): Update.
7271 (dw2_debug_names_lookup_symbol): Update.
7272 (dw2_debug_names_expand_symtabs_for_function): Update.
7273 (dw2_debug_names_map_matching_symbols): Update.
7274 (dw2_debug_names_expand_symtabs_matching): Update.
7275 (dwarf2_read_debug_names): Update.
7276
7188ed02
SM
72772020-05-27 Simon Marchi <simon.marchi@efficios.com>
7278
7279 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7280 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7281 move to dwarf2_per_objfile.
7282 <read_in_chain>: Remove.
7283 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7284 remove_all_cus, age_comp_units>: New methods.
7285 <m_dwarf2_cus>: New member.
7286 (struct dwarf2_per_cu_data) <cu>: Remove.
7287 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7288 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7289 moved to methods of dwarf2_per_objfile.
7290 (dwarf2_clear_marks): Remove.
7291 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7292 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7293 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7294 (dwarf2_per_objfile::remove_all_cus): New.
7295 (class free_cached_comp_units) <~free_cached_comp_units>:
7296 Update.
7297 (load_cu): Update.
7298 (dw2_do_instantiate_symtab): Adjust.
7299 (fill_in_sig_entry_from_dwo_entry): Adjust.
7300 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7301 (cutu_reader::cutu_reader): Likewise.
7302 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7303 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7304 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7305 and dwarf2_per_objfile::age_comp_units.
7306 (load_partial_comp_unit): Update.
7307 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7308 (process_queue): Likewise.
7309 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7310 backlink.
7311 (dwarf2_read_addr_index): Likewise.
7312 (follow_die_offset): Likewise.
7313 (dwarf2_fetch_die_loc_sect_off): Likewise.
7314 (dwarf2_fetch_constant_bytes): Likewise.
7315 (dwarf2_fetch_die_type_sect_off): Likewise.
7316 (follow_die_sig_1): Likewise.
7317 (load_full_type_unit): Likewise.
7318 (read_signatured_type): Likewise.
7319 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7320 (dwarf2_cu::~dwarf2_cu): Remove.
7321 (dwarf2_per_objfile::get_cu): New.
7322 (dwarf2_per_objfile::set_cu): New.
7323 (age_cached_comp_units): Rename to...
7324 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7325 to std::unordered_map.
7326 (free_one_cached_comp_unit): Rename to...
7327 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7328 to std::unordered_map.
7329 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7330 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7331 a dwarf2_per_objfile in data.
7332 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7333 (dwarf2_clear_marks): Remove.
7334
2e671100
SM
73352020-05-27 Simon Marchi <simon.marchi@efficios.com>
7336
7337 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7338 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7339 (init_tu_and_read_dwo_dies): Likewise.
7340 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7341 (cutu_reader::cutu_reader): Likewise.
7342 (load_partial_comp_unit): Likewise.
7343 (process_psymtab_comp_unit): Update.
7344 (build_type_psymtabs_1): Update.
7345 (process_skeletonless_type_unit): Update.
7346 (load_full_comp_unit): Update.
7347 (find_partial_die): Update.
7348 (dwarf2_read_addr_index): Update.
7349 (read_signatured_type): Update.
7350
2e6a9f79
SM
73512020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7352
7353 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7354 m_header_read_in>: New fields.
7355 <get_header>: New method.
7356 * dwarf2/read.c (per_cu_header_read_in): Remove.
7357 (dwarf2_per_cu_data::get_header): New.
7358 (dwarf2_per_cu_data::addr_size): Update.
7359 (dwarf2_per_cu_data::offset_size): Update.
7360 (dwarf2_per_cu_data::ref_addr_size): Update.
7361
1b555f17
SM
73622020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7363
7364 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7365 (dw2_do_instantiate_symtab): Update.
7366 (queue_and_load_all_dwo_tus): Change parameter from
7367 dwarf2_per_cu_data to dwarf2_cu.
7368 (dwarf2_fetch_die_loc_sect_off): Update.
7369 (dwarf2_fetch_constant_bytes): Update.
7370 (dwarf2_fetch_die_type_sect_off): Update.
7371
8fc0b21d
SM
73722020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7373
7374 * dwarf2/read.c (process_full_comp_unit,
7375 process_full_type_unit): Remove per_cu, per_objfile paramters.
7376 Add dwarf2_cu parameter.
7377 (process_queue): Update.
7378
168c9250
SM
73792020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7380
7381 * dwarf2/read.c (create_cu_from_index_list): Replace
7382 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7383 (create_cus_from_index_list): Likewise.
7384 (create_cus_from_index): Likewise.
7385 (create_signatured_type_table_from_index): Likewise.
7386 (create_cus_from_debug_names_list): Likewise.
7387 (create_cus_from_debug_names): Likewise.
7388 (dwarf2_read_gdb_index): Update.
7389 (dwarf2_read_debug_names): Update.
7390
e286671b
TT
73912020-05-27 Tom Tromey <tom@tromey.com>
7392 Simon Marchi <simon.marchi@efficios.com>
7393
7394 * dwarf2/read.h (struct dwarf2_per_objfile)
7395 <get_type_for_signatured_type, set_type_for_signatured_type>:
7396 New methods.
7397 <m_type_map>: New member.
7398 (struct signatured_type) <type>: Remove.
7399 * dwarf2/read.c
7400 (dwarf2_per_objfile::get_type_for_signatured_type,
7401 dwarf2_per_objfile::set_type_for_signatured_type): New.
7402 (get_signatured_type): Use new methods.
7403
8adb8487
TT
74042020-05-27 Tom Tromey <tom@tromey.com>
7405 Simon Marchi <simon.marchi@efficios.com>
7406
7407 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7408 (struct dwarf2_per_objfile) <type_units>: New member.
7409 <get_type_unit_group_unshareable>: New method.
7410 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7411 num_symtabs, symtabs>: Remove; move to
7412 type_unit_group_unshareable.
7413 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7414 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7415 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7416
127bbf4b
SM
74172020-05-27 Simon Marchi <simon.marchi@efficios.com>
7418
7419 * dwarf2/read.h (struct dwarf2_per_cu_data):
7420 <dwarf2_per_objfile>: Remove.
7421 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7422 dwarf2_per_objfile.
7423 (create_signatured_type_table_from_index): Likewise.
7424 (create_signatured_type_table_from_debug_names): Likewise.
7425 (create_debug_type_hash_table): Likewise.
7426 (fill_in_sig_entry_from_dwo_entry): Likewise.
7427 (create_type_unit_group): Likewise.
7428 (read_comp_units_from_section): Likewise.
7429 (create_cus_hash_table): Likewise.
7430
f6e649dd
SM
74312020-05-27 Simon Marchi <simon.marchi@efficios.com>
7432
7433 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7434 dwarf2_per_cu_data::dwarf2_per_objfile.
7435 (compute_compunit_symtab_includes): Likewise.
7436 (dwarf2_cu::start_symtab): Likewise.
7437
aa66c379
SM
74382020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7439
7440 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7441 parameter.
7442 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7443 (read_namespace_alias): Update.
7444 (lookup_die_type): Update.
7445 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7446 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7447 Update.
7448 (disassemble_dwarf_expression): Update.
7449
120ce1b5
SM
74502020-05-27 Simon Marchi <simon.marchi@efficios.com>
7451
7452 * dwarf2/read.h (struct dwarf2_queue_item): Add
7453 dwarf2_per_objfile parameter, assign new parameter.
7454 <per_objfile>: New field.
7455 * dwarf2/read.c (free_one_cached_comp_unit): Add
7456 dwarf2_per_objfile parameter.
7457 (queue_comp_unit): Likewise.
7458 (dw2_do_instantiate_symtab): Update.
7459 (process_psymtab_comp_unit): Update.
7460 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7461 (process_imported_unit_die): Update.
7462 (queue_and_load_dwo_tu): Update.
7463 (follow_die_offset): Update.
7464 (follow_die_sig_1): Update.
7465
9f47c707
SM
74662020-05-27 Simon Marchi <simon.marchi@efficios.com>
7467
7468 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7469 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7470 (read_call_site_scope): Assign per_objfile.
7471 (dwarf2_per_cu_data::objfile): Remove.
7472 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7473 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7474 dwarf2_per_objfile parameter.
7475 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7476 dwarf2_per_objfile parameter.
7477 (dwarf_expr_reg_to_entry_parameter): Add output
7478 dwarf2_per_objfile parameter.
7479 (locexpr_get_frame_base): Update.
7480 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7481 <push_dwarf_reg_entry_value>: Update.
7482 <call_site_to_target_addr>: Update.
7483 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7484 parameter.
7485 (value_of_dwarf_reg_entry): Update.
7486 (rw_pieced_value): Update.
7487 (indirect_synthetic_pointer): Update.
7488 (dwarf2_evaluate_property): Update.
7489 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7490 parameter.
7491 (locexpr_read_variable): Update.
7492 (locexpr_get_symbol_read_needs): Update.
7493 (loclist_read_variable): Update.
7494
14095eb3
SM
74952020-05-27 Simon Marchi <simon.marchi@efficios.com>
7496
7497 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7498 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7499 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7500 parameter.
7501 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7502 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7503 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7504 parameter.
7505 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7506 sect_variable_value): Add dwarf2_per_objfile parameter.
7507 (class dwarf_evaluate_loc_desc) <dwarf_call,
7508 dwarf_variable_value>: Update.
7509 (fetch_const_value_from_synthetic_pointer): Add
7510 dwarf2_per_objfile parameter.
7511 (fetch_const_value_from_synthetic_pointer): Update.
7512 (coerced_pieced_ref): Update.
7513 (class symbol_needs_eval_context) <dwarf_call,
7514 dwarf_variable_value>: Update.
7515 (dwarf2_compile_expr_to_ax): Update.
7516
3c3cd3d4
SM
75172020-05-27 Simon Marchi <simon.marchi@efficios.com>
7518
7519 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7520 parameter.
7521 (dwarf2_evaluate_loc_desc_full): Update.
7522
82ca3f51
SM
75232020-05-27 Simon Marchi <simon.marchi@efficios.com>
7524
7525 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7526 parameter.
7527 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7528 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7529 dwarf2_per_objfile parameter.
7530 (decode_debug_loc_dwo_addresses): Likewise.
7531 (dwarf2_find_location_expression): Update.
7532 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7533 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7534 parameter.
7535 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7536 parameter.
7537 (locexpr_describe_location_1): Likewise.
7538 (locexpr_describe_location): Update.
7539
4b167ea1
SM
75402020-05-27 Simon Marchi <simon.marchi@efficios.com>
7541
7542 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7543 Remove.
7544 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7545 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7546 (dwarf2_compile_property_to_c): Update.
7547 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7548 use text offset from objfile.
7549 (locexpr_tracepoint_var_ref): Update.
7550 (locexpr_generate_c_location): Update.
7551 (loclist_describe_location): Update.
7552 (loclist_tracepoint_var_ref): Update.
7553 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7554 dwarf2_per_objfile parameter.
7555 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7556 use text offset from objfile.
7557 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7558
89b07335
SM
75592020-05-27 Simon Marchi <simon.marchi@efficios.com>
7560
7561 * dwarf2/expr.h (struct dwarf_expr_context)
7562 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7563 <offset>: Remove.
7564 <per_objfile>: New member.
7565 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7566 dwarf2_per_objfile parameter. Don't set offset, set
7567 per_objfile.
7568 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7569 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7570 a dwarf2_per_objfile object instead of an offset.
7571 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7572 constructor.
7573 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7574 to dwarf2_expr_executor constructor. Don't set offset.
7575 (dwarf2_fetch_cfa_info): Update.
7576 (struct dwarf2_frame_cache) <text_offset>: Remove.
7577 <per_objfile>: New field.
7578 (dwarf2_frame_cache): Update.
7579 (dwarf2_frame_prev_register): Update.
7580 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7581 <dwarf_evaluate_loc_desc>: Add constructor.
7582 (dwarf2_evaluate_loc_desc_full): Update.
7583 (dwarf2_locexpr_baton_eval): Update.
7584 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7585 Add constructor.
7586 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7587
293e7e51
SM
75882020-05-27 Simon Marchi <simon.marchi@efficios.com>
7589
7590 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7591 addr_sized_int_type>: Move to dwarf2_cu.
7592 <int_type>: Move to dwarf2_per_objfile.
7593 (struct dwarf2_per_objfile) <int_type>: Move here.
7594 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7595 addr_sized_int_type>: Move here.
7596 (read_func_scope): Update.
7597 (read_array_type): Update.
7598 (read_tag_string_type): Update.
7599 (attr_to_dynamic_prop): Update.
7600 (dwarf2_per_cu_data::int_type): Rename to...
7601 (dwarf2_per_objfile::int_type): ... this.
7602 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7603 (dwarf2_cu::addr_sized_int_type): ... this.
7604 (read_subrange_type): Update.
7605 (dwarf2_per_cu_data::addr_type): Rename to...
7606 (dwarf2_cu::addr_type): ... this.
7607 (set_die_type): Update.
7608
64874a40
SM
76092020-05-27 Simon Marchi <simon.marchi@efficios.com>
7610
7611 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7612 data through per_cu->cu.
7613
4ab09049
SM
76142020-05-27 Simon Marchi <simon.marchi@efficios.com>
7615
7616 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7617 dwarf2_per_cu_data parameter fo dwarf2_cu.
7618 (lookup_dwo_type_unit): Likewise.
7619 (read_cutu_die_from_dwo): Likewise.
7620 (lookup_dwo_unit): Likewise.
7621 (open_and_init_dwo_file): Likewise.
7622 (lookup_dwo_cutu): Likewise.
7623 (lookup_dwo_comp_unit): Likewise.
7624 (lookup_dwo_type_unit): Likewise.
7625 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7626 (cutu_reader::cutu_reader): Update.
7627
47b14e86
SM
76282020-05-27 Simon Marchi <simon.marchi@efficios.com>
7629
7630 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7631 parameter.
7632 (process_full_type_unit): Likewise.
7633 (process_queue): Update.
7634
43182c09
SM
76352020-05-27 Simon Marchi <simon.marchi@efficios.com>
7636
7637 * dwarf2/read.c (recursively_compute_inclusions): Add
7638 dwarf2_per_objfile parameter.
7639 (compute_compunit_symtab_includes): Likewise.
7640 (process_cu_includes): Update.
7641
7aa104c4
SM
76422020-05-27 Simon Marchi <simon.marchi@efficios.com>
7643
7644 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7645 parameter.
7646 (create_type_unit_group): Update.
7647 (process_psymtab_comp_unit_reader): Update.
7648 (build_type_psymtabs_reader): Update.
7649
e3beb21d
SM
76502020-05-27 Simon Marchi <simon.marchi@efficios.com>
7651
7652 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7653 object through m_this_cu->cu.
7654
d460f660
SM
76552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7656
7657 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7658 the info parameter.
7659 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7660
ab432490
SM
76612020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7662
7663 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7664 per_objfile parameter.
7665 (load_full_type_unit): Add per_objfile parameter.
7666 (read_signatured_type): Likewise.
7667 (load_full_comp_unit): Likewise.
7668 (load_cu): Likewise.
7669 (dw2_do_instantiate_symtab): Likewise.
7670 (dw2_get_file_names): Likewise.
7671 (dw2_map_symtabs_matching_filename): Update.
7672 (dw_expand_symtabs_matching_file_matcher): Update.
7673 (dw2_map_symbol_filenames): Update.
7674 (process_psymtab_comp_unit): Add per_objfile parameter.
7675 (build_type_psymtabs_1): Update.
7676 (process_skeletonless_type_unit): Update.
7677 (dwarf2_build_psymtabs_hard): Update.
7678 (load_partial_comp_unit): Add per_objfile parameter.
7679 (scan_partial_symbols): Update.
7680 (load_full_comp_unit): Add per_objfile parameter.
7681 (process_imported_unit_die): Update.
7682 (create_cus_hash_table): Update.
7683 (find_partial_die): Update.
7684 (dwarf2_read_addr_index): Update.
7685 (follow_die_offset): Update.
7686 (dwarf2_fetch_die_loc_sect_off): Update.
7687 (dwarf2_fetch_constant_bytes): Update.
7688 (dwarf2_fetch_die_type_sect_off): Update.
7689 (follow_die_sig_1): Update.
7690 (load_full_type_unit): Add per_objfile parameter.
7691 (read_signatured_type): Likewise.
7692
313bad1b
SM
76932020-05-27 Simon Marchi <simon.marchi@efficios.com>
7694
7695 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7696 of objfile_name.
7697
c3699833
SM
76982020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7699
7700 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7701 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7702 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7703 field.
7704 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7705 (create_cus_from_index): Update.
7706 (dwarf2_read_gdb_index): Update.
7707 (create_cus_from_debug_names): Update.
7708 (dwarf2_read_debug_names): Update.
7709 (get_abbrev_section_for_cu): Update.
7710 (create_all_comp_units): Update.
7711 (read_attribute_value): Update.
7712 (get_debug_line_section): Update.
7713 * dwarf2/index-cache.c (index_cache::store): Update.
7714 * dwarf2/index-write.c (save_gdb_index_command): Update.
7715 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7716
1859c670
SM
77172020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7718
7719 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7720 member.
7721 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7722 dwarf2_per_cu_data::per_bfd.
7723 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7724 (create_type_unit_group): Likewise.
7725 (queue_comp_unit): Remove reference to
7726 per_cu->dwarf2_per_objfile.
7727 (maybe_queue_comp_unit): Likewise.
7728 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7729 (create_cus_hash_table): Assign new field.
7730
5e22e966
SM
77312020-05-27 Simon Marchi <simon.marchi@efficios.com>
7732
7733 * dwarf2/read.c: Replace
7734 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7735 dwarf2_cu->per_objfile throughout.
7736
97a1449a
SM
77372020-05-27 Simon Marchi <simon.marchi@efficios.com>
7738
7739 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7740 parameter, don't use per_cu->dwarf2_per_objfile.
7741 (dw2_instantiate_symtab): Likewise.
7742 (dw2_find_last_source_symtab): Update.
7743 (dw2_map_expand_apply): Update.
7744 (dw2_lookup_symbol): Update.
7745 (dw2_expand_symtabs_for_function): Update.
7746 (dw2_expand_all_symtabs): Update.
7747 (dw2_expand_symtabs_with_fullname): Update.
7748 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7749 don't use per_cu->dwarf2_per_objfile.
7750 (dw2_expand_marked_cus): Update.
7751 (dw2_find_pc_sect_compunit_symtab): Update.
7752 (dw2_debug_names_lookup_symbol): Update.
7753 (dw2_debug_names_expand_symtabs_for_function): Update.
7754 (dw2_debug_names_map_matching_symbols): Update.
7755 (dwarf2_psymtab::expand_psymtab): Update.
7756
9e021579
SM
77572020-05-27 Simon Marchi <simon.marchi@efficios.com>
7758
7759 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7760 <per_objfile>: New member.
7761 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7762 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7763 call to dwarf2_cu.
7764 (cutu_reader::cutu_reader): Update.
7765 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7766
ae090bdb
SM
77672020-05-27 Simon Marchi <simon.marchi@efficios.com>
7768
7769 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7770 struct dwarf2_per_objfile.
7771 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7772 dwarf2_per_bfd.
7773 * dwarf2/read.c (set_die_type): Update.
7774 (get_die_type_at_offset): Update.
7775
af758d11
SM
77762020-05-27 Tom Tromey <tom@tromey.com>
7777 Simon Marchi <simon.marchi@efficios.com>
7778
7779 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7780 method.
7781 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7782 get_symtab, set_symtab>: New methods.
7783 <m_symtabs>: New field.
7784 (struct dwarf2_psymtab): Derive from partial_symtab.
7785 <readin_p, get_compunit_symtab>: Declare methods.
7786 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7787 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7788 New methods.
7789 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7790 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7791 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7792 (dw2_symtab_iter_next, dw2_print_stats)
7793 (dw2_expand_symtabs_with_fullname)
7794 (dw2_expand_symtabs_matching_one)
7795 (dw_expand_symtabs_matching_file_matcher)
7796 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7797 (dw2_debug_names_iterator::next)
7798 (dw2_debug_names_map_matching_symbols)
7799 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7800 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7801 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7802 New methods.
7803 (get_compunit_symtab, process_full_comp_unit)
7804 (process_full_type_unit): Update.
7805 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7806
5989a64e
SM
78072020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7808
7809 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7810 then introduce a new dwarf2_per_objfile type.
7811 <read_line_string>: Move to the new dwarf2_per_objfile type.
7812 <objfile>: Likewise.
7813 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7814 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7815 dwarf2_per_objfile->per_bfd.
7816 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7817 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7818 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7819 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7820 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7821 (dwarf2_per_objfile::locate_sections): Rename to...
7822 (dwarf2_per_bfd::locate_sections): ... this.
7823 (dwarf2_per_objfile::get_cutu): Rename to...
7824 (dwarf2_per_bfd::get_cutu): ... this.
7825 (dwarf2_per_objfile::get_cu): Rename to...
7826 (dwarf2_per_bfd::get_cu): ... this.
7827 (dwarf2_per_objfile::get_tu): Rename to...
7828 (dwarf2_per_bfd::get_tu): ... this.
7829 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7830 (dwarf2_per_bfd::allocate_per_cu): ... this.
7831 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7832 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7833 (get_gdb_index_contents_ftype): Change parameter from
7834 dwarf2_per_objfile to dwarf2_per_bfd.
7835 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7836 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7837
a50264ba
TT
78382020-05-27 Tom Tromey <tom@tromey.com>
7839 Simon Marchi <simon.marchi@efficios.com>
7840
7841 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7842 (allocate_piece_closure): Set "per_objfile" member.
7843 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7844 (locexpr_describe_location, loclist_describe_location): Use new
7845 member.
7846 * dwarf2/read.c (read_call_site_scope)
7847 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7848 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7849 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7850 handle_data_member_location): Set per_objfile member.
7851 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7852 member.
7853 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7854
d3473f0c
TT
78552020-05-27 Tom Tromey <tom@tromey.com>
7856
7857 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7858 allocate_signatured_type>: Declare new methods.
7859 <m_num_psymtabs>: New member.
7860 (struct dwarf2_per_cu_data) <index>: New member.
7861 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7862 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7863 (create_cu_from_index_list): Use allocate_per_cu.
7864 (create_signatured_type_table_from_index)
7865 (create_signatured_type_table_from_debug_names)
7866 (create_debug_type_hash_table, add_type_unit)
7867 (read_comp_units_from_section): Use allocate_signatured_type.
7868
5717c425
TT
78692020-05-27 Tom Tromey <tom@tromey.com>
7870
7871 * psymtab.c (partial_map_expand_apply)
7872 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7873 (psym_lookup_global_symbol_language)
7874 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7875 (psym_print_stats, psym_expand_symtabs_for_function)
7876 (psym_map_symbol_filenames, psym_map_matching_symbols)
7877 (psym_expand_symtabs_matching)
7878 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7879 (maintenance_check_psymtabs): Update.
7880 * psympriv.h (struct partial_symtab) <readin_p,
7881 get_compunit_symtab>: Add objfile parameter.
7882 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7883 Likewise.
7884 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7885 get_compunit_symtab>: Likewise.
7886 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7887
45940949
TT
78882020-05-27 Tom Tromey <tom@tromey.com>
7889
7890 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7891 member.
7892 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7893 (create_cu_from_index_list)
7894 (create_signatured_type_table_from_index)
7895 (create_signatured_type_table_from_debug_names)
7896 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7897 (dwarf2_create_include_psymtab)
7898 (create_debug_type_hash_table, add_type_unit)
7899 (create_type_unit_group, read_comp_units_from_section)
7900 (dwarf2_compute_name, create_cus_hash_table)
7901 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7902 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7903 obstack.
7904 (dw2_get_real_path): Likewise. Change argument to
7905 dwarf2_per_objfile.
7906
f8c6d152
LM
79072020-05-27 Luis Machado <luis.machado@linaro.org>
7908
7909 PR tdep/26000
7910 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7911 for ldrd (immediate).
7912
e98d2e6d
PW
79132020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7914
7915 * command.h: Add comment giving the name of class_tui.
7916 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7917 create the fake command for the help for class_tui.
7918
53a47a3e
TT
79192020-05-26 Tom Tromey <tromey@adacore.com>
7920
7921 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7922 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7923 (val_atr): New function.
7924 (value_val_atr): Use it.
7925 * ada-valprint.c (print_optional_low_bound): Change low bound
7926 handling for enums.
7927 (val_print_packed_array_elements): Don't call discrete_position.
7928 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7929 discrete_position for enum types.
7930 * language.c (default_print_array_index): Change type.
7931 * language.h (struct language_defn) <la_print_array_index>: Add
7932 index_type parameter, change type of index_value.
7933 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7934 (default_print_array_index): Update.
7935 * valprint.c (maybe_print_array_index): Don't call
7936 value_from_longest. Update.
7937 (value_print_array_elements): Don't call discrete_position.
7938
0bc2354b
TT
79392020-05-26 Tom Tromey <tromey@adacore.com>
7940
7941 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7942 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7943
1218a4bf
CDA
79442020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7945
7946 PR gdb/13519
7947 * avr-tdep.c (avr_integer_to_address): Return data or code
7948 address accordingly to the second 'type' argument of the
7949 function.
7950
92651b1d
MW
79512020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7952
7953 * infcmd.c, inferior.h: (construct_inferior_arguments):
7954 Moved function from here to gdbsupport/common-inferior.{h,cc}
7955
0a4f5f8c
TT
79562020-05-23 Tom Tromey <tom@tromey.com>
7957
7958 Revert commit eca1f90c:
7959 * NEWS: Remove entry for completion styling.
7960 * completer.c (_rl_completion_prefix_display_length): Move
7961 declaration later.
7962 (gdb_fnprint): Revert.
7963 (gdb_display_match_list_1): Likewise.
7964 * cli/cli-style.c (completion_prefix_style)
7965 (completion_difference_style, completion_suffix_style): Remove.
7966 (_initialize_cli_style): Revert.
7967 * cli/cli-style.h (completion_prefix_style)
7968 (completion_difference_style, completion_suffix_style): Don't
7969 declare.
7970
e08bd6c5
PA
79712020-05-24 Pedro Alves <palves@redhat.com>
7972
7973 * symtab.c (completion_list_add_name): Return boolean indication
7974 of whether the symbol matched.
7975 (completion_list_add_symbol): Don't try to remove C++ aliases if
7976 the symbol didn't match in the first place.
7977 * symtab.h (completion_list_add_name): Return bool.
7978
ceacbf6e
SM
79792020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7980
7981 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7982 type::field.
7983
26f16254
JB
79842020-05-23 Joel Brobecker <brobecker@adacore.com>
7985
7986 GDB 9.2 released.
7987
eca1f90c
TT
79882020-05-23 Tom Tromey <tom@tromey.com>
7989
7990 * NEWS: Add entry for completion styling.
7991 * completer.c (_rl_completion_prefix_display_length): Move
7992 declaration earlier.
7993 (gdb_fnprint): Use completion_style.
7994 (gdb_display_match_list_1): Likewise.
7995 * cli/cli-style.c (completion_prefix_style)
7996 (completion_difference_style, completion_suffix_style): New
7997 globals.
7998 (_initialize_cli_style): Register new globals.
7999 * cli/cli-style.h (completion_prefix_style)
8000 (completion_difference_style, completion_suffix_style): Declare.
8001
51e2cfa2
PA
80022020-05-23 Pedro Alves <palves@redhat.com>
8003
8004 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
8005 (parse_escape): Use ISDIGIT instead of isdigit.
8006 (puts_debug): Use gdb_isprint instead of isprint.
8007 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
8008 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
8009 ISSPACE instead of isspace.
8010 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
8011 instead of isspace.
8012 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
8013 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
8014 instead of isxdigit and ISDIGIT instead of isdigit.
8015
80fc5e77
SM
80162020-05-22 Simon Marchi <simon.marchi@efficios.com>
8017
8018 * gdbtypes.h (struct type) <field>: New method.
8019 (TYPE_FIELDS): Remove, replace all uses with either type::fields
8020 or type::field.
8021
3cabb6b0
SM
80222020-05-22 Simon Marchi <simon.marchi@efficios.com>
8023
8024 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
8025 (TYPE_FIELDS): Use type::fields. Change all call sites that
8026 modify the propery to use type::set_fields instead.
8027
1f704f76
SM
80282020-05-22 Simon Marchi <simon.marchi@efficios.com>
8029
8030 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
8031 type::num_fields instead.
8032
5e33d5f4
SM
80332020-05-22 Simon Marchi <simon.marchi@efficios.com>
8034
8035 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
8036 methods.
8037 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
8038 that modify the number of fields to use type::set_num_fields
8039 instead.
8040
9392ebb3
TT
80412020-05-22 Tom Tromey <tromey@adacore.com>
8042
8043 * compile/compile-object-load.h (munmap_list_free): Don't
8044 declare.
8045
7c13f4e8
AB
80462020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
8047
8048 * annotate.c (annotate_source_line): Update return type, add call
8049 to update current symtab and line.
8050 * annotate.h (annotate_source_line): Update return type, and
8051 extend header comment.
8052 * source.c (info_line_command): Check annotation_level before
8053 calling annotate_source_line.
8054 * stack.c (print_frame_info): If calling annotate_source_line
8055 returns true, then don't print any other source line information.
8056
aa370940
SM
80572020-05-21 Simon Marchi <simon.marchi@efficios.com>
8058
8059 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
8060
84d53fa9
SM
80612020-05-21 Simon Marchi <simon.marchi@efficios.com>
8062
8063 * coffread.c (patch_type): Remove NULL check before xfree.
8064 * corefile.c (set_gnutarget): Likewise.
8065 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
8066 * exec.c (build_section_table): Likewise.
8067 * remote.c (remote_target::pass_signals): Likewise.
8068 * utils.c (n_spaces): Likewise.
8069 * cli/cli-script.c (document_command): Likewise.
8070 * i386-windows-tdep.c (core_process_module_section): Likewise.
8071 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
8072
9d428aae
SM
80732020-05-20 Simon Marchi <simon.marchi@efficios.com>
8074
8075 * symfile.c (reread_symbols): Clear objfile's section_offsets
8076 vector and section indices, re-compute them by calling
8077 sym_offsets.
8078
250106a7
TT
80792020-05-20 Tom Tromey <tromey@adacore.com>
8080
8081 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 8082 (desc_one_bound, desc_index_type): Compute field name.
250106a7 8083
9a0bacfb
TV
80842020-05-20 Tom de Vries <tdevries@suse.de>
8085
8086 PR symtab/25833
8087 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8088
7b958a48
AM
80892020-05-20 Alan Modra <amodra@gmail.com>
8090
8091 PR 25993
8092 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8093 bfd_set_filename.
8094 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8095 passed to bfd_set_filename.
8096 * symfile-mem.c (add_vsyscall_page): Likewise for string
8097 passed to symbol_file_add_from_memory.
8098 (symbol_file_add_from_memory): Make name param a const char* and
8099 don't strdup.
8100
c7e97679
AM
81012020-05-20 Alan Modra <amodra@gmail.com>
8102
8103 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8104 rather than accessing bfd->filename directly.
8105 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8106 and use bfd_section_name.
8107 * dwarf2/frame.c (decode_frame_entry): Likewise.
8108 * exec.c (exec_set_section_address): Likewise.
8109 * solib-aix.c (solib_aix_bfd_open): Likewise.
8110 * stap-probe.c (get_stap_base_address): Likewise.
8111 * symfile.c (reread_symbols): Likewise.
8112
563c591b
TT
81132020-05-19 Tom Tromey <tromey@adacore.com>
8114
8115 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8116
f408d82c
SM
81172020-05-19 Simon Marchi <simon.marchi@efficios.com>
8118
8119 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8120
98c59b52
PA
81212020-05-19 Pedro Alves <palves@redhat.com>
8122
8123 * NEWS (set exec-file-mismatch): Adjust entry.
8124 * exec.c: Include "build-id.h".
8125 (validate_exec_file): Try to match build IDs instead of filenames.
8126 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8127 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8128 and pass down 'warn_if_slow'.
8129 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8130 gdb_bfd_open_closure to pass it down.
8131 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8132
4111f652
PA
81332020-05-19 Pedro Alves <palves@redhat.com>
8134
8135 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8136 * target.c (target_fileio_open_1): Rename to target_fileio_open
8137 and make extern. Use bool.
8138 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8139 (target_fileio_read_alloc_1): Adjust.
8140 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8141 (target_fileio_open_warn_if_slow): Delete declaration.
8142
ad80db5b
PA
81432020-05-19 Pedro Alves <palves@redhat.com>
8144
8145 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8146 Adjust all callers.
8147
1d6ce4d3
YS
81482020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8149
8150 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8151 whether disp is negative.
8152
9005fbbb
SM
81532020-05-19 Simon Marchi <simon.marchi@efficios.com>
8154
8155 * symfile.h (struct symfile_segment_data)
8156 <~symfile_segment_data>: Remove.
8157 <segment_info>: Change to std::vector.
8158 * symfile.c (default_symfile_segments): Update.
8159 * elfread.c (elf_symfile_segments): Update.
8160
68b888ff
SM
81612020-05-19 Simon Marchi <simon.marchi@efficios.com>
8162
8163 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8164 <segments>: New.
8165 <segment_bases, segment_sizes>: Remove.
8166 * symfile.c (default_symfile_segments): Update.
8167 * elfread.c (elf_symfile_segments): Update.
8168 * remote.c (remote_target::get_offsets): Update.
8169 * solib-target.c (solib_target_relocate_section_addresses):
8170 Update.
8171
62982abd
SM
81722020-05-19 Simon Marchi <simon.marchi@efficios.com>
8173
8174 * symfile.h (struct symfile_segment_data): Initialize fields.
8175 <~symfile_segment_data>: Add.
8176 (symfile_segment_data_up): New.
8177 (struct sym_fns) <sym_segments>: Return a
8178 symfile_segment_data_up.
8179 (default_symfile_segments): Return a symfile_segment_data_up.
8180 (free_symfile_segment_data): Remove.
8181 (get_symfile_segment_data): Return a symfile_segment_data_up.
8182 * symfile.c (default_symfile_segments): Likewise.
8183 (get_symfile_segment_data): Likewise.
8184 (free_symfile_segment_data): Remove.
8185 (symfile_find_segment_sections): Update.
8186 * elfread.c (elf_symfile_segments): Return a
8187 symfile_segment_data_up.
8188 * remote.c (remote_target::get_offsets): Update.
8189 * solib-target.c (solib_target_relocate_section_addresses):
8190 Update.
8191 * symfile-debug.c (debug_sym_segments): Return a
8192 symfile_segment_data_up.
8193
7f204339
RO
81942020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8195
e52a0f1b
RO
8196 PR build/25981
8197 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8198 Hardcode register numbers.
8199
7f204339
RO
8200 PR build/25981
8201 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8202 procfs_find_LDT_entry): Remove.
8203 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8204 procfs_find_LDT_entry): Remove.
8205 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8206 Remove.
8207
7f32a4d5
PA
82082020-05-17 Pedro Alves <palves@redhat.com>
8209 Andrew Burgess <andrew.burgess@embecosm.com>
8210 Keno Fischer <keno@juliacomputing.com>
8211
8212 PR gdb/25741
8213 * breakpoint.c (build_target_condition_list): Update comments.
8214 (build_target_command_list): Update comments and skip matching
8215 locations.
8216 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8217 a separate function. Simplify "set breakpoint auto-hw off"
8218 handling.
8219 (insert_breakpoints): Update comment.
8220 (tracepoint_locations_match): New parameter. For breakpoints,
8221 compare location types too, if the caller wants to.
8222 (handle_automatic_hardware_breakpoints): New functions.
8223 (bp_location_is_less_than): Also sort by location type and
8224 hardware breakpoint length.
8225 (update_global_location_list): Handle "set breakpoint auto-hw on"
8226 here.
8227 (update_breakpoint_locations): Ask breakpoint_locations_match to
8228 ignore location types.
8229
7d93a1e0
SM
82302020-05-16 Simon Marchi <simon.marchi@efficios.com>
8231
8232 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8233 type::name instead.
8234
d0e39ea2
SM
82352020-05-16 Simon Marchi <simon.marchi@efficios.com>
8236
8237 * gdbtypes.h (struct type) <name, set_name>: New methods.
8238 (TYPE_CODE): Use type::name. Change all call sites used to set
8239 the name to use type::set_name instead.
8240
2dab0c7b
TT
82412020-05-16 Tom Tromey <tom@tromey.com>
8242
8243 * top.c (quit_force): Update.
8244 * infrun.c (handle_no_resumed): Update.
8245 * top.h (all_uis): New function.
8246 (ALL_UIS): Remove.
8247
59f7bd8d
SM
82482020-05-16 Simon Marchi <simon.marchi@efficios.com>
8249
8250 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8251
9bf058f0
PA
82522020-05-16 Pedro Alves <palves@redhat.com>
8253
8254 * ia64-linux-nat.c
8255 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8256 Declare method.
8257 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8258
8f86ae1a
SM
82592020-05-15 Simon Marchi <simon.marchi@efficios.com>
8260
8261 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8262 (sparc64_adi_info): Likewise.
8263
d6bc0792
TT
82642020-05-15 Tom Tromey <tom@tromey.com>
8265
8266 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8267 block_objfile.
8268 (lookup_objfile_from_block): Remove.
8269 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8270 (lookup_global_symbol): Use block_objfile.
8271 * symtab.h (lookup_objfile_from_block): Don't declare.
8272 * printcmd.c (clear_dangling_display_expressions): Use
8273 block_objfile.
8274 * parse.c (operator_check_standard): Use block_objfile.
8275
8c14c3a3
TT
82762020-05-15 Tom Tromey <tom@tromey.com>
8277
8278 * language.c (language_alloc_type_symbol): Set
8279 SYMBOL_SECTION.
8280 * symtab.c (initialize_objfile_symbol): Remove.
8281 (allocate_symbol): Remove.
8282 (allocate_template_symbol): Remove.
8283 * dwarf2/read.c (fixup_go_packaging): Use "new".
8284 (new_symbol): Use "new".
8285 (read_variable): Don't call initialize_objfile_symbol. Use
8286 "new".
8287 (read_func_scope): Use "new".
8288 * xcoffread.c (process_xcoff_symbol): Don't call
8289 initialize_objfile_symbol.
8290 (SYMBOL_DUP): Remove.
8291 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8292 "new".
8293 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8294 (allocate_template_symbol): Don't declare.
8295 (struct symbol): Add copy constructor. Change defaults.
8296 * jit.c (finalize_symtab): Use "new".
8297 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8298 Use "new".
8299 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8300 (common_block_end): Use "new".
8301 * mdebugread.c (parse_symbol): Use "new".
8302 (new_symbol): Likewise.
8303
5b4a1a8d
PW
83042020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8305
8306 * NEWS: Mention changes to help and apropos.
8307
57b4f16e
PW
83082020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8309
8310 * command.h (enum command_class): Improve comments, document
8311 that class_alias is for user-defined aliases, give the class
8312 name for each class, remove unused class_xdb.
8313 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8314 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8315 by a precise class.
8316 * infcmd.c (_initialize_infcmd): Likewise.
8317 * reverse.c (_initialize_reverse): Likewise.
8318 * stack.c (_initialize_stack): Likewise.
8319 * symfile.c (_initialize_symfile): Likewise.
8320 * tracepoint.c (_initialize_tracepoint): Likewise.
8321
7c05caf7
PW
83222020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8323
8324 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8325 when their aliased command is traversed.
8326 (help_cmd): Add fput_command_names_styled call to
8327 output command name and aliases when command has an alias.
8328
3b3aaacb
PW
83292020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8330
8331 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8332 * cli/cli-decode.c (help_cmd_list): Declare as static,
8333 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8334 a command together with the command.
8335 (fput_command_name_styled, fput_command_names_styled): New functions.
8336 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8337 fput_command_name_styled.
8338 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8339 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8340
7aa1b46f
PW
83412020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8342
8343 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8344 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8345 * command.h (cmd_show_list): Likewise.
8346 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8347 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8348
89bcba74
PW
83492020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8350
8351 * unittests/command-def-selftests.c (traverse_command_structure):
8352 Verify all commands of a list have the same prefix command and
8353 that only the top cmdlist commands have a null prefix.
8354
3f4d92eb
PW
83552020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8356
8357 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8358 as prefix, not one of its aliases.
8359 (set_cmd_prefix): Remove.
8360 (do_add_cmd): Centralize the setting of the prefix of a command, when
8361 command is defined after its full chain of prefix commands.
8362 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8363 (add_setshow_cmd_full): Likewise.
8364 (update_prefix_field_of_prefixed_commands): New function.
8365 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8366 update_prefix_field_of_prefixed_commands.
8367 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8368 addresses of remote_set_cmdlist and remote_show_cmdlist given
8369 as argument, not the address of an argument.
8370 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8371 * gdb/remote.c (_initialize_remote): Likewise.
8372
0605465f
PW
83732020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8374
8375 * cli/cli-cmds.c (alias_command): Check for an existing alias
8376 using lookup_cmd_composition, as valid_command_p is too strict
8377 and forbids aliases that are the prefix of an existing alias
8378 or command.
8379 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8380 command is properly recognised as a valid command.
8381
58e6ac70
PW
83822020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8383
8384 * unittests/help-doc-selftests.c: Rename to
8385 unittests/command-def-selftests.c
8386 * unittests/command-def-selftests.c (help_doc_tests): Update some
8387 comments.
8388 (command_structure_tests, traverse_command_structure): New namespace
8389 and function.
8390 (command_structure_invariants_tests): New function.
8391 (_initialize_command_def_selftests) Renamed from
8392 _initialize_help_doc_selftests, register command_structure_invariants
8393 selftest.
8394
a7b9ceb8
PW
83952020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8396
8397 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8398 an alias of 'show'.
8399
b2188a06
JB
84002020-05-15 Joel Brobecker <brobecker@adacore.com>
8401
8402 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8403 ada_is_fixed_point_type. Update all callers.
8404 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8405 all callers.
8406 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8407 Update all callers.
8408 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8409 print_fixed_point_type. Update all callers.
8410 * ada-valprint.c (ada_value_print_num): Replace call to
8411 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8412
a51951c2
KB
84132020-05-14 Kevin Buettner <kevinb@redhat.com>
8414
8415 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8416 processors.
8417 (cpu_supports_bts): Add CV_AMD case.
8418
29d6859f
LM
84192020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8420 Simon Marchi <simon.marchi@efficios.com>
8421
8422 * infrun.c (stop_all_threads): Collect multiple wait events at
8423 each pass.
8424
78134374
SM
84252020-05-14 Simon Marchi <simon.marchi@efficios.com>
8426
8427 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8428 type::code instead.
8429
67607e24
SM
84302020-05-14 Simon Marchi <simon.marchi@efficios.com>
8431
8432 * gdbtypes.h (struct type) <code, set_code>: New methods.
8433 (TYPE_CODE): Use type::code. Change all call sites used to set
8434 the code to use type::set_code instead.
8435
a05575d3
TBA
84362020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8437 Tom de Vries <tdevries@suse.de>
8438 Pedro Alves <palves@redhat.com>
8439
8440 PR threads/25478
8441 * infrun.c (stop_all_threads): Do NOT ignore
8442 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8443 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8444 received.
8445 (handle_no_resumed): Remove code handling a live inferior with no
8446 threads.
8447 * remote.c (has_single_non_exited_thread): New.
8448 (remote_target::update_thread_list): Do not delete a thread if is
8449 the last thread of the process.
8450 * thread.c (thread_select): Call delete_exited_threads instead of
8451 prune_threads.
8452
6ad82919
TBA
84532020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8454
8455 * infrun.c (stop_all_threads): Enable/disable thread events of all
8456 targets. Move a debug message denoting the end of the function
8457 into the SCOPED_EXIT block.
8458
d890404b
TBA
84592020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8460
8461 * process-stratum-target.h: Include <set>.
8462 (all_non_exited_process_targets, switch_to_target_no_thread): New
8463 function declarations.
8464 * process-stratum-target.c (all_non_exited_process_targets)
8465 (switch_to_target_no_thread): New function implementations.
8466
293b3ebc
TBA
84672020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8468
8469 * infrun.c (handle_inferior_event): Extract out a piece of code
8470 into...
8471 (mark_non_executing_threads): ...this new function.
8472
7ca9b62a
TBA
84732020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8474
8475 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8476 use.
8477
fc75c28b
TBA
84782020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8479
8480 * regcache.c (regcache_read_pc_protected): New function
8481 implementation that returns 0 if the PC cannot read via
8482 'regcache_read_pc'.
8483 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8484 instead of 'regcache_read_pc'.
8485 (keep_going_pass_signal): Ditto.
8486
a89febbd
TT
84872020-05-13 Tom Tromey <tromey@adacore.com>
8488
8489 * ada-lang.c (align_value): Remove.
8490 (ada_template_to_fixed_record_type_1): Use align_up.
8491
f7e23710
TBA
84922020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8493
8494 * async-event.c: Update the copyright year.
8495 * async-event.h: Update the copyright year.
8496
02ff80c2
SM
84972020-05-12 Simon Marchi <simon.marchi@efficios.com>
8498
8499 * objfiles.h (is_addr_in_objfile,
8500 shared_objfile_contains_address_p): Return bool.
8501 * objfile.c (is_addr_in_objfile,
8502 shared_objfile_contains_address_p): Return bool.
8503
4fd6c7e8
TT
85042020-05-11 Tom Tromey <tromey@adacore.com>
8505
8506 * cli/cli-cmds.c (info_command): Restore.
8507 (_initialize_cli_cmds): Use add_prefix_command for "info".
8508 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8509
5eb68a39
TT
85102020-05-11 Tom Tromey <tromey@adacore.com>
8511
8512 * ada-lang.c (ada_value_primitive_field): Now public.
8513 * ada-lang.h (ada_value_primitive_field): Declare.
8514 * ada-valprint.c (print_field_values): Use
8515 ada_value_primitive_field for wrapper fields.
8516
7666722f
TV
85172020-05-11 Tom de Vries <tdevries@suse.de>
8518
8519 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8520 MODULE_DOMAIN.
8521
3ee6bb11
TV
85222020-05-11 Tom de Vries <tdevries@suse.de>
8523
8524 PR symtab/25941
8525 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8526 with length 0, if not gdb-produced.
8527 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8528
43434996
TV
85292020-05-09 Tom de Vries <tdevries@suse.de>
8530
8531 PR gdb/25955
8532 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8533 calculation.
8534
2f78cffc
TT
85352020-05-09 Tom Tromey <tom@tromey.com>
8536
8537 * top.c (server_command): Now bool.
8538 * top.h (server_command): Now bool.
8539
4f7bc5ed
TT
85402020-05-08 Tom Tromey <tromey@adacore.com>
8541
8542 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8543 already being processed.
8544
8be4b118
TT
85452020-05-08 Tom Tromey <tom@tromey.com>
8546
8547 * printcmd.c (struct display) <next>: Remove.
8548 <display>: New constructor.
8549 <exp_string>: Now a std::string.
8550 <enabled_p>: Now a bool.
8551 (display_number): Move definition earlier.
8552 (displays): Rename from display_chain. Now a std::vector.
8553 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8554 (display_command): Update.
8555 (do_one_display, disable_display)
8556 (enable_disable_display_command, do_enable_disable_display):
8557 Update.
8558 (free_display): Remove.
8559 (clear_displays): Rewrite.
8560 (delete_display): Update.
8561 (map_display_numbers): Use function_view. Remove "data"
8562 parameter. Update.
8563 (do_delete_display): Remove.
8564 (undisplay_command): Update.
8565 (do_one_display, do_displays, disable_display)
8566 (info_display_command): Update.
8567 (do_enable_disable_display): Remove.
8568 (enable_disable_display_command)
8569 (clear_dangling_display_expressions): Update.
8570
94c93c35
TT
85712020-05-08 Tom Tromey <tom@tromey.com>
8572
8573 * symtab.c (set_symbol_cache_size)
8574 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8575 (maintenance_print_symbol_cache_statistics): Update.
8576 * symmisc.c (print_symbol_bcache_statistics)
8577 (print_objfile_statistics, maintenance_print_objfiles)
8578 (maintenance_info_symtabs, maintenance_check_symtabs)
8579 (maintenance_expand_symtabs, maintenance_info_line_tables):
8580 Update.
8581 * symfile-debug.c (set_debug_symfile): Update.
8582 * source.c (forget_cached_source_info): Update.
8583 * python/python.c (gdbpy_progspaces): Update.
8584 * psymtab.c (maintenance_info_psymtabs): Update.
8585 * probe.c (parse_probes): Update.
8586 * linespec.c (iterate_over_all_matching_symtabs)
8587 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8588 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8589 * exec.c (exec_target::close): Update.
8590 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8591 * breakpoint.c (print_one_breakpoint_location)
8592 (create_longjmp_master_breakpoint)
8593 (create_std_terminate_master_breakpoint): Update.
8594 * progspace.c (program_spaces): Now a std::vector.
8595 (maybe_new_address_space): Update.
8596 (add_program_space): Remove.
8597 (program_space::program_space): Update.
8598 (remove_program_space): Update.
8599 (number_of_program_spaces): Remove.
8600 (print_program_space, update_address_spaces): Update.
8601 * progspace.h (program_spaces): Change type.
8602 (ALL_PSPACES): Remove.
8603 (number_of_program_spaces): Don't declare.
8604 (struct program_space) <next>: Remove.
8605
a1fd1ac9
TT
86062020-05-08 Tom Tromey <tom@tromey.com>
8607
8608 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8609 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8610 (enable_break): Update.
8611 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8612 (frv_fdpic_find_canonical_descriptor): Update.
8613 (frv_fetch_objfile_link_map): Update.
8614 * progspace.c (program_space::free_all_objfiles): Update.
8615 (program_space::solibs): New method.
8616 * progspace.h (struct program_space) <solibs>: New method.
8617 * solist.h (master_so_list): Don't declare.
8618 (ALL_SO_LIBS): Remove.
8619 * solib.h (so_list_head): Remove.
8620 (update_solib_list): Update comment.
8621 * solib.c (master_so_list): Remove.
8622 (solib_used, update_solib_list, solib_add)
8623 (info_sharedlibrary_command, clear_solib)
8624 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8625
38eae084
TT
86262020-05-08 Tom Tromey <tom@tromey.com>
8627
8628 * extension.c (extension_languages): Now a std::array.
8629 (ALL_EXTENSION_LANGUAGES): Remove.
8630 (get_ext_lang_defn, get_ext_lang_of_file)
8631 (eval_ext_lang_from_control_command): Update.
8632 (finish_ext_lang_initialization)
8633 (auto_load_ext_lang_scripts_for_objfile)
8634 (ext_lang_type_printers::ext_lang_type_printers)
8635 (apply_ext_lang_type_printers)
8636 (ext_lang_type_printers::~ext_lang_type_printers)
8637 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8638 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8639 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8640 (get_matching_xmethod_workers, ext_lang_colorize)
8641 (ext_lang_before_prompt): Update.
8642 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8643
596dc4ad
TT
86442020-05-08 Tom Tromey <tom@tromey.com>
8645
8646 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8647 overload.
8648 <swap_string, m_string>: Remove.
8649 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8650 Update.
8651 * stabsread.c (define_symbol, read_type): Update.
8652 * linespec.c (find_linespec_symbols): Update.
8653 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8654 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8655 * dbxread.c (read_dbx_symtab): Update.
8656 * cp-support.h (cp_canonicalize_string_full)
8657 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8658 Return unique_xmalloc_ptr.
8659 * cp-support.c (inspect_type): Update.
8660 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8661 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8662 Likewise.
8663 * c-typeprint.c (print_name_maybe_canonical): Update.
8664 * break-catch-throw.c (check_status_exception_catchpoint):
8665 Update.
8666
bf4cb9be
TV
86672020-05-08 Tom de Vries <tdevries@suse.de>
8668
8669 * infrun.c (follow_fork): Copy current_line and current_symtab to
8670 child thread.
8671
a1b68f28
SM
86722020-05-07 Simon Marchi <simon.marchi@efficios.com>
8673
8674 * async-event.c (struct async_signal_handler, struct
8675 async_event_handler): Reformat, remove typedef.
8676
98d48915
SM
86772020-05-07 Simon Marchi <simon.marchi@efficios.com>
8678
8679 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8680 access thistype->main_type->dyn_prop_list directly.
8681
7aa91313
SM
86822020-05-07 Simon Marchi <simon.marchi@efficios.com>
8683
8684 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8685 (remove_dyn_prop): Remove. Update all users to use
8686 type::remove_dyn_prop.
8687 * gdbtypes.c (remove_dyn_prop): Rename to...
8688 (type::remove_dyn_prop): ... this.
8689
5c54719c
SM
86902020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8691
8692 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8693 (add_dyn_prop): Remove. Update all users to use
8694 type::add_dyn_prop.
8695 * gdbtypes.c (add_dyn_prop): Rename to...
8696 (type::add_dyn_prop): ... this.
8697
24e99c6c
SM
86982020-05-07 Simon Marchi <simon.marchi@efficios.com>
8699
8700 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8701 (get_dyn_prop): Remove. Update all users to use
8702 type::dyn_prop.
8703 * gdbtypes.c (get_dyn_prop): Rename to...
8704 (type::dyn_prop): ... this.
8705
0d4bf016
SM
87062020-05-06 Simon Marchi <simon.marchi@efficios.com>
8707
8708 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8709
ac4a4f1c
SM
87102020-05-06 Simon Marchi <simon.marchi@efficios.com>
8711
8712 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8713 instruction, skip it if it's there.
8714
a3bbacc1
SM
87152020-05-05 Simon Marchi <simon.marchi@efficios.com>
8716
8717 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8718
c3236f84
SM
87192020-05-04 Simon Marchi <simon.marchi@efficios.com>
8720
8721 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8722 * gdbtypes.c (recursive_dump_type): Remove use of
8723 TYPE_INCOMPLETE.
8724
3b6acaee
TT
87252020-05-03 Tom Tromey <tom@tromey.com>
8726
8727 * breakpoint.c (catch_command, tcatch_command): Remove.
8728 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8729 add_show_prefix_cmd.
8730 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8731 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8732 Remove.
8733 (add_internal_problem_command): Use add_basic_prefix_cmd,
8734 add_show_prefix_cmd.
8735 * mips-tdep.c (set_mipsfpu_command): Remove.
8736 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8737 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8738 (_initialize_index_cache): Use add_basic_prefix_cmd.
8739 * memattr.c (dummy_cmd): Remove.
8740 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8741 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8742 (_initialize_tui_win): Use add_basic_prefix_cmd,
8743 add_show_prefix_cmd.
8744 * cli/cli-logging.c (set_logging_command): Remove.
8745 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8746 add_show_prefix_cmd.
8747 (show_logging_command): Remove.
8748 * target.c (target_command): Remove.
8749 (add_target): Use add_basic_prefix_cmd.
8750
a51119cd
HD
87512020-05-02 Hannes Domani <ssbssa@yahoo.de>
8752
8753 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8754
652fc23a 87552020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8756
652fc23a
PW
8757 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8758 info_command.
8759
117539e6
KR
87602020-04-30 Kamil Rytarowski <n54@gmx.com>
8761
8762 * nbsd-nat.c (nbsd_enable_proc_events)
8763 (nbsd_nat_target::post_startup_inferior): Add.
8764 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8765 (nbsd_nat_target::update_thread_list): Rewrite.
8766 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8767 "PTRACE_LWP_CREATE".
8768 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8769
102e38eb 87702020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8771
102e38eb
PW
8772 * stack.c (_initialize_stack): Remove duplicated creation
8773 of "frame" command and "f" alias.
8774
ee9d1e5f
HD
87752020-04-30 Hannes Domani <ssbssa@yahoo.de>
8776
8777 PR gdb/18706
8778 * gdbtypes.c (check_typedef): Calculate size of array of
8779 stubbed type.
8780
627c7fb8
HD
87812020-04-30 Hannes Domani <ssbssa@yahoo.de>
8782
8783 PR gdb/15559
8784 * i386-tdep.c (i386_push_dummy_call): Call
8785 i386_thiscall_push_dummy_call.
8786 (i386_thiscall_push_dummy_call): New function.
8787 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8788 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8789 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8790
ffc2844e
SM
87912020-04-29 Simon Marchi <simon.marchi@efficios.com>
8792
8793 * gdbarch.sh (do_read): Add shellcheck disable directive for
8794 warning SC2162.
8795
1207375d
SM
87962020-04-29 Simon Marchi <simon.marchi@efficios.com>
8797
8798 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8799 "referenced but not assigned" warning.
8800
9fdb2916
SM
88012020-04-29 Simon Marchi <simon.marchi@efficios.com>
8802
8803 * gdbarch.sh: Remove code that sets fallbackdefault.
8804
759cea5e
SM
88052020-04-29 Simon Marchi <simon.marchi@efficios.com>
8806
8807 * gdbarch.sh: Use shell operators && and || instead of
8808 -a and -o.
8809
cb02ab24
SM
88102020-04-29 Simon Marchi <simon.marchi@efficios.com>
8811
8812 * gdbarch.sh: Use $(...) instead of `...`.
8813
a6fc5ffc
SM
88142020-04-29 Simon Marchi <simon.marchi@efficios.com>
8815
8816 * gdbarch.sh: Use double quotes around variables.
8817
8d113d13
SM
88182020-04-29 Simon Marchi <simon.marchi@efficios.com>
8819
8820 * gdbarch.sh: Use %s with printf, instead of variables in the
8821 format string.
8822
ed6acedd
TT
88232020-04-29 Tom Tromey <tromey@adacore.com>
8824
8825 PR ada/25875:
8826 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8827 type fields here.
8828 (read_enumeration_type): Call
8829 update_enumeration_type_from_children later. Update comments.
8830 (process_enumeration_scope): Don't create type fields.
8831
b68b1b58
KR
88322020-04-29 Kamil Rytarowski <n54@gmx.com>
8833
8834 * nbsd-tdep.c: Include "xml-syscall.h".
8835 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8836
f94b2e03
KR
88372020-04-29 Kamil Rytarowski <n54@gmx.com>
8838
8839 * nbsd-nat.c: Include "sys/wait.h".
8840 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8841 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8842 (nbsd_nat_target::remove_exec_catchpoint)
8843 (nbsd_nat_target::set_syscall_catchpoint): Add.
8844 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8845 (nbsd_nat_target::insert_exec_catchpoint)
8846 (nbsd_nat_target::remove_exec_catchpoint)
8847 (nbsd_nat_target::set_syscall_catchpoint): Add.
8848 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8849 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8850 `nbsd_get_syscall_number'.
8851
fc49bc72
TT
88522020-04-29 Tom Tromey <tom@tromey.com>
8853
8854 * stack.c (print_block_frame_labels): Remove.
8855
d642b692
HD
88562020-04-29 Hannes Domani <ssbssa@yahoo.de>
8857
8858 PR gdb/17320
8859 * ada-valprint.c (val_print_packed_array_elements): Move array
8860 end bracket to new line.
8861 (ada_val_print_string): Remove extra spaces before first array
8862 element.
8863 * c-valprint.c (c_value_print_array): Likewise.
8864 * m2-valprint.c (m2_print_array_contents): Likewise.
8865 (m2_value_print_inner): Likewise.
8866 * p-valprint.c (pascal_value_print_inner): Likewise.
8867 * valprint.c (generic_val_print_array): Likewise.
8868 (value_print_array_elements): Move first array element and array
8869 end bracket to new line.
8870
ea90f227
TV
88712020-04-29 Tom de Vries <tdevries@suse.de>
8872
8873 PR symtab/25889
8874 * linespec.c (find_method): Fix ix calculation.
8875
4498ef4f
KR
88762020-04-28 Kamil Rytarowski <n54@gmx.com>
8877
8878 * syscalls/update-netbsd.sh: New file.
8879 * syscalls/netbsd.xml: Regenerate.
8880 * data-directory/Makefile.in: Register `netbsd.xml' in
8881 `SYSCALLS_FILES'.
8882
a55e30b5
SM
88832020-04-28 Simon Marchi <simon.marchi@efficios.com>
8884
8885 * syscalls/update-freebsd.sh: Add double quotes.
8886
2b2fbab8
TT
88872020-04-28 Tom Tromey <tom@tromey.com>
8888
8889 * NEWS: Update.
8890 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8891 (cmdpy_init): Allow class_tui.
8892
a65189c9
TV
88932020-04-28 Mark Williams <mark@myosotissp.com>
8894
8895 PR gdb/24480
8896 * dwarf2read.c: Add missing assingments to list_in_scope when
8897 start_symtab was already called.
8898
1b95cdb7
SM
88992020-04-28 Simon Marchi <simon.marchi@efficios.com>
8900
8901 PR gdb/25881
8902 * dwarf2/read.c (offset_map_type): Use
8903 gdb:hash_enum<sect_offset> as hash function.
8904
15cd93d0
TV
89052020-04-28 Tom de Vries <tdevries@suse.de>
8906
8907 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8908 with DW_AT_signature.
8909
1eb39914
SM
89102020-04-27 Simon Marchi <simon.marchi@efficios.com>
8911
8912 * configure.ac: Remove check for fs_base/gs_base in
8913 user_regs_struct.
8914 * configure: Re-generate.
8915 * config.in: Re-generate.
8916 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8917 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8918 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8919
991a3e2e
LM
89202020-04-27 Luis Machado <luis.machado@linaro.org>
8921
8922 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8923 problematic inline frame unwinding situation.
8924 * frame.c (frame_id_computed_p): New function.
8925 * frame.h (frame_id_computed_p): New prototype.
8926
361ba0e8
TT
89272020-04-26 Tom Tromey <tom@tromey.com>
8928
8929 * command.h (enum command_class) <class_pseudo>: Remove.
8930
bc3609fd
PW
89312020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8932
8933 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8934 and whitespace.
8935
b9771db7
KR
89362020-04-25 Kamil Rytarowski <n54@gmx.com>
8937
ec16513e
SM
8938 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8939 `PT_GET_PROCESS_STATE' block.
b9771db7 8940
7151c1af
TT
89412020-04-24 Tom Tromey <tom@tromey.com>
8942
8943 * symtab.h (symbol_get_demangled_name): Don't declare.
8944 * symtab.c (symbol_get_demangled_name): Remove.
8945 (general_symbol_info::natural_name)
8946 (general_symbol_info::demangled_name): Update.
8947
906bb4c5
TT
89482020-04-24 Tom Tromey <tom@tromey.com>
8949
8950 PR rust/25025:
8951 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8952
bcfe6157
TT
89532020-04-24 Tom Tromey <tom@tromey.com>
8954
8955 PR symtab/12707:
8956 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8957 exists.
8958 (new_symbol): Likewise.
8959 * compile/compile-object-load.c (get_out_value_type): Use
8960 symbol_matches_search_name.
8961
f049a313
TT
89622020-04-24 Tom Tromey <tom@tromey.com>
8963
8964 * dwarf2/read.c (add_partial_symbol): Do not call
8965 compute_and_set_names.
8966
76e288d1
TT
89672020-04-24 Tom Tromey <tom@tromey.com>
8968
8969 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8970 overload.
8971
2467f4f6
TT
89722020-04-24 Tom Tromey <tom@tromey.com>
8973
8974 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8975 (add_psymbol_to_list): New overload. Make old overload call new
8976 one.
8977 * psympriv.h (add_psymbol_to_list): New overload.
8978
e61108c9
TT
89792020-04-24 Tom Tromey <tom@tromey.com>
8980
8981 * dwarf2/read.c (partial_die_info::read) <case
8982 DW_AT_linkage_name>: Use value_as_string.
8983 (dwarf2_string_attr): Use value_as_string.
8984 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8985 method.
8986 * dwarf2/attribute.c (attribute::value_as_string): New method.
8987
8c87a452
TT
89882020-04-24 Tom Tromey <tom@tromey.com>
8989
8990 * symtab.c (general_symbol_info::natural_name)
8991 (general_symbol_info::demangled_name): Check for language_rust.
8992
787de330
TT
89932020-04-24 Tom Tromey <tom@tromey.com>
8994
8995 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8996 (dwarf2_physname): ... from here.
8997 (partial_die_info::read): Add Rust "{" hack.
8998
ff985671
TT
89992020-04-24 Tom Tromey <tom@tromey.com>
9000
9001 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
9002 method.
9003 (symbol_set_demangled_name): Don't declare.
9004 * symtab.c (general_symbol_info::set_demangled_name): Rename from
9005 symbol_set_demangled_name.
9006 (general_symbol_info::set_language)
9007 (general_symbol_info::compute_and_set_names): Update.
9008 * minsyms.c (minimal_symbol_reader::install): Update.
9009 * dwarf2/read.c (new_symbol): Update.
9010
1acda803
TT
90112020-04-24 Tom Tromey <tromey@adacore.com>
9012
9013 PR python/23662:
9014 * python/py-type.c (convert_field): Handle
9015 FIELD_LOC_KIND_DWARF_BLOCK.
9016 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
9017 (typy_get_dynamic): Nw function.
9018 (type_object_getset): Add "dynamic".
9019 * NEWS: Add entry.
9020
d656f129
TT
90212020-04-24 Tom Tromey <tromey@adacore.com>
9022
9023 * ada-typeprint.c (print_choices, print_variant_part)
9024 (print_record_field_types_dynamic): New functions.
9025 (print_record_field_types): Use print_record_field_types_dynamic.
9026
7d79de9a
TT
90272020-04-24 Tom Tromey <tromey@adacore.com>
9028
9029 * dwarf2/read.c (handle_data_member_location): New overload.
9030 (dwarf2_add_field): Use it.
9031 (decode_locdesc): Add "computed" parameter. Update comment.
9032 * gdbtypes.c (is_dynamic_type_internal): Also look for
9033 FIELD_LOC_KIND_DWARF_BLOCK.
9034 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9035 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
9036 virtual base classes.
9037 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
9038 FIELD_LOC_KIND_DWARF_BLOCK.
9039
f8e89861
TT
90402020-04-24 Tom Tromey <tromey@adacore.com>
9041
9042 * dwarf2/read.c (read_structure_type): Handle dynamic length.
9043 * gdbtypes.c (is_dynamic_type_internal): Check
9044 TYPE_HAS_DYNAMIC_LENGTH.
9045 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
9046 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
9047 New macros.
9048 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
9049 constant.
9050
9c6a1327
TT
90512020-04-24 Tom Tromey <tromey@adacore.com>
9052
9053 * dwarf2/read.c (struct variant_field): Rewrite.
9054 (struct variant_part_builder): New.
9055 (struct nextfield): Remove "variant" field. Add "offset".
9056 (struct field_info): Add "current_variant_part" and
9057 "variant_parts".
9058 (alloc_discriminant_info): Remove.
9059 (alloc_rust_variant): New function.
9060 (quirk_rust_enum): Update.
9061 (dwarf2_add_field): Set "offset" member. Don't handle
9062 DW_TAG_variant_part.
9063 (offset_map_type): New typedef.
9064 (convert_variant_range, create_one_variant)
9065 (create_one_variant_part, create_variant_parts)
9066 (add_variant_property): New functions.
9067 (dwarf2_attach_fields_to_type): Call add_variant_property.
9068 (read_structure_type): Don't handle DW_TAG_variant_part.
9069 (handle_variant_part, handle_variant): New functions.
9070 (handle_struct_member_die): Use them.
9071 (process_structure_scope): Don't handle variant parts.
9072 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
9073 (struct discriminant_info): Remove.
9074 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
9075 (struct main_type) <flag_discriminated_union>: Remove.
9076 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
9077 (rust_enum_variant): Return int. Remove "contents". Rewrite.
9078 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
9079 Update.
9080 * valops.c (value_union_variant): Remove.
9081 * value.h (value_union_variant): Don't declare.
9082
b249d2c2
TT
90832020-04-24 Tom Tromey <tromey@adacore.com>
9084
9085 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9086 (ada_value_primitive_packed_val): Update.
9087 * ada-valprint.c (ada_value_print_1): Update.
9088 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9089 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9090 just an address. Use evaluate_for_locexpr_baton.
9091 (dwarf2_evaluate_property): Update.
9092 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9093 array_view.
9094 * findvar.c (default_read_var_value): Update.
9095 * gdbtypes.c (compute_variant_fields_inner)
9096 (resolve_dynamic_type_internal): Update.
9097 (resolve_dynamic_type): Change type of valaddr parameter.
9098 * gdbtypes.h (resolve_dynamic_type): Update.
9099 * valarith.c (value_subscripted_rvalue): Update.
9100 * value.c (value_from_contents_and_address): Update.
9101
61122aa9
TT
91022020-04-24 Tom Tromey <tromey@adacore.com>
9103
9104 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9105 "push_initial_value" parameter.
9106 (dwarf2_evaluate_property): Likewise.
9107 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9108
ef83a141
TT
91092020-04-24 Tom Tromey <tromey@adacore.com>
9110
9111 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9112 (variant::matches, compute_variant_fields_recurse)
9113 (compute_variant_fields_inner, compute_variant_fields): New
9114 functions.
9115 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9116 Use resolved_type after type is made.
9117 (operator==): Add new cases.
9118 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9119 (struct discriminant_range, struct variant, struct variant_part):
9120 New.
9121 (union dynamic_prop_data) <variant_parts, original_type>: New
9122 members.
9123 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9124 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9125 constants.
9126 * value.c (unpack_bits_as_long): Now public.
9127 * value.h (unpack_bits_as_long): Declare.
9128
675127ec
TT
91292020-04-24 Tom Tromey <tromey@adacore.com>
9130
9131 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9132 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9133
9852ceef
HD
91342020-04-24 Hannes Domani <ssbssa@yahoo.de>
9135
9136 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9137
7632c6ce
KR
91382020-04-24 Kamil Rytarowski <n54@gmx.com>
9139
9140 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9141 (remove_fork_catchpoint, post_startup_inferior)
9142 (post_attach): Move...
9143 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9144 (remove_fork_catchpoint, post_startup_inferior)
9145 (post_attach): ...here.
9146 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9147 (remove_fork_catchpoint, post_startup_inferior)
9148 (post_attach): Move...
9149 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9150 (remove_fork_catchpoint, post_startup_inferior)
9151 (post_attach): ...here.
9152
7be2bb4f
TT
91532020-04-24 Tom Tromey <tromey@adacore.com>
9154
9155 * nat/windows-nat.h (struct windows_thread_info)
9156 <pc_adjusted>: New member.
9157 * windows-nat.c (windows_fetch_one_register): Check
9158 pc_adjusted.
9159 (windows_nat_target::get_windows_debug_event)
9160 (windows_nat_target::wait): Set pc_adjusted.
9161
f80cb3b4
TV
91622020-04-24 Tom de Vries <tdevries@suse.de>
9163
9164 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9165 Run gdb-add-index inside temp dir.
9166
29514b87
TT
91672020-04-23 Tom Tromey <tromey@adacore.com>
9168
9169 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9170 in loop.
9171
5939967b
LM
91722020-04-23 Luis Machado <luis.machado@linaro.org>
9173
9174 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9175 get_frame_register instead of gdbarch_unwind_pc.
9176
70bc38f5
TV
91772020-04-23 Tom de Vries <tdevries@suse.de>
9178
9179 * symtab.c (lookup_global_symbol): Prefer def over decl.
9180
de82891c
TV
91812020-04-23 Tom de Vries <tdevries@suse.de>
9182
9183 PR symtab/25807
9184 * block.c (best_symbol, better_symbol): Promote to external.
9185 * block.h (best_symbol, better_symbol): Declare.
9186 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9187 decl.
9188
ecc6c606
TT
91892020-04-23 Tom Tromey <tromey@adacore.com>
9190
9191 PR ada/25837:
9192 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9193 "const char *", not a "const std::string &".
9194 <name_and_matcher::operator==>: Update.
9195 * unittests/lookup_name_info-selftests.c: Change type of
9196 "result".
9197
740480b8
TT
91982020-04-23 Tom Tromey <tom@tromey.com>
9199
9200 * inferior.h (iterate_over_inferiors): Don't declare.
9201 * inferior.c (iterate_over_inferiors): Remove.
9202 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9203 Remove.
9204 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9205 use iterate_over_inferiors.
9206 (darwin_resume_inferior_it)
9207 (struct resume_inferior_threads_param)
9208 (darwin_resume_inferior_threads_it): Remove.
9209 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9210
ae3ab1f0
TV
92112020-04-23 Tom de Vries <tdevries@suse.de>
9212
9213 * blockframe.c (find_pc_partial_function): Use
9214 find_pc_sect_compunit_symtab rather than
9215 objfile->sf->qf->find_pc_sect_compunit_symtab.
9216
317d2668
TV
92172020-04-22 Tom de Vries <tdevries@suse.de>
9218
9219 PR symtab/25764
9220 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9221 in psymtabs.
9222
eea9e357
TV
92232020-04-22 Tom de Vries <tdevries@suse.de>
9224
9225 PR symtab/25801
9226 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9227 symtabs.
9228
3d5afab3
TV
92292020-04-22 Tom de Vries <tdevries@suse.de>
9230
9231 PR symtab/25700
9232 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9233 CU if already created.
9234
d43b7a2d
TBA
92352020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9236
9237 * infrun.c (displaced_step_fixup): Switch to the event_thread
9238 before calling displaced_step_restore, not after.
9239
d89edf9b
MM
92402020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9241
9242 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9243 its inferior is not recorded by us.
9244 (record_btrace_target_open): Replace call to
9245 all_non_exited_threads () with call to current_inferior
9246 ()->non_exited_threads ().
9247 (record_btrace_target::stop_recording): Likewise.
9248 (record_btrace_target::close): Likewise.
9249 (record_btrace_target::wait): Likewise.
9250 (record_btrace_target::record_stop_replaying): Likewise.
9251
5897fd49
MM
92522020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9253
9254 * btrace.c (btrace_enable): Throw an error on double enables and
9255 when enabling recording fails.
9256 (btrace_disable): Throw an error if the thread is not recorded.
9257
1a476b6d
MM
92582020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9259
9260 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9261 request if we do not have a thread_info.
9262
4778a5f8
TV
92632020-04-21 Tom de Vries <tdevries@suse.de>
9264
9265 PR gdb/25471
9266 * thread.c
9267 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9268 exception in get_frame_id.
9269
0fa7617d
TT
92702020-04-20 Tom Tromey <tromey@adacore.com>
9271
9272 * python/python.c (struct gdbpy_event): Mark move constructor as
9273 noexcept.
9274 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9275 constructor as noexcept.
9276 * completer.h (struct completion_result): Mark move constructor as
9277 noexcept.
9278 * completer.c (completion_result::completion_result): Use
9279 initialization style. Don't call reset_match_list.
9280
ad23bda0
MS
92812020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9282
9283 * MAINTAINERS (Write After Approval): Add myself.
9284
45e1f031
TT
92852020-04-18 Tom Tromey <tom@tromey.com>
9286
9287 * windows-tdep.c (init_w32_command_list)
9288 (w32_prefix_command_valid): Restore.
9289 (_initialize_windows_tdep): Call init_w32_command_list.
9290
08feed99
TT
92912020-04-18 Tom Tromey <tom@tromey.com>
9292
9293 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9294 * value.c (value_fn_field): Update.
9295 * valops.c (find_function_in_inferior)
9296 (value_allocate_space_in_inferior): Update.
9297 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9298 Update.
9299 * tui/tui-source.c (tui_source_window::set_contents): Update.
9300 * symtab.c (lookup_global_or_static_symbol)
9301 (find_function_start_sal_1, skip_prologue_sal)
9302 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9303 * symmisc.c (dump_msymbols, dump_symtab_1)
9304 (maintenance_print_one_line_table): Update.
9305 * symfile.c (init_entry_point_info, section_is_mapped)
9306 (list_overlays_command, simple_read_overlay_table)
9307 (simple_overlay_update_1): Update.
9308 * stap-probe.c (handle_stap_probe): Update.
9309 * stabsread.c (dbx_init_float_type, define_symbol)
9310 (read_one_struct_field, read_enum_type, read_range_type): Update.
9311 * source.c (info_line_command): Update.
9312 * python/python.c (gdbpy_source_objfile_script)
9313 (gdbpy_execute_objfile_script): Update.
9314 * python/py-type.c (save_objfile_types): Update.
9315 * python/py-objfile.c (py_free_objfile): Update.
9316 * python/py-inferior.c (python_new_objfile): Update.
9317 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9318 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9319 (maintenance_check_psymtabs): Update.
9320 * printcmd.c (info_address_command): Update.
9321 * objfiles.h (struct objfile) <arch>: New method, from
9322 get_objfile_arch.
9323 (get_objfile_arch): Don't declare.
9324 * objfiles.c (get_objfile_arch): Remove.
9325 (filter_overlapping_sections): Update.
9326 * minsyms.c (msymbol_is_function): Update.
9327 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9328 (output_nondebug_symbol): Update.
9329 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9330 (mdebug_expand_psymtab): Update.
9331 * machoread.c (macho_add_oso_symfile): Update.
9332 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9333 Update.
9334 * linux-fork.c (checkpoint_command): Update.
9335 * linespec.c (convert_linespec_to_sals): Update.
9336 * jit.c (finalize_symtab): Update.
9337 * infrun.c (insert_exception_resume_from_probe): Update.
9338 * ia64-tdep.c (ia64_find_unwind_table): Update.
9339 * hppa-tdep.c (internalize_unwinds): Update.
9340 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9341 Update.
9342 * gcore.c (call_target_sbrk): Update.
9343 * elfread.c (record_minimal_symbol, elf_symtab_read)
9344 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9345 (elf_gnu_ifunc_resolve_by_got): Update.
9346 * dwarf2/read.c (create_addrmap_from_index)
9347 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9348 (read_debug_names_from_section)
9349 (process_psymtab_comp_unit_reader, add_partial_symbol)
9350 (add_partial_subprogram, process_full_comp_unit)
9351 (read_file_scope, read_func_scope, read_lexical_block_scope)
9352 (read_call_site_scope, dwarf2_ranges_read)
9353 (dwarf2_record_block_ranges, dwarf2_add_field)
9354 (mark_common_block_symbol_computed, read_tag_pointer_type)
9355 (read_tag_string_type, dwarf2_init_float_type)
9356 (dwarf2_init_complex_target_type, read_base_type)
9357 (partial_die_info::read, partial_die_info::read)
9358 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9359 (dwarf2_fetch_die_loc_sect_off): Update.
9360 * dwarf2/loc.c (dwarf2_find_location_expression)
9361 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9362 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9363 (dwarf2_loc_desc_get_symbol_read_needs)
9364 (locexpr_describe_location_piece, locexpr_describe_location_1)
9365 (loclist_describe_location): Update.
9366 * dwarf2/index-write.c (write_debug_names): Update.
9367 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9368 * dtrace-probe.c (dtrace_process_dof): Update.
9369 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9370 (process_one_symbol): Update.
9371 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9372 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9373 (coff_read_enum_type): Update.
9374 * cli/cli-cmds.c (edit_command, list_command): Update.
9375 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9376 * breakpoint.c (create_overlay_event_breakpoint)
9377 (create_longjmp_master_breakpoint)
9378 (create_std_terminate_master_breakpoint)
9379 (create_exception_master_breakpoint, get_sal_arch): Update.
9380 * block.c (block_gdbarch): Update.
9381 * annotate.c (annotate_source_line): Update.
9382
0743fc83
TT
93832020-04-17 Tom Tromey <tromey@adacore.com>
9384
9385 * auto-load.c (show_auto_load_cmd): Remove.
9386 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9387 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9388 (maintenance_print_arc_command): Remove.
9389 * tui/tui-win.c (tui_command): Remove.
9390 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9391 * tui/tui-layout.c (tui_layout_command): Remove.
9392 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9393 * python/python.c (user_set_python, user_show_python): Remove.
9394 (_initialize_python): Use add_basic_prefix_cmd,
9395 add_show_prefix_cmd.
9396 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9397 (install_gdb_commands): Use add_basic_prefix_cmd,
9398 add_show_prefix_cmd.
9399 (info_guile_command): Remove.
9400 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9401 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9402 add_show_prefix_cmd.
9403 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9404 Remove do_set and do_show parameters.
9405 * cli/cli-style.c (set_style, show_style): Remove.
9406 (_initialize_cli_style): Use add_basic_prefix_cmd,
9407 add_show_prefix_cmd.
9408 (cli_style_option::add_setshow_commands): Remove do_set and
9409 do_show parameters.
9410 (cli_style_option::add_setshow_commands): Use
9411 add_basic_prefix_cmd, add_show_prefix_cmd.
9412 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9413 (set_style_name): Remove.
9414 * cli/cli-dump.c (dump_command, append_command): Remove.
9415 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9416 (tekhex_dump_command, binary_dump_command)
9417 (binary_append_command): Remove.
9418 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9419 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9420 (init_w32_command_list): Remove; move into ...
9421 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9422 * valprint.c (set_print, show_print, set_print_raw)
9423 (show_print_raw): Remove.
9424 (_initialize_valprint): Use add_basic_prefix_cmd,
9425 add_show_prefix_cmd.
9426 * typeprint.c (set_print_type, show_print_type): Remove.
9427 (_initialize_typeprint): Use add_basic_prefix_cmd,
9428 add_show_prefix_cmd.
9429 * record.c (set_record_command, show_record_command): Remove.
9430 (_initialize_record): Use add_basic_prefix_cmd,
9431 add_show_prefix_cmd.
9432 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9433 add_show_prefix_cmd.
9434 (info_command, show_command, set_debug, show_debug): Remove.
9435 * top.h (set_history, show_history): Don't declare.
9436 * top.c (set_history, show_history): Remove.
9437 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9438 (unset_tdesc_cmd): Remove.
9439 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9440 add_show_prefix_cmd.
9441 * symtab.c (info_module_command): Remove.
9442 (_initialize_symtab): Use add_basic_prefix_cmd.
9443 * symfile.c (overlay_command): Remove.
9444 (_initialize_symfile): Use add_basic_prefix_cmd.
9445 * sparc64-tdep.c (info_adi_command): Remove.
9446 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9447 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9448 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9449 add_show_prefix_cmd.
9450 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9451 (_initialize_serial): Use add_basic_prefix_cmd,
9452 add_show_prefix_cmd.
9453 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9454 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9455 add_show_prefix_cmd.
9456 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9457 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9458 add_show_prefix_cmd.
9459 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9460 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9461 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9462 add_show_prefix_cmd.
9463 * remote.c (remote_command, set_remote_cmd): Remove.
9464 (_initialize_remote): Use add_basic_prefix_cmd.
9465 * record-full.c (set_record_full_command)
9466 (show_record_full_command): Remove.
9467 (_initialize_record_full): Use add_basic_prefix_cmd,
9468 add_show_prefix_cmd.
9469 * record-btrace.c (cmd_set_record_btrace)
9470 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9471 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9472 (cmd_show_record_btrace_pt): Remove.
9473 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9474 add_show_prefix_cmd.
9475 * ravenscar-thread.c (set_ravenscar_command)
9476 (show_ravenscar_command): Remove.
9477 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9478 add_show_prefix_cmd.
9479 * mips-tdep.c (show_mips_command, set_mips_command)
9480 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9481 add_show_prefix_cmd.
9482 * maint.c (maintenance_command, maintenance_info_command)
9483 (maintenance_check_command, maintenance_print_command)
9484 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9485 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9486 add_show_prefix_cmd.
9487 (show_per_command_cmd): Remove.
9488 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9489 Remove.
9490 (maintenance_show_test_settings_cmd): Remove.
9491 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9492 add_show_prefix_cmd.
9493 * maint-test-options.c (maintenance_test_options_command):
9494 Remove.
9495 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9496 * macrocmd.c (macro_command): Remove
9497 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9498 * language.c (set_check, show_check): Remove.
9499 (_initialize_language): Use add_basic_prefix_cmd,
9500 add_show_prefix_cmd.
9501 * infcmd.c (unset_command): Remove.
9502 (_initialize_infcmd): Use add_basic_prefix_cmd.
9503 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9504 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9505 add_show_prefix_cmd.
9506 * go32-nat.c (go32_info_dos_command): Remove.
9507 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9508 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9509 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9510 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9511 (_initialize_frame): Use add_basic_prefix_cmd,
9512 add_show_prefix_cmd.
9513 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9514 (_initialize_dcache): Use add_basic_prefix_cmd,
9515 add_show_prefix_cmd.
9516 * cp-support.c (maint_cplus_command): Remove.
9517 (_initialize_cp_support): Use add_basic_prefix_cmd.
9518 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9519 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9520 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9521 add_basic_prefix_cmd, add_show_prefix_cmd.
9522 * breakpoint.c (save_command): Remove.
9523 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9524 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9525 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9526 add_show_prefix_cmd.
9527 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9528 (set_ada_command, show_ada_command): Remove.
9529 (_initialize_ada_language): Use add_basic_prefix_cmd,
9530 add_show_prefix_cmd.
9531 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9532
3557f442
KR
95332020-04-16 Kamil Rytarowski <n54@gmx.com>
9534
9535 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9536 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9537
16197208
SM
95382020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9539
9540 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9541 warning messages.
9542
00ac85d3
SM
95432020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9544
9545 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9546 import table is not at beginning of .idata section.
9547
381ce63f
PA
95482020-04-16 Pedro Alves <palves@redhat.com>
9549
9550 * inferior.c (delete_inferior): Use delete operator directly
9551 instead of delete_program_space.
9552 * progspace.c (add_program_space): New, factored out from
9553 program_space::program_space.
9554 (remove_program_space): New, factored out from
9555 delete_program_space.
9556 (program_space::program_space): Remove intro comment. Rewrite.
9557 (program_space::~program_space): Remove intro comment. Call
9558 remove_program_space.
9559 (delete_program_space): Delete.
9560 * progspace.h (program_space::program_space): Make explicit. Move
9561 intro comment here, adjusted.
9562 (program_space::~program_space): Move intro comment here,
9563 adjusted.
9564 (delete_program_space): Remove.
9565
a010605f
TT
95662020-04-16 Tom Tromey <tromey@adacore.com>
9567
9568 * windows-nat.c (windows_nat::handle_access_violation): New
9569 function.
9570 * nat/windows-nat.h (handle_access_violation): Declare.
9571 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9572 windows-nat.c. Call handle_access_violation.
9573
efba5c23
TV
95742020-04-16 Tom de Vries <tdevries@suse.de>
9575
9576 PR symtab/25791
9577 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9578 CUs without psymtab.
9579
97ed802d
KB
95802020-04-16 Kevin Buettner <kevinb@redhat.com>
9581
9582 * python/python.c (do_start_initialization): Don't call
9583 PyEval_InitThreads for Python 3.9 and beyond.
9584
c7d64809
KR
95852020-04-15 Kamil Rytarowski <n54@gmx.com>
9586
9587 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9588 thread functions.
9589 (obsd_nat_target::wait): Likewise.
9590
ce127a96
TT
95912020-04-15 Tom Tromey <tromey@adacore.com>
9592
9593 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9594 (DEBUG_EXCEPT): Use debug_printf.
9595
99f1bc6a
AB
95962020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9597
9598 * completer.c (class completion_tracker::completion_hash_entry)
9599 <hash_name>: New member function.
9600 (completion_tracker::discard_completions): New callback to hash a
9601 completion_hash_entry, pass this to htab_create_alloc.
9602
a0e9b532
JT
96032016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9604
9605 * windows-nat.c (windows_make_so): Warn rather than stopping with
9606 an error if realpath() fails.
9607
06ca5dd4
KR
96082020-04-14 Kamil Rytarowski <n54@gmx.com>
9609
9610 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9611 (nbsd_nat_target::info_proc): Add do_status.
9612
194d088f
TV
96132020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9614 Tom de Vries <tdevries@suse.de>
9615
9616 PR symtab/25718
9617 * psympriv.h (struct partial_symtab::read_symtab)
9618 (struct partial_symtab::expand_psymtab)
9619 (struct partial_symtab::read_dependencies): Update comments.
9620 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9621 read_symtab for includer.
9622 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9623 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9624 (struct dwarf2_include_psymtab::m_readin): Remove.
9625 (struct dwarf2_include_psymtab::includer): New member function.
9626 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9627
c1a66c06
TV
96282020-04-14 Tom de Vries <tdevries@suse.de>
9629
9630 PR symtab/25720
9631 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9632 with NULL symbol_matcher and lookup_name.
9633 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9634 and lookup_name.
9635 * dwarf2/read.c (dw2_expand_symtabs_matching)
9636 (dw2_debug_names_expand_symtabs_matching): Same.
9637 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9638 Make lookup_name a pointer. Update comment.
9639 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9640 lookup_name being a pointer.
9641 * symfile.c (expand_symtabs_matching): Same.
9642 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9643 * linespec.c (iterate_over_all_matching_symtabs): Same.
9644
400b5eca
TT
96452020-04-13 Tom Tromey <tom@tromey.com>
9646
9647 * run-on-main-thread.c: Update include.
9648 * unittests/main-thread-selftests.c: Update include.
9649 * tui/tui-win.c: Update include.
9650 * tui/tui-io.c: Update include.
9651 * tui/tui-interp.c: Update include.
9652 * tui/tui-hooks.c: Update include.
9653 * top.h: Update include.
9654 * top.c: Update include.
9655 * ser-base.c: Update include.
9656 * remote.c: Update include.
9657 * remote-notif.c: Update include.
9658 * remote-fileio.c: Update include.
9659 * record-full.c: Update include.
9660 * record-btrace.c: Update include.
9661 * python/python.c: Update include.
9662 * posix-hdep.c: Update include.
9663 * mingw-hdep.c: Update include.
9664 * mi/mi-main.c: Update include.
9665 * mi/mi-interp.c: Update include.
9666 * main.c: Update include.
9667 * linux-nat.c: Update include.
9668 * interps.c: Update include.
9669 * infrun.c: Update include.
9670 * inf-loop.c: Update include.
9671 * event-top.c: Update include.
9672 * event-loop.c: Move to ../gdbsupport/.
9673 * event-loop.h: Move to ../gdbsupport/.
9674 * async-event.h: Update include.
9675 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9676
93b54c8e
TT
96772020-04-13 Tom Tromey <tom@tromey.com>
9678
9679 * tui/tui-win.c: Include async-event.h.
9680 * remote.c: Include async-event.h.
9681 * remote-notif.c: Include async-event.h.
9682 * record-full.c: Include async-event.h.
9683 * record-btrace.c: Include async-event.h.
9684 * infrun.c: Include async-event.h.
9685 * event-top.c: Include async-event.h.
9686 * event-loop.h: Move some declarations to async-event.h.
9687 * event-loop.c: Don't include ser-event.h or top.h. Move some
9688 code to async-event.c.
9689 * async-event.h: New file.
9690 * async-event.c: New file.
9691 * Makefile.in (COMMON_SFILES): Add async-event.c.
9692 (HFILES_NO_SRCDIR): Add async-event.h.
9693
c1cd3163
TT
96942020-04-13 Tom Tromey <tom@tromey.com>
9695
9696 * utils.c (flush_streams): New function.
9697 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9698
29f2bf4f
TT
96992020-04-13 Tom Tromey <tom@tromey.com>
9700
9701 * event-loop.c (handle_file_event): Use warning, not
9702 printf_unfiltered.
9703
98029d02
TT
97042020-04-13 Tom Tromey <tom@tromey.com>
9705
9706 * event-loop.c: Include <chrono>.
9707
06cc9596
TT
97082020-04-13 Tom Tromey <tom@tromey.com>
9709
9710 * gdb_select.h: Move to ../gdbsupport/.
9711 * event-loop.c: Update include path.
9712 * top.c: Update include path.
9713 * ser-base.c: Update include path.
9714 * ui-file.c: Update include path.
9715 * ser-tcp.c: Update include path.
9716 * guile/scm-ports.c: Update include path.
9717 * posix-hdep.c: Update include path.
9718 * ser-unix.c: Update include path.
9719 * gdb_usleep.c: Update include path.
9720 * mingw-hdep.c: Update include path.
9721 * inflow.c: Update include path.
9722 * infrun.c: Update include path.
9723 * event-top.c: Update include path.
9724
8ae8e197
TT
97252020-04-13 Tom Tromey <tom@tromey.com>
9726
9727 * configure: Rebuild.
9728 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9729
58cf28e8
TT
97302020-04-13 Tom Tromey <tom@tromey.com>
9731
9732 * event-loop.h (start_event_loop): Don't declare.
9733 * event-loop.c (start_event_loop): Move...
9734 * main.c (start_event_loop): ...here. Now static.
9735
b7f999ae
SDJ
97362020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9737
9738 * MAINTAINERS: Update my email address.
9739
1085dfd4
KR
97402020-04-12 Kamil Rytarowski <n54@gmx.com>
9741
9742 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9743 IP_ALL.
9744
49d1d1f5
KR
97452020-04-12 Kamil Rytarowski <n54@gmx.com>
9746
9747 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 9748 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 9749
b4848d2a
KR
97502020-04-12 Kamil Rytarowski <n54@gmx.com>
9751
9752 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 9753 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 9754
51c133d5
KR
97552020-04-12 Kamil Rytarowski <n54@gmx.com>
9756
9757 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9758
54b8cbd0
KR
97592020-04-11 Kamil Rytarowski <n54@gmx.com>
9760
9761 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9762 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9763 (nbsd_nat_target::info_proc): New functions.
9764 * nbsd-nat.c (kinfo_get_vmmap): New function.
9765 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9766 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9767 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9768 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9769 functions.
9770 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9771 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9772 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9773 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9774 (KINFO_VME_FLAG_GROWS_DOWN): New.
9775
cf83625d
AS
97762020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9777
9778 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9779 bit shift.
9780
0c4311ab
TT
97812020-04-10 Tom Tromey <tromey@adacore.com>
9782
9783 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9784
3e65b3e9
TT
97852020-04-10 Tom Tromey <tromey@adacore.com>
9786
9787 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9788 separate debug files.
9789
13302e95
HD
97902020-04-10 Hannes Domani <ssbssa@yahoo.de>
9791
9792 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9793 Move to...
9794 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9795 ... here.
9796 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9797 Check for STATUS_WX86_BREAKPOINT.
9798 (windows_nat_target::wait): Same.
9799
bdfc1e8a
TV
98002020-04-10 Tom de Vries <tdevries@suse.de>
9801
9802 PR cli/25808
9803 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9804
f4460aec
SM
98052020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9806
9807 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9808 (Write After Approval): Remove Tom de Vries.
9809
a25198bb
BE
98102020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9811
9812 revert partially:
9813 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9814
aac66a4c
SM
9815 * buildsym.c (record_line): Fix undefined behavior and preserve
9816 lines at eof.
a25198bb 9817
206c98a6
KR
98182020-04-09 Kamil Rytarowski <n54@gmx.com>
9819
9820 * auxv.h (svr4_auxv_parse): New.
9821 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9822 and generic_auxv_parse.
9823 (svr4_auxv_parse): Add.
9824 * obsd-tdep.c: Include "auxv.h".
9825 (obsd_auxv_parse): Remove.
9826 (obsd_init_abi): Remove comment.
9827 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9828 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9829 * nbsd-tdep.c: Include "auxv.h".
9830 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9831
71fbdbaf
TT
98322020-04-08 Tom Tromey <tromey@adacore.com>
9833
9834 * nat/windows-nat.h (last_wait_event): Don't declare.
9835 (wait_for_debug_event): Update comment.
9836 * nat/windows-nat.c (last_wait_event): Now static.
9837
2c1d95e8
TT
98382020-04-08 Tom Tromey <tromey@adacore.com>
9839
9840 * windows-nat.c (wait_for_debug_event): Move to
9841 nat/windows-nat.c.
9842 * nat/windows-nat.h (wait_for_debug_event): Declare.
9843 * nat/windows-nat.c (wait_for_debug_event): Move from
9844 windows-nat.c. No longer static.
9845
d2977bc4
TT
98462020-04-08 Tom Tromey <tromey@adacore.com>
9847
9848 * windows-nat.c (get_windows_debug_event): Use
9849 fetch_pending_stop.
9850 * nat/windows-nat.h (fetch_pending_stop): Declare.
9851 * nat/windows-nat.c (fetch_pending_stop): New function.
9852
e758e19c
TT
98532020-04-08 Tom Tromey <tromey@adacore.com>
9854
9855 * windows-nat.c (windows_continue): Use matching_pending_stop and
9856 continue_last_debug_event.
9857 * nat/windows-nat.h (matching_pending_stop)
9858 (continue_last_debug_event): Declare.
9859 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9860 (matching_pending_stop, continue_last_debug_event): New
9861 functions.
9862
8d30e395
TT
98632020-04-08 Tom Tromey <tromey@adacore.com>
9864
9865 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9866 (handle_exception_result): Move to nat/windows-nat.h.
9867 (DEBUG_EXCEPTION_SIMPLE): Remove.
9868 (windows_nat::handle_ms_vc_exception): New function.
9869 (handle_exception): Move to nat/windows-nat.c.
9870 (get_windows_debug_event): Update.
9871 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9872 nat/windows-nat.c.
9873 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9874 (handle_exception_result): Move from windows-nat.c.
9875 (handle_exception): Declare.
9876 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9877 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9878 windows-nat.c.
9879
29de418d
TT
98802020-04-08 Tom Tromey <tromey@adacore.com>
9881
9882 * windows-nat.c (exception_count, event_count): Remove.
9883 (handle_exception, get_windows_debug_event)
9884 (do_initial_windows_stuff): Update.
9885
a816ba18
TT
98862020-04-08 Tom Tromey <tromey@adacore.com>
9887
9888 * windows-nat.c (windows_nat::handle_load_dll)
9889 (windows_nat::handle_unload_dll): Rename. No longer static.
9890 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9891 Declare.
9892
a00caa12
TT
98932020-04-08 Tom Tromey <tromey@adacore.com>
9894
9895 * complaints.h (stop_whining): Declare at top-level.
9896 (complaint): Don't declare stop_whining.
9897
d41b524f
TT
98982020-04-08 Tom Tromey <tromey@adacore.com>
9899
9900 * windows-nat.c (windows_nat::handle_output_debug_string):
9901 Rename. No longer static.
9902 * nat/windows-nat.h (handle_output_debug_string): Declare.
9903
3c76026d
TT
99042020-04-08 Tom Tromey <tromey@adacore.com>
9905
9906 * windows-nat.c (current_process_handle, current_process_id)
9907 (main_thread_id, last_sig, current_event, last_wait_event)
9908 (current_windows_thread, desired_stop_thread_id, pending_stops)
9909 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9910 (display_selectors, fake_create_process)
9911 (get_windows_debug_event): Update.
9912 * nat/windows-nat.h (current_process_handle, current_process_id)
9913 (main_thread_id, last_sig, current_event, last_wait_event)
9914 (current_windows_thread, desired_stop_thread_id, pending_stops)
9915 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9916 * nat/windows-nat.c (current_process_handle, current_process_id)
9917 (main_thread_id, last_sig, current_event, last_wait_event)
9918 (current_windows_thread, desired_stop_thread_id, pending_stops)
9919 (siginfo_er): New globals. Move from windows-nat.c.
9920
9d8679cc
TT
99212020-04-08 Tom Tromey <tromey@adacore.com>
9922
9923 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9924 (handle_load_dll): Update.
9925 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9926
28688adf
TT
99272020-04-08 Tom Tromey <tromey@adacore.com>
9928
9929 * windows-nat.c (enum thread_disposition_type): Move to
9930 nat/windows-nat.h.
9931 (windows_nat::thread_rec): Rename from thread_rec. No longer
9932 static.
9933 (windows_add_thread, windows_nat_target::fetch_registers)
9934 (windows_nat_target::store_registers, handle_exception)
9935 (windows_nat_target::resume, get_windows_debug_event)
9936 (windows_nat_target::get_tib_address)
9937 (windows_nat_target::thread_name)
9938 (windows_nat_target::thread_alive): Update.
9939 * nat/windows-nat.h (enum thread_disposition_type): Move from
9940 windows-nat.c.
9941 (thread_rec): Declare.
9942
4834dad0
TT
99432020-04-08 Tom Tromey <tromey@adacore.com>
9944
9945 * windows-nat.c: Add "using namespace".
9946 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9947 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9948
65bafd5b
TT
99492020-04-08 Tom Tromey <tromey@adacore.com>
9950
9951 * nat/windows-nat.h (struct windows_thread_info): Declare
9952 destructor.
9953 * nat/windows-nat.c (~windows_thread_info): New.
9954
0a4afda3
TT
99552020-04-08 Tom Tromey <tromey@adacore.com>
9956
9957 PR gdb/22992
9958 * windows-nat.c (current_event): Update comment.
9959 (last_wait_event, desired_stop_thread_id): New globals.
9960 (struct pending_stop): New.
9961 (pending_stops): New global.
9962 (windows_nat_target) <stopped_by_sw_breakpoint>
9963 <supports_stopped_by_sw_breakpoint>: New methods.
9964 (windows_fetch_one_register): Add assertions. Adjust PC.
9965 (windows_continue): Handle pending stops. Suspend other threads
9966 when stepping. Use last_wait_event
9967 (wait_for_debug_event): New function.
9968 (get_windows_debug_event): Use wait_for_debug_event. Handle
9969 pending stops. Queue spurious stops.
9970 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9971 (windows_nat_target::kill): Use wait_for_debug_event.
9972 * nat/windows-nat.h (struct windows_thread_info)
9973 <stopped_at_software_breakpoint>: New field.
9974 * nat/windows-nat.c (windows_thread_info::resume): Clear
9975 stopped_at_software_breakpoint.
9976
8e61ebec
TT
99772020-04-08 Tom Tromey <tromey@adacore.com>
9978
9979 * windows-nat.c (enum thread_disposition_type): New.
9980 (thread_rec): Replace "get_context" parameter with "disposition";
9981 change type.
9982 (windows_add_thread, windows_nat_target::fetch_registers)
9983 (windows_nat_target::store_registers, handle_exception)
9984 (windows_nat_target::resume, get_windows_debug_event)
9985 (windows_nat_target::get_tib_address)
9986 (windows_nat_target::thread_name)
9987 (windows_nat_target::thread_alive): Update.
9988
98a03287
TT
99892020-04-08 Tom Tromey <tromey@adacore.com>
9990
9991 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9992 (windows_continue): Use windows_continue::resume.
9993 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9994 resume>: Declare new methods.
9995 * nat/windows-nat.c: New file.
9996 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9997
7c7411bc
TT
99982020-04-08 Tom Tromey <tromey@adacore.com>
9999
10000 * windows-nat.c (windows_add_thread, windows_delete_thread)
10001 (windows_nat_target::fetch_registers)
10002 (windows_nat_target::store_registers, fake_create_process)
10003 (windows_nat_target::resume, windows_nat_target::resume)
10004 (get_windows_debug_event, windows_nat_target::wait)
10005 (windows_nat_target::pid_to_str)
10006 (windows_nat_target::get_tib_address)
10007 (windows_nat_target::get_ada_task_ptid)
10008 (windows_nat_target::thread_name)
10009 (windows_nat_target::thread_alive): Use lwp, not tid.
10010
2950fdf7
TT
100112020-04-08 Tom Tromey <tromey@adacore.com>
10012
10013 * windows-nat.c (handle_exception)
10014 (windows_nat_target::thread_name): Update.
10015 * nat/windows-nat.h (windows_thread_info): Remove destructor.
10016 <name>: Now unique_xmalloc_ptr.
10017
62fe396b
TT
100182020-04-08 Tom Tromey <tromey@adacore.com>
10019
10020 * windows-nat.c (thread_rec)
10021 (windows_nat_target::fetch_registers): Update.
10022 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
10023 Update comment.
10024 <debug_registers_changed, reload_context>: Now bool.
10025
e9534bd2
TT
100262020-04-08 Tom Tromey <tromey@adacore.com>
10027
10028 * windows-nat.c (windows_add_thread): Use new.
10029 (windows_init_thread_list, windows_delete_thread): Use delete.
10030 (get_windows_debug_event): Update.
10031 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
10032 destructor, and initializers.
10033
ae1f8880
TT
100342020-04-08 Tom Tromey <tromey@adacore.com>
10035
10036 * windows-nat.c (struct windows_thread_info): Remove.
10037 * nat/windows-nat.h: New file.
10038
55a1e039
TT
100392020-04-08 Tom Tromey <tromey@adacore.com>
10040
10041 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
10042 (thread_rec, windows_add_thread, windows_delete_thread)
10043 (windows_continue): Update.
10044
93366324
TT
100452020-04-08 Tom Tromey <tromey@adacore.com>
10046
10047 * windows-nat.c (struct windows_thread_info): Remove typedef.
10048 (thread_head): Remove.
10049 (thread_list): New global.
10050 (thread_rec, windows_add_thread, windows_init_thread_list)
10051 (windows_delete_thread, windows_continue): Update.
10052
0f2265e2
SM
100532020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10054
10055 * windows-tdep.h (windows_init_abi): Add comment.
10056 (cygwin_init_abi): New declaration.
10057 * windows-tdep.c: Split signal enumeration in two, one for
10058 Windows and one for Cygwin.
10059 (windows_gdb_signal_to_target): Only deal with signal of the
10060 Windows OS ABI.
10061 (cygwin_gdb_signal_to_target): New function.
10062 (windows_init_abi): Rename to windows_init_abi_common, don't set
10063 gdb_signal_to_target gdbarch method. Add new new function with
10064 this name.
10065 (cygwin_init_abi): New function.
10066 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
10067 comment. Don't call windows_init_abi.
10068 (amd64_windows_init_abi): Add comment, call windows_init_abi.
10069 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
10070 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
10071 i386_windows_init_abi_common, don't call windows_init_abi. Add
10072 a new function of this name.
10073 (i386_cygwin_init_abi): New function.
10074 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
10075 OS ABI Cygwin.
10076
3810f182
SM
100772020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
10078
10079 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
10080 parameter.c.
10081 (dwarf2_read_gdb_index): Update.
10082
063f8e80
KR
100832020-04-07 Kamil Rytarowski <n54@gmx.com>
10084
10085 * nbsd-tdep.c: Include "objfiles.h".
10086 (nbsd_skip_solib_resolver): New.
10087 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10088
85a9510c 100892020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10090
10091 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10092 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10093 with DW_LLE_base_addressx are being emitted in DWARFv5.
10094 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10095 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10096 unsigned integer.
10097
9fc3eaae 100982020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10099
10100 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10101 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10102 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10103 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10104 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10105 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10106 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10107
10108
41144253 101092020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10110
10111 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10112 (read_loclist_index): New function definition.
10113 (lookup_loclist_base): New function definition.
10114 (read_loclist_header): New function definition.
10115 (dwarf2_cu): Add loclist_base and loclist_header field.
10116 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10117 (read_full_die_1): Read the value of DW_AT_loclists_base.
10118 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10119 (read_attribute_value): Handle DW_FORM_loclistx.
10120 (skip_one_die): Handle DW_FORM_loclistx.
10121 (loclist_header): New structure declaration.
10122 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10123
9f4e76a4
SM
101242020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10125
10126 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10127 constructor. Remove `addr` parameter from other constructor and
10128 add `per_cu` parameter.
10129 * dwarf2/read.c (create_partial_symtab): Update.
10130
25c11aca
TV
101312020-04-07 Tom de Vries <tdevries@suse.de>
10132
10133 PR symtab/25796
10134 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10135 (partial_die_info::fixup): Inherit has_const_value.
10136
5707e24b
TV
101372020-04-07 Tom de Vries <tdevries@suse.de>
10138
10139 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10140 symbols without address.
10141
05f00e22
KR
101422020-04-06 Kamil Rytarowski <n54@gmx.com>
10143
10144 * nbsd-nat.h (struct thread_info): Add forward declaration.
10145 (nbsd_nat_target::thread_alive): Add.
10146 (nbsd_nat_target::thread_name): Likewise.
10147 (nbsd_nat_target::update_thread_list): Likewise.
10148 (update_thread_list::post_attach): Likewise.
10149 (post_attach::pid_to_str): Likewise.
10150 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10151 (nbsd_thread_lister): Add.
10152 (nbsd_nat_target::thread_alive): Likewise.
10153 (nbsd_nat_target::thread_name): Likewise.
10154 (nbsd_add_threads): Likewise.
10155 (update_thread_list::post_attach): Likewise.
10156 (nbsd_nat_target::update_thread_list): Likewise.
10157 (post_attach::pid_to_str): Likewise.
10158
6ee448cc
TT
101592020-04-06 Tom Tromey <tromey@adacore.com>
10160
10161 * ada-valprint.c (print_variant_part): Extract the variant field.
10162 (print_field_values): Use the field as the outer value when
10163 recursing.
10164
dea34e8c
TT
101652020-04-06 Tom Tromey <tromey@adacore.com>
10166
10167 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10168 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10169 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10170 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10171 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10172
93689ce9
TT
101732020-04-06 Tom Tromey <tromey@adacore.com>
10174
10175 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10176 TYPE_CODE_ERROR.
10177
79743962
KR
101782020-04-06 Kamil Rytarowski <n54@gmx.com>
10179
10180 * nbsd-tdep.c: Include "gdbarch.h".
10181 Define enum with NetBSD signal numbers.
10182 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10183 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10184 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10185 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10186 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10187 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10188 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10189 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10190 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10191 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10192 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10193 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10194
9e7c9a03
HD
101952020-04-03 Hannes Domani <ssbssa@yahoo.de>
10196
10197 PR gdb/25325
10198 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10199
d9e49b61
TT
102002020-04-03 Tom Tromey <tromey@adacore.com>
10201
10202 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10203 Read constant block.
10204
e0fc5c3f
SM
102052020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10206
10207 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10208 (gdb_bfd_get_full_section_contents): New declaration.
10209 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10210 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10211 gdb_bfd_get_full_section_contents.
10212
e2ff18a0
SM
102132020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10214
10215 * exec.c (build_section_table): Replace internal_error with
10216 gdb_assert.
10217 (section_table_xfer_memory_partial): Likewise.
10218 * mdebugread.c (parse_partial_symbols): Likewise.
10219 * psymtab.c (lookup_partial_symbol): Likewise.
10220 * utils.c (wrap_here): Likewise.
10221
0830d301
TT
102222020-04-02 Tom Tromey <tromey@adacore.com>
10223
10224 * f-lang.c (build_fortran_types): Use arch_type to initialize
10225 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10226
e7da7f8f
TT
102272020-04-02 Tom Tromey <tromey@adacore.com>
10228
10229 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10230 of attributes.
10231
c90d28ac
AB
102322020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10233 Bernd Edlinger <bernd.edlinger@hotmail.de>
10234 Tom Tromey <tromey@adacore.com>
10235
10236 * buildsym.c (buildsym_compunit::record_line): Remove
10237 deduplication code.
10238
1aa98955
TV
102392020-04-02 Tom de Vries <tdevries@suse.de>
10240
10241 PR ada/24671
10242 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10243
d3214198
TV
102442020-04-02 Tom de Vries <tdevries@suse.de>
10245
10246 * dwarf2/read.c (dwarf2_gdb_index_functions,
10247 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10248 NULL.
10249 * psymtab.c (psym_lookup_global_symbol_language): New function.
10250 (psym_functions): Init psym_lookup_global_symbol_language with
10251 psym_lookup_global_symbol_language.
10252 * symfile-debug.c (debug_sym_quick_functions): Init
10253 lookup_global_symbol_language with NULL.
10254 * symfile.c (set_initial_language): Remove fixme comment.
10255 * symfile.h (struct quick_symbol_functions): Add
10256 lookup_global_symbol_language.
10257 * symtab.c (find_quick_global_symbol_language): New function.
10258 (find_main_name): Use find_quick_global_symbol_language.
10259
2836752f
SM
102602020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10261
10262 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10263
64dc2d4b
BE
102642020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10265
10266 * buildsym.c (record_line): Fix undefined behavior and preserve
10267 lines at eof.
10268
bbe3dc41
BE
102692020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10270
10271 * buildsym.c (record_line): Fix the resizing condition.
10272
6b4a335b
TT
102732020-04-01 Tom Tromey <tom@tromey.com>
10274
10275 * value.h (value_literal_complex): Add comment.
10276 * valops.c (value_literal_complex): Refer to value.h.
10277
3638a098
TT
102782020-04-01 Tom Tromey <tom@tromey.com>
10279
10280 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10281 (scalar_type): New rule, from typebase.
10282 (typebase): Use scalar_type. Recognize complex types.
10283 (field_name): Handle FLOAT_KEYWORD.
10284 (ident_tokens): Add _Complex and __complex__.
10285
c34e8714
TT
102862020-04-01 Tom Tromey <tom@tromey.com>
10287
10288 PR exp/25299:
10289 * valarith.c (promotion_type, complex_binop): New functions.
10290 (scalar_binop): Handle complex numbers. Use promotion_type.
10291 (value_pos, value_neg, value_complement): Handle complex numbers.
10292
fa649bb7
TT
102932020-04-01 Tom Tromey <tom@tromey.com>
10294
10295 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10296 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10297 (parse_number): Handle complex numbers.
10298
981c08ce
TT
102992020-04-01 Tom Tromey <tom@tromey.com>
10300
10301 * c-valprint.c (c_decorations): Change complex suffix to "i".
10302
4c99290d
TT
103032020-04-01 Tom Tromey <tom@tromey.com>
10304
10305 * valprint.c (generic_value_print_complex): Use accessors.
10306 * value.h (value_real_part, value_imaginary_part): Declare.
10307 * valops.c (value_real_part, value_imaginary_part): New
10308 functions.
10309 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10310
5b930b45
TT
103112020-04-01 Tom Tromey <tom@tromey.com>
10312
10313 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10314 (read_range_type): Update.
10315 * mdebugread.c (basic_type): Update.
10316 * go-lang.c (build_go_types): Use init_complex_type.
10317 * gdbtypes.h (struct main_type) <complex_type>: New member.
10318 (init_complex_type): Update.
10319 (arch_complex_type): Don't declare.
10320 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10321 Make name if none given. Use alloc_type_copy. Look for cached
10322 complex type.
10323 (arch_complex_type): Remove.
10324 (gdbtypes_post_init): Use init_complex_type.
10325 * f-lang.c (build_fortran_types): Use init_complex_type.
10326 * dwarf2/read.c (read_base_type): Update.
10327 * d-lang.c (build_d_types): Use init_complex_type.
10328 * ctfread.c (read_base_type): Update.
10329
53cccef1
TBA
103302020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10331
10332 * infrun.c (stop_all_threads): Update assertion, plus when
10333 stopping threads, take into account that we might be trying
10334 to stop an all-stop target.
10335 (stop_waiting): Call 'stop_all_threads' if there exists a
10336 non-stop target.
10337
a0714d30
TBA
103382020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10339
10340 * target.h (exists_non_stop_target): New function declaration.
10341 * target.c (exists_non_stop_target): New function.
10342
60e22c1e
HD
103432020-04-01 Hannes Domani <ssbssa@yahoo.de>
10344
10345 PR gdb/24789
10346 * eval.c (is_integral_or_integral_reference): New function.
10347 (evaluate_subexp_standard): Allow integer references in
10348 pointer arithmetic.
10349
e139a727
TBA
103502020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10351
10352 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10353 check for no ptid in the stop reply when the target is non-stop.
10354
e0802d59
TT
103552020-04-01 Tom Tromey <tromey@adacore.com>
10356
10357 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10358 "name" parameter to rvalue reference. Initialize m_name_holder.
10359 <lookup_name_info>: New overloads.
10360 <name>: Return gdb::string_view.
10361 <c_str>: New method.
10362 <make_ignore_params>: Update.
10363 <search_name_hash>: Update.
10364 <language_lookup_name>: Return const char *.
10365 <m_name>: Change type.
10366 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10367 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10368 (lookup_name_info::match_any): Update.
10369 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10370 Update.
10371 * minsyms.c (linkage_name_str): Update.
10372 * language.c (default_symbol_name_matcher): Update.
10373 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10374 Update.
10375 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10376 (ada_lookup_name_info::ada_lookup_name_info): Update.
10377 (literal_symbol_name_matcher): Update.
10378
8c072cb6
TT
103792020-04-01 Tom Tromey <tromey@adacore.com>
10380
10381 * psymtab.c (psymtab_search_name): Remove function.
10382 (psym_lookup_symbol): Create search name and lookup name here.
10383 (lookup_partial_symbol): Remove "name" parameter; add
10384 lookup_name.
10385 (psym_expand_symtabs_for_function): Update.
10386
6f29a534
TT
103872020-03-31 Joel Jones <joelkevinjones@gmail.com>
10388
10389 PR tui/25597:
10390 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10391
af62665e
TT
103922020-03-31 Tom Tromey <tromey@adacore.com>
10393
10394 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10395 memcpy.
10396
d1a89da5
NC
103972020-03-30 Nelson Chu <nelson.chu@sifive.com>
10398
10399 * features/riscv/32bit-csr.xml: Regenerated.
10400 * features/riscv/64bit-csr.xml: Regenerated.
10401
d8af9068
TT
104022020-03-30 Tom Tromey <tromey@adacore.com>
10403
10404 * ada-valprint.c (print_variant_part): Update.
10405 * ada-lang.h (ada_which_variant_applies): Update.
10406 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10407 outer_valaddr parameters; replace with "outer" value parameter.
10408 (to_fixed_variant_branch_type): Update.
10409
227c0bf4
PFC
104102020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10411
10412 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10413 <list>. Remove inclusion of observable.h.
10414 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10415 (struct arch_lwp_info): New struct.
10416 (class ppc_linux_dreg_interface): New class.
10417 (struct ppc_linux_process_info): New struct.
10418 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10419 <low_new_clone, low_forget_process, low_prepare_to_resume>
10420 <copy_thread_dreg_state, mark_thread_stale>
10421 <mark_debug_registers_changed, register_hw_breakpoint>
10422 <clear_hw_breakpoint, register_wp, clear_wp>
10423 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10424 <num_memory_accesses, get_trigger_type>
10425 <create_watchpoint_request, hwdebug_point_cmp>
10426 <init_arch_lwp_info, get_arch_lwp_info>
10427 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10428 methods.
10429 <struct ptid_hash>: New inner struct.
10430 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10431 members.
10432 (saved_dabr_value, hwdebug_info, max_slots_number)
10433 (struct hw_break_tuple, struct thread_points, ppc_threads)
10434 (have_ptrace_hwdebug_interface)
10435 (hwdebug_find_thread_points_by_tid)
10436 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10437 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10438 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10439 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10440 use m_dreg_interface.
10441 (hwdebug_point_cmp): Change to...
10442 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10443 reference arguments instead of pointers.
10444 (ppc_linux_nat_target::ranged_break_num_registers): Use
10445 m_dreg_interface.
10446 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10447 m_dreg_interface. Call register_hw_breakpoint.
10448 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10449 m_dreg_interface. Call clear_hw_breakpoint.
10450 (get_trigger_type): Change to...
10451 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10452 comment.
10453 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10454 use m_dreg_interface. Call register_hw_breakpoint.
10455 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10456 use m_dreg_interface. Call clear_hw_breakpoint.
10457 (can_use_watchpoint_cond_accel): Change to...
10458 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10459 method. Update comment, use m_dreg_interface and
10460 m_process_info.
10461 (calculate_dvc): Change to...
10462 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10463 m_dreg_interface.
10464 (num_memory_accesses): Change to...
10465 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10466 (check_condition): Change to...
10467 (ppc_linux_nat_target::check_condition): ...this method.
10468 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10469 comment, use m_dreg_interface.
10470 (create_watchpoint_request): Change to...
10471 (ppc_linux_nat_target::create_watchpoint_request): ...this
10472 method. Use m_dreg_interface.
10473 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10474 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10475 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10476 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10477 (ppc_linux_nat_target::low_forget_process)
10478 (ppc_linux_nat_target::low_new_fork)
10479 (ppc_linux_nat_target::low_new_clone)
10480 (ppc_linux_nat_target::low_delete_thread)
10481 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10482 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10483 only call mark_thread_stale.
10484 (ppc_linux_thread_exit): Remove.
10485 (ppc_linux_nat_target::stopped_data_address): Change to...
10486 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10487 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10488 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10489 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10490 comment. Call low_stopped_data_address.
10491 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10492 m_dreg_interface.
10493 (ppc_linux_nat_target::masked_watch_num_registers): Use
10494 m_dreg_interface.
10495 (ppc_linux_nat_target::copy_thread_dreg_state)
10496 (ppc_linux_nat_target::mark_thread_stale)
10497 (ppc_linux_nat_target::mark_debug_registers_changed)
10498 (ppc_linux_nat_target::register_hw_breakpoint)
10499 (ppc_linux_nat_target::clear_hw_breakpoint)
10500 (ppc_linux_nat_target::register_wp)
10501 (ppc_linux_nat_target::clear_wp)
10502 (ppc_linux_nat_target::init_arch_lwp_info)
10503 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10504 (_initialize_ppc_linux_nat): Remove observer callback.
10505
4db10d8f
PFC
105062020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10507
10508 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10509 (ppc_linux_nat_target::auxv_parse)
10510 (ppc_linux_nat_target::read_description)
10511 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10512 Move up.
10513
1310c1b0
PFC
105142020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10515
10516 * linux-nat.h (low_new_clone): New method.
10517 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10518
69b037c3
SM
105192020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10520
10521 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10522 (dbx_expand_psymtab): ... this.
10523 (start_psymtab): Update.
10524 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10525 (mdebug_expand_psymtab): ... this.
10526 (parse_partial_symbols): Update.
10527 (new_psymtab): Update.
10528 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10529 (xcoff_expand_psymtab): ... this.
10530 (xcoff_start_psymtab): Update.
10531
48993951
SM
105322020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10533
10534 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10535 <expand_dependencies>: ... this.
10536 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10537 (partial_symtab::expand_dependencies): ... this.
10538 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10539 Update.
10540 (dwarf2_psymtab::expand_psymtab): Update.
10541 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10542 * mdebugread.c (psymtab_to_symtab_1): Update.
10543 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10544
3ad83046
SM
105452020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10546
10547 * psympriv.h (discard_psymtab): Remove.
10548 * dbxread.c (dbx_end_psymtab): Update.
10549 * xcoffread.c (xcoff_end_psymtab): Update.
10550
4d1b9ab6
TT
105512020-03-28 Tom Tromey <tom@tromey.com>
10552
10553 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10554 comment.
10555
f1749218
TT
105562020-03-28 Tom Tromey <tom@tromey.com>
10557
10558 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10559
ebea7626
HD
105602020-03-27 Hannes Domani <ssbssa@yahoo.de>
10561
10562 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10563
a879b4d5
JB
105642020-03-26 John Baldwin <jhb@FreeBSD.org>
10565
10566 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10567
0826b30a
TT
105682020-03-26 Tom Tromey <tom@tromey.com>
10569
10570 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10571 (mark_common_block_symbol_computed, read_tag_string_type)
10572 (attr_to_dynamic_prop, read_subrange_type): Update.
10573 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10574 to be methods on struct attribute.
10575 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10576 (read_call_site_scope, partial_die_info::read)
10577 (partial_die_info::read, lookup_die_type, follow_die_ref):
10578 Update.
10579 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10580 from dwarf2_get_ref_die_offset.
10581 (attribute::constant_value): New method, from
10582 dwarf2_get_attr_constant_value.
10583 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10584 Declare method.
10585 <constant_value>: New method.
10586
2b2558bf
TT
105872020-03-26 Tom Tromey <tom@tromey.com>
10588
10589 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10590 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10591 (dwarf_type_encoding_name): Move to stringify.c.
10592 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10593 * dwarf2/stringify.c: New file.
10594 * dwarf2/stringify.h: New file.
10595
eeb64781
TT
105962020-03-26 Tom Tromey <tom@tromey.com>
10597
10598 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10599 Rewrite.
10600
a39fdb41
TT
106012020-03-26 Tom Tromey <tom@tromey.com>
10602
10603 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10604 methods.
10605 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10606 (lookup_ranges_base): Likewise.
10607 (read_cutu_die_from_dwo, read_full_die_1): Update.
10608
436c571c
TT
106092020-03-26 Tom Tromey <tom@tromey.com>
10610
10611 * dwarf2/read.c (read_import_statement, read_file_scope)
10612 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10613 (read_lexical_block_scope, read_call_site_scope)
10614 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10615 (handle_struct_member_die, process_structure_scope)
10616 (update_enumeration_type_from_children)
10617 (process_enumeration_scope, read_array_type, read_common_block)
10618 (read_namespace, read_module, read_subroutine_type): Update.
10619 (sibling_die): Remove.
10620
052c8bb8
TT
106212020-03-26 Tom Tromey <tom@tromey.com>
10622
10623 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10624 (build_type_psymtabs_reader, read_structure_type)
10625 (read_enumeration_type, read_full_die_1): Update.
10626 (dwarf2_attr_no_follow): Move to die.h.
10627 * dwarf2/die.h (struct die_info) <attr>: New method.
10628
2b24b6e4
TT
106292020-03-26 Tom Tromey <tom@tromey.com>
10630
10631 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10632 <base_address>: Now an optional.
10633 (dwarf2_find_base_address, dwarf2_rnglists_process)
10634 (dwarf2_ranges_process, fill_in_loclist_baton)
10635 (dwarf2_symbol_mark_computed): Update.
10636
c2d50fd0
TT
106372020-03-26 Tom Tromey <tom@tromey.com>
10638
10639 * dwarf2/read.c (struct die_info): Move to die.h.
10640 * dwarf2/die.h: New file.
10641
0df7ad3a
TT
106422020-03-26 Tom Tromey <tom@tromey.com>
10643
10644 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10645 * dwarf2/read.c
10646 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10647 Move to line-header.c.
10648 (read_checked_initial_length_and_offset, read_formatted_entries):
10649 Likewise.
10650 (dwarf_decode_line_header): Split into two.
10651 * dwarf2/line-header.c
10652 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10653 Move from read.c.
10654 (read_checked_initial_length_and_offset, read_formatted_entries):
10655 Likewise.
10656 (dwarf_decode_line_header): New function, split from read.c.
10657
86c0bb4c
TT
106582020-03-26 Tom Tromey <tom@tromey.com>
10659
10660 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10661 Declare method.
10662 * dwarf2/read.c (read_attribute_value): Update.
10663 (dwarf2_per_objfile::read_line_string): Rename from
10664 read_indirect_line_string.
10665 (read_formatted_entries): Update.
10666
2ef46c2f
TT
106672020-03-26 Tom Tromey <tom@tromey.com>
10668
10669 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10670 variable.
10671
4f9c1eda
TT
106722020-03-26 Tom Tromey <tom@tromey.com>
10673
10674 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10675 const.
10676 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10677 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10678 parameter const.
10679
5a0e026f
TT
106802020-03-26 Tom Tromey <tom@tromey.com>
10681
10682 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10683 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10684 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10685 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10686
8844c11b
TT
106872020-03-26 Tom Tromey <tom@tromey.com>
10688
10689 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10690 file_names_size, file_full_name, file_file_name>: Use const.
10691 <file_name_at, file_names>: Add const overload.
10692 * dwarf2/line-header.c (line_header::file_file_name)
10693 (line_header::file_full_name): Update.
10694
c90ec28a
TT
106952020-03-26 Tom Tromey <tom@tromey.com>
10696
10697 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10698 (macro_start_file, consume_improper_spaces)
10699 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10700 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10701 (dwarf_decode_macros): Move to macro.c.
10702 * dwarf2/macro.c: New file.
10703 * dwarf2/macro.h: New file.
10704 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10705
4f44ae6c
TT
107062020-03-26 Tom Tromey <tom@tromey.com>
10707
10708 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10709 method.
10710 * dwarf2/section.c: New method. From
10711 read_indirect_string_at_offset_from.
10712 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10713 (read_indirect_string_at_offset_from): Move to section.c.
10714 (read_indirect_string_at_offset): Rewrite.
10715 (read_indirect_line_string_at_offset): Remove.
10716 (read_indirect_string, read_indirect_line_string)
10717 (dwarf_decode_macro_bytes): Update.
10718
a0194fa8
TT
107192020-03-26 Tom Tromey <tom@tromey.com>
10720
10721 * dwarf2/section.h (struct dwarf2_section_info)
10722 <overload_complaint>: Declare.
10723 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10724 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10725 Rename from dwarf2_section_buffer_overflow_complaint.
10726 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10727 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10728
3d27bbdb
TT
107292020-03-26 Tom Tromey <tom@tromey.com>
10730
10731 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10732 Declare.
10733 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10734 Move from read.c.
10735 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10736 to section.c.
10737
9eac9650
TT
107382020-03-26 Tom Tromey <tom@tromey.com>
10739
10740 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10741
bf80d710
TT
107422020-03-26 Tom Tromey <tom@tromey.com>
10743
10744 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10745 "builder".
10746 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10747 parameter.
10748 (dwarf_decode_macros): Update.
10749
0314b390
TT
107502020-03-26 Tom Tromey <tom@tromey.com>
10751
10752 * dwarf2/read.c (read_attribute_value): Update.
10753 (read_indirect_string_from_dwz): Move to dwz.c; change into
10754 method.
10755 (dwarf_decode_macro_bytes): Update.
10756 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10757 * dwarf2/dwz.c: New file.
10758 * Makefile.in (COMMON_SFILES): Add dwz.c.
10759
9fda78b6
TT
107602020-03-26 Tom Tromey <tom@tromey.com>
10761
10762 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10763 * dwarf2/read.c: Add include.
10764 * dwarf2/index-write.c: Add include.
10765 * dwarf2/index-cache.c: Add include.
10766 * dwarf2/dwz.h: New file.
10767
33aa3c10
TT
107682020-03-25 Tom Tromey <tom@tromey.com>
10769
10770 * compile/compile-object-load.c (get_out_value_type): Mention
10771 correct symbol name in error message.
10772
d503b685
HD
107732020-03-25 Hannes Domani <ssbssa@yahoo.de>
10774
10775 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10776
7b1eff95
TV
107772020-03-25 Tom de Vries <tdevries@suse.de>
10778
10779 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10780 * symmisc.c (dump_symtab_1): Print user and includes fields.
10781 (maintenance_info_symtabs): Same.
10782
dd895392
AB
107832020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10784
10785 PR gdb/25534
10786 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10787 (riscv_regcache_cooked_write): New function.
10788 (riscv_push_dummy_call): Use new function.
10789 (riscv_return_value): Likewise.
10790
5ab2fbf1
SM
107912020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10792
10793 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10794 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10795 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10796 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10797 * infrun.c (follow_fork): Likewise.
10798 (follow_fork_inferior): Likewise.
10799 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10800 * linux-nat.h (class linux_nat_target): Likewise.
10801 * remote.c (class remote_target) <follow_fork>: Likewise.
10802 (remote_target::follow_fork): Likewise.
10803 * target-delegates.c: Re-generate.
10804 * target.c (default_follow_fork): Likewise.
10805 (target_follow_fork): Likewise.
10806 * target.h (struct target_ops) <follow_fork>: Likewise.
10807 (target_follow_fork): Likewise.
10808
a64fafb5
TV
108092020-03-24 Tom de Vries <tdevries@suse.de>
10810
10811 * psymtab.c (maintenance_info_psymtabs): Print user field.
10812
fe26d3a3
TT
108132020-03-20 Tom Tromey <tromey@adacore.com>
10814
10815 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10816 const.
10817 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10818 const.
10819
c884cc46
SM
108202020-03-20 Simon Marchi <simon.marchi@efficios.com>
10821
10822 * ptrace.m4: Don't check for ptrace declaration.
10823 * config.in: Re-generate.
10824 * configure: Re-generate.
10825 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10826 not defined.
10827
1ff700c2
KR
108282020-03-20 Kamil Rytarowski <n54@gmx.com>
10829
10830 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10831 `PTRACE_TYPE_RET'.
10832 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10833 * sparc-nat.c (gdb_ptrace): Likewise.
10834 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10835
f7d4f0b1
TT
108362020-03-20 Tom Tromey <tromey@adacore.com>
10837
10838 * c-exp.y (lex_one_token): Fix assert.
10839
f67210ff
TT
108402020-03-20 Tom Tromey <tromey@adacore.com>
10841
10842 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10843 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10844 strncpy call.
10845
1773be9e
TT
108462020-03-20 Tom Tromey <tromey@adacore.com>
10847
10848 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10849
70304be9
TT
108502020-03-20 Tom Tromey <tromey@adacore.com>
10851
10852 * ada-valprint.c (print_variant_part): Remove parameters; switch
10853 to value-based API.
10854 (print_field_values): Likewise.
10855 (ada_val_print_struct_union): Likewise.
10856 (ada_value_print_1): Update.
10857
9faa006d
KR
108582020-03-20 Kamil Rytarowski <n54@gmx.com>
10859
10860 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10861 nbsd_nat_target instead of inf_ptrace_target.
10862 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10863 nbsd_nat_target.
10864
4a90f062
KR
108652020-03-20 Kamil Rytarowski <n54@gmx.com>
10866
10867 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10868 it to the ptrace call.
10869 * (store_registers): Likewise.
10870
108712020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
10872
10873 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10874 it to the ptrace call.
10875 * (store_registers): Likewise.
10876
2d07da27
LM
108772020-03-19 Luis Machado <luis.machado@linaro.org>
10878
10879 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10880 valid, fetch vg value from ptrace.
10881
f09db380
KR
108822020-03-19 Kamil Rytarowski <n54@gmx.com>
10883 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10884 * inf-ptrace.c: Likewise.
10885 * (gdb_ptrace): Add.
10886 * (inf_ptrace_target::resume): Update.
10887 * (inf_ptrace_target::xfer_partial): Likewise.
10888 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10889 * (inf_ptrace_peek_poke): Update.
10890
fcc7376e
KR
108912020-03-19 Kamil Rytarowski <n54@gmx.com>
10892
10893 * x86-bsd-nat.c (gdb_ptrace): New.
10894 * (x86bsd_dr_set): Add new argument `ptid'.
10895 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10896 x86bsd_dr_set_addr): Update.
10897
cada5fc9
AB
108982020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10899
10900 * remote.c (remote_target::process_stop_reply): Handle events for
10901 all threads differently.
10902
19a2740f
AB
109032020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10904
10905 * completer.c (completion_tracker::remove_completion): Define new
10906 function.
10907 * completer.h (completion_tracker::remove_completion): Declare new
10908 function.
10909 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10910 when adding a C++ function symbol.
10911
724fd9ba
AB
109122020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10913
10914 * completer.c (completion_tracker::completion_hash_entry): Define
10915 new class.
10916 (advance_to_filename_complete_word_point): Call
10917 recompute_lowest_common_denominator.
10918 (completion_tracker::completion_tracker): Call discard_completions
10919 to setup the hash table.
10920 (completion_tracker::discard_completions): Allow for being called
10921 from the constructor, pass new equal function, and element deleter
10922 when constructing the hash table. Initialise new class member
10923 variables.
10924 (completion_tracker::maybe_add_completion): Remove use of
10925 m_entries_vec, and store more information into m_entries_hash.
10926 (completion_tracker::recompute_lcd_visitor): New function, most
10927 content taken from...
10928 (completion_tracker::recompute_lowest_common_denominator):
10929 ...here, this now just visits each item in the hash calling the
10930 above visitor.
10931 (completion_tracker::build_completion_result): Remove use of
10932 m_entries_vec, call recompute_lowest_common_denominator.
10933 * completer.h (completion_tracker::have_completions): Remove use
10934 of m_entries_vec.
10935 (completion_tracker::completion_hash_entry): Declare new class.
10936 (completion_tracker::recompute_lowest_common_denominator): Change
10937 function signature.
10938 (completion_tracker::recompute_lcd_visitor): Declare new function.
10939 (completion_tracker::m_entries_vec): Delete.
10940 (completion_tracker::m_entries_hash): Initialize to NULL.
10941 (completion_tracker::m_lowest_common_denominator_valid): New
10942 member variable.
10943 (completion_tracker::m_lowest_common_denominator_max_length): New
10944 member variable.
10945
5a82b8a1
KR
109462020-03-17 Kamil Rytarowski <n54@gmx.com>
10947
10948 * regformats/regdef.h: Put reg in gdb namespace.
10949
fb516a69
KR
109502020-03-17 Kamil Rytarowski <n54@gmx.com>
10951
10952 * i386-bsd-nat.c (gdb_ptrace): New.
10953 * (i386bsd_fetch_inferior_registers,
10954 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10955 * (i386bsd_fetch_inferior_registers,
10956 i386bsd_store_inferior_registers) Use gdb_ptrace.
10957
1c0aa1fb
KR
109582020-03-17 Kamil Rytarowski <n54@gmx.com>
10959
10960 * amd64-bsd-nat.c (gdb_ptrace): New.
10961 * (amd64bsd_fetch_inferior_registers,
10962 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10963 * (amd64bsd_fetch_inferior_registers,
10964 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10965
5ccd2fb7
KR
109662020-03-17 Kamil Rytarowski <n54@gmx.com>
10967
10968 * user-regs.c (user_reg::read): Rename to...
10969 (user_reg::xread): ...this.
10970 * (append_user_reg): Rename argument `read' to `xread'.
10971 * (user_reg_add_builtin): Likewise.
10972 * (user_reg_add): Likewise.
10973 * (value_of_user_reg): Likewise.
10974
2108a63a
KR
109752020-03-17 Kamil Rytarowski <n54@gmx.com>
10976
10977 * sparc-nat.c (gdb_ptrace): New.
10978 * sparc-nat.c (sparc_fetch_inferior_registers)
10979 (sparc_store_inferior_registers) Remove obsolete comment.
10980 * sparc-nat.c (sparc_fetch_inferior_registers)
10981 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10982 * sparc-nat.c (sparc_fetch_inferior_registers)
10983 (sparc_store_inferior_registers) Use gdb_ptrace.
10984
a225c9a8
KR
109852020-03-17 Kamil Rytarowski <n54@gmx.com>
10986
10987 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10988 it to the ptrace call.
10989 * sh-nbsd-nat.c (store_registers): Likewise.
10990
98097623
KR
109912020-03-17 Kamil Rytarowski <n54@gmx.com>
10992
10993 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10994 nbsd_nat_target instead of inf_ptrace_target.
10995 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10996 nbsd_nat_target.
10997
9e38d619
KR
109982020-03-17 Kamil Rytarowski <n54@gmx.com>
10999
11000 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
11001
a2ecbe9f
KR
110022020-03-17 Kamil Rytarowski <n54@gmx.com>
11003
11004 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
11005 <sys/sysctl.h>.
11006 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
11007
58990295
TV
110082020-03-17 Tom de Vries <tdevries@suse.de>
11009
11010 PR gdb/23710
11011 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
11012 fields.
11013 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
11014 fields.
11015 (process_imported_unit_die): Skip import of c++ CUs.
11016
771dd3a8
TT
110172020-03-16 Tom Tromey <tom@tromey.com>
11018
11019 * p-valprint.c (pascal_object_print_value): Initialize
11020 base_value.
11021
817a7585
AK
110222020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
11023 Shahab Vahedi <shahab@synopsys.com>
11024
11025 * Makefile.in: Add arch/arc.o
11026 * configure.tgt: Likewise.
11027 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
11028 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 11029 (arc_read_description): New function to cache target descriptions.
817a7585
AK
11030 * arc-tdep.h (arc_read_description): Add proto type.
11031 * arch/arc.c: New file.
11032 * arch/arc.h: Likewise.
11033 * features/Makefile: Replace old target descriptions with new.
11034 * features/arc-arcompact.c: Remove.
11035 * features/arc-arcompact.xml: Likewise.
11036 * features/arc-v2.c: Likewise
11037 * features/arc-v2.xml: Likewise
11038 * features/arc/aux-arcompact.xml: New file.
11039 * features/arc/aux-v2.xml: Likewise.
11040 * features/arc/core-arcompact.xml: Likewise.
11041 * features/arc/core-v2.xml: Likewise.
11042 * features/arc/aux-arcompact.c: Generate.
11043 * features/arc/aux-v2.c: Likewise.
11044 * features/arc/core-arcompact.c: Likewise.
11045 * features/arc/core-v2.c: Likewise.
11046 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
11047
67430cd0
TT
110482020-03-16 Tom Tromey <tromey@adacore.com>
11049
11050 PR gdb/25663:
11051 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
11052 putting value into bcache.
11053
30efb6c7
SM
110542020-03-16 Simon Marchi <simon.marchi@efficios.com>
11055
11056 PR gdb/21500
11057 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
11058 to...
11059 (amd64_windows_init_abi_common): ... this. Don't set size of
11060 long type.
11061 (amd64_windows_init_abi): New function.
11062 (amd64_cygwin_init_abi): New function.
11063 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
11064 the Cygwin OS ABI.
11065 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
11066 comment.
11067
8db52437
SM
110682020-03-16 Simon Marchi <simon.marchi@efficios.com>
11069
11070 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
11071 * windows-tdep.c (CYGWIN_DLL_NAME): New.
11072 (pe_import_directory_entry): New struct type.
11073 (is_linked_with_cygwin_dll): New function.
11074 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
11075 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
11076 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
11077
5982a56a
SM
110782020-03-16 Simon Marchi <simon.marchi@efficios.com>
11079
11080 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
11081 i386_cygwin_core_osabi_sniffer.
11082
7a1998df
SM
110832020-03-16 Simon Marchi <simon.marchi@efficios.com>
11084
11085 * i386-cygwin-tdep.c: Rename to...
11086 * i386-windows-tdep.c: ... this.
11087 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11088 i386-windows-tdep.c.
11089 * configure.tgt: Likewise.
11090
053205cc
SM
110912020-03-16 Simon Marchi <simon.marchi@efficios.com>
11092
11093 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11094 * osabi.c (gdb_osabi_names): Add "Windows".
11095 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11096 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11097 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11098 i386_cygwin_osabi_sniffer.
11099 (_initialize_i386_cygwin_tdep): Register OS ABI
11100 GDB_OSABI_WINDOWS for i386.
11101 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11102 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11103 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11104 for x86-64.
11105 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11106 when the target matches '*-*-mingw*'.
11107
fe4b2ee6
SM
111082020-03-16 Simon Marchi <simon.marchi@efficios.com>
11109
11110 * defs.h (enum gdb_osabi): Move to...
11111 * osabi.h (enum gdb_osabi): ... here.
11112 * gdbarch.sh: Include osabi.h in gdbarch.h.
11113 * gdbarch.h: Re-generate.
11114
cb9b645d
SM
111152020-03-16 Simon Marchi <simon.marchi@efficios.com>
11116
11117 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11118 function.
11119 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11120
3293bbaf
TT
111212020-03-14 Tom Tromey <tom@tromey.com>
11122
11123 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11124 for C++.
11125 (c_type_print_modifier): Likewise. Add "language" parameter.
11126 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11127 (c_type_print_base_1): Update.
11128 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11129 constants.
11130 * type-stack.c (type_stack::insert): Handle tp_atomic and
11131 tp_restrict.
11132 (type_stack::follow_type_instance_flags): Likewise.
11133 (type_stack::follow_types): Likewise. Merge type-following code.
11134 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11135 (space_identifier, cv_with_space_id)
11136 (const_or_volatile_or_space_identifier_noopt)
11137 (const_or_volatile_or_space_identifier): Remove.
11138 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11139 rules.
11140 (ptr_operator, typebase): Update.
11141 (enum token_flag) <FLAG_C>: New constant.
11142 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11143 "_Atomic".
11144 (lex_one_token): Handle FLAG_C.
11145
154151a6
KR
111462020-03-14 Kamil Rytarowski <n54@gmx.com>
11147
11148 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11149 it to the ptrace call.
11150 * m68k-bsd-nat.c (store_registers): Likewise.
11151
bc107784
KR
111522020-03-14 Kamil Rytarowski <n54@gmx.com>
11153
11154 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11155 gdb_byte *.
11156 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11157 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11158 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11159
01a80117
KR
111602020-03-14 Kamil Rytarowski <n54@gmx.com>
11161
11162 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11163 nbsd_nat_target instead of inf_ptrace_target.
11164 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11165 nbsd_nat_target.
11166
f90280ca
KR
111672020-03-14 Kamil Rytarowski <n54@gmx.com>
11168
11169 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11170 register_t.
11171
6def66f1
KR
111722020-03-14 Kamil Rytarowski <n54@gmx.com>
11173
11174 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11175 it to the ptrace call.
11176 * alpha-bsd-nat.c (store_registers): Likewise.
11177
66eaca97
KR
111782020-03-14 Kamil Rytarowski <n54@gmx.com>
11179
11180 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11181 includes.
11182 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11183 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11184 fill_fpregset): Likewise.
11185
4fed520b
KR
111862020-03-14 Kamil Rytarowski <n54@gmx.com>
11187
11188 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11189 nbsd_nat_target instead of inf_ptrace_target.
11190 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11191 nbsd_nat_target.
11192
2190cf06
KR
111932020-03-14 Kamil Rytarowski <n54@gmx.com>
11194
11195 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11196 register_t.
11197
75c56d3d
KR
111982020-03-14 Kamil Rytarowski <n54@gmx.com>
11199
11200 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11201 it to the ptrace call.
11202 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11203 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11204 * arm-nbsd-nat.c (store_register): Likewise.
11205 * arm-nbsd-nat.c (store_regs): Likewise.
11206 * arm-nbsd-nat.c (store_fp_register): Likewise.
11207 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11208
6018d381
KR
112092020-03-14 Kamil Rytarowski <n54@gmx.com>
11210
11211 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11212 nbsd_nat_target instead of inf_ptrace_target.
11213 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11214 nbsd_nat_target.
11215
013f99f0
KR
112162020-03-14 Kamil Rytarowski <n54@gmx.com>
11217
11218 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11219 it to the ptrace call.
11220 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11221
12753073
KR
112222020-03-14 Kamil Rytarowski <n54@gmx.com>
11223
6227b330
KR
11224 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11225 it to the ptrace call.
11226 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11227
112282020-03-14 Kamil Rytarowski <n54@gmx.com>
11229
11230 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11231 gdb_byte *.
12753073
KR
11232 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11233
d5be5fa4
KR
112342020-03-14 Kamil Rytarowski <n54@gmx.com>
11235
11236 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11237 instead of inf_ptrace_target.
11238 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11239 nbsd_nat_target.
11240
8110f842
KR
112412020-03-14 Kamil Rytarowski <n54@gmx.com>
11242
11243 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11244 register_t.
11245
52feded7
KR
112462020-03-14 Kamil Rytarowski <n54@gmx.com>
11247
11248 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11249 register_t.
11250
25567eee
KR
112512020-03-14 Kamil Rytarowski <n54@gmx.com>
11252
11253 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11254 register_t.
11255
426a9c18
TT
112562020-03-13 Tom Tromey <tom@tromey.com>
11257
11258 * value.h (val_print): Don't declare.
11259 * valprint.h (val_print_array_elements)
11260 (val_print_scalar_formatted, generic_val_print): Don't declare.
11261 * valprint.c (generic_val_print_array): Take a struct value.
11262 (generic_val_print_ptr, generic_val_print_memberptr)
11263 (generic_val_print_bool, generic_val_print_int)
11264 (generic_val_print_char, generic_val_print_complex)
11265 (generic_val_print): Remove.
11266 (generic_value_print): Update.
11267 (do_val_print): Remove unused parameters. Don't call
11268 la_val_print.
11269 (val_print): Remove.
11270 (common_val_print): Update. Don't call value_check_printable.
11271 (val_print_scalar_formatted, val_print_array_elements): Remove.
11272 * rust-lang.c (rust_val_print): Remove.
11273 (rust_language_defn): Update.
11274 * p-valprint.c (pascal_val_print): Remove.
11275 (pascal_value_print_inner): Update.
11276 (pascal_object_print_val_fields, pascal_object_print_val):
11277 Remove.
11278 (pascal_object_print_static_field): Update.
11279 * p-lang.h (pascal_val_print): Don't declare.
11280 * p-lang.c (pascal_language_defn): Update.
11281 * opencl-lang.c (opencl_language_defn): Update.
11282 * objc-lang.c (objc_language_defn): Update.
11283 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11284 * m2-lang.h (m2_val_print): Don't declare.
11285 * m2-lang.c (m2_language_defn): Update.
11286 * language.h (struct language_defn) <la_val_print>: Remove.
11287 * language.c (unk_lang_value_print_inner): Rename. Change
11288 argument types.
11289 (unknown_language_defn, auto_language_defn): Update.
11290 * go-valprint.c (go_val_print): Remove.
11291 * go-lang.h (go_val_print): Don't declare.
11292 * go-lang.c (go_language_defn): Update.
11293 * f-valprint.c (f_val_print): Remove.
11294 * f-lang.h (f_value_print): Don't declare.
11295 * f-lang.c (f_language_defn): Update.
11296 * d-valprint.c (d_val_print): Remove.
11297 * d-lang.h (d_value_print): Don't declare.
11298 * d-lang.c (d_language_defn): Update.
11299 * cp-valprint.c (cp_print_value_fields)
11300 (cp_print_value_fields_rtti, cp_print_value): Remove.
11301 (cp_print_static_field): Update.
11302 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11303 (c_val_print_struct, c_val_print_union, c_val_print_int)
11304 (c_val_print_memberptr, c_val_print): Remove.
11305 * c-lang.h (c_val_print_array, cp_print_value_fields)
11306 (cp_print_value_fields_rtti): Don't declare.
11307 * c-lang.c (c_language_defn, cplus_language_defn)
11308 (asm_language_defn, minimal_language_defn): Update.
11309 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11310 (ada_val_print_enum): Take a struct value.
11311 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11312 (ada_val_print): Remove.
11313 (ada_value_print_1): Update.
11314 (printable_val_type): Remove.
11315 * ada-lang.h (ada_val_print): Don't declare.
11316 * ada-lang.c (ada_language_defn): Update.
11317
42331a1e
TT
113182020-03-13 Tom Tromey <tom@tromey.com>
11319
11320 * valprint.c (do_val_print): Update.
11321 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11322 a struct value.
11323 (value_to_value_object_no_release): Declare.
11324 * python/py-value.c (value_to_value_object_no_release): New
11325 function.
11326 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11327 struct value.
11328 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11329 function.
11330 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11331 a struct value.
11332 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11333 Declare.
11334 (gdbscm_apply_val_pretty_printer): Take a struct value.
11335 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11336 value.
11337 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11338 value.
11339 * extension-priv.h (struct extension_language_ops)
11340 <apply_val_pretty_printer>: Take a struct value.
11341 * cp-valprint.c (cp_print_value): Create a struct value.
11342 (cp_print_value): Update.
11343
3a916a97
TT
113442020-03-13 Tom Tromey <tom@tromey.com>
11345
11346 * ada-valprint.c (print_field_values): Call common_val_print.
11347
b59eac37
TT
113482020-03-13 Tom Tromey <tom@tromey.com>
11349
11350 * ada-valprint.c (val_print_packed_array_elements): Remove
11351 bitoffset and val parameters. Call common_val_print.
11352 (ada_val_print_string): Remove offset, address, and original_value
11353 parameters.
11354 (ada_val_print_array): Update.
11355 (ada_value_print_array): New function.
11356 (ada_value_print_1): Call it.
11357
03371129
TT
113582020-03-13 Tom Tromey <tom@tromey.com>
11359
11360 * ada-valprint.c (ada_value_print): Use common_val_print.
11361
2e088f8b
TT
113622020-03-13 Tom Tromey <tom@tromey.com>
11363
11364 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11365
39ef85a8
TT
113662020-03-13 Tom Tromey <tom@tromey.com>
11367
11368 * ada-valprint.c (ada_value_print_num): New function.
11369 (ada_value_print_1): Use it.
11370
b9fa6e07
TT
113712020-03-13 Tom Tromey <tom@tromey.com>
11372
11373 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11374
416595d6
TT
113752020-03-13 Tom Tromey <tom@tromey.com>
11376
11377 * ada-valprint.c (ada_value_print_ptr): New function.
11378 (ada_value_print_1): Use it.
11379
5b5e15ec
TT
113802020-03-13 Tom Tromey <tom@tromey.com>
11381
11382 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11383 call common_val_print.
11384 (ada_val_print_1): Update.
11385 (ada_value_print_1): New function.
11386 (ada_value_print_inner): Rewrite.
11387
fbf54e75
TT
113882020-03-13 Tom Tromey <tom@tromey.com>
11389
11390 * cp-valprint.c (cp_print_value_fields): Update.
11391 (cp_print_value): New function.
11392
64b653ca
TT
113932020-03-13 Tom Tromey <tom@tromey.com>
11394
11395 * m2-valprint.c (m2_value_print_inner): Use
11396 cp_print_value_fields.
11397 * cp-valprint.c (cp_print_value_fields): New function.
11398 * c-valprint.c (c_value_print_struct): New function.
11399 (c_value_print_inner): Use c_value_print_struct.
11400 * c-lang.h (cp_print_value_fields): Declare.
11401
6999f067
TT
114022020-03-13 Tom Tromey <tom@tromey.com>
11403
11404 * c-valprint.c (c_value_print_array): New function.
11405 (c_value_print_inner): Use it.
11406
ce80b8bd
TT
114072020-03-13 Tom Tromey <tom@tromey.com>
11408
11409 * c-valprint.c (c_value_print_memberptr): New function.
11410 (c_value_print_inner): Use it.
11411
2faac269
TT
114122020-03-13 Tom Tromey <tom@tromey.com>
11413
11414 * c-valprint.c (c_value_print_int): New function.
11415 (c_value_print_inner): Use it.
11416
da3e2c29
TT
114172020-03-13 Tom Tromey <tom@tromey.com>
11418
11419 * c-valprint.c (c_value_print_ptr): New function.
11420 (c_value_print_inner): Use it.
11421
50836231
TT
114222020-03-13 Tom Tromey <tom@tromey.com>
11423
11424 * c-valprint.c (c_value_print_inner): Rewrite.
11425
4f412b6e
TT
114262020-03-13 Tom Tromey <tom@tromey.com>
11427
11428 * valprint.c (generic_value_print_complex): New function.
11429 (generic_value_print): Use it.
11430
f5354008
TT
114312020-03-13 Tom Tromey <tom@tromey.com>
11432
11433 * valprint.c (generic_val_print_float): Don't call
11434 val_print_scalar_formatted.
11435 (generic_val_print, generic_value_print): Update.
11436
3eec3b05
TT
114372020-03-13 Tom Tromey <tom@tromey.com>
11438
11439 * valprint.c (generic_value_print_char): New function
11440 (generic_value_print): Use it.
11441
fdddfccb
TT
114422020-03-13 Tom Tromey <tom@tromey.com>
11443
11444 * valprint.c (generic_value_print_int): New function.
11445 (generic_value_print): Use it.
11446
6dde7521
TT
114472020-03-13 Tom Tromey <tom@tromey.com>
11448
11449 * valprint.c (generic_value_print_bool): New function.
11450 (generic_value_print): Use it.
11451
4112d2e6
TT
114522020-03-13 Tom Tromey <tom@tromey.com>
11453
11454 * valprint.c (generic_val_print_func): Simplify.
11455 (generic_val_print, generic_value_print): Update.
11456
65786af6
TT
114572020-03-13 Tom Tromey <tom@tromey.com>
11458
11459 * valprint.c (generic_val_print_flags): Remove.
11460 (generic_val_print, generic_value_print): Update.
11461 (val_print_type_code_flags): Add original_value parameter.
11462
40f3ce18
TT
114632020-03-13 Tom Tromey <tom@tromey.com>
11464
11465 * valprint.c (generic_val_print): Update.
11466 (generic_value_print): Update.
11467 * valprint.c (generic_val_print_enum): Don't call
11468 val_print_scalar_formatted.
11469
2a5b130b
TT
114702020-03-13 Tom Tromey <tom@tromey.com>
11471
11472 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11473 * valprint.c (generic_value_print_ptr): New function.
11474
abc66ce9
TT
114752020-03-13 Tom Tromey <tom@tromey.com>
11476
11477 * valprint.c (generic_value_print): Rewrite.
11478
07a32858
TT
114792020-03-13 Tom Tromey <tom@tromey.com>
11480
11481 * p-valprint.c (pascal_object_print_value_fields)
11482 (pascal_object_print_value): New functions.
11483
64d64d3a
TT
114842020-03-13 Tom Tromey <tom@tromey.com>
11485
11486 * p-valprint.c (pascal_value_print_inner): Rewrite.
11487
6a95a1f5
TT
114882020-03-13 Tom Tromey <tom@tromey.com>
11489
11490 * f-valprint.c (f_value_print_innner): Rewrite.
11491
59fcdac6
TT
114922020-03-13 Tom Tromey <tom@tromey.com>
11493
11494 * m2-valprint.c (m2_print_unbounded_array): New overload.
11495 (m2_print_unbounded_array): Update.
11496 (m2_print_array_contents): Take a struct value.
11497 (m2_value_print_inner): Rewrite.
11498
d133c3e1
TT
114992020-03-13 Tom Tromey <tom@tromey.com>
11500
11501 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11502 (d_value_print_inner): New function.
11503 * d-lang.h (d_value_print_inner): Declare.
11504 * d-lang.c (d_language_defn): Use d_value_print_inner.
11505
23b0f06b
TT
115062020-03-13 Tom Tromey <tom@tromey.com>
11507
11508 * go-valprint.c (go_value_print_inner): New function.
11509 * go-lang.h (go_value_print_inner): Declare.
11510 * go-lang.c (go_language_defn): Use go_value_print_inner.
11511
5f56f7cb
TT
115122020-03-13 Tom Tromey <tom@tromey.com>
11513
11514 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11515 API.
11516 (rust_val_print): Rewrite.
11517 (rust_value_print_inner): New function, from rust_val_print.
11518 (rust_language_defn): Use rust_value_print_inner.
11519
26792ee0
TT
115202020-03-13 Tom Tromey <tom@tromey.com>
11521
11522 * ada-valprint.c (ada_value_print_inner): New function.
11523 * ada-lang.h (ada_value_print_inner): Declare.
11524 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11525
24051bbe
TT
115262020-03-13 Tom Tromey <tom@tromey.com>
11527
11528 * f-valprint.c (f_value_print_innner): New function.
11529 * f-lang.h (f_value_print_innner): Declare.
11530 * f-lang.c (f_language_defn): Use f_value_print_innner.
11531
c0941be6
TT
115322020-03-13 Tom Tromey <tom@tromey.com>
11533
11534 * p-valprint.c (pascal_value_print_inner): New function.
11535 * p-lang.h (pascal_value_print_inner): Declare.
11536 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11537
62c4663d
TT
115382020-03-13 Tom Tromey <tom@tromey.com>
11539
11540 * m2-valprint.c (m2_value_print_inner): New function.
11541 * m2-lang.h (m2_value_print_inner): Declare.
11542 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11543
62182190
TT
115442020-03-13 Tom Tromey <tom@tromey.com>
11545
11546 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11547 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11548 * c-valprint.c (c_value_print_inner): New function.
11549 * c-lang.h (c_value_print_inner): Declare.
11550 * c-lang.c (c_language_defn, cplus_language_defn)
11551 (asm_language_defn, minimal_language_defn): Use
11552 c_value_print_inner.
11553
1e592a8a
TT
115542020-03-13 Tom Tromey <tom@tromey.com>
11555
11556 * p-valprint.c (pascal_object_print_value_fields): Now static.
11557 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11558
7fe471e9
TT
115592020-03-13 Tom Tromey <tom@tromey.com>
11560
11561 * c-valprint.c (c_val_print_array): Simplify.
11562
d121c6ce
TT
115632020-03-13 Tom Tromey <tom@tromey.com>
11564
11565 * valprint.c (value_print_array_elements): New function.
11566 * valprint.h (value_print_array_elements): Declare.
11567
4dba70ee
TT
115682020-03-13 Tom Tromey <tom@tromey.com>
11569
11570 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11571 * mips-tdep.c (mips_print_register): Use
11572 value_print_scalar_formatted.
11573
4f9ae810
TT
115742020-03-13 Tom Tromey <tom@tromey.com>
11575
11576 * valprint.h (value_print_scalar_formatted): Declare.
11577 * valprint.c (value_print_scalar_formatted): New function.
11578
156bfec9
TT
115792020-03-13 Tom Tromey <tom@tromey.com>
11580
11581 * valprint.h (generic_value_print): Declare.
11582 * valprint.c (generic_value_print): New function.
11583
2b4e573d
TT
115842020-03-13 Tom Tromey <tom@tromey.com>
11585
11586 * valprint.c (do_val_print): Call la_value_print_inner, if
11587 available.
11588 * rust-lang.c (rust_language_defn): Update.
11589 * p-lang.c (pascal_language_defn): Update.
11590 * opencl-lang.c (opencl_language_defn): Update.
11591 * objc-lang.c (objc_language_defn): Update.
11592 * m2-lang.c (m2_language_defn): Update.
11593 * language.h (struct language_defn) <la_value_print_inner>: New
11594 member.
11595 * language.c (unknown_language_defn, auto_language_defn): Update.
11596 * go-lang.c (go_language_defn): Update.
11597 * f-lang.c (f_language_defn): Update.
11598 * d-lang.c (d_language_defn): Update.
11599 * c-lang.c (c_language_defn, cplus_language_defn)
11600 (asm_language_defn, minimal_language_defn): Update.
11601 * ada-lang.c (ada_language_defn): Update.
11602
a1f6a07c
TT
116032020-03-13 Tom Tromey <tom@tromey.com>
11604
11605 * c-valprint.c (c_value_print): Use common_val_print.
11606
410cf315
TT
116072020-03-13 Tom Tromey <tom@tromey.com>
11608
11609 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11610
72a45c93
TT
116112020-03-13 Tom Tromey <tom@tromey.com>
11612
11613 * f-valprint.c (f77_print_array_1, f_val_print): Use
11614 common_val_print.
11615
040f66bd
TT
116162020-03-13 Tom Tromey <tom@tromey.com>
11617
11618 * riscv-tdep.c (riscv_print_one_register_info): Use
11619 common_val_print.
11620
a6e05a6c
TT
116212020-03-13 Tom Tromey <tom@tromey.com>
11622
11623 * mi/mi-main.c (output_register): Use common_val_print.
11624
3444c526
TT
116252020-03-13 Tom Tromey <tom@tromey.com>
11626
11627 * infcmd.c (default_print_one_register_info): Use
11628 common_val_print.
11629
c2a44efe
TT
116302020-03-13 Tom Tromey <tom@tromey.com>
11631
11632 * valprint.h (common_val_print_checked): Declare.
11633 * valprint.c (common_val_print_checked): New function.
11634 * stack.c (print_frame_arg): Use common_val_print_checked.
11635
b0c26e99
TT
116362020-03-13 Tom Tromey <tom@tromey.com>
11637
11638 * valprint.c (do_val_print): New function, from val_print.
11639 (val_print): Use do_val_print.
11640 (common_val_print): Use do_val_print.
11641
ce3acbe9
TT
116422020-03-13 Tom Tromey <tom@tromey.com>
11643
11644 * valprint.c (value_print): Use scoped_value_mark.
11645
96c7f873
TV
116462020-03-13 Tom de Vries <tdevries@suse.de>
11647
11648 PR symtab/25646
11649 * psymtab.c (partial_symtab::partial_symtab): Don't set
11650 globals_offset and statics_offset. Push element onto
11651 current_global_psymbols and current_static_psymbols stacks.
11652 (concat): New function.
11653 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11654 element from current_global_psymbols and current_static_psymbols
11655 stacks. Concat popped elements to global_psymbols and
11656 static_symbols.
11657 (add_psymbol_to_list): Use current_global_psymbols and
11658 current_static_psymbols stacks.
11659 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11660 current_static_psymbols fields.
11661
6ba0a321
CB
116622020-03-12 Christian Biesinger <cbiesinger@google.com>
11663
11664 * corelow.c (sniff_core_bfd): Remove.
11665 (class core_target) <m_core_vec>: Remove.
11666 (core_target::core_target): Update.
11667 (core_file_fns): Remove.
11668 (deprecated_add_core_fns): Remove.
11669 (default_core_sniffer): Remove.
11670 (sniff_core_bfd): Remove.
11671 (default_check_format): Remove.
11672 (gdb_check_format): Remove.
11673 (core_target_open): Update.
11674 (core_target::get_core_register_section): Update.
11675 (get_core_registers_cb): Update.
11676 (core_target::fetch_registers): Update.
11677 * gdbcore.h (struct core_fns): Remove.
11678 (deprecated_add_core_fns): Remove.
11679 (default_core_sniffer): Remove.
11680 (default_check_format): Remove.
11681
227031b2
TT
116822020-03-12 Tom Tromey <tom@tromey.com>
11683
11684 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11685 CORE_ADDR.
11686 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11687
53807e9f
TT
116882020-03-12 Tom Tromey <tom@tromey.com>
11689
11690 * remote.c (remote_target::download_tracepoint)
11691 (remote_target::enable_tracepoint)
11692 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11693 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11694 sprintf_vma.
11695
64f25102
TT
116962020-03-12 Tom Tromey <tom@tromey.com>
11697
11698 * symfile-mem.c: Update CORE_ADDR size assert.
11699
272cd5a3
SM
117002020-03-12 Simon Marchi <simon.marchi@efficios.com>
11701
11702 * selftest.m4: Move to gdbsupport/.
11703 * acinclude.m4: Update path to selftest.m4.
11704
74cd3f9d
SM
117052020-03-12 Simon Marchi <simon.marchi@efficios.com>
11706
11707 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11708 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11709 gdbarch-selfselftests.c and selftest-arch.c.
11710 (SUBDIR_UNITTESTS_OBS): Rename to...
11711 (SELFTESTS_OBS): ... this.
11712 (COMMON_SFILES): Remove disasm-selftests.c and
11713 gdbarch-selftests.c.
11714 * configure.ac: Don't add selftest-arch.{c,o} to
11715 CONFIG_{SRCS,OBS}.
11716 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11717 preprocessor conditions.
11718
db6878ac
SM
117192020-03-12 Simon Marchi <simon.marchi@efficios.com>
11720
11721 * configure.ac: Don't source bfd/development.sh.
11722 * selftest.m4: Modify comment.
11723 * configure: Re-generate.
11724
4d696a5c
SM
117252020-03-12 Simon Marchi <simon.marchi@efficios.com>
11726
11727 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11728 not "true" or "false".
11729 * configure: Re-generate.
11730
8dd8e1c7
CB
117312020-03-12 Christian Biesinger <cbiesinger@google.com>
11732
11733 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11734 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11735 renamed to arm_nbsd_supply_gregset.
11736 (fetch_register): Update to call arm_nbsd_supply_gregset.
11737 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11738 (arm_netbsd_nat_target::fetch_registers): Update.
11739 (fetch_elfcore_registers): Removed.
11740 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11741 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11742 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11743 not require NetBSD system headers.
11744 (arm_nbsd_regset): New struct.
11745 (arm_nbsd_iterate_over_regset_sections): New function.
11746 (arm_netbsd_init_abi_common): Updated to call
11747 set_gdbarch_iterate_over_regset_sections.
11748 * arm-nbsd-tdep.h: New file.
11749
dd69bf7a
KB
117502020-03-11 Kevin Buettner <kevinb@redhat.com>
11751
11752 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11753 recursion.
11754
a0761e34
SM
117552020-03-11 Simon Marchi <simon.marchi@efficios.com>
11756
11757 * configure: Re-generate.
11758
e7a82140
TT
117592020-03-11 Tom Tromey <tromey@adacore.com>
11760
11761 * ada-typeprint.c (print_choices): Fix comment.
11762
dcc050c8
AB
117632020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11764
11765 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11766 previous item in the list, when the list has no items.
11767
1c33af77
TV
117682020-03-11 Tom de Vries <tdevries@suse.de>
11769
11770 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11771 PROP_LOCLIST handling code.
11772
8c95582d
AB
117732020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11774
11775 * buildsym-legacy.c (record_line): Pass extra parameter to
11776 record_line.
11777 * buildsym.c (buildsym_compunit::record_line): Take an extra
11778 parameter, reduce duplication in the line table, and record the
11779 is_stmt flag in the line table.
11780 * buildsym.h (buildsym_compunit::record_line): Add extra
11781 parameter.
11782 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11783 non-statement lines.
11784 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11785 this to the symtab builder.
11786 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11787 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11788 through to dwarf_record_line_1.
11789 * infrun.c (process_event_stop_test): When stepping, don't stop at
11790 a non-statement instruction, and only refresh the step info when
11791 we land in the middle of a line's range. Also add an extra
11792 comment.
11793 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11794 field.
11795 * record-btrace.c (btrace_find_line_range): Only record lines
11796 marked as is-statement.
11797 * stack.c (frame_show_address): Show the frame address if we are
11798 in a non-statement sal.
11799 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11800 (maintenance_print_one_line_table): Print a header for the is_stmt
11801 column, and include is_stmt information in the output.
11802 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11803 preference to non-statements.
11804 (find_pcs_for_symtab_line): Prefer is-statement entries.
11805 (find_line_common): Likewise.
11806 * symtab.h (struct linetable_entry): Add is_stmt field.
11807 (struct symtab_and_line): Likewise.
11808 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11809 arranging the line table.
11810
e4003a34
TV
118112020-03-07 Tom de Vries <tdevries@suse.de>
11812
11813 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11814 DIE.
11815
e8932576
TT
118162020-03-07 Tom Tromey <tom@tromey.com>
11817
11818 * valops.c (value_literal_complex): Remove obsolete comment.
11819 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11820 comment.
11821
29734269
SM
118222020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11823
11824 * infrun.h: Forward-declare thread_info.
11825 (set_step_info): Add thread_info parameter, add doc.
11826 * infrun.c (set_step_info): Add thread_info parameter, move doc
11827 to header.
11828 * infrun.c (process_event_stop_test): Pass thread to
11829 set_step_info call.
11830 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11831 set_step_info.
11832 (prepare_one_step): Add thread_info parameter, pass it to
11833 set_step_frame and prepare_one_step (recursive) call.
11834 (step_1): Pass thread to prepare_one_step call.
11835 (step_command_fsm::should_stop): Pass thread to
11836 prepare_one_step.
11837 (until_next_fsm): Pass thread to set_step_frame call.
11838 (finish_command): Pass thread to set_step_info call.
11839
b7d64b29
HD
118402020-03-06 Hannes Domani <ssbssa@yahoo.de>
11841
11842 * windows-tdep.c (windows_solib_create_inferior_hook):
11843 Check if inferior is running.
11844
09f2921c
TV
118452020-03-06 Tom de Vries <tdevries@suse.de>
11846
11847 * NEWS: Fix "the the".
11848 * ctfread.c: Same.
11849
fd760e79
TV
118502020-03-06 Tom de Vries <tdevries@suse.de>
11851
11852 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11853
20ea4a60
AB
118542020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11855
11856 * .dir-locals.el: Add a comment referencing the other copies of
11857 this file.
11858
0afbabf0
JB
118592020-03-05 John Baldwin <jhb@FreeBSD.org>
11860
11861 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11862 psargs.
11863
842806cb
TBA
118642020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11865
11866 * .gitattributes: New file.
11867
be1e3d3e
TT
118682020-03-04 Tom Tromey <tom@tromey.com>
11869
11870 * symmisc.c (print_symbol_bcache_statistics)
11871 (print_objfile_statistics): Update.
11872 * symfile.c (allocate_symtab): Use intern.
11873 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11874 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11875 macro_cache>: Remove.
11876 <string_cache>: New member.
11877 (struct objfile) <intern>: New methods.
11878 * elfread.c (elf_symtab_read): Use intern.
11879 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11880 (dwarf2_compute_name, dwarf2_physname)
11881 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11882 names.
11883 (guess_partial_die_structure_name): Update.
11884 (partial_die_info::fixup): Intern name.
11885 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11886 name.
11887 (dwarf2_name): Intern name. Update.
11888 * buildsym.c (buildsym_compunit::get_macro_table): Use
11889 string_cache.
11890
4e7625fd
TT
118912020-03-04 Tom Tromey <tom@tromey.com>
11892
11893 * jit.c (bfd_open_from_target_memory): Make "target" const.
11894 * corefile.c (gnutarget): Now const.
11895 * gdbcore.h (gnutarget): Now const.
11896
46f9f931
HD
118972020-03-04 Hannes Domani <ssbssa@yahoo.de>
11898
11899 * NEWS: Mention support for WOW64 processes.
11900 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11901 (amd64_windows_segment_register_p): Remove static.
11902 (_initialize_amd64_windows_nat): Update.
11903 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11904 * i386-windows-nat.c (context_offset): Update.
11905 (i386_mappings): Rename and remove static.
11906 (i386_windows_segment_register_p): Remove static.
11907 (_initialize_i386_windows_nat): Update.
11908 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11909 (STATUS_WX86_SINGLE_STEP): New macro.
11910 (EnumProcessModulesEx): New macro.
11911 (Wow64SuspendThread): New macro.
11912 (Wow64GetThreadContext): New macro.
11913 (Wow64SetThreadContext): New macro.
11914 (Wow64GetThreadSelectorEntry): New macro.
11915 (windows_set_context_register_offsets): Add static.
11916 (windows_set_segment_register_p): Likewise.
11917 (windows_add_thread): Adapt for WOW64 processes.
11918 (windows_fetch_one_register): Likewise.
11919 (windows_nat_target::fetch_registers): Likewise.
11920 (windows_store_one_register): Likewise.
11921 (display_selector): Likewise.
11922 (display_selectors): Likewise.
11923 (handle_exception): Likewise.
11924 (windows_continue): Likewise.
11925 (windows_nat_target::resume): Likewise.
11926 (windows_add_all_dlls): Likewise.
11927 (do_initial_windows_stuff): Likewise.
11928 (windows_nat_target::attach): Likewise.
11929 (windows_get_exec_module_filename): Likewise.
11930 (windows_nat_target::create_inferior): Likewise.
11931 (windows_xfer_siginfo): Likewise.
11932 (_initialize_loadable): Initialize Wow64SuspendThread,
11933 Wow64GetThreadContext, Wow64SetThreadContext,
11934 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11935 * windows-nat.h (windows_set_context_register_offsets):
11936 Remove declaration.
11937 (windows_set_segment_register_p): Likewise.
11938 (i386_windows_segment_register_p): Add declaration.
11939 (amd64_windows_segment_register_p): Likewise.
11940
440cf44e
LM
119412020-03-04 Luis Machado <luis.machado@linaro.org>
11942
11943 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11944 in "info registers" for AArch64/ARM.
11945
11946 The change caused "info registers" to not print GPR's.
11947
11948 gdb/ChangeLog:
11949
11950 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11951
11952 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11953 when reg->group is empty and reggroup is not.
11954
1009d92f
TT
119552020-03-03 Tom Tromey <tromey@adacore.com>
11956
11957 * dwarf2/frame.c (struct dwarf2_frame_cache)
11958 <checked_tailcall_bottom, entry_cfa_sp_offset,
11959 entry_cfa_sp_offset_p>: Remove members.
11960 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11961 (dwarf2_frame_prev_register): Don't call
11962 dwarf2_tailcall_sniffer_first.
11963 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11964 * frame-unwind.c (add_unwinder): New fuction.
11965 (frame_unwind_init): Use it. Add tailcall unwinder.
11966
5e5d66b6
AB
119672020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11968 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11969
11970 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11971 value should be printed as true.
11972
584cf46d
HD
119732020-03-03 Hannes Domani <ssbssa@yahoo.de>
11974
11975 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11976 (windows_init_abi): Set and use windows_so_ops.
11977
7b973adc
SDJ
119782020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11979
11980 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11981 when verifying if dealing with a convenience variable.
11982
bb7b70ab
LM
119832020-03-03 Luis Machado <luis.machado@linaro.org>
11984
11985 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11986
9822cb57
SM
119872020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11988
11989 * infrun.c (gdbarch_supports_displaced_stepping): New.
11990 (use_displaced_stepping): Break up conditions in smaller pieces.
11991 Use gdbarch_supports_displaced_stepping.
11992 (displaced_step_prepare_throw): Use
11993 gdbarch_supports_displaced_stepping.
11994
63e163f2
AB
119952020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11996
11997 * NEWS: Mention new behaviour of the history filename.
11998 * top.c (write_history_p): Add comment.
11999 (show_write_history_p): Add header comment, give a different
12000 message when history writing is on, but the history filename is
12001 empty.
12002 (history_filename): Add comment.
12003 (history_filename_empty): New function.
12004 (show_history_filename): Add header comment, give a different
12005 message when the filename is empty.
12006 (init_history): Compare history_filename against nullptr, and only
12007 read history if the filename is not empty.
12008 (set_history_filename): Add header comment, and only make
12009 non-empty filenames absolute.
12010 (init_main): Make the filename argument to 'set history filename'
12011 optional.
12012
81b86b97
CB
120132020-03-02 Christian Biesinger <cbiesinger@google.com>
12014
12015 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
12016 (arm_supply_vfpregset): ...this, and update to use VFP registers.
12017 (fetch_fp_register): Update.
12018 (fetch_fp_regs): Update.
12019 (store_fp_register): Update.
12020 (store_fp_regs): Update.
12021 (arm_netbsd_nat_target::read_description): New function.
12022 (fetch_elfcore_registers): Update.
12023
24ed6739
AB
120242020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
12025
12026 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
12027 general_thread if the stop reply is missing a thread-id.
12028 (remote_target::process_stop_reply): Use the first non-exited
12029 thread if the target didn't pass a thread-id.
12030 * infrun.c (do_target_wait): Move call to
12031 switch_to_inferior_no_thread to ....
12032 (do_target_wait_1): ... here.
12033
a84bb2a0
JT
120342020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
12035
12036 * debuginfod-support.c: Include defs.h first.
12037
658dadf0
TV
120382020-02-28 Tom de Vries <tdevries@suse.de>
12039
12040 * symfile.c (set_initial_language): Use default language for lookup.
12041
4ebe4877
SM
120422020-02-28 Simon Marchi <simon.marchi@efficios.com>
12043
12044 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
12045 reader variable, pass `this` to read_cutu_die_from_dwo.
12046
e5da1139
AM
120472020-02-27 Aaron Merey <amerey@redhat.com>
12048
12049 * source.c (open_source_file): Check for nullptr when computing
12050 srcpath.
12051
317f7127
TT
120522020-02-27 Tom Tromey <tromey@adacore.com>
12053
12054 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
12055 member.
12056 (dwarf2_add_field): Don't update nfields.
12057 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
12058
3104d9ee
AB
120592020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12060
12061 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
12062 abs.
12063
b83470bf
TT
120642020-02-26 Tom Tromey <tom@tromey.com>
12065
12066 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
12067 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
12068 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
12069 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
12070 per_cu_data.
12071
edfe0a0c
TT
120722020-02-26 Tom Tromey <tom@tromey.com>
12073
12074 * dwarf2/index-write.c (psym_index_map): Change type.
12075 (add_address_entry_worker, write_one_signatured_type)
12076 (recursively_count_psymbols, recursively_write_psymbols)
12077 (class debug_names, psyms_seen_size, write_gdbindex)
12078 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
12079
0d79cdc4
AM
120802020-02-26 Aaron Merey <amerey@redhat.com>
12081
12082 * Makefile.in: Handle optional debuginfod support.
12083 * NEWS: Update.
12084 * README: Add --with-debuginfod summary.
12085 * config.in: Regenerate.
12086 * configure: Regenerate.
12087 * configure.ac: Handle optional debuginfod support.
12088 * debuginfod-support.c: debuginfod helper functions.
12089 * debuginfod-support.h: Ditto.
12090 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12091 summary.
12092 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12093 when a dwz file cannot be found.
12094 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12095 debuginfo file cannot be found.
12096 * source.c (open_source_file): Query debuginfod servers when a
12097 source file cannot be found.
12098 * top.c (print_gdb_configuration): Include
12099 --{with,without}-debuginfod in the output.
12100
b65ce565
JG
121012020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12102
12103 * thread.c (thr_try_catch_cmd): Print thread name.
12104
d4c9a4f8
SM
121052020-02-26 Simon Marchi <simon.marchi@efficios.com>
12106
12107 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12108 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12109 dwarf2_fetch_die_type_sect_off): Move to...
12110 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12111 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12112 dwarf2_fetch_die_type_sect_off): ... here.
12113 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12114 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12115 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12116
0dce4280
TV
121172020-02-26 Tom de Vries <tdevries@suse.de>
12118
12119 PR gdb/25603
12120 * symfile.c (set_initial_language): Exit-early if
12121 language_mode == language_mode_manual.
12122
450a1bfc
SM
121232020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12124
12125 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12126 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12127 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12128
9e80cfa1
AB
121292020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12130
12131 * gdbtypes.c (create_array_type_with_stride): Handle negative
12132 array strides.
12133 * valarith.c (value_subscripted_rvalue): Likewise.
12134
09624f1f
LM
121352020-02-25 Luis Machado <luis.machado@linaro.org>
12136
12137 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12138
8cb5117c
SM
121392020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12140
12141 * loc.h (dwarf2_get_die_type): Move to...
12142 * read.h (dwarf2_get_die_type): ... here.
12143 * read.c (dwarf2_get_die_type): Move doc to header.
12144
c325c44e
JB
121452020-02-25 Joel Brobecker <brobecker@adacore.com>
12146
12147 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12148 'gnulib/Makefile.in' to the list.
12149
4ac93832
TT
121502020-02-24 Tom Tromey <tom@tromey.com>
12151
12152 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12153 Remove.
12154 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12155 XOBNEWVEC.
12156
197400e8
TT
121572020-02-24 Tom Tromey <tom@tromey.com>
12158
12159 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12160 New method.
12161 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12162 (dw2_do_instantiate_symtab, dw2_get_file_names)
12163 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12164
76935768
TT
121652020-02-24 Tom Tromey <tom@tromey.com>
12166
12167 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12168 make_scoped_restore.
12169 (dwarf2_psymtab::read_symtab): Don't clear
12170 reading_partial_symbols.
12171
a88ef40d
TV
121722020-02-24 Tom de Vries <tdevries@suse.de>
12173
12174 PR gdb/25592
12175 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12176
c9af6521
TV
121772020-02-24 Tom de Vries <tdevries@suse.de>
12178
12179 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12180 commands layout next/prev/regs.
12181
5707a07a
TT
121822020-02-22 Tom Tromey <tom@tromey.com>
12183
12184 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12185 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12186
3b0fb49e
TT
121872020-02-22 Tom Tromey <tom@tromey.com>
12188
12189 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12190
283be8bf
TT
121912020-02-22 Tom Tromey <tom@tromey.com>
12192
12193 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12194 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12195 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12196 * tui/tui.c (_initialize_tui): Add usage text.
12197
ca793b96
TT
121982020-02-22 Tom Tromey <tom@tromey.com>
12199
12200 * tui/tui-win.c (tui_set_focus_command)
12201 (tui_set_win_height_command): Use error_no_arg.
12202 (_initialize_tui_win): Update help text.
12203 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12204
432b5c40
TT
122052020-02-22 Tom Tromey <tom@tromey.com>
12206
12207 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12208 * tui/tui-disasm.h (struct tui_disasm_window)
12209 <display_start_addr>: Declare.
12210 * tui/tui-source.h (struct tui_source_window)
12211 <display_start_addr>: Declare.
12212 * tui/tui-winsource.h (struct tui_source_window_base)
12213 <show_source_line, display_start_addr>: New methods.
12214 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12215 Rename and move to protected section.
12216 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12217 (tui_source_window_base::do_erase_source_content): Update.
12218 (tui_source_window_base::show_source_line): Now a method.
12219 (tui_source_window_base::show_source_content)
12220 (tui_source_window_base::tui_source_window_base)
12221 (tui_source_window_base::rerender)
12222 (tui_source_window_base::refill)
12223 (tui_source_window_base::do_scroll_horizontal)
12224 (tui_source_window_base::set_is_exec_point_at)
12225 (tui_source_window_base::update_breakpoint_info)
12226 (tui_source_window_base::update_exec_info): Update.
12227 * tui/tui-source.c (tui_source_window::set_contents)
12228 (tui_source_window::showing_source_p)
12229 (tui_source_window::do_scroll_vertical)
12230 (tui_source_window::location_matches_p)
12231 (tui_source_window::line_is_displayed): Update.
12232 (tui_source_window::display_start_addr): New method.
12233 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12234 (tui_disasm_window::do_scroll_vertical)
12235 (tui_disasm_window::location_matches_p): Update.
12236 (tui_disasm_window::display_start_addr): New method.
12237
01b1af32
TT
122382020-02-22 Tom Tromey <tom@tromey.com>
12239
12240 * NEWS: Add entry for gdb.register_window_type.
12241 * tui/tui-layout.h (window_factory): New typedef.
12242 (tui_register_window): Declare.
12243 * tui/tui-layout.c (saved_tui_windows): New global.
12244 (tui_apply_current_layout): Use it.
12245 (tui_register_window): New function.
12246 * python/python.c (do_start_initialization): Call
12247 gdbpy_initialize_tui.
12248 (python_GdbMethods): Add "register_window_type" function.
12249 * python/python-internal.h (gdbpy_register_tui_window)
12250 (gdbpy_initialize_tui): Declare.
12251 * python/py-tui.c: New file.
12252 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12253
fc96d20b
TT
122542020-02-22 Tom Tromey <tom@tromey.com>
12255
12256 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12257
935c78c0
TT
122582020-02-22 Tom Tromey <tom@tromey.com>
12259
12260 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12261 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12262 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12263 (tui_set_win_focus_to): Move from tui-win.c.
12264
0240c8f1
TT
122652020-02-22 Tom Tromey <tom@tromey.com>
12266
12267 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12268 functions.
12269 (known_window_types): New global.
12270 (tui_get_window_by_name): Reimplement.
12271 (initialize_known_windows): New function.
12272 (validate_window_name): Rewrite.
12273 (_initialize_tui_layout): Call initialize_known_windows.
12274
fdb01f0c
TT
122752020-02-22 Tom Tromey <tom@tromey.com>
12276
12277 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12278 Remove constants.
12279 * tui/tui-winsource.h (struct tui_source_window_base)
12280 <tui_source_window_base>: Remove parameter.
12281 * tui/tui-winsource.c
12282 (tui_source_window_base::tui_source_window_base): Remove
12283 parameter.
12284 (tui_source_window_base::refill): Update.
12285 * tui/tui-stack.h (struct tui_locator_window)
12286 <tui_locator_window>: Update.
12287 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12288 Default the constructor.
12289 * tui/tui-regs.h (struct tui_data_item_window)
12290 <tui_data_item_window>: Default the constructor.
12291 (struct tui_data_window) <tui_data_window>: Likewise.
12292 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12293 Default the constructor.
12294 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12295 Default the constructor.
12296 <type>: Remove.
12297 (struct tui_win_info) <tui_win_info>: Default the constructor.
12298 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12299 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12300 Default the constructor.
12301
865a5aec
TT
123022020-02-22 Tom Tromey <tom@tromey.com>
12303
12304 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12305 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12306 * tui/tui-win.c (tui_resize_all): Don't call
12307 tui_delete_invisible_windows.
12308 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12309 done.
12310 (tui_set_layout): Update.
12311 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12312 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12313 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12314
e098d18c
TT
123152020-02-22 Tom Tromey <tom@tromey.com>
12316
12317 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12318 correctly.
12319
eb9c8874
TT
123202020-02-22 Tom Tromey <tom@tromey.com>
12321
12322 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12323
7eed1a8e
TT
123242020-02-22 Tom Tromey <tom@tromey.com>
12325
12326 * tui/tui-winsource.h (struct tui_source_window_iterator)
12327 <inner_iterator>: New etytypedef.
12328 <tui_source_window_iterator>: Take "end" parameter.
12329 <tui_source_window_iterator>: Take iterator.
12330 <operator*, advance>: Update.
12331 <m_iter>: Change type.
12332 <m_end>: New field.
12333 (struct tui_source_windows) <begin, end>: Update.
12334 * tui/tui-layout.c (tui_windows): New global.
12335 (tui_apply_current_layout): Clear tui_windows.
12336 (tui_layout_window::apply): Update tui_windows.
12337 * tui/tui-data.h (tui_windows): Declare.
12338 (all_tui_windows): Now inline function.
12339 (class tui_window_iterator, struct all_tui_windows): Remove.
12340
7c043ba6
TT
123412020-02-22 Tom Tromey <tom@tromey.com>
12342
12343 PR tui/17850:
12344 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12345 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12346 "height" argument.
12347 (class tui_layout_window) <get_sizes>: Likewise.
12348 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12349 argument.
12350 <get_sizes>: Add "height" argument.
12351 <m_vertical>: New field.
12352 * tui/tui-layout.c (tui_layout_split::clone): Update.
12353 (tui_layout_split::get_sizes): Add "height" argument.
12354 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12355 (tui_new_layout_command): Parse "-horizontal".
12356 (_initialize_tui_layout): Update help string.
12357 (tui_layout_split::specification): Add "-horizontal" when needed.
12358 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12359 argument.
12360 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12361 New methods.
12362
6bc56648
TT
123632020-02-22 Tom Tromey <tom@tromey.com>
12364
12365 * tui/tui-layout.h (enum tui_adjust_result): New.
12366 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12367 (class tui_layout_window) <adjust_size>: Return
12368 tui_adjust_result. Rewrite.
12369 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12370 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12371
c22fef7e
TT
123722020-02-22 Tom Tromey <tom@tromey.com>
12373
12374 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12375 parameter and return types.
12376 (class tui_layout_base) <specification>: Add "depth".
12377 (class tui_layout_window) <specification>: Add "depth".
12378 (class tui_layout_split) <specification>: Add "depth".
12379 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12380 and return types.
12381 (tui_new_layout_command): Parse sub-layouts.
12382 (_initialize_tui_layout): Update help string.
12383 (tui_layout_window::specification): Add "depth".
12384 (add_layout_command): Update.
12385
ee325b61
TT
123862020-02-22 Tom Tromey <tom@tromey.com>
12387
12388 * NEWS: Add "tui new-layout" item.
12389 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12390 Add new-layout command to help text.
12391 (validate_window_name): New function.
12392 (tui_new_layout_command): New function.
12393 (_initialize_tui_layout): Register "new-layout".
12394 (tui_layout_window::specification): New method.
12395 (tui_layout_window::specification): New method.
12396 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12397 method.
12398 (class tui_layout_window) <specification>: New method.
12399 (class tui_layout_split) <specification>: New method.
12400
416eb92d
TT
124012020-02-22 Tom Tromey <tom@tromey.com>
12402
12403 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12404 * tui/tui-win.c (window_name_completer): Update comment.
12405 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12406 Declare method.
12407 (class tui_layout_window) <replace_window>: Likewise.
12408 (class tui_layout_split) <replace_window>: Likewise.
12409 (tui_set_layout): Don't declare.
12410 (tui_set_initial_layout): Declare function.
12411 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12412 (asm_regs_layout): New globals.
12413 (tui_current_layout, show_layout): Remove.
12414 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12415 (find_layout, tui_apply_layout): New function.
12416 (layout_completer): Remove.
12417 (tui_next_layout): Reimplement.
12418 (tui_next_layout_command): New function.
12419 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12420 (tui_regs_layout): Reimplement.
12421 (tui_regs_layout_command): New function.
12422 (extract_display_start_addr): Rewrite.
12423 (next_layout, prev_layout): Remove.
12424 (tui_layout_window::replace_window): New method.
12425 (tui_layout_split::replace_window): New method.
12426 (destroy_layout): New function.
12427 (layout_list): New global.
12428 (add_layout_command): New function.
12429 (initialize_layouts): Update.
12430 (tui_layout_command): New function.
12431 (_initialize_tui_layout): Install "layout" commands.
12432 * tui/tui-data.h (enum tui_layout_type): Remove.
12433 (tui_current_layout): Don't declare.
12434
0dbc2fc7
TT
124352020-02-22 Tom Tromey <tom@tromey.com>
12436
12437 * tui/tui-regs.c (tui_reg_layout): Remove.
12438 (tui_reg_command): Use tui_regs_layout.
12439 * tui/tui-layout.h (tui_reg_command): Declare.
12440 * tui/tui-layout.c (tui_reg_command): New function.
12441
5afe342e
TT
124422020-02-22 Tom Tromey <tom@tromey.com>
12443
12444 * tui/tui.c (tui_rl_delete_other_windows): Call
12445 tui_remove_some_windows.
12446 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12447 Declare method.
12448 (class tui_layout_window) <remove_windows>: New method.
12449 (class tui_layout_split) <remove_windows>: Declare.
12450 (tui_remove_some_windows): Declare.
12451 * tui/tui-layout.c (tui_remove_some_windows): New function.
12452 (tui_layout_split::remove_windows): New method.
12453
427326a8
TT
124542020-02-22 Tom Tromey <tom@tromey.com>
12455
12456 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12457 * tui/tui-layout.h (tui_next_layout): Declare.
12458 * tui/tui-layout.c (tui_next_layout): New function.
12459
3fe12b6d
TT
124602020-02-22 Tom Tromey <tom@tromey.com>
12461
12462 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12463 correct coordinates.
12464
59b8b5d2
TT
124652020-02-22 Tom Tromey <tom@tromey.com>
12466
12467 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12468 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12469 DATA_WIN case.
12470
2a3d458b
TT
124712020-02-22 Tom Tromey <tom@tromey.com>
12472
12473 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12474 TUI_DISASM_WIN, not tui_win_list.
12475
3f0cbb04
TT
124762020-02-22 Tom Tromey <tom@tromey.com>
12477
12478 * valprint.c (generic_val_print_enum_1)
12479 (val_print_type_code_flags): Style member names.
12480 * rust-lang.c (val_print_struct, rust_print_enum)
12481 (rust_print_struct_def, rust_internal_print_type): Style member
12482 names.
12483 * p-valprint.c (pascal_object_print_value_fields): Style member
12484 names. Only call fprintf_symbol_filtered for static members.
12485 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12486 * f-valprint.c (f_val_print): Style member names.
12487 * f-typeprint.c (f_type_print_base): Style member names.
12488 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12489 call fprintf_symbol_filtered for static members.
12490 (cp_print_class_member): Style member names.
12491 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12492 member names.
12493 * ada-valprint.c (ada_print_scalar): Style enum names.
12494 (ada_val_print_enum): Likewise.
12495 * ada-typeprint.c (print_enum_type): Style enum names.
12496
d4d947ae
TT
124972020-02-21 Tom Tromey <tom@tromey.com>
12498
12499 * psympriv.h (struct partial_symtab): Update comment.
12500
e94e944b
TT
125012020-02-21 Tom Tromey <tromey@adacore.com>
12502
12503 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12504 type is CORE_ADDR.
12505
1eb73179
TV
125062020-02-21 Tom de Vries <tdevries@suse.de>
12507
12508 PR gdb/25534
12509 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12510 if dependencies[i]->user != NULL.
12511
4f180d53
AT
125122020-02-21 Ali Tamur <tamur@google.com>
12513
12514 * dwarf2/read.c (dwarf2_name): Add null check.
12515
22b6cd70
TT
125162020-02-20 Tom Tromey <tom@tromey.com>
12517
12518 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12519 ">=", in binary search.
12520 (dwarf2_find_containing_comp_unit): New overload.
12521 (run_test): New self-test.
12522 (_initialize_dwarf2_read): Register new test.
12523
bd0cf5a6
NC
125242020-02-20 Nelson Chu <nelson.chu@sifive.com>
12525
12526 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12527 * riscv-tdep.h: Likewise.
12528 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12529 rv32-only CSR.
12530 * features/riscv/64bit-csr.xml: Regenerated.
12531
3f702acd
SDJ
125322020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12533 Tom Tromey <tom@tromey.com>
12534
12535 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12536 of 'fputc_unfiltered'.
12537 (putchar_unfiltered): Call 'fputc_unfiltered'.
12538 (fputc_unfiltered): Call 'fputs_unfiltered'.
12539
d13c7322
AB
125402020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12541
12542 * config.in: Regenerate.
12543 * configure: Regenerate.
12544 * configure.ac: Add --with-python-libdir option.
12545 * main.c: Use WITH_PYTHON_LIBDIR.
12546
869d8950
TT
125472020-02-19 Tom Tromey <tom@tromey.com>
12548
12549 * symtab.c (general_symbol_info::compute_and_set_names): Use
12550 obstack_strndup. Simplify call to symbol_set_demangled_name.
12551
298e9637
SM
125522020-02-19 Simon Marchi <simon.marchi@efficios.com>
12553
12554 * dwarf2/read.c (allocate_signatured_type_table,
12555 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12556 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12557 Remove objfile parameter, update all callers.
12558
08410482
DE
125592020-02-19 Doug Evans <dje@google.com>
12560
12561 PR rust/25535
12562 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12563 rust_enum_variant calculation.
12564
dfdeeca1
TT
125652020-02-19 Tom Tromey <tromey@adacore.com>
12566
12567 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12568
2ef5453b
TT
125692020-02-19 Tom Tromey <tromey@adacore.com>
12570
12571 * ada-lang.c (cache_symbol): Use obstack_strdup.
12572
9f1528a1
AB
125732020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12574
12575 * configure: Regenerate.
12576
d3c22fa8
TT
125772020-02-19 Tom Tromey <tromey@adacore.com>
12578
12579 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12580 NULL check.
12581
bf84f706
MR
125822020-02-19 Maciej W. Rozycki <macro@wdc.com>
12583
12584 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12585
d1c9b20f
AB
125862020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12587
12588 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12589 if GDBSERVER is not defined.
12590 (riscv_tdesc_cache): Likewise, also store const target_desc.
12591 (STATIC_IN_GDB): Define.
12592 (riscv_create_target_description): Update declaration with
12593 STATIC_IN_GDB.
12594 (riscv_lookup_target_description): New function, only define if
12595 GDBSERVER is not defined.
12596 * arch/riscv.h (riscv_create_target_description): Declare only
12597 when GDBSERVER is defined.
12598 (riscv_lookup_target_description): New declaration when GDBSERVER
12599 is not defined.
12600 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12601 (riscv_linux_read_features): ...this, and return
12602 riscv_gdbarch_features instead of target_desc.
12603 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12604 (riscv_linux_read_description): Rename to...
12605 (riscv_linux_read_features): ...this.
12606 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12607 Update to use riscv_gdbarch_features and
12608 riscv_lookup_target_description.
12609 * riscv-tdep.c (riscv_find_default_target_description): Use
12610 riscv_lookup_target_description instead of
12611 riscv_create_target_description.
12612
373d7ac0
SM
126132020-02-18 Simon Marchi <simon.marchi@efficios.com>
12614
12615 * valprint.c (generic_val_print_enum_1): When printing a flag
12616 enum with value 0 and there is no enumerator with value 0, print
12617 just "0" instead of "(unknown: 0x0)".
12618
b29a2df0
SM
126192020-02-18 Simon Marchi <simon.marchi@efficios.com>
12620
12621 * valprint.c (generic_val_print_enum_1): Print unknown part of
12622 flag enum in hex.
12623
6740f0cc
SM
126242020-02-18 Simon Marchi <simon.marchi@efficios.com>
12625
12626 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12627 flag enums to contain duplicate enumerators.
12628 * valprint.c (generic_val_print_enum_1): Update comment.
12629
edd45eb0
SM
126302020-02-18 Simon Marchi <simon.marchi@efficios.com>
12631
12632 * dwarf2/read.c: Include "count-one-bits.h".
12633 (update_enumeration_type_from_children): If an enumerator has
12634 multiple bits set, don't treat the enumeration as a "flag enum".
12635 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12636 of flag enums have 0 or 1 bit set.
12637
6d0cf446
BE
126382020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12639
12640 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12641 conversion.
12642 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12643 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12644 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12645 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12646 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12647
7001c1b7
SM
126482020-02-18 Simon Marchi <simon.marchi@efficios.com>
12649
12650 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12651
fdb61c6c
SM
126522020-02-14 Simon Marchi <simon.marchi@efficios.com>
12653
12654 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12655 displaced_step_closure_up.
12656 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12657 (struct displaced_step_closure_up):
12658 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12659 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12660 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12661 Likewise.
12662 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12663 * gdbarch.c, gdbarch.h: Re-generate.
12664 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12665 displaced_step_closure_up.
12666 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12667 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12668 * infrun.h (displaced_step_closure_up): New type alias.
12669 (struct displaced_step_inferior_state) <step_closure>: Change
12670 type to displaced_step_closure_up.
12671 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12672 displaced_step_closure_up.
12673 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12674
a4a38eb4
TT
126752020-02-14 Tom Tromey <tom@tromey.com>
12676
12677 * minidebug.c (gnu_debug_key): New global.
12678 (find_separate_debug_file_in_section): Use it.
12679
e8217e61
SM
126802020-02-14 Simon Marchi <simon.marchi@efficios.com>
12681
12682 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12683 std::unique_ptr.
12684 * gdbarch.c: Re-generate.
12685 * gdbarch.h: Re-generate.
12686 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12687 change.
12688 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12689 type to std::unique_ptr.
12690 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12691 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12692 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12693 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12694 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12695 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12696 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12697 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12698 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12699
d8d83535
SM
127002020-02-14 Simon Marchi <simon.marchi@efficios.com>
12701
12702 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12703 std::unique_ptr.
12704 (displaced_step_clear): Rename to...
12705 (displaced_step_reset): ... this. Just call displaced->reset ().
12706 (displaced_step_clear_cleanup): Rename to...
12707 (displaced_step_reset_cleanup): ... this.
12708 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12709 (displaced_step_fixup): Likewise.
12710 (resume_1): Likewise.
12711 (handle_inferior_event): Restore child's memory before calling
12712 displaced_step_fixup on the parent.
12713 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12714 to std::unique_ptr.
12715 <step_closure>: Change type to std::unique_ptr.
12716
5f661e03
SM
127172020-02-14 Simon Marchi <simon.marchi@efficios.com>
12718
12719 * arm-tdep.c: Include count-one-bits.h.
12720 (cleanup_block_store_pc): Use count_one_bits.
12721 (cleanup_block_load_pc): Use count_one_bits.
12722 (arm_copy_block_xfer): Use count_one_bits.
12723 (thumb2_copy_block_xfer): Use count_one_bits.
12724 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12725 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12726 (thumb_get_next_pcs_raw): Use count_one_bits.
12727 (arm_get_next_pcs_raw): Use count_one_bits_l.
12728 * arch/arm.c (bitcount): Remove.
12729 * arch/arm.h (bitcount): Remove.
12730
8084e579
TT
127312020-02-14 Tom Tromey <tromey@adacore.com>
12732
12733 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12734 Update.
12735 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12736 * dwarf2/loc.c (call_site_find_chain_1): Return
12737 unique_xmalloc_ptr.
12738 (call_site_find_chain): Likewise.
12739
258bf0ee
RB
127402020-02-14 Richard Biener <rguenther@suse.de>
12741
12742 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12743 on expression with division operators.
12744
f98a8458
AKS
127452020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12746
12747 * MAINTAINERS (Write After Approval): Adding myself.
12748
d1437c0e
TT
127492020-02-12 Tom Tromey <tom@tromey.com>
12750
12751 * event-loop.c (event_data, gdb_event, event_handler_func):
12752 Remove.
12753
3d4560f7
TT
127542020-02-12 Tom Tromey <tom@tromey.com>
12755
12756 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12757 (dwarf2_frame_objfile_data): Add comment.
12758 (find_comp_unit, set_comp_unit): New functions.
12759 (dwarf2_frame_find_fde): Use find_comp_unit.
12760 (dwarf2_build_frame_info): Use set_comp_unit.
12761
21982304
TT
127622020-02-12 Tom Tromey <tom@tromey.com>
12763
12764 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12765 (comp_unit): Don't initialize objfile.
12766 (execute_cfa_program): Add text_offset parameter.
12767 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12768 (dwarf2_frame_cache): Update.
12769 (dwarf2_build_frame_info): Don't set "objfile" member.
12770
4debb237
TT
127712020-02-12 Tom Tromey <tom@tromey.com>
12772
12773 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12774 (decode_frame_entry): Likewise.
12775 (dwarf2_build_frame_info): Update.
12776
0d404d44
TT
127772020-02-12 Tom Tromey <tom@tromey.com>
12778
12779 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12780 (decode_frame_entry_1): Use the comp_unit obstack.
12781
a7a3ae5c
TT
127822020-02-12 Tom Tromey <tom@tromey.com>
12783
12784 * dwarf2/frame.c (struct comp_unit): Add initializers and
12785 constructor.
12786 (dwarf2_frame_objfile_data): Store a comp_unit.
12787 (dwarf2_frame_find_fde): Update.
12788 (dwarf2_build_frame_info): Use "new".
12789
a9d65418
TT
127902020-02-12 Tom Tromey <tom@tromey.com>
12791
12792 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12793 (dwarf2_fde_table): Typedef for std::vector.
12794 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12795 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12796 (decode_frame_entry): Update.
12797 (dwarf2_build_frame_info): Use "new".
12798
7559c217
CB
127992020-02-12 Christian Biesinger <cbiesinger@google.com>
12800
12801 * arm-tdep.c (arm_gdbarch_init): Update.
12802 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12803 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12804 have_neon, is_m>: Change to bool.
12805
aeefc73c
CB
128062020-02-12 Christian Biesinger <cbiesinger@google.com>
12807
12808 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12809
d27b8e5f
TT
128102020-02-12 Tom Tromey <tom@tromey.com>
12811
12812 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12813
cd5900f3
HD
128142020-02-12 Hannes Domani <ssbssa@yahoo.de>
12815
12816 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12817 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12818
f056b22b
TT
128192020-02-11 Tom Tromey <tom@tromey.com>
12820
12821 * psymtab.h: Update comment.
12822
f92ff6b5
TT
128232020-02-11 Tom Tromey <tom@tromey.com>
12824
12825 * gdb_obstack.h (struct auto_obstack): Use
12826 DISABLE_COPY_AND_ASSIGN.
12827
3fd6912b
TT
128282020-02-11 Tom Tromey <tom@tromey.com>
12829
12830 * dwarf2/frame.h (struct objfile): Don't forward declare.
12831
69ed9b74
CB
128322020-02-11 Christian Biesinger <cbiesinger@google.com>
12833
12834 * cris-tdep.c (cris_supply_gregset): Change signature to match
12835 what struct regset expects.
12836 (cris_regset): New struct.
12837 (fetch_core_registers): Remove.
12838 (cris_iterate_over_regset_sections): New function.
12839 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12840 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12841
bda874f6
CB
128422020-02-11 Christian Biesinger <cbiesinger@google.com>
12843
12844 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12845 registers.
12846
754e1564
CB
128472020-02-11 Christian Biesinger <cbiesinger@google.com>
12848
12849 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12850
8ddd8e0e
SM
128512020-02-11 Simon Marchi <simon.marchi@efficios.com>
12852
12853 * configure: Re-generate.
12854
898e7f60
SM
128552020-02-11 Simon Marchi <simon.marchi@efficios.com>
12856
12857 * configure: Re-generate.
12858
58df732b
SM
128592020-02-11 Simon Marchi <simon.marchi@efficios.com>
12860
12861 * acinclude: Update warning.m4 path.
12862 * warning.m4: Move to gdbsupport.
12863
da5bd37e
TT
128642020-02-11 Tom Tromey <tromey@adacore.com>
12865
12866 * remote.c (remote_console_output): Update.
12867 * printcmd.c (printf_command): Update.
12868 * event-loop.c (gdb_wait_for_event): Update.
12869 * linux-nat.c (sigchld_handler): Update.
12870 * remote-sim.c (gdb_os_write_stdout): Update.
12871 (gdb_os_flush_stdout): Update.
12872 (gdb_os_flush_stderr): Update.
12873 (gdb_os_write_stderr): Update.
12874 * exceptions.c (print_exception): Update.
12875 * remote-fileio.c (remote_fileio_func_read): Update.
12876 (remote_fileio_func_write): Update.
12877 * tui/tui.c (tui_enable): Update.
12878 * tui/tui-interp.c (tui_interp::init): Update.
12879 * utils.c (init_page_info): Update.
12880 (putchar_unfiltered, fputc_unfiltered): Update.
12881 (gdb_flush): Update.
12882 (emit_style_escape): Update.
12883 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12884 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12885 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12886 (stderr_file::write): Update.
12887 (stderr_file::puts): Update.
12888 * ui-file.h (ui_file_isatty, ui_file_write)
12889 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12890 (ui_file_puts): Don't declare.
12891
85f0dd3c
TV
128922020-02-10 Tom de Vries <tdevries@suse.de>
12893
12894 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12895 sentinel to char *.
12896
2e927613
TV
128972020-02-09 Tom de Vries <tdevries@suse.de>
12898
12899 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12900 filename if it matches "<artificial>".
12901
6bafc845
HD
129022020-02-09 Hannes Domani <ssbssa@yahoo.de>
12903
12904 * windows-tdep.c (struct enum_value_name): New struct.
12905 (create_enum): New function.
12906 (windows_get_siginfo_type): Create and use enum types.
12907
7928d571
HD
129082020-02-09 Hannes Domani <ssbssa@yahoo.de>
12909
12910 * NEWS: Mention $_siginfo support for Windows.
12911 * windows-nat.c (handle_exception): Set siginfo_er.
12912 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12913 (windows_xfer_siginfo): New function.
12914 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12915 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12916 (init_windows_gdbarch_data): New function.
12917 (get_windows_gdbarch_data): New function.
12918 (windows_get_siginfo_type): New function.
12919 (windows_init_abi): Register windows_get_siginfo_type.
12920 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12921
6751ebae
TT
129222020-02-08 Tom Tromey <tom@tromey.com>
12923
12924 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12925 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12926 <keep>: Declare method.
12927 <m_keep>: Remove member.
12928 <~cutu_reader>: Remove.
12929 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12930 (cutu_reader::cutu_reader): Update.
12931 (cutu_reader::keep): Rename from ~cutu_reader.
12932 (process_psymtab_comp_unit, build_type_psymtabs_1)
12933 (process_skeletonless_type_unit, load_partial_comp_unit)
12934 (load_full_comp_unit, dwarf2_read_addr_index)
12935 (read_signatured_type): Update.
12936
135f5437
TT
129372020-02-08 Tom Tromey <tom@tromey.com>
12938
12939 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12940 "want_partial_unit" parameter.
12941 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12942 Inline check for DW_TAG_partial_unit.
12943 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12944
9f66ff1c
TT
129452020-02-08 Tom Tromey <tom@tromey.com>
12946
12947 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12948 read.c.
12949 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12950 read.c.
12951
c8a7a66f
TT
129522020-02-08 Tom Tromey <tom@tromey.com>
12953
12954 * dwarf2/read.c (read_address): Move to comp-unit.c.
12955 (dwarf2_rnglists_process, dwarf2_ranges_process)
12956 (read_attribute_value, dwarf_decode_lines_1)
12957 (var_decode_location, decode_locdesc): Update.
12958 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12959 read.c. Remove "cu" parameter.
12960 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12961 method.
12962
8266302d
TT
129632020-02-08 Tom Tromey <tom@tromey.com>
12964
12965 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12966 (read_indirect_line_string): Update.
12967 * dwarf2/comp-unit.c (read_offset): Remove.
12968 (read_comp_unit_head): Update.
12969 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12970 method.
12971 (read_offset): Don't declare.
12972
4057dfde
TT
129732020-02-08 Tom Tromey <tom@tromey.com>
12974
12975 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12976 * dwarf2/read.c (struct comp_unit_head): Move to
12977 dwarf2/comp-unit.h.
12978 (enum class rcuh_kind): Move to comp-unit.h.
12979 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12980 (read_comp_unit_head, error_check_comp_unit_head)
12981 (read_and_check_comp_unit_head): Move to comp-unit.c.
12982 (read_offset, dwarf_unit_type_name): Likewise.
12983 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12984 (cutu_reader::cutu_reader, read_call_site_scope)
12985 (find_partial_die, follow_die_offset): Update.
12986 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12987
24aa364d
TT
129882020-02-08 Tom Tromey <tom@tromey.com>
12989
12990 * dwarf2/read.c (read_offset_1): Move to leb.c.
12991 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12992 (dwarf_decode_macro_bytes): Update.
12993 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12994 * dwarf2/leb.h (read_offset): Declare.
12995
2c7d5afc
TT
129962020-02-08 Tom Tromey <tom@tromey.com>
12997
12998 * dwarf2/read.c (dwarf2_section_size): Remove.
12999 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
13000 Update.
13001 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
13002
4075cb26
TT
130032020-02-08 Tom Tromey <tom@tromey.com>
13004
13005 * dwarf2/read.c (read_initial_length): Move to leb.c.
13006 * dwarf2/leb.h (read_initial_length): Declare.
13007 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
13008 handle_nonstd parameter.
13009 * dwarf2/frame.c (read_initial_length): Remove.
13010 (decode_frame_entry_1): Update.
13011
09ba997f
TT
130122020-02-08 Tom Tromey <tom@tromey.com>
13013
13014 * dwarf2/loc.c (dwarf2_find_location_expression)
13015 (dwarf_evaluate_loc_desc::get_tls_address)
13016 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
13017 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
13018 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
13019 (dwarf2_compile_property_to_c)
13020 (dwarf2_loc_desc_get_symbol_read_needs)
13021 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
13022 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
13023 (loclist_describe_location, loclist_tracepoint_var_ref)
13024 (loclist_generate_c_location): Update.
13025 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
13026 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
13027 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
13028 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
13029 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
13030 (dwarf2_per_cu_data::addr_size)
13031 (dwarf2_per_cu_data::ref_addr_size)
13032 (dwarf2_per_cu_data::text_offset)
13033 (dwarf2_per_cu_data::addr_type): Now methods.
13034 (per_cu_header_read_in): Make per_cu "const".
13035 (dwarf2_version): Remove.
13036 (dwarf2_per_cu_data::int_type): Now a method.
13037 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
13038 (set_die_type, read_array_type, read_subrange_index_type)
13039 (read_tag_string_type, read_subrange_type): Update.
13040 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
13041 offset_size, ref_addr_size, text_offset, addr_type, version,
13042 objfile, int_type, addr_sized_int_type>: Declare methods.
13043
96c738c0
TT
130442020-02-08 Tom Tromey <tom@tromey.com>
13045
13046 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
13047 Move earlier.
13048
8fdd972c
TT
130492020-02-08 Tom Tromey <tom@tromey.com>
13050
13051 * dwarf2/read.h (dwarf_line_debug): Declare.
13052 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
13053 * dwarf2/read.c: Move line_header code to new files.
13054 (dwarf_line_debug): No longer static.
13055 * dwarf2/line-header.c: New file.
13056 * dwarf2/line-header.h: New file.
13057
03075812
TT
130582020-02-08 Tom Tromey <tom@tromey.com>
13059
13060 * dwarf2/read.c (struct line_header) <file_full_name,
13061 file_file_name>: Return unique_xmalloc_ptr.
13062 (line_header::file_file_name): Update.
13063 (line_header::file_full_name): Update.
13064 (dw2_get_file_names_reader): Update.
13065 (macro_start_file): Update.
13066
bb822404
TT
130672020-02-08 Tom Tromey <tom@tromey.com>
13068
13069 * dwarf2/read.c (struct line_header) <file_full_name,
13070 file_file_name>: Declare methods.
13071 (dw2_get_file_names_reader): Update.
13072 (file_file_name): Now a method.
13073 (file_full_name): Likewise.
13074 (macro_start_file): Update.
13075
009b64fc
TT
130762020-02-08 Tom Tromey <tom@tromey.com>
13077
13078 * dwarf2/read.c (dwarf_always_disassemble)
13079 (show_dwarf_always_disassemble): Move to loc.c.
13080 (_initialize_dwarf2_read): Move "always-disassemble" registration
13081 to loc.c.
13082 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13083 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13084 static.
13085 (show_dwarf_always_disassemble): Move from read.c.
13086 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13087
5895093f
TT
130882020-02-08 Tom Tromey <tom@tromey.com>
13089
13090 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13091 (create_quick_file_names_table): Return htab_up.
13092 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13093 Update.
13094 * dwarf2/read.h (struct dwarf2_per_objfile)
13095 <quick_file_names_table>: Now htab_up.
13096
b3b32279
TT
130972020-02-08 Tom Tromey <tom@tromey.com>
13098
13099 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13100
1d33d811
TT
131012020-02-08 Tom Tromey <tom@tromey.com>
13102
13103 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13104 Rewrite.
13105 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13106 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13107 (abbrev_table::abbrev_table): No longer inline.
13108 (ABBREV_HASH_SIZE): Remove.
13109 (abbrev_table::m_abbrevs): Now an htab_up.
13110
86de1d91
TT
131112020-02-08 Tom Tromey <tom@tromey.com>
13112
13113 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13114 (cutu_reader): Update.
13115 (build_type_psymtabs_1): Update.
13116 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13117 (abbrev_table::alloc_abbrev): Update.
13118 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13119 (abbrev_table::read): New static method, renamed from
13120 abbrev_table_read_table.
13121 (abbrev_table::alloc_abbrev)
13122 (abbrev_table::add_abbrev): Now private.
13123 (abbrev_table::abbrev_table): Now private.
13124 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13125
0335378b
TT
131262020-02-08 Tom Tromey <tom@tromey.com>
13127
13128 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13129 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13130 htab_up.
13131
48b490f2
TT
131322020-02-08 Tom Tromey <tom@tromey.com>
13133
13134 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13135 htab_up.
13136 (lookup_dwo_unit_in_dwp): Update.
13137 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13138 on obstack.
13139
bc68fb19
TT
131402020-02-08 Tom Tromey <tom@tromey.com>
13141
13142 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13143 obstack.
13144
d15acc42
TT
131452020-02-08 Tom Tromey <tom@tromey.com>
13146
13147 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13148 line_header_hash.
13149 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13150 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13151 Change type to htab_up.
13152
eaa5fa8b
TT
131532020-02-08 Tom Tromey <tom@tromey.com>
13154
13155 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13156 htab_up. Don't allocate on obstack.
13157 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13158 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13159 Change type to htab_up.
13160
b0b6a987
TT
131612020-02-08 Tom Tromey <tom@tromey.com>
13162
13163 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13164 Change type to htab_up.
13165 * dwarf2/read.c (create_signatured_type_table_from_index)
13166 (create_signatured_type_table_from_debug_names)
13167 (create_all_type_units, add_type_unit)
13168 (lookup_dwo_signatured_type, lookup_signatured_type)
13169 (process_skeletonless_type_unit): Update.
13170 (create_debug_type_hash_table, create_debug_types_hash_table):
13171 Change type of types_htab.
13172 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13173 htab_up. Don't allocate on obstack.
13174 (create_cus_hash_table): Change type of cus_htab parameter.
13175 (struct dwo_file) <cus, tus>: Now htab_up.
13176 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13177 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13178 (queue_and_load_all_dwo_tus): Update.
13179 * dwarf2/index-write.c (write_gdbindex): Update.
13180 (write_debug_names): Update.
13181
39856def
TT
131822020-02-08 Tom Tromey <tom@tromey.com>
13183
13184 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13185 dwarf2/read.c. Remove "next" member. Add constructor ntad
13186 destructor.
13187 (struct dwarf2_per_objfile) <queue>: New member.
13188 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13189 dwarf2/read.h.
13190 (dwarf2_queue, dwarf2_queue_tail): Remove.
13191 (class dwarf2_queue_guard): Add parameter to constructor. Use
13192 DISABLE_COPY_AND_ASSIGN.
13193 <m_per_objfile>: New member.
13194 <~dwarf2_queue_guard>: Rewrite.
13195 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13196 Update.
13197 (~dwarf2_queue_item): New.
13198
3e225074
TT
131992020-02-08 Tom Tromey <tom@tromey.com>
13200
13201 * dwarf2/read.c (struct die_info) <has_children>: New member.
13202 (dw2_get_file_names_reader): Remove has_children.
13203 (dw2_get_file_names): Update.
13204 (read_cutu_die_from_dwo): Remove has_children.
13205 (cutu_reader::init_tu_and_read_dwo_dies)
13206 (cutu_reader::cutu_reader): Update.
13207 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13208 Remove has_children.
13209 (build_type_psymtabs_1, process_skeletonless_type_unit)
13210 (load_partial_comp_unit, load_full_comp_unit): Update.
13211 (create_dwo_cu_reader): Remove has_children.
13212 (create_cus_hash_table, read_die_and_children): Update.
13213 (read_full_die_1,read_full_die): Remove has_children.
13214 (read_signatured_type): Update.
13215 (class cutu_reader) <has_children>: Remove.
13216
82ca8957
TT
132172020-02-08 Tom Tromey <tom@tromey.com>
13218
13219 * dwarf2/expr.c: Rename from dwarf2expr.c.
13220 * dwarf2/expr.h: Rename from dwarf2expr.h.
13221 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13222 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13223 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13224 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13225 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13226 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13227 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13228 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13229 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13230 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13231 * dwarf2/loc.c: Rename from dwarf2loc.c.
13232 * dwarf2/loc.h: Rename from dwarf2loc.h.
13233 * dwarf2/read.c: Rename from dwarf2read.c.
13234 * dwarf2/read.h: Rename from dwarf2read.h.
13235 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13236 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13237 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13238 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13239 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13240 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13241 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13242 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13243 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13244 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13245 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13246 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13247 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13248 Update.
13249 * Makefile.in (COMMON_SFILES): Update.
13250 (HFILES_NO_SRCDIR): Update.
13251
9e35d499
TT
132522020-02-08 Tom Tromey <tom@tromey.com>
13253
13254 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13255 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13256
1eba2311
TT
132572020-02-08 Tom Tromey <tom@tromey.com>
13258
13259 * dwarf2read.h (struct die_info): Don't declare.
13260
e41c2da2
TT
132612020-02-08 Tom Tromey <tom@tromey.com>
13262
13263 * dwarf2read.h (die_info_ptr): Remove typedef.
13264
4fc6c0d5
TT
132652020-02-08 Tom Tromey <tom@tromey.com>
13266
13267 * dwarf2read.c (read_call_site_scope)
13268 (handle_data_member_location, dwarf2_add_member_fn)
13269 (mark_common_block_symbol_computed, read_common_block)
13270 (attr_to_dynamic_prop, partial_die_info::read)
13271 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13272 (dwarf2_symbol_mark_computed, set_die_type): Update.
13273 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13274 method.
13275 (attr_form_is_block): Don't declare.
13276 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13277
cd6c91b4
TT
132782020-02-08 Tom Tromey <tom@tromey.com>
13279
13280 * dwarf2read.c (dwarf2_find_base_address, )
13281 (read_call_site_scope, rust_containing_type)
13282 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13283 (handle_data_member_location, dwarf2_add_member_fn)
13284 (get_alignment, read_structure_type, process_structure_scope)
13285 (mark_common_block_symbol_computed, read_common_block)
13286 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13287 (partial_die_info::read, read_attribute_value, new_symbol)
13288 (lookup_die_type, dwarf2_get_ref_die_offset)
13289 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13290 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13291 (dwarf2_symbol_mark_computed): Update.
13292 * dwarf2/attribute.h (struct attribute) <value_as_address,
13293 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13294 methods.
13295 (value_as_address, attr_form_is_section_offset)
13296 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13297 * dwarf2/attribute.c (attribute::value_as_address)
13298 (attribute::form_is_section_offset, attribute::form_is_constant)
13299 (attribute::form_is_ref): Now methods.
13300
162dce55
TT
133012020-02-08 Tom Tromey <tom@tromey.com>
13302
13303 * dwarf2read.c (struct attribute, DW_STRING)
13304 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13305 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13306 (attr_form_is_block, attr_form_is_section_offset)
13307 (attr_form_is_constant, attr_form_is_ref): Move.
13308 * dwarf2/attribute.h: New file.
13309 * dwarf2/attribute.c: New file, from dwarf2read.c.
13310 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13311
3054dd54
TT
133122020-02-08 Tom Tromey <tom@tromey.com>
13313
13314 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13315 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13316 Move.
13317 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13318 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13319 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13320 abbrev.c.
13321 * dwarf2/abbrev.h: New file.
13322 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13323 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13324
96b79293
TT
133252020-02-08 Tom Tromey <tom@tromey.com>
13326
13327 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13328 (dwarf2_section_size, dwarf2_get_section_info)
13329 (create_signatured_type_table_from_debug_names)
13330 (create_addrmap_from_aranges, read_debug_names_from_section)
13331 (get_gdb_index_contents_from_section, read_comp_unit_head)
13332 (error_check_comp_unit_head, read_abbrev_offset)
13333 (create_debug_type_hash_table, init_cu_die_reader)
13334 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13335 (read_comp_units_from_section, create_cus_hash_table)
13336 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13337 (create_dwp_v2_section, dwarf2_rnglists_process)
13338 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13339 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13340 (read_indirect_string_from_dwz, read_addr_index_1)
13341 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13342 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13343 (fill_in_loclist_baton): Update.
13344 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13345 get_containing_section, get_bfd_owner, get_bfd_section,
13346 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13347 (dwarf2_read_section, get_section_name, get_section_file_name)
13348 (get_containing_section, get_section_bfd_owner)
13349 (get_section_bfd_section, get_section_name, get_section_file_name)
13350 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13351 declare.
13352 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13353 (dwarf2_section_info::get_bfd_owner)
13354 (dwarf2_section_info::get_bfd_section)
13355 (dwarf2_section_info::get_name)
13356 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13357 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13358 (dwarf2_section_info::read): Now methods.
13359 * dwarf-index-write.c (class debug_names): Update.
13360
2c86cff9
TT
133612020-02-08 Tom Tromey <tom@tromey.com>
13362
13363 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13364 Move to dwarf2/section.h.
13365 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13366 (get_section_bfd_section, get_section_name)
13367 (get_section_file_name, get_section_id, get_section_flags)
13368 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13369 dwarf2/section.c.
13370 * dwarf2/section.h: New file.
13371 * dwarf2/section.c: New file, from dwarf2read.c.
13372 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13373
f4382c45
TT
133742020-02-08 Tom Tromey <tom@tromey.com>
13375
13376 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13377 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13378 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13379 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13380 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13381 * dwarf2/leb.h: New file, from dwarf2read.c.
13382 * dwarf2/leb.c: New file, from dwarf2read.c.
13383 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13384 Remove.
13385 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13386 (COMMON_SFILES): Add dwarf2/leb.c.
13387
01840b7a
JB
133882020-02-08 Joel Brobecker <brobecker@adacore.com>
13389
13390 GDB 9.1 released.
13391
dfcb27e4
IB
133922020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13393
13394 PR gdb/25190:
aac66a4c
SM
13395 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13396 * gdb/remote.c (remote_console_output): Update.
13397 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13398 (ui_file_puts): ...this.
13399 * gdb/ui-file.h (ui_file_puts): Add declaration.
13400 * gdb/utils.c (emit_style_escape): Update.
13401 (flush_wrap_buffer): Update.
13402 (fputs_maybe_filtered): Update.
13403 (fputs_unfiltered): Add function.
dfcb27e4 13404
faa17681
IB
134052020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13406
aac66a4c
SM
13407 * gdb/event-loop.c (gdb_wait_for_event): Update.
13408 * gdb/printcmd.c (printf_command): Update.
13409 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13410 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13411 (gdb_os_flush_stderr): Update.
13412 * gdb/remote.c (remote_console_output): Update.
13413 * gdb/ui-file.c (gdb_flush): Rename to...
13414 (ui_file_flush): ...this.
13415 (stderr_file::write): Update.
13416 (stderr_file::puts): Update.
13417 * gdb/ui-file.h (gdb_flush): Rename to...
13418 (ui_file_flush): ...this.
13419 * gdb/utils.c (gdb_flush): Add function.
13420 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 13421
5abbbe1d
TT
134222020-02-07 Tom Tromey <tromey@adacore.com>
13423
13424 PR breakpoints/24915:
13425 * source.c (find_and_open_source): Do not check basenames_may_differ.
13426
919adfe8
TT
134272020-02-07 Tom Tromey <tom@tromey.com>
13428
13429 * README: Update gdbserver documentation.
13430 * gdbserver: Move to top level.
13431 * configure.tgt (build_gdbserver): Remove.
13432 * configure.ac: Remove --enable-gdbserver.
13433 * configure: Rebuild.
13434 * Makefile.in (distclean): Don't mention gdbserver.
13435
1d5d29e7
SV
134362020-02-06 Shahab Vahedi <shahab@synopsys.com>
13437
13438 * source-cache.c (source_cache::ensure): Surround
13439 get_plain_source_lines with a try/catch.
13440 (source_cache::get_line_charpos): Get rid of try/catch
13441 and only check for the return value of "ensure".
13442 * tui/tui-source.c (tui_source_window::set_contents):
13443 Simplify "nlines" calculation.
13444
6eb1129c
SV
134452020-02-06 Shahab Vahedi <shahab@synopsys.com>
13446
13447 * MAINTAINERS (Write After Approval): Add myself.
13448
c6a42d11
CB
134492020-02-05 Christian Biesinger <cbiesinger@google.com>
13450
13451 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13452 function call.
13453
c8ecdda6
CB
134542020-02-05 Christian Biesinger <cbiesinger@google.com>
13455
13456 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13457
f6480e70
MR
134582020-02-05 Maciej W. Rozycki <macro@wdc.com>
13459
13460 * nat/riscv-linux-tdesc.h: New file.
13461 * nat/riscv-linux-tdesc.c: New file, taking code from...
13462 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13463 ... here.
13464 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13465 NATDEPFILES.
13466
dcc9fbc6
AB
134672020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13468
13469 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13470 we don't set the fake simulator ptid to the null_ptid.
13471
719546c4
SM
134722020-02-03 Simon Marchi <simon.marchi@efficios.com>
13473
13474 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13475 * gdbthread.h (class thread_info) <resumed>: Likewise.
13476 * infrun.c (resume_1): Likewise.
13477 (proceed): Likewise.
13478 (infrun_thread_stop_requested): Likewise.
13479 (stop_all_threads): Likewise.
13480 (handle_inferior_event): Likewise.
13481 (restart_threads): Likewise.
13482 (finish_step_over): Likewise.
13483 (keep_going_stepped_thread): Likewise.
13484 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13485 (linux_handle_extended_wait): Likewise.
13486 * record-btrace.c (get_thread_current_frame_id): Likewise.
13487 * record-full.c (record_full_wait_1): Likewise.
13488 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13489 * target.c (target_resume): Likewise.
13490 * thread.c (set_running_thread): Likewise.
13491
e409c542
AKS
134922020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13493
13494 * f-valprint.c (f77_print_array_1): Changed datatype of index
13495 variable to LONGEST from int to enable it to contain bound
13496 values correctly.
13497
ee98c0da
MR
134982020-02-03 Maciej W. Rozycki <macro@wdc.com>
13499
13500 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13501 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13502 offsets according to FLEN determined.
13503 (riscv_linux_nat_target::read_description): Determine FLEN
13504 dynamically.
13505 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13506 according to FLEN determined.
13507 (riscv_linux_nat_target::store_registers): Likewise.
13508
aa66aac4
SV
135092020-02-01 Shahab Vahedi <shahab@synopsys.com>
13510
13511 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13512 when reg->group is empty and reggroup is not.
13513
fd9faca8
TT
135142020-01-31 Tom Tromey <tromey@adacore.com>
13515
13516 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13517 Call beneath target's mourn_inferior after unpushing.
13518
42330a68
AB
135192020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13520
13521 PR tui/9765
13522 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13523 have enough lines to fill the screen, still return the lowest
13524 address we found.
13525
7a27a45b
AB
135262020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13527
13528 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13529 '-', '<', and '>' commands.
13530
c47f70e2
PA
135312020-01-29 Pedro Alves <palves@redhat.com>
13532 Sergio Durigan Junior <sergiodj@redhat.com>
13533
13534 * infcmd.c (construct_inferior_arguments): Assert that
13535 'argc' is greater than 0.
13536
5133a315
LM
135372020-01-29 Luis Machado <luis.machado@linaro.org>
13538
13539 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13540 (BRK_INSN_MASK): Define to 0xd4200000.
13541 (aarch64_program_breakpoint_here_p): New function.
13542 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13543 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13544 breakpoint.c.
13545 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13546 breakpoint.h
13547 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13548 call gdbarch_program_breakpoint_here_p.
13549 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13550 default_program_breakpoint_here_p, changed return type to bool and
13551 simplified.
13552 * breakpoint.h (program_breakpoint_here): Moved prototype to
13553 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13554 return type to bool.
13555 * gdbarch.c: Regenerate.
13556 * gdbarch.h: Regenerate.
13557 * gdbarch.sh (program_breakpoint_here_p): New method.
13558 * infrun.c (handle_signal_stop): Call
13559 gdbarch_program_breakpoint_here_p.
13560
168f8c6b
TT
135612020-01-26 Tom Tromey <tom@tromey.com>
13562
13563 * ctfread.c (struct ctf_fp_info): Reindent.
13564 (_initialize_ctfread): Remove.
13565
128a391f
TT
135662020-01-26 Tom Tromey <tom@tromey.com>
13567
13568 * psymtab.c (partial_map_expand_apply)
13569 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13570 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13571 (psym_print_stats, psym_expand_symtabs_for_function)
13572 (psym_map_symbol_filenames, psym_map_matching_symbols)
13573 (psym_expand_symtabs_matching)
13574 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13575 (maintenance_check_psymtabs): Use new methods.
13576 * psympriv.h (struct partial_symtab) <readin_p,
13577 get_compunit_symtab>: New methods.
13578 <readin, compunit_symtab>: Remove members.
13579 (struct standard_psymtab): New.
13580 (struct legacy_psymtab): Derive from standard_psymtab.
13581 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13582 standard_psymtab.
13583 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13584
0494dbec
TT
135852020-01-26 Tom Tromey <tom@tromey.com>
13586
13587 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13588 read_dependencies. Add assert.
13589 * psymtab.c (partial_symtab::read_dependencies): New method.
13590 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13591 method.
13592 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13593 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13594 read_dependencies.
13595 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13596 Add assert.
13597
8566b89b
TT
135982020-01-26 Tom Tromey <tom@tromey.com>
13599
13600 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13601 Call expand_psymtab.
13602 (xcoff_read_symtab): Call expand_psymtab.
13603 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13604 legacy_expand_psymtab.
13605 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13606 method.
13607 (struct legacy_psymtab) <expand_psymtab>: Implement.
13608 <legacy_expand_psymtab>: New member.
13609 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13610 (parse_partial_symbols): Set legacy_expand_psymtab.
13611 (psymtab_to_symtab_1): Change argument order. Call
13612 expand_psymtab.
13613 (new_psymtab): Set legacy_expand_psymtab.
13614 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13615 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13616 expand_psymtab.
13617 (dwarf2_psymtab::expand_psymtab): Rename from
13618 psymtab_to_symtab_1. Call expand_psymtab.
13619 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13620 (dbx_end_psymtab): Likewise.
13621 (dbx_psymtab_to_symtab_1): Change argument order. Call
13622 expand_psymtab.
13623 (dbx_read_symtab): Call expand_psymtab.
13624 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13625 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13626 (ctf_psymtab::read_symtab): Call expand_psymtab.
13627
077cbab2
TT
136282020-01-26 Tom Tromey <tom@tromey.com>
13629
13630 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13631 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13632 messages.
13633 * mdebugread.c (mdebug_read_symtab): Remove prints.
13634 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13635 assert.
13636 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13637
891813be
TT
136382020-01-26 Tom Tromey <tom@tromey.com>
13639
13640 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13641 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13642 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13643 legacy_symtab.
13644 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13645 * psymtab.c (psymtab_to_symtab): Call method.
13646 (dump_psymtab): Update.
13647 * psympriv.h (struct partial_symtab): Add virtual destructor.
13648 <read_symtab>: New method.
13649 (struct legacy_symtab): New.
13650 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13651 (struct pst_map) <pst>: Now a legacy_psymtab.
13652 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13653 (new_psymtab): Use legacy_psymtab.
13654 * dwarf2read.h (struct dwarf2_psymtab): New.
13655 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13656 * dwarf2read.c (dwarf2_create_include_psymtab)
13657 (dwarf2_build_include_psymtabs, create_type_unit_group)
13658 (create_partial_symtab, process_psymtab_comp_unit_reader)
13659 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13660 (set_partial_user): Use dwarf2_psymtab.
13661 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13662 (psymtab_to_symtab_1, process_full_comp_unit)
13663 (process_full_type_unit, dwarf2_ranges_read)
13664 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13665 (dwarf_decode_lines): Use dwarf2_psymtab.
13666 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13667 (add_address_entry_worker, write_one_signatured_type)
13668 (recursively_count_psymbols, recursively_write_psymbols)
13669 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13670 (write_debug_names): Likewise.
13671 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13672 <pst>: Now a legacy_psymtab.
13673 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13674 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13675 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13676 * ctfread.c (struct ctf_psymtab): New.
13677 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13678 ctf_psymtab.
13679 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13680 (create_partial_symtab): Return a ctf_psymtab.
13681 (scan_partial_symbols): Update.
13682
c3693a1d
TT
136832020-01-26 Tom Tromey <tom@tromey.com>
13684
13685 * xcoffread.c (xcoff_start_psymtab): Use new.
13686 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13687 renamed from start_psymtab_common.
13688 * psympriv.h (struct partial_symtab): Add new constructor.
13689 (start_psymtab_common): Don't declare.
13690 * mdebugread.c (parse_partial_symbols): Use new.
13691 * dwarf2read.c (create_partial_symtab): Use new.
13692 * dbxread.c (start_psymtab): Use new.
13693 * ctfread.c (create_partial_symtab): Use new.
13694
32caafd0
TT
136952020-01-26 Tom Tromey <tom@tromey.com>
13696
13697 * xcoffread.c (xcoff_end_psymtab): Use new.
13698 * psymtab.c (start_psymtab_common): Use new.
13699 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13700 Update.
13701 * psympriv.h (struct partial_symtab): Add parameters to
13702 constructor. Don't inline.
13703 (allocate_psymtab): Don't declare.
13704 * mdebugread.c (new_psymtab): Use new.
13705 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13706 * dbxread.c (dbx_end_psymtab): Use new.
13707
abaa2f23
TT
137082020-01-26 Tom Tromey <tom@tromey.com>
13709
13710 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13711 allocate_psymtab. Update documentation.
13712 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13713 allocate_psymtab. Do not use new.
13714 (allocate_psymtab): Use new. Update.
13715
6d94535f
TT
137162020-01-26 Tom Tromey <tom@tromey.com>
13717
13718 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13719 * psymtab.c (psym_print_stats): Update.
13720 * psympriv.h (struct partial_symtab) <readin,
13721 psymtabs_addrmap_supported, anonymous>: Now bool.
13722 * mdebugread.c (psymtab_to_symtab_1): Update.
13723 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13724 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13725 (process_full_comp_unit, process_full_type_unit): Update.
13726 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13727 * ctfread.c (psymtab_to_symtab): Update.
13728
6f17252b
TT
137292020-01-26 Tom Tromey <tom@tromey.com>
13730
13731 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13732 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13733 * psymtab.c (psymtab_storage): Delete psymtabs.
13734 (psymtab_storage::allocate_psymtab): Use new.
13735 (psymtab_storage::discard_psymtab): Use delete.
13736 * psympriv.h (struct partial_symtab): Add constructor and
13737 initializers.
13738
f6f1cebc
TT
137392020-01-26 Tom Tromey <tom@tromey.com>
13740
13741 * machoread.c: Do not include psympriv.h.
13742
e47e48f6
PW
137432020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13744
13745 * NEWS: Mention the new option and the set/show commands.
13746
a2fedca9
PW
137472020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13748
13749 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13750 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13751 (validate_exec_file): New variables, enums, functions.
13752 (exec_file_locate_attach, print_section_info): Style the filenames.
13753 (_initialize_exec): Install show_exec_file_mismatch_command and
13754 set_exec_file_mismatch_command.
13755 * gdbcore.h (validate_exec_file): Declare.
13756 * infcmd.c (attach_command): Call validate_exec_file.
13757 * remote.c ( remote_target::remote_add_inferior): Likewise.
13758
7ffa82e1
AB
137592020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13760
13761 * frame.c (find_frame_sal): Move call to get_next_frame into more
13762 inner scope.
13763 * inline-frame.c (inilne_state) <inline_state>: Update argument
13764 types.
13765 (inilne_state) <skipped_symbol>: Rename to...
13766 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13767 (skip_inline_frames): Build vector of skipped symbols and use this
13768 to reate the inline_state.
13769 (inline_skipped_symbol): Add a comment and some assertions, fetch
13770 skipped symbol from the list.
13771
3d92a3e3
AB
137722020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13773
13774 * buildsym.c (lte_is_less_than): Delete.
13775 (buildsym_compunit::end_symtab_with_blockvector): Create local
13776 lambda function to sort line table entries, and use
13777 std::stable_sort instead of std::sort.
13778 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13779 markers when looking for a previous line.
13780
94a72be7
AB
137812020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13782
13783 * dwarf2read.c (lnp_state_machine::record_line): Include
13784 end_sequence parameter in debug print out. Record the line if we
13785 are at an end_sequence marker even if it's not the start of a
13786 statement.
13787 * symmisc.c (maintenance_print_one_line_table): Print end of
13788 sequence markers with 'END' not '0'.
13789
53af73bf
PA
137902020-01-24 Pedro Alves <palves@redhat.com>
13791
13792 PR gdb/25410
13793 * thread.c (scoped_restore_current_thread::restore): Use
13794 switch_to_inferior_no_thread.
13795 * exec.c: Include "progspace-and-thread.h".
13796 (add_target_sections, remove_target_sections):
13797 scoped_restore_current_pspace_and_thread instead of
13798 scoped_restore_current_thread.
13799 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13800 and aspace to the inferior before calling clone_program_space.
13801 Remove stale comment.
13802
3050c6f4
CB
138032020-01-24 Christian Biesinger <cbiesinger@google.com>
13804
13805 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13806 (arm_netbsd_nat_target::fetch_registers): ...this.
13807 (arm_nbsd_nat_target::store_registers): Rename to...
13808 (arm_netbsd_nat_target::store_registers): ...this.
13809
73685c7e
CB
138102020-01-24 Christian Biesinger <cbiesinger@google.com>
13811
13812 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13813 register_t.
13814
89203d40
CB
138152020-01-24 Christian Biesinger <cbiesinger@google.com>
13816
13817 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13818 Update comment.
13819 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13820 Likewise.
13821 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13822 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13823 the correct replacement (iterate_over_regset_sections).
13824 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13825 Update comment.
13826
1ba1ac88
AB
138272020-01-24 Graham Markall <graham.markall@embecosm.com>
13828
13829 PR gdb/23718
13830 * gdb/python/python.c (execute_gdb_command): Call
13831 async_enable_stdin in catch block.
13832
f3364a6d
AB
138332020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13834
13835 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13836 SWITCH_THRU_ALL_UIS.
13837
733d0a67
AB
138382020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13839
13840 PR tui/9765
13841 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13842 comment, add extra parameter, and update to store previous symbol
13843 when appropriate.
13844 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13845 add extra parameter.
13846 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13847 remove unneeded parameter, add try/catch around gdb_print_insn,
13848 rewrite to add items to asm_lines vector.
13849 (tui_find_backward_disassembly_start_address): New function.
13850 (tui_find_disassembly_address): Updated throughout.
13851 (tui_disasm_window::set_contents): Update for changes to
13852 tui_disassemble.
13853 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13854 number of lines to scroll.
13855
b3b3bada
SM
138562020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13857
13858 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13859 (SECT_OFF_DATA): Likewise.
13860 (SECT_OFF_RODATA): Likewise.
13861 (SECT_OFF_TEXT): Likewise.
13862 (SECT_OFF_BSS): Likewise.
13863 (struct objfile) <text_section_offset, data_section_offset>: New
13864 methods.
13865 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13866 objfile::text_section_offset.
13867 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13868 * coffread.c (coff_symtab_read): Likewise.
13869 (enter_linenos): Likewise.
13870 (process_coff_symbol): Likewise.
13871 * ctfread.c (get_objfile_text_range): Likewise.
13872 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13873 Use objfile::data_section_offset.
13874 * dwarf2-frame.c (execute_cfa_program): Use
13875 objfile::text_section_offset.
13876 (dwarf2_frame_find_fde): Likewise.
13877 * dwarf2read.c (create_addrmap_from_index): Likewise.
13878 (create_addrmap_from_aranges): Likewise.
13879 (dw2_find_pc_sect_compunit_symtab): Likewise.
13880 (process_psymtab_comp_unit_reader): Likewise.
13881 (add_partial_symbol): Likewise.
13882 (add_partial_subprogram): Likewise.
13883 (process_full_comp_unit): Likewise.
13884 (read_file_scope): Likewise.
13885 (read_func_scope): Likewise.
13886 (read_lexical_block_scope): Likewise.
13887 (read_call_site_scope): Likewise.
13888 (dwarf2_rnglists_process): Likewise.
13889 (dwarf2_ranges_process): Likewise.
13890 (dwarf2_ranges_read): Likewise.
13891 (dwarf_decode_lines_1): Likewise.
13892 (new_symbol): Likewise.
13893 (dwarf2_fetch_die_loc_sect_off): Likewise.
13894 (dwarf2_per_cu_text_offset): Likewise.
13895 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13896 * hppa-tdep.c (read_unwind_info): Likewise.
13897 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13898 * psympriv.h (struct partial_symtab): Likewise.
13899 * psymtab.c (find_pc_sect_psymtab): Likewise.
13900 * solib-svr4.c (enable_break): Likewise.
13901 * stap-probe.c (relocate_address): Use
13902 objfile::data_section_offset.
13903 * xcoffread.c (enter_line_range): Use
13904 objfile::text_section_offset.
13905 (read_xcoff_symtab): Likewise.
13906
ab53f382
SM
139072020-01-23 Simon Marchi <simon.marchi@efficios.com>
13908
13909 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13910 declaration to narrower scopes.
13911
e7eee665
SM
139122020-01-23 Simon Marchi <simon.marchi@efficios.com>
13913
13914 * darwin-nat.h (struct darwin_exception_msg, enum
13915 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13916 Move up.
13917 (class darwin_nat_target) <wait_1, check_new_threads,
13918 decode_exception_message, decode_message, stop_inferior,
13919 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13920 * darwin-nat.c (darwin_check_new_threads): Rename to...
13921 (darwin_nat_target::check_new_threads): ... this.
13922 (darwin_suspend_inferior_it): Remove.
13923 (darwin_decode_exception_message): Rename to...
13924 (darwin_nat_target::decode_exception_message): ... this.
13925 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13926 (darwin_decode_message): Rename to...
13927 (darwin_nat_target::decode_message): ... this.
13928 (cancel_breakpoint): Rename to...
13929 (darwin_nat_target::cancel_breakpoint): ... this.
13930 (darwin_wait): Rename to...
13931 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13932 instead of iterate_over_inferiors.
13933 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13934 (darwin_stop_inferior): Rename to...
13935 (darwin_nat_target::stop_inferior): ... this.
13936 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13937 (darwin_init_thread_list): Rename to...
13938 (darwin_nat_target::init_thread_list): ... this.
13939 (darwin_ptrace_him): Rename to...
13940 (darwin_nat_target::ptrace_him): ... this.
13941 (darwin_nat_target::create_inferior): Pass lambda function to
13942 fork_inferior.
13943 (darwin_nat_target::detach): Call stop_inferior instead of
13944 darwin_stop_inferior.
13945 * fork-inferior.h (fork_inferior): Change init_trace_fun
13946 parameter to gdb::function_view.
13947 * fork-inferior.c (fork_inferior): Likewise.
13948
c162ed3e
HD
139492020-01-23 Hannes Domani <ssbssa@yahoo.de>
13950
13951 * i386-cygwin-tdep.c (core_process_module_section): Update.
13952 * windows-nat.c (struct lm_info_windows): Add text_offset.
13953 (windows_xfer_shared_libraries): Update.
13954 * windows-tdep.c (windows_xfer_shared_library):
13955 Add text_offset_cached argument.
13956 * windows-tdep.h (windows_xfer_shared_library): Update.
13957
a1237872
SM
139582020-01-21 Simon Marchi <simon.marchi@efficios.com>
13959
13960 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13961
b3ee6dd9
SM
139622020-01-21 Simon Marchi <simon.marchi@efficios.com>
13963
13964 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13965 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13966 replace with range-based for.
13967 (gdbsim_interrupt_inferior): Remove.
13968 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13969 with a range-based for. Inline code from
13970 gdbsim_interrupt_inferior.
13971
f9fac3c8
SM
139722020-01-21 Simon Marchi <simon.marchi@efficios.com>
13973
13974 * infrun.c (proceed): Fix indentation.
13975
f6474de9
TT
139762020-01-21 Tom Tromey <tromey@adacore.com>
13977
13978 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13979 * python/python.c (python_extension_ops): Update.
13980 (gdbpy_colorize): New function.
13981 * python/lib/gdb/__init__.py (colorize): New function.
13982 * extension.h (ext_lang_colorize): Declare.
13983 * extension.c (ext_lang_colorize): New function.
13984 * extension-priv.h (struct extension_language_ops) <colorize>: New
13985 member.
13986 * cli/cli-style.c (_initialize_cli_style): Update help text.
13987
f0c702d4
LM
139882020-01-21 Luis Machado <luis.machado@linaro.org>
13989
13990 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13991 <cond>: Change type to bool.
13992 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13993 (aarch64_displaced_step_cb): Likewise.
13994 (aarch64_displaced_step_tb): Likewise.
13995
1ab139e5
LM
139962020-01-21 Luis Machado <luis.machado@linaro.org>
13997
13998 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13999 output.
14000
0c271889
LM
140012020-01-21 Luis Machado <luis.machado@linaro.org>
14002
14003 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
14004 <pc_adjust>: Adjust the documentation.
14005 (aarch64_displaced_step_fixup): Check if PC really moved before
14006 adjusting it.
14007
4d89c1c7
TT
140082020-01-19 Tom Tromey <tom@tromey.com>
14009
14010 * disasm.c (~gdb_disassembler): New destructor.
14011 (gdb_buffered_insn_length): Call disassemble_free_target.
14012 * disasm.h (class gdb_disassembler): Declare destructor. Use
14013 DISABLE_COPY_AND_ASSIGN.
14014
c0ab21c2
TT
140152020-01-19 Tom Tromey <tom@tromey.com>
14016
14017 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
14018 (die_reader_func_ftype): Remove.
14019 (cutu_reader): New class.
14020 (dw2_get_file_names_reader): Remove "data" parameter.
14021 (dw2_get_file_names): Use cutu_reader.
14022 (create_debug_type_hash_table): Update.
14023 (read_cutu_die_from_dwo): Update comment.
14024 (lookup_dwo_unit): Add dwo_name parameter.
14025 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
14026 die_reader_func_ftype and data parameters.
14027 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
14028 Remove die_reader_func_ftype and data parameters.
14029 (~cutu_reader): New; from init_cutu_and_read_dies.
14030 (cutu_reader::cutu_reader): Rename from
14031 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
14032 and data parameters.
14033 (init_cutu_and_read_dies_simple): Remove.
14034 (struct process_psymtab_comp_unit_data): Remove.
14035 (process_psymtab_comp_unit_reader): Remove data parameter; add
14036 want_partial_unit and pretend_language parameters.
14037 (process_psymtab_comp_unit): Use cutu_reader.
14038 (build_type_psymtabs_reader): Remove data parameter.
14039 (build_type_psymtabs_1): Use cutu_reader.
14040 (process_skeletonless_type_unit): Likewise.
14041 (load_partial_comp_unit_reader): Remove.
14042 (load_partial_comp_unit): Use cutu_reader.
14043 (load_full_comp_unit_reader): Remove.
14044 (load_full_comp_unit): Use cutu_reader.
14045 (struct create_dwo_cu_data): Remove.
14046 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
14047 dwo_unit parameters.
14048 (create_cus_hash_table): Use cutu_reader.
14049 (struct dwarf2_read_addr_index_data): Remove.
14050 (dwarf2_read_addr_index_reader): Remove.
14051 (dwarf2_read_addr_index): Use cutu_reader.
14052 (read_signatured_type_reader): Remove.
14053 (read_signatured_type): Use cutu_reader.
14054
45bbae5c
TT
140552020-01-19 Tom Tromey <tom@tromey.com>
14056
14057 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
14058 * tui/tui-wingeneral.h (class tui_suppress_output): New.
14059 (tui_wrefresh): Declare.
14060 * tui/tui-wingeneral.c (suppress_output): New global.
14061 (tui_suppress_output, ~tui_suppress_output): New constructor and
14062 destructor.
14063 (tui_wrefresh): New function.
14064 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
14065 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
14066 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
14067 method.
14068 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
14069 tui_wrefresh.
14070 (tui_data_window::no_refresh): New method.
14071 (tui_data_item_window::refresh_window): Call tui_wrefresh.
14072 (tui_reg_command): Use tui_suppress_output
14073 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
14074 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
14075 method.
14076 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
14077
4f13c1c0
TT
140782020-01-19 Tom Tromey <tom@tromey.com>
14079
14080 * tui/tui-winsource.c (tui_update_source_windows_with_line):
14081 Handle case where symtab is null.
14082
fa47e446
SM
140832020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14084
14085 * linux-fork.c (one_fork_p): Simplify.
14086
26f42329
SM
140872020-01-17 Simon Marchi <simon.marchi@efficios.com>
14088
14089 * top.c (struct qt_args): Remove.
14090 (kill_or_detach): Change return type to void, replace `void *`
14091 parameter with a proper one.
14092 (print_inferior_quit_action): Likewise.
14093 (quit_confirm): Use range-based for loop to iterate over inferiors.
14094 (quit_force): Likewise.
14095
a9ac81b1
SM
140962020-01-17 Simon Marchi <simon.marchi@efficios.com>
14097
14098 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14099 `void *` parameter with proper parameters.
14100 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14101 (print_one_inferior): Change return type to void, replace `void *`
14102 parameter with proper parameters.
14103 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14104 inferiors.
14105 (get_other_inferior): Remove.
14106 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14107 inferiors.
14108
788eca49
SM
141092020-01-17 Simon Marchi <simon.marchi@efficios.com>
14110
14111 * mi/mi-interp.c (report_initial_inferior): Remove.
14112 (mi_interp::init): Use range-based for to iterate over inferiors.
14113
d9bc85b6
SM
141142020-01-17 Simon Marchi <simon.marchi@efficios.com>
14115
14116 * python/py-inferior.c (build_inferior_list): Remove.
14117 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14118
40c94099
CB
141192020-01-16 Christian Biesinger <cbiesinger@google.com>
14120
14121 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14122 (btrace_stitch_trace): Likewise.
14123 * charset.c (intermediate_encoding): Likewise (vaild).
14124 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14125 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14126 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14127
e0cdfe3c
HD
141282020-01-16 Hannes Domani <ssbssa@yahoo.de>
14129
14130 * windows-tdep.c (windows_get_tlb_type):
14131 Add rtl_user_process_parameters type.
14132
790f1718 141332020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 14134 Norbert Lange <nolange79@gmail.com>
790f1718
PA
14135
14136 PR build/24805
14137 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14138 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14139 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14140 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14141 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14142 (ps_plog): Redeclare exported functions with default visibility.
14143
3112ed97
NA
141442020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14145
14146 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14147 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14148
8dc3273e
SM
141492020-01-15 Simon Marchi <simon.marchi@efficios.com>
14150
14151 * infcmd.c (post_create_inferior): Use get_thread_regcache
14152 instead of get_current_regcache.
14153
ff47f4f0
TT
141542020-01-14 Tom Tromey <tom@tromey.com>
14155
14156 PR symtab/12535:
14157 * python/python.c (gdbpy_decode_line): Treat empty string the same
14158 as no argument.
14159
975f45b7
TT
141602020-01-14 Tom Tromey <tom@tromey.com>
14161
14162 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14163
25e57356
TT
141642020-01-14 Tom Tromey <tom@tromey.com>
14165
14166 * nat/linux-btrace.c: Don't include <config.h>.
14167 * nat/linux-ptrace.c: Don't include <config.h>.
14168 * nat/x86-linux-dregs.c: Don't include <config.h>.
14169
05ea2a05
TT
141702020-01-14 Tom Tromey <tom@tromey.com>
14171
14172 * configure: Rebuild.
14173 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14174
01027315
TT
141752020-01-14 Tom Tromey <tom@tromey.com>
14176
14177 * nat/x86-linux-dregs.c: Include configh.h.
14178 * nat/linux-ptrace.c: Include configh.h.
14179 * nat/linux-btrace.c: Include configh.h.
14180 * defs.h: Include config.h, bfd.h.
14181 * configure.ac: Don't source common.host.
14182 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14183 * configure: Rebuild.
14184 * acinclude.m4: Update path.
14185 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14186 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14187 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14188 (CLIBS): Add LIBSUPPORT.
14189 (CDEPS): Likewise.
14190 (COMMON_SFILES): Remove gdbsupport files.
14191 (HFILES_NO_SRCDIR): Likewise.
14192 (stamp-version): Update path to create-version.sh.
14193 (ALLDEPFILES): Remove gdbsupport files.
14194
b2ceabe8
TT
141952020-01-14 Tom Tromey <tom@tromey.com>
14196
14197 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14198 USE_WIN32API when needed.
14199 * configure.ac (USE_WIN32API): Don't define.
14200 (WIN32LIBS): Use WIN32APILIBS.
14201 * configure: Rebuild.
14202
25c51f71
TT
142032020-01-14 Tom Tromey <tom@tromey.com>
14204
14205 * configure: Rebuild.
14206 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14207
717c684d
BE
142082020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14209
14210 * skip.c (skip_function_command): Make skip w/o arguments use the
14211 name of the inlined function if pc is inside any inlined function.
14212
7da6a5b9
LM
142132020-01-14 Luis Machado <luis.machado@linaro.org>
14214
14215 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14216 * infrun.c (resume_1): Likewise.
14217 (handle_inferior_event): Remove stale comment.
14218 * linux-nat.c (linux_nat_target::resume): Update comments.
14219 (save_stop_reason): Likewise.
14220 (linux_nat_filter_event): Likewise.
14221 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14222
44e4c775
AB
142232020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14224
14225 * elfread.c (record_minimal_symbol): Set section index to 0 for
14226 non-allocatable sections.
14227
18a8505e
AT
14228
142292020-01-13 Ali Tamur <tamur@google.com>
14230
14231 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14232 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14233 to gdb::optional. Update comments.
14234 (dwo_file): Update comments.
14235 (read_attribute): Update API to take an additional out parameter,
14236 need_reprocess. This is used to mark attributes that need other
14237 attributes (e.g. str_offsets_base) for correct computation which may not
14238 have been read yet.
14239 (read_attribute_reprocess): New function declaration.
14240 (read_addr_index): Likewise.
14241 (read_dwo_str_index): Likewise.
14242 (read_stub_str_index): Likewise.
14243 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14244 (lookup_addr_base): New function definition.
14245 (lookup_ranges_base): Likewise.
14246 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14247 lookup_ranges_base.
14248 (init_cutu_and_read_dies): Update comments.
14249 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14250 unit. This is used to inherit parent's str_offsets_base and addr_base.
14251 Update comments.
14252 (init_cutu_and_read_dies_simple): Reflect API changes.
14253 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14254 (create_cus_hash_table): Change API to take parent compile unit.
14255 Reflect API changes.
14256 (open_and_init_dwo_file): Reflect API changes.
14257 (dwarf2_get_pc_bounds): Update comments.
14258 (dwarf2_record_block_ranges): Likewise.
14259 (read_full_die_1): Change implementation to reprocess attributes that
14260 need str_offsets_base and addr_base.
14261 (partial_die_info::read): Likewise.
14262 (read_attribute_reprocess): New function definition.
14263 (read_attribute_value): Change API to take an additional out parameter,
14264 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14265 when a non-dwo compile unit has index based attributes.
14266 (read_attribute): Reflect API changes.
14267 (read_addr_index_1): Reflect API changes. Update comments.
14268 (dwarf2_read_addr_index_data): Reflect API changes.
14269 (dwarf2_read_addr_index): Likewise.
14270 (read_str_index): Change API and implementation. This becomes a helper
14271 to be used by the new string index related methods. Update error
14272 message and comments.
14273 (read_dwo_str_index): New function definition.
14274 (read_stub_str_index): Likewise.
14275 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14276 * symfile.h (dwarf2_debug_sections): Likewise.
14277 * xcoffread.c (dwarf2_debug_sections): Likewise.
14278
0cac9354
SM
142792020-01-13 Simon Marchi <simon.marchi@efficios.com>
14280
14281 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14282 core_reg_sect type to gdb_byte *.
14283 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14284 * cris-tdep.c (fetch_core_registers): Likewise.
14285 * corelow.c (core_target::get_core_register_section): Change
14286 type of `contents` to gdb::byte_vector.
14287
9a6d629c
AB
142882020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14289
14290 * tui/tui-wingeneral.c (box_win): Position the title in the center
14291 of the border.
14292
d8b2f9e3
SM
142932020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14294
14295 * corelow.c (core_target::get_core_register_section): Use
14296 std::vector instead of alloca.
14297
bb564c58
SM
142982020-01-13 Simon Marchi <simon.marchi@efficios.com>
14299
14300 * warning.m4: Add -Wmissing-declarations to build_warnings.
14301 * configure: Re-generate.
14302
6b366111
SM
143032020-01-13 Simon Marchi <simon.marchi@efficios.com>
14304
14305 * python/python.c (init__gdb_module): Add declaration.
14306
6c265988
SM
143072020-01-13 Simon Marchi <simon.marchi@efficios.com>
14308
14309 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14310 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14311 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14312 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14313 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14314 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14315 * ada-exp.y (_initialize_ada_exp): Add declaration.
14316 * ada-lang.c (_initialize_ada_language): Add declaration.
14317 * ada-tasks.c (_initialize_tasks): Add declaration.
14318 * agent.c (_initialize_agent): Add declaration.
14319 * aix-thread.c (_initialize_aix_thread): Add declaration.
14320 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14321 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14322 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14323 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14324 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14325 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14326 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14327 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14328 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14329 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14330 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14331 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14332 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14333 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14334 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14335 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14336 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14337 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14338 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14339 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14340 * annotate.c (_initialize_annotate): Add declaration.
14341 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14342 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14343 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14344 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14345 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14346 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14347 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14348 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14349 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14350 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14351 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14352 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14353 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14354 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14355 * auto-load.c (_initialize_auto_load): Add declaration.
14356 * auxv.c (_initialize_auxv): Add declaration.
14357 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14358 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14359 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14360 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14361 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14362 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14363 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14364 * breakpoint.c (_initialize_breakpoint): Add declaration.
14365 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14366 * btrace.c (_initialize_btrace): Add declaration.
14367 * charset.c (_initialize_charset): Add declaration.
14368 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14369 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14370 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14371 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14372 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14373 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14374 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14375 * coffread.c (_initialize_coffread): Add declaration.
14376 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14377 * compile/compile.c (_initialize_compile): Add declaration.
14378 * complaints.c (_initialize_complaints): Add declaration.
14379 * completer.c (_initialize_completer): Add declaration.
14380 * copying.c (_initialize_copying): Add declaration.
14381 * corefile.c (_initialize_core): Add declaration.
14382 * corelow.c (_initialize_corelow): Add declaration.
14383 * cp-abi.c (_initialize_cp_abi): Add declaration.
14384 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14385 * cp-support.c (_initialize_cp_support): Add declaration.
14386 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14387 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14388 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14389 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14390 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14391 * ctfread.c (_initialize_ctfread): Add declaration.
14392 * d-lang.c (_initialize_d_language): Add declaration.
14393 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14394 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14395 * dbxread.c (_initialize_dbxread): Add declaration.
14396 * dcache.c (_initialize_dcache): Add declaration.
14397 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14398 * disasm.c (_initialize_disasm): Add declaration.
14399 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14400 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14401 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14402 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14403 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14404 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14405 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14406 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14407 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14408 * elfread.c (_initialize_elfread): Add declaration.
14409 * exec.c (_initialize_exec): Add declaration.
14410 * extension.c (_initialize_extension): Add declaration.
14411 * f-lang.c (_initialize_f_language): Add declaration.
14412 * f-valprint.c (_initialize_f_valprint): Add declaration.
14413 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14414 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14415 * filesystem.c (_initialize_filesystem): Add declaration.
14416 * findcmd.c (_initialize_mem_search): Add declaration.
14417 * findvar.c (_initialize_findvar): Add declaration.
14418 * fork-child.c (_initialize_fork_child): Add declaration.
14419 * frame-base.c (_initialize_frame_base): Add declaration.
14420 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14421 * frame.c (_initialize_frame): Add declaration.
14422 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14423 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14424 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14425 * gcore.c (_initialize_gcore): Add declaration.
14426 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14427 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14428 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14429 * gdbarch.c (_initialize_gdbarch): Add declaration.
14430 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14431 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14432 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14433 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14434 * go-lang.c (_initialize_go_language): Add declaration.
14435 * go32-nat.c (_initialize_go32_nat): Add declaration.
14436 * guile/guile.c (_initialize_guile): Add declaration.
14437 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14438 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14439 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14440 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14441 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14442 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14443 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14444 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14445 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14446 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14447 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14448 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14449 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14450 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14451 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14452 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14453 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14454 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14455 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14456 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14457 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14458 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14459 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14460 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14461 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14462 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14463 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14464 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14465 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14466 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14467 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14468 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14469 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14470 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14471 * infcall.c (_initialize_infcall): Add declaration.
14472 * infcmd.c (_initialize_infcmd): Add declaration.
14473 * inflow.c (_initialize_inflow): Add declaration.
14474 * infrun.c (_initialize_infrun): Add declaration.
14475 * interps.c (_initialize_interpreter): Add declaration.
14476 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14477 * jit.c (_initialize_jit): Add declaration.
14478 * language.c (_initialize_language): Add declaration.
14479 * linux-fork.c (_initialize_linux_fork): Add declaration.
14480 * linux-nat.c (_initialize_linux_nat): Add declaration.
14481 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14482 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14483 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14484 * m2-lang.c (_initialize_m2_language): Add declaration.
14485 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14486 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14487 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14488 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14489 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14490 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14491 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14492 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14493 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14494 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14495 * machoread.c (_initialize_machoread): Add declaration.
14496 * macrocmd.c (_initialize_macrocmd): Add declaration.
14497 * macroscope.c (_initialize_macroscope): Add declaration.
14498 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14499 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14500 * maint.c (_initialize_maint_cmds): Add declaration.
14501 * mdebugread.c (_initialize_mdebugread): Add declaration.
14502 * memattr.c (_initialize_mem): Add declaration.
14503 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14504 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14505 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14506 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14507 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14508 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14509 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14510 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14511 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14512 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14513 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14514 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14515 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14516 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14517 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14518 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14519 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14520 * mipsread.c (_initialize_mipsread): Add declaration.
14521 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14522 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14523 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14524 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14525 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14526 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14527 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14528 * nto-procfs.c (_initialize_procfs): Add declaration.
14529 * objc-lang.c (_initialize_objc_language): Add declaration.
14530 * observable.c (_initialize_observer): Add declaration.
14531 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14532 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14533 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14534 * osabi.c (_initialize_gdb_osabi): Add declaration.
14535 * osdata.c (_initialize_osdata): Add declaration.
14536 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14537 * parse.c (_initialize_parse): Add declaration.
14538 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14539 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14540 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14541 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14542 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14543 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14544 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14545 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14546 * printcmd.c (_initialize_printcmd): Add declaration.
14547 * probe.c (_initialize_probe): Add declaration.
14548 * proc-api.c (_initialize_proc_api): Add declaration.
14549 * proc-events.c (_initialize_proc_events): Add declaration.
14550 * proc-service.c (_initialize_proc_service): Add declaration.
14551 * procfs.c (_initialize_procfs): Add declaration.
14552 * producer.c (_initialize_producer): Add declaration.
14553 * psymtab.c (_initialize_psymtab): Add declaration.
14554 * python/python.c (_initialize_python): Add declaration.
14555 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14556 * record-btrace.c (_initialize_record_btrace): Add declaration.
14557 * record-full.c (_initialize_record_full): Add declaration.
14558 * record.c (_initialize_record): Add declaration.
14559 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14560 * regcache.c (_initialize_regcache): Add declaration.
14561 * reggroups.c (_initialize_reggroup): Add declaration.
14562 * remote-notif.c (_initialize_notif): Add declaration.
14563 * remote-sim.c (_initialize_remote_sim): Add declaration.
14564 * remote.c (_initialize_remote): Add declaration.
14565 * reverse.c (_initialize_reverse): Add declaration.
14566 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14567 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14568 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14569 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14570 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14571 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14572 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14573 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14574 Add declaration.
14575 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14576 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14577 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14578 * rust-exp.y (_initialize_rust_exp): Add declaration.
14579 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14580 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14581 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14582 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14583 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14584 * score-tdep.c (_initialize_score_tdep): Add declaration.
14585 * ser-go32.c (_initialize_ser_dos): Add declaration.
14586 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14587 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14588 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14589 * ser-uds.c (_initialize_ser_socket): Add declaration.
14590 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14591 * serial.c (_initialize_serial): Add declaration.
14592 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14593 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14594 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14595 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14596 * skip.c (_initialize_step_skip): Add declaration.
14597 * sol-thread.c (_initialize_sol_thread): Add declaration.
14598 * solib-aix.c (_initialize_solib_aix): Add declaration.
14599 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14600 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14601 * solib-frv.c (_initialize_frv_solib): Add declaration.
14602 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14603 * solib-target.c (_initialize_solib_target): Add declaration.
14604 * solib.c (_initialize_solib): Add declaration.
14605 * source-cache.c (_initialize_source_cache): Add declaration.
14606 * source.c (_initialize_source): Add declaration.
14607 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14608 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14609 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14610 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14611 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14612 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14613 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14614 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14615 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14616 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14617 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14618 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14619 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14620 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14621 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14622 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14623 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14624 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14625 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14626 * stabsread.c (_initialize_stabsread): Add declaration.
14627 * stack.c (_initialize_stack): Add declaration.
14628 * stap-probe.c (_initialize_stap_probe): Add declaration.
14629 * std-regs.c (_initialize_frame_reg): Add declaration.
14630 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14631 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14632 * symfile.c (_initialize_symfile): Add declaration.
14633 * symmisc.c (_initialize_symmisc): Add declaration.
14634 * symtab.c (_initialize_symtab): Add declaration.
14635 * target.c (_initialize_target): Add declaration.
14636 * target-connection.c (_initialize_target_connection): Add
14637 declaration.
14638 * target-dcache.c (_initialize_target_dcache): Add declaration.
14639 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14640 * thread.c (_initialize_thread): Add declaration.
14641 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14642 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14643 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14644 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14645 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14646 * tracectf.c (_initialize_ctf): Add declaration.
14647 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14648 * tracefile.c (_initialize_tracefile): Add declaration.
14649 * tracepoint.c (_initialize_tracepoint): Add declaration.
14650 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14651 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14652 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14653 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14654 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14655 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14656 * tui/tui.c (_initialize_tui): Add declaration.
14657 * typeprint.c (_initialize_typeprint): Add declaration.
14658 * ui-style.c (_initialize_ui_style): Add declaration.
14659 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14660 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14661 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14662 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14663 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14664 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14665 * unittests/filtered_iterator-selftests.c
14666 (_initialize_filtered_iterator_selftests): Add declaration.
14667 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14668 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14669 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14670 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14671 * unittests/main-thread-selftests.c
14672 (_initialize_main_thread_selftests): Add declaration.
14673 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14674 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14675 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14676 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14677 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14678 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14679 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14680 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14681 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14682 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14683 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14684 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14685 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14686 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14687 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14688 declaration.
14689 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14690 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14691 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14692 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14693 * user-regs.c (_initialize_user_regs): Add declaration.
14694 * utils.c (_initialize_utils): Add declaration.
14695 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14696 * valops.c (_initialize_valops): Add declaration.
14697 * valprint.c (_initialize_valprint): Add declaration.
14698 * value.c (_initialize_values): Add declaration.
14699 * varobj.c (_initialize_varobj): Add declaration.
14700 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14701 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14702 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14703 * windows-nat.c (_initialize_windows_nat): Add declaration.
14704 (_initialize_check_for_gdb_ini): Add declaration.
14705 (_initialize_loadable): Add declaration.
14706 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14707 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14708 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14709 * xcoffread.c (_initialize_xcoffread): Add declaration.
14710 * xml-support.c (_initialize_xml_support): Add declaration.
14711 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14712 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14713 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14714 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14715
e2de1eec
SM
147162020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14717
14718 * regformats/regdat.sh: Generate declaration for init function.
14719
e0037b4c
SM
147202020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14721
14722 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14723 up.
14724 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14725 close_one_inferior>: New methods.
14726 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14727 pass down target to find_inferior_pid.
14728 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14729 Pass down target to find_inferior_ptid.
14730 (gdbsim_target::create_inferior): Pass down target to
14731 add_thread_silent.
14732 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14733 target down to find_inferior_ptid and switch_to_thread.
14734 (gdbsim_target::close): Update to call close_one_inferior.
14735 (struct resume_data): Remove.
14736 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14737 directly, rather than through a void pointer.
14738 (gdbsim_target::resume): Update to call resume_one_inferior.
14739
58920b5b
SM
147402020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14741
14742 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14743
4ec89149
PA
147442020-01-12 Pedro Alves <palves@redhat.com>
14745
14746 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14747 directly for the current inferior instead of
14748 discard_all_inferiors.
14749 (discard_all_inferiors): Delete.
14750
7c392d1d
TT
147512020-01-11 Tom Tromey <tom@tromey.com>
14752
14753 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14754 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14755 deprecated_safe_get_selected_frame.
14756
d9ebdab7
TBA
147572020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14758
14759 * inferior.c (print_inferior): Switch inferior before printing it.
14760
f3c469b9
PA
147612020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14762 Pedro Alves <palves@redhat.com>
14763
14764 * progspace-and-thread.c (switch_to_program_space_and_thread):
14765 Assert there's an inferior for PSPACE. Use
14766 switch_to_inferior_no_thread to switch the inferior too.
14767 * progspace.c (program_space::~program_space): Call
14768 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14769 (program_space::free_all_objfiles): Don't call clear_symtab_users
14770 here.
14771 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14772
65c574f6
PA
147732020-01-10 Pedro Alves <palves@redhat.com>
14774
14775 * NEWS: Mention multi-target debugging, "info connections", and
14776 "add-inferior -no-connection".
14777
2f4fcf00
PA
147782020-01-10 Pedro Alves <palves@redhat.com>
14779
14780 * infrun.c: Include "target-connection.h".
14781 (check_multi_target_resumption): New.
14782 (proceed): Call it.
14783 * target-connection.c (make_target_connection_string): Make
14784 extern.
14785 * target-connection.h (make_target_connection_string): Declare.
14786
121b3efd
PA
147872020-01-10 Pedro Alves <palves@redhat.com>
14788
14789 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14790 * inferior.c (uiout_field_connection): New function.
14791 (print_inferior): Add new "connection-id" column.
14792 (add_inferior_command): Show connection number/string of added
14793 inferior.
14794 * process-stratum-target.h
14795 (process_stratum_target::connection_string): New virtual method.
14796 (process_stratum_target::connection_number): New field.
14797 * remote.c (remote_target::connection_string): New override.
14798 * target-connection.c: New file.
14799 * target-connection.h: New file.
14800 * target.c (decref_target): Remove process_stratum targets from
14801 the connection list.
14802 (target_stack::push): Add process_stratum targets to the
14803 connection list.
14804
4f837581
PA
148052020-01-10 Pedro Alves <palves@redhat.com>
14806
14807 Revert:
14808 2016-04-12 Pedro Alves <palves@redhat.com>
14809 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14810 Remove references to name.
14811 * serial.h (struct serial) <name>: Delete.
14812
f4ec508e
PA
148132020-01-10 Pedro Alves <palves@redhat.com>
14814
14815 * gdbarch-selftests.c (register_to_value_test): Remove "target
14816 already pushed" check.
14817
5b6d1e4f
PA
148182020-01-10 Pedro Alves <palves@redhat.com>
14819 John Baldwin <jhb@FreeBSD.org>
14820
14821 * aarch64-linux-nat.c
14822 (aarch64_linux_nat_target::thread_architecture): Adjust.
14823 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14824 (task_command_1): Likewise.
14825 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14826 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14827 (aix_thread_target::store_registers)
14828 (aix_thread_target::thread_alive): Adjust.
14829 * amd64-fbsd-tdep.c: Include "inferior.h".
14830 (amd64fbsd_get_thread_local_address): Pass down target.
14831 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14832 thread's gdbarch instead of target_gdbarch.
14833 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14834 get_last_target_status.
14835 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14836 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14837 inferiors.
14838 (update_inserted_breakpoint_locations): Skip if inferiors with no
14839 execution.
14840 (update_global_location_list): When handling moribund locations,
14841 find representative inferior for location's pspace, and use thread
14842 count of its process_stratum target.
14843 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14844 * bsd-uthread.c (bsd_uthread_target::wait): Use
14845 as_process_stratum_target and adjust thread_change_ptid and
14846 add_thread calls.
14847 (bsd_uthread_target::update_thread_list): Use
14848 as_process_stratum_target and adjust find_thread_ptid,
14849 thread_change_ptid and add_thread calls.
14850 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14851 find_thread_ptid call.
14852 * corelow.c (add_to_thread_list): Adjust add_thread call.
14853 (core_target_open): Adjust add_thread_silent and thread_count
14854 calls.
14855 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14856 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14857 * event-top.c (async_disconnect): Pop targets from all inferiors.
14858 * exec.c (add_target_sections): Push exec target on all inferiors
14859 sharing the program space.
14860 (remove_target_sections): Remove the exec target from all
14861 inferiors sharing the program space.
14862 (exec_on_vfork): New.
14863 * exec.h (exec_on_vfork): Declare.
14864 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14865 Pass it down.
14866 (fbsd_nat_target::update_thread_list): Adjust.
14867 (fbsd_nat_target::resume): Adjust.
14868 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14869 down.
14870 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14871 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14872 get_thread_arch_regcache call.
14873 * fork-child.c (gdb_startup_inferior): Pass target down to
14874 startup_inferior and set_executing.
14875 * gdbthread.h (struct process_stratum_target): Forward declare.
14876 (add_thread, add_thread_silent, add_thread_with_info)
14877 (in_thread_list): Add process_stratum_target parameter.
14878 (find_thread_ptid(inferior*, ptid_t)): New overload.
14879 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14880 parameter.
14881 (all_threads()): Delete overload.
14882 (all_threads, all_non_exited_threads): Add process_stratum_target
14883 parameter.
14884 (all_threads_safe): Use brace initialization.
14885 (thread_count): Add process_stratum_target parameter.
14886 (set_resumed, set_running, set_stop_requested, set_executing)
14887 (threads_are_executing, finish_thread_state): Add
14888 process_stratum_target parameter.
14889 (switch_to_thread): Use is_current_thread.
14890 * i386-fbsd-tdep.c: Include "inferior.h".
14891 (i386fbsd_get_thread_local_address): Pass down target.
14892 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14893 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14894 have_inferiors check.
14895 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14896 (inf_ptrace_target::attach): Adjust.
14897 * infcall.c (run_inferior_call): Adjust.
14898 * infcmd.c (run_command_1): Pass target to
14899 scoped_finish_thread_state.
14900 (proceed_thread_callback): Skip inferiors with no execution.
14901 (continue_command): Rename 'all_threads' local to avoid hiding
14902 'all_threads' function. Adjust get_last_target_status call.
14903 (prepare_one_step): Adjust set_running call.
14904 (signal_command): Use user_visible_resume_target. Compare thread
14905 pointers instead of inferior_ptid.
14906 (info_program_command): Adjust to pass down target.
14907 (attach_command): Mark target's 'thread_executing' flag.
14908 (stop_current_target_threads_ns): New, factored out from ...
14909 (interrupt_target_1): ... this. Switch inferior before making
14910 target calls.
14911 * inferior-iter.h
14912 (struct all_inferiors_iterator, struct all_inferiors_range)
14913 (struct all_inferiors_safe_range)
14914 (struct all_non_exited_inferiors_range): Filter on
14915 process_stratum_target too. Remove explicit.
14916 * inferior.c (inferior::inferior): Push dummy target on target
14917 stack.
14918 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14919 Add process_stratum_target parameter, and pass it down.
14920 (have_live_inferiors): Adjust.
14921 (switch_to_inferior_and_push_target): New.
14922 (add_inferior_command, clone_inferior_command): Handle
14923 "-no-connection" parameter. Use
14924 switch_to_inferior_and_push_target.
14925 (_initialize_inferior): Mention "-no-connection" option in
14926 the help of "add-inferior" and "clone-inferior" commands.
14927 * inferior.h: Include "process-stratum-target.h".
14928 (interrupt_target_1): Use bool.
14929 (struct inferior) <push_target, unpush_target, target_is_pushed,
14930 find_target_beneath, top_target, process_target, target_at,
14931 m_stack>: New.
14932 (discard_all_inferiors): Delete.
14933 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14934 (all_inferiors, all_non_exited_inferiors): Add
14935 process_stratum_target parameter.
14936 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14937 (target_last_proc_target): New global.
14938 (follow_fork_inferior): Push target on new inferior. Pass target
14939 to add_thread_silent. Call exec_on_vfork. Handle target's
14940 reference count.
14941 (follow_fork): Adjust get_last_target_status call. Also consider
14942 target.
14943 (follow_exec): Push target on new inferior.
14944 (struct execution_control_state) <target>: New field.
14945 (user_visible_resume_target): New.
14946 (do_target_resume): Call target_async.
14947 (resume_1): Set target's threads_executing flag. Consider resume
14948 target.
14949 (commit_resume_all_targets): New.
14950 (proceed): Also consider resume target. Skip threads of inferiors
14951 with no execution. Commit resumtion in all targets.
14952 (start_remote): Pass current inferior to wait_for_inferior.
14953 (infrun_thread_stop_requested): Consider target as well. Pass
14954 thread_info pointer to clear_inline_frame_state instead of ptid.
14955 (infrun_thread_thread_exit): Consider target as well.
14956 (random_pending_event_thread): New inferior parameter. Use it.
14957 (do_target_wait): Rename to ...
14958 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14959 down.
14960 (threads_are_resumed_pending_p, do_target_wait): New.
14961 (prepare_for_detach): Adjust calls.
14962 (wait_for_inferior): New inferior parameter. Handle it. Use
14963 do_target_wait_1 instead of do_target_wait.
14964 (fetch_inferior_event): Adjust. Switch to representative
14965 inferior. Pass target down.
14966 (set_last_target_status): Add process_stratum_target parameter.
14967 Save target in global.
14968 (get_last_target_status): Add process_stratum_target parameter and
14969 handle it.
14970 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14971 (context_switch): Check inferior_ptid == null_ptid before calling
14972 inferior_thread().
14973 (get_inferior_stop_soon): Pass down target.
14974 (wait_one): Rename to ...
14975 (poll_one_curr_target): ... this.
14976 (struct wait_one_event): New.
14977 (wait_one): New.
14978 (stop_all_threads): Adjust.
14979 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14980 event's target.
14981 (switch_back_to_stepped_thread): Also consider target.
14982 (print_stop_event): Update.
14983 (normal_stop): Update. Also consider the resume target.
14984 * infrun.h (wait_for_inferior): Remove declaration.
14985 (user_visible_resume_target): New declaration.
14986 (get_last_target_status, set_last_target_status): New
14987 process_stratum_target parameter.
14988 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14989 process_stratum_target parameter, and use it.
14990 (clear_inline_frame_state (thread_info*)): New.
14991 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14992 process_stratum_target parameter.
14993 (clear_inline_frame_state (thread_info*)): Declare.
14994 * linux-fork.c (delete_checkpoint_command): Pass target down to
14995 find_thread_ptid.
14996 (checkpoint_command): Adjust.
14997 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14998 instead of just tweaking inferior_ptid.
14999 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
15000 (exit_lwp): Pass target down to find_thread_ptid.
15001 (attach_proc_task_lwp_callback): Pass target down to
15002 add_thread/set_running/set_executing.
15003 (linux_nat_target::attach): Pass target down to
15004 thread_change_ptid.
15005 (get_detach_signal): Pass target down to find_thread_ptid.
15006 Consider last target status's target.
15007 (linux_resume_one_lwp_throw, resume_lwp)
15008 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
15009 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
15010 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
15011 (linux_nat_target::async_wait_fd): New.
15012 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
15013 target down.
15014 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
15015 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
15016 * linux-thread-db.c (struct thread_db_info::process_target): New
15017 field.
15018 (add_thread_db_info): Save target.
15019 (get_thread_db_info): New process_stratum_target parameter. Also
15020 match target.
15021 (delete_thread_db_info): New process_stratum_target parameter.
15022 Also match target.
15023 (thread_from_lwp): Adjust to pass down target.
15024 (thread_db_notice_clone): Pass down target.
15025 (check_thread_db_callback): Pass down target.
15026 (try_thread_db_load_1): Always push the thread_db target.
15027 (try_thread_db_load, record_thread): Pass target down.
15028 (thread_db_target::detach): Pass target down. Always unpush the
15029 thread_db target.
15030 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
15031 target down. Always unpush the thread_db target.
15032 (find_new_threads_callback, thread_db_find_new_threads_2)
15033 (thread_db_target::update_thread_list): Pass target down.
15034 (thread_db_target::pid_to_str): Pass current inferior down.
15035 (thread_db_target::get_thread_local_address): Pass target down.
15036 (thread_db_target::resume, maintenance_check_libthread_db): Pass
15037 target down.
15038 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
15039 * procfs.c (procfs_target::procfs_init_inferior): Declare.
15040 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
15041 (procfs_init_inferior): Rename to ...
15042 (procfs_target::procfs_init_inferior): ... this and adjust.
15043 (procfs_target::create_inferior, procfs_notice_thread)
15044 (procfs_do_thread_registers): Adjust.
15045 * ppc-fbsd-tdep.c: Include "inferior.h".
15046 (ppcfbsd_get_thread_local_address): Pass down target.
15047 * proc-service.c (ps_xfer_memory): Switch current inferior and
15048 program space as well.
15049 (get_ps_regcache): Pass target down.
15050 * process-stratum-target.c
15051 (process_stratum_target::thread_address_space)
15052 (process_stratum_target::thread_architecture): Pass target down.
15053 * process-stratum-target.h
15054 (process_stratum_target::threads_executing): New field.
15055 (as_process_stratum_target): New.
15056 * ravenscar-thread.c
15057 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
15058 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
15059 down.
15060 * record-btrace.c (record_btrace_target::info_record): Adjust.
15061 (record_btrace_target::record_method)
15062 (record_btrace_target::record_is_replaying)
15063 (record_btrace_target::fetch_registers)
15064 (get_thread_current_frame_id, record_btrace_target::resume)
15065 (record_btrace_target::wait, record_btrace_target::stop): Pass
15066 target down.
15067 * record-full.c (record_full_wait_1): Switch to event thread.
15068 Pass target down.
15069 * regcache.c (regcache::regcache)
15070 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
15071 process_stratum_target parameter and handle it.
15072 (current_thread_target): New global.
15073 (get_thread_regcache): Add process_stratum_target parameter and
15074 handle it. Switch inferior before calling target method.
15075 (get_thread_regcache): Pass target down.
15076 (get_thread_regcache_for_ptid): Pass target down.
15077 (registers_changed_ptid): Add process_stratum_target parameter and
15078 handle it.
15079 (registers_changed_thread, registers_changed): Pass target down.
15080 (test_get_thread_arch_aspace_regcache): New.
15081 (current_regcache_test): Define a couple local test_target_ops
15082 instances and use them for testing.
15083 (readwrite_regcache): Pass process_stratum_target parameter.
15084 (cooked_read_test, cooked_write_test): Pass mock_target down.
15085 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15086 (get_thread_arch_aspace_regcache): Add process_stratum_target
15087 parameter.
15088 (regcache::target): New method.
15089 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15090 (regcache::registers_changed_ptid): Add process_stratum_target
15091 parameter.
15092 (regcache::m_target): New field.
15093 (registers_changed_ptid): Add process_stratum_target parameter.
15094 * remote.c (remote_state::supports_vCont_probed): New field.
15095 (remote_target::async_wait_fd): New method.
15096 (remote_unpush_and_throw): Add remote_target parameter.
15097 (get_current_remote_target): Adjust.
15098 (remote_target::remote_add_inferior): Push target.
15099 (remote_target::remote_add_thread)
15100 (remote_target::remote_notice_new_inferior)
15101 (get_remote_thread_info): Pass target down.
15102 (remote_target::update_thread_list): Skip threads of inferiors
15103 bound to other targets. (remote_target::close): Don't discard
15104 inferiors. (remote_target::add_current_inferior_and_thread)
15105 (remote_target::process_initial_stop_replies)
15106 (remote_target::start_remote)
15107 (remote_target::remote_serial_quit_handler): Pass down target.
15108 (remote_target::remote_unpush_target): New remote_target
15109 parameter. Unpush the target from all inferiors.
15110 (remote_target::remote_unpush_and_throw): New remote_target
15111 parameter. Pass it down.
15112 (remote_target::open_1): Check whether the current inferior has
15113 execution instead of checking whether any inferior is live. Pass
15114 target down.
15115 (remote_target::remote_detach_1): Pass down target. Use
15116 remote_unpush_target.
15117 (extended_remote_target::attach): Pass down target.
15118 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15119 (remote_target::append_resumption): Pass down target.
15120 (remote_target::append_pending_thread_resumptions)
15121 (remote_target::remote_resume_with_hc, remote_target::resume)
15122 (remote_target::commit_resume): Pass down target.
15123 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15124 (remote_target::interrupt_query)
15125 (remote_target::remove_new_fork_children)
15126 (remote_target::check_pending_events_prevent_wildcard_vcont)
15127 (remote_target::remote_parse_stop_reply)
15128 (remote_target::process_stop_reply): Pass down target.
15129 (first_remote_resumed_thread): New remote_target parameter. Pass
15130 it down.
15131 (remote_target::wait_as): Pass down target.
15132 (unpush_and_perror): New remote_target parameter. Pass it down.
15133 (remote_target::readchar, remote_target::remote_serial_write)
15134 (remote_target::getpkt_or_notif_sane_1)
15135 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15136 down target.
15137 (remote_target::mourn_inferior): Pass down target. Use
15138 remote_unpush_target.
15139 (remote_target::core_of_thread)
15140 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15141 (remote_target::pid_to_exec_file)
15142 (remote_target::thread_handle_to_thread_info): Pass down target.
15143 (remote_target::async_wait_fd): New.
15144 * riscv-fbsd-tdep.c: Include "inferior.h".
15145 (riscv_fbsd_get_thread_local_address): Pass down target.
15146 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15147 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15148 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15149 Adjust.
15150 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15151 * solib-svr4.c (enable_break): Pass down target.
15152 * spu-multiarch.c (parse_spufs_run): Pass down target.
15153 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15154 * target-delegates.c: Regenerate.
15155 * target.c (g_target_stack): Delete.
15156 (current_top_target): Return the current inferior's top target.
15157 (target_has_execution_1): Refer to the passed-in inferior's top
15158 target.
15159 (target_supports_terminal_ours): Check whether the initial
15160 inferior was already created.
15161 (decref_target): New.
15162 (target_stack::push): Incref/decref the target.
15163 (push_target, push_target, unpush_target): Adjust.
15164 (target_stack::unpush): Defref target.
15165 (target_is_pushed): Return bool. Adjust to refer to the current
15166 inferior's target stack.
15167 (dispose_inferior): Delete, and inline parts ...
15168 (target_preopen): ... here. Only dispose of the current inferior.
15169 (target_detach): Hold strong target reference while detaching.
15170 Pass target down.
15171 (target_thread_name): Add assertion.
15172 (target_resume): Pass down target.
15173 (target_ops::beneath, find_target_at): Adjust to refer to the
15174 current inferior's target stack.
15175 (get_dummy_target): New.
15176 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15177 has a thread running.
15178 (initialize_targets): Rename to ...
15179 (_initialize_target): ... this.
15180 * target.h: Include "gdbsupport/refcounted-object.h".
15181 (struct target_ops): Inherit refcounted_object.
15182 (target_ops::shortname, target_ops::longname): Make const.
15183 (target_ops::async_wait_fd): New method.
15184 (decref_target): Declare.
15185 (struct target_ops_ref_policy): New.
15186 (target_ops_ref): New typedef.
15187 (get_dummy_target): Declare function.
15188 (target_is_pushed): Return bool.
15189 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15190 (all_matching_threads_iterator::all_matching_threads_iterator):
15191 Handle filter target.
15192 * thread-iter.h (struct all_matching_threads_iterator, struct
15193 all_matching_threads_range, class all_non_exited_threads_range):
15194 Filter by target too. Remove explicit.
15195 * thread.c (threads_executing): Delete.
15196 (inferior_thread): Pass down current inferior.
15197 (clear_thread_inferior_resources): Pass down thread pointer
15198 instead of ptid_t.
15199 (add_thread_silent, add_thread_with_info, add_thread): Add
15200 process_stratum_target parameter. Use it for thread and inferior
15201 searches.
15202 (is_current_thread): New.
15203 (thread_info::deletable): Use it.
15204 (find_thread_ptid, thread_count, in_thread_list)
15205 (thread_change_ptid, set_resumed, set_running): New
15206 process_stratum_target parameter. Pass it down.
15207 (set_executing): New process_stratum_target parameter. Pass it
15208 down. Adjust reference to 'threads_executing'.
15209 (threads_are_executing): New process_stratum_target parameter.
15210 Adjust reference to 'threads_executing'.
15211 (set_stop_requested, finish_thread_state): New
15212 process_stratum_target parameter. Pass it down.
15213 (switch_to_thread): Also match inferior.
15214 (switch_to_thread): New process_stratum_target parameter. Pass it
15215 down.
15216 (update_threads_executing): Reimplement.
15217 * top.c (quit_force): Pop targets from all inferior.
15218 (gdb_init): Don't call initialize_targets.
15219 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15220 Declare.
15221 (windows_add_thread, windows_delete_thread): Adjust.
15222 (get_windows_debug_event): Rename to ...
15223 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15224 * tracefile-tfile.c (tfile_target_open): Pass down target.
15225 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15226 Forward declare.
15227 (switch_to_thread): Add process_stratum_target parameter.
15228 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15229 parameter. Use it.
15230 (mi_on_resume): Pass target down.
15231 * nat/fork-inferior.c (startup_inferior): Add
15232 process_stratum_target parameter. Pass it down.
15233 * nat/fork-inferior.h (startup_inferior): Add
15234 process_stratum_target parameter.
15235 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15236
75c6c844
PA
152372020-01-10 Pedro Alves <palves@redhat.com>
15238
15239 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15240 directly. Instead find the first thread in the thread list and
15241 use switch_to_thread.
15242
78f2c40a
PA
152432020-01-10 Pedro Alves <palves@redhat.com>
15244
15245 * remote.c (remote_target::remote_add_inferior): Don't bind a
15246 process to the current inferior if the current inferior is already
15247 bound to a process.
15248
e7af6c70
TBA
152492020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15250 Pedro Alves <palves@redhat.com>
15251
15252 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15253 If no process is specified, return null_ptid instead of
15254 inferior_ptid.
15255 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15256 TARGET_WAITKIND_SIGNALLED with no pid.
15257
31ba933e
PA
152582020-01-10 Pedro Alves <palves@redhat.com>
15259
15260 * remote.c (first_remote_resumed_thread): New.
15261 (remote_target::wait_as): Use it as default event_ptid instead of
15262 inferior_ptid.
15263
735fc2ca
PA
152642020-01-10 Pedro Alves <palves@redhat.com>
15265
15266 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15267
c17e02e1
PA
152682020-01-10 Pedro Alves <palves@redhat.com>
15269
15270 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15271 not -1.
15272
ab1ddbcf
PA
152732020-01-10 Pedro Alves <palves@redhat.com>
15274
15275 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15276 ptid to get_last_target_status.
15277 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15278 ptid to get_last_target_status.
15279 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15280 get_last_target_status.
15281 (info_program_command): Don't pass a target_waitstatus to
15282 get_last_target_status.
15283 * infrun.c (init_wait_for_inferior): Use
15284 nullify_last_target_wait_ptid.
15285 (get_last_target_status): Handle nullptr arguments.
15286 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15287 (print_stop_event): Don't pass a ptid to get_last_target_status.
15288 (normal_stop): Don't pass a ptid to get_last_target_status.
15289 * infrun.h (get_last_target_status, set_last_target_status): Move
15290 comments here and update.
15291 (nullify_last_target_wait_ptid): Declare.
15292 * linux-fork.c (fork_load_infrun_state): Remove local extern
15293 declaration of nullify_last_target_wait_ptid.
15294 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15295 to get_last_target_status.
15296
f3f8ece4
PA
152972020-01-10 Pedro Alves <palves@redhat.com>
15298
15299 * gdbthread.h (scoped_restore_current_thread)
15300 <dont_restore, restore, m_dont_restore>: Declare.
15301 * thread.c (thread_alive): Add assertion. Return bool.
15302 (switch_to_thread_if_alive): New.
15303 (prune_threads): Switch inferior/thread.
15304 (print_thread_info_1): Switch thread before calling target methods.
15305 (scoped_restore_current_thread::restore): New, factored out from
15306 ...
15307 (scoped_restore_current_thread::~scoped_restore_current_thread):
15308 ... this.
15309 (scoped_restore_current_thread::scoped_restore_current_thread):
15310 Add assertion.
15311 (thread_apply_all_command, thread_select): Use
15312 switch_to_thread_if_alive.
15313 * infrun.c (proceed, restart_threads, handle_signal_stop)
15314 (switch_back_to_stepped_thread): Switch current thread before
15315 calling target methods.
15316
db2d40f7
PA
153172020-01-10 Pedro Alves <palves@redhat.com>
15318
15319 * inferior.c (switch_to_inferior_no_thread): New function,
15320 factored out from ...
15321 (inferior_command): ... here.
15322 * inferior.h (switch_to_inferior_no_thread): Declare.
15323 * mi/mi-main.c (run_one_inferior): Use
15324 switch_to_inferior_no_thread.
15325
bd420a2d
PA
153262020-01-10 Pedro Alves <palves@redhat.com>
15327
15328 * infcmd.c (kill_command): Remove dead code.
15329
ddf5db90
PA
153302020-01-10 Pedro Alves <palves@redhat.com>
15331
15332 * remote.c (remote_target::mourn_inferior): No longer check
15333 whether the target is running.
15334
5018ce90
PA
153352020-01-10 Pedro Alves <palves@redhat.com>
15336
15337 * corelow.c (core_target::has_execution): Change parameter type to
15338 inferior pointer.
15339 * inferior.c (number_of_live_inferiors): Use
15340 inferior::has_execution instead of target_has_execution_1.
15341 * inferior.h (inferior::has_execution): New.
15342 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15343 inferior::has_execution instead of target_has_execution_1.
15344 * process-stratum-target.c
15345 (process_stratum_target::has_execution): Change parameter type to
15346 inferior pointer. Check the inferior's PID instead of
15347 inferior_ptid.
15348 * process-stratum-target.h
15349 (process_stratum_target::has_execution): Change parameter type to
15350 inferior pointer.
15351 * record-full.c (record_full_core_target::has_execution): Change
15352 parameter type to inferior pointer.
15353 * target.c (target_has_execution_1): Change parameter type to
15354 inferior pointer.
15355 (target_has_execution_current): Adjust.
15356 * target.h (target_ops::has_execution): Change parameter type to
15357 inferior pointer.
15358 (target_has_execution_1): Change parameter type to inferior
15359 pointer. Change return type to bool.
15360 * tracefile.h (tracefile_target::has_execution): Change parameter
15361 type to inferior pointer.
15362
74375d18
PA
153632020-01-10 Pedro Alves <palves@redhat.com>
15364
15365 * exceptions.c (print_flush): Remove current_top_target() check.
15366
acdf84a6
PA
153672020-01-10 Pedro Alves <palves@redhat.com>
15368
15369 * remote.c (show_remote_exec_file): Show the current inferior's
15370 exec-file instead of the command variable's value.
15371
ec506636
PA
153722020-01-10 Pedro Alves <palves@redhat.com>
15373
15374 * record-full.c (record_full_resume_ptid): New global.
15375 (record_full_target::resume): Set it.
15376 (record_full_wait_1): Use record_full_resume_ptid instead of
15377 inferior_ptid.
15378
873657b9
PA
153792020-01-10 Pedro Alves <palves@redhat.com>
15380
15381 * gdbthread.h (scoped_restore_current_thread)
15382 <dont_restore, restore, m_dont_restore>: Declare.
15383 * thread.c (thread_alive): Add assertion. Return bool.
15384 (switch_to_thread_if_alive): New.
15385 (prune_threads): Switch inferior/thread.
15386 (print_thread_info_1): Switch thread before calling target methods.
15387 (scoped_restore_current_thread::restore): New, factored out from
15388 ...
15389 (scoped_restore_current_thread::~scoped_restore_current_thread):
15390 ... this.
15391 (scoped_restore_current_thread::scoped_restore_current_thread):
15392 Add assertion.
15393 (thread_apply_all_command, thread_select): Use
15394 switch_to_thread_if_alive.
15395
7f0ae84c
GB
153962020-01-10 George Barrett <bob@bob131.so>
15397
15398 * stap-probe.c (stap_modify_semaphore): Don't check for null
15399 semaphores.
15400 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15401 for null semaphores.
15402
f5a7c406
AB
154032020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15404
15405 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15406 all source windows, and maintain horizontal scroll status while
15407 doing so.
15408
9ae6bf64
TT
154092020-01-09 Tom Tromey <tom@tromey.com>
15410
15411 PR tui/18932:
15412 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15413 update_source_window, not print_source_lines.
15414
b2efe70c
AB
154152020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15416
15417 * tui/tui.c (tui_enable): Register tui hooks after calling
15418 tui_display_main.
15419
5f23a082
CB
154202020-01-09 Christian Biesinger <cbiesinger@google.com>
15421
15422 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15423
3061113b
SM
154242020-01-08 Simon Marchi <simon.marchi@efficios.com>
15425
15426 * thread.c (print_thread_info_1): Fix indentation.
15427
57d75002
CB
154282020-01-09 Christian Biesinger <cbiesinger@google.com>
15429
15430 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15431 unique_xmalloc_ptr outside the if to always free the demangled name.
15432
6a053cb1
TT
154332020-01-08 Tom Tromey <tromey@adacore.com>
15434
15435 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15436 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15437 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15438 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15439 Remove.
15440 (section_offsets): New typedef.
15441 * symtab.c (fixup_section, get_msymbol_address): Update.
15442 * symmisc.c (dump_msymbols): Update.
15443 * symfile.h (relative_addr_info_to_section_offsets)
15444 (symfile_map_offsets_to_segments): Update.
15445 * symfile.c (build_section_addr_info_from_objfile)
15446 (init_objfile_sect_indices): Update.
15447 (struct place_section_arg): Change type of "offsets".
15448 (place_section): Update.
15449 (relative_addr_info_to_section_offsets): Change type of
15450 "section_offsets". Remove "num_sections" parameter.
15451 (default_symfile_offsets, syms_from_objfile_1)
15452 (set_objfile_default_section_offset): Update.
15453 (reread_symbols): No need to preserve section offsets by hand.
15454 (symfile_map_offsets_to_segments): Change type of "offsets".
15455 * stap-probe.c (relocate_address): Update.
15456 * stabsread.h (process_one_symbol): Update.
15457 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15458 (solib_target_relocate_section_addresses): Update.
15459 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15460 Update.
15461 * solib-frv.c (frv_relocate_main_executable): Update.
15462 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15463 * solib-aix.c (solib_aix_get_section_offsets): Change return
15464 type.
15465 (solib_aix_solib_create_inferior_hook): Update.
15466 * remote.c (remote_target::get_offsets): Update.
15467 * psymtab.c (find_pc_sect_psymtab): Update.
15468 * psympriv.h (struct partial_symbol) <address, text_low,
15469 text_high>: Update.
15470 * objfiles.h (obj_section_offset): Update.
15471 (struct objfile) <section_offsets>: Change type.
15472 <num_sections>: Remove.
15473 (objfile_relocate): Update.
15474 * objfiles.c (entry_point_address_query): Update
15475 (relocate_one_symbol): Change type of "section_offsets".
15476 (objfile_relocate1, objfile_relocate1): Change type of
15477 "new_offsets".
15478 (objfile_rebase1): Update.
15479 * mipsread.c (mipscoff_symfile_read): Update.
15480 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15481 parameter.
15482 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15483 (parse_external, psymtab_to_symtab_1): Update.
15484 * machoread.c (macho_symfile_offsets): Update.
15485 * ia64-tdep.c (ia64_find_unwind_table): Update.
15486 * hppa-tdep.c (read_unwind_info): Update.
15487 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15488 * dwarf2read.c (create_addrmap_from_index)
15489 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15490 (process_psymtab_comp_unit_reader, add_partial_symbol)
15491 (add_partial_subprogram, process_full_comp_unit)
15492 (read_file_scope, read_func_scope, read_lexical_block_scope)
15493 (read_call_site_scope, dwarf2_rnglists_process)
15494 (dwarf2_ranges_process, dwarf2_ranges_read)
15495 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15496 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15497 Update.
15498 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15499 Update.
15500 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15501 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15502 (process_one_symbol): Change type of "section_offsets".
15503 * ctfread.c (get_objfile_text_range): Update.
15504 * coffread.c (coff_symtab_read, enter_linenos)
15505 (process_coff_symbol): Update.
15506 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15507 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15508
456e800a
TT
155092020-01-08 Tom Tromey <tromey@adacore.com>
15510
15511 * dwarf2read.c (parse_macro_definition): Use std::string.
15512 (parse_macro_definition): Likewise.
15513
6dfa2fc2
TT
155142020-01-08 Tom Tromey <tromey@adacore.com>
15515
15516 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15517 (ATTR_ALLOC_CHUNK): Remove.
15518
421d1616
TT
155192020-01-08 Tom Tromey <tromey@adacore.com>
15520
15521 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15522
43816ebc
TT
155232020-01-08 Tom Tromey <tromey@adacore.com>
15524
15525 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15526 (dwarf2_compute_name, open_dwo_file): Likewise.
15527 (process_enumeration_scope): Use std::vector.
15528 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15529 (partial_die_info::fixup, dwarf2_start_subfile)
15530 (guess_full_die_structure_name, dwarf2_name): Likewise.
15531 (determine_prefix): Update.
15532 (guess_full_die_structure_name): Make return type const.
15533 (partial_die_full_name): Return unique_xmalloc_ptr.
15534 (DW_FIELD_ALLOC_CHUNK): Remove.
15535
4212d509
TT
155362020-01-07 Tom Tromey <tromey@adacore.com>
15537
15538 PR build/24937:
15539 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15540
06a6207a
JT
155412020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15542
15543 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15544
153d79c4
AB
155452020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15546
15547 * stack.c (print_frame_info): Move disassemble_next_line code
15548 inside source_print block.
15549
66182876
EZ
155502020-01-06 Eli Zaretskii <eliz@gnu.org>
15551
15552 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15553 gdb/signals.h, as we are now using native signal symbols.
15554
cbfa8581
SV
155552020-01-06 Shahab Vahedi <shahab@synopsys.com>
15556
15557 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15558 overflow by an early check of content vs threshold.
aac66a4c 15559 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
15560 Likewise.
15561
3f602821
EZ
155622020-01-06 Eli Zaretskii <eliz@gnu.org>
15563
15564 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15565
a08c904d
JT
155662020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15567
15568 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15569 export table if no section contains it's RVA.
15570
89a65580
EZ
155712020-01-06 Eli Zaretskii <eliz@gnu.org>
15572
15573 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15574
8b7fcda2
HD
155752020-01-06 Hannes Domani <ssbssa@yahoo.de>
15576
15577 * source.c (print_source_lines_base): Set last_line_listed.
15578
a61b4f69
SV
155792020-01-06 Shahab Vahedi <shahab@synopsys.com>
15580
15581 * tui/tui-disasm.c: Remove trailing spaces.
15582
559e7e50
EZ
155832020-01-06 Eli Zaretskii <eliz@gnu.org>
15584 Pedro Alves <palves@redhat.com>
15585
15586 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15587 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15588 (windows_gdb_signal_to_target): New function, uses the above
15589 enumeration to convert GDB internal signal codes to equivalent
15590 Windows codes.
15591 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15592 * windows-nat.c: Include "gdb_wait.h".
15593 (get_windows_debug_event): Extract the fatal exception from the
15594 exit status and convert to the equivalent Posix signal number.
15595 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15596 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15597 * gdbsupport/gdb_wait.c: New file, implements
15598 windows_status_to_termsig.
15599 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15600 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15601
f2302a34
AB
156022020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15603
15604 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15605 show_layout.
15606
6a5206eb
LM
156072020-01-05 Luis Machado <luis.machado@linaro.org>
15608
15609 * aarch64-linux-nat.c
15610 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15611 and bfd_mach_aarch64.
15612
6ec1d75e
PW
156132020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15614
15615 * ui-file.c (stdio_file::can_emit_style_escape)
15616 (tee_file::can_emit_style_escape): Ensure style is used also on
15617 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15618 to gdb_stdout.
15619 * main.c (set_gdb_data_directory): Use file style to output the
15620 warning that the given pathname is not a directory.
15621 * top.c (show_history_filename, gdb_safe_append_history)
15622 (show_gdb_datadir): Use file style.
15623
44f81a76
HD
156242020-01-03 Hannes Domani <ssbssa@yahoo.de>
15625
15626 * solib-target.c (struct lm_info_target):
15627 Change offsets to be a unique_xmalloc_ptr.
15628 (solib_target_relocate_section_addresses): Update.
15629
25057eb0
HD
156302020-01-03 Hannes Domani <ssbssa@yahoo.de>
15631
15632 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15633
6e2118f5
BE
156342020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15635
15636 * MAINTAINERS (Write After Approval): Add myself.
15637
8133c7dc
LM
156382020-01-02 Luis Machado <luis.machado@linaro.org>
15639
15640 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15641 Cell BE architecture.
15642 * target.h (struct target_ops) <thread_architecture>: Likewise.
15643
48189bec
HD
156442020-01-01 Hannes Domani <ssbssa@yahoo.de>
15645
15646 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15647
ead1063b
HD
156482020-01-01 Hannes Domani <ssbssa@yahoo.de>
15649
15650 * MAINTAINERS (Write After Approval): Add myself.
15651
e5d78223
JB
156522020-01-01 Joel Brobecker <brobecker@adacore.com>
15653
15654 * gdbarch.sh: Update copyright year range of generated files.
15655
b811d2c2
JB
156562020-01-01 Joel Brobecker <brobecker@adacore.com>
15657
15658 Update copyright year range in all GDB files.
15659
5f4def5c
JB
156602020-01-01 Joel Brobecker <brobecker@adacore.com>
15661
15662 * copyright.py: Convert to Python 3.
15663
51fd4002
JB
156642020-01-01 Joel Brobecker <brobecker@adacore.com>
15665
15666 * copyright.py: Adapt after move of gnulib directory from gdb
15667 directory to toplevel directory.
15668
5fb651f2
JB
156692020-01-01 Joel Brobecker <brobecker@adacore.com>
15670
15671 * copyright.py (main): Exit if run from the wrong directory.
15672
5dd8bf88
JB
156732020-01-01 Joel Brobecker <brobecker@adacore.com>
15674
15675 * top.c (print_gdb_version): Change copyright year to 2020.
15676
9f71dacb 156772020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 15678
9f71dacb 15679 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 15680
9f71dacb 15681For older changes see ChangeLog-2019.
c906108c
SS
15682\f
15683Local Variables:
15684mode: change-log
15685left-margin: 8
15686fill-column: 74
15687version-control: never
57da7796 15688coding: utf-8
c906108c 15689End: