]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Don't create _Complex type name if there is no target type name
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6b9d0dfd
HD
12020-10-22 Hannes Domani <ssbssa@yahoo.de>
2
3 * gdbtypes.c (init_complex_type): Check target type name.
4
4b4bb603
SM
52020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
6
7 * target-debug.h (target_debug_print_struct_target_ops_p):
8 Remove.
9 (target_debug_print_async_callback_ftype_p): Remove.
10 (target_debug_print_struct_trace_state_variable_p): Remove.
11 (target_debug_print_struct_traceframe_info_p): Remove.
12 (target_debug_print_VEC__btrace_block_s__pp): Remove.
13 (target_debug_print_enum_btrace_format): Remove.
14 (target_debug_print_enum_info_proc_what): Remove.
15 (target_debug_print_thread_info_pp): Remove.
16
24f5300a
SM
172020-10-22 Simon Marchi <simon.marchi@efficios.com>
18
19 * target.h (struct target_ops) <make_corefile_notes>:
20 Change return type to unique pointer.
21 * target.c (dummy_make_corefile_notes): Likewise.
22 * exec.c (struct exec_target) <make_corefile_notes>:
23 Likewise.
24 (exec_target::make_corefile_notes): Likewise.
25 * procfs.c (class procfs_target) <make_corefile_notes>:
26 Likewise.
27 (procfs_do_thread_registers): Adjust to unique pointer.
28 (struct procfs_corefile_thread_data): Add constructor.
29 <note_data>: Change type to unique pointer.
30 (procfs_corefile_thread_callback): Adjust to unique pointer.
31 (procfs_target::make_corefile_notes): Change return type to
32 unique pointer.
33 * target-delegates.c: Re-generate.
34 * gcore.c (write_gcore_file_1): Adjust.
35 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
36 New.
37
5fb4027f
TV
382020-10-22 Tom de Vries <tdevries@suse.de>
39
40 * block.c (find_block_in_blockvector): Make sure the returned block
41 contains pc.
42
4a636814
SM
432020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
44
45 PR gdb/26693
46 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
47 parameter.
48 (load_cu): Pass existing CU.
49 (process_imported_unit_die): Likewise.
50 (follow_die_offset): Likewise.
51
1bd57575
LM
522020-10-22 Luis Machado <luis.machado@linaro.org>
53
54 * corelow.c (core_target::xfer_partial): Also check for an empty
55 m_core_unavailable_mappings vector.
56
6b4c676c
AB
572020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
58
59 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
60 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
61 * f-exp.y (arglist): Allow for a series of subranges.
62 (subrange): Add cases for subranges with strides.
63 * f-lang.c (value_f90_subarray): Catch use of array strides and
64 throw an error.
65 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
66
f2d8e4c5
AB
672020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
68
69 * expprint.c (print_subexp_standard): Change enum range_type to
70 range_flag and rename variables to match.
71 (dump_subexp_body_standard): Likewise.
72 * expression.h (enum range_type): Rename to...
73 (enum range_flag): ...this.
74 (range_types): Rename to...
75 (range_flags): ...this.
76 * f-lang.c (value_f90_subarray): Change enum range_type to
77 range_flag and rename variables to match.
78 * parse.c (operator_length_standard): Likewise.
79 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
80 range_type to range_flag.
81 * rust-lang.c (rust_evaluate_funcall): Likewise.
82 (rust_range): Likewise.
83 (rust_compute_range): Likewise.
84 (rust_subscript): Likewise.
85
2f1b18db
AB
862020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
87
88 * expprint.c (print_subexp_standard): Update to reflect changes to
89 enum range_type.
90 (dump_subexp_body_standard): Likewise.
91 * expression.h (enum range_type): Convert to a bit field enum, and
92 make the enum unsigned.
93 * f-exp.y (subrange): Update to reflect changes to enum
94 range_type.
95 * f-lang.c (value_f90_subarray): Likewise.
96 * parse.c (operator_length_standard): Likewise.
97 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
98 * rust-lang.c (rust_range): Likewise.
99 (rust_compute_range): Likewise.
100 (rust_subscript): Likewise.
101
a46d1843
SM
1022020-10-21 Simon Marchi <simon.marchi@efficios.com>
103
104 * infrun.c (displaced_step_in_progress_thread): Fix comment.
105 (displaced_step_in_progress): Fix comment.
106
c21f37a8
SM
1072020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
108
109 * gdbarch.sh (make_corefile_notes): Return unique pointer.
110 * gdbarch.c: Re-generate.
111 * gdbarch.h: Re-generate.
112 * gcore.c (write_gcore_file_1): Adjust.
113 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
114 constructor.
115 <note_data>: Change type to unique pointer.
116 <abort_iteration>: Change type to bool.
117 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
118 (fbsd_collect_thread_registers): Return void, adjust.
119 (struct fbsd_corefile_thread_data): Add construtor.
120 <note_data>: Change type to unique pointer.
121 (fbsd_corefile_thread): Adjust.
122 (fbsd_make_corefile_notes): Return unique pointer, adjust.
123 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
124 to unique pointer, adjust.
125 (struct linux_collect_regset_section_cb_data): Add constructor.
126 <note_data>: Change type to unique pointer.
127 <abort_iteration>: Change type to bool.
128 (linux_collect_thread_registers): Return void, adjust.
129 (struct linux_corefile_thread_data): Add constructor.
130 <note_data>: Change type to unique pointer.
131 (linux_corefile_thread): Adjust.
132 (linux_make_corefile_notes): Return unique pointer, adjust.
133
07fbbd01
SM
1342020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
135
136 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
137 * gdbarch.c: Re-generate.
138 * gdbarch.h: Re-generate.
139 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
140 bool.
141 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
142 Likewise.
143 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
144 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
145 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
146 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
147
39535193
SM
1482020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
149
150 * gdbarch.sh: Make generated predicates return bool.
151 * gdbarch.c: Re-generate.
152 * gdbarch.h: Re-generate.
153
ad523d01
TT
1542020-10-20 Tom Tromey <tom@tromey.com>
155
156 * varobj-iter.h (struct varobj_item): Remove typedef.
157
c4464ade
SM
1582020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
159
160 * infrun.c (currently_stepping): Change int to bool
161 (maybe_software_singlestep): Likewise.
162 (show_stop_on_solib_events): Likewise.
163 (stepping_past_nonsteppable_watchpoint): Likewise.
164 (displaced_step_in_progress_any_inferior): Likewise.
165 (displaced_step_in_progress_thread): Likewise.
166 (keep_going_stepped_thread): Likewise.
167 (thread_still_needs_step_over): Likewise.
168 (start_step_over): Likewise.
169 (do_target_resume): Likewise.
170 (resume_1): Likewise.
171 (clear_proceed_status): Likewise.
172 (thread_still_needs_step_over_bp): Likewise.
173 (proceed): Likewise.
174 (switch_back_to_stepped_thread): Likewise.
175 (adjust_pc_after_break): Likewise.
176 (stepped_in_from): Likewise.
177 (handle_stop_requested): Likewise.
178 (handle_syscall_event): Likewise.
179 (handle_no_resumed): Likewise.
180 (handle_inferior_event): Likewise.
181 (finish_step_over): Likewise.
182 (handle_signal_stop): Likewise.
183 (process_event_stop_test): Likewise.
184
2eb20436
SM
1852020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
186
187 * infrun.c (get_displaced_stepping_state): Fix comment.
188
e0c45ded
AS
1892020-10-20 Andreas Schwab <schwab@linux-m68k.org>
190
191 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
192
22cc388e
TT
1932020-10-19 Tom Tromey <tromey@adacore.com>
194
195 PR tui/26719
196 * tui/tui-winsource.h (struct tui_source_window_base)
197 <refresh_window>: Rename from refresh_pad.
198 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
199 Rename from refresh_pad.
200 (tui_source_window_base::show_source_content)
201 (tui_source_window_base::do_scroll_horizontal): Update.
202
3c6eb4d4
TBA
2032020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
204
205 * thread.c (_initialize_thread): Fine-tune the help text of
206 'info threads'.
207
26703721
TBA
2082020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
209
210 * frame.c: Remove the unused 'uinteger_option_def' type alias.
211
61c26be8
MS
2122020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
213
214 * breakpoint.c (handle_jit_event): Add an argument, change how
215 `jit_event_handler` is called.
216
932539d7
TT
2172020-10-17 Tom Tromey <tom@tromey.com>
218
219 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
220 (scan_xcoff_symtab): Update.
221 * psymtab.h (class psymtab_storage) <global_psymbols,
222 static_psymbols, current_global_psymbols,
223 current_static_psymbols>: Remove.
224 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
225 (match_partial_symbol, lookup_partial_symbol): Update.
226 (print_partial_symbols): Change parameters.
227 (dump_psymtab, recursively_search_psymtabs)
228 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
229 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
230 (concat): Remove.
231 (end_psymtab_common): Simplify.
232 (append_psymbol_to_list): Change parameters.
233 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
234 (init_psymbol_list): Simplify.
235 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
236 * psympriv.h (struct partial_symtab) <empty>: New method.
237 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
238 Remove.
239 <global_psymbols, static_psymbols>: New members.
240 <add_psymbol>: New methods.
241 (add_psymbol_to_list): Don't declare.
242 (psymbol_placement): Move earlier.
243 * mdebugread.c (parse_partial_symbols): Update.
244 (handle_psymbol_enumerators): Change parameters.
245 (mdebug_expand_psymtab): Update.
246 * dwarf2/read.c (process_psymtab_comp_unit_reader)
247 (add_partial_symbol): Update.
248 * dwarf2/index-write.c (write_psymbols): Change parameters.
249 (write_one_signatured_type): Update.
250 (recursively_count_psymbols): Update.
251 (recursively_write_psymbols): Update.
252 (class debug_names) <recursively_write_psymbols>: Update.
253 <write_psymbols>: Change parameters.
254 <write_one_signatured_type>: Update.
255 * dbxread.c (read_dbx_symtab): Update.
256 (dbx_end_psymtab): Use partial_symtab::empty.
257 * ctfread.c (struct ctf_context) <pst>: New member.
258 (create_partial_symtab): Set it.
259 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
260 (scan_partial_symbols): Use the psymtab's context. Update.
261
cfabbd35
TT
2622020-10-17 Tom Tromey <tom@tromey.com>
263
264 * valprint.c (generic_value_print): Remove comment.
265 * m2-valprint.c (m2_value_print_inner): Remove comment.
266 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
267 type.
268
520596f2
TV
2692020-10-17 Tom de Vries <tdevries@suse.de>
270
271 PR symtab/26317
272 * source.c (select_source_symtab): Handling sal.symtab == NULL for
273 symbol main.
274
76547ab3
TV
2752020-10-14 Tom de Vries <tdevries@suse.de>
276
277 PR gdb/26733
278 * solib.c (solib_contains_address_p): Handle
279 'solib->sections == nullptr'.
280
d3a07122
SM
2812020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
282
283 PR gdb/26642
284 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
285 target can't do async.
286 * target.c (target_wait): Assert that we don't pass
287 TARGET_WNOHANG to a target that can't async.
288
1b71cfcf
KR
2892020-10-13 Kamil Rytarowski <n54@gmx.com>
290
291 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
292 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
293 * alpha-bsd-nat.c: Adjust include.
294 * alpha-bsd-tdep.h: Adjust comment.
295 * alpha-nbsd-tdep.c: Rename to ...
296 * alpha-netbsd-tdep.c: ... this, adjust include.
297 * amd64-nbsd-nat.c: Rename to ...
298 * amd64-netbsd-nat.c: ... this, adjust include.
299 * amd64-nbsd-tdep.c: Rename to ...
300 * amd64-netbsd-tdep.c: ... this, adjust include.
301 * amd64-tdep.h: Adjust include.
302 * arm-nbsd-nat.c: Rename to ...
303 * arm-netbsd-nat.c: ... this, adjust include.
304 * arm-nbsd-tdep.c: Rename to ...
305 * arm-netbsd-tdep.c: ... this, adjust include.
306 * arm-nbsd-tdep.h: Rename to ...
307 * arm-netbsd-tdep.h: ... this, adjust include.
308 * configure.nat: Adjust file lists.
309 * configure.tgt: Likewise.
310 * hppa-nbsd-nat.c: Rename to ...
311 * hppa-netbsd-nat.c: ... this, adjust include.
312 * hppa-nbsd-tdep.c: Rename to ...
313 * hppa-netbsd-tdep.c: ... this, adjust include.
314 * i386-nbsd-nat.c: Rename to ...
315 * i386-netbsd-nat.c: ... this, adjust include.
316 * i386-nbsd-tdep.c: Rename to ...
317 * i386-netbsd-tdep.c: ... this, adjust include.
318 * m68k-bsd-nat.c: Adjust include.
319 * mips-nbsd-nat.c: Rename to ...
320 * mips-netbsd-nat.c: ... this, adjust include.
321 * mips-nbsd-tdep.c: Rename to ...
322 * mips-netbsd-tdep.c: ... this, adjust include.
323 * mips-nbsd-tdep.h: Rename to ...
324 * mips-netbsd-tdep.h: ... this.
325 * nbsd-nat.c: Rename to ...
326 * netbsd-nat.c: ... this, adjust include.
327 * nbsd-nat.h: Rename to ...
328 * netbsd-nat.h: ... this, adjust include.
329 * nbsd-tdep.c: Rename to ...
330 * netbsd-tdep.c: ... this, adjust include.
331 * nbsd-tdep.h: Rename to ...
332 * netbsd-tdep.h: ... this.
333 * ppc-nbsd-nat.c: Rename to ...
334 * ppc-netbsd-nat.c: ... this, adjust include.
335 * ppc-nbsd-tdep.c: Rename to ...
336 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
337 * ppc-nbsd-tdep.h: Rename to ...
338 * ppc-netbsd-tdep.h: ... this.
339 * sh-nbsd-nat.c: Rename to ...
340 * sh-netbsd-nat.c: ... this, adjust include.
341 * sh-nbsd-tdep.c: Rename to ...
342 * sh-netbsd-tdep.c: ... this, adjust include.
343 * sparc-nbsd-nat.c: Rename to ...
344 * sparc-netbsd-nat.c: ... this.
345 * sparc-nbsd-tdep.c: Rename to ...
346 * sparc-netbsd-tdep.c: ... this, adjust include.
347 * sparc64-nbsd-nat.c: Rename to ...
348 * sparc64-netbsd-nat.c: ... this.
349 * sparc64-nbsd-tdep.c: Rename to ...
350 * sparc64-netbsd-tdep.c: ... this, adjust include.
351 * sparc64-tdep.h: Adjust comment.
352 * vax-bsd-nat.c: Adjust include.
353 * vax-nbsd-tdep.c: Rename to ...
354 * vax-netbsd-tdep.c: ... this, adjust include.
355
d7a78e5c
TT
3562020-10-12 Tom Tromey <tom@tromey.com>
357
358 * target.h (struct target_ops) <get_section_table>: Update.
359 (target_get_section_table): Update.
360 * target.c (target_get_section_table, target_section_by_addr)
361 (memory_xfer_partial_1): Update.
362 * target-section.h (target_section_table): Now an alias.
363 * target-delegates.c: Rebuild.
364 * target-debug.h (target_debug_print_target_section_table_p):
365 Rename from target_debug_print_struct_target_section_table_p.
366 * symfile.c (build_section_addr_info_from_section_table): Update.
367 * solib.c (solib_map_sections, solib_contains_address_p): Update.
368 * solib-svr4.c (scan_dyntag): Update.
369 * solib-dsbt.c (scan_dyntag): Update.
370 * remote.c (remote_target::remote_xfer_live_readonly_partial):
371 Update.
372 * record-full.c (record_full_core_target::xfer_partial): Update.
373 * progspace.h (struct program_space) <target_sections>: Update.
374 * exec.h (print_section_info): Update.
375 * exec.c (exec_target::close, build_section_table)
376 (add_target_sections, add_target_sections_of_objfile)
377 (remove_target_sections, exec_on_vfork)
378 (section_table_available_memory)
379 (section_table_xfer_memory_partial)
380 (exec_target::get_section_table, exec_target::xfer_partial)
381 (print_section_info, set_section_command)
382 (exec_set_section_address, exec_target::has_memory): Update.
383 * corelow.c (core_target::build_file_mappings)
384 (core_target::xfer_partial, core_target::info_proc_mappings)
385 (core_target::info_proc_mappings): Update.
386 * bfd-target.c (class target_bfd): Update
387
eda214ce
TT
3882020-10-12 Tom Tromey <tom@tromey.com>
389
390 * progspace.c (program_space::~program_space): Don't call
391 clear_section_table.
392 * exec.h (clear_section_table): Don't declare.
393 * exec.c (exec_target::close): Update.
394 (clear_section_table): Remove.
395
91840ee3
TT
3962020-10-12 Tom Tromey <tom@tromey.com>
397
398 * exec.c (add_target_sections_of_objfile): Simplify.
399
2d128614
TT
4002020-10-12 Tom Tromey <tom@tromey.com>
401
402 * solib.c (solib_map_sections): Update.
403 * record-full.c (record_full_core_open_1): Update.
404 * exec.h (build_section_table): Return a target_section_table.
405 * exec.c (exec_file_attach): Update.
406 (build_section_table): Return a target_section_table.
407 * corelow.c (core_target::core_target): Update.
408 * bfd-target.c (target_bfd::target_bfd): Update.
409
bb2a6777
TT
4102020-10-12 Tom Tromey <tom@tromey.com>
411
412 * target.c (target_section_by_addr, memory_xfer_partial_1):
413 Update.
414 * target-section.h (struct target_section_table): Use
415 std::vector.
416 * symfile.h (build_section_addr_info_from_section_table): Take a
417 target_section_table.
418 * symfile.c (build_section_addr_info_from_section_table): Take a
419 target_section_table.
420 * solist.h (struct so_list) <sections>: Change type.
421 <sections_end>: Remove.
422 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
423 (solib_contains_address_p): Update.
424 * solib-svr4.c (scan_dyntag): Update.
425 * solib-dsbt.c (scan_dyntag): Update.
426 * remote.c (remote_target::remote_xfer_live_readonly_partial):
427 Update.
428 * record-full.c (record_full_core_start, record_full_core_end):
429 Remove.
430 (record_full_core_sections): New global.
431 (record_full_core_open_1, record_full_core_target::xfer_partial):
432 Update.
433 * exec.h (build_section_table, section_table_xfer_memory_partial)
434 (add_target_sections): Take a target_section_table.
435 * exec.c (exec_file_attach, clear_section_table): Update.
436 (resize_section_table): Remove.
437 (build_section_table, add_target_sections): Take a
438 target_section_table.
439 (add_target_sections_of_objfile, remove_target_sections)
440 (exec_on_vfork): Update.
441 (section_table_available_memory): Take a target_section_table.
442 (section_table_read_available_memory): Update.
443 (section_table_xfer_memory_partial): Take a target_section_table.
444 (print_section_info, set_section_command)
445 (exec_set_section_address, exec_target::has_memory): Update.
446 * corelow.c (class core_target) <m_core_section_table,
447 m_core_file_mappings>: Remove braces.
448 <~core_target>: Remove.
449 (core_target::core_target): Update.
450 (core_target::~core_target): Remove.
451 (core_target::build_file_mappings)
452 (core_target::xfer_memory_via_mappings)
453 (core_target::xfer_partial, core_target::info_proc_mappings):
454 Update.
455 * bfd-target.c (target_bfd::xfer_partial): Update.
456 (target_bfd::target_bfd): Update.
457 (target_bfd::~target_bfd): Remove.
458
7b466b10
TT
4592020-10-12 Tom Tromey <tom@tromey.com>
460
461 * target.h (struct target_section, struct target_section_table):
462 Move to target-section.h.
463 * target-section.h: New file.
464
87a37e5e
PA
4652020-10-12 Pedro Alves <pedro@palves.net>
466
467 PR exp/26602
468 * valops.c (struct struct_field_searcher): New.
469 (update_search_result): Rename to ...
470 (struct_field_searcher::update_result): ... this. Simplify
471 prototype. Record all found fields.
472 (do_search_struct_field): Rename to ...
473 (struct_field_searcher::search): ... this. Simplify prototype.
474 Maintain stack of visited baseclass path. Call update_result for
475 fields too. Keep searching fields in baseclasses instead of
476 stopping at the first found field.
477 (search_struct_field): Use struct_field_searcher. When looking
478 for fields, report ambiguous access attempts.
479
9370fd51
AB
4802020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
481
482 * frame.c (inside_main_func): Check full symbols as well as
483 minimal symbols.
484
59c8a30b
JB
4852020-10-09 Joel Brobecker <brobecker@adacore.com>
486
487 * ada-lang.c (advance_wild_match): Rewrite the function's
488 description. Change the type of target0, t0 and t1 to char.
489
7c184d33
TT
4902020-10-09 Tom Tromey <tromey@adacore.com>
491
492 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
493
5c4258f4
TT
4942020-10-09 Tom Tromey <tromey@adacore.com>
495
496 * ada-lang.h (ada_encode): Return std::string.
497 * ada-lang.c (ada_encode_1): Return std::string.
498 (ada_encode): Likewise.
499 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
500 Update.
501 * ada-exp.y (block_lookup, write_var_or_type): Update.
502
3d87245c
HD
5032020-10-09 Hannes Domani <ssbssa@yahoo.de>
504
505 PR exp/26714
506 * printcmd.c (print_formatted): Handle void results as
507 unformatted prints.
508
bbb826f5
AB
5092020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
510
511 * arch/aarch32.c (aarch32_create_target_description): Release the
512 target_desc_up as late as possible.
513 * arch/aarch64.c (aarch64_create_target_description): Likewise.
514 * arch/amd64.c (amd64_create_target_description): Likewise.
515 * arch/arc.c (arc_create_target_description): Return a
516 target_desc_up, don't release it.
517 * arch/arc.h (arc_create_target_description): Update declaration.
518 (arc_lookup_target_description): Move target_desc_up into the
519 cache, and return a borrowed pointer.
520 * arch/arm.c (arm_create_target_description): Release the
521 target_desc_up as late as possible.
522 * arch/i386.c (i386_create_target_description): Likewise.
523 * arch/riscv.h (riscv_create_target_description): Update
524 declaration to match definition.
525 * arch/tic6x.c (tic6x_create_target_description): Release the
526 target_desc_up as late as possible.
527
361cb219
AB
5282020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
529
530 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
531 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
532
f5c4b229
JV
5332020-10-09 Jan Vrany <jan.vrany@labware.com>
534
535 * source.c (directory_command): Notify observers that "directories"
536 parameter has changed.
537
b2701685
TT
5382020-10-08 Tom Tromey <tom@tromey.com>
539
540 * cli/cli-cmds.c (print_disassembly): Style function name and
541 addresses. Add _() wrappers.
542
ada508b6
SV
5432020-10-08 Shahab Vahedi <shahab@synopsys.com>
544
545 * NEWS: Mention ARC support in GDBserver.
546
51a948fd
AB
5472020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
548
549 * arch/aarch32.c (aarch32_create_target_description): Release
550 unique_ptr returned from allocate_target_description.
551 * arch/aarch64.c (aarch64_create_target_description): Likewise.
552 * arch/amd64.c (amd64_create_target_description): Likewise.
553 * arch/arc.c (arc_create_target_description): Likewise.
554 * arch/arm.c (arm_create_target_description): Likewise.
555 * arch/i386.c (i386_create_target_description): Likewise.
556 * arch/riscv.c (riscv_create_target_description): Update return
557 type. Handle allocate_target_description returning a unique_ptr.
558 (riscv_lookup_target_description): Update to handle unique_ptr.
559 * arch/tic6x.c (tic6x_create_target_description): Release
560 unique_ptr returned from allocate_target_description.
561 * features/microblaze-with-stack-protect.c: Regenerate.
562 * features/microblaze.c: Regenerate.
563 * features/mips-dsp-linux.c: Regenerate.
564 * features/mips-linux.c: Regenerate.
565 * features/mips64-dsp-linux.c: Regenerate.
566 * features/mips64-linux.c: Regenerate.
567 * features/nds32.c: Regenerate.
568 * features/nios2.c: Regenerate.
569 * features/or1k.c: Regenerate.
570 * features/rs6000/powerpc-32.c: Regenerate.
571 * features/rs6000/powerpc-32l.c: Regenerate.
572 * features/rs6000/powerpc-403.c: Regenerate.
573 * features/rs6000/powerpc-403gc.c: Regenerate.
574 * features/rs6000/powerpc-405.c: Regenerate.
575 * features/rs6000/powerpc-505.c: Regenerate.
576 * features/rs6000/powerpc-601.c: Regenerate.
577 * features/rs6000/powerpc-602.c: Regenerate.
578 * features/rs6000/powerpc-603.c: Regenerate.
579 * features/rs6000/powerpc-604.c: Regenerate.
580 * features/rs6000/powerpc-64.c: Regenerate.
581 * features/rs6000/powerpc-64l.c: Regenerate.
582 * features/rs6000/powerpc-7400.c: Regenerate.
583 * features/rs6000/powerpc-750.c: Regenerate.
584 * features/rs6000/powerpc-860.c: Regenerate.
585 * features/rs6000/powerpc-altivec32.c: Regenerate.
586 * features/rs6000/powerpc-altivec32l.c: Regenerate.
587 * features/rs6000/powerpc-altivec64.c: Regenerate.
588 * features/rs6000/powerpc-altivec64l.c: Regenerate.
589 * features/rs6000/powerpc-e500.c: Regenerate.
590 * features/rs6000/powerpc-e500l.c: Regenerate.
591 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
592 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
593 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
594 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
595 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
596 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
597 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
598 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
599 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
600 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
601 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
602 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
603 * features/rs6000/powerpc-vsx32.c: Regenerate.
604 * features/rs6000/powerpc-vsx32l.c: Regenerate.
605 * features/rs6000/powerpc-vsx64.c: Regenerate.
606 * features/rs6000/powerpc-vsx64l.c: Regenerate.
607 * features/rs6000/rs6000.c: Regenerate.
608 * features/rx.c: Regenerate.
609 * features/s390-gs-linux64.c: Regenerate.
610 * features/s390-linux32.c: Regenerate.
611 * features/s390-linux32v1.c: Regenerate.
612 * features/s390-linux32v2.c: Regenerate.
613 * features/s390-linux64.c: Regenerate.
614 * features/s390-linux64v1.c: Regenerate.
615 * features/s390-linux64v2.c: Regenerate.
616 * features/s390-te-linux64.c: Regenerate.
617 * features/s390-tevx-linux64.c: Regenerate.
618 * features/s390-vx-linux64.c: Regenerate.
619 * features/s390x-gs-linux64.c: Regenerate.
620 * features/s390x-linux64.c: Regenerate.
621 * features/s390x-linux64v1.c: Regenerate.
622 * features/s390x-linux64v2.c: Regenerate.
623 * features/s390x-te-linux64.c: Regenerate.
624 * features/s390x-tevx-linux64.c: Regenerate.
625 * features/s390x-vx-linux64.c: Regenerate.
626 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
627 from allocate_target_description.
628 * target-descriptions.c (allocate_target_description): Update
629 return type.
630 (print_c_tdesc::visit_pre): Release unique_ptr returned from
631 allocate_target_description.
632
485c47e5
TT
6332020-10-07 Tom Tromey <tromey@adacore.com>
634
635 * unittests/search-memory-selftests.c: New file.
636 * Makefile.in (SELFTESTS_SRCS): Add
637 unittests/search-memory-selftests.c.
638
3a135a91
TT
6392020-10-07 Tom Tromey <tromey@adacore.com>
640
641 PR gdb/16930:
642 * findcmd.c (_initialize_mem_search): Mention that the range is
643 inclusive.
644
4a72de73
TT
6452020-10-07 Tom Tromey <tromey@adacore.com>
646
647 * target.h (simple_search_memory): Don't declare.
648 * target.c (simple_search_memory): Move to gdbsupport.
649 (default_search_memory): Update.
650 * remote.c (remote_target::search_memory): Update.
651
a038ffd8
SM
6522020-10-07 Simon Marchi <simon.marchi@efficios.com>
653
654 * Makefile.in (COMPILE): Add CXXFLAGS.
655 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
656 (check-headers): Add CXXFLAGS.
657
cc463201
AK
6582020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
659
660 * arc-linux-tdep.h: New file.
661 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
662 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
663 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
664 arc_linux_gregset, arc_linux_v2_regset,
665 arc_linux_iterate_over_regset_sections,
666 arc_linux_core_read_description): Implement.
667 (arc_linux_init_osabi): Set iterate_over_regset_sections.
668 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
669 (arc_gdbarch_features_create): Add.
670 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
671
e4bd363f
SV
6722020-10-07 Shahab Vahedi <shahab@synopsys.com>
673
674 * arch/arc.h: Rename "arc_gdbarch_features" to
675 "arc_arch_features".
676 * arc-tdep.h: Likewise.
677 * arc-tdep.c: Likewise.
678
b68bef99
TBA
6792020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
680
681 * infcmd.c (attach_command): Remove the redundant call to
682 `clear_proceed_status`.
683
4641551a
KR
6842020-10-07 Kamil Rytarowski <n54@gmx.com>
685
686 * nat/netbsd-nat.c (write_memory, read_memory): Update.
687
91e5e8db
KR
6882020-10-07 Kamil Rytarowski <n54@gmx.com>
689
690 * nat/netbsd-nat.c (write_memory, read_memory): Add.
691 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
692 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
693
64c03bdb
SM
6942020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
695
696 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
697 (_initialize_break_catch_sig): Don't allocate array.
698
31a8f60f
AB
6992020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
700
701 * symtab.c (find_pc_line): Return unmapped addresses when the
702 requested address is also unmapped.
703
9e6dbd8b
SM
7042020-10-05 Simon Marchi <simon.marchi@efficios.com>
705
706 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
707 tui/tui-out.h.
708
a1d217e8
SM
7092020-10-05 Simon Marchi <simon.marchi@efficios.com>
710
711 * amd64-windows-tdep.c (amd64_windows_return_value): Use
712 type::is_vector instead of TYPE_VECTOR.
713
7d144117
SM
7142020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
715
716 * auto-load.c (auto_load_objfile_script_1): Don't use
717 debugfile_holder as temporary variable when stripping drive
718 letter.
719
cd096ec8
HD
7202020-10-05 Hannes Domani <ssbssa@yahoo.de>
721
722 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
723 Add TYPE_CODE_COMPLEX.
724 (amd64_windows_return_value): Fix types returned via XMM0.
725
b58e7f72
AH
7262020-10-05 Alan Hayward <alan.hayward@arm.com>
727
728 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
729 AArch64/ARM maintainers.
730
8d378f27
SM
7312020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
732
733 * NEWS: Mention set/show debug event-loop.
734
d5519913
TT
7352020-10-02 Tom Tromey <tromey@adacore.com>
736
737 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
738 REG_EXTENDED.
739
18b67edc
SM
7402020-10-02 Simon Marchi <simon.marchi@efficios.com>
741
742 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
743 * procfs.c (procfs_inferior_created): Remove.
744 (_initialize_procfs): Don't register procfs_inferior_created.
745
6b01403b
SM
7462020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
747
748 * async-event.c (invoke_async_signal_handlers): Add debug
749 print.
750 (check_async_event_handlers): Likewise.
751 * event-top.c (show_debug_event_loop): New function.
752 (_initialize_event_top): Register "set debug event-loop"
753 setting.
754
ba988419
SM
7552020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
756
757 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
758 * debug.h: Remove.
759 * infrun.c: Include gdbsupport/common-debug.h.
760 * linux-nat.c: Likewise.
761
db20ebdf
SM
7622020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
763
764 * async-event.h (create_async_signal_handler): Add name
765 parameter.
766 (create_async_event_handler): Likewise.
767 * async-event.c (struct async_signal_handler) <name>: New field.
768 (struct async_event_handler) <name>: New field.
769 (create_async_signal_handler): Assign name.
770 (create_async_event_handler): Assign name.
771 * event-top.c (async_init_signals): Pass name when creating
772 handler.
773 * infrun.c (_initialize_infrun): Likewise.
774 * record-btrace.c (record_btrace_push_target): Likewise.
775 * record-full.c (record_full_open): Likewise.
776 * remote-notif.c (remote_notif_state_allocate): Likewise.
777 * remote.c (remote_target::open_1): Likewise.
778 * tui/tui-win.c (tui_initialize_win): Likewise.
779
2554f6f5
SM
7802020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
781
782 * async-event.c (initialize_async_signal_handlers): Pass name to
783 add_file_handler
784 * event-top.c (ui_register_input_event_handler): Likewise.
785 * linux-nat.c (linux_nat_target::async): Likewise.
786 * run-on-main-thread.c (_initialize_run_on_main_thread):
787 Likewise
788 * ser-base.c (reschedule): Likewise.
789 (ser_base_async): Likewise.
790 * tui/tui-io.c: Likewise.
791 * top.h (struct ui) <num>: New field.
792 * top.c (highest_ui_num): New variable.
793 (ui::ui): Initialize num.
794
a7aba266
SM
7952020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
796
797 * observable.h <inferior_created>: Remove parameters. Update all
798 listeners.
799 * inferior.h (post_create_inferior): Remove target parameter.
800 Update all callers.
801
048fde1e 8022020-10-02 Nitika Achra <Nitika.Achra@amd.com>
803
804 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
805 and DW_MACRO_undef_strx.
806 (dwarf_decode_macros): Likewise
807 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
808 which is the value of DW_AT_str_offsets_base.
809 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
810 str_offsets_base.
811
064280be
KR
8122020-10-01 Kamil Rytarowski <n54@gmx.com>
813
814 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
815
6ff33035
KR
8162020-10-01 Kamil Rytarowski <n54@gmx.com>
817
818 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
819 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
820
1eb6eb79
KR
8212020-10-01 Kamil Rytarowski <n54@gmx.com>
822
823 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
824
95eb9e54
TV
8252020-09-30 Tom de Vries <tdevries@suse.de>
826
827 PR symtab/26683
828 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
829
cae21f8e
TT
8302020-09-30 Tom Tromey <tromey@adacore.com>
831
832 * dwarf2/read.c (handle_variant): Use constant_value.
833
529908cb
TT
8342020-09-29 Tom Tromey <tom@tromey.com>
835
836 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
837 (read_file_scope, dwarf2_get_pc_bounds)
838 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
839 (read_structure_type, handle_struct_member_die)
840 (read_enumeration_type, read_array_type, read_set_type)
841 (read_tag_pointer_type, read_tag_reference_type)
842 (read_subroutine_type, read_base_type, read_subrange_type)
843 (read_full_die_1, partial_die_info::read)
844 (partial_die_info::read, by, new_symbol)
845 (dwarf2_const_value_data, dwarf2_const_value_attr)
846 (dump_die_shallow, dwarf2_fetch_constant_bytes)
847 (prepare_one_comp_unit): Update.
848 * dwarf2/attribute.h (DW_UNSND): Remove.
849
c45bc3f8
TT
8502020-09-29 Tom Tromey <tom@tromey.com>
851
852 * dwarf2/read.c (read_func_scope, prototyped_function_p)
853 (read_subroutine_type, partial_die_info::read)
854 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
855 (dwarf2_add_member_fn): Update.
856 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
857 * dwarf2/attribute.c (attribute::as_boolean): New method.
858
23dca5c3
TT
8592020-09-29 Tom Tromey <tom@tromey.com>
860
861 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
862 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
863 method.
864 * dwarf2/attribute.c (attribute::as_virtuality): New method.
865
52c14d11
TT
8662020-09-29 Tom Tromey <tom@tromey.com>
867
868 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
869 the attribute's form.
870
e8e5c158
TT
8712020-09-29 Tom Tromey <tom@tromey.com>
872
873 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
874 (dwarf2_add_member_fn): Update.
875 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
876 * dwarf2/attribute.c (attribute::defaulted): New method, from
877 is_valid_DW_AT_defaulted.
878
d4df075e
TT
8792020-09-29 Tom Tromey <tom@tromey.com>
880
881 * dwarf2/read.c (dw2_get_file_names_reader)
882 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
883 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
884 (dwarf2_symbol_mark_computed): Use as_unsigned.
885 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
886 method.
887 <form_is_section_offset>: Update comment.
888
bf23a268
TT
8892020-09-29 Tom Tromey <tom@tromey.com>
890
891 * dwarf2/read.c (dwarf2_access_attribute): Rename from
892 dwarf2_default_access_attribute. Look up attribute.
893 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
894 Update.
895
7a5f294d
TT
8962020-09-29 Tom Tromey <tom@tromey.com>
897
898 * dwarf2/read.c (skip_one_die): Update.
899 (read_full_die_1): Change how reprocessing is done.
900 (partial_die_info::read): Update.
901 (read_attribute_value): Remove need_reprocess parameter.
902 (read_attribute): Likewise.
903 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
904 New method.
905
36d378cf
TT
9062020-09-29 Tom Tromey <tom@tromey.com>
907
908 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
909 (dwarf2_const_value_attr, dump_die_shallow)
910 (dwarf2_fetch_constant_bytes): Update.
911 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
912 comment.
913 <set_address>: New method.
914 (DW_ADDR): Remove.
915 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
916 (attribute::as_string, attribute::as_address): Add assert.
917
fe56917a
TT
9182020-09-29 Tom Tromey <tom@tromey.com>
919
920 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
921 (read_attribute_reprocess, read_attribute_value): Update.
922 (read_attribute): Clear requires_reprocessing.
923 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
924 form_requires_reprocessing>: New methods.
925 <string_init>: Clear requires_reprocessing.
926 <set_unsigned_reprocess>: New method.
927 <name>: Shrink by one bit.
928 <requires_reprocessing>: New member.
929 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
930 method.
931
414ad644
TT
9322020-09-29 Tom Tromey <tom@tromey.com>
933
934 * dwarf2/read.c (read_attribute_value): Update.
935 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
936 set_unsigned>: New methods.
937 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
938
1bc397c5
TT
9392020-09-29 Tom Tromey <tom@tromey.com>
940
941 * dwarf2/read.c (get_alignment, read_array_order)
942 (read_attribute_value, dwarf2_const_value_attr)
943 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
944 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
945 New methods.
946 (DW_SND): Remove.
947
630ed6b9
TT
9482020-09-29 Tom Tromey <tom@tromey.com>
949
950 * dwarf2/read.c (read_attribute_value, lookup_die_type)
951 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
952 Update.
953 * dwarf2/attribute.h (struct attribute) <as_signature,
954 set_signature>: New methods.
955 (DW_SIGNATURE): Remove.
956
9d2246fc
TT
9572020-09-29 Tom Tromey <tom@tromey.com>
958
959 * dwarf2/read.c (read_call_site_scope)
960 (handle_data_member_location, dwarf2_add_member_fn)
961 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
962 (partial_die_info::read, read_attribute_value)
963 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
964 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
965 (dwarf2_symbol_mark_computed): Update.
966 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
967 methods.
968 (DW_BLOCK): Remove.
969 * dwarf2/attribute.c (attribute::form_is_block): Add
970 DW_FORM_data16.
971
c6481205
TT
9722020-09-29 Tom Tromey <tom@tromey.com>
973
974 * dwarf2/read.c (read_cutu_die_from_dwo)
975 (read_attribute_reprocess, read_attribute_value, read_attribute)
976 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
977 (dwarf2_fetch_constant_bytes): Update.
978 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
979 <set_string_noncanonical, set_string_canonical>: New methods.
980 <string_is_canonical>: Update comment.
981 <canonical_string_p>: Add assert.
982 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
983 * dwarf2/attribute.c (attribute::form_is_string): New method.
984 (attribute::string): Use it.
985
3b64bf15
TT
9862020-09-29 Tom Tromey <tom@tromey.com>
987
988 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
989 (dump_die_shallow): Use canonical_string_p.
990 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
991 method.
992
2c830f54
TT
9932020-09-29 Tom Tromey <tom@tromey.com>
994
995 * dwarf2/read.c (partial_die_info::read)
996 (dwarf2_const_value_attr, anonymous_struct_prefix, )
997 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
998 attribute::as_string.
999
6c412691
TT
10002020-09-29 Tom Tromey <tom@tromey.com>
1001
1002 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1003 DW_ADDR.
1004 (attribute::string): Don't use DW_STRING.
1005 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1006 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1007
95f982e5
TT
10082020-09-29 Tom Tromey <tom@tromey.com>
1009
1010 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1011 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1012 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1013 * dwarf2/attribute.h (struct attribute): Rename methods.
1014 * dwarf2/attribute.c (attribute::as_address): Rename from
1015 value_as_address.
1016 (attribute::as_string): Rename from value_as_string.
1017
f800b00e
TT
10182020-09-29 Tom Tromey <tom@tromey.com>
1019
1020 * dwarf2/read.c (partial_die_info::read) <case
1021 DW_AT_linkage_name>: Use value_as_string.
1022 (dwarf2_string_attr): Use value_as_string.
1023 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1024 method.
1025 * dwarf2/attribute.c (attribute::value_as_string): New method.
1026
de38d64a
PA
10272020-09-29 Pedro Alves <pedro@palves.net>
1028
1029 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1030 defined before using '#pragma GCC diagnostic' instead of checking
1031 __clang__.
1032
9aed480c
TT
10332020-09-28 Tom Tromey <tom@tromey.com>
1034
1035 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1036 (handle_signal_stop): Update.
1037 * procfs.c (procfs_target::insert_watchpoint): Update.
1038 * target.h (target_have_steppable_watchpoint): Now a function.
1039
8a3ecb79
TT
10402020-09-28 Tom Tromey <tom@tromey.com>
1041
1042 * infrun.c (set_schedlock_func): Update.
1043 * target.h (target_can_lock_scheduler): Now a function.
1044
55f6301a
TT
10452020-09-28 Tom Tromey <tom@tromey.com>
1046
1047 * inferior.h (class inferior) <has_execution>: Update.
1048 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1049 * valops.c (find_function_in_inferior)
1050 (value_allocate_space_in_inferior): Update.
1051 * top.c (kill_or_detach): Update.
1052 * target.c (target_preopen, set_target_permissions): Update.
1053 (target_has_execution_current): Remove.
1054 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1055 Update.
1056 * solib.c (update_solib_list, reload_shared_libraries): Update.
1057 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1058 * solib-dsbt.c (enable_break): Update.
1059 * score-tdep.c (score7_fetch_inst): Update.
1060 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1061 Update.
1062 * remote.c (remote_target::start_remote)
1063 (remote_target::remote_check_symbols, remote_target::open_1)
1064 (remote_target::remote_detach_1, remote_target::verify_memory)
1065 (remote_target::xfer_partial, remote_target::read_description)
1066 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1067 * record-full.c (record_full_open_1): Update.
1068 * record-btrace.c (record_btrace_target_open): Update.
1069 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1070 (value_nsstring): Update.
1071 * linux-thread-db.c (add_thread_db_info)
1072 (thread_db_find_new_threads_silently, check_thread_db_callback)
1073 (try_thread_db_load_1, record_thread): Update.
1074 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1075 Update.
1076 * linux-fork.c (checkpoint_command): Update.
1077 * infrun.c (set_non_stop, set_observer_mode)
1078 (check_multi_target_resumption, for_each_just_stopped_thread)
1079 (maybe_remove_breakpoints, normal_stop)
1080 (class infcall_suspend_state): Update.
1081 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1082 (info_program_command, attach_command): Update.
1083 * infcall.c (call_function_by_hand_dummy): Update.
1084 * inf-loop.c (inferior_event_handler): Update.
1085 * gcore.c (gcore_command, derive_heap_segment): Update.
1086 * exec.c (exec_file_command): Update.
1087 * eval.c (evaluate_subexp): Update.
1088 * compile/compile.c (compile_to_object): Update.
1089 * cli/cli-dump.c (restore_command): Update.
1090 * breakpoint.c (update_watchpoint)
1091 (update_inserted_breakpoint_locations)
1092 (insert_breakpoint_locations, get_bpstat_thread): Update.
1093 * target.h (target_has_execution): Remove macro.
1094 (target_has_execution_current): Don't declare.
1095 (target_has_execution): Rename from target_has_execution_1. Add
1096 argument default.
1097
05374cfd
TT
10982020-09-28 Tom Tromey <tom@tromey.com>
1099
1100 * mi/mi-main.c (exec_reverse_continue)
1101 (mi_cmd_list_target_features): Update.
1102 * infrun.c (set_exec_direction_func): Update.
1103 * target.c (default_execution_direction): Update.
1104 * reverse.c (exec_reverse_once): Update.
1105 * target.h (target_can_execute_reverse): Now a function.
1106
9dccd06e
TT
11072020-09-28 Tom Tromey <tom@tromey.com>
1108
1109 * tui/tui-regs.c (tui_get_register)
1110 (tui_data_window::show_registers): Update.
1111 * thread.c (scoped_restore_current_thread::restore)
1112 (scoped_restore_current_thread::scoped_restore_current_thread):
1113 Update.
1114 * regcache-dump.c (regcache_print): Update.
1115 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1116 Update.
1117 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1118 * mep-tdep.c (current_me_module, current_options): Update.
1119 * linux-thread-db.c (thread_db_load): Update.
1120 * infcmd.c (registers_info, info_vector_command)
1121 (info_float_command): Update.
1122 * ia64-tdep.c (ia64_frame_prev_register)
1123 (ia64_sigtramp_frame_prev_register): Update.
1124 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1125 * gcore.c (derive_stack_segment): Update.
1126 * frame.c (get_current_frame, has_stack_frames): Update.
1127 * findvar.c (language_defn::read_var_value): Update.
1128 * arm-tdep.c (arm_pc_is_thumb): Update.
1129 * target.c (target_has_registers): Rename from
1130 target_has_registers_1.
1131 * target.h (target_has_registers): Remove macro.
1132 (target_has_registers): Rename from target_has_registers_1.
1133
841de120
TT
11342020-09-28 Tom Tromey <tom@tromey.com>
1135
1136 * windows-tdep.c (tlb_make_value): Update.
1137 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1138 * thread.c (scoped_restore_current_thread::restore)
1139 (scoped_restore_current_thread::scoped_restore_current_thread)
1140 (thread_command): Update.
1141 * stack.c (backtrace_command_1, frame_apply_level_command)
1142 (frame_apply_all_command, frame_apply_command): Update.
1143 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1144 Update.
1145 * gcore.c (derive_stack_segment): Update.
1146 * frame.c (get_current_frame, has_stack_frames): Update.
1147 * auxv.c (info_auxv_command): Update.
1148 * ada-tasks.c (ada_build_task_list): Update.
1149 * target.c (target_has_stack): Rename from target_has_stack_1.
1150 * target.h (target_has_stack): Remove macro.
1151 (target_has_stack): Rename from target_has_stack_1.
1152
a739972c
TT
11532020-09-28 Tom Tromey <tom@tromey.com>
1154
1155 * target.c (target_has_memory): Rename from target_has_memory_1.
1156 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1157 * thread.c (scoped_restore_current_thread::restore)
1158 (scoped_restore_current_thread::scoped_restore_current_thread):
1159 Update.
1160 * frame.c (get_current_frame, has_stack_frames): Update.
1161 * target.h (target_has_memory): Remove macro.
1162 (target_has_memory): Rename from target_has_memory_1.
1163
5b8a4776
TT
11642020-09-28 Tom Tromey <tom@tromey.com>
1165
1166 * target.c (target_has_all_memory_1): Remove.
1167 * target.h (target_has_all_memory): Remove define.
1168 (target_has_all_memory_1): Don't declare.
1169
bd356ec6
SM
11702020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1171
1172 * ser-base.c: Adjust comments formatting.
1173
2c72d5e5
TT
11742020-09-27 Tom Tromey <tom@tromey.com>
1175
1176 PR tui/25342:
1177 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1178
35a98237
TT
11792020-09-27 Tom Tromey <tom@tromey.com>
1180
1181 PR tui/25342:
1182 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1183
9e820dec
TT
11842020-09-27 Tom Tromey <tom@tromey.com>
1185
1186 * unittests/tui-selftests.c: Update.
1187 * tui/tui-winsource.h (struct tui_source_window_base)
1188 <extra_margin, show_line_number, refresh_pad>: New methods.
1189 <m_max_length, m_pad>: New members.
1190 (tui_copy_source_line): Update.
1191 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1192 first_col, line_width, ndigits parameters. Add length.
1193 (tui_source_window_base::show_source_line): Write to pad. Line
1194 number now 0-based.
1195 (tui_source_window_base::refresh_pad): New method.
1196 (tui_source_window_base::show_source_content): Write to pad. Call
1197 refresh_pad.
1198 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1199 not refill.
1200 (tui_source_window_base::update_exec_info): Call
1201 show_line_number.
1202 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1203 method.
1204 <m_digits>: New member.
1205 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1206 and m_max_length.
1207 (tui_source_window::show_line_number): New method.
1208 * tui/tui-io.h (tui_puts): Fix comment.
1209 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1210 m_max_length.
1211
c15c15c8
TT
12122020-09-27 Tom Tromey <tom@tromey.com>
1213
1214 * tui/tui-winsource.c
1215 (tui_source_window_base::set_is_exec_point_at): Don't call
1216 show_source_line.
1217
149830c1
TT
12182020-09-27 Tom Tromey <tom@tromey.com>
1219
1220 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1221 method.
1222 <erase>: Update.
1223 <cursor_x, cursor_y>: Remove.
1224 <m_inner_window>: New member.
1225 (tui_py_window::rerender): Create inner window.
1226 (tui_py_window::output): Write to inner window.
1227
8f9929bb
GR
12282020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1229
1230 PR python/26586
1231 * cli/cli-script.c (execute_control_commands): don't set
1232 instream to nullptr here as this breaks the from_tty argument
1233 to gdb.execute in Python.
1234 (execute_user_command): set instream to nullptr here instead.
1235
956bdb59
SM
12362020-09-25 Simon Marchi <simon.marchi@efficios.com>
1237
1238 * infrun.h (infrun_debug_printf): Fix formatting.
1239 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1240
3b93626b
SJ
12412020-09-25 Saagar Jha <saagar@saagarjha.com>
1242
1243 * compile/compile-object-load.h (struct munmap_list): Add
1244 explicitly-defined move constructor.
1245
b551a89f
TT
12462020-09-24 Tom Tromey <tromey@adacore.com>
1247
1248 PR tui/26638:
1249 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1250 method.
1251 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1252 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1253 (tui_prev_win): Rewrite.
1254
99bb393f
HD
12552020-09-23 Hannes Domani <ssbssa@yahoo.de>
1256
1257 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1258 in WOW64 processes as SIGINT.
1259 * nat/windows-nat.h: Make wow64_process a shared variable.
1260 * windows-nat.c: Remove static wow64_process variable.
1261
20a5fcbd
TT
12622020-09-23 Tom Tromey <tom@tromey.com>
1263
1264 PR symtab/25470:
1265 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1266 offset and bit size.
1267 * printcmd.c (print_scalar_formatted): Handle zero-length
1268 integer.
1269 (print_scalar_formatted): Use bit_size_differs_p.
1270 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1271 constant.
1272 (union type_specific): <int_stuff>: New member.
1273 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1274 methods.
1275 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1276 TYPE_SPECIFIC_FIELD.
1277 (recursive_dump_type, copy_type_recursive): Update.
1278 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1279 DW_AT_data_bit_offset.
1280
bac51ab7
TT
12812020-09-23 Tom Tromey <tom@tromey.com>
1282
1283 * utils.h (class gdb_argv): Add move operators.
1284 <append>: New methods.
1285 * compile/compile.c (build_argc_argv): Remove.
1286 (compile_args_argc): Remove.
1287 (compile_args_argv): Change type.
1288 (set_compile_args): Simplify.
1289 (append_args): Remove.
1290 (filter_args): Remove argcp parameter.
1291 (get_args): Return gdb_argv. Simplify.
1292 (compile_to_object): Update.
1293
92677124
TT
12942020-09-23 Tom Tromey <tom@tromey.com>
1295
1296 * compile/compile-object-run.c (do_module_cleanup)
1297 <~do_module_cleanup> :Remove.
1298 (do_module_cleanup): Update.
1299 * compile/compile-object-load.h (struct munmap_list): Add move
1300 assignment operator.
1301 <source_file>: Now a std::string.
1302 <munmap_list>: Rename. No longer a pointer.
1303 * compile/compile-object-load.c (struct setup_sections_data): Add
1304 constructor.
1305 <setup_one_section>: Declare.
1306 <munmap_list>: Move earlier.
1307 <m_bfd>: New member.
1308 <m_last_size, m_last_section_first, m_last_prot,
1309 m_last_max_alignment>: Rename, add initializers where needed.
1310 (setup_sections_data::setup_one_section): Rename from
1311 setup_sections. Update.
1312 (compile_object_load): Update. Don't use bfd_map_over_sections.
1313
e616f60a
TT
13142020-09-23 Tom Tromey <tom@tromey.com>
1315
1316 * compile/compile-object-run.c (struct do_module_cleanup): Add
1317 parameters to constructor. Update destructor.
1318 <source_file, scope, scope_data, out_value_type, out_value_addr,
1319 munmap_list_head, objfile_name_string>: Remove.
1320 <module>: New member.
1321 (do_module_cleanup): Update.
1322 (compile_object_run): Update.
1323
e947a848
TT
13242020-09-23 Tom Tromey <tom@tromey.com>
1325
1326 * compile/compile.c (eval_compile_command): Update.
1327 * compile/compile-object-run.h (compile_object_run): Take a
1328 compile_module_up.
1329 * compile/compile-object-run.c (compile_object_run): Take a
1330 compile_module_up.
1331 * compile/compile-object-load.h (struct compile_module): Add
1332 constructor, destructor.
1333 (compile_module_up): New typedef.
1334 (compile_object_load): Return compile_object_up.
1335 * compile/compile-object-load.c (compile_object_load): Return
1336 compile_module_up.
1337
0dbf6ee6
TT
13382020-09-23 Tom Tromey <tom@tromey.com>
1339
1340 * compile/compile-object-run.c (struct do_module_cleanup): Add
1341 constructor, destructor.
1342 <objfile_name_string>: Don't use struct hack.
1343 (do_module_cleanup): Use delete.
1344 (compile_object_run): Use new.
1345
ebe824f5
TT
13462020-09-23 Tom Tromey <tom@tromey.com>
1347
1348 * compile/compile-cplus-types.c
1349 (compile_cplus_convert_struct_or_union): Use std::vector.
1350 (compile_cplus_convert_func): Likewise.
1351 * compile/compile-c-types.c (convert_func): Use std::vector.
1352
5dd918d9
TT
13532020-09-21 Tom Tromey <tromey@adacore.com>
1354
1355 * sparc-tdep.c (sparc32_skip_prologue): Use
1356 skip_prologue_using_sal.
1357
5486c517
TT
13582020-09-19 Tom Tromey <tom@tromey.com>
1359
1360 * symfile.c (add_section_size_callback): Remove.
1361 (load_one_section): Rename from load_section_callback. Change
1362 parameters.
1363 (generic_load): Use foreach.
1364
8a6bb1d1
TT
13652020-09-19 Tom Tromey <tom@tromey.com>
1366
1367 * exec.c (add_to_section_table): Remove.
1368 (build_section_table): Use foreach.
1369
08f93a1a
TT
13702020-09-19 Tom Tromey <tom@tromey.com>
1371
1372 * elfread.c (elf_locate_sections): Change parameters.
1373 (elf_symfile_read): Use foreach.
1374
03cd72b8
TT
13752020-09-19 Tom Tromey <tom@tromey.com>
1376
1377 * cli/cli-dump.c (struct callback_data): Remove.
1378 (restore_one_section): Rename from restore_section_callback.
1379 Change parameters.
1380 (restore_binary_file): Change parameters.
1381 (restore_command): Use foreach.
1382
f4f2b85f
TT
13832020-09-19 Tom Tromey <tom@tromey.com>
1384
1385 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1386 (gcore_copy_callback): Likewise.
1387 (gcore_memory_sections): Use foreach.
1388
b35c1d1c
TT
13892020-09-19 Tom Tromey <tom@tromey.com>
1390
1391 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1392 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1393 parameters.
1394 (generic_elf_osabi_sniffer): Use foreach.
1395 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1396 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1397
5bb6e9dd
TT
13982020-09-19 Tom Tromey <tom@tromey.com>
1399
1400 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1401 (dwarf2_get_dwz_file): Use foreach.
1402 (dwarf2_locate_dwo_sections): Change parameters.
1403 (open_and_init_dwo_file): Use foreach.
1404 (dwarf2_locate_common_dwp_sections): Change parameters.
1405 (open_and_init_dwp_file): Use foreach.
1406
ad7277da
TT
14072020-09-19 Tom Tromey <tom@tromey.com>
1408
1409 * symfile.h: (find_lowest_section): Don't declare.
1410 * symfile.c (find_lowest_section): Now static. Change
1411 parameters.
1412 (struct place_section_arg): Remove.
1413 (place_section): Change parameters.
1414 (addr_info_make_relative): Use foreach.
1415 (symfile_dummy_outputs): Remove.
1416 (default_symfile_relocate): Use foreach.
1417
cb814f2e
TT
14182020-09-19 Tom Tromey <tom@tromey.com>
1419
1420 * objfiles.c (add_to_objfile_sections): Rename from
1421 add_to_objfile_sections_full.
1422 (add_to_objfile_sections): Remove.
1423 (build_objfile_section_table): Use foreach.
1424
3cabfd26
TT
14252020-09-19 Tom Tromey <tom@tromey.com>
1426
1427 * stap-probe.c (get_stap_base_address_1): Remove.
1428 (get_stap_base_address): Use foreach.
1429
1ce51eb5
TT
14302020-09-19 Tom Tromey <tom@tromey.com>
1431
1432 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1433 parameters.
1434 (gdb_bfd_close_or_warn): Use foreach.
1435
a190fabb
TT
14362020-09-19 Tom Tromey <tom@tromey.com>
1437
1438 * corelow.c (add_to_thread_list): Change parameters.
1439 (core_target_open): Use foreach.
1440
cafb0d81
TT
14412020-09-19 Tom Tromey <tom@tromey.com>
1442
1443 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1444 existing function.
1445
c8d5abea
AB
14462020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1447
1448 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1449 for arrays.
1450
6d816919
AB
14512020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1452
1453 * eval.c: Remove 'f-lang.h' include.
1454 (value_f90_subarray): Moved to f-lang.c.
1455 (eval_call): Renamed to...
1456 (evaluate_subexp_do_call): ...this, is no longer static, header
1457 comment moved into header file.
1458 (evaluate_funcall): Update call to eval_call.
1459 (skip_undetermined_arglist): Moved to f-lang.c.
1460 (fortran_value_subarray): Likewise.
1461 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1462 moved to evaluate_subexp_f.
1463 (calc_f77_array_dims): Moved to f-lang.c
1464 * expprint.c (print_subexp_funcall): New function.
1465 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1466 moved to print_subexp_f, OP_FUNCALL uses new function.
1467 (dump_subexp_body_funcall): New function.
1468 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1469 moved to dump_subexp_f, OP_FUNCALL uses new function.
1470 * expression.h (evaluate_subexp_do_call): Declare.
1471 * f-lang.c (value_f90_subarray): Moved from eval.c.
1472 (skip_undetermined_arglist): Likewise.
1473 (calc_f77_array_dims): Likewise.
1474 (fortran_value_subarray): Likewise.
1475 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1476 (operator_length_f): Likewise.
1477 (print_subexp_f): Likewise.
1478 (dump_subexp_body_f): Likewise.
1479 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1480 declaration of this operation to here.
1481 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1482 support moved to operator_length_f.
1483 * parser-defs.h (dump_subexp_body_funcall): Declare.
1484 (print_subexp_funcall): Declare.
1485 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1486 fortran-operator.def.
1487
8c37706a
AB
14882020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1489
1490 * eval.c (fortran_value_subarray): New function, content is taken
1491 from...
1492 (evaluate_subexp_standard): ...here, in two places. Now arrays
1493 and strings both call the new function.
1494 (calc_f77_array_dims): Add header comment, handle strings.
1495
14f9473c
VC
14962020-09-18 Victor Collod <vcollod@nvidia.com>
1497
1498 PR gdb/26635
1499 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1500 (i386_analyze_prologue): Call i386_skip_endbr.
1501
b60cea74
TT
15022020-09-18 Tom Tromey <tromey@adacore.com>
1503
1504 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1505 (windows_nat_target::wait): Update.
1506 * target/wait.h (enum target_wait_flag): New. Use
1507 DEF_ENUM_FLAGS_TYPE.
1508 * target/target.h (target_wait): Change type of options.
1509 * target.h (target_options_to_string, default_target_wait):
1510 Update.
1511 (struct target_ops) <wait>: Change type of options.
1512 * target.c (target_wait, default_target_wait, do_option): Change
1513 type of "options".
1514 (target_options_to_string): Likewise.
1515 * target-delegates.c: Rebuild.
1516 * target-debug.h (target_debug_print_target_wait_flags): Rename
1517 from target_debug_print_options.
1518 * sol-thread.c (class sol_thread_target) <wait>: Update.
1519 (sol_thread_target::wait): Update.
1520 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1521 (rs6000_nat_target::wait): Update.
1522 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1523 Update.
1524 (remote_target::wait_ns, remote_target::wait_as): Change type of
1525 "options".
1526 (remote_target::wait): Update.
1527 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1528 (gdbsim_target::wait): Update.
1529 * record-full.c (class record_full_base_target) <wait>: Update.
1530 (record_full_wait_1): Change type of "options".
1531 (record_full_base_target::wait): Update.
1532 * record-btrace.c (class record_btrace_target) <wait>: Update.
1533 (record_btrace_target::wait): Update.
1534 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1535 Update.
1536 (ravenscar_thread_target::wait): Update.
1537 * procfs.c (class procfs_target) <wait>: Update.
1538 (procfs_target::wait): Update.
1539 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1540 * obsd-nat.c (obsd_nat_target::wait): Update.
1541 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1542 (nto_procfs_target::wait): Update.
1543 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1544 * nbsd-nat.c (nbsd_wait): Change type of "options".
1545 (nbsd_nat_target::wait): Update.
1546 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1547 (thread_db_target::wait): Update.
1548 * linux-nat.h (class linux_nat_target) <wait>: Update.
1549 * linux-nat.c (linux_nat_target::wait): Update.
1550 (linux_nat_wait_1): Update.
1551 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1552 "options".
1553 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1554 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1555 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1556 (go32_nat_target::wait): Update.
1557 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1558 * gnu-nat.c (gnu_nat_target::wait): Update.
1559 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1560 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1561 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1562 * darwin-nat.c (darwin_nat_target::wait): Update.
1563 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1564 (bsd_uthread_target::wait): Update.
1565 * aix-thread.c (class aix_thread_target) <wait>: Update.
1566 (aix_thread_target::wait): Update.
1567
0295dde6
AB
15682020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1569
1570 * compile/compile-object-run.c (create_copied_type_recursive): New
1571 function.
1572 (compile_object_run): Use new function.
1573
d3483b43
JT
15742020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1575
1576 * NEWS: Mention x86_64 Cygwin core file support.
1577
e7d612ad
JT
15782020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1579
1580 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1581 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1582
aff9d387
JT
15832020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1584
62a5151b
JT
1585 * windows-tdep.h: Add prototypes.
1586 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1587 (i386_windows_core_pid_to_str): Move and rename ...
1588 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1589 (windows_core_pid_to_str): ... and here.
1590 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1591
15922020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
1593 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1594 (amd64_windows_init_abi_common): ... and register.
1595
7d155da3
JT
15962020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1597
1598 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1599 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1600
e8ef12b9
PA
16012020-09-18 Pedro Alves <pedro@palves.net>
1602
1603 PR gdb/26631
1604 * thread.c (thread_find_command): Switch inferior before calling
1605 target methods.
1606
c1e1314d
TT
16072020-09-17 Tom Tromey <tromey@adacore.com>
1608
1609 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1610 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1611 (tdesc_arch_data_up): New typedef.
1612 (tdesc_use_registers, tdesc_data_alloc): Update.
1613 (tdesc_data_cleanup): Don't declare.
1614 * target-descriptions.c (tdesc_data_alloc): Return a
1615 tdesc_arch_data_up.
1616 (tdesc_arch_data_deleter::operator()): Rename from
1617 tdesc_data_cleanup. Change argument type.
1618 (tdesc_use_registers): Change early_data to an rvalue reference.
1619 (tdesc_use_registers): Don't use delete.
1620 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1621 * s390-tdep.c (s390_gdbarch_init): Update.
1622 * rx-tdep.c (rx_gdbarch_init): Update.
1623 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1624 * riscv-tdep.c (riscv_gdbarch_init): Update.
1625 * or1k-tdep.c (or1k_gdbarch_init): Update.
1626 * nios2-tdep.c (nios2_gdbarch_init): Update.
1627 * nds32-tdep.c (nds32_gdbarch_init): Update.
1628 * mips-tdep.c (mips_gdbarch_init): Update.
1629 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1630 * m68k-tdep.c (m68k_gdbarch_init): Update.
1631 * i386-tdep.c (i386_gdbarch_init): Update.
1632 * arm-tdep.c (arm_gdbarch_init): Update.
1633 * arc-tdep.c (arc_tdesc_init): Update.
1634 (arc_gdbarch_init): Update.
1635 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1636
0363df3d
HD
16372020-09-17 Hannes Domani <ssbssa@yahoo.de>
1638
1639 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1640 for WOW64 processes.
1641
280a9412
TT
16422020-09-17 Tom Tromey <tom@tromey.com>
1643
1644 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1645
6108fd18
TT
16462020-09-17 Tom Tromey <tom@tromey.com>
1647
1648 * value.c (preserve_values): Update.
1649 * python/py-type.c (save_objfile_types): Update.
1650 * guile/scm-type.c (save_objfile_types): Update.
1651 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1652 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1653 * compile/compile-object-run.c (compile_object_run): Update.
1654
fa9b1164
TT
16552020-09-17 Tom Tromey <tom@tromey.com>
1656
1657 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1658 Remove.
1659 <m_table>: Now htab_up.
1660 * typeprint.c (typedef_hash_table::recursively_update)
1661 (typedef_hash_table::add_template_parameters)
1662 (typedef_hash_table::typedef_hash_table): Update.
1663 (typedef_hash_table::~typedef_hash_table): Remove.
1664 (typedef_hash_table::typedef_hash_table)
1665 (typedef_hash_table::find_global_typedef)
1666 (typedef_hash_table::find_typedef): Update.
1667
eb53f105
TT
16682020-09-17 Tom Tromey <tom@tromey.com>
1669
1670 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1671
7a8a5d47
TT
16722020-09-17 Tom Tromey <tom@tromey.com>
1673
1674 * linespec.c (class decode_compound_collector)
1675 <~decode_compound_collector>: Remove.
1676 <m_unique_syms>: Now htab_up.
1677 (decode_compound_collector::operator ()): Update.
1678 (class symtab_collector) <~symtab_collector>: Remove.
1679 <m_symtab_table>: Now htab_up.
1680 (symtab_collector::operator ()): Update.
1681
99032cfc
TT
16822020-09-17 Tom Tromey <tom@tromey.com>
1683
1684 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1685 (filename_seen_cache::clear): Update.
1686 (~filename_seen_cache): Remove.
1687 (filename_seen_cache::seen): Update.
1688 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1689 htab_up.
1690 <~filename_seen_cache>: Remove.
1691 <traverse>: Update.
1692
32580f6d
TT
16932020-09-17 Tom Tromey <tom@tromey.com>
1694
1695 * completer.c (completion_tracker::discard_completions)
1696 (completion_tracker::~completion_tracker)
1697 (completion_tracker::maybe_add_completion)
1698 (completion_tracker::remove_completion)
1699 (completion_tracker::recompute_lowest_common_denominator)
1700 (completion_tracker::build_completion_result): Update.
1701 * completer.h (class completion_tracker) <have_completions>:
1702 Update.
1703 <m_entries_hash>: Now htab_up.
1704
c1fb9836
TT
17052020-09-17 Tom Tromey <tom@tromey.com>
1706
1707 * breakpoint.c (ambiguous_names_p): Use htab_up.
1708
88f07206
TT
17092020-09-17 Tom Tromey <tom@tromey.com>
1710
1711 * auto-load.c (struct auto_load_pspace_info)
1712 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1713 <loaded_script_files, loaded_script_texts>: Change type to
1714 htab_up.
1715 (~auto_load_pspace_info) Remove.
1716 (init_loaded_scripts_info, maybe_add_script_file)
1717 (maybe_add_script_text, auto_load_info_scripts): Update.
1718
9519b2ee
TT
17192020-09-17 Tom Tromey <tromey@adacore.com>
1720
1721 * c-exp.y (name_obstack): Now static.
1722
d2cd4113
CC
17232020-09-17 Chungyi Chi <demonic@csie.io>
1724
1725 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1726
b650a282
SM
17272020-09-16 Simon Marchi <simon.marchi@efficios.com>
1728
1729 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1730 (add_solib_catchpoint): Likewise.
1731 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1732 to bool.
1733 (add_solib_catchpoint): Change int parameter/variable to bool.
1734 (catch_load_or_unload): Likewise.
1735 (init_catchpoint): Likewise.
1736 (create_fork_vfork_event_catchpoint): Likewise.
1737 (catch_fork_command_1): Likewise.
1738 (catch_exec_command_1): Likewise.
1739
4d0bcfcf
SM
17402020-09-16 Simon Marchi <simon.marchi@efficios.com>
1741
1742 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1743 Change instance_flags to m_instance_flags.
1744
fe830662
TT
17452020-09-16 Tom Tromey <tromey@adacore.com>
1746
1747 PR gdb/26598:
1748 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1749
fe5ddfc3
JB
17502020-09-16 John Baldwin <jhb@FreeBSD.org>
1751
1752 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1753 PL_FLAG_EXEC.
1754 (fbsd_nat_target::insert_exec_catchpoint)
1755 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1756 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1757 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1758
e911c666
JB
17592020-09-16 John Baldwin <jhb@FreeBSD.org>
1760
1761 * configure.ac: Remove check for kinfo_getvmmap().
1762 * configure, config.in: Regenerate.
1763 * fbsd-nat.c (fbsd_read_mapping): Remove
1764 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1765 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1766 kinfo_get_vmmap() are always present.
1767
1f17d372
JB
17682020-09-16 John Baldwin <jhb@FreeBSD.org>
1769
1770 * fbsd-nat.c: Always include support for
1771 TARGET_OBJECT_SIGNAL_INFO.
1772
bcb1da7f
JB
17732020-09-16 John Baldwin <jhb@FreeBSD.org>
1774
1775 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1776 sysctl and remove procfs fallback.
1777
5515f729
JB
17782020-09-16 John Baldwin <jhb@FreeBSD.org>
1779
1780 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1781 * fbsd-nat.h: Likewise.
1782
da1df1db
TBA
17832020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1784
1785 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1786 argument.
1787
0e25e767
AB
17882020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1789
1790 * ada-lang.c (ada_language_data): Delete.
1791 (ada_language): Remove references to ada_language_data.
1792 * c-lang.c (c_language_data): Delete.
1793 (c_language): Remove references to c_language_data.
1794 (cplus_language_data): Delete.
1795 (cplus_language): Remove references to cplus_language_data.
1796 (asm_language_data): Delete.
1797 (asm_language): Remove references to asm_language_data.
1798 (minimal_language_data): Delete.
1799 (minimal_language): Remove references to minimal_language_data.
1800 * d-lang.c (d_language_data): Delete.
1801 (d_language): Remove references to d_language_data.
1802 * f-lang.c (f_language_data): Delete.
1803 (f_language): Remove references to f_language_data.
1804 * go-lang.c (go_language_data): Delete.
1805 (go_language): Remove references to go_language_data.
1806 * language.c (unknown_language_data): Delete.
1807 (unknown_language): Remove references to unknown_language_data.
1808 (auto_language_data): Delete.
1809 (auto_language): Remove references to auto_language_data.
1810 * language.h (language_data): Delete struct.
1811 (language_defn): No longer inherit from language_data.
1812 * m2-lang.c (m2_language_data): Delete.
1813 (m2_language): Remove references to m2_language_data.
1814 * objc-lang.c (objc_language_data): Delete.
1815 (objc_language): Remove references to objc_language_data.
1816 * opencl-lang.c (opencl_language_data): Delete.
1817 (opencl_language): Remove references to opencl_language_data.
1818 * p-lang.c (pascal_language_data): Delete.
1819 (pascal_language): Remove references to pascal_language_data.
1820 * rust-lang.c (rust_language_data): Delete.
1821 (rust_language): Remove references to rust_language_data.
1822
b7c6e27d
AB
18232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1824
1825 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1826 initializer.
1827 (ada_language::opcode_print_table): New member function.
1828 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1829 (c_language::opcode_print_table): New member function.
1830 (cplus_language_data): Remove la_op_print_tab initializer.
1831 (cplus_language::opcode_print_table): New member function.
1832 (asm_language_data): Remove la_op_print_tab initializer.
1833 (asm_language::opcode_print_table): New member function.
1834 (minimal_language_data): Remove la_op_print_tab initializer.
1835 (minimal_language::opcode_print_table): New member function.
1836 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1837 (d_language::opcode_print_table): New member function.
1838 * expprint.c (print_subexp_standard): Update call to
1839 opcode_print_table.
1840 (op_string): Likewise.
1841 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1842 (f_language::opcode_print_table): New member function.
1843 * go-lang.c (go_language_data): Remove la_op_print_tab
1844 initializer.
1845 (go_language::opcode_print_table): New member function.
1846 * language.c (unknown_language_data): Remove la_op_print_tab
1847 initializer.
1848 (unknown_language::opcode_print_table): New member function.
1849 (auto_language_data): Remove la_op_print_tab initializer.
1850 (auto_language::opcode_print_table): New member function.
1851 * language.h (language_data): Remove la_op_print_tab field.
1852 (language_defn::opcode_print_table): Declare new member function.
1853 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1854 initializer.
1855 (m2_language::opcode_print_table): New member function.
1856 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1857 initializer.
1858 (objc_language::opcode_print_table): New member function.
1859 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1860 initializer.
1861 (opencl_language::opcode_print_table): New member function.
1862 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1863 initializer.
1864 (pascal_language::opcode_print_table): New member function.
1865 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1866 initializer.
1867 (rust_language::opcode_print_table): New member function.
1868
5aba6ebe
AB
18692020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1870
1871 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1872 (ada_language::expression_ops): New member function.
1873 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1874 (c_language::expression_ops): New member function.
1875 (cplus_language_data): Remove la_exp_desc initializer.
1876 (cplus_language::expression_ops): New member function.
1877 (asm_language_data): Remove la_exp_desc initializer.
1878 (asm_language::expression_ops): New member function.
1879 (minimal_language_data): Remove la_exp_desc initializer.
1880 (minimal_language::expression_ops): New member function.
1881 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1882 (d_language::expression_ops): New member function.
1883 * eval.c (evaluate_subexp): Update call to expression_ops.
1884 * expprint.c (print_subexp): Likewise.
1885 (op_name): Likewise.
1886 (dump_subexp_body): Likewise.
1887 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1888 (f_language::expression_ops): New member function.
1889 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1890 (go_language::expression_ops): New member function.
1891 * language.c (language_defn::expression_ops): New function.
1892 (unknown_language_data): Remove la_exp_desc initializer.
1893 (auto_language_data): Likewise.
1894 * language.h (language_data): Remove la_exp_desc field.
1895 (language_defn::expression_ops): Declare new member function.
1896 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1897 (m2_language::expression_ops): New member function.
1898 * objc-lang.c (objc_language_data): Remove la_exp_desc
1899 initializer.
1900 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1901 initializer.
1902 (opencl_language::expression_ops): New member function.
1903 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1904 * parse.c (operator_length): Update call to expression_ops.
1905 (exp_iterate): Likewise.
1906 * rust-lang.c (rust_language_data): Remove la_exp_desc
1907 initializer.
1908 (ruse_language::expression_ops): New member function.
1909
b63a3f3f
AB
19102020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1911
1912 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1913 initializer.
1914 (ada_language::varobj_ops): New member function.
1915 * c-lang.c (c_language_data): Remove la_varobj_ops
1916 initializer.
1917 (cplus_language_data): Likewise.
1918 (cplus_language::varobj_ops): New member function.
1919 (asm_language_data): Remove la_varobj_ops initializer.
1920 (minimal_language_data): Likewise.
1921 * d-lang.c (d_language_data): Likewise.
1922 * f-lang.c (f_language_data): Likewise.
1923 * go-lang.c (go_language_data): Likewise.
1924 * language.c (language_defn::varobj_ops): New function.
1925 (unknown_language_data): Remove la_varobj_ops
1926 initializer.
1927 (auto_language_data): Likewise.
1928 * language.h (language_data): Remove la_varobj_ops field.
1929 (language_defn::varobj_ops): Declare new member function.
1930 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1931 * objc-lang.c (objc_language_data): Likewise.
1932 * opencl-lang.c (opencl_language_data): Likewise.
1933 * p-lang.c (pascal_language_data): Likewise.
1934 * rust-lang.c (rust_language_data): Likewise.
1935 * varobj.c (varobj_create): Update call to varobj_ops.
1936 * varobj.h (default_varobj_ops): Delete define.
1937
1ac14a04
AB
19382020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1939
1940 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1941 initializer.
1942 * c-lang.c (c_language_data): Likewise.
1943 (c_language::macro_expansion): New member function.
1944 (cplus_language_data): Likewise.
1945 (cplus_language::macro_expansion): New member function.
1946 (asm_language_data): Likewise.
1947 (asm_language::macro_expansion): New member function.
1948 (minimal_language_data): Likewise.
1949 (minimal_language::macro_expansion): New member function.
1950 * d-lang.c (d_language_data): Remove la_macro_expansion
1951 initializer.
1952 * f-lang.c (f_language_data): Likewise.
1953 * go-lang.c (go_language_data): Likewise.
1954 * language.c (unknown_language_data): Likewise.
1955 (auto_language_data): Likewise.
1956 * language.h (language_data): Remove la_macro_expansion field.
1957 (language_defn::macro_expansion): New member function.
1958 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1959 initializer.
1960 * objc-lang.c (objc_language_data): Likewise.
1961 (objc_language::macro_expansion): New member function.
1962 * opencl-lang.c (opencl_language_data): Likewise.
1963 (opencl_language::macro_expansion): New member function.
1964 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1965 initializer.
1966 * rust-lang.c (rust_language_data): Likewise.
1967 * symtab.c (default_collect_symbol_completion_matches_break_on):
1968 Update call to macro_expansion.
1969
3a3440fb
AB
19702020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1971
1972 * ada-lang.c (ada_language_data): Remove la_array_ordering
1973 initializer.
1974 * c-lang.c (c_language_data): Likewise.
1975 (cplus_language_data): Likewise.
1976 (asm_language_data): Likewise.
1977 (minimal_language_data): Likewise.
1978 * d-lang.c (d_language_data): Likewise.
1979 * dwarf2/read.c (read_array_order): Update for call to
1980 array_ordering.
1981 * f-lang.c (f_language_data): Remove la_array_ordering
1982 initializer.
1983 (f_language::array_ordering): New member function.
1984 * go-lang.c (go_language_data): Remove la_array_ordering
1985 initializer.
1986 * language.c (unknown_language_data): Likewise.
1987 (auto_language_data): Likewise.
1988 * language.h (language_data): Delete la_array_ordering field.
1989 (language_defn::array_ordering): New member function.
1990 * m2-lang.c (m2_language_data): Remove la_array_ordering
1991 initializer.
1992 * objc-lang.c (objc_language_data): Likewise.
1993 * opencl-lang.c (opencl_language_data): Likewise.
1994 * p-lang.c (pascal_language_data): Likewise.
1995 * rust-lang.c (rust_language_data): Likewise.
1996
0d201fa4
AB
19972020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1998
1999 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2000 initializer.
2001 * c-lang.c (c_language_data): Likewise.
2002 (cplus_language_data): Likewise.
2003 (asm_language_data): Likewise.
2004 (minimal_language_data): Likewise.
2005 * d-lang.c (d_language_data): Likewise.
2006 * f-lang.c (f_language_data): Likewise.
2007 (f_language::case_sensitivity): New member function.
2008 * go-lang.c (go_language_data): Remove la_case_sensitivity
2009 initializer.
2010 * language.c (enum case_mode): Moved here from language.h.
2011 (case_mode): Make static.
2012 (show_case_command): Update for case_sensitivity being a method.
2013 (set_case_command): Likewise.
2014 (set_range_case): Likewise.
2015 (unknown_language_data): Remove la_case_sensitivity initializer.
2016 (auto_language_data): Likewise.
2017 * language.h (case_mode): Delete, move enum declaration to
2018 language.c.
2019 (language_data): Delete la_case_sensitivity field.
2020 (language_defn::case_sensitivity): New member function.
2021 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2022 initializer.
2023 * objc-lang.c (objc_language_data): Likewise.
2024 * opencl-lang.c (opencl_language_data): Likewise.
2025 * p-lang.c (pascal_language_data): Likewise.
2026 * rust-lang.c (rust_language_data): Likewise.
2027
efdf6a73
AB
20282020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2029
2030 * ada-lang.c (ada_language_data): Remove la_range_check
2031 initializer.
2032 * c-lang.c (c_language_data): Likewise.
2033 (cplus_language_data): Likewise.
2034 (asm_language_data): Likewise.
2035 (minimal_language_data): Likewise.
2036 * d-lang.c (d_language_data): Likewise.
2037 * f-lang.c (f_language_data): Likewise.
2038 (f_language::range_checking_on_by_default): New member function.
2039 * go-lang.c (go_language_data): Remove la_range_check initializer.
2040 * language.c (enum range_mode): Moved here from language.h.
2041 (range_mode): Made static.
2042 (show_range_command): Update to use
2043 range_checking_on_by_default.
2044 (set_range_command): Likewise.
2045 (set_range_case): Likewise.
2046 (unknown_language_data): Remove la_range_check initializer.
2047 (auto_language_data): Likewise.
2048 * language.h (range_mode): Delete. Enum definition moved to
2049 language.c.
2050 (language_data): Remove la_range_check field.
2051 (language_defn::range_checking_on_by_default): New member
2052 function.
2053 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2054 (m2_language::range_checking_on_by_default): New member function.
2055 * objc-lang.c (objc_language_data): Remove la_range_check
2056 initializer.
2057 * opencl-lang.c (opencl_language_data): Likewise.
2058 * p-lang.c (pascal_language_data): Likewise.
2059 (pascal_language::range_checking_on_by_default): New member
2060 function.
2061 * rust-lang.c (rust_language_data): Remove la_range_check
2062 initializer.
2063 (rust_language::range_checking_on_by_default): New member
2064 function.
2065
bf92aec5
AB
20662020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2067
2068 * dwarf2/read.c (dwarf2_physname): Remove special case for
2069 language_go.
2070 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2071 member function.
2072
d3355e4d
AB
20732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2074
2075 * ada-lang.c (ada_language_data): Remove
2076 la_store_sym_names_in_linkage_form_p initializer.
2077 (ada_language::store_sym_names_in_linkage_form_p): New member
2078 function.
2079 * c-lang.c (c_language_data): Remove
2080 la_store_sym_names_in_linkage_form_p initializer.
2081 (c_language::store_sym_names_in_linkage_form_p): New member
2082 function.
2083 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2084 initializer.
2085 (asm_language_data): Likewise.
2086 (asm_language::store_sym_names_in_linkage_form_p): New member
2087 function.
2088 (minimal_language_data): Remove
2089 la_store_sym_names_in_linkage_form_p initializer.
2090 (minimal_language::store_sym_names_in_linkage_form_p): New member
2091 function.
2092 * d-lang.c (d_language_data): Remove
2093 la_store_sym_names_in_linkage_form_p initializer.
2094 * dwarf2/read.c (dwarf2_physname): Update call to
2095 store_sym_names_in_linkage_form_p.
2096 * f-lang.c (f_language_data): Remove
2097 la_store_sym_names_in_linkage_form_p initializer.
2098 * go-lang.c (go_language_data): Remove
2099 la_store_sym_names_in_linkage_form_p initializer.
2100 * language.c (unknown_language_data): Remove
2101 la_store_sym_names_in_linkage_form_p initializer.
2102 (unknown_language::store_sym_names_in_linkage_form_p): New member
2103 function.
2104 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2105 initializer.
2106 (auto_language::store_sym_names_in_linkage_form_p): New member
2107 function.
2108 * language.h (language_data): Remove
2109 la_store_sym_names_in_linkage_form_p member variable.
2110 (language_defn::store_sym_names_in_linkage_form_p): New member
2111 function.
2112 * m2-lang.c (m2_language_data): Remove
2113 la_store_sym_names_in_linkage_form_p initializer.
2114 * objc-lang.c (objc_language_data): Likewise.
2115 * opencl-lang.c (opencl_language_data): Likewise.
2116 * p-lang.c (pascal_language_data): Likewise.
2117 * rust-lang.c (rust_language_data): Likewise.
2118
22c12a6c
AB
21192020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2120
2121 * ada-lang.c (ada_language_data): Remove string_lower_bound
2122 initializer.
2123 * c-lang.c (c_language_data): Likewise.
2124 (cplus_language_data): Likewise.
2125 (asm_language_data): Likewise.
2126 (minimal_language_data): Likewise.
2127 * d-lang.c (d_language_data): Likewise.
2128 * f-lang.c (f_language_data): Likewise.
2129 * go-lang.c (go_language_data): Likewise.
2130 * language.c (unknown_language_data): Likewise.
2131 (auto_language_data): Likewise.
2132 * language.h (language_data): Remove string_lower_bound field.
2133 (language_defn::string_lower_bound): New member function.
2134 * m2-lang.c (m2_language_data): Remove string_lower_bound
2135 initializer.
2136 (m2_language::string_lower_bound): New member function.
2137 * objc-lang.c (objc_language_data): Remove string_lower_bound
2138 initializer.
2139 * opencl-lang.c (opencl_language_data): Likewise.
2140 * p-lang.c (pascal_language_data): Likewise.
2141 * rust-lang.c (rust_language_data): Likewise.
2142 * valops.c (value_cstring): Update call to string_lower_bound.
2143 (value_string): Likewise.
2144 * value.c (allocate_repeated_value): Likewise.
2145
1c236ddd
AB
21462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2147
2148 * valops.c (value_repeat): Fix incorrect argument name in comment.
2149
67bd3fd5
AB
21502020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2151
2152 * ada-lang.c (ada_language_data): Remove c_style_arrays
2153 initializer.
2154 (ada_language::c_style_arrays_p): New member fuction.
2155 * c-lang.c (c_language_data): Remove c_style_arrays
2156 initializer.
2157 (cplus_language_data): Likewise.
2158 (asm_language_data): Likewise.
2159 (minimal_language_data): Likewise.
2160 * d-lang.c (d_language_data): Likewise.
2161 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2162 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2163 (f_language::c_style_arrays_p): New member function.
2164 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2165 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2166 * language.c (unknown_language_data): Remove c_style_arrays
2167 initializer.
2168 (auto_language_data): Likewise.
2169 * language.h (language_data): Remove c_style_arrays field.
2170 (language_defn::c_style_arrays_p): New member function.
2171 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2172 (m2_language::c_style_arrays_p): New member function.
2173 * objc-lang.c (objc_language_data): Remove c_style_arrays
2174 initializer.
2175 * opencl-lang.c (opencl_language_data): Likewise.
2176 * p-lang.c (pascal_language_data): Likewise.
2177 * rust-lang.c (rust_language_data): Likewise.
2178 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2179 and update local variable to a bool.
2180 * valops.c (value_cast): Update call to c_style_arrays_p.
2181 (value_array): Likewise.
2182 * value.c (coerce_array): Likewise.
2183
85967615
AB
21842020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2185
2186 * ada-lang.c (ada_language_data): Remove la_language initializer.
2187 * c-lang.c (c_language_data): Likewise.
2188 (cplus_language_data): Likewise.
2189 (asm_language_data): Likewise.
2190 (minimal_language_data): Likewise.
2191 * d-lang.c (d_language_data): Likewise.
2192 * f-lang.c (f_language_data): Likewise.
2193 * go-lang.c (go_language_data): Likewise.
2194 * language.c (unknown_language_data): Likewise.
2195 (auto_language_data): Likewise.
2196 * language.h (language_data): Remove la_language field.
2197 (language_defn::language_defn): Initialise la_language field.
2198 (language_defn::la_language): New member variable.
2199 * m2-lang.c (m2_language_data): Remove la_language field.
2200 * objc-lang.c (objc_language_data): Likewise.
2201 * opencl-lang.c (opencl_language_data): Likewise.
2202 * p-lang.c (pascal_language_data): Likewise.
2203 * rust-lang.c (rust_language_data): Likewise.
2204
e171d6f1
AB
22052020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2206
2207 * ada-lang.c (ada_extensions): Delete, moved into
2208 ada_language::filename_extensions.
2209 (ada_language_data): Remove la_filename_extensions initializer.
2210 (ada_language::filename_extensions): New member function.
2211 * c-lang.c (c_extensions): Delete, moved into
2212 c_language::filename_extensions.
2213 (c_language_data): Remove la_filename_extensions initializer.
2214 (c_language::filename_extensions): New member function.
2215 (cplus_extensions): Delete, moved into
2216 cplus_language::filename_extensions.
2217 (cplus_language_data): Remove la_filename_extensions initializer.
2218 (cplus_language::filename_extensions): New member function.
2219 (asm_extensions): Delete, moved into
2220 asm_language::filename_extensions.
2221 (asm_language_data): Remove la_filename_extensions initializer.
2222 (asm_language::filename_extensions): New member function.
2223 (minimal_language_data): Remove la_filename_extensions
2224 initializer.
2225 * d-lang.c (d_extensions): Delete, moved into
2226 d_language::filename_extensions.
2227 (d_language_data): Remove la_filename_extensions initializer.
2228 (d_language::filename_extensions): New member function.
2229 * f-lang.c (f_extensions): Delete, moved into
2230 f_language::filename_extensions.
2231 (f_language_data): Remove la_filename_extensions initializer.
2232 (f_language::filename_extensions): New member function.
2233 * go-lang.c (go_language_data): Remove la_filename_extensions
2234 initializer.
2235 * language.c (add_set_language_command): Update now that
2236 filename_extensions returns a vector.
2237 (unknown_language_data): Remove la_filename_extensions
2238 initializer.
2239 (auto_language_data): Likewise.
2240 * language.h (language_data): Remove la_filename_extensions field.
2241 (language_defn::filename_extensions): New member function.
2242 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2243 initializer.
2244 * objc-lang.c (objc_extensions): Delete, moved into
2245 objc_language::filename_extensions.
2246 (objc_language_data): Remove la_filename_extensions initializer.
2247 (objc_language::filename_extensions): New member function.
2248 * opencl-lang.c (opencl_language_data): Remove
2249 la_filename_extensions initializer.
2250 * p-lang.c (pascal_extensions): Delete, moved into
2251 pascal_language::filename_extensions.
2252 (pascal_language_data): Remove la_filename_extensions initializer.
2253 (pascal_language::filename_extensions): New member function.
2254 * rust-lang.c (rust_extensions): Delete, moved into
2255 rust_language::filename_extensions.
2256 (rust_language_data): Remove la_filename_extensions initializer.
2257 (rust_language::filename_extensions): New member function.
2258 * symfile.c (add_filename_language): Add new assert.
2259
6f7664a9
AB
22602020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2261
2262 * ada-lang.c (ada_language_data): Remove la_name and
2263 la_natural_name initializers.
2264 (ada_language::name): New member function.
2265 (ada_language::natural_name): New member function.
2266 * c-lang.c (c_language_data): Remove la_name and
2267 la_natural_name initializers.
2268 (c_language::name): New member function.
2269 (c_language::natural_name): New member function.
2270 (cplus_language_data): Remove la_name and
2271 la_natural_name initializers.
2272 (cplus_language::name): New member function.
2273 (cplus_language::natural_name): New member function.
2274 (asm_language_data): Remove la_name and
2275 la_natural_name initializers.
2276 (asm_language::name): New member function.
2277 (asm_language::natural_name): New member function.
2278 (minimal_language_data): Remove la_name and
2279 la_natural_name initializers.
2280 (minimal_language::name): New member function.
2281 (minimal_language::natural_name): New member function.
2282 * compile/compile.c (compile_to_object): Update call to
2283 lanugage_defn::name.
2284 * d-lang.c (d_language_data): Remove la_name and
2285 la_natural_name initializers.
2286 (d_language::name): New member function.
2287 (d_language::natural_name): New member function.
2288 * expprint.c (print_subexp_standard): Update call to
2289 language_defn::name.
2290 (dump_raw_expression): Likewise
2291 (dump_prefix_expression): Likewise.
2292 * f-lang.c (f_language_data): Remove la_name and
2293 la_natural_name initializers.
2294 (f_language::name): New member function.
2295 (f_language::natural_name): New member function.
2296 * go-lang.c (go_language_data): Remove la_name and
2297 la_natural_name initializers.
2298 (go_language::name): New member function.
2299 (go_language::natural_name): New member function.
2300 * language.c (show_language_command): Update call to
2301 language_defn::name.
2302 (set_language_command): Likewise.
2303 (language_enum): Likewise.
2304 (language_str): Likewise.
2305 (add_set_language_command): Likewise, use
2306 language_defn::natural_name in the doc string.
2307 (unknown_language_data): Remove la_name and
2308 la_natural_name initializers.
2309 (unknown_language::name): New member function.
2310 (unknown_language::natural_name): New member function.
2311 (auto_language_data): Remove la_name and
2312 la_natural_name initializers.
2313 (auto_language::name): New member function.
2314 (auto_language::natural_name): New member function.
2315 (language_lookup_primitive_type_as_symbol): Update call to
2316 language_defn::name.
2317 * language.h (language_data): Remove la_name and la_natural_name
2318 member variables.
2319 (language_defn::name): New member function.
2320 (language_defn::natural_name): New member function.
2321 * m2-lang.c (m2_language_data): Remove la_name and
2322 la_natural_name initializers.
2323 (m2_language::name): New member function.
2324 (m2_language::natural_name): New member function.
2325 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2326 language_defn::natural_name.
2327 * objc-lang.c (objc_language_data): Remove la_name and
2328 la_natural_name initializers.
2329 (objc_language::name): New member function.
2330 (objc_language::natural_name): New member function.
2331 * opencl-lang.c (opencl_language_data): Remove la_name and
2332 la_natural_name initializers.
2333 (opencl_language::name): New member function.
2334 (opencl_language::natural_name): New member function.
2335 * p-lang.c (pascal_language_data): Remove la_name and
2336 la_natural_name initializers.
2337 (pascal_language::name): New member function.
2338 (pascal_language::natural_name): New member function.
2339 * rust-lang.c (rust_language_data): Remove la_name and
2340 la_natural_name initializers.
2341 (rust_language::name): New member function.
2342 (rust_language::natural_name): New member function.
2343 * symtab.c (lookup_language_this): Update call to
2344 language_defn::name.
2345
5bae7c4e
AB
23462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2347
2348 * ada-lang.c (ada_language_data): Remove la_name_of_this
2349 initializer.
2350 * ax-gdb.c (gen_expr): Update call to name_of_this.
2351 * c-exp.y (classify_name): Likewise.
2352 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2353 (cplus_language_data): Likewise.
2354 (cplus_language::name_of_this): New member function.
2355 (asm_language_data): Remove la_name_of_this initializer.
2356 (minimal_language_data): Likewise.
2357 * d-lang.c (d_language_data): Likewise.
2358 (d_language::name_of_this): New member function.
2359 * expprint.c (print_subexp_standard): Update call to name_of_this.
2360 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2361 * go-lang.c (go_language_data): Likewise.
2362 * language.c (unknown_language_data): Likewise.
2363 (unknown_language::name_of_this): New member function.
2364 (auto_language_data): Remove la_name_of_this initializer.
2365 (auto_language::name_of_this): New member function.
2366 * language.h (language_data): Delete la_name_of_this member
2367 variable.
2368 (language_defn::name_of_this): New member function.
2369 * m2-lang.c (m2_language_data): Remove la_name_of_this
2370 initializer.
2371 * objc-lang.c (objc_language_data): Likewise.
2372 (objc_language::name_of_this): New member function.
2373 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2374 initializer.
2375 * p-lang.c (pascal_language_data): Likewise.
2376 (pascal_language::name_of_this): New member function.
2377 * rust-lang.c (rust_language_data): Remove la_name_of_this
2378 initializer.
2379 * symtab.c (lookup_language_this): Update call to name_of_this.
2380 (lookup_symbol_aux): Likewise.
2381 * valops.c (value_of_this): Likewise.
2382
22e3f3ed
AB
23832020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2384
2385 * ada-lang.c (ada_language_data): Remove
2386 la_struct_too_deep_ellipsis initializer.
2387 (ada_language::struct_too_deep_ellipsis): New member function.
2388 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2389 initializer.
2390 (cplus_language_data): Likewise.
2391 (asm_language_data): Likewise.
2392 (minimal_language_data): Likewise.
2393 * cp-valprint.c (cp_print_value): Update call to
2394 struct_too_deep_ellipsis.
2395 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2396 initializer.
2397 * f-lang.c (f_language_data): Likewise.
2398 (f_language::struct_too_deep_ellipsis): New member function.
2399 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2400 initializer.
2401 * language.c (unknown_language_data): Likewise.
2402 (auto_language_data): Likewise.
2403 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2404 member variable.
2405 (language_defn::struct_too_deep_ellipsis): New member function.
2406 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2407 initializer.Q
2408 * objc-lang.c (objc_language_data): Likewise.
2409 * opencl-lang.c (opencl_language_data): Likewise.
2410 * p-lang.c (pascal_language_data): Likewise.
2411 * rust-lang.c (rust_language_data): Likewise.
2412 * valprint.c (val_print_check_max_depth): Update call to
2413 struct_too_deep_ellipsis.
2414
ed29e1c7
FW
24152020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2416
2417 * MAINTAINERS (Write After Approval): Add myself.
2418
12d8f940
TT
24192020-09-15 Tom Tromey <tom@tromey.com>
2420
2421 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2422 Remove.
2423
6b5a7bc7
TT
24242020-09-15 Tom Tromey <tom@tromey.com>
2425
2426 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2427 and TYPE_CODE_METHODPTR cases.
2428 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2429 (c_value_print_inner): Update.
2430 * valprint.c (generic_value_print_memberptr): New function, from
2431 c_value_print_memberptr.
2432 (generic_value_print): Use it. Call cplus_print_method_ptr.
2433
47f0e2ff
TT
24342020-09-15 Tom Tromey <tromey@adacore.com>
2435
2436 * python/python-internal.h (PyInt_FromLong): Remove define.
2437 * python/py-value.c (convert_value_from_python): Use
2438 gdb_py_object_from_longest.
2439 * python/py-type.c (typy_get_code): Use
2440 gdb_py_object_from_longest.
2441 * python/py-symtab.c (salpy_get_line): Use
2442 gdb_py_object_from_longest.
2443 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2444 gdb_py_object_from_longest.
2445 * python/py-record.c (recpy_gap_reason_code): Use
2446 gdb_py_object_from_longest.
2447 * python/py-record-btrace.c (recpy_bt_insn_size)
2448 (recpy_bt_func_level, btpy_list_count): Use
2449 gdb_py_object_from_longest.
2450 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2451 gdb_py_object_from_longest. Fix error handling.
2452 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2453 gdb_py_object_from_longest.
2454 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2455 gdb_py_object_from_longest.
2456 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2457 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2458 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2459
512116ce
TT
24602020-09-15 Tom Tromey <tromey@adacore.com>
2461
2462 * python/python.c (gdbpy_parameter_value): Use
2463 gdb_py_object_from_ulongest.
2464
4ab1029c
TT
24652020-09-15 Tom Tromey <tromey@adacore.com>
2466
2467 * python/py-infevents.c (create_register_changed_event_object):
2468 Use gdb_py_object_from_longest.
2469 * python/py-exitedevent.c (create_exited_event_object): Use
2470 gdb_py_object_from_longest.
2471
062534d4
TT
24722020-09-15 Tom Tromey <tromey@adacore.com>
2473
2474 * python/python.c (gdbpy_parameter_value): Use
2475 gdb_py_object_from_longest.
2476 * python/py-type.c (convert_field, typy_range): Use
2477 gdb_py_object_from_longest.
2478 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2479 gdb_py_object_from_longest.
2480 * python/py-lazy-string.c (stpy_get_length): Use
2481 gdb_py_object_from_longest.
2482 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2483 gdb_py_object_from_longest.
2484 * python/py-infevents.c (create_memory_changed_event_object): Use
2485 gdb_py_object_from_longest.
2486 * python/py-inferior.c (infpy_get_num): Use
2487 gdb_py_object_from_longest.
2488 (infpy_get_pid): Likewise.
2489
d1cab987
TT
24902020-09-15 Tom Tromey <tromey@adacore.com>
2491
2492 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2493 defines.
2494 * python/py-value.c (valpy_long): Use
2495 gdb_py_object_from_ulongest.
2496 * python/py-symtab.c (salpy_get_pc): Use
2497 gdb_py_object_from_ulongest.
2498 (salpy_get_last): Likewise.
2499 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2500 gdb_py_object_from_ulongest.
2501 * python/py-lazy-string.c (stpy_get_address): Use
2502 gdb_py_object_from_ulongest.
2503 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2504 * python/py-arch.c (archpy_disassemble): Use
2505 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2506 error handling.
2507
4bde49dc
TT
25082020-09-15 Tom Tromey <tromey@adacore.com>
2509
2510 * python/python-internal.h (gdb_py_long_from_longest): Remove
2511 defines.
2512 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2513 * python/py-type.c (convert_field, typy_get_sizeof): Use
2514 gdb_py_object_from_longest.
2515 * python/py-record-btrace.c (btpy_list_index): Use
2516 gdb_py_object_from_longest.
2517
37431074
TT
25182020-09-15 Tom Tromey <tromey@adacore.com>
2519
2520 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2521 * python/py-record.c (recpy_element_number): Use
2522 gdb_py_object_from_longest.
2523 (recpy_gap_number): Likewise.
2524
cbe25684
TT
25252020-09-15 Tom Tromey <tromey@adacore.com>
2526
2527 * top.c (ui::ui): Update.
2528 (highest_ui_num): Remove.
2529 * top.h (struct ui) <num>: Remove.
2530
db92ac45
TT
25312020-09-15 Tom Tromey <tromey@adacore.com>
2532
2533 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2534 * ui-style.c (ansi_regex_text): Now array.
2535 * rust-exp.y (number_regex_text): Now array.
2536 * linespec.c (linespec_quote_characters): Now array.
2537 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2538 Now arrays.
2539
d2b31b67
SM
25402020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2541
2542 * debuginfod-support.c (debuginfod_client_deleter): New.
2543 (debuginfod_client_up): New.
2544 (debuginfod_init): Return debuginfod_client_up.
2545 (debuginfod_source_query): Adjust.
2546 (debuginfod_debuginfo_query): Adjust.
2547
3246bd8e
SM
25482020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2549
2550 * debuginfod-support.c (debuginfod_source_query): Use
2551 make_unique_xstrdup.
2552
10242f36
SM
25532020-09-14 Simon Marchi <simon.marchi@efficios.com>
2554
2555 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2556 with `type::instance_flags`.
2557
e1044e6a
MM
25582020-09-14 Michael Mullin <masmullin@gmail.com>
2559
2560 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2561 Remove baton parameter.
2562
04902b09
PA
25632020-09-14 Pedro Alves <pedro@palves.net>
2564
2565 * Makefile.in (SELFTESTS_SRCS): Add
2566 unittests/enum-flags-selftests.c.
2567 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2568 btrace_function_flags instead of enum btrace_function_flag.
2569 * compile/compile-c-types.c (convert_qualified): Use
2570 enum_flags::raw.
2571 * compile/compile-cplus-symbols.c (convert_one_symbol)
2572 (convert_symbol_bmsym):
2573 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2574 (compile_cplus_convert_struct_or_union_methods)
2575 (compile_cplus_instance::convert_qualified_base):
2576 * go-exp.y (parse_string_or_char): Add cast to int.
2577 * unittests/enum-flags-selftests.c: New file.
2578 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2579 type to btrace_thread_flags from btrace_thread_flag.
2580 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2581 local's type to btrace_thread_flags from btrace_thread_flag. Add
2582 cast in DEBUG call.
2583
69896a2c
PA
25842020-09-14 Pedro Alves <pedro@palves.net>
2585
2586 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2587 * gdbtypes.c (address_space_name_to_int): Rename to ...
2588 (address_space_name_to_type_instance_flags): ... this.
2589 (address_space_int_to_name): Rename to ...
2590 (address_space_type_instance_flags_to_name): ... this.
2591 * gdbtypes.h (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 * type-stack.c (type_stack::insert): Adjust to rename.
2596 * type-stack.h (type_stack::insert): Likewise.
2597
314ad88d
PA
25982020-09-14 Pedro Alves <pedro@palves.net>
2599 Andrew Burgess <andrew.burgess@embecosm.com>
2600
2601 * avr-tdep.c (avr_address_class_type_flags): Return
2602 type_instance_flags.
2603 (avr_address_class_type_flags_to_name): Take a
2604 type_instance_flags.
2605 (avr_address_class_name_to_type_flags): Return bool and take a
2606 type_instance_flags.
2607 * d-lang.c (build_d_types): Use type::set_instance_flags.
2608 * ft32-tdep.c (ft32_address_class_type_flags): Return
2609 type_instance_flags.
2610 (ft32_address_class_type_flags_to_name): Take a
2611 type_instance_flags.
2612 (ft32_address_class_name_to_type_flags): Return bool and take a
2613 type_instance_flags.
2614 (ft32_gdbarch_init): Use type::set_instance_flags.
2615 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2616 * gdbarch.h, gdbarch.c: Regenerate.
2617 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2618 (address_class_name_to_type_flags): Use type_instance_flags and
2619 bool.
2620 * gdbtypes.c (address_space_name_to_int)
2621 (address_space_int_to_name, make_qualified_type): Use
2622 type_instance_flags.
2623 (make_qualified_type): Use type_instance_flags and
2624 type::set_instance_flags.
2625 (make_type_with_address_space, make_cv_type, make_vector_type)
2626 (check_typedef): Use type_instance_flags.
2627 (recursive_dump_type): Cast type_instance_flags to unsigned for
2628 printing.
2629 (copy_type_recursive): Use type::set_instance_flags.
2630 (gdbtypes_post_init): Use type::set_instance_flags.
2631 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2632 <m_instance_flags>: ... this.
2633 <instance_flags, set_instance_flags>: New methods.
2634 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2635 (SET_TYPE_INSTANCE_FLAGS): New.
2636 (address_space_name_to_int, address_space_int_to_name)
2637 (make_type_with_address_space): Pass flags using
2638 type_instance_flags instead of int.
2639 * stabsread.c (cleanup_undefined_types_noname): Use
2640 type::set_instance_flags.
2641 * s390-tdep.c (s390_address_class_type_flags): Return
2642 type_instance_flags.
2643 (s390_address_class_type_flags_to_name): Take a
2644 type_instance_flags.
2645 (s390_address_class_name_to_type_flags): Return bool and take a
2646 type_instance_flags.
2647 * type-stack.c (type_stack::follow_types): Use
2648 type_instance_flags.
2649 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2650
27087b7f
TT
26512020-09-14 Tom Tromey <tromey@adacore.com>
2652
2653 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2654 * x86-tdep.c (x86_is_thunk_register_name)
2655 (x86_in_indirect_branch_thunk): Update.
2656 * sparc64-tdep.c (sparc64_fpu_register_names)
2657 (sparc64_cp0_register_names, sparc64_register_names)
2658 (sparc64_pseudo_register_names): Now const.
2659 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2660 cp0_registers_num>: Now const.
2661 * sparc-tdep.c (sparc_core_register_names)
2662 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2663 (sparc32_pseudo_register_names): Now const.
2664 (validate_tdesc_registers): Update.
2665 * rust-lang.c (rust_extensions): Now const.
2666 * p-lang.c (p_extensions): Now const.
2667 * objc-lang.c (objc_extensions): Now const.
2668 * nto-tdep.c (nto_thread_state_str): Now const.
2669 * moxie-tdep.c (moxie_register_names): Now const.
2670 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2671 Now const.
2672 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2673 (mips_linux_reg_names): Now const.
2674 (mips_gdbarch_init): Update.
2675 * microblaze-tdep.c (microblaze_register_names): Now const.
2676 * m68k-tdep.c (m68k_register_names): Now const.
2677 * m32r-tdep.c (m32r_register_names): Now const.
2678 * ia64-tdep.c (ia64_register_names): Now const.
2679 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2680 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2681 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2682 ymm_avx512_register_names, pkeys_register_names>: Now const.
2683 * i386-tdep.c (i386_register_names, i386_zmm_names)
2684 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2685 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2686 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2687 * f-lang.c (f_extensions): Now const.
2688 * d-lang.c (d_extensions): Now const.
2689 * csky-tdep.c (csky_register_names): Now const.
2690 * charset.c (default_charset_names, charset_enum): Now const.
2691 (_initialize_charset): Update.
2692 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2693 const.
2694 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2695 (bsd_uthread_solib_loaded): Update.
2696 (bsd_uthread_state): Now const.
2697 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2698 (amd64_ymm_avx512_names, amd64_ymmh_names)
2699 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2700 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2701 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2702 (amd64_dword_names): Now const.
2703 * agent.c (can_use_agent_enum): Now const.
2704 * ada-tasks.c (task_states, long_task_states): Now const.
2705 * ada-lang.c (known_runtime_file_name_patterns)
2706 (known_auxiliary_function_name_patterns, attribute_names)
2707 (standard_exc, ada_extensions): Now const.
2708
89806626
SM
27092020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2710
2711 * bcache.h (struct bcache) <bcache>: Remove constructor.
2712 <m_hash_function, m_compare_function>: Remove.
2713 <~bcache>: Make virtual.
2714 <compare>: Remove static method, introduce virtual method.
2715 <default_hash>: Remove.
2716 <hash>: New virtual method.
2717 * bcache.c (bcache::expand_hash_table): Update.
2718 (bcache::insert): Update.
2719 (bcache::hash): New.
2720 (bcache::compare): Update comment and parameter names.
2721 * gdbtypes.c (types_deeply_equal): Update.
2722 * psymtab.h (struct psymbol_bcache): New struct.
2723 (class psymtab_storage) <psymtab_storage>: Make default.
2724 <psymbol_cache>: Change type to psymbol_bcache.
2725 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2726 (psymbol_hash): Change to...
2727 (psymbol_bcache::hash): ... this.
2728 (psymbol_compare): Change to...
2729 (psymbol_bcache::compare): ... this.
2730
677c92fe
SM
27312020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2732
2733 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2734 checking for initial lwp.
2735
3eba3a01
TT
27362020-09-14 Tom Tromey <tromey@adacore.com>
2737
2738 * m68k-tdep.c (m68k_extract_return_value): Use
2739 pointer_result_regnum.
2740 (m68k_store_return_value): Likewise.
2741 (m68k_reg_struct_return_p): Handle vectors and arrays.
2742 (m68k_return_value): Handle arrays.
2743 (m68k_svr4_return_value): Fix single-element aggregate handling.
2744 Handle long double. Adjust for embedded ABI.
2745 (m68k_svr4_init_abi): Set pointer_result_regnum.
2746 (m68k_embedded_init_abi): New function.
2747 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2748 (m68k_osabi_sniffer): New function.
2749 (_initialize_m68k_tdep): Register osabi sniffer.
2750 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2751 member.
2752
33f4dd48
SM
27532020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2754
2755 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2756 with gdb::unique_xmalloc_ptr<char>.
2757
8400a90d
SM
27582020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2759
2760 * xml-support.h (xml_fetch_another): Change type to be a
2761 function_view.
2762 (xml_process_xincludes): Remove baton parameter.
2763 (xml_fetch_content_from_file): Change baton parameter to
2764 dirname.
2765 * xml-support.c (struct xinclude_parsing_data)
2766 <xinclude_parsing_data>: Remove baton parameter.
2767 <fetcher_baton>: Remove.
2768 (xinclude_start_include): Adjust.
2769 (xml_process_xincludes): Adjust.
2770 (xml_fetch_content_from_file): Replace baton parameter with
2771 dirname.
2772 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2773 (xml_init_syscalls_info): Use a lambda.
2774 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2775 (file_read_description_xml): Use a lambda.
2776 (fetch_available_features_from_target): Change baton parameter
2777 to target_ops.
2778 (target_read_description_xml): Use a lambda.
2779 (target_fetch_description_xml): Use a lambda.
2780 (string_read_description_xml): Update.
2781
04f5bab2
SM
27822020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2783
2784 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2785 uses with type::endianity_is_not_default.
2786
db558e34
SM
27872020-09-14 Simon Marchi <simon.marchi@efficios.com>
2788
2789 * gdbtypes.h (struct type) <endianity_is_not_default,
2790 set_endianity_is_not_default>: New methods.
2791 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2792 type::endianity_is_not_default, change all write call sites to
2793 use type::set_endianity_is_not_default.
2794
22c4c60c
SM
27952020-09-14 Simon Marchi <simon.marchi@efficios.com>
2796
2797 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2798 uses with type::is_fixed_instance.
2799
9cdd0d12
SM
28002020-09-14 Simon Marchi <simon.marchi@efficios.com>
2801
2802 * gdbtypes.h (struct type) <is_fixed_instance,
2803 set_is_fixed_instance>: New methods.
2804 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2805 write call sites to use type::set_is_fixed_instance.
2806
0becda7a
SM
28072020-09-14 Simon Marchi <simon.marchi@efficios.com>
2808
2809 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2810 uses with type::is_gnu_ifunc.
2811
03cc7249
SM
28122020-09-14 Simon Marchi <simon.marchi@efficios.com>
2813
2814 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2815 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2816 use type::set_is_gnu_ifunc.
2817
3f46044c
SM
28182020-09-14 Simon Marchi <simon.marchi@efficios.com>
2819
2820 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2821 uses with type::stub_is_supported.
2822
9baccff6
SM
28232020-09-14 Simon Marchi <simon.marchi@efficios.com>
2824
2825 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2826 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2827 use type::set_stub_is_supported.
2828
bd63c870
SM
28292020-09-14 Simon Marchi <simon.marchi@efficios.com>
2830
2831 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2832 uses with type::is_vector.
2833
2062087b
SM
28342020-09-14 Simon Marchi <simon.marchi@efficios.com>
2835
2836 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2837 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2838 use type::set_is_vector.
2839
a409645d
SM
28402020-09-14 Simon Marchi <simon.marchi@efficios.com>
2841
2842 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2843 uses with type::has_varargs.
2844
1d6286ed
SM
28452020-09-14 Simon Marchi <simon.marchi@efficios.com>
2846
2847 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2848 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2849 use type::set_has_varargs.
2850
7f9f399b
SM
28512020-09-14 Simon Marchi <simon.marchi@efficios.com>
2852
2853 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2854 uses with type::is_prototyped.
2855
27e69b7a
SM
28562020-09-14 Simon Marchi <simon.marchi@efficios.com>
2857
2858 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2859 New methods.
2860 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2861 call sites to use type::set_is_prototyped.
2862
d2183968
SM
28632020-09-14 Simon Marchi <simon.marchi@efficios.com>
2864
2865 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2866 uses with type::target_is_stub.
2867
8f53807e
SM
28682020-09-14 Simon Marchi <simon.marchi@efficios.com>
2869
2870 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2871 New methods.
2872 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2873 sites to use type::set_target_is_stub.
2874
e46d3488
SM
28752020-09-14 Simon Marchi <simon.marchi@efficios.com>
2876
2877 * gdbtypes.h (TYPE_STUB): Remove, replace all
2878 uses with type::is_stub.
2879
b4b73759
SM
28802020-09-14 Simon Marchi <simon.marchi@efficios.com>
2881
2882 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2883 (TYPE_STUB): Use type::is_stub, change all write call sites to
2884 use type::set_is_stub.
2885
20ce4123
SM
28862020-09-14 Simon Marchi <simon.marchi@efficios.com>
2887
2888 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2889 type::has_no_signedness.
2890
15152a54
SM
28912020-09-14 Simon Marchi <simon.marchi@efficios.com>
2892
2893 * gdbtypes.h (struct type) <has_no_signedness,
2894 set_has_no_signedness>: New methods.
2895 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2896 call sites to use type::set_has_no_signedness.
2897
c6d940a9
SM
28982020-09-14 Simon Marchi <simon.marchi@efficios.com>
2899
2900 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2901 type::is_unsigned.
2902
653223d3
SM
29032020-09-14 Simon Marchi <simon.marchi@efficios.com>
2904
2905 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2906 methods.
2907 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2908 sites to use type::set_is_unsigned.
2909
55ea94da 29102020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 2911 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 2912
e851246a
SM
2913 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2914 pointer and stack frame offset when unwinding.
55ea94da 2915
6791b117
PA
29162020-09-13 Pedro Alves <pedro@palves.net>
2917
2918 * NEWS: Document "-break-insert --qualified".
2919 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2920
77f2120b
PA
29212020-09-13 Pedro Alves <pedro@palves.net>
2922
2923 * linespec.c (classify_mtype, compare_msyms): Delete.
2924 (search_minsyms_for_name): Remove classification logic. Instead
2925 filter out trampoline symbols if we also found an external
2926 function of the same name.
2927
ed6a896c
JB
29282020-09-13 Joel Brobecker <brobecker@adacore.com>
2929
2930 * NEWS: Create a new section for the next release branch.
2931 Rename the section of the current branch, now that it has
2932 been cut.
2933
32aea73e
JB
29342020-09-13 Joel Brobecker <brobecker@adacore.com>
2935
2936 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2937 * version.in: Bump version to 11.0.50.DATE-git.
2938
8087c3fa
JB
29392020-09-12 Joel Brobecker <brobecker@adacore.com>
2940
2941 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2942
2a67f09d
FW
29432020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2944 Felix Willgerodt <Felix.Willgerodt@intel.com>
2945
2946 * gdbarch.sh: Added bfloat16 type.
2947 * gdbarch.c: Regenerated.
2948 * gdbarch.h: Regenerated.
2949 * gdbtypes.c (floatformats_bfloat16): New struct.
2950 (gdbtypes_post_init): Add builtin_bfloat16.
2951 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2952 (floatformats_bfloat16): New struct.
2953 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2954 (i386_ymm_type): Add field "v16_bfloat16"
2955 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2956 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2957 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2958 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2959 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2960 * features/i386/64bit-avx512.c: Regenerated.
2961 * features/i386/64bit-sse.xml: Add bfloat16 type.
2962 * features/i386/64bit-sse.c: Regenerated.
2963
1347d111
FW
29642020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2965
2966 * i386-tdep.c (i386_zmm_type): Fix field names.
2967 (i386_ymm_type): Fix field names.
2968
7a4e8e7d
TBA
29692020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2970
2971 * breakpoint.c: Fix typo in the help message of the
2972 "set breakpoint condition-evaluation" command.
2973
cf4ac4be
KR
29742020-09-10 Kamil Rytarowski <n54@gmx.com>
2975
2976 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2977 * (nbsd_nat_target::pid_to_exec_file)
2978 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2979 (nbsd_nat_target::post_startup_inferior)
2980 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2981 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2982 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2983 * (nbsd_thread_lister): Remove.
2984
f404573e
KR
29852020-09-10 Kamil Rytarowski <n54@gmx.com>
2986
2987 * fork-inferior.c (startup_inferior): Avoid double free.
2988
1ccb2c17
KR
29892020-09-10 Kamil Rytarowski <n54@gmx.com>
2990
2991 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2992 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2993
feedfcc7
KR
29942020-09-10 Kamil Rytarowski <n54@gmx.com>
2995
2996 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2997 * netbsd-nat.c: Include <sys/ptrace.h>.
2998 * (netbsd_nat::enable_proc_events): Add.
2999
c489f8c6
KR
30002020-09-10 Kamil Rytarowski <n54@gmx.com>
3001
3002 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3003 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3004 (netbsd_nat::for_each_thread): Add.
3005 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3006 "gdbsupport/common-debug.h".
3007 * (netbsd_nat::netbsd_thread_lister)
3008 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3009 (netbsd_nat::for_each_thread): Add.
3010
330662f6
KR
30112020-09-10 Kamil Rytarowski <n54@gmx.com>
3012
3013 * netbsd-nat.h: Include <unistd.h>.
3014 * (netbsd_nat::pid_to_exec_file): Add.
3015 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3016 * (netbsd_nat::pid_to_exec_file) Add.
3017
70b67307
KR
30182020-09-10 Kamil Rytarowski <n54@gmx.com>
3019
3020 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3021
99cf6da6
KR
30222020-09-10 Kamil Rytarowski <n54@gmx.com>
3023
3024 * netbsd-nat.h: New file.
3025 * netbsd-nat.c: Likewise.
3026
1b788fb6
TT
30272020-09-09 Tom Tromey <tromey@adacore.com>
3028
3029 * ada-lang.c (remove_extra_symbols): Do not increment when
3030 removing an element
3031
03b0a45f
TT
30322020-09-08 Tom Tromey <tromey@adacore.com>
3033
3034 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3035
3cae4447
TT
30362020-09-08 Tom Tromey <tromey@adacore.com>
3037
3038 PR win32/25302:
3039 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3040 (gdb_bfd_init_data): New function.
3041 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3042
7f08fd51
TBA
30432020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3044
3045 * infrun.c (fetch_inferior_event): Use
3046 `switch_to_target_no_thread` to switch the target.
3047
3e6ff933
TT
30482020-09-06 Tom Tromey <tom@tromey.com>
3049
3050 * symfile.h (dwarf2_free_objfile): Don't declare.
3051
e56798df
AKS
30522020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3053
3054 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3055 to match 16 byte real/complex type generated by Flang compiler.
3056
8f5c6526
TV
30572020-09-03 Tom de Vries <tdevries@suse.de>
3058
3059 PR breakpoint/26546
3060 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3061 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3062
c5065df0
SM
30632020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3064
3065 * maint.c (index_digits): New function.
3066 (struct maint_print_section_data): Remove.
3067 (print_bfd_section_info): Remove print_data parameter, add arg
3068 and index_digits.
3069 (print_objfile_section_info): Likewise.
3070 (print_bfd_section_info_maybe_relocated): Likewise (plus
3071 objfile).
3072 (maintenance_info_sections): Adjust calls.
3073
02c6f3f1
TT
30742020-09-02 Tom Tromey <tromey@adacore.com>
3075
3076 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3077 for null pointers.
3078 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3079
ef5e5b0b
SM
30802020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3081
3082 * bcache.h (struct bcache) <insert>: Change type of `added` to
3083 pointer to bool.
3084 * bcache.c (bcache::insert): Likewise.
3085 * gdbtypes.c (check_types_worklist): Adjust.
3086 * psymtab.c (add_psymbol_to_bcache): Adjust.
3087
973695d6
KB
30882020-08-31 Kevin Buettner <kevinb@redhat.com>
3089
3090 * corelow.c (unordered_set): Include.
3091 (class core_target): Add field 'm_core_unavailable_mappings'.
3092 (core_target::build_file_mappings): Print only one warning
3093 per inaccessible file. Add unavailable/broken mappings
3094 to m_core_unavailable_mappings.
3095 (core_target::xfer_partial): Call...
3096 (core_target::xfer_memory_via_mappings): New method.
3097
264fc0e2
SM
30982020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3099
3100 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3101 type to bool.
3102
2de01bdb
SM
31032020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3104
3105 * dwarf2/read.c (struct field_info): Fix indentation.
3106
f3bd50f1
SM
31072020-08-31 Simon Marchi <simon.marchi@efficios.com>
3108
3109 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3110 ordering in comment.
3111 * frame.c (frame_id_eq): Fix indentation.
3112
22b9b4b0
SL
31132020-08-31 Scott Linder <scott@scottlinder.com>
3114 Simon Marchi <simon.marchi@efficios.com>
3115
3116 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3117 inline frame ids in outer frame.
3118
84154d16
SM
31192020-08-31 Simon Marchi <simon.marchi@efficios.com>
3120
3121 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3122 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3123 (outer_frame_id): Use FID_STACK_OUTER instead of
3124 FID_STACK_INVALID.
3125 (frame_id_p): Don't check for outer_frame_id.
3126
8efaf6b3
SM
31272020-08-31 Simon Marchi <simon.marchi@efficios.com>
3128
3129 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3130 regnum/frame in value. Call allocate_value_lazy.
3131 * frame.c (frame_unwind_register_value): Use
3132 val_print_not_saved.
3133
fe1fe7ea
SM
31342020-08-31 Simon Marchi <simon.marchi@efficios.com>
3135
3136 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3137
f7c7700d
PA
31382020-08-29 Pedro Alves <pedro@palves.net>
3139
3140 * progspace.c (print_program_space): Use all_inferiors. Switch to
3141 the inferior before calling target_pid_to_str.
3142
e0814aae
TT
31432020-08-28 Tom Tromey <tom@tromey.com>
3144
3145 * xcoffread.c (xcoff_end_psymtab): Update comment.
3146 * dbxread.c (dbx_end_psymtab): Update comment.
3147
626d2320
TV
31482020-08-28 Tom de Vries <tdevries@suse.de>
3149
3150 PR breakpoint/26544
3151 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3152 event_location.
3153 (create_breakpoint): Same.
3154 (base_breakpoint_decode_location): Same.
3155 (bkpt_create_sals_from_location): Same.
3156 (bkpt_decode_location): Same.
3157 (bkpt_probe_create_sals_from_location): Same.
3158 (bkpt_probe_decode_location): Same.
3159 (tracepoint_create_sals_from_location): Same.
3160 (tracepoint_decode_location): Same.
3161 (tracepoint_probe_decode_location): Same.
3162 (strace_marker_create_sals_from_location): Same.
3163 (strace_marker_decode_location): Same.
3164 (create_sals_from_location_default): Same.
3165 (decode_location_default): Same.
3166 * breakpoint.h (struct breakpoint_ops): Same.
3167 (create_breakpoint): Same.
3168 * linespec.h (decode_line_full): Same.
3169 * linespec.c (decode_line_full): Same. Throw error if
3170 result.size () == 0.
3171
df631783
PA
31722020-08-27 Pedro Alves <pedro@palves.net>
3173
3174 PR gdb/26524
3175 * breakpoint.c (until_break_fsm) <location_breakpoint,
3176 caller_breakpoint>: Delete fields.
3177 <breakpoints>: New field.
3178 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3179 two individual breakpoints.
3180 (until_break_fsm::should_stop): Loop over breakpoints in the
3181 breakpoint vector.
3182 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3183 vector.
3184 (until_break_command): Handle location expanding into multiple
3185 sals.
3186
b2b38aa4
PA
31872020-08-27 Pedro Alves <pedro@palves.net>
3188
3189 PR gdb/26523
3190 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3191 bp_until breakpoints user-specified locations. Update intro
3192 comment.
3193
b886559f
SM
31942020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3195
3196 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3197 gdb_bfd_sections): New.
3198 * maint.c (print_bfd_section_info): Change param type to
3199 maint_print_section_data.
3200 (print_objfile_section_info): Likewise.
3201 (print_bfd_section_info_maybe_relocated): Likewise.
3202 (maintenance_info_sections): Use gdb_bfd_sections.
3203
4c6e63bf
SV
32042020-08-25 Shahab Vahedi <shahab@synopsys.com>
3205
3206 * MAINTAINERS: Add ARC target and maintainer.
3207
8d7f0635
AK
32082020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3209
3210 * configure.tgt: ARC support for GNU/Linux.
3211 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3212 * arc-linux-tdep.c: New file.
3213 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3214 * arc-tdep.c (arc_write_pc): Use it.
3215
fdd8731b
SV
32162020-08-25 Shahab Vahedi <shahab@synopsys.com>
3217
3218 * arc-tdep.c (arc_check_for_hardware_loop): New.
3219 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3220
22459524
SV
32212020-08-25 Shahab Vahedi <shahab@synopsys.com>
3222
3223 * arc-tdep.h: Include "gdbarch.h".
3224
995d3a19
SV
32252020-08-25 Shahab Vahedi <shahab@synopsys.com>
3226
3227 * arch/arc.h
3228 (arc_gdbarch_features): New class to stir the selection of target XML.
3229 (arc_create_target_description): Use FEATURES to choose XML target.
3230 (arc_lookup_target_description): Use arc_create_target_description
3231 to create _new_ target descriptions or return the already created
3232 ones if the FEATURES is the same.
3233 * arch/arc.c: Implementation of prototypes described above.
3234 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3235 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3236 * arc-tdep.c (*_feature_name): Make feature names consistent.
3237 (arc_register_feature): A new struct to hold information about
3238 registers of a particular target/feature.
3239 (arc_check_tdesc_feature): Check if XML provides registers in
3240 compliance with ARC_REGISTER_FEATURE structs.
3241 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3242 (determine_*_reg_feature_set): Which feature name to look for.
3243 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3244 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3245 to expected ISA enums to be used in arc_gdbarch_features structs.
3246 * features/Makefile (FEATURE_XMLFILES): Add new files.
3247 * gdb/features/arc/v1-aux.c: New file.
3248 * gdb/features/arc/v1-aux.xml: Likewise.
3249 * gdb/features/arc/v1-core.c: Likewise.
3250 * gdb/features/arc/v1-core.xml: Likewise.
3251 * gdb/features/arc/v2-aux.c: Likewise.
3252 * gdb/features/arc/v2-aux.xml: Likewise.
3253 * gdb/features/arc/v2-core.c: Likewise.
3254 * gdb/features/arc/v2-core.xml: Likewise.
3255 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3256
3945d2d7
GM
32572020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3258 Andrew Burgess <andrew.burgess@embecosm.com>
3259
3260 PR m2/26372
fc5d6901 3261 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
3262 an assert. Remove single element array indexing pattern as the
3263 MULTI_SUBSCRIPT support will handle this case too.
3264
2677f2d3
SM
32652020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3266
3267 * value.h (valprint_check_validity): Move declaration from
3268 here...
3269 * valprint.h (valprint_check_validity): ... to here.
3270
c426fddb
SM
32712020-08-24 Simon Marchi <simon.marchi@efficios.com>
3272
3273 * debug.h: New file.
3274 * debug.c (debug_prefixed_vprintf): New function.
3275 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3276 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3277
1eb8556f
SM
32782020-08-24 Simon Marchi <simon.marchi@efficios.com>
3279
3280 * infrun.h (infrun_debug_printf_1): New function declaration.
3281 (infrun_debug_printf): New macro.
3282 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3283 throughout.
3284 (infrun_debug_printf): New function.
3285 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3286 (handle_jit_event): Likewise.
3287
b8fff44e
MW
32882020-08-21 Mark Wielaard <mark@klomp.org>
3289
3290 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3291
d19c3068
SM
32922020-08-22 Simon Marchi <simon.marchi@efficios.com>
3293
3294 * frame.c (enum class frame_id_status): New.
3295 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3296 (fprintf_frame): Update.
3297 (compute_frame_id): Set frame id status to "computing" on entry.
3298 Set it back to "not_computed" on failure and to "computed" on
3299 success.
3300 (get_frame_id): Assert the frame id is not being computed.
3301 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3302 (create_new_frame): Likewise.
3303 (frame_cleanup_after_sniffer): Update assert.
3304
b70e516e
SM
33052020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3306
3307 * regcache.c (pid_ptid_regcache_map): New type.
3308 (target_ptid_regcache_map): Remove.
3309 (target_pid_ptid_regcache_map): New type.
3310 (regcaches): Change type to target_pid_ptid_regcache_map.
3311 (get_thread_arch_aspace_regcache): Update.
3312 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3313 case.
3314 (regcaches_size): Update.
3315 (regcache_count): Update.
3316 (registers_changed_ptid_target_pid_test): New.
3317 (_initialize_regcache): Register new test.
3318
cdd9148a
SM
33192020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3320
3321 * regcache.c (regcache_count): New.
3322 (struct regcache_test_data): New.
3323 (regcache_test_data_up): New.
3324 (populate_regcaches_for_test): New.
3325 (regcaches_test): Remove.
3326 (get_thread_arch_aspace_regcache_test): New.
3327 (registers_changed_ptid_all_test): New.
3328 (registers_changed_ptid_target_test): New.
3329 (registers_changed_ptid_target_ptid_test): New.
3330 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3331 (_initialize_regcache): Register new tests.
3332
dd125343
SM
33332020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3334
3335 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3336 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3337 gdbarch and aspace parameter. Use current inferior's aspace.
3338 Validate regcache's arch value.
3339 (regcaches_test): Update.
3340
3ee93972
SM
33412020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3342
3343 * regcache.c (regcaches_test): Call registers_changed.
3344
33bf4c5c
TBA
33452020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3346
3347 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3348
c2fd7fae
AKS
33492020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3350
3351 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3352 to find the end of prologue for flang compiled binaries.
3353 * arm-tdep.c (arm_skip_prologue): Likewise.
3354 * i386-tdep.c (i386_skip_prologue): Likewise.
3355 * producer.c (producer_is_llvm): New function.
3356 (producer_parsing_tests): Added new tests for clang/flang.
3357 * producer.h (producer_is_llvm): New declaration.
3358
9327494e
SM
33592020-08-18 Simon Marchi <simon.marchi@efficios.com>
3360
3361 * linux-nat.c (linux_nat_debug_printf): New function.
3362 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3363
d138725a
AM
33642020-08-18 Aaron Merey <amerey@redhat.com>
3365
3366 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3367 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3368 (CLIBS): Add DEBUGINFOD_LIBS.
3369
f9b11e6b
ST
33702020-08-17 Sergei Trofimovich <siarheit@google.com>
3371
3372 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3373 'gdbarch_num_regs'.
3374
3ae7ab99
TT
33752020-08-17 Tom Tromey <tromey@adacore.com>
3376
3377 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3378 ada_get_decoded_value returns NULL.
3379
b017825f
TT
33802020-08-17 Tom Tromey <tromey@adacore.com>
3381
3382 * python/py-inferior.c (infpy_search_memory): Use
3383 gdb_py_object_from_ulongest.
3384 * python/py-infevents.c (create_inferior_call_event_object)
3385 (create_memory_changed_event_object): Use
3386 gdb_py_object_from_ulongest.
3387 * python/py-linetable.c (ltpy_entry_get_pc): Use
3388 gdb_py_object_from_ulongest.
3389
7635cf79
SM
33902020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3391
3392 * loc.c (class symbol_needs_eval_context): Fix indentation.
3393
f54be24b
SM
33942020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3395
3396 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3397 bool.
3398
53d5a2a5
TV
33992020-08-17 Tom de Vries <tdevries@suse.de>
3400
3401 PR gdb/26393
3402 * gdbtypes.c (dump_dynamic_prop): New function.
3403 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3404
547ce8f0
TV
34052020-08-15 Tom de Vries <tdevries@suse.de>
3406
3407 PR backtrace/26390
3408 * stack.c (print_frame_args): Temporarily set the selected
3409 frame to FRAME while printing the frame's arguments.
3410
6ea815e7
PFC
34112020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3412
3413 PR breakpoints/26385
3414 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3415 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3416
6e562fa3
PFC
34172020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3418
3419 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3420 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3421 and >= to check return value instead of == -1 and != -1.
3422
d369b608
SM
34232020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3424
3425 * utils.h (class gdb_argv) <as_array_view>: New method.
3426 * utils.c (gdb_argv_as_array_view_test): New.
3427 (_initialize_utils): Register selftest.
3428 * maint.c (maintenance_selftest): Use the new method.
3429
b31488a3
KR
34302020-08-13 Kamil Rytarowski <n54@gmx.com>
3431
3432 * target.h (supports_dumpcore, dumpcore): New
3433 function declarations.
3434 * target.c (supports_dumpcore, dumpcore): New
3435 functions.
3436 * target-delegates.c: Rebuild.
3437 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3438 and target_dumpcore ().
3439
002a3166
AM
34402020-08-13 Aaron Merey <amerey@redhat.com>
3441
3442 * debuginfod-support.c: Replace global variables with user_data.
3443
ece5bc8a
SM
34442020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3445
3446 * maint.c (maintenance_selftest): Split args and pass array_view
3447 to run_tests.
3448
6d8a0a5e
LM
34492020-08-12 Luis Machado <luis.machado@linaro.org>
3450
3451 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3452 type's length.
3453 Use %s and pulongest to print the length.
3454
7cf663a9
PA
34552020-08-12 Pedro Alves <palves@redhat.com>
3456
3457 * NEWS: Move "Multi-target debugging support" item to the
3458 "Changes since GDB 9" section.
3459
27c7b875
PA
34602020-08-12 Pedro Alves <palves@redhat.com>
3461
3462 PR gdb/26336
3463 * progspace.c (program_space::remove_objfile): Invalidate the
3464 frame cache.
3465
1796a2a1
TV
34662020-08-11 Tom de Vries <tdevries@suse.de>
3467
3468 * MAINTAINERS: Mark ms1 as deleted.
3469
f8e3fe0d
LM
34702020-08-10 Luis Machado <luis.machado@linaro.org>
3471
3472 PR gdb/26310
3473
3474 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3475 act accordingly.
3476 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3477 movz/str/stur/stp skipping behavior.
3478
cc308722
LM
34792020-08-10 Luis Machado <luis.machado@linaro.org>
3480
3481 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3482 struct user_sve_header instead of struct sve_context.
3483
041d9819
SM
34842020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3485
3486 * read.h (dwarf2_fetch_die_loc_sect_off,
3487 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3488 `void *` parameter with function_view.
3489 * read.c (dwarf2_fetch_die_loc_sect_off,
3490 dwarf2_fetch_die_loc_cu_off): Likewise.
3491 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3492 (per_cu_dwarf_call): Adjust.
3493 (get_frame_address_in_block_wrapper): Remove.
3494 (indirect_synthetic_pointer): Adjust.
3495 (get_ax_pc): Remove.
3496 (dwarf2_compile_expr_to_ax): Adjust.
3497
38f8aa06
TV
34982020-08-08 Tom de Vries <tdevries@suse.de>
3499
3500 PR build/26344
3501 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3502 constructor.
3503 * regcache.c (get_thread_arch_aspace_regcache): Same.
3504
a52b3ae2
TT
35052020-08-07 Tom Tromey <tromey@adacore.com>
3506
3507 * ravenscar-thread.c
3508 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3509 New method.
3510 (ravenscar_thread_target::wait): Check
3511 runtime_initialized.
3512 (ravenscar_thread_target::prepare_to_store)
3513 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3514 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3515 (ravenscar_thread_target::stopped_by_watchpoint)
3516 (ravenscar_thread_target::stopped_data_address)
3517 (ravenscar_thread_target::core_of_thread): Use
3518 scoped_restore_current_thread and
3519 set_base_thread_from_ravenscar_task.
3520
0e29517d
TT
35212020-08-07 Tom Tromey <tromey@adacore.com>
3522
3523 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3524
592f9bd7
TT
35252020-08-07 Tom Tromey <tromey@adacore.com>
3526
3527 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3528 update_inferior_ptid before update_thread_list.
3529 (temporarily_change_regcache_ptid): New class.
3530 (ravenscar_thread_target::fetch_registers)
3531 (ravenscar_thread_target::store_registers)
3532 (ravenscar_thread_target::prepare_to_store): Use base thread when
3533 forwarding operation.
3534
39e2018a
TT
35352020-08-07 Tom Tromey <tromey@adacore.com>
3536
3537 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3538 "is_pid" case.
3539
2080266b
TT
35402020-08-07 Tom Tromey <tromey@adacore.com>
3541
3542 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3543 New methods.
3544 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3545 first.
3546 (ravenscar_thread_target::add_thread): Rename from
3547 ravenscar_add_thread.
3548 (ravenscar_thread_target::update_thread_list): Use a lambda.
3549 (ravenscar_thread_target::xfer_partial): New method.
3550
78c02f21
TT
35512020-08-07 Tom Tromey <tromey@adacore.com>
3552
3553 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3554 gdb::function_view.
3555 (iterate_over_live_ada_tasks): Change type of argument.
3556 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3557 of argument.
3558
d5d833af
TT
35592020-08-07 Tom Tromey <tromey@adacore.com>
3560
3561 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3562 Remove.
3563 (ravenscar_thread_target::extra_thread_info): Remove.
3564 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3565 defer to target beneath for non-Ravenscar threads.
3566
a8ac85bb
TT
35672020-08-07 Tom Tromey <tromey@adacore.com>
3568
3569 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3570 get_base_thread_from_ravenscar_task>: Now methods.
3571 <m_cpu_map>: New member.
3572 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3573 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3574 (ravenscar_thread_target::task_is_currently_active): Update.
3575 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3576 Now a method.
3577 (ravenscar_thread_target::add_active_thread): Put initial thread
3578 into the m_cpu_map.
3579
550ab58d
TT
35802020-08-07 Tom Tromey <tromey@adacore.com>
3581
3582 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3583 event_ptid.
3584
e9546579
TT
35852020-08-07 Tom Tromey <tromey@adacore.com>
3586
3587 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3588 runtime_initialized.
3589
3d4470e5
TT
35902020-08-07 Tom Tromey <tromey@adacore.com>
3591
3592 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3593 add_active_thread.
3594 (ravenscar_thread_target::add_active_thread): Now public.
3595 (ravenscar_inferior_created): Call add_active_thread after pushing
3596 the target.
3597
888bdb2b
SM
35982020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3599
3600 * regcache.c (ptid_regcache_map): New type.
3601 (target_ptid_regcache_map): New type.
3602 (regcaches): Change type to target_ptid_regcache_map.
3603 (get_thread_arch_aspace_regcache): Update to regcaches' new
3604 type.
3605 (regcache_thread_ptid_changed): Likewise.
3606 (registers_changed_ptid): Likewise.
3607 (regcaches_size): Likewise.
3608 (regcaches_test): Update.
3609 (regcache_thread_ptid_changed): Update.
3610 * regcache.h (regcache_up): New type.
3611 * gdbsupport/ptid.h (hash_ptid): New struct.
3612
b161a60d
SM
36132020-08-07 Simon Marchi <simon.marchi@efficios.com>
3614
3615 * observable.h (thread_ptid_changed): Add parameter
3616 `process_stratum_target *`.
3617 * infrun.c (infrun_thread_ptid_changed): Add parameter
3618 `process_stratum_target *` and use it.
3619 (selftests): New namespace.
3620 (infrun_thread_ptid_changed): New function.
3621 (_initialize_infrun): Register selftest.
3622 * regcache.c (regcache_thread_ptid_changed): Add parameter
3623 `process_stratum_target *` and use it.
3624 (regcache_thread_ptid_changed): New function.
3625 (_initialize_regcache): Register selftest.
3626 * thread.c (thread_change_ptid): Pass target to
3627 thread_ptid_changed observable.
3628
d2854d8d
CT
36292020-08-06 Caroline Tice <cmtice@google.com>
3630
fe4c3d43
SM
3631 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3632 (struct dwp_sections): Update field comments. Add loclists and
3633 rnglists fields.
3634 (struct virtual_v2_dwo_sections): Rename struct to
3635 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3636 size & offset fields for loclists and rnglists.
3637 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3638 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3639 skipping dummy type units.
3640 (create_dwp_hash_table): Update the large comment above the function to
3641 discuss Version 5 DWP files as well, with references. Update all the
3642 version checks in the function to check for version 5 as well. Add new
3643 section at the end to create dwp hash table for version 5.
3644 (create_dwp_v2_section): Rename function to
3645 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3646 Add V5 to error message text.
3647 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3648 into calls to create_dwp_v2_or_v5_section.
3649 (create_dwo_unit_in_dwp_v5): New function.
3650 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3651 check for version2; add else clause to handle version 5.
3652 (open_and_init_dwo_file): Add code to check dwarf version & only call
3653 create_debug_types_hash_table (with sections.types) if version is not 5;
3654 else call create_debug_type_hash_table, with sections.info.
3655 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3656 version 5.
3657 (dwarf2_locate_v5_dwp_sections): New function.
3658 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3659 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 3660
159ed7d9
SM
36612020-08-06 Simon Marchi <simon.marchi@efficios.com>
3662
3663 * regcache.h (class regcache): Remove friend
3664 registers_changed_ptid.
3665 <regcache_thread_ptid_changed>: Remove.
3666 <regcaches>: Remove.
3667 * regcache.c (regcache::regcaches): Rename to...
3668 (regcaches): ... this. Make static.
3669 (get_thread_arch_aspace_regcache): Update.
3670 (regcache::regcache_thread_ptid_changed): Rename to...
3671 (regcache_thread_ptid_changed): ... this. Update.
3672 (class regcache_access): Remove.
3673 (regcaches_test): Update.
3674 (_initialize_regcache): Update.
3675 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3676 <forward_list>.
3677
174981ae
SM
36782020-08-06 Simon Marchi <simon.marchi@efficios.com>
3679
3680 * regcache.h (class regcache) <current_regcache>: Rename to...
3681 <regcaches>: ... this. Move doc here.
3682 * regcache.c (regcache::current_regcache) Rename to...
3683 (regcache::regcaches): ... this. Move doc to header.
3684 (get_thread_arch_aspace_regcache): Update.
3685 (regcache::regcache_thread_ptid_changed): Update.
3686 (registers_changed_ptid): Update.
3687 (class regcache_access) <current_regcache_size>: Rename to...
3688 <regcaches_size>: ... this.
3689 (current_regcache_test): Rename to...
3690 (regcaches_test): ... this.
3691 (_initialize_regcache): Update.
3692
ed908db6
VC
36932020-08-06 Victor Collod <vcollod@nvidia.com>
3694
3695 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3696
b5582ab7
KB
36972020-08-05 Kevin Buettner <kevinb@redhat.com>
3698
3699 * corelow.c (core_target::build_file_mappings): Don't output
3700 null pathname in warning.
3701
ea946b86
SM
37022020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3703
3704 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3705 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3706 gdb.dwarf2/dw2-single-line-discriminators.exp,
3707 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3708
57d02173
TT
37092020-08-05 Tom Tromey <tromey@adacore.com>
3710
3711 PR rust/26197:
3712 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3713 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3714 Fix off-by-one and type size errors in ordinary case.
3715
5555c86d
TV
37162020-08-05 Tom de Vries <tdevries@suse.de>
3717
3718 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3719 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3720
97916bfe
SM
37212020-08-04 Simon Marchi <simon.marchi@efficios.com>
3722
3723 * frame.h (frame_id_p): Return bool.
3724 (frame_id_artificial_p): Return bool.
3725 (frame_id_eq): Return bool.
3726 (has_stack_frames): Return bool.
3727 (get_selected_frame): Fix typo in comment.
3728 (get_frame_pc_if_available): Return bool.
3729 (get_frame_address_in_block_if_available): Return bool.
3730 (get_frame_func_if_available): Return bool.
3731 (read_frame_register_unsigned): Return bool.
3732 (get_frame_register_bytes): Return bool.
3733 (safe_frame_unwind_memory): Return bool.
3734 (deprecated_frame_register_read): Return bool.
3735 (frame_unwinder_is): Return bool.
3736 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3737 bool.
3738 <this_id::p>: Likewise.
3739 <prev_p>: Likewise.
3740 (frame_stash_add): Return bool.
3741 (get_frame_id): Use bool.
3742 (frame_id_build_special) Use bool.
3743 (frame_id_build_unavailable_stack): Use bool.
3744 (frame_id_build): Use bool.
3745 (frame_id_p): Return bool, use true/false instead of 1/0.
3746 (frame_id_artificial_p): Likewise.
3747 (frame_id_eq): Likewise.
3748 (frame_id_inner): Likewise.
3749 (get_frame_func_if_available): Likewise.
3750 (read_frame_register_unsigned): Likewise.
3751 (deprecated_frame_register_read): Likewise.
3752 (get_frame_register_bytes): Likewise.
3753 (has_stack_frames): Likewise.
3754 (inside_main_func): Likewise.
3755 (inside_entry_func): Likewise.
3756 (get_frame_pc_if_available): Likewise.
3757 (get_frame_address_in_block_if_available): Likewise.
3758 (frame_unwinder_is): Likewise.
3759 (safe_frame_unwind_memory): Likewise.
3760 (frame_unwind_arch): Likewise.
3761
fedfee88
SM
37622020-08-04 Simon Marchi <simon.marchi@efficios.com>
3763
3764 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3765 type to cached_copy_status.
3766 (fprintf_frame): Adjust.
3767 (get_frame_func_if_available): Adjust.
3768 (frame_cleanup_after_sniffer): Adjust.
3769
6cfa9b59
MW
37702020-08-04 Mark Wielaard <mark@klomp.org>
3771
3772 * MAINTAINERS (Write After Approval): Update email address.
3773
66d6346b
SM
37742020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3775
3776 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3777 dynamic_prop::const_val.
3778
8a6d5e35
SM
37792020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3780
3781 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3782 dynamic_prop::kind.
3783
51d6067d
SM
37842020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3785
3786 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3787
b26e2ae7
JM
37882020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3789
3790 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3791
39791af2
JM
37922020-08-04 Weimin Pan <weimin.pan@oracle.com>
3793 Jose E. Marchesi <jose.marchesi@oracle.com>
3794
3795 * configure.tgt: Add entry for bpf-*-*.
3796 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3797 (ALLDEPFILES): Add bpf-tdep.c.
3798 * bpf-tdep.c: New file.
3799 * MAINTAINERS: Add bpf target and maintainer.
3800 * NEWS: Mention the support for the new target.
3801
521894aa
TV
38022020-08-04 Tom de Vries <tdevries@suse.de>
3803
3804 PR symtab/23270
3805 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3806 Error.
3807
5d6356e9
JB
38082020-08-03 John Baldwin <jhb@FreeBSD.org>
3809
3810 * syscalls/freebsd.xml: Regenerate.
3811
0cf82b81
JB
38122020-08-03 John Baldwin <jhb@FreeBSD.org>
3813
3814 * syscalls/update-freebsd.sh: Fix usage and year range.
3815
8f34b746
TV
38162020-08-03 Tom de Vries <tdevries@suse.de>
3817
3818 PR symtab/26333
3819 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3820 DW_LNE_lo_user/DW_LNE_hi_user range.
3821
5e500d33
SM
38222020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3823
3824 PR ada/26318
3825 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3826 kind.
3827
78319c15
TBA
38282020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3829
3830 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3831
4c55e970
TBA
38322020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3833
3834 * breakpoint.c (set_breakpoint_condition): Update the condition
3835 expressions after checking that the input condition string parses
3836 successfully and does not contain junk at the end.
3837
1e620590
TBA
38382020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3839
3840 * breakpoint.c (set_breakpoint_condition): Update the
3841 condition string after parsing the new condition successfully.
3842
c8693053
RO
38432020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3844
3845 * proc-api.c (_STRUCTURED_PROC): Don't define.
3846 * proc-events.c: Likewise.
3847 * proc-flags.c: Likewise.
3848 * proc-why.c: Likewise.
3849 * procfs.c: Likewise.
3850
3851 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3852 * configure, config.in: Regenerate.
3853
5a99adb8
TV
38542020-07-30 Tom de Vries <tdevries@suse.de>
3855
3856 PR build/26320
3857 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3858 m_red/m_green/m_blue in a union.
3859
8ba83e91
TV
38602020-07-29 Tom de Vries <tdevries@suse.de>
3861
3862 PR tdep/26280
3863 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3864
f75a0693
AB
38652020-07-28 Tom Tromey <tromey@adacore.com>
3866
3867 PR symtab/26270:
3868 * symtab.h (find_pc_partial_function_sym): Declare.
3869 * cli/cli-cmds.c (disassemble_command): Use
3870 find_pc_partial_function_sym. Check asm_demangle.
3871 * blockframe.c (cache_pc_function_sym): New global.
3872 (cache_pc_function_name): Remove.
3873 (clear_pc_function_cache): Update.
3874 (find_pc_partial_function_sym): New function, from
3875 find_pc_partial_function.
3876 (find_pc_partial_function): Rewrite using
3877 find_pc_partial_function_sym.
3878
16f3242c
TT
38792020-07-28 Tom Tromey <tromey@adacore.com>
3880
3881 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3882 help. Add usage.
3883
4888741a
TT
38842020-07-28 Tom Tromey <tromey@adacore.com>
3885
3886 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3887 <DW_OP_GNU_variable_value>: Cast to address type.
3888
4d46f402
KR
38892020-07-28 Kamil Rytarowski <n54@gmx.com>
3890
3891 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3892 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3893 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3894 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3895 (nbsd_get_siginfo_type): New.
3896 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3897 (_initialize_nbsd_tdep): New.
3898
d70f978b
L
38992020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3900
3901 PR binutils/26301
3902 * configure: Regenerated.
3903
377170fa
L
39042020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3905
3906 PR binutils/26301
3907 * configure: Regenerated.
3908
43d5901d
AB
39092020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3910
3911 * python/py-frame.c: Remove 'user-regs.h' include.
3912 (frapy_read_register): Rewrite to make use of
3913 gdbpy_parse_register_id.
3914 * python/py-registers.c (gdbpy_parse_register_id): New function,
3915 moved here from python/py-unwind.c. Updated the return type, and
3916 also accepts register descriptor objects.
3917 * python/py-unwind.c: Remove 'user-regs.h' include.
3918 (pyuw_parse_register_id): Moved to python/py-registers.c.
3919 (unwind_infopy_add_saved_register): Update to use
3920 gdbpy_parse_register_id.
3921 (pending_framepy_read_register): Likewise.
3922 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3923
14fa8fb3
AB
39242020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3925
3926 * python/py-registers.c: Add 'user-regs.h' include.
3927 (register_descriptor_iter_find): New function.
3928 (register_descriptor_iterator_object_methods): New static global
3929 methods array.
3930 (register_descriptor_iterator_object_type): Add pointer to methods
3931 array.
3932
ddce1758
JB
39332020-07-27 John Baldwin <jhb@FreeBSD.org>
3934
3935 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3936 for all architectures on FreeBSD 11.3 and later.
3937
a4089f52
TT
39382020-07-27 Tom Tromey <tromey@adacore.com>
3939
3940 * gcore.h (load_corefile): Don't declare.
3941
95420d30
TV
39422020-07-27 Tom de Vries <tdevries@suse.de>
3943
3944 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3945 * config.in: Regenerate.
3946 * configure: Regenerate.
3947
05a6b8c2
EZ
39482020-07-26 Eli Zaretskii <eliz@gnu.org>
3949
3950 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3951 ws2tcpip.h. When checking whether socklen_t type is defined, use
3952 ws2tcpip.h if it is available and sys/socket.h isn't.
3953 * configure: Regenerate.
3954 * config.in: Regenerate.
3955
e79eb02f
AB
39562020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3957
3958 PR fortran/23051
3959 PR fortran/26139
3960 * valops.c (value_ind): Pass address to
3961 readjust_indirect_value_type.
3962 * value.c (readjust_indirect_value_type): Make parameter
3963 non-const, and add extra address parameter. Resolve original type
3964 before using it.
3965 * value.h (readjust_indirect_value_type): Update function
3966 signature and comment.
3967
876518dd
TV
39682020-07-25 Tom de Vries <tdevries@suse.de>
3969
3970 PR symtab/26243
3971 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3972 entries.
3973
f6720b1c
AM
39742020-07-24 Aaron Merey <amerey@redhat.com>
3975
3976 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3977 * configure: Rebuild.
3978
513487e1
KB
39792020-07-23 Kevin Buettner <kevinb@redhat.com>
3980
3981 PR corefiles/26294
3982 * corelow.c (_initialize_corelow): Add period to help text
3983 for "maintenance print core-file-backed-mappings".
3984
e7bc9db8
PA
39852020-07-23 Pedro Alves <pedro@palves.net>
3986
3987 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3988 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3989 meanwhile.
3990 * frame.c (frame_cache_generation, get_frame_cache_generation):
3991 New.
3992 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3993 (get_prev_frame_if_no_cycle): On exception, don't touch
3994 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3995 * frame.h (get_frame_cache_generation): Declare.
3996
90fcc466
TV
39972020-07-23 Tom de Vries <tdevries@suse.de>
3998
3999 PR tui/26282
4000 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4001 New default constructor.
4002
78344df7
AB
40032020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4004
4005 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4006 exclude non-statement entries.
4007
b089853a
KB
40082020-07-22 Kevin Buettner <kevinb@redhat.com>
4009
4010 * NEWS (New commands): Mention new command
4011 "maintenance print core-file-backed-mappings".
4012
09c2f5d4
KB
40132020-07-22 Kevin Buettner <kevinb@redhat.com>
4014
4015 * corelow.c (gdbcmd.h): Include.
4016 (core_target::info_proc_mappings): New method.
4017 (get_current_core_target): New function.
4018 (maintenance_print_core_file_backed_mappings): New function.
4019 (_initialize_corelow): Add core-file-backed-mappings to
4020 "maint print" commands.
4021
9c5ec5c2 40222020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 4023
9c5ec5c2
KB
4024 * linux-tdep.c (dump_note_entry_p): New function.
4025 (linux_dump_mapping_p_ftype): New typedef.
4026 (linux_find_memory_regions_full): Add new parameter,
4027 should_dump_mapping_p.
4028 (linux_find_memory_regions): Adjust call to
4029 linux_find_memory_regions_full.
4030 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4031 call to linux_find_memory_regions_full.
4032
db082f59
KB
40332020-07-22 Kevin Buettner <kevinb@redhat.com>
4034
4035 * corelow.c (solist.h, unordered_map): Include.
4036 (class core_target): Add field m_core_file_mappings and
4037 method build_file_mappings.
4038 (core_target::core_target): Call build_file_mappings.
4039 (core_target::~core_target): Free memory associated with
4040 m_core_file_mappings.
4041 (core_target::build_file_mappings): New method.
4042 (core_target::xfer_partial): Use m_core_file_mappings
4043 for memory transfers.
4044 * linux-tdep.c (linux_read_core_file_mappings): New
4045 function.
4046 (linux_core_info_proc_mappings): Rewrite to use
4047 linux_read_core_file_mappings.
4048 (linux_init_abi): Register linux_read_core_file_mappings.
4049
7e183d27
KB
40502020-07-22 Kevin Buettner <kevinb@redhat.com>
4051
4052 * arch-utils.c (default_read_core_file_mappings): New function.
4053 * arch-utils.c (default_read_core_file_mappings): Declare.
4054 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4055 * gdbarch.h, gdbarch.c: Regenerate.
4056
2735d421
KB
40572020-07-22 Kevin Buettner <kevinb@redhat.com>
4058
4059 PR corefiles/25631
4060 * corelow.c (core_target:xfer_partial): Revise
4061 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4062 case after first checking the stratum beneath the core
4063 target.
4064 (has_all_memory): Return true.
4065 * target.c (raw_memory_xfer_partial): Revise comment
4066 regarding use of has_all_memory.
4067
e56cb451
KB
40682020-07-22 Kevin Buettner <kevinb@redhat.com>
4069
4070 * exec.h (section_table_xfer_memory): Revise declaration,
4071 replacing section name parameter with an optional callback
4072 predicate.
4073 * exec.c (section_table_xfer_memory): Likewise.
4074 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4075 of section_table_xfer_memory.
4076
32fa152e
TT
40772020-07-22 Tom Tromey <tromey@adacore.com>
4078
4079 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4080 lookup_symbol_search_name.
4081
a67a1c41
AB
40822020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4083
4084 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4085 redundant local variable.
4086 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4087 reference, not pointer, update code accordingly.
4088
a7b4ff4f
SM
40892020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4090 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4091
4092 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4093 * jit.c (jit_breakpoint_re_set_internal): Use the
4094 `skip_jit_symbol_lookup` field.
4095
2340e834
SM
40962020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4097 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4098
4099 * jit.c (jit_read_descriptor): Define the descriptor address once,
4100 use twice.
4101 (jit_breakpoint_deleted): Move the declaration of the loop variable
4102 `iter` into the loop header.
4103 (jit_breakpoint_re_set_internal): Move the declaration of the local
4104 variable `objf_data` to the first point of definition.
4105 (jit_event_handler): Move the declaration of local variables
4106 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4107 Rename `objf` to `jited`.
4108
c1072906
SM
41092020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4110
4111 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4112 Remove.
4113 * jit.c (get_jiter_objfile_data): Update.
4114
c8474dc3
TBA
41152020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4116 Simon Marchi <simon.marchi@polymtl.ca>
4117
4118 * jit.c (struct jit_program_space_data): Remove.
4119 (jit_program_space_key): Remove.
4120 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4121 stuff.
4122 (get_jit_program_space_data): Remove.
4123 (jit_breakpoint_deleted): Iterate on all of the program space's
4124 objfiles.
4125 (jit_inferior_init): Likewise.
4126 (jit_breakpoint_re_set_internal): Likewise. Also change return
4127 type to void.
4128 (jit_breakpoint_re_set): Pass current_program_space to
4129 jit_breakpoint_re_set_internal.
4130
77208eb7
SM
41312020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4132
4133 * jit.h (struct jiter_objfile_data) <cached_code_address,
4134 jit_breakpoint>: Move to here from ...
4135 * jit.c (jit_program_space_data): ... here.
4136 (jiter_objfile_data::~jiter_objfile_data): Update.
4137 (jit_breakpoint_deleted): Update.
4138 (jit_breakpoint_re_set_internal): Update.
4139
8c1c720f
SM
41402020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4141
4142 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4143 checks.
4144 (jit_read_descriptor): Remove NULL check.
4145 (jit_event_handler): Add an assertion.
4146
0e74a041
SM
41472020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4148
4149 * jit.h (struct jit_objfile_data): Split into...
4150 (struct jiter_objfile_data): ... this ...
4151 (struct jited_objfile_data): ... and this.
4152 * objfiles.h (struct objfile) <jit_data>: Remove.
4153 <jiter_data, jited_data>: New fields.
4154 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4155 (jiter_objfile_data::~jiter_objfile_data): ... this.
4156 (get_jit_objfile_data): Rename to ...
4157 (get_jiter_objfile_data): ... this.
4158 (add_objfile_entry): Update.
4159 (jit_read_descriptor): Use get_jiter_objfile_data.
4160 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4161 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4162 (jit_inferior_exit_hook): Use objfile's jited_data field.
4163
238b5c9f
SM
41642020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4165
4166 * jit.h: Forward-declare `struct minimal_symbol`.
4167 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4168 constructor, destructor, and an objfile* field.
4169 * jit.c (jit_objfile_data): Remove.
4170 (struct jit_objfile_data): Migrate from here to jit.h.
4171 (jit_objfile_data::~jit_objfile_data): New destructor
4172 implementation with code moved from free_objfile_data.
4173 (free_objfile_data): Delete.
4174 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4175 (jit_find_objf_with_entry_addr): Ditto.
4176 (jit_inferior_exit_hook): Ditto.
4177 (_initialize_jit): Remove the call to
4178 register_objfile_data_with_cleanup.
4179 * objfiles.h (struct objfile) <jit_data>: New field.
4180
fe053b9e
TBA
41812020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4182
4183 * jit.h: Forward-declare `struct objfile`.
4184 (jit_event_handler): Add a second parameter, the JITer objfile.
4185 * jit.c (jit_read_descriptor): Change the signature to take the
4186 JITer objfile as an argument instead of the jit_program_space_data.
4187 (jit_inferior_init): Update the call to jit_read_descriptor.
4188 (jit_event_handler): Use the new JITer objfile argument when calling
4189 jit_read_descriptor.
4190 * breakpoint.c (handle_jit_event): Update the call to
4191 jit_event_handler to pass the JITer objfile.
4192
4cec0c66
JB
41932020-07-21 John Baldwin <jhb@FreeBSD.org>
4194
4195 * gdbarch.c: Regenerate.
4196 * gdbarch.h: Regenerate.
4197 * gdbarch.sh (handle_segmentation_fault): Remove method.
4198 * infrun.c (handle_segmentation_fault): Remove.
4199 (print_signal_received_reason): Remove call to
4200 handle_segmentation_fault.
4201
0e42f66a
JB
42022020-07-21 John Baldwin <jhb@FreeBSD.org>
4203
4204 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4205 Rename to sparc64_linux_report_signal_info and add siggnal
4206 argument.
4207 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4208 instead of sparc64_linux_handle_segmentation_fault.
4209
77bdfeb2
JB
42102020-07-21 John Baldwin <jhb@FreeBSD.org>
4211
4212 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4213 i386_linux_report_signal_info instead of
4214 i386_linux_handle_segmentation_fault.
4215 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4216 to i386_linux_report_signal_info and add siggnal argument.
4217 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4218 of i386_linux_handle_segmentation_fault.
4219 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4220 to i386_linux_report_signal_info and add siggnal argument.
4221
ad97bfc5
JB
42222020-07-21 John Baldwin <jhb@FreeBSD.org>
4223
4224 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4225 hook if present.
4226
272bb05c
JB
42272020-07-21 John Baldwin <jhb@FreeBSD.org>
4228
4229 * gdbarch.c: Regenerate.
4230 * gdbarch.h: Regenerate.
4231 * gdbarch.sh (report_signal_info): New method.
4232 * infrun.c (print_signal_received_reason): Invoke gdbarch
4233 report_signal_info hook if present.
4234
baf8791e
AB
42352020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4236
4237 * python/py-registers.c : Add 'unordered_map' include.
4238 (gdbpy_new_reggroup): Renamed to...
4239 (gdbpy_get_reggroup): ...this. Update to only create register
4240 group descriptors when needed.
4241 (gdbpy_reggroup_iter_next): Update.
4242
f7306dac
AB
42432020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4244
4245 * python/py-registers.c (gdbpy_register_object_data): New static
4246 global.
4247 (gdbpy_register_object_data_init): New function.
4248 (gdbpy_new_register_descriptor): Renamed to...
4249 (gdbpy_get_register_descriptor): ...this, and update to reuse
4250 existing register descriptors where possible.
4251 (gdbpy_register_descriptor_iter_next): Update.
4252 (gdbpy_initialize_registers): Register new gdbarch data.
4253
05c309a8
SM
42542020-07-21 Simon Marchi <simon.marchi@efficios.com>
4255
4256 * linux-nat.c (stopped_pids): Make static.
4257
d1fd641e
SM
42582020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4259
4260 PR ada/26235
4261 * gdbtypes.c (ada_discrete_type_low_bound,
4262 ada_discrete_type_high_bound): Handle undefined bounds.
4263
1de14d77
KR
42642020-07-21 Kamil Rytarowski <n54@gmx.com>
4265
4266 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4267 declaration.
4268 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4269 function.
4270
ed810cc7
JB
42712020-07-20 John Baldwin <jhb@FreeBSD.org>
4272
4273 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4274 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4275 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4276 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4277 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4278 method.
4279
ae5369e7
LC
42802020-07-20 Ludovic Courtès <ludo@gnu.org>
4281
4282 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4283 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4284 which are deprecated in Guile 3.0.
4285 * configure.ac (try_guile_versions): Add "guile-3.0".
4286 * configure (try_guile_versions): Regenerate.
4287 * NEWS: Update entry.
4288
68cf161c
LC
42892020-07-20 Ludovic Courtès <ludo@gnu.org>
4290 Doug Evans <dje@google.com>
4291
4292 PR gdb/21104
4293 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4294 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4295 USING_GUILE_BEFORE_2_2.
4296 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4297 Change type to 'scm_t_port_type *'.
4298 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4299 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4300 parameter and honor it. Update callers.
4301 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4302 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4303 functions.
4304 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4305 USING_GUILE_BEFORE_2_2.
4306 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4307 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4308 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4309 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4310 and 'SCM_PORT_TYPE'.
4311 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4312 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4313 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4314 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4315 [!USING_GUILE_BEFORE_2_2]: New functions.
4316 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4317 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4318 'gdbscm_memory_port_read'.
4319 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4320 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4321 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4322 function.
4323 (ioscm_init_memory_port): Remove.
4324 (ioscm_init_memory_port_stream): New function
4325 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4326 function.
4327 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4328 Return scm_from_uint (0).
4329 (gdbscm_set_memory_port_read_buffer_size_x)
4330 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4331 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4332 Return scm_from_uint (0).
4333 (gdbscm_set_memory_port_write_buffer_size_x)
4334 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4335 * configure.ac (try_guile_versions): Add "guile-2.2".
4336 * configure: Regenerate.
4337 * NEWS: Add entry.
4338
aee91db3
TT
43392020-07-18 Tom Tromey <tom@tromey.com>
4340
4341 * linux-nat.c (linux_multi_process): Remove.
4342 (linux_nat_target::supports_multi_process): Return true.
4343
0e267416
AB
43442020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4345
4346 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4347 (riscv_lookup_target_description): Return pointer out of
4348 unique_ptr.
4349 * target-descriptions.c (allocate_target_description): Add
4350 comment.
4351 (target_desc_deleter::operator()): Likewise.
4352 * target-descriptions.h (struct target_desc_deleter): Moved to
4353 gdbsupport/tdesc.h.
4354 (target_desc_up): Likewise.
4355
f80c8ec4
TT
43562020-07-17 Tom Tromey <tromey@adacore.com>
4357
4358 * linux-nat.c (linux_nat_target::supports_non_stop)
4359 (linux_nat_target::always_non_stop_p): Use "true".
4360 (linux_nat_target::supports_disable_randomization): Use "true" and
4361 "false".
4362
d0ce17d8
CT
43632020-07-16 Caroline Tice <cmtice@google.com>
4364
4365 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4366 (RNGLIST_HEADER_SIZE64): New constant definition.
4367 (struct dwop_section_names): Add rnglists_dwo.
4368 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4369 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4370 (struct dwo_sections): Add rnglists field.
4371 (read_attribut_reprocess): Add tag parameter.
4372 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4373 (cu_debug_rnglists_section): New function (decl & definition).
4374 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4375 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4376 die whose range is being checked; get rnglist section from
4377 cu_debug_rnglists_section, to get from either objfile or dwo file as
4378 appropriate. Add cases for DW_RLE_base_addressx,
4379 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4380 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4381 test inside if-condition and updating complaint message.
4382 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4383 dwarf2_rnglists_process.
4384 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4385 dwarf2_ranges_process.
4386 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4387 need_ranges_base and update comment appropriately. Also pass die tag
4388 to dwarf2_ranges_read.
4389 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4390 need_ranges_base and update comment appropriately. Also pass die tag
4391 to dwarf2_ranges_process.
4392 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4393 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4394 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4395 need_ranges_base and update comment appropriately. Also pass die tag
4396 to read_attribute_reprocess and dwarf2_ranges_read.
4397 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4398 and update function comment appropriately.
4399 (read_loclist_index): Call read_loclists_rnglists_header instead of
4400 read_loclist_header.
4401 (read_rnglist_index): New function.
4402 (read_attribute_reprocess): Add tag parameter. Add code for
4403 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4404 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4405
3dcc261c
AB
44062020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4407
4408 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4409 being resolved.
4410
ccb9eba6
AB
44112020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4412
4413 * arch-utils.c (show_architecture): Update formatting of messages.
4414
cf88be68
SM
44152020-07-12 Simon Marchi <simon.marchi@efficios.com>
4416
4417 * gdbtypes.h (struct type) <bounds>: Handle array and string
4418 types.
4419 * ada-lang.c (assign_aggregate): Use type::bounds on
4420 array/string type.
4421 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4422 * c-varobj.c (c_number_of_children): Likewise.
4423 (c_describe_child): Likewise.
4424 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4425 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4426 (f_type_print_base): Likewise.
4427 * f-valprint.c (f77_array_offset_tbl): Likewise.
4428 (f77_get_upperbound): Likewise.
4429 (f77_print_array_1): Likewise.
4430 * guile/scm-type.c (gdbscm_type_range): Likewise.
4431 * m2-typeprint.c (m2_array): Likewise.
4432 (m2_is_long_set_of_type): Likewise.
4433 * m2-valprint.c (get_long_set_bounds): Likewise.
4434 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4435 * python/py-type.c (typy_range): Likewise.
4436 * rust-lang.c (rust_internal_print_type): Likewise.
4437 * type-stack.c (type_stack::follow_types): Likewise.
4438 * valarith.c (value_subscripted_rvalue): Likewise.
4439 * valops.c (value_cast): Likewise.
4440
509971ae
SM
44412020-07-12 Simon Marchi <simon.marchi@efficios.com>
4442
4443 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4444 callers to use the equivalent accessor methods.
4445
107406b7
SM
44462020-07-12 Simon Marchi <simon.marchi@efficios.com>
4447
4448 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4449 (struct type) <bit_stride>: New method.
4450 (TYPE_BIT_STRIDE): Remove.
4451 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4452
bb789949
SM
44532020-07-12 Simon Marchi <simon.marchi@efficios.com>
4454
4455 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4456 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4457 callers to use the equivalent accessor methods instead.
4458
39498edb
SM
44592020-07-12 Simon Marchi <simon.marchi@efficios.com>
4460
4461 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4462 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4463 callers to use the equivalent accessor methods instead.
4464
3b606f38
SM
44652020-07-12 Simon Marchi <simon.marchi@efficios.com>
4466
4467 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4468 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4469 to use dynamic_prop::kind.
4470
064d9cb9
SM
44712020-07-12 Simon Marchi <simon.marchi@efficios.com>
4472
4473 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4474 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4475 to get the bound property's kind and check against
4476 PROP_UNDEFINED.
4477
5537ddd0
SM
44782020-07-12 Simon Marchi <simon.marchi@efficios.com>
4479
4480 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4481 all callers to use type::range_bounds followed by
4482 dynamic_prop::{low,high}.
4483
8c2e4e06
SM
44842020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4485
4486 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4487 const_val, set_const_val, baton, set_locexpr, set_loclist,
4488 set_addr_offset, variant_parts, set_variant_parts,
4489 original_type, set_original_type>: New methods.
4490 <kind>: Rename to...
4491 <m_kind>: ... this. Update all users to use the new methods
4492 instead.
4493 <data>: Rename to...
4494 <m_data>: ... this. Update all users to use the new methods
4495 instead.
4496
7c6f2712
SM
44972020-07-12 Simon Marchi <simon.marchi@efficios.com>
4498
4499 * gdbtypes.c (get_discrete_bounds): Return failure if
4500 the range type's bounds are not both defined and constant
4501 values.
4502 (get_array_bounds): Update comment. Remove undefined bound check.
4503
599088e3
SM
45042020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4505
4506 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4507 the type::bounds method directly.
4508
c4dfcb36
SM
45092020-07-12 Simon Marchi <simon.marchi@efficios.com>
4510
4511 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4512 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4513 are used to set the range type's bounds to use set_bounds.
4514
0a278aa7
PW
45152020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4516
4517 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4518
cce20f10
PA
45192020-07-10 Pedro Alves <pedro@palves.net>
4520
4521 * gdbthread.h (inferior_ref): Define.
4522 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4523 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4524 * thread.c
4525 (scoped_restore_current_thread::restore):
4526 Adjust to gdb::ref_ptr.
4527 (scoped_restore_current_thread::~scoped_restore_current_thread):
4528 Remove manual decref handling.
4529 (scoped_restore_current_thread::scoped_restore_current_thread):
4530 Adjust to use
4531 inferior_ref::new_reference/thread_info_ref::new_reference.
4532 Incref the thread before calling get_frame_id instead of after.
4533 Let TARGET_CLOSE_ERROR propagate.
4534
6d7aa592
PA
45352020-07-10 Pedro Alves <pedro@palves.net>
4536
4537 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4538 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4539 NOT_AVAILABLE_ERROR.
4540 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4541 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4542
b3e3a4c1
SM
45432020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4544 Pedro Alves <pedro@palves.net>
4545
4546 PR gdb/26199
4547 * infrun.c (threads_are_resumed_pending_p): Delete.
4548 (do_target_wait): Remove threads_are_executing and
4549 threads_are_resumed_pending_p checks from the inferior_matches
4550 lambda. Update comments.
4551
d6cc5d98
PA
45522020-07-10 Pedro Alves <pedro@palves.net>
4553
4554 PR gdb/26199
4555 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4556 executing threads.
4557
7d3badc6
PA
45582020-07-10 Pedro Alves <pedro@palves.net>
4559
4560 PR gdb/26199
4561 * infrun.c (handle_no_resumed): Handle multiple targets.
4562
42bd97a6
PA
45632020-07-10 Pedro Alves <pedro@palves.net>
4564
4565 PR gdb/26199
4566 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4567 target_is_async_p.
4568
43667cc6
PA
45692020-07-10 Pedro Alves <pedro@palves.net>
4570
4571 PR gdb/26199
4572 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4573 threads, not all threads.
4574
96118d11
PA
45752020-07-10 Pedro Alves <pedro@palves.net>
4576
4577 PR gdb/26199
4578 * remote.c (remote_target::open_1): Pass remote target pointer as
4579 data to create_async_event_handler.
4580 (remote_async_inferior_event_handler): Mark async event handler
4581 before returning if the remote target still has either pending
4582 events or unacknowledged notifications.
4583
54904d81
JB
45842020-07-10 John Baldwin <jhb@FreeBSD.org>
4585
4586 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4587 declaration.
4588 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4589 function.
4590
f37e5866
JB
45912020-07-09 John Baldwin <jhb@FreeBSD.org>
4592
4593 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4594 inferior_ptid.
4595
fc238d4a
JB
45962020-07-09 John Baldwin <jhb@FreeBSD.org>
4597
4598 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4599 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4600 AT_FREEBSD_PS_STRINGS.
4601
6e2469ff
HD
46022020-07-08 Hannes Domani <ssbssa@yahoo.de>
4603
4604 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4605 of debugfile path on Windows.
4606
d1076c41
JB
46072020-07-08 John Baldwin <jhb@FreeBSD.org>
4608
4609 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4610 argument to 'data'.
4611
15f3b077
TT
46122020-07-08 Tom Tromey <tromey@adacore.com>
4613
4614 * ada-lang.c (ada_exception_message_1): Use read_memory.
4615
9fc501fd
AB
46162020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4617
4618 PR python/22748
4619 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4620 special handling for inline frames.
4621 * findvar.c (value_of_register_lazy): Skip inline frames when
4622 creating lazy register values.
4623 * frame.c (frame_id_computed_p): Delete definition.
4624 * frame.h (frame_id_computed_p): Delete declaration.
4625
64cb3757
AB
46262020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4627
4628 * NEWS: Mention additions to Python API.
4629 * python/py-arch.c (archpy_register_groups): New function.
4630 (arch_object_methods): Add 'register_groups' method.
4631 * python/py-registers.c (reggroup_iterator_object): New struct.
4632 (reggroup_object): New struct.
4633 (gdbpy_new_reggroup): New function.
4634 (gdbpy_reggroup_to_string): New function.
4635 (gdbpy_reggroup_name): New function.
4636 (gdbpy_reggroup_iter): New function.
4637 (gdbpy_reggroup_iter_next): New function.
4638 (gdbpy_new_reggroup_iterator): New function
4639 (gdbpy_initialize_registers): Register new types.
4640 (reggroup_iterator_object_type): Define new Python type.
4641 (gdbpy_reggroup_getset): New static global.
4642 (reggroup_object_type): Define new Python type.
4643 * python/python-internal.h
4644
0f767f94
AB
46452020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4646
4647 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4648 * python/py-arch.c (archpy_registers): New function.
4649 (arch_object_methods): Add 'registers' method.
4650 * python/py-registers.c: New file.
4651 * python/python-internal.h
4652 (gdbpy_new_register_descriptor_iterator): Declare.
4653 (gdbpy_initialize_registers): Declare.
4654 * python/python.c (do_start_initialization): Call
4655 gdbpy_initialize_registers.
4656 * NEWS: Mention additions to the Python API.
4657
87dbc774
AB
46582020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4659
4660 * NEWS: Mention new Python API method.
4661 * python/py-unwind.c (pending_framepy_architecture): New function.
4662 (pending_frame_object_methods): Add architecture method.
4663
3bc98c0c
AB
46642020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4665
4666 * gdbarch.c: Regenerate.
4667 * gdbarch.h: Regenerate.
4668 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4669 (gdbarch_data): Use internal_error for the case where
4670 deprecated_set_gdbarch_data was originally needed.
4671 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4672 and use passed in obstack.
4673 (libunwind_frame_set_descr): Should no longer get back NULL from
4674 gdbarch_data.
4675 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4676 type.
4677 * user-regs.c (user_regs_init): Update parameters, and use passed
4678 in obstack.
4679 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4680 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4681
d8cc8af6
TV
46822020-07-06 Tom de Vries <tdevries@suse.de>
4683
4684 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4685 End-Of-Sequence in lte_is_less_than.
4686 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4687 "gdb: Don't reorder line table entries too much when sorting".
4688
947f7597
TV
46892020-07-06 Tom de Vries <tdevries@suse.de>
4690
4691 PR tui/26205
4692 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4693
1e7c1b22
TV
46942020-07-05 Tom de Vries <tdevries@suse.de>
4695
4696 PR build/26187
4697 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4698 std::uncaught_exceptions instead of deprecated
4699 std::uncaught_exception.
4700
a36158ec
SM
47012020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4702
4703 * macroexp.h (macro_stringify): Return
4704 gdb::unique_xmalloc_ptr<char>.
4705 * macroexp.c (macro_stringify): Likewise.
4706 * macrotab.c (fixup_definition): Update.
4707
14d960c8
SM
47082020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4709
4710 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4711 (lex_one_token): Update.
4712 * macroexp.c (struct macro_buffer) <release>: Return
4713 gdb::unique_xmalloc_ptr<char>.
4714 (macro_stringify): Update.
4715 (macro_expand): Update.
4716 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4717 * macroexp.h (macro_expand_next): Likewise.
4718
211d5b1c
SM
47192020-07-02 Simon Marchi <simon.marchi@efficios.com>
4720
4721 * macroexp.h (macro_lookup_ftype): Remove.
4722 (macro_expand, macro_expand_once, macro_expand_next): Remove
4723 lookup function parameters, add scope parameter.
4724 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4725 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4726 * macroscope.h (standard_macro_lookup): Change parameter type
4727 to macro_scope.
4728 * macroscope.c (standard_macro_lookup): Likewise.
4729 * c-exp.y (lex_one_token): Update.
4730 * macrocmd.c (macro_expand_command): Likewise.
4731 (macro_expand_once_command): Likewise.
4732
b1a35af2
SM
47332020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4734
4735 * inf-loop.c (inferior_event_handler): Remove client_data param.
4736 * inf-loop.h (inferior_event_handler): Likewise.
4737 * infcmd.c (step_1): Adjust.
4738 * infrun.c (proceed): Adjust.
4739 (fetch_inferior_event): Remove client_data param.
4740 (infrun_async_inferior_event_handler): Adjust.
4741 * infrun.h (fetch_inferior_event): Remove `void *` param.
4742 * linux-nat.c (handle_target_event): Adjust.
4743 * record-btrace.c (record_btrace_handle_async_inferior_event):
4744 Adjust.
4745 * record-full.c (record_full_async_inferior_event_handler):
4746 Adjust.
4747 * remote.c (remote_async_inferior_event_handler): Adjust.
4748
1cdf9e33
TT
47492020-07-01 Tom Tromey <tom@tromey.com>
4750
4751 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4752 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4753
32c1e210
TT
47542020-07-01 Tom Tromey <tom@tromey.com>
4755
4756 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4757 tui_gen_win_info.
4758 (tui_win_info::make_window): Merge with
4759 tui_gen_win_info::make_window.
4760 (tui_win_info::make_visible): Move from tui_gen_win_info.
4761 * tui/tui-win.c (tui_win_info::max_width): Move from
4762 tui_gen_win_info.
4763 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4764 type.
4765 <window_factory>: Likewise.
4766 * tui/tui-layout.c (tui_win_info::resize): Move from
4767 tui_gen_win_info.
4768 (make_standard_window): Change return type.
4769 (get_locator_window, tui_get_window_by_name): Likewise.
4770 (tui_layout_window::apply): Remove a cast.
4771 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4772 (struct tui_win_info): Merge with tui_gen_win_info.
4773 (struct tui_gen_win_info): Remove.
4774
a30cb6da
TT
47752020-07-01 Tom Tromey <tom@tromey.com>
4776
4777 * tui/tui-stack.h (struct tui_locator_window): Derive from
4778 tui_win_info.
4779 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4780 <can_box>: New method.
4781
1eb2161f
TT
47822020-07-01 Tom Tromey <tom@tromey.com>
4783
4784 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4785
7134f2eb
TT
47862020-07-01 Tom Tromey <tom@tromey.com>
4787
4788 * tui/tui-regs.c (tui_data_window::display_registers_from)
4789 (tui_data_window::display_registers_from)
4790 (tui_data_window::first_data_item_displayed)
4791 (tui_data_window::delete_data_content_windows): Update.
4792 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4793 Remove.
4794 (tui_data_window::check_register_values): Update.
4795 (tui_data_item_window::rerender): Add parameters. Update.
4796 (tui_data_item_window::refresh_window): Remove.
4797 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4798 virtual.
4799 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4800 tui_gen_win_info.
4801 <refresh_window, max_height, min_height>: Remove.
4802 <rerender>: Add parameters.
4803 <x, y, visible>: New members.
4804 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4805 <m_item_width>: New member.
4806
22b7b041
TT
48072020-07-01 Tom Tromey <tom@tromey.com>
4808
4809 * tui/tui-regs.c (tui_data_window::show_register_group)
4810 (tui_data_window::check_register_values): Update.
4811 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4812 from item_no.
4813
c9753adb
TT
48142020-07-01 Tom Tromey <tom@tromey.com>
4815
4816 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4817 useless "if".
4818
9ab26b4a
TT
48192020-07-01 Tom Tromey <tom@tromey.com>
4820
4821 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4822 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4823
e555083f
TT
48242020-07-01 Tom Tromey <tom@tromey.com>
4825
4826 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4827 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4828 (struct tui_line_or_address): Move from tui-data.h.
4829 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4830 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4831 (tui_cmd_window, tui_source_window_base, tui_source_window)
4832 (tui_disasm_window): Don't declare.
4833 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4834 to tui-winsource.h.
4835 (SINGLE_KEY): Move to tui-stack.c.
4836
7a02bab7
TT
48372020-07-01 Tom Tromey <tom@tromey.com>
4838
4839 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4840 std::string.
4841 * tui/tui-regs.c (class tab_expansion_file): New.
4842 (tab_expansion_file::write): New method.
4843 (tui_register_format): Change return type. Use
4844 tab_expansion_file.
4845 (tui_get_register, tui_data_window::display_registers_from)
4846 (tui_data_item_window::rerender): Update.
4847 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4848 * tui/tui-io.c (tui_expand_tabs): Remove.
4849
ea68593b
TT
48502020-07-01 Tom Tromey <tom@tromey.com>
4851
4852 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4853
a8caed5d
FS
48542020-07-01 Fangrui Song <maskray@google.com>
4855
4856 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4857
9cdf9820
AKS
48582020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4859
4860 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4861 forms for DW_AT_associated and DW_AT_allocated attributes,
4862 which is already checked in function attr_to_dynamic_prop.
4863
a1520ad8
TT
48642020-06-30 Tom Tromey <tromey@adacore.com>
4865
4866 * dwarf2/read.c (quirk_rust_enum): Correctly call
4867 alloc_rust_variant for default-less enum.
4868
5ac58899
TT
48692020-06-30 Tom Tromey <tromey@adacore.com>
4870
4871 PR build/26183:
4872 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4873 gdb::to_string.
4874
19b187a9
SM
48752020-06-29 Simon Marchi <simon.marchi@efficios.com>
4876
4877 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4878 * gdbarch.h: Re-generate.
4879
cd4c4c07
TT
48802020-06-28 Tom Tromey <tom@tromey.com>
4881
4882 * command.h (cmd_types): Remove.
4883 (cmd_type): Don't declare.
4884 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4885 typedef.
4886 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4887 * cli/cli-decode.c (cmd_type): Remove.
4888
05779d57
PA
48892020-06-27 Pedro Alves <palves@redhat.com>
4890
4891 * fork-child.c (prefork_hook): Adjust.
4892 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4893 Delete.
4894 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4895 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4896 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4897 Remove declarations.
4898 (struct inferior) <set_tty, tty>: New methods.
4899 (struct inferior) <terminal>: Rename to ...
4900 (struct inferior) <m_terminal>: ... this and make private.
4901 * main.c (captured_main_1): Adjust.
4902 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4903 (mi_cmd_inferior_tty_show): Adjust.
4904 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4905 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4906
1776e3e5
NA
49072020-06-26 Nick Alcock <nick.alcock@oracle.com>
4908
4909 * configure.ac: Add --enable-libctf: handle --disable-static
4910 properly.
4911 * acinclude.m4: sinclude ../config/enable.m4.
4912 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4913 (LIBCTF): Substitute in.
4914 (CTF_DEPS): New, likewise.
4915 (CLIBS): libctf needs symbols from libbfd: move earlier.
4916 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4917 flags.
4918 * ctfread.c: Surround in ENABLE_LIBCTF.
4919 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4920 * configure: Regenerate.
4921 * config.in: Likewise.
4922
58373b80
SM
49232020-06-25 Simon Marchi <simon.marchi@efficios.com>
4924
4925 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4926
277474ee
SM
49272020-06-25 Simon Marchi <simon.marchi@efficios.com>
4928
4929 * inferior.h (struct inferior) <terminal>: Change type to
4930 gdb::unique_xmalloc_ptr<char>.
4931 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4932 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4933 field, adjust to unique pointer.
4934 (get_inferior_io_terminal): Adjust to unique pointer.
4935
6d74da72
AB
49362020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4937
4938 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4939 registers, not just the known core set of registers.
4940
2e52d038
AB
49412020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4942
4943 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4944 fflags, frm, and fcsr registers.
4945 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4946 restore groups.
4947 (riscv_tdesc_unknown_reg): New function.
4948 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4949 tdesc_use_registers.
4950 * riscv-tdep.h (struct gdbarch_tdep): Add
4951 unknown_csrs_first_regnum, unknown_csrs_count,
4952 duplicate_fflags_regnum, duplicate_frm_regnum, and
4953 duplicate_fcsr_regnum fields.
4954
be64fd07
AB
49552020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4956
4957 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4958 callback, use the callback (when not null) to help number unknown
4959 registers.
4960 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4961 (tdesc_use_registers): Add extra parameter to declaration.
4962
3b9fce96
AB
49632020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4964
4965 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4966 in the file.
4967 (class riscv_pending_register_alias): Likewise.
4968 (riscv_register_feature::register_info): Change 'required_p' field
4969 to 'required', and change its type. Add 'check' member function.
4970 (riscv_register_feature::register_info::check): Define new member
4971 function.
4972 (riscv_xreg_feature): Change initialisation of 'required' field.
4973 (riscv_freg_feature): Likewise.
4974 (riscv_virtual_feature): Likewise.
4975 (riscv_csr_feature): Likewise.
4976 (riscv_check_tdesc_feature): Take extra parameter, the csr
4977 tdesc_feature, rewrite the function to use the new
4978 riscv_register_feature::register_info::check function.
4979 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4980
865bad26
AB
49812020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4982
4983 * features/Makefile: Remove all references to the deleted files
4984 below.
4985 * features/riscv/32bit-csr.c: Deleted.
4986 * features/riscv/32bit-csr.xml: Deleted.
4987 * features/riscv/64bit-csr.c: Deleted.
4988 * features/riscv/64bit-csr.xml: Deleted.
4989 * features/riscv/rebuild-csr-xml.sh: Deleted.
4990
ed69cbc8
AB
49912020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4992
4993 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4994 whitespace error for declaration of names member variable.
4995 (struct riscv_register_feature): Add new prefer_first_name member
4996 variable, and fix whitespace error in declaration of registers.
4997 (riscv_xreg_feature): Initialize prefer_first_name field.
4998 (riscv_freg_feature): Likewise.
4999 (riscv_virtual_feature): Likewise.
5000 (riscv_csr_feature): Likewise.
5001 (riscv_register_name): Expand on comments. Remove register name
5002 modifications for CSR and virtual registers.
5003
4445e8f5
AB
50042020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5005
5006 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5007 errors.
5008
767a879e
AB
50092020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5010
5011 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5012 riscv-opc.h.
5013 (class riscv_pending_register_alias): New class.
5014 (riscv_check_tdesc_feature): Take vector of pending aliases and
5015 populate it as appropriate.
5016 (riscv_setup_register_aliases): Delete.
5017 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5018 to riscv_check_tdesc_feature in all cases. Use the vector to
5019 create the register aliases.
5020
bb6e55f3
RO
50212020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5022
5023 * sol2-tdep.c (sol2_static_transform_name): Remove.
5024 (sol2_init_abi): Don't register it.
5025 * gdbarch.sh (static_transform_name): Remove.
5026 * gdbarch.c, gdbarch.h: Regenerate.
5027
5028 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5029 gdbarch_static_transform_name.
5030 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5031 * stabsread.c (define_symbol) <'X'>: Remove.
5032 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5033 handling.
5034 <'V'>: Likewise.
5035 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5036 <'S'>: Remove call to gdbarch_static_transform_name.
5037
c6d36836
RO
50382020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5039
5040 * procfs.c (procfs_pre_trace): New function.
5041 (procfs_target::create_inferior): Pass it to fork_inferior.
5042
a7e6196b
RO
50432020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5044
5045 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5046 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5047 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5048 sol2-tdep.o, sparc-sol2-tdep.o.
5049 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5050 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5051 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5052 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5053
d412e696
RO
50542020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5055
5056 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5057 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5058 Call sol2_init_abi.
5059 Remove calls to set_gdbarch_skip_solib_resolver,
5060 set_gdbarch_core_pid_to_str.
5061 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5062 (i386_sol2_static_transform_name): Remove.
5063 (i386_sol2_init_abi): Call sol2_init_abi.
5064 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5065 set_gdbarch_static_transform_name,
5066 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5067 Use sol2_sigtramp_p.
5068 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5069 (sol2_sigtramp_p): New function.
5070 (sol2_static_transform_name): New function.
5071 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5072 (sol2_init_abi): New function.
5073 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5074 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5075 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5076 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5077 (sparc_sol2_static_transform_name): Remove.
5078 (sparc32_sol2_init_abi): Call sol2_init_abi.
5079 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5080 set_gdbarch_static_transform_name,
5081 set_gdbarch_skip_solib_resolver,
5082 set_gdbarch_core_pid_to_str.
5083 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5084 (sparc_sol2_static_transform_name): Remove
5085 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5086 call sol2_sigtramp_p.
5087 (sparc64_sol2_init_abi): Call sol2_init_abi.
5088 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5089 set_gdbarch_static_transform_name,
5090 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5091
a8654e7d
PW
50922020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5093
5094 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5095 * exec.c (validate_exec_file): If from_tty, set both
5096 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5097 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5098 and from_tty, unconditionally ask a confirmation.
5099
caa7fd04
AB
51002020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5101
5102 * target-descriptions.c (tdesc_architecture_name): Protect against
5103 NULL pointer dereference.
5104 (maint_print_xml_tdesc_cmd): New function.
5105 (_initialize_target_descriptions): Register new 'maint print
5106 xml-tdesc' command and give it the filename completer.
5107 * NEWS: Mention new 'maint print xml-tdesc' command.
5108
fbf42f4e
AB
51092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5110
5111 * target-descriptions.c (class tdesc_compatible_info): New class.
5112 (struct target_desc): Change type of compatible vector.
5113 (tdesc_compatible_p): Update for change in type of
5114 target_desc::compatible.
5115 (tdesc_compatible_info_list): New function.
5116 (tdesc_compatible_info_arch_name): New function.
5117 (tdesc_add_compatible): Update for change in type of
5118 target_desc::compatible.
5119 (print_c_tdesc::visit_pre): Likewise.
5120
20821f4e
AB
51212020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5122
5123 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5124 whitespace to underscore.
5125 (maint_print_c_tdesc_cmd): Use fake filename for target
5126 descriptions that came from the target.
5127 (_initialize_target_descriptions): Add filename command completion
5128 for 'maint print c-tdesc'.
5129
1fb5ee62
SM
51302020-06-23 Simon Marchi <simon.marchi@efficios.com>
5131
5132 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5133 lines.
5134
fc3ecb3e
SM
51352020-06-23 Simon Marchi <simon.marchi@efficios.com>
5136
5137 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5138 lines.
5139 (dwarf2_find_location_expression): Likewise.
5140 (call_site_parameter_matches): Likewise.
5141 (dwarf2_compile_expr_to_ax): Likewise.
5142 (disassemble_dwarf_expression): Likewise.
5143 (loclist_describe_location): Likewise.
5144
236ef034
PA
51452020-06-23 Pedro Alves <palves@redhat.com>
5146
5147 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5148 progspace-and-thread.h. Include scoped-mock-context.h instead.
5149 (register_to_value_test): Use scoped_mock_context.
5150 * regcache.c: Include "scoped-mock-context.h".
5151 (cooked_read_test): Don't error out if a target is already pushed.
5152 Use scoped_mock_context. Adjust.
5153 * scoped-mock-context.h: New file.
5154
39e7ecca
AB
51552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5156
5157 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5158 initializer.
5159 (ada_language::is_string_type_p): New member function.
5160 * c-lang.c (c_language_data): Delete la_is_string_type_p
5161 initializer.
5162 (cplus_language_data): Likewise.
5163 (asm_language_data): Likewise.
5164 (minimal_language_data): Likewise.
5165 * d-lang.c (d_language_data): Likewise.
5166 * f-lang.c (f_is_string_type_p): Delete function, implementation
5167 moved to f_language::is_string_type_p.
5168 (f_language_data): Delete la_is_string_type_p initializer.
5169 (f_language::is_string_type_p): New member function,
5170 implementation from f_is_string_type_p.
5171 * go-lang.c (go_is_string_type_p): Delete function, implementation
5172 moved to go_language::is_string_type_p.
5173 (go_language_data): Delete la_is_string_type_p initializer.
5174 (go_language::is_string_type_p): New member function,
5175 implementation from go_is_string_type_p.
5176 * language.c (language_defn::is_string_type_p): Define new member
5177 function.
5178 (default_is_string_type_p): Make static, add comment copied from
5179 header file.
5180 (unknown_language_data): Delete la_is_string_type_p initializer.
5181 (unknown_language::is_string_type_p): New member function.
5182 (auto_language_data): Delete la_is_string_type_p initializer.
5183 (auto_language::is_string_type_p): New member function.
5184 * language.h (language_data): Delete la_is_string_type_p field.
5185 (language_defn::is_string_type_p): Declare new function.
5186 (default_is_string_type_p): Delete desclaration, move comment to
5187 definition.
5188 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5189 moved to m2_language::is_string_type_p.
5190 (m2_language_data): Delete la_is_string_type_p initializer.
5191 (m2_language::is_string_type_p): New member function,
5192 implementation from m2_is_string_type_p.
5193 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5194 initializer.
5195 * opencl-lang.c (opencl_language_data): Likewise.
5196 * p-lang.c (pascal_is_string_type_p): Delete function,
5197 implementation moved to pascal_language::is_string_type_p.
5198 (pascal_language_data): Delete la_is_string_type_p initializer.
5199 (pascal_language::is_string_type_p): New member function,
5200 implementation from pascal_is_string_type_p.
5201 * rust-lang.c (rust_is_string_type_p): Delete function,
5202 implementation moved to rust_language::is_string_type_p.
5203 (rust_language_data): Delete la_is_string_type_p initializer.
5204 (rust_language::is_string_type_p): New member function,
5205 implementation from rust_is_string_type_p.
5206 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5207 is_string_type_p.
5208
4ffc13fb
AB
52092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5210
5211 * ada-lang.c (ada_language_data): Delete la_print_typedef
5212 initializer.
5213 (ada_language::print_typedef): New member function.
5214 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5215 (cplus_language_data): Likewise.
5216 (asm_language_data): Likewise.
5217 (minimal_language_data): Likewise.
5218 * d-lang.c (d_language_data): Likewise.
5219 * f-lang.c (f_language_data): Likewise.
5220 (f_language::print_typedef): New member function.
5221 * go-lang.c (go_language_data): Delete la_print_typedef
5222 initializer.
5223 * language.c (language_defn::print_typedef): Define member
5224 function.
5225 (unknown_language_data): Delete la_print_typedef initializer.
5226 (unknown_language::print_typedef): New member function.
5227 (auto_language_data): Delete la_print_typedef initializer.
5228 (auto_language::print_typedef): New member function.
5229 * language.h (language_data): Delete la_print_typedef field.
5230 (language_defn::print_typedef): Declare new member function.
5231 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5232 (default_print_typedef): Delete declaration.
5233 * m2-lang.c (m2_language_data): Delete la_print_typedef
5234 initializer.
5235 (m2_language::print_typedef): New member function.
5236 * objc-lang.c (objc_language_data): Delete la_print_typedef
5237 initializer.
5238 * opencl-lang.c (opencl_language_data): Likewise.
5239 * p-lang.c (pascal_language_data): Likewise.
5240 (pascal_language::print_typedef): New member function.
5241 * rust-lang.c (rust_print_typedef): Delete function,
5242 implementation moved to rust_language::print_typedef.
5243 (rust_language): Delete la_print_typedef initializer.
5244 (rust_language::print_typedef): New member function,
5245 implementation from rust_print_typedef.
5246 * typeprint.c (default_print_typedef): Delete.
5247
d711ee67
AB
52482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5249
5250 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5251 (ada_language::printstr): New member function.
5252 * c-lang.c (c_language_data): Delete la_printstr initializer.
5253 (cplus_language_data): Likewise.
5254 (asm_language_data): Likewise.
5255 (minimal_language_data): Likewise.
5256 * d-lang.c (d_language_data): Likewise.
5257 * f-lang.c (f_printstr): Rename to f_language::printstr.
5258 (f_language_data): Delete la_printstr initializer.
5259 (f_language::printstr): New member function, implementation from
5260 f_printstr.
5261 * go-lang.c (go_language_data): Delete la_printstr initializer.
5262 * language.c (language_defn::printstr): Define new member
5263 function.
5264 (unk_lang_printstr): Delete.
5265 (unknown_language_data): Delete la_printstr initializer.
5266 (unknown_language::printstr): New member function.
5267 (auto_language_data): Delete la_printstr initializer.
5268 (auto_language::printstr): New member function.
5269 * language.h (language_data): Delete la_printstr field.
5270 (language_defn::printstr): Declare new member function.
5271 (LA_PRINT_STRING): Update call to printstr.
5272 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5273 (m2_language_data): Delete la_printstr initializer.
5274 (m2_language::printstr): New member function, implementation from
5275 m2_printstr.
5276 * objc-lang.c (objc_language_data): Delete la_printstr
5277 initializer.
5278 * opencl-lang.c (opencl_language_data): Likewise.
5279 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5280 (pascal_language_data): Delete la_printstr initializer.
5281 (pascal_language::printstr): New member function, implementation
5282 from pascal_printstr.
5283 * p-lang.h (pascal_printstr): Delete declaration.
5284 * rust-lang.c (rust_printstr): Update header comment.
5285 (rust_language_data): Delete la_printstr initializer.
5286 (rust_language::printstr): New member function.
5287
52b50f2c
AB
52882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5289
5290 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5291 (ada_language::printchar): New member function.
5292 * c-lang.c (c_language_data): Delete la_printchar initializer.
5293 (cplus_language_data): Likewise.
5294 (asm_language_data): Likewise.
5295 (minimal_language_data): Likewise.
5296 * d-lang.c (d_language_data): Likewise.
5297 * f-lang.c (f_printchar): Rename to f_language::printchar.
5298 (f_language_data): Delete la_printchar initializer.
5299 (f_language::printchar): New member function, implementation from
5300 f_printchar.
5301 * go-lang.c (go_language_data): Delete la_printchar initializer.
5302 * language.c (unk_lang_printchar): Delete.
5303 (language_defn::printchar): Define new member function.
5304 (unknown_language_data): Delete la_printchar initializer.
5305 (unknown_language::printchar): New member function.
5306 (auto_language_data): Delete la_printchar initializer.
5307 (auto_language::printchar): New member function.
5308 * language.h (language_data): Delete la_printchar field.
5309 (language_defn::printchar): Declare new member function.
5310 (LA_PRINT_CHAR): Update call to printchar.
5311 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5312 (m2_language::printchar): New member function.
5313 * objc-lang.c (objc_language_data): Delete la_printchar
5314 initializer.
5315 * opencl-lang.c (opencl_language_data): Likewise.
5316 * p-lang.c (pascal_language_data): Delete la_printchar
5317 initializer.
5318 (pascal_language::printchar): New member function.
5319 * rust-lang.c (rust_printchar): Rename to
5320 rust_language::printchar.
5321 (rust_language_data): Delete la_printchar initializer.
5322 (rust_language::printchar): New member function, implementation
5323 from rust_printchar.
5324
ec8cec5b
AB
53252020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5326
5327 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5328 (ada_language_data): Delete la_emitchar initializer.
5329 (ada_language::emitchar): New member function, implementation from
5330 emit_char.
5331 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5332 (cplus_language_data): Likewise.
5333 (asm_language_data): Likewise.
5334 (minimal_language_data): Likewise.
5335 * d-lang.c (d_language_data): Likewise.
5336 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5337 (f_language_data): Delete la_emitchar initializer.
5338 (f_language::emitchar): New member function, implementation from
5339 f_emit_char.
5340 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5341 * language.c (unk_lang_emit_char): Delete.
5342 (language_defn::emitchar): New member function definition.
5343 (unknown_language_data): Delete la_emitchar initializer.
5344 (unknown_language::emitchar): New member function.
5345 (auto_language_data): Delete la_emitchar initializer.
5346 (auto_language::emitchar): New member function.
5347 * language.h (language_data): Delete la_emitchar field.
5348 (language_defn::emitchar): New member field declaration.
5349 (LA_EMIT_CHAR): Update call to emitchar.
5350 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5351 (m2_language_data): Delete la_emitchar initializer.
5352 (m2_language::emitchar): New member function, implementation from
5353 m2_emit_char.
5354 * objc-lang.c (objc_language_data): Delete la_emitchar
5355 initializer.
5356 * opencl-lang.c (opencl_language_data): Likewise.
5357 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5358 (pascal_language_data): Delete la_emitchar initializer.
5359 (pascal_language::emitchar): New member function, implementation
5360 from pascal_emit_char.
5361 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5362 (rust_language_data): Delete la_emitchar initializer.
5363 (rust_language::emitchar): New member function, implementation
5364 from rust_emitchar.
5365
1bf9c363
AB
53662020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5367
5368 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5369 (ada_language_data): Delete la_post_parser initializer.
5370 (ada_language::post_parser): New member function.
5371 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5372 (cplus_language_data): Likewise.
5373 (asm_language_data): Likewise.
5374 (minimal_language_data): Likewise.
5375 * d-lang.c (d_language_data): Likewise.
5376 * f-lang.c (f_language_data): Likewise.
5377 * go-lang.c (go_language_data): Likewise.
5378 * language.c (unknown_language_data): Likewise.
5379 (auto_language_data): Likewise.
5380 * language.h (language_data): Delete la_post_parser field.
5381 (language_defn::post_parser): New member function.
5382 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5383 * objc-lang.c (objc_language_data): Likewise.
5384 * opencl-lang.c (opencl_language_data): Likewise.
5385 * p-lang.c (pascal_language_data): Likewise.
5386 * parse.c (parse_exp_in_context): Update call to post_parser.
5387 (null_post_parser): Delete definition.
5388 * parser-defs.h (null_post_parser): Delete declaration.
5389 * rust-lang.c (rust_language_data): Delete la_post_parser
5390 initializer.
5391
87afa652
AB
53922020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5393
5394 * ada-lang.c (parse): Rename to ada_language::parser.
5395 (ada_language_data): Delete la_parser initializer.
5396 (ada_language::parser): New member function, implementation from
5397 parse.
5398 * c-lang.c (c_language_data): Delete la_parser initializer.
5399 (cplus_language_data): Likewise.
5400 (asm_language_data): Likewise.
5401 (minimal_language_data): Likewise.
5402 * d-lang.c (d_language_data): Likewise.
5403 (d_language::parser): New member function.
5404 * f-lang.c (f_language_data): Delete la_parser initializer.
5405 (f_language::parser): New member function.
5406 * go-lang.c (go_language_data): Delete la_parser initializer.
5407 (go_language::parser): New member function.
5408 * language.c (unk_lang_parser): Delete.
5409 (language_defn::parser): Define new member function.
5410 (unknown_language_data): Delete la_parser initializer.
5411 (unknown_language::parser): New member function.
5412 (auto_language_data): Delete la_parser initializer.
5413 (auto_language::parser): New member function.
5414 * language.h (language_data): Delete la_parser field.
5415 (language_defn::parser): Declare new member function.
5416 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5417 (m2_language::parser): New member function.
5418 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5419 * opencl-lang.c (opencl_language_data): Likewise.
5420 * p-lang.c (pascal_language_data): Likewise.
5421 (pascal_language::parser): New member function.
5422 * parse.c (parse_exp_in_context): Update call to parser.
5423 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5424 (rust_language::parser): New member function.
5425
37825800
AB
54262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5427
5428 * top.c (print_gdb_configuration): Print --with-python-libdir
5429 configuration value.
5430
5b860c93
PW
54312020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5432
5433 * NEWS: Mention change to the alias command.
5434
cf00cd6f
PW
54352020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5436
5437 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5438 (alias_command_completer)
5439 (make_alias_options_def_group): New functions.
5440 (alias_opts, alias_option_defs): New struct and array.
5441 (alias_usage_error): Update usage.
5442 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5443 Use option framework.
5444 (_initialize_cli_cmds): Update alias command help.
5445 Update aliases command help.
5446 (show_user):
5447 Add NULL for new default_args lookup_cmd argument.
5448 (valid_command_p): Rename to validate_aliased_command.
5449 Add NULL for new default_args lookup_cmd argument. Verify that the
5450 aliased_command has no default args.
5451 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5452 (lookup_cmd_1, lookup_cmd): New argument default_args.
5453 (add_alias_cmd):
5454 Add NULL for new default_args lookup_cmd argument.
5455 (print_help_for_command): Show default args under the layout
5456 alias some_alias = some_aliased_cmd some_alias_default_arg.
5457 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5458 xfree default_args in destructor.
5459 * cli/cli-script.c (process_next_line, do_define_command):
5460 Add NULL for new default_args lookup_cmd argument.
5461 * command.h: Declare new default_args argument in lookup_cmd
5462 and lookup_cmd_1.
5463 * completer.c (complete_line_internal_1):
5464 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5465 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5466 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5467 Likewise.
5468 * infcmd.c (_initialize_infcmd): Likewise.
5469 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5470 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5471 * python/py-param.c (add_setshow_generic): Likewise.
5472 * remote.c (_initialize_remote): Likewise.
5473 * top.c (execute_command): Prepend default_args if command has some.
5474 (set_verbose):
5475 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5476 * tracepoint.c (validate_actionline, encode_actions_1):
5477 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5478
bd920864
TBA
54792020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5480
5481 * jit.c (jit_read_descriptor): Use bool as the return type.
5482 (jit_breakpoint_re_set_internal): Use bool as the return type.
5483 Invert the return value logic; return true if the jit breakpoint
5484 has been successfully initialized.
5485 (jit_inferior_init): Update the call to
5486 jit_breakpoint_re_set_internal.
5487
f8098322
PA
54882020-06-22 Pedro Alves <palves@redhat.com>
5489
5490 PR gdb/25939
5491 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5492 Use the current inferior instead. Don't return
5493 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5494 wait again.
5495 * sol-thread.c (sol_thread_target::wait): Don't reference
5496 inferior_ptid.
5497 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5498 (sol_update_thread_list_callback): Use the current inferior's pid
5499 instead of inferior_ptid.
5500
196535a6
RO
55012020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5502
5503 * procfs.c: Cleanup many comments.
5504
5505 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5506 (AFTER_WATCHFLAG): Replace by value.
5507
5508 (MAIN_PROC_NAME_FORMAT): Inline ...
5509 (create_procinfo): ... here.
5510
5511 (procfs_debug_inferior): Remove SYS_exec handling.
5512 (syscall_is_exec): Likewise.
5513 (procfs_set_exec_trap): Likewise.
5514
5515 (syscall_is_lwp_exit): Inline in callers.
5516 (syscall_is_exit): Likewise.
5517 (syscall_is_exec): Likewise.
5518 (syscall_is_lwp_create): Likewise.
5519
5520 (invalidate_cache): Remove #if 0 code.
5521
5522 (make_signal_thread_runnable): Remove.
5523 (procfs_target::resume): Remove #if 0 code.
5524
cf6f3e86
RO
55252020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5526
5527 PR gdb/25939
5528 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5529 call ...
5530 (procfs_target::create_inferior): ... here.
5531
48e9cc84
PW
55322020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5533
5534 * exec.c (validate_exec_file): Ensure the build-id is up to
5535 date by calling reopen_exec_file (that checks file timestamp
5536 to decide to re-read the file).
5537
3922b302
PA
55382020-06-18 Pedro Alves <palves@redhat.com>
5539
5540 PR gdb/25412
5541 * gdbthread.h (delete_thread, delete_thread_silent)
5542 (find_thread_ptid): Update comments.
5543 * thread.c (current_thread_): New global.
5544 (is_current_thread): Move higher, and reimplement.
5545 (inferior_thread): Reimplement.
5546 (set_thread_exited): Use bool. Add assertions.
5547 (add_thread_silent): Simplify thread-reuse handling by always
5548 calling delete_thread.
5549 (delete_thread): Remove intro comment.
5550 (find_thread_ptid): Skip exited threads.
5551 (switch_to_thread_no_regs): Write to current_thread_.
5552 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5553 INFERIOR_PTID. Clear current_thread_.
5554
6dbdab44
PA
55552020-06-18 Pedro Alves <palves@redhat.com>
5556
5557 * aix-thread.c (pd_update): Use switch_to_thread.
5558
2da4b788
PA
55592020-06-18 Pedro Alves <palves@redhat.com>
5560
5561 * ravenscar-thread.c (ravenscar_thread_target): Update.
5562 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5563 (ravenscar_thread_target::add_active_thread): ... this. Don't
5564 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5565 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5566
50838d1b
PA
55672020-06-18 Pedro Alves <palves@redhat.com>
5568
5569 * nat/windows-nat.c (current_windows_thread): Remove.
5570 * nat/windows-nat.h (current_windows_thread): Remove.
5571 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5572 Adjust.
5573 (display_selectors): Adjust to fetch the current
5574 windows_thread_info based on inferior_ptid.
5575 (fake_create_process): No longer write to current_windows_thread.
5576 (windows_nat_target::get_windows_debug_event):
5577 Don't set inferior_ptid or current_windows_thread.
5578 (windows_nat_target::wait): Adjust to not rely on
5579 current_windows_thread.
5580 (do_initial_windows_stuff): Now a method of windows_nat_target.
5581 Switch to the last_ptid thread.
5582 (windows_nat_target::attach): Adjust.
5583 (windows_nat_target::detach): Use switch_to_no_thread instead of
5584 writing to inferior_ptid directly.
5585 (windows_nat_target::create_inferior): Adjust.
5586
31ce04e9
PA
55872020-06-18 Pedro Alves <palves@redhat.com>
5588
5589 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5590
1ee1a363
PA
55912020-06-18 Pedro Alves <palves@redhat.com>
5592
5593 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5594 after creating it, instead of writing to inferior_ptid. Don't
5595 write to inferior_ptid.
5596
6d350754
PA
55972020-06-18 Pedro Alves <palves@redhat.com>
5598
5599 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5600
5d971d48
PA
56012020-06-18 Pedro Alves <palves@redhat.com>
5602
5603 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5604 it, instead of writing to inferior_ptid.
5605
86e57d1b
PA
56062020-06-18 Pedro Alves <palves@redhat.com>
5607
5608 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5609 to inferior_ptid.
5610
f2e1c129
PA
56112020-06-18 Pedro Alves <palves@redhat.com>
5612
5613 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5614 instead of writing to inferior_ptid directly.
5615
60db1b85
PA
56162020-06-18 Pedro Alves <palves@redhat.com>
5617
5618 * corelow.c (core_target::close): Use switch_to_no_thread instead
5619 of writing to inferior_ptid directly.
5620 (add_to_thread_list, core_target_open): Use switch_to_thread
5621 instead of writing to inferior_ptid directly.
5622
fe7d6a8d
PA
56232020-06-18 Pedro Alves <palves@redhat.com>
5624
5625 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5626 inferior_ptid.
5627 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5628 inferior_ptid.
5629 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5630 inferior_ptid directly.
5631 (darwin_nat_target::init_thread_list): Switch to thread, instead
5632 of writing to inferior_ptid.
5633 (darwin_nat_target::attach): Don't write to inferior_ptid.
5634 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5635
975f8708
PA
56362020-06-18 Pedro Alves <palves@redhat.com>
5637
5638 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5639 thread.
5640 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5641 Instead use switch_to_thread.
5642 (gnu_nat_target::detach): Use switch_to_no_thread
5643 instead of writing to inferior_ptid directly. Used passed-in
5644 inferior instead of looking up the inferior by pid.
5645
1a204730
PA
56462020-06-18 Pedro Alves <palves@redhat.com>
5647
5648 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5649 inferior_ptid.
5650
ebe84f23
PA
56512020-06-18 Pedro Alves <palves@redhat.com>
5652
5653 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5654 inferior_ptid.
5655 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5656 thread.
5657 (nto_procfs_target::detach): Avoid referencing
5658 inferior_ptid. Use switch_to_no_thread instead of writing to
5659 inferior_ptid directly.
5660 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5661 instead of writing to inferior_ptid directly.
5662 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5663 to thread.
5664
191f02e5
PA
56652020-06-18 Pedro Alves <palves@redhat.com>
5666
5667 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5668 after creating it, instead of writing to inferior_ptid.
5669 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5670 to inferior_ptid directly.
5671 (gdbsim_target::wait): Don't write to inferior_ptid.
5672
0ac55310
PA
56732020-06-18 Pedro Alves <palves@redhat.com>
5674
5675 * remote.c (remote_target::remote_notice_new_inferior): Use
5676 switch_to_thread instead of writing to inferior_ptid directly.
5677 (remote_target::add_current_inferior_and_thread): Use
5678 switch_to_no_thread instead of writing to inferior_ptid directly.
5679 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5680 and switch_to_thread instead of using set_current_inferior or
5681 writing to inferior_ptid directly.
5682
5233f39b
PA
56832020-06-18 Pedro Alves <palves@redhat.com>
5684
5685 * tracectf.c (ctf_target_open): Switch to added thread instead of
5686 writing to inferior_ptid directly.
5687 (ctf_target::close): Use switch_to_no_thread instead of writing to
5688 inferior_ptid directly.
5689
087e161b
PA
56902020-06-18 Pedro Alves <palves@redhat.com>
5691
5692 * tracefile-tfile.c (tfile_target_open): Don't write to
5693 inferior_ptid directly, instead switch to added thread.
5694 (tfile_target::close): Use switch_to_no_thread instead of writing
5695 to inferior_ptid directly.
5696
7fb43e53
PA
56972020-06-18 Pedro Alves <palves@redhat.com>
5698
5699 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5700 (procfs_target::detach): Use switch_to_no_thread
5701 instead of writing to inferior_ptid directly.
5702 (do_attach): Change return type to void. Switch to the added
5703 thread.
5704 (procfs_target::create_inferior): Switch to the added thread.
5705 (procfs_do_thread_registers): Don't write to inferior_ptid.
5706
18493a00
PA
57072020-06-18 Pedro Alves <palves@redhat.com>
5708
5709 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5710 of writing to inferior_ptid.
5711 (scoped_restore_exited_inferior): Delete.
5712 (handle_vfork_child_exec_or_exit): Simplify using
5713 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5714 instead of writing to inferior_ptid.
5715 (THREAD_STOPPED_BY): Delete.
5716 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5717 (thread_stopped_by_hw_breakpoint): Delete.
5718 (save_waitstatus): Use
5719 scoped_restore_current_thread+switch_to_thread, and call
5720 target_stopped_by_watchpoint instead of
5721 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5722 instead of thread_stopped_by_sw_breakpoint, and
5723 target_stopped_by_hw_breakpoint instead of
5724 thread_stopped_by_hw_breakpoint.
5725 (handle_inferior_event)
5726 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5727 inferior_ptid directly, nor
5728 set_current_inferior/set_current_program_space. Use
5729 switch_to_thread / switch_to_inferior_no_thread instead.
5730
a0776b13
PA
57312020-06-18 Pedro Alves <palves@redhat.com>
5732
5733 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5734 instead of writing to inferior_ptid.
5735
6155c136
PA
57362020-06-18 Pedro Alves <palves@redhat.com>
5737
5738 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5739 added thread.
5740 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5741 to the added thread.
5742 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5743 instead of writing to inferior_ptid.
5744
c5316fc6
PA
57452020-06-18 Pedro Alves <palves@redhat.com>
5746
5747 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5748 (register_to_value_test): Mock a program_space too. Heap-allocate
5749 the address space. Don't write to inferior_ptid. Use
5750 switch_to_thread instead.
5751
8df01799
PA
57522020-06-18 Pedro Alves <palves@redhat.com>
5753
5754 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5755 Delete.
5756 (find_signalled_thread()): New, factored out from
5757 linux_make_corefile_notes and adjusted to handle exited threads.
5758 (linux_make_corefile_notes): Adjust to use the new
5759 find_signalled_thread.
5760
41792d68
PA
57612020-06-18 Pedro Alves <palves@redhat.com>
5762
5763 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5764 of saving/restoring inferior_ptid.
5765
612f258a
TT
57662020-06-17 Tom Tromey <tom@tromey.com>
5767
5768 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5769 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5770 declare.
5771 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5772
efb763a5
SM
57732020-06-15 Simon Marchi <simon.marchi@efficios.com>
5774
5775 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5776 of partial symtabs.
5777
2951f6c0
SM
57782020-06-17 Simon Marchi <simon.marchi@efficios.com>
5779
5780 * regformats/reg-arm.dat: Remove.
5781 * regformats/reg-bfin.dat: Remove.
5782 * regformats/reg-cris.dat: Remove.
5783 * regformats/reg-crisv32.dat: Remove.
5784 * regformats/reg-m32r.dat: Remove.
5785 * regformats/reg-tilegx.dat: Remove.
5786 * regformats/reg-tilegx32.dat: Remove.
5787
7d458ea5
SM
57882020-06-17 Simon Marchi <simon.marchi@efficios.com>
5789
5790 * features/Makefile (WHICH): Remove arm files.
5791 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5792 * regformats/arm/arm-with-neon.dat: Remove.
5793 * regformats/arm/arm-with-vfpv2.dat: Remove.
5794 * regformats/arm/arm-with-vfpv3.dat: Remove.
5795
3af96c0d
SM
57962020-06-17 Simon Marchi <simon.marchi@efficios.com>
5797
5798 * features/Makefile (XMLTOC): Remove rx.xml.
5799
b25e22fd
PA
58002020-06-17 Pedro Alves <palves@redhat.com>
5801
5802 * gdbthread.h (thread_control_state) <trap_expected> Update
5803 comments.
5804
a78a19b1
AB
58052020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5806
5807 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5808 ada_language::lookup_symbol_nonlocal.
5809 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5810 (ada_language::lookup_symbol_nonlocal): New member function,
5811 implementation from ada_lookup_symbol_nonlocal.
5812 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5813 initializer.
5814 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5815 initializer.
5816 (cplus_language::lookup_symbol_nonlocal): New member function.
5817 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5818 (minimal_language_data) Likewise.
5819 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5820 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5821 initializer.
5822 (d_language::lookup_symbol_nonlocal): New member function.
5823 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5824 initializer.
5825 (f_language::lookup_symbol_nonlocal): New member function.
5826 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5827 initializer.
5828 * language.c (unknown_language_data): Likewise.
5829 (auto_language_data): Likewise.
5830 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5831 field.
5832 (language_defn::lookup_symbol_nonlocal): New member function.
5833 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5834 initializer.
5835 * objc-lang.c (objc_language_data): Likewise.
5836 * opencl-lang.c (opencl_language_data): Likewise.
5837 * p-lang.c (pascal_language_data): Likewise.
5838 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5839 rust_language::lookup_symbol_nonlocal.
5840 (rust_language_data): Delete la_lookup_symbol_nonlocal
5841 initializer.
5842 (rust_language::lookup_symbol_nonlocal): New member function,
5843 implementation from rust_lookup_symbol_nonlocal.
5844 * symtab.c (lookup_symbol_aux): Update call to
5845 lookup_symbol_nonlocal.
5846 (basic_lookup_symbol_nonlocal): Rename to...
5847 (language_defn::lookup_symbol_nonlocal): ...this, and update
5848 header comment. Remove language_defn parameter, and replace with
5849 uses of `this'.
5850 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5851
ebe2334e
AB
58522020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5853
5854 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5855 initializer.
5856 (ada_language::value_print_inner): New member function.
5857 * c-lang.c (c_language_data): Delete la_value_print_inner
5858 initializer.
5859 (cplus_language_data): Likewise.
5860 (asm_language_data): Likewise.
5861 (minimal_language_data): Likewise.
5862 * d-lang.c (d_language_data): Likewise.
5863 (d_language::value_print_inner): New member function.
5864 * f-lang.c (f_language_data): Delete la_value_print_inner
5865 initializer.
5866 (f_language::value_print_inner): New member function.
5867 * f-lang.h (f_value_print_innner): Rename to...
5868 (f_value_print_inner): ...this (note spelling of 'inner').
5869 * f-valprint.c (f_value_print_innner): Rename to...
5870 (f_value_print_inner): ...this (note spelling of 'inner').
5871 * go-lang.c (go_language_data): Delete la_value_print_inner
5872 initializer.
5873 (go_language::value_print_inner): New member function.
5874 * language.c (language_defn::value_print_inner): Define new member
5875 function.
5876 (unk_lang_value_print_inner): Delete.
5877 (unknown_language_data): Delete la_value_print_inner initializer.
5878 (unknown_language::value_print_inner): New member function.
5879 (auto_language_data): Delete la_value_print_inner initializer.
5880 (auto_language::value_print_inner): New member function.
5881 * language.h (language_data): Delete la_value_print_inner field.
5882 (language_defn::value_print_inner): Delcare new member function.
5883 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5884 initializer.
5885 (m2_language::value_print_inner): New member function.
5886 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5887 initializer.
5888 * opencl-lang.c (opencl_language_data): Likewise.
5889 * p-lang.c (pascal_language_data): Likewise.
5890 (pascal_language::value_print_inner): New member function.
5891 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5892 initializer.
5893 (rust_language::value_print_inner): New member function.
5894 * valprint.c (do_val_print): Update call to value_print_inner.
5895
a1d1fa3e
AB
58962020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5897
5898 * ada-lang.c (ada_language_data): Delete la_value_print
5899 initializer.
5900 (ada_language::value_print): New member function.
5901 * c-lang.c (c_language_data): Delete la_value_print initializer.
5902 (cplus_language_data): Likewise.
5903 (asm_language_data): Likewise.
5904 (minimal_language_data): Likewise.
5905 * d-lang.c (d_language_data): Likewise.
5906 * f-lang.c (f_language_data): Likewise.
5907 * go-lang.c (go_language_data): Likewise.
5908 * language.c (unk_lang_value_print): Delete.
5909 (language_defn::value_print): Define new member function.
5910 (unknown_language_data): Delete la_value_print initializer.
5911 (unknown_language::value_print): New member function.
5912 (auto_language_data): Delete la_value_print initializer.
5913 (auto_language::value_print): New member function.
5914 * language.h (language_data): Delete la_value_print field.
5915 (language_defn::value_print): Declare new member function.
5916 (LA_VALUE_PRINT): Update call to value_print.
5917 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5918 * objc-lang.c (objc_language_data): Likewise.
5919 * opencl-lang.c (opencl_language_data): Likewise.
5920 * p-lang.c (pascal_language_data): Likewise.
5921 (pascal_language::value_print): New member function.
5922 * rust-lang.c (rust_language_data): Delete la_value_print
5923 initializer.
5924
f16a9f57
AB
59252020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5926
5927 * ada-lang.c (ada_watch_location_expression): Rename to
5928 ada_language::watch_location_expression.
5929 (ada_language_data): Delete la_watch_location_expression
5930 initializer.
5931 (ada_language::watch_location_expression): New member function,
5932 implementation from ada_watch_location_expression.
5933 * breakpoint.c (watch_command_1): Update call to
5934 watch_location_expression.
5935 * c-lang.c (c_watch_location_expression): Rename to
5936 language_defn::watch_location_expression.
5937 (c_language_data): Delete la_watch_location_expression
5938 initializer.
5939 (cplus_language_data): Likewise.
5940 (asm_language_data): Likewise.
5941 (minimal_language_data): Likewise.
5942 * c-lang.h (c_watch_location_expression): Delete declaration.
5943 * d-lang.c (d_language_data): Delete la_watch_location_expression
5944 initializer.
5945 * f-lang.c (f_language_data): Likewise.
5946 * go-lang.c (go_language_data): Likewise.
5947 * language.c (language_defn::watch_location_expression): Member
5948 function implementation from c_watch_location_expression.
5949 (unknown_language_data): Delete la_watch_location_expression
5950 initializer.
5951 (auto_language_data): Likewise.
5952 * language.h (language_data): Delete la_watch_location_expression
5953 field.
5954 (language_defn::watch_location_expression): Declare new member
5955 function.
5956 * m2-lang.c (m2_language_data): Delete
5957 la_watch_location_expression initializer.
5958 * objc-lang.c (objc_language_data): Likewise.
5959 * opencl-lang.c (opencl_language_data): Likewise.
5960 * p-lang.c (pascal_language_data): Likewise.
5961 * rust-lang.c (rust_watch_location_expression): Rename to
5962 rust_language::watch_location_expression.
5963 (rust_language_data): Delete la_watch_location_expression
5964 initializer.
5965 (rust_language::watch_location_expression): New member function,
5966 implementation from rust_watch_location_expression.
5967
7e56227d
AB
59682020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5969
5970 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5971 ada_language::collect_symbol_completion_matches.
5972 (ada_language_data): Delete la_collect_symbol_completion_matches
5973 initializer.
5974 (ada_language::collect_symbol_completion_matches): New member
5975 function, implementation from
5976 ada_collect_symbol_completion_matches.
5977 * c-lang.c (c_language_data): Delete
5978 la_collect_symbol_completion_matches initializer.
5979 (cplus_language_data): Likewise.
5980 (asm_language_data): Likewise.
5981 (minimal_language_data): Likewise.
5982 * d-lang.c (d_language_data): Likewise.
5983 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5984 f_language::collect_symbol_completion_matches.
5985 (f_language_data): Delete la_collect_symbol_completion_matches
5986 initializer.
5987 (f_language::collect_symbol_completion_matches) New member
5988 function, implementation from f_collect_symbol_completion_matches.
5989 * go-lang.c (go_language_data): Delete
5990 la_collect_symbol_completion_matches initializer.
5991 * language.c (unknown_language_data): Likewise.
5992 (auto_language_data): Likewise.
5993 * language.h (language_data): Delete
5994 la_collect_symbol_completion_matches field.
5995 (language_defn::collect_symbol_completion_matches): New member
5996 function.
5997 * m2-lang.c (m2_language_data): Delete
5998 la_collect_symbol_completion_matches initializer.
5999 * objc-lang.c (objc_language_data): Likewise.
6000 * opencl-lang.c (opencl_language_data): Likewise.
6001 * p-lang.c (pascal_language_data): Likewise.
6002 * rust-lang.c (rust_language_data): Likewise.
6003 * symtab.c (default_collect_symbol_completion_matches): Delete.
6004 (collect_symbol_completion_matches): Update call to
6005 collect_symbol_completion_matches.
6006 (collect_symbol_completion_matches_type): Likewise.
6007 * symtab.h (default_collect_symbol_completion_matches): Delete
6008 declaration.
6009
53fc67f8
AB
60102020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6011
6012 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6013 (ada_language_data): Delete la_word_break_characters initializer.
6014 (ada_language::word_break_characters): New member function.
6015 * c-lang.c (c_language_data): Delete la_word_break_characters
6016 initializer.
6017 (cplus_language_data): Likewise.
6018 (asm_language_data): Likewise.
6019 (minimal_language_data): Likewise.
6020 * completer.c: Update global comment.
6021 (advance_to_expression_complete_word_point): Update call to
6022 word_break_characters.
6023 (complete_files_symbols): Likewise.
6024 (complete_line_internal_1): Likewise.
6025 (default_completer_handle_brkchars): Likewise.
6026 (skip_quoted_chars): Likewise.
6027 * d-lang.c (d_language_data): Delete la_word_break_characters
6028 initializer.
6029 * f-lang.c (f_word_break_characters): Delete.
6030 (f_language_data): Delete la_word_break_characters initializer.
6031 (f_language::word_break_characters): New member function.
6032 * go-lang.c (go_language_data): Delete la_word_break_characters
6033 initializer.
6034 * language.c (unknown_language_data): Likewise.
6035 (auto_language_data): Likewise.
6036 * language.h (default_word_break_characters): Move declaration to
6037 earlier in the file.
6038 (language_data): Delete la_word_break_characters field.
6039 (language_defn::word_break_characters): New member function.
6040 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6041 initializer.
6042 * objc-lang.c (objc_language_data): Likewise.
6043 * opencl-lang.c (opencl_language_data): Likewise.
6044 * p-lang.c (pascal_language_data): Likewise.
6045 * rust-lang.c (rust_language_data): Likewise.
6046
c9debfb9
AB
60472020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6048
6049 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6050 (ada_language_data): Delete la_get_symbol_name_matcher
6051 initializer.
6052 (language_defn::get_symbol_name_matcher_inner): New member
6053 function.
6054 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6055 initializer.
6056 (cplus_language_data): Likewise.
6057 (cplus_language::get_symbol_name_matcher_inner): New member
6058 function.
6059 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6060 (minimal_language_data): Likewise.
6061 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6062 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6063 initializer.
6064 * dictionary.c (iter_match_first_hashed): Update call to
6065 get_symbol_name_matcher.
6066 (iter_match_next_hashed): Likewise.
6067 (iter_match_next_linear): Likewise.
6068 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6069 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6070 initializer.
6071 (f_language::get_symbol_name_matcher_inner): New member function.
6072 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6073 initializer.
6074 * language.c (default_symbol_name_matcher): Update header comment,
6075 make static.
6076 (language_defn::get_symbol_name_matcher): New definition.
6077 (language_defn::get_symbol_name_matcher_inner): Likewise.
6078 (get_symbol_name_matcher): Delete.
6079 (unknown_language_data): Delete la_get_symbol_name_matcher
6080 initializer.
6081 (auto_language_data): Likewise.
6082 * language.h (language_data): Delete la_get_symbol_name_matcher
6083 field.
6084 (language_defn::get_symbol_name_matcher): New member function.
6085 (language_defn::get_symbol_name_matcher_inner): Likewise.
6086 (default_symbol_name_matcher): Delete declaration.
6087 * linespec.c (find_methods): Update call to
6088 get_symbol_name_matcher.
6089 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6090 initializer.
6091 * minsyms.c (lookup_minimal_symbol): Update call to
6092 get_symbol_name_matcher.
6093 (iterate_over_minimal_symbols): Likewise.
6094 * objc-lang.c (objc_language_data): Delete
6095 la_get_symbol_name_matcher initializer.
6096 * opencl-lang.c (opencl_language_data): Likewise.
6097 * p-lang.c (pascal_language_data): Likewise.
6098 * psymtab.c (psymbol_name_matches): Update call to
6099 get_symbol_name_matcher.
6100 * rust-lang.c (rust_language_data): Delete
6101 la_get_symbol_name_matcher initializer.
6102 * symtab.c (symbol_matches_search_name): Update call to
6103 get_symbol_name_matcher.
6104 (compare_symbol_name): Likewise.
6105
9a49ad8c
AB
61062020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6107
6108 * ada-lang.c (ada_language_data): Delete la_compute_program
6109 initializer.
6110 * c-lang.c (c_language_data): Likewise.
6111 (c_language::compute_program): New member function.
6112 (cplus_language_data): Delete la_compute_program initializer.
6113 (cplus_language::compute_program): New member function.
6114 (asm_language_data): Delete la_compute_program initializer.
6115 (minimal_language_data): Likewise.
6116 * c-lang.h (c_compute_program): Update comment.
6117 (cplus_compute_program): Likewise.
6118 * compile/compile-c-support.c (c_compute_program): Likewise.
6119 (cplus_compute_program): Likewise.
6120 * compile/compile.c (compile_to_object): Update call to
6121 la_compute_program.
6122 * d-lang.c (d_language_data): Delete la_compute_program
6123 initializer.
6124 * f-lang.c (f_language_data): Likewise.
6125 * go-lang.c (go_language_data): Likewise.
6126 * language.c (unknown_language_data): Likewise.
6127 (auto_language_data): Likewise.
6128 * language.h (language_data): Delete la_compute_program field.
6129 (language_defn::compute_program): New member function.
6130 * m2-lang.c (m2_language_data): Delete la_compute_program
6131 initializer.
6132 * objc-lang.c (objc_language_data): Likewise.
6133 * opencl-lang.c (opencl_language_data): Likewise.
6134 * p-lang.c (pascal_language_data): Likewise.
6135 * rust-lang.c (rust_language_data): Likewise.
6136
eff93b4d
AB
61372020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6138
6139 * ada-lang.c (ada_language_data) Delete
6140 la_class_name_from_physname initializer.
6141 * c-lang.c (c_language_data): Likewise.
6142 (cplus_language_data): Likewise.
6143 (cplus_language::class_name_from_physname): New member function.
6144 (asm_language_data): Delete la_class_name_from_physname
6145 initializer.
6146 (minimal_language_data): Likewise.
6147 * d-lang.c (d_language_data): Likewise.
6148 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6149 method on language_defn class.
6150 (guess_full_die_structure_name): Likewise.
6151 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6152 initializer.
6153 * go-lang.c (go_language_data): Likewise.
6154 * language.c (language_class_name_from_physname): Delete.
6155 (unk_lang_class_name): Delete.
6156 (unknown_language_data): Delete la_class_name_from_physname
6157 initializer.
6158 (auto_language_data): Likewise.
6159 * language.h (language_data): Delete la_class_name_from_physname
6160 field.
6161 (language_defn::class_name_from_physname): New function.
6162 (language_class_name_from_physname): Delete declaration.
6163 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6164 initializer.
6165 * objc-lang.c (objc_language_data): Likewise.
6166 * opencl-lang.c (opencl_language_data): Likewise.
6167 * p-lang.c (pascal_language_data): Likewise.
6168 * rust-lang.c (rust_language_data): Likewise.
6169
de543742
TT
61702020-06-16 Tom Tromey <tom@tromey.com>
6171
6172 * tui/tui-data.h (STATUS_NAME): New macro.
6173 * tui/tui-layout.c (tui_remove_some_windows)
6174 (initialize_known_windows, tui_register_window)
6175 (tui_layout_split::remove_windows, initialize_layouts)
6176 (tui_new_layout_command): Don't use hard-coded window names.
6177
a350efd4
TT
61782020-06-16 Tom Tromey <tom@tromey.com>
6179
6180 PR tui/25348:
6181 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6182 tui_initialize_readline. Only run once. Call rl_initialize.
6183 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6184 tui_initialize_readline.
6185 * tui/tui-io.c (tui_setup_io): Call
6186 tui_ensure_readline_initialized.
6187 * tui/tui-interp.c (tui_interp::init): Update.
6188
39ec0490
TT
61892020-06-16 Tom Tromey <tom@tromey.com>
6190
6191 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6192 Also preserve the status window.
6193
d2d1ea20
TT
61942020-06-16 Tom Tromey <tom@tromey.com>
6195
6196 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6197 where m_window==nullptr.
6198
66920317
TT
61992020-06-15 Tom Tromey <tromey@adacore.com>
6200
6201 * windows-nat.c (windows_nat::handle_output_debug_string):
6202 Update.
6203 (windows_nat::handle_ms_vc_exception): Update.
6204 * target.h (target_read_string): Change API.
6205 * target.c (target_read_string): Change API.
6206 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6207 Update.
6208 * solib-frv.c (frv_current_sos): Update.
6209 * solib-dsbt.c (dsbt_current_sos): Update.
6210 * solib-darwin.c (darwin_current_sos): Update.
6211 * linux-thread-db.c (inferior_has_bug): Update.
6212 * expprint.c (print_subexp_standard): Update.
6213 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6214 (ada_exception_message_1): Update.
6215
a5d871dd
TT
62162020-06-15 Tom Tromey <tromey@adacore.com>
6217
6218 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6219
670e35fa
TT
62202020-06-15 Tom Tromey <tromey@adacore.com>
6221
6222 * valprint.c (read_string): Update comment.
6223 * target.c (MIN): Remove.
6224 (target_read_string): Rewrite.
6225
f5272a3b
TT
62262020-06-15 Tom Tromey <tromey@adacore.com>
6227
6228 * corefile.c (read_memory_string): Remove.
6229 * ada-valprint.c (ada_value_print_ptr): Update.
6230 * ada-lang.h (ada_tag_name): Change return type.
6231 * ada-lang.c (type_from_tag): Update.
6232 (ada_tag_name_from_tsd): Change return type. Use
6233 target_read_string.
6234 (ada_tag_name): Likewise.
6235 * gdbcore.h (read_memory_string): Don't declare.
6236
2c074f49
HD
62372020-06-14 Hannes Domani <ssbssa@yahoo.de>
6238
6239 * symtab.c (rbreak_command): Ignore Windows drive colon.
6240
6a17d503
SM
62412020-06-12 Simon Marchi <simon.marchi@efficios.com>
6242
6243 * NEWS: Mention removed GDBserver host support.
6244
453c733f
NC
62452020-06-12 Nelson Chu <nelson.chu@sifive.com>
6246
6247 * features/riscv/rebuild-csr-xml.sh: Updated.
6248
2b4e6a3f
TT
62492020-06-11 Tom Tromey <tom@tromey.com>
6250
6251 PR gdb/18318:
6252 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6253
4412332f
JG
62542020-06-09 Jonny Grant <jg@jguk.org>
62552020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6256
6257 * main.c (captured_main_1): Don't print new line after help.
6258 (print_gdb_help): add mailing list and IRC channel information
6259 to --help. Add new lines between items in the footer. Remove
6260 quotes around bug url.
6261
2f33032a
KS
62622020-06-11 Keith Seitz <keiths@redhat.com>
6263
6264 PR gdb/21356
6265 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6266 Resolve typedefs for type length calculations.
6267
7ab96794
TV
62682020-06-10 Tom de Vries <tdevries@suse.de>
6269
6270 PR ada/24713
6271 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6272 (write_psymbols): Enable .gdb_index for ada.
6273 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6274 ada.
6275
e5f3ece2
TV
62762020-06-10 Tom de Vries <tdevries@suse.de>
6277
6278 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6279 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6280 namei" instead of "const char *name" argument.
6281 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6282 dw2_symtab_iter_init.
6283
940da03e
SM
62842020-06-08 Simon Marchi <simon.marchi@efficios.com>
6285
6286 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6287 to use type::field and field::type instead.
6288
b6cdac4b
SM
62892020-06-08 Simon Marchi <simon.marchi@efficios.com>
6290
6291 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6292 to use field::type instead.
6293
5d14b6e5
SM
62942020-06-08 Simon Marchi <simon.marchi@efficios.com>
6295
6296 * gdbtypes.h (struct field) <type, set_type>: New methods.
6297 Rename `type` field to...
6298 <m_type>: ... this. Change references throughout to use type or
6299 set_type methods.
6300 (FIELD_TYPE): Use field::type. Change call sites that modify
6301 the field's type to use field::set_type instead.
6302
3d967001
SM
63032020-06-08 Simon Marchi <simon.marchi@efficios.com>
6304
6305 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6306 to use type::index_type instead.
6307
262abc0d
SM
63082020-06-08 Simon Marchi <simon.marchi@efficios.com>
6309
6310 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6311 methods.
6312 (TYPE_INDEX_TYPE): Use type::index_type.
6313 * gdbtypes.c (create_array_type_with_stride): Likewise.
6314
82836c92
TT
63152020-06-07 Tom Tromey <tom@tromey.com>
6316
6317 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6318 parameter.
6319 (generic_value_print): Update.
6320
940dace9
AB
63212020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6322
6323 Revert commit 982a38f60b0.
6324 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6325
982a38f6
AB
63262020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6327
6328 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6329 avoid use after free.
6330
82f06518
TV
63312020-06-05 Tom de Vries <tdevries@suse.de>
6332
6333 * NEWS: Fix typos.
6334
f8c41851
SM
63352020-06-04 Simon Marchi <simon.marchi@efficios.com>
6336
6337 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6338 the per_bfd object.
6339 (dwarf2_read_debug_names): Likewise.
6340 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6341 object when re-using a per_bfd object with an index.
6342
f9b5d5ea
TV
63432020-06-03 Tom de Vries <tdevries@suse.de>
6344
6345 PR symtab/26046
6346 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6347 children for C++.
6348 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6349 DW_TAG_subprogram.
6350
f6eee2d0
AB
63512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6352
6353 * ada-lang.c (ada_language_data): Delete skip_trampoline
6354 initializer.
6355 * c-lang.c (c_language_data): Likewise.
6356 (cplus_language_data): Likewise.
6357 (cplus_language::skip_trampoline): New member function.
6358 (asm_language_data): Delete skip_trampoline initializer.
6359 (minimal_language_data): Likewise.
6360 * d-lang.c (d_language_data): Likewise.
6361 * f-lang.c (f_language_data): Likewise.
6362 * go-lang.c (go_language_data): Likewise.
6363 * language.c (unk_lang_trampoline): Delete function.
6364 (skip_language_trampoline): Update.
6365 (unknown_language_data): Delete skip_trampoline initializer.
6366 (auto_language_data): Likewise.
6367 * language.h (language_data): Delete skip_trampoline field.
6368 (language_defn::skip_trampoline): New function.
6369 * m2-lang.c (m2_language_data): Delete skip_trampoline
6370 initializer.
6371 * objc-lang.c (objc_skip_trampoline): Delete function, move
6372 implementation to objc_language::skip_trampoline.
6373 (objc_language_data): Delete skip_trampoline initializer.
6374 (objc_language::skip_trampoline): New member function with
6375 implementation from objc_skip_trampoline.
6376 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6377 initializer.
6378 * p-lang.c (pascal_language_data): Likewise.
6379 * rust-lang.c (rust_language_data): Likewise.
6380
0a50df5d
AB
63812020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6382
6383 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6384 (ada_language::demangle): New member function.
6385 * c-lang.c (c_language_data): Delete la_demangle initializer.
6386 (cplus_language_data): Delete la_demangle initializer.
6387 (cplus_language::demangle): New member function.
6388 (asm_language_data): Delete la_demangle initializer.
6389 (minimal_language_data): Delete la_demangle initializer.
6390 * d-lang.c (d_language_data): Delete la_demangle initializer.
6391 (d_language::demangle): New member function.
6392 * f-lang.c (f_language_data): Delete la_demangle initializer.
6393 (f_language::demangle): New member function.
6394 * go-lang.c (go_language_data): Delete la_demangle initializer.
6395 (go_language::demangle): New member function.
6396 * language.c (language_demangle): Update.
6397 (unk_lang_demangle): Delete.
6398 (unknown_language_data): Delete la_demangle initializer.
6399 (unknown_language::demangle): New member function.
6400 (auto_language_data): Delete la_demangle initializer.
6401 (auto_language::demangle): New member function.
6402 * language.h (language_data): Delete la_demangle field.
6403 (language_defn::demangle): New function.
6404 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6405 * objc-lang.c (objc_language_data): Delete la_demangle
6406 initializer.
6407 (objc_language::demangle): New member function.
6408 * opencl-lang.c (opencl_language_data): Delete la_demangle
6409 initializer.
6410 * p-lang.c (pascal_language_data): Likewise.
6411 * rust-lang.c (rust_language_data): Likewise.
6412 (rust_language::demangle): New member function.
6413
fbfb0a46
AB
64142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6415
6416 * ada-lang.c (ada_language_data): Delete la_print_type
6417 initializer.
6418 (ada_language::print_type): New member function.
6419 * c-lang.c (c_language_data): Delete la_print_type initializer.
6420 (c_language::print_type): New member function.
6421 (cplus_language_data): Delete la_print_type initializer.
6422 (cplus_language::print_type): New member function.
6423 (asm_language_data): Delete la_print_type initializer.
6424 (asm_language::print_type): New member function.
6425 (minimal_language_data): Delete la_print_type initializer.
6426 (minimal_language::print_type): New member function.
6427 * d-lang.c (d_language_data): Delete la_print_type initializer.
6428 (d_language::print_type): New member function.
6429 * f-lang.c (f_language_data): Delete la_print_type initializer.
6430 (f_language::print_type): New member function.
6431 * go-lang.c (go_language_data): Delete la_print_type initializer.
6432 (go_language::print_type): New member function.
6433 * language.c (unk_lang_print_type): Delete.
6434 (unknown_language_data): Delete la_print_type initializer.
6435 (unknown_language::print_type): New member function.
6436 (auto_language_data): Delete la_print_type initializer.
6437 (auto_language::print_type): New member function.
6438 * language.h (language_data): Delete la_print_type field.
6439 (language_defn::print_type): New function.
6440 (LA_PRINT_TYPE): Update.
6441 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6442 (m2_language::print_type): New member function.
6443 * objc-lang.c (objc_language_data): Delete la_print_type
6444 initializer.
6445 (objc_language::print_type): New member function.
6446 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6447 to opencl_language::print_type.
6448 (opencl_language_data): Delete la_print_type initializer.
6449 (opencl_language::print_type): New member function, implementation
6450 from opencl_print_type.
6451 * p-lang.c (pascal_language_data): Delete la_print_type
6452 initializer.
6453 (pascal_language::print_type): New member function.
6454 * rust-lang.c (rust_print_type): Delete, implementation moved to
6455 rust_language::print_type.
6456 (rust_language_data): Delete la_print_type initializer.
6457 (rust_language::print_type): New member function, implementation
6458 from rust_print_type.
6459
6f827019
AB
64602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6461
6462 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6463 implementation moves to...
6464 (ada_language::sniff_from_mangled_name): ...here. Update return
6465 type.
6466 (ada_language_data): Delete la_sniff_from_mangled_name
6467 initializer.
6468 * c-lang.c (c_language_data): Likewise.
6469 (cplus_language_data): Likewise.
6470 (cplus_language::sniff_from_mangled_name): New member function,
6471 implementation taken from gdb_sniff_from_mangled_name.
6472 (asm_language_data): Delete la_sniff_from_mangled_name
6473 initializer.
6474 (minimal_language_data): Likewise.
6475 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6476 implementation moves to cplus_language::sniff_from_mangled_name.
6477 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6478 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6479 moves to...
6480 (d_language::sniff_from_mangled_name): ...here.
6481 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6482 * f-lang.c (f_language_data): Likewise.
6483 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6484 moves to...
6485 (go_language::sniff_from_mangled_name): ...here.
6486 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6487 * language.c (language_sniff_from_mangled_name): Delete.
6488 (unknown_language_data): Delete la_sniff_from_mangled_name
6489 initializer.
6490 (auto_language_data): Likewise.
6491 * language.h (language_data): Delete la_sniff_from_mangled_name
6492 field.
6493 (language_defn::sniff_from_mangled_name): New function.
6494 (language_sniff_from_mangled_name): Delete declaration.
6495 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6496 field.
6497 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6498 implementation moves to...
6499 (objc_language::sniff_from_mangled_name): ...here.
6500 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6501 * opencl-lang.c (opencl_language_data): Likewise.
6502 * p-lang.c (pascal_language_data): Likewise.
6503 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6504 implementation moves to...
6505 (rust_language::sniff_from_mangled_name): ...here.
6506 (rust_language_data): Delete la_sniff_from_mangled_name
6507 initializer.
6508 * symtab.c (symbol_find_demangled_name): Call
6509 sniff_from_mangled_name member function.
6510
fb8006fd
AB
65112020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6512
6513 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6514 initializer.
6515 * c-lang.c (c_language_data): Likewise.
6516 (cplus_language_data): Likewise.
6517 (cplus_language::search_name_hash): New member function.
6518 (asm_language_data): Delete la_search_name_hash initializer.
6519 (minimal_language_data): Likewise.
6520 * d-lang.c (d_language_data): Likewise.
6521 * dictionary.c (default_search_name_hash): Rename to...
6522 (language_defn::search_name_hash): ...this.
6523 * f-lang.c (f_language_data): Likewise.
6524 (f_language::search_name_hash): New member function.
6525 * go-lang.c (go_language_data): Delete la_search_name_hash
6526 initializer.
6527 * language.c (unknown_language_data): Likewise.
6528 (auto_language_data): Likewise.
6529 * language.h (struct language_data): Delete la_search_name_hash
6530 field.
6531 (language_defn::search_name_hash): Declare new member function.
6532 (default_search_name_hash): Delete declaration.
6533 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6534 initializer.
6535 * objc-lang.c (objc_language_data): Likewise.
6536 * opencl-lang.c (opencl_language_data): Likewise.
6537 * p-lang.c (pascal_language_data): Likewise.
6538 * rust-lang.c (rust_language_data): Likewise.
6539 * symtab.c (search_name_hash): Update call.
6540
8e25bafe
AB
65412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6542
6543 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6544 initializer.
6545 * c-lang.c (class compile_instance): Declare.
6546 (c_language_data): Delete la_get_compile_instance initializer.
6547 (c_language::get_compile_instance): New member function.
6548 (cplus_language_data): Delete la_get_compile_instance initializer.
6549 (cplus_language::get_compile_instance): New member function.
6550 (asm_language_data): Delete la_get_compile_instance initializer.
6551 (minimal_language_data): Likewise.
6552 * c-lang.h (c_get_compile_context): Update comment.
6553 (cplus_get_compile_context): Update comment.
6554 * compile/compile.c (compile_to_object): Update calls, don't rely
6555 on function pointer being NULL.
6556 * d-lang.c (d_language_data): Delete la_get_compile_instance
6557 initializer.
6558 * f-lang.c (f_language_data): Likewise.
6559 * go-lang.c (go_language_data): Likewise.
6560 * language.c (unknown_language_data): Likewise.
6561 (auto_language_data): Likewise.
6562 * language.h (language_data): Delete la_get_compile_instance field.
6563 (language_defn::get_compile_instance): New member function.
6564 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6565 initializer.
6566 * objc-lang.c (objc_language_data): Likewise.
6567 * opencl-lang.c (opencl_language_data): Likewise.
6568 * p-lang.c (pascal_language_data): Likewise.
6569 * rust-lang.c (rust_language_data): Likewise.
6570
4009ee92
AB
65712020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6572
6573 * ada-lang.c (ada_add_all_symbols): Update comment.
6574 (ada_iterate_over_symbols): Delete, move implementation to...
6575 (ada_language::iterate_over_symbols): ...here, a new member
6576 function, rewrite to use range based for loop.
6577 (ada_language_data): Delete la_iterate_over_symbols initializer.
6578 * c-lang.c (c_language_data): Likewise.
6579 (cplus_language_data): Likewise.
6580 (asm_language_data): Likewise.
6581 (minimal_language_data): Likewise.
6582 * d-lang.c (d_language_data): Likewise.
6583 * f-lang.c (f_language_data): Likewise.
6584 * go-lang.c (go_language_data): Likewise.
6585 * language.c (unknown_language_data): Likewise.
6586 (auto_language_data): Likewise.
6587 * language.h (language_data): Delete la_iterate_over_symbols field.
6588 (language_defn::iterate_over_symbols): New member function.
6589 (LA_ITERATE_OVER_SYMBOLS): Update.
6590 * linespec.c (iterate_over_all_matching_symtabs): Update.
6591 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6592 initializer.
6593 * objc-lang.c (objc_language_data): Likewise.
6594 * opencl-lang.c (opencl_language_data): Likewise.
6595 * p-lang.c (pascal_language_data): Likewise.
6596 * rust-lang.c (rust_language_data): Likewise.
6597
54f4ca46
AB
65982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6599
6600 * ada-lang.c (ada_language_data): Delete
6601 la_lookup_transparent_type initializer.
6602 * c-lang.c (c_language_data): Likewise.
6603 (cplus_language_data): Likewise.
6604 (cplus_language::lookup_transparent_type): New member function.
6605 (asm_language_data): Delete la_lookup_transparent_type
6606 initializer.
6607 (minimal_language_data): Likewise.
6608 * d-lang.c (d_language_data): Likewise.
6609 * f-lang.c (f_language_data): Likewise.
6610 * go-lang.c (go_language_data): Likewise.
6611 * language.c (unknown_language_data): Likewise.
6612 (auto_language_data): Likewise.
6613 * language.h (struct language_data): Delete
6614 la_lookup_transparent_type field.
6615 (language_defn::lookup_transparent_type): New member function.
6616 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6617 initializer.
6618 * objc-lang.c (objc_language_data): Likewise.
6619 * opencl-lang.c (opencl_language_data): Likewise.
6620 * p-lang.c (pascal_language_data): Likewise.
6621 * rust-lang.c (rust_language_data): Likewise.
6622 * symtab.c (symbol_matches_domain): Update call.
6623
1fb314aa
AB
66242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6625
6626 * ada-lang.c (ada_language_arch_info): Delete function, move
6627 implementation to...
6628 (ada_language::language_arch_info): ...here, a new member
6629 function.
6630 (ada_language_data): Delete la_language_arch_info.
6631 * c-lang.c (c_language_data): Likewise.
6632 (c_language::language_arch_info): New member function.
6633 (cplus_language_arch_info): Delete function, move
6634 implementation to...
6635 (cplus_language::language_arch_info): ...here, a new member
6636 function.
6637 (cplus_language_data): Delete la_language_arch_info.
6638 (asm_language_data): Likewise.
6639 (asm_language::language_arch_info): New member function.
6640 (minimal_language_data): Delete la_language_arch_info.
6641 (minimal_language::language_arch_info): New member function.
6642 * d-lang.c (d_language_arch_info): Delete function, move
6643 implementation to...
6644 (d_language::language_arch_info): ...here, a new member
6645 function.
6646 (d_language_data): Delete la_language_arch_info.
6647 * f-lang.c (f_language_arch_info): Delete function, move
6648 implementation to...
6649 (f_language::language_arch_info): ...here, a new member
6650 function.
6651 (f_language_data): Delete la_language_arch_info.
6652 * go-lang.c (go_language_arch_info): Delete function, move
6653 implementation to...
6654 (go_language::language_arch_info): ...here, a new member
6655 function.
6656 (go_language_data): Delete la_language_arch_info.
6657 * language.c (unknown_language_data): Likewise.
6658 (unknown_language::language_arch_info): New member function.
6659 (auto_language_data): Delete la_language_arch_info.
6660 (auto_language::language_arch_info): New member function.
6661 (language_gdbarch_post_init): Update call to
6662 la_language_arch_info.
6663 * language.h (language_data): Delete la_language_arch_info
6664 function pointer.
6665 (language_defn::language_arch_info): New function.
6666 * m2-lang.c (m2_language_arch_info): Delete function, move
6667 implementation to...
6668 (m2_language::language_arch_info): ...here, a new member
6669 function.
6670 (m2_language_data): Delete la_language_arch_info.
6671 * objc-lang.c (objc_language_arch_info): Delete function, move
6672 implementation to...
6673 (objc_language::language_arch_info): ...here, a new member
6674 function.
6675 (objc_language_data): Delete la_language_arch_info.
6676 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6677 implementation to...
6678 (opencl_language::language_arch_info): ...here, a new member
6679 function.
6680 (opencl_language_data): Delete la_language_arch_info.
6681 * p-lang.c (pascal_language_arch_info): Delete function, move
6682 implementation to...
6683 (pascal_language::language_arch_info): ...here, a new member
6684 function.
6685 (pascal_language_data): Delete la_language_arch_info.
6686 * rust-lang.c (rust_language_arch_info): Delete function, move
6687 implementation to...
6688 (rust_language::language_arch_info): ...here, a new member
6689 function.
6690 (rust_language_data): Delete la_language_arch_info.
6691
48448202
AB
66922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6693
6694 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6695 initializer.
6696 * c-lang.c (c_language_data): Likewise.
6697 (cplus_language_data): Likewise.
6698 (cplus_language::pass_by_reference_info): New method.
6699 (asm_language_data): Delete la_pass_by_reference initializer.
6700 (minimal_language_data): Likewise.
6701 * cp-abi.c (cp_pass_by_reference): Remove use of
6702 default_pass_by_reference.
6703 * d-lang.c (d_language_data): Likewise.
6704 * f-lang.c (f_language_data): Likewise.
6705 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6706 default_pass_by_reference.
6707 * go-lang.c (go_language_data): Likewise.
6708 * language.c (language_pass_by_reference): Update.
6709 (default_pass_by_reference): Delete.
6710 (unknown_language_data): Delete la_pass_by_reference
6711 initializer.
6712 (auto_language_data): Likewise.
6713 * language.h (struct language_data): Delete la_pass_by_reference
6714 field.
6715 (language_defn::pass_by_reference_info): New member function.
6716 (default_pass_by_reference): Delete declaration.
6717 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6718 initializer.
6719 * objc-lang.c (objc_language_data): Likewise.
6720 * opencl-lang.c (opencl_language_data): Likewise.
6721 * p-lang.c (pascal_language_data): Likewise.
6722 * rust-lang.c (rust_language_data): Likewise.
6723
15e5fd35
AB
67242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6725
6726 * ada-lang.c (ada_read_var_value): Delete function, move
6727 implementation to...
6728 (ada_language::read_var_value): ...here.
6729 (ada_language_data): Delete la_read_var_value initializer.
6730 * c-lang.c (c_language_data): Likewise.
6731 (cplus_language_data): Likewise.
6732 (minimal_language_data): Likewise.
6733 * d-lang.c (d_language_data): Likewise.
6734 * f-lang.c (f_language_data): Likewise.
6735 * findvar.c (default_read_var_value): Rename to...
6736 (language_defn::read_var_value): ...this.
6737 * findvar.c (read_var_value): Update header comment, and change to
6738 call member function instead of function pointer.
6739 * go-lang.c (go_language_data): Likewise.
6740 * language.c (unknown_language_data): Delete la_read_var_value
6741 initializer.
6742 (auto_language_data): Likewise.
6743 * language.h (struct language_data): Delete la_read_var_value
6744 field.
6745 (language_defn::read_var_value): New member function.
6746 (default_read_var_value): Delete declaration.
6747 * m2-lang.c (m2_language_data): Delete la_read_var_value
6748 initializer.
6749 * objc-lang.c (objc_language_data): Likewise.
6750 * opencl-lang.c (opencl_language_data): Likewise.
6751 * p-lang.c (pascal_language_data): Likewise.
6752 * rust-lang.c (rust_language_data): Likewise.
6753 * value.h (default_read_var_value): Delete declaration.
6754
5bd40f2a
AB
67552020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6756
6757 * ada-lang.c (ada_print_array_index): Delete function, move
6758 implementation to...
6759 (ada_language::print_array_index): ...here.
6760 (ada_language_data): Delete la_print_array_index initializer.
6761 * c-lang.c (c_language_data): Likewise.
6762 (cplus_language_data): Likewise.
6763 (minimal_language_data): Likewise.
6764 * d-lang.c (d_language_data): Likewise.
6765 * f-lang.c (f_language_data): Likewise.
6766 * go-lang.c (go_language_data): Likewise.
6767 * language.c (default_print_array_index): Delete function, move
6768 implementation to...
6769 (language_defn::print_array_index): ...here.
6770 (unknown_language_data): Delete la_print_array_index initializer.
6771 (auto_language_data): Likewise.
6772 * language.h (struct language_data): Delete la_print_array_index
6773 field.
6774 (language_defn::print_array_index): New member function.
6775 (LA_PRINT_ARRAY_INDEX): Update.
6776 (default_print_array_index): Delete declaration.
6777 * m2-lang.c (m2_language_data): Delete la_print_array_index
6778 initializer.
6779 * objc-lang.c (objc_language_data): Likewise.
6780 * opencl-lang.c (opencl_language_data): Likewise.
6781 * p-lang.c (pascal_language_data): Likewise.
6782 * rust-lang.c (rust_language_data): Likewise.
6783
0874fd07
AB
67842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6785
6786 * gdb/ada-lang.c (ada_language_defn): Convert to...
6787 (ada_language_data): ...this.
6788 (class ada_language): New class.
6789 (ada_language_defn): New static global.
6790 * gdb/c-lang.c (c_language_defn): Convert to...
6791 (c_language_data): ...this.
6792 (class c_language): New class.
6793 (c_language_defn): New static global.
6794 (cplus_language_defn): Convert to...
6795 (cplus_language_data): ...this.
6796 (class cplus_language): New class.
6797 (cplus_language_defn): New static global.
6798 (asm_language_defn): Convert to...
6799 (asm_language_data): ...this.
6800 (class asm_language): New class.
6801 (asm_language_defn): New static global.
6802 (minimal_language_defn): Convert to...
6803 (minimal_language_data): ...this.
6804 (class minimal_language): New class.
6805 (minimal_language_defn): New static global.
6806 * gdb/d-lang.c (d_language_defn): Convert to...
6807 (d_language_data): ...this.
6808 (class d_language): New class.
6809 (d_language_defn): New static global.
6810 * gdb/f-lang.c (f_language_defn): Convert to...
6811 (f_language_data): ...this.
6812 (class f_language): New class.
6813 (f_language_defn): New static global.
6814 * gdb/go-lang.c (go_language_defn): Convert to...
6815 (go_language_data): ...this.
6816 (class go_language): New class.
6817 (go_language_defn): New static global.
6818 * gdb/language.c (unknown_language_defn): Remove declaration.
6819 (current_language): Initialize to nullptr, real initialization is
6820 moved to _initialize_language.
6821 (languages): Delete global.
6822 (language_defn::languages): Define.
6823 (set_language_command): Use language_defn::languages.
6824 (set_language): Likewise.
6825 (range_error): Likewise.
6826 (language_enum): Likewise.
6827 (language_def): Likewise.
6828 (add_set_language_command): Use language_def::languages for the
6829 language list, and language_def to lookup language pointers.
6830 (skip_language_trampoline): Use language_defn::languages.
6831 (unknown_language_defn): Convert to...
6832 (unknown_language_data): ...this.
6833 (class unknown_language): New class.
6834 (unknown_language_defn): New static global.
6835 (auto_language_defn): Convert to...
6836 (auto_language_data): ...this.
6837 (class auto_language): New class.
6838 (auto_language_defn): New static global.
6839 (language_gdbarch_post_init): Use language_defn::languages.
6840 (_initialize_language): Initialize current_language.
6841 * gdb/language.h (struct language_defn): Rename to...
6842 (struct language_data): ...this.
6843 (struct language_defn): New.
6844 (auto_language_defn): Delete.
6845 (unknown_language_defn): Delete.
6846 (minimal_language_defn): Delete.
6847 (ada_language_defn): Delete.
6848 (asm_language_defn): Delete.
6849 (c_language_defn): Delete.
6850 (cplus_language_defn): Delete.
6851 (d_language_defn): Delete.
6852 (f_language_defn): Delete.
6853 (go_language_defn): Delete.
6854 (m2_language_defn): Delete.
6855 (objc_language_defn): Delete.
6856 (opencl_language_defn): Delete.
6857 (pascal_language_defn): Delete.
6858 (rust_language_defn): Delete.
6859 * gdb/m2-lang.c (m2_language_defn): Convert to...
6860 (m2_language_data): ...this.
6861 (class m2_language): New class.
6862 (m2_language_defn): New static global.
6863 * gdb/objc-lang.c (objc_language_defn): Convert to...
6864 (objc_language_data): ...this.
6865 (class objc_language): New class.
6866 (objc_language_defn): New static global.
6867 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6868 (opencl_language_data): ...this.
6869 (class opencl_language): New class.
6870 (opencl_language_defn): New static global.
6871 * gdb/p-lang.c (pascal_language_defn): Convert to...
6872 (pascal_language_data): ...this.
6873 (class pascal_language): New class.
6874 (pascal_language_defn): New static global.
6875 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6876 language pointer, update comment format.
6877 * gdb/rust-lang.c (rust_language_defn): Convert to...
6878 (rust_language_data): ...this.
6879 (class rust_language): New class.
6880 (rust_language_defn): New static global.
6881
1313c56e
AB
68822020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6883
6884 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6885 member variable.
6886 <m_stmt_at_address>: New member variable.
6887 (lnp_state_machine::record_line): Don't record some lines, update
6888 tracking of is_stmt at the same address.
6889 (lnp_state_machine::lnp_state_machine): Initialise new member
6890 variables.
6891
b7ed9f3d
ST
68922020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6893
6894 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6895 "-include gnu-nat-mig.h".
6896 * gnu-nat-mig.h: New file.
6897 * gnu-nat.c: Include "gnu-nat-mig.h".
6898 (exc_server, msg_reply_server, notify_server,
6899 process_reply_server): Remove declarations.
6900
14a8ad62
ST
69012020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6902
6903 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6904 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6905 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6906 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6907 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6908 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6909 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6910 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6911 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6912 to gnu_nat_target class.
6913 * gnu-nat.c: Likewise.
6914 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6915 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6916 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6917 object.
6918 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6919 instead of `gnu_target'.
6920
0af5e106
ST
69212020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6922
6923 * i386-gnu-tdep.c: Include "gdbcore.h"
6924 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6925 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6926 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6927 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6928 i386_gnu_sigcontext_addr): New functions
6929 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6930 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6931 tdep.
6932
078f2fc9
ST
69332020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6934
6935 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6936 before fork_inferior call. Avoid calling it if target_is_pushed returns
6937 true.
6938
53dff92c
ST
69392020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6940
6941 * gnu-nat.h (gnu_target): New variable declaration.
6942 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6943 gnu_target.
6944 * gnu-nat.c (gnu_target): New variable.
6945 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6946 add_thread_silent, and add_thread calls.
6947 (gnu_nat_target::create_inferior): Pass gnu_target to
6948 add_thread_silent, thread_change_ptid call.
6949 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6950 call.
6951
5a8b8627
ST
69522020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6953
6954 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6955 (gnu_nat_target::find_memory_regions): Remove unused
6956 `old_address' variable.
6957
366f550a
ST
69582020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6959
6960 * gnu-nat.c: Include "gdbarch.h".
6961
f14871bf
ST
69622020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6963
6964 * reply_mig_hack.awk (Error return): Cast function through
6965 void *, to bypass compiler function call check.
6966
c6887cfb
ST
69672020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6968
6969 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6970 $(srcdir)/reply_mig_hack.awk.
6971
6930bffe
ST
69722020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6973
6974 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6975
112c22ed
JG
69762020-05-30 Jonny Grant <jg@jguk.org>
6977
6978 * configure.ac (ACX_BUGURL): change bug URL to https.
6979
f68f85b5
PA
69802020-05-30 Pedro Alves <palves@redhat.com>
6981
6982 * cp-support.c (replace_typedefs_template): New.
6983 (replace_typedefs_qualified_name): Handle
6984 DEMANGLE_COMPONENT_TEMPLATE.
6985
976ca316
SM
69862020-05-29 Simon Marchi <simon.marchi@efficios.com>
6987
6988 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6989 dwarf2/index-cache.h, dwarf2/index-write.c,
6990 dwarf2/index-write.h, dwarf2/line-header.c,
6991 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6992 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6993 variables and fields from `dwarf2_per_objfile` to just
6994 `per_objfile` throughout.
6995
989ade05
SM
69962020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6997
6998 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6999 <push_dwarf_reg_entry_value>: Add comment.
7000
c47bae85
KB
70012020-05-28 Kevin Buettner <kevinb@redhat.com>
7002 Keith Seitz <keiths@redhat.com>
7003
7004 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7005 instead of PyEval_ReleaseLock.
7006 (class gdbpy_gil): Move to earlier in file.
7007 (finalize_python): Set gdb_python_initialized.
7008 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7009 when not initialized.
7010
44486dcf
SM
70112020-05-28 Simon Marchi <simon.marchi@efficios.com>
7012
7013 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7014 <push_dwarf_reg_entry_value>: Remove assert. Override
7015 per_objfile with caller_per_objfile.
7016
f030440d
TV
70172020-05-28 Tom de Vries <tdevries@suse.de>
7018
7019 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7020 PR gold/15646 workaround to symbol kind "type".
7021
f0fbb768
TT
70222020-05-27 Tom Tromey <tromey@adacore.com>
7023
7024 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7025
af0b2a3e
TT
70262020-05-27 Tom Tromey <tromey@adacore.com>
7027
7028 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7029 Use htab_find_with_hash.
7030 <add_abbrev>: Remove "abbrev_number" parameter.
7031 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7032 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7033 (hash_abbrev): Add comment.
7034 (abbrev_table::lookup_abbrev): Move to header file.
7035 (abbrev_table::read): Update.
7036
7d00ffec
TT
70372020-05-27 Tom Tromey <tromey@adacore.com>
7038
7039 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7040 method.
7041 <canonical_name>: New member.
7042 <raw_name>: Rename from "name".
7043 (partial_die_info): Initialize canonical_name.
7044 (scan_partial_symbols): Check raw_name.
7045 (partial_die_parent_scope, partial_die_full_name)
7046 (add_partial_symbol, add_partial_subprogram)
7047 (add_partial_enumeration, load_partial_dies): Use "name" method.
7048 (partial_die_info::name): New method.
7049 (partial_die_info::read, guess_partial_die_structure_name)
7050 (partial_die_info::fixup): Update.
7051
697bba18
TT
70522020-05-27 Tom Tromey <tromey@adacore.com>
7053
7054 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7055 <get_ref_die_offset>: Inline.
7056 <get_ref_die_offset_complaint>: New method.
7057 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7058 (attribute::get_ref_die_offset_complaint): Rename from
7059 get_ref_die_offset. Just issue complaint.
7060
c17ace43
HD
70612020-05-27 Hannes Domani <ssbssa@yahoo.de>
7062
7063 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7064
96445f0b
HD
70652020-05-27 Hannes Domani <ssbssa@yahoo.de>
7066
7067 * exec.c (exec_file_attach): Use errno value of first openp failure.
7068
ac637ec3
HD
70692020-05-27 Hannes Domani <ssbssa@yahoo.de>
7070
7071 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7072 Don't close thread handle.
7073
17ee85fc
TT
70742020-05-27 Tom Tromey <tom@tromey.com>
7075 Simon Marchi <simon.marchi@efficios.com>
7076
7077 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7078 shared_ptr.
7079 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7080 member.
7081 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7082 dwarf2_per_bfd_objfile_data_key>: New globals.
7083 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7084 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7085 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7086 shared.
7087 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7088 short-circuit when sharing.
7089 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7090 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7091
39b16f87
SM
70922020-05-27 Simon Marchi <simon.marchi@efficios.com>
7093
7094 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7095 to...
7096 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7097 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7098
fcf23d5b
SM
70992020-05-27 Simon Marchi <simon.marchi@efficios.com>
7100
7101 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7102 build_name_components, find_name_components_bounds>:
7103 Add per_objfile parameter.
7104 (struct mapped_index) <symbol_name_at>: Likewise.
7105 (struct mapped_debug_names): Remove constructor.
7106 <dwarf2_per_objfile>: Remove field.
7107 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7108 (mapped_index_base::find_name_components_bounds,
7109 mapped_index_base::build_name_components,
7110 dw2_expand_symtabs_matching_symbol): Likewise.
7111 (class mock_mapped_index) <symbol_name_at>: Likewise.
7112 (check_match): Likewise.
7113 (check_find_bounds_finds): Likewise.
7114 (test_mapped_index_find_name_component_bounds): Update.
7115 (CHECK_MATCH): Update.
7116 (dw2_expand_symtabs_matching): Update.
7117 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7118 per_objfile parameter.
7119 <find_vec_in_debug_names>: Likewise.
7120 <m_per_objfile>: New field.
7121 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7122 parameter.
7123 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7124 (dw2_debug_names_iterator::next): Update.
7125 (dw2_debug_names_lookup_symbol): Update.
7126 (dw2_debug_names_expand_symtabs_for_function): Update.
7127 (dw2_debug_names_map_matching_symbols): Update.
7128 (dw2_debug_names_expand_symtabs_matching): Update.
7129 (dwarf2_read_debug_names): Update.
7130
7188ed02
SM
71312020-05-27 Simon Marchi <simon.marchi@efficios.com>
7132
7133 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7134 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7135 move to dwarf2_per_objfile.
7136 <read_in_chain>: Remove.
7137 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7138 remove_all_cus, age_comp_units>: New methods.
7139 <m_dwarf2_cus>: New member.
7140 (struct dwarf2_per_cu_data) <cu>: Remove.
7141 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7142 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7143 moved to methods of dwarf2_per_objfile.
7144 (dwarf2_clear_marks): Remove.
7145 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7146 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7147 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7148 (dwarf2_per_objfile::remove_all_cus): New.
7149 (class free_cached_comp_units) <~free_cached_comp_units>:
7150 Update.
7151 (load_cu): Update.
7152 (dw2_do_instantiate_symtab): Adjust.
7153 (fill_in_sig_entry_from_dwo_entry): Adjust.
7154 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7155 (cutu_reader::cutu_reader): Likewise.
7156 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7157 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7158 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7159 and dwarf2_per_objfile::age_comp_units.
7160 (load_partial_comp_unit): Update.
7161 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7162 (process_queue): Likewise.
7163 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7164 backlink.
7165 (dwarf2_read_addr_index): Likewise.
7166 (follow_die_offset): Likewise.
7167 (dwarf2_fetch_die_loc_sect_off): Likewise.
7168 (dwarf2_fetch_constant_bytes): Likewise.
7169 (dwarf2_fetch_die_type_sect_off): Likewise.
7170 (follow_die_sig_1): Likewise.
7171 (load_full_type_unit): Likewise.
7172 (read_signatured_type): Likewise.
7173 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7174 (dwarf2_cu::~dwarf2_cu): Remove.
7175 (dwarf2_per_objfile::get_cu): New.
7176 (dwarf2_per_objfile::set_cu): New.
7177 (age_cached_comp_units): Rename to...
7178 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7179 to std::unordered_map.
7180 (free_one_cached_comp_unit): Rename to...
7181 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7182 to std::unordered_map.
7183 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7184 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7185 a dwarf2_per_objfile in data.
7186 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7187 (dwarf2_clear_marks): Remove.
7188
2e671100
SM
71892020-05-27 Simon Marchi <simon.marchi@efficios.com>
7190
7191 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7192 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7193 (init_tu_and_read_dwo_dies): Likewise.
7194 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7195 (cutu_reader::cutu_reader): Likewise.
7196 (load_partial_comp_unit): Likewise.
7197 (process_psymtab_comp_unit): Update.
7198 (build_type_psymtabs_1): Update.
7199 (process_skeletonless_type_unit): Update.
7200 (load_full_comp_unit): Update.
7201 (find_partial_die): Update.
7202 (dwarf2_read_addr_index): Update.
7203 (read_signatured_type): Update.
7204
2e6a9f79
SM
72052020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7206
7207 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7208 m_header_read_in>: New fields.
7209 <get_header>: New method.
7210 * dwarf2/read.c (per_cu_header_read_in): Remove.
7211 (dwarf2_per_cu_data::get_header): New.
7212 (dwarf2_per_cu_data::addr_size): Update.
7213 (dwarf2_per_cu_data::offset_size): Update.
7214 (dwarf2_per_cu_data::ref_addr_size): Update.
7215
1b555f17
SM
72162020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7217
7218 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7219 (dw2_do_instantiate_symtab): Update.
7220 (queue_and_load_all_dwo_tus): Change parameter from
7221 dwarf2_per_cu_data to dwarf2_cu.
7222 (dwarf2_fetch_die_loc_sect_off): Update.
7223 (dwarf2_fetch_constant_bytes): Update.
7224 (dwarf2_fetch_die_type_sect_off): Update.
7225
8fc0b21d
SM
72262020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7227
7228 * dwarf2/read.c (process_full_comp_unit,
7229 process_full_type_unit): Remove per_cu, per_objfile paramters.
7230 Add dwarf2_cu parameter.
7231 (process_queue): Update.
7232
168c9250
SM
72332020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7234
7235 * dwarf2/read.c (create_cu_from_index_list): Replace
7236 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7237 (create_cus_from_index_list): Likewise.
7238 (create_cus_from_index): Likewise.
7239 (create_signatured_type_table_from_index): Likewise.
7240 (create_cus_from_debug_names_list): Likewise.
7241 (create_cus_from_debug_names): Likewise.
7242 (dwarf2_read_gdb_index): Update.
7243 (dwarf2_read_debug_names): Update.
7244
e286671b
TT
72452020-05-27 Tom Tromey <tom@tromey.com>
7246 Simon Marchi <simon.marchi@efficios.com>
7247
7248 * dwarf2/read.h (struct dwarf2_per_objfile)
7249 <get_type_for_signatured_type, set_type_for_signatured_type>:
7250 New methods.
7251 <m_type_map>: New member.
7252 (struct signatured_type) <type>: Remove.
7253 * dwarf2/read.c
7254 (dwarf2_per_objfile::get_type_for_signatured_type,
7255 dwarf2_per_objfile::set_type_for_signatured_type): New.
7256 (get_signatured_type): Use new methods.
7257
8adb8487
TT
72582020-05-27 Tom Tromey <tom@tromey.com>
7259 Simon Marchi <simon.marchi@efficios.com>
7260
7261 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7262 (struct dwarf2_per_objfile) <type_units>: New member.
7263 <get_type_unit_group_unshareable>: New method.
7264 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7265 num_symtabs, symtabs>: Remove; move to
7266 type_unit_group_unshareable.
7267 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7268 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7269 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7270
127bbf4b
SM
72712020-05-27 Simon Marchi <simon.marchi@efficios.com>
7272
7273 * dwarf2/read.h (struct dwarf2_per_cu_data):
7274 <dwarf2_per_objfile>: Remove.
7275 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7276 dwarf2_per_objfile.
7277 (create_signatured_type_table_from_index): Likewise.
7278 (create_signatured_type_table_from_debug_names): Likewise.
7279 (create_debug_type_hash_table): Likewise.
7280 (fill_in_sig_entry_from_dwo_entry): Likewise.
7281 (create_type_unit_group): Likewise.
7282 (read_comp_units_from_section): Likewise.
7283 (create_cus_hash_table): Likewise.
7284
f6e649dd
SM
72852020-05-27 Simon Marchi <simon.marchi@efficios.com>
7286
7287 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7288 dwarf2_per_cu_data::dwarf2_per_objfile.
7289 (compute_compunit_symtab_includes): Likewise.
7290 (dwarf2_cu::start_symtab): Likewise.
7291
aa66c379
SM
72922020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7293
7294 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7295 parameter.
7296 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7297 (read_namespace_alias): Update.
7298 (lookup_die_type): Update.
7299 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7300 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7301 Update.
7302 (disassemble_dwarf_expression): Update.
7303
120ce1b5
SM
73042020-05-27 Simon Marchi <simon.marchi@efficios.com>
7305
7306 * dwarf2/read.h (struct dwarf2_queue_item): Add
7307 dwarf2_per_objfile parameter, assign new parameter.
7308 <per_objfile>: New field.
7309 * dwarf2/read.c (free_one_cached_comp_unit): Add
7310 dwarf2_per_objfile parameter.
7311 (queue_comp_unit): Likewise.
7312 (dw2_do_instantiate_symtab): Update.
7313 (process_psymtab_comp_unit): Update.
7314 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7315 (process_imported_unit_die): Update.
7316 (queue_and_load_dwo_tu): Update.
7317 (follow_die_offset): Update.
7318 (follow_die_sig_1): Update.
7319
9f47c707
SM
73202020-05-27 Simon Marchi <simon.marchi@efficios.com>
7321
7322 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7323 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7324 (read_call_site_scope): Assign per_objfile.
7325 (dwarf2_per_cu_data::objfile): Remove.
7326 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7327 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7328 dwarf2_per_objfile parameter.
7329 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7330 dwarf2_per_objfile parameter.
7331 (dwarf_expr_reg_to_entry_parameter): Add output
7332 dwarf2_per_objfile parameter.
7333 (locexpr_get_frame_base): Update.
7334 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7335 <push_dwarf_reg_entry_value>: Update.
7336 <call_site_to_target_addr>: Update.
7337 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7338 parameter.
7339 (value_of_dwarf_reg_entry): Update.
7340 (rw_pieced_value): Update.
7341 (indirect_synthetic_pointer): Update.
7342 (dwarf2_evaluate_property): Update.
7343 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7344 parameter.
7345 (locexpr_read_variable): Update.
7346 (locexpr_get_symbol_read_needs): Update.
7347 (loclist_read_variable): Update.
7348
14095eb3
SM
73492020-05-27 Simon Marchi <simon.marchi@efficios.com>
7350
7351 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7352 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7353 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7354 parameter.
7355 * dwarf2/read.c (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/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7360 sect_variable_value): Add dwarf2_per_objfile parameter.
7361 (class dwarf_evaluate_loc_desc) <dwarf_call,
7362 dwarf_variable_value>: Update.
7363 (fetch_const_value_from_synthetic_pointer): Add
7364 dwarf2_per_objfile parameter.
7365 (fetch_const_value_from_synthetic_pointer): Update.
7366 (coerced_pieced_ref): Update.
7367 (class symbol_needs_eval_context) <dwarf_call,
7368 dwarf_variable_value>: Update.
7369 (dwarf2_compile_expr_to_ax): Update.
7370
3c3cd3d4
SM
73712020-05-27 Simon Marchi <simon.marchi@efficios.com>
7372
7373 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7374 parameter.
7375 (dwarf2_evaluate_loc_desc_full): Update.
7376
82ca3f51
SM
73772020-05-27 Simon Marchi <simon.marchi@efficios.com>
7378
7379 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7380 parameter.
7381 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7382 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7383 dwarf2_per_objfile parameter.
7384 (decode_debug_loc_dwo_addresses): Likewise.
7385 (dwarf2_find_location_expression): Update.
7386 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7387 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7388 parameter.
7389 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7390 parameter.
7391 (locexpr_describe_location_1): Likewise.
7392 (locexpr_describe_location): Update.
7393
4b167ea1
SM
73942020-05-27 Simon Marchi <simon.marchi@efficios.com>
7395
7396 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7397 Remove.
7398 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7399 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7400 (dwarf2_compile_property_to_c): Update.
7401 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7402 use text offset from objfile.
7403 (locexpr_tracepoint_var_ref): Update.
7404 (locexpr_generate_c_location): Update.
7405 (loclist_describe_location): Update.
7406 (loclist_tracepoint_var_ref): Update.
7407 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7408 dwarf2_per_objfile parameter.
7409 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7410 use text offset from objfile.
7411 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7412
89b07335
SM
74132020-05-27 Simon Marchi <simon.marchi@efficios.com>
7414
7415 * dwarf2/expr.h (struct dwarf_expr_context)
7416 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7417 <offset>: Remove.
7418 <per_objfile>: New member.
7419 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7420 dwarf2_per_objfile parameter. Don't set offset, set
7421 per_objfile.
7422 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7423 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7424 a dwarf2_per_objfile object instead of an offset.
7425 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7426 constructor.
7427 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7428 to dwarf2_expr_executor constructor. Don't set offset.
7429 (dwarf2_fetch_cfa_info): Update.
7430 (struct dwarf2_frame_cache) <text_offset>: Remove.
7431 <per_objfile>: New field.
7432 (dwarf2_frame_cache): Update.
7433 (dwarf2_frame_prev_register): Update.
7434 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7435 <dwarf_evaluate_loc_desc>: Add constructor.
7436 (dwarf2_evaluate_loc_desc_full): Update.
7437 (dwarf2_locexpr_baton_eval): Update.
7438 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7439 Add constructor.
7440 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7441
293e7e51
SM
74422020-05-27 Simon Marchi <simon.marchi@efficios.com>
7443
7444 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7445 addr_sized_int_type>: Move to dwarf2_cu.
7446 <int_type>: Move to dwarf2_per_objfile.
7447 (struct dwarf2_per_objfile) <int_type>: Move here.
7448 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7449 addr_sized_int_type>: Move here.
7450 (read_func_scope): Update.
7451 (read_array_type): Update.
7452 (read_tag_string_type): Update.
7453 (attr_to_dynamic_prop): Update.
7454 (dwarf2_per_cu_data::int_type): Rename to...
7455 (dwarf2_per_objfile::int_type): ... this.
7456 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7457 (dwarf2_cu::addr_sized_int_type): ... this.
7458 (read_subrange_type): Update.
7459 (dwarf2_per_cu_data::addr_type): Rename to...
7460 (dwarf2_cu::addr_type): ... this.
7461 (set_die_type): Update.
7462
64874a40
SM
74632020-05-27 Simon Marchi <simon.marchi@efficios.com>
7464
7465 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7466 data through per_cu->cu.
7467
4ab09049
SM
74682020-05-27 Simon Marchi <simon.marchi@efficios.com>
7469
7470 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7471 dwarf2_per_cu_data parameter fo dwarf2_cu.
7472 (lookup_dwo_type_unit): Likewise.
7473 (read_cutu_die_from_dwo): Likewise.
7474 (lookup_dwo_unit): Likewise.
7475 (open_and_init_dwo_file): Likewise.
7476 (lookup_dwo_cutu): Likewise.
7477 (lookup_dwo_comp_unit): Likewise.
7478 (lookup_dwo_type_unit): Likewise.
7479 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7480 (cutu_reader::cutu_reader): Update.
7481
47b14e86
SM
74822020-05-27 Simon Marchi <simon.marchi@efficios.com>
7483
7484 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7485 parameter.
7486 (process_full_type_unit): Likewise.
7487 (process_queue): Update.
7488
43182c09
SM
74892020-05-27 Simon Marchi <simon.marchi@efficios.com>
7490
7491 * dwarf2/read.c (recursively_compute_inclusions): Add
7492 dwarf2_per_objfile parameter.
7493 (compute_compunit_symtab_includes): Likewise.
7494 (process_cu_includes): Update.
7495
7aa104c4
SM
74962020-05-27 Simon Marchi <simon.marchi@efficios.com>
7497
7498 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7499 parameter.
7500 (create_type_unit_group): Update.
7501 (process_psymtab_comp_unit_reader): Update.
7502 (build_type_psymtabs_reader): Update.
7503
e3beb21d
SM
75042020-05-27 Simon Marchi <simon.marchi@efficios.com>
7505
7506 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7507 object through m_this_cu->cu.
7508
d460f660
SM
75092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7510
7511 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7512 the info parameter.
7513 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7514
ab432490
SM
75152020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7516
7517 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7518 per_objfile parameter.
7519 (load_full_type_unit): Add per_objfile parameter.
7520 (read_signatured_type): Likewise.
7521 (load_full_comp_unit): Likewise.
7522 (load_cu): Likewise.
7523 (dw2_do_instantiate_symtab): Likewise.
7524 (dw2_get_file_names): Likewise.
7525 (dw2_map_symtabs_matching_filename): Update.
7526 (dw_expand_symtabs_matching_file_matcher): Update.
7527 (dw2_map_symbol_filenames): Update.
7528 (process_psymtab_comp_unit): Add per_objfile parameter.
7529 (build_type_psymtabs_1): Update.
7530 (process_skeletonless_type_unit): Update.
7531 (dwarf2_build_psymtabs_hard): Update.
7532 (load_partial_comp_unit): Add per_objfile parameter.
7533 (scan_partial_symbols): Update.
7534 (load_full_comp_unit): Add per_objfile parameter.
7535 (process_imported_unit_die): Update.
7536 (create_cus_hash_table): Update.
7537 (find_partial_die): Update.
7538 (dwarf2_read_addr_index): Update.
7539 (follow_die_offset): Update.
7540 (dwarf2_fetch_die_loc_sect_off): Update.
7541 (dwarf2_fetch_constant_bytes): Update.
7542 (dwarf2_fetch_die_type_sect_off): Update.
7543 (follow_die_sig_1): Update.
7544 (load_full_type_unit): Add per_objfile parameter.
7545 (read_signatured_type): Likewise.
7546
313bad1b
SM
75472020-05-27 Simon Marchi <simon.marchi@efficios.com>
7548
7549 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7550 of objfile_name.
7551
c3699833
SM
75522020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7553
7554 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7555 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7556 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7557 field.
7558 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7559 (create_cus_from_index): Update.
7560 (dwarf2_read_gdb_index): Update.
7561 (create_cus_from_debug_names): Update.
7562 (dwarf2_read_debug_names): Update.
7563 (get_abbrev_section_for_cu): Update.
7564 (create_all_comp_units): Update.
7565 (read_attribute_value): Update.
7566 (get_debug_line_section): Update.
7567 * dwarf2/index-cache.c (index_cache::store): Update.
7568 * dwarf2/index-write.c (save_gdb_index_command): Update.
7569 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7570
1859c670
SM
75712020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7572
7573 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7574 member.
7575 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7576 dwarf2_per_cu_data::per_bfd.
7577 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7578 (create_type_unit_group): Likewise.
7579 (queue_comp_unit): Remove reference to
7580 per_cu->dwarf2_per_objfile.
7581 (maybe_queue_comp_unit): Likewise.
7582 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7583 (create_cus_hash_table): Assign new field.
7584
5e22e966
SM
75852020-05-27 Simon Marchi <simon.marchi@efficios.com>
7586
7587 * dwarf2/read.c: Replace
7588 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7589 dwarf2_cu->per_objfile throughout.
7590
97a1449a
SM
75912020-05-27 Simon Marchi <simon.marchi@efficios.com>
7592
7593 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7594 parameter, don't use per_cu->dwarf2_per_objfile.
7595 (dw2_instantiate_symtab): Likewise.
7596 (dw2_find_last_source_symtab): Update.
7597 (dw2_map_expand_apply): Update.
7598 (dw2_lookup_symbol): Update.
7599 (dw2_expand_symtabs_for_function): Update.
7600 (dw2_expand_all_symtabs): Update.
7601 (dw2_expand_symtabs_with_fullname): Update.
7602 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7603 don't use per_cu->dwarf2_per_objfile.
7604 (dw2_expand_marked_cus): Update.
7605 (dw2_find_pc_sect_compunit_symtab): Update.
7606 (dw2_debug_names_lookup_symbol): Update.
7607 (dw2_debug_names_expand_symtabs_for_function): Update.
7608 (dw2_debug_names_map_matching_symbols): Update.
7609 (dwarf2_psymtab::expand_psymtab): Update.
7610
9e021579
SM
76112020-05-27 Simon Marchi <simon.marchi@efficios.com>
7612
7613 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7614 <per_objfile>: New member.
7615 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7616 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7617 call to dwarf2_cu.
7618 (cutu_reader::cutu_reader): Update.
7619 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7620
ae090bdb
SM
76212020-05-27 Simon Marchi <simon.marchi@efficios.com>
7622
7623 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7624 struct dwarf2_per_objfile.
7625 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7626 dwarf2_per_bfd.
7627 * dwarf2/read.c (set_die_type): Update.
7628 (get_die_type_at_offset): Update.
7629
af758d11
SM
76302020-05-27 Tom Tromey <tom@tromey.com>
7631 Simon Marchi <simon.marchi@efficios.com>
7632
7633 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7634 method.
7635 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7636 get_symtab, set_symtab>: New methods.
7637 <m_symtabs>: New field.
7638 (struct dwarf2_psymtab): Derive from partial_symtab.
7639 <readin_p, get_compunit_symtab>: Declare methods.
7640 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7641 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7642 New methods.
7643 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7644 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7645 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7646 (dw2_symtab_iter_next, dw2_print_stats)
7647 (dw2_expand_symtabs_with_fullname)
7648 (dw2_expand_symtabs_matching_one)
7649 (dw_expand_symtabs_matching_file_matcher)
7650 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7651 (dw2_debug_names_iterator::next)
7652 (dw2_debug_names_map_matching_symbols)
7653 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7654 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7655 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7656 New methods.
7657 (get_compunit_symtab, process_full_comp_unit)
7658 (process_full_type_unit): Update.
7659 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7660
5989a64e
SM
76612020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7662
7663 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7664 then introduce a new dwarf2_per_objfile type.
7665 <read_line_string>: Move to the new dwarf2_per_objfile type.
7666 <objfile>: Likewise.
7667 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7668 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7669 dwarf2_per_objfile->per_bfd.
7670 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7671 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7672 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7673 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7674 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7675 (dwarf2_per_objfile::locate_sections): Rename to...
7676 (dwarf2_per_bfd::locate_sections): ... this.
7677 (dwarf2_per_objfile::get_cutu): Rename to...
7678 (dwarf2_per_bfd::get_cutu): ... this.
7679 (dwarf2_per_objfile::get_cu): Rename to...
7680 (dwarf2_per_bfd::get_cu): ... this.
7681 (dwarf2_per_objfile::get_tu): Rename to...
7682 (dwarf2_per_bfd::get_tu): ... this.
7683 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7684 (dwarf2_per_bfd::allocate_per_cu): ... this.
7685 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7686 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7687 (get_gdb_index_contents_ftype): Change parameter from
7688 dwarf2_per_objfile to dwarf2_per_bfd.
7689 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7690 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7691
a50264ba
TT
76922020-05-27 Tom Tromey <tom@tromey.com>
7693 Simon Marchi <simon.marchi@efficios.com>
7694
7695 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7696 (allocate_piece_closure): Set "per_objfile" member.
7697 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7698 (locexpr_describe_location, loclist_describe_location): Use new
7699 member.
7700 * dwarf2/read.c (read_call_site_scope)
7701 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7702 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7703 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7704 handle_data_member_location): Set per_objfile member.
7705 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7706 member.
7707 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7708
d3473f0c
TT
77092020-05-27 Tom Tromey <tom@tromey.com>
7710
7711 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7712 allocate_signatured_type>: Declare new methods.
7713 <m_num_psymtabs>: New member.
7714 (struct dwarf2_per_cu_data) <index>: New member.
7715 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7716 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7717 (create_cu_from_index_list): Use allocate_per_cu.
7718 (create_signatured_type_table_from_index)
7719 (create_signatured_type_table_from_debug_names)
7720 (create_debug_type_hash_table, add_type_unit)
7721 (read_comp_units_from_section): Use allocate_signatured_type.
7722
5717c425
TT
77232020-05-27 Tom Tromey <tom@tromey.com>
7724
7725 * psymtab.c (partial_map_expand_apply)
7726 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7727 (psym_lookup_global_symbol_language)
7728 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7729 (psym_print_stats, psym_expand_symtabs_for_function)
7730 (psym_map_symbol_filenames, psym_map_matching_symbols)
7731 (psym_expand_symtabs_matching)
7732 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7733 (maintenance_check_psymtabs): Update.
7734 * psympriv.h (struct partial_symtab) <readin_p,
7735 get_compunit_symtab>: Add objfile parameter.
7736 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7737 Likewise.
7738 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7739 get_compunit_symtab>: Likewise.
7740 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7741
45940949
TT
77422020-05-27 Tom Tromey <tom@tromey.com>
7743
7744 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7745 member.
7746 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7747 (create_cu_from_index_list)
7748 (create_signatured_type_table_from_index)
7749 (create_signatured_type_table_from_debug_names)
7750 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7751 (dwarf2_create_include_psymtab)
7752 (create_debug_type_hash_table, add_type_unit)
7753 (create_type_unit_group, read_comp_units_from_section)
7754 (dwarf2_compute_name, create_cus_hash_table)
7755 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7756 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7757 obstack.
7758 (dw2_get_real_path): Likewise. Change argument to
7759 dwarf2_per_objfile.
7760
f8c6d152
LM
77612020-05-27 Luis Machado <luis.machado@linaro.org>
7762
7763 PR tdep/26000
7764 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7765 for ldrd (immediate).
7766
e98d2e6d
PW
77672020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7768
7769 * command.h: Add comment giving the name of class_tui.
7770 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7771 create the fake command for the help for class_tui.
7772
53a47a3e
TT
77732020-05-26 Tom Tromey <tromey@adacore.com>
7774
7775 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7776 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7777 (val_atr): New function.
7778 (value_val_atr): Use it.
7779 * ada-valprint.c (print_optional_low_bound): Change low bound
7780 handling for enums.
7781 (val_print_packed_array_elements): Don't call discrete_position.
7782 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7783 discrete_position for enum types.
7784 * language.c (default_print_array_index): Change type.
7785 * language.h (struct language_defn) <la_print_array_index>: Add
7786 index_type parameter, change type of index_value.
7787 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7788 (default_print_array_index): Update.
7789 * valprint.c (maybe_print_array_index): Don't call
7790 value_from_longest. Update.
7791 (value_print_array_elements): Don't call discrete_position.
7792
0bc2354b
TT
77932020-05-26 Tom Tromey <tromey@adacore.com>
7794
7795 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7796 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7797
1218a4bf
CDA
77982020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7799
7800 PR gdb/13519
7801 * avr-tdep.c (avr_integer_to_address): Return data or code
7802 address accordingly to the second 'type' argument of the
7803 function.
7804
92651b1d
MW
78052020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7806
7807 * infcmd.c, inferior.h: (construct_inferior_arguments):
7808 Moved function from here to gdbsupport/common-inferior.{h,cc}
7809
0a4f5f8c
TT
78102020-05-23 Tom Tromey <tom@tromey.com>
7811
7812 Revert commit eca1f90c:
7813 * NEWS: Remove entry for completion styling.
7814 * completer.c (_rl_completion_prefix_display_length): Move
7815 declaration later.
7816 (gdb_fnprint): Revert.
7817 (gdb_display_match_list_1): Likewise.
7818 * cli/cli-style.c (completion_prefix_style)
7819 (completion_difference_style, completion_suffix_style): Remove.
7820 (_initialize_cli_style): Revert.
7821 * cli/cli-style.h (completion_prefix_style)
7822 (completion_difference_style, completion_suffix_style): Don't
7823 declare.
7824
e08bd6c5
PA
78252020-05-24 Pedro Alves <palves@redhat.com>
7826
7827 * symtab.c (completion_list_add_name): Return boolean indication
7828 of whether the symbol matched.
7829 (completion_list_add_symbol): Don't try to remove C++ aliases if
7830 the symbol didn't match in the first place.
7831 * symtab.h (completion_list_add_name): Return bool.
7832
ceacbf6e
SM
78332020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7834
7835 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7836 type::field.
7837
26f16254
JB
78382020-05-23 Joel Brobecker <brobecker@adacore.com>
7839
7840 GDB 9.2 released.
7841
eca1f90c
TT
78422020-05-23 Tom Tromey <tom@tromey.com>
7843
7844 * NEWS: Add entry for completion styling.
7845 * completer.c (_rl_completion_prefix_display_length): Move
7846 declaration earlier.
7847 (gdb_fnprint): Use completion_style.
7848 (gdb_display_match_list_1): Likewise.
7849 * cli/cli-style.c (completion_prefix_style)
7850 (completion_difference_style, completion_suffix_style): New
7851 globals.
7852 (_initialize_cli_style): Register new globals.
7853 * cli/cli-style.h (completion_prefix_style)
7854 (completion_difference_style, completion_suffix_style): Declare.
7855
51e2cfa2
PA
78562020-05-23 Pedro Alves <palves@redhat.com>
7857
7858 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7859 (parse_escape): Use ISDIGIT instead of isdigit.
7860 (puts_debug): Use gdb_isprint instead of isprint.
7861 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7862 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7863 ISSPACE instead of isspace.
7864 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7865 instead of isspace.
7866 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7867 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7868 instead of isxdigit and ISDIGIT instead of isdigit.
7869
80fc5e77
SM
78702020-05-22 Simon Marchi <simon.marchi@efficios.com>
7871
7872 * gdbtypes.h (struct type) <field>: New method.
7873 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7874 or type::field.
7875
3cabb6b0
SM
78762020-05-22 Simon Marchi <simon.marchi@efficios.com>
7877
7878 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7879 (TYPE_FIELDS): Use type::fields. Change all call sites that
7880 modify the propery to use type::set_fields instead.
7881
1f704f76
SM
78822020-05-22 Simon Marchi <simon.marchi@efficios.com>
7883
7884 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7885 type::num_fields instead.
7886
5e33d5f4
SM
78872020-05-22 Simon Marchi <simon.marchi@efficios.com>
7888
7889 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7890 methods.
7891 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7892 that modify the number of fields to use type::set_num_fields
7893 instead.
7894
9392ebb3
TT
78952020-05-22 Tom Tromey <tromey@adacore.com>
7896
7897 * compile/compile-object-load.h (munmap_list_free): Don't
7898 declare.
7899
7c13f4e8
AB
79002020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7901
7902 * annotate.c (annotate_source_line): Update return type, add call
7903 to update current symtab and line.
7904 * annotate.h (annotate_source_line): Update return type, and
7905 extend header comment.
7906 * source.c (info_line_command): Check annotation_level before
7907 calling annotate_source_line.
7908 * stack.c (print_frame_info): If calling annotate_source_line
7909 returns true, then don't print any other source line information.
7910
aa370940
SM
79112020-05-21 Simon Marchi <simon.marchi@efficios.com>
7912
7913 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7914
84d53fa9
SM
79152020-05-21 Simon Marchi <simon.marchi@efficios.com>
7916
7917 * coffread.c (patch_type): Remove NULL check before xfree.
7918 * corefile.c (set_gnutarget): Likewise.
7919 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7920 * exec.c (build_section_table): Likewise.
7921 * remote.c (remote_target::pass_signals): Likewise.
7922 * utils.c (n_spaces): Likewise.
7923 * cli/cli-script.c (document_command): Likewise.
7924 * i386-windows-tdep.c (core_process_module_section): Likewise.
7925 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7926
9d428aae
SM
79272020-05-20 Simon Marchi <simon.marchi@efficios.com>
7928
7929 * symfile.c (reread_symbols): Clear objfile's section_offsets
7930 vector and section indices, re-compute them by calling
7931 sym_offsets.
7932
250106a7
TT
79332020-05-20 Tom Tromey <tromey@adacore.com>
7934
7935 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 7936 (desc_one_bound, desc_index_type): Compute field name.
250106a7 7937
9a0bacfb
TV
79382020-05-20 Tom de Vries <tdevries@suse.de>
7939
7940 PR symtab/25833
7941 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7942
7b958a48
AM
79432020-05-20 Alan Modra <amodra@gmail.com>
7944
7945 PR 25993
7946 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7947 bfd_set_filename.
7948 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7949 passed to bfd_set_filename.
7950 * symfile-mem.c (add_vsyscall_page): Likewise for string
7951 passed to symbol_file_add_from_memory.
7952 (symbol_file_add_from_memory): Make name param a const char* and
7953 don't strdup.
7954
c7e97679
AM
79552020-05-20 Alan Modra <amodra@gmail.com>
7956
7957 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7958 rather than accessing bfd->filename directly.
7959 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7960 and use bfd_section_name.
7961 * dwarf2/frame.c (decode_frame_entry): Likewise.
7962 * exec.c (exec_set_section_address): Likewise.
7963 * solib-aix.c (solib_aix_bfd_open): Likewise.
7964 * stap-probe.c (get_stap_base_address): Likewise.
7965 * symfile.c (reread_symbols): Likewise.
7966
563c591b
TT
79672020-05-19 Tom Tromey <tromey@adacore.com>
7968
7969 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7970
f408d82c
SM
79712020-05-19 Simon Marchi <simon.marchi@efficios.com>
7972
7973 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7974
98c59b52
PA
79752020-05-19 Pedro Alves <palves@redhat.com>
7976
7977 * NEWS (set exec-file-mismatch): Adjust entry.
7978 * exec.c: Include "build-id.h".
7979 (validate_exec_file): Try to match build IDs instead of filenames.
7980 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7981 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7982 and pass down 'warn_if_slow'.
7983 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7984 gdb_bfd_open_closure to pass it down.
7985 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7986
4111f652
PA
79872020-05-19 Pedro Alves <palves@redhat.com>
7988
7989 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7990 * target.c (target_fileio_open_1): Rename to target_fileio_open
7991 and make extern. Use bool.
7992 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7993 (target_fileio_read_alloc_1): Adjust.
7994 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7995 (target_fileio_open_warn_if_slow): Delete declaration.
7996
ad80db5b
PA
79972020-05-19 Pedro Alves <palves@redhat.com>
7998
7999 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8000 Adjust all callers.
8001
1d6ce4d3
YS
80022020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8003
8004 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8005 whether disp is negative.
8006
9005fbbb
SM
80072020-05-19 Simon Marchi <simon.marchi@efficios.com>
8008
8009 * symfile.h (struct symfile_segment_data)
8010 <~symfile_segment_data>: Remove.
8011 <segment_info>: Change to std::vector.
8012 * symfile.c (default_symfile_segments): Update.
8013 * elfread.c (elf_symfile_segments): Update.
8014
68b888ff
SM
80152020-05-19 Simon Marchi <simon.marchi@efficios.com>
8016
8017 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8018 <segments>: New.
8019 <segment_bases, segment_sizes>: Remove.
8020 * symfile.c (default_symfile_segments): Update.
8021 * elfread.c (elf_symfile_segments): Update.
8022 * remote.c (remote_target::get_offsets): Update.
8023 * solib-target.c (solib_target_relocate_section_addresses):
8024 Update.
8025
62982abd
SM
80262020-05-19 Simon Marchi <simon.marchi@efficios.com>
8027
8028 * symfile.h (struct symfile_segment_data): Initialize fields.
8029 <~symfile_segment_data>: Add.
8030 (symfile_segment_data_up): New.
8031 (struct sym_fns) <sym_segments>: Return a
8032 symfile_segment_data_up.
8033 (default_symfile_segments): Return a symfile_segment_data_up.
8034 (free_symfile_segment_data): Remove.
8035 (get_symfile_segment_data): Return a symfile_segment_data_up.
8036 * symfile.c (default_symfile_segments): Likewise.
8037 (get_symfile_segment_data): Likewise.
8038 (free_symfile_segment_data): Remove.
8039 (symfile_find_segment_sections): Update.
8040 * elfread.c (elf_symfile_segments): Return a
8041 symfile_segment_data_up.
8042 * remote.c (remote_target::get_offsets): Update.
8043 * solib-target.c (solib_target_relocate_section_addresses):
8044 Update.
8045 * symfile-debug.c (debug_sym_segments): Return a
8046 symfile_segment_data_up.
8047
7f204339
RO
80482020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8049
e52a0f1b
RO
8050 PR build/25981
8051 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8052 Hardcode register numbers.
8053
7f204339
RO
8054 PR build/25981
8055 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8056 procfs_find_LDT_entry): Remove.
8057 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8058 procfs_find_LDT_entry): Remove.
8059 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8060 Remove.
8061
7f32a4d5
PA
80622020-05-17 Pedro Alves <palves@redhat.com>
8063 Andrew Burgess <andrew.burgess@embecosm.com>
8064 Keno Fischer <keno@juliacomputing.com>
8065
8066 PR gdb/25741
8067 * breakpoint.c (build_target_condition_list): Update comments.
8068 (build_target_command_list): Update comments and skip matching
8069 locations.
8070 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8071 a separate function. Simplify "set breakpoint auto-hw off"
8072 handling.
8073 (insert_breakpoints): Update comment.
8074 (tracepoint_locations_match): New parameter. For breakpoints,
8075 compare location types too, if the caller wants to.
8076 (handle_automatic_hardware_breakpoints): New functions.
8077 (bp_location_is_less_than): Also sort by location type and
8078 hardware breakpoint length.
8079 (update_global_location_list): Handle "set breakpoint auto-hw on"
8080 here.
8081 (update_breakpoint_locations): Ask breakpoint_locations_match to
8082 ignore location types.
8083
7d93a1e0
SM
80842020-05-16 Simon Marchi <simon.marchi@efficios.com>
8085
8086 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8087 type::name instead.
8088
d0e39ea2
SM
80892020-05-16 Simon Marchi <simon.marchi@efficios.com>
8090
8091 * gdbtypes.h (struct type) <name, set_name>: New methods.
8092 (TYPE_CODE): Use type::name. Change all call sites used to set
8093 the name to use type::set_name instead.
8094
2dab0c7b
TT
80952020-05-16 Tom Tromey <tom@tromey.com>
8096
8097 * top.c (quit_force): Update.
8098 * infrun.c (handle_no_resumed): Update.
8099 * top.h (all_uis): New function.
8100 (ALL_UIS): Remove.
8101
59f7bd8d
SM
81022020-05-16 Simon Marchi <simon.marchi@efficios.com>
8103
8104 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8105
9bf058f0
PA
81062020-05-16 Pedro Alves <palves@redhat.com>
8107
8108 * ia64-linux-nat.c
8109 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8110 Declare method.
8111 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8112
8f86ae1a
SM
81132020-05-15 Simon Marchi <simon.marchi@efficios.com>
8114
8115 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8116 (sparc64_adi_info): Likewise.
8117
d6bc0792
TT
81182020-05-15 Tom Tromey <tom@tromey.com>
8119
8120 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8121 block_objfile.
8122 (lookup_objfile_from_block): Remove.
8123 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8124 (lookup_global_symbol): Use block_objfile.
8125 * symtab.h (lookup_objfile_from_block): Don't declare.
8126 * printcmd.c (clear_dangling_display_expressions): Use
8127 block_objfile.
8128 * parse.c (operator_check_standard): Use block_objfile.
8129
8c14c3a3
TT
81302020-05-15 Tom Tromey <tom@tromey.com>
8131
8132 * language.c (language_alloc_type_symbol): Set
8133 SYMBOL_SECTION.
8134 * symtab.c (initialize_objfile_symbol): Remove.
8135 (allocate_symbol): Remove.
8136 (allocate_template_symbol): Remove.
8137 * dwarf2/read.c (fixup_go_packaging): Use "new".
8138 (new_symbol): Use "new".
8139 (read_variable): Don't call initialize_objfile_symbol. Use
8140 "new".
8141 (read_func_scope): Use "new".
8142 * xcoffread.c (process_xcoff_symbol): Don't call
8143 initialize_objfile_symbol.
8144 (SYMBOL_DUP): Remove.
8145 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8146 "new".
8147 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8148 (allocate_template_symbol): Don't declare.
8149 (struct symbol): Add copy constructor. Change defaults.
8150 * jit.c (finalize_symtab): Use "new".
8151 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8152 Use "new".
8153 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8154 (common_block_end): Use "new".
8155 * mdebugread.c (parse_symbol): Use "new".
8156 (new_symbol): Likewise.
8157
5b4a1a8d
PW
81582020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8159
8160 * NEWS: Mention changes to help and apropos.
8161
57b4f16e
PW
81622020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8163
8164 * command.h (enum command_class): Improve comments, document
8165 that class_alias is for user-defined aliases, give the class
8166 name for each class, remove unused class_xdb.
8167 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8168 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8169 by a precise class.
8170 * infcmd.c (_initialize_infcmd): Likewise.
8171 * reverse.c (_initialize_reverse): Likewise.
8172 * stack.c (_initialize_stack): Likewise.
8173 * symfile.c (_initialize_symfile): Likewise.
8174 * tracepoint.c (_initialize_tracepoint): Likewise.
8175
7c05caf7
PW
81762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8177
8178 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8179 when their aliased command is traversed.
8180 (help_cmd): Add fput_command_names_styled call to
8181 output command name and aliases when command has an alias.
8182
3b3aaacb
PW
81832020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8184
8185 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8186 * cli/cli-decode.c (help_cmd_list): Declare as static,
8187 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8188 a command together with the command.
8189 (fput_command_name_styled, fput_command_names_styled): New functions.
8190 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8191 fput_command_name_styled.
8192 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8193 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8194
7aa1b46f
PW
81952020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8196
8197 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8198 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8199 * command.h (cmd_show_list): Likewise.
8200 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8201 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8202
89bcba74
PW
82032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8204
8205 * unittests/command-def-selftests.c (traverse_command_structure):
8206 Verify all commands of a list have the same prefix command and
8207 that only the top cmdlist commands have a null prefix.
8208
3f4d92eb
PW
82092020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8210
8211 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8212 as prefix, not one of its aliases.
8213 (set_cmd_prefix): Remove.
8214 (do_add_cmd): Centralize the setting of the prefix of a command, when
8215 command is defined after its full chain of prefix commands.
8216 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8217 (add_setshow_cmd_full): Likewise.
8218 (update_prefix_field_of_prefixed_commands): New function.
8219 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8220 update_prefix_field_of_prefixed_commands.
8221 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8222 addresses of remote_set_cmdlist and remote_show_cmdlist given
8223 as argument, not the address of an argument.
8224 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8225 * gdb/remote.c (_initialize_remote): Likewise.
8226
0605465f
PW
82272020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8228
8229 * cli/cli-cmds.c (alias_command): Check for an existing alias
8230 using lookup_cmd_composition, as valid_command_p is too strict
8231 and forbids aliases that are the prefix of an existing alias
8232 or command.
8233 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8234 command is properly recognised as a valid command.
8235
58e6ac70
PW
82362020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8237
8238 * unittests/help-doc-selftests.c: Rename to
8239 unittests/command-def-selftests.c
8240 * unittests/command-def-selftests.c (help_doc_tests): Update some
8241 comments.
8242 (command_structure_tests, traverse_command_structure): New namespace
8243 and function.
8244 (command_structure_invariants_tests): New function.
8245 (_initialize_command_def_selftests) Renamed from
8246 _initialize_help_doc_selftests, register command_structure_invariants
8247 selftest.
8248
a7b9ceb8
PW
82492020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8250
8251 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8252 an alias of 'show'.
8253
b2188a06
JB
82542020-05-15 Joel Brobecker <brobecker@adacore.com>
8255
8256 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8257 ada_is_fixed_point_type. Update all callers.
8258 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8259 all callers.
8260 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8261 Update all callers.
8262 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8263 print_fixed_point_type. Update all callers.
8264 * ada-valprint.c (ada_value_print_num): Replace call to
8265 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8266
a51951c2
KB
82672020-05-14 Kevin Buettner <kevinb@redhat.com>
8268
8269 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8270 processors.
8271 (cpu_supports_bts): Add CV_AMD case.
8272
29d6859f
LM
82732020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8274 Simon Marchi <simon.marchi@efficios.com>
8275
8276 * infrun.c (stop_all_threads): Collect multiple wait events at
8277 each pass.
8278
78134374
SM
82792020-05-14 Simon Marchi <simon.marchi@efficios.com>
8280
8281 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8282 type::code instead.
8283
67607e24
SM
82842020-05-14 Simon Marchi <simon.marchi@efficios.com>
8285
8286 * gdbtypes.h (struct type) <code, set_code>: New methods.
8287 (TYPE_CODE): Use type::code. Change all call sites used to set
8288 the code to use type::set_code instead.
8289
a05575d3
TBA
82902020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8291 Tom de Vries <tdevries@suse.de>
8292 Pedro Alves <palves@redhat.com>
8293
8294 PR threads/25478
8295 * infrun.c (stop_all_threads): Do NOT ignore
8296 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8297 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8298 received.
8299 (handle_no_resumed): Remove code handling a live inferior with no
8300 threads.
8301 * remote.c (has_single_non_exited_thread): New.
8302 (remote_target::update_thread_list): Do not delete a thread if is
8303 the last thread of the process.
8304 * thread.c (thread_select): Call delete_exited_threads instead of
8305 prune_threads.
8306
6ad82919
TBA
83072020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8308
8309 * infrun.c (stop_all_threads): Enable/disable thread events of all
8310 targets. Move a debug message denoting the end of the function
8311 into the SCOPED_EXIT block.
8312
d890404b
TBA
83132020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8314
8315 * process-stratum-target.h: Include <set>.
8316 (all_non_exited_process_targets, switch_to_target_no_thread): New
8317 function declarations.
8318 * process-stratum-target.c (all_non_exited_process_targets)
8319 (switch_to_target_no_thread): New function implementations.
8320
293b3ebc
TBA
83212020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8322
8323 * infrun.c (handle_inferior_event): Extract out a piece of code
8324 into...
8325 (mark_non_executing_threads): ...this new function.
8326
7ca9b62a
TBA
83272020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8328
8329 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8330 use.
8331
fc75c28b
TBA
83322020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8333
8334 * regcache.c (regcache_read_pc_protected): New function
8335 implementation that returns 0 if the PC cannot read via
8336 'regcache_read_pc'.
8337 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8338 instead of 'regcache_read_pc'.
8339 (keep_going_pass_signal): Ditto.
8340
a89febbd
TT
83412020-05-13 Tom Tromey <tromey@adacore.com>
8342
8343 * ada-lang.c (align_value): Remove.
8344 (ada_template_to_fixed_record_type_1): Use align_up.
8345
f7e23710
TBA
83462020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8347
8348 * async-event.c: Update the copyright year.
8349 * async-event.h: Update the copyright year.
8350
02ff80c2
SM
83512020-05-12 Simon Marchi <simon.marchi@efficios.com>
8352
8353 * objfiles.h (is_addr_in_objfile,
8354 shared_objfile_contains_address_p): Return bool.
8355 * objfile.c (is_addr_in_objfile,
8356 shared_objfile_contains_address_p): Return bool.
8357
4fd6c7e8
TT
83582020-05-11 Tom Tromey <tromey@adacore.com>
8359
8360 * cli/cli-cmds.c (info_command): Restore.
8361 (_initialize_cli_cmds): Use add_prefix_command for "info".
8362 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8363
5eb68a39
TT
83642020-05-11 Tom Tromey <tromey@adacore.com>
8365
8366 * ada-lang.c (ada_value_primitive_field): Now public.
8367 * ada-lang.h (ada_value_primitive_field): Declare.
8368 * ada-valprint.c (print_field_values): Use
8369 ada_value_primitive_field for wrapper fields.
8370
7666722f
TV
83712020-05-11 Tom de Vries <tdevries@suse.de>
8372
8373 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8374 MODULE_DOMAIN.
8375
3ee6bb11
TV
83762020-05-11 Tom de Vries <tdevries@suse.de>
8377
8378 PR symtab/25941
8379 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8380 with length 0, if not gdb-produced.
8381 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8382
43434996
TV
83832020-05-09 Tom de Vries <tdevries@suse.de>
8384
8385 PR gdb/25955
8386 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8387 calculation.
8388
2f78cffc
TT
83892020-05-09 Tom Tromey <tom@tromey.com>
8390
8391 * top.c (server_command): Now bool.
8392 * top.h (server_command): Now bool.
8393
4f7bc5ed
TT
83942020-05-08 Tom Tromey <tromey@adacore.com>
8395
8396 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8397 already being processed.
8398
8be4b118
TT
83992020-05-08 Tom Tromey <tom@tromey.com>
8400
8401 * printcmd.c (struct display) <next>: Remove.
8402 <display>: New constructor.
8403 <exp_string>: Now a std::string.
8404 <enabled_p>: Now a bool.
8405 (display_number): Move definition earlier.
8406 (displays): Rename from display_chain. Now a std::vector.
8407 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8408 (display_command): Update.
8409 (do_one_display, disable_display)
8410 (enable_disable_display_command, do_enable_disable_display):
8411 Update.
8412 (free_display): Remove.
8413 (clear_displays): Rewrite.
8414 (delete_display): Update.
8415 (map_display_numbers): Use function_view. Remove "data"
8416 parameter. Update.
8417 (do_delete_display): Remove.
8418 (undisplay_command): Update.
8419 (do_one_display, do_displays, disable_display)
8420 (info_display_command): Update.
8421 (do_enable_disable_display): Remove.
8422 (enable_disable_display_command)
8423 (clear_dangling_display_expressions): Update.
8424
94c93c35
TT
84252020-05-08 Tom Tromey <tom@tromey.com>
8426
8427 * symtab.c (set_symbol_cache_size)
8428 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8429 (maintenance_print_symbol_cache_statistics): Update.
8430 * symmisc.c (print_symbol_bcache_statistics)
8431 (print_objfile_statistics, maintenance_print_objfiles)
8432 (maintenance_info_symtabs, maintenance_check_symtabs)
8433 (maintenance_expand_symtabs, maintenance_info_line_tables):
8434 Update.
8435 * symfile-debug.c (set_debug_symfile): Update.
8436 * source.c (forget_cached_source_info): Update.
8437 * python/python.c (gdbpy_progspaces): Update.
8438 * psymtab.c (maintenance_info_psymtabs): Update.
8439 * probe.c (parse_probes): Update.
8440 * linespec.c (iterate_over_all_matching_symtabs)
8441 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8442 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8443 * exec.c (exec_target::close): Update.
8444 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8445 * breakpoint.c (print_one_breakpoint_location)
8446 (create_longjmp_master_breakpoint)
8447 (create_std_terminate_master_breakpoint): Update.
8448 * progspace.c (program_spaces): Now a std::vector.
8449 (maybe_new_address_space): Update.
8450 (add_program_space): Remove.
8451 (program_space::program_space): Update.
8452 (remove_program_space): Update.
8453 (number_of_program_spaces): Remove.
8454 (print_program_space, update_address_spaces): Update.
8455 * progspace.h (program_spaces): Change type.
8456 (ALL_PSPACES): Remove.
8457 (number_of_program_spaces): Don't declare.
8458 (struct program_space) <next>: Remove.
8459
a1fd1ac9
TT
84602020-05-08 Tom Tromey <tom@tromey.com>
8461
8462 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8463 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8464 (enable_break): Update.
8465 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8466 (frv_fdpic_find_canonical_descriptor): Update.
8467 (frv_fetch_objfile_link_map): Update.
8468 * progspace.c (program_space::free_all_objfiles): Update.
8469 (program_space::solibs): New method.
8470 * progspace.h (struct program_space) <solibs>: New method.
8471 * solist.h (master_so_list): Don't declare.
8472 (ALL_SO_LIBS): Remove.
8473 * solib.h (so_list_head): Remove.
8474 (update_solib_list): Update comment.
8475 * solib.c (master_so_list): Remove.
8476 (solib_used, update_solib_list, solib_add)
8477 (info_sharedlibrary_command, clear_solib)
8478 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8479
38eae084
TT
84802020-05-08 Tom Tromey <tom@tromey.com>
8481
8482 * extension.c (extension_languages): Now a std::array.
8483 (ALL_EXTENSION_LANGUAGES): Remove.
8484 (get_ext_lang_defn, get_ext_lang_of_file)
8485 (eval_ext_lang_from_control_command): Update.
8486 (finish_ext_lang_initialization)
8487 (auto_load_ext_lang_scripts_for_objfile)
8488 (ext_lang_type_printers::ext_lang_type_printers)
8489 (apply_ext_lang_type_printers)
8490 (ext_lang_type_printers::~ext_lang_type_printers)
8491 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8492 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8493 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8494 (get_matching_xmethod_workers, ext_lang_colorize)
8495 (ext_lang_before_prompt): Update.
8496 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8497
596dc4ad
TT
84982020-05-08 Tom Tromey <tom@tromey.com>
8499
8500 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8501 overload.
8502 <swap_string, m_string>: Remove.
8503 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8504 Update.
8505 * stabsread.c (define_symbol, read_type): Update.
8506 * linespec.c (find_linespec_symbols): Update.
8507 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8508 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8509 * dbxread.c (read_dbx_symtab): Update.
8510 * cp-support.h (cp_canonicalize_string_full)
8511 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8512 Return unique_xmalloc_ptr.
8513 * cp-support.c (inspect_type): Update.
8514 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8515 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8516 Likewise.
8517 * c-typeprint.c (print_name_maybe_canonical): Update.
8518 * break-catch-throw.c (check_status_exception_catchpoint):
8519 Update.
8520
bf4cb9be
TV
85212020-05-08 Tom de Vries <tdevries@suse.de>
8522
8523 * infrun.c (follow_fork): Copy current_line and current_symtab to
8524 child thread.
8525
a1b68f28
SM
85262020-05-07 Simon Marchi <simon.marchi@efficios.com>
8527
8528 * async-event.c (struct async_signal_handler, struct
8529 async_event_handler): Reformat, remove typedef.
8530
98d48915
SM
85312020-05-07 Simon Marchi <simon.marchi@efficios.com>
8532
8533 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8534 access thistype->main_type->dyn_prop_list directly.
8535
7aa91313
SM
85362020-05-07 Simon Marchi <simon.marchi@efficios.com>
8537
8538 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8539 (remove_dyn_prop): Remove. Update all users to use
8540 type::remove_dyn_prop.
8541 * gdbtypes.c (remove_dyn_prop): Rename to...
8542 (type::remove_dyn_prop): ... this.
8543
5c54719c
SM
85442020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8545
8546 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8547 (add_dyn_prop): Remove. Update all users to use
8548 type::add_dyn_prop.
8549 * gdbtypes.c (add_dyn_prop): Rename to...
8550 (type::add_dyn_prop): ... this.
8551
24e99c6c
SM
85522020-05-07 Simon Marchi <simon.marchi@efficios.com>
8553
8554 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8555 (get_dyn_prop): Remove. Update all users to use
8556 type::dyn_prop.
8557 * gdbtypes.c (get_dyn_prop): Rename to...
8558 (type::dyn_prop): ... this.
8559
0d4bf016
SM
85602020-05-06 Simon Marchi <simon.marchi@efficios.com>
8561
8562 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8563
ac4a4f1c
SM
85642020-05-06 Simon Marchi <simon.marchi@efficios.com>
8565
8566 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8567 instruction, skip it if it's there.
8568
a3bbacc1
SM
85692020-05-05 Simon Marchi <simon.marchi@efficios.com>
8570
8571 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8572
c3236f84
SM
85732020-05-04 Simon Marchi <simon.marchi@efficios.com>
8574
8575 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8576 * gdbtypes.c (recursive_dump_type): Remove use of
8577 TYPE_INCOMPLETE.
8578
3b6acaee
TT
85792020-05-03 Tom Tromey <tom@tromey.com>
8580
8581 * breakpoint.c (catch_command, tcatch_command): Remove.
8582 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8583 add_show_prefix_cmd.
8584 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8585 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8586 Remove.
8587 (add_internal_problem_command): Use add_basic_prefix_cmd,
8588 add_show_prefix_cmd.
8589 * mips-tdep.c (set_mipsfpu_command): Remove.
8590 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8591 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8592 (_initialize_index_cache): Use add_basic_prefix_cmd.
8593 * memattr.c (dummy_cmd): Remove.
8594 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8595 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8596 (_initialize_tui_win): Use add_basic_prefix_cmd,
8597 add_show_prefix_cmd.
8598 * cli/cli-logging.c (set_logging_command): Remove.
8599 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8600 add_show_prefix_cmd.
8601 (show_logging_command): Remove.
8602 * target.c (target_command): Remove.
8603 (add_target): Use add_basic_prefix_cmd.
8604
a51119cd
HD
86052020-05-02 Hannes Domani <ssbssa@yahoo.de>
8606
8607 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8608
652fc23a 86092020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8610
652fc23a
PW
8611 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8612 info_command.
8613
117539e6
KR
86142020-04-30 Kamil Rytarowski <n54@gmx.com>
8615
8616 * nbsd-nat.c (nbsd_enable_proc_events)
8617 (nbsd_nat_target::post_startup_inferior): Add.
8618 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8619 (nbsd_nat_target::update_thread_list): Rewrite.
8620 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8621 "PTRACE_LWP_CREATE".
8622 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8623
102e38eb 86242020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 8625
102e38eb
PW
8626 * stack.c (_initialize_stack): Remove duplicated creation
8627 of "frame" command and "f" alias.
8628
ee9d1e5f
HD
86292020-04-30 Hannes Domani <ssbssa@yahoo.de>
8630
8631 PR gdb/18706
8632 * gdbtypes.c (check_typedef): Calculate size of array of
8633 stubbed type.
8634
627c7fb8
HD
86352020-04-30 Hannes Domani <ssbssa@yahoo.de>
8636
8637 PR gdb/15559
8638 * i386-tdep.c (i386_push_dummy_call): Call
8639 i386_thiscall_push_dummy_call.
8640 (i386_thiscall_push_dummy_call): New function.
8641 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8642 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8643 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8644
ffc2844e
SM
86452020-04-29 Simon Marchi <simon.marchi@efficios.com>
8646
8647 * gdbarch.sh (do_read): Add shellcheck disable directive for
8648 warning SC2162.
8649
1207375d
SM
86502020-04-29 Simon Marchi <simon.marchi@efficios.com>
8651
8652 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8653 "referenced but not assigned" warning.
8654
9fdb2916
SM
86552020-04-29 Simon Marchi <simon.marchi@efficios.com>
8656
8657 * gdbarch.sh: Remove code that sets fallbackdefault.
8658
759cea5e
SM
86592020-04-29 Simon Marchi <simon.marchi@efficios.com>
8660
8661 * gdbarch.sh: Use shell operators && and || instead of
8662 -a and -o.
8663
cb02ab24
SM
86642020-04-29 Simon Marchi <simon.marchi@efficios.com>
8665
8666 * gdbarch.sh: Use $(...) instead of `...`.
8667
a6fc5ffc
SM
86682020-04-29 Simon Marchi <simon.marchi@efficios.com>
8669
8670 * gdbarch.sh: Use double quotes around variables.
8671
8d113d13
SM
86722020-04-29 Simon Marchi <simon.marchi@efficios.com>
8673
8674 * gdbarch.sh: Use %s with printf, instead of variables in the
8675 format string.
8676
ed6acedd
TT
86772020-04-29 Tom Tromey <tromey@adacore.com>
8678
8679 PR ada/25875:
8680 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8681 type fields here.
8682 (read_enumeration_type): Call
8683 update_enumeration_type_from_children later. Update comments.
8684 (process_enumeration_scope): Don't create type fields.
8685
b68b1b58
KR
86862020-04-29 Kamil Rytarowski <n54@gmx.com>
8687
8688 * nbsd-tdep.c: Include "xml-syscall.h".
8689 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8690
f94b2e03
KR
86912020-04-29 Kamil Rytarowski <n54@gmx.com>
8692
8693 * nbsd-nat.c: Include "sys/wait.h".
8694 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8695 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8696 (nbsd_nat_target::remove_exec_catchpoint)
8697 (nbsd_nat_target::set_syscall_catchpoint): Add.
8698 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8699 (nbsd_nat_target::insert_exec_catchpoint)
8700 (nbsd_nat_target::remove_exec_catchpoint)
8701 (nbsd_nat_target::set_syscall_catchpoint): Add.
8702 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8703 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8704 `nbsd_get_syscall_number'.
8705
fc49bc72
TT
87062020-04-29 Tom Tromey <tom@tromey.com>
8707
8708 * stack.c (print_block_frame_labels): Remove.
8709
d642b692
HD
87102020-04-29 Hannes Domani <ssbssa@yahoo.de>
8711
8712 PR gdb/17320
8713 * ada-valprint.c (val_print_packed_array_elements): Move array
8714 end bracket to new line.
8715 (ada_val_print_string): Remove extra spaces before first array
8716 element.
8717 * c-valprint.c (c_value_print_array): Likewise.
8718 * m2-valprint.c (m2_print_array_contents): Likewise.
8719 (m2_value_print_inner): Likewise.
8720 * p-valprint.c (pascal_value_print_inner): Likewise.
8721 * valprint.c (generic_val_print_array): Likewise.
8722 (value_print_array_elements): Move first array element and array
8723 end bracket to new line.
8724
ea90f227
TV
87252020-04-29 Tom de Vries <tdevries@suse.de>
8726
8727 PR symtab/25889
8728 * linespec.c (find_method): Fix ix calculation.
8729
4498ef4f
KR
87302020-04-28 Kamil Rytarowski <n54@gmx.com>
8731
8732 * syscalls/update-netbsd.sh: New file.
8733 * syscalls/netbsd.xml: Regenerate.
8734 * data-directory/Makefile.in: Register `netbsd.xml' in
8735 `SYSCALLS_FILES'.
8736
a55e30b5
SM
87372020-04-28 Simon Marchi <simon.marchi@efficios.com>
8738
8739 * syscalls/update-freebsd.sh: Add double quotes.
8740
2b2fbab8
TT
87412020-04-28 Tom Tromey <tom@tromey.com>
8742
8743 * NEWS: Update.
8744 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8745 (cmdpy_init): Allow class_tui.
8746
a65189c9
TV
87472020-04-28 Mark Williams <mark@myosotissp.com>
8748
8749 PR gdb/24480
8750 * dwarf2read.c: Add missing assingments to list_in_scope when
8751 start_symtab was already called.
8752
1b95cdb7
SM
87532020-04-28 Simon Marchi <simon.marchi@efficios.com>
8754
8755 PR gdb/25881
8756 * dwarf2/read.c (offset_map_type): Use
8757 gdb:hash_enum<sect_offset> as hash function.
8758
15cd93d0
TV
87592020-04-28 Tom de Vries <tdevries@suse.de>
8760
8761 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8762 with DW_AT_signature.
8763
1eb39914
SM
87642020-04-27 Simon Marchi <simon.marchi@efficios.com>
8765
8766 * configure.ac: Remove check for fs_base/gs_base in
8767 user_regs_struct.
8768 * configure: Re-generate.
8769 * config.in: Re-generate.
8770 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8771 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8772 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8773
991a3e2e
LM
87742020-04-27 Luis Machado <luis.machado@linaro.org>
8775
8776 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8777 problematic inline frame unwinding situation.
8778 * frame.c (frame_id_computed_p): New function.
8779 * frame.h (frame_id_computed_p): New prototype.
8780
361ba0e8
TT
87812020-04-26 Tom Tromey <tom@tromey.com>
8782
8783 * command.h (enum command_class) <class_pseudo>: Remove.
8784
bc3609fd
PW
87852020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8786
8787 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8788 and whitespace.
8789
b9771db7
KR
87902020-04-25 Kamil Rytarowski <n54@gmx.com>
8791
ec16513e
SM
8792 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8793 `PT_GET_PROCESS_STATE' block.
b9771db7 8794
7151c1af
TT
87952020-04-24 Tom Tromey <tom@tromey.com>
8796
8797 * symtab.h (symbol_get_demangled_name): Don't declare.
8798 * symtab.c (symbol_get_demangled_name): Remove.
8799 (general_symbol_info::natural_name)
8800 (general_symbol_info::demangled_name): Update.
8801
906bb4c5
TT
88022020-04-24 Tom Tromey <tom@tromey.com>
8803
8804 PR rust/25025:
8805 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8806
bcfe6157
TT
88072020-04-24 Tom Tromey <tom@tromey.com>
8808
8809 PR symtab/12707:
8810 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8811 exists.
8812 (new_symbol): Likewise.
8813 * compile/compile-object-load.c (get_out_value_type): Use
8814 symbol_matches_search_name.
8815
f049a313
TT
88162020-04-24 Tom Tromey <tom@tromey.com>
8817
8818 * dwarf2/read.c (add_partial_symbol): Do not call
8819 compute_and_set_names.
8820
76e288d1
TT
88212020-04-24 Tom Tromey <tom@tromey.com>
8822
8823 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8824 overload.
8825
2467f4f6
TT
88262020-04-24 Tom Tromey <tom@tromey.com>
8827
8828 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8829 (add_psymbol_to_list): New overload. Make old overload call new
8830 one.
8831 * psympriv.h (add_psymbol_to_list): New overload.
8832
e61108c9
TT
88332020-04-24 Tom Tromey <tom@tromey.com>
8834
8835 * dwarf2/read.c (partial_die_info::read) <case
8836 DW_AT_linkage_name>: Use value_as_string.
8837 (dwarf2_string_attr): Use value_as_string.
8838 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8839 method.
8840 * dwarf2/attribute.c (attribute::value_as_string): New method.
8841
8c87a452
TT
88422020-04-24 Tom Tromey <tom@tromey.com>
8843
8844 * symtab.c (general_symbol_info::natural_name)
8845 (general_symbol_info::demangled_name): Check for language_rust.
8846
787de330
TT
88472020-04-24 Tom Tromey <tom@tromey.com>
8848
8849 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8850 (dwarf2_physname): ... from here.
8851 (partial_die_info::read): Add Rust "{" hack.
8852
ff985671
TT
88532020-04-24 Tom Tromey <tom@tromey.com>
8854
8855 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8856 method.
8857 (symbol_set_demangled_name): Don't declare.
8858 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8859 symbol_set_demangled_name.
8860 (general_symbol_info::set_language)
8861 (general_symbol_info::compute_and_set_names): Update.
8862 * minsyms.c (minimal_symbol_reader::install): Update.
8863 * dwarf2/read.c (new_symbol): Update.
8864
1acda803
TT
88652020-04-24 Tom Tromey <tromey@adacore.com>
8866
8867 PR python/23662:
8868 * python/py-type.c (convert_field): Handle
8869 FIELD_LOC_KIND_DWARF_BLOCK.
8870 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8871 (typy_get_dynamic): Nw function.
8872 (type_object_getset): Add "dynamic".
8873 * NEWS: Add entry.
8874
d656f129
TT
88752020-04-24 Tom Tromey <tromey@adacore.com>
8876
8877 * ada-typeprint.c (print_choices, print_variant_part)
8878 (print_record_field_types_dynamic): New functions.
8879 (print_record_field_types): Use print_record_field_types_dynamic.
8880
7d79de9a
TT
88812020-04-24 Tom Tromey <tromey@adacore.com>
8882
8883 * dwarf2/read.c (handle_data_member_location): New overload.
8884 (dwarf2_add_field): Use it.
8885 (decode_locdesc): Add "computed" parameter. Update comment.
8886 * gdbtypes.c (is_dynamic_type_internal): Also look for
8887 FIELD_LOC_KIND_DWARF_BLOCK.
8888 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8889 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8890 virtual base classes.
8891 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8892 FIELD_LOC_KIND_DWARF_BLOCK.
8893
f8e89861
TT
88942020-04-24 Tom Tromey <tromey@adacore.com>
8895
8896 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8897 * gdbtypes.c (is_dynamic_type_internal): Check
8898 TYPE_HAS_DYNAMIC_LENGTH.
8899 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8900 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8901 New macros.
8902 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8903 constant.
8904
9c6a1327
TT
89052020-04-24 Tom Tromey <tromey@adacore.com>
8906
8907 * dwarf2/read.c (struct variant_field): Rewrite.
8908 (struct variant_part_builder): New.
8909 (struct nextfield): Remove "variant" field. Add "offset".
8910 (struct field_info): Add "current_variant_part" and
8911 "variant_parts".
8912 (alloc_discriminant_info): Remove.
8913 (alloc_rust_variant): New function.
8914 (quirk_rust_enum): Update.
8915 (dwarf2_add_field): Set "offset" member. Don't handle
8916 DW_TAG_variant_part.
8917 (offset_map_type): New typedef.
8918 (convert_variant_range, create_one_variant)
8919 (create_one_variant_part, create_variant_parts)
8920 (add_variant_property): New functions.
8921 (dwarf2_attach_fields_to_type): Call add_variant_property.
8922 (read_structure_type): Don't handle DW_TAG_variant_part.
8923 (handle_variant_part, handle_variant): New functions.
8924 (handle_struct_member_die): Use them.
8925 (process_structure_scope): Don't handle variant parts.
8926 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8927 (struct discriminant_info): Remove.
8928 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8929 (struct main_type) <flag_discriminated_union>: Remove.
8930 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8931 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8932 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8933 Update.
8934 * valops.c (value_union_variant): Remove.
8935 * value.h (value_union_variant): Don't declare.
8936
b249d2c2
TT
89372020-04-24 Tom Tromey <tromey@adacore.com>
8938
8939 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8940 (ada_value_primitive_packed_val): Update.
8941 * ada-valprint.c (ada_value_print_1): Update.
8942 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8943 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8944 just an address. Use evaluate_for_locexpr_baton.
8945 (dwarf2_evaluate_property): Update.
8946 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8947 array_view.
8948 * findvar.c (default_read_var_value): Update.
8949 * gdbtypes.c (compute_variant_fields_inner)
8950 (resolve_dynamic_type_internal): Update.
8951 (resolve_dynamic_type): Change type of valaddr parameter.
8952 * gdbtypes.h (resolve_dynamic_type): Update.
8953 * valarith.c (value_subscripted_rvalue): Update.
8954 * value.c (value_from_contents_and_address): Update.
8955
61122aa9
TT
89562020-04-24 Tom Tromey <tromey@adacore.com>
8957
8958 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8959 "push_initial_value" parameter.
8960 (dwarf2_evaluate_property): Likewise.
8961 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8962
ef83a141
TT
89632020-04-24 Tom Tromey <tromey@adacore.com>
8964
8965 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8966 (variant::matches, compute_variant_fields_recurse)
8967 (compute_variant_fields_inner, compute_variant_fields): New
8968 functions.
8969 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8970 Use resolved_type after type is made.
8971 (operator==): Add new cases.
8972 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8973 (struct discriminant_range, struct variant, struct variant_part):
8974 New.
8975 (union dynamic_prop_data) <variant_parts, original_type>: New
8976 members.
8977 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8978 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8979 constants.
8980 * value.c (unpack_bits_as_long): Now public.
8981 * value.h (unpack_bits_as_long): Declare.
8982
675127ec
TT
89832020-04-24 Tom Tromey <tromey@adacore.com>
8984
8985 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8986 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8987
9852ceef
HD
89882020-04-24 Hannes Domani <ssbssa@yahoo.de>
8989
8990 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8991
7632c6ce
KR
89922020-04-24 Kamil Rytarowski <n54@gmx.com>
8993
8994 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8995 (remove_fork_catchpoint, post_startup_inferior)
8996 (post_attach): Move...
8997 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8998 (remove_fork_catchpoint, post_startup_inferior)
8999 (post_attach): ...here.
9000 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9001 (remove_fork_catchpoint, post_startup_inferior)
9002 (post_attach): Move...
9003 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9004 (remove_fork_catchpoint, post_startup_inferior)
9005 (post_attach): ...here.
9006
7be2bb4f
TT
90072020-04-24 Tom Tromey <tromey@adacore.com>
9008
9009 * nat/windows-nat.h (struct windows_thread_info)
9010 <pc_adjusted>: New member.
9011 * windows-nat.c (windows_fetch_one_register): Check
9012 pc_adjusted.
9013 (windows_nat_target::get_windows_debug_event)
9014 (windows_nat_target::wait): Set pc_adjusted.
9015
f80cb3b4
TV
90162020-04-24 Tom de Vries <tdevries@suse.de>
9017
9018 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9019 Run gdb-add-index inside temp dir.
9020
29514b87
TT
90212020-04-23 Tom Tromey <tromey@adacore.com>
9022
9023 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9024 in loop.
9025
5939967b
LM
90262020-04-23 Luis Machado <luis.machado@linaro.org>
9027
9028 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9029 get_frame_register instead of gdbarch_unwind_pc.
9030
70bc38f5
TV
90312020-04-23 Tom de Vries <tdevries@suse.de>
9032
9033 * symtab.c (lookup_global_symbol): Prefer def over decl.
9034
de82891c
TV
90352020-04-23 Tom de Vries <tdevries@suse.de>
9036
9037 PR symtab/25807
9038 * block.c (best_symbol, better_symbol): Promote to external.
9039 * block.h (best_symbol, better_symbol): Declare.
9040 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9041 decl.
9042
ecc6c606
TT
90432020-04-23 Tom Tromey <tromey@adacore.com>
9044
9045 PR ada/25837:
9046 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9047 "const char *", not a "const std::string &".
9048 <name_and_matcher::operator==>: Update.
9049 * unittests/lookup_name_info-selftests.c: Change type of
9050 "result".
9051
740480b8
TT
90522020-04-23 Tom Tromey <tom@tromey.com>
9053
9054 * inferior.h (iterate_over_inferiors): Don't declare.
9055 * inferior.c (iterate_over_inferiors): Remove.
9056 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9057 Remove.
9058 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9059 use iterate_over_inferiors.
9060 (darwin_resume_inferior_it)
9061 (struct resume_inferior_threads_param)
9062 (darwin_resume_inferior_threads_it): Remove.
9063 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9064
ae3ab1f0
TV
90652020-04-23 Tom de Vries <tdevries@suse.de>
9066
9067 * blockframe.c (find_pc_partial_function): Use
9068 find_pc_sect_compunit_symtab rather than
9069 objfile->sf->qf->find_pc_sect_compunit_symtab.
9070
317d2668
TV
90712020-04-22 Tom de Vries <tdevries@suse.de>
9072
9073 PR symtab/25764
9074 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9075 in psymtabs.
9076
eea9e357
TV
90772020-04-22 Tom de Vries <tdevries@suse.de>
9078
9079 PR symtab/25801
9080 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9081 symtabs.
9082
3d5afab3
TV
90832020-04-22 Tom de Vries <tdevries@suse.de>
9084
9085 PR symtab/25700
9086 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9087 CU if already created.
9088
d43b7a2d
TBA
90892020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9090
9091 * infrun.c (displaced_step_fixup): Switch to the event_thread
9092 before calling displaced_step_restore, not after.
9093
d89edf9b
MM
90942020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9095
9096 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9097 its inferior is not recorded by us.
9098 (record_btrace_target_open): Replace call to
9099 all_non_exited_threads () with call to current_inferior
9100 ()->non_exited_threads ().
9101 (record_btrace_target::stop_recording): Likewise.
9102 (record_btrace_target::close): Likewise.
9103 (record_btrace_target::wait): Likewise.
9104 (record_btrace_target::record_stop_replaying): Likewise.
9105
5897fd49
MM
91062020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9107
9108 * btrace.c (btrace_enable): Throw an error on double enables and
9109 when enabling recording fails.
9110 (btrace_disable): Throw an error if the thread is not recorded.
9111
1a476b6d
MM
91122020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9113
9114 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9115 request if we do not have a thread_info.
9116
4778a5f8
TV
91172020-04-21 Tom de Vries <tdevries@suse.de>
9118
9119 PR gdb/25471
9120 * thread.c
9121 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9122 exception in get_frame_id.
9123
0fa7617d
TT
91242020-04-20 Tom Tromey <tromey@adacore.com>
9125
9126 * python/python.c (struct gdbpy_event): Mark move constructor as
9127 noexcept.
9128 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9129 constructor as noexcept.
9130 * completer.h (struct completion_result): Mark move constructor as
9131 noexcept.
9132 * completer.c (completion_result::completion_result): Use
9133 initialization style. Don't call reset_match_list.
9134
ad23bda0
MS
91352020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9136
9137 * MAINTAINERS (Write After Approval): Add myself.
9138
45e1f031
TT
91392020-04-18 Tom Tromey <tom@tromey.com>
9140
9141 * windows-tdep.c (init_w32_command_list)
9142 (w32_prefix_command_valid): Restore.
9143 (_initialize_windows_tdep): Call init_w32_command_list.
9144
08feed99
TT
91452020-04-18 Tom Tromey <tom@tromey.com>
9146
9147 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9148 * value.c (value_fn_field): Update.
9149 * valops.c (find_function_in_inferior)
9150 (value_allocate_space_in_inferior): Update.
9151 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9152 Update.
9153 * tui/tui-source.c (tui_source_window::set_contents): Update.
9154 * symtab.c (lookup_global_or_static_symbol)
9155 (find_function_start_sal_1, skip_prologue_sal)
9156 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9157 * symmisc.c (dump_msymbols, dump_symtab_1)
9158 (maintenance_print_one_line_table): Update.
9159 * symfile.c (init_entry_point_info, section_is_mapped)
9160 (list_overlays_command, simple_read_overlay_table)
9161 (simple_overlay_update_1): Update.
9162 * stap-probe.c (handle_stap_probe): Update.
9163 * stabsread.c (dbx_init_float_type, define_symbol)
9164 (read_one_struct_field, read_enum_type, read_range_type): Update.
9165 * source.c (info_line_command): Update.
9166 * python/python.c (gdbpy_source_objfile_script)
9167 (gdbpy_execute_objfile_script): Update.
9168 * python/py-type.c (save_objfile_types): Update.
9169 * python/py-objfile.c (py_free_objfile): Update.
9170 * python/py-inferior.c (python_new_objfile): Update.
9171 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9172 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9173 (maintenance_check_psymtabs): Update.
9174 * printcmd.c (info_address_command): Update.
9175 * objfiles.h (struct objfile) <arch>: New method, from
9176 get_objfile_arch.
9177 (get_objfile_arch): Don't declare.
9178 * objfiles.c (get_objfile_arch): Remove.
9179 (filter_overlapping_sections): Update.
9180 * minsyms.c (msymbol_is_function): Update.
9181 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9182 (output_nondebug_symbol): Update.
9183 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9184 (mdebug_expand_psymtab): Update.
9185 * machoread.c (macho_add_oso_symfile): Update.
9186 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9187 Update.
9188 * linux-fork.c (checkpoint_command): Update.
9189 * linespec.c (convert_linespec_to_sals): Update.
9190 * jit.c (finalize_symtab): Update.
9191 * infrun.c (insert_exception_resume_from_probe): Update.
9192 * ia64-tdep.c (ia64_find_unwind_table): Update.
9193 * hppa-tdep.c (internalize_unwinds): Update.
9194 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9195 Update.
9196 * gcore.c (call_target_sbrk): Update.
9197 * elfread.c (record_minimal_symbol, elf_symtab_read)
9198 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9199 (elf_gnu_ifunc_resolve_by_got): Update.
9200 * dwarf2/read.c (create_addrmap_from_index)
9201 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9202 (read_debug_names_from_section)
9203 (process_psymtab_comp_unit_reader, add_partial_symbol)
9204 (add_partial_subprogram, process_full_comp_unit)
9205 (read_file_scope, read_func_scope, read_lexical_block_scope)
9206 (read_call_site_scope, dwarf2_ranges_read)
9207 (dwarf2_record_block_ranges, dwarf2_add_field)
9208 (mark_common_block_symbol_computed, read_tag_pointer_type)
9209 (read_tag_string_type, dwarf2_init_float_type)
9210 (dwarf2_init_complex_target_type, read_base_type)
9211 (partial_die_info::read, partial_die_info::read)
9212 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9213 (dwarf2_fetch_die_loc_sect_off): Update.
9214 * dwarf2/loc.c (dwarf2_find_location_expression)
9215 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9216 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9217 (dwarf2_loc_desc_get_symbol_read_needs)
9218 (locexpr_describe_location_piece, locexpr_describe_location_1)
9219 (loclist_describe_location): Update.
9220 * dwarf2/index-write.c (write_debug_names): Update.
9221 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9222 * dtrace-probe.c (dtrace_process_dof): Update.
9223 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9224 (process_one_symbol): Update.
9225 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9226 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9227 (coff_read_enum_type): Update.
9228 * cli/cli-cmds.c (edit_command, list_command): Update.
9229 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9230 * breakpoint.c (create_overlay_event_breakpoint)
9231 (create_longjmp_master_breakpoint)
9232 (create_std_terminate_master_breakpoint)
9233 (create_exception_master_breakpoint, get_sal_arch): Update.
9234 * block.c (block_gdbarch): Update.
9235 * annotate.c (annotate_source_line): Update.
9236
0743fc83
TT
92372020-04-17 Tom Tromey <tromey@adacore.com>
9238
9239 * auto-load.c (show_auto_load_cmd): Remove.
9240 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9241 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9242 (maintenance_print_arc_command): Remove.
9243 * tui/tui-win.c (tui_command): Remove.
9244 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9245 * tui/tui-layout.c (tui_layout_command): Remove.
9246 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9247 * python/python.c (user_set_python, user_show_python): Remove.
9248 (_initialize_python): Use add_basic_prefix_cmd,
9249 add_show_prefix_cmd.
9250 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9251 (install_gdb_commands): Use add_basic_prefix_cmd,
9252 add_show_prefix_cmd.
9253 (info_guile_command): Remove.
9254 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9255 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9256 add_show_prefix_cmd.
9257 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9258 Remove do_set and do_show parameters.
9259 * cli/cli-style.c (set_style, show_style): Remove.
9260 (_initialize_cli_style): Use add_basic_prefix_cmd,
9261 add_show_prefix_cmd.
9262 (cli_style_option::add_setshow_commands): Remove do_set and
9263 do_show parameters.
9264 (cli_style_option::add_setshow_commands): Use
9265 add_basic_prefix_cmd, add_show_prefix_cmd.
9266 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9267 (set_style_name): Remove.
9268 * cli/cli-dump.c (dump_command, append_command): Remove.
9269 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9270 (tekhex_dump_command, binary_dump_command)
9271 (binary_append_command): Remove.
9272 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9273 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9274 (init_w32_command_list): Remove; move into ...
9275 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9276 * valprint.c (set_print, show_print, set_print_raw)
9277 (show_print_raw): Remove.
9278 (_initialize_valprint): Use add_basic_prefix_cmd,
9279 add_show_prefix_cmd.
9280 * typeprint.c (set_print_type, show_print_type): Remove.
9281 (_initialize_typeprint): Use add_basic_prefix_cmd,
9282 add_show_prefix_cmd.
9283 * record.c (set_record_command, show_record_command): Remove.
9284 (_initialize_record): Use add_basic_prefix_cmd,
9285 add_show_prefix_cmd.
9286 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9287 add_show_prefix_cmd.
9288 (info_command, show_command, set_debug, show_debug): Remove.
9289 * top.h (set_history, show_history): Don't declare.
9290 * top.c (set_history, show_history): Remove.
9291 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9292 (unset_tdesc_cmd): Remove.
9293 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9294 add_show_prefix_cmd.
9295 * symtab.c (info_module_command): Remove.
9296 (_initialize_symtab): Use add_basic_prefix_cmd.
9297 * symfile.c (overlay_command): Remove.
9298 (_initialize_symfile): Use add_basic_prefix_cmd.
9299 * sparc64-tdep.c (info_adi_command): Remove.
9300 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9301 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9302 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9303 add_show_prefix_cmd.
9304 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9305 (_initialize_serial): Use add_basic_prefix_cmd,
9306 add_show_prefix_cmd.
9307 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9308 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9309 add_show_prefix_cmd.
9310 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9311 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9312 add_show_prefix_cmd.
9313 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9314 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9315 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9316 add_show_prefix_cmd.
9317 * remote.c (remote_command, set_remote_cmd): Remove.
9318 (_initialize_remote): Use add_basic_prefix_cmd.
9319 * record-full.c (set_record_full_command)
9320 (show_record_full_command): Remove.
9321 (_initialize_record_full): Use add_basic_prefix_cmd,
9322 add_show_prefix_cmd.
9323 * record-btrace.c (cmd_set_record_btrace)
9324 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9325 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9326 (cmd_show_record_btrace_pt): Remove.
9327 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9328 add_show_prefix_cmd.
9329 * ravenscar-thread.c (set_ravenscar_command)
9330 (show_ravenscar_command): Remove.
9331 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9332 add_show_prefix_cmd.
9333 * mips-tdep.c (show_mips_command, set_mips_command)
9334 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9335 add_show_prefix_cmd.
9336 * maint.c (maintenance_command, maintenance_info_command)
9337 (maintenance_check_command, maintenance_print_command)
9338 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9339 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9340 add_show_prefix_cmd.
9341 (show_per_command_cmd): Remove.
9342 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9343 Remove.
9344 (maintenance_show_test_settings_cmd): Remove.
9345 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9346 add_show_prefix_cmd.
9347 * maint-test-options.c (maintenance_test_options_command):
9348 Remove.
9349 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9350 * macrocmd.c (macro_command): Remove
9351 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9352 * language.c (set_check, show_check): Remove.
9353 (_initialize_language): Use add_basic_prefix_cmd,
9354 add_show_prefix_cmd.
9355 * infcmd.c (unset_command): Remove.
9356 (_initialize_infcmd): Use add_basic_prefix_cmd.
9357 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9358 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9359 add_show_prefix_cmd.
9360 * go32-nat.c (go32_info_dos_command): Remove.
9361 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9362 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9363 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9364 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9365 (_initialize_frame): Use add_basic_prefix_cmd,
9366 add_show_prefix_cmd.
9367 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9368 (_initialize_dcache): Use add_basic_prefix_cmd,
9369 add_show_prefix_cmd.
9370 * cp-support.c (maint_cplus_command): Remove.
9371 (_initialize_cp_support): Use add_basic_prefix_cmd.
9372 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9373 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9374 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9375 add_basic_prefix_cmd, add_show_prefix_cmd.
9376 * breakpoint.c (save_command): Remove.
9377 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9378 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9379 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9380 add_show_prefix_cmd.
9381 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9382 (set_ada_command, show_ada_command): Remove.
9383 (_initialize_ada_language): Use add_basic_prefix_cmd,
9384 add_show_prefix_cmd.
9385 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9386
3557f442
KR
93872020-04-16 Kamil Rytarowski <n54@gmx.com>
9388
9389 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9390 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9391
16197208
SM
93922020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9393
9394 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9395 warning messages.
9396
00ac85d3
SM
93972020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9398
9399 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9400 import table is not at beginning of .idata section.
9401
381ce63f
PA
94022020-04-16 Pedro Alves <palves@redhat.com>
9403
9404 * inferior.c (delete_inferior): Use delete operator directly
9405 instead of delete_program_space.
9406 * progspace.c (add_program_space): New, factored out from
9407 program_space::program_space.
9408 (remove_program_space): New, factored out from
9409 delete_program_space.
9410 (program_space::program_space): Remove intro comment. Rewrite.
9411 (program_space::~program_space): Remove intro comment. Call
9412 remove_program_space.
9413 (delete_program_space): Delete.
9414 * progspace.h (program_space::program_space): Make explicit. Move
9415 intro comment here, adjusted.
9416 (program_space::~program_space): Move intro comment here,
9417 adjusted.
9418 (delete_program_space): Remove.
9419
a010605f
TT
94202020-04-16 Tom Tromey <tromey@adacore.com>
9421
9422 * windows-nat.c (windows_nat::handle_access_violation): New
9423 function.
9424 * nat/windows-nat.h (handle_access_violation): Declare.
9425 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9426 windows-nat.c. Call handle_access_violation.
9427
efba5c23
TV
94282020-04-16 Tom de Vries <tdevries@suse.de>
9429
9430 PR symtab/25791
9431 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9432 CUs without psymtab.
9433
97ed802d
KB
94342020-04-16 Kevin Buettner <kevinb@redhat.com>
9435
9436 * python/python.c (do_start_initialization): Don't call
9437 PyEval_InitThreads for Python 3.9 and beyond.
9438
c7d64809
KR
94392020-04-15 Kamil Rytarowski <n54@gmx.com>
9440
9441 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9442 thread functions.
9443 (obsd_nat_target::wait): Likewise.
9444
ce127a96
TT
94452020-04-15 Tom Tromey <tromey@adacore.com>
9446
9447 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9448 (DEBUG_EXCEPT): Use debug_printf.
9449
99f1bc6a
AB
94502020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9451
9452 * completer.c (class completion_tracker::completion_hash_entry)
9453 <hash_name>: New member function.
9454 (completion_tracker::discard_completions): New callback to hash a
9455 completion_hash_entry, pass this to htab_create_alloc.
9456
a0e9b532
JT
94572016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9458
9459 * windows-nat.c (windows_make_so): Warn rather than stopping with
9460 an error if realpath() fails.
9461
06ca5dd4
KR
94622020-04-14 Kamil Rytarowski <n54@gmx.com>
9463
9464 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9465 (nbsd_nat_target::info_proc): Add do_status.
9466
194d088f
TV
94672020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9468 Tom de Vries <tdevries@suse.de>
9469
9470 PR symtab/25718
9471 * psympriv.h (struct partial_symtab::read_symtab)
9472 (struct partial_symtab::expand_psymtab)
9473 (struct partial_symtab::read_dependencies): Update comments.
9474 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9475 read_symtab for includer.
9476 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9477 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9478 (struct dwarf2_include_psymtab::m_readin): Remove.
9479 (struct dwarf2_include_psymtab::includer): New member function.
9480 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9481
c1a66c06
TV
94822020-04-14 Tom de Vries <tdevries@suse.de>
9483
9484 PR symtab/25720
9485 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9486 with NULL symbol_matcher and lookup_name.
9487 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9488 and lookup_name.
9489 * dwarf2/read.c (dw2_expand_symtabs_matching)
9490 (dw2_debug_names_expand_symtabs_matching): Same.
9491 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9492 Make lookup_name a pointer. Update comment.
9493 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9494 lookup_name being a pointer.
9495 * symfile.c (expand_symtabs_matching): Same.
9496 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9497 * linespec.c (iterate_over_all_matching_symtabs): Same.
9498
400b5eca
TT
94992020-04-13 Tom Tromey <tom@tromey.com>
9500
9501 * run-on-main-thread.c: Update include.
9502 * unittests/main-thread-selftests.c: Update include.
9503 * tui/tui-win.c: Update include.
9504 * tui/tui-io.c: Update include.
9505 * tui/tui-interp.c: Update include.
9506 * tui/tui-hooks.c: Update include.
9507 * top.h: Update include.
9508 * top.c: Update include.
9509 * ser-base.c: Update include.
9510 * remote.c: Update include.
9511 * remote-notif.c: Update include.
9512 * remote-fileio.c: Update include.
9513 * record-full.c: Update include.
9514 * record-btrace.c: Update include.
9515 * python/python.c: Update include.
9516 * posix-hdep.c: Update include.
9517 * mingw-hdep.c: Update include.
9518 * mi/mi-main.c: Update include.
9519 * mi/mi-interp.c: Update include.
9520 * main.c: Update include.
9521 * linux-nat.c: Update include.
9522 * interps.c: Update include.
9523 * infrun.c: Update include.
9524 * inf-loop.c: Update include.
9525 * event-top.c: Update include.
9526 * event-loop.c: Move to ../gdbsupport/.
9527 * event-loop.h: Move to ../gdbsupport/.
9528 * async-event.h: Update include.
9529 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9530
93b54c8e
TT
95312020-04-13 Tom Tromey <tom@tromey.com>
9532
9533 * tui/tui-win.c: Include async-event.h.
9534 * remote.c: Include async-event.h.
9535 * remote-notif.c: Include async-event.h.
9536 * record-full.c: Include async-event.h.
9537 * record-btrace.c: Include async-event.h.
9538 * infrun.c: Include async-event.h.
9539 * event-top.c: Include async-event.h.
9540 * event-loop.h: Move some declarations to async-event.h.
9541 * event-loop.c: Don't include ser-event.h or top.h. Move some
9542 code to async-event.c.
9543 * async-event.h: New file.
9544 * async-event.c: New file.
9545 * Makefile.in (COMMON_SFILES): Add async-event.c.
9546 (HFILES_NO_SRCDIR): Add async-event.h.
9547
c1cd3163
TT
95482020-04-13 Tom Tromey <tom@tromey.com>
9549
9550 * utils.c (flush_streams): New function.
9551 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9552
29f2bf4f
TT
95532020-04-13 Tom Tromey <tom@tromey.com>
9554
9555 * event-loop.c (handle_file_event): Use warning, not
9556 printf_unfiltered.
9557
98029d02
TT
95582020-04-13 Tom Tromey <tom@tromey.com>
9559
9560 * event-loop.c: Include <chrono>.
9561
06cc9596
TT
95622020-04-13 Tom Tromey <tom@tromey.com>
9563
9564 * gdb_select.h: Move to ../gdbsupport/.
9565 * event-loop.c: Update include path.
9566 * top.c: Update include path.
9567 * ser-base.c: Update include path.
9568 * ui-file.c: Update include path.
9569 * ser-tcp.c: Update include path.
9570 * guile/scm-ports.c: Update include path.
9571 * posix-hdep.c: Update include path.
9572 * ser-unix.c: Update include path.
9573 * gdb_usleep.c: Update include path.
9574 * mingw-hdep.c: Update include path.
9575 * inflow.c: Update include path.
9576 * infrun.c: Update include path.
9577 * event-top.c: Update include path.
9578
8ae8e197
TT
95792020-04-13 Tom Tromey <tom@tromey.com>
9580
9581 * configure: Rebuild.
9582 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9583
58cf28e8
TT
95842020-04-13 Tom Tromey <tom@tromey.com>
9585
9586 * event-loop.h (start_event_loop): Don't declare.
9587 * event-loop.c (start_event_loop): Move...
9588 * main.c (start_event_loop): ...here. Now static.
9589
b7f999ae
SDJ
95902020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9591
9592 * MAINTAINERS: Update my email address.
9593
1085dfd4
KR
95942020-04-12 Kamil Rytarowski <n54@gmx.com>
9595
9596 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9597 IP_ALL.
9598
49d1d1f5
KR
95992020-04-12 Kamil Rytarowski <n54@gmx.com>
9600
9601 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 9602 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 9603
b4848d2a
KR
96042020-04-12 Kamil Rytarowski <n54@gmx.com>
9605
9606 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 9607 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 9608
51c133d5
KR
96092020-04-12 Kamil Rytarowski <n54@gmx.com>
9610
9611 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9612
54b8cbd0
KR
96132020-04-11 Kamil Rytarowski <n54@gmx.com>
9614
9615 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9616 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9617 (nbsd_nat_target::info_proc): New functions.
9618 * nbsd-nat.c (kinfo_get_vmmap): New function.
9619 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9620 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9621 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9622 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9623 functions.
9624 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9625 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9626 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9627 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9628 (KINFO_VME_FLAG_GROWS_DOWN): New.
9629
cf83625d
AS
96302020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9631
9632 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9633 bit shift.
9634
0c4311ab
TT
96352020-04-10 Tom Tromey <tromey@adacore.com>
9636
9637 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9638
3e65b3e9
TT
96392020-04-10 Tom Tromey <tromey@adacore.com>
9640
9641 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9642 separate debug files.
9643
13302e95
HD
96442020-04-10 Hannes Domani <ssbssa@yahoo.de>
9645
9646 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9647 Move to...
9648 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9649 ... here.
9650 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9651 Check for STATUS_WX86_BREAKPOINT.
9652 (windows_nat_target::wait): Same.
9653
bdfc1e8a
TV
96542020-04-10 Tom de Vries <tdevries@suse.de>
9655
9656 PR cli/25808
9657 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9658
f4460aec
SM
96592020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9660
9661 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9662 (Write After Approval): Remove Tom de Vries.
9663
a25198bb
BE
96642020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9665
9666 revert partially:
9667 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9668
aac66a4c
SM
9669 * buildsym.c (record_line): Fix undefined behavior and preserve
9670 lines at eof.
a25198bb 9671
206c98a6
KR
96722020-04-09 Kamil Rytarowski <n54@gmx.com>
9673
9674 * auxv.h (svr4_auxv_parse): New.
9675 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9676 and generic_auxv_parse.
9677 (svr4_auxv_parse): Add.
9678 * obsd-tdep.c: Include "auxv.h".
9679 (obsd_auxv_parse): Remove.
9680 (obsd_init_abi): Remove comment.
9681 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9682 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9683 * nbsd-tdep.c: Include "auxv.h".
9684 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9685
71fbdbaf
TT
96862020-04-08 Tom Tromey <tromey@adacore.com>
9687
9688 * nat/windows-nat.h (last_wait_event): Don't declare.
9689 (wait_for_debug_event): Update comment.
9690 * nat/windows-nat.c (last_wait_event): Now static.
9691
2c1d95e8
TT
96922020-04-08 Tom Tromey <tromey@adacore.com>
9693
9694 * windows-nat.c (wait_for_debug_event): Move to
9695 nat/windows-nat.c.
9696 * nat/windows-nat.h (wait_for_debug_event): Declare.
9697 * nat/windows-nat.c (wait_for_debug_event): Move from
9698 windows-nat.c. No longer static.
9699
d2977bc4
TT
97002020-04-08 Tom Tromey <tromey@adacore.com>
9701
9702 * windows-nat.c (get_windows_debug_event): Use
9703 fetch_pending_stop.
9704 * nat/windows-nat.h (fetch_pending_stop): Declare.
9705 * nat/windows-nat.c (fetch_pending_stop): New function.
9706
e758e19c
TT
97072020-04-08 Tom Tromey <tromey@adacore.com>
9708
9709 * windows-nat.c (windows_continue): Use matching_pending_stop and
9710 continue_last_debug_event.
9711 * nat/windows-nat.h (matching_pending_stop)
9712 (continue_last_debug_event): Declare.
9713 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9714 (matching_pending_stop, continue_last_debug_event): New
9715 functions.
9716
8d30e395
TT
97172020-04-08 Tom Tromey <tromey@adacore.com>
9718
9719 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9720 (handle_exception_result): Move to nat/windows-nat.h.
9721 (DEBUG_EXCEPTION_SIMPLE): Remove.
9722 (windows_nat::handle_ms_vc_exception): New function.
9723 (handle_exception): Move to nat/windows-nat.c.
9724 (get_windows_debug_event): Update.
9725 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9726 nat/windows-nat.c.
9727 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9728 (handle_exception_result): Move from windows-nat.c.
9729 (handle_exception): Declare.
9730 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9731 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9732 windows-nat.c.
9733
29de418d
TT
97342020-04-08 Tom Tromey <tromey@adacore.com>
9735
9736 * windows-nat.c (exception_count, event_count): Remove.
9737 (handle_exception, get_windows_debug_event)
9738 (do_initial_windows_stuff): Update.
9739
a816ba18
TT
97402020-04-08 Tom Tromey <tromey@adacore.com>
9741
9742 * windows-nat.c (windows_nat::handle_load_dll)
9743 (windows_nat::handle_unload_dll): Rename. No longer static.
9744 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9745 Declare.
9746
a00caa12
TT
97472020-04-08 Tom Tromey <tromey@adacore.com>
9748
9749 * complaints.h (stop_whining): Declare at top-level.
9750 (complaint): Don't declare stop_whining.
9751
d41b524f
TT
97522020-04-08 Tom Tromey <tromey@adacore.com>
9753
9754 * windows-nat.c (windows_nat::handle_output_debug_string):
9755 Rename. No longer static.
9756 * nat/windows-nat.h (handle_output_debug_string): Declare.
9757
3c76026d
TT
97582020-04-08 Tom Tromey <tromey@adacore.com>
9759
9760 * windows-nat.c (current_process_handle, current_process_id)
9761 (main_thread_id, last_sig, current_event, last_wait_event)
9762 (current_windows_thread, desired_stop_thread_id, pending_stops)
9763 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9764 (display_selectors, fake_create_process)
9765 (get_windows_debug_event): Update.
9766 * nat/windows-nat.h (current_process_handle, current_process_id)
9767 (main_thread_id, last_sig, current_event, last_wait_event)
9768 (current_windows_thread, desired_stop_thread_id, pending_stops)
9769 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9770 * nat/windows-nat.c (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 (siginfo_er): New globals. Move from windows-nat.c.
9774
9d8679cc
TT
97752020-04-08 Tom Tromey <tromey@adacore.com>
9776
9777 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9778 (handle_load_dll): Update.
9779 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9780
28688adf
TT
97812020-04-08 Tom Tromey <tromey@adacore.com>
9782
9783 * windows-nat.c (enum thread_disposition_type): Move to
9784 nat/windows-nat.h.
9785 (windows_nat::thread_rec): Rename from thread_rec. No longer
9786 static.
9787 (windows_add_thread, windows_nat_target::fetch_registers)
9788 (windows_nat_target::store_registers, handle_exception)
9789 (windows_nat_target::resume, get_windows_debug_event)
9790 (windows_nat_target::get_tib_address)
9791 (windows_nat_target::thread_name)
9792 (windows_nat_target::thread_alive): Update.
9793 * nat/windows-nat.h (enum thread_disposition_type): Move from
9794 windows-nat.c.
9795 (thread_rec): Declare.
9796
4834dad0
TT
97972020-04-08 Tom Tromey <tromey@adacore.com>
9798
9799 * windows-nat.c: Add "using namespace".
9800 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9801 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9802
65bafd5b
TT
98032020-04-08 Tom Tromey <tromey@adacore.com>
9804
9805 * nat/windows-nat.h (struct windows_thread_info): Declare
9806 destructor.
9807 * nat/windows-nat.c (~windows_thread_info): New.
9808
0a4afda3
TT
98092020-04-08 Tom Tromey <tromey@adacore.com>
9810
9811 PR gdb/22992
9812 * windows-nat.c (current_event): Update comment.
9813 (last_wait_event, desired_stop_thread_id): New globals.
9814 (struct pending_stop): New.
9815 (pending_stops): New global.
9816 (windows_nat_target) <stopped_by_sw_breakpoint>
9817 <supports_stopped_by_sw_breakpoint>: New methods.
9818 (windows_fetch_one_register): Add assertions. Adjust PC.
9819 (windows_continue): Handle pending stops. Suspend other threads
9820 when stepping. Use last_wait_event
9821 (wait_for_debug_event): New function.
9822 (get_windows_debug_event): Use wait_for_debug_event. Handle
9823 pending stops. Queue spurious stops.
9824 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9825 (windows_nat_target::kill): Use wait_for_debug_event.
9826 * nat/windows-nat.h (struct windows_thread_info)
9827 <stopped_at_software_breakpoint>: New field.
9828 * nat/windows-nat.c (windows_thread_info::resume): Clear
9829 stopped_at_software_breakpoint.
9830
8e61ebec
TT
98312020-04-08 Tom Tromey <tromey@adacore.com>
9832
9833 * windows-nat.c (enum thread_disposition_type): New.
9834 (thread_rec): Replace "get_context" parameter with "disposition";
9835 change type.
9836 (windows_add_thread, windows_nat_target::fetch_registers)
9837 (windows_nat_target::store_registers, handle_exception)
9838 (windows_nat_target::resume, get_windows_debug_event)
9839 (windows_nat_target::get_tib_address)
9840 (windows_nat_target::thread_name)
9841 (windows_nat_target::thread_alive): Update.
9842
98a03287
TT
98432020-04-08 Tom Tromey <tromey@adacore.com>
9844
9845 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9846 (windows_continue): Use windows_continue::resume.
9847 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9848 resume>: Declare new methods.
9849 * nat/windows-nat.c: New file.
9850 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9851
7c7411bc
TT
98522020-04-08 Tom Tromey <tromey@adacore.com>
9853
9854 * windows-nat.c (windows_add_thread, windows_delete_thread)
9855 (windows_nat_target::fetch_registers)
9856 (windows_nat_target::store_registers, fake_create_process)
9857 (windows_nat_target::resume, windows_nat_target::resume)
9858 (get_windows_debug_event, windows_nat_target::wait)
9859 (windows_nat_target::pid_to_str)
9860 (windows_nat_target::get_tib_address)
9861 (windows_nat_target::get_ada_task_ptid)
9862 (windows_nat_target::thread_name)
9863 (windows_nat_target::thread_alive): Use lwp, not tid.
9864
2950fdf7
TT
98652020-04-08 Tom Tromey <tromey@adacore.com>
9866
9867 * windows-nat.c (handle_exception)
9868 (windows_nat_target::thread_name): Update.
9869 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9870 <name>: Now unique_xmalloc_ptr.
9871
62fe396b
TT
98722020-04-08 Tom Tromey <tromey@adacore.com>
9873
9874 * windows-nat.c (thread_rec)
9875 (windows_nat_target::fetch_registers): Update.
9876 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9877 Update comment.
9878 <debug_registers_changed, reload_context>: Now bool.
9879
e9534bd2
TT
98802020-04-08 Tom Tromey <tromey@adacore.com>
9881
9882 * windows-nat.c (windows_add_thread): Use new.
9883 (windows_init_thread_list, windows_delete_thread): Use delete.
9884 (get_windows_debug_event): Update.
9885 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9886 destructor, and initializers.
9887
ae1f8880
TT
98882020-04-08 Tom Tromey <tromey@adacore.com>
9889
9890 * windows-nat.c (struct windows_thread_info): Remove.
9891 * nat/windows-nat.h: New file.
9892
55a1e039
TT
98932020-04-08 Tom Tromey <tromey@adacore.com>
9894
9895 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9896 (thread_rec, windows_add_thread, windows_delete_thread)
9897 (windows_continue): Update.
9898
93366324
TT
98992020-04-08 Tom Tromey <tromey@adacore.com>
9900
9901 * windows-nat.c (struct windows_thread_info): Remove typedef.
9902 (thread_head): Remove.
9903 (thread_list): New global.
9904 (thread_rec, windows_add_thread, windows_init_thread_list)
9905 (windows_delete_thread, windows_continue): Update.
9906
0f2265e2
SM
99072020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9908
9909 * windows-tdep.h (windows_init_abi): Add comment.
9910 (cygwin_init_abi): New declaration.
9911 * windows-tdep.c: Split signal enumeration in two, one for
9912 Windows and one for Cygwin.
9913 (windows_gdb_signal_to_target): Only deal with signal of the
9914 Windows OS ABI.
9915 (cygwin_gdb_signal_to_target): New function.
9916 (windows_init_abi): Rename to windows_init_abi_common, don't set
9917 gdb_signal_to_target gdbarch method. Add new new function with
9918 this name.
9919 (cygwin_init_abi): New function.
9920 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9921 comment. Don't call windows_init_abi.
9922 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9923 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9924 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9925 i386_windows_init_abi_common, don't call windows_init_abi. Add
9926 a new function of this name.
9927 (i386_cygwin_init_abi): New function.
9928 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9929 OS ABI Cygwin.
9930
3810f182
SM
99312020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9932
9933 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9934 parameter.c.
9935 (dwarf2_read_gdb_index): Update.
9936
063f8e80
KR
99372020-04-07 Kamil Rytarowski <n54@gmx.com>
9938
9939 * nbsd-tdep.c: Include "objfiles.h".
9940 (nbsd_skip_solib_resolver): New.
9941 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9942
85a9510c 99432020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9944
9945 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9946 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9947 with DW_LLE_base_addressx are being emitted in DWARFv5.
9948 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9949 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9950 unsigned integer.
9951
9fc3eaae 99522020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9953
9954 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9955 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9956 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9957 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9958 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9959 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9960 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9961
9962
41144253 99632020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9964
9965 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9966 (read_loclist_index): New function definition.
9967 (lookup_loclist_base): New function definition.
9968 (read_loclist_header): New function definition.
9969 (dwarf2_cu): Add loclist_base and loclist_header field.
9970 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9971 (read_full_die_1): Read the value of DW_AT_loclists_base.
9972 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9973 (read_attribute_value): Handle DW_FORM_loclistx.
9974 (skip_one_die): Handle DW_FORM_loclistx.
9975 (loclist_header): New structure declaration.
9976 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9977
9f4e76a4
SM
99782020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9979
9980 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9981 constructor. Remove `addr` parameter from other constructor and
9982 add `per_cu` parameter.
9983 * dwarf2/read.c (create_partial_symtab): Update.
9984
25c11aca
TV
99852020-04-07 Tom de Vries <tdevries@suse.de>
9986
9987 PR symtab/25796
9988 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9989 (partial_die_info::fixup): Inherit has_const_value.
9990
5707e24b
TV
99912020-04-07 Tom de Vries <tdevries@suse.de>
9992
9993 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9994 symbols without address.
9995
05f00e22
KR
99962020-04-06 Kamil Rytarowski <n54@gmx.com>
9997
9998 * nbsd-nat.h (struct thread_info): Add forward declaration.
9999 (nbsd_nat_target::thread_alive): Add.
10000 (nbsd_nat_target::thread_name): Likewise.
10001 (nbsd_nat_target::update_thread_list): Likewise.
10002 (update_thread_list::post_attach): Likewise.
10003 (post_attach::pid_to_str): Likewise.
10004 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10005 (nbsd_thread_lister): Add.
10006 (nbsd_nat_target::thread_alive): Likewise.
10007 (nbsd_nat_target::thread_name): Likewise.
10008 (nbsd_add_threads): Likewise.
10009 (update_thread_list::post_attach): Likewise.
10010 (nbsd_nat_target::update_thread_list): Likewise.
10011 (post_attach::pid_to_str): Likewise.
10012
6ee448cc
TT
100132020-04-06 Tom Tromey <tromey@adacore.com>
10014
10015 * ada-valprint.c (print_variant_part): Extract the variant field.
10016 (print_field_values): Use the field as the outer value when
10017 recursing.
10018
dea34e8c
TT
100192020-04-06 Tom Tromey <tromey@adacore.com>
10020
10021 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10022 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10023 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10024 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10025 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10026
93689ce9
TT
100272020-04-06 Tom Tromey <tromey@adacore.com>
10028
10029 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10030 TYPE_CODE_ERROR.
10031
79743962
KR
100322020-04-06 Kamil Rytarowski <n54@gmx.com>
10033
10034 * nbsd-tdep.c: Include "gdbarch.h".
10035 Define enum with NetBSD signal numbers.
10036 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10037 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10038 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10039 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10040 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10041 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10042 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10043 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10044 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10045 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10046 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10047 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10048
9e7c9a03
HD
100492020-04-03 Hannes Domani <ssbssa@yahoo.de>
10050
10051 PR gdb/25325
10052 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10053
d9e49b61
TT
100542020-04-03 Tom Tromey <tromey@adacore.com>
10055
10056 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10057 Read constant block.
10058
e0fc5c3f
SM
100592020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10060
10061 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10062 (gdb_bfd_get_full_section_contents): New declaration.
10063 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10064 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10065 gdb_bfd_get_full_section_contents.
10066
e2ff18a0
SM
100672020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10068
10069 * exec.c (build_section_table): Replace internal_error with
10070 gdb_assert.
10071 (section_table_xfer_memory_partial): Likewise.
10072 * mdebugread.c (parse_partial_symbols): Likewise.
10073 * psymtab.c (lookup_partial_symbol): Likewise.
10074 * utils.c (wrap_here): Likewise.
10075
0830d301
TT
100762020-04-02 Tom Tromey <tromey@adacore.com>
10077
10078 * f-lang.c (build_fortran_types): Use arch_type to initialize
10079 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10080
e7da7f8f
TT
100812020-04-02 Tom Tromey <tromey@adacore.com>
10082
10083 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10084 of attributes.
10085
c90d28ac
AB
100862020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10087 Bernd Edlinger <bernd.edlinger@hotmail.de>
10088 Tom Tromey <tromey@adacore.com>
10089
10090 * buildsym.c (buildsym_compunit::record_line): Remove
10091 deduplication code.
10092
1aa98955
TV
100932020-04-02 Tom de Vries <tdevries@suse.de>
10094
10095 PR ada/24671
10096 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10097
d3214198
TV
100982020-04-02 Tom de Vries <tdevries@suse.de>
10099
10100 * dwarf2/read.c (dwarf2_gdb_index_functions,
10101 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10102 NULL.
10103 * psymtab.c (psym_lookup_global_symbol_language): New function.
10104 (psym_functions): Init psym_lookup_global_symbol_language with
10105 psym_lookup_global_symbol_language.
10106 * symfile-debug.c (debug_sym_quick_functions): Init
10107 lookup_global_symbol_language with NULL.
10108 * symfile.c (set_initial_language): Remove fixme comment.
10109 * symfile.h (struct quick_symbol_functions): Add
10110 lookup_global_symbol_language.
10111 * symtab.c (find_quick_global_symbol_language): New function.
10112 (find_main_name): Use find_quick_global_symbol_language.
10113
2836752f
SM
101142020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10115
10116 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10117
64dc2d4b
BE
101182020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10119
10120 * buildsym.c (record_line): Fix undefined behavior and preserve
10121 lines at eof.
10122
bbe3dc41
BE
101232020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10124
10125 * buildsym.c (record_line): Fix the resizing condition.
10126
6b4a335b
TT
101272020-04-01 Tom Tromey <tom@tromey.com>
10128
10129 * value.h (value_literal_complex): Add comment.
10130 * valops.c (value_literal_complex): Refer to value.h.
10131
3638a098
TT
101322020-04-01 Tom Tromey <tom@tromey.com>
10133
10134 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10135 (scalar_type): New rule, from typebase.
10136 (typebase): Use scalar_type. Recognize complex types.
10137 (field_name): Handle FLOAT_KEYWORD.
10138 (ident_tokens): Add _Complex and __complex__.
10139
c34e8714
TT
101402020-04-01 Tom Tromey <tom@tromey.com>
10141
10142 PR exp/25299:
10143 * valarith.c (promotion_type, complex_binop): New functions.
10144 (scalar_binop): Handle complex numbers. Use promotion_type.
10145 (value_pos, value_neg, value_complement): Handle complex numbers.
10146
fa649bb7
TT
101472020-04-01 Tom Tromey <tom@tromey.com>
10148
10149 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10150 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10151 (parse_number): Handle complex numbers.
10152
981c08ce
TT
101532020-04-01 Tom Tromey <tom@tromey.com>
10154
10155 * c-valprint.c (c_decorations): Change complex suffix to "i".
10156
4c99290d
TT
101572020-04-01 Tom Tromey <tom@tromey.com>
10158
10159 * valprint.c (generic_value_print_complex): Use accessors.
10160 * value.h (value_real_part, value_imaginary_part): Declare.
10161 * valops.c (value_real_part, value_imaginary_part): New
10162 functions.
10163 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10164
5b930b45
TT
101652020-04-01 Tom Tromey <tom@tromey.com>
10166
10167 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10168 (read_range_type): Update.
10169 * mdebugread.c (basic_type): Update.
10170 * go-lang.c (build_go_types): Use init_complex_type.
10171 * gdbtypes.h (struct main_type) <complex_type>: New member.
10172 (init_complex_type): Update.
10173 (arch_complex_type): Don't declare.
10174 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10175 Make name if none given. Use alloc_type_copy. Look for cached
10176 complex type.
10177 (arch_complex_type): Remove.
10178 (gdbtypes_post_init): Use init_complex_type.
10179 * f-lang.c (build_fortran_types): Use init_complex_type.
10180 * dwarf2/read.c (read_base_type): Update.
10181 * d-lang.c (build_d_types): Use init_complex_type.
10182 * ctfread.c (read_base_type): Update.
10183
53cccef1
TBA
101842020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10185
10186 * infrun.c (stop_all_threads): Update assertion, plus when
10187 stopping threads, take into account that we might be trying
10188 to stop an all-stop target.
10189 (stop_waiting): Call 'stop_all_threads' if there exists a
10190 non-stop target.
10191
a0714d30
TBA
101922020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10193
10194 * target.h (exists_non_stop_target): New function declaration.
10195 * target.c (exists_non_stop_target): New function.
10196
60e22c1e
HD
101972020-04-01 Hannes Domani <ssbssa@yahoo.de>
10198
10199 PR gdb/24789
10200 * eval.c (is_integral_or_integral_reference): New function.
10201 (evaluate_subexp_standard): Allow integer references in
10202 pointer arithmetic.
10203
e139a727
TBA
102042020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10205
10206 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10207 check for no ptid in the stop reply when the target is non-stop.
10208
e0802d59
TT
102092020-04-01 Tom Tromey <tromey@adacore.com>
10210
10211 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10212 "name" parameter to rvalue reference. Initialize m_name_holder.
10213 <lookup_name_info>: New overloads.
10214 <name>: Return gdb::string_view.
10215 <c_str>: New method.
10216 <make_ignore_params>: Update.
10217 <search_name_hash>: Update.
10218 <language_lookup_name>: Return const char *.
10219 <m_name>: Change type.
10220 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10221 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10222 (lookup_name_info::match_any): Update.
10223 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10224 Update.
10225 * minsyms.c (linkage_name_str): Update.
10226 * language.c (default_symbol_name_matcher): Update.
10227 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10228 Update.
10229 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10230 (ada_lookup_name_info::ada_lookup_name_info): Update.
10231 (literal_symbol_name_matcher): Update.
10232
8c072cb6
TT
102332020-04-01 Tom Tromey <tromey@adacore.com>
10234
10235 * psymtab.c (psymtab_search_name): Remove function.
10236 (psym_lookup_symbol): Create search name and lookup name here.
10237 (lookup_partial_symbol): Remove "name" parameter; add
10238 lookup_name.
10239 (psym_expand_symtabs_for_function): Update.
10240
6f29a534
TT
102412020-03-31 Joel Jones <joelkevinjones@gmail.com>
10242
10243 PR tui/25597:
10244 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10245
af62665e
TT
102462020-03-31 Tom Tromey <tromey@adacore.com>
10247
10248 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10249 memcpy.
10250
d1a89da5
NC
102512020-03-30 Nelson Chu <nelson.chu@sifive.com>
10252
10253 * features/riscv/32bit-csr.xml: Regenerated.
10254 * features/riscv/64bit-csr.xml: Regenerated.
10255
d8af9068
TT
102562020-03-30 Tom Tromey <tromey@adacore.com>
10257
10258 * ada-valprint.c (print_variant_part): Update.
10259 * ada-lang.h (ada_which_variant_applies): Update.
10260 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10261 outer_valaddr parameters; replace with "outer" value parameter.
10262 (to_fixed_variant_branch_type): Update.
10263
227c0bf4
PFC
102642020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10265
10266 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10267 <list>. Remove inclusion of observable.h.
10268 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10269 (struct arch_lwp_info): New struct.
10270 (class ppc_linux_dreg_interface): New class.
10271 (struct ppc_linux_process_info): New struct.
10272 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10273 <low_new_clone, low_forget_process, low_prepare_to_resume>
10274 <copy_thread_dreg_state, mark_thread_stale>
10275 <mark_debug_registers_changed, register_hw_breakpoint>
10276 <clear_hw_breakpoint, register_wp, clear_wp>
10277 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10278 <num_memory_accesses, get_trigger_type>
10279 <create_watchpoint_request, hwdebug_point_cmp>
10280 <init_arch_lwp_info, get_arch_lwp_info>
10281 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10282 methods.
10283 <struct ptid_hash>: New inner struct.
10284 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10285 members.
10286 (saved_dabr_value, hwdebug_info, max_slots_number)
10287 (struct hw_break_tuple, struct thread_points, ppc_threads)
10288 (have_ptrace_hwdebug_interface)
10289 (hwdebug_find_thread_points_by_tid)
10290 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10291 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10292 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10293 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10294 use m_dreg_interface.
10295 (hwdebug_point_cmp): Change to...
10296 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10297 reference arguments instead of pointers.
10298 (ppc_linux_nat_target::ranged_break_num_registers): Use
10299 m_dreg_interface.
10300 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10301 m_dreg_interface. Call register_hw_breakpoint.
10302 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10303 m_dreg_interface. Call clear_hw_breakpoint.
10304 (get_trigger_type): Change to...
10305 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10306 comment.
10307 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10308 use m_dreg_interface. Call register_hw_breakpoint.
10309 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10310 use m_dreg_interface. Call clear_hw_breakpoint.
10311 (can_use_watchpoint_cond_accel): Change to...
10312 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10313 method. Update comment, use m_dreg_interface and
10314 m_process_info.
10315 (calculate_dvc): Change to...
10316 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10317 m_dreg_interface.
10318 (num_memory_accesses): Change to...
10319 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10320 (check_condition): Change to...
10321 (ppc_linux_nat_target::check_condition): ...this method.
10322 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10323 comment, use m_dreg_interface.
10324 (create_watchpoint_request): Change to...
10325 (ppc_linux_nat_target::create_watchpoint_request): ...this
10326 method. Use m_dreg_interface.
10327 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10328 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10329 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10330 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10331 (ppc_linux_nat_target::low_forget_process)
10332 (ppc_linux_nat_target::low_new_fork)
10333 (ppc_linux_nat_target::low_new_clone)
10334 (ppc_linux_nat_target::low_delete_thread)
10335 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10336 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10337 only call mark_thread_stale.
10338 (ppc_linux_thread_exit): Remove.
10339 (ppc_linux_nat_target::stopped_data_address): Change to...
10340 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10341 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10342 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10343 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10344 comment. Call low_stopped_data_address.
10345 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10346 m_dreg_interface.
10347 (ppc_linux_nat_target::masked_watch_num_registers): Use
10348 m_dreg_interface.
10349 (ppc_linux_nat_target::copy_thread_dreg_state)
10350 (ppc_linux_nat_target::mark_thread_stale)
10351 (ppc_linux_nat_target::mark_debug_registers_changed)
10352 (ppc_linux_nat_target::register_hw_breakpoint)
10353 (ppc_linux_nat_target::clear_hw_breakpoint)
10354 (ppc_linux_nat_target::register_wp)
10355 (ppc_linux_nat_target::clear_wp)
10356 (ppc_linux_nat_target::init_arch_lwp_info)
10357 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10358 (_initialize_ppc_linux_nat): Remove observer callback.
10359
4db10d8f
PFC
103602020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10361
10362 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10363 (ppc_linux_nat_target::auxv_parse)
10364 (ppc_linux_nat_target::read_description)
10365 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10366 Move up.
10367
1310c1b0
PFC
103682020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10369
10370 * linux-nat.h (low_new_clone): New method.
10371 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10372
69b037c3
SM
103732020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10374
10375 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10376 (dbx_expand_psymtab): ... this.
10377 (start_psymtab): Update.
10378 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10379 (mdebug_expand_psymtab): ... this.
10380 (parse_partial_symbols): Update.
10381 (new_psymtab): Update.
10382 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10383 (xcoff_expand_psymtab): ... this.
10384 (xcoff_start_psymtab): Update.
10385
48993951
SM
103862020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10387
10388 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10389 <expand_dependencies>: ... this.
10390 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10391 (partial_symtab::expand_dependencies): ... this.
10392 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10393 Update.
10394 (dwarf2_psymtab::expand_psymtab): Update.
10395 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10396 * mdebugread.c (psymtab_to_symtab_1): Update.
10397 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10398
3ad83046
SM
103992020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10400
10401 * psympriv.h (discard_psymtab): Remove.
10402 * dbxread.c (dbx_end_psymtab): Update.
10403 * xcoffread.c (xcoff_end_psymtab): Update.
10404
4d1b9ab6
TT
104052020-03-28 Tom Tromey <tom@tromey.com>
10406
10407 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10408 comment.
10409
f1749218
TT
104102020-03-28 Tom Tromey <tom@tromey.com>
10411
10412 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10413
ebea7626
HD
104142020-03-27 Hannes Domani <ssbssa@yahoo.de>
10415
10416 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10417
a879b4d5
JB
104182020-03-26 John Baldwin <jhb@FreeBSD.org>
10419
10420 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10421
0826b30a
TT
104222020-03-26 Tom Tromey <tom@tromey.com>
10423
10424 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10425 (mark_common_block_symbol_computed, read_tag_string_type)
10426 (attr_to_dynamic_prop, read_subrange_type): Update.
10427 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10428 to be methods on struct attribute.
10429 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10430 (read_call_site_scope, partial_die_info::read)
10431 (partial_die_info::read, lookup_die_type, follow_die_ref):
10432 Update.
10433 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10434 from dwarf2_get_ref_die_offset.
10435 (attribute::constant_value): New method, from
10436 dwarf2_get_attr_constant_value.
10437 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10438 Declare method.
10439 <constant_value>: New method.
10440
2b2558bf
TT
104412020-03-26 Tom Tromey <tom@tromey.com>
10442
10443 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10444 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10445 (dwarf_type_encoding_name): Move to stringify.c.
10446 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10447 * dwarf2/stringify.c: New file.
10448 * dwarf2/stringify.h: New file.
10449
eeb64781
TT
104502020-03-26 Tom Tromey <tom@tromey.com>
10451
10452 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10453 Rewrite.
10454
a39fdb41
TT
104552020-03-26 Tom Tromey <tom@tromey.com>
10456
10457 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10458 methods.
10459 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10460 (lookup_ranges_base): Likewise.
10461 (read_cutu_die_from_dwo, read_full_die_1): Update.
10462
436c571c
TT
104632020-03-26 Tom Tromey <tom@tromey.com>
10464
10465 * dwarf2/read.c (read_import_statement, read_file_scope)
10466 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10467 (read_lexical_block_scope, read_call_site_scope)
10468 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10469 (handle_struct_member_die, process_structure_scope)
10470 (update_enumeration_type_from_children)
10471 (process_enumeration_scope, read_array_type, read_common_block)
10472 (read_namespace, read_module, read_subroutine_type): Update.
10473 (sibling_die): Remove.
10474
052c8bb8
TT
104752020-03-26 Tom Tromey <tom@tromey.com>
10476
10477 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10478 (build_type_psymtabs_reader, read_structure_type)
10479 (read_enumeration_type, read_full_die_1): Update.
10480 (dwarf2_attr_no_follow): Move to die.h.
10481 * dwarf2/die.h (struct die_info) <attr>: New method.
10482
2b24b6e4
TT
104832020-03-26 Tom Tromey <tom@tromey.com>
10484
10485 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10486 <base_address>: Now an optional.
10487 (dwarf2_find_base_address, dwarf2_rnglists_process)
10488 (dwarf2_ranges_process, fill_in_loclist_baton)
10489 (dwarf2_symbol_mark_computed): Update.
10490
c2d50fd0
TT
104912020-03-26 Tom Tromey <tom@tromey.com>
10492
10493 * dwarf2/read.c (struct die_info): Move to die.h.
10494 * dwarf2/die.h: New file.
10495
0df7ad3a
TT
104962020-03-26 Tom Tromey <tom@tromey.com>
10497
10498 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10499 * dwarf2/read.c
10500 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10501 Move to line-header.c.
10502 (read_checked_initial_length_and_offset, read_formatted_entries):
10503 Likewise.
10504 (dwarf_decode_line_header): Split into two.
10505 * dwarf2/line-header.c
10506 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10507 Move from read.c.
10508 (read_checked_initial_length_and_offset, read_formatted_entries):
10509 Likewise.
10510 (dwarf_decode_line_header): New function, split from read.c.
10511
86c0bb4c
TT
105122020-03-26 Tom Tromey <tom@tromey.com>
10513
10514 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10515 Declare method.
10516 * dwarf2/read.c (read_attribute_value): Update.
10517 (dwarf2_per_objfile::read_line_string): Rename from
10518 read_indirect_line_string.
10519 (read_formatted_entries): Update.
10520
2ef46c2f
TT
105212020-03-26 Tom Tromey <tom@tromey.com>
10522
10523 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10524 variable.
10525
4f9c1eda
TT
105262020-03-26 Tom Tromey <tom@tromey.com>
10527
10528 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10529 const.
10530 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10531 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10532 parameter const.
10533
5a0e026f
TT
105342020-03-26 Tom Tromey <tom@tromey.com>
10535
10536 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10537 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10538 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10539 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10540
8844c11b
TT
105412020-03-26 Tom Tromey <tom@tromey.com>
10542
10543 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10544 file_names_size, file_full_name, file_file_name>: Use const.
10545 <file_name_at, file_names>: Add const overload.
10546 * dwarf2/line-header.c (line_header::file_file_name)
10547 (line_header::file_full_name): Update.
10548
c90ec28a
TT
105492020-03-26 Tom Tromey <tom@tromey.com>
10550
10551 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10552 (macro_start_file, consume_improper_spaces)
10553 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10554 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10555 (dwarf_decode_macros): Move to macro.c.
10556 * dwarf2/macro.c: New file.
10557 * dwarf2/macro.h: New file.
10558 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10559
4f44ae6c
TT
105602020-03-26 Tom Tromey <tom@tromey.com>
10561
10562 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10563 method.
10564 * dwarf2/section.c: New method. From
10565 read_indirect_string_at_offset_from.
10566 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10567 (read_indirect_string_at_offset_from): Move to section.c.
10568 (read_indirect_string_at_offset): Rewrite.
10569 (read_indirect_line_string_at_offset): Remove.
10570 (read_indirect_string, read_indirect_line_string)
10571 (dwarf_decode_macro_bytes): Update.
10572
a0194fa8
TT
105732020-03-26 Tom Tromey <tom@tromey.com>
10574
10575 * dwarf2/section.h (struct dwarf2_section_info)
10576 <overload_complaint>: Declare.
10577 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10578 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10579 Rename from dwarf2_section_buffer_overflow_complaint.
10580 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10581 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10582
3d27bbdb
TT
105832020-03-26 Tom Tromey <tom@tromey.com>
10584
10585 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10586 Declare.
10587 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10588 Move from read.c.
10589 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10590 to section.c.
10591
9eac9650
TT
105922020-03-26 Tom Tromey <tom@tromey.com>
10593
10594 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10595
bf80d710
TT
105962020-03-26 Tom Tromey <tom@tromey.com>
10597
10598 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10599 "builder".
10600 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10601 parameter.
10602 (dwarf_decode_macros): Update.
10603
0314b390
TT
106042020-03-26 Tom Tromey <tom@tromey.com>
10605
10606 * dwarf2/read.c (read_attribute_value): Update.
10607 (read_indirect_string_from_dwz): Move to dwz.c; change into
10608 method.
10609 (dwarf_decode_macro_bytes): Update.
10610 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10611 * dwarf2/dwz.c: New file.
10612 * Makefile.in (COMMON_SFILES): Add dwz.c.
10613
9fda78b6
TT
106142020-03-26 Tom Tromey <tom@tromey.com>
10615
10616 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10617 * dwarf2/read.c: Add include.
10618 * dwarf2/index-write.c: Add include.
10619 * dwarf2/index-cache.c: Add include.
10620 * dwarf2/dwz.h: New file.
10621
33aa3c10
TT
106222020-03-25 Tom Tromey <tom@tromey.com>
10623
10624 * compile/compile-object-load.c (get_out_value_type): Mention
10625 correct symbol name in error message.
10626
d503b685
HD
106272020-03-25 Hannes Domani <ssbssa@yahoo.de>
10628
10629 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10630
7b1eff95
TV
106312020-03-25 Tom de Vries <tdevries@suse.de>
10632
10633 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10634 * symmisc.c (dump_symtab_1): Print user and includes fields.
10635 (maintenance_info_symtabs): Same.
10636
dd895392
AB
106372020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10638
10639 PR gdb/25534
10640 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10641 (riscv_regcache_cooked_write): New function.
10642 (riscv_push_dummy_call): Use new function.
10643 (riscv_return_value): Likewise.
10644
5ab2fbf1
SM
106452020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10646
10647 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10648 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10649 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10650 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10651 * infrun.c (follow_fork): Likewise.
10652 (follow_fork_inferior): Likewise.
10653 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10654 * linux-nat.h (class linux_nat_target): Likewise.
10655 * remote.c (class remote_target) <follow_fork>: Likewise.
10656 (remote_target::follow_fork): Likewise.
10657 * target-delegates.c: Re-generate.
10658 * target.c (default_follow_fork): Likewise.
10659 (target_follow_fork): Likewise.
10660 * target.h (struct target_ops) <follow_fork>: Likewise.
10661 (target_follow_fork): Likewise.
10662
a64fafb5
TV
106632020-03-24 Tom de Vries <tdevries@suse.de>
10664
10665 * psymtab.c (maintenance_info_psymtabs): Print user field.
10666
fe26d3a3
TT
106672020-03-20 Tom Tromey <tromey@adacore.com>
10668
10669 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10670 const.
10671 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10672 const.
10673
c884cc46
SM
106742020-03-20 Simon Marchi <simon.marchi@efficios.com>
10675
10676 * ptrace.m4: Don't check for ptrace declaration.
10677 * config.in: Re-generate.
10678 * configure: Re-generate.
10679 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10680 not defined.
10681
1ff700c2
KR
106822020-03-20 Kamil Rytarowski <n54@gmx.com>
10683
10684 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10685 `PTRACE_TYPE_RET'.
10686 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10687 * sparc-nat.c (gdb_ptrace): Likewise.
10688 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10689
f7d4f0b1
TT
106902020-03-20 Tom Tromey <tromey@adacore.com>
10691
10692 * c-exp.y (lex_one_token): Fix assert.
10693
f67210ff
TT
106942020-03-20 Tom Tromey <tromey@adacore.com>
10695
10696 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10697 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10698 strncpy call.
10699
1773be9e
TT
107002020-03-20 Tom Tromey <tromey@adacore.com>
10701
10702 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10703
70304be9
TT
107042020-03-20 Tom Tromey <tromey@adacore.com>
10705
10706 * ada-valprint.c (print_variant_part): Remove parameters; switch
10707 to value-based API.
10708 (print_field_values): Likewise.
10709 (ada_val_print_struct_union): Likewise.
10710 (ada_value_print_1): Update.
10711
9faa006d
KR
107122020-03-20 Kamil Rytarowski <n54@gmx.com>
10713
10714 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10715 nbsd_nat_target instead of inf_ptrace_target.
10716 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10717 nbsd_nat_target.
10718
4a90f062
KR
107192020-03-20 Kamil Rytarowski <n54@gmx.com>
10720
10721 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10722 it to the ptrace call.
10723 * (store_registers): Likewise.
10724
107252020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
10726
10727 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10728 it to the ptrace call.
10729 * (store_registers): Likewise.
10730
2d07da27
LM
107312020-03-19 Luis Machado <luis.machado@linaro.org>
10732
10733 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10734 valid, fetch vg value from ptrace.
10735
f09db380
KR
107362020-03-19 Kamil Rytarowski <n54@gmx.com>
10737 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10738 * inf-ptrace.c: Likewise.
10739 * (gdb_ptrace): Add.
10740 * (inf_ptrace_target::resume): Update.
10741 * (inf_ptrace_target::xfer_partial): Likewise.
10742 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10743 * (inf_ptrace_peek_poke): Update.
10744
fcc7376e
KR
107452020-03-19 Kamil Rytarowski <n54@gmx.com>
10746
10747 * x86-bsd-nat.c (gdb_ptrace): New.
10748 * (x86bsd_dr_set): Add new argument `ptid'.
10749 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10750 x86bsd_dr_set_addr): Update.
10751
cada5fc9
AB
107522020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10753
10754 * remote.c (remote_target::process_stop_reply): Handle events for
10755 all threads differently.
10756
19a2740f
AB
107572020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10758
10759 * completer.c (completion_tracker::remove_completion): Define new
10760 function.
10761 * completer.h (completion_tracker::remove_completion): Declare new
10762 function.
10763 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10764 when adding a C++ function symbol.
10765
724fd9ba
AB
107662020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10767
10768 * completer.c (completion_tracker::completion_hash_entry): Define
10769 new class.
10770 (advance_to_filename_complete_word_point): Call
10771 recompute_lowest_common_denominator.
10772 (completion_tracker::completion_tracker): Call discard_completions
10773 to setup the hash table.
10774 (completion_tracker::discard_completions): Allow for being called
10775 from the constructor, pass new equal function, and element deleter
10776 when constructing the hash table. Initialise new class member
10777 variables.
10778 (completion_tracker::maybe_add_completion): Remove use of
10779 m_entries_vec, and store more information into m_entries_hash.
10780 (completion_tracker::recompute_lcd_visitor): New function, most
10781 content taken from...
10782 (completion_tracker::recompute_lowest_common_denominator):
10783 ...here, this now just visits each item in the hash calling the
10784 above visitor.
10785 (completion_tracker::build_completion_result): Remove use of
10786 m_entries_vec, call recompute_lowest_common_denominator.
10787 * completer.h (completion_tracker::have_completions): Remove use
10788 of m_entries_vec.
10789 (completion_tracker::completion_hash_entry): Declare new class.
10790 (completion_tracker::recompute_lowest_common_denominator): Change
10791 function signature.
10792 (completion_tracker::recompute_lcd_visitor): Declare new function.
10793 (completion_tracker::m_entries_vec): Delete.
10794 (completion_tracker::m_entries_hash): Initialize to NULL.
10795 (completion_tracker::m_lowest_common_denominator_valid): New
10796 member variable.
10797 (completion_tracker::m_lowest_common_denominator_max_length): New
10798 member variable.
10799
5a82b8a1
KR
108002020-03-17 Kamil Rytarowski <n54@gmx.com>
10801
10802 * regformats/regdef.h: Put reg in gdb namespace.
10803
fb516a69
KR
108042020-03-17 Kamil Rytarowski <n54@gmx.com>
10805
10806 * i386-bsd-nat.c (gdb_ptrace): New.
10807 * (i386bsd_fetch_inferior_registers,
10808 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10809 * (i386bsd_fetch_inferior_registers,
10810 i386bsd_store_inferior_registers) Use gdb_ptrace.
10811
1c0aa1fb
KR
108122020-03-17 Kamil Rytarowski <n54@gmx.com>
10813
10814 * amd64-bsd-nat.c (gdb_ptrace): New.
10815 * (amd64bsd_fetch_inferior_registers,
10816 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10817 * (amd64bsd_fetch_inferior_registers,
10818 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10819
5ccd2fb7
KR
108202020-03-17 Kamil Rytarowski <n54@gmx.com>
10821
10822 * user-regs.c (user_reg::read): Rename to...
10823 (user_reg::xread): ...this.
10824 * (append_user_reg): Rename argument `read' to `xread'.
10825 * (user_reg_add_builtin): Likewise.
10826 * (user_reg_add): Likewise.
10827 * (value_of_user_reg): Likewise.
10828
2108a63a
KR
108292020-03-17 Kamil Rytarowski <n54@gmx.com>
10830
10831 * sparc-nat.c (gdb_ptrace): New.
10832 * sparc-nat.c (sparc_fetch_inferior_registers)
10833 (sparc_store_inferior_registers) Remove obsolete comment.
10834 * sparc-nat.c (sparc_fetch_inferior_registers)
10835 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10836 * sparc-nat.c (sparc_fetch_inferior_registers)
10837 (sparc_store_inferior_registers) Use gdb_ptrace.
10838
a225c9a8
KR
108392020-03-17 Kamil Rytarowski <n54@gmx.com>
10840
10841 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10842 it to the ptrace call.
10843 * sh-nbsd-nat.c (store_registers): Likewise.
10844
98097623
KR
108452020-03-17 Kamil Rytarowski <n54@gmx.com>
10846
10847 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10848 nbsd_nat_target instead of inf_ptrace_target.
10849 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10850 nbsd_nat_target.
10851
9e38d619
KR
108522020-03-17 Kamil Rytarowski <n54@gmx.com>
10853
10854 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10855
a2ecbe9f
KR
108562020-03-17 Kamil Rytarowski <n54@gmx.com>
10857
10858 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10859 <sys/sysctl.h>.
10860 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10861
58990295
TV
108622020-03-17 Tom de Vries <tdevries@suse.de>
10863
10864 PR gdb/23710
10865 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10866 fields.
10867 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10868 fields.
10869 (process_imported_unit_die): Skip import of c++ CUs.
10870
771dd3a8
TT
108712020-03-16 Tom Tromey <tom@tromey.com>
10872
10873 * p-valprint.c (pascal_object_print_value): Initialize
10874 base_value.
10875
817a7585
AK
108762020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10877 Shahab Vahedi <shahab@synopsys.com>
10878
10879 * Makefile.in: Add arch/arc.o
10880 * configure.tgt: Likewise.
10881 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10882 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 10883 (arc_read_description): New function to cache target descriptions.
817a7585
AK
10884 * arc-tdep.h (arc_read_description): Add proto type.
10885 * arch/arc.c: New file.
10886 * arch/arc.h: Likewise.
10887 * features/Makefile: Replace old target descriptions with new.
10888 * features/arc-arcompact.c: Remove.
10889 * features/arc-arcompact.xml: Likewise.
10890 * features/arc-v2.c: Likewise
10891 * features/arc-v2.xml: Likewise
10892 * features/arc/aux-arcompact.xml: New file.
10893 * features/arc/aux-v2.xml: Likewise.
10894 * features/arc/core-arcompact.xml: Likewise.
10895 * features/arc/core-v2.xml: Likewise.
10896 * features/arc/aux-arcompact.c: Generate.
10897 * features/arc/aux-v2.c: Likewise.
10898 * features/arc/core-arcompact.c: Likewise.
10899 * features/arc/core-v2.c: Likewise.
10900 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10901
67430cd0
TT
109022020-03-16 Tom Tromey <tromey@adacore.com>
10903
10904 PR gdb/25663:
10905 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10906 putting value into bcache.
10907
30efb6c7
SM
109082020-03-16 Simon Marchi <simon.marchi@efficios.com>
10909
10910 PR gdb/21500
10911 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10912 to...
10913 (amd64_windows_init_abi_common): ... this. Don't set size of
10914 long type.
10915 (amd64_windows_init_abi): New function.
10916 (amd64_cygwin_init_abi): New function.
10917 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10918 the Cygwin OS ABI.
10919 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10920 comment.
10921
8db52437
SM
109222020-03-16 Simon Marchi <simon.marchi@efficios.com>
10923
10924 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10925 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10926 (pe_import_directory_entry): New struct type.
10927 (is_linked_with_cygwin_dll): New function.
10928 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10929 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10930 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10931
5982a56a
SM
109322020-03-16 Simon Marchi <simon.marchi@efficios.com>
10933
10934 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10935 i386_cygwin_core_osabi_sniffer.
10936
7a1998df
SM
109372020-03-16 Simon Marchi <simon.marchi@efficios.com>
10938
10939 * i386-cygwin-tdep.c: Rename to...
10940 * i386-windows-tdep.c: ... this.
10941 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10942 i386-windows-tdep.c.
10943 * configure.tgt: Likewise.
10944
053205cc
SM
109452020-03-16 Simon Marchi <simon.marchi@efficios.com>
10946
10947 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10948 * osabi.c (gdb_osabi_names): Add "Windows".
10949 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10950 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10951 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10952 i386_cygwin_osabi_sniffer.
10953 (_initialize_i386_cygwin_tdep): Register OS ABI
10954 GDB_OSABI_WINDOWS for i386.
10955 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10956 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10957 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10958 for x86-64.
10959 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10960 when the target matches '*-*-mingw*'.
10961
fe4b2ee6
SM
109622020-03-16 Simon Marchi <simon.marchi@efficios.com>
10963
10964 * defs.h (enum gdb_osabi): Move to...
10965 * osabi.h (enum gdb_osabi): ... here.
10966 * gdbarch.sh: Include osabi.h in gdbarch.h.
10967 * gdbarch.h: Re-generate.
10968
cb9b645d
SM
109692020-03-16 Simon Marchi <simon.marchi@efficios.com>
10970
10971 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10972 function.
10973 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10974
3293bbaf
TT
109752020-03-14 Tom Tromey <tom@tromey.com>
10976
10977 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10978 for C++.
10979 (c_type_print_modifier): Likewise. Add "language" parameter.
10980 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10981 (c_type_print_base_1): Update.
10982 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10983 constants.
10984 * type-stack.c (type_stack::insert): Handle tp_atomic and
10985 tp_restrict.
10986 (type_stack::follow_type_instance_flags): Likewise.
10987 (type_stack::follow_types): Likewise. Merge type-following code.
10988 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10989 (space_identifier, cv_with_space_id)
10990 (const_or_volatile_or_space_identifier_noopt)
10991 (const_or_volatile_or_space_identifier): Remove.
10992 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10993 rules.
10994 (ptr_operator, typebase): Update.
10995 (enum token_flag) <FLAG_C>: New constant.
10996 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10997 "_Atomic".
10998 (lex_one_token): Handle FLAG_C.
10999
154151a6
KR
110002020-03-14 Kamil Rytarowski <n54@gmx.com>
11001
11002 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11003 it to the ptrace call.
11004 * m68k-bsd-nat.c (store_registers): Likewise.
11005
bc107784
KR
110062020-03-14 Kamil Rytarowski <n54@gmx.com>
11007
11008 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11009 gdb_byte *.
11010 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11011 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11012 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11013
01a80117
KR
110142020-03-14 Kamil Rytarowski <n54@gmx.com>
11015
11016 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11017 nbsd_nat_target instead of inf_ptrace_target.
11018 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11019 nbsd_nat_target.
11020
f90280ca
KR
110212020-03-14 Kamil Rytarowski <n54@gmx.com>
11022
11023 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11024 register_t.
11025
6def66f1
KR
110262020-03-14 Kamil Rytarowski <n54@gmx.com>
11027
11028 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11029 it to the ptrace call.
11030 * alpha-bsd-nat.c (store_registers): Likewise.
11031
66eaca97
KR
110322020-03-14 Kamil Rytarowski <n54@gmx.com>
11033
11034 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11035 includes.
11036 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11037 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11038 fill_fpregset): Likewise.
11039
4fed520b
KR
110402020-03-14 Kamil Rytarowski <n54@gmx.com>
11041
11042 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11043 nbsd_nat_target instead of inf_ptrace_target.
11044 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11045 nbsd_nat_target.
11046
2190cf06
KR
110472020-03-14 Kamil Rytarowski <n54@gmx.com>
11048
11049 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11050 register_t.
11051
75c56d3d
KR
110522020-03-14 Kamil Rytarowski <n54@gmx.com>
11053
11054 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11055 it to the ptrace call.
11056 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11057 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11058 * arm-nbsd-nat.c (store_register): Likewise.
11059 * arm-nbsd-nat.c (store_regs): Likewise.
11060 * arm-nbsd-nat.c (store_fp_register): Likewise.
11061 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11062
6018d381
KR
110632020-03-14 Kamil Rytarowski <n54@gmx.com>
11064
11065 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11066 nbsd_nat_target instead of inf_ptrace_target.
11067 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11068 nbsd_nat_target.
11069
013f99f0
KR
110702020-03-14 Kamil Rytarowski <n54@gmx.com>
11071
11072 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11073 it to the ptrace call.
11074 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11075
12753073
KR
110762020-03-14 Kamil Rytarowski <n54@gmx.com>
11077
6227b330
KR
11078 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11079 it to the ptrace call.
11080 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11081
110822020-03-14 Kamil Rytarowski <n54@gmx.com>
11083
11084 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11085 gdb_byte *.
12753073
KR
11086 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11087
d5be5fa4
KR
110882020-03-14 Kamil Rytarowski <n54@gmx.com>
11089
11090 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11091 instead of inf_ptrace_target.
11092 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11093 nbsd_nat_target.
11094
8110f842
KR
110952020-03-14 Kamil Rytarowski <n54@gmx.com>
11096
11097 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11098 register_t.
11099
52feded7
KR
111002020-03-14 Kamil Rytarowski <n54@gmx.com>
11101
11102 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11103 register_t.
11104
25567eee
KR
111052020-03-14 Kamil Rytarowski <n54@gmx.com>
11106
11107 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11108 register_t.
11109
426a9c18
TT
111102020-03-13 Tom Tromey <tom@tromey.com>
11111
11112 * value.h (val_print): Don't declare.
11113 * valprint.h (val_print_array_elements)
11114 (val_print_scalar_formatted, generic_val_print): Don't declare.
11115 * valprint.c (generic_val_print_array): Take a struct value.
11116 (generic_val_print_ptr, generic_val_print_memberptr)
11117 (generic_val_print_bool, generic_val_print_int)
11118 (generic_val_print_char, generic_val_print_complex)
11119 (generic_val_print): Remove.
11120 (generic_value_print): Update.
11121 (do_val_print): Remove unused parameters. Don't call
11122 la_val_print.
11123 (val_print): Remove.
11124 (common_val_print): Update. Don't call value_check_printable.
11125 (val_print_scalar_formatted, val_print_array_elements): Remove.
11126 * rust-lang.c (rust_val_print): Remove.
11127 (rust_language_defn): Update.
11128 * p-valprint.c (pascal_val_print): Remove.
11129 (pascal_value_print_inner): Update.
11130 (pascal_object_print_val_fields, pascal_object_print_val):
11131 Remove.
11132 (pascal_object_print_static_field): Update.
11133 * p-lang.h (pascal_val_print): Don't declare.
11134 * p-lang.c (pascal_language_defn): Update.
11135 * opencl-lang.c (opencl_language_defn): Update.
11136 * objc-lang.c (objc_language_defn): Update.
11137 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11138 * m2-lang.h (m2_val_print): Don't declare.
11139 * m2-lang.c (m2_language_defn): Update.
11140 * language.h (struct language_defn) <la_val_print>: Remove.
11141 * language.c (unk_lang_value_print_inner): Rename. Change
11142 argument types.
11143 (unknown_language_defn, auto_language_defn): Update.
11144 * go-valprint.c (go_val_print): Remove.
11145 * go-lang.h (go_val_print): Don't declare.
11146 * go-lang.c (go_language_defn): Update.
11147 * f-valprint.c (f_val_print): Remove.
11148 * f-lang.h (f_value_print): Don't declare.
11149 * f-lang.c (f_language_defn): Update.
11150 * d-valprint.c (d_val_print): Remove.
11151 * d-lang.h (d_value_print): Don't declare.
11152 * d-lang.c (d_language_defn): Update.
11153 * cp-valprint.c (cp_print_value_fields)
11154 (cp_print_value_fields_rtti, cp_print_value): Remove.
11155 (cp_print_static_field): Update.
11156 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11157 (c_val_print_struct, c_val_print_union, c_val_print_int)
11158 (c_val_print_memberptr, c_val_print): Remove.
11159 * c-lang.h (c_val_print_array, cp_print_value_fields)
11160 (cp_print_value_fields_rtti): Don't declare.
11161 * c-lang.c (c_language_defn, cplus_language_defn)
11162 (asm_language_defn, minimal_language_defn): Update.
11163 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11164 (ada_val_print_enum): Take a struct value.
11165 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11166 (ada_val_print): Remove.
11167 (ada_value_print_1): Update.
11168 (printable_val_type): Remove.
11169 * ada-lang.h (ada_val_print): Don't declare.
11170 * ada-lang.c (ada_language_defn): Update.
11171
42331a1e
TT
111722020-03-13 Tom Tromey <tom@tromey.com>
11173
11174 * valprint.c (do_val_print): Update.
11175 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11176 a struct value.
11177 (value_to_value_object_no_release): Declare.
11178 * python/py-value.c (value_to_value_object_no_release): New
11179 function.
11180 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11181 struct value.
11182 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11183 function.
11184 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11185 a struct value.
11186 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11187 Declare.
11188 (gdbscm_apply_val_pretty_printer): Take a struct value.
11189 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11190 value.
11191 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11192 value.
11193 * extension-priv.h (struct extension_language_ops)
11194 <apply_val_pretty_printer>: Take a struct value.
11195 * cp-valprint.c (cp_print_value): Create a struct value.
11196 (cp_print_value): Update.
11197
3a916a97
TT
111982020-03-13 Tom Tromey <tom@tromey.com>
11199
11200 * ada-valprint.c (print_field_values): Call common_val_print.
11201
b59eac37
TT
112022020-03-13 Tom Tromey <tom@tromey.com>
11203
11204 * ada-valprint.c (val_print_packed_array_elements): Remove
11205 bitoffset and val parameters. Call common_val_print.
11206 (ada_val_print_string): Remove offset, address, and original_value
11207 parameters.
11208 (ada_val_print_array): Update.
11209 (ada_value_print_array): New function.
11210 (ada_value_print_1): Call it.
11211
03371129
TT
112122020-03-13 Tom Tromey <tom@tromey.com>
11213
11214 * ada-valprint.c (ada_value_print): Use common_val_print.
11215
2e088f8b
TT
112162020-03-13 Tom Tromey <tom@tromey.com>
11217
11218 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11219
39ef85a8
TT
112202020-03-13 Tom Tromey <tom@tromey.com>
11221
11222 * ada-valprint.c (ada_value_print_num): New function.
11223 (ada_value_print_1): Use it.
11224
b9fa6e07
TT
112252020-03-13 Tom Tromey <tom@tromey.com>
11226
11227 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11228
416595d6
TT
112292020-03-13 Tom Tromey <tom@tromey.com>
11230
11231 * ada-valprint.c (ada_value_print_ptr): New function.
11232 (ada_value_print_1): Use it.
11233
5b5e15ec
TT
112342020-03-13 Tom Tromey <tom@tromey.com>
11235
11236 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11237 call common_val_print.
11238 (ada_val_print_1): Update.
11239 (ada_value_print_1): New function.
11240 (ada_value_print_inner): Rewrite.
11241
fbf54e75
TT
112422020-03-13 Tom Tromey <tom@tromey.com>
11243
11244 * cp-valprint.c (cp_print_value_fields): Update.
11245 (cp_print_value): New function.
11246
64b653ca
TT
112472020-03-13 Tom Tromey <tom@tromey.com>
11248
11249 * m2-valprint.c (m2_value_print_inner): Use
11250 cp_print_value_fields.
11251 * cp-valprint.c (cp_print_value_fields): New function.
11252 * c-valprint.c (c_value_print_struct): New function.
11253 (c_value_print_inner): Use c_value_print_struct.
11254 * c-lang.h (cp_print_value_fields): Declare.
11255
6999f067
TT
112562020-03-13 Tom Tromey <tom@tromey.com>
11257
11258 * c-valprint.c (c_value_print_array): New function.
11259 (c_value_print_inner): Use it.
11260
ce80b8bd
TT
112612020-03-13 Tom Tromey <tom@tromey.com>
11262
11263 * c-valprint.c (c_value_print_memberptr): New function.
11264 (c_value_print_inner): Use it.
11265
2faac269
TT
112662020-03-13 Tom Tromey <tom@tromey.com>
11267
11268 * c-valprint.c (c_value_print_int): New function.
11269 (c_value_print_inner): Use it.
11270
da3e2c29
TT
112712020-03-13 Tom Tromey <tom@tromey.com>
11272
11273 * c-valprint.c (c_value_print_ptr): New function.
11274 (c_value_print_inner): Use it.
11275
50836231
TT
112762020-03-13 Tom Tromey <tom@tromey.com>
11277
11278 * c-valprint.c (c_value_print_inner): Rewrite.
11279
4f412b6e
TT
112802020-03-13 Tom Tromey <tom@tromey.com>
11281
11282 * valprint.c (generic_value_print_complex): New function.
11283 (generic_value_print): Use it.
11284
f5354008
TT
112852020-03-13 Tom Tromey <tom@tromey.com>
11286
11287 * valprint.c (generic_val_print_float): Don't call
11288 val_print_scalar_formatted.
11289 (generic_val_print, generic_value_print): Update.
11290
3eec3b05
TT
112912020-03-13 Tom Tromey <tom@tromey.com>
11292
11293 * valprint.c (generic_value_print_char): New function
11294 (generic_value_print): Use it.
11295
fdddfccb
TT
112962020-03-13 Tom Tromey <tom@tromey.com>
11297
11298 * valprint.c (generic_value_print_int): New function.
11299 (generic_value_print): Use it.
11300
6dde7521
TT
113012020-03-13 Tom Tromey <tom@tromey.com>
11302
11303 * valprint.c (generic_value_print_bool): New function.
11304 (generic_value_print): Use it.
11305
4112d2e6
TT
113062020-03-13 Tom Tromey <tom@tromey.com>
11307
11308 * valprint.c (generic_val_print_func): Simplify.
11309 (generic_val_print, generic_value_print): Update.
11310
65786af6
TT
113112020-03-13 Tom Tromey <tom@tromey.com>
11312
11313 * valprint.c (generic_val_print_flags): Remove.
11314 (generic_val_print, generic_value_print): Update.
11315 (val_print_type_code_flags): Add original_value parameter.
11316
40f3ce18
TT
113172020-03-13 Tom Tromey <tom@tromey.com>
11318
11319 * valprint.c (generic_val_print): Update.
11320 (generic_value_print): Update.
11321 * valprint.c (generic_val_print_enum): Don't call
11322 val_print_scalar_formatted.
11323
2a5b130b
TT
113242020-03-13 Tom Tromey <tom@tromey.com>
11325
11326 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11327 * valprint.c (generic_value_print_ptr): New function.
11328
abc66ce9
TT
113292020-03-13 Tom Tromey <tom@tromey.com>
11330
11331 * valprint.c (generic_value_print): Rewrite.
11332
07a32858
TT
113332020-03-13 Tom Tromey <tom@tromey.com>
11334
11335 * p-valprint.c (pascal_object_print_value_fields)
11336 (pascal_object_print_value): New functions.
11337
64d64d3a
TT
113382020-03-13 Tom Tromey <tom@tromey.com>
11339
11340 * p-valprint.c (pascal_value_print_inner): Rewrite.
11341
6a95a1f5
TT
113422020-03-13 Tom Tromey <tom@tromey.com>
11343
11344 * f-valprint.c (f_value_print_innner): Rewrite.
11345
59fcdac6
TT
113462020-03-13 Tom Tromey <tom@tromey.com>
11347
11348 * m2-valprint.c (m2_print_unbounded_array): New overload.
11349 (m2_print_unbounded_array): Update.
11350 (m2_print_array_contents): Take a struct value.
11351 (m2_value_print_inner): Rewrite.
11352
d133c3e1
TT
113532020-03-13 Tom Tromey <tom@tromey.com>
11354
11355 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11356 (d_value_print_inner): New function.
11357 * d-lang.h (d_value_print_inner): Declare.
11358 * d-lang.c (d_language_defn): Use d_value_print_inner.
11359
23b0f06b
TT
113602020-03-13 Tom Tromey <tom@tromey.com>
11361
11362 * go-valprint.c (go_value_print_inner): New function.
11363 * go-lang.h (go_value_print_inner): Declare.
11364 * go-lang.c (go_language_defn): Use go_value_print_inner.
11365
5f56f7cb
TT
113662020-03-13 Tom Tromey <tom@tromey.com>
11367
11368 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11369 API.
11370 (rust_val_print): Rewrite.
11371 (rust_value_print_inner): New function, from rust_val_print.
11372 (rust_language_defn): Use rust_value_print_inner.
11373
26792ee0
TT
113742020-03-13 Tom Tromey <tom@tromey.com>
11375
11376 * ada-valprint.c (ada_value_print_inner): New function.
11377 * ada-lang.h (ada_value_print_inner): Declare.
11378 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11379
24051bbe
TT
113802020-03-13 Tom Tromey <tom@tromey.com>
11381
11382 * f-valprint.c (f_value_print_innner): New function.
11383 * f-lang.h (f_value_print_innner): Declare.
11384 * f-lang.c (f_language_defn): Use f_value_print_innner.
11385
c0941be6
TT
113862020-03-13 Tom Tromey <tom@tromey.com>
11387
11388 * p-valprint.c (pascal_value_print_inner): New function.
11389 * p-lang.h (pascal_value_print_inner): Declare.
11390 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11391
62c4663d
TT
113922020-03-13 Tom Tromey <tom@tromey.com>
11393
11394 * m2-valprint.c (m2_value_print_inner): New function.
11395 * m2-lang.h (m2_value_print_inner): Declare.
11396 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11397
62182190
TT
113982020-03-13 Tom Tromey <tom@tromey.com>
11399
11400 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11401 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11402 * c-valprint.c (c_value_print_inner): New function.
11403 * c-lang.h (c_value_print_inner): Declare.
11404 * c-lang.c (c_language_defn, cplus_language_defn)
11405 (asm_language_defn, minimal_language_defn): Use
11406 c_value_print_inner.
11407
1e592a8a
TT
114082020-03-13 Tom Tromey <tom@tromey.com>
11409
11410 * p-valprint.c (pascal_object_print_value_fields): Now static.
11411 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11412
7fe471e9
TT
114132020-03-13 Tom Tromey <tom@tromey.com>
11414
11415 * c-valprint.c (c_val_print_array): Simplify.
11416
d121c6ce
TT
114172020-03-13 Tom Tromey <tom@tromey.com>
11418
11419 * valprint.c (value_print_array_elements): New function.
11420 * valprint.h (value_print_array_elements): Declare.
11421
4dba70ee
TT
114222020-03-13 Tom Tromey <tom@tromey.com>
11423
11424 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11425 * mips-tdep.c (mips_print_register): Use
11426 value_print_scalar_formatted.
11427
4f9ae810
TT
114282020-03-13 Tom Tromey <tom@tromey.com>
11429
11430 * valprint.h (value_print_scalar_formatted): Declare.
11431 * valprint.c (value_print_scalar_formatted): New function.
11432
156bfec9
TT
114332020-03-13 Tom Tromey <tom@tromey.com>
11434
11435 * valprint.h (generic_value_print): Declare.
11436 * valprint.c (generic_value_print): New function.
11437
2b4e573d
TT
114382020-03-13 Tom Tromey <tom@tromey.com>
11439
11440 * valprint.c (do_val_print): Call la_value_print_inner, if
11441 available.
11442 * rust-lang.c (rust_language_defn): Update.
11443 * p-lang.c (pascal_language_defn): Update.
11444 * opencl-lang.c (opencl_language_defn): Update.
11445 * objc-lang.c (objc_language_defn): Update.
11446 * m2-lang.c (m2_language_defn): Update.
11447 * language.h (struct language_defn) <la_value_print_inner>: New
11448 member.
11449 * language.c (unknown_language_defn, auto_language_defn): Update.
11450 * go-lang.c (go_language_defn): Update.
11451 * f-lang.c (f_language_defn): Update.
11452 * d-lang.c (d_language_defn): Update.
11453 * c-lang.c (c_language_defn, cplus_language_defn)
11454 (asm_language_defn, minimal_language_defn): Update.
11455 * ada-lang.c (ada_language_defn): Update.
11456
a1f6a07c
TT
114572020-03-13 Tom Tromey <tom@tromey.com>
11458
11459 * c-valprint.c (c_value_print): Use common_val_print.
11460
410cf315
TT
114612020-03-13 Tom Tromey <tom@tromey.com>
11462
11463 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11464
72a45c93
TT
114652020-03-13 Tom Tromey <tom@tromey.com>
11466
11467 * f-valprint.c (f77_print_array_1, f_val_print): Use
11468 common_val_print.
11469
040f66bd
TT
114702020-03-13 Tom Tromey <tom@tromey.com>
11471
11472 * riscv-tdep.c (riscv_print_one_register_info): Use
11473 common_val_print.
11474
a6e05a6c
TT
114752020-03-13 Tom Tromey <tom@tromey.com>
11476
11477 * mi/mi-main.c (output_register): Use common_val_print.
11478
3444c526
TT
114792020-03-13 Tom Tromey <tom@tromey.com>
11480
11481 * infcmd.c (default_print_one_register_info): Use
11482 common_val_print.
11483
c2a44efe
TT
114842020-03-13 Tom Tromey <tom@tromey.com>
11485
11486 * valprint.h (common_val_print_checked): Declare.
11487 * valprint.c (common_val_print_checked): New function.
11488 * stack.c (print_frame_arg): Use common_val_print_checked.
11489
b0c26e99
TT
114902020-03-13 Tom Tromey <tom@tromey.com>
11491
11492 * valprint.c (do_val_print): New function, from val_print.
11493 (val_print): Use do_val_print.
11494 (common_val_print): Use do_val_print.
11495
ce3acbe9
TT
114962020-03-13 Tom Tromey <tom@tromey.com>
11497
11498 * valprint.c (value_print): Use scoped_value_mark.
11499
96c7f873
TV
115002020-03-13 Tom de Vries <tdevries@suse.de>
11501
11502 PR symtab/25646
11503 * psymtab.c (partial_symtab::partial_symtab): Don't set
11504 globals_offset and statics_offset. Push element onto
11505 current_global_psymbols and current_static_psymbols stacks.
11506 (concat): New function.
11507 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11508 element from current_global_psymbols and current_static_psymbols
11509 stacks. Concat popped elements to global_psymbols and
11510 static_symbols.
11511 (add_psymbol_to_list): Use current_global_psymbols and
11512 current_static_psymbols stacks.
11513 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11514 current_static_psymbols fields.
11515
6ba0a321
CB
115162020-03-12 Christian Biesinger <cbiesinger@google.com>
11517
11518 * corelow.c (sniff_core_bfd): Remove.
11519 (class core_target) <m_core_vec>: Remove.
11520 (core_target::core_target): Update.
11521 (core_file_fns): Remove.
11522 (deprecated_add_core_fns): Remove.
11523 (default_core_sniffer): Remove.
11524 (sniff_core_bfd): Remove.
11525 (default_check_format): Remove.
11526 (gdb_check_format): Remove.
11527 (core_target_open): Update.
11528 (core_target::get_core_register_section): Update.
11529 (get_core_registers_cb): Update.
11530 (core_target::fetch_registers): Update.
11531 * gdbcore.h (struct core_fns): Remove.
11532 (deprecated_add_core_fns): Remove.
11533 (default_core_sniffer): Remove.
11534 (default_check_format): Remove.
11535
227031b2
TT
115362020-03-12 Tom Tromey <tom@tromey.com>
11537
11538 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11539 CORE_ADDR.
11540 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11541
53807e9f
TT
115422020-03-12 Tom Tromey <tom@tromey.com>
11543
11544 * remote.c (remote_target::download_tracepoint)
11545 (remote_target::enable_tracepoint)
11546 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11547 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11548 sprintf_vma.
11549
64f25102
TT
115502020-03-12 Tom Tromey <tom@tromey.com>
11551
11552 * symfile-mem.c: Update CORE_ADDR size assert.
11553
272cd5a3
SM
115542020-03-12 Simon Marchi <simon.marchi@efficios.com>
11555
11556 * selftest.m4: Move to gdbsupport/.
11557 * acinclude.m4: Update path to selftest.m4.
11558
74cd3f9d
SM
115592020-03-12 Simon Marchi <simon.marchi@efficios.com>
11560
11561 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11562 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11563 gdbarch-selfselftests.c and selftest-arch.c.
11564 (SUBDIR_UNITTESTS_OBS): Rename to...
11565 (SELFTESTS_OBS): ... this.
11566 (COMMON_SFILES): Remove disasm-selftests.c and
11567 gdbarch-selftests.c.
11568 * configure.ac: Don't add selftest-arch.{c,o} to
11569 CONFIG_{SRCS,OBS}.
11570 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11571 preprocessor conditions.
11572
db6878ac
SM
115732020-03-12 Simon Marchi <simon.marchi@efficios.com>
11574
11575 * configure.ac: Don't source bfd/development.sh.
11576 * selftest.m4: Modify comment.
11577 * configure: Re-generate.
11578
4d696a5c
SM
115792020-03-12 Simon Marchi <simon.marchi@efficios.com>
11580
11581 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11582 not "true" or "false".
11583 * configure: Re-generate.
11584
8dd8e1c7
CB
115852020-03-12 Christian Biesinger <cbiesinger@google.com>
11586
11587 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11588 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11589 renamed to arm_nbsd_supply_gregset.
11590 (fetch_register): Update to call arm_nbsd_supply_gregset.
11591 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11592 (arm_netbsd_nat_target::fetch_registers): Update.
11593 (fetch_elfcore_registers): Removed.
11594 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11595 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11596 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11597 not require NetBSD system headers.
11598 (arm_nbsd_regset): New struct.
11599 (arm_nbsd_iterate_over_regset_sections): New function.
11600 (arm_netbsd_init_abi_common): Updated to call
11601 set_gdbarch_iterate_over_regset_sections.
11602 * arm-nbsd-tdep.h: New file.
11603
dd69bf7a
KB
116042020-03-11 Kevin Buettner <kevinb@redhat.com>
11605
11606 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11607 recursion.
11608
a0761e34
SM
116092020-03-11 Simon Marchi <simon.marchi@efficios.com>
11610
11611 * configure: Re-generate.
11612
e7a82140
TT
116132020-03-11 Tom Tromey <tromey@adacore.com>
11614
11615 * ada-typeprint.c (print_choices): Fix comment.
11616
dcc050c8
AB
116172020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11618
11619 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11620 previous item in the list, when the list has no items.
11621
1c33af77
TV
116222020-03-11 Tom de Vries <tdevries@suse.de>
11623
11624 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11625 PROP_LOCLIST handling code.
11626
8c95582d
AB
116272020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11628
11629 * buildsym-legacy.c (record_line): Pass extra parameter to
11630 record_line.
11631 * buildsym.c (buildsym_compunit::record_line): Take an extra
11632 parameter, reduce duplication in the line table, and record the
11633 is_stmt flag in the line table.
11634 * buildsym.h (buildsym_compunit::record_line): Add extra
11635 parameter.
11636 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11637 non-statement lines.
11638 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11639 this to the symtab builder.
11640 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11641 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11642 through to dwarf_record_line_1.
11643 * infrun.c (process_event_stop_test): When stepping, don't stop at
11644 a non-statement instruction, and only refresh the step info when
11645 we land in the middle of a line's range. Also add an extra
11646 comment.
11647 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11648 field.
11649 * record-btrace.c (btrace_find_line_range): Only record lines
11650 marked as is-statement.
11651 * stack.c (frame_show_address): Show the frame address if we are
11652 in a non-statement sal.
11653 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11654 (maintenance_print_one_line_table): Print a header for the is_stmt
11655 column, and include is_stmt information in the output.
11656 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11657 preference to non-statements.
11658 (find_pcs_for_symtab_line): Prefer is-statement entries.
11659 (find_line_common): Likewise.
11660 * symtab.h (struct linetable_entry): Add is_stmt field.
11661 (struct symtab_and_line): Likewise.
11662 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11663 arranging the line table.
11664
e4003a34
TV
116652020-03-07 Tom de Vries <tdevries@suse.de>
11666
11667 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11668 DIE.
11669
e8932576
TT
116702020-03-07 Tom Tromey <tom@tromey.com>
11671
11672 * valops.c (value_literal_complex): Remove obsolete comment.
11673 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11674 comment.
11675
29734269
SM
116762020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11677
11678 * infrun.h: Forward-declare thread_info.
11679 (set_step_info): Add thread_info parameter, add doc.
11680 * infrun.c (set_step_info): Add thread_info parameter, move doc
11681 to header.
11682 * infrun.c (process_event_stop_test): Pass thread to
11683 set_step_info call.
11684 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11685 set_step_info.
11686 (prepare_one_step): Add thread_info parameter, pass it to
11687 set_step_frame and prepare_one_step (recursive) call.
11688 (step_1): Pass thread to prepare_one_step call.
11689 (step_command_fsm::should_stop): Pass thread to
11690 prepare_one_step.
11691 (until_next_fsm): Pass thread to set_step_frame call.
11692 (finish_command): Pass thread to set_step_info call.
11693
b7d64b29
HD
116942020-03-06 Hannes Domani <ssbssa@yahoo.de>
11695
11696 * windows-tdep.c (windows_solib_create_inferior_hook):
11697 Check if inferior is running.
11698
09f2921c
TV
116992020-03-06 Tom de Vries <tdevries@suse.de>
11700
11701 * NEWS: Fix "the the".
11702 * ctfread.c: Same.
11703
fd760e79
TV
117042020-03-06 Tom de Vries <tdevries@suse.de>
11705
11706 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11707
20ea4a60
AB
117082020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11709
11710 * .dir-locals.el: Add a comment referencing the other copies of
11711 this file.
11712
0afbabf0
JB
117132020-03-05 John Baldwin <jhb@FreeBSD.org>
11714
11715 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11716 psargs.
11717
842806cb
TBA
117182020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11719
11720 * .gitattributes: New file.
11721
be1e3d3e
TT
117222020-03-04 Tom Tromey <tom@tromey.com>
11723
11724 * symmisc.c (print_symbol_bcache_statistics)
11725 (print_objfile_statistics): Update.
11726 * symfile.c (allocate_symtab): Use intern.
11727 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11728 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11729 macro_cache>: Remove.
11730 <string_cache>: New member.
11731 (struct objfile) <intern>: New methods.
11732 * elfread.c (elf_symtab_read): Use intern.
11733 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11734 (dwarf2_compute_name, dwarf2_physname)
11735 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11736 names.
11737 (guess_partial_die_structure_name): Update.
11738 (partial_die_info::fixup): Intern name.
11739 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11740 name.
11741 (dwarf2_name): Intern name. Update.
11742 * buildsym.c (buildsym_compunit::get_macro_table): Use
11743 string_cache.
11744
4e7625fd
TT
117452020-03-04 Tom Tromey <tom@tromey.com>
11746
11747 * jit.c (bfd_open_from_target_memory): Make "target" const.
11748 * corefile.c (gnutarget): Now const.
11749 * gdbcore.h (gnutarget): Now const.
11750
46f9f931
HD
117512020-03-04 Hannes Domani <ssbssa@yahoo.de>
11752
11753 * NEWS: Mention support for WOW64 processes.
11754 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11755 (amd64_windows_segment_register_p): Remove static.
11756 (_initialize_amd64_windows_nat): Update.
11757 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11758 * i386-windows-nat.c (context_offset): Update.
11759 (i386_mappings): Rename and remove static.
11760 (i386_windows_segment_register_p): Remove static.
11761 (_initialize_i386_windows_nat): Update.
11762 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11763 (STATUS_WX86_SINGLE_STEP): New macro.
11764 (EnumProcessModulesEx): New macro.
11765 (Wow64SuspendThread): New macro.
11766 (Wow64GetThreadContext): New macro.
11767 (Wow64SetThreadContext): New macro.
11768 (Wow64GetThreadSelectorEntry): New macro.
11769 (windows_set_context_register_offsets): Add static.
11770 (windows_set_segment_register_p): Likewise.
11771 (windows_add_thread): Adapt for WOW64 processes.
11772 (windows_fetch_one_register): Likewise.
11773 (windows_nat_target::fetch_registers): Likewise.
11774 (windows_store_one_register): Likewise.
11775 (display_selector): Likewise.
11776 (display_selectors): Likewise.
11777 (handle_exception): Likewise.
11778 (windows_continue): Likewise.
11779 (windows_nat_target::resume): Likewise.
11780 (windows_add_all_dlls): Likewise.
11781 (do_initial_windows_stuff): Likewise.
11782 (windows_nat_target::attach): Likewise.
11783 (windows_get_exec_module_filename): Likewise.
11784 (windows_nat_target::create_inferior): Likewise.
11785 (windows_xfer_siginfo): Likewise.
11786 (_initialize_loadable): Initialize Wow64SuspendThread,
11787 Wow64GetThreadContext, Wow64SetThreadContext,
11788 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11789 * windows-nat.h (windows_set_context_register_offsets):
11790 Remove declaration.
11791 (windows_set_segment_register_p): Likewise.
11792 (i386_windows_segment_register_p): Add declaration.
11793 (amd64_windows_segment_register_p): Likewise.
11794
440cf44e
LM
117952020-03-04 Luis Machado <luis.machado@linaro.org>
11796
11797 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11798 in "info registers" for AArch64/ARM.
11799
11800 The change caused "info registers" to not print GPR's.
11801
11802 gdb/ChangeLog:
11803
11804 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11805
11806 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11807 when reg->group is empty and reggroup is not.
11808
1009d92f
TT
118092020-03-03 Tom Tromey <tromey@adacore.com>
11810
11811 * dwarf2/frame.c (struct dwarf2_frame_cache)
11812 <checked_tailcall_bottom, entry_cfa_sp_offset,
11813 entry_cfa_sp_offset_p>: Remove members.
11814 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11815 (dwarf2_frame_prev_register): Don't call
11816 dwarf2_tailcall_sniffer_first.
11817 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11818 * frame-unwind.c (add_unwinder): New fuction.
11819 (frame_unwind_init): Use it. Add tailcall unwinder.
11820
5e5d66b6
AB
118212020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11822 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11823
11824 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11825 value should be printed as true.
11826
584cf46d
HD
118272020-03-03 Hannes Domani <ssbssa@yahoo.de>
11828
11829 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11830 (windows_init_abi): Set and use windows_so_ops.
11831
7b973adc
SDJ
118322020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11833
11834 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11835 when verifying if dealing with a convenience variable.
11836
bb7b70ab
LM
118372020-03-03 Luis Machado <luis.machado@linaro.org>
11838
11839 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11840
9822cb57
SM
118412020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11842
11843 * infrun.c (gdbarch_supports_displaced_stepping): New.
11844 (use_displaced_stepping): Break up conditions in smaller pieces.
11845 Use gdbarch_supports_displaced_stepping.
11846 (displaced_step_prepare_throw): Use
11847 gdbarch_supports_displaced_stepping.
11848
63e163f2
AB
118492020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11850
11851 * NEWS: Mention new behaviour of the history filename.
11852 * top.c (write_history_p): Add comment.
11853 (show_write_history_p): Add header comment, give a different
11854 message when history writing is on, but the history filename is
11855 empty.
11856 (history_filename): Add comment.
11857 (history_filename_empty): New function.
11858 (show_history_filename): Add header comment, give a different
11859 message when the filename is empty.
11860 (init_history): Compare history_filename against nullptr, and only
11861 read history if the filename is not empty.
11862 (set_history_filename): Add header comment, and only make
11863 non-empty filenames absolute.
11864 (init_main): Make the filename argument to 'set history filename'
11865 optional.
11866
81b86b97
CB
118672020-03-02 Christian Biesinger <cbiesinger@google.com>
11868
11869 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11870 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11871 (fetch_fp_register): Update.
11872 (fetch_fp_regs): Update.
11873 (store_fp_register): Update.
11874 (store_fp_regs): Update.
11875 (arm_netbsd_nat_target::read_description): New function.
11876 (fetch_elfcore_registers): Update.
11877
24ed6739
AB
118782020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11879
11880 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11881 general_thread if the stop reply is missing a thread-id.
11882 (remote_target::process_stop_reply): Use the first non-exited
11883 thread if the target didn't pass a thread-id.
11884 * infrun.c (do_target_wait): Move call to
11885 switch_to_inferior_no_thread to ....
11886 (do_target_wait_1): ... here.
11887
a84bb2a0
JT
118882020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11889
11890 * debuginfod-support.c: Include defs.h first.
11891
658dadf0
TV
118922020-02-28 Tom de Vries <tdevries@suse.de>
11893
11894 * symfile.c (set_initial_language): Use default language for lookup.
11895
4ebe4877
SM
118962020-02-28 Simon Marchi <simon.marchi@efficios.com>
11897
11898 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11899 reader variable, pass `this` to read_cutu_die_from_dwo.
11900
e5da1139
AM
119012020-02-27 Aaron Merey <amerey@redhat.com>
11902
11903 * source.c (open_source_file): Check for nullptr when computing
11904 srcpath.
11905
317f7127
TT
119062020-02-27 Tom Tromey <tromey@adacore.com>
11907
11908 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11909 member.
11910 (dwarf2_add_field): Don't update nfields.
11911 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11912
3104d9ee
AB
119132020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11914
11915 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11916 abs.
11917
b83470bf
TT
119182020-02-26 Tom Tromey <tom@tromey.com>
11919
11920 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11921 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11922 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11923 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11924 per_cu_data.
11925
edfe0a0c
TT
119262020-02-26 Tom Tromey <tom@tromey.com>
11927
11928 * dwarf2/index-write.c (psym_index_map): Change type.
11929 (add_address_entry_worker, write_one_signatured_type)
11930 (recursively_count_psymbols, recursively_write_psymbols)
11931 (class debug_names, psyms_seen_size, write_gdbindex)
11932 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11933
0d79cdc4
AM
119342020-02-26 Aaron Merey <amerey@redhat.com>
11935
11936 * Makefile.in: Handle optional debuginfod support.
11937 * NEWS: Update.
11938 * README: Add --with-debuginfod summary.
11939 * config.in: Regenerate.
11940 * configure: Regenerate.
11941 * configure.ac: Handle optional debuginfod support.
11942 * debuginfod-support.c: debuginfod helper functions.
11943 * debuginfod-support.h: Ditto.
11944 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11945 summary.
11946 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11947 when a dwz file cannot be found.
11948 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11949 debuginfo file cannot be found.
11950 * source.c (open_source_file): Query debuginfod servers when a
11951 source file cannot be found.
11952 * top.c (print_gdb_configuration): Include
11953 --{with,without}-debuginfod in the output.
11954
b65ce565
JG
119552020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11956
11957 * thread.c (thr_try_catch_cmd): Print thread name.
11958
d4c9a4f8
SM
119592020-02-26 Simon Marchi <simon.marchi@efficios.com>
11960
11961 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11962 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11963 dwarf2_fetch_die_type_sect_off): Move to...
11964 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11965 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11966 dwarf2_fetch_die_type_sect_off): ... here.
11967 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11968 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11969 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11970
0dce4280
TV
119712020-02-26 Tom de Vries <tdevries@suse.de>
11972
11973 PR gdb/25603
11974 * symfile.c (set_initial_language): Exit-early if
11975 language_mode == language_mode_manual.
11976
450a1bfc
SM
119772020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11978
11979 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11980 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11981 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11982
9e80cfa1
AB
119832020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11984
11985 * gdbtypes.c (create_array_type_with_stride): Handle negative
11986 array strides.
11987 * valarith.c (value_subscripted_rvalue): Likewise.
11988
09624f1f
LM
119892020-02-25 Luis Machado <luis.machado@linaro.org>
11990
11991 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11992
8cb5117c
SM
119932020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11994
11995 * loc.h (dwarf2_get_die_type): Move to...
11996 * read.h (dwarf2_get_die_type): ... here.
11997 * read.c (dwarf2_get_die_type): Move doc to header.
11998
c325c44e
JB
119992020-02-25 Joel Brobecker <brobecker@adacore.com>
12000
12001 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12002 'gnulib/Makefile.in' to the list.
12003
4ac93832
TT
120042020-02-24 Tom Tromey <tom@tromey.com>
12005
12006 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12007 Remove.
12008 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12009 XOBNEWVEC.
12010
197400e8
TT
120112020-02-24 Tom Tromey <tom@tromey.com>
12012
12013 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12014 New method.
12015 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12016 (dw2_do_instantiate_symtab, dw2_get_file_names)
12017 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12018
76935768
TT
120192020-02-24 Tom Tromey <tom@tromey.com>
12020
12021 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12022 make_scoped_restore.
12023 (dwarf2_psymtab::read_symtab): Don't clear
12024 reading_partial_symbols.
12025
a88ef40d
TV
120262020-02-24 Tom de Vries <tdevries@suse.de>
12027
12028 PR gdb/25592
12029 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12030
c9af6521
TV
120312020-02-24 Tom de Vries <tdevries@suse.de>
12032
12033 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12034 commands layout next/prev/regs.
12035
5707a07a
TT
120362020-02-22 Tom Tromey <tom@tromey.com>
12037
12038 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12039 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12040
3b0fb49e
TT
120412020-02-22 Tom Tromey <tom@tromey.com>
12042
12043 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12044
283be8bf
TT
120452020-02-22 Tom Tromey <tom@tromey.com>
12046
12047 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12048 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12049 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12050 * tui/tui.c (_initialize_tui): Add usage text.
12051
ca793b96
TT
120522020-02-22 Tom Tromey <tom@tromey.com>
12053
12054 * tui/tui-win.c (tui_set_focus_command)
12055 (tui_set_win_height_command): Use error_no_arg.
12056 (_initialize_tui_win): Update help text.
12057 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12058
432b5c40
TT
120592020-02-22 Tom Tromey <tom@tromey.com>
12060
12061 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12062 * tui/tui-disasm.h (struct tui_disasm_window)
12063 <display_start_addr>: Declare.
12064 * tui/tui-source.h (struct tui_source_window)
12065 <display_start_addr>: Declare.
12066 * tui/tui-winsource.h (struct tui_source_window_base)
12067 <show_source_line, display_start_addr>: New methods.
12068 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12069 Rename and move to protected section.
12070 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12071 (tui_source_window_base::do_erase_source_content): Update.
12072 (tui_source_window_base::show_source_line): Now a method.
12073 (tui_source_window_base::show_source_content)
12074 (tui_source_window_base::tui_source_window_base)
12075 (tui_source_window_base::rerender)
12076 (tui_source_window_base::refill)
12077 (tui_source_window_base::do_scroll_horizontal)
12078 (tui_source_window_base::set_is_exec_point_at)
12079 (tui_source_window_base::update_breakpoint_info)
12080 (tui_source_window_base::update_exec_info): Update.
12081 * tui/tui-source.c (tui_source_window::set_contents)
12082 (tui_source_window::showing_source_p)
12083 (tui_source_window::do_scroll_vertical)
12084 (tui_source_window::location_matches_p)
12085 (tui_source_window::line_is_displayed): Update.
12086 (tui_source_window::display_start_addr): New method.
12087 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12088 (tui_disasm_window::do_scroll_vertical)
12089 (tui_disasm_window::location_matches_p): Update.
12090 (tui_disasm_window::display_start_addr): New method.
12091
01b1af32
TT
120922020-02-22 Tom Tromey <tom@tromey.com>
12093
12094 * NEWS: Add entry for gdb.register_window_type.
12095 * tui/tui-layout.h (window_factory): New typedef.
12096 (tui_register_window): Declare.
12097 * tui/tui-layout.c (saved_tui_windows): New global.
12098 (tui_apply_current_layout): Use it.
12099 (tui_register_window): New function.
12100 * python/python.c (do_start_initialization): Call
12101 gdbpy_initialize_tui.
12102 (python_GdbMethods): Add "register_window_type" function.
12103 * python/python-internal.h (gdbpy_register_tui_window)
12104 (gdbpy_initialize_tui): Declare.
12105 * python/py-tui.c: New file.
12106 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12107
fc96d20b
TT
121082020-02-22 Tom Tromey <tom@tromey.com>
12109
12110 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12111
935c78c0
TT
121122020-02-22 Tom Tromey <tom@tromey.com>
12113
12114 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12115 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12116 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12117 (tui_set_win_focus_to): Move from tui-win.c.
12118
0240c8f1
TT
121192020-02-22 Tom Tromey <tom@tromey.com>
12120
12121 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12122 functions.
12123 (known_window_types): New global.
12124 (tui_get_window_by_name): Reimplement.
12125 (initialize_known_windows): New function.
12126 (validate_window_name): Rewrite.
12127 (_initialize_tui_layout): Call initialize_known_windows.
12128
fdb01f0c
TT
121292020-02-22 Tom Tromey <tom@tromey.com>
12130
12131 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12132 Remove constants.
12133 * tui/tui-winsource.h (struct tui_source_window_base)
12134 <tui_source_window_base>: Remove parameter.
12135 * tui/tui-winsource.c
12136 (tui_source_window_base::tui_source_window_base): Remove
12137 parameter.
12138 (tui_source_window_base::refill): Update.
12139 * tui/tui-stack.h (struct tui_locator_window)
12140 <tui_locator_window>: Update.
12141 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12142 Default the constructor.
12143 * tui/tui-regs.h (struct tui_data_item_window)
12144 <tui_data_item_window>: Default the constructor.
12145 (struct tui_data_window) <tui_data_window>: Likewise.
12146 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12147 Default the constructor.
12148 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12149 Default the constructor.
12150 <type>: Remove.
12151 (struct tui_win_info) <tui_win_info>: Default the constructor.
12152 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12153 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12154 Default the constructor.
12155
865a5aec
TT
121562020-02-22 Tom Tromey <tom@tromey.com>
12157
12158 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12159 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12160 * tui/tui-win.c (tui_resize_all): Don't call
12161 tui_delete_invisible_windows.
12162 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12163 done.
12164 (tui_set_layout): Update.
12165 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12166 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12167 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12168
e098d18c
TT
121692020-02-22 Tom Tromey <tom@tromey.com>
12170
12171 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12172 correctly.
12173
eb9c8874
TT
121742020-02-22 Tom Tromey <tom@tromey.com>
12175
12176 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12177
7eed1a8e
TT
121782020-02-22 Tom Tromey <tom@tromey.com>
12179
12180 * tui/tui-winsource.h (struct tui_source_window_iterator)
12181 <inner_iterator>: New etytypedef.
12182 <tui_source_window_iterator>: Take "end" parameter.
12183 <tui_source_window_iterator>: Take iterator.
12184 <operator*, advance>: Update.
12185 <m_iter>: Change type.
12186 <m_end>: New field.
12187 (struct tui_source_windows) <begin, end>: Update.
12188 * tui/tui-layout.c (tui_windows): New global.
12189 (tui_apply_current_layout): Clear tui_windows.
12190 (tui_layout_window::apply): Update tui_windows.
12191 * tui/tui-data.h (tui_windows): Declare.
12192 (all_tui_windows): Now inline function.
12193 (class tui_window_iterator, struct all_tui_windows): Remove.
12194
7c043ba6
TT
121952020-02-22 Tom Tromey <tom@tromey.com>
12196
12197 PR tui/17850:
12198 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12199 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12200 "height" argument.
12201 (class tui_layout_window) <get_sizes>: Likewise.
12202 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12203 argument.
12204 <get_sizes>: Add "height" argument.
12205 <m_vertical>: New field.
12206 * tui/tui-layout.c (tui_layout_split::clone): Update.
12207 (tui_layout_split::get_sizes): Add "height" argument.
12208 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12209 (tui_new_layout_command): Parse "-horizontal".
12210 (_initialize_tui_layout): Update help string.
12211 (tui_layout_split::specification): Add "-horizontal" when needed.
12212 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12213 argument.
12214 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12215 New methods.
12216
6bc56648
TT
122172020-02-22 Tom Tromey <tom@tromey.com>
12218
12219 * tui/tui-layout.h (enum tui_adjust_result): New.
12220 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12221 (class tui_layout_window) <adjust_size>: Return
12222 tui_adjust_result. Rewrite.
12223 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12224 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12225
c22fef7e
TT
122262020-02-22 Tom Tromey <tom@tromey.com>
12227
12228 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12229 parameter and return types.
12230 (class tui_layout_base) <specification>: Add "depth".
12231 (class tui_layout_window) <specification>: Add "depth".
12232 (class tui_layout_split) <specification>: Add "depth".
12233 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12234 and return types.
12235 (tui_new_layout_command): Parse sub-layouts.
12236 (_initialize_tui_layout): Update help string.
12237 (tui_layout_window::specification): Add "depth".
12238 (add_layout_command): Update.
12239
ee325b61
TT
122402020-02-22 Tom Tromey <tom@tromey.com>
12241
12242 * NEWS: Add "tui new-layout" item.
12243 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12244 Add new-layout command to help text.
12245 (validate_window_name): New function.
12246 (tui_new_layout_command): New function.
12247 (_initialize_tui_layout): Register "new-layout".
12248 (tui_layout_window::specification): New method.
12249 (tui_layout_window::specification): New method.
12250 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12251 method.
12252 (class tui_layout_window) <specification>: New method.
12253 (class tui_layout_split) <specification>: New method.
12254
416eb92d
TT
122552020-02-22 Tom Tromey <tom@tromey.com>
12256
12257 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12258 * tui/tui-win.c (window_name_completer): Update comment.
12259 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12260 Declare method.
12261 (class tui_layout_window) <replace_window>: Likewise.
12262 (class tui_layout_split) <replace_window>: Likewise.
12263 (tui_set_layout): Don't declare.
12264 (tui_set_initial_layout): Declare function.
12265 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12266 (asm_regs_layout): New globals.
12267 (tui_current_layout, show_layout): Remove.
12268 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12269 (find_layout, tui_apply_layout): New function.
12270 (layout_completer): Remove.
12271 (tui_next_layout): Reimplement.
12272 (tui_next_layout_command): New function.
12273 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12274 (tui_regs_layout): Reimplement.
12275 (tui_regs_layout_command): New function.
12276 (extract_display_start_addr): Rewrite.
12277 (next_layout, prev_layout): Remove.
12278 (tui_layout_window::replace_window): New method.
12279 (tui_layout_split::replace_window): New method.
12280 (destroy_layout): New function.
12281 (layout_list): New global.
12282 (add_layout_command): New function.
12283 (initialize_layouts): Update.
12284 (tui_layout_command): New function.
12285 (_initialize_tui_layout): Install "layout" commands.
12286 * tui/tui-data.h (enum tui_layout_type): Remove.
12287 (tui_current_layout): Don't declare.
12288
0dbc2fc7
TT
122892020-02-22 Tom Tromey <tom@tromey.com>
12290
12291 * tui/tui-regs.c (tui_reg_layout): Remove.
12292 (tui_reg_command): Use tui_regs_layout.
12293 * tui/tui-layout.h (tui_reg_command): Declare.
12294 * tui/tui-layout.c (tui_reg_command): New function.
12295
5afe342e
TT
122962020-02-22 Tom Tromey <tom@tromey.com>
12297
12298 * tui/tui.c (tui_rl_delete_other_windows): Call
12299 tui_remove_some_windows.
12300 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12301 Declare method.
12302 (class tui_layout_window) <remove_windows>: New method.
12303 (class tui_layout_split) <remove_windows>: Declare.
12304 (tui_remove_some_windows): Declare.
12305 * tui/tui-layout.c (tui_remove_some_windows): New function.
12306 (tui_layout_split::remove_windows): New method.
12307
427326a8
TT
123082020-02-22 Tom Tromey <tom@tromey.com>
12309
12310 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12311 * tui/tui-layout.h (tui_next_layout): Declare.
12312 * tui/tui-layout.c (tui_next_layout): New function.
12313
3fe12b6d
TT
123142020-02-22 Tom Tromey <tom@tromey.com>
12315
12316 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12317 correct coordinates.
12318
59b8b5d2
TT
123192020-02-22 Tom Tromey <tom@tromey.com>
12320
12321 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12322 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12323 DATA_WIN case.
12324
2a3d458b
TT
123252020-02-22 Tom Tromey <tom@tromey.com>
12326
12327 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12328 TUI_DISASM_WIN, not tui_win_list.
12329
3f0cbb04
TT
123302020-02-22 Tom Tromey <tom@tromey.com>
12331
12332 * valprint.c (generic_val_print_enum_1)
12333 (val_print_type_code_flags): Style member names.
12334 * rust-lang.c (val_print_struct, rust_print_enum)
12335 (rust_print_struct_def, rust_internal_print_type): Style member
12336 names.
12337 * p-valprint.c (pascal_object_print_value_fields): Style member
12338 names. Only call fprintf_symbol_filtered for static members.
12339 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12340 * f-valprint.c (f_val_print): Style member names.
12341 * f-typeprint.c (f_type_print_base): Style member names.
12342 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12343 call fprintf_symbol_filtered for static members.
12344 (cp_print_class_member): Style member names.
12345 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12346 member names.
12347 * ada-valprint.c (ada_print_scalar): Style enum names.
12348 (ada_val_print_enum): Likewise.
12349 * ada-typeprint.c (print_enum_type): Style enum names.
12350
d4d947ae
TT
123512020-02-21 Tom Tromey <tom@tromey.com>
12352
12353 * psympriv.h (struct partial_symtab): Update comment.
12354
e94e944b
TT
123552020-02-21 Tom Tromey <tromey@adacore.com>
12356
12357 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12358 type is CORE_ADDR.
12359
1eb73179
TV
123602020-02-21 Tom de Vries <tdevries@suse.de>
12361
12362 PR gdb/25534
12363 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12364 if dependencies[i]->user != NULL.
12365
4f180d53
AT
123662020-02-21 Ali Tamur <tamur@google.com>
12367
12368 * dwarf2/read.c (dwarf2_name): Add null check.
12369
22b6cd70
TT
123702020-02-20 Tom Tromey <tom@tromey.com>
12371
12372 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12373 ">=", in binary search.
12374 (dwarf2_find_containing_comp_unit): New overload.
12375 (run_test): New self-test.
12376 (_initialize_dwarf2_read): Register new test.
12377
bd0cf5a6
NC
123782020-02-20 Nelson Chu <nelson.chu@sifive.com>
12379
12380 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12381 * riscv-tdep.h: Likewise.
12382 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12383 rv32-only CSR.
12384 * features/riscv/64bit-csr.xml: Regenerated.
12385
3f702acd
SDJ
123862020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12387 Tom Tromey <tom@tromey.com>
12388
12389 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12390 of 'fputc_unfiltered'.
12391 (putchar_unfiltered): Call 'fputc_unfiltered'.
12392 (fputc_unfiltered): Call 'fputs_unfiltered'.
12393
d13c7322
AB
123942020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12395
12396 * config.in: Regenerate.
12397 * configure: Regenerate.
12398 * configure.ac: Add --with-python-libdir option.
12399 * main.c: Use WITH_PYTHON_LIBDIR.
12400
869d8950
TT
124012020-02-19 Tom Tromey <tom@tromey.com>
12402
12403 * symtab.c (general_symbol_info::compute_and_set_names): Use
12404 obstack_strndup. Simplify call to symbol_set_demangled_name.
12405
298e9637
SM
124062020-02-19 Simon Marchi <simon.marchi@efficios.com>
12407
12408 * dwarf2/read.c (allocate_signatured_type_table,
12409 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12410 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12411 Remove objfile parameter, update all callers.
12412
08410482
DE
124132020-02-19 Doug Evans <dje@google.com>
12414
12415 PR rust/25535
12416 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12417 rust_enum_variant calculation.
12418
dfdeeca1
TT
124192020-02-19 Tom Tromey <tromey@adacore.com>
12420
12421 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12422
2ef5453b
TT
124232020-02-19 Tom Tromey <tromey@adacore.com>
12424
12425 * ada-lang.c (cache_symbol): Use obstack_strdup.
12426
9f1528a1
AB
124272020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12428
12429 * configure: Regenerate.
12430
d3c22fa8
TT
124312020-02-19 Tom Tromey <tromey@adacore.com>
12432
12433 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12434 NULL check.
12435
bf84f706
MR
124362020-02-19 Maciej W. Rozycki <macro@wdc.com>
12437
12438 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12439
d1c9b20f
AB
124402020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12441
12442 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12443 if GDBSERVER is not defined.
12444 (riscv_tdesc_cache): Likewise, also store const target_desc.
12445 (STATIC_IN_GDB): Define.
12446 (riscv_create_target_description): Update declaration with
12447 STATIC_IN_GDB.
12448 (riscv_lookup_target_description): New function, only define if
12449 GDBSERVER is not defined.
12450 * arch/riscv.h (riscv_create_target_description): Declare only
12451 when GDBSERVER is defined.
12452 (riscv_lookup_target_description): New declaration when GDBSERVER
12453 is not defined.
12454 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12455 (riscv_linux_read_features): ...this, and return
12456 riscv_gdbarch_features instead of target_desc.
12457 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12458 (riscv_linux_read_description): Rename to...
12459 (riscv_linux_read_features): ...this.
12460 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12461 Update to use riscv_gdbarch_features and
12462 riscv_lookup_target_description.
12463 * riscv-tdep.c (riscv_find_default_target_description): Use
12464 riscv_lookup_target_description instead of
12465 riscv_create_target_description.
12466
373d7ac0
SM
124672020-02-18 Simon Marchi <simon.marchi@efficios.com>
12468
12469 * valprint.c (generic_val_print_enum_1): When printing a flag
12470 enum with value 0 and there is no enumerator with value 0, print
12471 just "0" instead of "(unknown: 0x0)".
12472
b29a2df0
SM
124732020-02-18 Simon Marchi <simon.marchi@efficios.com>
12474
12475 * valprint.c (generic_val_print_enum_1): Print unknown part of
12476 flag enum in hex.
12477
6740f0cc
SM
124782020-02-18 Simon Marchi <simon.marchi@efficios.com>
12479
12480 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12481 flag enums to contain duplicate enumerators.
12482 * valprint.c (generic_val_print_enum_1): Update comment.
12483
edd45eb0
SM
124842020-02-18 Simon Marchi <simon.marchi@efficios.com>
12485
12486 * dwarf2/read.c: Include "count-one-bits.h".
12487 (update_enumeration_type_from_children): If an enumerator has
12488 multiple bits set, don't treat the enumeration as a "flag enum".
12489 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12490 of flag enums have 0 or 1 bit set.
12491
6d0cf446
BE
124922020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12493
12494 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12495 conversion.
12496 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12497 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12498 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12499 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12500 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12501
7001c1b7
SM
125022020-02-18 Simon Marchi <simon.marchi@efficios.com>
12503
12504 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12505
fdb61c6c
SM
125062020-02-14 Simon Marchi <simon.marchi@efficios.com>
12507
12508 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12509 displaced_step_closure_up.
12510 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12511 (struct displaced_step_closure_up):
12512 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12513 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12514 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12515 Likewise.
12516 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12517 * gdbarch.c, gdbarch.h: Re-generate.
12518 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12519 displaced_step_closure_up.
12520 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12521 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12522 * infrun.h (displaced_step_closure_up): New type alias.
12523 (struct displaced_step_inferior_state) <step_closure>: Change
12524 type to displaced_step_closure_up.
12525 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12526 displaced_step_closure_up.
12527 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12528
a4a38eb4
TT
125292020-02-14 Tom Tromey <tom@tromey.com>
12530
12531 * minidebug.c (gnu_debug_key): New global.
12532 (find_separate_debug_file_in_section): Use it.
12533
e8217e61
SM
125342020-02-14 Simon Marchi <simon.marchi@efficios.com>
12535
12536 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12537 std::unique_ptr.
12538 * gdbarch.c: Re-generate.
12539 * gdbarch.h: Re-generate.
12540 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12541 change.
12542 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12543 type to std::unique_ptr.
12544 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12545 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12546 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12547 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12548 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12549 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12550 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12551 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12552 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12553
d8d83535
SM
125542020-02-14 Simon Marchi <simon.marchi@efficios.com>
12555
12556 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12557 std::unique_ptr.
12558 (displaced_step_clear): Rename to...
12559 (displaced_step_reset): ... this. Just call displaced->reset ().
12560 (displaced_step_clear_cleanup): Rename to...
12561 (displaced_step_reset_cleanup): ... this.
12562 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12563 (displaced_step_fixup): Likewise.
12564 (resume_1): Likewise.
12565 (handle_inferior_event): Restore child's memory before calling
12566 displaced_step_fixup on the parent.
12567 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12568 to std::unique_ptr.
12569 <step_closure>: Change type to std::unique_ptr.
12570
5f661e03
SM
125712020-02-14 Simon Marchi <simon.marchi@efficios.com>
12572
12573 * arm-tdep.c: Include count-one-bits.h.
12574 (cleanup_block_store_pc): Use count_one_bits.
12575 (cleanup_block_load_pc): Use count_one_bits.
12576 (arm_copy_block_xfer): Use count_one_bits.
12577 (thumb2_copy_block_xfer): Use count_one_bits.
12578 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12579 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12580 (thumb_get_next_pcs_raw): Use count_one_bits.
12581 (arm_get_next_pcs_raw): Use count_one_bits_l.
12582 * arch/arm.c (bitcount): Remove.
12583 * arch/arm.h (bitcount): Remove.
12584
8084e579
TT
125852020-02-14 Tom Tromey <tromey@adacore.com>
12586
12587 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12588 Update.
12589 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12590 * dwarf2/loc.c (call_site_find_chain_1): Return
12591 unique_xmalloc_ptr.
12592 (call_site_find_chain): Likewise.
12593
258bf0ee
RB
125942020-02-14 Richard Biener <rguenther@suse.de>
12595
12596 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12597 on expression with division operators.
12598
f98a8458
AKS
125992020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12600
12601 * MAINTAINERS (Write After Approval): Adding myself.
12602
d1437c0e
TT
126032020-02-12 Tom Tromey <tom@tromey.com>
12604
12605 * event-loop.c (event_data, gdb_event, event_handler_func):
12606 Remove.
12607
3d4560f7
TT
126082020-02-12 Tom Tromey <tom@tromey.com>
12609
12610 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12611 (dwarf2_frame_objfile_data): Add comment.
12612 (find_comp_unit, set_comp_unit): New functions.
12613 (dwarf2_frame_find_fde): Use find_comp_unit.
12614 (dwarf2_build_frame_info): Use set_comp_unit.
12615
21982304
TT
126162020-02-12 Tom Tromey <tom@tromey.com>
12617
12618 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12619 (comp_unit): Don't initialize objfile.
12620 (execute_cfa_program): Add text_offset parameter.
12621 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12622 (dwarf2_frame_cache): Update.
12623 (dwarf2_build_frame_info): Don't set "objfile" member.
12624
4debb237
TT
126252020-02-12 Tom Tromey <tom@tromey.com>
12626
12627 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12628 (decode_frame_entry): Likewise.
12629 (dwarf2_build_frame_info): Update.
12630
0d404d44
TT
126312020-02-12 Tom Tromey <tom@tromey.com>
12632
12633 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12634 (decode_frame_entry_1): Use the comp_unit obstack.
12635
a7a3ae5c
TT
126362020-02-12 Tom Tromey <tom@tromey.com>
12637
12638 * dwarf2/frame.c (struct comp_unit): Add initializers and
12639 constructor.
12640 (dwarf2_frame_objfile_data): Store a comp_unit.
12641 (dwarf2_frame_find_fde): Update.
12642 (dwarf2_build_frame_info): Use "new".
12643
a9d65418
TT
126442020-02-12 Tom Tromey <tom@tromey.com>
12645
12646 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12647 (dwarf2_fde_table): Typedef for std::vector.
12648 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12649 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12650 (decode_frame_entry): Update.
12651 (dwarf2_build_frame_info): Use "new".
12652
7559c217
CB
126532020-02-12 Christian Biesinger <cbiesinger@google.com>
12654
12655 * arm-tdep.c (arm_gdbarch_init): Update.
12656 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12657 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12658 have_neon, is_m>: Change to bool.
12659
aeefc73c
CB
126602020-02-12 Christian Biesinger <cbiesinger@google.com>
12661
12662 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12663
d27b8e5f
TT
126642020-02-12 Tom Tromey <tom@tromey.com>
12665
12666 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12667
cd5900f3
HD
126682020-02-12 Hannes Domani <ssbssa@yahoo.de>
12669
12670 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12671 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12672
f056b22b
TT
126732020-02-11 Tom Tromey <tom@tromey.com>
12674
12675 * psymtab.h: Update comment.
12676
f92ff6b5
TT
126772020-02-11 Tom Tromey <tom@tromey.com>
12678
12679 * gdb_obstack.h (struct auto_obstack): Use
12680 DISABLE_COPY_AND_ASSIGN.
12681
3fd6912b
TT
126822020-02-11 Tom Tromey <tom@tromey.com>
12683
12684 * dwarf2/frame.h (struct objfile): Don't forward declare.
12685
69ed9b74
CB
126862020-02-11 Christian Biesinger <cbiesinger@google.com>
12687
12688 * cris-tdep.c (cris_supply_gregset): Change signature to match
12689 what struct regset expects.
12690 (cris_regset): New struct.
12691 (fetch_core_registers): Remove.
12692 (cris_iterate_over_regset_sections): New function.
12693 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12694 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12695
bda874f6
CB
126962020-02-11 Christian Biesinger <cbiesinger@google.com>
12697
12698 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12699 registers.
12700
754e1564
CB
127012020-02-11 Christian Biesinger <cbiesinger@google.com>
12702
12703 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12704
8ddd8e0e
SM
127052020-02-11 Simon Marchi <simon.marchi@efficios.com>
12706
12707 * configure: Re-generate.
12708
898e7f60
SM
127092020-02-11 Simon Marchi <simon.marchi@efficios.com>
12710
12711 * configure: Re-generate.
12712
58df732b
SM
127132020-02-11 Simon Marchi <simon.marchi@efficios.com>
12714
12715 * acinclude: Update warning.m4 path.
12716 * warning.m4: Move to gdbsupport.
12717
da5bd37e
TT
127182020-02-11 Tom Tromey <tromey@adacore.com>
12719
12720 * remote.c (remote_console_output): Update.
12721 * printcmd.c (printf_command): Update.
12722 * event-loop.c (gdb_wait_for_event): Update.
12723 * linux-nat.c (sigchld_handler): Update.
12724 * remote-sim.c (gdb_os_write_stdout): Update.
12725 (gdb_os_flush_stdout): Update.
12726 (gdb_os_flush_stderr): Update.
12727 (gdb_os_write_stderr): Update.
12728 * exceptions.c (print_exception): Update.
12729 * remote-fileio.c (remote_fileio_func_read): Update.
12730 (remote_fileio_func_write): Update.
12731 * tui/tui.c (tui_enable): Update.
12732 * tui/tui-interp.c (tui_interp::init): Update.
12733 * utils.c (init_page_info): Update.
12734 (putchar_unfiltered, fputc_unfiltered): Update.
12735 (gdb_flush): Update.
12736 (emit_style_escape): Update.
12737 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12738 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12739 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12740 (stderr_file::write): Update.
12741 (stderr_file::puts): Update.
12742 * ui-file.h (ui_file_isatty, ui_file_write)
12743 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12744 (ui_file_puts): Don't declare.
12745
85f0dd3c
TV
127462020-02-10 Tom de Vries <tdevries@suse.de>
12747
12748 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12749 sentinel to char *.
12750
2e927613
TV
127512020-02-09 Tom de Vries <tdevries@suse.de>
12752
12753 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12754 filename if it matches "<artificial>".
12755
6bafc845
HD
127562020-02-09 Hannes Domani <ssbssa@yahoo.de>
12757
12758 * windows-tdep.c (struct enum_value_name): New struct.
12759 (create_enum): New function.
12760 (windows_get_siginfo_type): Create and use enum types.
12761
7928d571
HD
127622020-02-09 Hannes Domani <ssbssa@yahoo.de>
12763
12764 * NEWS: Mention $_siginfo support for Windows.
12765 * windows-nat.c (handle_exception): Set siginfo_er.
12766 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12767 (windows_xfer_siginfo): New function.
12768 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12769 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12770 (init_windows_gdbarch_data): New function.
12771 (get_windows_gdbarch_data): New function.
12772 (windows_get_siginfo_type): New function.
12773 (windows_init_abi): Register windows_get_siginfo_type.
12774 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12775
6751ebae
TT
127762020-02-08 Tom Tromey <tom@tromey.com>
12777
12778 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12779 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12780 <keep>: Declare method.
12781 <m_keep>: Remove member.
12782 <~cutu_reader>: Remove.
12783 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12784 (cutu_reader::cutu_reader): Update.
12785 (cutu_reader::keep): Rename from ~cutu_reader.
12786 (process_psymtab_comp_unit, build_type_psymtabs_1)
12787 (process_skeletonless_type_unit, load_partial_comp_unit)
12788 (load_full_comp_unit, dwarf2_read_addr_index)
12789 (read_signatured_type): Update.
12790
135f5437
TT
127912020-02-08 Tom Tromey <tom@tromey.com>
12792
12793 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12794 "want_partial_unit" parameter.
12795 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12796 Inline check for DW_TAG_partial_unit.
12797 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12798
9f66ff1c
TT
127992020-02-08 Tom Tromey <tom@tromey.com>
12800
12801 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12802 read.c.
12803 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12804 read.c.
12805
c8a7a66f
TT
128062020-02-08 Tom Tromey <tom@tromey.com>
12807
12808 * dwarf2/read.c (read_address): Move to comp-unit.c.
12809 (dwarf2_rnglists_process, dwarf2_ranges_process)
12810 (read_attribute_value, dwarf_decode_lines_1)
12811 (var_decode_location, decode_locdesc): Update.
12812 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12813 read.c. Remove "cu" parameter.
12814 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12815 method.
12816
8266302d
TT
128172020-02-08 Tom Tromey <tom@tromey.com>
12818
12819 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12820 (read_indirect_line_string): Update.
12821 * dwarf2/comp-unit.c (read_offset): Remove.
12822 (read_comp_unit_head): Update.
12823 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12824 method.
12825 (read_offset): Don't declare.
12826
4057dfde
TT
128272020-02-08 Tom Tromey <tom@tromey.com>
12828
12829 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12830 * dwarf2/read.c (struct comp_unit_head): Move to
12831 dwarf2/comp-unit.h.
12832 (enum class rcuh_kind): Move to comp-unit.h.
12833 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12834 (read_comp_unit_head, error_check_comp_unit_head)
12835 (read_and_check_comp_unit_head): Move to comp-unit.c.
12836 (read_offset, dwarf_unit_type_name): Likewise.
12837 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12838 (cutu_reader::cutu_reader, read_call_site_scope)
12839 (find_partial_die, follow_die_offset): Update.
12840 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12841
24aa364d
TT
128422020-02-08 Tom Tromey <tom@tromey.com>
12843
12844 * dwarf2/read.c (read_offset_1): Move to leb.c.
12845 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12846 (dwarf_decode_macro_bytes): Update.
12847 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12848 * dwarf2/leb.h (read_offset): Declare.
12849
2c7d5afc
TT
128502020-02-08 Tom Tromey <tom@tromey.com>
12851
12852 * dwarf2/read.c (dwarf2_section_size): Remove.
12853 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12854 Update.
12855 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12856
4075cb26
TT
128572020-02-08 Tom Tromey <tom@tromey.com>
12858
12859 * dwarf2/read.c (read_initial_length): Move to leb.c.
12860 * dwarf2/leb.h (read_initial_length): Declare.
12861 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12862 handle_nonstd parameter.
12863 * dwarf2/frame.c (read_initial_length): Remove.
12864 (decode_frame_entry_1): Update.
12865
09ba997f
TT
128662020-02-08 Tom Tromey <tom@tromey.com>
12867
12868 * dwarf2/loc.c (dwarf2_find_location_expression)
12869 (dwarf_evaluate_loc_desc::get_tls_address)
12870 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12871 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12872 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12873 (dwarf2_compile_property_to_c)
12874 (dwarf2_loc_desc_get_symbol_read_needs)
12875 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12876 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12877 (loclist_describe_location, loclist_tracepoint_var_ref)
12878 (loclist_generate_c_location): Update.
12879 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12880 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12881 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12882 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12883 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12884 (dwarf2_per_cu_data::addr_size)
12885 (dwarf2_per_cu_data::ref_addr_size)
12886 (dwarf2_per_cu_data::text_offset)
12887 (dwarf2_per_cu_data::addr_type): Now methods.
12888 (per_cu_header_read_in): Make per_cu "const".
12889 (dwarf2_version): Remove.
12890 (dwarf2_per_cu_data::int_type): Now a method.
12891 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12892 (set_die_type, read_array_type, read_subrange_index_type)
12893 (read_tag_string_type, read_subrange_type): Update.
12894 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12895 offset_size, ref_addr_size, text_offset, addr_type, version,
12896 objfile, int_type, addr_sized_int_type>: Declare methods.
12897
96c738c0
TT
128982020-02-08 Tom Tromey <tom@tromey.com>
12899
12900 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12901 Move earlier.
12902
8fdd972c
TT
129032020-02-08 Tom Tromey <tom@tromey.com>
12904
12905 * dwarf2/read.h (dwarf_line_debug): Declare.
12906 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12907 * dwarf2/read.c: Move line_header code to new files.
12908 (dwarf_line_debug): No longer static.
12909 * dwarf2/line-header.c: New file.
12910 * dwarf2/line-header.h: New file.
12911
03075812
TT
129122020-02-08 Tom Tromey <tom@tromey.com>
12913
12914 * dwarf2/read.c (struct line_header) <file_full_name,
12915 file_file_name>: Return unique_xmalloc_ptr.
12916 (line_header::file_file_name): Update.
12917 (line_header::file_full_name): Update.
12918 (dw2_get_file_names_reader): Update.
12919 (macro_start_file): Update.
12920
bb822404
TT
129212020-02-08 Tom Tromey <tom@tromey.com>
12922
12923 * dwarf2/read.c (struct line_header) <file_full_name,
12924 file_file_name>: Declare methods.
12925 (dw2_get_file_names_reader): Update.
12926 (file_file_name): Now a method.
12927 (file_full_name): Likewise.
12928 (macro_start_file): Update.
12929
009b64fc
TT
129302020-02-08 Tom Tromey <tom@tromey.com>
12931
12932 * dwarf2/read.c (dwarf_always_disassemble)
12933 (show_dwarf_always_disassemble): Move to loc.c.
12934 (_initialize_dwarf2_read): Move "always-disassemble" registration
12935 to loc.c.
12936 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12937 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12938 static.
12939 (show_dwarf_always_disassemble): Move from read.c.
12940 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12941
5895093f
TT
129422020-02-08 Tom Tromey <tom@tromey.com>
12943
12944 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12945 (create_quick_file_names_table): Return htab_up.
12946 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12947 Update.
12948 * dwarf2/read.h (struct dwarf2_per_objfile)
12949 <quick_file_names_table>: Now htab_up.
12950
b3b32279
TT
129512020-02-08 Tom Tromey <tom@tromey.com>
12952
12953 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12954
1d33d811
TT
129552020-02-08 Tom Tromey <tom@tromey.com>
12956
12957 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12958 Rewrite.
12959 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12960 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12961 (abbrev_table::abbrev_table): No longer inline.
12962 (ABBREV_HASH_SIZE): Remove.
12963 (abbrev_table::m_abbrevs): Now an htab_up.
12964
86de1d91
TT
129652020-02-08 Tom Tromey <tom@tromey.com>
12966
12967 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12968 (cutu_reader): Update.
12969 (build_type_psymtabs_1): Update.
12970 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12971 (abbrev_table::alloc_abbrev): Update.
12972 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12973 (abbrev_table::read): New static method, renamed from
12974 abbrev_table_read_table.
12975 (abbrev_table::alloc_abbrev)
12976 (abbrev_table::add_abbrev): Now private.
12977 (abbrev_table::abbrev_table): Now private.
12978 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12979
0335378b
TT
129802020-02-08 Tom Tromey <tom@tromey.com>
12981
12982 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12983 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12984 htab_up.
12985
48b490f2
TT
129862020-02-08 Tom Tromey <tom@tromey.com>
12987
12988 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12989 htab_up.
12990 (lookup_dwo_unit_in_dwp): Update.
12991 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12992 on obstack.
12993
bc68fb19
TT
129942020-02-08 Tom Tromey <tom@tromey.com>
12995
12996 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12997 obstack.
12998
d15acc42
TT
129992020-02-08 Tom Tromey <tom@tromey.com>
13000
13001 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13002 line_header_hash.
13003 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13004 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13005 Change type to htab_up.
13006
eaa5fa8b
TT
130072020-02-08 Tom Tromey <tom@tromey.com>
13008
13009 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13010 htab_up. Don't allocate on obstack.
13011 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13012 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13013 Change type to htab_up.
13014
b0b6a987
TT
130152020-02-08 Tom Tromey <tom@tromey.com>
13016
13017 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13018 Change type to htab_up.
13019 * dwarf2/read.c (create_signatured_type_table_from_index)
13020 (create_signatured_type_table_from_debug_names)
13021 (create_all_type_units, add_type_unit)
13022 (lookup_dwo_signatured_type, lookup_signatured_type)
13023 (process_skeletonless_type_unit): Update.
13024 (create_debug_type_hash_table, create_debug_types_hash_table):
13025 Change type of types_htab.
13026 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13027 htab_up. Don't allocate on obstack.
13028 (create_cus_hash_table): Change type of cus_htab parameter.
13029 (struct dwo_file) <cus, tus>: Now htab_up.
13030 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13031 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13032 (queue_and_load_all_dwo_tus): Update.
13033 * dwarf2/index-write.c (write_gdbindex): Update.
13034 (write_debug_names): Update.
13035
39856def
TT
130362020-02-08 Tom Tromey <tom@tromey.com>
13037
13038 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13039 dwarf2/read.c. Remove "next" member. Add constructor ntad
13040 destructor.
13041 (struct dwarf2_per_objfile) <queue>: New member.
13042 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13043 dwarf2/read.h.
13044 (dwarf2_queue, dwarf2_queue_tail): Remove.
13045 (class dwarf2_queue_guard): Add parameter to constructor. Use
13046 DISABLE_COPY_AND_ASSIGN.
13047 <m_per_objfile>: New member.
13048 <~dwarf2_queue_guard>: Rewrite.
13049 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13050 Update.
13051 (~dwarf2_queue_item): New.
13052
3e225074
TT
130532020-02-08 Tom Tromey <tom@tromey.com>
13054
13055 * dwarf2/read.c (struct die_info) <has_children>: New member.
13056 (dw2_get_file_names_reader): Remove has_children.
13057 (dw2_get_file_names): Update.
13058 (read_cutu_die_from_dwo): Remove has_children.
13059 (cutu_reader::init_tu_and_read_dwo_dies)
13060 (cutu_reader::cutu_reader): Update.
13061 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13062 Remove has_children.
13063 (build_type_psymtabs_1, process_skeletonless_type_unit)
13064 (load_partial_comp_unit, load_full_comp_unit): Update.
13065 (create_dwo_cu_reader): Remove has_children.
13066 (create_cus_hash_table, read_die_and_children): Update.
13067 (read_full_die_1,read_full_die): Remove has_children.
13068 (read_signatured_type): Update.
13069 (class cutu_reader) <has_children>: Remove.
13070
82ca8957
TT
130712020-02-08 Tom Tromey <tom@tromey.com>
13072
13073 * dwarf2/expr.c: Rename from dwarf2expr.c.
13074 * dwarf2/expr.h: Rename from dwarf2expr.h.
13075 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13076 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13077 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13078 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13079 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13080 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13081 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13082 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13083 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13084 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13085 * dwarf2/loc.c: Rename from dwarf2loc.c.
13086 * dwarf2/loc.h: Rename from dwarf2loc.h.
13087 * dwarf2/read.c: Rename from dwarf2read.c.
13088 * dwarf2/read.h: Rename from dwarf2read.h.
13089 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13090 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13091 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13092 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13093 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13094 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13095 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13096 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13097 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13098 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13099 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13100 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13101 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13102 Update.
13103 * Makefile.in (COMMON_SFILES): Update.
13104 (HFILES_NO_SRCDIR): Update.
13105
9e35d499
TT
131062020-02-08 Tom Tromey <tom@tromey.com>
13107
13108 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13109 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13110
1eba2311
TT
131112020-02-08 Tom Tromey <tom@tromey.com>
13112
13113 * dwarf2read.h (struct die_info): Don't declare.
13114
e41c2da2
TT
131152020-02-08 Tom Tromey <tom@tromey.com>
13116
13117 * dwarf2read.h (die_info_ptr): Remove typedef.
13118
4fc6c0d5
TT
131192020-02-08 Tom Tromey <tom@tromey.com>
13120
13121 * dwarf2read.c (read_call_site_scope)
13122 (handle_data_member_location, dwarf2_add_member_fn)
13123 (mark_common_block_symbol_computed, read_common_block)
13124 (attr_to_dynamic_prop, partial_die_info::read)
13125 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13126 (dwarf2_symbol_mark_computed, set_die_type): Update.
13127 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13128 method.
13129 (attr_form_is_block): Don't declare.
13130 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13131
cd6c91b4
TT
131322020-02-08 Tom Tromey <tom@tromey.com>
13133
13134 * dwarf2read.c (dwarf2_find_base_address, )
13135 (read_call_site_scope, rust_containing_type)
13136 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13137 (handle_data_member_location, dwarf2_add_member_fn)
13138 (get_alignment, read_structure_type, process_structure_scope)
13139 (mark_common_block_symbol_computed, read_common_block)
13140 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13141 (partial_die_info::read, read_attribute_value, new_symbol)
13142 (lookup_die_type, dwarf2_get_ref_die_offset)
13143 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13144 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13145 (dwarf2_symbol_mark_computed): Update.
13146 * dwarf2/attribute.h (struct attribute) <value_as_address,
13147 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13148 methods.
13149 (value_as_address, attr_form_is_section_offset)
13150 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13151 * dwarf2/attribute.c (attribute::value_as_address)
13152 (attribute::form_is_section_offset, attribute::form_is_constant)
13153 (attribute::form_is_ref): Now methods.
13154
162dce55
TT
131552020-02-08 Tom Tromey <tom@tromey.com>
13156
13157 * dwarf2read.c (struct attribute, DW_STRING)
13158 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13159 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13160 (attr_form_is_block, attr_form_is_section_offset)
13161 (attr_form_is_constant, attr_form_is_ref): Move.
13162 * dwarf2/attribute.h: New file.
13163 * dwarf2/attribute.c: New file, from dwarf2read.c.
13164 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13165
3054dd54
TT
131662020-02-08 Tom Tromey <tom@tromey.com>
13167
13168 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13169 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13170 Move.
13171 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13172 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13173 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13174 abbrev.c.
13175 * dwarf2/abbrev.h: New file.
13176 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13177 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13178
96b79293
TT
131792020-02-08 Tom Tromey <tom@tromey.com>
13180
13181 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13182 (dwarf2_section_size, dwarf2_get_section_info)
13183 (create_signatured_type_table_from_debug_names)
13184 (create_addrmap_from_aranges, read_debug_names_from_section)
13185 (get_gdb_index_contents_from_section, read_comp_unit_head)
13186 (error_check_comp_unit_head, read_abbrev_offset)
13187 (create_debug_type_hash_table, init_cu_die_reader)
13188 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13189 (read_comp_units_from_section, create_cus_hash_table)
13190 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13191 (create_dwp_v2_section, dwarf2_rnglists_process)
13192 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13193 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13194 (read_indirect_string_from_dwz, read_addr_index_1)
13195 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13196 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13197 (fill_in_loclist_baton): Update.
13198 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13199 get_containing_section, get_bfd_owner, get_bfd_section,
13200 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13201 (dwarf2_read_section, get_section_name, get_section_file_name)
13202 (get_containing_section, get_section_bfd_owner)
13203 (get_section_bfd_section, get_section_name, get_section_file_name)
13204 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13205 declare.
13206 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13207 (dwarf2_section_info::get_bfd_owner)
13208 (dwarf2_section_info::get_bfd_section)
13209 (dwarf2_section_info::get_name)
13210 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13211 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13212 (dwarf2_section_info::read): Now methods.
13213 * dwarf-index-write.c (class debug_names): Update.
13214
2c86cff9
TT
132152020-02-08 Tom Tromey <tom@tromey.com>
13216
13217 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13218 Move to dwarf2/section.h.
13219 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13220 (get_section_bfd_section, get_section_name)
13221 (get_section_file_name, get_section_id, get_section_flags)
13222 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13223 dwarf2/section.c.
13224 * dwarf2/section.h: New file.
13225 * dwarf2/section.c: New file, from dwarf2read.c.
13226 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13227
f4382c45
TT
132282020-02-08 Tom Tromey <tom@tromey.com>
13229
13230 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13231 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13232 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13233 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13234 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13235 * dwarf2/leb.h: New file, from dwarf2read.c.
13236 * dwarf2/leb.c: New file, from dwarf2read.c.
13237 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13238 Remove.
13239 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13240 (COMMON_SFILES): Add dwarf2/leb.c.
13241
01840b7a
JB
132422020-02-08 Joel Brobecker <brobecker@adacore.com>
13243
13244 GDB 9.1 released.
13245
dfcb27e4
IB
132462020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13247
13248 PR gdb/25190:
aac66a4c
SM
13249 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13250 * gdb/remote.c (remote_console_output): Update.
13251 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13252 (ui_file_puts): ...this.
13253 * gdb/ui-file.h (ui_file_puts): Add declaration.
13254 * gdb/utils.c (emit_style_escape): Update.
13255 (flush_wrap_buffer): Update.
13256 (fputs_maybe_filtered): Update.
13257 (fputs_unfiltered): Add function.
dfcb27e4 13258
faa17681
IB
132592020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13260
aac66a4c
SM
13261 * gdb/event-loop.c (gdb_wait_for_event): Update.
13262 * gdb/printcmd.c (printf_command): Update.
13263 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13264 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13265 (gdb_os_flush_stderr): Update.
13266 * gdb/remote.c (remote_console_output): Update.
13267 * gdb/ui-file.c (gdb_flush): Rename to...
13268 (ui_file_flush): ...this.
13269 (stderr_file::write): Update.
13270 (stderr_file::puts): Update.
13271 * gdb/ui-file.h (gdb_flush): Rename to...
13272 (ui_file_flush): ...this.
13273 * gdb/utils.c (gdb_flush): Add function.
13274 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 13275
5abbbe1d
TT
132762020-02-07 Tom Tromey <tromey@adacore.com>
13277
13278 PR breakpoints/24915:
13279 * source.c (find_and_open_source): Do not check basenames_may_differ.
13280
919adfe8
TT
132812020-02-07 Tom Tromey <tom@tromey.com>
13282
13283 * README: Update gdbserver documentation.
13284 * gdbserver: Move to top level.
13285 * configure.tgt (build_gdbserver): Remove.
13286 * configure.ac: Remove --enable-gdbserver.
13287 * configure: Rebuild.
13288 * Makefile.in (distclean): Don't mention gdbserver.
13289
1d5d29e7
SV
132902020-02-06 Shahab Vahedi <shahab@synopsys.com>
13291
13292 * source-cache.c (source_cache::ensure): Surround
13293 get_plain_source_lines with a try/catch.
13294 (source_cache::get_line_charpos): Get rid of try/catch
13295 and only check for the return value of "ensure".
13296 * tui/tui-source.c (tui_source_window::set_contents):
13297 Simplify "nlines" calculation.
13298
6eb1129c
SV
132992020-02-06 Shahab Vahedi <shahab@synopsys.com>
13300
13301 * MAINTAINERS (Write After Approval): Add myself.
13302
c6a42d11
CB
133032020-02-05 Christian Biesinger <cbiesinger@google.com>
13304
13305 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13306 function call.
13307
c8ecdda6
CB
133082020-02-05 Christian Biesinger <cbiesinger@google.com>
13309
13310 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13311
f6480e70
MR
133122020-02-05 Maciej W. Rozycki <macro@wdc.com>
13313
13314 * nat/riscv-linux-tdesc.h: New file.
13315 * nat/riscv-linux-tdesc.c: New file, taking code from...
13316 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13317 ... here.
13318 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13319 NATDEPFILES.
13320
dcc9fbc6
AB
133212020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13322
13323 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13324 we don't set the fake simulator ptid to the null_ptid.
13325
719546c4
SM
133262020-02-03 Simon Marchi <simon.marchi@efficios.com>
13327
13328 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13329 * gdbthread.h (class thread_info) <resumed>: Likewise.
13330 * infrun.c (resume_1): Likewise.
13331 (proceed): Likewise.
13332 (infrun_thread_stop_requested): Likewise.
13333 (stop_all_threads): Likewise.
13334 (handle_inferior_event): Likewise.
13335 (restart_threads): Likewise.
13336 (finish_step_over): Likewise.
13337 (keep_going_stepped_thread): Likewise.
13338 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13339 (linux_handle_extended_wait): Likewise.
13340 * record-btrace.c (get_thread_current_frame_id): Likewise.
13341 * record-full.c (record_full_wait_1): Likewise.
13342 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13343 * target.c (target_resume): Likewise.
13344 * thread.c (set_running_thread): Likewise.
13345
e409c542
AKS
133462020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13347
13348 * f-valprint.c (f77_print_array_1): Changed datatype of index
13349 variable to LONGEST from int to enable it to contain bound
13350 values correctly.
13351
ee98c0da
MR
133522020-02-03 Maciej W. Rozycki <macro@wdc.com>
13353
13354 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13355 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13356 offsets according to FLEN determined.
13357 (riscv_linux_nat_target::read_description): Determine FLEN
13358 dynamically.
13359 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13360 according to FLEN determined.
13361 (riscv_linux_nat_target::store_registers): Likewise.
13362
aa66aac4
SV
133632020-02-01 Shahab Vahedi <shahab@synopsys.com>
13364
13365 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13366 when reg->group is empty and reggroup is not.
13367
fd9faca8
TT
133682020-01-31 Tom Tromey <tromey@adacore.com>
13369
13370 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13371 Call beneath target's mourn_inferior after unpushing.
13372
42330a68
AB
133732020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13374
13375 PR tui/9765
13376 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13377 have enough lines to fill the screen, still return the lowest
13378 address we found.
13379
7a27a45b
AB
133802020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13381
13382 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13383 '-', '<', and '>' commands.
13384
c47f70e2
PA
133852020-01-29 Pedro Alves <palves@redhat.com>
13386 Sergio Durigan Junior <sergiodj@redhat.com>
13387
13388 * infcmd.c (construct_inferior_arguments): Assert that
13389 'argc' is greater than 0.
13390
5133a315
LM
133912020-01-29 Luis Machado <luis.machado@linaro.org>
13392
13393 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13394 (BRK_INSN_MASK): Define to 0xd4200000.
13395 (aarch64_program_breakpoint_here_p): New function.
13396 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13397 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13398 breakpoint.c.
13399 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13400 breakpoint.h
13401 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13402 call gdbarch_program_breakpoint_here_p.
13403 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13404 default_program_breakpoint_here_p, changed return type to bool and
13405 simplified.
13406 * breakpoint.h (program_breakpoint_here): Moved prototype to
13407 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13408 return type to bool.
13409 * gdbarch.c: Regenerate.
13410 * gdbarch.h: Regenerate.
13411 * gdbarch.sh (program_breakpoint_here_p): New method.
13412 * infrun.c (handle_signal_stop): Call
13413 gdbarch_program_breakpoint_here_p.
13414
168f8c6b
TT
134152020-01-26 Tom Tromey <tom@tromey.com>
13416
13417 * ctfread.c (struct ctf_fp_info): Reindent.
13418 (_initialize_ctfread): Remove.
13419
128a391f
TT
134202020-01-26 Tom Tromey <tom@tromey.com>
13421
13422 * psymtab.c (partial_map_expand_apply)
13423 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13424 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13425 (psym_print_stats, psym_expand_symtabs_for_function)
13426 (psym_map_symbol_filenames, psym_map_matching_symbols)
13427 (psym_expand_symtabs_matching)
13428 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13429 (maintenance_check_psymtabs): Use new methods.
13430 * psympriv.h (struct partial_symtab) <readin_p,
13431 get_compunit_symtab>: New methods.
13432 <readin, compunit_symtab>: Remove members.
13433 (struct standard_psymtab): New.
13434 (struct legacy_psymtab): Derive from standard_psymtab.
13435 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13436 standard_psymtab.
13437 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13438
0494dbec
TT
134392020-01-26 Tom Tromey <tom@tromey.com>
13440
13441 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13442 read_dependencies. Add assert.
13443 * psymtab.c (partial_symtab::read_dependencies): New method.
13444 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13445 method.
13446 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13447 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13448 read_dependencies.
13449 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13450 Add assert.
13451
8566b89b
TT
134522020-01-26 Tom Tromey <tom@tromey.com>
13453
13454 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13455 Call expand_psymtab.
13456 (xcoff_read_symtab): Call expand_psymtab.
13457 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13458 legacy_expand_psymtab.
13459 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13460 method.
13461 (struct legacy_psymtab) <expand_psymtab>: Implement.
13462 <legacy_expand_psymtab>: New member.
13463 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13464 (parse_partial_symbols): Set legacy_expand_psymtab.
13465 (psymtab_to_symtab_1): Change argument order. Call
13466 expand_psymtab.
13467 (new_psymtab): Set legacy_expand_psymtab.
13468 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13469 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13470 expand_psymtab.
13471 (dwarf2_psymtab::expand_psymtab): Rename from
13472 psymtab_to_symtab_1. Call expand_psymtab.
13473 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13474 (dbx_end_psymtab): Likewise.
13475 (dbx_psymtab_to_symtab_1): Change argument order. Call
13476 expand_psymtab.
13477 (dbx_read_symtab): Call expand_psymtab.
13478 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13479 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13480 (ctf_psymtab::read_symtab): Call expand_psymtab.
13481
077cbab2
TT
134822020-01-26 Tom Tromey <tom@tromey.com>
13483
13484 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13485 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13486 messages.
13487 * mdebugread.c (mdebug_read_symtab): Remove prints.
13488 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13489 assert.
13490 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13491
891813be
TT
134922020-01-26 Tom Tromey <tom@tromey.com>
13493
13494 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13495 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13496 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13497 legacy_symtab.
13498 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13499 * psymtab.c (psymtab_to_symtab): Call method.
13500 (dump_psymtab): Update.
13501 * psympriv.h (struct partial_symtab): Add virtual destructor.
13502 <read_symtab>: New method.
13503 (struct legacy_symtab): New.
13504 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13505 (struct pst_map) <pst>: Now a legacy_psymtab.
13506 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13507 (new_psymtab): Use legacy_psymtab.
13508 * dwarf2read.h (struct dwarf2_psymtab): New.
13509 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13510 * dwarf2read.c (dwarf2_create_include_psymtab)
13511 (dwarf2_build_include_psymtabs, create_type_unit_group)
13512 (create_partial_symtab, process_psymtab_comp_unit_reader)
13513 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13514 (set_partial_user): Use dwarf2_psymtab.
13515 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13516 (psymtab_to_symtab_1, process_full_comp_unit)
13517 (process_full_type_unit, dwarf2_ranges_read)
13518 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13519 (dwarf_decode_lines): Use dwarf2_psymtab.
13520 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13521 (add_address_entry_worker, write_one_signatured_type)
13522 (recursively_count_psymbols, recursively_write_psymbols)
13523 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13524 (write_debug_names): Likewise.
13525 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13526 <pst>: Now a legacy_psymtab.
13527 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13528 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13529 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13530 * ctfread.c (struct ctf_psymtab): New.
13531 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13532 ctf_psymtab.
13533 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13534 (create_partial_symtab): Return a ctf_psymtab.
13535 (scan_partial_symbols): Update.
13536
c3693a1d
TT
135372020-01-26 Tom Tromey <tom@tromey.com>
13538
13539 * xcoffread.c (xcoff_start_psymtab): Use new.
13540 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13541 renamed from start_psymtab_common.
13542 * psympriv.h (struct partial_symtab): Add new constructor.
13543 (start_psymtab_common): Don't declare.
13544 * mdebugread.c (parse_partial_symbols): Use new.
13545 * dwarf2read.c (create_partial_symtab): Use new.
13546 * dbxread.c (start_psymtab): Use new.
13547 * ctfread.c (create_partial_symtab): Use new.
13548
32caafd0
TT
135492020-01-26 Tom Tromey <tom@tromey.com>
13550
13551 * xcoffread.c (xcoff_end_psymtab): Use new.
13552 * psymtab.c (start_psymtab_common): Use new.
13553 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13554 Update.
13555 * psympriv.h (struct partial_symtab): Add parameters to
13556 constructor. Don't inline.
13557 (allocate_psymtab): Don't declare.
13558 * mdebugread.c (new_psymtab): Use new.
13559 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13560 * dbxread.c (dbx_end_psymtab): Use new.
13561
abaa2f23
TT
135622020-01-26 Tom Tromey <tom@tromey.com>
13563
13564 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13565 allocate_psymtab. Update documentation.
13566 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13567 allocate_psymtab. Do not use new.
13568 (allocate_psymtab): Use new. Update.
13569
6d94535f
TT
135702020-01-26 Tom Tromey <tom@tromey.com>
13571
13572 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13573 * psymtab.c (psym_print_stats): Update.
13574 * psympriv.h (struct partial_symtab) <readin,
13575 psymtabs_addrmap_supported, anonymous>: Now bool.
13576 * mdebugread.c (psymtab_to_symtab_1): Update.
13577 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13578 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13579 (process_full_comp_unit, process_full_type_unit): Update.
13580 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13581 * ctfread.c (psymtab_to_symtab): Update.
13582
6f17252b
TT
135832020-01-26 Tom Tromey <tom@tromey.com>
13584
13585 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13586 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13587 * psymtab.c (psymtab_storage): Delete psymtabs.
13588 (psymtab_storage::allocate_psymtab): Use new.
13589 (psymtab_storage::discard_psymtab): Use delete.
13590 * psympriv.h (struct partial_symtab): Add constructor and
13591 initializers.
13592
f6f1cebc
TT
135932020-01-26 Tom Tromey <tom@tromey.com>
13594
13595 * machoread.c: Do not include psympriv.h.
13596
e47e48f6
PW
135972020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13598
13599 * NEWS: Mention the new option and the set/show commands.
13600
a2fedca9
PW
136012020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13602
13603 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13604 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13605 (validate_exec_file): New variables, enums, functions.
13606 (exec_file_locate_attach, print_section_info): Style the filenames.
13607 (_initialize_exec): Install show_exec_file_mismatch_command and
13608 set_exec_file_mismatch_command.
13609 * gdbcore.h (validate_exec_file): Declare.
13610 * infcmd.c (attach_command): Call validate_exec_file.
13611 * remote.c ( remote_target::remote_add_inferior): Likewise.
13612
7ffa82e1
AB
136132020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13614
13615 * frame.c (find_frame_sal): Move call to get_next_frame into more
13616 inner scope.
13617 * inline-frame.c (inilne_state) <inline_state>: Update argument
13618 types.
13619 (inilne_state) <skipped_symbol>: Rename to...
13620 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13621 (skip_inline_frames): Build vector of skipped symbols and use this
13622 to reate the inline_state.
13623 (inline_skipped_symbol): Add a comment and some assertions, fetch
13624 skipped symbol from the list.
13625
3d92a3e3
AB
136262020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13627
13628 * buildsym.c (lte_is_less_than): Delete.
13629 (buildsym_compunit::end_symtab_with_blockvector): Create local
13630 lambda function to sort line table entries, and use
13631 std::stable_sort instead of std::sort.
13632 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13633 markers when looking for a previous line.
13634
94a72be7
AB
136352020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13636
13637 * dwarf2read.c (lnp_state_machine::record_line): Include
13638 end_sequence parameter in debug print out. Record the line if we
13639 are at an end_sequence marker even if it's not the start of a
13640 statement.
13641 * symmisc.c (maintenance_print_one_line_table): Print end of
13642 sequence markers with 'END' not '0'.
13643
53af73bf
PA
136442020-01-24 Pedro Alves <palves@redhat.com>
13645
13646 PR gdb/25410
13647 * thread.c (scoped_restore_current_thread::restore): Use
13648 switch_to_inferior_no_thread.
13649 * exec.c: Include "progspace-and-thread.h".
13650 (add_target_sections, remove_target_sections):
13651 scoped_restore_current_pspace_and_thread instead of
13652 scoped_restore_current_thread.
13653 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13654 and aspace to the inferior before calling clone_program_space.
13655 Remove stale comment.
13656
3050c6f4
CB
136572020-01-24 Christian Biesinger <cbiesinger@google.com>
13658
13659 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13660 (arm_netbsd_nat_target::fetch_registers): ...this.
13661 (arm_nbsd_nat_target::store_registers): Rename to...
13662 (arm_netbsd_nat_target::store_registers): ...this.
13663
73685c7e
CB
136642020-01-24 Christian Biesinger <cbiesinger@google.com>
13665
13666 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13667 register_t.
13668
89203d40
CB
136692020-01-24 Christian Biesinger <cbiesinger@google.com>
13670
13671 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13672 Update comment.
13673 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13674 Likewise.
13675 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13676 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13677 the correct replacement (iterate_over_regset_sections).
13678 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13679 Update comment.
13680
1ba1ac88
AB
136812020-01-24 Graham Markall <graham.markall@embecosm.com>
13682
13683 PR gdb/23718
13684 * gdb/python/python.c (execute_gdb_command): Call
13685 async_enable_stdin in catch block.
13686
f3364a6d
AB
136872020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13688
13689 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13690 SWITCH_THRU_ALL_UIS.
13691
733d0a67
AB
136922020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13693
13694 PR tui/9765
13695 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13696 comment, add extra parameter, and update to store previous symbol
13697 when appropriate.
13698 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13699 add extra parameter.
13700 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13701 remove unneeded parameter, add try/catch around gdb_print_insn,
13702 rewrite to add items to asm_lines vector.
13703 (tui_find_backward_disassembly_start_address): New function.
13704 (tui_find_disassembly_address): Updated throughout.
13705 (tui_disasm_window::set_contents): Update for changes to
13706 tui_disassemble.
13707 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13708 number of lines to scroll.
13709
b3b3bada
SM
137102020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13711
13712 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13713 (SECT_OFF_DATA): Likewise.
13714 (SECT_OFF_RODATA): Likewise.
13715 (SECT_OFF_TEXT): Likewise.
13716 (SECT_OFF_BSS): Likewise.
13717 (struct objfile) <text_section_offset, data_section_offset>: New
13718 methods.
13719 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13720 objfile::text_section_offset.
13721 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13722 * coffread.c (coff_symtab_read): Likewise.
13723 (enter_linenos): Likewise.
13724 (process_coff_symbol): Likewise.
13725 * ctfread.c (get_objfile_text_range): Likewise.
13726 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13727 Use objfile::data_section_offset.
13728 * dwarf2-frame.c (execute_cfa_program): Use
13729 objfile::text_section_offset.
13730 (dwarf2_frame_find_fde): Likewise.
13731 * dwarf2read.c (create_addrmap_from_index): Likewise.
13732 (create_addrmap_from_aranges): Likewise.
13733 (dw2_find_pc_sect_compunit_symtab): Likewise.
13734 (process_psymtab_comp_unit_reader): Likewise.
13735 (add_partial_symbol): Likewise.
13736 (add_partial_subprogram): Likewise.
13737 (process_full_comp_unit): Likewise.
13738 (read_file_scope): Likewise.
13739 (read_func_scope): Likewise.
13740 (read_lexical_block_scope): Likewise.
13741 (read_call_site_scope): Likewise.
13742 (dwarf2_rnglists_process): Likewise.
13743 (dwarf2_ranges_process): Likewise.
13744 (dwarf2_ranges_read): Likewise.
13745 (dwarf_decode_lines_1): Likewise.
13746 (new_symbol): Likewise.
13747 (dwarf2_fetch_die_loc_sect_off): Likewise.
13748 (dwarf2_per_cu_text_offset): Likewise.
13749 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13750 * hppa-tdep.c (read_unwind_info): Likewise.
13751 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13752 * psympriv.h (struct partial_symtab): Likewise.
13753 * psymtab.c (find_pc_sect_psymtab): Likewise.
13754 * solib-svr4.c (enable_break): Likewise.
13755 * stap-probe.c (relocate_address): Use
13756 objfile::data_section_offset.
13757 * xcoffread.c (enter_line_range): Use
13758 objfile::text_section_offset.
13759 (read_xcoff_symtab): Likewise.
13760
ab53f382
SM
137612020-01-23 Simon Marchi <simon.marchi@efficios.com>
13762
13763 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13764 declaration to narrower scopes.
13765
e7eee665
SM
137662020-01-23 Simon Marchi <simon.marchi@efficios.com>
13767
13768 * darwin-nat.h (struct darwin_exception_msg, enum
13769 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13770 Move up.
13771 (class darwin_nat_target) <wait_1, check_new_threads,
13772 decode_exception_message, decode_message, stop_inferior,
13773 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13774 * darwin-nat.c (darwin_check_new_threads): Rename to...
13775 (darwin_nat_target::check_new_threads): ... this.
13776 (darwin_suspend_inferior_it): Remove.
13777 (darwin_decode_exception_message): Rename to...
13778 (darwin_nat_target::decode_exception_message): ... this.
13779 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13780 (darwin_decode_message): Rename to...
13781 (darwin_nat_target::decode_message): ... this.
13782 (cancel_breakpoint): Rename to...
13783 (darwin_nat_target::cancel_breakpoint): ... this.
13784 (darwin_wait): Rename to...
13785 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13786 instead of iterate_over_inferiors.
13787 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13788 (darwin_stop_inferior): Rename to...
13789 (darwin_nat_target::stop_inferior): ... this.
13790 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13791 (darwin_init_thread_list): Rename to...
13792 (darwin_nat_target::init_thread_list): ... this.
13793 (darwin_ptrace_him): Rename to...
13794 (darwin_nat_target::ptrace_him): ... this.
13795 (darwin_nat_target::create_inferior): Pass lambda function to
13796 fork_inferior.
13797 (darwin_nat_target::detach): Call stop_inferior instead of
13798 darwin_stop_inferior.
13799 * fork-inferior.h (fork_inferior): Change init_trace_fun
13800 parameter to gdb::function_view.
13801 * fork-inferior.c (fork_inferior): Likewise.
13802
c162ed3e
HD
138032020-01-23 Hannes Domani <ssbssa@yahoo.de>
13804
13805 * i386-cygwin-tdep.c (core_process_module_section): Update.
13806 * windows-nat.c (struct lm_info_windows): Add text_offset.
13807 (windows_xfer_shared_libraries): Update.
13808 * windows-tdep.c (windows_xfer_shared_library):
13809 Add text_offset_cached argument.
13810 * windows-tdep.h (windows_xfer_shared_library): Update.
13811
a1237872
SM
138122020-01-21 Simon Marchi <simon.marchi@efficios.com>
13813
13814 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13815
b3ee6dd9
SM
138162020-01-21 Simon Marchi <simon.marchi@efficios.com>
13817
13818 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13819 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13820 replace with range-based for.
13821 (gdbsim_interrupt_inferior): Remove.
13822 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13823 with a range-based for. Inline code from
13824 gdbsim_interrupt_inferior.
13825
f9fac3c8
SM
138262020-01-21 Simon Marchi <simon.marchi@efficios.com>
13827
13828 * infrun.c (proceed): Fix indentation.
13829
f6474de9
TT
138302020-01-21 Tom Tromey <tromey@adacore.com>
13831
13832 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13833 * python/python.c (python_extension_ops): Update.
13834 (gdbpy_colorize): New function.
13835 * python/lib/gdb/__init__.py (colorize): New function.
13836 * extension.h (ext_lang_colorize): Declare.
13837 * extension.c (ext_lang_colorize): New function.
13838 * extension-priv.h (struct extension_language_ops) <colorize>: New
13839 member.
13840 * cli/cli-style.c (_initialize_cli_style): Update help text.
13841
f0c702d4
LM
138422020-01-21 Luis Machado <luis.machado@linaro.org>
13843
13844 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13845 <cond>: Change type to bool.
13846 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13847 (aarch64_displaced_step_cb): Likewise.
13848 (aarch64_displaced_step_tb): Likewise.
13849
1ab139e5
LM
138502020-01-21 Luis Machado <luis.machado@linaro.org>
13851
13852 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13853 output.
13854
0c271889
LM
138552020-01-21 Luis Machado <luis.machado@linaro.org>
13856
13857 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13858 <pc_adjust>: Adjust the documentation.
13859 (aarch64_displaced_step_fixup): Check if PC really moved before
13860 adjusting it.
13861
4d89c1c7
TT
138622020-01-19 Tom Tromey <tom@tromey.com>
13863
13864 * disasm.c (~gdb_disassembler): New destructor.
13865 (gdb_buffered_insn_length): Call disassemble_free_target.
13866 * disasm.h (class gdb_disassembler): Declare destructor. Use
13867 DISABLE_COPY_AND_ASSIGN.
13868
c0ab21c2
TT
138692020-01-19 Tom Tromey <tom@tromey.com>
13870
13871 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13872 (die_reader_func_ftype): Remove.
13873 (cutu_reader): New class.
13874 (dw2_get_file_names_reader): Remove "data" parameter.
13875 (dw2_get_file_names): Use cutu_reader.
13876 (create_debug_type_hash_table): Update.
13877 (read_cutu_die_from_dwo): Update comment.
13878 (lookup_dwo_unit): Add dwo_name parameter.
13879 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13880 die_reader_func_ftype and data parameters.
13881 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13882 Remove die_reader_func_ftype and data parameters.
13883 (~cutu_reader): New; from init_cutu_and_read_dies.
13884 (cutu_reader::cutu_reader): Rename from
13885 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13886 and data parameters.
13887 (init_cutu_and_read_dies_simple): Remove.
13888 (struct process_psymtab_comp_unit_data): Remove.
13889 (process_psymtab_comp_unit_reader): Remove data parameter; add
13890 want_partial_unit and pretend_language parameters.
13891 (process_psymtab_comp_unit): Use cutu_reader.
13892 (build_type_psymtabs_reader): Remove data parameter.
13893 (build_type_psymtabs_1): Use cutu_reader.
13894 (process_skeletonless_type_unit): Likewise.
13895 (load_partial_comp_unit_reader): Remove.
13896 (load_partial_comp_unit): Use cutu_reader.
13897 (load_full_comp_unit_reader): Remove.
13898 (load_full_comp_unit): Use cutu_reader.
13899 (struct create_dwo_cu_data): Remove.
13900 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13901 dwo_unit parameters.
13902 (create_cus_hash_table): Use cutu_reader.
13903 (struct dwarf2_read_addr_index_data): Remove.
13904 (dwarf2_read_addr_index_reader): Remove.
13905 (dwarf2_read_addr_index): Use cutu_reader.
13906 (read_signatured_type_reader): Remove.
13907 (read_signatured_type): Use cutu_reader.
13908
45bbae5c
TT
139092020-01-19 Tom Tromey <tom@tromey.com>
13910
13911 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13912 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13913 (tui_wrefresh): Declare.
13914 * tui/tui-wingeneral.c (suppress_output): New global.
13915 (tui_suppress_output, ~tui_suppress_output): New constructor and
13916 destructor.
13917 (tui_wrefresh): New function.
13918 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13919 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13920 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13921 method.
13922 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13923 tui_wrefresh.
13924 (tui_data_window::no_refresh): New method.
13925 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13926 (tui_reg_command): Use tui_suppress_output
13927 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13928 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13929 method.
13930 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13931
4f13c1c0
TT
139322020-01-19 Tom Tromey <tom@tromey.com>
13933
13934 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13935 Handle case where symtab is null.
13936
fa47e446
SM
139372020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13938
13939 * linux-fork.c (one_fork_p): Simplify.
13940
26f42329
SM
139412020-01-17 Simon Marchi <simon.marchi@efficios.com>
13942
13943 * top.c (struct qt_args): Remove.
13944 (kill_or_detach): Change return type to void, replace `void *`
13945 parameter with a proper one.
13946 (print_inferior_quit_action): Likewise.
13947 (quit_confirm): Use range-based for loop to iterate over inferiors.
13948 (quit_force): Likewise.
13949
a9ac81b1
SM
139502020-01-17 Simon Marchi <simon.marchi@efficios.com>
13951
13952 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13953 `void *` parameter with proper parameters.
13954 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13955 (print_one_inferior): Change return type to void, replace `void *`
13956 parameter with proper parameters.
13957 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13958 inferiors.
13959 (get_other_inferior): Remove.
13960 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13961 inferiors.
13962
788eca49
SM
139632020-01-17 Simon Marchi <simon.marchi@efficios.com>
13964
13965 * mi/mi-interp.c (report_initial_inferior): Remove.
13966 (mi_interp::init): Use range-based for to iterate over inferiors.
13967
d9bc85b6
SM
139682020-01-17 Simon Marchi <simon.marchi@efficios.com>
13969
13970 * python/py-inferior.c (build_inferior_list): Remove.
13971 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13972
40c94099
CB
139732020-01-16 Christian Biesinger <cbiesinger@google.com>
13974
13975 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13976 (btrace_stitch_trace): Likewise.
13977 * charset.c (intermediate_encoding): Likewise (vaild).
13978 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13979 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13980 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13981
e0cdfe3c
HD
139822020-01-16 Hannes Domani <ssbssa@yahoo.de>
13983
13984 * windows-tdep.c (windows_get_tlb_type):
13985 Add rtl_user_process_parameters type.
13986
790f1718 139872020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 13988 Norbert Lange <nolange79@gmail.com>
790f1718
PA
13989
13990 PR build/24805
13991 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13992 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13993 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13994 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13995 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13996 (ps_plog): Redeclare exported functions with default visibility.
13997
3112ed97
NA
139982020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13999
14000 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14001 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14002
8dc3273e
SM
140032020-01-15 Simon Marchi <simon.marchi@efficios.com>
14004
14005 * infcmd.c (post_create_inferior): Use get_thread_regcache
14006 instead of get_current_regcache.
14007
ff47f4f0
TT
140082020-01-14 Tom Tromey <tom@tromey.com>
14009
14010 PR symtab/12535:
14011 * python/python.c (gdbpy_decode_line): Treat empty string the same
14012 as no argument.
14013
975f45b7
TT
140142020-01-14 Tom Tromey <tom@tromey.com>
14015
14016 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14017
25e57356
TT
140182020-01-14 Tom Tromey <tom@tromey.com>
14019
14020 * nat/linux-btrace.c: Don't include <config.h>.
14021 * nat/linux-ptrace.c: Don't include <config.h>.
14022 * nat/x86-linux-dregs.c: Don't include <config.h>.
14023
05ea2a05
TT
140242020-01-14 Tom Tromey <tom@tromey.com>
14025
14026 * configure: Rebuild.
14027 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14028
01027315
TT
140292020-01-14 Tom Tromey <tom@tromey.com>
14030
14031 * nat/x86-linux-dregs.c: Include configh.h.
14032 * nat/linux-ptrace.c: Include configh.h.
14033 * nat/linux-btrace.c: Include configh.h.
14034 * defs.h: Include config.h, bfd.h.
14035 * configure.ac: Don't source common.host.
14036 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14037 * configure: Rebuild.
14038 * acinclude.m4: Update path.
14039 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14040 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14041 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14042 (CLIBS): Add LIBSUPPORT.
14043 (CDEPS): Likewise.
14044 (COMMON_SFILES): Remove gdbsupport files.
14045 (HFILES_NO_SRCDIR): Likewise.
14046 (stamp-version): Update path to create-version.sh.
14047 (ALLDEPFILES): Remove gdbsupport files.
14048
b2ceabe8
TT
140492020-01-14 Tom Tromey <tom@tromey.com>
14050
14051 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14052 USE_WIN32API when needed.
14053 * configure.ac (USE_WIN32API): Don't define.
14054 (WIN32LIBS): Use WIN32APILIBS.
14055 * configure: Rebuild.
14056
25c51f71
TT
140572020-01-14 Tom Tromey <tom@tromey.com>
14058
14059 * configure: Rebuild.
14060 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14061
717c684d
BE
140622020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14063
14064 * skip.c (skip_function_command): Make skip w/o arguments use the
14065 name of the inlined function if pc is inside any inlined function.
14066
7da6a5b9
LM
140672020-01-14 Luis Machado <luis.machado@linaro.org>
14068
14069 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14070 * infrun.c (resume_1): Likewise.
14071 (handle_inferior_event): Remove stale comment.
14072 * linux-nat.c (linux_nat_target::resume): Update comments.
14073 (save_stop_reason): Likewise.
14074 (linux_nat_filter_event): Likewise.
14075 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14076
44e4c775
AB
140772020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14078
14079 * elfread.c (record_minimal_symbol): Set section index to 0 for
14080 non-allocatable sections.
14081
18a8505e
AT
14082
140832020-01-13 Ali Tamur <tamur@google.com>
14084
14085 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14086 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14087 to gdb::optional. Update comments.
14088 (dwo_file): Update comments.
14089 (read_attribute): Update API to take an additional out parameter,
14090 need_reprocess. This is used to mark attributes that need other
14091 attributes (e.g. str_offsets_base) for correct computation which may not
14092 have been read yet.
14093 (read_attribute_reprocess): New function declaration.
14094 (read_addr_index): Likewise.
14095 (read_dwo_str_index): Likewise.
14096 (read_stub_str_index): Likewise.
14097 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14098 (lookup_addr_base): New function definition.
14099 (lookup_ranges_base): Likewise.
14100 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14101 lookup_ranges_base.
14102 (init_cutu_and_read_dies): Update comments.
14103 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14104 unit. This is used to inherit parent's str_offsets_base and addr_base.
14105 Update comments.
14106 (init_cutu_and_read_dies_simple): Reflect API changes.
14107 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14108 (create_cus_hash_table): Change API to take parent compile unit.
14109 Reflect API changes.
14110 (open_and_init_dwo_file): Reflect API changes.
14111 (dwarf2_get_pc_bounds): Update comments.
14112 (dwarf2_record_block_ranges): Likewise.
14113 (read_full_die_1): Change implementation to reprocess attributes that
14114 need str_offsets_base and addr_base.
14115 (partial_die_info::read): Likewise.
14116 (read_attribute_reprocess): New function definition.
14117 (read_attribute_value): Change API to take an additional out parameter,
14118 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14119 when a non-dwo compile unit has index based attributes.
14120 (read_attribute): Reflect API changes.
14121 (read_addr_index_1): Reflect API changes. Update comments.
14122 (dwarf2_read_addr_index_data): Reflect API changes.
14123 (dwarf2_read_addr_index): Likewise.
14124 (read_str_index): Change API and implementation. This becomes a helper
14125 to be used by the new string index related methods. Update error
14126 message and comments.
14127 (read_dwo_str_index): New function definition.
14128 (read_stub_str_index): Likewise.
14129 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14130 * symfile.h (dwarf2_debug_sections): Likewise.
14131 * xcoffread.c (dwarf2_debug_sections): Likewise.
14132
0cac9354
SM
141332020-01-13 Simon Marchi <simon.marchi@efficios.com>
14134
14135 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14136 core_reg_sect type to gdb_byte *.
14137 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14138 * cris-tdep.c (fetch_core_registers): Likewise.
14139 * corelow.c (core_target::get_core_register_section): Change
14140 type of `contents` to gdb::byte_vector.
14141
9a6d629c
AB
141422020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14143
14144 * tui/tui-wingeneral.c (box_win): Position the title in the center
14145 of the border.
14146
d8b2f9e3
SM
141472020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14148
14149 * corelow.c (core_target::get_core_register_section): Use
14150 std::vector instead of alloca.
14151
bb564c58
SM
141522020-01-13 Simon Marchi <simon.marchi@efficios.com>
14153
14154 * warning.m4: Add -Wmissing-declarations to build_warnings.
14155 * configure: Re-generate.
14156
6b366111
SM
141572020-01-13 Simon Marchi <simon.marchi@efficios.com>
14158
14159 * python/python.c (init__gdb_module): Add declaration.
14160
6c265988
SM
141612020-01-13 Simon Marchi <simon.marchi@efficios.com>
14162
14163 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14164 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14165 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14166 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14167 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14168 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14169 * ada-exp.y (_initialize_ada_exp): Add declaration.
14170 * ada-lang.c (_initialize_ada_language): Add declaration.
14171 * ada-tasks.c (_initialize_tasks): Add declaration.
14172 * agent.c (_initialize_agent): Add declaration.
14173 * aix-thread.c (_initialize_aix_thread): Add declaration.
14174 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14175 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14176 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14177 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14178 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14179 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14180 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14181 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14182 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14183 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14184 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14185 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14186 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14187 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14188 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14189 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14190 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14191 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14192 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14193 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14194 * annotate.c (_initialize_annotate): Add declaration.
14195 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14196 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14197 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14198 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14199 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14200 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14201 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14202 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14203 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14204 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14205 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14206 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14207 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14208 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14209 * auto-load.c (_initialize_auto_load): Add declaration.
14210 * auxv.c (_initialize_auxv): Add declaration.
14211 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14212 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14213 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14214 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14215 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14216 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14217 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14218 * breakpoint.c (_initialize_breakpoint): Add declaration.
14219 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14220 * btrace.c (_initialize_btrace): Add declaration.
14221 * charset.c (_initialize_charset): Add declaration.
14222 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14223 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14224 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14225 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14226 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14227 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14228 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14229 * coffread.c (_initialize_coffread): Add declaration.
14230 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14231 * compile/compile.c (_initialize_compile): Add declaration.
14232 * complaints.c (_initialize_complaints): Add declaration.
14233 * completer.c (_initialize_completer): Add declaration.
14234 * copying.c (_initialize_copying): Add declaration.
14235 * corefile.c (_initialize_core): Add declaration.
14236 * corelow.c (_initialize_corelow): Add declaration.
14237 * cp-abi.c (_initialize_cp_abi): Add declaration.
14238 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14239 * cp-support.c (_initialize_cp_support): Add declaration.
14240 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14241 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14242 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14243 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14244 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14245 * ctfread.c (_initialize_ctfread): Add declaration.
14246 * d-lang.c (_initialize_d_language): Add declaration.
14247 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14248 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14249 * dbxread.c (_initialize_dbxread): Add declaration.
14250 * dcache.c (_initialize_dcache): Add declaration.
14251 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14252 * disasm.c (_initialize_disasm): Add declaration.
14253 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14254 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14255 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14256 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14257 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14258 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14259 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14260 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14261 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14262 * elfread.c (_initialize_elfread): Add declaration.
14263 * exec.c (_initialize_exec): Add declaration.
14264 * extension.c (_initialize_extension): Add declaration.
14265 * f-lang.c (_initialize_f_language): Add declaration.
14266 * f-valprint.c (_initialize_f_valprint): Add declaration.
14267 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14268 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14269 * filesystem.c (_initialize_filesystem): Add declaration.
14270 * findcmd.c (_initialize_mem_search): Add declaration.
14271 * findvar.c (_initialize_findvar): Add declaration.
14272 * fork-child.c (_initialize_fork_child): Add declaration.
14273 * frame-base.c (_initialize_frame_base): Add declaration.
14274 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14275 * frame.c (_initialize_frame): Add declaration.
14276 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14277 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14278 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14279 * gcore.c (_initialize_gcore): Add declaration.
14280 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14281 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14282 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14283 * gdbarch.c (_initialize_gdbarch): Add declaration.
14284 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14285 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14286 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14287 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14288 * go-lang.c (_initialize_go_language): Add declaration.
14289 * go32-nat.c (_initialize_go32_nat): Add declaration.
14290 * guile/guile.c (_initialize_guile): Add declaration.
14291 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14292 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14293 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14294 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14295 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14296 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14297 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14298 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14299 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14300 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14301 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14302 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14303 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14304 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14305 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14306 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14307 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14308 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14309 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14310 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14311 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14312 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14313 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14314 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14315 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14316 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14317 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14318 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14319 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14320 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14321 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14322 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14323 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14324 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14325 * infcall.c (_initialize_infcall): Add declaration.
14326 * infcmd.c (_initialize_infcmd): Add declaration.
14327 * inflow.c (_initialize_inflow): Add declaration.
14328 * infrun.c (_initialize_infrun): Add declaration.
14329 * interps.c (_initialize_interpreter): Add declaration.
14330 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14331 * jit.c (_initialize_jit): Add declaration.
14332 * language.c (_initialize_language): Add declaration.
14333 * linux-fork.c (_initialize_linux_fork): Add declaration.
14334 * linux-nat.c (_initialize_linux_nat): Add declaration.
14335 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14336 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14337 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14338 * m2-lang.c (_initialize_m2_language): Add declaration.
14339 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14340 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14341 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14342 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14343 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14344 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14345 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14346 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14347 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14348 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14349 * machoread.c (_initialize_machoread): Add declaration.
14350 * macrocmd.c (_initialize_macrocmd): Add declaration.
14351 * macroscope.c (_initialize_macroscope): Add declaration.
14352 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14353 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14354 * maint.c (_initialize_maint_cmds): Add declaration.
14355 * mdebugread.c (_initialize_mdebugread): Add declaration.
14356 * memattr.c (_initialize_mem): Add declaration.
14357 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14358 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14359 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14360 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14361 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14362 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14363 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14364 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14365 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14366 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14367 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14368 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14369 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14370 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14371 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14372 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14373 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14374 * mipsread.c (_initialize_mipsread): Add declaration.
14375 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14376 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14377 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14378 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14379 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14380 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14381 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14382 * nto-procfs.c (_initialize_procfs): Add declaration.
14383 * objc-lang.c (_initialize_objc_language): Add declaration.
14384 * observable.c (_initialize_observer): Add declaration.
14385 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14386 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14387 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14388 * osabi.c (_initialize_gdb_osabi): Add declaration.
14389 * osdata.c (_initialize_osdata): Add declaration.
14390 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14391 * parse.c (_initialize_parse): Add declaration.
14392 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14393 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14394 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14395 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14396 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14397 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14398 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14399 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14400 * printcmd.c (_initialize_printcmd): Add declaration.
14401 * probe.c (_initialize_probe): Add declaration.
14402 * proc-api.c (_initialize_proc_api): Add declaration.
14403 * proc-events.c (_initialize_proc_events): Add declaration.
14404 * proc-service.c (_initialize_proc_service): Add declaration.
14405 * procfs.c (_initialize_procfs): Add declaration.
14406 * producer.c (_initialize_producer): Add declaration.
14407 * psymtab.c (_initialize_psymtab): Add declaration.
14408 * python/python.c (_initialize_python): Add declaration.
14409 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14410 * record-btrace.c (_initialize_record_btrace): Add declaration.
14411 * record-full.c (_initialize_record_full): Add declaration.
14412 * record.c (_initialize_record): Add declaration.
14413 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14414 * regcache.c (_initialize_regcache): Add declaration.
14415 * reggroups.c (_initialize_reggroup): Add declaration.
14416 * remote-notif.c (_initialize_notif): Add declaration.
14417 * remote-sim.c (_initialize_remote_sim): Add declaration.
14418 * remote.c (_initialize_remote): Add declaration.
14419 * reverse.c (_initialize_reverse): Add declaration.
14420 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14421 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14422 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14423 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14424 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14425 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14426 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14427 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14428 Add declaration.
14429 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14430 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14431 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14432 * rust-exp.y (_initialize_rust_exp): Add declaration.
14433 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14434 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14435 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14436 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14437 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14438 * score-tdep.c (_initialize_score_tdep): Add declaration.
14439 * ser-go32.c (_initialize_ser_dos): Add declaration.
14440 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14441 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14442 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14443 * ser-uds.c (_initialize_ser_socket): Add declaration.
14444 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14445 * serial.c (_initialize_serial): Add declaration.
14446 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14447 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14448 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14449 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14450 * skip.c (_initialize_step_skip): Add declaration.
14451 * sol-thread.c (_initialize_sol_thread): Add declaration.
14452 * solib-aix.c (_initialize_solib_aix): Add declaration.
14453 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14454 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14455 * solib-frv.c (_initialize_frv_solib): Add declaration.
14456 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14457 * solib-target.c (_initialize_solib_target): Add declaration.
14458 * solib.c (_initialize_solib): Add declaration.
14459 * source-cache.c (_initialize_source_cache): Add declaration.
14460 * source.c (_initialize_source): Add declaration.
14461 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14462 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14463 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14464 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14465 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14466 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14467 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14468 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14469 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14470 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14471 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14472 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14473 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14474 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14475 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14476 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14477 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14478 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14479 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14480 * stabsread.c (_initialize_stabsread): Add declaration.
14481 * stack.c (_initialize_stack): Add declaration.
14482 * stap-probe.c (_initialize_stap_probe): Add declaration.
14483 * std-regs.c (_initialize_frame_reg): Add declaration.
14484 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14485 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14486 * symfile.c (_initialize_symfile): Add declaration.
14487 * symmisc.c (_initialize_symmisc): Add declaration.
14488 * symtab.c (_initialize_symtab): Add declaration.
14489 * target.c (_initialize_target): Add declaration.
14490 * target-connection.c (_initialize_target_connection): Add
14491 declaration.
14492 * target-dcache.c (_initialize_target_dcache): Add declaration.
14493 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14494 * thread.c (_initialize_thread): Add declaration.
14495 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14496 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14497 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14498 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14499 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14500 * tracectf.c (_initialize_ctf): Add declaration.
14501 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14502 * tracefile.c (_initialize_tracefile): Add declaration.
14503 * tracepoint.c (_initialize_tracepoint): Add declaration.
14504 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14505 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14506 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14507 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14508 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14509 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14510 * tui/tui.c (_initialize_tui): Add declaration.
14511 * typeprint.c (_initialize_typeprint): Add declaration.
14512 * ui-style.c (_initialize_ui_style): Add declaration.
14513 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14514 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14515 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14516 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14517 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14518 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14519 * unittests/filtered_iterator-selftests.c
14520 (_initialize_filtered_iterator_selftests): Add declaration.
14521 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14522 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14523 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14524 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14525 * unittests/main-thread-selftests.c
14526 (_initialize_main_thread_selftests): Add declaration.
14527 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14528 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14529 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14530 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14531 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14532 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14533 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14534 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14535 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14536 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14537 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14538 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14539 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14540 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14541 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14542 declaration.
14543 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14544 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14545 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14546 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14547 * user-regs.c (_initialize_user_regs): Add declaration.
14548 * utils.c (_initialize_utils): Add declaration.
14549 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14550 * valops.c (_initialize_valops): Add declaration.
14551 * valprint.c (_initialize_valprint): Add declaration.
14552 * value.c (_initialize_values): Add declaration.
14553 * varobj.c (_initialize_varobj): Add declaration.
14554 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14555 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14556 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14557 * windows-nat.c (_initialize_windows_nat): Add declaration.
14558 (_initialize_check_for_gdb_ini): Add declaration.
14559 (_initialize_loadable): Add declaration.
14560 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14561 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14562 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14563 * xcoffread.c (_initialize_xcoffread): Add declaration.
14564 * xml-support.c (_initialize_xml_support): Add declaration.
14565 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14566 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14567 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14568 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14569
e2de1eec
SM
145702020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14571
14572 * regformats/regdat.sh: Generate declaration for init function.
14573
e0037b4c
SM
145742020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14575
14576 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14577 up.
14578 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14579 close_one_inferior>: New methods.
14580 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14581 pass down target to find_inferior_pid.
14582 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14583 Pass down target to find_inferior_ptid.
14584 (gdbsim_target::create_inferior): Pass down target to
14585 add_thread_silent.
14586 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14587 target down to find_inferior_ptid and switch_to_thread.
14588 (gdbsim_target::close): Update to call close_one_inferior.
14589 (struct resume_data): Remove.
14590 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14591 directly, rather than through a void pointer.
14592 (gdbsim_target::resume): Update to call resume_one_inferior.
14593
58920b5b
SM
145942020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14595
14596 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14597
4ec89149
PA
145982020-01-12 Pedro Alves <palves@redhat.com>
14599
14600 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14601 directly for the current inferior instead of
14602 discard_all_inferiors.
14603 (discard_all_inferiors): Delete.
14604
7c392d1d
TT
146052020-01-11 Tom Tromey <tom@tromey.com>
14606
14607 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14608 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14609 deprecated_safe_get_selected_frame.
14610
d9ebdab7
TBA
146112020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14612
14613 * inferior.c (print_inferior): Switch inferior before printing it.
14614
f3c469b9
PA
146152020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14616 Pedro Alves <palves@redhat.com>
14617
14618 * progspace-and-thread.c (switch_to_program_space_and_thread):
14619 Assert there's an inferior for PSPACE. Use
14620 switch_to_inferior_no_thread to switch the inferior too.
14621 * progspace.c (program_space::~program_space): Call
14622 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14623 (program_space::free_all_objfiles): Don't call clear_symtab_users
14624 here.
14625 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14626
65c574f6
PA
146272020-01-10 Pedro Alves <palves@redhat.com>
14628
14629 * NEWS: Mention multi-target debugging, "info connections", and
14630 "add-inferior -no-connection".
14631
2f4fcf00
PA
146322020-01-10 Pedro Alves <palves@redhat.com>
14633
14634 * infrun.c: Include "target-connection.h".
14635 (check_multi_target_resumption): New.
14636 (proceed): Call it.
14637 * target-connection.c (make_target_connection_string): Make
14638 extern.
14639 * target-connection.h (make_target_connection_string): Declare.
14640
121b3efd
PA
146412020-01-10 Pedro Alves <palves@redhat.com>
14642
14643 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14644 * inferior.c (uiout_field_connection): New function.
14645 (print_inferior): Add new "connection-id" column.
14646 (add_inferior_command): Show connection number/string of added
14647 inferior.
14648 * process-stratum-target.h
14649 (process_stratum_target::connection_string): New virtual method.
14650 (process_stratum_target::connection_number): New field.
14651 * remote.c (remote_target::connection_string): New override.
14652 * target-connection.c: New file.
14653 * target-connection.h: New file.
14654 * target.c (decref_target): Remove process_stratum targets from
14655 the connection list.
14656 (target_stack::push): Add process_stratum targets to the
14657 connection list.
14658
4f837581
PA
146592020-01-10 Pedro Alves <palves@redhat.com>
14660
14661 Revert:
14662 2016-04-12 Pedro Alves <palves@redhat.com>
14663 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14664 Remove references to name.
14665 * serial.h (struct serial) <name>: Delete.
14666
f4ec508e
PA
146672020-01-10 Pedro Alves <palves@redhat.com>
14668
14669 * gdbarch-selftests.c (register_to_value_test): Remove "target
14670 already pushed" check.
14671
5b6d1e4f
PA
146722020-01-10 Pedro Alves <palves@redhat.com>
14673 John Baldwin <jhb@FreeBSD.org>
14674
14675 * aarch64-linux-nat.c
14676 (aarch64_linux_nat_target::thread_architecture): Adjust.
14677 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14678 (task_command_1): Likewise.
14679 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14680 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14681 (aix_thread_target::store_registers)
14682 (aix_thread_target::thread_alive): Adjust.
14683 * amd64-fbsd-tdep.c: Include "inferior.h".
14684 (amd64fbsd_get_thread_local_address): Pass down target.
14685 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14686 thread's gdbarch instead of target_gdbarch.
14687 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14688 get_last_target_status.
14689 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14690 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14691 inferiors.
14692 (update_inserted_breakpoint_locations): Skip if inferiors with no
14693 execution.
14694 (update_global_location_list): When handling moribund locations,
14695 find representative inferior for location's pspace, and use thread
14696 count of its process_stratum target.
14697 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14698 * bsd-uthread.c (bsd_uthread_target::wait): Use
14699 as_process_stratum_target and adjust thread_change_ptid and
14700 add_thread calls.
14701 (bsd_uthread_target::update_thread_list): Use
14702 as_process_stratum_target and adjust find_thread_ptid,
14703 thread_change_ptid and add_thread calls.
14704 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14705 find_thread_ptid call.
14706 * corelow.c (add_to_thread_list): Adjust add_thread call.
14707 (core_target_open): Adjust add_thread_silent and thread_count
14708 calls.
14709 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14710 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14711 * event-top.c (async_disconnect): Pop targets from all inferiors.
14712 * exec.c (add_target_sections): Push exec target on all inferiors
14713 sharing the program space.
14714 (remove_target_sections): Remove the exec target from all
14715 inferiors sharing the program space.
14716 (exec_on_vfork): New.
14717 * exec.h (exec_on_vfork): Declare.
14718 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14719 Pass it down.
14720 (fbsd_nat_target::update_thread_list): Adjust.
14721 (fbsd_nat_target::resume): Adjust.
14722 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14723 down.
14724 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14725 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14726 get_thread_arch_regcache call.
14727 * fork-child.c (gdb_startup_inferior): Pass target down to
14728 startup_inferior and set_executing.
14729 * gdbthread.h (struct process_stratum_target): Forward declare.
14730 (add_thread, add_thread_silent, add_thread_with_info)
14731 (in_thread_list): Add process_stratum_target parameter.
14732 (find_thread_ptid(inferior*, ptid_t)): New overload.
14733 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14734 parameter.
14735 (all_threads()): Delete overload.
14736 (all_threads, all_non_exited_threads): Add process_stratum_target
14737 parameter.
14738 (all_threads_safe): Use brace initialization.
14739 (thread_count): Add process_stratum_target parameter.
14740 (set_resumed, set_running, set_stop_requested, set_executing)
14741 (threads_are_executing, finish_thread_state): Add
14742 process_stratum_target parameter.
14743 (switch_to_thread): Use is_current_thread.
14744 * i386-fbsd-tdep.c: Include "inferior.h".
14745 (i386fbsd_get_thread_local_address): Pass down target.
14746 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14747 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14748 have_inferiors check.
14749 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14750 (inf_ptrace_target::attach): Adjust.
14751 * infcall.c (run_inferior_call): Adjust.
14752 * infcmd.c (run_command_1): Pass target to
14753 scoped_finish_thread_state.
14754 (proceed_thread_callback): Skip inferiors with no execution.
14755 (continue_command): Rename 'all_threads' local to avoid hiding
14756 'all_threads' function. Adjust get_last_target_status call.
14757 (prepare_one_step): Adjust set_running call.
14758 (signal_command): Use user_visible_resume_target. Compare thread
14759 pointers instead of inferior_ptid.
14760 (info_program_command): Adjust to pass down target.
14761 (attach_command): Mark target's 'thread_executing' flag.
14762 (stop_current_target_threads_ns): New, factored out from ...
14763 (interrupt_target_1): ... this. Switch inferior before making
14764 target calls.
14765 * inferior-iter.h
14766 (struct all_inferiors_iterator, struct all_inferiors_range)
14767 (struct all_inferiors_safe_range)
14768 (struct all_non_exited_inferiors_range): Filter on
14769 process_stratum_target too. Remove explicit.
14770 * inferior.c (inferior::inferior): Push dummy target on target
14771 stack.
14772 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14773 Add process_stratum_target parameter, and pass it down.
14774 (have_live_inferiors): Adjust.
14775 (switch_to_inferior_and_push_target): New.
14776 (add_inferior_command, clone_inferior_command): Handle
14777 "-no-connection" parameter. Use
14778 switch_to_inferior_and_push_target.
14779 (_initialize_inferior): Mention "-no-connection" option in
14780 the help of "add-inferior" and "clone-inferior" commands.
14781 * inferior.h: Include "process-stratum-target.h".
14782 (interrupt_target_1): Use bool.
14783 (struct inferior) <push_target, unpush_target, target_is_pushed,
14784 find_target_beneath, top_target, process_target, target_at,
14785 m_stack>: New.
14786 (discard_all_inferiors): Delete.
14787 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14788 (all_inferiors, all_non_exited_inferiors): Add
14789 process_stratum_target parameter.
14790 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14791 (target_last_proc_target): New global.
14792 (follow_fork_inferior): Push target on new inferior. Pass target
14793 to add_thread_silent. Call exec_on_vfork. Handle target's
14794 reference count.
14795 (follow_fork): Adjust get_last_target_status call. Also consider
14796 target.
14797 (follow_exec): Push target on new inferior.
14798 (struct execution_control_state) <target>: New field.
14799 (user_visible_resume_target): New.
14800 (do_target_resume): Call target_async.
14801 (resume_1): Set target's threads_executing flag. Consider resume
14802 target.
14803 (commit_resume_all_targets): New.
14804 (proceed): Also consider resume target. Skip threads of inferiors
14805 with no execution. Commit resumtion in all targets.
14806 (start_remote): Pass current inferior to wait_for_inferior.
14807 (infrun_thread_stop_requested): Consider target as well. Pass
14808 thread_info pointer to clear_inline_frame_state instead of ptid.
14809 (infrun_thread_thread_exit): Consider target as well.
14810 (random_pending_event_thread): New inferior parameter. Use it.
14811 (do_target_wait): Rename to ...
14812 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14813 down.
14814 (threads_are_resumed_pending_p, do_target_wait): New.
14815 (prepare_for_detach): Adjust calls.
14816 (wait_for_inferior): New inferior parameter. Handle it. Use
14817 do_target_wait_1 instead of do_target_wait.
14818 (fetch_inferior_event): Adjust. Switch to representative
14819 inferior. Pass target down.
14820 (set_last_target_status): Add process_stratum_target parameter.
14821 Save target in global.
14822 (get_last_target_status): Add process_stratum_target parameter and
14823 handle it.
14824 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14825 (context_switch): Check inferior_ptid == null_ptid before calling
14826 inferior_thread().
14827 (get_inferior_stop_soon): Pass down target.
14828 (wait_one): Rename to ...
14829 (poll_one_curr_target): ... this.
14830 (struct wait_one_event): New.
14831 (wait_one): New.
14832 (stop_all_threads): Adjust.
14833 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14834 event's target.
14835 (switch_back_to_stepped_thread): Also consider target.
14836 (print_stop_event): Update.
14837 (normal_stop): Update. Also consider the resume target.
14838 * infrun.h (wait_for_inferior): Remove declaration.
14839 (user_visible_resume_target): New declaration.
14840 (get_last_target_status, set_last_target_status): New
14841 process_stratum_target parameter.
14842 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14843 process_stratum_target parameter, and use it.
14844 (clear_inline_frame_state (thread_info*)): New.
14845 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14846 process_stratum_target parameter.
14847 (clear_inline_frame_state (thread_info*)): Declare.
14848 * linux-fork.c (delete_checkpoint_command): Pass target down to
14849 find_thread_ptid.
14850 (checkpoint_command): Adjust.
14851 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14852 instead of just tweaking inferior_ptid.
14853 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14854 (exit_lwp): Pass target down to find_thread_ptid.
14855 (attach_proc_task_lwp_callback): Pass target down to
14856 add_thread/set_running/set_executing.
14857 (linux_nat_target::attach): Pass target down to
14858 thread_change_ptid.
14859 (get_detach_signal): Pass target down to find_thread_ptid.
14860 Consider last target status's target.
14861 (linux_resume_one_lwp_throw, resume_lwp)
14862 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14863 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14864 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14865 (linux_nat_target::async_wait_fd): New.
14866 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14867 target down.
14868 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14869 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14870 * linux-thread-db.c (struct thread_db_info::process_target): New
14871 field.
14872 (add_thread_db_info): Save target.
14873 (get_thread_db_info): New process_stratum_target parameter. Also
14874 match target.
14875 (delete_thread_db_info): New process_stratum_target parameter.
14876 Also match target.
14877 (thread_from_lwp): Adjust to pass down target.
14878 (thread_db_notice_clone): Pass down target.
14879 (check_thread_db_callback): Pass down target.
14880 (try_thread_db_load_1): Always push the thread_db target.
14881 (try_thread_db_load, record_thread): Pass target down.
14882 (thread_db_target::detach): Pass target down. Always unpush the
14883 thread_db target.
14884 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14885 target down. Always unpush the thread_db target.
14886 (find_new_threads_callback, thread_db_find_new_threads_2)
14887 (thread_db_target::update_thread_list): Pass target down.
14888 (thread_db_target::pid_to_str): Pass current inferior down.
14889 (thread_db_target::get_thread_local_address): Pass target down.
14890 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14891 target down.
14892 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14893 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14894 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14895 (procfs_init_inferior): Rename to ...
14896 (procfs_target::procfs_init_inferior): ... this and adjust.
14897 (procfs_target::create_inferior, procfs_notice_thread)
14898 (procfs_do_thread_registers): Adjust.
14899 * ppc-fbsd-tdep.c: Include "inferior.h".
14900 (ppcfbsd_get_thread_local_address): Pass down target.
14901 * proc-service.c (ps_xfer_memory): Switch current inferior and
14902 program space as well.
14903 (get_ps_regcache): Pass target down.
14904 * process-stratum-target.c
14905 (process_stratum_target::thread_address_space)
14906 (process_stratum_target::thread_architecture): Pass target down.
14907 * process-stratum-target.h
14908 (process_stratum_target::threads_executing): New field.
14909 (as_process_stratum_target): New.
14910 * ravenscar-thread.c
14911 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14912 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14913 down.
14914 * record-btrace.c (record_btrace_target::info_record): Adjust.
14915 (record_btrace_target::record_method)
14916 (record_btrace_target::record_is_replaying)
14917 (record_btrace_target::fetch_registers)
14918 (get_thread_current_frame_id, record_btrace_target::resume)
14919 (record_btrace_target::wait, record_btrace_target::stop): Pass
14920 target down.
14921 * record-full.c (record_full_wait_1): Switch to event thread.
14922 Pass target down.
14923 * regcache.c (regcache::regcache)
14924 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14925 process_stratum_target parameter and handle it.
14926 (current_thread_target): New global.
14927 (get_thread_regcache): Add process_stratum_target parameter and
14928 handle it. Switch inferior before calling target method.
14929 (get_thread_regcache): Pass target down.
14930 (get_thread_regcache_for_ptid): Pass target down.
14931 (registers_changed_ptid): Add process_stratum_target parameter and
14932 handle it.
14933 (registers_changed_thread, registers_changed): Pass target down.
14934 (test_get_thread_arch_aspace_regcache): New.
14935 (current_regcache_test): Define a couple local test_target_ops
14936 instances and use them for testing.
14937 (readwrite_regcache): Pass process_stratum_target parameter.
14938 (cooked_read_test, cooked_write_test): Pass mock_target down.
14939 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14940 (get_thread_arch_aspace_regcache): Add process_stratum_target
14941 parameter.
14942 (regcache::target): New method.
14943 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14944 (regcache::registers_changed_ptid): Add process_stratum_target
14945 parameter.
14946 (regcache::m_target): New field.
14947 (registers_changed_ptid): Add process_stratum_target parameter.
14948 * remote.c (remote_state::supports_vCont_probed): New field.
14949 (remote_target::async_wait_fd): New method.
14950 (remote_unpush_and_throw): Add remote_target parameter.
14951 (get_current_remote_target): Adjust.
14952 (remote_target::remote_add_inferior): Push target.
14953 (remote_target::remote_add_thread)
14954 (remote_target::remote_notice_new_inferior)
14955 (get_remote_thread_info): Pass target down.
14956 (remote_target::update_thread_list): Skip threads of inferiors
14957 bound to other targets. (remote_target::close): Don't discard
14958 inferiors. (remote_target::add_current_inferior_and_thread)
14959 (remote_target::process_initial_stop_replies)
14960 (remote_target::start_remote)
14961 (remote_target::remote_serial_quit_handler): Pass down target.
14962 (remote_target::remote_unpush_target): New remote_target
14963 parameter. Unpush the target from all inferiors.
14964 (remote_target::remote_unpush_and_throw): New remote_target
14965 parameter. Pass it down.
14966 (remote_target::open_1): Check whether the current inferior has
14967 execution instead of checking whether any inferior is live. Pass
14968 target down.
14969 (remote_target::remote_detach_1): Pass down target. Use
14970 remote_unpush_target.
14971 (extended_remote_target::attach): Pass down target.
14972 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14973 (remote_target::append_resumption): Pass down target.
14974 (remote_target::append_pending_thread_resumptions)
14975 (remote_target::remote_resume_with_hc, remote_target::resume)
14976 (remote_target::commit_resume): Pass down target.
14977 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14978 (remote_target::interrupt_query)
14979 (remote_target::remove_new_fork_children)
14980 (remote_target::check_pending_events_prevent_wildcard_vcont)
14981 (remote_target::remote_parse_stop_reply)
14982 (remote_target::process_stop_reply): Pass down target.
14983 (first_remote_resumed_thread): New remote_target parameter. Pass
14984 it down.
14985 (remote_target::wait_as): Pass down target.
14986 (unpush_and_perror): New remote_target parameter. Pass it down.
14987 (remote_target::readchar, remote_target::remote_serial_write)
14988 (remote_target::getpkt_or_notif_sane_1)
14989 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14990 down target.
14991 (remote_target::mourn_inferior): Pass down target. Use
14992 remote_unpush_target.
14993 (remote_target::core_of_thread)
14994 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14995 (remote_target::pid_to_exec_file)
14996 (remote_target::thread_handle_to_thread_info): Pass down target.
14997 (remote_target::async_wait_fd): New.
14998 * riscv-fbsd-tdep.c: Include "inferior.h".
14999 (riscv_fbsd_get_thread_local_address): Pass down target.
15000 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15001 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15002 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15003 Adjust.
15004 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15005 * solib-svr4.c (enable_break): Pass down target.
15006 * spu-multiarch.c (parse_spufs_run): Pass down target.
15007 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15008 * target-delegates.c: Regenerate.
15009 * target.c (g_target_stack): Delete.
15010 (current_top_target): Return the current inferior's top target.
15011 (target_has_execution_1): Refer to the passed-in inferior's top
15012 target.
15013 (target_supports_terminal_ours): Check whether the initial
15014 inferior was already created.
15015 (decref_target): New.
15016 (target_stack::push): Incref/decref the target.
15017 (push_target, push_target, unpush_target): Adjust.
15018 (target_stack::unpush): Defref target.
15019 (target_is_pushed): Return bool. Adjust to refer to the current
15020 inferior's target stack.
15021 (dispose_inferior): Delete, and inline parts ...
15022 (target_preopen): ... here. Only dispose of the current inferior.
15023 (target_detach): Hold strong target reference while detaching.
15024 Pass target down.
15025 (target_thread_name): Add assertion.
15026 (target_resume): Pass down target.
15027 (target_ops::beneath, find_target_at): Adjust to refer to the
15028 current inferior's target stack.
15029 (get_dummy_target): New.
15030 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15031 has a thread running.
15032 (initialize_targets): Rename to ...
15033 (_initialize_target): ... this.
15034 * target.h: Include "gdbsupport/refcounted-object.h".
15035 (struct target_ops): Inherit refcounted_object.
15036 (target_ops::shortname, target_ops::longname): Make const.
15037 (target_ops::async_wait_fd): New method.
15038 (decref_target): Declare.
15039 (struct target_ops_ref_policy): New.
15040 (target_ops_ref): New typedef.
15041 (get_dummy_target): Declare function.
15042 (target_is_pushed): Return bool.
15043 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15044 (all_matching_threads_iterator::all_matching_threads_iterator):
15045 Handle filter target.
15046 * thread-iter.h (struct all_matching_threads_iterator, struct
15047 all_matching_threads_range, class all_non_exited_threads_range):
15048 Filter by target too. Remove explicit.
15049 * thread.c (threads_executing): Delete.
15050 (inferior_thread): Pass down current inferior.
15051 (clear_thread_inferior_resources): Pass down thread pointer
15052 instead of ptid_t.
15053 (add_thread_silent, add_thread_with_info, add_thread): Add
15054 process_stratum_target parameter. Use it for thread and inferior
15055 searches.
15056 (is_current_thread): New.
15057 (thread_info::deletable): Use it.
15058 (find_thread_ptid, thread_count, in_thread_list)
15059 (thread_change_ptid, set_resumed, set_running): New
15060 process_stratum_target parameter. Pass it down.
15061 (set_executing): New process_stratum_target parameter. Pass it
15062 down. Adjust reference to 'threads_executing'.
15063 (threads_are_executing): New process_stratum_target parameter.
15064 Adjust reference to 'threads_executing'.
15065 (set_stop_requested, finish_thread_state): New
15066 process_stratum_target parameter. Pass it down.
15067 (switch_to_thread): Also match inferior.
15068 (switch_to_thread): New process_stratum_target parameter. Pass it
15069 down.
15070 (update_threads_executing): Reimplement.
15071 * top.c (quit_force): Pop targets from all inferior.
15072 (gdb_init): Don't call initialize_targets.
15073 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15074 Declare.
15075 (windows_add_thread, windows_delete_thread): Adjust.
15076 (get_windows_debug_event): Rename to ...
15077 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15078 * tracefile-tfile.c (tfile_target_open): Pass down target.
15079 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15080 Forward declare.
15081 (switch_to_thread): Add process_stratum_target parameter.
15082 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15083 parameter. Use it.
15084 (mi_on_resume): Pass target down.
15085 * nat/fork-inferior.c (startup_inferior): Add
15086 process_stratum_target parameter. Pass it down.
15087 * nat/fork-inferior.h (startup_inferior): Add
15088 process_stratum_target parameter.
15089 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15090
75c6c844
PA
150912020-01-10 Pedro Alves <palves@redhat.com>
15092
15093 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15094 directly. Instead find the first thread in the thread list and
15095 use switch_to_thread.
15096
78f2c40a
PA
150972020-01-10 Pedro Alves <palves@redhat.com>
15098
15099 * remote.c (remote_target::remote_add_inferior): Don't bind a
15100 process to the current inferior if the current inferior is already
15101 bound to a process.
15102
e7af6c70
TBA
151032020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15104 Pedro Alves <palves@redhat.com>
15105
15106 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15107 If no process is specified, return null_ptid instead of
15108 inferior_ptid.
15109 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15110 TARGET_WAITKIND_SIGNALLED with no pid.
15111
31ba933e
PA
151122020-01-10 Pedro Alves <palves@redhat.com>
15113
15114 * remote.c (first_remote_resumed_thread): New.
15115 (remote_target::wait_as): Use it as default event_ptid instead of
15116 inferior_ptid.
15117
735fc2ca
PA
151182020-01-10 Pedro Alves <palves@redhat.com>
15119
15120 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15121
c17e02e1
PA
151222020-01-10 Pedro Alves <palves@redhat.com>
15123
15124 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15125 not -1.
15126
ab1ddbcf
PA
151272020-01-10 Pedro Alves <palves@redhat.com>
15128
15129 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15130 ptid to get_last_target_status.
15131 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15132 ptid to get_last_target_status.
15133 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15134 get_last_target_status.
15135 (info_program_command): Don't pass a target_waitstatus to
15136 get_last_target_status.
15137 * infrun.c (init_wait_for_inferior): Use
15138 nullify_last_target_wait_ptid.
15139 (get_last_target_status): Handle nullptr arguments.
15140 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15141 (print_stop_event): Don't pass a ptid to get_last_target_status.
15142 (normal_stop): Don't pass a ptid to get_last_target_status.
15143 * infrun.h (get_last_target_status, set_last_target_status): Move
15144 comments here and update.
15145 (nullify_last_target_wait_ptid): Declare.
15146 * linux-fork.c (fork_load_infrun_state): Remove local extern
15147 declaration of nullify_last_target_wait_ptid.
15148 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15149 to get_last_target_status.
15150
f3f8ece4
PA
151512020-01-10 Pedro Alves <palves@redhat.com>
15152
15153 * gdbthread.h (scoped_restore_current_thread)
15154 <dont_restore, restore, m_dont_restore>: Declare.
15155 * thread.c (thread_alive): Add assertion. Return bool.
15156 (switch_to_thread_if_alive): New.
15157 (prune_threads): Switch inferior/thread.
15158 (print_thread_info_1): Switch thread before calling target methods.
15159 (scoped_restore_current_thread::restore): New, factored out from
15160 ...
15161 (scoped_restore_current_thread::~scoped_restore_current_thread):
15162 ... this.
15163 (scoped_restore_current_thread::scoped_restore_current_thread):
15164 Add assertion.
15165 (thread_apply_all_command, thread_select): Use
15166 switch_to_thread_if_alive.
15167 * infrun.c (proceed, restart_threads, handle_signal_stop)
15168 (switch_back_to_stepped_thread): Switch current thread before
15169 calling target methods.
15170
db2d40f7
PA
151712020-01-10 Pedro Alves <palves@redhat.com>
15172
15173 * inferior.c (switch_to_inferior_no_thread): New function,
15174 factored out from ...
15175 (inferior_command): ... here.
15176 * inferior.h (switch_to_inferior_no_thread): Declare.
15177 * mi/mi-main.c (run_one_inferior): Use
15178 switch_to_inferior_no_thread.
15179
bd420a2d
PA
151802020-01-10 Pedro Alves <palves@redhat.com>
15181
15182 * infcmd.c (kill_command): Remove dead code.
15183
ddf5db90
PA
151842020-01-10 Pedro Alves <palves@redhat.com>
15185
15186 * remote.c (remote_target::mourn_inferior): No longer check
15187 whether the target is running.
15188
5018ce90
PA
151892020-01-10 Pedro Alves <palves@redhat.com>
15190
15191 * corelow.c (core_target::has_execution): Change parameter type to
15192 inferior pointer.
15193 * inferior.c (number_of_live_inferiors): Use
15194 inferior::has_execution instead of target_has_execution_1.
15195 * inferior.h (inferior::has_execution): New.
15196 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15197 inferior::has_execution instead of target_has_execution_1.
15198 * process-stratum-target.c
15199 (process_stratum_target::has_execution): Change parameter type to
15200 inferior pointer. Check the inferior's PID instead of
15201 inferior_ptid.
15202 * process-stratum-target.h
15203 (process_stratum_target::has_execution): Change parameter type to
15204 inferior pointer.
15205 * record-full.c (record_full_core_target::has_execution): Change
15206 parameter type to inferior pointer.
15207 * target.c (target_has_execution_1): Change parameter type to
15208 inferior pointer.
15209 (target_has_execution_current): Adjust.
15210 * target.h (target_ops::has_execution): Change parameter type to
15211 inferior pointer.
15212 (target_has_execution_1): Change parameter type to inferior
15213 pointer. Change return type to bool.
15214 * tracefile.h (tracefile_target::has_execution): Change parameter
15215 type to inferior pointer.
15216
74375d18
PA
152172020-01-10 Pedro Alves <palves@redhat.com>
15218
15219 * exceptions.c (print_flush): Remove current_top_target() check.
15220
acdf84a6
PA
152212020-01-10 Pedro Alves <palves@redhat.com>
15222
15223 * remote.c (show_remote_exec_file): Show the current inferior's
15224 exec-file instead of the command variable's value.
15225
ec506636
PA
152262020-01-10 Pedro Alves <palves@redhat.com>
15227
15228 * record-full.c (record_full_resume_ptid): New global.
15229 (record_full_target::resume): Set it.
15230 (record_full_wait_1): Use record_full_resume_ptid instead of
15231 inferior_ptid.
15232
873657b9
PA
152332020-01-10 Pedro Alves <palves@redhat.com>
15234
15235 * gdbthread.h (scoped_restore_current_thread)
15236 <dont_restore, restore, m_dont_restore>: Declare.
15237 * thread.c (thread_alive): Add assertion. Return bool.
15238 (switch_to_thread_if_alive): New.
15239 (prune_threads): Switch inferior/thread.
15240 (print_thread_info_1): Switch thread before calling target methods.
15241 (scoped_restore_current_thread::restore): New, factored out from
15242 ...
15243 (scoped_restore_current_thread::~scoped_restore_current_thread):
15244 ... this.
15245 (scoped_restore_current_thread::scoped_restore_current_thread):
15246 Add assertion.
15247 (thread_apply_all_command, thread_select): Use
15248 switch_to_thread_if_alive.
15249
7f0ae84c
GB
152502020-01-10 George Barrett <bob@bob131.so>
15251
15252 * stap-probe.c (stap_modify_semaphore): Don't check for null
15253 semaphores.
15254 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15255 for null semaphores.
15256
f5a7c406
AB
152572020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15258
15259 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15260 all source windows, and maintain horizontal scroll status while
15261 doing so.
15262
9ae6bf64
TT
152632020-01-09 Tom Tromey <tom@tromey.com>
15264
15265 PR tui/18932:
15266 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15267 update_source_window, not print_source_lines.
15268
b2efe70c
AB
152692020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15270
15271 * tui/tui.c (tui_enable): Register tui hooks after calling
15272 tui_display_main.
15273
5f23a082
CB
152742020-01-09 Christian Biesinger <cbiesinger@google.com>
15275
15276 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15277
3061113b
SM
152782020-01-08 Simon Marchi <simon.marchi@efficios.com>
15279
15280 * thread.c (print_thread_info_1): Fix indentation.
15281
57d75002
CB
152822020-01-09 Christian Biesinger <cbiesinger@google.com>
15283
15284 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15285 unique_xmalloc_ptr outside the if to always free the demangled name.
15286
6a053cb1
TT
152872020-01-08 Tom Tromey <tromey@adacore.com>
15288
15289 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15290 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15291 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15292 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15293 Remove.
15294 (section_offsets): New typedef.
15295 * symtab.c (fixup_section, get_msymbol_address): Update.
15296 * symmisc.c (dump_msymbols): Update.
15297 * symfile.h (relative_addr_info_to_section_offsets)
15298 (symfile_map_offsets_to_segments): Update.
15299 * symfile.c (build_section_addr_info_from_objfile)
15300 (init_objfile_sect_indices): Update.
15301 (struct place_section_arg): Change type of "offsets".
15302 (place_section): Update.
15303 (relative_addr_info_to_section_offsets): Change type of
15304 "section_offsets". Remove "num_sections" parameter.
15305 (default_symfile_offsets, syms_from_objfile_1)
15306 (set_objfile_default_section_offset): Update.
15307 (reread_symbols): No need to preserve section offsets by hand.
15308 (symfile_map_offsets_to_segments): Change type of "offsets".
15309 * stap-probe.c (relocate_address): Update.
15310 * stabsread.h (process_one_symbol): Update.
15311 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15312 (solib_target_relocate_section_addresses): Update.
15313 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15314 Update.
15315 * solib-frv.c (frv_relocate_main_executable): Update.
15316 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15317 * solib-aix.c (solib_aix_get_section_offsets): Change return
15318 type.
15319 (solib_aix_solib_create_inferior_hook): Update.
15320 * remote.c (remote_target::get_offsets): Update.
15321 * psymtab.c (find_pc_sect_psymtab): Update.
15322 * psympriv.h (struct partial_symbol) <address, text_low,
15323 text_high>: Update.
15324 * objfiles.h (obj_section_offset): Update.
15325 (struct objfile) <section_offsets>: Change type.
15326 <num_sections>: Remove.
15327 (objfile_relocate): Update.
15328 * objfiles.c (entry_point_address_query): Update
15329 (relocate_one_symbol): Change type of "section_offsets".
15330 (objfile_relocate1, objfile_relocate1): Change type of
15331 "new_offsets".
15332 (objfile_rebase1): Update.
15333 * mipsread.c (mipscoff_symfile_read): Update.
15334 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15335 parameter.
15336 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15337 (parse_external, psymtab_to_symtab_1): Update.
15338 * machoread.c (macho_symfile_offsets): Update.
15339 * ia64-tdep.c (ia64_find_unwind_table): Update.
15340 * hppa-tdep.c (read_unwind_info): Update.
15341 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15342 * dwarf2read.c (create_addrmap_from_index)
15343 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15344 (process_psymtab_comp_unit_reader, add_partial_symbol)
15345 (add_partial_subprogram, process_full_comp_unit)
15346 (read_file_scope, read_func_scope, read_lexical_block_scope)
15347 (read_call_site_scope, dwarf2_rnglists_process)
15348 (dwarf2_ranges_process, dwarf2_ranges_read)
15349 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15350 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15351 Update.
15352 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15353 Update.
15354 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15355 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15356 (process_one_symbol): Change type of "section_offsets".
15357 * ctfread.c (get_objfile_text_range): Update.
15358 * coffread.c (coff_symtab_read, enter_linenos)
15359 (process_coff_symbol): Update.
15360 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15361 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15362
456e800a
TT
153632020-01-08 Tom Tromey <tromey@adacore.com>
15364
15365 * dwarf2read.c (parse_macro_definition): Use std::string.
15366 (parse_macro_definition): Likewise.
15367
6dfa2fc2
TT
153682020-01-08 Tom Tromey <tromey@adacore.com>
15369
15370 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15371 (ATTR_ALLOC_CHUNK): Remove.
15372
421d1616
TT
153732020-01-08 Tom Tromey <tromey@adacore.com>
15374
15375 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15376
43816ebc
TT
153772020-01-08 Tom Tromey <tromey@adacore.com>
15378
15379 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15380 (dwarf2_compute_name, open_dwo_file): Likewise.
15381 (process_enumeration_scope): Use std::vector.
15382 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15383 (partial_die_info::fixup, dwarf2_start_subfile)
15384 (guess_full_die_structure_name, dwarf2_name): Likewise.
15385 (determine_prefix): Update.
15386 (guess_full_die_structure_name): Make return type const.
15387 (partial_die_full_name): Return unique_xmalloc_ptr.
15388 (DW_FIELD_ALLOC_CHUNK): Remove.
15389
4212d509
TT
153902020-01-07 Tom Tromey <tromey@adacore.com>
15391
15392 PR build/24937:
15393 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15394
06a6207a
JT
153952020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15396
15397 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15398
153d79c4
AB
153992020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15400
15401 * stack.c (print_frame_info): Move disassemble_next_line code
15402 inside source_print block.
15403
66182876
EZ
154042020-01-06 Eli Zaretskii <eliz@gnu.org>
15405
15406 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15407 gdb/signals.h, as we are now using native signal symbols.
15408
cbfa8581
SV
154092020-01-06 Shahab Vahedi <shahab@synopsys.com>
15410
15411 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15412 overflow by an early check of content vs threshold.
aac66a4c 15413 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
15414 Likewise.
15415
3f602821
EZ
154162020-01-06 Eli Zaretskii <eliz@gnu.org>
15417
15418 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15419
a08c904d
JT
154202020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15421
15422 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15423 export table if no section contains it's RVA.
15424
89a65580
EZ
154252020-01-06 Eli Zaretskii <eliz@gnu.org>
15426
15427 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15428
8b7fcda2
HD
154292020-01-06 Hannes Domani <ssbssa@yahoo.de>
15430
15431 * source.c (print_source_lines_base): Set last_line_listed.
15432
a61b4f69
SV
154332020-01-06 Shahab Vahedi <shahab@synopsys.com>
15434
15435 * tui/tui-disasm.c: Remove trailing spaces.
15436
559e7e50
EZ
154372020-01-06 Eli Zaretskii <eliz@gnu.org>
15438 Pedro Alves <palves@redhat.com>
15439
15440 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15441 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15442 (windows_gdb_signal_to_target): New function, uses the above
15443 enumeration to convert GDB internal signal codes to equivalent
15444 Windows codes.
15445 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15446 * windows-nat.c: Include "gdb_wait.h".
15447 (get_windows_debug_event): Extract the fatal exception from the
15448 exit status and convert to the equivalent Posix signal number.
15449 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15450 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15451 * gdbsupport/gdb_wait.c: New file, implements
15452 windows_status_to_termsig.
15453 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15454 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15455
f2302a34
AB
154562020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15457
15458 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15459 show_layout.
15460
6a5206eb
LM
154612020-01-05 Luis Machado <luis.machado@linaro.org>
15462
15463 * aarch64-linux-nat.c
15464 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15465 and bfd_mach_aarch64.
15466
6ec1d75e
PW
154672020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15468
15469 * ui-file.c (stdio_file::can_emit_style_escape)
15470 (tee_file::can_emit_style_escape): Ensure style is used also on
15471 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15472 to gdb_stdout.
15473 * main.c (set_gdb_data_directory): Use file style to output the
15474 warning that the given pathname is not a directory.
15475 * top.c (show_history_filename, gdb_safe_append_history)
15476 (show_gdb_datadir): Use file style.
15477
44f81a76
HD
154782020-01-03 Hannes Domani <ssbssa@yahoo.de>
15479
15480 * solib-target.c (struct lm_info_target):
15481 Change offsets to be a unique_xmalloc_ptr.
15482 (solib_target_relocate_section_addresses): Update.
15483
25057eb0
HD
154842020-01-03 Hannes Domani <ssbssa@yahoo.de>
15485
15486 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15487
6e2118f5
BE
154882020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15489
15490 * MAINTAINERS (Write After Approval): Add myself.
15491
8133c7dc
LM
154922020-01-02 Luis Machado <luis.machado@linaro.org>
15493
15494 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15495 Cell BE architecture.
15496 * target.h (struct target_ops) <thread_architecture>: Likewise.
15497
48189bec
HD
154982020-01-01 Hannes Domani <ssbssa@yahoo.de>
15499
15500 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15501
ead1063b
HD
155022020-01-01 Hannes Domani <ssbssa@yahoo.de>
15503
15504 * MAINTAINERS (Write After Approval): Add myself.
15505
e5d78223
JB
155062020-01-01 Joel Brobecker <brobecker@adacore.com>
15507
15508 * gdbarch.sh: Update copyright year range of generated files.
15509
b811d2c2
JB
155102020-01-01 Joel Brobecker <brobecker@adacore.com>
15511
15512 Update copyright year range in all GDB files.
15513
5f4def5c
JB
155142020-01-01 Joel Brobecker <brobecker@adacore.com>
15515
15516 * copyright.py: Convert to Python 3.
15517
51fd4002
JB
155182020-01-01 Joel Brobecker <brobecker@adacore.com>
15519
15520 * copyright.py: Adapt after move of gnulib directory from gdb
15521 directory to toplevel directory.
15522
5fb651f2
JB
155232020-01-01 Joel Brobecker <brobecker@adacore.com>
15524
15525 * copyright.py (main): Exit if run from the wrong directory.
15526
5dd8bf88
JB
155272020-01-01 Joel Brobecker <brobecker@adacore.com>
15528
15529 * top.c (print_gdb_version): Change copyright year to 2020.
15530
9f71dacb 155312020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 15532
9f71dacb 15533 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 15534
9f71dacb 15535For older changes see ChangeLog-2019.
c906108c
SS
15536\f
15537Local Variables:
15538mode: change-log
15539left-margin: 8
15540fill-column: 74
15541version-control: never
57da7796 15542coding: utf-8
c906108c 15543End: