]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1a97fe8c
HD
12020-10-22 Hannes Domani <ssbssa@yahoo.de>
2
3 * stabsread.c (read_member_functions): Remove gdb_assert.
4
6b9d0dfd
HD
52020-10-22 Hannes Domani <ssbssa@yahoo.de>
6
7 * gdbtypes.c (init_complex_type): Check target type name.
8
4b4bb603
SM
92020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
10
11 * target-debug.h (target_debug_print_struct_target_ops_p):
12 Remove.
13 (target_debug_print_async_callback_ftype_p): Remove.
14 (target_debug_print_struct_trace_state_variable_p): Remove.
15 (target_debug_print_struct_traceframe_info_p): Remove.
16 (target_debug_print_VEC__btrace_block_s__pp): Remove.
17 (target_debug_print_enum_btrace_format): Remove.
18 (target_debug_print_enum_info_proc_what): Remove.
19 (target_debug_print_thread_info_pp): Remove.
20
24f5300a
SM
212020-10-22 Simon Marchi <simon.marchi@efficios.com>
22
23 * target.h (struct target_ops) <make_corefile_notes>:
24 Change return type to unique pointer.
25 * target.c (dummy_make_corefile_notes): Likewise.
26 * exec.c (struct exec_target) <make_corefile_notes>:
27 Likewise.
28 (exec_target::make_corefile_notes): Likewise.
29 * procfs.c (class procfs_target) <make_corefile_notes>:
30 Likewise.
31 (procfs_do_thread_registers): Adjust to unique pointer.
32 (struct procfs_corefile_thread_data): Add constructor.
33 <note_data>: Change type to unique pointer.
34 (procfs_corefile_thread_callback): Adjust to unique pointer.
35 (procfs_target::make_corefile_notes): Change return type to
36 unique pointer.
37 * target-delegates.c: Re-generate.
38 * gcore.c (write_gcore_file_1): Adjust.
39 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
40 New.
41
5fb4027f
TV
422020-10-22 Tom de Vries <tdevries@suse.de>
43
44 * block.c (find_block_in_blockvector): Make sure the returned block
45 contains pc.
46
4a636814
SM
472020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
48
49 PR gdb/26693
50 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
51 parameter.
52 (load_cu): Pass existing CU.
53 (process_imported_unit_die): Likewise.
54 (follow_die_offset): Likewise.
55
1bd57575
LM
562020-10-22 Luis Machado <luis.machado@linaro.org>
57
58 * corelow.c (core_target::xfer_partial): Also check for an empty
59 m_core_unavailable_mappings vector.
60
6b4c676c
AB
612020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
62
63 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
64 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
65 * f-exp.y (arglist): Allow for a series of subranges.
66 (subrange): Add cases for subranges with strides.
67 * f-lang.c (value_f90_subarray): Catch use of array strides and
68 throw an error.
69 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
70
f2d8e4c5
AB
712020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
72
73 * expprint.c (print_subexp_standard): Change enum range_type to
74 range_flag and rename variables to match.
75 (dump_subexp_body_standard): Likewise.
76 * expression.h (enum range_type): Rename to...
77 (enum range_flag): ...this.
78 (range_types): Rename to...
79 (range_flags): ...this.
80 * f-lang.c (value_f90_subarray): Change enum range_type to
81 range_flag and rename variables to match.
82 * parse.c (operator_length_standard): Likewise.
83 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
84 range_type to range_flag.
85 * rust-lang.c (rust_evaluate_funcall): Likewise.
86 (rust_range): Likewise.
87 (rust_compute_range): Likewise.
88 (rust_subscript): Likewise.
89
2f1b18db
AB
902020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
91
92 * expprint.c (print_subexp_standard): Update to reflect changes to
93 enum range_type.
94 (dump_subexp_body_standard): Likewise.
95 * expression.h (enum range_type): Convert to a bit field enum, and
96 make the enum unsigned.
97 * f-exp.y (subrange): Update to reflect changes to enum
98 range_type.
99 * f-lang.c (value_f90_subarray): Likewise.
100 * parse.c (operator_length_standard): Likewise.
101 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
102 * rust-lang.c (rust_range): Likewise.
103 (rust_compute_range): Likewise.
104 (rust_subscript): Likewise.
105
a46d1843
SM
1062020-10-21 Simon Marchi <simon.marchi@efficios.com>
107
108 * infrun.c (displaced_step_in_progress_thread): Fix comment.
109 (displaced_step_in_progress): Fix comment.
110
c21f37a8
SM
1112020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
112
113 * gdbarch.sh (make_corefile_notes): Return unique pointer.
114 * gdbarch.c: Re-generate.
115 * gdbarch.h: Re-generate.
116 * gcore.c (write_gcore_file_1): Adjust.
117 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
118 constructor.
119 <note_data>: Change type to unique pointer.
120 <abort_iteration>: Change type to bool.
121 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
122 (fbsd_collect_thread_registers): Return void, adjust.
123 (struct fbsd_corefile_thread_data): Add construtor.
124 <note_data>: Change type to unique pointer.
125 (fbsd_corefile_thread): Adjust.
126 (fbsd_make_corefile_notes): Return unique pointer, adjust.
127 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
128 to unique pointer, adjust.
129 (struct linux_collect_regset_section_cb_data): Add constructor.
130 <note_data>: Change type to unique pointer.
131 <abort_iteration>: Change type to bool.
132 (linux_collect_thread_registers): Return void, adjust.
133 (struct linux_corefile_thread_data): Add constructor.
134 <note_data>: Change type to unique pointer.
135 (linux_corefile_thread): Adjust.
136 (linux_make_corefile_notes): Return unique pointer, adjust.
137
07fbbd01
SM
1382020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
139
140 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
141 * gdbarch.c: Re-generate.
142 * gdbarch.h: Re-generate.
143 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
144 bool.
145 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
146 Likewise.
147 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
148 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
149 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
150 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
151
39535193
SM
1522020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
153
154 * gdbarch.sh: Make generated predicates return bool.
155 * gdbarch.c: Re-generate.
156 * gdbarch.h: Re-generate.
157
ad523d01
TT
1582020-10-20 Tom Tromey <tom@tromey.com>
159
160 * varobj-iter.h (struct varobj_item): Remove typedef.
161
c4464ade
SM
1622020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
163
164 * infrun.c (currently_stepping): Change int to bool
165 (maybe_software_singlestep): Likewise.
166 (show_stop_on_solib_events): Likewise.
167 (stepping_past_nonsteppable_watchpoint): Likewise.
168 (displaced_step_in_progress_any_inferior): Likewise.
169 (displaced_step_in_progress_thread): Likewise.
170 (keep_going_stepped_thread): Likewise.
171 (thread_still_needs_step_over): Likewise.
172 (start_step_over): Likewise.
173 (do_target_resume): Likewise.
174 (resume_1): Likewise.
175 (clear_proceed_status): Likewise.
176 (thread_still_needs_step_over_bp): Likewise.
177 (proceed): Likewise.
178 (switch_back_to_stepped_thread): Likewise.
179 (adjust_pc_after_break): Likewise.
180 (stepped_in_from): Likewise.
181 (handle_stop_requested): Likewise.
182 (handle_syscall_event): Likewise.
183 (handle_no_resumed): Likewise.
184 (handle_inferior_event): Likewise.
185 (finish_step_over): Likewise.
186 (handle_signal_stop): Likewise.
187 (process_event_stop_test): Likewise.
188
2eb20436
SM
1892020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
190
191 * infrun.c (get_displaced_stepping_state): Fix comment.
192
e0c45ded
AS
1932020-10-20 Andreas Schwab <schwab@linux-m68k.org>
194
195 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
196
22cc388e
TT
1972020-10-19 Tom Tromey <tromey@adacore.com>
198
199 PR tui/26719
200 * tui/tui-winsource.h (struct tui_source_window_base)
201 <refresh_window>: Rename from refresh_pad.
202 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
203 Rename from refresh_pad.
204 (tui_source_window_base::show_source_content)
205 (tui_source_window_base::do_scroll_horizontal): Update.
206
3c6eb4d4
TBA
2072020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
208
209 * thread.c (_initialize_thread): Fine-tune the help text of
210 'info threads'.
211
26703721
TBA
2122020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
213
214 * frame.c: Remove the unused 'uinteger_option_def' type alias.
215
61c26be8
MS
2162020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
217
218 * breakpoint.c (handle_jit_event): Add an argument, change how
219 `jit_event_handler` is called.
220
932539d7
TT
2212020-10-17 Tom Tromey <tom@tromey.com>
222
223 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
224 (scan_xcoff_symtab): Update.
225 * psymtab.h (class psymtab_storage) <global_psymbols,
226 static_psymbols, current_global_psymbols,
227 current_static_psymbols>: Remove.
228 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
229 (match_partial_symbol, lookup_partial_symbol): Update.
230 (print_partial_symbols): Change parameters.
231 (dump_psymtab, recursively_search_psymtabs)
232 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
233 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
234 (concat): Remove.
235 (end_psymtab_common): Simplify.
236 (append_psymbol_to_list): Change parameters.
237 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
238 (init_psymbol_list): Simplify.
239 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
240 * psympriv.h (struct partial_symtab) <empty>: New method.
241 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
242 Remove.
243 <global_psymbols, static_psymbols>: New members.
244 <add_psymbol>: New methods.
245 (add_psymbol_to_list): Don't declare.
246 (psymbol_placement): Move earlier.
247 * mdebugread.c (parse_partial_symbols): Update.
248 (handle_psymbol_enumerators): Change parameters.
249 (mdebug_expand_psymtab): Update.
250 * dwarf2/read.c (process_psymtab_comp_unit_reader)
251 (add_partial_symbol): Update.
252 * dwarf2/index-write.c (write_psymbols): Change parameters.
253 (write_one_signatured_type): Update.
254 (recursively_count_psymbols): Update.
255 (recursively_write_psymbols): Update.
256 (class debug_names) <recursively_write_psymbols>: Update.
257 <write_psymbols>: Change parameters.
258 <write_one_signatured_type>: Update.
259 * dbxread.c (read_dbx_symtab): Update.
260 (dbx_end_psymtab): Use partial_symtab::empty.
261 * ctfread.c (struct ctf_context) <pst>: New member.
262 (create_partial_symtab): Set it.
263 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
264 (scan_partial_symbols): Use the psymtab's context. Update.
265
cfabbd35
TT
2662020-10-17 Tom Tromey <tom@tromey.com>
267
268 * valprint.c (generic_value_print): Remove comment.
269 * m2-valprint.c (m2_value_print_inner): Remove comment.
270 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
271 type.
272
520596f2
TV
2732020-10-17 Tom de Vries <tdevries@suse.de>
274
275 PR symtab/26317
276 * source.c (select_source_symtab): Handling sal.symtab == NULL for
277 symbol main.
278
76547ab3
TV
2792020-10-14 Tom de Vries <tdevries@suse.de>
280
281 PR gdb/26733
282 * solib.c (solib_contains_address_p): Handle
283 'solib->sections == nullptr'.
284
d3a07122
SM
2852020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
286
287 PR gdb/26642
288 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
289 target can't do async.
290 * target.c (target_wait): Assert that we don't pass
291 TARGET_WNOHANG to a target that can't async.
292
1b71cfcf
KR
2932020-10-13 Kamil Rytarowski <n54@gmx.com>
294
295 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
296 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
297 * alpha-bsd-nat.c: Adjust include.
298 * alpha-bsd-tdep.h: Adjust comment.
299 * alpha-nbsd-tdep.c: Rename to ...
300 * alpha-netbsd-tdep.c: ... this, adjust include.
301 * amd64-nbsd-nat.c: Rename to ...
302 * amd64-netbsd-nat.c: ... this, adjust include.
303 * amd64-nbsd-tdep.c: Rename to ...
304 * amd64-netbsd-tdep.c: ... this, adjust include.
305 * amd64-tdep.h: Adjust include.
306 * arm-nbsd-nat.c: Rename to ...
307 * arm-netbsd-nat.c: ... this, adjust include.
308 * arm-nbsd-tdep.c: Rename to ...
309 * arm-netbsd-tdep.c: ... this, adjust include.
310 * arm-nbsd-tdep.h: Rename to ...
311 * arm-netbsd-tdep.h: ... this, adjust include.
312 * configure.nat: Adjust file lists.
313 * configure.tgt: Likewise.
314 * hppa-nbsd-nat.c: Rename to ...
315 * hppa-netbsd-nat.c: ... this, adjust include.
316 * hppa-nbsd-tdep.c: Rename to ...
317 * hppa-netbsd-tdep.c: ... this, adjust include.
318 * i386-nbsd-nat.c: Rename to ...
319 * i386-netbsd-nat.c: ... this, adjust include.
320 * i386-nbsd-tdep.c: Rename to ...
321 * i386-netbsd-tdep.c: ... this, adjust include.
322 * m68k-bsd-nat.c: Adjust include.
323 * mips-nbsd-nat.c: Rename to ...
324 * mips-netbsd-nat.c: ... this, adjust include.
325 * mips-nbsd-tdep.c: Rename to ...
326 * mips-netbsd-tdep.c: ... this, adjust include.
327 * mips-nbsd-tdep.h: Rename to ...
328 * mips-netbsd-tdep.h: ... this.
329 * nbsd-nat.c: Rename to ...
330 * netbsd-nat.c: ... this, adjust include.
331 * nbsd-nat.h: Rename to ...
332 * netbsd-nat.h: ... this, adjust include.
333 * nbsd-tdep.c: Rename to ...
334 * netbsd-tdep.c: ... this, adjust include.
335 * nbsd-tdep.h: Rename to ...
336 * netbsd-tdep.h: ... this.
337 * ppc-nbsd-nat.c: Rename to ...
338 * ppc-netbsd-nat.c: ... this, adjust include.
339 * ppc-nbsd-tdep.c: Rename to ...
340 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
341 * ppc-nbsd-tdep.h: Rename to ...
342 * ppc-netbsd-tdep.h: ... this.
343 * sh-nbsd-nat.c: Rename to ...
344 * sh-netbsd-nat.c: ... this, adjust include.
345 * sh-nbsd-tdep.c: Rename to ...
346 * sh-netbsd-tdep.c: ... this, adjust include.
347 * sparc-nbsd-nat.c: Rename to ...
348 * sparc-netbsd-nat.c: ... this.
349 * sparc-nbsd-tdep.c: Rename to ...
350 * sparc-netbsd-tdep.c: ... this, adjust include.
351 * sparc64-nbsd-nat.c: Rename to ...
352 * sparc64-netbsd-nat.c: ... this.
353 * sparc64-nbsd-tdep.c: Rename to ...
354 * sparc64-netbsd-tdep.c: ... this, adjust include.
355 * sparc64-tdep.h: Adjust comment.
356 * vax-bsd-nat.c: Adjust include.
357 * vax-nbsd-tdep.c: Rename to ...
358 * vax-netbsd-tdep.c: ... this, adjust include.
359
d7a78e5c
TT
3602020-10-12 Tom Tromey <tom@tromey.com>
361
362 * target.h (struct target_ops) <get_section_table>: Update.
363 (target_get_section_table): Update.
364 * target.c (target_get_section_table, target_section_by_addr)
365 (memory_xfer_partial_1): Update.
366 * target-section.h (target_section_table): Now an alias.
367 * target-delegates.c: Rebuild.
368 * target-debug.h (target_debug_print_target_section_table_p):
369 Rename from target_debug_print_struct_target_section_table_p.
370 * symfile.c (build_section_addr_info_from_section_table): Update.
371 * solib.c (solib_map_sections, solib_contains_address_p): Update.
372 * solib-svr4.c (scan_dyntag): Update.
373 * solib-dsbt.c (scan_dyntag): Update.
374 * remote.c (remote_target::remote_xfer_live_readonly_partial):
375 Update.
376 * record-full.c (record_full_core_target::xfer_partial): Update.
377 * progspace.h (struct program_space) <target_sections>: Update.
378 * exec.h (print_section_info): Update.
379 * exec.c (exec_target::close, build_section_table)
380 (add_target_sections, add_target_sections_of_objfile)
381 (remove_target_sections, exec_on_vfork)
382 (section_table_available_memory)
383 (section_table_xfer_memory_partial)
384 (exec_target::get_section_table, exec_target::xfer_partial)
385 (print_section_info, set_section_command)
386 (exec_set_section_address, exec_target::has_memory): Update.
387 * corelow.c (core_target::build_file_mappings)
388 (core_target::xfer_partial, core_target::info_proc_mappings)
389 (core_target::info_proc_mappings): Update.
390 * bfd-target.c (class target_bfd): Update
391
eda214ce
TT
3922020-10-12 Tom Tromey <tom@tromey.com>
393
394 * progspace.c (program_space::~program_space): Don't call
395 clear_section_table.
396 * exec.h (clear_section_table): Don't declare.
397 * exec.c (exec_target::close): Update.
398 (clear_section_table): Remove.
399
91840ee3
TT
4002020-10-12 Tom Tromey <tom@tromey.com>
401
402 * exec.c (add_target_sections_of_objfile): Simplify.
403
2d128614
TT
4042020-10-12 Tom Tromey <tom@tromey.com>
405
406 * solib.c (solib_map_sections): Update.
407 * record-full.c (record_full_core_open_1): Update.
408 * exec.h (build_section_table): Return a target_section_table.
409 * exec.c (exec_file_attach): Update.
410 (build_section_table): Return a target_section_table.
411 * corelow.c (core_target::core_target): Update.
412 * bfd-target.c (target_bfd::target_bfd): Update.
413
bb2a6777
TT
4142020-10-12 Tom Tromey <tom@tromey.com>
415
416 * target.c (target_section_by_addr, memory_xfer_partial_1):
417 Update.
418 * target-section.h (struct target_section_table): Use
419 std::vector.
420 * symfile.h (build_section_addr_info_from_section_table): Take a
421 target_section_table.
422 * symfile.c (build_section_addr_info_from_section_table): Take a
423 target_section_table.
424 * solist.h (struct so_list) <sections>: Change type.
425 <sections_end>: Remove.
426 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
427 (solib_contains_address_p): Update.
428 * solib-svr4.c (scan_dyntag): Update.
429 * solib-dsbt.c (scan_dyntag): Update.
430 * remote.c (remote_target::remote_xfer_live_readonly_partial):
431 Update.
432 * record-full.c (record_full_core_start, record_full_core_end):
433 Remove.
434 (record_full_core_sections): New global.
435 (record_full_core_open_1, record_full_core_target::xfer_partial):
436 Update.
437 * exec.h (build_section_table, section_table_xfer_memory_partial)
438 (add_target_sections): Take a target_section_table.
439 * exec.c (exec_file_attach, clear_section_table): Update.
440 (resize_section_table): Remove.
441 (build_section_table, add_target_sections): Take a
442 target_section_table.
443 (add_target_sections_of_objfile, remove_target_sections)
444 (exec_on_vfork): Update.
445 (section_table_available_memory): Take a target_section_table.
446 (section_table_read_available_memory): Update.
447 (section_table_xfer_memory_partial): Take a target_section_table.
448 (print_section_info, set_section_command)
449 (exec_set_section_address, exec_target::has_memory): Update.
450 * corelow.c (class core_target) <m_core_section_table,
451 m_core_file_mappings>: Remove braces.
452 <~core_target>: Remove.
453 (core_target::core_target): Update.
454 (core_target::~core_target): Remove.
455 (core_target::build_file_mappings)
456 (core_target::xfer_memory_via_mappings)
457 (core_target::xfer_partial, core_target::info_proc_mappings):
458 Update.
459 * bfd-target.c (target_bfd::xfer_partial): Update.
460 (target_bfd::target_bfd): Update.
461 (target_bfd::~target_bfd): Remove.
462
7b466b10
TT
4632020-10-12 Tom Tromey <tom@tromey.com>
464
465 * target.h (struct target_section, struct target_section_table):
466 Move to target-section.h.
467 * target-section.h: New file.
468
87a37e5e
PA
4692020-10-12 Pedro Alves <pedro@palves.net>
470
471 PR exp/26602
472 * valops.c (struct struct_field_searcher): New.
473 (update_search_result): Rename to ...
474 (struct_field_searcher::update_result): ... this. Simplify
475 prototype. Record all found fields.
476 (do_search_struct_field): Rename to ...
477 (struct_field_searcher::search): ... this. Simplify prototype.
478 Maintain stack of visited baseclass path. Call update_result for
479 fields too. Keep searching fields in baseclasses instead of
480 stopping at the first found field.
481 (search_struct_field): Use struct_field_searcher. When looking
482 for fields, report ambiguous access attempts.
483
9370fd51
AB
4842020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
485
486 * frame.c (inside_main_func): Check full symbols as well as
487 minimal symbols.
488
59c8a30b
JB
4892020-10-09 Joel Brobecker <brobecker@adacore.com>
490
491 * ada-lang.c (advance_wild_match): Rewrite the function's
492 description. Change the type of target0, t0 and t1 to char.
493
7c184d33
TT
4942020-10-09 Tom Tromey <tromey@adacore.com>
495
496 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
497
5c4258f4
TT
4982020-10-09 Tom Tromey <tromey@adacore.com>
499
500 * ada-lang.h (ada_encode): Return std::string.
501 * ada-lang.c (ada_encode_1): Return std::string.
502 (ada_encode): Likewise.
503 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
504 Update.
505 * ada-exp.y (block_lookup, write_var_or_type): Update.
506
3d87245c
HD
5072020-10-09 Hannes Domani <ssbssa@yahoo.de>
508
509 PR exp/26714
510 * printcmd.c (print_formatted): Handle void results as
511 unformatted prints.
512
bbb826f5
AB
5132020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
514
515 * arch/aarch32.c (aarch32_create_target_description): Release the
516 target_desc_up as late as possible.
517 * arch/aarch64.c (aarch64_create_target_description): Likewise.
518 * arch/amd64.c (amd64_create_target_description): Likewise.
519 * arch/arc.c (arc_create_target_description): Return a
520 target_desc_up, don't release it.
521 * arch/arc.h (arc_create_target_description): Update declaration.
522 (arc_lookup_target_description): Move target_desc_up into the
523 cache, and return a borrowed pointer.
524 * arch/arm.c (arm_create_target_description): Release the
525 target_desc_up as late as possible.
526 * arch/i386.c (i386_create_target_description): Likewise.
527 * arch/riscv.h (riscv_create_target_description): Update
528 declaration to match definition.
529 * arch/tic6x.c (tic6x_create_target_description): Release the
530 target_desc_up as late as possible.
531
361cb219
AB
5322020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
533
534 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
535 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
536
f5c4b229
JV
5372020-10-09 Jan Vrany <jan.vrany@labware.com>
538
539 * source.c (directory_command): Notify observers that "directories"
540 parameter has changed.
541
b2701685
TT
5422020-10-08 Tom Tromey <tom@tromey.com>
543
544 * cli/cli-cmds.c (print_disassembly): Style function name and
545 addresses. Add _() wrappers.
546
ada508b6
SV
5472020-10-08 Shahab Vahedi <shahab@synopsys.com>
548
549 * NEWS: Mention ARC support in GDBserver.
550
51a948fd
AB
5512020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
552
553 * arch/aarch32.c (aarch32_create_target_description): Release
554 unique_ptr returned from allocate_target_description.
555 * arch/aarch64.c (aarch64_create_target_description): Likewise.
556 * arch/amd64.c (amd64_create_target_description): Likewise.
557 * arch/arc.c (arc_create_target_description): Likewise.
558 * arch/arm.c (arm_create_target_description): Likewise.
559 * arch/i386.c (i386_create_target_description): Likewise.
560 * arch/riscv.c (riscv_create_target_description): Update return
561 type. Handle allocate_target_description returning a unique_ptr.
562 (riscv_lookup_target_description): Update to handle unique_ptr.
563 * arch/tic6x.c (tic6x_create_target_description): Release
564 unique_ptr returned from allocate_target_description.
565 * features/microblaze-with-stack-protect.c: Regenerate.
566 * features/microblaze.c: Regenerate.
567 * features/mips-dsp-linux.c: Regenerate.
568 * features/mips-linux.c: Regenerate.
569 * features/mips64-dsp-linux.c: Regenerate.
570 * features/mips64-linux.c: Regenerate.
571 * features/nds32.c: Regenerate.
572 * features/nios2.c: Regenerate.
573 * features/or1k.c: Regenerate.
574 * features/rs6000/powerpc-32.c: Regenerate.
575 * features/rs6000/powerpc-32l.c: Regenerate.
576 * features/rs6000/powerpc-403.c: Regenerate.
577 * features/rs6000/powerpc-403gc.c: Regenerate.
578 * features/rs6000/powerpc-405.c: Regenerate.
579 * features/rs6000/powerpc-505.c: Regenerate.
580 * features/rs6000/powerpc-601.c: Regenerate.
581 * features/rs6000/powerpc-602.c: Regenerate.
582 * features/rs6000/powerpc-603.c: Regenerate.
583 * features/rs6000/powerpc-604.c: Regenerate.
584 * features/rs6000/powerpc-64.c: Regenerate.
585 * features/rs6000/powerpc-64l.c: Regenerate.
586 * features/rs6000/powerpc-7400.c: Regenerate.
587 * features/rs6000/powerpc-750.c: Regenerate.
588 * features/rs6000/powerpc-860.c: Regenerate.
589 * features/rs6000/powerpc-altivec32.c: Regenerate.
590 * features/rs6000/powerpc-altivec32l.c: Regenerate.
591 * features/rs6000/powerpc-altivec64.c: Regenerate.
592 * features/rs6000/powerpc-altivec64l.c: Regenerate.
593 * features/rs6000/powerpc-e500.c: Regenerate.
594 * features/rs6000/powerpc-e500l.c: Regenerate.
595 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
596 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
597 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
598 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
599 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
600 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
601 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
602 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
603 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
604 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
605 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
606 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
607 * features/rs6000/powerpc-vsx32.c: Regenerate.
608 * features/rs6000/powerpc-vsx32l.c: Regenerate.
609 * features/rs6000/powerpc-vsx64.c: Regenerate.
610 * features/rs6000/powerpc-vsx64l.c: Regenerate.
611 * features/rs6000/rs6000.c: Regenerate.
612 * features/rx.c: Regenerate.
613 * features/s390-gs-linux64.c: Regenerate.
614 * features/s390-linux32.c: Regenerate.
615 * features/s390-linux32v1.c: Regenerate.
616 * features/s390-linux32v2.c: Regenerate.
617 * features/s390-linux64.c: Regenerate.
618 * features/s390-linux64v1.c: Regenerate.
619 * features/s390-linux64v2.c: Regenerate.
620 * features/s390-te-linux64.c: Regenerate.
621 * features/s390-tevx-linux64.c: Regenerate.
622 * features/s390-vx-linux64.c: Regenerate.
623 * features/s390x-gs-linux64.c: Regenerate.
624 * features/s390x-linux64.c: Regenerate.
625 * features/s390x-linux64v1.c: Regenerate.
626 * features/s390x-linux64v2.c: Regenerate.
627 * features/s390x-te-linux64.c: Regenerate.
628 * features/s390x-tevx-linux64.c: Regenerate.
629 * features/s390x-vx-linux64.c: Regenerate.
630 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
631 from allocate_target_description.
632 * target-descriptions.c (allocate_target_description): Update
633 return type.
634 (print_c_tdesc::visit_pre): Release unique_ptr returned from
635 allocate_target_description.
636
485c47e5
TT
6372020-10-07 Tom Tromey <tromey@adacore.com>
638
639 * unittests/search-memory-selftests.c: New file.
640 * Makefile.in (SELFTESTS_SRCS): Add
641 unittests/search-memory-selftests.c.
642
3a135a91
TT
6432020-10-07 Tom Tromey <tromey@adacore.com>
644
645 PR gdb/16930:
646 * findcmd.c (_initialize_mem_search): Mention that the range is
647 inclusive.
648
4a72de73
TT
6492020-10-07 Tom Tromey <tromey@adacore.com>
650
651 * target.h (simple_search_memory): Don't declare.
652 * target.c (simple_search_memory): Move to gdbsupport.
653 (default_search_memory): Update.
654 * remote.c (remote_target::search_memory): Update.
655
a038ffd8
SM
6562020-10-07 Simon Marchi <simon.marchi@efficios.com>
657
658 * Makefile.in (COMPILE): Add CXXFLAGS.
659 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
660 (check-headers): Add CXXFLAGS.
661
cc463201
AK
6622020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
663
664 * arc-linux-tdep.h: New file.
665 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
666 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
667 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
668 arc_linux_gregset, arc_linux_v2_regset,
669 arc_linux_iterate_over_regset_sections,
670 arc_linux_core_read_description): Implement.
671 (arc_linux_init_osabi): Set iterate_over_regset_sections.
672 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
673 (arc_gdbarch_features_create): Add.
674 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
675
e4bd363f
SV
6762020-10-07 Shahab Vahedi <shahab@synopsys.com>
677
678 * arch/arc.h: Rename "arc_gdbarch_features" to
679 "arc_arch_features".
680 * arc-tdep.h: Likewise.
681 * arc-tdep.c: Likewise.
682
b68bef99
TBA
6832020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
684
685 * infcmd.c (attach_command): Remove the redundant call to
686 `clear_proceed_status`.
687
4641551a
KR
6882020-10-07 Kamil Rytarowski <n54@gmx.com>
689
690 * nat/netbsd-nat.c (write_memory, read_memory): Update.
691
91e5e8db
KR
6922020-10-07 Kamil Rytarowski <n54@gmx.com>
693
694 * nat/netbsd-nat.c (write_memory, read_memory): Add.
695 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
696 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
697
64c03bdb
SM
6982020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
699
700 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
701 (_initialize_break_catch_sig): Don't allocate array.
702
31a8f60f
AB
7032020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
704
705 * symtab.c (find_pc_line): Return unmapped addresses when the
706 requested address is also unmapped.
707
9e6dbd8b
SM
7082020-10-05 Simon Marchi <simon.marchi@efficios.com>
709
710 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
711 tui/tui-out.h.
712
a1d217e8
SM
7132020-10-05 Simon Marchi <simon.marchi@efficios.com>
714
715 * amd64-windows-tdep.c (amd64_windows_return_value): Use
716 type::is_vector instead of TYPE_VECTOR.
717
7d144117
SM
7182020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
719
720 * auto-load.c (auto_load_objfile_script_1): Don't use
721 debugfile_holder as temporary variable when stripping drive
722 letter.
723
cd096ec8
HD
7242020-10-05 Hannes Domani <ssbssa@yahoo.de>
725
726 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
727 Add TYPE_CODE_COMPLEX.
728 (amd64_windows_return_value): Fix types returned via XMM0.
729
b58e7f72
AH
7302020-10-05 Alan Hayward <alan.hayward@arm.com>
731
732 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
733 AArch64/ARM maintainers.
734
8d378f27
SM
7352020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
736
737 * NEWS: Mention set/show debug event-loop.
738
d5519913
TT
7392020-10-02 Tom Tromey <tromey@adacore.com>
740
741 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
742 REG_EXTENDED.
743
18b67edc
SM
7442020-10-02 Simon Marchi <simon.marchi@efficios.com>
745
746 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
747 * procfs.c (procfs_inferior_created): Remove.
748 (_initialize_procfs): Don't register procfs_inferior_created.
749
6b01403b
SM
7502020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
751
752 * async-event.c (invoke_async_signal_handlers): Add debug
753 print.
754 (check_async_event_handlers): Likewise.
755 * event-top.c (show_debug_event_loop): New function.
756 (_initialize_event_top): Register "set debug event-loop"
757 setting.
758
ba988419
SM
7592020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
760
761 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
762 * debug.h: Remove.
763 * infrun.c: Include gdbsupport/common-debug.h.
764 * linux-nat.c: Likewise.
765
db20ebdf
SM
7662020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
767
768 * async-event.h (create_async_signal_handler): Add name
769 parameter.
770 (create_async_event_handler): Likewise.
771 * async-event.c (struct async_signal_handler) <name>: New field.
772 (struct async_event_handler) <name>: New field.
773 (create_async_signal_handler): Assign name.
774 (create_async_event_handler): Assign name.
775 * event-top.c (async_init_signals): Pass name when creating
776 handler.
777 * infrun.c (_initialize_infrun): Likewise.
778 * record-btrace.c (record_btrace_push_target): Likewise.
779 * record-full.c (record_full_open): Likewise.
780 * remote-notif.c (remote_notif_state_allocate): Likewise.
781 * remote.c (remote_target::open_1): Likewise.
782 * tui/tui-win.c (tui_initialize_win): Likewise.
783
2554f6f5
SM
7842020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
785
786 * async-event.c (initialize_async_signal_handlers): Pass name to
787 add_file_handler
788 * event-top.c (ui_register_input_event_handler): Likewise.
789 * linux-nat.c (linux_nat_target::async): Likewise.
790 * run-on-main-thread.c (_initialize_run_on_main_thread):
791 Likewise
792 * ser-base.c (reschedule): Likewise.
793 (ser_base_async): Likewise.
794 * tui/tui-io.c: Likewise.
795 * top.h (struct ui) <num>: New field.
796 * top.c (highest_ui_num): New variable.
797 (ui::ui): Initialize num.
798
a7aba266
SM
7992020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
800
801 * observable.h <inferior_created>: Remove parameters. Update all
802 listeners.
803 * inferior.h (post_create_inferior): Remove target parameter.
804 Update all callers.
805
048fde1e 8062020-10-02 Nitika Achra <Nitika.Achra@amd.com>
807
808 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
809 and DW_MACRO_undef_strx.
810 (dwarf_decode_macros): Likewise
811 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
812 which is the value of DW_AT_str_offsets_base.
813 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
814 str_offsets_base.
815
064280be
KR
8162020-10-01 Kamil Rytarowski <n54@gmx.com>
817
818 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
819
6ff33035
KR
8202020-10-01 Kamil Rytarowski <n54@gmx.com>
821
822 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
823 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
824
1eb6eb79
KR
8252020-10-01 Kamil Rytarowski <n54@gmx.com>
826
827 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
828
95eb9e54
TV
8292020-09-30 Tom de Vries <tdevries@suse.de>
830
831 PR symtab/26683
832 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
833
cae21f8e
TT
8342020-09-30 Tom Tromey <tromey@adacore.com>
835
836 * dwarf2/read.c (handle_variant): Use constant_value.
837
529908cb
TT
8382020-09-29 Tom Tromey <tom@tromey.com>
839
840 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
841 (read_file_scope, dwarf2_get_pc_bounds)
842 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
843 (read_structure_type, handle_struct_member_die)
844 (read_enumeration_type, read_array_type, read_set_type)
845 (read_tag_pointer_type, read_tag_reference_type)
846 (read_subroutine_type, read_base_type, read_subrange_type)
847 (read_full_die_1, partial_die_info::read)
848 (partial_die_info::read, by, new_symbol)
849 (dwarf2_const_value_data, dwarf2_const_value_attr)
850 (dump_die_shallow, dwarf2_fetch_constant_bytes)
851 (prepare_one_comp_unit): Update.
852 * dwarf2/attribute.h (DW_UNSND): Remove.
853
c45bc3f8
TT
8542020-09-29 Tom Tromey <tom@tromey.com>
855
856 * dwarf2/read.c (read_func_scope, prototyped_function_p)
857 (read_subroutine_type, partial_die_info::read)
858 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
859 (dwarf2_add_member_fn): Update.
860 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
861 * dwarf2/attribute.c (attribute::as_boolean): New method.
862
23dca5c3
TT
8632020-09-29 Tom Tromey <tom@tromey.com>
864
865 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
866 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
867 method.
868 * dwarf2/attribute.c (attribute::as_virtuality): New method.
869
52c14d11
TT
8702020-09-29 Tom Tromey <tom@tromey.com>
871
872 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
873 the attribute's form.
874
e8e5c158
TT
8752020-09-29 Tom Tromey <tom@tromey.com>
876
877 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
878 (dwarf2_add_member_fn): Update.
879 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
880 * dwarf2/attribute.c (attribute::defaulted): New method, from
881 is_valid_DW_AT_defaulted.
882
d4df075e
TT
8832020-09-29 Tom Tromey <tom@tromey.com>
884
885 * dwarf2/read.c (dw2_get_file_names_reader)
886 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
887 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
888 (dwarf2_symbol_mark_computed): Use as_unsigned.
889 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
890 method.
891 <form_is_section_offset>: Update comment.
892
bf23a268
TT
8932020-09-29 Tom Tromey <tom@tromey.com>
894
895 * dwarf2/read.c (dwarf2_access_attribute): Rename from
896 dwarf2_default_access_attribute. Look up attribute.
897 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
898 Update.
899
7a5f294d
TT
9002020-09-29 Tom Tromey <tom@tromey.com>
901
902 * dwarf2/read.c (skip_one_die): Update.
903 (read_full_die_1): Change how reprocessing is done.
904 (partial_die_info::read): Update.
905 (read_attribute_value): Remove need_reprocess parameter.
906 (read_attribute): Likewise.
907 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
908 New method.
909
36d378cf
TT
9102020-09-29 Tom Tromey <tom@tromey.com>
911
912 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
913 (dwarf2_const_value_attr, dump_die_shallow)
914 (dwarf2_fetch_constant_bytes): Update.
915 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
916 comment.
917 <set_address>: New method.
918 (DW_ADDR): Remove.
919 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
920 (attribute::as_string, attribute::as_address): Add assert.
921
fe56917a
TT
9222020-09-29 Tom Tromey <tom@tromey.com>
923
924 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
925 (read_attribute_reprocess, read_attribute_value): Update.
926 (read_attribute): Clear requires_reprocessing.
927 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
928 form_requires_reprocessing>: New methods.
929 <string_init>: Clear requires_reprocessing.
930 <set_unsigned_reprocess>: New method.
931 <name>: Shrink by one bit.
932 <requires_reprocessing>: New member.
933 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
934 method.
935
414ad644
TT
9362020-09-29 Tom Tromey <tom@tromey.com>
937
938 * dwarf2/read.c (read_attribute_value): Update.
939 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
940 set_unsigned>: New methods.
941 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
942
1bc397c5
TT
9432020-09-29 Tom Tromey <tom@tromey.com>
944
945 * dwarf2/read.c (get_alignment, read_array_order)
946 (read_attribute_value, dwarf2_const_value_attr)
947 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
948 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
949 New methods.
950 (DW_SND): Remove.
951
630ed6b9
TT
9522020-09-29 Tom Tromey <tom@tromey.com>
953
954 * dwarf2/read.c (read_attribute_value, lookup_die_type)
955 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
956 Update.
957 * dwarf2/attribute.h (struct attribute) <as_signature,
958 set_signature>: New methods.
959 (DW_SIGNATURE): Remove.
960
9d2246fc
TT
9612020-09-29 Tom Tromey <tom@tromey.com>
962
963 * dwarf2/read.c (read_call_site_scope)
964 (handle_data_member_location, dwarf2_add_member_fn)
965 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
966 (partial_die_info::read, read_attribute_value)
967 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
968 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
969 (dwarf2_symbol_mark_computed): Update.
970 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
971 methods.
972 (DW_BLOCK): Remove.
973 * dwarf2/attribute.c (attribute::form_is_block): Add
974 DW_FORM_data16.
975
c6481205
TT
9762020-09-29 Tom Tromey <tom@tromey.com>
977
978 * dwarf2/read.c (read_cutu_die_from_dwo)
979 (read_attribute_reprocess, read_attribute_value, read_attribute)
980 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
981 (dwarf2_fetch_constant_bytes): Update.
982 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
983 <set_string_noncanonical, set_string_canonical>: New methods.
984 <string_is_canonical>: Update comment.
985 <canonical_string_p>: Add assert.
986 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
987 * dwarf2/attribute.c (attribute::form_is_string): New method.
988 (attribute::string): Use it.
989
3b64bf15
TT
9902020-09-29 Tom Tromey <tom@tromey.com>
991
992 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
993 (dump_die_shallow): Use canonical_string_p.
994 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
995 method.
996
2c830f54
TT
9972020-09-29 Tom Tromey <tom@tromey.com>
998
999 * dwarf2/read.c (partial_die_info::read)
1000 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1001 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1002 attribute::as_string.
1003
6c412691
TT
10042020-09-29 Tom Tromey <tom@tromey.com>
1005
1006 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1007 DW_ADDR.
1008 (attribute::string): Don't use DW_STRING.
1009 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1010 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1011
95f982e5
TT
10122020-09-29 Tom Tromey <tom@tromey.com>
1013
1014 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1015 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1016 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1017 * dwarf2/attribute.h (struct attribute): Rename methods.
1018 * dwarf2/attribute.c (attribute::as_address): Rename from
1019 value_as_address.
1020 (attribute::as_string): Rename from value_as_string.
1021
f800b00e
TT
10222020-09-29 Tom Tromey <tom@tromey.com>
1023
1024 * dwarf2/read.c (partial_die_info::read) <case
1025 DW_AT_linkage_name>: Use value_as_string.
1026 (dwarf2_string_attr): Use value_as_string.
1027 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1028 method.
1029 * dwarf2/attribute.c (attribute::value_as_string): New method.
1030
de38d64a
PA
10312020-09-29 Pedro Alves <pedro@palves.net>
1032
1033 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1034 defined before using '#pragma GCC diagnostic' instead of checking
1035 __clang__.
1036
9aed480c
TT
10372020-09-28 Tom Tromey <tom@tromey.com>
1038
1039 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1040 (handle_signal_stop): Update.
1041 * procfs.c (procfs_target::insert_watchpoint): Update.
1042 * target.h (target_have_steppable_watchpoint): Now a function.
1043
8a3ecb79
TT
10442020-09-28 Tom Tromey <tom@tromey.com>
1045
1046 * infrun.c (set_schedlock_func): Update.
1047 * target.h (target_can_lock_scheduler): Now a function.
1048
55f6301a
TT
10492020-09-28 Tom Tromey <tom@tromey.com>
1050
1051 * inferior.h (class inferior) <has_execution>: Update.
1052 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1053 * valops.c (find_function_in_inferior)
1054 (value_allocate_space_in_inferior): Update.
1055 * top.c (kill_or_detach): Update.
1056 * target.c (target_preopen, set_target_permissions): Update.
1057 (target_has_execution_current): Remove.
1058 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1059 Update.
1060 * solib.c (update_solib_list, reload_shared_libraries): Update.
1061 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1062 * solib-dsbt.c (enable_break): Update.
1063 * score-tdep.c (score7_fetch_inst): Update.
1064 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1065 Update.
1066 * remote.c (remote_target::start_remote)
1067 (remote_target::remote_check_symbols, remote_target::open_1)
1068 (remote_target::remote_detach_1, remote_target::verify_memory)
1069 (remote_target::xfer_partial, remote_target::read_description)
1070 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1071 * record-full.c (record_full_open_1): Update.
1072 * record-btrace.c (record_btrace_target_open): Update.
1073 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1074 (value_nsstring): Update.
1075 * linux-thread-db.c (add_thread_db_info)
1076 (thread_db_find_new_threads_silently, check_thread_db_callback)
1077 (try_thread_db_load_1, record_thread): Update.
1078 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1079 Update.
1080 * linux-fork.c (checkpoint_command): Update.
1081 * infrun.c (set_non_stop, set_observer_mode)
1082 (check_multi_target_resumption, for_each_just_stopped_thread)
1083 (maybe_remove_breakpoints, normal_stop)
1084 (class infcall_suspend_state): Update.
1085 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1086 (info_program_command, attach_command): Update.
1087 * infcall.c (call_function_by_hand_dummy): Update.
1088 * inf-loop.c (inferior_event_handler): Update.
1089 * gcore.c (gcore_command, derive_heap_segment): Update.
1090 * exec.c (exec_file_command): Update.
1091 * eval.c (evaluate_subexp): Update.
1092 * compile/compile.c (compile_to_object): Update.
1093 * cli/cli-dump.c (restore_command): Update.
1094 * breakpoint.c (update_watchpoint)
1095 (update_inserted_breakpoint_locations)
1096 (insert_breakpoint_locations, get_bpstat_thread): Update.
1097 * target.h (target_has_execution): Remove macro.
1098 (target_has_execution_current): Don't declare.
1099 (target_has_execution): Rename from target_has_execution_1. Add
1100 argument default.
1101
05374cfd
TT
11022020-09-28 Tom Tromey <tom@tromey.com>
1103
1104 * mi/mi-main.c (exec_reverse_continue)
1105 (mi_cmd_list_target_features): Update.
1106 * infrun.c (set_exec_direction_func): Update.
1107 * target.c (default_execution_direction): Update.
1108 * reverse.c (exec_reverse_once): Update.
1109 * target.h (target_can_execute_reverse): Now a function.
1110
9dccd06e
TT
11112020-09-28 Tom Tromey <tom@tromey.com>
1112
1113 * tui/tui-regs.c (tui_get_register)
1114 (tui_data_window::show_registers): Update.
1115 * thread.c (scoped_restore_current_thread::restore)
1116 (scoped_restore_current_thread::scoped_restore_current_thread):
1117 Update.
1118 * regcache-dump.c (regcache_print): Update.
1119 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1120 Update.
1121 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1122 * mep-tdep.c (current_me_module, current_options): Update.
1123 * linux-thread-db.c (thread_db_load): Update.
1124 * infcmd.c (registers_info, info_vector_command)
1125 (info_float_command): Update.
1126 * ia64-tdep.c (ia64_frame_prev_register)
1127 (ia64_sigtramp_frame_prev_register): Update.
1128 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1129 * gcore.c (derive_stack_segment): Update.
1130 * frame.c (get_current_frame, has_stack_frames): Update.
1131 * findvar.c (language_defn::read_var_value): Update.
1132 * arm-tdep.c (arm_pc_is_thumb): Update.
1133 * target.c (target_has_registers): Rename from
1134 target_has_registers_1.
1135 * target.h (target_has_registers): Remove macro.
1136 (target_has_registers): Rename from target_has_registers_1.
1137
841de120
TT
11382020-09-28 Tom Tromey <tom@tromey.com>
1139
1140 * windows-tdep.c (tlb_make_value): Update.
1141 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1142 * thread.c (scoped_restore_current_thread::restore)
1143 (scoped_restore_current_thread::scoped_restore_current_thread)
1144 (thread_command): Update.
1145 * stack.c (backtrace_command_1, frame_apply_level_command)
1146 (frame_apply_all_command, frame_apply_command): Update.
1147 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1148 Update.
1149 * gcore.c (derive_stack_segment): Update.
1150 * frame.c (get_current_frame, has_stack_frames): Update.
1151 * auxv.c (info_auxv_command): Update.
1152 * ada-tasks.c (ada_build_task_list): Update.
1153 * target.c (target_has_stack): Rename from target_has_stack_1.
1154 * target.h (target_has_stack): Remove macro.
1155 (target_has_stack): Rename from target_has_stack_1.
1156
a739972c
TT
11572020-09-28 Tom Tromey <tom@tromey.com>
1158
1159 * target.c (target_has_memory): Rename from target_has_memory_1.
1160 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1161 * thread.c (scoped_restore_current_thread::restore)
1162 (scoped_restore_current_thread::scoped_restore_current_thread):
1163 Update.
1164 * frame.c (get_current_frame, has_stack_frames): Update.
1165 * target.h (target_has_memory): Remove macro.
1166 (target_has_memory): Rename from target_has_memory_1.
1167
5b8a4776
TT
11682020-09-28 Tom Tromey <tom@tromey.com>
1169
1170 * target.c (target_has_all_memory_1): Remove.
1171 * target.h (target_has_all_memory): Remove define.
1172 (target_has_all_memory_1): Don't declare.
1173
bd356ec6
SM
11742020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1175
1176 * ser-base.c: Adjust comments formatting.
1177
2c72d5e5
TT
11782020-09-27 Tom Tromey <tom@tromey.com>
1179
1180 PR tui/25342:
1181 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1182
35a98237
TT
11832020-09-27 Tom Tromey <tom@tromey.com>
1184
1185 PR tui/25342:
1186 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1187
9e820dec
TT
11882020-09-27 Tom Tromey <tom@tromey.com>
1189
1190 * unittests/tui-selftests.c: Update.
1191 * tui/tui-winsource.h (struct tui_source_window_base)
1192 <extra_margin, show_line_number, refresh_pad>: New methods.
1193 <m_max_length, m_pad>: New members.
1194 (tui_copy_source_line): Update.
1195 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1196 first_col, line_width, ndigits parameters. Add length.
1197 (tui_source_window_base::show_source_line): Write to pad. Line
1198 number now 0-based.
1199 (tui_source_window_base::refresh_pad): New method.
1200 (tui_source_window_base::show_source_content): Write to pad. Call
1201 refresh_pad.
1202 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1203 not refill.
1204 (tui_source_window_base::update_exec_info): Call
1205 show_line_number.
1206 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1207 method.
1208 <m_digits>: New member.
1209 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1210 and m_max_length.
1211 (tui_source_window::show_line_number): New method.
1212 * tui/tui-io.h (tui_puts): Fix comment.
1213 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1214 m_max_length.
1215
c15c15c8
TT
12162020-09-27 Tom Tromey <tom@tromey.com>
1217
1218 * tui/tui-winsource.c
1219 (tui_source_window_base::set_is_exec_point_at): Don't call
1220 show_source_line.
1221
149830c1
TT
12222020-09-27 Tom Tromey <tom@tromey.com>
1223
1224 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1225 method.
1226 <erase>: Update.
1227 <cursor_x, cursor_y>: Remove.
1228 <m_inner_window>: New member.
1229 (tui_py_window::rerender): Create inner window.
1230 (tui_py_window::output): Write to inner window.
1231
8f9929bb
GR
12322020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1233
1234 PR python/26586
1235 * cli/cli-script.c (execute_control_commands): don't set
1236 instream to nullptr here as this breaks the from_tty argument
1237 to gdb.execute in Python.
1238 (execute_user_command): set instream to nullptr here instead.
1239
956bdb59
SM
12402020-09-25 Simon Marchi <simon.marchi@efficios.com>
1241
1242 * infrun.h (infrun_debug_printf): Fix formatting.
1243 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1244
3b93626b
SJ
12452020-09-25 Saagar Jha <saagar@saagarjha.com>
1246
1247 * compile/compile-object-load.h (struct munmap_list): Add
1248 explicitly-defined move constructor.
1249
b551a89f
TT
12502020-09-24 Tom Tromey <tromey@adacore.com>
1251
1252 PR tui/26638:
1253 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1254 method.
1255 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1256 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1257 (tui_prev_win): Rewrite.
1258
99bb393f
HD
12592020-09-23 Hannes Domani <ssbssa@yahoo.de>
1260
1261 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1262 in WOW64 processes as SIGINT.
1263 * nat/windows-nat.h: Make wow64_process a shared variable.
1264 * windows-nat.c: Remove static wow64_process variable.
1265
20a5fcbd
TT
12662020-09-23 Tom Tromey <tom@tromey.com>
1267
1268 PR symtab/25470:
1269 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1270 offset and bit size.
1271 * printcmd.c (print_scalar_formatted): Handle zero-length
1272 integer.
1273 (print_scalar_formatted): Use bit_size_differs_p.
1274 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1275 constant.
1276 (union type_specific): <int_stuff>: New member.
1277 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1278 methods.
1279 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1280 TYPE_SPECIFIC_FIELD.
1281 (recursive_dump_type, copy_type_recursive): Update.
1282 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1283 DW_AT_data_bit_offset.
1284
bac51ab7
TT
12852020-09-23 Tom Tromey <tom@tromey.com>
1286
1287 * utils.h (class gdb_argv): Add move operators.
1288 <append>: New methods.
1289 * compile/compile.c (build_argc_argv): Remove.
1290 (compile_args_argc): Remove.
1291 (compile_args_argv): Change type.
1292 (set_compile_args): Simplify.
1293 (append_args): Remove.
1294 (filter_args): Remove argcp parameter.
1295 (get_args): Return gdb_argv. Simplify.
1296 (compile_to_object): Update.
1297
92677124
TT
12982020-09-23 Tom Tromey <tom@tromey.com>
1299
1300 * compile/compile-object-run.c (do_module_cleanup)
1301 <~do_module_cleanup> :Remove.
1302 (do_module_cleanup): Update.
1303 * compile/compile-object-load.h (struct munmap_list): Add move
1304 assignment operator.
1305 <source_file>: Now a std::string.
1306 <munmap_list>: Rename. No longer a pointer.
1307 * compile/compile-object-load.c (struct setup_sections_data): Add
1308 constructor.
1309 <setup_one_section>: Declare.
1310 <munmap_list>: Move earlier.
1311 <m_bfd>: New member.
1312 <m_last_size, m_last_section_first, m_last_prot,
1313 m_last_max_alignment>: Rename, add initializers where needed.
1314 (setup_sections_data::setup_one_section): Rename from
1315 setup_sections. Update.
1316 (compile_object_load): Update. Don't use bfd_map_over_sections.
1317
e616f60a
TT
13182020-09-23 Tom Tromey <tom@tromey.com>
1319
1320 * compile/compile-object-run.c (struct do_module_cleanup): Add
1321 parameters to constructor. Update destructor.
1322 <source_file, scope, scope_data, out_value_type, out_value_addr,
1323 munmap_list_head, objfile_name_string>: Remove.
1324 <module>: New member.
1325 (do_module_cleanup): Update.
1326 (compile_object_run): Update.
1327
e947a848
TT
13282020-09-23 Tom Tromey <tom@tromey.com>
1329
1330 * compile/compile.c (eval_compile_command): Update.
1331 * compile/compile-object-run.h (compile_object_run): Take a
1332 compile_module_up.
1333 * compile/compile-object-run.c (compile_object_run): Take a
1334 compile_module_up.
1335 * compile/compile-object-load.h (struct compile_module): Add
1336 constructor, destructor.
1337 (compile_module_up): New typedef.
1338 (compile_object_load): Return compile_object_up.
1339 * compile/compile-object-load.c (compile_object_load): Return
1340 compile_module_up.
1341
0dbf6ee6
TT
13422020-09-23 Tom Tromey <tom@tromey.com>
1343
1344 * compile/compile-object-run.c (struct do_module_cleanup): Add
1345 constructor, destructor.
1346 <objfile_name_string>: Don't use struct hack.
1347 (do_module_cleanup): Use delete.
1348 (compile_object_run): Use new.
1349
ebe824f5
TT
13502020-09-23 Tom Tromey <tom@tromey.com>
1351
1352 * compile/compile-cplus-types.c
1353 (compile_cplus_convert_struct_or_union): Use std::vector.
1354 (compile_cplus_convert_func): Likewise.
1355 * compile/compile-c-types.c (convert_func): Use std::vector.
1356
5dd918d9
TT
13572020-09-21 Tom Tromey <tromey@adacore.com>
1358
1359 * sparc-tdep.c (sparc32_skip_prologue): Use
1360 skip_prologue_using_sal.
1361
5486c517
TT
13622020-09-19 Tom Tromey <tom@tromey.com>
1363
1364 * symfile.c (add_section_size_callback): Remove.
1365 (load_one_section): Rename from load_section_callback. Change
1366 parameters.
1367 (generic_load): Use foreach.
1368
8a6bb1d1
TT
13692020-09-19 Tom Tromey <tom@tromey.com>
1370
1371 * exec.c (add_to_section_table): Remove.
1372 (build_section_table): Use foreach.
1373
08f93a1a
TT
13742020-09-19 Tom Tromey <tom@tromey.com>
1375
1376 * elfread.c (elf_locate_sections): Change parameters.
1377 (elf_symfile_read): Use foreach.
1378
03cd72b8
TT
13792020-09-19 Tom Tromey <tom@tromey.com>
1380
1381 * cli/cli-dump.c (struct callback_data): Remove.
1382 (restore_one_section): Rename from restore_section_callback.
1383 Change parameters.
1384 (restore_binary_file): Change parameters.
1385 (restore_command): Use foreach.
1386
f4f2b85f
TT
13872020-09-19 Tom Tromey <tom@tromey.com>
1388
1389 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1390 (gcore_copy_callback): Likewise.
1391 (gcore_memory_sections): Use foreach.
1392
b35c1d1c
TT
13932020-09-19 Tom Tromey <tom@tromey.com>
1394
1395 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1396 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1397 parameters.
1398 (generic_elf_osabi_sniffer): Use foreach.
1399 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1400 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1401
5bb6e9dd
TT
14022020-09-19 Tom Tromey <tom@tromey.com>
1403
1404 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1405 (dwarf2_get_dwz_file): Use foreach.
1406 (dwarf2_locate_dwo_sections): Change parameters.
1407 (open_and_init_dwo_file): Use foreach.
1408 (dwarf2_locate_common_dwp_sections): Change parameters.
1409 (open_and_init_dwp_file): Use foreach.
1410
ad7277da
TT
14112020-09-19 Tom Tromey <tom@tromey.com>
1412
1413 * symfile.h: (find_lowest_section): Don't declare.
1414 * symfile.c (find_lowest_section): Now static. Change
1415 parameters.
1416 (struct place_section_arg): Remove.
1417 (place_section): Change parameters.
1418 (addr_info_make_relative): Use foreach.
1419 (symfile_dummy_outputs): Remove.
1420 (default_symfile_relocate): Use foreach.
1421
cb814f2e
TT
14222020-09-19 Tom Tromey <tom@tromey.com>
1423
1424 * objfiles.c (add_to_objfile_sections): Rename from
1425 add_to_objfile_sections_full.
1426 (add_to_objfile_sections): Remove.
1427 (build_objfile_section_table): Use foreach.
1428
3cabfd26
TT
14292020-09-19 Tom Tromey <tom@tromey.com>
1430
1431 * stap-probe.c (get_stap_base_address_1): Remove.
1432 (get_stap_base_address): Use foreach.
1433
1ce51eb5
TT
14342020-09-19 Tom Tromey <tom@tromey.com>
1435
1436 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1437 parameters.
1438 (gdb_bfd_close_or_warn): Use foreach.
1439
a190fabb
TT
14402020-09-19 Tom Tromey <tom@tromey.com>
1441
1442 * corelow.c (add_to_thread_list): Change parameters.
1443 (core_target_open): Use foreach.
1444
cafb0d81
TT
14452020-09-19 Tom Tromey <tom@tromey.com>
1446
1447 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1448 existing function.
1449
c8d5abea
AB
14502020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1451
1452 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1453 for arrays.
1454
6d816919
AB
14552020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1456
1457 * eval.c: Remove 'f-lang.h' include.
1458 (value_f90_subarray): Moved to f-lang.c.
1459 (eval_call): Renamed to...
1460 (evaluate_subexp_do_call): ...this, is no longer static, header
1461 comment moved into header file.
1462 (evaluate_funcall): Update call to eval_call.
1463 (skip_undetermined_arglist): Moved to f-lang.c.
1464 (fortran_value_subarray): Likewise.
1465 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1466 moved to evaluate_subexp_f.
1467 (calc_f77_array_dims): Moved to f-lang.c
1468 * expprint.c (print_subexp_funcall): New function.
1469 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1470 moved to print_subexp_f, OP_FUNCALL uses new function.
1471 (dump_subexp_body_funcall): New function.
1472 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1473 moved to dump_subexp_f, OP_FUNCALL uses new function.
1474 * expression.h (evaluate_subexp_do_call): Declare.
1475 * f-lang.c (value_f90_subarray): Moved from eval.c.
1476 (skip_undetermined_arglist): Likewise.
1477 (calc_f77_array_dims): Likewise.
1478 (fortran_value_subarray): Likewise.
1479 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1480 (operator_length_f): Likewise.
1481 (print_subexp_f): Likewise.
1482 (dump_subexp_body_f): Likewise.
1483 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1484 declaration of this operation to here.
1485 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1486 support moved to operator_length_f.
1487 * parser-defs.h (dump_subexp_body_funcall): Declare.
1488 (print_subexp_funcall): Declare.
1489 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1490 fortran-operator.def.
1491
8c37706a
AB
14922020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1493
1494 * eval.c (fortran_value_subarray): New function, content is taken
1495 from...
1496 (evaluate_subexp_standard): ...here, in two places. Now arrays
1497 and strings both call the new function.
1498 (calc_f77_array_dims): Add header comment, handle strings.
1499
14f9473c
VC
15002020-09-18 Victor Collod <vcollod@nvidia.com>
1501
1502 PR gdb/26635
1503 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1504 (i386_analyze_prologue): Call i386_skip_endbr.
1505
b60cea74
TT
15062020-09-18 Tom Tromey <tromey@adacore.com>
1507
1508 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1509 (windows_nat_target::wait): Update.
1510 * target/wait.h (enum target_wait_flag): New. Use
1511 DEF_ENUM_FLAGS_TYPE.
1512 * target/target.h (target_wait): Change type of options.
1513 * target.h (target_options_to_string, default_target_wait):
1514 Update.
1515 (struct target_ops) <wait>: Change type of options.
1516 * target.c (target_wait, default_target_wait, do_option): Change
1517 type of "options".
1518 (target_options_to_string): Likewise.
1519 * target-delegates.c: Rebuild.
1520 * target-debug.h (target_debug_print_target_wait_flags): Rename
1521 from target_debug_print_options.
1522 * sol-thread.c (class sol_thread_target) <wait>: Update.
1523 (sol_thread_target::wait): Update.
1524 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1525 (rs6000_nat_target::wait): Update.
1526 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1527 Update.
1528 (remote_target::wait_ns, remote_target::wait_as): Change type of
1529 "options".
1530 (remote_target::wait): Update.
1531 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1532 (gdbsim_target::wait): Update.
1533 * record-full.c (class record_full_base_target) <wait>: Update.
1534 (record_full_wait_1): Change type of "options".
1535 (record_full_base_target::wait): Update.
1536 * record-btrace.c (class record_btrace_target) <wait>: Update.
1537 (record_btrace_target::wait): Update.
1538 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1539 Update.
1540 (ravenscar_thread_target::wait): Update.
1541 * procfs.c (class procfs_target) <wait>: Update.
1542 (procfs_target::wait): Update.
1543 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1544 * obsd-nat.c (obsd_nat_target::wait): Update.
1545 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1546 (nto_procfs_target::wait): Update.
1547 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1548 * nbsd-nat.c (nbsd_wait): Change type of "options".
1549 (nbsd_nat_target::wait): Update.
1550 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1551 (thread_db_target::wait): Update.
1552 * linux-nat.h (class linux_nat_target) <wait>: Update.
1553 * linux-nat.c (linux_nat_target::wait): Update.
1554 (linux_nat_wait_1): Update.
1555 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1556 "options".
1557 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1558 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1559 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1560 (go32_nat_target::wait): Update.
1561 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1562 * gnu-nat.c (gnu_nat_target::wait): Update.
1563 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1564 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1565 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1566 * darwin-nat.c (darwin_nat_target::wait): Update.
1567 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1568 (bsd_uthread_target::wait): Update.
1569 * aix-thread.c (class aix_thread_target) <wait>: Update.
1570 (aix_thread_target::wait): Update.
1571
0295dde6
AB
15722020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1573
1574 * compile/compile-object-run.c (create_copied_type_recursive): New
1575 function.
1576 (compile_object_run): Use new function.
1577
d3483b43
JT
15782020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1579
1580 * NEWS: Mention x86_64 Cygwin core file support.
1581
e7d612ad
JT
15822020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1583
1584 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1585 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1586
aff9d387
JT
15872020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1588
62a5151b
JT
1589 * windows-tdep.h: Add prototypes.
1590 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1591 (i386_windows_core_pid_to_str): Move and rename ...
1592 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1593 (windows_core_pid_to_str): ... and here.
1594 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1595
15962020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
1597 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1598 (amd64_windows_init_abi_common): ... and register.
1599
7d155da3
JT
16002020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1601
1602 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1603 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1604
e8ef12b9
PA
16052020-09-18 Pedro Alves <pedro@palves.net>
1606
1607 PR gdb/26631
1608 * thread.c (thread_find_command): Switch inferior before calling
1609 target methods.
1610
c1e1314d
TT
16112020-09-17 Tom Tromey <tromey@adacore.com>
1612
1613 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1614 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1615 (tdesc_arch_data_up): New typedef.
1616 (tdesc_use_registers, tdesc_data_alloc): Update.
1617 (tdesc_data_cleanup): Don't declare.
1618 * target-descriptions.c (tdesc_data_alloc): Return a
1619 tdesc_arch_data_up.
1620 (tdesc_arch_data_deleter::operator()): Rename from
1621 tdesc_data_cleanup. Change argument type.
1622 (tdesc_use_registers): Change early_data to an rvalue reference.
1623 (tdesc_use_registers): Don't use delete.
1624 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1625 * s390-tdep.c (s390_gdbarch_init): Update.
1626 * rx-tdep.c (rx_gdbarch_init): Update.
1627 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1628 * riscv-tdep.c (riscv_gdbarch_init): Update.
1629 * or1k-tdep.c (or1k_gdbarch_init): Update.
1630 * nios2-tdep.c (nios2_gdbarch_init): Update.
1631 * nds32-tdep.c (nds32_gdbarch_init): Update.
1632 * mips-tdep.c (mips_gdbarch_init): Update.
1633 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1634 * m68k-tdep.c (m68k_gdbarch_init): Update.
1635 * i386-tdep.c (i386_gdbarch_init): Update.
1636 * arm-tdep.c (arm_gdbarch_init): Update.
1637 * arc-tdep.c (arc_tdesc_init): Update.
1638 (arc_gdbarch_init): Update.
1639 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1640
0363df3d
HD
16412020-09-17 Hannes Domani <ssbssa@yahoo.de>
1642
1643 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1644 for WOW64 processes.
1645
280a9412
TT
16462020-09-17 Tom Tromey <tom@tromey.com>
1647
1648 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1649
6108fd18
TT
16502020-09-17 Tom Tromey <tom@tromey.com>
1651
1652 * value.c (preserve_values): Update.
1653 * python/py-type.c (save_objfile_types): Update.
1654 * guile/scm-type.c (save_objfile_types): Update.
1655 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1656 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1657 * compile/compile-object-run.c (compile_object_run): Update.
1658
fa9b1164
TT
16592020-09-17 Tom Tromey <tom@tromey.com>
1660
1661 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1662 Remove.
1663 <m_table>: Now htab_up.
1664 * typeprint.c (typedef_hash_table::recursively_update)
1665 (typedef_hash_table::add_template_parameters)
1666 (typedef_hash_table::typedef_hash_table): Update.
1667 (typedef_hash_table::~typedef_hash_table): Remove.
1668 (typedef_hash_table::typedef_hash_table)
1669 (typedef_hash_table::find_global_typedef)
1670 (typedef_hash_table::find_typedef): Update.
1671
eb53f105
TT
16722020-09-17 Tom Tromey <tom@tromey.com>
1673
1674 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1675
7a8a5d47
TT
16762020-09-17 Tom Tromey <tom@tromey.com>
1677
1678 * linespec.c (class decode_compound_collector)
1679 <~decode_compound_collector>: Remove.
1680 <m_unique_syms>: Now htab_up.
1681 (decode_compound_collector::operator ()): Update.
1682 (class symtab_collector) <~symtab_collector>: Remove.
1683 <m_symtab_table>: Now htab_up.
1684 (symtab_collector::operator ()): Update.
1685
99032cfc
TT
16862020-09-17 Tom Tromey <tom@tromey.com>
1687
1688 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1689 (filename_seen_cache::clear): Update.
1690 (~filename_seen_cache): Remove.
1691 (filename_seen_cache::seen): Update.
1692 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1693 htab_up.
1694 <~filename_seen_cache>: Remove.
1695 <traverse>: Update.
1696
32580f6d
TT
16972020-09-17 Tom Tromey <tom@tromey.com>
1698
1699 * completer.c (completion_tracker::discard_completions)
1700 (completion_tracker::~completion_tracker)
1701 (completion_tracker::maybe_add_completion)
1702 (completion_tracker::remove_completion)
1703 (completion_tracker::recompute_lowest_common_denominator)
1704 (completion_tracker::build_completion_result): Update.
1705 * completer.h (class completion_tracker) <have_completions>:
1706 Update.
1707 <m_entries_hash>: Now htab_up.
1708
c1fb9836
TT
17092020-09-17 Tom Tromey <tom@tromey.com>
1710
1711 * breakpoint.c (ambiguous_names_p): Use htab_up.
1712
88f07206
TT
17132020-09-17 Tom Tromey <tom@tromey.com>
1714
1715 * auto-load.c (struct auto_load_pspace_info)
1716 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1717 <loaded_script_files, loaded_script_texts>: Change type to
1718 htab_up.
1719 (~auto_load_pspace_info) Remove.
1720 (init_loaded_scripts_info, maybe_add_script_file)
1721 (maybe_add_script_text, auto_load_info_scripts): Update.
1722
9519b2ee
TT
17232020-09-17 Tom Tromey <tromey@adacore.com>
1724
1725 * c-exp.y (name_obstack): Now static.
1726
d2cd4113
CC
17272020-09-17 Chungyi Chi <demonic@csie.io>
1728
1729 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1730
b650a282
SM
17312020-09-16 Simon Marchi <simon.marchi@efficios.com>
1732
1733 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1734 (add_solib_catchpoint): Likewise.
1735 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1736 to bool.
1737 (add_solib_catchpoint): Change int parameter/variable to bool.
1738 (catch_load_or_unload): Likewise.
1739 (init_catchpoint): Likewise.
1740 (create_fork_vfork_event_catchpoint): Likewise.
1741 (catch_fork_command_1): Likewise.
1742 (catch_exec_command_1): Likewise.
1743
4d0bcfcf
SM
17442020-09-16 Simon Marchi <simon.marchi@efficios.com>
1745
1746 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1747 Change instance_flags to m_instance_flags.
1748
fe830662
TT
17492020-09-16 Tom Tromey <tromey@adacore.com>
1750
1751 PR gdb/26598:
1752 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1753
fe5ddfc3
JB
17542020-09-16 John Baldwin <jhb@FreeBSD.org>
1755
1756 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1757 PL_FLAG_EXEC.
1758 (fbsd_nat_target::insert_exec_catchpoint)
1759 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1760 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1761 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1762
e911c666
JB
17632020-09-16 John Baldwin <jhb@FreeBSD.org>
1764
1765 * configure.ac: Remove check for kinfo_getvmmap().
1766 * configure, config.in: Regenerate.
1767 * fbsd-nat.c (fbsd_read_mapping): Remove
1768 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1769 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1770 kinfo_get_vmmap() are always present.
1771
1f17d372
JB
17722020-09-16 John Baldwin <jhb@FreeBSD.org>
1773
1774 * fbsd-nat.c: Always include support for
1775 TARGET_OBJECT_SIGNAL_INFO.
1776
bcb1da7f
JB
17772020-09-16 John Baldwin <jhb@FreeBSD.org>
1778
1779 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1780 sysctl and remove procfs fallback.
1781
5515f729
JB
17822020-09-16 John Baldwin <jhb@FreeBSD.org>
1783
1784 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1785 * fbsd-nat.h: Likewise.
1786
da1df1db
TBA
17872020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1788
1789 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1790 argument.
1791
0e25e767
AB
17922020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1793
1794 * ada-lang.c (ada_language_data): Delete.
1795 (ada_language): Remove references to ada_language_data.
1796 * c-lang.c (c_language_data): Delete.
1797 (c_language): Remove references to c_language_data.
1798 (cplus_language_data): Delete.
1799 (cplus_language): Remove references to cplus_language_data.
1800 (asm_language_data): Delete.
1801 (asm_language): Remove references to asm_language_data.
1802 (minimal_language_data): Delete.
1803 (minimal_language): Remove references to minimal_language_data.
1804 * d-lang.c (d_language_data): Delete.
1805 (d_language): Remove references to d_language_data.
1806 * f-lang.c (f_language_data): Delete.
1807 (f_language): Remove references to f_language_data.
1808 * go-lang.c (go_language_data): Delete.
1809 (go_language): Remove references to go_language_data.
1810 * language.c (unknown_language_data): Delete.
1811 (unknown_language): Remove references to unknown_language_data.
1812 (auto_language_data): Delete.
1813 (auto_language): Remove references to auto_language_data.
1814 * language.h (language_data): Delete struct.
1815 (language_defn): No longer inherit from language_data.
1816 * m2-lang.c (m2_language_data): Delete.
1817 (m2_language): Remove references to m2_language_data.
1818 * objc-lang.c (objc_language_data): Delete.
1819 (objc_language): Remove references to objc_language_data.
1820 * opencl-lang.c (opencl_language_data): Delete.
1821 (opencl_language): Remove references to opencl_language_data.
1822 * p-lang.c (pascal_language_data): Delete.
1823 (pascal_language): Remove references to pascal_language_data.
1824 * rust-lang.c (rust_language_data): Delete.
1825 (rust_language): Remove references to rust_language_data.
1826
b7c6e27d
AB
18272020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1828
1829 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1830 initializer.
1831 (ada_language::opcode_print_table): New member function.
1832 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1833 (c_language::opcode_print_table): New member function.
1834 (cplus_language_data): Remove la_op_print_tab initializer.
1835 (cplus_language::opcode_print_table): New member function.
1836 (asm_language_data): Remove la_op_print_tab initializer.
1837 (asm_language::opcode_print_table): New member function.
1838 (minimal_language_data): Remove la_op_print_tab initializer.
1839 (minimal_language::opcode_print_table): New member function.
1840 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1841 (d_language::opcode_print_table): New member function.
1842 * expprint.c (print_subexp_standard): Update call to
1843 opcode_print_table.
1844 (op_string): Likewise.
1845 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1846 (f_language::opcode_print_table): New member function.
1847 * go-lang.c (go_language_data): Remove la_op_print_tab
1848 initializer.
1849 (go_language::opcode_print_table): New member function.
1850 * language.c (unknown_language_data): Remove la_op_print_tab
1851 initializer.
1852 (unknown_language::opcode_print_table): New member function.
1853 (auto_language_data): Remove la_op_print_tab initializer.
1854 (auto_language::opcode_print_table): New member function.
1855 * language.h (language_data): Remove la_op_print_tab field.
1856 (language_defn::opcode_print_table): Declare new member function.
1857 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1858 initializer.
1859 (m2_language::opcode_print_table): New member function.
1860 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1861 initializer.
1862 (objc_language::opcode_print_table): New member function.
1863 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1864 initializer.
1865 (opencl_language::opcode_print_table): New member function.
1866 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1867 initializer.
1868 (pascal_language::opcode_print_table): New member function.
1869 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1870 initializer.
1871 (rust_language::opcode_print_table): New member function.
1872
5aba6ebe
AB
18732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1874
1875 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1876 (ada_language::expression_ops): New member function.
1877 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1878 (c_language::expression_ops): New member function.
1879 (cplus_language_data): Remove la_exp_desc initializer.
1880 (cplus_language::expression_ops): New member function.
1881 (asm_language_data): Remove la_exp_desc initializer.
1882 (asm_language::expression_ops): New member function.
1883 (minimal_language_data): Remove la_exp_desc initializer.
1884 (minimal_language::expression_ops): New member function.
1885 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1886 (d_language::expression_ops): New member function.
1887 * eval.c (evaluate_subexp): Update call to expression_ops.
1888 * expprint.c (print_subexp): Likewise.
1889 (op_name): Likewise.
1890 (dump_subexp_body): Likewise.
1891 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1892 (f_language::expression_ops): New member function.
1893 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1894 (go_language::expression_ops): New member function.
1895 * language.c (language_defn::expression_ops): New function.
1896 (unknown_language_data): Remove la_exp_desc initializer.
1897 (auto_language_data): Likewise.
1898 * language.h (language_data): Remove la_exp_desc field.
1899 (language_defn::expression_ops): Declare new member function.
1900 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1901 (m2_language::expression_ops): New member function.
1902 * objc-lang.c (objc_language_data): Remove la_exp_desc
1903 initializer.
1904 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1905 initializer.
1906 (opencl_language::expression_ops): New member function.
1907 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1908 * parse.c (operator_length): Update call to expression_ops.
1909 (exp_iterate): Likewise.
1910 * rust-lang.c (rust_language_data): Remove la_exp_desc
1911 initializer.
1912 (ruse_language::expression_ops): New member function.
1913
b63a3f3f
AB
19142020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1915
1916 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1917 initializer.
1918 (ada_language::varobj_ops): New member function.
1919 * c-lang.c (c_language_data): Remove la_varobj_ops
1920 initializer.
1921 (cplus_language_data): Likewise.
1922 (cplus_language::varobj_ops): New member function.
1923 (asm_language_data): Remove la_varobj_ops initializer.
1924 (minimal_language_data): Likewise.
1925 * d-lang.c (d_language_data): Likewise.
1926 * f-lang.c (f_language_data): Likewise.
1927 * go-lang.c (go_language_data): Likewise.
1928 * language.c (language_defn::varobj_ops): New function.
1929 (unknown_language_data): Remove la_varobj_ops
1930 initializer.
1931 (auto_language_data): Likewise.
1932 * language.h (language_data): Remove la_varobj_ops field.
1933 (language_defn::varobj_ops): Declare new member function.
1934 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1935 * objc-lang.c (objc_language_data): Likewise.
1936 * opencl-lang.c (opencl_language_data): Likewise.
1937 * p-lang.c (pascal_language_data): Likewise.
1938 * rust-lang.c (rust_language_data): Likewise.
1939 * varobj.c (varobj_create): Update call to varobj_ops.
1940 * varobj.h (default_varobj_ops): Delete define.
1941
1ac14a04
AB
19422020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1943
1944 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1945 initializer.
1946 * c-lang.c (c_language_data): Likewise.
1947 (c_language::macro_expansion): New member function.
1948 (cplus_language_data): Likewise.
1949 (cplus_language::macro_expansion): New member function.
1950 (asm_language_data): Likewise.
1951 (asm_language::macro_expansion): New member function.
1952 (minimal_language_data): Likewise.
1953 (minimal_language::macro_expansion): New member function.
1954 * d-lang.c (d_language_data): Remove la_macro_expansion
1955 initializer.
1956 * f-lang.c (f_language_data): Likewise.
1957 * go-lang.c (go_language_data): Likewise.
1958 * language.c (unknown_language_data): Likewise.
1959 (auto_language_data): Likewise.
1960 * language.h (language_data): Remove la_macro_expansion field.
1961 (language_defn::macro_expansion): New member function.
1962 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1963 initializer.
1964 * objc-lang.c (objc_language_data): Likewise.
1965 (objc_language::macro_expansion): New member function.
1966 * opencl-lang.c (opencl_language_data): Likewise.
1967 (opencl_language::macro_expansion): New member function.
1968 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1969 initializer.
1970 * rust-lang.c (rust_language_data): Likewise.
1971 * symtab.c (default_collect_symbol_completion_matches_break_on):
1972 Update call to macro_expansion.
1973
3a3440fb
AB
19742020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1975
1976 * ada-lang.c (ada_language_data): Remove la_array_ordering
1977 initializer.
1978 * c-lang.c (c_language_data): Likewise.
1979 (cplus_language_data): Likewise.
1980 (asm_language_data): Likewise.
1981 (minimal_language_data): Likewise.
1982 * d-lang.c (d_language_data): Likewise.
1983 * dwarf2/read.c (read_array_order): Update for call to
1984 array_ordering.
1985 * f-lang.c (f_language_data): Remove la_array_ordering
1986 initializer.
1987 (f_language::array_ordering): New member function.
1988 * go-lang.c (go_language_data): Remove la_array_ordering
1989 initializer.
1990 * language.c (unknown_language_data): Likewise.
1991 (auto_language_data): Likewise.
1992 * language.h (language_data): Delete la_array_ordering field.
1993 (language_defn::array_ordering): New member function.
1994 * m2-lang.c (m2_language_data): Remove la_array_ordering
1995 initializer.
1996 * objc-lang.c (objc_language_data): Likewise.
1997 * opencl-lang.c (opencl_language_data): Likewise.
1998 * p-lang.c (pascal_language_data): Likewise.
1999 * rust-lang.c (rust_language_data): Likewise.
2000
0d201fa4
AB
20012020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2002
2003 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2004 initializer.
2005 * c-lang.c (c_language_data): Likewise.
2006 (cplus_language_data): Likewise.
2007 (asm_language_data): Likewise.
2008 (minimal_language_data): Likewise.
2009 * d-lang.c (d_language_data): Likewise.
2010 * f-lang.c (f_language_data): Likewise.
2011 (f_language::case_sensitivity): New member function.
2012 * go-lang.c (go_language_data): Remove la_case_sensitivity
2013 initializer.
2014 * language.c (enum case_mode): Moved here from language.h.
2015 (case_mode): Make static.
2016 (show_case_command): Update for case_sensitivity being a method.
2017 (set_case_command): Likewise.
2018 (set_range_case): Likewise.
2019 (unknown_language_data): Remove la_case_sensitivity initializer.
2020 (auto_language_data): Likewise.
2021 * language.h (case_mode): Delete, move enum declaration to
2022 language.c.
2023 (language_data): Delete la_case_sensitivity field.
2024 (language_defn::case_sensitivity): New member function.
2025 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2026 initializer.
2027 * objc-lang.c (objc_language_data): Likewise.
2028 * opencl-lang.c (opencl_language_data): Likewise.
2029 * p-lang.c (pascal_language_data): Likewise.
2030 * rust-lang.c (rust_language_data): Likewise.
2031
efdf6a73
AB
20322020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2033
2034 * ada-lang.c (ada_language_data): Remove la_range_check
2035 initializer.
2036 * c-lang.c (c_language_data): Likewise.
2037 (cplus_language_data): Likewise.
2038 (asm_language_data): Likewise.
2039 (minimal_language_data): Likewise.
2040 * d-lang.c (d_language_data): Likewise.
2041 * f-lang.c (f_language_data): Likewise.
2042 (f_language::range_checking_on_by_default): New member function.
2043 * go-lang.c (go_language_data): Remove la_range_check initializer.
2044 * language.c (enum range_mode): Moved here from language.h.
2045 (range_mode): Made static.
2046 (show_range_command): Update to use
2047 range_checking_on_by_default.
2048 (set_range_command): Likewise.
2049 (set_range_case): Likewise.
2050 (unknown_language_data): Remove la_range_check initializer.
2051 (auto_language_data): Likewise.
2052 * language.h (range_mode): Delete. Enum definition moved to
2053 language.c.
2054 (language_data): Remove la_range_check field.
2055 (language_defn::range_checking_on_by_default): New member
2056 function.
2057 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2058 (m2_language::range_checking_on_by_default): New member function.
2059 * objc-lang.c (objc_language_data): Remove la_range_check
2060 initializer.
2061 * opencl-lang.c (opencl_language_data): Likewise.
2062 * p-lang.c (pascal_language_data): Likewise.
2063 (pascal_language::range_checking_on_by_default): New member
2064 function.
2065 * rust-lang.c (rust_language_data): Remove la_range_check
2066 initializer.
2067 (rust_language::range_checking_on_by_default): New member
2068 function.
2069
bf92aec5
AB
20702020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2071
2072 * dwarf2/read.c (dwarf2_physname): Remove special case for
2073 language_go.
2074 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2075 member function.
2076
d3355e4d
AB
20772020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2078
2079 * ada-lang.c (ada_language_data): Remove
2080 la_store_sym_names_in_linkage_form_p initializer.
2081 (ada_language::store_sym_names_in_linkage_form_p): New member
2082 function.
2083 * c-lang.c (c_language_data): Remove
2084 la_store_sym_names_in_linkage_form_p initializer.
2085 (c_language::store_sym_names_in_linkage_form_p): New member
2086 function.
2087 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2088 initializer.
2089 (asm_language_data): Likewise.
2090 (asm_language::store_sym_names_in_linkage_form_p): New member
2091 function.
2092 (minimal_language_data): Remove
2093 la_store_sym_names_in_linkage_form_p initializer.
2094 (minimal_language::store_sym_names_in_linkage_form_p): New member
2095 function.
2096 * d-lang.c (d_language_data): Remove
2097 la_store_sym_names_in_linkage_form_p initializer.
2098 * dwarf2/read.c (dwarf2_physname): Update call to
2099 store_sym_names_in_linkage_form_p.
2100 * f-lang.c (f_language_data): Remove
2101 la_store_sym_names_in_linkage_form_p initializer.
2102 * go-lang.c (go_language_data): Remove
2103 la_store_sym_names_in_linkage_form_p initializer.
2104 * language.c (unknown_language_data): Remove
2105 la_store_sym_names_in_linkage_form_p initializer.
2106 (unknown_language::store_sym_names_in_linkage_form_p): New member
2107 function.
2108 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2109 initializer.
2110 (auto_language::store_sym_names_in_linkage_form_p): New member
2111 function.
2112 * language.h (language_data): Remove
2113 la_store_sym_names_in_linkage_form_p member variable.
2114 (language_defn::store_sym_names_in_linkage_form_p): New member
2115 function.
2116 * m2-lang.c (m2_language_data): Remove
2117 la_store_sym_names_in_linkage_form_p initializer.
2118 * objc-lang.c (objc_language_data): Likewise.
2119 * opencl-lang.c (opencl_language_data): Likewise.
2120 * p-lang.c (pascal_language_data): Likewise.
2121 * rust-lang.c (rust_language_data): Likewise.
2122
22c12a6c
AB
21232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2124
2125 * ada-lang.c (ada_language_data): Remove string_lower_bound
2126 initializer.
2127 * c-lang.c (c_language_data): Likewise.
2128 (cplus_language_data): Likewise.
2129 (asm_language_data): Likewise.
2130 (minimal_language_data): Likewise.
2131 * d-lang.c (d_language_data): Likewise.
2132 * f-lang.c (f_language_data): Likewise.
2133 * go-lang.c (go_language_data): Likewise.
2134 * language.c (unknown_language_data): Likewise.
2135 (auto_language_data): Likewise.
2136 * language.h (language_data): Remove string_lower_bound field.
2137 (language_defn::string_lower_bound): New member function.
2138 * m2-lang.c (m2_language_data): Remove string_lower_bound
2139 initializer.
2140 (m2_language::string_lower_bound): New member function.
2141 * objc-lang.c (objc_language_data): Remove string_lower_bound
2142 initializer.
2143 * opencl-lang.c (opencl_language_data): Likewise.
2144 * p-lang.c (pascal_language_data): Likewise.
2145 * rust-lang.c (rust_language_data): Likewise.
2146 * valops.c (value_cstring): Update call to string_lower_bound.
2147 (value_string): Likewise.
2148 * value.c (allocate_repeated_value): Likewise.
2149
1c236ddd
AB
21502020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2151
2152 * valops.c (value_repeat): Fix incorrect argument name in comment.
2153
67bd3fd5
AB
21542020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2155
2156 * ada-lang.c (ada_language_data): Remove c_style_arrays
2157 initializer.
2158 (ada_language::c_style_arrays_p): New member fuction.
2159 * c-lang.c (c_language_data): Remove c_style_arrays
2160 initializer.
2161 (cplus_language_data): Likewise.
2162 (asm_language_data): Likewise.
2163 (minimal_language_data): Likewise.
2164 * d-lang.c (d_language_data): Likewise.
2165 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2166 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2167 (f_language::c_style_arrays_p): New member function.
2168 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2169 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2170 * language.c (unknown_language_data): Remove c_style_arrays
2171 initializer.
2172 (auto_language_data): Likewise.
2173 * language.h (language_data): Remove c_style_arrays field.
2174 (language_defn::c_style_arrays_p): New member function.
2175 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2176 (m2_language::c_style_arrays_p): New member function.
2177 * objc-lang.c (objc_language_data): Remove c_style_arrays
2178 initializer.
2179 * opencl-lang.c (opencl_language_data): Likewise.
2180 * p-lang.c (pascal_language_data): Likewise.
2181 * rust-lang.c (rust_language_data): Likewise.
2182 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2183 and update local variable to a bool.
2184 * valops.c (value_cast): Update call to c_style_arrays_p.
2185 (value_array): Likewise.
2186 * value.c (coerce_array): Likewise.
2187
85967615
AB
21882020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2189
2190 * ada-lang.c (ada_language_data): Remove la_language initializer.
2191 * c-lang.c (c_language_data): Likewise.
2192 (cplus_language_data): Likewise.
2193 (asm_language_data): Likewise.
2194 (minimal_language_data): Likewise.
2195 * d-lang.c (d_language_data): Likewise.
2196 * f-lang.c (f_language_data): Likewise.
2197 * go-lang.c (go_language_data): Likewise.
2198 * language.c (unknown_language_data): Likewise.
2199 (auto_language_data): Likewise.
2200 * language.h (language_data): Remove la_language field.
2201 (language_defn::language_defn): Initialise la_language field.
2202 (language_defn::la_language): New member variable.
2203 * m2-lang.c (m2_language_data): Remove la_language field.
2204 * objc-lang.c (objc_language_data): Likewise.
2205 * opencl-lang.c (opencl_language_data): Likewise.
2206 * p-lang.c (pascal_language_data): Likewise.
2207 * rust-lang.c (rust_language_data): Likewise.
2208
e171d6f1
AB
22092020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2210
2211 * ada-lang.c (ada_extensions): Delete, moved into
2212 ada_language::filename_extensions.
2213 (ada_language_data): Remove la_filename_extensions initializer.
2214 (ada_language::filename_extensions): New member function.
2215 * c-lang.c (c_extensions): Delete, moved into
2216 c_language::filename_extensions.
2217 (c_language_data): Remove la_filename_extensions initializer.
2218 (c_language::filename_extensions): New member function.
2219 (cplus_extensions): Delete, moved into
2220 cplus_language::filename_extensions.
2221 (cplus_language_data): Remove la_filename_extensions initializer.
2222 (cplus_language::filename_extensions): New member function.
2223 (asm_extensions): Delete, moved into
2224 asm_language::filename_extensions.
2225 (asm_language_data): Remove la_filename_extensions initializer.
2226 (asm_language::filename_extensions): New member function.
2227 (minimal_language_data): Remove la_filename_extensions
2228 initializer.
2229 * d-lang.c (d_extensions): Delete, moved into
2230 d_language::filename_extensions.
2231 (d_language_data): Remove la_filename_extensions initializer.
2232 (d_language::filename_extensions): New member function.
2233 * f-lang.c (f_extensions): Delete, moved into
2234 f_language::filename_extensions.
2235 (f_language_data): Remove la_filename_extensions initializer.
2236 (f_language::filename_extensions): New member function.
2237 * go-lang.c (go_language_data): Remove la_filename_extensions
2238 initializer.
2239 * language.c (add_set_language_command): Update now that
2240 filename_extensions returns a vector.
2241 (unknown_language_data): Remove la_filename_extensions
2242 initializer.
2243 (auto_language_data): Likewise.
2244 * language.h (language_data): Remove la_filename_extensions field.
2245 (language_defn::filename_extensions): New member function.
2246 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2247 initializer.
2248 * objc-lang.c (objc_extensions): Delete, moved into
2249 objc_language::filename_extensions.
2250 (objc_language_data): Remove la_filename_extensions initializer.
2251 (objc_language::filename_extensions): New member function.
2252 * opencl-lang.c (opencl_language_data): Remove
2253 la_filename_extensions initializer.
2254 * p-lang.c (pascal_extensions): Delete, moved into
2255 pascal_language::filename_extensions.
2256 (pascal_language_data): Remove la_filename_extensions initializer.
2257 (pascal_language::filename_extensions): New member function.
2258 * rust-lang.c (rust_extensions): Delete, moved into
2259 rust_language::filename_extensions.
2260 (rust_language_data): Remove la_filename_extensions initializer.
2261 (rust_language::filename_extensions): New member function.
2262 * symfile.c (add_filename_language): Add new assert.
2263
6f7664a9
AB
22642020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2265
2266 * ada-lang.c (ada_language_data): Remove la_name and
2267 la_natural_name initializers.
2268 (ada_language::name): New member function.
2269 (ada_language::natural_name): New member function.
2270 * c-lang.c (c_language_data): Remove la_name and
2271 la_natural_name initializers.
2272 (c_language::name): New member function.
2273 (c_language::natural_name): New member function.
2274 (cplus_language_data): Remove la_name and
2275 la_natural_name initializers.
2276 (cplus_language::name): New member function.
2277 (cplus_language::natural_name): New member function.
2278 (asm_language_data): Remove la_name and
2279 la_natural_name initializers.
2280 (asm_language::name): New member function.
2281 (asm_language::natural_name): New member function.
2282 (minimal_language_data): Remove la_name and
2283 la_natural_name initializers.
2284 (minimal_language::name): New member function.
2285 (minimal_language::natural_name): New member function.
2286 * compile/compile.c (compile_to_object): Update call to
2287 lanugage_defn::name.
2288 * d-lang.c (d_language_data): Remove la_name and
2289 la_natural_name initializers.
2290 (d_language::name): New member function.
2291 (d_language::natural_name): New member function.
2292 * expprint.c (print_subexp_standard): Update call to
2293 language_defn::name.
2294 (dump_raw_expression): Likewise
2295 (dump_prefix_expression): Likewise.
2296 * f-lang.c (f_language_data): Remove la_name and
2297 la_natural_name initializers.
2298 (f_language::name): New member function.
2299 (f_language::natural_name): New member function.
2300 * go-lang.c (go_language_data): Remove la_name and
2301 la_natural_name initializers.
2302 (go_language::name): New member function.
2303 (go_language::natural_name): New member function.
2304 * language.c (show_language_command): Update call to
2305 language_defn::name.
2306 (set_language_command): Likewise.
2307 (language_enum): Likewise.
2308 (language_str): Likewise.
2309 (add_set_language_command): Likewise, use
2310 language_defn::natural_name in the doc string.
2311 (unknown_language_data): Remove la_name and
2312 la_natural_name initializers.
2313 (unknown_language::name): New member function.
2314 (unknown_language::natural_name): New member function.
2315 (auto_language_data): Remove la_name and
2316 la_natural_name initializers.
2317 (auto_language::name): New member function.
2318 (auto_language::natural_name): New member function.
2319 (language_lookup_primitive_type_as_symbol): Update call to
2320 language_defn::name.
2321 * language.h (language_data): Remove la_name and la_natural_name
2322 member variables.
2323 (language_defn::name): New member function.
2324 (language_defn::natural_name): New member function.
2325 * m2-lang.c (m2_language_data): Remove la_name and
2326 la_natural_name initializers.
2327 (m2_language::name): New member function.
2328 (m2_language::natural_name): New member function.
2329 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2330 language_defn::natural_name.
2331 * objc-lang.c (objc_language_data): Remove la_name and
2332 la_natural_name initializers.
2333 (objc_language::name): New member function.
2334 (objc_language::natural_name): New member function.
2335 * opencl-lang.c (opencl_language_data): Remove la_name and
2336 la_natural_name initializers.
2337 (opencl_language::name): New member function.
2338 (opencl_language::natural_name): New member function.
2339 * p-lang.c (pascal_language_data): Remove la_name and
2340 la_natural_name initializers.
2341 (pascal_language::name): New member function.
2342 (pascal_language::natural_name): New member function.
2343 * rust-lang.c (rust_language_data): Remove la_name and
2344 la_natural_name initializers.
2345 (rust_language::name): New member function.
2346 (rust_language::natural_name): New member function.
2347 * symtab.c (lookup_language_this): Update call to
2348 language_defn::name.
2349
5bae7c4e
AB
23502020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2351
2352 * ada-lang.c (ada_language_data): Remove la_name_of_this
2353 initializer.
2354 * ax-gdb.c (gen_expr): Update call to name_of_this.
2355 * c-exp.y (classify_name): Likewise.
2356 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2357 (cplus_language_data): Likewise.
2358 (cplus_language::name_of_this): New member function.
2359 (asm_language_data): Remove la_name_of_this initializer.
2360 (minimal_language_data): Likewise.
2361 * d-lang.c (d_language_data): Likewise.
2362 (d_language::name_of_this): New member function.
2363 * expprint.c (print_subexp_standard): Update call to name_of_this.
2364 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2365 * go-lang.c (go_language_data): Likewise.
2366 * language.c (unknown_language_data): Likewise.
2367 (unknown_language::name_of_this): New member function.
2368 (auto_language_data): Remove la_name_of_this initializer.
2369 (auto_language::name_of_this): New member function.
2370 * language.h (language_data): Delete la_name_of_this member
2371 variable.
2372 (language_defn::name_of_this): New member function.
2373 * m2-lang.c (m2_language_data): Remove la_name_of_this
2374 initializer.
2375 * objc-lang.c (objc_language_data): Likewise.
2376 (objc_language::name_of_this): New member function.
2377 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2378 initializer.
2379 * p-lang.c (pascal_language_data): Likewise.
2380 (pascal_language::name_of_this): New member function.
2381 * rust-lang.c (rust_language_data): Remove la_name_of_this
2382 initializer.
2383 * symtab.c (lookup_language_this): Update call to name_of_this.
2384 (lookup_symbol_aux): Likewise.
2385 * valops.c (value_of_this): Likewise.
2386
22e3f3ed
AB
23872020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2388
2389 * ada-lang.c (ada_language_data): Remove
2390 la_struct_too_deep_ellipsis initializer.
2391 (ada_language::struct_too_deep_ellipsis): New member function.
2392 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2393 initializer.
2394 (cplus_language_data): Likewise.
2395 (asm_language_data): Likewise.
2396 (minimal_language_data): Likewise.
2397 * cp-valprint.c (cp_print_value): Update call to
2398 struct_too_deep_ellipsis.
2399 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2400 initializer.
2401 * f-lang.c (f_language_data): Likewise.
2402 (f_language::struct_too_deep_ellipsis): New member function.
2403 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2404 initializer.
2405 * language.c (unknown_language_data): Likewise.
2406 (auto_language_data): Likewise.
2407 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2408 member variable.
2409 (language_defn::struct_too_deep_ellipsis): New member function.
2410 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2411 initializer.Q
2412 * objc-lang.c (objc_language_data): Likewise.
2413 * opencl-lang.c (opencl_language_data): Likewise.
2414 * p-lang.c (pascal_language_data): Likewise.
2415 * rust-lang.c (rust_language_data): Likewise.
2416 * valprint.c (val_print_check_max_depth): Update call to
2417 struct_too_deep_ellipsis.
2418
ed29e1c7
FW
24192020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2420
2421 * MAINTAINERS (Write After Approval): Add myself.
2422
12d8f940
TT
24232020-09-15 Tom Tromey <tom@tromey.com>
2424
2425 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2426 Remove.
2427
6b5a7bc7
TT
24282020-09-15 Tom Tromey <tom@tromey.com>
2429
2430 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2431 and TYPE_CODE_METHODPTR cases.
2432 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2433 (c_value_print_inner): Update.
2434 * valprint.c (generic_value_print_memberptr): New function, from
2435 c_value_print_memberptr.
2436 (generic_value_print): Use it. Call cplus_print_method_ptr.
2437
47f0e2ff
TT
24382020-09-15 Tom Tromey <tromey@adacore.com>
2439
2440 * python/python-internal.h (PyInt_FromLong): Remove define.
2441 * python/py-value.c (convert_value_from_python): Use
2442 gdb_py_object_from_longest.
2443 * python/py-type.c (typy_get_code): Use
2444 gdb_py_object_from_longest.
2445 * python/py-symtab.c (salpy_get_line): Use
2446 gdb_py_object_from_longest.
2447 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2448 gdb_py_object_from_longest.
2449 * python/py-record.c (recpy_gap_reason_code): Use
2450 gdb_py_object_from_longest.
2451 * python/py-record-btrace.c (recpy_bt_insn_size)
2452 (recpy_bt_func_level, btpy_list_count): Use
2453 gdb_py_object_from_longest.
2454 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2455 gdb_py_object_from_longest. Fix error handling.
2456 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2457 gdb_py_object_from_longest.
2458 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2459 gdb_py_object_from_longest.
2460 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2461 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2462 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2463
512116ce
TT
24642020-09-15 Tom Tromey <tromey@adacore.com>
2465
2466 * python/python.c (gdbpy_parameter_value): Use
2467 gdb_py_object_from_ulongest.
2468
4ab1029c
TT
24692020-09-15 Tom Tromey <tromey@adacore.com>
2470
2471 * python/py-infevents.c (create_register_changed_event_object):
2472 Use gdb_py_object_from_longest.
2473 * python/py-exitedevent.c (create_exited_event_object): Use
2474 gdb_py_object_from_longest.
2475
062534d4
TT
24762020-09-15 Tom Tromey <tromey@adacore.com>
2477
2478 * python/python.c (gdbpy_parameter_value): Use
2479 gdb_py_object_from_longest.
2480 * python/py-type.c (convert_field, typy_range): Use
2481 gdb_py_object_from_longest.
2482 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2483 gdb_py_object_from_longest.
2484 * python/py-lazy-string.c (stpy_get_length): Use
2485 gdb_py_object_from_longest.
2486 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2487 gdb_py_object_from_longest.
2488 * python/py-infevents.c (create_memory_changed_event_object): Use
2489 gdb_py_object_from_longest.
2490 * python/py-inferior.c (infpy_get_num): Use
2491 gdb_py_object_from_longest.
2492 (infpy_get_pid): Likewise.
2493
d1cab987
TT
24942020-09-15 Tom Tromey <tromey@adacore.com>
2495
2496 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2497 defines.
2498 * python/py-value.c (valpy_long): Use
2499 gdb_py_object_from_ulongest.
2500 * python/py-symtab.c (salpy_get_pc): Use
2501 gdb_py_object_from_ulongest.
2502 (salpy_get_last): Likewise.
2503 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2504 gdb_py_object_from_ulongest.
2505 * python/py-lazy-string.c (stpy_get_address): Use
2506 gdb_py_object_from_ulongest.
2507 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2508 * python/py-arch.c (archpy_disassemble): Use
2509 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2510 error handling.
2511
4bde49dc
TT
25122020-09-15 Tom Tromey <tromey@adacore.com>
2513
2514 * python/python-internal.h (gdb_py_long_from_longest): Remove
2515 defines.
2516 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2517 * python/py-type.c (convert_field, typy_get_sizeof): Use
2518 gdb_py_object_from_longest.
2519 * python/py-record-btrace.c (btpy_list_index): Use
2520 gdb_py_object_from_longest.
2521
37431074
TT
25222020-09-15 Tom Tromey <tromey@adacore.com>
2523
2524 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2525 * python/py-record.c (recpy_element_number): Use
2526 gdb_py_object_from_longest.
2527 (recpy_gap_number): Likewise.
2528
cbe25684
TT
25292020-09-15 Tom Tromey <tromey@adacore.com>
2530
2531 * top.c (ui::ui): Update.
2532 (highest_ui_num): Remove.
2533 * top.h (struct ui) <num>: Remove.
2534
db92ac45
TT
25352020-09-15 Tom Tromey <tromey@adacore.com>
2536
2537 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2538 * ui-style.c (ansi_regex_text): Now array.
2539 * rust-exp.y (number_regex_text): Now array.
2540 * linespec.c (linespec_quote_characters): Now array.
2541 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2542 Now arrays.
2543
d2b31b67
SM
25442020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2545
2546 * debuginfod-support.c (debuginfod_client_deleter): New.
2547 (debuginfod_client_up): New.
2548 (debuginfod_init): Return debuginfod_client_up.
2549 (debuginfod_source_query): Adjust.
2550 (debuginfod_debuginfo_query): Adjust.
2551
3246bd8e
SM
25522020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2553
2554 * debuginfod-support.c (debuginfod_source_query): Use
2555 make_unique_xstrdup.
2556
10242f36
SM
25572020-09-14 Simon Marchi <simon.marchi@efficios.com>
2558
2559 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2560 with `type::instance_flags`.
2561
e1044e6a
MM
25622020-09-14 Michael Mullin <masmullin@gmail.com>
2563
2564 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2565 Remove baton parameter.
2566
04902b09
PA
25672020-09-14 Pedro Alves <pedro@palves.net>
2568
2569 * Makefile.in (SELFTESTS_SRCS): Add
2570 unittests/enum-flags-selftests.c.
2571 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2572 btrace_function_flags instead of enum btrace_function_flag.
2573 * compile/compile-c-types.c (convert_qualified): Use
2574 enum_flags::raw.
2575 * compile/compile-cplus-symbols.c (convert_one_symbol)
2576 (convert_symbol_bmsym):
2577 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2578 (compile_cplus_convert_struct_or_union_methods)
2579 (compile_cplus_instance::convert_qualified_base):
2580 * go-exp.y (parse_string_or_char): Add cast to int.
2581 * unittests/enum-flags-selftests.c: New file.
2582 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2583 type to btrace_thread_flags from btrace_thread_flag.
2584 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2585 local's type to btrace_thread_flags from btrace_thread_flag. Add
2586 cast in DEBUG call.
2587
69896a2c
PA
25882020-09-14 Pedro Alves <pedro@palves.net>
2589
2590 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2591 * gdbtypes.c (address_space_name_to_int): Rename to ...
2592 (address_space_name_to_type_instance_flags): ... this.
2593 (address_space_int_to_name): Rename to ...
2594 (address_space_type_instance_flags_to_name): ... this.
2595 * gdbtypes.h (address_space_name_to_int): Rename to ...
2596 (address_space_name_to_type_instance_flags): ... this.
2597 (address_space_int_to_name): Rename to ...
2598 (address_space_type_instance_flags_to_name): ... this.
2599 * type-stack.c (type_stack::insert): Adjust to rename.
2600 * type-stack.h (type_stack::insert): Likewise.
2601
314ad88d
PA
26022020-09-14 Pedro Alves <pedro@palves.net>
2603 Andrew Burgess <andrew.burgess@embecosm.com>
2604
2605 * avr-tdep.c (avr_address_class_type_flags): Return
2606 type_instance_flags.
2607 (avr_address_class_type_flags_to_name): Take a
2608 type_instance_flags.
2609 (avr_address_class_name_to_type_flags): Return bool and take a
2610 type_instance_flags.
2611 * d-lang.c (build_d_types): Use type::set_instance_flags.
2612 * ft32-tdep.c (ft32_address_class_type_flags): Return
2613 type_instance_flags.
2614 (ft32_address_class_type_flags_to_name): Take a
2615 type_instance_flags.
2616 (ft32_address_class_name_to_type_flags): Return bool and take a
2617 type_instance_flags.
2618 (ft32_gdbarch_init): Use type::set_instance_flags.
2619 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2620 * gdbarch.h, gdbarch.c: Regenerate.
2621 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2622 (address_class_name_to_type_flags): Use type_instance_flags and
2623 bool.
2624 * gdbtypes.c (address_space_name_to_int)
2625 (address_space_int_to_name, make_qualified_type): Use
2626 type_instance_flags.
2627 (make_qualified_type): Use type_instance_flags and
2628 type::set_instance_flags.
2629 (make_type_with_address_space, make_cv_type, make_vector_type)
2630 (check_typedef): Use type_instance_flags.
2631 (recursive_dump_type): Cast type_instance_flags to unsigned for
2632 printing.
2633 (copy_type_recursive): Use type::set_instance_flags.
2634 (gdbtypes_post_init): Use type::set_instance_flags.
2635 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2636 <m_instance_flags>: ... this.
2637 <instance_flags, set_instance_flags>: New methods.
2638 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2639 (SET_TYPE_INSTANCE_FLAGS): New.
2640 (address_space_name_to_int, address_space_int_to_name)
2641 (make_type_with_address_space): Pass flags using
2642 type_instance_flags instead of int.
2643 * stabsread.c (cleanup_undefined_types_noname): Use
2644 type::set_instance_flags.
2645 * s390-tdep.c (s390_address_class_type_flags): Return
2646 type_instance_flags.
2647 (s390_address_class_type_flags_to_name): Take a
2648 type_instance_flags.
2649 (s390_address_class_name_to_type_flags): Return bool and take a
2650 type_instance_flags.
2651 * type-stack.c (type_stack::follow_types): Use
2652 type_instance_flags.
2653 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2654
27087b7f
TT
26552020-09-14 Tom Tromey <tromey@adacore.com>
2656
2657 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2658 * x86-tdep.c (x86_is_thunk_register_name)
2659 (x86_in_indirect_branch_thunk): Update.
2660 * sparc64-tdep.c (sparc64_fpu_register_names)
2661 (sparc64_cp0_register_names, sparc64_register_names)
2662 (sparc64_pseudo_register_names): Now const.
2663 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2664 cp0_registers_num>: Now const.
2665 * sparc-tdep.c (sparc_core_register_names)
2666 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2667 (sparc32_pseudo_register_names): Now const.
2668 (validate_tdesc_registers): Update.
2669 * rust-lang.c (rust_extensions): Now const.
2670 * p-lang.c (p_extensions): Now const.
2671 * objc-lang.c (objc_extensions): Now const.
2672 * nto-tdep.c (nto_thread_state_str): Now const.
2673 * moxie-tdep.c (moxie_register_names): Now const.
2674 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2675 Now const.
2676 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2677 (mips_linux_reg_names): Now const.
2678 (mips_gdbarch_init): Update.
2679 * microblaze-tdep.c (microblaze_register_names): Now const.
2680 * m68k-tdep.c (m68k_register_names): Now const.
2681 * m32r-tdep.c (m32r_register_names): Now const.
2682 * ia64-tdep.c (ia64_register_names): Now const.
2683 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2684 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2685 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2686 ymm_avx512_register_names, pkeys_register_names>: Now const.
2687 * i386-tdep.c (i386_register_names, i386_zmm_names)
2688 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2689 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2690 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2691 * f-lang.c (f_extensions): Now const.
2692 * d-lang.c (d_extensions): Now const.
2693 * csky-tdep.c (csky_register_names): Now const.
2694 * charset.c (default_charset_names, charset_enum): Now const.
2695 (_initialize_charset): Update.
2696 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2697 const.
2698 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2699 (bsd_uthread_solib_loaded): Update.
2700 (bsd_uthread_state): Now const.
2701 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2702 (amd64_ymm_avx512_names, amd64_ymmh_names)
2703 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2704 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2705 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2706 (amd64_dword_names): Now const.
2707 * agent.c (can_use_agent_enum): Now const.
2708 * ada-tasks.c (task_states, long_task_states): Now const.
2709 * ada-lang.c (known_runtime_file_name_patterns)
2710 (known_auxiliary_function_name_patterns, attribute_names)
2711 (standard_exc, ada_extensions): Now const.
2712
89806626
SM
27132020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2714
2715 * bcache.h (struct bcache) <bcache>: Remove constructor.
2716 <m_hash_function, m_compare_function>: Remove.
2717 <~bcache>: Make virtual.
2718 <compare>: Remove static method, introduce virtual method.
2719 <default_hash>: Remove.
2720 <hash>: New virtual method.
2721 * bcache.c (bcache::expand_hash_table): Update.
2722 (bcache::insert): Update.
2723 (bcache::hash): New.
2724 (bcache::compare): Update comment and parameter names.
2725 * gdbtypes.c (types_deeply_equal): Update.
2726 * psymtab.h (struct psymbol_bcache): New struct.
2727 (class psymtab_storage) <psymtab_storage>: Make default.
2728 <psymbol_cache>: Change type to psymbol_bcache.
2729 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2730 (psymbol_hash): Change to...
2731 (psymbol_bcache::hash): ... this.
2732 (psymbol_compare): Change to...
2733 (psymbol_bcache::compare): ... this.
2734
677c92fe
SM
27352020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2736
2737 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2738 checking for initial lwp.
2739
3eba3a01
TT
27402020-09-14 Tom Tromey <tromey@adacore.com>
2741
2742 * m68k-tdep.c (m68k_extract_return_value): Use
2743 pointer_result_regnum.
2744 (m68k_store_return_value): Likewise.
2745 (m68k_reg_struct_return_p): Handle vectors and arrays.
2746 (m68k_return_value): Handle arrays.
2747 (m68k_svr4_return_value): Fix single-element aggregate handling.
2748 Handle long double. Adjust for embedded ABI.
2749 (m68k_svr4_init_abi): Set pointer_result_regnum.
2750 (m68k_embedded_init_abi): New function.
2751 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2752 (m68k_osabi_sniffer): New function.
2753 (_initialize_m68k_tdep): Register osabi sniffer.
2754 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2755 member.
2756
33f4dd48
SM
27572020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2758
2759 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2760 with gdb::unique_xmalloc_ptr<char>.
2761
8400a90d
SM
27622020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2763
2764 * xml-support.h (xml_fetch_another): Change type to be a
2765 function_view.
2766 (xml_process_xincludes): Remove baton parameter.
2767 (xml_fetch_content_from_file): Change baton parameter to
2768 dirname.
2769 * xml-support.c (struct xinclude_parsing_data)
2770 <xinclude_parsing_data>: Remove baton parameter.
2771 <fetcher_baton>: Remove.
2772 (xinclude_start_include): Adjust.
2773 (xml_process_xincludes): Adjust.
2774 (xml_fetch_content_from_file): Replace baton parameter with
2775 dirname.
2776 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2777 (xml_init_syscalls_info): Use a lambda.
2778 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2779 (file_read_description_xml): Use a lambda.
2780 (fetch_available_features_from_target): Change baton parameter
2781 to target_ops.
2782 (target_read_description_xml): Use a lambda.
2783 (target_fetch_description_xml): Use a lambda.
2784 (string_read_description_xml): Update.
2785
04f5bab2
SM
27862020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2787
2788 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2789 uses with type::endianity_is_not_default.
2790
db558e34
SM
27912020-09-14 Simon Marchi <simon.marchi@efficios.com>
2792
2793 * gdbtypes.h (struct type) <endianity_is_not_default,
2794 set_endianity_is_not_default>: New methods.
2795 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2796 type::endianity_is_not_default, change all write call sites to
2797 use type::set_endianity_is_not_default.
2798
22c4c60c
SM
27992020-09-14 Simon Marchi <simon.marchi@efficios.com>
2800
2801 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2802 uses with type::is_fixed_instance.
2803
9cdd0d12
SM
28042020-09-14 Simon Marchi <simon.marchi@efficios.com>
2805
2806 * gdbtypes.h (struct type) <is_fixed_instance,
2807 set_is_fixed_instance>: New methods.
2808 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2809 write call sites to use type::set_is_fixed_instance.
2810
0becda7a
SM
28112020-09-14 Simon Marchi <simon.marchi@efficios.com>
2812
2813 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2814 uses with type::is_gnu_ifunc.
2815
03cc7249
SM
28162020-09-14 Simon Marchi <simon.marchi@efficios.com>
2817
2818 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2819 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2820 use type::set_is_gnu_ifunc.
2821
3f46044c
SM
28222020-09-14 Simon Marchi <simon.marchi@efficios.com>
2823
2824 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2825 uses with type::stub_is_supported.
2826
9baccff6
SM
28272020-09-14 Simon Marchi <simon.marchi@efficios.com>
2828
2829 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2830 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2831 use type::set_stub_is_supported.
2832
bd63c870
SM
28332020-09-14 Simon Marchi <simon.marchi@efficios.com>
2834
2835 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2836 uses with type::is_vector.
2837
2062087b
SM
28382020-09-14 Simon Marchi <simon.marchi@efficios.com>
2839
2840 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2841 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2842 use type::set_is_vector.
2843
a409645d
SM
28442020-09-14 Simon Marchi <simon.marchi@efficios.com>
2845
2846 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2847 uses with type::has_varargs.
2848
1d6286ed
SM
28492020-09-14 Simon Marchi <simon.marchi@efficios.com>
2850
2851 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2852 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2853 use type::set_has_varargs.
2854
7f9f399b
SM
28552020-09-14 Simon Marchi <simon.marchi@efficios.com>
2856
2857 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2858 uses with type::is_prototyped.
2859
27e69b7a
SM
28602020-09-14 Simon Marchi <simon.marchi@efficios.com>
2861
2862 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2863 New methods.
2864 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2865 call sites to use type::set_is_prototyped.
2866
d2183968
SM
28672020-09-14 Simon Marchi <simon.marchi@efficios.com>
2868
2869 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2870 uses with type::target_is_stub.
2871
8f53807e
SM
28722020-09-14 Simon Marchi <simon.marchi@efficios.com>
2873
2874 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2875 New methods.
2876 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2877 sites to use type::set_target_is_stub.
2878
e46d3488
SM
28792020-09-14 Simon Marchi <simon.marchi@efficios.com>
2880
2881 * gdbtypes.h (TYPE_STUB): Remove, replace all
2882 uses with type::is_stub.
2883
b4b73759
SM
28842020-09-14 Simon Marchi <simon.marchi@efficios.com>
2885
2886 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2887 (TYPE_STUB): Use type::is_stub, change all write call sites to
2888 use type::set_is_stub.
2889
20ce4123
SM
28902020-09-14 Simon Marchi <simon.marchi@efficios.com>
2891
2892 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2893 type::has_no_signedness.
2894
15152a54
SM
28952020-09-14 Simon Marchi <simon.marchi@efficios.com>
2896
2897 * gdbtypes.h (struct type) <has_no_signedness,
2898 set_has_no_signedness>: New methods.
2899 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2900 call sites to use type::set_has_no_signedness.
2901
c6d940a9
SM
29022020-09-14 Simon Marchi <simon.marchi@efficios.com>
2903
2904 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2905 type::is_unsigned.
2906
653223d3
SM
29072020-09-14 Simon Marchi <simon.marchi@efficios.com>
2908
2909 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2910 methods.
2911 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2912 sites to use type::set_is_unsigned.
2913
55ea94da 29142020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 2915 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 2916
e851246a
SM
2917 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2918 pointer and stack frame offset when unwinding.
55ea94da 2919
6791b117
PA
29202020-09-13 Pedro Alves <pedro@palves.net>
2921
2922 * NEWS: Document "-break-insert --qualified".
2923 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2924
77f2120b
PA
29252020-09-13 Pedro Alves <pedro@palves.net>
2926
2927 * linespec.c (classify_mtype, compare_msyms): Delete.
2928 (search_minsyms_for_name): Remove classification logic. Instead
2929 filter out trampoline symbols if we also found an external
2930 function of the same name.
2931
ed6a896c
JB
29322020-09-13 Joel Brobecker <brobecker@adacore.com>
2933
2934 * NEWS: Create a new section for the next release branch.
2935 Rename the section of the current branch, now that it has
2936 been cut.
2937
32aea73e
JB
29382020-09-13 Joel Brobecker <brobecker@adacore.com>
2939
2940 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2941 * version.in: Bump version to 11.0.50.DATE-git.
2942
8087c3fa
JB
29432020-09-12 Joel Brobecker <brobecker@adacore.com>
2944
2945 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2946
2a67f09d
FW
29472020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2948 Felix Willgerodt <Felix.Willgerodt@intel.com>
2949
2950 * gdbarch.sh: Added bfloat16 type.
2951 * gdbarch.c: Regenerated.
2952 * gdbarch.h: Regenerated.
2953 * gdbtypes.c (floatformats_bfloat16): New struct.
2954 (gdbtypes_post_init): Add builtin_bfloat16.
2955 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2956 (floatformats_bfloat16): New struct.
2957 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2958 (i386_ymm_type): Add field "v16_bfloat16"
2959 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2960 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2961 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2962 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2963 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2964 * features/i386/64bit-avx512.c: Regenerated.
2965 * features/i386/64bit-sse.xml: Add bfloat16 type.
2966 * features/i386/64bit-sse.c: Regenerated.
2967
1347d111
FW
29682020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2969
2970 * i386-tdep.c (i386_zmm_type): Fix field names.
2971 (i386_ymm_type): Fix field names.
2972
7a4e8e7d
TBA
29732020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2974
2975 * breakpoint.c: Fix typo in the help message of the
2976 "set breakpoint condition-evaluation" command.
2977
cf4ac4be
KR
29782020-09-10 Kamil Rytarowski <n54@gmx.com>
2979
2980 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2981 * (nbsd_nat_target::pid_to_exec_file)
2982 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2983 (nbsd_nat_target::post_startup_inferior)
2984 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2985 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2986 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2987 * (nbsd_thread_lister): Remove.
2988
f404573e
KR
29892020-09-10 Kamil Rytarowski <n54@gmx.com>
2990
2991 * fork-inferior.c (startup_inferior): Avoid double free.
2992
1ccb2c17
KR
29932020-09-10 Kamil Rytarowski <n54@gmx.com>
2994
2995 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2996 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2997
feedfcc7
KR
29982020-09-10 Kamil Rytarowski <n54@gmx.com>
2999
3000 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3001 * netbsd-nat.c: Include <sys/ptrace.h>.
3002 * (netbsd_nat::enable_proc_events): Add.
3003
c489f8c6
KR
30042020-09-10 Kamil Rytarowski <n54@gmx.com>
3005
3006 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3007 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3008 (netbsd_nat::for_each_thread): Add.
3009 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3010 "gdbsupport/common-debug.h".
3011 * (netbsd_nat::netbsd_thread_lister)
3012 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3013 (netbsd_nat::for_each_thread): Add.
3014
330662f6
KR
30152020-09-10 Kamil Rytarowski <n54@gmx.com>
3016
3017 * netbsd-nat.h: Include <unistd.h>.
3018 * (netbsd_nat::pid_to_exec_file): Add.
3019 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3020 * (netbsd_nat::pid_to_exec_file) Add.
3021
70b67307
KR
30222020-09-10 Kamil Rytarowski <n54@gmx.com>
3023
3024 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3025
99cf6da6
KR
30262020-09-10 Kamil Rytarowski <n54@gmx.com>
3027
3028 * netbsd-nat.h: New file.
3029 * netbsd-nat.c: Likewise.
3030
1b788fb6
TT
30312020-09-09 Tom Tromey <tromey@adacore.com>
3032
3033 * ada-lang.c (remove_extra_symbols): Do not increment when
3034 removing an element
3035
03b0a45f
TT
30362020-09-08 Tom Tromey <tromey@adacore.com>
3037
3038 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3039
3cae4447
TT
30402020-09-08 Tom Tromey <tromey@adacore.com>
3041
3042 PR win32/25302:
3043 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3044 (gdb_bfd_init_data): New function.
3045 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3046
7f08fd51
TBA
30472020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3048
3049 * infrun.c (fetch_inferior_event): Use
3050 `switch_to_target_no_thread` to switch the target.
3051
3e6ff933
TT
30522020-09-06 Tom Tromey <tom@tromey.com>
3053
3054 * symfile.h (dwarf2_free_objfile): Don't declare.
3055
e56798df
AKS
30562020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3057
3058 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3059 to match 16 byte real/complex type generated by Flang compiler.
3060
8f5c6526
TV
30612020-09-03 Tom de Vries <tdevries@suse.de>
3062
3063 PR breakpoint/26546
3064 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3065 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3066
c5065df0
SM
30672020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3068
3069 * maint.c (index_digits): New function.
3070 (struct maint_print_section_data): Remove.
3071 (print_bfd_section_info): Remove print_data parameter, add arg
3072 and index_digits.
3073 (print_objfile_section_info): Likewise.
3074 (print_bfd_section_info_maybe_relocated): Likewise (plus
3075 objfile).
3076 (maintenance_info_sections): Adjust calls.
3077
02c6f3f1
TT
30782020-09-02 Tom Tromey <tromey@adacore.com>
3079
3080 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3081 for null pointers.
3082 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3083
ef5e5b0b
SM
30842020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3085
3086 * bcache.h (struct bcache) <insert>: Change type of `added` to
3087 pointer to bool.
3088 * bcache.c (bcache::insert): Likewise.
3089 * gdbtypes.c (check_types_worklist): Adjust.
3090 * psymtab.c (add_psymbol_to_bcache): Adjust.
3091
973695d6
KB
30922020-08-31 Kevin Buettner <kevinb@redhat.com>
3093
3094 * corelow.c (unordered_set): Include.
3095 (class core_target): Add field 'm_core_unavailable_mappings'.
3096 (core_target::build_file_mappings): Print only one warning
3097 per inaccessible file. Add unavailable/broken mappings
3098 to m_core_unavailable_mappings.
3099 (core_target::xfer_partial): Call...
3100 (core_target::xfer_memory_via_mappings): New method.
3101
264fc0e2
SM
31022020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3103
3104 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3105 type to bool.
3106
2de01bdb
SM
31072020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3108
3109 * dwarf2/read.c (struct field_info): Fix indentation.
3110
f3bd50f1
SM
31112020-08-31 Simon Marchi <simon.marchi@efficios.com>
3112
3113 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3114 ordering in comment.
3115 * frame.c (frame_id_eq): Fix indentation.
3116
22b9b4b0
SL
31172020-08-31 Scott Linder <scott@scottlinder.com>
3118 Simon Marchi <simon.marchi@efficios.com>
3119
3120 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3121 inline frame ids in outer frame.
3122
84154d16
SM
31232020-08-31 Simon Marchi <simon.marchi@efficios.com>
3124
3125 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3126 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3127 (outer_frame_id): Use FID_STACK_OUTER instead of
3128 FID_STACK_INVALID.
3129 (frame_id_p): Don't check for outer_frame_id.
3130
8efaf6b3
SM
31312020-08-31 Simon Marchi <simon.marchi@efficios.com>
3132
3133 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3134 regnum/frame in value. Call allocate_value_lazy.
3135 * frame.c (frame_unwind_register_value): Use
3136 val_print_not_saved.
3137
fe1fe7ea
SM
31382020-08-31 Simon Marchi <simon.marchi@efficios.com>
3139
3140 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3141
f7c7700d
PA
31422020-08-29 Pedro Alves <pedro@palves.net>
3143
3144 * progspace.c (print_program_space): Use all_inferiors. Switch to
3145 the inferior before calling target_pid_to_str.
3146
e0814aae
TT
31472020-08-28 Tom Tromey <tom@tromey.com>
3148
3149 * xcoffread.c (xcoff_end_psymtab): Update comment.
3150 * dbxread.c (dbx_end_psymtab): Update comment.
3151
626d2320
TV
31522020-08-28 Tom de Vries <tdevries@suse.de>
3153
3154 PR breakpoint/26544
3155 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3156 event_location.
3157 (create_breakpoint): Same.
3158 (base_breakpoint_decode_location): Same.
3159 (bkpt_create_sals_from_location): Same.
3160 (bkpt_decode_location): Same.
3161 (bkpt_probe_create_sals_from_location): Same.
3162 (bkpt_probe_decode_location): Same.
3163 (tracepoint_create_sals_from_location): Same.
3164 (tracepoint_decode_location): Same.
3165 (tracepoint_probe_decode_location): Same.
3166 (strace_marker_create_sals_from_location): Same.
3167 (strace_marker_decode_location): Same.
3168 (create_sals_from_location_default): Same.
3169 (decode_location_default): Same.
3170 * breakpoint.h (struct breakpoint_ops): Same.
3171 (create_breakpoint): Same.
3172 * linespec.h (decode_line_full): Same.
3173 * linespec.c (decode_line_full): Same. Throw error if
3174 result.size () == 0.
3175
df631783
PA
31762020-08-27 Pedro Alves <pedro@palves.net>
3177
3178 PR gdb/26524
3179 * breakpoint.c (until_break_fsm) <location_breakpoint,
3180 caller_breakpoint>: Delete fields.
3181 <breakpoints>: New field.
3182 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3183 two individual breakpoints.
3184 (until_break_fsm::should_stop): Loop over breakpoints in the
3185 breakpoint vector.
3186 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3187 vector.
3188 (until_break_command): Handle location expanding into multiple
3189 sals.
3190
b2b38aa4
PA
31912020-08-27 Pedro Alves <pedro@palves.net>
3192
3193 PR gdb/26523
3194 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3195 bp_until breakpoints user-specified locations. Update intro
3196 comment.
3197
b886559f
SM
31982020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3199
3200 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3201 gdb_bfd_sections): New.
3202 * maint.c (print_bfd_section_info): Change param type to
3203 maint_print_section_data.
3204 (print_objfile_section_info): Likewise.
3205 (print_bfd_section_info_maybe_relocated): Likewise.
3206 (maintenance_info_sections): Use gdb_bfd_sections.
3207
4c6e63bf
SV
32082020-08-25 Shahab Vahedi <shahab@synopsys.com>
3209
3210 * MAINTAINERS: Add ARC target and maintainer.
3211
8d7f0635
AK
32122020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3213
3214 * configure.tgt: ARC support for GNU/Linux.
3215 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3216 * arc-linux-tdep.c: New file.
3217 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3218 * arc-tdep.c (arc_write_pc): Use it.
3219
fdd8731b
SV
32202020-08-25 Shahab Vahedi <shahab@synopsys.com>
3221
3222 * arc-tdep.c (arc_check_for_hardware_loop): New.
3223 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3224
22459524
SV
32252020-08-25 Shahab Vahedi <shahab@synopsys.com>
3226
3227 * arc-tdep.h: Include "gdbarch.h".
3228
995d3a19
SV
32292020-08-25 Shahab Vahedi <shahab@synopsys.com>
3230
3231 * arch/arc.h
3232 (arc_gdbarch_features): New class to stir the selection of target XML.
3233 (arc_create_target_description): Use FEATURES to choose XML target.
3234 (arc_lookup_target_description): Use arc_create_target_description
3235 to create _new_ target descriptions or return the already created
3236 ones if the FEATURES is the same.
3237 * arch/arc.c: Implementation of prototypes described above.
3238 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3239 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3240 * arc-tdep.c (*_feature_name): Make feature names consistent.
3241 (arc_register_feature): A new struct to hold information about
3242 registers of a particular target/feature.
3243 (arc_check_tdesc_feature): Check if XML provides registers in
3244 compliance with ARC_REGISTER_FEATURE structs.
3245 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3246 (determine_*_reg_feature_set): Which feature name to look for.
3247 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3248 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3249 to expected ISA enums to be used in arc_gdbarch_features structs.
3250 * features/Makefile (FEATURE_XMLFILES): Add new files.
3251 * gdb/features/arc/v1-aux.c: New file.
3252 * gdb/features/arc/v1-aux.xml: Likewise.
3253 * gdb/features/arc/v1-core.c: Likewise.
3254 * gdb/features/arc/v1-core.xml: Likewise.
3255 * gdb/features/arc/v2-aux.c: Likewise.
3256 * gdb/features/arc/v2-aux.xml: Likewise.
3257 * gdb/features/arc/v2-core.c: Likewise.
3258 * gdb/features/arc/v2-core.xml: Likewise.
3259 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3260
3945d2d7
GM
32612020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3262 Andrew Burgess <andrew.burgess@embecosm.com>
3263
3264 PR m2/26372
fc5d6901 3265 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
3266 an assert. Remove single element array indexing pattern as the
3267 MULTI_SUBSCRIPT support will handle this case too.
3268
2677f2d3
SM
32692020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3270
3271 * value.h (valprint_check_validity): Move declaration from
3272 here...
3273 * valprint.h (valprint_check_validity): ... to here.
3274
c426fddb
SM
32752020-08-24 Simon Marchi <simon.marchi@efficios.com>
3276
3277 * debug.h: New file.
3278 * debug.c (debug_prefixed_vprintf): New function.
3279 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3280 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3281
1eb8556f
SM
32822020-08-24 Simon Marchi <simon.marchi@efficios.com>
3283
3284 * infrun.h (infrun_debug_printf_1): New function declaration.
3285 (infrun_debug_printf): New macro.
3286 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3287 throughout.
3288 (infrun_debug_printf): New function.
3289 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3290 (handle_jit_event): Likewise.
3291
b8fff44e
MW
32922020-08-21 Mark Wielaard <mark@klomp.org>
3293
3294 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3295
d19c3068
SM
32962020-08-22 Simon Marchi <simon.marchi@efficios.com>
3297
3298 * frame.c (enum class frame_id_status): New.
3299 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3300 (fprintf_frame): Update.
3301 (compute_frame_id): Set frame id status to "computing" on entry.
3302 Set it back to "not_computed" on failure and to "computed" on
3303 success.
3304 (get_frame_id): Assert the frame id is not being computed.
3305 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3306 (create_new_frame): Likewise.
3307 (frame_cleanup_after_sniffer): Update assert.
3308
b70e516e
SM
33092020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3310
3311 * regcache.c (pid_ptid_regcache_map): New type.
3312 (target_ptid_regcache_map): Remove.
3313 (target_pid_ptid_regcache_map): New type.
3314 (regcaches): Change type to target_pid_ptid_regcache_map.
3315 (get_thread_arch_aspace_regcache): Update.
3316 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3317 case.
3318 (regcaches_size): Update.
3319 (regcache_count): Update.
3320 (registers_changed_ptid_target_pid_test): New.
3321 (_initialize_regcache): Register new test.
3322
cdd9148a
SM
33232020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3324
3325 * regcache.c (regcache_count): New.
3326 (struct regcache_test_data): New.
3327 (regcache_test_data_up): New.
3328 (populate_regcaches_for_test): New.
3329 (regcaches_test): Remove.
3330 (get_thread_arch_aspace_regcache_test): New.
3331 (registers_changed_ptid_all_test): New.
3332 (registers_changed_ptid_target_test): New.
3333 (registers_changed_ptid_target_ptid_test): New.
3334 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3335 (_initialize_regcache): Register new tests.
3336
dd125343
SM
33372020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3338
3339 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3340 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3341 gdbarch and aspace parameter. Use current inferior's aspace.
3342 Validate regcache's arch value.
3343 (regcaches_test): Update.
3344
3ee93972
SM
33452020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3346
3347 * regcache.c (regcaches_test): Call registers_changed.
3348
33bf4c5c
TBA
33492020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3350
3351 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3352
c2fd7fae
AKS
33532020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3354
3355 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3356 to find the end of prologue for flang compiled binaries.
3357 * arm-tdep.c (arm_skip_prologue): Likewise.
3358 * i386-tdep.c (i386_skip_prologue): Likewise.
3359 * producer.c (producer_is_llvm): New function.
3360 (producer_parsing_tests): Added new tests for clang/flang.
3361 * producer.h (producer_is_llvm): New declaration.
3362
9327494e
SM
33632020-08-18 Simon Marchi <simon.marchi@efficios.com>
3364
3365 * linux-nat.c (linux_nat_debug_printf): New function.
3366 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3367
d138725a
AM
33682020-08-18 Aaron Merey <amerey@redhat.com>
3369
3370 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3371 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3372 (CLIBS): Add DEBUGINFOD_LIBS.
3373
f9b11e6b
ST
33742020-08-17 Sergei Trofimovich <siarheit@google.com>
3375
3376 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3377 'gdbarch_num_regs'.
3378
3ae7ab99
TT
33792020-08-17 Tom Tromey <tromey@adacore.com>
3380
3381 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3382 ada_get_decoded_value returns NULL.
3383
b017825f
TT
33842020-08-17 Tom Tromey <tromey@adacore.com>
3385
3386 * python/py-inferior.c (infpy_search_memory): Use
3387 gdb_py_object_from_ulongest.
3388 * python/py-infevents.c (create_inferior_call_event_object)
3389 (create_memory_changed_event_object): Use
3390 gdb_py_object_from_ulongest.
3391 * python/py-linetable.c (ltpy_entry_get_pc): Use
3392 gdb_py_object_from_ulongest.
3393
7635cf79
SM
33942020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3395
3396 * loc.c (class symbol_needs_eval_context): Fix indentation.
3397
f54be24b
SM
33982020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3399
3400 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3401 bool.
3402
53d5a2a5
TV
34032020-08-17 Tom de Vries <tdevries@suse.de>
3404
3405 PR gdb/26393
3406 * gdbtypes.c (dump_dynamic_prop): New function.
3407 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3408
547ce8f0
TV
34092020-08-15 Tom de Vries <tdevries@suse.de>
3410
3411 PR backtrace/26390
3412 * stack.c (print_frame_args): Temporarily set the selected
3413 frame to FRAME while printing the frame's arguments.
3414
6ea815e7
PFC
34152020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3416
3417 PR breakpoints/26385
3418 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3419 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3420
6e562fa3
PFC
34212020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3422
3423 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3424 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3425 and >= to check return value instead of == -1 and != -1.
3426
d369b608
SM
34272020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3428
3429 * utils.h (class gdb_argv) <as_array_view>: New method.
3430 * utils.c (gdb_argv_as_array_view_test): New.
3431 (_initialize_utils): Register selftest.
3432 * maint.c (maintenance_selftest): Use the new method.
3433
b31488a3
KR
34342020-08-13 Kamil Rytarowski <n54@gmx.com>
3435
3436 * target.h (supports_dumpcore, dumpcore): New
3437 function declarations.
3438 * target.c (supports_dumpcore, dumpcore): New
3439 functions.
3440 * target-delegates.c: Rebuild.
3441 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3442 and target_dumpcore ().
3443
002a3166
AM
34442020-08-13 Aaron Merey <amerey@redhat.com>
3445
3446 * debuginfod-support.c: Replace global variables with user_data.
3447
ece5bc8a
SM
34482020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3449
3450 * maint.c (maintenance_selftest): Split args and pass array_view
3451 to run_tests.
3452
6d8a0a5e
LM
34532020-08-12 Luis Machado <luis.machado@linaro.org>
3454
3455 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3456 type's length.
3457 Use %s and pulongest to print the length.
3458
7cf663a9
PA
34592020-08-12 Pedro Alves <palves@redhat.com>
3460
3461 * NEWS: Move "Multi-target debugging support" item to the
3462 "Changes since GDB 9" section.
3463
27c7b875
PA
34642020-08-12 Pedro Alves <palves@redhat.com>
3465
3466 PR gdb/26336
3467 * progspace.c (program_space::remove_objfile): Invalidate the
3468 frame cache.
3469
1796a2a1
TV
34702020-08-11 Tom de Vries <tdevries@suse.de>
3471
3472 * MAINTAINERS: Mark ms1 as deleted.
3473
f8e3fe0d
LM
34742020-08-10 Luis Machado <luis.machado@linaro.org>
3475
3476 PR gdb/26310
3477
3478 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3479 act accordingly.
3480 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3481 movz/str/stur/stp skipping behavior.
3482
cc308722
LM
34832020-08-10 Luis Machado <luis.machado@linaro.org>
3484
3485 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3486 struct user_sve_header instead of struct sve_context.
3487
041d9819
SM
34882020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3489
3490 * read.h (dwarf2_fetch_die_loc_sect_off,
3491 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3492 `void *` parameter with function_view.
3493 * read.c (dwarf2_fetch_die_loc_sect_off,
3494 dwarf2_fetch_die_loc_cu_off): Likewise.
3495 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3496 (per_cu_dwarf_call): Adjust.
3497 (get_frame_address_in_block_wrapper): Remove.
3498 (indirect_synthetic_pointer): Adjust.
3499 (get_ax_pc): Remove.
3500 (dwarf2_compile_expr_to_ax): Adjust.
3501
38f8aa06
TV
35022020-08-08 Tom de Vries <tdevries@suse.de>
3503
3504 PR build/26344
3505 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3506 constructor.
3507 * regcache.c (get_thread_arch_aspace_regcache): Same.
3508
a52b3ae2
TT
35092020-08-07 Tom Tromey <tromey@adacore.com>
3510
3511 * ravenscar-thread.c
3512 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3513 New method.
3514 (ravenscar_thread_target::wait): Check
3515 runtime_initialized.
3516 (ravenscar_thread_target::prepare_to_store)
3517 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3518 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3519 (ravenscar_thread_target::stopped_by_watchpoint)
3520 (ravenscar_thread_target::stopped_data_address)
3521 (ravenscar_thread_target::core_of_thread): Use
3522 scoped_restore_current_thread and
3523 set_base_thread_from_ravenscar_task.
3524
0e29517d
TT
35252020-08-07 Tom Tromey <tromey@adacore.com>
3526
3527 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3528
592f9bd7
TT
35292020-08-07 Tom Tromey <tromey@adacore.com>
3530
3531 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3532 update_inferior_ptid before update_thread_list.
3533 (temporarily_change_regcache_ptid): New class.
3534 (ravenscar_thread_target::fetch_registers)
3535 (ravenscar_thread_target::store_registers)
3536 (ravenscar_thread_target::prepare_to_store): Use base thread when
3537 forwarding operation.
3538
39e2018a
TT
35392020-08-07 Tom Tromey <tromey@adacore.com>
3540
3541 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3542 "is_pid" case.
3543
2080266b
TT
35442020-08-07 Tom Tromey <tromey@adacore.com>
3545
3546 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3547 New methods.
3548 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3549 first.
3550 (ravenscar_thread_target::add_thread): Rename from
3551 ravenscar_add_thread.
3552 (ravenscar_thread_target::update_thread_list): Use a lambda.
3553 (ravenscar_thread_target::xfer_partial): New method.
3554
78c02f21
TT
35552020-08-07 Tom Tromey <tromey@adacore.com>
3556
3557 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3558 gdb::function_view.
3559 (iterate_over_live_ada_tasks): Change type of argument.
3560 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3561 of argument.
3562
d5d833af
TT
35632020-08-07 Tom Tromey <tromey@adacore.com>
3564
3565 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3566 Remove.
3567 (ravenscar_thread_target::extra_thread_info): Remove.
3568 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3569 defer to target beneath for non-Ravenscar threads.
3570
a8ac85bb
TT
35712020-08-07 Tom Tromey <tromey@adacore.com>
3572
3573 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3574 get_base_thread_from_ravenscar_task>: Now methods.
3575 <m_cpu_map>: New member.
3576 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3577 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3578 (ravenscar_thread_target::task_is_currently_active): Update.
3579 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3580 Now a method.
3581 (ravenscar_thread_target::add_active_thread): Put initial thread
3582 into the m_cpu_map.
3583
550ab58d
TT
35842020-08-07 Tom Tromey <tromey@adacore.com>
3585
3586 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3587 event_ptid.
3588
e9546579
TT
35892020-08-07 Tom Tromey <tromey@adacore.com>
3590
3591 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3592 runtime_initialized.
3593
3d4470e5
TT
35942020-08-07 Tom Tromey <tromey@adacore.com>
3595
3596 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3597 add_active_thread.
3598 (ravenscar_thread_target::add_active_thread): Now public.
3599 (ravenscar_inferior_created): Call add_active_thread after pushing
3600 the target.
3601
888bdb2b
SM
36022020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3603
3604 * regcache.c (ptid_regcache_map): New type.
3605 (target_ptid_regcache_map): New type.
3606 (regcaches): Change type to target_ptid_regcache_map.
3607 (get_thread_arch_aspace_regcache): Update to regcaches' new
3608 type.
3609 (regcache_thread_ptid_changed): Likewise.
3610 (registers_changed_ptid): Likewise.
3611 (regcaches_size): Likewise.
3612 (regcaches_test): Update.
3613 (regcache_thread_ptid_changed): Update.
3614 * regcache.h (regcache_up): New type.
3615 * gdbsupport/ptid.h (hash_ptid): New struct.
3616
b161a60d
SM
36172020-08-07 Simon Marchi <simon.marchi@efficios.com>
3618
3619 * observable.h (thread_ptid_changed): Add parameter
3620 `process_stratum_target *`.
3621 * infrun.c (infrun_thread_ptid_changed): Add parameter
3622 `process_stratum_target *` and use it.
3623 (selftests): New namespace.
3624 (infrun_thread_ptid_changed): New function.
3625 (_initialize_infrun): Register selftest.
3626 * regcache.c (regcache_thread_ptid_changed): Add parameter
3627 `process_stratum_target *` and use it.
3628 (regcache_thread_ptid_changed): New function.
3629 (_initialize_regcache): Register selftest.
3630 * thread.c (thread_change_ptid): Pass target to
3631 thread_ptid_changed observable.
3632
d2854d8d
CT
36332020-08-06 Caroline Tice <cmtice@google.com>
3634
fe4c3d43
SM
3635 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3636 (struct dwp_sections): Update field comments. Add loclists and
3637 rnglists fields.
3638 (struct virtual_v2_dwo_sections): Rename struct to
3639 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3640 size & offset fields for loclists and rnglists.
3641 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3642 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3643 skipping dummy type units.
3644 (create_dwp_hash_table): Update the large comment above the function to
3645 discuss Version 5 DWP files as well, with references. Update all the
3646 version checks in the function to check for version 5 as well. Add new
3647 section at the end to create dwp hash table for version 5.
3648 (create_dwp_v2_section): Rename function to
3649 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3650 Add V5 to error message text.
3651 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3652 into calls to create_dwp_v2_or_v5_section.
3653 (create_dwo_unit_in_dwp_v5): New function.
3654 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3655 check for version2; add else clause to handle version 5.
3656 (open_and_init_dwo_file): Add code to check dwarf version & only call
3657 create_debug_types_hash_table (with sections.types) if version is not 5;
3658 else call create_debug_type_hash_table, with sections.info.
3659 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3660 version 5.
3661 (dwarf2_locate_v5_dwp_sections): New function.
3662 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3663 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 3664
159ed7d9
SM
36652020-08-06 Simon Marchi <simon.marchi@efficios.com>
3666
3667 * regcache.h (class regcache): Remove friend
3668 registers_changed_ptid.
3669 <regcache_thread_ptid_changed>: Remove.
3670 <regcaches>: Remove.
3671 * regcache.c (regcache::regcaches): Rename to...
3672 (regcaches): ... this. Make static.
3673 (get_thread_arch_aspace_regcache): Update.
3674 (regcache::regcache_thread_ptid_changed): Rename to...
3675 (regcache_thread_ptid_changed): ... this. Update.
3676 (class regcache_access): Remove.
3677 (regcaches_test): Update.
3678 (_initialize_regcache): Update.
3679 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3680 <forward_list>.
3681
174981ae
SM
36822020-08-06 Simon Marchi <simon.marchi@efficios.com>
3683
3684 * regcache.h (class regcache) <current_regcache>: Rename to...
3685 <regcaches>: ... this. Move doc here.
3686 * regcache.c (regcache::current_regcache) Rename to...
3687 (regcache::regcaches): ... this. Move doc to header.
3688 (get_thread_arch_aspace_regcache): Update.
3689 (regcache::regcache_thread_ptid_changed): Update.
3690 (registers_changed_ptid): Update.
3691 (class regcache_access) <current_regcache_size>: Rename to...
3692 <regcaches_size>: ... this.
3693 (current_regcache_test): Rename to...
3694 (regcaches_test): ... this.
3695 (_initialize_regcache): Update.
3696
ed908db6
VC
36972020-08-06 Victor Collod <vcollod@nvidia.com>
3698
3699 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3700
b5582ab7
KB
37012020-08-05 Kevin Buettner <kevinb@redhat.com>
3702
3703 * corelow.c (core_target::build_file_mappings): Don't output
3704 null pathname in warning.
3705
ea946b86
SM
37062020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3707
3708 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3709 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3710 gdb.dwarf2/dw2-single-line-discriminators.exp,
3711 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3712
57d02173
TT
37132020-08-05 Tom Tromey <tromey@adacore.com>
3714
3715 PR rust/26197:
3716 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3717 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3718 Fix off-by-one and type size errors in ordinary case.
3719
5555c86d
TV
37202020-08-05 Tom de Vries <tdevries@suse.de>
3721
3722 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3723 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3724
97916bfe
SM
37252020-08-04 Simon Marchi <simon.marchi@efficios.com>
3726
3727 * frame.h (frame_id_p): Return bool.
3728 (frame_id_artificial_p): Return bool.
3729 (frame_id_eq): Return bool.
3730 (has_stack_frames): Return bool.
3731 (get_selected_frame): Fix typo in comment.
3732 (get_frame_pc_if_available): Return bool.
3733 (get_frame_address_in_block_if_available): Return bool.
3734 (get_frame_func_if_available): Return bool.
3735 (read_frame_register_unsigned): Return bool.
3736 (get_frame_register_bytes): Return bool.
3737 (safe_frame_unwind_memory): Return bool.
3738 (deprecated_frame_register_read): Return bool.
3739 (frame_unwinder_is): Return bool.
3740 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3741 bool.
3742 <this_id::p>: Likewise.
3743 <prev_p>: Likewise.
3744 (frame_stash_add): Return bool.
3745 (get_frame_id): Use bool.
3746 (frame_id_build_special) Use bool.
3747 (frame_id_build_unavailable_stack): Use bool.
3748 (frame_id_build): Use bool.
3749 (frame_id_p): Return bool, use true/false instead of 1/0.
3750 (frame_id_artificial_p): Likewise.
3751 (frame_id_eq): Likewise.
3752 (frame_id_inner): Likewise.
3753 (get_frame_func_if_available): Likewise.
3754 (read_frame_register_unsigned): Likewise.
3755 (deprecated_frame_register_read): Likewise.
3756 (get_frame_register_bytes): Likewise.
3757 (has_stack_frames): Likewise.
3758 (inside_main_func): Likewise.
3759 (inside_entry_func): Likewise.
3760 (get_frame_pc_if_available): Likewise.
3761 (get_frame_address_in_block_if_available): Likewise.
3762 (frame_unwinder_is): Likewise.
3763 (safe_frame_unwind_memory): Likewise.
3764 (frame_unwind_arch): Likewise.
3765
fedfee88
SM
37662020-08-04 Simon Marchi <simon.marchi@efficios.com>
3767
3768 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3769 type to cached_copy_status.
3770 (fprintf_frame): Adjust.
3771 (get_frame_func_if_available): Adjust.
3772 (frame_cleanup_after_sniffer): Adjust.
3773
6cfa9b59
MW
37742020-08-04 Mark Wielaard <mark@klomp.org>
3775
3776 * MAINTAINERS (Write After Approval): Update email address.
3777
66d6346b
SM
37782020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3779
3780 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3781 dynamic_prop::const_val.
3782
8a6d5e35
SM
37832020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3784
3785 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3786 dynamic_prop::kind.
3787
51d6067d
SM
37882020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3789
3790 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3791
b26e2ae7
JM
37922020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3793
3794 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3795
39791af2
JM
37962020-08-04 Weimin Pan <weimin.pan@oracle.com>
3797 Jose E. Marchesi <jose.marchesi@oracle.com>
3798
3799 * configure.tgt: Add entry for bpf-*-*.
3800 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3801 (ALLDEPFILES): Add bpf-tdep.c.
3802 * bpf-tdep.c: New file.
3803 * MAINTAINERS: Add bpf target and maintainer.
3804 * NEWS: Mention the support for the new target.
3805
521894aa
TV
38062020-08-04 Tom de Vries <tdevries@suse.de>
3807
3808 PR symtab/23270
3809 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3810 Error.
3811
5d6356e9
JB
38122020-08-03 John Baldwin <jhb@FreeBSD.org>
3813
3814 * syscalls/freebsd.xml: Regenerate.
3815
0cf82b81
JB
38162020-08-03 John Baldwin <jhb@FreeBSD.org>
3817
3818 * syscalls/update-freebsd.sh: Fix usage and year range.
3819
8f34b746
TV
38202020-08-03 Tom de Vries <tdevries@suse.de>
3821
3822 PR symtab/26333
3823 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3824 DW_LNE_lo_user/DW_LNE_hi_user range.
3825
5e500d33
SM
38262020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3827
3828 PR ada/26318
3829 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3830 kind.
3831
78319c15
TBA
38322020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3833
3834 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3835
4c55e970
TBA
38362020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3837
3838 * breakpoint.c (set_breakpoint_condition): Update the condition
3839 expressions after checking that the input condition string parses
3840 successfully and does not contain junk at the end.
3841
1e620590
TBA
38422020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3843
3844 * breakpoint.c (set_breakpoint_condition): Update the
3845 condition string after parsing the new condition successfully.
3846
c8693053
RO
38472020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3848
3849 * proc-api.c (_STRUCTURED_PROC): Don't define.
3850 * proc-events.c: Likewise.
3851 * proc-flags.c: Likewise.
3852 * proc-why.c: Likewise.
3853 * procfs.c: Likewise.
3854
3855 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3856 * configure, config.in: Regenerate.
3857
5a99adb8
TV
38582020-07-30 Tom de Vries <tdevries@suse.de>
3859
3860 PR build/26320
3861 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3862 m_red/m_green/m_blue in a union.
3863
8ba83e91
TV
38642020-07-29 Tom de Vries <tdevries@suse.de>
3865
3866 PR tdep/26280
3867 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3868
f75a0693
AB
38692020-07-28 Tom Tromey <tromey@adacore.com>
3870
3871 PR symtab/26270:
3872 * symtab.h (find_pc_partial_function_sym): Declare.
3873 * cli/cli-cmds.c (disassemble_command): Use
3874 find_pc_partial_function_sym. Check asm_demangle.
3875 * blockframe.c (cache_pc_function_sym): New global.
3876 (cache_pc_function_name): Remove.
3877 (clear_pc_function_cache): Update.
3878 (find_pc_partial_function_sym): New function, from
3879 find_pc_partial_function.
3880 (find_pc_partial_function): Rewrite using
3881 find_pc_partial_function_sym.
3882
16f3242c
TT
38832020-07-28 Tom Tromey <tromey@adacore.com>
3884
3885 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3886 help. Add usage.
3887
4888741a
TT
38882020-07-28 Tom Tromey <tromey@adacore.com>
3889
3890 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3891 <DW_OP_GNU_variable_value>: Cast to address type.
3892
4d46f402
KR
38932020-07-28 Kamil Rytarowski <n54@gmx.com>
3894
3895 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3896 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3897 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3898 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3899 (nbsd_get_siginfo_type): New.
3900 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3901 (_initialize_nbsd_tdep): New.
3902
d70f978b
L
39032020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3904
3905 PR binutils/26301
3906 * configure: Regenerated.
3907
377170fa
L
39082020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3909
3910 PR binutils/26301
3911 * configure: Regenerated.
3912
43d5901d
AB
39132020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3914
3915 * python/py-frame.c: Remove 'user-regs.h' include.
3916 (frapy_read_register): Rewrite to make use of
3917 gdbpy_parse_register_id.
3918 * python/py-registers.c (gdbpy_parse_register_id): New function,
3919 moved here from python/py-unwind.c. Updated the return type, and
3920 also accepts register descriptor objects.
3921 * python/py-unwind.c: Remove 'user-regs.h' include.
3922 (pyuw_parse_register_id): Moved to python/py-registers.c.
3923 (unwind_infopy_add_saved_register): Update to use
3924 gdbpy_parse_register_id.
3925 (pending_framepy_read_register): Likewise.
3926 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3927
14fa8fb3
AB
39282020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3929
3930 * python/py-registers.c: Add 'user-regs.h' include.
3931 (register_descriptor_iter_find): New function.
3932 (register_descriptor_iterator_object_methods): New static global
3933 methods array.
3934 (register_descriptor_iterator_object_type): Add pointer to methods
3935 array.
3936
ddce1758
JB
39372020-07-27 John Baldwin <jhb@FreeBSD.org>
3938
3939 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3940 for all architectures on FreeBSD 11.3 and later.
3941
a4089f52
TT
39422020-07-27 Tom Tromey <tromey@adacore.com>
3943
3944 * gcore.h (load_corefile): Don't declare.
3945
95420d30
TV
39462020-07-27 Tom de Vries <tdevries@suse.de>
3947
3948 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3949 * config.in: Regenerate.
3950 * configure: Regenerate.
3951
05a6b8c2
EZ
39522020-07-26 Eli Zaretskii <eliz@gnu.org>
3953
3954 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3955 ws2tcpip.h. When checking whether socklen_t type is defined, use
3956 ws2tcpip.h if it is available and sys/socket.h isn't.
3957 * configure: Regenerate.
3958 * config.in: Regenerate.
3959
e79eb02f
AB
39602020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3961
3962 PR fortran/23051
3963 PR fortran/26139
3964 * valops.c (value_ind): Pass address to
3965 readjust_indirect_value_type.
3966 * value.c (readjust_indirect_value_type): Make parameter
3967 non-const, and add extra address parameter. Resolve original type
3968 before using it.
3969 * value.h (readjust_indirect_value_type): Update function
3970 signature and comment.
3971
876518dd
TV
39722020-07-25 Tom de Vries <tdevries@suse.de>
3973
3974 PR symtab/26243
3975 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3976 entries.
3977
f6720b1c
AM
39782020-07-24 Aaron Merey <amerey@redhat.com>
3979
3980 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3981 * configure: Rebuild.
3982
513487e1
KB
39832020-07-23 Kevin Buettner <kevinb@redhat.com>
3984
3985 PR corefiles/26294
3986 * corelow.c (_initialize_corelow): Add period to help text
3987 for "maintenance print core-file-backed-mappings".
3988
e7bc9db8
PA
39892020-07-23 Pedro Alves <pedro@palves.net>
3990
3991 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3992 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3993 meanwhile.
3994 * frame.c (frame_cache_generation, get_frame_cache_generation):
3995 New.
3996 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3997 (get_prev_frame_if_no_cycle): On exception, don't touch
3998 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3999 * frame.h (get_frame_cache_generation): Declare.
4000
90fcc466
TV
40012020-07-23 Tom de Vries <tdevries@suse.de>
4002
4003 PR tui/26282
4004 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4005 New default constructor.
4006
78344df7
AB
40072020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4008
4009 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4010 exclude non-statement entries.
4011
b089853a
KB
40122020-07-22 Kevin Buettner <kevinb@redhat.com>
4013
4014 * NEWS (New commands): Mention new command
4015 "maintenance print core-file-backed-mappings".
4016
09c2f5d4
KB
40172020-07-22 Kevin Buettner <kevinb@redhat.com>
4018
4019 * corelow.c (gdbcmd.h): Include.
4020 (core_target::info_proc_mappings): New method.
4021 (get_current_core_target): New function.
4022 (maintenance_print_core_file_backed_mappings): New function.
4023 (_initialize_corelow): Add core-file-backed-mappings to
4024 "maint print" commands.
4025
9c5ec5c2 40262020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 4027
9c5ec5c2
KB
4028 * linux-tdep.c (dump_note_entry_p): New function.
4029 (linux_dump_mapping_p_ftype): New typedef.
4030 (linux_find_memory_regions_full): Add new parameter,
4031 should_dump_mapping_p.
4032 (linux_find_memory_regions): Adjust call to
4033 linux_find_memory_regions_full.
4034 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4035 call to linux_find_memory_regions_full.
4036
db082f59
KB
40372020-07-22 Kevin Buettner <kevinb@redhat.com>
4038
4039 * corelow.c (solist.h, unordered_map): Include.
4040 (class core_target): Add field m_core_file_mappings and
4041 method build_file_mappings.
4042 (core_target::core_target): Call build_file_mappings.
4043 (core_target::~core_target): Free memory associated with
4044 m_core_file_mappings.
4045 (core_target::build_file_mappings): New method.
4046 (core_target::xfer_partial): Use m_core_file_mappings
4047 for memory transfers.
4048 * linux-tdep.c (linux_read_core_file_mappings): New
4049 function.
4050 (linux_core_info_proc_mappings): Rewrite to use
4051 linux_read_core_file_mappings.
4052 (linux_init_abi): Register linux_read_core_file_mappings.
4053
7e183d27
KB
40542020-07-22 Kevin Buettner <kevinb@redhat.com>
4055
4056 * arch-utils.c (default_read_core_file_mappings): New function.
4057 * arch-utils.c (default_read_core_file_mappings): Declare.
4058 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4059 * gdbarch.h, gdbarch.c: Regenerate.
4060
2735d421
KB
40612020-07-22 Kevin Buettner <kevinb@redhat.com>
4062
4063 PR corefiles/25631
4064 * corelow.c (core_target:xfer_partial): Revise
4065 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4066 case after first checking the stratum beneath the core
4067 target.
4068 (has_all_memory): Return true.
4069 * target.c (raw_memory_xfer_partial): Revise comment
4070 regarding use of has_all_memory.
4071
e56cb451
KB
40722020-07-22 Kevin Buettner <kevinb@redhat.com>
4073
4074 * exec.h (section_table_xfer_memory): Revise declaration,
4075 replacing section name parameter with an optional callback
4076 predicate.
4077 * exec.c (section_table_xfer_memory): Likewise.
4078 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4079 of section_table_xfer_memory.
4080
32fa152e
TT
40812020-07-22 Tom Tromey <tromey@adacore.com>
4082
4083 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4084 lookup_symbol_search_name.
4085
a67a1c41
AB
40862020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4087
4088 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4089 redundant local variable.
4090 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4091 reference, not pointer, update code accordingly.
4092
a7b4ff4f
SM
40932020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4094 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4095
4096 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4097 * jit.c (jit_breakpoint_re_set_internal): Use the
4098 `skip_jit_symbol_lookup` field.
4099
2340e834
SM
41002020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4101 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4102
4103 * jit.c (jit_read_descriptor): Define the descriptor address once,
4104 use twice.
4105 (jit_breakpoint_deleted): Move the declaration of the loop variable
4106 `iter` into the loop header.
4107 (jit_breakpoint_re_set_internal): Move the declaration of the local
4108 variable `objf_data` to the first point of definition.
4109 (jit_event_handler): Move the declaration of local variables
4110 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4111 Rename `objf` to `jited`.
4112
c1072906
SM
41132020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4114
4115 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4116 Remove.
4117 * jit.c (get_jiter_objfile_data): Update.
4118
c8474dc3
TBA
41192020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4120 Simon Marchi <simon.marchi@polymtl.ca>
4121
4122 * jit.c (struct jit_program_space_data): Remove.
4123 (jit_program_space_key): Remove.
4124 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4125 stuff.
4126 (get_jit_program_space_data): Remove.
4127 (jit_breakpoint_deleted): Iterate on all of the program space's
4128 objfiles.
4129 (jit_inferior_init): Likewise.
4130 (jit_breakpoint_re_set_internal): Likewise. Also change return
4131 type to void.
4132 (jit_breakpoint_re_set): Pass current_program_space to
4133 jit_breakpoint_re_set_internal.
4134
77208eb7
SM
41352020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4136
4137 * jit.h (struct jiter_objfile_data) <cached_code_address,
4138 jit_breakpoint>: Move to here from ...
4139 * jit.c (jit_program_space_data): ... here.
4140 (jiter_objfile_data::~jiter_objfile_data): Update.
4141 (jit_breakpoint_deleted): Update.
4142 (jit_breakpoint_re_set_internal): Update.
4143
8c1c720f
SM
41442020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4145
4146 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4147 checks.
4148 (jit_read_descriptor): Remove NULL check.
4149 (jit_event_handler): Add an assertion.
4150
0e74a041
SM
41512020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4152
4153 * jit.h (struct jit_objfile_data): Split into...
4154 (struct jiter_objfile_data): ... this ...
4155 (struct jited_objfile_data): ... and this.
4156 * objfiles.h (struct objfile) <jit_data>: Remove.
4157 <jiter_data, jited_data>: New fields.
4158 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4159 (jiter_objfile_data::~jiter_objfile_data): ... this.
4160 (get_jit_objfile_data): Rename to ...
4161 (get_jiter_objfile_data): ... this.
4162 (add_objfile_entry): Update.
4163 (jit_read_descriptor): Use get_jiter_objfile_data.
4164 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4165 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4166 (jit_inferior_exit_hook): Use objfile's jited_data field.
4167
238b5c9f
SM
41682020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4169
4170 * jit.h: Forward-declare `struct minimal_symbol`.
4171 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4172 constructor, destructor, and an objfile* field.
4173 * jit.c (jit_objfile_data): Remove.
4174 (struct jit_objfile_data): Migrate from here to jit.h.
4175 (jit_objfile_data::~jit_objfile_data): New destructor
4176 implementation with code moved from free_objfile_data.
4177 (free_objfile_data): Delete.
4178 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4179 (jit_find_objf_with_entry_addr): Ditto.
4180 (jit_inferior_exit_hook): Ditto.
4181 (_initialize_jit): Remove the call to
4182 register_objfile_data_with_cleanup.
4183 * objfiles.h (struct objfile) <jit_data>: New field.
4184
fe053b9e
TBA
41852020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4186
4187 * jit.h: Forward-declare `struct objfile`.
4188 (jit_event_handler): Add a second parameter, the JITer objfile.
4189 * jit.c (jit_read_descriptor): Change the signature to take the
4190 JITer objfile as an argument instead of the jit_program_space_data.
4191 (jit_inferior_init): Update the call to jit_read_descriptor.
4192 (jit_event_handler): Use the new JITer objfile argument when calling
4193 jit_read_descriptor.
4194 * breakpoint.c (handle_jit_event): Update the call to
4195 jit_event_handler to pass the JITer objfile.
4196
4cec0c66
JB
41972020-07-21 John Baldwin <jhb@FreeBSD.org>
4198
4199 * gdbarch.c: Regenerate.
4200 * gdbarch.h: Regenerate.
4201 * gdbarch.sh (handle_segmentation_fault): Remove method.
4202 * infrun.c (handle_segmentation_fault): Remove.
4203 (print_signal_received_reason): Remove call to
4204 handle_segmentation_fault.
4205
0e42f66a
JB
42062020-07-21 John Baldwin <jhb@FreeBSD.org>
4207
4208 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4209 Rename to sparc64_linux_report_signal_info and add siggnal
4210 argument.
4211 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4212 instead of sparc64_linux_handle_segmentation_fault.
4213
77bdfeb2
JB
42142020-07-21 John Baldwin <jhb@FreeBSD.org>
4215
4216 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4217 i386_linux_report_signal_info instead of
4218 i386_linux_handle_segmentation_fault.
4219 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4220 to i386_linux_report_signal_info and add siggnal argument.
4221 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4222 of i386_linux_handle_segmentation_fault.
4223 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4224 to i386_linux_report_signal_info and add siggnal argument.
4225
ad97bfc5
JB
42262020-07-21 John Baldwin <jhb@FreeBSD.org>
4227
4228 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4229 hook if present.
4230
272bb05c
JB
42312020-07-21 John Baldwin <jhb@FreeBSD.org>
4232
4233 * gdbarch.c: Regenerate.
4234 * gdbarch.h: Regenerate.
4235 * gdbarch.sh (report_signal_info): New method.
4236 * infrun.c (print_signal_received_reason): Invoke gdbarch
4237 report_signal_info hook if present.
4238
baf8791e
AB
42392020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4240
4241 * python/py-registers.c : Add 'unordered_map' include.
4242 (gdbpy_new_reggroup): Renamed to...
4243 (gdbpy_get_reggroup): ...this. Update to only create register
4244 group descriptors when needed.
4245 (gdbpy_reggroup_iter_next): Update.
4246
f7306dac
AB
42472020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4248
4249 * python/py-registers.c (gdbpy_register_object_data): New static
4250 global.
4251 (gdbpy_register_object_data_init): New function.
4252 (gdbpy_new_register_descriptor): Renamed to...
4253 (gdbpy_get_register_descriptor): ...this, and update to reuse
4254 existing register descriptors where possible.
4255 (gdbpy_register_descriptor_iter_next): Update.
4256 (gdbpy_initialize_registers): Register new gdbarch data.
4257
05c309a8
SM
42582020-07-21 Simon Marchi <simon.marchi@efficios.com>
4259
4260 * linux-nat.c (stopped_pids): Make static.
4261
d1fd641e
SM
42622020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4263
4264 PR ada/26235
4265 * gdbtypes.c (ada_discrete_type_low_bound,
4266 ada_discrete_type_high_bound): Handle undefined bounds.
4267
1de14d77
KR
42682020-07-21 Kamil Rytarowski <n54@gmx.com>
4269
4270 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4271 declaration.
4272 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4273 function.
4274
ed810cc7
JB
42752020-07-20 John Baldwin <jhb@FreeBSD.org>
4276
4277 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4278 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4279 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4280 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4281 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4282 method.
4283
ae5369e7
LC
42842020-07-20 Ludovic Courtès <ludo@gnu.org>
4285
4286 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4287 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4288 which are deprecated in Guile 3.0.
4289 * configure.ac (try_guile_versions): Add "guile-3.0".
4290 * configure (try_guile_versions): Regenerate.
4291 * NEWS: Update entry.
4292
68cf161c
LC
42932020-07-20 Ludovic Courtès <ludo@gnu.org>
4294 Doug Evans <dje@google.com>
4295
4296 PR gdb/21104
4297 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4298 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4299 USING_GUILE_BEFORE_2_2.
4300 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4301 Change type to 'scm_t_port_type *'.
4302 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4303 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4304 parameter and honor it. Update callers.
4305 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4306 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4307 functions.
4308 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4309 USING_GUILE_BEFORE_2_2.
4310 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4311 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4312 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4313 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4314 and 'SCM_PORT_TYPE'.
4315 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4316 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4317 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4318 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4319 [!USING_GUILE_BEFORE_2_2]: New functions.
4320 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4321 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4322 'gdbscm_memory_port_read'.
4323 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4324 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4325 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4326 function.
4327 (ioscm_init_memory_port): Remove.
4328 (ioscm_init_memory_port_stream): New function
4329 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4330 function.
4331 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4332 Return scm_from_uint (0).
4333 (gdbscm_set_memory_port_read_buffer_size_x)
4334 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4335 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4336 Return scm_from_uint (0).
4337 (gdbscm_set_memory_port_write_buffer_size_x)
4338 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4339 * configure.ac (try_guile_versions): Add "guile-2.2".
4340 * configure: Regenerate.
4341 * NEWS: Add entry.
4342
aee91db3
TT
43432020-07-18 Tom Tromey <tom@tromey.com>
4344
4345 * linux-nat.c (linux_multi_process): Remove.
4346 (linux_nat_target::supports_multi_process): Return true.
4347
0e267416
AB
43482020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4349
4350 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4351 (riscv_lookup_target_description): Return pointer out of
4352 unique_ptr.
4353 * target-descriptions.c (allocate_target_description): Add
4354 comment.
4355 (target_desc_deleter::operator()): Likewise.
4356 * target-descriptions.h (struct target_desc_deleter): Moved to
4357 gdbsupport/tdesc.h.
4358 (target_desc_up): Likewise.
4359
f80c8ec4
TT
43602020-07-17 Tom Tromey <tromey@adacore.com>
4361
4362 * linux-nat.c (linux_nat_target::supports_non_stop)
4363 (linux_nat_target::always_non_stop_p): Use "true".
4364 (linux_nat_target::supports_disable_randomization): Use "true" and
4365 "false".
4366
d0ce17d8
CT
43672020-07-16 Caroline Tice <cmtice@google.com>
4368
4369 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4370 (RNGLIST_HEADER_SIZE64): New constant definition.
4371 (struct dwop_section_names): Add rnglists_dwo.
4372 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4373 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4374 (struct dwo_sections): Add rnglists field.
4375 (read_attribut_reprocess): Add tag parameter.
4376 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4377 (cu_debug_rnglists_section): New function (decl & definition).
4378 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4379 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4380 die whose range is being checked; get rnglist section from
4381 cu_debug_rnglists_section, to get from either objfile or dwo file as
4382 appropriate. Add cases for DW_RLE_base_addressx,
4383 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4384 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4385 test inside if-condition and updating complaint message.
4386 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4387 dwarf2_rnglists_process.
4388 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4389 dwarf2_ranges_process.
4390 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4391 need_ranges_base and update comment appropriately. Also pass die tag
4392 to dwarf2_ranges_read.
4393 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4394 need_ranges_base and update comment appropriately. Also pass die tag
4395 to dwarf2_ranges_process.
4396 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4397 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4398 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4399 need_ranges_base and update comment appropriately. Also pass die tag
4400 to read_attribute_reprocess and dwarf2_ranges_read.
4401 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4402 and update function comment appropriately.
4403 (read_loclist_index): Call read_loclists_rnglists_header instead of
4404 read_loclist_header.
4405 (read_rnglist_index): New function.
4406 (read_attribute_reprocess): Add tag parameter. Add code for
4407 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4408 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4409
3dcc261c
AB
44102020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4411
4412 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4413 being resolved.
4414
ccb9eba6
AB
44152020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4416
4417 * arch-utils.c (show_architecture): Update formatting of messages.
4418
cf88be68
SM
44192020-07-12 Simon Marchi <simon.marchi@efficios.com>
4420
4421 * gdbtypes.h (struct type) <bounds>: Handle array and string
4422 types.
4423 * ada-lang.c (assign_aggregate): Use type::bounds on
4424 array/string type.
4425 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4426 * c-varobj.c (c_number_of_children): Likewise.
4427 (c_describe_child): Likewise.
4428 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4429 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4430 (f_type_print_base): Likewise.
4431 * f-valprint.c (f77_array_offset_tbl): Likewise.
4432 (f77_get_upperbound): Likewise.
4433 (f77_print_array_1): Likewise.
4434 * guile/scm-type.c (gdbscm_type_range): Likewise.
4435 * m2-typeprint.c (m2_array): Likewise.
4436 (m2_is_long_set_of_type): Likewise.
4437 * m2-valprint.c (get_long_set_bounds): Likewise.
4438 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4439 * python/py-type.c (typy_range): Likewise.
4440 * rust-lang.c (rust_internal_print_type): Likewise.
4441 * type-stack.c (type_stack::follow_types): Likewise.
4442 * valarith.c (value_subscripted_rvalue): Likewise.
4443 * valops.c (value_cast): Likewise.
4444
509971ae
SM
44452020-07-12 Simon Marchi <simon.marchi@efficios.com>
4446
4447 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4448 callers to use the equivalent accessor methods.
4449
107406b7
SM
44502020-07-12 Simon Marchi <simon.marchi@efficios.com>
4451
4452 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4453 (struct type) <bit_stride>: New method.
4454 (TYPE_BIT_STRIDE): Remove.
4455 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4456
bb789949
SM
44572020-07-12 Simon Marchi <simon.marchi@efficios.com>
4458
4459 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4460 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4461 callers to use the equivalent accessor methods instead.
4462
39498edb
SM
44632020-07-12 Simon Marchi <simon.marchi@efficios.com>
4464
4465 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4466 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4467 callers to use the equivalent accessor methods instead.
4468
3b606f38
SM
44692020-07-12 Simon Marchi <simon.marchi@efficios.com>
4470
4471 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4472 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4473 to use dynamic_prop::kind.
4474
064d9cb9
SM
44752020-07-12 Simon Marchi <simon.marchi@efficios.com>
4476
4477 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4478 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4479 to get the bound property's kind and check against
4480 PROP_UNDEFINED.
4481
5537ddd0
SM
44822020-07-12 Simon Marchi <simon.marchi@efficios.com>
4483
4484 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4485 all callers to use type::range_bounds followed by
4486 dynamic_prop::{low,high}.
4487
8c2e4e06
SM
44882020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4489
4490 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4491 const_val, set_const_val, baton, set_locexpr, set_loclist,
4492 set_addr_offset, variant_parts, set_variant_parts,
4493 original_type, set_original_type>: New methods.
4494 <kind>: Rename to...
4495 <m_kind>: ... this. Update all users to use the new methods
4496 instead.
4497 <data>: Rename to...
4498 <m_data>: ... this. Update all users to use the new methods
4499 instead.
4500
7c6f2712
SM
45012020-07-12 Simon Marchi <simon.marchi@efficios.com>
4502
4503 * gdbtypes.c (get_discrete_bounds): Return failure if
4504 the range type's bounds are not both defined and constant
4505 values.
4506 (get_array_bounds): Update comment. Remove undefined bound check.
4507
599088e3
SM
45082020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4509
4510 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4511 the type::bounds method directly.
4512
c4dfcb36
SM
45132020-07-12 Simon Marchi <simon.marchi@efficios.com>
4514
4515 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4516 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4517 are used to set the range type's bounds to use set_bounds.
4518
0a278aa7
PW
45192020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4520
4521 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4522
cce20f10
PA
45232020-07-10 Pedro Alves <pedro@palves.net>
4524
4525 * gdbthread.h (inferior_ref): Define.
4526 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4527 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4528 * thread.c
4529 (scoped_restore_current_thread::restore):
4530 Adjust to gdb::ref_ptr.
4531 (scoped_restore_current_thread::~scoped_restore_current_thread):
4532 Remove manual decref handling.
4533 (scoped_restore_current_thread::scoped_restore_current_thread):
4534 Adjust to use
4535 inferior_ref::new_reference/thread_info_ref::new_reference.
4536 Incref the thread before calling get_frame_id instead of after.
4537 Let TARGET_CLOSE_ERROR propagate.
4538
6d7aa592
PA
45392020-07-10 Pedro Alves <pedro@palves.net>
4540
4541 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4542 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4543 NOT_AVAILABLE_ERROR.
4544 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4545 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4546
b3e3a4c1
SM
45472020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4548 Pedro Alves <pedro@palves.net>
4549
4550 PR gdb/26199
4551 * infrun.c (threads_are_resumed_pending_p): Delete.
4552 (do_target_wait): Remove threads_are_executing and
4553 threads_are_resumed_pending_p checks from the inferior_matches
4554 lambda. Update comments.
4555
d6cc5d98
PA
45562020-07-10 Pedro Alves <pedro@palves.net>
4557
4558 PR gdb/26199
4559 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4560 executing threads.
4561
7d3badc6
PA
45622020-07-10 Pedro Alves <pedro@palves.net>
4563
4564 PR gdb/26199
4565 * infrun.c (handle_no_resumed): Handle multiple targets.
4566
42bd97a6
PA
45672020-07-10 Pedro Alves <pedro@palves.net>
4568
4569 PR gdb/26199
4570 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4571 target_is_async_p.
4572
43667cc6
PA
45732020-07-10 Pedro Alves <pedro@palves.net>
4574
4575 PR gdb/26199
4576 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4577 threads, not all threads.
4578
96118d11
PA
45792020-07-10 Pedro Alves <pedro@palves.net>
4580
4581 PR gdb/26199
4582 * remote.c (remote_target::open_1): Pass remote target pointer as
4583 data to create_async_event_handler.
4584 (remote_async_inferior_event_handler): Mark async event handler
4585 before returning if the remote target still has either pending
4586 events or unacknowledged notifications.
4587
54904d81
JB
45882020-07-10 John Baldwin <jhb@FreeBSD.org>
4589
4590 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4591 declaration.
4592 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4593 function.
4594
f37e5866
JB
45952020-07-09 John Baldwin <jhb@FreeBSD.org>
4596
4597 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4598 inferior_ptid.
4599
fc238d4a
JB
46002020-07-09 John Baldwin <jhb@FreeBSD.org>
4601
4602 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4603 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4604 AT_FREEBSD_PS_STRINGS.
4605
6e2469ff
HD
46062020-07-08 Hannes Domani <ssbssa@yahoo.de>
4607
4608 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4609 of debugfile path on Windows.
4610
d1076c41
JB
46112020-07-08 John Baldwin <jhb@FreeBSD.org>
4612
4613 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4614 argument to 'data'.
4615
15f3b077
TT
46162020-07-08 Tom Tromey <tromey@adacore.com>
4617
4618 * ada-lang.c (ada_exception_message_1): Use read_memory.
4619
9fc501fd
AB
46202020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4621
4622 PR python/22748
4623 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4624 special handling for inline frames.
4625 * findvar.c (value_of_register_lazy): Skip inline frames when
4626 creating lazy register values.
4627 * frame.c (frame_id_computed_p): Delete definition.
4628 * frame.h (frame_id_computed_p): Delete declaration.
4629
64cb3757
AB
46302020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4631
4632 * NEWS: Mention additions to Python API.
4633 * python/py-arch.c (archpy_register_groups): New function.
4634 (arch_object_methods): Add 'register_groups' method.
4635 * python/py-registers.c (reggroup_iterator_object): New struct.
4636 (reggroup_object): New struct.
4637 (gdbpy_new_reggroup): New function.
4638 (gdbpy_reggroup_to_string): New function.
4639 (gdbpy_reggroup_name): New function.
4640 (gdbpy_reggroup_iter): New function.
4641 (gdbpy_reggroup_iter_next): New function.
4642 (gdbpy_new_reggroup_iterator): New function
4643 (gdbpy_initialize_registers): Register new types.
4644 (reggroup_iterator_object_type): Define new Python type.
4645 (gdbpy_reggroup_getset): New static global.
4646 (reggroup_object_type): Define new Python type.
4647 * python/python-internal.h
4648
0f767f94
AB
46492020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4650
4651 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4652 * python/py-arch.c (archpy_registers): New function.
4653 (arch_object_methods): Add 'registers' method.
4654 * python/py-registers.c: New file.
4655 * python/python-internal.h
4656 (gdbpy_new_register_descriptor_iterator): Declare.
4657 (gdbpy_initialize_registers): Declare.
4658 * python/python.c (do_start_initialization): Call
4659 gdbpy_initialize_registers.
4660 * NEWS: Mention additions to the Python API.
4661
87dbc774
AB
46622020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4663
4664 * NEWS: Mention new Python API method.
4665 * python/py-unwind.c (pending_framepy_architecture): New function.
4666 (pending_frame_object_methods): Add architecture method.
4667
3bc98c0c
AB
46682020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4669
4670 * gdbarch.c: Regenerate.
4671 * gdbarch.h: Regenerate.
4672 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4673 (gdbarch_data): Use internal_error for the case where
4674 deprecated_set_gdbarch_data was originally needed.
4675 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4676 and use passed in obstack.
4677 (libunwind_frame_set_descr): Should no longer get back NULL from
4678 gdbarch_data.
4679 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4680 type.
4681 * user-regs.c (user_regs_init): Update parameters, and use passed
4682 in obstack.
4683 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4684 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4685
d8cc8af6
TV
46862020-07-06 Tom de Vries <tdevries@suse.de>
4687
4688 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4689 End-Of-Sequence in lte_is_less_than.
4690 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4691 "gdb: Don't reorder line table entries too much when sorting".
4692
947f7597
TV
46932020-07-06 Tom de Vries <tdevries@suse.de>
4694
4695 PR tui/26205
4696 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4697
1e7c1b22
TV
46982020-07-05 Tom de Vries <tdevries@suse.de>
4699
4700 PR build/26187
4701 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4702 std::uncaught_exceptions instead of deprecated
4703 std::uncaught_exception.
4704
a36158ec
SM
47052020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4706
4707 * macroexp.h (macro_stringify): Return
4708 gdb::unique_xmalloc_ptr<char>.
4709 * macroexp.c (macro_stringify): Likewise.
4710 * macrotab.c (fixup_definition): Update.
4711
14d960c8
SM
47122020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4713
4714 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4715 (lex_one_token): Update.
4716 * macroexp.c (struct macro_buffer) <release>: Return
4717 gdb::unique_xmalloc_ptr<char>.
4718 (macro_stringify): Update.
4719 (macro_expand): Update.
4720 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4721 * macroexp.h (macro_expand_next): Likewise.
4722
211d5b1c
SM
47232020-07-02 Simon Marchi <simon.marchi@efficios.com>
4724
4725 * macroexp.h (macro_lookup_ftype): Remove.
4726 (macro_expand, macro_expand_once, macro_expand_next): Remove
4727 lookup function parameters, add scope parameter.
4728 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4729 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4730 * macroscope.h (standard_macro_lookup): Change parameter type
4731 to macro_scope.
4732 * macroscope.c (standard_macro_lookup): Likewise.
4733 * c-exp.y (lex_one_token): Update.
4734 * macrocmd.c (macro_expand_command): Likewise.
4735 (macro_expand_once_command): Likewise.
4736
b1a35af2
SM
47372020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4738
4739 * inf-loop.c (inferior_event_handler): Remove client_data param.
4740 * inf-loop.h (inferior_event_handler): Likewise.
4741 * infcmd.c (step_1): Adjust.
4742 * infrun.c (proceed): Adjust.
4743 (fetch_inferior_event): Remove client_data param.
4744 (infrun_async_inferior_event_handler): Adjust.
4745 * infrun.h (fetch_inferior_event): Remove `void *` param.
4746 * linux-nat.c (handle_target_event): Adjust.
4747 * record-btrace.c (record_btrace_handle_async_inferior_event):
4748 Adjust.
4749 * record-full.c (record_full_async_inferior_event_handler):
4750 Adjust.
4751 * remote.c (remote_async_inferior_event_handler): Adjust.
4752
1cdf9e33
TT
47532020-07-01 Tom Tromey <tom@tromey.com>
4754
4755 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4756 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4757
32c1e210
TT
47582020-07-01 Tom Tromey <tom@tromey.com>
4759
4760 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4761 tui_gen_win_info.
4762 (tui_win_info::make_window): Merge with
4763 tui_gen_win_info::make_window.
4764 (tui_win_info::make_visible): Move from tui_gen_win_info.
4765 * tui/tui-win.c (tui_win_info::max_width): Move from
4766 tui_gen_win_info.
4767 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4768 type.
4769 <window_factory>: Likewise.
4770 * tui/tui-layout.c (tui_win_info::resize): Move from
4771 tui_gen_win_info.
4772 (make_standard_window): Change return type.
4773 (get_locator_window, tui_get_window_by_name): Likewise.
4774 (tui_layout_window::apply): Remove a cast.
4775 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4776 (struct tui_win_info): Merge with tui_gen_win_info.
4777 (struct tui_gen_win_info): Remove.
4778
a30cb6da
TT
47792020-07-01 Tom Tromey <tom@tromey.com>
4780
4781 * tui/tui-stack.h (struct tui_locator_window): Derive from
4782 tui_win_info.
4783 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4784 <can_box>: New method.
4785
1eb2161f
TT
47862020-07-01 Tom Tromey <tom@tromey.com>
4787
4788 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4789
7134f2eb
TT
47902020-07-01 Tom Tromey <tom@tromey.com>
4791
4792 * tui/tui-regs.c (tui_data_window::display_registers_from)
4793 (tui_data_window::display_registers_from)
4794 (tui_data_window::first_data_item_displayed)
4795 (tui_data_window::delete_data_content_windows): Update.
4796 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4797 Remove.
4798 (tui_data_window::check_register_values): Update.
4799 (tui_data_item_window::rerender): Add parameters. Update.
4800 (tui_data_item_window::refresh_window): Remove.
4801 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4802 virtual.
4803 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4804 tui_gen_win_info.
4805 <refresh_window, max_height, min_height>: Remove.
4806 <rerender>: Add parameters.
4807 <x, y, visible>: New members.
4808 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4809 <m_item_width>: New member.
4810
22b7b041
TT
48112020-07-01 Tom Tromey <tom@tromey.com>
4812
4813 * tui/tui-regs.c (tui_data_window::show_register_group)
4814 (tui_data_window::check_register_values): Update.
4815 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4816 from item_no.
4817
c9753adb
TT
48182020-07-01 Tom Tromey <tom@tromey.com>
4819
4820 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4821 useless "if".
4822
9ab26b4a
TT
48232020-07-01 Tom Tromey <tom@tromey.com>
4824
4825 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4826 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4827
e555083f
TT
48282020-07-01 Tom Tromey <tom@tromey.com>
4829
4830 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4831 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4832 (struct tui_line_or_address): Move from tui-data.h.
4833 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4834 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4835 (tui_cmd_window, tui_source_window_base, tui_source_window)
4836 (tui_disasm_window): Don't declare.
4837 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4838 to tui-winsource.h.
4839 (SINGLE_KEY): Move to tui-stack.c.
4840
7a02bab7
TT
48412020-07-01 Tom Tromey <tom@tromey.com>
4842
4843 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4844 std::string.
4845 * tui/tui-regs.c (class tab_expansion_file): New.
4846 (tab_expansion_file::write): New method.
4847 (tui_register_format): Change return type. Use
4848 tab_expansion_file.
4849 (tui_get_register, tui_data_window::display_registers_from)
4850 (tui_data_item_window::rerender): Update.
4851 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4852 * tui/tui-io.c (tui_expand_tabs): Remove.
4853
ea68593b
TT
48542020-07-01 Tom Tromey <tom@tromey.com>
4855
4856 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4857
a8caed5d
FS
48582020-07-01 Fangrui Song <maskray@google.com>
4859
4860 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4861
9cdf9820
AKS
48622020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4863
4864 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4865 forms for DW_AT_associated and DW_AT_allocated attributes,
4866 which is already checked in function attr_to_dynamic_prop.
4867
a1520ad8
TT
48682020-06-30 Tom Tromey <tromey@adacore.com>
4869
4870 * dwarf2/read.c (quirk_rust_enum): Correctly call
4871 alloc_rust_variant for default-less enum.
4872
5ac58899
TT
48732020-06-30 Tom Tromey <tromey@adacore.com>
4874
4875 PR build/26183:
4876 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4877 gdb::to_string.
4878
19b187a9
SM
48792020-06-29 Simon Marchi <simon.marchi@efficios.com>
4880
4881 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4882 * gdbarch.h: Re-generate.
4883
cd4c4c07
TT
48842020-06-28 Tom Tromey <tom@tromey.com>
4885
4886 * command.h (cmd_types): Remove.
4887 (cmd_type): Don't declare.
4888 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4889 typedef.
4890 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4891 * cli/cli-decode.c (cmd_type): Remove.
4892
05779d57
PA
48932020-06-27 Pedro Alves <palves@redhat.com>
4894
4895 * fork-child.c (prefork_hook): Adjust.
4896 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4897 Delete.
4898 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4899 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4900 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4901 Remove declarations.
4902 (struct inferior) <set_tty, tty>: New methods.
4903 (struct inferior) <terminal>: Rename to ...
4904 (struct inferior) <m_terminal>: ... this and make private.
4905 * main.c (captured_main_1): Adjust.
4906 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4907 (mi_cmd_inferior_tty_show): Adjust.
4908 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4909 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4910
1776e3e5
NA
49112020-06-26 Nick Alcock <nick.alcock@oracle.com>
4912
4913 * configure.ac: Add --enable-libctf: handle --disable-static
4914 properly.
4915 * acinclude.m4: sinclude ../config/enable.m4.
4916 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4917 (LIBCTF): Substitute in.
4918 (CTF_DEPS): New, likewise.
4919 (CLIBS): libctf needs symbols from libbfd: move earlier.
4920 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4921 flags.
4922 * ctfread.c: Surround in ENABLE_LIBCTF.
4923 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4924 * configure: Regenerate.
4925 * config.in: Likewise.
4926
58373b80
SM
49272020-06-25 Simon Marchi <simon.marchi@efficios.com>
4928
4929 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4930
277474ee
SM
49312020-06-25 Simon Marchi <simon.marchi@efficios.com>
4932
4933 * inferior.h (struct inferior) <terminal>: Change type to
4934 gdb::unique_xmalloc_ptr<char>.
4935 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4936 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4937 field, adjust to unique pointer.
4938 (get_inferior_io_terminal): Adjust to unique pointer.
4939
6d74da72
AB
49402020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4941
4942 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4943 registers, not just the known core set of registers.
4944
2e52d038
AB
49452020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4946
4947 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4948 fflags, frm, and fcsr registers.
4949 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4950 restore groups.
4951 (riscv_tdesc_unknown_reg): New function.
4952 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4953 tdesc_use_registers.
4954 * riscv-tdep.h (struct gdbarch_tdep): Add
4955 unknown_csrs_first_regnum, unknown_csrs_count,
4956 duplicate_fflags_regnum, duplicate_frm_regnum, and
4957 duplicate_fcsr_regnum fields.
4958
be64fd07
AB
49592020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4960
4961 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4962 callback, use the callback (when not null) to help number unknown
4963 registers.
4964 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4965 (tdesc_use_registers): Add extra parameter to declaration.
4966
3b9fce96
AB
49672020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4968
4969 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4970 in the file.
4971 (class riscv_pending_register_alias): Likewise.
4972 (riscv_register_feature::register_info): Change 'required_p' field
4973 to 'required', and change its type. Add 'check' member function.
4974 (riscv_register_feature::register_info::check): Define new member
4975 function.
4976 (riscv_xreg_feature): Change initialisation of 'required' field.
4977 (riscv_freg_feature): Likewise.
4978 (riscv_virtual_feature): Likewise.
4979 (riscv_csr_feature): Likewise.
4980 (riscv_check_tdesc_feature): Take extra parameter, the csr
4981 tdesc_feature, rewrite the function to use the new
4982 riscv_register_feature::register_info::check function.
4983 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4984
865bad26
AB
49852020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4986
4987 * features/Makefile: Remove all references to the deleted files
4988 below.
4989 * features/riscv/32bit-csr.c: Deleted.
4990 * features/riscv/32bit-csr.xml: Deleted.
4991 * features/riscv/64bit-csr.c: Deleted.
4992 * features/riscv/64bit-csr.xml: Deleted.
4993 * features/riscv/rebuild-csr-xml.sh: Deleted.
4994
ed69cbc8
AB
49952020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4996
4997 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4998 whitespace error for declaration of names member variable.
4999 (struct riscv_register_feature): Add new prefer_first_name member
5000 variable, and fix whitespace error in declaration of registers.
5001 (riscv_xreg_feature): Initialize prefer_first_name field.
5002 (riscv_freg_feature): Likewise.
5003 (riscv_virtual_feature): Likewise.
5004 (riscv_csr_feature): Likewise.
5005 (riscv_register_name): Expand on comments. Remove register name
5006 modifications for CSR and virtual registers.
5007
4445e8f5
AB
50082020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5009
5010 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5011 errors.
5012
767a879e
AB
50132020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5014
5015 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5016 riscv-opc.h.
5017 (class riscv_pending_register_alias): New class.
5018 (riscv_check_tdesc_feature): Take vector of pending aliases and
5019 populate it as appropriate.
5020 (riscv_setup_register_aliases): Delete.
5021 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5022 to riscv_check_tdesc_feature in all cases. Use the vector to
5023 create the register aliases.
5024
bb6e55f3
RO
50252020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5026
5027 * sol2-tdep.c (sol2_static_transform_name): Remove.
5028 (sol2_init_abi): Don't register it.
5029 * gdbarch.sh (static_transform_name): Remove.
5030 * gdbarch.c, gdbarch.h: Regenerate.
5031
5032 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5033 gdbarch_static_transform_name.
5034 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5035 * stabsread.c (define_symbol) <'X'>: Remove.
5036 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5037 handling.
5038 <'V'>: Likewise.
5039 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5040 <'S'>: Remove call to gdbarch_static_transform_name.
5041
c6d36836
RO
50422020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5043
5044 * procfs.c (procfs_pre_trace): New function.
5045 (procfs_target::create_inferior): Pass it to fork_inferior.
5046
a7e6196b
RO
50472020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5048
5049 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5050 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5051 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5052 sol2-tdep.o, sparc-sol2-tdep.o.
5053 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5054 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5055 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5056 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5057
d412e696
RO
50582020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5059
5060 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5061 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5062 Call sol2_init_abi.
5063 Remove calls to set_gdbarch_skip_solib_resolver,
5064 set_gdbarch_core_pid_to_str.
5065 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5066 (i386_sol2_static_transform_name): Remove.
5067 (i386_sol2_init_abi): Call sol2_init_abi.
5068 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5069 set_gdbarch_static_transform_name,
5070 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5071 Use sol2_sigtramp_p.
5072 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5073 (sol2_sigtramp_p): New function.
5074 (sol2_static_transform_name): New function.
5075 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5076 (sol2_init_abi): New function.
5077 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5078 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5079 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5080 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5081 (sparc_sol2_static_transform_name): Remove.
5082 (sparc32_sol2_init_abi): Call sol2_init_abi.
5083 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5084 set_gdbarch_static_transform_name,
5085 set_gdbarch_skip_solib_resolver,
5086 set_gdbarch_core_pid_to_str.
5087 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5088 (sparc_sol2_static_transform_name): Remove
5089 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5090 call sol2_sigtramp_p.
5091 (sparc64_sol2_init_abi): Call sol2_init_abi.
5092 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5093 set_gdbarch_static_transform_name,
5094 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5095
a8654e7d
PW
50962020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5097
5098 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5099 * exec.c (validate_exec_file): If from_tty, set both
5100 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5101 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5102 and from_tty, unconditionally ask a confirmation.
5103
caa7fd04
AB
51042020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5105
5106 * target-descriptions.c (tdesc_architecture_name): Protect against
5107 NULL pointer dereference.
5108 (maint_print_xml_tdesc_cmd): New function.
5109 (_initialize_target_descriptions): Register new 'maint print
5110 xml-tdesc' command and give it the filename completer.
5111 * NEWS: Mention new 'maint print xml-tdesc' command.
5112
fbf42f4e
AB
51132020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5114
5115 * target-descriptions.c (class tdesc_compatible_info): New class.
5116 (struct target_desc): Change type of compatible vector.
5117 (tdesc_compatible_p): Update for change in type of
5118 target_desc::compatible.
5119 (tdesc_compatible_info_list): New function.
5120 (tdesc_compatible_info_arch_name): New function.
5121 (tdesc_add_compatible): Update for change in type of
5122 target_desc::compatible.
5123 (print_c_tdesc::visit_pre): Likewise.
5124
20821f4e
AB
51252020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5126
5127 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5128 whitespace to underscore.
5129 (maint_print_c_tdesc_cmd): Use fake filename for target
5130 descriptions that came from the target.
5131 (_initialize_target_descriptions): Add filename command completion
5132 for 'maint print c-tdesc'.
5133
1fb5ee62
SM
51342020-06-23 Simon Marchi <simon.marchi@efficios.com>
5135
5136 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5137 lines.
5138
fc3ecb3e
SM
51392020-06-23 Simon Marchi <simon.marchi@efficios.com>
5140
5141 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5142 lines.
5143 (dwarf2_find_location_expression): Likewise.
5144 (call_site_parameter_matches): Likewise.
5145 (dwarf2_compile_expr_to_ax): Likewise.
5146 (disassemble_dwarf_expression): Likewise.
5147 (loclist_describe_location): Likewise.
5148
236ef034
PA
51492020-06-23 Pedro Alves <palves@redhat.com>
5150
5151 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5152 progspace-and-thread.h. Include scoped-mock-context.h instead.
5153 (register_to_value_test): Use scoped_mock_context.
5154 * regcache.c: Include "scoped-mock-context.h".
5155 (cooked_read_test): Don't error out if a target is already pushed.
5156 Use scoped_mock_context. Adjust.
5157 * scoped-mock-context.h: New file.
5158
39e7ecca
AB
51592020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5160
5161 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5162 initializer.
5163 (ada_language::is_string_type_p): New member function.
5164 * c-lang.c (c_language_data): Delete la_is_string_type_p
5165 initializer.
5166 (cplus_language_data): Likewise.
5167 (asm_language_data): Likewise.
5168 (minimal_language_data): Likewise.
5169 * d-lang.c (d_language_data): Likewise.
5170 * f-lang.c (f_is_string_type_p): Delete function, implementation
5171 moved to f_language::is_string_type_p.
5172 (f_language_data): Delete la_is_string_type_p initializer.
5173 (f_language::is_string_type_p): New member function,
5174 implementation from f_is_string_type_p.
5175 * go-lang.c (go_is_string_type_p): Delete function, implementation
5176 moved to go_language::is_string_type_p.
5177 (go_language_data): Delete la_is_string_type_p initializer.
5178 (go_language::is_string_type_p): New member function,
5179 implementation from go_is_string_type_p.
5180 * language.c (language_defn::is_string_type_p): Define new member
5181 function.
5182 (default_is_string_type_p): Make static, add comment copied from
5183 header file.
5184 (unknown_language_data): Delete la_is_string_type_p initializer.
5185 (unknown_language::is_string_type_p): New member function.
5186 (auto_language_data): Delete la_is_string_type_p initializer.
5187 (auto_language::is_string_type_p): New member function.
5188 * language.h (language_data): Delete la_is_string_type_p field.
5189 (language_defn::is_string_type_p): Declare new function.
5190 (default_is_string_type_p): Delete desclaration, move comment to
5191 definition.
5192 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5193 moved to m2_language::is_string_type_p.
5194 (m2_language_data): Delete la_is_string_type_p initializer.
5195 (m2_language::is_string_type_p): New member function,
5196 implementation from m2_is_string_type_p.
5197 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5198 initializer.
5199 * opencl-lang.c (opencl_language_data): Likewise.
5200 * p-lang.c (pascal_is_string_type_p): Delete function,
5201 implementation moved to pascal_language::is_string_type_p.
5202 (pascal_language_data): Delete la_is_string_type_p initializer.
5203 (pascal_language::is_string_type_p): New member function,
5204 implementation from pascal_is_string_type_p.
5205 * rust-lang.c (rust_is_string_type_p): Delete function,
5206 implementation moved to rust_language::is_string_type_p.
5207 (rust_language_data): Delete la_is_string_type_p initializer.
5208 (rust_language::is_string_type_p): New member function,
5209 implementation from rust_is_string_type_p.
5210 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5211 is_string_type_p.
5212
4ffc13fb
AB
52132020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5214
5215 * ada-lang.c (ada_language_data): Delete la_print_typedef
5216 initializer.
5217 (ada_language::print_typedef): New member function.
5218 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5219 (cplus_language_data): Likewise.
5220 (asm_language_data): Likewise.
5221 (minimal_language_data): Likewise.
5222 * d-lang.c (d_language_data): Likewise.
5223 * f-lang.c (f_language_data): Likewise.
5224 (f_language::print_typedef): New member function.
5225 * go-lang.c (go_language_data): Delete la_print_typedef
5226 initializer.
5227 * language.c (language_defn::print_typedef): Define member
5228 function.
5229 (unknown_language_data): Delete la_print_typedef initializer.
5230 (unknown_language::print_typedef): New member function.
5231 (auto_language_data): Delete la_print_typedef initializer.
5232 (auto_language::print_typedef): New member function.
5233 * language.h (language_data): Delete la_print_typedef field.
5234 (language_defn::print_typedef): Declare new member function.
5235 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5236 (default_print_typedef): Delete declaration.
5237 * m2-lang.c (m2_language_data): Delete la_print_typedef
5238 initializer.
5239 (m2_language::print_typedef): New member function.
5240 * objc-lang.c (objc_language_data): Delete la_print_typedef
5241 initializer.
5242 * opencl-lang.c (opencl_language_data): Likewise.
5243 * p-lang.c (pascal_language_data): Likewise.
5244 (pascal_language::print_typedef): New member function.
5245 * rust-lang.c (rust_print_typedef): Delete function,
5246 implementation moved to rust_language::print_typedef.
5247 (rust_language): Delete la_print_typedef initializer.
5248 (rust_language::print_typedef): New member function,
5249 implementation from rust_print_typedef.
5250 * typeprint.c (default_print_typedef): Delete.
5251
d711ee67
AB
52522020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5253
5254 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5255 (ada_language::printstr): New member function.
5256 * c-lang.c (c_language_data): Delete la_printstr initializer.
5257 (cplus_language_data): Likewise.
5258 (asm_language_data): Likewise.
5259 (minimal_language_data): Likewise.
5260 * d-lang.c (d_language_data): Likewise.
5261 * f-lang.c (f_printstr): Rename to f_language::printstr.
5262 (f_language_data): Delete la_printstr initializer.
5263 (f_language::printstr): New member function, implementation from
5264 f_printstr.
5265 * go-lang.c (go_language_data): Delete la_printstr initializer.
5266 * language.c (language_defn::printstr): Define new member
5267 function.
5268 (unk_lang_printstr): Delete.
5269 (unknown_language_data): Delete la_printstr initializer.
5270 (unknown_language::printstr): New member function.
5271 (auto_language_data): Delete la_printstr initializer.
5272 (auto_language::printstr): New member function.
5273 * language.h (language_data): Delete la_printstr field.
5274 (language_defn::printstr): Declare new member function.
5275 (LA_PRINT_STRING): Update call to printstr.
5276 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5277 (m2_language_data): Delete la_printstr initializer.
5278 (m2_language::printstr): New member function, implementation from
5279 m2_printstr.
5280 * objc-lang.c (objc_language_data): Delete la_printstr
5281 initializer.
5282 * opencl-lang.c (opencl_language_data): Likewise.
5283 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5284 (pascal_language_data): Delete la_printstr initializer.
5285 (pascal_language::printstr): New member function, implementation
5286 from pascal_printstr.
5287 * p-lang.h (pascal_printstr): Delete declaration.
5288 * rust-lang.c (rust_printstr): Update header comment.
5289 (rust_language_data): Delete la_printstr initializer.
5290 (rust_language::printstr): New member function.
5291
52b50f2c
AB
52922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5293
5294 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5295 (ada_language::printchar): New member function.
5296 * c-lang.c (c_language_data): Delete la_printchar initializer.
5297 (cplus_language_data): Likewise.
5298 (asm_language_data): Likewise.
5299 (minimal_language_data): Likewise.
5300 * d-lang.c (d_language_data): Likewise.
5301 * f-lang.c (f_printchar): Rename to f_language::printchar.
5302 (f_language_data): Delete la_printchar initializer.
5303 (f_language::printchar): New member function, implementation from
5304 f_printchar.
5305 * go-lang.c (go_language_data): Delete la_printchar initializer.
5306 * language.c (unk_lang_printchar): Delete.
5307 (language_defn::printchar): Define new member function.
5308 (unknown_language_data): Delete la_printchar initializer.
5309 (unknown_language::printchar): New member function.
5310 (auto_language_data): Delete la_printchar initializer.
5311 (auto_language::printchar): New member function.
5312 * language.h (language_data): Delete la_printchar field.
5313 (language_defn::printchar): Declare new member function.
5314 (LA_PRINT_CHAR): Update call to printchar.
5315 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5316 (m2_language::printchar): New member function.
5317 * objc-lang.c (objc_language_data): Delete la_printchar
5318 initializer.
5319 * opencl-lang.c (opencl_language_data): Likewise.
5320 * p-lang.c (pascal_language_data): Delete la_printchar
5321 initializer.
5322 (pascal_language::printchar): New member function.
5323 * rust-lang.c (rust_printchar): Rename to
5324 rust_language::printchar.
5325 (rust_language_data): Delete la_printchar initializer.
5326 (rust_language::printchar): New member function, implementation
5327 from rust_printchar.
5328
ec8cec5b
AB
53292020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5330
5331 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5332 (ada_language_data): Delete la_emitchar initializer.
5333 (ada_language::emitchar): New member function, implementation from
5334 emit_char.
5335 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5336 (cplus_language_data): Likewise.
5337 (asm_language_data): Likewise.
5338 (minimal_language_data): Likewise.
5339 * d-lang.c (d_language_data): Likewise.
5340 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5341 (f_language_data): Delete la_emitchar initializer.
5342 (f_language::emitchar): New member function, implementation from
5343 f_emit_char.
5344 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5345 * language.c (unk_lang_emit_char): Delete.
5346 (language_defn::emitchar): New member function definition.
5347 (unknown_language_data): Delete la_emitchar initializer.
5348 (unknown_language::emitchar): New member function.
5349 (auto_language_data): Delete la_emitchar initializer.
5350 (auto_language::emitchar): New member function.
5351 * language.h (language_data): Delete la_emitchar field.
5352 (language_defn::emitchar): New member field declaration.
5353 (LA_EMIT_CHAR): Update call to emitchar.
5354 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5355 (m2_language_data): Delete la_emitchar initializer.
5356 (m2_language::emitchar): New member function, implementation from
5357 m2_emit_char.
5358 * objc-lang.c (objc_language_data): Delete la_emitchar
5359 initializer.
5360 * opencl-lang.c (opencl_language_data): Likewise.
5361 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5362 (pascal_language_data): Delete la_emitchar initializer.
5363 (pascal_language::emitchar): New member function, implementation
5364 from pascal_emit_char.
5365 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5366 (rust_language_data): Delete la_emitchar initializer.
5367 (rust_language::emitchar): New member function, implementation
5368 from rust_emitchar.
5369
1bf9c363
AB
53702020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5371
5372 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5373 (ada_language_data): Delete la_post_parser initializer.
5374 (ada_language::post_parser): New member function.
5375 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5376 (cplus_language_data): Likewise.
5377 (asm_language_data): Likewise.
5378 (minimal_language_data): Likewise.
5379 * d-lang.c (d_language_data): Likewise.
5380 * f-lang.c (f_language_data): Likewise.
5381 * go-lang.c (go_language_data): Likewise.
5382 * language.c (unknown_language_data): Likewise.
5383 (auto_language_data): Likewise.
5384 * language.h (language_data): Delete la_post_parser field.
5385 (language_defn::post_parser): New member function.
5386 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5387 * objc-lang.c (objc_language_data): Likewise.
5388 * opencl-lang.c (opencl_language_data): Likewise.
5389 * p-lang.c (pascal_language_data): Likewise.
5390 * parse.c (parse_exp_in_context): Update call to post_parser.
5391 (null_post_parser): Delete definition.
5392 * parser-defs.h (null_post_parser): Delete declaration.
5393 * rust-lang.c (rust_language_data): Delete la_post_parser
5394 initializer.
5395
87afa652
AB
53962020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5397
5398 * ada-lang.c (parse): Rename to ada_language::parser.
5399 (ada_language_data): Delete la_parser initializer.
5400 (ada_language::parser): New member function, implementation from
5401 parse.
5402 * c-lang.c (c_language_data): Delete la_parser initializer.
5403 (cplus_language_data): Likewise.
5404 (asm_language_data): Likewise.
5405 (minimal_language_data): Likewise.
5406 * d-lang.c (d_language_data): Likewise.
5407 (d_language::parser): New member function.
5408 * f-lang.c (f_language_data): Delete la_parser initializer.
5409 (f_language::parser): New member function.
5410 * go-lang.c (go_language_data): Delete la_parser initializer.
5411 (go_language::parser): New member function.
5412 * language.c (unk_lang_parser): Delete.
5413 (language_defn::parser): Define new member function.
5414 (unknown_language_data): Delete la_parser initializer.
5415 (unknown_language::parser): New member function.
5416 (auto_language_data): Delete la_parser initializer.
5417 (auto_language::parser): New member function.
5418 * language.h (language_data): Delete la_parser field.
5419 (language_defn::parser): Declare new member function.
5420 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5421 (m2_language::parser): New member function.
5422 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5423 * opencl-lang.c (opencl_language_data): Likewise.
5424 * p-lang.c (pascal_language_data): Likewise.
5425 (pascal_language::parser): New member function.
5426 * parse.c (parse_exp_in_context): Update call to parser.
5427 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5428 (rust_language::parser): New member function.
5429
37825800
AB
54302020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5431
5432 * top.c (print_gdb_configuration): Print --with-python-libdir
5433 configuration value.
5434
5b860c93
PW
54352020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5436
5437 * NEWS: Mention change to the alias command.
5438
cf00cd6f
PW
54392020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5440
5441 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5442 (alias_command_completer)
5443 (make_alias_options_def_group): New functions.
5444 (alias_opts, alias_option_defs): New struct and array.
5445 (alias_usage_error): Update usage.
5446 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5447 Use option framework.
5448 (_initialize_cli_cmds): Update alias command help.
5449 Update aliases command help.
5450 (show_user):
5451 Add NULL for new default_args lookup_cmd argument.
5452 (valid_command_p): Rename to validate_aliased_command.
5453 Add NULL for new default_args lookup_cmd argument. Verify that the
5454 aliased_command has no default args.
5455 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5456 (lookup_cmd_1, lookup_cmd): New argument default_args.
5457 (add_alias_cmd):
5458 Add NULL for new default_args lookup_cmd argument.
5459 (print_help_for_command): Show default args under the layout
5460 alias some_alias = some_aliased_cmd some_alias_default_arg.
5461 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5462 xfree default_args in destructor.
5463 * cli/cli-script.c (process_next_line, do_define_command):
5464 Add NULL for new default_args lookup_cmd argument.
5465 * command.h: Declare new default_args argument in lookup_cmd
5466 and lookup_cmd_1.
5467 * completer.c (complete_line_internal_1):
5468 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5469 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5470 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5471 Likewise.
5472 * infcmd.c (_initialize_infcmd): Likewise.
5473 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5474 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5475 * python/py-param.c (add_setshow_generic): Likewise.
5476 * remote.c (_initialize_remote): Likewise.
5477 * top.c (execute_command): Prepend default_args if command has some.
5478 (set_verbose):
5479 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5480 * tracepoint.c (validate_actionline, encode_actions_1):
5481 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5482
bd920864
TBA
54832020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5484
5485 * jit.c (jit_read_descriptor): Use bool as the return type.
5486 (jit_breakpoint_re_set_internal): Use bool as the return type.
5487 Invert the return value logic; return true if the jit breakpoint
5488 has been successfully initialized.
5489 (jit_inferior_init): Update the call to
5490 jit_breakpoint_re_set_internal.
5491
f8098322
PA
54922020-06-22 Pedro Alves <palves@redhat.com>
5493
5494 PR gdb/25939
5495 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5496 Use the current inferior instead. Don't return
5497 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5498 wait again.
5499 * sol-thread.c (sol_thread_target::wait): Don't reference
5500 inferior_ptid.
5501 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5502 (sol_update_thread_list_callback): Use the current inferior's pid
5503 instead of inferior_ptid.
5504
196535a6
RO
55052020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5506
5507 * procfs.c: Cleanup many comments.
5508
5509 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5510 (AFTER_WATCHFLAG): Replace by value.
5511
5512 (MAIN_PROC_NAME_FORMAT): Inline ...
5513 (create_procinfo): ... here.
5514
5515 (procfs_debug_inferior): Remove SYS_exec handling.
5516 (syscall_is_exec): Likewise.
5517 (procfs_set_exec_trap): Likewise.
5518
5519 (syscall_is_lwp_exit): Inline in callers.
5520 (syscall_is_exit): Likewise.
5521 (syscall_is_exec): Likewise.
5522 (syscall_is_lwp_create): Likewise.
5523
5524 (invalidate_cache): Remove #if 0 code.
5525
5526 (make_signal_thread_runnable): Remove.
5527 (procfs_target::resume): Remove #if 0 code.
5528
cf6f3e86
RO
55292020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5530
5531 PR gdb/25939
5532 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5533 call ...
5534 (procfs_target::create_inferior): ... here.
5535
48e9cc84
PW
55362020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5537
5538 * exec.c (validate_exec_file): Ensure the build-id is up to
5539 date by calling reopen_exec_file (that checks file timestamp
5540 to decide to re-read the file).
5541
3922b302
PA
55422020-06-18 Pedro Alves <palves@redhat.com>
5543
5544 PR gdb/25412
5545 * gdbthread.h (delete_thread, delete_thread_silent)
5546 (find_thread_ptid): Update comments.
5547 * thread.c (current_thread_): New global.
5548 (is_current_thread): Move higher, and reimplement.
5549 (inferior_thread): Reimplement.
5550 (set_thread_exited): Use bool. Add assertions.
5551 (add_thread_silent): Simplify thread-reuse handling by always
5552 calling delete_thread.
5553 (delete_thread): Remove intro comment.
5554 (find_thread_ptid): Skip exited threads.
5555 (switch_to_thread_no_regs): Write to current_thread_.
5556 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5557 INFERIOR_PTID. Clear current_thread_.
5558
6dbdab44
PA
55592020-06-18 Pedro Alves <palves@redhat.com>
5560
5561 * aix-thread.c (pd_update): Use switch_to_thread.
5562
2da4b788
PA
55632020-06-18 Pedro Alves <palves@redhat.com>
5564
5565 * ravenscar-thread.c (ravenscar_thread_target): Update.
5566 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5567 (ravenscar_thread_target::add_active_thread): ... this. Don't
5568 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5569 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5570
50838d1b
PA
55712020-06-18 Pedro Alves <palves@redhat.com>
5572
5573 * nat/windows-nat.c (current_windows_thread): Remove.
5574 * nat/windows-nat.h (current_windows_thread): Remove.
5575 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5576 Adjust.
5577 (display_selectors): Adjust to fetch the current
5578 windows_thread_info based on inferior_ptid.
5579 (fake_create_process): No longer write to current_windows_thread.
5580 (windows_nat_target::get_windows_debug_event):
5581 Don't set inferior_ptid or current_windows_thread.
5582 (windows_nat_target::wait): Adjust to not rely on
5583 current_windows_thread.
5584 (do_initial_windows_stuff): Now a method of windows_nat_target.
5585 Switch to the last_ptid thread.
5586 (windows_nat_target::attach): Adjust.
5587 (windows_nat_target::detach): Use switch_to_no_thread instead of
5588 writing to inferior_ptid directly.
5589 (windows_nat_target::create_inferior): Adjust.
5590
31ce04e9
PA
55912020-06-18 Pedro Alves <palves@redhat.com>
5592
5593 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5594
1ee1a363
PA
55952020-06-18 Pedro Alves <palves@redhat.com>
5596
5597 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5598 after creating it, instead of writing to inferior_ptid. Don't
5599 write to inferior_ptid.
5600
6d350754
PA
56012020-06-18 Pedro Alves <palves@redhat.com>
5602
5603 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5604
5d971d48
PA
56052020-06-18 Pedro Alves <palves@redhat.com>
5606
5607 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5608 it, instead of writing to inferior_ptid.
5609
86e57d1b
PA
56102020-06-18 Pedro Alves <palves@redhat.com>
5611
5612 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5613 to inferior_ptid.
5614
f2e1c129
PA
56152020-06-18 Pedro Alves <palves@redhat.com>
5616
5617 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5618 instead of writing to inferior_ptid directly.
5619
60db1b85
PA
56202020-06-18 Pedro Alves <palves@redhat.com>
5621
5622 * corelow.c (core_target::close): Use switch_to_no_thread instead
5623 of writing to inferior_ptid directly.
5624 (add_to_thread_list, core_target_open): Use switch_to_thread
5625 instead of writing to inferior_ptid directly.
5626
fe7d6a8d
PA
56272020-06-18 Pedro Alves <palves@redhat.com>
5628
5629 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5630 inferior_ptid.
5631 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5632 inferior_ptid.
5633 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5634 inferior_ptid directly.
5635 (darwin_nat_target::init_thread_list): Switch to thread, instead
5636 of writing to inferior_ptid.
5637 (darwin_nat_target::attach): Don't write to inferior_ptid.
5638 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5639
975f8708
PA
56402020-06-18 Pedro Alves <palves@redhat.com>
5641
5642 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5643 thread.
5644 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5645 Instead use switch_to_thread.
5646 (gnu_nat_target::detach): Use switch_to_no_thread
5647 instead of writing to inferior_ptid directly. Used passed-in
5648 inferior instead of looking up the inferior by pid.
5649
1a204730
PA
56502020-06-18 Pedro Alves <palves@redhat.com>
5651
5652 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5653 inferior_ptid.
5654
ebe84f23
PA
56552020-06-18 Pedro Alves <palves@redhat.com>
5656
5657 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5658 inferior_ptid.
5659 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5660 thread.
5661 (nto_procfs_target::detach): Avoid referencing
5662 inferior_ptid. Use switch_to_no_thread instead of writing to
5663 inferior_ptid directly.
5664 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5665 instead of writing to inferior_ptid directly.
5666 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5667 to thread.
5668
191f02e5
PA
56692020-06-18 Pedro Alves <palves@redhat.com>
5670
5671 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5672 after creating it, instead of writing to inferior_ptid.
5673 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5674 to inferior_ptid directly.
5675 (gdbsim_target::wait): Don't write to inferior_ptid.
5676
0ac55310
PA
56772020-06-18 Pedro Alves <palves@redhat.com>
5678
5679 * remote.c (remote_target::remote_notice_new_inferior): Use
5680 switch_to_thread instead of writing to inferior_ptid directly.
5681 (remote_target::add_current_inferior_and_thread): Use
5682 switch_to_no_thread instead of writing to inferior_ptid directly.
5683 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5684 and switch_to_thread instead of using set_current_inferior or
5685 writing to inferior_ptid directly.
5686
5233f39b
PA
56872020-06-18 Pedro Alves <palves@redhat.com>
5688
5689 * tracectf.c (ctf_target_open): Switch to added thread instead of
5690 writing to inferior_ptid directly.
5691 (ctf_target::close): Use switch_to_no_thread instead of writing to
5692 inferior_ptid directly.
5693
087e161b
PA
56942020-06-18 Pedro Alves <palves@redhat.com>
5695
5696 * tracefile-tfile.c (tfile_target_open): Don't write to
5697 inferior_ptid directly, instead switch to added thread.
5698 (tfile_target::close): Use switch_to_no_thread instead of writing
5699 to inferior_ptid directly.
5700
7fb43e53
PA
57012020-06-18 Pedro Alves <palves@redhat.com>
5702
5703 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5704 (procfs_target::detach): Use switch_to_no_thread
5705 instead of writing to inferior_ptid directly.
5706 (do_attach): Change return type to void. Switch to the added
5707 thread.
5708 (procfs_target::create_inferior): Switch to the added thread.
5709 (procfs_do_thread_registers): Don't write to inferior_ptid.
5710
18493a00
PA
57112020-06-18 Pedro Alves <palves@redhat.com>
5712
5713 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5714 of writing to inferior_ptid.
5715 (scoped_restore_exited_inferior): Delete.
5716 (handle_vfork_child_exec_or_exit): Simplify using
5717 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5718 instead of writing to inferior_ptid.
5719 (THREAD_STOPPED_BY): Delete.
5720 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5721 (thread_stopped_by_hw_breakpoint): Delete.
5722 (save_waitstatus): Use
5723 scoped_restore_current_thread+switch_to_thread, and call
5724 target_stopped_by_watchpoint instead of
5725 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5726 instead of thread_stopped_by_sw_breakpoint, and
5727 target_stopped_by_hw_breakpoint instead of
5728 thread_stopped_by_hw_breakpoint.
5729 (handle_inferior_event)
5730 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5731 inferior_ptid directly, nor
5732 set_current_inferior/set_current_program_space. Use
5733 switch_to_thread / switch_to_inferior_no_thread instead.
5734
a0776b13
PA
57352020-06-18 Pedro Alves <palves@redhat.com>
5736
5737 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5738 instead of writing to inferior_ptid.
5739
6155c136
PA
57402020-06-18 Pedro Alves <palves@redhat.com>
5741
5742 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5743 added thread.
5744 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5745 to the added thread.
5746 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5747 instead of writing to inferior_ptid.
5748
c5316fc6
PA
57492020-06-18 Pedro Alves <palves@redhat.com>
5750
5751 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5752 (register_to_value_test): Mock a program_space too. Heap-allocate
5753 the address space. Don't write to inferior_ptid. Use
5754 switch_to_thread instead.
5755
8df01799
PA
57562020-06-18 Pedro Alves <palves@redhat.com>
5757
5758 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5759 Delete.
5760 (find_signalled_thread()): New, factored out from
5761 linux_make_corefile_notes and adjusted to handle exited threads.
5762 (linux_make_corefile_notes): Adjust to use the new
5763 find_signalled_thread.
5764
41792d68
PA
57652020-06-18 Pedro Alves <palves@redhat.com>
5766
5767 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5768 of saving/restoring inferior_ptid.
5769
612f258a
TT
57702020-06-17 Tom Tromey <tom@tromey.com>
5771
5772 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5773 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5774 declare.
5775 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5776
efb763a5
SM
57772020-06-15 Simon Marchi <simon.marchi@efficios.com>
5778
5779 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5780 of partial symtabs.
5781
2951f6c0
SM
57822020-06-17 Simon Marchi <simon.marchi@efficios.com>
5783
5784 * regformats/reg-arm.dat: Remove.
5785 * regformats/reg-bfin.dat: Remove.
5786 * regformats/reg-cris.dat: Remove.
5787 * regformats/reg-crisv32.dat: Remove.
5788 * regformats/reg-m32r.dat: Remove.
5789 * regformats/reg-tilegx.dat: Remove.
5790 * regformats/reg-tilegx32.dat: Remove.
5791
7d458ea5
SM
57922020-06-17 Simon Marchi <simon.marchi@efficios.com>
5793
5794 * features/Makefile (WHICH): Remove arm files.
5795 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5796 * regformats/arm/arm-with-neon.dat: Remove.
5797 * regformats/arm/arm-with-vfpv2.dat: Remove.
5798 * regformats/arm/arm-with-vfpv3.dat: Remove.
5799
3af96c0d
SM
58002020-06-17 Simon Marchi <simon.marchi@efficios.com>
5801
5802 * features/Makefile (XMLTOC): Remove rx.xml.
5803
b25e22fd
PA
58042020-06-17 Pedro Alves <palves@redhat.com>
5805
5806 * gdbthread.h (thread_control_state) <trap_expected> Update
5807 comments.
5808
a78a19b1
AB
58092020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5810
5811 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5812 ada_language::lookup_symbol_nonlocal.
5813 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5814 (ada_language::lookup_symbol_nonlocal): New member function,
5815 implementation from ada_lookup_symbol_nonlocal.
5816 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5817 initializer.
5818 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5819 initializer.
5820 (cplus_language::lookup_symbol_nonlocal): New member function.
5821 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5822 (minimal_language_data) Likewise.
5823 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5824 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5825 initializer.
5826 (d_language::lookup_symbol_nonlocal): New member function.
5827 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5828 initializer.
5829 (f_language::lookup_symbol_nonlocal): New member function.
5830 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5831 initializer.
5832 * language.c (unknown_language_data): Likewise.
5833 (auto_language_data): Likewise.
5834 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5835 field.
5836 (language_defn::lookup_symbol_nonlocal): New member function.
5837 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5838 initializer.
5839 * objc-lang.c (objc_language_data): Likewise.
5840 * opencl-lang.c (opencl_language_data): Likewise.
5841 * p-lang.c (pascal_language_data): Likewise.
5842 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5843 rust_language::lookup_symbol_nonlocal.
5844 (rust_language_data): Delete la_lookup_symbol_nonlocal
5845 initializer.
5846 (rust_language::lookup_symbol_nonlocal): New member function,
5847 implementation from rust_lookup_symbol_nonlocal.
5848 * symtab.c (lookup_symbol_aux): Update call to
5849 lookup_symbol_nonlocal.
5850 (basic_lookup_symbol_nonlocal): Rename to...
5851 (language_defn::lookup_symbol_nonlocal): ...this, and update
5852 header comment. Remove language_defn parameter, and replace with
5853 uses of `this'.
5854 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5855
ebe2334e
AB
58562020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5857
5858 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5859 initializer.
5860 (ada_language::value_print_inner): New member function.
5861 * c-lang.c (c_language_data): Delete la_value_print_inner
5862 initializer.
5863 (cplus_language_data): Likewise.
5864 (asm_language_data): Likewise.
5865 (minimal_language_data): Likewise.
5866 * d-lang.c (d_language_data): Likewise.
5867 (d_language::value_print_inner): New member function.
5868 * f-lang.c (f_language_data): Delete la_value_print_inner
5869 initializer.
5870 (f_language::value_print_inner): New member function.
5871 * f-lang.h (f_value_print_innner): Rename to...
5872 (f_value_print_inner): ...this (note spelling of 'inner').
5873 * f-valprint.c (f_value_print_innner): Rename to...
5874 (f_value_print_inner): ...this (note spelling of 'inner').
5875 * go-lang.c (go_language_data): Delete la_value_print_inner
5876 initializer.
5877 (go_language::value_print_inner): New member function.
5878 * language.c (language_defn::value_print_inner): Define new member
5879 function.
5880 (unk_lang_value_print_inner): Delete.
5881 (unknown_language_data): Delete la_value_print_inner initializer.
5882 (unknown_language::value_print_inner): New member function.
5883 (auto_language_data): Delete la_value_print_inner initializer.
5884 (auto_language::value_print_inner): New member function.
5885 * language.h (language_data): Delete la_value_print_inner field.
5886 (language_defn::value_print_inner): Delcare new member function.
5887 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5888 initializer.
5889 (m2_language::value_print_inner): New member function.
5890 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5891 initializer.
5892 * opencl-lang.c (opencl_language_data): Likewise.
5893 * p-lang.c (pascal_language_data): Likewise.
5894 (pascal_language::value_print_inner): New member function.
5895 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5896 initializer.
5897 (rust_language::value_print_inner): New member function.
5898 * valprint.c (do_val_print): Update call to value_print_inner.
5899
a1d1fa3e
AB
59002020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5901
5902 * ada-lang.c (ada_language_data): Delete la_value_print
5903 initializer.
5904 (ada_language::value_print): New member function.
5905 * c-lang.c (c_language_data): Delete la_value_print initializer.
5906 (cplus_language_data): Likewise.
5907 (asm_language_data): Likewise.
5908 (minimal_language_data): Likewise.
5909 * d-lang.c (d_language_data): Likewise.
5910 * f-lang.c (f_language_data): Likewise.
5911 * go-lang.c (go_language_data): Likewise.
5912 * language.c (unk_lang_value_print): Delete.
5913 (language_defn::value_print): Define new member function.
5914 (unknown_language_data): Delete la_value_print initializer.
5915 (unknown_language::value_print): New member function.
5916 (auto_language_data): Delete la_value_print initializer.
5917 (auto_language::value_print): New member function.
5918 * language.h (language_data): Delete la_value_print field.
5919 (language_defn::value_print): Declare new member function.
5920 (LA_VALUE_PRINT): Update call to value_print.
5921 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5922 * objc-lang.c (objc_language_data): Likewise.
5923 * opencl-lang.c (opencl_language_data): Likewise.
5924 * p-lang.c (pascal_language_data): Likewise.
5925 (pascal_language::value_print): New member function.
5926 * rust-lang.c (rust_language_data): Delete la_value_print
5927 initializer.
5928
f16a9f57
AB
59292020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5930
5931 * ada-lang.c (ada_watch_location_expression): Rename to
5932 ada_language::watch_location_expression.
5933 (ada_language_data): Delete la_watch_location_expression
5934 initializer.
5935 (ada_language::watch_location_expression): New member function,
5936 implementation from ada_watch_location_expression.
5937 * breakpoint.c (watch_command_1): Update call to
5938 watch_location_expression.
5939 * c-lang.c (c_watch_location_expression): Rename to
5940 language_defn::watch_location_expression.
5941 (c_language_data): Delete la_watch_location_expression
5942 initializer.
5943 (cplus_language_data): Likewise.
5944 (asm_language_data): Likewise.
5945 (minimal_language_data): Likewise.
5946 * c-lang.h (c_watch_location_expression): Delete declaration.
5947 * d-lang.c (d_language_data): Delete la_watch_location_expression
5948 initializer.
5949 * f-lang.c (f_language_data): Likewise.
5950 * go-lang.c (go_language_data): Likewise.
5951 * language.c (language_defn::watch_location_expression): Member
5952 function implementation from c_watch_location_expression.
5953 (unknown_language_data): Delete la_watch_location_expression
5954 initializer.
5955 (auto_language_data): Likewise.
5956 * language.h (language_data): Delete la_watch_location_expression
5957 field.
5958 (language_defn::watch_location_expression): Declare new member
5959 function.
5960 * m2-lang.c (m2_language_data): Delete
5961 la_watch_location_expression initializer.
5962 * objc-lang.c (objc_language_data): Likewise.
5963 * opencl-lang.c (opencl_language_data): Likewise.
5964 * p-lang.c (pascal_language_data): Likewise.
5965 * rust-lang.c (rust_watch_location_expression): Rename to
5966 rust_language::watch_location_expression.
5967 (rust_language_data): Delete la_watch_location_expression
5968 initializer.
5969 (rust_language::watch_location_expression): New member function,
5970 implementation from rust_watch_location_expression.
5971
7e56227d
AB
59722020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5973
5974 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5975 ada_language::collect_symbol_completion_matches.
5976 (ada_language_data): Delete la_collect_symbol_completion_matches
5977 initializer.
5978 (ada_language::collect_symbol_completion_matches): New member
5979 function, implementation from
5980 ada_collect_symbol_completion_matches.
5981 * c-lang.c (c_language_data): Delete
5982 la_collect_symbol_completion_matches initializer.
5983 (cplus_language_data): Likewise.
5984 (asm_language_data): Likewise.
5985 (minimal_language_data): Likewise.
5986 * d-lang.c (d_language_data): Likewise.
5987 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5988 f_language::collect_symbol_completion_matches.
5989 (f_language_data): Delete la_collect_symbol_completion_matches
5990 initializer.
5991 (f_language::collect_symbol_completion_matches) New member
5992 function, implementation from f_collect_symbol_completion_matches.
5993 * go-lang.c (go_language_data): Delete
5994 la_collect_symbol_completion_matches initializer.
5995 * language.c (unknown_language_data): Likewise.
5996 (auto_language_data): Likewise.
5997 * language.h (language_data): Delete
5998 la_collect_symbol_completion_matches field.
5999 (language_defn::collect_symbol_completion_matches): New member
6000 function.
6001 * m2-lang.c (m2_language_data): Delete
6002 la_collect_symbol_completion_matches initializer.
6003 * objc-lang.c (objc_language_data): Likewise.
6004 * opencl-lang.c (opencl_language_data): Likewise.
6005 * p-lang.c (pascal_language_data): Likewise.
6006 * rust-lang.c (rust_language_data): Likewise.
6007 * symtab.c (default_collect_symbol_completion_matches): Delete.
6008 (collect_symbol_completion_matches): Update call to
6009 collect_symbol_completion_matches.
6010 (collect_symbol_completion_matches_type): Likewise.
6011 * symtab.h (default_collect_symbol_completion_matches): Delete
6012 declaration.
6013
53fc67f8
AB
60142020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6015
6016 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6017 (ada_language_data): Delete la_word_break_characters initializer.
6018 (ada_language::word_break_characters): New member function.
6019 * c-lang.c (c_language_data): Delete la_word_break_characters
6020 initializer.
6021 (cplus_language_data): Likewise.
6022 (asm_language_data): Likewise.
6023 (minimal_language_data): Likewise.
6024 * completer.c: Update global comment.
6025 (advance_to_expression_complete_word_point): Update call to
6026 word_break_characters.
6027 (complete_files_symbols): Likewise.
6028 (complete_line_internal_1): Likewise.
6029 (default_completer_handle_brkchars): Likewise.
6030 (skip_quoted_chars): Likewise.
6031 * d-lang.c (d_language_data): Delete la_word_break_characters
6032 initializer.
6033 * f-lang.c (f_word_break_characters): Delete.
6034 (f_language_data): Delete la_word_break_characters initializer.
6035 (f_language::word_break_characters): New member function.
6036 * go-lang.c (go_language_data): Delete la_word_break_characters
6037 initializer.
6038 * language.c (unknown_language_data): Likewise.
6039 (auto_language_data): Likewise.
6040 * language.h (default_word_break_characters): Move declaration to
6041 earlier in the file.
6042 (language_data): Delete la_word_break_characters field.
6043 (language_defn::word_break_characters): New member function.
6044 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6045 initializer.
6046 * objc-lang.c (objc_language_data): Likewise.
6047 * opencl-lang.c (opencl_language_data): Likewise.
6048 * p-lang.c (pascal_language_data): Likewise.
6049 * rust-lang.c (rust_language_data): Likewise.
6050
c9debfb9
AB
60512020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6052
6053 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6054 (ada_language_data): Delete la_get_symbol_name_matcher
6055 initializer.
6056 (language_defn::get_symbol_name_matcher_inner): New member
6057 function.
6058 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6059 initializer.
6060 (cplus_language_data): Likewise.
6061 (cplus_language::get_symbol_name_matcher_inner): New member
6062 function.
6063 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6064 (minimal_language_data): Likewise.
6065 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6066 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6067 initializer.
6068 * dictionary.c (iter_match_first_hashed): Update call to
6069 get_symbol_name_matcher.
6070 (iter_match_next_hashed): Likewise.
6071 (iter_match_next_linear): Likewise.
6072 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6073 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6074 initializer.
6075 (f_language::get_symbol_name_matcher_inner): New member function.
6076 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6077 initializer.
6078 * language.c (default_symbol_name_matcher): Update header comment,
6079 make static.
6080 (language_defn::get_symbol_name_matcher): New definition.
6081 (language_defn::get_symbol_name_matcher_inner): Likewise.
6082 (get_symbol_name_matcher): Delete.
6083 (unknown_language_data): Delete la_get_symbol_name_matcher
6084 initializer.
6085 (auto_language_data): Likewise.
6086 * language.h (language_data): Delete la_get_symbol_name_matcher
6087 field.
6088 (language_defn::get_symbol_name_matcher): New member function.
6089 (language_defn::get_symbol_name_matcher_inner): Likewise.
6090 (default_symbol_name_matcher): Delete declaration.
6091 * linespec.c (find_methods): Update call to
6092 get_symbol_name_matcher.
6093 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6094 initializer.
6095 * minsyms.c (lookup_minimal_symbol): Update call to
6096 get_symbol_name_matcher.
6097 (iterate_over_minimal_symbols): Likewise.
6098 * objc-lang.c (objc_language_data): Delete
6099 la_get_symbol_name_matcher initializer.
6100 * opencl-lang.c (opencl_language_data): Likewise.
6101 * p-lang.c (pascal_language_data): Likewise.
6102 * psymtab.c (psymbol_name_matches): Update call to
6103 get_symbol_name_matcher.
6104 * rust-lang.c (rust_language_data): Delete
6105 la_get_symbol_name_matcher initializer.
6106 * symtab.c (symbol_matches_search_name): Update call to
6107 get_symbol_name_matcher.
6108 (compare_symbol_name): Likewise.
6109
9a49ad8c
AB
61102020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6111
6112 * ada-lang.c (ada_language_data): Delete la_compute_program
6113 initializer.
6114 * c-lang.c (c_language_data): Likewise.
6115 (c_language::compute_program): New member function.
6116 (cplus_language_data): Delete la_compute_program initializer.
6117 (cplus_language::compute_program): New member function.
6118 (asm_language_data): Delete la_compute_program initializer.
6119 (minimal_language_data): Likewise.
6120 * c-lang.h (c_compute_program): Update comment.
6121 (cplus_compute_program): Likewise.
6122 * compile/compile-c-support.c (c_compute_program): Likewise.
6123 (cplus_compute_program): Likewise.
6124 * compile/compile.c (compile_to_object): Update call to
6125 la_compute_program.
6126 * d-lang.c (d_language_data): Delete la_compute_program
6127 initializer.
6128 * f-lang.c (f_language_data): Likewise.
6129 * go-lang.c (go_language_data): Likewise.
6130 * language.c (unknown_language_data): Likewise.
6131 (auto_language_data): Likewise.
6132 * language.h (language_data): Delete la_compute_program field.
6133 (language_defn::compute_program): New member function.
6134 * m2-lang.c (m2_language_data): Delete la_compute_program
6135 initializer.
6136 * objc-lang.c (objc_language_data): Likewise.
6137 * opencl-lang.c (opencl_language_data): Likewise.
6138 * p-lang.c (pascal_language_data): Likewise.
6139 * rust-lang.c (rust_language_data): Likewise.
6140
eff93b4d
AB
61412020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6142
6143 * ada-lang.c (ada_language_data) Delete
6144 la_class_name_from_physname initializer.
6145 * c-lang.c (c_language_data): Likewise.
6146 (cplus_language_data): Likewise.
6147 (cplus_language::class_name_from_physname): New member function.
6148 (asm_language_data): Delete la_class_name_from_physname
6149 initializer.
6150 (minimal_language_data): Likewise.
6151 * d-lang.c (d_language_data): Likewise.
6152 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6153 method on language_defn class.
6154 (guess_full_die_structure_name): Likewise.
6155 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6156 initializer.
6157 * go-lang.c (go_language_data): Likewise.
6158 * language.c (language_class_name_from_physname): Delete.
6159 (unk_lang_class_name): Delete.
6160 (unknown_language_data): Delete la_class_name_from_physname
6161 initializer.
6162 (auto_language_data): Likewise.
6163 * language.h (language_data): Delete la_class_name_from_physname
6164 field.
6165 (language_defn::class_name_from_physname): New function.
6166 (language_class_name_from_physname): Delete declaration.
6167 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6168 initializer.
6169 * objc-lang.c (objc_language_data): Likewise.
6170 * opencl-lang.c (opencl_language_data): Likewise.
6171 * p-lang.c (pascal_language_data): Likewise.
6172 * rust-lang.c (rust_language_data): Likewise.
6173
de543742
TT
61742020-06-16 Tom Tromey <tom@tromey.com>
6175
6176 * tui/tui-data.h (STATUS_NAME): New macro.
6177 * tui/tui-layout.c (tui_remove_some_windows)
6178 (initialize_known_windows, tui_register_window)
6179 (tui_layout_split::remove_windows, initialize_layouts)
6180 (tui_new_layout_command): Don't use hard-coded window names.
6181
a350efd4
TT
61822020-06-16 Tom Tromey <tom@tromey.com>
6183
6184 PR tui/25348:
6185 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6186 tui_initialize_readline. Only run once. Call rl_initialize.
6187 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6188 tui_initialize_readline.
6189 * tui/tui-io.c (tui_setup_io): Call
6190 tui_ensure_readline_initialized.
6191 * tui/tui-interp.c (tui_interp::init): Update.
6192
39ec0490
TT
61932020-06-16 Tom Tromey <tom@tromey.com>
6194
6195 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6196 Also preserve the status window.
6197
d2d1ea20
TT
61982020-06-16 Tom Tromey <tom@tromey.com>
6199
6200 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6201 where m_window==nullptr.
6202
66920317
TT
62032020-06-15 Tom Tromey <tromey@adacore.com>
6204
6205 * windows-nat.c (windows_nat::handle_output_debug_string):
6206 Update.
6207 (windows_nat::handle_ms_vc_exception): Update.
6208 * target.h (target_read_string): Change API.
6209 * target.c (target_read_string): Change API.
6210 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6211 Update.
6212 * solib-frv.c (frv_current_sos): Update.
6213 * solib-dsbt.c (dsbt_current_sos): Update.
6214 * solib-darwin.c (darwin_current_sos): Update.
6215 * linux-thread-db.c (inferior_has_bug): Update.
6216 * expprint.c (print_subexp_standard): Update.
6217 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6218 (ada_exception_message_1): Update.
6219
a5d871dd
TT
62202020-06-15 Tom Tromey <tromey@adacore.com>
6221
6222 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6223
670e35fa
TT
62242020-06-15 Tom Tromey <tromey@adacore.com>
6225
6226 * valprint.c (read_string): Update comment.
6227 * target.c (MIN): Remove.
6228 (target_read_string): Rewrite.
6229
f5272a3b
TT
62302020-06-15 Tom Tromey <tromey@adacore.com>
6231
6232 * corefile.c (read_memory_string): Remove.
6233 * ada-valprint.c (ada_value_print_ptr): Update.
6234 * ada-lang.h (ada_tag_name): Change return type.
6235 * ada-lang.c (type_from_tag): Update.
6236 (ada_tag_name_from_tsd): Change return type. Use
6237 target_read_string.
6238 (ada_tag_name): Likewise.
6239 * gdbcore.h (read_memory_string): Don't declare.
6240
2c074f49
HD
62412020-06-14 Hannes Domani <ssbssa@yahoo.de>
6242
6243 * symtab.c (rbreak_command): Ignore Windows drive colon.
6244
6a17d503
SM
62452020-06-12 Simon Marchi <simon.marchi@efficios.com>
6246
6247 * NEWS: Mention removed GDBserver host support.
6248
453c733f
NC
62492020-06-12 Nelson Chu <nelson.chu@sifive.com>
6250
6251 * features/riscv/rebuild-csr-xml.sh: Updated.
6252
2b4e6a3f
TT
62532020-06-11 Tom Tromey <tom@tromey.com>
6254
6255 PR gdb/18318:
6256 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6257
4412332f
JG
62582020-06-09 Jonny Grant <jg@jguk.org>
62592020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6260
6261 * main.c (captured_main_1): Don't print new line after help.
6262 (print_gdb_help): add mailing list and IRC channel information
6263 to --help. Add new lines between items in the footer. Remove
6264 quotes around bug url.
6265
2f33032a
KS
62662020-06-11 Keith Seitz <keiths@redhat.com>
6267
6268 PR gdb/21356
6269 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6270 Resolve typedefs for type length calculations.
6271
7ab96794
TV
62722020-06-10 Tom de Vries <tdevries@suse.de>
6273
6274 PR ada/24713
6275 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6276 (write_psymbols): Enable .gdb_index for ada.
6277 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6278 ada.
6279
e5f3ece2
TV
62802020-06-10 Tom de Vries <tdevries@suse.de>
6281
6282 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6283 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6284 namei" instead of "const char *name" argument.
6285 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6286 dw2_symtab_iter_init.
6287
940da03e
SM
62882020-06-08 Simon Marchi <simon.marchi@efficios.com>
6289
6290 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6291 to use type::field and field::type instead.
6292
b6cdac4b
SM
62932020-06-08 Simon Marchi <simon.marchi@efficios.com>
6294
6295 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6296 to use field::type instead.
6297
5d14b6e5
SM
62982020-06-08 Simon Marchi <simon.marchi@efficios.com>
6299
6300 * gdbtypes.h (struct field) <type, set_type>: New methods.
6301 Rename `type` field to...
6302 <m_type>: ... this. Change references throughout to use type or
6303 set_type methods.
6304 (FIELD_TYPE): Use field::type. Change call sites that modify
6305 the field's type to use field::set_type instead.
6306
3d967001
SM
63072020-06-08 Simon Marchi <simon.marchi@efficios.com>
6308
6309 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6310 to use type::index_type instead.
6311
262abc0d
SM
63122020-06-08 Simon Marchi <simon.marchi@efficios.com>
6313
6314 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6315 methods.
6316 (TYPE_INDEX_TYPE): Use type::index_type.
6317 * gdbtypes.c (create_array_type_with_stride): Likewise.
6318
82836c92
TT
63192020-06-07 Tom Tromey <tom@tromey.com>
6320
6321 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6322 parameter.
6323 (generic_value_print): Update.
6324
940dace9
AB
63252020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6326
6327 Revert commit 982a38f60b0.
6328 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6329
982a38f6
AB
63302020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6331
6332 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6333 avoid use after free.
6334
82f06518
TV
63352020-06-05 Tom de Vries <tdevries@suse.de>
6336
6337 * NEWS: Fix typos.
6338
f8c41851
SM
63392020-06-04 Simon Marchi <simon.marchi@efficios.com>
6340
6341 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6342 the per_bfd object.
6343 (dwarf2_read_debug_names): Likewise.
6344 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6345 object when re-using a per_bfd object with an index.
6346
f9b5d5ea
TV
63472020-06-03 Tom de Vries <tdevries@suse.de>
6348
6349 PR symtab/26046
6350 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6351 children for C++.
6352 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6353 DW_TAG_subprogram.
6354
f6eee2d0
AB
63552020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6356
6357 * ada-lang.c (ada_language_data): Delete skip_trampoline
6358 initializer.
6359 * c-lang.c (c_language_data): Likewise.
6360 (cplus_language_data): Likewise.
6361 (cplus_language::skip_trampoline): New member function.
6362 (asm_language_data): Delete skip_trampoline initializer.
6363 (minimal_language_data): Likewise.
6364 * d-lang.c (d_language_data): Likewise.
6365 * f-lang.c (f_language_data): Likewise.
6366 * go-lang.c (go_language_data): Likewise.
6367 * language.c (unk_lang_trampoline): Delete function.
6368 (skip_language_trampoline): Update.
6369 (unknown_language_data): Delete skip_trampoline initializer.
6370 (auto_language_data): Likewise.
6371 * language.h (language_data): Delete skip_trampoline field.
6372 (language_defn::skip_trampoline): New function.
6373 * m2-lang.c (m2_language_data): Delete skip_trampoline
6374 initializer.
6375 * objc-lang.c (objc_skip_trampoline): Delete function, move
6376 implementation to objc_language::skip_trampoline.
6377 (objc_language_data): Delete skip_trampoline initializer.
6378 (objc_language::skip_trampoline): New member function with
6379 implementation from objc_skip_trampoline.
6380 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6381 initializer.
6382 * p-lang.c (pascal_language_data): Likewise.
6383 * rust-lang.c (rust_language_data): Likewise.
6384
0a50df5d
AB
63852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6386
6387 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6388 (ada_language::demangle): New member function.
6389 * c-lang.c (c_language_data): Delete la_demangle initializer.
6390 (cplus_language_data): Delete la_demangle initializer.
6391 (cplus_language::demangle): New member function.
6392 (asm_language_data): Delete la_demangle initializer.
6393 (minimal_language_data): Delete la_demangle initializer.
6394 * d-lang.c (d_language_data): Delete la_demangle initializer.
6395 (d_language::demangle): New member function.
6396 * f-lang.c (f_language_data): Delete la_demangle initializer.
6397 (f_language::demangle): New member function.
6398 * go-lang.c (go_language_data): Delete la_demangle initializer.
6399 (go_language::demangle): New member function.
6400 * language.c (language_demangle): Update.
6401 (unk_lang_demangle): Delete.
6402 (unknown_language_data): Delete la_demangle initializer.
6403 (unknown_language::demangle): New member function.
6404 (auto_language_data): Delete la_demangle initializer.
6405 (auto_language::demangle): New member function.
6406 * language.h (language_data): Delete la_demangle field.
6407 (language_defn::demangle): New function.
6408 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6409 * objc-lang.c (objc_language_data): Delete la_demangle
6410 initializer.
6411 (objc_language::demangle): New member function.
6412 * opencl-lang.c (opencl_language_data): Delete la_demangle
6413 initializer.
6414 * p-lang.c (pascal_language_data): Likewise.
6415 * rust-lang.c (rust_language_data): Likewise.
6416 (rust_language::demangle): New member function.
6417
fbfb0a46
AB
64182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6419
6420 * ada-lang.c (ada_language_data): Delete la_print_type
6421 initializer.
6422 (ada_language::print_type): New member function.
6423 * c-lang.c (c_language_data): Delete la_print_type initializer.
6424 (c_language::print_type): New member function.
6425 (cplus_language_data): Delete la_print_type initializer.
6426 (cplus_language::print_type): New member function.
6427 (asm_language_data): Delete la_print_type initializer.
6428 (asm_language::print_type): New member function.
6429 (minimal_language_data): Delete la_print_type initializer.
6430 (minimal_language::print_type): New member function.
6431 * d-lang.c (d_language_data): Delete la_print_type initializer.
6432 (d_language::print_type): New member function.
6433 * f-lang.c (f_language_data): Delete la_print_type initializer.
6434 (f_language::print_type): New member function.
6435 * go-lang.c (go_language_data): Delete la_print_type initializer.
6436 (go_language::print_type): New member function.
6437 * language.c (unk_lang_print_type): Delete.
6438 (unknown_language_data): Delete la_print_type initializer.
6439 (unknown_language::print_type): New member function.
6440 (auto_language_data): Delete la_print_type initializer.
6441 (auto_language::print_type): New member function.
6442 * language.h (language_data): Delete la_print_type field.
6443 (language_defn::print_type): New function.
6444 (LA_PRINT_TYPE): Update.
6445 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6446 (m2_language::print_type): New member function.
6447 * objc-lang.c (objc_language_data): Delete la_print_type
6448 initializer.
6449 (objc_language::print_type): New member function.
6450 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6451 to opencl_language::print_type.
6452 (opencl_language_data): Delete la_print_type initializer.
6453 (opencl_language::print_type): New member function, implementation
6454 from opencl_print_type.
6455 * p-lang.c (pascal_language_data): Delete la_print_type
6456 initializer.
6457 (pascal_language::print_type): New member function.
6458 * rust-lang.c (rust_print_type): Delete, implementation moved to
6459 rust_language::print_type.
6460 (rust_language_data): Delete la_print_type initializer.
6461 (rust_language::print_type): New member function, implementation
6462 from rust_print_type.
6463
6f827019
AB
64642020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6465
6466 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6467 implementation moves to...
6468 (ada_language::sniff_from_mangled_name): ...here. Update return
6469 type.
6470 (ada_language_data): Delete la_sniff_from_mangled_name
6471 initializer.
6472 * c-lang.c (c_language_data): Likewise.
6473 (cplus_language_data): Likewise.
6474 (cplus_language::sniff_from_mangled_name): New member function,
6475 implementation taken from gdb_sniff_from_mangled_name.
6476 (asm_language_data): Delete la_sniff_from_mangled_name
6477 initializer.
6478 (minimal_language_data): Likewise.
6479 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6480 implementation moves to cplus_language::sniff_from_mangled_name.
6481 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6482 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6483 moves to...
6484 (d_language::sniff_from_mangled_name): ...here.
6485 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6486 * f-lang.c (f_language_data): Likewise.
6487 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6488 moves to...
6489 (go_language::sniff_from_mangled_name): ...here.
6490 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6491 * language.c (language_sniff_from_mangled_name): Delete.
6492 (unknown_language_data): Delete la_sniff_from_mangled_name
6493 initializer.
6494 (auto_language_data): Likewise.
6495 * language.h (language_data): Delete la_sniff_from_mangled_name
6496 field.
6497 (language_defn::sniff_from_mangled_name): New function.
6498 (language_sniff_from_mangled_name): Delete declaration.
6499 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6500 field.
6501 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6502 implementation moves to...
6503 (objc_language::sniff_from_mangled_name): ...here.
6504 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6505 * opencl-lang.c (opencl_language_data): Likewise.
6506 * p-lang.c (pascal_language_data): Likewise.
6507 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6508 implementation moves to...
6509 (rust_language::sniff_from_mangled_name): ...here.
6510 (rust_language_data): Delete la_sniff_from_mangled_name
6511 initializer.
6512 * symtab.c (symbol_find_demangled_name): Call
6513 sniff_from_mangled_name member function.
6514
fb8006fd
AB
65152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6516
6517 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6518 initializer.
6519 * c-lang.c (c_language_data): Likewise.
6520 (cplus_language_data): Likewise.
6521 (cplus_language::search_name_hash): New member function.
6522 (asm_language_data): Delete la_search_name_hash initializer.
6523 (minimal_language_data): Likewise.
6524 * d-lang.c (d_language_data): Likewise.
6525 * dictionary.c (default_search_name_hash): Rename to...
6526 (language_defn::search_name_hash): ...this.
6527 * f-lang.c (f_language_data): Likewise.
6528 (f_language::search_name_hash): New member function.
6529 * go-lang.c (go_language_data): Delete la_search_name_hash
6530 initializer.
6531 * language.c (unknown_language_data): Likewise.
6532 (auto_language_data): Likewise.
6533 * language.h (struct language_data): Delete la_search_name_hash
6534 field.
6535 (language_defn::search_name_hash): Declare new member function.
6536 (default_search_name_hash): Delete declaration.
6537 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6538 initializer.
6539 * objc-lang.c (objc_language_data): Likewise.
6540 * opencl-lang.c (opencl_language_data): Likewise.
6541 * p-lang.c (pascal_language_data): Likewise.
6542 * rust-lang.c (rust_language_data): Likewise.
6543 * symtab.c (search_name_hash): Update call.
6544
8e25bafe
AB
65452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6546
6547 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6548 initializer.
6549 * c-lang.c (class compile_instance): Declare.
6550 (c_language_data): Delete la_get_compile_instance initializer.
6551 (c_language::get_compile_instance): New member function.
6552 (cplus_language_data): Delete la_get_compile_instance initializer.
6553 (cplus_language::get_compile_instance): New member function.
6554 (asm_language_data): Delete la_get_compile_instance initializer.
6555 (minimal_language_data): Likewise.
6556 * c-lang.h (c_get_compile_context): Update comment.
6557 (cplus_get_compile_context): Update comment.
6558 * compile/compile.c (compile_to_object): Update calls, don't rely
6559 on function pointer being NULL.
6560 * d-lang.c (d_language_data): Delete la_get_compile_instance
6561 initializer.
6562 * f-lang.c (f_language_data): Likewise.
6563 * go-lang.c (go_language_data): Likewise.
6564 * language.c (unknown_language_data): Likewise.
6565 (auto_language_data): Likewise.
6566 * language.h (language_data): Delete la_get_compile_instance field.
6567 (language_defn::get_compile_instance): New member function.
6568 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6569 initializer.
6570 * objc-lang.c (objc_language_data): Likewise.
6571 * opencl-lang.c (opencl_language_data): Likewise.
6572 * p-lang.c (pascal_language_data): Likewise.
6573 * rust-lang.c (rust_language_data): Likewise.
6574
4009ee92
AB
65752020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6576
6577 * ada-lang.c (ada_add_all_symbols): Update comment.
6578 (ada_iterate_over_symbols): Delete, move implementation to...
6579 (ada_language::iterate_over_symbols): ...here, a new member
6580 function, rewrite to use range based for loop.
6581 (ada_language_data): Delete la_iterate_over_symbols initializer.
6582 * c-lang.c (c_language_data): Likewise.
6583 (cplus_language_data): Likewise.
6584 (asm_language_data): Likewise.
6585 (minimal_language_data): Likewise.
6586 * d-lang.c (d_language_data): Likewise.
6587 * f-lang.c (f_language_data): Likewise.
6588 * go-lang.c (go_language_data): Likewise.
6589 * language.c (unknown_language_data): Likewise.
6590 (auto_language_data): Likewise.
6591 * language.h (language_data): Delete la_iterate_over_symbols field.
6592 (language_defn::iterate_over_symbols): New member function.
6593 (LA_ITERATE_OVER_SYMBOLS): Update.
6594 * linespec.c (iterate_over_all_matching_symtabs): Update.
6595 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6596 initializer.
6597 * objc-lang.c (objc_language_data): Likewise.
6598 * opencl-lang.c (opencl_language_data): Likewise.
6599 * p-lang.c (pascal_language_data): Likewise.
6600 * rust-lang.c (rust_language_data): Likewise.
6601
54f4ca46
AB
66022020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6603
6604 * ada-lang.c (ada_language_data): Delete
6605 la_lookup_transparent_type initializer.
6606 * c-lang.c (c_language_data): Likewise.
6607 (cplus_language_data): Likewise.
6608 (cplus_language::lookup_transparent_type): New member function.
6609 (asm_language_data): Delete la_lookup_transparent_type
6610 initializer.
6611 (minimal_language_data): Likewise.
6612 * d-lang.c (d_language_data): Likewise.
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 (struct language_data): Delete
6618 la_lookup_transparent_type field.
6619 (language_defn::lookup_transparent_type): New member function.
6620 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6621 initializer.
6622 * objc-lang.c (objc_language_data): Likewise.
6623 * opencl-lang.c (opencl_language_data): Likewise.
6624 * p-lang.c (pascal_language_data): Likewise.
6625 * rust-lang.c (rust_language_data): Likewise.
6626 * symtab.c (symbol_matches_domain): Update call.
6627
1fb314aa
AB
66282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6629
6630 * ada-lang.c (ada_language_arch_info): Delete function, move
6631 implementation to...
6632 (ada_language::language_arch_info): ...here, a new member
6633 function.
6634 (ada_language_data): Delete la_language_arch_info.
6635 * c-lang.c (c_language_data): Likewise.
6636 (c_language::language_arch_info): New member function.
6637 (cplus_language_arch_info): Delete function, move
6638 implementation to...
6639 (cplus_language::language_arch_info): ...here, a new member
6640 function.
6641 (cplus_language_data): Delete la_language_arch_info.
6642 (asm_language_data): Likewise.
6643 (asm_language::language_arch_info): New member function.
6644 (minimal_language_data): Delete la_language_arch_info.
6645 (minimal_language::language_arch_info): New member function.
6646 * d-lang.c (d_language_arch_info): Delete function, move
6647 implementation to...
6648 (d_language::language_arch_info): ...here, a new member
6649 function.
6650 (d_language_data): Delete la_language_arch_info.
6651 * f-lang.c (f_language_arch_info): Delete function, move
6652 implementation to...
6653 (f_language::language_arch_info): ...here, a new member
6654 function.
6655 (f_language_data): Delete la_language_arch_info.
6656 * go-lang.c (go_language_arch_info): Delete function, move
6657 implementation to...
6658 (go_language::language_arch_info): ...here, a new member
6659 function.
6660 (go_language_data): Delete la_language_arch_info.
6661 * language.c (unknown_language_data): Likewise.
6662 (unknown_language::language_arch_info): New member function.
6663 (auto_language_data): Delete la_language_arch_info.
6664 (auto_language::language_arch_info): New member function.
6665 (language_gdbarch_post_init): Update call to
6666 la_language_arch_info.
6667 * language.h (language_data): Delete la_language_arch_info
6668 function pointer.
6669 (language_defn::language_arch_info): New function.
6670 * m2-lang.c (m2_language_arch_info): Delete function, move
6671 implementation to...
6672 (m2_language::language_arch_info): ...here, a new member
6673 function.
6674 (m2_language_data): Delete la_language_arch_info.
6675 * objc-lang.c (objc_language_arch_info): Delete function, move
6676 implementation to...
6677 (objc_language::language_arch_info): ...here, a new member
6678 function.
6679 (objc_language_data): Delete la_language_arch_info.
6680 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6681 implementation to...
6682 (opencl_language::language_arch_info): ...here, a new member
6683 function.
6684 (opencl_language_data): Delete la_language_arch_info.
6685 * p-lang.c (pascal_language_arch_info): Delete function, move
6686 implementation to...
6687 (pascal_language::language_arch_info): ...here, a new member
6688 function.
6689 (pascal_language_data): Delete la_language_arch_info.
6690 * rust-lang.c (rust_language_arch_info): Delete function, move
6691 implementation to...
6692 (rust_language::language_arch_info): ...here, a new member
6693 function.
6694 (rust_language_data): Delete la_language_arch_info.
6695
48448202
AB
66962020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6697
6698 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6699 initializer.
6700 * c-lang.c (c_language_data): Likewise.
6701 (cplus_language_data): Likewise.
6702 (cplus_language::pass_by_reference_info): New method.
6703 (asm_language_data): Delete la_pass_by_reference initializer.
6704 (minimal_language_data): Likewise.
6705 * cp-abi.c (cp_pass_by_reference): Remove use of
6706 default_pass_by_reference.
6707 * d-lang.c (d_language_data): Likewise.
6708 * f-lang.c (f_language_data): Likewise.
6709 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6710 default_pass_by_reference.
6711 * go-lang.c (go_language_data): Likewise.
6712 * language.c (language_pass_by_reference): Update.
6713 (default_pass_by_reference): Delete.
6714 (unknown_language_data): Delete la_pass_by_reference
6715 initializer.
6716 (auto_language_data): Likewise.
6717 * language.h (struct language_data): Delete la_pass_by_reference
6718 field.
6719 (language_defn::pass_by_reference_info): New member function.
6720 (default_pass_by_reference): Delete declaration.
6721 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6722 initializer.
6723 * objc-lang.c (objc_language_data): Likewise.
6724 * opencl-lang.c (opencl_language_data): Likewise.
6725 * p-lang.c (pascal_language_data): Likewise.
6726 * rust-lang.c (rust_language_data): Likewise.
6727
15e5fd35
AB
67282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6729
6730 * ada-lang.c (ada_read_var_value): Delete function, move
6731 implementation to...
6732 (ada_language::read_var_value): ...here.
6733 (ada_language_data): Delete la_read_var_value initializer.
6734 * c-lang.c (c_language_data): Likewise.
6735 (cplus_language_data): Likewise.
6736 (minimal_language_data): Likewise.
6737 * d-lang.c (d_language_data): Likewise.
6738 * f-lang.c (f_language_data): Likewise.
6739 * findvar.c (default_read_var_value): Rename to...
6740 (language_defn::read_var_value): ...this.
6741 * findvar.c (read_var_value): Update header comment, and change to
6742 call member function instead of function pointer.
6743 * go-lang.c (go_language_data): Likewise.
6744 * language.c (unknown_language_data): Delete la_read_var_value
6745 initializer.
6746 (auto_language_data): Likewise.
6747 * language.h (struct language_data): Delete la_read_var_value
6748 field.
6749 (language_defn::read_var_value): New member function.
6750 (default_read_var_value): Delete declaration.
6751 * m2-lang.c (m2_language_data): Delete la_read_var_value
6752 initializer.
6753 * objc-lang.c (objc_language_data): Likewise.
6754 * opencl-lang.c (opencl_language_data): Likewise.
6755 * p-lang.c (pascal_language_data): Likewise.
6756 * rust-lang.c (rust_language_data): Likewise.
6757 * value.h (default_read_var_value): Delete declaration.
6758
5bd40f2a
AB
67592020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6760
6761 * ada-lang.c (ada_print_array_index): Delete function, move
6762 implementation to...
6763 (ada_language::print_array_index): ...here.
6764 (ada_language_data): Delete la_print_array_index initializer.
6765 * c-lang.c (c_language_data): Likewise.
6766 (cplus_language_data): Likewise.
6767 (minimal_language_data): Likewise.
6768 * d-lang.c (d_language_data): Likewise.
6769 * f-lang.c (f_language_data): Likewise.
6770 * go-lang.c (go_language_data): Likewise.
6771 * language.c (default_print_array_index): Delete function, move
6772 implementation to...
6773 (language_defn::print_array_index): ...here.
6774 (unknown_language_data): Delete la_print_array_index initializer.
6775 (auto_language_data): Likewise.
6776 * language.h (struct language_data): Delete la_print_array_index
6777 field.
6778 (language_defn::print_array_index): New member function.
6779 (LA_PRINT_ARRAY_INDEX): Update.
6780 (default_print_array_index): Delete declaration.
6781 * m2-lang.c (m2_language_data): Delete la_print_array_index
6782 initializer.
6783 * objc-lang.c (objc_language_data): Likewise.
6784 * opencl-lang.c (opencl_language_data): Likewise.
6785 * p-lang.c (pascal_language_data): Likewise.
6786 * rust-lang.c (rust_language_data): Likewise.
6787
0874fd07
AB
67882020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6789
6790 * gdb/ada-lang.c (ada_language_defn): Convert to...
6791 (ada_language_data): ...this.
6792 (class ada_language): New class.
6793 (ada_language_defn): New static global.
6794 * gdb/c-lang.c (c_language_defn): Convert to...
6795 (c_language_data): ...this.
6796 (class c_language): New class.
6797 (c_language_defn): New static global.
6798 (cplus_language_defn): Convert to...
6799 (cplus_language_data): ...this.
6800 (class cplus_language): New class.
6801 (cplus_language_defn): New static global.
6802 (asm_language_defn): Convert to...
6803 (asm_language_data): ...this.
6804 (class asm_language): New class.
6805 (asm_language_defn): New static global.
6806 (minimal_language_defn): Convert to...
6807 (minimal_language_data): ...this.
6808 (class minimal_language): New class.
6809 (minimal_language_defn): New static global.
6810 * gdb/d-lang.c (d_language_defn): Convert to...
6811 (d_language_data): ...this.
6812 (class d_language): New class.
6813 (d_language_defn): New static global.
6814 * gdb/f-lang.c (f_language_defn): Convert to...
6815 (f_language_data): ...this.
6816 (class f_language): New class.
6817 (f_language_defn): New static global.
6818 * gdb/go-lang.c (go_language_defn): Convert to...
6819 (go_language_data): ...this.
6820 (class go_language): New class.
6821 (go_language_defn): New static global.
6822 * gdb/language.c (unknown_language_defn): Remove declaration.
6823 (current_language): Initialize to nullptr, real initialization is
6824 moved to _initialize_language.
6825 (languages): Delete global.
6826 (language_defn::languages): Define.
6827 (set_language_command): Use language_defn::languages.
6828 (set_language): Likewise.
6829 (range_error): Likewise.
6830 (language_enum): Likewise.
6831 (language_def): Likewise.
6832 (add_set_language_command): Use language_def::languages for the
6833 language list, and language_def to lookup language pointers.
6834 (skip_language_trampoline): Use language_defn::languages.
6835 (unknown_language_defn): Convert to...
6836 (unknown_language_data): ...this.
6837 (class unknown_language): New class.
6838 (unknown_language_defn): New static global.
6839 (auto_language_defn): Convert to...
6840 (auto_language_data): ...this.
6841 (class auto_language): New class.
6842 (auto_language_defn): New static global.
6843 (language_gdbarch_post_init): Use language_defn::languages.
6844 (_initialize_language): Initialize current_language.
6845 * gdb/language.h (struct language_defn): Rename to...
6846 (struct language_data): ...this.
6847 (struct language_defn): New.
6848 (auto_language_defn): Delete.
6849 (unknown_language_defn): Delete.
6850 (minimal_language_defn): Delete.
6851 (ada_language_defn): Delete.
6852 (asm_language_defn): Delete.
6853 (c_language_defn): Delete.
6854 (cplus_language_defn): Delete.
6855 (d_language_defn): Delete.
6856 (f_language_defn): Delete.
6857 (go_language_defn): Delete.
6858 (m2_language_defn): Delete.
6859 (objc_language_defn): Delete.
6860 (opencl_language_defn): Delete.
6861 (pascal_language_defn): Delete.
6862 (rust_language_defn): Delete.
6863 * gdb/m2-lang.c (m2_language_defn): Convert to...
6864 (m2_language_data): ...this.
6865 (class m2_language): New class.
6866 (m2_language_defn): New static global.
6867 * gdb/objc-lang.c (objc_language_defn): Convert to...
6868 (objc_language_data): ...this.
6869 (class objc_language): New class.
6870 (objc_language_defn): New static global.
6871 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6872 (opencl_language_data): ...this.
6873 (class opencl_language): New class.
6874 (opencl_language_defn): New static global.
6875 * gdb/p-lang.c (pascal_language_defn): Convert to...
6876 (pascal_language_data): ...this.
6877 (class pascal_language): New class.
6878 (pascal_language_defn): New static global.
6879 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6880 language pointer, update comment format.
6881 * gdb/rust-lang.c (rust_language_defn): Convert to...
6882 (rust_language_data): ...this.
6883 (class rust_language): New class.
6884 (rust_language_defn): New static global.
6885
1313c56e
AB
68862020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6887
6888 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6889 member variable.
6890 <m_stmt_at_address>: New member variable.
6891 (lnp_state_machine::record_line): Don't record some lines, update
6892 tracking of is_stmt at the same address.
6893 (lnp_state_machine::lnp_state_machine): Initialise new member
6894 variables.
6895
b7ed9f3d
ST
68962020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6897
6898 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6899 "-include gnu-nat-mig.h".
6900 * gnu-nat-mig.h: New file.
6901 * gnu-nat.c: Include "gnu-nat-mig.h".
6902 (exc_server, msg_reply_server, notify_server,
6903 process_reply_server): Remove declarations.
6904
14a8ad62
ST
69052020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6906
6907 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6908 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6909 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6910 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6911 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6912 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6913 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6914 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6915 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6916 to gnu_nat_target class.
6917 * gnu-nat.c: Likewise.
6918 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6919 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6920 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6921 object.
6922 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6923 instead of `gnu_target'.
6924
0af5e106
ST
69252020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6926
6927 * i386-gnu-tdep.c: Include "gdbcore.h"
6928 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6929 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6930 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6931 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6932 i386_gnu_sigcontext_addr): New functions
6933 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6934 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6935 tdep.
6936
078f2fc9
ST
69372020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6938
6939 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6940 before fork_inferior call. Avoid calling it if target_is_pushed returns
6941 true.
6942
53dff92c
ST
69432020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6944
6945 * gnu-nat.h (gnu_target): New variable declaration.
6946 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6947 gnu_target.
6948 * gnu-nat.c (gnu_target): New variable.
6949 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6950 add_thread_silent, and add_thread calls.
6951 (gnu_nat_target::create_inferior): Pass gnu_target to
6952 add_thread_silent, thread_change_ptid call.
6953 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6954 call.
6955
5a8b8627
ST
69562020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6957
6958 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6959 (gnu_nat_target::find_memory_regions): Remove unused
6960 `old_address' variable.
6961
366f550a
ST
69622020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6963
6964 * gnu-nat.c: Include "gdbarch.h".
6965
f14871bf
ST
69662020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6967
6968 * reply_mig_hack.awk (Error return): Cast function through
6969 void *, to bypass compiler function call check.
6970
c6887cfb
ST
69712020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6972
6973 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6974 $(srcdir)/reply_mig_hack.awk.
6975
6930bffe
ST
69762020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6977
6978 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6979
112c22ed
JG
69802020-05-30 Jonny Grant <jg@jguk.org>
6981
6982 * configure.ac (ACX_BUGURL): change bug URL to https.
6983
f68f85b5
PA
69842020-05-30 Pedro Alves <palves@redhat.com>
6985
6986 * cp-support.c (replace_typedefs_template): New.
6987 (replace_typedefs_qualified_name): Handle
6988 DEMANGLE_COMPONENT_TEMPLATE.
6989
976ca316
SM
69902020-05-29 Simon Marchi <simon.marchi@efficios.com>
6991
6992 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6993 dwarf2/index-cache.h, dwarf2/index-write.c,
6994 dwarf2/index-write.h, dwarf2/line-header.c,
6995 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6996 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6997 variables and fields from `dwarf2_per_objfile` to just
6998 `per_objfile` throughout.
6999
989ade05
SM
70002020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7001
7002 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7003 <push_dwarf_reg_entry_value>: Add comment.
7004
c47bae85
KB
70052020-05-28 Kevin Buettner <kevinb@redhat.com>
7006 Keith Seitz <keiths@redhat.com>
7007
7008 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7009 instead of PyEval_ReleaseLock.
7010 (class gdbpy_gil): Move to earlier in file.
7011 (finalize_python): Set gdb_python_initialized.
7012 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7013 when not initialized.
7014
44486dcf
SM
70152020-05-28 Simon Marchi <simon.marchi@efficios.com>
7016
7017 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7018 <push_dwarf_reg_entry_value>: Remove assert. Override
7019 per_objfile with caller_per_objfile.
7020
f030440d
TV
70212020-05-28 Tom de Vries <tdevries@suse.de>
7022
7023 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7024 PR gold/15646 workaround to symbol kind "type".
7025
f0fbb768
TT
70262020-05-27 Tom Tromey <tromey@adacore.com>
7027
7028 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7029
af0b2a3e
TT
70302020-05-27 Tom Tromey <tromey@adacore.com>
7031
7032 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7033 Use htab_find_with_hash.
7034 <add_abbrev>: Remove "abbrev_number" parameter.
7035 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7036 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7037 (hash_abbrev): Add comment.
7038 (abbrev_table::lookup_abbrev): Move to header file.
7039 (abbrev_table::read): Update.
7040
7d00ffec
TT
70412020-05-27 Tom Tromey <tromey@adacore.com>
7042
7043 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7044 method.
7045 <canonical_name>: New member.
7046 <raw_name>: Rename from "name".
7047 (partial_die_info): Initialize canonical_name.
7048 (scan_partial_symbols): Check raw_name.
7049 (partial_die_parent_scope, partial_die_full_name)
7050 (add_partial_symbol, add_partial_subprogram)
7051 (add_partial_enumeration, load_partial_dies): Use "name" method.
7052 (partial_die_info::name): New method.
7053 (partial_die_info::read, guess_partial_die_structure_name)
7054 (partial_die_info::fixup): Update.
7055
697bba18
TT
70562020-05-27 Tom Tromey <tromey@adacore.com>
7057
7058 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7059 <get_ref_die_offset>: Inline.
7060 <get_ref_die_offset_complaint>: New method.
7061 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7062 (attribute::get_ref_die_offset_complaint): Rename from
7063 get_ref_die_offset. Just issue complaint.
7064
c17ace43
HD
70652020-05-27 Hannes Domani <ssbssa@yahoo.de>
7066
7067 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7068
96445f0b
HD
70692020-05-27 Hannes Domani <ssbssa@yahoo.de>
7070
7071 * exec.c (exec_file_attach): Use errno value of first openp failure.
7072
ac637ec3
HD
70732020-05-27 Hannes Domani <ssbssa@yahoo.de>
7074
7075 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7076 Don't close thread handle.
7077
17ee85fc
TT
70782020-05-27 Tom Tromey <tom@tromey.com>
7079 Simon Marchi <simon.marchi@efficios.com>
7080
7081 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7082 shared_ptr.
7083 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7084 member.
7085 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7086 dwarf2_per_bfd_objfile_data_key>: New globals.
7087 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7088 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7089 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7090 shared.
7091 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7092 short-circuit when sharing.
7093 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7094 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7095
39b16f87
SM
70962020-05-27 Simon Marchi <simon.marchi@efficios.com>
7097
7098 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7099 to...
7100 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7101 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7102
fcf23d5b
SM
71032020-05-27 Simon Marchi <simon.marchi@efficios.com>
7104
7105 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7106 build_name_components, find_name_components_bounds>:
7107 Add per_objfile parameter.
7108 (struct mapped_index) <symbol_name_at>: Likewise.
7109 (struct mapped_debug_names): Remove constructor.
7110 <dwarf2_per_objfile>: Remove field.
7111 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7112 (mapped_index_base::find_name_components_bounds,
7113 mapped_index_base::build_name_components,
7114 dw2_expand_symtabs_matching_symbol): Likewise.
7115 (class mock_mapped_index) <symbol_name_at>: Likewise.
7116 (check_match): Likewise.
7117 (check_find_bounds_finds): Likewise.
7118 (test_mapped_index_find_name_component_bounds): Update.
7119 (CHECK_MATCH): Update.
7120 (dw2_expand_symtabs_matching): Update.
7121 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7122 per_objfile parameter.
7123 <find_vec_in_debug_names>: Likewise.
7124 <m_per_objfile>: New field.
7125 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7126 parameter.
7127 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7128 (dw2_debug_names_iterator::next): Update.
7129 (dw2_debug_names_lookup_symbol): Update.
7130 (dw2_debug_names_expand_symtabs_for_function): Update.
7131 (dw2_debug_names_map_matching_symbols): Update.
7132 (dw2_debug_names_expand_symtabs_matching): Update.
7133 (dwarf2_read_debug_names): Update.
7134
7188ed02
SM
71352020-05-27 Simon Marchi <simon.marchi@efficios.com>
7136
7137 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7138 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7139 move to dwarf2_per_objfile.
7140 <read_in_chain>: Remove.
7141 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7142 remove_all_cus, age_comp_units>: New methods.
7143 <m_dwarf2_cus>: New member.
7144 (struct dwarf2_per_cu_data) <cu>: Remove.
7145 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7146 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7147 moved to methods of dwarf2_per_objfile.
7148 (dwarf2_clear_marks): Remove.
7149 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7150 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7151 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7152 (dwarf2_per_objfile::remove_all_cus): New.
7153 (class free_cached_comp_units) <~free_cached_comp_units>:
7154 Update.
7155 (load_cu): Update.
7156 (dw2_do_instantiate_symtab): Adjust.
7157 (fill_in_sig_entry_from_dwo_entry): Adjust.
7158 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7159 (cutu_reader::cutu_reader): Likewise.
7160 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7161 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7162 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7163 and dwarf2_per_objfile::age_comp_units.
7164 (load_partial_comp_unit): Update.
7165 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7166 (process_queue): Likewise.
7167 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7168 backlink.
7169 (dwarf2_read_addr_index): Likewise.
7170 (follow_die_offset): Likewise.
7171 (dwarf2_fetch_die_loc_sect_off): Likewise.
7172 (dwarf2_fetch_constant_bytes): Likewise.
7173 (dwarf2_fetch_die_type_sect_off): Likewise.
7174 (follow_die_sig_1): Likewise.
7175 (load_full_type_unit): Likewise.
7176 (read_signatured_type): Likewise.
7177 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7178 (dwarf2_cu::~dwarf2_cu): Remove.
7179 (dwarf2_per_objfile::get_cu): New.
7180 (dwarf2_per_objfile::set_cu): New.
7181 (age_cached_comp_units): Rename to...
7182 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7183 to std::unordered_map.
7184 (free_one_cached_comp_unit): Rename to...
7185 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7186 to std::unordered_map.
7187 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7188 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7189 a dwarf2_per_objfile in data.
7190 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7191 (dwarf2_clear_marks): Remove.
7192
2e671100
SM
71932020-05-27 Simon Marchi <simon.marchi@efficios.com>
7194
7195 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7196 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7197 (init_tu_and_read_dwo_dies): Likewise.
7198 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7199 (cutu_reader::cutu_reader): Likewise.
7200 (load_partial_comp_unit): Likewise.
7201 (process_psymtab_comp_unit): Update.
7202 (build_type_psymtabs_1): Update.
7203 (process_skeletonless_type_unit): Update.
7204 (load_full_comp_unit): Update.
7205 (find_partial_die): Update.
7206 (dwarf2_read_addr_index): Update.
7207 (read_signatured_type): Update.
7208
2e6a9f79
SM
72092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7210
7211 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7212 m_header_read_in>: New fields.
7213 <get_header>: New method.
7214 * dwarf2/read.c (per_cu_header_read_in): Remove.
7215 (dwarf2_per_cu_data::get_header): New.
7216 (dwarf2_per_cu_data::addr_size): Update.
7217 (dwarf2_per_cu_data::offset_size): Update.
7218 (dwarf2_per_cu_data::ref_addr_size): Update.
7219
1b555f17
SM
72202020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7221
7222 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7223 (dw2_do_instantiate_symtab): Update.
7224 (queue_and_load_all_dwo_tus): Change parameter from
7225 dwarf2_per_cu_data to dwarf2_cu.
7226 (dwarf2_fetch_die_loc_sect_off): Update.
7227 (dwarf2_fetch_constant_bytes): Update.
7228 (dwarf2_fetch_die_type_sect_off): Update.
7229
8fc0b21d
SM
72302020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7231
7232 * dwarf2/read.c (process_full_comp_unit,
7233 process_full_type_unit): Remove per_cu, per_objfile paramters.
7234 Add dwarf2_cu parameter.
7235 (process_queue): Update.
7236
168c9250
SM
72372020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7238
7239 * dwarf2/read.c (create_cu_from_index_list): Replace
7240 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7241 (create_cus_from_index_list): Likewise.
7242 (create_cus_from_index): Likewise.
7243 (create_signatured_type_table_from_index): Likewise.
7244 (create_cus_from_debug_names_list): Likewise.
7245 (create_cus_from_debug_names): Likewise.
7246 (dwarf2_read_gdb_index): Update.
7247 (dwarf2_read_debug_names): Update.
7248
e286671b
TT
72492020-05-27 Tom Tromey <tom@tromey.com>
7250 Simon Marchi <simon.marchi@efficios.com>
7251
7252 * dwarf2/read.h (struct dwarf2_per_objfile)
7253 <get_type_for_signatured_type, set_type_for_signatured_type>:
7254 New methods.
7255 <m_type_map>: New member.
7256 (struct signatured_type) <type>: Remove.
7257 * dwarf2/read.c
7258 (dwarf2_per_objfile::get_type_for_signatured_type,
7259 dwarf2_per_objfile::set_type_for_signatured_type): New.
7260 (get_signatured_type): Use new methods.
7261
8adb8487
TT
72622020-05-27 Tom Tromey <tom@tromey.com>
7263 Simon Marchi <simon.marchi@efficios.com>
7264
7265 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7266 (struct dwarf2_per_objfile) <type_units>: New member.
7267 <get_type_unit_group_unshareable>: New method.
7268 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7269 num_symtabs, symtabs>: Remove; move to
7270 type_unit_group_unshareable.
7271 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7272 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7273 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7274
127bbf4b
SM
72752020-05-27 Simon Marchi <simon.marchi@efficios.com>
7276
7277 * dwarf2/read.h (struct dwarf2_per_cu_data):
7278 <dwarf2_per_objfile>: Remove.
7279 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7280 dwarf2_per_objfile.
7281 (create_signatured_type_table_from_index): Likewise.
7282 (create_signatured_type_table_from_debug_names): Likewise.
7283 (create_debug_type_hash_table): Likewise.
7284 (fill_in_sig_entry_from_dwo_entry): Likewise.
7285 (create_type_unit_group): Likewise.
7286 (read_comp_units_from_section): Likewise.
7287 (create_cus_hash_table): Likewise.
7288
f6e649dd
SM
72892020-05-27 Simon Marchi <simon.marchi@efficios.com>
7290
7291 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7292 dwarf2_per_cu_data::dwarf2_per_objfile.
7293 (compute_compunit_symtab_includes): Likewise.
7294 (dwarf2_cu::start_symtab): Likewise.
7295
aa66c379
SM
72962020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7297
7298 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7299 parameter.
7300 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7301 (read_namespace_alias): Update.
7302 (lookup_die_type): Update.
7303 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7304 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7305 Update.
7306 (disassemble_dwarf_expression): Update.
7307
120ce1b5
SM
73082020-05-27 Simon Marchi <simon.marchi@efficios.com>
7309
7310 * dwarf2/read.h (struct dwarf2_queue_item): Add
7311 dwarf2_per_objfile parameter, assign new parameter.
7312 <per_objfile>: New field.
7313 * dwarf2/read.c (free_one_cached_comp_unit): Add
7314 dwarf2_per_objfile parameter.
7315 (queue_comp_unit): Likewise.
7316 (dw2_do_instantiate_symtab): Update.
7317 (process_psymtab_comp_unit): Update.
7318 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7319 (process_imported_unit_die): Update.
7320 (queue_and_load_dwo_tu): Update.
7321 (follow_die_offset): Update.
7322 (follow_die_sig_1): Update.
7323
9f47c707
SM
73242020-05-27 Simon Marchi <simon.marchi@efficios.com>
7325
7326 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7327 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7328 (read_call_site_scope): Assign per_objfile.
7329 (dwarf2_per_cu_data::objfile): Remove.
7330 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7331 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7332 dwarf2_per_objfile parameter.
7333 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7334 dwarf2_per_objfile parameter.
7335 (dwarf_expr_reg_to_entry_parameter): Add output
7336 dwarf2_per_objfile parameter.
7337 (locexpr_get_frame_base): Update.
7338 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7339 <push_dwarf_reg_entry_value>: Update.
7340 <call_site_to_target_addr>: Update.
7341 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7342 parameter.
7343 (value_of_dwarf_reg_entry): Update.
7344 (rw_pieced_value): Update.
7345 (indirect_synthetic_pointer): Update.
7346 (dwarf2_evaluate_property): Update.
7347 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7348 parameter.
7349 (locexpr_read_variable): Update.
7350 (locexpr_get_symbol_read_needs): Update.
7351 (loclist_read_variable): Update.
7352
14095eb3
SM
73532020-05-27 Simon Marchi <simon.marchi@efficios.com>
7354
7355 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7356 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7357 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7358 parameter.
7359 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7360 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7361 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7362 parameter.
7363 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7364 sect_variable_value): Add dwarf2_per_objfile parameter.
7365 (class dwarf_evaluate_loc_desc) <dwarf_call,
7366 dwarf_variable_value>: Update.
7367 (fetch_const_value_from_synthetic_pointer): Add
7368 dwarf2_per_objfile parameter.
7369 (fetch_const_value_from_synthetic_pointer): Update.
7370 (coerced_pieced_ref): Update.
7371 (class symbol_needs_eval_context) <dwarf_call,
7372 dwarf_variable_value>: Update.
7373 (dwarf2_compile_expr_to_ax): Update.
7374
3c3cd3d4
SM
73752020-05-27 Simon Marchi <simon.marchi@efficios.com>
7376
7377 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7378 parameter.
7379 (dwarf2_evaluate_loc_desc_full): Update.
7380
82ca3f51
SM
73812020-05-27 Simon Marchi <simon.marchi@efficios.com>
7382
7383 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7384 parameter.
7385 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7386 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7387 dwarf2_per_objfile parameter.
7388 (decode_debug_loc_dwo_addresses): Likewise.
7389 (dwarf2_find_location_expression): Update.
7390 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7391 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7392 parameter.
7393 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7394 parameter.
7395 (locexpr_describe_location_1): Likewise.
7396 (locexpr_describe_location): Update.
7397
4b167ea1
SM
73982020-05-27 Simon Marchi <simon.marchi@efficios.com>
7399
7400 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7401 Remove.
7402 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7403 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7404 (dwarf2_compile_property_to_c): Update.
7405 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7406 use text offset from objfile.
7407 (locexpr_tracepoint_var_ref): Update.
7408 (locexpr_generate_c_location): Update.
7409 (loclist_describe_location): Update.
7410 (loclist_tracepoint_var_ref): Update.
7411 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7412 dwarf2_per_objfile parameter.
7413 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7414 use text offset from objfile.
7415 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7416
89b07335
SM
74172020-05-27 Simon Marchi <simon.marchi@efficios.com>
7418
7419 * dwarf2/expr.h (struct dwarf_expr_context)
7420 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7421 <offset>: Remove.
7422 <per_objfile>: New member.
7423 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7424 dwarf2_per_objfile parameter. Don't set offset, set
7425 per_objfile.
7426 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7427 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7428 a dwarf2_per_objfile object instead of an offset.
7429 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7430 constructor.
7431 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7432 to dwarf2_expr_executor constructor. Don't set offset.
7433 (dwarf2_fetch_cfa_info): Update.
7434 (struct dwarf2_frame_cache) <text_offset>: Remove.
7435 <per_objfile>: New field.
7436 (dwarf2_frame_cache): Update.
7437 (dwarf2_frame_prev_register): Update.
7438 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7439 <dwarf_evaluate_loc_desc>: Add constructor.
7440 (dwarf2_evaluate_loc_desc_full): Update.
7441 (dwarf2_locexpr_baton_eval): Update.
7442 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7443 Add constructor.
7444 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7445
293e7e51
SM
74462020-05-27 Simon Marchi <simon.marchi@efficios.com>
7447
7448 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7449 addr_sized_int_type>: Move to dwarf2_cu.
7450 <int_type>: Move to dwarf2_per_objfile.
7451 (struct dwarf2_per_objfile) <int_type>: Move here.
7452 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7453 addr_sized_int_type>: Move here.
7454 (read_func_scope): Update.
7455 (read_array_type): Update.
7456 (read_tag_string_type): Update.
7457 (attr_to_dynamic_prop): Update.
7458 (dwarf2_per_cu_data::int_type): Rename to...
7459 (dwarf2_per_objfile::int_type): ... this.
7460 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7461 (dwarf2_cu::addr_sized_int_type): ... this.
7462 (read_subrange_type): Update.
7463 (dwarf2_per_cu_data::addr_type): Rename to...
7464 (dwarf2_cu::addr_type): ... this.
7465 (set_die_type): Update.
7466
64874a40
SM
74672020-05-27 Simon Marchi <simon.marchi@efficios.com>
7468
7469 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7470 data through per_cu->cu.
7471
4ab09049
SM
74722020-05-27 Simon Marchi <simon.marchi@efficios.com>
7473
7474 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7475 dwarf2_per_cu_data parameter fo dwarf2_cu.
7476 (lookup_dwo_type_unit): Likewise.
7477 (read_cutu_die_from_dwo): Likewise.
7478 (lookup_dwo_unit): Likewise.
7479 (open_and_init_dwo_file): Likewise.
7480 (lookup_dwo_cutu): Likewise.
7481 (lookup_dwo_comp_unit): Likewise.
7482 (lookup_dwo_type_unit): Likewise.
7483 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7484 (cutu_reader::cutu_reader): Update.
7485
47b14e86
SM
74862020-05-27 Simon Marchi <simon.marchi@efficios.com>
7487
7488 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7489 parameter.
7490 (process_full_type_unit): Likewise.
7491 (process_queue): Update.
7492
43182c09
SM
74932020-05-27 Simon Marchi <simon.marchi@efficios.com>
7494
7495 * dwarf2/read.c (recursively_compute_inclusions): Add
7496 dwarf2_per_objfile parameter.
7497 (compute_compunit_symtab_includes): Likewise.
7498 (process_cu_includes): Update.
7499
7aa104c4
SM
75002020-05-27 Simon Marchi <simon.marchi@efficios.com>
7501
7502 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7503 parameter.
7504 (create_type_unit_group): Update.
7505 (process_psymtab_comp_unit_reader): Update.
7506 (build_type_psymtabs_reader): Update.
7507
e3beb21d
SM
75082020-05-27 Simon Marchi <simon.marchi@efficios.com>
7509
7510 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7511 object through m_this_cu->cu.
7512
d460f660
SM
75132020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7514
7515 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7516 the info parameter.
7517 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7518
ab432490
SM
75192020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7520
7521 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7522 per_objfile parameter.
7523 (load_full_type_unit): Add per_objfile parameter.
7524 (read_signatured_type): Likewise.
7525 (load_full_comp_unit): Likewise.
7526 (load_cu): Likewise.
7527 (dw2_do_instantiate_symtab): Likewise.
7528 (dw2_get_file_names): Likewise.
7529 (dw2_map_symtabs_matching_filename): Update.
7530 (dw_expand_symtabs_matching_file_matcher): Update.
7531 (dw2_map_symbol_filenames): Update.
7532 (process_psymtab_comp_unit): Add per_objfile parameter.
7533 (build_type_psymtabs_1): Update.
7534 (process_skeletonless_type_unit): Update.
7535 (dwarf2_build_psymtabs_hard): Update.
7536 (load_partial_comp_unit): Add per_objfile parameter.
7537 (scan_partial_symbols): Update.
7538 (load_full_comp_unit): Add per_objfile parameter.
7539 (process_imported_unit_die): Update.
7540 (create_cus_hash_table): Update.
7541 (find_partial_die): Update.
7542 (dwarf2_read_addr_index): Update.
7543 (follow_die_offset): Update.
7544 (dwarf2_fetch_die_loc_sect_off): Update.
7545 (dwarf2_fetch_constant_bytes): Update.
7546 (dwarf2_fetch_die_type_sect_off): Update.
7547 (follow_die_sig_1): Update.
7548 (load_full_type_unit): Add per_objfile parameter.
7549 (read_signatured_type): Likewise.
7550
313bad1b
SM
75512020-05-27 Simon Marchi <simon.marchi@efficios.com>
7552
7553 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7554 of objfile_name.
7555
c3699833
SM
75562020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7557
7558 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7559 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7560 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7561 field.
7562 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7563 (create_cus_from_index): Update.
7564 (dwarf2_read_gdb_index): Update.
7565 (create_cus_from_debug_names): Update.
7566 (dwarf2_read_debug_names): Update.
7567 (get_abbrev_section_for_cu): Update.
7568 (create_all_comp_units): Update.
7569 (read_attribute_value): Update.
7570 (get_debug_line_section): Update.
7571 * dwarf2/index-cache.c (index_cache::store): Update.
7572 * dwarf2/index-write.c (save_gdb_index_command): Update.
7573 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7574
1859c670
SM
75752020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7576
7577 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7578 member.
7579 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7580 dwarf2_per_cu_data::per_bfd.
7581 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7582 (create_type_unit_group): Likewise.
7583 (queue_comp_unit): Remove reference to
7584 per_cu->dwarf2_per_objfile.
7585 (maybe_queue_comp_unit): Likewise.
7586 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7587 (create_cus_hash_table): Assign new field.
7588
5e22e966
SM
75892020-05-27 Simon Marchi <simon.marchi@efficios.com>
7590
7591 * dwarf2/read.c: Replace
7592 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7593 dwarf2_cu->per_objfile throughout.
7594
97a1449a
SM
75952020-05-27 Simon Marchi <simon.marchi@efficios.com>
7596
7597 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7598 parameter, don't use per_cu->dwarf2_per_objfile.
7599 (dw2_instantiate_symtab): Likewise.
7600 (dw2_find_last_source_symtab): Update.
7601 (dw2_map_expand_apply): Update.
7602 (dw2_lookup_symbol): Update.
7603 (dw2_expand_symtabs_for_function): Update.
7604 (dw2_expand_all_symtabs): Update.
7605 (dw2_expand_symtabs_with_fullname): Update.
7606 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7607 don't use per_cu->dwarf2_per_objfile.
7608 (dw2_expand_marked_cus): Update.
7609 (dw2_find_pc_sect_compunit_symtab): Update.
7610 (dw2_debug_names_lookup_symbol): Update.
7611 (dw2_debug_names_expand_symtabs_for_function): Update.
7612 (dw2_debug_names_map_matching_symbols): Update.
7613 (dwarf2_psymtab::expand_psymtab): Update.
7614
9e021579
SM
76152020-05-27 Simon Marchi <simon.marchi@efficios.com>
7616
7617 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7618 <per_objfile>: New member.
7619 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7620 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7621 call to dwarf2_cu.
7622 (cutu_reader::cutu_reader): Update.
7623 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7624
ae090bdb
SM
76252020-05-27 Simon Marchi <simon.marchi@efficios.com>
7626
7627 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7628 struct dwarf2_per_objfile.
7629 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7630 dwarf2_per_bfd.
7631 * dwarf2/read.c (set_die_type): Update.
7632 (get_die_type_at_offset): Update.
7633
af758d11
SM
76342020-05-27 Tom Tromey <tom@tromey.com>
7635 Simon Marchi <simon.marchi@efficios.com>
7636
7637 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7638 method.
7639 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7640 get_symtab, set_symtab>: New methods.
7641 <m_symtabs>: New field.
7642 (struct dwarf2_psymtab): Derive from partial_symtab.
7643 <readin_p, get_compunit_symtab>: Declare methods.
7644 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7645 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7646 New methods.
7647 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7648 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7649 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7650 (dw2_symtab_iter_next, dw2_print_stats)
7651 (dw2_expand_symtabs_with_fullname)
7652 (dw2_expand_symtabs_matching_one)
7653 (dw_expand_symtabs_matching_file_matcher)
7654 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7655 (dw2_debug_names_iterator::next)
7656 (dw2_debug_names_map_matching_symbols)
7657 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7658 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7659 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7660 New methods.
7661 (get_compunit_symtab, process_full_comp_unit)
7662 (process_full_type_unit): Update.
7663 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7664
5989a64e
SM
76652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7666
7667 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7668 then introduce a new dwarf2_per_objfile type.
7669 <read_line_string>: Move to the new dwarf2_per_objfile type.
7670 <objfile>: Likewise.
7671 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7672 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7673 dwarf2_per_objfile->per_bfd.
7674 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7675 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7676 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7677 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7678 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7679 (dwarf2_per_objfile::locate_sections): Rename to...
7680 (dwarf2_per_bfd::locate_sections): ... this.
7681 (dwarf2_per_objfile::get_cutu): Rename to...
7682 (dwarf2_per_bfd::get_cutu): ... this.
7683 (dwarf2_per_objfile::get_cu): Rename to...
7684 (dwarf2_per_bfd::get_cu): ... this.
7685 (dwarf2_per_objfile::get_tu): Rename to...
7686 (dwarf2_per_bfd::get_tu): ... this.
7687 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7688 (dwarf2_per_bfd::allocate_per_cu): ... this.
7689 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7690 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7691 (get_gdb_index_contents_ftype): Change parameter from
7692 dwarf2_per_objfile to dwarf2_per_bfd.
7693 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7694 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7695
a50264ba
TT
76962020-05-27 Tom Tromey <tom@tromey.com>
7697 Simon Marchi <simon.marchi@efficios.com>
7698
7699 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7700 (allocate_piece_closure): Set "per_objfile" member.
7701 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7702 (locexpr_describe_location, loclist_describe_location): Use new
7703 member.
7704 * dwarf2/read.c (read_call_site_scope)
7705 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7706 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7707 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7708 handle_data_member_location): Set per_objfile member.
7709 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7710 member.
7711 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7712
d3473f0c
TT
77132020-05-27 Tom Tromey <tom@tromey.com>
7714
7715 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7716 allocate_signatured_type>: Declare new methods.
7717 <m_num_psymtabs>: New member.
7718 (struct dwarf2_per_cu_data) <index>: New member.
7719 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7720 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7721 (create_cu_from_index_list): Use allocate_per_cu.
7722 (create_signatured_type_table_from_index)
7723 (create_signatured_type_table_from_debug_names)
7724 (create_debug_type_hash_table, add_type_unit)
7725 (read_comp_units_from_section): Use allocate_signatured_type.
7726
5717c425
TT
77272020-05-27 Tom Tromey <tom@tromey.com>
7728
7729 * psymtab.c (partial_map_expand_apply)
7730 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7731 (psym_lookup_global_symbol_language)
7732 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7733 (psym_print_stats, psym_expand_symtabs_for_function)
7734 (psym_map_symbol_filenames, psym_map_matching_symbols)
7735 (psym_expand_symtabs_matching)
7736 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7737 (maintenance_check_psymtabs): Update.
7738 * psympriv.h (struct partial_symtab) <readin_p,
7739 get_compunit_symtab>: Add objfile parameter.
7740 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7741 Likewise.
7742 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7743 get_compunit_symtab>: Likewise.
7744 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7745
45940949
TT
77462020-05-27 Tom Tromey <tom@tromey.com>
7747
7748 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7749 member.
7750 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7751 (create_cu_from_index_list)
7752 (create_signatured_type_table_from_index)
7753 (create_signatured_type_table_from_debug_names)
7754 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7755 (dwarf2_create_include_psymtab)
7756 (create_debug_type_hash_table, add_type_unit)
7757 (create_type_unit_group, read_comp_units_from_section)
7758 (dwarf2_compute_name, create_cus_hash_table)
7759 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7760 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7761 obstack.
7762 (dw2_get_real_path): Likewise. Change argument to
7763 dwarf2_per_objfile.
7764
f8c6d152
LM
77652020-05-27 Luis Machado <luis.machado@linaro.org>
7766
7767 PR tdep/26000
7768 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7769 for ldrd (immediate).
7770
e98d2e6d
PW
77712020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7772
7773 * command.h: Add comment giving the name of class_tui.
7774 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7775 create the fake command for the help for class_tui.
7776
53a47a3e
TT
77772020-05-26 Tom Tromey <tromey@adacore.com>
7778
7779 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7780 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7781 (val_atr): New function.
7782 (value_val_atr): Use it.
7783 * ada-valprint.c (print_optional_low_bound): Change low bound
7784 handling for enums.
7785 (val_print_packed_array_elements): Don't call discrete_position.
7786 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7787 discrete_position for enum types.
7788 * language.c (default_print_array_index): Change type.
7789 * language.h (struct language_defn) <la_print_array_index>: Add
7790 index_type parameter, change type of index_value.
7791 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7792 (default_print_array_index): Update.
7793 * valprint.c (maybe_print_array_index): Don't call
7794 value_from_longest. Update.
7795 (value_print_array_elements): Don't call discrete_position.
7796
0bc2354b
TT
77972020-05-26 Tom Tromey <tromey@adacore.com>
7798
7799 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7800 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7801
1218a4bf
CDA
78022020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7803
7804 PR gdb/13519
7805 * avr-tdep.c (avr_integer_to_address): Return data or code
7806 address accordingly to the second 'type' argument of the
7807 function.
7808
92651b1d
MW
78092020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7810
7811 * infcmd.c, inferior.h: (construct_inferior_arguments):
7812 Moved function from here to gdbsupport/common-inferior.{h,cc}
7813
0a4f5f8c
TT
78142020-05-23 Tom Tromey <tom@tromey.com>
7815
7816 Revert commit eca1f90c:
7817 * NEWS: Remove entry for completion styling.
7818 * completer.c (_rl_completion_prefix_display_length): Move
7819 declaration later.
7820 (gdb_fnprint): Revert.
7821 (gdb_display_match_list_1): Likewise.
7822 * cli/cli-style.c (completion_prefix_style)
7823 (completion_difference_style, completion_suffix_style): Remove.
7824 (_initialize_cli_style): Revert.
7825 * cli/cli-style.h (completion_prefix_style)
7826 (completion_difference_style, completion_suffix_style): Don't
7827 declare.
7828
e08bd6c5
PA
78292020-05-24 Pedro Alves <palves@redhat.com>
7830
7831 * symtab.c (completion_list_add_name): Return boolean indication
7832 of whether the symbol matched.
7833 (completion_list_add_symbol): Don't try to remove C++ aliases if
7834 the symbol didn't match in the first place.
7835 * symtab.h (completion_list_add_name): Return bool.
7836
ceacbf6e
SM
78372020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7838
7839 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7840 type::field.
7841
26f16254
JB
78422020-05-23 Joel Brobecker <brobecker@adacore.com>
7843
7844 GDB 9.2 released.
7845
eca1f90c
TT
78462020-05-23 Tom Tromey <tom@tromey.com>
7847
7848 * NEWS: Add entry for completion styling.
7849 * completer.c (_rl_completion_prefix_display_length): Move
7850 declaration earlier.
7851 (gdb_fnprint): Use completion_style.
7852 (gdb_display_match_list_1): Likewise.
7853 * cli/cli-style.c (completion_prefix_style)
7854 (completion_difference_style, completion_suffix_style): New
7855 globals.
7856 (_initialize_cli_style): Register new globals.
7857 * cli/cli-style.h (completion_prefix_style)
7858 (completion_difference_style, completion_suffix_style): Declare.
7859
51e2cfa2
PA
78602020-05-23 Pedro Alves <palves@redhat.com>
7861
7862 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7863 (parse_escape): Use ISDIGIT instead of isdigit.
7864 (puts_debug): Use gdb_isprint instead of isprint.
7865 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7866 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7867 ISSPACE instead of isspace.
7868 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7869 instead of isspace.
7870 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7871 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7872 instead of isxdigit and ISDIGIT instead of isdigit.
7873
80fc5e77
SM
78742020-05-22 Simon Marchi <simon.marchi@efficios.com>
7875
7876 * gdbtypes.h (struct type) <field>: New method.
7877 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7878 or type::field.
7879
3cabb6b0
SM
78802020-05-22 Simon Marchi <simon.marchi@efficios.com>
7881
7882 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7883 (TYPE_FIELDS): Use type::fields. Change all call sites that
7884 modify the propery to use type::set_fields instead.
7885
1f704f76
SM
78862020-05-22 Simon Marchi <simon.marchi@efficios.com>
7887
7888 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7889 type::num_fields instead.
7890
5e33d5f4
SM
78912020-05-22 Simon Marchi <simon.marchi@efficios.com>
7892
7893 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7894 methods.
7895 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7896 that modify the number of fields to use type::set_num_fields
7897 instead.
7898
9392ebb3
TT
78992020-05-22 Tom Tromey <tromey@adacore.com>
7900
7901 * compile/compile-object-load.h (munmap_list_free): Don't
7902 declare.
7903
7c13f4e8
AB
79042020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7905
7906 * annotate.c (annotate_source_line): Update return type, add call
7907 to update current symtab and line.
7908 * annotate.h (annotate_source_line): Update return type, and
7909 extend header comment.
7910 * source.c (info_line_command): Check annotation_level before
7911 calling annotate_source_line.
7912 * stack.c (print_frame_info): If calling annotate_source_line
7913 returns true, then don't print any other source line information.
7914
aa370940
SM
79152020-05-21 Simon Marchi <simon.marchi@efficios.com>
7916
7917 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7918
84d53fa9
SM
79192020-05-21 Simon Marchi <simon.marchi@efficios.com>
7920
7921 * coffread.c (patch_type): Remove NULL check before xfree.
7922 * corefile.c (set_gnutarget): Likewise.
7923 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7924 * exec.c (build_section_table): Likewise.
7925 * remote.c (remote_target::pass_signals): Likewise.
7926 * utils.c (n_spaces): Likewise.
7927 * cli/cli-script.c (document_command): Likewise.
7928 * i386-windows-tdep.c (core_process_module_section): Likewise.
7929 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7930
9d428aae
SM
79312020-05-20 Simon Marchi <simon.marchi@efficios.com>
7932
7933 * symfile.c (reread_symbols): Clear objfile's section_offsets
7934 vector and section indices, re-compute them by calling
7935 sym_offsets.
7936
250106a7
TT
79372020-05-20 Tom Tromey <tromey@adacore.com>
7938
7939 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 7940 (desc_one_bound, desc_index_type): Compute field name.
250106a7 7941
9a0bacfb
TV
79422020-05-20 Tom de Vries <tdevries@suse.de>
7943
7944 PR symtab/25833
7945 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7946
7b958a48
AM
79472020-05-20 Alan Modra <amodra@gmail.com>
7948
7949 PR 25993
7950 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7951 bfd_set_filename.
7952 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7953 passed to bfd_set_filename.
7954 * symfile-mem.c (add_vsyscall_page): Likewise for string
7955 passed to symbol_file_add_from_memory.
7956 (symbol_file_add_from_memory): Make name param a const char* and
7957 don't strdup.
7958
c7e97679
AM
79592020-05-20 Alan Modra <amodra@gmail.com>
7960
7961 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7962 rather than accessing bfd->filename directly.
7963 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7964 and use bfd_section_name.
7965 * dwarf2/frame.c (decode_frame_entry): Likewise.
7966 * exec.c (exec_set_section_address): Likewise.
7967 * solib-aix.c (solib_aix_bfd_open): Likewise.
7968 * stap-probe.c (get_stap_base_address): Likewise.
7969 * symfile.c (reread_symbols): Likewise.
7970
563c591b
TT
79712020-05-19 Tom Tromey <tromey@adacore.com>
7972
7973 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7974
f408d82c
SM
79752020-05-19 Simon Marchi <simon.marchi@efficios.com>
7976
7977 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7978
98c59b52
PA
79792020-05-19 Pedro Alves <palves@redhat.com>
7980
7981 * NEWS (set exec-file-mismatch): Adjust entry.
7982 * exec.c: Include "build-id.h".
7983 (validate_exec_file): Try to match build IDs instead of filenames.
7984 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7985 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7986 and pass down 'warn_if_slow'.
7987 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7988 gdb_bfd_open_closure to pass it down.
7989 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7990
4111f652
PA
79912020-05-19 Pedro Alves <palves@redhat.com>
7992
7993 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7994 * target.c (target_fileio_open_1): Rename to target_fileio_open
7995 and make extern. Use bool.
7996 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7997 (target_fileio_read_alloc_1): Adjust.
7998 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7999 (target_fileio_open_warn_if_slow): Delete declaration.
8000
ad80db5b
PA
80012020-05-19 Pedro Alves <palves@redhat.com>
8002
8003 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8004 Adjust all callers.
8005
1d6ce4d3
YS
80062020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8007
8008 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8009 whether disp is negative.
8010
9005fbbb
SM
80112020-05-19 Simon Marchi <simon.marchi@efficios.com>
8012
8013 * symfile.h (struct symfile_segment_data)
8014 <~symfile_segment_data>: Remove.
8015 <segment_info>: Change to std::vector.
8016 * symfile.c (default_symfile_segments): Update.
8017 * elfread.c (elf_symfile_segments): Update.
8018
68b888ff
SM
80192020-05-19 Simon Marchi <simon.marchi@efficios.com>
8020
8021 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8022 <segments>: New.
8023 <segment_bases, segment_sizes>: Remove.
8024 * symfile.c (default_symfile_segments): Update.
8025 * elfread.c (elf_symfile_segments): Update.
8026 * remote.c (remote_target::get_offsets): Update.
8027 * solib-target.c (solib_target_relocate_section_addresses):
8028 Update.
8029
62982abd
SM
80302020-05-19 Simon Marchi <simon.marchi@efficios.com>
8031
8032 * symfile.h (struct symfile_segment_data): Initialize fields.
8033 <~symfile_segment_data>: Add.
8034 (symfile_segment_data_up): New.
8035 (struct sym_fns) <sym_segments>: Return a
8036 symfile_segment_data_up.
8037 (default_symfile_segments): Return a symfile_segment_data_up.
8038 (free_symfile_segment_data): Remove.
8039 (get_symfile_segment_data): Return a symfile_segment_data_up.
8040 * symfile.c (default_symfile_segments): Likewise.
8041 (get_symfile_segment_data): Likewise.
8042 (free_symfile_segment_data): Remove.
8043 (symfile_find_segment_sections): Update.
8044 * elfread.c (elf_symfile_segments): Return a
8045 symfile_segment_data_up.
8046 * remote.c (remote_target::get_offsets): Update.
8047 * solib-target.c (solib_target_relocate_section_addresses):
8048 Update.
8049 * symfile-debug.c (debug_sym_segments): Return a
8050 symfile_segment_data_up.
8051
7f204339
RO
80522020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8053
e52a0f1b
RO
8054 PR build/25981
8055 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8056 Hardcode register numbers.
8057
7f204339
RO
8058 PR build/25981
8059 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8060 procfs_find_LDT_entry): Remove.
8061 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8062 procfs_find_LDT_entry): Remove.
8063 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8064 Remove.
8065
7f32a4d5
PA
80662020-05-17 Pedro Alves <palves@redhat.com>
8067 Andrew Burgess <andrew.burgess@embecosm.com>
8068 Keno Fischer <keno@juliacomputing.com>
8069
8070 PR gdb/25741
8071 * breakpoint.c (build_target_condition_list): Update comments.
8072 (build_target_command_list): Update comments and skip matching
8073 locations.
8074 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8075 a separate function. Simplify "set breakpoint auto-hw off"
8076 handling.
8077 (insert_breakpoints): Update comment.
8078 (tracepoint_locations_match): New parameter. For breakpoints,
8079 compare location types too, if the caller wants to.
8080 (handle_automatic_hardware_breakpoints): New functions.
8081 (bp_location_is_less_than): Also sort by location type and
8082 hardware breakpoint length.
8083 (update_global_location_list): Handle "set breakpoint auto-hw on"
8084 here.
8085 (update_breakpoint_locations): Ask breakpoint_locations_match to
8086 ignore location types.
8087
7d93a1e0
SM
80882020-05-16 Simon Marchi <simon.marchi@efficios.com>
8089
8090 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8091 type::name instead.
8092
d0e39ea2
SM
80932020-05-16 Simon Marchi <simon.marchi@efficios.com>
8094
8095 * gdbtypes.h (struct type) <name, set_name>: New methods.
8096 (TYPE_CODE): Use type::name. Change all call sites used to set
8097 the name to use type::set_name instead.
8098
2dab0c7b
TT
80992020-05-16 Tom Tromey <tom@tromey.com>
8100
8101 * top.c (quit_force): Update.
8102 * infrun.c (handle_no_resumed): Update.
8103 * top.h (all_uis): New function.
8104 (ALL_UIS): Remove.
8105
59f7bd8d
SM
81062020-05-16 Simon Marchi <simon.marchi@efficios.com>
8107
8108 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8109
9bf058f0
PA
81102020-05-16 Pedro Alves <palves@redhat.com>
8111
8112 * ia64-linux-nat.c
8113 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8114 Declare method.
8115 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8116
8f86ae1a
SM
81172020-05-15 Simon Marchi <simon.marchi@efficios.com>
8118
8119 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8120 (sparc64_adi_info): Likewise.
8121
d6bc0792
TT
81222020-05-15 Tom Tromey <tom@tromey.com>
8123
8124 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8125 block_objfile.
8126 (lookup_objfile_from_block): Remove.
8127 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8128 (lookup_global_symbol): Use block_objfile.
8129 * symtab.h (lookup_objfile_from_block): Don't declare.
8130 * printcmd.c (clear_dangling_display_expressions): Use
8131 block_objfile.
8132 * parse.c (operator_check_standard): Use block_objfile.
8133
8c14c3a3
TT
81342020-05-15 Tom Tromey <tom@tromey.com>
8135
8136 * language.c (language_alloc_type_symbol): Set
8137 SYMBOL_SECTION.
8138 * symtab.c (initialize_objfile_symbol): Remove.
8139 (allocate_symbol): Remove.
8140 (allocate_template_symbol): Remove.
8141 * dwarf2/read.c (fixup_go_packaging): Use "new".
8142 (new_symbol): Use "new".
8143 (read_variable): Don't call initialize_objfile_symbol. Use
8144 "new".
8145 (read_func_scope): Use "new".
8146 * xcoffread.c (process_xcoff_symbol): Don't call
8147 initialize_objfile_symbol.
8148 (SYMBOL_DUP): Remove.
8149 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8150 "new".
8151 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8152 (allocate_template_symbol): Don't declare.
8153 (struct symbol): Add copy constructor. Change defaults.
8154 * jit.c (finalize_symtab): Use "new".
8155 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8156 Use "new".
8157 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8158 (common_block_end): Use "new".
8159 * mdebugread.c (parse_symbol): Use "new".
8160 (new_symbol): Likewise.
8161
5b4a1a8d
PW
81622020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8163
8164 * NEWS: Mention changes to help and apropos.
8165
57b4f16e
PW
81662020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8167
8168 * command.h (enum command_class): Improve comments, document
8169 that class_alias is for user-defined aliases, give the class
8170 name for each class, remove unused class_xdb.
8171 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8172 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8173 by a precise class.
8174 * infcmd.c (_initialize_infcmd): Likewise.
8175 * reverse.c (_initialize_reverse): Likewise.
8176 * stack.c (_initialize_stack): Likewise.
8177 * symfile.c (_initialize_symfile): Likewise.
8178 * tracepoint.c (_initialize_tracepoint): Likewise.
8179
7c05caf7
PW
81802020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8181
8182 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8183 when their aliased command is traversed.
8184 (help_cmd): Add fput_command_names_styled call to
8185 output command name and aliases when command has an alias.
8186
3b3aaacb
PW
81872020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8188
8189 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8190 * cli/cli-decode.c (help_cmd_list): Declare as static,
8191 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8192 a command together with the command.
8193 (fput_command_name_styled, fput_command_names_styled): New functions.
8194 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8195 fput_command_name_styled.
8196 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8197 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8198
7aa1b46f
PW
81992020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8200
8201 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8202 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8203 * command.h (cmd_show_list): Likewise.
8204 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8205 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8206
89bcba74
PW
82072020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8208
8209 * unittests/command-def-selftests.c (traverse_command_structure):
8210 Verify all commands of a list have the same prefix command and
8211 that only the top cmdlist commands have a null prefix.
8212
3f4d92eb
PW
82132020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8214
8215 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8216 as prefix, not one of its aliases.
8217 (set_cmd_prefix): Remove.
8218 (do_add_cmd): Centralize the setting of the prefix of a command, when
8219 command is defined after its full chain of prefix commands.
8220 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8221 (add_setshow_cmd_full): Likewise.
8222 (update_prefix_field_of_prefixed_commands): New function.
8223 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8224 update_prefix_field_of_prefixed_commands.
8225 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8226 addresses of remote_set_cmdlist and remote_show_cmdlist given
8227 as argument, not the address of an argument.
8228 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8229 * gdb/remote.c (_initialize_remote): Likewise.
8230
0605465f
PW
82312020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8232
8233 * cli/cli-cmds.c (alias_command): Check for an existing alias
8234 using lookup_cmd_composition, as valid_command_p is too strict
8235 and forbids aliases that are the prefix of an existing alias
8236 or command.
8237 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8238 command is properly recognised as a valid command.
8239
58e6ac70
PW
82402020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8241
8242 * unittests/help-doc-selftests.c: Rename to
8243 unittests/command-def-selftests.c
8244 * unittests/command-def-selftests.c (help_doc_tests): Update some
8245 comments.
8246 (command_structure_tests, traverse_command_structure): New namespace
8247 and function.
8248 (command_structure_invariants_tests): New function.
8249 (_initialize_command_def_selftests) Renamed from
8250 _initialize_help_doc_selftests, register command_structure_invariants
8251 selftest.
8252
a7b9ceb8
PW
82532020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8254
8255 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8256 an alias of 'show'.
8257
b2188a06
JB
82582020-05-15 Joel Brobecker <brobecker@adacore.com>
8259
8260 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8261 ada_is_fixed_point_type. Update all callers.
8262 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8263 all callers.
8264 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8265 Update all callers.
8266 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8267 print_fixed_point_type. Update all callers.
8268 * ada-valprint.c (ada_value_print_num): Replace call to
8269 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8270
a51951c2
KB
82712020-05-14 Kevin Buettner <kevinb@redhat.com>
8272
8273 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8274 processors.
8275 (cpu_supports_bts): Add CV_AMD case.
8276
29d6859f
LM
82772020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8278 Simon Marchi <simon.marchi@efficios.com>
8279
8280 * infrun.c (stop_all_threads): Collect multiple wait events at
8281 each pass.
8282
78134374
SM
82832020-05-14 Simon Marchi <simon.marchi@efficios.com>
8284
8285 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8286 type::code instead.
8287
67607e24
SM
82882020-05-14 Simon Marchi <simon.marchi@efficios.com>
8289
8290 * gdbtypes.h (struct type) <code, set_code>: New methods.
8291 (TYPE_CODE): Use type::code. Change all call sites used to set
8292 the code to use type::set_code instead.
8293
a05575d3
TBA
82942020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8295 Tom de Vries <tdevries@suse.de>
8296 Pedro Alves <palves@redhat.com>
8297
8298 PR threads/25478
8299 * infrun.c (stop_all_threads): Do NOT ignore
8300 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8301 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8302 received.
8303 (handle_no_resumed): Remove code handling a live inferior with no
8304 threads.
8305 * remote.c (has_single_non_exited_thread): New.
8306 (remote_target::update_thread_list): Do not delete a thread if is
8307 the last thread of the process.
8308 * thread.c (thread_select): Call delete_exited_threads instead of
8309 prune_threads.
8310
6ad82919
TBA
83112020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8312
8313 * infrun.c (stop_all_threads): Enable/disable thread events of all
8314 targets. Move a debug message denoting the end of the function
8315 into the SCOPED_EXIT block.
8316
d890404b
TBA
83172020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8318
8319 * process-stratum-target.h: Include <set>.
8320 (all_non_exited_process_targets, switch_to_target_no_thread): New
8321 function declarations.
8322 * process-stratum-target.c (all_non_exited_process_targets)
8323 (switch_to_target_no_thread): New function implementations.
8324
293b3ebc
TBA
83252020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8326
8327 * infrun.c (handle_inferior_event): Extract out a piece of code
8328 into...
8329 (mark_non_executing_threads): ...this new function.
8330
7ca9b62a
TBA
83312020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8332
8333 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8334 use.
8335
fc75c28b
TBA
83362020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8337
8338 * regcache.c (regcache_read_pc_protected): New function
8339 implementation that returns 0 if the PC cannot read via
8340 'regcache_read_pc'.
8341 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8342 instead of 'regcache_read_pc'.
8343 (keep_going_pass_signal): Ditto.
8344
a89febbd
TT
83452020-05-13 Tom Tromey <tromey@adacore.com>
8346
8347 * ada-lang.c (align_value): Remove.
8348 (ada_template_to_fixed_record_type_1): Use align_up.
8349
f7e23710
TBA
83502020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8351
8352 * async-event.c: Update the copyright year.
8353 * async-event.h: Update the copyright year.
8354
02ff80c2
SM
83552020-05-12 Simon Marchi <simon.marchi@efficios.com>
8356
8357 * objfiles.h (is_addr_in_objfile,
8358 shared_objfile_contains_address_p): Return bool.
8359 * objfile.c (is_addr_in_objfile,
8360 shared_objfile_contains_address_p): Return bool.
8361
4fd6c7e8
TT
83622020-05-11 Tom Tromey <tromey@adacore.com>
8363
8364 * cli/cli-cmds.c (info_command): Restore.
8365 (_initialize_cli_cmds): Use add_prefix_command for "info".
8366 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8367
5eb68a39
TT
83682020-05-11 Tom Tromey <tromey@adacore.com>
8369
8370 * ada-lang.c (ada_value_primitive_field): Now public.
8371 * ada-lang.h (ada_value_primitive_field): Declare.
8372 * ada-valprint.c (print_field_values): Use
8373 ada_value_primitive_field for wrapper fields.
8374
7666722f
TV
83752020-05-11 Tom de Vries <tdevries@suse.de>
8376
8377 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8378 MODULE_DOMAIN.
8379
3ee6bb11
TV
83802020-05-11 Tom de Vries <tdevries@suse.de>
8381
8382 PR symtab/25941
8383 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8384 with length 0, if not gdb-produced.
8385 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8386
43434996
TV
83872020-05-09 Tom de Vries <tdevries@suse.de>
8388
8389 PR gdb/25955
8390 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8391 calculation.
8392
2f78cffc
TT
83932020-05-09 Tom Tromey <tom@tromey.com>
8394
8395 * top.c (server_command): Now bool.
8396 * top.h (server_command): Now bool.
8397
4f7bc5ed
TT
83982020-05-08 Tom Tromey <tromey@adacore.com>
8399
8400 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8401 already being processed.
8402
8be4b118
TT
84032020-05-08 Tom Tromey <tom@tromey.com>
8404
8405 * printcmd.c (struct display) <next>: Remove.
8406 <display>: New constructor.
8407 <exp_string>: Now a std::string.
8408 <enabled_p>: Now a bool.
8409 (display_number): Move definition earlier.
8410 (displays): Rename from display_chain. Now a std::vector.
8411 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8412 (display_command): Update.
8413 (do_one_display, disable_display)
8414 (enable_disable_display_command, do_enable_disable_display):
8415 Update.
8416 (free_display): Remove.
8417 (clear_displays): Rewrite.
8418 (delete_display): Update.
8419 (map_display_numbers): Use function_view. Remove "data"
8420 parameter. Update.
8421 (do_delete_display): Remove.
8422 (undisplay_command): Update.
8423 (do_one_display, do_displays, disable_display)
8424 (info_display_command): Update.
8425 (do_enable_disable_display): Remove.
8426 (enable_disable_display_command)
8427 (clear_dangling_display_expressions): Update.
8428
94c93c35
TT
84292020-05-08 Tom Tromey <tom@tromey.com>
8430
8431 * symtab.c (set_symbol_cache_size)
8432 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8433 (maintenance_print_symbol_cache_statistics): Update.
8434 * symmisc.c (print_symbol_bcache_statistics)
8435 (print_objfile_statistics, maintenance_print_objfiles)
8436 (maintenance_info_symtabs, maintenance_check_symtabs)
8437 (maintenance_expand_symtabs, maintenance_info_line_tables):
8438 Update.
8439 * symfile-debug.c (set_debug_symfile): Update.
8440 * source.c (forget_cached_source_info): Update.
8441 * python/python.c (gdbpy_progspaces): Update.
8442 * psymtab.c (maintenance_info_psymtabs): Update.
8443 * probe.c (parse_probes): Update.
8444 * linespec.c (iterate_over_all_matching_symtabs)
8445 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8446 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8447 * exec.c (exec_target::close): Update.
8448 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8449 * breakpoint.c (print_one_breakpoint_location)
8450 (create_longjmp_master_breakpoint)
8451 (create_std_terminate_master_breakpoint): Update.
8452 * progspace.c (program_spaces): Now a std::vector.
8453 (maybe_new_address_space): Update.
8454 (add_program_space): Remove.
8455 (program_space::program_space): Update.
8456 (remove_program_space): Update.
8457 (number_of_program_spaces): Remove.
8458 (print_program_space, update_address_spaces): Update.
8459 * progspace.h (program_spaces): Change type.
8460 (ALL_PSPACES): Remove.
8461 (number_of_program_spaces): Don't declare.
8462 (struct program_space) <next>: Remove.
8463
a1fd1ac9
TT
84642020-05-08 Tom Tromey <tom@tromey.com>
8465
8466 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8467 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8468 (enable_break): Update.
8469 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8470 (frv_fdpic_find_canonical_descriptor): Update.
8471 (frv_fetch_objfile_link_map): Update.
8472 * progspace.c (program_space::free_all_objfiles): Update.
8473 (program_space::solibs): New method.
8474 * progspace.h (struct program_space) <solibs>: New method.
8475 * solist.h (master_so_list): Don't declare.
8476 (ALL_SO_LIBS): Remove.
8477 * solib.h (so_list_head): Remove.
8478 (update_solib_list): Update comment.
8479 * solib.c (master_so_list): Remove.
8480 (solib_used, update_solib_list, solib_add)
8481 (info_sharedlibrary_command, clear_solib)
8482 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8483
38eae084
TT
84842020-05-08 Tom Tromey <tom@tromey.com>
8485
8486 * extension.c (extension_languages): Now a std::array.
8487 (ALL_EXTENSION_LANGUAGES): Remove.
8488 (get_ext_lang_defn, get_ext_lang_of_file)
8489 (eval_ext_lang_from_control_command): Update.
8490 (finish_ext_lang_initialization)
8491 (auto_load_ext_lang_scripts_for_objfile)
8492 (ext_lang_type_printers::ext_lang_type_printers)
8493 (apply_ext_lang_type_printers)
8494 (ext_lang_type_printers::~ext_lang_type_printers)
8495 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8496 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8497 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8498 (get_matching_xmethod_workers, ext_lang_colorize)
8499 (ext_lang_before_prompt): Update.
8500 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8501
596dc4ad
TT
85022020-05-08 Tom Tromey <tom@tromey.com>
8503
8504 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8505 overload.
8506 <swap_string, m_string>: Remove.
8507 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8508 Update.
8509 * stabsread.c (define_symbol, read_type): Update.
8510 * linespec.c (find_linespec_symbols): Update.
8511 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8512 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8513 * dbxread.c (read_dbx_symtab): Update.
8514 * cp-support.h (cp_canonicalize_string_full)
8515 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8516 Return unique_xmalloc_ptr.
8517 * cp-support.c (inspect_type): Update.
8518 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8519 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8520 Likewise.
8521 * c-typeprint.c (print_name_maybe_canonical): Update.
8522 * break-catch-throw.c (check_status_exception_catchpoint):
8523 Update.
8524
bf4cb9be
TV
85252020-05-08 Tom de Vries <tdevries@suse.de>
8526
8527 * infrun.c (follow_fork): Copy current_line and current_symtab to
8528 child thread.
8529
a1b68f28
SM
85302020-05-07 Simon Marchi <simon.marchi@efficios.com>
8531
8532 * async-event.c (struct async_signal_handler, struct
8533 async_event_handler): Reformat, remove typedef.
8534
98d48915
SM
85352020-05-07 Simon Marchi <simon.marchi@efficios.com>
8536
8537 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8538 access thistype->main_type->dyn_prop_list directly.
8539
7aa91313
SM
85402020-05-07 Simon Marchi <simon.marchi@efficios.com>
8541
8542 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8543 (remove_dyn_prop): Remove. Update all users to use
8544 type::remove_dyn_prop.
8545 * gdbtypes.c (remove_dyn_prop): Rename to...
8546 (type::remove_dyn_prop): ... this.
8547
5c54719c
SM
85482020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8549
8550 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8551 (add_dyn_prop): Remove. Update all users to use
8552 type::add_dyn_prop.
8553 * gdbtypes.c (add_dyn_prop): Rename to...
8554 (type::add_dyn_prop): ... this.
8555
24e99c6c
SM
85562020-05-07 Simon Marchi <simon.marchi@efficios.com>
8557
8558 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8559 (get_dyn_prop): Remove. Update all users to use
8560 type::dyn_prop.
8561 * gdbtypes.c (get_dyn_prop): Rename to...
8562 (type::dyn_prop): ... this.
8563
0d4bf016
SM
85642020-05-06 Simon Marchi <simon.marchi@efficios.com>
8565
8566 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8567
ac4a4f1c
SM
85682020-05-06 Simon Marchi <simon.marchi@efficios.com>
8569
8570 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8571 instruction, skip it if it's there.
8572
a3bbacc1
SM
85732020-05-05 Simon Marchi <simon.marchi@efficios.com>
8574
8575 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8576
c3236f84
SM
85772020-05-04 Simon Marchi <simon.marchi@efficios.com>
8578
8579 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8580 * gdbtypes.c (recursive_dump_type): Remove use of
8581 TYPE_INCOMPLETE.
8582
3b6acaee
TT
85832020-05-03 Tom Tromey <tom@tromey.com>
8584
8585 * breakpoint.c (catch_command, tcatch_command): Remove.
8586 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8587 add_show_prefix_cmd.
8588 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8589 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8590 Remove.
8591 (add_internal_problem_command): Use add_basic_prefix_cmd,
8592 add_show_prefix_cmd.
8593 * mips-tdep.c (set_mipsfpu_command): Remove.
8594 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8595 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8596 (_initialize_index_cache): Use add_basic_prefix_cmd.
8597 * memattr.c (dummy_cmd): Remove.
8598 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8599 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8600 (_initialize_tui_win): Use add_basic_prefix_cmd,
8601 add_show_prefix_cmd.
8602 * cli/cli-logging.c (set_logging_command): Remove.
8603 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8604 add_show_prefix_cmd.
8605 (show_logging_command): Remove.
8606 * target.c (target_command): Remove.
8607 (add_target): Use add_basic_prefix_cmd.
8608
a51119cd
HD
86092020-05-02 Hannes Domani <ssbssa@yahoo.de>
8610
8611 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8612
652fc23a 86132020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8614
652fc23a
PW
8615 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8616 info_command.
8617
117539e6
KR
86182020-04-30 Kamil Rytarowski <n54@gmx.com>
8619
8620 * nbsd-nat.c (nbsd_enable_proc_events)
8621 (nbsd_nat_target::post_startup_inferior): Add.
8622 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8623 (nbsd_nat_target::update_thread_list): Rewrite.
8624 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8625 "PTRACE_LWP_CREATE".
8626 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8627
102e38eb 86282020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8629
102e38eb
PW
8630 * stack.c (_initialize_stack): Remove duplicated creation
8631 of "frame" command and "f" alias.
8632
ee9d1e5f
HD
86332020-04-30 Hannes Domani <ssbssa@yahoo.de>
8634
8635 PR gdb/18706
8636 * gdbtypes.c (check_typedef): Calculate size of array of
8637 stubbed type.
8638
627c7fb8
HD
86392020-04-30 Hannes Domani <ssbssa@yahoo.de>
8640
8641 PR gdb/15559
8642 * i386-tdep.c (i386_push_dummy_call): Call
8643 i386_thiscall_push_dummy_call.
8644 (i386_thiscall_push_dummy_call): New function.
8645 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8646 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8647 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8648
ffc2844e
SM
86492020-04-29 Simon Marchi <simon.marchi@efficios.com>
8650
8651 * gdbarch.sh (do_read): Add shellcheck disable directive for
8652 warning SC2162.
8653
1207375d
SM
86542020-04-29 Simon Marchi <simon.marchi@efficios.com>
8655
8656 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8657 "referenced but not assigned" warning.
8658
9fdb2916
SM
86592020-04-29 Simon Marchi <simon.marchi@efficios.com>
8660
8661 * gdbarch.sh: Remove code that sets fallbackdefault.
8662
759cea5e
SM
86632020-04-29 Simon Marchi <simon.marchi@efficios.com>
8664
8665 * gdbarch.sh: Use shell operators && and || instead of
8666 -a and -o.
8667
cb02ab24
SM
86682020-04-29 Simon Marchi <simon.marchi@efficios.com>
8669
8670 * gdbarch.sh: Use $(...) instead of `...`.
8671
a6fc5ffc
SM
86722020-04-29 Simon Marchi <simon.marchi@efficios.com>
8673
8674 * gdbarch.sh: Use double quotes around variables.
8675
8d113d13
SM
86762020-04-29 Simon Marchi <simon.marchi@efficios.com>
8677
8678 * gdbarch.sh: Use %s with printf, instead of variables in the
8679 format string.
8680
ed6acedd
TT
86812020-04-29 Tom Tromey <tromey@adacore.com>
8682
8683 PR ada/25875:
8684 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8685 type fields here.
8686 (read_enumeration_type): Call
8687 update_enumeration_type_from_children later. Update comments.
8688 (process_enumeration_scope): Don't create type fields.
8689
b68b1b58
KR
86902020-04-29 Kamil Rytarowski <n54@gmx.com>
8691
8692 * nbsd-tdep.c: Include "xml-syscall.h".
8693 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8694
f94b2e03
KR
86952020-04-29 Kamil Rytarowski <n54@gmx.com>
8696
8697 * nbsd-nat.c: Include "sys/wait.h".
8698 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8699 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8700 (nbsd_nat_target::remove_exec_catchpoint)
8701 (nbsd_nat_target::set_syscall_catchpoint): Add.
8702 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8703 (nbsd_nat_target::insert_exec_catchpoint)
8704 (nbsd_nat_target::remove_exec_catchpoint)
8705 (nbsd_nat_target::set_syscall_catchpoint): Add.
8706 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8707 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8708 `nbsd_get_syscall_number'.
8709
fc49bc72
TT
87102020-04-29 Tom Tromey <tom@tromey.com>
8711
8712 * stack.c (print_block_frame_labels): Remove.
8713
d642b692
HD
87142020-04-29 Hannes Domani <ssbssa@yahoo.de>
8715
8716 PR gdb/17320
8717 * ada-valprint.c (val_print_packed_array_elements): Move array
8718 end bracket to new line.
8719 (ada_val_print_string): Remove extra spaces before first array
8720 element.
8721 * c-valprint.c (c_value_print_array): Likewise.
8722 * m2-valprint.c (m2_print_array_contents): Likewise.
8723 (m2_value_print_inner): Likewise.
8724 * p-valprint.c (pascal_value_print_inner): Likewise.
8725 * valprint.c (generic_val_print_array): Likewise.
8726 (value_print_array_elements): Move first array element and array
8727 end bracket to new line.
8728
ea90f227
TV
87292020-04-29 Tom de Vries <tdevries@suse.de>
8730
8731 PR symtab/25889
8732 * linespec.c (find_method): Fix ix calculation.
8733
4498ef4f
KR
87342020-04-28 Kamil Rytarowski <n54@gmx.com>
8735
8736 * syscalls/update-netbsd.sh: New file.
8737 * syscalls/netbsd.xml: Regenerate.
8738 * data-directory/Makefile.in: Register `netbsd.xml' in
8739 `SYSCALLS_FILES'.
8740
a55e30b5
SM
87412020-04-28 Simon Marchi <simon.marchi@efficios.com>
8742
8743 * syscalls/update-freebsd.sh: Add double quotes.
8744
2b2fbab8
TT
87452020-04-28 Tom Tromey <tom@tromey.com>
8746
8747 * NEWS: Update.
8748 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8749 (cmdpy_init): Allow class_tui.
8750
a65189c9
TV
87512020-04-28 Mark Williams <mark@myosotissp.com>
8752
8753 PR gdb/24480
8754 * dwarf2read.c: Add missing assingments to list_in_scope when
8755 start_symtab was already called.
8756
1b95cdb7
SM
87572020-04-28 Simon Marchi <simon.marchi@efficios.com>
8758
8759 PR gdb/25881
8760 * dwarf2/read.c (offset_map_type): Use
8761 gdb:hash_enum<sect_offset> as hash function.
8762
15cd93d0
TV
87632020-04-28 Tom de Vries <tdevries@suse.de>
8764
8765 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8766 with DW_AT_signature.
8767
1eb39914
SM
87682020-04-27 Simon Marchi <simon.marchi@efficios.com>
8769
8770 * configure.ac: Remove check for fs_base/gs_base in
8771 user_regs_struct.
8772 * configure: Re-generate.
8773 * config.in: Re-generate.
8774 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8775 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8776 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8777
991a3e2e
LM
87782020-04-27 Luis Machado <luis.machado@linaro.org>
8779
8780 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8781 problematic inline frame unwinding situation.
8782 * frame.c (frame_id_computed_p): New function.
8783 * frame.h (frame_id_computed_p): New prototype.
8784
361ba0e8
TT
87852020-04-26 Tom Tromey <tom@tromey.com>
8786
8787 * command.h (enum command_class) <class_pseudo>: Remove.
8788
bc3609fd
PW
87892020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8790
8791 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8792 and whitespace.
8793
b9771db7
KR
87942020-04-25 Kamil Rytarowski <n54@gmx.com>
8795
ec16513e
SM
8796 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8797 `PT_GET_PROCESS_STATE' block.
b9771db7 8798
7151c1af
TT
87992020-04-24 Tom Tromey <tom@tromey.com>
8800
8801 * symtab.h (symbol_get_demangled_name): Don't declare.
8802 * symtab.c (symbol_get_demangled_name): Remove.
8803 (general_symbol_info::natural_name)
8804 (general_symbol_info::demangled_name): Update.
8805
906bb4c5
TT
88062020-04-24 Tom Tromey <tom@tromey.com>
8807
8808 PR rust/25025:
8809 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8810
bcfe6157
TT
88112020-04-24 Tom Tromey <tom@tromey.com>
8812
8813 PR symtab/12707:
8814 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8815 exists.
8816 (new_symbol): Likewise.
8817 * compile/compile-object-load.c (get_out_value_type): Use
8818 symbol_matches_search_name.
8819
f049a313
TT
88202020-04-24 Tom Tromey <tom@tromey.com>
8821
8822 * dwarf2/read.c (add_partial_symbol): Do not call
8823 compute_and_set_names.
8824
76e288d1
TT
88252020-04-24 Tom Tromey <tom@tromey.com>
8826
8827 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8828 overload.
8829
2467f4f6
TT
88302020-04-24 Tom Tromey <tom@tromey.com>
8831
8832 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8833 (add_psymbol_to_list): New overload. Make old overload call new
8834 one.
8835 * psympriv.h (add_psymbol_to_list): New overload.
8836
e61108c9
TT
88372020-04-24 Tom Tromey <tom@tromey.com>
8838
8839 * dwarf2/read.c (partial_die_info::read) <case
8840 DW_AT_linkage_name>: Use value_as_string.
8841 (dwarf2_string_attr): Use value_as_string.
8842 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8843 method.
8844 * dwarf2/attribute.c (attribute::value_as_string): New method.
8845
8c87a452
TT
88462020-04-24 Tom Tromey <tom@tromey.com>
8847
8848 * symtab.c (general_symbol_info::natural_name)
8849 (general_symbol_info::demangled_name): Check for language_rust.
8850
787de330
TT
88512020-04-24 Tom Tromey <tom@tromey.com>
8852
8853 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8854 (dwarf2_physname): ... from here.
8855 (partial_die_info::read): Add Rust "{" hack.
8856
ff985671
TT
88572020-04-24 Tom Tromey <tom@tromey.com>
8858
8859 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8860 method.
8861 (symbol_set_demangled_name): Don't declare.
8862 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8863 symbol_set_demangled_name.
8864 (general_symbol_info::set_language)
8865 (general_symbol_info::compute_and_set_names): Update.
8866 * minsyms.c (minimal_symbol_reader::install): Update.
8867 * dwarf2/read.c (new_symbol): Update.
8868
1acda803
TT
88692020-04-24 Tom Tromey <tromey@adacore.com>
8870
8871 PR python/23662:
8872 * python/py-type.c (convert_field): Handle
8873 FIELD_LOC_KIND_DWARF_BLOCK.
8874 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8875 (typy_get_dynamic): Nw function.
8876 (type_object_getset): Add "dynamic".
8877 * NEWS: Add entry.
8878
d656f129
TT
88792020-04-24 Tom Tromey <tromey@adacore.com>
8880
8881 * ada-typeprint.c (print_choices, print_variant_part)
8882 (print_record_field_types_dynamic): New functions.
8883 (print_record_field_types): Use print_record_field_types_dynamic.
8884
7d79de9a
TT
88852020-04-24 Tom Tromey <tromey@adacore.com>
8886
8887 * dwarf2/read.c (handle_data_member_location): New overload.
8888 (dwarf2_add_field): Use it.
8889 (decode_locdesc): Add "computed" parameter. Update comment.
8890 * gdbtypes.c (is_dynamic_type_internal): Also look for
8891 FIELD_LOC_KIND_DWARF_BLOCK.
8892 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8893 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8894 virtual base classes.
8895 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8896 FIELD_LOC_KIND_DWARF_BLOCK.
8897
f8e89861
TT
88982020-04-24 Tom Tromey <tromey@adacore.com>
8899
8900 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8901 * gdbtypes.c (is_dynamic_type_internal): Check
8902 TYPE_HAS_DYNAMIC_LENGTH.
8903 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8904 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8905 New macros.
8906 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8907 constant.
8908
9c6a1327
TT
89092020-04-24 Tom Tromey <tromey@adacore.com>
8910
8911 * dwarf2/read.c (struct variant_field): Rewrite.
8912 (struct variant_part_builder): New.
8913 (struct nextfield): Remove "variant" field. Add "offset".
8914 (struct field_info): Add "current_variant_part" and
8915 "variant_parts".
8916 (alloc_discriminant_info): Remove.
8917 (alloc_rust_variant): New function.
8918 (quirk_rust_enum): Update.
8919 (dwarf2_add_field): Set "offset" member. Don't handle
8920 DW_TAG_variant_part.
8921 (offset_map_type): New typedef.
8922 (convert_variant_range, create_one_variant)
8923 (create_one_variant_part, create_variant_parts)
8924 (add_variant_property): New functions.
8925 (dwarf2_attach_fields_to_type): Call add_variant_property.
8926 (read_structure_type): Don't handle DW_TAG_variant_part.
8927 (handle_variant_part, handle_variant): New functions.
8928 (handle_struct_member_die): Use them.
8929 (process_structure_scope): Don't handle variant parts.
8930 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8931 (struct discriminant_info): Remove.
8932 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8933 (struct main_type) <flag_discriminated_union>: Remove.
8934 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8935 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8936 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8937 Update.
8938 * valops.c (value_union_variant): Remove.
8939 * value.h (value_union_variant): Don't declare.
8940
b249d2c2
TT
89412020-04-24 Tom Tromey <tromey@adacore.com>
8942
8943 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8944 (ada_value_primitive_packed_val): Update.
8945 * ada-valprint.c (ada_value_print_1): Update.
8946 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8947 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8948 just an address. Use evaluate_for_locexpr_baton.
8949 (dwarf2_evaluate_property): Update.
8950 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8951 array_view.
8952 * findvar.c (default_read_var_value): Update.
8953 * gdbtypes.c (compute_variant_fields_inner)
8954 (resolve_dynamic_type_internal): Update.
8955 (resolve_dynamic_type): Change type of valaddr parameter.
8956 * gdbtypes.h (resolve_dynamic_type): Update.
8957 * valarith.c (value_subscripted_rvalue): Update.
8958 * value.c (value_from_contents_and_address): Update.
8959
61122aa9
TT
89602020-04-24 Tom Tromey <tromey@adacore.com>
8961
8962 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8963 "push_initial_value" parameter.
8964 (dwarf2_evaluate_property): Likewise.
8965 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8966
ef83a141
TT
89672020-04-24 Tom Tromey <tromey@adacore.com>
8968
8969 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8970 (variant::matches, compute_variant_fields_recurse)
8971 (compute_variant_fields_inner, compute_variant_fields): New
8972 functions.
8973 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8974 Use resolved_type after type is made.
8975 (operator==): Add new cases.
8976 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8977 (struct discriminant_range, struct variant, struct variant_part):
8978 New.
8979 (union dynamic_prop_data) <variant_parts, original_type>: New
8980 members.
8981 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8982 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8983 constants.
8984 * value.c (unpack_bits_as_long): Now public.
8985 * value.h (unpack_bits_as_long): Declare.
8986
675127ec
TT
89872020-04-24 Tom Tromey <tromey@adacore.com>
8988
8989 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8990 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8991
9852ceef
HD
89922020-04-24 Hannes Domani <ssbssa@yahoo.de>
8993
8994 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8995
7632c6ce
KR
89962020-04-24 Kamil Rytarowski <n54@gmx.com>
8997
8998 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8999 (remove_fork_catchpoint, post_startup_inferior)
9000 (post_attach): Move...
9001 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9002 (remove_fork_catchpoint, post_startup_inferior)
9003 (post_attach): ...here.
9004 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9005 (remove_fork_catchpoint, post_startup_inferior)
9006 (post_attach): Move...
9007 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9008 (remove_fork_catchpoint, post_startup_inferior)
9009 (post_attach): ...here.
9010
7be2bb4f
TT
90112020-04-24 Tom Tromey <tromey@adacore.com>
9012
9013 * nat/windows-nat.h (struct windows_thread_info)
9014 <pc_adjusted>: New member.
9015 * windows-nat.c (windows_fetch_one_register): Check
9016 pc_adjusted.
9017 (windows_nat_target::get_windows_debug_event)
9018 (windows_nat_target::wait): Set pc_adjusted.
9019
f80cb3b4
TV
90202020-04-24 Tom de Vries <tdevries@suse.de>
9021
9022 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9023 Run gdb-add-index inside temp dir.
9024
29514b87
TT
90252020-04-23 Tom Tromey <tromey@adacore.com>
9026
9027 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9028 in loop.
9029
5939967b
LM
90302020-04-23 Luis Machado <luis.machado@linaro.org>
9031
9032 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9033 get_frame_register instead of gdbarch_unwind_pc.
9034
70bc38f5
TV
90352020-04-23 Tom de Vries <tdevries@suse.de>
9036
9037 * symtab.c (lookup_global_symbol): Prefer def over decl.
9038
de82891c
TV
90392020-04-23 Tom de Vries <tdevries@suse.de>
9040
9041 PR symtab/25807
9042 * block.c (best_symbol, better_symbol): Promote to external.
9043 * block.h (best_symbol, better_symbol): Declare.
9044 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9045 decl.
9046
ecc6c606
TT
90472020-04-23 Tom Tromey <tromey@adacore.com>
9048
9049 PR ada/25837:
9050 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9051 "const char *", not a "const std::string &".
9052 <name_and_matcher::operator==>: Update.
9053 * unittests/lookup_name_info-selftests.c: Change type of
9054 "result".
9055
740480b8
TT
90562020-04-23 Tom Tromey <tom@tromey.com>
9057
9058 * inferior.h (iterate_over_inferiors): Don't declare.
9059 * inferior.c (iterate_over_inferiors): Remove.
9060 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9061 Remove.
9062 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9063 use iterate_over_inferiors.
9064 (darwin_resume_inferior_it)
9065 (struct resume_inferior_threads_param)
9066 (darwin_resume_inferior_threads_it): Remove.
9067 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9068
ae3ab1f0
TV
90692020-04-23 Tom de Vries <tdevries@suse.de>
9070
9071 * blockframe.c (find_pc_partial_function): Use
9072 find_pc_sect_compunit_symtab rather than
9073 objfile->sf->qf->find_pc_sect_compunit_symtab.
9074
317d2668
TV
90752020-04-22 Tom de Vries <tdevries@suse.de>
9076
9077 PR symtab/25764
9078 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9079 in psymtabs.
9080
eea9e357
TV
90812020-04-22 Tom de Vries <tdevries@suse.de>
9082
9083 PR symtab/25801
9084 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9085 symtabs.
9086
3d5afab3
TV
90872020-04-22 Tom de Vries <tdevries@suse.de>
9088
9089 PR symtab/25700
9090 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9091 CU if already created.
9092
d43b7a2d
TBA
90932020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9094
9095 * infrun.c (displaced_step_fixup): Switch to the event_thread
9096 before calling displaced_step_restore, not after.
9097
d89edf9b
MM
90982020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9099
9100 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9101 its inferior is not recorded by us.
9102 (record_btrace_target_open): Replace call to
9103 all_non_exited_threads () with call to current_inferior
9104 ()->non_exited_threads ().
9105 (record_btrace_target::stop_recording): Likewise.
9106 (record_btrace_target::close): Likewise.
9107 (record_btrace_target::wait): Likewise.
9108 (record_btrace_target::record_stop_replaying): Likewise.
9109
5897fd49
MM
91102020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9111
9112 * btrace.c (btrace_enable): Throw an error on double enables and
9113 when enabling recording fails.
9114 (btrace_disable): Throw an error if the thread is not recorded.
9115
1a476b6d
MM
91162020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9117
9118 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9119 request if we do not have a thread_info.
9120
4778a5f8
TV
91212020-04-21 Tom de Vries <tdevries@suse.de>
9122
9123 PR gdb/25471
9124 * thread.c
9125 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9126 exception in get_frame_id.
9127
0fa7617d
TT
91282020-04-20 Tom Tromey <tromey@adacore.com>
9129
9130 * python/python.c (struct gdbpy_event): Mark move constructor as
9131 noexcept.
9132 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9133 constructor as noexcept.
9134 * completer.h (struct completion_result): Mark move constructor as
9135 noexcept.
9136 * completer.c (completion_result::completion_result): Use
9137 initialization style. Don't call reset_match_list.
9138
ad23bda0
MS
91392020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9140
9141 * MAINTAINERS (Write After Approval): Add myself.
9142
45e1f031
TT
91432020-04-18 Tom Tromey <tom@tromey.com>
9144
9145 * windows-tdep.c (init_w32_command_list)
9146 (w32_prefix_command_valid): Restore.
9147 (_initialize_windows_tdep): Call init_w32_command_list.
9148
08feed99
TT
91492020-04-18 Tom Tromey <tom@tromey.com>
9150
9151 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9152 * value.c (value_fn_field): Update.
9153 * valops.c (find_function_in_inferior)
9154 (value_allocate_space_in_inferior): Update.
9155 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9156 Update.
9157 * tui/tui-source.c (tui_source_window::set_contents): Update.
9158 * symtab.c (lookup_global_or_static_symbol)
9159 (find_function_start_sal_1, skip_prologue_sal)
9160 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9161 * symmisc.c (dump_msymbols, dump_symtab_1)
9162 (maintenance_print_one_line_table): Update.
9163 * symfile.c (init_entry_point_info, section_is_mapped)
9164 (list_overlays_command, simple_read_overlay_table)
9165 (simple_overlay_update_1): Update.
9166 * stap-probe.c (handle_stap_probe): Update.
9167 * stabsread.c (dbx_init_float_type, define_symbol)
9168 (read_one_struct_field, read_enum_type, read_range_type): Update.
9169 * source.c (info_line_command): Update.
9170 * python/python.c (gdbpy_source_objfile_script)
9171 (gdbpy_execute_objfile_script): Update.
9172 * python/py-type.c (save_objfile_types): Update.
9173 * python/py-objfile.c (py_free_objfile): Update.
9174 * python/py-inferior.c (python_new_objfile): Update.
9175 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9176 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9177 (maintenance_check_psymtabs): Update.
9178 * printcmd.c (info_address_command): Update.
9179 * objfiles.h (struct objfile) <arch>: New method, from
9180 get_objfile_arch.
9181 (get_objfile_arch): Don't declare.
9182 * objfiles.c (get_objfile_arch): Remove.
9183 (filter_overlapping_sections): Update.
9184 * minsyms.c (msymbol_is_function): Update.
9185 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9186 (output_nondebug_symbol): Update.
9187 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9188 (mdebug_expand_psymtab): Update.
9189 * machoread.c (macho_add_oso_symfile): Update.
9190 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9191 Update.
9192 * linux-fork.c (checkpoint_command): Update.
9193 * linespec.c (convert_linespec_to_sals): Update.
9194 * jit.c (finalize_symtab): Update.
9195 * infrun.c (insert_exception_resume_from_probe): Update.
9196 * ia64-tdep.c (ia64_find_unwind_table): Update.
9197 * hppa-tdep.c (internalize_unwinds): Update.
9198 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9199 Update.
9200 * gcore.c (call_target_sbrk): Update.
9201 * elfread.c (record_minimal_symbol, elf_symtab_read)
9202 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9203 (elf_gnu_ifunc_resolve_by_got): Update.
9204 * dwarf2/read.c (create_addrmap_from_index)
9205 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9206 (read_debug_names_from_section)
9207 (process_psymtab_comp_unit_reader, add_partial_symbol)
9208 (add_partial_subprogram, process_full_comp_unit)
9209 (read_file_scope, read_func_scope, read_lexical_block_scope)
9210 (read_call_site_scope, dwarf2_ranges_read)
9211 (dwarf2_record_block_ranges, dwarf2_add_field)
9212 (mark_common_block_symbol_computed, read_tag_pointer_type)
9213 (read_tag_string_type, dwarf2_init_float_type)
9214 (dwarf2_init_complex_target_type, read_base_type)
9215 (partial_die_info::read, partial_die_info::read)
9216 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9217 (dwarf2_fetch_die_loc_sect_off): Update.
9218 * dwarf2/loc.c (dwarf2_find_location_expression)
9219 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9220 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9221 (dwarf2_loc_desc_get_symbol_read_needs)
9222 (locexpr_describe_location_piece, locexpr_describe_location_1)
9223 (loclist_describe_location): Update.
9224 * dwarf2/index-write.c (write_debug_names): Update.
9225 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9226 * dtrace-probe.c (dtrace_process_dof): Update.
9227 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9228 (process_one_symbol): Update.
9229 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9230 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9231 (coff_read_enum_type): Update.
9232 * cli/cli-cmds.c (edit_command, list_command): Update.
9233 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9234 * breakpoint.c (create_overlay_event_breakpoint)
9235 (create_longjmp_master_breakpoint)
9236 (create_std_terminate_master_breakpoint)
9237 (create_exception_master_breakpoint, get_sal_arch): Update.
9238 * block.c (block_gdbarch): Update.
9239 * annotate.c (annotate_source_line): Update.
9240
0743fc83
TT
92412020-04-17 Tom Tromey <tromey@adacore.com>
9242
9243 * auto-load.c (show_auto_load_cmd): Remove.
9244 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9245 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9246 (maintenance_print_arc_command): Remove.
9247 * tui/tui-win.c (tui_command): Remove.
9248 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9249 * tui/tui-layout.c (tui_layout_command): Remove.
9250 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9251 * python/python.c (user_set_python, user_show_python): Remove.
9252 (_initialize_python): Use add_basic_prefix_cmd,
9253 add_show_prefix_cmd.
9254 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9255 (install_gdb_commands): Use add_basic_prefix_cmd,
9256 add_show_prefix_cmd.
9257 (info_guile_command): Remove.
9258 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9259 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9260 add_show_prefix_cmd.
9261 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9262 Remove do_set and do_show parameters.
9263 * cli/cli-style.c (set_style, show_style): Remove.
9264 (_initialize_cli_style): Use add_basic_prefix_cmd,
9265 add_show_prefix_cmd.
9266 (cli_style_option::add_setshow_commands): Remove do_set and
9267 do_show parameters.
9268 (cli_style_option::add_setshow_commands): Use
9269 add_basic_prefix_cmd, add_show_prefix_cmd.
9270 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9271 (set_style_name): Remove.
9272 * cli/cli-dump.c (dump_command, append_command): Remove.
9273 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9274 (tekhex_dump_command, binary_dump_command)
9275 (binary_append_command): Remove.
9276 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9277 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9278 (init_w32_command_list): Remove; move into ...
9279 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9280 * valprint.c (set_print, show_print, set_print_raw)
9281 (show_print_raw): Remove.
9282 (_initialize_valprint): Use add_basic_prefix_cmd,
9283 add_show_prefix_cmd.
9284 * typeprint.c (set_print_type, show_print_type): Remove.
9285 (_initialize_typeprint): Use add_basic_prefix_cmd,
9286 add_show_prefix_cmd.
9287 * record.c (set_record_command, show_record_command): Remove.
9288 (_initialize_record): Use add_basic_prefix_cmd,
9289 add_show_prefix_cmd.
9290 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9291 add_show_prefix_cmd.
9292 (info_command, show_command, set_debug, show_debug): Remove.
9293 * top.h (set_history, show_history): Don't declare.
9294 * top.c (set_history, show_history): Remove.
9295 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9296 (unset_tdesc_cmd): Remove.
9297 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9298 add_show_prefix_cmd.
9299 * symtab.c (info_module_command): Remove.
9300 (_initialize_symtab): Use add_basic_prefix_cmd.
9301 * symfile.c (overlay_command): Remove.
9302 (_initialize_symfile): Use add_basic_prefix_cmd.
9303 * sparc64-tdep.c (info_adi_command): Remove.
9304 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9305 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9306 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9307 add_show_prefix_cmd.
9308 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9309 (_initialize_serial): Use add_basic_prefix_cmd,
9310 add_show_prefix_cmd.
9311 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9312 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9313 add_show_prefix_cmd.
9314 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9315 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9316 add_show_prefix_cmd.
9317 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9318 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9319 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9320 add_show_prefix_cmd.
9321 * remote.c (remote_command, set_remote_cmd): Remove.
9322 (_initialize_remote): Use add_basic_prefix_cmd.
9323 * record-full.c (set_record_full_command)
9324 (show_record_full_command): Remove.
9325 (_initialize_record_full): Use add_basic_prefix_cmd,
9326 add_show_prefix_cmd.
9327 * record-btrace.c (cmd_set_record_btrace)
9328 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9329 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9330 (cmd_show_record_btrace_pt): Remove.
9331 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9332 add_show_prefix_cmd.
9333 * ravenscar-thread.c (set_ravenscar_command)
9334 (show_ravenscar_command): Remove.
9335 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9336 add_show_prefix_cmd.
9337 * mips-tdep.c (show_mips_command, set_mips_command)
9338 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9339 add_show_prefix_cmd.
9340 * maint.c (maintenance_command, maintenance_info_command)
9341 (maintenance_check_command, maintenance_print_command)
9342 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9343 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9344 add_show_prefix_cmd.
9345 (show_per_command_cmd): Remove.
9346 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9347 Remove.
9348 (maintenance_show_test_settings_cmd): Remove.
9349 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9350 add_show_prefix_cmd.
9351 * maint-test-options.c (maintenance_test_options_command):
9352 Remove.
9353 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9354 * macrocmd.c (macro_command): Remove
9355 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9356 * language.c (set_check, show_check): Remove.
9357 (_initialize_language): Use add_basic_prefix_cmd,
9358 add_show_prefix_cmd.
9359 * infcmd.c (unset_command): Remove.
9360 (_initialize_infcmd): Use add_basic_prefix_cmd.
9361 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9362 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9363 add_show_prefix_cmd.
9364 * go32-nat.c (go32_info_dos_command): Remove.
9365 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9366 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9367 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9368 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9369 (_initialize_frame): Use add_basic_prefix_cmd,
9370 add_show_prefix_cmd.
9371 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9372 (_initialize_dcache): Use add_basic_prefix_cmd,
9373 add_show_prefix_cmd.
9374 * cp-support.c (maint_cplus_command): Remove.
9375 (_initialize_cp_support): Use add_basic_prefix_cmd.
9376 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9377 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9378 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9379 add_basic_prefix_cmd, add_show_prefix_cmd.
9380 * breakpoint.c (save_command): Remove.
9381 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9382 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9383 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9384 add_show_prefix_cmd.
9385 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9386 (set_ada_command, show_ada_command): Remove.
9387 (_initialize_ada_language): Use add_basic_prefix_cmd,
9388 add_show_prefix_cmd.
9389 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9390
3557f442
KR
93912020-04-16 Kamil Rytarowski <n54@gmx.com>
9392
9393 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9394 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9395
16197208
SM
93962020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9397
9398 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9399 warning messages.
9400
00ac85d3
SM
94012020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9402
9403 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9404 import table is not at beginning of .idata section.
9405
381ce63f
PA
94062020-04-16 Pedro Alves <palves@redhat.com>
9407
9408 * inferior.c (delete_inferior): Use delete operator directly
9409 instead of delete_program_space.
9410 * progspace.c (add_program_space): New, factored out from
9411 program_space::program_space.
9412 (remove_program_space): New, factored out from
9413 delete_program_space.
9414 (program_space::program_space): Remove intro comment. Rewrite.
9415 (program_space::~program_space): Remove intro comment. Call
9416 remove_program_space.
9417 (delete_program_space): Delete.
9418 * progspace.h (program_space::program_space): Make explicit. Move
9419 intro comment here, adjusted.
9420 (program_space::~program_space): Move intro comment here,
9421 adjusted.
9422 (delete_program_space): Remove.
9423
a010605f
TT
94242020-04-16 Tom Tromey <tromey@adacore.com>
9425
9426 * windows-nat.c (windows_nat::handle_access_violation): New
9427 function.
9428 * nat/windows-nat.h (handle_access_violation): Declare.
9429 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9430 windows-nat.c. Call handle_access_violation.
9431
efba5c23
TV
94322020-04-16 Tom de Vries <tdevries@suse.de>
9433
9434 PR symtab/25791
9435 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9436 CUs without psymtab.
9437
97ed802d
KB
94382020-04-16 Kevin Buettner <kevinb@redhat.com>
9439
9440 * python/python.c (do_start_initialization): Don't call
9441 PyEval_InitThreads for Python 3.9 and beyond.
9442
c7d64809
KR
94432020-04-15 Kamil Rytarowski <n54@gmx.com>
9444
9445 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9446 thread functions.
9447 (obsd_nat_target::wait): Likewise.
9448
ce127a96
TT
94492020-04-15 Tom Tromey <tromey@adacore.com>
9450
9451 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9452 (DEBUG_EXCEPT): Use debug_printf.
9453
99f1bc6a
AB
94542020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9455
9456 * completer.c (class completion_tracker::completion_hash_entry)
9457 <hash_name>: New member function.
9458 (completion_tracker::discard_completions): New callback to hash a
9459 completion_hash_entry, pass this to htab_create_alloc.
9460
a0e9b532
JT
94612016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9462
9463 * windows-nat.c (windows_make_so): Warn rather than stopping with
9464 an error if realpath() fails.
9465
06ca5dd4
KR
94662020-04-14 Kamil Rytarowski <n54@gmx.com>
9467
9468 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9469 (nbsd_nat_target::info_proc): Add do_status.
9470
194d088f
TV
94712020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9472 Tom de Vries <tdevries@suse.de>
9473
9474 PR symtab/25718
9475 * psympriv.h (struct partial_symtab::read_symtab)
9476 (struct partial_symtab::expand_psymtab)
9477 (struct partial_symtab::read_dependencies): Update comments.
9478 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9479 read_symtab for includer.
9480 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9481 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9482 (struct dwarf2_include_psymtab::m_readin): Remove.
9483 (struct dwarf2_include_psymtab::includer): New member function.
9484 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9485
c1a66c06
TV
94862020-04-14 Tom de Vries <tdevries@suse.de>
9487
9488 PR symtab/25720
9489 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9490 with NULL symbol_matcher and lookup_name.
9491 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9492 and lookup_name.
9493 * dwarf2/read.c (dw2_expand_symtabs_matching)
9494 (dw2_debug_names_expand_symtabs_matching): Same.
9495 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9496 Make lookup_name a pointer. Update comment.
9497 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9498 lookup_name being a pointer.
9499 * symfile.c (expand_symtabs_matching): Same.
9500 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9501 * linespec.c (iterate_over_all_matching_symtabs): Same.
9502
400b5eca
TT
95032020-04-13 Tom Tromey <tom@tromey.com>
9504
9505 * run-on-main-thread.c: Update include.
9506 * unittests/main-thread-selftests.c: Update include.
9507 * tui/tui-win.c: Update include.
9508 * tui/tui-io.c: Update include.
9509 * tui/tui-interp.c: Update include.
9510 * tui/tui-hooks.c: Update include.
9511 * top.h: Update include.
9512 * top.c: Update include.
9513 * ser-base.c: Update include.
9514 * remote.c: Update include.
9515 * remote-notif.c: Update include.
9516 * remote-fileio.c: Update include.
9517 * record-full.c: Update include.
9518 * record-btrace.c: Update include.
9519 * python/python.c: Update include.
9520 * posix-hdep.c: Update include.
9521 * mingw-hdep.c: Update include.
9522 * mi/mi-main.c: Update include.
9523 * mi/mi-interp.c: Update include.
9524 * main.c: Update include.
9525 * linux-nat.c: Update include.
9526 * interps.c: Update include.
9527 * infrun.c: Update include.
9528 * inf-loop.c: Update include.
9529 * event-top.c: Update include.
9530 * event-loop.c: Move to ../gdbsupport/.
9531 * event-loop.h: Move to ../gdbsupport/.
9532 * async-event.h: Update include.
9533 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9534
93b54c8e
TT
95352020-04-13 Tom Tromey <tom@tromey.com>
9536
9537 * tui/tui-win.c: Include async-event.h.
9538 * remote.c: Include async-event.h.
9539 * remote-notif.c: Include async-event.h.
9540 * record-full.c: Include async-event.h.
9541 * record-btrace.c: Include async-event.h.
9542 * infrun.c: Include async-event.h.
9543 * event-top.c: Include async-event.h.
9544 * event-loop.h: Move some declarations to async-event.h.
9545 * event-loop.c: Don't include ser-event.h or top.h. Move some
9546 code to async-event.c.
9547 * async-event.h: New file.
9548 * async-event.c: New file.
9549 * Makefile.in (COMMON_SFILES): Add async-event.c.
9550 (HFILES_NO_SRCDIR): Add async-event.h.
9551
c1cd3163
TT
95522020-04-13 Tom Tromey <tom@tromey.com>
9553
9554 * utils.c (flush_streams): New function.
9555 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9556
29f2bf4f
TT
95572020-04-13 Tom Tromey <tom@tromey.com>
9558
9559 * event-loop.c (handle_file_event): Use warning, not
9560 printf_unfiltered.
9561
98029d02
TT
95622020-04-13 Tom Tromey <tom@tromey.com>
9563
9564 * event-loop.c: Include <chrono>.
9565
06cc9596
TT
95662020-04-13 Tom Tromey <tom@tromey.com>
9567
9568 * gdb_select.h: Move to ../gdbsupport/.
9569 * event-loop.c: Update include path.
9570 * top.c: Update include path.
9571 * ser-base.c: Update include path.
9572 * ui-file.c: Update include path.
9573 * ser-tcp.c: Update include path.
9574 * guile/scm-ports.c: Update include path.
9575 * posix-hdep.c: Update include path.
9576 * ser-unix.c: Update include path.
9577 * gdb_usleep.c: Update include path.
9578 * mingw-hdep.c: Update include path.
9579 * inflow.c: Update include path.
9580 * infrun.c: Update include path.
9581 * event-top.c: Update include path.
9582
8ae8e197
TT
95832020-04-13 Tom Tromey <tom@tromey.com>
9584
9585 * configure: Rebuild.
9586 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9587
58cf28e8
TT
95882020-04-13 Tom Tromey <tom@tromey.com>
9589
9590 * event-loop.h (start_event_loop): Don't declare.
9591 * event-loop.c (start_event_loop): Move...
9592 * main.c (start_event_loop): ...here. Now static.
9593
b7f999ae
SDJ
95942020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9595
9596 * MAINTAINERS: Update my email address.
9597
1085dfd4
KR
95982020-04-12 Kamil Rytarowski <n54@gmx.com>
9599
9600 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9601 IP_ALL.
9602
49d1d1f5
KR
96032020-04-12 Kamil Rytarowski <n54@gmx.com>
9604
9605 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 9606 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 9607
b4848d2a
KR
96082020-04-12 Kamil Rytarowski <n54@gmx.com>
9609
9610 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 9611 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 9612
51c133d5
KR
96132020-04-12 Kamil Rytarowski <n54@gmx.com>
9614
9615 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9616
54b8cbd0
KR
96172020-04-11 Kamil Rytarowski <n54@gmx.com>
9618
9619 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9620 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9621 (nbsd_nat_target::info_proc): New functions.
9622 * nbsd-nat.c (kinfo_get_vmmap): New function.
9623 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9624 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9625 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9626 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9627 functions.
9628 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9629 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9630 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9631 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9632 (KINFO_VME_FLAG_GROWS_DOWN): New.
9633
cf83625d
AS
96342020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9635
9636 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9637 bit shift.
9638
0c4311ab
TT
96392020-04-10 Tom Tromey <tromey@adacore.com>
9640
9641 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9642
3e65b3e9
TT
96432020-04-10 Tom Tromey <tromey@adacore.com>
9644
9645 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9646 separate debug files.
9647
13302e95
HD
96482020-04-10 Hannes Domani <ssbssa@yahoo.de>
9649
9650 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9651 Move to...
9652 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9653 ... here.
9654 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9655 Check for STATUS_WX86_BREAKPOINT.
9656 (windows_nat_target::wait): Same.
9657
bdfc1e8a
TV
96582020-04-10 Tom de Vries <tdevries@suse.de>
9659
9660 PR cli/25808
9661 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9662
f4460aec
SM
96632020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9664
9665 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9666 (Write After Approval): Remove Tom de Vries.
9667
a25198bb
BE
96682020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9669
9670 revert partially:
9671 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9672
aac66a4c
SM
9673 * buildsym.c (record_line): Fix undefined behavior and preserve
9674 lines at eof.
a25198bb 9675
206c98a6
KR
96762020-04-09 Kamil Rytarowski <n54@gmx.com>
9677
9678 * auxv.h (svr4_auxv_parse): New.
9679 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9680 and generic_auxv_parse.
9681 (svr4_auxv_parse): Add.
9682 * obsd-tdep.c: Include "auxv.h".
9683 (obsd_auxv_parse): Remove.
9684 (obsd_init_abi): Remove comment.
9685 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9686 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9687 * nbsd-tdep.c: Include "auxv.h".
9688 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9689
71fbdbaf
TT
96902020-04-08 Tom Tromey <tromey@adacore.com>
9691
9692 * nat/windows-nat.h (last_wait_event): Don't declare.
9693 (wait_for_debug_event): Update comment.
9694 * nat/windows-nat.c (last_wait_event): Now static.
9695
2c1d95e8
TT
96962020-04-08 Tom Tromey <tromey@adacore.com>
9697
9698 * windows-nat.c (wait_for_debug_event): Move to
9699 nat/windows-nat.c.
9700 * nat/windows-nat.h (wait_for_debug_event): Declare.
9701 * nat/windows-nat.c (wait_for_debug_event): Move from
9702 windows-nat.c. No longer static.
9703
d2977bc4
TT
97042020-04-08 Tom Tromey <tromey@adacore.com>
9705
9706 * windows-nat.c (get_windows_debug_event): Use
9707 fetch_pending_stop.
9708 * nat/windows-nat.h (fetch_pending_stop): Declare.
9709 * nat/windows-nat.c (fetch_pending_stop): New function.
9710
e758e19c
TT
97112020-04-08 Tom Tromey <tromey@adacore.com>
9712
9713 * windows-nat.c (windows_continue): Use matching_pending_stop and
9714 continue_last_debug_event.
9715 * nat/windows-nat.h (matching_pending_stop)
9716 (continue_last_debug_event): Declare.
9717 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9718 (matching_pending_stop, continue_last_debug_event): New
9719 functions.
9720
8d30e395
TT
97212020-04-08 Tom Tromey <tromey@adacore.com>
9722
9723 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9724 (handle_exception_result): Move to nat/windows-nat.h.
9725 (DEBUG_EXCEPTION_SIMPLE): Remove.
9726 (windows_nat::handle_ms_vc_exception): New function.
9727 (handle_exception): Move to nat/windows-nat.c.
9728 (get_windows_debug_event): Update.
9729 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9730 nat/windows-nat.c.
9731 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9732 (handle_exception_result): Move from windows-nat.c.
9733 (handle_exception): Declare.
9734 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9735 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9736 windows-nat.c.
9737
29de418d
TT
97382020-04-08 Tom Tromey <tromey@adacore.com>
9739
9740 * windows-nat.c (exception_count, event_count): Remove.
9741 (handle_exception, get_windows_debug_event)
9742 (do_initial_windows_stuff): Update.
9743
a816ba18
TT
97442020-04-08 Tom Tromey <tromey@adacore.com>
9745
9746 * windows-nat.c (windows_nat::handle_load_dll)
9747 (windows_nat::handle_unload_dll): Rename. No longer static.
9748 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9749 Declare.
9750
a00caa12
TT
97512020-04-08 Tom Tromey <tromey@adacore.com>
9752
9753 * complaints.h (stop_whining): Declare at top-level.
9754 (complaint): Don't declare stop_whining.
9755
d41b524f
TT
97562020-04-08 Tom Tromey <tromey@adacore.com>
9757
9758 * windows-nat.c (windows_nat::handle_output_debug_string):
9759 Rename. No longer static.
9760 * nat/windows-nat.h (handle_output_debug_string): Declare.
9761
3c76026d
TT
97622020-04-08 Tom Tromey <tromey@adacore.com>
9763
9764 * windows-nat.c (current_process_handle, current_process_id)
9765 (main_thread_id, last_sig, current_event, last_wait_event)
9766 (current_windows_thread, desired_stop_thread_id, pending_stops)
9767 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9768 (display_selectors, fake_create_process)
9769 (get_windows_debug_event): Update.
9770 * nat/windows-nat.h (current_process_handle, current_process_id)
9771 (main_thread_id, last_sig, current_event, last_wait_event)
9772 (current_windows_thread, desired_stop_thread_id, pending_stops)
9773 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9774 * nat/windows-nat.c (current_process_handle, current_process_id)
9775 (main_thread_id, last_sig, current_event, last_wait_event)
9776 (current_windows_thread, desired_stop_thread_id, pending_stops)
9777 (siginfo_er): New globals. Move from windows-nat.c.
9778
9d8679cc
TT
97792020-04-08 Tom Tromey <tromey@adacore.com>
9780
9781 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9782 (handle_load_dll): Update.
9783 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9784
28688adf
TT
97852020-04-08 Tom Tromey <tromey@adacore.com>
9786
9787 * windows-nat.c (enum thread_disposition_type): Move to
9788 nat/windows-nat.h.
9789 (windows_nat::thread_rec): Rename from thread_rec. No longer
9790 static.
9791 (windows_add_thread, windows_nat_target::fetch_registers)
9792 (windows_nat_target::store_registers, handle_exception)
9793 (windows_nat_target::resume, get_windows_debug_event)
9794 (windows_nat_target::get_tib_address)
9795 (windows_nat_target::thread_name)
9796 (windows_nat_target::thread_alive): Update.
9797 * nat/windows-nat.h (enum thread_disposition_type): Move from
9798 windows-nat.c.
9799 (thread_rec): Declare.
9800
4834dad0
TT
98012020-04-08 Tom Tromey <tromey@adacore.com>
9802
9803 * windows-nat.c: Add "using namespace".
9804 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9805 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9806
65bafd5b
TT
98072020-04-08 Tom Tromey <tromey@adacore.com>
9808
9809 * nat/windows-nat.h (struct windows_thread_info): Declare
9810 destructor.
9811 * nat/windows-nat.c (~windows_thread_info): New.
9812
0a4afda3
TT
98132020-04-08 Tom Tromey <tromey@adacore.com>
9814
9815 PR gdb/22992
9816 * windows-nat.c (current_event): Update comment.
9817 (last_wait_event, desired_stop_thread_id): New globals.
9818 (struct pending_stop): New.
9819 (pending_stops): New global.
9820 (windows_nat_target) <stopped_by_sw_breakpoint>
9821 <supports_stopped_by_sw_breakpoint>: New methods.
9822 (windows_fetch_one_register): Add assertions. Adjust PC.
9823 (windows_continue): Handle pending stops. Suspend other threads
9824 when stepping. Use last_wait_event
9825 (wait_for_debug_event): New function.
9826 (get_windows_debug_event): Use wait_for_debug_event. Handle
9827 pending stops. Queue spurious stops.
9828 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9829 (windows_nat_target::kill): Use wait_for_debug_event.
9830 * nat/windows-nat.h (struct windows_thread_info)
9831 <stopped_at_software_breakpoint>: New field.
9832 * nat/windows-nat.c (windows_thread_info::resume): Clear
9833 stopped_at_software_breakpoint.
9834
8e61ebec
TT
98352020-04-08 Tom Tromey <tromey@adacore.com>
9836
9837 * windows-nat.c (enum thread_disposition_type): New.
9838 (thread_rec): Replace "get_context" parameter with "disposition";
9839 change type.
9840 (windows_add_thread, windows_nat_target::fetch_registers)
9841 (windows_nat_target::store_registers, handle_exception)
9842 (windows_nat_target::resume, get_windows_debug_event)
9843 (windows_nat_target::get_tib_address)
9844 (windows_nat_target::thread_name)
9845 (windows_nat_target::thread_alive): Update.
9846
98a03287
TT
98472020-04-08 Tom Tromey <tromey@adacore.com>
9848
9849 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9850 (windows_continue): Use windows_continue::resume.
9851 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9852 resume>: Declare new methods.
9853 * nat/windows-nat.c: New file.
9854 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9855
7c7411bc
TT
98562020-04-08 Tom Tromey <tromey@adacore.com>
9857
9858 * windows-nat.c (windows_add_thread, windows_delete_thread)
9859 (windows_nat_target::fetch_registers)
9860 (windows_nat_target::store_registers, fake_create_process)
9861 (windows_nat_target::resume, windows_nat_target::resume)
9862 (get_windows_debug_event, windows_nat_target::wait)
9863 (windows_nat_target::pid_to_str)
9864 (windows_nat_target::get_tib_address)
9865 (windows_nat_target::get_ada_task_ptid)
9866 (windows_nat_target::thread_name)
9867 (windows_nat_target::thread_alive): Use lwp, not tid.
9868
2950fdf7
TT
98692020-04-08 Tom Tromey <tromey@adacore.com>
9870
9871 * windows-nat.c (handle_exception)
9872 (windows_nat_target::thread_name): Update.
9873 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9874 <name>: Now unique_xmalloc_ptr.
9875
62fe396b
TT
98762020-04-08 Tom Tromey <tromey@adacore.com>
9877
9878 * windows-nat.c (thread_rec)
9879 (windows_nat_target::fetch_registers): Update.
9880 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9881 Update comment.
9882 <debug_registers_changed, reload_context>: Now bool.
9883
e9534bd2
TT
98842020-04-08 Tom Tromey <tromey@adacore.com>
9885
9886 * windows-nat.c (windows_add_thread): Use new.
9887 (windows_init_thread_list, windows_delete_thread): Use delete.
9888 (get_windows_debug_event): Update.
9889 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9890 destructor, and initializers.
9891
ae1f8880
TT
98922020-04-08 Tom Tromey <tromey@adacore.com>
9893
9894 * windows-nat.c (struct windows_thread_info): Remove.
9895 * nat/windows-nat.h: New file.
9896
55a1e039
TT
98972020-04-08 Tom Tromey <tromey@adacore.com>
9898
9899 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9900 (thread_rec, windows_add_thread, windows_delete_thread)
9901 (windows_continue): Update.
9902
93366324
TT
99032020-04-08 Tom Tromey <tromey@adacore.com>
9904
9905 * windows-nat.c (struct windows_thread_info): Remove typedef.
9906 (thread_head): Remove.
9907 (thread_list): New global.
9908 (thread_rec, windows_add_thread, windows_init_thread_list)
9909 (windows_delete_thread, windows_continue): Update.
9910
0f2265e2
SM
99112020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9912
9913 * windows-tdep.h (windows_init_abi): Add comment.
9914 (cygwin_init_abi): New declaration.
9915 * windows-tdep.c: Split signal enumeration in two, one for
9916 Windows and one for Cygwin.
9917 (windows_gdb_signal_to_target): Only deal with signal of the
9918 Windows OS ABI.
9919 (cygwin_gdb_signal_to_target): New function.
9920 (windows_init_abi): Rename to windows_init_abi_common, don't set
9921 gdb_signal_to_target gdbarch method. Add new new function with
9922 this name.
9923 (cygwin_init_abi): New function.
9924 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9925 comment. Don't call windows_init_abi.
9926 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9927 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9928 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9929 i386_windows_init_abi_common, don't call windows_init_abi. Add
9930 a new function of this name.
9931 (i386_cygwin_init_abi): New function.
9932 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9933 OS ABI Cygwin.
9934
3810f182
SM
99352020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9936
9937 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9938 parameter.c.
9939 (dwarf2_read_gdb_index): Update.
9940
063f8e80
KR
99412020-04-07 Kamil Rytarowski <n54@gmx.com>
9942
9943 * nbsd-tdep.c: Include "objfiles.h".
9944 (nbsd_skip_solib_resolver): New.
9945 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9946
85a9510c 99472020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9948
9949 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9950 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9951 with DW_LLE_base_addressx are being emitted in DWARFv5.
9952 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9953 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9954 unsigned integer.
9955
9fc3eaae 99562020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9957
9958 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9959 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9960 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9961 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9962 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9963 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9964 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9965
9966
41144253 99672020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9968
9969 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9970 (read_loclist_index): New function definition.
9971 (lookup_loclist_base): New function definition.
9972 (read_loclist_header): New function definition.
9973 (dwarf2_cu): Add loclist_base and loclist_header field.
9974 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9975 (read_full_die_1): Read the value of DW_AT_loclists_base.
9976 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9977 (read_attribute_value): Handle DW_FORM_loclistx.
9978 (skip_one_die): Handle DW_FORM_loclistx.
9979 (loclist_header): New structure declaration.
9980 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9981
9f4e76a4
SM
99822020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9983
9984 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9985 constructor. Remove `addr` parameter from other constructor and
9986 add `per_cu` parameter.
9987 * dwarf2/read.c (create_partial_symtab): Update.
9988
25c11aca
TV
99892020-04-07 Tom de Vries <tdevries@suse.de>
9990
9991 PR symtab/25796
9992 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9993 (partial_die_info::fixup): Inherit has_const_value.
9994
5707e24b
TV
99952020-04-07 Tom de Vries <tdevries@suse.de>
9996
9997 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9998 symbols without address.
9999
05f00e22
KR
100002020-04-06 Kamil Rytarowski <n54@gmx.com>
10001
10002 * nbsd-nat.h (struct thread_info): Add forward declaration.
10003 (nbsd_nat_target::thread_alive): Add.
10004 (nbsd_nat_target::thread_name): Likewise.
10005 (nbsd_nat_target::update_thread_list): Likewise.
10006 (update_thread_list::post_attach): Likewise.
10007 (post_attach::pid_to_str): Likewise.
10008 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10009 (nbsd_thread_lister): Add.
10010 (nbsd_nat_target::thread_alive): Likewise.
10011 (nbsd_nat_target::thread_name): Likewise.
10012 (nbsd_add_threads): Likewise.
10013 (update_thread_list::post_attach): Likewise.
10014 (nbsd_nat_target::update_thread_list): Likewise.
10015 (post_attach::pid_to_str): Likewise.
10016
6ee448cc
TT
100172020-04-06 Tom Tromey <tromey@adacore.com>
10018
10019 * ada-valprint.c (print_variant_part): Extract the variant field.
10020 (print_field_values): Use the field as the outer value when
10021 recursing.
10022
dea34e8c
TT
100232020-04-06 Tom Tromey <tromey@adacore.com>
10024
10025 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10026 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10027 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10028 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10029 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10030
93689ce9
TT
100312020-04-06 Tom Tromey <tromey@adacore.com>
10032
10033 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10034 TYPE_CODE_ERROR.
10035
79743962
KR
100362020-04-06 Kamil Rytarowski <n54@gmx.com>
10037
10038 * nbsd-tdep.c: Include "gdbarch.h".
10039 Define enum with NetBSD signal numbers.
10040 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10041 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10042 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10043 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10044 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10045 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10046 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10047 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10048 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10049 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10050 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10051 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10052
9e7c9a03
HD
100532020-04-03 Hannes Domani <ssbssa@yahoo.de>
10054
10055 PR gdb/25325
10056 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10057
d9e49b61
TT
100582020-04-03 Tom Tromey <tromey@adacore.com>
10059
10060 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10061 Read constant block.
10062
e0fc5c3f
SM
100632020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10064
10065 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10066 (gdb_bfd_get_full_section_contents): New declaration.
10067 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10068 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10069 gdb_bfd_get_full_section_contents.
10070
e2ff18a0
SM
100712020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10072
10073 * exec.c (build_section_table): Replace internal_error with
10074 gdb_assert.
10075 (section_table_xfer_memory_partial): Likewise.
10076 * mdebugread.c (parse_partial_symbols): Likewise.
10077 * psymtab.c (lookup_partial_symbol): Likewise.
10078 * utils.c (wrap_here): Likewise.
10079
0830d301
TT
100802020-04-02 Tom Tromey <tromey@adacore.com>
10081
10082 * f-lang.c (build_fortran_types): Use arch_type to initialize
10083 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10084
e7da7f8f
TT
100852020-04-02 Tom Tromey <tromey@adacore.com>
10086
10087 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10088 of attributes.
10089
c90d28ac
AB
100902020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10091 Bernd Edlinger <bernd.edlinger@hotmail.de>
10092 Tom Tromey <tromey@adacore.com>
10093
10094 * buildsym.c (buildsym_compunit::record_line): Remove
10095 deduplication code.
10096
1aa98955
TV
100972020-04-02 Tom de Vries <tdevries@suse.de>
10098
10099 PR ada/24671
10100 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10101
d3214198
TV
101022020-04-02 Tom de Vries <tdevries@suse.de>
10103
10104 * dwarf2/read.c (dwarf2_gdb_index_functions,
10105 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10106 NULL.
10107 * psymtab.c (psym_lookup_global_symbol_language): New function.
10108 (psym_functions): Init psym_lookup_global_symbol_language with
10109 psym_lookup_global_symbol_language.
10110 * symfile-debug.c (debug_sym_quick_functions): Init
10111 lookup_global_symbol_language with NULL.
10112 * symfile.c (set_initial_language): Remove fixme comment.
10113 * symfile.h (struct quick_symbol_functions): Add
10114 lookup_global_symbol_language.
10115 * symtab.c (find_quick_global_symbol_language): New function.
10116 (find_main_name): Use find_quick_global_symbol_language.
10117
2836752f
SM
101182020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10119
10120 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10121
64dc2d4b
BE
101222020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10123
10124 * buildsym.c (record_line): Fix undefined behavior and preserve
10125 lines at eof.
10126
bbe3dc41
BE
101272020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10128
10129 * buildsym.c (record_line): Fix the resizing condition.
10130
6b4a335b
TT
101312020-04-01 Tom Tromey <tom@tromey.com>
10132
10133 * value.h (value_literal_complex): Add comment.
10134 * valops.c (value_literal_complex): Refer to value.h.
10135
3638a098
TT
101362020-04-01 Tom Tromey <tom@tromey.com>
10137
10138 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10139 (scalar_type): New rule, from typebase.
10140 (typebase): Use scalar_type. Recognize complex types.
10141 (field_name): Handle FLOAT_KEYWORD.
10142 (ident_tokens): Add _Complex and __complex__.
10143
c34e8714
TT
101442020-04-01 Tom Tromey <tom@tromey.com>
10145
10146 PR exp/25299:
10147 * valarith.c (promotion_type, complex_binop): New functions.
10148 (scalar_binop): Handle complex numbers. Use promotion_type.
10149 (value_pos, value_neg, value_complement): Handle complex numbers.
10150
fa649bb7
TT
101512020-04-01 Tom Tromey <tom@tromey.com>
10152
10153 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10154 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10155 (parse_number): Handle complex numbers.
10156
981c08ce
TT
101572020-04-01 Tom Tromey <tom@tromey.com>
10158
10159 * c-valprint.c (c_decorations): Change complex suffix to "i".
10160
4c99290d
TT
101612020-04-01 Tom Tromey <tom@tromey.com>
10162
10163 * valprint.c (generic_value_print_complex): Use accessors.
10164 * value.h (value_real_part, value_imaginary_part): Declare.
10165 * valops.c (value_real_part, value_imaginary_part): New
10166 functions.
10167 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10168
5b930b45
TT
101692020-04-01 Tom Tromey <tom@tromey.com>
10170
10171 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10172 (read_range_type): Update.
10173 * mdebugread.c (basic_type): Update.
10174 * go-lang.c (build_go_types): Use init_complex_type.
10175 * gdbtypes.h (struct main_type) <complex_type>: New member.
10176 (init_complex_type): Update.
10177 (arch_complex_type): Don't declare.
10178 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10179 Make name if none given. Use alloc_type_copy. Look for cached
10180 complex type.
10181 (arch_complex_type): Remove.
10182 (gdbtypes_post_init): Use init_complex_type.
10183 * f-lang.c (build_fortran_types): Use init_complex_type.
10184 * dwarf2/read.c (read_base_type): Update.
10185 * d-lang.c (build_d_types): Use init_complex_type.
10186 * ctfread.c (read_base_type): Update.
10187
53cccef1
TBA
101882020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10189
10190 * infrun.c (stop_all_threads): Update assertion, plus when
10191 stopping threads, take into account that we might be trying
10192 to stop an all-stop target.
10193 (stop_waiting): Call 'stop_all_threads' if there exists a
10194 non-stop target.
10195
a0714d30
TBA
101962020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10197
10198 * target.h (exists_non_stop_target): New function declaration.
10199 * target.c (exists_non_stop_target): New function.
10200
60e22c1e
HD
102012020-04-01 Hannes Domani <ssbssa@yahoo.de>
10202
10203 PR gdb/24789
10204 * eval.c (is_integral_or_integral_reference): New function.
10205 (evaluate_subexp_standard): Allow integer references in
10206 pointer arithmetic.
10207
e139a727
TBA
102082020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10209
10210 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10211 check for no ptid in the stop reply when the target is non-stop.
10212
e0802d59
TT
102132020-04-01 Tom Tromey <tromey@adacore.com>
10214
10215 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10216 "name" parameter to rvalue reference. Initialize m_name_holder.
10217 <lookup_name_info>: New overloads.
10218 <name>: Return gdb::string_view.
10219 <c_str>: New method.
10220 <make_ignore_params>: Update.
10221 <search_name_hash>: Update.
10222 <language_lookup_name>: Return const char *.
10223 <m_name>: Change type.
10224 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10225 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10226 (lookup_name_info::match_any): Update.
10227 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10228 Update.
10229 * minsyms.c (linkage_name_str): Update.
10230 * language.c (default_symbol_name_matcher): Update.
10231 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10232 Update.
10233 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10234 (ada_lookup_name_info::ada_lookup_name_info): Update.
10235 (literal_symbol_name_matcher): Update.
10236
8c072cb6
TT
102372020-04-01 Tom Tromey <tromey@adacore.com>
10238
10239 * psymtab.c (psymtab_search_name): Remove function.
10240 (psym_lookup_symbol): Create search name and lookup name here.
10241 (lookup_partial_symbol): Remove "name" parameter; add
10242 lookup_name.
10243 (psym_expand_symtabs_for_function): Update.
10244
6f29a534
TT
102452020-03-31 Joel Jones <joelkevinjones@gmail.com>
10246
10247 PR tui/25597:
10248 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10249
af62665e
TT
102502020-03-31 Tom Tromey <tromey@adacore.com>
10251
10252 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10253 memcpy.
10254
d1a89da5
NC
102552020-03-30 Nelson Chu <nelson.chu@sifive.com>
10256
10257 * features/riscv/32bit-csr.xml: Regenerated.
10258 * features/riscv/64bit-csr.xml: Regenerated.
10259
d8af9068
TT
102602020-03-30 Tom Tromey <tromey@adacore.com>
10261
10262 * ada-valprint.c (print_variant_part): Update.
10263 * ada-lang.h (ada_which_variant_applies): Update.
10264 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10265 outer_valaddr parameters; replace with "outer" value parameter.
10266 (to_fixed_variant_branch_type): Update.
10267
227c0bf4
PFC
102682020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10269
10270 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10271 <list>. Remove inclusion of observable.h.
10272 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10273 (struct arch_lwp_info): New struct.
10274 (class ppc_linux_dreg_interface): New class.
10275 (struct ppc_linux_process_info): New struct.
10276 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10277 <low_new_clone, low_forget_process, low_prepare_to_resume>
10278 <copy_thread_dreg_state, mark_thread_stale>
10279 <mark_debug_registers_changed, register_hw_breakpoint>
10280 <clear_hw_breakpoint, register_wp, clear_wp>
10281 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10282 <num_memory_accesses, get_trigger_type>
10283 <create_watchpoint_request, hwdebug_point_cmp>
10284 <init_arch_lwp_info, get_arch_lwp_info>
10285 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10286 methods.
10287 <struct ptid_hash>: New inner struct.
10288 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10289 members.
10290 (saved_dabr_value, hwdebug_info, max_slots_number)
10291 (struct hw_break_tuple, struct thread_points, ppc_threads)
10292 (have_ptrace_hwdebug_interface)
10293 (hwdebug_find_thread_points_by_tid)
10294 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10295 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10296 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10297 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10298 use m_dreg_interface.
10299 (hwdebug_point_cmp): Change to...
10300 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10301 reference arguments instead of pointers.
10302 (ppc_linux_nat_target::ranged_break_num_registers): Use
10303 m_dreg_interface.
10304 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10305 m_dreg_interface. Call register_hw_breakpoint.
10306 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10307 m_dreg_interface. Call clear_hw_breakpoint.
10308 (get_trigger_type): Change to...
10309 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10310 comment.
10311 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10312 use m_dreg_interface. Call register_hw_breakpoint.
10313 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10314 use m_dreg_interface. Call clear_hw_breakpoint.
10315 (can_use_watchpoint_cond_accel): Change to...
10316 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10317 method. Update comment, use m_dreg_interface and
10318 m_process_info.
10319 (calculate_dvc): Change to...
10320 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10321 m_dreg_interface.
10322 (num_memory_accesses): Change to...
10323 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10324 (check_condition): Change to...
10325 (ppc_linux_nat_target::check_condition): ...this method.
10326 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10327 comment, use m_dreg_interface.
10328 (create_watchpoint_request): Change to...
10329 (ppc_linux_nat_target::create_watchpoint_request): ...this
10330 method. Use m_dreg_interface.
10331 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10332 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10333 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10334 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10335 (ppc_linux_nat_target::low_forget_process)
10336 (ppc_linux_nat_target::low_new_fork)
10337 (ppc_linux_nat_target::low_new_clone)
10338 (ppc_linux_nat_target::low_delete_thread)
10339 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10340 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10341 only call mark_thread_stale.
10342 (ppc_linux_thread_exit): Remove.
10343 (ppc_linux_nat_target::stopped_data_address): Change to...
10344 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10345 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10346 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10347 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10348 comment. Call low_stopped_data_address.
10349 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10350 m_dreg_interface.
10351 (ppc_linux_nat_target::masked_watch_num_registers): Use
10352 m_dreg_interface.
10353 (ppc_linux_nat_target::copy_thread_dreg_state)
10354 (ppc_linux_nat_target::mark_thread_stale)
10355 (ppc_linux_nat_target::mark_debug_registers_changed)
10356 (ppc_linux_nat_target::register_hw_breakpoint)
10357 (ppc_linux_nat_target::clear_hw_breakpoint)
10358 (ppc_linux_nat_target::register_wp)
10359 (ppc_linux_nat_target::clear_wp)
10360 (ppc_linux_nat_target::init_arch_lwp_info)
10361 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10362 (_initialize_ppc_linux_nat): Remove observer callback.
10363
4db10d8f
PFC
103642020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10365
10366 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10367 (ppc_linux_nat_target::auxv_parse)
10368 (ppc_linux_nat_target::read_description)
10369 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10370 Move up.
10371
1310c1b0
PFC
103722020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10373
10374 * linux-nat.h (low_new_clone): New method.
10375 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10376
69b037c3
SM
103772020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10378
10379 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10380 (dbx_expand_psymtab): ... this.
10381 (start_psymtab): Update.
10382 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10383 (mdebug_expand_psymtab): ... this.
10384 (parse_partial_symbols): Update.
10385 (new_psymtab): Update.
10386 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10387 (xcoff_expand_psymtab): ... this.
10388 (xcoff_start_psymtab): Update.
10389
48993951
SM
103902020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10391
10392 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10393 <expand_dependencies>: ... this.
10394 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10395 (partial_symtab::expand_dependencies): ... this.
10396 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10397 Update.
10398 (dwarf2_psymtab::expand_psymtab): Update.
10399 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10400 * mdebugread.c (psymtab_to_symtab_1): Update.
10401 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10402
3ad83046
SM
104032020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10404
10405 * psympriv.h (discard_psymtab): Remove.
10406 * dbxread.c (dbx_end_psymtab): Update.
10407 * xcoffread.c (xcoff_end_psymtab): Update.
10408
4d1b9ab6
TT
104092020-03-28 Tom Tromey <tom@tromey.com>
10410
10411 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10412 comment.
10413
f1749218
TT
104142020-03-28 Tom Tromey <tom@tromey.com>
10415
10416 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10417
ebea7626
HD
104182020-03-27 Hannes Domani <ssbssa@yahoo.de>
10419
10420 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10421
a879b4d5
JB
104222020-03-26 John Baldwin <jhb@FreeBSD.org>
10423
10424 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10425
0826b30a
TT
104262020-03-26 Tom Tromey <tom@tromey.com>
10427
10428 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10429 (mark_common_block_symbol_computed, read_tag_string_type)
10430 (attr_to_dynamic_prop, read_subrange_type): Update.
10431 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10432 to be methods on struct attribute.
10433 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10434 (read_call_site_scope, partial_die_info::read)
10435 (partial_die_info::read, lookup_die_type, follow_die_ref):
10436 Update.
10437 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10438 from dwarf2_get_ref_die_offset.
10439 (attribute::constant_value): New method, from
10440 dwarf2_get_attr_constant_value.
10441 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10442 Declare method.
10443 <constant_value>: New method.
10444
2b2558bf
TT
104452020-03-26 Tom Tromey <tom@tromey.com>
10446
10447 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10448 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10449 (dwarf_type_encoding_name): Move to stringify.c.
10450 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10451 * dwarf2/stringify.c: New file.
10452 * dwarf2/stringify.h: New file.
10453
eeb64781
TT
104542020-03-26 Tom Tromey <tom@tromey.com>
10455
10456 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10457 Rewrite.
10458
a39fdb41
TT
104592020-03-26 Tom Tromey <tom@tromey.com>
10460
10461 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10462 methods.
10463 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10464 (lookup_ranges_base): Likewise.
10465 (read_cutu_die_from_dwo, read_full_die_1): Update.
10466
436c571c
TT
104672020-03-26 Tom Tromey <tom@tromey.com>
10468
10469 * dwarf2/read.c (read_import_statement, read_file_scope)
10470 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10471 (read_lexical_block_scope, read_call_site_scope)
10472 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10473 (handle_struct_member_die, process_structure_scope)
10474 (update_enumeration_type_from_children)
10475 (process_enumeration_scope, read_array_type, read_common_block)
10476 (read_namespace, read_module, read_subroutine_type): Update.
10477 (sibling_die): Remove.
10478
052c8bb8
TT
104792020-03-26 Tom Tromey <tom@tromey.com>
10480
10481 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10482 (build_type_psymtabs_reader, read_structure_type)
10483 (read_enumeration_type, read_full_die_1): Update.
10484 (dwarf2_attr_no_follow): Move to die.h.
10485 * dwarf2/die.h (struct die_info) <attr>: New method.
10486
2b24b6e4
TT
104872020-03-26 Tom Tromey <tom@tromey.com>
10488
10489 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10490 <base_address>: Now an optional.
10491 (dwarf2_find_base_address, dwarf2_rnglists_process)
10492 (dwarf2_ranges_process, fill_in_loclist_baton)
10493 (dwarf2_symbol_mark_computed): Update.
10494
c2d50fd0
TT
104952020-03-26 Tom Tromey <tom@tromey.com>
10496
10497 * dwarf2/read.c (struct die_info): Move to die.h.
10498 * dwarf2/die.h: New file.
10499
0df7ad3a
TT
105002020-03-26 Tom Tromey <tom@tromey.com>
10501
10502 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10503 * dwarf2/read.c
10504 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10505 Move to line-header.c.
10506 (read_checked_initial_length_and_offset, read_formatted_entries):
10507 Likewise.
10508 (dwarf_decode_line_header): Split into two.
10509 * dwarf2/line-header.c
10510 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10511 Move from read.c.
10512 (read_checked_initial_length_and_offset, read_formatted_entries):
10513 Likewise.
10514 (dwarf_decode_line_header): New function, split from read.c.
10515
86c0bb4c
TT
105162020-03-26 Tom Tromey <tom@tromey.com>
10517
10518 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10519 Declare method.
10520 * dwarf2/read.c (read_attribute_value): Update.
10521 (dwarf2_per_objfile::read_line_string): Rename from
10522 read_indirect_line_string.
10523 (read_formatted_entries): Update.
10524
2ef46c2f
TT
105252020-03-26 Tom Tromey <tom@tromey.com>
10526
10527 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10528 variable.
10529
4f9c1eda
TT
105302020-03-26 Tom Tromey <tom@tromey.com>
10531
10532 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10533 const.
10534 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10535 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10536 parameter const.
10537
5a0e026f
TT
105382020-03-26 Tom Tromey <tom@tromey.com>
10539
10540 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10541 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10542 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10543 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10544
8844c11b
TT
105452020-03-26 Tom Tromey <tom@tromey.com>
10546
10547 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10548 file_names_size, file_full_name, file_file_name>: Use const.
10549 <file_name_at, file_names>: Add const overload.
10550 * dwarf2/line-header.c (line_header::file_file_name)
10551 (line_header::file_full_name): Update.
10552
c90ec28a
TT
105532020-03-26 Tom Tromey <tom@tromey.com>
10554
10555 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10556 (macro_start_file, consume_improper_spaces)
10557 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10558 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10559 (dwarf_decode_macros): Move to macro.c.
10560 * dwarf2/macro.c: New file.
10561 * dwarf2/macro.h: New file.
10562 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10563
4f44ae6c
TT
105642020-03-26 Tom Tromey <tom@tromey.com>
10565
10566 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10567 method.
10568 * dwarf2/section.c: New method. From
10569 read_indirect_string_at_offset_from.
10570 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10571 (read_indirect_string_at_offset_from): Move to section.c.
10572 (read_indirect_string_at_offset): Rewrite.
10573 (read_indirect_line_string_at_offset): Remove.
10574 (read_indirect_string, read_indirect_line_string)
10575 (dwarf_decode_macro_bytes): Update.
10576
a0194fa8
TT
105772020-03-26 Tom Tromey <tom@tromey.com>
10578
10579 * dwarf2/section.h (struct dwarf2_section_info)
10580 <overload_complaint>: Declare.
10581 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10582 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10583 Rename from dwarf2_section_buffer_overflow_complaint.
10584 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10585 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10586
3d27bbdb
TT
105872020-03-26 Tom Tromey <tom@tromey.com>
10588
10589 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10590 Declare.
10591 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10592 Move from read.c.
10593 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10594 to section.c.
10595
9eac9650
TT
105962020-03-26 Tom Tromey <tom@tromey.com>
10597
10598 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10599
bf80d710
TT
106002020-03-26 Tom Tromey <tom@tromey.com>
10601
10602 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10603 "builder".
10604 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10605 parameter.
10606 (dwarf_decode_macros): Update.
10607
0314b390
TT
106082020-03-26 Tom Tromey <tom@tromey.com>
10609
10610 * dwarf2/read.c (read_attribute_value): Update.
10611 (read_indirect_string_from_dwz): Move to dwz.c; change into
10612 method.
10613 (dwarf_decode_macro_bytes): Update.
10614 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10615 * dwarf2/dwz.c: New file.
10616 * Makefile.in (COMMON_SFILES): Add dwz.c.
10617
9fda78b6
TT
106182020-03-26 Tom Tromey <tom@tromey.com>
10619
10620 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10621 * dwarf2/read.c: Add include.
10622 * dwarf2/index-write.c: Add include.
10623 * dwarf2/index-cache.c: Add include.
10624 * dwarf2/dwz.h: New file.
10625
33aa3c10
TT
106262020-03-25 Tom Tromey <tom@tromey.com>
10627
10628 * compile/compile-object-load.c (get_out_value_type): Mention
10629 correct symbol name in error message.
10630
d503b685
HD
106312020-03-25 Hannes Domani <ssbssa@yahoo.de>
10632
10633 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10634
7b1eff95
TV
106352020-03-25 Tom de Vries <tdevries@suse.de>
10636
10637 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10638 * symmisc.c (dump_symtab_1): Print user and includes fields.
10639 (maintenance_info_symtabs): Same.
10640
dd895392
AB
106412020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10642
10643 PR gdb/25534
10644 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10645 (riscv_regcache_cooked_write): New function.
10646 (riscv_push_dummy_call): Use new function.
10647 (riscv_return_value): Likewise.
10648
5ab2fbf1
SM
106492020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10650
10651 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10652 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10653 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10654 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10655 * infrun.c (follow_fork): Likewise.
10656 (follow_fork_inferior): Likewise.
10657 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10658 * linux-nat.h (class linux_nat_target): Likewise.
10659 * remote.c (class remote_target) <follow_fork>: Likewise.
10660 (remote_target::follow_fork): Likewise.
10661 * target-delegates.c: Re-generate.
10662 * target.c (default_follow_fork): Likewise.
10663 (target_follow_fork): Likewise.
10664 * target.h (struct target_ops) <follow_fork>: Likewise.
10665 (target_follow_fork): Likewise.
10666
a64fafb5
TV
106672020-03-24 Tom de Vries <tdevries@suse.de>
10668
10669 * psymtab.c (maintenance_info_psymtabs): Print user field.
10670
fe26d3a3
TT
106712020-03-20 Tom Tromey <tromey@adacore.com>
10672
10673 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10674 const.
10675 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10676 const.
10677
c884cc46
SM
106782020-03-20 Simon Marchi <simon.marchi@efficios.com>
10679
10680 * ptrace.m4: Don't check for ptrace declaration.
10681 * config.in: Re-generate.
10682 * configure: Re-generate.
10683 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10684 not defined.
10685
1ff700c2
KR
106862020-03-20 Kamil Rytarowski <n54@gmx.com>
10687
10688 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10689 `PTRACE_TYPE_RET'.
10690 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10691 * sparc-nat.c (gdb_ptrace): Likewise.
10692 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10693
f7d4f0b1
TT
106942020-03-20 Tom Tromey <tromey@adacore.com>
10695
10696 * c-exp.y (lex_one_token): Fix assert.
10697
f67210ff
TT
106982020-03-20 Tom Tromey <tromey@adacore.com>
10699
10700 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10701 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10702 strncpy call.
10703
1773be9e
TT
107042020-03-20 Tom Tromey <tromey@adacore.com>
10705
10706 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10707
70304be9
TT
107082020-03-20 Tom Tromey <tromey@adacore.com>
10709
10710 * ada-valprint.c (print_variant_part): Remove parameters; switch
10711 to value-based API.
10712 (print_field_values): Likewise.
10713 (ada_val_print_struct_union): Likewise.
10714 (ada_value_print_1): Update.
10715
9faa006d
KR
107162020-03-20 Kamil Rytarowski <n54@gmx.com>
10717
10718 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10719 nbsd_nat_target instead of inf_ptrace_target.
10720 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10721 nbsd_nat_target.
10722
4a90f062
KR
107232020-03-20 Kamil Rytarowski <n54@gmx.com>
10724
10725 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10726 it to the ptrace call.
10727 * (store_registers): Likewise.
10728
107292020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
10730
10731 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10732 it to the ptrace call.
10733 * (store_registers): Likewise.
10734
2d07da27
LM
107352020-03-19 Luis Machado <luis.machado@linaro.org>
10736
10737 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10738 valid, fetch vg value from ptrace.
10739
f09db380
KR
107402020-03-19 Kamil Rytarowski <n54@gmx.com>
10741 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10742 * inf-ptrace.c: Likewise.
10743 * (gdb_ptrace): Add.
10744 * (inf_ptrace_target::resume): Update.
10745 * (inf_ptrace_target::xfer_partial): Likewise.
10746 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10747 * (inf_ptrace_peek_poke): Update.
10748
fcc7376e
KR
107492020-03-19 Kamil Rytarowski <n54@gmx.com>
10750
10751 * x86-bsd-nat.c (gdb_ptrace): New.
10752 * (x86bsd_dr_set): Add new argument `ptid'.
10753 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10754 x86bsd_dr_set_addr): Update.
10755
cada5fc9
AB
107562020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10757
10758 * remote.c (remote_target::process_stop_reply): Handle events for
10759 all threads differently.
10760
19a2740f
AB
107612020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10762
10763 * completer.c (completion_tracker::remove_completion): Define new
10764 function.
10765 * completer.h (completion_tracker::remove_completion): Declare new
10766 function.
10767 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10768 when adding a C++ function symbol.
10769
724fd9ba
AB
107702020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10771
10772 * completer.c (completion_tracker::completion_hash_entry): Define
10773 new class.
10774 (advance_to_filename_complete_word_point): Call
10775 recompute_lowest_common_denominator.
10776 (completion_tracker::completion_tracker): Call discard_completions
10777 to setup the hash table.
10778 (completion_tracker::discard_completions): Allow for being called
10779 from the constructor, pass new equal function, and element deleter
10780 when constructing the hash table. Initialise new class member
10781 variables.
10782 (completion_tracker::maybe_add_completion): Remove use of
10783 m_entries_vec, and store more information into m_entries_hash.
10784 (completion_tracker::recompute_lcd_visitor): New function, most
10785 content taken from...
10786 (completion_tracker::recompute_lowest_common_denominator):
10787 ...here, this now just visits each item in the hash calling the
10788 above visitor.
10789 (completion_tracker::build_completion_result): Remove use of
10790 m_entries_vec, call recompute_lowest_common_denominator.
10791 * completer.h (completion_tracker::have_completions): Remove use
10792 of m_entries_vec.
10793 (completion_tracker::completion_hash_entry): Declare new class.
10794 (completion_tracker::recompute_lowest_common_denominator): Change
10795 function signature.
10796 (completion_tracker::recompute_lcd_visitor): Declare new function.
10797 (completion_tracker::m_entries_vec): Delete.
10798 (completion_tracker::m_entries_hash): Initialize to NULL.
10799 (completion_tracker::m_lowest_common_denominator_valid): New
10800 member variable.
10801 (completion_tracker::m_lowest_common_denominator_max_length): New
10802 member variable.
10803
5a82b8a1
KR
108042020-03-17 Kamil Rytarowski <n54@gmx.com>
10805
10806 * regformats/regdef.h: Put reg in gdb namespace.
10807
fb516a69
KR
108082020-03-17 Kamil Rytarowski <n54@gmx.com>
10809
10810 * i386-bsd-nat.c (gdb_ptrace): New.
10811 * (i386bsd_fetch_inferior_registers,
10812 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10813 * (i386bsd_fetch_inferior_registers,
10814 i386bsd_store_inferior_registers) Use gdb_ptrace.
10815
1c0aa1fb
KR
108162020-03-17 Kamil Rytarowski <n54@gmx.com>
10817
10818 * amd64-bsd-nat.c (gdb_ptrace): New.
10819 * (amd64bsd_fetch_inferior_registers,
10820 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10821 * (amd64bsd_fetch_inferior_registers,
10822 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10823
5ccd2fb7
KR
108242020-03-17 Kamil Rytarowski <n54@gmx.com>
10825
10826 * user-regs.c (user_reg::read): Rename to...
10827 (user_reg::xread): ...this.
10828 * (append_user_reg): Rename argument `read' to `xread'.
10829 * (user_reg_add_builtin): Likewise.
10830 * (user_reg_add): Likewise.
10831 * (value_of_user_reg): Likewise.
10832
2108a63a
KR
108332020-03-17 Kamil Rytarowski <n54@gmx.com>
10834
10835 * sparc-nat.c (gdb_ptrace): New.
10836 * sparc-nat.c (sparc_fetch_inferior_registers)
10837 (sparc_store_inferior_registers) Remove obsolete comment.
10838 * sparc-nat.c (sparc_fetch_inferior_registers)
10839 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10840 * sparc-nat.c (sparc_fetch_inferior_registers)
10841 (sparc_store_inferior_registers) Use gdb_ptrace.
10842
a225c9a8
KR
108432020-03-17 Kamil Rytarowski <n54@gmx.com>
10844
10845 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10846 it to the ptrace call.
10847 * sh-nbsd-nat.c (store_registers): Likewise.
10848
98097623
KR
108492020-03-17 Kamil Rytarowski <n54@gmx.com>
10850
10851 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10852 nbsd_nat_target instead of inf_ptrace_target.
10853 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10854 nbsd_nat_target.
10855
9e38d619
KR
108562020-03-17 Kamil Rytarowski <n54@gmx.com>
10857
10858 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10859
a2ecbe9f
KR
108602020-03-17 Kamil Rytarowski <n54@gmx.com>
10861
10862 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10863 <sys/sysctl.h>.
10864 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10865
58990295
TV
108662020-03-17 Tom de Vries <tdevries@suse.de>
10867
10868 PR gdb/23710
10869 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10870 fields.
10871 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10872 fields.
10873 (process_imported_unit_die): Skip import of c++ CUs.
10874
771dd3a8
TT
108752020-03-16 Tom Tromey <tom@tromey.com>
10876
10877 * p-valprint.c (pascal_object_print_value): Initialize
10878 base_value.
10879
817a7585
AK
108802020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10881 Shahab Vahedi <shahab@synopsys.com>
10882
10883 * Makefile.in: Add arch/arc.o
10884 * configure.tgt: Likewise.
10885 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10886 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 10887 (arc_read_description): New function to cache target descriptions.
817a7585
AK
10888 * arc-tdep.h (arc_read_description): Add proto type.
10889 * arch/arc.c: New file.
10890 * arch/arc.h: Likewise.
10891 * features/Makefile: Replace old target descriptions with new.
10892 * features/arc-arcompact.c: Remove.
10893 * features/arc-arcompact.xml: Likewise.
10894 * features/arc-v2.c: Likewise
10895 * features/arc-v2.xml: Likewise
10896 * features/arc/aux-arcompact.xml: New file.
10897 * features/arc/aux-v2.xml: Likewise.
10898 * features/arc/core-arcompact.xml: Likewise.
10899 * features/arc/core-v2.xml: Likewise.
10900 * features/arc/aux-arcompact.c: Generate.
10901 * features/arc/aux-v2.c: Likewise.
10902 * features/arc/core-arcompact.c: Likewise.
10903 * features/arc/core-v2.c: Likewise.
10904 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10905
67430cd0
TT
109062020-03-16 Tom Tromey <tromey@adacore.com>
10907
10908 PR gdb/25663:
10909 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10910 putting value into bcache.
10911
30efb6c7
SM
109122020-03-16 Simon Marchi <simon.marchi@efficios.com>
10913
10914 PR gdb/21500
10915 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10916 to...
10917 (amd64_windows_init_abi_common): ... this. Don't set size of
10918 long type.
10919 (amd64_windows_init_abi): New function.
10920 (amd64_cygwin_init_abi): New function.
10921 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10922 the Cygwin OS ABI.
10923 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10924 comment.
10925
8db52437
SM
109262020-03-16 Simon Marchi <simon.marchi@efficios.com>
10927
10928 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10929 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10930 (pe_import_directory_entry): New struct type.
10931 (is_linked_with_cygwin_dll): New function.
10932 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10933 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10934 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10935
5982a56a
SM
109362020-03-16 Simon Marchi <simon.marchi@efficios.com>
10937
10938 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10939 i386_cygwin_core_osabi_sniffer.
10940
7a1998df
SM
109412020-03-16 Simon Marchi <simon.marchi@efficios.com>
10942
10943 * i386-cygwin-tdep.c: Rename to...
10944 * i386-windows-tdep.c: ... this.
10945 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10946 i386-windows-tdep.c.
10947 * configure.tgt: Likewise.
10948
053205cc
SM
109492020-03-16 Simon Marchi <simon.marchi@efficios.com>
10950
10951 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10952 * osabi.c (gdb_osabi_names): Add "Windows".
10953 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10954 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10955 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10956 i386_cygwin_osabi_sniffer.
10957 (_initialize_i386_cygwin_tdep): Register OS ABI
10958 GDB_OSABI_WINDOWS for i386.
10959 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10960 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10961 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10962 for x86-64.
10963 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10964 when the target matches '*-*-mingw*'.
10965
fe4b2ee6
SM
109662020-03-16 Simon Marchi <simon.marchi@efficios.com>
10967
10968 * defs.h (enum gdb_osabi): Move to...
10969 * osabi.h (enum gdb_osabi): ... here.
10970 * gdbarch.sh: Include osabi.h in gdbarch.h.
10971 * gdbarch.h: Re-generate.
10972
cb9b645d
SM
109732020-03-16 Simon Marchi <simon.marchi@efficios.com>
10974
10975 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10976 function.
10977 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10978
3293bbaf
TT
109792020-03-14 Tom Tromey <tom@tromey.com>
10980
10981 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10982 for C++.
10983 (c_type_print_modifier): Likewise. Add "language" parameter.
10984 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10985 (c_type_print_base_1): Update.
10986 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10987 constants.
10988 * type-stack.c (type_stack::insert): Handle tp_atomic and
10989 tp_restrict.
10990 (type_stack::follow_type_instance_flags): Likewise.
10991 (type_stack::follow_types): Likewise. Merge type-following code.
10992 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10993 (space_identifier, cv_with_space_id)
10994 (const_or_volatile_or_space_identifier_noopt)
10995 (const_or_volatile_or_space_identifier): Remove.
10996 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10997 rules.
10998 (ptr_operator, typebase): Update.
10999 (enum token_flag) <FLAG_C>: New constant.
11000 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11001 "_Atomic".
11002 (lex_one_token): Handle FLAG_C.
11003
154151a6
KR
110042020-03-14 Kamil Rytarowski <n54@gmx.com>
11005
11006 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11007 it to the ptrace call.
11008 * m68k-bsd-nat.c (store_registers): Likewise.
11009
bc107784
KR
110102020-03-14 Kamil Rytarowski <n54@gmx.com>
11011
11012 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11013 gdb_byte *.
11014 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11015 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11016 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11017
01a80117
KR
110182020-03-14 Kamil Rytarowski <n54@gmx.com>
11019
11020 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11021 nbsd_nat_target instead of inf_ptrace_target.
11022 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11023 nbsd_nat_target.
11024
f90280ca
KR
110252020-03-14 Kamil Rytarowski <n54@gmx.com>
11026
11027 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11028 register_t.
11029
6def66f1
KR
110302020-03-14 Kamil Rytarowski <n54@gmx.com>
11031
11032 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11033 it to the ptrace call.
11034 * alpha-bsd-nat.c (store_registers): Likewise.
11035
66eaca97
KR
110362020-03-14 Kamil Rytarowski <n54@gmx.com>
11037
11038 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11039 includes.
11040 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11041 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11042 fill_fpregset): Likewise.
11043
4fed520b
KR
110442020-03-14 Kamil Rytarowski <n54@gmx.com>
11045
11046 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11047 nbsd_nat_target instead of inf_ptrace_target.
11048 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11049 nbsd_nat_target.
11050
2190cf06
KR
110512020-03-14 Kamil Rytarowski <n54@gmx.com>
11052
11053 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11054 register_t.
11055
75c56d3d
KR
110562020-03-14 Kamil Rytarowski <n54@gmx.com>
11057
11058 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11059 it to the ptrace call.
11060 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11061 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11062 * arm-nbsd-nat.c (store_register): Likewise.
11063 * arm-nbsd-nat.c (store_regs): Likewise.
11064 * arm-nbsd-nat.c (store_fp_register): Likewise.
11065 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11066
6018d381
KR
110672020-03-14 Kamil Rytarowski <n54@gmx.com>
11068
11069 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11070 nbsd_nat_target instead of inf_ptrace_target.
11071 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11072 nbsd_nat_target.
11073
013f99f0
KR
110742020-03-14 Kamil Rytarowski <n54@gmx.com>
11075
11076 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11077 it to the ptrace call.
11078 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11079
12753073
KR
110802020-03-14 Kamil Rytarowski <n54@gmx.com>
11081
6227b330
KR
11082 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11083 it to the ptrace call.
11084 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11085
110862020-03-14 Kamil Rytarowski <n54@gmx.com>
11087
11088 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11089 gdb_byte *.
12753073
KR
11090 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11091
d5be5fa4
KR
110922020-03-14 Kamil Rytarowski <n54@gmx.com>
11093
11094 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11095 instead of inf_ptrace_target.
11096 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11097 nbsd_nat_target.
11098
8110f842
KR
110992020-03-14 Kamil Rytarowski <n54@gmx.com>
11100
11101 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11102 register_t.
11103
52feded7
KR
111042020-03-14 Kamil Rytarowski <n54@gmx.com>
11105
11106 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11107 register_t.
11108
25567eee
KR
111092020-03-14 Kamil Rytarowski <n54@gmx.com>
11110
11111 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11112 register_t.
11113
426a9c18
TT
111142020-03-13 Tom Tromey <tom@tromey.com>
11115
11116 * value.h (val_print): Don't declare.
11117 * valprint.h (val_print_array_elements)
11118 (val_print_scalar_formatted, generic_val_print): Don't declare.
11119 * valprint.c (generic_val_print_array): Take a struct value.
11120 (generic_val_print_ptr, generic_val_print_memberptr)
11121 (generic_val_print_bool, generic_val_print_int)
11122 (generic_val_print_char, generic_val_print_complex)
11123 (generic_val_print): Remove.
11124 (generic_value_print): Update.
11125 (do_val_print): Remove unused parameters. Don't call
11126 la_val_print.
11127 (val_print): Remove.
11128 (common_val_print): Update. Don't call value_check_printable.
11129 (val_print_scalar_formatted, val_print_array_elements): Remove.
11130 * rust-lang.c (rust_val_print): Remove.
11131 (rust_language_defn): Update.
11132 * p-valprint.c (pascal_val_print): Remove.
11133 (pascal_value_print_inner): Update.
11134 (pascal_object_print_val_fields, pascal_object_print_val):
11135 Remove.
11136 (pascal_object_print_static_field): Update.
11137 * p-lang.h (pascal_val_print): Don't declare.
11138 * p-lang.c (pascal_language_defn): Update.
11139 * opencl-lang.c (opencl_language_defn): Update.
11140 * objc-lang.c (objc_language_defn): Update.
11141 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11142 * m2-lang.h (m2_val_print): Don't declare.
11143 * m2-lang.c (m2_language_defn): Update.
11144 * language.h (struct language_defn) <la_val_print>: Remove.
11145 * language.c (unk_lang_value_print_inner): Rename. Change
11146 argument types.
11147 (unknown_language_defn, auto_language_defn): Update.
11148 * go-valprint.c (go_val_print): Remove.
11149 * go-lang.h (go_val_print): Don't declare.
11150 * go-lang.c (go_language_defn): Update.
11151 * f-valprint.c (f_val_print): Remove.
11152 * f-lang.h (f_value_print): Don't declare.
11153 * f-lang.c (f_language_defn): Update.
11154 * d-valprint.c (d_val_print): Remove.
11155 * d-lang.h (d_value_print): Don't declare.
11156 * d-lang.c (d_language_defn): Update.
11157 * cp-valprint.c (cp_print_value_fields)
11158 (cp_print_value_fields_rtti, cp_print_value): Remove.
11159 (cp_print_static_field): Update.
11160 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11161 (c_val_print_struct, c_val_print_union, c_val_print_int)
11162 (c_val_print_memberptr, c_val_print): Remove.
11163 * c-lang.h (c_val_print_array, cp_print_value_fields)
11164 (cp_print_value_fields_rtti): Don't declare.
11165 * c-lang.c (c_language_defn, cplus_language_defn)
11166 (asm_language_defn, minimal_language_defn): Update.
11167 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11168 (ada_val_print_enum): Take a struct value.
11169 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11170 (ada_val_print): Remove.
11171 (ada_value_print_1): Update.
11172 (printable_val_type): Remove.
11173 * ada-lang.h (ada_val_print): Don't declare.
11174 * ada-lang.c (ada_language_defn): Update.
11175
42331a1e
TT
111762020-03-13 Tom Tromey <tom@tromey.com>
11177
11178 * valprint.c (do_val_print): Update.
11179 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11180 a struct value.
11181 (value_to_value_object_no_release): Declare.
11182 * python/py-value.c (value_to_value_object_no_release): New
11183 function.
11184 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11185 struct value.
11186 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11187 function.
11188 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11189 a struct value.
11190 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11191 Declare.
11192 (gdbscm_apply_val_pretty_printer): Take a struct value.
11193 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11194 value.
11195 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11196 value.
11197 * extension-priv.h (struct extension_language_ops)
11198 <apply_val_pretty_printer>: Take a struct value.
11199 * cp-valprint.c (cp_print_value): Create a struct value.
11200 (cp_print_value): Update.
11201
3a916a97
TT
112022020-03-13 Tom Tromey <tom@tromey.com>
11203
11204 * ada-valprint.c (print_field_values): Call common_val_print.
11205
b59eac37
TT
112062020-03-13 Tom Tromey <tom@tromey.com>
11207
11208 * ada-valprint.c (val_print_packed_array_elements): Remove
11209 bitoffset and val parameters. Call common_val_print.
11210 (ada_val_print_string): Remove offset, address, and original_value
11211 parameters.
11212 (ada_val_print_array): Update.
11213 (ada_value_print_array): New function.
11214 (ada_value_print_1): Call it.
11215
03371129
TT
112162020-03-13 Tom Tromey <tom@tromey.com>
11217
11218 * ada-valprint.c (ada_value_print): Use common_val_print.
11219
2e088f8b
TT
112202020-03-13 Tom Tromey <tom@tromey.com>
11221
11222 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11223
39ef85a8
TT
112242020-03-13 Tom Tromey <tom@tromey.com>
11225
11226 * ada-valprint.c (ada_value_print_num): New function.
11227 (ada_value_print_1): Use it.
11228
b9fa6e07
TT
112292020-03-13 Tom Tromey <tom@tromey.com>
11230
11231 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11232
416595d6
TT
112332020-03-13 Tom Tromey <tom@tromey.com>
11234
11235 * ada-valprint.c (ada_value_print_ptr): New function.
11236 (ada_value_print_1): Use it.
11237
5b5e15ec
TT
112382020-03-13 Tom Tromey <tom@tromey.com>
11239
11240 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11241 call common_val_print.
11242 (ada_val_print_1): Update.
11243 (ada_value_print_1): New function.
11244 (ada_value_print_inner): Rewrite.
11245
fbf54e75
TT
112462020-03-13 Tom Tromey <tom@tromey.com>
11247
11248 * cp-valprint.c (cp_print_value_fields): Update.
11249 (cp_print_value): New function.
11250
64b653ca
TT
112512020-03-13 Tom Tromey <tom@tromey.com>
11252
11253 * m2-valprint.c (m2_value_print_inner): Use
11254 cp_print_value_fields.
11255 * cp-valprint.c (cp_print_value_fields): New function.
11256 * c-valprint.c (c_value_print_struct): New function.
11257 (c_value_print_inner): Use c_value_print_struct.
11258 * c-lang.h (cp_print_value_fields): Declare.
11259
6999f067
TT
112602020-03-13 Tom Tromey <tom@tromey.com>
11261
11262 * c-valprint.c (c_value_print_array): New function.
11263 (c_value_print_inner): Use it.
11264
ce80b8bd
TT
112652020-03-13 Tom Tromey <tom@tromey.com>
11266
11267 * c-valprint.c (c_value_print_memberptr): New function.
11268 (c_value_print_inner): Use it.
11269
2faac269
TT
112702020-03-13 Tom Tromey <tom@tromey.com>
11271
11272 * c-valprint.c (c_value_print_int): New function.
11273 (c_value_print_inner): Use it.
11274
da3e2c29
TT
112752020-03-13 Tom Tromey <tom@tromey.com>
11276
11277 * c-valprint.c (c_value_print_ptr): New function.
11278 (c_value_print_inner): Use it.
11279
50836231
TT
112802020-03-13 Tom Tromey <tom@tromey.com>
11281
11282 * c-valprint.c (c_value_print_inner): Rewrite.
11283
4f412b6e
TT
112842020-03-13 Tom Tromey <tom@tromey.com>
11285
11286 * valprint.c (generic_value_print_complex): New function.
11287 (generic_value_print): Use it.
11288
f5354008
TT
112892020-03-13 Tom Tromey <tom@tromey.com>
11290
11291 * valprint.c (generic_val_print_float): Don't call
11292 val_print_scalar_formatted.
11293 (generic_val_print, generic_value_print): Update.
11294
3eec3b05
TT
112952020-03-13 Tom Tromey <tom@tromey.com>
11296
11297 * valprint.c (generic_value_print_char): New function
11298 (generic_value_print): Use it.
11299
fdddfccb
TT
113002020-03-13 Tom Tromey <tom@tromey.com>
11301
11302 * valprint.c (generic_value_print_int): New function.
11303 (generic_value_print): Use it.
11304
6dde7521
TT
113052020-03-13 Tom Tromey <tom@tromey.com>
11306
11307 * valprint.c (generic_value_print_bool): New function.
11308 (generic_value_print): Use it.
11309
4112d2e6
TT
113102020-03-13 Tom Tromey <tom@tromey.com>
11311
11312 * valprint.c (generic_val_print_func): Simplify.
11313 (generic_val_print, generic_value_print): Update.
11314
65786af6
TT
113152020-03-13 Tom Tromey <tom@tromey.com>
11316
11317 * valprint.c (generic_val_print_flags): Remove.
11318 (generic_val_print, generic_value_print): Update.
11319 (val_print_type_code_flags): Add original_value parameter.
11320
40f3ce18
TT
113212020-03-13 Tom Tromey <tom@tromey.com>
11322
11323 * valprint.c (generic_val_print): Update.
11324 (generic_value_print): Update.
11325 * valprint.c (generic_val_print_enum): Don't call
11326 val_print_scalar_formatted.
11327
2a5b130b
TT
113282020-03-13 Tom Tromey <tom@tromey.com>
11329
11330 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11331 * valprint.c (generic_value_print_ptr): New function.
11332
abc66ce9
TT
113332020-03-13 Tom Tromey <tom@tromey.com>
11334
11335 * valprint.c (generic_value_print): Rewrite.
11336
07a32858
TT
113372020-03-13 Tom Tromey <tom@tromey.com>
11338
11339 * p-valprint.c (pascal_object_print_value_fields)
11340 (pascal_object_print_value): New functions.
11341
64d64d3a
TT
113422020-03-13 Tom Tromey <tom@tromey.com>
11343
11344 * p-valprint.c (pascal_value_print_inner): Rewrite.
11345
6a95a1f5
TT
113462020-03-13 Tom Tromey <tom@tromey.com>
11347
11348 * f-valprint.c (f_value_print_innner): Rewrite.
11349
59fcdac6
TT
113502020-03-13 Tom Tromey <tom@tromey.com>
11351
11352 * m2-valprint.c (m2_print_unbounded_array): New overload.
11353 (m2_print_unbounded_array): Update.
11354 (m2_print_array_contents): Take a struct value.
11355 (m2_value_print_inner): Rewrite.
11356
d133c3e1
TT
113572020-03-13 Tom Tromey <tom@tromey.com>
11358
11359 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11360 (d_value_print_inner): New function.
11361 * d-lang.h (d_value_print_inner): Declare.
11362 * d-lang.c (d_language_defn): Use d_value_print_inner.
11363
23b0f06b
TT
113642020-03-13 Tom Tromey <tom@tromey.com>
11365
11366 * go-valprint.c (go_value_print_inner): New function.
11367 * go-lang.h (go_value_print_inner): Declare.
11368 * go-lang.c (go_language_defn): Use go_value_print_inner.
11369
5f56f7cb
TT
113702020-03-13 Tom Tromey <tom@tromey.com>
11371
11372 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11373 API.
11374 (rust_val_print): Rewrite.
11375 (rust_value_print_inner): New function, from rust_val_print.
11376 (rust_language_defn): Use rust_value_print_inner.
11377
26792ee0
TT
113782020-03-13 Tom Tromey <tom@tromey.com>
11379
11380 * ada-valprint.c (ada_value_print_inner): New function.
11381 * ada-lang.h (ada_value_print_inner): Declare.
11382 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11383
24051bbe
TT
113842020-03-13 Tom Tromey <tom@tromey.com>
11385
11386 * f-valprint.c (f_value_print_innner): New function.
11387 * f-lang.h (f_value_print_innner): Declare.
11388 * f-lang.c (f_language_defn): Use f_value_print_innner.
11389
c0941be6
TT
113902020-03-13 Tom Tromey <tom@tromey.com>
11391
11392 * p-valprint.c (pascal_value_print_inner): New function.
11393 * p-lang.h (pascal_value_print_inner): Declare.
11394 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11395
62c4663d
TT
113962020-03-13 Tom Tromey <tom@tromey.com>
11397
11398 * m2-valprint.c (m2_value_print_inner): New function.
11399 * m2-lang.h (m2_value_print_inner): Declare.
11400 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11401
62182190
TT
114022020-03-13 Tom Tromey <tom@tromey.com>
11403
11404 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11405 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11406 * c-valprint.c (c_value_print_inner): New function.
11407 * c-lang.h (c_value_print_inner): Declare.
11408 * c-lang.c (c_language_defn, cplus_language_defn)
11409 (asm_language_defn, minimal_language_defn): Use
11410 c_value_print_inner.
11411
1e592a8a
TT
114122020-03-13 Tom Tromey <tom@tromey.com>
11413
11414 * p-valprint.c (pascal_object_print_value_fields): Now static.
11415 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11416
7fe471e9
TT
114172020-03-13 Tom Tromey <tom@tromey.com>
11418
11419 * c-valprint.c (c_val_print_array): Simplify.
11420
d121c6ce
TT
114212020-03-13 Tom Tromey <tom@tromey.com>
11422
11423 * valprint.c (value_print_array_elements): New function.
11424 * valprint.h (value_print_array_elements): Declare.
11425
4dba70ee
TT
114262020-03-13 Tom Tromey <tom@tromey.com>
11427
11428 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11429 * mips-tdep.c (mips_print_register): Use
11430 value_print_scalar_formatted.
11431
4f9ae810
TT
114322020-03-13 Tom Tromey <tom@tromey.com>
11433
11434 * valprint.h (value_print_scalar_formatted): Declare.
11435 * valprint.c (value_print_scalar_formatted): New function.
11436
156bfec9
TT
114372020-03-13 Tom Tromey <tom@tromey.com>
11438
11439 * valprint.h (generic_value_print): Declare.
11440 * valprint.c (generic_value_print): New function.
11441
2b4e573d
TT
114422020-03-13 Tom Tromey <tom@tromey.com>
11443
11444 * valprint.c (do_val_print): Call la_value_print_inner, if
11445 available.
11446 * rust-lang.c (rust_language_defn): Update.
11447 * p-lang.c (pascal_language_defn): Update.
11448 * opencl-lang.c (opencl_language_defn): Update.
11449 * objc-lang.c (objc_language_defn): Update.
11450 * m2-lang.c (m2_language_defn): Update.
11451 * language.h (struct language_defn) <la_value_print_inner>: New
11452 member.
11453 * language.c (unknown_language_defn, auto_language_defn): Update.
11454 * go-lang.c (go_language_defn): Update.
11455 * f-lang.c (f_language_defn): Update.
11456 * d-lang.c (d_language_defn): Update.
11457 * c-lang.c (c_language_defn, cplus_language_defn)
11458 (asm_language_defn, minimal_language_defn): Update.
11459 * ada-lang.c (ada_language_defn): Update.
11460
a1f6a07c
TT
114612020-03-13 Tom Tromey <tom@tromey.com>
11462
11463 * c-valprint.c (c_value_print): Use common_val_print.
11464
410cf315
TT
114652020-03-13 Tom Tromey <tom@tromey.com>
11466
11467 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11468
72a45c93
TT
114692020-03-13 Tom Tromey <tom@tromey.com>
11470
11471 * f-valprint.c (f77_print_array_1, f_val_print): Use
11472 common_val_print.
11473
040f66bd
TT
114742020-03-13 Tom Tromey <tom@tromey.com>
11475
11476 * riscv-tdep.c (riscv_print_one_register_info): Use
11477 common_val_print.
11478
a6e05a6c
TT
114792020-03-13 Tom Tromey <tom@tromey.com>
11480
11481 * mi/mi-main.c (output_register): Use common_val_print.
11482
3444c526
TT
114832020-03-13 Tom Tromey <tom@tromey.com>
11484
11485 * infcmd.c (default_print_one_register_info): Use
11486 common_val_print.
11487
c2a44efe
TT
114882020-03-13 Tom Tromey <tom@tromey.com>
11489
11490 * valprint.h (common_val_print_checked): Declare.
11491 * valprint.c (common_val_print_checked): New function.
11492 * stack.c (print_frame_arg): Use common_val_print_checked.
11493
b0c26e99
TT
114942020-03-13 Tom Tromey <tom@tromey.com>
11495
11496 * valprint.c (do_val_print): New function, from val_print.
11497 (val_print): Use do_val_print.
11498 (common_val_print): Use do_val_print.
11499
ce3acbe9
TT
115002020-03-13 Tom Tromey <tom@tromey.com>
11501
11502 * valprint.c (value_print): Use scoped_value_mark.
11503
96c7f873
TV
115042020-03-13 Tom de Vries <tdevries@suse.de>
11505
11506 PR symtab/25646
11507 * psymtab.c (partial_symtab::partial_symtab): Don't set
11508 globals_offset and statics_offset. Push element onto
11509 current_global_psymbols and current_static_psymbols stacks.
11510 (concat): New function.
11511 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11512 element from current_global_psymbols and current_static_psymbols
11513 stacks. Concat popped elements to global_psymbols and
11514 static_symbols.
11515 (add_psymbol_to_list): Use current_global_psymbols and
11516 current_static_psymbols stacks.
11517 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11518 current_static_psymbols fields.
11519
6ba0a321
CB
115202020-03-12 Christian Biesinger <cbiesinger@google.com>
11521
11522 * corelow.c (sniff_core_bfd): Remove.
11523 (class core_target) <m_core_vec>: Remove.
11524 (core_target::core_target): Update.
11525 (core_file_fns): Remove.
11526 (deprecated_add_core_fns): Remove.
11527 (default_core_sniffer): Remove.
11528 (sniff_core_bfd): Remove.
11529 (default_check_format): Remove.
11530 (gdb_check_format): Remove.
11531 (core_target_open): Update.
11532 (core_target::get_core_register_section): Update.
11533 (get_core_registers_cb): Update.
11534 (core_target::fetch_registers): Update.
11535 * gdbcore.h (struct core_fns): Remove.
11536 (deprecated_add_core_fns): Remove.
11537 (default_core_sniffer): Remove.
11538 (default_check_format): Remove.
11539
227031b2
TT
115402020-03-12 Tom Tromey <tom@tromey.com>
11541
11542 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11543 CORE_ADDR.
11544 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11545
53807e9f
TT
115462020-03-12 Tom Tromey <tom@tromey.com>
11547
11548 * remote.c (remote_target::download_tracepoint)
11549 (remote_target::enable_tracepoint)
11550 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11551 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11552 sprintf_vma.
11553
64f25102
TT
115542020-03-12 Tom Tromey <tom@tromey.com>
11555
11556 * symfile-mem.c: Update CORE_ADDR size assert.
11557
272cd5a3
SM
115582020-03-12 Simon Marchi <simon.marchi@efficios.com>
11559
11560 * selftest.m4: Move to gdbsupport/.
11561 * acinclude.m4: Update path to selftest.m4.
11562
74cd3f9d
SM
115632020-03-12 Simon Marchi <simon.marchi@efficios.com>
11564
11565 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11566 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11567 gdbarch-selfselftests.c and selftest-arch.c.
11568 (SUBDIR_UNITTESTS_OBS): Rename to...
11569 (SELFTESTS_OBS): ... this.
11570 (COMMON_SFILES): Remove disasm-selftests.c and
11571 gdbarch-selftests.c.
11572 * configure.ac: Don't add selftest-arch.{c,o} to
11573 CONFIG_{SRCS,OBS}.
11574 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11575 preprocessor conditions.
11576
db6878ac
SM
115772020-03-12 Simon Marchi <simon.marchi@efficios.com>
11578
11579 * configure.ac: Don't source bfd/development.sh.
11580 * selftest.m4: Modify comment.
11581 * configure: Re-generate.
11582
4d696a5c
SM
115832020-03-12 Simon Marchi <simon.marchi@efficios.com>
11584
11585 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11586 not "true" or "false".
11587 * configure: Re-generate.
11588
8dd8e1c7
CB
115892020-03-12 Christian Biesinger <cbiesinger@google.com>
11590
11591 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11592 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11593 renamed to arm_nbsd_supply_gregset.
11594 (fetch_register): Update to call arm_nbsd_supply_gregset.
11595 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11596 (arm_netbsd_nat_target::fetch_registers): Update.
11597 (fetch_elfcore_registers): Removed.
11598 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11599 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11600 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11601 not require NetBSD system headers.
11602 (arm_nbsd_regset): New struct.
11603 (arm_nbsd_iterate_over_regset_sections): New function.
11604 (arm_netbsd_init_abi_common): Updated to call
11605 set_gdbarch_iterate_over_regset_sections.
11606 * arm-nbsd-tdep.h: New file.
11607
dd69bf7a
KB
116082020-03-11 Kevin Buettner <kevinb@redhat.com>
11609
11610 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11611 recursion.
11612
a0761e34
SM
116132020-03-11 Simon Marchi <simon.marchi@efficios.com>
11614
11615 * configure: Re-generate.
11616
e7a82140
TT
116172020-03-11 Tom Tromey <tromey@adacore.com>
11618
11619 * ada-typeprint.c (print_choices): Fix comment.
11620
dcc050c8
AB
116212020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11622
11623 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11624 previous item in the list, when the list has no items.
11625
1c33af77
TV
116262020-03-11 Tom de Vries <tdevries@suse.de>
11627
11628 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11629 PROP_LOCLIST handling code.
11630
8c95582d
AB
116312020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11632
11633 * buildsym-legacy.c (record_line): Pass extra parameter to
11634 record_line.
11635 * buildsym.c (buildsym_compunit::record_line): Take an extra
11636 parameter, reduce duplication in the line table, and record the
11637 is_stmt flag in the line table.
11638 * buildsym.h (buildsym_compunit::record_line): Add extra
11639 parameter.
11640 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11641 non-statement lines.
11642 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11643 this to the symtab builder.
11644 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11645 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11646 through to dwarf_record_line_1.
11647 * infrun.c (process_event_stop_test): When stepping, don't stop at
11648 a non-statement instruction, and only refresh the step info when
11649 we land in the middle of a line's range. Also add an extra
11650 comment.
11651 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11652 field.
11653 * record-btrace.c (btrace_find_line_range): Only record lines
11654 marked as is-statement.
11655 * stack.c (frame_show_address): Show the frame address if we are
11656 in a non-statement sal.
11657 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11658 (maintenance_print_one_line_table): Print a header for the is_stmt
11659 column, and include is_stmt information in the output.
11660 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11661 preference to non-statements.
11662 (find_pcs_for_symtab_line): Prefer is-statement entries.
11663 (find_line_common): Likewise.
11664 * symtab.h (struct linetable_entry): Add is_stmt field.
11665 (struct symtab_and_line): Likewise.
11666 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11667 arranging the line table.
11668
e4003a34
TV
116692020-03-07 Tom de Vries <tdevries@suse.de>
11670
11671 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11672 DIE.
11673
e8932576
TT
116742020-03-07 Tom Tromey <tom@tromey.com>
11675
11676 * valops.c (value_literal_complex): Remove obsolete comment.
11677 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11678 comment.
11679
29734269
SM
116802020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11681
11682 * infrun.h: Forward-declare thread_info.
11683 (set_step_info): Add thread_info parameter, add doc.
11684 * infrun.c (set_step_info): Add thread_info parameter, move doc
11685 to header.
11686 * infrun.c (process_event_stop_test): Pass thread to
11687 set_step_info call.
11688 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11689 set_step_info.
11690 (prepare_one_step): Add thread_info parameter, pass it to
11691 set_step_frame and prepare_one_step (recursive) call.
11692 (step_1): Pass thread to prepare_one_step call.
11693 (step_command_fsm::should_stop): Pass thread to
11694 prepare_one_step.
11695 (until_next_fsm): Pass thread to set_step_frame call.
11696 (finish_command): Pass thread to set_step_info call.
11697
b7d64b29
HD
116982020-03-06 Hannes Domani <ssbssa@yahoo.de>
11699
11700 * windows-tdep.c (windows_solib_create_inferior_hook):
11701 Check if inferior is running.
11702
09f2921c
TV
117032020-03-06 Tom de Vries <tdevries@suse.de>
11704
11705 * NEWS: Fix "the the".
11706 * ctfread.c: Same.
11707
fd760e79
TV
117082020-03-06 Tom de Vries <tdevries@suse.de>
11709
11710 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11711
20ea4a60
AB
117122020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11713
11714 * .dir-locals.el: Add a comment referencing the other copies of
11715 this file.
11716
0afbabf0
JB
117172020-03-05 John Baldwin <jhb@FreeBSD.org>
11718
11719 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11720 psargs.
11721
842806cb
TBA
117222020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11723
11724 * .gitattributes: New file.
11725
be1e3d3e
TT
117262020-03-04 Tom Tromey <tom@tromey.com>
11727
11728 * symmisc.c (print_symbol_bcache_statistics)
11729 (print_objfile_statistics): Update.
11730 * symfile.c (allocate_symtab): Use intern.
11731 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11732 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11733 macro_cache>: Remove.
11734 <string_cache>: New member.
11735 (struct objfile) <intern>: New methods.
11736 * elfread.c (elf_symtab_read): Use intern.
11737 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11738 (dwarf2_compute_name, dwarf2_physname)
11739 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11740 names.
11741 (guess_partial_die_structure_name): Update.
11742 (partial_die_info::fixup): Intern name.
11743 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11744 name.
11745 (dwarf2_name): Intern name. Update.
11746 * buildsym.c (buildsym_compunit::get_macro_table): Use
11747 string_cache.
11748
4e7625fd
TT
117492020-03-04 Tom Tromey <tom@tromey.com>
11750
11751 * jit.c (bfd_open_from_target_memory): Make "target" const.
11752 * corefile.c (gnutarget): Now const.
11753 * gdbcore.h (gnutarget): Now const.
11754
46f9f931
HD
117552020-03-04 Hannes Domani <ssbssa@yahoo.de>
11756
11757 * NEWS: Mention support for WOW64 processes.
11758 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11759 (amd64_windows_segment_register_p): Remove static.
11760 (_initialize_amd64_windows_nat): Update.
11761 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11762 * i386-windows-nat.c (context_offset): Update.
11763 (i386_mappings): Rename and remove static.
11764 (i386_windows_segment_register_p): Remove static.
11765 (_initialize_i386_windows_nat): Update.
11766 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11767 (STATUS_WX86_SINGLE_STEP): New macro.
11768 (EnumProcessModulesEx): New macro.
11769 (Wow64SuspendThread): New macro.
11770 (Wow64GetThreadContext): New macro.
11771 (Wow64SetThreadContext): New macro.
11772 (Wow64GetThreadSelectorEntry): New macro.
11773 (windows_set_context_register_offsets): Add static.
11774 (windows_set_segment_register_p): Likewise.
11775 (windows_add_thread): Adapt for WOW64 processes.
11776 (windows_fetch_one_register): Likewise.
11777 (windows_nat_target::fetch_registers): Likewise.
11778 (windows_store_one_register): Likewise.
11779 (display_selector): Likewise.
11780 (display_selectors): Likewise.
11781 (handle_exception): Likewise.
11782 (windows_continue): Likewise.
11783 (windows_nat_target::resume): Likewise.
11784 (windows_add_all_dlls): Likewise.
11785 (do_initial_windows_stuff): Likewise.
11786 (windows_nat_target::attach): Likewise.
11787 (windows_get_exec_module_filename): Likewise.
11788 (windows_nat_target::create_inferior): Likewise.
11789 (windows_xfer_siginfo): Likewise.
11790 (_initialize_loadable): Initialize Wow64SuspendThread,
11791 Wow64GetThreadContext, Wow64SetThreadContext,
11792 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11793 * windows-nat.h (windows_set_context_register_offsets):
11794 Remove declaration.
11795 (windows_set_segment_register_p): Likewise.
11796 (i386_windows_segment_register_p): Add declaration.
11797 (amd64_windows_segment_register_p): Likewise.
11798
440cf44e
LM
117992020-03-04 Luis Machado <luis.machado@linaro.org>
11800
11801 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11802 in "info registers" for AArch64/ARM.
11803
11804 The change caused "info registers" to not print GPR's.
11805
11806 gdb/ChangeLog:
11807
11808 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11809
11810 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11811 when reg->group is empty and reggroup is not.
11812
1009d92f
TT
118132020-03-03 Tom Tromey <tromey@adacore.com>
11814
11815 * dwarf2/frame.c (struct dwarf2_frame_cache)
11816 <checked_tailcall_bottom, entry_cfa_sp_offset,
11817 entry_cfa_sp_offset_p>: Remove members.
11818 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11819 (dwarf2_frame_prev_register): Don't call
11820 dwarf2_tailcall_sniffer_first.
11821 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11822 * frame-unwind.c (add_unwinder): New fuction.
11823 (frame_unwind_init): Use it. Add tailcall unwinder.
11824
5e5d66b6
AB
118252020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11826 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11827
11828 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11829 value should be printed as true.
11830
584cf46d
HD
118312020-03-03 Hannes Domani <ssbssa@yahoo.de>
11832
11833 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11834 (windows_init_abi): Set and use windows_so_ops.
11835
7b973adc
SDJ
118362020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11837
11838 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11839 when verifying if dealing with a convenience variable.
11840
bb7b70ab
LM
118412020-03-03 Luis Machado <luis.machado@linaro.org>
11842
11843 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11844
9822cb57
SM
118452020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11846
11847 * infrun.c (gdbarch_supports_displaced_stepping): New.
11848 (use_displaced_stepping): Break up conditions in smaller pieces.
11849 Use gdbarch_supports_displaced_stepping.
11850 (displaced_step_prepare_throw): Use
11851 gdbarch_supports_displaced_stepping.
11852
63e163f2
AB
118532020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11854
11855 * NEWS: Mention new behaviour of the history filename.
11856 * top.c (write_history_p): Add comment.
11857 (show_write_history_p): Add header comment, give a different
11858 message when history writing is on, but the history filename is
11859 empty.
11860 (history_filename): Add comment.
11861 (history_filename_empty): New function.
11862 (show_history_filename): Add header comment, give a different
11863 message when the filename is empty.
11864 (init_history): Compare history_filename against nullptr, and only
11865 read history if the filename is not empty.
11866 (set_history_filename): Add header comment, and only make
11867 non-empty filenames absolute.
11868 (init_main): Make the filename argument to 'set history filename'
11869 optional.
11870
81b86b97
CB
118712020-03-02 Christian Biesinger <cbiesinger@google.com>
11872
11873 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11874 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11875 (fetch_fp_register): Update.
11876 (fetch_fp_regs): Update.
11877 (store_fp_register): Update.
11878 (store_fp_regs): Update.
11879 (arm_netbsd_nat_target::read_description): New function.
11880 (fetch_elfcore_registers): Update.
11881
24ed6739
AB
118822020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11883
11884 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11885 general_thread if the stop reply is missing a thread-id.
11886 (remote_target::process_stop_reply): Use the first non-exited
11887 thread if the target didn't pass a thread-id.
11888 * infrun.c (do_target_wait): Move call to
11889 switch_to_inferior_no_thread to ....
11890 (do_target_wait_1): ... here.
11891
a84bb2a0
JT
118922020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11893
11894 * debuginfod-support.c: Include defs.h first.
11895
658dadf0
TV
118962020-02-28 Tom de Vries <tdevries@suse.de>
11897
11898 * symfile.c (set_initial_language): Use default language for lookup.
11899
4ebe4877
SM
119002020-02-28 Simon Marchi <simon.marchi@efficios.com>
11901
11902 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11903 reader variable, pass `this` to read_cutu_die_from_dwo.
11904
e5da1139
AM
119052020-02-27 Aaron Merey <amerey@redhat.com>
11906
11907 * source.c (open_source_file): Check for nullptr when computing
11908 srcpath.
11909
317f7127
TT
119102020-02-27 Tom Tromey <tromey@adacore.com>
11911
11912 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11913 member.
11914 (dwarf2_add_field): Don't update nfields.
11915 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11916
3104d9ee
AB
119172020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11918
11919 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11920 abs.
11921
b83470bf
TT
119222020-02-26 Tom Tromey <tom@tromey.com>
11923
11924 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11925 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11926 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11927 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11928 per_cu_data.
11929
edfe0a0c
TT
119302020-02-26 Tom Tromey <tom@tromey.com>
11931
11932 * dwarf2/index-write.c (psym_index_map): Change type.
11933 (add_address_entry_worker, write_one_signatured_type)
11934 (recursively_count_psymbols, recursively_write_psymbols)
11935 (class debug_names, psyms_seen_size, write_gdbindex)
11936 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11937
0d79cdc4
AM
119382020-02-26 Aaron Merey <amerey@redhat.com>
11939
11940 * Makefile.in: Handle optional debuginfod support.
11941 * NEWS: Update.
11942 * README: Add --with-debuginfod summary.
11943 * config.in: Regenerate.
11944 * configure: Regenerate.
11945 * configure.ac: Handle optional debuginfod support.
11946 * debuginfod-support.c: debuginfod helper functions.
11947 * debuginfod-support.h: Ditto.
11948 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11949 summary.
11950 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11951 when a dwz file cannot be found.
11952 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11953 debuginfo file cannot be found.
11954 * source.c (open_source_file): Query debuginfod servers when a
11955 source file cannot be found.
11956 * top.c (print_gdb_configuration): Include
11957 --{with,without}-debuginfod in the output.
11958
b65ce565
JG
119592020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11960
11961 * thread.c (thr_try_catch_cmd): Print thread name.
11962
d4c9a4f8
SM
119632020-02-26 Simon Marchi <simon.marchi@efficios.com>
11964
11965 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11966 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11967 dwarf2_fetch_die_type_sect_off): Move to...
11968 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11969 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11970 dwarf2_fetch_die_type_sect_off): ... here.
11971 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11972 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11973 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11974
0dce4280
TV
119752020-02-26 Tom de Vries <tdevries@suse.de>
11976
11977 PR gdb/25603
11978 * symfile.c (set_initial_language): Exit-early if
11979 language_mode == language_mode_manual.
11980
450a1bfc
SM
119812020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11982
11983 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11984 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11985 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11986
9e80cfa1
AB
119872020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11988
11989 * gdbtypes.c (create_array_type_with_stride): Handle negative
11990 array strides.
11991 * valarith.c (value_subscripted_rvalue): Likewise.
11992
09624f1f
LM
119932020-02-25 Luis Machado <luis.machado@linaro.org>
11994
11995 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11996
8cb5117c
SM
119972020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11998
11999 * loc.h (dwarf2_get_die_type): Move to...
12000 * read.h (dwarf2_get_die_type): ... here.
12001 * read.c (dwarf2_get_die_type): Move doc to header.
12002
c325c44e
JB
120032020-02-25 Joel Brobecker <brobecker@adacore.com>
12004
12005 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12006 'gnulib/Makefile.in' to the list.
12007
4ac93832
TT
120082020-02-24 Tom Tromey <tom@tromey.com>
12009
12010 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12011 Remove.
12012 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12013 XOBNEWVEC.
12014
197400e8
TT
120152020-02-24 Tom Tromey <tom@tromey.com>
12016
12017 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12018 New method.
12019 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12020 (dw2_do_instantiate_symtab, dw2_get_file_names)
12021 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12022
76935768
TT
120232020-02-24 Tom Tromey <tom@tromey.com>
12024
12025 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12026 make_scoped_restore.
12027 (dwarf2_psymtab::read_symtab): Don't clear
12028 reading_partial_symbols.
12029
a88ef40d
TV
120302020-02-24 Tom de Vries <tdevries@suse.de>
12031
12032 PR gdb/25592
12033 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12034
c9af6521
TV
120352020-02-24 Tom de Vries <tdevries@suse.de>
12036
12037 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12038 commands layout next/prev/regs.
12039
5707a07a
TT
120402020-02-22 Tom Tromey <tom@tromey.com>
12041
12042 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12043 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12044
3b0fb49e
TT
120452020-02-22 Tom Tromey <tom@tromey.com>
12046
12047 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12048
283be8bf
TT
120492020-02-22 Tom Tromey <tom@tromey.com>
12050
12051 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12052 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12053 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12054 * tui/tui.c (_initialize_tui): Add usage text.
12055
ca793b96
TT
120562020-02-22 Tom Tromey <tom@tromey.com>
12057
12058 * tui/tui-win.c (tui_set_focus_command)
12059 (tui_set_win_height_command): Use error_no_arg.
12060 (_initialize_tui_win): Update help text.
12061 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12062
432b5c40
TT
120632020-02-22 Tom Tromey <tom@tromey.com>
12064
12065 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12066 * tui/tui-disasm.h (struct tui_disasm_window)
12067 <display_start_addr>: Declare.
12068 * tui/tui-source.h (struct tui_source_window)
12069 <display_start_addr>: Declare.
12070 * tui/tui-winsource.h (struct tui_source_window_base)
12071 <show_source_line, display_start_addr>: New methods.
12072 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12073 Rename and move to protected section.
12074 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12075 (tui_source_window_base::do_erase_source_content): Update.
12076 (tui_source_window_base::show_source_line): Now a method.
12077 (tui_source_window_base::show_source_content)
12078 (tui_source_window_base::tui_source_window_base)
12079 (tui_source_window_base::rerender)
12080 (tui_source_window_base::refill)
12081 (tui_source_window_base::do_scroll_horizontal)
12082 (tui_source_window_base::set_is_exec_point_at)
12083 (tui_source_window_base::update_breakpoint_info)
12084 (tui_source_window_base::update_exec_info): Update.
12085 * tui/tui-source.c (tui_source_window::set_contents)
12086 (tui_source_window::showing_source_p)
12087 (tui_source_window::do_scroll_vertical)
12088 (tui_source_window::location_matches_p)
12089 (tui_source_window::line_is_displayed): Update.
12090 (tui_source_window::display_start_addr): New method.
12091 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12092 (tui_disasm_window::do_scroll_vertical)
12093 (tui_disasm_window::location_matches_p): Update.
12094 (tui_disasm_window::display_start_addr): New method.
12095
01b1af32
TT
120962020-02-22 Tom Tromey <tom@tromey.com>
12097
12098 * NEWS: Add entry for gdb.register_window_type.
12099 * tui/tui-layout.h (window_factory): New typedef.
12100 (tui_register_window): Declare.
12101 * tui/tui-layout.c (saved_tui_windows): New global.
12102 (tui_apply_current_layout): Use it.
12103 (tui_register_window): New function.
12104 * python/python.c (do_start_initialization): Call
12105 gdbpy_initialize_tui.
12106 (python_GdbMethods): Add "register_window_type" function.
12107 * python/python-internal.h (gdbpy_register_tui_window)
12108 (gdbpy_initialize_tui): Declare.
12109 * python/py-tui.c: New file.
12110 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12111
fc96d20b
TT
121122020-02-22 Tom Tromey <tom@tromey.com>
12113
12114 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12115
935c78c0
TT
121162020-02-22 Tom Tromey <tom@tromey.com>
12117
12118 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12119 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12120 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12121 (tui_set_win_focus_to): Move from tui-win.c.
12122
0240c8f1
TT
121232020-02-22 Tom Tromey <tom@tromey.com>
12124
12125 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12126 functions.
12127 (known_window_types): New global.
12128 (tui_get_window_by_name): Reimplement.
12129 (initialize_known_windows): New function.
12130 (validate_window_name): Rewrite.
12131 (_initialize_tui_layout): Call initialize_known_windows.
12132
fdb01f0c
TT
121332020-02-22 Tom Tromey <tom@tromey.com>
12134
12135 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12136 Remove constants.
12137 * tui/tui-winsource.h (struct tui_source_window_base)
12138 <tui_source_window_base>: Remove parameter.
12139 * tui/tui-winsource.c
12140 (tui_source_window_base::tui_source_window_base): Remove
12141 parameter.
12142 (tui_source_window_base::refill): Update.
12143 * tui/tui-stack.h (struct tui_locator_window)
12144 <tui_locator_window>: Update.
12145 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12146 Default the constructor.
12147 * tui/tui-regs.h (struct tui_data_item_window)
12148 <tui_data_item_window>: Default the constructor.
12149 (struct tui_data_window) <tui_data_window>: Likewise.
12150 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12151 Default the constructor.
12152 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12153 Default the constructor.
12154 <type>: Remove.
12155 (struct tui_win_info) <tui_win_info>: Default the constructor.
12156 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12157 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12158 Default the constructor.
12159
865a5aec
TT
121602020-02-22 Tom Tromey <tom@tromey.com>
12161
12162 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12163 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12164 * tui/tui-win.c (tui_resize_all): Don't call
12165 tui_delete_invisible_windows.
12166 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12167 done.
12168 (tui_set_layout): Update.
12169 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12170 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12171 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12172
e098d18c
TT
121732020-02-22 Tom Tromey <tom@tromey.com>
12174
12175 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12176 correctly.
12177
eb9c8874
TT
121782020-02-22 Tom Tromey <tom@tromey.com>
12179
12180 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12181
7eed1a8e
TT
121822020-02-22 Tom Tromey <tom@tromey.com>
12183
12184 * tui/tui-winsource.h (struct tui_source_window_iterator)
12185 <inner_iterator>: New etytypedef.
12186 <tui_source_window_iterator>: Take "end" parameter.
12187 <tui_source_window_iterator>: Take iterator.
12188 <operator*, advance>: Update.
12189 <m_iter>: Change type.
12190 <m_end>: New field.
12191 (struct tui_source_windows) <begin, end>: Update.
12192 * tui/tui-layout.c (tui_windows): New global.
12193 (tui_apply_current_layout): Clear tui_windows.
12194 (tui_layout_window::apply): Update tui_windows.
12195 * tui/tui-data.h (tui_windows): Declare.
12196 (all_tui_windows): Now inline function.
12197 (class tui_window_iterator, struct all_tui_windows): Remove.
12198
7c043ba6
TT
121992020-02-22 Tom Tromey <tom@tromey.com>
12200
12201 PR tui/17850:
12202 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12203 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12204 "height" argument.
12205 (class tui_layout_window) <get_sizes>: Likewise.
12206 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12207 argument.
12208 <get_sizes>: Add "height" argument.
12209 <m_vertical>: New field.
12210 * tui/tui-layout.c (tui_layout_split::clone): Update.
12211 (tui_layout_split::get_sizes): Add "height" argument.
12212 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12213 (tui_new_layout_command): Parse "-horizontal".
12214 (_initialize_tui_layout): Update help string.
12215 (tui_layout_split::specification): Add "-horizontal" when needed.
12216 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12217 argument.
12218 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12219 New methods.
12220
6bc56648
TT
122212020-02-22 Tom Tromey <tom@tromey.com>
12222
12223 * tui/tui-layout.h (enum tui_adjust_result): New.
12224 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12225 (class tui_layout_window) <adjust_size>: Return
12226 tui_adjust_result. Rewrite.
12227 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12228 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12229
c22fef7e
TT
122302020-02-22 Tom Tromey <tom@tromey.com>
12231
12232 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12233 parameter and return types.
12234 (class tui_layout_base) <specification>: Add "depth".
12235 (class tui_layout_window) <specification>: Add "depth".
12236 (class tui_layout_split) <specification>: Add "depth".
12237 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12238 and return types.
12239 (tui_new_layout_command): Parse sub-layouts.
12240 (_initialize_tui_layout): Update help string.
12241 (tui_layout_window::specification): Add "depth".
12242 (add_layout_command): Update.
12243
ee325b61
TT
122442020-02-22 Tom Tromey <tom@tromey.com>
12245
12246 * NEWS: Add "tui new-layout" item.
12247 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12248 Add new-layout command to help text.
12249 (validate_window_name): New function.
12250 (tui_new_layout_command): New function.
12251 (_initialize_tui_layout): Register "new-layout".
12252 (tui_layout_window::specification): New method.
12253 (tui_layout_window::specification): New method.
12254 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12255 method.
12256 (class tui_layout_window) <specification>: New method.
12257 (class tui_layout_split) <specification>: New method.
12258
416eb92d
TT
122592020-02-22 Tom Tromey <tom@tromey.com>
12260
12261 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12262 * tui/tui-win.c (window_name_completer): Update comment.
12263 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12264 Declare method.
12265 (class tui_layout_window) <replace_window>: Likewise.
12266 (class tui_layout_split) <replace_window>: Likewise.
12267 (tui_set_layout): Don't declare.
12268 (tui_set_initial_layout): Declare function.
12269 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12270 (asm_regs_layout): New globals.
12271 (tui_current_layout, show_layout): Remove.
12272 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12273 (find_layout, tui_apply_layout): New function.
12274 (layout_completer): Remove.
12275 (tui_next_layout): Reimplement.
12276 (tui_next_layout_command): New function.
12277 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12278 (tui_regs_layout): Reimplement.
12279 (tui_regs_layout_command): New function.
12280 (extract_display_start_addr): Rewrite.
12281 (next_layout, prev_layout): Remove.
12282 (tui_layout_window::replace_window): New method.
12283 (tui_layout_split::replace_window): New method.
12284 (destroy_layout): New function.
12285 (layout_list): New global.
12286 (add_layout_command): New function.
12287 (initialize_layouts): Update.
12288 (tui_layout_command): New function.
12289 (_initialize_tui_layout): Install "layout" commands.
12290 * tui/tui-data.h (enum tui_layout_type): Remove.
12291 (tui_current_layout): Don't declare.
12292
0dbc2fc7
TT
122932020-02-22 Tom Tromey <tom@tromey.com>
12294
12295 * tui/tui-regs.c (tui_reg_layout): Remove.
12296 (tui_reg_command): Use tui_regs_layout.
12297 * tui/tui-layout.h (tui_reg_command): Declare.
12298 * tui/tui-layout.c (tui_reg_command): New function.
12299
5afe342e
TT
123002020-02-22 Tom Tromey <tom@tromey.com>
12301
12302 * tui/tui.c (tui_rl_delete_other_windows): Call
12303 tui_remove_some_windows.
12304 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12305 Declare method.
12306 (class tui_layout_window) <remove_windows>: New method.
12307 (class tui_layout_split) <remove_windows>: Declare.
12308 (tui_remove_some_windows): Declare.
12309 * tui/tui-layout.c (tui_remove_some_windows): New function.
12310 (tui_layout_split::remove_windows): New method.
12311
427326a8
TT
123122020-02-22 Tom Tromey <tom@tromey.com>
12313
12314 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12315 * tui/tui-layout.h (tui_next_layout): Declare.
12316 * tui/tui-layout.c (tui_next_layout): New function.
12317
3fe12b6d
TT
123182020-02-22 Tom Tromey <tom@tromey.com>
12319
12320 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12321 correct coordinates.
12322
59b8b5d2
TT
123232020-02-22 Tom Tromey <tom@tromey.com>
12324
12325 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12326 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12327 DATA_WIN case.
12328
2a3d458b
TT
123292020-02-22 Tom Tromey <tom@tromey.com>
12330
12331 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12332 TUI_DISASM_WIN, not tui_win_list.
12333
3f0cbb04
TT
123342020-02-22 Tom Tromey <tom@tromey.com>
12335
12336 * valprint.c (generic_val_print_enum_1)
12337 (val_print_type_code_flags): Style member names.
12338 * rust-lang.c (val_print_struct, rust_print_enum)
12339 (rust_print_struct_def, rust_internal_print_type): Style member
12340 names.
12341 * p-valprint.c (pascal_object_print_value_fields): Style member
12342 names. Only call fprintf_symbol_filtered for static members.
12343 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12344 * f-valprint.c (f_val_print): Style member names.
12345 * f-typeprint.c (f_type_print_base): Style member names.
12346 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12347 call fprintf_symbol_filtered for static members.
12348 (cp_print_class_member): Style member names.
12349 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12350 member names.
12351 * ada-valprint.c (ada_print_scalar): Style enum names.
12352 (ada_val_print_enum): Likewise.
12353 * ada-typeprint.c (print_enum_type): Style enum names.
12354
d4d947ae
TT
123552020-02-21 Tom Tromey <tom@tromey.com>
12356
12357 * psympriv.h (struct partial_symtab): Update comment.
12358
e94e944b
TT
123592020-02-21 Tom Tromey <tromey@adacore.com>
12360
12361 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12362 type is CORE_ADDR.
12363
1eb73179
TV
123642020-02-21 Tom de Vries <tdevries@suse.de>
12365
12366 PR gdb/25534
12367 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12368 if dependencies[i]->user != NULL.
12369
4f180d53
AT
123702020-02-21 Ali Tamur <tamur@google.com>
12371
12372 * dwarf2/read.c (dwarf2_name): Add null check.
12373
22b6cd70
TT
123742020-02-20 Tom Tromey <tom@tromey.com>
12375
12376 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12377 ">=", in binary search.
12378 (dwarf2_find_containing_comp_unit): New overload.
12379 (run_test): New self-test.
12380 (_initialize_dwarf2_read): Register new test.
12381
bd0cf5a6
NC
123822020-02-20 Nelson Chu <nelson.chu@sifive.com>
12383
12384 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12385 * riscv-tdep.h: Likewise.
12386 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12387 rv32-only CSR.
12388 * features/riscv/64bit-csr.xml: Regenerated.
12389
3f702acd
SDJ
123902020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12391 Tom Tromey <tom@tromey.com>
12392
12393 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12394 of 'fputc_unfiltered'.
12395 (putchar_unfiltered): Call 'fputc_unfiltered'.
12396 (fputc_unfiltered): Call 'fputs_unfiltered'.
12397
d13c7322
AB
123982020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12399
12400 * config.in: Regenerate.
12401 * configure: Regenerate.
12402 * configure.ac: Add --with-python-libdir option.
12403 * main.c: Use WITH_PYTHON_LIBDIR.
12404
869d8950
TT
124052020-02-19 Tom Tromey <tom@tromey.com>
12406
12407 * symtab.c (general_symbol_info::compute_and_set_names): Use
12408 obstack_strndup. Simplify call to symbol_set_demangled_name.
12409
298e9637
SM
124102020-02-19 Simon Marchi <simon.marchi@efficios.com>
12411
12412 * dwarf2/read.c (allocate_signatured_type_table,
12413 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12414 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12415 Remove objfile parameter, update all callers.
12416
08410482
DE
124172020-02-19 Doug Evans <dje@google.com>
12418
12419 PR rust/25535
12420 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12421 rust_enum_variant calculation.
12422
dfdeeca1
TT
124232020-02-19 Tom Tromey <tromey@adacore.com>
12424
12425 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12426
2ef5453b
TT
124272020-02-19 Tom Tromey <tromey@adacore.com>
12428
12429 * ada-lang.c (cache_symbol): Use obstack_strdup.
12430
9f1528a1
AB
124312020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12432
12433 * configure: Regenerate.
12434
d3c22fa8
TT
124352020-02-19 Tom Tromey <tromey@adacore.com>
12436
12437 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12438 NULL check.
12439
bf84f706
MR
124402020-02-19 Maciej W. Rozycki <macro@wdc.com>
12441
12442 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12443
d1c9b20f
AB
124442020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12445
12446 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12447 if GDBSERVER is not defined.
12448 (riscv_tdesc_cache): Likewise, also store const target_desc.
12449 (STATIC_IN_GDB): Define.
12450 (riscv_create_target_description): Update declaration with
12451 STATIC_IN_GDB.
12452 (riscv_lookup_target_description): New function, only define if
12453 GDBSERVER is not defined.
12454 * arch/riscv.h (riscv_create_target_description): Declare only
12455 when GDBSERVER is defined.
12456 (riscv_lookup_target_description): New declaration when GDBSERVER
12457 is not defined.
12458 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12459 (riscv_linux_read_features): ...this, and return
12460 riscv_gdbarch_features instead of target_desc.
12461 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12462 (riscv_linux_read_description): Rename to...
12463 (riscv_linux_read_features): ...this.
12464 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12465 Update to use riscv_gdbarch_features and
12466 riscv_lookup_target_description.
12467 * riscv-tdep.c (riscv_find_default_target_description): Use
12468 riscv_lookup_target_description instead of
12469 riscv_create_target_description.
12470
373d7ac0
SM
124712020-02-18 Simon Marchi <simon.marchi@efficios.com>
12472
12473 * valprint.c (generic_val_print_enum_1): When printing a flag
12474 enum with value 0 and there is no enumerator with value 0, print
12475 just "0" instead of "(unknown: 0x0)".
12476
b29a2df0
SM
124772020-02-18 Simon Marchi <simon.marchi@efficios.com>
12478
12479 * valprint.c (generic_val_print_enum_1): Print unknown part of
12480 flag enum in hex.
12481
6740f0cc
SM
124822020-02-18 Simon Marchi <simon.marchi@efficios.com>
12483
12484 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12485 flag enums to contain duplicate enumerators.
12486 * valprint.c (generic_val_print_enum_1): Update comment.
12487
edd45eb0
SM
124882020-02-18 Simon Marchi <simon.marchi@efficios.com>
12489
12490 * dwarf2/read.c: Include "count-one-bits.h".
12491 (update_enumeration_type_from_children): If an enumerator has
12492 multiple bits set, don't treat the enumeration as a "flag enum".
12493 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12494 of flag enums have 0 or 1 bit set.
12495
6d0cf446
BE
124962020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12497
12498 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12499 conversion.
12500 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12501 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12502 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12503 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12504 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12505
7001c1b7
SM
125062020-02-18 Simon Marchi <simon.marchi@efficios.com>
12507
12508 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12509
fdb61c6c
SM
125102020-02-14 Simon Marchi <simon.marchi@efficios.com>
12511
12512 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12513 displaced_step_closure_up.
12514 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12515 (struct displaced_step_closure_up):
12516 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12517 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12518 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12519 Likewise.
12520 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12521 * gdbarch.c, gdbarch.h: Re-generate.
12522 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12523 displaced_step_closure_up.
12524 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12525 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12526 * infrun.h (displaced_step_closure_up): New type alias.
12527 (struct displaced_step_inferior_state) <step_closure>: Change
12528 type to displaced_step_closure_up.
12529 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12530 displaced_step_closure_up.
12531 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12532
a4a38eb4
TT
125332020-02-14 Tom Tromey <tom@tromey.com>
12534
12535 * minidebug.c (gnu_debug_key): New global.
12536 (find_separate_debug_file_in_section): Use it.
12537
e8217e61
SM
125382020-02-14 Simon Marchi <simon.marchi@efficios.com>
12539
12540 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12541 std::unique_ptr.
12542 * gdbarch.c: Re-generate.
12543 * gdbarch.h: Re-generate.
12544 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12545 change.
12546 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12547 type to std::unique_ptr.
12548 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12549 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12550 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12551 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12552 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12553 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12554 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12555 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12556 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12557
d8d83535
SM
125582020-02-14 Simon Marchi <simon.marchi@efficios.com>
12559
12560 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12561 std::unique_ptr.
12562 (displaced_step_clear): Rename to...
12563 (displaced_step_reset): ... this. Just call displaced->reset ().
12564 (displaced_step_clear_cleanup): Rename to...
12565 (displaced_step_reset_cleanup): ... this.
12566 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12567 (displaced_step_fixup): Likewise.
12568 (resume_1): Likewise.
12569 (handle_inferior_event): Restore child's memory before calling
12570 displaced_step_fixup on the parent.
12571 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12572 to std::unique_ptr.
12573 <step_closure>: Change type to std::unique_ptr.
12574
5f661e03
SM
125752020-02-14 Simon Marchi <simon.marchi@efficios.com>
12576
12577 * arm-tdep.c: Include count-one-bits.h.
12578 (cleanup_block_store_pc): Use count_one_bits.
12579 (cleanup_block_load_pc): Use count_one_bits.
12580 (arm_copy_block_xfer): Use count_one_bits.
12581 (thumb2_copy_block_xfer): Use count_one_bits.
12582 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12583 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12584 (thumb_get_next_pcs_raw): Use count_one_bits.
12585 (arm_get_next_pcs_raw): Use count_one_bits_l.
12586 * arch/arm.c (bitcount): Remove.
12587 * arch/arm.h (bitcount): Remove.
12588
8084e579
TT
125892020-02-14 Tom Tromey <tromey@adacore.com>
12590
12591 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12592 Update.
12593 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12594 * dwarf2/loc.c (call_site_find_chain_1): Return
12595 unique_xmalloc_ptr.
12596 (call_site_find_chain): Likewise.
12597
258bf0ee
RB
125982020-02-14 Richard Biener <rguenther@suse.de>
12599
12600 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12601 on expression with division operators.
12602
f98a8458
AKS
126032020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12604
12605 * MAINTAINERS (Write After Approval): Adding myself.
12606
d1437c0e
TT
126072020-02-12 Tom Tromey <tom@tromey.com>
12608
12609 * event-loop.c (event_data, gdb_event, event_handler_func):
12610 Remove.
12611
3d4560f7
TT
126122020-02-12 Tom Tromey <tom@tromey.com>
12613
12614 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12615 (dwarf2_frame_objfile_data): Add comment.
12616 (find_comp_unit, set_comp_unit): New functions.
12617 (dwarf2_frame_find_fde): Use find_comp_unit.
12618 (dwarf2_build_frame_info): Use set_comp_unit.
12619
21982304
TT
126202020-02-12 Tom Tromey <tom@tromey.com>
12621
12622 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12623 (comp_unit): Don't initialize objfile.
12624 (execute_cfa_program): Add text_offset parameter.
12625 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12626 (dwarf2_frame_cache): Update.
12627 (dwarf2_build_frame_info): Don't set "objfile" member.
12628
4debb237
TT
126292020-02-12 Tom Tromey <tom@tromey.com>
12630
12631 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12632 (decode_frame_entry): Likewise.
12633 (dwarf2_build_frame_info): Update.
12634
0d404d44
TT
126352020-02-12 Tom Tromey <tom@tromey.com>
12636
12637 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12638 (decode_frame_entry_1): Use the comp_unit obstack.
12639
a7a3ae5c
TT
126402020-02-12 Tom Tromey <tom@tromey.com>
12641
12642 * dwarf2/frame.c (struct comp_unit): Add initializers and
12643 constructor.
12644 (dwarf2_frame_objfile_data): Store a comp_unit.
12645 (dwarf2_frame_find_fde): Update.
12646 (dwarf2_build_frame_info): Use "new".
12647
a9d65418
TT
126482020-02-12 Tom Tromey <tom@tromey.com>
12649
12650 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12651 (dwarf2_fde_table): Typedef for std::vector.
12652 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12653 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12654 (decode_frame_entry): Update.
12655 (dwarf2_build_frame_info): Use "new".
12656
7559c217
CB
126572020-02-12 Christian Biesinger <cbiesinger@google.com>
12658
12659 * arm-tdep.c (arm_gdbarch_init): Update.
12660 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12661 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12662 have_neon, is_m>: Change to bool.
12663
aeefc73c
CB
126642020-02-12 Christian Biesinger <cbiesinger@google.com>
12665
12666 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12667
d27b8e5f
TT
126682020-02-12 Tom Tromey <tom@tromey.com>
12669
12670 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12671
cd5900f3
HD
126722020-02-12 Hannes Domani <ssbssa@yahoo.de>
12673
12674 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12675 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12676
f056b22b
TT
126772020-02-11 Tom Tromey <tom@tromey.com>
12678
12679 * psymtab.h: Update comment.
12680
f92ff6b5
TT
126812020-02-11 Tom Tromey <tom@tromey.com>
12682
12683 * gdb_obstack.h (struct auto_obstack): Use
12684 DISABLE_COPY_AND_ASSIGN.
12685
3fd6912b
TT
126862020-02-11 Tom Tromey <tom@tromey.com>
12687
12688 * dwarf2/frame.h (struct objfile): Don't forward declare.
12689
69ed9b74
CB
126902020-02-11 Christian Biesinger <cbiesinger@google.com>
12691
12692 * cris-tdep.c (cris_supply_gregset): Change signature to match
12693 what struct regset expects.
12694 (cris_regset): New struct.
12695 (fetch_core_registers): Remove.
12696 (cris_iterate_over_regset_sections): New function.
12697 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12698 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12699
bda874f6
CB
127002020-02-11 Christian Biesinger <cbiesinger@google.com>
12701
12702 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12703 registers.
12704
754e1564
CB
127052020-02-11 Christian Biesinger <cbiesinger@google.com>
12706
12707 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12708
8ddd8e0e
SM
127092020-02-11 Simon Marchi <simon.marchi@efficios.com>
12710
12711 * configure: Re-generate.
12712
898e7f60
SM
127132020-02-11 Simon Marchi <simon.marchi@efficios.com>
12714
12715 * configure: Re-generate.
12716
58df732b
SM
127172020-02-11 Simon Marchi <simon.marchi@efficios.com>
12718
12719 * acinclude: Update warning.m4 path.
12720 * warning.m4: Move to gdbsupport.
12721
da5bd37e
TT
127222020-02-11 Tom Tromey <tromey@adacore.com>
12723
12724 * remote.c (remote_console_output): Update.
12725 * printcmd.c (printf_command): Update.
12726 * event-loop.c (gdb_wait_for_event): Update.
12727 * linux-nat.c (sigchld_handler): Update.
12728 * remote-sim.c (gdb_os_write_stdout): Update.
12729 (gdb_os_flush_stdout): Update.
12730 (gdb_os_flush_stderr): Update.
12731 (gdb_os_write_stderr): Update.
12732 * exceptions.c (print_exception): Update.
12733 * remote-fileio.c (remote_fileio_func_read): Update.
12734 (remote_fileio_func_write): Update.
12735 * tui/tui.c (tui_enable): Update.
12736 * tui/tui-interp.c (tui_interp::init): Update.
12737 * utils.c (init_page_info): Update.
12738 (putchar_unfiltered, fputc_unfiltered): Update.
12739 (gdb_flush): Update.
12740 (emit_style_escape): Update.
12741 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12742 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12743 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12744 (stderr_file::write): Update.
12745 (stderr_file::puts): Update.
12746 * ui-file.h (ui_file_isatty, ui_file_write)
12747 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12748 (ui_file_puts): Don't declare.
12749
85f0dd3c
TV
127502020-02-10 Tom de Vries <tdevries@suse.de>
12751
12752 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12753 sentinel to char *.
12754
2e927613
TV
127552020-02-09 Tom de Vries <tdevries@suse.de>
12756
12757 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12758 filename if it matches "<artificial>".
12759
6bafc845
HD
127602020-02-09 Hannes Domani <ssbssa@yahoo.de>
12761
12762 * windows-tdep.c (struct enum_value_name): New struct.
12763 (create_enum): New function.
12764 (windows_get_siginfo_type): Create and use enum types.
12765
7928d571
HD
127662020-02-09 Hannes Domani <ssbssa@yahoo.de>
12767
12768 * NEWS: Mention $_siginfo support for Windows.
12769 * windows-nat.c (handle_exception): Set siginfo_er.
12770 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12771 (windows_xfer_siginfo): New function.
12772 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12773 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12774 (init_windows_gdbarch_data): New function.
12775 (get_windows_gdbarch_data): New function.
12776 (windows_get_siginfo_type): New function.
12777 (windows_init_abi): Register windows_get_siginfo_type.
12778 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12779
6751ebae
TT
127802020-02-08 Tom Tromey <tom@tromey.com>
12781
12782 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12783 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12784 <keep>: Declare method.
12785 <m_keep>: Remove member.
12786 <~cutu_reader>: Remove.
12787 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12788 (cutu_reader::cutu_reader): Update.
12789 (cutu_reader::keep): Rename from ~cutu_reader.
12790 (process_psymtab_comp_unit, build_type_psymtabs_1)
12791 (process_skeletonless_type_unit, load_partial_comp_unit)
12792 (load_full_comp_unit, dwarf2_read_addr_index)
12793 (read_signatured_type): Update.
12794
135f5437
TT
127952020-02-08 Tom Tromey <tom@tromey.com>
12796
12797 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12798 "want_partial_unit" parameter.
12799 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12800 Inline check for DW_TAG_partial_unit.
12801 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12802
9f66ff1c
TT
128032020-02-08 Tom Tromey <tom@tromey.com>
12804
12805 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12806 read.c.
12807 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12808 read.c.
12809
c8a7a66f
TT
128102020-02-08 Tom Tromey <tom@tromey.com>
12811
12812 * dwarf2/read.c (read_address): Move to comp-unit.c.
12813 (dwarf2_rnglists_process, dwarf2_ranges_process)
12814 (read_attribute_value, dwarf_decode_lines_1)
12815 (var_decode_location, decode_locdesc): Update.
12816 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12817 read.c. Remove "cu" parameter.
12818 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12819 method.
12820
8266302d
TT
128212020-02-08 Tom Tromey <tom@tromey.com>
12822
12823 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12824 (read_indirect_line_string): Update.
12825 * dwarf2/comp-unit.c (read_offset): Remove.
12826 (read_comp_unit_head): Update.
12827 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12828 method.
12829 (read_offset): Don't declare.
12830
4057dfde
TT
128312020-02-08 Tom Tromey <tom@tromey.com>
12832
12833 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12834 * dwarf2/read.c (struct comp_unit_head): Move to
12835 dwarf2/comp-unit.h.
12836 (enum class rcuh_kind): Move to comp-unit.h.
12837 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12838 (read_comp_unit_head, error_check_comp_unit_head)
12839 (read_and_check_comp_unit_head): Move to comp-unit.c.
12840 (read_offset, dwarf_unit_type_name): Likewise.
12841 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12842 (cutu_reader::cutu_reader, read_call_site_scope)
12843 (find_partial_die, follow_die_offset): Update.
12844 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12845
24aa364d
TT
128462020-02-08 Tom Tromey <tom@tromey.com>
12847
12848 * dwarf2/read.c (read_offset_1): Move to leb.c.
12849 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12850 (dwarf_decode_macro_bytes): Update.
12851 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12852 * dwarf2/leb.h (read_offset): Declare.
12853
2c7d5afc
TT
128542020-02-08 Tom Tromey <tom@tromey.com>
12855
12856 * dwarf2/read.c (dwarf2_section_size): Remove.
12857 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12858 Update.
12859 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12860
4075cb26
TT
128612020-02-08 Tom Tromey <tom@tromey.com>
12862
12863 * dwarf2/read.c (read_initial_length): Move to leb.c.
12864 * dwarf2/leb.h (read_initial_length): Declare.
12865 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12866 handle_nonstd parameter.
12867 * dwarf2/frame.c (read_initial_length): Remove.
12868 (decode_frame_entry_1): Update.
12869
09ba997f
TT
128702020-02-08 Tom Tromey <tom@tromey.com>
12871
12872 * dwarf2/loc.c (dwarf2_find_location_expression)
12873 (dwarf_evaluate_loc_desc::get_tls_address)
12874 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12875 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12876 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12877 (dwarf2_compile_property_to_c)
12878 (dwarf2_loc_desc_get_symbol_read_needs)
12879 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12880 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12881 (loclist_describe_location, loclist_tracepoint_var_ref)
12882 (loclist_generate_c_location): Update.
12883 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12884 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12885 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12886 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12887 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12888 (dwarf2_per_cu_data::addr_size)
12889 (dwarf2_per_cu_data::ref_addr_size)
12890 (dwarf2_per_cu_data::text_offset)
12891 (dwarf2_per_cu_data::addr_type): Now methods.
12892 (per_cu_header_read_in): Make per_cu "const".
12893 (dwarf2_version): Remove.
12894 (dwarf2_per_cu_data::int_type): Now a method.
12895 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12896 (set_die_type, read_array_type, read_subrange_index_type)
12897 (read_tag_string_type, read_subrange_type): Update.
12898 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12899 offset_size, ref_addr_size, text_offset, addr_type, version,
12900 objfile, int_type, addr_sized_int_type>: Declare methods.
12901
96c738c0
TT
129022020-02-08 Tom Tromey <tom@tromey.com>
12903
12904 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12905 Move earlier.
12906
8fdd972c
TT
129072020-02-08 Tom Tromey <tom@tromey.com>
12908
12909 * dwarf2/read.h (dwarf_line_debug): Declare.
12910 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12911 * dwarf2/read.c: Move line_header code to new files.
12912 (dwarf_line_debug): No longer static.
12913 * dwarf2/line-header.c: New file.
12914 * dwarf2/line-header.h: New file.
12915
03075812
TT
129162020-02-08 Tom Tromey <tom@tromey.com>
12917
12918 * dwarf2/read.c (struct line_header) <file_full_name,
12919 file_file_name>: Return unique_xmalloc_ptr.
12920 (line_header::file_file_name): Update.
12921 (line_header::file_full_name): Update.
12922 (dw2_get_file_names_reader): Update.
12923 (macro_start_file): Update.
12924
bb822404
TT
129252020-02-08 Tom Tromey <tom@tromey.com>
12926
12927 * dwarf2/read.c (struct line_header) <file_full_name,
12928 file_file_name>: Declare methods.
12929 (dw2_get_file_names_reader): Update.
12930 (file_file_name): Now a method.
12931 (file_full_name): Likewise.
12932 (macro_start_file): Update.
12933
009b64fc
TT
129342020-02-08 Tom Tromey <tom@tromey.com>
12935
12936 * dwarf2/read.c (dwarf_always_disassemble)
12937 (show_dwarf_always_disassemble): Move to loc.c.
12938 (_initialize_dwarf2_read): Move "always-disassemble" registration
12939 to loc.c.
12940 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12941 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12942 static.
12943 (show_dwarf_always_disassemble): Move from read.c.
12944 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12945
5895093f
TT
129462020-02-08 Tom Tromey <tom@tromey.com>
12947
12948 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12949 (create_quick_file_names_table): Return htab_up.
12950 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12951 Update.
12952 * dwarf2/read.h (struct dwarf2_per_objfile)
12953 <quick_file_names_table>: Now htab_up.
12954
b3b32279
TT
129552020-02-08 Tom Tromey <tom@tromey.com>
12956
12957 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12958
1d33d811
TT
129592020-02-08 Tom Tromey <tom@tromey.com>
12960
12961 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12962 Rewrite.
12963 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12964 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12965 (abbrev_table::abbrev_table): No longer inline.
12966 (ABBREV_HASH_SIZE): Remove.
12967 (abbrev_table::m_abbrevs): Now an htab_up.
12968
86de1d91
TT
129692020-02-08 Tom Tromey <tom@tromey.com>
12970
12971 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12972 (cutu_reader): Update.
12973 (build_type_psymtabs_1): Update.
12974 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12975 (abbrev_table::alloc_abbrev): Update.
12976 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12977 (abbrev_table::read): New static method, renamed from
12978 abbrev_table_read_table.
12979 (abbrev_table::alloc_abbrev)
12980 (abbrev_table::add_abbrev): Now private.
12981 (abbrev_table::abbrev_table): Now private.
12982 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12983
0335378b
TT
129842020-02-08 Tom Tromey <tom@tromey.com>
12985
12986 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12987 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12988 htab_up.
12989
48b490f2
TT
129902020-02-08 Tom Tromey <tom@tromey.com>
12991
12992 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12993 htab_up.
12994 (lookup_dwo_unit_in_dwp): Update.
12995 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12996 on obstack.
12997
bc68fb19
TT
129982020-02-08 Tom Tromey <tom@tromey.com>
12999
13000 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13001 obstack.
13002
d15acc42
TT
130032020-02-08 Tom Tromey <tom@tromey.com>
13004
13005 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13006 line_header_hash.
13007 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13008 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13009 Change type to htab_up.
13010
eaa5fa8b
TT
130112020-02-08 Tom Tromey <tom@tromey.com>
13012
13013 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13014 htab_up. Don't allocate on obstack.
13015 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13016 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13017 Change type to htab_up.
13018
b0b6a987
TT
130192020-02-08 Tom Tromey <tom@tromey.com>
13020
13021 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13022 Change type to htab_up.
13023 * dwarf2/read.c (create_signatured_type_table_from_index)
13024 (create_signatured_type_table_from_debug_names)
13025 (create_all_type_units, add_type_unit)
13026 (lookup_dwo_signatured_type, lookup_signatured_type)
13027 (process_skeletonless_type_unit): Update.
13028 (create_debug_type_hash_table, create_debug_types_hash_table):
13029 Change type of types_htab.
13030 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13031 htab_up. Don't allocate on obstack.
13032 (create_cus_hash_table): Change type of cus_htab parameter.
13033 (struct dwo_file) <cus, tus>: Now htab_up.
13034 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13035 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13036 (queue_and_load_all_dwo_tus): Update.
13037 * dwarf2/index-write.c (write_gdbindex): Update.
13038 (write_debug_names): Update.
13039
39856def
TT
130402020-02-08 Tom Tromey <tom@tromey.com>
13041
13042 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13043 dwarf2/read.c. Remove "next" member. Add constructor ntad
13044 destructor.
13045 (struct dwarf2_per_objfile) <queue>: New member.
13046 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13047 dwarf2/read.h.
13048 (dwarf2_queue, dwarf2_queue_tail): Remove.
13049 (class dwarf2_queue_guard): Add parameter to constructor. Use
13050 DISABLE_COPY_AND_ASSIGN.
13051 <m_per_objfile>: New member.
13052 <~dwarf2_queue_guard>: Rewrite.
13053 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13054 Update.
13055 (~dwarf2_queue_item): New.
13056
3e225074
TT
130572020-02-08 Tom Tromey <tom@tromey.com>
13058
13059 * dwarf2/read.c (struct die_info) <has_children>: New member.
13060 (dw2_get_file_names_reader): Remove has_children.
13061 (dw2_get_file_names): Update.
13062 (read_cutu_die_from_dwo): Remove has_children.
13063 (cutu_reader::init_tu_and_read_dwo_dies)
13064 (cutu_reader::cutu_reader): Update.
13065 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13066 Remove has_children.
13067 (build_type_psymtabs_1, process_skeletonless_type_unit)
13068 (load_partial_comp_unit, load_full_comp_unit): Update.
13069 (create_dwo_cu_reader): Remove has_children.
13070 (create_cus_hash_table, read_die_and_children): Update.
13071 (read_full_die_1,read_full_die): Remove has_children.
13072 (read_signatured_type): Update.
13073 (class cutu_reader) <has_children>: Remove.
13074
82ca8957
TT
130752020-02-08 Tom Tromey <tom@tromey.com>
13076
13077 * dwarf2/expr.c: Rename from dwarf2expr.c.
13078 * dwarf2/expr.h: Rename from dwarf2expr.h.
13079 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13080 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13081 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13082 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13083 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13084 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13085 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13086 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13087 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13088 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13089 * dwarf2/loc.c: Rename from dwarf2loc.c.
13090 * dwarf2/loc.h: Rename from dwarf2loc.h.
13091 * dwarf2/read.c: Rename from dwarf2read.c.
13092 * dwarf2/read.h: Rename from dwarf2read.h.
13093 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13094 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13095 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13096 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13097 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13098 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13099 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13100 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13101 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13102 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13103 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13104 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13105 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13106 Update.
13107 * Makefile.in (COMMON_SFILES): Update.
13108 (HFILES_NO_SRCDIR): Update.
13109
9e35d499
TT
131102020-02-08 Tom Tromey <tom@tromey.com>
13111
13112 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13113 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13114
1eba2311
TT
131152020-02-08 Tom Tromey <tom@tromey.com>
13116
13117 * dwarf2read.h (struct die_info): Don't declare.
13118
e41c2da2
TT
131192020-02-08 Tom Tromey <tom@tromey.com>
13120
13121 * dwarf2read.h (die_info_ptr): Remove typedef.
13122
4fc6c0d5
TT
131232020-02-08 Tom Tromey <tom@tromey.com>
13124
13125 * dwarf2read.c (read_call_site_scope)
13126 (handle_data_member_location, dwarf2_add_member_fn)
13127 (mark_common_block_symbol_computed, read_common_block)
13128 (attr_to_dynamic_prop, partial_die_info::read)
13129 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13130 (dwarf2_symbol_mark_computed, set_die_type): Update.
13131 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13132 method.
13133 (attr_form_is_block): Don't declare.
13134 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13135
cd6c91b4
TT
131362020-02-08 Tom Tromey <tom@tromey.com>
13137
13138 * dwarf2read.c (dwarf2_find_base_address, )
13139 (read_call_site_scope, rust_containing_type)
13140 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13141 (handle_data_member_location, dwarf2_add_member_fn)
13142 (get_alignment, read_structure_type, process_structure_scope)
13143 (mark_common_block_symbol_computed, read_common_block)
13144 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13145 (partial_die_info::read, read_attribute_value, new_symbol)
13146 (lookup_die_type, dwarf2_get_ref_die_offset)
13147 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13148 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13149 (dwarf2_symbol_mark_computed): Update.
13150 * dwarf2/attribute.h (struct attribute) <value_as_address,
13151 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13152 methods.
13153 (value_as_address, attr_form_is_section_offset)
13154 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13155 * dwarf2/attribute.c (attribute::value_as_address)
13156 (attribute::form_is_section_offset, attribute::form_is_constant)
13157 (attribute::form_is_ref): Now methods.
13158
162dce55
TT
131592020-02-08 Tom Tromey <tom@tromey.com>
13160
13161 * dwarf2read.c (struct attribute, DW_STRING)
13162 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13163 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13164 (attr_form_is_block, attr_form_is_section_offset)
13165 (attr_form_is_constant, attr_form_is_ref): Move.
13166 * dwarf2/attribute.h: New file.
13167 * dwarf2/attribute.c: New file, from dwarf2read.c.
13168 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13169
3054dd54
TT
131702020-02-08 Tom Tromey <tom@tromey.com>
13171
13172 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13173 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13174 Move.
13175 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13176 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13177 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13178 abbrev.c.
13179 * dwarf2/abbrev.h: New file.
13180 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13181 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13182
96b79293
TT
131832020-02-08 Tom Tromey <tom@tromey.com>
13184
13185 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13186 (dwarf2_section_size, dwarf2_get_section_info)
13187 (create_signatured_type_table_from_debug_names)
13188 (create_addrmap_from_aranges, read_debug_names_from_section)
13189 (get_gdb_index_contents_from_section, read_comp_unit_head)
13190 (error_check_comp_unit_head, read_abbrev_offset)
13191 (create_debug_type_hash_table, init_cu_die_reader)
13192 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13193 (read_comp_units_from_section, create_cus_hash_table)
13194 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13195 (create_dwp_v2_section, dwarf2_rnglists_process)
13196 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13197 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13198 (read_indirect_string_from_dwz, read_addr_index_1)
13199 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13200 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13201 (fill_in_loclist_baton): Update.
13202 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13203 get_containing_section, get_bfd_owner, get_bfd_section,
13204 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13205 (dwarf2_read_section, get_section_name, get_section_file_name)
13206 (get_containing_section, get_section_bfd_owner)
13207 (get_section_bfd_section, get_section_name, get_section_file_name)
13208 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13209 declare.
13210 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13211 (dwarf2_section_info::get_bfd_owner)
13212 (dwarf2_section_info::get_bfd_section)
13213 (dwarf2_section_info::get_name)
13214 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13215 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13216 (dwarf2_section_info::read): Now methods.
13217 * dwarf-index-write.c (class debug_names): Update.
13218
2c86cff9
TT
132192020-02-08 Tom Tromey <tom@tromey.com>
13220
13221 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13222 Move to dwarf2/section.h.
13223 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13224 (get_section_bfd_section, get_section_name)
13225 (get_section_file_name, get_section_id, get_section_flags)
13226 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13227 dwarf2/section.c.
13228 * dwarf2/section.h: New file.
13229 * dwarf2/section.c: New file, from dwarf2read.c.
13230 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13231
f4382c45
TT
132322020-02-08 Tom Tromey <tom@tromey.com>
13233
13234 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13235 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13236 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13237 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13238 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13239 * dwarf2/leb.h: New file, from dwarf2read.c.
13240 * dwarf2/leb.c: New file, from dwarf2read.c.
13241 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13242 Remove.
13243 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13244 (COMMON_SFILES): Add dwarf2/leb.c.
13245
01840b7a
JB
132462020-02-08 Joel Brobecker <brobecker@adacore.com>
13247
13248 GDB 9.1 released.
13249
dfcb27e4
IB
132502020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13251
13252 PR gdb/25190:
aac66a4c
SM
13253 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13254 * gdb/remote.c (remote_console_output): Update.
13255 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13256 (ui_file_puts): ...this.
13257 * gdb/ui-file.h (ui_file_puts): Add declaration.
13258 * gdb/utils.c (emit_style_escape): Update.
13259 (flush_wrap_buffer): Update.
13260 (fputs_maybe_filtered): Update.
13261 (fputs_unfiltered): Add function.
dfcb27e4 13262
faa17681
IB
132632020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13264
aac66a4c
SM
13265 * gdb/event-loop.c (gdb_wait_for_event): Update.
13266 * gdb/printcmd.c (printf_command): Update.
13267 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13268 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13269 (gdb_os_flush_stderr): Update.
13270 * gdb/remote.c (remote_console_output): Update.
13271 * gdb/ui-file.c (gdb_flush): Rename to...
13272 (ui_file_flush): ...this.
13273 (stderr_file::write): Update.
13274 (stderr_file::puts): Update.
13275 * gdb/ui-file.h (gdb_flush): Rename to...
13276 (ui_file_flush): ...this.
13277 * gdb/utils.c (gdb_flush): Add function.
13278 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 13279
5abbbe1d
TT
132802020-02-07 Tom Tromey <tromey@adacore.com>
13281
13282 PR breakpoints/24915:
13283 * source.c (find_and_open_source): Do not check basenames_may_differ.
13284
919adfe8
TT
132852020-02-07 Tom Tromey <tom@tromey.com>
13286
13287 * README: Update gdbserver documentation.
13288 * gdbserver: Move to top level.
13289 * configure.tgt (build_gdbserver): Remove.
13290 * configure.ac: Remove --enable-gdbserver.
13291 * configure: Rebuild.
13292 * Makefile.in (distclean): Don't mention gdbserver.
13293
1d5d29e7
SV
132942020-02-06 Shahab Vahedi <shahab@synopsys.com>
13295
13296 * source-cache.c (source_cache::ensure): Surround
13297 get_plain_source_lines with a try/catch.
13298 (source_cache::get_line_charpos): Get rid of try/catch
13299 and only check for the return value of "ensure".
13300 * tui/tui-source.c (tui_source_window::set_contents):
13301 Simplify "nlines" calculation.
13302
6eb1129c
SV
133032020-02-06 Shahab Vahedi <shahab@synopsys.com>
13304
13305 * MAINTAINERS (Write After Approval): Add myself.
13306
c6a42d11
CB
133072020-02-05 Christian Biesinger <cbiesinger@google.com>
13308
13309 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13310 function call.
13311
c8ecdda6
CB
133122020-02-05 Christian Biesinger <cbiesinger@google.com>
13313
13314 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13315
f6480e70
MR
133162020-02-05 Maciej W. Rozycki <macro@wdc.com>
13317
13318 * nat/riscv-linux-tdesc.h: New file.
13319 * nat/riscv-linux-tdesc.c: New file, taking code from...
13320 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13321 ... here.
13322 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13323 NATDEPFILES.
13324
dcc9fbc6
AB
133252020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13326
13327 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13328 we don't set the fake simulator ptid to the null_ptid.
13329
719546c4
SM
133302020-02-03 Simon Marchi <simon.marchi@efficios.com>
13331
13332 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13333 * gdbthread.h (class thread_info) <resumed>: Likewise.
13334 * infrun.c (resume_1): Likewise.
13335 (proceed): Likewise.
13336 (infrun_thread_stop_requested): Likewise.
13337 (stop_all_threads): Likewise.
13338 (handle_inferior_event): Likewise.
13339 (restart_threads): Likewise.
13340 (finish_step_over): Likewise.
13341 (keep_going_stepped_thread): Likewise.
13342 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13343 (linux_handle_extended_wait): Likewise.
13344 * record-btrace.c (get_thread_current_frame_id): Likewise.
13345 * record-full.c (record_full_wait_1): Likewise.
13346 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13347 * target.c (target_resume): Likewise.
13348 * thread.c (set_running_thread): Likewise.
13349
e409c542
AKS
133502020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13351
13352 * f-valprint.c (f77_print_array_1): Changed datatype of index
13353 variable to LONGEST from int to enable it to contain bound
13354 values correctly.
13355
ee98c0da
MR
133562020-02-03 Maciej W. Rozycki <macro@wdc.com>
13357
13358 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13359 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13360 offsets according to FLEN determined.
13361 (riscv_linux_nat_target::read_description): Determine FLEN
13362 dynamically.
13363 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13364 according to FLEN determined.
13365 (riscv_linux_nat_target::store_registers): Likewise.
13366
aa66aac4
SV
133672020-02-01 Shahab Vahedi <shahab@synopsys.com>
13368
13369 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13370 when reg->group is empty and reggroup is not.
13371
fd9faca8
TT
133722020-01-31 Tom Tromey <tromey@adacore.com>
13373
13374 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13375 Call beneath target's mourn_inferior after unpushing.
13376
42330a68
AB
133772020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13378
13379 PR tui/9765
13380 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13381 have enough lines to fill the screen, still return the lowest
13382 address we found.
13383
7a27a45b
AB
133842020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13385
13386 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13387 '-', '<', and '>' commands.
13388
c47f70e2
PA
133892020-01-29 Pedro Alves <palves@redhat.com>
13390 Sergio Durigan Junior <sergiodj@redhat.com>
13391
13392 * infcmd.c (construct_inferior_arguments): Assert that
13393 'argc' is greater than 0.
13394
5133a315
LM
133952020-01-29 Luis Machado <luis.machado@linaro.org>
13396
13397 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13398 (BRK_INSN_MASK): Define to 0xd4200000.
13399 (aarch64_program_breakpoint_here_p): New function.
13400 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13401 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13402 breakpoint.c.
13403 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13404 breakpoint.h
13405 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13406 call gdbarch_program_breakpoint_here_p.
13407 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13408 default_program_breakpoint_here_p, changed return type to bool and
13409 simplified.
13410 * breakpoint.h (program_breakpoint_here): Moved prototype to
13411 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13412 return type to bool.
13413 * gdbarch.c: Regenerate.
13414 * gdbarch.h: Regenerate.
13415 * gdbarch.sh (program_breakpoint_here_p): New method.
13416 * infrun.c (handle_signal_stop): Call
13417 gdbarch_program_breakpoint_here_p.
13418
168f8c6b
TT
134192020-01-26 Tom Tromey <tom@tromey.com>
13420
13421 * ctfread.c (struct ctf_fp_info): Reindent.
13422 (_initialize_ctfread): Remove.
13423
128a391f
TT
134242020-01-26 Tom Tromey <tom@tromey.com>
13425
13426 * psymtab.c (partial_map_expand_apply)
13427 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13428 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13429 (psym_print_stats, psym_expand_symtabs_for_function)
13430 (psym_map_symbol_filenames, psym_map_matching_symbols)
13431 (psym_expand_symtabs_matching)
13432 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13433 (maintenance_check_psymtabs): Use new methods.
13434 * psympriv.h (struct partial_symtab) <readin_p,
13435 get_compunit_symtab>: New methods.
13436 <readin, compunit_symtab>: Remove members.
13437 (struct standard_psymtab): New.
13438 (struct legacy_psymtab): Derive from standard_psymtab.
13439 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13440 standard_psymtab.
13441 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13442
0494dbec
TT
134432020-01-26 Tom Tromey <tom@tromey.com>
13444
13445 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13446 read_dependencies. Add assert.
13447 * psymtab.c (partial_symtab::read_dependencies): New method.
13448 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13449 method.
13450 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13451 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13452 read_dependencies.
13453 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13454 Add assert.
13455
8566b89b
TT
134562020-01-26 Tom Tromey <tom@tromey.com>
13457
13458 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13459 Call expand_psymtab.
13460 (xcoff_read_symtab): Call expand_psymtab.
13461 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13462 legacy_expand_psymtab.
13463 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13464 method.
13465 (struct legacy_psymtab) <expand_psymtab>: Implement.
13466 <legacy_expand_psymtab>: New member.
13467 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13468 (parse_partial_symbols): Set legacy_expand_psymtab.
13469 (psymtab_to_symtab_1): Change argument order. Call
13470 expand_psymtab.
13471 (new_psymtab): Set legacy_expand_psymtab.
13472 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13473 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13474 expand_psymtab.
13475 (dwarf2_psymtab::expand_psymtab): Rename from
13476 psymtab_to_symtab_1. Call expand_psymtab.
13477 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13478 (dbx_end_psymtab): Likewise.
13479 (dbx_psymtab_to_symtab_1): Change argument order. Call
13480 expand_psymtab.
13481 (dbx_read_symtab): Call expand_psymtab.
13482 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13483 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13484 (ctf_psymtab::read_symtab): Call expand_psymtab.
13485
077cbab2
TT
134862020-01-26 Tom Tromey <tom@tromey.com>
13487
13488 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13489 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13490 messages.
13491 * mdebugread.c (mdebug_read_symtab): Remove prints.
13492 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13493 assert.
13494 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13495
891813be
TT
134962020-01-26 Tom Tromey <tom@tromey.com>
13497
13498 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13499 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13500 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13501 legacy_symtab.
13502 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13503 * psymtab.c (psymtab_to_symtab): Call method.
13504 (dump_psymtab): Update.
13505 * psympriv.h (struct partial_symtab): Add virtual destructor.
13506 <read_symtab>: New method.
13507 (struct legacy_symtab): New.
13508 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13509 (struct pst_map) <pst>: Now a legacy_psymtab.
13510 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13511 (new_psymtab): Use legacy_psymtab.
13512 * dwarf2read.h (struct dwarf2_psymtab): New.
13513 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13514 * dwarf2read.c (dwarf2_create_include_psymtab)
13515 (dwarf2_build_include_psymtabs, create_type_unit_group)
13516 (create_partial_symtab, process_psymtab_comp_unit_reader)
13517 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13518 (set_partial_user): Use dwarf2_psymtab.
13519 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13520 (psymtab_to_symtab_1, process_full_comp_unit)
13521 (process_full_type_unit, dwarf2_ranges_read)
13522 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13523 (dwarf_decode_lines): Use dwarf2_psymtab.
13524 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13525 (add_address_entry_worker, write_one_signatured_type)
13526 (recursively_count_psymbols, recursively_write_psymbols)
13527 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13528 (write_debug_names): Likewise.
13529 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13530 <pst>: Now a legacy_psymtab.
13531 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13532 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13533 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13534 * ctfread.c (struct ctf_psymtab): New.
13535 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13536 ctf_psymtab.
13537 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13538 (create_partial_symtab): Return a ctf_psymtab.
13539 (scan_partial_symbols): Update.
13540
c3693a1d
TT
135412020-01-26 Tom Tromey <tom@tromey.com>
13542
13543 * xcoffread.c (xcoff_start_psymtab): Use new.
13544 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13545 renamed from start_psymtab_common.
13546 * psympriv.h (struct partial_symtab): Add new constructor.
13547 (start_psymtab_common): Don't declare.
13548 * mdebugread.c (parse_partial_symbols): Use new.
13549 * dwarf2read.c (create_partial_symtab): Use new.
13550 * dbxread.c (start_psymtab): Use new.
13551 * ctfread.c (create_partial_symtab): Use new.
13552
32caafd0
TT
135532020-01-26 Tom Tromey <tom@tromey.com>
13554
13555 * xcoffread.c (xcoff_end_psymtab): Use new.
13556 * psymtab.c (start_psymtab_common): Use new.
13557 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13558 Update.
13559 * psympriv.h (struct partial_symtab): Add parameters to
13560 constructor. Don't inline.
13561 (allocate_psymtab): Don't declare.
13562 * mdebugread.c (new_psymtab): Use new.
13563 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13564 * dbxread.c (dbx_end_psymtab): Use new.
13565
abaa2f23
TT
135662020-01-26 Tom Tromey <tom@tromey.com>
13567
13568 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13569 allocate_psymtab. Update documentation.
13570 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13571 allocate_psymtab. Do not use new.
13572 (allocate_psymtab): Use new. Update.
13573
6d94535f
TT
135742020-01-26 Tom Tromey <tom@tromey.com>
13575
13576 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13577 * psymtab.c (psym_print_stats): Update.
13578 * psympriv.h (struct partial_symtab) <readin,
13579 psymtabs_addrmap_supported, anonymous>: Now bool.
13580 * mdebugread.c (psymtab_to_symtab_1): Update.
13581 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13582 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13583 (process_full_comp_unit, process_full_type_unit): Update.
13584 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13585 * ctfread.c (psymtab_to_symtab): Update.
13586
6f17252b
TT
135872020-01-26 Tom Tromey <tom@tromey.com>
13588
13589 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13590 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13591 * psymtab.c (psymtab_storage): Delete psymtabs.
13592 (psymtab_storage::allocate_psymtab): Use new.
13593 (psymtab_storage::discard_psymtab): Use delete.
13594 * psympriv.h (struct partial_symtab): Add constructor and
13595 initializers.
13596
f6f1cebc
TT
135972020-01-26 Tom Tromey <tom@tromey.com>
13598
13599 * machoread.c: Do not include psympriv.h.
13600
e47e48f6
PW
136012020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13602
13603 * NEWS: Mention the new option and the set/show commands.
13604
a2fedca9
PW
136052020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13606
13607 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13608 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13609 (validate_exec_file): New variables, enums, functions.
13610 (exec_file_locate_attach, print_section_info): Style the filenames.
13611 (_initialize_exec): Install show_exec_file_mismatch_command and
13612 set_exec_file_mismatch_command.
13613 * gdbcore.h (validate_exec_file): Declare.
13614 * infcmd.c (attach_command): Call validate_exec_file.
13615 * remote.c ( remote_target::remote_add_inferior): Likewise.
13616
7ffa82e1
AB
136172020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13618
13619 * frame.c (find_frame_sal): Move call to get_next_frame into more
13620 inner scope.
13621 * inline-frame.c (inilne_state) <inline_state>: Update argument
13622 types.
13623 (inilne_state) <skipped_symbol>: Rename to...
13624 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13625 (skip_inline_frames): Build vector of skipped symbols and use this
13626 to reate the inline_state.
13627 (inline_skipped_symbol): Add a comment and some assertions, fetch
13628 skipped symbol from the list.
13629
3d92a3e3
AB
136302020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13631
13632 * buildsym.c (lte_is_less_than): Delete.
13633 (buildsym_compunit::end_symtab_with_blockvector): Create local
13634 lambda function to sort line table entries, and use
13635 std::stable_sort instead of std::sort.
13636 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13637 markers when looking for a previous line.
13638
94a72be7
AB
136392020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13640
13641 * dwarf2read.c (lnp_state_machine::record_line): Include
13642 end_sequence parameter in debug print out. Record the line if we
13643 are at an end_sequence marker even if it's not the start of a
13644 statement.
13645 * symmisc.c (maintenance_print_one_line_table): Print end of
13646 sequence markers with 'END' not '0'.
13647
53af73bf
PA
136482020-01-24 Pedro Alves <palves@redhat.com>
13649
13650 PR gdb/25410
13651 * thread.c (scoped_restore_current_thread::restore): Use
13652 switch_to_inferior_no_thread.
13653 * exec.c: Include "progspace-and-thread.h".
13654 (add_target_sections, remove_target_sections):
13655 scoped_restore_current_pspace_and_thread instead of
13656 scoped_restore_current_thread.
13657 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13658 and aspace to the inferior before calling clone_program_space.
13659 Remove stale comment.
13660
3050c6f4
CB
136612020-01-24 Christian Biesinger <cbiesinger@google.com>
13662
13663 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13664 (arm_netbsd_nat_target::fetch_registers): ...this.
13665 (arm_nbsd_nat_target::store_registers): Rename to...
13666 (arm_netbsd_nat_target::store_registers): ...this.
13667
73685c7e
CB
136682020-01-24 Christian Biesinger <cbiesinger@google.com>
13669
13670 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13671 register_t.
13672
89203d40
CB
136732020-01-24 Christian Biesinger <cbiesinger@google.com>
13674
13675 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13676 Update comment.
13677 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13678 Likewise.
13679 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13680 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13681 the correct replacement (iterate_over_regset_sections).
13682 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13683 Update comment.
13684
1ba1ac88
AB
136852020-01-24 Graham Markall <graham.markall@embecosm.com>
13686
13687 PR gdb/23718
13688 * gdb/python/python.c (execute_gdb_command): Call
13689 async_enable_stdin in catch block.
13690
f3364a6d
AB
136912020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13692
13693 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13694 SWITCH_THRU_ALL_UIS.
13695
733d0a67
AB
136962020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13697
13698 PR tui/9765
13699 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13700 comment, add extra parameter, and update to store previous symbol
13701 when appropriate.
13702 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13703 add extra parameter.
13704 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13705 remove unneeded parameter, add try/catch around gdb_print_insn,
13706 rewrite to add items to asm_lines vector.
13707 (tui_find_backward_disassembly_start_address): New function.
13708 (tui_find_disassembly_address): Updated throughout.
13709 (tui_disasm_window::set_contents): Update for changes to
13710 tui_disassemble.
13711 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13712 number of lines to scroll.
13713
b3b3bada
SM
137142020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13715
13716 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13717 (SECT_OFF_DATA): Likewise.
13718 (SECT_OFF_RODATA): Likewise.
13719 (SECT_OFF_TEXT): Likewise.
13720 (SECT_OFF_BSS): Likewise.
13721 (struct objfile) <text_section_offset, data_section_offset>: New
13722 methods.
13723 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13724 objfile::text_section_offset.
13725 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13726 * coffread.c (coff_symtab_read): Likewise.
13727 (enter_linenos): Likewise.
13728 (process_coff_symbol): Likewise.
13729 * ctfread.c (get_objfile_text_range): Likewise.
13730 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13731 Use objfile::data_section_offset.
13732 * dwarf2-frame.c (execute_cfa_program): Use
13733 objfile::text_section_offset.
13734 (dwarf2_frame_find_fde): Likewise.
13735 * dwarf2read.c (create_addrmap_from_index): Likewise.
13736 (create_addrmap_from_aranges): Likewise.
13737 (dw2_find_pc_sect_compunit_symtab): Likewise.
13738 (process_psymtab_comp_unit_reader): Likewise.
13739 (add_partial_symbol): Likewise.
13740 (add_partial_subprogram): Likewise.
13741 (process_full_comp_unit): Likewise.
13742 (read_file_scope): Likewise.
13743 (read_func_scope): Likewise.
13744 (read_lexical_block_scope): Likewise.
13745 (read_call_site_scope): Likewise.
13746 (dwarf2_rnglists_process): Likewise.
13747 (dwarf2_ranges_process): Likewise.
13748 (dwarf2_ranges_read): Likewise.
13749 (dwarf_decode_lines_1): Likewise.
13750 (new_symbol): Likewise.
13751 (dwarf2_fetch_die_loc_sect_off): Likewise.
13752 (dwarf2_per_cu_text_offset): Likewise.
13753 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13754 * hppa-tdep.c (read_unwind_info): Likewise.
13755 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13756 * psympriv.h (struct partial_symtab): Likewise.
13757 * psymtab.c (find_pc_sect_psymtab): Likewise.
13758 * solib-svr4.c (enable_break): Likewise.
13759 * stap-probe.c (relocate_address): Use
13760 objfile::data_section_offset.
13761 * xcoffread.c (enter_line_range): Use
13762 objfile::text_section_offset.
13763 (read_xcoff_symtab): Likewise.
13764
ab53f382
SM
137652020-01-23 Simon Marchi <simon.marchi@efficios.com>
13766
13767 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13768 declaration to narrower scopes.
13769
e7eee665
SM
137702020-01-23 Simon Marchi <simon.marchi@efficios.com>
13771
13772 * darwin-nat.h (struct darwin_exception_msg, enum
13773 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13774 Move up.
13775 (class darwin_nat_target) <wait_1, check_new_threads,
13776 decode_exception_message, decode_message, stop_inferior,
13777 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13778 * darwin-nat.c (darwin_check_new_threads): Rename to...
13779 (darwin_nat_target::check_new_threads): ... this.
13780 (darwin_suspend_inferior_it): Remove.
13781 (darwin_decode_exception_message): Rename to...
13782 (darwin_nat_target::decode_exception_message): ... this.
13783 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13784 (darwin_decode_message): Rename to...
13785 (darwin_nat_target::decode_message): ... this.
13786 (cancel_breakpoint): Rename to...
13787 (darwin_nat_target::cancel_breakpoint): ... this.
13788 (darwin_wait): Rename to...
13789 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13790 instead of iterate_over_inferiors.
13791 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13792 (darwin_stop_inferior): Rename to...
13793 (darwin_nat_target::stop_inferior): ... this.
13794 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13795 (darwin_init_thread_list): Rename to...
13796 (darwin_nat_target::init_thread_list): ... this.
13797 (darwin_ptrace_him): Rename to...
13798 (darwin_nat_target::ptrace_him): ... this.
13799 (darwin_nat_target::create_inferior): Pass lambda function to
13800 fork_inferior.
13801 (darwin_nat_target::detach): Call stop_inferior instead of
13802 darwin_stop_inferior.
13803 * fork-inferior.h (fork_inferior): Change init_trace_fun
13804 parameter to gdb::function_view.
13805 * fork-inferior.c (fork_inferior): Likewise.
13806
c162ed3e
HD
138072020-01-23 Hannes Domani <ssbssa@yahoo.de>
13808
13809 * i386-cygwin-tdep.c (core_process_module_section): Update.
13810 * windows-nat.c (struct lm_info_windows): Add text_offset.
13811 (windows_xfer_shared_libraries): Update.
13812 * windows-tdep.c (windows_xfer_shared_library):
13813 Add text_offset_cached argument.
13814 * windows-tdep.h (windows_xfer_shared_library): Update.
13815
a1237872
SM
138162020-01-21 Simon Marchi <simon.marchi@efficios.com>
13817
13818 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13819
b3ee6dd9
SM
138202020-01-21 Simon Marchi <simon.marchi@efficios.com>
13821
13822 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13823 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13824 replace with range-based for.
13825 (gdbsim_interrupt_inferior): Remove.
13826 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13827 with a range-based for. Inline code from
13828 gdbsim_interrupt_inferior.
13829
f9fac3c8
SM
138302020-01-21 Simon Marchi <simon.marchi@efficios.com>
13831
13832 * infrun.c (proceed): Fix indentation.
13833
f6474de9
TT
138342020-01-21 Tom Tromey <tromey@adacore.com>
13835
13836 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13837 * python/python.c (python_extension_ops): Update.
13838 (gdbpy_colorize): New function.
13839 * python/lib/gdb/__init__.py (colorize): New function.
13840 * extension.h (ext_lang_colorize): Declare.
13841 * extension.c (ext_lang_colorize): New function.
13842 * extension-priv.h (struct extension_language_ops) <colorize>: New
13843 member.
13844 * cli/cli-style.c (_initialize_cli_style): Update help text.
13845
f0c702d4
LM
138462020-01-21 Luis Machado <luis.machado@linaro.org>
13847
13848 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13849 <cond>: Change type to bool.
13850 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13851 (aarch64_displaced_step_cb): Likewise.
13852 (aarch64_displaced_step_tb): Likewise.
13853
1ab139e5
LM
138542020-01-21 Luis Machado <luis.machado@linaro.org>
13855
13856 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13857 output.
13858
0c271889
LM
138592020-01-21 Luis Machado <luis.machado@linaro.org>
13860
13861 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13862 <pc_adjust>: Adjust the documentation.
13863 (aarch64_displaced_step_fixup): Check if PC really moved before
13864 adjusting it.
13865
4d89c1c7
TT
138662020-01-19 Tom Tromey <tom@tromey.com>
13867
13868 * disasm.c (~gdb_disassembler): New destructor.
13869 (gdb_buffered_insn_length): Call disassemble_free_target.
13870 * disasm.h (class gdb_disassembler): Declare destructor. Use
13871 DISABLE_COPY_AND_ASSIGN.
13872
c0ab21c2
TT
138732020-01-19 Tom Tromey <tom@tromey.com>
13874
13875 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13876 (die_reader_func_ftype): Remove.
13877 (cutu_reader): New class.
13878 (dw2_get_file_names_reader): Remove "data" parameter.
13879 (dw2_get_file_names): Use cutu_reader.
13880 (create_debug_type_hash_table): Update.
13881 (read_cutu_die_from_dwo): Update comment.
13882 (lookup_dwo_unit): Add dwo_name parameter.
13883 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13884 die_reader_func_ftype and data parameters.
13885 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13886 Remove die_reader_func_ftype and data parameters.
13887 (~cutu_reader): New; from init_cutu_and_read_dies.
13888 (cutu_reader::cutu_reader): Rename from
13889 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13890 and data parameters.
13891 (init_cutu_and_read_dies_simple): Remove.
13892 (struct process_psymtab_comp_unit_data): Remove.
13893 (process_psymtab_comp_unit_reader): Remove data parameter; add
13894 want_partial_unit and pretend_language parameters.
13895 (process_psymtab_comp_unit): Use cutu_reader.
13896 (build_type_psymtabs_reader): Remove data parameter.
13897 (build_type_psymtabs_1): Use cutu_reader.
13898 (process_skeletonless_type_unit): Likewise.
13899 (load_partial_comp_unit_reader): Remove.
13900 (load_partial_comp_unit): Use cutu_reader.
13901 (load_full_comp_unit_reader): Remove.
13902 (load_full_comp_unit): Use cutu_reader.
13903 (struct create_dwo_cu_data): Remove.
13904 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13905 dwo_unit parameters.
13906 (create_cus_hash_table): Use cutu_reader.
13907 (struct dwarf2_read_addr_index_data): Remove.
13908 (dwarf2_read_addr_index_reader): Remove.
13909 (dwarf2_read_addr_index): Use cutu_reader.
13910 (read_signatured_type_reader): Remove.
13911 (read_signatured_type): Use cutu_reader.
13912
45bbae5c
TT
139132020-01-19 Tom Tromey <tom@tromey.com>
13914
13915 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13916 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13917 (tui_wrefresh): Declare.
13918 * tui/tui-wingeneral.c (suppress_output): New global.
13919 (tui_suppress_output, ~tui_suppress_output): New constructor and
13920 destructor.
13921 (tui_wrefresh): New function.
13922 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13923 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13924 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13925 method.
13926 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13927 tui_wrefresh.
13928 (tui_data_window::no_refresh): New method.
13929 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13930 (tui_reg_command): Use tui_suppress_output
13931 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13932 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13933 method.
13934 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13935
4f13c1c0
TT
139362020-01-19 Tom Tromey <tom@tromey.com>
13937
13938 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13939 Handle case where symtab is null.
13940
fa47e446
SM
139412020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13942
13943 * linux-fork.c (one_fork_p): Simplify.
13944
26f42329
SM
139452020-01-17 Simon Marchi <simon.marchi@efficios.com>
13946
13947 * top.c (struct qt_args): Remove.
13948 (kill_or_detach): Change return type to void, replace `void *`
13949 parameter with a proper one.
13950 (print_inferior_quit_action): Likewise.
13951 (quit_confirm): Use range-based for loop to iterate over inferiors.
13952 (quit_force): Likewise.
13953
a9ac81b1
SM
139542020-01-17 Simon Marchi <simon.marchi@efficios.com>
13955
13956 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13957 `void *` parameter with proper parameters.
13958 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13959 (print_one_inferior): Change return type to void, replace `void *`
13960 parameter with proper parameters.
13961 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13962 inferiors.
13963 (get_other_inferior): Remove.
13964 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13965 inferiors.
13966
788eca49
SM
139672020-01-17 Simon Marchi <simon.marchi@efficios.com>
13968
13969 * mi/mi-interp.c (report_initial_inferior): Remove.
13970 (mi_interp::init): Use range-based for to iterate over inferiors.
13971
d9bc85b6
SM
139722020-01-17 Simon Marchi <simon.marchi@efficios.com>
13973
13974 * python/py-inferior.c (build_inferior_list): Remove.
13975 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13976
40c94099
CB
139772020-01-16 Christian Biesinger <cbiesinger@google.com>
13978
13979 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13980 (btrace_stitch_trace): Likewise.
13981 * charset.c (intermediate_encoding): Likewise (vaild).
13982 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13983 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13984 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13985
e0cdfe3c
HD
139862020-01-16 Hannes Domani <ssbssa@yahoo.de>
13987
13988 * windows-tdep.c (windows_get_tlb_type):
13989 Add rtl_user_process_parameters type.
13990
790f1718 139912020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 13992 Norbert Lange <nolange79@gmail.com>
790f1718
PA
13993
13994 PR build/24805
13995 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13996 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13997 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13998 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13999 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14000 (ps_plog): Redeclare exported functions with default visibility.
14001
3112ed97
NA
140022020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14003
14004 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14005 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14006
8dc3273e
SM
140072020-01-15 Simon Marchi <simon.marchi@efficios.com>
14008
14009 * infcmd.c (post_create_inferior): Use get_thread_regcache
14010 instead of get_current_regcache.
14011
ff47f4f0
TT
140122020-01-14 Tom Tromey <tom@tromey.com>
14013
14014 PR symtab/12535:
14015 * python/python.c (gdbpy_decode_line): Treat empty string the same
14016 as no argument.
14017
975f45b7
TT
140182020-01-14 Tom Tromey <tom@tromey.com>
14019
14020 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14021
25e57356
TT
140222020-01-14 Tom Tromey <tom@tromey.com>
14023
14024 * nat/linux-btrace.c: Don't include <config.h>.
14025 * nat/linux-ptrace.c: Don't include <config.h>.
14026 * nat/x86-linux-dregs.c: Don't include <config.h>.
14027
05ea2a05
TT
140282020-01-14 Tom Tromey <tom@tromey.com>
14029
14030 * configure: Rebuild.
14031 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14032
01027315
TT
140332020-01-14 Tom Tromey <tom@tromey.com>
14034
14035 * nat/x86-linux-dregs.c: Include configh.h.
14036 * nat/linux-ptrace.c: Include configh.h.
14037 * nat/linux-btrace.c: Include configh.h.
14038 * defs.h: Include config.h, bfd.h.
14039 * configure.ac: Don't source common.host.
14040 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14041 * configure: Rebuild.
14042 * acinclude.m4: Update path.
14043 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14044 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14045 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14046 (CLIBS): Add LIBSUPPORT.
14047 (CDEPS): Likewise.
14048 (COMMON_SFILES): Remove gdbsupport files.
14049 (HFILES_NO_SRCDIR): Likewise.
14050 (stamp-version): Update path to create-version.sh.
14051 (ALLDEPFILES): Remove gdbsupport files.
14052
b2ceabe8
TT
140532020-01-14 Tom Tromey <tom@tromey.com>
14054
14055 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14056 USE_WIN32API when needed.
14057 * configure.ac (USE_WIN32API): Don't define.
14058 (WIN32LIBS): Use WIN32APILIBS.
14059 * configure: Rebuild.
14060
25c51f71
TT
140612020-01-14 Tom Tromey <tom@tromey.com>
14062
14063 * configure: Rebuild.
14064 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14065
717c684d
BE
140662020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14067
14068 * skip.c (skip_function_command): Make skip w/o arguments use the
14069 name of the inlined function if pc is inside any inlined function.
14070
7da6a5b9
LM
140712020-01-14 Luis Machado <luis.machado@linaro.org>
14072
14073 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14074 * infrun.c (resume_1): Likewise.
14075 (handle_inferior_event): Remove stale comment.
14076 * linux-nat.c (linux_nat_target::resume): Update comments.
14077 (save_stop_reason): Likewise.
14078 (linux_nat_filter_event): Likewise.
14079 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14080
44e4c775
AB
140812020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14082
14083 * elfread.c (record_minimal_symbol): Set section index to 0 for
14084 non-allocatable sections.
14085
18a8505e
AT
14086
140872020-01-13 Ali Tamur <tamur@google.com>
14088
14089 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14090 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14091 to gdb::optional. Update comments.
14092 (dwo_file): Update comments.
14093 (read_attribute): Update API to take an additional out parameter,
14094 need_reprocess. This is used to mark attributes that need other
14095 attributes (e.g. str_offsets_base) for correct computation which may not
14096 have been read yet.
14097 (read_attribute_reprocess): New function declaration.
14098 (read_addr_index): Likewise.
14099 (read_dwo_str_index): Likewise.
14100 (read_stub_str_index): Likewise.
14101 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14102 (lookup_addr_base): New function definition.
14103 (lookup_ranges_base): Likewise.
14104 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14105 lookup_ranges_base.
14106 (init_cutu_and_read_dies): Update comments.
14107 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14108 unit. This is used to inherit parent's str_offsets_base and addr_base.
14109 Update comments.
14110 (init_cutu_and_read_dies_simple): Reflect API changes.
14111 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14112 (create_cus_hash_table): Change API to take parent compile unit.
14113 Reflect API changes.
14114 (open_and_init_dwo_file): Reflect API changes.
14115 (dwarf2_get_pc_bounds): Update comments.
14116 (dwarf2_record_block_ranges): Likewise.
14117 (read_full_die_1): Change implementation to reprocess attributes that
14118 need str_offsets_base and addr_base.
14119 (partial_die_info::read): Likewise.
14120 (read_attribute_reprocess): New function definition.
14121 (read_attribute_value): Change API to take an additional out parameter,
14122 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14123 when a non-dwo compile unit has index based attributes.
14124 (read_attribute): Reflect API changes.
14125 (read_addr_index_1): Reflect API changes. Update comments.
14126 (dwarf2_read_addr_index_data): Reflect API changes.
14127 (dwarf2_read_addr_index): Likewise.
14128 (read_str_index): Change API and implementation. This becomes a helper
14129 to be used by the new string index related methods. Update error
14130 message and comments.
14131 (read_dwo_str_index): New function definition.
14132 (read_stub_str_index): Likewise.
14133 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14134 * symfile.h (dwarf2_debug_sections): Likewise.
14135 * xcoffread.c (dwarf2_debug_sections): Likewise.
14136
0cac9354
SM
141372020-01-13 Simon Marchi <simon.marchi@efficios.com>
14138
14139 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14140 core_reg_sect type to gdb_byte *.
14141 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14142 * cris-tdep.c (fetch_core_registers): Likewise.
14143 * corelow.c (core_target::get_core_register_section): Change
14144 type of `contents` to gdb::byte_vector.
14145
9a6d629c
AB
141462020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14147
14148 * tui/tui-wingeneral.c (box_win): Position the title in the center
14149 of the border.
14150
d8b2f9e3
SM
141512020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14152
14153 * corelow.c (core_target::get_core_register_section): Use
14154 std::vector instead of alloca.
14155
bb564c58
SM
141562020-01-13 Simon Marchi <simon.marchi@efficios.com>
14157
14158 * warning.m4: Add -Wmissing-declarations to build_warnings.
14159 * configure: Re-generate.
14160
6b366111
SM
141612020-01-13 Simon Marchi <simon.marchi@efficios.com>
14162
14163 * python/python.c (init__gdb_module): Add declaration.
14164
6c265988
SM
141652020-01-13 Simon Marchi <simon.marchi@efficios.com>
14166
14167 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14168 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14169 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14170 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14171 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14172 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14173 * ada-exp.y (_initialize_ada_exp): Add declaration.
14174 * ada-lang.c (_initialize_ada_language): Add declaration.
14175 * ada-tasks.c (_initialize_tasks): Add declaration.
14176 * agent.c (_initialize_agent): Add declaration.
14177 * aix-thread.c (_initialize_aix_thread): Add declaration.
14178 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14179 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14180 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14181 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14182 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14183 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14184 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14185 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14186 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14187 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14188 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14189 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14190 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14191 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14192 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14193 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14194 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14195 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14196 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14197 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14198 * annotate.c (_initialize_annotate): Add declaration.
14199 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14200 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14201 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14202 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14203 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14204 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14205 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14206 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14207 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14208 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14209 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14210 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14211 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14212 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14213 * auto-load.c (_initialize_auto_load): Add declaration.
14214 * auxv.c (_initialize_auxv): Add declaration.
14215 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14216 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14217 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14218 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14219 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14220 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14221 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14222 * breakpoint.c (_initialize_breakpoint): Add declaration.
14223 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14224 * btrace.c (_initialize_btrace): Add declaration.
14225 * charset.c (_initialize_charset): Add declaration.
14226 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14227 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14228 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14229 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14230 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14231 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14232 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14233 * coffread.c (_initialize_coffread): Add declaration.
14234 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14235 * compile/compile.c (_initialize_compile): Add declaration.
14236 * complaints.c (_initialize_complaints): Add declaration.
14237 * completer.c (_initialize_completer): Add declaration.
14238 * copying.c (_initialize_copying): Add declaration.
14239 * corefile.c (_initialize_core): Add declaration.
14240 * corelow.c (_initialize_corelow): Add declaration.
14241 * cp-abi.c (_initialize_cp_abi): Add declaration.
14242 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14243 * cp-support.c (_initialize_cp_support): Add declaration.
14244 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14245 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14246 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14247 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14248 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14249 * ctfread.c (_initialize_ctfread): Add declaration.
14250 * d-lang.c (_initialize_d_language): Add declaration.
14251 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14252 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14253 * dbxread.c (_initialize_dbxread): Add declaration.
14254 * dcache.c (_initialize_dcache): Add declaration.
14255 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14256 * disasm.c (_initialize_disasm): Add declaration.
14257 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14258 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14259 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14260 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14261 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14262 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14263 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14264 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14265 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14266 * elfread.c (_initialize_elfread): Add declaration.
14267 * exec.c (_initialize_exec): Add declaration.
14268 * extension.c (_initialize_extension): Add declaration.
14269 * f-lang.c (_initialize_f_language): Add declaration.
14270 * f-valprint.c (_initialize_f_valprint): Add declaration.
14271 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14272 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14273 * filesystem.c (_initialize_filesystem): Add declaration.
14274 * findcmd.c (_initialize_mem_search): Add declaration.
14275 * findvar.c (_initialize_findvar): Add declaration.
14276 * fork-child.c (_initialize_fork_child): Add declaration.
14277 * frame-base.c (_initialize_frame_base): Add declaration.
14278 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14279 * frame.c (_initialize_frame): Add declaration.
14280 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14281 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14282 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14283 * gcore.c (_initialize_gcore): Add declaration.
14284 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14285 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14286 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14287 * gdbarch.c (_initialize_gdbarch): Add declaration.
14288 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14289 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14290 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14291 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14292 * go-lang.c (_initialize_go_language): Add declaration.
14293 * go32-nat.c (_initialize_go32_nat): Add declaration.
14294 * guile/guile.c (_initialize_guile): Add declaration.
14295 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14296 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14297 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14298 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14299 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14300 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14301 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14302 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14303 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14304 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14305 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14306 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14307 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14308 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14309 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14310 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14311 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14312 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14313 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14314 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14315 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14316 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14317 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14318 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14319 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14320 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14321 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14322 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14323 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14324 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14325 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14326 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14327 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14328 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14329 * infcall.c (_initialize_infcall): Add declaration.
14330 * infcmd.c (_initialize_infcmd): Add declaration.
14331 * inflow.c (_initialize_inflow): Add declaration.
14332 * infrun.c (_initialize_infrun): Add declaration.
14333 * interps.c (_initialize_interpreter): Add declaration.
14334 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14335 * jit.c (_initialize_jit): Add declaration.
14336 * language.c (_initialize_language): Add declaration.
14337 * linux-fork.c (_initialize_linux_fork): Add declaration.
14338 * linux-nat.c (_initialize_linux_nat): Add declaration.
14339 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14340 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14341 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14342 * m2-lang.c (_initialize_m2_language): Add declaration.
14343 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14344 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14345 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14346 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14347 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14348 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14349 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14350 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14351 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14352 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14353 * machoread.c (_initialize_machoread): Add declaration.
14354 * macrocmd.c (_initialize_macrocmd): Add declaration.
14355 * macroscope.c (_initialize_macroscope): Add declaration.
14356 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14357 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14358 * maint.c (_initialize_maint_cmds): Add declaration.
14359 * mdebugread.c (_initialize_mdebugread): Add declaration.
14360 * memattr.c (_initialize_mem): Add declaration.
14361 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14362 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14363 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14364 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14365 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14366 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14367 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14368 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14369 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14370 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14371 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14372 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14373 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14374 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14375 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14376 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14377 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14378 * mipsread.c (_initialize_mipsread): Add declaration.
14379 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14380 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14381 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14382 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14383 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14384 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14385 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14386 * nto-procfs.c (_initialize_procfs): Add declaration.
14387 * objc-lang.c (_initialize_objc_language): Add declaration.
14388 * observable.c (_initialize_observer): Add declaration.
14389 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14390 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14391 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14392 * osabi.c (_initialize_gdb_osabi): Add declaration.
14393 * osdata.c (_initialize_osdata): Add declaration.
14394 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14395 * parse.c (_initialize_parse): Add declaration.
14396 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14397 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14398 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14399 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14400 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14401 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14402 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14403 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14404 * printcmd.c (_initialize_printcmd): Add declaration.
14405 * probe.c (_initialize_probe): Add declaration.
14406 * proc-api.c (_initialize_proc_api): Add declaration.
14407 * proc-events.c (_initialize_proc_events): Add declaration.
14408 * proc-service.c (_initialize_proc_service): Add declaration.
14409 * procfs.c (_initialize_procfs): Add declaration.
14410 * producer.c (_initialize_producer): Add declaration.
14411 * psymtab.c (_initialize_psymtab): Add declaration.
14412 * python/python.c (_initialize_python): Add declaration.
14413 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14414 * record-btrace.c (_initialize_record_btrace): Add declaration.
14415 * record-full.c (_initialize_record_full): Add declaration.
14416 * record.c (_initialize_record): Add declaration.
14417 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14418 * regcache.c (_initialize_regcache): Add declaration.
14419 * reggroups.c (_initialize_reggroup): Add declaration.
14420 * remote-notif.c (_initialize_notif): Add declaration.
14421 * remote-sim.c (_initialize_remote_sim): Add declaration.
14422 * remote.c (_initialize_remote): Add declaration.
14423 * reverse.c (_initialize_reverse): Add declaration.
14424 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14425 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14426 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14427 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14428 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14429 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14430 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14431 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14432 Add declaration.
14433 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14434 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14435 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14436 * rust-exp.y (_initialize_rust_exp): Add declaration.
14437 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14438 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14439 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14440 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14441 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14442 * score-tdep.c (_initialize_score_tdep): Add declaration.
14443 * ser-go32.c (_initialize_ser_dos): Add declaration.
14444 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14445 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14446 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14447 * ser-uds.c (_initialize_ser_socket): Add declaration.
14448 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14449 * serial.c (_initialize_serial): Add declaration.
14450 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14451 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14452 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14453 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14454 * skip.c (_initialize_step_skip): Add declaration.
14455 * sol-thread.c (_initialize_sol_thread): Add declaration.
14456 * solib-aix.c (_initialize_solib_aix): Add declaration.
14457 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14458 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14459 * solib-frv.c (_initialize_frv_solib): Add declaration.
14460 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14461 * solib-target.c (_initialize_solib_target): Add declaration.
14462 * solib.c (_initialize_solib): Add declaration.
14463 * source-cache.c (_initialize_source_cache): Add declaration.
14464 * source.c (_initialize_source): Add declaration.
14465 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14466 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14467 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14468 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14469 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14470 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14471 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14472 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14473 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14474 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14475 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14476 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14477 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14478 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14479 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14480 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14481 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14482 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14483 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14484 * stabsread.c (_initialize_stabsread): Add declaration.
14485 * stack.c (_initialize_stack): Add declaration.
14486 * stap-probe.c (_initialize_stap_probe): Add declaration.
14487 * std-regs.c (_initialize_frame_reg): Add declaration.
14488 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14489 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14490 * symfile.c (_initialize_symfile): Add declaration.
14491 * symmisc.c (_initialize_symmisc): Add declaration.
14492 * symtab.c (_initialize_symtab): Add declaration.
14493 * target.c (_initialize_target): Add declaration.
14494 * target-connection.c (_initialize_target_connection): Add
14495 declaration.
14496 * target-dcache.c (_initialize_target_dcache): Add declaration.
14497 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14498 * thread.c (_initialize_thread): Add declaration.
14499 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14500 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14501 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14502 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14503 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14504 * tracectf.c (_initialize_ctf): Add declaration.
14505 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14506 * tracefile.c (_initialize_tracefile): Add declaration.
14507 * tracepoint.c (_initialize_tracepoint): Add declaration.
14508 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14509 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14510 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14511 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14512 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14513 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14514 * tui/tui.c (_initialize_tui): Add declaration.
14515 * typeprint.c (_initialize_typeprint): Add declaration.
14516 * ui-style.c (_initialize_ui_style): Add declaration.
14517 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14518 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14519 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14520 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14521 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14522 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14523 * unittests/filtered_iterator-selftests.c
14524 (_initialize_filtered_iterator_selftests): Add declaration.
14525 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14526 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14527 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14528 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14529 * unittests/main-thread-selftests.c
14530 (_initialize_main_thread_selftests): Add declaration.
14531 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14532 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14533 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14534 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14535 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14536 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14537 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14538 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14539 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14540 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14541 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14542 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14543 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14544 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14545 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14546 declaration.
14547 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14548 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14549 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14550 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14551 * user-regs.c (_initialize_user_regs): Add declaration.
14552 * utils.c (_initialize_utils): Add declaration.
14553 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14554 * valops.c (_initialize_valops): Add declaration.
14555 * valprint.c (_initialize_valprint): Add declaration.
14556 * value.c (_initialize_values): Add declaration.
14557 * varobj.c (_initialize_varobj): Add declaration.
14558 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14559 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14560 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14561 * windows-nat.c (_initialize_windows_nat): Add declaration.
14562 (_initialize_check_for_gdb_ini): Add declaration.
14563 (_initialize_loadable): Add declaration.
14564 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14565 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14566 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14567 * xcoffread.c (_initialize_xcoffread): Add declaration.
14568 * xml-support.c (_initialize_xml_support): Add declaration.
14569 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14570 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14571 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14572 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14573
e2de1eec
SM
145742020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14575
14576 * regformats/regdat.sh: Generate declaration for init function.
14577
e0037b4c
SM
145782020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14579
14580 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14581 up.
14582 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14583 close_one_inferior>: New methods.
14584 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14585 pass down target to find_inferior_pid.
14586 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14587 Pass down target to find_inferior_ptid.
14588 (gdbsim_target::create_inferior): Pass down target to
14589 add_thread_silent.
14590 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14591 target down to find_inferior_ptid and switch_to_thread.
14592 (gdbsim_target::close): Update to call close_one_inferior.
14593 (struct resume_data): Remove.
14594 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14595 directly, rather than through a void pointer.
14596 (gdbsim_target::resume): Update to call resume_one_inferior.
14597
58920b5b
SM
145982020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14599
14600 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14601
4ec89149
PA
146022020-01-12 Pedro Alves <palves@redhat.com>
14603
14604 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14605 directly for the current inferior instead of
14606 discard_all_inferiors.
14607 (discard_all_inferiors): Delete.
14608
7c392d1d
TT
146092020-01-11 Tom Tromey <tom@tromey.com>
14610
14611 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14612 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14613 deprecated_safe_get_selected_frame.
14614
d9ebdab7
TBA
146152020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14616
14617 * inferior.c (print_inferior): Switch inferior before printing it.
14618
f3c469b9
PA
146192020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14620 Pedro Alves <palves@redhat.com>
14621
14622 * progspace-and-thread.c (switch_to_program_space_and_thread):
14623 Assert there's an inferior for PSPACE. Use
14624 switch_to_inferior_no_thread to switch the inferior too.
14625 * progspace.c (program_space::~program_space): Call
14626 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14627 (program_space::free_all_objfiles): Don't call clear_symtab_users
14628 here.
14629 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14630
65c574f6
PA
146312020-01-10 Pedro Alves <palves@redhat.com>
14632
14633 * NEWS: Mention multi-target debugging, "info connections", and
14634 "add-inferior -no-connection".
14635
2f4fcf00
PA
146362020-01-10 Pedro Alves <palves@redhat.com>
14637
14638 * infrun.c: Include "target-connection.h".
14639 (check_multi_target_resumption): New.
14640 (proceed): Call it.
14641 * target-connection.c (make_target_connection_string): Make
14642 extern.
14643 * target-connection.h (make_target_connection_string): Declare.
14644
121b3efd
PA
146452020-01-10 Pedro Alves <palves@redhat.com>
14646
14647 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14648 * inferior.c (uiout_field_connection): New function.
14649 (print_inferior): Add new "connection-id" column.
14650 (add_inferior_command): Show connection number/string of added
14651 inferior.
14652 * process-stratum-target.h
14653 (process_stratum_target::connection_string): New virtual method.
14654 (process_stratum_target::connection_number): New field.
14655 * remote.c (remote_target::connection_string): New override.
14656 * target-connection.c: New file.
14657 * target-connection.h: New file.
14658 * target.c (decref_target): Remove process_stratum targets from
14659 the connection list.
14660 (target_stack::push): Add process_stratum targets to the
14661 connection list.
14662
4f837581
PA
146632020-01-10 Pedro Alves <palves@redhat.com>
14664
14665 Revert:
14666 2016-04-12 Pedro Alves <palves@redhat.com>
14667 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14668 Remove references to name.
14669 * serial.h (struct serial) <name>: Delete.
14670
f4ec508e
PA
146712020-01-10 Pedro Alves <palves@redhat.com>
14672
14673 * gdbarch-selftests.c (register_to_value_test): Remove "target
14674 already pushed" check.
14675
5b6d1e4f
PA
146762020-01-10 Pedro Alves <palves@redhat.com>
14677 John Baldwin <jhb@FreeBSD.org>
14678
14679 * aarch64-linux-nat.c
14680 (aarch64_linux_nat_target::thread_architecture): Adjust.
14681 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14682 (task_command_1): Likewise.
14683 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14684 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14685 (aix_thread_target::store_registers)
14686 (aix_thread_target::thread_alive): Adjust.
14687 * amd64-fbsd-tdep.c: Include "inferior.h".
14688 (amd64fbsd_get_thread_local_address): Pass down target.
14689 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14690 thread's gdbarch instead of target_gdbarch.
14691 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14692 get_last_target_status.
14693 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14694 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14695 inferiors.
14696 (update_inserted_breakpoint_locations): Skip if inferiors with no
14697 execution.
14698 (update_global_location_list): When handling moribund locations,
14699 find representative inferior for location's pspace, and use thread
14700 count of its process_stratum target.
14701 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14702 * bsd-uthread.c (bsd_uthread_target::wait): Use
14703 as_process_stratum_target and adjust thread_change_ptid and
14704 add_thread calls.
14705 (bsd_uthread_target::update_thread_list): Use
14706 as_process_stratum_target and adjust find_thread_ptid,
14707 thread_change_ptid and add_thread calls.
14708 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14709 find_thread_ptid call.
14710 * corelow.c (add_to_thread_list): Adjust add_thread call.
14711 (core_target_open): Adjust add_thread_silent and thread_count
14712 calls.
14713 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14714 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14715 * event-top.c (async_disconnect): Pop targets from all inferiors.
14716 * exec.c (add_target_sections): Push exec target on all inferiors
14717 sharing the program space.
14718 (remove_target_sections): Remove the exec target from all
14719 inferiors sharing the program space.
14720 (exec_on_vfork): New.
14721 * exec.h (exec_on_vfork): Declare.
14722 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14723 Pass it down.
14724 (fbsd_nat_target::update_thread_list): Adjust.
14725 (fbsd_nat_target::resume): Adjust.
14726 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14727 down.
14728 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14729 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14730 get_thread_arch_regcache call.
14731 * fork-child.c (gdb_startup_inferior): Pass target down to
14732 startup_inferior and set_executing.
14733 * gdbthread.h (struct process_stratum_target): Forward declare.
14734 (add_thread, add_thread_silent, add_thread_with_info)
14735 (in_thread_list): Add process_stratum_target parameter.
14736 (find_thread_ptid(inferior*, ptid_t)): New overload.
14737 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14738 parameter.
14739 (all_threads()): Delete overload.
14740 (all_threads, all_non_exited_threads): Add process_stratum_target
14741 parameter.
14742 (all_threads_safe): Use brace initialization.
14743 (thread_count): Add process_stratum_target parameter.
14744 (set_resumed, set_running, set_stop_requested, set_executing)
14745 (threads_are_executing, finish_thread_state): Add
14746 process_stratum_target parameter.
14747 (switch_to_thread): Use is_current_thread.
14748 * i386-fbsd-tdep.c: Include "inferior.h".
14749 (i386fbsd_get_thread_local_address): Pass down target.
14750 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14751 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14752 have_inferiors check.
14753 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14754 (inf_ptrace_target::attach): Adjust.
14755 * infcall.c (run_inferior_call): Adjust.
14756 * infcmd.c (run_command_1): Pass target to
14757 scoped_finish_thread_state.
14758 (proceed_thread_callback): Skip inferiors with no execution.
14759 (continue_command): Rename 'all_threads' local to avoid hiding
14760 'all_threads' function. Adjust get_last_target_status call.
14761 (prepare_one_step): Adjust set_running call.
14762 (signal_command): Use user_visible_resume_target. Compare thread
14763 pointers instead of inferior_ptid.
14764 (info_program_command): Adjust to pass down target.
14765 (attach_command): Mark target's 'thread_executing' flag.
14766 (stop_current_target_threads_ns): New, factored out from ...
14767 (interrupt_target_1): ... this. Switch inferior before making
14768 target calls.
14769 * inferior-iter.h
14770 (struct all_inferiors_iterator, struct all_inferiors_range)
14771 (struct all_inferiors_safe_range)
14772 (struct all_non_exited_inferiors_range): Filter on
14773 process_stratum_target too. Remove explicit.
14774 * inferior.c (inferior::inferior): Push dummy target on target
14775 stack.
14776 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14777 Add process_stratum_target parameter, and pass it down.
14778 (have_live_inferiors): Adjust.
14779 (switch_to_inferior_and_push_target): New.
14780 (add_inferior_command, clone_inferior_command): Handle
14781 "-no-connection" parameter. Use
14782 switch_to_inferior_and_push_target.
14783 (_initialize_inferior): Mention "-no-connection" option in
14784 the help of "add-inferior" and "clone-inferior" commands.
14785 * inferior.h: Include "process-stratum-target.h".
14786 (interrupt_target_1): Use bool.
14787 (struct inferior) <push_target, unpush_target, target_is_pushed,
14788 find_target_beneath, top_target, process_target, target_at,
14789 m_stack>: New.
14790 (discard_all_inferiors): Delete.
14791 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14792 (all_inferiors, all_non_exited_inferiors): Add
14793 process_stratum_target parameter.
14794 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14795 (target_last_proc_target): New global.
14796 (follow_fork_inferior): Push target on new inferior. Pass target
14797 to add_thread_silent. Call exec_on_vfork. Handle target's
14798 reference count.
14799 (follow_fork): Adjust get_last_target_status call. Also consider
14800 target.
14801 (follow_exec): Push target on new inferior.
14802 (struct execution_control_state) <target>: New field.
14803 (user_visible_resume_target): New.
14804 (do_target_resume): Call target_async.
14805 (resume_1): Set target's threads_executing flag. Consider resume
14806 target.
14807 (commit_resume_all_targets): New.
14808 (proceed): Also consider resume target. Skip threads of inferiors
14809 with no execution. Commit resumtion in all targets.
14810 (start_remote): Pass current inferior to wait_for_inferior.
14811 (infrun_thread_stop_requested): Consider target as well. Pass
14812 thread_info pointer to clear_inline_frame_state instead of ptid.
14813 (infrun_thread_thread_exit): Consider target as well.
14814 (random_pending_event_thread): New inferior parameter. Use it.
14815 (do_target_wait): Rename to ...
14816 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14817 down.
14818 (threads_are_resumed_pending_p, do_target_wait): New.
14819 (prepare_for_detach): Adjust calls.
14820 (wait_for_inferior): New inferior parameter. Handle it. Use
14821 do_target_wait_1 instead of do_target_wait.
14822 (fetch_inferior_event): Adjust. Switch to representative
14823 inferior. Pass target down.
14824 (set_last_target_status): Add process_stratum_target parameter.
14825 Save target in global.
14826 (get_last_target_status): Add process_stratum_target parameter and
14827 handle it.
14828 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14829 (context_switch): Check inferior_ptid == null_ptid before calling
14830 inferior_thread().
14831 (get_inferior_stop_soon): Pass down target.
14832 (wait_one): Rename to ...
14833 (poll_one_curr_target): ... this.
14834 (struct wait_one_event): New.
14835 (wait_one): New.
14836 (stop_all_threads): Adjust.
14837 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14838 event's target.
14839 (switch_back_to_stepped_thread): Also consider target.
14840 (print_stop_event): Update.
14841 (normal_stop): Update. Also consider the resume target.
14842 * infrun.h (wait_for_inferior): Remove declaration.
14843 (user_visible_resume_target): New declaration.
14844 (get_last_target_status, set_last_target_status): New
14845 process_stratum_target parameter.
14846 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14847 process_stratum_target parameter, and use it.
14848 (clear_inline_frame_state (thread_info*)): New.
14849 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14850 process_stratum_target parameter.
14851 (clear_inline_frame_state (thread_info*)): Declare.
14852 * linux-fork.c (delete_checkpoint_command): Pass target down to
14853 find_thread_ptid.
14854 (checkpoint_command): Adjust.
14855 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14856 instead of just tweaking inferior_ptid.
14857 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14858 (exit_lwp): Pass target down to find_thread_ptid.
14859 (attach_proc_task_lwp_callback): Pass target down to
14860 add_thread/set_running/set_executing.
14861 (linux_nat_target::attach): Pass target down to
14862 thread_change_ptid.
14863 (get_detach_signal): Pass target down to find_thread_ptid.
14864 Consider last target status's target.
14865 (linux_resume_one_lwp_throw, resume_lwp)
14866 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14867 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14868 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14869 (linux_nat_target::async_wait_fd): New.
14870 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14871 target down.
14872 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14873 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14874 * linux-thread-db.c (struct thread_db_info::process_target): New
14875 field.
14876 (add_thread_db_info): Save target.
14877 (get_thread_db_info): New process_stratum_target parameter. Also
14878 match target.
14879 (delete_thread_db_info): New process_stratum_target parameter.
14880 Also match target.
14881 (thread_from_lwp): Adjust to pass down target.
14882 (thread_db_notice_clone): Pass down target.
14883 (check_thread_db_callback): Pass down target.
14884 (try_thread_db_load_1): Always push the thread_db target.
14885 (try_thread_db_load, record_thread): Pass target down.
14886 (thread_db_target::detach): Pass target down. Always unpush the
14887 thread_db target.
14888 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14889 target down. Always unpush the thread_db target.
14890 (find_new_threads_callback, thread_db_find_new_threads_2)
14891 (thread_db_target::update_thread_list): Pass target down.
14892 (thread_db_target::pid_to_str): Pass current inferior down.
14893 (thread_db_target::get_thread_local_address): Pass target down.
14894 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14895 target down.
14896 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14897 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14898 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14899 (procfs_init_inferior): Rename to ...
14900 (procfs_target::procfs_init_inferior): ... this and adjust.
14901 (procfs_target::create_inferior, procfs_notice_thread)
14902 (procfs_do_thread_registers): Adjust.
14903 * ppc-fbsd-tdep.c: Include "inferior.h".
14904 (ppcfbsd_get_thread_local_address): Pass down target.
14905 * proc-service.c (ps_xfer_memory): Switch current inferior and
14906 program space as well.
14907 (get_ps_regcache): Pass target down.
14908 * process-stratum-target.c
14909 (process_stratum_target::thread_address_space)
14910 (process_stratum_target::thread_architecture): Pass target down.
14911 * process-stratum-target.h
14912 (process_stratum_target::threads_executing): New field.
14913 (as_process_stratum_target): New.
14914 * ravenscar-thread.c
14915 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14916 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14917 down.
14918 * record-btrace.c (record_btrace_target::info_record): Adjust.
14919 (record_btrace_target::record_method)
14920 (record_btrace_target::record_is_replaying)
14921 (record_btrace_target::fetch_registers)
14922 (get_thread_current_frame_id, record_btrace_target::resume)
14923 (record_btrace_target::wait, record_btrace_target::stop): Pass
14924 target down.
14925 * record-full.c (record_full_wait_1): Switch to event thread.
14926 Pass target down.
14927 * regcache.c (regcache::regcache)
14928 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14929 process_stratum_target parameter and handle it.
14930 (current_thread_target): New global.
14931 (get_thread_regcache): Add process_stratum_target parameter and
14932 handle it. Switch inferior before calling target method.
14933 (get_thread_regcache): Pass target down.
14934 (get_thread_regcache_for_ptid): Pass target down.
14935 (registers_changed_ptid): Add process_stratum_target parameter and
14936 handle it.
14937 (registers_changed_thread, registers_changed): Pass target down.
14938 (test_get_thread_arch_aspace_regcache): New.
14939 (current_regcache_test): Define a couple local test_target_ops
14940 instances and use them for testing.
14941 (readwrite_regcache): Pass process_stratum_target parameter.
14942 (cooked_read_test, cooked_write_test): Pass mock_target down.
14943 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14944 (get_thread_arch_aspace_regcache): Add process_stratum_target
14945 parameter.
14946 (regcache::target): New method.
14947 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14948 (regcache::registers_changed_ptid): Add process_stratum_target
14949 parameter.
14950 (regcache::m_target): New field.
14951 (registers_changed_ptid): Add process_stratum_target parameter.
14952 * remote.c (remote_state::supports_vCont_probed): New field.
14953 (remote_target::async_wait_fd): New method.
14954 (remote_unpush_and_throw): Add remote_target parameter.
14955 (get_current_remote_target): Adjust.
14956 (remote_target::remote_add_inferior): Push target.
14957 (remote_target::remote_add_thread)
14958 (remote_target::remote_notice_new_inferior)
14959 (get_remote_thread_info): Pass target down.
14960 (remote_target::update_thread_list): Skip threads of inferiors
14961 bound to other targets. (remote_target::close): Don't discard
14962 inferiors. (remote_target::add_current_inferior_and_thread)
14963 (remote_target::process_initial_stop_replies)
14964 (remote_target::start_remote)
14965 (remote_target::remote_serial_quit_handler): Pass down target.
14966 (remote_target::remote_unpush_target): New remote_target
14967 parameter. Unpush the target from all inferiors.
14968 (remote_target::remote_unpush_and_throw): New remote_target
14969 parameter. Pass it down.
14970 (remote_target::open_1): Check whether the current inferior has
14971 execution instead of checking whether any inferior is live. Pass
14972 target down.
14973 (remote_target::remote_detach_1): Pass down target. Use
14974 remote_unpush_target.
14975 (extended_remote_target::attach): Pass down target.
14976 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14977 (remote_target::append_resumption): Pass down target.
14978 (remote_target::append_pending_thread_resumptions)
14979 (remote_target::remote_resume_with_hc, remote_target::resume)
14980 (remote_target::commit_resume): Pass down target.
14981 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14982 (remote_target::interrupt_query)
14983 (remote_target::remove_new_fork_children)
14984 (remote_target::check_pending_events_prevent_wildcard_vcont)
14985 (remote_target::remote_parse_stop_reply)
14986 (remote_target::process_stop_reply): Pass down target.
14987 (first_remote_resumed_thread): New remote_target parameter. Pass
14988 it down.
14989 (remote_target::wait_as): Pass down target.
14990 (unpush_and_perror): New remote_target parameter. Pass it down.
14991 (remote_target::readchar, remote_target::remote_serial_write)
14992 (remote_target::getpkt_or_notif_sane_1)
14993 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14994 down target.
14995 (remote_target::mourn_inferior): Pass down target. Use
14996 remote_unpush_target.
14997 (remote_target::core_of_thread)
14998 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14999 (remote_target::pid_to_exec_file)
15000 (remote_target::thread_handle_to_thread_info): Pass down target.
15001 (remote_target::async_wait_fd): New.
15002 * riscv-fbsd-tdep.c: Include "inferior.h".
15003 (riscv_fbsd_get_thread_local_address): Pass down target.
15004 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15005 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15006 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15007 Adjust.
15008 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15009 * solib-svr4.c (enable_break): Pass down target.
15010 * spu-multiarch.c (parse_spufs_run): Pass down target.
15011 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15012 * target-delegates.c: Regenerate.
15013 * target.c (g_target_stack): Delete.
15014 (current_top_target): Return the current inferior's top target.
15015 (target_has_execution_1): Refer to the passed-in inferior's top
15016 target.
15017 (target_supports_terminal_ours): Check whether the initial
15018 inferior was already created.
15019 (decref_target): New.
15020 (target_stack::push): Incref/decref the target.
15021 (push_target, push_target, unpush_target): Adjust.
15022 (target_stack::unpush): Defref target.
15023 (target_is_pushed): Return bool. Adjust to refer to the current
15024 inferior's target stack.
15025 (dispose_inferior): Delete, and inline parts ...
15026 (target_preopen): ... here. Only dispose of the current inferior.
15027 (target_detach): Hold strong target reference while detaching.
15028 Pass target down.
15029 (target_thread_name): Add assertion.
15030 (target_resume): Pass down target.
15031 (target_ops::beneath, find_target_at): Adjust to refer to the
15032 current inferior's target stack.
15033 (get_dummy_target): New.
15034 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15035 has a thread running.
15036 (initialize_targets): Rename to ...
15037 (_initialize_target): ... this.
15038 * target.h: Include "gdbsupport/refcounted-object.h".
15039 (struct target_ops): Inherit refcounted_object.
15040 (target_ops::shortname, target_ops::longname): Make const.
15041 (target_ops::async_wait_fd): New method.
15042 (decref_target): Declare.
15043 (struct target_ops_ref_policy): New.
15044 (target_ops_ref): New typedef.
15045 (get_dummy_target): Declare function.
15046 (target_is_pushed): Return bool.
15047 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15048 (all_matching_threads_iterator::all_matching_threads_iterator):
15049 Handle filter target.
15050 * thread-iter.h (struct all_matching_threads_iterator, struct
15051 all_matching_threads_range, class all_non_exited_threads_range):
15052 Filter by target too. Remove explicit.
15053 * thread.c (threads_executing): Delete.
15054 (inferior_thread): Pass down current inferior.
15055 (clear_thread_inferior_resources): Pass down thread pointer
15056 instead of ptid_t.
15057 (add_thread_silent, add_thread_with_info, add_thread): Add
15058 process_stratum_target parameter. Use it for thread and inferior
15059 searches.
15060 (is_current_thread): New.
15061 (thread_info::deletable): Use it.
15062 (find_thread_ptid, thread_count, in_thread_list)
15063 (thread_change_ptid, set_resumed, set_running): New
15064 process_stratum_target parameter. Pass it down.
15065 (set_executing): New process_stratum_target parameter. Pass it
15066 down. Adjust reference to 'threads_executing'.
15067 (threads_are_executing): New process_stratum_target parameter.
15068 Adjust reference to 'threads_executing'.
15069 (set_stop_requested, finish_thread_state): New
15070 process_stratum_target parameter. Pass it down.
15071 (switch_to_thread): Also match inferior.
15072 (switch_to_thread): New process_stratum_target parameter. Pass it
15073 down.
15074 (update_threads_executing): Reimplement.
15075 * top.c (quit_force): Pop targets from all inferior.
15076 (gdb_init): Don't call initialize_targets.
15077 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15078 Declare.
15079 (windows_add_thread, windows_delete_thread): Adjust.
15080 (get_windows_debug_event): Rename to ...
15081 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15082 * tracefile-tfile.c (tfile_target_open): Pass down target.
15083 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15084 Forward declare.
15085 (switch_to_thread): Add process_stratum_target parameter.
15086 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15087 parameter. Use it.
15088 (mi_on_resume): Pass target down.
15089 * nat/fork-inferior.c (startup_inferior): Add
15090 process_stratum_target parameter. Pass it down.
15091 * nat/fork-inferior.h (startup_inferior): Add
15092 process_stratum_target parameter.
15093 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15094
75c6c844
PA
150952020-01-10 Pedro Alves <palves@redhat.com>
15096
15097 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15098 directly. Instead find the first thread in the thread list and
15099 use switch_to_thread.
15100
78f2c40a
PA
151012020-01-10 Pedro Alves <palves@redhat.com>
15102
15103 * remote.c (remote_target::remote_add_inferior): Don't bind a
15104 process to the current inferior if the current inferior is already
15105 bound to a process.
15106
e7af6c70
TBA
151072020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15108 Pedro Alves <palves@redhat.com>
15109
15110 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15111 If no process is specified, return null_ptid instead of
15112 inferior_ptid.
15113 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15114 TARGET_WAITKIND_SIGNALLED with no pid.
15115
31ba933e
PA
151162020-01-10 Pedro Alves <palves@redhat.com>
15117
15118 * remote.c (first_remote_resumed_thread): New.
15119 (remote_target::wait_as): Use it as default event_ptid instead of
15120 inferior_ptid.
15121
735fc2ca
PA
151222020-01-10 Pedro Alves <palves@redhat.com>
15123
15124 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15125
c17e02e1
PA
151262020-01-10 Pedro Alves <palves@redhat.com>
15127
15128 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15129 not -1.
15130
ab1ddbcf
PA
151312020-01-10 Pedro Alves <palves@redhat.com>
15132
15133 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15134 ptid to get_last_target_status.
15135 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15136 ptid to get_last_target_status.
15137 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15138 get_last_target_status.
15139 (info_program_command): Don't pass a target_waitstatus to
15140 get_last_target_status.
15141 * infrun.c (init_wait_for_inferior): Use
15142 nullify_last_target_wait_ptid.
15143 (get_last_target_status): Handle nullptr arguments.
15144 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15145 (print_stop_event): Don't pass a ptid to get_last_target_status.
15146 (normal_stop): Don't pass a ptid to get_last_target_status.
15147 * infrun.h (get_last_target_status, set_last_target_status): Move
15148 comments here and update.
15149 (nullify_last_target_wait_ptid): Declare.
15150 * linux-fork.c (fork_load_infrun_state): Remove local extern
15151 declaration of nullify_last_target_wait_ptid.
15152 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15153 to get_last_target_status.
15154
f3f8ece4
PA
151552020-01-10 Pedro Alves <palves@redhat.com>
15156
15157 * gdbthread.h (scoped_restore_current_thread)
15158 <dont_restore, restore, m_dont_restore>: Declare.
15159 * thread.c (thread_alive): Add assertion. Return bool.
15160 (switch_to_thread_if_alive): New.
15161 (prune_threads): Switch inferior/thread.
15162 (print_thread_info_1): Switch thread before calling target methods.
15163 (scoped_restore_current_thread::restore): New, factored out from
15164 ...
15165 (scoped_restore_current_thread::~scoped_restore_current_thread):
15166 ... this.
15167 (scoped_restore_current_thread::scoped_restore_current_thread):
15168 Add assertion.
15169 (thread_apply_all_command, thread_select): Use
15170 switch_to_thread_if_alive.
15171 * infrun.c (proceed, restart_threads, handle_signal_stop)
15172 (switch_back_to_stepped_thread): Switch current thread before
15173 calling target methods.
15174
db2d40f7
PA
151752020-01-10 Pedro Alves <palves@redhat.com>
15176
15177 * inferior.c (switch_to_inferior_no_thread): New function,
15178 factored out from ...
15179 (inferior_command): ... here.
15180 * inferior.h (switch_to_inferior_no_thread): Declare.
15181 * mi/mi-main.c (run_one_inferior): Use
15182 switch_to_inferior_no_thread.
15183
bd420a2d
PA
151842020-01-10 Pedro Alves <palves@redhat.com>
15185
15186 * infcmd.c (kill_command): Remove dead code.
15187
ddf5db90
PA
151882020-01-10 Pedro Alves <palves@redhat.com>
15189
15190 * remote.c (remote_target::mourn_inferior): No longer check
15191 whether the target is running.
15192
5018ce90
PA
151932020-01-10 Pedro Alves <palves@redhat.com>
15194
15195 * corelow.c (core_target::has_execution): Change parameter type to
15196 inferior pointer.
15197 * inferior.c (number_of_live_inferiors): Use
15198 inferior::has_execution instead of target_has_execution_1.
15199 * inferior.h (inferior::has_execution): New.
15200 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15201 inferior::has_execution instead of target_has_execution_1.
15202 * process-stratum-target.c
15203 (process_stratum_target::has_execution): Change parameter type to
15204 inferior pointer. Check the inferior's PID instead of
15205 inferior_ptid.
15206 * process-stratum-target.h
15207 (process_stratum_target::has_execution): Change parameter type to
15208 inferior pointer.
15209 * record-full.c (record_full_core_target::has_execution): Change
15210 parameter type to inferior pointer.
15211 * target.c (target_has_execution_1): Change parameter type to
15212 inferior pointer.
15213 (target_has_execution_current): Adjust.
15214 * target.h (target_ops::has_execution): Change parameter type to
15215 inferior pointer.
15216 (target_has_execution_1): Change parameter type to inferior
15217 pointer. Change return type to bool.
15218 * tracefile.h (tracefile_target::has_execution): Change parameter
15219 type to inferior pointer.
15220
74375d18
PA
152212020-01-10 Pedro Alves <palves@redhat.com>
15222
15223 * exceptions.c (print_flush): Remove current_top_target() check.
15224
acdf84a6
PA
152252020-01-10 Pedro Alves <palves@redhat.com>
15226
15227 * remote.c (show_remote_exec_file): Show the current inferior's
15228 exec-file instead of the command variable's value.
15229
ec506636
PA
152302020-01-10 Pedro Alves <palves@redhat.com>
15231
15232 * record-full.c (record_full_resume_ptid): New global.
15233 (record_full_target::resume): Set it.
15234 (record_full_wait_1): Use record_full_resume_ptid instead of
15235 inferior_ptid.
15236
873657b9
PA
152372020-01-10 Pedro Alves <palves@redhat.com>
15238
15239 * gdbthread.h (scoped_restore_current_thread)
15240 <dont_restore, restore, m_dont_restore>: Declare.
15241 * thread.c (thread_alive): Add assertion. Return bool.
15242 (switch_to_thread_if_alive): New.
15243 (prune_threads): Switch inferior/thread.
15244 (print_thread_info_1): Switch thread before calling target methods.
15245 (scoped_restore_current_thread::restore): New, factored out from
15246 ...
15247 (scoped_restore_current_thread::~scoped_restore_current_thread):
15248 ... this.
15249 (scoped_restore_current_thread::scoped_restore_current_thread):
15250 Add assertion.
15251 (thread_apply_all_command, thread_select): Use
15252 switch_to_thread_if_alive.
15253
7f0ae84c
GB
152542020-01-10 George Barrett <bob@bob131.so>
15255
15256 * stap-probe.c (stap_modify_semaphore): Don't check for null
15257 semaphores.
15258 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15259 for null semaphores.
15260
f5a7c406
AB
152612020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15262
15263 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15264 all source windows, and maintain horizontal scroll status while
15265 doing so.
15266
9ae6bf64
TT
152672020-01-09 Tom Tromey <tom@tromey.com>
15268
15269 PR tui/18932:
15270 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15271 update_source_window, not print_source_lines.
15272
b2efe70c
AB
152732020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15274
15275 * tui/tui.c (tui_enable): Register tui hooks after calling
15276 tui_display_main.
15277
5f23a082
CB
152782020-01-09 Christian Biesinger <cbiesinger@google.com>
15279
15280 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15281
3061113b
SM
152822020-01-08 Simon Marchi <simon.marchi@efficios.com>
15283
15284 * thread.c (print_thread_info_1): Fix indentation.
15285
57d75002
CB
152862020-01-09 Christian Biesinger <cbiesinger@google.com>
15287
15288 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15289 unique_xmalloc_ptr outside the if to always free the demangled name.
15290
6a053cb1
TT
152912020-01-08 Tom Tromey <tromey@adacore.com>
15292
15293 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15294 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15295 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15296 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15297 Remove.
15298 (section_offsets): New typedef.
15299 * symtab.c (fixup_section, get_msymbol_address): Update.
15300 * symmisc.c (dump_msymbols): Update.
15301 * symfile.h (relative_addr_info_to_section_offsets)
15302 (symfile_map_offsets_to_segments): Update.
15303 * symfile.c (build_section_addr_info_from_objfile)
15304 (init_objfile_sect_indices): Update.
15305 (struct place_section_arg): Change type of "offsets".
15306 (place_section): Update.
15307 (relative_addr_info_to_section_offsets): Change type of
15308 "section_offsets". Remove "num_sections" parameter.
15309 (default_symfile_offsets, syms_from_objfile_1)
15310 (set_objfile_default_section_offset): Update.
15311 (reread_symbols): No need to preserve section offsets by hand.
15312 (symfile_map_offsets_to_segments): Change type of "offsets".
15313 * stap-probe.c (relocate_address): Update.
15314 * stabsread.h (process_one_symbol): Update.
15315 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15316 (solib_target_relocate_section_addresses): Update.
15317 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15318 Update.
15319 * solib-frv.c (frv_relocate_main_executable): Update.
15320 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15321 * solib-aix.c (solib_aix_get_section_offsets): Change return
15322 type.
15323 (solib_aix_solib_create_inferior_hook): Update.
15324 * remote.c (remote_target::get_offsets): Update.
15325 * psymtab.c (find_pc_sect_psymtab): Update.
15326 * psympriv.h (struct partial_symbol) <address, text_low,
15327 text_high>: Update.
15328 * objfiles.h (obj_section_offset): Update.
15329 (struct objfile) <section_offsets>: Change type.
15330 <num_sections>: Remove.
15331 (objfile_relocate): Update.
15332 * objfiles.c (entry_point_address_query): Update
15333 (relocate_one_symbol): Change type of "section_offsets".
15334 (objfile_relocate1, objfile_relocate1): Change type of
15335 "new_offsets".
15336 (objfile_rebase1): Update.
15337 * mipsread.c (mipscoff_symfile_read): Update.
15338 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15339 parameter.
15340 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15341 (parse_external, psymtab_to_symtab_1): Update.
15342 * machoread.c (macho_symfile_offsets): Update.
15343 * ia64-tdep.c (ia64_find_unwind_table): Update.
15344 * hppa-tdep.c (read_unwind_info): Update.
15345 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15346 * dwarf2read.c (create_addrmap_from_index)
15347 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15348 (process_psymtab_comp_unit_reader, add_partial_symbol)
15349 (add_partial_subprogram, process_full_comp_unit)
15350 (read_file_scope, read_func_scope, read_lexical_block_scope)
15351 (read_call_site_scope, dwarf2_rnglists_process)
15352 (dwarf2_ranges_process, dwarf2_ranges_read)
15353 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15354 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15355 Update.
15356 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15357 Update.
15358 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15359 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15360 (process_one_symbol): Change type of "section_offsets".
15361 * ctfread.c (get_objfile_text_range): Update.
15362 * coffread.c (coff_symtab_read, enter_linenos)
15363 (process_coff_symbol): Update.
15364 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15365 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15366
456e800a
TT
153672020-01-08 Tom Tromey <tromey@adacore.com>
15368
15369 * dwarf2read.c (parse_macro_definition): Use std::string.
15370 (parse_macro_definition): Likewise.
15371
6dfa2fc2
TT
153722020-01-08 Tom Tromey <tromey@adacore.com>
15373
15374 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15375 (ATTR_ALLOC_CHUNK): Remove.
15376
421d1616
TT
153772020-01-08 Tom Tromey <tromey@adacore.com>
15378
15379 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15380
43816ebc
TT
153812020-01-08 Tom Tromey <tromey@adacore.com>
15382
15383 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15384 (dwarf2_compute_name, open_dwo_file): Likewise.
15385 (process_enumeration_scope): Use std::vector.
15386 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15387 (partial_die_info::fixup, dwarf2_start_subfile)
15388 (guess_full_die_structure_name, dwarf2_name): Likewise.
15389 (determine_prefix): Update.
15390 (guess_full_die_structure_name): Make return type const.
15391 (partial_die_full_name): Return unique_xmalloc_ptr.
15392 (DW_FIELD_ALLOC_CHUNK): Remove.
15393
4212d509
TT
153942020-01-07 Tom Tromey <tromey@adacore.com>
15395
15396 PR build/24937:
15397 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15398
06a6207a
JT
153992020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15400
15401 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15402
153d79c4
AB
154032020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15404
15405 * stack.c (print_frame_info): Move disassemble_next_line code
15406 inside source_print block.
15407
66182876
EZ
154082020-01-06 Eli Zaretskii <eliz@gnu.org>
15409
15410 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15411 gdb/signals.h, as we are now using native signal symbols.
15412
cbfa8581
SV
154132020-01-06 Shahab Vahedi <shahab@synopsys.com>
15414
15415 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15416 overflow by an early check of content vs threshold.
aac66a4c 15417 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
15418 Likewise.
15419
3f602821
EZ
154202020-01-06 Eli Zaretskii <eliz@gnu.org>
15421
15422 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15423
a08c904d
JT
154242020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15425
15426 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15427 export table if no section contains it's RVA.
15428
89a65580
EZ
154292020-01-06 Eli Zaretskii <eliz@gnu.org>
15430
15431 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15432
8b7fcda2
HD
154332020-01-06 Hannes Domani <ssbssa@yahoo.de>
15434
15435 * source.c (print_source_lines_base): Set last_line_listed.
15436
a61b4f69
SV
154372020-01-06 Shahab Vahedi <shahab@synopsys.com>
15438
15439 * tui/tui-disasm.c: Remove trailing spaces.
15440
559e7e50
EZ
154412020-01-06 Eli Zaretskii <eliz@gnu.org>
15442 Pedro Alves <palves@redhat.com>
15443
15444 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15445 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15446 (windows_gdb_signal_to_target): New function, uses the above
15447 enumeration to convert GDB internal signal codes to equivalent
15448 Windows codes.
15449 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15450 * windows-nat.c: Include "gdb_wait.h".
15451 (get_windows_debug_event): Extract the fatal exception from the
15452 exit status and convert to the equivalent Posix signal number.
15453 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15454 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15455 * gdbsupport/gdb_wait.c: New file, implements
15456 windows_status_to_termsig.
15457 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15458 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15459
f2302a34
AB
154602020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15461
15462 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15463 show_layout.
15464
6a5206eb
LM
154652020-01-05 Luis Machado <luis.machado@linaro.org>
15466
15467 * aarch64-linux-nat.c
15468 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15469 and bfd_mach_aarch64.
15470
6ec1d75e
PW
154712020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15472
15473 * ui-file.c (stdio_file::can_emit_style_escape)
15474 (tee_file::can_emit_style_escape): Ensure style is used also on
15475 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15476 to gdb_stdout.
15477 * main.c (set_gdb_data_directory): Use file style to output the
15478 warning that the given pathname is not a directory.
15479 * top.c (show_history_filename, gdb_safe_append_history)
15480 (show_gdb_datadir): Use file style.
15481
44f81a76
HD
154822020-01-03 Hannes Domani <ssbssa@yahoo.de>
15483
15484 * solib-target.c (struct lm_info_target):
15485 Change offsets to be a unique_xmalloc_ptr.
15486 (solib_target_relocate_section_addresses): Update.
15487
25057eb0
HD
154882020-01-03 Hannes Domani <ssbssa@yahoo.de>
15489
15490 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15491
6e2118f5
BE
154922020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15493
15494 * MAINTAINERS (Write After Approval): Add myself.
15495
8133c7dc
LM
154962020-01-02 Luis Machado <luis.machado@linaro.org>
15497
15498 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15499 Cell BE architecture.
15500 * target.h (struct target_ops) <thread_architecture>: Likewise.
15501
48189bec
HD
155022020-01-01 Hannes Domani <ssbssa@yahoo.de>
15503
15504 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15505
ead1063b
HD
155062020-01-01 Hannes Domani <ssbssa@yahoo.de>
15507
15508 * MAINTAINERS (Write After Approval): Add myself.
15509
e5d78223
JB
155102020-01-01 Joel Brobecker <brobecker@adacore.com>
15511
15512 * gdbarch.sh: Update copyright year range of generated files.
15513
b811d2c2
JB
155142020-01-01 Joel Brobecker <brobecker@adacore.com>
15515
15516 Update copyright year range in all GDB files.
15517
5f4def5c
JB
155182020-01-01 Joel Brobecker <brobecker@adacore.com>
15519
15520 * copyright.py: Convert to Python 3.
15521
51fd4002
JB
155222020-01-01 Joel Brobecker <brobecker@adacore.com>
15523
15524 * copyright.py: Adapt after move of gnulib directory from gdb
15525 directory to toplevel directory.
15526
5fb651f2
JB
155272020-01-01 Joel Brobecker <brobecker@adacore.com>
15528
15529 * copyright.py (main): Exit if run from the wrong directory.
15530
5dd8bf88
JB
155312020-01-01 Joel Brobecker <brobecker@adacore.com>
15532
15533 * top.c (print_gdb_version): Change copyright year to 2020.
15534
9f71dacb 155352020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 15536
9f71dacb 15537 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 15538
9f71dacb 15539For older changes see ChangeLog-2019.
c906108c
SS
15540\f
15541Local Variables:
15542mode: change-log
15543left-margin: 8
15544fill-column: 74
15545version-control: never
57da7796 15546coding: utf-8
c906108c 15547End: