]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: remove LA_PRINT_TYPEDEF macro
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d3b67c56
AB
12020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * language.h (LA_PRINT_TYPEDEF): Delete.
4 * typeprint.c (typedef_print): Call print_typedef directly on the
5 current_language object.
6
790e2a12
AB
72020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
8
9 * m2-exp.y (m2_parse): Rename to...
10 (m2_language::parser): ...this. Update function signature.
11 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
12 (m2_op_print): Rename to...
13 (m2_language::op_print_tab): ...this, and make const.
14 (exp_descriptor_modula2): Rename to...
15 (m2_language::exp_descriptor_modula2): ...this.
16 (class m2_language): Move to m2-lang.h.
17 (m2_language::language_arch_info): New function, moved out of
18 class declaration.
19 (m2_language::printchar): New function, body from m2_printchar.
20 (m2_language::printstr): New function, moved out of class
21 declaration.
22 (m2_language::emitchar): Likewise.
23 * m2-lang.h (m2_parse): Delete declaration.
24 (m2_print_typedef): Delete declaration.
25 (m2_value_print_inner): Delete declaration.
26 (class m2_language): Class declaration moved from m2-lang.c,
27 larger functions are left in m2-lang.c.
28 * m2-typeprint.c (m2_print_typedef): Rename to...
29 (m2_language::print_typedef): ...this, and update function
30 signature.
31 * m2-valprint.c (m2_value_print_inner): Rename to...
32 (m2_language::value_print_inner): ...this, replace use of
33 LA_PRINT_STRING with a direct call to printstr member function,
34 and update recursive call.
35
b01175fc
AB
362020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
37
38 * language.c (default_is_string_type_p): Delete, implementation
39 moved into auto_or_unknown_language::is_string_type_p.
40 (unk_op_print_tab): Moved into
41 auto_or_unknown_language::opcode_print_table.
42 (unknown_language_arch_info): Delete, implementation moved into
43 auto_or_unknown_language::language_arch_info.
44 (class auto_or_unknown_language): New class, member functions
45 copied from unknown_language class, with some updates.
46 (class unknown_language): Most member functions moved into
47 auto_or_unknown_language class. Inherit from
48 auto_or_unknown_language class.
49 (class auto_language): Inherit from auto_or_unknown_language.
50 Delete most member functions.
51
1a97fe8c
HD
522020-10-22 Hannes Domani <ssbssa@yahoo.de>
53
54 * stabsread.c (read_member_functions): Remove gdb_assert.
55
6b9d0dfd
HD
562020-10-22 Hannes Domani <ssbssa@yahoo.de>
57
58 * gdbtypes.c (init_complex_type): Check target type name.
59
4b4bb603
SM
602020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
61
62 * target-debug.h (target_debug_print_struct_target_ops_p):
63 Remove.
64 (target_debug_print_async_callback_ftype_p): Remove.
65 (target_debug_print_struct_trace_state_variable_p): Remove.
66 (target_debug_print_struct_traceframe_info_p): Remove.
67 (target_debug_print_VEC__btrace_block_s__pp): Remove.
68 (target_debug_print_enum_btrace_format): Remove.
69 (target_debug_print_enum_info_proc_what): Remove.
70 (target_debug_print_thread_info_pp): Remove.
71
24f5300a
SM
722020-10-22 Simon Marchi <simon.marchi@efficios.com>
73
74 * target.h (struct target_ops) <make_corefile_notes>:
75 Change return type to unique pointer.
76 * target.c (dummy_make_corefile_notes): Likewise.
77 * exec.c (struct exec_target) <make_corefile_notes>:
78 Likewise.
79 (exec_target::make_corefile_notes): Likewise.
80 * procfs.c (class procfs_target) <make_corefile_notes>:
81 Likewise.
82 (procfs_do_thread_registers): Adjust to unique pointer.
83 (struct procfs_corefile_thread_data): Add constructor.
84 <note_data>: Change type to unique pointer.
85 (procfs_corefile_thread_callback): Adjust to unique pointer.
86 (procfs_target::make_corefile_notes): Change return type to
87 unique pointer.
88 * target-delegates.c: Re-generate.
89 * gcore.c (write_gcore_file_1): Adjust.
90 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
91 New.
92
5fb4027f
TV
932020-10-22 Tom de Vries <tdevries@suse.de>
94
95 * block.c (find_block_in_blockvector): Make sure the returned block
96 contains pc.
97
4a636814
SM
982020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
99
100 PR gdb/26693
101 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
102 parameter.
103 (load_cu): Pass existing CU.
104 (process_imported_unit_die): Likewise.
105 (follow_die_offset): Likewise.
106
1bd57575
LM
1072020-10-22 Luis Machado <luis.machado@linaro.org>
108
109 * corelow.c (core_target::xfer_partial): Also check for an empty
110 m_core_unavailable_mappings vector.
111
6b4c676c
AB
1122020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
113
114 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
115 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
116 * f-exp.y (arglist): Allow for a series of subranges.
117 (subrange): Add cases for subranges with strides.
118 * f-lang.c (value_f90_subarray): Catch use of array strides and
119 throw an error.
120 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
121
f2d8e4c5
AB
1222020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
123
124 * expprint.c (print_subexp_standard): Change enum range_type to
125 range_flag and rename variables to match.
126 (dump_subexp_body_standard): Likewise.
127 * expression.h (enum range_type): Rename to...
128 (enum range_flag): ...this.
129 (range_types): Rename to...
130 (range_flags): ...this.
131 * f-lang.c (value_f90_subarray): Change enum range_type to
132 range_flag and rename variables to match.
133 * parse.c (operator_length_standard): Likewise.
134 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
135 range_type to range_flag.
136 * rust-lang.c (rust_evaluate_funcall): Likewise.
137 (rust_range): Likewise.
138 (rust_compute_range): Likewise.
139 (rust_subscript): Likewise.
140
2f1b18db
AB
1412020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
142
143 * expprint.c (print_subexp_standard): Update to reflect changes to
144 enum range_type.
145 (dump_subexp_body_standard): Likewise.
146 * expression.h (enum range_type): Convert to a bit field enum, and
147 make the enum unsigned.
148 * f-exp.y (subrange): Update to reflect changes to enum
149 range_type.
150 * f-lang.c (value_f90_subarray): Likewise.
151 * parse.c (operator_length_standard): Likewise.
152 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
153 * rust-lang.c (rust_range): Likewise.
154 (rust_compute_range): Likewise.
155 (rust_subscript): Likewise.
156
a46d1843
SM
1572020-10-21 Simon Marchi <simon.marchi@efficios.com>
158
159 * infrun.c (displaced_step_in_progress_thread): Fix comment.
160 (displaced_step_in_progress): Fix comment.
161
c21f37a8
SM
1622020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
163
164 * gdbarch.sh (make_corefile_notes): Return unique pointer.
165 * gdbarch.c: Re-generate.
166 * gdbarch.h: Re-generate.
167 * gcore.c (write_gcore_file_1): Adjust.
168 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
169 constructor.
170 <note_data>: Change type to unique pointer.
171 <abort_iteration>: Change type to bool.
172 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
173 (fbsd_collect_thread_registers): Return void, adjust.
174 (struct fbsd_corefile_thread_data): Add construtor.
175 <note_data>: Change type to unique pointer.
176 (fbsd_corefile_thread): Adjust.
177 (fbsd_make_corefile_notes): Return unique pointer, adjust.
178 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
179 to unique pointer, adjust.
180 (struct linux_collect_regset_section_cb_data): Add constructor.
181 <note_data>: Change type to unique pointer.
182 <abort_iteration>: Change type to bool.
183 (linux_collect_thread_registers): Return void, adjust.
184 (struct linux_corefile_thread_data): Add constructor.
185 <note_data>: Change type to unique pointer.
186 (linux_corefile_thread): Adjust.
187 (linux_make_corefile_notes): Return unique pointer, adjust.
188
07fbbd01
SM
1892020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
190
191 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
192 * gdbarch.c: Re-generate.
193 * gdbarch.h: Re-generate.
194 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
195 bool.
196 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
197 Likewise.
198 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
199 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
200 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
201 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
202
39535193
SM
2032020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
204
205 * gdbarch.sh: Make generated predicates return bool.
206 * gdbarch.c: Re-generate.
207 * gdbarch.h: Re-generate.
208
ad523d01
TT
2092020-10-20 Tom Tromey <tom@tromey.com>
210
211 * varobj-iter.h (struct varobj_item): Remove typedef.
212
c4464ade
SM
2132020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
214
215 * infrun.c (currently_stepping): Change int to bool
216 (maybe_software_singlestep): Likewise.
217 (show_stop_on_solib_events): Likewise.
218 (stepping_past_nonsteppable_watchpoint): Likewise.
219 (displaced_step_in_progress_any_inferior): Likewise.
220 (displaced_step_in_progress_thread): Likewise.
221 (keep_going_stepped_thread): Likewise.
222 (thread_still_needs_step_over): Likewise.
223 (start_step_over): Likewise.
224 (do_target_resume): Likewise.
225 (resume_1): Likewise.
226 (clear_proceed_status): Likewise.
227 (thread_still_needs_step_over_bp): Likewise.
228 (proceed): Likewise.
229 (switch_back_to_stepped_thread): Likewise.
230 (adjust_pc_after_break): Likewise.
231 (stepped_in_from): Likewise.
232 (handle_stop_requested): Likewise.
233 (handle_syscall_event): Likewise.
234 (handle_no_resumed): Likewise.
235 (handle_inferior_event): Likewise.
236 (finish_step_over): Likewise.
237 (handle_signal_stop): Likewise.
238 (process_event_stop_test): Likewise.
239
2eb20436
SM
2402020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
241
242 * infrun.c (get_displaced_stepping_state): Fix comment.
243
e0c45ded
AS
2442020-10-20 Andreas Schwab <schwab@linux-m68k.org>
245
246 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
247
22cc388e
TT
2482020-10-19 Tom Tromey <tromey@adacore.com>
249
250 PR tui/26719
251 * tui/tui-winsource.h (struct tui_source_window_base)
252 <refresh_window>: Rename from refresh_pad.
253 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
254 Rename from refresh_pad.
255 (tui_source_window_base::show_source_content)
256 (tui_source_window_base::do_scroll_horizontal): Update.
257
3c6eb4d4
TBA
2582020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
259
260 * thread.c (_initialize_thread): Fine-tune the help text of
261 'info threads'.
262
26703721
TBA
2632020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
264
265 * frame.c: Remove the unused 'uinteger_option_def' type alias.
266
61c26be8
MS
2672020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
268
269 * breakpoint.c (handle_jit_event): Add an argument, change how
270 `jit_event_handler` is called.
271
932539d7
TT
2722020-10-17 Tom Tromey <tom@tromey.com>
273
274 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
275 (scan_xcoff_symtab): Update.
276 * psymtab.h (class psymtab_storage) <global_psymbols,
277 static_psymbols, current_global_psymbols,
278 current_static_psymbols>: Remove.
279 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
280 (match_partial_symbol, lookup_partial_symbol): Update.
281 (print_partial_symbols): Change parameters.
282 (dump_psymtab, recursively_search_psymtabs)
283 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
284 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
285 (concat): Remove.
286 (end_psymtab_common): Simplify.
287 (append_psymbol_to_list): Change parameters.
288 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
289 (init_psymbol_list): Simplify.
290 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
291 * psympriv.h (struct partial_symtab) <empty>: New method.
292 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
293 Remove.
294 <global_psymbols, static_psymbols>: New members.
295 <add_psymbol>: New methods.
296 (add_psymbol_to_list): Don't declare.
297 (psymbol_placement): Move earlier.
298 * mdebugread.c (parse_partial_symbols): Update.
299 (handle_psymbol_enumerators): Change parameters.
300 (mdebug_expand_psymtab): Update.
301 * dwarf2/read.c (process_psymtab_comp_unit_reader)
302 (add_partial_symbol): Update.
303 * dwarf2/index-write.c (write_psymbols): Change parameters.
304 (write_one_signatured_type): Update.
305 (recursively_count_psymbols): Update.
306 (recursively_write_psymbols): Update.
307 (class debug_names) <recursively_write_psymbols>: Update.
308 <write_psymbols>: Change parameters.
309 <write_one_signatured_type>: Update.
310 * dbxread.c (read_dbx_symtab): Update.
311 (dbx_end_psymtab): Use partial_symtab::empty.
312 * ctfread.c (struct ctf_context) <pst>: New member.
313 (create_partial_symtab): Set it.
314 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
315 (scan_partial_symbols): Use the psymtab's context. Update.
316
cfabbd35
TT
3172020-10-17 Tom Tromey <tom@tromey.com>
318
319 * valprint.c (generic_value_print): Remove comment.
320 * m2-valprint.c (m2_value_print_inner): Remove comment.
321 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
322 type.
323
520596f2
TV
3242020-10-17 Tom de Vries <tdevries@suse.de>
325
326 PR symtab/26317
327 * source.c (select_source_symtab): Handling sal.symtab == NULL for
328 symbol main.
329
76547ab3
TV
3302020-10-14 Tom de Vries <tdevries@suse.de>
331
332 PR gdb/26733
333 * solib.c (solib_contains_address_p): Handle
334 'solib->sections == nullptr'.
335
d3a07122
SM
3362020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
337
338 PR gdb/26642
339 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
340 target can't do async.
341 * target.c (target_wait): Assert that we don't pass
342 TARGET_WNOHANG to a target that can't async.
343
1b71cfcf
KR
3442020-10-13 Kamil Rytarowski <n54@gmx.com>
345
346 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
347 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
348 * alpha-bsd-nat.c: Adjust include.
349 * alpha-bsd-tdep.h: Adjust comment.
350 * alpha-nbsd-tdep.c: Rename to ...
351 * alpha-netbsd-tdep.c: ... this, adjust include.
352 * amd64-nbsd-nat.c: Rename to ...
353 * amd64-netbsd-nat.c: ... this, adjust include.
354 * amd64-nbsd-tdep.c: Rename to ...
355 * amd64-netbsd-tdep.c: ... this, adjust include.
356 * amd64-tdep.h: Adjust include.
357 * arm-nbsd-nat.c: Rename to ...
358 * arm-netbsd-nat.c: ... this, adjust include.
359 * arm-nbsd-tdep.c: Rename to ...
360 * arm-netbsd-tdep.c: ... this, adjust include.
361 * arm-nbsd-tdep.h: Rename to ...
362 * arm-netbsd-tdep.h: ... this, adjust include.
363 * configure.nat: Adjust file lists.
364 * configure.tgt: Likewise.
365 * hppa-nbsd-nat.c: Rename to ...
366 * hppa-netbsd-nat.c: ... this, adjust include.
367 * hppa-nbsd-tdep.c: Rename to ...
368 * hppa-netbsd-tdep.c: ... this, adjust include.
369 * i386-nbsd-nat.c: Rename to ...
370 * i386-netbsd-nat.c: ... this, adjust include.
371 * i386-nbsd-tdep.c: Rename to ...
372 * i386-netbsd-tdep.c: ... this, adjust include.
373 * m68k-bsd-nat.c: Adjust include.
374 * mips-nbsd-nat.c: Rename to ...
375 * mips-netbsd-nat.c: ... this, adjust include.
376 * mips-nbsd-tdep.c: Rename to ...
377 * mips-netbsd-tdep.c: ... this, adjust include.
378 * mips-nbsd-tdep.h: Rename to ...
379 * mips-netbsd-tdep.h: ... this.
380 * nbsd-nat.c: Rename to ...
381 * netbsd-nat.c: ... this, adjust include.
382 * nbsd-nat.h: Rename to ...
383 * netbsd-nat.h: ... this, adjust include.
384 * nbsd-tdep.c: Rename to ...
385 * netbsd-tdep.c: ... this, adjust include.
386 * nbsd-tdep.h: Rename to ...
387 * netbsd-tdep.h: ... this.
388 * ppc-nbsd-nat.c: Rename to ...
389 * ppc-netbsd-nat.c: ... this, adjust include.
390 * ppc-nbsd-tdep.c: Rename to ...
391 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
392 * ppc-nbsd-tdep.h: Rename to ...
393 * ppc-netbsd-tdep.h: ... this.
394 * sh-nbsd-nat.c: Rename to ...
395 * sh-netbsd-nat.c: ... this, adjust include.
396 * sh-nbsd-tdep.c: Rename to ...
397 * sh-netbsd-tdep.c: ... this, adjust include.
398 * sparc-nbsd-nat.c: Rename to ...
399 * sparc-netbsd-nat.c: ... this.
400 * sparc-nbsd-tdep.c: Rename to ...
401 * sparc-netbsd-tdep.c: ... this, adjust include.
402 * sparc64-nbsd-nat.c: Rename to ...
403 * sparc64-netbsd-nat.c: ... this.
404 * sparc64-nbsd-tdep.c: Rename to ...
405 * sparc64-netbsd-tdep.c: ... this, adjust include.
406 * sparc64-tdep.h: Adjust comment.
407 * vax-bsd-nat.c: Adjust include.
408 * vax-nbsd-tdep.c: Rename to ...
409 * vax-netbsd-tdep.c: ... this, adjust include.
410
d7a78e5c
TT
4112020-10-12 Tom Tromey <tom@tromey.com>
412
413 * target.h (struct target_ops) <get_section_table>: Update.
414 (target_get_section_table): Update.
415 * target.c (target_get_section_table, target_section_by_addr)
416 (memory_xfer_partial_1): Update.
417 * target-section.h (target_section_table): Now an alias.
418 * target-delegates.c: Rebuild.
419 * target-debug.h (target_debug_print_target_section_table_p):
420 Rename from target_debug_print_struct_target_section_table_p.
421 * symfile.c (build_section_addr_info_from_section_table): Update.
422 * solib.c (solib_map_sections, solib_contains_address_p): Update.
423 * solib-svr4.c (scan_dyntag): Update.
424 * solib-dsbt.c (scan_dyntag): Update.
425 * remote.c (remote_target::remote_xfer_live_readonly_partial):
426 Update.
427 * record-full.c (record_full_core_target::xfer_partial): Update.
428 * progspace.h (struct program_space) <target_sections>: Update.
429 * exec.h (print_section_info): Update.
430 * exec.c (exec_target::close, build_section_table)
431 (add_target_sections, add_target_sections_of_objfile)
432 (remove_target_sections, exec_on_vfork)
433 (section_table_available_memory)
434 (section_table_xfer_memory_partial)
435 (exec_target::get_section_table, exec_target::xfer_partial)
436 (print_section_info, set_section_command)
437 (exec_set_section_address, exec_target::has_memory): Update.
438 * corelow.c (core_target::build_file_mappings)
439 (core_target::xfer_partial, core_target::info_proc_mappings)
440 (core_target::info_proc_mappings): Update.
441 * bfd-target.c (class target_bfd): Update
442
eda214ce
TT
4432020-10-12 Tom Tromey <tom@tromey.com>
444
445 * progspace.c (program_space::~program_space): Don't call
446 clear_section_table.
447 * exec.h (clear_section_table): Don't declare.
448 * exec.c (exec_target::close): Update.
449 (clear_section_table): Remove.
450
91840ee3
TT
4512020-10-12 Tom Tromey <tom@tromey.com>
452
453 * exec.c (add_target_sections_of_objfile): Simplify.
454
2d128614
TT
4552020-10-12 Tom Tromey <tom@tromey.com>
456
457 * solib.c (solib_map_sections): Update.
458 * record-full.c (record_full_core_open_1): Update.
459 * exec.h (build_section_table): Return a target_section_table.
460 * exec.c (exec_file_attach): Update.
461 (build_section_table): Return a target_section_table.
462 * corelow.c (core_target::core_target): Update.
463 * bfd-target.c (target_bfd::target_bfd): Update.
464
bb2a6777
TT
4652020-10-12 Tom Tromey <tom@tromey.com>
466
467 * target.c (target_section_by_addr, memory_xfer_partial_1):
468 Update.
469 * target-section.h (struct target_section_table): Use
470 std::vector.
471 * symfile.h (build_section_addr_info_from_section_table): Take a
472 target_section_table.
473 * symfile.c (build_section_addr_info_from_section_table): Take a
474 target_section_table.
475 * solist.h (struct so_list) <sections>: Change type.
476 <sections_end>: Remove.
477 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
478 (solib_contains_address_p): Update.
479 * solib-svr4.c (scan_dyntag): Update.
480 * solib-dsbt.c (scan_dyntag): Update.
481 * remote.c (remote_target::remote_xfer_live_readonly_partial):
482 Update.
483 * record-full.c (record_full_core_start, record_full_core_end):
484 Remove.
485 (record_full_core_sections): New global.
486 (record_full_core_open_1, record_full_core_target::xfer_partial):
487 Update.
488 * exec.h (build_section_table, section_table_xfer_memory_partial)
489 (add_target_sections): Take a target_section_table.
490 * exec.c (exec_file_attach, clear_section_table): Update.
491 (resize_section_table): Remove.
492 (build_section_table, add_target_sections): Take a
493 target_section_table.
494 (add_target_sections_of_objfile, remove_target_sections)
495 (exec_on_vfork): Update.
496 (section_table_available_memory): Take a target_section_table.
497 (section_table_read_available_memory): Update.
498 (section_table_xfer_memory_partial): Take a target_section_table.
499 (print_section_info, set_section_command)
500 (exec_set_section_address, exec_target::has_memory): Update.
501 * corelow.c (class core_target) <m_core_section_table,
502 m_core_file_mappings>: Remove braces.
503 <~core_target>: Remove.
504 (core_target::core_target): Update.
505 (core_target::~core_target): Remove.
506 (core_target::build_file_mappings)
507 (core_target::xfer_memory_via_mappings)
508 (core_target::xfer_partial, core_target::info_proc_mappings):
509 Update.
510 * bfd-target.c (target_bfd::xfer_partial): Update.
511 (target_bfd::target_bfd): Update.
512 (target_bfd::~target_bfd): Remove.
513
7b466b10
TT
5142020-10-12 Tom Tromey <tom@tromey.com>
515
516 * target.h (struct target_section, struct target_section_table):
517 Move to target-section.h.
518 * target-section.h: New file.
519
87a37e5e
PA
5202020-10-12 Pedro Alves <pedro@palves.net>
521
522 PR exp/26602
523 * valops.c (struct struct_field_searcher): New.
524 (update_search_result): Rename to ...
525 (struct_field_searcher::update_result): ... this. Simplify
526 prototype. Record all found fields.
527 (do_search_struct_field): Rename to ...
528 (struct_field_searcher::search): ... this. Simplify prototype.
529 Maintain stack of visited baseclass path. Call update_result for
530 fields too. Keep searching fields in baseclasses instead of
531 stopping at the first found field.
532 (search_struct_field): Use struct_field_searcher. When looking
533 for fields, report ambiguous access attempts.
534
9370fd51
AB
5352020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
536
537 * frame.c (inside_main_func): Check full symbols as well as
538 minimal symbols.
539
59c8a30b
JB
5402020-10-09 Joel Brobecker <brobecker@adacore.com>
541
542 * ada-lang.c (advance_wild_match): Rewrite the function's
543 description. Change the type of target0, t0 and t1 to char.
544
7c184d33
TT
5452020-10-09 Tom Tromey <tromey@adacore.com>
546
547 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
548
5c4258f4
TT
5492020-10-09 Tom Tromey <tromey@adacore.com>
550
551 * ada-lang.h (ada_encode): Return std::string.
552 * ada-lang.c (ada_encode_1): Return std::string.
553 (ada_encode): Likewise.
554 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
555 Update.
556 * ada-exp.y (block_lookup, write_var_or_type): Update.
557
3d87245c
HD
5582020-10-09 Hannes Domani <ssbssa@yahoo.de>
559
560 PR exp/26714
561 * printcmd.c (print_formatted): Handle void results as
562 unformatted prints.
563
bbb826f5
AB
5642020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
565
566 * arch/aarch32.c (aarch32_create_target_description): Release the
567 target_desc_up as late as possible.
568 * arch/aarch64.c (aarch64_create_target_description): Likewise.
569 * arch/amd64.c (amd64_create_target_description): Likewise.
570 * arch/arc.c (arc_create_target_description): Return a
571 target_desc_up, don't release it.
572 * arch/arc.h (arc_create_target_description): Update declaration.
573 (arc_lookup_target_description): Move target_desc_up into the
574 cache, and return a borrowed pointer.
575 * arch/arm.c (arm_create_target_description): Release the
576 target_desc_up as late as possible.
577 * arch/i386.c (i386_create_target_description): Likewise.
578 * arch/riscv.h (riscv_create_target_description): Update
579 declaration to match definition.
580 * arch/tic6x.c (tic6x_create_target_description): Release the
581 target_desc_up as late as possible.
582
361cb219
AB
5832020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
584
585 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
586 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
587
f5c4b229
JV
5882020-10-09 Jan Vrany <jan.vrany@labware.com>
589
590 * source.c (directory_command): Notify observers that "directories"
591 parameter has changed.
592
b2701685
TT
5932020-10-08 Tom Tromey <tom@tromey.com>
594
595 * cli/cli-cmds.c (print_disassembly): Style function name and
596 addresses. Add _() wrappers.
597
ada508b6
SV
5982020-10-08 Shahab Vahedi <shahab@synopsys.com>
599
600 * NEWS: Mention ARC support in GDBserver.
601
51a948fd
AB
6022020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
603
604 * arch/aarch32.c (aarch32_create_target_description): Release
605 unique_ptr returned from allocate_target_description.
606 * arch/aarch64.c (aarch64_create_target_description): Likewise.
607 * arch/amd64.c (amd64_create_target_description): Likewise.
608 * arch/arc.c (arc_create_target_description): Likewise.
609 * arch/arm.c (arm_create_target_description): Likewise.
610 * arch/i386.c (i386_create_target_description): Likewise.
611 * arch/riscv.c (riscv_create_target_description): Update return
612 type. Handle allocate_target_description returning a unique_ptr.
613 (riscv_lookup_target_description): Update to handle unique_ptr.
614 * arch/tic6x.c (tic6x_create_target_description): Release
615 unique_ptr returned from allocate_target_description.
616 * features/microblaze-with-stack-protect.c: Regenerate.
617 * features/microblaze.c: Regenerate.
618 * features/mips-dsp-linux.c: Regenerate.
619 * features/mips-linux.c: Regenerate.
620 * features/mips64-dsp-linux.c: Regenerate.
621 * features/mips64-linux.c: Regenerate.
622 * features/nds32.c: Regenerate.
623 * features/nios2.c: Regenerate.
624 * features/or1k.c: Regenerate.
625 * features/rs6000/powerpc-32.c: Regenerate.
626 * features/rs6000/powerpc-32l.c: Regenerate.
627 * features/rs6000/powerpc-403.c: Regenerate.
628 * features/rs6000/powerpc-403gc.c: Regenerate.
629 * features/rs6000/powerpc-405.c: Regenerate.
630 * features/rs6000/powerpc-505.c: Regenerate.
631 * features/rs6000/powerpc-601.c: Regenerate.
632 * features/rs6000/powerpc-602.c: Regenerate.
633 * features/rs6000/powerpc-603.c: Regenerate.
634 * features/rs6000/powerpc-604.c: Regenerate.
635 * features/rs6000/powerpc-64.c: Regenerate.
636 * features/rs6000/powerpc-64l.c: Regenerate.
637 * features/rs6000/powerpc-7400.c: Regenerate.
638 * features/rs6000/powerpc-750.c: Regenerate.
639 * features/rs6000/powerpc-860.c: Regenerate.
640 * features/rs6000/powerpc-altivec32.c: Regenerate.
641 * features/rs6000/powerpc-altivec32l.c: Regenerate.
642 * features/rs6000/powerpc-altivec64.c: Regenerate.
643 * features/rs6000/powerpc-altivec64l.c: Regenerate.
644 * features/rs6000/powerpc-e500.c: Regenerate.
645 * features/rs6000/powerpc-e500l.c: Regenerate.
646 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
647 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
648 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
649 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
650 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
651 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
652 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
653 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
654 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
655 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
656 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
657 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
658 * features/rs6000/powerpc-vsx32.c: Regenerate.
659 * features/rs6000/powerpc-vsx32l.c: Regenerate.
660 * features/rs6000/powerpc-vsx64.c: Regenerate.
661 * features/rs6000/powerpc-vsx64l.c: Regenerate.
662 * features/rs6000/rs6000.c: Regenerate.
663 * features/rx.c: Regenerate.
664 * features/s390-gs-linux64.c: Regenerate.
665 * features/s390-linux32.c: Regenerate.
666 * features/s390-linux32v1.c: Regenerate.
667 * features/s390-linux32v2.c: Regenerate.
668 * features/s390-linux64.c: Regenerate.
669 * features/s390-linux64v1.c: Regenerate.
670 * features/s390-linux64v2.c: Regenerate.
671 * features/s390-te-linux64.c: Regenerate.
672 * features/s390-tevx-linux64.c: Regenerate.
673 * features/s390-vx-linux64.c: Regenerate.
674 * features/s390x-gs-linux64.c: Regenerate.
675 * features/s390x-linux64.c: Regenerate.
676 * features/s390x-linux64v1.c: Regenerate.
677 * features/s390x-linux64v2.c: Regenerate.
678 * features/s390x-te-linux64.c: Regenerate.
679 * features/s390x-tevx-linux64.c: Regenerate.
680 * features/s390x-vx-linux64.c: Regenerate.
681 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
682 from allocate_target_description.
683 * target-descriptions.c (allocate_target_description): Update
684 return type.
685 (print_c_tdesc::visit_pre): Release unique_ptr returned from
686 allocate_target_description.
687
485c47e5
TT
6882020-10-07 Tom Tromey <tromey@adacore.com>
689
690 * unittests/search-memory-selftests.c: New file.
691 * Makefile.in (SELFTESTS_SRCS): Add
692 unittests/search-memory-selftests.c.
693
3a135a91
TT
6942020-10-07 Tom Tromey <tromey@adacore.com>
695
696 PR gdb/16930:
697 * findcmd.c (_initialize_mem_search): Mention that the range is
698 inclusive.
699
4a72de73
TT
7002020-10-07 Tom Tromey <tromey@adacore.com>
701
702 * target.h (simple_search_memory): Don't declare.
703 * target.c (simple_search_memory): Move to gdbsupport.
704 (default_search_memory): Update.
705 * remote.c (remote_target::search_memory): Update.
706
a038ffd8
SM
7072020-10-07 Simon Marchi <simon.marchi@efficios.com>
708
709 * Makefile.in (COMPILE): Add CXXFLAGS.
710 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
711 (check-headers): Add CXXFLAGS.
712
cc463201
AK
7132020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
714
715 * arc-linux-tdep.h: New file.
716 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
717 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
718 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
719 arc_linux_gregset, arc_linux_v2_regset,
720 arc_linux_iterate_over_regset_sections,
721 arc_linux_core_read_description): Implement.
722 (arc_linux_init_osabi): Set iterate_over_regset_sections.
723 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
724 (arc_gdbarch_features_create): Add.
725 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
726
e4bd363f
SV
7272020-10-07 Shahab Vahedi <shahab@synopsys.com>
728
729 * arch/arc.h: Rename "arc_gdbarch_features" to
730 "arc_arch_features".
731 * arc-tdep.h: Likewise.
732 * arc-tdep.c: Likewise.
733
b68bef99
TBA
7342020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
735
736 * infcmd.c (attach_command): Remove the redundant call to
737 `clear_proceed_status`.
738
4641551a
KR
7392020-10-07 Kamil Rytarowski <n54@gmx.com>
740
741 * nat/netbsd-nat.c (write_memory, read_memory): Update.
742
91e5e8db
KR
7432020-10-07 Kamil Rytarowski <n54@gmx.com>
744
745 * nat/netbsd-nat.c (write_memory, read_memory): Add.
746 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
747 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
748
64c03bdb
SM
7492020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
750
751 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
752 (_initialize_break_catch_sig): Don't allocate array.
753
31a8f60f
AB
7542020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
755
756 * symtab.c (find_pc_line): Return unmapped addresses when the
757 requested address is also unmapped.
758
9e6dbd8b
SM
7592020-10-05 Simon Marchi <simon.marchi@efficios.com>
760
761 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
762 tui/tui-out.h.
763
a1d217e8
SM
7642020-10-05 Simon Marchi <simon.marchi@efficios.com>
765
766 * amd64-windows-tdep.c (amd64_windows_return_value): Use
767 type::is_vector instead of TYPE_VECTOR.
768
7d144117
SM
7692020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
770
771 * auto-load.c (auto_load_objfile_script_1): Don't use
772 debugfile_holder as temporary variable when stripping drive
773 letter.
774
cd096ec8
HD
7752020-10-05 Hannes Domani <ssbssa@yahoo.de>
776
777 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
778 Add TYPE_CODE_COMPLEX.
779 (amd64_windows_return_value): Fix types returned via XMM0.
780
b58e7f72
AH
7812020-10-05 Alan Hayward <alan.hayward@arm.com>
782
783 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
784 AArch64/ARM maintainers.
785
8d378f27
SM
7862020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
787
788 * NEWS: Mention set/show debug event-loop.
789
d5519913
TT
7902020-10-02 Tom Tromey <tromey@adacore.com>
791
792 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
793 REG_EXTENDED.
794
18b67edc
SM
7952020-10-02 Simon Marchi <simon.marchi@efficios.com>
796
797 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
798 * procfs.c (procfs_inferior_created): Remove.
799 (_initialize_procfs): Don't register procfs_inferior_created.
800
6b01403b
SM
8012020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
802
803 * async-event.c (invoke_async_signal_handlers): Add debug
804 print.
805 (check_async_event_handlers): Likewise.
806 * event-top.c (show_debug_event_loop): New function.
807 (_initialize_event_top): Register "set debug event-loop"
808 setting.
809
ba988419
SM
8102020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
811
812 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
813 * debug.h: Remove.
814 * infrun.c: Include gdbsupport/common-debug.h.
815 * linux-nat.c: Likewise.
816
db20ebdf
SM
8172020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
818
819 * async-event.h (create_async_signal_handler): Add name
820 parameter.
821 (create_async_event_handler): Likewise.
822 * async-event.c (struct async_signal_handler) <name>: New field.
823 (struct async_event_handler) <name>: New field.
824 (create_async_signal_handler): Assign name.
825 (create_async_event_handler): Assign name.
826 * event-top.c (async_init_signals): Pass name when creating
827 handler.
828 * infrun.c (_initialize_infrun): Likewise.
829 * record-btrace.c (record_btrace_push_target): Likewise.
830 * record-full.c (record_full_open): Likewise.
831 * remote-notif.c (remote_notif_state_allocate): Likewise.
832 * remote.c (remote_target::open_1): Likewise.
833 * tui/tui-win.c (tui_initialize_win): Likewise.
834
2554f6f5
SM
8352020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
836
837 * async-event.c (initialize_async_signal_handlers): Pass name to
838 add_file_handler
839 * event-top.c (ui_register_input_event_handler): Likewise.
840 * linux-nat.c (linux_nat_target::async): Likewise.
841 * run-on-main-thread.c (_initialize_run_on_main_thread):
842 Likewise
843 * ser-base.c (reschedule): Likewise.
844 (ser_base_async): Likewise.
845 * tui/tui-io.c: Likewise.
846 * top.h (struct ui) <num>: New field.
847 * top.c (highest_ui_num): New variable.
848 (ui::ui): Initialize num.
849
a7aba266
SM
8502020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
851
852 * observable.h <inferior_created>: Remove parameters. Update all
853 listeners.
854 * inferior.h (post_create_inferior): Remove target parameter.
855 Update all callers.
856
048fde1e 8572020-10-02 Nitika Achra <Nitika.Achra@amd.com>
858
859 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
860 and DW_MACRO_undef_strx.
861 (dwarf_decode_macros): Likewise
862 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
863 which is the value of DW_AT_str_offsets_base.
864 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
865 str_offsets_base.
866
064280be
KR
8672020-10-01 Kamil Rytarowski <n54@gmx.com>
868
869 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
870
6ff33035
KR
8712020-10-01 Kamil Rytarowski <n54@gmx.com>
872
873 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
874 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
875
1eb6eb79
KR
8762020-10-01 Kamil Rytarowski <n54@gmx.com>
877
878 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
879
95eb9e54
TV
8802020-09-30 Tom de Vries <tdevries@suse.de>
881
882 PR symtab/26683
883 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
884
cae21f8e
TT
8852020-09-30 Tom Tromey <tromey@adacore.com>
886
887 * dwarf2/read.c (handle_variant): Use constant_value.
888
529908cb
TT
8892020-09-29 Tom Tromey <tom@tromey.com>
890
891 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
892 (read_file_scope, dwarf2_get_pc_bounds)
893 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
894 (read_structure_type, handle_struct_member_die)
895 (read_enumeration_type, read_array_type, read_set_type)
896 (read_tag_pointer_type, read_tag_reference_type)
897 (read_subroutine_type, read_base_type, read_subrange_type)
898 (read_full_die_1, partial_die_info::read)
899 (partial_die_info::read, by, new_symbol)
900 (dwarf2_const_value_data, dwarf2_const_value_attr)
901 (dump_die_shallow, dwarf2_fetch_constant_bytes)
902 (prepare_one_comp_unit): Update.
903 * dwarf2/attribute.h (DW_UNSND): Remove.
904
c45bc3f8
TT
9052020-09-29 Tom Tromey <tom@tromey.com>
906
907 * dwarf2/read.c (read_func_scope, prototyped_function_p)
908 (read_subroutine_type, partial_die_info::read)
909 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
910 (dwarf2_add_member_fn): Update.
911 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
912 * dwarf2/attribute.c (attribute::as_boolean): New method.
913
23dca5c3
TT
9142020-09-29 Tom Tromey <tom@tromey.com>
915
916 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
917 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
918 method.
919 * dwarf2/attribute.c (attribute::as_virtuality): New method.
920
52c14d11
TT
9212020-09-29 Tom Tromey <tom@tromey.com>
922
923 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
924 the attribute's form.
925
e8e5c158
TT
9262020-09-29 Tom Tromey <tom@tromey.com>
927
928 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
929 (dwarf2_add_member_fn): Update.
930 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
931 * dwarf2/attribute.c (attribute::defaulted): New method, from
932 is_valid_DW_AT_defaulted.
933
d4df075e
TT
9342020-09-29 Tom Tromey <tom@tromey.com>
935
936 * dwarf2/read.c (dw2_get_file_names_reader)
937 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
938 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
939 (dwarf2_symbol_mark_computed): Use as_unsigned.
940 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
941 method.
942 <form_is_section_offset>: Update comment.
943
bf23a268
TT
9442020-09-29 Tom Tromey <tom@tromey.com>
945
946 * dwarf2/read.c (dwarf2_access_attribute): Rename from
947 dwarf2_default_access_attribute. Look up attribute.
948 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
949 Update.
950
7a5f294d
TT
9512020-09-29 Tom Tromey <tom@tromey.com>
952
953 * dwarf2/read.c (skip_one_die): Update.
954 (read_full_die_1): Change how reprocessing is done.
955 (partial_die_info::read): Update.
956 (read_attribute_value): Remove need_reprocess parameter.
957 (read_attribute): Likewise.
958 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
959 New method.
960
36d378cf
TT
9612020-09-29 Tom Tromey <tom@tromey.com>
962
963 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
964 (dwarf2_const_value_attr, dump_die_shallow)
965 (dwarf2_fetch_constant_bytes): Update.
966 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
967 comment.
968 <set_address>: New method.
969 (DW_ADDR): Remove.
970 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
971 (attribute::as_string, attribute::as_address): Add assert.
972
fe56917a
TT
9732020-09-29 Tom Tromey <tom@tromey.com>
974
975 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
976 (read_attribute_reprocess, read_attribute_value): Update.
977 (read_attribute): Clear requires_reprocessing.
978 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
979 form_requires_reprocessing>: New methods.
980 <string_init>: Clear requires_reprocessing.
981 <set_unsigned_reprocess>: New method.
982 <name>: Shrink by one bit.
983 <requires_reprocessing>: New member.
984 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
985 method.
986
414ad644
TT
9872020-09-29 Tom Tromey <tom@tromey.com>
988
989 * dwarf2/read.c (read_attribute_value): Update.
990 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
991 set_unsigned>: New methods.
992 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
993
1bc397c5
TT
9942020-09-29 Tom Tromey <tom@tromey.com>
995
996 * dwarf2/read.c (get_alignment, read_array_order)
997 (read_attribute_value, dwarf2_const_value_attr)
998 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
999 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1000 New methods.
1001 (DW_SND): Remove.
1002
630ed6b9
TT
10032020-09-29 Tom Tromey <tom@tromey.com>
1004
1005 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1006 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1007 Update.
1008 * dwarf2/attribute.h (struct attribute) <as_signature,
1009 set_signature>: New methods.
1010 (DW_SIGNATURE): Remove.
1011
9d2246fc
TT
10122020-09-29 Tom Tromey <tom@tromey.com>
1013
1014 * dwarf2/read.c (read_call_site_scope)
1015 (handle_data_member_location, dwarf2_add_member_fn)
1016 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1017 (partial_die_info::read, read_attribute_value)
1018 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1019 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1020 (dwarf2_symbol_mark_computed): Update.
1021 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1022 methods.
1023 (DW_BLOCK): Remove.
1024 * dwarf2/attribute.c (attribute::form_is_block): Add
1025 DW_FORM_data16.
1026
c6481205
TT
10272020-09-29 Tom Tromey <tom@tromey.com>
1028
1029 * dwarf2/read.c (read_cutu_die_from_dwo)
1030 (read_attribute_reprocess, read_attribute_value, read_attribute)
1031 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1032 (dwarf2_fetch_constant_bytes): Update.
1033 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1034 <set_string_noncanonical, set_string_canonical>: New methods.
1035 <string_is_canonical>: Update comment.
1036 <canonical_string_p>: Add assert.
1037 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1038 * dwarf2/attribute.c (attribute::form_is_string): New method.
1039 (attribute::string): Use it.
1040
3b64bf15
TT
10412020-09-29 Tom Tromey <tom@tromey.com>
1042
1043 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1044 (dump_die_shallow): Use canonical_string_p.
1045 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1046 method.
1047
2c830f54
TT
10482020-09-29 Tom Tromey <tom@tromey.com>
1049
1050 * dwarf2/read.c (partial_die_info::read)
1051 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1052 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1053 attribute::as_string.
1054
6c412691
TT
10552020-09-29 Tom Tromey <tom@tromey.com>
1056
1057 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1058 DW_ADDR.
1059 (attribute::string): Don't use DW_STRING.
1060 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1061 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1062
95f982e5
TT
10632020-09-29 Tom Tromey <tom@tromey.com>
1064
1065 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1066 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1067 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1068 * dwarf2/attribute.h (struct attribute): Rename methods.
1069 * dwarf2/attribute.c (attribute::as_address): Rename from
1070 value_as_address.
1071 (attribute::as_string): Rename from value_as_string.
1072
f800b00e
TT
10732020-09-29 Tom Tromey <tom@tromey.com>
1074
1075 * dwarf2/read.c (partial_die_info::read) <case
1076 DW_AT_linkage_name>: Use value_as_string.
1077 (dwarf2_string_attr): Use value_as_string.
1078 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1079 method.
1080 * dwarf2/attribute.c (attribute::value_as_string): New method.
1081
de38d64a
PA
10822020-09-29 Pedro Alves <pedro@palves.net>
1083
1084 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1085 defined before using '#pragma GCC diagnostic' instead of checking
1086 __clang__.
1087
9aed480c
TT
10882020-09-28 Tom Tromey <tom@tromey.com>
1089
1090 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1091 (handle_signal_stop): Update.
1092 * procfs.c (procfs_target::insert_watchpoint): Update.
1093 * target.h (target_have_steppable_watchpoint): Now a function.
1094
8a3ecb79
TT
10952020-09-28 Tom Tromey <tom@tromey.com>
1096
1097 * infrun.c (set_schedlock_func): Update.
1098 * target.h (target_can_lock_scheduler): Now a function.
1099
55f6301a
TT
11002020-09-28 Tom Tromey <tom@tromey.com>
1101
1102 * inferior.h (class inferior) <has_execution>: Update.
1103 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1104 * valops.c (find_function_in_inferior)
1105 (value_allocate_space_in_inferior): Update.
1106 * top.c (kill_or_detach): Update.
1107 * target.c (target_preopen, set_target_permissions): Update.
1108 (target_has_execution_current): Remove.
1109 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1110 Update.
1111 * solib.c (update_solib_list, reload_shared_libraries): Update.
1112 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1113 * solib-dsbt.c (enable_break): Update.
1114 * score-tdep.c (score7_fetch_inst): Update.
1115 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1116 Update.
1117 * remote.c (remote_target::start_remote)
1118 (remote_target::remote_check_symbols, remote_target::open_1)
1119 (remote_target::remote_detach_1, remote_target::verify_memory)
1120 (remote_target::xfer_partial, remote_target::read_description)
1121 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1122 * record-full.c (record_full_open_1): Update.
1123 * record-btrace.c (record_btrace_target_open): Update.
1124 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1125 (value_nsstring): Update.
1126 * linux-thread-db.c (add_thread_db_info)
1127 (thread_db_find_new_threads_silently, check_thread_db_callback)
1128 (try_thread_db_load_1, record_thread): Update.
1129 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1130 Update.
1131 * linux-fork.c (checkpoint_command): Update.
1132 * infrun.c (set_non_stop, set_observer_mode)
1133 (check_multi_target_resumption, for_each_just_stopped_thread)
1134 (maybe_remove_breakpoints, normal_stop)
1135 (class infcall_suspend_state): Update.
1136 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1137 (info_program_command, attach_command): Update.
1138 * infcall.c (call_function_by_hand_dummy): Update.
1139 * inf-loop.c (inferior_event_handler): Update.
1140 * gcore.c (gcore_command, derive_heap_segment): Update.
1141 * exec.c (exec_file_command): Update.
1142 * eval.c (evaluate_subexp): Update.
1143 * compile/compile.c (compile_to_object): Update.
1144 * cli/cli-dump.c (restore_command): Update.
1145 * breakpoint.c (update_watchpoint)
1146 (update_inserted_breakpoint_locations)
1147 (insert_breakpoint_locations, get_bpstat_thread): Update.
1148 * target.h (target_has_execution): Remove macro.
1149 (target_has_execution_current): Don't declare.
1150 (target_has_execution): Rename from target_has_execution_1. Add
1151 argument default.
1152
05374cfd
TT
11532020-09-28 Tom Tromey <tom@tromey.com>
1154
1155 * mi/mi-main.c (exec_reverse_continue)
1156 (mi_cmd_list_target_features): Update.
1157 * infrun.c (set_exec_direction_func): Update.
1158 * target.c (default_execution_direction): Update.
1159 * reverse.c (exec_reverse_once): Update.
1160 * target.h (target_can_execute_reverse): Now a function.
1161
9dccd06e
TT
11622020-09-28 Tom Tromey <tom@tromey.com>
1163
1164 * tui/tui-regs.c (tui_get_register)
1165 (tui_data_window::show_registers): Update.
1166 * thread.c (scoped_restore_current_thread::restore)
1167 (scoped_restore_current_thread::scoped_restore_current_thread):
1168 Update.
1169 * regcache-dump.c (regcache_print): Update.
1170 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1171 Update.
1172 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1173 * mep-tdep.c (current_me_module, current_options): Update.
1174 * linux-thread-db.c (thread_db_load): Update.
1175 * infcmd.c (registers_info, info_vector_command)
1176 (info_float_command): Update.
1177 * ia64-tdep.c (ia64_frame_prev_register)
1178 (ia64_sigtramp_frame_prev_register): Update.
1179 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1180 * gcore.c (derive_stack_segment): Update.
1181 * frame.c (get_current_frame, has_stack_frames): Update.
1182 * findvar.c (language_defn::read_var_value): Update.
1183 * arm-tdep.c (arm_pc_is_thumb): Update.
1184 * target.c (target_has_registers): Rename from
1185 target_has_registers_1.
1186 * target.h (target_has_registers): Remove macro.
1187 (target_has_registers): Rename from target_has_registers_1.
1188
841de120
TT
11892020-09-28 Tom Tromey <tom@tromey.com>
1190
1191 * windows-tdep.c (tlb_make_value): Update.
1192 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1193 * thread.c (scoped_restore_current_thread::restore)
1194 (scoped_restore_current_thread::scoped_restore_current_thread)
1195 (thread_command): Update.
1196 * stack.c (backtrace_command_1, frame_apply_level_command)
1197 (frame_apply_all_command, frame_apply_command): Update.
1198 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1199 Update.
1200 * gcore.c (derive_stack_segment): Update.
1201 * frame.c (get_current_frame, has_stack_frames): Update.
1202 * auxv.c (info_auxv_command): Update.
1203 * ada-tasks.c (ada_build_task_list): Update.
1204 * target.c (target_has_stack): Rename from target_has_stack_1.
1205 * target.h (target_has_stack): Remove macro.
1206 (target_has_stack): Rename from target_has_stack_1.
1207
a739972c
TT
12082020-09-28 Tom Tromey <tom@tromey.com>
1209
1210 * target.c (target_has_memory): Rename from target_has_memory_1.
1211 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1212 * thread.c (scoped_restore_current_thread::restore)
1213 (scoped_restore_current_thread::scoped_restore_current_thread):
1214 Update.
1215 * frame.c (get_current_frame, has_stack_frames): Update.
1216 * target.h (target_has_memory): Remove macro.
1217 (target_has_memory): Rename from target_has_memory_1.
1218
5b8a4776
TT
12192020-09-28 Tom Tromey <tom@tromey.com>
1220
1221 * target.c (target_has_all_memory_1): Remove.
1222 * target.h (target_has_all_memory): Remove define.
1223 (target_has_all_memory_1): Don't declare.
1224
bd356ec6
SM
12252020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1226
1227 * ser-base.c: Adjust comments formatting.
1228
2c72d5e5
TT
12292020-09-27 Tom Tromey <tom@tromey.com>
1230
1231 PR tui/25342:
1232 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1233
35a98237
TT
12342020-09-27 Tom Tromey <tom@tromey.com>
1235
1236 PR tui/25342:
1237 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1238
9e820dec
TT
12392020-09-27 Tom Tromey <tom@tromey.com>
1240
1241 * unittests/tui-selftests.c: Update.
1242 * tui/tui-winsource.h (struct tui_source_window_base)
1243 <extra_margin, show_line_number, refresh_pad>: New methods.
1244 <m_max_length, m_pad>: New members.
1245 (tui_copy_source_line): Update.
1246 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1247 first_col, line_width, ndigits parameters. Add length.
1248 (tui_source_window_base::show_source_line): Write to pad. Line
1249 number now 0-based.
1250 (tui_source_window_base::refresh_pad): New method.
1251 (tui_source_window_base::show_source_content): Write to pad. Call
1252 refresh_pad.
1253 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1254 not refill.
1255 (tui_source_window_base::update_exec_info): Call
1256 show_line_number.
1257 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1258 method.
1259 <m_digits>: New member.
1260 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1261 and m_max_length.
1262 (tui_source_window::show_line_number): New method.
1263 * tui/tui-io.h (tui_puts): Fix comment.
1264 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1265 m_max_length.
1266
c15c15c8
TT
12672020-09-27 Tom Tromey <tom@tromey.com>
1268
1269 * tui/tui-winsource.c
1270 (tui_source_window_base::set_is_exec_point_at): Don't call
1271 show_source_line.
1272
149830c1
TT
12732020-09-27 Tom Tromey <tom@tromey.com>
1274
1275 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1276 method.
1277 <erase>: Update.
1278 <cursor_x, cursor_y>: Remove.
1279 <m_inner_window>: New member.
1280 (tui_py_window::rerender): Create inner window.
1281 (tui_py_window::output): Write to inner window.
1282
8f9929bb
GR
12832020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1284
1285 PR python/26586
1286 * cli/cli-script.c (execute_control_commands): don't set
1287 instream to nullptr here as this breaks the from_tty argument
1288 to gdb.execute in Python.
1289 (execute_user_command): set instream to nullptr here instead.
1290
956bdb59
SM
12912020-09-25 Simon Marchi <simon.marchi@efficios.com>
1292
1293 * infrun.h (infrun_debug_printf): Fix formatting.
1294 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1295
3b93626b
SJ
12962020-09-25 Saagar Jha <saagar@saagarjha.com>
1297
1298 * compile/compile-object-load.h (struct munmap_list): Add
1299 explicitly-defined move constructor.
1300
b551a89f
TT
13012020-09-24 Tom Tromey <tromey@adacore.com>
1302
1303 PR tui/26638:
1304 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1305 method.
1306 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1307 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1308 (tui_prev_win): Rewrite.
1309
99bb393f
HD
13102020-09-23 Hannes Domani <ssbssa@yahoo.de>
1311
1312 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1313 in WOW64 processes as SIGINT.
1314 * nat/windows-nat.h: Make wow64_process a shared variable.
1315 * windows-nat.c: Remove static wow64_process variable.
1316
20a5fcbd
TT
13172020-09-23 Tom Tromey <tom@tromey.com>
1318
1319 PR symtab/25470:
1320 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1321 offset and bit size.
1322 * printcmd.c (print_scalar_formatted): Handle zero-length
1323 integer.
1324 (print_scalar_formatted): Use bit_size_differs_p.
1325 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1326 constant.
1327 (union type_specific): <int_stuff>: New member.
1328 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1329 methods.
1330 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1331 TYPE_SPECIFIC_FIELD.
1332 (recursive_dump_type, copy_type_recursive): Update.
1333 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1334 DW_AT_data_bit_offset.
1335
bac51ab7
TT
13362020-09-23 Tom Tromey <tom@tromey.com>
1337
1338 * utils.h (class gdb_argv): Add move operators.
1339 <append>: New methods.
1340 * compile/compile.c (build_argc_argv): Remove.
1341 (compile_args_argc): Remove.
1342 (compile_args_argv): Change type.
1343 (set_compile_args): Simplify.
1344 (append_args): Remove.
1345 (filter_args): Remove argcp parameter.
1346 (get_args): Return gdb_argv. Simplify.
1347 (compile_to_object): Update.
1348
92677124
TT
13492020-09-23 Tom Tromey <tom@tromey.com>
1350
1351 * compile/compile-object-run.c (do_module_cleanup)
1352 <~do_module_cleanup> :Remove.
1353 (do_module_cleanup): Update.
1354 * compile/compile-object-load.h (struct munmap_list): Add move
1355 assignment operator.
1356 <source_file>: Now a std::string.
1357 <munmap_list>: Rename. No longer a pointer.
1358 * compile/compile-object-load.c (struct setup_sections_data): Add
1359 constructor.
1360 <setup_one_section>: Declare.
1361 <munmap_list>: Move earlier.
1362 <m_bfd>: New member.
1363 <m_last_size, m_last_section_first, m_last_prot,
1364 m_last_max_alignment>: Rename, add initializers where needed.
1365 (setup_sections_data::setup_one_section): Rename from
1366 setup_sections. Update.
1367 (compile_object_load): Update. Don't use bfd_map_over_sections.
1368
e616f60a
TT
13692020-09-23 Tom Tromey <tom@tromey.com>
1370
1371 * compile/compile-object-run.c (struct do_module_cleanup): Add
1372 parameters to constructor. Update destructor.
1373 <source_file, scope, scope_data, out_value_type, out_value_addr,
1374 munmap_list_head, objfile_name_string>: Remove.
1375 <module>: New member.
1376 (do_module_cleanup): Update.
1377 (compile_object_run): Update.
1378
e947a848
TT
13792020-09-23 Tom Tromey <tom@tromey.com>
1380
1381 * compile/compile.c (eval_compile_command): Update.
1382 * compile/compile-object-run.h (compile_object_run): Take a
1383 compile_module_up.
1384 * compile/compile-object-run.c (compile_object_run): Take a
1385 compile_module_up.
1386 * compile/compile-object-load.h (struct compile_module): Add
1387 constructor, destructor.
1388 (compile_module_up): New typedef.
1389 (compile_object_load): Return compile_object_up.
1390 * compile/compile-object-load.c (compile_object_load): Return
1391 compile_module_up.
1392
0dbf6ee6
TT
13932020-09-23 Tom Tromey <tom@tromey.com>
1394
1395 * compile/compile-object-run.c (struct do_module_cleanup): Add
1396 constructor, destructor.
1397 <objfile_name_string>: Don't use struct hack.
1398 (do_module_cleanup): Use delete.
1399 (compile_object_run): Use new.
1400
ebe824f5
TT
14012020-09-23 Tom Tromey <tom@tromey.com>
1402
1403 * compile/compile-cplus-types.c
1404 (compile_cplus_convert_struct_or_union): Use std::vector.
1405 (compile_cplus_convert_func): Likewise.
1406 * compile/compile-c-types.c (convert_func): Use std::vector.
1407
5dd918d9
TT
14082020-09-21 Tom Tromey <tromey@adacore.com>
1409
1410 * sparc-tdep.c (sparc32_skip_prologue): Use
1411 skip_prologue_using_sal.
1412
5486c517
TT
14132020-09-19 Tom Tromey <tom@tromey.com>
1414
1415 * symfile.c (add_section_size_callback): Remove.
1416 (load_one_section): Rename from load_section_callback. Change
1417 parameters.
1418 (generic_load): Use foreach.
1419
8a6bb1d1
TT
14202020-09-19 Tom Tromey <tom@tromey.com>
1421
1422 * exec.c (add_to_section_table): Remove.
1423 (build_section_table): Use foreach.
1424
08f93a1a
TT
14252020-09-19 Tom Tromey <tom@tromey.com>
1426
1427 * elfread.c (elf_locate_sections): Change parameters.
1428 (elf_symfile_read): Use foreach.
1429
03cd72b8
TT
14302020-09-19 Tom Tromey <tom@tromey.com>
1431
1432 * cli/cli-dump.c (struct callback_data): Remove.
1433 (restore_one_section): Rename from restore_section_callback.
1434 Change parameters.
1435 (restore_binary_file): Change parameters.
1436 (restore_command): Use foreach.
1437
f4f2b85f
TT
14382020-09-19 Tom Tromey <tom@tromey.com>
1439
1440 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1441 (gcore_copy_callback): Likewise.
1442 (gcore_memory_sections): Use foreach.
1443
b35c1d1c
TT
14442020-09-19 Tom Tromey <tom@tromey.com>
1445
1446 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1447 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1448 parameters.
1449 (generic_elf_osabi_sniffer): Use foreach.
1450 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1451 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1452
5bb6e9dd
TT
14532020-09-19 Tom Tromey <tom@tromey.com>
1454
1455 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1456 (dwarf2_get_dwz_file): Use foreach.
1457 (dwarf2_locate_dwo_sections): Change parameters.
1458 (open_and_init_dwo_file): Use foreach.
1459 (dwarf2_locate_common_dwp_sections): Change parameters.
1460 (open_and_init_dwp_file): Use foreach.
1461
ad7277da
TT
14622020-09-19 Tom Tromey <tom@tromey.com>
1463
1464 * symfile.h: (find_lowest_section): Don't declare.
1465 * symfile.c (find_lowest_section): Now static. Change
1466 parameters.
1467 (struct place_section_arg): Remove.
1468 (place_section): Change parameters.
1469 (addr_info_make_relative): Use foreach.
1470 (symfile_dummy_outputs): Remove.
1471 (default_symfile_relocate): Use foreach.
1472
cb814f2e
TT
14732020-09-19 Tom Tromey <tom@tromey.com>
1474
1475 * objfiles.c (add_to_objfile_sections): Rename from
1476 add_to_objfile_sections_full.
1477 (add_to_objfile_sections): Remove.
1478 (build_objfile_section_table): Use foreach.
1479
3cabfd26
TT
14802020-09-19 Tom Tromey <tom@tromey.com>
1481
1482 * stap-probe.c (get_stap_base_address_1): Remove.
1483 (get_stap_base_address): Use foreach.
1484
1ce51eb5
TT
14852020-09-19 Tom Tromey <tom@tromey.com>
1486
1487 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1488 parameters.
1489 (gdb_bfd_close_or_warn): Use foreach.
1490
a190fabb
TT
14912020-09-19 Tom Tromey <tom@tromey.com>
1492
1493 * corelow.c (add_to_thread_list): Change parameters.
1494 (core_target_open): Use foreach.
1495
cafb0d81
TT
14962020-09-19 Tom Tromey <tom@tromey.com>
1497
1498 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1499 existing function.
1500
c8d5abea
AB
15012020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1502
1503 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1504 for arrays.
1505
6d816919
AB
15062020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1507
1508 * eval.c: Remove 'f-lang.h' include.
1509 (value_f90_subarray): Moved to f-lang.c.
1510 (eval_call): Renamed to...
1511 (evaluate_subexp_do_call): ...this, is no longer static, header
1512 comment moved into header file.
1513 (evaluate_funcall): Update call to eval_call.
1514 (skip_undetermined_arglist): Moved to f-lang.c.
1515 (fortran_value_subarray): Likewise.
1516 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1517 moved to evaluate_subexp_f.
1518 (calc_f77_array_dims): Moved to f-lang.c
1519 * expprint.c (print_subexp_funcall): New function.
1520 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1521 moved to print_subexp_f, OP_FUNCALL uses new function.
1522 (dump_subexp_body_funcall): New function.
1523 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1524 moved to dump_subexp_f, OP_FUNCALL uses new function.
1525 * expression.h (evaluate_subexp_do_call): Declare.
1526 * f-lang.c (value_f90_subarray): Moved from eval.c.
1527 (skip_undetermined_arglist): Likewise.
1528 (calc_f77_array_dims): Likewise.
1529 (fortran_value_subarray): Likewise.
1530 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1531 (operator_length_f): Likewise.
1532 (print_subexp_f): Likewise.
1533 (dump_subexp_body_f): Likewise.
1534 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1535 declaration of this operation to here.
1536 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1537 support moved to operator_length_f.
1538 * parser-defs.h (dump_subexp_body_funcall): Declare.
1539 (print_subexp_funcall): Declare.
1540 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1541 fortran-operator.def.
1542
8c37706a
AB
15432020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1544
1545 * eval.c (fortran_value_subarray): New function, content is taken
1546 from...
1547 (evaluate_subexp_standard): ...here, in two places. Now arrays
1548 and strings both call the new function.
1549 (calc_f77_array_dims): Add header comment, handle strings.
1550
14f9473c
VC
15512020-09-18 Victor Collod <vcollod@nvidia.com>
1552
1553 PR gdb/26635
1554 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1555 (i386_analyze_prologue): Call i386_skip_endbr.
1556
b60cea74
TT
15572020-09-18 Tom Tromey <tromey@adacore.com>
1558
1559 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1560 (windows_nat_target::wait): Update.
1561 * target/wait.h (enum target_wait_flag): New. Use
1562 DEF_ENUM_FLAGS_TYPE.
1563 * target/target.h (target_wait): Change type of options.
1564 * target.h (target_options_to_string, default_target_wait):
1565 Update.
1566 (struct target_ops) <wait>: Change type of options.
1567 * target.c (target_wait, default_target_wait, do_option): Change
1568 type of "options".
1569 (target_options_to_string): Likewise.
1570 * target-delegates.c: Rebuild.
1571 * target-debug.h (target_debug_print_target_wait_flags): Rename
1572 from target_debug_print_options.
1573 * sol-thread.c (class sol_thread_target) <wait>: Update.
1574 (sol_thread_target::wait): Update.
1575 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1576 (rs6000_nat_target::wait): Update.
1577 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1578 Update.
1579 (remote_target::wait_ns, remote_target::wait_as): Change type of
1580 "options".
1581 (remote_target::wait): Update.
1582 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1583 (gdbsim_target::wait): Update.
1584 * record-full.c (class record_full_base_target) <wait>: Update.
1585 (record_full_wait_1): Change type of "options".
1586 (record_full_base_target::wait): Update.
1587 * record-btrace.c (class record_btrace_target) <wait>: Update.
1588 (record_btrace_target::wait): Update.
1589 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1590 Update.
1591 (ravenscar_thread_target::wait): Update.
1592 * procfs.c (class procfs_target) <wait>: Update.
1593 (procfs_target::wait): Update.
1594 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1595 * obsd-nat.c (obsd_nat_target::wait): Update.
1596 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1597 (nto_procfs_target::wait): Update.
1598 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1599 * nbsd-nat.c (nbsd_wait): Change type of "options".
1600 (nbsd_nat_target::wait): Update.
1601 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1602 (thread_db_target::wait): Update.
1603 * linux-nat.h (class linux_nat_target) <wait>: Update.
1604 * linux-nat.c (linux_nat_target::wait): Update.
1605 (linux_nat_wait_1): Update.
1606 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1607 "options".
1608 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1609 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1610 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1611 (go32_nat_target::wait): Update.
1612 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1613 * gnu-nat.c (gnu_nat_target::wait): Update.
1614 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1615 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1616 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1617 * darwin-nat.c (darwin_nat_target::wait): Update.
1618 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1619 (bsd_uthread_target::wait): Update.
1620 * aix-thread.c (class aix_thread_target) <wait>: Update.
1621 (aix_thread_target::wait): Update.
1622
0295dde6
AB
16232020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1624
1625 * compile/compile-object-run.c (create_copied_type_recursive): New
1626 function.
1627 (compile_object_run): Use new function.
1628
d3483b43
JT
16292020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1630
1631 * NEWS: Mention x86_64 Cygwin core file support.
1632
e7d612ad
JT
16332020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1634
1635 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1636 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1637
aff9d387
JT
16382020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1639
62a5151b
JT
1640 * windows-tdep.h: Add prototypes.
1641 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1642 (i386_windows_core_pid_to_str): Move and rename ...
1643 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1644 (windows_core_pid_to_str): ... and here.
1645 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1646
16472020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
1648 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1649 (amd64_windows_init_abi_common): ... and register.
1650
7d155da3
JT
16512020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1652
1653 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1654 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1655
e8ef12b9
PA
16562020-09-18 Pedro Alves <pedro@palves.net>
1657
1658 PR gdb/26631
1659 * thread.c (thread_find_command): Switch inferior before calling
1660 target methods.
1661
c1e1314d
TT
16622020-09-17 Tom Tromey <tromey@adacore.com>
1663
1664 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1665 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1666 (tdesc_arch_data_up): New typedef.
1667 (tdesc_use_registers, tdesc_data_alloc): Update.
1668 (tdesc_data_cleanup): Don't declare.
1669 * target-descriptions.c (tdesc_data_alloc): Return a
1670 tdesc_arch_data_up.
1671 (tdesc_arch_data_deleter::operator()): Rename from
1672 tdesc_data_cleanup. Change argument type.
1673 (tdesc_use_registers): Change early_data to an rvalue reference.
1674 (tdesc_use_registers): Don't use delete.
1675 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1676 * s390-tdep.c (s390_gdbarch_init): Update.
1677 * rx-tdep.c (rx_gdbarch_init): Update.
1678 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1679 * riscv-tdep.c (riscv_gdbarch_init): Update.
1680 * or1k-tdep.c (or1k_gdbarch_init): Update.
1681 * nios2-tdep.c (nios2_gdbarch_init): Update.
1682 * nds32-tdep.c (nds32_gdbarch_init): Update.
1683 * mips-tdep.c (mips_gdbarch_init): Update.
1684 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1685 * m68k-tdep.c (m68k_gdbarch_init): Update.
1686 * i386-tdep.c (i386_gdbarch_init): Update.
1687 * arm-tdep.c (arm_gdbarch_init): Update.
1688 * arc-tdep.c (arc_tdesc_init): Update.
1689 (arc_gdbarch_init): Update.
1690 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1691
0363df3d
HD
16922020-09-17 Hannes Domani <ssbssa@yahoo.de>
1693
1694 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1695 for WOW64 processes.
1696
280a9412
TT
16972020-09-17 Tom Tromey <tom@tromey.com>
1698
1699 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1700
6108fd18
TT
17012020-09-17 Tom Tromey <tom@tromey.com>
1702
1703 * value.c (preserve_values): Update.
1704 * python/py-type.c (save_objfile_types): Update.
1705 * guile/scm-type.c (save_objfile_types): Update.
1706 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1707 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1708 * compile/compile-object-run.c (compile_object_run): Update.
1709
fa9b1164
TT
17102020-09-17 Tom Tromey <tom@tromey.com>
1711
1712 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1713 Remove.
1714 <m_table>: Now htab_up.
1715 * typeprint.c (typedef_hash_table::recursively_update)
1716 (typedef_hash_table::add_template_parameters)
1717 (typedef_hash_table::typedef_hash_table): Update.
1718 (typedef_hash_table::~typedef_hash_table): Remove.
1719 (typedef_hash_table::typedef_hash_table)
1720 (typedef_hash_table::find_global_typedef)
1721 (typedef_hash_table::find_typedef): Update.
1722
eb53f105
TT
17232020-09-17 Tom Tromey <tom@tromey.com>
1724
1725 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1726
7a8a5d47
TT
17272020-09-17 Tom Tromey <tom@tromey.com>
1728
1729 * linespec.c (class decode_compound_collector)
1730 <~decode_compound_collector>: Remove.
1731 <m_unique_syms>: Now htab_up.
1732 (decode_compound_collector::operator ()): Update.
1733 (class symtab_collector) <~symtab_collector>: Remove.
1734 <m_symtab_table>: Now htab_up.
1735 (symtab_collector::operator ()): Update.
1736
99032cfc
TT
17372020-09-17 Tom Tromey <tom@tromey.com>
1738
1739 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1740 (filename_seen_cache::clear): Update.
1741 (~filename_seen_cache): Remove.
1742 (filename_seen_cache::seen): Update.
1743 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1744 htab_up.
1745 <~filename_seen_cache>: Remove.
1746 <traverse>: Update.
1747
32580f6d
TT
17482020-09-17 Tom Tromey <tom@tromey.com>
1749
1750 * completer.c (completion_tracker::discard_completions)
1751 (completion_tracker::~completion_tracker)
1752 (completion_tracker::maybe_add_completion)
1753 (completion_tracker::remove_completion)
1754 (completion_tracker::recompute_lowest_common_denominator)
1755 (completion_tracker::build_completion_result): Update.
1756 * completer.h (class completion_tracker) <have_completions>:
1757 Update.
1758 <m_entries_hash>: Now htab_up.
1759
c1fb9836
TT
17602020-09-17 Tom Tromey <tom@tromey.com>
1761
1762 * breakpoint.c (ambiguous_names_p): Use htab_up.
1763
88f07206
TT
17642020-09-17 Tom Tromey <tom@tromey.com>
1765
1766 * auto-load.c (struct auto_load_pspace_info)
1767 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1768 <loaded_script_files, loaded_script_texts>: Change type to
1769 htab_up.
1770 (~auto_load_pspace_info) Remove.
1771 (init_loaded_scripts_info, maybe_add_script_file)
1772 (maybe_add_script_text, auto_load_info_scripts): Update.
1773
9519b2ee
TT
17742020-09-17 Tom Tromey <tromey@adacore.com>
1775
1776 * c-exp.y (name_obstack): Now static.
1777
d2cd4113
CC
17782020-09-17 Chungyi Chi <demonic@csie.io>
1779
1780 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1781
b650a282
SM
17822020-09-16 Simon Marchi <simon.marchi@efficios.com>
1783
1784 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1785 (add_solib_catchpoint): Likewise.
1786 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1787 to bool.
1788 (add_solib_catchpoint): Change int parameter/variable to bool.
1789 (catch_load_or_unload): Likewise.
1790 (init_catchpoint): Likewise.
1791 (create_fork_vfork_event_catchpoint): Likewise.
1792 (catch_fork_command_1): Likewise.
1793 (catch_exec_command_1): Likewise.
1794
4d0bcfcf
SM
17952020-09-16 Simon Marchi <simon.marchi@efficios.com>
1796
1797 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1798 Change instance_flags to m_instance_flags.
1799
fe830662
TT
18002020-09-16 Tom Tromey <tromey@adacore.com>
1801
1802 PR gdb/26598:
1803 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1804
fe5ddfc3
JB
18052020-09-16 John Baldwin <jhb@FreeBSD.org>
1806
1807 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1808 PL_FLAG_EXEC.
1809 (fbsd_nat_target::insert_exec_catchpoint)
1810 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1811 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1812 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1813
e911c666
JB
18142020-09-16 John Baldwin <jhb@FreeBSD.org>
1815
1816 * configure.ac: Remove check for kinfo_getvmmap().
1817 * configure, config.in: Regenerate.
1818 * fbsd-nat.c (fbsd_read_mapping): Remove
1819 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1820 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1821 kinfo_get_vmmap() are always present.
1822
1f17d372
JB
18232020-09-16 John Baldwin <jhb@FreeBSD.org>
1824
1825 * fbsd-nat.c: Always include support for
1826 TARGET_OBJECT_SIGNAL_INFO.
1827
bcb1da7f
JB
18282020-09-16 John Baldwin <jhb@FreeBSD.org>
1829
1830 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1831 sysctl and remove procfs fallback.
1832
5515f729
JB
18332020-09-16 John Baldwin <jhb@FreeBSD.org>
1834
1835 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1836 * fbsd-nat.h: Likewise.
1837
da1df1db
TBA
18382020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1839
1840 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1841 argument.
1842
0e25e767
AB
18432020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1844
1845 * ada-lang.c (ada_language_data): Delete.
1846 (ada_language): Remove references to ada_language_data.
1847 * c-lang.c (c_language_data): Delete.
1848 (c_language): Remove references to c_language_data.
1849 (cplus_language_data): Delete.
1850 (cplus_language): Remove references to cplus_language_data.
1851 (asm_language_data): Delete.
1852 (asm_language): Remove references to asm_language_data.
1853 (minimal_language_data): Delete.
1854 (minimal_language): Remove references to minimal_language_data.
1855 * d-lang.c (d_language_data): Delete.
1856 (d_language): Remove references to d_language_data.
1857 * f-lang.c (f_language_data): Delete.
1858 (f_language): Remove references to f_language_data.
1859 * go-lang.c (go_language_data): Delete.
1860 (go_language): Remove references to go_language_data.
1861 * language.c (unknown_language_data): Delete.
1862 (unknown_language): Remove references to unknown_language_data.
1863 (auto_language_data): Delete.
1864 (auto_language): Remove references to auto_language_data.
1865 * language.h (language_data): Delete struct.
1866 (language_defn): No longer inherit from language_data.
1867 * m2-lang.c (m2_language_data): Delete.
1868 (m2_language): Remove references to m2_language_data.
1869 * objc-lang.c (objc_language_data): Delete.
1870 (objc_language): Remove references to objc_language_data.
1871 * opencl-lang.c (opencl_language_data): Delete.
1872 (opencl_language): Remove references to opencl_language_data.
1873 * p-lang.c (pascal_language_data): Delete.
1874 (pascal_language): Remove references to pascal_language_data.
1875 * rust-lang.c (rust_language_data): Delete.
1876 (rust_language): Remove references to rust_language_data.
1877
b7c6e27d
AB
18782020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1879
1880 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1881 initializer.
1882 (ada_language::opcode_print_table): New member function.
1883 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1884 (c_language::opcode_print_table): New member function.
1885 (cplus_language_data): Remove la_op_print_tab initializer.
1886 (cplus_language::opcode_print_table): New member function.
1887 (asm_language_data): Remove la_op_print_tab initializer.
1888 (asm_language::opcode_print_table): New member function.
1889 (minimal_language_data): Remove la_op_print_tab initializer.
1890 (minimal_language::opcode_print_table): New member function.
1891 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1892 (d_language::opcode_print_table): New member function.
1893 * expprint.c (print_subexp_standard): Update call to
1894 opcode_print_table.
1895 (op_string): Likewise.
1896 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1897 (f_language::opcode_print_table): New member function.
1898 * go-lang.c (go_language_data): Remove la_op_print_tab
1899 initializer.
1900 (go_language::opcode_print_table): New member function.
1901 * language.c (unknown_language_data): Remove la_op_print_tab
1902 initializer.
1903 (unknown_language::opcode_print_table): New member function.
1904 (auto_language_data): Remove la_op_print_tab initializer.
1905 (auto_language::opcode_print_table): New member function.
1906 * language.h (language_data): Remove la_op_print_tab field.
1907 (language_defn::opcode_print_table): Declare new member function.
1908 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1909 initializer.
1910 (m2_language::opcode_print_table): New member function.
1911 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1912 initializer.
1913 (objc_language::opcode_print_table): New member function.
1914 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1915 initializer.
1916 (opencl_language::opcode_print_table): New member function.
1917 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1918 initializer.
1919 (pascal_language::opcode_print_table): New member function.
1920 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1921 initializer.
1922 (rust_language::opcode_print_table): New member function.
1923
5aba6ebe
AB
19242020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1925
1926 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1927 (ada_language::expression_ops): New member function.
1928 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1929 (c_language::expression_ops): New member function.
1930 (cplus_language_data): Remove la_exp_desc initializer.
1931 (cplus_language::expression_ops): New member function.
1932 (asm_language_data): Remove la_exp_desc initializer.
1933 (asm_language::expression_ops): New member function.
1934 (minimal_language_data): Remove la_exp_desc initializer.
1935 (minimal_language::expression_ops): New member function.
1936 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1937 (d_language::expression_ops): New member function.
1938 * eval.c (evaluate_subexp): Update call to expression_ops.
1939 * expprint.c (print_subexp): Likewise.
1940 (op_name): Likewise.
1941 (dump_subexp_body): Likewise.
1942 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1943 (f_language::expression_ops): New member function.
1944 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1945 (go_language::expression_ops): New member function.
1946 * language.c (language_defn::expression_ops): New function.
1947 (unknown_language_data): Remove la_exp_desc initializer.
1948 (auto_language_data): Likewise.
1949 * language.h (language_data): Remove la_exp_desc field.
1950 (language_defn::expression_ops): Declare new member function.
1951 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1952 (m2_language::expression_ops): New member function.
1953 * objc-lang.c (objc_language_data): Remove la_exp_desc
1954 initializer.
1955 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1956 initializer.
1957 (opencl_language::expression_ops): New member function.
1958 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1959 * parse.c (operator_length): Update call to expression_ops.
1960 (exp_iterate): Likewise.
1961 * rust-lang.c (rust_language_data): Remove la_exp_desc
1962 initializer.
1963 (ruse_language::expression_ops): New member function.
1964
b63a3f3f
AB
19652020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1966
1967 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1968 initializer.
1969 (ada_language::varobj_ops): New member function.
1970 * c-lang.c (c_language_data): Remove la_varobj_ops
1971 initializer.
1972 (cplus_language_data): Likewise.
1973 (cplus_language::varobj_ops): New member function.
1974 (asm_language_data): Remove la_varobj_ops initializer.
1975 (minimal_language_data): Likewise.
1976 * d-lang.c (d_language_data): Likewise.
1977 * f-lang.c (f_language_data): Likewise.
1978 * go-lang.c (go_language_data): Likewise.
1979 * language.c (language_defn::varobj_ops): New function.
1980 (unknown_language_data): Remove la_varobj_ops
1981 initializer.
1982 (auto_language_data): Likewise.
1983 * language.h (language_data): Remove la_varobj_ops field.
1984 (language_defn::varobj_ops): Declare new member function.
1985 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1986 * objc-lang.c (objc_language_data): Likewise.
1987 * opencl-lang.c (opencl_language_data): Likewise.
1988 * p-lang.c (pascal_language_data): Likewise.
1989 * rust-lang.c (rust_language_data): Likewise.
1990 * varobj.c (varobj_create): Update call to varobj_ops.
1991 * varobj.h (default_varobj_ops): Delete define.
1992
1ac14a04
AB
19932020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1994
1995 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1996 initializer.
1997 * c-lang.c (c_language_data): Likewise.
1998 (c_language::macro_expansion): New member function.
1999 (cplus_language_data): Likewise.
2000 (cplus_language::macro_expansion): New member function.
2001 (asm_language_data): Likewise.
2002 (asm_language::macro_expansion): New member function.
2003 (minimal_language_data): Likewise.
2004 (minimal_language::macro_expansion): New member function.
2005 * d-lang.c (d_language_data): Remove la_macro_expansion
2006 initializer.
2007 * f-lang.c (f_language_data): Likewise.
2008 * go-lang.c (go_language_data): Likewise.
2009 * language.c (unknown_language_data): Likewise.
2010 (auto_language_data): Likewise.
2011 * language.h (language_data): Remove la_macro_expansion field.
2012 (language_defn::macro_expansion): New member function.
2013 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2014 initializer.
2015 * objc-lang.c (objc_language_data): Likewise.
2016 (objc_language::macro_expansion): New member function.
2017 * opencl-lang.c (opencl_language_data): Likewise.
2018 (opencl_language::macro_expansion): New member function.
2019 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2020 initializer.
2021 * rust-lang.c (rust_language_data): Likewise.
2022 * symtab.c (default_collect_symbol_completion_matches_break_on):
2023 Update call to macro_expansion.
2024
3a3440fb
AB
20252020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2026
2027 * ada-lang.c (ada_language_data): Remove la_array_ordering
2028 initializer.
2029 * c-lang.c (c_language_data): Likewise.
2030 (cplus_language_data): Likewise.
2031 (asm_language_data): Likewise.
2032 (minimal_language_data): Likewise.
2033 * d-lang.c (d_language_data): Likewise.
2034 * dwarf2/read.c (read_array_order): Update for call to
2035 array_ordering.
2036 * f-lang.c (f_language_data): Remove la_array_ordering
2037 initializer.
2038 (f_language::array_ordering): New member function.
2039 * go-lang.c (go_language_data): Remove la_array_ordering
2040 initializer.
2041 * language.c (unknown_language_data): Likewise.
2042 (auto_language_data): Likewise.
2043 * language.h (language_data): Delete la_array_ordering field.
2044 (language_defn::array_ordering): New member function.
2045 * m2-lang.c (m2_language_data): Remove la_array_ordering
2046 initializer.
2047 * objc-lang.c (objc_language_data): Likewise.
2048 * opencl-lang.c (opencl_language_data): Likewise.
2049 * p-lang.c (pascal_language_data): Likewise.
2050 * rust-lang.c (rust_language_data): Likewise.
2051
0d201fa4
AB
20522020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2053
2054 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2055 initializer.
2056 * c-lang.c (c_language_data): Likewise.
2057 (cplus_language_data): Likewise.
2058 (asm_language_data): Likewise.
2059 (minimal_language_data): Likewise.
2060 * d-lang.c (d_language_data): Likewise.
2061 * f-lang.c (f_language_data): Likewise.
2062 (f_language::case_sensitivity): New member function.
2063 * go-lang.c (go_language_data): Remove la_case_sensitivity
2064 initializer.
2065 * language.c (enum case_mode): Moved here from language.h.
2066 (case_mode): Make static.
2067 (show_case_command): Update for case_sensitivity being a method.
2068 (set_case_command): Likewise.
2069 (set_range_case): Likewise.
2070 (unknown_language_data): Remove la_case_sensitivity initializer.
2071 (auto_language_data): Likewise.
2072 * language.h (case_mode): Delete, move enum declaration to
2073 language.c.
2074 (language_data): Delete la_case_sensitivity field.
2075 (language_defn::case_sensitivity): New member function.
2076 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2077 initializer.
2078 * objc-lang.c (objc_language_data): Likewise.
2079 * opencl-lang.c (opencl_language_data): Likewise.
2080 * p-lang.c (pascal_language_data): Likewise.
2081 * rust-lang.c (rust_language_data): Likewise.
2082
efdf6a73
AB
20832020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2084
2085 * ada-lang.c (ada_language_data): Remove la_range_check
2086 initializer.
2087 * c-lang.c (c_language_data): Likewise.
2088 (cplus_language_data): Likewise.
2089 (asm_language_data): Likewise.
2090 (minimal_language_data): Likewise.
2091 * d-lang.c (d_language_data): Likewise.
2092 * f-lang.c (f_language_data): Likewise.
2093 (f_language::range_checking_on_by_default): New member function.
2094 * go-lang.c (go_language_data): Remove la_range_check initializer.
2095 * language.c (enum range_mode): Moved here from language.h.
2096 (range_mode): Made static.
2097 (show_range_command): Update to use
2098 range_checking_on_by_default.
2099 (set_range_command): Likewise.
2100 (set_range_case): Likewise.
2101 (unknown_language_data): Remove la_range_check initializer.
2102 (auto_language_data): Likewise.
2103 * language.h (range_mode): Delete. Enum definition moved to
2104 language.c.
2105 (language_data): Remove la_range_check field.
2106 (language_defn::range_checking_on_by_default): New member
2107 function.
2108 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2109 (m2_language::range_checking_on_by_default): New member function.
2110 * objc-lang.c (objc_language_data): Remove la_range_check
2111 initializer.
2112 * opencl-lang.c (opencl_language_data): Likewise.
2113 * p-lang.c (pascal_language_data): Likewise.
2114 (pascal_language::range_checking_on_by_default): New member
2115 function.
2116 * rust-lang.c (rust_language_data): Remove la_range_check
2117 initializer.
2118 (rust_language::range_checking_on_by_default): New member
2119 function.
2120
bf92aec5
AB
21212020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2122
2123 * dwarf2/read.c (dwarf2_physname): Remove special case for
2124 language_go.
2125 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2126 member function.
2127
d3355e4d
AB
21282020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2129
2130 * ada-lang.c (ada_language_data): Remove
2131 la_store_sym_names_in_linkage_form_p initializer.
2132 (ada_language::store_sym_names_in_linkage_form_p): New member
2133 function.
2134 * c-lang.c (c_language_data): Remove
2135 la_store_sym_names_in_linkage_form_p initializer.
2136 (c_language::store_sym_names_in_linkage_form_p): New member
2137 function.
2138 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2139 initializer.
2140 (asm_language_data): Likewise.
2141 (asm_language::store_sym_names_in_linkage_form_p): New member
2142 function.
2143 (minimal_language_data): Remove
2144 la_store_sym_names_in_linkage_form_p initializer.
2145 (minimal_language::store_sym_names_in_linkage_form_p): New member
2146 function.
2147 * d-lang.c (d_language_data): Remove
2148 la_store_sym_names_in_linkage_form_p initializer.
2149 * dwarf2/read.c (dwarf2_physname): Update call to
2150 store_sym_names_in_linkage_form_p.
2151 * f-lang.c (f_language_data): Remove
2152 la_store_sym_names_in_linkage_form_p initializer.
2153 * go-lang.c (go_language_data): Remove
2154 la_store_sym_names_in_linkage_form_p initializer.
2155 * language.c (unknown_language_data): Remove
2156 la_store_sym_names_in_linkage_form_p initializer.
2157 (unknown_language::store_sym_names_in_linkage_form_p): New member
2158 function.
2159 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2160 initializer.
2161 (auto_language::store_sym_names_in_linkage_form_p): New member
2162 function.
2163 * language.h (language_data): Remove
2164 la_store_sym_names_in_linkage_form_p member variable.
2165 (language_defn::store_sym_names_in_linkage_form_p): New member
2166 function.
2167 * m2-lang.c (m2_language_data): Remove
2168 la_store_sym_names_in_linkage_form_p 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
22c12a6c
AB
21742020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2175
2176 * ada-lang.c (ada_language_data): Remove string_lower_bound
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 * go-lang.c (go_language_data): Likewise.
2185 * language.c (unknown_language_data): Likewise.
2186 (auto_language_data): Likewise.
2187 * language.h (language_data): Remove string_lower_bound field.
2188 (language_defn::string_lower_bound): New member function.
2189 * m2-lang.c (m2_language_data): Remove string_lower_bound
2190 initializer.
2191 (m2_language::string_lower_bound): New member function.
2192 * objc-lang.c (objc_language_data): Remove string_lower_bound
2193 initializer.
2194 * opencl-lang.c (opencl_language_data): Likewise.
2195 * p-lang.c (pascal_language_data): Likewise.
2196 * rust-lang.c (rust_language_data): Likewise.
2197 * valops.c (value_cstring): Update call to string_lower_bound.
2198 (value_string): Likewise.
2199 * value.c (allocate_repeated_value): Likewise.
2200
1c236ddd
AB
22012020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2202
2203 * valops.c (value_repeat): Fix incorrect argument name in comment.
2204
67bd3fd5
AB
22052020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2206
2207 * ada-lang.c (ada_language_data): Remove c_style_arrays
2208 initializer.
2209 (ada_language::c_style_arrays_p): New member fuction.
2210 * c-lang.c (c_language_data): Remove c_style_arrays
2211 initializer.
2212 (cplus_language_data): Likewise.
2213 (asm_language_data): Likewise.
2214 (minimal_language_data): Likewise.
2215 * d-lang.c (d_language_data): Likewise.
2216 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2217 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2218 (f_language::c_style_arrays_p): New member function.
2219 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2220 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2221 * language.c (unknown_language_data): Remove c_style_arrays
2222 initializer.
2223 (auto_language_data): Likewise.
2224 * language.h (language_data): Remove c_style_arrays field.
2225 (language_defn::c_style_arrays_p): New member function.
2226 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2227 (m2_language::c_style_arrays_p): New member function.
2228 * objc-lang.c (objc_language_data): Remove c_style_arrays
2229 initializer.
2230 * opencl-lang.c (opencl_language_data): Likewise.
2231 * p-lang.c (pascal_language_data): Likewise.
2232 * rust-lang.c (rust_language_data): Likewise.
2233 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2234 and update local variable to a bool.
2235 * valops.c (value_cast): Update call to c_style_arrays_p.
2236 (value_array): Likewise.
2237 * value.c (coerce_array): Likewise.
2238
85967615
AB
22392020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2240
2241 * ada-lang.c (ada_language_data): Remove la_language initializer.
2242 * c-lang.c (c_language_data): Likewise.
2243 (cplus_language_data): Likewise.
2244 (asm_language_data): Likewise.
2245 (minimal_language_data): Likewise.
2246 * d-lang.c (d_language_data): Likewise.
2247 * f-lang.c (f_language_data): Likewise.
2248 * go-lang.c (go_language_data): Likewise.
2249 * language.c (unknown_language_data): Likewise.
2250 (auto_language_data): Likewise.
2251 * language.h (language_data): Remove la_language field.
2252 (language_defn::language_defn): Initialise la_language field.
2253 (language_defn::la_language): New member variable.
2254 * m2-lang.c (m2_language_data): Remove la_language field.
2255 * objc-lang.c (objc_language_data): Likewise.
2256 * opencl-lang.c (opencl_language_data): Likewise.
2257 * p-lang.c (pascal_language_data): Likewise.
2258 * rust-lang.c (rust_language_data): Likewise.
2259
e171d6f1
AB
22602020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2261
2262 * ada-lang.c (ada_extensions): Delete, moved into
2263 ada_language::filename_extensions.
2264 (ada_language_data): Remove la_filename_extensions initializer.
2265 (ada_language::filename_extensions): New member function.
2266 * c-lang.c (c_extensions): Delete, moved into
2267 c_language::filename_extensions.
2268 (c_language_data): Remove la_filename_extensions initializer.
2269 (c_language::filename_extensions): New member function.
2270 (cplus_extensions): Delete, moved into
2271 cplus_language::filename_extensions.
2272 (cplus_language_data): Remove la_filename_extensions initializer.
2273 (cplus_language::filename_extensions): New member function.
2274 (asm_extensions): Delete, moved into
2275 asm_language::filename_extensions.
2276 (asm_language_data): Remove la_filename_extensions initializer.
2277 (asm_language::filename_extensions): New member function.
2278 (minimal_language_data): Remove la_filename_extensions
2279 initializer.
2280 * d-lang.c (d_extensions): Delete, moved into
2281 d_language::filename_extensions.
2282 (d_language_data): Remove la_filename_extensions initializer.
2283 (d_language::filename_extensions): New member function.
2284 * f-lang.c (f_extensions): Delete, moved into
2285 f_language::filename_extensions.
2286 (f_language_data): Remove la_filename_extensions initializer.
2287 (f_language::filename_extensions): New member function.
2288 * go-lang.c (go_language_data): Remove la_filename_extensions
2289 initializer.
2290 * language.c (add_set_language_command): Update now that
2291 filename_extensions returns a vector.
2292 (unknown_language_data): Remove la_filename_extensions
2293 initializer.
2294 (auto_language_data): Likewise.
2295 * language.h (language_data): Remove la_filename_extensions field.
2296 (language_defn::filename_extensions): New member function.
2297 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2298 initializer.
2299 * objc-lang.c (objc_extensions): Delete, moved into
2300 objc_language::filename_extensions.
2301 (objc_language_data): Remove la_filename_extensions initializer.
2302 (objc_language::filename_extensions): New member function.
2303 * opencl-lang.c (opencl_language_data): Remove
2304 la_filename_extensions initializer.
2305 * p-lang.c (pascal_extensions): Delete, moved into
2306 pascal_language::filename_extensions.
2307 (pascal_language_data): Remove la_filename_extensions initializer.
2308 (pascal_language::filename_extensions): New member function.
2309 * rust-lang.c (rust_extensions): Delete, moved into
2310 rust_language::filename_extensions.
2311 (rust_language_data): Remove la_filename_extensions initializer.
2312 (rust_language::filename_extensions): New member function.
2313 * symfile.c (add_filename_language): Add new assert.
2314
6f7664a9
AB
23152020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2316
2317 * ada-lang.c (ada_language_data): Remove la_name and
2318 la_natural_name initializers.
2319 (ada_language::name): New member function.
2320 (ada_language::natural_name): New member function.
2321 * c-lang.c (c_language_data): Remove la_name and
2322 la_natural_name initializers.
2323 (c_language::name): New member function.
2324 (c_language::natural_name): New member function.
2325 (cplus_language_data): Remove la_name and
2326 la_natural_name initializers.
2327 (cplus_language::name): New member function.
2328 (cplus_language::natural_name): New member function.
2329 (asm_language_data): Remove la_name and
2330 la_natural_name initializers.
2331 (asm_language::name): New member function.
2332 (asm_language::natural_name): New member function.
2333 (minimal_language_data): Remove la_name and
2334 la_natural_name initializers.
2335 (minimal_language::name): New member function.
2336 (minimal_language::natural_name): New member function.
2337 * compile/compile.c (compile_to_object): Update call to
2338 lanugage_defn::name.
2339 * d-lang.c (d_language_data): Remove la_name and
2340 la_natural_name initializers.
2341 (d_language::name): New member function.
2342 (d_language::natural_name): New member function.
2343 * expprint.c (print_subexp_standard): Update call to
2344 language_defn::name.
2345 (dump_raw_expression): Likewise
2346 (dump_prefix_expression): Likewise.
2347 * f-lang.c (f_language_data): Remove la_name and
2348 la_natural_name initializers.
2349 (f_language::name): New member function.
2350 (f_language::natural_name): New member function.
2351 * go-lang.c (go_language_data): Remove la_name and
2352 la_natural_name initializers.
2353 (go_language::name): New member function.
2354 (go_language::natural_name): New member function.
2355 * language.c (show_language_command): Update call to
2356 language_defn::name.
2357 (set_language_command): Likewise.
2358 (language_enum): Likewise.
2359 (language_str): Likewise.
2360 (add_set_language_command): Likewise, use
2361 language_defn::natural_name in the doc string.
2362 (unknown_language_data): Remove la_name and
2363 la_natural_name initializers.
2364 (unknown_language::name): New member function.
2365 (unknown_language::natural_name): New member function.
2366 (auto_language_data): Remove la_name and
2367 la_natural_name initializers.
2368 (auto_language::name): New member function.
2369 (auto_language::natural_name): New member function.
2370 (language_lookup_primitive_type_as_symbol): Update call to
2371 language_defn::name.
2372 * language.h (language_data): Remove la_name and la_natural_name
2373 member variables.
2374 (language_defn::name): New member function.
2375 (language_defn::natural_name): New member function.
2376 * m2-lang.c (m2_language_data): Remove la_name and
2377 la_natural_name initializers.
2378 (m2_language::name): New member function.
2379 (m2_language::natural_name): New member function.
2380 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2381 language_defn::natural_name.
2382 * objc-lang.c (objc_language_data): Remove la_name and
2383 la_natural_name initializers.
2384 (objc_language::name): New member function.
2385 (objc_language::natural_name): New member function.
2386 * opencl-lang.c (opencl_language_data): Remove la_name and
2387 la_natural_name initializers.
2388 (opencl_language::name): New member function.
2389 (opencl_language::natural_name): New member function.
2390 * p-lang.c (pascal_language_data): Remove la_name and
2391 la_natural_name initializers.
2392 (pascal_language::name): New member function.
2393 (pascal_language::natural_name): New member function.
2394 * rust-lang.c (rust_language_data): Remove la_name and
2395 la_natural_name initializers.
2396 (rust_language::name): New member function.
2397 (rust_language::natural_name): New member function.
2398 * symtab.c (lookup_language_this): Update call to
2399 language_defn::name.
2400
5bae7c4e
AB
24012020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2402
2403 * ada-lang.c (ada_language_data): Remove la_name_of_this
2404 initializer.
2405 * ax-gdb.c (gen_expr): Update call to name_of_this.
2406 * c-exp.y (classify_name): Likewise.
2407 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2408 (cplus_language_data): Likewise.
2409 (cplus_language::name_of_this): New member function.
2410 (asm_language_data): Remove la_name_of_this initializer.
2411 (minimal_language_data): Likewise.
2412 * d-lang.c (d_language_data): Likewise.
2413 (d_language::name_of_this): New member function.
2414 * expprint.c (print_subexp_standard): Update call to name_of_this.
2415 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2416 * go-lang.c (go_language_data): Likewise.
2417 * language.c (unknown_language_data): Likewise.
2418 (unknown_language::name_of_this): New member function.
2419 (auto_language_data): Remove la_name_of_this initializer.
2420 (auto_language::name_of_this): New member function.
2421 * language.h (language_data): Delete la_name_of_this member
2422 variable.
2423 (language_defn::name_of_this): New member function.
2424 * m2-lang.c (m2_language_data): Remove la_name_of_this
2425 initializer.
2426 * objc-lang.c (objc_language_data): Likewise.
2427 (objc_language::name_of_this): New member function.
2428 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2429 initializer.
2430 * p-lang.c (pascal_language_data): Likewise.
2431 (pascal_language::name_of_this): New member function.
2432 * rust-lang.c (rust_language_data): Remove la_name_of_this
2433 initializer.
2434 * symtab.c (lookup_language_this): Update call to name_of_this.
2435 (lookup_symbol_aux): Likewise.
2436 * valops.c (value_of_this): Likewise.
2437
22e3f3ed
AB
24382020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2439
2440 * ada-lang.c (ada_language_data): Remove
2441 la_struct_too_deep_ellipsis initializer.
2442 (ada_language::struct_too_deep_ellipsis): New member function.
2443 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2444 initializer.
2445 (cplus_language_data): Likewise.
2446 (asm_language_data): Likewise.
2447 (minimal_language_data): Likewise.
2448 * cp-valprint.c (cp_print_value): Update call to
2449 struct_too_deep_ellipsis.
2450 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2451 initializer.
2452 * f-lang.c (f_language_data): Likewise.
2453 (f_language::struct_too_deep_ellipsis): New member function.
2454 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2455 initializer.
2456 * language.c (unknown_language_data): Likewise.
2457 (auto_language_data): Likewise.
2458 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2459 member variable.
2460 (language_defn::struct_too_deep_ellipsis): New member function.
2461 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2462 initializer.Q
2463 * objc-lang.c (objc_language_data): Likewise.
2464 * opencl-lang.c (opencl_language_data): Likewise.
2465 * p-lang.c (pascal_language_data): Likewise.
2466 * rust-lang.c (rust_language_data): Likewise.
2467 * valprint.c (val_print_check_max_depth): Update call to
2468 struct_too_deep_ellipsis.
2469
ed29e1c7
FW
24702020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2471
2472 * MAINTAINERS (Write After Approval): Add myself.
2473
12d8f940
TT
24742020-09-15 Tom Tromey <tom@tromey.com>
2475
2476 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2477 Remove.
2478
6b5a7bc7
TT
24792020-09-15 Tom Tromey <tom@tromey.com>
2480
2481 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2482 and TYPE_CODE_METHODPTR cases.
2483 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2484 (c_value_print_inner): Update.
2485 * valprint.c (generic_value_print_memberptr): New function, from
2486 c_value_print_memberptr.
2487 (generic_value_print): Use it. Call cplus_print_method_ptr.
2488
47f0e2ff
TT
24892020-09-15 Tom Tromey <tromey@adacore.com>
2490
2491 * python/python-internal.h (PyInt_FromLong): Remove define.
2492 * python/py-value.c (convert_value_from_python): Use
2493 gdb_py_object_from_longest.
2494 * python/py-type.c (typy_get_code): Use
2495 gdb_py_object_from_longest.
2496 * python/py-symtab.c (salpy_get_line): Use
2497 gdb_py_object_from_longest.
2498 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2499 gdb_py_object_from_longest.
2500 * python/py-record.c (recpy_gap_reason_code): Use
2501 gdb_py_object_from_longest.
2502 * python/py-record-btrace.c (recpy_bt_insn_size)
2503 (recpy_bt_func_level, btpy_list_count): Use
2504 gdb_py_object_from_longest.
2505 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2506 gdb_py_object_from_longest. Fix error handling.
2507 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2508 gdb_py_object_from_longest.
2509 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2510 gdb_py_object_from_longest.
2511 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2512 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2513 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2514
512116ce
TT
25152020-09-15 Tom Tromey <tromey@adacore.com>
2516
2517 * python/python.c (gdbpy_parameter_value): Use
2518 gdb_py_object_from_ulongest.
2519
4ab1029c
TT
25202020-09-15 Tom Tromey <tromey@adacore.com>
2521
2522 * python/py-infevents.c (create_register_changed_event_object):
2523 Use gdb_py_object_from_longest.
2524 * python/py-exitedevent.c (create_exited_event_object): Use
2525 gdb_py_object_from_longest.
2526
062534d4
TT
25272020-09-15 Tom Tromey <tromey@adacore.com>
2528
2529 * python/python.c (gdbpy_parameter_value): Use
2530 gdb_py_object_from_longest.
2531 * python/py-type.c (convert_field, typy_range): Use
2532 gdb_py_object_from_longest.
2533 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2534 gdb_py_object_from_longest.
2535 * python/py-lazy-string.c (stpy_get_length): Use
2536 gdb_py_object_from_longest.
2537 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2538 gdb_py_object_from_longest.
2539 * python/py-infevents.c (create_memory_changed_event_object): Use
2540 gdb_py_object_from_longest.
2541 * python/py-inferior.c (infpy_get_num): Use
2542 gdb_py_object_from_longest.
2543 (infpy_get_pid): Likewise.
2544
d1cab987
TT
25452020-09-15 Tom Tromey <tromey@adacore.com>
2546
2547 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2548 defines.
2549 * python/py-value.c (valpy_long): Use
2550 gdb_py_object_from_ulongest.
2551 * python/py-symtab.c (salpy_get_pc): Use
2552 gdb_py_object_from_ulongest.
2553 (salpy_get_last): Likewise.
2554 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2555 gdb_py_object_from_ulongest.
2556 * python/py-lazy-string.c (stpy_get_address): Use
2557 gdb_py_object_from_ulongest.
2558 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2559 * python/py-arch.c (archpy_disassemble): Use
2560 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2561 error handling.
2562
4bde49dc
TT
25632020-09-15 Tom Tromey <tromey@adacore.com>
2564
2565 * python/python-internal.h (gdb_py_long_from_longest): Remove
2566 defines.
2567 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2568 * python/py-type.c (convert_field, typy_get_sizeof): Use
2569 gdb_py_object_from_longest.
2570 * python/py-record-btrace.c (btpy_list_index): Use
2571 gdb_py_object_from_longest.
2572
37431074
TT
25732020-09-15 Tom Tromey <tromey@adacore.com>
2574
2575 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2576 * python/py-record.c (recpy_element_number): Use
2577 gdb_py_object_from_longest.
2578 (recpy_gap_number): Likewise.
2579
cbe25684
TT
25802020-09-15 Tom Tromey <tromey@adacore.com>
2581
2582 * top.c (ui::ui): Update.
2583 (highest_ui_num): Remove.
2584 * top.h (struct ui) <num>: Remove.
2585
db92ac45
TT
25862020-09-15 Tom Tromey <tromey@adacore.com>
2587
2588 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2589 * ui-style.c (ansi_regex_text): Now array.
2590 * rust-exp.y (number_regex_text): Now array.
2591 * linespec.c (linespec_quote_characters): Now array.
2592 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2593 Now arrays.
2594
d2b31b67
SM
25952020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2596
2597 * debuginfod-support.c (debuginfod_client_deleter): New.
2598 (debuginfod_client_up): New.
2599 (debuginfod_init): Return debuginfod_client_up.
2600 (debuginfod_source_query): Adjust.
2601 (debuginfod_debuginfo_query): Adjust.
2602
3246bd8e
SM
26032020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2604
2605 * debuginfod-support.c (debuginfod_source_query): Use
2606 make_unique_xstrdup.
2607
10242f36
SM
26082020-09-14 Simon Marchi <simon.marchi@efficios.com>
2609
2610 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2611 with `type::instance_flags`.
2612
e1044e6a
MM
26132020-09-14 Michael Mullin <masmullin@gmail.com>
2614
2615 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2616 Remove baton parameter.
2617
04902b09
PA
26182020-09-14 Pedro Alves <pedro@palves.net>
2619
2620 * Makefile.in (SELFTESTS_SRCS): Add
2621 unittests/enum-flags-selftests.c.
2622 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2623 btrace_function_flags instead of enum btrace_function_flag.
2624 * compile/compile-c-types.c (convert_qualified): Use
2625 enum_flags::raw.
2626 * compile/compile-cplus-symbols.c (convert_one_symbol)
2627 (convert_symbol_bmsym):
2628 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2629 (compile_cplus_convert_struct_or_union_methods)
2630 (compile_cplus_instance::convert_qualified_base):
2631 * go-exp.y (parse_string_or_char): Add cast to int.
2632 * unittests/enum-flags-selftests.c: New file.
2633 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2634 type to btrace_thread_flags from btrace_thread_flag.
2635 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2636 local's type to btrace_thread_flags from btrace_thread_flag. Add
2637 cast in DEBUG call.
2638
69896a2c
PA
26392020-09-14 Pedro Alves <pedro@palves.net>
2640
2641 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2642 * gdbtypes.c (address_space_name_to_int): Rename to ...
2643 (address_space_name_to_type_instance_flags): ... this.
2644 (address_space_int_to_name): Rename to ...
2645 (address_space_type_instance_flags_to_name): ... this.
2646 * gdbtypes.h (address_space_name_to_int): Rename to ...
2647 (address_space_name_to_type_instance_flags): ... this.
2648 (address_space_int_to_name): Rename to ...
2649 (address_space_type_instance_flags_to_name): ... this.
2650 * type-stack.c (type_stack::insert): Adjust to rename.
2651 * type-stack.h (type_stack::insert): Likewise.
2652
314ad88d
PA
26532020-09-14 Pedro Alves <pedro@palves.net>
2654 Andrew Burgess <andrew.burgess@embecosm.com>
2655
2656 * avr-tdep.c (avr_address_class_type_flags): Return
2657 type_instance_flags.
2658 (avr_address_class_type_flags_to_name): Take a
2659 type_instance_flags.
2660 (avr_address_class_name_to_type_flags): Return bool and take a
2661 type_instance_flags.
2662 * d-lang.c (build_d_types): Use type::set_instance_flags.
2663 * ft32-tdep.c (ft32_address_class_type_flags): Return
2664 type_instance_flags.
2665 (ft32_address_class_type_flags_to_name): Take a
2666 type_instance_flags.
2667 (ft32_address_class_name_to_type_flags): Return bool and take a
2668 type_instance_flags.
2669 (ft32_gdbarch_init): Use type::set_instance_flags.
2670 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2671 * gdbarch.h, gdbarch.c: Regenerate.
2672 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2673 (address_class_name_to_type_flags): Use type_instance_flags and
2674 bool.
2675 * gdbtypes.c (address_space_name_to_int)
2676 (address_space_int_to_name, make_qualified_type): Use
2677 type_instance_flags.
2678 (make_qualified_type): Use type_instance_flags and
2679 type::set_instance_flags.
2680 (make_type_with_address_space, make_cv_type, make_vector_type)
2681 (check_typedef): Use type_instance_flags.
2682 (recursive_dump_type): Cast type_instance_flags to unsigned for
2683 printing.
2684 (copy_type_recursive): Use type::set_instance_flags.
2685 (gdbtypes_post_init): Use type::set_instance_flags.
2686 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2687 <m_instance_flags>: ... this.
2688 <instance_flags, set_instance_flags>: New methods.
2689 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2690 (SET_TYPE_INSTANCE_FLAGS): New.
2691 (address_space_name_to_int, address_space_int_to_name)
2692 (make_type_with_address_space): Pass flags using
2693 type_instance_flags instead of int.
2694 * stabsread.c (cleanup_undefined_types_noname): Use
2695 type::set_instance_flags.
2696 * s390-tdep.c (s390_address_class_type_flags): Return
2697 type_instance_flags.
2698 (s390_address_class_type_flags_to_name): Take a
2699 type_instance_flags.
2700 (s390_address_class_name_to_type_flags): Return bool and take a
2701 type_instance_flags.
2702 * type-stack.c (type_stack::follow_types): Use
2703 type_instance_flags.
2704 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2705
27087b7f
TT
27062020-09-14 Tom Tromey <tromey@adacore.com>
2707
2708 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2709 * x86-tdep.c (x86_is_thunk_register_name)
2710 (x86_in_indirect_branch_thunk): Update.
2711 * sparc64-tdep.c (sparc64_fpu_register_names)
2712 (sparc64_cp0_register_names, sparc64_register_names)
2713 (sparc64_pseudo_register_names): Now const.
2714 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2715 cp0_registers_num>: Now const.
2716 * sparc-tdep.c (sparc_core_register_names)
2717 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2718 (sparc32_pseudo_register_names): Now const.
2719 (validate_tdesc_registers): Update.
2720 * rust-lang.c (rust_extensions): Now const.
2721 * p-lang.c (p_extensions): Now const.
2722 * objc-lang.c (objc_extensions): Now const.
2723 * nto-tdep.c (nto_thread_state_str): Now const.
2724 * moxie-tdep.c (moxie_register_names): Now const.
2725 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2726 Now const.
2727 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2728 (mips_linux_reg_names): Now const.
2729 (mips_gdbarch_init): Update.
2730 * microblaze-tdep.c (microblaze_register_names): Now const.
2731 * m68k-tdep.c (m68k_register_names): Now const.
2732 * m32r-tdep.c (m32r_register_names): Now const.
2733 * ia64-tdep.c (ia64_register_names): Now const.
2734 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2735 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2736 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2737 ymm_avx512_register_names, pkeys_register_names>: Now const.
2738 * i386-tdep.c (i386_register_names, i386_zmm_names)
2739 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2740 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2741 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2742 * f-lang.c (f_extensions): Now const.
2743 * d-lang.c (d_extensions): Now const.
2744 * csky-tdep.c (csky_register_names): Now const.
2745 * charset.c (default_charset_names, charset_enum): Now const.
2746 (_initialize_charset): Update.
2747 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2748 const.
2749 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2750 (bsd_uthread_solib_loaded): Update.
2751 (bsd_uthread_state): Now const.
2752 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2753 (amd64_ymm_avx512_names, amd64_ymmh_names)
2754 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2755 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2756 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2757 (amd64_dword_names): Now const.
2758 * agent.c (can_use_agent_enum): Now const.
2759 * ada-tasks.c (task_states, long_task_states): Now const.
2760 * ada-lang.c (known_runtime_file_name_patterns)
2761 (known_auxiliary_function_name_patterns, attribute_names)
2762 (standard_exc, ada_extensions): Now const.
2763
89806626
SM
27642020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2765
2766 * bcache.h (struct bcache) <bcache>: Remove constructor.
2767 <m_hash_function, m_compare_function>: Remove.
2768 <~bcache>: Make virtual.
2769 <compare>: Remove static method, introduce virtual method.
2770 <default_hash>: Remove.
2771 <hash>: New virtual method.
2772 * bcache.c (bcache::expand_hash_table): Update.
2773 (bcache::insert): Update.
2774 (bcache::hash): New.
2775 (bcache::compare): Update comment and parameter names.
2776 * gdbtypes.c (types_deeply_equal): Update.
2777 * psymtab.h (struct psymbol_bcache): New struct.
2778 (class psymtab_storage) <psymtab_storage>: Make default.
2779 <psymbol_cache>: Change type to psymbol_bcache.
2780 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2781 (psymbol_hash): Change to...
2782 (psymbol_bcache::hash): ... this.
2783 (psymbol_compare): Change to...
2784 (psymbol_bcache::compare): ... this.
2785
677c92fe
SM
27862020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2787
2788 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2789 checking for initial lwp.
2790
3eba3a01
TT
27912020-09-14 Tom Tromey <tromey@adacore.com>
2792
2793 * m68k-tdep.c (m68k_extract_return_value): Use
2794 pointer_result_regnum.
2795 (m68k_store_return_value): Likewise.
2796 (m68k_reg_struct_return_p): Handle vectors and arrays.
2797 (m68k_return_value): Handle arrays.
2798 (m68k_svr4_return_value): Fix single-element aggregate handling.
2799 Handle long double. Adjust for embedded ABI.
2800 (m68k_svr4_init_abi): Set pointer_result_regnum.
2801 (m68k_embedded_init_abi): New function.
2802 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2803 (m68k_osabi_sniffer): New function.
2804 (_initialize_m68k_tdep): Register osabi sniffer.
2805 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2806 member.
2807
33f4dd48
SM
28082020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2809
2810 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2811 with gdb::unique_xmalloc_ptr<char>.
2812
8400a90d
SM
28132020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2814
2815 * xml-support.h (xml_fetch_another): Change type to be a
2816 function_view.
2817 (xml_process_xincludes): Remove baton parameter.
2818 (xml_fetch_content_from_file): Change baton parameter to
2819 dirname.
2820 * xml-support.c (struct xinclude_parsing_data)
2821 <xinclude_parsing_data>: Remove baton parameter.
2822 <fetcher_baton>: Remove.
2823 (xinclude_start_include): Adjust.
2824 (xml_process_xincludes): Adjust.
2825 (xml_fetch_content_from_file): Replace baton parameter with
2826 dirname.
2827 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2828 (xml_init_syscalls_info): Use a lambda.
2829 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2830 (file_read_description_xml): Use a lambda.
2831 (fetch_available_features_from_target): Change baton parameter
2832 to target_ops.
2833 (target_read_description_xml): Use a lambda.
2834 (target_fetch_description_xml): Use a lambda.
2835 (string_read_description_xml): Update.
2836
04f5bab2
SM
28372020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2838
2839 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2840 uses with type::endianity_is_not_default.
2841
db558e34
SM
28422020-09-14 Simon Marchi <simon.marchi@efficios.com>
2843
2844 * gdbtypes.h (struct type) <endianity_is_not_default,
2845 set_endianity_is_not_default>: New methods.
2846 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2847 type::endianity_is_not_default, change all write call sites to
2848 use type::set_endianity_is_not_default.
2849
22c4c60c
SM
28502020-09-14 Simon Marchi <simon.marchi@efficios.com>
2851
2852 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2853 uses with type::is_fixed_instance.
2854
9cdd0d12
SM
28552020-09-14 Simon Marchi <simon.marchi@efficios.com>
2856
2857 * gdbtypes.h (struct type) <is_fixed_instance,
2858 set_is_fixed_instance>: New methods.
2859 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2860 write call sites to use type::set_is_fixed_instance.
2861
0becda7a
SM
28622020-09-14 Simon Marchi <simon.marchi@efficios.com>
2863
2864 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2865 uses with type::is_gnu_ifunc.
2866
03cc7249
SM
28672020-09-14 Simon Marchi <simon.marchi@efficios.com>
2868
2869 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2870 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2871 use type::set_is_gnu_ifunc.
2872
3f46044c
SM
28732020-09-14 Simon Marchi <simon.marchi@efficios.com>
2874
2875 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2876 uses with type::stub_is_supported.
2877
9baccff6
SM
28782020-09-14 Simon Marchi <simon.marchi@efficios.com>
2879
2880 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2881 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2882 use type::set_stub_is_supported.
2883
bd63c870
SM
28842020-09-14 Simon Marchi <simon.marchi@efficios.com>
2885
2886 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2887 uses with type::is_vector.
2888
2062087b
SM
28892020-09-14 Simon Marchi <simon.marchi@efficios.com>
2890
2891 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2892 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2893 use type::set_is_vector.
2894
a409645d
SM
28952020-09-14 Simon Marchi <simon.marchi@efficios.com>
2896
2897 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2898 uses with type::has_varargs.
2899
1d6286ed
SM
29002020-09-14 Simon Marchi <simon.marchi@efficios.com>
2901
2902 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2903 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2904 use type::set_has_varargs.
2905
7f9f399b
SM
29062020-09-14 Simon Marchi <simon.marchi@efficios.com>
2907
2908 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2909 uses with type::is_prototyped.
2910
27e69b7a
SM
29112020-09-14 Simon Marchi <simon.marchi@efficios.com>
2912
2913 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2914 New methods.
2915 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2916 call sites to use type::set_is_prototyped.
2917
d2183968
SM
29182020-09-14 Simon Marchi <simon.marchi@efficios.com>
2919
2920 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2921 uses with type::target_is_stub.
2922
8f53807e
SM
29232020-09-14 Simon Marchi <simon.marchi@efficios.com>
2924
2925 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2926 New methods.
2927 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2928 sites to use type::set_target_is_stub.
2929
e46d3488
SM
29302020-09-14 Simon Marchi <simon.marchi@efficios.com>
2931
2932 * gdbtypes.h (TYPE_STUB): Remove, replace all
2933 uses with type::is_stub.
2934
b4b73759
SM
29352020-09-14 Simon Marchi <simon.marchi@efficios.com>
2936
2937 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2938 (TYPE_STUB): Use type::is_stub, change all write call sites to
2939 use type::set_is_stub.
2940
20ce4123
SM
29412020-09-14 Simon Marchi <simon.marchi@efficios.com>
2942
2943 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2944 type::has_no_signedness.
2945
15152a54
SM
29462020-09-14 Simon Marchi <simon.marchi@efficios.com>
2947
2948 * gdbtypes.h (struct type) <has_no_signedness,
2949 set_has_no_signedness>: New methods.
2950 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2951 call sites to use type::set_has_no_signedness.
2952
c6d940a9
SM
29532020-09-14 Simon Marchi <simon.marchi@efficios.com>
2954
2955 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2956 type::is_unsigned.
2957
653223d3
SM
29582020-09-14 Simon Marchi <simon.marchi@efficios.com>
2959
2960 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2961 methods.
2962 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2963 sites to use type::set_is_unsigned.
2964
55ea94da 29652020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 2966 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 2967
e851246a
SM
2968 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2969 pointer and stack frame offset when unwinding.
55ea94da 2970
6791b117
PA
29712020-09-13 Pedro Alves <pedro@palves.net>
2972
2973 * NEWS: Document "-break-insert --qualified".
2974 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2975
77f2120b
PA
29762020-09-13 Pedro Alves <pedro@palves.net>
2977
2978 * linespec.c (classify_mtype, compare_msyms): Delete.
2979 (search_minsyms_for_name): Remove classification logic. Instead
2980 filter out trampoline symbols if we also found an external
2981 function of the same name.
2982
ed6a896c
JB
29832020-09-13 Joel Brobecker <brobecker@adacore.com>
2984
2985 * NEWS: Create a new section for the next release branch.
2986 Rename the section of the current branch, now that it has
2987 been cut.
2988
32aea73e
JB
29892020-09-13 Joel Brobecker <brobecker@adacore.com>
2990
2991 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2992 * version.in: Bump version to 11.0.50.DATE-git.
2993
8087c3fa
JB
29942020-09-12 Joel Brobecker <brobecker@adacore.com>
2995
2996 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2997
2a67f09d
FW
29982020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2999 Felix Willgerodt <Felix.Willgerodt@intel.com>
3000
3001 * gdbarch.sh: Added bfloat16 type.
3002 * gdbarch.c: Regenerated.
3003 * gdbarch.h: Regenerated.
3004 * gdbtypes.c (floatformats_bfloat16): New struct.
3005 (gdbtypes_post_init): Add builtin_bfloat16.
3006 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3007 (floatformats_bfloat16): New struct.
3008 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3009 (i386_ymm_type): Add field "v16_bfloat16"
3010 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3011 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3012 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3013 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3014 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3015 * features/i386/64bit-avx512.c: Regenerated.
3016 * features/i386/64bit-sse.xml: Add bfloat16 type.
3017 * features/i386/64bit-sse.c: Regenerated.
3018
1347d111
FW
30192020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3020
3021 * i386-tdep.c (i386_zmm_type): Fix field names.
3022 (i386_ymm_type): Fix field names.
3023
7a4e8e7d
TBA
30242020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3025
3026 * breakpoint.c: Fix typo in the help message of the
3027 "set breakpoint condition-evaluation" command.
3028
cf4ac4be
KR
30292020-09-10 Kamil Rytarowski <n54@gmx.com>
3030
3031 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3032 * (nbsd_nat_target::pid_to_exec_file)
3033 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3034 (nbsd_nat_target::post_startup_inferior)
3035 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3036 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3037 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3038 * (nbsd_thread_lister): Remove.
3039
f404573e
KR
30402020-09-10 Kamil Rytarowski <n54@gmx.com>
3041
3042 * fork-inferior.c (startup_inferior): Avoid double free.
3043
1ccb2c17
KR
30442020-09-10 Kamil Rytarowski <n54@gmx.com>
3045
3046 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3047 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3048
feedfcc7
KR
30492020-09-10 Kamil Rytarowski <n54@gmx.com>
3050
3051 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3052 * netbsd-nat.c: Include <sys/ptrace.h>.
3053 * (netbsd_nat::enable_proc_events): Add.
3054
c489f8c6
KR
30552020-09-10 Kamil Rytarowski <n54@gmx.com>
3056
3057 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3058 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3059 (netbsd_nat::for_each_thread): Add.
3060 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3061 "gdbsupport/common-debug.h".
3062 * (netbsd_nat::netbsd_thread_lister)
3063 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3064 (netbsd_nat::for_each_thread): Add.
3065
330662f6
KR
30662020-09-10 Kamil Rytarowski <n54@gmx.com>
3067
3068 * netbsd-nat.h: Include <unistd.h>.
3069 * (netbsd_nat::pid_to_exec_file): Add.
3070 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3071 * (netbsd_nat::pid_to_exec_file) Add.
3072
70b67307
KR
30732020-09-10 Kamil Rytarowski <n54@gmx.com>
3074
3075 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3076
99cf6da6
KR
30772020-09-10 Kamil Rytarowski <n54@gmx.com>
3078
3079 * netbsd-nat.h: New file.
3080 * netbsd-nat.c: Likewise.
3081
1b788fb6
TT
30822020-09-09 Tom Tromey <tromey@adacore.com>
3083
3084 * ada-lang.c (remove_extra_symbols): Do not increment when
3085 removing an element
3086
03b0a45f
TT
30872020-09-08 Tom Tromey <tromey@adacore.com>
3088
3089 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3090
3cae4447
TT
30912020-09-08 Tom Tromey <tromey@adacore.com>
3092
3093 PR win32/25302:
3094 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3095 (gdb_bfd_init_data): New function.
3096 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3097
7f08fd51
TBA
30982020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3099
3100 * infrun.c (fetch_inferior_event): Use
3101 `switch_to_target_no_thread` to switch the target.
3102
3e6ff933
TT
31032020-09-06 Tom Tromey <tom@tromey.com>
3104
3105 * symfile.h (dwarf2_free_objfile): Don't declare.
3106
e56798df
AKS
31072020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3108
3109 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3110 to match 16 byte real/complex type generated by Flang compiler.
3111
8f5c6526
TV
31122020-09-03 Tom de Vries <tdevries@suse.de>
3113
3114 PR breakpoint/26546
3115 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3116 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3117
c5065df0
SM
31182020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3119
3120 * maint.c (index_digits): New function.
3121 (struct maint_print_section_data): Remove.
3122 (print_bfd_section_info): Remove print_data parameter, add arg
3123 and index_digits.
3124 (print_objfile_section_info): Likewise.
3125 (print_bfd_section_info_maybe_relocated): Likewise (plus
3126 objfile).
3127 (maintenance_info_sections): Adjust calls.
3128
02c6f3f1
TT
31292020-09-02 Tom Tromey <tromey@adacore.com>
3130
3131 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3132 for null pointers.
3133 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3134
ef5e5b0b
SM
31352020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3136
3137 * bcache.h (struct bcache) <insert>: Change type of `added` to
3138 pointer to bool.
3139 * bcache.c (bcache::insert): Likewise.
3140 * gdbtypes.c (check_types_worklist): Adjust.
3141 * psymtab.c (add_psymbol_to_bcache): Adjust.
3142
973695d6
KB
31432020-08-31 Kevin Buettner <kevinb@redhat.com>
3144
3145 * corelow.c (unordered_set): Include.
3146 (class core_target): Add field 'm_core_unavailable_mappings'.
3147 (core_target::build_file_mappings): Print only one warning
3148 per inaccessible file. Add unavailable/broken mappings
3149 to m_core_unavailable_mappings.
3150 (core_target::xfer_partial): Call...
3151 (core_target::xfer_memory_via_mappings): New method.
3152
264fc0e2
SM
31532020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3154
3155 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3156 type to bool.
3157
2de01bdb
SM
31582020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3159
3160 * dwarf2/read.c (struct field_info): Fix indentation.
3161
f3bd50f1
SM
31622020-08-31 Simon Marchi <simon.marchi@efficios.com>
3163
3164 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3165 ordering in comment.
3166 * frame.c (frame_id_eq): Fix indentation.
3167
22b9b4b0
SL
31682020-08-31 Scott Linder <scott@scottlinder.com>
3169 Simon Marchi <simon.marchi@efficios.com>
3170
3171 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3172 inline frame ids in outer frame.
3173
84154d16
SM
31742020-08-31 Simon Marchi <simon.marchi@efficios.com>
3175
3176 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3177 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3178 (outer_frame_id): Use FID_STACK_OUTER instead of
3179 FID_STACK_INVALID.
3180 (frame_id_p): Don't check for outer_frame_id.
3181
8efaf6b3
SM
31822020-08-31 Simon Marchi <simon.marchi@efficios.com>
3183
3184 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3185 regnum/frame in value. Call allocate_value_lazy.
3186 * frame.c (frame_unwind_register_value): Use
3187 val_print_not_saved.
3188
fe1fe7ea
SM
31892020-08-31 Simon Marchi <simon.marchi@efficios.com>
3190
3191 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3192
f7c7700d
PA
31932020-08-29 Pedro Alves <pedro@palves.net>
3194
3195 * progspace.c (print_program_space): Use all_inferiors. Switch to
3196 the inferior before calling target_pid_to_str.
3197
e0814aae
TT
31982020-08-28 Tom Tromey <tom@tromey.com>
3199
3200 * xcoffread.c (xcoff_end_psymtab): Update comment.
3201 * dbxread.c (dbx_end_psymtab): Update comment.
3202
626d2320
TV
32032020-08-28 Tom de Vries <tdevries@suse.de>
3204
3205 PR breakpoint/26544
3206 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3207 event_location.
3208 (create_breakpoint): Same.
3209 (base_breakpoint_decode_location): Same.
3210 (bkpt_create_sals_from_location): Same.
3211 (bkpt_decode_location): Same.
3212 (bkpt_probe_create_sals_from_location): Same.
3213 (bkpt_probe_decode_location): Same.
3214 (tracepoint_create_sals_from_location): Same.
3215 (tracepoint_decode_location): Same.
3216 (tracepoint_probe_decode_location): Same.
3217 (strace_marker_create_sals_from_location): Same.
3218 (strace_marker_decode_location): Same.
3219 (create_sals_from_location_default): Same.
3220 (decode_location_default): Same.
3221 * breakpoint.h (struct breakpoint_ops): Same.
3222 (create_breakpoint): Same.
3223 * linespec.h (decode_line_full): Same.
3224 * linespec.c (decode_line_full): Same. Throw error if
3225 result.size () == 0.
3226
df631783
PA
32272020-08-27 Pedro Alves <pedro@palves.net>
3228
3229 PR gdb/26524
3230 * breakpoint.c (until_break_fsm) <location_breakpoint,
3231 caller_breakpoint>: Delete fields.
3232 <breakpoints>: New field.
3233 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3234 two individual breakpoints.
3235 (until_break_fsm::should_stop): Loop over breakpoints in the
3236 breakpoint vector.
3237 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3238 vector.
3239 (until_break_command): Handle location expanding into multiple
3240 sals.
3241
b2b38aa4
PA
32422020-08-27 Pedro Alves <pedro@palves.net>
3243
3244 PR gdb/26523
3245 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3246 bp_until breakpoints user-specified locations. Update intro
3247 comment.
3248
b886559f
SM
32492020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3250
3251 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3252 gdb_bfd_sections): New.
3253 * maint.c (print_bfd_section_info): Change param type to
3254 maint_print_section_data.
3255 (print_objfile_section_info): Likewise.
3256 (print_bfd_section_info_maybe_relocated): Likewise.
3257 (maintenance_info_sections): Use gdb_bfd_sections.
3258
4c6e63bf
SV
32592020-08-25 Shahab Vahedi <shahab@synopsys.com>
3260
3261 * MAINTAINERS: Add ARC target and maintainer.
3262
8d7f0635
AK
32632020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3264
3265 * configure.tgt: ARC support for GNU/Linux.
3266 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3267 * arc-linux-tdep.c: New file.
3268 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3269 * arc-tdep.c (arc_write_pc): Use it.
3270
fdd8731b
SV
32712020-08-25 Shahab Vahedi <shahab@synopsys.com>
3272
3273 * arc-tdep.c (arc_check_for_hardware_loop): New.
3274 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3275
22459524
SV
32762020-08-25 Shahab Vahedi <shahab@synopsys.com>
3277
3278 * arc-tdep.h: Include "gdbarch.h".
3279
995d3a19
SV
32802020-08-25 Shahab Vahedi <shahab@synopsys.com>
3281
3282 * arch/arc.h
3283 (arc_gdbarch_features): New class to stir the selection of target XML.
3284 (arc_create_target_description): Use FEATURES to choose XML target.
3285 (arc_lookup_target_description): Use arc_create_target_description
3286 to create _new_ target descriptions or return the already created
3287 ones if the FEATURES is the same.
3288 * arch/arc.c: Implementation of prototypes described above.
3289 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3290 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3291 * arc-tdep.c (*_feature_name): Make feature names consistent.
3292 (arc_register_feature): A new struct to hold information about
3293 registers of a particular target/feature.
3294 (arc_check_tdesc_feature): Check if XML provides registers in
3295 compliance with ARC_REGISTER_FEATURE structs.
3296 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3297 (determine_*_reg_feature_set): Which feature name to look for.
3298 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3299 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3300 to expected ISA enums to be used in arc_gdbarch_features structs.
3301 * features/Makefile (FEATURE_XMLFILES): Add new files.
3302 * gdb/features/arc/v1-aux.c: New file.
3303 * gdb/features/arc/v1-aux.xml: Likewise.
3304 * gdb/features/arc/v1-core.c: Likewise.
3305 * gdb/features/arc/v1-core.xml: Likewise.
3306 * gdb/features/arc/v2-aux.c: Likewise.
3307 * gdb/features/arc/v2-aux.xml: Likewise.
3308 * gdb/features/arc/v2-core.c: Likewise.
3309 * gdb/features/arc/v2-core.xml: Likewise.
3310 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3311
3945d2d7
GM
33122020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3313 Andrew Burgess <andrew.burgess@embecosm.com>
3314
3315 PR m2/26372
fc5d6901 3316 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
3317 an assert. Remove single element array indexing pattern as the
3318 MULTI_SUBSCRIPT support will handle this case too.
3319
2677f2d3
SM
33202020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3321
3322 * value.h (valprint_check_validity): Move declaration from
3323 here...
3324 * valprint.h (valprint_check_validity): ... to here.
3325
c426fddb
SM
33262020-08-24 Simon Marchi <simon.marchi@efficios.com>
3327
3328 * debug.h: New file.
3329 * debug.c (debug_prefixed_vprintf): New function.
3330 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3331 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3332
1eb8556f
SM
33332020-08-24 Simon Marchi <simon.marchi@efficios.com>
3334
3335 * infrun.h (infrun_debug_printf_1): New function declaration.
3336 (infrun_debug_printf): New macro.
3337 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3338 throughout.
3339 (infrun_debug_printf): New function.
3340 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3341 (handle_jit_event): Likewise.
3342
b8fff44e
MW
33432020-08-21 Mark Wielaard <mark@klomp.org>
3344
3345 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3346
d19c3068
SM
33472020-08-22 Simon Marchi <simon.marchi@efficios.com>
3348
3349 * frame.c (enum class frame_id_status): New.
3350 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3351 (fprintf_frame): Update.
3352 (compute_frame_id): Set frame id status to "computing" on entry.
3353 Set it back to "not_computed" on failure and to "computed" on
3354 success.
3355 (get_frame_id): Assert the frame id is not being computed.
3356 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3357 (create_new_frame): Likewise.
3358 (frame_cleanup_after_sniffer): Update assert.
3359
b70e516e
SM
33602020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3361
3362 * regcache.c (pid_ptid_regcache_map): New type.
3363 (target_ptid_regcache_map): Remove.
3364 (target_pid_ptid_regcache_map): New type.
3365 (regcaches): Change type to target_pid_ptid_regcache_map.
3366 (get_thread_arch_aspace_regcache): Update.
3367 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3368 case.
3369 (regcaches_size): Update.
3370 (regcache_count): Update.
3371 (registers_changed_ptid_target_pid_test): New.
3372 (_initialize_regcache): Register new test.
3373
cdd9148a
SM
33742020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3375
3376 * regcache.c (regcache_count): New.
3377 (struct regcache_test_data): New.
3378 (regcache_test_data_up): New.
3379 (populate_regcaches_for_test): New.
3380 (regcaches_test): Remove.
3381 (get_thread_arch_aspace_regcache_test): New.
3382 (registers_changed_ptid_all_test): New.
3383 (registers_changed_ptid_target_test): New.
3384 (registers_changed_ptid_target_ptid_test): New.
3385 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3386 (_initialize_regcache): Register new tests.
3387
dd125343
SM
33882020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3389
3390 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3391 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3392 gdbarch and aspace parameter. Use current inferior's aspace.
3393 Validate regcache's arch value.
3394 (regcaches_test): Update.
3395
3ee93972
SM
33962020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3397
3398 * regcache.c (regcaches_test): Call registers_changed.
3399
33bf4c5c
TBA
34002020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3401
3402 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3403
c2fd7fae
AKS
34042020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3405
3406 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3407 to find the end of prologue for flang compiled binaries.
3408 * arm-tdep.c (arm_skip_prologue): Likewise.
3409 * i386-tdep.c (i386_skip_prologue): Likewise.
3410 * producer.c (producer_is_llvm): New function.
3411 (producer_parsing_tests): Added new tests for clang/flang.
3412 * producer.h (producer_is_llvm): New declaration.
3413
9327494e
SM
34142020-08-18 Simon Marchi <simon.marchi@efficios.com>
3415
3416 * linux-nat.c (linux_nat_debug_printf): New function.
3417 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3418
d138725a
AM
34192020-08-18 Aaron Merey <amerey@redhat.com>
3420
3421 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3422 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3423 (CLIBS): Add DEBUGINFOD_LIBS.
3424
f9b11e6b
ST
34252020-08-17 Sergei Trofimovich <siarheit@google.com>
3426
3427 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3428 'gdbarch_num_regs'.
3429
3ae7ab99
TT
34302020-08-17 Tom Tromey <tromey@adacore.com>
3431
3432 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3433 ada_get_decoded_value returns NULL.
3434
b017825f
TT
34352020-08-17 Tom Tromey <tromey@adacore.com>
3436
3437 * python/py-inferior.c (infpy_search_memory): Use
3438 gdb_py_object_from_ulongest.
3439 * python/py-infevents.c (create_inferior_call_event_object)
3440 (create_memory_changed_event_object): Use
3441 gdb_py_object_from_ulongest.
3442 * python/py-linetable.c (ltpy_entry_get_pc): Use
3443 gdb_py_object_from_ulongest.
3444
7635cf79
SM
34452020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3446
3447 * loc.c (class symbol_needs_eval_context): Fix indentation.
3448
f54be24b
SM
34492020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3450
3451 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3452 bool.
3453
53d5a2a5
TV
34542020-08-17 Tom de Vries <tdevries@suse.de>
3455
3456 PR gdb/26393
3457 * gdbtypes.c (dump_dynamic_prop): New function.
3458 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3459
547ce8f0
TV
34602020-08-15 Tom de Vries <tdevries@suse.de>
3461
3462 PR backtrace/26390
3463 * stack.c (print_frame_args): Temporarily set the selected
3464 frame to FRAME while printing the frame's arguments.
3465
6ea815e7
PFC
34662020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3467
3468 PR breakpoints/26385
3469 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3470 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3471
6e562fa3
PFC
34722020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3473
3474 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3475 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3476 and >= to check return value instead of == -1 and != -1.
3477
d369b608
SM
34782020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3479
3480 * utils.h (class gdb_argv) <as_array_view>: New method.
3481 * utils.c (gdb_argv_as_array_view_test): New.
3482 (_initialize_utils): Register selftest.
3483 * maint.c (maintenance_selftest): Use the new method.
3484
b31488a3
KR
34852020-08-13 Kamil Rytarowski <n54@gmx.com>
3486
3487 * target.h (supports_dumpcore, dumpcore): New
3488 function declarations.
3489 * target.c (supports_dumpcore, dumpcore): New
3490 functions.
3491 * target-delegates.c: Rebuild.
3492 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3493 and target_dumpcore ().
3494
002a3166
AM
34952020-08-13 Aaron Merey <amerey@redhat.com>
3496
3497 * debuginfod-support.c: Replace global variables with user_data.
3498
ece5bc8a
SM
34992020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3500
3501 * maint.c (maintenance_selftest): Split args and pass array_view
3502 to run_tests.
3503
6d8a0a5e
LM
35042020-08-12 Luis Machado <luis.machado@linaro.org>
3505
3506 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3507 type's length.
3508 Use %s and pulongest to print the length.
3509
7cf663a9
PA
35102020-08-12 Pedro Alves <palves@redhat.com>
3511
3512 * NEWS: Move "Multi-target debugging support" item to the
3513 "Changes since GDB 9" section.
3514
27c7b875
PA
35152020-08-12 Pedro Alves <palves@redhat.com>
3516
3517 PR gdb/26336
3518 * progspace.c (program_space::remove_objfile): Invalidate the
3519 frame cache.
3520
1796a2a1
TV
35212020-08-11 Tom de Vries <tdevries@suse.de>
3522
3523 * MAINTAINERS: Mark ms1 as deleted.
3524
f8e3fe0d
LM
35252020-08-10 Luis Machado <luis.machado@linaro.org>
3526
3527 PR gdb/26310
3528
3529 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3530 act accordingly.
3531 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3532 movz/str/stur/stp skipping behavior.
3533
cc308722
LM
35342020-08-10 Luis Machado <luis.machado@linaro.org>
3535
3536 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3537 struct user_sve_header instead of struct sve_context.
3538
041d9819
SM
35392020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3540
3541 * read.h (dwarf2_fetch_die_loc_sect_off,
3542 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3543 `void *` parameter with function_view.
3544 * read.c (dwarf2_fetch_die_loc_sect_off,
3545 dwarf2_fetch_die_loc_cu_off): Likewise.
3546 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3547 (per_cu_dwarf_call): Adjust.
3548 (get_frame_address_in_block_wrapper): Remove.
3549 (indirect_synthetic_pointer): Adjust.
3550 (get_ax_pc): Remove.
3551 (dwarf2_compile_expr_to_ax): Adjust.
3552
38f8aa06
TV
35532020-08-08 Tom de Vries <tdevries@suse.de>
3554
3555 PR build/26344
3556 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3557 constructor.
3558 * regcache.c (get_thread_arch_aspace_regcache): Same.
3559
a52b3ae2
TT
35602020-08-07 Tom Tromey <tromey@adacore.com>
3561
3562 * ravenscar-thread.c
3563 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3564 New method.
3565 (ravenscar_thread_target::wait): Check
3566 runtime_initialized.
3567 (ravenscar_thread_target::prepare_to_store)
3568 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3569 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3570 (ravenscar_thread_target::stopped_by_watchpoint)
3571 (ravenscar_thread_target::stopped_data_address)
3572 (ravenscar_thread_target::core_of_thread): Use
3573 scoped_restore_current_thread and
3574 set_base_thread_from_ravenscar_task.
3575
0e29517d
TT
35762020-08-07 Tom Tromey <tromey@adacore.com>
3577
3578 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3579
592f9bd7
TT
35802020-08-07 Tom Tromey <tromey@adacore.com>
3581
3582 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3583 update_inferior_ptid before update_thread_list.
3584 (temporarily_change_regcache_ptid): New class.
3585 (ravenscar_thread_target::fetch_registers)
3586 (ravenscar_thread_target::store_registers)
3587 (ravenscar_thread_target::prepare_to_store): Use base thread when
3588 forwarding operation.
3589
39e2018a
TT
35902020-08-07 Tom Tromey <tromey@adacore.com>
3591
3592 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3593 "is_pid" case.
3594
2080266b
TT
35952020-08-07 Tom Tromey <tromey@adacore.com>
3596
3597 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3598 New methods.
3599 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3600 first.
3601 (ravenscar_thread_target::add_thread): Rename from
3602 ravenscar_add_thread.
3603 (ravenscar_thread_target::update_thread_list): Use a lambda.
3604 (ravenscar_thread_target::xfer_partial): New method.
3605
78c02f21
TT
36062020-08-07 Tom Tromey <tromey@adacore.com>
3607
3608 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3609 gdb::function_view.
3610 (iterate_over_live_ada_tasks): Change type of argument.
3611 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3612 of argument.
3613
d5d833af
TT
36142020-08-07 Tom Tromey <tromey@adacore.com>
3615
3616 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3617 Remove.
3618 (ravenscar_thread_target::extra_thread_info): Remove.
3619 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3620 defer to target beneath for non-Ravenscar threads.
3621
a8ac85bb
TT
36222020-08-07 Tom Tromey <tromey@adacore.com>
3623
3624 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3625 get_base_thread_from_ravenscar_task>: Now methods.
3626 <m_cpu_map>: New member.
3627 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3628 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3629 (ravenscar_thread_target::task_is_currently_active): Update.
3630 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3631 Now a method.
3632 (ravenscar_thread_target::add_active_thread): Put initial thread
3633 into the m_cpu_map.
3634
550ab58d
TT
36352020-08-07 Tom Tromey <tromey@adacore.com>
3636
3637 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3638 event_ptid.
3639
e9546579
TT
36402020-08-07 Tom Tromey <tromey@adacore.com>
3641
3642 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3643 runtime_initialized.
3644
3d4470e5
TT
36452020-08-07 Tom Tromey <tromey@adacore.com>
3646
3647 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3648 add_active_thread.
3649 (ravenscar_thread_target::add_active_thread): Now public.
3650 (ravenscar_inferior_created): Call add_active_thread after pushing
3651 the target.
3652
888bdb2b
SM
36532020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3654
3655 * regcache.c (ptid_regcache_map): New type.
3656 (target_ptid_regcache_map): New type.
3657 (regcaches): Change type to target_ptid_regcache_map.
3658 (get_thread_arch_aspace_regcache): Update to regcaches' new
3659 type.
3660 (regcache_thread_ptid_changed): Likewise.
3661 (registers_changed_ptid): Likewise.
3662 (regcaches_size): Likewise.
3663 (regcaches_test): Update.
3664 (regcache_thread_ptid_changed): Update.
3665 * regcache.h (regcache_up): New type.
3666 * gdbsupport/ptid.h (hash_ptid): New struct.
3667
b161a60d
SM
36682020-08-07 Simon Marchi <simon.marchi@efficios.com>
3669
3670 * observable.h (thread_ptid_changed): Add parameter
3671 `process_stratum_target *`.
3672 * infrun.c (infrun_thread_ptid_changed): Add parameter
3673 `process_stratum_target *` and use it.
3674 (selftests): New namespace.
3675 (infrun_thread_ptid_changed): New function.
3676 (_initialize_infrun): Register selftest.
3677 * regcache.c (regcache_thread_ptid_changed): Add parameter
3678 `process_stratum_target *` and use it.
3679 (regcache_thread_ptid_changed): New function.
3680 (_initialize_regcache): Register selftest.
3681 * thread.c (thread_change_ptid): Pass target to
3682 thread_ptid_changed observable.
3683
d2854d8d
CT
36842020-08-06 Caroline Tice <cmtice@google.com>
3685
fe4c3d43
SM
3686 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3687 (struct dwp_sections): Update field comments. Add loclists and
3688 rnglists fields.
3689 (struct virtual_v2_dwo_sections): Rename struct to
3690 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3691 size & offset fields for loclists and rnglists.
3692 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3693 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3694 skipping dummy type units.
3695 (create_dwp_hash_table): Update the large comment above the function to
3696 discuss Version 5 DWP files as well, with references. Update all the
3697 version checks in the function to check for version 5 as well. Add new
3698 section at the end to create dwp hash table for version 5.
3699 (create_dwp_v2_section): Rename function to
3700 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3701 Add V5 to error message text.
3702 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3703 into calls to create_dwp_v2_or_v5_section.
3704 (create_dwo_unit_in_dwp_v5): New function.
3705 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3706 check for version2; add else clause to handle version 5.
3707 (open_and_init_dwo_file): Add code to check dwarf version & only call
3708 create_debug_types_hash_table (with sections.types) if version is not 5;
3709 else call create_debug_type_hash_table, with sections.info.
3710 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3711 version 5.
3712 (dwarf2_locate_v5_dwp_sections): New function.
3713 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3714 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 3715
159ed7d9
SM
37162020-08-06 Simon Marchi <simon.marchi@efficios.com>
3717
3718 * regcache.h (class regcache): Remove friend
3719 registers_changed_ptid.
3720 <regcache_thread_ptid_changed>: Remove.
3721 <regcaches>: Remove.
3722 * regcache.c (regcache::regcaches): Rename to...
3723 (regcaches): ... this. Make static.
3724 (get_thread_arch_aspace_regcache): Update.
3725 (regcache::regcache_thread_ptid_changed): Rename to...
3726 (regcache_thread_ptid_changed): ... this. Update.
3727 (class regcache_access): Remove.
3728 (regcaches_test): Update.
3729 (_initialize_regcache): Update.
3730 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3731 <forward_list>.
3732
174981ae
SM
37332020-08-06 Simon Marchi <simon.marchi@efficios.com>
3734
3735 * regcache.h (class regcache) <current_regcache>: Rename to...
3736 <regcaches>: ... this. Move doc here.
3737 * regcache.c (regcache::current_regcache) Rename to...
3738 (regcache::regcaches): ... this. Move doc to header.
3739 (get_thread_arch_aspace_regcache): Update.
3740 (regcache::regcache_thread_ptid_changed): Update.
3741 (registers_changed_ptid): Update.
3742 (class regcache_access) <current_regcache_size>: Rename to...
3743 <regcaches_size>: ... this.
3744 (current_regcache_test): Rename to...
3745 (regcaches_test): ... this.
3746 (_initialize_regcache): Update.
3747
ed908db6
VC
37482020-08-06 Victor Collod <vcollod@nvidia.com>
3749
3750 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3751
b5582ab7
KB
37522020-08-05 Kevin Buettner <kevinb@redhat.com>
3753
3754 * corelow.c (core_target::build_file_mappings): Don't output
3755 null pathname in warning.
3756
ea946b86
SM
37572020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3758
3759 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3760 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3761 gdb.dwarf2/dw2-single-line-discriminators.exp,
3762 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3763
57d02173
TT
37642020-08-05 Tom Tromey <tromey@adacore.com>
3765
3766 PR rust/26197:
3767 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3768 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3769 Fix off-by-one and type size errors in ordinary case.
3770
5555c86d
TV
37712020-08-05 Tom de Vries <tdevries@suse.de>
3772
3773 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3774 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3775
97916bfe
SM
37762020-08-04 Simon Marchi <simon.marchi@efficios.com>
3777
3778 * frame.h (frame_id_p): Return bool.
3779 (frame_id_artificial_p): Return bool.
3780 (frame_id_eq): Return bool.
3781 (has_stack_frames): Return bool.
3782 (get_selected_frame): Fix typo in comment.
3783 (get_frame_pc_if_available): Return bool.
3784 (get_frame_address_in_block_if_available): Return bool.
3785 (get_frame_func_if_available): Return bool.
3786 (read_frame_register_unsigned): Return bool.
3787 (get_frame_register_bytes): Return bool.
3788 (safe_frame_unwind_memory): Return bool.
3789 (deprecated_frame_register_read): Return bool.
3790 (frame_unwinder_is): Return bool.
3791 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3792 bool.
3793 <this_id::p>: Likewise.
3794 <prev_p>: Likewise.
3795 (frame_stash_add): Return bool.
3796 (get_frame_id): Use bool.
3797 (frame_id_build_special) Use bool.
3798 (frame_id_build_unavailable_stack): Use bool.
3799 (frame_id_build): Use bool.
3800 (frame_id_p): Return bool, use true/false instead of 1/0.
3801 (frame_id_artificial_p): Likewise.
3802 (frame_id_eq): Likewise.
3803 (frame_id_inner): Likewise.
3804 (get_frame_func_if_available): Likewise.
3805 (read_frame_register_unsigned): Likewise.
3806 (deprecated_frame_register_read): Likewise.
3807 (get_frame_register_bytes): Likewise.
3808 (has_stack_frames): Likewise.
3809 (inside_main_func): Likewise.
3810 (inside_entry_func): Likewise.
3811 (get_frame_pc_if_available): Likewise.
3812 (get_frame_address_in_block_if_available): Likewise.
3813 (frame_unwinder_is): Likewise.
3814 (safe_frame_unwind_memory): Likewise.
3815 (frame_unwind_arch): Likewise.
3816
fedfee88
SM
38172020-08-04 Simon Marchi <simon.marchi@efficios.com>
3818
3819 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3820 type to cached_copy_status.
3821 (fprintf_frame): Adjust.
3822 (get_frame_func_if_available): Adjust.
3823 (frame_cleanup_after_sniffer): Adjust.
3824
6cfa9b59
MW
38252020-08-04 Mark Wielaard <mark@klomp.org>
3826
3827 * MAINTAINERS (Write After Approval): Update email address.
3828
66d6346b
SM
38292020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3830
3831 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3832 dynamic_prop::const_val.
3833
8a6d5e35
SM
38342020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3835
3836 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3837 dynamic_prop::kind.
3838
51d6067d
SM
38392020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3840
3841 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3842
b26e2ae7
JM
38432020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3844
3845 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3846
39791af2
JM
38472020-08-04 Weimin Pan <weimin.pan@oracle.com>
3848 Jose E. Marchesi <jose.marchesi@oracle.com>
3849
3850 * configure.tgt: Add entry for bpf-*-*.
3851 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3852 (ALLDEPFILES): Add bpf-tdep.c.
3853 * bpf-tdep.c: New file.
3854 * MAINTAINERS: Add bpf target and maintainer.
3855 * NEWS: Mention the support for the new target.
3856
521894aa
TV
38572020-08-04 Tom de Vries <tdevries@suse.de>
3858
3859 PR symtab/23270
3860 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3861 Error.
3862
5d6356e9
JB
38632020-08-03 John Baldwin <jhb@FreeBSD.org>
3864
3865 * syscalls/freebsd.xml: Regenerate.
3866
0cf82b81
JB
38672020-08-03 John Baldwin <jhb@FreeBSD.org>
3868
3869 * syscalls/update-freebsd.sh: Fix usage and year range.
3870
8f34b746
TV
38712020-08-03 Tom de Vries <tdevries@suse.de>
3872
3873 PR symtab/26333
3874 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3875 DW_LNE_lo_user/DW_LNE_hi_user range.
3876
5e500d33
SM
38772020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3878
3879 PR ada/26318
3880 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3881 kind.
3882
78319c15
TBA
38832020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3884
3885 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3886
4c55e970
TBA
38872020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3888
3889 * breakpoint.c (set_breakpoint_condition): Update the condition
3890 expressions after checking that the input condition string parses
3891 successfully and does not contain junk at the end.
3892
1e620590
TBA
38932020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3894
3895 * breakpoint.c (set_breakpoint_condition): Update the
3896 condition string after parsing the new condition successfully.
3897
c8693053
RO
38982020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3899
3900 * proc-api.c (_STRUCTURED_PROC): Don't define.
3901 * proc-events.c: Likewise.
3902 * proc-flags.c: Likewise.
3903 * proc-why.c: Likewise.
3904 * procfs.c: Likewise.
3905
3906 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3907 * configure, config.in: Regenerate.
3908
5a99adb8
TV
39092020-07-30 Tom de Vries <tdevries@suse.de>
3910
3911 PR build/26320
3912 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3913 m_red/m_green/m_blue in a union.
3914
8ba83e91
TV
39152020-07-29 Tom de Vries <tdevries@suse.de>
3916
3917 PR tdep/26280
3918 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3919
f75a0693
AB
39202020-07-28 Tom Tromey <tromey@adacore.com>
3921
3922 PR symtab/26270:
3923 * symtab.h (find_pc_partial_function_sym): Declare.
3924 * cli/cli-cmds.c (disassemble_command): Use
3925 find_pc_partial_function_sym. Check asm_demangle.
3926 * blockframe.c (cache_pc_function_sym): New global.
3927 (cache_pc_function_name): Remove.
3928 (clear_pc_function_cache): Update.
3929 (find_pc_partial_function_sym): New function, from
3930 find_pc_partial_function.
3931 (find_pc_partial_function): Rewrite using
3932 find_pc_partial_function_sym.
3933
16f3242c
TT
39342020-07-28 Tom Tromey <tromey@adacore.com>
3935
3936 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3937 help. Add usage.
3938
4888741a
TT
39392020-07-28 Tom Tromey <tromey@adacore.com>
3940
3941 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3942 <DW_OP_GNU_variable_value>: Cast to address type.
3943
4d46f402
KR
39442020-07-28 Kamil Rytarowski <n54@gmx.com>
3945
3946 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3947 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3948 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3949 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3950 (nbsd_get_siginfo_type): New.
3951 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3952 (_initialize_nbsd_tdep): New.
3953
d70f978b
L
39542020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3955
3956 PR binutils/26301
3957 * configure: Regenerated.
3958
377170fa
L
39592020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3960
3961 PR binutils/26301
3962 * configure: Regenerated.
3963
43d5901d
AB
39642020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3965
3966 * python/py-frame.c: Remove 'user-regs.h' include.
3967 (frapy_read_register): Rewrite to make use of
3968 gdbpy_parse_register_id.
3969 * python/py-registers.c (gdbpy_parse_register_id): New function,
3970 moved here from python/py-unwind.c. Updated the return type, and
3971 also accepts register descriptor objects.
3972 * python/py-unwind.c: Remove 'user-regs.h' include.
3973 (pyuw_parse_register_id): Moved to python/py-registers.c.
3974 (unwind_infopy_add_saved_register): Update to use
3975 gdbpy_parse_register_id.
3976 (pending_framepy_read_register): Likewise.
3977 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3978
14fa8fb3
AB
39792020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3980
3981 * python/py-registers.c: Add 'user-regs.h' include.
3982 (register_descriptor_iter_find): New function.
3983 (register_descriptor_iterator_object_methods): New static global
3984 methods array.
3985 (register_descriptor_iterator_object_type): Add pointer to methods
3986 array.
3987
ddce1758
JB
39882020-07-27 John Baldwin <jhb@FreeBSD.org>
3989
3990 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3991 for all architectures on FreeBSD 11.3 and later.
3992
a4089f52
TT
39932020-07-27 Tom Tromey <tromey@adacore.com>
3994
3995 * gcore.h (load_corefile): Don't declare.
3996
95420d30
TV
39972020-07-27 Tom de Vries <tdevries@suse.de>
3998
3999 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4000 * config.in: Regenerate.
4001 * configure: Regenerate.
4002
05a6b8c2
EZ
40032020-07-26 Eli Zaretskii <eliz@gnu.org>
4004
4005 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4006 ws2tcpip.h. When checking whether socklen_t type is defined, use
4007 ws2tcpip.h if it is available and sys/socket.h isn't.
4008 * configure: Regenerate.
4009 * config.in: Regenerate.
4010
e79eb02f
AB
40112020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4012
4013 PR fortran/23051
4014 PR fortran/26139
4015 * valops.c (value_ind): Pass address to
4016 readjust_indirect_value_type.
4017 * value.c (readjust_indirect_value_type): Make parameter
4018 non-const, and add extra address parameter. Resolve original type
4019 before using it.
4020 * value.h (readjust_indirect_value_type): Update function
4021 signature and comment.
4022
876518dd
TV
40232020-07-25 Tom de Vries <tdevries@suse.de>
4024
4025 PR symtab/26243
4026 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4027 entries.
4028
f6720b1c
AM
40292020-07-24 Aaron Merey <amerey@redhat.com>
4030
4031 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4032 * configure: Rebuild.
4033
513487e1
KB
40342020-07-23 Kevin Buettner <kevinb@redhat.com>
4035
4036 PR corefiles/26294
4037 * corelow.c (_initialize_corelow): Add period to help text
4038 for "maintenance print core-file-backed-mappings".
4039
e7bc9db8
PA
40402020-07-23 Pedro Alves <pedro@palves.net>
4041
4042 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4043 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4044 meanwhile.
4045 * frame.c (frame_cache_generation, get_frame_cache_generation):
4046 New.
4047 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4048 (get_prev_frame_if_no_cycle): On exception, don't touch
4049 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4050 * frame.h (get_frame_cache_generation): Declare.
4051
90fcc466
TV
40522020-07-23 Tom de Vries <tdevries@suse.de>
4053
4054 PR tui/26282
4055 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4056 New default constructor.
4057
78344df7
AB
40582020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4059
4060 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4061 exclude non-statement entries.
4062
b089853a
KB
40632020-07-22 Kevin Buettner <kevinb@redhat.com>
4064
4065 * NEWS (New commands): Mention new command
4066 "maintenance print core-file-backed-mappings".
4067
09c2f5d4
KB
40682020-07-22 Kevin Buettner <kevinb@redhat.com>
4069
4070 * corelow.c (gdbcmd.h): Include.
4071 (core_target::info_proc_mappings): New method.
4072 (get_current_core_target): New function.
4073 (maintenance_print_core_file_backed_mappings): New function.
4074 (_initialize_corelow): Add core-file-backed-mappings to
4075 "maint print" commands.
4076
9c5ec5c2 40772020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 4078
9c5ec5c2
KB
4079 * linux-tdep.c (dump_note_entry_p): New function.
4080 (linux_dump_mapping_p_ftype): New typedef.
4081 (linux_find_memory_regions_full): Add new parameter,
4082 should_dump_mapping_p.
4083 (linux_find_memory_regions): Adjust call to
4084 linux_find_memory_regions_full.
4085 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4086 call to linux_find_memory_regions_full.
4087
db082f59
KB
40882020-07-22 Kevin Buettner <kevinb@redhat.com>
4089
4090 * corelow.c (solist.h, unordered_map): Include.
4091 (class core_target): Add field m_core_file_mappings and
4092 method build_file_mappings.
4093 (core_target::core_target): Call build_file_mappings.
4094 (core_target::~core_target): Free memory associated with
4095 m_core_file_mappings.
4096 (core_target::build_file_mappings): New method.
4097 (core_target::xfer_partial): Use m_core_file_mappings
4098 for memory transfers.
4099 * linux-tdep.c (linux_read_core_file_mappings): New
4100 function.
4101 (linux_core_info_proc_mappings): Rewrite to use
4102 linux_read_core_file_mappings.
4103 (linux_init_abi): Register linux_read_core_file_mappings.
4104
7e183d27
KB
41052020-07-22 Kevin Buettner <kevinb@redhat.com>
4106
4107 * arch-utils.c (default_read_core_file_mappings): New function.
4108 * arch-utils.c (default_read_core_file_mappings): Declare.
4109 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4110 * gdbarch.h, gdbarch.c: Regenerate.
4111
2735d421
KB
41122020-07-22 Kevin Buettner <kevinb@redhat.com>
4113
4114 PR corefiles/25631
4115 * corelow.c (core_target:xfer_partial): Revise
4116 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4117 case after first checking the stratum beneath the core
4118 target.
4119 (has_all_memory): Return true.
4120 * target.c (raw_memory_xfer_partial): Revise comment
4121 regarding use of has_all_memory.
4122
e56cb451
KB
41232020-07-22 Kevin Buettner <kevinb@redhat.com>
4124
4125 * exec.h (section_table_xfer_memory): Revise declaration,
4126 replacing section name parameter with an optional callback
4127 predicate.
4128 * exec.c (section_table_xfer_memory): Likewise.
4129 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4130 of section_table_xfer_memory.
4131
32fa152e
TT
41322020-07-22 Tom Tromey <tromey@adacore.com>
4133
4134 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4135 lookup_symbol_search_name.
4136
a67a1c41
AB
41372020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4138
4139 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4140 redundant local variable.
4141 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4142 reference, not pointer, update code accordingly.
4143
a7b4ff4f
SM
41442020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4145 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4146
4147 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4148 * jit.c (jit_breakpoint_re_set_internal): Use the
4149 `skip_jit_symbol_lookup` field.
4150
2340e834
SM
41512020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4152 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4153
4154 * jit.c (jit_read_descriptor): Define the descriptor address once,
4155 use twice.
4156 (jit_breakpoint_deleted): Move the declaration of the loop variable
4157 `iter` into the loop header.
4158 (jit_breakpoint_re_set_internal): Move the declaration of the local
4159 variable `objf_data` to the first point of definition.
4160 (jit_event_handler): Move the declaration of local variables
4161 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4162 Rename `objf` to `jited`.
4163
c1072906
SM
41642020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4165
4166 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4167 Remove.
4168 * jit.c (get_jiter_objfile_data): Update.
4169
c8474dc3
TBA
41702020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4171 Simon Marchi <simon.marchi@polymtl.ca>
4172
4173 * jit.c (struct jit_program_space_data): Remove.
4174 (jit_program_space_key): Remove.
4175 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4176 stuff.
4177 (get_jit_program_space_data): Remove.
4178 (jit_breakpoint_deleted): Iterate on all of the program space's
4179 objfiles.
4180 (jit_inferior_init): Likewise.
4181 (jit_breakpoint_re_set_internal): Likewise. Also change return
4182 type to void.
4183 (jit_breakpoint_re_set): Pass current_program_space to
4184 jit_breakpoint_re_set_internal.
4185
77208eb7
SM
41862020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4187
4188 * jit.h (struct jiter_objfile_data) <cached_code_address,
4189 jit_breakpoint>: Move to here from ...
4190 * jit.c (jit_program_space_data): ... here.
4191 (jiter_objfile_data::~jiter_objfile_data): Update.
4192 (jit_breakpoint_deleted): Update.
4193 (jit_breakpoint_re_set_internal): Update.
4194
8c1c720f
SM
41952020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4196
4197 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4198 checks.
4199 (jit_read_descriptor): Remove NULL check.
4200 (jit_event_handler): Add an assertion.
4201
0e74a041
SM
42022020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4203
4204 * jit.h (struct jit_objfile_data): Split into...
4205 (struct jiter_objfile_data): ... this ...
4206 (struct jited_objfile_data): ... and this.
4207 * objfiles.h (struct objfile) <jit_data>: Remove.
4208 <jiter_data, jited_data>: New fields.
4209 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4210 (jiter_objfile_data::~jiter_objfile_data): ... this.
4211 (get_jit_objfile_data): Rename to ...
4212 (get_jiter_objfile_data): ... this.
4213 (add_objfile_entry): Update.
4214 (jit_read_descriptor): Use get_jiter_objfile_data.
4215 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4216 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4217 (jit_inferior_exit_hook): Use objfile's jited_data field.
4218
238b5c9f
SM
42192020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4220
4221 * jit.h: Forward-declare `struct minimal_symbol`.
4222 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4223 constructor, destructor, and an objfile* field.
4224 * jit.c (jit_objfile_data): Remove.
4225 (struct jit_objfile_data): Migrate from here to jit.h.
4226 (jit_objfile_data::~jit_objfile_data): New destructor
4227 implementation with code moved from free_objfile_data.
4228 (free_objfile_data): Delete.
4229 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4230 (jit_find_objf_with_entry_addr): Ditto.
4231 (jit_inferior_exit_hook): Ditto.
4232 (_initialize_jit): Remove the call to
4233 register_objfile_data_with_cleanup.
4234 * objfiles.h (struct objfile) <jit_data>: New field.
4235
fe053b9e
TBA
42362020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4237
4238 * jit.h: Forward-declare `struct objfile`.
4239 (jit_event_handler): Add a second parameter, the JITer objfile.
4240 * jit.c (jit_read_descriptor): Change the signature to take the
4241 JITer objfile as an argument instead of the jit_program_space_data.
4242 (jit_inferior_init): Update the call to jit_read_descriptor.
4243 (jit_event_handler): Use the new JITer objfile argument when calling
4244 jit_read_descriptor.
4245 * breakpoint.c (handle_jit_event): Update the call to
4246 jit_event_handler to pass the JITer objfile.
4247
4cec0c66
JB
42482020-07-21 John Baldwin <jhb@FreeBSD.org>
4249
4250 * gdbarch.c: Regenerate.
4251 * gdbarch.h: Regenerate.
4252 * gdbarch.sh (handle_segmentation_fault): Remove method.
4253 * infrun.c (handle_segmentation_fault): Remove.
4254 (print_signal_received_reason): Remove call to
4255 handle_segmentation_fault.
4256
0e42f66a
JB
42572020-07-21 John Baldwin <jhb@FreeBSD.org>
4258
4259 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4260 Rename to sparc64_linux_report_signal_info and add siggnal
4261 argument.
4262 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4263 instead of sparc64_linux_handle_segmentation_fault.
4264
77bdfeb2
JB
42652020-07-21 John Baldwin <jhb@FreeBSD.org>
4266
4267 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4268 i386_linux_report_signal_info instead of
4269 i386_linux_handle_segmentation_fault.
4270 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4271 to i386_linux_report_signal_info and add siggnal argument.
4272 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4273 of i386_linux_handle_segmentation_fault.
4274 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4275 to i386_linux_report_signal_info and add siggnal argument.
4276
ad97bfc5
JB
42772020-07-21 John Baldwin <jhb@FreeBSD.org>
4278
4279 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4280 hook if present.
4281
272bb05c
JB
42822020-07-21 John Baldwin <jhb@FreeBSD.org>
4283
4284 * gdbarch.c: Regenerate.
4285 * gdbarch.h: Regenerate.
4286 * gdbarch.sh (report_signal_info): New method.
4287 * infrun.c (print_signal_received_reason): Invoke gdbarch
4288 report_signal_info hook if present.
4289
baf8791e
AB
42902020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4291
4292 * python/py-registers.c : Add 'unordered_map' include.
4293 (gdbpy_new_reggroup): Renamed to...
4294 (gdbpy_get_reggroup): ...this. Update to only create register
4295 group descriptors when needed.
4296 (gdbpy_reggroup_iter_next): Update.
4297
f7306dac
AB
42982020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4299
4300 * python/py-registers.c (gdbpy_register_object_data): New static
4301 global.
4302 (gdbpy_register_object_data_init): New function.
4303 (gdbpy_new_register_descriptor): Renamed to...
4304 (gdbpy_get_register_descriptor): ...this, and update to reuse
4305 existing register descriptors where possible.
4306 (gdbpy_register_descriptor_iter_next): Update.
4307 (gdbpy_initialize_registers): Register new gdbarch data.
4308
05c309a8
SM
43092020-07-21 Simon Marchi <simon.marchi@efficios.com>
4310
4311 * linux-nat.c (stopped_pids): Make static.
4312
d1fd641e
SM
43132020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4314
4315 PR ada/26235
4316 * gdbtypes.c (ada_discrete_type_low_bound,
4317 ada_discrete_type_high_bound): Handle undefined bounds.
4318
1de14d77
KR
43192020-07-21 Kamil Rytarowski <n54@gmx.com>
4320
4321 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4322 declaration.
4323 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4324 function.
4325
ed810cc7
JB
43262020-07-20 John Baldwin <jhb@FreeBSD.org>
4327
4328 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4329 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4330 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4331 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4332 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4333 method.
4334
ae5369e7
LC
43352020-07-20 Ludovic Courtès <ludo@gnu.org>
4336
4337 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4338 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4339 which are deprecated in Guile 3.0.
4340 * configure.ac (try_guile_versions): Add "guile-3.0".
4341 * configure (try_guile_versions): Regenerate.
4342 * NEWS: Update entry.
4343
68cf161c
LC
43442020-07-20 Ludovic Courtès <ludo@gnu.org>
4345 Doug Evans <dje@google.com>
4346
4347 PR gdb/21104
4348 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4349 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4350 USING_GUILE_BEFORE_2_2.
4351 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4352 Change type to 'scm_t_port_type *'.
4353 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4354 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4355 parameter and honor it. Update callers.
4356 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4357 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4358 functions.
4359 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4360 USING_GUILE_BEFORE_2_2.
4361 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4362 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4363 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4364 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4365 and 'SCM_PORT_TYPE'.
4366 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4367 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4368 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4369 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4370 [!USING_GUILE_BEFORE_2_2]: New functions.
4371 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4372 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4373 'gdbscm_memory_port_read'.
4374 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4375 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4376 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4377 function.
4378 (ioscm_init_memory_port): Remove.
4379 (ioscm_init_memory_port_stream): New function
4380 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4381 function.
4382 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4383 Return scm_from_uint (0).
4384 (gdbscm_set_memory_port_read_buffer_size_x)
4385 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4386 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4387 Return scm_from_uint (0).
4388 (gdbscm_set_memory_port_write_buffer_size_x)
4389 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4390 * configure.ac (try_guile_versions): Add "guile-2.2".
4391 * configure: Regenerate.
4392 * NEWS: Add entry.
4393
aee91db3
TT
43942020-07-18 Tom Tromey <tom@tromey.com>
4395
4396 * linux-nat.c (linux_multi_process): Remove.
4397 (linux_nat_target::supports_multi_process): Return true.
4398
0e267416
AB
43992020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4400
4401 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4402 (riscv_lookup_target_description): Return pointer out of
4403 unique_ptr.
4404 * target-descriptions.c (allocate_target_description): Add
4405 comment.
4406 (target_desc_deleter::operator()): Likewise.
4407 * target-descriptions.h (struct target_desc_deleter): Moved to
4408 gdbsupport/tdesc.h.
4409 (target_desc_up): Likewise.
4410
f80c8ec4
TT
44112020-07-17 Tom Tromey <tromey@adacore.com>
4412
4413 * linux-nat.c (linux_nat_target::supports_non_stop)
4414 (linux_nat_target::always_non_stop_p): Use "true".
4415 (linux_nat_target::supports_disable_randomization): Use "true" and
4416 "false".
4417
d0ce17d8
CT
44182020-07-16 Caroline Tice <cmtice@google.com>
4419
4420 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4421 (RNGLIST_HEADER_SIZE64): New constant definition.
4422 (struct dwop_section_names): Add rnglists_dwo.
4423 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4424 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4425 (struct dwo_sections): Add rnglists field.
4426 (read_attribut_reprocess): Add tag parameter.
4427 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4428 (cu_debug_rnglists_section): New function (decl & definition).
4429 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4430 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4431 die whose range is being checked; get rnglist section from
4432 cu_debug_rnglists_section, to get from either objfile or dwo file as
4433 appropriate. Add cases for DW_RLE_base_addressx,
4434 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4435 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4436 test inside if-condition and updating complaint message.
4437 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4438 dwarf2_rnglists_process.
4439 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4440 dwarf2_ranges_process.
4441 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4442 need_ranges_base and update comment appropriately. Also pass die tag
4443 to dwarf2_ranges_read.
4444 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4445 need_ranges_base and update comment appropriately. Also pass die tag
4446 to dwarf2_ranges_process.
4447 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4448 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4449 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4450 need_ranges_base and update comment appropriately. Also pass die tag
4451 to read_attribute_reprocess and dwarf2_ranges_read.
4452 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4453 and update function comment appropriately.
4454 (read_loclist_index): Call read_loclists_rnglists_header instead of
4455 read_loclist_header.
4456 (read_rnglist_index): New function.
4457 (read_attribute_reprocess): Add tag parameter. Add code for
4458 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4459 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4460
3dcc261c
AB
44612020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4462
4463 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4464 being resolved.
4465
ccb9eba6
AB
44662020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4467
4468 * arch-utils.c (show_architecture): Update formatting of messages.
4469
cf88be68
SM
44702020-07-12 Simon Marchi <simon.marchi@efficios.com>
4471
4472 * gdbtypes.h (struct type) <bounds>: Handle array and string
4473 types.
4474 * ada-lang.c (assign_aggregate): Use type::bounds on
4475 array/string type.
4476 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4477 * c-varobj.c (c_number_of_children): Likewise.
4478 (c_describe_child): Likewise.
4479 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4480 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4481 (f_type_print_base): Likewise.
4482 * f-valprint.c (f77_array_offset_tbl): Likewise.
4483 (f77_get_upperbound): Likewise.
4484 (f77_print_array_1): Likewise.
4485 * guile/scm-type.c (gdbscm_type_range): Likewise.
4486 * m2-typeprint.c (m2_array): Likewise.
4487 (m2_is_long_set_of_type): Likewise.
4488 * m2-valprint.c (get_long_set_bounds): Likewise.
4489 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4490 * python/py-type.c (typy_range): Likewise.
4491 * rust-lang.c (rust_internal_print_type): Likewise.
4492 * type-stack.c (type_stack::follow_types): Likewise.
4493 * valarith.c (value_subscripted_rvalue): Likewise.
4494 * valops.c (value_cast): Likewise.
4495
509971ae
SM
44962020-07-12 Simon Marchi <simon.marchi@efficios.com>
4497
4498 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4499 callers to use the equivalent accessor methods.
4500
107406b7
SM
45012020-07-12 Simon Marchi <simon.marchi@efficios.com>
4502
4503 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4504 (struct type) <bit_stride>: New method.
4505 (TYPE_BIT_STRIDE): Remove.
4506 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4507
bb789949
SM
45082020-07-12 Simon Marchi <simon.marchi@efficios.com>
4509
4510 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4511 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4512 callers to use the equivalent accessor methods instead.
4513
39498edb
SM
45142020-07-12 Simon Marchi <simon.marchi@efficios.com>
4515
4516 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4517 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4518 callers to use the equivalent accessor methods instead.
4519
3b606f38
SM
45202020-07-12 Simon Marchi <simon.marchi@efficios.com>
4521
4522 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4523 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4524 to use dynamic_prop::kind.
4525
064d9cb9
SM
45262020-07-12 Simon Marchi <simon.marchi@efficios.com>
4527
4528 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4529 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4530 to get the bound property's kind and check against
4531 PROP_UNDEFINED.
4532
5537ddd0
SM
45332020-07-12 Simon Marchi <simon.marchi@efficios.com>
4534
4535 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4536 all callers to use type::range_bounds followed by
4537 dynamic_prop::{low,high}.
4538
8c2e4e06
SM
45392020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4540
4541 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4542 const_val, set_const_val, baton, set_locexpr, set_loclist,
4543 set_addr_offset, variant_parts, set_variant_parts,
4544 original_type, set_original_type>: New methods.
4545 <kind>: Rename to...
4546 <m_kind>: ... this. Update all users to use the new methods
4547 instead.
4548 <data>: Rename to...
4549 <m_data>: ... this. Update all users to use the new methods
4550 instead.
4551
7c6f2712
SM
45522020-07-12 Simon Marchi <simon.marchi@efficios.com>
4553
4554 * gdbtypes.c (get_discrete_bounds): Return failure if
4555 the range type's bounds are not both defined and constant
4556 values.
4557 (get_array_bounds): Update comment. Remove undefined bound check.
4558
599088e3
SM
45592020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4560
4561 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4562 the type::bounds method directly.
4563
c4dfcb36
SM
45642020-07-12 Simon Marchi <simon.marchi@efficios.com>
4565
4566 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4567 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4568 are used to set the range type's bounds to use set_bounds.
4569
0a278aa7
PW
45702020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4571
4572 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4573
cce20f10
PA
45742020-07-10 Pedro Alves <pedro@palves.net>
4575
4576 * gdbthread.h (inferior_ref): Define.
4577 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4578 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4579 * thread.c
4580 (scoped_restore_current_thread::restore):
4581 Adjust to gdb::ref_ptr.
4582 (scoped_restore_current_thread::~scoped_restore_current_thread):
4583 Remove manual decref handling.
4584 (scoped_restore_current_thread::scoped_restore_current_thread):
4585 Adjust to use
4586 inferior_ref::new_reference/thread_info_ref::new_reference.
4587 Incref the thread before calling get_frame_id instead of after.
4588 Let TARGET_CLOSE_ERROR propagate.
4589
6d7aa592
PA
45902020-07-10 Pedro Alves <pedro@palves.net>
4591
4592 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4593 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4594 NOT_AVAILABLE_ERROR.
4595 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4596 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4597
b3e3a4c1
SM
45982020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4599 Pedro Alves <pedro@palves.net>
4600
4601 PR gdb/26199
4602 * infrun.c (threads_are_resumed_pending_p): Delete.
4603 (do_target_wait): Remove threads_are_executing and
4604 threads_are_resumed_pending_p checks from the inferior_matches
4605 lambda. Update comments.
4606
d6cc5d98
PA
46072020-07-10 Pedro Alves <pedro@palves.net>
4608
4609 PR gdb/26199
4610 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4611 executing threads.
4612
7d3badc6
PA
46132020-07-10 Pedro Alves <pedro@palves.net>
4614
4615 PR gdb/26199
4616 * infrun.c (handle_no_resumed): Handle multiple targets.
4617
42bd97a6
PA
46182020-07-10 Pedro Alves <pedro@palves.net>
4619
4620 PR gdb/26199
4621 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4622 target_is_async_p.
4623
43667cc6
PA
46242020-07-10 Pedro Alves <pedro@palves.net>
4625
4626 PR gdb/26199
4627 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4628 threads, not all threads.
4629
96118d11
PA
46302020-07-10 Pedro Alves <pedro@palves.net>
4631
4632 PR gdb/26199
4633 * remote.c (remote_target::open_1): Pass remote target pointer as
4634 data to create_async_event_handler.
4635 (remote_async_inferior_event_handler): Mark async event handler
4636 before returning if the remote target still has either pending
4637 events or unacknowledged notifications.
4638
54904d81
JB
46392020-07-10 John Baldwin <jhb@FreeBSD.org>
4640
4641 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4642 declaration.
4643 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4644 function.
4645
f37e5866
JB
46462020-07-09 John Baldwin <jhb@FreeBSD.org>
4647
4648 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4649 inferior_ptid.
4650
fc238d4a
JB
46512020-07-09 John Baldwin <jhb@FreeBSD.org>
4652
4653 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4654 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4655 AT_FREEBSD_PS_STRINGS.
4656
6e2469ff
HD
46572020-07-08 Hannes Domani <ssbssa@yahoo.de>
4658
4659 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4660 of debugfile path on Windows.
4661
d1076c41
JB
46622020-07-08 John Baldwin <jhb@FreeBSD.org>
4663
4664 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4665 argument to 'data'.
4666
15f3b077
TT
46672020-07-08 Tom Tromey <tromey@adacore.com>
4668
4669 * ada-lang.c (ada_exception_message_1): Use read_memory.
4670
9fc501fd
AB
46712020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4672
4673 PR python/22748
4674 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4675 special handling for inline frames.
4676 * findvar.c (value_of_register_lazy): Skip inline frames when
4677 creating lazy register values.
4678 * frame.c (frame_id_computed_p): Delete definition.
4679 * frame.h (frame_id_computed_p): Delete declaration.
4680
64cb3757
AB
46812020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4682
4683 * NEWS: Mention additions to Python API.
4684 * python/py-arch.c (archpy_register_groups): New function.
4685 (arch_object_methods): Add 'register_groups' method.
4686 * python/py-registers.c (reggroup_iterator_object): New struct.
4687 (reggroup_object): New struct.
4688 (gdbpy_new_reggroup): New function.
4689 (gdbpy_reggroup_to_string): New function.
4690 (gdbpy_reggroup_name): New function.
4691 (gdbpy_reggroup_iter): New function.
4692 (gdbpy_reggroup_iter_next): New function.
4693 (gdbpy_new_reggroup_iterator): New function
4694 (gdbpy_initialize_registers): Register new types.
4695 (reggroup_iterator_object_type): Define new Python type.
4696 (gdbpy_reggroup_getset): New static global.
4697 (reggroup_object_type): Define new Python type.
4698 * python/python-internal.h
4699
0f767f94
AB
47002020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4701
4702 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4703 * python/py-arch.c (archpy_registers): New function.
4704 (arch_object_methods): Add 'registers' method.
4705 * python/py-registers.c: New file.
4706 * python/python-internal.h
4707 (gdbpy_new_register_descriptor_iterator): Declare.
4708 (gdbpy_initialize_registers): Declare.
4709 * python/python.c (do_start_initialization): Call
4710 gdbpy_initialize_registers.
4711 * NEWS: Mention additions to the Python API.
4712
87dbc774
AB
47132020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4714
4715 * NEWS: Mention new Python API method.
4716 * python/py-unwind.c (pending_framepy_architecture): New function.
4717 (pending_frame_object_methods): Add architecture method.
4718
3bc98c0c
AB
47192020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4720
4721 * gdbarch.c: Regenerate.
4722 * gdbarch.h: Regenerate.
4723 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4724 (gdbarch_data): Use internal_error for the case where
4725 deprecated_set_gdbarch_data was originally needed.
4726 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4727 and use passed in obstack.
4728 (libunwind_frame_set_descr): Should no longer get back NULL from
4729 gdbarch_data.
4730 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4731 type.
4732 * user-regs.c (user_regs_init): Update parameters, and use passed
4733 in obstack.
4734 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4735 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4736
d8cc8af6
TV
47372020-07-06 Tom de Vries <tdevries@suse.de>
4738
4739 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4740 End-Of-Sequence in lte_is_less_than.
4741 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4742 "gdb: Don't reorder line table entries too much when sorting".
4743
947f7597
TV
47442020-07-06 Tom de Vries <tdevries@suse.de>
4745
4746 PR tui/26205
4747 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4748
1e7c1b22
TV
47492020-07-05 Tom de Vries <tdevries@suse.de>
4750
4751 PR build/26187
4752 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4753 std::uncaught_exceptions instead of deprecated
4754 std::uncaught_exception.
4755
a36158ec
SM
47562020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4757
4758 * macroexp.h (macro_stringify): Return
4759 gdb::unique_xmalloc_ptr<char>.
4760 * macroexp.c (macro_stringify): Likewise.
4761 * macrotab.c (fixup_definition): Update.
4762
14d960c8
SM
47632020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4764
4765 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4766 (lex_one_token): Update.
4767 * macroexp.c (struct macro_buffer) <release>: Return
4768 gdb::unique_xmalloc_ptr<char>.
4769 (macro_stringify): Update.
4770 (macro_expand): Update.
4771 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4772 * macroexp.h (macro_expand_next): Likewise.
4773
211d5b1c
SM
47742020-07-02 Simon Marchi <simon.marchi@efficios.com>
4775
4776 * macroexp.h (macro_lookup_ftype): Remove.
4777 (macro_expand, macro_expand_once, macro_expand_next): Remove
4778 lookup function parameters, add scope parameter.
4779 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4780 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4781 * macroscope.h (standard_macro_lookup): Change parameter type
4782 to macro_scope.
4783 * macroscope.c (standard_macro_lookup): Likewise.
4784 * c-exp.y (lex_one_token): Update.
4785 * macrocmd.c (macro_expand_command): Likewise.
4786 (macro_expand_once_command): Likewise.
4787
b1a35af2
SM
47882020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4789
4790 * inf-loop.c (inferior_event_handler): Remove client_data param.
4791 * inf-loop.h (inferior_event_handler): Likewise.
4792 * infcmd.c (step_1): Adjust.
4793 * infrun.c (proceed): Adjust.
4794 (fetch_inferior_event): Remove client_data param.
4795 (infrun_async_inferior_event_handler): Adjust.
4796 * infrun.h (fetch_inferior_event): Remove `void *` param.
4797 * linux-nat.c (handle_target_event): Adjust.
4798 * record-btrace.c (record_btrace_handle_async_inferior_event):
4799 Adjust.
4800 * record-full.c (record_full_async_inferior_event_handler):
4801 Adjust.
4802 * remote.c (remote_async_inferior_event_handler): Adjust.
4803
1cdf9e33
TT
48042020-07-01 Tom Tromey <tom@tromey.com>
4805
4806 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4807 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4808
32c1e210
TT
48092020-07-01 Tom Tromey <tom@tromey.com>
4810
4811 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4812 tui_gen_win_info.
4813 (tui_win_info::make_window): Merge with
4814 tui_gen_win_info::make_window.
4815 (tui_win_info::make_visible): Move from tui_gen_win_info.
4816 * tui/tui-win.c (tui_win_info::max_width): Move from
4817 tui_gen_win_info.
4818 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4819 type.
4820 <window_factory>: Likewise.
4821 * tui/tui-layout.c (tui_win_info::resize): Move from
4822 tui_gen_win_info.
4823 (make_standard_window): Change return type.
4824 (get_locator_window, tui_get_window_by_name): Likewise.
4825 (tui_layout_window::apply): Remove a cast.
4826 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4827 (struct tui_win_info): Merge with tui_gen_win_info.
4828 (struct tui_gen_win_info): Remove.
4829
a30cb6da
TT
48302020-07-01 Tom Tromey <tom@tromey.com>
4831
4832 * tui/tui-stack.h (struct tui_locator_window): Derive from
4833 tui_win_info.
4834 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4835 <can_box>: New method.
4836
1eb2161f
TT
48372020-07-01 Tom Tromey <tom@tromey.com>
4838
4839 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4840
7134f2eb
TT
48412020-07-01 Tom Tromey <tom@tromey.com>
4842
4843 * tui/tui-regs.c (tui_data_window::display_registers_from)
4844 (tui_data_window::display_registers_from)
4845 (tui_data_window::first_data_item_displayed)
4846 (tui_data_window::delete_data_content_windows): Update.
4847 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4848 Remove.
4849 (tui_data_window::check_register_values): Update.
4850 (tui_data_item_window::rerender): Add parameters. Update.
4851 (tui_data_item_window::refresh_window): Remove.
4852 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4853 virtual.
4854 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4855 tui_gen_win_info.
4856 <refresh_window, max_height, min_height>: Remove.
4857 <rerender>: Add parameters.
4858 <x, y, visible>: New members.
4859 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4860 <m_item_width>: New member.
4861
22b7b041
TT
48622020-07-01 Tom Tromey <tom@tromey.com>
4863
4864 * tui/tui-regs.c (tui_data_window::show_register_group)
4865 (tui_data_window::check_register_values): Update.
4866 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4867 from item_no.
4868
c9753adb
TT
48692020-07-01 Tom Tromey <tom@tromey.com>
4870
4871 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4872 useless "if".
4873
9ab26b4a
TT
48742020-07-01 Tom Tromey <tom@tromey.com>
4875
4876 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4877 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4878
e555083f
TT
48792020-07-01 Tom Tromey <tom@tromey.com>
4880
4881 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4882 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4883 (struct tui_line_or_address): Move from tui-data.h.
4884 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4885 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4886 (tui_cmd_window, tui_source_window_base, tui_source_window)
4887 (tui_disasm_window): Don't declare.
4888 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4889 to tui-winsource.h.
4890 (SINGLE_KEY): Move to tui-stack.c.
4891
7a02bab7
TT
48922020-07-01 Tom Tromey <tom@tromey.com>
4893
4894 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4895 std::string.
4896 * tui/tui-regs.c (class tab_expansion_file): New.
4897 (tab_expansion_file::write): New method.
4898 (tui_register_format): Change return type. Use
4899 tab_expansion_file.
4900 (tui_get_register, tui_data_window::display_registers_from)
4901 (tui_data_item_window::rerender): Update.
4902 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4903 * tui/tui-io.c (tui_expand_tabs): Remove.
4904
ea68593b
TT
49052020-07-01 Tom Tromey <tom@tromey.com>
4906
4907 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4908
a8caed5d
FS
49092020-07-01 Fangrui Song <maskray@google.com>
4910
4911 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4912
9cdf9820
AKS
49132020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4914
4915 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4916 forms for DW_AT_associated and DW_AT_allocated attributes,
4917 which is already checked in function attr_to_dynamic_prop.
4918
a1520ad8
TT
49192020-06-30 Tom Tromey <tromey@adacore.com>
4920
4921 * dwarf2/read.c (quirk_rust_enum): Correctly call
4922 alloc_rust_variant for default-less enum.
4923
5ac58899
TT
49242020-06-30 Tom Tromey <tromey@adacore.com>
4925
4926 PR build/26183:
4927 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4928 gdb::to_string.
4929
19b187a9
SM
49302020-06-29 Simon Marchi <simon.marchi@efficios.com>
4931
4932 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4933 * gdbarch.h: Re-generate.
4934
cd4c4c07
TT
49352020-06-28 Tom Tromey <tom@tromey.com>
4936
4937 * command.h (cmd_types): Remove.
4938 (cmd_type): Don't declare.
4939 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4940 typedef.
4941 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4942 * cli/cli-decode.c (cmd_type): Remove.
4943
05779d57
PA
49442020-06-27 Pedro Alves <palves@redhat.com>
4945
4946 * fork-child.c (prefork_hook): Adjust.
4947 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4948 Delete.
4949 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4950 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4951 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4952 Remove declarations.
4953 (struct inferior) <set_tty, tty>: New methods.
4954 (struct inferior) <terminal>: Rename to ...
4955 (struct inferior) <m_terminal>: ... this and make private.
4956 * main.c (captured_main_1): Adjust.
4957 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4958 (mi_cmd_inferior_tty_show): Adjust.
4959 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4960 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4961
1776e3e5
NA
49622020-06-26 Nick Alcock <nick.alcock@oracle.com>
4963
4964 * configure.ac: Add --enable-libctf: handle --disable-static
4965 properly.
4966 * acinclude.m4: sinclude ../config/enable.m4.
4967 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4968 (LIBCTF): Substitute in.
4969 (CTF_DEPS): New, likewise.
4970 (CLIBS): libctf needs symbols from libbfd: move earlier.
4971 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4972 flags.
4973 * ctfread.c: Surround in ENABLE_LIBCTF.
4974 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4975 * configure: Regenerate.
4976 * config.in: Likewise.
4977
58373b80
SM
49782020-06-25 Simon Marchi <simon.marchi@efficios.com>
4979
4980 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4981
277474ee
SM
49822020-06-25 Simon Marchi <simon.marchi@efficios.com>
4983
4984 * inferior.h (struct inferior) <terminal>: Change type to
4985 gdb::unique_xmalloc_ptr<char>.
4986 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4987 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4988 field, adjust to unique pointer.
4989 (get_inferior_io_terminal): Adjust to unique pointer.
4990
6d74da72
AB
49912020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4992
4993 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4994 registers, not just the known core set of registers.
4995
2e52d038
AB
49962020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4997
4998 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4999 fflags, frm, and fcsr registers.
5000 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5001 restore groups.
5002 (riscv_tdesc_unknown_reg): New function.
5003 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5004 tdesc_use_registers.
5005 * riscv-tdep.h (struct gdbarch_tdep): Add
5006 unknown_csrs_first_regnum, unknown_csrs_count,
5007 duplicate_fflags_regnum, duplicate_frm_regnum, and
5008 duplicate_fcsr_regnum fields.
5009
be64fd07
AB
50102020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5011
5012 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5013 callback, use the callback (when not null) to help number unknown
5014 registers.
5015 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5016 (tdesc_use_registers): Add extra parameter to declaration.
5017
3b9fce96
AB
50182020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5019
5020 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5021 in the file.
5022 (class riscv_pending_register_alias): Likewise.
5023 (riscv_register_feature::register_info): Change 'required_p' field
5024 to 'required', and change its type. Add 'check' member function.
5025 (riscv_register_feature::register_info::check): Define new member
5026 function.
5027 (riscv_xreg_feature): Change initialisation of 'required' field.
5028 (riscv_freg_feature): Likewise.
5029 (riscv_virtual_feature): Likewise.
5030 (riscv_csr_feature): Likewise.
5031 (riscv_check_tdesc_feature): Take extra parameter, the csr
5032 tdesc_feature, rewrite the function to use the new
5033 riscv_register_feature::register_info::check function.
5034 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5035
865bad26
AB
50362020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5037
5038 * features/Makefile: Remove all references to the deleted files
5039 below.
5040 * features/riscv/32bit-csr.c: Deleted.
5041 * features/riscv/32bit-csr.xml: Deleted.
5042 * features/riscv/64bit-csr.c: Deleted.
5043 * features/riscv/64bit-csr.xml: Deleted.
5044 * features/riscv/rebuild-csr-xml.sh: Deleted.
5045
ed69cbc8
AB
50462020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5047
5048 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5049 whitespace error for declaration of names member variable.
5050 (struct riscv_register_feature): Add new prefer_first_name member
5051 variable, and fix whitespace error in declaration of registers.
5052 (riscv_xreg_feature): Initialize prefer_first_name field.
5053 (riscv_freg_feature): Likewise.
5054 (riscv_virtual_feature): Likewise.
5055 (riscv_csr_feature): Likewise.
5056 (riscv_register_name): Expand on comments. Remove register name
5057 modifications for CSR and virtual registers.
5058
4445e8f5
AB
50592020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5060
5061 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5062 errors.
5063
767a879e
AB
50642020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5065
5066 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5067 riscv-opc.h.
5068 (class riscv_pending_register_alias): New class.
5069 (riscv_check_tdesc_feature): Take vector of pending aliases and
5070 populate it as appropriate.
5071 (riscv_setup_register_aliases): Delete.
5072 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5073 to riscv_check_tdesc_feature in all cases. Use the vector to
5074 create the register aliases.
5075
bb6e55f3
RO
50762020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5077
5078 * sol2-tdep.c (sol2_static_transform_name): Remove.
5079 (sol2_init_abi): Don't register it.
5080 * gdbarch.sh (static_transform_name): Remove.
5081 * gdbarch.c, gdbarch.h: Regenerate.
5082
5083 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5084 gdbarch_static_transform_name.
5085 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5086 * stabsread.c (define_symbol) <'X'>: Remove.
5087 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5088 handling.
5089 <'V'>: Likewise.
5090 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5091 <'S'>: Remove call to gdbarch_static_transform_name.
5092
c6d36836
RO
50932020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5094
5095 * procfs.c (procfs_pre_trace): New function.
5096 (procfs_target::create_inferior): Pass it to fork_inferior.
5097
a7e6196b
RO
50982020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5099
5100 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5101 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5102 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5103 sol2-tdep.o, sparc-sol2-tdep.o.
5104 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5105 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5106 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5107 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5108
d412e696
RO
51092020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5110
5111 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5112 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5113 Call sol2_init_abi.
5114 Remove calls to set_gdbarch_skip_solib_resolver,
5115 set_gdbarch_core_pid_to_str.
5116 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5117 (i386_sol2_static_transform_name): Remove.
5118 (i386_sol2_init_abi): Call sol2_init_abi.
5119 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5120 set_gdbarch_static_transform_name,
5121 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5122 Use sol2_sigtramp_p.
5123 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5124 (sol2_sigtramp_p): New function.
5125 (sol2_static_transform_name): New function.
5126 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5127 (sol2_init_abi): New function.
5128 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5129 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5130 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5131 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5132 (sparc_sol2_static_transform_name): Remove.
5133 (sparc32_sol2_init_abi): Call sol2_init_abi.
5134 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5135 set_gdbarch_static_transform_name,
5136 set_gdbarch_skip_solib_resolver,
5137 set_gdbarch_core_pid_to_str.
5138 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5139 (sparc_sol2_static_transform_name): Remove
5140 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5141 call sol2_sigtramp_p.
5142 (sparc64_sol2_init_abi): Call sol2_init_abi.
5143 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5144 set_gdbarch_static_transform_name,
5145 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5146
a8654e7d
PW
51472020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5148
5149 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5150 * exec.c (validate_exec_file): If from_tty, set both
5151 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5152 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5153 and from_tty, unconditionally ask a confirmation.
5154
caa7fd04
AB
51552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5156
5157 * target-descriptions.c (tdesc_architecture_name): Protect against
5158 NULL pointer dereference.
5159 (maint_print_xml_tdesc_cmd): New function.
5160 (_initialize_target_descriptions): Register new 'maint print
5161 xml-tdesc' command and give it the filename completer.
5162 * NEWS: Mention new 'maint print xml-tdesc' command.
5163
fbf42f4e
AB
51642020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5165
5166 * target-descriptions.c (class tdesc_compatible_info): New class.
5167 (struct target_desc): Change type of compatible vector.
5168 (tdesc_compatible_p): Update for change in type of
5169 target_desc::compatible.
5170 (tdesc_compatible_info_list): New function.
5171 (tdesc_compatible_info_arch_name): New function.
5172 (tdesc_add_compatible): Update for change in type of
5173 target_desc::compatible.
5174 (print_c_tdesc::visit_pre): Likewise.
5175
20821f4e
AB
51762020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5177
5178 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5179 whitespace to underscore.
5180 (maint_print_c_tdesc_cmd): Use fake filename for target
5181 descriptions that came from the target.
5182 (_initialize_target_descriptions): Add filename command completion
5183 for 'maint print c-tdesc'.
5184
1fb5ee62
SM
51852020-06-23 Simon Marchi <simon.marchi@efficios.com>
5186
5187 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5188 lines.
5189
fc3ecb3e
SM
51902020-06-23 Simon Marchi <simon.marchi@efficios.com>
5191
5192 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5193 lines.
5194 (dwarf2_find_location_expression): Likewise.
5195 (call_site_parameter_matches): Likewise.
5196 (dwarf2_compile_expr_to_ax): Likewise.
5197 (disassemble_dwarf_expression): Likewise.
5198 (loclist_describe_location): Likewise.
5199
236ef034
PA
52002020-06-23 Pedro Alves <palves@redhat.com>
5201
5202 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5203 progspace-and-thread.h. Include scoped-mock-context.h instead.
5204 (register_to_value_test): Use scoped_mock_context.
5205 * regcache.c: Include "scoped-mock-context.h".
5206 (cooked_read_test): Don't error out if a target is already pushed.
5207 Use scoped_mock_context. Adjust.
5208 * scoped-mock-context.h: New file.
5209
39e7ecca
AB
52102020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5211
5212 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5213 initializer.
5214 (ada_language::is_string_type_p): New member function.
5215 * c-lang.c (c_language_data): Delete la_is_string_type_p
5216 initializer.
5217 (cplus_language_data): Likewise.
5218 (asm_language_data): Likewise.
5219 (minimal_language_data): Likewise.
5220 * d-lang.c (d_language_data): Likewise.
5221 * f-lang.c (f_is_string_type_p): Delete function, implementation
5222 moved to f_language::is_string_type_p.
5223 (f_language_data): Delete la_is_string_type_p initializer.
5224 (f_language::is_string_type_p): New member function,
5225 implementation from f_is_string_type_p.
5226 * go-lang.c (go_is_string_type_p): Delete function, implementation
5227 moved to go_language::is_string_type_p.
5228 (go_language_data): Delete la_is_string_type_p initializer.
5229 (go_language::is_string_type_p): New member function,
5230 implementation from go_is_string_type_p.
5231 * language.c (language_defn::is_string_type_p): Define new member
5232 function.
5233 (default_is_string_type_p): Make static, add comment copied from
5234 header file.
5235 (unknown_language_data): Delete la_is_string_type_p initializer.
5236 (unknown_language::is_string_type_p): New member function.
5237 (auto_language_data): Delete la_is_string_type_p initializer.
5238 (auto_language::is_string_type_p): New member function.
5239 * language.h (language_data): Delete la_is_string_type_p field.
5240 (language_defn::is_string_type_p): Declare new function.
5241 (default_is_string_type_p): Delete desclaration, move comment to
5242 definition.
5243 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5244 moved to m2_language::is_string_type_p.
5245 (m2_language_data): Delete la_is_string_type_p initializer.
5246 (m2_language::is_string_type_p): New member function,
5247 implementation from m2_is_string_type_p.
5248 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5249 initializer.
5250 * opencl-lang.c (opencl_language_data): Likewise.
5251 * p-lang.c (pascal_is_string_type_p): Delete function,
5252 implementation moved to pascal_language::is_string_type_p.
5253 (pascal_language_data): Delete la_is_string_type_p initializer.
5254 (pascal_language::is_string_type_p): New member function,
5255 implementation from pascal_is_string_type_p.
5256 * rust-lang.c (rust_is_string_type_p): Delete function,
5257 implementation moved to rust_language::is_string_type_p.
5258 (rust_language_data): Delete la_is_string_type_p initializer.
5259 (rust_language::is_string_type_p): New member function,
5260 implementation from rust_is_string_type_p.
5261 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5262 is_string_type_p.
5263
4ffc13fb
AB
52642020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5265
5266 * ada-lang.c (ada_language_data): Delete la_print_typedef
5267 initializer.
5268 (ada_language::print_typedef): New member function.
5269 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5270 (cplus_language_data): Likewise.
5271 (asm_language_data): Likewise.
5272 (minimal_language_data): Likewise.
5273 * d-lang.c (d_language_data): Likewise.
5274 * f-lang.c (f_language_data): Likewise.
5275 (f_language::print_typedef): New member function.
5276 * go-lang.c (go_language_data): Delete la_print_typedef
5277 initializer.
5278 * language.c (language_defn::print_typedef): Define member
5279 function.
5280 (unknown_language_data): Delete la_print_typedef initializer.
5281 (unknown_language::print_typedef): New member function.
5282 (auto_language_data): Delete la_print_typedef initializer.
5283 (auto_language::print_typedef): New member function.
5284 * language.h (language_data): Delete la_print_typedef field.
5285 (language_defn::print_typedef): Declare new member function.
5286 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5287 (default_print_typedef): Delete declaration.
5288 * m2-lang.c (m2_language_data): Delete la_print_typedef
5289 initializer.
5290 (m2_language::print_typedef): New member function.
5291 * objc-lang.c (objc_language_data): Delete la_print_typedef
5292 initializer.
5293 * opencl-lang.c (opencl_language_data): Likewise.
5294 * p-lang.c (pascal_language_data): Likewise.
5295 (pascal_language::print_typedef): New member function.
5296 * rust-lang.c (rust_print_typedef): Delete function,
5297 implementation moved to rust_language::print_typedef.
5298 (rust_language): Delete la_print_typedef initializer.
5299 (rust_language::print_typedef): New member function,
5300 implementation from rust_print_typedef.
5301 * typeprint.c (default_print_typedef): Delete.
5302
d711ee67
AB
53032020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5304
5305 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5306 (ada_language::printstr): New member function.
5307 * c-lang.c (c_language_data): Delete la_printstr 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_printstr): Rename to f_language::printstr.
5313 (f_language_data): Delete la_printstr initializer.
5314 (f_language::printstr): New member function, implementation from
5315 f_printstr.
5316 * go-lang.c (go_language_data): Delete la_printstr initializer.
5317 * language.c (language_defn::printstr): Define new member
5318 function.
5319 (unk_lang_printstr): Delete.
5320 (unknown_language_data): Delete la_printstr initializer.
5321 (unknown_language::printstr): New member function.
5322 (auto_language_data): Delete la_printstr initializer.
5323 (auto_language::printstr): New member function.
5324 * language.h (language_data): Delete la_printstr field.
5325 (language_defn::printstr): Declare new member function.
5326 (LA_PRINT_STRING): Update call to printstr.
5327 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5328 (m2_language_data): Delete la_printstr initializer.
5329 (m2_language::printstr): New member function, implementation from
5330 m2_printstr.
5331 * objc-lang.c (objc_language_data): Delete la_printstr
5332 initializer.
5333 * opencl-lang.c (opencl_language_data): Likewise.
5334 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5335 (pascal_language_data): Delete la_printstr initializer.
5336 (pascal_language::printstr): New member function, implementation
5337 from pascal_printstr.
5338 * p-lang.h (pascal_printstr): Delete declaration.
5339 * rust-lang.c (rust_printstr): Update header comment.
5340 (rust_language_data): Delete la_printstr initializer.
5341 (rust_language::printstr): New member function.
5342
52b50f2c
AB
53432020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5344
5345 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5346 (ada_language::printchar): New member function.
5347 * c-lang.c (c_language_data): Delete la_printchar initializer.
5348 (cplus_language_data): Likewise.
5349 (asm_language_data): Likewise.
5350 (minimal_language_data): Likewise.
5351 * d-lang.c (d_language_data): Likewise.
5352 * f-lang.c (f_printchar): Rename to f_language::printchar.
5353 (f_language_data): Delete la_printchar initializer.
5354 (f_language::printchar): New member function, implementation from
5355 f_printchar.
5356 * go-lang.c (go_language_data): Delete la_printchar initializer.
5357 * language.c (unk_lang_printchar): Delete.
5358 (language_defn::printchar): Define new member function.
5359 (unknown_language_data): Delete la_printchar initializer.
5360 (unknown_language::printchar): New member function.
5361 (auto_language_data): Delete la_printchar initializer.
5362 (auto_language::printchar): New member function.
5363 * language.h (language_data): Delete la_printchar field.
5364 (language_defn::printchar): Declare new member function.
5365 (LA_PRINT_CHAR): Update call to printchar.
5366 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5367 (m2_language::printchar): New member function.
5368 * objc-lang.c (objc_language_data): Delete la_printchar
5369 initializer.
5370 * opencl-lang.c (opencl_language_data): Likewise.
5371 * p-lang.c (pascal_language_data): Delete la_printchar
5372 initializer.
5373 (pascal_language::printchar): New member function.
5374 * rust-lang.c (rust_printchar): Rename to
5375 rust_language::printchar.
5376 (rust_language_data): Delete la_printchar initializer.
5377 (rust_language::printchar): New member function, implementation
5378 from rust_printchar.
5379
ec8cec5b
AB
53802020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5381
5382 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5383 (ada_language_data): Delete la_emitchar initializer.
5384 (ada_language::emitchar): New member function, implementation from
5385 emit_char.
5386 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5387 (cplus_language_data): Likewise.
5388 (asm_language_data): Likewise.
5389 (minimal_language_data): Likewise.
5390 * d-lang.c (d_language_data): Likewise.
5391 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5392 (f_language_data): Delete la_emitchar initializer.
5393 (f_language::emitchar): New member function, implementation from
5394 f_emit_char.
5395 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5396 * language.c (unk_lang_emit_char): Delete.
5397 (language_defn::emitchar): New member function definition.
5398 (unknown_language_data): Delete la_emitchar initializer.
5399 (unknown_language::emitchar): New member function.
5400 (auto_language_data): Delete la_emitchar initializer.
5401 (auto_language::emitchar): New member function.
5402 * language.h (language_data): Delete la_emitchar field.
5403 (language_defn::emitchar): New member field declaration.
5404 (LA_EMIT_CHAR): Update call to emitchar.
5405 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5406 (m2_language_data): Delete la_emitchar initializer.
5407 (m2_language::emitchar): New member function, implementation from
5408 m2_emit_char.
5409 * objc-lang.c (objc_language_data): Delete la_emitchar
5410 initializer.
5411 * opencl-lang.c (opencl_language_data): Likewise.
5412 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5413 (pascal_language_data): Delete la_emitchar initializer.
5414 (pascal_language::emitchar): New member function, implementation
5415 from pascal_emit_char.
5416 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5417 (rust_language_data): Delete la_emitchar initializer.
5418 (rust_language::emitchar): New member function, implementation
5419 from rust_emitchar.
5420
1bf9c363
AB
54212020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5422
5423 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5424 (ada_language_data): Delete la_post_parser initializer.
5425 (ada_language::post_parser): New member function.
5426 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5427 (cplus_language_data): Likewise.
5428 (asm_language_data): Likewise.
5429 (minimal_language_data): Likewise.
5430 * d-lang.c (d_language_data): Likewise.
5431 * f-lang.c (f_language_data): Likewise.
5432 * go-lang.c (go_language_data): Likewise.
5433 * language.c (unknown_language_data): Likewise.
5434 (auto_language_data): Likewise.
5435 * language.h (language_data): Delete la_post_parser field.
5436 (language_defn::post_parser): New member function.
5437 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5438 * objc-lang.c (objc_language_data): Likewise.
5439 * opencl-lang.c (opencl_language_data): Likewise.
5440 * p-lang.c (pascal_language_data): Likewise.
5441 * parse.c (parse_exp_in_context): Update call to post_parser.
5442 (null_post_parser): Delete definition.
5443 * parser-defs.h (null_post_parser): Delete declaration.
5444 * rust-lang.c (rust_language_data): Delete la_post_parser
5445 initializer.
5446
87afa652
AB
54472020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5448
5449 * ada-lang.c (parse): Rename to ada_language::parser.
5450 (ada_language_data): Delete la_parser initializer.
5451 (ada_language::parser): New member function, implementation from
5452 parse.
5453 * c-lang.c (c_language_data): Delete la_parser initializer.
5454 (cplus_language_data): Likewise.
5455 (asm_language_data): Likewise.
5456 (minimal_language_data): Likewise.
5457 * d-lang.c (d_language_data): Likewise.
5458 (d_language::parser): New member function.
5459 * f-lang.c (f_language_data): Delete la_parser initializer.
5460 (f_language::parser): New member function.
5461 * go-lang.c (go_language_data): Delete la_parser initializer.
5462 (go_language::parser): New member function.
5463 * language.c (unk_lang_parser): Delete.
5464 (language_defn::parser): Define new member function.
5465 (unknown_language_data): Delete la_parser initializer.
5466 (unknown_language::parser): New member function.
5467 (auto_language_data): Delete la_parser initializer.
5468 (auto_language::parser): New member function.
5469 * language.h (language_data): Delete la_parser field.
5470 (language_defn::parser): Declare new member function.
5471 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5472 (m2_language::parser): New member function.
5473 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5474 * opencl-lang.c (opencl_language_data): Likewise.
5475 * p-lang.c (pascal_language_data): Likewise.
5476 (pascal_language::parser): New member function.
5477 * parse.c (parse_exp_in_context): Update call to parser.
5478 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5479 (rust_language::parser): New member function.
5480
37825800
AB
54812020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5482
5483 * top.c (print_gdb_configuration): Print --with-python-libdir
5484 configuration value.
5485
5b860c93
PW
54862020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5487
5488 * NEWS: Mention change to the alias command.
5489
cf00cd6f
PW
54902020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5491
5492 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5493 (alias_command_completer)
5494 (make_alias_options_def_group): New functions.
5495 (alias_opts, alias_option_defs): New struct and array.
5496 (alias_usage_error): Update usage.
5497 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5498 Use option framework.
5499 (_initialize_cli_cmds): Update alias command help.
5500 Update aliases command help.
5501 (show_user):
5502 Add NULL for new default_args lookup_cmd argument.
5503 (valid_command_p): Rename to validate_aliased_command.
5504 Add NULL for new default_args lookup_cmd argument. Verify that the
5505 aliased_command has no default args.
5506 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5507 (lookup_cmd_1, lookup_cmd): New argument default_args.
5508 (add_alias_cmd):
5509 Add NULL for new default_args lookup_cmd argument.
5510 (print_help_for_command): Show default args under the layout
5511 alias some_alias = some_aliased_cmd some_alias_default_arg.
5512 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5513 xfree default_args in destructor.
5514 * cli/cli-script.c (process_next_line, do_define_command):
5515 Add NULL for new default_args lookup_cmd argument.
5516 * command.h: Declare new default_args argument in lookup_cmd
5517 and lookup_cmd_1.
5518 * completer.c (complete_line_internal_1):
5519 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5520 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5521 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5522 Likewise.
5523 * infcmd.c (_initialize_infcmd): Likewise.
5524 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5525 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5526 * python/py-param.c (add_setshow_generic): Likewise.
5527 * remote.c (_initialize_remote): Likewise.
5528 * top.c (execute_command): Prepend default_args if command has some.
5529 (set_verbose):
5530 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5531 * tracepoint.c (validate_actionline, encode_actions_1):
5532 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5533
bd920864
TBA
55342020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5535
5536 * jit.c (jit_read_descriptor): Use bool as the return type.
5537 (jit_breakpoint_re_set_internal): Use bool as the return type.
5538 Invert the return value logic; return true if the jit breakpoint
5539 has been successfully initialized.
5540 (jit_inferior_init): Update the call to
5541 jit_breakpoint_re_set_internal.
5542
f8098322
PA
55432020-06-22 Pedro Alves <palves@redhat.com>
5544
5545 PR gdb/25939
5546 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5547 Use the current inferior instead. Don't return
5548 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5549 wait again.
5550 * sol-thread.c (sol_thread_target::wait): Don't reference
5551 inferior_ptid.
5552 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5553 (sol_update_thread_list_callback): Use the current inferior's pid
5554 instead of inferior_ptid.
5555
196535a6
RO
55562020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5557
5558 * procfs.c: Cleanup many comments.
5559
5560 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5561 (AFTER_WATCHFLAG): Replace by value.
5562
5563 (MAIN_PROC_NAME_FORMAT): Inline ...
5564 (create_procinfo): ... here.
5565
5566 (procfs_debug_inferior): Remove SYS_exec handling.
5567 (syscall_is_exec): Likewise.
5568 (procfs_set_exec_trap): Likewise.
5569
5570 (syscall_is_lwp_exit): Inline in callers.
5571 (syscall_is_exit): Likewise.
5572 (syscall_is_exec): Likewise.
5573 (syscall_is_lwp_create): Likewise.
5574
5575 (invalidate_cache): Remove #if 0 code.
5576
5577 (make_signal_thread_runnable): Remove.
5578 (procfs_target::resume): Remove #if 0 code.
5579
cf6f3e86
RO
55802020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5581
5582 PR gdb/25939
5583 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5584 call ...
5585 (procfs_target::create_inferior): ... here.
5586
48e9cc84
PW
55872020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5588
5589 * exec.c (validate_exec_file): Ensure the build-id is up to
5590 date by calling reopen_exec_file (that checks file timestamp
5591 to decide to re-read the file).
5592
3922b302
PA
55932020-06-18 Pedro Alves <palves@redhat.com>
5594
5595 PR gdb/25412
5596 * gdbthread.h (delete_thread, delete_thread_silent)
5597 (find_thread_ptid): Update comments.
5598 * thread.c (current_thread_): New global.
5599 (is_current_thread): Move higher, and reimplement.
5600 (inferior_thread): Reimplement.
5601 (set_thread_exited): Use bool. Add assertions.
5602 (add_thread_silent): Simplify thread-reuse handling by always
5603 calling delete_thread.
5604 (delete_thread): Remove intro comment.
5605 (find_thread_ptid): Skip exited threads.
5606 (switch_to_thread_no_regs): Write to current_thread_.
5607 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5608 INFERIOR_PTID. Clear current_thread_.
5609
6dbdab44
PA
56102020-06-18 Pedro Alves <palves@redhat.com>
5611
5612 * aix-thread.c (pd_update): Use switch_to_thread.
5613
2da4b788
PA
56142020-06-18 Pedro Alves <palves@redhat.com>
5615
5616 * ravenscar-thread.c (ravenscar_thread_target): Update.
5617 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5618 (ravenscar_thread_target::add_active_thread): ... this. Don't
5619 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5620 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5621
50838d1b
PA
56222020-06-18 Pedro Alves <palves@redhat.com>
5623
5624 * nat/windows-nat.c (current_windows_thread): Remove.
5625 * nat/windows-nat.h (current_windows_thread): Remove.
5626 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5627 Adjust.
5628 (display_selectors): Adjust to fetch the current
5629 windows_thread_info based on inferior_ptid.
5630 (fake_create_process): No longer write to current_windows_thread.
5631 (windows_nat_target::get_windows_debug_event):
5632 Don't set inferior_ptid or current_windows_thread.
5633 (windows_nat_target::wait): Adjust to not rely on
5634 current_windows_thread.
5635 (do_initial_windows_stuff): Now a method of windows_nat_target.
5636 Switch to the last_ptid thread.
5637 (windows_nat_target::attach): Adjust.
5638 (windows_nat_target::detach): Use switch_to_no_thread instead of
5639 writing to inferior_ptid directly.
5640 (windows_nat_target::create_inferior): Adjust.
5641
31ce04e9
PA
56422020-06-18 Pedro Alves <palves@redhat.com>
5643
5644 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5645
1ee1a363
PA
56462020-06-18 Pedro Alves <palves@redhat.com>
5647
5648 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5649 after creating it, instead of writing to inferior_ptid. Don't
5650 write to inferior_ptid.
5651
6d350754
PA
56522020-06-18 Pedro Alves <palves@redhat.com>
5653
5654 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5655
5d971d48
PA
56562020-06-18 Pedro Alves <palves@redhat.com>
5657
5658 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5659 it, instead of writing to inferior_ptid.
5660
86e57d1b
PA
56612020-06-18 Pedro Alves <palves@redhat.com>
5662
5663 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5664 to inferior_ptid.
5665
f2e1c129
PA
56662020-06-18 Pedro Alves <palves@redhat.com>
5667
5668 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5669 instead of writing to inferior_ptid directly.
5670
60db1b85
PA
56712020-06-18 Pedro Alves <palves@redhat.com>
5672
5673 * corelow.c (core_target::close): Use switch_to_no_thread instead
5674 of writing to inferior_ptid directly.
5675 (add_to_thread_list, core_target_open): Use switch_to_thread
5676 instead of writing to inferior_ptid directly.
5677
fe7d6a8d
PA
56782020-06-18 Pedro Alves <palves@redhat.com>
5679
5680 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5681 inferior_ptid.
5682 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5683 inferior_ptid.
5684 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5685 inferior_ptid directly.
5686 (darwin_nat_target::init_thread_list): Switch to thread, instead
5687 of writing to inferior_ptid.
5688 (darwin_nat_target::attach): Don't write to inferior_ptid.
5689 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5690
975f8708
PA
56912020-06-18 Pedro Alves <palves@redhat.com>
5692
5693 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5694 thread.
5695 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5696 Instead use switch_to_thread.
5697 (gnu_nat_target::detach): Use switch_to_no_thread
5698 instead of writing to inferior_ptid directly. Used passed-in
5699 inferior instead of looking up the inferior by pid.
5700
1a204730
PA
57012020-06-18 Pedro Alves <palves@redhat.com>
5702
5703 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5704 inferior_ptid.
5705
ebe84f23
PA
57062020-06-18 Pedro Alves <palves@redhat.com>
5707
5708 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5709 inferior_ptid.
5710 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5711 thread.
5712 (nto_procfs_target::detach): Avoid referencing
5713 inferior_ptid. Use switch_to_no_thread instead of writing to
5714 inferior_ptid directly.
5715 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5716 instead of writing to inferior_ptid directly.
5717 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5718 to thread.
5719
191f02e5
PA
57202020-06-18 Pedro Alves <palves@redhat.com>
5721
5722 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5723 after creating it, instead of writing to inferior_ptid.
5724 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5725 to inferior_ptid directly.
5726 (gdbsim_target::wait): Don't write to inferior_ptid.
5727
0ac55310
PA
57282020-06-18 Pedro Alves <palves@redhat.com>
5729
5730 * remote.c (remote_target::remote_notice_new_inferior): Use
5731 switch_to_thread instead of writing to inferior_ptid directly.
5732 (remote_target::add_current_inferior_and_thread): Use
5733 switch_to_no_thread instead of writing to inferior_ptid directly.
5734 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5735 and switch_to_thread instead of using set_current_inferior or
5736 writing to inferior_ptid directly.
5737
5233f39b
PA
57382020-06-18 Pedro Alves <palves@redhat.com>
5739
5740 * tracectf.c (ctf_target_open): Switch to added thread instead of
5741 writing to inferior_ptid directly.
5742 (ctf_target::close): Use switch_to_no_thread instead of writing to
5743 inferior_ptid directly.
5744
087e161b
PA
57452020-06-18 Pedro Alves <palves@redhat.com>
5746
5747 * tracefile-tfile.c (tfile_target_open): Don't write to
5748 inferior_ptid directly, instead switch to added thread.
5749 (tfile_target::close): Use switch_to_no_thread instead of writing
5750 to inferior_ptid directly.
5751
7fb43e53
PA
57522020-06-18 Pedro Alves <palves@redhat.com>
5753
5754 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5755 (procfs_target::detach): Use switch_to_no_thread
5756 instead of writing to inferior_ptid directly.
5757 (do_attach): Change return type to void. Switch to the added
5758 thread.
5759 (procfs_target::create_inferior): Switch to the added thread.
5760 (procfs_do_thread_registers): Don't write to inferior_ptid.
5761
18493a00
PA
57622020-06-18 Pedro Alves <palves@redhat.com>
5763
5764 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5765 of writing to inferior_ptid.
5766 (scoped_restore_exited_inferior): Delete.
5767 (handle_vfork_child_exec_or_exit): Simplify using
5768 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5769 instead of writing to inferior_ptid.
5770 (THREAD_STOPPED_BY): Delete.
5771 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5772 (thread_stopped_by_hw_breakpoint): Delete.
5773 (save_waitstatus): Use
5774 scoped_restore_current_thread+switch_to_thread, and call
5775 target_stopped_by_watchpoint instead of
5776 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5777 instead of thread_stopped_by_sw_breakpoint, and
5778 target_stopped_by_hw_breakpoint instead of
5779 thread_stopped_by_hw_breakpoint.
5780 (handle_inferior_event)
5781 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5782 inferior_ptid directly, nor
5783 set_current_inferior/set_current_program_space. Use
5784 switch_to_thread / switch_to_inferior_no_thread instead.
5785
a0776b13
PA
57862020-06-18 Pedro Alves <palves@redhat.com>
5787
5788 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5789 instead of writing to inferior_ptid.
5790
6155c136
PA
57912020-06-18 Pedro Alves <palves@redhat.com>
5792
5793 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5794 added thread.
5795 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5796 to the added thread.
5797 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5798 instead of writing to inferior_ptid.
5799
c5316fc6
PA
58002020-06-18 Pedro Alves <palves@redhat.com>
5801
5802 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5803 (register_to_value_test): Mock a program_space too. Heap-allocate
5804 the address space. Don't write to inferior_ptid. Use
5805 switch_to_thread instead.
5806
8df01799
PA
58072020-06-18 Pedro Alves <palves@redhat.com>
5808
5809 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5810 Delete.
5811 (find_signalled_thread()): New, factored out from
5812 linux_make_corefile_notes and adjusted to handle exited threads.
5813 (linux_make_corefile_notes): Adjust to use the new
5814 find_signalled_thread.
5815
41792d68
PA
58162020-06-18 Pedro Alves <palves@redhat.com>
5817
5818 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5819 of saving/restoring inferior_ptid.
5820
612f258a
TT
58212020-06-17 Tom Tromey <tom@tromey.com>
5822
5823 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5824 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5825 declare.
5826 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5827
efb763a5
SM
58282020-06-15 Simon Marchi <simon.marchi@efficios.com>
5829
5830 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5831 of partial symtabs.
5832
2951f6c0
SM
58332020-06-17 Simon Marchi <simon.marchi@efficios.com>
5834
5835 * regformats/reg-arm.dat: Remove.
5836 * regformats/reg-bfin.dat: Remove.
5837 * regformats/reg-cris.dat: Remove.
5838 * regformats/reg-crisv32.dat: Remove.
5839 * regformats/reg-m32r.dat: Remove.
5840 * regformats/reg-tilegx.dat: Remove.
5841 * regformats/reg-tilegx32.dat: Remove.
5842
7d458ea5
SM
58432020-06-17 Simon Marchi <simon.marchi@efficios.com>
5844
5845 * features/Makefile (WHICH): Remove arm files.
5846 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5847 * regformats/arm/arm-with-neon.dat: Remove.
5848 * regformats/arm/arm-with-vfpv2.dat: Remove.
5849 * regformats/arm/arm-with-vfpv3.dat: Remove.
5850
3af96c0d
SM
58512020-06-17 Simon Marchi <simon.marchi@efficios.com>
5852
5853 * features/Makefile (XMLTOC): Remove rx.xml.
5854
b25e22fd
PA
58552020-06-17 Pedro Alves <palves@redhat.com>
5856
5857 * gdbthread.h (thread_control_state) <trap_expected> Update
5858 comments.
5859
a78a19b1
AB
58602020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5861
5862 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5863 ada_language::lookup_symbol_nonlocal.
5864 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5865 (ada_language::lookup_symbol_nonlocal): New member function,
5866 implementation from ada_lookup_symbol_nonlocal.
5867 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5868 initializer.
5869 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5870 initializer.
5871 (cplus_language::lookup_symbol_nonlocal): New member function.
5872 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5873 (minimal_language_data) Likewise.
5874 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5875 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5876 initializer.
5877 (d_language::lookup_symbol_nonlocal): New member function.
5878 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5879 initializer.
5880 (f_language::lookup_symbol_nonlocal): New member function.
5881 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5882 initializer.
5883 * language.c (unknown_language_data): Likewise.
5884 (auto_language_data): Likewise.
5885 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5886 field.
5887 (language_defn::lookup_symbol_nonlocal): New member function.
5888 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5889 initializer.
5890 * objc-lang.c (objc_language_data): Likewise.
5891 * opencl-lang.c (opencl_language_data): Likewise.
5892 * p-lang.c (pascal_language_data): Likewise.
5893 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5894 rust_language::lookup_symbol_nonlocal.
5895 (rust_language_data): Delete la_lookup_symbol_nonlocal
5896 initializer.
5897 (rust_language::lookup_symbol_nonlocal): New member function,
5898 implementation from rust_lookup_symbol_nonlocal.
5899 * symtab.c (lookup_symbol_aux): Update call to
5900 lookup_symbol_nonlocal.
5901 (basic_lookup_symbol_nonlocal): Rename to...
5902 (language_defn::lookup_symbol_nonlocal): ...this, and update
5903 header comment. Remove language_defn parameter, and replace with
5904 uses of `this'.
5905 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5906
ebe2334e
AB
59072020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5908
5909 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5910 initializer.
5911 (ada_language::value_print_inner): New member function.
5912 * c-lang.c (c_language_data): Delete la_value_print_inner
5913 initializer.
5914 (cplus_language_data): Likewise.
5915 (asm_language_data): Likewise.
5916 (minimal_language_data): Likewise.
5917 * d-lang.c (d_language_data): Likewise.
5918 (d_language::value_print_inner): New member function.
5919 * f-lang.c (f_language_data): Delete la_value_print_inner
5920 initializer.
5921 (f_language::value_print_inner): New member function.
5922 * f-lang.h (f_value_print_innner): Rename to...
5923 (f_value_print_inner): ...this (note spelling of 'inner').
5924 * f-valprint.c (f_value_print_innner): Rename to...
5925 (f_value_print_inner): ...this (note spelling of 'inner').
5926 * go-lang.c (go_language_data): Delete la_value_print_inner
5927 initializer.
5928 (go_language::value_print_inner): New member function.
5929 * language.c (language_defn::value_print_inner): Define new member
5930 function.
5931 (unk_lang_value_print_inner): Delete.
5932 (unknown_language_data): Delete la_value_print_inner initializer.
5933 (unknown_language::value_print_inner): New member function.
5934 (auto_language_data): Delete la_value_print_inner initializer.
5935 (auto_language::value_print_inner): New member function.
5936 * language.h (language_data): Delete la_value_print_inner field.
5937 (language_defn::value_print_inner): Delcare new member function.
5938 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5939 initializer.
5940 (m2_language::value_print_inner): New member function.
5941 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5942 initializer.
5943 * opencl-lang.c (opencl_language_data): Likewise.
5944 * p-lang.c (pascal_language_data): Likewise.
5945 (pascal_language::value_print_inner): New member function.
5946 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5947 initializer.
5948 (rust_language::value_print_inner): New member function.
5949 * valprint.c (do_val_print): Update call to value_print_inner.
5950
a1d1fa3e
AB
59512020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5952
5953 * ada-lang.c (ada_language_data): Delete la_value_print
5954 initializer.
5955 (ada_language::value_print): New member function.
5956 * c-lang.c (c_language_data): Delete la_value_print initializer.
5957 (cplus_language_data): Likewise.
5958 (asm_language_data): Likewise.
5959 (minimal_language_data): Likewise.
5960 * d-lang.c (d_language_data): Likewise.
5961 * f-lang.c (f_language_data): Likewise.
5962 * go-lang.c (go_language_data): Likewise.
5963 * language.c (unk_lang_value_print): Delete.
5964 (language_defn::value_print): Define new member function.
5965 (unknown_language_data): Delete la_value_print initializer.
5966 (unknown_language::value_print): New member function.
5967 (auto_language_data): Delete la_value_print initializer.
5968 (auto_language::value_print): New member function.
5969 * language.h (language_data): Delete la_value_print field.
5970 (language_defn::value_print): Declare new member function.
5971 (LA_VALUE_PRINT): Update call to value_print.
5972 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5973 * objc-lang.c (objc_language_data): Likewise.
5974 * opencl-lang.c (opencl_language_data): Likewise.
5975 * p-lang.c (pascal_language_data): Likewise.
5976 (pascal_language::value_print): New member function.
5977 * rust-lang.c (rust_language_data): Delete la_value_print
5978 initializer.
5979
f16a9f57
AB
59802020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5981
5982 * ada-lang.c (ada_watch_location_expression): Rename to
5983 ada_language::watch_location_expression.
5984 (ada_language_data): Delete la_watch_location_expression
5985 initializer.
5986 (ada_language::watch_location_expression): New member function,
5987 implementation from ada_watch_location_expression.
5988 * breakpoint.c (watch_command_1): Update call to
5989 watch_location_expression.
5990 * c-lang.c (c_watch_location_expression): Rename to
5991 language_defn::watch_location_expression.
5992 (c_language_data): Delete la_watch_location_expression
5993 initializer.
5994 (cplus_language_data): Likewise.
5995 (asm_language_data): Likewise.
5996 (minimal_language_data): Likewise.
5997 * c-lang.h (c_watch_location_expression): Delete declaration.
5998 * d-lang.c (d_language_data): Delete la_watch_location_expression
5999 initializer.
6000 * f-lang.c (f_language_data): Likewise.
6001 * go-lang.c (go_language_data): Likewise.
6002 * language.c (language_defn::watch_location_expression): Member
6003 function implementation from c_watch_location_expression.
6004 (unknown_language_data): Delete la_watch_location_expression
6005 initializer.
6006 (auto_language_data): Likewise.
6007 * language.h (language_data): Delete la_watch_location_expression
6008 field.
6009 (language_defn::watch_location_expression): Declare new member
6010 function.
6011 * m2-lang.c (m2_language_data): Delete
6012 la_watch_location_expression initializer.
6013 * objc-lang.c (objc_language_data): Likewise.
6014 * opencl-lang.c (opencl_language_data): Likewise.
6015 * p-lang.c (pascal_language_data): Likewise.
6016 * rust-lang.c (rust_watch_location_expression): Rename to
6017 rust_language::watch_location_expression.
6018 (rust_language_data): Delete la_watch_location_expression
6019 initializer.
6020 (rust_language::watch_location_expression): New member function,
6021 implementation from rust_watch_location_expression.
6022
7e56227d
AB
60232020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6024
6025 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6026 ada_language::collect_symbol_completion_matches.
6027 (ada_language_data): Delete la_collect_symbol_completion_matches
6028 initializer.
6029 (ada_language::collect_symbol_completion_matches): New member
6030 function, implementation from
6031 ada_collect_symbol_completion_matches.
6032 * c-lang.c (c_language_data): Delete
6033 la_collect_symbol_completion_matches initializer.
6034 (cplus_language_data): Likewise.
6035 (asm_language_data): Likewise.
6036 (minimal_language_data): Likewise.
6037 * d-lang.c (d_language_data): Likewise.
6038 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6039 f_language::collect_symbol_completion_matches.
6040 (f_language_data): Delete la_collect_symbol_completion_matches
6041 initializer.
6042 (f_language::collect_symbol_completion_matches) New member
6043 function, implementation from f_collect_symbol_completion_matches.
6044 * go-lang.c (go_language_data): Delete
6045 la_collect_symbol_completion_matches initializer.
6046 * language.c (unknown_language_data): Likewise.
6047 (auto_language_data): Likewise.
6048 * language.h (language_data): Delete
6049 la_collect_symbol_completion_matches field.
6050 (language_defn::collect_symbol_completion_matches): New member
6051 function.
6052 * m2-lang.c (m2_language_data): Delete
6053 la_collect_symbol_completion_matches initializer.
6054 * objc-lang.c (objc_language_data): Likewise.
6055 * opencl-lang.c (opencl_language_data): Likewise.
6056 * p-lang.c (pascal_language_data): Likewise.
6057 * rust-lang.c (rust_language_data): Likewise.
6058 * symtab.c (default_collect_symbol_completion_matches): Delete.
6059 (collect_symbol_completion_matches): Update call to
6060 collect_symbol_completion_matches.
6061 (collect_symbol_completion_matches_type): Likewise.
6062 * symtab.h (default_collect_symbol_completion_matches): Delete
6063 declaration.
6064
53fc67f8
AB
60652020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6066
6067 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6068 (ada_language_data): Delete la_word_break_characters initializer.
6069 (ada_language::word_break_characters): New member function.
6070 * c-lang.c (c_language_data): Delete la_word_break_characters
6071 initializer.
6072 (cplus_language_data): Likewise.
6073 (asm_language_data): Likewise.
6074 (minimal_language_data): Likewise.
6075 * completer.c: Update global comment.
6076 (advance_to_expression_complete_word_point): Update call to
6077 word_break_characters.
6078 (complete_files_symbols): Likewise.
6079 (complete_line_internal_1): Likewise.
6080 (default_completer_handle_brkchars): Likewise.
6081 (skip_quoted_chars): Likewise.
6082 * d-lang.c (d_language_data): Delete la_word_break_characters
6083 initializer.
6084 * f-lang.c (f_word_break_characters): Delete.
6085 (f_language_data): Delete la_word_break_characters initializer.
6086 (f_language::word_break_characters): New member function.
6087 * go-lang.c (go_language_data): Delete la_word_break_characters
6088 initializer.
6089 * language.c (unknown_language_data): Likewise.
6090 (auto_language_data): Likewise.
6091 * language.h (default_word_break_characters): Move declaration to
6092 earlier in the file.
6093 (language_data): Delete la_word_break_characters field.
6094 (language_defn::word_break_characters): New member function.
6095 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6096 initializer.
6097 * objc-lang.c (objc_language_data): Likewise.
6098 * opencl-lang.c (opencl_language_data): Likewise.
6099 * p-lang.c (pascal_language_data): Likewise.
6100 * rust-lang.c (rust_language_data): Likewise.
6101
c9debfb9
AB
61022020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6103
6104 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6105 (ada_language_data): Delete la_get_symbol_name_matcher
6106 initializer.
6107 (language_defn::get_symbol_name_matcher_inner): New member
6108 function.
6109 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6110 initializer.
6111 (cplus_language_data): Likewise.
6112 (cplus_language::get_symbol_name_matcher_inner): New member
6113 function.
6114 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6115 (minimal_language_data): Likewise.
6116 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6117 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6118 initializer.
6119 * dictionary.c (iter_match_first_hashed): Update call to
6120 get_symbol_name_matcher.
6121 (iter_match_next_hashed): Likewise.
6122 (iter_match_next_linear): Likewise.
6123 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6124 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6125 initializer.
6126 (f_language::get_symbol_name_matcher_inner): New member function.
6127 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6128 initializer.
6129 * language.c (default_symbol_name_matcher): Update header comment,
6130 make static.
6131 (language_defn::get_symbol_name_matcher): New definition.
6132 (language_defn::get_symbol_name_matcher_inner): Likewise.
6133 (get_symbol_name_matcher): Delete.
6134 (unknown_language_data): Delete la_get_symbol_name_matcher
6135 initializer.
6136 (auto_language_data): Likewise.
6137 * language.h (language_data): Delete la_get_symbol_name_matcher
6138 field.
6139 (language_defn::get_symbol_name_matcher): New member function.
6140 (language_defn::get_symbol_name_matcher_inner): Likewise.
6141 (default_symbol_name_matcher): Delete declaration.
6142 * linespec.c (find_methods): Update call to
6143 get_symbol_name_matcher.
6144 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6145 initializer.
6146 * minsyms.c (lookup_minimal_symbol): Update call to
6147 get_symbol_name_matcher.
6148 (iterate_over_minimal_symbols): Likewise.
6149 * objc-lang.c (objc_language_data): Delete
6150 la_get_symbol_name_matcher initializer.
6151 * opencl-lang.c (opencl_language_data): Likewise.
6152 * p-lang.c (pascal_language_data): Likewise.
6153 * psymtab.c (psymbol_name_matches): Update call to
6154 get_symbol_name_matcher.
6155 * rust-lang.c (rust_language_data): Delete
6156 la_get_symbol_name_matcher initializer.
6157 * symtab.c (symbol_matches_search_name): Update call to
6158 get_symbol_name_matcher.
6159 (compare_symbol_name): Likewise.
6160
9a49ad8c
AB
61612020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6162
6163 * ada-lang.c (ada_language_data): Delete la_compute_program
6164 initializer.
6165 * c-lang.c (c_language_data): Likewise.
6166 (c_language::compute_program): New member function.
6167 (cplus_language_data): Delete la_compute_program initializer.
6168 (cplus_language::compute_program): New member function.
6169 (asm_language_data): Delete la_compute_program initializer.
6170 (minimal_language_data): Likewise.
6171 * c-lang.h (c_compute_program): Update comment.
6172 (cplus_compute_program): Likewise.
6173 * compile/compile-c-support.c (c_compute_program): Likewise.
6174 (cplus_compute_program): Likewise.
6175 * compile/compile.c (compile_to_object): Update call to
6176 la_compute_program.
6177 * d-lang.c (d_language_data): Delete la_compute_program
6178 initializer.
6179 * f-lang.c (f_language_data): Likewise.
6180 * go-lang.c (go_language_data): Likewise.
6181 * language.c (unknown_language_data): Likewise.
6182 (auto_language_data): Likewise.
6183 * language.h (language_data): Delete la_compute_program field.
6184 (language_defn::compute_program): New member function.
6185 * m2-lang.c (m2_language_data): Delete la_compute_program
6186 initializer.
6187 * objc-lang.c (objc_language_data): Likewise.
6188 * opencl-lang.c (opencl_language_data): Likewise.
6189 * p-lang.c (pascal_language_data): Likewise.
6190 * rust-lang.c (rust_language_data): Likewise.
6191
eff93b4d
AB
61922020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6193
6194 * ada-lang.c (ada_language_data) Delete
6195 la_class_name_from_physname initializer.
6196 * c-lang.c (c_language_data): Likewise.
6197 (cplus_language_data): Likewise.
6198 (cplus_language::class_name_from_physname): New member function.
6199 (asm_language_data): Delete la_class_name_from_physname
6200 initializer.
6201 (minimal_language_data): Likewise.
6202 * d-lang.c (d_language_data): Likewise.
6203 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6204 method on language_defn class.
6205 (guess_full_die_structure_name): Likewise.
6206 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6207 initializer.
6208 * go-lang.c (go_language_data): Likewise.
6209 * language.c (language_class_name_from_physname): Delete.
6210 (unk_lang_class_name): Delete.
6211 (unknown_language_data): Delete la_class_name_from_physname
6212 initializer.
6213 (auto_language_data): Likewise.
6214 * language.h (language_data): Delete la_class_name_from_physname
6215 field.
6216 (language_defn::class_name_from_physname): New function.
6217 (language_class_name_from_physname): Delete declaration.
6218 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6219 initializer.
6220 * objc-lang.c (objc_language_data): Likewise.
6221 * opencl-lang.c (opencl_language_data): Likewise.
6222 * p-lang.c (pascal_language_data): Likewise.
6223 * rust-lang.c (rust_language_data): Likewise.
6224
de543742
TT
62252020-06-16 Tom Tromey <tom@tromey.com>
6226
6227 * tui/tui-data.h (STATUS_NAME): New macro.
6228 * tui/tui-layout.c (tui_remove_some_windows)
6229 (initialize_known_windows, tui_register_window)
6230 (tui_layout_split::remove_windows, initialize_layouts)
6231 (tui_new_layout_command): Don't use hard-coded window names.
6232
a350efd4
TT
62332020-06-16 Tom Tromey <tom@tromey.com>
6234
6235 PR tui/25348:
6236 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6237 tui_initialize_readline. Only run once. Call rl_initialize.
6238 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6239 tui_initialize_readline.
6240 * tui/tui-io.c (tui_setup_io): Call
6241 tui_ensure_readline_initialized.
6242 * tui/tui-interp.c (tui_interp::init): Update.
6243
39ec0490
TT
62442020-06-16 Tom Tromey <tom@tromey.com>
6245
6246 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6247 Also preserve the status window.
6248
d2d1ea20
TT
62492020-06-16 Tom Tromey <tom@tromey.com>
6250
6251 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6252 where m_window==nullptr.
6253
66920317
TT
62542020-06-15 Tom Tromey <tromey@adacore.com>
6255
6256 * windows-nat.c (windows_nat::handle_output_debug_string):
6257 Update.
6258 (windows_nat::handle_ms_vc_exception): Update.
6259 * target.h (target_read_string): Change API.
6260 * target.c (target_read_string): Change API.
6261 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6262 Update.
6263 * solib-frv.c (frv_current_sos): Update.
6264 * solib-dsbt.c (dsbt_current_sos): Update.
6265 * solib-darwin.c (darwin_current_sos): Update.
6266 * linux-thread-db.c (inferior_has_bug): Update.
6267 * expprint.c (print_subexp_standard): Update.
6268 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6269 (ada_exception_message_1): Update.
6270
a5d871dd
TT
62712020-06-15 Tom Tromey <tromey@adacore.com>
6272
6273 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6274
670e35fa
TT
62752020-06-15 Tom Tromey <tromey@adacore.com>
6276
6277 * valprint.c (read_string): Update comment.
6278 * target.c (MIN): Remove.
6279 (target_read_string): Rewrite.
6280
f5272a3b
TT
62812020-06-15 Tom Tromey <tromey@adacore.com>
6282
6283 * corefile.c (read_memory_string): Remove.
6284 * ada-valprint.c (ada_value_print_ptr): Update.
6285 * ada-lang.h (ada_tag_name): Change return type.
6286 * ada-lang.c (type_from_tag): Update.
6287 (ada_tag_name_from_tsd): Change return type. Use
6288 target_read_string.
6289 (ada_tag_name): Likewise.
6290 * gdbcore.h (read_memory_string): Don't declare.
6291
2c074f49
HD
62922020-06-14 Hannes Domani <ssbssa@yahoo.de>
6293
6294 * symtab.c (rbreak_command): Ignore Windows drive colon.
6295
6a17d503
SM
62962020-06-12 Simon Marchi <simon.marchi@efficios.com>
6297
6298 * NEWS: Mention removed GDBserver host support.
6299
453c733f
NC
63002020-06-12 Nelson Chu <nelson.chu@sifive.com>
6301
6302 * features/riscv/rebuild-csr-xml.sh: Updated.
6303
2b4e6a3f
TT
63042020-06-11 Tom Tromey <tom@tromey.com>
6305
6306 PR gdb/18318:
6307 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6308
4412332f
JG
63092020-06-09 Jonny Grant <jg@jguk.org>
63102020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6311
6312 * main.c (captured_main_1): Don't print new line after help.
6313 (print_gdb_help): add mailing list and IRC channel information
6314 to --help. Add new lines between items in the footer. Remove
6315 quotes around bug url.
6316
2f33032a
KS
63172020-06-11 Keith Seitz <keiths@redhat.com>
6318
6319 PR gdb/21356
6320 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6321 Resolve typedefs for type length calculations.
6322
7ab96794
TV
63232020-06-10 Tom de Vries <tdevries@suse.de>
6324
6325 PR ada/24713
6326 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6327 (write_psymbols): Enable .gdb_index for ada.
6328 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6329 ada.
6330
e5f3ece2
TV
63312020-06-10 Tom de Vries <tdevries@suse.de>
6332
6333 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6334 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6335 namei" instead of "const char *name" argument.
6336 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6337 dw2_symtab_iter_init.
6338
940da03e
SM
63392020-06-08 Simon Marchi <simon.marchi@efficios.com>
6340
6341 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6342 to use type::field and field::type instead.
6343
b6cdac4b
SM
63442020-06-08 Simon Marchi <simon.marchi@efficios.com>
6345
6346 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6347 to use field::type instead.
6348
5d14b6e5
SM
63492020-06-08 Simon Marchi <simon.marchi@efficios.com>
6350
6351 * gdbtypes.h (struct field) <type, set_type>: New methods.
6352 Rename `type` field to...
6353 <m_type>: ... this. Change references throughout to use type or
6354 set_type methods.
6355 (FIELD_TYPE): Use field::type. Change call sites that modify
6356 the field's type to use field::set_type instead.
6357
3d967001
SM
63582020-06-08 Simon Marchi <simon.marchi@efficios.com>
6359
6360 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6361 to use type::index_type instead.
6362
262abc0d
SM
63632020-06-08 Simon Marchi <simon.marchi@efficios.com>
6364
6365 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6366 methods.
6367 (TYPE_INDEX_TYPE): Use type::index_type.
6368 * gdbtypes.c (create_array_type_with_stride): Likewise.
6369
82836c92
TT
63702020-06-07 Tom Tromey <tom@tromey.com>
6371
6372 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6373 parameter.
6374 (generic_value_print): Update.
6375
940dace9
AB
63762020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6377
6378 Revert commit 982a38f60b0.
6379 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6380
982a38f6
AB
63812020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6382
6383 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6384 avoid use after free.
6385
82f06518
TV
63862020-06-05 Tom de Vries <tdevries@suse.de>
6387
6388 * NEWS: Fix typos.
6389
f8c41851
SM
63902020-06-04 Simon Marchi <simon.marchi@efficios.com>
6391
6392 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6393 the per_bfd object.
6394 (dwarf2_read_debug_names): Likewise.
6395 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6396 object when re-using a per_bfd object with an index.
6397
f9b5d5ea
TV
63982020-06-03 Tom de Vries <tdevries@suse.de>
6399
6400 PR symtab/26046
6401 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6402 children for C++.
6403 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6404 DW_TAG_subprogram.
6405
f6eee2d0
AB
64062020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6407
6408 * ada-lang.c (ada_language_data): Delete skip_trampoline
6409 initializer.
6410 * c-lang.c (c_language_data): Likewise.
6411 (cplus_language_data): Likewise.
6412 (cplus_language::skip_trampoline): New member function.
6413 (asm_language_data): Delete skip_trampoline initializer.
6414 (minimal_language_data): Likewise.
6415 * d-lang.c (d_language_data): Likewise.
6416 * f-lang.c (f_language_data): Likewise.
6417 * go-lang.c (go_language_data): Likewise.
6418 * language.c (unk_lang_trampoline): Delete function.
6419 (skip_language_trampoline): Update.
6420 (unknown_language_data): Delete skip_trampoline initializer.
6421 (auto_language_data): Likewise.
6422 * language.h (language_data): Delete skip_trampoline field.
6423 (language_defn::skip_trampoline): New function.
6424 * m2-lang.c (m2_language_data): Delete skip_trampoline
6425 initializer.
6426 * objc-lang.c (objc_skip_trampoline): Delete function, move
6427 implementation to objc_language::skip_trampoline.
6428 (objc_language_data): Delete skip_trampoline initializer.
6429 (objc_language::skip_trampoline): New member function with
6430 implementation from objc_skip_trampoline.
6431 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6432 initializer.
6433 * p-lang.c (pascal_language_data): Likewise.
6434 * rust-lang.c (rust_language_data): Likewise.
6435
0a50df5d
AB
64362020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6437
6438 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6439 (ada_language::demangle): New member function.
6440 * c-lang.c (c_language_data): Delete la_demangle initializer.
6441 (cplus_language_data): Delete la_demangle initializer.
6442 (cplus_language::demangle): New member function.
6443 (asm_language_data): Delete la_demangle initializer.
6444 (minimal_language_data): Delete la_demangle initializer.
6445 * d-lang.c (d_language_data): Delete la_demangle initializer.
6446 (d_language::demangle): New member function.
6447 * f-lang.c (f_language_data): Delete la_demangle initializer.
6448 (f_language::demangle): New member function.
6449 * go-lang.c (go_language_data): Delete la_demangle initializer.
6450 (go_language::demangle): New member function.
6451 * language.c (language_demangle): Update.
6452 (unk_lang_demangle): Delete.
6453 (unknown_language_data): Delete la_demangle initializer.
6454 (unknown_language::demangle): New member function.
6455 (auto_language_data): Delete la_demangle initializer.
6456 (auto_language::demangle): New member function.
6457 * language.h (language_data): Delete la_demangle field.
6458 (language_defn::demangle): New function.
6459 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6460 * objc-lang.c (objc_language_data): Delete la_demangle
6461 initializer.
6462 (objc_language::demangle): New member function.
6463 * opencl-lang.c (opencl_language_data): Delete la_demangle
6464 initializer.
6465 * p-lang.c (pascal_language_data): Likewise.
6466 * rust-lang.c (rust_language_data): Likewise.
6467 (rust_language::demangle): New member function.
6468
fbfb0a46
AB
64692020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6470
6471 * ada-lang.c (ada_language_data): Delete la_print_type
6472 initializer.
6473 (ada_language::print_type): New member function.
6474 * c-lang.c (c_language_data): Delete la_print_type initializer.
6475 (c_language::print_type): New member function.
6476 (cplus_language_data): Delete la_print_type initializer.
6477 (cplus_language::print_type): New member function.
6478 (asm_language_data): Delete la_print_type initializer.
6479 (asm_language::print_type): New member function.
6480 (minimal_language_data): Delete la_print_type initializer.
6481 (minimal_language::print_type): New member function.
6482 * d-lang.c (d_language_data): Delete la_print_type initializer.
6483 (d_language::print_type): New member function.
6484 * f-lang.c (f_language_data): Delete la_print_type initializer.
6485 (f_language::print_type): New member function.
6486 * go-lang.c (go_language_data): Delete la_print_type initializer.
6487 (go_language::print_type): New member function.
6488 * language.c (unk_lang_print_type): Delete.
6489 (unknown_language_data): Delete la_print_type initializer.
6490 (unknown_language::print_type): New member function.
6491 (auto_language_data): Delete la_print_type initializer.
6492 (auto_language::print_type): New member function.
6493 * language.h (language_data): Delete la_print_type field.
6494 (language_defn::print_type): New function.
6495 (LA_PRINT_TYPE): Update.
6496 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6497 (m2_language::print_type): New member function.
6498 * objc-lang.c (objc_language_data): Delete la_print_type
6499 initializer.
6500 (objc_language::print_type): New member function.
6501 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6502 to opencl_language::print_type.
6503 (opencl_language_data): Delete la_print_type initializer.
6504 (opencl_language::print_type): New member function, implementation
6505 from opencl_print_type.
6506 * p-lang.c (pascal_language_data): Delete la_print_type
6507 initializer.
6508 (pascal_language::print_type): New member function.
6509 * rust-lang.c (rust_print_type): Delete, implementation moved to
6510 rust_language::print_type.
6511 (rust_language_data): Delete la_print_type initializer.
6512 (rust_language::print_type): New member function, implementation
6513 from rust_print_type.
6514
6f827019
AB
65152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6516
6517 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6518 implementation moves to...
6519 (ada_language::sniff_from_mangled_name): ...here. Update return
6520 type.
6521 (ada_language_data): Delete la_sniff_from_mangled_name
6522 initializer.
6523 * c-lang.c (c_language_data): Likewise.
6524 (cplus_language_data): Likewise.
6525 (cplus_language::sniff_from_mangled_name): New member function,
6526 implementation taken from gdb_sniff_from_mangled_name.
6527 (asm_language_data): Delete la_sniff_from_mangled_name
6528 initializer.
6529 (minimal_language_data): Likewise.
6530 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6531 implementation moves to cplus_language::sniff_from_mangled_name.
6532 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6533 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6534 moves to...
6535 (d_language::sniff_from_mangled_name): ...here.
6536 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6537 * f-lang.c (f_language_data): Likewise.
6538 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6539 moves to...
6540 (go_language::sniff_from_mangled_name): ...here.
6541 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6542 * language.c (language_sniff_from_mangled_name): Delete.
6543 (unknown_language_data): Delete la_sniff_from_mangled_name
6544 initializer.
6545 (auto_language_data): Likewise.
6546 * language.h (language_data): Delete la_sniff_from_mangled_name
6547 field.
6548 (language_defn::sniff_from_mangled_name): New function.
6549 (language_sniff_from_mangled_name): Delete declaration.
6550 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6551 field.
6552 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6553 implementation moves to...
6554 (objc_language::sniff_from_mangled_name): ...here.
6555 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6556 * opencl-lang.c (opencl_language_data): Likewise.
6557 * p-lang.c (pascal_language_data): Likewise.
6558 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6559 implementation moves to...
6560 (rust_language::sniff_from_mangled_name): ...here.
6561 (rust_language_data): Delete la_sniff_from_mangled_name
6562 initializer.
6563 * symtab.c (symbol_find_demangled_name): Call
6564 sniff_from_mangled_name member function.
6565
fb8006fd
AB
65662020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6567
6568 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6569 initializer.
6570 * c-lang.c (c_language_data): Likewise.
6571 (cplus_language_data): Likewise.
6572 (cplus_language::search_name_hash): New member function.
6573 (asm_language_data): Delete la_search_name_hash initializer.
6574 (minimal_language_data): Likewise.
6575 * d-lang.c (d_language_data): Likewise.
6576 * dictionary.c (default_search_name_hash): Rename to...
6577 (language_defn::search_name_hash): ...this.
6578 * f-lang.c (f_language_data): Likewise.
6579 (f_language::search_name_hash): New member function.
6580 * go-lang.c (go_language_data): Delete la_search_name_hash
6581 initializer.
6582 * language.c (unknown_language_data): Likewise.
6583 (auto_language_data): Likewise.
6584 * language.h (struct language_data): Delete la_search_name_hash
6585 field.
6586 (language_defn::search_name_hash): Declare new member function.
6587 (default_search_name_hash): Delete declaration.
6588 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6589 initializer.
6590 * objc-lang.c (objc_language_data): Likewise.
6591 * opencl-lang.c (opencl_language_data): Likewise.
6592 * p-lang.c (pascal_language_data): Likewise.
6593 * rust-lang.c (rust_language_data): Likewise.
6594 * symtab.c (search_name_hash): Update call.
6595
8e25bafe
AB
65962020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6597
6598 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6599 initializer.
6600 * c-lang.c (class compile_instance): Declare.
6601 (c_language_data): Delete la_get_compile_instance initializer.
6602 (c_language::get_compile_instance): New member function.
6603 (cplus_language_data): Delete la_get_compile_instance initializer.
6604 (cplus_language::get_compile_instance): New member function.
6605 (asm_language_data): Delete la_get_compile_instance initializer.
6606 (minimal_language_data): Likewise.
6607 * c-lang.h (c_get_compile_context): Update comment.
6608 (cplus_get_compile_context): Update comment.
6609 * compile/compile.c (compile_to_object): Update calls, don't rely
6610 on function pointer being NULL.
6611 * d-lang.c (d_language_data): Delete la_get_compile_instance
6612 initializer.
6613 * f-lang.c (f_language_data): Likewise.
6614 * go-lang.c (go_language_data): Likewise.
6615 * language.c (unknown_language_data): Likewise.
6616 (auto_language_data): Likewise.
6617 * language.h (language_data): Delete la_get_compile_instance field.
6618 (language_defn::get_compile_instance): New member function.
6619 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6620 initializer.
6621 * objc-lang.c (objc_language_data): Likewise.
6622 * opencl-lang.c (opencl_language_data): Likewise.
6623 * p-lang.c (pascal_language_data): Likewise.
6624 * rust-lang.c (rust_language_data): Likewise.
6625
4009ee92
AB
66262020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6627
6628 * ada-lang.c (ada_add_all_symbols): Update comment.
6629 (ada_iterate_over_symbols): Delete, move implementation to...
6630 (ada_language::iterate_over_symbols): ...here, a new member
6631 function, rewrite to use range based for loop.
6632 (ada_language_data): Delete la_iterate_over_symbols initializer.
6633 * c-lang.c (c_language_data): Likewise.
6634 (cplus_language_data): Likewise.
6635 (asm_language_data): Likewise.
6636 (minimal_language_data): Likewise.
6637 * d-lang.c (d_language_data): Likewise.
6638 * f-lang.c (f_language_data): Likewise.
6639 * go-lang.c (go_language_data): Likewise.
6640 * language.c (unknown_language_data): Likewise.
6641 (auto_language_data): Likewise.
6642 * language.h (language_data): Delete la_iterate_over_symbols field.
6643 (language_defn::iterate_over_symbols): New member function.
6644 (LA_ITERATE_OVER_SYMBOLS): Update.
6645 * linespec.c (iterate_over_all_matching_symtabs): Update.
6646 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6647 initializer.
6648 * objc-lang.c (objc_language_data): Likewise.
6649 * opencl-lang.c (opencl_language_data): Likewise.
6650 * p-lang.c (pascal_language_data): Likewise.
6651 * rust-lang.c (rust_language_data): Likewise.
6652
54f4ca46
AB
66532020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6654
6655 * ada-lang.c (ada_language_data): Delete
6656 la_lookup_transparent_type initializer.
6657 * c-lang.c (c_language_data): Likewise.
6658 (cplus_language_data): Likewise.
6659 (cplus_language::lookup_transparent_type): New member function.
6660 (asm_language_data): Delete la_lookup_transparent_type
6661 initializer.
6662 (minimal_language_data): Likewise.
6663 * d-lang.c (d_language_data): Likewise.
6664 * f-lang.c (f_language_data): Likewise.
6665 * go-lang.c (go_language_data): Likewise.
6666 * language.c (unknown_language_data): Likewise.
6667 (auto_language_data): Likewise.
6668 * language.h (struct language_data): Delete
6669 la_lookup_transparent_type field.
6670 (language_defn::lookup_transparent_type): New member function.
6671 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6672 initializer.
6673 * objc-lang.c (objc_language_data): Likewise.
6674 * opencl-lang.c (opencl_language_data): Likewise.
6675 * p-lang.c (pascal_language_data): Likewise.
6676 * rust-lang.c (rust_language_data): Likewise.
6677 * symtab.c (symbol_matches_domain): Update call.
6678
1fb314aa
AB
66792020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6680
6681 * ada-lang.c (ada_language_arch_info): Delete function, move
6682 implementation to...
6683 (ada_language::language_arch_info): ...here, a new member
6684 function.
6685 (ada_language_data): Delete la_language_arch_info.
6686 * c-lang.c (c_language_data): Likewise.
6687 (c_language::language_arch_info): New member function.
6688 (cplus_language_arch_info): Delete function, move
6689 implementation to...
6690 (cplus_language::language_arch_info): ...here, a new member
6691 function.
6692 (cplus_language_data): Delete la_language_arch_info.
6693 (asm_language_data): Likewise.
6694 (asm_language::language_arch_info): New member function.
6695 (minimal_language_data): Delete la_language_arch_info.
6696 (minimal_language::language_arch_info): New member function.
6697 * d-lang.c (d_language_arch_info): Delete function, move
6698 implementation to...
6699 (d_language::language_arch_info): ...here, a new member
6700 function.
6701 (d_language_data): Delete la_language_arch_info.
6702 * f-lang.c (f_language_arch_info): Delete function, move
6703 implementation to...
6704 (f_language::language_arch_info): ...here, a new member
6705 function.
6706 (f_language_data): Delete la_language_arch_info.
6707 * go-lang.c (go_language_arch_info): Delete function, move
6708 implementation to...
6709 (go_language::language_arch_info): ...here, a new member
6710 function.
6711 (go_language_data): Delete la_language_arch_info.
6712 * language.c (unknown_language_data): Likewise.
6713 (unknown_language::language_arch_info): New member function.
6714 (auto_language_data): Delete la_language_arch_info.
6715 (auto_language::language_arch_info): New member function.
6716 (language_gdbarch_post_init): Update call to
6717 la_language_arch_info.
6718 * language.h (language_data): Delete la_language_arch_info
6719 function pointer.
6720 (language_defn::language_arch_info): New function.
6721 * m2-lang.c (m2_language_arch_info): Delete function, move
6722 implementation to...
6723 (m2_language::language_arch_info): ...here, a new member
6724 function.
6725 (m2_language_data): Delete la_language_arch_info.
6726 * objc-lang.c (objc_language_arch_info): Delete function, move
6727 implementation to...
6728 (objc_language::language_arch_info): ...here, a new member
6729 function.
6730 (objc_language_data): Delete la_language_arch_info.
6731 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6732 implementation to...
6733 (opencl_language::language_arch_info): ...here, a new member
6734 function.
6735 (opencl_language_data): Delete la_language_arch_info.
6736 * p-lang.c (pascal_language_arch_info): Delete function, move
6737 implementation to...
6738 (pascal_language::language_arch_info): ...here, a new member
6739 function.
6740 (pascal_language_data): Delete la_language_arch_info.
6741 * rust-lang.c (rust_language_arch_info): Delete function, move
6742 implementation to...
6743 (rust_language::language_arch_info): ...here, a new member
6744 function.
6745 (rust_language_data): Delete la_language_arch_info.
6746
48448202
AB
67472020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6748
6749 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6750 initializer.
6751 * c-lang.c (c_language_data): Likewise.
6752 (cplus_language_data): Likewise.
6753 (cplus_language::pass_by_reference_info): New method.
6754 (asm_language_data): Delete la_pass_by_reference initializer.
6755 (minimal_language_data): Likewise.
6756 * cp-abi.c (cp_pass_by_reference): Remove use of
6757 default_pass_by_reference.
6758 * d-lang.c (d_language_data): Likewise.
6759 * f-lang.c (f_language_data): Likewise.
6760 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6761 default_pass_by_reference.
6762 * go-lang.c (go_language_data): Likewise.
6763 * language.c (language_pass_by_reference): Update.
6764 (default_pass_by_reference): Delete.
6765 (unknown_language_data): Delete la_pass_by_reference
6766 initializer.
6767 (auto_language_data): Likewise.
6768 * language.h (struct language_data): Delete la_pass_by_reference
6769 field.
6770 (language_defn::pass_by_reference_info): New member function.
6771 (default_pass_by_reference): Delete declaration.
6772 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6773 initializer.
6774 * objc-lang.c (objc_language_data): Likewise.
6775 * opencl-lang.c (opencl_language_data): Likewise.
6776 * p-lang.c (pascal_language_data): Likewise.
6777 * rust-lang.c (rust_language_data): Likewise.
6778
15e5fd35
AB
67792020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6780
6781 * ada-lang.c (ada_read_var_value): Delete function, move
6782 implementation to...
6783 (ada_language::read_var_value): ...here.
6784 (ada_language_data): Delete la_read_var_value initializer.
6785 * c-lang.c (c_language_data): Likewise.
6786 (cplus_language_data): Likewise.
6787 (minimal_language_data): Likewise.
6788 * d-lang.c (d_language_data): Likewise.
6789 * f-lang.c (f_language_data): Likewise.
6790 * findvar.c (default_read_var_value): Rename to...
6791 (language_defn::read_var_value): ...this.
6792 * findvar.c (read_var_value): Update header comment, and change to
6793 call member function instead of function pointer.
6794 * go-lang.c (go_language_data): Likewise.
6795 * language.c (unknown_language_data): Delete la_read_var_value
6796 initializer.
6797 (auto_language_data): Likewise.
6798 * language.h (struct language_data): Delete la_read_var_value
6799 field.
6800 (language_defn::read_var_value): New member function.
6801 (default_read_var_value): Delete declaration.
6802 * m2-lang.c (m2_language_data): Delete la_read_var_value
6803 initializer.
6804 * objc-lang.c (objc_language_data): Likewise.
6805 * opencl-lang.c (opencl_language_data): Likewise.
6806 * p-lang.c (pascal_language_data): Likewise.
6807 * rust-lang.c (rust_language_data): Likewise.
6808 * value.h (default_read_var_value): Delete declaration.
6809
5bd40f2a
AB
68102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6811
6812 * ada-lang.c (ada_print_array_index): Delete function, move
6813 implementation to...
6814 (ada_language::print_array_index): ...here.
6815 (ada_language_data): Delete la_print_array_index initializer.
6816 * c-lang.c (c_language_data): Likewise.
6817 (cplus_language_data): Likewise.
6818 (minimal_language_data): Likewise.
6819 * d-lang.c (d_language_data): Likewise.
6820 * f-lang.c (f_language_data): Likewise.
6821 * go-lang.c (go_language_data): Likewise.
6822 * language.c (default_print_array_index): Delete function, move
6823 implementation to...
6824 (language_defn::print_array_index): ...here.
6825 (unknown_language_data): Delete la_print_array_index initializer.
6826 (auto_language_data): Likewise.
6827 * language.h (struct language_data): Delete la_print_array_index
6828 field.
6829 (language_defn::print_array_index): New member function.
6830 (LA_PRINT_ARRAY_INDEX): Update.
6831 (default_print_array_index): Delete declaration.
6832 * m2-lang.c (m2_language_data): Delete la_print_array_index
6833 initializer.
6834 * objc-lang.c (objc_language_data): Likewise.
6835 * opencl-lang.c (opencl_language_data): Likewise.
6836 * p-lang.c (pascal_language_data): Likewise.
6837 * rust-lang.c (rust_language_data): Likewise.
6838
0874fd07
AB
68392020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6840
6841 * gdb/ada-lang.c (ada_language_defn): Convert to...
6842 (ada_language_data): ...this.
6843 (class ada_language): New class.
6844 (ada_language_defn): New static global.
6845 * gdb/c-lang.c (c_language_defn): Convert to...
6846 (c_language_data): ...this.
6847 (class c_language): New class.
6848 (c_language_defn): New static global.
6849 (cplus_language_defn): Convert to...
6850 (cplus_language_data): ...this.
6851 (class cplus_language): New class.
6852 (cplus_language_defn): New static global.
6853 (asm_language_defn): Convert to...
6854 (asm_language_data): ...this.
6855 (class asm_language): New class.
6856 (asm_language_defn): New static global.
6857 (minimal_language_defn): Convert to...
6858 (minimal_language_data): ...this.
6859 (class minimal_language): New class.
6860 (minimal_language_defn): New static global.
6861 * gdb/d-lang.c (d_language_defn): Convert to...
6862 (d_language_data): ...this.
6863 (class d_language): New class.
6864 (d_language_defn): New static global.
6865 * gdb/f-lang.c (f_language_defn): Convert to...
6866 (f_language_data): ...this.
6867 (class f_language): New class.
6868 (f_language_defn): New static global.
6869 * gdb/go-lang.c (go_language_defn): Convert to...
6870 (go_language_data): ...this.
6871 (class go_language): New class.
6872 (go_language_defn): New static global.
6873 * gdb/language.c (unknown_language_defn): Remove declaration.
6874 (current_language): Initialize to nullptr, real initialization is
6875 moved to _initialize_language.
6876 (languages): Delete global.
6877 (language_defn::languages): Define.
6878 (set_language_command): Use language_defn::languages.
6879 (set_language): Likewise.
6880 (range_error): Likewise.
6881 (language_enum): Likewise.
6882 (language_def): Likewise.
6883 (add_set_language_command): Use language_def::languages for the
6884 language list, and language_def to lookup language pointers.
6885 (skip_language_trampoline): Use language_defn::languages.
6886 (unknown_language_defn): Convert to...
6887 (unknown_language_data): ...this.
6888 (class unknown_language): New class.
6889 (unknown_language_defn): New static global.
6890 (auto_language_defn): Convert to...
6891 (auto_language_data): ...this.
6892 (class auto_language): New class.
6893 (auto_language_defn): New static global.
6894 (language_gdbarch_post_init): Use language_defn::languages.
6895 (_initialize_language): Initialize current_language.
6896 * gdb/language.h (struct language_defn): Rename to...
6897 (struct language_data): ...this.
6898 (struct language_defn): New.
6899 (auto_language_defn): Delete.
6900 (unknown_language_defn): Delete.
6901 (minimal_language_defn): Delete.
6902 (ada_language_defn): Delete.
6903 (asm_language_defn): Delete.
6904 (c_language_defn): Delete.
6905 (cplus_language_defn): Delete.
6906 (d_language_defn): Delete.
6907 (f_language_defn): Delete.
6908 (go_language_defn): Delete.
6909 (m2_language_defn): Delete.
6910 (objc_language_defn): Delete.
6911 (opencl_language_defn): Delete.
6912 (pascal_language_defn): Delete.
6913 (rust_language_defn): Delete.
6914 * gdb/m2-lang.c (m2_language_defn): Convert to...
6915 (m2_language_data): ...this.
6916 (class m2_language): New class.
6917 (m2_language_defn): New static global.
6918 * gdb/objc-lang.c (objc_language_defn): Convert to...
6919 (objc_language_data): ...this.
6920 (class objc_language): New class.
6921 (objc_language_defn): New static global.
6922 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6923 (opencl_language_data): ...this.
6924 (class opencl_language): New class.
6925 (opencl_language_defn): New static global.
6926 * gdb/p-lang.c (pascal_language_defn): Convert to...
6927 (pascal_language_data): ...this.
6928 (class pascal_language): New class.
6929 (pascal_language_defn): New static global.
6930 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6931 language pointer, update comment format.
6932 * gdb/rust-lang.c (rust_language_defn): Convert to...
6933 (rust_language_data): ...this.
6934 (class rust_language): New class.
6935 (rust_language_defn): New static global.
6936
1313c56e
AB
69372020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6938
6939 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6940 member variable.
6941 <m_stmt_at_address>: New member variable.
6942 (lnp_state_machine::record_line): Don't record some lines, update
6943 tracking of is_stmt at the same address.
6944 (lnp_state_machine::lnp_state_machine): Initialise new member
6945 variables.
6946
b7ed9f3d
ST
69472020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6948
6949 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6950 "-include gnu-nat-mig.h".
6951 * gnu-nat-mig.h: New file.
6952 * gnu-nat.c: Include "gnu-nat-mig.h".
6953 (exc_server, msg_reply_server, notify_server,
6954 process_reply_server): Remove declarations.
6955
14a8ad62
ST
69562020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6957
6958 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6959 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6960 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6961 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6962 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6963 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6964 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6965 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6966 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6967 to gnu_nat_target class.
6968 * gnu-nat.c: Likewise.
6969 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6970 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6971 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6972 object.
6973 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6974 instead of `gnu_target'.
6975
0af5e106
ST
69762020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6977
6978 * i386-gnu-tdep.c: Include "gdbcore.h"
6979 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6980 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6981 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6982 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6983 i386_gnu_sigcontext_addr): New functions
6984 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6985 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6986 tdep.
6987
078f2fc9
ST
69882020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6989
6990 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6991 before fork_inferior call. Avoid calling it if target_is_pushed returns
6992 true.
6993
53dff92c
ST
69942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6995
6996 * gnu-nat.h (gnu_target): New variable declaration.
6997 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6998 gnu_target.
6999 * gnu-nat.c (gnu_target): New variable.
7000 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7001 add_thread_silent, and add_thread calls.
7002 (gnu_nat_target::create_inferior): Pass gnu_target to
7003 add_thread_silent, thread_change_ptid call.
7004 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7005 call.
7006
5a8b8627
ST
70072020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7008
7009 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7010 (gnu_nat_target::find_memory_regions): Remove unused
7011 `old_address' variable.
7012
366f550a
ST
70132020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7014
7015 * gnu-nat.c: Include "gdbarch.h".
7016
f14871bf
ST
70172020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7018
7019 * reply_mig_hack.awk (Error return): Cast function through
7020 void *, to bypass compiler function call check.
7021
c6887cfb
ST
70222020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7023
7024 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7025 $(srcdir)/reply_mig_hack.awk.
7026
6930bffe
ST
70272020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7028
7029 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7030
112c22ed
JG
70312020-05-30 Jonny Grant <jg@jguk.org>
7032
7033 * configure.ac (ACX_BUGURL): change bug URL to https.
7034
f68f85b5
PA
70352020-05-30 Pedro Alves <palves@redhat.com>
7036
7037 * cp-support.c (replace_typedefs_template): New.
7038 (replace_typedefs_qualified_name): Handle
7039 DEMANGLE_COMPONENT_TEMPLATE.
7040
976ca316
SM
70412020-05-29 Simon Marchi <simon.marchi@efficios.com>
7042
7043 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7044 dwarf2/index-cache.h, dwarf2/index-write.c,
7045 dwarf2/index-write.h, dwarf2/line-header.c,
7046 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7047 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7048 variables and fields from `dwarf2_per_objfile` to just
7049 `per_objfile` throughout.
7050
989ade05
SM
70512020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7052
7053 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7054 <push_dwarf_reg_entry_value>: Add comment.
7055
c47bae85
KB
70562020-05-28 Kevin Buettner <kevinb@redhat.com>
7057 Keith Seitz <keiths@redhat.com>
7058
7059 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7060 instead of PyEval_ReleaseLock.
7061 (class gdbpy_gil): Move to earlier in file.
7062 (finalize_python): Set gdb_python_initialized.
7063 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7064 when not initialized.
7065
44486dcf
SM
70662020-05-28 Simon Marchi <simon.marchi@efficios.com>
7067
7068 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7069 <push_dwarf_reg_entry_value>: Remove assert. Override
7070 per_objfile with caller_per_objfile.
7071
f030440d
TV
70722020-05-28 Tom de Vries <tdevries@suse.de>
7073
7074 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7075 PR gold/15646 workaround to symbol kind "type".
7076
f0fbb768
TT
70772020-05-27 Tom Tromey <tromey@adacore.com>
7078
7079 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7080
af0b2a3e
TT
70812020-05-27 Tom Tromey <tromey@adacore.com>
7082
7083 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7084 Use htab_find_with_hash.
7085 <add_abbrev>: Remove "abbrev_number" parameter.
7086 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7087 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7088 (hash_abbrev): Add comment.
7089 (abbrev_table::lookup_abbrev): Move to header file.
7090 (abbrev_table::read): Update.
7091
7d00ffec
TT
70922020-05-27 Tom Tromey <tromey@adacore.com>
7093
7094 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7095 method.
7096 <canonical_name>: New member.
7097 <raw_name>: Rename from "name".
7098 (partial_die_info): Initialize canonical_name.
7099 (scan_partial_symbols): Check raw_name.
7100 (partial_die_parent_scope, partial_die_full_name)
7101 (add_partial_symbol, add_partial_subprogram)
7102 (add_partial_enumeration, load_partial_dies): Use "name" method.
7103 (partial_die_info::name): New method.
7104 (partial_die_info::read, guess_partial_die_structure_name)
7105 (partial_die_info::fixup): Update.
7106
697bba18
TT
71072020-05-27 Tom Tromey <tromey@adacore.com>
7108
7109 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7110 <get_ref_die_offset>: Inline.
7111 <get_ref_die_offset_complaint>: New method.
7112 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7113 (attribute::get_ref_die_offset_complaint): Rename from
7114 get_ref_die_offset. Just issue complaint.
7115
c17ace43
HD
71162020-05-27 Hannes Domani <ssbssa@yahoo.de>
7117
7118 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7119
96445f0b
HD
71202020-05-27 Hannes Domani <ssbssa@yahoo.de>
7121
7122 * exec.c (exec_file_attach): Use errno value of first openp failure.
7123
ac637ec3
HD
71242020-05-27 Hannes Domani <ssbssa@yahoo.de>
7125
7126 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7127 Don't close thread handle.
7128
17ee85fc
TT
71292020-05-27 Tom Tromey <tom@tromey.com>
7130 Simon Marchi <simon.marchi@efficios.com>
7131
7132 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7133 shared_ptr.
7134 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7135 member.
7136 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7137 dwarf2_per_bfd_objfile_data_key>: New globals.
7138 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7139 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7140 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7141 shared.
7142 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7143 short-circuit when sharing.
7144 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7145 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7146
39b16f87
SM
71472020-05-27 Simon Marchi <simon.marchi@efficios.com>
7148
7149 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7150 to...
7151 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7152 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7153
fcf23d5b
SM
71542020-05-27 Simon Marchi <simon.marchi@efficios.com>
7155
7156 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7157 build_name_components, find_name_components_bounds>:
7158 Add per_objfile parameter.
7159 (struct mapped_index) <symbol_name_at>: Likewise.
7160 (struct mapped_debug_names): Remove constructor.
7161 <dwarf2_per_objfile>: Remove field.
7162 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7163 (mapped_index_base::find_name_components_bounds,
7164 mapped_index_base::build_name_components,
7165 dw2_expand_symtabs_matching_symbol): Likewise.
7166 (class mock_mapped_index) <symbol_name_at>: Likewise.
7167 (check_match): Likewise.
7168 (check_find_bounds_finds): Likewise.
7169 (test_mapped_index_find_name_component_bounds): Update.
7170 (CHECK_MATCH): Update.
7171 (dw2_expand_symtabs_matching): Update.
7172 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7173 per_objfile parameter.
7174 <find_vec_in_debug_names>: Likewise.
7175 <m_per_objfile>: New field.
7176 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7177 parameter.
7178 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7179 (dw2_debug_names_iterator::next): Update.
7180 (dw2_debug_names_lookup_symbol): Update.
7181 (dw2_debug_names_expand_symtabs_for_function): Update.
7182 (dw2_debug_names_map_matching_symbols): Update.
7183 (dw2_debug_names_expand_symtabs_matching): Update.
7184 (dwarf2_read_debug_names): Update.
7185
7188ed02
SM
71862020-05-27 Simon Marchi <simon.marchi@efficios.com>
7187
7188 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7189 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7190 move to dwarf2_per_objfile.
7191 <read_in_chain>: Remove.
7192 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7193 remove_all_cus, age_comp_units>: New methods.
7194 <m_dwarf2_cus>: New member.
7195 (struct dwarf2_per_cu_data) <cu>: Remove.
7196 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7197 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7198 moved to methods of dwarf2_per_objfile.
7199 (dwarf2_clear_marks): Remove.
7200 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7201 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7202 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7203 (dwarf2_per_objfile::remove_all_cus): New.
7204 (class free_cached_comp_units) <~free_cached_comp_units>:
7205 Update.
7206 (load_cu): Update.
7207 (dw2_do_instantiate_symtab): Adjust.
7208 (fill_in_sig_entry_from_dwo_entry): Adjust.
7209 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7210 (cutu_reader::cutu_reader): Likewise.
7211 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7212 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7213 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7214 and dwarf2_per_objfile::age_comp_units.
7215 (load_partial_comp_unit): Update.
7216 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7217 (process_queue): Likewise.
7218 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7219 backlink.
7220 (dwarf2_read_addr_index): Likewise.
7221 (follow_die_offset): Likewise.
7222 (dwarf2_fetch_die_loc_sect_off): Likewise.
7223 (dwarf2_fetch_constant_bytes): Likewise.
7224 (dwarf2_fetch_die_type_sect_off): Likewise.
7225 (follow_die_sig_1): Likewise.
7226 (load_full_type_unit): Likewise.
7227 (read_signatured_type): Likewise.
7228 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7229 (dwarf2_cu::~dwarf2_cu): Remove.
7230 (dwarf2_per_objfile::get_cu): New.
7231 (dwarf2_per_objfile::set_cu): New.
7232 (age_cached_comp_units): Rename to...
7233 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7234 to std::unordered_map.
7235 (free_one_cached_comp_unit): Rename to...
7236 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7237 to std::unordered_map.
7238 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7239 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7240 a dwarf2_per_objfile in data.
7241 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7242 (dwarf2_clear_marks): Remove.
7243
2e671100
SM
72442020-05-27 Simon Marchi <simon.marchi@efficios.com>
7245
7246 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7247 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7248 (init_tu_and_read_dwo_dies): Likewise.
7249 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7250 (cutu_reader::cutu_reader): Likewise.
7251 (load_partial_comp_unit): Likewise.
7252 (process_psymtab_comp_unit): Update.
7253 (build_type_psymtabs_1): Update.
7254 (process_skeletonless_type_unit): Update.
7255 (load_full_comp_unit): Update.
7256 (find_partial_die): Update.
7257 (dwarf2_read_addr_index): Update.
7258 (read_signatured_type): Update.
7259
2e6a9f79
SM
72602020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7261
7262 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7263 m_header_read_in>: New fields.
7264 <get_header>: New method.
7265 * dwarf2/read.c (per_cu_header_read_in): Remove.
7266 (dwarf2_per_cu_data::get_header): New.
7267 (dwarf2_per_cu_data::addr_size): Update.
7268 (dwarf2_per_cu_data::offset_size): Update.
7269 (dwarf2_per_cu_data::ref_addr_size): Update.
7270
1b555f17
SM
72712020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7272
7273 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7274 (dw2_do_instantiate_symtab): Update.
7275 (queue_and_load_all_dwo_tus): Change parameter from
7276 dwarf2_per_cu_data to dwarf2_cu.
7277 (dwarf2_fetch_die_loc_sect_off): Update.
7278 (dwarf2_fetch_constant_bytes): Update.
7279 (dwarf2_fetch_die_type_sect_off): Update.
7280
8fc0b21d
SM
72812020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7282
7283 * dwarf2/read.c (process_full_comp_unit,
7284 process_full_type_unit): Remove per_cu, per_objfile paramters.
7285 Add dwarf2_cu parameter.
7286 (process_queue): Update.
7287
168c9250
SM
72882020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7289
7290 * dwarf2/read.c (create_cu_from_index_list): Replace
7291 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7292 (create_cus_from_index_list): Likewise.
7293 (create_cus_from_index): Likewise.
7294 (create_signatured_type_table_from_index): Likewise.
7295 (create_cus_from_debug_names_list): Likewise.
7296 (create_cus_from_debug_names): Likewise.
7297 (dwarf2_read_gdb_index): Update.
7298 (dwarf2_read_debug_names): Update.
7299
e286671b
TT
73002020-05-27 Tom Tromey <tom@tromey.com>
7301 Simon Marchi <simon.marchi@efficios.com>
7302
7303 * dwarf2/read.h (struct dwarf2_per_objfile)
7304 <get_type_for_signatured_type, set_type_for_signatured_type>:
7305 New methods.
7306 <m_type_map>: New member.
7307 (struct signatured_type) <type>: Remove.
7308 * dwarf2/read.c
7309 (dwarf2_per_objfile::get_type_for_signatured_type,
7310 dwarf2_per_objfile::set_type_for_signatured_type): New.
7311 (get_signatured_type): Use new methods.
7312
8adb8487
TT
73132020-05-27 Tom Tromey <tom@tromey.com>
7314 Simon Marchi <simon.marchi@efficios.com>
7315
7316 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7317 (struct dwarf2_per_objfile) <type_units>: New member.
7318 <get_type_unit_group_unshareable>: New method.
7319 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7320 num_symtabs, symtabs>: Remove; move to
7321 type_unit_group_unshareable.
7322 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7323 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7324 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7325
127bbf4b
SM
73262020-05-27 Simon Marchi <simon.marchi@efficios.com>
7327
7328 * dwarf2/read.h (struct dwarf2_per_cu_data):
7329 <dwarf2_per_objfile>: Remove.
7330 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7331 dwarf2_per_objfile.
7332 (create_signatured_type_table_from_index): Likewise.
7333 (create_signatured_type_table_from_debug_names): Likewise.
7334 (create_debug_type_hash_table): Likewise.
7335 (fill_in_sig_entry_from_dwo_entry): Likewise.
7336 (create_type_unit_group): Likewise.
7337 (read_comp_units_from_section): Likewise.
7338 (create_cus_hash_table): Likewise.
7339
f6e649dd
SM
73402020-05-27 Simon Marchi <simon.marchi@efficios.com>
7341
7342 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7343 dwarf2_per_cu_data::dwarf2_per_objfile.
7344 (compute_compunit_symtab_includes): Likewise.
7345 (dwarf2_cu::start_symtab): Likewise.
7346
aa66c379
SM
73472020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7348
7349 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7350 parameter.
7351 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7352 (read_namespace_alias): Update.
7353 (lookup_die_type): Update.
7354 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7355 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7356 Update.
7357 (disassemble_dwarf_expression): Update.
7358
120ce1b5
SM
73592020-05-27 Simon Marchi <simon.marchi@efficios.com>
7360
7361 * dwarf2/read.h (struct dwarf2_queue_item): Add
7362 dwarf2_per_objfile parameter, assign new parameter.
7363 <per_objfile>: New field.
7364 * dwarf2/read.c (free_one_cached_comp_unit): Add
7365 dwarf2_per_objfile parameter.
7366 (queue_comp_unit): Likewise.
7367 (dw2_do_instantiate_symtab): Update.
7368 (process_psymtab_comp_unit): Update.
7369 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7370 (process_imported_unit_die): Update.
7371 (queue_and_load_dwo_tu): Update.
7372 (follow_die_offset): Update.
7373 (follow_die_sig_1): Update.
7374
9f47c707
SM
73752020-05-27 Simon Marchi <simon.marchi@efficios.com>
7376
7377 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7378 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7379 (read_call_site_scope): Assign per_objfile.
7380 (dwarf2_per_cu_data::objfile): Remove.
7381 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7382 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7383 dwarf2_per_objfile parameter.
7384 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7385 dwarf2_per_objfile parameter.
7386 (dwarf_expr_reg_to_entry_parameter): Add output
7387 dwarf2_per_objfile parameter.
7388 (locexpr_get_frame_base): Update.
7389 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7390 <push_dwarf_reg_entry_value>: Update.
7391 <call_site_to_target_addr>: Update.
7392 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7393 parameter.
7394 (value_of_dwarf_reg_entry): Update.
7395 (rw_pieced_value): Update.
7396 (indirect_synthetic_pointer): Update.
7397 (dwarf2_evaluate_property): Update.
7398 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7399 parameter.
7400 (locexpr_read_variable): Update.
7401 (locexpr_get_symbol_read_needs): Update.
7402 (loclist_read_variable): Update.
7403
14095eb3
SM
74042020-05-27 Simon Marchi <simon.marchi@efficios.com>
7405
7406 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7407 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7408 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7409 parameter.
7410 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7411 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7412 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7413 parameter.
7414 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7415 sect_variable_value): Add dwarf2_per_objfile parameter.
7416 (class dwarf_evaluate_loc_desc) <dwarf_call,
7417 dwarf_variable_value>: Update.
7418 (fetch_const_value_from_synthetic_pointer): Add
7419 dwarf2_per_objfile parameter.
7420 (fetch_const_value_from_synthetic_pointer): Update.
7421 (coerced_pieced_ref): Update.
7422 (class symbol_needs_eval_context) <dwarf_call,
7423 dwarf_variable_value>: Update.
7424 (dwarf2_compile_expr_to_ax): Update.
7425
3c3cd3d4
SM
74262020-05-27 Simon Marchi <simon.marchi@efficios.com>
7427
7428 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7429 parameter.
7430 (dwarf2_evaluate_loc_desc_full): Update.
7431
82ca3f51
SM
74322020-05-27 Simon Marchi <simon.marchi@efficios.com>
7433
7434 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7435 parameter.
7436 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7437 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7438 dwarf2_per_objfile parameter.
7439 (decode_debug_loc_dwo_addresses): Likewise.
7440 (dwarf2_find_location_expression): Update.
7441 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7442 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7443 parameter.
7444 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7445 parameter.
7446 (locexpr_describe_location_1): Likewise.
7447 (locexpr_describe_location): Update.
7448
4b167ea1
SM
74492020-05-27 Simon Marchi <simon.marchi@efficios.com>
7450
7451 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7452 Remove.
7453 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7454 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7455 (dwarf2_compile_property_to_c): Update.
7456 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7457 use text offset from objfile.
7458 (locexpr_tracepoint_var_ref): Update.
7459 (locexpr_generate_c_location): Update.
7460 (loclist_describe_location): Update.
7461 (loclist_tracepoint_var_ref): Update.
7462 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7463 dwarf2_per_objfile parameter.
7464 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7465 use text offset from objfile.
7466 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7467
89b07335
SM
74682020-05-27 Simon Marchi <simon.marchi@efficios.com>
7469
7470 * dwarf2/expr.h (struct dwarf_expr_context)
7471 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7472 <offset>: Remove.
7473 <per_objfile>: New member.
7474 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7475 dwarf2_per_objfile parameter. Don't set offset, set
7476 per_objfile.
7477 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7478 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7479 a dwarf2_per_objfile object instead of an offset.
7480 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7481 constructor.
7482 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7483 to dwarf2_expr_executor constructor. Don't set offset.
7484 (dwarf2_fetch_cfa_info): Update.
7485 (struct dwarf2_frame_cache) <text_offset>: Remove.
7486 <per_objfile>: New field.
7487 (dwarf2_frame_cache): Update.
7488 (dwarf2_frame_prev_register): Update.
7489 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7490 <dwarf_evaluate_loc_desc>: Add constructor.
7491 (dwarf2_evaluate_loc_desc_full): Update.
7492 (dwarf2_locexpr_baton_eval): Update.
7493 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7494 Add constructor.
7495 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7496
293e7e51
SM
74972020-05-27 Simon Marchi <simon.marchi@efficios.com>
7498
7499 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7500 addr_sized_int_type>: Move to dwarf2_cu.
7501 <int_type>: Move to dwarf2_per_objfile.
7502 (struct dwarf2_per_objfile) <int_type>: Move here.
7503 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7504 addr_sized_int_type>: Move here.
7505 (read_func_scope): Update.
7506 (read_array_type): Update.
7507 (read_tag_string_type): Update.
7508 (attr_to_dynamic_prop): Update.
7509 (dwarf2_per_cu_data::int_type): Rename to...
7510 (dwarf2_per_objfile::int_type): ... this.
7511 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7512 (dwarf2_cu::addr_sized_int_type): ... this.
7513 (read_subrange_type): Update.
7514 (dwarf2_per_cu_data::addr_type): Rename to...
7515 (dwarf2_cu::addr_type): ... this.
7516 (set_die_type): Update.
7517
64874a40
SM
75182020-05-27 Simon Marchi <simon.marchi@efficios.com>
7519
7520 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7521 data through per_cu->cu.
7522
4ab09049
SM
75232020-05-27 Simon Marchi <simon.marchi@efficios.com>
7524
7525 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7526 dwarf2_per_cu_data parameter fo dwarf2_cu.
7527 (lookup_dwo_type_unit): Likewise.
7528 (read_cutu_die_from_dwo): Likewise.
7529 (lookup_dwo_unit): Likewise.
7530 (open_and_init_dwo_file): Likewise.
7531 (lookup_dwo_cutu): Likewise.
7532 (lookup_dwo_comp_unit): Likewise.
7533 (lookup_dwo_type_unit): Likewise.
7534 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7535 (cutu_reader::cutu_reader): Update.
7536
47b14e86
SM
75372020-05-27 Simon Marchi <simon.marchi@efficios.com>
7538
7539 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7540 parameter.
7541 (process_full_type_unit): Likewise.
7542 (process_queue): Update.
7543
43182c09
SM
75442020-05-27 Simon Marchi <simon.marchi@efficios.com>
7545
7546 * dwarf2/read.c (recursively_compute_inclusions): Add
7547 dwarf2_per_objfile parameter.
7548 (compute_compunit_symtab_includes): Likewise.
7549 (process_cu_includes): Update.
7550
7aa104c4
SM
75512020-05-27 Simon Marchi <simon.marchi@efficios.com>
7552
7553 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7554 parameter.
7555 (create_type_unit_group): Update.
7556 (process_psymtab_comp_unit_reader): Update.
7557 (build_type_psymtabs_reader): Update.
7558
e3beb21d
SM
75592020-05-27 Simon Marchi <simon.marchi@efficios.com>
7560
7561 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7562 object through m_this_cu->cu.
7563
d460f660
SM
75642020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7565
7566 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7567 the info parameter.
7568 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7569
ab432490
SM
75702020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7571
7572 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7573 per_objfile parameter.
7574 (load_full_type_unit): Add per_objfile parameter.
7575 (read_signatured_type): Likewise.
7576 (load_full_comp_unit): Likewise.
7577 (load_cu): Likewise.
7578 (dw2_do_instantiate_symtab): Likewise.
7579 (dw2_get_file_names): Likewise.
7580 (dw2_map_symtabs_matching_filename): Update.
7581 (dw_expand_symtabs_matching_file_matcher): Update.
7582 (dw2_map_symbol_filenames): Update.
7583 (process_psymtab_comp_unit): Add per_objfile parameter.
7584 (build_type_psymtabs_1): Update.
7585 (process_skeletonless_type_unit): Update.
7586 (dwarf2_build_psymtabs_hard): Update.
7587 (load_partial_comp_unit): Add per_objfile parameter.
7588 (scan_partial_symbols): Update.
7589 (load_full_comp_unit): Add per_objfile parameter.
7590 (process_imported_unit_die): Update.
7591 (create_cus_hash_table): Update.
7592 (find_partial_die): Update.
7593 (dwarf2_read_addr_index): Update.
7594 (follow_die_offset): Update.
7595 (dwarf2_fetch_die_loc_sect_off): Update.
7596 (dwarf2_fetch_constant_bytes): Update.
7597 (dwarf2_fetch_die_type_sect_off): Update.
7598 (follow_die_sig_1): Update.
7599 (load_full_type_unit): Add per_objfile parameter.
7600 (read_signatured_type): Likewise.
7601
313bad1b
SM
76022020-05-27 Simon Marchi <simon.marchi@efficios.com>
7603
7604 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7605 of objfile_name.
7606
c3699833
SM
76072020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7608
7609 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7610 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7611 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7612 field.
7613 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7614 (create_cus_from_index): Update.
7615 (dwarf2_read_gdb_index): Update.
7616 (create_cus_from_debug_names): Update.
7617 (dwarf2_read_debug_names): Update.
7618 (get_abbrev_section_for_cu): Update.
7619 (create_all_comp_units): Update.
7620 (read_attribute_value): Update.
7621 (get_debug_line_section): Update.
7622 * dwarf2/index-cache.c (index_cache::store): Update.
7623 * dwarf2/index-write.c (save_gdb_index_command): Update.
7624 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7625
1859c670
SM
76262020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7627
7628 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7629 member.
7630 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7631 dwarf2_per_cu_data::per_bfd.
7632 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7633 (create_type_unit_group): Likewise.
7634 (queue_comp_unit): Remove reference to
7635 per_cu->dwarf2_per_objfile.
7636 (maybe_queue_comp_unit): Likewise.
7637 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7638 (create_cus_hash_table): Assign new field.
7639
5e22e966
SM
76402020-05-27 Simon Marchi <simon.marchi@efficios.com>
7641
7642 * dwarf2/read.c: Replace
7643 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7644 dwarf2_cu->per_objfile throughout.
7645
97a1449a
SM
76462020-05-27 Simon Marchi <simon.marchi@efficios.com>
7647
7648 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7649 parameter, don't use per_cu->dwarf2_per_objfile.
7650 (dw2_instantiate_symtab): Likewise.
7651 (dw2_find_last_source_symtab): Update.
7652 (dw2_map_expand_apply): Update.
7653 (dw2_lookup_symbol): Update.
7654 (dw2_expand_symtabs_for_function): Update.
7655 (dw2_expand_all_symtabs): Update.
7656 (dw2_expand_symtabs_with_fullname): Update.
7657 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7658 don't use per_cu->dwarf2_per_objfile.
7659 (dw2_expand_marked_cus): Update.
7660 (dw2_find_pc_sect_compunit_symtab): Update.
7661 (dw2_debug_names_lookup_symbol): Update.
7662 (dw2_debug_names_expand_symtabs_for_function): Update.
7663 (dw2_debug_names_map_matching_symbols): Update.
7664 (dwarf2_psymtab::expand_psymtab): Update.
7665
9e021579
SM
76662020-05-27 Simon Marchi <simon.marchi@efficios.com>
7667
7668 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7669 <per_objfile>: New member.
7670 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7671 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7672 call to dwarf2_cu.
7673 (cutu_reader::cutu_reader): Update.
7674 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7675
ae090bdb
SM
76762020-05-27 Simon Marchi <simon.marchi@efficios.com>
7677
7678 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7679 struct dwarf2_per_objfile.
7680 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7681 dwarf2_per_bfd.
7682 * dwarf2/read.c (set_die_type): Update.
7683 (get_die_type_at_offset): Update.
7684
af758d11
SM
76852020-05-27 Tom Tromey <tom@tromey.com>
7686 Simon Marchi <simon.marchi@efficios.com>
7687
7688 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7689 method.
7690 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7691 get_symtab, set_symtab>: New methods.
7692 <m_symtabs>: New field.
7693 (struct dwarf2_psymtab): Derive from partial_symtab.
7694 <readin_p, get_compunit_symtab>: Declare methods.
7695 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7696 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7697 New methods.
7698 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7699 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7700 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7701 (dw2_symtab_iter_next, dw2_print_stats)
7702 (dw2_expand_symtabs_with_fullname)
7703 (dw2_expand_symtabs_matching_one)
7704 (dw_expand_symtabs_matching_file_matcher)
7705 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7706 (dw2_debug_names_iterator::next)
7707 (dw2_debug_names_map_matching_symbols)
7708 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7709 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7710 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7711 New methods.
7712 (get_compunit_symtab, process_full_comp_unit)
7713 (process_full_type_unit): Update.
7714 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7715
5989a64e
SM
77162020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7717
7718 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7719 then introduce a new dwarf2_per_objfile type.
7720 <read_line_string>: Move to the new dwarf2_per_objfile type.
7721 <objfile>: Likewise.
7722 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7723 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7724 dwarf2_per_objfile->per_bfd.
7725 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7726 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7727 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7728 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7729 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7730 (dwarf2_per_objfile::locate_sections): Rename to...
7731 (dwarf2_per_bfd::locate_sections): ... this.
7732 (dwarf2_per_objfile::get_cutu): Rename to...
7733 (dwarf2_per_bfd::get_cutu): ... this.
7734 (dwarf2_per_objfile::get_cu): Rename to...
7735 (dwarf2_per_bfd::get_cu): ... this.
7736 (dwarf2_per_objfile::get_tu): Rename to...
7737 (dwarf2_per_bfd::get_tu): ... this.
7738 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7739 (dwarf2_per_bfd::allocate_per_cu): ... this.
7740 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7741 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7742 (get_gdb_index_contents_ftype): Change parameter from
7743 dwarf2_per_objfile to dwarf2_per_bfd.
7744 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7745 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7746
a50264ba
TT
77472020-05-27 Tom Tromey <tom@tromey.com>
7748 Simon Marchi <simon.marchi@efficios.com>
7749
7750 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7751 (allocate_piece_closure): Set "per_objfile" member.
7752 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7753 (locexpr_describe_location, loclist_describe_location): Use new
7754 member.
7755 * dwarf2/read.c (read_call_site_scope)
7756 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7757 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7758 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7759 handle_data_member_location): Set per_objfile member.
7760 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7761 member.
7762 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7763
d3473f0c
TT
77642020-05-27 Tom Tromey <tom@tromey.com>
7765
7766 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7767 allocate_signatured_type>: Declare new methods.
7768 <m_num_psymtabs>: New member.
7769 (struct dwarf2_per_cu_data) <index>: New member.
7770 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7771 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7772 (create_cu_from_index_list): Use allocate_per_cu.
7773 (create_signatured_type_table_from_index)
7774 (create_signatured_type_table_from_debug_names)
7775 (create_debug_type_hash_table, add_type_unit)
7776 (read_comp_units_from_section): Use allocate_signatured_type.
7777
5717c425
TT
77782020-05-27 Tom Tromey <tom@tromey.com>
7779
7780 * psymtab.c (partial_map_expand_apply)
7781 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7782 (psym_lookup_global_symbol_language)
7783 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7784 (psym_print_stats, psym_expand_symtabs_for_function)
7785 (psym_map_symbol_filenames, psym_map_matching_symbols)
7786 (psym_expand_symtabs_matching)
7787 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7788 (maintenance_check_psymtabs): Update.
7789 * psympriv.h (struct partial_symtab) <readin_p,
7790 get_compunit_symtab>: Add objfile parameter.
7791 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7792 Likewise.
7793 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7794 get_compunit_symtab>: Likewise.
7795 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7796
45940949
TT
77972020-05-27 Tom Tromey <tom@tromey.com>
7798
7799 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7800 member.
7801 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7802 (create_cu_from_index_list)
7803 (create_signatured_type_table_from_index)
7804 (create_signatured_type_table_from_debug_names)
7805 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7806 (dwarf2_create_include_psymtab)
7807 (create_debug_type_hash_table, add_type_unit)
7808 (create_type_unit_group, read_comp_units_from_section)
7809 (dwarf2_compute_name, create_cus_hash_table)
7810 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7811 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7812 obstack.
7813 (dw2_get_real_path): Likewise. Change argument to
7814 dwarf2_per_objfile.
7815
f8c6d152
LM
78162020-05-27 Luis Machado <luis.machado@linaro.org>
7817
7818 PR tdep/26000
7819 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7820 for ldrd (immediate).
7821
e98d2e6d
PW
78222020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7823
7824 * command.h: Add comment giving the name of class_tui.
7825 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7826 create the fake command for the help for class_tui.
7827
53a47a3e
TT
78282020-05-26 Tom Tromey <tromey@adacore.com>
7829
7830 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7831 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7832 (val_atr): New function.
7833 (value_val_atr): Use it.
7834 * ada-valprint.c (print_optional_low_bound): Change low bound
7835 handling for enums.
7836 (val_print_packed_array_elements): Don't call discrete_position.
7837 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7838 discrete_position for enum types.
7839 * language.c (default_print_array_index): Change type.
7840 * language.h (struct language_defn) <la_print_array_index>: Add
7841 index_type parameter, change type of index_value.
7842 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7843 (default_print_array_index): Update.
7844 * valprint.c (maybe_print_array_index): Don't call
7845 value_from_longest. Update.
7846 (value_print_array_elements): Don't call discrete_position.
7847
0bc2354b
TT
78482020-05-26 Tom Tromey <tromey@adacore.com>
7849
7850 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7851 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7852
1218a4bf
CDA
78532020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7854
7855 PR gdb/13519
7856 * avr-tdep.c (avr_integer_to_address): Return data or code
7857 address accordingly to the second 'type' argument of the
7858 function.
7859
92651b1d
MW
78602020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7861
7862 * infcmd.c, inferior.h: (construct_inferior_arguments):
7863 Moved function from here to gdbsupport/common-inferior.{h,cc}
7864
0a4f5f8c
TT
78652020-05-23 Tom Tromey <tom@tromey.com>
7866
7867 Revert commit eca1f90c:
7868 * NEWS: Remove entry for completion styling.
7869 * completer.c (_rl_completion_prefix_display_length): Move
7870 declaration later.
7871 (gdb_fnprint): Revert.
7872 (gdb_display_match_list_1): Likewise.
7873 * cli/cli-style.c (completion_prefix_style)
7874 (completion_difference_style, completion_suffix_style): Remove.
7875 (_initialize_cli_style): Revert.
7876 * cli/cli-style.h (completion_prefix_style)
7877 (completion_difference_style, completion_suffix_style): Don't
7878 declare.
7879
e08bd6c5
PA
78802020-05-24 Pedro Alves <palves@redhat.com>
7881
7882 * symtab.c (completion_list_add_name): Return boolean indication
7883 of whether the symbol matched.
7884 (completion_list_add_symbol): Don't try to remove C++ aliases if
7885 the symbol didn't match in the first place.
7886 * symtab.h (completion_list_add_name): Return bool.
7887
ceacbf6e
SM
78882020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7889
7890 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7891 type::field.
7892
26f16254
JB
78932020-05-23 Joel Brobecker <brobecker@adacore.com>
7894
7895 GDB 9.2 released.
7896
eca1f90c
TT
78972020-05-23 Tom Tromey <tom@tromey.com>
7898
7899 * NEWS: Add entry for completion styling.
7900 * completer.c (_rl_completion_prefix_display_length): Move
7901 declaration earlier.
7902 (gdb_fnprint): Use completion_style.
7903 (gdb_display_match_list_1): Likewise.
7904 * cli/cli-style.c (completion_prefix_style)
7905 (completion_difference_style, completion_suffix_style): New
7906 globals.
7907 (_initialize_cli_style): Register new globals.
7908 * cli/cli-style.h (completion_prefix_style)
7909 (completion_difference_style, completion_suffix_style): Declare.
7910
51e2cfa2
PA
79112020-05-23 Pedro Alves <palves@redhat.com>
7912
7913 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7914 (parse_escape): Use ISDIGIT instead of isdigit.
7915 (puts_debug): Use gdb_isprint instead of isprint.
7916 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7917 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7918 ISSPACE instead of isspace.
7919 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7920 instead of isspace.
7921 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7922 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7923 instead of isxdigit and ISDIGIT instead of isdigit.
7924
80fc5e77
SM
79252020-05-22 Simon Marchi <simon.marchi@efficios.com>
7926
7927 * gdbtypes.h (struct type) <field>: New method.
7928 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7929 or type::field.
7930
3cabb6b0
SM
79312020-05-22 Simon Marchi <simon.marchi@efficios.com>
7932
7933 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7934 (TYPE_FIELDS): Use type::fields. Change all call sites that
7935 modify the propery to use type::set_fields instead.
7936
1f704f76
SM
79372020-05-22 Simon Marchi <simon.marchi@efficios.com>
7938
7939 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7940 type::num_fields instead.
7941
5e33d5f4
SM
79422020-05-22 Simon Marchi <simon.marchi@efficios.com>
7943
7944 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7945 methods.
7946 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7947 that modify the number of fields to use type::set_num_fields
7948 instead.
7949
9392ebb3
TT
79502020-05-22 Tom Tromey <tromey@adacore.com>
7951
7952 * compile/compile-object-load.h (munmap_list_free): Don't
7953 declare.
7954
7c13f4e8
AB
79552020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7956
7957 * annotate.c (annotate_source_line): Update return type, add call
7958 to update current symtab and line.
7959 * annotate.h (annotate_source_line): Update return type, and
7960 extend header comment.
7961 * source.c (info_line_command): Check annotation_level before
7962 calling annotate_source_line.
7963 * stack.c (print_frame_info): If calling annotate_source_line
7964 returns true, then don't print any other source line information.
7965
aa370940
SM
79662020-05-21 Simon Marchi <simon.marchi@efficios.com>
7967
7968 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7969
84d53fa9
SM
79702020-05-21 Simon Marchi <simon.marchi@efficios.com>
7971
7972 * coffread.c (patch_type): Remove NULL check before xfree.
7973 * corefile.c (set_gnutarget): Likewise.
7974 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7975 * exec.c (build_section_table): Likewise.
7976 * remote.c (remote_target::pass_signals): Likewise.
7977 * utils.c (n_spaces): Likewise.
7978 * cli/cli-script.c (document_command): Likewise.
7979 * i386-windows-tdep.c (core_process_module_section): Likewise.
7980 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7981
9d428aae
SM
79822020-05-20 Simon Marchi <simon.marchi@efficios.com>
7983
7984 * symfile.c (reread_symbols): Clear objfile's section_offsets
7985 vector and section indices, re-compute them by calling
7986 sym_offsets.
7987
250106a7
TT
79882020-05-20 Tom Tromey <tromey@adacore.com>
7989
7990 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 7991 (desc_one_bound, desc_index_type): Compute field name.
250106a7 7992
9a0bacfb
TV
79932020-05-20 Tom de Vries <tdevries@suse.de>
7994
7995 PR symtab/25833
7996 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7997
7b958a48
AM
79982020-05-20 Alan Modra <amodra@gmail.com>
7999
8000 PR 25993
8001 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8002 bfd_set_filename.
8003 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8004 passed to bfd_set_filename.
8005 * symfile-mem.c (add_vsyscall_page): Likewise for string
8006 passed to symbol_file_add_from_memory.
8007 (symbol_file_add_from_memory): Make name param a const char* and
8008 don't strdup.
8009
c7e97679
AM
80102020-05-20 Alan Modra <amodra@gmail.com>
8011
8012 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8013 rather than accessing bfd->filename directly.
8014 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8015 and use bfd_section_name.
8016 * dwarf2/frame.c (decode_frame_entry): Likewise.
8017 * exec.c (exec_set_section_address): Likewise.
8018 * solib-aix.c (solib_aix_bfd_open): Likewise.
8019 * stap-probe.c (get_stap_base_address): Likewise.
8020 * symfile.c (reread_symbols): Likewise.
8021
563c591b
TT
80222020-05-19 Tom Tromey <tromey@adacore.com>
8023
8024 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8025
f408d82c
SM
80262020-05-19 Simon Marchi <simon.marchi@efficios.com>
8027
8028 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8029
98c59b52
PA
80302020-05-19 Pedro Alves <palves@redhat.com>
8031
8032 * NEWS (set exec-file-mismatch): Adjust entry.
8033 * exec.c: Include "build-id.h".
8034 (validate_exec_file): Try to match build IDs instead of filenames.
8035 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8036 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8037 and pass down 'warn_if_slow'.
8038 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8039 gdb_bfd_open_closure to pass it down.
8040 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8041
4111f652
PA
80422020-05-19 Pedro Alves <palves@redhat.com>
8043
8044 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8045 * target.c (target_fileio_open_1): Rename to target_fileio_open
8046 and make extern. Use bool.
8047 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8048 (target_fileio_read_alloc_1): Adjust.
8049 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8050 (target_fileio_open_warn_if_slow): Delete declaration.
8051
ad80db5b
PA
80522020-05-19 Pedro Alves <palves@redhat.com>
8053
8054 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8055 Adjust all callers.
8056
1d6ce4d3
YS
80572020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8058
8059 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8060 whether disp is negative.
8061
9005fbbb
SM
80622020-05-19 Simon Marchi <simon.marchi@efficios.com>
8063
8064 * symfile.h (struct symfile_segment_data)
8065 <~symfile_segment_data>: Remove.
8066 <segment_info>: Change to std::vector.
8067 * symfile.c (default_symfile_segments): Update.
8068 * elfread.c (elf_symfile_segments): Update.
8069
68b888ff
SM
80702020-05-19 Simon Marchi <simon.marchi@efficios.com>
8071
8072 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8073 <segments>: New.
8074 <segment_bases, segment_sizes>: Remove.
8075 * symfile.c (default_symfile_segments): Update.
8076 * elfread.c (elf_symfile_segments): Update.
8077 * remote.c (remote_target::get_offsets): Update.
8078 * solib-target.c (solib_target_relocate_section_addresses):
8079 Update.
8080
62982abd
SM
80812020-05-19 Simon Marchi <simon.marchi@efficios.com>
8082
8083 * symfile.h (struct symfile_segment_data): Initialize fields.
8084 <~symfile_segment_data>: Add.
8085 (symfile_segment_data_up): New.
8086 (struct sym_fns) <sym_segments>: Return a
8087 symfile_segment_data_up.
8088 (default_symfile_segments): Return a symfile_segment_data_up.
8089 (free_symfile_segment_data): Remove.
8090 (get_symfile_segment_data): Return a symfile_segment_data_up.
8091 * symfile.c (default_symfile_segments): Likewise.
8092 (get_symfile_segment_data): Likewise.
8093 (free_symfile_segment_data): Remove.
8094 (symfile_find_segment_sections): Update.
8095 * elfread.c (elf_symfile_segments): Return a
8096 symfile_segment_data_up.
8097 * remote.c (remote_target::get_offsets): Update.
8098 * solib-target.c (solib_target_relocate_section_addresses):
8099 Update.
8100 * symfile-debug.c (debug_sym_segments): Return a
8101 symfile_segment_data_up.
8102
7f204339
RO
81032020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8104
e52a0f1b
RO
8105 PR build/25981
8106 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8107 Hardcode register numbers.
8108
7f204339
RO
8109 PR build/25981
8110 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8111 procfs_find_LDT_entry): Remove.
8112 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8113 procfs_find_LDT_entry): Remove.
8114 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8115 Remove.
8116
7f32a4d5
PA
81172020-05-17 Pedro Alves <palves@redhat.com>
8118 Andrew Burgess <andrew.burgess@embecosm.com>
8119 Keno Fischer <keno@juliacomputing.com>
8120
8121 PR gdb/25741
8122 * breakpoint.c (build_target_condition_list): Update comments.
8123 (build_target_command_list): Update comments and skip matching
8124 locations.
8125 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8126 a separate function. Simplify "set breakpoint auto-hw off"
8127 handling.
8128 (insert_breakpoints): Update comment.
8129 (tracepoint_locations_match): New parameter. For breakpoints,
8130 compare location types too, if the caller wants to.
8131 (handle_automatic_hardware_breakpoints): New functions.
8132 (bp_location_is_less_than): Also sort by location type and
8133 hardware breakpoint length.
8134 (update_global_location_list): Handle "set breakpoint auto-hw on"
8135 here.
8136 (update_breakpoint_locations): Ask breakpoint_locations_match to
8137 ignore location types.
8138
7d93a1e0
SM
81392020-05-16 Simon Marchi <simon.marchi@efficios.com>
8140
8141 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8142 type::name instead.
8143
d0e39ea2
SM
81442020-05-16 Simon Marchi <simon.marchi@efficios.com>
8145
8146 * gdbtypes.h (struct type) <name, set_name>: New methods.
8147 (TYPE_CODE): Use type::name. Change all call sites used to set
8148 the name to use type::set_name instead.
8149
2dab0c7b
TT
81502020-05-16 Tom Tromey <tom@tromey.com>
8151
8152 * top.c (quit_force): Update.
8153 * infrun.c (handle_no_resumed): Update.
8154 * top.h (all_uis): New function.
8155 (ALL_UIS): Remove.
8156
59f7bd8d
SM
81572020-05-16 Simon Marchi <simon.marchi@efficios.com>
8158
8159 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8160
9bf058f0
PA
81612020-05-16 Pedro Alves <palves@redhat.com>
8162
8163 * ia64-linux-nat.c
8164 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8165 Declare method.
8166 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8167
8f86ae1a
SM
81682020-05-15 Simon Marchi <simon.marchi@efficios.com>
8169
8170 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8171 (sparc64_adi_info): Likewise.
8172
d6bc0792
TT
81732020-05-15 Tom Tromey <tom@tromey.com>
8174
8175 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8176 block_objfile.
8177 (lookup_objfile_from_block): Remove.
8178 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8179 (lookup_global_symbol): Use block_objfile.
8180 * symtab.h (lookup_objfile_from_block): Don't declare.
8181 * printcmd.c (clear_dangling_display_expressions): Use
8182 block_objfile.
8183 * parse.c (operator_check_standard): Use block_objfile.
8184
8c14c3a3
TT
81852020-05-15 Tom Tromey <tom@tromey.com>
8186
8187 * language.c (language_alloc_type_symbol): Set
8188 SYMBOL_SECTION.
8189 * symtab.c (initialize_objfile_symbol): Remove.
8190 (allocate_symbol): Remove.
8191 (allocate_template_symbol): Remove.
8192 * dwarf2/read.c (fixup_go_packaging): Use "new".
8193 (new_symbol): Use "new".
8194 (read_variable): Don't call initialize_objfile_symbol. Use
8195 "new".
8196 (read_func_scope): Use "new".
8197 * xcoffread.c (process_xcoff_symbol): Don't call
8198 initialize_objfile_symbol.
8199 (SYMBOL_DUP): Remove.
8200 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8201 "new".
8202 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8203 (allocate_template_symbol): Don't declare.
8204 (struct symbol): Add copy constructor. Change defaults.
8205 * jit.c (finalize_symtab): Use "new".
8206 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8207 Use "new".
8208 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8209 (common_block_end): Use "new".
8210 * mdebugread.c (parse_symbol): Use "new".
8211 (new_symbol): Likewise.
8212
5b4a1a8d
PW
82132020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8214
8215 * NEWS: Mention changes to help and apropos.
8216
57b4f16e
PW
82172020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8218
8219 * command.h (enum command_class): Improve comments, document
8220 that class_alias is for user-defined aliases, give the class
8221 name for each class, remove unused class_xdb.
8222 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8223 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8224 by a precise class.
8225 * infcmd.c (_initialize_infcmd): Likewise.
8226 * reverse.c (_initialize_reverse): Likewise.
8227 * stack.c (_initialize_stack): Likewise.
8228 * symfile.c (_initialize_symfile): Likewise.
8229 * tracepoint.c (_initialize_tracepoint): Likewise.
8230
7c05caf7
PW
82312020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8232
8233 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8234 when their aliased command is traversed.
8235 (help_cmd): Add fput_command_names_styled call to
8236 output command name and aliases when command has an alias.
8237
3b3aaacb
PW
82382020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8239
8240 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8241 * cli/cli-decode.c (help_cmd_list): Declare as static,
8242 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8243 a command together with the command.
8244 (fput_command_name_styled, fput_command_names_styled): New functions.
8245 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8246 fput_command_name_styled.
8247 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8248 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8249
7aa1b46f
PW
82502020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8251
8252 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8253 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8254 * command.h (cmd_show_list): Likewise.
8255 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8256 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8257
89bcba74
PW
82582020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8259
8260 * unittests/command-def-selftests.c (traverse_command_structure):
8261 Verify all commands of a list have the same prefix command and
8262 that only the top cmdlist commands have a null prefix.
8263
3f4d92eb
PW
82642020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8265
8266 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8267 as prefix, not one of its aliases.
8268 (set_cmd_prefix): Remove.
8269 (do_add_cmd): Centralize the setting of the prefix of a command, when
8270 command is defined after its full chain of prefix commands.
8271 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8272 (add_setshow_cmd_full): Likewise.
8273 (update_prefix_field_of_prefixed_commands): New function.
8274 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8275 update_prefix_field_of_prefixed_commands.
8276 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8277 addresses of remote_set_cmdlist and remote_show_cmdlist given
8278 as argument, not the address of an argument.
8279 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8280 * gdb/remote.c (_initialize_remote): Likewise.
8281
0605465f
PW
82822020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8283
8284 * cli/cli-cmds.c (alias_command): Check for an existing alias
8285 using lookup_cmd_composition, as valid_command_p is too strict
8286 and forbids aliases that are the prefix of an existing alias
8287 or command.
8288 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8289 command is properly recognised as a valid command.
8290
58e6ac70
PW
82912020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8292
8293 * unittests/help-doc-selftests.c: Rename to
8294 unittests/command-def-selftests.c
8295 * unittests/command-def-selftests.c (help_doc_tests): Update some
8296 comments.
8297 (command_structure_tests, traverse_command_structure): New namespace
8298 and function.
8299 (command_structure_invariants_tests): New function.
8300 (_initialize_command_def_selftests) Renamed from
8301 _initialize_help_doc_selftests, register command_structure_invariants
8302 selftest.
8303
a7b9ceb8
PW
83042020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8305
8306 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8307 an alias of 'show'.
8308
b2188a06
JB
83092020-05-15 Joel Brobecker <brobecker@adacore.com>
8310
8311 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8312 ada_is_fixed_point_type. Update all callers.
8313 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8314 all callers.
8315 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8316 Update all callers.
8317 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8318 print_fixed_point_type. Update all callers.
8319 * ada-valprint.c (ada_value_print_num): Replace call to
8320 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8321
a51951c2
KB
83222020-05-14 Kevin Buettner <kevinb@redhat.com>
8323
8324 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8325 processors.
8326 (cpu_supports_bts): Add CV_AMD case.
8327
29d6859f
LM
83282020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8329 Simon Marchi <simon.marchi@efficios.com>
8330
8331 * infrun.c (stop_all_threads): Collect multiple wait events at
8332 each pass.
8333
78134374
SM
83342020-05-14 Simon Marchi <simon.marchi@efficios.com>
8335
8336 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8337 type::code instead.
8338
67607e24
SM
83392020-05-14 Simon Marchi <simon.marchi@efficios.com>
8340
8341 * gdbtypes.h (struct type) <code, set_code>: New methods.
8342 (TYPE_CODE): Use type::code. Change all call sites used to set
8343 the code to use type::set_code instead.
8344
a05575d3
TBA
83452020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8346 Tom de Vries <tdevries@suse.de>
8347 Pedro Alves <palves@redhat.com>
8348
8349 PR threads/25478
8350 * infrun.c (stop_all_threads): Do NOT ignore
8351 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8352 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8353 received.
8354 (handle_no_resumed): Remove code handling a live inferior with no
8355 threads.
8356 * remote.c (has_single_non_exited_thread): New.
8357 (remote_target::update_thread_list): Do not delete a thread if is
8358 the last thread of the process.
8359 * thread.c (thread_select): Call delete_exited_threads instead of
8360 prune_threads.
8361
6ad82919
TBA
83622020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8363
8364 * infrun.c (stop_all_threads): Enable/disable thread events of all
8365 targets. Move a debug message denoting the end of the function
8366 into the SCOPED_EXIT block.
8367
d890404b
TBA
83682020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8369
8370 * process-stratum-target.h: Include <set>.
8371 (all_non_exited_process_targets, switch_to_target_no_thread): New
8372 function declarations.
8373 * process-stratum-target.c (all_non_exited_process_targets)
8374 (switch_to_target_no_thread): New function implementations.
8375
293b3ebc
TBA
83762020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8377
8378 * infrun.c (handle_inferior_event): Extract out a piece of code
8379 into...
8380 (mark_non_executing_threads): ...this new function.
8381
7ca9b62a
TBA
83822020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8383
8384 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8385 use.
8386
fc75c28b
TBA
83872020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8388
8389 * regcache.c (regcache_read_pc_protected): New function
8390 implementation that returns 0 if the PC cannot read via
8391 'regcache_read_pc'.
8392 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8393 instead of 'regcache_read_pc'.
8394 (keep_going_pass_signal): Ditto.
8395
a89febbd
TT
83962020-05-13 Tom Tromey <tromey@adacore.com>
8397
8398 * ada-lang.c (align_value): Remove.
8399 (ada_template_to_fixed_record_type_1): Use align_up.
8400
f7e23710
TBA
84012020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8402
8403 * async-event.c: Update the copyright year.
8404 * async-event.h: Update the copyright year.
8405
02ff80c2
SM
84062020-05-12 Simon Marchi <simon.marchi@efficios.com>
8407
8408 * objfiles.h (is_addr_in_objfile,
8409 shared_objfile_contains_address_p): Return bool.
8410 * objfile.c (is_addr_in_objfile,
8411 shared_objfile_contains_address_p): Return bool.
8412
4fd6c7e8
TT
84132020-05-11 Tom Tromey <tromey@adacore.com>
8414
8415 * cli/cli-cmds.c (info_command): Restore.
8416 (_initialize_cli_cmds): Use add_prefix_command for "info".
8417 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8418
5eb68a39
TT
84192020-05-11 Tom Tromey <tromey@adacore.com>
8420
8421 * ada-lang.c (ada_value_primitive_field): Now public.
8422 * ada-lang.h (ada_value_primitive_field): Declare.
8423 * ada-valprint.c (print_field_values): Use
8424 ada_value_primitive_field for wrapper fields.
8425
7666722f
TV
84262020-05-11 Tom de Vries <tdevries@suse.de>
8427
8428 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8429 MODULE_DOMAIN.
8430
3ee6bb11
TV
84312020-05-11 Tom de Vries <tdevries@suse.de>
8432
8433 PR symtab/25941
8434 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8435 with length 0, if not gdb-produced.
8436 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8437
43434996
TV
84382020-05-09 Tom de Vries <tdevries@suse.de>
8439
8440 PR gdb/25955
8441 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8442 calculation.
8443
2f78cffc
TT
84442020-05-09 Tom Tromey <tom@tromey.com>
8445
8446 * top.c (server_command): Now bool.
8447 * top.h (server_command): Now bool.
8448
4f7bc5ed
TT
84492020-05-08 Tom Tromey <tromey@adacore.com>
8450
8451 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8452 already being processed.
8453
8be4b118
TT
84542020-05-08 Tom Tromey <tom@tromey.com>
8455
8456 * printcmd.c (struct display) <next>: Remove.
8457 <display>: New constructor.
8458 <exp_string>: Now a std::string.
8459 <enabled_p>: Now a bool.
8460 (display_number): Move definition earlier.
8461 (displays): Rename from display_chain. Now a std::vector.
8462 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8463 (display_command): Update.
8464 (do_one_display, disable_display)
8465 (enable_disable_display_command, do_enable_disable_display):
8466 Update.
8467 (free_display): Remove.
8468 (clear_displays): Rewrite.
8469 (delete_display): Update.
8470 (map_display_numbers): Use function_view. Remove "data"
8471 parameter. Update.
8472 (do_delete_display): Remove.
8473 (undisplay_command): Update.
8474 (do_one_display, do_displays, disable_display)
8475 (info_display_command): Update.
8476 (do_enable_disable_display): Remove.
8477 (enable_disable_display_command)
8478 (clear_dangling_display_expressions): Update.
8479
94c93c35
TT
84802020-05-08 Tom Tromey <tom@tromey.com>
8481
8482 * symtab.c (set_symbol_cache_size)
8483 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8484 (maintenance_print_symbol_cache_statistics): Update.
8485 * symmisc.c (print_symbol_bcache_statistics)
8486 (print_objfile_statistics, maintenance_print_objfiles)
8487 (maintenance_info_symtabs, maintenance_check_symtabs)
8488 (maintenance_expand_symtabs, maintenance_info_line_tables):
8489 Update.
8490 * symfile-debug.c (set_debug_symfile): Update.
8491 * source.c (forget_cached_source_info): Update.
8492 * python/python.c (gdbpy_progspaces): Update.
8493 * psymtab.c (maintenance_info_psymtabs): Update.
8494 * probe.c (parse_probes): Update.
8495 * linespec.c (iterate_over_all_matching_symtabs)
8496 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8497 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8498 * exec.c (exec_target::close): Update.
8499 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8500 * breakpoint.c (print_one_breakpoint_location)
8501 (create_longjmp_master_breakpoint)
8502 (create_std_terminate_master_breakpoint): Update.
8503 * progspace.c (program_spaces): Now a std::vector.
8504 (maybe_new_address_space): Update.
8505 (add_program_space): Remove.
8506 (program_space::program_space): Update.
8507 (remove_program_space): Update.
8508 (number_of_program_spaces): Remove.
8509 (print_program_space, update_address_spaces): Update.
8510 * progspace.h (program_spaces): Change type.
8511 (ALL_PSPACES): Remove.
8512 (number_of_program_spaces): Don't declare.
8513 (struct program_space) <next>: Remove.
8514
a1fd1ac9
TT
85152020-05-08 Tom Tromey <tom@tromey.com>
8516
8517 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8518 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8519 (enable_break): Update.
8520 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8521 (frv_fdpic_find_canonical_descriptor): Update.
8522 (frv_fetch_objfile_link_map): Update.
8523 * progspace.c (program_space::free_all_objfiles): Update.
8524 (program_space::solibs): New method.
8525 * progspace.h (struct program_space) <solibs>: New method.
8526 * solist.h (master_so_list): Don't declare.
8527 (ALL_SO_LIBS): Remove.
8528 * solib.h (so_list_head): Remove.
8529 (update_solib_list): Update comment.
8530 * solib.c (master_so_list): Remove.
8531 (solib_used, update_solib_list, solib_add)
8532 (info_sharedlibrary_command, clear_solib)
8533 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8534
38eae084
TT
85352020-05-08 Tom Tromey <tom@tromey.com>
8536
8537 * extension.c (extension_languages): Now a std::array.
8538 (ALL_EXTENSION_LANGUAGES): Remove.
8539 (get_ext_lang_defn, get_ext_lang_of_file)
8540 (eval_ext_lang_from_control_command): Update.
8541 (finish_ext_lang_initialization)
8542 (auto_load_ext_lang_scripts_for_objfile)
8543 (ext_lang_type_printers::ext_lang_type_printers)
8544 (apply_ext_lang_type_printers)
8545 (ext_lang_type_printers::~ext_lang_type_printers)
8546 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8547 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8548 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8549 (get_matching_xmethod_workers, ext_lang_colorize)
8550 (ext_lang_before_prompt): Update.
8551 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8552
596dc4ad
TT
85532020-05-08 Tom Tromey <tom@tromey.com>
8554
8555 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8556 overload.
8557 <swap_string, m_string>: Remove.
8558 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8559 Update.
8560 * stabsread.c (define_symbol, read_type): Update.
8561 * linespec.c (find_linespec_symbols): Update.
8562 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8563 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8564 * dbxread.c (read_dbx_symtab): Update.
8565 * cp-support.h (cp_canonicalize_string_full)
8566 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8567 Return unique_xmalloc_ptr.
8568 * cp-support.c (inspect_type): Update.
8569 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8570 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8571 Likewise.
8572 * c-typeprint.c (print_name_maybe_canonical): Update.
8573 * break-catch-throw.c (check_status_exception_catchpoint):
8574 Update.
8575
bf4cb9be
TV
85762020-05-08 Tom de Vries <tdevries@suse.de>
8577
8578 * infrun.c (follow_fork): Copy current_line and current_symtab to
8579 child thread.
8580
a1b68f28
SM
85812020-05-07 Simon Marchi <simon.marchi@efficios.com>
8582
8583 * async-event.c (struct async_signal_handler, struct
8584 async_event_handler): Reformat, remove typedef.
8585
98d48915
SM
85862020-05-07 Simon Marchi <simon.marchi@efficios.com>
8587
8588 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8589 access thistype->main_type->dyn_prop_list directly.
8590
7aa91313
SM
85912020-05-07 Simon Marchi <simon.marchi@efficios.com>
8592
8593 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8594 (remove_dyn_prop): Remove. Update all users to use
8595 type::remove_dyn_prop.
8596 * gdbtypes.c (remove_dyn_prop): Rename to...
8597 (type::remove_dyn_prop): ... this.
8598
5c54719c
SM
85992020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8600
8601 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8602 (add_dyn_prop): Remove. Update all users to use
8603 type::add_dyn_prop.
8604 * gdbtypes.c (add_dyn_prop): Rename to...
8605 (type::add_dyn_prop): ... this.
8606
24e99c6c
SM
86072020-05-07 Simon Marchi <simon.marchi@efficios.com>
8608
8609 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8610 (get_dyn_prop): Remove. Update all users to use
8611 type::dyn_prop.
8612 * gdbtypes.c (get_dyn_prop): Rename to...
8613 (type::dyn_prop): ... this.
8614
0d4bf016
SM
86152020-05-06 Simon Marchi <simon.marchi@efficios.com>
8616
8617 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8618
ac4a4f1c
SM
86192020-05-06 Simon Marchi <simon.marchi@efficios.com>
8620
8621 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8622 instruction, skip it if it's there.
8623
a3bbacc1
SM
86242020-05-05 Simon Marchi <simon.marchi@efficios.com>
8625
8626 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8627
c3236f84
SM
86282020-05-04 Simon Marchi <simon.marchi@efficios.com>
8629
8630 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8631 * gdbtypes.c (recursive_dump_type): Remove use of
8632 TYPE_INCOMPLETE.
8633
3b6acaee
TT
86342020-05-03 Tom Tromey <tom@tromey.com>
8635
8636 * breakpoint.c (catch_command, tcatch_command): Remove.
8637 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8638 add_show_prefix_cmd.
8639 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8640 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8641 Remove.
8642 (add_internal_problem_command): Use add_basic_prefix_cmd,
8643 add_show_prefix_cmd.
8644 * mips-tdep.c (set_mipsfpu_command): Remove.
8645 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8646 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8647 (_initialize_index_cache): Use add_basic_prefix_cmd.
8648 * memattr.c (dummy_cmd): Remove.
8649 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8650 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8651 (_initialize_tui_win): Use add_basic_prefix_cmd,
8652 add_show_prefix_cmd.
8653 * cli/cli-logging.c (set_logging_command): Remove.
8654 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8655 add_show_prefix_cmd.
8656 (show_logging_command): Remove.
8657 * target.c (target_command): Remove.
8658 (add_target): Use add_basic_prefix_cmd.
8659
a51119cd
HD
86602020-05-02 Hannes Domani <ssbssa@yahoo.de>
8661
8662 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8663
652fc23a 86642020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8665
652fc23a
PW
8666 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8667 info_command.
8668
117539e6
KR
86692020-04-30 Kamil Rytarowski <n54@gmx.com>
8670
8671 * nbsd-nat.c (nbsd_enable_proc_events)
8672 (nbsd_nat_target::post_startup_inferior): Add.
8673 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8674 (nbsd_nat_target::update_thread_list): Rewrite.
8675 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8676 "PTRACE_LWP_CREATE".
8677 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8678
102e38eb 86792020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8680
102e38eb
PW
8681 * stack.c (_initialize_stack): Remove duplicated creation
8682 of "frame" command and "f" alias.
8683
ee9d1e5f
HD
86842020-04-30 Hannes Domani <ssbssa@yahoo.de>
8685
8686 PR gdb/18706
8687 * gdbtypes.c (check_typedef): Calculate size of array of
8688 stubbed type.
8689
627c7fb8
HD
86902020-04-30 Hannes Domani <ssbssa@yahoo.de>
8691
8692 PR gdb/15559
8693 * i386-tdep.c (i386_push_dummy_call): Call
8694 i386_thiscall_push_dummy_call.
8695 (i386_thiscall_push_dummy_call): New function.
8696 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8697 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8698 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8699
ffc2844e
SM
87002020-04-29 Simon Marchi <simon.marchi@efficios.com>
8701
8702 * gdbarch.sh (do_read): Add shellcheck disable directive for
8703 warning SC2162.
8704
1207375d
SM
87052020-04-29 Simon Marchi <simon.marchi@efficios.com>
8706
8707 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8708 "referenced but not assigned" warning.
8709
9fdb2916
SM
87102020-04-29 Simon Marchi <simon.marchi@efficios.com>
8711
8712 * gdbarch.sh: Remove code that sets fallbackdefault.
8713
759cea5e
SM
87142020-04-29 Simon Marchi <simon.marchi@efficios.com>
8715
8716 * gdbarch.sh: Use shell operators && and || instead of
8717 -a and -o.
8718
cb02ab24
SM
87192020-04-29 Simon Marchi <simon.marchi@efficios.com>
8720
8721 * gdbarch.sh: Use $(...) instead of `...`.
8722
a6fc5ffc
SM
87232020-04-29 Simon Marchi <simon.marchi@efficios.com>
8724
8725 * gdbarch.sh: Use double quotes around variables.
8726
8d113d13
SM
87272020-04-29 Simon Marchi <simon.marchi@efficios.com>
8728
8729 * gdbarch.sh: Use %s with printf, instead of variables in the
8730 format string.
8731
ed6acedd
TT
87322020-04-29 Tom Tromey <tromey@adacore.com>
8733
8734 PR ada/25875:
8735 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8736 type fields here.
8737 (read_enumeration_type): Call
8738 update_enumeration_type_from_children later. Update comments.
8739 (process_enumeration_scope): Don't create type fields.
8740
b68b1b58
KR
87412020-04-29 Kamil Rytarowski <n54@gmx.com>
8742
8743 * nbsd-tdep.c: Include "xml-syscall.h".
8744 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8745
f94b2e03
KR
87462020-04-29 Kamil Rytarowski <n54@gmx.com>
8747
8748 * nbsd-nat.c: Include "sys/wait.h".
8749 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8750 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8751 (nbsd_nat_target::remove_exec_catchpoint)
8752 (nbsd_nat_target::set_syscall_catchpoint): Add.
8753 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8754 (nbsd_nat_target::insert_exec_catchpoint)
8755 (nbsd_nat_target::remove_exec_catchpoint)
8756 (nbsd_nat_target::set_syscall_catchpoint): Add.
8757 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8758 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8759 `nbsd_get_syscall_number'.
8760
fc49bc72
TT
87612020-04-29 Tom Tromey <tom@tromey.com>
8762
8763 * stack.c (print_block_frame_labels): Remove.
8764
d642b692
HD
87652020-04-29 Hannes Domani <ssbssa@yahoo.de>
8766
8767 PR gdb/17320
8768 * ada-valprint.c (val_print_packed_array_elements): Move array
8769 end bracket to new line.
8770 (ada_val_print_string): Remove extra spaces before first array
8771 element.
8772 * c-valprint.c (c_value_print_array): Likewise.
8773 * m2-valprint.c (m2_print_array_contents): Likewise.
8774 (m2_value_print_inner): Likewise.
8775 * p-valprint.c (pascal_value_print_inner): Likewise.
8776 * valprint.c (generic_val_print_array): Likewise.
8777 (value_print_array_elements): Move first array element and array
8778 end bracket to new line.
8779
ea90f227
TV
87802020-04-29 Tom de Vries <tdevries@suse.de>
8781
8782 PR symtab/25889
8783 * linespec.c (find_method): Fix ix calculation.
8784
4498ef4f
KR
87852020-04-28 Kamil Rytarowski <n54@gmx.com>
8786
8787 * syscalls/update-netbsd.sh: New file.
8788 * syscalls/netbsd.xml: Regenerate.
8789 * data-directory/Makefile.in: Register `netbsd.xml' in
8790 `SYSCALLS_FILES'.
8791
a55e30b5
SM
87922020-04-28 Simon Marchi <simon.marchi@efficios.com>
8793
8794 * syscalls/update-freebsd.sh: Add double quotes.
8795
2b2fbab8
TT
87962020-04-28 Tom Tromey <tom@tromey.com>
8797
8798 * NEWS: Update.
8799 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8800 (cmdpy_init): Allow class_tui.
8801
a65189c9
TV
88022020-04-28 Mark Williams <mark@myosotissp.com>
8803
8804 PR gdb/24480
8805 * dwarf2read.c: Add missing assingments to list_in_scope when
8806 start_symtab was already called.
8807
1b95cdb7
SM
88082020-04-28 Simon Marchi <simon.marchi@efficios.com>
8809
8810 PR gdb/25881
8811 * dwarf2/read.c (offset_map_type): Use
8812 gdb:hash_enum<sect_offset> as hash function.
8813
15cd93d0
TV
88142020-04-28 Tom de Vries <tdevries@suse.de>
8815
8816 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8817 with DW_AT_signature.
8818
1eb39914
SM
88192020-04-27 Simon Marchi <simon.marchi@efficios.com>
8820
8821 * configure.ac: Remove check for fs_base/gs_base in
8822 user_regs_struct.
8823 * configure: Re-generate.
8824 * config.in: Re-generate.
8825 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8826 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8827 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8828
991a3e2e
LM
88292020-04-27 Luis Machado <luis.machado@linaro.org>
8830
8831 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8832 problematic inline frame unwinding situation.
8833 * frame.c (frame_id_computed_p): New function.
8834 * frame.h (frame_id_computed_p): New prototype.
8835
361ba0e8
TT
88362020-04-26 Tom Tromey <tom@tromey.com>
8837
8838 * command.h (enum command_class) <class_pseudo>: Remove.
8839
bc3609fd
PW
88402020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8841
8842 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8843 and whitespace.
8844
b9771db7
KR
88452020-04-25 Kamil Rytarowski <n54@gmx.com>
8846
ec16513e
SM
8847 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8848 `PT_GET_PROCESS_STATE' block.
b9771db7 8849
7151c1af
TT
88502020-04-24 Tom Tromey <tom@tromey.com>
8851
8852 * symtab.h (symbol_get_demangled_name): Don't declare.
8853 * symtab.c (symbol_get_demangled_name): Remove.
8854 (general_symbol_info::natural_name)
8855 (general_symbol_info::demangled_name): Update.
8856
906bb4c5
TT
88572020-04-24 Tom Tromey <tom@tromey.com>
8858
8859 PR rust/25025:
8860 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8861
bcfe6157
TT
88622020-04-24 Tom Tromey <tom@tromey.com>
8863
8864 PR symtab/12707:
8865 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8866 exists.
8867 (new_symbol): Likewise.
8868 * compile/compile-object-load.c (get_out_value_type): Use
8869 symbol_matches_search_name.
8870
f049a313
TT
88712020-04-24 Tom Tromey <tom@tromey.com>
8872
8873 * dwarf2/read.c (add_partial_symbol): Do not call
8874 compute_and_set_names.
8875
76e288d1
TT
88762020-04-24 Tom Tromey <tom@tromey.com>
8877
8878 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8879 overload.
8880
2467f4f6
TT
88812020-04-24 Tom Tromey <tom@tromey.com>
8882
8883 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8884 (add_psymbol_to_list): New overload. Make old overload call new
8885 one.
8886 * psympriv.h (add_psymbol_to_list): New overload.
8887
e61108c9
TT
88882020-04-24 Tom Tromey <tom@tromey.com>
8889
8890 * dwarf2/read.c (partial_die_info::read) <case
8891 DW_AT_linkage_name>: Use value_as_string.
8892 (dwarf2_string_attr): Use value_as_string.
8893 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8894 method.
8895 * dwarf2/attribute.c (attribute::value_as_string): New method.
8896
8c87a452
TT
88972020-04-24 Tom Tromey <tom@tromey.com>
8898
8899 * symtab.c (general_symbol_info::natural_name)
8900 (general_symbol_info::demangled_name): Check for language_rust.
8901
787de330
TT
89022020-04-24 Tom Tromey <tom@tromey.com>
8903
8904 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8905 (dwarf2_physname): ... from here.
8906 (partial_die_info::read): Add Rust "{" hack.
8907
ff985671
TT
89082020-04-24 Tom Tromey <tom@tromey.com>
8909
8910 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8911 method.
8912 (symbol_set_demangled_name): Don't declare.
8913 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8914 symbol_set_demangled_name.
8915 (general_symbol_info::set_language)
8916 (general_symbol_info::compute_and_set_names): Update.
8917 * minsyms.c (minimal_symbol_reader::install): Update.
8918 * dwarf2/read.c (new_symbol): Update.
8919
1acda803
TT
89202020-04-24 Tom Tromey <tromey@adacore.com>
8921
8922 PR python/23662:
8923 * python/py-type.c (convert_field): Handle
8924 FIELD_LOC_KIND_DWARF_BLOCK.
8925 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8926 (typy_get_dynamic): Nw function.
8927 (type_object_getset): Add "dynamic".
8928 * NEWS: Add entry.
8929
d656f129
TT
89302020-04-24 Tom Tromey <tromey@adacore.com>
8931
8932 * ada-typeprint.c (print_choices, print_variant_part)
8933 (print_record_field_types_dynamic): New functions.
8934 (print_record_field_types): Use print_record_field_types_dynamic.
8935
7d79de9a
TT
89362020-04-24 Tom Tromey <tromey@adacore.com>
8937
8938 * dwarf2/read.c (handle_data_member_location): New overload.
8939 (dwarf2_add_field): Use it.
8940 (decode_locdesc): Add "computed" parameter. Update comment.
8941 * gdbtypes.c (is_dynamic_type_internal): Also look for
8942 FIELD_LOC_KIND_DWARF_BLOCK.
8943 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8944 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8945 virtual base classes.
8946 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8947 FIELD_LOC_KIND_DWARF_BLOCK.
8948
f8e89861
TT
89492020-04-24 Tom Tromey <tromey@adacore.com>
8950
8951 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8952 * gdbtypes.c (is_dynamic_type_internal): Check
8953 TYPE_HAS_DYNAMIC_LENGTH.
8954 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8955 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8956 New macros.
8957 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8958 constant.
8959
9c6a1327
TT
89602020-04-24 Tom Tromey <tromey@adacore.com>
8961
8962 * dwarf2/read.c (struct variant_field): Rewrite.
8963 (struct variant_part_builder): New.
8964 (struct nextfield): Remove "variant" field. Add "offset".
8965 (struct field_info): Add "current_variant_part" and
8966 "variant_parts".
8967 (alloc_discriminant_info): Remove.
8968 (alloc_rust_variant): New function.
8969 (quirk_rust_enum): Update.
8970 (dwarf2_add_field): Set "offset" member. Don't handle
8971 DW_TAG_variant_part.
8972 (offset_map_type): New typedef.
8973 (convert_variant_range, create_one_variant)
8974 (create_one_variant_part, create_variant_parts)
8975 (add_variant_property): New functions.
8976 (dwarf2_attach_fields_to_type): Call add_variant_property.
8977 (read_structure_type): Don't handle DW_TAG_variant_part.
8978 (handle_variant_part, handle_variant): New functions.
8979 (handle_struct_member_die): Use them.
8980 (process_structure_scope): Don't handle variant parts.
8981 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8982 (struct discriminant_info): Remove.
8983 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8984 (struct main_type) <flag_discriminated_union>: Remove.
8985 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8986 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8987 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8988 Update.
8989 * valops.c (value_union_variant): Remove.
8990 * value.h (value_union_variant): Don't declare.
8991
b249d2c2
TT
89922020-04-24 Tom Tromey <tromey@adacore.com>
8993
8994 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8995 (ada_value_primitive_packed_val): Update.
8996 * ada-valprint.c (ada_value_print_1): Update.
8997 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8998 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8999 just an address. Use evaluate_for_locexpr_baton.
9000 (dwarf2_evaluate_property): Update.
9001 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9002 array_view.
9003 * findvar.c (default_read_var_value): Update.
9004 * gdbtypes.c (compute_variant_fields_inner)
9005 (resolve_dynamic_type_internal): Update.
9006 (resolve_dynamic_type): Change type of valaddr parameter.
9007 * gdbtypes.h (resolve_dynamic_type): Update.
9008 * valarith.c (value_subscripted_rvalue): Update.
9009 * value.c (value_from_contents_and_address): Update.
9010
61122aa9
TT
90112020-04-24 Tom Tromey <tromey@adacore.com>
9012
9013 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9014 "push_initial_value" parameter.
9015 (dwarf2_evaluate_property): Likewise.
9016 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9017
ef83a141
TT
90182020-04-24 Tom Tromey <tromey@adacore.com>
9019
9020 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9021 (variant::matches, compute_variant_fields_recurse)
9022 (compute_variant_fields_inner, compute_variant_fields): New
9023 functions.
9024 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9025 Use resolved_type after type is made.
9026 (operator==): Add new cases.
9027 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9028 (struct discriminant_range, struct variant, struct variant_part):
9029 New.
9030 (union dynamic_prop_data) <variant_parts, original_type>: New
9031 members.
9032 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9033 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9034 constants.
9035 * value.c (unpack_bits_as_long): Now public.
9036 * value.h (unpack_bits_as_long): Declare.
9037
675127ec
TT
90382020-04-24 Tom Tromey <tromey@adacore.com>
9039
9040 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9041 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9042
9852ceef
HD
90432020-04-24 Hannes Domani <ssbssa@yahoo.de>
9044
9045 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9046
7632c6ce
KR
90472020-04-24 Kamil Rytarowski <n54@gmx.com>
9048
9049 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9050 (remove_fork_catchpoint, post_startup_inferior)
9051 (post_attach): Move...
9052 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9053 (remove_fork_catchpoint, post_startup_inferior)
9054 (post_attach): ...here.
9055 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9056 (remove_fork_catchpoint, post_startup_inferior)
9057 (post_attach): Move...
9058 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9059 (remove_fork_catchpoint, post_startup_inferior)
9060 (post_attach): ...here.
9061
7be2bb4f
TT
90622020-04-24 Tom Tromey <tromey@adacore.com>
9063
9064 * nat/windows-nat.h (struct windows_thread_info)
9065 <pc_adjusted>: New member.
9066 * windows-nat.c (windows_fetch_one_register): Check
9067 pc_adjusted.
9068 (windows_nat_target::get_windows_debug_event)
9069 (windows_nat_target::wait): Set pc_adjusted.
9070
f80cb3b4
TV
90712020-04-24 Tom de Vries <tdevries@suse.de>
9072
9073 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9074 Run gdb-add-index inside temp dir.
9075
29514b87
TT
90762020-04-23 Tom Tromey <tromey@adacore.com>
9077
9078 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9079 in loop.
9080
5939967b
LM
90812020-04-23 Luis Machado <luis.machado@linaro.org>
9082
9083 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9084 get_frame_register instead of gdbarch_unwind_pc.
9085
70bc38f5
TV
90862020-04-23 Tom de Vries <tdevries@suse.de>
9087
9088 * symtab.c (lookup_global_symbol): Prefer def over decl.
9089
de82891c
TV
90902020-04-23 Tom de Vries <tdevries@suse.de>
9091
9092 PR symtab/25807
9093 * block.c (best_symbol, better_symbol): Promote to external.
9094 * block.h (best_symbol, better_symbol): Declare.
9095 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9096 decl.
9097
ecc6c606
TT
90982020-04-23 Tom Tromey <tromey@adacore.com>
9099
9100 PR ada/25837:
9101 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9102 "const char *", not a "const std::string &".
9103 <name_and_matcher::operator==>: Update.
9104 * unittests/lookup_name_info-selftests.c: Change type of
9105 "result".
9106
740480b8
TT
91072020-04-23 Tom Tromey <tom@tromey.com>
9108
9109 * inferior.h (iterate_over_inferiors): Don't declare.
9110 * inferior.c (iterate_over_inferiors): Remove.
9111 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9112 Remove.
9113 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9114 use iterate_over_inferiors.
9115 (darwin_resume_inferior_it)
9116 (struct resume_inferior_threads_param)
9117 (darwin_resume_inferior_threads_it): Remove.
9118 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9119
ae3ab1f0
TV
91202020-04-23 Tom de Vries <tdevries@suse.de>
9121
9122 * blockframe.c (find_pc_partial_function): Use
9123 find_pc_sect_compunit_symtab rather than
9124 objfile->sf->qf->find_pc_sect_compunit_symtab.
9125
317d2668
TV
91262020-04-22 Tom de Vries <tdevries@suse.de>
9127
9128 PR symtab/25764
9129 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9130 in psymtabs.
9131
eea9e357
TV
91322020-04-22 Tom de Vries <tdevries@suse.de>
9133
9134 PR symtab/25801
9135 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9136 symtabs.
9137
3d5afab3
TV
91382020-04-22 Tom de Vries <tdevries@suse.de>
9139
9140 PR symtab/25700
9141 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9142 CU if already created.
9143
d43b7a2d
TBA
91442020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9145
9146 * infrun.c (displaced_step_fixup): Switch to the event_thread
9147 before calling displaced_step_restore, not after.
9148
d89edf9b
MM
91492020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9150
9151 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9152 its inferior is not recorded by us.
9153 (record_btrace_target_open): Replace call to
9154 all_non_exited_threads () with call to current_inferior
9155 ()->non_exited_threads ().
9156 (record_btrace_target::stop_recording): Likewise.
9157 (record_btrace_target::close): Likewise.
9158 (record_btrace_target::wait): Likewise.
9159 (record_btrace_target::record_stop_replaying): Likewise.
9160
5897fd49
MM
91612020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9162
9163 * btrace.c (btrace_enable): Throw an error on double enables and
9164 when enabling recording fails.
9165 (btrace_disable): Throw an error if the thread is not recorded.
9166
1a476b6d
MM
91672020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9168
9169 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9170 request if we do not have a thread_info.
9171
4778a5f8
TV
91722020-04-21 Tom de Vries <tdevries@suse.de>
9173
9174 PR gdb/25471
9175 * thread.c
9176 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9177 exception in get_frame_id.
9178
0fa7617d
TT
91792020-04-20 Tom Tromey <tromey@adacore.com>
9180
9181 * python/python.c (struct gdbpy_event): Mark move constructor as
9182 noexcept.
9183 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9184 constructor as noexcept.
9185 * completer.h (struct completion_result): Mark move constructor as
9186 noexcept.
9187 * completer.c (completion_result::completion_result): Use
9188 initialization style. Don't call reset_match_list.
9189
ad23bda0
MS
91902020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9191
9192 * MAINTAINERS (Write After Approval): Add myself.
9193
45e1f031
TT
91942020-04-18 Tom Tromey <tom@tromey.com>
9195
9196 * windows-tdep.c (init_w32_command_list)
9197 (w32_prefix_command_valid): Restore.
9198 (_initialize_windows_tdep): Call init_w32_command_list.
9199
08feed99
TT
92002020-04-18 Tom Tromey <tom@tromey.com>
9201
9202 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9203 * value.c (value_fn_field): Update.
9204 * valops.c (find_function_in_inferior)
9205 (value_allocate_space_in_inferior): Update.
9206 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9207 Update.
9208 * tui/tui-source.c (tui_source_window::set_contents): Update.
9209 * symtab.c (lookup_global_or_static_symbol)
9210 (find_function_start_sal_1, skip_prologue_sal)
9211 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9212 * symmisc.c (dump_msymbols, dump_symtab_1)
9213 (maintenance_print_one_line_table): Update.
9214 * symfile.c (init_entry_point_info, section_is_mapped)
9215 (list_overlays_command, simple_read_overlay_table)
9216 (simple_overlay_update_1): Update.
9217 * stap-probe.c (handle_stap_probe): Update.
9218 * stabsread.c (dbx_init_float_type, define_symbol)
9219 (read_one_struct_field, read_enum_type, read_range_type): Update.
9220 * source.c (info_line_command): Update.
9221 * python/python.c (gdbpy_source_objfile_script)
9222 (gdbpy_execute_objfile_script): Update.
9223 * python/py-type.c (save_objfile_types): Update.
9224 * python/py-objfile.c (py_free_objfile): Update.
9225 * python/py-inferior.c (python_new_objfile): Update.
9226 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9227 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9228 (maintenance_check_psymtabs): Update.
9229 * printcmd.c (info_address_command): Update.
9230 * objfiles.h (struct objfile) <arch>: New method, from
9231 get_objfile_arch.
9232 (get_objfile_arch): Don't declare.
9233 * objfiles.c (get_objfile_arch): Remove.
9234 (filter_overlapping_sections): Update.
9235 * minsyms.c (msymbol_is_function): Update.
9236 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9237 (output_nondebug_symbol): Update.
9238 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9239 (mdebug_expand_psymtab): Update.
9240 * machoread.c (macho_add_oso_symfile): Update.
9241 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9242 Update.
9243 * linux-fork.c (checkpoint_command): Update.
9244 * linespec.c (convert_linespec_to_sals): Update.
9245 * jit.c (finalize_symtab): Update.
9246 * infrun.c (insert_exception_resume_from_probe): Update.
9247 * ia64-tdep.c (ia64_find_unwind_table): Update.
9248 * hppa-tdep.c (internalize_unwinds): Update.
9249 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9250 Update.
9251 * gcore.c (call_target_sbrk): Update.
9252 * elfread.c (record_minimal_symbol, elf_symtab_read)
9253 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9254 (elf_gnu_ifunc_resolve_by_got): Update.
9255 * dwarf2/read.c (create_addrmap_from_index)
9256 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9257 (read_debug_names_from_section)
9258 (process_psymtab_comp_unit_reader, add_partial_symbol)
9259 (add_partial_subprogram, process_full_comp_unit)
9260 (read_file_scope, read_func_scope, read_lexical_block_scope)
9261 (read_call_site_scope, dwarf2_ranges_read)
9262 (dwarf2_record_block_ranges, dwarf2_add_field)
9263 (mark_common_block_symbol_computed, read_tag_pointer_type)
9264 (read_tag_string_type, dwarf2_init_float_type)
9265 (dwarf2_init_complex_target_type, read_base_type)
9266 (partial_die_info::read, partial_die_info::read)
9267 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9268 (dwarf2_fetch_die_loc_sect_off): Update.
9269 * dwarf2/loc.c (dwarf2_find_location_expression)
9270 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9271 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9272 (dwarf2_loc_desc_get_symbol_read_needs)
9273 (locexpr_describe_location_piece, locexpr_describe_location_1)
9274 (loclist_describe_location): Update.
9275 * dwarf2/index-write.c (write_debug_names): Update.
9276 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9277 * dtrace-probe.c (dtrace_process_dof): Update.
9278 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9279 (process_one_symbol): Update.
9280 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9281 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9282 (coff_read_enum_type): Update.
9283 * cli/cli-cmds.c (edit_command, list_command): Update.
9284 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9285 * breakpoint.c (create_overlay_event_breakpoint)
9286 (create_longjmp_master_breakpoint)
9287 (create_std_terminate_master_breakpoint)
9288 (create_exception_master_breakpoint, get_sal_arch): Update.
9289 * block.c (block_gdbarch): Update.
9290 * annotate.c (annotate_source_line): Update.
9291
0743fc83
TT
92922020-04-17 Tom Tromey <tromey@adacore.com>
9293
9294 * auto-load.c (show_auto_load_cmd): Remove.
9295 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9296 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9297 (maintenance_print_arc_command): Remove.
9298 * tui/tui-win.c (tui_command): Remove.
9299 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9300 * tui/tui-layout.c (tui_layout_command): Remove.
9301 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9302 * python/python.c (user_set_python, user_show_python): Remove.
9303 (_initialize_python): Use add_basic_prefix_cmd,
9304 add_show_prefix_cmd.
9305 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9306 (install_gdb_commands): Use add_basic_prefix_cmd,
9307 add_show_prefix_cmd.
9308 (info_guile_command): Remove.
9309 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9310 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9311 add_show_prefix_cmd.
9312 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9313 Remove do_set and do_show parameters.
9314 * cli/cli-style.c (set_style, show_style): Remove.
9315 (_initialize_cli_style): Use add_basic_prefix_cmd,
9316 add_show_prefix_cmd.
9317 (cli_style_option::add_setshow_commands): Remove do_set and
9318 do_show parameters.
9319 (cli_style_option::add_setshow_commands): Use
9320 add_basic_prefix_cmd, add_show_prefix_cmd.
9321 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9322 (set_style_name): Remove.
9323 * cli/cli-dump.c (dump_command, append_command): Remove.
9324 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9325 (tekhex_dump_command, binary_dump_command)
9326 (binary_append_command): Remove.
9327 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9328 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9329 (init_w32_command_list): Remove; move into ...
9330 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9331 * valprint.c (set_print, show_print, set_print_raw)
9332 (show_print_raw): Remove.
9333 (_initialize_valprint): Use add_basic_prefix_cmd,
9334 add_show_prefix_cmd.
9335 * typeprint.c (set_print_type, show_print_type): Remove.
9336 (_initialize_typeprint): Use add_basic_prefix_cmd,
9337 add_show_prefix_cmd.
9338 * record.c (set_record_command, show_record_command): Remove.
9339 (_initialize_record): Use add_basic_prefix_cmd,
9340 add_show_prefix_cmd.
9341 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9342 add_show_prefix_cmd.
9343 (info_command, show_command, set_debug, show_debug): Remove.
9344 * top.h (set_history, show_history): Don't declare.
9345 * top.c (set_history, show_history): Remove.
9346 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9347 (unset_tdesc_cmd): Remove.
9348 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9349 add_show_prefix_cmd.
9350 * symtab.c (info_module_command): Remove.
9351 (_initialize_symtab): Use add_basic_prefix_cmd.
9352 * symfile.c (overlay_command): Remove.
9353 (_initialize_symfile): Use add_basic_prefix_cmd.
9354 * sparc64-tdep.c (info_adi_command): Remove.
9355 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9356 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9357 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9358 add_show_prefix_cmd.
9359 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9360 (_initialize_serial): Use add_basic_prefix_cmd,
9361 add_show_prefix_cmd.
9362 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9363 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9364 add_show_prefix_cmd.
9365 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9366 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9367 add_show_prefix_cmd.
9368 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9369 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9370 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9371 add_show_prefix_cmd.
9372 * remote.c (remote_command, set_remote_cmd): Remove.
9373 (_initialize_remote): Use add_basic_prefix_cmd.
9374 * record-full.c (set_record_full_command)
9375 (show_record_full_command): Remove.
9376 (_initialize_record_full): Use add_basic_prefix_cmd,
9377 add_show_prefix_cmd.
9378 * record-btrace.c (cmd_set_record_btrace)
9379 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9380 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9381 (cmd_show_record_btrace_pt): Remove.
9382 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9383 add_show_prefix_cmd.
9384 * ravenscar-thread.c (set_ravenscar_command)
9385 (show_ravenscar_command): Remove.
9386 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9387 add_show_prefix_cmd.
9388 * mips-tdep.c (show_mips_command, set_mips_command)
9389 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9390 add_show_prefix_cmd.
9391 * maint.c (maintenance_command, maintenance_info_command)
9392 (maintenance_check_command, maintenance_print_command)
9393 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9394 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9395 add_show_prefix_cmd.
9396 (show_per_command_cmd): Remove.
9397 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9398 Remove.
9399 (maintenance_show_test_settings_cmd): Remove.
9400 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9401 add_show_prefix_cmd.
9402 * maint-test-options.c (maintenance_test_options_command):
9403 Remove.
9404 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9405 * macrocmd.c (macro_command): Remove
9406 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9407 * language.c (set_check, show_check): Remove.
9408 (_initialize_language): Use add_basic_prefix_cmd,
9409 add_show_prefix_cmd.
9410 * infcmd.c (unset_command): Remove.
9411 (_initialize_infcmd): Use add_basic_prefix_cmd.
9412 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9413 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9414 add_show_prefix_cmd.
9415 * go32-nat.c (go32_info_dos_command): Remove.
9416 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9417 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9418 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9419 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9420 (_initialize_frame): Use add_basic_prefix_cmd,
9421 add_show_prefix_cmd.
9422 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9423 (_initialize_dcache): Use add_basic_prefix_cmd,
9424 add_show_prefix_cmd.
9425 * cp-support.c (maint_cplus_command): Remove.
9426 (_initialize_cp_support): Use add_basic_prefix_cmd.
9427 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9428 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9429 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9430 add_basic_prefix_cmd, add_show_prefix_cmd.
9431 * breakpoint.c (save_command): Remove.
9432 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9433 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9434 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9435 add_show_prefix_cmd.
9436 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9437 (set_ada_command, show_ada_command): Remove.
9438 (_initialize_ada_language): Use add_basic_prefix_cmd,
9439 add_show_prefix_cmd.
9440 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9441
3557f442
KR
94422020-04-16 Kamil Rytarowski <n54@gmx.com>
9443
9444 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9445 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9446
16197208
SM
94472020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9448
9449 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9450 warning messages.
9451
00ac85d3
SM
94522020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9453
9454 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9455 import table is not at beginning of .idata section.
9456
381ce63f
PA
94572020-04-16 Pedro Alves <palves@redhat.com>
9458
9459 * inferior.c (delete_inferior): Use delete operator directly
9460 instead of delete_program_space.
9461 * progspace.c (add_program_space): New, factored out from
9462 program_space::program_space.
9463 (remove_program_space): New, factored out from
9464 delete_program_space.
9465 (program_space::program_space): Remove intro comment. Rewrite.
9466 (program_space::~program_space): Remove intro comment. Call
9467 remove_program_space.
9468 (delete_program_space): Delete.
9469 * progspace.h (program_space::program_space): Make explicit. Move
9470 intro comment here, adjusted.
9471 (program_space::~program_space): Move intro comment here,
9472 adjusted.
9473 (delete_program_space): Remove.
9474
a010605f
TT
94752020-04-16 Tom Tromey <tromey@adacore.com>
9476
9477 * windows-nat.c (windows_nat::handle_access_violation): New
9478 function.
9479 * nat/windows-nat.h (handle_access_violation): Declare.
9480 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9481 windows-nat.c. Call handle_access_violation.
9482
efba5c23
TV
94832020-04-16 Tom de Vries <tdevries@suse.de>
9484
9485 PR symtab/25791
9486 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9487 CUs without psymtab.
9488
97ed802d
KB
94892020-04-16 Kevin Buettner <kevinb@redhat.com>
9490
9491 * python/python.c (do_start_initialization): Don't call
9492 PyEval_InitThreads for Python 3.9 and beyond.
9493
c7d64809
KR
94942020-04-15 Kamil Rytarowski <n54@gmx.com>
9495
9496 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9497 thread functions.
9498 (obsd_nat_target::wait): Likewise.
9499
ce127a96
TT
95002020-04-15 Tom Tromey <tromey@adacore.com>
9501
9502 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9503 (DEBUG_EXCEPT): Use debug_printf.
9504
99f1bc6a
AB
95052020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9506
9507 * completer.c (class completion_tracker::completion_hash_entry)
9508 <hash_name>: New member function.
9509 (completion_tracker::discard_completions): New callback to hash a
9510 completion_hash_entry, pass this to htab_create_alloc.
9511
a0e9b532
JT
95122016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9513
9514 * windows-nat.c (windows_make_so): Warn rather than stopping with
9515 an error if realpath() fails.
9516
06ca5dd4
KR
95172020-04-14 Kamil Rytarowski <n54@gmx.com>
9518
9519 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9520 (nbsd_nat_target::info_proc): Add do_status.
9521
194d088f
TV
95222020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9523 Tom de Vries <tdevries@suse.de>
9524
9525 PR symtab/25718
9526 * psympriv.h (struct partial_symtab::read_symtab)
9527 (struct partial_symtab::expand_psymtab)
9528 (struct partial_symtab::read_dependencies): Update comments.
9529 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9530 read_symtab for includer.
9531 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9532 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9533 (struct dwarf2_include_psymtab::m_readin): Remove.
9534 (struct dwarf2_include_psymtab::includer): New member function.
9535 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9536
c1a66c06
TV
95372020-04-14 Tom de Vries <tdevries@suse.de>
9538
9539 PR symtab/25720
9540 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9541 with NULL symbol_matcher and lookup_name.
9542 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9543 and lookup_name.
9544 * dwarf2/read.c (dw2_expand_symtabs_matching)
9545 (dw2_debug_names_expand_symtabs_matching): Same.
9546 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9547 Make lookup_name a pointer. Update comment.
9548 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9549 lookup_name being a pointer.
9550 * symfile.c (expand_symtabs_matching): Same.
9551 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9552 * linespec.c (iterate_over_all_matching_symtabs): Same.
9553
400b5eca
TT
95542020-04-13 Tom Tromey <tom@tromey.com>
9555
9556 * run-on-main-thread.c: Update include.
9557 * unittests/main-thread-selftests.c: Update include.
9558 * tui/tui-win.c: Update include.
9559 * tui/tui-io.c: Update include.
9560 * tui/tui-interp.c: Update include.
9561 * tui/tui-hooks.c: Update include.
9562 * top.h: Update include.
9563 * top.c: Update include.
9564 * ser-base.c: Update include.
9565 * remote.c: Update include.
9566 * remote-notif.c: Update include.
9567 * remote-fileio.c: Update include.
9568 * record-full.c: Update include.
9569 * record-btrace.c: Update include.
9570 * python/python.c: Update include.
9571 * posix-hdep.c: Update include.
9572 * mingw-hdep.c: Update include.
9573 * mi/mi-main.c: Update include.
9574 * mi/mi-interp.c: Update include.
9575 * main.c: Update include.
9576 * linux-nat.c: Update include.
9577 * interps.c: Update include.
9578 * infrun.c: Update include.
9579 * inf-loop.c: Update include.
9580 * event-top.c: Update include.
9581 * event-loop.c: Move to ../gdbsupport/.
9582 * event-loop.h: Move to ../gdbsupport/.
9583 * async-event.h: Update include.
9584 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9585
93b54c8e
TT
95862020-04-13 Tom Tromey <tom@tromey.com>
9587
9588 * tui/tui-win.c: Include async-event.h.
9589 * remote.c: Include async-event.h.
9590 * remote-notif.c: Include async-event.h.
9591 * record-full.c: Include async-event.h.
9592 * record-btrace.c: Include async-event.h.
9593 * infrun.c: Include async-event.h.
9594 * event-top.c: Include async-event.h.
9595 * event-loop.h: Move some declarations to async-event.h.
9596 * event-loop.c: Don't include ser-event.h or top.h. Move some
9597 code to async-event.c.
9598 * async-event.h: New file.
9599 * async-event.c: New file.
9600 * Makefile.in (COMMON_SFILES): Add async-event.c.
9601 (HFILES_NO_SRCDIR): Add async-event.h.
9602
c1cd3163
TT
96032020-04-13 Tom Tromey <tom@tromey.com>
9604
9605 * utils.c (flush_streams): New function.
9606 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9607
29f2bf4f
TT
96082020-04-13 Tom Tromey <tom@tromey.com>
9609
9610 * event-loop.c (handle_file_event): Use warning, not
9611 printf_unfiltered.
9612
98029d02
TT
96132020-04-13 Tom Tromey <tom@tromey.com>
9614
9615 * event-loop.c: Include <chrono>.
9616
06cc9596
TT
96172020-04-13 Tom Tromey <tom@tromey.com>
9618
9619 * gdb_select.h: Move to ../gdbsupport/.
9620 * event-loop.c: Update include path.
9621 * top.c: Update include path.
9622 * ser-base.c: Update include path.
9623 * ui-file.c: Update include path.
9624 * ser-tcp.c: Update include path.
9625 * guile/scm-ports.c: Update include path.
9626 * posix-hdep.c: Update include path.
9627 * ser-unix.c: Update include path.
9628 * gdb_usleep.c: Update include path.
9629 * mingw-hdep.c: Update include path.
9630 * inflow.c: Update include path.
9631 * infrun.c: Update include path.
9632 * event-top.c: Update include path.
9633
8ae8e197
TT
96342020-04-13 Tom Tromey <tom@tromey.com>
9635
9636 * configure: Rebuild.
9637 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9638
58cf28e8
TT
96392020-04-13 Tom Tromey <tom@tromey.com>
9640
9641 * event-loop.h (start_event_loop): Don't declare.
9642 * event-loop.c (start_event_loop): Move...
9643 * main.c (start_event_loop): ...here. Now static.
9644
b7f999ae
SDJ
96452020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9646
9647 * MAINTAINERS: Update my email address.
9648
1085dfd4
KR
96492020-04-12 Kamil Rytarowski <n54@gmx.com>
9650
9651 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9652 IP_ALL.
9653
49d1d1f5
KR
96542020-04-12 Kamil Rytarowski <n54@gmx.com>
9655
9656 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 9657 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 9658
b4848d2a
KR
96592020-04-12 Kamil Rytarowski <n54@gmx.com>
9660
9661 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 9662 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 9663
51c133d5
KR
96642020-04-12 Kamil Rytarowski <n54@gmx.com>
9665
9666 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9667
54b8cbd0
KR
96682020-04-11 Kamil Rytarowski <n54@gmx.com>
9669
9670 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9671 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9672 (nbsd_nat_target::info_proc): New functions.
9673 * nbsd-nat.c (kinfo_get_vmmap): New function.
9674 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9675 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9676 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9677 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9678 functions.
9679 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9680 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9681 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9682 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9683 (KINFO_VME_FLAG_GROWS_DOWN): New.
9684
cf83625d
AS
96852020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9686
9687 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9688 bit shift.
9689
0c4311ab
TT
96902020-04-10 Tom Tromey <tromey@adacore.com>
9691
9692 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9693
3e65b3e9
TT
96942020-04-10 Tom Tromey <tromey@adacore.com>
9695
9696 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9697 separate debug files.
9698
13302e95
HD
96992020-04-10 Hannes Domani <ssbssa@yahoo.de>
9700
9701 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9702 Move to...
9703 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9704 ... here.
9705 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9706 Check for STATUS_WX86_BREAKPOINT.
9707 (windows_nat_target::wait): Same.
9708
bdfc1e8a
TV
97092020-04-10 Tom de Vries <tdevries@suse.de>
9710
9711 PR cli/25808
9712 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9713
f4460aec
SM
97142020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9715
9716 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9717 (Write After Approval): Remove Tom de Vries.
9718
a25198bb
BE
97192020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9720
9721 revert partially:
9722 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9723
aac66a4c
SM
9724 * buildsym.c (record_line): Fix undefined behavior and preserve
9725 lines at eof.
a25198bb 9726
206c98a6
KR
97272020-04-09 Kamil Rytarowski <n54@gmx.com>
9728
9729 * auxv.h (svr4_auxv_parse): New.
9730 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9731 and generic_auxv_parse.
9732 (svr4_auxv_parse): Add.
9733 * obsd-tdep.c: Include "auxv.h".
9734 (obsd_auxv_parse): Remove.
9735 (obsd_init_abi): Remove comment.
9736 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9737 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9738 * nbsd-tdep.c: Include "auxv.h".
9739 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9740
71fbdbaf
TT
97412020-04-08 Tom Tromey <tromey@adacore.com>
9742
9743 * nat/windows-nat.h (last_wait_event): Don't declare.
9744 (wait_for_debug_event): Update comment.
9745 * nat/windows-nat.c (last_wait_event): Now static.
9746
2c1d95e8
TT
97472020-04-08 Tom Tromey <tromey@adacore.com>
9748
9749 * windows-nat.c (wait_for_debug_event): Move to
9750 nat/windows-nat.c.
9751 * nat/windows-nat.h (wait_for_debug_event): Declare.
9752 * nat/windows-nat.c (wait_for_debug_event): Move from
9753 windows-nat.c. No longer static.
9754
d2977bc4
TT
97552020-04-08 Tom Tromey <tromey@adacore.com>
9756
9757 * windows-nat.c (get_windows_debug_event): Use
9758 fetch_pending_stop.
9759 * nat/windows-nat.h (fetch_pending_stop): Declare.
9760 * nat/windows-nat.c (fetch_pending_stop): New function.
9761
e758e19c
TT
97622020-04-08 Tom Tromey <tromey@adacore.com>
9763
9764 * windows-nat.c (windows_continue): Use matching_pending_stop and
9765 continue_last_debug_event.
9766 * nat/windows-nat.h (matching_pending_stop)
9767 (continue_last_debug_event): Declare.
9768 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9769 (matching_pending_stop, continue_last_debug_event): New
9770 functions.
9771
8d30e395
TT
97722020-04-08 Tom Tromey <tromey@adacore.com>
9773
9774 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9775 (handle_exception_result): Move to nat/windows-nat.h.
9776 (DEBUG_EXCEPTION_SIMPLE): Remove.
9777 (windows_nat::handle_ms_vc_exception): New function.
9778 (handle_exception): Move to nat/windows-nat.c.
9779 (get_windows_debug_event): Update.
9780 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9781 nat/windows-nat.c.
9782 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9783 (handle_exception_result): Move from windows-nat.c.
9784 (handle_exception): Declare.
9785 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9786 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9787 windows-nat.c.
9788
29de418d
TT
97892020-04-08 Tom Tromey <tromey@adacore.com>
9790
9791 * windows-nat.c (exception_count, event_count): Remove.
9792 (handle_exception, get_windows_debug_event)
9793 (do_initial_windows_stuff): Update.
9794
a816ba18
TT
97952020-04-08 Tom Tromey <tromey@adacore.com>
9796
9797 * windows-nat.c (windows_nat::handle_load_dll)
9798 (windows_nat::handle_unload_dll): Rename. No longer static.
9799 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9800 Declare.
9801
a00caa12
TT
98022020-04-08 Tom Tromey <tromey@adacore.com>
9803
9804 * complaints.h (stop_whining): Declare at top-level.
9805 (complaint): Don't declare stop_whining.
9806
d41b524f
TT
98072020-04-08 Tom Tromey <tromey@adacore.com>
9808
9809 * windows-nat.c (windows_nat::handle_output_debug_string):
9810 Rename. No longer static.
9811 * nat/windows-nat.h (handle_output_debug_string): Declare.
9812
3c76026d
TT
98132020-04-08 Tom Tromey <tromey@adacore.com>
9814
9815 * windows-nat.c (current_process_handle, current_process_id)
9816 (main_thread_id, last_sig, current_event, last_wait_event)
9817 (current_windows_thread, desired_stop_thread_id, pending_stops)
9818 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9819 (display_selectors, fake_create_process)
9820 (get_windows_debug_event): Update.
9821 * nat/windows-nat.h (current_process_handle, current_process_id)
9822 (main_thread_id, last_sig, current_event, last_wait_event)
9823 (current_windows_thread, desired_stop_thread_id, pending_stops)
9824 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9825 * nat/windows-nat.c (current_process_handle, current_process_id)
9826 (main_thread_id, last_sig, current_event, last_wait_event)
9827 (current_windows_thread, desired_stop_thread_id, pending_stops)
9828 (siginfo_er): New globals. Move from windows-nat.c.
9829
9d8679cc
TT
98302020-04-08 Tom Tromey <tromey@adacore.com>
9831
9832 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9833 (handle_load_dll): Update.
9834 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9835
28688adf
TT
98362020-04-08 Tom Tromey <tromey@adacore.com>
9837
9838 * windows-nat.c (enum thread_disposition_type): Move to
9839 nat/windows-nat.h.
9840 (windows_nat::thread_rec): Rename from thread_rec. No longer
9841 static.
9842 (windows_add_thread, windows_nat_target::fetch_registers)
9843 (windows_nat_target::store_registers, handle_exception)
9844 (windows_nat_target::resume, get_windows_debug_event)
9845 (windows_nat_target::get_tib_address)
9846 (windows_nat_target::thread_name)
9847 (windows_nat_target::thread_alive): Update.
9848 * nat/windows-nat.h (enum thread_disposition_type): Move from
9849 windows-nat.c.
9850 (thread_rec): Declare.
9851
4834dad0
TT
98522020-04-08 Tom Tromey <tromey@adacore.com>
9853
9854 * windows-nat.c: Add "using namespace".
9855 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9856 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9857
65bafd5b
TT
98582020-04-08 Tom Tromey <tromey@adacore.com>
9859
9860 * nat/windows-nat.h (struct windows_thread_info): Declare
9861 destructor.
9862 * nat/windows-nat.c (~windows_thread_info): New.
9863
0a4afda3
TT
98642020-04-08 Tom Tromey <tromey@adacore.com>
9865
9866 PR gdb/22992
9867 * windows-nat.c (current_event): Update comment.
9868 (last_wait_event, desired_stop_thread_id): New globals.
9869 (struct pending_stop): New.
9870 (pending_stops): New global.
9871 (windows_nat_target) <stopped_by_sw_breakpoint>
9872 <supports_stopped_by_sw_breakpoint>: New methods.
9873 (windows_fetch_one_register): Add assertions. Adjust PC.
9874 (windows_continue): Handle pending stops. Suspend other threads
9875 when stepping. Use last_wait_event
9876 (wait_for_debug_event): New function.
9877 (get_windows_debug_event): Use wait_for_debug_event. Handle
9878 pending stops. Queue spurious stops.
9879 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9880 (windows_nat_target::kill): Use wait_for_debug_event.
9881 * nat/windows-nat.h (struct windows_thread_info)
9882 <stopped_at_software_breakpoint>: New field.
9883 * nat/windows-nat.c (windows_thread_info::resume): Clear
9884 stopped_at_software_breakpoint.
9885
8e61ebec
TT
98862020-04-08 Tom Tromey <tromey@adacore.com>
9887
9888 * windows-nat.c (enum thread_disposition_type): New.
9889 (thread_rec): Replace "get_context" parameter with "disposition";
9890 change type.
9891 (windows_add_thread, windows_nat_target::fetch_registers)
9892 (windows_nat_target::store_registers, handle_exception)
9893 (windows_nat_target::resume, get_windows_debug_event)
9894 (windows_nat_target::get_tib_address)
9895 (windows_nat_target::thread_name)
9896 (windows_nat_target::thread_alive): Update.
9897
98a03287
TT
98982020-04-08 Tom Tromey <tromey@adacore.com>
9899
9900 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9901 (windows_continue): Use windows_continue::resume.
9902 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9903 resume>: Declare new methods.
9904 * nat/windows-nat.c: New file.
9905 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9906
7c7411bc
TT
99072020-04-08 Tom Tromey <tromey@adacore.com>
9908
9909 * windows-nat.c (windows_add_thread, windows_delete_thread)
9910 (windows_nat_target::fetch_registers)
9911 (windows_nat_target::store_registers, fake_create_process)
9912 (windows_nat_target::resume, windows_nat_target::resume)
9913 (get_windows_debug_event, windows_nat_target::wait)
9914 (windows_nat_target::pid_to_str)
9915 (windows_nat_target::get_tib_address)
9916 (windows_nat_target::get_ada_task_ptid)
9917 (windows_nat_target::thread_name)
9918 (windows_nat_target::thread_alive): Use lwp, not tid.
9919
2950fdf7
TT
99202020-04-08 Tom Tromey <tromey@adacore.com>
9921
9922 * windows-nat.c (handle_exception)
9923 (windows_nat_target::thread_name): Update.
9924 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9925 <name>: Now unique_xmalloc_ptr.
9926
62fe396b
TT
99272020-04-08 Tom Tromey <tromey@adacore.com>
9928
9929 * windows-nat.c (thread_rec)
9930 (windows_nat_target::fetch_registers): Update.
9931 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9932 Update comment.
9933 <debug_registers_changed, reload_context>: Now bool.
9934
e9534bd2
TT
99352020-04-08 Tom Tromey <tromey@adacore.com>
9936
9937 * windows-nat.c (windows_add_thread): Use new.
9938 (windows_init_thread_list, windows_delete_thread): Use delete.
9939 (get_windows_debug_event): Update.
9940 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9941 destructor, and initializers.
9942
ae1f8880
TT
99432020-04-08 Tom Tromey <tromey@adacore.com>
9944
9945 * windows-nat.c (struct windows_thread_info): Remove.
9946 * nat/windows-nat.h: New file.
9947
55a1e039
TT
99482020-04-08 Tom Tromey <tromey@adacore.com>
9949
9950 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9951 (thread_rec, windows_add_thread, windows_delete_thread)
9952 (windows_continue): Update.
9953
93366324
TT
99542020-04-08 Tom Tromey <tromey@adacore.com>
9955
9956 * windows-nat.c (struct windows_thread_info): Remove typedef.
9957 (thread_head): Remove.
9958 (thread_list): New global.
9959 (thread_rec, windows_add_thread, windows_init_thread_list)
9960 (windows_delete_thread, windows_continue): Update.
9961
0f2265e2
SM
99622020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9963
9964 * windows-tdep.h (windows_init_abi): Add comment.
9965 (cygwin_init_abi): New declaration.
9966 * windows-tdep.c: Split signal enumeration in two, one for
9967 Windows and one for Cygwin.
9968 (windows_gdb_signal_to_target): Only deal with signal of the
9969 Windows OS ABI.
9970 (cygwin_gdb_signal_to_target): New function.
9971 (windows_init_abi): Rename to windows_init_abi_common, don't set
9972 gdb_signal_to_target gdbarch method. Add new new function with
9973 this name.
9974 (cygwin_init_abi): New function.
9975 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9976 comment. Don't call windows_init_abi.
9977 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9978 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9979 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9980 i386_windows_init_abi_common, don't call windows_init_abi. Add
9981 a new function of this name.
9982 (i386_cygwin_init_abi): New function.
9983 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9984 OS ABI Cygwin.
9985
3810f182
SM
99862020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9987
9988 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9989 parameter.c.
9990 (dwarf2_read_gdb_index): Update.
9991
063f8e80
KR
99922020-04-07 Kamil Rytarowski <n54@gmx.com>
9993
9994 * nbsd-tdep.c: Include "objfiles.h".
9995 (nbsd_skip_solib_resolver): New.
9996 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9997
85a9510c 99982020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9999
10000 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10001 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10002 with DW_LLE_base_addressx are being emitted in DWARFv5.
10003 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10004 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10005 unsigned integer.
10006
9fc3eaae 100072020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10008
10009 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10010 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10011 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10012 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10013 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10014 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10015 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10016
10017
41144253 100182020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10019
10020 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10021 (read_loclist_index): New function definition.
10022 (lookup_loclist_base): New function definition.
10023 (read_loclist_header): New function definition.
10024 (dwarf2_cu): Add loclist_base and loclist_header field.
10025 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10026 (read_full_die_1): Read the value of DW_AT_loclists_base.
10027 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10028 (read_attribute_value): Handle DW_FORM_loclistx.
10029 (skip_one_die): Handle DW_FORM_loclistx.
10030 (loclist_header): New structure declaration.
10031 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10032
9f4e76a4
SM
100332020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10034
10035 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10036 constructor. Remove `addr` parameter from other constructor and
10037 add `per_cu` parameter.
10038 * dwarf2/read.c (create_partial_symtab): Update.
10039
25c11aca
TV
100402020-04-07 Tom de Vries <tdevries@suse.de>
10041
10042 PR symtab/25796
10043 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10044 (partial_die_info::fixup): Inherit has_const_value.
10045
5707e24b
TV
100462020-04-07 Tom de Vries <tdevries@suse.de>
10047
10048 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10049 symbols without address.
10050
05f00e22
KR
100512020-04-06 Kamil Rytarowski <n54@gmx.com>
10052
10053 * nbsd-nat.h (struct thread_info): Add forward declaration.
10054 (nbsd_nat_target::thread_alive): Add.
10055 (nbsd_nat_target::thread_name): Likewise.
10056 (nbsd_nat_target::update_thread_list): Likewise.
10057 (update_thread_list::post_attach): Likewise.
10058 (post_attach::pid_to_str): Likewise.
10059 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10060 (nbsd_thread_lister): Add.
10061 (nbsd_nat_target::thread_alive): Likewise.
10062 (nbsd_nat_target::thread_name): Likewise.
10063 (nbsd_add_threads): Likewise.
10064 (update_thread_list::post_attach): Likewise.
10065 (nbsd_nat_target::update_thread_list): Likewise.
10066 (post_attach::pid_to_str): Likewise.
10067
6ee448cc
TT
100682020-04-06 Tom Tromey <tromey@adacore.com>
10069
10070 * ada-valprint.c (print_variant_part): Extract the variant field.
10071 (print_field_values): Use the field as the outer value when
10072 recursing.
10073
dea34e8c
TT
100742020-04-06 Tom Tromey <tromey@adacore.com>
10075
10076 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10077 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10078 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10079 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10080 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10081
93689ce9
TT
100822020-04-06 Tom Tromey <tromey@adacore.com>
10083
10084 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10085 TYPE_CODE_ERROR.
10086
79743962
KR
100872020-04-06 Kamil Rytarowski <n54@gmx.com>
10088
10089 * nbsd-tdep.c: Include "gdbarch.h".
10090 Define enum with NetBSD signal numbers.
10091 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10092 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10093 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10094 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10095 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10096 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10097 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10098 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10099 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10100 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10101 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10102 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10103
9e7c9a03
HD
101042020-04-03 Hannes Domani <ssbssa@yahoo.de>
10105
10106 PR gdb/25325
10107 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10108
d9e49b61
TT
101092020-04-03 Tom Tromey <tromey@adacore.com>
10110
10111 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10112 Read constant block.
10113
e0fc5c3f
SM
101142020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10115
10116 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10117 (gdb_bfd_get_full_section_contents): New declaration.
10118 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10119 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10120 gdb_bfd_get_full_section_contents.
10121
e2ff18a0
SM
101222020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10123
10124 * exec.c (build_section_table): Replace internal_error with
10125 gdb_assert.
10126 (section_table_xfer_memory_partial): Likewise.
10127 * mdebugread.c (parse_partial_symbols): Likewise.
10128 * psymtab.c (lookup_partial_symbol): Likewise.
10129 * utils.c (wrap_here): Likewise.
10130
0830d301
TT
101312020-04-02 Tom Tromey <tromey@adacore.com>
10132
10133 * f-lang.c (build_fortran_types): Use arch_type to initialize
10134 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10135
e7da7f8f
TT
101362020-04-02 Tom Tromey <tromey@adacore.com>
10137
10138 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10139 of attributes.
10140
c90d28ac
AB
101412020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10142 Bernd Edlinger <bernd.edlinger@hotmail.de>
10143 Tom Tromey <tromey@adacore.com>
10144
10145 * buildsym.c (buildsym_compunit::record_line): Remove
10146 deduplication code.
10147
1aa98955
TV
101482020-04-02 Tom de Vries <tdevries@suse.de>
10149
10150 PR ada/24671
10151 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10152
d3214198
TV
101532020-04-02 Tom de Vries <tdevries@suse.de>
10154
10155 * dwarf2/read.c (dwarf2_gdb_index_functions,
10156 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10157 NULL.
10158 * psymtab.c (psym_lookup_global_symbol_language): New function.
10159 (psym_functions): Init psym_lookup_global_symbol_language with
10160 psym_lookup_global_symbol_language.
10161 * symfile-debug.c (debug_sym_quick_functions): Init
10162 lookup_global_symbol_language with NULL.
10163 * symfile.c (set_initial_language): Remove fixme comment.
10164 * symfile.h (struct quick_symbol_functions): Add
10165 lookup_global_symbol_language.
10166 * symtab.c (find_quick_global_symbol_language): New function.
10167 (find_main_name): Use find_quick_global_symbol_language.
10168
2836752f
SM
101692020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10170
10171 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10172
64dc2d4b
BE
101732020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10174
10175 * buildsym.c (record_line): Fix undefined behavior and preserve
10176 lines at eof.
10177
bbe3dc41
BE
101782020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10179
10180 * buildsym.c (record_line): Fix the resizing condition.
10181
6b4a335b
TT
101822020-04-01 Tom Tromey <tom@tromey.com>
10183
10184 * value.h (value_literal_complex): Add comment.
10185 * valops.c (value_literal_complex): Refer to value.h.
10186
3638a098
TT
101872020-04-01 Tom Tromey <tom@tromey.com>
10188
10189 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10190 (scalar_type): New rule, from typebase.
10191 (typebase): Use scalar_type. Recognize complex types.
10192 (field_name): Handle FLOAT_KEYWORD.
10193 (ident_tokens): Add _Complex and __complex__.
10194
c34e8714
TT
101952020-04-01 Tom Tromey <tom@tromey.com>
10196
10197 PR exp/25299:
10198 * valarith.c (promotion_type, complex_binop): New functions.
10199 (scalar_binop): Handle complex numbers. Use promotion_type.
10200 (value_pos, value_neg, value_complement): Handle complex numbers.
10201
fa649bb7
TT
102022020-04-01 Tom Tromey <tom@tromey.com>
10203
10204 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10205 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10206 (parse_number): Handle complex numbers.
10207
981c08ce
TT
102082020-04-01 Tom Tromey <tom@tromey.com>
10209
10210 * c-valprint.c (c_decorations): Change complex suffix to "i".
10211
4c99290d
TT
102122020-04-01 Tom Tromey <tom@tromey.com>
10213
10214 * valprint.c (generic_value_print_complex): Use accessors.
10215 * value.h (value_real_part, value_imaginary_part): Declare.
10216 * valops.c (value_real_part, value_imaginary_part): New
10217 functions.
10218 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10219
5b930b45
TT
102202020-04-01 Tom Tromey <tom@tromey.com>
10221
10222 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10223 (read_range_type): Update.
10224 * mdebugread.c (basic_type): Update.
10225 * go-lang.c (build_go_types): Use init_complex_type.
10226 * gdbtypes.h (struct main_type) <complex_type>: New member.
10227 (init_complex_type): Update.
10228 (arch_complex_type): Don't declare.
10229 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10230 Make name if none given. Use alloc_type_copy. Look for cached
10231 complex type.
10232 (arch_complex_type): Remove.
10233 (gdbtypes_post_init): Use init_complex_type.
10234 * f-lang.c (build_fortran_types): Use init_complex_type.
10235 * dwarf2/read.c (read_base_type): Update.
10236 * d-lang.c (build_d_types): Use init_complex_type.
10237 * ctfread.c (read_base_type): Update.
10238
53cccef1
TBA
102392020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10240
10241 * infrun.c (stop_all_threads): Update assertion, plus when
10242 stopping threads, take into account that we might be trying
10243 to stop an all-stop target.
10244 (stop_waiting): Call 'stop_all_threads' if there exists a
10245 non-stop target.
10246
a0714d30
TBA
102472020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10248
10249 * target.h (exists_non_stop_target): New function declaration.
10250 * target.c (exists_non_stop_target): New function.
10251
60e22c1e
HD
102522020-04-01 Hannes Domani <ssbssa@yahoo.de>
10253
10254 PR gdb/24789
10255 * eval.c (is_integral_or_integral_reference): New function.
10256 (evaluate_subexp_standard): Allow integer references in
10257 pointer arithmetic.
10258
e139a727
TBA
102592020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10260
10261 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10262 check for no ptid in the stop reply when the target is non-stop.
10263
e0802d59
TT
102642020-04-01 Tom Tromey <tromey@adacore.com>
10265
10266 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10267 "name" parameter to rvalue reference. Initialize m_name_holder.
10268 <lookup_name_info>: New overloads.
10269 <name>: Return gdb::string_view.
10270 <c_str>: New method.
10271 <make_ignore_params>: Update.
10272 <search_name_hash>: Update.
10273 <language_lookup_name>: Return const char *.
10274 <m_name>: Change type.
10275 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10276 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10277 (lookup_name_info::match_any): Update.
10278 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10279 Update.
10280 * minsyms.c (linkage_name_str): Update.
10281 * language.c (default_symbol_name_matcher): Update.
10282 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10283 Update.
10284 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10285 (ada_lookup_name_info::ada_lookup_name_info): Update.
10286 (literal_symbol_name_matcher): Update.
10287
8c072cb6
TT
102882020-04-01 Tom Tromey <tromey@adacore.com>
10289
10290 * psymtab.c (psymtab_search_name): Remove function.
10291 (psym_lookup_symbol): Create search name and lookup name here.
10292 (lookup_partial_symbol): Remove "name" parameter; add
10293 lookup_name.
10294 (psym_expand_symtabs_for_function): Update.
10295
6f29a534
TT
102962020-03-31 Joel Jones <joelkevinjones@gmail.com>
10297
10298 PR tui/25597:
10299 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10300
af62665e
TT
103012020-03-31 Tom Tromey <tromey@adacore.com>
10302
10303 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10304 memcpy.
10305
d1a89da5
NC
103062020-03-30 Nelson Chu <nelson.chu@sifive.com>
10307
10308 * features/riscv/32bit-csr.xml: Regenerated.
10309 * features/riscv/64bit-csr.xml: Regenerated.
10310
d8af9068
TT
103112020-03-30 Tom Tromey <tromey@adacore.com>
10312
10313 * ada-valprint.c (print_variant_part): Update.
10314 * ada-lang.h (ada_which_variant_applies): Update.
10315 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10316 outer_valaddr parameters; replace with "outer" value parameter.
10317 (to_fixed_variant_branch_type): Update.
10318
227c0bf4
PFC
103192020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10320
10321 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10322 <list>. Remove inclusion of observable.h.
10323 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10324 (struct arch_lwp_info): New struct.
10325 (class ppc_linux_dreg_interface): New class.
10326 (struct ppc_linux_process_info): New struct.
10327 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10328 <low_new_clone, low_forget_process, low_prepare_to_resume>
10329 <copy_thread_dreg_state, mark_thread_stale>
10330 <mark_debug_registers_changed, register_hw_breakpoint>
10331 <clear_hw_breakpoint, register_wp, clear_wp>
10332 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10333 <num_memory_accesses, get_trigger_type>
10334 <create_watchpoint_request, hwdebug_point_cmp>
10335 <init_arch_lwp_info, get_arch_lwp_info>
10336 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10337 methods.
10338 <struct ptid_hash>: New inner struct.
10339 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10340 members.
10341 (saved_dabr_value, hwdebug_info, max_slots_number)
10342 (struct hw_break_tuple, struct thread_points, ppc_threads)
10343 (have_ptrace_hwdebug_interface)
10344 (hwdebug_find_thread_points_by_tid)
10345 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10346 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10347 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10348 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10349 use m_dreg_interface.
10350 (hwdebug_point_cmp): Change to...
10351 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10352 reference arguments instead of pointers.
10353 (ppc_linux_nat_target::ranged_break_num_registers): Use
10354 m_dreg_interface.
10355 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10356 m_dreg_interface. Call register_hw_breakpoint.
10357 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10358 m_dreg_interface. Call clear_hw_breakpoint.
10359 (get_trigger_type): Change to...
10360 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10361 comment.
10362 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10363 use m_dreg_interface. Call register_hw_breakpoint.
10364 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10365 use m_dreg_interface. Call clear_hw_breakpoint.
10366 (can_use_watchpoint_cond_accel): Change to...
10367 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10368 method. Update comment, use m_dreg_interface and
10369 m_process_info.
10370 (calculate_dvc): Change to...
10371 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10372 m_dreg_interface.
10373 (num_memory_accesses): Change to...
10374 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10375 (check_condition): Change to...
10376 (ppc_linux_nat_target::check_condition): ...this method.
10377 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10378 comment, use m_dreg_interface.
10379 (create_watchpoint_request): Change to...
10380 (ppc_linux_nat_target::create_watchpoint_request): ...this
10381 method. Use m_dreg_interface.
10382 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10383 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10384 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10385 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10386 (ppc_linux_nat_target::low_forget_process)
10387 (ppc_linux_nat_target::low_new_fork)
10388 (ppc_linux_nat_target::low_new_clone)
10389 (ppc_linux_nat_target::low_delete_thread)
10390 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10391 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10392 only call mark_thread_stale.
10393 (ppc_linux_thread_exit): Remove.
10394 (ppc_linux_nat_target::stopped_data_address): Change to...
10395 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10396 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10397 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10398 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10399 comment. Call low_stopped_data_address.
10400 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10401 m_dreg_interface.
10402 (ppc_linux_nat_target::masked_watch_num_registers): Use
10403 m_dreg_interface.
10404 (ppc_linux_nat_target::copy_thread_dreg_state)
10405 (ppc_linux_nat_target::mark_thread_stale)
10406 (ppc_linux_nat_target::mark_debug_registers_changed)
10407 (ppc_linux_nat_target::register_hw_breakpoint)
10408 (ppc_linux_nat_target::clear_hw_breakpoint)
10409 (ppc_linux_nat_target::register_wp)
10410 (ppc_linux_nat_target::clear_wp)
10411 (ppc_linux_nat_target::init_arch_lwp_info)
10412 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10413 (_initialize_ppc_linux_nat): Remove observer callback.
10414
4db10d8f
PFC
104152020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10416
10417 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10418 (ppc_linux_nat_target::auxv_parse)
10419 (ppc_linux_nat_target::read_description)
10420 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10421 Move up.
10422
1310c1b0
PFC
104232020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10424
10425 * linux-nat.h (low_new_clone): New method.
10426 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10427
69b037c3
SM
104282020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10429
10430 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10431 (dbx_expand_psymtab): ... this.
10432 (start_psymtab): Update.
10433 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10434 (mdebug_expand_psymtab): ... this.
10435 (parse_partial_symbols): Update.
10436 (new_psymtab): Update.
10437 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10438 (xcoff_expand_psymtab): ... this.
10439 (xcoff_start_psymtab): Update.
10440
48993951
SM
104412020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10442
10443 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10444 <expand_dependencies>: ... this.
10445 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10446 (partial_symtab::expand_dependencies): ... this.
10447 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10448 Update.
10449 (dwarf2_psymtab::expand_psymtab): Update.
10450 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10451 * mdebugread.c (psymtab_to_symtab_1): Update.
10452 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10453
3ad83046
SM
104542020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10455
10456 * psympriv.h (discard_psymtab): Remove.
10457 * dbxread.c (dbx_end_psymtab): Update.
10458 * xcoffread.c (xcoff_end_psymtab): Update.
10459
4d1b9ab6
TT
104602020-03-28 Tom Tromey <tom@tromey.com>
10461
10462 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10463 comment.
10464
f1749218
TT
104652020-03-28 Tom Tromey <tom@tromey.com>
10466
10467 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10468
ebea7626
HD
104692020-03-27 Hannes Domani <ssbssa@yahoo.de>
10470
10471 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10472
a879b4d5
JB
104732020-03-26 John Baldwin <jhb@FreeBSD.org>
10474
10475 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10476
0826b30a
TT
104772020-03-26 Tom Tromey <tom@tromey.com>
10478
10479 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10480 (mark_common_block_symbol_computed, read_tag_string_type)
10481 (attr_to_dynamic_prop, read_subrange_type): Update.
10482 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10483 to be methods on struct attribute.
10484 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10485 (read_call_site_scope, partial_die_info::read)
10486 (partial_die_info::read, lookup_die_type, follow_die_ref):
10487 Update.
10488 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10489 from dwarf2_get_ref_die_offset.
10490 (attribute::constant_value): New method, from
10491 dwarf2_get_attr_constant_value.
10492 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10493 Declare method.
10494 <constant_value>: New method.
10495
2b2558bf
TT
104962020-03-26 Tom Tromey <tom@tromey.com>
10497
10498 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10499 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10500 (dwarf_type_encoding_name): Move to stringify.c.
10501 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10502 * dwarf2/stringify.c: New file.
10503 * dwarf2/stringify.h: New file.
10504
eeb64781
TT
105052020-03-26 Tom Tromey <tom@tromey.com>
10506
10507 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10508 Rewrite.
10509
a39fdb41
TT
105102020-03-26 Tom Tromey <tom@tromey.com>
10511
10512 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10513 methods.
10514 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10515 (lookup_ranges_base): Likewise.
10516 (read_cutu_die_from_dwo, read_full_die_1): Update.
10517
436c571c
TT
105182020-03-26 Tom Tromey <tom@tromey.com>
10519
10520 * dwarf2/read.c (read_import_statement, read_file_scope)
10521 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10522 (read_lexical_block_scope, read_call_site_scope)
10523 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10524 (handle_struct_member_die, process_structure_scope)
10525 (update_enumeration_type_from_children)
10526 (process_enumeration_scope, read_array_type, read_common_block)
10527 (read_namespace, read_module, read_subroutine_type): Update.
10528 (sibling_die): Remove.
10529
052c8bb8
TT
105302020-03-26 Tom Tromey <tom@tromey.com>
10531
10532 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10533 (build_type_psymtabs_reader, read_structure_type)
10534 (read_enumeration_type, read_full_die_1): Update.
10535 (dwarf2_attr_no_follow): Move to die.h.
10536 * dwarf2/die.h (struct die_info) <attr>: New method.
10537
2b24b6e4
TT
105382020-03-26 Tom Tromey <tom@tromey.com>
10539
10540 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10541 <base_address>: Now an optional.
10542 (dwarf2_find_base_address, dwarf2_rnglists_process)
10543 (dwarf2_ranges_process, fill_in_loclist_baton)
10544 (dwarf2_symbol_mark_computed): Update.
10545
c2d50fd0
TT
105462020-03-26 Tom Tromey <tom@tromey.com>
10547
10548 * dwarf2/read.c (struct die_info): Move to die.h.
10549 * dwarf2/die.h: New file.
10550
0df7ad3a
TT
105512020-03-26 Tom Tromey <tom@tromey.com>
10552
10553 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10554 * dwarf2/read.c
10555 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10556 Move to line-header.c.
10557 (read_checked_initial_length_and_offset, read_formatted_entries):
10558 Likewise.
10559 (dwarf_decode_line_header): Split into two.
10560 * dwarf2/line-header.c
10561 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10562 Move from read.c.
10563 (read_checked_initial_length_and_offset, read_formatted_entries):
10564 Likewise.
10565 (dwarf_decode_line_header): New function, split from read.c.
10566
86c0bb4c
TT
105672020-03-26 Tom Tromey <tom@tromey.com>
10568
10569 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10570 Declare method.
10571 * dwarf2/read.c (read_attribute_value): Update.
10572 (dwarf2_per_objfile::read_line_string): Rename from
10573 read_indirect_line_string.
10574 (read_formatted_entries): Update.
10575
2ef46c2f
TT
105762020-03-26 Tom Tromey <tom@tromey.com>
10577
10578 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10579 variable.
10580
4f9c1eda
TT
105812020-03-26 Tom Tromey <tom@tromey.com>
10582
10583 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10584 const.
10585 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10586 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10587 parameter const.
10588
5a0e026f
TT
105892020-03-26 Tom Tromey <tom@tromey.com>
10590
10591 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10592 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10593 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10594 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10595
8844c11b
TT
105962020-03-26 Tom Tromey <tom@tromey.com>
10597
10598 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10599 file_names_size, file_full_name, file_file_name>: Use const.
10600 <file_name_at, file_names>: Add const overload.
10601 * dwarf2/line-header.c (line_header::file_file_name)
10602 (line_header::file_full_name): Update.
10603
c90ec28a
TT
106042020-03-26 Tom Tromey <tom@tromey.com>
10605
10606 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10607 (macro_start_file, consume_improper_spaces)
10608 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10609 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10610 (dwarf_decode_macros): Move to macro.c.
10611 * dwarf2/macro.c: New file.
10612 * dwarf2/macro.h: New file.
10613 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10614
4f44ae6c
TT
106152020-03-26 Tom Tromey <tom@tromey.com>
10616
10617 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10618 method.
10619 * dwarf2/section.c: New method. From
10620 read_indirect_string_at_offset_from.
10621 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10622 (read_indirect_string_at_offset_from): Move to section.c.
10623 (read_indirect_string_at_offset): Rewrite.
10624 (read_indirect_line_string_at_offset): Remove.
10625 (read_indirect_string, read_indirect_line_string)
10626 (dwarf_decode_macro_bytes): Update.
10627
a0194fa8
TT
106282020-03-26 Tom Tromey <tom@tromey.com>
10629
10630 * dwarf2/section.h (struct dwarf2_section_info)
10631 <overload_complaint>: Declare.
10632 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10633 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10634 Rename from dwarf2_section_buffer_overflow_complaint.
10635 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10636 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10637
3d27bbdb
TT
106382020-03-26 Tom Tromey <tom@tromey.com>
10639
10640 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10641 Declare.
10642 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10643 Move from read.c.
10644 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10645 to section.c.
10646
9eac9650
TT
106472020-03-26 Tom Tromey <tom@tromey.com>
10648
10649 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10650
bf80d710
TT
106512020-03-26 Tom Tromey <tom@tromey.com>
10652
10653 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10654 "builder".
10655 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10656 parameter.
10657 (dwarf_decode_macros): Update.
10658
0314b390
TT
106592020-03-26 Tom Tromey <tom@tromey.com>
10660
10661 * dwarf2/read.c (read_attribute_value): Update.
10662 (read_indirect_string_from_dwz): Move to dwz.c; change into
10663 method.
10664 (dwarf_decode_macro_bytes): Update.
10665 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10666 * dwarf2/dwz.c: New file.
10667 * Makefile.in (COMMON_SFILES): Add dwz.c.
10668
9fda78b6
TT
106692020-03-26 Tom Tromey <tom@tromey.com>
10670
10671 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10672 * dwarf2/read.c: Add include.
10673 * dwarf2/index-write.c: Add include.
10674 * dwarf2/index-cache.c: Add include.
10675 * dwarf2/dwz.h: New file.
10676
33aa3c10
TT
106772020-03-25 Tom Tromey <tom@tromey.com>
10678
10679 * compile/compile-object-load.c (get_out_value_type): Mention
10680 correct symbol name in error message.
10681
d503b685
HD
106822020-03-25 Hannes Domani <ssbssa@yahoo.de>
10683
10684 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10685
7b1eff95
TV
106862020-03-25 Tom de Vries <tdevries@suse.de>
10687
10688 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10689 * symmisc.c (dump_symtab_1): Print user and includes fields.
10690 (maintenance_info_symtabs): Same.
10691
dd895392
AB
106922020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10693
10694 PR gdb/25534
10695 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10696 (riscv_regcache_cooked_write): New function.
10697 (riscv_push_dummy_call): Use new function.
10698 (riscv_return_value): Likewise.
10699
5ab2fbf1
SM
107002020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10701
10702 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10703 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10704 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10705 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10706 * infrun.c (follow_fork): Likewise.
10707 (follow_fork_inferior): Likewise.
10708 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10709 * linux-nat.h (class linux_nat_target): Likewise.
10710 * remote.c (class remote_target) <follow_fork>: Likewise.
10711 (remote_target::follow_fork): Likewise.
10712 * target-delegates.c: Re-generate.
10713 * target.c (default_follow_fork): Likewise.
10714 (target_follow_fork): Likewise.
10715 * target.h (struct target_ops) <follow_fork>: Likewise.
10716 (target_follow_fork): Likewise.
10717
a64fafb5
TV
107182020-03-24 Tom de Vries <tdevries@suse.de>
10719
10720 * psymtab.c (maintenance_info_psymtabs): Print user field.
10721
fe26d3a3
TT
107222020-03-20 Tom Tromey <tromey@adacore.com>
10723
10724 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10725 const.
10726 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10727 const.
10728
c884cc46
SM
107292020-03-20 Simon Marchi <simon.marchi@efficios.com>
10730
10731 * ptrace.m4: Don't check for ptrace declaration.
10732 * config.in: Re-generate.
10733 * configure: Re-generate.
10734 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10735 not defined.
10736
1ff700c2
KR
107372020-03-20 Kamil Rytarowski <n54@gmx.com>
10738
10739 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10740 `PTRACE_TYPE_RET'.
10741 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10742 * sparc-nat.c (gdb_ptrace): Likewise.
10743 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10744
f7d4f0b1
TT
107452020-03-20 Tom Tromey <tromey@adacore.com>
10746
10747 * c-exp.y (lex_one_token): Fix assert.
10748
f67210ff
TT
107492020-03-20 Tom Tromey <tromey@adacore.com>
10750
10751 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10752 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10753 strncpy call.
10754
1773be9e
TT
107552020-03-20 Tom Tromey <tromey@adacore.com>
10756
10757 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10758
70304be9
TT
107592020-03-20 Tom Tromey <tromey@adacore.com>
10760
10761 * ada-valprint.c (print_variant_part): Remove parameters; switch
10762 to value-based API.
10763 (print_field_values): Likewise.
10764 (ada_val_print_struct_union): Likewise.
10765 (ada_value_print_1): Update.
10766
9faa006d
KR
107672020-03-20 Kamil Rytarowski <n54@gmx.com>
10768
10769 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10770 nbsd_nat_target instead of inf_ptrace_target.
10771 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10772 nbsd_nat_target.
10773
4a90f062
KR
107742020-03-20 Kamil Rytarowski <n54@gmx.com>
10775
10776 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10777 it to the ptrace call.
10778 * (store_registers): Likewise.
10779
107802020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
10781
10782 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10783 it to the ptrace call.
10784 * (store_registers): Likewise.
10785
2d07da27
LM
107862020-03-19 Luis Machado <luis.machado@linaro.org>
10787
10788 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10789 valid, fetch vg value from ptrace.
10790
f09db380
KR
107912020-03-19 Kamil Rytarowski <n54@gmx.com>
10792 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10793 * inf-ptrace.c: Likewise.
10794 * (gdb_ptrace): Add.
10795 * (inf_ptrace_target::resume): Update.
10796 * (inf_ptrace_target::xfer_partial): Likewise.
10797 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10798 * (inf_ptrace_peek_poke): Update.
10799
fcc7376e
KR
108002020-03-19 Kamil Rytarowski <n54@gmx.com>
10801
10802 * x86-bsd-nat.c (gdb_ptrace): New.
10803 * (x86bsd_dr_set): Add new argument `ptid'.
10804 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10805 x86bsd_dr_set_addr): Update.
10806
cada5fc9
AB
108072020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10808
10809 * remote.c (remote_target::process_stop_reply): Handle events for
10810 all threads differently.
10811
19a2740f
AB
108122020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10813
10814 * completer.c (completion_tracker::remove_completion): Define new
10815 function.
10816 * completer.h (completion_tracker::remove_completion): Declare new
10817 function.
10818 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10819 when adding a C++ function symbol.
10820
724fd9ba
AB
108212020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10822
10823 * completer.c (completion_tracker::completion_hash_entry): Define
10824 new class.
10825 (advance_to_filename_complete_word_point): Call
10826 recompute_lowest_common_denominator.
10827 (completion_tracker::completion_tracker): Call discard_completions
10828 to setup the hash table.
10829 (completion_tracker::discard_completions): Allow for being called
10830 from the constructor, pass new equal function, and element deleter
10831 when constructing the hash table. Initialise new class member
10832 variables.
10833 (completion_tracker::maybe_add_completion): Remove use of
10834 m_entries_vec, and store more information into m_entries_hash.
10835 (completion_tracker::recompute_lcd_visitor): New function, most
10836 content taken from...
10837 (completion_tracker::recompute_lowest_common_denominator):
10838 ...here, this now just visits each item in the hash calling the
10839 above visitor.
10840 (completion_tracker::build_completion_result): Remove use of
10841 m_entries_vec, call recompute_lowest_common_denominator.
10842 * completer.h (completion_tracker::have_completions): Remove use
10843 of m_entries_vec.
10844 (completion_tracker::completion_hash_entry): Declare new class.
10845 (completion_tracker::recompute_lowest_common_denominator): Change
10846 function signature.
10847 (completion_tracker::recompute_lcd_visitor): Declare new function.
10848 (completion_tracker::m_entries_vec): Delete.
10849 (completion_tracker::m_entries_hash): Initialize to NULL.
10850 (completion_tracker::m_lowest_common_denominator_valid): New
10851 member variable.
10852 (completion_tracker::m_lowest_common_denominator_max_length): New
10853 member variable.
10854
5a82b8a1
KR
108552020-03-17 Kamil Rytarowski <n54@gmx.com>
10856
10857 * regformats/regdef.h: Put reg in gdb namespace.
10858
fb516a69
KR
108592020-03-17 Kamil Rytarowski <n54@gmx.com>
10860
10861 * i386-bsd-nat.c (gdb_ptrace): New.
10862 * (i386bsd_fetch_inferior_registers,
10863 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10864 * (i386bsd_fetch_inferior_registers,
10865 i386bsd_store_inferior_registers) Use gdb_ptrace.
10866
1c0aa1fb
KR
108672020-03-17 Kamil Rytarowski <n54@gmx.com>
10868
10869 * amd64-bsd-nat.c (gdb_ptrace): New.
10870 * (amd64bsd_fetch_inferior_registers,
10871 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10872 * (amd64bsd_fetch_inferior_registers,
10873 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10874
5ccd2fb7
KR
108752020-03-17 Kamil Rytarowski <n54@gmx.com>
10876
10877 * user-regs.c (user_reg::read): Rename to...
10878 (user_reg::xread): ...this.
10879 * (append_user_reg): Rename argument `read' to `xread'.
10880 * (user_reg_add_builtin): Likewise.
10881 * (user_reg_add): Likewise.
10882 * (value_of_user_reg): Likewise.
10883
2108a63a
KR
108842020-03-17 Kamil Rytarowski <n54@gmx.com>
10885
10886 * sparc-nat.c (gdb_ptrace): New.
10887 * sparc-nat.c (sparc_fetch_inferior_registers)
10888 (sparc_store_inferior_registers) Remove obsolete comment.
10889 * sparc-nat.c (sparc_fetch_inferior_registers)
10890 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10891 * sparc-nat.c (sparc_fetch_inferior_registers)
10892 (sparc_store_inferior_registers) Use gdb_ptrace.
10893
a225c9a8
KR
108942020-03-17 Kamil Rytarowski <n54@gmx.com>
10895
10896 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10897 it to the ptrace call.
10898 * sh-nbsd-nat.c (store_registers): Likewise.
10899
98097623
KR
109002020-03-17 Kamil Rytarowski <n54@gmx.com>
10901
10902 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10903 nbsd_nat_target instead of inf_ptrace_target.
10904 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10905 nbsd_nat_target.
10906
9e38d619
KR
109072020-03-17 Kamil Rytarowski <n54@gmx.com>
10908
10909 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10910
a2ecbe9f
KR
109112020-03-17 Kamil Rytarowski <n54@gmx.com>
10912
10913 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10914 <sys/sysctl.h>.
10915 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10916
58990295
TV
109172020-03-17 Tom de Vries <tdevries@suse.de>
10918
10919 PR gdb/23710
10920 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10921 fields.
10922 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10923 fields.
10924 (process_imported_unit_die): Skip import of c++ CUs.
10925
771dd3a8
TT
109262020-03-16 Tom Tromey <tom@tromey.com>
10927
10928 * p-valprint.c (pascal_object_print_value): Initialize
10929 base_value.
10930
817a7585
AK
109312020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10932 Shahab Vahedi <shahab@synopsys.com>
10933
10934 * Makefile.in: Add arch/arc.o
10935 * configure.tgt: Likewise.
10936 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10937 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 10938 (arc_read_description): New function to cache target descriptions.
817a7585
AK
10939 * arc-tdep.h (arc_read_description): Add proto type.
10940 * arch/arc.c: New file.
10941 * arch/arc.h: Likewise.
10942 * features/Makefile: Replace old target descriptions with new.
10943 * features/arc-arcompact.c: Remove.
10944 * features/arc-arcompact.xml: Likewise.
10945 * features/arc-v2.c: Likewise
10946 * features/arc-v2.xml: Likewise
10947 * features/arc/aux-arcompact.xml: New file.
10948 * features/arc/aux-v2.xml: Likewise.
10949 * features/arc/core-arcompact.xml: Likewise.
10950 * features/arc/core-v2.xml: Likewise.
10951 * features/arc/aux-arcompact.c: Generate.
10952 * features/arc/aux-v2.c: Likewise.
10953 * features/arc/core-arcompact.c: Likewise.
10954 * features/arc/core-v2.c: Likewise.
10955 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10956
67430cd0
TT
109572020-03-16 Tom Tromey <tromey@adacore.com>
10958
10959 PR gdb/25663:
10960 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10961 putting value into bcache.
10962
30efb6c7
SM
109632020-03-16 Simon Marchi <simon.marchi@efficios.com>
10964
10965 PR gdb/21500
10966 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10967 to...
10968 (amd64_windows_init_abi_common): ... this. Don't set size of
10969 long type.
10970 (amd64_windows_init_abi): New function.
10971 (amd64_cygwin_init_abi): New function.
10972 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10973 the Cygwin OS ABI.
10974 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10975 comment.
10976
8db52437
SM
109772020-03-16 Simon Marchi <simon.marchi@efficios.com>
10978
10979 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10980 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10981 (pe_import_directory_entry): New struct type.
10982 (is_linked_with_cygwin_dll): New function.
10983 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10984 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10985 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10986
5982a56a
SM
109872020-03-16 Simon Marchi <simon.marchi@efficios.com>
10988
10989 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10990 i386_cygwin_core_osabi_sniffer.
10991
7a1998df
SM
109922020-03-16 Simon Marchi <simon.marchi@efficios.com>
10993
10994 * i386-cygwin-tdep.c: Rename to...
10995 * i386-windows-tdep.c: ... this.
10996 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10997 i386-windows-tdep.c.
10998 * configure.tgt: Likewise.
10999
053205cc
SM
110002020-03-16 Simon Marchi <simon.marchi@efficios.com>
11001
11002 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11003 * osabi.c (gdb_osabi_names): Add "Windows".
11004 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11005 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11006 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11007 i386_cygwin_osabi_sniffer.
11008 (_initialize_i386_cygwin_tdep): Register OS ABI
11009 GDB_OSABI_WINDOWS for i386.
11010 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11011 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11012 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11013 for x86-64.
11014 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11015 when the target matches '*-*-mingw*'.
11016
fe4b2ee6
SM
110172020-03-16 Simon Marchi <simon.marchi@efficios.com>
11018
11019 * defs.h (enum gdb_osabi): Move to...
11020 * osabi.h (enum gdb_osabi): ... here.
11021 * gdbarch.sh: Include osabi.h in gdbarch.h.
11022 * gdbarch.h: Re-generate.
11023
cb9b645d
SM
110242020-03-16 Simon Marchi <simon.marchi@efficios.com>
11025
11026 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11027 function.
11028 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11029
3293bbaf
TT
110302020-03-14 Tom Tromey <tom@tromey.com>
11031
11032 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11033 for C++.
11034 (c_type_print_modifier): Likewise. Add "language" parameter.
11035 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11036 (c_type_print_base_1): Update.
11037 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11038 constants.
11039 * type-stack.c (type_stack::insert): Handle tp_atomic and
11040 tp_restrict.
11041 (type_stack::follow_type_instance_flags): Likewise.
11042 (type_stack::follow_types): Likewise. Merge type-following code.
11043 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11044 (space_identifier, cv_with_space_id)
11045 (const_or_volatile_or_space_identifier_noopt)
11046 (const_or_volatile_or_space_identifier): Remove.
11047 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11048 rules.
11049 (ptr_operator, typebase): Update.
11050 (enum token_flag) <FLAG_C>: New constant.
11051 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11052 "_Atomic".
11053 (lex_one_token): Handle FLAG_C.
11054
154151a6
KR
110552020-03-14 Kamil Rytarowski <n54@gmx.com>
11056
11057 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11058 it to the ptrace call.
11059 * m68k-bsd-nat.c (store_registers): Likewise.
11060
bc107784
KR
110612020-03-14 Kamil Rytarowski <n54@gmx.com>
11062
11063 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11064 gdb_byte *.
11065 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11066 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11067 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11068
01a80117
KR
110692020-03-14 Kamil Rytarowski <n54@gmx.com>
11070
11071 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11072 nbsd_nat_target instead of inf_ptrace_target.
11073 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11074 nbsd_nat_target.
11075
f90280ca
KR
110762020-03-14 Kamil Rytarowski <n54@gmx.com>
11077
11078 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11079 register_t.
11080
6def66f1
KR
110812020-03-14 Kamil Rytarowski <n54@gmx.com>
11082
11083 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11084 it to the ptrace call.
11085 * alpha-bsd-nat.c (store_registers): Likewise.
11086
66eaca97
KR
110872020-03-14 Kamil Rytarowski <n54@gmx.com>
11088
11089 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11090 includes.
11091 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11092 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11093 fill_fpregset): Likewise.
11094
4fed520b
KR
110952020-03-14 Kamil Rytarowski <n54@gmx.com>
11096
11097 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11098 nbsd_nat_target instead of inf_ptrace_target.
11099 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11100 nbsd_nat_target.
11101
2190cf06
KR
111022020-03-14 Kamil Rytarowski <n54@gmx.com>
11103
11104 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11105 register_t.
11106
75c56d3d
KR
111072020-03-14 Kamil Rytarowski <n54@gmx.com>
11108
11109 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11110 it to the ptrace call.
11111 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11112 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11113 * arm-nbsd-nat.c (store_register): Likewise.
11114 * arm-nbsd-nat.c (store_regs): Likewise.
11115 * arm-nbsd-nat.c (store_fp_register): Likewise.
11116 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11117
6018d381
KR
111182020-03-14 Kamil Rytarowski <n54@gmx.com>
11119
11120 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11121 nbsd_nat_target instead of inf_ptrace_target.
11122 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11123 nbsd_nat_target.
11124
013f99f0
KR
111252020-03-14 Kamil Rytarowski <n54@gmx.com>
11126
11127 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11128 it to the ptrace call.
11129 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11130
12753073
KR
111312020-03-14 Kamil Rytarowski <n54@gmx.com>
11132
6227b330
KR
11133 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11134 it to the ptrace call.
11135 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11136
111372020-03-14 Kamil Rytarowski <n54@gmx.com>
11138
11139 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11140 gdb_byte *.
12753073
KR
11141 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11142
d5be5fa4
KR
111432020-03-14 Kamil Rytarowski <n54@gmx.com>
11144
11145 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11146 instead of inf_ptrace_target.
11147 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11148 nbsd_nat_target.
11149
8110f842
KR
111502020-03-14 Kamil Rytarowski <n54@gmx.com>
11151
11152 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11153 register_t.
11154
52feded7
KR
111552020-03-14 Kamil Rytarowski <n54@gmx.com>
11156
11157 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11158 register_t.
11159
25567eee
KR
111602020-03-14 Kamil Rytarowski <n54@gmx.com>
11161
11162 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11163 register_t.
11164
426a9c18
TT
111652020-03-13 Tom Tromey <tom@tromey.com>
11166
11167 * value.h (val_print): Don't declare.
11168 * valprint.h (val_print_array_elements)
11169 (val_print_scalar_formatted, generic_val_print): Don't declare.
11170 * valprint.c (generic_val_print_array): Take a struct value.
11171 (generic_val_print_ptr, generic_val_print_memberptr)
11172 (generic_val_print_bool, generic_val_print_int)
11173 (generic_val_print_char, generic_val_print_complex)
11174 (generic_val_print): Remove.
11175 (generic_value_print): Update.
11176 (do_val_print): Remove unused parameters. Don't call
11177 la_val_print.
11178 (val_print): Remove.
11179 (common_val_print): Update. Don't call value_check_printable.
11180 (val_print_scalar_formatted, val_print_array_elements): Remove.
11181 * rust-lang.c (rust_val_print): Remove.
11182 (rust_language_defn): Update.
11183 * p-valprint.c (pascal_val_print): Remove.
11184 (pascal_value_print_inner): Update.
11185 (pascal_object_print_val_fields, pascal_object_print_val):
11186 Remove.
11187 (pascal_object_print_static_field): Update.
11188 * p-lang.h (pascal_val_print): Don't declare.
11189 * p-lang.c (pascal_language_defn): Update.
11190 * opencl-lang.c (opencl_language_defn): Update.
11191 * objc-lang.c (objc_language_defn): Update.
11192 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11193 * m2-lang.h (m2_val_print): Don't declare.
11194 * m2-lang.c (m2_language_defn): Update.
11195 * language.h (struct language_defn) <la_val_print>: Remove.
11196 * language.c (unk_lang_value_print_inner): Rename. Change
11197 argument types.
11198 (unknown_language_defn, auto_language_defn): Update.
11199 * go-valprint.c (go_val_print): Remove.
11200 * go-lang.h (go_val_print): Don't declare.
11201 * go-lang.c (go_language_defn): Update.
11202 * f-valprint.c (f_val_print): Remove.
11203 * f-lang.h (f_value_print): Don't declare.
11204 * f-lang.c (f_language_defn): Update.
11205 * d-valprint.c (d_val_print): Remove.
11206 * d-lang.h (d_value_print): Don't declare.
11207 * d-lang.c (d_language_defn): Update.
11208 * cp-valprint.c (cp_print_value_fields)
11209 (cp_print_value_fields_rtti, cp_print_value): Remove.
11210 (cp_print_static_field): Update.
11211 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11212 (c_val_print_struct, c_val_print_union, c_val_print_int)
11213 (c_val_print_memberptr, c_val_print): Remove.
11214 * c-lang.h (c_val_print_array, cp_print_value_fields)
11215 (cp_print_value_fields_rtti): Don't declare.
11216 * c-lang.c (c_language_defn, cplus_language_defn)
11217 (asm_language_defn, minimal_language_defn): Update.
11218 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11219 (ada_val_print_enum): Take a struct value.
11220 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11221 (ada_val_print): Remove.
11222 (ada_value_print_1): Update.
11223 (printable_val_type): Remove.
11224 * ada-lang.h (ada_val_print): Don't declare.
11225 * ada-lang.c (ada_language_defn): Update.
11226
42331a1e
TT
112272020-03-13 Tom Tromey <tom@tromey.com>
11228
11229 * valprint.c (do_val_print): Update.
11230 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11231 a struct value.
11232 (value_to_value_object_no_release): Declare.
11233 * python/py-value.c (value_to_value_object_no_release): New
11234 function.
11235 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11236 struct value.
11237 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11238 function.
11239 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11240 a struct value.
11241 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11242 Declare.
11243 (gdbscm_apply_val_pretty_printer): Take a struct value.
11244 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11245 value.
11246 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11247 value.
11248 * extension-priv.h (struct extension_language_ops)
11249 <apply_val_pretty_printer>: Take a struct value.
11250 * cp-valprint.c (cp_print_value): Create a struct value.
11251 (cp_print_value): Update.
11252
3a916a97
TT
112532020-03-13 Tom Tromey <tom@tromey.com>
11254
11255 * ada-valprint.c (print_field_values): Call common_val_print.
11256
b59eac37
TT
112572020-03-13 Tom Tromey <tom@tromey.com>
11258
11259 * ada-valprint.c (val_print_packed_array_elements): Remove
11260 bitoffset and val parameters. Call common_val_print.
11261 (ada_val_print_string): Remove offset, address, and original_value
11262 parameters.
11263 (ada_val_print_array): Update.
11264 (ada_value_print_array): New function.
11265 (ada_value_print_1): Call it.
11266
03371129
TT
112672020-03-13 Tom Tromey <tom@tromey.com>
11268
11269 * ada-valprint.c (ada_value_print): Use common_val_print.
11270
2e088f8b
TT
112712020-03-13 Tom Tromey <tom@tromey.com>
11272
11273 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11274
39ef85a8
TT
112752020-03-13 Tom Tromey <tom@tromey.com>
11276
11277 * ada-valprint.c (ada_value_print_num): New function.
11278 (ada_value_print_1): Use it.
11279
b9fa6e07
TT
112802020-03-13 Tom Tromey <tom@tromey.com>
11281
11282 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11283
416595d6
TT
112842020-03-13 Tom Tromey <tom@tromey.com>
11285
11286 * ada-valprint.c (ada_value_print_ptr): New function.
11287 (ada_value_print_1): Use it.
11288
5b5e15ec
TT
112892020-03-13 Tom Tromey <tom@tromey.com>
11290
11291 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11292 call common_val_print.
11293 (ada_val_print_1): Update.
11294 (ada_value_print_1): New function.
11295 (ada_value_print_inner): Rewrite.
11296
fbf54e75
TT
112972020-03-13 Tom Tromey <tom@tromey.com>
11298
11299 * cp-valprint.c (cp_print_value_fields): Update.
11300 (cp_print_value): New function.
11301
64b653ca
TT
113022020-03-13 Tom Tromey <tom@tromey.com>
11303
11304 * m2-valprint.c (m2_value_print_inner): Use
11305 cp_print_value_fields.
11306 * cp-valprint.c (cp_print_value_fields): New function.
11307 * c-valprint.c (c_value_print_struct): New function.
11308 (c_value_print_inner): Use c_value_print_struct.
11309 * c-lang.h (cp_print_value_fields): Declare.
11310
6999f067
TT
113112020-03-13 Tom Tromey <tom@tromey.com>
11312
11313 * c-valprint.c (c_value_print_array): New function.
11314 (c_value_print_inner): Use it.
11315
ce80b8bd
TT
113162020-03-13 Tom Tromey <tom@tromey.com>
11317
11318 * c-valprint.c (c_value_print_memberptr): New function.
11319 (c_value_print_inner): Use it.
11320
2faac269
TT
113212020-03-13 Tom Tromey <tom@tromey.com>
11322
11323 * c-valprint.c (c_value_print_int): New function.
11324 (c_value_print_inner): Use it.
11325
da3e2c29
TT
113262020-03-13 Tom Tromey <tom@tromey.com>
11327
11328 * c-valprint.c (c_value_print_ptr): New function.
11329 (c_value_print_inner): Use it.
11330
50836231
TT
113312020-03-13 Tom Tromey <tom@tromey.com>
11332
11333 * c-valprint.c (c_value_print_inner): Rewrite.
11334
4f412b6e
TT
113352020-03-13 Tom Tromey <tom@tromey.com>
11336
11337 * valprint.c (generic_value_print_complex): New function.
11338 (generic_value_print): Use it.
11339
f5354008
TT
113402020-03-13 Tom Tromey <tom@tromey.com>
11341
11342 * valprint.c (generic_val_print_float): Don't call
11343 val_print_scalar_formatted.
11344 (generic_val_print, generic_value_print): Update.
11345
3eec3b05
TT
113462020-03-13 Tom Tromey <tom@tromey.com>
11347
11348 * valprint.c (generic_value_print_char): New function
11349 (generic_value_print): Use it.
11350
fdddfccb
TT
113512020-03-13 Tom Tromey <tom@tromey.com>
11352
11353 * valprint.c (generic_value_print_int): New function.
11354 (generic_value_print): Use it.
11355
6dde7521
TT
113562020-03-13 Tom Tromey <tom@tromey.com>
11357
11358 * valprint.c (generic_value_print_bool): New function.
11359 (generic_value_print): Use it.
11360
4112d2e6
TT
113612020-03-13 Tom Tromey <tom@tromey.com>
11362
11363 * valprint.c (generic_val_print_func): Simplify.
11364 (generic_val_print, generic_value_print): Update.
11365
65786af6
TT
113662020-03-13 Tom Tromey <tom@tromey.com>
11367
11368 * valprint.c (generic_val_print_flags): Remove.
11369 (generic_val_print, generic_value_print): Update.
11370 (val_print_type_code_flags): Add original_value parameter.
11371
40f3ce18
TT
113722020-03-13 Tom Tromey <tom@tromey.com>
11373
11374 * valprint.c (generic_val_print): Update.
11375 (generic_value_print): Update.
11376 * valprint.c (generic_val_print_enum): Don't call
11377 val_print_scalar_formatted.
11378
2a5b130b
TT
113792020-03-13 Tom Tromey <tom@tromey.com>
11380
11381 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11382 * valprint.c (generic_value_print_ptr): New function.
11383
abc66ce9
TT
113842020-03-13 Tom Tromey <tom@tromey.com>
11385
11386 * valprint.c (generic_value_print): Rewrite.
11387
07a32858
TT
113882020-03-13 Tom Tromey <tom@tromey.com>
11389
11390 * p-valprint.c (pascal_object_print_value_fields)
11391 (pascal_object_print_value): New functions.
11392
64d64d3a
TT
113932020-03-13 Tom Tromey <tom@tromey.com>
11394
11395 * p-valprint.c (pascal_value_print_inner): Rewrite.
11396
6a95a1f5
TT
113972020-03-13 Tom Tromey <tom@tromey.com>
11398
11399 * f-valprint.c (f_value_print_innner): Rewrite.
11400
59fcdac6
TT
114012020-03-13 Tom Tromey <tom@tromey.com>
11402
11403 * m2-valprint.c (m2_print_unbounded_array): New overload.
11404 (m2_print_unbounded_array): Update.
11405 (m2_print_array_contents): Take a struct value.
11406 (m2_value_print_inner): Rewrite.
11407
d133c3e1
TT
114082020-03-13 Tom Tromey <tom@tromey.com>
11409
11410 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11411 (d_value_print_inner): New function.
11412 * d-lang.h (d_value_print_inner): Declare.
11413 * d-lang.c (d_language_defn): Use d_value_print_inner.
11414
23b0f06b
TT
114152020-03-13 Tom Tromey <tom@tromey.com>
11416
11417 * go-valprint.c (go_value_print_inner): New function.
11418 * go-lang.h (go_value_print_inner): Declare.
11419 * go-lang.c (go_language_defn): Use go_value_print_inner.
11420
5f56f7cb
TT
114212020-03-13 Tom Tromey <tom@tromey.com>
11422
11423 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11424 API.
11425 (rust_val_print): Rewrite.
11426 (rust_value_print_inner): New function, from rust_val_print.
11427 (rust_language_defn): Use rust_value_print_inner.
11428
26792ee0
TT
114292020-03-13 Tom Tromey <tom@tromey.com>
11430
11431 * ada-valprint.c (ada_value_print_inner): New function.
11432 * ada-lang.h (ada_value_print_inner): Declare.
11433 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11434
24051bbe
TT
114352020-03-13 Tom Tromey <tom@tromey.com>
11436
11437 * f-valprint.c (f_value_print_innner): New function.
11438 * f-lang.h (f_value_print_innner): Declare.
11439 * f-lang.c (f_language_defn): Use f_value_print_innner.
11440
c0941be6
TT
114412020-03-13 Tom Tromey <tom@tromey.com>
11442
11443 * p-valprint.c (pascal_value_print_inner): New function.
11444 * p-lang.h (pascal_value_print_inner): Declare.
11445 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11446
62c4663d
TT
114472020-03-13 Tom Tromey <tom@tromey.com>
11448
11449 * m2-valprint.c (m2_value_print_inner): New function.
11450 * m2-lang.h (m2_value_print_inner): Declare.
11451 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11452
62182190
TT
114532020-03-13 Tom Tromey <tom@tromey.com>
11454
11455 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11456 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11457 * c-valprint.c (c_value_print_inner): New function.
11458 * c-lang.h (c_value_print_inner): Declare.
11459 * c-lang.c (c_language_defn, cplus_language_defn)
11460 (asm_language_defn, minimal_language_defn): Use
11461 c_value_print_inner.
11462
1e592a8a
TT
114632020-03-13 Tom Tromey <tom@tromey.com>
11464
11465 * p-valprint.c (pascal_object_print_value_fields): Now static.
11466 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11467
7fe471e9
TT
114682020-03-13 Tom Tromey <tom@tromey.com>
11469
11470 * c-valprint.c (c_val_print_array): Simplify.
11471
d121c6ce
TT
114722020-03-13 Tom Tromey <tom@tromey.com>
11473
11474 * valprint.c (value_print_array_elements): New function.
11475 * valprint.h (value_print_array_elements): Declare.
11476
4dba70ee
TT
114772020-03-13 Tom Tromey <tom@tromey.com>
11478
11479 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11480 * mips-tdep.c (mips_print_register): Use
11481 value_print_scalar_formatted.
11482
4f9ae810
TT
114832020-03-13 Tom Tromey <tom@tromey.com>
11484
11485 * valprint.h (value_print_scalar_formatted): Declare.
11486 * valprint.c (value_print_scalar_formatted): New function.
11487
156bfec9
TT
114882020-03-13 Tom Tromey <tom@tromey.com>
11489
11490 * valprint.h (generic_value_print): Declare.
11491 * valprint.c (generic_value_print): New function.
11492
2b4e573d
TT
114932020-03-13 Tom Tromey <tom@tromey.com>
11494
11495 * valprint.c (do_val_print): Call la_value_print_inner, if
11496 available.
11497 * rust-lang.c (rust_language_defn): Update.
11498 * p-lang.c (pascal_language_defn): Update.
11499 * opencl-lang.c (opencl_language_defn): Update.
11500 * objc-lang.c (objc_language_defn): Update.
11501 * m2-lang.c (m2_language_defn): Update.
11502 * language.h (struct language_defn) <la_value_print_inner>: New
11503 member.
11504 * language.c (unknown_language_defn, auto_language_defn): Update.
11505 * go-lang.c (go_language_defn): Update.
11506 * f-lang.c (f_language_defn): Update.
11507 * d-lang.c (d_language_defn): Update.
11508 * c-lang.c (c_language_defn, cplus_language_defn)
11509 (asm_language_defn, minimal_language_defn): Update.
11510 * ada-lang.c (ada_language_defn): Update.
11511
a1f6a07c
TT
115122020-03-13 Tom Tromey <tom@tromey.com>
11513
11514 * c-valprint.c (c_value_print): Use common_val_print.
11515
410cf315
TT
115162020-03-13 Tom Tromey <tom@tromey.com>
11517
11518 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11519
72a45c93
TT
115202020-03-13 Tom Tromey <tom@tromey.com>
11521
11522 * f-valprint.c (f77_print_array_1, f_val_print): Use
11523 common_val_print.
11524
040f66bd
TT
115252020-03-13 Tom Tromey <tom@tromey.com>
11526
11527 * riscv-tdep.c (riscv_print_one_register_info): Use
11528 common_val_print.
11529
a6e05a6c
TT
115302020-03-13 Tom Tromey <tom@tromey.com>
11531
11532 * mi/mi-main.c (output_register): Use common_val_print.
11533
3444c526
TT
115342020-03-13 Tom Tromey <tom@tromey.com>
11535
11536 * infcmd.c (default_print_one_register_info): Use
11537 common_val_print.
11538
c2a44efe
TT
115392020-03-13 Tom Tromey <tom@tromey.com>
11540
11541 * valprint.h (common_val_print_checked): Declare.
11542 * valprint.c (common_val_print_checked): New function.
11543 * stack.c (print_frame_arg): Use common_val_print_checked.
11544
b0c26e99
TT
115452020-03-13 Tom Tromey <tom@tromey.com>
11546
11547 * valprint.c (do_val_print): New function, from val_print.
11548 (val_print): Use do_val_print.
11549 (common_val_print): Use do_val_print.
11550
ce3acbe9
TT
115512020-03-13 Tom Tromey <tom@tromey.com>
11552
11553 * valprint.c (value_print): Use scoped_value_mark.
11554
96c7f873
TV
115552020-03-13 Tom de Vries <tdevries@suse.de>
11556
11557 PR symtab/25646
11558 * psymtab.c (partial_symtab::partial_symtab): Don't set
11559 globals_offset and statics_offset. Push element onto
11560 current_global_psymbols and current_static_psymbols stacks.
11561 (concat): New function.
11562 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11563 element from current_global_psymbols and current_static_psymbols
11564 stacks. Concat popped elements to global_psymbols and
11565 static_symbols.
11566 (add_psymbol_to_list): Use current_global_psymbols and
11567 current_static_psymbols stacks.
11568 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11569 current_static_psymbols fields.
11570
6ba0a321
CB
115712020-03-12 Christian Biesinger <cbiesinger@google.com>
11572
11573 * corelow.c (sniff_core_bfd): Remove.
11574 (class core_target) <m_core_vec>: Remove.
11575 (core_target::core_target): Update.
11576 (core_file_fns): Remove.
11577 (deprecated_add_core_fns): Remove.
11578 (default_core_sniffer): Remove.
11579 (sniff_core_bfd): Remove.
11580 (default_check_format): Remove.
11581 (gdb_check_format): Remove.
11582 (core_target_open): Update.
11583 (core_target::get_core_register_section): Update.
11584 (get_core_registers_cb): Update.
11585 (core_target::fetch_registers): Update.
11586 * gdbcore.h (struct core_fns): Remove.
11587 (deprecated_add_core_fns): Remove.
11588 (default_core_sniffer): Remove.
11589 (default_check_format): Remove.
11590
227031b2
TT
115912020-03-12 Tom Tromey <tom@tromey.com>
11592
11593 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11594 CORE_ADDR.
11595 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11596
53807e9f
TT
115972020-03-12 Tom Tromey <tom@tromey.com>
11598
11599 * remote.c (remote_target::download_tracepoint)
11600 (remote_target::enable_tracepoint)
11601 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11602 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11603 sprintf_vma.
11604
64f25102
TT
116052020-03-12 Tom Tromey <tom@tromey.com>
11606
11607 * symfile-mem.c: Update CORE_ADDR size assert.
11608
272cd5a3
SM
116092020-03-12 Simon Marchi <simon.marchi@efficios.com>
11610
11611 * selftest.m4: Move to gdbsupport/.
11612 * acinclude.m4: Update path to selftest.m4.
11613
74cd3f9d
SM
116142020-03-12 Simon Marchi <simon.marchi@efficios.com>
11615
11616 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11617 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11618 gdbarch-selfselftests.c and selftest-arch.c.
11619 (SUBDIR_UNITTESTS_OBS): Rename to...
11620 (SELFTESTS_OBS): ... this.
11621 (COMMON_SFILES): Remove disasm-selftests.c and
11622 gdbarch-selftests.c.
11623 * configure.ac: Don't add selftest-arch.{c,o} to
11624 CONFIG_{SRCS,OBS}.
11625 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11626 preprocessor conditions.
11627
db6878ac
SM
116282020-03-12 Simon Marchi <simon.marchi@efficios.com>
11629
11630 * configure.ac: Don't source bfd/development.sh.
11631 * selftest.m4: Modify comment.
11632 * configure: Re-generate.
11633
4d696a5c
SM
116342020-03-12 Simon Marchi <simon.marchi@efficios.com>
11635
11636 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11637 not "true" or "false".
11638 * configure: Re-generate.
11639
8dd8e1c7
CB
116402020-03-12 Christian Biesinger <cbiesinger@google.com>
11641
11642 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11643 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11644 renamed to arm_nbsd_supply_gregset.
11645 (fetch_register): Update to call arm_nbsd_supply_gregset.
11646 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11647 (arm_netbsd_nat_target::fetch_registers): Update.
11648 (fetch_elfcore_registers): Removed.
11649 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11650 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11651 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11652 not require NetBSD system headers.
11653 (arm_nbsd_regset): New struct.
11654 (arm_nbsd_iterate_over_regset_sections): New function.
11655 (arm_netbsd_init_abi_common): Updated to call
11656 set_gdbarch_iterate_over_regset_sections.
11657 * arm-nbsd-tdep.h: New file.
11658
dd69bf7a
KB
116592020-03-11 Kevin Buettner <kevinb@redhat.com>
11660
11661 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11662 recursion.
11663
a0761e34
SM
116642020-03-11 Simon Marchi <simon.marchi@efficios.com>
11665
11666 * configure: Re-generate.
11667
e7a82140
TT
116682020-03-11 Tom Tromey <tromey@adacore.com>
11669
11670 * ada-typeprint.c (print_choices): Fix comment.
11671
dcc050c8
AB
116722020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11673
11674 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11675 previous item in the list, when the list has no items.
11676
1c33af77
TV
116772020-03-11 Tom de Vries <tdevries@suse.de>
11678
11679 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11680 PROP_LOCLIST handling code.
11681
8c95582d
AB
116822020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11683
11684 * buildsym-legacy.c (record_line): Pass extra parameter to
11685 record_line.
11686 * buildsym.c (buildsym_compunit::record_line): Take an extra
11687 parameter, reduce duplication in the line table, and record the
11688 is_stmt flag in the line table.
11689 * buildsym.h (buildsym_compunit::record_line): Add extra
11690 parameter.
11691 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11692 non-statement lines.
11693 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11694 this to the symtab builder.
11695 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11696 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11697 through to dwarf_record_line_1.
11698 * infrun.c (process_event_stop_test): When stepping, don't stop at
11699 a non-statement instruction, and only refresh the step info when
11700 we land in the middle of a line's range. Also add an extra
11701 comment.
11702 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11703 field.
11704 * record-btrace.c (btrace_find_line_range): Only record lines
11705 marked as is-statement.
11706 * stack.c (frame_show_address): Show the frame address if we are
11707 in a non-statement sal.
11708 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11709 (maintenance_print_one_line_table): Print a header for the is_stmt
11710 column, and include is_stmt information in the output.
11711 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11712 preference to non-statements.
11713 (find_pcs_for_symtab_line): Prefer is-statement entries.
11714 (find_line_common): Likewise.
11715 * symtab.h (struct linetable_entry): Add is_stmt field.
11716 (struct symtab_and_line): Likewise.
11717 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11718 arranging the line table.
11719
e4003a34
TV
117202020-03-07 Tom de Vries <tdevries@suse.de>
11721
11722 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11723 DIE.
11724
e8932576
TT
117252020-03-07 Tom Tromey <tom@tromey.com>
11726
11727 * valops.c (value_literal_complex): Remove obsolete comment.
11728 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11729 comment.
11730
29734269
SM
117312020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11732
11733 * infrun.h: Forward-declare thread_info.
11734 (set_step_info): Add thread_info parameter, add doc.
11735 * infrun.c (set_step_info): Add thread_info parameter, move doc
11736 to header.
11737 * infrun.c (process_event_stop_test): Pass thread to
11738 set_step_info call.
11739 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11740 set_step_info.
11741 (prepare_one_step): Add thread_info parameter, pass it to
11742 set_step_frame and prepare_one_step (recursive) call.
11743 (step_1): Pass thread to prepare_one_step call.
11744 (step_command_fsm::should_stop): Pass thread to
11745 prepare_one_step.
11746 (until_next_fsm): Pass thread to set_step_frame call.
11747 (finish_command): Pass thread to set_step_info call.
11748
b7d64b29
HD
117492020-03-06 Hannes Domani <ssbssa@yahoo.de>
11750
11751 * windows-tdep.c (windows_solib_create_inferior_hook):
11752 Check if inferior is running.
11753
09f2921c
TV
117542020-03-06 Tom de Vries <tdevries@suse.de>
11755
11756 * NEWS: Fix "the the".
11757 * ctfread.c: Same.
11758
fd760e79
TV
117592020-03-06 Tom de Vries <tdevries@suse.de>
11760
11761 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11762
20ea4a60
AB
117632020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11764
11765 * .dir-locals.el: Add a comment referencing the other copies of
11766 this file.
11767
0afbabf0
JB
117682020-03-05 John Baldwin <jhb@FreeBSD.org>
11769
11770 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11771 psargs.
11772
842806cb
TBA
117732020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11774
11775 * .gitattributes: New file.
11776
be1e3d3e
TT
117772020-03-04 Tom Tromey <tom@tromey.com>
11778
11779 * symmisc.c (print_symbol_bcache_statistics)
11780 (print_objfile_statistics): Update.
11781 * symfile.c (allocate_symtab): Use intern.
11782 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11783 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11784 macro_cache>: Remove.
11785 <string_cache>: New member.
11786 (struct objfile) <intern>: New methods.
11787 * elfread.c (elf_symtab_read): Use intern.
11788 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11789 (dwarf2_compute_name, dwarf2_physname)
11790 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11791 names.
11792 (guess_partial_die_structure_name): Update.
11793 (partial_die_info::fixup): Intern name.
11794 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11795 name.
11796 (dwarf2_name): Intern name. Update.
11797 * buildsym.c (buildsym_compunit::get_macro_table): Use
11798 string_cache.
11799
4e7625fd
TT
118002020-03-04 Tom Tromey <tom@tromey.com>
11801
11802 * jit.c (bfd_open_from_target_memory): Make "target" const.
11803 * corefile.c (gnutarget): Now const.
11804 * gdbcore.h (gnutarget): Now const.
11805
46f9f931
HD
118062020-03-04 Hannes Domani <ssbssa@yahoo.de>
11807
11808 * NEWS: Mention support for WOW64 processes.
11809 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11810 (amd64_windows_segment_register_p): Remove static.
11811 (_initialize_amd64_windows_nat): Update.
11812 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11813 * i386-windows-nat.c (context_offset): Update.
11814 (i386_mappings): Rename and remove static.
11815 (i386_windows_segment_register_p): Remove static.
11816 (_initialize_i386_windows_nat): Update.
11817 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11818 (STATUS_WX86_SINGLE_STEP): New macro.
11819 (EnumProcessModulesEx): New macro.
11820 (Wow64SuspendThread): New macro.
11821 (Wow64GetThreadContext): New macro.
11822 (Wow64SetThreadContext): New macro.
11823 (Wow64GetThreadSelectorEntry): New macro.
11824 (windows_set_context_register_offsets): Add static.
11825 (windows_set_segment_register_p): Likewise.
11826 (windows_add_thread): Adapt for WOW64 processes.
11827 (windows_fetch_one_register): Likewise.
11828 (windows_nat_target::fetch_registers): Likewise.
11829 (windows_store_one_register): Likewise.
11830 (display_selector): Likewise.
11831 (display_selectors): Likewise.
11832 (handle_exception): Likewise.
11833 (windows_continue): Likewise.
11834 (windows_nat_target::resume): Likewise.
11835 (windows_add_all_dlls): Likewise.
11836 (do_initial_windows_stuff): Likewise.
11837 (windows_nat_target::attach): Likewise.
11838 (windows_get_exec_module_filename): Likewise.
11839 (windows_nat_target::create_inferior): Likewise.
11840 (windows_xfer_siginfo): Likewise.
11841 (_initialize_loadable): Initialize Wow64SuspendThread,
11842 Wow64GetThreadContext, Wow64SetThreadContext,
11843 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11844 * windows-nat.h (windows_set_context_register_offsets):
11845 Remove declaration.
11846 (windows_set_segment_register_p): Likewise.
11847 (i386_windows_segment_register_p): Add declaration.
11848 (amd64_windows_segment_register_p): Likewise.
11849
440cf44e
LM
118502020-03-04 Luis Machado <luis.machado@linaro.org>
11851
11852 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11853 in "info registers" for AArch64/ARM.
11854
11855 The change caused "info registers" to not print GPR's.
11856
11857 gdb/ChangeLog:
11858
11859 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11860
11861 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11862 when reg->group is empty and reggroup is not.
11863
1009d92f
TT
118642020-03-03 Tom Tromey <tromey@adacore.com>
11865
11866 * dwarf2/frame.c (struct dwarf2_frame_cache)
11867 <checked_tailcall_bottom, entry_cfa_sp_offset,
11868 entry_cfa_sp_offset_p>: Remove members.
11869 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11870 (dwarf2_frame_prev_register): Don't call
11871 dwarf2_tailcall_sniffer_first.
11872 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11873 * frame-unwind.c (add_unwinder): New fuction.
11874 (frame_unwind_init): Use it. Add tailcall unwinder.
11875
5e5d66b6
AB
118762020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11877 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11878
11879 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11880 value should be printed as true.
11881
584cf46d
HD
118822020-03-03 Hannes Domani <ssbssa@yahoo.de>
11883
11884 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11885 (windows_init_abi): Set and use windows_so_ops.
11886
7b973adc
SDJ
118872020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11888
11889 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11890 when verifying if dealing with a convenience variable.
11891
bb7b70ab
LM
118922020-03-03 Luis Machado <luis.machado@linaro.org>
11893
11894 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11895
9822cb57
SM
118962020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11897
11898 * infrun.c (gdbarch_supports_displaced_stepping): New.
11899 (use_displaced_stepping): Break up conditions in smaller pieces.
11900 Use gdbarch_supports_displaced_stepping.
11901 (displaced_step_prepare_throw): Use
11902 gdbarch_supports_displaced_stepping.
11903
63e163f2
AB
119042020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11905
11906 * NEWS: Mention new behaviour of the history filename.
11907 * top.c (write_history_p): Add comment.
11908 (show_write_history_p): Add header comment, give a different
11909 message when history writing is on, but the history filename is
11910 empty.
11911 (history_filename): Add comment.
11912 (history_filename_empty): New function.
11913 (show_history_filename): Add header comment, give a different
11914 message when the filename is empty.
11915 (init_history): Compare history_filename against nullptr, and only
11916 read history if the filename is not empty.
11917 (set_history_filename): Add header comment, and only make
11918 non-empty filenames absolute.
11919 (init_main): Make the filename argument to 'set history filename'
11920 optional.
11921
81b86b97
CB
119222020-03-02 Christian Biesinger <cbiesinger@google.com>
11923
11924 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11925 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11926 (fetch_fp_register): Update.
11927 (fetch_fp_regs): Update.
11928 (store_fp_register): Update.
11929 (store_fp_regs): Update.
11930 (arm_netbsd_nat_target::read_description): New function.
11931 (fetch_elfcore_registers): Update.
11932
24ed6739
AB
119332020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11934
11935 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11936 general_thread if the stop reply is missing a thread-id.
11937 (remote_target::process_stop_reply): Use the first non-exited
11938 thread if the target didn't pass a thread-id.
11939 * infrun.c (do_target_wait): Move call to
11940 switch_to_inferior_no_thread to ....
11941 (do_target_wait_1): ... here.
11942
a84bb2a0
JT
119432020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11944
11945 * debuginfod-support.c: Include defs.h first.
11946
658dadf0
TV
119472020-02-28 Tom de Vries <tdevries@suse.de>
11948
11949 * symfile.c (set_initial_language): Use default language for lookup.
11950
4ebe4877
SM
119512020-02-28 Simon Marchi <simon.marchi@efficios.com>
11952
11953 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11954 reader variable, pass `this` to read_cutu_die_from_dwo.
11955
e5da1139
AM
119562020-02-27 Aaron Merey <amerey@redhat.com>
11957
11958 * source.c (open_source_file): Check for nullptr when computing
11959 srcpath.
11960
317f7127
TT
119612020-02-27 Tom Tromey <tromey@adacore.com>
11962
11963 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11964 member.
11965 (dwarf2_add_field): Don't update nfields.
11966 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11967
3104d9ee
AB
119682020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11969
11970 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11971 abs.
11972
b83470bf
TT
119732020-02-26 Tom Tromey <tom@tromey.com>
11974
11975 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11976 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11977 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11978 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11979 per_cu_data.
11980
edfe0a0c
TT
119812020-02-26 Tom Tromey <tom@tromey.com>
11982
11983 * dwarf2/index-write.c (psym_index_map): Change type.
11984 (add_address_entry_worker, write_one_signatured_type)
11985 (recursively_count_psymbols, recursively_write_psymbols)
11986 (class debug_names, psyms_seen_size, write_gdbindex)
11987 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11988
0d79cdc4
AM
119892020-02-26 Aaron Merey <amerey@redhat.com>
11990
11991 * Makefile.in: Handle optional debuginfod support.
11992 * NEWS: Update.
11993 * README: Add --with-debuginfod summary.
11994 * config.in: Regenerate.
11995 * configure: Regenerate.
11996 * configure.ac: Handle optional debuginfod support.
11997 * debuginfod-support.c: debuginfod helper functions.
11998 * debuginfod-support.h: Ditto.
11999 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12000 summary.
12001 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12002 when a dwz file cannot be found.
12003 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12004 debuginfo file cannot be found.
12005 * source.c (open_source_file): Query debuginfod servers when a
12006 source file cannot be found.
12007 * top.c (print_gdb_configuration): Include
12008 --{with,without}-debuginfod in the output.
12009
b65ce565
JG
120102020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12011
12012 * thread.c (thr_try_catch_cmd): Print thread name.
12013
d4c9a4f8
SM
120142020-02-26 Simon Marchi <simon.marchi@efficios.com>
12015
12016 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12017 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12018 dwarf2_fetch_die_type_sect_off): Move to...
12019 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12020 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12021 dwarf2_fetch_die_type_sect_off): ... here.
12022 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12023 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12024 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12025
0dce4280
TV
120262020-02-26 Tom de Vries <tdevries@suse.de>
12027
12028 PR gdb/25603
12029 * symfile.c (set_initial_language): Exit-early if
12030 language_mode == language_mode_manual.
12031
450a1bfc
SM
120322020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12033
12034 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12035 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12036 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12037
9e80cfa1
AB
120382020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12039
12040 * gdbtypes.c (create_array_type_with_stride): Handle negative
12041 array strides.
12042 * valarith.c (value_subscripted_rvalue): Likewise.
12043
09624f1f
LM
120442020-02-25 Luis Machado <luis.machado@linaro.org>
12045
12046 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12047
8cb5117c
SM
120482020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12049
12050 * loc.h (dwarf2_get_die_type): Move to...
12051 * read.h (dwarf2_get_die_type): ... here.
12052 * read.c (dwarf2_get_die_type): Move doc to header.
12053
c325c44e
JB
120542020-02-25 Joel Brobecker <brobecker@adacore.com>
12055
12056 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12057 'gnulib/Makefile.in' to the list.
12058
4ac93832
TT
120592020-02-24 Tom Tromey <tom@tromey.com>
12060
12061 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12062 Remove.
12063 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12064 XOBNEWVEC.
12065
197400e8
TT
120662020-02-24 Tom Tromey <tom@tromey.com>
12067
12068 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12069 New method.
12070 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12071 (dw2_do_instantiate_symtab, dw2_get_file_names)
12072 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12073
76935768
TT
120742020-02-24 Tom Tromey <tom@tromey.com>
12075
12076 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12077 make_scoped_restore.
12078 (dwarf2_psymtab::read_symtab): Don't clear
12079 reading_partial_symbols.
12080
a88ef40d
TV
120812020-02-24 Tom de Vries <tdevries@suse.de>
12082
12083 PR gdb/25592
12084 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12085
c9af6521
TV
120862020-02-24 Tom de Vries <tdevries@suse.de>
12087
12088 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12089 commands layout next/prev/regs.
12090
5707a07a
TT
120912020-02-22 Tom Tromey <tom@tromey.com>
12092
12093 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12094 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12095
3b0fb49e
TT
120962020-02-22 Tom Tromey <tom@tromey.com>
12097
12098 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12099
283be8bf
TT
121002020-02-22 Tom Tromey <tom@tromey.com>
12101
12102 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12103 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12104 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12105 * tui/tui.c (_initialize_tui): Add usage text.
12106
ca793b96
TT
121072020-02-22 Tom Tromey <tom@tromey.com>
12108
12109 * tui/tui-win.c (tui_set_focus_command)
12110 (tui_set_win_height_command): Use error_no_arg.
12111 (_initialize_tui_win): Update help text.
12112 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12113
432b5c40
TT
121142020-02-22 Tom Tromey <tom@tromey.com>
12115
12116 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12117 * tui/tui-disasm.h (struct tui_disasm_window)
12118 <display_start_addr>: Declare.
12119 * tui/tui-source.h (struct tui_source_window)
12120 <display_start_addr>: Declare.
12121 * tui/tui-winsource.h (struct tui_source_window_base)
12122 <show_source_line, display_start_addr>: New methods.
12123 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12124 Rename and move to protected section.
12125 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12126 (tui_source_window_base::do_erase_source_content): Update.
12127 (tui_source_window_base::show_source_line): Now a method.
12128 (tui_source_window_base::show_source_content)
12129 (tui_source_window_base::tui_source_window_base)
12130 (tui_source_window_base::rerender)
12131 (tui_source_window_base::refill)
12132 (tui_source_window_base::do_scroll_horizontal)
12133 (tui_source_window_base::set_is_exec_point_at)
12134 (tui_source_window_base::update_breakpoint_info)
12135 (tui_source_window_base::update_exec_info): Update.
12136 * tui/tui-source.c (tui_source_window::set_contents)
12137 (tui_source_window::showing_source_p)
12138 (tui_source_window::do_scroll_vertical)
12139 (tui_source_window::location_matches_p)
12140 (tui_source_window::line_is_displayed): Update.
12141 (tui_source_window::display_start_addr): New method.
12142 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12143 (tui_disasm_window::do_scroll_vertical)
12144 (tui_disasm_window::location_matches_p): Update.
12145 (tui_disasm_window::display_start_addr): New method.
12146
01b1af32
TT
121472020-02-22 Tom Tromey <tom@tromey.com>
12148
12149 * NEWS: Add entry for gdb.register_window_type.
12150 * tui/tui-layout.h (window_factory): New typedef.
12151 (tui_register_window): Declare.
12152 * tui/tui-layout.c (saved_tui_windows): New global.
12153 (tui_apply_current_layout): Use it.
12154 (tui_register_window): New function.
12155 * python/python.c (do_start_initialization): Call
12156 gdbpy_initialize_tui.
12157 (python_GdbMethods): Add "register_window_type" function.
12158 * python/python-internal.h (gdbpy_register_tui_window)
12159 (gdbpy_initialize_tui): Declare.
12160 * python/py-tui.c: New file.
12161 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12162
fc96d20b
TT
121632020-02-22 Tom Tromey <tom@tromey.com>
12164
12165 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12166
935c78c0
TT
121672020-02-22 Tom Tromey <tom@tromey.com>
12168
12169 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12170 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12171 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12172 (tui_set_win_focus_to): Move from tui-win.c.
12173
0240c8f1
TT
121742020-02-22 Tom Tromey <tom@tromey.com>
12175
12176 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12177 functions.
12178 (known_window_types): New global.
12179 (tui_get_window_by_name): Reimplement.
12180 (initialize_known_windows): New function.
12181 (validate_window_name): Rewrite.
12182 (_initialize_tui_layout): Call initialize_known_windows.
12183
fdb01f0c
TT
121842020-02-22 Tom Tromey <tom@tromey.com>
12185
12186 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12187 Remove constants.
12188 * tui/tui-winsource.h (struct tui_source_window_base)
12189 <tui_source_window_base>: Remove parameter.
12190 * tui/tui-winsource.c
12191 (tui_source_window_base::tui_source_window_base): Remove
12192 parameter.
12193 (tui_source_window_base::refill): Update.
12194 * tui/tui-stack.h (struct tui_locator_window)
12195 <tui_locator_window>: Update.
12196 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12197 Default the constructor.
12198 * tui/tui-regs.h (struct tui_data_item_window)
12199 <tui_data_item_window>: Default the constructor.
12200 (struct tui_data_window) <tui_data_window>: Likewise.
12201 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12202 Default the constructor.
12203 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12204 Default the constructor.
12205 <type>: Remove.
12206 (struct tui_win_info) <tui_win_info>: Default the constructor.
12207 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12208 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12209 Default the constructor.
12210
865a5aec
TT
122112020-02-22 Tom Tromey <tom@tromey.com>
12212
12213 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12214 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12215 * tui/tui-win.c (tui_resize_all): Don't call
12216 tui_delete_invisible_windows.
12217 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12218 done.
12219 (tui_set_layout): Update.
12220 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12221 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12222 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12223
e098d18c
TT
122242020-02-22 Tom Tromey <tom@tromey.com>
12225
12226 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12227 correctly.
12228
eb9c8874
TT
122292020-02-22 Tom Tromey <tom@tromey.com>
12230
12231 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12232
7eed1a8e
TT
122332020-02-22 Tom Tromey <tom@tromey.com>
12234
12235 * tui/tui-winsource.h (struct tui_source_window_iterator)
12236 <inner_iterator>: New etytypedef.
12237 <tui_source_window_iterator>: Take "end" parameter.
12238 <tui_source_window_iterator>: Take iterator.
12239 <operator*, advance>: Update.
12240 <m_iter>: Change type.
12241 <m_end>: New field.
12242 (struct tui_source_windows) <begin, end>: Update.
12243 * tui/tui-layout.c (tui_windows): New global.
12244 (tui_apply_current_layout): Clear tui_windows.
12245 (tui_layout_window::apply): Update tui_windows.
12246 * tui/tui-data.h (tui_windows): Declare.
12247 (all_tui_windows): Now inline function.
12248 (class tui_window_iterator, struct all_tui_windows): Remove.
12249
7c043ba6
TT
122502020-02-22 Tom Tromey <tom@tromey.com>
12251
12252 PR tui/17850:
12253 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12254 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12255 "height" argument.
12256 (class tui_layout_window) <get_sizes>: Likewise.
12257 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12258 argument.
12259 <get_sizes>: Add "height" argument.
12260 <m_vertical>: New field.
12261 * tui/tui-layout.c (tui_layout_split::clone): Update.
12262 (tui_layout_split::get_sizes): Add "height" argument.
12263 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12264 (tui_new_layout_command): Parse "-horizontal".
12265 (_initialize_tui_layout): Update help string.
12266 (tui_layout_split::specification): Add "-horizontal" when needed.
12267 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12268 argument.
12269 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12270 New methods.
12271
6bc56648
TT
122722020-02-22 Tom Tromey <tom@tromey.com>
12273
12274 * tui/tui-layout.h (enum tui_adjust_result): New.
12275 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12276 (class tui_layout_window) <adjust_size>: Return
12277 tui_adjust_result. Rewrite.
12278 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12279 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12280
c22fef7e
TT
122812020-02-22 Tom Tromey <tom@tromey.com>
12282
12283 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12284 parameter and return types.
12285 (class tui_layout_base) <specification>: Add "depth".
12286 (class tui_layout_window) <specification>: Add "depth".
12287 (class tui_layout_split) <specification>: Add "depth".
12288 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12289 and return types.
12290 (tui_new_layout_command): Parse sub-layouts.
12291 (_initialize_tui_layout): Update help string.
12292 (tui_layout_window::specification): Add "depth".
12293 (add_layout_command): Update.
12294
ee325b61
TT
122952020-02-22 Tom Tromey <tom@tromey.com>
12296
12297 * NEWS: Add "tui new-layout" item.
12298 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12299 Add new-layout command to help text.
12300 (validate_window_name): New function.
12301 (tui_new_layout_command): New function.
12302 (_initialize_tui_layout): Register "new-layout".
12303 (tui_layout_window::specification): New method.
12304 (tui_layout_window::specification): New method.
12305 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12306 method.
12307 (class tui_layout_window) <specification>: New method.
12308 (class tui_layout_split) <specification>: New method.
12309
416eb92d
TT
123102020-02-22 Tom Tromey <tom@tromey.com>
12311
12312 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12313 * tui/tui-win.c (window_name_completer): Update comment.
12314 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12315 Declare method.
12316 (class tui_layout_window) <replace_window>: Likewise.
12317 (class tui_layout_split) <replace_window>: Likewise.
12318 (tui_set_layout): Don't declare.
12319 (tui_set_initial_layout): Declare function.
12320 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12321 (asm_regs_layout): New globals.
12322 (tui_current_layout, show_layout): Remove.
12323 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12324 (find_layout, tui_apply_layout): New function.
12325 (layout_completer): Remove.
12326 (tui_next_layout): Reimplement.
12327 (tui_next_layout_command): New function.
12328 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12329 (tui_regs_layout): Reimplement.
12330 (tui_regs_layout_command): New function.
12331 (extract_display_start_addr): Rewrite.
12332 (next_layout, prev_layout): Remove.
12333 (tui_layout_window::replace_window): New method.
12334 (tui_layout_split::replace_window): New method.
12335 (destroy_layout): New function.
12336 (layout_list): New global.
12337 (add_layout_command): New function.
12338 (initialize_layouts): Update.
12339 (tui_layout_command): New function.
12340 (_initialize_tui_layout): Install "layout" commands.
12341 * tui/tui-data.h (enum tui_layout_type): Remove.
12342 (tui_current_layout): Don't declare.
12343
0dbc2fc7
TT
123442020-02-22 Tom Tromey <tom@tromey.com>
12345
12346 * tui/tui-regs.c (tui_reg_layout): Remove.
12347 (tui_reg_command): Use tui_regs_layout.
12348 * tui/tui-layout.h (tui_reg_command): Declare.
12349 * tui/tui-layout.c (tui_reg_command): New function.
12350
5afe342e
TT
123512020-02-22 Tom Tromey <tom@tromey.com>
12352
12353 * tui/tui.c (tui_rl_delete_other_windows): Call
12354 tui_remove_some_windows.
12355 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12356 Declare method.
12357 (class tui_layout_window) <remove_windows>: New method.
12358 (class tui_layout_split) <remove_windows>: Declare.
12359 (tui_remove_some_windows): Declare.
12360 * tui/tui-layout.c (tui_remove_some_windows): New function.
12361 (tui_layout_split::remove_windows): New method.
12362
427326a8
TT
123632020-02-22 Tom Tromey <tom@tromey.com>
12364
12365 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12366 * tui/tui-layout.h (tui_next_layout): Declare.
12367 * tui/tui-layout.c (tui_next_layout): New function.
12368
3fe12b6d
TT
123692020-02-22 Tom Tromey <tom@tromey.com>
12370
12371 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12372 correct coordinates.
12373
59b8b5d2
TT
123742020-02-22 Tom Tromey <tom@tromey.com>
12375
12376 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12377 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12378 DATA_WIN case.
12379
2a3d458b
TT
123802020-02-22 Tom Tromey <tom@tromey.com>
12381
12382 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12383 TUI_DISASM_WIN, not tui_win_list.
12384
3f0cbb04
TT
123852020-02-22 Tom Tromey <tom@tromey.com>
12386
12387 * valprint.c (generic_val_print_enum_1)
12388 (val_print_type_code_flags): Style member names.
12389 * rust-lang.c (val_print_struct, rust_print_enum)
12390 (rust_print_struct_def, rust_internal_print_type): Style member
12391 names.
12392 * p-valprint.c (pascal_object_print_value_fields): Style member
12393 names. Only call fprintf_symbol_filtered for static members.
12394 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12395 * f-valprint.c (f_val_print): Style member names.
12396 * f-typeprint.c (f_type_print_base): Style member names.
12397 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12398 call fprintf_symbol_filtered for static members.
12399 (cp_print_class_member): Style member names.
12400 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12401 member names.
12402 * ada-valprint.c (ada_print_scalar): Style enum names.
12403 (ada_val_print_enum): Likewise.
12404 * ada-typeprint.c (print_enum_type): Style enum names.
12405
d4d947ae
TT
124062020-02-21 Tom Tromey <tom@tromey.com>
12407
12408 * psympriv.h (struct partial_symtab): Update comment.
12409
e94e944b
TT
124102020-02-21 Tom Tromey <tromey@adacore.com>
12411
12412 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12413 type is CORE_ADDR.
12414
1eb73179
TV
124152020-02-21 Tom de Vries <tdevries@suse.de>
12416
12417 PR gdb/25534
12418 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12419 if dependencies[i]->user != NULL.
12420
4f180d53
AT
124212020-02-21 Ali Tamur <tamur@google.com>
12422
12423 * dwarf2/read.c (dwarf2_name): Add null check.
12424
22b6cd70
TT
124252020-02-20 Tom Tromey <tom@tromey.com>
12426
12427 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12428 ">=", in binary search.
12429 (dwarf2_find_containing_comp_unit): New overload.
12430 (run_test): New self-test.
12431 (_initialize_dwarf2_read): Register new test.
12432
bd0cf5a6
NC
124332020-02-20 Nelson Chu <nelson.chu@sifive.com>
12434
12435 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12436 * riscv-tdep.h: Likewise.
12437 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12438 rv32-only CSR.
12439 * features/riscv/64bit-csr.xml: Regenerated.
12440
3f702acd
SDJ
124412020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12442 Tom Tromey <tom@tromey.com>
12443
12444 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12445 of 'fputc_unfiltered'.
12446 (putchar_unfiltered): Call 'fputc_unfiltered'.
12447 (fputc_unfiltered): Call 'fputs_unfiltered'.
12448
d13c7322
AB
124492020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12450
12451 * config.in: Regenerate.
12452 * configure: Regenerate.
12453 * configure.ac: Add --with-python-libdir option.
12454 * main.c: Use WITH_PYTHON_LIBDIR.
12455
869d8950
TT
124562020-02-19 Tom Tromey <tom@tromey.com>
12457
12458 * symtab.c (general_symbol_info::compute_and_set_names): Use
12459 obstack_strndup. Simplify call to symbol_set_demangled_name.
12460
298e9637
SM
124612020-02-19 Simon Marchi <simon.marchi@efficios.com>
12462
12463 * dwarf2/read.c (allocate_signatured_type_table,
12464 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12465 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12466 Remove objfile parameter, update all callers.
12467
08410482
DE
124682020-02-19 Doug Evans <dje@google.com>
12469
12470 PR rust/25535
12471 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12472 rust_enum_variant calculation.
12473
dfdeeca1
TT
124742020-02-19 Tom Tromey <tromey@adacore.com>
12475
12476 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12477
2ef5453b
TT
124782020-02-19 Tom Tromey <tromey@adacore.com>
12479
12480 * ada-lang.c (cache_symbol): Use obstack_strdup.
12481
9f1528a1
AB
124822020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12483
12484 * configure: Regenerate.
12485
d3c22fa8
TT
124862020-02-19 Tom Tromey <tromey@adacore.com>
12487
12488 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12489 NULL check.
12490
bf84f706
MR
124912020-02-19 Maciej W. Rozycki <macro@wdc.com>
12492
12493 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12494
d1c9b20f
AB
124952020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12496
12497 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12498 if GDBSERVER is not defined.
12499 (riscv_tdesc_cache): Likewise, also store const target_desc.
12500 (STATIC_IN_GDB): Define.
12501 (riscv_create_target_description): Update declaration with
12502 STATIC_IN_GDB.
12503 (riscv_lookup_target_description): New function, only define if
12504 GDBSERVER is not defined.
12505 * arch/riscv.h (riscv_create_target_description): Declare only
12506 when GDBSERVER is defined.
12507 (riscv_lookup_target_description): New declaration when GDBSERVER
12508 is not defined.
12509 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12510 (riscv_linux_read_features): ...this, and return
12511 riscv_gdbarch_features instead of target_desc.
12512 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12513 (riscv_linux_read_description): Rename to...
12514 (riscv_linux_read_features): ...this.
12515 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12516 Update to use riscv_gdbarch_features and
12517 riscv_lookup_target_description.
12518 * riscv-tdep.c (riscv_find_default_target_description): Use
12519 riscv_lookup_target_description instead of
12520 riscv_create_target_description.
12521
373d7ac0
SM
125222020-02-18 Simon Marchi <simon.marchi@efficios.com>
12523
12524 * valprint.c (generic_val_print_enum_1): When printing a flag
12525 enum with value 0 and there is no enumerator with value 0, print
12526 just "0" instead of "(unknown: 0x0)".
12527
b29a2df0
SM
125282020-02-18 Simon Marchi <simon.marchi@efficios.com>
12529
12530 * valprint.c (generic_val_print_enum_1): Print unknown part of
12531 flag enum in hex.
12532
6740f0cc
SM
125332020-02-18 Simon Marchi <simon.marchi@efficios.com>
12534
12535 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12536 flag enums to contain duplicate enumerators.
12537 * valprint.c (generic_val_print_enum_1): Update comment.
12538
edd45eb0
SM
125392020-02-18 Simon Marchi <simon.marchi@efficios.com>
12540
12541 * dwarf2/read.c: Include "count-one-bits.h".
12542 (update_enumeration_type_from_children): If an enumerator has
12543 multiple bits set, don't treat the enumeration as a "flag enum".
12544 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12545 of flag enums have 0 or 1 bit set.
12546
6d0cf446
BE
125472020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12548
12549 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12550 conversion.
12551 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12552 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12553 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12554 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12555 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12556
7001c1b7
SM
125572020-02-18 Simon Marchi <simon.marchi@efficios.com>
12558
12559 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12560
fdb61c6c
SM
125612020-02-14 Simon Marchi <simon.marchi@efficios.com>
12562
12563 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12564 displaced_step_closure_up.
12565 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12566 (struct displaced_step_closure_up):
12567 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12568 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12569 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12570 Likewise.
12571 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12572 * gdbarch.c, gdbarch.h: Re-generate.
12573 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12574 displaced_step_closure_up.
12575 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12576 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12577 * infrun.h (displaced_step_closure_up): New type alias.
12578 (struct displaced_step_inferior_state) <step_closure>: Change
12579 type to displaced_step_closure_up.
12580 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12581 displaced_step_closure_up.
12582 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12583
a4a38eb4
TT
125842020-02-14 Tom Tromey <tom@tromey.com>
12585
12586 * minidebug.c (gnu_debug_key): New global.
12587 (find_separate_debug_file_in_section): Use it.
12588
e8217e61
SM
125892020-02-14 Simon Marchi <simon.marchi@efficios.com>
12590
12591 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12592 std::unique_ptr.
12593 * gdbarch.c: Re-generate.
12594 * gdbarch.h: Re-generate.
12595 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12596 change.
12597 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12598 type to std::unique_ptr.
12599 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12600 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12601 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12602 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12603 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12604 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12605 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12606 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12607 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12608
d8d83535
SM
126092020-02-14 Simon Marchi <simon.marchi@efficios.com>
12610
12611 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12612 std::unique_ptr.
12613 (displaced_step_clear): Rename to...
12614 (displaced_step_reset): ... this. Just call displaced->reset ().
12615 (displaced_step_clear_cleanup): Rename to...
12616 (displaced_step_reset_cleanup): ... this.
12617 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12618 (displaced_step_fixup): Likewise.
12619 (resume_1): Likewise.
12620 (handle_inferior_event): Restore child's memory before calling
12621 displaced_step_fixup on the parent.
12622 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12623 to std::unique_ptr.
12624 <step_closure>: Change type to std::unique_ptr.
12625
5f661e03
SM
126262020-02-14 Simon Marchi <simon.marchi@efficios.com>
12627
12628 * arm-tdep.c: Include count-one-bits.h.
12629 (cleanup_block_store_pc): Use count_one_bits.
12630 (cleanup_block_load_pc): Use count_one_bits.
12631 (arm_copy_block_xfer): Use count_one_bits.
12632 (thumb2_copy_block_xfer): Use count_one_bits.
12633 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12634 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12635 (thumb_get_next_pcs_raw): Use count_one_bits.
12636 (arm_get_next_pcs_raw): Use count_one_bits_l.
12637 * arch/arm.c (bitcount): Remove.
12638 * arch/arm.h (bitcount): Remove.
12639
8084e579
TT
126402020-02-14 Tom Tromey <tromey@adacore.com>
12641
12642 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12643 Update.
12644 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12645 * dwarf2/loc.c (call_site_find_chain_1): Return
12646 unique_xmalloc_ptr.
12647 (call_site_find_chain): Likewise.
12648
258bf0ee
RB
126492020-02-14 Richard Biener <rguenther@suse.de>
12650
12651 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12652 on expression with division operators.
12653
f98a8458
AKS
126542020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12655
12656 * MAINTAINERS (Write After Approval): Adding myself.
12657
d1437c0e
TT
126582020-02-12 Tom Tromey <tom@tromey.com>
12659
12660 * event-loop.c (event_data, gdb_event, event_handler_func):
12661 Remove.
12662
3d4560f7
TT
126632020-02-12 Tom Tromey <tom@tromey.com>
12664
12665 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12666 (dwarf2_frame_objfile_data): Add comment.
12667 (find_comp_unit, set_comp_unit): New functions.
12668 (dwarf2_frame_find_fde): Use find_comp_unit.
12669 (dwarf2_build_frame_info): Use set_comp_unit.
12670
21982304
TT
126712020-02-12 Tom Tromey <tom@tromey.com>
12672
12673 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12674 (comp_unit): Don't initialize objfile.
12675 (execute_cfa_program): Add text_offset parameter.
12676 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12677 (dwarf2_frame_cache): Update.
12678 (dwarf2_build_frame_info): Don't set "objfile" member.
12679
4debb237
TT
126802020-02-12 Tom Tromey <tom@tromey.com>
12681
12682 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12683 (decode_frame_entry): Likewise.
12684 (dwarf2_build_frame_info): Update.
12685
0d404d44
TT
126862020-02-12 Tom Tromey <tom@tromey.com>
12687
12688 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12689 (decode_frame_entry_1): Use the comp_unit obstack.
12690
a7a3ae5c
TT
126912020-02-12 Tom Tromey <tom@tromey.com>
12692
12693 * dwarf2/frame.c (struct comp_unit): Add initializers and
12694 constructor.
12695 (dwarf2_frame_objfile_data): Store a comp_unit.
12696 (dwarf2_frame_find_fde): Update.
12697 (dwarf2_build_frame_info): Use "new".
12698
a9d65418
TT
126992020-02-12 Tom Tromey <tom@tromey.com>
12700
12701 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12702 (dwarf2_fde_table): Typedef for std::vector.
12703 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12704 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12705 (decode_frame_entry): Update.
12706 (dwarf2_build_frame_info): Use "new".
12707
7559c217
CB
127082020-02-12 Christian Biesinger <cbiesinger@google.com>
12709
12710 * arm-tdep.c (arm_gdbarch_init): Update.
12711 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12712 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12713 have_neon, is_m>: Change to bool.
12714
aeefc73c
CB
127152020-02-12 Christian Biesinger <cbiesinger@google.com>
12716
12717 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12718
d27b8e5f
TT
127192020-02-12 Tom Tromey <tom@tromey.com>
12720
12721 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12722
cd5900f3
HD
127232020-02-12 Hannes Domani <ssbssa@yahoo.de>
12724
12725 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12726 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12727
f056b22b
TT
127282020-02-11 Tom Tromey <tom@tromey.com>
12729
12730 * psymtab.h: Update comment.
12731
f92ff6b5
TT
127322020-02-11 Tom Tromey <tom@tromey.com>
12733
12734 * gdb_obstack.h (struct auto_obstack): Use
12735 DISABLE_COPY_AND_ASSIGN.
12736
3fd6912b
TT
127372020-02-11 Tom Tromey <tom@tromey.com>
12738
12739 * dwarf2/frame.h (struct objfile): Don't forward declare.
12740
69ed9b74
CB
127412020-02-11 Christian Biesinger <cbiesinger@google.com>
12742
12743 * cris-tdep.c (cris_supply_gregset): Change signature to match
12744 what struct regset expects.
12745 (cris_regset): New struct.
12746 (fetch_core_registers): Remove.
12747 (cris_iterate_over_regset_sections): New function.
12748 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12749 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12750
bda874f6
CB
127512020-02-11 Christian Biesinger <cbiesinger@google.com>
12752
12753 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12754 registers.
12755
754e1564
CB
127562020-02-11 Christian Biesinger <cbiesinger@google.com>
12757
12758 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12759
8ddd8e0e
SM
127602020-02-11 Simon Marchi <simon.marchi@efficios.com>
12761
12762 * configure: Re-generate.
12763
898e7f60
SM
127642020-02-11 Simon Marchi <simon.marchi@efficios.com>
12765
12766 * configure: Re-generate.
12767
58df732b
SM
127682020-02-11 Simon Marchi <simon.marchi@efficios.com>
12769
12770 * acinclude: Update warning.m4 path.
12771 * warning.m4: Move to gdbsupport.
12772
da5bd37e
TT
127732020-02-11 Tom Tromey <tromey@adacore.com>
12774
12775 * remote.c (remote_console_output): Update.
12776 * printcmd.c (printf_command): Update.
12777 * event-loop.c (gdb_wait_for_event): Update.
12778 * linux-nat.c (sigchld_handler): Update.
12779 * remote-sim.c (gdb_os_write_stdout): Update.
12780 (gdb_os_flush_stdout): Update.
12781 (gdb_os_flush_stderr): Update.
12782 (gdb_os_write_stderr): Update.
12783 * exceptions.c (print_exception): Update.
12784 * remote-fileio.c (remote_fileio_func_read): Update.
12785 (remote_fileio_func_write): Update.
12786 * tui/tui.c (tui_enable): Update.
12787 * tui/tui-interp.c (tui_interp::init): Update.
12788 * utils.c (init_page_info): Update.
12789 (putchar_unfiltered, fputc_unfiltered): Update.
12790 (gdb_flush): Update.
12791 (emit_style_escape): Update.
12792 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12793 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12794 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12795 (stderr_file::write): Update.
12796 (stderr_file::puts): Update.
12797 * ui-file.h (ui_file_isatty, ui_file_write)
12798 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12799 (ui_file_puts): Don't declare.
12800
85f0dd3c
TV
128012020-02-10 Tom de Vries <tdevries@suse.de>
12802
12803 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12804 sentinel to char *.
12805
2e927613
TV
128062020-02-09 Tom de Vries <tdevries@suse.de>
12807
12808 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12809 filename if it matches "<artificial>".
12810
6bafc845
HD
128112020-02-09 Hannes Domani <ssbssa@yahoo.de>
12812
12813 * windows-tdep.c (struct enum_value_name): New struct.
12814 (create_enum): New function.
12815 (windows_get_siginfo_type): Create and use enum types.
12816
7928d571
HD
128172020-02-09 Hannes Domani <ssbssa@yahoo.de>
12818
12819 * NEWS: Mention $_siginfo support for Windows.
12820 * windows-nat.c (handle_exception): Set siginfo_er.
12821 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12822 (windows_xfer_siginfo): New function.
12823 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12824 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12825 (init_windows_gdbarch_data): New function.
12826 (get_windows_gdbarch_data): New function.
12827 (windows_get_siginfo_type): New function.
12828 (windows_init_abi): Register windows_get_siginfo_type.
12829 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12830
6751ebae
TT
128312020-02-08 Tom Tromey <tom@tromey.com>
12832
12833 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12834 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12835 <keep>: Declare method.
12836 <m_keep>: Remove member.
12837 <~cutu_reader>: Remove.
12838 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12839 (cutu_reader::cutu_reader): Update.
12840 (cutu_reader::keep): Rename from ~cutu_reader.
12841 (process_psymtab_comp_unit, build_type_psymtabs_1)
12842 (process_skeletonless_type_unit, load_partial_comp_unit)
12843 (load_full_comp_unit, dwarf2_read_addr_index)
12844 (read_signatured_type): Update.
12845
135f5437
TT
128462020-02-08 Tom Tromey <tom@tromey.com>
12847
12848 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12849 "want_partial_unit" parameter.
12850 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12851 Inline check for DW_TAG_partial_unit.
12852 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12853
9f66ff1c
TT
128542020-02-08 Tom Tromey <tom@tromey.com>
12855
12856 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12857 read.c.
12858 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12859 read.c.
12860
c8a7a66f
TT
128612020-02-08 Tom Tromey <tom@tromey.com>
12862
12863 * dwarf2/read.c (read_address): Move to comp-unit.c.
12864 (dwarf2_rnglists_process, dwarf2_ranges_process)
12865 (read_attribute_value, dwarf_decode_lines_1)
12866 (var_decode_location, decode_locdesc): Update.
12867 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12868 read.c. Remove "cu" parameter.
12869 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12870 method.
12871
8266302d
TT
128722020-02-08 Tom Tromey <tom@tromey.com>
12873
12874 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12875 (read_indirect_line_string): Update.
12876 * dwarf2/comp-unit.c (read_offset): Remove.
12877 (read_comp_unit_head): Update.
12878 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12879 method.
12880 (read_offset): Don't declare.
12881
4057dfde
TT
128822020-02-08 Tom Tromey <tom@tromey.com>
12883
12884 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12885 * dwarf2/read.c (struct comp_unit_head): Move to
12886 dwarf2/comp-unit.h.
12887 (enum class rcuh_kind): Move to comp-unit.h.
12888 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12889 (read_comp_unit_head, error_check_comp_unit_head)
12890 (read_and_check_comp_unit_head): Move to comp-unit.c.
12891 (read_offset, dwarf_unit_type_name): Likewise.
12892 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12893 (cutu_reader::cutu_reader, read_call_site_scope)
12894 (find_partial_die, follow_die_offset): Update.
12895 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12896
24aa364d
TT
128972020-02-08 Tom Tromey <tom@tromey.com>
12898
12899 * dwarf2/read.c (read_offset_1): Move to leb.c.
12900 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12901 (dwarf_decode_macro_bytes): Update.
12902 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12903 * dwarf2/leb.h (read_offset): Declare.
12904
2c7d5afc
TT
129052020-02-08 Tom Tromey <tom@tromey.com>
12906
12907 * dwarf2/read.c (dwarf2_section_size): Remove.
12908 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12909 Update.
12910 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12911
4075cb26
TT
129122020-02-08 Tom Tromey <tom@tromey.com>
12913
12914 * dwarf2/read.c (read_initial_length): Move to leb.c.
12915 * dwarf2/leb.h (read_initial_length): Declare.
12916 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12917 handle_nonstd parameter.
12918 * dwarf2/frame.c (read_initial_length): Remove.
12919 (decode_frame_entry_1): Update.
12920
09ba997f
TT
129212020-02-08 Tom Tromey <tom@tromey.com>
12922
12923 * dwarf2/loc.c (dwarf2_find_location_expression)
12924 (dwarf_evaluate_loc_desc::get_tls_address)
12925 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12926 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12927 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12928 (dwarf2_compile_property_to_c)
12929 (dwarf2_loc_desc_get_symbol_read_needs)
12930 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12931 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12932 (loclist_describe_location, loclist_tracepoint_var_ref)
12933 (loclist_generate_c_location): Update.
12934 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12935 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12936 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12937 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12938 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12939 (dwarf2_per_cu_data::addr_size)
12940 (dwarf2_per_cu_data::ref_addr_size)
12941 (dwarf2_per_cu_data::text_offset)
12942 (dwarf2_per_cu_data::addr_type): Now methods.
12943 (per_cu_header_read_in): Make per_cu "const".
12944 (dwarf2_version): Remove.
12945 (dwarf2_per_cu_data::int_type): Now a method.
12946 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12947 (set_die_type, read_array_type, read_subrange_index_type)
12948 (read_tag_string_type, read_subrange_type): Update.
12949 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12950 offset_size, ref_addr_size, text_offset, addr_type, version,
12951 objfile, int_type, addr_sized_int_type>: Declare methods.
12952
96c738c0
TT
129532020-02-08 Tom Tromey <tom@tromey.com>
12954
12955 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12956 Move earlier.
12957
8fdd972c
TT
129582020-02-08 Tom Tromey <tom@tromey.com>
12959
12960 * dwarf2/read.h (dwarf_line_debug): Declare.
12961 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12962 * dwarf2/read.c: Move line_header code to new files.
12963 (dwarf_line_debug): No longer static.
12964 * dwarf2/line-header.c: New file.
12965 * dwarf2/line-header.h: New file.
12966
03075812
TT
129672020-02-08 Tom Tromey <tom@tromey.com>
12968
12969 * dwarf2/read.c (struct line_header) <file_full_name,
12970 file_file_name>: Return unique_xmalloc_ptr.
12971 (line_header::file_file_name): Update.
12972 (line_header::file_full_name): Update.
12973 (dw2_get_file_names_reader): Update.
12974 (macro_start_file): Update.
12975
bb822404
TT
129762020-02-08 Tom Tromey <tom@tromey.com>
12977
12978 * dwarf2/read.c (struct line_header) <file_full_name,
12979 file_file_name>: Declare methods.
12980 (dw2_get_file_names_reader): Update.
12981 (file_file_name): Now a method.
12982 (file_full_name): Likewise.
12983 (macro_start_file): Update.
12984
009b64fc
TT
129852020-02-08 Tom Tromey <tom@tromey.com>
12986
12987 * dwarf2/read.c (dwarf_always_disassemble)
12988 (show_dwarf_always_disassemble): Move to loc.c.
12989 (_initialize_dwarf2_read): Move "always-disassemble" registration
12990 to loc.c.
12991 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12992 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12993 static.
12994 (show_dwarf_always_disassemble): Move from read.c.
12995 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12996
5895093f
TT
129972020-02-08 Tom Tromey <tom@tromey.com>
12998
12999 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13000 (create_quick_file_names_table): Return htab_up.
13001 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13002 Update.
13003 * dwarf2/read.h (struct dwarf2_per_objfile)
13004 <quick_file_names_table>: Now htab_up.
13005
b3b32279
TT
130062020-02-08 Tom Tromey <tom@tromey.com>
13007
13008 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13009
1d33d811
TT
130102020-02-08 Tom Tromey <tom@tromey.com>
13011
13012 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13013 Rewrite.
13014 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13015 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13016 (abbrev_table::abbrev_table): No longer inline.
13017 (ABBREV_HASH_SIZE): Remove.
13018 (abbrev_table::m_abbrevs): Now an htab_up.
13019
86de1d91
TT
130202020-02-08 Tom Tromey <tom@tromey.com>
13021
13022 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13023 (cutu_reader): Update.
13024 (build_type_psymtabs_1): Update.
13025 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13026 (abbrev_table::alloc_abbrev): Update.
13027 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13028 (abbrev_table::read): New static method, renamed from
13029 abbrev_table_read_table.
13030 (abbrev_table::alloc_abbrev)
13031 (abbrev_table::add_abbrev): Now private.
13032 (abbrev_table::abbrev_table): Now private.
13033 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13034
0335378b
TT
130352020-02-08 Tom Tromey <tom@tromey.com>
13036
13037 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13038 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13039 htab_up.
13040
48b490f2
TT
130412020-02-08 Tom Tromey <tom@tromey.com>
13042
13043 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13044 htab_up.
13045 (lookup_dwo_unit_in_dwp): Update.
13046 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13047 on obstack.
13048
bc68fb19
TT
130492020-02-08 Tom Tromey <tom@tromey.com>
13050
13051 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13052 obstack.
13053
d15acc42
TT
130542020-02-08 Tom Tromey <tom@tromey.com>
13055
13056 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13057 line_header_hash.
13058 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13059 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13060 Change type to htab_up.
13061
eaa5fa8b
TT
130622020-02-08 Tom Tromey <tom@tromey.com>
13063
13064 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13065 htab_up. Don't allocate on obstack.
13066 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13067 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13068 Change type to htab_up.
13069
b0b6a987
TT
130702020-02-08 Tom Tromey <tom@tromey.com>
13071
13072 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13073 Change type to htab_up.
13074 * dwarf2/read.c (create_signatured_type_table_from_index)
13075 (create_signatured_type_table_from_debug_names)
13076 (create_all_type_units, add_type_unit)
13077 (lookup_dwo_signatured_type, lookup_signatured_type)
13078 (process_skeletonless_type_unit): Update.
13079 (create_debug_type_hash_table, create_debug_types_hash_table):
13080 Change type of types_htab.
13081 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13082 htab_up. Don't allocate on obstack.
13083 (create_cus_hash_table): Change type of cus_htab parameter.
13084 (struct dwo_file) <cus, tus>: Now htab_up.
13085 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13086 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13087 (queue_and_load_all_dwo_tus): Update.
13088 * dwarf2/index-write.c (write_gdbindex): Update.
13089 (write_debug_names): Update.
13090
39856def
TT
130912020-02-08 Tom Tromey <tom@tromey.com>
13092
13093 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13094 dwarf2/read.c. Remove "next" member. Add constructor ntad
13095 destructor.
13096 (struct dwarf2_per_objfile) <queue>: New member.
13097 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13098 dwarf2/read.h.
13099 (dwarf2_queue, dwarf2_queue_tail): Remove.
13100 (class dwarf2_queue_guard): Add parameter to constructor. Use
13101 DISABLE_COPY_AND_ASSIGN.
13102 <m_per_objfile>: New member.
13103 <~dwarf2_queue_guard>: Rewrite.
13104 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13105 Update.
13106 (~dwarf2_queue_item): New.
13107
3e225074
TT
131082020-02-08 Tom Tromey <tom@tromey.com>
13109
13110 * dwarf2/read.c (struct die_info) <has_children>: New member.
13111 (dw2_get_file_names_reader): Remove has_children.
13112 (dw2_get_file_names): Update.
13113 (read_cutu_die_from_dwo): Remove has_children.
13114 (cutu_reader::init_tu_and_read_dwo_dies)
13115 (cutu_reader::cutu_reader): Update.
13116 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13117 Remove has_children.
13118 (build_type_psymtabs_1, process_skeletonless_type_unit)
13119 (load_partial_comp_unit, load_full_comp_unit): Update.
13120 (create_dwo_cu_reader): Remove has_children.
13121 (create_cus_hash_table, read_die_and_children): Update.
13122 (read_full_die_1,read_full_die): Remove has_children.
13123 (read_signatured_type): Update.
13124 (class cutu_reader) <has_children>: Remove.
13125
82ca8957
TT
131262020-02-08 Tom Tromey <tom@tromey.com>
13127
13128 * dwarf2/expr.c: Rename from dwarf2expr.c.
13129 * dwarf2/expr.h: Rename from dwarf2expr.h.
13130 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13131 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13132 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13133 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13134 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13135 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13136 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13137 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13138 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13139 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13140 * dwarf2/loc.c: Rename from dwarf2loc.c.
13141 * dwarf2/loc.h: Rename from dwarf2loc.h.
13142 * dwarf2/read.c: Rename from dwarf2read.c.
13143 * dwarf2/read.h: Rename from dwarf2read.h.
13144 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13145 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13146 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13147 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13148 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13149 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13150 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13151 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13152 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13153 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13154 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13155 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13156 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13157 Update.
13158 * Makefile.in (COMMON_SFILES): Update.
13159 (HFILES_NO_SRCDIR): Update.
13160
9e35d499
TT
131612020-02-08 Tom Tromey <tom@tromey.com>
13162
13163 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13164 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13165
1eba2311
TT
131662020-02-08 Tom Tromey <tom@tromey.com>
13167
13168 * dwarf2read.h (struct die_info): Don't declare.
13169
e41c2da2
TT
131702020-02-08 Tom Tromey <tom@tromey.com>
13171
13172 * dwarf2read.h (die_info_ptr): Remove typedef.
13173
4fc6c0d5
TT
131742020-02-08 Tom Tromey <tom@tromey.com>
13175
13176 * dwarf2read.c (read_call_site_scope)
13177 (handle_data_member_location, dwarf2_add_member_fn)
13178 (mark_common_block_symbol_computed, read_common_block)
13179 (attr_to_dynamic_prop, partial_die_info::read)
13180 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13181 (dwarf2_symbol_mark_computed, set_die_type): Update.
13182 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13183 method.
13184 (attr_form_is_block): Don't declare.
13185 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13186
cd6c91b4
TT
131872020-02-08 Tom Tromey <tom@tromey.com>
13188
13189 * dwarf2read.c (dwarf2_find_base_address, )
13190 (read_call_site_scope, rust_containing_type)
13191 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13192 (handle_data_member_location, dwarf2_add_member_fn)
13193 (get_alignment, read_structure_type, process_structure_scope)
13194 (mark_common_block_symbol_computed, read_common_block)
13195 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13196 (partial_die_info::read, read_attribute_value, new_symbol)
13197 (lookup_die_type, dwarf2_get_ref_die_offset)
13198 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13199 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13200 (dwarf2_symbol_mark_computed): Update.
13201 * dwarf2/attribute.h (struct attribute) <value_as_address,
13202 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13203 methods.
13204 (value_as_address, attr_form_is_section_offset)
13205 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13206 * dwarf2/attribute.c (attribute::value_as_address)
13207 (attribute::form_is_section_offset, attribute::form_is_constant)
13208 (attribute::form_is_ref): Now methods.
13209
162dce55
TT
132102020-02-08 Tom Tromey <tom@tromey.com>
13211
13212 * dwarf2read.c (struct attribute, DW_STRING)
13213 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13214 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13215 (attr_form_is_block, attr_form_is_section_offset)
13216 (attr_form_is_constant, attr_form_is_ref): Move.
13217 * dwarf2/attribute.h: New file.
13218 * dwarf2/attribute.c: New file, from dwarf2read.c.
13219 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13220
3054dd54
TT
132212020-02-08 Tom Tromey <tom@tromey.com>
13222
13223 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13224 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13225 Move.
13226 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13227 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13228 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13229 abbrev.c.
13230 * dwarf2/abbrev.h: New file.
13231 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13232 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13233
96b79293
TT
132342020-02-08 Tom Tromey <tom@tromey.com>
13235
13236 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13237 (dwarf2_section_size, dwarf2_get_section_info)
13238 (create_signatured_type_table_from_debug_names)
13239 (create_addrmap_from_aranges, read_debug_names_from_section)
13240 (get_gdb_index_contents_from_section, read_comp_unit_head)
13241 (error_check_comp_unit_head, read_abbrev_offset)
13242 (create_debug_type_hash_table, init_cu_die_reader)
13243 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13244 (read_comp_units_from_section, create_cus_hash_table)
13245 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13246 (create_dwp_v2_section, dwarf2_rnglists_process)
13247 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13248 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13249 (read_indirect_string_from_dwz, read_addr_index_1)
13250 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13251 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13252 (fill_in_loclist_baton): Update.
13253 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13254 get_containing_section, get_bfd_owner, get_bfd_section,
13255 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13256 (dwarf2_read_section, get_section_name, get_section_file_name)
13257 (get_containing_section, get_section_bfd_owner)
13258 (get_section_bfd_section, get_section_name, get_section_file_name)
13259 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13260 declare.
13261 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13262 (dwarf2_section_info::get_bfd_owner)
13263 (dwarf2_section_info::get_bfd_section)
13264 (dwarf2_section_info::get_name)
13265 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13266 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13267 (dwarf2_section_info::read): Now methods.
13268 * dwarf-index-write.c (class debug_names): Update.
13269
2c86cff9
TT
132702020-02-08 Tom Tromey <tom@tromey.com>
13271
13272 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13273 Move to dwarf2/section.h.
13274 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13275 (get_section_bfd_section, get_section_name)
13276 (get_section_file_name, get_section_id, get_section_flags)
13277 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13278 dwarf2/section.c.
13279 * dwarf2/section.h: New file.
13280 * dwarf2/section.c: New file, from dwarf2read.c.
13281 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13282
f4382c45
TT
132832020-02-08 Tom Tromey <tom@tromey.com>
13284
13285 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13286 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13287 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13288 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13289 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13290 * dwarf2/leb.h: New file, from dwarf2read.c.
13291 * dwarf2/leb.c: New file, from dwarf2read.c.
13292 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13293 Remove.
13294 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13295 (COMMON_SFILES): Add dwarf2/leb.c.
13296
01840b7a
JB
132972020-02-08 Joel Brobecker <brobecker@adacore.com>
13298
13299 GDB 9.1 released.
13300
dfcb27e4
IB
133012020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13302
13303 PR gdb/25190:
aac66a4c
SM
13304 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13305 * gdb/remote.c (remote_console_output): Update.
13306 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13307 (ui_file_puts): ...this.
13308 * gdb/ui-file.h (ui_file_puts): Add declaration.
13309 * gdb/utils.c (emit_style_escape): Update.
13310 (flush_wrap_buffer): Update.
13311 (fputs_maybe_filtered): Update.
13312 (fputs_unfiltered): Add function.
dfcb27e4 13313
faa17681
IB
133142020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13315
aac66a4c
SM
13316 * gdb/event-loop.c (gdb_wait_for_event): Update.
13317 * gdb/printcmd.c (printf_command): Update.
13318 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13319 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13320 (gdb_os_flush_stderr): Update.
13321 * gdb/remote.c (remote_console_output): Update.
13322 * gdb/ui-file.c (gdb_flush): Rename to...
13323 (ui_file_flush): ...this.
13324 (stderr_file::write): Update.
13325 (stderr_file::puts): Update.
13326 * gdb/ui-file.h (gdb_flush): Rename to...
13327 (ui_file_flush): ...this.
13328 * gdb/utils.c (gdb_flush): Add function.
13329 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 13330
5abbbe1d
TT
133312020-02-07 Tom Tromey <tromey@adacore.com>
13332
13333 PR breakpoints/24915:
13334 * source.c (find_and_open_source): Do not check basenames_may_differ.
13335
919adfe8
TT
133362020-02-07 Tom Tromey <tom@tromey.com>
13337
13338 * README: Update gdbserver documentation.
13339 * gdbserver: Move to top level.
13340 * configure.tgt (build_gdbserver): Remove.
13341 * configure.ac: Remove --enable-gdbserver.
13342 * configure: Rebuild.
13343 * Makefile.in (distclean): Don't mention gdbserver.
13344
1d5d29e7
SV
133452020-02-06 Shahab Vahedi <shahab@synopsys.com>
13346
13347 * source-cache.c (source_cache::ensure): Surround
13348 get_plain_source_lines with a try/catch.
13349 (source_cache::get_line_charpos): Get rid of try/catch
13350 and only check for the return value of "ensure".
13351 * tui/tui-source.c (tui_source_window::set_contents):
13352 Simplify "nlines" calculation.
13353
6eb1129c
SV
133542020-02-06 Shahab Vahedi <shahab@synopsys.com>
13355
13356 * MAINTAINERS (Write After Approval): Add myself.
13357
c6a42d11
CB
133582020-02-05 Christian Biesinger <cbiesinger@google.com>
13359
13360 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13361 function call.
13362
c8ecdda6
CB
133632020-02-05 Christian Biesinger <cbiesinger@google.com>
13364
13365 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13366
f6480e70
MR
133672020-02-05 Maciej W. Rozycki <macro@wdc.com>
13368
13369 * nat/riscv-linux-tdesc.h: New file.
13370 * nat/riscv-linux-tdesc.c: New file, taking code from...
13371 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13372 ... here.
13373 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13374 NATDEPFILES.
13375
dcc9fbc6
AB
133762020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13377
13378 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13379 we don't set the fake simulator ptid to the null_ptid.
13380
719546c4
SM
133812020-02-03 Simon Marchi <simon.marchi@efficios.com>
13382
13383 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13384 * gdbthread.h (class thread_info) <resumed>: Likewise.
13385 * infrun.c (resume_1): Likewise.
13386 (proceed): Likewise.
13387 (infrun_thread_stop_requested): Likewise.
13388 (stop_all_threads): Likewise.
13389 (handle_inferior_event): Likewise.
13390 (restart_threads): Likewise.
13391 (finish_step_over): Likewise.
13392 (keep_going_stepped_thread): Likewise.
13393 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13394 (linux_handle_extended_wait): Likewise.
13395 * record-btrace.c (get_thread_current_frame_id): Likewise.
13396 * record-full.c (record_full_wait_1): Likewise.
13397 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13398 * target.c (target_resume): Likewise.
13399 * thread.c (set_running_thread): Likewise.
13400
e409c542
AKS
134012020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13402
13403 * f-valprint.c (f77_print_array_1): Changed datatype of index
13404 variable to LONGEST from int to enable it to contain bound
13405 values correctly.
13406
ee98c0da
MR
134072020-02-03 Maciej W. Rozycki <macro@wdc.com>
13408
13409 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13410 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13411 offsets according to FLEN determined.
13412 (riscv_linux_nat_target::read_description): Determine FLEN
13413 dynamically.
13414 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13415 according to FLEN determined.
13416 (riscv_linux_nat_target::store_registers): Likewise.
13417
aa66aac4
SV
134182020-02-01 Shahab Vahedi <shahab@synopsys.com>
13419
13420 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13421 when reg->group is empty and reggroup is not.
13422
fd9faca8
TT
134232020-01-31 Tom Tromey <tromey@adacore.com>
13424
13425 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13426 Call beneath target's mourn_inferior after unpushing.
13427
42330a68
AB
134282020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13429
13430 PR tui/9765
13431 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13432 have enough lines to fill the screen, still return the lowest
13433 address we found.
13434
7a27a45b
AB
134352020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13436
13437 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13438 '-', '<', and '>' commands.
13439
c47f70e2
PA
134402020-01-29 Pedro Alves <palves@redhat.com>
13441 Sergio Durigan Junior <sergiodj@redhat.com>
13442
13443 * infcmd.c (construct_inferior_arguments): Assert that
13444 'argc' is greater than 0.
13445
5133a315
LM
134462020-01-29 Luis Machado <luis.machado@linaro.org>
13447
13448 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13449 (BRK_INSN_MASK): Define to 0xd4200000.
13450 (aarch64_program_breakpoint_here_p): New function.
13451 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13452 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13453 breakpoint.c.
13454 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13455 breakpoint.h
13456 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13457 call gdbarch_program_breakpoint_here_p.
13458 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13459 default_program_breakpoint_here_p, changed return type to bool and
13460 simplified.
13461 * breakpoint.h (program_breakpoint_here): Moved prototype to
13462 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13463 return type to bool.
13464 * gdbarch.c: Regenerate.
13465 * gdbarch.h: Regenerate.
13466 * gdbarch.sh (program_breakpoint_here_p): New method.
13467 * infrun.c (handle_signal_stop): Call
13468 gdbarch_program_breakpoint_here_p.
13469
168f8c6b
TT
134702020-01-26 Tom Tromey <tom@tromey.com>
13471
13472 * ctfread.c (struct ctf_fp_info): Reindent.
13473 (_initialize_ctfread): Remove.
13474
128a391f
TT
134752020-01-26 Tom Tromey <tom@tromey.com>
13476
13477 * psymtab.c (partial_map_expand_apply)
13478 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13479 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13480 (psym_print_stats, psym_expand_symtabs_for_function)
13481 (psym_map_symbol_filenames, psym_map_matching_symbols)
13482 (psym_expand_symtabs_matching)
13483 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13484 (maintenance_check_psymtabs): Use new methods.
13485 * psympriv.h (struct partial_symtab) <readin_p,
13486 get_compunit_symtab>: New methods.
13487 <readin, compunit_symtab>: Remove members.
13488 (struct standard_psymtab): New.
13489 (struct legacy_psymtab): Derive from standard_psymtab.
13490 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13491 standard_psymtab.
13492 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13493
0494dbec
TT
134942020-01-26 Tom Tromey <tom@tromey.com>
13495
13496 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13497 read_dependencies. Add assert.
13498 * psymtab.c (partial_symtab::read_dependencies): New method.
13499 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13500 method.
13501 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13502 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13503 read_dependencies.
13504 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13505 Add assert.
13506
8566b89b
TT
135072020-01-26 Tom Tromey <tom@tromey.com>
13508
13509 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13510 Call expand_psymtab.
13511 (xcoff_read_symtab): Call expand_psymtab.
13512 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13513 legacy_expand_psymtab.
13514 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13515 method.
13516 (struct legacy_psymtab) <expand_psymtab>: Implement.
13517 <legacy_expand_psymtab>: New member.
13518 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13519 (parse_partial_symbols): Set legacy_expand_psymtab.
13520 (psymtab_to_symtab_1): Change argument order. Call
13521 expand_psymtab.
13522 (new_psymtab): Set legacy_expand_psymtab.
13523 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13524 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13525 expand_psymtab.
13526 (dwarf2_psymtab::expand_psymtab): Rename from
13527 psymtab_to_symtab_1. Call expand_psymtab.
13528 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13529 (dbx_end_psymtab): Likewise.
13530 (dbx_psymtab_to_symtab_1): Change argument order. Call
13531 expand_psymtab.
13532 (dbx_read_symtab): Call expand_psymtab.
13533 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13534 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13535 (ctf_psymtab::read_symtab): Call expand_psymtab.
13536
077cbab2
TT
135372020-01-26 Tom Tromey <tom@tromey.com>
13538
13539 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13540 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13541 messages.
13542 * mdebugread.c (mdebug_read_symtab): Remove prints.
13543 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13544 assert.
13545 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13546
891813be
TT
135472020-01-26 Tom Tromey <tom@tromey.com>
13548
13549 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13550 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13551 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13552 legacy_symtab.
13553 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13554 * psymtab.c (psymtab_to_symtab): Call method.
13555 (dump_psymtab): Update.
13556 * psympriv.h (struct partial_symtab): Add virtual destructor.
13557 <read_symtab>: New method.
13558 (struct legacy_symtab): New.
13559 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13560 (struct pst_map) <pst>: Now a legacy_psymtab.
13561 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13562 (new_psymtab): Use legacy_psymtab.
13563 * dwarf2read.h (struct dwarf2_psymtab): New.
13564 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13565 * dwarf2read.c (dwarf2_create_include_psymtab)
13566 (dwarf2_build_include_psymtabs, create_type_unit_group)
13567 (create_partial_symtab, process_psymtab_comp_unit_reader)
13568 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13569 (set_partial_user): Use dwarf2_psymtab.
13570 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13571 (psymtab_to_symtab_1, process_full_comp_unit)
13572 (process_full_type_unit, dwarf2_ranges_read)
13573 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13574 (dwarf_decode_lines): Use dwarf2_psymtab.
13575 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13576 (add_address_entry_worker, write_one_signatured_type)
13577 (recursively_count_psymbols, recursively_write_psymbols)
13578 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13579 (write_debug_names): Likewise.
13580 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13581 <pst>: Now a legacy_psymtab.
13582 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13583 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13584 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13585 * ctfread.c (struct ctf_psymtab): New.
13586 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13587 ctf_psymtab.
13588 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13589 (create_partial_symtab): Return a ctf_psymtab.
13590 (scan_partial_symbols): Update.
13591
c3693a1d
TT
135922020-01-26 Tom Tromey <tom@tromey.com>
13593
13594 * xcoffread.c (xcoff_start_psymtab): Use new.
13595 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13596 renamed from start_psymtab_common.
13597 * psympriv.h (struct partial_symtab): Add new constructor.
13598 (start_psymtab_common): Don't declare.
13599 * mdebugread.c (parse_partial_symbols): Use new.
13600 * dwarf2read.c (create_partial_symtab): Use new.
13601 * dbxread.c (start_psymtab): Use new.
13602 * ctfread.c (create_partial_symtab): Use new.
13603
32caafd0
TT
136042020-01-26 Tom Tromey <tom@tromey.com>
13605
13606 * xcoffread.c (xcoff_end_psymtab): Use new.
13607 * psymtab.c (start_psymtab_common): Use new.
13608 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13609 Update.
13610 * psympriv.h (struct partial_symtab): Add parameters to
13611 constructor. Don't inline.
13612 (allocate_psymtab): Don't declare.
13613 * mdebugread.c (new_psymtab): Use new.
13614 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13615 * dbxread.c (dbx_end_psymtab): Use new.
13616
abaa2f23
TT
136172020-01-26 Tom Tromey <tom@tromey.com>
13618
13619 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13620 allocate_psymtab. Update documentation.
13621 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13622 allocate_psymtab. Do not use new.
13623 (allocate_psymtab): Use new. Update.
13624
6d94535f
TT
136252020-01-26 Tom Tromey <tom@tromey.com>
13626
13627 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13628 * psymtab.c (psym_print_stats): Update.
13629 * psympriv.h (struct partial_symtab) <readin,
13630 psymtabs_addrmap_supported, anonymous>: Now bool.
13631 * mdebugread.c (psymtab_to_symtab_1): Update.
13632 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13633 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13634 (process_full_comp_unit, process_full_type_unit): Update.
13635 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13636 * ctfread.c (psymtab_to_symtab): Update.
13637
6f17252b
TT
136382020-01-26 Tom Tromey <tom@tromey.com>
13639
13640 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13641 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13642 * psymtab.c (psymtab_storage): Delete psymtabs.
13643 (psymtab_storage::allocate_psymtab): Use new.
13644 (psymtab_storage::discard_psymtab): Use delete.
13645 * psympriv.h (struct partial_symtab): Add constructor and
13646 initializers.
13647
f6f1cebc
TT
136482020-01-26 Tom Tromey <tom@tromey.com>
13649
13650 * machoread.c: Do not include psympriv.h.
13651
e47e48f6
PW
136522020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13653
13654 * NEWS: Mention the new option and the set/show commands.
13655
a2fedca9
PW
136562020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13657
13658 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13659 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13660 (validate_exec_file): New variables, enums, functions.
13661 (exec_file_locate_attach, print_section_info): Style the filenames.
13662 (_initialize_exec): Install show_exec_file_mismatch_command and
13663 set_exec_file_mismatch_command.
13664 * gdbcore.h (validate_exec_file): Declare.
13665 * infcmd.c (attach_command): Call validate_exec_file.
13666 * remote.c ( remote_target::remote_add_inferior): Likewise.
13667
7ffa82e1
AB
136682020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13669
13670 * frame.c (find_frame_sal): Move call to get_next_frame into more
13671 inner scope.
13672 * inline-frame.c (inilne_state) <inline_state>: Update argument
13673 types.
13674 (inilne_state) <skipped_symbol>: Rename to...
13675 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13676 (skip_inline_frames): Build vector of skipped symbols and use this
13677 to reate the inline_state.
13678 (inline_skipped_symbol): Add a comment and some assertions, fetch
13679 skipped symbol from the list.
13680
3d92a3e3
AB
136812020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13682
13683 * buildsym.c (lte_is_less_than): Delete.
13684 (buildsym_compunit::end_symtab_with_blockvector): Create local
13685 lambda function to sort line table entries, and use
13686 std::stable_sort instead of std::sort.
13687 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13688 markers when looking for a previous line.
13689
94a72be7
AB
136902020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13691
13692 * dwarf2read.c (lnp_state_machine::record_line): Include
13693 end_sequence parameter in debug print out. Record the line if we
13694 are at an end_sequence marker even if it's not the start of a
13695 statement.
13696 * symmisc.c (maintenance_print_one_line_table): Print end of
13697 sequence markers with 'END' not '0'.
13698
53af73bf
PA
136992020-01-24 Pedro Alves <palves@redhat.com>
13700
13701 PR gdb/25410
13702 * thread.c (scoped_restore_current_thread::restore): Use
13703 switch_to_inferior_no_thread.
13704 * exec.c: Include "progspace-and-thread.h".
13705 (add_target_sections, remove_target_sections):
13706 scoped_restore_current_pspace_and_thread instead of
13707 scoped_restore_current_thread.
13708 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13709 and aspace to the inferior before calling clone_program_space.
13710 Remove stale comment.
13711
3050c6f4
CB
137122020-01-24 Christian Biesinger <cbiesinger@google.com>
13713
13714 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13715 (arm_netbsd_nat_target::fetch_registers): ...this.
13716 (arm_nbsd_nat_target::store_registers): Rename to...
13717 (arm_netbsd_nat_target::store_registers): ...this.
13718
73685c7e
CB
137192020-01-24 Christian Biesinger <cbiesinger@google.com>
13720
13721 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13722 register_t.
13723
89203d40
CB
137242020-01-24 Christian Biesinger <cbiesinger@google.com>
13725
13726 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13727 Update comment.
13728 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13729 Likewise.
13730 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13731 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13732 the correct replacement (iterate_over_regset_sections).
13733 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13734 Update comment.
13735
1ba1ac88
AB
137362020-01-24 Graham Markall <graham.markall@embecosm.com>
13737
13738 PR gdb/23718
13739 * gdb/python/python.c (execute_gdb_command): Call
13740 async_enable_stdin in catch block.
13741
f3364a6d
AB
137422020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13743
13744 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13745 SWITCH_THRU_ALL_UIS.
13746
733d0a67
AB
137472020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13748
13749 PR tui/9765
13750 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13751 comment, add extra parameter, and update to store previous symbol
13752 when appropriate.
13753 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13754 add extra parameter.
13755 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13756 remove unneeded parameter, add try/catch around gdb_print_insn,
13757 rewrite to add items to asm_lines vector.
13758 (tui_find_backward_disassembly_start_address): New function.
13759 (tui_find_disassembly_address): Updated throughout.
13760 (tui_disasm_window::set_contents): Update for changes to
13761 tui_disassemble.
13762 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13763 number of lines to scroll.
13764
b3b3bada
SM
137652020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13766
13767 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13768 (SECT_OFF_DATA): Likewise.
13769 (SECT_OFF_RODATA): Likewise.
13770 (SECT_OFF_TEXT): Likewise.
13771 (SECT_OFF_BSS): Likewise.
13772 (struct objfile) <text_section_offset, data_section_offset>: New
13773 methods.
13774 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13775 objfile::text_section_offset.
13776 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13777 * coffread.c (coff_symtab_read): Likewise.
13778 (enter_linenos): Likewise.
13779 (process_coff_symbol): Likewise.
13780 * ctfread.c (get_objfile_text_range): Likewise.
13781 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13782 Use objfile::data_section_offset.
13783 * dwarf2-frame.c (execute_cfa_program): Use
13784 objfile::text_section_offset.
13785 (dwarf2_frame_find_fde): Likewise.
13786 * dwarf2read.c (create_addrmap_from_index): Likewise.
13787 (create_addrmap_from_aranges): Likewise.
13788 (dw2_find_pc_sect_compunit_symtab): Likewise.
13789 (process_psymtab_comp_unit_reader): Likewise.
13790 (add_partial_symbol): Likewise.
13791 (add_partial_subprogram): Likewise.
13792 (process_full_comp_unit): Likewise.
13793 (read_file_scope): Likewise.
13794 (read_func_scope): Likewise.
13795 (read_lexical_block_scope): Likewise.
13796 (read_call_site_scope): Likewise.
13797 (dwarf2_rnglists_process): Likewise.
13798 (dwarf2_ranges_process): Likewise.
13799 (dwarf2_ranges_read): Likewise.
13800 (dwarf_decode_lines_1): Likewise.
13801 (new_symbol): Likewise.
13802 (dwarf2_fetch_die_loc_sect_off): Likewise.
13803 (dwarf2_per_cu_text_offset): Likewise.
13804 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13805 * hppa-tdep.c (read_unwind_info): Likewise.
13806 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13807 * psympriv.h (struct partial_symtab): Likewise.
13808 * psymtab.c (find_pc_sect_psymtab): Likewise.
13809 * solib-svr4.c (enable_break): Likewise.
13810 * stap-probe.c (relocate_address): Use
13811 objfile::data_section_offset.
13812 * xcoffread.c (enter_line_range): Use
13813 objfile::text_section_offset.
13814 (read_xcoff_symtab): Likewise.
13815
ab53f382
SM
138162020-01-23 Simon Marchi <simon.marchi@efficios.com>
13817
13818 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13819 declaration to narrower scopes.
13820
e7eee665
SM
138212020-01-23 Simon Marchi <simon.marchi@efficios.com>
13822
13823 * darwin-nat.h (struct darwin_exception_msg, enum
13824 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13825 Move up.
13826 (class darwin_nat_target) <wait_1, check_new_threads,
13827 decode_exception_message, decode_message, stop_inferior,
13828 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13829 * darwin-nat.c (darwin_check_new_threads): Rename to...
13830 (darwin_nat_target::check_new_threads): ... this.
13831 (darwin_suspend_inferior_it): Remove.
13832 (darwin_decode_exception_message): Rename to...
13833 (darwin_nat_target::decode_exception_message): ... this.
13834 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13835 (darwin_decode_message): Rename to...
13836 (darwin_nat_target::decode_message): ... this.
13837 (cancel_breakpoint): Rename to...
13838 (darwin_nat_target::cancel_breakpoint): ... this.
13839 (darwin_wait): Rename to...
13840 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13841 instead of iterate_over_inferiors.
13842 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13843 (darwin_stop_inferior): Rename to...
13844 (darwin_nat_target::stop_inferior): ... this.
13845 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13846 (darwin_init_thread_list): Rename to...
13847 (darwin_nat_target::init_thread_list): ... this.
13848 (darwin_ptrace_him): Rename to...
13849 (darwin_nat_target::ptrace_him): ... this.
13850 (darwin_nat_target::create_inferior): Pass lambda function to
13851 fork_inferior.
13852 (darwin_nat_target::detach): Call stop_inferior instead of
13853 darwin_stop_inferior.
13854 * fork-inferior.h (fork_inferior): Change init_trace_fun
13855 parameter to gdb::function_view.
13856 * fork-inferior.c (fork_inferior): Likewise.
13857
c162ed3e
HD
138582020-01-23 Hannes Domani <ssbssa@yahoo.de>
13859
13860 * i386-cygwin-tdep.c (core_process_module_section): Update.
13861 * windows-nat.c (struct lm_info_windows): Add text_offset.
13862 (windows_xfer_shared_libraries): Update.
13863 * windows-tdep.c (windows_xfer_shared_library):
13864 Add text_offset_cached argument.
13865 * windows-tdep.h (windows_xfer_shared_library): Update.
13866
a1237872
SM
138672020-01-21 Simon Marchi <simon.marchi@efficios.com>
13868
13869 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13870
b3ee6dd9
SM
138712020-01-21 Simon Marchi <simon.marchi@efficios.com>
13872
13873 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13874 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13875 replace with range-based for.
13876 (gdbsim_interrupt_inferior): Remove.
13877 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13878 with a range-based for. Inline code from
13879 gdbsim_interrupt_inferior.
13880
f9fac3c8
SM
138812020-01-21 Simon Marchi <simon.marchi@efficios.com>
13882
13883 * infrun.c (proceed): Fix indentation.
13884
f6474de9
TT
138852020-01-21 Tom Tromey <tromey@adacore.com>
13886
13887 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13888 * python/python.c (python_extension_ops): Update.
13889 (gdbpy_colorize): New function.
13890 * python/lib/gdb/__init__.py (colorize): New function.
13891 * extension.h (ext_lang_colorize): Declare.
13892 * extension.c (ext_lang_colorize): New function.
13893 * extension-priv.h (struct extension_language_ops) <colorize>: New
13894 member.
13895 * cli/cli-style.c (_initialize_cli_style): Update help text.
13896
f0c702d4
LM
138972020-01-21 Luis Machado <luis.machado@linaro.org>
13898
13899 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13900 <cond>: Change type to bool.
13901 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13902 (aarch64_displaced_step_cb): Likewise.
13903 (aarch64_displaced_step_tb): Likewise.
13904
1ab139e5
LM
139052020-01-21 Luis Machado <luis.machado@linaro.org>
13906
13907 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13908 output.
13909
0c271889
LM
139102020-01-21 Luis Machado <luis.machado@linaro.org>
13911
13912 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13913 <pc_adjust>: Adjust the documentation.
13914 (aarch64_displaced_step_fixup): Check if PC really moved before
13915 adjusting it.
13916
4d89c1c7
TT
139172020-01-19 Tom Tromey <tom@tromey.com>
13918
13919 * disasm.c (~gdb_disassembler): New destructor.
13920 (gdb_buffered_insn_length): Call disassemble_free_target.
13921 * disasm.h (class gdb_disassembler): Declare destructor. Use
13922 DISABLE_COPY_AND_ASSIGN.
13923
c0ab21c2
TT
139242020-01-19 Tom Tromey <tom@tromey.com>
13925
13926 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13927 (die_reader_func_ftype): Remove.
13928 (cutu_reader): New class.
13929 (dw2_get_file_names_reader): Remove "data" parameter.
13930 (dw2_get_file_names): Use cutu_reader.
13931 (create_debug_type_hash_table): Update.
13932 (read_cutu_die_from_dwo): Update comment.
13933 (lookup_dwo_unit): Add dwo_name parameter.
13934 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13935 die_reader_func_ftype and data parameters.
13936 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13937 Remove die_reader_func_ftype and data parameters.
13938 (~cutu_reader): New; from init_cutu_and_read_dies.
13939 (cutu_reader::cutu_reader): Rename from
13940 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13941 and data parameters.
13942 (init_cutu_and_read_dies_simple): Remove.
13943 (struct process_psymtab_comp_unit_data): Remove.
13944 (process_psymtab_comp_unit_reader): Remove data parameter; add
13945 want_partial_unit and pretend_language parameters.
13946 (process_psymtab_comp_unit): Use cutu_reader.
13947 (build_type_psymtabs_reader): Remove data parameter.
13948 (build_type_psymtabs_1): Use cutu_reader.
13949 (process_skeletonless_type_unit): Likewise.
13950 (load_partial_comp_unit_reader): Remove.
13951 (load_partial_comp_unit): Use cutu_reader.
13952 (load_full_comp_unit_reader): Remove.
13953 (load_full_comp_unit): Use cutu_reader.
13954 (struct create_dwo_cu_data): Remove.
13955 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13956 dwo_unit parameters.
13957 (create_cus_hash_table): Use cutu_reader.
13958 (struct dwarf2_read_addr_index_data): Remove.
13959 (dwarf2_read_addr_index_reader): Remove.
13960 (dwarf2_read_addr_index): Use cutu_reader.
13961 (read_signatured_type_reader): Remove.
13962 (read_signatured_type): Use cutu_reader.
13963
45bbae5c
TT
139642020-01-19 Tom Tromey <tom@tromey.com>
13965
13966 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13967 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13968 (tui_wrefresh): Declare.
13969 * tui/tui-wingeneral.c (suppress_output): New global.
13970 (tui_suppress_output, ~tui_suppress_output): New constructor and
13971 destructor.
13972 (tui_wrefresh): New function.
13973 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13974 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13975 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13976 method.
13977 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13978 tui_wrefresh.
13979 (tui_data_window::no_refresh): New method.
13980 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13981 (tui_reg_command): Use tui_suppress_output
13982 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13983 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13984 method.
13985 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13986
4f13c1c0
TT
139872020-01-19 Tom Tromey <tom@tromey.com>
13988
13989 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13990 Handle case where symtab is null.
13991
fa47e446
SM
139922020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13993
13994 * linux-fork.c (one_fork_p): Simplify.
13995
26f42329
SM
139962020-01-17 Simon Marchi <simon.marchi@efficios.com>
13997
13998 * top.c (struct qt_args): Remove.
13999 (kill_or_detach): Change return type to void, replace `void *`
14000 parameter with a proper one.
14001 (print_inferior_quit_action): Likewise.
14002 (quit_confirm): Use range-based for loop to iterate over inferiors.
14003 (quit_force): Likewise.
14004
a9ac81b1
SM
140052020-01-17 Simon Marchi <simon.marchi@efficios.com>
14006
14007 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14008 `void *` parameter with proper parameters.
14009 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14010 (print_one_inferior): Change return type to void, replace `void *`
14011 parameter with proper parameters.
14012 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14013 inferiors.
14014 (get_other_inferior): Remove.
14015 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14016 inferiors.
14017
788eca49
SM
140182020-01-17 Simon Marchi <simon.marchi@efficios.com>
14019
14020 * mi/mi-interp.c (report_initial_inferior): Remove.
14021 (mi_interp::init): Use range-based for to iterate over inferiors.
14022
d9bc85b6
SM
140232020-01-17 Simon Marchi <simon.marchi@efficios.com>
14024
14025 * python/py-inferior.c (build_inferior_list): Remove.
14026 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14027
40c94099
CB
140282020-01-16 Christian Biesinger <cbiesinger@google.com>
14029
14030 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14031 (btrace_stitch_trace): Likewise.
14032 * charset.c (intermediate_encoding): Likewise (vaild).
14033 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14034 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14035 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14036
e0cdfe3c
HD
140372020-01-16 Hannes Domani <ssbssa@yahoo.de>
14038
14039 * windows-tdep.c (windows_get_tlb_type):
14040 Add rtl_user_process_parameters type.
14041
790f1718 140422020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 14043 Norbert Lange <nolange79@gmail.com>
790f1718
PA
14044
14045 PR build/24805
14046 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14047 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14048 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14049 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14050 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14051 (ps_plog): Redeclare exported functions with default visibility.
14052
3112ed97
NA
140532020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14054
14055 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14056 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14057
8dc3273e
SM
140582020-01-15 Simon Marchi <simon.marchi@efficios.com>
14059
14060 * infcmd.c (post_create_inferior): Use get_thread_regcache
14061 instead of get_current_regcache.
14062
ff47f4f0
TT
140632020-01-14 Tom Tromey <tom@tromey.com>
14064
14065 PR symtab/12535:
14066 * python/python.c (gdbpy_decode_line): Treat empty string the same
14067 as no argument.
14068
975f45b7
TT
140692020-01-14 Tom Tromey <tom@tromey.com>
14070
14071 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14072
25e57356
TT
140732020-01-14 Tom Tromey <tom@tromey.com>
14074
14075 * nat/linux-btrace.c: Don't include <config.h>.
14076 * nat/linux-ptrace.c: Don't include <config.h>.
14077 * nat/x86-linux-dregs.c: Don't include <config.h>.
14078
05ea2a05
TT
140792020-01-14 Tom Tromey <tom@tromey.com>
14080
14081 * configure: Rebuild.
14082 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14083
01027315
TT
140842020-01-14 Tom Tromey <tom@tromey.com>
14085
14086 * nat/x86-linux-dregs.c: Include configh.h.
14087 * nat/linux-ptrace.c: Include configh.h.
14088 * nat/linux-btrace.c: Include configh.h.
14089 * defs.h: Include config.h, bfd.h.
14090 * configure.ac: Don't source common.host.
14091 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14092 * configure: Rebuild.
14093 * acinclude.m4: Update path.
14094 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14095 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14096 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14097 (CLIBS): Add LIBSUPPORT.
14098 (CDEPS): Likewise.
14099 (COMMON_SFILES): Remove gdbsupport files.
14100 (HFILES_NO_SRCDIR): Likewise.
14101 (stamp-version): Update path to create-version.sh.
14102 (ALLDEPFILES): Remove gdbsupport files.
14103
b2ceabe8
TT
141042020-01-14 Tom Tromey <tom@tromey.com>
14105
14106 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14107 USE_WIN32API when needed.
14108 * configure.ac (USE_WIN32API): Don't define.
14109 (WIN32LIBS): Use WIN32APILIBS.
14110 * configure: Rebuild.
14111
25c51f71
TT
141122020-01-14 Tom Tromey <tom@tromey.com>
14113
14114 * configure: Rebuild.
14115 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14116
717c684d
BE
141172020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14118
14119 * skip.c (skip_function_command): Make skip w/o arguments use the
14120 name of the inlined function if pc is inside any inlined function.
14121
7da6a5b9
LM
141222020-01-14 Luis Machado <luis.machado@linaro.org>
14123
14124 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14125 * infrun.c (resume_1): Likewise.
14126 (handle_inferior_event): Remove stale comment.
14127 * linux-nat.c (linux_nat_target::resume): Update comments.
14128 (save_stop_reason): Likewise.
14129 (linux_nat_filter_event): Likewise.
14130 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14131
44e4c775
AB
141322020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14133
14134 * elfread.c (record_minimal_symbol): Set section index to 0 for
14135 non-allocatable sections.
14136
18a8505e
AT
14137
141382020-01-13 Ali Tamur <tamur@google.com>
14139
14140 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14141 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14142 to gdb::optional. Update comments.
14143 (dwo_file): Update comments.
14144 (read_attribute): Update API to take an additional out parameter,
14145 need_reprocess. This is used to mark attributes that need other
14146 attributes (e.g. str_offsets_base) for correct computation which may not
14147 have been read yet.
14148 (read_attribute_reprocess): New function declaration.
14149 (read_addr_index): Likewise.
14150 (read_dwo_str_index): Likewise.
14151 (read_stub_str_index): Likewise.
14152 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14153 (lookup_addr_base): New function definition.
14154 (lookup_ranges_base): Likewise.
14155 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14156 lookup_ranges_base.
14157 (init_cutu_and_read_dies): Update comments.
14158 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14159 unit. This is used to inherit parent's str_offsets_base and addr_base.
14160 Update comments.
14161 (init_cutu_and_read_dies_simple): Reflect API changes.
14162 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14163 (create_cus_hash_table): Change API to take parent compile unit.
14164 Reflect API changes.
14165 (open_and_init_dwo_file): Reflect API changes.
14166 (dwarf2_get_pc_bounds): Update comments.
14167 (dwarf2_record_block_ranges): Likewise.
14168 (read_full_die_1): Change implementation to reprocess attributes that
14169 need str_offsets_base and addr_base.
14170 (partial_die_info::read): Likewise.
14171 (read_attribute_reprocess): New function definition.
14172 (read_attribute_value): Change API to take an additional out parameter,
14173 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14174 when a non-dwo compile unit has index based attributes.
14175 (read_attribute): Reflect API changes.
14176 (read_addr_index_1): Reflect API changes. Update comments.
14177 (dwarf2_read_addr_index_data): Reflect API changes.
14178 (dwarf2_read_addr_index): Likewise.
14179 (read_str_index): Change API and implementation. This becomes a helper
14180 to be used by the new string index related methods. Update error
14181 message and comments.
14182 (read_dwo_str_index): New function definition.
14183 (read_stub_str_index): Likewise.
14184 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14185 * symfile.h (dwarf2_debug_sections): Likewise.
14186 * xcoffread.c (dwarf2_debug_sections): Likewise.
14187
0cac9354
SM
141882020-01-13 Simon Marchi <simon.marchi@efficios.com>
14189
14190 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14191 core_reg_sect type to gdb_byte *.
14192 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14193 * cris-tdep.c (fetch_core_registers): Likewise.
14194 * corelow.c (core_target::get_core_register_section): Change
14195 type of `contents` to gdb::byte_vector.
14196
9a6d629c
AB
141972020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14198
14199 * tui/tui-wingeneral.c (box_win): Position the title in the center
14200 of the border.
14201
d8b2f9e3
SM
142022020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14203
14204 * corelow.c (core_target::get_core_register_section): Use
14205 std::vector instead of alloca.
14206
bb564c58
SM
142072020-01-13 Simon Marchi <simon.marchi@efficios.com>
14208
14209 * warning.m4: Add -Wmissing-declarations to build_warnings.
14210 * configure: Re-generate.
14211
6b366111
SM
142122020-01-13 Simon Marchi <simon.marchi@efficios.com>
14213
14214 * python/python.c (init__gdb_module): Add declaration.
14215
6c265988
SM
142162020-01-13 Simon Marchi <simon.marchi@efficios.com>
14217
14218 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14219 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14220 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14221 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14222 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14223 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14224 * ada-exp.y (_initialize_ada_exp): Add declaration.
14225 * ada-lang.c (_initialize_ada_language): Add declaration.
14226 * ada-tasks.c (_initialize_tasks): Add declaration.
14227 * agent.c (_initialize_agent): Add declaration.
14228 * aix-thread.c (_initialize_aix_thread): Add declaration.
14229 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14230 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14231 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14232 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14233 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14234 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14235 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14236 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14237 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14238 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14239 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14240 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14241 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14242 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14243 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14244 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14245 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14246 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14247 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14248 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14249 * annotate.c (_initialize_annotate): Add declaration.
14250 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14251 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14252 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14253 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14254 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14255 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14256 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14257 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14258 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14259 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14260 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14261 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14262 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14263 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14264 * auto-load.c (_initialize_auto_load): Add declaration.
14265 * auxv.c (_initialize_auxv): Add declaration.
14266 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14267 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14268 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14269 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14270 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14271 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14272 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14273 * breakpoint.c (_initialize_breakpoint): Add declaration.
14274 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14275 * btrace.c (_initialize_btrace): Add declaration.
14276 * charset.c (_initialize_charset): Add declaration.
14277 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14278 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14279 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14280 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14281 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14282 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14283 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14284 * coffread.c (_initialize_coffread): Add declaration.
14285 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14286 * compile/compile.c (_initialize_compile): Add declaration.
14287 * complaints.c (_initialize_complaints): Add declaration.
14288 * completer.c (_initialize_completer): Add declaration.
14289 * copying.c (_initialize_copying): Add declaration.
14290 * corefile.c (_initialize_core): Add declaration.
14291 * corelow.c (_initialize_corelow): Add declaration.
14292 * cp-abi.c (_initialize_cp_abi): Add declaration.
14293 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14294 * cp-support.c (_initialize_cp_support): Add declaration.
14295 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14296 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14297 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14298 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14299 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14300 * ctfread.c (_initialize_ctfread): Add declaration.
14301 * d-lang.c (_initialize_d_language): Add declaration.
14302 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14303 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14304 * dbxread.c (_initialize_dbxread): Add declaration.
14305 * dcache.c (_initialize_dcache): Add declaration.
14306 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14307 * disasm.c (_initialize_disasm): Add declaration.
14308 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14309 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14310 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14311 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14312 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14313 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14314 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14315 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14316 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14317 * elfread.c (_initialize_elfread): Add declaration.
14318 * exec.c (_initialize_exec): Add declaration.
14319 * extension.c (_initialize_extension): Add declaration.
14320 * f-lang.c (_initialize_f_language): Add declaration.
14321 * f-valprint.c (_initialize_f_valprint): Add declaration.
14322 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14323 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14324 * filesystem.c (_initialize_filesystem): Add declaration.
14325 * findcmd.c (_initialize_mem_search): Add declaration.
14326 * findvar.c (_initialize_findvar): Add declaration.
14327 * fork-child.c (_initialize_fork_child): Add declaration.
14328 * frame-base.c (_initialize_frame_base): Add declaration.
14329 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14330 * frame.c (_initialize_frame): Add declaration.
14331 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14332 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14333 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14334 * gcore.c (_initialize_gcore): Add declaration.
14335 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14336 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14337 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14338 * gdbarch.c (_initialize_gdbarch): Add declaration.
14339 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14340 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14341 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14342 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14343 * go-lang.c (_initialize_go_language): Add declaration.
14344 * go32-nat.c (_initialize_go32_nat): Add declaration.
14345 * guile/guile.c (_initialize_guile): Add declaration.
14346 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14347 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14348 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14349 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14350 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14351 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14352 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14353 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14354 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14355 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14356 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14357 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14358 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14359 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14360 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14361 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14362 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14363 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14364 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14365 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14366 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14367 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14368 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14369 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14370 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14371 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14372 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14373 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14374 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14375 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14376 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14377 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14378 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14379 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14380 * infcall.c (_initialize_infcall): Add declaration.
14381 * infcmd.c (_initialize_infcmd): Add declaration.
14382 * inflow.c (_initialize_inflow): Add declaration.
14383 * infrun.c (_initialize_infrun): Add declaration.
14384 * interps.c (_initialize_interpreter): Add declaration.
14385 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14386 * jit.c (_initialize_jit): Add declaration.
14387 * language.c (_initialize_language): Add declaration.
14388 * linux-fork.c (_initialize_linux_fork): Add declaration.
14389 * linux-nat.c (_initialize_linux_nat): Add declaration.
14390 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14391 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14392 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14393 * m2-lang.c (_initialize_m2_language): Add declaration.
14394 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14395 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14396 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14397 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14398 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14399 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14400 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14401 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14402 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14403 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14404 * machoread.c (_initialize_machoread): Add declaration.
14405 * macrocmd.c (_initialize_macrocmd): Add declaration.
14406 * macroscope.c (_initialize_macroscope): Add declaration.
14407 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14408 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14409 * maint.c (_initialize_maint_cmds): Add declaration.
14410 * mdebugread.c (_initialize_mdebugread): Add declaration.
14411 * memattr.c (_initialize_mem): Add declaration.
14412 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14413 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14414 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14415 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14416 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14417 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14418 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14419 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14420 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14421 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14422 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14423 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14424 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14425 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14426 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14427 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14428 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14429 * mipsread.c (_initialize_mipsread): Add declaration.
14430 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14431 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14432 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14433 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14434 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14435 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14436 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14437 * nto-procfs.c (_initialize_procfs): Add declaration.
14438 * objc-lang.c (_initialize_objc_language): Add declaration.
14439 * observable.c (_initialize_observer): Add declaration.
14440 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14441 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14442 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14443 * osabi.c (_initialize_gdb_osabi): Add declaration.
14444 * osdata.c (_initialize_osdata): Add declaration.
14445 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14446 * parse.c (_initialize_parse): Add declaration.
14447 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14448 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14449 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14450 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14451 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14452 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14453 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14454 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14455 * printcmd.c (_initialize_printcmd): Add declaration.
14456 * probe.c (_initialize_probe): Add declaration.
14457 * proc-api.c (_initialize_proc_api): Add declaration.
14458 * proc-events.c (_initialize_proc_events): Add declaration.
14459 * proc-service.c (_initialize_proc_service): Add declaration.
14460 * procfs.c (_initialize_procfs): Add declaration.
14461 * producer.c (_initialize_producer): Add declaration.
14462 * psymtab.c (_initialize_psymtab): Add declaration.
14463 * python/python.c (_initialize_python): Add declaration.
14464 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14465 * record-btrace.c (_initialize_record_btrace): Add declaration.
14466 * record-full.c (_initialize_record_full): Add declaration.
14467 * record.c (_initialize_record): Add declaration.
14468 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14469 * regcache.c (_initialize_regcache): Add declaration.
14470 * reggroups.c (_initialize_reggroup): Add declaration.
14471 * remote-notif.c (_initialize_notif): Add declaration.
14472 * remote-sim.c (_initialize_remote_sim): Add declaration.
14473 * remote.c (_initialize_remote): Add declaration.
14474 * reverse.c (_initialize_reverse): Add declaration.
14475 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14476 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14477 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14478 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14479 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14480 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14481 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14482 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14483 Add declaration.
14484 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14485 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14486 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14487 * rust-exp.y (_initialize_rust_exp): Add declaration.
14488 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14489 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14490 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14491 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14492 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14493 * score-tdep.c (_initialize_score_tdep): Add declaration.
14494 * ser-go32.c (_initialize_ser_dos): Add declaration.
14495 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14496 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14497 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14498 * ser-uds.c (_initialize_ser_socket): Add declaration.
14499 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14500 * serial.c (_initialize_serial): Add declaration.
14501 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14502 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14503 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14504 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14505 * skip.c (_initialize_step_skip): Add declaration.
14506 * sol-thread.c (_initialize_sol_thread): Add declaration.
14507 * solib-aix.c (_initialize_solib_aix): Add declaration.
14508 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14509 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14510 * solib-frv.c (_initialize_frv_solib): Add declaration.
14511 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14512 * solib-target.c (_initialize_solib_target): Add declaration.
14513 * solib.c (_initialize_solib): Add declaration.
14514 * source-cache.c (_initialize_source_cache): Add declaration.
14515 * source.c (_initialize_source): Add declaration.
14516 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14517 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14518 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14519 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14520 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14521 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14522 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14523 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14524 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14525 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14526 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14527 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14528 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14529 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14530 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14531 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14532 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14533 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14534 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14535 * stabsread.c (_initialize_stabsread): Add declaration.
14536 * stack.c (_initialize_stack): Add declaration.
14537 * stap-probe.c (_initialize_stap_probe): Add declaration.
14538 * std-regs.c (_initialize_frame_reg): Add declaration.
14539 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14540 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14541 * symfile.c (_initialize_symfile): Add declaration.
14542 * symmisc.c (_initialize_symmisc): Add declaration.
14543 * symtab.c (_initialize_symtab): Add declaration.
14544 * target.c (_initialize_target): Add declaration.
14545 * target-connection.c (_initialize_target_connection): Add
14546 declaration.
14547 * target-dcache.c (_initialize_target_dcache): Add declaration.
14548 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14549 * thread.c (_initialize_thread): Add declaration.
14550 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14551 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14552 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14553 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14554 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14555 * tracectf.c (_initialize_ctf): Add declaration.
14556 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14557 * tracefile.c (_initialize_tracefile): Add declaration.
14558 * tracepoint.c (_initialize_tracepoint): Add declaration.
14559 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14560 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14561 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14562 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14563 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14564 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14565 * tui/tui.c (_initialize_tui): Add declaration.
14566 * typeprint.c (_initialize_typeprint): Add declaration.
14567 * ui-style.c (_initialize_ui_style): Add declaration.
14568 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14569 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14570 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14571 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14572 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14573 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14574 * unittests/filtered_iterator-selftests.c
14575 (_initialize_filtered_iterator_selftests): Add declaration.
14576 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14577 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14578 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14579 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14580 * unittests/main-thread-selftests.c
14581 (_initialize_main_thread_selftests): Add declaration.
14582 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14583 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14584 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14585 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14586 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14587 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14588 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14589 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14590 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14591 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14592 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14593 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14594 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14595 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14596 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14597 declaration.
14598 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14599 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14600 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14601 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14602 * user-regs.c (_initialize_user_regs): Add declaration.
14603 * utils.c (_initialize_utils): Add declaration.
14604 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14605 * valops.c (_initialize_valops): Add declaration.
14606 * valprint.c (_initialize_valprint): Add declaration.
14607 * value.c (_initialize_values): Add declaration.
14608 * varobj.c (_initialize_varobj): Add declaration.
14609 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14610 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14611 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14612 * windows-nat.c (_initialize_windows_nat): Add declaration.
14613 (_initialize_check_for_gdb_ini): Add declaration.
14614 (_initialize_loadable): Add declaration.
14615 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14616 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14617 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14618 * xcoffread.c (_initialize_xcoffread): Add declaration.
14619 * xml-support.c (_initialize_xml_support): Add declaration.
14620 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14621 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14622 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14623 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14624
e2de1eec
SM
146252020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14626
14627 * regformats/regdat.sh: Generate declaration for init function.
14628
e0037b4c
SM
146292020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14630
14631 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14632 up.
14633 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14634 close_one_inferior>: New methods.
14635 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14636 pass down target to find_inferior_pid.
14637 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14638 Pass down target to find_inferior_ptid.
14639 (gdbsim_target::create_inferior): Pass down target to
14640 add_thread_silent.
14641 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14642 target down to find_inferior_ptid and switch_to_thread.
14643 (gdbsim_target::close): Update to call close_one_inferior.
14644 (struct resume_data): Remove.
14645 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14646 directly, rather than through a void pointer.
14647 (gdbsim_target::resume): Update to call resume_one_inferior.
14648
58920b5b
SM
146492020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14650
14651 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14652
4ec89149
PA
146532020-01-12 Pedro Alves <palves@redhat.com>
14654
14655 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14656 directly for the current inferior instead of
14657 discard_all_inferiors.
14658 (discard_all_inferiors): Delete.
14659
7c392d1d
TT
146602020-01-11 Tom Tromey <tom@tromey.com>
14661
14662 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14663 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14664 deprecated_safe_get_selected_frame.
14665
d9ebdab7
TBA
146662020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14667
14668 * inferior.c (print_inferior): Switch inferior before printing it.
14669
f3c469b9
PA
146702020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14671 Pedro Alves <palves@redhat.com>
14672
14673 * progspace-and-thread.c (switch_to_program_space_and_thread):
14674 Assert there's an inferior for PSPACE. Use
14675 switch_to_inferior_no_thread to switch the inferior too.
14676 * progspace.c (program_space::~program_space): Call
14677 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14678 (program_space::free_all_objfiles): Don't call clear_symtab_users
14679 here.
14680 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14681
65c574f6
PA
146822020-01-10 Pedro Alves <palves@redhat.com>
14683
14684 * NEWS: Mention multi-target debugging, "info connections", and
14685 "add-inferior -no-connection".
14686
2f4fcf00
PA
146872020-01-10 Pedro Alves <palves@redhat.com>
14688
14689 * infrun.c: Include "target-connection.h".
14690 (check_multi_target_resumption): New.
14691 (proceed): Call it.
14692 * target-connection.c (make_target_connection_string): Make
14693 extern.
14694 * target-connection.h (make_target_connection_string): Declare.
14695
121b3efd
PA
146962020-01-10 Pedro Alves <palves@redhat.com>
14697
14698 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14699 * inferior.c (uiout_field_connection): New function.
14700 (print_inferior): Add new "connection-id" column.
14701 (add_inferior_command): Show connection number/string of added
14702 inferior.
14703 * process-stratum-target.h
14704 (process_stratum_target::connection_string): New virtual method.
14705 (process_stratum_target::connection_number): New field.
14706 * remote.c (remote_target::connection_string): New override.
14707 * target-connection.c: New file.
14708 * target-connection.h: New file.
14709 * target.c (decref_target): Remove process_stratum targets from
14710 the connection list.
14711 (target_stack::push): Add process_stratum targets to the
14712 connection list.
14713
4f837581
PA
147142020-01-10 Pedro Alves <palves@redhat.com>
14715
14716 Revert:
14717 2016-04-12 Pedro Alves <palves@redhat.com>
14718 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14719 Remove references to name.
14720 * serial.h (struct serial) <name>: Delete.
14721
f4ec508e
PA
147222020-01-10 Pedro Alves <palves@redhat.com>
14723
14724 * gdbarch-selftests.c (register_to_value_test): Remove "target
14725 already pushed" check.
14726
5b6d1e4f
PA
147272020-01-10 Pedro Alves <palves@redhat.com>
14728 John Baldwin <jhb@FreeBSD.org>
14729
14730 * aarch64-linux-nat.c
14731 (aarch64_linux_nat_target::thread_architecture): Adjust.
14732 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14733 (task_command_1): Likewise.
14734 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14735 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14736 (aix_thread_target::store_registers)
14737 (aix_thread_target::thread_alive): Adjust.
14738 * amd64-fbsd-tdep.c: Include "inferior.h".
14739 (amd64fbsd_get_thread_local_address): Pass down target.
14740 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14741 thread's gdbarch instead of target_gdbarch.
14742 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14743 get_last_target_status.
14744 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14745 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14746 inferiors.
14747 (update_inserted_breakpoint_locations): Skip if inferiors with no
14748 execution.
14749 (update_global_location_list): When handling moribund locations,
14750 find representative inferior for location's pspace, and use thread
14751 count of its process_stratum target.
14752 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14753 * bsd-uthread.c (bsd_uthread_target::wait): Use
14754 as_process_stratum_target and adjust thread_change_ptid and
14755 add_thread calls.
14756 (bsd_uthread_target::update_thread_list): Use
14757 as_process_stratum_target and adjust find_thread_ptid,
14758 thread_change_ptid and add_thread calls.
14759 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14760 find_thread_ptid call.
14761 * corelow.c (add_to_thread_list): Adjust add_thread call.
14762 (core_target_open): Adjust add_thread_silent and thread_count
14763 calls.
14764 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14765 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14766 * event-top.c (async_disconnect): Pop targets from all inferiors.
14767 * exec.c (add_target_sections): Push exec target on all inferiors
14768 sharing the program space.
14769 (remove_target_sections): Remove the exec target from all
14770 inferiors sharing the program space.
14771 (exec_on_vfork): New.
14772 * exec.h (exec_on_vfork): Declare.
14773 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14774 Pass it down.
14775 (fbsd_nat_target::update_thread_list): Adjust.
14776 (fbsd_nat_target::resume): Adjust.
14777 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14778 down.
14779 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14780 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14781 get_thread_arch_regcache call.
14782 * fork-child.c (gdb_startup_inferior): Pass target down to
14783 startup_inferior and set_executing.
14784 * gdbthread.h (struct process_stratum_target): Forward declare.
14785 (add_thread, add_thread_silent, add_thread_with_info)
14786 (in_thread_list): Add process_stratum_target parameter.
14787 (find_thread_ptid(inferior*, ptid_t)): New overload.
14788 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14789 parameter.
14790 (all_threads()): Delete overload.
14791 (all_threads, all_non_exited_threads): Add process_stratum_target
14792 parameter.
14793 (all_threads_safe): Use brace initialization.
14794 (thread_count): Add process_stratum_target parameter.
14795 (set_resumed, set_running, set_stop_requested, set_executing)
14796 (threads_are_executing, finish_thread_state): Add
14797 process_stratum_target parameter.
14798 (switch_to_thread): Use is_current_thread.
14799 * i386-fbsd-tdep.c: Include "inferior.h".
14800 (i386fbsd_get_thread_local_address): Pass down target.
14801 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14802 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14803 have_inferiors check.
14804 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14805 (inf_ptrace_target::attach): Adjust.
14806 * infcall.c (run_inferior_call): Adjust.
14807 * infcmd.c (run_command_1): Pass target to
14808 scoped_finish_thread_state.
14809 (proceed_thread_callback): Skip inferiors with no execution.
14810 (continue_command): Rename 'all_threads' local to avoid hiding
14811 'all_threads' function. Adjust get_last_target_status call.
14812 (prepare_one_step): Adjust set_running call.
14813 (signal_command): Use user_visible_resume_target. Compare thread
14814 pointers instead of inferior_ptid.
14815 (info_program_command): Adjust to pass down target.
14816 (attach_command): Mark target's 'thread_executing' flag.
14817 (stop_current_target_threads_ns): New, factored out from ...
14818 (interrupt_target_1): ... this. Switch inferior before making
14819 target calls.
14820 * inferior-iter.h
14821 (struct all_inferiors_iterator, struct all_inferiors_range)
14822 (struct all_inferiors_safe_range)
14823 (struct all_non_exited_inferiors_range): Filter on
14824 process_stratum_target too. Remove explicit.
14825 * inferior.c (inferior::inferior): Push dummy target on target
14826 stack.
14827 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14828 Add process_stratum_target parameter, and pass it down.
14829 (have_live_inferiors): Adjust.
14830 (switch_to_inferior_and_push_target): New.
14831 (add_inferior_command, clone_inferior_command): Handle
14832 "-no-connection" parameter. Use
14833 switch_to_inferior_and_push_target.
14834 (_initialize_inferior): Mention "-no-connection" option in
14835 the help of "add-inferior" and "clone-inferior" commands.
14836 * inferior.h: Include "process-stratum-target.h".
14837 (interrupt_target_1): Use bool.
14838 (struct inferior) <push_target, unpush_target, target_is_pushed,
14839 find_target_beneath, top_target, process_target, target_at,
14840 m_stack>: New.
14841 (discard_all_inferiors): Delete.
14842 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14843 (all_inferiors, all_non_exited_inferiors): Add
14844 process_stratum_target parameter.
14845 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14846 (target_last_proc_target): New global.
14847 (follow_fork_inferior): Push target on new inferior. Pass target
14848 to add_thread_silent. Call exec_on_vfork. Handle target's
14849 reference count.
14850 (follow_fork): Adjust get_last_target_status call. Also consider
14851 target.
14852 (follow_exec): Push target on new inferior.
14853 (struct execution_control_state) <target>: New field.
14854 (user_visible_resume_target): New.
14855 (do_target_resume): Call target_async.
14856 (resume_1): Set target's threads_executing flag. Consider resume
14857 target.
14858 (commit_resume_all_targets): New.
14859 (proceed): Also consider resume target. Skip threads of inferiors
14860 with no execution. Commit resumtion in all targets.
14861 (start_remote): Pass current inferior to wait_for_inferior.
14862 (infrun_thread_stop_requested): Consider target as well. Pass
14863 thread_info pointer to clear_inline_frame_state instead of ptid.
14864 (infrun_thread_thread_exit): Consider target as well.
14865 (random_pending_event_thread): New inferior parameter. Use it.
14866 (do_target_wait): Rename to ...
14867 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14868 down.
14869 (threads_are_resumed_pending_p, do_target_wait): New.
14870 (prepare_for_detach): Adjust calls.
14871 (wait_for_inferior): New inferior parameter. Handle it. Use
14872 do_target_wait_1 instead of do_target_wait.
14873 (fetch_inferior_event): Adjust. Switch to representative
14874 inferior. Pass target down.
14875 (set_last_target_status): Add process_stratum_target parameter.
14876 Save target in global.
14877 (get_last_target_status): Add process_stratum_target parameter and
14878 handle it.
14879 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14880 (context_switch): Check inferior_ptid == null_ptid before calling
14881 inferior_thread().
14882 (get_inferior_stop_soon): Pass down target.
14883 (wait_one): Rename to ...
14884 (poll_one_curr_target): ... this.
14885 (struct wait_one_event): New.
14886 (wait_one): New.
14887 (stop_all_threads): Adjust.
14888 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14889 event's target.
14890 (switch_back_to_stepped_thread): Also consider target.
14891 (print_stop_event): Update.
14892 (normal_stop): Update. Also consider the resume target.
14893 * infrun.h (wait_for_inferior): Remove declaration.
14894 (user_visible_resume_target): New declaration.
14895 (get_last_target_status, set_last_target_status): New
14896 process_stratum_target parameter.
14897 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14898 process_stratum_target parameter, and use it.
14899 (clear_inline_frame_state (thread_info*)): New.
14900 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14901 process_stratum_target parameter.
14902 (clear_inline_frame_state (thread_info*)): Declare.
14903 * linux-fork.c (delete_checkpoint_command): Pass target down to
14904 find_thread_ptid.
14905 (checkpoint_command): Adjust.
14906 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14907 instead of just tweaking inferior_ptid.
14908 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14909 (exit_lwp): Pass target down to find_thread_ptid.
14910 (attach_proc_task_lwp_callback): Pass target down to
14911 add_thread/set_running/set_executing.
14912 (linux_nat_target::attach): Pass target down to
14913 thread_change_ptid.
14914 (get_detach_signal): Pass target down to find_thread_ptid.
14915 Consider last target status's target.
14916 (linux_resume_one_lwp_throw, resume_lwp)
14917 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14918 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14919 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14920 (linux_nat_target::async_wait_fd): New.
14921 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14922 target down.
14923 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14924 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14925 * linux-thread-db.c (struct thread_db_info::process_target): New
14926 field.
14927 (add_thread_db_info): Save target.
14928 (get_thread_db_info): New process_stratum_target parameter. Also
14929 match target.
14930 (delete_thread_db_info): New process_stratum_target parameter.
14931 Also match target.
14932 (thread_from_lwp): Adjust to pass down target.
14933 (thread_db_notice_clone): Pass down target.
14934 (check_thread_db_callback): Pass down target.
14935 (try_thread_db_load_1): Always push the thread_db target.
14936 (try_thread_db_load, record_thread): Pass target down.
14937 (thread_db_target::detach): Pass target down. Always unpush the
14938 thread_db target.
14939 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14940 target down. Always unpush the thread_db target.
14941 (find_new_threads_callback, thread_db_find_new_threads_2)
14942 (thread_db_target::update_thread_list): Pass target down.
14943 (thread_db_target::pid_to_str): Pass current inferior down.
14944 (thread_db_target::get_thread_local_address): Pass target down.
14945 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14946 target down.
14947 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14948 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14949 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14950 (procfs_init_inferior): Rename to ...
14951 (procfs_target::procfs_init_inferior): ... this and adjust.
14952 (procfs_target::create_inferior, procfs_notice_thread)
14953 (procfs_do_thread_registers): Adjust.
14954 * ppc-fbsd-tdep.c: Include "inferior.h".
14955 (ppcfbsd_get_thread_local_address): Pass down target.
14956 * proc-service.c (ps_xfer_memory): Switch current inferior and
14957 program space as well.
14958 (get_ps_regcache): Pass target down.
14959 * process-stratum-target.c
14960 (process_stratum_target::thread_address_space)
14961 (process_stratum_target::thread_architecture): Pass target down.
14962 * process-stratum-target.h
14963 (process_stratum_target::threads_executing): New field.
14964 (as_process_stratum_target): New.
14965 * ravenscar-thread.c
14966 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14967 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14968 down.
14969 * record-btrace.c (record_btrace_target::info_record): Adjust.
14970 (record_btrace_target::record_method)
14971 (record_btrace_target::record_is_replaying)
14972 (record_btrace_target::fetch_registers)
14973 (get_thread_current_frame_id, record_btrace_target::resume)
14974 (record_btrace_target::wait, record_btrace_target::stop): Pass
14975 target down.
14976 * record-full.c (record_full_wait_1): Switch to event thread.
14977 Pass target down.
14978 * regcache.c (regcache::regcache)
14979 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14980 process_stratum_target parameter and handle it.
14981 (current_thread_target): New global.
14982 (get_thread_regcache): Add process_stratum_target parameter and
14983 handle it. Switch inferior before calling target method.
14984 (get_thread_regcache): Pass target down.
14985 (get_thread_regcache_for_ptid): Pass target down.
14986 (registers_changed_ptid): Add process_stratum_target parameter and
14987 handle it.
14988 (registers_changed_thread, registers_changed): Pass target down.
14989 (test_get_thread_arch_aspace_regcache): New.
14990 (current_regcache_test): Define a couple local test_target_ops
14991 instances and use them for testing.
14992 (readwrite_regcache): Pass process_stratum_target parameter.
14993 (cooked_read_test, cooked_write_test): Pass mock_target down.
14994 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14995 (get_thread_arch_aspace_regcache): Add process_stratum_target
14996 parameter.
14997 (regcache::target): New method.
14998 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14999 (regcache::registers_changed_ptid): Add process_stratum_target
15000 parameter.
15001 (regcache::m_target): New field.
15002 (registers_changed_ptid): Add process_stratum_target parameter.
15003 * remote.c (remote_state::supports_vCont_probed): New field.
15004 (remote_target::async_wait_fd): New method.
15005 (remote_unpush_and_throw): Add remote_target parameter.
15006 (get_current_remote_target): Adjust.
15007 (remote_target::remote_add_inferior): Push target.
15008 (remote_target::remote_add_thread)
15009 (remote_target::remote_notice_new_inferior)
15010 (get_remote_thread_info): Pass target down.
15011 (remote_target::update_thread_list): Skip threads of inferiors
15012 bound to other targets. (remote_target::close): Don't discard
15013 inferiors. (remote_target::add_current_inferior_and_thread)
15014 (remote_target::process_initial_stop_replies)
15015 (remote_target::start_remote)
15016 (remote_target::remote_serial_quit_handler): Pass down target.
15017 (remote_target::remote_unpush_target): New remote_target
15018 parameter. Unpush the target from all inferiors.
15019 (remote_target::remote_unpush_and_throw): New remote_target
15020 parameter. Pass it down.
15021 (remote_target::open_1): Check whether the current inferior has
15022 execution instead of checking whether any inferior is live. Pass
15023 target down.
15024 (remote_target::remote_detach_1): Pass down target. Use
15025 remote_unpush_target.
15026 (extended_remote_target::attach): Pass down target.
15027 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15028 (remote_target::append_resumption): Pass down target.
15029 (remote_target::append_pending_thread_resumptions)
15030 (remote_target::remote_resume_with_hc, remote_target::resume)
15031 (remote_target::commit_resume): Pass down target.
15032 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15033 (remote_target::interrupt_query)
15034 (remote_target::remove_new_fork_children)
15035 (remote_target::check_pending_events_prevent_wildcard_vcont)
15036 (remote_target::remote_parse_stop_reply)
15037 (remote_target::process_stop_reply): Pass down target.
15038 (first_remote_resumed_thread): New remote_target parameter. Pass
15039 it down.
15040 (remote_target::wait_as): Pass down target.
15041 (unpush_and_perror): New remote_target parameter. Pass it down.
15042 (remote_target::readchar, remote_target::remote_serial_write)
15043 (remote_target::getpkt_or_notif_sane_1)
15044 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15045 down target.
15046 (remote_target::mourn_inferior): Pass down target. Use
15047 remote_unpush_target.
15048 (remote_target::core_of_thread)
15049 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15050 (remote_target::pid_to_exec_file)
15051 (remote_target::thread_handle_to_thread_info): Pass down target.
15052 (remote_target::async_wait_fd): New.
15053 * riscv-fbsd-tdep.c: Include "inferior.h".
15054 (riscv_fbsd_get_thread_local_address): Pass down target.
15055 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15056 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15057 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15058 Adjust.
15059 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15060 * solib-svr4.c (enable_break): Pass down target.
15061 * spu-multiarch.c (parse_spufs_run): Pass down target.
15062 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15063 * target-delegates.c: Regenerate.
15064 * target.c (g_target_stack): Delete.
15065 (current_top_target): Return the current inferior's top target.
15066 (target_has_execution_1): Refer to the passed-in inferior's top
15067 target.
15068 (target_supports_terminal_ours): Check whether the initial
15069 inferior was already created.
15070 (decref_target): New.
15071 (target_stack::push): Incref/decref the target.
15072 (push_target, push_target, unpush_target): Adjust.
15073 (target_stack::unpush): Defref target.
15074 (target_is_pushed): Return bool. Adjust to refer to the current
15075 inferior's target stack.
15076 (dispose_inferior): Delete, and inline parts ...
15077 (target_preopen): ... here. Only dispose of the current inferior.
15078 (target_detach): Hold strong target reference while detaching.
15079 Pass target down.
15080 (target_thread_name): Add assertion.
15081 (target_resume): Pass down target.
15082 (target_ops::beneath, find_target_at): Adjust to refer to the
15083 current inferior's target stack.
15084 (get_dummy_target): New.
15085 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15086 has a thread running.
15087 (initialize_targets): Rename to ...
15088 (_initialize_target): ... this.
15089 * target.h: Include "gdbsupport/refcounted-object.h".
15090 (struct target_ops): Inherit refcounted_object.
15091 (target_ops::shortname, target_ops::longname): Make const.
15092 (target_ops::async_wait_fd): New method.
15093 (decref_target): Declare.
15094 (struct target_ops_ref_policy): New.
15095 (target_ops_ref): New typedef.
15096 (get_dummy_target): Declare function.
15097 (target_is_pushed): Return bool.
15098 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15099 (all_matching_threads_iterator::all_matching_threads_iterator):
15100 Handle filter target.
15101 * thread-iter.h (struct all_matching_threads_iterator, struct
15102 all_matching_threads_range, class all_non_exited_threads_range):
15103 Filter by target too. Remove explicit.
15104 * thread.c (threads_executing): Delete.
15105 (inferior_thread): Pass down current inferior.
15106 (clear_thread_inferior_resources): Pass down thread pointer
15107 instead of ptid_t.
15108 (add_thread_silent, add_thread_with_info, add_thread): Add
15109 process_stratum_target parameter. Use it for thread and inferior
15110 searches.
15111 (is_current_thread): New.
15112 (thread_info::deletable): Use it.
15113 (find_thread_ptid, thread_count, in_thread_list)
15114 (thread_change_ptid, set_resumed, set_running): New
15115 process_stratum_target parameter. Pass it down.
15116 (set_executing): New process_stratum_target parameter. Pass it
15117 down. Adjust reference to 'threads_executing'.
15118 (threads_are_executing): New process_stratum_target parameter.
15119 Adjust reference to 'threads_executing'.
15120 (set_stop_requested, finish_thread_state): New
15121 process_stratum_target parameter. Pass it down.
15122 (switch_to_thread): Also match inferior.
15123 (switch_to_thread): New process_stratum_target parameter. Pass it
15124 down.
15125 (update_threads_executing): Reimplement.
15126 * top.c (quit_force): Pop targets from all inferior.
15127 (gdb_init): Don't call initialize_targets.
15128 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15129 Declare.
15130 (windows_add_thread, windows_delete_thread): Adjust.
15131 (get_windows_debug_event): Rename to ...
15132 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15133 * tracefile-tfile.c (tfile_target_open): Pass down target.
15134 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15135 Forward declare.
15136 (switch_to_thread): Add process_stratum_target parameter.
15137 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15138 parameter. Use it.
15139 (mi_on_resume): Pass target down.
15140 * nat/fork-inferior.c (startup_inferior): Add
15141 process_stratum_target parameter. Pass it down.
15142 * nat/fork-inferior.h (startup_inferior): Add
15143 process_stratum_target parameter.
15144 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15145
75c6c844
PA
151462020-01-10 Pedro Alves <palves@redhat.com>
15147
15148 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15149 directly. Instead find the first thread in the thread list and
15150 use switch_to_thread.
15151
78f2c40a
PA
151522020-01-10 Pedro Alves <palves@redhat.com>
15153
15154 * remote.c (remote_target::remote_add_inferior): Don't bind a
15155 process to the current inferior if the current inferior is already
15156 bound to a process.
15157
e7af6c70
TBA
151582020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15159 Pedro Alves <palves@redhat.com>
15160
15161 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15162 If no process is specified, return null_ptid instead of
15163 inferior_ptid.
15164 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15165 TARGET_WAITKIND_SIGNALLED with no pid.
15166
31ba933e
PA
151672020-01-10 Pedro Alves <palves@redhat.com>
15168
15169 * remote.c (first_remote_resumed_thread): New.
15170 (remote_target::wait_as): Use it as default event_ptid instead of
15171 inferior_ptid.
15172
735fc2ca
PA
151732020-01-10 Pedro Alves <palves@redhat.com>
15174
15175 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15176
c17e02e1
PA
151772020-01-10 Pedro Alves <palves@redhat.com>
15178
15179 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15180 not -1.
15181
ab1ddbcf
PA
151822020-01-10 Pedro Alves <palves@redhat.com>
15183
15184 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15185 ptid to get_last_target_status.
15186 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15187 ptid to get_last_target_status.
15188 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15189 get_last_target_status.
15190 (info_program_command): Don't pass a target_waitstatus to
15191 get_last_target_status.
15192 * infrun.c (init_wait_for_inferior): Use
15193 nullify_last_target_wait_ptid.
15194 (get_last_target_status): Handle nullptr arguments.
15195 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15196 (print_stop_event): Don't pass a ptid to get_last_target_status.
15197 (normal_stop): Don't pass a ptid to get_last_target_status.
15198 * infrun.h (get_last_target_status, set_last_target_status): Move
15199 comments here and update.
15200 (nullify_last_target_wait_ptid): Declare.
15201 * linux-fork.c (fork_load_infrun_state): Remove local extern
15202 declaration of nullify_last_target_wait_ptid.
15203 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15204 to get_last_target_status.
15205
f3f8ece4
PA
152062020-01-10 Pedro Alves <palves@redhat.com>
15207
15208 * gdbthread.h (scoped_restore_current_thread)
15209 <dont_restore, restore, m_dont_restore>: Declare.
15210 * thread.c (thread_alive): Add assertion. Return bool.
15211 (switch_to_thread_if_alive): New.
15212 (prune_threads): Switch inferior/thread.
15213 (print_thread_info_1): Switch thread before calling target methods.
15214 (scoped_restore_current_thread::restore): New, factored out from
15215 ...
15216 (scoped_restore_current_thread::~scoped_restore_current_thread):
15217 ... this.
15218 (scoped_restore_current_thread::scoped_restore_current_thread):
15219 Add assertion.
15220 (thread_apply_all_command, thread_select): Use
15221 switch_to_thread_if_alive.
15222 * infrun.c (proceed, restart_threads, handle_signal_stop)
15223 (switch_back_to_stepped_thread): Switch current thread before
15224 calling target methods.
15225
db2d40f7
PA
152262020-01-10 Pedro Alves <palves@redhat.com>
15227
15228 * inferior.c (switch_to_inferior_no_thread): New function,
15229 factored out from ...
15230 (inferior_command): ... here.
15231 * inferior.h (switch_to_inferior_no_thread): Declare.
15232 * mi/mi-main.c (run_one_inferior): Use
15233 switch_to_inferior_no_thread.
15234
bd420a2d
PA
152352020-01-10 Pedro Alves <palves@redhat.com>
15236
15237 * infcmd.c (kill_command): Remove dead code.
15238
ddf5db90
PA
152392020-01-10 Pedro Alves <palves@redhat.com>
15240
15241 * remote.c (remote_target::mourn_inferior): No longer check
15242 whether the target is running.
15243
5018ce90
PA
152442020-01-10 Pedro Alves <palves@redhat.com>
15245
15246 * corelow.c (core_target::has_execution): Change parameter type to
15247 inferior pointer.
15248 * inferior.c (number_of_live_inferiors): Use
15249 inferior::has_execution instead of target_has_execution_1.
15250 * inferior.h (inferior::has_execution): New.
15251 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15252 inferior::has_execution instead of target_has_execution_1.
15253 * process-stratum-target.c
15254 (process_stratum_target::has_execution): Change parameter type to
15255 inferior pointer. Check the inferior's PID instead of
15256 inferior_ptid.
15257 * process-stratum-target.h
15258 (process_stratum_target::has_execution): Change parameter type to
15259 inferior pointer.
15260 * record-full.c (record_full_core_target::has_execution): Change
15261 parameter type to inferior pointer.
15262 * target.c (target_has_execution_1): Change parameter type to
15263 inferior pointer.
15264 (target_has_execution_current): Adjust.
15265 * target.h (target_ops::has_execution): Change parameter type to
15266 inferior pointer.
15267 (target_has_execution_1): Change parameter type to inferior
15268 pointer. Change return type to bool.
15269 * tracefile.h (tracefile_target::has_execution): Change parameter
15270 type to inferior pointer.
15271
74375d18
PA
152722020-01-10 Pedro Alves <palves@redhat.com>
15273
15274 * exceptions.c (print_flush): Remove current_top_target() check.
15275
acdf84a6
PA
152762020-01-10 Pedro Alves <palves@redhat.com>
15277
15278 * remote.c (show_remote_exec_file): Show the current inferior's
15279 exec-file instead of the command variable's value.
15280
ec506636
PA
152812020-01-10 Pedro Alves <palves@redhat.com>
15282
15283 * record-full.c (record_full_resume_ptid): New global.
15284 (record_full_target::resume): Set it.
15285 (record_full_wait_1): Use record_full_resume_ptid instead of
15286 inferior_ptid.
15287
873657b9
PA
152882020-01-10 Pedro Alves <palves@redhat.com>
15289
15290 * gdbthread.h (scoped_restore_current_thread)
15291 <dont_restore, restore, m_dont_restore>: Declare.
15292 * thread.c (thread_alive): Add assertion. Return bool.
15293 (switch_to_thread_if_alive): New.
15294 (prune_threads): Switch inferior/thread.
15295 (print_thread_info_1): Switch thread before calling target methods.
15296 (scoped_restore_current_thread::restore): New, factored out from
15297 ...
15298 (scoped_restore_current_thread::~scoped_restore_current_thread):
15299 ... this.
15300 (scoped_restore_current_thread::scoped_restore_current_thread):
15301 Add assertion.
15302 (thread_apply_all_command, thread_select): Use
15303 switch_to_thread_if_alive.
15304
7f0ae84c
GB
153052020-01-10 George Barrett <bob@bob131.so>
15306
15307 * stap-probe.c (stap_modify_semaphore): Don't check for null
15308 semaphores.
15309 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15310 for null semaphores.
15311
f5a7c406
AB
153122020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15313
15314 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15315 all source windows, and maintain horizontal scroll status while
15316 doing so.
15317
9ae6bf64
TT
153182020-01-09 Tom Tromey <tom@tromey.com>
15319
15320 PR tui/18932:
15321 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15322 update_source_window, not print_source_lines.
15323
b2efe70c
AB
153242020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15325
15326 * tui/tui.c (tui_enable): Register tui hooks after calling
15327 tui_display_main.
15328
5f23a082
CB
153292020-01-09 Christian Biesinger <cbiesinger@google.com>
15330
15331 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15332
3061113b
SM
153332020-01-08 Simon Marchi <simon.marchi@efficios.com>
15334
15335 * thread.c (print_thread_info_1): Fix indentation.
15336
57d75002
CB
153372020-01-09 Christian Biesinger <cbiesinger@google.com>
15338
15339 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15340 unique_xmalloc_ptr outside the if to always free the demangled name.
15341
6a053cb1
TT
153422020-01-08 Tom Tromey <tromey@adacore.com>
15343
15344 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15345 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15346 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15347 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15348 Remove.
15349 (section_offsets): New typedef.
15350 * symtab.c (fixup_section, get_msymbol_address): Update.
15351 * symmisc.c (dump_msymbols): Update.
15352 * symfile.h (relative_addr_info_to_section_offsets)
15353 (symfile_map_offsets_to_segments): Update.
15354 * symfile.c (build_section_addr_info_from_objfile)
15355 (init_objfile_sect_indices): Update.
15356 (struct place_section_arg): Change type of "offsets".
15357 (place_section): Update.
15358 (relative_addr_info_to_section_offsets): Change type of
15359 "section_offsets". Remove "num_sections" parameter.
15360 (default_symfile_offsets, syms_from_objfile_1)
15361 (set_objfile_default_section_offset): Update.
15362 (reread_symbols): No need to preserve section offsets by hand.
15363 (symfile_map_offsets_to_segments): Change type of "offsets".
15364 * stap-probe.c (relocate_address): Update.
15365 * stabsread.h (process_one_symbol): Update.
15366 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15367 (solib_target_relocate_section_addresses): Update.
15368 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15369 Update.
15370 * solib-frv.c (frv_relocate_main_executable): Update.
15371 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15372 * solib-aix.c (solib_aix_get_section_offsets): Change return
15373 type.
15374 (solib_aix_solib_create_inferior_hook): Update.
15375 * remote.c (remote_target::get_offsets): Update.
15376 * psymtab.c (find_pc_sect_psymtab): Update.
15377 * psympriv.h (struct partial_symbol) <address, text_low,
15378 text_high>: Update.
15379 * objfiles.h (obj_section_offset): Update.
15380 (struct objfile) <section_offsets>: Change type.
15381 <num_sections>: Remove.
15382 (objfile_relocate): Update.
15383 * objfiles.c (entry_point_address_query): Update
15384 (relocate_one_symbol): Change type of "section_offsets".
15385 (objfile_relocate1, objfile_relocate1): Change type of
15386 "new_offsets".
15387 (objfile_rebase1): Update.
15388 * mipsread.c (mipscoff_symfile_read): Update.
15389 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15390 parameter.
15391 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15392 (parse_external, psymtab_to_symtab_1): Update.
15393 * machoread.c (macho_symfile_offsets): Update.
15394 * ia64-tdep.c (ia64_find_unwind_table): Update.
15395 * hppa-tdep.c (read_unwind_info): Update.
15396 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15397 * dwarf2read.c (create_addrmap_from_index)
15398 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15399 (process_psymtab_comp_unit_reader, add_partial_symbol)
15400 (add_partial_subprogram, process_full_comp_unit)
15401 (read_file_scope, read_func_scope, read_lexical_block_scope)
15402 (read_call_site_scope, dwarf2_rnglists_process)
15403 (dwarf2_ranges_process, dwarf2_ranges_read)
15404 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15405 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15406 Update.
15407 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15408 Update.
15409 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15410 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15411 (process_one_symbol): Change type of "section_offsets".
15412 * ctfread.c (get_objfile_text_range): Update.
15413 * coffread.c (coff_symtab_read, enter_linenos)
15414 (process_coff_symbol): Update.
15415 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15416 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15417
456e800a
TT
154182020-01-08 Tom Tromey <tromey@adacore.com>
15419
15420 * dwarf2read.c (parse_macro_definition): Use std::string.
15421 (parse_macro_definition): Likewise.
15422
6dfa2fc2
TT
154232020-01-08 Tom Tromey <tromey@adacore.com>
15424
15425 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15426 (ATTR_ALLOC_CHUNK): Remove.
15427
421d1616
TT
154282020-01-08 Tom Tromey <tromey@adacore.com>
15429
15430 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15431
43816ebc
TT
154322020-01-08 Tom Tromey <tromey@adacore.com>
15433
15434 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15435 (dwarf2_compute_name, open_dwo_file): Likewise.
15436 (process_enumeration_scope): Use std::vector.
15437 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15438 (partial_die_info::fixup, dwarf2_start_subfile)
15439 (guess_full_die_structure_name, dwarf2_name): Likewise.
15440 (determine_prefix): Update.
15441 (guess_full_die_structure_name): Make return type const.
15442 (partial_die_full_name): Return unique_xmalloc_ptr.
15443 (DW_FIELD_ALLOC_CHUNK): Remove.
15444
4212d509
TT
154452020-01-07 Tom Tromey <tromey@adacore.com>
15446
15447 PR build/24937:
15448 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15449
06a6207a
JT
154502020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15451
15452 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15453
153d79c4
AB
154542020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15455
15456 * stack.c (print_frame_info): Move disassemble_next_line code
15457 inside source_print block.
15458
66182876
EZ
154592020-01-06 Eli Zaretskii <eliz@gnu.org>
15460
15461 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15462 gdb/signals.h, as we are now using native signal symbols.
15463
cbfa8581
SV
154642020-01-06 Shahab Vahedi <shahab@synopsys.com>
15465
15466 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15467 overflow by an early check of content vs threshold.
aac66a4c 15468 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
15469 Likewise.
15470
3f602821
EZ
154712020-01-06 Eli Zaretskii <eliz@gnu.org>
15472
15473 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15474
a08c904d
JT
154752020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15476
15477 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15478 export table if no section contains it's RVA.
15479
89a65580
EZ
154802020-01-06 Eli Zaretskii <eliz@gnu.org>
15481
15482 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15483
8b7fcda2
HD
154842020-01-06 Hannes Domani <ssbssa@yahoo.de>
15485
15486 * source.c (print_source_lines_base): Set last_line_listed.
15487
a61b4f69
SV
154882020-01-06 Shahab Vahedi <shahab@synopsys.com>
15489
15490 * tui/tui-disasm.c: Remove trailing spaces.
15491
559e7e50
EZ
154922020-01-06 Eli Zaretskii <eliz@gnu.org>
15493 Pedro Alves <palves@redhat.com>
15494
15495 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15496 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15497 (windows_gdb_signal_to_target): New function, uses the above
15498 enumeration to convert GDB internal signal codes to equivalent
15499 Windows codes.
15500 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15501 * windows-nat.c: Include "gdb_wait.h".
15502 (get_windows_debug_event): Extract the fatal exception from the
15503 exit status and convert to the equivalent Posix signal number.
15504 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15505 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15506 * gdbsupport/gdb_wait.c: New file, implements
15507 windows_status_to_termsig.
15508 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15509 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15510
f2302a34
AB
155112020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15512
15513 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15514 show_layout.
15515
6a5206eb
LM
155162020-01-05 Luis Machado <luis.machado@linaro.org>
15517
15518 * aarch64-linux-nat.c
15519 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15520 and bfd_mach_aarch64.
15521
6ec1d75e
PW
155222020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15523
15524 * ui-file.c (stdio_file::can_emit_style_escape)
15525 (tee_file::can_emit_style_escape): Ensure style is used also on
15526 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15527 to gdb_stdout.
15528 * main.c (set_gdb_data_directory): Use file style to output the
15529 warning that the given pathname is not a directory.
15530 * top.c (show_history_filename, gdb_safe_append_history)
15531 (show_gdb_datadir): Use file style.
15532
44f81a76
HD
155332020-01-03 Hannes Domani <ssbssa@yahoo.de>
15534
15535 * solib-target.c (struct lm_info_target):
15536 Change offsets to be a unique_xmalloc_ptr.
15537 (solib_target_relocate_section_addresses): Update.
15538
25057eb0
HD
155392020-01-03 Hannes Domani <ssbssa@yahoo.de>
15540
15541 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15542
6e2118f5
BE
155432020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15544
15545 * MAINTAINERS (Write After Approval): Add myself.
15546
8133c7dc
LM
155472020-01-02 Luis Machado <luis.machado@linaro.org>
15548
15549 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15550 Cell BE architecture.
15551 * target.h (struct target_ops) <thread_architecture>: Likewise.
15552
48189bec
HD
155532020-01-01 Hannes Domani <ssbssa@yahoo.de>
15554
15555 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15556
ead1063b
HD
155572020-01-01 Hannes Domani <ssbssa@yahoo.de>
15558
15559 * MAINTAINERS (Write After Approval): Add myself.
15560
e5d78223
JB
155612020-01-01 Joel Brobecker <brobecker@adacore.com>
15562
15563 * gdbarch.sh: Update copyright year range of generated files.
15564
b811d2c2
JB
155652020-01-01 Joel Brobecker <brobecker@adacore.com>
15566
15567 Update copyright year range in all GDB files.
15568
5f4def5c
JB
155692020-01-01 Joel Brobecker <brobecker@adacore.com>
15570
15571 * copyright.py: Convert to Python 3.
15572
51fd4002
JB
155732020-01-01 Joel Brobecker <brobecker@adacore.com>
15574
15575 * copyright.py: Adapt after move of gnulib directory from gdb
15576 directory to toplevel directory.
15577
5fb651f2
JB
155782020-01-01 Joel Brobecker <brobecker@adacore.com>
15579
15580 * copyright.py (main): Exit if run from the wrong directory.
15581
5dd8bf88
JB
155822020-01-01 Joel Brobecker <brobecker@adacore.com>
15583
15584 * top.c (print_gdb_version): Change copyright year to 2020.
15585
9f71dacb 155862020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 15587
9f71dacb 15588 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 15589
9f71dacb 15590For older changes see ChangeLog-2019.
c906108c
SS
15591\f
15592Local Variables:
15593mode: change-log
15594left-margin: 8
15595fill-column: 74
15596version-control: never
57da7796 15597coding: utf-8
c906108c 15598End: