1 2020-10-14 Tom de Vries <tdevries@suse.de>
4 * solib.c (solib_contains_address_p): Handle
5 'solib->sections == nullptr'.
7 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
10 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
11 target can't do async.
12 * target.c (target_wait): Assert that we don't pass
13 TARGET_WNOHANG to a target that can't async.
15 2020-10-13 Kamil Rytarowski <n54@gmx.com>
17 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
18 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
19 * alpha-bsd-nat.c: Adjust include.
20 * alpha-bsd-tdep.h: Adjust comment.
21 * alpha-nbsd-tdep.c: Rename to ...
22 * alpha-netbsd-tdep.c: ... this, adjust include.
23 * amd64-nbsd-nat.c: Rename to ...
24 * amd64-netbsd-nat.c: ... this, adjust include.
25 * amd64-nbsd-tdep.c: Rename to ...
26 * amd64-netbsd-tdep.c: ... this, adjust include.
27 * amd64-tdep.h: Adjust include.
28 * arm-nbsd-nat.c: Rename to ...
29 * arm-netbsd-nat.c: ... this, adjust include.
30 * arm-nbsd-tdep.c: Rename to ...
31 * arm-netbsd-tdep.c: ... this, adjust include.
32 * arm-nbsd-tdep.h: Rename to ...
33 * arm-netbsd-tdep.h: ... this, adjust include.
34 * configure.nat: Adjust file lists.
35 * configure.tgt: Likewise.
36 * hppa-nbsd-nat.c: Rename to ...
37 * hppa-netbsd-nat.c: ... this, adjust include.
38 * hppa-nbsd-tdep.c: Rename to ...
39 * hppa-netbsd-tdep.c: ... this, adjust include.
40 * i386-nbsd-nat.c: Rename to ...
41 * i386-netbsd-nat.c: ... this, adjust include.
42 * i386-nbsd-tdep.c: Rename to ...
43 * i386-netbsd-tdep.c: ... this, adjust include.
44 * m68k-bsd-nat.c: Adjust include.
45 * mips-nbsd-nat.c: Rename to ...
46 * mips-netbsd-nat.c: ... this, adjust include.
47 * mips-nbsd-tdep.c: Rename to ...
48 * mips-netbsd-tdep.c: ... this, adjust include.
49 * mips-nbsd-tdep.h: Rename to ...
50 * mips-netbsd-tdep.h: ... this.
51 * nbsd-nat.c: Rename to ...
52 * netbsd-nat.c: ... this, adjust include.
53 * nbsd-nat.h: Rename to ...
54 * netbsd-nat.h: ... this, adjust include.
55 * nbsd-tdep.c: Rename to ...
56 * netbsd-tdep.c: ... this, adjust include.
57 * nbsd-tdep.h: Rename to ...
58 * netbsd-tdep.h: ... this.
59 * ppc-nbsd-nat.c: Rename to ...
60 * ppc-netbsd-nat.c: ... this, adjust include.
61 * ppc-nbsd-tdep.c: Rename to ...
62 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
63 * ppc-nbsd-tdep.h: Rename to ...
64 * ppc-netbsd-tdep.h: ... this.
65 * sh-nbsd-nat.c: Rename to ...
66 * sh-netbsd-nat.c: ... this, adjust include.
67 * sh-nbsd-tdep.c: Rename to ...
68 * sh-netbsd-tdep.c: ... this, adjust include.
69 * sparc-nbsd-nat.c: Rename to ...
70 * sparc-netbsd-nat.c: ... this.
71 * sparc-nbsd-tdep.c: Rename to ...
72 * sparc-netbsd-tdep.c: ... this, adjust include.
73 * sparc64-nbsd-nat.c: Rename to ...
74 * sparc64-netbsd-nat.c: ... this.
75 * sparc64-nbsd-tdep.c: Rename to ...
76 * sparc64-netbsd-tdep.c: ... this, adjust include.
77 * sparc64-tdep.h: Adjust comment.
78 * vax-bsd-nat.c: Adjust include.
79 * vax-nbsd-tdep.c: Rename to ...
80 * vax-netbsd-tdep.c: ... this, adjust include.
82 2020-10-12 Tom Tromey <tom@tromey.com>
84 * target.h (struct target_ops) <get_section_table>: Update.
85 (target_get_section_table): Update.
86 * target.c (target_get_section_table, target_section_by_addr)
87 (memory_xfer_partial_1): Update.
88 * target-section.h (target_section_table): Now an alias.
89 * target-delegates.c: Rebuild.
90 * target-debug.h (target_debug_print_target_section_table_p):
91 Rename from target_debug_print_struct_target_section_table_p.
92 * symfile.c (build_section_addr_info_from_section_table): Update.
93 * solib.c (solib_map_sections, solib_contains_address_p): Update.
94 * solib-svr4.c (scan_dyntag): Update.
95 * solib-dsbt.c (scan_dyntag): Update.
96 * remote.c (remote_target::remote_xfer_live_readonly_partial):
98 * record-full.c (record_full_core_target::xfer_partial): Update.
99 * progspace.h (struct program_space) <target_sections>: Update.
100 * exec.h (print_section_info): Update.
101 * exec.c (exec_target::close, build_section_table)
102 (add_target_sections, add_target_sections_of_objfile)
103 (remove_target_sections, exec_on_vfork)
104 (section_table_available_memory)
105 (section_table_xfer_memory_partial)
106 (exec_target::get_section_table, exec_target::xfer_partial)
107 (print_section_info, set_section_command)
108 (exec_set_section_address, exec_target::has_memory): Update.
109 * corelow.c (core_target::build_file_mappings)
110 (core_target::xfer_partial, core_target::info_proc_mappings)
111 (core_target::info_proc_mappings): Update.
112 * bfd-target.c (class target_bfd): Update
114 2020-10-12 Tom Tromey <tom@tromey.com>
116 * progspace.c (program_space::~program_space): Don't call
118 * exec.h (clear_section_table): Don't declare.
119 * exec.c (exec_target::close): Update.
120 (clear_section_table): Remove.
122 2020-10-12 Tom Tromey <tom@tromey.com>
124 * exec.c (add_target_sections_of_objfile): Simplify.
126 2020-10-12 Tom Tromey <tom@tromey.com>
128 * solib.c (solib_map_sections): Update.
129 * record-full.c (record_full_core_open_1): Update.
130 * exec.h (build_section_table): Return a target_section_table.
131 * exec.c (exec_file_attach): Update.
132 (build_section_table): Return a target_section_table.
133 * corelow.c (core_target::core_target): Update.
134 * bfd-target.c (target_bfd::target_bfd): Update.
136 2020-10-12 Tom Tromey <tom@tromey.com>
138 * target.c (target_section_by_addr, memory_xfer_partial_1):
140 * target-section.h (struct target_section_table): Use
142 * symfile.h (build_section_addr_info_from_section_table): Take a
143 target_section_table.
144 * symfile.c (build_section_addr_info_from_section_table): Take a
145 target_section_table.
146 * solist.h (struct so_list) <sections>: Change type.
147 <sections_end>: Remove.
148 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
149 (solib_contains_address_p): Update.
150 * solib-svr4.c (scan_dyntag): Update.
151 * solib-dsbt.c (scan_dyntag): Update.
152 * remote.c (remote_target::remote_xfer_live_readonly_partial):
154 * record-full.c (record_full_core_start, record_full_core_end):
156 (record_full_core_sections): New global.
157 (record_full_core_open_1, record_full_core_target::xfer_partial):
159 * exec.h (build_section_table, section_table_xfer_memory_partial)
160 (add_target_sections): Take a target_section_table.
161 * exec.c (exec_file_attach, clear_section_table): Update.
162 (resize_section_table): Remove.
163 (build_section_table, add_target_sections): Take a
164 target_section_table.
165 (add_target_sections_of_objfile, remove_target_sections)
166 (exec_on_vfork): Update.
167 (section_table_available_memory): Take a target_section_table.
168 (section_table_read_available_memory): Update.
169 (section_table_xfer_memory_partial): Take a target_section_table.
170 (print_section_info, set_section_command)
171 (exec_set_section_address, exec_target::has_memory): Update.
172 * corelow.c (class core_target) <m_core_section_table,
173 m_core_file_mappings>: Remove braces.
174 <~core_target>: Remove.
175 (core_target::core_target): Update.
176 (core_target::~core_target): Remove.
177 (core_target::build_file_mappings)
178 (core_target::xfer_memory_via_mappings)
179 (core_target::xfer_partial, core_target::info_proc_mappings):
181 * bfd-target.c (target_bfd::xfer_partial): Update.
182 (target_bfd::target_bfd): Update.
183 (target_bfd::~target_bfd): Remove.
185 2020-10-12 Tom Tromey <tom@tromey.com>
187 * target.h (struct target_section, struct target_section_table):
188 Move to target-section.h.
189 * target-section.h: New file.
191 2020-10-12 Pedro Alves <pedro@palves.net>
194 * valops.c (struct struct_field_searcher): New.
195 (update_search_result): Rename to ...
196 (struct_field_searcher::update_result): ... this. Simplify
197 prototype. Record all found fields.
198 (do_search_struct_field): Rename to ...
199 (struct_field_searcher::search): ... this. Simplify prototype.
200 Maintain stack of visited baseclass path. Call update_result for
201 fields too. Keep searching fields in baseclasses instead of
202 stopping at the first found field.
203 (search_struct_field): Use struct_field_searcher. When looking
204 for fields, report ambiguous access attempts.
206 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
208 * frame.c (inside_main_func): Check full symbols as well as
211 2020-10-09 Joel Brobecker <brobecker@adacore.com>
213 * ada-lang.c (advance_wild_match): Rewrite the function's
214 description. Change the type of target0, t0 and t1 to char.
216 2020-10-09 Tom Tromey <tromey@adacore.com>
218 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
220 2020-10-09 Tom Tromey <tromey@adacore.com>
222 * ada-lang.h (ada_encode): Return std::string.
223 * ada-lang.c (ada_encode_1): Return std::string.
224 (ada_encode): Likewise.
225 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
227 * ada-exp.y (block_lookup, write_var_or_type): Update.
229 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
232 * printcmd.c (print_formatted): Handle void results as
235 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
237 * arch/aarch32.c (aarch32_create_target_description): Release the
238 target_desc_up as late as possible.
239 * arch/aarch64.c (aarch64_create_target_description): Likewise.
240 * arch/amd64.c (amd64_create_target_description): Likewise.
241 * arch/arc.c (arc_create_target_description): Return a
242 target_desc_up, don't release it.
243 * arch/arc.h (arc_create_target_description): Update declaration.
244 (arc_lookup_target_description): Move target_desc_up into the
245 cache, and return a borrowed pointer.
246 * arch/arm.c (arm_create_target_description): Release the
247 target_desc_up as late as possible.
248 * arch/i386.c (i386_create_target_description): Likewise.
249 * arch/riscv.h (riscv_create_target_description): Update
250 declaration to match definition.
251 * arch/tic6x.c (tic6x_create_target_description): Release the
252 target_desc_up as late as possible.
254 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
256 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
257 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
259 2020-10-09 Jan Vrany <jan.vrany@labware.com>
261 * source.c (directory_command): Notify observers that "directories"
262 parameter has changed.
264 2020-10-08 Tom Tromey <tom@tromey.com>
266 * cli/cli-cmds.c (print_disassembly): Style function name and
267 addresses. Add _() wrappers.
269 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
271 * NEWS: Mention ARC support in GDBserver.
273 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
275 * arch/aarch32.c (aarch32_create_target_description): Release
276 unique_ptr returned from allocate_target_description.
277 * arch/aarch64.c (aarch64_create_target_description): Likewise.
278 * arch/amd64.c (amd64_create_target_description): Likewise.
279 * arch/arc.c (arc_create_target_description): Likewise.
280 * arch/arm.c (arm_create_target_description): Likewise.
281 * arch/i386.c (i386_create_target_description): Likewise.
282 * arch/riscv.c (riscv_create_target_description): Update return
283 type. Handle allocate_target_description returning a unique_ptr.
284 (riscv_lookup_target_description): Update to handle unique_ptr.
285 * arch/tic6x.c (tic6x_create_target_description): Release
286 unique_ptr returned from allocate_target_description.
287 * features/microblaze-with-stack-protect.c: Regenerate.
288 * features/microblaze.c: Regenerate.
289 * features/mips-dsp-linux.c: Regenerate.
290 * features/mips-linux.c: Regenerate.
291 * features/mips64-dsp-linux.c: Regenerate.
292 * features/mips64-linux.c: Regenerate.
293 * features/nds32.c: Regenerate.
294 * features/nios2.c: Regenerate.
295 * features/or1k.c: Regenerate.
296 * features/rs6000/powerpc-32.c: Regenerate.
297 * features/rs6000/powerpc-32l.c: Regenerate.
298 * features/rs6000/powerpc-403.c: Regenerate.
299 * features/rs6000/powerpc-403gc.c: Regenerate.
300 * features/rs6000/powerpc-405.c: Regenerate.
301 * features/rs6000/powerpc-505.c: Regenerate.
302 * features/rs6000/powerpc-601.c: Regenerate.
303 * features/rs6000/powerpc-602.c: Regenerate.
304 * features/rs6000/powerpc-603.c: Regenerate.
305 * features/rs6000/powerpc-604.c: Regenerate.
306 * features/rs6000/powerpc-64.c: Regenerate.
307 * features/rs6000/powerpc-64l.c: Regenerate.
308 * features/rs6000/powerpc-7400.c: Regenerate.
309 * features/rs6000/powerpc-750.c: Regenerate.
310 * features/rs6000/powerpc-860.c: Regenerate.
311 * features/rs6000/powerpc-altivec32.c: Regenerate.
312 * features/rs6000/powerpc-altivec32l.c: Regenerate.
313 * features/rs6000/powerpc-altivec64.c: Regenerate.
314 * features/rs6000/powerpc-altivec64l.c: Regenerate.
315 * features/rs6000/powerpc-e500.c: Regenerate.
316 * features/rs6000/powerpc-e500l.c: Regenerate.
317 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
318 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
319 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
320 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
321 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
322 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
323 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
324 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
325 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
326 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
327 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
328 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
329 * features/rs6000/powerpc-vsx32.c: Regenerate.
330 * features/rs6000/powerpc-vsx32l.c: Regenerate.
331 * features/rs6000/powerpc-vsx64.c: Regenerate.
332 * features/rs6000/powerpc-vsx64l.c: Regenerate.
333 * features/rs6000/rs6000.c: Regenerate.
334 * features/rx.c: Regenerate.
335 * features/s390-gs-linux64.c: Regenerate.
336 * features/s390-linux32.c: Regenerate.
337 * features/s390-linux32v1.c: Regenerate.
338 * features/s390-linux32v2.c: Regenerate.
339 * features/s390-linux64.c: Regenerate.
340 * features/s390-linux64v1.c: Regenerate.
341 * features/s390-linux64v2.c: Regenerate.
342 * features/s390-te-linux64.c: Regenerate.
343 * features/s390-tevx-linux64.c: Regenerate.
344 * features/s390-vx-linux64.c: Regenerate.
345 * features/s390x-gs-linux64.c: Regenerate.
346 * features/s390x-linux64.c: Regenerate.
347 * features/s390x-linux64v1.c: Regenerate.
348 * features/s390x-linux64v2.c: Regenerate.
349 * features/s390x-te-linux64.c: Regenerate.
350 * features/s390x-tevx-linux64.c: Regenerate.
351 * features/s390x-vx-linux64.c: Regenerate.
352 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
353 from allocate_target_description.
354 * target-descriptions.c (allocate_target_description): Update
356 (print_c_tdesc::visit_pre): Release unique_ptr returned from
357 allocate_target_description.
359 2020-10-07 Tom Tromey <tromey@adacore.com>
361 * unittests/search-memory-selftests.c: New file.
362 * Makefile.in (SELFTESTS_SRCS): Add
363 unittests/search-memory-selftests.c.
365 2020-10-07 Tom Tromey <tromey@adacore.com>
368 * findcmd.c (_initialize_mem_search): Mention that the range is
371 2020-10-07 Tom Tromey <tromey@adacore.com>
373 * target.h (simple_search_memory): Don't declare.
374 * target.c (simple_search_memory): Move to gdbsupport.
375 (default_search_memory): Update.
376 * remote.c (remote_target::search_memory): Update.
378 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
380 * Makefile.in (COMPILE): Add CXXFLAGS.
381 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
382 (check-headers): Add CXXFLAGS.
384 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
386 * arc-linux-tdep.h: New file.
387 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
388 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
389 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
390 arc_linux_gregset, arc_linux_v2_regset,
391 arc_linux_iterate_over_regset_sections,
392 arc_linux_core_read_description): Implement.
393 (arc_linux_init_osabi): Set iterate_over_regset_sections.
394 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
395 (arc_gdbarch_features_create): Add.
396 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
398 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
400 * arch/arc.h: Rename "arc_gdbarch_features" to
402 * arc-tdep.h: Likewise.
403 * arc-tdep.c: Likewise.
405 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
407 * infcmd.c (attach_command): Remove the redundant call to
408 `clear_proceed_status`.
410 2020-10-07 Kamil Rytarowski <n54@gmx.com>
412 * nat/netbsd-nat.c (write_memory, read_memory): Update.
414 2020-10-07 Kamil Rytarowski <n54@gmx.com>
416 * nat/netbsd-nat.c (write_memory, read_memory): Add.
417 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
418 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
420 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
422 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
423 (_initialize_break_catch_sig): Don't allocate array.
425 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
427 * symtab.c (find_pc_line): Return unmapped addresses when the
428 requested address is also unmapped.
430 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
432 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
435 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
437 * amd64-windows-tdep.c (amd64_windows_return_value): Use
438 type::is_vector instead of TYPE_VECTOR.
440 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
442 * auto-load.c (auto_load_objfile_script_1): Don't use
443 debugfile_holder as temporary variable when stripping drive
446 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
448 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
449 Add TYPE_CODE_COMPLEX.
450 (amd64_windows_return_value): Fix types returned via XMM0.
452 2020-10-05 Alan Hayward <alan.hayward@arm.com>
454 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
455 AArch64/ARM maintainers.
457 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
459 * NEWS: Mention set/show debug event-loop.
461 2020-10-02 Tom Tromey <tromey@adacore.com>
463 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
466 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
468 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
469 * procfs.c (procfs_inferior_created): Remove.
470 (_initialize_procfs): Don't register procfs_inferior_created.
472 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
474 * async-event.c (invoke_async_signal_handlers): Add debug
476 (check_async_event_handlers): Likewise.
477 * event-top.c (show_debug_event_loop): New function.
478 (_initialize_event_top): Register "set debug event-loop"
481 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
483 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
485 * infrun.c: Include gdbsupport/common-debug.h.
486 * linux-nat.c: Likewise.
488 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
490 * async-event.h (create_async_signal_handler): Add name
492 (create_async_event_handler): Likewise.
493 * async-event.c (struct async_signal_handler) <name>: New field.
494 (struct async_event_handler) <name>: New field.
495 (create_async_signal_handler): Assign name.
496 (create_async_event_handler): Assign name.
497 * event-top.c (async_init_signals): Pass name when creating
499 * infrun.c (_initialize_infrun): Likewise.
500 * record-btrace.c (record_btrace_push_target): Likewise.
501 * record-full.c (record_full_open): Likewise.
502 * remote-notif.c (remote_notif_state_allocate): Likewise.
503 * remote.c (remote_target::open_1): Likewise.
504 * tui/tui-win.c (tui_initialize_win): Likewise.
506 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
508 * async-event.c (initialize_async_signal_handlers): Pass name to
510 * event-top.c (ui_register_input_event_handler): Likewise.
511 * linux-nat.c (linux_nat_target::async): Likewise.
512 * run-on-main-thread.c (_initialize_run_on_main_thread):
514 * ser-base.c (reschedule): Likewise.
515 (ser_base_async): Likewise.
516 * tui/tui-io.c: Likewise.
517 * top.h (struct ui) <num>: New field.
518 * top.c (highest_ui_num): New variable.
519 (ui::ui): Initialize num.
521 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
523 * observable.h <inferior_created>: Remove parameters. Update all
525 * inferior.h (post_create_inferior): Remove target parameter.
528 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
530 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
531 and DW_MACRO_undef_strx.
532 (dwarf_decode_macros): Likewise
533 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
534 which is the value of DW_AT_str_offsets_base.
535 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
538 2020-10-01 Kamil Rytarowski <n54@gmx.com>
540 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
542 2020-10-01 Kamil Rytarowski <n54@gmx.com>
544 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
545 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
547 2020-10-01 Kamil Rytarowski <n54@gmx.com>
549 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
551 2020-09-30 Tom de Vries <tdevries@suse.de>
554 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
556 2020-09-30 Tom Tromey <tromey@adacore.com>
558 * dwarf2/read.c (handle_variant): Use constant_value.
560 2020-09-29 Tom Tromey <tom@tromey.com>
562 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
563 (read_file_scope, dwarf2_get_pc_bounds)
564 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
565 (read_structure_type, handle_struct_member_die)
566 (read_enumeration_type, read_array_type, read_set_type)
567 (read_tag_pointer_type, read_tag_reference_type)
568 (read_subroutine_type, read_base_type, read_subrange_type)
569 (read_full_die_1, partial_die_info::read)
570 (partial_die_info::read, by, new_symbol)
571 (dwarf2_const_value_data, dwarf2_const_value_attr)
572 (dump_die_shallow, dwarf2_fetch_constant_bytes)
573 (prepare_one_comp_unit): Update.
574 * dwarf2/attribute.h (DW_UNSND): Remove.
576 2020-09-29 Tom Tromey <tom@tromey.com>
578 * dwarf2/read.c (read_func_scope, prototyped_function_p)
579 (read_subroutine_type, partial_die_info::read)
580 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
581 (dwarf2_add_member_fn): Update.
582 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
583 * dwarf2/attribute.c (attribute::as_boolean): New method.
585 2020-09-29 Tom Tromey <tom@tromey.com>
587 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
588 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
590 * dwarf2/attribute.c (attribute::as_virtuality): New method.
592 2020-09-29 Tom Tromey <tom@tromey.com>
594 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
595 the attribute's form.
597 2020-09-29 Tom Tromey <tom@tromey.com>
599 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
600 (dwarf2_add_member_fn): Update.
601 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
602 * dwarf2/attribute.c (attribute::defaulted): New method, from
603 is_valid_DW_AT_defaulted.
605 2020-09-29 Tom Tromey <tom@tromey.com>
607 * dwarf2/read.c (dw2_get_file_names_reader)
608 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
609 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
610 (dwarf2_symbol_mark_computed): Use as_unsigned.
611 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
613 <form_is_section_offset>: Update comment.
615 2020-09-29 Tom Tromey <tom@tromey.com>
617 * dwarf2/read.c (dwarf2_access_attribute): Rename from
618 dwarf2_default_access_attribute. Look up attribute.
619 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
622 2020-09-29 Tom Tromey <tom@tromey.com>
624 * dwarf2/read.c (skip_one_die): Update.
625 (read_full_die_1): Change how reprocessing is done.
626 (partial_die_info::read): Update.
627 (read_attribute_value): Remove need_reprocess parameter.
628 (read_attribute): Likewise.
629 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
632 2020-09-29 Tom Tromey <tom@tromey.com>
634 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
635 (dwarf2_const_value_attr, dump_die_shallow)
636 (dwarf2_fetch_constant_bytes): Update.
637 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
639 <set_address>: New method.
641 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
642 (attribute::as_string, attribute::as_address): Add assert.
644 2020-09-29 Tom Tromey <tom@tromey.com>
646 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
647 (read_attribute_reprocess, read_attribute_value): Update.
648 (read_attribute): Clear requires_reprocessing.
649 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
650 form_requires_reprocessing>: New methods.
651 <string_init>: Clear requires_reprocessing.
652 <set_unsigned_reprocess>: New method.
653 <name>: Shrink by one bit.
654 <requires_reprocessing>: New member.
655 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
658 2020-09-29 Tom Tromey <tom@tromey.com>
660 * dwarf2/read.c (read_attribute_value): Update.
661 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
662 set_unsigned>: New methods.
663 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
665 2020-09-29 Tom Tromey <tom@tromey.com>
667 * dwarf2/read.c (get_alignment, read_array_order)
668 (read_attribute_value, dwarf2_const_value_attr)
669 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
670 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
674 2020-09-29 Tom Tromey <tom@tromey.com>
676 * dwarf2/read.c (read_attribute_value, lookup_die_type)
677 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
679 * dwarf2/attribute.h (struct attribute) <as_signature,
680 set_signature>: New methods.
681 (DW_SIGNATURE): Remove.
683 2020-09-29 Tom Tromey <tom@tromey.com>
685 * dwarf2/read.c (read_call_site_scope)
686 (handle_data_member_location, dwarf2_add_member_fn)
687 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
688 (partial_die_info::read, read_attribute_value)
689 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
690 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
691 (dwarf2_symbol_mark_computed): Update.
692 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
695 * dwarf2/attribute.c (attribute::form_is_block): Add
698 2020-09-29 Tom Tromey <tom@tromey.com>
700 * dwarf2/read.c (read_cutu_die_from_dwo)
701 (read_attribute_reprocess, read_attribute_value, read_attribute)
702 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
703 (dwarf2_fetch_constant_bytes): Update.
704 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
705 <set_string_noncanonical, set_string_canonical>: New methods.
706 <string_is_canonical>: Update comment.
707 <canonical_string_p>: Add assert.
708 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
709 * dwarf2/attribute.c (attribute::form_is_string): New method.
710 (attribute::string): Use it.
712 2020-09-29 Tom Tromey <tom@tromey.com>
714 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
715 (dump_die_shallow): Use canonical_string_p.
716 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
719 2020-09-29 Tom Tromey <tom@tromey.com>
721 * dwarf2/read.c (partial_die_info::read)
722 (dwarf2_const_value_attr, anonymous_struct_prefix, )
723 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
724 attribute::as_string.
726 2020-09-29 Tom Tromey <tom@tromey.com>
728 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
730 (attribute::string): Don't use DW_STRING.
731 (attribute::get_ref_die_offset): Don't use DW_UNSND.
732 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
734 2020-09-29 Tom Tromey <tom@tromey.com>
736 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
737 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
738 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
739 * dwarf2/attribute.h (struct attribute): Rename methods.
740 * dwarf2/attribute.c (attribute::as_address): Rename from
742 (attribute::as_string): Rename from value_as_string.
744 2020-09-29 Tom Tromey <tom@tromey.com>
746 * dwarf2/read.c (partial_die_info::read) <case
747 DW_AT_linkage_name>: Use value_as_string.
748 (dwarf2_string_attr): Use value_as_string.
749 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
751 * dwarf2/attribute.c (attribute::value_as_string): New method.
753 2020-09-29 Pedro Alves <pedro@palves.net>
755 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
756 defined before using '#pragma GCC diagnostic' instead of checking
759 2020-09-28 Tom Tromey <tom@tromey.com>
761 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
762 (handle_signal_stop): Update.
763 * procfs.c (procfs_target::insert_watchpoint): Update.
764 * target.h (target_have_steppable_watchpoint): Now a function.
766 2020-09-28 Tom Tromey <tom@tromey.com>
768 * infrun.c (set_schedlock_func): Update.
769 * target.h (target_can_lock_scheduler): Now a function.
771 2020-09-28 Tom Tromey <tom@tromey.com>
773 * inferior.h (class inferior) <has_execution>: Update.
774 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
775 * valops.c (find_function_in_inferior)
776 (value_allocate_space_in_inferior): Update.
777 * top.c (kill_or_detach): Update.
778 * target.c (target_preopen, set_target_permissions): Update.
779 (target_has_execution_current): Remove.
780 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
782 * solib.c (update_solib_list, reload_shared_libraries): Update.
783 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
784 * solib-dsbt.c (enable_break): Update.
785 * score-tdep.c (score7_fetch_inst): Update.
786 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
788 * remote.c (remote_target::start_remote)
789 (remote_target::remote_check_symbols, remote_target::open_1)
790 (remote_target::remote_detach_1, remote_target::verify_memory)
791 (remote_target::xfer_partial, remote_target::read_description)
792 (remote_target::get_min_fast_tracepoint_insn_len): Update.
793 * record-full.c (record_full_open_1): Update.
794 * record-btrace.c (record_btrace_target_open): Update.
795 * objc-lang.c (lookup_objc_class, lookup_child_selector)
796 (value_nsstring): Update.
797 * linux-thread-db.c (add_thread_db_info)
798 (thread_db_find_new_threads_silently, check_thread_db_callback)
799 (try_thread_db_load_1, record_thread): Update.
800 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
802 * linux-fork.c (checkpoint_command): Update.
803 * infrun.c (set_non_stop, set_observer_mode)
804 (check_multi_target_resumption, for_each_just_stopped_thread)
805 (maybe_remove_breakpoints, normal_stop)
806 (class infcall_suspend_state): Update.
807 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
808 (info_program_command, attach_command): Update.
809 * infcall.c (call_function_by_hand_dummy): Update.
810 * inf-loop.c (inferior_event_handler): Update.
811 * gcore.c (gcore_command, derive_heap_segment): Update.
812 * exec.c (exec_file_command): Update.
813 * eval.c (evaluate_subexp): Update.
814 * compile/compile.c (compile_to_object): Update.
815 * cli/cli-dump.c (restore_command): Update.
816 * breakpoint.c (update_watchpoint)
817 (update_inserted_breakpoint_locations)
818 (insert_breakpoint_locations, get_bpstat_thread): Update.
819 * target.h (target_has_execution): Remove macro.
820 (target_has_execution_current): Don't declare.
821 (target_has_execution): Rename from target_has_execution_1. Add
824 2020-09-28 Tom Tromey <tom@tromey.com>
826 * mi/mi-main.c (exec_reverse_continue)
827 (mi_cmd_list_target_features): Update.
828 * infrun.c (set_exec_direction_func): Update.
829 * target.c (default_execution_direction): Update.
830 * reverse.c (exec_reverse_once): Update.
831 * target.h (target_can_execute_reverse): Now a function.
833 2020-09-28 Tom Tromey <tom@tromey.com>
835 * tui/tui-regs.c (tui_get_register)
836 (tui_data_window::show_registers): Update.
837 * thread.c (scoped_restore_current_thread::restore)
838 (scoped_restore_current_thread::scoped_restore_current_thread):
840 * regcache-dump.c (regcache_print): Update.
841 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
843 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
844 * mep-tdep.c (current_me_module, current_options): Update.
845 * linux-thread-db.c (thread_db_load): Update.
846 * infcmd.c (registers_info, info_vector_command)
847 (info_float_command): Update.
848 * ia64-tdep.c (ia64_frame_prev_register)
849 (ia64_sigtramp_frame_prev_register): Update.
850 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
851 * gcore.c (derive_stack_segment): Update.
852 * frame.c (get_current_frame, has_stack_frames): Update.
853 * findvar.c (language_defn::read_var_value): Update.
854 * arm-tdep.c (arm_pc_is_thumb): Update.
855 * target.c (target_has_registers): Rename from
856 target_has_registers_1.
857 * target.h (target_has_registers): Remove macro.
858 (target_has_registers): Rename from target_has_registers_1.
860 2020-09-28 Tom Tromey <tom@tromey.com>
862 * windows-tdep.c (tlb_make_value): Update.
863 * tui/tui-regs.c (tui_data_window::show_registers): Update.
864 * thread.c (scoped_restore_current_thread::restore)
865 (scoped_restore_current_thread::scoped_restore_current_thread)
866 (thread_command): Update.
867 * stack.c (backtrace_command_1, frame_apply_level_command)
868 (frame_apply_all_command, frame_apply_command): Update.
869 * infrun.c (siginfo_make_value, restore_infcall_control_state):
871 * gcore.c (derive_stack_segment): Update.
872 * frame.c (get_current_frame, has_stack_frames): Update.
873 * auxv.c (info_auxv_command): Update.
874 * ada-tasks.c (ada_build_task_list): Update.
875 * target.c (target_has_stack): Rename from target_has_stack_1.
876 * target.h (target_has_stack): Remove macro.
877 (target_has_stack): Rename from target_has_stack_1.
879 2020-09-28 Tom Tromey <tom@tromey.com>
881 * target.c (target_has_memory): Rename from target_has_memory_1.
882 * tui/tui-regs.c (tui_data_window::show_registers): Update.
883 * thread.c (scoped_restore_current_thread::restore)
884 (scoped_restore_current_thread::scoped_restore_current_thread):
886 * frame.c (get_current_frame, has_stack_frames): Update.
887 * target.h (target_has_memory): Remove macro.
888 (target_has_memory): Rename from target_has_memory_1.
890 2020-09-28 Tom Tromey <tom@tromey.com>
892 * target.c (target_has_all_memory_1): Remove.
893 * target.h (target_has_all_memory): Remove define.
894 (target_has_all_memory_1): Don't declare.
896 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
898 * ser-base.c: Adjust comments formatting.
900 2020-09-27 Tom Tromey <tom@tromey.com>
903 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
905 2020-09-27 Tom Tromey <tom@tromey.com>
908 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
910 2020-09-27 Tom Tromey <tom@tromey.com>
912 * unittests/tui-selftests.c: Update.
913 * tui/tui-winsource.h (struct tui_source_window_base)
914 <extra_margin, show_line_number, refresh_pad>: New methods.
915 <m_max_length, m_pad>: New members.
916 (tui_copy_source_line): Update.
917 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
918 first_col, line_width, ndigits parameters. Add length.
919 (tui_source_window_base::show_source_line): Write to pad. Line
921 (tui_source_window_base::refresh_pad): New method.
922 (tui_source_window_base::show_source_content): Write to pad. Call
924 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
926 (tui_source_window_base::update_exec_info): Call
928 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
930 <m_digits>: New member.
931 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
933 (tui_source_window::show_line_number): New method.
934 * tui/tui-io.h (tui_puts): Fix comment.
935 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
938 2020-09-27 Tom Tromey <tom@tromey.com>
940 * tui/tui-winsource.c
941 (tui_source_window_base::set_is_exec_point_at): Don't call
944 2020-09-27 Tom Tromey <tom@tromey.com>
946 * python/py-tui.c (class tui_py_window) <refresh_window>: New
949 <cursor_x, cursor_y>: Remove.
950 <m_inner_window>: New member.
951 (tui_py_window::rerender): Create inner window.
952 (tui_py_window::output): Write to inner window.
954 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
957 * cli/cli-script.c (execute_control_commands): don't set
958 instream to nullptr here as this breaks the from_tty argument
959 to gdb.execute in Python.
960 (execute_user_command): set instream to nullptr here instead.
962 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
964 * infrun.h (infrun_debug_printf): Fix formatting.
965 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
967 2020-09-25 Saagar Jha <saagar@saagarjha.com>
969 * compile/compile-object-load.h (struct munmap_list): Add
970 explicitly-defined move constructor.
972 2020-09-24 Tom Tromey <tromey@adacore.com>
975 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
977 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
978 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
979 (tui_prev_win): Rewrite.
981 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
983 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
984 in WOW64 processes as SIGINT.
985 * nat/windows-nat.h: Make wow64_process a shared variable.
986 * windows-nat.c: Remove static wow64_process variable.
988 2020-09-23 Tom Tromey <tom@tromey.com>
991 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
993 * printcmd.c (print_scalar_formatted): Handle zero-length
995 (print_scalar_formatted): Use bit_size_differs_p.
996 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
998 (union type_specific): <int_stuff>: New member.
999 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1001 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1002 TYPE_SPECIFIC_FIELD.
1003 (recursive_dump_type, copy_type_recursive): Update.
1004 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1005 DW_AT_data_bit_offset.
1007 2020-09-23 Tom Tromey <tom@tromey.com>
1009 * utils.h (class gdb_argv): Add move operators.
1010 <append>: New methods.
1011 * compile/compile.c (build_argc_argv): Remove.
1012 (compile_args_argc): Remove.
1013 (compile_args_argv): Change type.
1014 (set_compile_args): Simplify.
1015 (append_args): Remove.
1016 (filter_args): Remove argcp parameter.
1017 (get_args): Return gdb_argv. Simplify.
1018 (compile_to_object): Update.
1020 2020-09-23 Tom Tromey <tom@tromey.com>
1022 * compile/compile-object-run.c (do_module_cleanup)
1023 <~do_module_cleanup> :Remove.
1024 (do_module_cleanup): Update.
1025 * compile/compile-object-load.h (struct munmap_list): Add move
1026 assignment operator.
1027 <source_file>: Now a std::string.
1028 <munmap_list>: Rename. No longer a pointer.
1029 * compile/compile-object-load.c (struct setup_sections_data): Add
1031 <setup_one_section>: Declare.
1032 <munmap_list>: Move earlier.
1033 <m_bfd>: New member.
1034 <m_last_size, m_last_section_first, m_last_prot,
1035 m_last_max_alignment>: Rename, add initializers where needed.
1036 (setup_sections_data::setup_one_section): Rename from
1037 setup_sections. Update.
1038 (compile_object_load): Update. Don't use bfd_map_over_sections.
1040 2020-09-23 Tom Tromey <tom@tromey.com>
1042 * compile/compile-object-run.c (struct do_module_cleanup): Add
1043 parameters to constructor. Update destructor.
1044 <source_file, scope, scope_data, out_value_type, out_value_addr,
1045 munmap_list_head, objfile_name_string>: Remove.
1046 <module>: New member.
1047 (do_module_cleanup): Update.
1048 (compile_object_run): Update.
1050 2020-09-23 Tom Tromey <tom@tromey.com>
1052 * compile/compile.c (eval_compile_command): Update.
1053 * compile/compile-object-run.h (compile_object_run): Take a
1055 * compile/compile-object-run.c (compile_object_run): Take a
1057 * compile/compile-object-load.h (struct compile_module): Add
1058 constructor, destructor.
1059 (compile_module_up): New typedef.
1060 (compile_object_load): Return compile_object_up.
1061 * compile/compile-object-load.c (compile_object_load): Return
1064 2020-09-23 Tom Tromey <tom@tromey.com>
1066 * compile/compile-object-run.c (struct do_module_cleanup): Add
1067 constructor, destructor.
1068 <objfile_name_string>: Don't use struct hack.
1069 (do_module_cleanup): Use delete.
1070 (compile_object_run): Use new.
1072 2020-09-23 Tom Tromey <tom@tromey.com>
1074 * compile/compile-cplus-types.c
1075 (compile_cplus_convert_struct_or_union): Use std::vector.
1076 (compile_cplus_convert_func): Likewise.
1077 * compile/compile-c-types.c (convert_func): Use std::vector.
1079 2020-09-21 Tom Tromey <tromey@adacore.com>
1081 * sparc-tdep.c (sparc32_skip_prologue): Use
1082 skip_prologue_using_sal.
1084 2020-09-19 Tom Tromey <tom@tromey.com>
1086 * symfile.c (add_section_size_callback): Remove.
1087 (load_one_section): Rename from load_section_callback. Change
1089 (generic_load): Use foreach.
1091 2020-09-19 Tom Tromey <tom@tromey.com>
1093 * exec.c (add_to_section_table): Remove.
1094 (build_section_table): Use foreach.
1096 2020-09-19 Tom Tromey <tom@tromey.com>
1098 * elfread.c (elf_locate_sections): Change parameters.
1099 (elf_symfile_read): Use foreach.
1101 2020-09-19 Tom Tromey <tom@tromey.com>
1103 * cli/cli-dump.c (struct callback_data): Remove.
1104 (restore_one_section): Rename from restore_section_callback.
1106 (restore_binary_file): Change parameters.
1107 (restore_command): Use foreach.
1109 2020-09-19 Tom Tromey <tom@tromey.com>
1111 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1112 (gcore_copy_callback): Likewise.
1113 (gcore_memory_sections): Use foreach.
1115 2020-09-19 Tom Tromey <tom@tromey.com>
1117 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1118 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1120 (generic_elf_osabi_sniffer): Use foreach.
1121 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1122 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1124 2020-09-19 Tom Tromey <tom@tromey.com>
1126 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1127 (dwarf2_get_dwz_file): Use foreach.
1128 (dwarf2_locate_dwo_sections): Change parameters.
1129 (open_and_init_dwo_file): Use foreach.
1130 (dwarf2_locate_common_dwp_sections): Change parameters.
1131 (open_and_init_dwp_file): Use foreach.
1133 2020-09-19 Tom Tromey <tom@tromey.com>
1135 * symfile.h: (find_lowest_section): Don't declare.
1136 * symfile.c (find_lowest_section): Now static. Change
1138 (struct place_section_arg): Remove.
1139 (place_section): Change parameters.
1140 (addr_info_make_relative): Use foreach.
1141 (symfile_dummy_outputs): Remove.
1142 (default_symfile_relocate): Use foreach.
1144 2020-09-19 Tom Tromey <tom@tromey.com>
1146 * objfiles.c (add_to_objfile_sections): Rename from
1147 add_to_objfile_sections_full.
1148 (add_to_objfile_sections): Remove.
1149 (build_objfile_section_table): Use foreach.
1151 2020-09-19 Tom Tromey <tom@tromey.com>
1153 * stap-probe.c (get_stap_base_address_1): Remove.
1154 (get_stap_base_address): Use foreach.
1156 2020-09-19 Tom Tromey <tom@tromey.com>
1158 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1160 (gdb_bfd_close_or_warn): Use foreach.
1162 2020-09-19 Tom Tromey <tom@tromey.com>
1164 * corelow.c (add_to_thread_list): Change parameters.
1165 (core_target_open): Use foreach.
1167 2020-09-19 Tom Tromey <tom@tromey.com>
1169 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1172 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1174 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1177 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1179 * eval.c: Remove 'f-lang.h' include.
1180 (value_f90_subarray): Moved to f-lang.c.
1181 (eval_call): Renamed to...
1182 (evaluate_subexp_do_call): ...this, is no longer static, header
1183 comment moved into header file.
1184 (evaluate_funcall): Update call to eval_call.
1185 (skip_undetermined_arglist): Moved to f-lang.c.
1186 (fortran_value_subarray): Likewise.
1187 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1188 moved to evaluate_subexp_f.
1189 (calc_f77_array_dims): Moved to f-lang.c
1190 * expprint.c (print_subexp_funcall): New function.
1191 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1192 moved to print_subexp_f, OP_FUNCALL uses new function.
1193 (dump_subexp_body_funcall): New function.
1194 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1195 moved to dump_subexp_f, OP_FUNCALL uses new function.
1196 * expression.h (evaluate_subexp_do_call): Declare.
1197 * f-lang.c (value_f90_subarray): Moved from eval.c.
1198 (skip_undetermined_arglist): Likewise.
1199 (calc_f77_array_dims): Likewise.
1200 (fortran_value_subarray): Likewise.
1201 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1202 (operator_length_f): Likewise.
1203 (print_subexp_f): Likewise.
1204 (dump_subexp_body_f): Likewise.
1205 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1206 declaration of this operation to here.
1207 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1208 support moved to operator_length_f.
1209 * parser-defs.h (dump_subexp_body_funcall): Declare.
1210 (print_subexp_funcall): Declare.
1211 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1212 fortran-operator.def.
1214 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1216 * eval.c (fortran_value_subarray): New function, content is taken
1218 (evaluate_subexp_standard): ...here, in two places. Now arrays
1219 and strings both call the new function.
1220 (calc_f77_array_dims): Add header comment, handle strings.
1222 2020-09-18 Victor Collod <vcollod@nvidia.com>
1225 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1226 (i386_analyze_prologue): Call i386_skip_endbr.
1228 2020-09-18 Tom Tromey <tromey@adacore.com>
1230 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1231 (windows_nat_target::wait): Update.
1232 * target/wait.h (enum target_wait_flag): New. Use
1233 DEF_ENUM_FLAGS_TYPE.
1234 * target/target.h (target_wait): Change type of options.
1235 * target.h (target_options_to_string, default_target_wait):
1237 (struct target_ops) <wait>: Change type of options.
1238 * target.c (target_wait, default_target_wait, do_option): Change
1240 (target_options_to_string): Likewise.
1241 * target-delegates.c: Rebuild.
1242 * target-debug.h (target_debug_print_target_wait_flags): Rename
1243 from target_debug_print_options.
1244 * sol-thread.c (class sol_thread_target) <wait>: Update.
1245 (sol_thread_target::wait): Update.
1246 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1247 (rs6000_nat_target::wait): Update.
1248 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1250 (remote_target::wait_ns, remote_target::wait_as): Change type of
1252 (remote_target::wait): Update.
1253 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1254 (gdbsim_target::wait): Update.
1255 * record-full.c (class record_full_base_target) <wait>: Update.
1256 (record_full_wait_1): Change type of "options".
1257 (record_full_base_target::wait): Update.
1258 * record-btrace.c (class record_btrace_target) <wait>: Update.
1259 (record_btrace_target::wait): Update.
1260 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1262 (ravenscar_thread_target::wait): Update.
1263 * procfs.c (class procfs_target) <wait>: Update.
1264 (procfs_target::wait): Update.
1265 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1266 * obsd-nat.c (obsd_nat_target::wait): Update.
1267 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1268 (nto_procfs_target::wait): Update.
1269 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1270 * nbsd-nat.c (nbsd_wait): Change type of "options".
1271 (nbsd_nat_target::wait): Update.
1272 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1273 (thread_db_target::wait): Update.
1274 * linux-nat.h (class linux_nat_target) <wait>: Update.
1275 * linux-nat.c (linux_nat_target::wait): Update.
1276 (linux_nat_wait_1): Update.
1277 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1279 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1280 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1281 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1282 (go32_nat_target::wait): Update.
1283 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1284 * gnu-nat.c (gnu_nat_target::wait): Update.
1285 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1286 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1287 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1288 * darwin-nat.c (darwin_nat_target::wait): Update.
1289 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1290 (bsd_uthread_target::wait): Update.
1291 * aix-thread.c (class aix_thread_target) <wait>: Update.
1292 (aix_thread_target::wait): Update.
1294 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1296 * compile/compile-object-run.c (create_copied_type_recursive): New
1298 (compile_object_run): Use new function.
1300 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1302 * NEWS: Mention x86_64 Cygwin core file support.
1304 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1306 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1307 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1309 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1311 * windows-tdep.h: Add prototypes.
1312 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1313 (i386_windows_core_pid_to_str): Move and rename ...
1314 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1315 (windows_core_pid_to_str): ... and here.
1316 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1318 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1319 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1320 (amd64_windows_init_abi_common): ... and register.
1322 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1324 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1325 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1327 2020-09-18 Pedro Alves <pedro@palves.net>
1330 * thread.c (thread_find_command): Switch inferior before calling
1333 2020-09-17 Tom Tromey <tromey@adacore.com>
1335 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1336 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1337 (tdesc_arch_data_up): New typedef.
1338 (tdesc_use_registers, tdesc_data_alloc): Update.
1339 (tdesc_data_cleanup): Don't declare.
1340 * target-descriptions.c (tdesc_data_alloc): Return a
1342 (tdesc_arch_data_deleter::operator()): Rename from
1343 tdesc_data_cleanup. Change argument type.
1344 (tdesc_use_registers): Change early_data to an rvalue reference.
1345 (tdesc_use_registers): Don't use delete.
1346 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1347 * s390-tdep.c (s390_gdbarch_init): Update.
1348 * rx-tdep.c (rx_gdbarch_init): Update.
1349 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1350 * riscv-tdep.c (riscv_gdbarch_init): Update.
1351 * or1k-tdep.c (or1k_gdbarch_init): Update.
1352 * nios2-tdep.c (nios2_gdbarch_init): Update.
1353 * nds32-tdep.c (nds32_gdbarch_init): Update.
1354 * mips-tdep.c (mips_gdbarch_init): Update.
1355 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1356 * m68k-tdep.c (m68k_gdbarch_init): Update.
1357 * i386-tdep.c (i386_gdbarch_init): Update.
1358 * arm-tdep.c (arm_gdbarch_init): Update.
1359 * arc-tdep.c (arc_tdesc_init): Update.
1360 (arc_gdbarch_init): Update.
1361 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1363 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
1365 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1366 for WOW64 processes.
1368 2020-09-17 Tom Tromey <tom@tromey.com>
1370 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1372 2020-09-17 Tom Tromey <tom@tromey.com>
1374 * value.c (preserve_values): Update.
1375 * python/py-type.c (save_objfile_types): Update.
1376 * guile/scm-type.c (save_objfile_types): Update.
1377 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1378 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1379 * compile/compile-object-run.c (compile_object_run): Update.
1381 2020-09-17 Tom Tromey <tom@tromey.com>
1383 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1385 <m_table>: Now htab_up.
1386 * typeprint.c (typedef_hash_table::recursively_update)
1387 (typedef_hash_table::add_template_parameters)
1388 (typedef_hash_table::typedef_hash_table): Update.
1389 (typedef_hash_table::~typedef_hash_table): Remove.
1390 (typedef_hash_table::typedef_hash_table)
1391 (typedef_hash_table::find_global_typedef)
1392 (typedef_hash_table::find_typedef): Update.
1394 2020-09-17 Tom Tromey <tom@tromey.com>
1396 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1398 2020-09-17 Tom Tromey <tom@tromey.com>
1400 * linespec.c (class decode_compound_collector)
1401 <~decode_compound_collector>: Remove.
1402 <m_unique_syms>: Now htab_up.
1403 (decode_compound_collector::operator ()): Update.
1404 (class symtab_collector) <~symtab_collector>: Remove.
1405 <m_symtab_table>: Now htab_up.
1406 (symtab_collector::operator ()): Update.
1408 2020-09-17 Tom Tromey <tom@tromey.com>
1410 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1411 (filename_seen_cache::clear): Update.
1412 (~filename_seen_cache): Remove.
1413 (filename_seen_cache::seen): Update.
1414 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1416 <~filename_seen_cache>: Remove.
1419 2020-09-17 Tom Tromey <tom@tromey.com>
1421 * completer.c (completion_tracker::discard_completions)
1422 (completion_tracker::~completion_tracker)
1423 (completion_tracker::maybe_add_completion)
1424 (completion_tracker::remove_completion)
1425 (completion_tracker::recompute_lowest_common_denominator)
1426 (completion_tracker::build_completion_result): Update.
1427 * completer.h (class completion_tracker) <have_completions>:
1429 <m_entries_hash>: Now htab_up.
1431 2020-09-17 Tom Tromey <tom@tromey.com>
1433 * breakpoint.c (ambiguous_names_p): Use htab_up.
1435 2020-09-17 Tom Tromey <tom@tromey.com>
1437 * auto-load.c (struct auto_load_pspace_info)
1438 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1439 <loaded_script_files, loaded_script_texts>: Change type to
1441 (~auto_load_pspace_info) Remove.
1442 (init_loaded_scripts_info, maybe_add_script_file)
1443 (maybe_add_script_text, auto_load_info_scripts): Update.
1445 2020-09-17 Tom Tromey <tromey@adacore.com>
1447 * c-exp.y (name_obstack): Now static.
1449 2020-09-17 Chungyi Chi <demonic@csie.io>
1451 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1453 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
1455 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1456 (add_solib_catchpoint): Likewise.
1457 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1459 (add_solib_catchpoint): Change int parameter/variable to bool.
1460 (catch_load_or_unload): Likewise.
1461 (init_catchpoint): Likewise.
1462 (create_fork_vfork_event_catchpoint): Likewise.
1463 (catch_fork_command_1): Likewise.
1464 (catch_exec_command_1): Likewise.
1466 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
1468 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1469 Change instance_flags to m_instance_flags.
1471 2020-09-16 Tom Tromey <tromey@adacore.com>
1474 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1476 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1478 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1480 (fbsd_nat_target::insert_exec_catchpoint)
1481 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1482 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1483 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1485 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1487 * configure.ac: Remove check for kinfo_getvmmap().
1488 * configure, config.in: Regenerate.
1489 * fbsd-nat.c (fbsd_read_mapping): Remove
1490 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1491 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1492 kinfo_get_vmmap() are always present.
1494 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1496 * fbsd-nat.c: Always include support for
1497 TARGET_OBJECT_SIGNAL_INFO.
1499 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1501 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1502 sysctl and remove procfs fallback.
1504 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1506 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1507 * fbsd-nat.h: Likewise.
1509 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1511 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1514 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1516 * ada-lang.c (ada_language_data): Delete.
1517 (ada_language): Remove references to ada_language_data.
1518 * c-lang.c (c_language_data): Delete.
1519 (c_language): Remove references to c_language_data.
1520 (cplus_language_data): Delete.
1521 (cplus_language): Remove references to cplus_language_data.
1522 (asm_language_data): Delete.
1523 (asm_language): Remove references to asm_language_data.
1524 (minimal_language_data): Delete.
1525 (minimal_language): Remove references to minimal_language_data.
1526 * d-lang.c (d_language_data): Delete.
1527 (d_language): Remove references to d_language_data.
1528 * f-lang.c (f_language_data): Delete.
1529 (f_language): Remove references to f_language_data.
1530 * go-lang.c (go_language_data): Delete.
1531 (go_language): Remove references to go_language_data.
1532 * language.c (unknown_language_data): Delete.
1533 (unknown_language): Remove references to unknown_language_data.
1534 (auto_language_data): Delete.
1535 (auto_language): Remove references to auto_language_data.
1536 * language.h (language_data): Delete struct.
1537 (language_defn): No longer inherit from language_data.
1538 * m2-lang.c (m2_language_data): Delete.
1539 (m2_language): Remove references to m2_language_data.
1540 * objc-lang.c (objc_language_data): Delete.
1541 (objc_language): Remove references to objc_language_data.
1542 * opencl-lang.c (opencl_language_data): Delete.
1543 (opencl_language): Remove references to opencl_language_data.
1544 * p-lang.c (pascal_language_data): Delete.
1545 (pascal_language): Remove references to pascal_language_data.
1546 * rust-lang.c (rust_language_data): Delete.
1547 (rust_language): Remove references to rust_language_data.
1549 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1551 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1553 (ada_language::opcode_print_table): New member function.
1554 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1555 (c_language::opcode_print_table): New member function.
1556 (cplus_language_data): Remove la_op_print_tab initializer.
1557 (cplus_language::opcode_print_table): New member function.
1558 (asm_language_data): Remove la_op_print_tab initializer.
1559 (asm_language::opcode_print_table): New member function.
1560 (minimal_language_data): Remove la_op_print_tab initializer.
1561 (minimal_language::opcode_print_table): New member function.
1562 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1563 (d_language::opcode_print_table): New member function.
1564 * expprint.c (print_subexp_standard): Update call to
1566 (op_string): Likewise.
1567 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1568 (f_language::opcode_print_table): New member function.
1569 * go-lang.c (go_language_data): Remove la_op_print_tab
1571 (go_language::opcode_print_table): New member function.
1572 * language.c (unknown_language_data): Remove la_op_print_tab
1574 (unknown_language::opcode_print_table): New member function.
1575 (auto_language_data): Remove la_op_print_tab initializer.
1576 (auto_language::opcode_print_table): New member function.
1577 * language.h (language_data): Remove la_op_print_tab field.
1578 (language_defn::opcode_print_table): Declare new member function.
1579 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1581 (m2_language::opcode_print_table): New member function.
1582 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1584 (objc_language::opcode_print_table): New member function.
1585 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1587 (opencl_language::opcode_print_table): New member function.
1588 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1590 (pascal_language::opcode_print_table): New member function.
1591 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1593 (rust_language::opcode_print_table): New member function.
1595 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1597 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1598 (ada_language::expression_ops): New member function.
1599 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1600 (c_language::expression_ops): New member function.
1601 (cplus_language_data): Remove la_exp_desc initializer.
1602 (cplus_language::expression_ops): New member function.
1603 (asm_language_data): Remove la_exp_desc initializer.
1604 (asm_language::expression_ops): New member function.
1605 (minimal_language_data): Remove la_exp_desc initializer.
1606 (minimal_language::expression_ops): New member function.
1607 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1608 (d_language::expression_ops): New member function.
1609 * eval.c (evaluate_subexp): Update call to expression_ops.
1610 * expprint.c (print_subexp): Likewise.
1611 (op_name): Likewise.
1612 (dump_subexp_body): Likewise.
1613 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1614 (f_language::expression_ops): New member function.
1615 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1616 (go_language::expression_ops): New member function.
1617 * language.c (language_defn::expression_ops): New function.
1618 (unknown_language_data): Remove la_exp_desc initializer.
1619 (auto_language_data): Likewise.
1620 * language.h (language_data): Remove la_exp_desc field.
1621 (language_defn::expression_ops): Declare new member function.
1622 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1623 (m2_language::expression_ops): New member function.
1624 * objc-lang.c (objc_language_data): Remove la_exp_desc
1626 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1628 (opencl_language::expression_ops): New member function.
1629 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1630 * parse.c (operator_length): Update call to expression_ops.
1631 (exp_iterate): Likewise.
1632 * rust-lang.c (rust_language_data): Remove la_exp_desc
1634 (ruse_language::expression_ops): New member function.
1636 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1638 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1640 (ada_language::varobj_ops): New member function.
1641 * c-lang.c (c_language_data): Remove la_varobj_ops
1643 (cplus_language_data): Likewise.
1644 (cplus_language::varobj_ops): New member function.
1645 (asm_language_data): Remove la_varobj_ops initializer.
1646 (minimal_language_data): Likewise.
1647 * d-lang.c (d_language_data): Likewise.
1648 * f-lang.c (f_language_data): Likewise.
1649 * go-lang.c (go_language_data): Likewise.
1650 * language.c (language_defn::varobj_ops): New function.
1651 (unknown_language_data): Remove la_varobj_ops
1653 (auto_language_data): Likewise.
1654 * language.h (language_data): Remove la_varobj_ops field.
1655 (language_defn::varobj_ops): Declare new member function.
1656 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1657 * objc-lang.c (objc_language_data): Likewise.
1658 * opencl-lang.c (opencl_language_data): Likewise.
1659 * p-lang.c (pascal_language_data): Likewise.
1660 * rust-lang.c (rust_language_data): Likewise.
1661 * varobj.c (varobj_create): Update call to varobj_ops.
1662 * varobj.h (default_varobj_ops): Delete define.
1664 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1666 * ada-lang.c (ada_language_data): Remove la_macro_expansion
1668 * c-lang.c (c_language_data): Likewise.
1669 (c_language::macro_expansion): New member function.
1670 (cplus_language_data): Likewise.
1671 (cplus_language::macro_expansion): New member function.
1672 (asm_language_data): Likewise.
1673 (asm_language::macro_expansion): New member function.
1674 (minimal_language_data): Likewise.
1675 (minimal_language::macro_expansion): New member function.
1676 * d-lang.c (d_language_data): Remove la_macro_expansion
1678 * f-lang.c (f_language_data): Likewise.
1679 * go-lang.c (go_language_data): Likewise.
1680 * language.c (unknown_language_data): Likewise.
1681 (auto_language_data): Likewise.
1682 * language.h (language_data): Remove la_macro_expansion field.
1683 (language_defn::macro_expansion): New member function.
1684 * m2-lang.c (m2_language_data): Remove la_macro_expansion
1686 * objc-lang.c (objc_language_data): Likewise.
1687 (objc_language::macro_expansion): New member function.
1688 * opencl-lang.c (opencl_language_data): Likewise.
1689 (opencl_language::macro_expansion): New member function.
1690 * p-lang.c (pascal_language_data): Remove la_macro_expansion
1692 * rust-lang.c (rust_language_data): Likewise.
1693 * symtab.c (default_collect_symbol_completion_matches_break_on):
1694 Update call to macro_expansion.
1696 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1698 * ada-lang.c (ada_language_data): Remove la_array_ordering
1700 * c-lang.c (c_language_data): Likewise.
1701 (cplus_language_data): Likewise.
1702 (asm_language_data): Likewise.
1703 (minimal_language_data): Likewise.
1704 * d-lang.c (d_language_data): Likewise.
1705 * dwarf2/read.c (read_array_order): Update for call to
1707 * f-lang.c (f_language_data): Remove la_array_ordering
1709 (f_language::array_ordering): New member function.
1710 * go-lang.c (go_language_data): Remove la_array_ordering
1712 * language.c (unknown_language_data): Likewise.
1713 (auto_language_data): Likewise.
1714 * language.h (language_data): Delete la_array_ordering field.
1715 (language_defn::array_ordering): New member function.
1716 * m2-lang.c (m2_language_data): Remove la_array_ordering
1718 * objc-lang.c (objc_language_data): Likewise.
1719 * opencl-lang.c (opencl_language_data): Likewise.
1720 * p-lang.c (pascal_language_data): Likewise.
1721 * rust-lang.c (rust_language_data): Likewise.
1723 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1725 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
1727 * c-lang.c (c_language_data): Likewise.
1728 (cplus_language_data): Likewise.
1729 (asm_language_data): Likewise.
1730 (minimal_language_data): Likewise.
1731 * d-lang.c (d_language_data): Likewise.
1732 * f-lang.c (f_language_data): Likewise.
1733 (f_language::case_sensitivity): New member function.
1734 * go-lang.c (go_language_data): Remove la_case_sensitivity
1736 * language.c (enum case_mode): Moved here from language.h.
1737 (case_mode): Make static.
1738 (show_case_command): Update for case_sensitivity being a method.
1739 (set_case_command): Likewise.
1740 (set_range_case): Likewise.
1741 (unknown_language_data): Remove la_case_sensitivity initializer.
1742 (auto_language_data): Likewise.
1743 * language.h (case_mode): Delete, move enum declaration to
1745 (language_data): Delete la_case_sensitivity field.
1746 (language_defn::case_sensitivity): New member function.
1747 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
1749 * objc-lang.c (objc_language_data): Likewise.
1750 * opencl-lang.c (opencl_language_data): Likewise.
1751 * p-lang.c (pascal_language_data): Likewise.
1752 * rust-lang.c (rust_language_data): Likewise.
1754 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1756 * ada-lang.c (ada_language_data): Remove la_range_check
1758 * c-lang.c (c_language_data): Likewise.
1759 (cplus_language_data): Likewise.
1760 (asm_language_data): Likewise.
1761 (minimal_language_data): Likewise.
1762 * d-lang.c (d_language_data): Likewise.
1763 * f-lang.c (f_language_data): Likewise.
1764 (f_language::range_checking_on_by_default): New member function.
1765 * go-lang.c (go_language_data): Remove la_range_check initializer.
1766 * language.c (enum range_mode): Moved here from language.h.
1767 (range_mode): Made static.
1768 (show_range_command): Update to use
1769 range_checking_on_by_default.
1770 (set_range_command): Likewise.
1771 (set_range_case): Likewise.
1772 (unknown_language_data): Remove la_range_check initializer.
1773 (auto_language_data): Likewise.
1774 * language.h (range_mode): Delete. Enum definition moved to
1776 (language_data): Remove la_range_check field.
1777 (language_defn::range_checking_on_by_default): New member
1779 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
1780 (m2_language::range_checking_on_by_default): New member function.
1781 * objc-lang.c (objc_language_data): Remove la_range_check
1783 * opencl-lang.c (opencl_language_data): Likewise.
1784 * p-lang.c (pascal_language_data): Likewise.
1785 (pascal_language::range_checking_on_by_default): New member
1787 * rust-lang.c (rust_language_data): Remove la_range_check
1789 (rust_language::range_checking_on_by_default): New member
1792 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1794 * dwarf2/read.c (dwarf2_physname): Remove special case for
1796 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
1799 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1801 * ada-lang.c (ada_language_data): Remove
1802 la_store_sym_names_in_linkage_form_p initializer.
1803 (ada_language::store_sym_names_in_linkage_form_p): New member
1805 * c-lang.c (c_language_data): Remove
1806 la_store_sym_names_in_linkage_form_p initializer.
1807 (c_language::store_sym_names_in_linkage_form_p): New member
1809 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
1811 (asm_language_data): Likewise.
1812 (asm_language::store_sym_names_in_linkage_form_p): New member
1814 (minimal_language_data): Remove
1815 la_store_sym_names_in_linkage_form_p initializer.
1816 (minimal_language::store_sym_names_in_linkage_form_p): New member
1818 * d-lang.c (d_language_data): Remove
1819 la_store_sym_names_in_linkage_form_p initializer.
1820 * dwarf2/read.c (dwarf2_physname): Update call to
1821 store_sym_names_in_linkage_form_p.
1822 * f-lang.c (f_language_data): Remove
1823 la_store_sym_names_in_linkage_form_p initializer.
1824 * go-lang.c (go_language_data): Remove
1825 la_store_sym_names_in_linkage_form_p initializer.
1826 * language.c (unknown_language_data): Remove
1827 la_store_sym_names_in_linkage_form_p initializer.
1828 (unknown_language::store_sym_names_in_linkage_form_p): New member
1830 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
1832 (auto_language::store_sym_names_in_linkage_form_p): New member
1834 * language.h (language_data): Remove
1835 la_store_sym_names_in_linkage_form_p member variable.
1836 (language_defn::store_sym_names_in_linkage_form_p): New member
1838 * m2-lang.c (m2_language_data): Remove
1839 la_store_sym_names_in_linkage_form_p initializer.
1840 * objc-lang.c (objc_language_data): Likewise.
1841 * opencl-lang.c (opencl_language_data): Likewise.
1842 * p-lang.c (pascal_language_data): Likewise.
1843 * rust-lang.c (rust_language_data): Likewise.
1845 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1847 * ada-lang.c (ada_language_data): Remove string_lower_bound
1849 * c-lang.c (c_language_data): Likewise.
1850 (cplus_language_data): Likewise.
1851 (asm_language_data): Likewise.
1852 (minimal_language_data): Likewise.
1853 * d-lang.c (d_language_data): Likewise.
1854 * f-lang.c (f_language_data): Likewise.
1855 * go-lang.c (go_language_data): Likewise.
1856 * language.c (unknown_language_data): Likewise.
1857 (auto_language_data): Likewise.
1858 * language.h (language_data): Remove string_lower_bound field.
1859 (language_defn::string_lower_bound): New member function.
1860 * m2-lang.c (m2_language_data): Remove string_lower_bound
1862 (m2_language::string_lower_bound): New member function.
1863 * objc-lang.c (objc_language_data): Remove string_lower_bound
1865 * opencl-lang.c (opencl_language_data): Likewise.
1866 * p-lang.c (pascal_language_data): Likewise.
1867 * rust-lang.c (rust_language_data): Likewise.
1868 * valops.c (value_cstring): Update call to string_lower_bound.
1869 (value_string): Likewise.
1870 * value.c (allocate_repeated_value): Likewise.
1872 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1874 * valops.c (value_repeat): Fix incorrect argument name in comment.
1876 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1878 * ada-lang.c (ada_language_data): Remove c_style_arrays
1880 (ada_language::c_style_arrays_p): New member fuction.
1881 * c-lang.c (c_language_data): Remove c_style_arrays
1883 (cplus_language_data): Likewise.
1884 (asm_language_data): Likewise.
1885 (minimal_language_data): Likewise.
1886 * d-lang.c (d_language_data): Likewise.
1887 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
1888 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
1889 (f_language::c_style_arrays_p): New member function.
1890 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
1891 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
1892 * language.c (unknown_language_data): Remove c_style_arrays
1894 (auto_language_data): Likewise.
1895 * language.h (language_data): Remove c_style_arrays field.
1896 (language_defn::c_style_arrays_p): New member function.
1897 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
1898 (m2_language::c_style_arrays_p): New member function.
1899 * objc-lang.c (objc_language_data): Remove c_style_arrays
1901 * opencl-lang.c (opencl_language_data): Likewise.
1902 * p-lang.c (pascal_language_data): Likewise.
1903 * rust-lang.c (rust_language_data): Likewise.
1904 * valarith.c (value_subscript): Update call to c_style_arrays_p,
1905 and update local variable to a bool.
1906 * valops.c (value_cast): Update call to c_style_arrays_p.
1907 (value_array): Likewise.
1908 * value.c (coerce_array): Likewise.
1910 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1912 * ada-lang.c (ada_language_data): Remove la_language initializer.
1913 * c-lang.c (c_language_data): Likewise.
1914 (cplus_language_data): Likewise.
1915 (asm_language_data): Likewise.
1916 (minimal_language_data): Likewise.
1917 * d-lang.c (d_language_data): Likewise.
1918 * f-lang.c (f_language_data): Likewise.
1919 * go-lang.c (go_language_data): Likewise.
1920 * language.c (unknown_language_data): Likewise.
1921 (auto_language_data): Likewise.
1922 * language.h (language_data): Remove la_language field.
1923 (language_defn::language_defn): Initialise la_language field.
1924 (language_defn::la_language): New member variable.
1925 * m2-lang.c (m2_language_data): Remove la_language field.
1926 * objc-lang.c (objc_language_data): Likewise.
1927 * opencl-lang.c (opencl_language_data): Likewise.
1928 * p-lang.c (pascal_language_data): Likewise.
1929 * rust-lang.c (rust_language_data): Likewise.
1931 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1933 * ada-lang.c (ada_extensions): Delete, moved into
1934 ada_language::filename_extensions.
1935 (ada_language_data): Remove la_filename_extensions initializer.
1936 (ada_language::filename_extensions): New member function.
1937 * c-lang.c (c_extensions): Delete, moved into
1938 c_language::filename_extensions.
1939 (c_language_data): Remove la_filename_extensions initializer.
1940 (c_language::filename_extensions): New member function.
1941 (cplus_extensions): Delete, moved into
1942 cplus_language::filename_extensions.
1943 (cplus_language_data): Remove la_filename_extensions initializer.
1944 (cplus_language::filename_extensions): New member function.
1945 (asm_extensions): Delete, moved into
1946 asm_language::filename_extensions.
1947 (asm_language_data): Remove la_filename_extensions initializer.
1948 (asm_language::filename_extensions): New member function.
1949 (minimal_language_data): Remove la_filename_extensions
1951 * d-lang.c (d_extensions): Delete, moved into
1952 d_language::filename_extensions.
1953 (d_language_data): Remove la_filename_extensions initializer.
1954 (d_language::filename_extensions): New member function.
1955 * f-lang.c (f_extensions): Delete, moved into
1956 f_language::filename_extensions.
1957 (f_language_data): Remove la_filename_extensions initializer.
1958 (f_language::filename_extensions): New member function.
1959 * go-lang.c (go_language_data): Remove la_filename_extensions
1961 * language.c (add_set_language_command): Update now that
1962 filename_extensions returns a vector.
1963 (unknown_language_data): Remove la_filename_extensions
1965 (auto_language_data): Likewise.
1966 * language.h (language_data): Remove la_filename_extensions field.
1967 (language_defn::filename_extensions): New member function.
1968 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1970 * objc-lang.c (objc_extensions): Delete, moved into
1971 objc_language::filename_extensions.
1972 (objc_language_data): Remove la_filename_extensions initializer.
1973 (objc_language::filename_extensions): New member function.
1974 * opencl-lang.c (opencl_language_data): Remove
1975 la_filename_extensions initializer.
1976 * p-lang.c (pascal_extensions): Delete, moved into
1977 pascal_language::filename_extensions.
1978 (pascal_language_data): Remove la_filename_extensions initializer.
1979 (pascal_language::filename_extensions): New member function.
1980 * rust-lang.c (rust_extensions): Delete, moved into
1981 rust_language::filename_extensions.
1982 (rust_language_data): Remove la_filename_extensions initializer.
1983 (rust_language::filename_extensions): New member function.
1984 * symfile.c (add_filename_language): Add new assert.
1986 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1988 * ada-lang.c (ada_language_data): Remove la_name and
1989 la_natural_name initializers.
1990 (ada_language::name): New member function.
1991 (ada_language::natural_name): New member function.
1992 * c-lang.c (c_language_data): Remove la_name and
1993 la_natural_name initializers.
1994 (c_language::name): New member function.
1995 (c_language::natural_name): New member function.
1996 (cplus_language_data): Remove la_name and
1997 la_natural_name initializers.
1998 (cplus_language::name): New member function.
1999 (cplus_language::natural_name): New member function.
2000 (asm_language_data): Remove la_name and
2001 la_natural_name initializers.
2002 (asm_language::name): New member function.
2003 (asm_language::natural_name): New member function.
2004 (minimal_language_data): Remove la_name and
2005 la_natural_name initializers.
2006 (minimal_language::name): New member function.
2007 (minimal_language::natural_name): New member function.
2008 * compile/compile.c (compile_to_object): Update call to
2009 lanugage_defn::name.
2010 * d-lang.c (d_language_data): Remove la_name and
2011 la_natural_name initializers.
2012 (d_language::name): New member function.
2013 (d_language::natural_name): New member function.
2014 * expprint.c (print_subexp_standard): Update call to
2015 language_defn::name.
2016 (dump_raw_expression): Likewise
2017 (dump_prefix_expression): Likewise.
2018 * f-lang.c (f_language_data): Remove la_name and
2019 la_natural_name initializers.
2020 (f_language::name): New member function.
2021 (f_language::natural_name): New member function.
2022 * go-lang.c (go_language_data): Remove la_name and
2023 la_natural_name initializers.
2024 (go_language::name): New member function.
2025 (go_language::natural_name): New member function.
2026 * language.c (show_language_command): Update call to
2027 language_defn::name.
2028 (set_language_command): Likewise.
2029 (language_enum): Likewise.
2030 (language_str): Likewise.
2031 (add_set_language_command): Likewise, use
2032 language_defn::natural_name in the doc string.
2033 (unknown_language_data): Remove la_name and
2034 la_natural_name initializers.
2035 (unknown_language::name): New member function.
2036 (unknown_language::natural_name): New member function.
2037 (auto_language_data): Remove la_name and
2038 la_natural_name initializers.
2039 (auto_language::name): New member function.
2040 (auto_language::natural_name): New member function.
2041 (language_lookup_primitive_type_as_symbol): Update call to
2042 language_defn::name.
2043 * language.h (language_data): Remove la_name and la_natural_name
2045 (language_defn::name): New member function.
2046 (language_defn::natural_name): New member function.
2047 * m2-lang.c (m2_language_data): Remove la_name and
2048 la_natural_name initializers.
2049 (m2_language::name): New member function.
2050 (m2_language::natural_name): New member function.
2051 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2052 language_defn::natural_name.
2053 * objc-lang.c (objc_language_data): Remove la_name and
2054 la_natural_name initializers.
2055 (objc_language::name): New member function.
2056 (objc_language::natural_name): New member function.
2057 * opencl-lang.c (opencl_language_data): Remove la_name and
2058 la_natural_name initializers.
2059 (opencl_language::name): New member function.
2060 (opencl_language::natural_name): New member function.
2061 * p-lang.c (pascal_language_data): Remove la_name and
2062 la_natural_name initializers.
2063 (pascal_language::name): New member function.
2064 (pascal_language::natural_name): New member function.
2065 * rust-lang.c (rust_language_data): Remove la_name and
2066 la_natural_name initializers.
2067 (rust_language::name): New member function.
2068 (rust_language::natural_name): New member function.
2069 * symtab.c (lookup_language_this): Update call to
2070 language_defn::name.
2072 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2074 * ada-lang.c (ada_language_data): Remove la_name_of_this
2076 * ax-gdb.c (gen_expr): Update call to name_of_this.
2077 * c-exp.y (classify_name): Likewise.
2078 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2079 (cplus_language_data): Likewise.
2080 (cplus_language::name_of_this): New member function.
2081 (asm_language_data): Remove la_name_of_this initializer.
2082 (minimal_language_data): Likewise.
2083 * d-lang.c (d_language_data): Likewise.
2084 (d_language::name_of_this): New member function.
2085 * expprint.c (print_subexp_standard): Update call to name_of_this.
2086 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2087 * go-lang.c (go_language_data): Likewise.
2088 * language.c (unknown_language_data): Likewise.
2089 (unknown_language::name_of_this): New member function.
2090 (auto_language_data): Remove la_name_of_this initializer.
2091 (auto_language::name_of_this): New member function.
2092 * language.h (language_data): Delete la_name_of_this member
2094 (language_defn::name_of_this): New member function.
2095 * m2-lang.c (m2_language_data): Remove la_name_of_this
2097 * objc-lang.c (objc_language_data): Likewise.
2098 (objc_language::name_of_this): New member function.
2099 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2101 * p-lang.c (pascal_language_data): Likewise.
2102 (pascal_language::name_of_this): New member function.
2103 * rust-lang.c (rust_language_data): Remove la_name_of_this
2105 * symtab.c (lookup_language_this): Update call to name_of_this.
2106 (lookup_symbol_aux): Likewise.
2107 * valops.c (value_of_this): Likewise.
2109 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2111 * ada-lang.c (ada_language_data): Remove
2112 la_struct_too_deep_ellipsis initializer.
2113 (ada_language::struct_too_deep_ellipsis): New member function.
2114 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2116 (cplus_language_data): Likewise.
2117 (asm_language_data): Likewise.
2118 (minimal_language_data): Likewise.
2119 * cp-valprint.c (cp_print_value): Update call to
2120 struct_too_deep_ellipsis.
2121 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2123 * f-lang.c (f_language_data): Likewise.
2124 (f_language::struct_too_deep_ellipsis): New member function.
2125 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2127 * language.c (unknown_language_data): Likewise.
2128 (auto_language_data): Likewise.
2129 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2131 (language_defn::struct_too_deep_ellipsis): New member function.
2132 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2134 * objc-lang.c (objc_language_data): Likewise.
2135 * opencl-lang.c (opencl_language_data): Likewise.
2136 * p-lang.c (pascal_language_data): Likewise.
2137 * rust-lang.c (rust_language_data): Likewise.
2138 * valprint.c (val_print_check_max_depth): Update call to
2139 struct_too_deep_ellipsis.
2141 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2143 * MAINTAINERS (Write After Approval): Add myself.
2145 2020-09-15 Tom Tromey <tom@tromey.com>
2147 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2150 2020-09-15 Tom Tromey <tom@tromey.com>
2152 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2153 and TYPE_CODE_METHODPTR cases.
2154 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2155 (c_value_print_inner): Update.
2156 * valprint.c (generic_value_print_memberptr): New function, from
2157 c_value_print_memberptr.
2158 (generic_value_print): Use it. Call cplus_print_method_ptr.
2160 2020-09-15 Tom Tromey <tromey@adacore.com>
2162 * python/python-internal.h (PyInt_FromLong): Remove define.
2163 * python/py-value.c (convert_value_from_python): Use
2164 gdb_py_object_from_longest.
2165 * python/py-type.c (typy_get_code): Use
2166 gdb_py_object_from_longest.
2167 * python/py-symtab.c (salpy_get_line): Use
2168 gdb_py_object_from_longest.
2169 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2170 gdb_py_object_from_longest.
2171 * python/py-record.c (recpy_gap_reason_code): Use
2172 gdb_py_object_from_longest.
2173 * python/py-record-btrace.c (recpy_bt_insn_size)
2174 (recpy_bt_func_level, btpy_list_count): Use
2175 gdb_py_object_from_longest.
2176 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2177 gdb_py_object_from_longest. Fix error handling.
2178 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2179 gdb_py_object_from_longest.
2180 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2181 gdb_py_object_from_longest.
2182 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2183 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2184 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2186 2020-09-15 Tom Tromey <tromey@adacore.com>
2188 * python/python.c (gdbpy_parameter_value): Use
2189 gdb_py_object_from_ulongest.
2191 2020-09-15 Tom Tromey <tromey@adacore.com>
2193 * python/py-infevents.c (create_register_changed_event_object):
2194 Use gdb_py_object_from_longest.
2195 * python/py-exitedevent.c (create_exited_event_object): Use
2196 gdb_py_object_from_longest.
2198 2020-09-15 Tom Tromey <tromey@adacore.com>
2200 * python/python.c (gdbpy_parameter_value): Use
2201 gdb_py_object_from_longest.
2202 * python/py-type.c (convert_field, typy_range): Use
2203 gdb_py_object_from_longest.
2204 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2205 gdb_py_object_from_longest.
2206 * python/py-lazy-string.c (stpy_get_length): Use
2207 gdb_py_object_from_longest.
2208 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2209 gdb_py_object_from_longest.
2210 * python/py-infevents.c (create_memory_changed_event_object): Use
2211 gdb_py_object_from_longest.
2212 * python/py-inferior.c (infpy_get_num): Use
2213 gdb_py_object_from_longest.
2214 (infpy_get_pid): Likewise.
2216 2020-09-15 Tom Tromey <tromey@adacore.com>
2218 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2220 * python/py-value.c (valpy_long): Use
2221 gdb_py_object_from_ulongest.
2222 * python/py-symtab.c (salpy_get_pc): Use
2223 gdb_py_object_from_ulongest.
2224 (salpy_get_last): Likewise.
2225 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2226 gdb_py_object_from_ulongest.
2227 * python/py-lazy-string.c (stpy_get_address): Use
2228 gdb_py_object_from_ulongest.
2229 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2230 * python/py-arch.c (archpy_disassemble): Use
2231 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2234 2020-09-15 Tom Tromey <tromey@adacore.com>
2236 * python/python-internal.h (gdb_py_long_from_longest): Remove
2238 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2239 * python/py-type.c (convert_field, typy_get_sizeof): Use
2240 gdb_py_object_from_longest.
2241 * python/py-record-btrace.c (btpy_list_index): Use
2242 gdb_py_object_from_longest.
2244 2020-09-15 Tom Tromey <tromey@adacore.com>
2246 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2247 * python/py-record.c (recpy_element_number): Use
2248 gdb_py_object_from_longest.
2249 (recpy_gap_number): Likewise.
2251 2020-09-15 Tom Tromey <tromey@adacore.com>
2253 * top.c (ui::ui): Update.
2254 (highest_ui_num): Remove.
2255 * top.h (struct ui) <num>: Remove.
2257 2020-09-15 Tom Tromey <tromey@adacore.com>
2259 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2260 * ui-style.c (ansi_regex_text): Now array.
2261 * rust-exp.y (number_regex_text): Now array.
2262 * linespec.c (linespec_quote_characters): Now array.
2263 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2266 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2268 * debuginfod-support.c (debuginfod_client_deleter): New.
2269 (debuginfod_client_up): New.
2270 (debuginfod_init): Return debuginfod_client_up.
2271 (debuginfod_source_query): Adjust.
2272 (debuginfod_debuginfo_query): Adjust.
2274 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2276 * debuginfod-support.c (debuginfod_source_query): Use
2277 make_unique_xstrdup.
2279 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2281 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2282 with `type::instance_flags`.
2284 2020-09-14 Michael Mullin <masmullin@gmail.com>
2286 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2287 Remove baton parameter.
2289 2020-09-14 Pedro Alves <pedro@palves.net>
2291 * Makefile.in (SELFTESTS_SRCS): Add
2292 unittests/enum-flags-selftests.c.
2293 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2294 btrace_function_flags instead of enum btrace_function_flag.
2295 * compile/compile-c-types.c (convert_qualified): Use
2297 * compile/compile-cplus-symbols.c (convert_one_symbol)
2298 (convert_symbol_bmsym):
2299 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2300 (compile_cplus_convert_struct_or_union_methods)
2301 (compile_cplus_instance::convert_qualified_base):
2302 * go-exp.y (parse_string_or_char): Add cast to int.
2303 * unittests/enum-flags-selftests.c: New file.
2304 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2305 type to btrace_thread_flags from btrace_thread_flag.
2306 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2307 local's type to btrace_thread_flags from btrace_thread_flag. Add
2310 2020-09-14 Pedro Alves <pedro@palves.net>
2312 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2313 * gdbtypes.c (address_space_name_to_int): Rename to ...
2314 (address_space_name_to_type_instance_flags): ... this.
2315 (address_space_int_to_name): Rename to ...
2316 (address_space_type_instance_flags_to_name): ... this.
2317 * gdbtypes.h (address_space_name_to_int): Rename to ...
2318 (address_space_name_to_type_instance_flags): ... this.
2319 (address_space_int_to_name): Rename to ...
2320 (address_space_type_instance_flags_to_name): ... this.
2321 * type-stack.c (type_stack::insert): Adjust to rename.
2322 * type-stack.h (type_stack::insert): Likewise.
2324 2020-09-14 Pedro Alves <pedro@palves.net>
2325 Andrew Burgess <andrew.burgess@embecosm.com>
2327 * avr-tdep.c (avr_address_class_type_flags): Return
2328 type_instance_flags.
2329 (avr_address_class_type_flags_to_name): Take a
2330 type_instance_flags.
2331 (avr_address_class_name_to_type_flags): Return bool and take a
2332 type_instance_flags.
2333 * d-lang.c (build_d_types): Use type::set_instance_flags.
2334 * ft32-tdep.c (ft32_address_class_type_flags): Return
2335 type_instance_flags.
2336 (ft32_address_class_type_flags_to_name): Take a
2337 type_instance_flags.
2338 (ft32_address_class_name_to_type_flags): Return bool and take a
2339 type_instance_flags.
2340 (ft32_gdbarch_init): Use type::set_instance_flags.
2341 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2342 * gdbarch.h, gdbarch.c: Regenerate.
2343 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2344 (address_class_name_to_type_flags): Use type_instance_flags and
2346 * gdbtypes.c (address_space_name_to_int)
2347 (address_space_int_to_name, make_qualified_type): Use
2348 type_instance_flags.
2349 (make_qualified_type): Use type_instance_flags and
2350 type::set_instance_flags.
2351 (make_type_with_address_space, make_cv_type, make_vector_type)
2352 (check_typedef): Use type_instance_flags.
2353 (recursive_dump_type): Cast type_instance_flags to unsigned for
2355 (copy_type_recursive): Use type::set_instance_flags.
2356 (gdbtypes_post_init): Use type::set_instance_flags.
2357 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2358 <m_instance_flags>: ... this.
2359 <instance_flags, set_instance_flags>: New methods.
2360 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2361 (SET_TYPE_INSTANCE_FLAGS): New.
2362 (address_space_name_to_int, address_space_int_to_name)
2363 (make_type_with_address_space): Pass flags using
2364 type_instance_flags instead of int.
2365 * stabsread.c (cleanup_undefined_types_noname): Use
2366 type::set_instance_flags.
2367 * s390-tdep.c (s390_address_class_type_flags): Return
2368 type_instance_flags.
2369 (s390_address_class_type_flags_to_name): Take a
2370 type_instance_flags.
2371 (s390_address_class_name_to_type_flags): Return bool and take a
2372 type_instance_flags.
2373 * type-stack.c (type_stack::follow_types): Use
2374 type_instance_flags.
2375 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2377 2020-09-14 Tom Tromey <tromey@adacore.com>
2379 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2380 * x86-tdep.c (x86_is_thunk_register_name)
2381 (x86_in_indirect_branch_thunk): Update.
2382 * sparc64-tdep.c (sparc64_fpu_register_names)
2383 (sparc64_cp0_register_names, sparc64_register_names)
2384 (sparc64_pseudo_register_names): Now const.
2385 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2386 cp0_registers_num>: Now const.
2387 * sparc-tdep.c (sparc_core_register_names)
2388 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2389 (sparc32_pseudo_register_names): Now const.
2390 (validate_tdesc_registers): Update.
2391 * rust-lang.c (rust_extensions): Now const.
2392 * p-lang.c (p_extensions): Now const.
2393 * objc-lang.c (objc_extensions): Now const.
2394 * nto-tdep.c (nto_thread_state_str): Now const.
2395 * moxie-tdep.c (moxie_register_names): Now const.
2396 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2398 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2399 (mips_linux_reg_names): Now const.
2400 (mips_gdbarch_init): Update.
2401 * microblaze-tdep.c (microblaze_register_names): Now const.
2402 * m68k-tdep.c (m68k_register_names): Now const.
2403 * m32r-tdep.c (m32r_register_names): Now const.
2404 * ia64-tdep.c (ia64_register_names): Now const.
2405 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2406 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2407 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2408 ymm_avx512_register_names, pkeys_register_names>: Now const.
2409 * i386-tdep.c (i386_register_names, i386_zmm_names)
2410 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2411 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2412 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2413 * f-lang.c (f_extensions): Now const.
2414 * d-lang.c (d_extensions): Now const.
2415 * csky-tdep.c (csky_register_names): Now const.
2416 * charset.c (default_charset_names, charset_enum): Now const.
2417 (_initialize_charset): Update.
2418 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2420 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2421 (bsd_uthread_solib_loaded): Update.
2422 (bsd_uthread_state): Now const.
2423 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2424 (amd64_ymm_avx512_names, amd64_ymmh_names)
2425 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2426 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2427 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2428 (amd64_dword_names): Now const.
2429 * agent.c (can_use_agent_enum): Now const.
2430 * ada-tasks.c (task_states, long_task_states): Now const.
2431 * ada-lang.c (known_runtime_file_name_patterns)
2432 (known_auxiliary_function_name_patterns, attribute_names)
2433 (standard_exc, ada_extensions): Now const.
2435 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2437 * bcache.h (struct bcache) <bcache>: Remove constructor.
2438 <m_hash_function, m_compare_function>: Remove.
2439 <~bcache>: Make virtual.
2440 <compare>: Remove static method, introduce virtual method.
2441 <default_hash>: Remove.
2442 <hash>: New virtual method.
2443 * bcache.c (bcache::expand_hash_table): Update.
2444 (bcache::insert): Update.
2445 (bcache::hash): New.
2446 (bcache::compare): Update comment and parameter names.
2447 * gdbtypes.c (types_deeply_equal): Update.
2448 * psymtab.h (struct psymbol_bcache): New struct.
2449 (class psymtab_storage) <psymtab_storage>: Make default.
2450 <psymbol_cache>: Change type to psymbol_bcache.
2451 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2452 (psymbol_hash): Change to...
2453 (psymbol_bcache::hash): ... this.
2454 (psymbol_compare): Change to...
2455 (psymbol_bcache::compare): ... this.
2457 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2459 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2460 checking for initial lwp.
2462 2020-09-14 Tom Tromey <tromey@adacore.com>
2464 * m68k-tdep.c (m68k_extract_return_value): Use
2465 pointer_result_regnum.
2466 (m68k_store_return_value): Likewise.
2467 (m68k_reg_struct_return_p): Handle vectors and arrays.
2468 (m68k_return_value): Handle arrays.
2469 (m68k_svr4_return_value): Fix single-element aggregate handling.
2470 Handle long double. Adjust for embedded ABI.
2471 (m68k_svr4_init_abi): Set pointer_result_regnum.
2472 (m68k_embedded_init_abi): New function.
2473 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2474 (m68k_osabi_sniffer): New function.
2475 (_initialize_m68k_tdep): Register osabi sniffer.
2476 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2479 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2481 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2482 with gdb::unique_xmalloc_ptr<char>.
2484 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2486 * xml-support.h (xml_fetch_another): Change type to be a
2488 (xml_process_xincludes): Remove baton parameter.
2489 (xml_fetch_content_from_file): Change baton parameter to
2491 * xml-support.c (struct xinclude_parsing_data)
2492 <xinclude_parsing_data>: Remove baton parameter.
2493 <fetcher_baton>: Remove.
2494 (xinclude_start_include): Adjust.
2495 (xml_process_xincludes): Adjust.
2496 (xml_fetch_content_from_file): Replace baton parameter with
2498 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2499 (xml_init_syscalls_info): Use a lambda.
2500 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2501 (file_read_description_xml): Use a lambda.
2502 (fetch_available_features_from_target): Change baton parameter
2504 (target_read_description_xml): Use a lambda.
2505 (target_fetch_description_xml): Use a lambda.
2506 (string_read_description_xml): Update.
2508 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2510 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2511 uses with type::endianity_is_not_default.
2513 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2515 * gdbtypes.h (struct type) <endianity_is_not_default,
2516 set_endianity_is_not_default>: New methods.
2517 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2518 type::endianity_is_not_default, change all write call sites to
2519 use type::set_endianity_is_not_default.
2521 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2523 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2524 uses with type::is_fixed_instance.
2526 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2528 * gdbtypes.h (struct type) <is_fixed_instance,
2529 set_is_fixed_instance>: New methods.
2530 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2531 write call sites to use type::set_is_fixed_instance.
2533 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2535 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2536 uses with type::is_gnu_ifunc.
2538 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2540 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2541 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2542 use type::set_is_gnu_ifunc.
2544 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2546 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2547 uses with type::stub_is_supported.
2549 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2551 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2552 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2553 use type::set_stub_is_supported.
2555 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2557 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2558 uses with type::is_vector.
2560 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2562 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2563 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2564 use type::set_is_vector.
2566 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2568 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2569 uses with type::has_varargs.
2571 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2573 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2574 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2575 use type::set_has_varargs.
2577 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2579 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2580 uses with type::is_prototyped.
2582 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2584 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2586 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2587 call sites to use type::set_is_prototyped.
2589 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2591 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2592 uses with type::target_is_stub.
2594 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2596 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2598 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2599 sites to use type::set_target_is_stub.
2601 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2603 * gdbtypes.h (TYPE_STUB): Remove, replace all
2604 uses with type::is_stub.
2606 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2608 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2609 (TYPE_STUB): Use type::is_stub, change all write call sites to
2610 use type::set_is_stub.
2612 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2614 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2615 type::has_no_signedness.
2617 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2619 * gdbtypes.h (struct type) <has_no_signedness,
2620 set_has_no_signedness>: New methods.
2621 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2622 call sites to use type::set_has_no_signedness.
2624 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2626 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2629 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2631 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2633 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2634 sites to use type::set_is_unsigned.
2636 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
2637 Adam Renquinha <arenquinha@cimeq.qc.ca>
2639 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2640 pointer and stack frame offset when unwinding.
2642 2020-09-13 Pedro Alves <pedro@palves.net>
2644 * NEWS: Document "-break-insert --qualified".
2645 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2647 2020-09-13 Pedro Alves <pedro@palves.net>
2649 * linespec.c (classify_mtype, compare_msyms): Delete.
2650 (search_minsyms_for_name): Remove classification logic. Instead
2651 filter out trampoline symbols if we also found an external
2652 function of the same name.
2654 2020-09-13 Joel Brobecker <brobecker@adacore.com>
2656 * NEWS: Create a new section for the next release branch.
2657 Rename the section of the current branch, now that it has
2660 2020-09-13 Joel Brobecker <brobecker@adacore.com>
2662 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
2663 * version.in: Bump version to 11.0.50.DATE-git.
2665 2020-09-12 Joel Brobecker <brobecker@adacore.com>
2667 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
2669 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
2670 Felix Willgerodt <Felix.Willgerodt@intel.com>
2672 * gdbarch.sh: Added bfloat16 type.
2673 * gdbarch.c: Regenerated.
2674 * gdbarch.h: Regenerated.
2675 * gdbtypes.c (floatformats_bfloat16): New struct.
2676 (gdbtypes_post_init): Add builtin_bfloat16.
2677 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
2678 (floatformats_bfloat16): New struct.
2679 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
2680 (i386_ymm_type): Add field "v16_bfloat16"
2681 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
2682 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
2683 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
2684 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
2685 * features/i386/64bit-avx512.xml: Add bfloat16 type.
2686 * features/i386/64bit-avx512.c: Regenerated.
2687 * features/i386/64bit-sse.xml: Add bfloat16 type.
2688 * features/i386/64bit-sse.c: Regenerated.
2690 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
2692 * i386-tdep.c (i386_zmm_type): Fix field names.
2693 (i386_ymm_type): Fix field names.
2695 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2697 * breakpoint.c: Fix typo in the help message of the
2698 "set breakpoint condition-evaluation" command.
2700 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2702 * nbsd-nat.c: Include "nat/netbsd-nat.h".
2703 * (nbsd_nat_target::pid_to_exec_file)
2704 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
2705 (nbsd_nat_target::post_startup_inferior)
2706 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
2707 (nbsd_add_threads): Switch local code to common gdb/nat functions.
2708 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
2709 * (nbsd_thread_lister): Remove.
2711 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2713 * fork-inferior.c (startup_inferior): Avoid double free.
2715 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2717 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
2718 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
2720 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2722 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
2723 * netbsd-nat.c: Include <sys/ptrace.h>.
2724 * (netbsd_nat::enable_proc_events): Add.
2726 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2728 * netbsd-nat.h: Include "gdbsupport/function-view.h".
2729 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2730 (netbsd_nat::for_each_thread): Add.
2731 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
2732 "gdbsupport/common-debug.h".
2733 * (netbsd_nat::netbsd_thread_lister)
2734 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
2735 (netbsd_nat::for_each_thread): Add.
2737 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2739 * netbsd-nat.h: Include <unistd.h>.
2740 * (netbsd_nat::pid_to_exec_file): Add.
2741 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
2742 * (netbsd_nat::pid_to_exec_file) Add.
2744 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2746 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
2748 2020-09-10 Kamil Rytarowski <n54@gmx.com>
2750 * netbsd-nat.h: New file.
2751 * netbsd-nat.c: Likewise.
2753 2020-09-09 Tom Tromey <tromey@adacore.com>
2755 * ada-lang.c (remove_extra_symbols): Do not increment when
2758 2020-09-08 Tom Tromey <tromey@adacore.com>
2760 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
2762 2020-09-08 Tom Tromey <tromey@adacore.com>
2765 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
2766 (gdb_bfd_init_data): New function.
2767 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
2769 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2771 * infrun.c (fetch_inferior_event): Use
2772 `switch_to_target_no_thread` to switch the target.
2774 2020-09-06 Tom Tromey <tom@tromey.com>
2776 * symfile.h (dwarf2_free_objfile): Don't declare.
2778 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2780 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
2781 to match 16 byte real/complex type generated by Flang compiler.
2783 2020-09-03 Tom de Vries <tdevries@suse.de>
2786 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
2787 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
2789 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
2791 * maint.c (index_digits): New function.
2792 (struct maint_print_section_data): Remove.
2793 (print_bfd_section_info): Remove print_data parameter, add arg
2795 (print_objfile_section_info): Likewise.
2796 (print_bfd_section_info_maybe_relocated): Likewise (plus
2798 (maintenance_info_sections): Adjust calls.
2800 2020-09-02 Tom Tromey <tromey@adacore.com>
2802 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
2804 (ada_varobj_adjust_for_child_access): Special-case null pointers.
2806 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
2808 * bcache.h (struct bcache) <insert>: Change type of `added` to
2810 * bcache.c (bcache::insert): Likewise.
2811 * gdbtypes.c (check_types_worklist): Adjust.
2812 * psymtab.c (add_psymbol_to_bcache): Adjust.
2814 2020-08-31 Kevin Buettner <kevinb@redhat.com>
2816 * corelow.c (unordered_set): Include.
2817 (class core_target): Add field 'm_core_unavailable_mappings'.
2818 (core_target::build_file_mappings): Print only one warning
2819 per inaccessible file. Add unavailable/broken mappings
2820 to m_core_unavailable_mappings.
2821 (core_target::xfer_partial): Call...
2822 (core_target::xfer_memory_via_mappings): New method.
2824 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2826 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
2829 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
2831 * dwarf2/read.c (struct field_info): Fix indentation.
2833 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2835 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
2836 ordering in comment.
2837 * frame.c (frame_id_eq): Fix indentation.
2839 2020-08-31 Scott Linder <scott@scottlinder.com>
2840 Simon Marchi <simon.marchi@efficios.com>
2842 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
2843 inline frame ids in outer frame.
2845 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2847 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
2848 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
2849 (outer_frame_id): Use FID_STACK_OUTER instead of
2851 (frame_id_p): Don't check for outer_frame_id.
2853 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2855 * frame-unwind.c (frame_unwind_got_optimized): Don't set
2856 regnum/frame in value. Call allocate_value_lazy.
2857 * frame.c (frame_unwind_register_value): Use
2858 val_print_not_saved.
2860 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
2862 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
2864 2020-08-29 Pedro Alves <pedro@palves.net>
2866 * progspace.c (print_program_space): Use all_inferiors. Switch to
2867 the inferior before calling target_pid_to_str.
2869 2020-08-28 Tom Tromey <tom@tromey.com>
2871 * xcoffread.c (xcoff_end_psymtab): Update comment.
2872 * dbxread.c (dbx_end_psymtab): Update comment.
2874 2020-08-28 Tom de Vries <tdevries@suse.de>
2877 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
2879 (create_breakpoint): Same.
2880 (base_breakpoint_decode_location): Same.
2881 (bkpt_create_sals_from_location): Same.
2882 (bkpt_decode_location): Same.
2883 (bkpt_probe_create_sals_from_location): Same.
2884 (bkpt_probe_decode_location): Same.
2885 (tracepoint_create_sals_from_location): Same.
2886 (tracepoint_decode_location): Same.
2887 (tracepoint_probe_decode_location): Same.
2888 (strace_marker_create_sals_from_location): Same.
2889 (strace_marker_decode_location): Same.
2890 (create_sals_from_location_default): Same.
2891 (decode_location_default): Same.
2892 * breakpoint.h (struct breakpoint_ops): Same.
2893 (create_breakpoint): Same.
2894 * linespec.h (decode_line_full): Same.
2895 * linespec.c (decode_line_full): Same. Throw error if
2896 result.size () == 0.
2898 2020-08-27 Pedro Alves <pedro@palves.net>
2901 * breakpoint.c (until_break_fsm) <location_breakpoint,
2902 caller_breakpoint>: Delete fields.
2903 <breakpoints>: New field.
2904 <until_break_fsm>: Adjust to save a breakpoint vector instead of
2905 two individual breakpoints.
2906 (until_break_fsm::should_stop): Loop over breakpoints in the
2908 (until_break_fsm::clean_up): Adjust to clear the breakpoints
2910 (until_break_command): Handle location expanding into multiple
2913 2020-08-27 Pedro Alves <pedro@palves.net>
2916 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
2917 bp_until breakpoints user-specified locations. Update intro
2920 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
2922 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
2923 gdb_bfd_sections): New.
2924 * maint.c (print_bfd_section_info): Change param type to
2925 maint_print_section_data.
2926 (print_objfile_section_info): Likewise.
2927 (print_bfd_section_info_maybe_relocated): Likewise.
2928 (maintenance_info_sections): Use gdb_bfd_sections.
2930 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2932 * MAINTAINERS: Add ARC target and maintainer.
2934 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
2936 * configure.tgt: ARC support for GNU/Linux.
2937 * Makefile.in (ALL_TARGET_OBJS): Likewise.
2938 * arc-linux-tdep.c: New file.
2939 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
2940 * arc-tdep.c (arc_write_pc): Use it.
2942 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2944 * arc-tdep.c (arc_check_for_hardware_loop): New.
2945 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
2947 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2949 * arc-tdep.h: Include "gdbarch.h".
2951 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2954 (arc_gdbarch_features): New class to stir the selection of target XML.
2955 (arc_create_target_description): Use FEATURES to choose XML target.
2956 (arc_lookup_target_description): Use arc_create_target_description
2957 to create _new_ target descriptions or return the already created
2958 ones if the FEATURES is the same.
2959 * arch/arc.c: Implementation of prototypes described above.
2960 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2961 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2962 * arc-tdep.c (*_feature_name): Make feature names consistent.
2963 (arc_register_feature): A new struct to hold information about
2964 registers of a particular target/feature.
2965 (arc_check_tdesc_feature): Check if XML provides registers in
2966 compliance with ARC_REGISTER_FEATURE structs.
2967 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2968 (determine_*_reg_feature_set): Which feature name to look for.
2969 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2970 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2971 to expected ISA enums to be used in arc_gdbarch_features structs.
2972 * features/Makefile (FEATURE_XMLFILES): Add new files.
2973 * gdb/features/arc/v1-aux.c: New file.
2974 * gdb/features/arc/v1-aux.xml: Likewise.
2975 * gdb/features/arc/v1-core.c: Likewise.
2976 * gdb/features/arc/v1-core.xml: Likewise.
2977 * gdb/features/arc/v2-aux.c: Likewise.
2978 * gdb/features/arc/v2-aux.xml: Likewise.
2979 * gdb/features/arc/v2-core.c: Likewise.
2980 * gdb/features/arc/v2-core.xml: Likewise.
2981 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2983 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2984 Andrew Burgess <andrew.burgess@embecosm.com>
2987 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
2988 an assert. Remove single element array indexing pattern as the
2989 MULTI_SUBSCRIPT support will handle this case too.
2991 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2993 * value.h (valprint_check_validity): Move declaration from
2995 * valprint.h (valprint_check_validity): ... to here.
2997 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
2999 * debug.h: New file.
3000 * debug.c (debug_prefixed_vprintf): New function.
3001 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3002 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3004 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3006 * infrun.h (infrun_debug_printf_1): New function declaration.
3007 (infrun_debug_printf): New macro.
3008 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3010 (infrun_debug_printf): New function.
3011 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3012 (handle_jit_event): Likewise.
3014 2020-08-21 Mark Wielaard <mark@klomp.org>
3016 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3018 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
3020 * frame.c (enum class frame_id_status): New.
3021 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3022 (fprintf_frame): Update.
3023 (compute_frame_id): Set frame id status to "computing" on entry.
3024 Set it back to "not_computed" on failure and to "computed" on
3026 (get_frame_id): Assert the frame id is not being computed.
3027 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3028 (create_new_frame): Likewise.
3029 (frame_cleanup_after_sniffer): Update assert.
3031 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3033 * regcache.c (pid_ptid_regcache_map): New type.
3034 (target_ptid_regcache_map): Remove.
3035 (target_pid_ptid_regcache_map): New type.
3036 (regcaches): Change type to target_pid_ptid_regcache_map.
3037 (get_thread_arch_aspace_regcache): Update.
3038 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3040 (regcaches_size): Update.
3041 (regcache_count): Update.
3042 (registers_changed_ptid_target_pid_test): New.
3043 (_initialize_regcache): Register new test.
3045 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3047 * regcache.c (regcache_count): New.
3048 (struct regcache_test_data): New.
3049 (regcache_test_data_up): New.
3050 (populate_regcaches_for_test): New.
3051 (regcaches_test): Remove.
3052 (get_thread_arch_aspace_regcache_test): New.
3053 (registers_changed_ptid_all_test): New.
3054 (registers_changed_ptid_target_test): New.
3055 (registers_changed_ptid_target_ptid_test): New.
3056 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3057 (_initialize_regcache): Register new tests.
3059 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3061 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3062 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3063 gdbarch and aspace parameter. Use current inferior's aspace.
3064 Validate regcache's arch value.
3065 (regcaches_test): Update.
3067 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3069 * regcache.c (regcaches_test): Call registers_changed.
3071 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3073 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3075 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3077 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3078 to find the end of prologue for flang compiled binaries.
3079 * arm-tdep.c (arm_skip_prologue): Likewise.
3080 * i386-tdep.c (i386_skip_prologue): Likewise.
3081 * producer.c (producer_is_llvm): New function.
3082 (producer_parsing_tests): Added new tests for clang/flang.
3083 * producer.h (producer_is_llvm): New declaration.
3085 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
3087 * linux-nat.c (linux_nat_debug_printf): New function.
3088 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3090 2020-08-18 Aaron Merey <amerey@redhat.com>
3092 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3093 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3094 (CLIBS): Add DEBUGINFOD_LIBS.
3096 2020-08-17 Sergei Trofimovich <siarheit@google.com>
3098 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3101 2020-08-17 Tom Tromey <tromey@adacore.com>
3103 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3104 ada_get_decoded_value returns NULL.
3106 2020-08-17 Tom Tromey <tromey@adacore.com>
3108 * python/py-inferior.c (infpy_search_memory): Use
3109 gdb_py_object_from_ulongest.
3110 * python/py-infevents.c (create_inferior_call_event_object)
3111 (create_memory_changed_event_object): Use
3112 gdb_py_object_from_ulongest.
3113 * python/py-linetable.c (ltpy_entry_get_pc): Use
3114 gdb_py_object_from_ulongest.
3116 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3118 * loc.c (class symbol_needs_eval_context): Fix indentation.
3120 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3122 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3125 2020-08-17 Tom de Vries <tdevries@suse.de>
3128 * gdbtypes.c (dump_dynamic_prop): New function.
3129 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3131 2020-08-15 Tom de Vries <tdevries@suse.de>
3134 * stack.c (print_frame_args): Temporarily set the selected
3135 frame to FRAME while printing the frame's arguments.
3137 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3139 PR breakpoints/26385
3140 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3141 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3143 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3145 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3146 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3147 and >= to check return value instead of == -1 and != -1.
3149 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3151 * utils.h (class gdb_argv) <as_array_view>: New method.
3152 * utils.c (gdb_argv_as_array_view_test): New.
3153 (_initialize_utils): Register selftest.
3154 * maint.c (maintenance_selftest): Use the new method.
3156 2020-08-13 Kamil Rytarowski <n54@gmx.com>
3158 * target.h (supports_dumpcore, dumpcore): New
3159 function declarations.
3160 * target.c (supports_dumpcore, dumpcore): New
3162 * target-delegates.c: Rebuild.
3163 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3164 and target_dumpcore ().
3166 2020-08-13 Aaron Merey <amerey@redhat.com>
3168 * debuginfod-support.c: Replace global variables with user_data.
3170 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3172 * maint.c (maintenance_selftest): Split args and pass array_view
3175 2020-08-12 Luis Machado <luis.machado@linaro.org>
3177 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3179 Use %s and pulongest to print the length.
3181 2020-08-12 Pedro Alves <palves@redhat.com>
3183 * NEWS: Move "Multi-target debugging support" item to the
3184 "Changes since GDB 9" section.
3186 2020-08-12 Pedro Alves <palves@redhat.com>
3189 * progspace.c (program_space::remove_objfile): Invalidate the
3192 2020-08-11 Tom de Vries <tdevries@suse.de>
3194 * MAINTAINERS: Mark ms1 as deleted.
3196 2020-08-10 Luis Machado <luis.machado@linaro.org>
3200 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3202 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3203 movz/str/stur/stp skipping behavior.
3205 2020-08-10 Luis Machado <luis.machado@linaro.org>
3207 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3208 struct user_sve_header instead of struct sve_context.
3210 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3212 * read.h (dwarf2_fetch_die_loc_sect_off,
3213 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3214 `void *` parameter with function_view.
3215 * read.c (dwarf2_fetch_die_loc_sect_off,
3216 dwarf2_fetch_die_loc_cu_off): Likewise.
3217 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3218 (per_cu_dwarf_call): Adjust.
3219 (get_frame_address_in_block_wrapper): Remove.
3220 (indirect_synthetic_pointer): Adjust.
3221 (get_ax_pc): Remove.
3222 (dwarf2_compile_expr_to_ax): Adjust.
3224 2020-08-08 Tom de Vries <tdevries@suse.de>
3227 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3229 * regcache.c (get_thread_arch_aspace_regcache): Same.
3231 2020-08-07 Tom Tromey <tromey@adacore.com>
3233 * ravenscar-thread.c
3234 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3236 (ravenscar_thread_target::wait): Check
3237 runtime_initialized.
3238 (ravenscar_thread_target::prepare_to_store)
3239 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3240 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3241 (ravenscar_thread_target::stopped_by_watchpoint)
3242 (ravenscar_thread_target::stopped_data_address)
3243 (ravenscar_thread_target::core_of_thread): Use
3244 scoped_restore_current_thread and
3245 set_base_thread_from_ravenscar_task.
3247 2020-08-07 Tom Tromey <tromey@adacore.com>
3249 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3251 2020-08-07 Tom Tromey <tromey@adacore.com>
3253 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3254 update_inferior_ptid before update_thread_list.
3255 (temporarily_change_regcache_ptid): New class.
3256 (ravenscar_thread_target::fetch_registers)
3257 (ravenscar_thread_target::store_registers)
3258 (ravenscar_thread_target::prepare_to_store): Use base thread when
3259 forwarding operation.
3261 2020-08-07 Tom Tromey <tromey@adacore.com>
3263 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3266 2020-08-07 Tom Tromey <tromey@adacore.com>
3268 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3270 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3272 (ravenscar_thread_target::add_thread): Rename from
3273 ravenscar_add_thread.
3274 (ravenscar_thread_target::update_thread_list): Use a lambda.
3275 (ravenscar_thread_target::xfer_partial): New method.
3277 2020-08-07 Tom Tromey <tromey@adacore.com>
3279 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3281 (iterate_over_live_ada_tasks): Change type of argument.
3282 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3285 2020-08-07 Tom Tromey <tromey@adacore.com>
3287 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3289 (ravenscar_thread_target::extra_thread_info): Remove.
3290 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3291 defer to target beneath for non-Ravenscar threads.
3293 2020-08-07 Tom Tromey <tromey@adacore.com>
3295 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3296 get_base_thread_from_ravenscar_task>: Now methods.
3297 <m_cpu_map>: New member.
3298 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3299 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3300 (ravenscar_thread_target::task_is_currently_active): Update.
3301 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3303 (ravenscar_thread_target::add_active_thread): Put initial thread
3306 2020-08-07 Tom Tromey <tromey@adacore.com>
3308 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3311 2020-08-07 Tom Tromey <tromey@adacore.com>
3313 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3314 runtime_initialized.
3316 2020-08-07 Tom Tromey <tromey@adacore.com>
3318 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3320 (ravenscar_thread_target::add_active_thread): Now public.
3321 (ravenscar_inferior_created): Call add_active_thread after pushing
3324 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3326 * regcache.c (ptid_regcache_map): New type.
3327 (target_ptid_regcache_map): New type.
3328 (regcaches): Change type to target_ptid_regcache_map.
3329 (get_thread_arch_aspace_regcache): Update to regcaches' new
3331 (regcache_thread_ptid_changed): Likewise.
3332 (registers_changed_ptid): Likewise.
3333 (regcaches_size): Likewise.
3334 (regcaches_test): Update.
3335 (regcache_thread_ptid_changed): Update.
3336 * regcache.h (regcache_up): New type.
3337 * gdbsupport/ptid.h (hash_ptid): New struct.
3339 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
3341 * observable.h (thread_ptid_changed): Add parameter
3342 `process_stratum_target *`.
3343 * infrun.c (infrun_thread_ptid_changed): Add parameter
3344 `process_stratum_target *` and use it.
3345 (selftests): New namespace.
3346 (infrun_thread_ptid_changed): New function.
3347 (_initialize_infrun): Register selftest.
3348 * regcache.c (regcache_thread_ptid_changed): Add parameter
3349 `process_stratum_target *` and use it.
3350 (regcache_thread_ptid_changed): New function.
3351 (_initialize_regcache): Register selftest.
3352 * thread.c (thread_change_ptid): Pass target to
3353 thread_ptid_changed observable.
3355 2020-08-06 Caroline Tice <cmtice@google.com>
3357 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3358 (struct dwp_sections): Update field comments. Add loclists and
3360 (struct virtual_v2_dwo_sections): Rename struct to
3361 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3362 size & offset fields for loclists and rnglists.
3363 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3364 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3365 skipping dummy type units.
3366 (create_dwp_hash_table): Update the large comment above the function to
3367 discuss Version 5 DWP files as well, with references. Update all the
3368 version checks in the function to check for version 5 as well. Add new
3369 section at the end to create dwp hash table for version 5.
3370 (create_dwp_v2_section): Rename function to
3371 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3372 Add V5 to error message text.
3373 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3374 into calls to create_dwp_v2_or_v5_section.
3375 (create_dwo_unit_in_dwp_v5): New function.
3376 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3377 check for version2; add else clause to handle version 5.
3378 (open_and_init_dwo_file): Add code to check dwarf version & only call
3379 create_debug_types_hash_table (with sections.types) if version is not 5;
3380 else call create_debug_type_hash_table, with sections.info.
3381 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3383 (dwarf2_locate_v5_dwp_sections): New function.
3384 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3385 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
3387 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
3389 * regcache.h (class regcache): Remove friend
3390 registers_changed_ptid.
3391 <regcache_thread_ptid_changed>: Remove.
3392 <regcaches>: Remove.
3393 * regcache.c (regcache::regcaches): Rename to...
3394 (regcaches): ... this. Make static.
3395 (get_thread_arch_aspace_regcache): Update.
3396 (regcache::regcache_thread_ptid_changed): Rename to...
3397 (regcache_thread_ptid_changed): ... this. Update.
3398 (class regcache_access): Remove.
3399 (regcaches_test): Update.
3400 (_initialize_regcache): Update.
3401 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3404 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
3406 * regcache.h (class regcache) <current_regcache>: Rename to...
3407 <regcaches>: ... this. Move doc here.
3408 * regcache.c (regcache::current_regcache) Rename to...
3409 (regcache::regcaches): ... this. Move doc to header.
3410 (get_thread_arch_aspace_regcache): Update.
3411 (regcache::regcache_thread_ptid_changed): Update.
3412 (registers_changed_ptid): Update.
3413 (class regcache_access) <current_regcache_size>: Rename to...
3414 <regcaches_size>: ... this.
3415 (current_regcache_test): Rename to...
3416 (regcaches_test): ... this.
3417 (_initialize_regcache): Update.
3419 2020-08-06 Victor Collod <vcollod@nvidia.com>
3421 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3423 2020-08-05 Kevin Buettner <kevinb@redhat.com>
3425 * corelow.c (core_target::build_file_mappings): Don't output
3426 null pathname in warning.
3428 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3430 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3431 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3432 gdb.dwarf2/dw2-single-line-discriminators.exp,
3433 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3435 2020-08-05 Tom Tromey <tromey@adacore.com>
3438 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3439 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3440 Fix off-by-one and type size errors in ordinary case.
3442 2020-08-05 Tom de Vries <tdevries@suse.de>
3444 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3445 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3447 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
3449 * frame.h (frame_id_p): Return bool.
3450 (frame_id_artificial_p): Return bool.
3451 (frame_id_eq): Return bool.
3452 (has_stack_frames): Return bool.
3453 (get_selected_frame): Fix typo in comment.
3454 (get_frame_pc_if_available): Return bool.
3455 (get_frame_address_in_block_if_available): Return bool.
3456 (get_frame_func_if_available): Return bool.
3457 (read_frame_register_unsigned): Return bool.
3458 (get_frame_register_bytes): Return bool.
3459 (safe_frame_unwind_memory): Return bool.
3460 (deprecated_frame_register_read): Return bool.
3461 (frame_unwinder_is): Return bool.
3462 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3464 <this_id::p>: Likewise.
3466 (frame_stash_add): Return bool.
3467 (get_frame_id): Use bool.
3468 (frame_id_build_special) Use bool.
3469 (frame_id_build_unavailable_stack): Use bool.
3470 (frame_id_build): Use bool.
3471 (frame_id_p): Return bool, use true/false instead of 1/0.
3472 (frame_id_artificial_p): Likewise.
3473 (frame_id_eq): Likewise.
3474 (frame_id_inner): Likewise.
3475 (get_frame_func_if_available): Likewise.
3476 (read_frame_register_unsigned): Likewise.
3477 (deprecated_frame_register_read): Likewise.
3478 (get_frame_register_bytes): Likewise.
3479 (has_stack_frames): Likewise.
3480 (inside_main_func): Likewise.
3481 (inside_entry_func): Likewise.
3482 (get_frame_pc_if_available): Likewise.
3483 (get_frame_address_in_block_if_available): Likewise.
3484 (frame_unwinder_is): Likewise.
3485 (safe_frame_unwind_memory): Likewise.
3486 (frame_unwind_arch): Likewise.
3488 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
3490 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3491 type to cached_copy_status.
3492 (fprintf_frame): Adjust.
3493 (get_frame_func_if_available): Adjust.
3494 (frame_cleanup_after_sniffer): Adjust.
3496 2020-08-04 Mark Wielaard <mark@klomp.org>
3498 * MAINTAINERS (Write After Approval): Update email address.
3500 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3502 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3503 dynamic_prop::const_val.
3505 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3507 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3510 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3512 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3514 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3516 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3518 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
3519 Jose E. Marchesi <jose.marchesi@oracle.com>
3521 * configure.tgt: Add entry for bpf-*-*.
3522 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3523 (ALLDEPFILES): Add bpf-tdep.c.
3524 * bpf-tdep.c: New file.
3525 * MAINTAINERS: Add bpf target and maintainer.
3526 * NEWS: Mention the support for the new target.
3528 2020-08-04 Tom de Vries <tdevries@suse.de>
3531 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3534 2020-08-03 John Baldwin <jhb@FreeBSD.org>
3536 * syscalls/freebsd.xml: Regenerate.
3538 2020-08-03 John Baldwin <jhb@FreeBSD.org>
3540 * syscalls/update-freebsd.sh: Fix usage and year range.
3542 2020-08-03 Tom de Vries <tdevries@suse.de>
3545 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3546 DW_LNE_lo_user/DW_LNE_hi_user range.
3548 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3551 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3554 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3556 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3558 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3560 * breakpoint.c (set_breakpoint_condition): Update the condition
3561 expressions after checking that the input condition string parses
3562 successfully and does not contain junk at the end.
3564 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3566 * breakpoint.c (set_breakpoint_condition): Update the
3567 condition string after parsing the new condition successfully.
3569 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3571 * proc-api.c (_STRUCTURED_PROC): Don't define.
3572 * proc-events.c: Likewise.
3573 * proc-flags.c: Likewise.
3574 * proc-why.c: Likewise.
3575 * procfs.c: Likewise.
3577 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3578 * configure, config.in: Regenerate.
3580 2020-07-30 Tom de Vries <tdevries@suse.de>
3583 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3584 m_red/m_green/m_blue in a union.
3586 2020-07-29 Tom de Vries <tdevries@suse.de>
3589 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3591 2020-07-28 Tom Tromey <tromey@adacore.com>
3594 * symtab.h (find_pc_partial_function_sym): Declare.
3595 * cli/cli-cmds.c (disassemble_command): Use
3596 find_pc_partial_function_sym. Check asm_demangle.
3597 * blockframe.c (cache_pc_function_sym): New global.
3598 (cache_pc_function_name): Remove.
3599 (clear_pc_function_cache): Update.
3600 (find_pc_partial_function_sym): New function, from
3601 find_pc_partial_function.
3602 (find_pc_partial_function): Rewrite using
3603 find_pc_partial_function_sym.
3605 2020-07-28 Tom Tromey <tromey@adacore.com>
3607 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3610 2020-07-28 Tom Tromey <tromey@adacore.com>
3612 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3613 <DW_OP_GNU_variable_value>: Cast to address type.
3615 2020-07-28 Kamil Rytarowski <n54@gmx.com>
3617 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3618 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3619 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3620 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3621 (nbsd_get_siginfo_type): New.
3622 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3623 (_initialize_nbsd_tdep): New.
3625 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3628 * configure: Regenerated.
3630 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3633 * configure: Regenerated.
3635 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3637 * python/py-frame.c: Remove 'user-regs.h' include.
3638 (frapy_read_register): Rewrite to make use of
3639 gdbpy_parse_register_id.
3640 * python/py-registers.c (gdbpy_parse_register_id): New function,
3641 moved here from python/py-unwind.c. Updated the return type, and
3642 also accepts register descriptor objects.
3643 * python/py-unwind.c: Remove 'user-regs.h' include.
3644 (pyuw_parse_register_id): Moved to python/py-registers.c.
3645 (unwind_infopy_add_saved_register): Update to use
3646 gdbpy_parse_register_id.
3647 (pending_framepy_read_register): Likewise.
3648 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3650 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3652 * python/py-registers.c: Add 'user-regs.h' include.
3653 (register_descriptor_iter_find): New function.
3654 (register_descriptor_iterator_object_methods): New static global
3656 (register_descriptor_iterator_object_type): Add pointer to methods
3659 2020-07-27 John Baldwin <jhb@FreeBSD.org>
3661 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
3662 for all architectures on FreeBSD 11.3 and later.
3664 2020-07-27 Tom Tromey <tromey@adacore.com>
3666 * gcore.h (load_corefile): Don't declare.
3668 2020-07-27 Tom de Vries <tdevries@suse.de>
3670 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
3671 * config.in: Regenerate.
3672 * configure: Regenerate.
3674 2020-07-26 Eli Zaretskii <eliz@gnu.org>
3676 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
3677 ws2tcpip.h. When checking whether socklen_t type is defined, use
3678 ws2tcpip.h if it is available and sys/socket.h isn't.
3679 * configure: Regenerate.
3680 * config.in: Regenerate.
3682 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
3686 * valops.c (value_ind): Pass address to
3687 readjust_indirect_value_type.
3688 * value.c (readjust_indirect_value_type): Make parameter
3689 non-const, and add extra address parameter. Resolve original type
3691 * value.h (readjust_indirect_value_type): Update function
3692 signature and comment.
3694 2020-07-25 Tom de Vries <tdevries@suse.de>
3697 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
3700 2020-07-24 Aaron Merey <amerey@redhat.com>
3702 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
3703 * configure: Rebuild.
3705 2020-07-23 Kevin Buettner <kevinb@redhat.com>
3708 * corelow.c (_initialize_corelow): Add period to help text
3709 for "maintenance print core-file-backed-mappings".
3711 2020-07-23 Pedro Alves <pedro@palves.net>
3713 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
3714 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
3716 * frame.c (frame_cache_generation, get_frame_cache_generation):
3718 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
3719 (get_prev_frame_if_no_cycle): On exception, don't touch
3720 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
3721 * frame.h (get_frame_cache_generation): Declare.
3723 2020-07-23 Tom de Vries <tdevries@suse.de>
3726 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
3727 New default constructor.
3729 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
3731 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
3732 exclude non-statement entries.
3734 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3736 * NEWS (New commands): Mention new command
3737 "maintenance print core-file-backed-mappings".
3739 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3741 * corelow.c (gdbcmd.h): Include.
3742 (core_target::info_proc_mappings): New method.
3743 (get_current_core_target): New function.
3744 (maintenance_print_core_file_backed_mappings): New function.
3745 (_initialize_corelow): Add core-file-backed-mappings to
3746 "maint print" commands.
3748 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3750 * linux-tdep.c (dump_note_entry_p): New function.
3751 (linux_dump_mapping_p_ftype): New typedef.
3752 (linux_find_memory_regions_full): Add new parameter,
3753 should_dump_mapping_p.
3754 (linux_find_memory_regions): Adjust call to
3755 linux_find_memory_regions_full.
3756 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
3757 call to linux_find_memory_regions_full.
3759 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3761 * corelow.c (solist.h, unordered_map): Include.
3762 (class core_target): Add field m_core_file_mappings and
3763 method build_file_mappings.
3764 (core_target::core_target): Call build_file_mappings.
3765 (core_target::~core_target): Free memory associated with
3766 m_core_file_mappings.
3767 (core_target::build_file_mappings): New method.
3768 (core_target::xfer_partial): Use m_core_file_mappings
3769 for memory transfers.
3770 * linux-tdep.c (linux_read_core_file_mappings): New
3772 (linux_core_info_proc_mappings): Rewrite to use
3773 linux_read_core_file_mappings.
3774 (linux_init_abi): Register linux_read_core_file_mappings.
3776 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3778 * arch-utils.c (default_read_core_file_mappings): New function.
3779 * arch-utils.c (default_read_core_file_mappings): Declare.
3780 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
3781 * gdbarch.h, gdbarch.c: Regenerate.
3783 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3786 * corelow.c (core_target:xfer_partial): Revise
3787 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
3788 case after first checking the stratum beneath the core
3790 (has_all_memory): Return true.
3791 * target.c (raw_memory_xfer_partial): Revise comment
3792 regarding use of has_all_memory.
3794 2020-07-22 Kevin Buettner <kevinb@redhat.com>
3796 * exec.h (section_table_xfer_memory): Revise declaration,
3797 replacing section name parameter with an optional callback
3799 * exec.c (section_table_xfer_memory): Likewise.
3800 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
3801 of section_table_xfer_memory.
3803 2020-07-22 Tom Tromey <tromey@adacore.com>
3805 * mi/mi-cmd-stack.c (list_args_or_locals): Use
3806 lookup_symbol_search_name.
3808 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3810 * python/py-registers.c (gdbpy_register_object_data_init): Remove
3811 redundant local variable.
3812 (gdbpy_get_register_descriptor): Extract descriptor vector as a
3813 reference, not pointer, update code accordingly.
3815 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3816 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3818 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
3819 * jit.c (jit_breakpoint_re_set_internal): Use the
3820 `skip_jit_symbol_lookup` field.
3822 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3823 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3825 * jit.c (jit_read_descriptor): Define the descriptor address once,
3827 (jit_breakpoint_deleted): Move the declaration of the loop variable
3828 `iter` into the loop header.
3829 (jit_breakpoint_re_set_internal): Move the declaration of the local
3830 variable `objf_data` to the first point of definition.
3831 (jit_event_handler): Move the declaration of local variables
3832 `code_entry`, `entry_addr`, and `objf` to their first point of use.
3833 Rename `objf` to `jited`.
3835 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3837 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
3839 * jit.c (get_jiter_objfile_data): Update.
3841 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3842 Simon Marchi <simon.marchi@polymtl.ca>
3844 * jit.c (struct jit_program_space_data): Remove.
3845 (jit_program_space_key): Remove.
3846 (jiter_objfile_data::~jiter_objfile_data): Remove program space
3848 (get_jit_program_space_data): Remove.
3849 (jit_breakpoint_deleted): Iterate on all of the program space's
3851 (jit_inferior_init): Likewise.
3852 (jit_breakpoint_re_set_internal): Likewise. Also change return
3854 (jit_breakpoint_re_set): Pass current_program_space to
3855 jit_breakpoint_re_set_internal.
3857 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3859 * jit.h (struct jiter_objfile_data) <cached_code_address,
3860 jit_breakpoint>: Move to here from ...
3861 * jit.c (jit_program_space_data): ... here.
3862 (jiter_objfile_data::~jiter_objfile_data): Update.
3863 (jit_breakpoint_deleted): Update.
3864 (jit_breakpoint_re_set_internal): Update.
3866 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3868 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
3870 (jit_read_descriptor): Remove NULL check.
3871 (jit_event_handler): Add an assertion.
3873 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3875 * jit.h (struct jit_objfile_data): Split into...
3876 (struct jiter_objfile_data): ... this ...
3877 (struct jited_objfile_data): ... and this.
3878 * objfiles.h (struct objfile) <jit_data>: Remove.
3879 <jiter_data, jited_data>: New fields.
3880 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
3881 (jiter_objfile_data::~jiter_objfile_data): ... this.
3882 (get_jit_objfile_data): Rename to ...
3883 (get_jiter_objfile_data): ... this.
3884 (add_objfile_entry): Update.
3885 (jit_read_descriptor): Use get_jiter_objfile_data.
3886 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
3887 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
3888 (jit_inferior_exit_hook): Use objfile's jited_data field.
3890 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
3892 * jit.h: Forward-declare `struct minimal_symbol`.
3893 (struct jit_objfile_data): Migrate to here from jit.c; also add a
3894 constructor, destructor, and an objfile* field.
3895 * jit.c (jit_objfile_data): Remove.
3896 (struct jit_objfile_data): Migrate from here to jit.h.
3897 (jit_objfile_data::~jit_objfile_data): New destructor
3898 implementation with code moved from free_objfile_data.
3899 (free_objfile_data): Delete.
3900 (get_jit_objfile_data): Update to use the jit_data field of objfile.
3901 (jit_find_objf_with_entry_addr): Ditto.
3902 (jit_inferior_exit_hook): Ditto.
3903 (_initialize_jit): Remove the call to
3904 register_objfile_data_with_cleanup.
3905 * objfiles.h (struct objfile) <jit_data>: New field.
3907 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3909 * jit.h: Forward-declare `struct objfile`.
3910 (jit_event_handler): Add a second parameter, the JITer objfile.
3911 * jit.c (jit_read_descriptor): Change the signature to take the
3912 JITer objfile as an argument instead of the jit_program_space_data.
3913 (jit_inferior_init): Update the call to jit_read_descriptor.
3914 (jit_event_handler): Use the new JITer objfile argument when calling
3915 jit_read_descriptor.
3916 * breakpoint.c (handle_jit_event): Update the call to
3917 jit_event_handler to pass the JITer objfile.
3919 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3921 * gdbarch.c: Regenerate.
3922 * gdbarch.h: Regenerate.
3923 * gdbarch.sh (handle_segmentation_fault): Remove method.
3924 * infrun.c (handle_segmentation_fault): Remove.
3925 (print_signal_received_reason): Remove call to
3926 handle_segmentation_fault.
3928 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3930 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
3931 Rename to sparc64_linux_report_signal_info and add siggnal
3933 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
3934 instead of sparc64_linux_handle_segmentation_fault.
3936 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3938 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
3939 i386_linux_report_signal_info instead of
3940 i386_linux_handle_segmentation_fault.
3941 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
3942 to i386_linux_report_signal_info and add siggnal argument.
3943 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
3944 of i386_linux_handle_segmentation_fault.
3945 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
3946 to i386_linux_report_signal_info and add siggnal argument.
3948 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3950 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3953 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3955 * gdbarch.c: Regenerate.
3956 * gdbarch.h: Regenerate.
3957 * gdbarch.sh (report_signal_info): New method.
3958 * infrun.c (print_signal_received_reason): Invoke gdbarch
3959 report_signal_info hook if present.
3961 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3963 * python/py-registers.c : Add 'unordered_map' include.
3964 (gdbpy_new_reggroup): Renamed to...
3965 (gdbpy_get_reggroup): ...this. Update to only create register
3966 group descriptors when needed.
3967 (gdbpy_reggroup_iter_next): Update.
3969 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3971 * python/py-registers.c (gdbpy_register_object_data): New static
3973 (gdbpy_register_object_data_init): New function.
3974 (gdbpy_new_register_descriptor): Renamed to...
3975 (gdbpy_get_register_descriptor): ...this, and update to reuse
3976 existing register descriptors where possible.
3977 (gdbpy_register_descriptor_iter_next): Update.
3978 (gdbpy_initialize_registers): Register new gdbarch data.
3980 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
3982 * linux-nat.c (stopped_pids): Make static.
3984 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3987 * gdbtypes.c (ada_discrete_type_low_bound,
3988 ada_discrete_type_high_bound): Handle undefined bounds.
3990 2020-07-21 Kamil Rytarowski <n54@gmx.com>
3992 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3994 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3997 2020-07-20 John Baldwin <jhb@FreeBSD.org>
3999 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4000 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4001 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4002 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4003 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4006 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4008 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4009 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4010 which are deprecated in Guile 3.0.
4011 * configure.ac (try_guile_versions): Add "guile-3.0".
4012 * configure (try_guile_versions): Regenerate.
4013 * NEWS: Update entry.
4015 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4016 Doug Evans <dje@google.com>
4019 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4020 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4021 USING_GUILE_BEFORE_2_2.
4022 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4023 Change type to 'scm_t_port_type *'.
4024 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4025 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4026 parameter and honor it. Update callers.
4027 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4028 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4030 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4031 USING_GUILE_BEFORE_2_2.
4032 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4033 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4034 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4035 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4036 and 'SCM_PORT_TYPE'.
4037 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4038 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4039 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4040 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4041 [!USING_GUILE_BEFORE_2_2]: New functions.
4042 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4043 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4044 'gdbscm_memory_port_read'.
4045 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4046 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4047 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4049 (ioscm_init_memory_port): Remove.
4050 (ioscm_init_memory_port_stream): New function
4051 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4053 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4054 Return scm_from_uint (0).
4055 (gdbscm_set_memory_port_read_buffer_size_x)
4056 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4057 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4058 Return scm_from_uint (0).
4059 (gdbscm_set_memory_port_write_buffer_size_x)
4060 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4061 * configure.ac (try_guile_versions): Add "guile-2.2".
4062 * configure: Regenerate.
4065 2020-07-18 Tom Tromey <tom@tromey.com>
4067 * linux-nat.c (linux_multi_process): Remove.
4068 (linux_nat_target::supports_multi_process): Return true.
4070 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4072 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4073 (riscv_lookup_target_description): Return pointer out of
4075 * target-descriptions.c (allocate_target_description): Add
4077 (target_desc_deleter::operator()): Likewise.
4078 * target-descriptions.h (struct target_desc_deleter): Moved to
4080 (target_desc_up): Likewise.
4082 2020-07-17 Tom Tromey <tromey@adacore.com>
4084 * linux-nat.c (linux_nat_target::supports_non_stop)
4085 (linux_nat_target::always_non_stop_p): Use "true".
4086 (linux_nat_target::supports_disable_randomization): Use "true" and
4089 2020-07-16 Caroline Tice <cmtice@google.com>
4091 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4092 (RNGLIST_HEADER_SIZE64): New constant definition.
4093 (struct dwop_section_names): Add rnglists_dwo.
4094 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4095 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4096 (struct dwo_sections): Add rnglists field.
4097 (read_attribut_reprocess): Add tag parameter.
4098 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4099 (cu_debug_rnglists_section): New function (decl & definition).
4100 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4101 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4102 die whose range is being checked; get rnglist section from
4103 cu_debug_rnglists_section, to get from either objfile or dwo file as
4104 appropriate. Add cases for DW_RLE_base_addressx,
4105 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4106 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4107 test inside if-condition and updating complaint message.
4108 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4109 dwarf2_rnglists_process.
4110 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4111 dwarf2_ranges_process.
4112 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4113 need_ranges_base and update comment appropriately. Also pass die tag
4114 to dwarf2_ranges_read.
4115 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4116 need_ranges_base and update comment appropriately. Also pass die tag
4117 to dwarf2_ranges_process.
4118 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4119 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4120 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4121 need_ranges_base and update comment appropriately. Also pass die tag
4122 to read_attribute_reprocess and dwarf2_ranges_read.
4123 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4124 and update function comment appropriately.
4125 (read_loclist_index): Call read_loclists_rnglists_header instead of
4126 read_loclist_header.
4127 (read_rnglist_index): New function.
4128 (read_attribute_reprocess): Add tag parameter. Add code for
4129 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4130 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4132 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4134 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4137 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4139 * arch-utils.c (show_architecture): Update formatting of messages.
4141 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4143 * gdbtypes.h (struct type) <bounds>: Handle array and string
4145 * ada-lang.c (assign_aggregate): Use type::bounds on
4147 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4148 * c-varobj.c (c_number_of_children): Likewise.
4149 (c_describe_child): Likewise.
4150 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4151 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4152 (f_type_print_base): Likewise.
4153 * f-valprint.c (f77_array_offset_tbl): Likewise.
4154 (f77_get_upperbound): Likewise.
4155 (f77_print_array_1): Likewise.
4156 * guile/scm-type.c (gdbscm_type_range): Likewise.
4157 * m2-typeprint.c (m2_array): Likewise.
4158 (m2_is_long_set_of_type): Likewise.
4159 * m2-valprint.c (get_long_set_bounds): Likewise.
4160 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4161 * python/py-type.c (typy_range): Likewise.
4162 * rust-lang.c (rust_internal_print_type): Likewise.
4163 * type-stack.c (type_stack::follow_types): Likewise.
4164 * valarith.c (value_subscripted_rvalue): Likewise.
4165 * valops.c (value_cast): Likewise.
4167 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4169 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4170 callers to use the equivalent accessor methods.
4172 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4174 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4175 (struct type) <bit_stride>: New method.
4176 (TYPE_BIT_STRIDE): Remove.
4177 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4179 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4181 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4182 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4183 callers to use the equivalent accessor methods instead.
4185 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4187 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4188 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4189 callers to use the equivalent accessor methods instead.
4191 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4193 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4194 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4195 to use dynamic_prop::kind.
4197 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4199 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4200 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4201 to get the bound property's kind and check against
4204 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4206 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4207 all callers to use type::range_bounds followed by
4208 dynamic_prop::{low,high}.
4210 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4212 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4213 const_val, set_const_val, baton, set_locexpr, set_loclist,
4214 set_addr_offset, variant_parts, set_variant_parts,
4215 original_type, set_original_type>: New methods.
4216 <kind>: Rename to...
4217 <m_kind>: ... this. Update all users to use the new methods
4219 <data>: Rename to...
4220 <m_data>: ... this. Update all users to use the new methods
4223 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4225 * gdbtypes.c (get_discrete_bounds): Return failure if
4226 the range type's bounds are not both defined and constant
4228 (get_array_bounds): Update comment. Remove undefined bound check.
4230 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4232 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4233 the type::bounds method directly.
4235 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4237 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4238 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4239 are used to set the range type's bounds to use set_bounds.
4241 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4243 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4245 2020-07-10 Pedro Alves <pedro@palves.net>
4247 * gdbthread.h (inferior_ref): Define.
4248 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4249 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4251 (scoped_restore_current_thread::restore):
4252 Adjust to gdb::ref_ptr.
4253 (scoped_restore_current_thread::~scoped_restore_current_thread):
4254 Remove manual decref handling.
4255 (scoped_restore_current_thread::scoped_restore_current_thread):
4257 inferior_ref::new_reference/thread_info_ref::new_reference.
4258 Incref the thread before calling get_frame_id instead of after.
4259 Let TARGET_CLOSE_ERROR propagate.
4261 2020-07-10 Pedro Alves <pedro@palves.net>
4263 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4264 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4265 NOT_AVAILABLE_ERROR.
4266 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4267 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4269 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4270 Pedro Alves <pedro@palves.net>
4273 * infrun.c (threads_are_resumed_pending_p): Delete.
4274 (do_target_wait): Remove threads_are_executing and
4275 threads_are_resumed_pending_p checks from the inferior_matches
4276 lambda. Update comments.
4278 2020-07-10 Pedro Alves <pedro@palves.net>
4281 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4284 2020-07-10 Pedro Alves <pedro@palves.net>
4287 * infrun.c (handle_no_resumed): Handle multiple targets.
4289 2020-07-10 Pedro Alves <pedro@palves.net>
4292 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4295 2020-07-10 Pedro Alves <pedro@palves.net>
4298 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4299 threads, not all threads.
4301 2020-07-10 Pedro Alves <pedro@palves.net>
4304 * remote.c (remote_target::open_1): Pass remote target pointer as
4305 data to create_async_event_handler.
4306 (remote_async_inferior_event_handler): Mark async event handler
4307 before returning if the remote target still has either pending
4308 events or unacknowledged notifications.
4310 2020-07-10 John Baldwin <jhb@FreeBSD.org>
4312 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4314 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4317 2020-07-09 John Baldwin <jhb@FreeBSD.org>
4319 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4322 2020-07-09 John Baldwin <jhb@FreeBSD.org>
4324 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4325 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4326 AT_FREEBSD_PS_STRINGS.
4328 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
4330 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4331 of debugfile path on Windows.
4333 2020-07-08 John Baldwin <jhb@FreeBSD.org>
4335 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4338 2020-07-08 Tom Tromey <tromey@adacore.com>
4340 * ada-lang.c (ada_exception_message_1): Use read_memory.
4342 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4345 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4346 special handling for inline frames.
4347 * findvar.c (value_of_register_lazy): Skip inline frames when
4348 creating lazy register values.
4349 * frame.c (frame_id_computed_p): Delete definition.
4350 * frame.h (frame_id_computed_p): Delete declaration.
4352 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4354 * NEWS: Mention additions to Python API.
4355 * python/py-arch.c (archpy_register_groups): New function.
4356 (arch_object_methods): Add 'register_groups' method.
4357 * python/py-registers.c (reggroup_iterator_object): New struct.
4358 (reggroup_object): New struct.
4359 (gdbpy_new_reggroup): New function.
4360 (gdbpy_reggroup_to_string): New function.
4361 (gdbpy_reggroup_name): New function.
4362 (gdbpy_reggroup_iter): New function.
4363 (gdbpy_reggroup_iter_next): New function.
4364 (gdbpy_new_reggroup_iterator): New function
4365 (gdbpy_initialize_registers): Register new types.
4366 (reggroup_iterator_object_type): Define new Python type.
4367 (gdbpy_reggroup_getset): New static global.
4368 (reggroup_object_type): Define new Python type.
4369 * python/python-internal.h
4371 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4373 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4374 * python/py-arch.c (archpy_registers): New function.
4375 (arch_object_methods): Add 'registers' method.
4376 * python/py-registers.c: New file.
4377 * python/python-internal.h
4378 (gdbpy_new_register_descriptor_iterator): Declare.
4379 (gdbpy_initialize_registers): Declare.
4380 * python/python.c (do_start_initialization): Call
4381 gdbpy_initialize_registers.
4382 * NEWS: Mention additions to the Python API.
4384 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4386 * NEWS: Mention new Python API method.
4387 * python/py-unwind.c (pending_framepy_architecture): New function.
4388 (pending_frame_object_methods): Add architecture method.
4390 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4392 * gdbarch.c: Regenerate.
4393 * gdbarch.h: Regenerate.
4394 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4395 (gdbarch_data): Use internal_error for the case where
4396 deprecated_set_gdbarch_data was originally needed.
4397 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4398 and use passed in obstack.
4399 (libunwind_frame_set_descr): Should no longer get back NULL from
4401 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4403 * user-regs.c (user_regs_init): Update parameters, and use passed
4405 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4406 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4408 2020-07-06 Tom de Vries <tdevries@suse.de>
4410 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4411 End-Of-Sequence in lte_is_less_than.
4412 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4413 "gdb: Don't reorder line table entries too much when sorting".
4415 2020-07-06 Tom de Vries <tdevries@suse.de>
4418 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4420 2020-07-05 Tom de Vries <tdevries@suse.de>
4423 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4424 std::uncaught_exceptions instead of deprecated
4425 std::uncaught_exception.
4427 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4429 * macroexp.h (macro_stringify): Return
4430 gdb::unique_xmalloc_ptr<char>.
4431 * macroexp.c (macro_stringify): Likewise.
4432 * macrotab.c (fixup_definition): Update.
4434 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4436 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4437 (lex_one_token): Update.
4438 * macroexp.c (struct macro_buffer) <release>: Return
4439 gdb::unique_xmalloc_ptr<char>.
4440 (macro_stringify): Update.
4441 (macro_expand): Update.
4442 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4443 * macroexp.h (macro_expand_next): Likewise.
4445 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
4447 * macroexp.h (macro_lookup_ftype): Remove.
4448 (macro_expand, macro_expand_once, macro_expand_next): Remove
4449 lookup function parameters, add scope parameter.
4450 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4451 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4452 * macroscope.h (standard_macro_lookup): Change parameter type
4454 * macroscope.c (standard_macro_lookup): Likewise.
4455 * c-exp.y (lex_one_token): Update.
4456 * macrocmd.c (macro_expand_command): Likewise.
4457 (macro_expand_once_command): Likewise.
4459 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4461 * inf-loop.c (inferior_event_handler): Remove client_data param.
4462 * inf-loop.h (inferior_event_handler): Likewise.
4463 * infcmd.c (step_1): Adjust.
4464 * infrun.c (proceed): Adjust.
4465 (fetch_inferior_event): Remove client_data param.
4466 (infrun_async_inferior_event_handler): Adjust.
4467 * infrun.h (fetch_inferior_event): Remove `void *` param.
4468 * linux-nat.c (handle_target_event): Adjust.
4469 * record-btrace.c (record_btrace_handle_async_inferior_event):
4471 * record-full.c (record_full_async_inferior_event_handler):
4473 * remote.c (remote_async_inferior_event_handler): Adjust.
4475 2020-07-01 Tom Tromey <tom@tromey.com>
4477 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4478 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4480 2020-07-01 Tom Tromey <tom@tromey.com>
4482 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4484 (tui_win_info::make_window): Merge with
4485 tui_gen_win_info::make_window.
4486 (tui_win_info::make_visible): Move from tui_gen_win_info.
4487 * tui/tui-win.c (tui_win_info::max_width): Move from
4489 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4491 <window_factory>: Likewise.
4492 * tui/tui-layout.c (tui_win_info::resize): Move from
4494 (make_standard_window): Change return type.
4495 (get_locator_window, tui_get_window_by_name): Likewise.
4496 (tui_layout_window::apply): Remove a cast.
4497 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4498 (struct tui_win_info): Merge with tui_gen_win_info.
4499 (struct tui_gen_win_info): Remove.
4501 2020-07-01 Tom Tromey <tom@tromey.com>
4503 * tui/tui-stack.h (struct tui_locator_window): Derive from
4505 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4506 <can_box>: New method.
4508 2020-07-01 Tom Tromey <tom@tromey.com>
4510 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4512 2020-07-01 Tom Tromey <tom@tromey.com>
4514 * tui/tui-regs.c (tui_data_window::display_registers_from)
4515 (tui_data_window::display_registers_from)
4516 (tui_data_window::first_data_item_displayed)
4517 (tui_data_window::delete_data_content_windows): Update.
4518 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4520 (tui_data_window::check_register_values): Update.
4521 (tui_data_item_window::rerender): Add parameters. Update.
4522 (tui_data_item_window::refresh_window): Remove.
4523 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4525 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4527 <refresh_window, max_height, min_height>: Remove.
4528 <rerender>: Add parameters.
4529 <x, y, visible>: New members.
4530 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4531 <m_item_width>: New member.
4533 2020-07-01 Tom Tromey <tom@tromey.com>
4535 * tui/tui-regs.c (tui_data_window::show_register_group)
4536 (tui_data_window::check_register_values): Update.
4537 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4540 2020-07-01 Tom Tromey <tom@tromey.com>
4542 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4545 2020-07-01 Tom Tromey <tom@tromey.com>
4547 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4548 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4550 2020-07-01 Tom Tromey <tom@tromey.com>
4552 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4553 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4554 (struct tui_line_or_address): Move from tui-data.h.
4555 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4556 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4557 (tui_cmd_window, tui_source_window_base, tui_source_window)
4558 (tui_disasm_window): Don't declare.
4559 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4561 (SINGLE_KEY): Move to tui-stack.c.
4563 2020-07-01 Tom Tromey <tom@tromey.com>
4565 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4567 * tui/tui-regs.c (class tab_expansion_file): New.
4568 (tab_expansion_file::write): New method.
4569 (tui_register_format): Change return type. Use
4571 (tui_get_register, tui_data_window::display_registers_from)
4572 (tui_data_item_window::rerender): Update.
4573 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4574 * tui/tui-io.c (tui_expand_tabs): Remove.
4576 2020-07-01 Tom Tromey <tom@tromey.com>
4578 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4580 2020-07-01 Fangrui Song <maskray@google.com>
4582 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4584 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4586 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4587 forms for DW_AT_associated and DW_AT_allocated attributes,
4588 which is already checked in function attr_to_dynamic_prop.
4590 2020-06-30 Tom Tromey <tromey@adacore.com>
4592 * dwarf2/read.c (quirk_rust_enum): Correctly call
4593 alloc_rust_variant for default-less enum.
4595 2020-06-30 Tom Tromey <tromey@adacore.com>
4598 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4601 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
4603 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4604 * gdbarch.h: Re-generate.
4606 2020-06-28 Tom Tromey <tom@tromey.com>
4608 * command.h (cmd_types): Remove.
4609 (cmd_type): Don't declare.
4610 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4612 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4613 * cli/cli-decode.c (cmd_type): Remove.
4615 2020-06-27 Pedro Alves <palves@redhat.com>
4617 * fork-child.c (prefork_hook): Adjust.
4618 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4620 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4621 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4622 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4623 Remove declarations.
4624 (struct inferior) <set_tty, tty>: New methods.
4625 (struct inferior) <terminal>: Rename to ...
4626 (struct inferior) <m_terminal>: ... this and make private.
4627 * main.c (captured_main_1): Adjust.
4628 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4629 (mi_cmd_inferior_tty_show): Adjust.
4630 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4631 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4633 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
4635 * configure.ac: Add --enable-libctf: handle --disable-static
4637 * acinclude.m4: sinclude ../config/enable.m4.
4638 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4639 (LIBCTF): Substitute in.
4640 (CTF_DEPS): New, likewise.
4641 (CLIBS): libctf needs symbols from libbfd: move earlier.
4642 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4644 * ctfread.c: Surround in ENABLE_LIBCTF.
4645 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4646 * configure: Regenerate.
4647 * config.in: Likewise.
4649 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
4651 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4653 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
4655 * inferior.h (struct inferior) <terminal>: Change type to
4656 gdb::unique_xmalloc_ptr<char>.
4657 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4658 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4659 field, adjust to unique pointer.
4660 (get_inferior_io_terminal): Adjust to unique pointer.
4662 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4664 * riscv-tdep.c (riscv_print_registers_info): Loop over all
4665 registers, not just the known core set of registers.
4667 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4669 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
4670 fflags, frm, and fcsr registers.
4671 (riscv_register_reggroup_p): Remove unknown CSRs from save and
4673 (riscv_tdesc_unknown_reg): New function.
4674 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
4675 tdesc_use_registers.
4676 * riscv-tdep.h (struct gdbarch_tdep): Add
4677 unknown_csrs_first_regnum, unknown_csrs_count,
4678 duplicate_fflags_regnum, duplicate_frm_regnum, and
4679 duplicate_fcsr_regnum fields.
4681 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4683 * target-descriptions.c (tdesc_use_registers): Add new parameter a
4684 callback, use the callback (when not null) to help number unknown
4686 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
4687 (tdesc_use_registers): Add extra parameter to declaration.
4689 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4691 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
4693 (class riscv_pending_register_alias): Likewise.
4694 (riscv_register_feature::register_info): Change 'required_p' field
4695 to 'required', and change its type. Add 'check' member function.
4696 (riscv_register_feature::register_info::check): Define new member
4698 (riscv_xreg_feature): Change initialisation of 'required' field.
4699 (riscv_freg_feature): Likewise.
4700 (riscv_virtual_feature): Likewise.
4701 (riscv_csr_feature): Likewise.
4702 (riscv_check_tdesc_feature): Take extra parameter, the csr
4703 tdesc_feature, rewrite the function to use the new
4704 riscv_register_feature::register_info::check function.
4705 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
4707 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4709 * features/Makefile: Remove all references to the deleted files
4711 * features/riscv/32bit-csr.c: Deleted.
4712 * features/riscv/32bit-csr.xml: Deleted.
4713 * features/riscv/64bit-csr.c: Deleted.
4714 * features/riscv/64bit-csr.xml: Deleted.
4715 * features/riscv/rebuild-csr-xml.sh: Deleted.
4717 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4719 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
4720 whitespace error for declaration of names member variable.
4721 (struct riscv_register_feature): Add new prefer_first_name member
4722 variable, and fix whitespace error in declaration of registers.
4723 (riscv_xreg_feature): Initialize prefer_first_name field.
4724 (riscv_freg_feature): Likewise.
4725 (riscv_virtual_feature): Likewise.
4726 (riscv_csr_feature): Likewise.
4727 (riscv_register_name): Expand on comments. Remove register name
4728 modifications for CSR and virtual registers.
4730 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4732 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
4735 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
4737 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
4739 (class riscv_pending_register_alias): New class.
4740 (riscv_check_tdesc_feature): Take vector of pending aliases and
4741 populate it as appropriate.
4742 (riscv_setup_register_aliases): Delete.
4743 (riscv_gdbarch_init): Create vector of pending aliases and pass it
4744 to riscv_check_tdesc_feature in all cases. Use the vector to
4745 create the register aliases.
4747 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4749 * sol2-tdep.c (sol2_static_transform_name): Remove.
4750 (sol2_init_abi): Don't register it.
4751 * gdbarch.sh (static_transform_name): Remove.
4752 * gdbarch.c, gdbarch.h: Regenerate.
4754 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
4755 gdbarch_static_transform_name.
4756 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
4757 * stabsread.c (define_symbol) <'X'>: Remove.
4758 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
4761 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
4762 <'S'>: Remove call to gdbarch_static_transform_name.
4764 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4766 * procfs.c (procfs_pre_trace): New function.
4767 (procfs_target::create_inferior): Pass it to fork_inferior.
4769 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4771 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
4772 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
4773 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
4774 sol2-tdep.o, sparc-sol2-tdep.o.
4775 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
4776 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
4777 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
4778 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
4780 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4782 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
4783 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
4785 Remove calls to set_gdbarch_skip_solib_resolver,
4786 set_gdbarch_core_pid_to_str.
4787 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
4788 (i386_sol2_static_transform_name): Remove.
4789 (i386_sol2_init_abi): Call sol2_init_abi.
4790 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4791 set_gdbarch_static_transform_name,
4792 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4793 Use sol2_sigtramp_p.
4794 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
4795 (sol2_sigtramp_p): New function.
4796 (sol2_static_transform_name): New function.
4797 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
4798 (sol2_init_abi): New function.
4799 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
4800 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
4801 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
4802 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
4803 (sparc_sol2_static_transform_name): Remove.
4804 (sparc32_sol2_init_abi): Call sol2_init_abi.
4805 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4806 set_gdbarch_static_transform_name,
4807 set_gdbarch_skip_solib_resolver,
4808 set_gdbarch_core_pid_to_str.
4809 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
4810 (sparc_sol2_static_transform_name): Remove
4811 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
4812 call sol2_sigtramp_p.
4813 (sparc64_sol2_init_abi): Call sol2_init_abi.
4814 Remove calls to set_gdbarch_sofun_address_maybe_missing,
4815 set_gdbarch_static_transform_name,
4816 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
4818 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4820 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
4821 * exec.c (validate_exec_file): If from_tty, set both
4822 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
4823 * symfile.c (symbol_file_add_with_addrs): if always_confirm
4824 and from_tty, unconditionally ask a confirmation.
4826 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4828 * target-descriptions.c (tdesc_architecture_name): Protect against
4829 NULL pointer dereference.
4830 (maint_print_xml_tdesc_cmd): New function.
4831 (_initialize_target_descriptions): Register new 'maint print
4832 xml-tdesc' command and give it the filename completer.
4833 * NEWS: Mention new 'maint print xml-tdesc' command.
4835 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4837 * target-descriptions.c (class tdesc_compatible_info): New class.
4838 (struct target_desc): Change type of compatible vector.
4839 (tdesc_compatible_p): Update for change in type of
4840 target_desc::compatible.
4841 (tdesc_compatible_info_list): New function.
4842 (tdesc_compatible_info_arch_name): New function.
4843 (tdesc_add_compatible): Update for change in type of
4844 target_desc::compatible.
4845 (print_c_tdesc::visit_pre): Likewise.
4847 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4849 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
4850 whitespace to underscore.
4851 (maint_print_c_tdesc_cmd): Use fake filename for target
4852 descriptions that came from the target.
4853 (_initialize_target_descriptions): Add filename command completion
4854 for 'maint print c-tdesc'.
4856 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
4858 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
4861 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
4863 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
4865 (dwarf2_find_location_expression): Likewise.
4866 (call_site_parameter_matches): Likewise.
4867 (dwarf2_compile_expr_to_ax): Likewise.
4868 (disassemble_dwarf_expression): Likewise.
4869 (loclist_describe_location): Likewise.
4871 2020-06-23 Pedro Alves <palves@redhat.com>
4873 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
4874 progspace-and-thread.h. Include scoped-mock-context.h instead.
4875 (register_to_value_test): Use scoped_mock_context.
4876 * regcache.c: Include "scoped-mock-context.h".
4877 (cooked_read_test): Don't error out if a target is already pushed.
4878 Use scoped_mock_context. Adjust.
4879 * scoped-mock-context.h: New file.
4881 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4883 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
4885 (ada_language::is_string_type_p): New member function.
4886 * c-lang.c (c_language_data): Delete la_is_string_type_p
4888 (cplus_language_data): Likewise.
4889 (asm_language_data): Likewise.
4890 (minimal_language_data): Likewise.
4891 * d-lang.c (d_language_data): Likewise.
4892 * f-lang.c (f_is_string_type_p): Delete function, implementation
4893 moved to f_language::is_string_type_p.
4894 (f_language_data): Delete la_is_string_type_p initializer.
4895 (f_language::is_string_type_p): New member function,
4896 implementation from f_is_string_type_p.
4897 * go-lang.c (go_is_string_type_p): Delete function, implementation
4898 moved to go_language::is_string_type_p.
4899 (go_language_data): Delete la_is_string_type_p initializer.
4900 (go_language::is_string_type_p): New member function,
4901 implementation from go_is_string_type_p.
4902 * language.c (language_defn::is_string_type_p): Define new member
4904 (default_is_string_type_p): Make static, add comment copied from
4906 (unknown_language_data): Delete la_is_string_type_p initializer.
4907 (unknown_language::is_string_type_p): New member function.
4908 (auto_language_data): Delete la_is_string_type_p initializer.
4909 (auto_language::is_string_type_p): New member function.
4910 * language.h (language_data): Delete la_is_string_type_p field.
4911 (language_defn::is_string_type_p): Declare new function.
4912 (default_is_string_type_p): Delete desclaration, move comment to
4914 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
4915 moved to m2_language::is_string_type_p.
4916 (m2_language_data): Delete la_is_string_type_p initializer.
4917 (m2_language::is_string_type_p): New member function,
4918 implementation from m2_is_string_type_p.
4919 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
4921 * opencl-lang.c (opencl_language_data): Likewise.
4922 * p-lang.c (pascal_is_string_type_p): Delete function,
4923 implementation moved to pascal_language::is_string_type_p.
4924 (pascal_language_data): Delete la_is_string_type_p initializer.
4925 (pascal_language::is_string_type_p): New member function,
4926 implementation from pascal_is_string_type_p.
4927 * rust-lang.c (rust_is_string_type_p): Delete function,
4928 implementation moved to rust_language::is_string_type_p.
4929 (rust_language_data): Delete la_is_string_type_p initializer.
4930 (rust_language::is_string_type_p): New member function,
4931 implementation from rust_is_string_type_p.
4932 * valprint.c (val_print_scalar_or_string_type_p): Update call to
4935 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4937 * ada-lang.c (ada_language_data): Delete la_print_typedef
4939 (ada_language::print_typedef): New member function.
4940 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
4941 (cplus_language_data): Likewise.
4942 (asm_language_data): Likewise.
4943 (minimal_language_data): Likewise.
4944 * d-lang.c (d_language_data): Likewise.
4945 * f-lang.c (f_language_data): Likewise.
4946 (f_language::print_typedef): New member function.
4947 * go-lang.c (go_language_data): Delete la_print_typedef
4949 * language.c (language_defn::print_typedef): Define member
4951 (unknown_language_data): Delete la_print_typedef initializer.
4952 (unknown_language::print_typedef): New member function.
4953 (auto_language_data): Delete la_print_typedef initializer.
4954 (auto_language::print_typedef): New member function.
4955 * language.h (language_data): Delete la_print_typedef field.
4956 (language_defn::print_typedef): Declare new member function.
4957 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4958 (default_print_typedef): Delete declaration.
4959 * m2-lang.c (m2_language_data): Delete la_print_typedef
4961 (m2_language::print_typedef): New member function.
4962 * objc-lang.c (objc_language_data): Delete la_print_typedef
4964 * opencl-lang.c (opencl_language_data): Likewise.
4965 * p-lang.c (pascal_language_data): Likewise.
4966 (pascal_language::print_typedef): New member function.
4967 * rust-lang.c (rust_print_typedef): Delete function,
4968 implementation moved to rust_language::print_typedef.
4969 (rust_language): Delete la_print_typedef initializer.
4970 (rust_language::print_typedef): New member function,
4971 implementation from rust_print_typedef.
4972 * typeprint.c (default_print_typedef): Delete.
4974 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4976 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4977 (ada_language::printstr): New member function.
4978 * c-lang.c (c_language_data): Delete la_printstr initializer.
4979 (cplus_language_data): Likewise.
4980 (asm_language_data): Likewise.
4981 (minimal_language_data): Likewise.
4982 * d-lang.c (d_language_data): Likewise.
4983 * f-lang.c (f_printstr): Rename to f_language::printstr.
4984 (f_language_data): Delete la_printstr initializer.
4985 (f_language::printstr): New member function, implementation from
4987 * go-lang.c (go_language_data): Delete la_printstr initializer.
4988 * language.c (language_defn::printstr): Define new member
4990 (unk_lang_printstr): Delete.
4991 (unknown_language_data): Delete la_printstr initializer.
4992 (unknown_language::printstr): New member function.
4993 (auto_language_data): Delete la_printstr initializer.
4994 (auto_language::printstr): New member function.
4995 * language.h (language_data): Delete la_printstr field.
4996 (language_defn::printstr): Declare new member function.
4997 (LA_PRINT_STRING): Update call to printstr.
4998 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4999 (m2_language_data): Delete la_printstr initializer.
5000 (m2_language::printstr): New member function, implementation from
5002 * objc-lang.c (objc_language_data): Delete la_printstr
5004 * opencl-lang.c (opencl_language_data): Likewise.
5005 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5006 (pascal_language_data): Delete la_printstr initializer.
5007 (pascal_language::printstr): New member function, implementation
5008 from pascal_printstr.
5009 * p-lang.h (pascal_printstr): Delete declaration.
5010 * rust-lang.c (rust_printstr): Update header comment.
5011 (rust_language_data): Delete la_printstr initializer.
5012 (rust_language::printstr): New member function.
5014 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5016 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5017 (ada_language::printchar): New member function.
5018 * c-lang.c (c_language_data): Delete la_printchar initializer.
5019 (cplus_language_data): Likewise.
5020 (asm_language_data): Likewise.
5021 (minimal_language_data): Likewise.
5022 * d-lang.c (d_language_data): Likewise.
5023 * f-lang.c (f_printchar): Rename to f_language::printchar.
5024 (f_language_data): Delete la_printchar initializer.
5025 (f_language::printchar): New member function, implementation from
5027 * go-lang.c (go_language_data): Delete la_printchar initializer.
5028 * language.c (unk_lang_printchar): Delete.
5029 (language_defn::printchar): Define new member function.
5030 (unknown_language_data): Delete la_printchar initializer.
5031 (unknown_language::printchar): New member function.
5032 (auto_language_data): Delete la_printchar initializer.
5033 (auto_language::printchar): New member function.
5034 * language.h (language_data): Delete la_printchar field.
5035 (language_defn::printchar): Declare new member function.
5036 (LA_PRINT_CHAR): Update call to printchar.
5037 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5038 (m2_language::printchar): New member function.
5039 * objc-lang.c (objc_language_data): Delete la_printchar
5041 * opencl-lang.c (opencl_language_data): Likewise.
5042 * p-lang.c (pascal_language_data): Delete la_printchar
5044 (pascal_language::printchar): New member function.
5045 * rust-lang.c (rust_printchar): Rename to
5046 rust_language::printchar.
5047 (rust_language_data): Delete la_printchar initializer.
5048 (rust_language::printchar): New member function, implementation
5049 from rust_printchar.
5051 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5053 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5054 (ada_language_data): Delete la_emitchar initializer.
5055 (ada_language::emitchar): New member function, implementation from
5057 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5058 (cplus_language_data): Likewise.
5059 (asm_language_data): Likewise.
5060 (minimal_language_data): Likewise.
5061 * d-lang.c (d_language_data): Likewise.
5062 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5063 (f_language_data): Delete la_emitchar initializer.
5064 (f_language::emitchar): New member function, implementation from
5066 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5067 * language.c (unk_lang_emit_char): Delete.
5068 (language_defn::emitchar): New member function definition.
5069 (unknown_language_data): Delete la_emitchar initializer.
5070 (unknown_language::emitchar): New member function.
5071 (auto_language_data): Delete la_emitchar initializer.
5072 (auto_language::emitchar): New member function.
5073 * language.h (language_data): Delete la_emitchar field.
5074 (language_defn::emitchar): New member field declaration.
5075 (LA_EMIT_CHAR): Update call to emitchar.
5076 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5077 (m2_language_data): Delete la_emitchar initializer.
5078 (m2_language::emitchar): New member function, implementation from
5080 * objc-lang.c (objc_language_data): Delete la_emitchar
5082 * opencl-lang.c (opencl_language_data): Likewise.
5083 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5084 (pascal_language_data): Delete la_emitchar initializer.
5085 (pascal_language::emitchar): New member function, implementation
5086 from pascal_emit_char.
5087 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5088 (rust_language_data): Delete la_emitchar initializer.
5089 (rust_language::emitchar): New member function, implementation
5092 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5094 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5095 (ada_language_data): Delete la_post_parser initializer.
5096 (ada_language::post_parser): New member function.
5097 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5098 (cplus_language_data): Likewise.
5099 (asm_language_data): Likewise.
5100 (minimal_language_data): Likewise.
5101 * d-lang.c (d_language_data): Likewise.
5102 * f-lang.c (f_language_data): Likewise.
5103 * go-lang.c (go_language_data): Likewise.
5104 * language.c (unknown_language_data): Likewise.
5105 (auto_language_data): Likewise.
5106 * language.h (language_data): Delete la_post_parser field.
5107 (language_defn::post_parser): New member function.
5108 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5109 * objc-lang.c (objc_language_data): Likewise.
5110 * opencl-lang.c (opencl_language_data): Likewise.
5111 * p-lang.c (pascal_language_data): Likewise.
5112 * parse.c (parse_exp_in_context): Update call to post_parser.
5113 (null_post_parser): Delete definition.
5114 * parser-defs.h (null_post_parser): Delete declaration.
5115 * rust-lang.c (rust_language_data): Delete la_post_parser
5118 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5120 * ada-lang.c (parse): Rename to ada_language::parser.
5121 (ada_language_data): Delete la_parser initializer.
5122 (ada_language::parser): New member function, implementation from
5124 * c-lang.c (c_language_data): Delete la_parser initializer.
5125 (cplus_language_data): Likewise.
5126 (asm_language_data): Likewise.
5127 (minimal_language_data): Likewise.
5128 * d-lang.c (d_language_data): Likewise.
5129 (d_language::parser): New member function.
5130 * f-lang.c (f_language_data): Delete la_parser initializer.
5131 (f_language::parser): New member function.
5132 * go-lang.c (go_language_data): Delete la_parser initializer.
5133 (go_language::parser): New member function.
5134 * language.c (unk_lang_parser): Delete.
5135 (language_defn::parser): Define new member function.
5136 (unknown_language_data): Delete la_parser initializer.
5137 (unknown_language::parser): New member function.
5138 (auto_language_data): Delete la_parser initializer.
5139 (auto_language::parser): New member function.
5140 * language.h (language_data): Delete la_parser field.
5141 (language_defn::parser): Declare new member function.
5142 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5143 (m2_language::parser): New member function.
5144 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5145 * opencl-lang.c (opencl_language_data): Likewise.
5146 * p-lang.c (pascal_language_data): Likewise.
5147 (pascal_language::parser): New member function.
5148 * parse.c (parse_exp_in_context): Update call to parser.
5149 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5150 (rust_language::parser): New member function.
5152 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5154 * top.c (print_gdb_configuration): Print --with-python-libdir
5155 configuration value.
5157 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5159 * NEWS: Mention change to the alias command.
5161 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5163 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5164 (alias_command_completer)
5165 (make_alias_options_def_group): New functions.
5166 (alias_opts, alias_option_defs): New struct and array.
5167 (alias_usage_error): Update usage.
5168 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5169 Use option framework.
5170 (_initialize_cli_cmds): Update alias command help.
5171 Update aliases command help.
5173 Add NULL for new default_args lookup_cmd argument.
5174 (valid_command_p): Rename to validate_aliased_command.
5175 Add NULL for new default_args lookup_cmd argument. Verify that the
5176 aliased_command has no default args.
5177 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5178 (lookup_cmd_1, lookup_cmd): New argument default_args.
5180 Add NULL for new default_args lookup_cmd argument.
5181 (print_help_for_command): Show default args under the layout
5182 alias some_alias = some_aliased_cmd some_alias_default_arg.
5183 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5184 xfree default_args in destructor.
5185 * cli/cli-script.c (process_next_line, do_define_command):
5186 Add NULL for new default_args lookup_cmd argument.
5187 * command.h: Declare new default_args argument in lookup_cmd
5189 * completer.c (complete_line_internal_1):
5190 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5191 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5192 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5194 * infcmd.c (_initialize_infcmd): Likewise.
5195 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5196 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5197 * python/py-param.c (add_setshow_generic): Likewise.
5198 * remote.c (_initialize_remote): Likewise.
5199 * top.c (execute_command): Prepend default_args if command has some.
5201 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5202 * tracepoint.c (validate_actionline, encode_actions_1):
5203 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5205 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5207 * jit.c (jit_read_descriptor): Use bool as the return type.
5208 (jit_breakpoint_re_set_internal): Use bool as the return type.
5209 Invert the return value logic; return true if the jit breakpoint
5210 has been successfully initialized.
5211 (jit_inferior_init): Update the call to
5212 jit_breakpoint_re_set_internal.
5214 2020-06-22 Pedro Alves <palves@redhat.com>
5217 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5218 Use the current inferior instead. Don't return
5219 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5221 * sol-thread.c (sol_thread_target::wait): Don't reference
5223 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5224 (sol_update_thread_list_callback): Use the current inferior's pid
5225 instead of inferior_ptid.
5227 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5229 * procfs.c: Cleanup many comments.
5231 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5232 (AFTER_WATCHFLAG): Replace by value.
5234 (MAIN_PROC_NAME_FORMAT): Inline ...
5235 (create_procinfo): ... here.
5237 (procfs_debug_inferior): Remove SYS_exec handling.
5238 (syscall_is_exec): Likewise.
5239 (procfs_set_exec_trap): Likewise.
5241 (syscall_is_lwp_exit): Inline in callers.
5242 (syscall_is_exit): Likewise.
5243 (syscall_is_exec): Likewise.
5244 (syscall_is_lwp_create): Likewise.
5246 (invalidate_cache): Remove #if 0 code.
5248 (make_signal_thread_runnable): Remove.
5249 (procfs_target::resume): Remove #if 0 code.
5251 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5254 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5256 (procfs_target::create_inferior): ... here.
5258 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5260 * exec.c (validate_exec_file): Ensure the build-id is up to
5261 date by calling reopen_exec_file (that checks file timestamp
5262 to decide to re-read the file).
5264 2020-06-18 Pedro Alves <palves@redhat.com>
5267 * gdbthread.h (delete_thread, delete_thread_silent)
5268 (find_thread_ptid): Update comments.
5269 * thread.c (current_thread_): New global.
5270 (is_current_thread): Move higher, and reimplement.
5271 (inferior_thread): Reimplement.
5272 (set_thread_exited): Use bool. Add assertions.
5273 (add_thread_silent): Simplify thread-reuse handling by always
5274 calling delete_thread.
5275 (delete_thread): Remove intro comment.
5276 (find_thread_ptid): Skip exited threads.
5277 (switch_to_thread_no_regs): Write to current_thread_.
5278 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5279 INFERIOR_PTID. Clear current_thread_.
5281 2020-06-18 Pedro Alves <palves@redhat.com>
5283 * aix-thread.c (pd_update): Use switch_to_thread.
5285 2020-06-18 Pedro Alves <palves@redhat.com>
5287 * ravenscar-thread.c (ravenscar_thread_target): Update.
5288 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5289 (ravenscar_thread_target::add_active_thread): ... this. Don't
5290 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5291 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5293 2020-06-18 Pedro Alves <palves@redhat.com>
5295 * nat/windows-nat.c (current_windows_thread): Remove.
5296 * nat/windows-nat.h (current_windows_thread): Remove.
5297 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5299 (display_selectors): Adjust to fetch the current
5300 windows_thread_info based on inferior_ptid.
5301 (fake_create_process): No longer write to current_windows_thread.
5302 (windows_nat_target::get_windows_debug_event):
5303 Don't set inferior_ptid or current_windows_thread.
5304 (windows_nat_target::wait): Adjust to not rely on
5305 current_windows_thread.
5306 (do_initial_windows_stuff): Now a method of windows_nat_target.
5307 Switch to the last_ptid thread.
5308 (windows_nat_target::attach): Adjust.
5309 (windows_nat_target::detach): Use switch_to_no_thread instead of
5310 writing to inferior_ptid directly.
5311 (windows_nat_target::create_inferior): Adjust.
5313 2020-06-18 Pedro Alves <palves@redhat.com>
5315 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5317 2020-06-18 Pedro Alves <palves@redhat.com>
5319 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5320 after creating it, instead of writing to inferior_ptid. Don't
5321 write to inferior_ptid.
5323 2020-06-18 Pedro Alves <palves@redhat.com>
5325 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5327 2020-06-18 Pedro Alves <palves@redhat.com>
5329 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5330 it, instead of writing to inferior_ptid.
5332 2020-06-18 Pedro Alves <palves@redhat.com>
5334 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5337 2020-06-18 Pedro Alves <palves@redhat.com>
5339 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5340 instead of writing to inferior_ptid directly.
5342 2020-06-18 Pedro Alves <palves@redhat.com>
5344 * corelow.c (core_target::close): Use switch_to_no_thread instead
5345 of writing to inferior_ptid directly.
5346 (add_to_thread_list, core_target_open): Use switch_to_thread
5347 instead of writing to inferior_ptid directly.
5349 2020-06-18 Pedro Alves <palves@redhat.com>
5351 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5353 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5355 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5356 inferior_ptid directly.
5357 (darwin_nat_target::init_thread_list): Switch to thread, instead
5358 of writing to inferior_ptid.
5359 (darwin_nat_target::attach): Don't write to inferior_ptid.
5360 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5362 2020-06-18 Pedro Alves <palves@redhat.com>
5364 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5366 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5367 Instead use switch_to_thread.
5368 (gnu_nat_target::detach): Use switch_to_no_thread
5369 instead of writing to inferior_ptid directly. Used passed-in
5370 inferior instead of looking up the inferior by pid.
5372 2020-06-18 Pedro Alves <palves@redhat.com>
5374 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5377 2020-06-18 Pedro Alves <palves@redhat.com>
5379 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5381 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5383 (nto_procfs_target::detach): Avoid referencing
5384 inferior_ptid. Use switch_to_no_thread instead of writing to
5385 inferior_ptid directly.
5386 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5387 instead of writing to inferior_ptid directly.
5388 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5391 2020-06-18 Pedro Alves <palves@redhat.com>
5393 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5394 after creating it, instead of writing to inferior_ptid.
5395 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5396 to inferior_ptid directly.
5397 (gdbsim_target::wait): Don't write to inferior_ptid.
5399 2020-06-18 Pedro Alves <palves@redhat.com>
5401 * remote.c (remote_target::remote_notice_new_inferior): Use
5402 switch_to_thread instead of writing to inferior_ptid directly.
5403 (remote_target::add_current_inferior_and_thread): Use
5404 switch_to_no_thread instead of writing to inferior_ptid directly.
5405 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5406 and switch_to_thread instead of using set_current_inferior or
5407 writing to inferior_ptid directly.
5409 2020-06-18 Pedro Alves <palves@redhat.com>
5411 * tracectf.c (ctf_target_open): Switch to added thread instead of
5412 writing to inferior_ptid directly.
5413 (ctf_target::close): Use switch_to_no_thread instead of writing to
5414 inferior_ptid directly.
5416 2020-06-18 Pedro Alves <palves@redhat.com>
5418 * tracefile-tfile.c (tfile_target_open): Don't write to
5419 inferior_ptid directly, instead switch to added thread.
5420 (tfile_target::close): Use switch_to_no_thread instead of writing
5421 to inferior_ptid directly.
5423 2020-06-18 Pedro Alves <palves@redhat.com>
5425 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5426 (procfs_target::detach): Use switch_to_no_thread
5427 instead of writing to inferior_ptid directly.
5428 (do_attach): Change return type to void. Switch to the added
5430 (procfs_target::create_inferior): Switch to the added thread.
5431 (procfs_do_thread_registers): Don't write to inferior_ptid.
5433 2020-06-18 Pedro Alves <palves@redhat.com>
5435 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5436 of writing to inferior_ptid.
5437 (scoped_restore_exited_inferior): Delete.
5438 (handle_vfork_child_exec_or_exit): Simplify using
5439 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5440 instead of writing to inferior_ptid.
5441 (THREAD_STOPPED_BY): Delete.
5442 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5443 (thread_stopped_by_hw_breakpoint): Delete.
5444 (save_waitstatus): Use
5445 scoped_restore_current_thread+switch_to_thread, and call
5446 target_stopped_by_watchpoint instead of
5447 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5448 instead of thread_stopped_by_sw_breakpoint, and
5449 target_stopped_by_hw_breakpoint instead of
5450 thread_stopped_by_hw_breakpoint.
5451 (handle_inferior_event)
5452 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5453 inferior_ptid directly, nor
5454 set_current_inferior/set_current_program_space. Use
5455 switch_to_thread / switch_to_inferior_no_thread instead.
5457 2020-06-18 Pedro Alves <palves@redhat.com>
5459 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5460 instead of writing to inferior_ptid.
5462 2020-06-18 Pedro Alves <palves@redhat.com>
5464 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5466 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5467 to the added thread.
5468 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5469 instead of writing to inferior_ptid.
5471 2020-06-18 Pedro Alves <palves@redhat.com>
5473 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5474 (register_to_value_test): Mock a program_space too. Heap-allocate
5475 the address space. Don't write to inferior_ptid. Use
5476 switch_to_thread instead.
5478 2020-06-18 Pedro Alves <palves@redhat.com>
5480 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5482 (find_signalled_thread()): New, factored out from
5483 linux_make_corefile_notes and adjusted to handle exited threads.
5484 (linux_make_corefile_notes): Adjust to use the new
5485 find_signalled_thread.
5487 2020-06-18 Pedro Alves <palves@redhat.com>
5489 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5490 of saving/restoring inferior_ptid.
5492 2020-06-17 Tom Tromey <tom@tromey.com>
5494 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5495 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5497 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5499 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
5501 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5504 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5506 * regformats/reg-arm.dat: Remove.
5507 * regformats/reg-bfin.dat: Remove.
5508 * regformats/reg-cris.dat: Remove.
5509 * regformats/reg-crisv32.dat: Remove.
5510 * regformats/reg-m32r.dat: Remove.
5511 * regformats/reg-tilegx.dat: Remove.
5512 * regformats/reg-tilegx32.dat: Remove.
5514 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5516 * features/Makefile (WHICH): Remove arm files.
5517 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5518 * regformats/arm/arm-with-neon.dat: Remove.
5519 * regformats/arm/arm-with-vfpv2.dat: Remove.
5520 * regformats/arm/arm-with-vfpv3.dat: Remove.
5522 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5524 * features/Makefile (XMLTOC): Remove rx.xml.
5526 2020-06-17 Pedro Alves <palves@redhat.com>
5528 * gdbthread.h (thread_control_state) <trap_expected> Update
5531 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5533 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5534 ada_language::lookup_symbol_nonlocal.
5535 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5536 (ada_language::lookup_symbol_nonlocal): New member function,
5537 implementation from ada_lookup_symbol_nonlocal.
5538 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5540 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5542 (cplus_language::lookup_symbol_nonlocal): New member function.
5543 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5544 (minimal_language_data) Likewise.
5545 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5546 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5548 (d_language::lookup_symbol_nonlocal): New member function.
5549 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5551 (f_language::lookup_symbol_nonlocal): New member function.
5552 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5554 * language.c (unknown_language_data): Likewise.
5555 (auto_language_data): Likewise.
5556 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5558 (language_defn::lookup_symbol_nonlocal): New member function.
5559 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5561 * objc-lang.c (objc_language_data): Likewise.
5562 * opencl-lang.c (opencl_language_data): Likewise.
5563 * p-lang.c (pascal_language_data): Likewise.
5564 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5565 rust_language::lookup_symbol_nonlocal.
5566 (rust_language_data): Delete la_lookup_symbol_nonlocal
5568 (rust_language::lookup_symbol_nonlocal): New member function,
5569 implementation from rust_lookup_symbol_nonlocal.
5570 * symtab.c (lookup_symbol_aux): Update call to
5571 lookup_symbol_nonlocal.
5572 (basic_lookup_symbol_nonlocal): Rename to...
5573 (language_defn::lookup_symbol_nonlocal): ...this, and update
5574 header comment. Remove language_defn parameter, and replace with
5576 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5578 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5580 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5582 (ada_language::value_print_inner): New member function.
5583 * c-lang.c (c_language_data): Delete la_value_print_inner
5585 (cplus_language_data): Likewise.
5586 (asm_language_data): Likewise.
5587 (minimal_language_data): Likewise.
5588 * d-lang.c (d_language_data): Likewise.
5589 (d_language::value_print_inner): New member function.
5590 * f-lang.c (f_language_data): Delete la_value_print_inner
5592 (f_language::value_print_inner): New member function.
5593 * f-lang.h (f_value_print_innner): Rename to...
5594 (f_value_print_inner): ...this (note spelling of 'inner').
5595 * f-valprint.c (f_value_print_innner): Rename to...
5596 (f_value_print_inner): ...this (note spelling of 'inner').
5597 * go-lang.c (go_language_data): Delete la_value_print_inner
5599 (go_language::value_print_inner): New member function.
5600 * language.c (language_defn::value_print_inner): Define new member
5602 (unk_lang_value_print_inner): Delete.
5603 (unknown_language_data): Delete la_value_print_inner initializer.
5604 (unknown_language::value_print_inner): New member function.
5605 (auto_language_data): Delete la_value_print_inner initializer.
5606 (auto_language::value_print_inner): New member function.
5607 * language.h (language_data): Delete la_value_print_inner field.
5608 (language_defn::value_print_inner): Delcare new member function.
5609 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5611 (m2_language::value_print_inner): New member function.
5612 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5614 * opencl-lang.c (opencl_language_data): Likewise.
5615 * p-lang.c (pascal_language_data): Likewise.
5616 (pascal_language::value_print_inner): New member function.
5617 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5619 (rust_language::value_print_inner): New member function.
5620 * valprint.c (do_val_print): Update call to value_print_inner.
5622 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5624 * ada-lang.c (ada_language_data): Delete la_value_print
5626 (ada_language::value_print): New member function.
5627 * c-lang.c (c_language_data): Delete la_value_print initializer.
5628 (cplus_language_data): Likewise.
5629 (asm_language_data): Likewise.
5630 (minimal_language_data): Likewise.
5631 * d-lang.c (d_language_data): Likewise.
5632 * f-lang.c (f_language_data): Likewise.
5633 * go-lang.c (go_language_data): Likewise.
5634 * language.c (unk_lang_value_print): Delete.
5635 (language_defn::value_print): Define new member function.
5636 (unknown_language_data): Delete la_value_print initializer.
5637 (unknown_language::value_print): New member function.
5638 (auto_language_data): Delete la_value_print initializer.
5639 (auto_language::value_print): New member function.
5640 * language.h (language_data): Delete la_value_print field.
5641 (language_defn::value_print): Declare new member function.
5642 (LA_VALUE_PRINT): Update call to value_print.
5643 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5644 * objc-lang.c (objc_language_data): Likewise.
5645 * opencl-lang.c (opencl_language_data): Likewise.
5646 * p-lang.c (pascal_language_data): Likewise.
5647 (pascal_language::value_print): New member function.
5648 * rust-lang.c (rust_language_data): Delete la_value_print
5651 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5653 * ada-lang.c (ada_watch_location_expression): Rename to
5654 ada_language::watch_location_expression.
5655 (ada_language_data): Delete la_watch_location_expression
5657 (ada_language::watch_location_expression): New member function,
5658 implementation from ada_watch_location_expression.
5659 * breakpoint.c (watch_command_1): Update call to
5660 watch_location_expression.
5661 * c-lang.c (c_watch_location_expression): Rename to
5662 language_defn::watch_location_expression.
5663 (c_language_data): Delete la_watch_location_expression
5665 (cplus_language_data): Likewise.
5666 (asm_language_data): Likewise.
5667 (minimal_language_data): Likewise.
5668 * c-lang.h (c_watch_location_expression): Delete declaration.
5669 * d-lang.c (d_language_data): Delete la_watch_location_expression
5671 * f-lang.c (f_language_data): Likewise.
5672 * go-lang.c (go_language_data): Likewise.
5673 * language.c (language_defn::watch_location_expression): Member
5674 function implementation from c_watch_location_expression.
5675 (unknown_language_data): Delete la_watch_location_expression
5677 (auto_language_data): Likewise.
5678 * language.h (language_data): Delete la_watch_location_expression
5680 (language_defn::watch_location_expression): Declare new member
5682 * m2-lang.c (m2_language_data): Delete
5683 la_watch_location_expression initializer.
5684 * objc-lang.c (objc_language_data): Likewise.
5685 * opencl-lang.c (opencl_language_data): Likewise.
5686 * p-lang.c (pascal_language_data): Likewise.
5687 * rust-lang.c (rust_watch_location_expression): Rename to
5688 rust_language::watch_location_expression.
5689 (rust_language_data): Delete la_watch_location_expression
5691 (rust_language::watch_location_expression): New member function,
5692 implementation from rust_watch_location_expression.
5694 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5696 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
5697 ada_language::collect_symbol_completion_matches.
5698 (ada_language_data): Delete la_collect_symbol_completion_matches
5700 (ada_language::collect_symbol_completion_matches): New member
5701 function, implementation from
5702 ada_collect_symbol_completion_matches.
5703 * c-lang.c (c_language_data): Delete
5704 la_collect_symbol_completion_matches initializer.
5705 (cplus_language_data): Likewise.
5706 (asm_language_data): Likewise.
5707 (minimal_language_data): Likewise.
5708 * d-lang.c (d_language_data): Likewise.
5709 * f-lang.c (f_collect_symbol_completion_matches): Rename to
5710 f_language::collect_symbol_completion_matches.
5711 (f_language_data): Delete la_collect_symbol_completion_matches
5713 (f_language::collect_symbol_completion_matches) New member
5714 function, implementation from f_collect_symbol_completion_matches.
5715 * go-lang.c (go_language_data): Delete
5716 la_collect_symbol_completion_matches initializer.
5717 * language.c (unknown_language_data): Likewise.
5718 (auto_language_data): Likewise.
5719 * language.h (language_data): Delete
5720 la_collect_symbol_completion_matches field.
5721 (language_defn::collect_symbol_completion_matches): New member
5723 * m2-lang.c (m2_language_data): Delete
5724 la_collect_symbol_completion_matches initializer.
5725 * objc-lang.c (objc_language_data): Likewise.
5726 * opencl-lang.c (opencl_language_data): Likewise.
5727 * p-lang.c (pascal_language_data): Likewise.
5728 * rust-lang.c (rust_language_data): Likewise.
5729 * symtab.c (default_collect_symbol_completion_matches): Delete.
5730 (collect_symbol_completion_matches): Update call to
5731 collect_symbol_completion_matches.
5732 (collect_symbol_completion_matches_type): Likewise.
5733 * symtab.h (default_collect_symbol_completion_matches): Delete
5736 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5738 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
5739 (ada_language_data): Delete la_word_break_characters initializer.
5740 (ada_language::word_break_characters): New member function.
5741 * c-lang.c (c_language_data): Delete la_word_break_characters
5743 (cplus_language_data): Likewise.
5744 (asm_language_data): Likewise.
5745 (minimal_language_data): Likewise.
5746 * completer.c: Update global comment.
5747 (advance_to_expression_complete_word_point): Update call to
5748 word_break_characters.
5749 (complete_files_symbols): Likewise.
5750 (complete_line_internal_1): Likewise.
5751 (default_completer_handle_brkchars): Likewise.
5752 (skip_quoted_chars): Likewise.
5753 * d-lang.c (d_language_data): Delete la_word_break_characters
5755 * f-lang.c (f_word_break_characters): Delete.
5756 (f_language_data): Delete la_word_break_characters initializer.
5757 (f_language::word_break_characters): New member function.
5758 * go-lang.c (go_language_data): Delete la_word_break_characters
5760 * language.c (unknown_language_data): Likewise.
5761 (auto_language_data): Likewise.
5762 * language.h (default_word_break_characters): Move declaration to
5763 earlier in the file.
5764 (language_data): Delete la_word_break_characters field.
5765 (language_defn::word_break_characters): New member function.
5766 * m2-lang.c (m2_language_data): Delete la_word_break_characters
5768 * objc-lang.c (objc_language_data): Likewise.
5769 * opencl-lang.c (opencl_language_data): Likewise.
5770 * p-lang.c (pascal_language_data): Likewise.
5771 * rust-lang.c (rust_language_data): Likewise.
5773 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5775 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
5776 (ada_language_data): Delete la_get_symbol_name_matcher
5778 (language_defn::get_symbol_name_matcher_inner): New member
5780 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
5782 (cplus_language_data): Likewise.
5783 (cplus_language::get_symbol_name_matcher_inner): New member
5785 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
5786 (minimal_language_data): Likewise.
5787 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
5788 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
5790 * dictionary.c (iter_match_first_hashed): Update call to
5791 get_symbol_name_matcher.
5792 (iter_match_next_hashed): Likewise.
5793 (iter_match_next_linear): Likewise.
5794 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
5795 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
5797 (f_language::get_symbol_name_matcher_inner): New member function.
5798 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
5800 * language.c (default_symbol_name_matcher): Update header comment,
5802 (language_defn::get_symbol_name_matcher): New definition.
5803 (language_defn::get_symbol_name_matcher_inner): Likewise.
5804 (get_symbol_name_matcher): Delete.
5805 (unknown_language_data): Delete la_get_symbol_name_matcher
5807 (auto_language_data): Likewise.
5808 * language.h (language_data): Delete la_get_symbol_name_matcher
5810 (language_defn::get_symbol_name_matcher): New member function.
5811 (language_defn::get_symbol_name_matcher_inner): Likewise.
5812 (default_symbol_name_matcher): Delete declaration.
5813 * linespec.c (find_methods): Update call to
5814 get_symbol_name_matcher.
5815 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
5817 * minsyms.c (lookup_minimal_symbol): Update call to
5818 get_symbol_name_matcher.
5819 (iterate_over_minimal_symbols): Likewise.
5820 * objc-lang.c (objc_language_data): Delete
5821 la_get_symbol_name_matcher initializer.
5822 * opencl-lang.c (opencl_language_data): Likewise.
5823 * p-lang.c (pascal_language_data): Likewise.
5824 * psymtab.c (psymbol_name_matches): Update call to
5825 get_symbol_name_matcher.
5826 * rust-lang.c (rust_language_data): Delete
5827 la_get_symbol_name_matcher initializer.
5828 * symtab.c (symbol_matches_search_name): Update call to
5829 get_symbol_name_matcher.
5830 (compare_symbol_name): Likewise.
5832 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5834 * ada-lang.c (ada_language_data): Delete la_compute_program
5836 * c-lang.c (c_language_data): Likewise.
5837 (c_language::compute_program): New member function.
5838 (cplus_language_data): Delete la_compute_program initializer.
5839 (cplus_language::compute_program): New member function.
5840 (asm_language_data): Delete la_compute_program initializer.
5841 (minimal_language_data): Likewise.
5842 * c-lang.h (c_compute_program): Update comment.
5843 (cplus_compute_program): Likewise.
5844 * compile/compile-c-support.c (c_compute_program): Likewise.
5845 (cplus_compute_program): Likewise.
5846 * compile/compile.c (compile_to_object): Update call to
5848 * d-lang.c (d_language_data): Delete la_compute_program
5850 * f-lang.c (f_language_data): Likewise.
5851 * go-lang.c (go_language_data): Likewise.
5852 * language.c (unknown_language_data): Likewise.
5853 (auto_language_data): Likewise.
5854 * language.h (language_data): Delete la_compute_program field.
5855 (language_defn::compute_program): New member function.
5856 * m2-lang.c (m2_language_data): Delete la_compute_program
5858 * objc-lang.c (objc_language_data): Likewise.
5859 * opencl-lang.c (opencl_language_data): Likewise.
5860 * p-lang.c (pascal_language_data): Likewise.
5861 * rust-lang.c (rust_language_data): Likewise.
5863 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5865 * ada-lang.c (ada_language_data) Delete
5866 la_class_name_from_physname initializer.
5867 * c-lang.c (c_language_data): Likewise.
5868 (cplus_language_data): Likewise.
5869 (cplus_language::class_name_from_physname): New member function.
5870 (asm_language_data): Delete la_class_name_from_physname
5872 (minimal_language_data): Likewise.
5873 * d-lang.c (d_language_data): Likewise.
5874 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
5875 method on language_defn class.
5876 (guess_full_die_structure_name): Likewise.
5877 * f-lang.c (f_language_data): Delete la_class_name_from_physname
5879 * go-lang.c (go_language_data): Likewise.
5880 * language.c (language_class_name_from_physname): Delete.
5881 (unk_lang_class_name): Delete.
5882 (unknown_language_data): Delete la_class_name_from_physname
5884 (auto_language_data): Likewise.
5885 * language.h (language_data): Delete la_class_name_from_physname
5887 (language_defn::class_name_from_physname): New function.
5888 (language_class_name_from_physname): Delete declaration.
5889 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
5891 * objc-lang.c (objc_language_data): Likewise.
5892 * opencl-lang.c (opencl_language_data): Likewise.
5893 * p-lang.c (pascal_language_data): Likewise.
5894 * rust-lang.c (rust_language_data): Likewise.
5896 2020-06-16 Tom Tromey <tom@tromey.com>
5898 * tui/tui-data.h (STATUS_NAME): New macro.
5899 * tui/tui-layout.c (tui_remove_some_windows)
5900 (initialize_known_windows, tui_register_window)
5901 (tui_layout_split::remove_windows, initialize_layouts)
5902 (tui_new_layout_command): Don't use hard-coded window names.
5904 2020-06-16 Tom Tromey <tom@tromey.com>
5907 * tui/tui.c (tui_ensure_readline_initialized): Rename from
5908 tui_initialize_readline. Only run once. Call rl_initialize.
5909 * tui/tui.h (tui_ensure_readline_initialized): Rename from
5910 tui_initialize_readline.
5911 * tui/tui-io.c (tui_setup_io): Call
5912 tui_ensure_readline_initialized.
5913 * tui/tui-interp.c (tui_interp::init): Update.
5915 2020-06-16 Tom Tromey <tom@tromey.com>
5917 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
5918 Also preserve the status window.
5920 2020-06-16 Tom Tromey <tom@tromey.com>
5922 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
5923 where m_window==nullptr.
5925 2020-06-15 Tom Tromey <tromey@adacore.com>
5927 * windows-nat.c (windows_nat::handle_output_debug_string):
5929 (windows_nat::handle_ms_vc_exception): Update.
5930 * target.h (target_read_string): Change API.
5931 * target.c (target_read_string): Change API.
5932 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
5934 * solib-frv.c (frv_current_sos): Update.
5935 * solib-dsbt.c (dsbt_current_sos): Update.
5936 * solib-darwin.c (darwin_current_sos): Update.
5937 * linux-thread-db.c (inferior_has_bug): Update.
5938 * expprint.c (print_subexp_standard): Update.
5939 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
5940 (ada_exception_message_1): Update.
5942 2020-06-15 Tom Tromey <tromey@adacore.com>
5944 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
5946 2020-06-15 Tom Tromey <tromey@adacore.com>
5948 * valprint.c (read_string): Update comment.
5949 * target.c (MIN): Remove.
5950 (target_read_string): Rewrite.
5952 2020-06-15 Tom Tromey <tromey@adacore.com>
5954 * corefile.c (read_memory_string): Remove.
5955 * ada-valprint.c (ada_value_print_ptr): Update.
5956 * ada-lang.h (ada_tag_name): Change return type.
5957 * ada-lang.c (type_from_tag): Update.
5958 (ada_tag_name_from_tsd): Change return type. Use
5960 (ada_tag_name): Likewise.
5961 * gdbcore.h (read_memory_string): Don't declare.
5963 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
5965 * symtab.c (rbreak_command): Ignore Windows drive colon.
5967 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
5969 * NEWS: Mention removed GDBserver host support.
5971 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
5973 * features/riscv/rebuild-csr-xml.sh: Updated.
5975 2020-06-11 Tom Tromey <tom@tromey.com>
5978 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5980 2020-06-09 Jonny Grant <jg@jguk.org>
5981 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5983 * main.c (captured_main_1): Don't print new line after help.
5984 (print_gdb_help): add mailing list and IRC channel information
5985 to --help. Add new lines between items in the footer. Remove
5986 quotes around bug url.
5988 2020-06-11 Keith Seitz <keiths@redhat.com>
5991 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5992 Resolve typedefs for type length calculations.
5994 2020-06-10 Tom de Vries <tdevries@suse.de>
5997 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5998 (write_psymbols): Enable .gdb_index for ada.
5999 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6002 2020-06-10 Tom de Vries <tdevries@suse.de>
6004 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6005 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6006 namei" instead of "const char *name" argument.
6007 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6008 dw2_symtab_iter_init.
6010 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6012 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6013 to use type::field and field::type instead.
6015 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6017 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6018 to use field::type instead.
6020 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6022 * gdbtypes.h (struct field) <type, set_type>: New methods.
6023 Rename `type` field to...
6024 <m_type>: ... this. Change references throughout to use type or
6026 (FIELD_TYPE): Use field::type. Change call sites that modify
6027 the field's type to use field::set_type instead.
6029 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6031 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6032 to use type::index_type instead.
6034 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6036 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6038 (TYPE_INDEX_TYPE): Use type::index_type.
6039 * gdbtypes.c (create_array_type_with_stride): Likewise.
6041 2020-06-07 Tom Tromey <tom@tromey.com>
6043 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6045 (generic_value_print): Update.
6047 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6049 Revert commit 982a38f60b0.
6050 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6052 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6054 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6055 avoid use after free.
6057 2020-06-05 Tom de Vries <tdevries@suse.de>
6061 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
6063 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6065 (dwarf2_read_debug_names): Likewise.
6066 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6067 object when re-using a per_bfd object with an index.
6069 2020-06-03 Tom de Vries <tdevries@suse.de>
6072 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6074 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6077 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6079 * ada-lang.c (ada_language_data): Delete skip_trampoline
6081 * c-lang.c (c_language_data): Likewise.
6082 (cplus_language_data): Likewise.
6083 (cplus_language::skip_trampoline): New member function.
6084 (asm_language_data): Delete skip_trampoline initializer.
6085 (minimal_language_data): Likewise.
6086 * d-lang.c (d_language_data): Likewise.
6087 * f-lang.c (f_language_data): Likewise.
6088 * go-lang.c (go_language_data): Likewise.
6089 * language.c (unk_lang_trampoline): Delete function.
6090 (skip_language_trampoline): Update.
6091 (unknown_language_data): Delete skip_trampoline initializer.
6092 (auto_language_data): Likewise.
6093 * language.h (language_data): Delete skip_trampoline field.
6094 (language_defn::skip_trampoline): New function.
6095 * m2-lang.c (m2_language_data): Delete skip_trampoline
6097 * objc-lang.c (objc_skip_trampoline): Delete function, move
6098 implementation to objc_language::skip_trampoline.
6099 (objc_language_data): Delete skip_trampoline initializer.
6100 (objc_language::skip_trampoline): New member function with
6101 implementation from objc_skip_trampoline.
6102 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6104 * p-lang.c (pascal_language_data): Likewise.
6105 * rust-lang.c (rust_language_data): Likewise.
6107 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6109 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6110 (ada_language::demangle): New member function.
6111 * c-lang.c (c_language_data): Delete la_demangle initializer.
6112 (cplus_language_data): Delete la_demangle initializer.
6113 (cplus_language::demangle): New member function.
6114 (asm_language_data): Delete la_demangle initializer.
6115 (minimal_language_data): Delete la_demangle initializer.
6116 * d-lang.c (d_language_data): Delete la_demangle initializer.
6117 (d_language::demangle): New member function.
6118 * f-lang.c (f_language_data): Delete la_demangle initializer.
6119 (f_language::demangle): New member function.
6120 * go-lang.c (go_language_data): Delete la_demangle initializer.
6121 (go_language::demangle): New member function.
6122 * language.c (language_demangle): Update.
6123 (unk_lang_demangle): Delete.
6124 (unknown_language_data): Delete la_demangle initializer.
6125 (unknown_language::demangle): New member function.
6126 (auto_language_data): Delete la_demangle initializer.
6127 (auto_language::demangle): New member function.
6128 * language.h (language_data): Delete la_demangle field.
6129 (language_defn::demangle): New function.
6130 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6131 * objc-lang.c (objc_language_data): Delete la_demangle
6133 (objc_language::demangle): New member function.
6134 * opencl-lang.c (opencl_language_data): Delete la_demangle
6136 * p-lang.c (pascal_language_data): Likewise.
6137 * rust-lang.c (rust_language_data): Likewise.
6138 (rust_language::demangle): New member function.
6140 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6142 * ada-lang.c (ada_language_data): Delete la_print_type
6144 (ada_language::print_type): New member function.
6145 * c-lang.c (c_language_data): Delete la_print_type initializer.
6146 (c_language::print_type): New member function.
6147 (cplus_language_data): Delete la_print_type initializer.
6148 (cplus_language::print_type): New member function.
6149 (asm_language_data): Delete la_print_type initializer.
6150 (asm_language::print_type): New member function.
6151 (minimal_language_data): Delete la_print_type initializer.
6152 (minimal_language::print_type): New member function.
6153 * d-lang.c (d_language_data): Delete la_print_type initializer.
6154 (d_language::print_type): New member function.
6155 * f-lang.c (f_language_data): Delete la_print_type initializer.
6156 (f_language::print_type): New member function.
6157 * go-lang.c (go_language_data): Delete la_print_type initializer.
6158 (go_language::print_type): New member function.
6159 * language.c (unk_lang_print_type): Delete.
6160 (unknown_language_data): Delete la_print_type initializer.
6161 (unknown_language::print_type): New member function.
6162 (auto_language_data): Delete la_print_type initializer.
6163 (auto_language::print_type): New member function.
6164 * language.h (language_data): Delete la_print_type field.
6165 (language_defn::print_type): New function.
6166 (LA_PRINT_TYPE): Update.
6167 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6168 (m2_language::print_type): New member function.
6169 * objc-lang.c (objc_language_data): Delete la_print_type
6171 (objc_language::print_type): New member function.
6172 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6173 to opencl_language::print_type.
6174 (opencl_language_data): Delete la_print_type initializer.
6175 (opencl_language::print_type): New member function, implementation
6176 from opencl_print_type.
6177 * p-lang.c (pascal_language_data): Delete la_print_type
6179 (pascal_language::print_type): New member function.
6180 * rust-lang.c (rust_print_type): Delete, implementation moved to
6181 rust_language::print_type.
6182 (rust_language_data): Delete la_print_type initializer.
6183 (rust_language::print_type): New member function, implementation
6184 from rust_print_type.
6186 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6188 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6189 implementation moves to...
6190 (ada_language::sniff_from_mangled_name): ...here. Update return
6192 (ada_language_data): Delete la_sniff_from_mangled_name
6194 * c-lang.c (c_language_data): Likewise.
6195 (cplus_language_data): Likewise.
6196 (cplus_language::sniff_from_mangled_name): New member function,
6197 implementation taken from gdb_sniff_from_mangled_name.
6198 (asm_language_data): Delete la_sniff_from_mangled_name
6200 (minimal_language_data): Likewise.
6201 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6202 implementation moves to cplus_language::sniff_from_mangled_name.
6203 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6204 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6206 (d_language::sniff_from_mangled_name): ...here.
6207 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6208 * f-lang.c (f_language_data): Likewise.
6209 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6211 (go_language::sniff_from_mangled_name): ...here.
6212 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6213 * language.c (language_sniff_from_mangled_name): Delete.
6214 (unknown_language_data): Delete la_sniff_from_mangled_name
6216 (auto_language_data): Likewise.
6217 * language.h (language_data): Delete la_sniff_from_mangled_name
6219 (language_defn::sniff_from_mangled_name): New function.
6220 (language_sniff_from_mangled_name): Delete declaration.
6221 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6223 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6224 implementation moves to...
6225 (objc_language::sniff_from_mangled_name): ...here.
6226 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6227 * opencl-lang.c (opencl_language_data): Likewise.
6228 * p-lang.c (pascal_language_data): Likewise.
6229 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6230 implementation moves to...
6231 (rust_language::sniff_from_mangled_name): ...here.
6232 (rust_language_data): Delete la_sniff_from_mangled_name
6234 * symtab.c (symbol_find_demangled_name): Call
6235 sniff_from_mangled_name member function.
6237 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6239 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6241 * c-lang.c (c_language_data): Likewise.
6242 (cplus_language_data): Likewise.
6243 (cplus_language::search_name_hash): New member function.
6244 (asm_language_data): Delete la_search_name_hash initializer.
6245 (minimal_language_data): Likewise.
6246 * d-lang.c (d_language_data): Likewise.
6247 * dictionary.c (default_search_name_hash): Rename to...
6248 (language_defn::search_name_hash): ...this.
6249 * f-lang.c (f_language_data): Likewise.
6250 (f_language::search_name_hash): New member function.
6251 * go-lang.c (go_language_data): Delete la_search_name_hash
6253 * language.c (unknown_language_data): Likewise.
6254 (auto_language_data): Likewise.
6255 * language.h (struct language_data): Delete la_search_name_hash
6257 (language_defn::search_name_hash): Declare new member function.
6258 (default_search_name_hash): Delete declaration.
6259 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6261 * objc-lang.c (objc_language_data): Likewise.
6262 * opencl-lang.c (opencl_language_data): Likewise.
6263 * p-lang.c (pascal_language_data): Likewise.
6264 * rust-lang.c (rust_language_data): Likewise.
6265 * symtab.c (search_name_hash): Update call.
6267 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6269 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6271 * c-lang.c (class compile_instance): Declare.
6272 (c_language_data): Delete la_get_compile_instance initializer.
6273 (c_language::get_compile_instance): New member function.
6274 (cplus_language_data): Delete la_get_compile_instance initializer.
6275 (cplus_language::get_compile_instance): New member function.
6276 (asm_language_data): Delete la_get_compile_instance initializer.
6277 (minimal_language_data): Likewise.
6278 * c-lang.h (c_get_compile_context): Update comment.
6279 (cplus_get_compile_context): Update comment.
6280 * compile/compile.c (compile_to_object): Update calls, don't rely
6281 on function pointer being NULL.
6282 * d-lang.c (d_language_data): Delete la_get_compile_instance
6284 * f-lang.c (f_language_data): Likewise.
6285 * go-lang.c (go_language_data): Likewise.
6286 * language.c (unknown_language_data): Likewise.
6287 (auto_language_data): Likewise.
6288 * language.h (language_data): Delete la_get_compile_instance field.
6289 (language_defn::get_compile_instance): New member function.
6290 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6292 * objc-lang.c (objc_language_data): Likewise.
6293 * opencl-lang.c (opencl_language_data): Likewise.
6294 * p-lang.c (pascal_language_data): Likewise.
6295 * rust-lang.c (rust_language_data): Likewise.
6297 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6299 * ada-lang.c (ada_add_all_symbols): Update comment.
6300 (ada_iterate_over_symbols): Delete, move implementation to...
6301 (ada_language::iterate_over_symbols): ...here, a new member
6302 function, rewrite to use range based for loop.
6303 (ada_language_data): Delete la_iterate_over_symbols initializer.
6304 * c-lang.c (c_language_data): Likewise.
6305 (cplus_language_data): Likewise.
6306 (asm_language_data): Likewise.
6307 (minimal_language_data): Likewise.
6308 * d-lang.c (d_language_data): Likewise.
6309 * f-lang.c (f_language_data): Likewise.
6310 * go-lang.c (go_language_data): Likewise.
6311 * language.c (unknown_language_data): Likewise.
6312 (auto_language_data): Likewise.
6313 * language.h (language_data): Delete la_iterate_over_symbols field.
6314 (language_defn::iterate_over_symbols): New member function.
6315 (LA_ITERATE_OVER_SYMBOLS): Update.
6316 * linespec.c (iterate_over_all_matching_symtabs): Update.
6317 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6319 * objc-lang.c (objc_language_data): Likewise.
6320 * opencl-lang.c (opencl_language_data): Likewise.
6321 * p-lang.c (pascal_language_data): Likewise.
6322 * rust-lang.c (rust_language_data): Likewise.
6324 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6326 * ada-lang.c (ada_language_data): Delete
6327 la_lookup_transparent_type initializer.
6328 * c-lang.c (c_language_data): Likewise.
6329 (cplus_language_data): Likewise.
6330 (cplus_language::lookup_transparent_type): New member function.
6331 (asm_language_data): Delete la_lookup_transparent_type
6333 (minimal_language_data): Likewise.
6334 * d-lang.c (d_language_data): Likewise.
6335 * f-lang.c (f_language_data): Likewise.
6336 * go-lang.c (go_language_data): Likewise.
6337 * language.c (unknown_language_data): Likewise.
6338 (auto_language_data): Likewise.
6339 * language.h (struct language_data): Delete
6340 la_lookup_transparent_type field.
6341 (language_defn::lookup_transparent_type): New member function.
6342 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6344 * objc-lang.c (objc_language_data): Likewise.
6345 * opencl-lang.c (opencl_language_data): Likewise.
6346 * p-lang.c (pascal_language_data): Likewise.
6347 * rust-lang.c (rust_language_data): Likewise.
6348 * symtab.c (symbol_matches_domain): Update call.
6350 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6352 * ada-lang.c (ada_language_arch_info): Delete function, move
6353 implementation to...
6354 (ada_language::language_arch_info): ...here, a new member
6356 (ada_language_data): Delete la_language_arch_info.
6357 * c-lang.c (c_language_data): Likewise.
6358 (c_language::language_arch_info): New member function.
6359 (cplus_language_arch_info): Delete function, move
6360 implementation to...
6361 (cplus_language::language_arch_info): ...here, a new member
6363 (cplus_language_data): Delete la_language_arch_info.
6364 (asm_language_data): Likewise.
6365 (asm_language::language_arch_info): New member function.
6366 (minimal_language_data): Delete la_language_arch_info.
6367 (minimal_language::language_arch_info): New member function.
6368 * d-lang.c (d_language_arch_info): Delete function, move
6369 implementation to...
6370 (d_language::language_arch_info): ...here, a new member
6372 (d_language_data): Delete la_language_arch_info.
6373 * f-lang.c (f_language_arch_info): Delete function, move
6374 implementation to...
6375 (f_language::language_arch_info): ...here, a new member
6377 (f_language_data): Delete la_language_arch_info.
6378 * go-lang.c (go_language_arch_info): Delete function, move
6379 implementation to...
6380 (go_language::language_arch_info): ...here, a new member
6382 (go_language_data): Delete la_language_arch_info.
6383 * language.c (unknown_language_data): Likewise.
6384 (unknown_language::language_arch_info): New member function.
6385 (auto_language_data): Delete la_language_arch_info.
6386 (auto_language::language_arch_info): New member function.
6387 (language_gdbarch_post_init): Update call to
6388 la_language_arch_info.
6389 * language.h (language_data): Delete la_language_arch_info
6391 (language_defn::language_arch_info): New function.
6392 * m2-lang.c (m2_language_arch_info): Delete function, move
6393 implementation to...
6394 (m2_language::language_arch_info): ...here, a new member
6396 (m2_language_data): Delete la_language_arch_info.
6397 * objc-lang.c (objc_language_arch_info): Delete function, move
6398 implementation to...
6399 (objc_language::language_arch_info): ...here, a new member
6401 (objc_language_data): Delete la_language_arch_info.
6402 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6403 implementation to...
6404 (opencl_language::language_arch_info): ...here, a new member
6406 (opencl_language_data): Delete la_language_arch_info.
6407 * p-lang.c (pascal_language_arch_info): Delete function, move
6408 implementation to...
6409 (pascal_language::language_arch_info): ...here, a new member
6411 (pascal_language_data): Delete la_language_arch_info.
6412 * rust-lang.c (rust_language_arch_info): Delete function, move
6413 implementation to...
6414 (rust_language::language_arch_info): ...here, a new member
6416 (rust_language_data): Delete la_language_arch_info.
6418 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6420 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6422 * c-lang.c (c_language_data): Likewise.
6423 (cplus_language_data): Likewise.
6424 (cplus_language::pass_by_reference_info): New method.
6425 (asm_language_data): Delete la_pass_by_reference initializer.
6426 (minimal_language_data): Likewise.
6427 * cp-abi.c (cp_pass_by_reference): Remove use of
6428 default_pass_by_reference.
6429 * d-lang.c (d_language_data): Likewise.
6430 * f-lang.c (f_language_data): Likewise.
6431 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6432 default_pass_by_reference.
6433 * go-lang.c (go_language_data): Likewise.
6434 * language.c (language_pass_by_reference): Update.
6435 (default_pass_by_reference): Delete.
6436 (unknown_language_data): Delete la_pass_by_reference
6438 (auto_language_data): Likewise.
6439 * language.h (struct language_data): Delete la_pass_by_reference
6441 (language_defn::pass_by_reference_info): New member function.
6442 (default_pass_by_reference): Delete declaration.
6443 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6445 * objc-lang.c (objc_language_data): Likewise.
6446 * opencl-lang.c (opencl_language_data): Likewise.
6447 * p-lang.c (pascal_language_data): Likewise.
6448 * rust-lang.c (rust_language_data): Likewise.
6450 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6452 * ada-lang.c (ada_read_var_value): Delete function, move
6453 implementation to...
6454 (ada_language::read_var_value): ...here.
6455 (ada_language_data): Delete la_read_var_value initializer.
6456 * c-lang.c (c_language_data): Likewise.
6457 (cplus_language_data): Likewise.
6458 (minimal_language_data): Likewise.
6459 * d-lang.c (d_language_data): Likewise.
6460 * f-lang.c (f_language_data): Likewise.
6461 * findvar.c (default_read_var_value): Rename to...
6462 (language_defn::read_var_value): ...this.
6463 * findvar.c (read_var_value): Update header comment, and change to
6464 call member function instead of function pointer.
6465 * go-lang.c (go_language_data): Likewise.
6466 * language.c (unknown_language_data): Delete la_read_var_value
6468 (auto_language_data): Likewise.
6469 * language.h (struct language_data): Delete la_read_var_value
6471 (language_defn::read_var_value): New member function.
6472 (default_read_var_value): Delete declaration.
6473 * m2-lang.c (m2_language_data): Delete la_read_var_value
6475 * objc-lang.c (objc_language_data): Likewise.
6476 * opencl-lang.c (opencl_language_data): Likewise.
6477 * p-lang.c (pascal_language_data): Likewise.
6478 * rust-lang.c (rust_language_data): Likewise.
6479 * value.h (default_read_var_value): Delete declaration.
6481 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6483 * ada-lang.c (ada_print_array_index): Delete function, move
6484 implementation to...
6485 (ada_language::print_array_index): ...here.
6486 (ada_language_data): Delete la_print_array_index initializer.
6487 * c-lang.c (c_language_data): Likewise.
6488 (cplus_language_data): Likewise.
6489 (minimal_language_data): Likewise.
6490 * d-lang.c (d_language_data): Likewise.
6491 * f-lang.c (f_language_data): Likewise.
6492 * go-lang.c (go_language_data): Likewise.
6493 * language.c (default_print_array_index): Delete function, move
6494 implementation to...
6495 (language_defn::print_array_index): ...here.
6496 (unknown_language_data): Delete la_print_array_index initializer.
6497 (auto_language_data): Likewise.
6498 * language.h (struct language_data): Delete la_print_array_index
6500 (language_defn::print_array_index): New member function.
6501 (LA_PRINT_ARRAY_INDEX): Update.
6502 (default_print_array_index): Delete declaration.
6503 * m2-lang.c (m2_language_data): Delete la_print_array_index
6505 * objc-lang.c (objc_language_data): Likewise.
6506 * opencl-lang.c (opencl_language_data): Likewise.
6507 * p-lang.c (pascal_language_data): Likewise.
6508 * rust-lang.c (rust_language_data): Likewise.
6510 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6512 * gdb/ada-lang.c (ada_language_defn): Convert to...
6513 (ada_language_data): ...this.
6514 (class ada_language): New class.
6515 (ada_language_defn): New static global.
6516 * gdb/c-lang.c (c_language_defn): Convert to...
6517 (c_language_data): ...this.
6518 (class c_language): New class.
6519 (c_language_defn): New static global.
6520 (cplus_language_defn): Convert to...
6521 (cplus_language_data): ...this.
6522 (class cplus_language): New class.
6523 (cplus_language_defn): New static global.
6524 (asm_language_defn): Convert to...
6525 (asm_language_data): ...this.
6526 (class asm_language): New class.
6527 (asm_language_defn): New static global.
6528 (minimal_language_defn): Convert to...
6529 (minimal_language_data): ...this.
6530 (class minimal_language): New class.
6531 (minimal_language_defn): New static global.
6532 * gdb/d-lang.c (d_language_defn): Convert to...
6533 (d_language_data): ...this.
6534 (class d_language): New class.
6535 (d_language_defn): New static global.
6536 * gdb/f-lang.c (f_language_defn): Convert to...
6537 (f_language_data): ...this.
6538 (class f_language): New class.
6539 (f_language_defn): New static global.
6540 * gdb/go-lang.c (go_language_defn): Convert to...
6541 (go_language_data): ...this.
6542 (class go_language): New class.
6543 (go_language_defn): New static global.
6544 * gdb/language.c (unknown_language_defn): Remove declaration.
6545 (current_language): Initialize to nullptr, real initialization is
6546 moved to _initialize_language.
6547 (languages): Delete global.
6548 (language_defn::languages): Define.
6549 (set_language_command): Use language_defn::languages.
6550 (set_language): Likewise.
6551 (range_error): Likewise.
6552 (language_enum): Likewise.
6553 (language_def): Likewise.
6554 (add_set_language_command): Use language_def::languages for the
6555 language list, and language_def to lookup language pointers.
6556 (skip_language_trampoline): Use language_defn::languages.
6557 (unknown_language_defn): Convert to...
6558 (unknown_language_data): ...this.
6559 (class unknown_language): New class.
6560 (unknown_language_defn): New static global.
6561 (auto_language_defn): Convert to...
6562 (auto_language_data): ...this.
6563 (class auto_language): New class.
6564 (auto_language_defn): New static global.
6565 (language_gdbarch_post_init): Use language_defn::languages.
6566 (_initialize_language): Initialize current_language.
6567 * gdb/language.h (struct language_defn): Rename to...
6568 (struct language_data): ...this.
6569 (struct language_defn): New.
6570 (auto_language_defn): Delete.
6571 (unknown_language_defn): Delete.
6572 (minimal_language_defn): Delete.
6573 (ada_language_defn): Delete.
6574 (asm_language_defn): Delete.
6575 (c_language_defn): Delete.
6576 (cplus_language_defn): Delete.
6577 (d_language_defn): Delete.
6578 (f_language_defn): Delete.
6579 (go_language_defn): Delete.
6580 (m2_language_defn): Delete.
6581 (objc_language_defn): Delete.
6582 (opencl_language_defn): Delete.
6583 (pascal_language_defn): Delete.
6584 (rust_language_defn): Delete.
6585 * gdb/m2-lang.c (m2_language_defn): Convert to...
6586 (m2_language_data): ...this.
6587 (class m2_language): New class.
6588 (m2_language_defn): New static global.
6589 * gdb/objc-lang.c (objc_language_defn): Convert to...
6590 (objc_language_data): ...this.
6591 (class objc_language): New class.
6592 (objc_language_defn): New static global.
6593 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6594 (opencl_language_data): ...this.
6595 (class opencl_language): New class.
6596 (opencl_language_defn): New static global.
6597 * gdb/p-lang.c (pascal_language_defn): Convert to...
6598 (pascal_language_data): ...this.
6599 (class pascal_language): New class.
6600 (pascal_language_defn): New static global.
6601 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6602 language pointer, update comment format.
6603 * gdb/rust-lang.c (rust_language_defn): Convert to...
6604 (rust_language_data): ...this.
6605 (class rust_language): New class.
6606 (rust_language_defn): New static global.
6608 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6610 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6612 <m_stmt_at_address>: New member variable.
6613 (lnp_state_machine::record_line): Don't record some lines, update
6614 tracking of is_stmt at the same address.
6615 (lnp_state_machine::lnp_state_machine): Initialise new member
6618 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6620 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6621 "-include gnu-nat-mig.h".
6622 * gnu-nat-mig.h: New file.
6623 * gnu-nat.c: Include "gnu-nat-mig.h".
6624 (exc_server, msg_reply_server, notify_server,
6625 process_reply_server): Remove declarations.
6627 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6629 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6630 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6631 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6632 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6633 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6634 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6635 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6636 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6637 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6638 to gnu_nat_target class.
6639 * gnu-nat.c: Likewise.
6640 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6641 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6642 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6644 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6645 instead of `gnu_target'.
6647 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6649 * i386-gnu-tdep.c: Include "gdbcore.h"
6650 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6651 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6652 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6653 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6654 i386_gnu_sigcontext_addr): New functions
6655 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6656 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6659 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6661 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
6662 before fork_inferior call. Avoid calling it if target_is_pushed returns
6665 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6667 * gnu-nat.h (gnu_target): New variable declaration.
6668 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
6670 * gnu-nat.c (gnu_target): New variable.
6671 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
6672 add_thread_silent, and add_thread calls.
6673 (gnu_nat_target::create_inferior): Pass gnu_target to
6674 add_thread_silent, thread_change_ptid call.
6675 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
6678 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6680 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
6681 (gnu_nat_target::find_memory_regions): Remove unused
6682 `old_address' variable.
6684 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6686 * gnu-nat.c: Include "gdbarch.h".
6688 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6690 * reply_mig_hack.awk (Error return): Cast function through
6691 void *, to bypass compiler function call check.
6693 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6695 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
6696 $(srcdir)/reply_mig_hack.awk.
6698 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6700 * gnu-nat.h (gnu_debug_flag): Set type to bool.
6702 2020-05-30 Jonny Grant <jg@jguk.org>
6704 * configure.ac (ACX_BUGURL): change bug URL to https.
6706 2020-05-30 Pedro Alves <palves@redhat.com>
6708 * cp-support.c (replace_typedefs_template): New.
6709 (replace_typedefs_qualified_name): Handle
6710 DEMANGLE_COMPONENT_TEMPLATE.
6712 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
6714 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
6715 dwarf2/index-cache.h, dwarf2/index-write.c,
6716 dwarf2/index-write.h, dwarf2/line-header.c,
6717 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
6718 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
6719 variables and fields from `dwarf2_per_objfile` to just
6720 `per_objfile` throughout.
6722 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
6724 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6725 <push_dwarf_reg_entry_value>: Add comment.
6727 2020-05-28 Kevin Buettner <kevinb@redhat.com>
6728 Keith Seitz <keiths@redhat.com>
6730 * python/python.c (do_start_initialization): Call PyEval_SaveThread
6731 instead of PyEval_ReleaseLock.
6732 (class gdbpy_gil): Move to earlier in file.
6733 (finalize_python): Set gdb_python_initialized.
6734 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
6735 when not initialized.
6737 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
6739 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6740 <push_dwarf_reg_entry_value>: Remove assert. Override
6741 per_objfile with caller_per_objfile.
6743 2020-05-28 Tom de Vries <tdevries@suse.de>
6745 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
6746 PR gold/15646 workaround to symbol kind "type".
6748 2020-05-27 Tom Tromey <tromey@adacore.com>
6750 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
6752 2020-05-27 Tom Tromey <tromey@adacore.com>
6754 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
6755 Use htab_find_with_hash.
6756 <add_abbrev>: Remove "abbrev_number" parameter.
6757 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
6758 "abbrev_number" parameter. Use htab_find_slot_with_hash.
6759 (hash_abbrev): Add comment.
6760 (abbrev_table::lookup_abbrev): Move to header file.
6761 (abbrev_table::read): Update.
6763 2020-05-27 Tom Tromey <tromey@adacore.com>
6765 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
6767 <canonical_name>: New member.
6768 <raw_name>: Rename from "name".
6769 (partial_die_info): Initialize canonical_name.
6770 (scan_partial_symbols): Check raw_name.
6771 (partial_die_parent_scope, partial_die_full_name)
6772 (add_partial_symbol, add_partial_subprogram)
6773 (add_partial_enumeration, load_partial_dies): Use "name" method.
6774 (partial_die_info::name): New method.
6775 (partial_die_info::read, guess_partial_die_structure_name)
6776 (partial_die_info::fixup): Update.
6778 2020-05-27 Tom Tromey <tromey@adacore.com>
6780 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
6781 <get_ref_die_offset>: Inline.
6782 <get_ref_die_offset_complaint>: New method.
6783 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
6784 (attribute::get_ref_die_offset_complaint): Rename from
6785 get_ref_die_offset. Just issue complaint.
6787 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6789 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
6791 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6793 * exec.c (exec_file_attach): Use errno value of first openp failure.
6795 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
6797 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
6798 Don't close thread handle.
6800 2020-05-27 Tom Tromey <tom@tromey.com>
6801 Simon Marchi <simon.marchi@efficios.com>
6803 * objfiles.h (struct objfile) <partial_symtabs>: Now a
6805 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
6807 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
6808 dwarf2_per_bfd_objfile_data_key>: New globals.
6809 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
6810 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
6811 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
6813 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
6814 short-circuit when sharing.
6815 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
6816 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
6818 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6820 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
6822 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
6823 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
6825 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6827 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
6828 build_name_components, find_name_components_bounds>:
6829 Add per_objfile parameter.
6830 (struct mapped_index) <symbol_name_at>: Likewise.
6831 (struct mapped_debug_names): Remove constructor.
6832 <dwarf2_per_objfile>: Remove field.
6833 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
6834 (mapped_index_base::find_name_components_bounds,
6835 mapped_index_base::build_name_components,
6836 dw2_expand_symtabs_matching_symbol): Likewise.
6837 (class mock_mapped_index) <symbol_name_at>: Likewise.
6838 (check_match): Likewise.
6839 (check_find_bounds_finds): Likewise.
6840 (test_mapped_index_find_name_component_bounds): Update.
6841 (CHECK_MATCH): Update.
6842 (dw2_expand_symtabs_matching): Update.
6843 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
6844 per_objfile parameter.
6845 <find_vec_in_debug_names>: Likewise.
6846 <m_per_objfile>: New field.
6847 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
6849 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
6850 (dw2_debug_names_iterator::next): Update.
6851 (dw2_debug_names_lookup_symbol): Update.
6852 (dw2_debug_names_expand_symtabs_for_function): Update.
6853 (dw2_debug_names_map_matching_symbols): Update.
6854 (dw2_debug_names_expand_symtabs_matching): Update.
6855 (dwarf2_read_debug_names): Update.
6857 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6859 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
6860 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
6861 move to dwarf2_per_objfile.
6862 <read_in_chain>: Remove.
6863 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
6864 remove_all_cus, age_comp_units>: New methods.
6865 <m_dwarf2_cus>: New member.
6866 (struct dwarf2_per_cu_data) <cu>: Remove.
6867 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
6868 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
6869 moved to methods of dwarf2_per_objfile.
6870 (dwarf2_clear_marks): Remove.
6871 (dwarf2_queue_item::~dwarf2_queue_item): Update.
6872 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
6873 (dwarf2_per_bfd::free_cached_comp_units): Remove.
6874 (dwarf2_per_objfile::remove_all_cus): New.
6875 (class free_cached_comp_units) <~free_cached_comp_units>:
6878 (dw2_do_instantiate_symtab): Adjust.
6879 (fill_in_sig_entry_from_dwo_entry): Adjust.
6880 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6881 (cutu_reader::cutu_reader): Likewise.
6882 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
6883 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
6884 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
6885 and dwarf2_per_objfile::age_comp_units.
6886 (load_partial_comp_unit): Update.
6887 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
6888 (process_queue): Likewise.
6889 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
6891 (dwarf2_read_addr_index): Likewise.
6892 (follow_die_offset): Likewise.
6893 (dwarf2_fetch_die_loc_sect_off): Likewise.
6894 (dwarf2_fetch_constant_bytes): Likewise.
6895 (dwarf2_fetch_die_type_sect_off): Likewise.
6896 (follow_die_sig_1): Likewise.
6897 (load_full_type_unit): Likewise.
6898 (read_signatured_type): Likewise.
6899 (dwarf2_cu::dwarf2_cu): Don't set cu field.
6900 (dwarf2_cu::~dwarf2_cu): Remove.
6901 (dwarf2_per_objfile::get_cu): New.
6902 (dwarf2_per_objfile::set_cu): New.
6903 (age_cached_comp_units): Rename to...
6904 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
6905 to std::unordered_map.
6906 (free_one_cached_comp_unit): Rename to...
6907 (dwarf2_per_objfile::remove_cu): ... this. Adjust
6908 to std::unordered_map.
6909 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
6910 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
6911 a dwarf2_per_objfile in data.
6912 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
6913 (dwarf2_clear_marks): Remove.
6915 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6917 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
6918 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
6919 (init_tu_and_read_dwo_dies): Likewise.
6920 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
6921 (cutu_reader::cutu_reader): Likewise.
6922 (load_partial_comp_unit): Likewise.
6923 (process_psymtab_comp_unit): Update.
6924 (build_type_psymtabs_1): Update.
6925 (process_skeletonless_type_unit): Update.
6926 (load_full_comp_unit): Update.
6927 (find_partial_die): Update.
6928 (dwarf2_read_addr_index): Update.
6929 (read_signatured_type): Update.
6931 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6933 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
6934 m_header_read_in>: New fields.
6935 <get_header>: New method.
6936 * dwarf2/read.c (per_cu_header_read_in): Remove.
6937 (dwarf2_per_cu_data::get_header): New.
6938 (dwarf2_per_cu_data::addr_size): Update.
6939 (dwarf2_per_cu_data::offset_size): Update.
6940 (dwarf2_per_cu_data::ref_addr_size): Update.
6942 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6944 * dwarf2/read.c (load_cu): Return dwarf2_cu.
6945 (dw2_do_instantiate_symtab): Update.
6946 (queue_and_load_all_dwo_tus): Change parameter from
6947 dwarf2_per_cu_data to dwarf2_cu.
6948 (dwarf2_fetch_die_loc_sect_off): Update.
6949 (dwarf2_fetch_constant_bytes): Update.
6950 (dwarf2_fetch_die_type_sect_off): Update.
6952 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6954 * dwarf2/read.c (process_full_comp_unit,
6955 process_full_type_unit): Remove per_cu, per_objfile paramters.
6956 Add dwarf2_cu parameter.
6957 (process_queue): Update.
6959 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6961 * dwarf2/read.c (create_cu_from_index_list): Replace
6962 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6963 (create_cus_from_index_list): Likewise.
6964 (create_cus_from_index): Likewise.
6965 (create_signatured_type_table_from_index): Likewise.
6966 (create_cus_from_debug_names_list): Likewise.
6967 (create_cus_from_debug_names): Likewise.
6968 (dwarf2_read_gdb_index): Update.
6969 (dwarf2_read_debug_names): Update.
6971 2020-05-27 Tom Tromey <tom@tromey.com>
6972 Simon Marchi <simon.marchi@efficios.com>
6974 * dwarf2/read.h (struct dwarf2_per_objfile)
6975 <get_type_for_signatured_type, set_type_for_signatured_type>:
6977 <m_type_map>: New member.
6978 (struct signatured_type) <type>: Remove.
6980 (dwarf2_per_objfile::get_type_for_signatured_type,
6981 dwarf2_per_objfile::set_type_for_signatured_type): New.
6982 (get_signatured_type): Use new methods.
6984 2020-05-27 Tom Tromey <tom@tromey.com>
6985 Simon Marchi <simon.marchi@efficios.com>
6987 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6988 (struct dwarf2_per_objfile) <type_units>: New member.
6989 <get_type_unit_group_unshareable>: New method.
6990 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6991 num_symtabs, symtabs>: Remove; move to
6992 type_unit_group_unshareable.
6993 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6994 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6995 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6997 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6999 * dwarf2/read.h (struct dwarf2_per_cu_data):
7000 <dwarf2_per_objfile>: Remove.
7001 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7003 (create_signatured_type_table_from_index): Likewise.
7004 (create_signatured_type_table_from_debug_names): Likewise.
7005 (create_debug_type_hash_table): Likewise.
7006 (fill_in_sig_entry_from_dwo_entry): Likewise.
7007 (create_type_unit_group): Likewise.
7008 (read_comp_units_from_section): Likewise.
7009 (create_cus_hash_table): Likewise.
7011 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7013 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7014 dwarf2_per_cu_data::dwarf2_per_objfile.
7015 (compute_compunit_symtab_includes): Likewise.
7016 (dwarf2_cu::start_symtab): Likewise.
7018 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7020 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7022 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7023 (read_namespace_alias): Update.
7024 (lookup_die_type): Update.
7025 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7026 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7028 (disassemble_dwarf_expression): Update.
7030 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7032 * dwarf2/read.h (struct dwarf2_queue_item): Add
7033 dwarf2_per_objfile parameter, assign new parameter.
7034 <per_objfile>: New field.
7035 * dwarf2/read.c (free_one_cached_comp_unit): Add
7036 dwarf2_per_objfile parameter.
7037 (queue_comp_unit): Likewise.
7038 (dw2_do_instantiate_symtab): Update.
7039 (process_psymtab_comp_unit): Update.
7040 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7041 (process_imported_unit_die): Update.
7042 (queue_and_load_dwo_tu): Update.
7043 (follow_die_offset): Update.
7044 (follow_die_sig_1): Update.
7046 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7048 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7049 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7050 (read_call_site_scope): Assign per_objfile.
7051 (dwarf2_per_cu_data::objfile): Remove.
7052 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7053 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7054 dwarf2_per_objfile parameter.
7055 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7056 dwarf2_per_objfile parameter.
7057 (dwarf_expr_reg_to_entry_parameter): Add output
7058 dwarf2_per_objfile parameter.
7059 (locexpr_get_frame_base): Update.
7060 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7061 <push_dwarf_reg_entry_value>: Update.
7062 <call_site_to_target_addr>: Update.
7063 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7065 (value_of_dwarf_reg_entry): Update.
7066 (rw_pieced_value): Update.
7067 (indirect_synthetic_pointer): Update.
7068 (dwarf2_evaluate_property): Update.
7069 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7071 (locexpr_read_variable): Update.
7072 (locexpr_get_symbol_read_needs): Update.
7073 (loclist_read_variable): Update.
7075 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7077 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7078 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7079 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7081 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7082 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7083 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7085 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7086 sect_variable_value): Add dwarf2_per_objfile parameter.
7087 (class dwarf_evaluate_loc_desc) <dwarf_call,
7088 dwarf_variable_value>: Update.
7089 (fetch_const_value_from_synthetic_pointer): Add
7090 dwarf2_per_objfile parameter.
7091 (fetch_const_value_from_synthetic_pointer): Update.
7092 (coerced_pieced_ref): Update.
7093 (class symbol_needs_eval_context) <dwarf_call,
7094 dwarf_variable_value>: Update.
7095 (dwarf2_compile_expr_to_ax): Update.
7097 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7099 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7101 (dwarf2_evaluate_loc_desc_full): Update.
7103 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7105 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7107 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7108 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7109 dwarf2_per_objfile parameter.
7110 (decode_debug_loc_dwo_addresses): Likewise.
7111 (dwarf2_find_location_expression): Update.
7112 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7113 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7115 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7117 (locexpr_describe_location_1): Likewise.
7118 (locexpr_describe_location): Update.
7120 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7122 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7124 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7125 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7126 (dwarf2_compile_property_to_c): Update.
7127 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7128 use text offset from objfile.
7129 (locexpr_tracepoint_var_ref): Update.
7130 (locexpr_generate_c_location): Update.
7131 (loclist_describe_location): Update.
7132 (loclist_tracepoint_var_ref): Update.
7133 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7134 dwarf2_per_objfile parameter.
7135 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7136 use text offset from objfile.
7137 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7139 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7141 * dwarf2/expr.h (struct dwarf_expr_context)
7142 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7144 <per_objfile>: New member.
7145 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7146 dwarf2_per_objfile parameter. Don't set offset, set
7148 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7149 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7150 a dwarf2_per_objfile object instead of an offset.
7151 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7153 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7154 to dwarf2_expr_executor constructor. Don't set offset.
7155 (dwarf2_fetch_cfa_info): Update.
7156 (struct dwarf2_frame_cache) <text_offset>: Remove.
7157 <per_objfile>: New field.
7158 (dwarf2_frame_cache): Update.
7159 (dwarf2_frame_prev_register): Update.
7160 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7161 <dwarf_evaluate_loc_desc>: Add constructor.
7162 (dwarf2_evaluate_loc_desc_full): Update.
7163 (dwarf2_locexpr_baton_eval): Update.
7164 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7166 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7168 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7170 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7171 addr_sized_int_type>: Move to dwarf2_cu.
7172 <int_type>: Move to dwarf2_per_objfile.
7173 (struct dwarf2_per_objfile) <int_type>: Move here.
7174 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7175 addr_sized_int_type>: Move here.
7176 (read_func_scope): Update.
7177 (read_array_type): Update.
7178 (read_tag_string_type): Update.
7179 (attr_to_dynamic_prop): Update.
7180 (dwarf2_per_cu_data::int_type): Rename to...
7181 (dwarf2_per_objfile::int_type): ... this.
7182 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7183 (dwarf2_cu::addr_sized_int_type): ... this.
7184 (read_subrange_type): Update.
7185 (dwarf2_per_cu_data::addr_type): Rename to...
7186 (dwarf2_cu::addr_type): ... this.
7187 (set_die_type): Update.
7189 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7191 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7192 data through per_cu->cu.
7194 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7196 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7197 dwarf2_per_cu_data parameter fo dwarf2_cu.
7198 (lookup_dwo_type_unit): Likewise.
7199 (read_cutu_die_from_dwo): Likewise.
7200 (lookup_dwo_unit): Likewise.
7201 (open_and_init_dwo_file): Likewise.
7202 (lookup_dwo_cutu): Likewise.
7203 (lookup_dwo_comp_unit): Likewise.
7204 (lookup_dwo_type_unit): Likewise.
7205 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7206 (cutu_reader::cutu_reader): Update.
7208 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7210 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7212 (process_full_type_unit): Likewise.
7213 (process_queue): Update.
7215 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7217 * dwarf2/read.c (recursively_compute_inclusions): Add
7218 dwarf2_per_objfile parameter.
7219 (compute_compunit_symtab_includes): Likewise.
7220 (process_cu_includes): Update.
7222 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7224 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7226 (create_type_unit_group): Update.
7227 (process_psymtab_comp_unit_reader): Update.
7228 (build_type_psymtabs_reader): Update.
7230 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7232 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7233 object through m_this_cu->cu.
7235 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7237 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7239 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7241 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7243 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7244 per_objfile parameter.
7245 (load_full_type_unit): Add per_objfile parameter.
7246 (read_signatured_type): Likewise.
7247 (load_full_comp_unit): Likewise.
7248 (load_cu): Likewise.
7249 (dw2_do_instantiate_symtab): Likewise.
7250 (dw2_get_file_names): Likewise.
7251 (dw2_map_symtabs_matching_filename): Update.
7252 (dw_expand_symtabs_matching_file_matcher): Update.
7253 (dw2_map_symbol_filenames): Update.
7254 (process_psymtab_comp_unit): Add per_objfile parameter.
7255 (build_type_psymtabs_1): Update.
7256 (process_skeletonless_type_unit): Update.
7257 (dwarf2_build_psymtabs_hard): Update.
7258 (load_partial_comp_unit): Add per_objfile parameter.
7259 (scan_partial_symbols): Update.
7260 (load_full_comp_unit): Add per_objfile parameter.
7261 (process_imported_unit_die): Update.
7262 (create_cus_hash_table): Update.
7263 (find_partial_die): Update.
7264 (dwarf2_read_addr_index): Update.
7265 (follow_die_offset): Update.
7266 (dwarf2_fetch_die_loc_sect_off): Update.
7267 (dwarf2_fetch_constant_bytes): Update.
7268 (dwarf2_fetch_die_type_sect_off): Update.
7269 (follow_die_sig_1): Update.
7270 (load_full_type_unit): Add per_objfile parameter.
7271 (read_signatured_type): Likewise.
7273 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7275 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7278 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7280 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7281 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7282 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7284 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7285 (create_cus_from_index): Update.
7286 (dwarf2_read_gdb_index): Update.
7287 (create_cus_from_debug_names): Update.
7288 (dwarf2_read_debug_names): Update.
7289 (get_abbrev_section_for_cu): Update.
7290 (create_all_comp_units): Update.
7291 (read_attribute_value): Update.
7292 (get_debug_line_section): Update.
7293 * dwarf2/index-cache.c (index_cache::store): Update.
7294 * dwarf2/index-write.c (save_gdb_index_command): Update.
7295 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7297 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7299 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7301 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7302 dwarf2_per_cu_data::per_bfd.
7303 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7304 (create_type_unit_group): Likewise.
7305 (queue_comp_unit): Remove reference to
7306 per_cu->dwarf2_per_objfile.
7307 (maybe_queue_comp_unit): Likewise.
7308 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7309 (create_cus_hash_table): Assign new field.
7311 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7313 * dwarf2/read.c: Replace
7314 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7315 dwarf2_cu->per_objfile throughout.
7317 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7319 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7320 parameter, don't use per_cu->dwarf2_per_objfile.
7321 (dw2_instantiate_symtab): Likewise.
7322 (dw2_find_last_source_symtab): Update.
7323 (dw2_map_expand_apply): Update.
7324 (dw2_lookup_symbol): Update.
7325 (dw2_expand_symtabs_for_function): Update.
7326 (dw2_expand_all_symtabs): Update.
7327 (dw2_expand_symtabs_with_fullname): Update.
7328 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7329 don't use per_cu->dwarf2_per_objfile.
7330 (dw2_expand_marked_cus): Update.
7331 (dw2_find_pc_sect_compunit_symtab): Update.
7332 (dw2_debug_names_lookup_symbol): Update.
7333 (dw2_debug_names_expand_symtabs_for_function): Update.
7334 (dw2_debug_names_map_matching_symbols): Update.
7335 (dwarf2_psymtab::expand_psymtab): Update.
7337 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7339 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7340 <per_objfile>: New member.
7341 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7342 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7344 (cutu_reader::cutu_reader): Update.
7345 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7347 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7349 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7350 struct dwarf2_per_objfile.
7351 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7353 * dwarf2/read.c (set_die_type): Update.
7354 (get_die_type_at_offset): Update.
7356 2020-05-27 Tom Tromey <tom@tromey.com>
7357 Simon Marchi <simon.marchi@efficios.com>
7359 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7361 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7362 get_symtab, set_symtab>: New methods.
7363 <m_symtabs>: New field.
7364 (struct dwarf2_psymtab): Derive from partial_symtab.
7365 <readin_p, get_compunit_symtab>: Declare methods.
7366 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7367 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7369 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7370 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7371 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7372 (dw2_symtab_iter_next, dw2_print_stats)
7373 (dw2_expand_symtabs_with_fullname)
7374 (dw2_expand_symtabs_matching_one)
7375 (dw_expand_symtabs_matching_file_matcher)
7376 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7377 (dw2_debug_names_iterator::next)
7378 (dw2_debug_names_map_matching_symbols)
7379 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7380 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7381 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7383 (get_compunit_symtab, process_full_comp_unit)
7384 (process_full_type_unit): Update.
7385 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7387 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7389 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7390 then introduce a new dwarf2_per_objfile type.
7391 <read_line_string>: Move to the new dwarf2_per_objfile type.
7392 <objfile>: Likewise.
7393 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7394 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7395 dwarf2_per_objfile->per_bfd.
7396 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7397 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7398 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7399 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7400 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7401 (dwarf2_per_objfile::locate_sections): Rename to...
7402 (dwarf2_per_bfd::locate_sections): ... this.
7403 (dwarf2_per_objfile::get_cutu): Rename to...
7404 (dwarf2_per_bfd::get_cutu): ... this.
7405 (dwarf2_per_objfile::get_cu): Rename to...
7406 (dwarf2_per_bfd::get_cu): ... this.
7407 (dwarf2_per_objfile::get_tu): Rename to...
7408 (dwarf2_per_bfd::get_tu): ... this.
7409 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7410 (dwarf2_per_bfd::allocate_per_cu): ... this.
7411 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7412 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7413 (get_gdb_index_contents_ftype): Change parameter from
7414 dwarf2_per_objfile to dwarf2_per_bfd.
7415 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7416 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7418 2020-05-27 Tom Tromey <tom@tromey.com>
7419 Simon Marchi <simon.marchi@efficios.com>
7421 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7422 (allocate_piece_closure): Set "per_objfile" member.
7423 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7424 (locexpr_describe_location, loclist_describe_location): Use new
7426 * dwarf2/read.c (read_call_site_scope)
7427 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7428 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7429 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7430 handle_data_member_location): Set per_objfile member.
7431 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7433 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7435 2020-05-27 Tom Tromey <tom@tromey.com>
7437 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7438 allocate_signatured_type>: Declare new methods.
7439 <m_num_psymtabs>: New member.
7440 (struct dwarf2_per_cu_data) <index>: New member.
7441 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7442 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7443 (create_cu_from_index_list): Use allocate_per_cu.
7444 (create_signatured_type_table_from_index)
7445 (create_signatured_type_table_from_debug_names)
7446 (create_debug_type_hash_table, add_type_unit)
7447 (read_comp_units_from_section): Use allocate_signatured_type.
7449 2020-05-27 Tom Tromey <tom@tromey.com>
7451 * psymtab.c (partial_map_expand_apply)
7452 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7453 (psym_lookup_global_symbol_language)
7454 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7455 (psym_print_stats, psym_expand_symtabs_for_function)
7456 (psym_map_symbol_filenames, psym_map_matching_symbols)
7457 (psym_expand_symtabs_matching)
7458 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7459 (maintenance_check_psymtabs): Update.
7460 * psympriv.h (struct partial_symtab) <readin_p,
7461 get_compunit_symtab>: Add objfile parameter.
7462 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7464 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7465 get_compunit_symtab>: Likewise.
7466 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7468 2020-05-27 Tom Tromey <tom@tromey.com>
7470 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7472 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7473 (create_cu_from_index_list)
7474 (create_signatured_type_table_from_index)
7475 (create_signatured_type_table_from_debug_names)
7476 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7477 (dwarf2_create_include_psymtab)
7478 (create_debug_type_hash_table, add_type_unit)
7479 (create_type_unit_group, read_comp_units_from_section)
7480 (dwarf2_compute_name, create_cus_hash_table)
7481 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7482 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7484 (dw2_get_real_path): Likewise. Change argument to
7487 2020-05-27 Luis Machado <luis.machado@linaro.org>
7490 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7491 for ldrd (immediate).
7493 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7495 * command.h: Add comment giving the name of class_tui.
7496 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7497 create the fake command for the help for class_tui.
7499 2020-05-26 Tom Tromey <tromey@adacore.com>
7501 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7502 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7503 (val_atr): New function.
7504 (value_val_atr): Use it.
7505 * ada-valprint.c (print_optional_low_bound): Change low bound
7507 (val_print_packed_array_elements): Don't call discrete_position.
7508 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7509 discrete_position for enum types.
7510 * language.c (default_print_array_index): Change type.
7511 * language.h (struct language_defn) <la_print_array_index>: Add
7512 index_type parameter, change type of index_value.
7513 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7514 (default_print_array_index): Update.
7515 * valprint.c (maybe_print_array_index): Don't call
7516 value_from_longest. Update.
7517 (value_print_array_elements): Don't call discrete_position.
7519 2020-05-26 Tom Tromey <tromey@adacore.com>
7521 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7522 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7524 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7527 * avr-tdep.c (avr_integer_to_address): Return data or code
7528 address accordingly to the second 'type' argument of the
7531 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7533 * infcmd.c, inferior.h: (construct_inferior_arguments):
7534 Moved function from here to gdbsupport/common-inferior.{h,cc}
7536 2020-05-23 Tom Tromey <tom@tromey.com>
7538 Revert commit eca1f90c:
7539 * NEWS: Remove entry for completion styling.
7540 * completer.c (_rl_completion_prefix_display_length): Move
7542 (gdb_fnprint): Revert.
7543 (gdb_display_match_list_1): Likewise.
7544 * cli/cli-style.c (completion_prefix_style)
7545 (completion_difference_style, completion_suffix_style): Remove.
7546 (_initialize_cli_style): Revert.
7547 * cli/cli-style.h (completion_prefix_style)
7548 (completion_difference_style, completion_suffix_style): Don't
7551 2020-05-24 Pedro Alves <palves@redhat.com>
7553 * symtab.c (completion_list_add_name): Return boolean indication
7554 of whether the symbol matched.
7555 (completion_list_add_symbol): Don't try to remove C++ aliases if
7556 the symbol didn't match in the first place.
7557 * symtab.h (completion_list_add_name): Return bool.
7559 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7561 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7564 2020-05-23 Joel Brobecker <brobecker@adacore.com>
7568 2020-05-23 Tom Tromey <tom@tromey.com>
7570 * NEWS: Add entry for completion styling.
7571 * completer.c (_rl_completion_prefix_display_length): Move
7572 declaration earlier.
7573 (gdb_fnprint): Use completion_style.
7574 (gdb_display_match_list_1): Likewise.
7575 * cli/cli-style.c (completion_prefix_style)
7576 (completion_difference_style, completion_suffix_style): New
7578 (_initialize_cli_style): Register new globals.
7579 * cli/cli-style.h (completion_prefix_style)
7580 (completion_difference_style, completion_suffix_style): Declare.
7582 2020-05-23 Pedro Alves <palves@redhat.com>
7584 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7585 (parse_escape): Use ISDIGIT instead of isdigit.
7586 (puts_debug): Use gdb_isprint instead of isprint.
7587 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7588 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7589 ISSPACE instead of isspace.
7590 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7592 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7593 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7594 instead of isxdigit and ISDIGIT instead of isdigit.
7596 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7598 * gdbtypes.h (struct type) <field>: New method.
7599 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7602 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7604 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7605 (TYPE_FIELDS): Use type::fields. Change all call sites that
7606 modify the propery to use type::set_fields instead.
7608 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7610 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7611 type::num_fields instead.
7613 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7615 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7617 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7618 that modify the number of fields to use type::set_num_fields
7621 2020-05-22 Tom Tromey <tromey@adacore.com>
7623 * compile/compile-object-load.h (munmap_list_free): Don't
7626 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7628 * annotate.c (annotate_source_line): Update return type, add call
7629 to update current symtab and line.
7630 * annotate.h (annotate_source_line): Update return type, and
7631 extend header comment.
7632 * source.c (info_line_command): Check annotation_level before
7633 calling annotate_source_line.
7634 * stack.c (print_frame_info): If calling annotate_source_line
7635 returns true, then don't print any other source line information.
7637 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
7639 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7641 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
7643 * coffread.c (patch_type): Remove NULL check before xfree.
7644 * corefile.c (set_gnutarget): Likewise.
7645 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7646 * exec.c (build_section_table): Likewise.
7647 * remote.c (remote_target::pass_signals): Likewise.
7648 * utils.c (n_spaces): Likewise.
7649 * cli/cli-script.c (document_command): Likewise.
7650 * i386-windows-tdep.c (core_process_module_section): Likewise.
7651 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7653 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
7655 * symfile.c (reread_symbols): Clear objfile's section_offsets
7656 vector and section indices, re-compute them by calling
7659 2020-05-20 Tom Tromey <tromey@adacore.com>
7661 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
7662 (desc_one_bound, desc_index_type): Compute field name.
7664 2020-05-20 Tom de Vries <tdevries@suse.de>
7667 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
7669 2020-05-20 Alan Modra <amodra@gmail.com>
7672 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
7674 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
7675 passed to bfd_set_filename.
7676 * symfile-mem.c (add_vsyscall_page): Likewise for string
7677 passed to symbol_file_add_from_memory.
7678 (symbol_file_add_from_memory): Make name param a const char* and
7681 2020-05-20 Alan Modra <amodra@gmail.com>
7683 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
7684 rather than accessing bfd->filename directly.
7685 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
7686 and use bfd_section_name.
7687 * dwarf2/frame.c (decode_frame_entry): Likewise.
7688 * exec.c (exec_set_section_address): Likewise.
7689 * solib-aix.c (solib_aix_bfd_open): Likewise.
7690 * stap-probe.c (get_stap_base_address): Likewise.
7691 * symfile.c (reread_symbols): Likewise.
7693 2020-05-19 Tom Tromey <tromey@adacore.com>
7695 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
7697 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7699 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
7701 2020-05-19 Pedro Alves <palves@redhat.com>
7703 * NEWS (set exec-file-mismatch): Adjust entry.
7704 * exec.c: Include "build-id.h".
7705 (validate_exec_file): Try to match build IDs instead of filenames.
7706 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
7707 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
7708 and pass down 'warn_if_slow'.
7709 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
7710 gdb_bfd_open_closure to pass it down.
7711 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
7713 2020-05-19 Pedro Alves <palves@redhat.com>
7715 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
7716 * target.c (target_fileio_open_1): Rename to target_fileio_open
7717 and make extern. Use bool.
7718 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
7719 (target_fileio_read_alloc_1): Adjust.
7720 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
7721 (target_fileio_open_warn_if_slow): Delete declaration.
7723 2020-05-19 Pedro Alves <palves@redhat.com>
7725 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
7728 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
7730 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
7731 whether disp is negative.
7733 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7735 * symfile.h (struct symfile_segment_data)
7736 <~symfile_segment_data>: Remove.
7737 <segment_info>: Change to std::vector.
7738 * symfile.c (default_symfile_segments): Update.
7739 * elfread.c (elf_symfile_segments): Update.
7741 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7743 * symfile.h (struct symfile_segment_data) <struct segment>: New.
7745 <segment_bases, segment_sizes>: Remove.
7746 * symfile.c (default_symfile_segments): Update.
7747 * elfread.c (elf_symfile_segments): Update.
7748 * remote.c (remote_target::get_offsets): Update.
7749 * solib-target.c (solib_target_relocate_section_addresses):
7752 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
7754 * symfile.h (struct symfile_segment_data): Initialize fields.
7755 <~symfile_segment_data>: Add.
7756 (symfile_segment_data_up): New.
7757 (struct sym_fns) <sym_segments>: Return a
7758 symfile_segment_data_up.
7759 (default_symfile_segments): Return a symfile_segment_data_up.
7760 (free_symfile_segment_data): Remove.
7761 (get_symfile_segment_data): Return a symfile_segment_data_up.
7762 * symfile.c (default_symfile_segments): Likewise.
7763 (get_symfile_segment_data): Likewise.
7764 (free_symfile_segment_data): Remove.
7765 (symfile_find_segment_sections): Update.
7766 * elfread.c (elf_symfile_segments): Return a
7767 symfile_segment_data_up.
7768 * remote.c (remote_target::get_offsets): Update.
7769 * solib-target.c (solib_target_relocate_section_addresses):
7771 * symfile-debug.c (debug_sym_segments): Return a
7772 symfile_segment_data_up.
7774 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7777 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
7778 Hardcode register numbers.
7781 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
7782 procfs_find_LDT_entry): Remove.
7783 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
7784 procfs_find_LDT_entry): Remove.
7785 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
7788 2020-05-17 Pedro Alves <palves@redhat.com>
7789 Andrew Burgess <andrew.burgess@embecosm.com>
7790 Keno Fischer <keno@juliacomputing.com>
7793 * breakpoint.c (build_target_condition_list): Update comments.
7794 (build_target_command_list): Update comments and skip matching
7796 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
7797 a separate function. Simplify "set breakpoint auto-hw off"
7799 (insert_breakpoints): Update comment.
7800 (tracepoint_locations_match): New parameter. For breakpoints,
7801 compare location types too, if the caller wants to.
7802 (handle_automatic_hardware_breakpoints): New functions.
7803 (bp_location_is_less_than): Also sort by location type and
7804 hardware breakpoint length.
7805 (update_global_location_list): Handle "set breakpoint auto-hw on"
7807 (update_breakpoint_locations): Ask breakpoint_locations_match to
7808 ignore location types.
7810 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7812 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
7815 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7817 * gdbtypes.h (struct type) <name, set_name>: New methods.
7818 (TYPE_CODE): Use type::name. Change all call sites used to set
7819 the name to use type::set_name instead.
7821 2020-05-16 Tom Tromey <tom@tromey.com>
7823 * top.c (quit_force): Update.
7824 * infrun.c (handle_no_resumed): Update.
7825 * top.h (all_uis): New function.
7828 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
7830 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
7832 2020-05-16 Pedro Alves <palves@redhat.com>
7835 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
7837 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
7839 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
7841 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
7842 (sparc64_adi_info): Likewise.
7844 2020-05-15 Tom Tromey <tom@tromey.com>
7846 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
7848 (lookup_objfile_from_block): Remove.
7849 (lookup_symbol_in_block, lookup_symbol_in_static_block)
7850 (lookup_global_symbol): Use block_objfile.
7851 * symtab.h (lookup_objfile_from_block): Don't declare.
7852 * printcmd.c (clear_dangling_display_expressions): Use
7854 * parse.c (operator_check_standard): Use block_objfile.
7856 2020-05-15 Tom Tromey <tom@tromey.com>
7858 * language.c (language_alloc_type_symbol): Set
7860 * symtab.c (initialize_objfile_symbol): Remove.
7861 (allocate_symbol): Remove.
7862 (allocate_template_symbol): Remove.
7863 * dwarf2/read.c (fixup_go_packaging): Use "new".
7864 (new_symbol): Use "new".
7865 (read_variable): Don't call initialize_objfile_symbol. Use
7867 (read_func_scope): Use "new".
7868 * xcoffread.c (process_xcoff_symbol): Don't call
7869 initialize_objfile_symbol.
7870 (SYMBOL_DUP): Remove.
7871 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
7873 * symtab.h (allocate_symbol, initialize_objfile_symbol)
7874 (allocate_template_symbol): Don't declare.
7875 (struct symbol): Add copy constructor. Change defaults.
7876 * jit.c (finalize_symtab): Use "new".
7877 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
7879 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7880 (common_block_end): Use "new".
7881 * mdebugread.c (parse_symbol): Use "new".
7882 (new_symbol): Likewise.
7884 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7886 * NEWS: Mention changes to help and apropos.
7888 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7890 * command.h (enum command_class): Improve comments, document
7891 that class_alias is for user-defined aliases, give the class
7892 name for each class, remove unused class_xdb.
7893 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
7894 * breakpoint.c (_initialize_breakpoint): Replace class_alias
7896 * infcmd.c (_initialize_infcmd): Likewise.
7897 * reverse.c (_initialize_reverse): Likewise.
7898 * stack.c (_initialize_stack): Likewise.
7899 * symfile.c (_initialize_symfile): Likewise.
7900 * tracepoint.c (_initialize_tracepoint): Likewise.
7902 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7904 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
7905 when their aliased command is traversed.
7906 (help_cmd): Add fput_command_names_styled call to
7907 output command name and aliases when command has an alias.
7909 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7911 * cli/cli-decode.h (help_cmd_list): Remove declaration.
7912 * cli/cli-decode.c (help_cmd_list): Declare as static,
7913 remove prefix argument, use bool for recurse arg, rework to show the aliases of
7914 a command together with the command.
7915 (fput_command_name_styled, fput_command_names_styled): New functions.
7916 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
7917 fput_command_name_styled.
7918 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
7919 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
7921 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7923 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
7924 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
7925 * command.h (cmd_show_list): Likewise.
7926 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
7927 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
7929 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7931 * unittests/command-def-selftests.c (traverse_command_structure):
7932 Verify all commands of a list have the same prefix command and
7933 that only the top cmdlist commands have a null prefix.
7935 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7937 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
7938 as prefix, not one of its aliases.
7939 (set_cmd_prefix): Remove.
7940 (do_add_cmd): Centralize the setting of the prefix of a command, when
7941 command is defined after its full chain of prefix commands.
7942 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
7943 (add_setshow_cmd_full): Likewise.
7944 (update_prefix_field_of_prefixed_commands): New function.
7945 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
7946 update_prefix_field_of_prefixed_commands.
7947 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
7948 addresses of remote_set_cmdlist and remote_show_cmdlist given
7949 as argument, not the address of an argument.
7950 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
7951 * gdb/remote.c (_initialize_remote): Likewise.
7953 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7955 * cli/cli-cmds.c (alias_command): Check for an existing alias
7956 using lookup_cmd_composition, as valid_command_p is too strict
7957 and forbids aliases that are the prefix of an existing alias
7959 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7960 command is properly recognised as a valid command.
7962 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7964 * unittests/help-doc-selftests.c: Rename to
7965 unittests/command-def-selftests.c
7966 * unittests/command-def-selftests.c (help_doc_tests): Update some
7968 (command_structure_tests, traverse_command_structure): New namespace
7970 (command_structure_invariants_tests): New function.
7971 (_initialize_command_def_selftests) Renamed from
7972 _initialize_help_doc_selftests, register command_structure_invariants
7975 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7977 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7980 2020-05-15 Joel Brobecker <brobecker@adacore.com>
7982 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7983 ada_is_fixed_point_type. Update all callers.
7984 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7986 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7988 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7989 print_fixed_point_type. Update all callers.
7990 * ada-valprint.c (ada_value_print_num): Replace call to
7991 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7993 2020-05-14 Kevin Buettner <kevinb@redhat.com>
7995 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7997 (cpu_supports_bts): Add CV_AMD case.
7999 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8000 Simon Marchi <simon.marchi@efficios.com>
8002 * infrun.c (stop_all_threads): Collect multiple wait events at
8005 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8007 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8010 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8012 * gdbtypes.h (struct type) <code, set_code>: New methods.
8013 (TYPE_CODE): Use type::code. Change all call sites used to set
8014 the code to use type::set_code instead.
8016 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8017 Tom de Vries <tdevries@suse.de>
8018 Pedro Alves <palves@redhat.com>
8021 * infrun.c (stop_all_threads): Do NOT ignore
8022 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8023 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8025 (handle_no_resumed): Remove code handling a live inferior with no
8027 * remote.c (has_single_non_exited_thread): New.
8028 (remote_target::update_thread_list): Do not delete a thread if is
8029 the last thread of the process.
8030 * thread.c (thread_select): Call delete_exited_threads instead of
8033 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8035 * infrun.c (stop_all_threads): Enable/disable thread events of all
8036 targets. Move a debug message denoting the end of the function
8037 into the SCOPED_EXIT block.
8039 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8041 * process-stratum-target.h: Include <set>.
8042 (all_non_exited_process_targets, switch_to_target_no_thread): New
8043 function declarations.
8044 * process-stratum-target.c (all_non_exited_process_targets)
8045 (switch_to_target_no_thread): New function implementations.
8047 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8049 * infrun.c (handle_inferior_event): Extract out a piece of code
8051 (mark_non_executing_threads): ...this new function.
8053 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8055 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8058 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8060 * regcache.c (regcache_read_pc_protected): New function
8061 implementation that returns 0 if the PC cannot read via
8063 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8064 instead of 'regcache_read_pc'.
8065 (keep_going_pass_signal): Ditto.
8067 2020-05-13 Tom Tromey <tromey@adacore.com>
8069 * ada-lang.c (align_value): Remove.
8070 (ada_template_to_fixed_record_type_1): Use align_up.
8072 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8074 * async-event.c: Update the copyright year.
8075 * async-event.h: Update the copyright year.
8077 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
8079 * objfiles.h (is_addr_in_objfile,
8080 shared_objfile_contains_address_p): Return bool.
8081 * objfile.c (is_addr_in_objfile,
8082 shared_objfile_contains_address_p): Return bool.
8084 2020-05-11 Tom Tromey <tromey@adacore.com>
8086 * cli/cli-cmds.c (info_command): Restore.
8087 (_initialize_cli_cmds): Use add_prefix_command for "info".
8088 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8090 2020-05-11 Tom Tromey <tromey@adacore.com>
8092 * ada-lang.c (ada_value_primitive_field): Now public.
8093 * ada-lang.h (ada_value_primitive_field): Declare.
8094 * ada-valprint.c (print_field_values): Use
8095 ada_value_primitive_field for wrapper fields.
8097 2020-05-11 Tom de Vries <tdevries@suse.de>
8099 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8102 2020-05-11 Tom de Vries <tdevries@suse.de>
8105 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8106 with length 0, if not gdb-produced.
8107 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8109 2020-05-09 Tom de Vries <tdevries@suse.de>
8112 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8115 2020-05-09 Tom Tromey <tom@tromey.com>
8117 * top.c (server_command): Now bool.
8118 * top.h (server_command): Now bool.
8120 2020-05-08 Tom Tromey <tromey@adacore.com>
8122 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8123 already being processed.
8125 2020-05-08 Tom Tromey <tom@tromey.com>
8127 * printcmd.c (struct display) <next>: Remove.
8128 <display>: New constructor.
8129 <exp_string>: Now a std::string.
8130 <enabled_p>: Now a bool.
8131 (display_number): Move definition earlier.
8132 (displays): Rename from display_chain. Now a std::vector.
8133 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8134 (display_command): Update.
8135 (do_one_display, disable_display)
8136 (enable_disable_display_command, do_enable_disable_display):
8138 (free_display): Remove.
8139 (clear_displays): Rewrite.
8140 (delete_display): Update.
8141 (map_display_numbers): Use function_view. Remove "data"
8143 (do_delete_display): Remove.
8144 (undisplay_command): Update.
8145 (do_one_display, do_displays, disable_display)
8146 (info_display_command): Update.
8147 (do_enable_disable_display): Remove.
8148 (enable_disable_display_command)
8149 (clear_dangling_display_expressions): Update.
8151 2020-05-08 Tom Tromey <tom@tromey.com>
8153 * symtab.c (set_symbol_cache_size)
8154 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8155 (maintenance_print_symbol_cache_statistics): Update.
8156 * symmisc.c (print_symbol_bcache_statistics)
8157 (print_objfile_statistics, maintenance_print_objfiles)
8158 (maintenance_info_symtabs, maintenance_check_symtabs)
8159 (maintenance_expand_symtabs, maintenance_info_line_tables):
8161 * symfile-debug.c (set_debug_symfile): Update.
8162 * source.c (forget_cached_source_info): Update.
8163 * python/python.c (gdbpy_progspaces): Update.
8164 * psymtab.c (maintenance_info_psymtabs): Update.
8165 * probe.c (parse_probes): Update.
8166 * linespec.c (iterate_over_all_matching_symtabs)
8167 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8168 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8169 * exec.c (exec_target::close): Update.
8170 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8171 * breakpoint.c (print_one_breakpoint_location)
8172 (create_longjmp_master_breakpoint)
8173 (create_std_terminate_master_breakpoint): Update.
8174 * progspace.c (program_spaces): Now a std::vector.
8175 (maybe_new_address_space): Update.
8176 (add_program_space): Remove.
8177 (program_space::program_space): Update.
8178 (remove_program_space): Update.
8179 (number_of_program_spaces): Remove.
8180 (print_program_space, update_address_spaces): Update.
8181 * progspace.h (program_spaces): Change type.
8182 (ALL_PSPACES): Remove.
8183 (number_of_program_spaces): Don't declare.
8184 (struct program_space) <next>: Remove.
8186 2020-05-08 Tom Tromey <tom@tromey.com>
8188 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8189 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8190 (enable_break): Update.
8191 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8192 (frv_fdpic_find_canonical_descriptor): Update.
8193 (frv_fetch_objfile_link_map): Update.
8194 * progspace.c (program_space::free_all_objfiles): Update.
8195 (program_space::solibs): New method.
8196 * progspace.h (struct program_space) <solibs>: New method.
8197 * solist.h (master_so_list): Don't declare.
8198 (ALL_SO_LIBS): Remove.
8199 * solib.h (so_list_head): Remove.
8200 (update_solib_list): Update comment.
8201 * solib.c (master_so_list): Remove.
8202 (solib_used, update_solib_list, solib_add)
8203 (info_sharedlibrary_command, clear_solib)
8204 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8206 2020-05-08 Tom Tromey <tom@tromey.com>
8208 * extension.c (extension_languages): Now a std::array.
8209 (ALL_EXTENSION_LANGUAGES): Remove.
8210 (get_ext_lang_defn, get_ext_lang_of_file)
8211 (eval_ext_lang_from_control_command): Update.
8212 (finish_ext_lang_initialization)
8213 (auto_load_ext_lang_scripts_for_objfile)
8214 (ext_lang_type_printers::ext_lang_type_printers)
8215 (apply_ext_lang_type_printers)
8216 (ext_lang_type_printers::~ext_lang_type_printers)
8217 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8218 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8219 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8220 (get_matching_xmethod_workers, ext_lang_colorize)
8221 (ext_lang_before_prompt): Update.
8222 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8224 2020-05-08 Tom Tromey <tom@tromey.com>
8226 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8228 <swap_string, m_string>: Remove.
8229 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8231 * stabsread.c (define_symbol, read_type): Update.
8232 * linespec.c (find_linespec_symbols): Update.
8233 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8234 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8235 * dbxread.c (read_dbx_symtab): Update.
8236 * cp-support.h (cp_canonicalize_string_full)
8237 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8238 Return unique_xmalloc_ptr.
8239 * cp-support.c (inspect_type): Update.
8240 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8241 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8243 * c-typeprint.c (print_name_maybe_canonical): Update.
8244 * break-catch-throw.c (check_status_exception_catchpoint):
8247 2020-05-08 Tom de Vries <tdevries@suse.de>
8249 * infrun.c (follow_fork): Copy current_line and current_symtab to
8252 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8254 * async-event.c (struct async_signal_handler, struct
8255 async_event_handler): Reformat, remove typedef.
8257 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8259 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8260 access thistype->main_type->dyn_prop_list directly.
8262 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8264 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8265 (remove_dyn_prop): Remove. Update all users to use
8266 type::remove_dyn_prop.
8267 * gdbtypes.c (remove_dyn_prop): Rename to...
8268 (type::remove_dyn_prop): ... this.
8270 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8272 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8273 (add_dyn_prop): Remove. Update all users to use
8275 * gdbtypes.c (add_dyn_prop): Rename to...
8276 (type::add_dyn_prop): ... this.
8278 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8280 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8281 (get_dyn_prop): Remove. Update all users to use
8283 * gdbtypes.c (get_dyn_prop): Rename to...
8284 (type::dyn_prop): ... this.
8286 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
8288 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8290 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
8292 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8293 instruction, skip it if it's there.
8295 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
8297 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8299 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
8301 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8302 * gdbtypes.c (recursive_dump_type): Remove use of
8305 2020-05-03 Tom Tromey <tom@tromey.com>
8307 * breakpoint.c (catch_command, tcatch_command): Remove.
8308 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8309 add_show_prefix_cmd.
8310 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8311 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8313 (add_internal_problem_command): Use add_basic_prefix_cmd,
8314 add_show_prefix_cmd.
8315 * mips-tdep.c (set_mipsfpu_command): Remove.
8316 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8317 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8318 (_initialize_index_cache): Use add_basic_prefix_cmd.
8319 * memattr.c (dummy_cmd): Remove.
8320 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8321 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8322 (_initialize_tui_win): Use add_basic_prefix_cmd,
8323 add_show_prefix_cmd.
8324 * cli/cli-logging.c (set_logging_command): Remove.
8325 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8326 add_show_prefix_cmd.
8327 (show_logging_command): Remove.
8328 * target.c (target_command): Remove.
8329 (add_target): Use add_basic_prefix_cmd.
8331 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
8333 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8335 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8337 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8340 2020-04-30 Kamil Rytarowski <n54@gmx.com>
8342 * nbsd-nat.c (nbsd_enable_proc_events)
8343 (nbsd_nat_target::post_startup_inferior): Add.
8344 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8345 (nbsd_nat_target::update_thread_list): Rewrite.
8346 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8347 "PTRACE_LWP_CREATE".
8348 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8350 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8352 * stack.c (_initialize_stack): Remove duplicated creation
8353 of "frame" command and "f" alias.
8355 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
8358 * gdbtypes.c (check_typedef): Calculate size of array of
8361 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
8364 * i386-tdep.c (i386_push_dummy_call): Call
8365 i386_thiscall_push_dummy_call.
8366 (i386_thiscall_push_dummy_call): New function.
8367 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8368 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8369 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8371 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8373 * gdbarch.sh (do_read): Add shellcheck disable directive for
8376 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8378 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8379 "referenced but not assigned" warning.
8381 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8383 * gdbarch.sh: Remove code that sets fallbackdefault.
8385 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8387 * gdbarch.sh: Use shell operators && and || instead of
8390 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8392 * gdbarch.sh: Use $(...) instead of `...`.
8394 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8396 * gdbarch.sh: Use double quotes around variables.
8398 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8400 * gdbarch.sh: Use %s with printf, instead of variables in the
8403 2020-04-29 Tom Tromey <tromey@adacore.com>
8406 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8408 (read_enumeration_type): Call
8409 update_enumeration_type_from_children later. Update comments.
8410 (process_enumeration_scope): Don't create type fields.
8412 2020-04-29 Kamil Rytarowski <n54@gmx.com>
8414 * nbsd-tdep.c: Include "xml-syscall.h".
8415 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8417 2020-04-29 Kamil Rytarowski <n54@gmx.com>
8419 * nbsd-nat.c: Include "sys/wait.h".
8420 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8421 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8422 (nbsd_nat_target::remove_exec_catchpoint)
8423 (nbsd_nat_target::set_syscall_catchpoint): Add.
8424 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8425 (nbsd_nat_target::insert_exec_catchpoint)
8426 (nbsd_nat_target::remove_exec_catchpoint)
8427 (nbsd_nat_target::set_syscall_catchpoint): Add.
8428 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8429 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8430 `nbsd_get_syscall_number'.
8432 2020-04-29 Tom Tromey <tom@tromey.com>
8434 * stack.c (print_block_frame_labels): Remove.
8436 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
8439 * ada-valprint.c (val_print_packed_array_elements): Move array
8440 end bracket to new line.
8441 (ada_val_print_string): Remove extra spaces before first array
8443 * c-valprint.c (c_value_print_array): Likewise.
8444 * m2-valprint.c (m2_print_array_contents): Likewise.
8445 (m2_value_print_inner): Likewise.
8446 * p-valprint.c (pascal_value_print_inner): Likewise.
8447 * valprint.c (generic_val_print_array): Likewise.
8448 (value_print_array_elements): Move first array element and array
8449 end bracket to new line.
8451 2020-04-29 Tom de Vries <tdevries@suse.de>
8454 * linespec.c (find_method): Fix ix calculation.
8456 2020-04-28 Kamil Rytarowski <n54@gmx.com>
8458 * syscalls/update-netbsd.sh: New file.
8459 * syscalls/netbsd.xml: Regenerate.
8460 * data-directory/Makefile.in: Register `netbsd.xml' in
8463 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
8465 * syscalls/update-freebsd.sh: Add double quotes.
8467 2020-04-28 Tom Tromey <tom@tromey.com>
8470 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8471 (cmdpy_init): Allow class_tui.
8473 2020-04-28 Mark Williams <mark@myosotissp.com>
8476 * dwarf2read.c: Add missing assingments to list_in_scope when
8477 start_symtab was already called.
8479 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
8482 * dwarf2/read.c (offset_map_type): Use
8483 gdb:hash_enum<sect_offset> as hash function.
8485 2020-04-28 Tom de Vries <tdevries@suse.de>
8487 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8488 with DW_AT_signature.
8490 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
8492 * configure.ac: Remove check for fs_base/gs_base in
8494 * configure: Re-generate.
8495 * config.in: Re-generate.
8496 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8497 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8498 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8500 2020-04-27 Luis Machado <luis.machado@linaro.org>
8502 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8503 problematic inline frame unwinding situation.
8504 * frame.c (frame_id_computed_p): New function.
8505 * frame.h (frame_id_computed_p): New prototype.
8507 2020-04-26 Tom Tromey <tom@tromey.com>
8509 * command.h (enum command_class) <class_pseudo>: Remove.
8511 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8513 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8516 2020-04-25 Kamil Rytarowski <n54@gmx.com>
8518 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8519 `PT_GET_PROCESS_STATE' block.
8521 2020-04-24 Tom Tromey <tom@tromey.com>
8523 * symtab.h (symbol_get_demangled_name): Don't declare.
8524 * symtab.c (symbol_get_demangled_name): Remove.
8525 (general_symbol_info::natural_name)
8526 (general_symbol_info::demangled_name): Update.
8528 2020-04-24 Tom Tromey <tom@tromey.com>
8531 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8533 2020-04-24 Tom Tromey <tom@tromey.com>
8536 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8538 (new_symbol): Likewise.
8539 * compile/compile-object-load.c (get_out_value_type): Use
8540 symbol_matches_search_name.
8542 2020-04-24 Tom Tromey <tom@tromey.com>
8544 * dwarf2/read.c (add_partial_symbol): Do not call
8545 compute_and_set_names.
8547 2020-04-24 Tom Tromey <tom@tromey.com>
8549 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8552 2020-04-24 Tom Tromey <tom@tromey.com>
8554 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8555 (add_psymbol_to_list): New overload. Make old overload call new
8557 * psympriv.h (add_psymbol_to_list): New overload.
8559 2020-04-24 Tom Tromey <tom@tromey.com>
8561 * dwarf2/read.c (partial_die_info::read) <case
8562 DW_AT_linkage_name>: Use value_as_string.
8563 (dwarf2_string_attr): Use value_as_string.
8564 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8566 * dwarf2/attribute.c (attribute::value_as_string): New method.
8568 2020-04-24 Tom Tromey <tom@tromey.com>
8570 * symtab.c (general_symbol_info::natural_name)
8571 (general_symbol_info::demangled_name): Check for language_rust.
8573 2020-04-24 Tom Tromey <tom@tromey.com>
8575 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8576 (dwarf2_physname): ... from here.
8577 (partial_die_info::read): Add Rust "{" hack.
8579 2020-04-24 Tom Tromey <tom@tromey.com>
8581 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8583 (symbol_set_demangled_name): Don't declare.
8584 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8585 symbol_set_demangled_name.
8586 (general_symbol_info::set_language)
8587 (general_symbol_info::compute_and_set_names): Update.
8588 * minsyms.c (minimal_symbol_reader::install): Update.
8589 * dwarf2/read.c (new_symbol): Update.
8591 2020-04-24 Tom Tromey <tromey@adacore.com>
8594 * python/py-type.c (convert_field): Handle
8595 FIELD_LOC_KIND_DWARF_BLOCK.
8596 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8597 (typy_get_dynamic): Nw function.
8598 (type_object_getset): Add "dynamic".
8601 2020-04-24 Tom Tromey <tromey@adacore.com>
8603 * ada-typeprint.c (print_choices, print_variant_part)
8604 (print_record_field_types_dynamic): New functions.
8605 (print_record_field_types): Use print_record_field_types_dynamic.
8607 2020-04-24 Tom Tromey <tromey@adacore.com>
8609 * dwarf2/read.c (handle_data_member_location): New overload.
8610 (dwarf2_add_field): Use it.
8611 (decode_locdesc): Add "computed" parameter. Update comment.
8612 * gdbtypes.c (is_dynamic_type_internal): Also look for
8613 FIELD_LOC_KIND_DWARF_BLOCK.
8614 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8615 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8616 virtual base classes.
8617 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8618 FIELD_LOC_KIND_DWARF_BLOCK.
8620 2020-04-24 Tom Tromey <tromey@adacore.com>
8622 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8623 * gdbtypes.c (is_dynamic_type_internal): Check
8624 TYPE_HAS_DYNAMIC_LENGTH.
8625 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8626 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8628 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8631 2020-04-24 Tom Tromey <tromey@adacore.com>
8633 * dwarf2/read.c (struct variant_field): Rewrite.
8634 (struct variant_part_builder): New.
8635 (struct nextfield): Remove "variant" field. Add "offset".
8636 (struct field_info): Add "current_variant_part" and
8638 (alloc_discriminant_info): Remove.
8639 (alloc_rust_variant): New function.
8640 (quirk_rust_enum): Update.
8641 (dwarf2_add_field): Set "offset" member. Don't handle
8642 DW_TAG_variant_part.
8643 (offset_map_type): New typedef.
8644 (convert_variant_range, create_one_variant)
8645 (create_one_variant_part, create_variant_parts)
8646 (add_variant_property): New functions.
8647 (dwarf2_attach_fields_to_type): Call add_variant_property.
8648 (read_structure_type): Don't handle DW_TAG_variant_part.
8649 (handle_variant_part, handle_variant): New functions.
8650 (handle_struct_member_die): Use them.
8651 (process_structure_scope): Don't handle variant parts.
8652 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8653 (struct discriminant_info): Remove.
8654 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8655 (struct main_type) <flag_discriminated_union>: Remove.
8656 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8657 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8658 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8660 * valops.c (value_union_variant): Remove.
8661 * value.h (value_union_variant): Don't declare.
8663 2020-04-24 Tom Tromey <tromey@adacore.com>
8665 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
8666 (ada_value_primitive_packed_val): Update.
8667 * ada-valprint.c (ada_value_print_1): Update.
8668 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
8669 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
8670 just an address. Use evaluate_for_locexpr_baton.
8671 (dwarf2_evaluate_property): Update.
8672 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
8674 * findvar.c (default_read_var_value): Update.
8675 * gdbtypes.c (compute_variant_fields_inner)
8676 (resolve_dynamic_type_internal): Update.
8677 (resolve_dynamic_type): Change type of valaddr parameter.
8678 * gdbtypes.h (resolve_dynamic_type): Update.
8679 * valarith.c (value_subscripted_rvalue): Update.
8680 * value.c (value_from_contents_and_address): Update.
8682 2020-04-24 Tom Tromey <tromey@adacore.com>
8684 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
8685 "push_initial_value" parameter.
8686 (dwarf2_evaluate_property): Likewise.
8687 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
8689 2020-04-24 Tom Tromey <tromey@adacore.com>
8691 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
8692 (variant::matches, compute_variant_fields_recurse)
8693 (compute_variant_fields_inner, compute_variant_fields): New
8695 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
8696 Use resolved_type after type is made.
8697 (operator==): Add new cases.
8698 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
8699 (struct discriminant_range, struct variant, struct variant_part):
8701 (union dynamic_prop_data) <variant_parts, original_type>: New
8703 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
8704 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
8706 * value.c (unpack_bits_as_long): Now public.
8707 * value.h (unpack_bits_as_long): Declare.
8709 2020-04-24 Tom Tromey <tromey@adacore.com>
8711 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
8712 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
8714 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
8716 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
8718 2020-04-24 Kamil Rytarowski <n54@gmx.com>
8720 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
8721 (remove_fork_catchpoint, post_startup_inferior)
8722 (post_attach): Move...
8723 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
8724 (remove_fork_catchpoint, post_startup_inferior)
8725 (post_attach): ...here.
8726 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
8727 (remove_fork_catchpoint, post_startup_inferior)
8728 (post_attach): Move...
8729 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
8730 (remove_fork_catchpoint, post_startup_inferior)
8731 (post_attach): ...here.
8733 2020-04-24 Tom Tromey <tromey@adacore.com>
8735 * nat/windows-nat.h (struct windows_thread_info)
8736 <pc_adjusted>: New member.
8737 * windows-nat.c (windows_fetch_one_register): Check
8739 (windows_nat_target::get_windows_debug_event)
8740 (windows_nat_target::wait): Set pc_adjusted.
8742 2020-04-24 Tom de Vries <tdevries@suse.de>
8744 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
8745 Run gdb-add-index inside temp dir.
8747 2020-04-23 Tom Tromey <tromey@adacore.com>
8749 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
8752 2020-04-23 Luis Machado <luis.machado@linaro.org>
8754 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
8755 get_frame_register instead of gdbarch_unwind_pc.
8757 2020-04-23 Tom de Vries <tdevries@suse.de>
8759 * symtab.c (lookup_global_symbol): Prefer def over decl.
8761 2020-04-23 Tom de Vries <tdevries@suse.de>
8764 * block.c (best_symbol, better_symbol): Promote to external.
8765 * block.h (best_symbol, better_symbol): Declare.
8766 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
8769 2020-04-23 Tom Tromey <tromey@adacore.com>
8772 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
8773 "const char *", not a "const std::string &".
8774 <name_and_matcher::operator==>: Update.
8775 * unittests/lookup_name_info-selftests.c: Change type of
8778 2020-04-23 Tom Tromey <tom@tromey.com>
8780 * inferior.h (iterate_over_inferiors): Don't declare.
8781 * inferior.c (iterate_over_inferiors): Remove.
8782 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
8784 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
8785 use iterate_over_inferiors.
8786 (darwin_resume_inferior_it)
8787 (struct resume_inferior_threads_param)
8788 (darwin_resume_inferior_threads_it): Remove.
8789 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
8791 2020-04-23 Tom de Vries <tdevries@suse.de>
8793 * blockframe.c (find_pc_partial_function): Use
8794 find_pc_sect_compunit_symtab rather than
8795 objfile->sf->qf->find_pc_sect_compunit_symtab.
8797 2020-04-22 Tom de Vries <tdevries@suse.de>
8800 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
8803 2020-04-22 Tom de Vries <tdevries@suse.de>
8806 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
8809 2020-04-22 Tom de Vries <tdevries@suse.de>
8812 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
8813 CU if already created.
8815 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8817 * infrun.c (displaced_step_fixup): Switch to the event_thread
8818 before calling displaced_step_restore, not after.
8820 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8822 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
8823 its inferior is not recorded by us.
8824 (record_btrace_target_open): Replace call to
8825 all_non_exited_threads () with call to current_inferior
8826 ()->non_exited_threads ().
8827 (record_btrace_target::stop_recording): Likewise.
8828 (record_btrace_target::close): Likewise.
8829 (record_btrace_target::wait): Likewise.
8830 (record_btrace_target::record_stop_replaying): Likewise.
8832 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8834 * btrace.c (btrace_enable): Throw an error on double enables and
8835 when enabling recording fails.
8836 (btrace_disable): Throw an error if the thread is not recorded.
8838 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
8840 * record-btrace.c (record_btrace_target::fetch_registers): Forward
8841 request if we do not have a thread_info.
8843 2020-04-21 Tom de Vries <tdevries@suse.de>
8847 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
8848 exception in get_frame_id.
8850 2020-04-20 Tom Tromey <tromey@adacore.com>
8852 * python/python.c (struct gdbpy_event): Mark move constructor as
8854 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
8855 constructor as noexcept.
8856 * completer.h (struct completion_result): Mark move constructor as
8858 * completer.c (completion_result::completion_result): Use
8859 initialization style. Don't call reset_match_list.
8861 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
8863 * MAINTAINERS (Write After Approval): Add myself.
8865 2020-04-18 Tom Tromey <tom@tromey.com>
8867 * windows-tdep.c (init_w32_command_list)
8868 (w32_prefix_command_valid): Restore.
8869 (_initialize_windows_tdep): Call init_w32_command_list.
8871 2020-04-18 Tom Tromey <tom@tromey.com>
8873 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
8874 * value.c (value_fn_field): Update.
8875 * valops.c (find_function_in_inferior)
8876 (value_allocate_space_in_inferior): Update.
8877 * tui/tui-winsource.c (tui_update_source_windows_with_line):
8879 * tui/tui-source.c (tui_source_window::set_contents): Update.
8880 * symtab.c (lookup_global_or_static_symbol)
8881 (find_function_start_sal_1, skip_prologue_sal)
8882 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
8883 * symmisc.c (dump_msymbols, dump_symtab_1)
8884 (maintenance_print_one_line_table): Update.
8885 * symfile.c (init_entry_point_info, section_is_mapped)
8886 (list_overlays_command, simple_read_overlay_table)
8887 (simple_overlay_update_1): Update.
8888 * stap-probe.c (handle_stap_probe): Update.
8889 * stabsread.c (dbx_init_float_type, define_symbol)
8890 (read_one_struct_field, read_enum_type, read_range_type): Update.
8891 * source.c (info_line_command): Update.
8892 * python/python.c (gdbpy_source_objfile_script)
8893 (gdbpy_execute_objfile_script): Update.
8894 * python/py-type.c (save_objfile_types): Update.
8895 * python/py-objfile.c (py_free_objfile): Update.
8896 * python/py-inferior.c (python_new_objfile): Update.
8897 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
8898 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
8899 (maintenance_check_psymtabs): Update.
8900 * printcmd.c (info_address_command): Update.
8901 * objfiles.h (struct objfile) <arch>: New method, from
8903 (get_objfile_arch): Don't declare.
8904 * objfiles.c (get_objfile_arch): Remove.
8905 (filter_overlapping_sections): Update.
8906 * minsyms.c (msymbol_is_function): Update.
8907 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
8908 (output_nondebug_symbol): Update.
8909 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
8910 (mdebug_expand_psymtab): Update.
8911 * machoread.c (macho_add_oso_symfile): Update.
8912 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
8914 * linux-fork.c (checkpoint_command): Update.
8915 * linespec.c (convert_linespec_to_sals): Update.
8916 * jit.c (finalize_symtab): Update.
8917 * infrun.c (insert_exception_resume_from_probe): Update.
8918 * ia64-tdep.c (ia64_find_unwind_table): Update.
8919 * hppa-tdep.c (internalize_unwinds): Update.
8920 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
8922 * gcore.c (call_target_sbrk): Update.
8923 * elfread.c (record_minimal_symbol, elf_symtab_read)
8924 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
8925 (elf_gnu_ifunc_resolve_by_got): Update.
8926 * dwarf2/read.c (create_addrmap_from_index)
8927 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8928 (read_debug_names_from_section)
8929 (process_psymtab_comp_unit_reader, add_partial_symbol)
8930 (add_partial_subprogram, process_full_comp_unit)
8931 (read_file_scope, read_func_scope, read_lexical_block_scope)
8932 (read_call_site_scope, dwarf2_ranges_read)
8933 (dwarf2_record_block_ranges, dwarf2_add_field)
8934 (mark_common_block_symbol_computed, read_tag_pointer_type)
8935 (read_tag_string_type, dwarf2_init_float_type)
8936 (dwarf2_init_complex_target_type, read_base_type)
8937 (partial_die_info::read, partial_die_info::read)
8938 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
8939 (dwarf2_fetch_die_loc_sect_off): Update.
8940 * dwarf2/loc.c (dwarf2_find_location_expression)
8941 (class dwarf_evaluate_loc_desc, rw_pieced_value)
8942 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
8943 (dwarf2_loc_desc_get_symbol_read_needs)
8944 (locexpr_describe_location_piece, locexpr_describe_location_1)
8945 (loclist_describe_location): Update.
8946 * dwarf2/index-write.c (write_debug_names): Update.
8947 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
8948 * dtrace-probe.c (dtrace_process_dof): Update.
8949 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
8950 (process_one_symbol): Update.
8951 * ctfread.c (ctf_init_float_type, read_base_type): Update.
8952 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8953 (coff_read_enum_type): Update.
8954 * cli/cli-cmds.c (edit_command, list_command): Update.
8955 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8956 * breakpoint.c (create_overlay_event_breakpoint)
8957 (create_longjmp_master_breakpoint)
8958 (create_std_terminate_master_breakpoint)
8959 (create_exception_master_breakpoint, get_sal_arch): Update.
8960 * block.c (block_gdbarch): Update.
8961 * annotate.c (annotate_source_line): Update.
8963 2020-04-17 Tom Tromey <tromey@adacore.com>
8965 * auto-load.c (show_auto_load_cmd): Remove.
8966 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8967 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8968 (maintenance_print_arc_command): Remove.
8969 * tui/tui-win.c (tui_command): Remove.
8970 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8971 * tui/tui-layout.c (tui_layout_command): Remove.
8972 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8973 * python/python.c (user_set_python, user_show_python): Remove.
8974 (_initialize_python): Use add_basic_prefix_cmd,
8975 add_show_prefix_cmd.
8976 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8977 (install_gdb_commands): Use add_basic_prefix_cmd,
8978 add_show_prefix_cmd.
8979 (info_guile_command): Remove.
8980 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8981 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8982 add_show_prefix_cmd.
8983 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8984 Remove do_set and do_show parameters.
8985 * cli/cli-style.c (set_style, show_style): Remove.
8986 (_initialize_cli_style): Use add_basic_prefix_cmd,
8987 add_show_prefix_cmd.
8988 (cli_style_option::add_setshow_commands): Remove do_set and
8990 (cli_style_option::add_setshow_commands): Use
8991 add_basic_prefix_cmd, add_show_prefix_cmd.
8992 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8993 (set_style_name): Remove.
8994 * cli/cli-dump.c (dump_command, append_command): Remove.
8995 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8996 (tekhex_dump_command, binary_dump_command)
8997 (binary_append_command): Remove.
8998 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8999 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9000 (init_w32_command_list): Remove; move into ...
9001 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9002 * valprint.c (set_print, show_print, set_print_raw)
9003 (show_print_raw): Remove.
9004 (_initialize_valprint): Use add_basic_prefix_cmd,
9005 add_show_prefix_cmd.
9006 * typeprint.c (set_print_type, show_print_type): Remove.
9007 (_initialize_typeprint): Use add_basic_prefix_cmd,
9008 add_show_prefix_cmd.
9009 * record.c (set_record_command, show_record_command): Remove.
9010 (_initialize_record): Use add_basic_prefix_cmd,
9011 add_show_prefix_cmd.
9012 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9013 add_show_prefix_cmd.
9014 (info_command, show_command, set_debug, show_debug): Remove.
9015 * top.h (set_history, show_history): Don't declare.
9016 * top.c (set_history, show_history): Remove.
9017 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9018 (unset_tdesc_cmd): Remove.
9019 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9020 add_show_prefix_cmd.
9021 * symtab.c (info_module_command): Remove.
9022 (_initialize_symtab): Use add_basic_prefix_cmd.
9023 * symfile.c (overlay_command): Remove.
9024 (_initialize_symfile): Use add_basic_prefix_cmd.
9025 * sparc64-tdep.c (info_adi_command): Remove.
9026 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9027 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9028 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9029 add_show_prefix_cmd.
9030 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9031 (_initialize_serial): Use add_basic_prefix_cmd,
9032 add_show_prefix_cmd.
9033 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9034 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9035 add_show_prefix_cmd.
9036 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9037 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9038 add_show_prefix_cmd.
9039 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9040 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9041 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9042 add_show_prefix_cmd.
9043 * remote.c (remote_command, set_remote_cmd): Remove.
9044 (_initialize_remote): Use add_basic_prefix_cmd.
9045 * record-full.c (set_record_full_command)
9046 (show_record_full_command): Remove.
9047 (_initialize_record_full): Use add_basic_prefix_cmd,
9048 add_show_prefix_cmd.
9049 * record-btrace.c (cmd_set_record_btrace)
9050 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9051 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9052 (cmd_show_record_btrace_pt): Remove.
9053 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9054 add_show_prefix_cmd.
9055 * ravenscar-thread.c (set_ravenscar_command)
9056 (show_ravenscar_command): Remove.
9057 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9058 add_show_prefix_cmd.
9059 * mips-tdep.c (show_mips_command, set_mips_command)
9060 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9061 add_show_prefix_cmd.
9062 * maint.c (maintenance_command, maintenance_info_command)
9063 (maintenance_check_command, maintenance_print_command)
9064 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9065 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9066 add_show_prefix_cmd.
9067 (show_per_command_cmd): Remove.
9068 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9070 (maintenance_show_test_settings_cmd): Remove.
9071 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9072 add_show_prefix_cmd.
9073 * maint-test-options.c (maintenance_test_options_command):
9075 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9076 * macrocmd.c (macro_command): Remove
9077 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9078 * language.c (set_check, show_check): Remove.
9079 (_initialize_language): Use add_basic_prefix_cmd,
9080 add_show_prefix_cmd.
9081 * infcmd.c (unset_command): Remove.
9082 (_initialize_infcmd): Use add_basic_prefix_cmd.
9083 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9084 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9085 add_show_prefix_cmd.
9086 * go32-nat.c (go32_info_dos_command): Remove.
9087 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9088 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9089 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9090 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9091 (_initialize_frame): Use add_basic_prefix_cmd,
9092 add_show_prefix_cmd.
9093 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9094 (_initialize_dcache): Use add_basic_prefix_cmd,
9095 add_show_prefix_cmd.
9096 * cp-support.c (maint_cplus_command): Remove.
9097 (_initialize_cp_support): Use add_basic_prefix_cmd.
9098 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9099 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9100 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9101 add_basic_prefix_cmd, add_show_prefix_cmd.
9102 * breakpoint.c (save_command): Remove.
9103 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9104 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9105 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9106 add_show_prefix_cmd.
9107 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9108 (set_ada_command, show_ada_command): Remove.
9109 (_initialize_ada_language): Use add_basic_prefix_cmd,
9110 add_show_prefix_cmd.
9111 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9113 2020-04-16 Kamil Rytarowski <n54@gmx.com>
9115 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9116 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9118 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9120 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9123 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9125 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9126 import table is not at beginning of .idata section.
9128 2020-04-16 Pedro Alves <palves@redhat.com>
9130 * inferior.c (delete_inferior): Use delete operator directly
9131 instead of delete_program_space.
9132 * progspace.c (add_program_space): New, factored out from
9133 program_space::program_space.
9134 (remove_program_space): New, factored out from
9135 delete_program_space.
9136 (program_space::program_space): Remove intro comment. Rewrite.
9137 (program_space::~program_space): Remove intro comment. Call
9138 remove_program_space.
9139 (delete_program_space): Delete.
9140 * progspace.h (program_space::program_space): Make explicit. Move
9141 intro comment here, adjusted.
9142 (program_space::~program_space): Move intro comment here,
9144 (delete_program_space): Remove.
9146 2020-04-16 Tom Tromey <tromey@adacore.com>
9148 * windows-nat.c (windows_nat::handle_access_violation): New
9150 * nat/windows-nat.h (handle_access_violation): Declare.
9151 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9152 windows-nat.c. Call handle_access_violation.
9154 2020-04-16 Tom de Vries <tdevries@suse.de>
9157 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9158 CUs without psymtab.
9160 2020-04-16 Kevin Buettner <kevinb@redhat.com>
9162 * python/python.c (do_start_initialization): Don't call
9163 PyEval_InitThreads for Python 3.9 and beyond.
9165 2020-04-15 Kamil Rytarowski <n54@gmx.com>
9167 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9169 (obsd_nat_target::wait): Likewise.
9171 2020-04-15 Tom Tromey <tromey@adacore.com>
9173 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9174 (DEBUG_EXCEPT): Use debug_printf.
9176 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9178 * completer.c (class completion_tracker::completion_hash_entry)
9179 <hash_name>: New member function.
9180 (completion_tracker::discard_completions): New callback to hash a
9181 completion_hash_entry, pass this to htab_create_alloc.
9183 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9185 * windows-nat.c (windows_make_so): Warn rather than stopping with
9186 an error if realpath() fails.
9188 2020-04-14 Kamil Rytarowski <n54@gmx.com>
9190 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9191 (nbsd_nat_target::info_proc): Add do_status.
9193 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9194 Tom de Vries <tdevries@suse.de>
9197 * psympriv.h (struct partial_symtab::read_symtab)
9198 (struct partial_symtab::expand_psymtab)
9199 (struct partial_symtab::read_dependencies): Update comments.
9200 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9201 read_symtab for includer.
9202 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9203 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9204 (struct dwarf2_include_psymtab::m_readin): Remove.
9205 (struct dwarf2_include_psymtab::includer): New member function.
9206 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9208 2020-04-14 Tom de Vries <tdevries@suse.de>
9211 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9212 with NULL symbol_matcher and lookup_name.
9213 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9215 * dwarf2/read.c (dw2_expand_symtabs_matching)
9216 (dw2_debug_names_expand_symtabs_matching): Same.
9217 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9218 Make lookup_name a pointer. Update comment.
9219 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9220 lookup_name being a pointer.
9221 * symfile.c (expand_symtabs_matching): Same.
9222 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9223 * linespec.c (iterate_over_all_matching_symtabs): Same.
9225 2020-04-13 Tom Tromey <tom@tromey.com>
9227 * run-on-main-thread.c: Update include.
9228 * unittests/main-thread-selftests.c: Update include.
9229 * tui/tui-win.c: Update include.
9230 * tui/tui-io.c: Update include.
9231 * tui/tui-interp.c: Update include.
9232 * tui/tui-hooks.c: Update include.
9233 * top.h: Update include.
9234 * top.c: Update include.
9235 * ser-base.c: Update include.
9236 * remote.c: Update include.
9237 * remote-notif.c: Update include.
9238 * remote-fileio.c: Update include.
9239 * record-full.c: Update include.
9240 * record-btrace.c: Update include.
9241 * python/python.c: Update include.
9242 * posix-hdep.c: Update include.
9243 * mingw-hdep.c: Update include.
9244 * mi/mi-main.c: Update include.
9245 * mi/mi-interp.c: Update include.
9246 * main.c: Update include.
9247 * linux-nat.c: Update include.
9248 * interps.c: Update include.
9249 * infrun.c: Update include.
9250 * inf-loop.c: Update include.
9251 * event-top.c: Update include.
9252 * event-loop.c: Move to ../gdbsupport/.
9253 * event-loop.h: Move to ../gdbsupport/.
9254 * async-event.h: Update include.
9255 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9257 2020-04-13 Tom Tromey <tom@tromey.com>
9259 * tui/tui-win.c: Include async-event.h.
9260 * remote.c: Include async-event.h.
9261 * remote-notif.c: Include async-event.h.
9262 * record-full.c: Include async-event.h.
9263 * record-btrace.c: Include async-event.h.
9264 * infrun.c: Include async-event.h.
9265 * event-top.c: Include async-event.h.
9266 * event-loop.h: Move some declarations to async-event.h.
9267 * event-loop.c: Don't include ser-event.h or top.h. Move some
9268 code to async-event.c.
9269 * async-event.h: New file.
9270 * async-event.c: New file.
9271 * Makefile.in (COMMON_SFILES): Add async-event.c.
9272 (HFILES_NO_SRCDIR): Add async-event.h.
9274 2020-04-13 Tom Tromey <tom@tromey.com>
9276 * utils.c (flush_streams): New function.
9277 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9279 2020-04-13 Tom Tromey <tom@tromey.com>
9281 * event-loop.c (handle_file_event): Use warning, not
9284 2020-04-13 Tom Tromey <tom@tromey.com>
9286 * event-loop.c: Include <chrono>.
9288 2020-04-13 Tom Tromey <tom@tromey.com>
9290 * gdb_select.h: Move to ../gdbsupport/.
9291 * event-loop.c: Update include path.
9292 * top.c: Update include path.
9293 * ser-base.c: Update include path.
9294 * ui-file.c: Update include path.
9295 * ser-tcp.c: Update include path.
9296 * guile/scm-ports.c: Update include path.
9297 * posix-hdep.c: Update include path.
9298 * ser-unix.c: Update include path.
9299 * gdb_usleep.c: Update include path.
9300 * mingw-hdep.c: Update include path.
9301 * inflow.c: Update include path.
9302 * infrun.c: Update include path.
9303 * event-top.c: Update include path.
9305 2020-04-13 Tom Tromey <tom@tromey.com>
9307 * configure: Rebuild.
9308 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9310 2020-04-13 Tom Tromey <tom@tromey.com>
9312 * event-loop.h (start_event_loop): Don't declare.
9313 * event-loop.c (start_event_loop): Move...
9314 * main.c (start_event_loop): ...here. Now static.
9316 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9318 * MAINTAINERS: Update my email address.
9320 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9322 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9325 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9327 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
9328 (nbsd_nat_target::info_proc): Add do_cmdline.
9330 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9332 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
9333 (nbsd_nat_target::info_proc): Add do_cwd.
9335 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9337 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9339 2020-04-11 Kamil Rytarowski <n54@gmx.com>
9341 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9342 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9343 (nbsd_nat_target::info_proc): New functions.
9344 * nbsd-nat.c (kinfo_get_vmmap): New function.
9345 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9346 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9347 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9348 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9350 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9351 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9352 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9353 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9354 (KINFO_VME_FLAG_GROWS_DOWN): New.
9356 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9358 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9361 2020-04-10 Tom Tromey <tromey@adacore.com>
9363 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9365 2020-04-10 Tom Tromey <tromey@adacore.com>
9367 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9368 separate debug files.
9370 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
9372 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9374 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9376 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9377 Check for STATUS_WX86_BREAKPOINT.
9378 (windows_nat_target::wait): Same.
9380 2020-04-10 Tom de Vries <tdevries@suse.de>
9383 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9385 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9387 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9388 (Write After Approval): Remove Tom de Vries.
9390 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9393 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9395 * buildsym.c (record_line): Fix undefined behavior and preserve
9398 2020-04-09 Kamil Rytarowski <n54@gmx.com>
9400 * auxv.h (svr4_auxv_parse): New.
9401 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9402 and generic_auxv_parse.
9403 (svr4_auxv_parse): Add.
9404 * obsd-tdep.c: Include "auxv.h".
9405 (obsd_auxv_parse): Remove.
9406 (obsd_init_abi): Remove comment.
9407 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9408 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9409 * nbsd-tdep.c: Include "auxv.h".
9410 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9412 2020-04-08 Tom Tromey <tromey@adacore.com>
9414 * nat/windows-nat.h (last_wait_event): Don't declare.
9415 (wait_for_debug_event): Update comment.
9416 * nat/windows-nat.c (last_wait_event): Now static.
9418 2020-04-08 Tom Tromey <tromey@adacore.com>
9420 * windows-nat.c (wait_for_debug_event): Move to
9422 * nat/windows-nat.h (wait_for_debug_event): Declare.
9423 * nat/windows-nat.c (wait_for_debug_event): Move from
9424 windows-nat.c. No longer static.
9426 2020-04-08 Tom Tromey <tromey@adacore.com>
9428 * windows-nat.c (get_windows_debug_event): Use
9430 * nat/windows-nat.h (fetch_pending_stop): Declare.
9431 * nat/windows-nat.c (fetch_pending_stop): New function.
9433 2020-04-08 Tom Tromey <tromey@adacore.com>
9435 * windows-nat.c (windows_continue): Use matching_pending_stop and
9436 continue_last_debug_event.
9437 * nat/windows-nat.h (matching_pending_stop)
9438 (continue_last_debug_event): Declare.
9439 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9440 (matching_pending_stop, continue_last_debug_event): New
9443 2020-04-08 Tom Tromey <tromey@adacore.com>
9445 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9446 (handle_exception_result): Move to nat/windows-nat.h.
9447 (DEBUG_EXCEPTION_SIMPLE): Remove.
9448 (windows_nat::handle_ms_vc_exception): New function.
9449 (handle_exception): Move to nat/windows-nat.c.
9450 (get_windows_debug_event): Update.
9451 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9453 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9454 (handle_exception_result): Move from windows-nat.c.
9455 (handle_exception): Declare.
9456 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9457 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9460 2020-04-08 Tom Tromey <tromey@adacore.com>
9462 * windows-nat.c (exception_count, event_count): Remove.
9463 (handle_exception, get_windows_debug_event)
9464 (do_initial_windows_stuff): Update.
9466 2020-04-08 Tom Tromey <tromey@adacore.com>
9468 * windows-nat.c (windows_nat::handle_load_dll)
9469 (windows_nat::handle_unload_dll): Rename. No longer static.
9470 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9473 2020-04-08 Tom Tromey <tromey@adacore.com>
9475 * complaints.h (stop_whining): Declare at top-level.
9476 (complaint): Don't declare stop_whining.
9478 2020-04-08 Tom Tromey <tromey@adacore.com>
9480 * windows-nat.c (windows_nat::handle_output_debug_string):
9481 Rename. No longer static.
9482 * nat/windows-nat.h (handle_output_debug_string): Declare.
9484 2020-04-08 Tom Tromey <tromey@adacore.com>
9486 * windows-nat.c (current_process_handle, current_process_id)
9487 (main_thread_id, last_sig, current_event, last_wait_event)
9488 (current_windows_thread, desired_stop_thread_id, pending_stops)
9489 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9490 (display_selectors, fake_create_process)
9491 (get_windows_debug_event): Update.
9492 * nat/windows-nat.h (current_process_handle, current_process_id)
9493 (main_thread_id, last_sig, current_event, last_wait_event)
9494 (current_windows_thread, desired_stop_thread_id, pending_stops)
9495 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9496 * nat/windows-nat.c (current_process_handle, current_process_id)
9497 (main_thread_id, last_sig, current_event, last_wait_event)
9498 (current_windows_thread, desired_stop_thread_id, pending_stops)
9499 (siginfo_er): New globals. Move from windows-nat.c.
9501 2020-04-08 Tom Tromey <tromey@adacore.com>
9503 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9504 (handle_load_dll): Update.
9505 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9507 2020-04-08 Tom Tromey <tromey@adacore.com>
9509 * windows-nat.c (enum thread_disposition_type): Move to
9511 (windows_nat::thread_rec): Rename from thread_rec. No longer
9513 (windows_add_thread, windows_nat_target::fetch_registers)
9514 (windows_nat_target::store_registers, handle_exception)
9515 (windows_nat_target::resume, get_windows_debug_event)
9516 (windows_nat_target::get_tib_address)
9517 (windows_nat_target::thread_name)
9518 (windows_nat_target::thread_alive): Update.
9519 * nat/windows-nat.h (enum thread_disposition_type): Move from
9521 (thread_rec): Declare.
9523 2020-04-08 Tom Tromey <tromey@adacore.com>
9525 * windows-nat.c: Add "using namespace".
9526 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9527 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9529 2020-04-08 Tom Tromey <tromey@adacore.com>
9531 * nat/windows-nat.h (struct windows_thread_info): Declare
9533 * nat/windows-nat.c (~windows_thread_info): New.
9535 2020-04-08 Tom Tromey <tromey@adacore.com>
9538 * windows-nat.c (current_event): Update comment.
9539 (last_wait_event, desired_stop_thread_id): New globals.
9540 (struct pending_stop): New.
9541 (pending_stops): New global.
9542 (windows_nat_target) <stopped_by_sw_breakpoint>
9543 <supports_stopped_by_sw_breakpoint>: New methods.
9544 (windows_fetch_one_register): Add assertions. Adjust PC.
9545 (windows_continue): Handle pending stops. Suspend other threads
9546 when stepping. Use last_wait_event
9547 (wait_for_debug_event): New function.
9548 (get_windows_debug_event): Use wait_for_debug_event. Handle
9549 pending stops. Queue spurious stops.
9550 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9551 (windows_nat_target::kill): Use wait_for_debug_event.
9552 * nat/windows-nat.h (struct windows_thread_info)
9553 <stopped_at_software_breakpoint>: New field.
9554 * nat/windows-nat.c (windows_thread_info::resume): Clear
9555 stopped_at_software_breakpoint.
9557 2020-04-08 Tom Tromey <tromey@adacore.com>
9559 * windows-nat.c (enum thread_disposition_type): New.
9560 (thread_rec): Replace "get_context" parameter with "disposition";
9562 (windows_add_thread, windows_nat_target::fetch_registers)
9563 (windows_nat_target::store_registers, handle_exception)
9564 (windows_nat_target::resume, get_windows_debug_event)
9565 (windows_nat_target::get_tib_address)
9566 (windows_nat_target::thread_name)
9567 (windows_nat_target::thread_alive): Update.
9569 2020-04-08 Tom Tromey <tromey@adacore.com>
9571 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9572 (windows_continue): Use windows_continue::resume.
9573 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9574 resume>: Declare new methods.
9575 * nat/windows-nat.c: New file.
9576 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9578 2020-04-08 Tom Tromey <tromey@adacore.com>
9580 * windows-nat.c (windows_add_thread, windows_delete_thread)
9581 (windows_nat_target::fetch_registers)
9582 (windows_nat_target::store_registers, fake_create_process)
9583 (windows_nat_target::resume, windows_nat_target::resume)
9584 (get_windows_debug_event, windows_nat_target::wait)
9585 (windows_nat_target::pid_to_str)
9586 (windows_nat_target::get_tib_address)
9587 (windows_nat_target::get_ada_task_ptid)
9588 (windows_nat_target::thread_name)
9589 (windows_nat_target::thread_alive): Use lwp, not tid.
9591 2020-04-08 Tom Tromey <tromey@adacore.com>
9593 * windows-nat.c (handle_exception)
9594 (windows_nat_target::thread_name): Update.
9595 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9596 <name>: Now unique_xmalloc_ptr.
9598 2020-04-08 Tom Tromey <tromey@adacore.com>
9600 * windows-nat.c (thread_rec)
9601 (windows_nat_target::fetch_registers): Update.
9602 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9604 <debug_registers_changed, reload_context>: Now bool.
9606 2020-04-08 Tom Tromey <tromey@adacore.com>
9608 * windows-nat.c (windows_add_thread): Use new.
9609 (windows_init_thread_list, windows_delete_thread): Use delete.
9610 (get_windows_debug_event): Update.
9611 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9612 destructor, and initializers.
9614 2020-04-08 Tom Tromey <tromey@adacore.com>
9616 * windows-nat.c (struct windows_thread_info): Remove.
9617 * nat/windows-nat.h: New file.
9619 2020-04-08 Tom Tromey <tromey@adacore.com>
9621 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9622 (thread_rec, windows_add_thread, windows_delete_thread)
9623 (windows_continue): Update.
9625 2020-04-08 Tom Tromey <tromey@adacore.com>
9627 * windows-nat.c (struct windows_thread_info): Remove typedef.
9628 (thread_head): Remove.
9629 (thread_list): New global.
9630 (thread_rec, windows_add_thread, windows_init_thread_list)
9631 (windows_delete_thread, windows_continue): Update.
9633 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9635 * windows-tdep.h (windows_init_abi): Add comment.
9636 (cygwin_init_abi): New declaration.
9637 * windows-tdep.c: Split signal enumeration in two, one for
9638 Windows and one for Cygwin.
9639 (windows_gdb_signal_to_target): Only deal with signal of the
9641 (cygwin_gdb_signal_to_target): New function.
9642 (windows_init_abi): Rename to windows_init_abi_common, don't set
9643 gdb_signal_to_target gdbarch method. Add new new function with
9645 (cygwin_init_abi): New function.
9646 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9647 comment. Don't call windows_init_abi.
9648 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9649 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9650 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9651 i386_windows_init_abi_common, don't call windows_init_abi. Add
9652 a new function of this name.
9653 (i386_cygwin_init_abi): New function.
9654 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9657 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9659 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9661 (dwarf2_read_gdb_index): Update.
9663 2020-04-07 Kamil Rytarowski <n54@gmx.com>
9665 * nbsd-tdep.c: Include "objfiles.h".
9666 (nbsd_skip_solib_resolver): New.
9667 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
9669 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9671 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
9672 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
9673 with DW_LLE_base_addressx are being emitted in DWARFv5.
9674 Add the newly added kind DW_LOC_OFFSET_PAIR also.
9675 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
9678 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9680 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
9681 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
9682 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
9683 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
9684 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
9685 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
9686 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
9689 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
9691 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
9692 (read_loclist_index): New function definition.
9693 (lookup_loclist_base): New function definition.
9694 (read_loclist_header): New function definition.
9695 (dwarf2_cu): Add loclist_base and loclist_header field.
9696 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
9697 (read_full_die_1): Read the value of DW_AT_loclists_base.
9698 (read_attribute_reprocess): Handle DW_FORM_loclistx.
9699 (read_attribute_value): Handle DW_FORM_loclistx.
9700 (skip_one_die): Handle DW_FORM_loclistx.
9701 (loclist_header): New structure declaration.
9702 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
9704 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
9706 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
9707 constructor. Remove `addr` parameter from other constructor and
9708 add `per_cu` parameter.
9709 * dwarf2/read.c (create_partial_symtab): Update.
9711 2020-04-07 Tom de Vries <tdevries@suse.de>
9714 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
9715 (partial_die_info::fixup): Inherit has_const_value.
9717 2020-04-07 Tom de Vries <tdevries@suse.de>
9719 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
9720 symbols without address.
9722 2020-04-06 Kamil Rytarowski <n54@gmx.com>
9724 * nbsd-nat.h (struct thread_info): Add forward declaration.
9725 (nbsd_nat_target::thread_alive): Add.
9726 (nbsd_nat_target::thread_name): Likewise.
9727 (nbsd_nat_target::update_thread_list): Likewise.
9728 (update_thread_list::post_attach): Likewise.
9729 (post_attach::pid_to_str): Likewise.
9730 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
9731 (nbsd_thread_lister): Add.
9732 (nbsd_nat_target::thread_alive): Likewise.
9733 (nbsd_nat_target::thread_name): Likewise.
9734 (nbsd_add_threads): Likewise.
9735 (update_thread_list::post_attach): Likewise.
9736 (nbsd_nat_target::update_thread_list): Likewise.
9737 (post_attach::pid_to_str): Likewise.
9739 2020-04-06 Tom Tromey <tromey@adacore.com>
9741 * ada-valprint.c (print_variant_part): Extract the variant field.
9742 (print_field_values): Use the field as the outer value when
9745 2020-04-06 Tom Tromey <tromey@adacore.com>
9747 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
9748 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
9749 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
9750 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
9751 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
9753 2020-04-06 Tom Tromey <tromey@adacore.com>
9755 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
9758 2020-04-06 Kamil Rytarowski <n54@gmx.com>
9760 * nbsd-tdep.c: Include "gdbarch.h".
9761 Define enum with NetBSD signal numbers.
9762 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
9763 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
9764 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
9765 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
9766 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
9767 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
9768 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
9769 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9770 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
9771 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
9772 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
9773 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
9775 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
9778 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
9780 2020-04-03 Tom Tromey <tromey@adacore.com>
9782 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
9783 Read constant block.
9785 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9787 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
9788 (gdb_bfd_get_full_section_contents): New declaration.
9789 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
9790 * windows-tdep.c (is_linked_with_cygwin_dll): Use
9791 gdb_bfd_get_full_section_contents.
9793 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
9795 * exec.c (build_section_table): Replace internal_error with
9797 (section_table_xfer_memory_partial): Likewise.
9798 * mdebugread.c (parse_partial_symbols): Likewise.
9799 * psymtab.c (lookup_partial_symbol): Likewise.
9800 * utils.c (wrap_here): Likewise.
9802 2020-04-02 Tom Tromey <tromey@adacore.com>
9804 * f-lang.c (build_fortran_types): Use arch_type to initialize
9805 builtin_complex_s32 in the TYPE_CODE_ERROR case.
9807 2020-04-02 Tom Tromey <tromey@adacore.com>
9809 * dwarf2/read.c (partial_die_info::read): Do not create a vector
9812 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
9813 Bernd Edlinger <bernd.edlinger@hotmail.de>
9814 Tom Tromey <tromey@adacore.com>
9816 * buildsym.c (buildsym_compunit::record_line): Remove
9819 2020-04-02 Tom de Vries <tdevries@suse.de>
9822 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
9824 2020-04-02 Tom de Vries <tdevries@suse.de>
9826 * dwarf2/read.c (dwarf2_gdb_index_functions,
9827 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
9829 * psymtab.c (psym_lookup_global_symbol_language): New function.
9830 (psym_functions): Init psym_lookup_global_symbol_language with
9831 psym_lookup_global_symbol_language.
9832 * symfile-debug.c (debug_sym_quick_functions): Init
9833 lookup_global_symbol_language with NULL.
9834 * symfile.c (set_initial_language): Remove fixme comment.
9835 * symfile.h (struct quick_symbol_functions): Add
9836 lookup_global_symbol_language.
9837 * symtab.c (find_quick_global_symbol_language): New function.
9838 (find_main_name): Use find_quick_global_symbol_language.
9840 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
9842 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
9844 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9846 * buildsym.c (record_line): Fix undefined behavior and preserve
9849 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9851 * buildsym.c (record_line): Fix the resizing condition.
9853 2020-04-01 Tom Tromey <tom@tromey.com>
9855 * value.h (value_literal_complex): Add comment.
9856 * valops.c (value_literal_complex): Refer to value.h.
9858 2020-04-01 Tom Tromey <tom@tromey.com>
9860 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
9861 (scalar_type): New rule, from typebase.
9862 (typebase): Use scalar_type. Recognize complex types.
9863 (field_name): Handle FLOAT_KEYWORD.
9864 (ident_tokens): Add _Complex and __complex__.
9866 2020-04-01 Tom Tromey <tom@tromey.com>
9869 * valarith.c (promotion_type, complex_binop): New functions.
9870 (scalar_binop): Handle complex numbers. Use promotion_type.
9871 (value_pos, value_neg, value_complement): Handle complex numbers.
9873 2020-04-01 Tom Tromey <tom@tromey.com>
9875 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
9876 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
9877 (parse_number): Handle complex numbers.
9879 2020-04-01 Tom Tromey <tom@tromey.com>
9881 * c-valprint.c (c_decorations): Change complex suffix to "i".
9883 2020-04-01 Tom Tromey <tom@tromey.com>
9885 * valprint.c (generic_value_print_complex): Use accessors.
9886 * value.h (value_real_part, value_imaginary_part): Declare.
9887 * valops.c (value_real_part, value_imaginary_part): New
9889 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
9891 2020-04-01 Tom Tromey <tom@tromey.com>
9893 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
9894 (read_range_type): Update.
9895 * mdebugread.c (basic_type): Update.
9896 * go-lang.c (build_go_types): Use init_complex_type.
9897 * gdbtypes.h (struct main_type) <complex_type>: New member.
9898 (init_complex_type): Update.
9899 (arch_complex_type): Don't declare.
9900 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
9901 Make name if none given. Use alloc_type_copy. Look for cached
9903 (arch_complex_type): Remove.
9904 (gdbtypes_post_init): Use init_complex_type.
9905 * f-lang.c (build_fortran_types): Use init_complex_type.
9906 * dwarf2/read.c (read_base_type): Update.
9907 * d-lang.c (build_d_types): Use init_complex_type.
9908 * ctfread.c (read_base_type): Update.
9910 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9912 * infrun.c (stop_all_threads): Update assertion, plus when
9913 stopping threads, take into account that we might be trying
9914 to stop an all-stop target.
9915 (stop_waiting): Call 'stop_all_threads' if there exists a
9918 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9920 * target.h (exists_non_stop_target): New function declaration.
9921 * target.c (exists_non_stop_target): New function.
9923 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
9926 * eval.c (is_integral_or_integral_reference): New function.
9927 (evaluate_subexp_standard): Allow integer references in
9930 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9932 * remote.c (remote_target::remote_parse_stop_reply): Remove the
9933 check for no ptid in the stop reply when the target is non-stop.
9935 2020-04-01 Tom Tromey <tromey@adacore.com>
9937 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
9938 "name" parameter to rvalue reference. Initialize m_name_holder.
9939 <lookup_name_info>: New overloads.
9940 <name>: Return gdb::string_view.
9941 <c_str>: New method.
9942 <make_ignore_params>: Update.
9943 <search_name_hash>: Update.
9944 <language_lookup_name>: Return const char *.
9945 <m_name>: Change type.
9946 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
9947 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
9948 (lookup_name_info::match_any): Update.
9949 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
9951 * minsyms.c (linkage_name_str): Update.
9952 * language.c (default_symbol_name_matcher): Update.
9953 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9955 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9956 (ada_lookup_name_info::ada_lookup_name_info): Update.
9957 (literal_symbol_name_matcher): Update.
9959 2020-04-01 Tom Tromey <tromey@adacore.com>
9961 * psymtab.c (psymtab_search_name): Remove function.
9962 (psym_lookup_symbol): Create search name and lookup name here.
9963 (lookup_partial_symbol): Remove "name" parameter; add
9965 (psym_expand_symtabs_for_function): Update.
9967 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
9970 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9972 2020-03-31 Tom Tromey <tromey@adacore.com>
9974 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9977 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
9979 * features/riscv/32bit-csr.xml: Regenerated.
9980 * features/riscv/64bit-csr.xml: Regenerated.
9982 2020-03-30 Tom Tromey <tromey@adacore.com>
9984 * ada-valprint.c (print_variant_part): Update.
9985 * ada-lang.h (ada_which_variant_applies): Update.
9986 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9987 outer_valaddr parameters; replace with "outer" value parameter.
9988 (to_fixed_variant_branch_type): Update.
9990 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9992 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9993 <list>. Remove inclusion of observable.h.
9994 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9995 (struct arch_lwp_info): New struct.
9996 (class ppc_linux_dreg_interface): New class.
9997 (struct ppc_linux_process_info): New struct.
9998 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9999 <low_new_clone, low_forget_process, low_prepare_to_resume>
10000 <copy_thread_dreg_state, mark_thread_stale>
10001 <mark_debug_registers_changed, register_hw_breakpoint>
10002 <clear_hw_breakpoint, register_wp, clear_wp>
10003 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10004 <num_memory_accesses, get_trigger_type>
10005 <create_watchpoint_request, hwdebug_point_cmp>
10006 <init_arch_lwp_info, get_arch_lwp_info>
10007 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10009 <struct ptid_hash>: New inner struct.
10010 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10012 (saved_dabr_value, hwdebug_info, max_slots_number)
10013 (struct hw_break_tuple, struct thread_points, ppc_threads)
10014 (have_ptrace_hwdebug_interface)
10015 (hwdebug_find_thread_points_by_tid)
10016 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10017 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10018 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10019 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10020 use m_dreg_interface.
10021 (hwdebug_point_cmp): Change to...
10022 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10023 reference arguments instead of pointers.
10024 (ppc_linux_nat_target::ranged_break_num_registers): Use
10026 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10027 m_dreg_interface. Call register_hw_breakpoint.
10028 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10029 m_dreg_interface. Call clear_hw_breakpoint.
10030 (get_trigger_type): Change to...
10031 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10033 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10034 use m_dreg_interface. Call register_hw_breakpoint.
10035 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10036 use m_dreg_interface. Call clear_hw_breakpoint.
10037 (can_use_watchpoint_cond_accel): Change to...
10038 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10039 method. Update comment, use m_dreg_interface and
10041 (calculate_dvc): Change to...
10042 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10044 (num_memory_accesses): Change to...
10045 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10046 (check_condition): Change to...
10047 (ppc_linux_nat_target::check_condition): ...this method.
10048 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10049 comment, use m_dreg_interface.
10050 (create_watchpoint_request): Change to...
10051 (ppc_linux_nat_target::create_watchpoint_request): ...this
10052 method. Use m_dreg_interface.
10053 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10054 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10055 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10056 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10057 (ppc_linux_nat_target::low_forget_process)
10058 (ppc_linux_nat_target::low_new_fork)
10059 (ppc_linux_nat_target::low_new_clone)
10060 (ppc_linux_nat_target::low_delete_thread)
10061 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10062 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10063 only call mark_thread_stale.
10064 (ppc_linux_thread_exit): Remove.
10065 (ppc_linux_nat_target::stopped_data_address): Change to...
10066 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10067 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10068 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10069 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10070 comment. Call low_stopped_data_address.
10071 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10073 (ppc_linux_nat_target::masked_watch_num_registers): Use
10075 (ppc_linux_nat_target::copy_thread_dreg_state)
10076 (ppc_linux_nat_target::mark_thread_stale)
10077 (ppc_linux_nat_target::mark_debug_registers_changed)
10078 (ppc_linux_nat_target::register_hw_breakpoint)
10079 (ppc_linux_nat_target::clear_hw_breakpoint)
10080 (ppc_linux_nat_target::register_wp)
10081 (ppc_linux_nat_target::clear_wp)
10082 (ppc_linux_nat_target::init_arch_lwp_info)
10083 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10084 (_initialize_ppc_linux_nat): Remove observer callback.
10086 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10088 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10089 (ppc_linux_nat_target::auxv_parse)
10090 (ppc_linux_nat_target::read_description)
10091 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10094 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10096 * linux-nat.h (low_new_clone): New method.
10097 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10099 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10101 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10102 (dbx_expand_psymtab): ... this.
10103 (start_psymtab): Update.
10104 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10105 (mdebug_expand_psymtab): ... this.
10106 (parse_partial_symbols): Update.
10107 (new_psymtab): Update.
10108 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10109 (xcoff_expand_psymtab): ... this.
10110 (xcoff_start_psymtab): Update.
10112 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10114 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10115 <expand_dependencies>: ... this.
10116 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10117 (partial_symtab::expand_dependencies): ... this.
10118 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10120 (dwarf2_psymtab::expand_psymtab): Update.
10121 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10122 * mdebugread.c (psymtab_to_symtab_1): Update.
10123 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10125 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10127 * psympriv.h (discard_psymtab): Remove.
10128 * dbxread.c (dbx_end_psymtab): Update.
10129 * xcoffread.c (xcoff_end_psymtab): Update.
10131 2020-03-28 Tom Tromey <tom@tromey.com>
10133 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10136 2020-03-28 Tom Tromey <tom@tromey.com>
10138 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10140 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
10142 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10144 2020-03-26 John Baldwin <jhb@FreeBSD.org>
10146 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10148 2020-03-26 Tom Tromey <tom@tromey.com>
10150 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10151 (mark_common_block_symbol_computed, read_tag_string_type)
10152 (attr_to_dynamic_prop, read_subrange_type): Update.
10153 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10154 to be methods on struct attribute.
10155 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10156 (read_call_site_scope, partial_die_info::read)
10157 (partial_die_info::read, lookup_die_type, follow_die_ref):
10159 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10160 from dwarf2_get_ref_die_offset.
10161 (attribute::constant_value): New method, from
10162 dwarf2_get_attr_constant_value.
10163 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10165 <constant_value>: New method.
10167 2020-03-26 Tom Tromey <tom@tromey.com>
10169 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10170 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10171 (dwarf_type_encoding_name): Move to stringify.c.
10172 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10173 * dwarf2/stringify.c: New file.
10174 * dwarf2/stringify.h: New file.
10176 2020-03-26 Tom Tromey <tom@tromey.com>
10178 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10181 2020-03-26 Tom Tromey <tom@tromey.com>
10183 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10185 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10186 (lookup_ranges_base): Likewise.
10187 (read_cutu_die_from_dwo, read_full_die_1): Update.
10189 2020-03-26 Tom Tromey <tom@tromey.com>
10191 * dwarf2/read.c (read_import_statement, read_file_scope)
10192 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10193 (read_lexical_block_scope, read_call_site_scope)
10194 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10195 (handle_struct_member_die, process_structure_scope)
10196 (update_enumeration_type_from_children)
10197 (process_enumeration_scope, read_array_type, read_common_block)
10198 (read_namespace, read_module, read_subroutine_type): Update.
10199 (sibling_die): Remove.
10201 2020-03-26 Tom Tromey <tom@tromey.com>
10203 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10204 (build_type_psymtabs_reader, read_structure_type)
10205 (read_enumeration_type, read_full_die_1): Update.
10206 (dwarf2_attr_no_follow): Move to die.h.
10207 * dwarf2/die.h (struct die_info) <attr>: New method.
10209 2020-03-26 Tom Tromey <tom@tromey.com>
10211 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10212 <base_address>: Now an optional.
10213 (dwarf2_find_base_address, dwarf2_rnglists_process)
10214 (dwarf2_ranges_process, fill_in_loclist_baton)
10215 (dwarf2_symbol_mark_computed): Update.
10217 2020-03-26 Tom Tromey <tom@tromey.com>
10219 * dwarf2/read.c (struct die_info): Move to die.h.
10220 * dwarf2/die.h: New file.
10222 2020-03-26 Tom Tromey <tom@tromey.com>
10224 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10226 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10227 Move to line-header.c.
10228 (read_checked_initial_length_and_offset, read_formatted_entries):
10230 (dwarf_decode_line_header): Split into two.
10231 * dwarf2/line-header.c
10232 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10234 (read_checked_initial_length_and_offset, read_formatted_entries):
10236 (dwarf_decode_line_header): New function, split from read.c.
10238 2020-03-26 Tom Tromey <tom@tromey.com>
10240 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10242 * dwarf2/read.c (read_attribute_value): Update.
10243 (dwarf2_per_objfile::read_line_string): Rename from
10244 read_indirect_line_string.
10245 (read_formatted_entries): Update.
10247 2020-03-26 Tom Tromey <tom@tromey.com>
10249 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10252 2020-03-26 Tom Tromey <tom@tromey.com>
10254 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10256 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10257 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10260 2020-03-26 Tom Tromey <tom@tromey.com>
10262 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10263 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10264 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10265 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10267 2020-03-26 Tom Tromey <tom@tromey.com>
10269 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10270 file_names_size, file_full_name, file_file_name>: Use const.
10271 <file_name_at, file_names>: Add const overload.
10272 * dwarf2/line-header.c (line_header::file_file_name)
10273 (line_header::file_full_name): Update.
10275 2020-03-26 Tom Tromey <tom@tromey.com>
10277 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10278 (macro_start_file, consume_improper_spaces)
10279 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10280 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10281 (dwarf_decode_macros): Move to macro.c.
10282 * dwarf2/macro.c: New file.
10283 * dwarf2/macro.h: New file.
10284 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10286 2020-03-26 Tom Tromey <tom@tromey.com>
10288 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10290 * dwarf2/section.c: New method. From
10291 read_indirect_string_at_offset_from.
10292 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10293 (read_indirect_string_at_offset_from): Move to section.c.
10294 (read_indirect_string_at_offset): Rewrite.
10295 (read_indirect_line_string_at_offset): Remove.
10296 (read_indirect_string, read_indirect_line_string)
10297 (dwarf_decode_macro_bytes): Update.
10299 2020-03-26 Tom Tromey <tom@tromey.com>
10301 * dwarf2/section.h (struct dwarf2_section_info)
10302 <overload_complaint>: Declare.
10303 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10304 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10305 Rename from dwarf2_section_buffer_overflow_complaint.
10306 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10307 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10309 2020-03-26 Tom Tromey <tom@tromey.com>
10311 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10313 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10315 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10318 2020-03-26 Tom Tromey <tom@tromey.com>
10320 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10322 2020-03-26 Tom Tromey <tom@tromey.com>
10324 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10326 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10328 (dwarf_decode_macros): Update.
10330 2020-03-26 Tom Tromey <tom@tromey.com>
10332 * dwarf2/read.c (read_attribute_value): Update.
10333 (read_indirect_string_from_dwz): Move to dwz.c; change into
10335 (dwarf_decode_macro_bytes): Update.
10336 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10337 * dwarf2/dwz.c: New file.
10338 * Makefile.in (COMMON_SFILES): Add dwz.c.
10340 2020-03-26 Tom Tromey <tom@tromey.com>
10342 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10343 * dwarf2/read.c: Add include.
10344 * dwarf2/index-write.c: Add include.
10345 * dwarf2/index-cache.c: Add include.
10346 * dwarf2/dwz.h: New file.
10348 2020-03-25 Tom Tromey <tom@tromey.com>
10350 * compile/compile-object-load.c (get_out_value_type): Mention
10351 correct symbol name in error message.
10353 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
10355 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10357 2020-03-25 Tom de Vries <tdevries@suse.de>
10359 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10360 * symmisc.c (dump_symtab_1): Print user and includes fields.
10361 (maintenance_info_symtabs): Same.
10363 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10366 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10367 (riscv_regcache_cooked_write): New function.
10368 (riscv_push_dummy_call): Use new function.
10369 (riscv_return_value): Likewise.
10371 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10373 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10374 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10375 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10376 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10377 * infrun.c (follow_fork): Likewise.
10378 (follow_fork_inferior): Likewise.
10379 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10380 * linux-nat.h (class linux_nat_target): Likewise.
10381 * remote.c (class remote_target) <follow_fork>: Likewise.
10382 (remote_target::follow_fork): Likewise.
10383 * target-delegates.c: Re-generate.
10384 * target.c (default_follow_fork): Likewise.
10385 (target_follow_fork): Likewise.
10386 * target.h (struct target_ops) <follow_fork>: Likewise.
10387 (target_follow_fork): Likewise.
10389 2020-03-24 Tom de Vries <tdevries@suse.de>
10391 * psymtab.c (maintenance_info_psymtabs): Print user field.
10393 2020-03-20 Tom Tromey <tromey@adacore.com>
10395 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10397 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10400 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
10402 * ptrace.m4: Don't check for ptrace declaration.
10403 * config.in: Re-generate.
10404 * configure: Re-generate.
10405 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10408 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10410 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10412 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10413 * sparc-nat.c (gdb_ptrace): Likewise.
10414 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10416 2020-03-20 Tom Tromey <tromey@adacore.com>
10418 * c-exp.y (lex_one_token): Fix assert.
10420 2020-03-20 Tom Tromey <tromey@adacore.com>
10422 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10423 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10426 2020-03-20 Tom Tromey <tromey@adacore.com>
10428 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10430 2020-03-20 Tom Tromey <tromey@adacore.com>
10432 * ada-valprint.c (print_variant_part): Remove parameters; switch
10433 to value-based API.
10434 (print_field_values): Likewise.
10435 (ada_val_print_struct_union): Likewise.
10436 (ada_value_print_1): Update.
10438 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10440 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10441 nbsd_nat_target instead of inf_ptrace_target.
10442 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10445 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10447 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10448 it to the ptrace call.
10449 * (store_registers): Likewise.
10451 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10453 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10454 it to the ptrace call.
10455 * (store_registers): Likewise.
10457 2020-03-19 Luis Machado <luis.machado@linaro.org>
10459 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10460 valid, fetch vg value from ptrace.
10462 2020-03-19 Kamil Rytarowski <n54@gmx.com>
10463 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10464 * inf-ptrace.c: Likewise.
10465 * (gdb_ptrace): Add.
10466 * (inf_ptrace_target::resume): Update.
10467 * (inf_ptrace_target::xfer_partial): Likewise.
10468 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10469 * (inf_ptrace_peek_poke): Update.
10471 2020-03-19 Kamil Rytarowski <n54@gmx.com>
10473 * x86-bsd-nat.c (gdb_ptrace): New.
10474 * (x86bsd_dr_set): Add new argument `ptid'.
10475 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10476 x86bsd_dr_set_addr): Update.
10478 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10480 * remote.c (remote_target::process_stop_reply): Handle events for
10481 all threads differently.
10483 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10485 * completer.c (completion_tracker::remove_completion): Define new
10487 * completer.h (completion_tracker::remove_completion): Declare new
10489 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10490 when adding a C++ function symbol.
10492 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10494 * completer.c (completion_tracker::completion_hash_entry): Define
10496 (advance_to_filename_complete_word_point): Call
10497 recompute_lowest_common_denominator.
10498 (completion_tracker::completion_tracker): Call discard_completions
10499 to setup the hash table.
10500 (completion_tracker::discard_completions): Allow for being called
10501 from the constructor, pass new equal function, and element deleter
10502 when constructing the hash table. Initialise new class member
10504 (completion_tracker::maybe_add_completion): Remove use of
10505 m_entries_vec, and store more information into m_entries_hash.
10506 (completion_tracker::recompute_lcd_visitor): New function, most
10507 content taken from...
10508 (completion_tracker::recompute_lowest_common_denominator):
10509 ...here, this now just visits each item in the hash calling the
10511 (completion_tracker::build_completion_result): Remove use of
10512 m_entries_vec, call recompute_lowest_common_denominator.
10513 * completer.h (completion_tracker::have_completions): Remove use
10515 (completion_tracker::completion_hash_entry): Declare new class.
10516 (completion_tracker::recompute_lowest_common_denominator): Change
10517 function signature.
10518 (completion_tracker::recompute_lcd_visitor): Declare new function.
10519 (completion_tracker::m_entries_vec): Delete.
10520 (completion_tracker::m_entries_hash): Initialize to NULL.
10521 (completion_tracker::m_lowest_common_denominator_valid): New
10523 (completion_tracker::m_lowest_common_denominator_max_length): New
10526 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10528 * regformats/regdef.h: Put reg in gdb namespace.
10530 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10532 * i386-bsd-nat.c (gdb_ptrace): New.
10533 * (i386bsd_fetch_inferior_registers,
10534 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10535 * (i386bsd_fetch_inferior_registers,
10536 i386bsd_store_inferior_registers) Use gdb_ptrace.
10538 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10540 * amd64-bsd-nat.c (gdb_ptrace): New.
10541 * (amd64bsd_fetch_inferior_registers,
10542 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10543 * (amd64bsd_fetch_inferior_registers,
10544 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10546 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10548 * user-regs.c (user_reg::read): Rename to...
10549 (user_reg::xread): ...this.
10550 * (append_user_reg): Rename argument `read' to `xread'.
10551 * (user_reg_add_builtin): Likewise.
10552 * (user_reg_add): Likewise.
10553 * (value_of_user_reg): Likewise.
10555 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10557 * sparc-nat.c (gdb_ptrace): New.
10558 * sparc-nat.c (sparc_fetch_inferior_registers)
10559 (sparc_store_inferior_registers) Remove obsolete comment.
10560 * sparc-nat.c (sparc_fetch_inferior_registers)
10561 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10562 * sparc-nat.c (sparc_fetch_inferior_registers)
10563 (sparc_store_inferior_registers) Use gdb_ptrace.
10565 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10567 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10568 it to the ptrace call.
10569 * sh-nbsd-nat.c (store_registers): Likewise.
10571 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10573 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10574 nbsd_nat_target instead of inf_ptrace_target.
10575 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10578 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10580 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10582 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10584 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10586 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10588 2020-03-17 Tom de Vries <tdevries@suse.de>
10591 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10593 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10595 (process_imported_unit_die): Skip import of c++ CUs.
10597 2020-03-16 Tom Tromey <tom@tromey.com>
10599 * p-valprint.c (pascal_object_print_value): Initialize
10602 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10603 Shahab Vahedi <shahab@synopsys.com>
10605 * Makefile.in: Add arch/arc.o
10606 * configure.tgt: Likewise.
10607 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10608 (_initialize_arc_tdep): Don't initialize old target descriptions.
10609 (arc_read_description): New function to cache target descriptions.
10610 * arc-tdep.h (arc_read_description): Add proto type.
10611 * arch/arc.c: New file.
10612 * arch/arc.h: Likewise.
10613 * features/Makefile: Replace old target descriptions with new.
10614 * features/arc-arcompact.c: Remove.
10615 * features/arc-arcompact.xml: Likewise.
10616 * features/arc-v2.c: Likewise
10617 * features/arc-v2.xml: Likewise
10618 * features/arc/aux-arcompact.xml: New file.
10619 * features/arc/aux-v2.xml: Likewise.
10620 * features/arc/core-arcompact.xml: Likewise.
10621 * features/arc/core-v2.xml: Likewise.
10622 * features/arc/aux-arcompact.c: Generate.
10623 * features/arc/aux-v2.c: Likewise.
10624 * features/arc/core-arcompact.c: Likewise.
10625 * features/arc/core-v2.c: Likewise.
10626 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10628 2020-03-16 Tom Tromey <tromey@adacore.com>
10631 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10632 putting value into bcache.
10634 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10637 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10639 (amd64_windows_init_abi_common): ... this. Don't set size of
10641 (amd64_windows_init_abi): New function.
10642 (amd64_cygwin_init_abi): New function.
10643 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10645 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10648 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10650 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10651 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10652 (pe_import_directory_entry): New struct type.
10653 (is_linked_with_cygwin_dll): New function.
10654 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10655 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10656 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10658 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10660 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10661 i386_cygwin_core_osabi_sniffer.
10663 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10665 * i386-cygwin-tdep.c: Rename to...
10666 * i386-windows-tdep.c: ... this.
10667 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
10668 i386-windows-tdep.c.
10669 * configure.tgt: Likewise.
10671 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10673 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
10674 * osabi.c (gdb_osabi_names): Add "Windows".
10675 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
10676 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
10677 (i386_cygwin_core_osabi_sniffer): New function, extracted from
10678 i386_cygwin_osabi_sniffer.
10679 (_initialize_i386_cygwin_tdep): Register OS ABI
10680 GDB_OSABI_WINDOWS for i386.
10681 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
10682 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
10683 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
10685 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
10686 when the target matches '*-*-mingw*'.
10688 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10690 * defs.h (enum gdb_osabi): Move to...
10691 * osabi.h (enum gdb_osabi): ... here.
10692 * gdbarch.sh: Include osabi.h in gdbarch.h.
10693 * gdbarch.h: Re-generate.
10695 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10697 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
10699 (_initialize_amd64_windows_tdep): Register osabi sniffer.
10701 2020-03-14 Tom Tromey <tom@tromey.com>
10703 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
10705 (c_type_print_modifier): Likewise. Add "language" parameter.
10706 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
10707 (c_type_print_base_1): Update.
10708 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
10710 * type-stack.c (type_stack::insert): Handle tp_atomic and
10712 (type_stack::follow_type_instance_flags): Likewise.
10713 (type_stack::follow_types): Likewise. Merge type-following code.
10714 * c-exp.y (RESTRICT, ATOMIC): New tokens.
10715 (space_identifier, cv_with_space_id)
10716 (const_or_volatile_or_space_identifier_noopt)
10717 (const_or_volatile_or_space_identifier): Remove.
10718 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
10720 (ptr_operator, typebase): Update.
10721 (enum token_flag) <FLAG_C>: New constant.
10722 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
10724 (lex_one_token): Handle FLAG_C.
10726 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10728 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
10729 it to the ptrace call.
10730 * m68k-bsd-nat.c (store_registers): Likewise.
10732 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10734 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
10736 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
10737 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
10738 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
10740 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10742 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
10743 nbsd_nat_target instead of inf_ptrace_target.
10744 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10747 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10749 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
10752 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10754 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
10755 it to the ptrace call.
10756 * alpha-bsd-nat.c (store_registers): Likewise.
10758 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10760 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
10762 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
10763 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
10764 fill_fpregset): Likewise.
10766 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10768 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
10769 nbsd_nat_target instead of inf_ptrace_target.
10770 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10773 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10775 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
10778 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10780 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
10781 it to the ptrace call.
10782 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
10783 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
10784 * arm-nbsd-nat.c (store_register): Likewise.
10785 * arm-nbsd-nat.c (store_regs): Likewise.
10786 * arm-nbsd-nat.c (store_fp_register): Likewise.
10787 * arm-nbsd-nat.c (store_fp_regs): Likewise.
10789 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10791 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
10792 nbsd_nat_target instead of inf_ptrace_target.
10793 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10796 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10798 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
10799 it to the ptrace call.
10800 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
10802 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10804 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
10805 it to the ptrace call.
10806 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
10808 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10810 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
10812 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
10814 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10816 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
10817 instead of inf_ptrace_target.
10818 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
10821 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10823 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10826 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10828 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10831 2020-03-14 Kamil Rytarowski <n54@gmx.com>
10833 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
10836 2020-03-13 Tom Tromey <tom@tromey.com>
10838 * value.h (val_print): Don't declare.
10839 * valprint.h (val_print_array_elements)
10840 (val_print_scalar_formatted, generic_val_print): Don't declare.
10841 * valprint.c (generic_val_print_array): Take a struct value.
10842 (generic_val_print_ptr, generic_val_print_memberptr)
10843 (generic_val_print_bool, generic_val_print_int)
10844 (generic_val_print_char, generic_val_print_complex)
10845 (generic_val_print): Remove.
10846 (generic_value_print): Update.
10847 (do_val_print): Remove unused parameters. Don't call
10849 (val_print): Remove.
10850 (common_val_print): Update. Don't call value_check_printable.
10851 (val_print_scalar_formatted, val_print_array_elements): Remove.
10852 * rust-lang.c (rust_val_print): Remove.
10853 (rust_language_defn): Update.
10854 * p-valprint.c (pascal_val_print): Remove.
10855 (pascal_value_print_inner): Update.
10856 (pascal_object_print_val_fields, pascal_object_print_val):
10858 (pascal_object_print_static_field): Update.
10859 * p-lang.h (pascal_val_print): Don't declare.
10860 * p-lang.c (pascal_language_defn): Update.
10861 * opencl-lang.c (opencl_language_defn): Update.
10862 * objc-lang.c (objc_language_defn): Update.
10863 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
10864 * m2-lang.h (m2_val_print): Don't declare.
10865 * m2-lang.c (m2_language_defn): Update.
10866 * language.h (struct language_defn) <la_val_print>: Remove.
10867 * language.c (unk_lang_value_print_inner): Rename. Change
10869 (unknown_language_defn, auto_language_defn): Update.
10870 * go-valprint.c (go_val_print): Remove.
10871 * go-lang.h (go_val_print): Don't declare.
10872 * go-lang.c (go_language_defn): Update.
10873 * f-valprint.c (f_val_print): Remove.
10874 * f-lang.h (f_value_print): Don't declare.
10875 * f-lang.c (f_language_defn): Update.
10876 * d-valprint.c (d_val_print): Remove.
10877 * d-lang.h (d_value_print): Don't declare.
10878 * d-lang.c (d_language_defn): Update.
10879 * cp-valprint.c (cp_print_value_fields)
10880 (cp_print_value_fields_rtti, cp_print_value): Remove.
10881 (cp_print_static_field): Update.
10882 * c-valprint.c (c_val_print_array, c_val_print_ptr)
10883 (c_val_print_struct, c_val_print_union, c_val_print_int)
10884 (c_val_print_memberptr, c_val_print): Remove.
10885 * c-lang.h (c_val_print_array, cp_print_value_fields)
10886 (cp_print_value_fields_rtti): Don't declare.
10887 * c-lang.c (c_language_defn, cplus_language_defn)
10888 (asm_language_defn, minimal_language_defn): Update.
10889 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
10890 (ada_val_print_enum): Take a struct value.
10891 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
10892 (ada_val_print): Remove.
10893 (ada_value_print_1): Update.
10894 (printable_val_type): Remove.
10895 * ada-lang.h (ada_val_print): Don't declare.
10896 * ada-lang.c (ada_language_defn): Update.
10898 2020-03-13 Tom Tromey <tom@tromey.com>
10900 * valprint.c (do_val_print): Update.
10901 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
10903 (value_to_value_object_no_release): Declare.
10904 * python/py-value.c (value_to_value_object_no_release): New
10906 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
10908 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
10910 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
10912 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
10914 (gdbscm_apply_val_pretty_printer): Take a struct value.
10915 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
10917 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
10919 * extension-priv.h (struct extension_language_ops)
10920 <apply_val_pretty_printer>: Take a struct value.
10921 * cp-valprint.c (cp_print_value): Create a struct value.
10922 (cp_print_value): Update.
10924 2020-03-13 Tom Tromey <tom@tromey.com>
10926 * ada-valprint.c (print_field_values): Call common_val_print.
10928 2020-03-13 Tom Tromey <tom@tromey.com>
10930 * ada-valprint.c (val_print_packed_array_elements): Remove
10931 bitoffset and val parameters. Call common_val_print.
10932 (ada_val_print_string): Remove offset, address, and original_value
10934 (ada_val_print_array): Update.
10935 (ada_value_print_array): New function.
10936 (ada_value_print_1): Call it.
10938 2020-03-13 Tom Tromey <tom@tromey.com>
10940 * ada-valprint.c (ada_value_print): Use common_val_print.
10942 2020-03-13 Tom Tromey <tom@tromey.com>
10944 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
10946 2020-03-13 Tom Tromey <tom@tromey.com>
10948 * ada-valprint.c (ada_value_print_num): New function.
10949 (ada_value_print_1): Use it.
10951 2020-03-13 Tom Tromey <tom@tromey.com>
10953 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10955 2020-03-13 Tom Tromey <tom@tromey.com>
10957 * ada-valprint.c (ada_value_print_ptr): New function.
10958 (ada_value_print_1): Use it.
10960 2020-03-13 Tom Tromey <tom@tromey.com>
10962 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10963 call common_val_print.
10964 (ada_val_print_1): Update.
10965 (ada_value_print_1): New function.
10966 (ada_value_print_inner): Rewrite.
10968 2020-03-13 Tom Tromey <tom@tromey.com>
10970 * cp-valprint.c (cp_print_value_fields): Update.
10971 (cp_print_value): New function.
10973 2020-03-13 Tom Tromey <tom@tromey.com>
10975 * m2-valprint.c (m2_value_print_inner): Use
10976 cp_print_value_fields.
10977 * cp-valprint.c (cp_print_value_fields): New function.
10978 * c-valprint.c (c_value_print_struct): New function.
10979 (c_value_print_inner): Use c_value_print_struct.
10980 * c-lang.h (cp_print_value_fields): Declare.
10982 2020-03-13 Tom Tromey <tom@tromey.com>
10984 * c-valprint.c (c_value_print_array): New function.
10985 (c_value_print_inner): Use it.
10987 2020-03-13 Tom Tromey <tom@tromey.com>
10989 * c-valprint.c (c_value_print_memberptr): New function.
10990 (c_value_print_inner): Use it.
10992 2020-03-13 Tom Tromey <tom@tromey.com>
10994 * c-valprint.c (c_value_print_int): New function.
10995 (c_value_print_inner): Use it.
10997 2020-03-13 Tom Tromey <tom@tromey.com>
10999 * c-valprint.c (c_value_print_ptr): New function.
11000 (c_value_print_inner): Use it.
11002 2020-03-13 Tom Tromey <tom@tromey.com>
11004 * c-valprint.c (c_value_print_inner): Rewrite.
11006 2020-03-13 Tom Tromey <tom@tromey.com>
11008 * valprint.c (generic_value_print_complex): New function.
11009 (generic_value_print): Use it.
11011 2020-03-13 Tom Tromey <tom@tromey.com>
11013 * valprint.c (generic_val_print_float): Don't call
11014 val_print_scalar_formatted.
11015 (generic_val_print, generic_value_print): Update.
11017 2020-03-13 Tom Tromey <tom@tromey.com>
11019 * valprint.c (generic_value_print_char): New function
11020 (generic_value_print): Use it.
11022 2020-03-13 Tom Tromey <tom@tromey.com>
11024 * valprint.c (generic_value_print_int): New function.
11025 (generic_value_print): Use it.
11027 2020-03-13 Tom Tromey <tom@tromey.com>
11029 * valprint.c (generic_value_print_bool): New function.
11030 (generic_value_print): Use it.
11032 2020-03-13 Tom Tromey <tom@tromey.com>
11034 * valprint.c (generic_val_print_func): Simplify.
11035 (generic_val_print, generic_value_print): Update.
11037 2020-03-13 Tom Tromey <tom@tromey.com>
11039 * valprint.c (generic_val_print_flags): Remove.
11040 (generic_val_print, generic_value_print): Update.
11041 (val_print_type_code_flags): Add original_value parameter.
11043 2020-03-13 Tom Tromey <tom@tromey.com>
11045 * valprint.c (generic_val_print): Update.
11046 (generic_value_print): Update.
11047 * valprint.c (generic_val_print_enum): Don't call
11048 val_print_scalar_formatted.
11050 2020-03-13 Tom Tromey <tom@tromey.com>
11052 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11053 * valprint.c (generic_value_print_ptr): New function.
11055 2020-03-13 Tom Tromey <tom@tromey.com>
11057 * valprint.c (generic_value_print): Rewrite.
11059 2020-03-13 Tom Tromey <tom@tromey.com>
11061 * p-valprint.c (pascal_object_print_value_fields)
11062 (pascal_object_print_value): New functions.
11064 2020-03-13 Tom Tromey <tom@tromey.com>
11066 * p-valprint.c (pascal_value_print_inner): Rewrite.
11068 2020-03-13 Tom Tromey <tom@tromey.com>
11070 * f-valprint.c (f_value_print_innner): Rewrite.
11072 2020-03-13 Tom Tromey <tom@tromey.com>
11074 * m2-valprint.c (m2_print_unbounded_array): New overload.
11075 (m2_print_unbounded_array): Update.
11076 (m2_print_array_contents): Take a struct value.
11077 (m2_value_print_inner): Rewrite.
11079 2020-03-13 Tom Tromey <tom@tromey.com>
11081 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11082 (d_value_print_inner): New function.
11083 * d-lang.h (d_value_print_inner): Declare.
11084 * d-lang.c (d_language_defn): Use d_value_print_inner.
11086 2020-03-13 Tom Tromey <tom@tromey.com>
11088 * go-valprint.c (go_value_print_inner): New function.
11089 * go-lang.h (go_value_print_inner): Declare.
11090 * go-lang.c (go_language_defn): Use go_value_print_inner.
11092 2020-03-13 Tom Tromey <tom@tromey.com>
11094 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11096 (rust_val_print): Rewrite.
11097 (rust_value_print_inner): New function, from rust_val_print.
11098 (rust_language_defn): Use rust_value_print_inner.
11100 2020-03-13 Tom Tromey <tom@tromey.com>
11102 * ada-valprint.c (ada_value_print_inner): New function.
11103 * ada-lang.h (ada_value_print_inner): Declare.
11104 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11106 2020-03-13 Tom Tromey <tom@tromey.com>
11108 * f-valprint.c (f_value_print_innner): New function.
11109 * f-lang.h (f_value_print_innner): Declare.
11110 * f-lang.c (f_language_defn): Use f_value_print_innner.
11112 2020-03-13 Tom Tromey <tom@tromey.com>
11114 * p-valprint.c (pascal_value_print_inner): New function.
11115 * p-lang.h (pascal_value_print_inner): Declare.
11116 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11118 2020-03-13 Tom Tromey <tom@tromey.com>
11120 * m2-valprint.c (m2_value_print_inner): New function.
11121 * m2-lang.h (m2_value_print_inner): Declare.
11122 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11124 2020-03-13 Tom Tromey <tom@tromey.com>
11126 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11127 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11128 * c-valprint.c (c_value_print_inner): New function.
11129 * c-lang.h (c_value_print_inner): Declare.
11130 * c-lang.c (c_language_defn, cplus_language_defn)
11131 (asm_language_defn, minimal_language_defn): Use
11132 c_value_print_inner.
11134 2020-03-13 Tom Tromey <tom@tromey.com>
11136 * p-valprint.c (pascal_object_print_value_fields): Now static.
11137 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11139 2020-03-13 Tom Tromey <tom@tromey.com>
11141 * c-valprint.c (c_val_print_array): Simplify.
11143 2020-03-13 Tom Tromey <tom@tromey.com>
11145 * valprint.c (value_print_array_elements): New function.
11146 * valprint.h (value_print_array_elements): Declare.
11148 2020-03-13 Tom Tromey <tom@tromey.com>
11150 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11151 * mips-tdep.c (mips_print_register): Use
11152 value_print_scalar_formatted.
11154 2020-03-13 Tom Tromey <tom@tromey.com>
11156 * valprint.h (value_print_scalar_formatted): Declare.
11157 * valprint.c (value_print_scalar_formatted): New function.
11159 2020-03-13 Tom Tromey <tom@tromey.com>
11161 * valprint.h (generic_value_print): Declare.
11162 * valprint.c (generic_value_print): New function.
11164 2020-03-13 Tom Tromey <tom@tromey.com>
11166 * valprint.c (do_val_print): Call la_value_print_inner, if
11168 * rust-lang.c (rust_language_defn): Update.
11169 * p-lang.c (pascal_language_defn): Update.
11170 * opencl-lang.c (opencl_language_defn): Update.
11171 * objc-lang.c (objc_language_defn): Update.
11172 * m2-lang.c (m2_language_defn): Update.
11173 * language.h (struct language_defn) <la_value_print_inner>: New
11175 * language.c (unknown_language_defn, auto_language_defn): Update.
11176 * go-lang.c (go_language_defn): Update.
11177 * f-lang.c (f_language_defn): Update.
11178 * d-lang.c (d_language_defn): Update.
11179 * c-lang.c (c_language_defn, cplus_language_defn)
11180 (asm_language_defn, minimal_language_defn): Update.
11181 * ada-lang.c (ada_language_defn): Update.
11183 2020-03-13 Tom Tromey <tom@tromey.com>
11185 * c-valprint.c (c_value_print): Use common_val_print.
11187 2020-03-13 Tom Tromey <tom@tromey.com>
11189 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11191 2020-03-13 Tom Tromey <tom@tromey.com>
11193 * f-valprint.c (f77_print_array_1, f_val_print): Use
11196 2020-03-13 Tom Tromey <tom@tromey.com>
11198 * riscv-tdep.c (riscv_print_one_register_info): Use
11201 2020-03-13 Tom Tromey <tom@tromey.com>
11203 * mi/mi-main.c (output_register): Use common_val_print.
11205 2020-03-13 Tom Tromey <tom@tromey.com>
11207 * infcmd.c (default_print_one_register_info): Use
11210 2020-03-13 Tom Tromey <tom@tromey.com>
11212 * valprint.h (common_val_print_checked): Declare.
11213 * valprint.c (common_val_print_checked): New function.
11214 * stack.c (print_frame_arg): Use common_val_print_checked.
11216 2020-03-13 Tom Tromey <tom@tromey.com>
11218 * valprint.c (do_val_print): New function, from val_print.
11219 (val_print): Use do_val_print.
11220 (common_val_print): Use do_val_print.
11222 2020-03-13 Tom Tromey <tom@tromey.com>
11224 * valprint.c (value_print): Use scoped_value_mark.
11226 2020-03-13 Tom de Vries <tdevries@suse.de>
11229 * psymtab.c (partial_symtab::partial_symtab): Don't set
11230 globals_offset and statics_offset. Push element onto
11231 current_global_psymbols and current_static_psymbols stacks.
11232 (concat): New function.
11233 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11234 element from current_global_psymbols and current_static_psymbols
11235 stacks. Concat popped elements to global_psymbols and
11237 (add_psymbol_to_list): Use current_global_psymbols and
11238 current_static_psymbols stacks.
11239 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11240 current_static_psymbols fields.
11242 2020-03-12 Christian Biesinger <cbiesinger@google.com>
11244 * corelow.c (sniff_core_bfd): Remove.
11245 (class core_target) <m_core_vec>: Remove.
11246 (core_target::core_target): Update.
11247 (core_file_fns): Remove.
11248 (deprecated_add_core_fns): Remove.
11249 (default_core_sniffer): Remove.
11250 (sniff_core_bfd): Remove.
11251 (default_check_format): Remove.
11252 (gdb_check_format): Remove.
11253 (core_target_open): Update.
11254 (core_target::get_core_register_section): Update.
11255 (get_core_registers_cb): Update.
11256 (core_target::fetch_registers): Update.
11257 * gdbcore.h (struct core_fns): Remove.
11258 (deprecated_add_core_fns): Remove.
11259 (default_core_sniffer): Remove.
11260 (default_check_format): Remove.
11262 2020-03-12 Tom Tromey <tom@tromey.com>
11264 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11266 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11268 2020-03-12 Tom Tromey <tom@tromey.com>
11270 * remote.c (remote_target::download_tracepoint)
11271 (remote_target::enable_tracepoint)
11272 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11273 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11276 2020-03-12 Tom Tromey <tom@tromey.com>
11278 * symfile-mem.c: Update CORE_ADDR size assert.
11280 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11282 * selftest.m4: Move to gdbsupport/.
11283 * acinclude.m4: Update path to selftest.m4.
11285 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11287 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11288 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11289 gdbarch-selfselftests.c and selftest-arch.c.
11290 (SUBDIR_UNITTESTS_OBS): Rename to...
11291 (SELFTESTS_OBS): ... this.
11292 (COMMON_SFILES): Remove disasm-selftests.c and
11293 gdbarch-selftests.c.
11294 * configure.ac: Don't add selftest-arch.{c,o} to
11296 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11297 preprocessor conditions.
11299 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11301 * configure.ac: Don't source bfd/development.sh.
11302 * selftest.m4: Modify comment.
11303 * configure: Re-generate.
11305 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11307 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11308 not "true" or "false".
11309 * configure: Re-generate.
11311 2020-03-12 Christian Biesinger <cbiesinger@google.com>
11313 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11314 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11315 renamed to arm_nbsd_supply_gregset.
11316 (fetch_register): Update to call arm_nbsd_supply_gregset.
11317 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11318 (arm_netbsd_nat_target::fetch_registers): Update.
11319 (fetch_elfcore_registers): Removed.
11320 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11321 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11322 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11323 not require NetBSD system headers.
11324 (arm_nbsd_regset): New struct.
11325 (arm_nbsd_iterate_over_regset_sections): New function.
11326 (arm_netbsd_init_abi_common): Updated to call
11327 set_gdbarch_iterate_over_regset_sections.
11328 * arm-nbsd-tdep.h: New file.
11330 2020-03-11 Kevin Buettner <kevinb@redhat.com>
11332 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11335 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
11337 * configure: Re-generate.
11339 2020-03-11 Tom Tromey <tromey@adacore.com>
11341 * ada-typeprint.c (print_choices): Fix comment.
11343 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11345 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11346 previous item in the list, when the list has no items.
11348 2020-03-11 Tom de Vries <tdevries@suse.de>
11350 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11351 PROP_LOCLIST handling code.
11353 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11355 * buildsym-legacy.c (record_line): Pass extra parameter to
11357 * buildsym.c (buildsym_compunit::record_line): Take an extra
11358 parameter, reduce duplication in the line table, and record the
11359 is_stmt flag in the line table.
11360 * buildsym.h (buildsym_compunit::record_line): Add extra
11362 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11363 non-statement lines.
11364 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11365 this to the symtab builder.
11366 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11367 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11368 through to dwarf_record_line_1.
11369 * infrun.c (process_event_stop_test): When stepping, don't stop at
11370 a non-statement instruction, and only refresh the step info when
11371 we land in the middle of a line's range. Also add an extra
11373 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11375 * record-btrace.c (btrace_find_line_range): Only record lines
11376 marked as is-statement.
11377 * stack.c (frame_show_address): Show the frame address if we are
11378 in a non-statement sal.
11379 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11380 (maintenance_print_one_line_table): Print a header for the is_stmt
11381 column, and include is_stmt information in the output.
11382 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11383 preference to non-statements.
11384 (find_pcs_for_symtab_line): Prefer is-statement entries.
11385 (find_line_common): Likewise.
11386 * symtab.h (struct linetable_entry): Add is_stmt field.
11387 (struct symtab_and_line): Likewise.
11388 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11389 arranging the line table.
11391 2020-03-07 Tom de Vries <tdevries@suse.de>
11393 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11396 2020-03-07 Tom Tromey <tom@tromey.com>
11398 * valops.c (value_literal_complex): Remove obsolete comment.
11399 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11402 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11404 * infrun.h: Forward-declare thread_info.
11405 (set_step_info): Add thread_info parameter, add doc.
11406 * infrun.c (set_step_info): Add thread_info parameter, move doc
11408 * infrun.c (process_event_stop_test): Pass thread to
11409 set_step_info call.
11410 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11412 (prepare_one_step): Add thread_info parameter, pass it to
11413 set_step_frame and prepare_one_step (recursive) call.
11414 (step_1): Pass thread to prepare_one_step call.
11415 (step_command_fsm::should_stop): Pass thread to
11417 (until_next_fsm): Pass thread to set_step_frame call.
11418 (finish_command): Pass thread to set_step_info call.
11420 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
11422 * windows-tdep.c (windows_solib_create_inferior_hook):
11423 Check if inferior is running.
11425 2020-03-06 Tom de Vries <tdevries@suse.de>
11427 * NEWS: Fix "the the".
11430 2020-03-06 Tom de Vries <tdevries@suse.de>
11432 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11434 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11436 * .dir-locals.el: Add a comment referencing the other copies of
11439 2020-03-05 John Baldwin <jhb@FreeBSD.org>
11441 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11444 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11446 * .gitattributes: New file.
11448 2020-03-04 Tom Tromey <tom@tromey.com>
11450 * symmisc.c (print_symbol_bcache_statistics)
11451 (print_objfile_statistics): Update.
11452 * symfile.c (allocate_symtab): Use intern.
11453 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11454 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11455 macro_cache>: Remove.
11456 <string_cache>: New member.
11457 (struct objfile) <intern>: New methods.
11458 * elfread.c (elf_symtab_read): Use intern.
11459 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11460 (dwarf2_compute_name, dwarf2_physname)
11461 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11463 (guess_partial_die_structure_name): Update.
11464 (partial_die_info::fixup): Intern name.
11465 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11467 (dwarf2_name): Intern name. Update.
11468 * buildsym.c (buildsym_compunit::get_macro_table): Use
11471 2020-03-04 Tom Tromey <tom@tromey.com>
11473 * jit.c (bfd_open_from_target_memory): Make "target" const.
11474 * corefile.c (gnutarget): Now const.
11475 * gdbcore.h (gnutarget): Now const.
11477 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
11479 * NEWS: Mention support for WOW64 processes.
11480 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11481 (amd64_windows_segment_register_p): Remove static.
11482 (_initialize_amd64_windows_nat): Update.
11483 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11484 * i386-windows-nat.c (context_offset): Update.
11485 (i386_mappings): Rename and remove static.
11486 (i386_windows_segment_register_p): Remove static.
11487 (_initialize_i386_windows_nat): Update.
11488 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11489 (STATUS_WX86_SINGLE_STEP): New macro.
11490 (EnumProcessModulesEx): New macro.
11491 (Wow64SuspendThread): New macro.
11492 (Wow64GetThreadContext): New macro.
11493 (Wow64SetThreadContext): New macro.
11494 (Wow64GetThreadSelectorEntry): New macro.
11495 (windows_set_context_register_offsets): Add static.
11496 (windows_set_segment_register_p): Likewise.
11497 (windows_add_thread): Adapt for WOW64 processes.
11498 (windows_fetch_one_register): Likewise.
11499 (windows_nat_target::fetch_registers): Likewise.
11500 (windows_store_one_register): Likewise.
11501 (display_selector): Likewise.
11502 (display_selectors): Likewise.
11503 (handle_exception): Likewise.
11504 (windows_continue): Likewise.
11505 (windows_nat_target::resume): Likewise.
11506 (windows_add_all_dlls): Likewise.
11507 (do_initial_windows_stuff): Likewise.
11508 (windows_nat_target::attach): Likewise.
11509 (windows_get_exec_module_filename): Likewise.
11510 (windows_nat_target::create_inferior): Likewise.
11511 (windows_xfer_siginfo): Likewise.
11512 (_initialize_loadable): Initialize Wow64SuspendThread,
11513 Wow64GetThreadContext, Wow64SetThreadContext,
11514 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11515 * windows-nat.h (windows_set_context_register_offsets):
11516 Remove declaration.
11517 (windows_set_segment_register_p): Likewise.
11518 (i386_windows_segment_register_p): Add declaration.
11519 (amd64_windows_segment_register_p): Likewise.
11521 2020-03-04 Luis Machado <luis.machado@linaro.org>
11523 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11524 in "info registers" for AArch64/ARM.
11526 The change caused "info registers" to not print GPR's.
11530 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11532 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11533 when reg->group is empty and reggroup is not.
11535 2020-03-03 Tom Tromey <tromey@adacore.com>
11537 * dwarf2/frame.c (struct dwarf2_frame_cache)
11538 <checked_tailcall_bottom, entry_cfa_sp_offset,
11539 entry_cfa_sp_offset_p>: Remove members.
11540 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11541 (dwarf2_frame_prev_register): Don't call
11542 dwarf2_tailcall_sniffer_first.
11543 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11544 * frame-unwind.c (add_unwinder): New fuction.
11545 (frame_unwind_init): Use it. Add tailcall unwinder.
11547 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11548 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11550 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11551 value should be printed as true.
11553 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
11555 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11556 (windows_init_abi): Set and use windows_so_ops.
11558 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11560 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11561 when verifying if dealing with a convenience variable.
11563 2020-03-03 Luis Machado <luis.machado@linaro.org>
11565 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11567 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11569 * infrun.c (gdbarch_supports_displaced_stepping): New.
11570 (use_displaced_stepping): Break up conditions in smaller pieces.
11571 Use gdbarch_supports_displaced_stepping.
11572 (displaced_step_prepare_throw): Use
11573 gdbarch_supports_displaced_stepping.
11575 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11577 * NEWS: Mention new behaviour of the history filename.
11578 * top.c (write_history_p): Add comment.
11579 (show_write_history_p): Add header comment, give a different
11580 message when history writing is on, but the history filename is
11582 (history_filename): Add comment.
11583 (history_filename_empty): New function.
11584 (show_history_filename): Add header comment, give a different
11585 message when the filename is empty.
11586 (init_history): Compare history_filename against nullptr, and only
11587 read history if the filename is not empty.
11588 (set_history_filename): Add header comment, and only make
11589 non-empty filenames absolute.
11590 (init_main): Make the filename argument to 'set history filename'
11593 2020-03-02 Christian Biesinger <cbiesinger@google.com>
11595 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11596 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11597 (fetch_fp_register): Update.
11598 (fetch_fp_regs): Update.
11599 (store_fp_register): Update.
11600 (store_fp_regs): Update.
11601 (arm_netbsd_nat_target::read_description): New function.
11602 (fetch_elfcore_registers): Update.
11604 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11606 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11607 general_thread if the stop reply is missing a thread-id.
11608 (remote_target::process_stop_reply): Use the first non-exited
11609 thread if the target didn't pass a thread-id.
11610 * infrun.c (do_target_wait): Move call to
11611 switch_to_inferior_no_thread to ....
11612 (do_target_wait_1): ... here.
11614 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11616 * debuginfod-support.c: Include defs.h first.
11618 2020-02-28 Tom de Vries <tdevries@suse.de>
11620 * symfile.c (set_initial_language): Use default language for lookup.
11622 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
11624 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11625 reader variable, pass `this` to read_cutu_die_from_dwo.
11627 2020-02-27 Aaron Merey <amerey@redhat.com>
11629 * source.c (open_source_file): Check for nullptr when computing
11632 2020-02-27 Tom Tromey <tromey@adacore.com>
11634 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11636 (dwarf2_add_field): Don't update nfields.
11637 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11639 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11641 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11644 2020-02-26 Tom Tromey <tom@tromey.com>
11646 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11647 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11648 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11649 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11652 2020-02-26 Tom Tromey <tom@tromey.com>
11654 * dwarf2/index-write.c (psym_index_map): Change type.
11655 (add_address_entry_worker, write_one_signatured_type)
11656 (recursively_count_psymbols, recursively_write_psymbols)
11657 (class debug_names, psyms_seen_size, write_gdbindex)
11658 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11660 2020-02-26 Aaron Merey <amerey@redhat.com>
11662 * Makefile.in: Handle optional debuginfod support.
11664 * README: Add --with-debuginfod summary.
11665 * config.in: Regenerate.
11666 * configure: Regenerate.
11667 * configure.ac: Handle optional debuginfod support.
11668 * debuginfod-support.c: debuginfod helper functions.
11669 * debuginfod-support.h: Ditto.
11670 * doc/gdb.texinfo: Add --with-debuginfod to configure options
11672 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
11673 when a dwz file cannot be found.
11674 * elfread.c (elf_symfile_read): Query debuginfod servers when a
11675 debuginfo file cannot be found.
11676 * source.c (open_source_file): Query debuginfod servers when a
11677 source file cannot be found.
11678 * top.c (print_gdb_configuration): Include
11679 --{with,without}-debuginfod in the output.
11681 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
11683 * thread.c (thr_try_catch_cmd): Print thread name.
11685 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
11687 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
11688 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11689 dwarf2_fetch_die_type_sect_off): Move to...
11690 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
11691 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11692 dwarf2_fetch_die_type_sect_off): ... here.
11693 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
11694 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
11695 dwarf2_fetch_die_type_sect_off): Move doc to header file.
11697 2020-02-26 Tom de Vries <tdevries@suse.de>
11700 * symfile.c (set_initial_language): Exit-early if
11701 language_mode == language_mode_manual.
11703 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11705 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
11706 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
11707 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
11709 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
11711 * gdbtypes.c (create_array_type_with_stride): Handle negative
11713 * valarith.c (value_subscripted_rvalue): Likewise.
11715 2020-02-25 Luis Machado <luis.machado@linaro.org>
11717 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
11719 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
11721 * loc.h (dwarf2_get_die_type): Move to...
11722 * read.h (dwarf2_get_die_type): ... here.
11723 * read.c (dwarf2_get_die_type): Move doc to header.
11725 2020-02-25 Joel Brobecker <brobecker@adacore.com>
11727 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
11728 'gnulib/Makefile.in' to the list.
11730 2020-02-24 Tom Tromey <tom@tromey.com>
11732 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
11734 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
11737 2020-02-24 Tom Tromey <tom@tromey.com>
11739 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
11741 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
11742 (dw2_do_instantiate_symtab, dw2_get_file_names)
11743 (build_type_psymtab_dependencies, load_full_type_unit): Update.
11745 2020-02-24 Tom Tromey <tom@tromey.com>
11747 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
11748 make_scoped_restore.
11749 (dwarf2_psymtab::read_symtab): Don't clear
11750 reading_partial_symbols.
11752 2020-02-24 Tom de Vries <tdevries@suse.de>
11755 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
11757 2020-02-24 Tom de Vries <tdevries@suse.de>
11759 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
11760 commands layout next/prev/regs.
11762 2020-02-22 Tom Tromey <tom@tromey.com>
11764 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
11765 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
11767 2020-02-22 Tom Tromey <tom@tromey.com>
11769 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
11771 2020-02-22 Tom Tromey <tom@tromey.com>
11773 * tui/tui-win.c (_initialize_tui_win): Add usage text.
11774 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
11775 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
11776 * tui/tui.c (_initialize_tui): Add usage text.
11778 2020-02-22 Tom Tromey <tom@tromey.com>
11780 * tui/tui-win.c (tui_set_focus_command)
11781 (tui_set_win_height_command): Use error_no_arg.
11782 (_initialize_tui_win): Update help text.
11783 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
11785 2020-02-22 Tom Tromey <tom@tromey.com>
11787 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
11788 * tui/tui-disasm.h (struct tui_disasm_window)
11789 <display_start_addr>: Declare.
11790 * tui/tui-source.h (struct tui_source_window)
11791 <display_start_addr>: Declare.
11792 * tui/tui-winsource.h (struct tui_source_window_base)
11793 <show_source_line, display_start_addr>: New methods.
11794 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
11795 Rename and move to protected section.
11796 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
11797 (tui_source_window_base::do_erase_source_content): Update.
11798 (tui_source_window_base::show_source_line): Now a method.
11799 (tui_source_window_base::show_source_content)
11800 (tui_source_window_base::tui_source_window_base)
11801 (tui_source_window_base::rerender)
11802 (tui_source_window_base::refill)
11803 (tui_source_window_base::do_scroll_horizontal)
11804 (tui_source_window_base::set_is_exec_point_at)
11805 (tui_source_window_base::update_breakpoint_info)
11806 (tui_source_window_base::update_exec_info): Update.
11807 * tui/tui-source.c (tui_source_window::set_contents)
11808 (tui_source_window::showing_source_p)
11809 (tui_source_window::do_scroll_vertical)
11810 (tui_source_window::location_matches_p)
11811 (tui_source_window::line_is_displayed): Update.
11812 (tui_source_window::display_start_addr): New method.
11813 * tui/tui-disasm.c (tui_disasm_window::set_contents)
11814 (tui_disasm_window::do_scroll_vertical)
11815 (tui_disasm_window::location_matches_p): Update.
11816 (tui_disasm_window::display_start_addr): New method.
11818 2020-02-22 Tom Tromey <tom@tromey.com>
11820 * NEWS: Add entry for gdb.register_window_type.
11821 * tui/tui-layout.h (window_factory): New typedef.
11822 (tui_register_window): Declare.
11823 * tui/tui-layout.c (saved_tui_windows): New global.
11824 (tui_apply_current_layout): Use it.
11825 (tui_register_window): New function.
11826 * python/python.c (do_start_initialization): Call
11827 gdbpy_initialize_tui.
11828 (python_GdbMethods): Add "register_window_type" function.
11829 * python/python-internal.h (gdbpy_register_tui_window)
11830 (gdbpy_initialize_tui): Declare.
11831 * python/py-tui.c: New file.
11832 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
11834 2020-02-22 Tom Tromey <tom@tromey.com>
11836 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
11838 2020-02-22 Tom Tromey <tom@tromey.com>
11840 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
11841 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
11842 * tui/tui-data.c (tui_set_win_with_focus): Remove.
11843 (tui_set_win_focus_to): Move from tui-win.c.
11845 2020-02-22 Tom Tromey <tom@tromey.com>
11847 * tui/tui-layout.c (make_standard_window, get_locator_window): New
11849 (known_window_types): New global.
11850 (tui_get_window_by_name): Reimplement.
11851 (initialize_known_windows): New function.
11852 (validate_window_name): Rewrite.
11853 (_initialize_tui_layout): Call initialize_known_windows.
11855 2020-02-22 Tom Tromey <tom@tromey.com>
11857 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
11859 * tui/tui-winsource.h (struct tui_source_window_base)
11860 <tui_source_window_base>: Remove parameter.
11861 * tui/tui-winsource.c
11862 (tui_source_window_base::tui_source_window_base): Remove
11864 (tui_source_window_base::refill): Update.
11865 * tui/tui-stack.h (struct tui_locator_window)
11866 <tui_locator_window>: Update.
11867 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
11868 Default the constructor.
11869 * tui/tui-regs.h (struct tui_data_item_window)
11870 <tui_data_item_window>: Default the constructor.
11871 (struct tui_data_window) <tui_data_window>: Likewise.
11872 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
11873 Default the constructor.
11874 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
11875 Default the constructor.
11877 (struct tui_win_info) <tui_win_info>: Default the constructor.
11878 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
11879 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
11880 Default the constructor.
11882 2020-02-22 Tom Tromey <tom@tromey.com>
11884 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
11885 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
11886 * tui/tui-win.c (tui_resize_all): Don't call
11887 tui_delete_invisible_windows.
11888 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
11890 (tui_set_layout): Update.
11891 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
11892 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
11893 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
11895 2020-02-22 Tom Tromey <tom@tromey.com>
11897 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
11900 2020-02-22 Tom Tromey <tom@tromey.com>
11902 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
11904 2020-02-22 Tom Tromey <tom@tromey.com>
11906 * tui/tui-winsource.h (struct tui_source_window_iterator)
11907 <inner_iterator>: New etytypedef.
11908 <tui_source_window_iterator>: Take "end" parameter.
11909 <tui_source_window_iterator>: Take iterator.
11910 <operator*, advance>: Update.
11911 <m_iter>: Change type.
11912 <m_end>: New field.
11913 (struct tui_source_windows) <begin, end>: Update.
11914 * tui/tui-layout.c (tui_windows): New global.
11915 (tui_apply_current_layout): Clear tui_windows.
11916 (tui_layout_window::apply): Update tui_windows.
11917 * tui/tui-data.h (tui_windows): Declare.
11918 (all_tui_windows): Now inline function.
11919 (class tui_window_iterator, struct all_tui_windows): Remove.
11921 2020-02-22 Tom Tromey <tom@tromey.com>
11924 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
11925 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
11927 (class tui_layout_window) <get_sizes>: Likewise.
11928 (class tui_layout_split) <tui_layout_split>: Add "vertical"
11930 <get_sizes>: Add "height" argument.
11931 <m_vertical>: New field.
11932 * tui/tui-layout.c (tui_layout_split::clone): Update.
11933 (tui_layout_split::get_sizes): Add "height" argument.
11934 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
11935 (tui_new_layout_command): Parse "-horizontal".
11936 (_initialize_tui_layout): Update help string.
11937 (tui_layout_split::specification): Add "-horizontal" when needed.
11938 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
11940 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
11943 2020-02-22 Tom Tromey <tom@tromey.com>
11945 * tui/tui-layout.h (enum tui_adjust_result): New.
11946 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
11947 (class tui_layout_window) <adjust_size>: Return
11948 tui_adjust_result. Rewrite.
11949 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
11950 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
11952 2020-02-22 Tom Tromey <tom@tromey.com>
11954 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11955 parameter and return types.
11956 (class tui_layout_base) <specification>: Add "depth".
11957 (class tui_layout_window) <specification>: Add "depth".
11958 (class tui_layout_split) <specification>: Add "depth".
11959 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11961 (tui_new_layout_command): Parse sub-layouts.
11962 (_initialize_tui_layout): Update help string.
11963 (tui_layout_window::specification): Add "depth".
11964 (add_layout_command): Update.
11966 2020-02-22 Tom Tromey <tom@tromey.com>
11968 * NEWS: Add "tui new-layout" item.
11969 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11970 Add new-layout command to help text.
11971 (validate_window_name): New function.
11972 (tui_new_layout_command): New function.
11973 (_initialize_tui_layout): Register "new-layout".
11974 (tui_layout_window::specification): New method.
11975 (tui_layout_window::specification): New method.
11976 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11978 (class tui_layout_window) <specification>: New method.
11979 (class tui_layout_split) <specification>: New method.
11981 2020-02-22 Tom Tromey <tom@tromey.com>
11983 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11984 * tui/tui-win.c (window_name_completer): Update comment.
11985 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11987 (class tui_layout_window) <replace_window>: Likewise.
11988 (class tui_layout_split) <replace_window>: Likewise.
11989 (tui_set_layout): Don't declare.
11990 (tui_set_initial_layout): Declare function.
11991 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11992 (asm_regs_layout): New globals.
11993 (tui_current_layout, show_layout): Remove.
11994 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11995 (find_layout, tui_apply_layout): New function.
11996 (layout_completer): Remove.
11997 (tui_next_layout): Reimplement.
11998 (tui_next_layout_command): New function.
11999 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12000 (tui_regs_layout): Reimplement.
12001 (tui_regs_layout_command): New function.
12002 (extract_display_start_addr): Rewrite.
12003 (next_layout, prev_layout): Remove.
12004 (tui_layout_window::replace_window): New method.
12005 (tui_layout_split::replace_window): New method.
12006 (destroy_layout): New function.
12007 (layout_list): New global.
12008 (add_layout_command): New function.
12009 (initialize_layouts): Update.
12010 (tui_layout_command): New function.
12011 (_initialize_tui_layout): Install "layout" commands.
12012 * tui/tui-data.h (enum tui_layout_type): Remove.
12013 (tui_current_layout): Don't declare.
12015 2020-02-22 Tom Tromey <tom@tromey.com>
12017 * tui/tui-regs.c (tui_reg_layout): Remove.
12018 (tui_reg_command): Use tui_regs_layout.
12019 * tui/tui-layout.h (tui_reg_command): Declare.
12020 * tui/tui-layout.c (tui_reg_command): New function.
12022 2020-02-22 Tom Tromey <tom@tromey.com>
12024 * tui/tui.c (tui_rl_delete_other_windows): Call
12025 tui_remove_some_windows.
12026 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12028 (class tui_layout_window) <remove_windows>: New method.
12029 (class tui_layout_split) <remove_windows>: Declare.
12030 (tui_remove_some_windows): Declare.
12031 * tui/tui-layout.c (tui_remove_some_windows): New function.
12032 (tui_layout_split::remove_windows): New method.
12034 2020-02-22 Tom Tromey <tom@tromey.com>
12036 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12037 * tui/tui-layout.h (tui_next_layout): Declare.
12038 * tui/tui-layout.c (tui_next_layout): New function.
12040 2020-02-22 Tom Tromey <tom@tromey.com>
12042 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12043 correct coordinates.
12045 2020-02-22 Tom Tromey <tom@tromey.com>
12047 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12048 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12051 2020-02-22 Tom Tromey <tom@tromey.com>
12053 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12054 TUI_DISASM_WIN, not tui_win_list.
12056 2020-02-22 Tom Tromey <tom@tromey.com>
12058 * valprint.c (generic_val_print_enum_1)
12059 (val_print_type_code_flags): Style member names.
12060 * rust-lang.c (val_print_struct, rust_print_enum)
12061 (rust_print_struct_def, rust_internal_print_type): Style member
12063 * p-valprint.c (pascal_object_print_value_fields): Style member
12064 names. Only call fprintf_symbol_filtered for static members.
12065 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12066 * f-valprint.c (f_val_print): Style member names.
12067 * f-typeprint.c (f_type_print_base): Style member names.
12068 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12069 call fprintf_symbol_filtered for static members.
12070 (cp_print_class_member): Style member names.
12071 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12073 * ada-valprint.c (ada_print_scalar): Style enum names.
12074 (ada_val_print_enum): Likewise.
12075 * ada-typeprint.c (print_enum_type): Style enum names.
12077 2020-02-21 Tom Tromey <tom@tromey.com>
12079 * psympriv.h (struct partial_symtab): Update comment.
12081 2020-02-21 Tom Tromey <tromey@adacore.com>
12083 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12086 2020-02-21 Tom de Vries <tdevries@suse.de>
12089 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12090 if dependencies[i]->user != NULL.
12092 2020-02-21 Ali Tamur <tamur@google.com>
12094 * dwarf2/read.c (dwarf2_name): Add null check.
12096 2020-02-20 Tom Tromey <tom@tromey.com>
12098 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12099 ">=", in binary search.
12100 (dwarf2_find_containing_comp_unit): New overload.
12101 (run_test): New self-test.
12102 (_initialize_dwarf2_read): Register new test.
12104 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
12106 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12107 * riscv-tdep.h: Likewise.
12108 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12110 * features/riscv/64bit-csr.xml: Regenerated.
12112 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12113 Tom Tromey <tom@tromey.com>
12115 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12116 of 'fputc_unfiltered'.
12117 (putchar_unfiltered): Call 'fputc_unfiltered'.
12118 (fputc_unfiltered): Call 'fputs_unfiltered'.
12120 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12122 * config.in: Regenerate.
12123 * configure: Regenerate.
12124 * configure.ac: Add --with-python-libdir option.
12125 * main.c: Use WITH_PYTHON_LIBDIR.
12127 2020-02-19 Tom Tromey <tom@tromey.com>
12129 * symtab.c (general_symbol_info::compute_and_set_names): Use
12130 obstack_strndup. Simplify call to symbol_set_demangled_name.
12132 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
12134 * dwarf2/read.c (allocate_signatured_type_table,
12135 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12136 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12137 Remove objfile parameter, update all callers.
12139 2020-02-19 Doug Evans <dje@google.com>
12142 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12143 rust_enum_variant calculation.
12145 2020-02-19 Tom Tromey <tromey@adacore.com>
12147 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12149 2020-02-19 Tom Tromey <tromey@adacore.com>
12151 * ada-lang.c (cache_symbol): Use obstack_strdup.
12153 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12155 * configure: Regenerate.
12157 2020-02-19 Tom Tromey <tromey@adacore.com>
12159 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12162 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
12164 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12166 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12168 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12169 if GDBSERVER is not defined.
12170 (riscv_tdesc_cache): Likewise, also store const target_desc.
12171 (STATIC_IN_GDB): Define.
12172 (riscv_create_target_description): Update declaration with
12174 (riscv_lookup_target_description): New function, only define if
12175 GDBSERVER is not defined.
12176 * arch/riscv.h (riscv_create_target_description): Declare only
12177 when GDBSERVER is defined.
12178 (riscv_lookup_target_description): New declaration when GDBSERVER
12180 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12181 (riscv_linux_read_features): ...this, and return
12182 riscv_gdbarch_features instead of target_desc.
12183 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12184 (riscv_linux_read_description): Rename to...
12185 (riscv_linux_read_features): ...this.
12186 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12187 Update to use riscv_gdbarch_features and
12188 riscv_lookup_target_description.
12189 * riscv-tdep.c (riscv_find_default_target_description): Use
12190 riscv_lookup_target_description instead of
12191 riscv_create_target_description.
12193 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12195 * valprint.c (generic_val_print_enum_1): When printing a flag
12196 enum with value 0 and there is no enumerator with value 0, print
12197 just "0" instead of "(unknown: 0x0)".
12199 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12201 * valprint.c (generic_val_print_enum_1): Print unknown part of
12204 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12206 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12207 flag enums to contain duplicate enumerators.
12208 * valprint.c (generic_val_print_enum_1): Update comment.
12210 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12212 * dwarf2/read.c: Include "count-one-bits.h".
12213 (update_enumeration_type_from_children): If an enumerator has
12214 multiple bits set, don't treat the enumeration as a "flag enum".
12215 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12216 of flag enums have 0 or 1 bit set.
12218 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12220 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12222 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12223 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12224 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12225 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12226 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12228 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12230 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12232 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12234 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12235 displaced_step_closure_up.
12236 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12237 (struct displaced_step_closure_up):
12238 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12239 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12240 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12242 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12243 * gdbarch.c, gdbarch.h: Re-generate.
12244 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12245 displaced_step_closure_up.
12246 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12247 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12248 * infrun.h (displaced_step_closure_up): New type alias.
12249 (struct displaced_step_inferior_state) <step_closure>: Change
12250 type to displaced_step_closure_up.
12251 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12252 displaced_step_closure_up.
12253 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12255 2020-02-14 Tom Tromey <tom@tromey.com>
12257 * minidebug.c (gnu_debug_key): New global.
12258 (find_separate_debug_file_in_section): Use it.
12260 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12262 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12264 * gdbarch.c: Re-generate.
12265 * gdbarch.h: Re-generate.
12266 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12268 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12269 type to std::unique_ptr.
12270 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12271 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12272 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12273 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12274 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12275 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12276 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12277 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12278 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12280 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12282 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12284 (displaced_step_clear): Rename to...
12285 (displaced_step_reset): ... this. Just call displaced->reset ().
12286 (displaced_step_clear_cleanup): Rename to...
12287 (displaced_step_reset_cleanup): ... this.
12288 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12289 (displaced_step_fixup): Likewise.
12290 (resume_1): Likewise.
12291 (handle_inferior_event): Restore child's memory before calling
12292 displaced_step_fixup on the parent.
12293 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12294 to std::unique_ptr.
12295 <step_closure>: Change type to std::unique_ptr.
12297 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12299 * arm-tdep.c: Include count-one-bits.h.
12300 (cleanup_block_store_pc): Use count_one_bits.
12301 (cleanup_block_load_pc): Use count_one_bits.
12302 (arm_copy_block_xfer): Use count_one_bits.
12303 (thumb2_copy_block_xfer): Use count_one_bits.
12304 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12305 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12306 (thumb_get_next_pcs_raw): Use count_one_bits.
12307 (arm_get_next_pcs_raw): Use count_one_bits_l.
12308 * arch/arm.c (bitcount): Remove.
12309 * arch/arm.h (bitcount): Remove.
12311 2020-02-14 Tom Tromey <tromey@adacore.com>
12313 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12315 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12316 * dwarf2/loc.c (call_site_find_chain_1): Return
12317 unique_xmalloc_ptr.
12318 (call_site_find_chain): Likewise.
12320 2020-02-14 Richard Biener <rguenther@suse.de>
12322 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12323 on expression with division operators.
12325 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12327 * MAINTAINERS (Write After Approval): Adding myself.
12329 2020-02-12 Tom Tromey <tom@tromey.com>
12331 * event-loop.c (event_data, gdb_event, event_handler_func):
12334 2020-02-12 Tom Tromey <tom@tromey.com>
12336 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12337 (dwarf2_frame_objfile_data): Add comment.
12338 (find_comp_unit, set_comp_unit): New functions.
12339 (dwarf2_frame_find_fde): Use find_comp_unit.
12340 (dwarf2_build_frame_info): Use set_comp_unit.
12342 2020-02-12 Tom Tromey <tom@tromey.com>
12344 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12345 (comp_unit): Don't initialize objfile.
12346 (execute_cfa_program): Add text_offset parameter.
12347 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12348 (dwarf2_frame_cache): Update.
12349 (dwarf2_build_frame_info): Don't set "objfile" member.
12351 2020-02-12 Tom Tromey <tom@tromey.com>
12353 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12354 (decode_frame_entry): Likewise.
12355 (dwarf2_build_frame_info): Update.
12357 2020-02-12 Tom Tromey <tom@tromey.com>
12359 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12360 (decode_frame_entry_1): Use the comp_unit obstack.
12362 2020-02-12 Tom Tromey <tom@tromey.com>
12364 * dwarf2/frame.c (struct comp_unit): Add initializers and
12366 (dwarf2_frame_objfile_data): Store a comp_unit.
12367 (dwarf2_frame_find_fde): Update.
12368 (dwarf2_build_frame_info): Use "new".
12370 2020-02-12 Tom Tromey <tom@tromey.com>
12372 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12373 (dwarf2_fde_table): Typedef for std::vector.
12374 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12375 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12376 (decode_frame_entry): Update.
12377 (dwarf2_build_frame_info): Use "new".
12379 2020-02-12 Christian Biesinger <cbiesinger@google.com>
12381 * arm-tdep.c (arm_gdbarch_init): Update.
12382 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12383 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12384 have_neon, is_m>: Change to bool.
12386 2020-02-12 Christian Biesinger <cbiesinger@google.com>
12388 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12390 2020-02-12 Tom Tromey <tom@tromey.com>
12392 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12394 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
12396 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12397 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12399 2020-02-11 Tom Tromey <tom@tromey.com>
12401 * psymtab.h: Update comment.
12403 2020-02-11 Tom Tromey <tom@tromey.com>
12405 * gdb_obstack.h (struct auto_obstack): Use
12406 DISABLE_COPY_AND_ASSIGN.
12408 2020-02-11 Tom Tromey <tom@tromey.com>
12410 * dwarf2/frame.h (struct objfile): Don't forward declare.
12412 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12414 * cris-tdep.c (cris_supply_gregset): Change signature to match
12415 what struct regset expects.
12416 (cris_regset): New struct.
12417 (fetch_core_registers): Remove.
12418 (cris_iterate_over_regset_sections): New function.
12419 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12420 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12422 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12424 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12427 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12429 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12431 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12433 * configure: Re-generate.
12435 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12437 * configure: Re-generate.
12439 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12441 * acinclude: Update warning.m4 path.
12442 * warning.m4: Move to gdbsupport.
12444 2020-02-11 Tom Tromey <tromey@adacore.com>
12446 * remote.c (remote_console_output): Update.
12447 * printcmd.c (printf_command): Update.
12448 * event-loop.c (gdb_wait_for_event): Update.
12449 * linux-nat.c (sigchld_handler): Update.
12450 * remote-sim.c (gdb_os_write_stdout): Update.
12451 (gdb_os_flush_stdout): Update.
12452 (gdb_os_flush_stderr): Update.
12453 (gdb_os_write_stderr): Update.
12454 * exceptions.c (print_exception): Update.
12455 * remote-fileio.c (remote_fileio_func_read): Update.
12456 (remote_fileio_func_write): Update.
12457 * tui/tui.c (tui_enable): Update.
12458 * tui/tui-interp.c (tui_interp::init): Update.
12459 * utils.c (init_page_info): Update.
12460 (putchar_unfiltered, fputc_unfiltered): Update.
12461 (gdb_flush): Update.
12462 (emit_style_escape): Update.
12463 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12464 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12465 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12466 (stderr_file::write): Update.
12467 (stderr_file::puts): Update.
12468 * ui-file.h (ui_file_isatty, ui_file_write)
12469 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12470 (ui_file_puts): Don't declare.
12472 2020-02-10 Tom de Vries <tdevries@suse.de>
12474 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12475 sentinel to char *.
12477 2020-02-09 Tom de Vries <tdevries@suse.de>
12479 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12480 filename if it matches "<artificial>".
12482 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
12484 * windows-tdep.c (struct enum_value_name): New struct.
12485 (create_enum): New function.
12486 (windows_get_siginfo_type): Create and use enum types.
12488 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
12490 * NEWS: Mention $_siginfo support for Windows.
12491 * windows-nat.c (handle_exception): Set siginfo_er.
12492 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12493 (windows_xfer_siginfo): New function.
12494 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12495 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12496 (init_windows_gdbarch_data): New function.
12497 (get_windows_gdbarch_data): New function.
12498 (windows_get_siginfo_type): New function.
12499 (windows_init_abi): Register windows_get_siginfo_type.
12500 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12502 2020-02-08 Tom Tromey <tom@tromey.com>
12504 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12505 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12506 <keep>: Declare method.
12507 <m_keep>: Remove member.
12508 <~cutu_reader>: Remove.
12509 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12510 (cutu_reader::cutu_reader): Update.
12511 (cutu_reader::keep): Rename from ~cutu_reader.
12512 (process_psymtab_comp_unit, build_type_psymtabs_1)
12513 (process_skeletonless_type_unit, load_partial_comp_unit)
12514 (load_full_comp_unit, dwarf2_read_addr_index)
12515 (read_signatured_type): Update.
12517 2020-02-08 Tom Tromey <tom@tromey.com>
12519 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12520 "want_partial_unit" parameter.
12521 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12522 Inline check for DW_TAG_partial_unit.
12523 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12525 2020-02-08 Tom Tromey <tom@tromey.com>
12527 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12529 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12532 2020-02-08 Tom Tromey <tom@tromey.com>
12534 * dwarf2/read.c (read_address): Move to comp-unit.c.
12535 (dwarf2_rnglists_process, dwarf2_ranges_process)
12536 (read_attribute_value, dwarf_decode_lines_1)
12537 (var_decode_location, decode_locdesc): Update.
12538 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12539 read.c. Remove "cu" parameter.
12540 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12543 2020-02-08 Tom Tromey <tom@tromey.com>
12545 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12546 (read_indirect_line_string): Update.
12547 * dwarf2/comp-unit.c (read_offset): Remove.
12548 (read_comp_unit_head): Update.
12549 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12551 (read_offset): Don't declare.
12553 2020-02-08 Tom Tromey <tom@tromey.com>
12555 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12556 * dwarf2/read.c (struct comp_unit_head): Move to
12557 dwarf2/comp-unit.h.
12558 (enum class rcuh_kind): Move to comp-unit.h.
12559 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12560 (read_comp_unit_head, error_check_comp_unit_head)
12561 (read_and_check_comp_unit_head): Move to comp-unit.c.
12562 (read_offset, dwarf_unit_type_name): Likewise.
12563 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12564 (cutu_reader::cutu_reader, read_call_site_scope)
12565 (find_partial_die, follow_die_offset): Update.
12566 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12568 2020-02-08 Tom Tromey <tom@tromey.com>
12570 * dwarf2/read.c (read_offset_1): Move to leb.c.
12571 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12572 (dwarf_decode_macro_bytes): Update.
12573 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12574 * dwarf2/leb.h (read_offset): Declare.
12576 2020-02-08 Tom Tromey <tom@tromey.com>
12578 * dwarf2/read.c (dwarf2_section_size): Remove.
12579 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12581 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12583 2020-02-08 Tom Tromey <tom@tromey.com>
12585 * dwarf2/read.c (read_initial_length): Move to leb.c.
12586 * dwarf2/leb.h (read_initial_length): Declare.
12587 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12588 handle_nonstd parameter.
12589 * dwarf2/frame.c (read_initial_length): Remove.
12590 (decode_frame_entry_1): Update.
12592 2020-02-08 Tom Tromey <tom@tromey.com>
12594 * dwarf2/loc.c (dwarf2_find_location_expression)
12595 (dwarf_evaluate_loc_desc::get_tls_address)
12596 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12597 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12598 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12599 (dwarf2_compile_property_to_c)
12600 (dwarf2_loc_desc_get_symbol_read_needs)
12601 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12602 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12603 (loclist_describe_location, loclist_tracepoint_var_ref)
12604 (loclist_generate_c_location): Update.
12605 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12606 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12607 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12608 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12609 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12610 (dwarf2_per_cu_data::addr_size)
12611 (dwarf2_per_cu_data::ref_addr_size)
12612 (dwarf2_per_cu_data::text_offset)
12613 (dwarf2_per_cu_data::addr_type): Now methods.
12614 (per_cu_header_read_in): Make per_cu "const".
12615 (dwarf2_version): Remove.
12616 (dwarf2_per_cu_data::int_type): Now a method.
12617 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12618 (set_die_type, read_array_type, read_subrange_index_type)
12619 (read_tag_string_type, read_subrange_type): Update.
12620 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12621 offset_size, ref_addr_size, text_offset, addr_type, version,
12622 objfile, int_type, addr_sized_int_type>: Declare methods.
12624 2020-02-08 Tom Tromey <tom@tromey.com>
12626 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12629 2020-02-08 Tom Tromey <tom@tromey.com>
12631 * dwarf2/read.h (dwarf_line_debug): Declare.
12632 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12633 * dwarf2/read.c: Move line_header code to new files.
12634 (dwarf_line_debug): No longer static.
12635 * dwarf2/line-header.c: New file.
12636 * dwarf2/line-header.h: New file.
12638 2020-02-08 Tom Tromey <tom@tromey.com>
12640 * dwarf2/read.c (struct line_header) <file_full_name,
12641 file_file_name>: Return unique_xmalloc_ptr.
12642 (line_header::file_file_name): Update.
12643 (line_header::file_full_name): Update.
12644 (dw2_get_file_names_reader): Update.
12645 (macro_start_file): Update.
12647 2020-02-08 Tom Tromey <tom@tromey.com>
12649 * dwarf2/read.c (struct line_header) <file_full_name,
12650 file_file_name>: Declare methods.
12651 (dw2_get_file_names_reader): Update.
12652 (file_file_name): Now a method.
12653 (file_full_name): Likewise.
12654 (macro_start_file): Update.
12656 2020-02-08 Tom Tromey <tom@tromey.com>
12658 * dwarf2/read.c (dwarf_always_disassemble)
12659 (show_dwarf_always_disassemble): Move to loc.c.
12660 (_initialize_dwarf2_read): Move "always-disassemble" registration
12662 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
12663 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
12665 (show_dwarf_always_disassemble): Move from read.c.
12666 (_initialize_dwarf2loc): Move always-disassemble from read.c.
12668 2020-02-08 Tom Tromey <tom@tromey.com>
12670 * dwarf2/read.c (~dwarf2_per_objfile): Update.
12671 (create_quick_file_names_table): Return htab_up.
12672 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
12674 * dwarf2/read.h (struct dwarf2_per_objfile)
12675 <quick_file_names_table>: Now htab_up.
12677 2020-02-08 Tom Tromey <tom@tromey.com>
12679 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
12681 2020-02-08 Tom Tromey <tom@tromey.com>
12683 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
12685 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
12686 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
12687 (abbrev_table::abbrev_table): No longer inline.
12688 (ABBREV_HASH_SIZE): Remove.
12689 (abbrev_table::m_abbrevs): Now an htab_up.
12691 2020-02-08 Tom Tromey <tom@tromey.com>
12693 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
12694 (cutu_reader): Update.
12695 (build_type_psymtabs_1): Update.
12696 * dwarf2/abbrev.c (abbrev_table::read): Rename.
12697 (abbrev_table::alloc_abbrev): Update.
12698 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
12699 (abbrev_table::read): New static method, renamed from
12700 abbrev_table_read_table.
12701 (abbrev_table::alloc_abbrev)
12702 (abbrev_table::add_abbrev): Now private.
12703 (abbrev_table::abbrev_table): Now private.
12704 (abbrev_table::m_abbrev_obstack): Now private. Rename.
12706 2020-02-08 Tom Tromey <tom@tromey.com>
12708 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
12709 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
12712 2020-02-08 Tom Tromey <tom@tromey.com>
12714 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
12716 (lookup_dwo_unit_in_dwp): Update.
12717 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
12720 2020-02-08 Tom Tromey <tom@tromey.com>
12722 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
12725 2020-02-08 Tom Tromey <tom@tromey.com>
12727 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
12729 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
12730 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
12731 Change type to htab_up.
12733 2020-02-08 Tom Tromey <tom@tromey.com>
12735 * dwarf2/read.c (allocate_type_unit_groups_table): Return
12736 htab_up. Don't allocate on obstack.
12737 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
12738 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
12739 Change type to htab_up.
12741 2020-02-08 Tom Tromey <tom@tromey.com>
12743 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
12744 Change type to htab_up.
12745 * dwarf2/read.c (create_signatured_type_table_from_index)
12746 (create_signatured_type_table_from_debug_names)
12747 (create_all_type_units, add_type_unit)
12748 (lookup_dwo_signatured_type, lookup_signatured_type)
12749 (process_skeletonless_type_unit): Update.
12750 (create_debug_type_hash_table, create_debug_types_hash_table):
12751 Change type of types_htab.
12752 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
12753 htab_up. Don't allocate on obstack.
12754 (create_cus_hash_table): Change type of cus_htab parameter.
12755 (struct dwo_file) <cus, tus>: Now htab_up.
12756 (lookup_dwo_signatured_type, lookup_dwo_cutu)
12757 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
12758 (queue_and_load_all_dwo_tus): Update.
12759 * dwarf2/index-write.c (write_gdbindex): Update.
12760 (write_debug_names): Update.
12762 2020-02-08 Tom Tromey <tom@tromey.com>
12764 * dwarf2/read.h (struct dwarf2_queue_item): Move from
12765 dwarf2/read.c. Remove "next" member. Add constructor ntad
12767 (struct dwarf2_per_objfile) <queue>: New member.
12768 * dwarf2/read.c (struct dwarf2_queue_item): Move to
12770 (dwarf2_queue, dwarf2_queue_tail): Remove.
12771 (class dwarf2_queue_guard): Add parameter to constructor. Use
12772 DISABLE_COPY_AND_ASSIGN.
12773 <m_per_objfile>: New member.
12774 <~dwarf2_queue_guard>: Rewrite.
12775 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
12777 (~dwarf2_queue_item): New.
12779 2020-02-08 Tom Tromey <tom@tromey.com>
12781 * dwarf2/read.c (struct die_info) <has_children>: New member.
12782 (dw2_get_file_names_reader): Remove has_children.
12783 (dw2_get_file_names): Update.
12784 (read_cutu_die_from_dwo): Remove has_children.
12785 (cutu_reader::init_tu_and_read_dwo_dies)
12786 (cutu_reader::cutu_reader): Update.
12787 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
12788 Remove has_children.
12789 (build_type_psymtabs_1, process_skeletonless_type_unit)
12790 (load_partial_comp_unit, load_full_comp_unit): Update.
12791 (create_dwo_cu_reader): Remove has_children.
12792 (create_cus_hash_table, read_die_and_children): Update.
12793 (read_full_die_1,read_full_die): Remove has_children.
12794 (read_signatured_type): Update.
12795 (class cutu_reader) <has_children>: Remove.
12797 2020-02-08 Tom Tromey <tom@tromey.com>
12799 * dwarf2/expr.c: Rename from dwarf2expr.c.
12800 * dwarf2/expr.h: Rename from dwarf2expr.h.
12801 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
12802 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
12803 * dwarf2/frame.c: Rename from dwarf2-frame.c.
12804 * dwarf2/frame.h: Rename from dwarf2-frame.h.
12805 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
12806 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
12807 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
12808 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
12809 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
12810 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
12811 * dwarf2/loc.c: Rename from dwarf2loc.c.
12812 * dwarf2/loc.h: Rename from dwarf2loc.h.
12813 * dwarf2/read.c: Rename from dwarf2read.c.
12814 * dwarf2/read.h: Rename from dwarf2read.h.
12815 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
12816 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
12817 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
12818 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
12819 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
12820 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
12821 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
12822 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
12823 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
12824 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
12825 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
12826 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
12827 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
12829 * Makefile.in (COMMON_SFILES): Update.
12830 (HFILES_NO_SRCDIR): Update.
12832 2020-02-08 Tom Tromey <tom@tromey.com>
12834 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
12835 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
12837 2020-02-08 Tom Tromey <tom@tromey.com>
12839 * dwarf2read.h (struct die_info): Don't declare.
12841 2020-02-08 Tom Tromey <tom@tromey.com>
12843 * dwarf2read.h (die_info_ptr): Remove typedef.
12845 2020-02-08 Tom Tromey <tom@tromey.com>
12847 * dwarf2read.c (read_call_site_scope)
12848 (handle_data_member_location, dwarf2_add_member_fn)
12849 (mark_common_block_symbol_computed, read_common_block)
12850 (attr_to_dynamic_prop, partial_die_info::read)
12851 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
12852 (dwarf2_symbol_mark_computed, set_die_type): Update.
12853 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
12855 (attr_form_is_block): Don't declare.
12856 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
12858 2020-02-08 Tom Tromey <tom@tromey.com>
12860 * dwarf2read.c (dwarf2_find_base_address, )
12861 (read_call_site_scope, rust_containing_type)
12862 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
12863 (handle_data_member_location, dwarf2_add_member_fn)
12864 (get_alignment, read_structure_type, process_structure_scope)
12865 (mark_common_block_symbol_computed, read_common_block)
12866 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
12867 (partial_die_info::read, read_attribute_value, new_symbol)
12868 (lookup_die_type, dwarf2_get_ref_die_offset)
12869 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
12870 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
12871 (dwarf2_symbol_mark_computed): Update.
12872 * dwarf2/attribute.h (struct attribute) <value_as_address,
12873 form_is_section_offset, form_is_constant, form_is_ref>: Declare
12875 (value_as_address, attr_form_is_section_offset)
12876 (attr_form_is_constant, attr_form_is_ref): Don't declare.
12877 * dwarf2/attribute.c (attribute::value_as_address)
12878 (attribute::form_is_section_offset, attribute::form_is_constant)
12879 (attribute::form_is_ref): Now methods.
12881 2020-02-08 Tom Tromey <tom@tromey.com>
12883 * dwarf2read.c (struct attribute, DW_STRING)
12884 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
12885 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
12886 (attr_form_is_block, attr_form_is_section_offset)
12887 (attr_form_is_constant, attr_form_is_ref): Move.
12888 * dwarf2/attribute.h: New file.
12889 * dwarf2/attribute.c: New file, from dwarf2read.c.
12890 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
12892 2020-02-08 Tom Tromey <tom@tromey.com>
12894 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
12895 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
12897 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
12898 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
12899 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
12901 * dwarf2/abbrev.h: New file.
12902 * dwarf2/abbrev.c: New file, from dwarf2read.c.
12903 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
12905 2020-02-08 Tom Tromey <tom@tromey.com>
12907 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
12908 (dwarf2_section_size, dwarf2_get_section_info)
12909 (create_signatured_type_table_from_debug_names)
12910 (create_addrmap_from_aranges, read_debug_names_from_section)
12911 (get_gdb_index_contents_from_section, read_comp_unit_head)
12912 (error_check_comp_unit_head, read_abbrev_offset)
12913 (create_debug_type_hash_table, init_cu_die_reader)
12914 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
12915 (read_comp_units_from_section, create_cus_hash_table)
12916 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
12917 (create_dwp_v2_section, dwarf2_rnglists_process)
12918 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
12919 (abbrev_table_read_table, read_indirect_string_at_offset_from)
12920 (read_indirect_string_from_dwz, read_addr_index_1)
12921 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
12922 (dwarf_decode_macro_bytes, dwarf_decode_macros)
12923 (fill_in_loclist_baton): Update.
12924 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
12925 get_containing_section, get_bfd_owner, get_bfd_section,
12926 get_file_name, get_id, get_flags, empty, read>: Declare methods.
12927 (dwarf2_read_section, get_section_name, get_section_file_name)
12928 (get_containing_section, get_section_bfd_owner)
12929 (get_section_bfd_section, get_section_name, get_section_file_name)
12930 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
12932 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
12933 (dwarf2_section_info::get_bfd_owner)
12934 (dwarf2_section_info::get_bfd_section)
12935 (dwarf2_section_info::get_name)
12936 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
12937 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
12938 (dwarf2_section_info::read): Now methods.
12939 * dwarf-index-write.c (class debug_names): Update.
12941 2020-02-08 Tom Tromey <tom@tromey.com>
12943 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
12944 Move to dwarf2/section.h.
12945 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
12946 (get_section_bfd_section, get_section_name)
12947 (get_section_file_name, get_section_id, get_section_flags)
12948 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
12950 * dwarf2/section.h: New file.
12951 * dwarf2/section.c: New file, from dwarf2read.c.
12952 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12954 2020-02-08 Tom Tromey <tom@tromey.com>
12956 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12957 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12958 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12959 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12960 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12961 * dwarf2/leb.h: New file, from dwarf2read.c.
12962 * dwarf2/leb.c: New file, from dwarf2read.c.
12963 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12965 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12966 (COMMON_SFILES): Add dwarf2/leb.c.
12968 2020-02-08 Joel Brobecker <brobecker@adacore.com>
12972 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12975 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12976 * gdb/remote.c (remote_console_output): Update.
12977 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12978 (ui_file_puts): ...this.
12979 * gdb/ui-file.h (ui_file_puts): Add declaration.
12980 * gdb/utils.c (emit_style_escape): Update.
12981 (flush_wrap_buffer): Update.
12982 (fputs_maybe_filtered): Update.
12983 (fputs_unfiltered): Add function.
12985 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12987 * gdb/event-loop.c (gdb_wait_for_event): Update.
12988 * gdb/printcmd.c (printf_command): Update.
12989 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12990 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12991 (gdb_os_flush_stderr): Update.
12992 * gdb/remote.c (remote_console_output): Update.
12993 * gdb/ui-file.c (gdb_flush): Rename to...
12994 (ui_file_flush): ...this.
12995 (stderr_file::write): Update.
12996 (stderr_file::puts): Update.
12997 * gdb/ui-file.h (gdb_flush): Rename to...
12998 (ui_file_flush): ...this.
12999 * gdb/utils.c (gdb_flush): Add function.
13000 * gdb/utils.h (gdb_flush): Add declaration.
13002 2020-02-07 Tom Tromey <tromey@adacore.com>
13004 PR breakpoints/24915:
13005 * source.c (find_and_open_source): Do not check basenames_may_differ.
13007 2020-02-07 Tom Tromey <tom@tromey.com>
13009 * README: Update gdbserver documentation.
13010 * gdbserver: Move to top level.
13011 * configure.tgt (build_gdbserver): Remove.
13012 * configure.ac: Remove --enable-gdbserver.
13013 * configure: Rebuild.
13014 * Makefile.in (distclean): Don't mention gdbserver.
13016 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13018 * source-cache.c (source_cache::ensure): Surround
13019 get_plain_source_lines with a try/catch.
13020 (source_cache::get_line_charpos): Get rid of try/catch
13021 and only check for the return value of "ensure".
13022 * tui/tui-source.c (tui_source_window::set_contents):
13023 Simplify "nlines" calculation.
13025 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13027 * MAINTAINERS (Write After Approval): Add myself.
13029 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13031 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13034 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13036 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13038 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
13040 * nat/riscv-linux-tdesc.h: New file.
13041 * nat/riscv-linux-tdesc.c: New file, taking code from...
13042 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13044 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13047 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13049 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13050 we don't set the fake simulator ptid to the null_ptid.
13052 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
13054 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13055 * gdbthread.h (class thread_info) <resumed>: Likewise.
13056 * infrun.c (resume_1): Likewise.
13057 (proceed): Likewise.
13058 (infrun_thread_stop_requested): Likewise.
13059 (stop_all_threads): Likewise.
13060 (handle_inferior_event): Likewise.
13061 (restart_threads): Likewise.
13062 (finish_step_over): Likewise.
13063 (keep_going_stepped_thread): Likewise.
13064 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13065 (linux_handle_extended_wait): Likewise.
13066 * record-btrace.c (get_thread_current_frame_id): Likewise.
13067 * record-full.c (record_full_wait_1): Likewise.
13068 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13069 * target.c (target_resume): Likewise.
13070 * thread.c (set_running_thread): Likewise.
13072 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13074 * f-valprint.c (f77_print_array_1): Changed datatype of index
13075 variable to LONGEST from int to enable it to contain bound
13078 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
13080 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13081 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13082 offsets according to FLEN determined.
13083 (riscv_linux_nat_target::read_description): Determine FLEN
13085 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13086 according to FLEN determined.
13087 (riscv_linux_nat_target::store_registers): Likewise.
13089 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13091 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13092 when reg->group is empty and reggroup is not.
13094 2020-01-31 Tom Tromey <tromey@adacore.com>
13096 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13097 Call beneath target's mourn_inferior after unpushing.
13099 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13102 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13103 have enough lines to fill the screen, still return the lowest
13106 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13108 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13109 '-', '<', and '>' commands.
13111 2020-01-29 Pedro Alves <palves@redhat.com>
13112 Sergio Durigan Junior <sergiodj@redhat.com>
13114 * infcmd.c (construct_inferior_arguments): Assert that
13115 'argc' is greater than 0.
13117 2020-01-29 Luis Machado <luis.machado@linaro.org>
13119 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13120 (BRK_INSN_MASK): Define to 0xd4200000.
13121 (aarch64_program_breakpoint_here_p): New function.
13122 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13123 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13125 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13127 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13128 call gdbarch_program_breakpoint_here_p.
13129 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13130 default_program_breakpoint_here_p, changed return type to bool and
13132 * breakpoint.h (program_breakpoint_here): Moved prototype to
13133 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13134 return type to bool.
13135 * gdbarch.c: Regenerate.
13136 * gdbarch.h: Regenerate.
13137 * gdbarch.sh (program_breakpoint_here_p): New method.
13138 * infrun.c (handle_signal_stop): Call
13139 gdbarch_program_breakpoint_here_p.
13141 2020-01-26 Tom Tromey <tom@tromey.com>
13143 * ctfread.c (struct ctf_fp_info): Reindent.
13144 (_initialize_ctfread): Remove.
13146 2020-01-26 Tom Tromey <tom@tromey.com>
13148 * psymtab.c (partial_map_expand_apply)
13149 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13150 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13151 (psym_print_stats, psym_expand_symtabs_for_function)
13152 (psym_map_symbol_filenames, psym_map_matching_symbols)
13153 (psym_expand_symtabs_matching)
13154 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13155 (maintenance_check_psymtabs): Use new methods.
13156 * psympriv.h (struct partial_symtab) <readin_p,
13157 get_compunit_symtab>: New methods.
13158 <readin, compunit_symtab>: Remove members.
13159 (struct standard_psymtab): New.
13160 (struct legacy_psymtab): Derive from standard_psymtab.
13161 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13163 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13165 2020-01-26 Tom Tromey <tom@tromey.com>
13167 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13168 read_dependencies. Add assert.
13169 * psymtab.c (partial_symtab::read_dependencies): New method.
13170 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13172 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13173 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13175 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13178 2020-01-26 Tom Tromey <tom@tromey.com>
13180 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13181 Call expand_psymtab.
13182 (xcoff_read_symtab): Call expand_psymtab.
13183 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13184 legacy_expand_psymtab.
13185 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13187 (struct legacy_psymtab) <expand_psymtab>: Implement.
13188 <legacy_expand_psymtab>: New member.
13189 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13190 (parse_partial_symbols): Set legacy_expand_psymtab.
13191 (psymtab_to_symtab_1): Change argument order. Call
13193 (new_psymtab): Set legacy_expand_psymtab.
13194 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13195 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13197 (dwarf2_psymtab::expand_psymtab): Rename from
13198 psymtab_to_symtab_1. Call expand_psymtab.
13199 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13200 (dbx_end_psymtab): Likewise.
13201 (dbx_psymtab_to_symtab_1): Change argument order. Call
13203 (dbx_read_symtab): Call expand_psymtab.
13204 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13205 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13206 (ctf_psymtab::read_symtab): Call expand_psymtab.
13208 2020-01-26 Tom Tromey <tom@tromey.com>
13210 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13211 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13213 * mdebugread.c (mdebug_read_symtab): Remove prints.
13214 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13216 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13218 2020-01-26 Tom Tromey <tom@tromey.com>
13220 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13221 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13222 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13224 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13225 * psymtab.c (psymtab_to_symtab): Call method.
13226 (dump_psymtab): Update.
13227 * psympriv.h (struct partial_symtab): Add virtual destructor.
13228 <read_symtab>: New method.
13229 (struct legacy_symtab): New.
13230 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13231 (struct pst_map) <pst>: Now a legacy_psymtab.
13232 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13233 (new_psymtab): Use legacy_psymtab.
13234 * dwarf2read.h (struct dwarf2_psymtab): New.
13235 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13236 * dwarf2read.c (dwarf2_create_include_psymtab)
13237 (dwarf2_build_include_psymtabs, create_type_unit_group)
13238 (create_partial_symtab, process_psymtab_comp_unit_reader)
13239 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13240 (set_partial_user): Use dwarf2_psymtab.
13241 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13242 (psymtab_to_symtab_1, process_full_comp_unit)
13243 (process_full_type_unit, dwarf2_ranges_read)
13244 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13245 (dwarf_decode_lines): Use dwarf2_psymtab.
13246 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13247 (add_address_entry_worker, write_one_signatured_type)
13248 (recursively_count_psymbols, recursively_write_psymbols)
13249 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13250 (write_debug_names): Likewise.
13251 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13252 <pst>: Now a legacy_psymtab.
13253 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13254 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13255 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13256 * ctfread.c (struct ctf_psymtab): New.
13257 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13259 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13260 (create_partial_symtab): Return a ctf_psymtab.
13261 (scan_partial_symbols): Update.
13263 2020-01-26 Tom Tromey <tom@tromey.com>
13265 * xcoffread.c (xcoff_start_psymtab): Use new.
13266 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13267 renamed from start_psymtab_common.
13268 * psympriv.h (struct partial_symtab): Add new constructor.
13269 (start_psymtab_common): Don't declare.
13270 * mdebugread.c (parse_partial_symbols): Use new.
13271 * dwarf2read.c (create_partial_symtab): Use new.
13272 * dbxread.c (start_psymtab): Use new.
13273 * ctfread.c (create_partial_symtab): Use new.
13275 2020-01-26 Tom Tromey <tom@tromey.com>
13277 * xcoffread.c (xcoff_end_psymtab): Use new.
13278 * psymtab.c (start_psymtab_common): Use new.
13279 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13281 * psympriv.h (struct partial_symtab): Add parameters to
13282 constructor. Don't inline.
13283 (allocate_psymtab): Don't declare.
13284 * mdebugread.c (new_psymtab): Use new.
13285 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13286 * dbxread.c (dbx_end_psymtab): Use new.
13288 2020-01-26 Tom Tromey <tom@tromey.com>
13290 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13291 allocate_psymtab. Update documentation.
13292 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13293 allocate_psymtab. Do not use new.
13294 (allocate_psymtab): Use new. Update.
13296 2020-01-26 Tom Tromey <tom@tromey.com>
13298 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13299 * psymtab.c (psym_print_stats): Update.
13300 * psympriv.h (struct partial_symtab) <readin,
13301 psymtabs_addrmap_supported, anonymous>: Now bool.
13302 * mdebugread.c (psymtab_to_symtab_1): Update.
13303 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13304 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13305 (process_full_comp_unit, process_full_type_unit): Update.
13306 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13307 * ctfread.c (psymtab_to_symtab): Update.
13309 2020-01-26 Tom Tromey <tom@tromey.com>
13311 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13312 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13313 * psymtab.c (psymtab_storage): Delete psymtabs.
13314 (psymtab_storage::allocate_psymtab): Use new.
13315 (psymtab_storage::discard_psymtab): Use delete.
13316 * psympriv.h (struct partial_symtab): Add constructor and
13319 2020-01-26 Tom Tromey <tom@tromey.com>
13321 * machoread.c: Do not include psympriv.h.
13323 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13325 * NEWS: Mention the new option and the set/show commands.
13327 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13329 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13330 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13331 (validate_exec_file): New variables, enums, functions.
13332 (exec_file_locate_attach, print_section_info): Style the filenames.
13333 (_initialize_exec): Install show_exec_file_mismatch_command and
13334 set_exec_file_mismatch_command.
13335 * gdbcore.h (validate_exec_file): Declare.
13336 * infcmd.c (attach_command): Call validate_exec_file.
13337 * remote.c ( remote_target::remote_add_inferior): Likewise.
13339 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13341 * frame.c (find_frame_sal): Move call to get_next_frame into more
13343 * inline-frame.c (inilne_state) <inline_state>: Update argument
13345 (inilne_state) <skipped_symbol>: Rename to...
13346 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13347 (skip_inline_frames): Build vector of skipped symbols and use this
13348 to reate the inline_state.
13349 (inline_skipped_symbol): Add a comment and some assertions, fetch
13350 skipped symbol from the list.
13352 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13354 * buildsym.c (lte_is_less_than): Delete.
13355 (buildsym_compunit::end_symtab_with_blockvector): Create local
13356 lambda function to sort line table entries, and use
13357 std::stable_sort instead of std::sort.
13358 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13359 markers when looking for a previous line.
13361 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13363 * dwarf2read.c (lnp_state_machine::record_line): Include
13364 end_sequence parameter in debug print out. Record the line if we
13365 are at an end_sequence marker even if it's not the start of a
13367 * symmisc.c (maintenance_print_one_line_table): Print end of
13368 sequence markers with 'END' not '0'.
13370 2020-01-24 Pedro Alves <palves@redhat.com>
13373 * thread.c (scoped_restore_current_thread::restore): Use
13374 switch_to_inferior_no_thread.
13375 * exec.c: Include "progspace-and-thread.h".
13376 (add_target_sections, remove_target_sections):
13377 scoped_restore_current_pspace_and_thread instead of
13378 scoped_restore_current_thread.
13379 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13380 and aspace to the inferior before calling clone_program_space.
13381 Remove stale comment.
13383 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13385 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13386 (arm_netbsd_nat_target::fetch_registers): ...this.
13387 (arm_nbsd_nat_target::store_registers): Rename to...
13388 (arm_netbsd_nat_target::store_registers): ...this.
13390 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13392 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13395 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13397 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13399 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13401 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13402 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13403 the correct replacement (iterate_over_regset_sections).
13404 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13407 2020-01-24 Graham Markall <graham.markall@embecosm.com>
13410 * gdb/python/python.c (execute_gdb_command): Call
13411 async_enable_stdin in catch block.
13413 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13415 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13416 SWITCH_THRU_ALL_UIS.
13418 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13421 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13422 comment, add extra parameter, and update to store previous symbol
13424 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13425 add extra parameter.
13426 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13427 remove unneeded parameter, add try/catch around gdb_print_insn,
13428 rewrite to add items to asm_lines vector.
13429 (tui_find_backward_disassembly_start_address): New function.
13430 (tui_find_disassembly_address): Updated throughout.
13431 (tui_disasm_window::set_contents): Update for changes to
13433 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13434 number of lines to scroll.
13436 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13438 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13439 (SECT_OFF_DATA): Likewise.
13440 (SECT_OFF_RODATA): Likewise.
13441 (SECT_OFF_TEXT): Likewise.
13442 (SECT_OFF_BSS): Likewise.
13443 (struct objfile) <text_section_offset, data_section_offset>: New
13445 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13446 objfile::text_section_offset.
13447 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13448 * coffread.c (coff_symtab_read): Likewise.
13449 (enter_linenos): Likewise.
13450 (process_coff_symbol): Likewise.
13451 * ctfread.c (get_objfile_text_range): Likewise.
13452 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13453 Use objfile::data_section_offset.
13454 * dwarf2-frame.c (execute_cfa_program): Use
13455 objfile::text_section_offset.
13456 (dwarf2_frame_find_fde): Likewise.
13457 * dwarf2read.c (create_addrmap_from_index): Likewise.
13458 (create_addrmap_from_aranges): Likewise.
13459 (dw2_find_pc_sect_compunit_symtab): Likewise.
13460 (process_psymtab_comp_unit_reader): Likewise.
13461 (add_partial_symbol): Likewise.
13462 (add_partial_subprogram): Likewise.
13463 (process_full_comp_unit): Likewise.
13464 (read_file_scope): Likewise.
13465 (read_func_scope): Likewise.
13466 (read_lexical_block_scope): Likewise.
13467 (read_call_site_scope): Likewise.
13468 (dwarf2_rnglists_process): Likewise.
13469 (dwarf2_ranges_process): Likewise.
13470 (dwarf2_ranges_read): Likewise.
13471 (dwarf_decode_lines_1): Likewise.
13472 (new_symbol): Likewise.
13473 (dwarf2_fetch_die_loc_sect_off): Likewise.
13474 (dwarf2_per_cu_text_offset): Likewise.
13475 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13476 * hppa-tdep.c (read_unwind_info): Likewise.
13477 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13478 * psympriv.h (struct partial_symtab): Likewise.
13479 * psymtab.c (find_pc_sect_psymtab): Likewise.
13480 * solib-svr4.c (enable_break): Likewise.
13481 * stap-probe.c (relocate_address): Use
13482 objfile::data_section_offset.
13483 * xcoffread.c (enter_line_range): Use
13484 objfile::text_section_offset.
13485 (read_xcoff_symtab): Likewise.
13487 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
13489 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13490 declaration to narrower scopes.
13492 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
13494 * darwin-nat.h (struct darwin_exception_msg, enum
13495 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13497 (class darwin_nat_target) <wait_1, check_new_threads,
13498 decode_exception_message, decode_message, stop_inferior,
13499 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13500 * darwin-nat.c (darwin_check_new_threads): Rename to...
13501 (darwin_nat_target::check_new_threads): ... this.
13502 (darwin_suspend_inferior_it): Remove.
13503 (darwin_decode_exception_message): Rename to...
13504 (darwin_nat_target::decode_exception_message): ... this.
13505 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13506 (darwin_decode_message): Rename to...
13507 (darwin_nat_target::decode_message): ... this.
13508 (cancel_breakpoint): Rename to...
13509 (darwin_nat_target::cancel_breakpoint): ... this.
13510 (darwin_wait): Rename to...
13511 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13512 instead of iterate_over_inferiors.
13513 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13514 (darwin_stop_inferior): Rename to...
13515 (darwin_nat_target::stop_inferior): ... this.
13516 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13517 (darwin_init_thread_list): Rename to...
13518 (darwin_nat_target::init_thread_list): ... this.
13519 (darwin_ptrace_him): Rename to...
13520 (darwin_nat_target::ptrace_him): ... this.
13521 (darwin_nat_target::create_inferior): Pass lambda function to
13523 (darwin_nat_target::detach): Call stop_inferior instead of
13524 darwin_stop_inferior.
13525 * fork-inferior.h (fork_inferior): Change init_trace_fun
13526 parameter to gdb::function_view.
13527 * fork-inferior.c (fork_inferior): Likewise.
13529 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
13531 * i386-cygwin-tdep.c (core_process_module_section): Update.
13532 * windows-nat.c (struct lm_info_windows): Add text_offset.
13533 (windows_xfer_shared_libraries): Update.
13534 * windows-tdep.c (windows_xfer_shared_library):
13535 Add text_offset_cached argument.
13536 * windows-tdep.h (windows_xfer_shared_library): Update.
13538 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13540 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13542 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13544 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13545 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13546 replace with range-based for.
13547 (gdbsim_interrupt_inferior): Remove.
13548 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13549 with a range-based for. Inline code from
13550 gdbsim_interrupt_inferior.
13552 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13554 * infrun.c (proceed): Fix indentation.
13556 2020-01-21 Tom Tromey <tromey@adacore.com>
13558 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13559 * python/python.c (python_extension_ops): Update.
13560 (gdbpy_colorize): New function.
13561 * python/lib/gdb/__init__.py (colorize): New function.
13562 * extension.h (ext_lang_colorize): Declare.
13563 * extension.c (ext_lang_colorize): New function.
13564 * extension-priv.h (struct extension_language_ops) <colorize>: New
13566 * cli/cli-style.c (_initialize_cli_style): Update help text.
13568 2020-01-21 Luis Machado <luis.machado@linaro.org>
13570 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13571 <cond>: Change type to bool.
13572 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13573 (aarch64_displaced_step_cb): Likewise.
13574 (aarch64_displaced_step_tb): Likewise.
13576 2020-01-21 Luis Machado <luis.machado@linaro.org>
13578 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13581 2020-01-21 Luis Machado <luis.machado@linaro.org>
13583 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13584 <pc_adjust>: Adjust the documentation.
13585 (aarch64_displaced_step_fixup): Check if PC really moved before
13588 2020-01-19 Tom Tromey <tom@tromey.com>
13590 * disasm.c (~gdb_disassembler): New destructor.
13591 (gdb_buffered_insn_length): Call disassemble_free_target.
13592 * disasm.h (class gdb_disassembler): Declare destructor. Use
13593 DISABLE_COPY_AND_ASSIGN.
13595 2020-01-19 Tom Tromey <tom@tromey.com>
13597 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13598 (die_reader_func_ftype): Remove.
13599 (cutu_reader): New class.
13600 (dw2_get_file_names_reader): Remove "data" parameter.
13601 (dw2_get_file_names): Use cutu_reader.
13602 (create_debug_type_hash_table): Update.
13603 (read_cutu_die_from_dwo): Update comment.
13604 (lookup_dwo_unit): Add dwo_name parameter.
13605 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13606 die_reader_func_ftype and data parameters.
13607 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13608 Remove die_reader_func_ftype and data parameters.
13609 (~cutu_reader): New; from init_cutu_and_read_dies.
13610 (cutu_reader::cutu_reader): Rename from
13611 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13612 and data parameters.
13613 (init_cutu_and_read_dies_simple): Remove.
13614 (struct process_psymtab_comp_unit_data): Remove.
13615 (process_psymtab_comp_unit_reader): Remove data parameter; add
13616 want_partial_unit and pretend_language parameters.
13617 (process_psymtab_comp_unit): Use cutu_reader.
13618 (build_type_psymtabs_reader): Remove data parameter.
13619 (build_type_psymtabs_1): Use cutu_reader.
13620 (process_skeletonless_type_unit): Likewise.
13621 (load_partial_comp_unit_reader): Remove.
13622 (load_partial_comp_unit): Use cutu_reader.
13623 (load_full_comp_unit_reader): Remove.
13624 (load_full_comp_unit): Use cutu_reader.
13625 (struct create_dwo_cu_data): Remove.
13626 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13627 dwo_unit parameters.
13628 (create_cus_hash_table): Use cutu_reader.
13629 (struct dwarf2_read_addr_index_data): Remove.
13630 (dwarf2_read_addr_index_reader): Remove.
13631 (dwarf2_read_addr_index): Use cutu_reader.
13632 (read_signatured_type_reader): Remove.
13633 (read_signatured_type): Use cutu_reader.
13635 2020-01-19 Tom Tromey <tom@tromey.com>
13637 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13638 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13639 (tui_wrefresh): Declare.
13640 * tui/tui-wingeneral.c (suppress_output): New global.
13641 (tui_suppress_output, ~tui_suppress_output): New constructor and
13643 (tui_wrefresh): New function.
13644 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13645 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13646 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13648 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13650 (tui_data_window::no_refresh): New method.
13651 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13652 (tui_reg_command): Use tui_suppress_output
13653 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13654 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13656 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13658 2020-01-19 Tom Tromey <tom@tromey.com>
13660 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13661 Handle case where symtab is null.
13663 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
13665 * linux-fork.c (one_fork_p): Simplify.
13667 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13669 * top.c (struct qt_args): Remove.
13670 (kill_or_detach): Change return type to void, replace `void *`
13671 parameter with a proper one.
13672 (print_inferior_quit_action): Likewise.
13673 (quit_confirm): Use range-based for loop to iterate over inferiors.
13674 (quit_force): Likewise.
13676 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13678 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
13679 `void *` parameter with proper parameters.
13680 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
13681 (print_one_inferior): Change return type to void, replace `void *`
13682 parameter with proper parameters.
13683 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
13685 (get_other_inferior): Remove.
13686 (mi_cmd_remove_inferior): Use range-based loop to iterate over
13689 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13691 * mi/mi-interp.c (report_initial_inferior): Remove.
13692 (mi_interp::init): Use range-based for to iterate over inferiors.
13694 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
13696 * python/py-inferior.c (build_inferior_list): Remove.
13697 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
13699 2020-01-16 Christian Biesinger <cbiesinger@google.com>
13701 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
13702 (btrace_stitch_trace): Likewise.
13703 * charset.c (intermediate_encoding): Likewise (vaild).
13704 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
13705 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
13706 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
13708 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
13710 * windows-tdep.c (windows_get_tlb_type):
13711 Add rtl_user_process_parameters type.
13713 2020-01-16 Pedro Alves <palves@redhat.com>
13714 Norbert Lange <nolange79@gmail.com>
13717 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
13718 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
13719 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
13720 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
13721 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
13722 (ps_plog): Redeclare exported functions with default visibility.
13724 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
13726 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
13727 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
13729 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
13731 * infcmd.c (post_create_inferior): Use get_thread_regcache
13732 instead of get_current_regcache.
13734 2020-01-14 Tom Tromey <tom@tromey.com>
13737 * python/python.c (gdbpy_decode_line): Treat empty string the same
13740 2020-01-14 Tom Tromey <tom@tromey.com>
13742 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
13744 2020-01-14 Tom Tromey <tom@tromey.com>
13746 * nat/linux-btrace.c: Don't include <config.h>.
13747 * nat/linux-ptrace.c: Don't include <config.h>.
13748 * nat/x86-linux-dregs.c: Don't include <config.h>.
13750 2020-01-14 Tom Tromey <tom@tromey.com>
13752 * configure: Rebuild.
13753 * configure.ac: Move many checks to ../gdbsupport/common.m4.
13755 2020-01-14 Tom Tromey <tom@tromey.com>
13757 * nat/x86-linux-dregs.c: Include configh.h.
13758 * nat/linux-ptrace.c: Include configh.h.
13759 * nat/linux-btrace.c: Include configh.h.
13760 * defs.h: Include config.h, bfd.h.
13761 * configure.ac: Don't source common.host.
13762 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
13763 * configure: Rebuild.
13764 * acinclude.m4: Update path.
13765 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
13766 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
13767 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
13768 (CLIBS): Add LIBSUPPORT.
13770 (COMMON_SFILES): Remove gdbsupport files.
13771 (HFILES_NO_SRCDIR): Likewise.
13772 (stamp-version): Update path to create-version.sh.
13773 (ALLDEPFILES): Remove gdbsupport files.
13775 2020-01-14 Tom Tromey <tom@tromey.com>
13777 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
13778 USE_WIN32API when needed.
13779 * configure.ac (USE_WIN32API): Don't define.
13780 (WIN32LIBS): Use WIN32APILIBS.
13781 * configure: Rebuild.
13783 2020-01-14 Tom Tromey <tom@tromey.com>
13785 * configure: Rebuild.
13786 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
13788 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13790 * skip.c (skip_function_command): Make skip w/o arguments use the
13791 name of the inlined function if pc is inside any inlined function.
13793 2020-01-14 Luis Machado <luis.machado@linaro.org>
13795 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
13796 * infrun.c (resume_1): Likewise.
13797 (handle_inferior_event): Remove stale comment.
13798 * linux-nat.c (linux_nat_target::resume): Update comments.
13799 (save_stop_reason): Likewise.
13800 (linux_nat_filter_event): Likewise.
13801 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
13803 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13805 * elfread.c (record_minimal_symbol): Set section index to 0 for
13806 non-allocatable sections.
13809 2020-01-13 Ali Tamur <tamur@google.com>
13811 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
13812 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
13813 to gdb::optional. Update comments.
13814 (dwo_file): Update comments.
13815 (read_attribute): Update API to take an additional out parameter,
13816 need_reprocess. This is used to mark attributes that need other
13817 attributes (e.g. str_offsets_base) for correct computation which may not
13818 have been read yet.
13819 (read_attribute_reprocess): New function declaration.
13820 (read_addr_index): Likewise.
13821 (read_dwo_str_index): Likewise.
13822 (read_stub_str_index): Likewise.
13823 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
13824 (lookup_addr_base): New function definition.
13825 (lookup_ranges_base): Likewise.
13826 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
13827 lookup_ranges_base.
13828 (init_cutu_and_read_dies): Update comments.
13829 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
13830 unit. This is used to inherit parent's str_offsets_base and addr_base.
13832 (init_cutu_and_read_dies_simple): Reflect API changes.
13833 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
13834 (create_cus_hash_table): Change API to take parent compile unit.
13835 Reflect API changes.
13836 (open_and_init_dwo_file): Reflect API changes.
13837 (dwarf2_get_pc_bounds): Update comments.
13838 (dwarf2_record_block_ranges): Likewise.
13839 (read_full_die_1): Change implementation to reprocess attributes that
13840 need str_offsets_base and addr_base.
13841 (partial_die_info::read): Likewise.
13842 (read_attribute_reprocess): New function definition.
13843 (read_attribute_value): Change API to take an additional out parameter,
13844 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
13845 when a non-dwo compile unit has index based attributes.
13846 (read_attribute): Reflect API changes.
13847 (read_addr_index_1): Reflect API changes. Update comments.
13848 (dwarf2_read_addr_index_data): Reflect API changes.
13849 (dwarf2_read_addr_index): Likewise.
13850 (read_str_index): Change API and implementation. This becomes a helper
13851 to be used by the new string index related methods. Update error
13852 message and comments.
13853 (read_dwo_str_index): New function definition.
13854 (read_stub_str_index): Likewise.
13855 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
13856 * symfile.h (dwarf2_debug_sections): Likewise.
13857 * xcoffread.c (dwarf2_debug_sections): Likewise.
13859 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13861 * gdbcore.h (struct core_fns) <core_read_registers>: Change
13862 core_reg_sect type to gdb_byte *.
13863 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
13864 * cris-tdep.c (fetch_core_registers): Likewise.
13865 * corelow.c (core_target::get_core_register_section): Change
13866 type of `contents` to gdb::byte_vector.
13868 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
13870 * tui/tui-wingeneral.c (box_win): Position the title in the center
13873 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13875 * corelow.c (core_target::get_core_register_section): Use
13876 std::vector instead of alloca.
13878 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13880 * warning.m4: Add -Wmissing-declarations to build_warnings.
13881 * configure: Re-generate.
13883 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13885 * python/python.c (init__gdb_module): Add declaration.
13887 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
13889 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
13890 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
13891 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
13892 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
13893 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
13894 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
13895 * ada-exp.y (_initialize_ada_exp): Add declaration.
13896 * ada-lang.c (_initialize_ada_language): Add declaration.
13897 * ada-tasks.c (_initialize_tasks): Add declaration.
13898 * agent.c (_initialize_agent): Add declaration.
13899 * aix-thread.c (_initialize_aix_thread): Add declaration.
13900 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
13901 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
13902 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
13903 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
13904 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
13905 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
13906 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
13907 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
13908 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
13909 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
13910 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
13911 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
13912 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
13913 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
13914 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
13915 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
13916 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
13917 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
13918 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
13919 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
13920 * annotate.c (_initialize_annotate): Add declaration.
13921 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
13922 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
13923 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
13924 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
13925 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
13926 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
13927 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
13928 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
13929 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
13930 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
13931 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
13932 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
13933 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
13934 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
13935 * auto-load.c (_initialize_auto_load): Add declaration.
13936 * auxv.c (_initialize_auxv): Add declaration.
13937 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
13938 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
13939 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
13940 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
13941 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
13942 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
13943 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
13944 * breakpoint.c (_initialize_breakpoint): Add declaration.
13945 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
13946 * btrace.c (_initialize_btrace): Add declaration.
13947 * charset.c (_initialize_charset): Add declaration.
13948 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
13949 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
13950 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
13951 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
13952 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13953 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13954 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13955 * coffread.c (_initialize_coffread): Add declaration.
13956 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13957 * compile/compile.c (_initialize_compile): Add declaration.
13958 * complaints.c (_initialize_complaints): Add declaration.
13959 * completer.c (_initialize_completer): Add declaration.
13960 * copying.c (_initialize_copying): Add declaration.
13961 * corefile.c (_initialize_core): Add declaration.
13962 * corelow.c (_initialize_corelow): Add declaration.
13963 * cp-abi.c (_initialize_cp_abi): Add declaration.
13964 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13965 * cp-support.c (_initialize_cp_support): Add declaration.
13966 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13967 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13968 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13969 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13970 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13971 * ctfread.c (_initialize_ctfread): Add declaration.
13972 * d-lang.c (_initialize_d_language): Add declaration.
13973 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13974 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13975 * dbxread.c (_initialize_dbxread): Add declaration.
13976 * dcache.c (_initialize_dcache): Add declaration.
13977 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13978 * disasm.c (_initialize_disasm): Add declaration.
13979 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13980 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13981 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13982 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13983 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13984 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13985 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13986 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13987 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13988 * elfread.c (_initialize_elfread): Add declaration.
13989 * exec.c (_initialize_exec): Add declaration.
13990 * extension.c (_initialize_extension): Add declaration.
13991 * f-lang.c (_initialize_f_language): Add declaration.
13992 * f-valprint.c (_initialize_f_valprint): Add declaration.
13993 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13994 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13995 * filesystem.c (_initialize_filesystem): Add declaration.
13996 * findcmd.c (_initialize_mem_search): Add declaration.
13997 * findvar.c (_initialize_findvar): Add declaration.
13998 * fork-child.c (_initialize_fork_child): Add declaration.
13999 * frame-base.c (_initialize_frame_base): Add declaration.
14000 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14001 * frame.c (_initialize_frame): Add declaration.
14002 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14003 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14004 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14005 * gcore.c (_initialize_gcore): Add declaration.
14006 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14007 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14008 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14009 * gdbarch.c (_initialize_gdbarch): Add declaration.
14010 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14011 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14012 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14013 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14014 * go-lang.c (_initialize_go_language): Add declaration.
14015 * go32-nat.c (_initialize_go32_nat): Add declaration.
14016 * guile/guile.c (_initialize_guile): Add declaration.
14017 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14018 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14019 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14020 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14021 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14022 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14023 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14024 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14025 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14026 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14027 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14028 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14029 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14030 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14031 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14032 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14033 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14034 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14035 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14036 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14037 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14038 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14039 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14040 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14041 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14042 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14043 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14044 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14045 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14046 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14047 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14048 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14049 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14050 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14051 * infcall.c (_initialize_infcall): Add declaration.
14052 * infcmd.c (_initialize_infcmd): Add declaration.
14053 * inflow.c (_initialize_inflow): Add declaration.
14054 * infrun.c (_initialize_infrun): Add declaration.
14055 * interps.c (_initialize_interpreter): Add declaration.
14056 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14057 * jit.c (_initialize_jit): Add declaration.
14058 * language.c (_initialize_language): Add declaration.
14059 * linux-fork.c (_initialize_linux_fork): Add declaration.
14060 * linux-nat.c (_initialize_linux_nat): Add declaration.
14061 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14062 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14063 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14064 * m2-lang.c (_initialize_m2_language): Add declaration.
14065 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14066 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14067 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14068 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14069 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14070 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14071 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14072 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14073 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14074 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14075 * machoread.c (_initialize_machoread): Add declaration.
14076 * macrocmd.c (_initialize_macrocmd): Add declaration.
14077 * macroscope.c (_initialize_macroscope): Add declaration.
14078 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14079 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14080 * maint.c (_initialize_maint_cmds): Add declaration.
14081 * mdebugread.c (_initialize_mdebugread): Add declaration.
14082 * memattr.c (_initialize_mem): Add declaration.
14083 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14084 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14085 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14086 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14087 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14088 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14089 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14090 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14091 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14092 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14093 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14094 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14095 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14096 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14097 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14098 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14099 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14100 * mipsread.c (_initialize_mipsread): Add declaration.
14101 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14102 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14103 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14104 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14105 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14106 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14107 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14108 * nto-procfs.c (_initialize_procfs): Add declaration.
14109 * objc-lang.c (_initialize_objc_language): Add declaration.
14110 * observable.c (_initialize_observer): Add declaration.
14111 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14112 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14113 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14114 * osabi.c (_initialize_gdb_osabi): Add declaration.
14115 * osdata.c (_initialize_osdata): Add declaration.
14116 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14117 * parse.c (_initialize_parse): Add declaration.
14118 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14119 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14120 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14121 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14122 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14123 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14124 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14125 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14126 * printcmd.c (_initialize_printcmd): Add declaration.
14127 * probe.c (_initialize_probe): Add declaration.
14128 * proc-api.c (_initialize_proc_api): Add declaration.
14129 * proc-events.c (_initialize_proc_events): Add declaration.
14130 * proc-service.c (_initialize_proc_service): Add declaration.
14131 * procfs.c (_initialize_procfs): Add declaration.
14132 * producer.c (_initialize_producer): Add declaration.
14133 * psymtab.c (_initialize_psymtab): Add declaration.
14134 * python/python.c (_initialize_python): Add declaration.
14135 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14136 * record-btrace.c (_initialize_record_btrace): Add declaration.
14137 * record-full.c (_initialize_record_full): Add declaration.
14138 * record.c (_initialize_record): Add declaration.
14139 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14140 * regcache.c (_initialize_regcache): Add declaration.
14141 * reggroups.c (_initialize_reggroup): Add declaration.
14142 * remote-notif.c (_initialize_notif): Add declaration.
14143 * remote-sim.c (_initialize_remote_sim): Add declaration.
14144 * remote.c (_initialize_remote): Add declaration.
14145 * reverse.c (_initialize_reverse): Add declaration.
14146 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14147 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14148 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14149 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14150 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14151 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14152 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14153 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14155 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14156 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14157 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14158 * rust-exp.y (_initialize_rust_exp): Add declaration.
14159 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14160 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14161 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14162 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14163 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14164 * score-tdep.c (_initialize_score_tdep): Add declaration.
14165 * ser-go32.c (_initialize_ser_dos): Add declaration.
14166 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14167 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14168 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14169 * ser-uds.c (_initialize_ser_socket): Add declaration.
14170 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14171 * serial.c (_initialize_serial): Add declaration.
14172 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14173 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14174 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14175 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14176 * skip.c (_initialize_step_skip): Add declaration.
14177 * sol-thread.c (_initialize_sol_thread): Add declaration.
14178 * solib-aix.c (_initialize_solib_aix): Add declaration.
14179 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14180 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14181 * solib-frv.c (_initialize_frv_solib): Add declaration.
14182 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14183 * solib-target.c (_initialize_solib_target): Add declaration.
14184 * solib.c (_initialize_solib): Add declaration.
14185 * source-cache.c (_initialize_source_cache): Add declaration.
14186 * source.c (_initialize_source): Add declaration.
14187 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14188 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14189 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14190 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14191 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14192 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14193 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14194 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14195 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14196 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14197 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14198 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14199 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14200 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14201 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14202 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14203 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14204 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14205 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14206 * stabsread.c (_initialize_stabsread): Add declaration.
14207 * stack.c (_initialize_stack): Add declaration.
14208 * stap-probe.c (_initialize_stap_probe): Add declaration.
14209 * std-regs.c (_initialize_frame_reg): Add declaration.
14210 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14211 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14212 * symfile.c (_initialize_symfile): Add declaration.
14213 * symmisc.c (_initialize_symmisc): Add declaration.
14214 * symtab.c (_initialize_symtab): Add declaration.
14215 * target.c (_initialize_target): Add declaration.
14216 * target-connection.c (_initialize_target_connection): Add
14218 * target-dcache.c (_initialize_target_dcache): Add declaration.
14219 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14220 * thread.c (_initialize_thread): Add declaration.
14221 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14222 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14223 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14224 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14225 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14226 * tracectf.c (_initialize_ctf): Add declaration.
14227 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14228 * tracefile.c (_initialize_tracefile): Add declaration.
14229 * tracepoint.c (_initialize_tracepoint): Add declaration.
14230 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14231 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14232 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14233 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14234 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14235 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14236 * tui/tui.c (_initialize_tui): Add declaration.
14237 * typeprint.c (_initialize_typeprint): Add declaration.
14238 * ui-style.c (_initialize_ui_style): Add declaration.
14239 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14240 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14241 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14242 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14243 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14244 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14245 * unittests/filtered_iterator-selftests.c
14246 (_initialize_filtered_iterator_selftests): Add declaration.
14247 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14248 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14249 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14250 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14251 * unittests/main-thread-selftests.c
14252 (_initialize_main_thread_selftests): Add declaration.
14253 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14254 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14255 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14256 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14257 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14258 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14259 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14260 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14261 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14262 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14263 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14264 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14265 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14266 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14267 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14269 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14270 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14271 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14272 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14273 * user-regs.c (_initialize_user_regs): Add declaration.
14274 * utils.c (_initialize_utils): Add declaration.
14275 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14276 * valops.c (_initialize_valops): Add declaration.
14277 * valprint.c (_initialize_valprint): Add declaration.
14278 * value.c (_initialize_values): Add declaration.
14279 * varobj.c (_initialize_varobj): Add declaration.
14280 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14281 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14282 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14283 * windows-nat.c (_initialize_windows_nat): Add declaration.
14284 (_initialize_check_for_gdb_ini): Add declaration.
14285 (_initialize_loadable): Add declaration.
14286 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14287 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14288 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14289 * xcoffread.c (_initialize_xcoffread): Add declaration.
14290 * xml-support.c (_initialize_xml_support): Add declaration.
14291 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14292 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14293 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14294 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14296 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14298 * regformats/regdat.sh: Generate declaration for init function.
14300 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14302 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14304 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14305 close_one_inferior>: New methods.
14306 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14307 pass down target to find_inferior_pid.
14308 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14309 Pass down target to find_inferior_ptid.
14310 (gdbsim_target::create_inferior): Pass down target to
14312 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14313 target down to find_inferior_ptid and switch_to_thread.
14314 (gdbsim_target::close): Update to call close_one_inferior.
14315 (struct resume_data): Remove.
14316 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14317 directly, rather than through a void pointer.
14318 (gdbsim_target::resume): Update to call resume_one_inferior.
14320 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14322 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14324 2020-01-12 Pedro Alves <palves@redhat.com>
14326 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14327 directly for the current inferior instead of
14328 discard_all_inferiors.
14329 (discard_all_inferiors): Delete.
14331 2020-01-11 Tom Tromey <tom@tromey.com>
14333 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14334 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14335 deprecated_safe_get_selected_frame.
14337 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14339 * inferior.c (print_inferior): Switch inferior before printing it.
14341 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14342 Pedro Alves <palves@redhat.com>
14344 * progspace-and-thread.c (switch_to_program_space_and_thread):
14345 Assert there's an inferior for PSPACE. Use
14346 switch_to_inferior_no_thread to switch the inferior too.
14347 * progspace.c (program_space::~program_space): Call
14348 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14349 (program_space::free_all_objfiles): Don't call clear_symtab_users
14351 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14353 2020-01-10 Pedro Alves <palves@redhat.com>
14355 * NEWS: Mention multi-target debugging, "info connections", and
14356 "add-inferior -no-connection".
14358 2020-01-10 Pedro Alves <palves@redhat.com>
14360 * infrun.c: Include "target-connection.h".
14361 (check_multi_target_resumption): New.
14362 (proceed): Call it.
14363 * target-connection.c (make_target_connection_string): Make
14365 * target-connection.h (make_target_connection_string): Declare.
14367 2020-01-10 Pedro Alves <palves@redhat.com>
14369 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14370 * inferior.c (uiout_field_connection): New function.
14371 (print_inferior): Add new "connection-id" column.
14372 (add_inferior_command): Show connection number/string of added
14374 * process-stratum-target.h
14375 (process_stratum_target::connection_string): New virtual method.
14376 (process_stratum_target::connection_number): New field.
14377 * remote.c (remote_target::connection_string): New override.
14378 * target-connection.c: New file.
14379 * target-connection.h: New file.
14380 * target.c (decref_target): Remove process_stratum targets from
14381 the connection list.
14382 (target_stack::push): Add process_stratum targets to the
14385 2020-01-10 Pedro Alves <palves@redhat.com>
14388 2016-04-12 Pedro Alves <palves@redhat.com>
14389 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14390 Remove references to name.
14391 * serial.h (struct serial) <name>: Delete.
14393 2020-01-10 Pedro Alves <palves@redhat.com>
14395 * gdbarch-selftests.c (register_to_value_test): Remove "target
14396 already pushed" check.
14398 2020-01-10 Pedro Alves <palves@redhat.com>
14399 John Baldwin <jhb@FreeBSD.org>
14401 * aarch64-linux-nat.c
14402 (aarch64_linux_nat_target::thread_architecture): Adjust.
14403 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14404 (task_command_1): Likewise.
14405 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14406 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14407 (aix_thread_target::store_registers)
14408 (aix_thread_target::thread_alive): Adjust.
14409 * amd64-fbsd-tdep.c: Include "inferior.h".
14410 (amd64fbsd_get_thread_local_address): Pass down target.
14411 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14412 thread's gdbarch instead of target_gdbarch.
14413 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14414 get_last_target_status.
14415 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14416 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14418 (update_inserted_breakpoint_locations): Skip if inferiors with no
14420 (update_global_location_list): When handling moribund locations,
14421 find representative inferior for location's pspace, and use thread
14422 count of its process_stratum target.
14423 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14424 * bsd-uthread.c (bsd_uthread_target::wait): Use
14425 as_process_stratum_target and adjust thread_change_ptid and
14427 (bsd_uthread_target::update_thread_list): Use
14428 as_process_stratum_target and adjust find_thread_ptid,
14429 thread_change_ptid and add_thread calls.
14430 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14431 find_thread_ptid call.
14432 * corelow.c (add_to_thread_list): Adjust add_thread call.
14433 (core_target_open): Adjust add_thread_silent and thread_count
14435 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14436 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14437 * event-top.c (async_disconnect): Pop targets from all inferiors.
14438 * exec.c (add_target_sections): Push exec target on all inferiors
14439 sharing the program space.
14440 (remove_target_sections): Remove the exec target from all
14441 inferiors sharing the program space.
14442 (exec_on_vfork): New.
14443 * exec.h (exec_on_vfork): Declare.
14444 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14446 (fbsd_nat_target::update_thread_list): Adjust.
14447 (fbsd_nat_target::resume): Adjust.
14448 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14450 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14451 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14452 get_thread_arch_regcache call.
14453 * fork-child.c (gdb_startup_inferior): Pass target down to
14454 startup_inferior and set_executing.
14455 * gdbthread.h (struct process_stratum_target): Forward declare.
14456 (add_thread, add_thread_silent, add_thread_with_info)
14457 (in_thread_list): Add process_stratum_target parameter.
14458 (find_thread_ptid(inferior*, ptid_t)): New overload.
14459 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14461 (all_threads()): Delete overload.
14462 (all_threads, all_non_exited_threads): Add process_stratum_target
14464 (all_threads_safe): Use brace initialization.
14465 (thread_count): Add process_stratum_target parameter.
14466 (set_resumed, set_running, set_stop_requested, set_executing)
14467 (threads_are_executing, finish_thread_state): Add
14468 process_stratum_target parameter.
14469 (switch_to_thread): Use is_current_thread.
14470 * i386-fbsd-tdep.c: Include "inferior.h".
14471 (i386fbsd_get_thread_local_address): Pass down target.
14472 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14473 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14474 have_inferiors check.
14475 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14476 (inf_ptrace_target::attach): Adjust.
14477 * infcall.c (run_inferior_call): Adjust.
14478 * infcmd.c (run_command_1): Pass target to
14479 scoped_finish_thread_state.
14480 (proceed_thread_callback): Skip inferiors with no execution.
14481 (continue_command): Rename 'all_threads' local to avoid hiding
14482 'all_threads' function. Adjust get_last_target_status call.
14483 (prepare_one_step): Adjust set_running call.
14484 (signal_command): Use user_visible_resume_target. Compare thread
14485 pointers instead of inferior_ptid.
14486 (info_program_command): Adjust to pass down target.
14487 (attach_command): Mark target's 'thread_executing' flag.
14488 (stop_current_target_threads_ns): New, factored out from ...
14489 (interrupt_target_1): ... this. Switch inferior before making
14492 (struct all_inferiors_iterator, struct all_inferiors_range)
14493 (struct all_inferiors_safe_range)
14494 (struct all_non_exited_inferiors_range): Filter on
14495 process_stratum_target too. Remove explicit.
14496 * inferior.c (inferior::inferior): Push dummy target on target
14498 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14499 Add process_stratum_target parameter, and pass it down.
14500 (have_live_inferiors): Adjust.
14501 (switch_to_inferior_and_push_target): New.
14502 (add_inferior_command, clone_inferior_command): Handle
14503 "-no-connection" parameter. Use
14504 switch_to_inferior_and_push_target.
14505 (_initialize_inferior): Mention "-no-connection" option in
14506 the help of "add-inferior" and "clone-inferior" commands.
14507 * inferior.h: Include "process-stratum-target.h".
14508 (interrupt_target_1): Use bool.
14509 (struct inferior) <push_target, unpush_target, target_is_pushed,
14510 find_target_beneath, top_target, process_target, target_at,
14512 (discard_all_inferiors): Delete.
14513 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14514 (all_inferiors, all_non_exited_inferiors): Add
14515 process_stratum_target parameter.
14516 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14517 (target_last_proc_target): New global.
14518 (follow_fork_inferior): Push target on new inferior. Pass target
14519 to add_thread_silent. Call exec_on_vfork. Handle target's
14521 (follow_fork): Adjust get_last_target_status call. Also consider
14523 (follow_exec): Push target on new inferior.
14524 (struct execution_control_state) <target>: New field.
14525 (user_visible_resume_target): New.
14526 (do_target_resume): Call target_async.
14527 (resume_1): Set target's threads_executing flag. Consider resume
14529 (commit_resume_all_targets): New.
14530 (proceed): Also consider resume target. Skip threads of inferiors
14531 with no execution. Commit resumtion in all targets.
14532 (start_remote): Pass current inferior to wait_for_inferior.
14533 (infrun_thread_stop_requested): Consider target as well. Pass
14534 thread_info pointer to clear_inline_frame_state instead of ptid.
14535 (infrun_thread_thread_exit): Consider target as well.
14536 (random_pending_event_thread): New inferior parameter. Use it.
14537 (do_target_wait): Rename to ...
14538 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14540 (threads_are_resumed_pending_p, do_target_wait): New.
14541 (prepare_for_detach): Adjust calls.
14542 (wait_for_inferior): New inferior parameter. Handle it. Use
14543 do_target_wait_1 instead of do_target_wait.
14544 (fetch_inferior_event): Adjust. Switch to representative
14545 inferior. Pass target down.
14546 (set_last_target_status): Add process_stratum_target parameter.
14547 Save target in global.
14548 (get_last_target_status): Add process_stratum_target parameter and
14550 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14551 (context_switch): Check inferior_ptid == null_ptid before calling
14553 (get_inferior_stop_soon): Pass down target.
14554 (wait_one): Rename to ...
14555 (poll_one_curr_target): ... this.
14556 (struct wait_one_event): New.
14558 (stop_all_threads): Adjust.
14559 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14561 (switch_back_to_stepped_thread): Also consider target.
14562 (print_stop_event): Update.
14563 (normal_stop): Update. Also consider the resume target.
14564 * infrun.h (wait_for_inferior): Remove declaration.
14565 (user_visible_resume_target): New declaration.
14566 (get_last_target_status, set_last_target_status): New
14567 process_stratum_target parameter.
14568 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14569 process_stratum_target parameter, and use it.
14570 (clear_inline_frame_state (thread_info*)): New.
14571 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14572 process_stratum_target parameter.
14573 (clear_inline_frame_state (thread_info*)): Declare.
14574 * linux-fork.c (delete_checkpoint_command): Pass target down to
14576 (checkpoint_command): Adjust.
14577 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14578 instead of just tweaking inferior_ptid.
14579 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14580 (exit_lwp): Pass target down to find_thread_ptid.
14581 (attach_proc_task_lwp_callback): Pass target down to
14582 add_thread/set_running/set_executing.
14583 (linux_nat_target::attach): Pass target down to
14584 thread_change_ptid.
14585 (get_detach_signal): Pass target down to find_thread_ptid.
14586 Consider last target status's target.
14587 (linux_resume_one_lwp_throw, resume_lwp)
14588 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14589 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14590 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14591 (linux_nat_target::async_wait_fd): New.
14592 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14594 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14595 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14596 * linux-thread-db.c (struct thread_db_info::process_target): New
14598 (add_thread_db_info): Save target.
14599 (get_thread_db_info): New process_stratum_target parameter. Also
14601 (delete_thread_db_info): New process_stratum_target parameter.
14603 (thread_from_lwp): Adjust to pass down target.
14604 (thread_db_notice_clone): Pass down target.
14605 (check_thread_db_callback): Pass down target.
14606 (try_thread_db_load_1): Always push the thread_db target.
14607 (try_thread_db_load, record_thread): Pass target down.
14608 (thread_db_target::detach): Pass target down. Always unpush the
14610 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14611 target down. Always unpush the thread_db target.
14612 (find_new_threads_callback, thread_db_find_new_threads_2)
14613 (thread_db_target::update_thread_list): Pass target down.
14614 (thread_db_target::pid_to_str): Pass current inferior down.
14615 (thread_db_target::get_thread_local_address): Pass target down.
14616 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14618 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14619 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14620 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14621 (procfs_init_inferior): Rename to ...
14622 (procfs_target::procfs_init_inferior): ... this and adjust.
14623 (procfs_target::create_inferior, procfs_notice_thread)
14624 (procfs_do_thread_registers): Adjust.
14625 * ppc-fbsd-tdep.c: Include "inferior.h".
14626 (ppcfbsd_get_thread_local_address): Pass down target.
14627 * proc-service.c (ps_xfer_memory): Switch current inferior and
14628 program space as well.
14629 (get_ps_regcache): Pass target down.
14630 * process-stratum-target.c
14631 (process_stratum_target::thread_address_space)
14632 (process_stratum_target::thread_architecture): Pass target down.
14633 * process-stratum-target.h
14634 (process_stratum_target::threads_executing): New field.
14635 (as_process_stratum_target): New.
14636 * ravenscar-thread.c
14637 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14638 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14640 * record-btrace.c (record_btrace_target::info_record): Adjust.
14641 (record_btrace_target::record_method)
14642 (record_btrace_target::record_is_replaying)
14643 (record_btrace_target::fetch_registers)
14644 (get_thread_current_frame_id, record_btrace_target::resume)
14645 (record_btrace_target::wait, record_btrace_target::stop): Pass
14647 * record-full.c (record_full_wait_1): Switch to event thread.
14649 * regcache.c (regcache::regcache)
14650 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14651 process_stratum_target parameter and handle it.
14652 (current_thread_target): New global.
14653 (get_thread_regcache): Add process_stratum_target parameter and
14654 handle it. Switch inferior before calling target method.
14655 (get_thread_regcache): Pass target down.
14656 (get_thread_regcache_for_ptid): Pass target down.
14657 (registers_changed_ptid): Add process_stratum_target parameter and
14659 (registers_changed_thread, registers_changed): Pass target down.
14660 (test_get_thread_arch_aspace_regcache): New.
14661 (current_regcache_test): Define a couple local test_target_ops
14662 instances and use them for testing.
14663 (readwrite_regcache): Pass process_stratum_target parameter.
14664 (cooked_read_test, cooked_write_test): Pass mock_target down.
14665 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
14666 (get_thread_arch_aspace_regcache): Add process_stratum_target
14668 (regcache::target): New method.
14669 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
14670 (regcache::registers_changed_ptid): Add process_stratum_target
14672 (regcache::m_target): New field.
14673 (registers_changed_ptid): Add process_stratum_target parameter.
14674 * remote.c (remote_state::supports_vCont_probed): New field.
14675 (remote_target::async_wait_fd): New method.
14676 (remote_unpush_and_throw): Add remote_target parameter.
14677 (get_current_remote_target): Adjust.
14678 (remote_target::remote_add_inferior): Push target.
14679 (remote_target::remote_add_thread)
14680 (remote_target::remote_notice_new_inferior)
14681 (get_remote_thread_info): Pass target down.
14682 (remote_target::update_thread_list): Skip threads of inferiors
14683 bound to other targets. (remote_target::close): Don't discard
14684 inferiors. (remote_target::add_current_inferior_and_thread)
14685 (remote_target::process_initial_stop_replies)
14686 (remote_target::start_remote)
14687 (remote_target::remote_serial_quit_handler): Pass down target.
14688 (remote_target::remote_unpush_target): New remote_target
14689 parameter. Unpush the target from all inferiors.
14690 (remote_target::remote_unpush_and_throw): New remote_target
14691 parameter. Pass it down.
14692 (remote_target::open_1): Check whether the current inferior has
14693 execution instead of checking whether any inferior is live. Pass
14695 (remote_target::remote_detach_1): Pass down target. Use
14696 remote_unpush_target.
14697 (extended_remote_target::attach): Pass down target.
14698 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
14699 (remote_target::append_resumption): Pass down target.
14700 (remote_target::append_pending_thread_resumptions)
14701 (remote_target::remote_resume_with_hc, remote_target::resume)
14702 (remote_target::commit_resume): Pass down target.
14703 (remote_target::remote_stop_ns): Check supports_vCont_probed.
14704 (remote_target::interrupt_query)
14705 (remote_target::remove_new_fork_children)
14706 (remote_target::check_pending_events_prevent_wildcard_vcont)
14707 (remote_target::remote_parse_stop_reply)
14708 (remote_target::process_stop_reply): Pass down target.
14709 (first_remote_resumed_thread): New remote_target parameter. Pass
14711 (remote_target::wait_as): Pass down target.
14712 (unpush_and_perror): New remote_target parameter. Pass it down.
14713 (remote_target::readchar, remote_target::remote_serial_write)
14714 (remote_target::getpkt_or_notif_sane_1)
14715 (remote_target::kill_new_fork_children, remote_target::kill): Pass
14717 (remote_target::mourn_inferior): Pass down target. Use
14718 remote_unpush_target.
14719 (remote_target::core_of_thread)
14720 (remote_target::remote_btrace_maybe_reopen): Pass down target.
14721 (remote_target::pid_to_exec_file)
14722 (remote_target::thread_handle_to_thread_info): Pass down target.
14723 (remote_target::async_wait_fd): New.
14724 * riscv-fbsd-tdep.c: Include "inferior.h".
14725 (riscv_fbsd_get_thread_local_address): Pass down target.
14726 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
14727 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
14728 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
14730 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
14731 * solib-svr4.c (enable_break): Pass down target.
14732 * spu-multiarch.c (parse_spufs_run): Pass down target.
14733 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
14734 * target-delegates.c: Regenerate.
14735 * target.c (g_target_stack): Delete.
14736 (current_top_target): Return the current inferior's top target.
14737 (target_has_execution_1): Refer to the passed-in inferior's top
14739 (target_supports_terminal_ours): Check whether the initial
14740 inferior was already created.
14741 (decref_target): New.
14742 (target_stack::push): Incref/decref the target.
14743 (push_target, push_target, unpush_target): Adjust.
14744 (target_stack::unpush): Defref target.
14745 (target_is_pushed): Return bool. Adjust to refer to the current
14746 inferior's target stack.
14747 (dispose_inferior): Delete, and inline parts ...
14748 (target_preopen): ... here. Only dispose of the current inferior.
14749 (target_detach): Hold strong target reference while detaching.
14751 (target_thread_name): Add assertion.
14752 (target_resume): Pass down target.
14753 (target_ops::beneath, find_target_at): Adjust to refer to the
14754 current inferior's target stack.
14755 (get_dummy_target): New.
14756 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
14757 has a thread running.
14758 (initialize_targets): Rename to ...
14759 (_initialize_target): ... this.
14760 * target.h: Include "gdbsupport/refcounted-object.h".
14761 (struct target_ops): Inherit refcounted_object.
14762 (target_ops::shortname, target_ops::longname): Make const.
14763 (target_ops::async_wait_fd): New method.
14764 (decref_target): Declare.
14765 (struct target_ops_ref_policy): New.
14766 (target_ops_ref): New typedef.
14767 (get_dummy_target): Declare function.
14768 (target_is_pushed): Return bool.
14769 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
14770 (all_matching_threads_iterator::all_matching_threads_iterator):
14771 Handle filter target.
14772 * thread-iter.h (struct all_matching_threads_iterator, struct
14773 all_matching_threads_range, class all_non_exited_threads_range):
14774 Filter by target too. Remove explicit.
14775 * thread.c (threads_executing): Delete.
14776 (inferior_thread): Pass down current inferior.
14777 (clear_thread_inferior_resources): Pass down thread pointer
14779 (add_thread_silent, add_thread_with_info, add_thread): Add
14780 process_stratum_target parameter. Use it for thread and inferior
14782 (is_current_thread): New.
14783 (thread_info::deletable): Use it.
14784 (find_thread_ptid, thread_count, in_thread_list)
14785 (thread_change_ptid, set_resumed, set_running): New
14786 process_stratum_target parameter. Pass it down.
14787 (set_executing): New process_stratum_target parameter. Pass it
14788 down. Adjust reference to 'threads_executing'.
14789 (threads_are_executing): New process_stratum_target parameter.
14790 Adjust reference to 'threads_executing'.
14791 (set_stop_requested, finish_thread_state): New
14792 process_stratum_target parameter. Pass it down.
14793 (switch_to_thread): Also match inferior.
14794 (switch_to_thread): New process_stratum_target parameter. Pass it
14796 (update_threads_executing): Reimplement.
14797 * top.c (quit_force): Pop targets from all inferior.
14798 (gdb_init): Don't call initialize_targets.
14799 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
14801 (windows_add_thread, windows_delete_thread): Adjust.
14802 (get_windows_debug_event): Rename to ...
14803 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
14804 * tracefile-tfile.c (tfile_target_open): Pass down target.
14805 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
14807 (switch_to_thread): Add process_stratum_target parameter.
14808 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
14810 (mi_on_resume): Pass target down.
14811 * nat/fork-inferior.c (startup_inferior): Add
14812 process_stratum_target parameter. Pass it down.
14813 * nat/fork-inferior.h (startup_inferior): Add
14814 process_stratum_target parameter.
14815 * python/py-threadevent.c (py_get_event_thread): Pass target down.
14817 2020-01-10 Pedro Alves <palves@redhat.com>
14819 * remote.c (remote_target::start_remote): Don't set inferior_ptid
14820 directly. Instead find the first thread in the thread list and
14821 use switch_to_thread.
14823 2020-01-10 Pedro Alves <palves@redhat.com>
14825 * remote.c (remote_target::remote_add_inferior): Don't bind a
14826 process to the current inferior if the current inferior is already
14827 bound to a process.
14829 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14830 Pedro Alves <palves@redhat.com>
14832 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
14833 If no process is specified, return null_ptid instead of
14835 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
14836 TARGET_WAITKIND_SIGNALLED with no pid.
14838 2020-01-10 Pedro Alves <palves@redhat.com>
14840 * remote.c (first_remote_resumed_thread): New.
14841 (remote_target::wait_as): Use it as default event_ptid instead of
14844 2020-01-10 Pedro Alves <palves@redhat.com>
14846 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
14848 2020-01-10 Pedro Alves <palves@redhat.com>
14850 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
14853 2020-01-10 Pedro Alves <palves@redhat.com>
14855 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
14856 ptid to get_last_target_status.
14857 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
14858 ptid to get_last_target_status.
14859 * infcmd.c (continue_command): Don't pass a target_waitstatus to
14860 get_last_target_status.
14861 (info_program_command): Don't pass a target_waitstatus to
14862 get_last_target_status.
14863 * infrun.c (init_wait_for_inferior): Use
14864 nullify_last_target_wait_ptid.
14865 (get_last_target_status): Handle nullptr arguments.
14866 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
14867 (print_stop_event): Don't pass a ptid to get_last_target_status.
14868 (normal_stop): Don't pass a ptid to get_last_target_status.
14869 * infrun.h (get_last_target_status, set_last_target_status): Move
14870 comments here and update.
14871 (nullify_last_target_wait_ptid): Declare.
14872 * linux-fork.c (fork_load_infrun_state): Remove local extern
14873 declaration of nullify_last_target_wait_ptid.
14874 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
14875 to get_last_target_status.
14877 2020-01-10 Pedro Alves <palves@redhat.com>
14879 * gdbthread.h (scoped_restore_current_thread)
14880 <dont_restore, restore, m_dont_restore>: Declare.
14881 * thread.c (thread_alive): Add assertion. Return bool.
14882 (switch_to_thread_if_alive): New.
14883 (prune_threads): Switch inferior/thread.
14884 (print_thread_info_1): Switch thread before calling target methods.
14885 (scoped_restore_current_thread::restore): New, factored out from
14887 (scoped_restore_current_thread::~scoped_restore_current_thread):
14889 (scoped_restore_current_thread::scoped_restore_current_thread):
14891 (thread_apply_all_command, thread_select): Use
14892 switch_to_thread_if_alive.
14893 * infrun.c (proceed, restart_threads, handle_signal_stop)
14894 (switch_back_to_stepped_thread): Switch current thread before
14895 calling target methods.
14897 2020-01-10 Pedro Alves <palves@redhat.com>
14899 * inferior.c (switch_to_inferior_no_thread): New function,
14900 factored out from ...
14901 (inferior_command): ... here.
14902 * inferior.h (switch_to_inferior_no_thread): Declare.
14903 * mi/mi-main.c (run_one_inferior): Use
14904 switch_to_inferior_no_thread.
14906 2020-01-10 Pedro Alves <palves@redhat.com>
14908 * infcmd.c (kill_command): Remove dead code.
14910 2020-01-10 Pedro Alves <palves@redhat.com>
14912 * remote.c (remote_target::mourn_inferior): No longer check
14913 whether the target is running.
14915 2020-01-10 Pedro Alves <palves@redhat.com>
14917 * corelow.c (core_target::has_execution): Change parameter type to
14919 * inferior.c (number_of_live_inferiors): Use
14920 inferior::has_execution instead of target_has_execution_1.
14921 * inferior.h (inferior::has_execution): New.
14922 * linux-thread-db.c (thread_db_target::update_thread_list): Use
14923 inferior::has_execution instead of target_has_execution_1.
14924 * process-stratum-target.c
14925 (process_stratum_target::has_execution): Change parameter type to
14926 inferior pointer. Check the inferior's PID instead of
14928 * process-stratum-target.h
14929 (process_stratum_target::has_execution): Change parameter type to
14931 * record-full.c (record_full_core_target::has_execution): Change
14932 parameter type to inferior pointer.
14933 * target.c (target_has_execution_1): Change parameter type to
14935 (target_has_execution_current): Adjust.
14936 * target.h (target_ops::has_execution): Change parameter type to
14938 (target_has_execution_1): Change parameter type to inferior
14939 pointer. Change return type to bool.
14940 * tracefile.h (tracefile_target::has_execution): Change parameter
14941 type to inferior pointer.
14943 2020-01-10 Pedro Alves <palves@redhat.com>
14945 * exceptions.c (print_flush): Remove current_top_target() check.
14947 2020-01-10 Pedro Alves <palves@redhat.com>
14949 * remote.c (show_remote_exec_file): Show the current inferior's
14950 exec-file instead of the command variable's value.
14952 2020-01-10 Pedro Alves <palves@redhat.com>
14954 * record-full.c (record_full_resume_ptid): New global.
14955 (record_full_target::resume): Set it.
14956 (record_full_wait_1): Use record_full_resume_ptid instead of
14959 2020-01-10 Pedro Alves <palves@redhat.com>
14961 * gdbthread.h (scoped_restore_current_thread)
14962 <dont_restore, restore, m_dont_restore>: Declare.
14963 * thread.c (thread_alive): Add assertion. Return bool.
14964 (switch_to_thread_if_alive): New.
14965 (prune_threads): Switch inferior/thread.
14966 (print_thread_info_1): Switch thread before calling target methods.
14967 (scoped_restore_current_thread::restore): New, factored out from
14969 (scoped_restore_current_thread::~scoped_restore_current_thread):
14971 (scoped_restore_current_thread::scoped_restore_current_thread):
14973 (thread_apply_all_command, thread_select): Use
14974 switch_to_thread_if_alive.
14976 2020-01-10 George Barrett <bob@bob131.so>
14978 * stap-probe.c (stap_modify_semaphore): Don't check for null
14980 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14981 for null semaphores.
14983 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14985 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14986 all source windows, and maintain horizontal scroll status while
14989 2020-01-09 Tom Tromey <tom@tromey.com>
14992 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14993 update_source_window, not print_source_lines.
14995 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14997 * tui/tui.c (tui_enable): Register tui hooks after calling
15000 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15002 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15004 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
15006 * thread.c (print_thread_info_1): Fix indentation.
15008 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15010 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15011 unique_xmalloc_ptr outside the if to always free the demangled name.
15013 2020-01-08 Tom Tromey <tromey@adacore.com>
15015 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15016 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15017 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15018 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15020 (section_offsets): New typedef.
15021 * symtab.c (fixup_section, get_msymbol_address): Update.
15022 * symmisc.c (dump_msymbols): Update.
15023 * symfile.h (relative_addr_info_to_section_offsets)
15024 (symfile_map_offsets_to_segments): Update.
15025 * symfile.c (build_section_addr_info_from_objfile)
15026 (init_objfile_sect_indices): Update.
15027 (struct place_section_arg): Change type of "offsets".
15028 (place_section): Update.
15029 (relative_addr_info_to_section_offsets): Change type of
15030 "section_offsets". Remove "num_sections" parameter.
15031 (default_symfile_offsets, syms_from_objfile_1)
15032 (set_objfile_default_section_offset): Update.
15033 (reread_symbols): No need to preserve section offsets by hand.
15034 (symfile_map_offsets_to_segments): Change type of "offsets".
15035 * stap-probe.c (relocate_address): Update.
15036 * stabsread.h (process_one_symbol): Update.
15037 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15038 (solib_target_relocate_section_addresses): Update.
15039 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15041 * solib-frv.c (frv_relocate_main_executable): Update.
15042 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15043 * solib-aix.c (solib_aix_get_section_offsets): Change return
15045 (solib_aix_solib_create_inferior_hook): Update.
15046 * remote.c (remote_target::get_offsets): Update.
15047 * psymtab.c (find_pc_sect_psymtab): Update.
15048 * psympriv.h (struct partial_symbol) <address, text_low,
15049 text_high>: Update.
15050 * objfiles.h (obj_section_offset): Update.
15051 (struct objfile) <section_offsets>: Change type.
15052 <num_sections>: Remove.
15053 (objfile_relocate): Update.
15054 * objfiles.c (entry_point_address_query): Update
15055 (relocate_one_symbol): Change type of "section_offsets".
15056 (objfile_relocate1, objfile_relocate1): Change type of
15058 (objfile_rebase1): Update.
15059 * mipsread.c (mipscoff_symfile_read): Update.
15060 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15062 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15063 (parse_external, psymtab_to_symtab_1): Update.
15064 * machoread.c (macho_symfile_offsets): Update.
15065 * ia64-tdep.c (ia64_find_unwind_table): Update.
15066 * hppa-tdep.c (read_unwind_info): Update.
15067 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15068 * dwarf2read.c (create_addrmap_from_index)
15069 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15070 (process_psymtab_comp_unit_reader, add_partial_symbol)
15071 (add_partial_subprogram, process_full_comp_unit)
15072 (read_file_scope, read_func_scope, read_lexical_block_scope)
15073 (read_call_site_scope, dwarf2_rnglists_process)
15074 (dwarf2_ranges_process, dwarf2_ranges_read)
15075 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15076 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15078 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15080 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15081 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15082 (process_one_symbol): Change type of "section_offsets".
15083 * ctfread.c (get_objfile_text_range): Update.
15084 * coffread.c (coff_symtab_read, enter_linenos)
15085 (process_coff_symbol): Update.
15086 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15087 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15089 2020-01-08 Tom Tromey <tromey@adacore.com>
15091 * dwarf2read.c (parse_macro_definition): Use std::string.
15092 (parse_macro_definition): Likewise.
15094 2020-01-08 Tom Tromey <tromey@adacore.com>
15096 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15097 (ATTR_ALLOC_CHUNK): Remove.
15099 2020-01-08 Tom Tromey <tromey@adacore.com>
15101 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15103 2020-01-08 Tom Tromey <tromey@adacore.com>
15105 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15106 (dwarf2_compute_name, open_dwo_file): Likewise.
15107 (process_enumeration_scope): Use std::vector.
15108 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15109 (partial_die_info::fixup, dwarf2_start_subfile)
15110 (guess_full_die_structure_name, dwarf2_name): Likewise.
15111 (determine_prefix): Update.
15112 (guess_full_die_structure_name): Make return type const.
15113 (partial_die_full_name): Return unique_xmalloc_ptr.
15114 (DW_FIELD_ALLOC_CHUNK): Remove.
15116 2020-01-07 Tom Tromey <tromey@adacore.com>
15119 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15121 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15123 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15125 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15127 * stack.c (print_frame_info): Move disassemble_next_line code
15128 inside source_print block.
15130 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15132 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15133 gdb/signals.h, as we are now using native signal symbols.
15135 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15137 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15138 overflow by an early check of content vs threshold.
15139 * tui/tui-source.c (tui_source_window::line_is_displayed):
15142 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15144 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15146 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15148 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15149 export table if no section contains it's RVA.
15151 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15153 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15155 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
15157 * source.c (print_source_lines_base): Set last_line_listed.
15159 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15161 * tui/tui-disasm.c: Remove trailing spaces.
15163 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15164 Pedro Alves <palves@redhat.com>
15166 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15167 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15168 (windows_gdb_signal_to_target): New function, uses the above
15169 enumeration to convert GDB internal signal codes to equivalent
15171 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15172 * windows-nat.c: Include "gdb_wait.h".
15173 (get_windows_debug_event): Extract the fatal exception from the
15174 exit status and convert to the equivalent Posix signal number.
15175 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15176 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15177 * gdbsupport/gdb_wait.c: New file, implements
15178 windows_status_to_termsig.
15179 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15180 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15182 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15184 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15187 2020-01-05 Luis Machado <luis.machado@linaro.org>
15189 * aarch64-linux-nat.c
15190 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15191 and bfd_mach_aarch64.
15193 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15195 * ui-file.c (stdio_file::can_emit_style_escape)
15196 (tee_file::can_emit_style_escape): Ensure style is used also on
15197 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15199 * main.c (set_gdb_data_directory): Use file style to output the
15200 warning that the given pathname is not a directory.
15201 * top.c (show_history_filename, gdb_safe_append_history)
15202 (show_gdb_datadir): Use file style.
15204 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
15206 * solib-target.c (struct lm_info_target):
15207 Change offsets to be a unique_xmalloc_ptr.
15208 (solib_target_relocate_section_addresses): Update.
15210 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
15212 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15214 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15216 * MAINTAINERS (Write After Approval): Add myself.
15218 2020-01-02 Luis Machado <luis.machado@linaro.org>
15220 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15221 Cell BE architecture.
15222 * target.h (struct target_ops) <thread_architecture>: Likewise.
15224 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
15226 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15228 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
15230 * MAINTAINERS (Write After Approval): Add myself.
15232 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15234 * gdbarch.sh: Update copyright year range of generated files.
15236 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15238 Update copyright year range in all GDB files.
15240 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15242 * copyright.py: Convert to Python 3.
15244 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15246 * copyright.py: Adapt after move of gnulib directory from gdb
15247 directory to toplevel directory.
15249 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15251 * copyright.py (main): Exit if run from the wrong directory.
15253 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15255 * top.c (print_gdb_version): Change copyright year to 2020.
15257 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15259 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
15261 For older changes see ChangeLog-2019.
15267 version-control: never