1 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
2 Adam Renquinha <arenquinha@cimeq.qc.ca>
4 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5 pointer and stack frame offset when unwinding.
7 2020-09-13 Joel Brobecker <brobecker@adacore.com>
9 * version.in: Set GDB version number to 10.0.90.DATE-git.
11 2020-09-13 Joel Brobecker <brobecker@adacore.com>
15 2020-09-13 Joel Brobecker <brobecker@adacore.com>
17 * version.in: Set GDB version number to 10.0.90.
19 2020-09-13 Joel Brobecker <brobecker@adacore.com>
21 * NEWS: Change "Changes since GDB 9" to "Changes in GDB 10".
23 2020-09-13 Joel Brobecker <brobecker@adacore.com>
25 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
26 * version.in: Bump version to 10.0.90.DATE-git.
28 2020-09-12 Joel Brobecker <brobecker@adacore.com>
30 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
32 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
33 Felix Willgerodt <Felix.Willgerodt@intel.com>
35 * gdbarch.sh: Added bfloat16 type.
36 * gdbarch.c: Regenerated.
37 * gdbarch.h: Regenerated.
38 * gdbtypes.c (floatformats_bfloat16): New struct.
39 (gdbtypes_post_init): Add builtin_bfloat16.
40 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
41 (floatformats_bfloat16): New struct.
42 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
43 (i386_ymm_type): Add field "v16_bfloat16"
44 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
45 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
46 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
47 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
48 * features/i386/64bit-avx512.xml: Add bfloat16 type.
49 * features/i386/64bit-avx512.c: Regenerated.
50 * features/i386/64bit-sse.xml: Add bfloat16 type.
51 * features/i386/64bit-sse.c: Regenerated.
53 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
55 * i386-tdep.c (i386_zmm_type): Fix field names.
56 (i386_ymm_type): Fix field names.
58 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
60 * breakpoint.c: Fix typo in the help message of the
61 "set breakpoint condition-evaluation" command.
63 2020-09-10 Kamil Rytarowski <n54@gmx.com>
65 * nbsd-nat.c: Include "nat/netbsd-nat.h".
66 * (nbsd_nat_target::pid_to_exec_file)
67 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
68 (nbsd_nat_target::post_startup_inferior)
69 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
70 (nbsd_add_threads): Switch local code to common gdb/nat functions.
71 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
72 * (nbsd_thread_lister): Remove.
74 2020-09-10 Kamil Rytarowski <n54@gmx.com>
76 * fork-inferior.c (startup_inferior): Avoid double free.
78 2020-09-10 Kamil Rytarowski <n54@gmx.com>
80 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
81 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
83 2020-09-10 Kamil Rytarowski <n54@gmx.com>
85 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
86 * netbsd-nat.c: Include <sys/ptrace.h>.
87 * (netbsd_nat::enable_proc_events): Add.
89 2020-09-10 Kamil Rytarowski <n54@gmx.com>
91 * netbsd-nat.h: Include "gdbsupport/function-view.h".
92 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
93 (netbsd_nat::for_each_thread): Add.
94 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
95 "gdbsupport/common-debug.h".
96 * (netbsd_nat::netbsd_thread_lister)
97 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
98 (netbsd_nat::for_each_thread): Add.
100 2020-09-10 Kamil Rytarowski <n54@gmx.com>
102 * netbsd-nat.h: Include <unistd.h>.
103 * (netbsd_nat::pid_to_exec_file): Add.
104 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
105 * (netbsd_nat::pid_to_exec_file) Add.
107 2020-09-10 Kamil Rytarowski <n54@gmx.com>
109 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
111 2020-09-10 Kamil Rytarowski <n54@gmx.com>
113 * netbsd-nat.h: New file.
114 * netbsd-nat.c: Likewise.
116 2020-09-09 Tom Tromey <tromey@adacore.com>
118 * ada-lang.c (remove_extra_symbols): Do not increment when
121 2020-09-08 Tom Tromey <tromey@adacore.com>
123 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
125 2020-09-08 Tom Tromey <tromey@adacore.com>
128 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
129 (gdb_bfd_init_data): New function.
130 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
132 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
134 * infrun.c (fetch_inferior_event): Use
135 `switch_to_target_no_thread` to switch the target.
137 2020-09-06 Tom Tromey <tom@tromey.com>
139 * symfile.h (dwarf2_free_objfile): Don't declare.
141 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
143 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
144 to match 16 byte real/complex type generated by Flang compiler.
146 2020-09-03 Tom de Vries <tdevries@suse.de>
149 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
150 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
152 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
154 * maint.c (index_digits): New function.
155 (struct maint_print_section_data): Remove.
156 (print_bfd_section_info): Remove print_data parameter, add arg
158 (print_objfile_section_info): Likewise.
159 (print_bfd_section_info_maybe_relocated): Likewise (plus
161 (maintenance_info_sections): Adjust calls.
163 2020-09-02 Tom Tromey <tromey@adacore.com>
165 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
167 (ada_varobj_adjust_for_child_access): Special-case null pointers.
169 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
171 * bcache.h (struct bcache) <insert>: Change type of `added` to
173 * bcache.c (bcache::insert): Likewise.
174 * gdbtypes.c (check_types_worklist): Adjust.
175 * psymtab.c (add_psymbol_to_bcache): Adjust.
177 2020-08-31 Kevin Buettner <kevinb@redhat.com>
179 * corelow.c (unordered_set): Include.
180 (class core_target): Add field 'm_core_unavailable_mappings'.
181 (core_target::build_file_mappings): Print only one warning
182 per inaccessible file. Add unavailable/broken mappings
183 to m_core_unavailable_mappings.
184 (core_target::xfer_partial): Call...
185 (core_target::xfer_memory_via_mappings): New method.
187 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
189 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
192 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
194 * dwarf2/read.c (struct field_info): Fix indentation.
196 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
198 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
200 * frame.c (frame_id_eq): Fix indentation.
202 2020-08-31 Scott Linder <scott@scottlinder.com>
203 Simon Marchi <simon.marchi@efficios.com>
205 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
206 inline frame ids in outer frame.
208 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
210 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
211 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
212 (outer_frame_id): Use FID_STACK_OUTER instead of
214 (frame_id_p): Don't check for outer_frame_id.
216 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
218 * frame-unwind.c (frame_unwind_got_optimized): Don't set
219 regnum/frame in value. Call allocate_value_lazy.
220 * frame.c (frame_unwind_register_value): Use
223 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
225 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
227 2020-08-29 Pedro Alves <pedro@palves.net>
229 * progspace.c (print_program_space): Use all_inferiors. Switch to
230 the inferior before calling target_pid_to_str.
232 2020-08-28 Tom Tromey <tom@tromey.com>
234 * xcoffread.c (xcoff_end_psymtab): Update comment.
235 * dbxread.c (dbx_end_psymtab): Update comment.
237 2020-08-28 Tom de Vries <tdevries@suse.de>
240 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
242 (create_breakpoint): Same.
243 (base_breakpoint_decode_location): Same.
244 (bkpt_create_sals_from_location): Same.
245 (bkpt_decode_location): Same.
246 (bkpt_probe_create_sals_from_location): Same.
247 (bkpt_probe_decode_location): Same.
248 (tracepoint_create_sals_from_location): Same.
249 (tracepoint_decode_location): Same.
250 (tracepoint_probe_decode_location): Same.
251 (strace_marker_create_sals_from_location): Same.
252 (strace_marker_decode_location): Same.
253 (create_sals_from_location_default): Same.
254 (decode_location_default): Same.
255 * breakpoint.h (struct breakpoint_ops): Same.
256 (create_breakpoint): Same.
257 * linespec.h (decode_line_full): Same.
258 * linespec.c (decode_line_full): Same. Throw error if
261 2020-08-27 Pedro Alves <pedro@palves.net>
264 * breakpoint.c (until_break_fsm) <location_breakpoint,
265 caller_breakpoint>: Delete fields.
266 <breakpoints>: New field.
267 <until_break_fsm>: Adjust to save a breakpoint vector instead of
268 two individual breakpoints.
269 (until_break_fsm::should_stop): Loop over breakpoints in the
271 (until_break_fsm::clean_up): Adjust to clear the breakpoints
273 (until_break_command): Handle location expanding into multiple
276 2020-08-27 Pedro Alves <pedro@palves.net>
279 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
280 bp_until breakpoints user-specified locations. Update intro
283 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
285 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
286 gdb_bfd_sections): New.
287 * maint.c (print_bfd_section_info): Change param type to
288 maint_print_section_data.
289 (print_objfile_section_info): Likewise.
290 (print_bfd_section_info_maybe_relocated): Likewise.
291 (maintenance_info_sections): Use gdb_bfd_sections.
293 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
295 * MAINTAINERS: Add ARC target and maintainer.
297 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
299 * configure.tgt: ARC support for GNU/Linux.
300 * Makefile.in (ALL_TARGET_OBJS): Likewise.
301 * arc-linux-tdep.c: New file.
302 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
303 * arc-tdep.c (arc_write_pc): Use it.
305 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
307 * arc-tdep.c (arc_check_for_hardware_loop): New.
308 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
310 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
312 * arc-tdep.h: Include "gdbarch.h".
314 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
317 (arc_gdbarch_features): New class to stir the selection of target XML.
318 (arc_create_target_description): Use FEATURES to choose XML target.
319 (arc_lookup_target_description): Use arc_create_target_description
320 to create _new_ target descriptions or return the already created
321 ones if the FEATURES is the same.
322 * arch/arc.c: Implementation of prototypes described above.
323 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
324 (arc_gdbarch_features_init): Initialize the FEATURES struct.
325 * arc-tdep.c (*_feature_name): Make feature names consistent.
326 (arc_register_feature): A new struct to hold information about
327 registers of a particular target/feature.
328 (arc_check_tdesc_feature): Check if XML provides registers in
329 compliance with ARC_REGISTER_FEATURE structs.
330 (arc_update_acc_reg_names): Add aliases for r58 and r59.
331 (determine_*_reg_feature_set): Which feature name to look for.
332 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
333 (mach_type_to_arc_isa): Convert from a set of binutils machine types
334 to expected ISA enums to be used in arc_gdbarch_features structs.
335 * features/Makefile (FEATURE_XMLFILES): Add new files.
336 * gdb/features/arc/v1-aux.c: New file.
337 * gdb/features/arc/v1-aux.xml: Likewise.
338 * gdb/features/arc/v1-core.c: Likewise.
339 * gdb/features/arc/v1-core.xml: Likewise.
340 * gdb/features/arc/v2-aux.c: Likewise.
341 * gdb/features/arc/v2-aux.xml: Likewise.
342 * gdb/features/arc/v2-core.c: Likewise.
343 * gdb/features/arc/v2-core.xml: Likewise.
344 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
346 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
347 Andrew Burgess <andrew.burgess@embecosm.com>
350 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
351 an assert. Remove single element array indexing pattern as the
352 MULTI_SUBSCRIPT support will handle this case too.
354 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
356 * value.h (valprint_check_validity): Move declaration from
358 * valprint.h (valprint_check_validity): ... to here.
360 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
363 * debug.c (debug_prefixed_vprintf): New function.
364 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
365 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
367 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
369 * infrun.h (infrun_debug_printf_1): New function declaration.
370 (infrun_debug_printf): New macro.
371 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
373 (infrun_debug_printf): New function.
374 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
375 (handle_jit_event): Likewise.
377 2020-08-21 Mark Wielaard <mark@klomp.org>
379 * ada-lex.l: Extend register warnings diagnostics comment for g++.
381 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
383 * frame.c (enum class frame_id_status): New.
384 (struct frame_info) <this_id::p>: Change type to frame_id_status.
385 (fprintf_frame): Update.
386 (compute_frame_id): Set frame id status to "computing" on entry.
387 Set it back to "not_computed" on failure and to "computed" on
389 (get_frame_id): Assert the frame id is not being computed.
390 (create_sentinel_frame): Use frame_id_status::COMPUTED.
391 (create_new_frame): Likewise.
392 (frame_cleanup_after_sniffer): Update assert.
394 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
396 * regcache.c (pid_ptid_regcache_map): New type.
397 (target_ptid_regcache_map): Remove.
398 (target_pid_ptid_regcache_map): New type.
399 (regcaches): Change type to target_pid_ptid_regcache_map.
400 (get_thread_arch_aspace_regcache): Update.
401 (regcache_thread_ptid_changed): Update, handle pid-like ptid
403 (regcaches_size): Update.
404 (regcache_count): Update.
405 (registers_changed_ptid_target_pid_test): New.
406 (_initialize_regcache): Register new test.
408 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
410 * regcache.c (regcache_count): New.
411 (struct regcache_test_data): New.
412 (regcache_test_data_up): New.
413 (populate_regcaches_for_test): New.
414 (regcaches_test): Remove.
415 (get_thread_arch_aspace_regcache_test): New.
416 (registers_changed_ptid_all_test): New.
417 (registers_changed_ptid_target_test): New.
418 (registers_changed_ptid_target_ptid_test): New.
419 (regcache_thread_ptid_changed): Remove regcache_count lambda.
420 (_initialize_regcache): Register new tests.
422 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
424 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
425 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
426 gdbarch and aspace parameter. Use current inferior's aspace.
427 Validate regcache's arch value.
428 (regcaches_test): Update.
430 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
432 * regcache.c (regcaches_test): Call registers_changed.
434 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
436 * infrun.c (process_event_stop_test): Fix typo "breapoint".
438 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
440 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
441 to find the end of prologue for flang compiled binaries.
442 * arm-tdep.c (arm_skip_prologue): Likewise.
443 * i386-tdep.c (i386_skip_prologue): Likewise.
444 * producer.c (producer_is_llvm): New function.
445 (producer_parsing_tests): Added new tests for clang/flang.
446 * producer.h (producer_is_llvm): New declaration.
448 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
450 * linux-nat.c (linux_nat_debug_printf): New function.
451 (linux_nat_debug_printf_1): New macro. Use throughout the file.
453 2020-08-18 Aaron Merey <amerey@redhat.com>
455 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
456 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
457 (CLIBS): Add DEBUGINFOD_LIBS.
459 2020-08-17 Sergei Trofimovich <siarheit@google.com>
461 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
464 2020-08-17 Tom Tromey <tromey@adacore.com>
466 * ada-varobj.c (ada_varobj_decode_var): Handle case where
467 ada_get_decoded_value returns NULL.
469 2020-08-17 Tom Tromey <tromey@adacore.com>
471 * python/py-inferior.c (infpy_search_memory): Use
472 gdb_py_object_from_ulongest.
473 * python/py-infevents.c (create_inferior_call_event_object)
474 (create_memory_changed_event_object): Use
475 gdb_py_object_from_ulongest.
476 * python/py-linetable.c (ltpy_entry_get_pc): Use
477 gdb_py_object_from_ulongest.
479 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
481 * loc.c (class symbol_needs_eval_context): Fix indentation.
483 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
485 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
488 2020-08-17 Tom de Vries <tdevries@suse.de>
491 * gdbtypes.c (dump_dynamic_prop): New function.
492 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
494 2020-08-15 Tom de Vries <tdevries@suse.de>
497 * stack.c (print_frame_args): Temporarily set the selected
498 frame to FRAME while printing the frame's arguments.
500 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
503 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
504 Always clear watchpoint with PTRACE_SET_DEBUGREG.
506 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
508 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
509 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
510 and >= to check return value instead of == -1 and != -1.
512 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
514 * utils.h (class gdb_argv) <as_array_view>: New method.
515 * utils.c (gdb_argv_as_array_view_test): New.
516 (_initialize_utils): Register selftest.
517 * maint.c (maintenance_selftest): Use the new method.
519 2020-08-13 Kamil Rytarowski <n54@gmx.com>
521 * target.h (supports_dumpcore, dumpcore): New
522 function declarations.
523 * target.c (supports_dumpcore, dumpcore): New
525 * target-delegates.c: Rebuild.
526 * gcore.c (gcore_command): Use target_supports_dumpcore ()
527 and target_dumpcore ().
529 2020-08-13 Aaron Merey <amerey@redhat.com>
531 * debuginfod-support.c: Replace global variables with user_data.
533 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
535 * maint.c (maintenance_selftest): Split args and pass array_view
538 2020-08-12 Luis Machado <luis.machado@linaro.org>
540 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
542 Use %s and pulongest to print the length.
544 2020-08-12 Pedro Alves <palves@redhat.com>
546 * NEWS: Move "Multi-target debugging support" item to the
547 "Changes since GDB 9" section.
549 2020-08-12 Pedro Alves <palves@redhat.com>
552 * progspace.c (program_space::remove_objfile): Invalidate the
555 2020-08-11 Tom de Vries <tdevries@suse.de>
557 * MAINTAINERS: Mark ms1 as deleted.
559 2020-08-10 Luis Machado <luis.machado@linaro.org>
563 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
565 (aarch64_analyze_prologue_test): Add more unit tests to exercise
566 movz/str/stur/stp skipping behavior.
568 2020-08-10 Luis Machado <luis.machado@linaro.org>
570 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
571 struct user_sve_header instead of struct sve_context.
573 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
575 * read.h (dwarf2_fetch_die_loc_sect_off,
576 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
577 `void *` parameter with function_view.
578 * read.c (dwarf2_fetch_die_loc_sect_off,
579 dwarf2_fetch_die_loc_cu_off): Likewise.
580 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
581 (per_cu_dwarf_call): Adjust.
582 (get_frame_address_in_block_wrapper): Remove.
583 (indirect_synthetic_pointer): Adjust.
585 (dwarf2_compile_expr_to_ax): Adjust.
587 2020-08-08 Tom de Vries <tdevries@suse.de>
590 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
592 * regcache.c (get_thread_arch_aspace_regcache): Same.
594 2020-08-07 Tom Tromey <tromey@adacore.com>
597 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
599 (ravenscar_thread_target::wait): Check
601 (ravenscar_thread_target::prepare_to_store)
602 (ravenscar_thread_target::stopped_by_sw_breakpoint)
603 (ravenscar_thread_target::stopped_by_hw_breakpoint)
604 (ravenscar_thread_target::stopped_by_watchpoint)
605 (ravenscar_thread_target::stopped_data_address)
606 (ravenscar_thread_target::core_of_thread): Use
607 scoped_restore_current_thread and
608 set_base_thread_from_ravenscar_task.
610 2020-08-07 Tom Tromey <tromey@adacore.com>
612 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
614 2020-08-07 Tom Tromey <tromey@adacore.com>
616 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
617 update_inferior_ptid before update_thread_list.
618 (temporarily_change_regcache_ptid): New class.
619 (ravenscar_thread_target::fetch_registers)
620 (ravenscar_thread_target::store_registers)
621 (ravenscar_thread_target::prepare_to_store): Use base thread when
622 forwarding operation.
624 2020-08-07 Tom Tromey <tromey@adacore.com>
626 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
629 2020-08-07 Tom Tromey <tromey@adacore.com>
631 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
633 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
635 (ravenscar_thread_target::add_thread): Rename from
636 ravenscar_add_thread.
637 (ravenscar_thread_target::update_thread_list): Use a lambda.
638 (ravenscar_thread_target::xfer_partial): New method.
640 2020-08-07 Tom Tromey <tromey@adacore.com>
642 * ada-lang.h (ada_task_list_iterator_ftype): Now a
644 (iterate_over_live_ada_tasks): Change type of argument.
645 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
648 2020-08-07 Tom Tromey <tromey@adacore.com>
650 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
652 (ravenscar_thread_target::extra_thread_info): Remove.
653 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
654 defer to target beneath for non-Ravenscar threads.
656 2020-08-07 Tom Tromey <tromey@adacore.com>
658 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
659 get_base_thread_from_ravenscar_task>: Now methods.
660 <m_cpu_map>: New member.
661 (ravenscar_thread_target::get_thread_base_cpu): Rename from
662 ravenscar_get_thread_base_cpu. Check m_cpu_map.
663 (ravenscar_thread_target::task_is_currently_active): Update.
664 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
666 (ravenscar_thread_target::add_active_thread): Put initial thread
669 2020-08-07 Tom Tromey <tromey@adacore.com>
671 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
674 2020-08-07 Tom Tromey <tromey@adacore.com>
676 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
679 2020-08-07 Tom Tromey <tromey@adacore.com>
681 * ravenscar-thread.c (ravenscar_thread_target): Don't call
683 (ravenscar_thread_target::add_active_thread): Now public.
684 (ravenscar_inferior_created): Call add_active_thread after pushing
687 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
689 * regcache.c (ptid_regcache_map): New type.
690 (target_ptid_regcache_map): New type.
691 (regcaches): Change type to target_ptid_regcache_map.
692 (get_thread_arch_aspace_regcache): Update to regcaches' new
694 (regcache_thread_ptid_changed): Likewise.
695 (registers_changed_ptid): Likewise.
696 (regcaches_size): Likewise.
697 (regcaches_test): Update.
698 (regcache_thread_ptid_changed): Update.
699 * regcache.h (regcache_up): New type.
700 * gdbsupport/ptid.h (hash_ptid): New struct.
702 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
704 * observable.h (thread_ptid_changed): Add parameter
705 `process_stratum_target *`.
706 * infrun.c (infrun_thread_ptid_changed): Add parameter
707 `process_stratum_target *` and use it.
708 (selftests): New namespace.
709 (infrun_thread_ptid_changed): New function.
710 (_initialize_infrun): Register selftest.
711 * regcache.c (regcache_thread_ptid_changed): Add parameter
712 `process_stratum_target *` and use it.
713 (regcache_thread_ptid_changed): New function.
714 (_initialize_regcache): Register selftest.
715 * thread.c (thread_change_ptid): Pass target to
716 thread_ptid_changed observable.
718 2020-08-06 Caroline Tice <cmtice@google.com>
720 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
721 (struct dwp_sections): Update field comments. Add loclists and
723 (struct virtual_v2_dwo_sections): Rename struct to
724 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
725 size & offset fields for loclists and rnglists.
726 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
727 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
728 skipping dummy type units.
729 (create_dwp_hash_table): Update the large comment above the function to
730 discuss Version 5 DWP files as well, with references. Update all the
731 version checks in the function to check for version 5 as well. Add new
732 section at the end to create dwp hash table for version 5.
733 (create_dwp_v2_section): Rename function to
734 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
735 Add V5 to error message text.
736 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
737 into calls to create_dwp_v2_or_v5_section.
738 (create_dwo_unit_in_dwp_v5): New function.
739 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
740 check for version2; add else clause to handle version 5.
741 (open_and_init_dwo_file): Add code to check dwarf version & only call
742 create_debug_types_hash_table (with sections.types) if version is not 5;
743 else call create_debug_type_hash_table, with sections.info.
744 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
746 (dwarf2_locate_v5_dwp_sections): New function.
747 (open_and_init_dwp_file): Add else-if clause for version 5 to call
748 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
750 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
752 * regcache.h (class regcache): Remove friend
753 registers_changed_ptid.
754 <regcache_thread_ptid_changed>: Remove.
756 * regcache.c (regcache::regcaches): Rename to...
757 (regcaches): ... this. Make static.
758 (get_thread_arch_aspace_regcache): Update.
759 (regcache::regcache_thread_ptid_changed): Rename to...
760 (regcache_thread_ptid_changed): ... this. Update.
761 (class regcache_access): Remove.
762 (regcaches_test): Update.
763 (_initialize_regcache): Update.
764 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
767 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
769 * regcache.h (class regcache) <current_regcache>: Rename to...
770 <regcaches>: ... this. Move doc here.
771 * regcache.c (regcache::current_regcache) Rename to...
772 (regcache::regcaches): ... this. Move doc to header.
773 (get_thread_arch_aspace_regcache): Update.
774 (regcache::regcache_thread_ptid_changed): Update.
775 (registers_changed_ptid): Update.
776 (class regcache_access) <current_regcache_size>: Rename to...
777 <regcaches_size>: ... this.
778 (current_regcache_test): Rename to...
779 (regcaches_test): ... this.
780 (_initialize_regcache): Update.
782 2020-08-06 Victor Collod <vcollod@nvidia.com>
784 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
786 2020-08-05 Kevin Buettner <kevinb@redhat.com>
788 * corelow.c (core_target::build_file_mappings): Don't output
789 null pathname in warning.
791 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
793 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
794 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
795 gdb.dwarf2/dw2-single-line-discriminators.exp,
796 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
798 2020-08-05 Tom Tromey <tromey@adacore.com>
801 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
802 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
803 Fix off-by-one and type size errors in ordinary case.
805 2020-08-05 Tom de Vries <tdevries@suse.de>
807 * gdbtypes.c (type_not_allocated, type_not_associated): Use
808 "prop->const_val () == 0" instead of "prop->const_val () != 0".
810 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
812 * frame.h (frame_id_p): Return bool.
813 (frame_id_artificial_p): Return bool.
814 (frame_id_eq): Return bool.
815 (has_stack_frames): Return bool.
816 (get_selected_frame): Fix typo in comment.
817 (get_frame_pc_if_available): Return bool.
818 (get_frame_address_in_block_if_available): Return bool.
819 (get_frame_func_if_available): Return bool.
820 (read_frame_register_unsigned): Return bool.
821 (get_frame_register_bytes): Return bool.
822 (safe_frame_unwind_memory): Return bool.
823 (deprecated_frame_register_read): Return bool.
824 (frame_unwinder_is): Return bool.
825 * frame.c (struct frame_info) <prev_arch::p>: Change type to
827 <this_id::p>: Likewise.
829 (frame_stash_add): Return bool.
830 (get_frame_id): Use bool.
831 (frame_id_build_special) Use bool.
832 (frame_id_build_unavailable_stack): Use bool.
833 (frame_id_build): Use bool.
834 (frame_id_p): Return bool, use true/false instead of 1/0.
835 (frame_id_artificial_p): Likewise.
836 (frame_id_eq): Likewise.
837 (frame_id_inner): Likewise.
838 (get_frame_func_if_available): Likewise.
839 (read_frame_register_unsigned): Likewise.
840 (deprecated_frame_register_read): Likewise.
841 (get_frame_register_bytes): Likewise.
842 (has_stack_frames): Likewise.
843 (inside_main_func): Likewise.
844 (inside_entry_func): Likewise.
845 (get_frame_pc_if_available): Likewise.
846 (get_frame_address_in_block_if_available): Likewise.
847 (frame_unwinder_is): Likewise.
848 (safe_frame_unwind_memory): Likewise.
849 (frame_unwind_arch): Likewise.
851 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
853 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
854 type to cached_copy_status.
855 (fprintf_frame): Adjust.
856 (get_frame_func_if_available): Adjust.
857 (frame_cleanup_after_sniffer): Adjust.
859 2020-08-04 Mark Wielaard <mark@klomp.org>
861 * MAINTAINERS (Write After Approval): Update email address.
863 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
865 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
866 dynamic_prop::const_val.
868 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
870 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
873 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
875 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
877 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
879 * configure.tgt: Set gdb_sim for bpf-*-* targets.
881 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
882 Jose E. Marchesi <jose.marchesi@oracle.com>
884 * configure.tgt: Add entry for bpf-*-*.
885 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
886 (ALLDEPFILES): Add bpf-tdep.c.
887 * bpf-tdep.c: New file.
888 * MAINTAINERS: Add bpf target and maintainer.
889 * NEWS: Mention the support for the new target.
891 2020-08-04 Tom de Vries <tdevries@suse.de>
894 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
897 2020-08-03 John Baldwin <jhb@FreeBSD.org>
899 * syscalls/freebsd.xml: Regenerate.
901 2020-08-03 John Baldwin <jhb@FreeBSD.org>
903 * syscalls/update-freebsd.sh: Fix usage and year range.
905 2020-08-03 Tom de Vries <tdevries@suse.de>
908 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
909 DW_LNE_lo_user/DW_LNE_hi_user range.
911 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
914 * ada-lang.c (ada_modulus): Return 0 if property is not of const
917 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
919 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
921 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
923 * breakpoint.c (set_breakpoint_condition): Update the condition
924 expressions after checking that the input condition string parses
925 successfully and does not contain junk at the end.
927 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
929 * breakpoint.c (set_breakpoint_condition): Update the
930 condition string after parsing the new condition successfully.
932 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
934 * proc-api.c (_STRUCTURED_PROC): Don't define.
935 * proc-events.c: Likewise.
936 * proc-flags.c: Likewise.
937 * proc-why.c: Likewise.
938 * procfs.c: Likewise.
940 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
941 * configure, config.in: Regenerate.
943 2020-07-30 Tom de Vries <tdevries@suse.de>
946 * ui-style.h (struct ui_file_style::color): Wrap m_value and
947 m_red/m_green/m_blue in a union.
949 2020-07-29 Tom de Vries <tdevries@suse.de>
952 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
954 2020-07-28 Tom Tromey <tromey@adacore.com>
957 * symtab.h (find_pc_partial_function_sym): Declare.
958 * cli/cli-cmds.c (disassemble_command): Use
959 find_pc_partial_function_sym. Check asm_demangle.
960 * blockframe.c (cache_pc_function_sym): New global.
961 (cache_pc_function_name): Remove.
962 (clear_pc_function_cache): Update.
963 (find_pc_partial_function_sym): New function, from
964 find_pc_partial_function.
965 (find_pc_partial_function): Rewrite using
966 find_pc_partial_function_sym.
968 2020-07-28 Tom Tromey <tromey@adacore.com>
970 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
973 2020-07-28 Tom Tromey <tromey@adacore.com>
975 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
976 <DW_OP_GNU_variable_value>: Cast to address type.
978 2020-07-28 Kamil Rytarowski <n54@gmx.com>
980 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
981 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
982 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
983 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
984 (nbsd_get_siginfo_type): New.
985 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
986 (_initialize_nbsd_tdep): New.
988 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
991 * configure: Regenerated.
993 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
996 * configure: Regenerated.
998 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1000 * python/py-frame.c: Remove 'user-regs.h' include.
1001 (frapy_read_register): Rewrite to make use of
1002 gdbpy_parse_register_id.
1003 * python/py-registers.c (gdbpy_parse_register_id): New function,
1004 moved here from python/py-unwind.c. Updated the return type, and
1005 also accepts register descriptor objects.
1006 * python/py-unwind.c: Remove 'user-regs.h' include.
1007 (pyuw_parse_register_id): Moved to python/py-registers.c.
1008 (unwind_infopy_add_saved_register): Update to use
1009 gdbpy_parse_register_id.
1010 (pending_framepy_read_register): Likewise.
1011 * python/python-internal.h (gdbpy_parse_register_id): Declare.
1013 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
1015 * python/py-registers.c: Add 'user-regs.h' include.
1016 (register_descriptor_iter_find): New function.
1017 (register_descriptor_iterator_object_methods): New static global
1019 (register_descriptor_iterator_object_type): Add pointer to methods
1022 2020-07-27 John Baldwin <jhb@FreeBSD.org>
1024 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
1025 for all architectures on FreeBSD 11.3 and later.
1027 2020-07-27 Tom Tromey <tromey@adacore.com>
1029 * gcore.h (load_corefile): Don't declare.
1031 2020-07-27 Tom de Vries <tdevries@suse.de>
1033 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
1034 * config.in: Regenerate.
1035 * configure: Regenerate.
1037 2020-07-26 Eli Zaretskii <eliz@gnu.org>
1039 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
1040 ws2tcpip.h. When checking whether socklen_t type is defined, use
1041 ws2tcpip.h if it is available and sys/socket.h isn't.
1042 * configure: Regenerate.
1043 * config.in: Regenerate.
1045 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
1049 * valops.c (value_ind): Pass address to
1050 readjust_indirect_value_type.
1051 * value.c (readjust_indirect_value_type): Make parameter
1052 non-const, and add extra address parameter. Resolve original type
1054 * value.h (readjust_indirect_value_type): Update function
1055 signature and comment.
1057 2020-07-25 Tom de Vries <tdevries@suse.de>
1060 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
1063 2020-07-24 Aaron Merey <amerey@redhat.com>
1065 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
1066 * configure: Rebuild.
1068 2020-07-23 Kevin Buettner <kevinb@redhat.com>
1071 * corelow.c (_initialize_corelow): Add period to help text
1072 for "maintenance print core-file-backed-mappings".
1074 2020-07-23 Pedro Alves <pedro@palves.net>
1076 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
1077 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
1079 * frame.c (frame_cache_generation, get_frame_cache_generation):
1081 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
1082 (get_prev_frame_if_no_cycle): On exception, don't touch
1083 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
1084 * frame.h (get_frame_cache_generation): Declare.
1086 2020-07-23 Tom de Vries <tdevries@suse.de>
1089 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
1090 New default constructor.
1092 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
1094 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
1095 exclude non-statement entries.
1097 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1099 * NEWS (New commands): Mention new command
1100 "maintenance print core-file-backed-mappings".
1102 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1104 * corelow.c (gdbcmd.h): Include.
1105 (core_target::info_proc_mappings): New method.
1106 (get_current_core_target): New function.
1107 (maintenance_print_core_file_backed_mappings): New function.
1108 (_initialize_corelow): Add core-file-backed-mappings to
1109 "maint print" commands.
1111 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1113 * linux-tdep.c (dump_note_entry_p): New function.
1114 (linux_dump_mapping_p_ftype): New typedef.
1115 (linux_find_memory_regions_full): Add new parameter,
1116 should_dump_mapping_p.
1117 (linux_find_memory_regions): Adjust call to
1118 linux_find_memory_regions_full.
1119 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
1120 call to linux_find_memory_regions_full.
1122 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1124 * corelow.c (solist.h, unordered_map): Include.
1125 (class core_target): Add field m_core_file_mappings and
1126 method build_file_mappings.
1127 (core_target::core_target): Call build_file_mappings.
1128 (core_target::~core_target): Free memory associated with
1129 m_core_file_mappings.
1130 (core_target::build_file_mappings): New method.
1131 (core_target::xfer_partial): Use m_core_file_mappings
1132 for memory transfers.
1133 * linux-tdep.c (linux_read_core_file_mappings): New
1135 (linux_core_info_proc_mappings): Rewrite to use
1136 linux_read_core_file_mappings.
1137 (linux_init_abi): Register linux_read_core_file_mappings.
1139 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1141 * arch-utils.c (default_read_core_file_mappings): New function.
1142 * arch-utils.c (default_read_core_file_mappings): Declare.
1143 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
1144 * gdbarch.h, gdbarch.c: Regenerate.
1146 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1149 * corelow.c (core_target:xfer_partial): Revise
1150 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
1151 case after first checking the stratum beneath the core
1153 (has_all_memory): Return true.
1154 * target.c (raw_memory_xfer_partial): Revise comment
1155 regarding use of has_all_memory.
1157 2020-07-22 Kevin Buettner <kevinb@redhat.com>
1159 * exec.h (section_table_xfer_memory): Revise declaration,
1160 replacing section name parameter with an optional callback
1162 * exec.c (section_table_xfer_memory): Likewise.
1163 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
1164 of section_table_xfer_memory.
1166 2020-07-22 Tom Tromey <tromey@adacore.com>
1168 * mi/mi-cmd-stack.c (list_args_or_locals): Use
1169 lookup_symbol_search_name.
1171 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
1173 * python/py-registers.c (gdbpy_register_object_data_init): Remove
1174 redundant local variable.
1175 (gdbpy_get_register_descriptor): Extract descriptor vector as a
1176 reference, not pointer, update code accordingly.
1178 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1179 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1181 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
1182 * jit.c (jit_breakpoint_re_set_internal): Use the
1183 `skip_jit_symbol_lookup` field.
1185 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1186 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1188 * jit.c (jit_read_descriptor): Define the descriptor address once,
1190 (jit_breakpoint_deleted): Move the declaration of the loop variable
1191 `iter` into the loop header.
1192 (jit_breakpoint_re_set_internal): Move the declaration of the local
1193 variable `objf_data` to the first point of definition.
1194 (jit_event_handler): Move the declaration of local variables
1195 `code_entry`, `entry_addr`, and `objf` to their first point of use.
1196 Rename `objf` to `jited`.
1198 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1200 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1202 * jit.c (get_jiter_objfile_data): Update.
1204 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1205 Simon Marchi <simon.marchi@polymtl.ca>
1207 * jit.c (struct jit_program_space_data): Remove.
1208 (jit_program_space_key): Remove.
1209 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1211 (get_jit_program_space_data): Remove.
1212 (jit_breakpoint_deleted): Iterate on all of the program space's
1214 (jit_inferior_init): Likewise.
1215 (jit_breakpoint_re_set_internal): Likewise. Also change return
1217 (jit_breakpoint_re_set): Pass current_program_space to
1218 jit_breakpoint_re_set_internal.
1220 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1222 * jit.h (struct jiter_objfile_data) <cached_code_address,
1223 jit_breakpoint>: Move to here from ...
1224 * jit.c (jit_program_space_data): ... here.
1225 (jiter_objfile_data::~jiter_objfile_data): Update.
1226 (jit_breakpoint_deleted): Update.
1227 (jit_breakpoint_re_set_internal): Update.
1229 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1231 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1233 (jit_read_descriptor): Remove NULL check.
1234 (jit_event_handler): Add an assertion.
1236 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1238 * jit.h (struct jit_objfile_data): Split into...
1239 (struct jiter_objfile_data): ... this ...
1240 (struct jited_objfile_data): ... and this.
1241 * objfiles.h (struct objfile) <jit_data>: Remove.
1242 <jiter_data, jited_data>: New fields.
1243 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1244 (jiter_objfile_data::~jiter_objfile_data): ... this.
1245 (get_jit_objfile_data): Rename to ...
1246 (get_jiter_objfile_data): ... this.
1247 (add_objfile_entry): Update.
1248 (jit_read_descriptor): Use get_jiter_objfile_data.
1249 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1250 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1251 (jit_inferior_exit_hook): Use objfile's jited_data field.
1253 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1255 * jit.h: Forward-declare `struct minimal_symbol`.
1256 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1257 constructor, destructor, and an objfile* field.
1258 * jit.c (jit_objfile_data): Remove.
1259 (struct jit_objfile_data): Migrate from here to jit.h.
1260 (jit_objfile_data::~jit_objfile_data): New destructor
1261 implementation with code moved from free_objfile_data.
1262 (free_objfile_data): Delete.
1263 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1264 (jit_find_objf_with_entry_addr): Ditto.
1265 (jit_inferior_exit_hook): Ditto.
1266 (_initialize_jit): Remove the call to
1267 register_objfile_data_with_cleanup.
1268 * objfiles.h (struct objfile) <jit_data>: New field.
1270 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1272 * jit.h: Forward-declare `struct objfile`.
1273 (jit_event_handler): Add a second parameter, the JITer objfile.
1274 * jit.c (jit_read_descriptor): Change the signature to take the
1275 JITer objfile as an argument instead of the jit_program_space_data.
1276 (jit_inferior_init): Update the call to jit_read_descriptor.
1277 (jit_event_handler): Use the new JITer objfile argument when calling
1278 jit_read_descriptor.
1279 * breakpoint.c (handle_jit_event): Update the call to
1280 jit_event_handler to pass the JITer objfile.
1282 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1284 * gdbarch.c: Regenerate.
1285 * gdbarch.h: Regenerate.
1286 * gdbarch.sh (handle_segmentation_fault): Remove method.
1287 * infrun.c (handle_segmentation_fault): Remove.
1288 (print_signal_received_reason): Remove call to
1289 handle_segmentation_fault.
1291 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1293 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1294 Rename to sparc64_linux_report_signal_info and add siggnal
1296 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1297 instead of sparc64_linux_handle_segmentation_fault.
1299 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1301 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1302 i386_linux_report_signal_info instead of
1303 i386_linux_handle_segmentation_fault.
1304 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1305 to i386_linux_report_signal_info and add siggnal argument.
1306 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1307 of i386_linux_handle_segmentation_fault.
1308 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1309 to i386_linux_report_signal_info and add siggnal argument.
1311 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1313 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1316 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1318 * gdbarch.c: Regenerate.
1319 * gdbarch.h: Regenerate.
1320 * gdbarch.sh (report_signal_info): New method.
1321 * infrun.c (print_signal_received_reason): Invoke gdbarch
1322 report_signal_info hook if present.
1324 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1326 * python/py-registers.c : Add 'unordered_map' include.
1327 (gdbpy_new_reggroup): Renamed to...
1328 (gdbpy_get_reggroup): ...this. Update to only create register
1329 group descriptors when needed.
1330 (gdbpy_reggroup_iter_next): Update.
1332 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1334 * python/py-registers.c (gdbpy_register_object_data): New static
1336 (gdbpy_register_object_data_init): New function.
1337 (gdbpy_new_register_descriptor): Renamed to...
1338 (gdbpy_get_register_descriptor): ...this, and update to reuse
1339 existing register descriptors where possible.
1340 (gdbpy_register_descriptor_iter_next): Update.
1341 (gdbpy_initialize_registers): Register new gdbarch data.
1343 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1345 * linux-nat.c (stopped_pids): Make static.
1347 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1350 * gdbtypes.c (ada_discrete_type_low_bound,
1351 ada_discrete_type_high_bound): Handle undefined bounds.
1353 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1355 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1357 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1360 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1362 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1363 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1364 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1365 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1366 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1369 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1371 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1372 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1373 which are deprecated in Guile 3.0.
1374 * configure.ac (try_guile_versions): Add "guile-3.0".
1375 * configure (try_guile_versions): Regenerate.
1376 * NEWS: Update entry.
1378 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1379 Doug Evans <dje@google.com>
1382 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1383 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1384 USING_GUILE_BEFORE_2_2.
1385 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1386 Change type to 'scm_t_port_type *'.
1387 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1388 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1389 parameter and honor it. Update callers.
1390 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1391 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1393 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1394 USING_GUILE_BEFORE_2_2.
1395 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1396 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1397 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1398 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1399 and 'SCM_PORT_TYPE'.
1400 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1401 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1402 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1403 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1404 [!USING_GUILE_BEFORE_2_2]: New functions.
1405 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1406 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1407 'gdbscm_memory_port_read'.
1408 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1409 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1410 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1412 (ioscm_init_memory_port): Remove.
1413 (ioscm_init_memory_port_stream): New function
1414 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1416 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1417 Return scm_from_uint (0).
1418 (gdbscm_set_memory_port_read_buffer_size_x)
1419 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1420 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1421 Return scm_from_uint (0).
1422 (gdbscm_set_memory_port_write_buffer_size_x)
1423 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1424 * configure.ac (try_guile_versions): Add "guile-2.2".
1425 * configure: Regenerate.
1428 2020-07-18 Tom Tromey <tom@tromey.com>
1430 * linux-nat.c (linux_multi_process): Remove.
1431 (linux_nat_target::supports_multi_process): Return true.
1433 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1435 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1436 (riscv_lookup_target_description): Return pointer out of
1438 * target-descriptions.c (allocate_target_description): Add
1440 (target_desc_deleter::operator()): Likewise.
1441 * target-descriptions.h (struct target_desc_deleter): Moved to
1443 (target_desc_up): Likewise.
1445 2020-07-17 Tom Tromey <tromey@adacore.com>
1447 * linux-nat.c (linux_nat_target::supports_non_stop)
1448 (linux_nat_target::always_non_stop_p): Use "true".
1449 (linux_nat_target::supports_disable_randomization): Use "true" and
1452 2020-07-16 Caroline Tice <cmtice@google.com>
1454 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1455 (RNGLIST_HEADER_SIZE64): New constant definition.
1456 (struct dwop_section_names): Add rnglists_dwo.
1457 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1458 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1459 (struct dwo_sections): Add rnglists field.
1460 (read_attribut_reprocess): Add tag parameter.
1461 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1462 (cu_debug_rnglists_section): New function (decl & definition).
1463 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1464 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1465 die whose range is being checked; get rnglist section from
1466 cu_debug_rnglists_section, to get from either objfile or dwo file as
1467 appropriate. Add cases for DW_RLE_base_addressx,
1468 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1469 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1470 test inside if-condition and updating complaint message.
1471 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1472 dwarf2_rnglists_process.
1473 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1474 dwarf2_ranges_process.
1475 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1476 need_ranges_base and update comment appropriately. Also pass die tag
1477 to dwarf2_ranges_read.
1478 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1479 need_ranges_base and update comment appropriately. Also pass die tag
1480 to dwarf2_ranges_process.
1481 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1482 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1483 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1484 need_ranges_base and update comment appropriately. Also pass die tag
1485 to read_attribute_reprocess and dwarf2_ranges_read.
1486 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1487 and update function comment appropriately.
1488 (read_loclist_index): Call read_loclists_rnglists_header instead of
1489 read_loclist_header.
1490 (read_rnglist_index): New function.
1491 (read_attribute_reprocess): Add tag parameter. Add code for
1492 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1493 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1495 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1497 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1500 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1502 * arch-utils.c (show_architecture): Update formatting of messages.
1504 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1506 * gdbtypes.h (struct type) <bounds>: Handle array and string
1508 * ada-lang.c (assign_aggregate): Use type::bounds on
1510 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1511 * c-varobj.c (c_number_of_children): Likewise.
1512 (c_describe_child): Likewise.
1513 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1514 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1515 (f_type_print_base): Likewise.
1516 * f-valprint.c (f77_array_offset_tbl): Likewise.
1517 (f77_get_upperbound): Likewise.
1518 (f77_print_array_1): Likewise.
1519 * guile/scm-type.c (gdbscm_type_range): Likewise.
1520 * m2-typeprint.c (m2_array): Likewise.
1521 (m2_is_long_set_of_type): Likewise.
1522 * m2-valprint.c (get_long_set_bounds): Likewise.
1523 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1524 * python/py-type.c (typy_range): Likewise.
1525 * rust-lang.c (rust_internal_print_type): Likewise.
1526 * type-stack.c (type_stack::follow_types): Likewise.
1527 * valarith.c (value_subscripted_rvalue): Likewise.
1528 * valops.c (value_cast): Likewise.
1530 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1532 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1533 callers to use the equivalent accessor methods.
1535 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1537 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1538 (struct type) <bit_stride>: New method.
1539 (TYPE_BIT_STRIDE): Remove.
1540 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1542 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1544 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1545 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1546 callers to use the equivalent accessor methods instead.
1548 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1550 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1551 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1552 callers to use the equivalent accessor methods instead.
1554 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1556 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1557 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1558 to use dynamic_prop::kind.
1560 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1562 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1563 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1564 to get the bound property's kind and check against
1567 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1569 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1570 all callers to use type::range_bounds followed by
1571 dynamic_prop::{low,high}.
1573 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1575 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1576 const_val, set_const_val, baton, set_locexpr, set_loclist,
1577 set_addr_offset, variant_parts, set_variant_parts,
1578 original_type, set_original_type>: New methods.
1579 <kind>: Rename to...
1580 <m_kind>: ... this. Update all users to use the new methods
1582 <data>: Rename to...
1583 <m_data>: ... this. Update all users to use the new methods
1586 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1588 * gdbtypes.c (get_discrete_bounds): Return failure if
1589 the range type's bounds are not both defined and constant
1591 (get_array_bounds): Update comment. Remove undefined bound check.
1593 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1595 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1596 the type::bounds method directly.
1598 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1600 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1601 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1602 are used to set the range type's bounds to use set_bounds.
1604 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1606 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1608 2020-07-10 Pedro Alves <pedro@palves.net>
1610 * gdbthread.h (inferior_ref): Define.
1611 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1612 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1614 (scoped_restore_current_thread::restore):
1615 Adjust to gdb::ref_ptr.
1616 (scoped_restore_current_thread::~scoped_restore_current_thread):
1617 Remove manual decref handling.
1618 (scoped_restore_current_thread::scoped_restore_current_thread):
1620 inferior_ref::new_reference/thread_info_ref::new_reference.
1621 Incref the thread before calling get_frame_id instead of after.
1622 Let TARGET_CLOSE_ERROR propagate.
1624 2020-07-10 Pedro Alves <pedro@palves.net>
1626 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1627 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1628 NOT_AVAILABLE_ERROR.
1629 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1630 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1632 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1633 Pedro Alves <pedro@palves.net>
1636 * infrun.c (threads_are_resumed_pending_p): Delete.
1637 (do_target_wait): Remove threads_are_executing and
1638 threads_are_resumed_pending_p checks from the inferior_matches
1639 lambda. Update comments.
1641 2020-07-10 Pedro Alves <pedro@palves.net>
1644 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1647 2020-07-10 Pedro Alves <pedro@palves.net>
1650 * infrun.c (handle_no_resumed): Handle multiple targets.
1652 2020-07-10 Pedro Alves <pedro@palves.net>
1655 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1658 2020-07-10 Pedro Alves <pedro@palves.net>
1661 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1662 threads, not all threads.
1664 2020-07-10 Pedro Alves <pedro@palves.net>
1667 * remote.c (remote_target::open_1): Pass remote target pointer as
1668 data to create_async_event_handler.
1669 (remote_async_inferior_event_handler): Mark async event handler
1670 before returning if the remote target still has either pending
1671 events or unacknowledged notifications.
1673 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1675 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1677 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1680 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1682 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1685 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1687 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1688 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1689 AT_FREEBSD_PS_STRINGS.
1691 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1693 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1694 of debugfile path on Windows.
1696 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1698 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1701 2020-07-08 Tom Tromey <tromey@adacore.com>
1703 * ada-lang.c (ada_exception_message_1): Use read_memory.
1705 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1708 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1709 special handling for inline frames.
1710 * findvar.c (value_of_register_lazy): Skip inline frames when
1711 creating lazy register values.
1712 * frame.c (frame_id_computed_p): Delete definition.
1713 * frame.h (frame_id_computed_p): Delete declaration.
1715 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1717 * NEWS: Mention additions to Python API.
1718 * python/py-arch.c (archpy_register_groups): New function.
1719 (arch_object_methods): Add 'register_groups' method.
1720 * python/py-registers.c (reggroup_iterator_object): New struct.
1721 (reggroup_object): New struct.
1722 (gdbpy_new_reggroup): New function.
1723 (gdbpy_reggroup_to_string): New function.
1724 (gdbpy_reggroup_name): New function.
1725 (gdbpy_reggroup_iter): New function.
1726 (gdbpy_reggroup_iter_next): New function.
1727 (gdbpy_new_reggroup_iterator): New function
1728 (gdbpy_initialize_registers): Register new types.
1729 (reggroup_iterator_object_type): Define new Python type.
1730 (gdbpy_reggroup_getset): New static global.
1731 (reggroup_object_type): Define new Python type.
1732 * python/python-internal.h
1734 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1736 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1737 * python/py-arch.c (archpy_registers): New function.
1738 (arch_object_methods): Add 'registers' method.
1739 * python/py-registers.c: New file.
1740 * python/python-internal.h
1741 (gdbpy_new_register_descriptor_iterator): Declare.
1742 (gdbpy_initialize_registers): Declare.
1743 * python/python.c (do_start_initialization): Call
1744 gdbpy_initialize_registers.
1745 * NEWS: Mention additions to the Python API.
1747 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1749 * NEWS: Mention new Python API method.
1750 * python/py-unwind.c (pending_framepy_architecture): New function.
1751 (pending_frame_object_methods): Add architecture method.
1753 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1755 * gdbarch.c: Regenerate.
1756 * gdbarch.h: Regenerate.
1757 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1758 (gdbarch_data): Use internal_error for the case where
1759 deprecated_set_gdbarch_data was originally needed.
1760 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1761 and use passed in obstack.
1762 (libunwind_frame_set_descr): Should no longer get back NULL from
1764 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1766 * user-regs.c (user_regs_init): Update parameters, and use passed
1768 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1769 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1771 2020-07-06 Tom de Vries <tdevries@suse.de>
1773 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1774 End-Of-Sequence in lte_is_less_than.
1775 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1776 "gdb: Don't reorder line table entries too much when sorting".
1778 2020-07-06 Tom de Vries <tdevries@suse.de>
1781 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1783 2020-07-05 Tom de Vries <tdevries@suse.de>
1786 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1787 std::uncaught_exceptions instead of deprecated
1788 std::uncaught_exception.
1790 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1792 * macroexp.h (macro_stringify): Return
1793 gdb::unique_xmalloc_ptr<char>.
1794 * macroexp.c (macro_stringify): Likewise.
1795 * macrotab.c (fixup_definition): Update.
1797 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1799 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1800 (lex_one_token): Update.
1801 * macroexp.c (struct macro_buffer) <release>: Return
1802 gdb::unique_xmalloc_ptr<char>.
1803 (macro_stringify): Update.
1804 (macro_expand): Update.
1805 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1806 * macroexp.h (macro_expand_next): Likewise.
1808 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1810 * macroexp.h (macro_lookup_ftype): Remove.
1811 (macro_expand, macro_expand_once, macro_expand_next): Remove
1812 lookup function parameters, add scope parameter.
1813 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1814 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1815 * macroscope.h (standard_macro_lookup): Change parameter type
1817 * macroscope.c (standard_macro_lookup): Likewise.
1818 * c-exp.y (lex_one_token): Update.
1819 * macrocmd.c (macro_expand_command): Likewise.
1820 (macro_expand_once_command): Likewise.
1822 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1824 * inf-loop.c (inferior_event_handler): Remove client_data param.
1825 * inf-loop.h (inferior_event_handler): Likewise.
1826 * infcmd.c (step_1): Adjust.
1827 * infrun.c (proceed): Adjust.
1828 (fetch_inferior_event): Remove client_data param.
1829 (infrun_async_inferior_event_handler): Adjust.
1830 * infrun.h (fetch_inferior_event): Remove `void *` param.
1831 * linux-nat.c (handle_target_event): Adjust.
1832 * record-btrace.c (record_btrace_handle_async_inferior_event):
1834 * record-full.c (record_full_async_inferior_event_handler):
1836 * remote.c (remote_async_inferior_event_handler): Adjust.
1838 2020-07-01 Tom Tromey <tom@tromey.com>
1840 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1841 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1843 2020-07-01 Tom Tromey <tom@tromey.com>
1845 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1847 (tui_win_info::make_window): Merge with
1848 tui_gen_win_info::make_window.
1849 (tui_win_info::make_visible): Move from tui_gen_win_info.
1850 * tui/tui-win.c (tui_win_info::max_width): Move from
1852 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1854 <window_factory>: Likewise.
1855 * tui/tui-layout.c (tui_win_info::resize): Move from
1857 (make_standard_window): Change return type.
1858 (get_locator_window, tui_get_window_by_name): Likewise.
1859 (tui_layout_window::apply): Remove a cast.
1860 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1861 (struct tui_win_info): Merge with tui_gen_win_info.
1862 (struct tui_gen_win_info): Remove.
1864 2020-07-01 Tom Tromey <tom@tromey.com>
1866 * tui/tui-stack.h (struct tui_locator_window): Derive from
1868 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1869 <can_box>: New method.
1871 2020-07-01 Tom Tromey <tom@tromey.com>
1873 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1875 2020-07-01 Tom Tromey <tom@tromey.com>
1877 * tui/tui-regs.c (tui_data_window::display_registers_from)
1878 (tui_data_window::display_registers_from)
1879 (tui_data_window::first_data_item_displayed)
1880 (tui_data_window::delete_data_content_windows): Update.
1881 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1883 (tui_data_window::check_register_values): Update.
1884 (tui_data_item_window::rerender): Add parameters. Update.
1885 (tui_data_item_window::refresh_window): Remove.
1886 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1888 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1890 <refresh_window, max_height, min_height>: Remove.
1891 <rerender>: Add parameters.
1892 <x, y, visible>: New members.
1893 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1894 <m_item_width>: New member.
1896 2020-07-01 Tom Tromey <tom@tromey.com>
1898 * tui/tui-regs.c (tui_data_window::show_register_group)
1899 (tui_data_window::check_register_values): Update.
1900 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1903 2020-07-01 Tom Tromey <tom@tromey.com>
1905 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1908 2020-07-01 Tom Tromey <tom@tromey.com>
1910 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1911 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1913 2020-07-01 Tom Tromey <tom@tromey.com>
1915 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1916 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1917 (struct tui_line_or_address): Move from tui-data.h.
1918 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1919 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1920 (tui_cmd_window, tui_source_window_base, tui_source_window)
1921 (tui_disasm_window): Don't declare.
1922 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1924 (SINGLE_KEY): Move to tui-stack.c.
1926 2020-07-01 Tom Tromey <tom@tromey.com>
1928 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1930 * tui/tui-regs.c (class tab_expansion_file): New.
1931 (tab_expansion_file::write): New method.
1932 (tui_register_format): Change return type. Use
1934 (tui_get_register, tui_data_window::display_registers_from)
1935 (tui_data_item_window::rerender): Update.
1936 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1937 * tui/tui-io.c (tui_expand_tabs): Remove.
1939 2020-07-01 Tom Tromey <tom@tromey.com>
1941 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1943 2020-07-01 Fangrui Song <maskray@google.com>
1945 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1947 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1949 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1950 forms for DW_AT_associated and DW_AT_allocated attributes,
1951 which is already checked in function attr_to_dynamic_prop.
1953 2020-06-30 Tom Tromey <tromey@adacore.com>
1955 * dwarf2/read.c (quirk_rust_enum): Correctly call
1956 alloc_rust_variant for default-less enum.
1958 2020-06-30 Tom Tromey <tromey@adacore.com>
1961 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1964 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1966 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1967 * gdbarch.h: Re-generate.
1969 2020-06-28 Tom Tromey <tom@tromey.com>
1971 * command.h (cmd_types): Remove.
1972 (cmd_type): Don't declare.
1973 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1975 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1976 * cli/cli-decode.c (cmd_type): Remove.
1978 2020-06-27 Pedro Alves <palves@redhat.com>
1980 * fork-child.c (prefork_hook): Adjust.
1981 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1983 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1984 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1985 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1986 Remove declarations.
1987 (struct inferior) <set_tty, tty>: New methods.
1988 (struct inferior) <terminal>: Rename to ...
1989 (struct inferior) <m_terminal>: ... this and make private.
1990 * main.c (captured_main_1): Adjust.
1991 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1992 (mi_cmd_inferior_tty_show): Adjust.
1993 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1994 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1996 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1998 * configure.ac: Add --enable-libctf: handle --disable-static
2000 * acinclude.m4: sinclude ../config/enable.m4.
2001 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
2002 (LIBCTF): Substitute in.
2003 (CTF_DEPS): New, likewise.
2004 (CLIBS): libctf needs symbols from libbfd: move earlier.
2005 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
2007 * ctfread.c: Surround in ENABLE_LIBCTF.
2008 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
2009 * configure: Regenerate.
2010 * config.in: Likewise.
2012 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2014 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
2016 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
2018 * inferior.h (struct inferior) <terminal>: Change type to
2019 gdb::unique_xmalloc_ptr<char>.
2020 * inferior.c (inferior::~inferior): Don't free inf->terminal.
2021 * infcmd.c (set_inferior_io_terminal): Don't free terminal
2022 field, adjust to unique pointer.
2023 (get_inferior_io_terminal): Adjust to unique pointer.
2025 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2027 * riscv-tdep.c (riscv_print_registers_info): Loop over all
2028 registers, not just the known core set of registers.
2030 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2032 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
2033 fflags, frm, and fcsr registers.
2034 (riscv_register_reggroup_p): Remove unknown CSRs from save and
2036 (riscv_tdesc_unknown_reg): New function.
2037 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
2038 tdesc_use_registers.
2039 * riscv-tdep.h (struct gdbarch_tdep): Add
2040 unknown_csrs_first_regnum, unknown_csrs_count,
2041 duplicate_fflags_regnum, duplicate_frm_regnum, and
2042 duplicate_fcsr_regnum fields.
2044 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2046 * target-descriptions.c (tdesc_use_registers): Add new parameter a
2047 callback, use the callback (when not null) to help number unknown
2049 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
2050 (tdesc_use_registers): Add extra parameter to declaration.
2052 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2054 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
2056 (class riscv_pending_register_alias): Likewise.
2057 (riscv_register_feature::register_info): Change 'required_p' field
2058 to 'required', and change its type. Add 'check' member function.
2059 (riscv_register_feature::register_info::check): Define new member
2061 (riscv_xreg_feature): Change initialisation of 'required' field.
2062 (riscv_freg_feature): Likewise.
2063 (riscv_virtual_feature): Likewise.
2064 (riscv_csr_feature): Likewise.
2065 (riscv_check_tdesc_feature): Take extra parameter, the csr
2066 tdesc_feature, rewrite the function to use the new
2067 riscv_register_feature::register_info::check function.
2068 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
2070 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2072 * features/Makefile: Remove all references to the deleted files
2074 * features/riscv/32bit-csr.c: Deleted.
2075 * features/riscv/32bit-csr.xml: Deleted.
2076 * features/riscv/64bit-csr.c: Deleted.
2077 * features/riscv/64bit-csr.xml: Deleted.
2078 * features/riscv/rebuild-csr-xml.sh: Deleted.
2080 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2082 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
2083 whitespace error for declaration of names member variable.
2084 (struct riscv_register_feature): Add new prefer_first_name member
2085 variable, and fix whitespace error in declaration of registers.
2086 (riscv_xreg_feature): Initialize prefer_first_name field.
2087 (riscv_freg_feature): Likewise.
2088 (riscv_virtual_feature): Likewise.
2089 (riscv_csr_feature): Likewise.
2090 (riscv_register_name): Expand on comments. Remove register name
2091 modifications for CSR and virtual registers.
2093 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2095 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
2098 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
2100 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
2102 (class riscv_pending_register_alias): New class.
2103 (riscv_check_tdesc_feature): Take vector of pending aliases and
2104 populate it as appropriate.
2105 (riscv_setup_register_aliases): Delete.
2106 (riscv_gdbarch_init): Create vector of pending aliases and pass it
2107 to riscv_check_tdesc_feature in all cases. Use the vector to
2108 create the register aliases.
2110 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2112 * sol2-tdep.c (sol2_static_transform_name): Remove.
2113 (sol2_init_abi): Don't register it.
2114 * gdbarch.sh (static_transform_name): Remove.
2115 * gdbarch.c, gdbarch.h: Regenerate.
2117 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
2118 gdbarch_static_transform_name.
2119 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
2120 * stabsread.c (define_symbol) <'X'>: Remove.
2121 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
2124 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
2125 <'S'>: Remove call to gdbarch_static_transform_name.
2127 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2129 * procfs.c (procfs_pre_trace): New function.
2130 (procfs_target::create_inferior): Pass it to fork_inferior.
2132 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2134 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
2135 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
2136 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
2137 sol2-tdep.o, sparc-sol2-tdep.o.
2138 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
2139 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
2140 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
2141 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
2143 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2145 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
2146 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
2148 Remove calls to set_gdbarch_skip_solib_resolver,
2149 set_gdbarch_core_pid_to_str.
2150 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
2151 (i386_sol2_static_transform_name): Remove.
2152 (i386_sol2_init_abi): Call sol2_init_abi.
2153 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2154 set_gdbarch_static_transform_name,
2155 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2156 Use sol2_sigtramp_p.
2157 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
2158 (sol2_sigtramp_p): New function.
2159 (sol2_static_transform_name): New function.
2160 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
2161 (sol2_init_abi): New function.
2162 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
2163 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
2164 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
2165 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
2166 (sparc_sol2_static_transform_name): Remove.
2167 (sparc32_sol2_init_abi): Call sol2_init_abi.
2168 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2169 set_gdbarch_static_transform_name,
2170 set_gdbarch_skip_solib_resolver,
2171 set_gdbarch_core_pid_to_str.
2172 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
2173 (sparc_sol2_static_transform_name): Remove
2174 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
2175 call sol2_sigtramp_p.
2176 (sparc64_sol2_init_abi): Call sol2_init_abi.
2177 Remove calls to set_gdbarch_sofun_address_maybe_missing,
2178 set_gdbarch_static_transform_name,
2179 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
2181 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2183 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
2184 * exec.c (validate_exec_file): If from_tty, set both
2185 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
2186 * symfile.c (symbol_file_add_with_addrs): if always_confirm
2187 and from_tty, unconditionally ask a confirmation.
2189 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2191 * target-descriptions.c (tdesc_architecture_name): Protect against
2192 NULL pointer dereference.
2193 (maint_print_xml_tdesc_cmd): New function.
2194 (_initialize_target_descriptions): Register new 'maint print
2195 xml-tdesc' command and give it the filename completer.
2196 * NEWS: Mention new 'maint print xml-tdesc' command.
2198 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2200 * target-descriptions.c (class tdesc_compatible_info): New class.
2201 (struct target_desc): Change type of compatible vector.
2202 (tdesc_compatible_p): Update for change in type of
2203 target_desc::compatible.
2204 (tdesc_compatible_info_list): New function.
2205 (tdesc_compatible_info_arch_name): New function.
2206 (tdesc_add_compatible): Update for change in type of
2207 target_desc::compatible.
2208 (print_c_tdesc::visit_pre): Likewise.
2210 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2212 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2213 whitespace to underscore.
2214 (maint_print_c_tdesc_cmd): Use fake filename for target
2215 descriptions that came from the target.
2216 (_initialize_target_descriptions): Add filename command completion
2217 for 'maint print c-tdesc'.
2219 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2221 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2224 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2226 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2228 (dwarf2_find_location_expression): Likewise.
2229 (call_site_parameter_matches): Likewise.
2230 (dwarf2_compile_expr_to_ax): Likewise.
2231 (disassemble_dwarf_expression): Likewise.
2232 (loclist_describe_location): Likewise.
2234 2020-06-23 Pedro Alves <palves@redhat.com>
2236 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2237 progspace-and-thread.h. Include scoped-mock-context.h instead.
2238 (register_to_value_test): Use scoped_mock_context.
2239 * regcache.c: Include "scoped-mock-context.h".
2240 (cooked_read_test): Don't error out if a target is already pushed.
2241 Use scoped_mock_context. Adjust.
2242 * scoped-mock-context.h: New file.
2244 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2246 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2248 (ada_language::is_string_type_p): New member function.
2249 * c-lang.c (c_language_data): Delete la_is_string_type_p
2251 (cplus_language_data): Likewise.
2252 (asm_language_data): Likewise.
2253 (minimal_language_data): Likewise.
2254 * d-lang.c (d_language_data): Likewise.
2255 * f-lang.c (f_is_string_type_p): Delete function, implementation
2256 moved to f_language::is_string_type_p.
2257 (f_language_data): Delete la_is_string_type_p initializer.
2258 (f_language::is_string_type_p): New member function,
2259 implementation from f_is_string_type_p.
2260 * go-lang.c (go_is_string_type_p): Delete function, implementation
2261 moved to go_language::is_string_type_p.
2262 (go_language_data): Delete la_is_string_type_p initializer.
2263 (go_language::is_string_type_p): New member function,
2264 implementation from go_is_string_type_p.
2265 * language.c (language_defn::is_string_type_p): Define new member
2267 (default_is_string_type_p): Make static, add comment copied from
2269 (unknown_language_data): Delete la_is_string_type_p initializer.
2270 (unknown_language::is_string_type_p): New member function.
2271 (auto_language_data): Delete la_is_string_type_p initializer.
2272 (auto_language::is_string_type_p): New member function.
2273 * language.h (language_data): Delete la_is_string_type_p field.
2274 (language_defn::is_string_type_p): Declare new function.
2275 (default_is_string_type_p): Delete desclaration, move comment to
2277 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2278 moved to m2_language::is_string_type_p.
2279 (m2_language_data): Delete la_is_string_type_p initializer.
2280 (m2_language::is_string_type_p): New member function,
2281 implementation from m2_is_string_type_p.
2282 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2284 * opencl-lang.c (opencl_language_data): Likewise.
2285 * p-lang.c (pascal_is_string_type_p): Delete function,
2286 implementation moved to pascal_language::is_string_type_p.
2287 (pascal_language_data): Delete la_is_string_type_p initializer.
2288 (pascal_language::is_string_type_p): New member function,
2289 implementation from pascal_is_string_type_p.
2290 * rust-lang.c (rust_is_string_type_p): Delete function,
2291 implementation moved to rust_language::is_string_type_p.
2292 (rust_language_data): Delete la_is_string_type_p initializer.
2293 (rust_language::is_string_type_p): New member function,
2294 implementation from rust_is_string_type_p.
2295 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2298 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2300 * ada-lang.c (ada_language_data): Delete la_print_typedef
2302 (ada_language::print_typedef): New member function.
2303 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2304 (cplus_language_data): Likewise.
2305 (asm_language_data): Likewise.
2306 (minimal_language_data): Likewise.
2307 * d-lang.c (d_language_data): Likewise.
2308 * f-lang.c (f_language_data): Likewise.
2309 (f_language::print_typedef): New member function.
2310 * go-lang.c (go_language_data): Delete la_print_typedef
2312 * language.c (language_defn::print_typedef): Define member
2314 (unknown_language_data): Delete la_print_typedef initializer.
2315 (unknown_language::print_typedef): New member function.
2316 (auto_language_data): Delete la_print_typedef initializer.
2317 (auto_language::print_typedef): New member function.
2318 * language.h (language_data): Delete la_print_typedef field.
2319 (language_defn::print_typedef): Declare new member function.
2320 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2321 (default_print_typedef): Delete declaration.
2322 * m2-lang.c (m2_language_data): Delete la_print_typedef
2324 (m2_language::print_typedef): New member function.
2325 * objc-lang.c (objc_language_data): Delete la_print_typedef
2327 * opencl-lang.c (opencl_language_data): Likewise.
2328 * p-lang.c (pascal_language_data): Likewise.
2329 (pascal_language::print_typedef): New member function.
2330 * rust-lang.c (rust_print_typedef): Delete function,
2331 implementation moved to rust_language::print_typedef.
2332 (rust_language): Delete la_print_typedef initializer.
2333 (rust_language::print_typedef): New member function,
2334 implementation from rust_print_typedef.
2335 * typeprint.c (default_print_typedef): Delete.
2337 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2339 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2340 (ada_language::printstr): New member function.
2341 * c-lang.c (c_language_data): Delete la_printstr initializer.
2342 (cplus_language_data): Likewise.
2343 (asm_language_data): Likewise.
2344 (minimal_language_data): Likewise.
2345 * d-lang.c (d_language_data): Likewise.
2346 * f-lang.c (f_printstr): Rename to f_language::printstr.
2347 (f_language_data): Delete la_printstr initializer.
2348 (f_language::printstr): New member function, implementation from
2350 * go-lang.c (go_language_data): Delete la_printstr initializer.
2351 * language.c (language_defn::printstr): Define new member
2353 (unk_lang_printstr): Delete.
2354 (unknown_language_data): Delete la_printstr initializer.
2355 (unknown_language::printstr): New member function.
2356 (auto_language_data): Delete la_printstr initializer.
2357 (auto_language::printstr): New member function.
2358 * language.h (language_data): Delete la_printstr field.
2359 (language_defn::printstr): Declare new member function.
2360 (LA_PRINT_STRING): Update call to printstr.
2361 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2362 (m2_language_data): Delete la_printstr initializer.
2363 (m2_language::printstr): New member function, implementation from
2365 * objc-lang.c (objc_language_data): Delete la_printstr
2367 * opencl-lang.c (opencl_language_data): Likewise.
2368 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2369 (pascal_language_data): Delete la_printstr initializer.
2370 (pascal_language::printstr): New member function, implementation
2371 from pascal_printstr.
2372 * p-lang.h (pascal_printstr): Delete declaration.
2373 * rust-lang.c (rust_printstr): Update header comment.
2374 (rust_language_data): Delete la_printstr initializer.
2375 (rust_language::printstr): New member function.
2377 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2379 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2380 (ada_language::printchar): New member function.
2381 * c-lang.c (c_language_data): Delete la_printchar initializer.
2382 (cplus_language_data): Likewise.
2383 (asm_language_data): Likewise.
2384 (minimal_language_data): Likewise.
2385 * d-lang.c (d_language_data): Likewise.
2386 * f-lang.c (f_printchar): Rename to f_language::printchar.
2387 (f_language_data): Delete la_printchar initializer.
2388 (f_language::printchar): New member function, implementation from
2390 * go-lang.c (go_language_data): Delete la_printchar initializer.
2391 * language.c (unk_lang_printchar): Delete.
2392 (language_defn::printchar): Define new member function.
2393 (unknown_language_data): Delete la_printchar initializer.
2394 (unknown_language::printchar): New member function.
2395 (auto_language_data): Delete la_printchar initializer.
2396 (auto_language::printchar): New member function.
2397 * language.h (language_data): Delete la_printchar field.
2398 (language_defn::printchar): Declare new member function.
2399 (LA_PRINT_CHAR): Update call to printchar.
2400 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2401 (m2_language::printchar): New member function.
2402 * objc-lang.c (objc_language_data): Delete la_printchar
2404 * opencl-lang.c (opencl_language_data): Likewise.
2405 * p-lang.c (pascal_language_data): Delete la_printchar
2407 (pascal_language::printchar): New member function.
2408 * rust-lang.c (rust_printchar): Rename to
2409 rust_language::printchar.
2410 (rust_language_data): Delete la_printchar initializer.
2411 (rust_language::printchar): New member function, implementation
2412 from rust_printchar.
2414 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2416 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2417 (ada_language_data): Delete la_emitchar initializer.
2418 (ada_language::emitchar): New member function, implementation from
2420 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2421 (cplus_language_data): Likewise.
2422 (asm_language_data): Likewise.
2423 (minimal_language_data): Likewise.
2424 * d-lang.c (d_language_data): Likewise.
2425 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2426 (f_language_data): Delete la_emitchar initializer.
2427 (f_language::emitchar): New member function, implementation from
2429 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2430 * language.c (unk_lang_emit_char): Delete.
2431 (language_defn::emitchar): New member function definition.
2432 (unknown_language_data): Delete la_emitchar initializer.
2433 (unknown_language::emitchar): New member function.
2434 (auto_language_data): Delete la_emitchar initializer.
2435 (auto_language::emitchar): New member function.
2436 * language.h (language_data): Delete la_emitchar field.
2437 (language_defn::emitchar): New member field declaration.
2438 (LA_EMIT_CHAR): Update call to emitchar.
2439 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2440 (m2_language_data): Delete la_emitchar initializer.
2441 (m2_language::emitchar): New member function, implementation from
2443 * objc-lang.c (objc_language_data): Delete la_emitchar
2445 * opencl-lang.c (opencl_language_data): Likewise.
2446 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2447 (pascal_language_data): Delete la_emitchar initializer.
2448 (pascal_language::emitchar): New member function, implementation
2449 from pascal_emit_char.
2450 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2451 (rust_language_data): Delete la_emitchar initializer.
2452 (rust_language::emitchar): New member function, implementation
2455 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2457 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2458 (ada_language_data): Delete la_post_parser initializer.
2459 (ada_language::post_parser): New member function.
2460 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2461 (cplus_language_data): Likewise.
2462 (asm_language_data): Likewise.
2463 (minimal_language_data): Likewise.
2464 * d-lang.c (d_language_data): Likewise.
2465 * f-lang.c (f_language_data): Likewise.
2466 * go-lang.c (go_language_data): Likewise.
2467 * language.c (unknown_language_data): Likewise.
2468 (auto_language_data): Likewise.
2469 * language.h (language_data): Delete la_post_parser field.
2470 (language_defn::post_parser): New member function.
2471 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2472 * objc-lang.c (objc_language_data): Likewise.
2473 * opencl-lang.c (opencl_language_data): Likewise.
2474 * p-lang.c (pascal_language_data): Likewise.
2475 * parse.c (parse_exp_in_context): Update call to post_parser.
2476 (null_post_parser): Delete definition.
2477 * parser-defs.h (null_post_parser): Delete declaration.
2478 * rust-lang.c (rust_language_data): Delete la_post_parser
2481 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2483 * ada-lang.c (parse): Rename to ada_language::parser.
2484 (ada_language_data): Delete la_parser initializer.
2485 (ada_language::parser): New member function, implementation from
2487 * c-lang.c (c_language_data): Delete la_parser initializer.
2488 (cplus_language_data): Likewise.
2489 (asm_language_data): Likewise.
2490 (minimal_language_data): Likewise.
2491 * d-lang.c (d_language_data): Likewise.
2492 (d_language::parser): New member function.
2493 * f-lang.c (f_language_data): Delete la_parser initializer.
2494 (f_language::parser): New member function.
2495 * go-lang.c (go_language_data): Delete la_parser initializer.
2496 (go_language::parser): New member function.
2497 * language.c (unk_lang_parser): Delete.
2498 (language_defn::parser): Define new member function.
2499 (unknown_language_data): Delete la_parser initializer.
2500 (unknown_language::parser): New member function.
2501 (auto_language_data): Delete la_parser initializer.
2502 (auto_language::parser): New member function.
2503 * language.h (language_data): Delete la_parser field.
2504 (language_defn::parser): Declare new member function.
2505 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2506 (m2_language::parser): New member function.
2507 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2508 * opencl-lang.c (opencl_language_data): Likewise.
2509 * p-lang.c (pascal_language_data): Likewise.
2510 (pascal_language::parser): New member function.
2511 * parse.c (parse_exp_in_context): Update call to parser.
2512 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2513 (rust_language::parser): New member function.
2515 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2517 * top.c (print_gdb_configuration): Print --with-python-libdir
2518 configuration value.
2520 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2522 * NEWS: Mention change to the alias command.
2524 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2526 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2527 (alias_command_completer)
2528 (make_alias_options_def_group): New functions.
2529 (alias_opts, alias_option_defs): New struct and array.
2530 (alias_usage_error): Update usage.
2531 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2532 Use option framework.
2533 (_initialize_cli_cmds): Update alias command help.
2534 Update aliases command help.
2536 Add NULL for new default_args lookup_cmd argument.
2537 (valid_command_p): Rename to validate_aliased_command.
2538 Add NULL for new default_args lookup_cmd argument. Verify that the
2539 aliased_command has no default args.
2540 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2541 (lookup_cmd_1, lookup_cmd): New argument default_args.
2543 Add NULL for new default_args lookup_cmd argument.
2544 (print_help_for_command): Show default args under the layout
2545 alias some_alias = some_aliased_cmd some_alias_default_arg.
2546 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2547 xfree default_args in destructor.
2548 * cli/cli-script.c (process_next_line, do_define_command):
2549 Add NULL for new default_args lookup_cmd argument.
2550 * command.h: Declare new default_args argument in lookup_cmd
2552 * completer.c (complete_line_internal_1):
2553 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2554 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2555 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2557 * infcmd.c (_initialize_infcmd): Likewise.
2558 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2559 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2560 * python/py-param.c (add_setshow_generic): Likewise.
2561 * remote.c (_initialize_remote): Likewise.
2562 * top.c (execute_command): Prepend default_args if command has some.
2564 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2565 * tracepoint.c (validate_actionline, encode_actions_1):
2566 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2568 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2570 * jit.c (jit_read_descriptor): Use bool as the return type.
2571 (jit_breakpoint_re_set_internal): Use bool as the return type.
2572 Invert the return value logic; return true if the jit breakpoint
2573 has been successfully initialized.
2574 (jit_inferior_init): Update the call to
2575 jit_breakpoint_re_set_internal.
2577 2020-06-22 Pedro Alves <palves@redhat.com>
2580 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2581 Use the current inferior instead. Don't return
2582 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2584 * sol-thread.c (sol_thread_target::wait): Don't reference
2586 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2587 (sol_update_thread_list_callback): Use the current inferior's pid
2588 instead of inferior_ptid.
2590 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2592 * procfs.c: Cleanup many comments.
2594 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2595 (AFTER_WATCHFLAG): Replace by value.
2597 (MAIN_PROC_NAME_FORMAT): Inline ...
2598 (create_procinfo): ... here.
2600 (procfs_debug_inferior): Remove SYS_exec handling.
2601 (syscall_is_exec): Likewise.
2602 (procfs_set_exec_trap): Likewise.
2604 (syscall_is_lwp_exit): Inline in callers.
2605 (syscall_is_exit): Likewise.
2606 (syscall_is_exec): Likewise.
2607 (syscall_is_lwp_create): Likewise.
2609 (invalidate_cache): Remove #if 0 code.
2611 (make_signal_thread_runnable): Remove.
2612 (procfs_target::resume): Remove #if 0 code.
2614 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2617 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2619 (procfs_target::create_inferior): ... here.
2621 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2623 * exec.c (validate_exec_file): Ensure the build-id is up to
2624 date by calling reopen_exec_file (that checks file timestamp
2625 to decide to re-read the file).
2627 2020-06-18 Pedro Alves <palves@redhat.com>
2630 * gdbthread.h (delete_thread, delete_thread_silent)
2631 (find_thread_ptid): Update comments.
2632 * thread.c (current_thread_): New global.
2633 (is_current_thread): Move higher, and reimplement.
2634 (inferior_thread): Reimplement.
2635 (set_thread_exited): Use bool. Add assertions.
2636 (add_thread_silent): Simplify thread-reuse handling by always
2637 calling delete_thread.
2638 (delete_thread): Remove intro comment.
2639 (find_thread_ptid): Skip exited threads.
2640 (switch_to_thread_no_regs): Write to current_thread_.
2641 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2642 INFERIOR_PTID. Clear current_thread_.
2644 2020-06-18 Pedro Alves <palves@redhat.com>
2646 * aix-thread.c (pd_update): Use switch_to_thread.
2648 2020-06-18 Pedro Alves <palves@redhat.com>
2650 * ravenscar-thread.c (ravenscar_thread_target): Update.
2651 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2652 (ravenscar_thread_target::add_active_thread): ... this. Don't
2653 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2654 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2656 2020-06-18 Pedro Alves <palves@redhat.com>
2658 * nat/windows-nat.c (current_windows_thread): Remove.
2659 * nat/windows-nat.h (current_windows_thread): Remove.
2660 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2662 (display_selectors): Adjust to fetch the current
2663 windows_thread_info based on inferior_ptid.
2664 (fake_create_process): No longer write to current_windows_thread.
2665 (windows_nat_target::get_windows_debug_event):
2666 Don't set inferior_ptid or current_windows_thread.
2667 (windows_nat_target::wait): Adjust to not rely on
2668 current_windows_thread.
2669 (do_initial_windows_stuff): Now a method of windows_nat_target.
2670 Switch to the last_ptid thread.
2671 (windows_nat_target::attach): Adjust.
2672 (windows_nat_target::detach): Use switch_to_no_thread instead of
2673 writing to inferior_ptid directly.
2674 (windows_nat_target::create_inferior): Adjust.
2676 2020-06-18 Pedro Alves <palves@redhat.com>
2678 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2680 2020-06-18 Pedro Alves <palves@redhat.com>
2682 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2683 after creating it, instead of writing to inferior_ptid. Don't
2684 write to inferior_ptid.
2686 2020-06-18 Pedro Alves <palves@redhat.com>
2688 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2690 2020-06-18 Pedro Alves <palves@redhat.com>
2692 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2693 it, instead of writing to inferior_ptid.
2695 2020-06-18 Pedro Alves <palves@redhat.com>
2697 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2700 2020-06-18 Pedro Alves <palves@redhat.com>
2702 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2703 instead of writing to inferior_ptid directly.
2705 2020-06-18 Pedro Alves <palves@redhat.com>
2707 * corelow.c (core_target::close): Use switch_to_no_thread instead
2708 of writing to inferior_ptid directly.
2709 (add_to_thread_list, core_target_open): Use switch_to_thread
2710 instead of writing to inferior_ptid directly.
2712 2020-06-18 Pedro Alves <palves@redhat.com>
2714 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2716 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2718 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2719 inferior_ptid directly.
2720 (darwin_nat_target::init_thread_list): Switch to thread, instead
2721 of writing to inferior_ptid.
2722 (darwin_nat_target::attach): Don't write to inferior_ptid.
2723 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2725 2020-06-18 Pedro Alves <palves@redhat.com>
2727 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2729 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2730 Instead use switch_to_thread.
2731 (gnu_nat_target::detach): Use switch_to_no_thread
2732 instead of writing to inferior_ptid directly. Used passed-in
2733 inferior instead of looking up the inferior by pid.
2735 2020-06-18 Pedro Alves <palves@redhat.com>
2737 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2740 2020-06-18 Pedro Alves <palves@redhat.com>
2742 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2744 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2746 (nto_procfs_target::detach): Avoid referencing
2747 inferior_ptid. Use switch_to_no_thread instead of writing to
2748 inferior_ptid directly.
2749 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2750 instead of writing to inferior_ptid directly.
2751 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2754 2020-06-18 Pedro Alves <palves@redhat.com>
2756 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2757 after creating it, instead of writing to inferior_ptid.
2758 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2759 to inferior_ptid directly.
2760 (gdbsim_target::wait): Don't write to inferior_ptid.
2762 2020-06-18 Pedro Alves <palves@redhat.com>
2764 * remote.c (remote_target::remote_notice_new_inferior): Use
2765 switch_to_thread instead of writing to inferior_ptid directly.
2766 (remote_target::add_current_inferior_and_thread): Use
2767 switch_to_no_thread instead of writing to inferior_ptid directly.
2768 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2769 and switch_to_thread instead of using set_current_inferior or
2770 writing to inferior_ptid directly.
2772 2020-06-18 Pedro Alves <palves@redhat.com>
2774 * tracectf.c (ctf_target_open): Switch to added thread instead of
2775 writing to inferior_ptid directly.
2776 (ctf_target::close): Use switch_to_no_thread instead of writing to
2777 inferior_ptid directly.
2779 2020-06-18 Pedro Alves <palves@redhat.com>
2781 * tracefile-tfile.c (tfile_target_open): Don't write to
2782 inferior_ptid directly, instead switch to added thread.
2783 (tfile_target::close): Use switch_to_no_thread instead of writing
2784 to inferior_ptid directly.
2786 2020-06-18 Pedro Alves <palves@redhat.com>
2788 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2789 (procfs_target::detach): Use switch_to_no_thread
2790 instead of writing to inferior_ptid directly.
2791 (do_attach): Change return type to void. Switch to the added
2793 (procfs_target::create_inferior): Switch to the added thread.
2794 (procfs_do_thread_registers): Don't write to inferior_ptid.
2796 2020-06-18 Pedro Alves <palves@redhat.com>
2798 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2799 of writing to inferior_ptid.
2800 (scoped_restore_exited_inferior): Delete.
2801 (handle_vfork_child_exec_or_exit): Simplify using
2802 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2803 instead of writing to inferior_ptid.
2804 (THREAD_STOPPED_BY): Delete.
2805 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2806 (thread_stopped_by_hw_breakpoint): Delete.
2807 (save_waitstatus): Use
2808 scoped_restore_current_thread+switch_to_thread, and call
2809 target_stopped_by_watchpoint instead of
2810 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2811 instead of thread_stopped_by_sw_breakpoint, and
2812 target_stopped_by_hw_breakpoint instead of
2813 thread_stopped_by_hw_breakpoint.
2814 (handle_inferior_event)
2815 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2816 inferior_ptid directly, nor
2817 set_current_inferior/set_current_program_space. Use
2818 switch_to_thread / switch_to_inferior_no_thread instead.
2820 2020-06-18 Pedro Alves <palves@redhat.com>
2822 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2823 instead of writing to inferior_ptid.
2825 2020-06-18 Pedro Alves <palves@redhat.com>
2827 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2829 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2830 to the added thread.
2831 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2832 instead of writing to inferior_ptid.
2834 2020-06-18 Pedro Alves <palves@redhat.com>
2836 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2837 (register_to_value_test): Mock a program_space too. Heap-allocate
2838 the address space. Don't write to inferior_ptid. Use
2839 switch_to_thread instead.
2841 2020-06-18 Pedro Alves <palves@redhat.com>
2843 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2845 (find_signalled_thread()): New, factored out from
2846 linux_make_corefile_notes and adjusted to handle exited threads.
2847 (linux_make_corefile_notes): Adjust to use the new
2848 find_signalled_thread.
2850 2020-06-18 Pedro Alves <palves@redhat.com>
2852 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2853 of saving/restoring inferior_ptid.
2855 2020-06-17 Tom Tromey <tom@tromey.com>
2857 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2858 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2860 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2862 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2864 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2867 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2869 * regformats/reg-arm.dat: Remove.
2870 * regformats/reg-bfin.dat: Remove.
2871 * regformats/reg-cris.dat: Remove.
2872 * regformats/reg-crisv32.dat: Remove.
2873 * regformats/reg-m32r.dat: Remove.
2874 * regformats/reg-tilegx.dat: Remove.
2875 * regformats/reg-tilegx32.dat: Remove.
2877 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2879 * features/Makefile (WHICH): Remove arm files.
2880 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2881 * regformats/arm/arm-with-neon.dat: Remove.
2882 * regformats/arm/arm-with-vfpv2.dat: Remove.
2883 * regformats/arm/arm-with-vfpv3.dat: Remove.
2885 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2887 * features/Makefile (XMLTOC): Remove rx.xml.
2889 2020-06-17 Pedro Alves <palves@redhat.com>
2891 * gdbthread.h (thread_control_state) <trap_expected> Update
2894 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2896 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2897 ada_language::lookup_symbol_nonlocal.
2898 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2899 (ada_language::lookup_symbol_nonlocal): New member function,
2900 implementation from ada_lookup_symbol_nonlocal.
2901 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2903 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2905 (cplus_language::lookup_symbol_nonlocal): New member function.
2906 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2907 (minimal_language_data) Likewise.
2908 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2909 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2911 (d_language::lookup_symbol_nonlocal): New member function.
2912 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2914 (f_language::lookup_symbol_nonlocal): New member function.
2915 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2917 * language.c (unknown_language_data): Likewise.
2918 (auto_language_data): Likewise.
2919 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2921 (language_defn::lookup_symbol_nonlocal): New member function.
2922 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2924 * objc-lang.c (objc_language_data): Likewise.
2925 * opencl-lang.c (opencl_language_data): Likewise.
2926 * p-lang.c (pascal_language_data): Likewise.
2927 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2928 rust_language::lookup_symbol_nonlocal.
2929 (rust_language_data): Delete la_lookup_symbol_nonlocal
2931 (rust_language::lookup_symbol_nonlocal): New member function,
2932 implementation from rust_lookup_symbol_nonlocal.
2933 * symtab.c (lookup_symbol_aux): Update call to
2934 lookup_symbol_nonlocal.
2935 (basic_lookup_symbol_nonlocal): Rename to...
2936 (language_defn::lookup_symbol_nonlocal): ...this, and update
2937 header comment. Remove language_defn parameter, and replace with
2939 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2941 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2943 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2945 (ada_language::value_print_inner): New member function.
2946 * c-lang.c (c_language_data): Delete la_value_print_inner
2948 (cplus_language_data): Likewise.
2949 (asm_language_data): Likewise.
2950 (minimal_language_data): Likewise.
2951 * d-lang.c (d_language_data): Likewise.
2952 (d_language::value_print_inner): New member function.
2953 * f-lang.c (f_language_data): Delete la_value_print_inner
2955 (f_language::value_print_inner): New member function.
2956 * f-lang.h (f_value_print_innner): Rename to...
2957 (f_value_print_inner): ...this (note spelling of 'inner').
2958 * f-valprint.c (f_value_print_innner): Rename to...
2959 (f_value_print_inner): ...this (note spelling of 'inner').
2960 * go-lang.c (go_language_data): Delete la_value_print_inner
2962 (go_language::value_print_inner): New member function.
2963 * language.c (language_defn::value_print_inner): Define new member
2965 (unk_lang_value_print_inner): Delete.
2966 (unknown_language_data): Delete la_value_print_inner initializer.
2967 (unknown_language::value_print_inner): New member function.
2968 (auto_language_data): Delete la_value_print_inner initializer.
2969 (auto_language::value_print_inner): New member function.
2970 * language.h (language_data): Delete la_value_print_inner field.
2971 (language_defn::value_print_inner): Delcare new member function.
2972 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2974 (m2_language::value_print_inner): New member function.
2975 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2977 * opencl-lang.c (opencl_language_data): Likewise.
2978 * p-lang.c (pascal_language_data): Likewise.
2979 (pascal_language::value_print_inner): New member function.
2980 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2982 (rust_language::value_print_inner): New member function.
2983 * valprint.c (do_val_print): Update call to value_print_inner.
2985 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2987 * ada-lang.c (ada_language_data): Delete la_value_print
2989 (ada_language::value_print): New member function.
2990 * c-lang.c (c_language_data): Delete la_value_print initializer.
2991 (cplus_language_data): Likewise.
2992 (asm_language_data): Likewise.
2993 (minimal_language_data): Likewise.
2994 * d-lang.c (d_language_data): Likewise.
2995 * f-lang.c (f_language_data): Likewise.
2996 * go-lang.c (go_language_data): Likewise.
2997 * language.c (unk_lang_value_print): Delete.
2998 (language_defn::value_print): Define new member function.
2999 (unknown_language_data): Delete la_value_print initializer.
3000 (unknown_language::value_print): New member function.
3001 (auto_language_data): Delete la_value_print initializer.
3002 (auto_language::value_print): New member function.
3003 * language.h (language_data): Delete la_value_print field.
3004 (language_defn::value_print): Declare new member function.
3005 (LA_VALUE_PRINT): Update call to value_print.
3006 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
3007 * objc-lang.c (objc_language_data): Likewise.
3008 * opencl-lang.c (opencl_language_data): Likewise.
3009 * p-lang.c (pascal_language_data): Likewise.
3010 (pascal_language::value_print): New member function.
3011 * rust-lang.c (rust_language_data): Delete la_value_print
3014 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3016 * ada-lang.c (ada_watch_location_expression): Rename to
3017 ada_language::watch_location_expression.
3018 (ada_language_data): Delete la_watch_location_expression
3020 (ada_language::watch_location_expression): New member function,
3021 implementation from ada_watch_location_expression.
3022 * breakpoint.c (watch_command_1): Update call to
3023 watch_location_expression.
3024 * c-lang.c (c_watch_location_expression): Rename to
3025 language_defn::watch_location_expression.
3026 (c_language_data): Delete la_watch_location_expression
3028 (cplus_language_data): Likewise.
3029 (asm_language_data): Likewise.
3030 (minimal_language_data): Likewise.
3031 * c-lang.h (c_watch_location_expression): Delete declaration.
3032 * d-lang.c (d_language_data): Delete la_watch_location_expression
3034 * f-lang.c (f_language_data): Likewise.
3035 * go-lang.c (go_language_data): Likewise.
3036 * language.c (language_defn::watch_location_expression): Member
3037 function implementation from c_watch_location_expression.
3038 (unknown_language_data): Delete la_watch_location_expression
3040 (auto_language_data): Likewise.
3041 * language.h (language_data): Delete la_watch_location_expression
3043 (language_defn::watch_location_expression): Declare new member
3045 * m2-lang.c (m2_language_data): Delete
3046 la_watch_location_expression initializer.
3047 * objc-lang.c (objc_language_data): Likewise.
3048 * opencl-lang.c (opencl_language_data): Likewise.
3049 * p-lang.c (pascal_language_data): Likewise.
3050 * rust-lang.c (rust_watch_location_expression): Rename to
3051 rust_language::watch_location_expression.
3052 (rust_language_data): Delete la_watch_location_expression
3054 (rust_language::watch_location_expression): New member function,
3055 implementation from rust_watch_location_expression.
3057 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3059 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
3060 ada_language::collect_symbol_completion_matches.
3061 (ada_language_data): Delete la_collect_symbol_completion_matches
3063 (ada_language::collect_symbol_completion_matches): New member
3064 function, implementation from
3065 ada_collect_symbol_completion_matches.
3066 * c-lang.c (c_language_data): Delete
3067 la_collect_symbol_completion_matches initializer.
3068 (cplus_language_data): Likewise.
3069 (asm_language_data): Likewise.
3070 (minimal_language_data): Likewise.
3071 * d-lang.c (d_language_data): Likewise.
3072 * f-lang.c (f_collect_symbol_completion_matches): Rename to
3073 f_language::collect_symbol_completion_matches.
3074 (f_language_data): Delete la_collect_symbol_completion_matches
3076 (f_language::collect_symbol_completion_matches) New member
3077 function, implementation from f_collect_symbol_completion_matches.
3078 * go-lang.c (go_language_data): Delete
3079 la_collect_symbol_completion_matches initializer.
3080 * language.c (unknown_language_data): Likewise.
3081 (auto_language_data): Likewise.
3082 * language.h (language_data): Delete
3083 la_collect_symbol_completion_matches field.
3084 (language_defn::collect_symbol_completion_matches): New member
3086 * m2-lang.c (m2_language_data): Delete
3087 la_collect_symbol_completion_matches initializer.
3088 * objc-lang.c (objc_language_data): Likewise.
3089 * opencl-lang.c (opencl_language_data): Likewise.
3090 * p-lang.c (pascal_language_data): Likewise.
3091 * rust-lang.c (rust_language_data): Likewise.
3092 * symtab.c (default_collect_symbol_completion_matches): Delete.
3093 (collect_symbol_completion_matches): Update call to
3094 collect_symbol_completion_matches.
3095 (collect_symbol_completion_matches_type): Likewise.
3096 * symtab.h (default_collect_symbol_completion_matches): Delete
3099 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3101 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
3102 (ada_language_data): Delete la_word_break_characters initializer.
3103 (ada_language::word_break_characters): New member function.
3104 * c-lang.c (c_language_data): Delete la_word_break_characters
3106 (cplus_language_data): Likewise.
3107 (asm_language_data): Likewise.
3108 (minimal_language_data): Likewise.
3109 * completer.c: Update global comment.
3110 (advance_to_expression_complete_word_point): Update call to
3111 word_break_characters.
3112 (complete_files_symbols): Likewise.
3113 (complete_line_internal_1): Likewise.
3114 (default_completer_handle_brkchars): Likewise.
3115 (skip_quoted_chars): Likewise.
3116 * d-lang.c (d_language_data): Delete la_word_break_characters
3118 * f-lang.c (f_word_break_characters): Delete.
3119 (f_language_data): Delete la_word_break_characters initializer.
3120 (f_language::word_break_characters): New member function.
3121 * go-lang.c (go_language_data): Delete la_word_break_characters
3123 * language.c (unknown_language_data): Likewise.
3124 (auto_language_data): Likewise.
3125 * language.h (default_word_break_characters): Move declaration to
3126 earlier in the file.
3127 (language_data): Delete la_word_break_characters field.
3128 (language_defn::word_break_characters): New member function.
3129 * m2-lang.c (m2_language_data): Delete la_word_break_characters
3131 * objc-lang.c (objc_language_data): Likewise.
3132 * opencl-lang.c (opencl_language_data): Likewise.
3133 * p-lang.c (pascal_language_data): Likewise.
3134 * rust-lang.c (rust_language_data): Likewise.
3136 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3138 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
3139 (ada_language_data): Delete la_get_symbol_name_matcher
3141 (language_defn::get_symbol_name_matcher_inner): New member
3143 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
3145 (cplus_language_data): Likewise.
3146 (cplus_language::get_symbol_name_matcher_inner): New member
3148 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
3149 (minimal_language_data): Likewise.
3150 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
3151 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
3153 * dictionary.c (iter_match_first_hashed): Update call to
3154 get_symbol_name_matcher.
3155 (iter_match_next_hashed): Likewise.
3156 (iter_match_next_linear): Likewise.
3157 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
3158 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
3160 (f_language::get_symbol_name_matcher_inner): New member function.
3161 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
3163 * language.c (default_symbol_name_matcher): Update header comment,
3165 (language_defn::get_symbol_name_matcher): New definition.
3166 (language_defn::get_symbol_name_matcher_inner): Likewise.
3167 (get_symbol_name_matcher): Delete.
3168 (unknown_language_data): Delete la_get_symbol_name_matcher
3170 (auto_language_data): Likewise.
3171 * language.h (language_data): Delete la_get_symbol_name_matcher
3173 (language_defn::get_symbol_name_matcher): New member function.
3174 (language_defn::get_symbol_name_matcher_inner): Likewise.
3175 (default_symbol_name_matcher): Delete declaration.
3176 * linespec.c (find_methods): Update call to
3177 get_symbol_name_matcher.
3178 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
3180 * minsyms.c (lookup_minimal_symbol): Update call to
3181 get_symbol_name_matcher.
3182 (iterate_over_minimal_symbols): Likewise.
3183 * objc-lang.c (objc_language_data): Delete
3184 la_get_symbol_name_matcher initializer.
3185 * opencl-lang.c (opencl_language_data): Likewise.
3186 * p-lang.c (pascal_language_data): Likewise.
3187 * psymtab.c (psymbol_name_matches): Update call to
3188 get_symbol_name_matcher.
3189 * rust-lang.c (rust_language_data): Delete
3190 la_get_symbol_name_matcher initializer.
3191 * symtab.c (symbol_matches_search_name): Update call to
3192 get_symbol_name_matcher.
3193 (compare_symbol_name): Likewise.
3195 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3197 * ada-lang.c (ada_language_data): Delete la_compute_program
3199 * c-lang.c (c_language_data): Likewise.
3200 (c_language::compute_program): New member function.
3201 (cplus_language_data): Delete la_compute_program initializer.
3202 (cplus_language::compute_program): New member function.
3203 (asm_language_data): Delete la_compute_program initializer.
3204 (minimal_language_data): Likewise.
3205 * c-lang.h (c_compute_program): Update comment.
3206 (cplus_compute_program): Likewise.
3207 * compile/compile-c-support.c (c_compute_program): Likewise.
3208 (cplus_compute_program): Likewise.
3209 * compile/compile.c (compile_to_object): Update call to
3211 * d-lang.c (d_language_data): Delete la_compute_program
3213 * f-lang.c (f_language_data): Likewise.
3214 * go-lang.c (go_language_data): Likewise.
3215 * language.c (unknown_language_data): Likewise.
3216 (auto_language_data): Likewise.
3217 * language.h (language_data): Delete la_compute_program field.
3218 (language_defn::compute_program): New member function.
3219 * m2-lang.c (m2_language_data): Delete la_compute_program
3221 * objc-lang.c (objc_language_data): Likewise.
3222 * opencl-lang.c (opencl_language_data): Likewise.
3223 * p-lang.c (pascal_language_data): Likewise.
3224 * rust-lang.c (rust_language_data): Likewise.
3226 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3228 * ada-lang.c (ada_language_data) Delete
3229 la_class_name_from_physname initializer.
3230 * c-lang.c (c_language_data): Likewise.
3231 (cplus_language_data): Likewise.
3232 (cplus_language::class_name_from_physname): New member function.
3233 (asm_language_data): Delete la_class_name_from_physname
3235 (minimal_language_data): Likewise.
3236 * d-lang.c (d_language_data): Likewise.
3237 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3238 method on language_defn class.
3239 (guess_full_die_structure_name): Likewise.
3240 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3242 * go-lang.c (go_language_data): Likewise.
3243 * language.c (language_class_name_from_physname): Delete.
3244 (unk_lang_class_name): Delete.
3245 (unknown_language_data): Delete la_class_name_from_physname
3247 (auto_language_data): Likewise.
3248 * language.h (language_data): Delete la_class_name_from_physname
3250 (language_defn::class_name_from_physname): New function.
3251 (language_class_name_from_physname): Delete declaration.
3252 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3254 * objc-lang.c (objc_language_data): Likewise.
3255 * opencl-lang.c (opencl_language_data): Likewise.
3256 * p-lang.c (pascal_language_data): Likewise.
3257 * rust-lang.c (rust_language_data): Likewise.
3259 2020-06-16 Tom Tromey <tom@tromey.com>
3261 * tui/tui-data.h (STATUS_NAME): New macro.
3262 * tui/tui-layout.c (tui_remove_some_windows)
3263 (initialize_known_windows, tui_register_window)
3264 (tui_layout_split::remove_windows, initialize_layouts)
3265 (tui_new_layout_command): Don't use hard-coded window names.
3267 2020-06-16 Tom Tromey <tom@tromey.com>
3270 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3271 tui_initialize_readline. Only run once. Call rl_initialize.
3272 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3273 tui_initialize_readline.
3274 * tui/tui-io.c (tui_setup_io): Call
3275 tui_ensure_readline_initialized.
3276 * tui/tui-interp.c (tui_interp::init): Update.
3278 2020-06-16 Tom Tromey <tom@tromey.com>
3280 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3281 Also preserve the status window.
3283 2020-06-16 Tom Tromey <tom@tromey.com>
3285 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3286 where m_window==nullptr.
3288 2020-06-15 Tom Tromey <tromey@adacore.com>
3290 * windows-nat.c (windows_nat::handle_output_debug_string):
3292 (windows_nat::handle_ms_vc_exception): Update.
3293 * target.h (target_read_string): Change API.
3294 * target.c (target_read_string): Change API.
3295 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3297 * solib-frv.c (frv_current_sos): Update.
3298 * solib-dsbt.c (dsbt_current_sos): Update.
3299 * solib-darwin.c (darwin_current_sos): Update.
3300 * linux-thread-db.c (inferior_has_bug): Update.
3301 * expprint.c (print_subexp_standard): Update.
3302 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3303 (ada_exception_message_1): Update.
3305 2020-06-15 Tom Tromey <tromey@adacore.com>
3307 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3309 2020-06-15 Tom Tromey <tromey@adacore.com>
3311 * valprint.c (read_string): Update comment.
3312 * target.c (MIN): Remove.
3313 (target_read_string): Rewrite.
3315 2020-06-15 Tom Tromey <tromey@adacore.com>
3317 * corefile.c (read_memory_string): Remove.
3318 * ada-valprint.c (ada_value_print_ptr): Update.
3319 * ada-lang.h (ada_tag_name): Change return type.
3320 * ada-lang.c (type_from_tag): Update.
3321 (ada_tag_name_from_tsd): Change return type. Use
3323 (ada_tag_name): Likewise.
3324 * gdbcore.h (read_memory_string): Don't declare.
3326 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3328 * symtab.c (rbreak_command): Ignore Windows drive colon.
3330 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3332 * NEWS: Mention removed GDBserver host support.
3334 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3336 * features/riscv/rebuild-csr-xml.sh: Updated.
3338 2020-06-11 Tom Tromey <tom@tromey.com>
3341 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3343 2020-06-09 Jonny Grant <jg@jguk.org>
3344 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3346 * main.c (captured_main_1): Don't print new line after help.
3347 (print_gdb_help): add mailing list and IRC channel information
3348 to --help. Add new lines between items in the footer. Remove
3349 quotes around bug url.
3351 2020-06-11 Keith Seitz <keiths@redhat.com>
3354 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3355 Resolve typedefs for type length calculations.
3357 2020-06-10 Tom de Vries <tdevries@suse.de>
3360 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3361 (write_psymbols): Enable .gdb_index for ada.
3362 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3365 2020-06-10 Tom de Vries <tdevries@suse.de>
3367 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3368 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3369 namei" instead of "const char *name" argument.
3370 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3371 dw2_symtab_iter_init.
3373 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3375 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3376 to use type::field and field::type instead.
3378 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3380 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3381 to use field::type instead.
3383 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3385 * gdbtypes.h (struct field) <type, set_type>: New methods.
3386 Rename `type` field to...
3387 <m_type>: ... this. Change references throughout to use type or
3389 (FIELD_TYPE): Use field::type. Change call sites that modify
3390 the field's type to use field::set_type instead.
3392 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3394 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3395 to use type::index_type instead.
3397 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3399 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3401 (TYPE_INDEX_TYPE): Use type::index_type.
3402 * gdbtypes.c (create_array_type_with_stride): Likewise.
3404 2020-06-07 Tom Tromey <tom@tromey.com>
3406 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3408 (generic_value_print): Update.
3410 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3412 Revert commit 982a38f60b0.
3413 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3415 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3417 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3418 avoid use after free.
3420 2020-06-05 Tom de Vries <tdevries@suse.de>
3424 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3426 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3428 (dwarf2_read_debug_names): Likewise.
3429 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3430 object when re-using a per_bfd object with an index.
3432 2020-06-03 Tom de Vries <tdevries@suse.de>
3435 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3437 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3440 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3442 * ada-lang.c (ada_language_data): Delete skip_trampoline
3444 * c-lang.c (c_language_data): Likewise.
3445 (cplus_language_data): Likewise.
3446 (cplus_language::skip_trampoline): New member function.
3447 (asm_language_data): Delete skip_trampoline initializer.
3448 (minimal_language_data): Likewise.
3449 * d-lang.c (d_language_data): Likewise.
3450 * f-lang.c (f_language_data): Likewise.
3451 * go-lang.c (go_language_data): Likewise.
3452 * language.c (unk_lang_trampoline): Delete function.
3453 (skip_language_trampoline): Update.
3454 (unknown_language_data): Delete skip_trampoline initializer.
3455 (auto_language_data): Likewise.
3456 * language.h (language_data): Delete skip_trampoline field.
3457 (language_defn::skip_trampoline): New function.
3458 * m2-lang.c (m2_language_data): Delete skip_trampoline
3460 * objc-lang.c (objc_skip_trampoline): Delete function, move
3461 implementation to objc_language::skip_trampoline.
3462 (objc_language_data): Delete skip_trampoline initializer.
3463 (objc_language::skip_trampoline): New member function with
3464 implementation from objc_skip_trampoline.
3465 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3467 * p-lang.c (pascal_language_data): Likewise.
3468 * rust-lang.c (rust_language_data): Likewise.
3470 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3472 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3473 (ada_language::demangle): New member function.
3474 * c-lang.c (c_language_data): Delete la_demangle initializer.
3475 (cplus_language_data): Delete la_demangle initializer.
3476 (cplus_language::demangle): New member function.
3477 (asm_language_data): Delete la_demangle initializer.
3478 (minimal_language_data): Delete la_demangle initializer.
3479 * d-lang.c (d_language_data): Delete la_demangle initializer.
3480 (d_language::demangle): New member function.
3481 * f-lang.c (f_language_data): Delete la_demangle initializer.
3482 (f_language::demangle): New member function.
3483 * go-lang.c (go_language_data): Delete la_demangle initializer.
3484 (go_language::demangle): New member function.
3485 * language.c (language_demangle): Update.
3486 (unk_lang_demangle): Delete.
3487 (unknown_language_data): Delete la_demangle initializer.
3488 (unknown_language::demangle): New member function.
3489 (auto_language_data): Delete la_demangle initializer.
3490 (auto_language::demangle): New member function.
3491 * language.h (language_data): Delete la_demangle field.
3492 (language_defn::demangle): New function.
3493 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3494 * objc-lang.c (objc_language_data): Delete la_demangle
3496 (objc_language::demangle): New member function.
3497 * opencl-lang.c (opencl_language_data): Delete la_demangle
3499 * p-lang.c (pascal_language_data): Likewise.
3500 * rust-lang.c (rust_language_data): Likewise.
3501 (rust_language::demangle): New member function.
3503 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3505 * ada-lang.c (ada_language_data): Delete la_print_type
3507 (ada_language::print_type): New member function.
3508 * c-lang.c (c_language_data): Delete la_print_type initializer.
3509 (c_language::print_type): New member function.
3510 (cplus_language_data): Delete la_print_type initializer.
3511 (cplus_language::print_type): New member function.
3512 (asm_language_data): Delete la_print_type initializer.
3513 (asm_language::print_type): New member function.
3514 (minimal_language_data): Delete la_print_type initializer.
3515 (minimal_language::print_type): New member function.
3516 * d-lang.c (d_language_data): Delete la_print_type initializer.
3517 (d_language::print_type): New member function.
3518 * f-lang.c (f_language_data): Delete la_print_type initializer.
3519 (f_language::print_type): New member function.
3520 * go-lang.c (go_language_data): Delete la_print_type initializer.
3521 (go_language::print_type): New member function.
3522 * language.c (unk_lang_print_type): Delete.
3523 (unknown_language_data): Delete la_print_type initializer.
3524 (unknown_language::print_type): New member function.
3525 (auto_language_data): Delete la_print_type initializer.
3526 (auto_language::print_type): New member function.
3527 * language.h (language_data): Delete la_print_type field.
3528 (language_defn::print_type): New function.
3529 (LA_PRINT_TYPE): Update.
3530 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3531 (m2_language::print_type): New member function.
3532 * objc-lang.c (objc_language_data): Delete la_print_type
3534 (objc_language::print_type): New member function.
3535 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3536 to opencl_language::print_type.
3537 (opencl_language_data): Delete la_print_type initializer.
3538 (opencl_language::print_type): New member function, implementation
3539 from opencl_print_type.
3540 * p-lang.c (pascal_language_data): Delete la_print_type
3542 (pascal_language::print_type): New member function.
3543 * rust-lang.c (rust_print_type): Delete, implementation moved to
3544 rust_language::print_type.
3545 (rust_language_data): Delete la_print_type initializer.
3546 (rust_language::print_type): New member function, implementation
3547 from rust_print_type.
3549 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3551 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3552 implementation moves to...
3553 (ada_language::sniff_from_mangled_name): ...here. Update return
3555 (ada_language_data): Delete la_sniff_from_mangled_name
3557 * c-lang.c (c_language_data): Likewise.
3558 (cplus_language_data): Likewise.
3559 (cplus_language::sniff_from_mangled_name): New member function,
3560 implementation taken from gdb_sniff_from_mangled_name.
3561 (asm_language_data): Delete la_sniff_from_mangled_name
3563 (minimal_language_data): Likewise.
3564 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3565 implementation moves to cplus_language::sniff_from_mangled_name.
3566 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3567 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3569 (d_language::sniff_from_mangled_name): ...here.
3570 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3571 * f-lang.c (f_language_data): Likewise.
3572 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3574 (go_language::sniff_from_mangled_name): ...here.
3575 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3576 * language.c (language_sniff_from_mangled_name): Delete.
3577 (unknown_language_data): Delete la_sniff_from_mangled_name
3579 (auto_language_data): Likewise.
3580 * language.h (language_data): Delete la_sniff_from_mangled_name
3582 (language_defn::sniff_from_mangled_name): New function.
3583 (language_sniff_from_mangled_name): Delete declaration.
3584 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3586 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3587 implementation moves to...
3588 (objc_language::sniff_from_mangled_name): ...here.
3589 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3590 * opencl-lang.c (opencl_language_data): Likewise.
3591 * p-lang.c (pascal_language_data): Likewise.
3592 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3593 implementation moves to...
3594 (rust_language::sniff_from_mangled_name): ...here.
3595 (rust_language_data): Delete la_sniff_from_mangled_name
3597 * symtab.c (symbol_find_demangled_name): Call
3598 sniff_from_mangled_name member function.
3600 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3602 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3604 * c-lang.c (c_language_data): Likewise.
3605 (cplus_language_data): Likewise.
3606 (cplus_language::search_name_hash): New member function.
3607 (asm_language_data): Delete la_search_name_hash initializer.
3608 (minimal_language_data): Likewise.
3609 * d-lang.c (d_language_data): Likewise.
3610 * dictionary.c (default_search_name_hash): Rename to...
3611 (language_defn::search_name_hash): ...this.
3612 * f-lang.c (f_language_data): Likewise.
3613 (f_language::search_name_hash): New member function.
3614 * go-lang.c (go_language_data): Delete la_search_name_hash
3616 * language.c (unknown_language_data): Likewise.
3617 (auto_language_data): Likewise.
3618 * language.h (struct language_data): Delete la_search_name_hash
3620 (language_defn::search_name_hash): Declare new member function.
3621 (default_search_name_hash): Delete declaration.
3622 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3624 * objc-lang.c (objc_language_data): Likewise.
3625 * opencl-lang.c (opencl_language_data): Likewise.
3626 * p-lang.c (pascal_language_data): Likewise.
3627 * rust-lang.c (rust_language_data): Likewise.
3628 * symtab.c (search_name_hash): Update call.
3630 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3632 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3634 * c-lang.c (class compile_instance): Declare.
3635 (c_language_data): Delete la_get_compile_instance initializer.
3636 (c_language::get_compile_instance): New member function.
3637 (cplus_language_data): Delete la_get_compile_instance initializer.
3638 (cplus_language::get_compile_instance): New member function.
3639 (asm_language_data): Delete la_get_compile_instance initializer.
3640 (minimal_language_data): Likewise.
3641 * c-lang.h (c_get_compile_context): Update comment.
3642 (cplus_get_compile_context): Update comment.
3643 * compile/compile.c (compile_to_object): Update calls, don't rely
3644 on function pointer being NULL.
3645 * d-lang.c (d_language_data): Delete la_get_compile_instance
3647 * f-lang.c (f_language_data): Likewise.
3648 * go-lang.c (go_language_data): Likewise.
3649 * language.c (unknown_language_data): Likewise.
3650 (auto_language_data): Likewise.
3651 * language.h (language_data): Delete la_get_compile_instance field.
3652 (language_defn::get_compile_instance): New member function.
3653 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3655 * objc-lang.c (objc_language_data): Likewise.
3656 * opencl-lang.c (opencl_language_data): Likewise.
3657 * p-lang.c (pascal_language_data): Likewise.
3658 * rust-lang.c (rust_language_data): Likewise.
3660 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3662 * ada-lang.c (ada_add_all_symbols): Update comment.
3663 (ada_iterate_over_symbols): Delete, move implementation to...
3664 (ada_language::iterate_over_symbols): ...here, a new member
3665 function, rewrite to use range based for loop.
3666 (ada_language_data): Delete la_iterate_over_symbols initializer.
3667 * c-lang.c (c_language_data): Likewise.
3668 (cplus_language_data): Likewise.
3669 (asm_language_data): Likewise.
3670 (minimal_language_data): Likewise.
3671 * d-lang.c (d_language_data): Likewise.
3672 * f-lang.c (f_language_data): Likewise.
3673 * go-lang.c (go_language_data): Likewise.
3674 * language.c (unknown_language_data): Likewise.
3675 (auto_language_data): Likewise.
3676 * language.h (language_data): Delete la_iterate_over_symbols field.
3677 (language_defn::iterate_over_symbols): New member function.
3678 (LA_ITERATE_OVER_SYMBOLS): Update.
3679 * linespec.c (iterate_over_all_matching_symtabs): Update.
3680 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3682 * objc-lang.c (objc_language_data): Likewise.
3683 * opencl-lang.c (opencl_language_data): Likewise.
3684 * p-lang.c (pascal_language_data): Likewise.
3685 * rust-lang.c (rust_language_data): Likewise.
3687 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3689 * ada-lang.c (ada_language_data): Delete
3690 la_lookup_transparent_type initializer.
3691 * c-lang.c (c_language_data): Likewise.
3692 (cplus_language_data): Likewise.
3693 (cplus_language::lookup_transparent_type): New member function.
3694 (asm_language_data): Delete la_lookup_transparent_type
3696 (minimal_language_data): Likewise.
3697 * d-lang.c (d_language_data): Likewise.
3698 * f-lang.c (f_language_data): Likewise.
3699 * go-lang.c (go_language_data): Likewise.
3700 * language.c (unknown_language_data): Likewise.
3701 (auto_language_data): Likewise.
3702 * language.h (struct language_data): Delete
3703 la_lookup_transparent_type field.
3704 (language_defn::lookup_transparent_type): New member function.
3705 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3707 * objc-lang.c (objc_language_data): Likewise.
3708 * opencl-lang.c (opencl_language_data): Likewise.
3709 * p-lang.c (pascal_language_data): Likewise.
3710 * rust-lang.c (rust_language_data): Likewise.
3711 * symtab.c (symbol_matches_domain): Update call.
3713 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3715 * ada-lang.c (ada_language_arch_info): Delete function, move
3716 implementation to...
3717 (ada_language::language_arch_info): ...here, a new member
3719 (ada_language_data): Delete la_language_arch_info.
3720 * c-lang.c (c_language_data): Likewise.
3721 (c_language::language_arch_info): New member function.
3722 (cplus_language_arch_info): Delete function, move
3723 implementation to...
3724 (cplus_language::language_arch_info): ...here, a new member
3726 (cplus_language_data): Delete la_language_arch_info.
3727 (asm_language_data): Likewise.
3728 (asm_language::language_arch_info): New member function.
3729 (minimal_language_data): Delete la_language_arch_info.
3730 (minimal_language::language_arch_info): New member function.
3731 * d-lang.c (d_language_arch_info): Delete function, move
3732 implementation to...
3733 (d_language::language_arch_info): ...here, a new member
3735 (d_language_data): Delete la_language_arch_info.
3736 * f-lang.c (f_language_arch_info): Delete function, move
3737 implementation to...
3738 (f_language::language_arch_info): ...here, a new member
3740 (f_language_data): Delete la_language_arch_info.
3741 * go-lang.c (go_language_arch_info): Delete function, move
3742 implementation to...
3743 (go_language::language_arch_info): ...here, a new member
3745 (go_language_data): Delete la_language_arch_info.
3746 * language.c (unknown_language_data): Likewise.
3747 (unknown_language::language_arch_info): New member function.
3748 (auto_language_data): Delete la_language_arch_info.
3749 (auto_language::language_arch_info): New member function.
3750 (language_gdbarch_post_init): Update call to
3751 la_language_arch_info.
3752 * language.h (language_data): Delete la_language_arch_info
3754 (language_defn::language_arch_info): New function.
3755 * m2-lang.c (m2_language_arch_info): Delete function, move
3756 implementation to...
3757 (m2_language::language_arch_info): ...here, a new member
3759 (m2_language_data): Delete la_language_arch_info.
3760 * objc-lang.c (objc_language_arch_info): Delete function, move
3761 implementation to...
3762 (objc_language::language_arch_info): ...here, a new member
3764 (objc_language_data): Delete la_language_arch_info.
3765 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3766 implementation to...
3767 (opencl_language::language_arch_info): ...here, a new member
3769 (opencl_language_data): Delete la_language_arch_info.
3770 * p-lang.c (pascal_language_arch_info): Delete function, move
3771 implementation to...
3772 (pascal_language::language_arch_info): ...here, a new member
3774 (pascal_language_data): Delete la_language_arch_info.
3775 * rust-lang.c (rust_language_arch_info): Delete function, move
3776 implementation to...
3777 (rust_language::language_arch_info): ...here, a new member
3779 (rust_language_data): Delete la_language_arch_info.
3781 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3783 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3785 * c-lang.c (c_language_data): Likewise.
3786 (cplus_language_data): Likewise.
3787 (cplus_language::pass_by_reference_info): New method.
3788 (asm_language_data): Delete la_pass_by_reference initializer.
3789 (minimal_language_data): Likewise.
3790 * cp-abi.c (cp_pass_by_reference): Remove use of
3791 default_pass_by_reference.
3792 * d-lang.c (d_language_data): Likewise.
3793 * f-lang.c (f_language_data): Likewise.
3794 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3795 default_pass_by_reference.
3796 * go-lang.c (go_language_data): Likewise.
3797 * language.c (language_pass_by_reference): Update.
3798 (default_pass_by_reference): Delete.
3799 (unknown_language_data): Delete la_pass_by_reference
3801 (auto_language_data): Likewise.
3802 * language.h (struct language_data): Delete la_pass_by_reference
3804 (language_defn::pass_by_reference_info): New member function.
3805 (default_pass_by_reference): Delete declaration.
3806 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3808 * objc-lang.c (objc_language_data): Likewise.
3809 * opencl-lang.c (opencl_language_data): Likewise.
3810 * p-lang.c (pascal_language_data): Likewise.
3811 * rust-lang.c (rust_language_data): Likewise.
3813 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3815 * ada-lang.c (ada_read_var_value): Delete function, move
3816 implementation to...
3817 (ada_language::read_var_value): ...here.
3818 (ada_language_data): Delete la_read_var_value initializer.
3819 * c-lang.c (c_language_data): Likewise.
3820 (cplus_language_data): Likewise.
3821 (minimal_language_data): Likewise.
3822 * d-lang.c (d_language_data): Likewise.
3823 * f-lang.c (f_language_data): Likewise.
3824 * findvar.c (default_read_var_value): Rename to...
3825 (language_defn::read_var_value): ...this.
3826 * findvar.c (read_var_value): Update header comment, and change to
3827 call member function instead of function pointer.
3828 * go-lang.c (go_language_data): Likewise.
3829 * language.c (unknown_language_data): Delete la_read_var_value
3831 (auto_language_data): Likewise.
3832 * language.h (struct language_data): Delete la_read_var_value
3834 (language_defn::read_var_value): New member function.
3835 (default_read_var_value): Delete declaration.
3836 * m2-lang.c (m2_language_data): Delete la_read_var_value
3838 * objc-lang.c (objc_language_data): Likewise.
3839 * opencl-lang.c (opencl_language_data): Likewise.
3840 * p-lang.c (pascal_language_data): Likewise.
3841 * rust-lang.c (rust_language_data): Likewise.
3842 * value.h (default_read_var_value): Delete declaration.
3844 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3846 * ada-lang.c (ada_print_array_index): Delete function, move
3847 implementation to...
3848 (ada_language::print_array_index): ...here.
3849 (ada_language_data): Delete la_print_array_index initializer.
3850 * c-lang.c (c_language_data): Likewise.
3851 (cplus_language_data): Likewise.
3852 (minimal_language_data): Likewise.
3853 * d-lang.c (d_language_data): Likewise.
3854 * f-lang.c (f_language_data): Likewise.
3855 * go-lang.c (go_language_data): Likewise.
3856 * language.c (default_print_array_index): Delete function, move
3857 implementation to...
3858 (language_defn::print_array_index): ...here.
3859 (unknown_language_data): Delete la_print_array_index initializer.
3860 (auto_language_data): Likewise.
3861 * language.h (struct language_data): Delete la_print_array_index
3863 (language_defn::print_array_index): New member function.
3864 (LA_PRINT_ARRAY_INDEX): Update.
3865 (default_print_array_index): Delete declaration.
3866 * m2-lang.c (m2_language_data): Delete la_print_array_index
3868 * objc-lang.c (objc_language_data): Likewise.
3869 * opencl-lang.c (opencl_language_data): Likewise.
3870 * p-lang.c (pascal_language_data): Likewise.
3871 * rust-lang.c (rust_language_data): Likewise.
3873 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3875 * gdb/ada-lang.c (ada_language_defn): Convert to...
3876 (ada_language_data): ...this.
3877 (class ada_language): New class.
3878 (ada_language_defn): New static global.
3879 * gdb/c-lang.c (c_language_defn): Convert to...
3880 (c_language_data): ...this.
3881 (class c_language): New class.
3882 (c_language_defn): New static global.
3883 (cplus_language_defn): Convert to...
3884 (cplus_language_data): ...this.
3885 (class cplus_language): New class.
3886 (cplus_language_defn): New static global.
3887 (asm_language_defn): Convert to...
3888 (asm_language_data): ...this.
3889 (class asm_language): New class.
3890 (asm_language_defn): New static global.
3891 (minimal_language_defn): Convert to...
3892 (minimal_language_data): ...this.
3893 (class minimal_language): New class.
3894 (minimal_language_defn): New static global.
3895 * gdb/d-lang.c (d_language_defn): Convert to...
3896 (d_language_data): ...this.
3897 (class d_language): New class.
3898 (d_language_defn): New static global.
3899 * gdb/f-lang.c (f_language_defn): Convert to...
3900 (f_language_data): ...this.
3901 (class f_language): New class.
3902 (f_language_defn): New static global.
3903 * gdb/go-lang.c (go_language_defn): Convert to...
3904 (go_language_data): ...this.
3905 (class go_language): New class.
3906 (go_language_defn): New static global.
3907 * gdb/language.c (unknown_language_defn): Remove declaration.
3908 (current_language): Initialize to nullptr, real initialization is
3909 moved to _initialize_language.
3910 (languages): Delete global.
3911 (language_defn::languages): Define.
3912 (set_language_command): Use language_defn::languages.
3913 (set_language): Likewise.
3914 (range_error): Likewise.
3915 (language_enum): Likewise.
3916 (language_def): Likewise.
3917 (add_set_language_command): Use language_def::languages for the
3918 language list, and language_def to lookup language pointers.
3919 (skip_language_trampoline): Use language_defn::languages.
3920 (unknown_language_defn): Convert to...
3921 (unknown_language_data): ...this.
3922 (class unknown_language): New class.
3923 (unknown_language_defn): New static global.
3924 (auto_language_defn): Convert to...
3925 (auto_language_data): ...this.
3926 (class auto_language): New class.
3927 (auto_language_defn): New static global.
3928 (language_gdbarch_post_init): Use language_defn::languages.
3929 (_initialize_language): Initialize current_language.
3930 * gdb/language.h (struct language_defn): Rename to...
3931 (struct language_data): ...this.
3932 (struct language_defn): New.
3933 (auto_language_defn): Delete.
3934 (unknown_language_defn): Delete.
3935 (minimal_language_defn): Delete.
3936 (ada_language_defn): Delete.
3937 (asm_language_defn): Delete.
3938 (c_language_defn): Delete.
3939 (cplus_language_defn): Delete.
3940 (d_language_defn): Delete.
3941 (f_language_defn): Delete.
3942 (go_language_defn): Delete.
3943 (m2_language_defn): Delete.
3944 (objc_language_defn): Delete.
3945 (opencl_language_defn): Delete.
3946 (pascal_language_defn): Delete.
3947 (rust_language_defn): Delete.
3948 * gdb/m2-lang.c (m2_language_defn): Convert to...
3949 (m2_language_data): ...this.
3950 (class m2_language): New class.
3951 (m2_language_defn): New static global.
3952 * gdb/objc-lang.c (objc_language_defn): Convert to...
3953 (objc_language_data): ...this.
3954 (class objc_language): New class.
3955 (objc_language_defn): New static global.
3956 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3957 (opencl_language_data): ...this.
3958 (class opencl_language): New class.
3959 (opencl_language_defn): New static global.
3960 * gdb/p-lang.c (pascal_language_defn): Convert to...
3961 (pascal_language_data): ...this.
3962 (class pascal_language): New class.
3963 (pascal_language_defn): New static global.
3964 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3965 language pointer, update comment format.
3966 * gdb/rust-lang.c (rust_language_defn): Convert to...
3967 (rust_language_data): ...this.
3968 (class rust_language): New class.
3969 (rust_language_defn): New static global.
3971 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3973 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3975 <m_stmt_at_address>: New member variable.
3976 (lnp_state_machine::record_line): Don't record some lines, update
3977 tracking of is_stmt at the same address.
3978 (lnp_state_machine::lnp_state_machine): Initialise new member
3981 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3983 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3984 "-include gnu-nat-mig.h".
3985 * gnu-nat-mig.h: New file.
3986 * gnu-nat.c: Include "gnu-nat-mig.h".
3987 (exc_server, msg_reply_server, notify_server,
3988 process_reply_server): Remove declarations.
3990 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3992 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3993 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3994 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3995 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3996 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3997 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3998 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3999 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
4000 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
4001 to gnu_nat_target class.
4002 * gnu-nat.c: Likewise.
4003 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
4004 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
4005 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
4007 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
4008 instead of `gnu_target'.
4010 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4012 * i386-gnu-tdep.c: Include "gdbcore.h"
4013 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
4014 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
4015 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
4016 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
4017 i386_gnu_sigcontext_addr): New functions
4018 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
4019 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
4022 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4024 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
4025 before fork_inferior call. Avoid calling it if target_is_pushed returns
4028 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4030 * gnu-nat.h (gnu_target): New variable declaration.
4031 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
4033 * gnu-nat.c (gnu_target): New variable.
4034 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
4035 add_thread_silent, and add_thread calls.
4036 (gnu_nat_target::create_inferior): Pass gnu_target to
4037 add_thread_silent, thread_change_ptid call.
4038 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
4041 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4043 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
4044 (gnu_nat_target::find_memory_regions): Remove unused
4045 `old_address' variable.
4047 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4049 * gnu-nat.c: Include "gdbarch.h".
4051 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4053 * reply_mig_hack.awk (Error return): Cast function through
4054 void *, to bypass compiler function call check.
4056 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4058 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
4059 $(srcdir)/reply_mig_hack.awk.
4061 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
4063 * gnu-nat.h (gnu_debug_flag): Set type to bool.
4065 2020-05-30 Jonny Grant <jg@jguk.org>
4067 * configure.ac (ACX_BUGURL): change bug URL to https.
4069 2020-05-30 Pedro Alves <palves@redhat.com>
4071 * cp-support.c (replace_typedefs_template): New.
4072 (replace_typedefs_qualified_name): Handle
4073 DEMANGLE_COMPONENT_TEMPLATE.
4075 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
4077 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
4078 dwarf2/index-cache.h, dwarf2/index-write.c,
4079 dwarf2/index-write.h, dwarf2/line-header.c,
4080 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
4081 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
4082 variables and fields from `dwarf2_per_objfile` to just
4083 `per_objfile` throughout.
4085 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
4087 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4088 <push_dwarf_reg_entry_value>: Add comment.
4090 2020-05-28 Kevin Buettner <kevinb@redhat.com>
4091 Keith Seitz <keiths@redhat.com>
4093 * python/python.c (do_start_initialization): Call PyEval_SaveThread
4094 instead of PyEval_ReleaseLock.
4095 (class gdbpy_gil): Move to earlier in file.
4096 (finalize_python): Set gdb_python_initialized.
4097 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
4098 when not initialized.
4100 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
4102 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4103 <push_dwarf_reg_entry_value>: Remove assert. Override
4104 per_objfile with caller_per_objfile.
4106 2020-05-28 Tom de Vries <tdevries@suse.de>
4108 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
4109 PR gold/15646 workaround to symbol kind "type".
4111 2020-05-27 Tom Tromey <tromey@adacore.com>
4113 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
4115 2020-05-27 Tom Tromey <tromey@adacore.com>
4117 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
4118 Use htab_find_with_hash.
4119 <add_abbrev>: Remove "abbrev_number" parameter.
4120 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
4121 "abbrev_number" parameter. Use htab_find_slot_with_hash.
4122 (hash_abbrev): Add comment.
4123 (abbrev_table::lookup_abbrev): Move to header file.
4124 (abbrev_table::read): Update.
4126 2020-05-27 Tom Tromey <tromey@adacore.com>
4128 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
4130 <canonical_name>: New member.
4131 <raw_name>: Rename from "name".
4132 (partial_die_info): Initialize canonical_name.
4133 (scan_partial_symbols): Check raw_name.
4134 (partial_die_parent_scope, partial_die_full_name)
4135 (add_partial_symbol, add_partial_subprogram)
4136 (add_partial_enumeration, load_partial_dies): Use "name" method.
4137 (partial_die_info::name): New method.
4138 (partial_die_info::read, guess_partial_die_structure_name)
4139 (partial_die_info::fixup): Update.
4141 2020-05-27 Tom Tromey <tromey@adacore.com>
4143 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
4144 <get_ref_die_offset>: Inline.
4145 <get_ref_die_offset_complaint>: New method.
4146 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
4147 (attribute::get_ref_die_offset_complaint): Rename from
4148 get_ref_die_offset. Just issue complaint.
4150 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4152 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
4154 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4156 * exec.c (exec_file_attach): Use errno value of first openp failure.
4158 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
4160 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
4161 Don't close thread handle.
4163 2020-05-27 Tom Tromey <tom@tromey.com>
4164 Simon Marchi <simon.marchi@efficios.com>
4166 * objfiles.h (struct objfile) <partial_symtabs>: Now a
4168 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
4170 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
4171 dwarf2_per_bfd_objfile_data_key>: New globals.
4172 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
4173 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
4174 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
4176 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
4177 short-circuit when sharing.
4178 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
4179 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
4181 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4183 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
4185 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
4186 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
4188 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4190 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
4191 build_name_components, find_name_components_bounds>:
4192 Add per_objfile parameter.
4193 (struct mapped_index) <symbol_name_at>: Likewise.
4194 (struct mapped_debug_names): Remove constructor.
4195 <dwarf2_per_objfile>: Remove field.
4196 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
4197 (mapped_index_base::find_name_components_bounds,
4198 mapped_index_base::build_name_components,
4199 dw2_expand_symtabs_matching_symbol): Likewise.
4200 (class mock_mapped_index) <symbol_name_at>: Likewise.
4201 (check_match): Likewise.
4202 (check_find_bounds_finds): Likewise.
4203 (test_mapped_index_find_name_component_bounds): Update.
4204 (CHECK_MATCH): Update.
4205 (dw2_expand_symtabs_matching): Update.
4206 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4207 per_objfile parameter.
4208 <find_vec_in_debug_names>: Likewise.
4209 <m_per_objfile>: New field.
4210 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4212 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4213 (dw2_debug_names_iterator::next): Update.
4214 (dw2_debug_names_lookup_symbol): Update.
4215 (dw2_debug_names_expand_symtabs_for_function): Update.
4216 (dw2_debug_names_map_matching_symbols): Update.
4217 (dw2_debug_names_expand_symtabs_matching): Update.
4218 (dwarf2_read_debug_names): Update.
4220 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4222 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4223 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4224 move to dwarf2_per_objfile.
4225 <read_in_chain>: Remove.
4226 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4227 remove_all_cus, age_comp_units>: New methods.
4228 <m_dwarf2_cus>: New member.
4229 (struct dwarf2_per_cu_data) <cu>: Remove.
4230 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4231 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4232 moved to methods of dwarf2_per_objfile.
4233 (dwarf2_clear_marks): Remove.
4234 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4235 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4236 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4237 (dwarf2_per_objfile::remove_all_cus): New.
4238 (class free_cached_comp_units) <~free_cached_comp_units>:
4241 (dw2_do_instantiate_symtab): Adjust.
4242 (fill_in_sig_entry_from_dwo_entry): Adjust.
4243 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4244 (cutu_reader::cutu_reader): Likewise.
4245 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4246 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4247 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4248 and dwarf2_per_objfile::age_comp_units.
4249 (load_partial_comp_unit): Update.
4250 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4251 (process_queue): Likewise.
4252 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4254 (dwarf2_read_addr_index): Likewise.
4255 (follow_die_offset): Likewise.
4256 (dwarf2_fetch_die_loc_sect_off): Likewise.
4257 (dwarf2_fetch_constant_bytes): Likewise.
4258 (dwarf2_fetch_die_type_sect_off): Likewise.
4259 (follow_die_sig_1): Likewise.
4260 (load_full_type_unit): Likewise.
4261 (read_signatured_type): Likewise.
4262 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4263 (dwarf2_cu::~dwarf2_cu): Remove.
4264 (dwarf2_per_objfile::get_cu): New.
4265 (dwarf2_per_objfile::set_cu): New.
4266 (age_cached_comp_units): Rename to...
4267 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4268 to std::unordered_map.
4269 (free_one_cached_comp_unit): Rename to...
4270 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4271 to std::unordered_map.
4272 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4273 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4274 a dwarf2_per_objfile in data.
4275 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4276 (dwarf2_clear_marks): Remove.
4278 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4280 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4281 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4282 (init_tu_and_read_dwo_dies): Likewise.
4283 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4284 (cutu_reader::cutu_reader): Likewise.
4285 (load_partial_comp_unit): Likewise.
4286 (process_psymtab_comp_unit): Update.
4287 (build_type_psymtabs_1): Update.
4288 (process_skeletonless_type_unit): Update.
4289 (load_full_comp_unit): Update.
4290 (find_partial_die): Update.
4291 (dwarf2_read_addr_index): Update.
4292 (read_signatured_type): Update.
4294 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4296 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4297 m_header_read_in>: New fields.
4298 <get_header>: New method.
4299 * dwarf2/read.c (per_cu_header_read_in): Remove.
4300 (dwarf2_per_cu_data::get_header): New.
4301 (dwarf2_per_cu_data::addr_size): Update.
4302 (dwarf2_per_cu_data::offset_size): Update.
4303 (dwarf2_per_cu_data::ref_addr_size): Update.
4305 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4307 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4308 (dw2_do_instantiate_symtab): Update.
4309 (queue_and_load_all_dwo_tus): Change parameter from
4310 dwarf2_per_cu_data to dwarf2_cu.
4311 (dwarf2_fetch_die_loc_sect_off): Update.
4312 (dwarf2_fetch_constant_bytes): Update.
4313 (dwarf2_fetch_die_type_sect_off): Update.
4315 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4317 * dwarf2/read.c (process_full_comp_unit,
4318 process_full_type_unit): Remove per_cu, per_objfile paramters.
4319 Add dwarf2_cu parameter.
4320 (process_queue): Update.
4322 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4324 * dwarf2/read.c (create_cu_from_index_list): Replace
4325 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4326 (create_cus_from_index_list): Likewise.
4327 (create_cus_from_index): Likewise.
4328 (create_signatured_type_table_from_index): Likewise.
4329 (create_cus_from_debug_names_list): Likewise.
4330 (create_cus_from_debug_names): Likewise.
4331 (dwarf2_read_gdb_index): Update.
4332 (dwarf2_read_debug_names): Update.
4334 2020-05-27 Tom Tromey <tom@tromey.com>
4335 Simon Marchi <simon.marchi@efficios.com>
4337 * dwarf2/read.h (struct dwarf2_per_objfile)
4338 <get_type_for_signatured_type, set_type_for_signatured_type>:
4340 <m_type_map>: New member.
4341 (struct signatured_type) <type>: Remove.
4343 (dwarf2_per_objfile::get_type_for_signatured_type,
4344 dwarf2_per_objfile::set_type_for_signatured_type): New.
4345 (get_signatured_type): Use new methods.
4347 2020-05-27 Tom Tromey <tom@tromey.com>
4348 Simon Marchi <simon.marchi@efficios.com>
4350 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4351 (struct dwarf2_per_objfile) <type_units>: New member.
4352 <get_type_unit_group_unshareable>: New method.
4353 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4354 num_symtabs, symtabs>: Remove; move to
4355 type_unit_group_unshareable.
4356 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4357 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4358 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4360 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4362 * dwarf2/read.h (struct dwarf2_per_cu_data):
4363 <dwarf2_per_objfile>: Remove.
4364 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4366 (create_signatured_type_table_from_index): Likewise.
4367 (create_signatured_type_table_from_debug_names): Likewise.
4368 (create_debug_type_hash_table): Likewise.
4369 (fill_in_sig_entry_from_dwo_entry): Likewise.
4370 (create_type_unit_group): Likewise.
4371 (read_comp_units_from_section): Likewise.
4372 (create_cus_hash_table): Likewise.
4374 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4376 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4377 dwarf2_per_cu_data::dwarf2_per_objfile.
4378 (compute_compunit_symtab_includes): Likewise.
4379 (dwarf2_cu::start_symtab): Likewise.
4381 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4383 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4385 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4386 (read_namespace_alias): Update.
4387 (lookup_die_type): Update.
4388 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4389 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4391 (disassemble_dwarf_expression): Update.
4393 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4395 * dwarf2/read.h (struct dwarf2_queue_item): Add
4396 dwarf2_per_objfile parameter, assign new parameter.
4397 <per_objfile>: New field.
4398 * dwarf2/read.c (free_one_cached_comp_unit): Add
4399 dwarf2_per_objfile parameter.
4400 (queue_comp_unit): Likewise.
4401 (dw2_do_instantiate_symtab): Update.
4402 (process_psymtab_comp_unit): Update.
4403 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4404 (process_imported_unit_die): Update.
4405 (queue_and_load_dwo_tu): Update.
4406 (follow_die_offset): Update.
4407 (follow_die_sig_1): Update.
4409 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4411 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4412 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4413 (read_call_site_scope): Assign per_objfile.
4414 (dwarf2_per_cu_data::objfile): Remove.
4415 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4416 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4417 dwarf2_per_objfile parameter.
4418 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4419 dwarf2_per_objfile parameter.
4420 (dwarf_expr_reg_to_entry_parameter): Add output
4421 dwarf2_per_objfile parameter.
4422 (locexpr_get_frame_base): Update.
4423 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4424 <push_dwarf_reg_entry_value>: Update.
4425 <call_site_to_target_addr>: Update.
4426 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4428 (value_of_dwarf_reg_entry): Update.
4429 (rw_pieced_value): Update.
4430 (indirect_synthetic_pointer): Update.
4431 (dwarf2_evaluate_property): Update.
4432 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4434 (locexpr_read_variable): Update.
4435 (locexpr_get_symbol_read_needs): Update.
4436 (loclist_read_variable): Update.
4438 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4440 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4441 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4442 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4444 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4445 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4446 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4448 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4449 sect_variable_value): Add dwarf2_per_objfile parameter.
4450 (class dwarf_evaluate_loc_desc) <dwarf_call,
4451 dwarf_variable_value>: Update.
4452 (fetch_const_value_from_synthetic_pointer): Add
4453 dwarf2_per_objfile parameter.
4454 (fetch_const_value_from_synthetic_pointer): Update.
4455 (coerced_pieced_ref): Update.
4456 (class symbol_needs_eval_context) <dwarf_call,
4457 dwarf_variable_value>: Update.
4458 (dwarf2_compile_expr_to_ax): Update.
4460 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4462 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4464 (dwarf2_evaluate_loc_desc_full): Update.
4466 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4468 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4470 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4471 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4472 dwarf2_per_objfile parameter.
4473 (decode_debug_loc_dwo_addresses): Likewise.
4474 (dwarf2_find_location_expression): Update.
4475 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4476 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4478 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4480 (locexpr_describe_location_1): Likewise.
4481 (locexpr_describe_location): Update.
4483 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4485 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4487 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4488 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4489 (dwarf2_compile_property_to_c): Update.
4490 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4491 use text offset from objfile.
4492 (locexpr_tracepoint_var_ref): Update.
4493 (locexpr_generate_c_location): Update.
4494 (loclist_describe_location): Update.
4495 (loclist_tracepoint_var_ref): Update.
4496 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4497 dwarf2_per_objfile parameter.
4498 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4499 use text offset from objfile.
4500 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4502 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4504 * dwarf2/expr.h (struct dwarf_expr_context)
4505 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4507 <per_objfile>: New member.
4508 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4509 dwarf2_per_objfile parameter. Don't set offset, set
4511 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4512 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4513 a dwarf2_per_objfile object instead of an offset.
4514 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4516 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4517 to dwarf2_expr_executor constructor. Don't set offset.
4518 (dwarf2_fetch_cfa_info): Update.
4519 (struct dwarf2_frame_cache) <text_offset>: Remove.
4520 <per_objfile>: New field.
4521 (dwarf2_frame_cache): Update.
4522 (dwarf2_frame_prev_register): Update.
4523 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4524 <dwarf_evaluate_loc_desc>: Add constructor.
4525 (dwarf2_evaluate_loc_desc_full): Update.
4526 (dwarf2_locexpr_baton_eval): Update.
4527 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4529 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4531 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4533 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4534 addr_sized_int_type>: Move to dwarf2_cu.
4535 <int_type>: Move to dwarf2_per_objfile.
4536 (struct dwarf2_per_objfile) <int_type>: Move here.
4537 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4538 addr_sized_int_type>: Move here.
4539 (read_func_scope): Update.
4540 (read_array_type): Update.
4541 (read_tag_string_type): Update.
4542 (attr_to_dynamic_prop): Update.
4543 (dwarf2_per_cu_data::int_type): Rename to...
4544 (dwarf2_per_objfile::int_type): ... this.
4545 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4546 (dwarf2_cu::addr_sized_int_type): ... this.
4547 (read_subrange_type): Update.
4548 (dwarf2_per_cu_data::addr_type): Rename to...
4549 (dwarf2_cu::addr_type): ... this.
4550 (set_die_type): Update.
4552 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4554 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4555 data through per_cu->cu.
4557 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4559 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4560 dwarf2_per_cu_data parameter fo dwarf2_cu.
4561 (lookup_dwo_type_unit): Likewise.
4562 (read_cutu_die_from_dwo): Likewise.
4563 (lookup_dwo_unit): Likewise.
4564 (open_and_init_dwo_file): Likewise.
4565 (lookup_dwo_cutu): Likewise.
4566 (lookup_dwo_comp_unit): Likewise.
4567 (lookup_dwo_type_unit): Likewise.
4568 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4569 (cutu_reader::cutu_reader): Update.
4571 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4573 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4575 (process_full_type_unit): Likewise.
4576 (process_queue): Update.
4578 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4580 * dwarf2/read.c (recursively_compute_inclusions): Add
4581 dwarf2_per_objfile parameter.
4582 (compute_compunit_symtab_includes): Likewise.
4583 (process_cu_includes): Update.
4585 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4587 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4589 (create_type_unit_group): Update.
4590 (process_psymtab_comp_unit_reader): Update.
4591 (build_type_psymtabs_reader): Update.
4593 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4595 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4596 object through m_this_cu->cu.
4598 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4600 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4602 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4604 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4606 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4607 per_objfile parameter.
4608 (load_full_type_unit): Add per_objfile parameter.
4609 (read_signatured_type): Likewise.
4610 (load_full_comp_unit): Likewise.
4611 (load_cu): Likewise.
4612 (dw2_do_instantiate_symtab): Likewise.
4613 (dw2_get_file_names): Likewise.
4614 (dw2_map_symtabs_matching_filename): Update.
4615 (dw_expand_symtabs_matching_file_matcher): Update.
4616 (dw2_map_symbol_filenames): Update.
4617 (process_psymtab_comp_unit): Add per_objfile parameter.
4618 (build_type_psymtabs_1): Update.
4619 (process_skeletonless_type_unit): Update.
4620 (dwarf2_build_psymtabs_hard): Update.
4621 (load_partial_comp_unit): Add per_objfile parameter.
4622 (scan_partial_symbols): Update.
4623 (load_full_comp_unit): Add per_objfile parameter.
4624 (process_imported_unit_die): Update.
4625 (create_cus_hash_table): Update.
4626 (find_partial_die): Update.
4627 (dwarf2_read_addr_index): Update.
4628 (follow_die_offset): Update.
4629 (dwarf2_fetch_die_loc_sect_off): Update.
4630 (dwarf2_fetch_constant_bytes): Update.
4631 (dwarf2_fetch_die_type_sect_off): Update.
4632 (follow_die_sig_1): Update.
4633 (load_full_type_unit): Add per_objfile parameter.
4634 (read_signatured_type): Likewise.
4636 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4638 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4641 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4643 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4644 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4645 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4647 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4648 (create_cus_from_index): Update.
4649 (dwarf2_read_gdb_index): Update.
4650 (create_cus_from_debug_names): Update.
4651 (dwarf2_read_debug_names): Update.
4652 (get_abbrev_section_for_cu): Update.
4653 (create_all_comp_units): Update.
4654 (read_attribute_value): Update.
4655 (get_debug_line_section): Update.
4656 * dwarf2/index-cache.c (index_cache::store): Update.
4657 * dwarf2/index-write.c (save_gdb_index_command): Update.
4658 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4660 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4662 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4664 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4665 dwarf2_per_cu_data::per_bfd.
4666 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4667 (create_type_unit_group): Likewise.
4668 (queue_comp_unit): Remove reference to
4669 per_cu->dwarf2_per_objfile.
4670 (maybe_queue_comp_unit): Likewise.
4671 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4672 (create_cus_hash_table): Assign new field.
4674 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4676 * dwarf2/read.c: Replace
4677 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4678 dwarf2_cu->per_objfile throughout.
4680 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4682 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4683 parameter, don't use per_cu->dwarf2_per_objfile.
4684 (dw2_instantiate_symtab): Likewise.
4685 (dw2_find_last_source_symtab): Update.
4686 (dw2_map_expand_apply): Update.
4687 (dw2_lookup_symbol): Update.
4688 (dw2_expand_symtabs_for_function): Update.
4689 (dw2_expand_all_symtabs): Update.
4690 (dw2_expand_symtabs_with_fullname): Update.
4691 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4692 don't use per_cu->dwarf2_per_objfile.
4693 (dw2_expand_marked_cus): Update.
4694 (dw2_find_pc_sect_compunit_symtab): Update.
4695 (dw2_debug_names_lookup_symbol): Update.
4696 (dw2_debug_names_expand_symtabs_for_function): Update.
4697 (dw2_debug_names_map_matching_symbols): Update.
4698 (dwarf2_psymtab::expand_psymtab): Update.
4700 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4702 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4703 <per_objfile>: New member.
4704 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4705 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4707 (cutu_reader::cutu_reader): Update.
4708 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4710 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4712 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4713 struct dwarf2_per_objfile.
4714 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4716 * dwarf2/read.c (set_die_type): Update.
4717 (get_die_type_at_offset): Update.
4719 2020-05-27 Tom Tromey <tom@tromey.com>
4720 Simon Marchi <simon.marchi@efficios.com>
4722 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4724 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4725 get_symtab, set_symtab>: New methods.
4726 <m_symtabs>: New field.
4727 (struct dwarf2_psymtab): Derive from partial_symtab.
4728 <readin_p, get_compunit_symtab>: Declare methods.
4729 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4730 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4732 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4733 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4734 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4735 (dw2_symtab_iter_next, dw2_print_stats)
4736 (dw2_expand_symtabs_with_fullname)
4737 (dw2_expand_symtabs_matching_one)
4738 (dw_expand_symtabs_matching_file_matcher)
4739 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4740 (dw2_debug_names_iterator::next)
4741 (dw2_debug_names_map_matching_symbols)
4742 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4743 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4744 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4746 (get_compunit_symtab, process_full_comp_unit)
4747 (process_full_type_unit): Update.
4748 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4750 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4752 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4753 then introduce a new dwarf2_per_objfile type.
4754 <read_line_string>: Move to the new dwarf2_per_objfile type.
4755 <objfile>: Likewise.
4756 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4757 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4758 dwarf2_per_objfile->per_bfd.
4759 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4760 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4761 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4762 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4763 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4764 (dwarf2_per_objfile::locate_sections): Rename to...
4765 (dwarf2_per_bfd::locate_sections): ... this.
4766 (dwarf2_per_objfile::get_cutu): Rename to...
4767 (dwarf2_per_bfd::get_cutu): ... this.
4768 (dwarf2_per_objfile::get_cu): Rename to...
4769 (dwarf2_per_bfd::get_cu): ... this.
4770 (dwarf2_per_objfile::get_tu): Rename to...
4771 (dwarf2_per_bfd::get_tu): ... this.
4772 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4773 (dwarf2_per_bfd::allocate_per_cu): ... this.
4774 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4775 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4776 (get_gdb_index_contents_ftype): Change parameter from
4777 dwarf2_per_objfile to dwarf2_per_bfd.
4778 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4779 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4781 2020-05-27 Tom Tromey <tom@tromey.com>
4782 Simon Marchi <simon.marchi@efficios.com>
4784 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4785 (allocate_piece_closure): Set "per_objfile" member.
4786 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4787 (locexpr_describe_location, loclist_describe_location): Use new
4789 * dwarf2/read.c (read_call_site_scope)
4790 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4791 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4792 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4793 handle_data_member_location): Set per_objfile member.
4794 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4796 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4798 2020-05-27 Tom Tromey <tom@tromey.com>
4800 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4801 allocate_signatured_type>: Declare new methods.
4802 <m_num_psymtabs>: New member.
4803 (struct dwarf2_per_cu_data) <index>: New member.
4804 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4805 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4806 (create_cu_from_index_list): Use allocate_per_cu.
4807 (create_signatured_type_table_from_index)
4808 (create_signatured_type_table_from_debug_names)
4809 (create_debug_type_hash_table, add_type_unit)
4810 (read_comp_units_from_section): Use allocate_signatured_type.
4812 2020-05-27 Tom Tromey <tom@tromey.com>
4814 * psymtab.c (partial_map_expand_apply)
4815 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4816 (psym_lookup_global_symbol_language)
4817 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4818 (psym_print_stats, psym_expand_symtabs_for_function)
4819 (psym_map_symbol_filenames, psym_map_matching_symbols)
4820 (psym_expand_symtabs_matching)
4821 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4822 (maintenance_check_psymtabs): Update.
4823 * psympriv.h (struct partial_symtab) <readin_p,
4824 get_compunit_symtab>: Add objfile parameter.
4825 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4827 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4828 get_compunit_symtab>: Likewise.
4829 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4831 2020-05-27 Tom Tromey <tom@tromey.com>
4833 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4835 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4836 (create_cu_from_index_list)
4837 (create_signatured_type_table_from_index)
4838 (create_signatured_type_table_from_debug_names)
4839 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4840 (dwarf2_create_include_psymtab)
4841 (create_debug_type_hash_table, add_type_unit)
4842 (create_type_unit_group, read_comp_units_from_section)
4843 (dwarf2_compute_name, create_cus_hash_table)
4844 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4845 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4847 (dw2_get_real_path): Likewise. Change argument to
4850 2020-05-27 Luis Machado <luis.machado@linaro.org>
4853 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4854 for ldrd (immediate).
4856 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4858 * command.h: Add comment giving the name of class_tui.
4859 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4860 create the fake command for the help for class_tui.
4862 2020-05-26 Tom Tromey <tromey@adacore.com>
4864 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4865 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4866 (val_atr): New function.
4867 (value_val_atr): Use it.
4868 * ada-valprint.c (print_optional_low_bound): Change low bound
4870 (val_print_packed_array_elements): Don't call discrete_position.
4871 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4872 discrete_position for enum types.
4873 * language.c (default_print_array_index): Change type.
4874 * language.h (struct language_defn) <la_print_array_index>: Add
4875 index_type parameter, change type of index_value.
4876 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4877 (default_print_array_index): Update.
4878 * valprint.c (maybe_print_array_index): Don't call
4879 value_from_longest. Update.
4880 (value_print_array_elements): Don't call discrete_position.
4882 2020-05-26 Tom Tromey <tromey@adacore.com>
4884 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4885 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4887 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4890 * avr-tdep.c (avr_integer_to_address): Return data or code
4891 address accordingly to the second 'type' argument of the
4894 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4896 * infcmd.c, inferior.h: (construct_inferior_arguments):
4897 Moved function from here to gdbsupport/common-inferior.{h,cc}
4899 2020-05-23 Tom Tromey <tom@tromey.com>
4901 Revert commit eca1f90c:
4902 * NEWS: Remove entry for completion styling.
4903 * completer.c (_rl_completion_prefix_display_length): Move
4905 (gdb_fnprint): Revert.
4906 (gdb_display_match_list_1): Likewise.
4907 * cli/cli-style.c (completion_prefix_style)
4908 (completion_difference_style, completion_suffix_style): Remove.
4909 (_initialize_cli_style): Revert.
4910 * cli/cli-style.h (completion_prefix_style)
4911 (completion_difference_style, completion_suffix_style): Don't
4914 2020-05-24 Pedro Alves <palves@redhat.com>
4916 * symtab.c (completion_list_add_name): Return boolean indication
4917 of whether the symbol matched.
4918 (completion_list_add_symbol): Don't try to remove C++ aliases if
4919 the symbol didn't match in the first place.
4920 * symtab.h (completion_list_add_name): Return bool.
4922 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4924 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4927 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4931 2020-05-23 Tom Tromey <tom@tromey.com>
4933 * NEWS: Add entry for completion styling.
4934 * completer.c (_rl_completion_prefix_display_length): Move
4935 declaration earlier.
4936 (gdb_fnprint): Use completion_style.
4937 (gdb_display_match_list_1): Likewise.
4938 * cli/cli-style.c (completion_prefix_style)
4939 (completion_difference_style, completion_suffix_style): New
4941 (_initialize_cli_style): Register new globals.
4942 * cli/cli-style.h (completion_prefix_style)
4943 (completion_difference_style, completion_suffix_style): Declare.
4945 2020-05-23 Pedro Alves <palves@redhat.com>
4947 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4948 (parse_escape): Use ISDIGIT instead of isdigit.
4949 (puts_debug): Use gdb_isprint instead of isprint.
4950 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4951 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4952 ISSPACE instead of isspace.
4953 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4955 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4956 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4957 instead of isxdigit and ISDIGIT instead of isdigit.
4959 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4961 * gdbtypes.h (struct type) <field>: New method.
4962 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4965 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4967 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4968 (TYPE_FIELDS): Use type::fields. Change all call sites that
4969 modify the propery to use type::set_fields instead.
4971 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4973 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4974 type::num_fields instead.
4976 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4978 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4980 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4981 that modify the number of fields to use type::set_num_fields
4984 2020-05-22 Tom Tromey <tromey@adacore.com>
4986 * compile/compile-object-load.h (munmap_list_free): Don't
4989 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4991 * annotate.c (annotate_source_line): Update return type, add call
4992 to update current symtab and line.
4993 * annotate.h (annotate_source_line): Update return type, and
4994 extend header comment.
4995 * source.c (info_line_command): Check annotation_level before
4996 calling annotate_source_line.
4997 * stack.c (print_frame_info): If calling annotate_source_line
4998 returns true, then don't print any other source line information.
5000 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5002 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
5004 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
5006 * coffread.c (patch_type): Remove NULL check before xfree.
5007 * corefile.c (set_gnutarget): Likewise.
5008 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
5009 * exec.c (build_section_table): Likewise.
5010 * remote.c (remote_target::pass_signals): Likewise.
5011 * utils.c (n_spaces): Likewise.
5012 * cli/cli-script.c (document_command): Likewise.
5013 * i386-windows-tdep.c (core_process_module_section): Likewise.
5014 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
5016 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
5018 * symfile.c (reread_symbols): Clear objfile's section_offsets
5019 vector and section indices, re-compute them by calling
5022 2020-05-20 Tom Tromey <tromey@adacore.com>
5024 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
5025 (desc_one_bound, desc_index_type): Compute field name.
5027 2020-05-20 Tom de Vries <tdevries@suse.de>
5030 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
5032 2020-05-20 Alan Modra <amodra@gmail.com>
5035 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
5037 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
5038 passed to bfd_set_filename.
5039 * symfile-mem.c (add_vsyscall_page): Likewise for string
5040 passed to symbol_file_add_from_memory.
5041 (symbol_file_add_from_memory): Make name param a const char* and
5044 2020-05-20 Alan Modra <amodra@gmail.com>
5046 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
5047 rather than accessing bfd->filename directly.
5048 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
5049 and use bfd_section_name.
5050 * dwarf2/frame.c (decode_frame_entry): Likewise.
5051 * exec.c (exec_set_section_address): Likewise.
5052 * solib-aix.c (solib_aix_bfd_open): Likewise.
5053 * stap-probe.c (get_stap_base_address): Likewise.
5054 * symfile.c (reread_symbols): Likewise.
5056 2020-05-19 Tom Tromey <tromey@adacore.com>
5058 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
5060 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5062 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
5064 2020-05-19 Pedro Alves <palves@redhat.com>
5066 * NEWS (set exec-file-mismatch): Adjust entry.
5067 * exec.c: Include "build-id.h".
5068 (validate_exec_file): Try to match build IDs instead of filenames.
5069 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
5070 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
5071 and pass down 'warn_if_slow'.
5072 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
5073 gdb_bfd_open_closure to pass it down.
5074 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
5076 2020-05-19 Pedro Alves <palves@redhat.com>
5078 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
5079 * target.c (target_fileio_open_1): Rename to target_fileio_open
5080 and make extern. Use bool.
5081 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
5082 (target_fileio_read_alloc_1): Adjust.
5083 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
5084 (target_fileio_open_warn_if_slow): Delete declaration.
5086 2020-05-19 Pedro Alves <palves@redhat.com>
5088 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
5091 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
5093 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
5094 whether disp is negative.
5096 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5098 * symfile.h (struct symfile_segment_data)
5099 <~symfile_segment_data>: Remove.
5100 <segment_info>: Change to std::vector.
5101 * symfile.c (default_symfile_segments): Update.
5102 * elfread.c (elf_symfile_segments): Update.
5104 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5106 * symfile.h (struct symfile_segment_data) <struct segment>: New.
5108 <segment_bases, segment_sizes>: Remove.
5109 * symfile.c (default_symfile_segments): Update.
5110 * elfread.c (elf_symfile_segments): Update.
5111 * remote.c (remote_target::get_offsets): Update.
5112 * solib-target.c (solib_target_relocate_section_addresses):
5115 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
5117 * symfile.h (struct symfile_segment_data): Initialize fields.
5118 <~symfile_segment_data>: Add.
5119 (symfile_segment_data_up): New.
5120 (struct sym_fns) <sym_segments>: Return a
5121 symfile_segment_data_up.
5122 (default_symfile_segments): Return a symfile_segment_data_up.
5123 (free_symfile_segment_data): Remove.
5124 (get_symfile_segment_data): Return a symfile_segment_data_up.
5125 * symfile.c (default_symfile_segments): Likewise.
5126 (get_symfile_segment_data): Likewise.
5127 (free_symfile_segment_data): Remove.
5128 (symfile_find_segment_sections): Update.
5129 * elfread.c (elf_symfile_segments): Return a
5130 symfile_segment_data_up.
5131 * remote.c (remote_target::get_offsets): Update.
5132 * solib-target.c (solib_target_relocate_section_addresses):
5134 * symfile-debug.c (debug_sym_segments): Return a
5135 symfile_segment_data_up.
5137 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5140 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
5141 Hardcode register numbers.
5144 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
5145 procfs_find_LDT_entry): Remove.
5146 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
5147 procfs_find_LDT_entry): Remove.
5148 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
5151 2020-05-17 Pedro Alves <palves@redhat.com>
5152 Andrew Burgess <andrew.burgess@embecosm.com>
5153 Keno Fischer <keno@juliacomputing.com>
5156 * breakpoint.c (build_target_condition_list): Update comments.
5157 (build_target_command_list): Update comments and skip matching
5159 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
5160 a separate function. Simplify "set breakpoint auto-hw off"
5162 (insert_breakpoints): Update comment.
5163 (tracepoint_locations_match): New parameter. For breakpoints,
5164 compare location types too, if the caller wants to.
5165 (handle_automatic_hardware_breakpoints): New functions.
5166 (bp_location_is_less_than): Also sort by location type and
5167 hardware breakpoint length.
5168 (update_global_location_list): Handle "set breakpoint auto-hw on"
5170 (update_breakpoint_locations): Ask breakpoint_locations_match to
5171 ignore location types.
5173 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5175 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
5178 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5180 * gdbtypes.h (struct type) <name, set_name>: New methods.
5181 (TYPE_CODE): Use type::name. Change all call sites used to set
5182 the name to use type::set_name instead.
5184 2020-05-16 Tom Tromey <tom@tromey.com>
5186 * top.c (quit_force): Update.
5187 * infrun.c (handle_no_resumed): Update.
5188 * top.h (all_uis): New function.
5191 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
5193 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
5195 2020-05-16 Pedro Alves <palves@redhat.com>
5198 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
5200 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5202 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5204 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5205 (sparc64_adi_info): Likewise.
5207 2020-05-15 Tom Tromey <tom@tromey.com>
5209 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5211 (lookup_objfile_from_block): Remove.
5212 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5213 (lookup_global_symbol): Use block_objfile.
5214 * symtab.h (lookup_objfile_from_block): Don't declare.
5215 * printcmd.c (clear_dangling_display_expressions): Use
5217 * parse.c (operator_check_standard): Use block_objfile.
5219 2020-05-15 Tom Tromey <tom@tromey.com>
5221 * language.c (language_alloc_type_symbol): Set
5223 * symtab.c (initialize_objfile_symbol): Remove.
5224 (allocate_symbol): Remove.
5225 (allocate_template_symbol): Remove.
5226 * dwarf2/read.c (fixup_go_packaging): Use "new".
5227 (new_symbol): Use "new".
5228 (read_variable): Don't call initialize_objfile_symbol. Use
5230 (read_func_scope): Use "new".
5231 * xcoffread.c (process_xcoff_symbol): Don't call
5232 initialize_objfile_symbol.
5233 (SYMBOL_DUP): Remove.
5234 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5236 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5237 (allocate_template_symbol): Don't declare.
5238 (struct symbol): Add copy constructor. Change defaults.
5239 * jit.c (finalize_symtab): Use "new".
5240 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5242 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5243 (common_block_end): Use "new".
5244 * mdebugread.c (parse_symbol): Use "new".
5245 (new_symbol): Likewise.
5247 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5249 * NEWS: Mention changes to help and apropos.
5251 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5253 * command.h (enum command_class): Improve comments, document
5254 that class_alias is for user-defined aliases, give the class
5255 name for each class, remove unused class_xdb.
5256 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5257 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5259 * infcmd.c (_initialize_infcmd): Likewise.
5260 * reverse.c (_initialize_reverse): Likewise.
5261 * stack.c (_initialize_stack): Likewise.
5262 * symfile.c (_initialize_symfile): Likewise.
5263 * tracepoint.c (_initialize_tracepoint): Likewise.
5265 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5267 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5268 when their aliased command is traversed.
5269 (help_cmd): Add fput_command_names_styled call to
5270 output command name and aliases when command has an alias.
5272 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5274 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5275 * cli/cli-decode.c (help_cmd_list): Declare as static,
5276 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5277 a command together with the command.
5278 (fput_command_name_styled, fput_command_names_styled): New functions.
5279 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5280 fput_command_name_styled.
5281 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5282 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5284 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5286 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5287 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5288 * command.h (cmd_show_list): Likewise.
5289 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5290 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5292 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5294 * unittests/command-def-selftests.c (traverse_command_structure):
5295 Verify all commands of a list have the same prefix command and
5296 that only the top cmdlist commands have a null prefix.
5298 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5300 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5301 as prefix, not one of its aliases.
5302 (set_cmd_prefix): Remove.
5303 (do_add_cmd): Centralize the setting of the prefix of a command, when
5304 command is defined after its full chain of prefix commands.
5305 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5306 (add_setshow_cmd_full): Likewise.
5307 (update_prefix_field_of_prefixed_commands): New function.
5308 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5309 update_prefix_field_of_prefixed_commands.
5310 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5311 addresses of remote_set_cmdlist and remote_show_cmdlist given
5312 as argument, not the address of an argument.
5313 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5314 * gdb/remote.c (_initialize_remote): Likewise.
5316 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5318 * cli/cli-cmds.c (alias_command): Check for an existing alias
5319 using lookup_cmd_composition, as valid_command_p is too strict
5320 and forbids aliases that are the prefix of an existing alias
5322 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5323 command is properly recognised as a valid command.
5325 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5327 * unittests/help-doc-selftests.c: Rename to
5328 unittests/command-def-selftests.c
5329 * unittests/command-def-selftests.c (help_doc_tests): Update some
5331 (command_structure_tests, traverse_command_structure): New namespace
5333 (command_structure_invariants_tests): New function.
5334 (_initialize_command_def_selftests) Renamed from
5335 _initialize_help_doc_selftests, register command_structure_invariants
5338 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5340 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5343 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5345 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5346 ada_is_fixed_point_type. Update all callers.
5347 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5349 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5351 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5352 print_fixed_point_type. Update all callers.
5353 * ada-valprint.c (ada_value_print_num): Replace call to
5354 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5356 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5358 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5360 (cpu_supports_bts): Add CV_AMD case.
5362 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5363 Simon Marchi <simon.marchi@efficios.com>
5365 * infrun.c (stop_all_threads): Collect multiple wait events at
5368 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5370 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5373 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5375 * gdbtypes.h (struct type) <code, set_code>: New methods.
5376 (TYPE_CODE): Use type::code. Change all call sites used to set
5377 the code to use type::set_code instead.
5379 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5380 Tom de Vries <tdevries@suse.de>
5381 Pedro Alves <palves@redhat.com>
5384 * infrun.c (stop_all_threads): Do NOT ignore
5385 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5386 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5388 (handle_no_resumed): Remove code handling a live inferior with no
5390 * remote.c (has_single_non_exited_thread): New.
5391 (remote_target::update_thread_list): Do not delete a thread if is
5392 the last thread of the process.
5393 * thread.c (thread_select): Call delete_exited_threads instead of
5396 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5398 * infrun.c (stop_all_threads): Enable/disable thread events of all
5399 targets. Move a debug message denoting the end of the function
5400 into the SCOPED_EXIT block.
5402 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5404 * process-stratum-target.h: Include <set>.
5405 (all_non_exited_process_targets, switch_to_target_no_thread): New
5406 function declarations.
5407 * process-stratum-target.c (all_non_exited_process_targets)
5408 (switch_to_target_no_thread): New function implementations.
5410 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5412 * infrun.c (handle_inferior_event): Extract out a piece of code
5414 (mark_non_executing_threads): ...this new function.
5416 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5418 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5421 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5423 * regcache.c (regcache_read_pc_protected): New function
5424 implementation that returns 0 if the PC cannot read via
5426 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5427 instead of 'regcache_read_pc'.
5428 (keep_going_pass_signal): Ditto.
5430 2020-05-13 Tom Tromey <tromey@adacore.com>
5432 * ada-lang.c (align_value): Remove.
5433 (ada_template_to_fixed_record_type_1): Use align_up.
5435 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5437 * async-event.c: Update the copyright year.
5438 * async-event.h: Update the copyright year.
5440 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5442 * objfiles.h (is_addr_in_objfile,
5443 shared_objfile_contains_address_p): Return bool.
5444 * objfile.c (is_addr_in_objfile,
5445 shared_objfile_contains_address_p): Return bool.
5447 2020-05-11 Tom Tromey <tromey@adacore.com>
5449 * cli/cli-cmds.c (info_command): Restore.
5450 (_initialize_cli_cmds): Use add_prefix_command for "info".
5451 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5453 2020-05-11 Tom Tromey <tromey@adacore.com>
5455 * ada-lang.c (ada_value_primitive_field): Now public.
5456 * ada-lang.h (ada_value_primitive_field): Declare.
5457 * ada-valprint.c (print_field_values): Use
5458 ada_value_primitive_field for wrapper fields.
5460 2020-05-11 Tom de Vries <tdevries@suse.de>
5462 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5465 2020-05-11 Tom de Vries <tdevries@suse.de>
5468 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5469 with length 0, if not gdb-produced.
5470 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5472 2020-05-09 Tom de Vries <tdevries@suse.de>
5475 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5478 2020-05-09 Tom Tromey <tom@tromey.com>
5480 * top.c (server_command): Now bool.
5481 * top.h (server_command): Now bool.
5483 2020-05-08 Tom Tromey <tromey@adacore.com>
5485 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5486 already being processed.
5488 2020-05-08 Tom Tromey <tom@tromey.com>
5490 * printcmd.c (struct display) <next>: Remove.
5491 <display>: New constructor.
5492 <exp_string>: Now a std::string.
5493 <enabled_p>: Now a bool.
5494 (display_number): Move definition earlier.
5495 (displays): Rename from display_chain. Now a std::vector.
5496 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5497 (display_command): Update.
5498 (do_one_display, disable_display)
5499 (enable_disable_display_command, do_enable_disable_display):
5501 (free_display): Remove.
5502 (clear_displays): Rewrite.
5503 (delete_display): Update.
5504 (map_display_numbers): Use function_view. Remove "data"
5506 (do_delete_display): Remove.
5507 (undisplay_command): Update.
5508 (do_one_display, do_displays, disable_display)
5509 (info_display_command): Update.
5510 (do_enable_disable_display): Remove.
5511 (enable_disable_display_command)
5512 (clear_dangling_display_expressions): Update.
5514 2020-05-08 Tom Tromey <tom@tromey.com>
5516 * symtab.c (set_symbol_cache_size)
5517 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5518 (maintenance_print_symbol_cache_statistics): Update.
5519 * symmisc.c (print_symbol_bcache_statistics)
5520 (print_objfile_statistics, maintenance_print_objfiles)
5521 (maintenance_info_symtabs, maintenance_check_symtabs)
5522 (maintenance_expand_symtabs, maintenance_info_line_tables):
5524 * symfile-debug.c (set_debug_symfile): Update.
5525 * source.c (forget_cached_source_info): Update.
5526 * python/python.c (gdbpy_progspaces): Update.
5527 * psymtab.c (maintenance_info_psymtabs): Update.
5528 * probe.c (parse_probes): Update.
5529 * linespec.c (iterate_over_all_matching_symtabs)
5530 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5531 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5532 * exec.c (exec_target::close): Update.
5533 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5534 * breakpoint.c (print_one_breakpoint_location)
5535 (create_longjmp_master_breakpoint)
5536 (create_std_terminate_master_breakpoint): Update.
5537 * progspace.c (program_spaces): Now a std::vector.
5538 (maybe_new_address_space): Update.
5539 (add_program_space): Remove.
5540 (program_space::program_space): Update.
5541 (remove_program_space): Update.
5542 (number_of_program_spaces): Remove.
5543 (print_program_space, update_address_spaces): Update.
5544 * progspace.h (program_spaces): Change type.
5545 (ALL_PSPACES): Remove.
5546 (number_of_program_spaces): Don't declare.
5547 (struct program_space) <next>: Remove.
5549 2020-05-08 Tom Tromey <tom@tromey.com>
5551 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5552 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5553 (enable_break): Update.
5554 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5555 (frv_fdpic_find_canonical_descriptor): Update.
5556 (frv_fetch_objfile_link_map): Update.
5557 * progspace.c (program_space::free_all_objfiles): Update.
5558 (program_space::solibs): New method.
5559 * progspace.h (struct program_space) <solibs>: New method.
5560 * solist.h (master_so_list): Don't declare.
5561 (ALL_SO_LIBS): Remove.
5562 * solib.h (so_list_head): Remove.
5563 (update_solib_list): Update comment.
5564 * solib.c (master_so_list): Remove.
5565 (solib_used, update_solib_list, solib_add)
5566 (info_sharedlibrary_command, clear_solib)
5567 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5569 2020-05-08 Tom Tromey <tom@tromey.com>
5571 * extension.c (extension_languages): Now a std::array.
5572 (ALL_EXTENSION_LANGUAGES): Remove.
5573 (get_ext_lang_defn, get_ext_lang_of_file)
5574 (eval_ext_lang_from_control_command): Update.
5575 (finish_ext_lang_initialization)
5576 (auto_load_ext_lang_scripts_for_objfile)
5577 (ext_lang_type_printers::ext_lang_type_printers)
5578 (apply_ext_lang_type_printers)
5579 (ext_lang_type_printers::~ext_lang_type_printers)
5580 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5581 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5582 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5583 (get_matching_xmethod_workers, ext_lang_colorize)
5584 (ext_lang_before_prompt): Update.
5585 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5587 2020-05-08 Tom Tromey <tom@tromey.com>
5589 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5591 <swap_string, m_string>: Remove.
5592 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5594 * stabsread.c (define_symbol, read_type): Update.
5595 * linespec.c (find_linespec_symbols): Update.
5596 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5597 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5598 * dbxread.c (read_dbx_symtab): Update.
5599 * cp-support.h (cp_canonicalize_string_full)
5600 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5601 Return unique_xmalloc_ptr.
5602 * cp-support.c (inspect_type): Update.
5603 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5604 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5606 * c-typeprint.c (print_name_maybe_canonical): Update.
5607 * break-catch-throw.c (check_status_exception_catchpoint):
5610 2020-05-08 Tom de Vries <tdevries@suse.de>
5612 * infrun.c (follow_fork): Copy current_line and current_symtab to
5615 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5617 * async-event.c (struct async_signal_handler, struct
5618 async_event_handler): Reformat, remove typedef.
5620 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5622 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5623 access thistype->main_type->dyn_prop_list directly.
5625 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5627 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5628 (remove_dyn_prop): Remove. Update all users to use
5629 type::remove_dyn_prop.
5630 * gdbtypes.c (remove_dyn_prop): Rename to...
5631 (type::remove_dyn_prop): ... this.
5633 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5635 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5636 (add_dyn_prop): Remove. Update all users to use
5638 * gdbtypes.c (add_dyn_prop): Rename to...
5639 (type::add_dyn_prop): ... this.
5641 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5643 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5644 (get_dyn_prop): Remove. Update all users to use
5646 * gdbtypes.c (get_dyn_prop): Rename to...
5647 (type::dyn_prop): ... this.
5649 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5651 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5653 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5655 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5656 instruction, skip it if it's there.
5658 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5660 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5662 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5664 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5665 * gdbtypes.c (recursive_dump_type): Remove use of
5668 2020-05-03 Tom Tromey <tom@tromey.com>
5670 * breakpoint.c (catch_command, tcatch_command): Remove.
5671 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5672 add_show_prefix_cmd.
5673 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5674 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5676 (add_internal_problem_command): Use add_basic_prefix_cmd,
5677 add_show_prefix_cmd.
5678 * mips-tdep.c (set_mipsfpu_command): Remove.
5679 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5680 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5681 (_initialize_index_cache): Use add_basic_prefix_cmd.
5682 * memattr.c (dummy_cmd): Remove.
5683 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5684 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5685 (_initialize_tui_win): Use add_basic_prefix_cmd,
5686 add_show_prefix_cmd.
5687 * cli/cli-logging.c (set_logging_command): Remove.
5688 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5689 add_show_prefix_cmd.
5690 (show_logging_command): Remove.
5691 * target.c (target_command): Remove.
5692 (add_target): Use add_basic_prefix_cmd.
5694 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5696 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5698 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5700 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5703 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5705 * nbsd-nat.c (nbsd_enable_proc_events)
5706 (nbsd_nat_target::post_startup_inferior): Add.
5707 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5708 (nbsd_nat_target::update_thread_list): Rewrite.
5709 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5710 "PTRACE_LWP_CREATE".
5711 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5713 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5715 * stack.c (_initialize_stack): Remove duplicated creation
5716 of "frame" command and "f" alias.
5718 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5721 * gdbtypes.c (check_typedef): Calculate size of array of
5724 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5727 * i386-tdep.c (i386_push_dummy_call): Call
5728 i386_thiscall_push_dummy_call.
5729 (i386_thiscall_push_dummy_call): New function.
5730 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5731 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5732 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5734 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5736 * gdbarch.sh (do_read): Add shellcheck disable directive for
5739 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5741 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5742 "referenced but not assigned" warning.
5744 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5746 * gdbarch.sh: Remove code that sets fallbackdefault.
5748 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5750 * gdbarch.sh: Use shell operators && and || instead of
5753 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5755 * gdbarch.sh: Use $(...) instead of `...`.
5757 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5759 * gdbarch.sh: Use double quotes around variables.
5761 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5763 * gdbarch.sh: Use %s with printf, instead of variables in the
5766 2020-04-29 Tom Tromey <tromey@adacore.com>
5769 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5771 (read_enumeration_type): Call
5772 update_enumeration_type_from_children later. Update comments.
5773 (process_enumeration_scope): Don't create type fields.
5775 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5777 * nbsd-tdep.c: Include "xml-syscall.h".
5778 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5780 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5782 * nbsd-nat.c: Include "sys/wait.h".
5783 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5784 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5785 (nbsd_nat_target::remove_exec_catchpoint)
5786 (nbsd_nat_target::set_syscall_catchpoint): Add.
5787 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5788 (nbsd_nat_target::insert_exec_catchpoint)
5789 (nbsd_nat_target::remove_exec_catchpoint)
5790 (nbsd_nat_target::set_syscall_catchpoint): Add.
5791 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5792 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5793 `nbsd_get_syscall_number'.
5795 2020-04-29 Tom Tromey <tom@tromey.com>
5797 * stack.c (print_block_frame_labels): Remove.
5799 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5802 * ada-valprint.c (val_print_packed_array_elements): Move array
5803 end bracket to new line.
5804 (ada_val_print_string): Remove extra spaces before first array
5806 * c-valprint.c (c_value_print_array): Likewise.
5807 * m2-valprint.c (m2_print_array_contents): Likewise.
5808 (m2_value_print_inner): Likewise.
5809 * p-valprint.c (pascal_value_print_inner): Likewise.
5810 * valprint.c (generic_val_print_array): Likewise.
5811 (value_print_array_elements): Move first array element and array
5812 end bracket to new line.
5814 2020-04-29 Tom de Vries <tdevries@suse.de>
5817 * linespec.c (find_method): Fix ix calculation.
5819 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5821 * syscalls/update-netbsd.sh: New file.
5822 * syscalls/netbsd.xml: Regenerate.
5823 * data-directory/Makefile.in: Register `netbsd.xml' in
5826 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5828 * syscalls/update-freebsd.sh: Add double quotes.
5830 2020-04-28 Tom Tromey <tom@tromey.com>
5833 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5834 (cmdpy_init): Allow class_tui.
5836 2020-04-28 Mark Williams <mark@myosotissp.com>
5839 * dwarf2read.c: Add missing assingments to list_in_scope when
5840 start_symtab was already called.
5842 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5845 * dwarf2/read.c (offset_map_type): Use
5846 gdb:hash_enum<sect_offset> as hash function.
5848 2020-04-28 Tom de Vries <tdevries@suse.de>
5850 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5851 with DW_AT_signature.
5853 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5855 * configure.ac: Remove check for fs_base/gs_base in
5857 * configure: Re-generate.
5858 * config.in: Re-generate.
5859 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5860 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5861 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5863 2020-04-27 Luis Machado <luis.machado@linaro.org>
5865 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5866 problematic inline frame unwinding situation.
5867 * frame.c (frame_id_computed_p): New function.
5868 * frame.h (frame_id_computed_p): New prototype.
5870 2020-04-26 Tom Tromey <tom@tromey.com>
5872 * command.h (enum command_class) <class_pseudo>: Remove.
5874 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5876 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5879 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5881 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5882 `PT_GET_PROCESS_STATE' block.
5884 2020-04-24 Tom Tromey <tom@tromey.com>
5886 * symtab.h (symbol_get_demangled_name): Don't declare.
5887 * symtab.c (symbol_get_demangled_name): Remove.
5888 (general_symbol_info::natural_name)
5889 (general_symbol_info::demangled_name): Update.
5891 2020-04-24 Tom Tromey <tom@tromey.com>
5894 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5896 2020-04-24 Tom Tromey <tom@tromey.com>
5899 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5901 (new_symbol): Likewise.
5902 * compile/compile-object-load.c (get_out_value_type): Use
5903 symbol_matches_search_name.
5905 2020-04-24 Tom Tromey <tom@tromey.com>
5907 * dwarf2/read.c (add_partial_symbol): Do not call
5908 compute_and_set_names.
5910 2020-04-24 Tom Tromey <tom@tromey.com>
5912 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5915 2020-04-24 Tom Tromey <tom@tromey.com>
5917 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5918 (add_psymbol_to_list): New overload. Make old overload call new
5920 * psympriv.h (add_psymbol_to_list): New overload.
5922 2020-04-24 Tom Tromey <tom@tromey.com>
5924 * dwarf2/read.c (partial_die_info::read) <case
5925 DW_AT_linkage_name>: Use value_as_string.
5926 (dwarf2_string_attr): Use value_as_string.
5927 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5929 * dwarf2/attribute.c (attribute::value_as_string): New method.
5931 2020-04-24 Tom Tromey <tom@tromey.com>
5933 * symtab.c (general_symbol_info::natural_name)
5934 (general_symbol_info::demangled_name): Check for language_rust.
5936 2020-04-24 Tom Tromey <tom@tromey.com>
5938 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5939 (dwarf2_physname): ... from here.
5940 (partial_die_info::read): Add Rust "{" hack.
5942 2020-04-24 Tom Tromey <tom@tromey.com>
5944 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5946 (symbol_set_demangled_name): Don't declare.
5947 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5948 symbol_set_demangled_name.
5949 (general_symbol_info::set_language)
5950 (general_symbol_info::compute_and_set_names): Update.
5951 * minsyms.c (minimal_symbol_reader::install): Update.
5952 * dwarf2/read.c (new_symbol): Update.
5954 2020-04-24 Tom Tromey <tromey@adacore.com>
5957 * python/py-type.c (convert_field): Handle
5958 FIELD_LOC_KIND_DWARF_BLOCK.
5959 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5960 (typy_get_dynamic): Nw function.
5961 (type_object_getset): Add "dynamic".
5964 2020-04-24 Tom Tromey <tromey@adacore.com>
5966 * ada-typeprint.c (print_choices, print_variant_part)
5967 (print_record_field_types_dynamic): New functions.
5968 (print_record_field_types): Use print_record_field_types_dynamic.
5970 2020-04-24 Tom Tromey <tromey@adacore.com>
5972 * dwarf2/read.c (handle_data_member_location): New overload.
5973 (dwarf2_add_field): Use it.
5974 (decode_locdesc): Add "computed" parameter. Update comment.
5975 * gdbtypes.c (is_dynamic_type_internal): Also look for
5976 FIELD_LOC_KIND_DWARF_BLOCK.
5977 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5978 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5979 virtual base classes.
5980 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5981 FIELD_LOC_KIND_DWARF_BLOCK.
5983 2020-04-24 Tom Tromey <tromey@adacore.com>
5985 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5986 * gdbtypes.c (is_dynamic_type_internal): Check
5987 TYPE_HAS_DYNAMIC_LENGTH.
5988 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5989 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5991 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5994 2020-04-24 Tom Tromey <tromey@adacore.com>
5996 * dwarf2/read.c (struct variant_field): Rewrite.
5997 (struct variant_part_builder): New.
5998 (struct nextfield): Remove "variant" field. Add "offset".
5999 (struct field_info): Add "current_variant_part" and
6001 (alloc_discriminant_info): Remove.
6002 (alloc_rust_variant): New function.
6003 (quirk_rust_enum): Update.
6004 (dwarf2_add_field): Set "offset" member. Don't handle
6005 DW_TAG_variant_part.
6006 (offset_map_type): New typedef.
6007 (convert_variant_range, create_one_variant)
6008 (create_one_variant_part, create_variant_parts)
6009 (add_variant_property): New functions.
6010 (dwarf2_attach_fields_to_type): Call add_variant_property.
6011 (read_structure_type): Don't handle DW_TAG_variant_part.
6012 (handle_variant_part, handle_variant): New functions.
6013 (handle_struct_member_die): Use them.
6014 (process_structure_scope): Don't handle variant parts.
6015 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
6016 (struct discriminant_info): Remove.
6017 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
6018 (struct main_type) <flag_discriminated_union>: Remove.
6019 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
6020 (rust_enum_variant): Return int. Remove "contents". Rewrite.
6021 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
6023 * valops.c (value_union_variant): Remove.
6024 * value.h (value_union_variant): Don't declare.
6026 2020-04-24 Tom Tromey <tromey@adacore.com>
6028 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
6029 (ada_value_primitive_packed_val): Update.
6030 * ada-valprint.c (ada_value_print_1): Update.
6031 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
6032 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
6033 just an address. Use evaluate_for_locexpr_baton.
6034 (dwarf2_evaluate_property): Update.
6035 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
6037 * findvar.c (default_read_var_value): Update.
6038 * gdbtypes.c (compute_variant_fields_inner)
6039 (resolve_dynamic_type_internal): Update.
6040 (resolve_dynamic_type): Change type of valaddr parameter.
6041 * gdbtypes.h (resolve_dynamic_type): Update.
6042 * valarith.c (value_subscripted_rvalue): Update.
6043 * value.c (value_from_contents_and_address): Update.
6045 2020-04-24 Tom Tromey <tromey@adacore.com>
6047 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
6048 "push_initial_value" parameter.
6049 (dwarf2_evaluate_property): Likewise.
6050 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
6052 2020-04-24 Tom Tromey <tromey@adacore.com>
6054 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
6055 (variant::matches, compute_variant_fields_recurse)
6056 (compute_variant_fields_inner, compute_variant_fields): New
6058 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
6059 Use resolved_type after type is made.
6060 (operator==): Add new cases.
6061 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
6062 (struct discriminant_range, struct variant, struct variant_part):
6064 (union dynamic_prop_data) <variant_parts, original_type>: New
6066 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
6067 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
6069 * value.c (unpack_bits_as_long): Now public.
6070 * value.h (unpack_bits_as_long): Declare.
6072 2020-04-24 Tom Tromey <tromey@adacore.com>
6074 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
6075 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
6077 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
6079 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
6081 2020-04-24 Kamil Rytarowski <n54@gmx.com>
6083 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
6084 (remove_fork_catchpoint, post_startup_inferior)
6085 (post_attach): Move...
6086 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
6087 (remove_fork_catchpoint, post_startup_inferior)
6088 (post_attach): ...here.
6089 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
6090 (remove_fork_catchpoint, post_startup_inferior)
6091 (post_attach): Move...
6092 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
6093 (remove_fork_catchpoint, post_startup_inferior)
6094 (post_attach): ...here.
6096 2020-04-24 Tom Tromey <tromey@adacore.com>
6098 * nat/windows-nat.h (struct windows_thread_info)
6099 <pc_adjusted>: New member.
6100 * windows-nat.c (windows_fetch_one_register): Check
6102 (windows_nat_target::get_windows_debug_event)
6103 (windows_nat_target::wait): Set pc_adjusted.
6105 2020-04-24 Tom de Vries <tdevries@suse.de>
6107 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
6108 Run gdb-add-index inside temp dir.
6110 2020-04-23 Tom Tromey <tromey@adacore.com>
6112 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
6115 2020-04-23 Luis Machado <luis.machado@linaro.org>
6117 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
6118 get_frame_register instead of gdbarch_unwind_pc.
6120 2020-04-23 Tom de Vries <tdevries@suse.de>
6122 * symtab.c (lookup_global_symbol): Prefer def over decl.
6124 2020-04-23 Tom de Vries <tdevries@suse.de>
6127 * block.c (best_symbol, better_symbol): Promote to external.
6128 * block.h (best_symbol, better_symbol): Declare.
6129 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
6132 2020-04-23 Tom Tromey <tromey@adacore.com>
6135 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
6136 "const char *", not a "const std::string &".
6137 <name_and_matcher::operator==>: Update.
6138 * unittests/lookup_name_info-selftests.c: Change type of
6141 2020-04-23 Tom Tromey <tom@tromey.com>
6143 * inferior.h (iterate_over_inferiors): Don't declare.
6144 * inferior.c (iterate_over_inferiors): Remove.
6145 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
6147 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
6148 use iterate_over_inferiors.
6149 (darwin_resume_inferior_it)
6150 (struct resume_inferior_threads_param)
6151 (darwin_resume_inferior_threads_it): Remove.
6152 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
6154 2020-04-23 Tom de Vries <tdevries@suse.de>
6156 * blockframe.c (find_pc_partial_function): Use
6157 find_pc_sect_compunit_symtab rather than
6158 objfile->sf->qf->find_pc_sect_compunit_symtab.
6160 2020-04-22 Tom de Vries <tdevries@suse.de>
6163 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
6166 2020-04-22 Tom de Vries <tdevries@suse.de>
6169 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
6172 2020-04-22 Tom de Vries <tdevries@suse.de>
6175 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
6176 CU if already created.
6178 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6180 * infrun.c (displaced_step_fixup): Switch to the event_thread
6181 before calling displaced_step_restore, not after.
6183 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6185 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
6186 its inferior is not recorded by us.
6187 (record_btrace_target_open): Replace call to
6188 all_non_exited_threads () with call to current_inferior
6189 ()->non_exited_threads ().
6190 (record_btrace_target::stop_recording): Likewise.
6191 (record_btrace_target::close): Likewise.
6192 (record_btrace_target::wait): Likewise.
6193 (record_btrace_target::record_stop_replaying): Likewise.
6195 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6197 * btrace.c (btrace_enable): Throw an error on double enables and
6198 when enabling recording fails.
6199 (btrace_disable): Throw an error if the thread is not recorded.
6201 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6203 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6204 request if we do not have a thread_info.
6206 2020-04-21 Tom de Vries <tdevries@suse.de>
6210 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6211 exception in get_frame_id.
6213 2020-04-20 Tom Tromey <tromey@adacore.com>
6215 * python/python.c (struct gdbpy_event): Mark move constructor as
6217 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6218 constructor as noexcept.
6219 * completer.h (struct completion_result): Mark move constructor as
6221 * completer.c (completion_result::completion_result): Use
6222 initialization style. Don't call reset_match_list.
6224 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6226 * MAINTAINERS (Write After Approval): Add myself.
6228 2020-04-18 Tom Tromey <tom@tromey.com>
6230 * windows-tdep.c (init_w32_command_list)
6231 (w32_prefix_command_valid): Restore.
6232 (_initialize_windows_tdep): Call init_w32_command_list.
6234 2020-04-18 Tom Tromey <tom@tromey.com>
6236 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6237 * value.c (value_fn_field): Update.
6238 * valops.c (find_function_in_inferior)
6239 (value_allocate_space_in_inferior): Update.
6240 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6242 * tui/tui-source.c (tui_source_window::set_contents): Update.
6243 * symtab.c (lookup_global_or_static_symbol)
6244 (find_function_start_sal_1, skip_prologue_sal)
6245 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6246 * symmisc.c (dump_msymbols, dump_symtab_1)
6247 (maintenance_print_one_line_table): Update.
6248 * symfile.c (init_entry_point_info, section_is_mapped)
6249 (list_overlays_command, simple_read_overlay_table)
6250 (simple_overlay_update_1): Update.
6251 * stap-probe.c (handle_stap_probe): Update.
6252 * stabsread.c (dbx_init_float_type, define_symbol)
6253 (read_one_struct_field, read_enum_type, read_range_type): Update.
6254 * source.c (info_line_command): Update.
6255 * python/python.c (gdbpy_source_objfile_script)
6256 (gdbpy_execute_objfile_script): Update.
6257 * python/py-type.c (save_objfile_types): Update.
6258 * python/py-objfile.c (py_free_objfile): Update.
6259 * python/py-inferior.c (python_new_objfile): Update.
6260 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6261 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6262 (maintenance_check_psymtabs): Update.
6263 * printcmd.c (info_address_command): Update.
6264 * objfiles.h (struct objfile) <arch>: New method, from
6266 (get_objfile_arch): Don't declare.
6267 * objfiles.c (get_objfile_arch): Remove.
6268 (filter_overlapping_sections): Update.
6269 * minsyms.c (msymbol_is_function): Update.
6270 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6271 (output_nondebug_symbol): Update.
6272 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6273 (mdebug_expand_psymtab): Update.
6274 * machoread.c (macho_add_oso_symfile): Update.
6275 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6277 * linux-fork.c (checkpoint_command): Update.
6278 * linespec.c (convert_linespec_to_sals): Update.
6279 * jit.c (finalize_symtab): Update.
6280 * infrun.c (insert_exception_resume_from_probe): Update.
6281 * ia64-tdep.c (ia64_find_unwind_table): Update.
6282 * hppa-tdep.c (internalize_unwinds): Update.
6283 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6285 * gcore.c (call_target_sbrk): Update.
6286 * elfread.c (record_minimal_symbol, elf_symtab_read)
6287 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6288 (elf_gnu_ifunc_resolve_by_got): Update.
6289 * dwarf2/read.c (create_addrmap_from_index)
6290 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6291 (read_debug_names_from_section)
6292 (process_psymtab_comp_unit_reader, add_partial_symbol)
6293 (add_partial_subprogram, process_full_comp_unit)
6294 (read_file_scope, read_func_scope, read_lexical_block_scope)
6295 (read_call_site_scope, dwarf2_ranges_read)
6296 (dwarf2_record_block_ranges, dwarf2_add_field)
6297 (mark_common_block_symbol_computed, read_tag_pointer_type)
6298 (read_tag_string_type, dwarf2_init_float_type)
6299 (dwarf2_init_complex_target_type, read_base_type)
6300 (partial_die_info::read, partial_die_info::read)
6301 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6302 (dwarf2_fetch_die_loc_sect_off): Update.
6303 * dwarf2/loc.c (dwarf2_find_location_expression)
6304 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6305 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6306 (dwarf2_loc_desc_get_symbol_read_needs)
6307 (locexpr_describe_location_piece, locexpr_describe_location_1)
6308 (loclist_describe_location): Update.
6309 * dwarf2/index-write.c (write_debug_names): Update.
6310 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6311 * dtrace-probe.c (dtrace_process_dof): Update.
6312 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6313 (process_one_symbol): Update.
6314 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6315 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6316 (coff_read_enum_type): Update.
6317 * cli/cli-cmds.c (edit_command, list_command): Update.
6318 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6319 * breakpoint.c (create_overlay_event_breakpoint)
6320 (create_longjmp_master_breakpoint)
6321 (create_std_terminate_master_breakpoint)
6322 (create_exception_master_breakpoint, get_sal_arch): Update.
6323 * block.c (block_gdbarch): Update.
6324 * annotate.c (annotate_source_line): Update.
6326 2020-04-17 Tom Tromey <tromey@adacore.com>
6328 * auto-load.c (show_auto_load_cmd): Remove.
6329 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6330 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6331 (maintenance_print_arc_command): Remove.
6332 * tui/tui-win.c (tui_command): Remove.
6333 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6334 * tui/tui-layout.c (tui_layout_command): Remove.
6335 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6336 * python/python.c (user_set_python, user_show_python): Remove.
6337 (_initialize_python): Use add_basic_prefix_cmd,
6338 add_show_prefix_cmd.
6339 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6340 (install_gdb_commands): Use add_basic_prefix_cmd,
6341 add_show_prefix_cmd.
6342 (info_guile_command): Remove.
6343 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6344 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6345 add_show_prefix_cmd.
6346 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6347 Remove do_set and do_show parameters.
6348 * cli/cli-style.c (set_style, show_style): Remove.
6349 (_initialize_cli_style): Use add_basic_prefix_cmd,
6350 add_show_prefix_cmd.
6351 (cli_style_option::add_setshow_commands): Remove do_set and
6353 (cli_style_option::add_setshow_commands): Use
6354 add_basic_prefix_cmd, add_show_prefix_cmd.
6355 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6356 (set_style_name): Remove.
6357 * cli/cli-dump.c (dump_command, append_command): Remove.
6358 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6359 (tekhex_dump_command, binary_dump_command)
6360 (binary_append_command): Remove.
6361 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6362 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6363 (init_w32_command_list): Remove; move into ...
6364 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6365 * valprint.c (set_print, show_print, set_print_raw)
6366 (show_print_raw): Remove.
6367 (_initialize_valprint): Use add_basic_prefix_cmd,
6368 add_show_prefix_cmd.
6369 * typeprint.c (set_print_type, show_print_type): Remove.
6370 (_initialize_typeprint): Use add_basic_prefix_cmd,
6371 add_show_prefix_cmd.
6372 * record.c (set_record_command, show_record_command): Remove.
6373 (_initialize_record): Use add_basic_prefix_cmd,
6374 add_show_prefix_cmd.
6375 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6376 add_show_prefix_cmd.
6377 (info_command, show_command, set_debug, show_debug): Remove.
6378 * top.h (set_history, show_history): Don't declare.
6379 * top.c (set_history, show_history): Remove.
6380 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6381 (unset_tdesc_cmd): Remove.
6382 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6383 add_show_prefix_cmd.
6384 * symtab.c (info_module_command): Remove.
6385 (_initialize_symtab): Use add_basic_prefix_cmd.
6386 * symfile.c (overlay_command): Remove.
6387 (_initialize_symfile): Use add_basic_prefix_cmd.
6388 * sparc64-tdep.c (info_adi_command): Remove.
6389 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6390 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6391 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6392 add_show_prefix_cmd.
6393 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6394 (_initialize_serial): Use add_basic_prefix_cmd,
6395 add_show_prefix_cmd.
6396 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6397 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6398 add_show_prefix_cmd.
6399 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6400 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6401 add_show_prefix_cmd.
6402 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6403 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6404 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6405 add_show_prefix_cmd.
6406 * remote.c (remote_command, set_remote_cmd): Remove.
6407 (_initialize_remote): Use add_basic_prefix_cmd.
6408 * record-full.c (set_record_full_command)
6409 (show_record_full_command): Remove.
6410 (_initialize_record_full): Use add_basic_prefix_cmd,
6411 add_show_prefix_cmd.
6412 * record-btrace.c (cmd_set_record_btrace)
6413 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6414 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6415 (cmd_show_record_btrace_pt): Remove.
6416 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6417 add_show_prefix_cmd.
6418 * ravenscar-thread.c (set_ravenscar_command)
6419 (show_ravenscar_command): Remove.
6420 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6421 add_show_prefix_cmd.
6422 * mips-tdep.c (show_mips_command, set_mips_command)
6423 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6424 add_show_prefix_cmd.
6425 * maint.c (maintenance_command, maintenance_info_command)
6426 (maintenance_check_command, maintenance_print_command)
6427 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6428 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6429 add_show_prefix_cmd.
6430 (show_per_command_cmd): Remove.
6431 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6433 (maintenance_show_test_settings_cmd): Remove.
6434 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6435 add_show_prefix_cmd.
6436 * maint-test-options.c (maintenance_test_options_command):
6438 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6439 * macrocmd.c (macro_command): Remove
6440 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6441 * language.c (set_check, show_check): Remove.
6442 (_initialize_language): Use add_basic_prefix_cmd,
6443 add_show_prefix_cmd.
6444 * infcmd.c (unset_command): Remove.
6445 (_initialize_infcmd): Use add_basic_prefix_cmd.
6446 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6447 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6448 add_show_prefix_cmd.
6449 * go32-nat.c (go32_info_dos_command): Remove.
6450 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6451 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6452 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6453 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6454 (_initialize_frame): Use add_basic_prefix_cmd,
6455 add_show_prefix_cmd.
6456 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6457 (_initialize_dcache): Use add_basic_prefix_cmd,
6458 add_show_prefix_cmd.
6459 * cp-support.c (maint_cplus_command): Remove.
6460 (_initialize_cp_support): Use add_basic_prefix_cmd.
6461 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6462 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6463 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6464 add_basic_prefix_cmd, add_show_prefix_cmd.
6465 * breakpoint.c (save_command): Remove.
6466 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6467 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6468 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6469 add_show_prefix_cmd.
6470 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6471 (set_ada_command, show_ada_command): Remove.
6472 (_initialize_ada_language): Use add_basic_prefix_cmd,
6473 add_show_prefix_cmd.
6474 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6476 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6478 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6479 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6481 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6483 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6486 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6488 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6489 import table is not at beginning of .idata section.
6491 2020-04-16 Pedro Alves <palves@redhat.com>
6493 * inferior.c (delete_inferior): Use delete operator directly
6494 instead of delete_program_space.
6495 * progspace.c (add_program_space): New, factored out from
6496 program_space::program_space.
6497 (remove_program_space): New, factored out from
6498 delete_program_space.
6499 (program_space::program_space): Remove intro comment. Rewrite.
6500 (program_space::~program_space): Remove intro comment. Call
6501 remove_program_space.
6502 (delete_program_space): Delete.
6503 * progspace.h (program_space::program_space): Make explicit. Move
6504 intro comment here, adjusted.
6505 (program_space::~program_space): Move intro comment here,
6507 (delete_program_space): Remove.
6509 2020-04-16 Tom Tromey <tromey@adacore.com>
6511 * windows-nat.c (windows_nat::handle_access_violation): New
6513 * nat/windows-nat.h (handle_access_violation): Declare.
6514 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6515 windows-nat.c. Call handle_access_violation.
6517 2020-04-16 Tom de Vries <tdevries@suse.de>
6520 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6521 CUs without psymtab.
6523 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6525 * python/python.c (do_start_initialization): Don't call
6526 PyEval_InitThreads for Python 3.9 and beyond.
6528 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6530 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6532 (obsd_nat_target::wait): Likewise.
6534 2020-04-15 Tom Tromey <tromey@adacore.com>
6536 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6537 (DEBUG_EXCEPT): Use debug_printf.
6539 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6541 * completer.c (class completion_tracker::completion_hash_entry)
6542 <hash_name>: New member function.
6543 (completion_tracker::discard_completions): New callback to hash a
6544 completion_hash_entry, pass this to htab_create_alloc.
6546 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6548 * windows-nat.c (windows_make_so): Warn rather than stopping with
6549 an error if realpath() fails.
6551 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6553 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6554 (nbsd_nat_target::info_proc): Add do_status.
6556 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6557 Tom de Vries <tdevries@suse.de>
6560 * psympriv.h (struct partial_symtab::read_symtab)
6561 (struct partial_symtab::expand_psymtab)
6562 (struct partial_symtab::read_dependencies): Update comments.
6563 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6564 read_symtab for includer.
6565 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6566 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6567 (struct dwarf2_include_psymtab::m_readin): Remove.
6568 (struct dwarf2_include_psymtab::includer): New member function.
6569 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6571 2020-04-14 Tom de Vries <tdevries@suse.de>
6574 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6575 with NULL symbol_matcher and lookup_name.
6576 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6578 * dwarf2/read.c (dw2_expand_symtabs_matching)
6579 (dw2_debug_names_expand_symtabs_matching): Same.
6580 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6581 Make lookup_name a pointer. Update comment.
6582 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6583 lookup_name being a pointer.
6584 * symfile.c (expand_symtabs_matching): Same.
6585 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6586 * linespec.c (iterate_over_all_matching_symtabs): Same.
6588 2020-04-13 Tom Tromey <tom@tromey.com>
6590 * run-on-main-thread.c: Update include.
6591 * unittests/main-thread-selftests.c: Update include.
6592 * tui/tui-win.c: Update include.
6593 * tui/tui-io.c: Update include.
6594 * tui/tui-interp.c: Update include.
6595 * tui/tui-hooks.c: Update include.
6596 * top.h: Update include.
6597 * top.c: Update include.
6598 * ser-base.c: Update include.
6599 * remote.c: Update include.
6600 * remote-notif.c: Update include.
6601 * remote-fileio.c: Update include.
6602 * record-full.c: Update include.
6603 * record-btrace.c: Update include.
6604 * python/python.c: Update include.
6605 * posix-hdep.c: Update include.
6606 * mingw-hdep.c: Update include.
6607 * mi/mi-main.c: Update include.
6608 * mi/mi-interp.c: Update include.
6609 * main.c: Update include.
6610 * linux-nat.c: Update include.
6611 * interps.c: Update include.
6612 * infrun.c: Update include.
6613 * inf-loop.c: Update include.
6614 * event-top.c: Update include.
6615 * event-loop.c: Move to ../gdbsupport/.
6616 * event-loop.h: Move to ../gdbsupport/.
6617 * async-event.h: Update include.
6618 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6620 2020-04-13 Tom Tromey <tom@tromey.com>
6622 * tui/tui-win.c: Include async-event.h.
6623 * remote.c: Include async-event.h.
6624 * remote-notif.c: Include async-event.h.
6625 * record-full.c: Include async-event.h.
6626 * record-btrace.c: Include async-event.h.
6627 * infrun.c: Include async-event.h.
6628 * event-top.c: Include async-event.h.
6629 * event-loop.h: Move some declarations to async-event.h.
6630 * event-loop.c: Don't include ser-event.h or top.h. Move some
6631 code to async-event.c.
6632 * async-event.h: New file.
6633 * async-event.c: New file.
6634 * Makefile.in (COMMON_SFILES): Add async-event.c.
6635 (HFILES_NO_SRCDIR): Add async-event.h.
6637 2020-04-13 Tom Tromey <tom@tromey.com>
6639 * utils.c (flush_streams): New function.
6640 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6642 2020-04-13 Tom Tromey <tom@tromey.com>
6644 * event-loop.c (handle_file_event): Use warning, not
6647 2020-04-13 Tom Tromey <tom@tromey.com>
6649 * event-loop.c: Include <chrono>.
6651 2020-04-13 Tom Tromey <tom@tromey.com>
6653 * gdb_select.h: Move to ../gdbsupport/.
6654 * event-loop.c: Update include path.
6655 * top.c: Update include path.
6656 * ser-base.c: Update include path.
6657 * ui-file.c: Update include path.
6658 * ser-tcp.c: Update include path.
6659 * guile/scm-ports.c: Update include path.
6660 * posix-hdep.c: Update include path.
6661 * ser-unix.c: Update include path.
6662 * gdb_usleep.c: Update include path.
6663 * mingw-hdep.c: Update include path.
6664 * inflow.c: Update include path.
6665 * infrun.c: Update include path.
6666 * event-top.c: Update include path.
6668 2020-04-13 Tom Tromey <tom@tromey.com>
6670 * configure: Rebuild.
6671 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6673 2020-04-13 Tom Tromey <tom@tromey.com>
6675 * event-loop.h (start_event_loop): Don't declare.
6676 * event-loop.c (start_event_loop): Move...
6677 * main.c (start_event_loop): ...here. Now static.
6679 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6681 * MAINTAINERS: Update my email address.
6683 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6685 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6688 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6690 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6691 (nbsd_nat_target::info_proc): Add do_cmdline.
6693 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6695 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6696 (nbsd_nat_target::info_proc): Add do_cwd.
6698 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6700 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6702 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6704 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6705 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6706 (nbsd_nat_target::info_proc): New functions.
6707 * nbsd-nat.c (kinfo_get_vmmap): New function.
6708 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6709 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6710 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6711 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6713 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6714 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6715 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6716 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6717 (KINFO_VME_FLAG_GROWS_DOWN): New.
6719 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6721 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6724 2020-04-10 Tom Tromey <tromey@adacore.com>
6726 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6728 2020-04-10 Tom Tromey <tromey@adacore.com>
6730 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6731 separate debug files.
6733 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6735 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6737 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6739 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6740 Check for STATUS_WX86_BREAKPOINT.
6741 (windows_nat_target::wait): Same.
6743 2020-04-10 Tom de Vries <tdevries@suse.de>
6746 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6748 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6750 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6751 (Write After Approval): Remove Tom de Vries.
6753 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6756 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6758 * buildsym.c (record_line): Fix undefined behavior and preserve
6761 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6763 * auxv.h (svr4_auxv_parse): New.
6764 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6765 and generic_auxv_parse.
6766 (svr4_auxv_parse): Add.
6767 * obsd-tdep.c: Include "auxv.h".
6768 (obsd_auxv_parse): Remove.
6769 (obsd_init_abi): Remove comment.
6770 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6771 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6772 * nbsd-tdep.c: Include "auxv.h".
6773 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6775 2020-04-08 Tom Tromey <tromey@adacore.com>
6777 * nat/windows-nat.h (last_wait_event): Don't declare.
6778 (wait_for_debug_event): Update comment.
6779 * nat/windows-nat.c (last_wait_event): Now static.
6781 2020-04-08 Tom Tromey <tromey@adacore.com>
6783 * windows-nat.c (wait_for_debug_event): Move to
6785 * nat/windows-nat.h (wait_for_debug_event): Declare.
6786 * nat/windows-nat.c (wait_for_debug_event): Move from
6787 windows-nat.c. No longer static.
6789 2020-04-08 Tom Tromey <tromey@adacore.com>
6791 * windows-nat.c (get_windows_debug_event): Use
6793 * nat/windows-nat.h (fetch_pending_stop): Declare.
6794 * nat/windows-nat.c (fetch_pending_stop): New function.
6796 2020-04-08 Tom Tromey <tromey@adacore.com>
6798 * windows-nat.c (windows_continue): Use matching_pending_stop and
6799 continue_last_debug_event.
6800 * nat/windows-nat.h (matching_pending_stop)
6801 (continue_last_debug_event): Declare.
6802 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6803 (matching_pending_stop, continue_last_debug_event): New
6806 2020-04-08 Tom Tromey <tromey@adacore.com>
6808 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6809 (handle_exception_result): Move to nat/windows-nat.h.
6810 (DEBUG_EXCEPTION_SIMPLE): Remove.
6811 (windows_nat::handle_ms_vc_exception): New function.
6812 (handle_exception): Move to nat/windows-nat.c.
6813 (get_windows_debug_event): Update.
6814 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6816 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6817 (handle_exception_result): Move from windows-nat.c.
6818 (handle_exception): Declare.
6819 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6820 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6823 2020-04-08 Tom Tromey <tromey@adacore.com>
6825 * windows-nat.c (exception_count, event_count): Remove.
6826 (handle_exception, get_windows_debug_event)
6827 (do_initial_windows_stuff): Update.
6829 2020-04-08 Tom Tromey <tromey@adacore.com>
6831 * windows-nat.c (windows_nat::handle_load_dll)
6832 (windows_nat::handle_unload_dll): Rename. No longer static.
6833 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6836 2020-04-08 Tom Tromey <tromey@adacore.com>
6838 * complaints.h (stop_whining): Declare at top-level.
6839 (complaint): Don't declare stop_whining.
6841 2020-04-08 Tom Tromey <tromey@adacore.com>
6843 * windows-nat.c (windows_nat::handle_output_debug_string):
6844 Rename. No longer static.
6845 * nat/windows-nat.h (handle_output_debug_string): Declare.
6847 2020-04-08 Tom Tromey <tromey@adacore.com>
6849 * windows-nat.c (current_process_handle, current_process_id)
6850 (main_thread_id, last_sig, current_event, last_wait_event)
6851 (current_windows_thread, desired_stop_thread_id, pending_stops)
6852 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6853 (display_selectors, fake_create_process)
6854 (get_windows_debug_event): Update.
6855 * nat/windows-nat.h (current_process_handle, current_process_id)
6856 (main_thread_id, last_sig, current_event, last_wait_event)
6857 (current_windows_thread, desired_stop_thread_id, pending_stops)
6858 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6859 * nat/windows-nat.c (current_process_handle, current_process_id)
6860 (main_thread_id, last_sig, current_event, last_wait_event)
6861 (current_windows_thread, desired_stop_thread_id, pending_stops)
6862 (siginfo_er): New globals. Move from windows-nat.c.
6864 2020-04-08 Tom Tromey <tromey@adacore.com>
6866 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6867 (handle_load_dll): Update.
6868 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6870 2020-04-08 Tom Tromey <tromey@adacore.com>
6872 * windows-nat.c (enum thread_disposition_type): Move to
6874 (windows_nat::thread_rec): Rename from thread_rec. No longer
6876 (windows_add_thread, windows_nat_target::fetch_registers)
6877 (windows_nat_target::store_registers, handle_exception)
6878 (windows_nat_target::resume, get_windows_debug_event)
6879 (windows_nat_target::get_tib_address)
6880 (windows_nat_target::thread_name)
6881 (windows_nat_target::thread_alive): Update.
6882 * nat/windows-nat.h (enum thread_disposition_type): Move from
6884 (thread_rec): Declare.
6886 2020-04-08 Tom Tromey <tromey@adacore.com>
6888 * windows-nat.c: Add "using namespace".
6889 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6890 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6892 2020-04-08 Tom Tromey <tromey@adacore.com>
6894 * nat/windows-nat.h (struct windows_thread_info): Declare
6896 * nat/windows-nat.c (~windows_thread_info): New.
6898 2020-04-08 Tom Tromey <tromey@adacore.com>
6901 * windows-nat.c (current_event): Update comment.
6902 (last_wait_event, desired_stop_thread_id): New globals.
6903 (struct pending_stop): New.
6904 (pending_stops): New global.
6905 (windows_nat_target) <stopped_by_sw_breakpoint>
6906 <supports_stopped_by_sw_breakpoint>: New methods.
6907 (windows_fetch_one_register): Add assertions. Adjust PC.
6908 (windows_continue): Handle pending stops. Suspend other threads
6909 when stepping. Use last_wait_event
6910 (wait_for_debug_event): New function.
6911 (get_windows_debug_event): Use wait_for_debug_event. Handle
6912 pending stops. Queue spurious stops.
6913 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6914 (windows_nat_target::kill): Use wait_for_debug_event.
6915 * nat/windows-nat.h (struct windows_thread_info)
6916 <stopped_at_software_breakpoint>: New field.
6917 * nat/windows-nat.c (windows_thread_info::resume): Clear
6918 stopped_at_software_breakpoint.
6920 2020-04-08 Tom Tromey <tromey@adacore.com>
6922 * windows-nat.c (enum thread_disposition_type): New.
6923 (thread_rec): Replace "get_context" parameter with "disposition";
6925 (windows_add_thread, windows_nat_target::fetch_registers)
6926 (windows_nat_target::store_registers, handle_exception)
6927 (windows_nat_target::resume, get_windows_debug_event)
6928 (windows_nat_target::get_tib_address)
6929 (windows_nat_target::thread_name)
6930 (windows_nat_target::thread_alive): Update.
6932 2020-04-08 Tom Tromey <tromey@adacore.com>
6934 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6935 (windows_continue): Use windows_continue::resume.
6936 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6937 resume>: Declare new methods.
6938 * nat/windows-nat.c: New file.
6939 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6941 2020-04-08 Tom Tromey <tromey@adacore.com>
6943 * windows-nat.c (windows_add_thread, windows_delete_thread)
6944 (windows_nat_target::fetch_registers)
6945 (windows_nat_target::store_registers, fake_create_process)
6946 (windows_nat_target::resume, windows_nat_target::resume)
6947 (get_windows_debug_event, windows_nat_target::wait)
6948 (windows_nat_target::pid_to_str)
6949 (windows_nat_target::get_tib_address)
6950 (windows_nat_target::get_ada_task_ptid)
6951 (windows_nat_target::thread_name)
6952 (windows_nat_target::thread_alive): Use lwp, not tid.
6954 2020-04-08 Tom Tromey <tromey@adacore.com>
6956 * windows-nat.c (handle_exception)
6957 (windows_nat_target::thread_name): Update.
6958 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6959 <name>: Now unique_xmalloc_ptr.
6961 2020-04-08 Tom Tromey <tromey@adacore.com>
6963 * windows-nat.c (thread_rec)
6964 (windows_nat_target::fetch_registers): Update.
6965 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6967 <debug_registers_changed, reload_context>: Now bool.
6969 2020-04-08 Tom Tromey <tromey@adacore.com>
6971 * windows-nat.c (windows_add_thread): Use new.
6972 (windows_init_thread_list, windows_delete_thread): Use delete.
6973 (get_windows_debug_event): Update.
6974 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6975 destructor, and initializers.
6977 2020-04-08 Tom Tromey <tromey@adacore.com>
6979 * windows-nat.c (struct windows_thread_info): Remove.
6980 * nat/windows-nat.h: New file.
6982 2020-04-08 Tom Tromey <tromey@adacore.com>
6984 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6985 (thread_rec, windows_add_thread, windows_delete_thread)
6986 (windows_continue): Update.
6988 2020-04-08 Tom Tromey <tromey@adacore.com>
6990 * windows-nat.c (struct windows_thread_info): Remove typedef.
6991 (thread_head): Remove.
6992 (thread_list): New global.
6993 (thread_rec, windows_add_thread, windows_init_thread_list)
6994 (windows_delete_thread, windows_continue): Update.
6996 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6998 * windows-tdep.h (windows_init_abi): Add comment.
6999 (cygwin_init_abi): New declaration.
7000 * windows-tdep.c: Split signal enumeration in two, one for
7001 Windows and one for Cygwin.
7002 (windows_gdb_signal_to_target): Only deal with signal of the
7004 (cygwin_gdb_signal_to_target): New function.
7005 (windows_init_abi): Rename to windows_init_abi_common, don't set
7006 gdb_signal_to_target gdbarch method. Add new new function with
7008 (cygwin_init_abi): New function.
7009 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
7010 comment. Don't call windows_init_abi.
7011 (amd64_windows_init_abi): Add comment, call windows_init_abi.
7012 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
7013 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
7014 i386_windows_init_abi_common, don't call windows_init_abi. Add
7015 a new function of this name.
7016 (i386_cygwin_init_abi): New function.
7017 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
7020 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
7022 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
7024 (dwarf2_read_gdb_index): Update.
7026 2020-04-07 Kamil Rytarowski <n54@gmx.com>
7028 * nbsd-tdep.c: Include "objfiles.h".
7029 (nbsd_skip_solib_resolver): New.
7030 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
7032 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7034 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
7035 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
7036 with DW_LLE_base_addressx are being emitted in DWARFv5.
7037 Add the newly added kind DW_LOC_OFFSET_PAIR also.
7038 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
7041 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7043 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
7044 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
7045 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
7046 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
7047 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
7048 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
7049 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
7052 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
7054 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
7055 (read_loclist_index): New function definition.
7056 (lookup_loclist_base): New function definition.
7057 (read_loclist_header): New function definition.
7058 (dwarf2_cu): Add loclist_base and loclist_header field.
7059 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
7060 (read_full_die_1): Read the value of DW_AT_loclists_base.
7061 (read_attribute_reprocess): Handle DW_FORM_loclistx.
7062 (read_attribute_value): Handle DW_FORM_loclistx.
7063 (skip_one_die): Handle DW_FORM_loclistx.
7064 (loclist_header): New structure declaration.
7065 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
7067 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
7069 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
7070 constructor. Remove `addr` parameter from other constructor and
7071 add `per_cu` parameter.
7072 * dwarf2/read.c (create_partial_symtab): Update.
7074 2020-04-07 Tom de Vries <tdevries@suse.de>
7077 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
7078 (partial_die_info::fixup): Inherit has_const_value.
7080 2020-04-07 Tom de Vries <tdevries@suse.de>
7082 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
7083 symbols without address.
7085 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7087 * nbsd-nat.h (struct thread_info): Add forward declaration.
7088 (nbsd_nat_target::thread_alive): Add.
7089 (nbsd_nat_target::thread_name): Likewise.
7090 (nbsd_nat_target::update_thread_list): Likewise.
7091 (update_thread_list::post_attach): Likewise.
7092 (post_attach::pid_to_str): Likewise.
7093 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
7094 (nbsd_thread_lister): Add.
7095 (nbsd_nat_target::thread_alive): Likewise.
7096 (nbsd_nat_target::thread_name): Likewise.
7097 (nbsd_add_threads): Likewise.
7098 (update_thread_list::post_attach): Likewise.
7099 (nbsd_nat_target::update_thread_list): Likewise.
7100 (post_attach::pid_to_str): Likewise.
7102 2020-04-06 Tom Tromey <tromey@adacore.com>
7104 * ada-valprint.c (print_variant_part): Extract the variant field.
7105 (print_field_values): Use the field as the outer value when
7108 2020-04-06 Tom Tromey <tromey@adacore.com>
7110 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
7111 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
7112 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
7113 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
7114 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
7116 2020-04-06 Tom Tromey <tromey@adacore.com>
7118 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
7121 2020-04-06 Kamil Rytarowski <n54@gmx.com>
7123 * nbsd-tdep.c: Include "gdbarch.h".
7124 Define enum with NetBSD signal numbers.
7125 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
7126 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
7127 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
7128 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
7129 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
7130 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
7131 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
7132 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7133 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
7134 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
7135 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
7136 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
7138 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
7141 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
7143 2020-04-03 Tom Tromey <tromey@adacore.com>
7145 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
7146 Read constant block.
7148 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7150 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
7151 (gdb_bfd_get_full_section_contents): New declaration.
7152 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
7153 * windows-tdep.c (is_linked_with_cygwin_dll): Use
7154 gdb_bfd_get_full_section_contents.
7156 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
7158 * exec.c (build_section_table): Replace internal_error with
7160 (section_table_xfer_memory_partial): Likewise.
7161 * mdebugread.c (parse_partial_symbols): Likewise.
7162 * psymtab.c (lookup_partial_symbol): Likewise.
7163 * utils.c (wrap_here): Likewise.
7165 2020-04-02 Tom Tromey <tromey@adacore.com>
7167 * f-lang.c (build_fortran_types): Use arch_type to initialize
7168 builtin_complex_s32 in the TYPE_CODE_ERROR case.
7170 2020-04-02 Tom Tromey <tromey@adacore.com>
7172 * dwarf2/read.c (partial_die_info::read): Do not create a vector
7175 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
7176 Bernd Edlinger <bernd.edlinger@hotmail.de>
7177 Tom Tromey <tromey@adacore.com>
7179 * buildsym.c (buildsym_compunit::record_line): Remove
7182 2020-04-02 Tom de Vries <tdevries@suse.de>
7185 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
7187 2020-04-02 Tom de Vries <tdevries@suse.de>
7189 * dwarf2/read.c (dwarf2_gdb_index_functions,
7190 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
7192 * psymtab.c (psym_lookup_global_symbol_language): New function.
7193 (psym_functions): Init psym_lookup_global_symbol_language with
7194 psym_lookup_global_symbol_language.
7195 * symfile-debug.c (debug_sym_quick_functions): Init
7196 lookup_global_symbol_language with NULL.
7197 * symfile.c (set_initial_language): Remove fixme comment.
7198 * symfile.h (struct quick_symbol_functions): Add
7199 lookup_global_symbol_language.
7200 * symtab.c (find_quick_global_symbol_language): New function.
7201 (find_main_name): Use find_quick_global_symbol_language.
7203 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7205 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7207 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7209 * buildsym.c (record_line): Fix undefined behavior and preserve
7212 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7214 * buildsym.c (record_line): Fix the resizing condition.
7216 2020-04-01 Tom Tromey <tom@tromey.com>
7218 * value.h (value_literal_complex): Add comment.
7219 * valops.c (value_literal_complex): Refer to value.h.
7221 2020-04-01 Tom Tromey <tom@tromey.com>
7223 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7224 (scalar_type): New rule, from typebase.
7225 (typebase): Use scalar_type. Recognize complex types.
7226 (field_name): Handle FLOAT_KEYWORD.
7227 (ident_tokens): Add _Complex and __complex__.
7229 2020-04-01 Tom Tromey <tom@tromey.com>
7232 * valarith.c (promotion_type, complex_binop): New functions.
7233 (scalar_binop): Handle complex numbers. Use promotion_type.
7234 (value_pos, value_neg, value_complement): Handle complex numbers.
7236 2020-04-01 Tom Tromey <tom@tromey.com>
7238 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7239 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7240 (parse_number): Handle complex numbers.
7242 2020-04-01 Tom Tromey <tom@tromey.com>
7244 * c-valprint.c (c_decorations): Change complex suffix to "i".
7246 2020-04-01 Tom Tromey <tom@tromey.com>
7248 * valprint.c (generic_value_print_complex): Use accessors.
7249 * value.h (value_real_part, value_imaginary_part): Declare.
7250 * valops.c (value_real_part, value_imaginary_part): New
7252 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7254 2020-04-01 Tom Tromey <tom@tromey.com>
7256 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7257 (read_range_type): Update.
7258 * mdebugread.c (basic_type): Update.
7259 * go-lang.c (build_go_types): Use init_complex_type.
7260 * gdbtypes.h (struct main_type) <complex_type>: New member.
7261 (init_complex_type): Update.
7262 (arch_complex_type): Don't declare.
7263 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7264 Make name if none given. Use alloc_type_copy. Look for cached
7266 (arch_complex_type): Remove.
7267 (gdbtypes_post_init): Use init_complex_type.
7268 * f-lang.c (build_fortran_types): Use init_complex_type.
7269 * dwarf2/read.c (read_base_type): Update.
7270 * d-lang.c (build_d_types): Use init_complex_type.
7271 * ctfread.c (read_base_type): Update.
7273 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7275 * infrun.c (stop_all_threads): Update assertion, plus when
7276 stopping threads, take into account that we might be trying
7277 to stop an all-stop target.
7278 (stop_waiting): Call 'stop_all_threads' if there exists a
7281 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7283 * target.h (exists_non_stop_target): New function declaration.
7284 * target.c (exists_non_stop_target): New function.
7286 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
7289 * eval.c (is_integral_or_integral_reference): New function.
7290 (evaluate_subexp_standard): Allow integer references in
7293 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7295 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7296 check for no ptid in the stop reply when the target is non-stop.
7298 2020-04-01 Tom Tromey <tromey@adacore.com>
7300 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7301 "name" parameter to rvalue reference. Initialize m_name_holder.
7302 <lookup_name_info>: New overloads.
7303 <name>: Return gdb::string_view.
7304 <c_str>: New method.
7305 <make_ignore_params>: Update.
7306 <search_name_hash>: Update.
7307 <language_lookup_name>: Return const char *.
7308 <m_name>: Change type.
7309 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7310 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7311 (lookup_name_info::match_any): Update.
7312 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7314 * minsyms.c (linkage_name_str): Update.
7315 * language.c (default_symbol_name_matcher): Update.
7316 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7318 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7319 (ada_lookup_name_info::ada_lookup_name_info): Update.
7320 (literal_symbol_name_matcher): Update.
7322 2020-04-01 Tom Tromey <tromey@adacore.com>
7324 * psymtab.c (psymtab_search_name): Remove function.
7325 (psym_lookup_symbol): Create search name and lookup name here.
7326 (lookup_partial_symbol): Remove "name" parameter; add
7328 (psym_expand_symtabs_for_function): Update.
7330 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7333 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7335 2020-03-31 Tom Tromey <tromey@adacore.com>
7337 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7340 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7342 * features/riscv/32bit-csr.xml: Regenerated.
7343 * features/riscv/64bit-csr.xml: Regenerated.
7345 2020-03-30 Tom Tromey <tromey@adacore.com>
7347 * ada-valprint.c (print_variant_part): Update.
7348 * ada-lang.h (ada_which_variant_applies): Update.
7349 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7350 outer_valaddr parameters; replace with "outer" value parameter.
7351 (to_fixed_variant_branch_type): Update.
7353 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7355 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7356 <list>. Remove inclusion of observable.h.
7357 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7358 (struct arch_lwp_info): New struct.
7359 (class ppc_linux_dreg_interface): New class.
7360 (struct ppc_linux_process_info): New struct.
7361 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7362 <low_new_clone, low_forget_process, low_prepare_to_resume>
7363 <copy_thread_dreg_state, mark_thread_stale>
7364 <mark_debug_registers_changed, register_hw_breakpoint>
7365 <clear_hw_breakpoint, register_wp, clear_wp>
7366 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7367 <num_memory_accesses, get_trigger_type>
7368 <create_watchpoint_request, hwdebug_point_cmp>
7369 <init_arch_lwp_info, get_arch_lwp_info>
7370 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7372 <struct ptid_hash>: New inner struct.
7373 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7375 (saved_dabr_value, hwdebug_info, max_slots_number)
7376 (struct hw_break_tuple, struct thread_points, ppc_threads)
7377 (have_ptrace_hwdebug_interface)
7378 (hwdebug_find_thread_points_by_tid)
7379 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7380 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7381 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7382 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7383 use m_dreg_interface.
7384 (hwdebug_point_cmp): Change to...
7385 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7386 reference arguments instead of pointers.
7387 (ppc_linux_nat_target::ranged_break_num_registers): Use
7389 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7390 m_dreg_interface. Call register_hw_breakpoint.
7391 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7392 m_dreg_interface. Call clear_hw_breakpoint.
7393 (get_trigger_type): Change to...
7394 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7396 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7397 use m_dreg_interface. Call register_hw_breakpoint.
7398 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7399 use m_dreg_interface. Call clear_hw_breakpoint.
7400 (can_use_watchpoint_cond_accel): Change to...
7401 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7402 method. Update comment, use m_dreg_interface and
7404 (calculate_dvc): Change to...
7405 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7407 (num_memory_accesses): Change to...
7408 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7409 (check_condition): Change to...
7410 (ppc_linux_nat_target::check_condition): ...this method.
7411 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7412 comment, use m_dreg_interface.
7413 (create_watchpoint_request): Change to...
7414 (ppc_linux_nat_target::create_watchpoint_request): ...this
7415 method. Use m_dreg_interface.
7416 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7417 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7418 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7419 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7420 (ppc_linux_nat_target::low_forget_process)
7421 (ppc_linux_nat_target::low_new_fork)
7422 (ppc_linux_nat_target::low_new_clone)
7423 (ppc_linux_nat_target::low_delete_thread)
7424 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7425 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7426 only call mark_thread_stale.
7427 (ppc_linux_thread_exit): Remove.
7428 (ppc_linux_nat_target::stopped_data_address): Change to...
7429 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7430 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7431 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7432 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7433 comment. Call low_stopped_data_address.
7434 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7436 (ppc_linux_nat_target::masked_watch_num_registers): Use
7438 (ppc_linux_nat_target::copy_thread_dreg_state)
7439 (ppc_linux_nat_target::mark_thread_stale)
7440 (ppc_linux_nat_target::mark_debug_registers_changed)
7441 (ppc_linux_nat_target::register_hw_breakpoint)
7442 (ppc_linux_nat_target::clear_hw_breakpoint)
7443 (ppc_linux_nat_target::register_wp)
7444 (ppc_linux_nat_target::clear_wp)
7445 (ppc_linux_nat_target::init_arch_lwp_info)
7446 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7447 (_initialize_ppc_linux_nat): Remove observer callback.
7449 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7451 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7452 (ppc_linux_nat_target::auxv_parse)
7453 (ppc_linux_nat_target::read_description)
7454 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7457 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7459 * linux-nat.h (low_new_clone): New method.
7460 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7462 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7464 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7465 (dbx_expand_psymtab): ... this.
7466 (start_psymtab): Update.
7467 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7468 (mdebug_expand_psymtab): ... this.
7469 (parse_partial_symbols): Update.
7470 (new_psymtab): Update.
7471 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7472 (xcoff_expand_psymtab): ... this.
7473 (xcoff_start_psymtab): Update.
7475 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7477 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7478 <expand_dependencies>: ... this.
7479 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7480 (partial_symtab::expand_dependencies): ... this.
7481 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7483 (dwarf2_psymtab::expand_psymtab): Update.
7484 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7485 * mdebugread.c (psymtab_to_symtab_1): Update.
7486 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7488 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7490 * psympriv.h (discard_psymtab): Remove.
7491 * dbxread.c (dbx_end_psymtab): Update.
7492 * xcoffread.c (xcoff_end_psymtab): Update.
7494 2020-03-28 Tom Tromey <tom@tromey.com>
7496 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7499 2020-03-28 Tom Tromey <tom@tromey.com>
7501 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7503 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7505 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7507 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7509 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7511 2020-03-26 Tom Tromey <tom@tromey.com>
7513 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7514 (mark_common_block_symbol_computed, read_tag_string_type)
7515 (attr_to_dynamic_prop, read_subrange_type): Update.
7516 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7517 to be methods on struct attribute.
7518 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7519 (read_call_site_scope, partial_die_info::read)
7520 (partial_die_info::read, lookup_die_type, follow_die_ref):
7522 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7523 from dwarf2_get_ref_die_offset.
7524 (attribute::constant_value): New method, from
7525 dwarf2_get_attr_constant_value.
7526 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7528 <constant_value>: New method.
7530 2020-03-26 Tom Tromey <tom@tromey.com>
7532 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7533 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7534 (dwarf_type_encoding_name): Move to stringify.c.
7535 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7536 * dwarf2/stringify.c: New file.
7537 * dwarf2/stringify.h: New file.
7539 2020-03-26 Tom Tromey <tom@tromey.com>
7541 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7544 2020-03-26 Tom Tromey <tom@tromey.com>
7546 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7548 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7549 (lookup_ranges_base): Likewise.
7550 (read_cutu_die_from_dwo, read_full_die_1): Update.
7552 2020-03-26 Tom Tromey <tom@tromey.com>
7554 * dwarf2/read.c (read_import_statement, read_file_scope)
7555 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7556 (read_lexical_block_scope, read_call_site_scope)
7557 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7558 (handle_struct_member_die, process_structure_scope)
7559 (update_enumeration_type_from_children)
7560 (process_enumeration_scope, read_array_type, read_common_block)
7561 (read_namespace, read_module, read_subroutine_type): Update.
7562 (sibling_die): Remove.
7564 2020-03-26 Tom Tromey <tom@tromey.com>
7566 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7567 (build_type_psymtabs_reader, read_structure_type)
7568 (read_enumeration_type, read_full_die_1): Update.
7569 (dwarf2_attr_no_follow): Move to die.h.
7570 * dwarf2/die.h (struct die_info) <attr>: New method.
7572 2020-03-26 Tom Tromey <tom@tromey.com>
7574 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7575 <base_address>: Now an optional.
7576 (dwarf2_find_base_address, dwarf2_rnglists_process)
7577 (dwarf2_ranges_process, fill_in_loclist_baton)
7578 (dwarf2_symbol_mark_computed): Update.
7580 2020-03-26 Tom Tromey <tom@tromey.com>
7582 * dwarf2/read.c (struct die_info): Move to die.h.
7583 * dwarf2/die.h: New file.
7585 2020-03-26 Tom Tromey <tom@tromey.com>
7587 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7589 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7590 Move to line-header.c.
7591 (read_checked_initial_length_and_offset, read_formatted_entries):
7593 (dwarf_decode_line_header): Split into two.
7594 * dwarf2/line-header.c
7595 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7597 (read_checked_initial_length_and_offset, read_formatted_entries):
7599 (dwarf_decode_line_header): New function, split from read.c.
7601 2020-03-26 Tom Tromey <tom@tromey.com>
7603 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7605 * dwarf2/read.c (read_attribute_value): Update.
7606 (dwarf2_per_objfile::read_line_string): Rename from
7607 read_indirect_line_string.
7608 (read_formatted_entries): Update.
7610 2020-03-26 Tom Tromey <tom@tromey.com>
7612 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7615 2020-03-26 Tom Tromey <tom@tromey.com>
7617 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7619 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7620 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7623 2020-03-26 Tom Tromey <tom@tromey.com>
7625 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7626 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7627 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7628 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7630 2020-03-26 Tom Tromey <tom@tromey.com>
7632 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7633 file_names_size, file_full_name, file_file_name>: Use const.
7634 <file_name_at, file_names>: Add const overload.
7635 * dwarf2/line-header.c (line_header::file_file_name)
7636 (line_header::file_full_name): Update.
7638 2020-03-26 Tom Tromey <tom@tromey.com>
7640 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7641 (macro_start_file, consume_improper_spaces)
7642 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7643 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7644 (dwarf_decode_macros): Move to macro.c.
7645 * dwarf2/macro.c: New file.
7646 * dwarf2/macro.h: New file.
7647 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7649 2020-03-26 Tom Tromey <tom@tromey.com>
7651 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7653 * dwarf2/section.c: New method. From
7654 read_indirect_string_at_offset_from.
7655 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7656 (read_indirect_string_at_offset_from): Move to section.c.
7657 (read_indirect_string_at_offset): Rewrite.
7658 (read_indirect_line_string_at_offset): Remove.
7659 (read_indirect_string, read_indirect_line_string)
7660 (dwarf_decode_macro_bytes): Update.
7662 2020-03-26 Tom Tromey <tom@tromey.com>
7664 * dwarf2/section.h (struct dwarf2_section_info)
7665 <overload_complaint>: Declare.
7666 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7667 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7668 Rename from dwarf2_section_buffer_overflow_complaint.
7669 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7670 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7672 2020-03-26 Tom Tromey <tom@tromey.com>
7674 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7676 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7678 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7681 2020-03-26 Tom Tromey <tom@tromey.com>
7683 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7685 2020-03-26 Tom Tromey <tom@tromey.com>
7687 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7689 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7691 (dwarf_decode_macros): Update.
7693 2020-03-26 Tom Tromey <tom@tromey.com>
7695 * dwarf2/read.c (read_attribute_value): Update.
7696 (read_indirect_string_from_dwz): Move to dwz.c; change into
7698 (dwarf_decode_macro_bytes): Update.
7699 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7700 * dwarf2/dwz.c: New file.
7701 * Makefile.in (COMMON_SFILES): Add dwz.c.
7703 2020-03-26 Tom Tromey <tom@tromey.com>
7705 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7706 * dwarf2/read.c: Add include.
7707 * dwarf2/index-write.c: Add include.
7708 * dwarf2/index-cache.c: Add include.
7709 * dwarf2/dwz.h: New file.
7711 2020-03-25 Tom Tromey <tom@tromey.com>
7713 * compile/compile-object-load.c (get_out_value_type): Mention
7714 correct symbol name in error message.
7716 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7718 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7720 2020-03-25 Tom de Vries <tdevries@suse.de>
7722 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7723 * symmisc.c (dump_symtab_1): Print user and includes fields.
7724 (maintenance_info_symtabs): Same.
7726 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7729 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7730 (riscv_regcache_cooked_write): New function.
7731 (riscv_push_dummy_call): Use new function.
7732 (riscv_return_value): Likewise.
7734 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7736 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7737 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7738 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7739 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7740 * infrun.c (follow_fork): Likewise.
7741 (follow_fork_inferior): Likewise.
7742 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7743 * linux-nat.h (class linux_nat_target): Likewise.
7744 * remote.c (class remote_target) <follow_fork>: Likewise.
7745 (remote_target::follow_fork): Likewise.
7746 * target-delegates.c: Re-generate.
7747 * target.c (default_follow_fork): Likewise.
7748 (target_follow_fork): Likewise.
7749 * target.h (struct target_ops) <follow_fork>: Likewise.
7750 (target_follow_fork): Likewise.
7752 2020-03-24 Tom de Vries <tdevries@suse.de>
7754 * psymtab.c (maintenance_info_psymtabs): Print user field.
7756 2020-03-20 Tom Tromey <tromey@adacore.com>
7758 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7760 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7763 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7765 * ptrace.m4: Don't check for ptrace declaration.
7766 * config.in: Re-generate.
7767 * configure: Re-generate.
7768 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7771 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7773 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7775 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7776 * sparc-nat.c (gdb_ptrace): Likewise.
7777 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7779 2020-03-20 Tom Tromey <tromey@adacore.com>
7781 * c-exp.y (lex_one_token): Fix assert.
7783 2020-03-20 Tom Tromey <tromey@adacore.com>
7785 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7786 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7789 2020-03-20 Tom Tromey <tromey@adacore.com>
7791 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7793 2020-03-20 Tom Tromey <tromey@adacore.com>
7795 * ada-valprint.c (print_variant_part): Remove parameters; switch
7797 (print_field_values): Likewise.
7798 (ada_val_print_struct_union): Likewise.
7799 (ada_value_print_1): Update.
7801 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7803 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7804 nbsd_nat_target instead of inf_ptrace_target.
7805 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7808 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7810 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7811 it to the ptrace call.
7812 * (store_registers): Likewise.
7814 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7816 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7817 it to the ptrace call.
7818 * (store_registers): Likewise.
7820 2020-03-19 Luis Machado <luis.machado@linaro.org>
7822 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7823 valid, fetch vg value from ptrace.
7825 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7826 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7827 * inf-ptrace.c: Likewise.
7828 * (gdb_ptrace): Add.
7829 * (inf_ptrace_target::resume): Update.
7830 * (inf_ptrace_target::xfer_partial): Likewise.
7831 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7832 * (inf_ptrace_peek_poke): Update.
7834 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7836 * x86-bsd-nat.c (gdb_ptrace): New.
7837 * (x86bsd_dr_set): Add new argument `ptid'.
7838 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7839 x86bsd_dr_set_addr): Update.
7841 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7843 * remote.c (remote_target::process_stop_reply): Handle events for
7844 all threads differently.
7846 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7848 * completer.c (completion_tracker::remove_completion): Define new
7850 * completer.h (completion_tracker::remove_completion): Declare new
7852 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7853 when adding a C++ function symbol.
7855 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7857 * completer.c (completion_tracker::completion_hash_entry): Define
7859 (advance_to_filename_complete_word_point): Call
7860 recompute_lowest_common_denominator.
7861 (completion_tracker::completion_tracker): Call discard_completions
7862 to setup the hash table.
7863 (completion_tracker::discard_completions): Allow for being called
7864 from the constructor, pass new equal function, and element deleter
7865 when constructing the hash table. Initialise new class member
7867 (completion_tracker::maybe_add_completion): Remove use of
7868 m_entries_vec, and store more information into m_entries_hash.
7869 (completion_tracker::recompute_lcd_visitor): New function, most
7870 content taken from...
7871 (completion_tracker::recompute_lowest_common_denominator):
7872 ...here, this now just visits each item in the hash calling the
7874 (completion_tracker::build_completion_result): Remove use of
7875 m_entries_vec, call recompute_lowest_common_denominator.
7876 * completer.h (completion_tracker::have_completions): Remove use
7878 (completion_tracker::completion_hash_entry): Declare new class.
7879 (completion_tracker::recompute_lowest_common_denominator): Change
7881 (completion_tracker::recompute_lcd_visitor): Declare new function.
7882 (completion_tracker::m_entries_vec): Delete.
7883 (completion_tracker::m_entries_hash): Initialize to NULL.
7884 (completion_tracker::m_lowest_common_denominator_valid): New
7886 (completion_tracker::m_lowest_common_denominator_max_length): New
7889 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7891 * regformats/regdef.h: Put reg in gdb namespace.
7893 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7895 * i386-bsd-nat.c (gdb_ptrace): New.
7896 * (i386bsd_fetch_inferior_registers,
7897 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7898 * (i386bsd_fetch_inferior_registers,
7899 i386bsd_store_inferior_registers) Use gdb_ptrace.
7901 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7903 * amd64-bsd-nat.c (gdb_ptrace): New.
7904 * (amd64bsd_fetch_inferior_registers,
7905 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7906 * (amd64bsd_fetch_inferior_registers,
7907 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7909 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7911 * user-regs.c (user_reg::read): Rename to...
7912 (user_reg::xread): ...this.
7913 * (append_user_reg): Rename argument `read' to `xread'.
7914 * (user_reg_add_builtin): Likewise.
7915 * (user_reg_add): Likewise.
7916 * (value_of_user_reg): Likewise.
7918 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7920 * sparc-nat.c (gdb_ptrace): New.
7921 * sparc-nat.c (sparc_fetch_inferior_registers)
7922 (sparc_store_inferior_registers) Remove obsolete comment.
7923 * sparc-nat.c (sparc_fetch_inferior_registers)
7924 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7925 * sparc-nat.c (sparc_fetch_inferior_registers)
7926 (sparc_store_inferior_registers) Use gdb_ptrace.
7928 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7930 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7931 it to the ptrace call.
7932 * sh-nbsd-nat.c (store_registers): Likewise.
7934 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7936 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7937 nbsd_nat_target instead of inf_ptrace_target.
7938 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7941 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7943 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7945 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7947 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7949 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7951 2020-03-17 Tom de Vries <tdevries@suse.de>
7954 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7956 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7958 (process_imported_unit_die): Skip import of c++ CUs.
7960 2020-03-16 Tom Tromey <tom@tromey.com>
7962 * p-valprint.c (pascal_object_print_value): Initialize
7965 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7966 Shahab Vahedi <shahab@synopsys.com>
7968 * Makefile.in: Add arch/arc.o
7969 * configure.tgt: Likewise.
7970 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7971 (_initialize_arc_tdep): Don't initialize old target descriptions.
7972 (arc_read_description): New function to cache target descriptions.
7973 * arc-tdep.h (arc_read_description): Add proto type.
7974 * arch/arc.c: New file.
7975 * arch/arc.h: Likewise.
7976 * features/Makefile: Replace old target descriptions with new.
7977 * features/arc-arcompact.c: Remove.
7978 * features/arc-arcompact.xml: Likewise.
7979 * features/arc-v2.c: Likewise
7980 * features/arc-v2.xml: Likewise
7981 * features/arc/aux-arcompact.xml: New file.
7982 * features/arc/aux-v2.xml: Likewise.
7983 * features/arc/core-arcompact.xml: Likewise.
7984 * features/arc/core-v2.xml: Likewise.
7985 * features/arc/aux-arcompact.c: Generate.
7986 * features/arc/aux-v2.c: Likewise.
7987 * features/arc/core-arcompact.c: Likewise.
7988 * features/arc/core-v2.c: Likewise.
7989 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7991 2020-03-16 Tom Tromey <tromey@adacore.com>
7994 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7995 putting value into bcache.
7997 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8000 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
8002 (amd64_windows_init_abi_common): ... this. Don't set size of
8004 (amd64_windows_init_abi): New function.
8005 (amd64_cygwin_init_abi): New function.
8006 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
8008 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
8011 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8013 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
8014 * windows-tdep.c (CYGWIN_DLL_NAME): New.
8015 (pe_import_directory_entry): New struct type.
8016 (is_linked_with_cygwin_dll): New function.
8017 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
8018 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
8019 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
8021 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8023 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
8024 i386_cygwin_core_osabi_sniffer.
8026 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8028 * i386-cygwin-tdep.c: Rename to...
8029 * i386-windows-tdep.c: ... this.
8030 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
8031 i386-windows-tdep.c.
8032 * configure.tgt: Likewise.
8034 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8036 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
8037 * osabi.c (gdb_osabi_names): Add "Windows".
8038 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
8039 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
8040 (i386_cygwin_core_osabi_sniffer): New function, extracted from
8041 i386_cygwin_osabi_sniffer.
8042 (_initialize_i386_cygwin_tdep): Register OS ABI
8043 GDB_OSABI_WINDOWS for i386.
8044 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
8045 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
8046 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
8048 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
8049 when the target matches '*-*-mingw*'.
8051 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8053 * defs.h (enum gdb_osabi): Move to...
8054 * osabi.h (enum gdb_osabi): ... here.
8055 * gdbarch.sh: Include osabi.h in gdbarch.h.
8056 * gdbarch.h: Re-generate.
8058 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
8060 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
8062 (_initialize_amd64_windows_tdep): Register osabi sniffer.
8064 2020-03-14 Tom Tromey <tom@tromey.com>
8066 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
8068 (c_type_print_modifier): Likewise. Add "language" parameter.
8069 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
8070 (c_type_print_base_1): Update.
8071 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
8073 * type-stack.c (type_stack::insert): Handle tp_atomic and
8075 (type_stack::follow_type_instance_flags): Likewise.
8076 (type_stack::follow_types): Likewise. Merge type-following code.
8077 * c-exp.y (RESTRICT, ATOMIC): New tokens.
8078 (space_identifier, cv_with_space_id)
8079 (const_or_volatile_or_space_identifier_noopt)
8080 (const_or_volatile_or_space_identifier): Remove.
8081 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
8083 (ptr_operator, typebase): Update.
8084 (enum token_flag) <FLAG_C>: New constant.
8085 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
8087 (lex_one_token): Handle FLAG_C.
8089 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8091 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
8092 it to the ptrace call.
8093 * m68k-bsd-nat.c (store_registers): Likewise.
8095 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8097 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
8099 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
8100 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
8101 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8103 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8105 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
8106 nbsd_nat_target instead of inf_ptrace_target.
8107 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8110 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8112 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
8115 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8117 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
8118 it to the ptrace call.
8119 * alpha-bsd-nat.c (store_registers): Likewise.
8121 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8123 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
8125 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
8126 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
8127 fill_fpregset): Likewise.
8129 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8131 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
8132 nbsd_nat_target instead of inf_ptrace_target.
8133 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8136 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8138 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
8141 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8143 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
8144 it to the ptrace call.
8145 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
8146 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
8147 * arm-nbsd-nat.c (store_register): Likewise.
8148 * arm-nbsd-nat.c (store_regs): Likewise.
8149 * arm-nbsd-nat.c (store_fp_register): Likewise.
8150 * arm-nbsd-nat.c (store_fp_regs): Likewise.
8152 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8154 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
8155 nbsd_nat_target instead of inf_ptrace_target.
8156 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
8159 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8161 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
8162 it to the ptrace call.
8163 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
8165 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8167 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
8168 it to the ptrace call.
8169 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
8171 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8173 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
8175 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
8177 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8179 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
8180 instead of inf_ptrace_target.
8181 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
8184 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8186 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8189 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8191 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
8194 2020-03-14 Kamil Rytarowski <n54@gmx.com>
8196 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
8199 2020-03-13 Tom Tromey <tom@tromey.com>
8201 * value.h (val_print): Don't declare.
8202 * valprint.h (val_print_array_elements)
8203 (val_print_scalar_formatted, generic_val_print): Don't declare.
8204 * valprint.c (generic_val_print_array): Take a struct value.
8205 (generic_val_print_ptr, generic_val_print_memberptr)
8206 (generic_val_print_bool, generic_val_print_int)
8207 (generic_val_print_char, generic_val_print_complex)
8208 (generic_val_print): Remove.
8209 (generic_value_print): Update.
8210 (do_val_print): Remove unused parameters. Don't call
8212 (val_print): Remove.
8213 (common_val_print): Update. Don't call value_check_printable.
8214 (val_print_scalar_formatted, val_print_array_elements): Remove.
8215 * rust-lang.c (rust_val_print): Remove.
8216 (rust_language_defn): Update.
8217 * p-valprint.c (pascal_val_print): Remove.
8218 (pascal_value_print_inner): Update.
8219 (pascal_object_print_val_fields, pascal_object_print_val):
8221 (pascal_object_print_static_field): Update.
8222 * p-lang.h (pascal_val_print): Don't declare.
8223 * p-lang.c (pascal_language_defn): Update.
8224 * opencl-lang.c (opencl_language_defn): Update.
8225 * objc-lang.c (objc_language_defn): Update.
8226 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8227 * m2-lang.h (m2_val_print): Don't declare.
8228 * m2-lang.c (m2_language_defn): Update.
8229 * language.h (struct language_defn) <la_val_print>: Remove.
8230 * language.c (unk_lang_value_print_inner): Rename. Change
8232 (unknown_language_defn, auto_language_defn): Update.
8233 * go-valprint.c (go_val_print): Remove.
8234 * go-lang.h (go_val_print): Don't declare.
8235 * go-lang.c (go_language_defn): Update.
8236 * f-valprint.c (f_val_print): Remove.
8237 * f-lang.h (f_value_print): Don't declare.
8238 * f-lang.c (f_language_defn): Update.
8239 * d-valprint.c (d_val_print): Remove.
8240 * d-lang.h (d_value_print): Don't declare.
8241 * d-lang.c (d_language_defn): Update.
8242 * cp-valprint.c (cp_print_value_fields)
8243 (cp_print_value_fields_rtti, cp_print_value): Remove.
8244 (cp_print_static_field): Update.
8245 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8246 (c_val_print_struct, c_val_print_union, c_val_print_int)
8247 (c_val_print_memberptr, c_val_print): Remove.
8248 * c-lang.h (c_val_print_array, cp_print_value_fields)
8249 (cp_print_value_fields_rtti): Don't declare.
8250 * c-lang.c (c_language_defn, cplus_language_defn)
8251 (asm_language_defn, minimal_language_defn): Update.
8252 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8253 (ada_val_print_enum): Take a struct value.
8254 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8255 (ada_val_print): Remove.
8256 (ada_value_print_1): Update.
8257 (printable_val_type): Remove.
8258 * ada-lang.h (ada_val_print): Don't declare.
8259 * ada-lang.c (ada_language_defn): Update.
8261 2020-03-13 Tom Tromey <tom@tromey.com>
8263 * valprint.c (do_val_print): Update.
8264 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8266 (value_to_value_object_no_release): Declare.
8267 * python/py-value.c (value_to_value_object_no_release): New
8269 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8271 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8273 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8275 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8277 (gdbscm_apply_val_pretty_printer): Take a struct value.
8278 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8280 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8282 * extension-priv.h (struct extension_language_ops)
8283 <apply_val_pretty_printer>: Take a struct value.
8284 * cp-valprint.c (cp_print_value): Create a struct value.
8285 (cp_print_value): Update.
8287 2020-03-13 Tom Tromey <tom@tromey.com>
8289 * ada-valprint.c (print_field_values): Call common_val_print.
8291 2020-03-13 Tom Tromey <tom@tromey.com>
8293 * ada-valprint.c (val_print_packed_array_elements): Remove
8294 bitoffset and val parameters. Call common_val_print.
8295 (ada_val_print_string): Remove offset, address, and original_value
8297 (ada_val_print_array): Update.
8298 (ada_value_print_array): New function.
8299 (ada_value_print_1): Call it.
8301 2020-03-13 Tom Tromey <tom@tromey.com>
8303 * ada-valprint.c (ada_value_print): Use common_val_print.
8305 2020-03-13 Tom Tromey <tom@tromey.com>
8307 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8309 2020-03-13 Tom Tromey <tom@tromey.com>
8311 * ada-valprint.c (ada_value_print_num): New function.
8312 (ada_value_print_1): Use it.
8314 2020-03-13 Tom Tromey <tom@tromey.com>
8316 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8318 2020-03-13 Tom Tromey <tom@tromey.com>
8320 * ada-valprint.c (ada_value_print_ptr): New function.
8321 (ada_value_print_1): Use it.
8323 2020-03-13 Tom Tromey <tom@tromey.com>
8325 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8326 call common_val_print.
8327 (ada_val_print_1): Update.
8328 (ada_value_print_1): New function.
8329 (ada_value_print_inner): Rewrite.
8331 2020-03-13 Tom Tromey <tom@tromey.com>
8333 * cp-valprint.c (cp_print_value_fields): Update.
8334 (cp_print_value): New function.
8336 2020-03-13 Tom Tromey <tom@tromey.com>
8338 * m2-valprint.c (m2_value_print_inner): Use
8339 cp_print_value_fields.
8340 * cp-valprint.c (cp_print_value_fields): New function.
8341 * c-valprint.c (c_value_print_struct): New function.
8342 (c_value_print_inner): Use c_value_print_struct.
8343 * c-lang.h (cp_print_value_fields): Declare.
8345 2020-03-13 Tom Tromey <tom@tromey.com>
8347 * c-valprint.c (c_value_print_array): New function.
8348 (c_value_print_inner): Use it.
8350 2020-03-13 Tom Tromey <tom@tromey.com>
8352 * c-valprint.c (c_value_print_memberptr): New function.
8353 (c_value_print_inner): Use it.
8355 2020-03-13 Tom Tromey <tom@tromey.com>
8357 * c-valprint.c (c_value_print_int): New function.
8358 (c_value_print_inner): Use it.
8360 2020-03-13 Tom Tromey <tom@tromey.com>
8362 * c-valprint.c (c_value_print_ptr): New function.
8363 (c_value_print_inner): Use it.
8365 2020-03-13 Tom Tromey <tom@tromey.com>
8367 * c-valprint.c (c_value_print_inner): Rewrite.
8369 2020-03-13 Tom Tromey <tom@tromey.com>
8371 * valprint.c (generic_value_print_complex): New function.
8372 (generic_value_print): Use it.
8374 2020-03-13 Tom Tromey <tom@tromey.com>
8376 * valprint.c (generic_val_print_float): Don't call
8377 val_print_scalar_formatted.
8378 (generic_val_print, generic_value_print): Update.
8380 2020-03-13 Tom Tromey <tom@tromey.com>
8382 * valprint.c (generic_value_print_char): New function
8383 (generic_value_print): Use it.
8385 2020-03-13 Tom Tromey <tom@tromey.com>
8387 * valprint.c (generic_value_print_int): New function.
8388 (generic_value_print): Use it.
8390 2020-03-13 Tom Tromey <tom@tromey.com>
8392 * valprint.c (generic_value_print_bool): New function.
8393 (generic_value_print): Use it.
8395 2020-03-13 Tom Tromey <tom@tromey.com>
8397 * valprint.c (generic_val_print_func): Simplify.
8398 (generic_val_print, generic_value_print): Update.
8400 2020-03-13 Tom Tromey <tom@tromey.com>
8402 * valprint.c (generic_val_print_flags): Remove.
8403 (generic_val_print, generic_value_print): Update.
8404 (val_print_type_code_flags): Add original_value parameter.
8406 2020-03-13 Tom Tromey <tom@tromey.com>
8408 * valprint.c (generic_val_print): Update.
8409 (generic_value_print): Update.
8410 * valprint.c (generic_val_print_enum): Don't call
8411 val_print_scalar_formatted.
8413 2020-03-13 Tom Tromey <tom@tromey.com>
8415 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8416 * valprint.c (generic_value_print_ptr): New function.
8418 2020-03-13 Tom Tromey <tom@tromey.com>
8420 * valprint.c (generic_value_print): Rewrite.
8422 2020-03-13 Tom Tromey <tom@tromey.com>
8424 * p-valprint.c (pascal_object_print_value_fields)
8425 (pascal_object_print_value): New functions.
8427 2020-03-13 Tom Tromey <tom@tromey.com>
8429 * p-valprint.c (pascal_value_print_inner): Rewrite.
8431 2020-03-13 Tom Tromey <tom@tromey.com>
8433 * f-valprint.c (f_value_print_innner): Rewrite.
8435 2020-03-13 Tom Tromey <tom@tromey.com>
8437 * m2-valprint.c (m2_print_unbounded_array): New overload.
8438 (m2_print_unbounded_array): Update.
8439 (m2_print_array_contents): Take a struct value.
8440 (m2_value_print_inner): Rewrite.
8442 2020-03-13 Tom Tromey <tom@tromey.com>
8444 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8445 (d_value_print_inner): New function.
8446 * d-lang.h (d_value_print_inner): Declare.
8447 * d-lang.c (d_language_defn): Use d_value_print_inner.
8449 2020-03-13 Tom Tromey <tom@tromey.com>
8451 * go-valprint.c (go_value_print_inner): New function.
8452 * go-lang.h (go_value_print_inner): Declare.
8453 * go-lang.c (go_language_defn): Use go_value_print_inner.
8455 2020-03-13 Tom Tromey <tom@tromey.com>
8457 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8459 (rust_val_print): Rewrite.
8460 (rust_value_print_inner): New function, from rust_val_print.
8461 (rust_language_defn): Use rust_value_print_inner.
8463 2020-03-13 Tom Tromey <tom@tromey.com>
8465 * ada-valprint.c (ada_value_print_inner): New function.
8466 * ada-lang.h (ada_value_print_inner): Declare.
8467 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8469 2020-03-13 Tom Tromey <tom@tromey.com>
8471 * f-valprint.c (f_value_print_innner): New function.
8472 * f-lang.h (f_value_print_innner): Declare.
8473 * f-lang.c (f_language_defn): Use f_value_print_innner.
8475 2020-03-13 Tom Tromey <tom@tromey.com>
8477 * p-valprint.c (pascal_value_print_inner): New function.
8478 * p-lang.h (pascal_value_print_inner): Declare.
8479 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8481 2020-03-13 Tom Tromey <tom@tromey.com>
8483 * m2-valprint.c (m2_value_print_inner): New function.
8484 * m2-lang.h (m2_value_print_inner): Declare.
8485 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8487 2020-03-13 Tom Tromey <tom@tromey.com>
8489 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8490 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8491 * c-valprint.c (c_value_print_inner): New function.
8492 * c-lang.h (c_value_print_inner): Declare.
8493 * c-lang.c (c_language_defn, cplus_language_defn)
8494 (asm_language_defn, minimal_language_defn): Use
8495 c_value_print_inner.
8497 2020-03-13 Tom Tromey <tom@tromey.com>
8499 * p-valprint.c (pascal_object_print_value_fields): Now static.
8500 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8502 2020-03-13 Tom Tromey <tom@tromey.com>
8504 * c-valprint.c (c_val_print_array): Simplify.
8506 2020-03-13 Tom Tromey <tom@tromey.com>
8508 * valprint.c (value_print_array_elements): New function.
8509 * valprint.h (value_print_array_elements): Declare.
8511 2020-03-13 Tom Tromey <tom@tromey.com>
8513 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8514 * mips-tdep.c (mips_print_register): Use
8515 value_print_scalar_formatted.
8517 2020-03-13 Tom Tromey <tom@tromey.com>
8519 * valprint.h (value_print_scalar_formatted): Declare.
8520 * valprint.c (value_print_scalar_formatted): New function.
8522 2020-03-13 Tom Tromey <tom@tromey.com>
8524 * valprint.h (generic_value_print): Declare.
8525 * valprint.c (generic_value_print): New function.
8527 2020-03-13 Tom Tromey <tom@tromey.com>
8529 * valprint.c (do_val_print): Call la_value_print_inner, if
8531 * rust-lang.c (rust_language_defn): Update.
8532 * p-lang.c (pascal_language_defn): Update.
8533 * opencl-lang.c (opencl_language_defn): Update.
8534 * objc-lang.c (objc_language_defn): Update.
8535 * m2-lang.c (m2_language_defn): Update.
8536 * language.h (struct language_defn) <la_value_print_inner>: New
8538 * language.c (unknown_language_defn, auto_language_defn): Update.
8539 * go-lang.c (go_language_defn): Update.
8540 * f-lang.c (f_language_defn): Update.
8541 * d-lang.c (d_language_defn): Update.
8542 * c-lang.c (c_language_defn, cplus_language_defn)
8543 (asm_language_defn, minimal_language_defn): Update.
8544 * ada-lang.c (ada_language_defn): Update.
8546 2020-03-13 Tom Tromey <tom@tromey.com>
8548 * c-valprint.c (c_value_print): Use common_val_print.
8550 2020-03-13 Tom Tromey <tom@tromey.com>
8552 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8554 2020-03-13 Tom Tromey <tom@tromey.com>
8556 * f-valprint.c (f77_print_array_1, f_val_print): Use
8559 2020-03-13 Tom Tromey <tom@tromey.com>
8561 * riscv-tdep.c (riscv_print_one_register_info): Use
8564 2020-03-13 Tom Tromey <tom@tromey.com>
8566 * mi/mi-main.c (output_register): Use common_val_print.
8568 2020-03-13 Tom Tromey <tom@tromey.com>
8570 * infcmd.c (default_print_one_register_info): Use
8573 2020-03-13 Tom Tromey <tom@tromey.com>
8575 * valprint.h (common_val_print_checked): Declare.
8576 * valprint.c (common_val_print_checked): New function.
8577 * stack.c (print_frame_arg): Use common_val_print_checked.
8579 2020-03-13 Tom Tromey <tom@tromey.com>
8581 * valprint.c (do_val_print): New function, from val_print.
8582 (val_print): Use do_val_print.
8583 (common_val_print): Use do_val_print.
8585 2020-03-13 Tom Tromey <tom@tromey.com>
8587 * valprint.c (value_print): Use scoped_value_mark.
8589 2020-03-13 Tom de Vries <tdevries@suse.de>
8592 * psymtab.c (partial_symtab::partial_symtab): Don't set
8593 globals_offset and statics_offset. Push element onto
8594 current_global_psymbols and current_static_psymbols stacks.
8595 (concat): New function.
8596 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8597 element from current_global_psymbols and current_static_psymbols
8598 stacks. Concat popped elements to global_psymbols and
8600 (add_psymbol_to_list): Use current_global_psymbols and
8601 current_static_psymbols stacks.
8602 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8603 current_static_psymbols fields.
8605 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8607 * corelow.c (sniff_core_bfd): Remove.
8608 (class core_target) <m_core_vec>: Remove.
8609 (core_target::core_target): Update.
8610 (core_file_fns): Remove.
8611 (deprecated_add_core_fns): Remove.
8612 (default_core_sniffer): Remove.
8613 (sniff_core_bfd): Remove.
8614 (default_check_format): Remove.
8615 (gdb_check_format): Remove.
8616 (core_target_open): Update.
8617 (core_target::get_core_register_section): Update.
8618 (get_core_registers_cb): Update.
8619 (core_target::fetch_registers): Update.
8620 * gdbcore.h (struct core_fns): Remove.
8621 (deprecated_add_core_fns): Remove.
8622 (default_core_sniffer): Remove.
8623 (default_check_format): Remove.
8625 2020-03-12 Tom Tromey <tom@tromey.com>
8627 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8629 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8631 2020-03-12 Tom Tromey <tom@tromey.com>
8633 * remote.c (remote_target::download_tracepoint)
8634 (remote_target::enable_tracepoint)
8635 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8636 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8639 2020-03-12 Tom Tromey <tom@tromey.com>
8641 * symfile-mem.c: Update CORE_ADDR size assert.
8643 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8645 * selftest.m4: Move to gdbsupport/.
8646 * acinclude.m4: Update path to selftest.m4.
8648 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8650 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8651 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8652 gdbarch-selfselftests.c and selftest-arch.c.
8653 (SUBDIR_UNITTESTS_OBS): Rename to...
8654 (SELFTESTS_OBS): ... this.
8655 (COMMON_SFILES): Remove disasm-selftests.c and
8656 gdbarch-selftests.c.
8657 * configure.ac: Don't add selftest-arch.{c,o} to
8659 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8660 preprocessor conditions.
8662 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8664 * configure.ac: Don't source bfd/development.sh.
8665 * selftest.m4: Modify comment.
8666 * configure: Re-generate.
8668 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8670 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8671 not "true" or "false".
8672 * configure: Re-generate.
8674 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8676 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8677 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8678 renamed to arm_nbsd_supply_gregset.
8679 (fetch_register): Update to call arm_nbsd_supply_gregset.
8680 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8681 (arm_netbsd_nat_target::fetch_registers): Update.
8682 (fetch_elfcore_registers): Removed.
8683 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8684 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8685 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8686 not require NetBSD system headers.
8687 (arm_nbsd_regset): New struct.
8688 (arm_nbsd_iterate_over_regset_sections): New function.
8689 (arm_netbsd_init_abi_common): Updated to call
8690 set_gdbarch_iterate_over_regset_sections.
8691 * arm-nbsd-tdep.h: New file.
8693 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8695 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8698 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8700 * configure: Re-generate.
8702 2020-03-11 Tom Tromey <tromey@adacore.com>
8704 * ada-typeprint.c (print_choices): Fix comment.
8706 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8708 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8709 previous item in the list, when the list has no items.
8711 2020-03-11 Tom de Vries <tdevries@suse.de>
8713 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8714 PROP_LOCLIST handling code.
8716 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8718 * buildsym-legacy.c (record_line): Pass extra parameter to
8720 * buildsym.c (buildsym_compunit::record_line): Take an extra
8721 parameter, reduce duplication in the line table, and record the
8722 is_stmt flag in the line table.
8723 * buildsym.h (buildsym_compunit::record_line): Add extra
8725 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8726 non-statement lines.
8727 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8728 this to the symtab builder.
8729 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8730 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8731 through to dwarf_record_line_1.
8732 * infrun.c (process_event_stop_test): When stepping, don't stop at
8733 a non-statement instruction, and only refresh the step info when
8734 we land in the middle of a line's range. Also add an extra
8736 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8738 * record-btrace.c (btrace_find_line_range): Only record lines
8739 marked as is-statement.
8740 * stack.c (frame_show_address): Show the frame address if we are
8741 in a non-statement sal.
8742 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8743 (maintenance_print_one_line_table): Print a header for the is_stmt
8744 column, and include is_stmt information in the output.
8745 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8746 preference to non-statements.
8747 (find_pcs_for_symtab_line): Prefer is-statement entries.
8748 (find_line_common): Likewise.
8749 * symtab.h (struct linetable_entry): Add is_stmt field.
8750 (struct symtab_and_line): Likewise.
8751 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8752 arranging the line table.
8754 2020-03-07 Tom de Vries <tdevries@suse.de>
8756 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8759 2020-03-07 Tom Tromey <tom@tromey.com>
8761 * valops.c (value_literal_complex): Remove obsolete comment.
8762 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8765 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8767 * infrun.h: Forward-declare thread_info.
8768 (set_step_info): Add thread_info parameter, add doc.
8769 * infrun.c (set_step_info): Add thread_info parameter, move doc
8771 * infrun.c (process_event_stop_test): Pass thread to
8773 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8775 (prepare_one_step): Add thread_info parameter, pass it to
8776 set_step_frame and prepare_one_step (recursive) call.
8777 (step_1): Pass thread to prepare_one_step call.
8778 (step_command_fsm::should_stop): Pass thread to
8780 (until_next_fsm): Pass thread to set_step_frame call.
8781 (finish_command): Pass thread to set_step_info call.
8783 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8785 * windows-tdep.c (windows_solib_create_inferior_hook):
8786 Check if inferior is running.
8788 2020-03-06 Tom de Vries <tdevries@suse.de>
8790 * NEWS: Fix "the the".
8793 2020-03-06 Tom de Vries <tdevries@suse.de>
8795 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8797 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8799 * .dir-locals.el: Add a comment referencing the other copies of
8802 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8804 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8807 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8809 * .gitattributes: New file.
8811 2020-03-04 Tom Tromey <tom@tromey.com>
8813 * symmisc.c (print_symbol_bcache_statistics)
8814 (print_objfile_statistics): Update.
8815 * symfile.c (allocate_symtab): Use intern.
8816 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8817 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8818 macro_cache>: Remove.
8819 <string_cache>: New member.
8820 (struct objfile) <intern>: New methods.
8821 * elfread.c (elf_symtab_read): Use intern.
8822 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8823 (dwarf2_compute_name, dwarf2_physname)
8824 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8826 (guess_partial_die_structure_name): Update.
8827 (partial_die_info::fixup): Intern name.
8828 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8830 (dwarf2_name): Intern name. Update.
8831 * buildsym.c (buildsym_compunit::get_macro_table): Use
8834 2020-03-04 Tom Tromey <tom@tromey.com>
8836 * jit.c (bfd_open_from_target_memory): Make "target" const.
8837 * corefile.c (gnutarget): Now const.
8838 * gdbcore.h (gnutarget): Now const.
8840 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8842 * NEWS: Mention support for WOW64 processes.
8843 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8844 (amd64_windows_segment_register_p): Remove static.
8845 (_initialize_amd64_windows_nat): Update.
8846 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8847 * i386-windows-nat.c (context_offset): Update.
8848 (i386_mappings): Rename and remove static.
8849 (i386_windows_segment_register_p): Remove static.
8850 (_initialize_i386_windows_nat): Update.
8851 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8852 (STATUS_WX86_SINGLE_STEP): New macro.
8853 (EnumProcessModulesEx): New macro.
8854 (Wow64SuspendThread): New macro.
8855 (Wow64GetThreadContext): New macro.
8856 (Wow64SetThreadContext): New macro.
8857 (Wow64GetThreadSelectorEntry): New macro.
8858 (windows_set_context_register_offsets): Add static.
8859 (windows_set_segment_register_p): Likewise.
8860 (windows_add_thread): Adapt for WOW64 processes.
8861 (windows_fetch_one_register): Likewise.
8862 (windows_nat_target::fetch_registers): Likewise.
8863 (windows_store_one_register): Likewise.
8864 (display_selector): Likewise.
8865 (display_selectors): Likewise.
8866 (handle_exception): Likewise.
8867 (windows_continue): Likewise.
8868 (windows_nat_target::resume): Likewise.
8869 (windows_add_all_dlls): Likewise.
8870 (do_initial_windows_stuff): Likewise.
8871 (windows_nat_target::attach): Likewise.
8872 (windows_get_exec_module_filename): Likewise.
8873 (windows_nat_target::create_inferior): Likewise.
8874 (windows_xfer_siginfo): Likewise.
8875 (_initialize_loadable): Initialize Wow64SuspendThread,
8876 Wow64GetThreadContext, Wow64SetThreadContext,
8877 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8878 * windows-nat.h (windows_set_context_register_offsets):
8880 (windows_set_segment_register_p): Likewise.
8881 (i386_windows_segment_register_p): Add declaration.
8882 (amd64_windows_segment_register_p): Likewise.
8884 2020-03-04 Luis Machado <luis.machado@linaro.org>
8886 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8887 in "info registers" for AArch64/ARM.
8889 The change caused "info registers" to not print GPR's.
8893 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8895 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8896 when reg->group is empty and reggroup is not.
8898 2020-03-03 Tom Tromey <tromey@adacore.com>
8900 * dwarf2/frame.c (struct dwarf2_frame_cache)
8901 <checked_tailcall_bottom, entry_cfa_sp_offset,
8902 entry_cfa_sp_offset_p>: Remove members.
8903 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8904 (dwarf2_frame_prev_register): Don't call
8905 dwarf2_tailcall_sniffer_first.
8906 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8907 * frame-unwind.c (add_unwinder): New fuction.
8908 (frame_unwind_init): Use it. Add tailcall unwinder.
8910 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8911 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8913 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8914 value should be printed as true.
8916 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8918 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8919 (windows_init_abi): Set and use windows_so_ops.
8921 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8923 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8924 when verifying if dealing with a convenience variable.
8926 2020-03-03 Luis Machado <luis.machado@linaro.org>
8928 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8930 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8932 * infrun.c (gdbarch_supports_displaced_stepping): New.
8933 (use_displaced_stepping): Break up conditions in smaller pieces.
8934 Use gdbarch_supports_displaced_stepping.
8935 (displaced_step_prepare_throw): Use
8936 gdbarch_supports_displaced_stepping.
8938 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8940 * NEWS: Mention new behaviour of the history filename.
8941 * top.c (write_history_p): Add comment.
8942 (show_write_history_p): Add header comment, give a different
8943 message when history writing is on, but the history filename is
8945 (history_filename): Add comment.
8946 (history_filename_empty): New function.
8947 (show_history_filename): Add header comment, give a different
8948 message when the filename is empty.
8949 (init_history): Compare history_filename against nullptr, and only
8950 read history if the filename is not empty.
8951 (set_history_filename): Add header comment, and only make
8952 non-empty filenames absolute.
8953 (init_main): Make the filename argument to 'set history filename'
8956 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8958 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8959 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8960 (fetch_fp_register): Update.
8961 (fetch_fp_regs): Update.
8962 (store_fp_register): Update.
8963 (store_fp_regs): Update.
8964 (arm_netbsd_nat_target::read_description): New function.
8965 (fetch_elfcore_registers): Update.
8967 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8969 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8970 general_thread if the stop reply is missing a thread-id.
8971 (remote_target::process_stop_reply): Use the first non-exited
8972 thread if the target didn't pass a thread-id.
8973 * infrun.c (do_target_wait): Move call to
8974 switch_to_inferior_no_thread to ....
8975 (do_target_wait_1): ... here.
8977 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8979 * debuginfod-support.c: Include defs.h first.
8981 2020-02-28 Tom de Vries <tdevries@suse.de>
8983 * symfile.c (set_initial_language): Use default language for lookup.
8985 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8987 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8988 reader variable, pass `this` to read_cutu_die_from_dwo.
8990 2020-02-27 Aaron Merey <amerey@redhat.com>
8992 * source.c (open_source_file): Check for nullptr when computing
8995 2020-02-27 Tom Tromey <tromey@adacore.com>
8997 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8999 (dwarf2_add_field): Don't update nfields.
9000 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
9002 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
9004 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
9007 2020-02-26 Tom Tromey <tom@tromey.com>
9009 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
9010 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
9011 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
9012 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
9015 2020-02-26 Tom Tromey <tom@tromey.com>
9017 * dwarf2/index-write.c (psym_index_map): Change type.
9018 (add_address_entry_worker, write_one_signatured_type)
9019 (recursively_count_psymbols, recursively_write_psymbols)
9020 (class debug_names, psyms_seen_size, write_gdbindex)
9021 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
9023 2020-02-26 Aaron Merey <amerey@redhat.com>
9025 * Makefile.in: Handle optional debuginfod support.
9027 * README: Add --with-debuginfod summary.
9028 * config.in: Regenerate.
9029 * configure: Regenerate.
9030 * configure.ac: Handle optional debuginfod support.
9031 * debuginfod-support.c: debuginfod helper functions.
9032 * debuginfod-support.h: Ditto.
9033 * doc/gdb.texinfo: Add --with-debuginfod to configure options
9035 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
9036 when a dwz file cannot be found.
9037 * elfread.c (elf_symfile_read): Query debuginfod servers when a
9038 debuginfo file cannot be found.
9039 * source.c (open_source_file): Query debuginfod servers when a
9040 source file cannot be found.
9041 * top.c (print_gdb_configuration): Include
9042 --{with,without}-debuginfod in the output.
9044 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
9046 * thread.c (thr_try_catch_cmd): Print thread name.
9048 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
9050 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
9051 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9052 dwarf2_fetch_die_type_sect_off): Move to...
9053 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9054 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9055 dwarf2_fetch_die_type_sect_off): ... here.
9056 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9057 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9058 dwarf2_fetch_die_type_sect_off): Move doc to header file.
9060 2020-02-26 Tom de Vries <tdevries@suse.de>
9063 * symfile.c (set_initial_language): Exit-early if
9064 language_mode == language_mode_manual.
9066 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9068 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
9069 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
9070 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
9072 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
9074 * gdbtypes.c (create_array_type_with_stride): Handle negative
9076 * valarith.c (value_subscripted_rvalue): Likewise.
9078 2020-02-25 Luis Machado <luis.machado@linaro.org>
9080 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
9082 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
9084 * loc.h (dwarf2_get_die_type): Move to...
9085 * read.h (dwarf2_get_die_type): ... here.
9086 * read.c (dwarf2_get_die_type): Move doc to header.
9088 2020-02-25 Joel Brobecker <brobecker@adacore.com>
9090 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
9091 'gnulib/Makefile.in' to the list.
9093 2020-02-24 Tom Tromey <tom@tromey.com>
9095 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
9097 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
9100 2020-02-24 Tom Tromey <tom@tromey.com>
9102 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
9104 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
9105 (dw2_do_instantiate_symtab, dw2_get_file_names)
9106 (build_type_psymtab_dependencies, load_full_type_unit): Update.
9108 2020-02-24 Tom Tromey <tom@tromey.com>
9110 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
9111 make_scoped_restore.
9112 (dwarf2_psymtab::read_symtab): Don't clear
9113 reading_partial_symbols.
9115 2020-02-24 Tom de Vries <tdevries@suse.de>
9118 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
9120 2020-02-24 Tom de Vries <tdevries@suse.de>
9122 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
9123 commands layout next/prev/regs.
9125 2020-02-22 Tom Tromey <tom@tromey.com>
9127 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
9128 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
9130 2020-02-22 Tom Tromey <tom@tromey.com>
9132 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
9134 2020-02-22 Tom Tromey <tom@tromey.com>
9136 * tui/tui-win.c (_initialize_tui_win): Add usage text.
9137 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
9138 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
9139 * tui/tui.c (_initialize_tui): Add usage text.
9141 2020-02-22 Tom Tromey <tom@tromey.com>
9143 * tui/tui-win.c (tui_set_focus_command)
9144 (tui_set_win_height_command): Use error_no_arg.
9145 (_initialize_tui_win): Update help text.
9146 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
9148 2020-02-22 Tom Tromey <tom@tromey.com>
9150 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
9151 * tui/tui-disasm.h (struct tui_disasm_window)
9152 <display_start_addr>: Declare.
9153 * tui/tui-source.h (struct tui_source_window)
9154 <display_start_addr>: Declare.
9155 * tui/tui-winsource.h (struct tui_source_window_base)
9156 <show_source_line, display_start_addr>: New methods.
9157 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
9158 Rename and move to protected section.
9159 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
9160 (tui_source_window_base::do_erase_source_content): Update.
9161 (tui_source_window_base::show_source_line): Now a method.
9162 (tui_source_window_base::show_source_content)
9163 (tui_source_window_base::tui_source_window_base)
9164 (tui_source_window_base::rerender)
9165 (tui_source_window_base::refill)
9166 (tui_source_window_base::do_scroll_horizontal)
9167 (tui_source_window_base::set_is_exec_point_at)
9168 (tui_source_window_base::update_breakpoint_info)
9169 (tui_source_window_base::update_exec_info): Update.
9170 * tui/tui-source.c (tui_source_window::set_contents)
9171 (tui_source_window::showing_source_p)
9172 (tui_source_window::do_scroll_vertical)
9173 (tui_source_window::location_matches_p)
9174 (tui_source_window::line_is_displayed): Update.
9175 (tui_source_window::display_start_addr): New method.
9176 * tui/tui-disasm.c (tui_disasm_window::set_contents)
9177 (tui_disasm_window::do_scroll_vertical)
9178 (tui_disasm_window::location_matches_p): Update.
9179 (tui_disasm_window::display_start_addr): New method.
9181 2020-02-22 Tom Tromey <tom@tromey.com>
9183 * NEWS: Add entry for gdb.register_window_type.
9184 * tui/tui-layout.h (window_factory): New typedef.
9185 (tui_register_window): Declare.
9186 * tui/tui-layout.c (saved_tui_windows): New global.
9187 (tui_apply_current_layout): Use it.
9188 (tui_register_window): New function.
9189 * python/python.c (do_start_initialization): Call
9190 gdbpy_initialize_tui.
9191 (python_GdbMethods): Add "register_window_type" function.
9192 * python/python-internal.h (gdbpy_register_tui_window)
9193 (gdbpy_initialize_tui): Declare.
9194 * python/py-tui.c: New file.
9195 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
9197 2020-02-22 Tom Tromey <tom@tromey.com>
9199 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9201 2020-02-22 Tom Tromey <tom@tromey.com>
9203 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9204 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9205 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9206 (tui_set_win_focus_to): Move from tui-win.c.
9208 2020-02-22 Tom Tromey <tom@tromey.com>
9210 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9212 (known_window_types): New global.
9213 (tui_get_window_by_name): Reimplement.
9214 (initialize_known_windows): New function.
9215 (validate_window_name): Rewrite.
9216 (_initialize_tui_layout): Call initialize_known_windows.
9218 2020-02-22 Tom Tromey <tom@tromey.com>
9220 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9222 * tui/tui-winsource.h (struct tui_source_window_base)
9223 <tui_source_window_base>: Remove parameter.
9224 * tui/tui-winsource.c
9225 (tui_source_window_base::tui_source_window_base): Remove
9227 (tui_source_window_base::refill): Update.
9228 * tui/tui-stack.h (struct tui_locator_window)
9229 <tui_locator_window>: Update.
9230 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9231 Default the constructor.
9232 * tui/tui-regs.h (struct tui_data_item_window)
9233 <tui_data_item_window>: Default the constructor.
9234 (struct tui_data_window) <tui_data_window>: Likewise.
9235 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9236 Default the constructor.
9237 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9238 Default the constructor.
9240 (struct tui_win_info) <tui_win_info>: Default the constructor.
9241 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9242 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9243 Default the constructor.
9245 2020-02-22 Tom Tromey <tom@tromey.com>
9247 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9248 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9249 * tui/tui-win.c (tui_resize_all): Don't call
9250 tui_delete_invisible_windows.
9251 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9253 (tui_set_layout): Update.
9254 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9255 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9256 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9258 2020-02-22 Tom Tromey <tom@tromey.com>
9260 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9263 2020-02-22 Tom Tromey <tom@tromey.com>
9265 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9267 2020-02-22 Tom Tromey <tom@tromey.com>
9269 * tui/tui-winsource.h (struct tui_source_window_iterator)
9270 <inner_iterator>: New etytypedef.
9271 <tui_source_window_iterator>: Take "end" parameter.
9272 <tui_source_window_iterator>: Take iterator.
9273 <operator*, advance>: Update.
9274 <m_iter>: Change type.
9276 (struct tui_source_windows) <begin, end>: Update.
9277 * tui/tui-layout.c (tui_windows): New global.
9278 (tui_apply_current_layout): Clear tui_windows.
9279 (tui_layout_window::apply): Update tui_windows.
9280 * tui/tui-data.h (tui_windows): Declare.
9281 (all_tui_windows): Now inline function.
9282 (class tui_window_iterator, struct all_tui_windows): Remove.
9284 2020-02-22 Tom Tromey <tom@tromey.com>
9287 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9288 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9290 (class tui_layout_window) <get_sizes>: Likewise.
9291 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9293 <get_sizes>: Add "height" argument.
9294 <m_vertical>: New field.
9295 * tui/tui-layout.c (tui_layout_split::clone): Update.
9296 (tui_layout_split::get_sizes): Add "height" argument.
9297 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9298 (tui_new_layout_command): Parse "-horizontal".
9299 (_initialize_tui_layout): Update help string.
9300 (tui_layout_split::specification): Add "-horizontal" when needed.
9301 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9303 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9306 2020-02-22 Tom Tromey <tom@tromey.com>
9308 * tui/tui-layout.h (enum tui_adjust_result): New.
9309 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9310 (class tui_layout_window) <adjust_size>: Return
9311 tui_adjust_result. Rewrite.
9312 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9313 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9315 2020-02-22 Tom Tromey <tom@tromey.com>
9317 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9318 parameter and return types.
9319 (class tui_layout_base) <specification>: Add "depth".
9320 (class tui_layout_window) <specification>: Add "depth".
9321 (class tui_layout_split) <specification>: Add "depth".
9322 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9324 (tui_new_layout_command): Parse sub-layouts.
9325 (_initialize_tui_layout): Update help string.
9326 (tui_layout_window::specification): Add "depth".
9327 (add_layout_command): Update.
9329 2020-02-22 Tom Tromey <tom@tromey.com>
9331 * NEWS: Add "tui new-layout" item.
9332 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9333 Add new-layout command to help text.
9334 (validate_window_name): New function.
9335 (tui_new_layout_command): New function.
9336 (_initialize_tui_layout): Register "new-layout".
9337 (tui_layout_window::specification): New method.
9338 (tui_layout_window::specification): New method.
9339 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9341 (class tui_layout_window) <specification>: New method.
9342 (class tui_layout_split) <specification>: New method.
9344 2020-02-22 Tom Tromey <tom@tromey.com>
9346 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9347 * tui/tui-win.c (window_name_completer): Update comment.
9348 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9350 (class tui_layout_window) <replace_window>: Likewise.
9351 (class tui_layout_split) <replace_window>: Likewise.
9352 (tui_set_layout): Don't declare.
9353 (tui_set_initial_layout): Declare function.
9354 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9355 (asm_regs_layout): New globals.
9356 (tui_current_layout, show_layout): Remove.
9357 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9358 (find_layout, tui_apply_layout): New function.
9359 (layout_completer): Remove.
9360 (tui_next_layout): Reimplement.
9361 (tui_next_layout_command): New function.
9362 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9363 (tui_regs_layout): Reimplement.
9364 (tui_regs_layout_command): New function.
9365 (extract_display_start_addr): Rewrite.
9366 (next_layout, prev_layout): Remove.
9367 (tui_layout_window::replace_window): New method.
9368 (tui_layout_split::replace_window): New method.
9369 (destroy_layout): New function.
9370 (layout_list): New global.
9371 (add_layout_command): New function.
9372 (initialize_layouts): Update.
9373 (tui_layout_command): New function.
9374 (_initialize_tui_layout): Install "layout" commands.
9375 * tui/tui-data.h (enum tui_layout_type): Remove.
9376 (tui_current_layout): Don't declare.
9378 2020-02-22 Tom Tromey <tom@tromey.com>
9380 * tui/tui-regs.c (tui_reg_layout): Remove.
9381 (tui_reg_command): Use tui_regs_layout.
9382 * tui/tui-layout.h (tui_reg_command): Declare.
9383 * tui/tui-layout.c (tui_reg_command): New function.
9385 2020-02-22 Tom Tromey <tom@tromey.com>
9387 * tui/tui.c (tui_rl_delete_other_windows): Call
9388 tui_remove_some_windows.
9389 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9391 (class tui_layout_window) <remove_windows>: New method.
9392 (class tui_layout_split) <remove_windows>: Declare.
9393 (tui_remove_some_windows): Declare.
9394 * tui/tui-layout.c (tui_remove_some_windows): New function.
9395 (tui_layout_split::remove_windows): New method.
9397 2020-02-22 Tom Tromey <tom@tromey.com>
9399 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9400 * tui/tui-layout.h (tui_next_layout): Declare.
9401 * tui/tui-layout.c (tui_next_layout): New function.
9403 2020-02-22 Tom Tromey <tom@tromey.com>
9405 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9406 correct coordinates.
9408 2020-02-22 Tom Tromey <tom@tromey.com>
9410 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9411 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9414 2020-02-22 Tom Tromey <tom@tromey.com>
9416 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9417 TUI_DISASM_WIN, not tui_win_list.
9419 2020-02-22 Tom Tromey <tom@tromey.com>
9421 * valprint.c (generic_val_print_enum_1)
9422 (val_print_type_code_flags): Style member names.
9423 * rust-lang.c (val_print_struct, rust_print_enum)
9424 (rust_print_struct_def, rust_internal_print_type): Style member
9426 * p-valprint.c (pascal_object_print_value_fields): Style member
9427 names. Only call fprintf_symbol_filtered for static members.
9428 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9429 * f-valprint.c (f_val_print): Style member names.
9430 * f-typeprint.c (f_type_print_base): Style member names.
9431 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9432 call fprintf_symbol_filtered for static members.
9433 (cp_print_class_member): Style member names.
9434 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9436 * ada-valprint.c (ada_print_scalar): Style enum names.
9437 (ada_val_print_enum): Likewise.
9438 * ada-typeprint.c (print_enum_type): Style enum names.
9440 2020-02-21 Tom Tromey <tom@tromey.com>
9442 * psympriv.h (struct partial_symtab): Update comment.
9444 2020-02-21 Tom Tromey <tromey@adacore.com>
9446 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9449 2020-02-21 Tom de Vries <tdevries@suse.de>
9452 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9453 if dependencies[i]->user != NULL.
9455 2020-02-21 Ali Tamur <tamur@google.com>
9457 * dwarf2/read.c (dwarf2_name): Add null check.
9459 2020-02-20 Tom Tromey <tom@tromey.com>
9461 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9462 ">=", in binary search.
9463 (dwarf2_find_containing_comp_unit): New overload.
9464 (run_test): New self-test.
9465 (_initialize_dwarf2_read): Register new test.
9467 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9469 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9470 * riscv-tdep.h: Likewise.
9471 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9473 * features/riscv/64bit-csr.xml: Regenerated.
9475 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9476 Tom Tromey <tom@tromey.com>
9478 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9479 of 'fputc_unfiltered'.
9480 (putchar_unfiltered): Call 'fputc_unfiltered'.
9481 (fputc_unfiltered): Call 'fputs_unfiltered'.
9483 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9485 * config.in: Regenerate.
9486 * configure: Regenerate.
9487 * configure.ac: Add --with-python-libdir option.
9488 * main.c: Use WITH_PYTHON_LIBDIR.
9490 2020-02-19 Tom Tromey <tom@tromey.com>
9492 * symtab.c (general_symbol_info::compute_and_set_names): Use
9493 obstack_strndup. Simplify call to symbol_set_demangled_name.
9495 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9497 * dwarf2/read.c (allocate_signatured_type_table,
9498 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9499 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9500 Remove objfile parameter, update all callers.
9502 2020-02-19 Doug Evans <dje@google.com>
9505 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9506 rust_enum_variant calculation.
9508 2020-02-19 Tom Tromey <tromey@adacore.com>
9510 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9512 2020-02-19 Tom Tromey <tromey@adacore.com>
9514 * ada-lang.c (cache_symbol): Use obstack_strdup.
9516 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9518 * configure: Regenerate.
9520 2020-02-19 Tom Tromey <tromey@adacore.com>
9522 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9525 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9527 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9529 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9531 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9532 if GDBSERVER is not defined.
9533 (riscv_tdesc_cache): Likewise, also store const target_desc.
9534 (STATIC_IN_GDB): Define.
9535 (riscv_create_target_description): Update declaration with
9537 (riscv_lookup_target_description): New function, only define if
9538 GDBSERVER is not defined.
9539 * arch/riscv.h (riscv_create_target_description): Declare only
9540 when GDBSERVER is defined.
9541 (riscv_lookup_target_description): New declaration when GDBSERVER
9543 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9544 (riscv_linux_read_features): ...this, and return
9545 riscv_gdbarch_features instead of target_desc.
9546 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9547 (riscv_linux_read_description): Rename to...
9548 (riscv_linux_read_features): ...this.
9549 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9550 Update to use riscv_gdbarch_features and
9551 riscv_lookup_target_description.
9552 * riscv-tdep.c (riscv_find_default_target_description): Use
9553 riscv_lookup_target_description instead of
9554 riscv_create_target_description.
9556 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9558 * valprint.c (generic_val_print_enum_1): When printing a flag
9559 enum with value 0 and there is no enumerator with value 0, print
9560 just "0" instead of "(unknown: 0x0)".
9562 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9564 * valprint.c (generic_val_print_enum_1): Print unknown part of
9567 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9569 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9570 flag enums to contain duplicate enumerators.
9571 * valprint.c (generic_val_print_enum_1): Update comment.
9573 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9575 * dwarf2/read.c: Include "count-one-bits.h".
9576 (update_enumeration_type_from_children): If an enumerator has
9577 multiple bits set, don't treat the enumeration as a "flag enum".
9578 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9579 of flag enums have 0 or 1 bit set.
9581 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9583 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9585 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9586 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9587 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9588 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9589 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9591 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9593 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9595 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9597 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9598 displaced_step_closure_up.
9599 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9600 (struct displaced_step_closure_up):
9601 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9602 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9603 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9605 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9606 * gdbarch.c, gdbarch.h: Re-generate.
9607 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9608 displaced_step_closure_up.
9609 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9610 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9611 * infrun.h (displaced_step_closure_up): New type alias.
9612 (struct displaced_step_inferior_state) <step_closure>: Change
9613 type to displaced_step_closure_up.
9614 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9615 displaced_step_closure_up.
9616 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9618 2020-02-14 Tom Tromey <tom@tromey.com>
9620 * minidebug.c (gnu_debug_key): New global.
9621 (find_separate_debug_file_in_section): Use it.
9623 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9625 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9627 * gdbarch.c: Re-generate.
9628 * gdbarch.h: Re-generate.
9629 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9631 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9632 type to std::unique_ptr.
9633 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9634 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9635 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9636 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9637 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9638 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9639 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9640 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9641 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9643 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9645 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9647 (displaced_step_clear): Rename to...
9648 (displaced_step_reset): ... this. Just call displaced->reset ().
9649 (displaced_step_clear_cleanup): Rename to...
9650 (displaced_step_reset_cleanup): ... this.
9651 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9652 (displaced_step_fixup): Likewise.
9653 (resume_1): Likewise.
9654 (handle_inferior_event): Restore child's memory before calling
9655 displaced_step_fixup on the parent.
9656 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9658 <step_closure>: Change type to std::unique_ptr.
9660 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9662 * arm-tdep.c: Include count-one-bits.h.
9663 (cleanup_block_store_pc): Use count_one_bits.
9664 (cleanup_block_load_pc): Use count_one_bits.
9665 (arm_copy_block_xfer): Use count_one_bits.
9666 (thumb2_copy_block_xfer): Use count_one_bits.
9667 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9668 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9669 (thumb_get_next_pcs_raw): Use count_one_bits.
9670 (arm_get_next_pcs_raw): Use count_one_bits_l.
9671 * arch/arm.c (bitcount): Remove.
9672 * arch/arm.h (bitcount): Remove.
9674 2020-02-14 Tom Tromey <tromey@adacore.com>
9676 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9678 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9679 * dwarf2/loc.c (call_site_find_chain_1): Return
9681 (call_site_find_chain): Likewise.
9683 2020-02-14 Richard Biener <rguenther@suse.de>
9685 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9686 on expression with division operators.
9688 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9690 * MAINTAINERS (Write After Approval): Adding myself.
9692 2020-02-12 Tom Tromey <tom@tromey.com>
9694 * event-loop.c (event_data, gdb_event, event_handler_func):
9697 2020-02-12 Tom Tromey <tom@tromey.com>
9699 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9700 (dwarf2_frame_objfile_data): Add comment.
9701 (find_comp_unit, set_comp_unit): New functions.
9702 (dwarf2_frame_find_fde): Use find_comp_unit.
9703 (dwarf2_build_frame_info): Use set_comp_unit.
9705 2020-02-12 Tom Tromey <tom@tromey.com>
9707 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9708 (comp_unit): Don't initialize objfile.
9709 (execute_cfa_program): Add text_offset parameter.
9710 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9711 (dwarf2_frame_cache): Update.
9712 (dwarf2_build_frame_info): Don't set "objfile" member.
9714 2020-02-12 Tom Tromey <tom@tromey.com>
9716 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9717 (decode_frame_entry): Likewise.
9718 (dwarf2_build_frame_info): Update.
9720 2020-02-12 Tom Tromey <tom@tromey.com>
9722 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9723 (decode_frame_entry_1): Use the comp_unit obstack.
9725 2020-02-12 Tom Tromey <tom@tromey.com>
9727 * dwarf2/frame.c (struct comp_unit): Add initializers and
9729 (dwarf2_frame_objfile_data): Store a comp_unit.
9730 (dwarf2_frame_find_fde): Update.
9731 (dwarf2_build_frame_info): Use "new".
9733 2020-02-12 Tom Tromey <tom@tromey.com>
9735 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9736 (dwarf2_fde_table): Typedef for std::vector.
9737 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9738 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9739 (decode_frame_entry): Update.
9740 (dwarf2_build_frame_info): Use "new".
9742 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9744 * arm-tdep.c (arm_gdbarch_init): Update.
9745 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9746 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9747 have_neon, is_m>: Change to bool.
9749 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9751 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9753 2020-02-12 Tom Tromey <tom@tromey.com>
9755 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9757 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9759 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9760 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9762 2020-02-11 Tom Tromey <tom@tromey.com>
9764 * psymtab.h: Update comment.
9766 2020-02-11 Tom Tromey <tom@tromey.com>
9768 * gdb_obstack.h (struct auto_obstack): Use
9769 DISABLE_COPY_AND_ASSIGN.
9771 2020-02-11 Tom Tromey <tom@tromey.com>
9773 * dwarf2/frame.h (struct objfile): Don't forward declare.
9775 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9777 * cris-tdep.c (cris_supply_gregset): Change signature to match
9778 what struct regset expects.
9779 (cris_regset): New struct.
9780 (fetch_core_registers): Remove.
9781 (cris_iterate_over_regset_sections): New function.
9782 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9783 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9785 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9787 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9790 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9792 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9794 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9796 * configure: Re-generate.
9798 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9800 * configure: Re-generate.
9802 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9804 * acinclude: Update warning.m4 path.
9805 * warning.m4: Move to gdbsupport.
9807 2020-02-11 Tom Tromey <tromey@adacore.com>
9809 * remote.c (remote_console_output): Update.
9810 * printcmd.c (printf_command): Update.
9811 * event-loop.c (gdb_wait_for_event): Update.
9812 * linux-nat.c (sigchld_handler): Update.
9813 * remote-sim.c (gdb_os_write_stdout): Update.
9814 (gdb_os_flush_stdout): Update.
9815 (gdb_os_flush_stderr): Update.
9816 (gdb_os_write_stderr): Update.
9817 * exceptions.c (print_exception): Update.
9818 * remote-fileio.c (remote_fileio_func_read): Update.
9819 (remote_fileio_func_write): Update.
9820 * tui/tui.c (tui_enable): Update.
9821 * tui/tui-interp.c (tui_interp::init): Update.
9822 * utils.c (init_page_info): Update.
9823 (putchar_unfiltered, fputc_unfiltered): Update.
9824 (gdb_flush): Update.
9825 (emit_style_escape): Update.
9826 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9827 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9828 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9829 (stderr_file::write): Update.
9830 (stderr_file::puts): Update.
9831 * ui-file.h (ui_file_isatty, ui_file_write)
9832 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9833 (ui_file_puts): Don't declare.
9835 2020-02-10 Tom de Vries <tdevries@suse.de>
9837 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9840 2020-02-09 Tom de Vries <tdevries@suse.de>
9842 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9843 filename if it matches "<artificial>".
9845 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9847 * windows-tdep.c (struct enum_value_name): New struct.
9848 (create_enum): New function.
9849 (windows_get_siginfo_type): Create and use enum types.
9851 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9853 * NEWS: Mention $_siginfo support for Windows.
9854 * windows-nat.c (handle_exception): Set siginfo_er.
9855 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9856 (windows_xfer_siginfo): New function.
9857 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9858 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9859 (init_windows_gdbarch_data): New function.
9860 (get_windows_gdbarch_data): New function.
9861 (windows_get_siginfo_type): New function.
9862 (windows_init_abi): Register windows_get_siginfo_type.
9863 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9865 2020-02-08 Tom Tromey <tom@tromey.com>
9867 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9868 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9869 <keep>: Declare method.
9870 <m_keep>: Remove member.
9871 <~cutu_reader>: Remove.
9872 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9873 (cutu_reader::cutu_reader): Update.
9874 (cutu_reader::keep): Rename from ~cutu_reader.
9875 (process_psymtab_comp_unit, build_type_psymtabs_1)
9876 (process_skeletonless_type_unit, load_partial_comp_unit)
9877 (load_full_comp_unit, dwarf2_read_addr_index)
9878 (read_signatured_type): Update.
9880 2020-02-08 Tom Tromey <tom@tromey.com>
9882 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9883 "want_partial_unit" parameter.
9884 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9885 Inline check for DW_TAG_partial_unit.
9886 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9888 2020-02-08 Tom Tromey <tom@tromey.com>
9890 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9892 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9895 2020-02-08 Tom Tromey <tom@tromey.com>
9897 * dwarf2/read.c (read_address): Move to comp-unit.c.
9898 (dwarf2_rnglists_process, dwarf2_ranges_process)
9899 (read_attribute_value, dwarf_decode_lines_1)
9900 (var_decode_location, decode_locdesc): Update.
9901 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9902 read.c. Remove "cu" parameter.
9903 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9906 2020-02-08 Tom Tromey <tom@tromey.com>
9908 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9909 (read_indirect_line_string): Update.
9910 * dwarf2/comp-unit.c (read_offset): Remove.
9911 (read_comp_unit_head): Update.
9912 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9914 (read_offset): Don't declare.
9916 2020-02-08 Tom Tromey <tom@tromey.com>
9918 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9919 * dwarf2/read.c (struct comp_unit_head): Move to
9921 (enum class rcuh_kind): Move to comp-unit.h.
9922 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9923 (read_comp_unit_head, error_check_comp_unit_head)
9924 (read_and_check_comp_unit_head): Move to comp-unit.c.
9925 (read_offset, dwarf_unit_type_name): Likewise.
9926 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9927 (cutu_reader::cutu_reader, read_call_site_scope)
9928 (find_partial_die, follow_die_offset): Update.
9929 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9931 2020-02-08 Tom Tromey <tom@tromey.com>
9933 * dwarf2/read.c (read_offset_1): Move to leb.c.
9934 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9935 (dwarf_decode_macro_bytes): Update.
9936 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9937 * dwarf2/leb.h (read_offset): Declare.
9939 2020-02-08 Tom Tromey <tom@tromey.com>
9941 * dwarf2/read.c (dwarf2_section_size): Remove.
9942 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9944 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9946 2020-02-08 Tom Tromey <tom@tromey.com>
9948 * dwarf2/read.c (read_initial_length): Move to leb.c.
9949 * dwarf2/leb.h (read_initial_length): Declare.
9950 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9951 handle_nonstd parameter.
9952 * dwarf2/frame.c (read_initial_length): Remove.
9953 (decode_frame_entry_1): Update.
9955 2020-02-08 Tom Tromey <tom@tromey.com>
9957 * dwarf2/loc.c (dwarf2_find_location_expression)
9958 (dwarf_evaluate_loc_desc::get_tls_address)
9959 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9960 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9961 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9962 (dwarf2_compile_property_to_c)
9963 (dwarf2_loc_desc_get_symbol_read_needs)
9964 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9965 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9966 (loclist_describe_location, loclist_tracepoint_var_ref)
9967 (loclist_generate_c_location): Update.
9968 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9969 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9970 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9971 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9972 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9973 (dwarf2_per_cu_data::addr_size)
9974 (dwarf2_per_cu_data::ref_addr_size)
9975 (dwarf2_per_cu_data::text_offset)
9976 (dwarf2_per_cu_data::addr_type): Now methods.
9977 (per_cu_header_read_in): Make per_cu "const".
9978 (dwarf2_version): Remove.
9979 (dwarf2_per_cu_data::int_type): Now a method.
9980 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9981 (set_die_type, read_array_type, read_subrange_index_type)
9982 (read_tag_string_type, read_subrange_type): Update.
9983 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9984 offset_size, ref_addr_size, text_offset, addr_type, version,
9985 objfile, int_type, addr_sized_int_type>: Declare methods.
9987 2020-02-08 Tom Tromey <tom@tromey.com>
9989 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9992 2020-02-08 Tom Tromey <tom@tromey.com>
9994 * dwarf2/read.h (dwarf_line_debug): Declare.
9995 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9996 * dwarf2/read.c: Move line_header code to new files.
9997 (dwarf_line_debug): No longer static.
9998 * dwarf2/line-header.c: New file.
9999 * dwarf2/line-header.h: New file.
10001 2020-02-08 Tom Tromey <tom@tromey.com>
10003 * dwarf2/read.c (struct line_header) <file_full_name,
10004 file_file_name>: Return unique_xmalloc_ptr.
10005 (line_header::file_file_name): Update.
10006 (line_header::file_full_name): Update.
10007 (dw2_get_file_names_reader): Update.
10008 (macro_start_file): Update.
10010 2020-02-08 Tom Tromey <tom@tromey.com>
10012 * dwarf2/read.c (struct line_header) <file_full_name,
10013 file_file_name>: Declare methods.
10014 (dw2_get_file_names_reader): Update.
10015 (file_file_name): Now a method.
10016 (file_full_name): Likewise.
10017 (macro_start_file): Update.
10019 2020-02-08 Tom Tromey <tom@tromey.com>
10021 * dwarf2/read.c (dwarf_always_disassemble)
10022 (show_dwarf_always_disassemble): Move to loc.c.
10023 (_initialize_dwarf2_read): Move "always-disassemble" registration
10025 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
10026 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
10028 (show_dwarf_always_disassemble): Move from read.c.
10029 (_initialize_dwarf2loc): Move always-disassemble from read.c.
10031 2020-02-08 Tom Tromey <tom@tromey.com>
10033 * dwarf2/read.c (~dwarf2_per_objfile): Update.
10034 (create_quick_file_names_table): Return htab_up.
10035 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
10037 * dwarf2/read.h (struct dwarf2_per_objfile)
10038 <quick_file_names_table>: Now htab_up.
10040 2020-02-08 Tom Tromey <tom@tromey.com>
10042 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
10044 2020-02-08 Tom Tromey <tom@tromey.com>
10046 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
10048 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
10049 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
10050 (abbrev_table::abbrev_table): No longer inline.
10051 (ABBREV_HASH_SIZE): Remove.
10052 (abbrev_table::m_abbrevs): Now an htab_up.
10054 2020-02-08 Tom Tromey <tom@tromey.com>
10056 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
10057 (cutu_reader): Update.
10058 (build_type_psymtabs_1): Update.
10059 * dwarf2/abbrev.c (abbrev_table::read): Rename.
10060 (abbrev_table::alloc_abbrev): Update.
10061 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
10062 (abbrev_table::read): New static method, renamed from
10063 abbrev_table_read_table.
10064 (abbrev_table::alloc_abbrev)
10065 (abbrev_table::add_abbrev): Now private.
10066 (abbrev_table::abbrev_table): Now private.
10067 (abbrev_table::m_abbrev_obstack): Now private. Rename.
10069 2020-02-08 Tom Tromey <tom@tromey.com>
10071 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
10072 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
10075 2020-02-08 Tom Tromey <tom@tromey.com>
10077 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
10079 (lookup_dwo_unit_in_dwp): Update.
10080 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
10083 2020-02-08 Tom Tromey <tom@tromey.com>
10085 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
10088 2020-02-08 Tom Tromey <tom@tromey.com>
10090 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
10092 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
10093 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
10094 Change type to htab_up.
10096 2020-02-08 Tom Tromey <tom@tromey.com>
10098 * dwarf2/read.c (allocate_type_unit_groups_table): Return
10099 htab_up. Don't allocate on obstack.
10100 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
10101 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
10102 Change type to htab_up.
10104 2020-02-08 Tom Tromey <tom@tromey.com>
10106 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
10107 Change type to htab_up.
10108 * dwarf2/read.c (create_signatured_type_table_from_index)
10109 (create_signatured_type_table_from_debug_names)
10110 (create_all_type_units, add_type_unit)
10111 (lookup_dwo_signatured_type, lookup_signatured_type)
10112 (process_skeletonless_type_unit): Update.
10113 (create_debug_type_hash_table, create_debug_types_hash_table):
10114 Change type of types_htab.
10115 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
10116 htab_up. Don't allocate on obstack.
10117 (create_cus_hash_table): Change type of cus_htab parameter.
10118 (struct dwo_file) <cus, tus>: Now htab_up.
10119 (lookup_dwo_signatured_type, lookup_dwo_cutu)
10120 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
10121 (queue_and_load_all_dwo_tus): Update.
10122 * dwarf2/index-write.c (write_gdbindex): Update.
10123 (write_debug_names): Update.
10125 2020-02-08 Tom Tromey <tom@tromey.com>
10127 * dwarf2/read.h (struct dwarf2_queue_item): Move from
10128 dwarf2/read.c. Remove "next" member. Add constructor ntad
10130 (struct dwarf2_per_objfile) <queue>: New member.
10131 * dwarf2/read.c (struct dwarf2_queue_item): Move to
10133 (dwarf2_queue, dwarf2_queue_tail): Remove.
10134 (class dwarf2_queue_guard): Add parameter to constructor. Use
10135 DISABLE_COPY_AND_ASSIGN.
10136 <m_per_objfile>: New member.
10137 <~dwarf2_queue_guard>: Rewrite.
10138 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
10140 (~dwarf2_queue_item): New.
10142 2020-02-08 Tom Tromey <tom@tromey.com>
10144 * dwarf2/read.c (struct die_info) <has_children>: New member.
10145 (dw2_get_file_names_reader): Remove has_children.
10146 (dw2_get_file_names): Update.
10147 (read_cutu_die_from_dwo): Remove has_children.
10148 (cutu_reader::init_tu_and_read_dwo_dies)
10149 (cutu_reader::cutu_reader): Update.
10150 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
10151 Remove has_children.
10152 (build_type_psymtabs_1, process_skeletonless_type_unit)
10153 (load_partial_comp_unit, load_full_comp_unit): Update.
10154 (create_dwo_cu_reader): Remove has_children.
10155 (create_cus_hash_table, read_die_and_children): Update.
10156 (read_full_die_1,read_full_die): Remove has_children.
10157 (read_signatured_type): Update.
10158 (class cutu_reader) <has_children>: Remove.
10160 2020-02-08 Tom Tromey <tom@tromey.com>
10162 * dwarf2/expr.c: Rename from dwarf2expr.c.
10163 * dwarf2/expr.h: Rename from dwarf2expr.h.
10164 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
10165 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
10166 * dwarf2/frame.c: Rename from dwarf2-frame.c.
10167 * dwarf2/frame.h: Rename from dwarf2-frame.h.
10168 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
10169 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
10170 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
10171 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
10172 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
10173 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
10174 * dwarf2/loc.c: Rename from dwarf2loc.c.
10175 * dwarf2/loc.h: Rename from dwarf2loc.h.
10176 * dwarf2/read.c: Rename from dwarf2read.c.
10177 * dwarf2/read.h: Rename from dwarf2read.h.
10178 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
10179 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
10180 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
10181 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
10182 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
10183 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
10184 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
10185 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
10186 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
10187 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
10188 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
10189 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
10190 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
10192 * Makefile.in (COMMON_SFILES): Update.
10193 (HFILES_NO_SRCDIR): Update.
10195 2020-02-08 Tom Tromey <tom@tromey.com>
10197 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
10198 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
10200 2020-02-08 Tom Tromey <tom@tromey.com>
10202 * dwarf2read.h (struct die_info): Don't declare.
10204 2020-02-08 Tom Tromey <tom@tromey.com>
10206 * dwarf2read.h (die_info_ptr): Remove typedef.
10208 2020-02-08 Tom Tromey <tom@tromey.com>
10210 * dwarf2read.c (read_call_site_scope)
10211 (handle_data_member_location, dwarf2_add_member_fn)
10212 (mark_common_block_symbol_computed, read_common_block)
10213 (attr_to_dynamic_prop, partial_die_info::read)
10214 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10215 (dwarf2_symbol_mark_computed, set_die_type): Update.
10216 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10218 (attr_form_is_block): Don't declare.
10219 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10221 2020-02-08 Tom Tromey <tom@tromey.com>
10223 * dwarf2read.c (dwarf2_find_base_address, )
10224 (read_call_site_scope, rust_containing_type)
10225 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10226 (handle_data_member_location, dwarf2_add_member_fn)
10227 (get_alignment, read_structure_type, process_structure_scope)
10228 (mark_common_block_symbol_computed, read_common_block)
10229 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10230 (partial_die_info::read, read_attribute_value, new_symbol)
10231 (lookup_die_type, dwarf2_get_ref_die_offset)
10232 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10233 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10234 (dwarf2_symbol_mark_computed): Update.
10235 * dwarf2/attribute.h (struct attribute) <value_as_address,
10236 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10238 (value_as_address, attr_form_is_section_offset)
10239 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10240 * dwarf2/attribute.c (attribute::value_as_address)
10241 (attribute::form_is_section_offset, attribute::form_is_constant)
10242 (attribute::form_is_ref): Now methods.
10244 2020-02-08 Tom Tromey <tom@tromey.com>
10246 * dwarf2read.c (struct attribute, DW_STRING)
10247 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10248 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10249 (attr_form_is_block, attr_form_is_section_offset)
10250 (attr_form_is_constant, attr_form_is_ref): Move.
10251 * dwarf2/attribute.h: New file.
10252 * dwarf2/attribute.c: New file, from dwarf2read.c.
10253 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10255 2020-02-08 Tom Tromey <tom@tromey.com>
10257 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10258 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10260 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10261 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10262 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10264 * dwarf2/abbrev.h: New file.
10265 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10266 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10268 2020-02-08 Tom Tromey <tom@tromey.com>
10270 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10271 (dwarf2_section_size, dwarf2_get_section_info)
10272 (create_signatured_type_table_from_debug_names)
10273 (create_addrmap_from_aranges, read_debug_names_from_section)
10274 (get_gdb_index_contents_from_section, read_comp_unit_head)
10275 (error_check_comp_unit_head, read_abbrev_offset)
10276 (create_debug_type_hash_table, init_cu_die_reader)
10277 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10278 (read_comp_units_from_section, create_cus_hash_table)
10279 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10280 (create_dwp_v2_section, dwarf2_rnglists_process)
10281 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10282 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10283 (read_indirect_string_from_dwz, read_addr_index_1)
10284 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10285 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10286 (fill_in_loclist_baton): Update.
10287 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10288 get_containing_section, get_bfd_owner, get_bfd_section,
10289 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10290 (dwarf2_read_section, get_section_name, get_section_file_name)
10291 (get_containing_section, get_section_bfd_owner)
10292 (get_section_bfd_section, get_section_name, get_section_file_name)
10293 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10295 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10296 (dwarf2_section_info::get_bfd_owner)
10297 (dwarf2_section_info::get_bfd_section)
10298 (dwarf2_section_info::get_name)
10299 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10300 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10301 (dwarf2_section_info::read): Now methods.
10302 * dwarf-index-write.c (class debug_names): Update.
10304 2020-02-08 Tom Tromey <tom@tromey.com>
10306 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10307 Move to dwarf2/section.h.
10308 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10309 (get_section_bfd_section, get_section_name)
10310 (get_section_file_name, get_section_id, get_section_flags)
10311 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10313 * dwarf2/section.h: New file.
10314 * dwarf2/section.c: New file, from dwarf2read.c.
10315 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10317 2020-02-08 Tom Tromey <tom@tromey.com>
10319 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10320 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10321 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10322 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10323 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10324 * dwarf2/leb.h: New file, from dwarf2read.c.
10325 * dwarf2/leb.c: New file, from dwarf2read.c.
10326 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10328 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10329 (COMMON_SFILES): Add dwarf2/leb.c.
10331 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10335 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10338 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10339 * gdb/remote.c (remote_console_output): Update.
10340 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10341 (ui_file_puts): ...this.
10342 * gdb/ui-file.h (ui_file_puts): Add declaration.
10343 * gdb/utils.c (emit_style_escape): Update.
10344 (flush_wrap_buffer): Update.
10345 (fputs_maybe_filtered): Update.
10346 (fputs_unfiltered): Add function.
10348 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10350 * gdb/event-loop.c (gdb_wait_for_event): Update.
10351 * gdb/printcmd.c (printf_command): Update.
10352 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10353 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10354 (gdb_os_flush_stderr): Update.
10355 * gdb/remote.c (remote_console_output): Update.
10356 * gdb/ui-file.c (gdb_flush): Rename to...
10357 (ui_file_flush): ...this.
10358 (stderr_file::write): Update.
10359 (stderr_file::puts): Update.
10360 * gdb/ui-file.h (gdb_flush): Rename to...
10361 (ui_file_flush): ...this.
10362 * gdb/utils.c (gdb_flush): Add function.
10363 * gdb/utils.h (gdb_flush): Add declaration.
10365 2020-02-07 Tom Tromey <tromey@adacore.com>
10367 PR breakpoints/24915:
10368 * source.c (find_and_open_source): Do not check basenames_may_differ.
10370 2020-02-07 Tom Tromey <tom@tromey.com>
10372 * README: Update gdbserver documentation.
10373 * gdbserver: Move to top level.
10374 * configure.tgt (build_gdbserver): Remove.
10375 * configure.ac: Remove --enable-gdbserver.
10376 * configure: Rebuild.
10377 * Makefile.in (distclean): Don't mention gdbserver.
10379 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10381 * source-cache.c (source_cache::ensure): Surround
10382 get_plain_source_lines with a try/catch.
10383 (source_cache::get_line_charpos): Get rid of try/catch
10384 and only check for the return value of "ensure".
10385 * tui/tui-source.c (tui_source_window::set_contents):
10386 Simplify "nlines" calculation.
10388 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10390 * MAINTAINERS (Write After Approval): Add myself.
10392 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10394 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10397 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10399 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10401 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10403 * nat/riscv-linux-tdesc.h: New file.
10404 * nat/riscv-linux-tdesc.c: New file, taking code from...
10405 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10407 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10410 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10412 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10413 we don't set the fake simulator ptid to the null_ptid.
10415 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10417 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10418 * gdbthread.h (class thread_info) <resumed>: Likewise.
10419 * infrun.c (resume_1): Likewise.
10420 (proceed): Likewise.
10421 (infrun_thread_stop_requested): Likewise.
10422 (stop_all_threads): Likewise.
10423 (handle_inferior_event): Likewise.
10424 (restart_threads): Likewise.
10425 (finish_step_over): Likewise.
10426 (keep_going_stepped_thread): Likewise.
10427 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10428 (linux_handle_extended_wait): Likewise.
10429 * record-btrace.c (get_thread_current_frame_id): Likewise.
10430 * record-full.c (record_full_wait_1): Likewise.
10431 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10432 * target.c (target_resume): Likewise.
10433 * thread.c (set_running_thread): Likewise.
10435 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10437 * f-valprint.c (f77_print_array_1): Changed datatype of index
10438 variable to LONGEST from int to enable it to contain bound
10441 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10443 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10444 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10445 offsets according to FLEN determined.
10446 (riscv_linux_nat_target::read_description): Determine FLEN
10448 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10449 according to FLEN determined.
10450 (riscv_linux_nat_target::store_registers): Likewise.
10452 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10454 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10455 when reg->group is empty and reggroup is not.
10457 2020-01-31 Tom Tromey <tromey@adacore.com>
10459 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10460 Call beneath target's mourn_inferior after unpushing.
10462 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10465 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10466 have enough lines to fill the screen, still return the lowest
10469 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10471 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10472 '-', '<', and '>' commands.
10474 2020-01-29 Pedro Alves <palves@redhat.com>
10475 Sergio Durigan Junior <sergiodj@redhat.com>
10477 * infcmd.c (construct_inferior_arguments): Assert that
10478 'argc' is greater than 0.
10480 2020-01-29 Luis Machado <luis.machado@linaro.org>
10482 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10483 (BRK_INSN_MASK): Define to 0xd4200000.
10484 (aarch64_program_breakpoint_here_p): New function.
10485 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10486 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10488 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10490 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10491 call gdbarch_program_breakpoint_here_p.
10492 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10493 default_program_breakpoint_here_p, changed return type to bool and
10495 * breakpoint.h (program_breakpoint_here): Moved prototype to
10496 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10497 return type to bool.
10498 * gdbarch.c: Regenerate.
10499 * gdbarch.h: Regenerate.
10500 * gdbarch.sh (program_breakpoint_here_p): New method.
10501 * infrun.c (handle_signal_stop): Call
10502 gdbarch_program_breakpoint_here_p.
10504 2020-01-26 Tom Tromey <tom@tromey.com>
10506 * ctfread.c (struct ctf_fp_info): Reindent.
10507 (_initialize_ctfread): Remove.
10509 2020-01-26 Tom Tromey <tom@tromey.com>
10511 * psymtab.c (partial_map_expand_apply)
10512 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10513 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10514 (psym_print_stats, psym_expand_symtabs_for_function)
10515 (psym_map_symbol_filenames, psym_map_matching_symbols)
10516 (psym_expand_symtabs_matching)
10517 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10518 (maintenance_check_psymtabs): Use new methods.
10519 * psympriv.h (struct partial_symtab) <readin_p,
10520 get_compunit_symtab>: New methods.
10521 <readin, compunit_symtab>: Remove members.
10522 (struct standard_psymtab): New.
10523 (struct legacy_psymtab): Derive from standard_psymtab.
10524 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10526 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10528 2020-01-26 Tom Tromey <tom@tromey.com>
10530 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10531 read_dependencies. Add assert.
10532 * psymtab.c (partial_symtab::read_dependencies): New method.
10533 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10535 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10536 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10538 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10541 2020-01-26 Tom Tromey <tom@tromey.com>
10543 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10544 Call expand_psymtab.
10545 (xcoff_read_symtab): Call expand_psymtab.
10546 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10547 legacy_expand_psymtab.
10548 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10550 (struct legacy_psymtab) <expand_psymtab>: Implement.
10551 <legacy_expand_psymtab>: New member.
10552 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10553 (parse_partial_symbols): Set legacy_expand_psymtab.
10554 (psymtab_to_symtab_1): Change argument order. Call
10556 (new_psymtab): Set legacy_expand_psymtab.
10557 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10558 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10560 (dwarf2_psymtab::expand_psymtab): Rename from
10561 psymtab_to_symtab_1. Call expand_psymtab.
10562 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10563 (dbx_end_psymtab): Likewise.
10564 (dbx_psymtab_to_symtab_1): Change argument order. Call
10566 (dbx_read_symtab): Call expand_psymtab.
10567 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10568 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10569 (ctf_psymtab::read_symtab): Call expand_psymtab.
10571 2020-01-26 Tom Tromey <tom@tromey.com>
10573 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10574 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10576 * mdebugread.c (mdebug_read_symtab): Remove prints.
10577 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10579 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10581 2020-01-26 Tom Tromey <tom@tromey.com>
10583 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10584 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10585 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10587 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10588 * psymtab.c (psymtab_to_symtab): Call method.
10589 (dump_psymtab): Update.
10590 * psympriv.h (struct partial_symtab): Add virtual destructor.
10591 <read_symtab>: New method.
10592 (struct legacy_symtab): New.
10593 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10594 (struct pst_map) <pst>: Now a legacy_psymtab.
10595 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10596 (new_psymtab): Use legacy_psymtab.
10597 * dwarf2read.h (struct dwarf2_psymtab): New.
10598 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10599 * dwarf2read.c (dwarf2_create_include_psymtab)
10600 (dwarf2_build_include_psymtabs, create_type_unit_group)
10601 (create_partial_symtab, process_psymtab_comp_unit_reader)
10602 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10603 (set_partial_user): Use dwarf2_psymtab.
10604 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10605 (psymtab_to_symtab_1, process_full_comp_unit)
10606 (process_full_type_unit, dwarf2_ranges_read)
10607 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10608 (dwarf_decode_lines): Use dwarf2_psymtab.
10609 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10610 (add_address_entry_worker, write_one_signatured_type)
10611 (recursively_count_psymbols, recursively_write_psymbols)
10612 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10613 (write_debug_names): Likewise.
10614 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10615 <pst>: Now a legacy_psymtab.
10616 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10617 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10618 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10619 * ctfread.c (struct ctf_psymtab): New.
10620 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10622 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10623 (create_partial_symtab): Return a ctf_psymtab.
10624 (scan_partial_symbols): Update.
10626 2020-01-26 Tom Tromey <tom@tromey.com>
10628 * xcoffread.c (xcoff_start_psymtab): Use new.
10629 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10630 renamed from start_psymtab_common.
10631 * psympriv.h (struct partial_symtab): Add new constructor.
10632 (start_psymtab_common): Don't declare.
10633 * mdebugread.c (parse_partial_symbols): Use new.
10634 * dwarf2read.c (create_partial_symtab): Use new.
10635 * dbxread.c (start_psymtab): Use new.
10636 * ctfread.c (create_partial_symtab): Use new.
10638 2020-01-26 Tom Tromey <tom@tromey.com>
10640 * xcoffread.c (xcoff_end_psymtab): Use new.
10641 * psymtab.c (start_psymtab_common): Use new.
10642 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10644 * psympriv.h (struct partial_symtab): Add parameters to
10645 constructor. Don't inline.
10646 (allocate_psymtab): Don't declare.
10647 * mdebugread.c (new_psymtab): Use new.
10648 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10649 * dbxread.c (dbx_end_psymtab): Use new.
10651 2020-01-26 Tom Tromey <tom@tromey.com>
10653 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10654 allocate_psymtab. Update documentation.
10655 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10656 allocate_psymtab. Do not use new.
10657 (allocate_psymtab): Use new. Update.
10659 2020-01-26 Tom Tromey <tom@tromey.com>
10661 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10662 * psymtab.c (psym_print_stats): Update.
10663 * psympriv.h (struct partial_symtab) <readin,
10664 psymtabs_addrmap_supported, anonymous>: Now bool.
10665 * mdebugread.c (psymtab_to_symtab_1): Update.
10666 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10667 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10668 (process_full_comp_unit, process_full_type_unit): Update.
10669 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10670 * ctfread.c (psymtab_to_symtab): Update.
10672 2020-01-26 Tom Tromey <tom@tromey.com>
10674 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10675 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10676 * psymtab.c (psymtab_storage): Delete psymtabs.
10677 (psymtab_storage::allocate_psymtab): Use new.
10678 (psymtab_storage::discard_psymtab): Use delete.
10679 * psympriv.h (struct partial_symtab): Add constructor and
10682 2020-01-26 Tom Tromey <tom@tromey.com>
10684 * machoread.c: Do not include psympriv.h.
10686 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10688 * NEWS: Mention the new option and the set/show commands.
10690 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10692 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10693 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10694 (validate_exec_file): New variables, enums, functions.
10695 (exec_file_locate_attach, print_section_info): Style the filenames.
10696 (_initialize_exec): Install show_exec_file_mismatch_command and
10697 set_exec_file_mismatch_command.
10698 * gdbcore.h (validate_exec_file): Declare.
10699 * infcmd.c (attach_command): Call validate_exec_file.
10700 * remote.c ( remote_target::remote_add_inferior): Likewise.
10702 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10704 * frame.c (find_frame_sal): Move call to get_next_frame into more
10706 * inline-frame.c (inilne_state) <inline_state>: Update argument
10708 (inilne_state) <skipped_symbol>: Rename to...
10709 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10710 (skip_inline_frames): Build vector of skipped symbols and use this
10711 to reate the inline_state.
10712 (inline_skipped_symbol): Add a comment and some assertions, fetch
10713 skipped symbol from the list.
10715 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10717 * buildsym.c (lte_is_less_than): Delete.
10718 (buildsym_compunit::end_symtab_with_blockvector): Create local
10719 lambda function to sort line table entries, and use
10720 std::stable_sort instead of std::sort.
10721 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10722 markers when looking for a previous line.
10724 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10726 * dwarf2read.c (lnp_state_machine::record_line): Include
10727 end_sequence parameter in debug print out. Record the line if we
10728 are at an end_sequence marker even if it's not the start of a
10730 * symmisc.c (maintenance_print_one_line_table): Print end of
10731 sequence markers with 'END' not '0'.
10733 2020-01-24 Pedro Alves <palves@redhat.com>
10736 * thread.c (scoped_restore_current_thread::restore): Use
10737 switch_to_inferior_no_thread.
10738 * exec.c: Include "progspace-and-thread.h".
10739 (add_target_sections, remove_target_sections):
10740 scoped_restore_current_pspace_and_thread instead of
10741 scoped_restore_current_thread.
10742 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10743 and aspace to the inferior before calling clone_program_space.
10744 Remove stale comment.
10746 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10748 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10749 (arm_netbsd_nat_target::fetch_registers): ...this.
10750 (arm_nbsd_nat_target::store_registers): Rename to...
10751 (arm_netbsd_nat_target::store_registers): ...this.
10753 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10755 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10758 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10760 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10762 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10764 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10765 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10766 the correct replacement (iterate_over_regset_sections).
10767 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10770 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10773 * gdb/python/python.c (execute_gdb_command): Call
10774 async_enable_stdin in catch block.
10776 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10778 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10779 SWITCH_THRU_ALL_UIS.
10781 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10784 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10785 comment, add extra parameter, and update to store previous symbol
10787 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10788 add extra parameter.
10789 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10790 remove unneeded parameter, add try/catch around gdb_print_insn,
10791 rewrite to add items to asm_lines vector.
10792 (tui_find_backward_disassembly_start_address): New function.
10793 (tui_find_disassembly_address): Updated throughout.
10794 (tui_disasm_window::set_contents): Update for changes to
10796 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10797 number of lines to scroll.
10799 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10801 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10802 (SECT_OFF_DATA): Likewise.
10803 (SECT_OFF_RODATA): Likewise.
10804 (SECT_OFF_TEXT): Likewise.
10805 (SECT_OFF_BSS): Likewise.
10806 (struct objfile) <text_section_offset, data_section_offset>: New
10808 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10809 objfile::text_section_offset.
10810 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10811 * coffread.c (coff_symtab_read): Likewise.
10812 (enter_linenos): Likewise.
10813 (process_coff_symbol): Likewise.
10814 * ctfread.c (get_objfile_text_range): Likewise.
10815 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10816 Use objfile::data_section_offset.
10817 * dwarf2-frame.c (execute_cfa_program): Use
10818 objfile::text_section_offset.
10819 (dwarf2_frame_find_fde): Likewise.
10820 * dwarf2read.c (create_addrmap_from_index): Likewise.
10821 (create_addrmap_from_aranges): Likewise.
10822 (dw2_find_pc_sect_compunit_symtab): Likewise.
10823 (process_psymtab_comp_unit_reader): Likewise.
10824 (add_partial_symbol): Likewise.
10825 (add_partial_subprogram): Likewise.
10826 (process_full_comp_unit): Likewise.
10827 (read_file_scope): Likewise.
10828 (read_func_scope): Likewise.
10829 (read_lexical_block_scope): Likewise.
10830 (read_call_site_scope): Likewise.
10831 (dwarf2_rnglists_process): Likewise.
10832 (dwarf2_ranges_process): Likewise.
10833 (dwarf2_ranges_read): Likewise.
10834 (dwarf_decode_lines_1): Likewise.
10835 (new_symbol): Likewise.
10836 (dwarf2_fetch_die_loc_sect_off): Likewise.
10837 (dwarf2_per_cu_text_offset): Likewise.
10838 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10839 * hppa-tdep.c (read_unwind_info): Likewise.
10840 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10841 * psympriv.h (struct partial_symtab): Likewise.
10842 * psymtab.c (find_pc_sect_psymtab): Likewise.
10843 * solib-svr4.c (enable_break): Likewise.
10844 * stap-probe.c (relocate_address): Use
10845 objfile::data_section_offset.
10846 * xcoffread.c (enter_line_range): Use
10847 objfile::text_section_offset.
10848 (read_xcoff_symtab): Likewise.
10850 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10852 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10853 declaration to narrower scopes.
10855 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10857 * darwin-nat.h (struct darwin_exception_msg, enum
10858 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10860 (class darwin_nat_target) <wait_1, check_new_threads,
10861 decode_exception_message, decode_message, stop_inferior,
10862 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10863 * darwin-nat.c (darwin_check_new_threads): Rename to...
10864 (darwin_nat_target::check_new_threads): ... this.
10865 (darwin_suspend_inferior_it): Remove.
10866 (darwin_decode_exception_message): Rename to...
10867 (darwin_nat_target::decode_exception_message): ... this.
10868 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10869 (darwin_decode_message): Rename to...
10870 (darwin_nat_target::decode_message): ... this.
10871 (cancel_breakpoint): Rename to...
10872 (darwin_nat_target::cancel_breakpoint): ... this.
10873 (darwin_wait): Rename to...
10874 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10875 instead of iterate_over_inferiors.
10876 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10877 (darwin_stop_inferior): Rename to...
10878 (darwin_nat_target::stop_inferior): ... this.
10879 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10880 (darwin_init_thread_list): Rename to...
10881 (darwin_nat_target::init_thread_list): ... this.
10882 (darwin_ptrace_him): Rename to...
10883 (darwin_nat_target::ptrace_him): ... this.
10884 (darwin_nat_target::create_inferior): Pass lambda function to
10886 (darwin_nat_target::detach): Call stop_inferior instead of
10887 darwin_stop_inferior.
10888 * fork-inferior.h (fork_inferior): Change init_trace_fun
10889 parameter to gdb::function_view.
10890 * fork-inferior.c (fork_inferior): Likewise.
10892 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10894 * i386-cygwin-tdep.c (core_process_module_section): Update.
10895 * windows-nat.c (struct lm_info_windows): Add text_offset.
10896 (windows_xfer_shared_libraries): Update.
10897 * windows-tdep.c (windows_xfer_shared_library):
10898 Add text_offset_cached argument.
10899 * windows-tdep.h (windows_xfer_shared_library): Update.
10901 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10903 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10905 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10907 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10908 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10909 replace with range-based for.
10910 (gdbsim_interrupt_inferior): Remove.
10911 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10912 with a range-based for. Inline code from
10913 gdbsim_interrupt_inferior.
10915 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10917 * infrun.c (proceed): Fix indentation.
10919 2020-01-21 Tom Tromey <tromey@adacore.com>
10921 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10922 * python/python.c (python_extension_ops): Update.
10923 (gdbpy_colorize): New function.
10924 * python/lib/gdb/__init__.py (colorize): New function.
10925 * extension.h (ext_lang_colorize): Declare.
10926 * extension.c (ext_lang_colorize): New function.
10927 * extension-priv.h (struct extension_language_ops) <colorize>: New
10929 * cli/cli-style.c (_initialize_cli_style): Update help text.
10931 2020-01-21 Luis Machado <luis.machado@linaro.org>
10933 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10934 <cond>: Change type to bool.
10935 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10936 (aarch64_displaced_step_cb): Likewise.
10937 (aarch64_displaced_step_tb): Likewise.
10939 2020-01-21 Luis Machado <luis.machado@linaro.org>
10941 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10944 2020-01-21 Luis Machado <luis.machado@linaro.org>
10946 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10947 <pc_adjust>: Adjust the documentation.
10948 (aarch64_displaced_step_fixup): Check if PC really moved before
10951 2020-01-19 Tom Tromey <tom@tromey.com>
10953 * disasm.c (~gdb_disassembler): New destructor.
10954 (gdb_buffered_insn_length): Call disassemble_free_target.
10955 * disasm.h (class gdb_disassembler): Declare destructor. Use
10956 DISABLE_COPY_AND_ASSIGN.
10958 2020-01-19 Tom Tromey <tom@tromey.com>
10960 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10961 (die_reader_func_ftype): Remove.
10962 (cutu_reader): New class.
10963 (dw2_get_file_names_reader): Remove "data" parameter.
10964 (dw2_get_file_names): Use cutu_reader.
10965 (create_debug_type_hash_table): Update.
10966 (read_cutu_die_from_dwo): Update comment.
10967 (lookup_dwo_unit): Add dwo_name parameter.
10968 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10969 die_reader_func_ftype and data parameters.
10970 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10971 Remove die_reader_func_ftype and data parameters.
10972 (~cutu_reader): New; from init_cutu_and_read_dies.
10973 (cutu_reader::cutu_reader): Rename from
10974 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10975 and data parameters.
10976 (init_cutu_and_read_dies_simple): Remove.
10977 (struct process_psymtab_comp_unit_data): Remove.
10978 (process_psymtab_comp_unit_reader): Remove data parameter; add
10979 want_partial_unit and pretend_language parameters.
10980 (process_psymtab_comp_unit): Use cutu_reader.
10981 (build_type_psymtabs_reader): Remove data parameter.
10982 (build_type_psymtabs_1): Use cutu_reader.
10983 (process_skeletonless_type_unit): Likewise.
10984 (load_partial_comp_unit_reader): Remove.
10985 (load_partial_comp_unit): Use cutu_reader.
10986 (load_full_comp_unit_reader): Remove.
10987 (load_full_comp_unit): Use cutu_reader.
10988 (struct create_dwo_cu_data): Remove.
10989 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10990 dwo_unit parameters.
10991 (create_cus_hash_table): Use cutu_reader.
10992 (struct dwarf2_read_addr_index_data): Remove.
10993 (dwarf2_read_addr_index_reader): Remove.
10994 (dwarf2_read_addr_index): Use cutu_reader.
10995 (read_signatured_type_reader): Remove.
10996 (read_signatured_type): Use cutu_reader.
10998 2020-01-19 Tom Tromey <tom@tromey.com>
11000 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
11001 * tui/tui-wingeneral.h (class tui_suppress_output): New.
11002 (tui_wrefresh): Declare.
11003 * tui/tui-wingeneral.c (suppress_output): New global.
11004 (tui_suppress_output, ~tui_suppress_output): New constructor and
11006 (tui_wrefresh): New function.
11007 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
11008 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
11009 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
11011 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
11013 (tui_data_window::no_refresh): New method.
11014 (tui_data_item_window::refresh_window): Call tui_wrefresh.
11015 (tui_reg_command): Use tui_suppress_output
11016 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
11017 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
11019 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
11021 2020-01-19 Tom Tromey <tom@tromey.com>
11023 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11024 Handle case where symtab is null.
11026 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
11028 * linux-fork.c (one_fork_p): Simplify.
11030 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11032 * top.c (struct qt_args): Remove.
11033 (kill_or_detach): Change return type to void, replace `void *`
11034 parameter with a proper one.
11035 (print_inferior_quit_action): Likewise.
11036 (quit_confirm): Use range-based for loop to iterate over inferiors.
11037 (quit_force): Likewise.
11039 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11041 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
11042 `void *` parameter with proper parameters.
11043 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
11044 (print_one_inferior): Change return type to void, replace `void *`
11045 parameter with proper parameters.
11046 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
11048 (get_other_inferior): Remove.
11049 (mi_cmd_remove_inferior): Use range-based loop to iterate over
11052 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11054 * mi/mi-interp.c (report_initial_inferior): Remove.
11055 (mi_interp::init): Use range-based for to iterate over inferiors.
11057 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
11059 * python/py-inferior.c (build_inferior_list): Remove.
11060 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
11062 2020-01-16 Christian Biesinger <cbiesinger@google.com>
11064 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
11065 (btrace_stitch_trace): Likewise.
11066 * charset.c (intermediate_encoding): Likewise (vaild).
11067 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
11068 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
11069 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
11071 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
11073 * windows-tdep.c (windows_get_tlb_type):
11074 Add rtl_user_process_parameters type.
11076 2020-01-16 Pedro Alves <palves@redhat.com>
11077 Norbert Lange <nolange79@gmail.com>
11080 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
11081 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
11082 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
11083 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
11084 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
11085 (ps_plog): Redeclare exported functions with default visibility.
11087 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
11089 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
11090 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
11092 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
11094 * infcmd.c (post_create_inferior): Use get_thread_regcache
11095 instead of get_current_regcache.
11097 2020-01-14 Tom Tromey <tom@tromey.com>
11100 * python/python.c (gdbpy_decode_line): Treat empty string the same
11103 2020-01-14 Tom Tromey <tom@tromey.com>
11105 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
11107 2020-01-14 Tom Tromey <tom@tromey.com>
11109 * nat/linux-btrace.c: Don't include <config.h>.
11110 * nat/linux-ptrace.c: Don't include <config.h>.
11111 * nat/x86-linux-dregs.c: Don't include <config.h>.
11113 2020-01-14 Tom Tromey <tom@tromey.com>
11115 * configure: Rebuild.
11116 * configure.ac: Move many checks to ../gdbsupport/common.m4.
11118 2020-01-14 Tom Tromey <tom@tromey.com>
11120 * nat/x86-linux-dregs.c: Include configh.h.
11121 * nat/linux-ptrace.c: Include configh.h.
11122 * nat/linux-btrace.c: Include configh.h.
11123 * defs.h: Include config.h, bfd.h.
11124 * configure.ac: Don't source common.host.
11125 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
11126 * configure: Rebuild.
11127 * acinclude.m4: Update path.
11128 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
11129 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
11130 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
11131 (CLIBS): Add LIBSUPPORT.
11133 (COMMON_SFILES): Remove gdbsupport files.
11134 (HFILES_NO_SRCDIR): Likewise.
11135 (stamp-version): Update path to create-version.sh.
11136 (ALLDEPFILES): Remove gdbsupport files.
11138 2020-01-14 Tom Tromey <tom@tromey.com>
11140 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
11141 USE_WIN32API when needed.
11142 * configure.ac (USE_WIN32API): Don't define.
11143 (WIN32LIBS): Use WIN32APILIBS.
11144 * configure: Rebuild.
11146 2020-01-14 Tom Tromey <tom@tromey.com>
11148 * configure: Rebuild.
11149 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
11151 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
11153 * skip.c (skip_function_command): Make skip w/o arguments use the
11154 name of the inlined function if pc is inside any inlined function.
11156 2020-01-14 Luis Machado <luis.machado@linaro.org>
11158 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
11159 * infrun.c (resume_1): Likewise.
11160 (handle_inferior_event): Remove stale comment.
11161 * linux-nat.c (linux_nat_target::resume): Update comments.
11162 (save_stop_reason): Likewise.
11163 (linux_nat_filter_event): Likewise.
11164 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
11166 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11168 * elfread.c (record_minimal_symbol): Set section index to 0 for
11169 non-allocatable sections.
11172 2020-01-13 Ali Tamur <tamur@google.com>
11174 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
11175 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
11176 to gdb::optional. Update comments.
11177 (dwo_file): Update comments.
11178 (read_attribute): Update API to take an additional out parameter,
11179 need_reprocess. This is used to mark attributes that need other
11180 attributes (e.g. str_offsets_base) for correct computation which may not
11181 have been read yet.
11182 (read_attribute_reprocess): New function declaration.
11183 (read_addr_index): Likewise.
11184 (read_dwo_str_index): Likewise.
11185 (read_stub_str_index): Likewise.
11186 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
11187 (lookup_addr_base): New function definition.
11188 (lookup_ranges_base): Likewise.
11189 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
11190 lookup_ranges_base.
11191 (init_cutu_and_read_dies): Update comments.
11192 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
11193 unit. This is used to inherit parent's str_offsets_base and addr_base.
11195 (init_cutu_and_read_dies_simple): Reflect API changes.
11196 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
11197 (create_cus_hash_table): Change API to take parent compile unit.
11198 Reflect API changes.
11199 (open_and_init_dwo_file): Reflect API changes.
11200 (dwarf2_get_pc_bounds): Update comments.
11201 (dwarf2_record_block_ranges): Likewise.
11202 (read_full_die_1): Change implementation to reprocess attributes that
11203 need str_offsets_base and addr_base.
11204 (partial_die_info::read): Likewise.
11205 (read_attribute_reprocess): New function definition.
11206 (read_attribute_value): Change API to take an additional out parameter,
11207 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11208 when a non-dwo compile unit has index based attributes.
11209 (read_attribute): Reflect API changes.
11210 (read_addr_index_1): Reflect API changes. Update comments.
11211 (dwarf2_read_addr_index_data): Reflect API changes.
11212 (dwarf2_read_addr_index): Likewise.
11213 (read_str_index): Change API and implementation. This becomes a helper
11214 to be used by the new string index related methods. Update error
11215 message and comments.
11216 (read_dwo_str_index): New function definition.
11217 (read_stub_str_index): Likewise.
11218 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11219 * symfile.h (dwarf2_debug_sections): Likewise.
11220 * xcoffread.c (dwarf2_debug_sections): Likewise.
11222 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11224 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11225 core_reg_sect type to gdb_byte *.
11226 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11227 * cris-tdep.c (fetch_core_registers): Likewise.
11228 * corelow.c (core_target::get_core_register_section): Change
11229 type of `contents` to gdb::byte_vector.
11231 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11233 * tui/tui-wingeneral.c (box_win): Position the title in the center
11236 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11238 * corelow.c (core_target::get_core_register_section): Use
11239 std::vector instead of alloca.
11241 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11243 * warning.m4: Add -Wmissing-declarations to build_warnings.
11244 * configure: Re-generate.
11246 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11248 * python/python.c (init__gdb_module): Add declaration.
11250 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11252 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11253 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11254 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11255 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11256 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11257 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11258 * ada-exp.y (_initialize_ada_exp): Add declaration.
11259 * ada-lang.c (_initialize_ada_language): Add declaration.
11260 * ada-tasks.c (_initialize_tasks): Add declaration.
11261 * agent.c (_initialize_agent): Add declaration.
11262 * aix-thread.c (_initialize_aix_thread): Add declaration.
11263 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11264 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11265 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11266 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11267 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11268 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11269 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11270 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11271 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11272 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11273 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11274 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11275 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11276 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11277 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11278 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11279 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11280 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11281 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11282 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11283 * annotate.c (_initialize_annotate): Add declaration.
11284 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11285 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11286 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11287 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11288 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11289 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11290 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11291 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11292 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11293 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11294 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11295 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11296 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11297 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11298 * auto-load.c (_initialize_auto_load): Add declaration.
11299 * auxv.c (_initialize_auxv): Add declaration.
11300 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11301 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11302 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11303 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11304 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11305 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11306 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11307 * breakpoint.c (_initialize_breakpoint): Add declaration.
11308 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11309 * btrace.c (_initialize_btrace): Add declaration.
11310 * charset.c (_initialize_charset): Add declaration.
11311 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11312 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11313 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11314 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11315 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11316 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11317 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11318 * coffread.c (_initialize_coffread): Add declaration.
11319 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11320 * compile/compile.c (_initialize_compile): Add declaration.
11321 * complaints.c (_initialize_complaints): Add declaration.
11322 * completer.c (_initialize_completer): Add declaration.
11323 * copying.c (_initialize_copying): Add declaration.
11324 * corefile.c (_initialize_core): Add declaration.
11325 * corelow.c (_initialize_corelow): Add declaration.
11326 * cp-abi.c (_initialize_cp_abi): Add declaration.
11327 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11328 * cp-support.c (_initialize_cp_support): Add declaration.
11329 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11330 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11331 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11332 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11333 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11334 * ctfread.c (_initialize_ctfread): Add declaration.
11335 * d-lang.c (_initialize_d_language): Add declaration.
11336 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11337 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11338 * dbxread.c (_initialize_dbxread): Add declaration.
11339 * dcache.c (_initialize_dcache): Add declaration.
11340 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11341 * disasm.c (_initialize_disasm): Add declaration.
11342 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11343 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11344 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11345 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11346 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11347 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11348 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11349 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11350 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11351 * elfread.c (_initialize_elfread): Add declaration.
11352 * exec.c (_initialize_exec): Add declaration.
11353 * extension.c (_initialize_extension): Add declaration.
11354 * f-lang.c (_initialize_f_language): Add declaration.
11355 * f-valprint.c (_initialize_f_valprint): Add declaration.
11356 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11357 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11358 * filesystem.c (_initialize_filesystem): Add declaration.
11359 * findcmd.c (_initialize_mem_search): Add declaration.
11360 * findvar.c (_initialize_findvar): Add declaration.
11361 * fork-child.c (_initialize_fork_child): Add declaration.
11362 * frame-base.c (_initialize_frame_base): Add declaration.
11363 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11364 * frame.c (_initialize_frame): Add declaration.
11365 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11366 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11367 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11368 * gcore.c (_initialize_gcore): Add declaration.
11369 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11370 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11371 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11372 * gdbarch.c (_initialize_gdbarch): Add declaration.
11373 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11374 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11375 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11376 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11377 * go-lang.c (_initialize_go_language): Add declaration.
11378 * go32-nat.c (_initialize_go32_nat): Add declaration.
11379 * guile/guile.c (_initialize_guile): Add declaration.
11380 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11381 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11382 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11383 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11384 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11385 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11386 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11387 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11388 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11389 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11390 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11391 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11392 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11393 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11394 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11395 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11396 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11397 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11398 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11399 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11400 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11401 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11402 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11403 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11404 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11405 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11406 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11407 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11408 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11409 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11410 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11411 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11412 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11413 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11414 * infcall.c (_initialize_infcall): Add declaration.
11415 * infcmd.c (_initialize_infcmd): Add declaration.
11416 * inflow.c (_initialize_inflow): Add declaration.
11417 * infrun.c (_initialize_infrun): Add declaration.
11418 * interps.c (_initialize_interpreter): Add declaration.
11419 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11420 * jit.c (_initialize_jit): Add declaration.
11421 * language.c (_initialize_language): Add declaration.
11422 * linux-fork.c (_initialize_linux_fork): Add declaration.
11423 * linux-nat.c (_initialize_linux_nat): Add declaration.
11424 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11425 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11426 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11427 * m2-lang.c (_initialize_m2_language): Add declaration.
11428 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11429 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11430 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11431 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11432 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11433 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11434 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11435 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11436 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11437 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11438 * machoread.c (_initialize_machoread): Add declaration.
11439 * macrocmd.c (_initialize_macrocmd): Add declaration.
11440 * macroscope.c (_initialize_macroscope): Add declaration.
11441 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11442 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11443 * maint.c (_initialize_maint_cmds): Add declaration.
11444 * mdebugread.c (_initialize_mdebugread): Add declaration.
11445 * memattr.c (_initialize_mem): Add declaration.
11446 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11447 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11448 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11449 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11450 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11451 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11452 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11453 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11454 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11455 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11456 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11457 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11458 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11459 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11460 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11461 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11462 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11463 * mipsread.c (_initialize_mipsread): Add declaration.
11464 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11465 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11466 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11467 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11468 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11469 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11470 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11471 * nto-procfs.c (_initialize_procfs): Add declaration.
11472 * objc-lang.c (_initialize_objc_language): Add declaration.
11473 * observable.c (_initialize_observer): Add declaration.
11474 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11475 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11476 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11477 * osabi.c (_initialize_gdb_osabi): Add declaration.
11478 * osdata.c (_initialize_osdata): Add declaration.
11479 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11480 * parse.c (_initialize_parse): Add declaration.
11481 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11482 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11483 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11484 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11485 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11486 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11487 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11488 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11489 * printcmd.c (_initialize_printcmd): Add declaration.
11490 * probe.c (_initialize_probe): Add declaration.
11491 * proc-api.c (_initialize_proc_api): Add declaration.
11492 * proc-events.c (_initialize_proc_events): Add declaration.
11493 * proc-service.c (_initialize_proc_service): Add declaration.
11494 * procfs.c (_initialize_procfs): Add declaration.
11495 * producer.c (_initialize_producer): Add declaration.
11496 * psymtab.c (_initialize_psymtab): Add declaration.
11497 * python/python.c (_initialize_python): Add declaration.
11498 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11499 * record-btrace.c (_initialize_record_btrace): Add declaration.
11500 * record-full.c (_initialize_record_full): Add declaration.
11501 * record.c (_initialize_record): Add declaration.
11502 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11503 * regcache.c (_initialize_regcache): Add declaration.
11504 * reggroups.c (_initialize_reggroup): Add declaration.
11505 * remote-notif.c (_initialize_notif): Add declaration.
11506 * remote-sim.c (_initialize_remote_sim): Add declaration.
11507 * remote.c (_initialize_remote): Add declaration.
11508 * reverse.c (_initialize_reverse): Add declaration.
11509 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11510 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11511 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11512 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11513 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11514 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11515 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11516 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11518 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11519 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11520 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11521 * rust-exp.y (_initialize_rust_exp): Add declaration.
11522 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11523 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11524 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11525 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11526 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11527 * score-tdep.c (_initialize_score_tdep): Add declaration.
11528 * ser-go32.c (_initialize_ser_dos): Add declaration.
11529 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11530 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11531 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11532 * ser-uds.c (_initialize_ser_socket): Add declaration.
11533 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11534 * serial.c (_initialize_serial): Add declaration.
11535 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11536 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11537 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11538 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11539 * skip.c (_initialize_step_skip): Add declaration.
11540 * sol-thread.c (_initialize_sol_thread): Add declaration.
11541 * solib-aix.c (_initialize_solib_aix): Add declaration.
11542 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11543 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11544 * solib-frv.c (_initialize_frv_solib): Add declaration.
11545 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11546 * solib-target.c (_initialize_solib_target): Add declaration.
11547 * solib.c (_initialize_solib): Add declaration.
11548 * source-cache.c (_initialize_source_cache): Add declaration.
11549 * source.c (_initialize_source): Add declaration.
11550 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11551 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11552 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11553 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11554 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11555 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11556 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11557 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11558 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11559 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11560 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11561 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11562 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11563 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11564 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11565 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11566 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11567 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11568 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11569 * stabsread.c (_initialize_stabsread): Add declaration.
11570 * stack.c (_initialize_stack): Add declaration.
11571 * stap-probe.c (_initialize_stap_probe): Add declaration.
11572 * std-regs.c (_initialize_frame_reg): Add declaration.
11573 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11574 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11575 * symfile.c (_initialize_symfile): Add declaration.
11576 * symmisc.c (_initialize_symmisc): Add declaration.
11577 * symtab.c (_initialize_symtab): Add declaration.
11578 * target.c (_initialize_target): Add declaration.
11579 * target-connection.c (_initialize_target_connection): Add
11581 * target-dcache.c (_initialize_target_dcache): Add declaration.
11582 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11583 * thread.c (_initialize_thread): Add declaration.
11584 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11585 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11586 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11587 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11588 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11589 * tracectf.c (_initialize_ctf): Add declaration.
11590 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11591 * tracefile.c (_initialize_tracefile): Add declaration.
11592 * tracepoint.c (_initialize_tracepoint): Add declaration.
11593 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11594 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11595 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11596 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11597 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11598 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11599 * tui/tui.c (_initialize_tui): Add declaration.
11600 * typeprint.c (_initialize_typeprint): Add declaration.
11601 * ui-style.c (_initialize_ui_style): Add declaration.
11602 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11603 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11604 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11605 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11606 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11607 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11608 * unittests/filtered_iterator-selftests.c
11609 (_initialize_filtered_iterator_selftests): Add declaration.
11610 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11611 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11612 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11613 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11614 * unittests/main-thread-selftests.c
11615 (_initialize_main_thread_selftests): Add declaration.
11616 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11617 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11618 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11619 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11620 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11621 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11622 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11623 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11624 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11625 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11626 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11627 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11628 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11629 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11630 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11632 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11633 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11634 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11635 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11636 * user-regs.c (_initialize_user_regs): Add declaration.
11637 * utils.c (_initialize_utils): Add declaration.
11638 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11639 * valops.c (_initialize_valops): Add declaration.
11640 * valprint.c (_initialize_valprint): Add declaration.
11641 * value.c (_initialize_values): Add declaration.
11642 * varobj.c (_initialize_varobj): Add declaration.
11643 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11644 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11645 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11646 * windows-nat.c (_initialize_windows_nat): Add declaration.
11647 (_initialize_check_for_gdb_ini): Add declaration.
11648 (_initialize_loadable): Add declaration.
11649 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11650 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11651 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11652 * xcoffread.c (_initialize_xcoffread): Add declaration.
11653 * xml-support.c (_initialize_xml_support): Add declaration.
11654 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11655 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11656 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11657 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11659 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11661 * regformats/regdat.sh: Generate declaration for init function.
11663 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11665 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11667 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11668 close_one_inferior>: New methods.
11669 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11670 pass down target to find_inferior_pid.
11671 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11672 Pass down target to find_inferior_ptid.
11673 (gdbsim_target::create_inferior): Pass down target to
11675 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11676 target down to find_inferior_ptid and switch_to_thread.
11677 (gdbsim_target::close): Update to call close_one_inferior.
11678 (struct resume_data): Remove.
11679 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11680 directly, rather than through a void pointer.
11681 (gdbsim_target::resume): Update to call resume_one_inferior.
11683 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11685 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11687 2020-01-12 Pedro Alves <palves@redhat.com>
11689 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11690 directly for the current inferior instead of
11691 discard_all_inferiors.
11692 (discard_all_inferiors): Delete.
11694 2020-01-11 Tom Tromey <tom@tromey.com>
11696 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11697 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11698 deprecated_safe_get_selected_frame.
11700 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11702 * inferior.c (print_inferior): Switch inferior before printing it.
11704 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11705 Pedro Alves <palves@redhat.com>
11707 * progspace-and-thread.c (switch_to_program_space_and_thread):
11708 Assert there's an inferior for PSPACE. Use
11709 switch_to_inferior_no_thread to switch the inferior too.
11710 * progspace.c (program_space::~program_space): Call
11711 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11712 (program_space::free_all_objfiles): Don't call clear_symtab_users
11714 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11716 2020-01-10 Pedro Alves <palves@redhat.com>
11718 * NEWS: Mention multi-target debugging, "info connections", and
11719 "add-inferior -no-connection".
11721 2020-01-10 Pedro Alves <palves@redhat.com>
11723 * infrun.c: Include "target-connection.h".
11724 (check_multi_target_resumption): New.
11725 (proceed): Call it.
11726 * target-connection.c (make_target_connection_string): Make
11728 * target-connection.h (make_target_connection_string): Declare.
11730 2020-01-10 Pedro Alves <palves@redhat.com>
11732 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11733 * inferior.c (uiout_field_connection): New function.
11734 (print_inferior): Add new "connection-id" column.
11735 (add_inferior_command): Show connection number/string of added
11737 * process-stratum-target.h
11738 (process_stratum_target::connection_string): New virtual method.
11739 (process_stratum_target::connection_number): New field.
11740 * remote.c (remote_target::connection_string): New override.
11741 * target-connection.c: New file.
11742 * target-connection.h: New file.
11743 * target.c (decref_target): Remove process_stratum targets from
11744 the connection list.
11745 (target_stack::push): Add process_stratum targets to the
11748 2020-01-10 Pedro Alves <palves@redhat.com>
11751 2016-04-12 Pedro Alves <palves@redhat.com>
11752 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11753 Remove references to name.
11754 * serial.h (struct serial) <name>: Delete.
11756 2020-01-10 Pedro Alves <palves@redhat.com>
11758 * gdbarch-selftests.c (register_to_value_test): Remove "target
11759 already pushed" check.
11761 2020-01-10 Pedro Alves <palves@redhat.com>
11762 John Baldwin <jhb@FreeBSD.org>
11764 * aarch64-linux-nat.c
11765 (aarch64_linux_nat_target::thread_architecture): Adjust.
11766 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11767 (task_command_1): Likewise.
11768 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11769 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11770 (aix_thread_target::store_registers)
11771 (aix_thread_target::thread_alive): Adjust.
11772 * amd64-fbsd-tdep.c: Include "inferior.h".
11773 (amd64fbsd_get_thread_local_address): Pass down target.
11774 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11775 thread's gdbarch instead of target_gdbarch.
11776 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11777 get_last_target_status.
11778 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11779 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11781 (update_inserted_breakpoint_locations): Skip if inferiors with no
11783 (update_global_location_list): When handling moribund locations,
11784 find representative inferior for location's pspace, and use thread
11785 count of its process_stratum target.
11786 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11787 * bsd-uthread.c (bsd_uthread_target::wait): Use
11788 as_process_stratum_target and adjust thread_change_ptid and
11790 (bsd_uthread_target::update_thread_list): Use
11791 as_process_stratum_target and adjust find_thread_ptid,
11792 thread_change_ptid and add_thread calls.
11793 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11794 find_thread_ptid call.
11795 * corelow.c (add_to_thread_list): Adjust add_thread call.
11796 (core_target_open): Adjust add_thread_silent and thread_count
11798 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11799 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11800 * event-top.c (async_disconnect): Pop targets from all inferiors.
11801 * exec.c (add_target_sections): Push exec target on all inferiors
11802 sharing the program space.
11803 (remove_target_sections): Remove the exec target from all
11804 inferiors sharing the program space.
11805 (exec_on_vfork): New.
11806 * exec.h (exec_on_vfork): Declare.
11807 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11809 (fbsd_nat_target::update_thread_list): Adjust.
11810 (fbsd_nat_target::resume): Adjust.
11811 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11813 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11814 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11815 get_thread_arch_regcache call.
11816 * fork-child.c (gdb_startup_inferior): Pass target down to
11817 startup_inferior and set_executing.
11818 * gdbthread.h (struct process_stratum_target): Forward declare.
11819 (add_thread, add_thread_silent, add_thread_with_info)
11820 (in_thread_list): Add process_stratum_target parameter.
11821 (find_thread_ptid(inferior*, ptid_t)): New overload.
11822 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11824 (all_threads()): Delete overload.
11825 (all_threads, all_non_exited_threads): Add process_stratum_target
11827 (all_threads_safe): Use brace initialization.
11828 (thread_count): Add process_stratum_target parameter.
11829 (set_resumed, set_running, set_stop_requested, set_executing)
11830 (threads_are_executing, finish_thread_state): Add
11831 process_stratum_target parameter.
11832 (switch_to_thread): Use is_current_thread.
11833 * i386-fbsd-tdep.c: Include "inferior.h".
11834 (i386fbsd_get_thread_local_address): Pass down target.
11835 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11836 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11837 have_inferiors check.
11838 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11839 (inf_ptrace_target::attach): Adjust.
11840 * infcall.c (run_inferior_call): Adjust.
11841 * infcmd.c (run_command_1): Pass target to
11842 scoped_finish_thread_state.
11843 (proceed_thread_callback): Skip inferiors with no execution.
11844 (continue_command): Rename 'all_threads' local to avoid hiding
11845 'all_threads' function. Adjust get_last_target_status call.
11846 (prepare_one_step): Adjust set_running call.
11847 (signal_command): Use user_visible_resume_target. Compare thread
11848 pointers instead of inferior_ptid.
11849 (info_program_command): Adjust to pass down target.
11850 (attach_command): Mark target's 'thread_executing' flag.
11851 (stop_current_target_threads_ns): New, factored out from ...
11852 (interrupt_target_1): ... this. Switch inferior before making
11855 (struct all_inferiors_iterator, struct all_inferiors_range)
11856 (struct all_inferiors_safe_range)
11857 (struct all_non_exited_inferiors_range): Filter on
11858 process_stratum_target too. Remove explicit.
11859 * inferior.c (inferior::inferior): Push dummy target on target
11861 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11862 Add process_stratum_target parameter, and pass it down.
11863 (have_live_inferiors): Adjust.
11864 (switch_to_inferior_and_push_target): New.
11865 (add_inferior_command, clone_inferior_command): Handle
11866 "-no-connection" parameter. Use
11867 switch_to_inferior_and_push_target.
11868 (_initialize_inferior): Mention "-no-connection" option in
11869 the help of "add-inferior" and "clone-inferior" commands.
11870 * inferior.h: Include "process-stratum-target.h".
11871 (interrupt_target_1): Use bool.
11872 (struct inferior) <push_target, unpush_target, target_is_pushed,
11873 find_target_beneath, top_target, process_target, target_at,
11875 (discard_all_inferiors): Delete.
11876 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11877 (all_inferiors, all_non_exited_inferiors): Add
11878 process_stratum_target parameter.
11879 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11880 (target_last_proc_target): New global.
11881 (follow_fork_inferior): Push target on new inferior. Pass target
11882 to add_thread_silent. Call exec_on_vfork. Handle target's
11884 (follow_fork): Adjust get_last_target_status call. Also consider
11886 (follow_exec): Push target on new inferior.
11887 (struct execution_control_state) <target>: New field.
11888 (user_visible_resume_target): New.
11889 (do_target_resume): Call target_async.
11890 (resume_1): Set target's threads_executing flag. Consider resume
11892 (commit_resume_all_targets): New.
11893 (proceed): Also consider resume target. Skip threads of inferiors
11894 with no execution. Commit resumtion in all targets.
11895 (start_remote): Pass current inferior to wait_for_inferior.
11896 (infrun_thread_stop_requested): Consider target as well. Pass
11897 thread_info pointer to clear_inline_frame_state instead of ptid.
11898 (infrun_thread_thread_exit): Consider target as well.
11899 (random_pending_event_thread): New inferior parameter. Use it.
11900 (do_target_wait): Rename to ...
11901 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11903 (threads_are_resumed_pending_p, do_target_wait): New.
11904 (prepare_for_detach): Adjust calls.
11905 (wait_for_inferior): New inferior parameter. Handle it. Use
11906 do_target_wait_1 instead of do_target_wait.
11907 (fetch_inferior_event): Adjust. Switch to representative
11908 inferior. Pass target down.
11909 (set_last_target_status): Add process_stratum_target parameter.
11910 Save target in global.
11911 (get_last_target_status): Add process_stratum_target parameter and
11913 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11914 (context_switch): Check inferior_ptid == null_ptid before calling
11916 (get_inferior_stop_soon): Pass down target.
11917 (wait_one): Rename to ...
11918 (poll_one_curr_target): ... this.
11919 (struct wait_one_event): New.
11921 (stop_all_threads): Adjust.
11922 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11924 (switch_back_to_stepped_thread): Also consider target.
11925 (print_stop_event): Update.
11926 (normal_stop): Update. Also consider the resume target.
11927 * infrun.h (wait_for_inferior): Remove declaration.
11928 (user_visible_resume_target): New declaration.
11929 (get_last_target_status, set_last_target_status): New
11930 process_stratum_target parameter.
11931 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11932 process_stratum_target parameter, and use it.
11933 (clear_inline_frame_state (thread_info*)): New.
11934 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11935 process_stratum_target parameter.
11936 (clear_inline_frame_state (thread_info*)): Declare.
11937 * linux-fork.c (delete_checkpoint_command): Pass target down to
11939 (checkpoint_command): Adjust.
11940 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11941 instead of just tweaking inferior_ptid.
11942 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11943 (exit_lwp): Pass target down to find_thread_ptid.
11944 (attach_proc_task_lwp_callback): Pass target down to
11945 add_thread/set_running/set_executing.
11946 (linux_nat_target::attach): Pass target down to
11947 thread_change_ptid.
11948 (get_detach_signal): Pass target down to find_thread_ptid.
11949 Consider last target status's target.
11950 (linux_resume_one_lwp_throw, resume_lwp)
11951 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11952 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11953 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11954 (linux_nat_target::async_wait_fd): New.
11955 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11957 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11958 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11959 * linux-thread-db.c (struct thread_db_info::process_target): New
11961 (add_thread_db_info): Save target.
11962 (get_thread_db_info): New process_stratum_target parameter. Also
11964 (delete_thread_db_info): New process_stratum_target parameter.
11966 (thread_from_lwp): Adjust to pass down target.
11967 (thread_db_notice_clone): Pass down target.
11968 (check_thread_db_callback): Pass down target.
11969 (try_thread_db_load_1): Always push the thread_db target.
11970 (try_thread_db_load, record_thread): Pass target down.
11971 (thread_db_target::detach): Pass target down. Always unpush the
11973 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11974 target down. Always unpush the thread_db target.
11975 (find_new_threads_callback, thread_db_find_new_threads_2)
11976 (thread_db_target::update_thread_list): Pass target down.
11977 (thread_db_target::pid_to_str): Pass current inferior down.
11978 (thread_db_target::get_thread_local_address): Pass target down.
11979 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11981 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11982 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11983 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11984 (procfs_init_inferior): Rename to ...
11985 (procfs_target::procfs_init_inferior): ... this and adjust.
11986 (procfs_target::create_inferior, procfs_notice_thread)
11987 (procfs_do_thread_registers): Adjust.
11988 * ppc-fbsd-tdep.c: Include "inferior.h".
11989 (ppcfbsd_get_thread_local_address): Pass down target.
11990 * proc-service.c (ps_xfer_memory): Switch current inferior and
11991 program space as well.
11992 (get_ps_regcache): Pass target down.
11993 * process-stratum-target.c
11994 (process_stratum_target::thread_address_space)
11995 (process_stratum_target::thread_architecture): Pass target down.
11996 * process-stratum-target.h
11997 (process_stratum_target::threads_executing): New field.
11998 (as_process_stratum_target): New.
11999 * ravenscar-thread.c
12000 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
12001 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
12003 * record-btrace.c (record_btrace_target::info_record): Adjust.
12004 (record_btrace_target::record_method)
12005 (record_btrace_target::record_is_replaying)
12006 (record_btrace_target::fetch_registers)
12007 (get_thread_current_frame_id, record_btrace_target::resume)
12008 (record_btrace_target::wait, record_btrace_target::stop): Pass
12010 * record-full.c (record_full_wait_1): Switch to event thread.
12012 * regcache.c (regcache::regcache)
12013 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
12014 process_stratum_target parameter and handle it.
12015 (current_thread_target): New global.
12016 (get_thread_regcache): Add process_stratum_target parameter and
12017 handle it. Switch inferior before calling target method.
12018 (get_thread_regcache): Pass target down.
12019 (get_thread_regcache_for_ptid): Pass target down.
12020 (registers_changed_ptid): Add process_stratum_target parameter and
12022 (registers_changed_thread, registers_changed): Pass target down.
12023 (test_get_thread_arch_aspace_regcache): New.
12024 (current_regcache_test): Define a couple local test_target_ops
12025 instances and use them for testing.
12026 (readwrite_regcache): Pass process_stratum_target parameter.
12027 (cooked_read_test, cooked_write_test): Pass mock_target down.
12028 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
12029 (get_thread_arch_aspace_regcache): Add process_stratum_target
12031 (regcache::target): New method.
12032 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
12033 (regcache::registers_changed_ptid): Add process_stratum_target
12035 (regcache::m_target): New field.
12036 (registers_changed_ptid): Add process_stratum_target parameter.
12037 * remote.c (remote_state::supports_vCont_probed): New field.
12038 (remote_target::async_wait_fd): New method.
12039 (remote_unpush_and_throw): Add remote_target parameter.
12040 (get_current_remote_target): Adjust.
12041 (remote_target::remote_add_inferior): Push target.
12042 (remote_target::remote_add_thread)
12043 (remote_target::remote_notice_new_inferior)
12044 (get_remote_thread_info): Pass target down.
12045 (remote_target::update_thread_list): Skip threads of inferiors
12046 bound to other targets. (remote_target::close): Don't discard
12047 inferiors. (remote_target::add_current_inferior_and_thread)
12048 (remote_target::process_initial_stop_replies)
12049 (remote_target::start_remote)
12050 (remote_target::remote_serial_quit_handler): Pass down target.
12051 (remote_target::remote_unpush_target): New remote_target
12052 parameter. Unpush the target from all inferiors.
12053 (remote_target::remote_unpush_and_throw): New remote_target
12054 parameter. Pass it down.
12055 (remote_target::open_1): Check whether the current inferior has
12056 execution instead of checking whether any inferior is live. Pass
12058 (remote_target::remote_detach_1): Pass down target. Use
12059 remote_unpush_target.
12060 (extended_remote_target::attach): Pass down target.
12061 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
12062 (remote_target::append_resumption): Pass down target.
12063 (remote_target::append_pending_thread_resumptions)
12064 (remote_target::remote_resume_with_hc, remote_target::resume)
12065 (remote_target::commit_resume): Pass down target.
12066 (remote_target::remote_stop_ns): Check supports_vCont_probed.
12067 (remote_target::interrupt_query)
12068 (remote_target::remove_new_fork_children)
12069 (remote_target::check_pending_events_prevent_wildcard_vcont)
12070 (remote_target::remote_parse_stop_reply)
12071 (remote_target::process_stop_reply): Pass down target.
12072 (first_remote_resumed_thread): New remote_target parameter. Pass
12074 (remote_target::wait_as): Pass down target.
12075 (unpush_and_perror): New remote_target parameter. Pass it down.
12076 (remote_target::readchar, remote_target::remote_serial_write)
12077 (remote_target::getpkt_or_notif_sane_1)
12078 (remote_target::kill_new_fork_children, remote_target::kill): Pass
12080 (remote_target::mourn_inferior): Pass down target. Use
12081 remote_unpush_target.
12082 (remote_target::core_of_thread)
12083 (remote_target::remote_btrace_maybe_reopen): Pass down target.
12084 (remote_target::pid_to_exec_file)
12085 (remote_target::thread_handle_to_thread_info): Pass down target.
12086 (remote_target::async_wait_fd): New.
12087 * riscv-fbsd-tdep.c: Include "inferior.h".
12088 (riscv_fbsd_get_thread_local_address): Pass down target.
12089 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
12090 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
12091 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
12093 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
12094 * solib-svr4.c (enable_break): Pass down target.
12095 * spu-multiarch.c (parse_spufs_run): Pass down target.
12096 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
12097 * target-delegates.c: Regenerate.
12098 * target.c (g_target_stack): Delete.
12099 (current_top_target): Return the current inferior's top target.
12100 (target_has_execution_1): Refer to the passed-in inferior's top
12102 (target_supports_terminal_ours): Check whether the initial
12103 inferior was already created.
12104 (decref_target): New.
12105 (target_stack::push): Incref/decref the target.
12106 (push_target, push_target, unpush_target): Adjust.
12107 (target_stack::unpush): Defref target.
12108 (target_is_pushed): Return bool. Adjust to refer to the current
12109 inferior's target stack.
12110 (dispose_inferior): Delete, and inline parts ...
12111 (target_preopen): ... here. Only dispose of the current inferior.
12112 (target_detach): Hold strong target reference while detaching.
12114 (target_thread_name): Add assertion.
12115 (target_resume): Pass down target.
12116 (target_ops::beneath, find_target_at): Adjust to refer to the
12117 current inferior's target stack.
12118 (get_dummy_target): New.
12119 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
12120 has a thread running.
12121 (initialize_targets): Rename to ...
12122 (_initialize_target): ... this.
12123 * target.h: Include "gdbsupport/refcounted-object.h".
12124 (struct target_ops): Inherit refcounted_object.
12125 (target_ops::shortname, target_ops::longname): Make const.
12126 (target_ops::async_wait_fd): New method.
12127 (decref_target): Declare.
12128 (struct target_ops_ref_policy): New.
12129 (target_ops_ref): New typedef.
12130 (get_dummy_target): Declare function.
12131 (target_is_pushed): Return bool.
12132 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
12133 (all_matching_threads_iterator::all_matching_threads_iterator):
12134 Handle filter target.
12135 * thread-iter.h (struct all_matching_threads_iterator, struct
12136 all_matching_threads_range, class all_non_exited_threads_range):
12137 Filter by target too. Remove explicit.
12138 * thread.c (threads_executing): Delete.
12139 (inferior_thread): Pass down current inferior.
12140 (clear_thread_inferior_resources): Pass down thread pointer
12142 (add_thread_silent, add_thread_with_info, add_thread): Add
12143 process_stratum_target parameter. Use it for thread and inferior
12145 (is_current_thread): New.
12146 (thread_info::deletable): Use it.
12147 (find_thread_ptid, thread_count, in_thread_list)
12148 (thread_change_ptid, set_resumed, set_running): New
12149 process_stratum_target parameter. Pass it down.
12150 (set_executing): New process_stratum_target parameter. Pass it
12151 down. Adjust reference to 'threads_executing'.
12152 (threads_are_executing): New process_stratum_target parameter.
12153 Adjust reference to 'threads_executing'.
12154 (set_stop_requested, finish_thread_state): New
12155 process_stratum_target parameter. Pass it down.
12156 (switch_to_thread): Also match inferior.
12157 (switch_to_thread): New process_stratum_target parameter. Pass it
12159 (update_threads_executing): Reimplement.
12160 * top.c (quit_force): Pop targets from all inferior.
12161 (gdb_init): Don't call initialize_targets.
12162 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
12164 (windows_add_thread, windows_delete_thread): Adjust.
12165 (get_windows_debug_event): Rename to ...
12166 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
12167 * tracefile-tfile.c (tfile_target_open): Pass down target.
12168 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
12170 (switch_to_thread): Add process_stratum_target parameter.
12171 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
12173 (mi_on_resume): Pass target down.
12174 * nat/fork-inferior.c (startup_inferior): Add
12175 process_stratum_target parameter. Pass it down.
12176 * nat/fork-inferior.h (startup_inferior): Add
12177 process_stratum_target parameter.
12178 * python/py-threadevent.c (py_get_event_thread): Pass target down.
12180 2020-01-10 Pedro Alves <palves@redhat.com>
12182 * remote.c (remote_target::start_remote): Don't set inferior_ptid
12183 directly. Instead find the first thread in the thread list and
12184 use switch_to_thread.
12186 2020-01-10 Pedro Alves <palves@redhat.com>
12188 * remote.c (remote_target::remote_add_inferior): Don't bind a
12189 process to the current inferior if the current inferior is already
12190 bound to a process.
12192 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12193 Pedro Alves <palves@redhat.com>
12195 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
12196 If no process is specified, return null_ptid instead of
12198 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
12199 TARGET_WAITKIND_SIGNALLED with no pid.
12201 2020-01-10 Pedro Alves <palves@redhat.com>
12203 * remote.c (first_remote_resumed_thread): New.
12204 (remote_target::wait_as): Use it as default event_ptid instead of
12207 2020-01-10 Pedro Alves <palves@redhat.com>
12209 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12211 2020-01-10 Pedro Alves <palves@redhat.com>
12213 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12216 2020-01-10 Pedro Alves <palves@redhat.com>
12218 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12219 ptid to get_last_target_status.
12220 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12221 ptid to get_last_target_status.
12222 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12223 get_last_target_status.
12224 (info_program_command): Don't pass a target_waitstatus to
12225 get_last_target_status.
12226 * infrun.c (init_wait_for_inferior): Use
12227 nullify_last_target_wait_ptid.
12228 (get_last_target_status): Handle nullptr arguments.
12229 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12230 (print_stop_event): Don't pass a ptid to get_last_target_status.
12231 (normal_stop): Don't pass a ptid to get_last_target_status.
12232 * infrun.h (get_last_target_status, set_last_target_status): Move
12233 comments here and update.
12234 (nullify_last_target_wait_ptid): Declare.
12235 * linux-fork.c (fork_load_infrun_state): Remove local extern
12236 declaration of nullify_last_target_wait_ptid.
12237 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12238 to get_last_target_status.
12240 2020-01-10 Pedro Alves <palves@redhat.com>
12242 * gdbthread.h (scoped_restore_current_thread)
12243 <dont_restore, restore, m_dont_restore>: Declare.
12244 * thread.c (thread_alive): Add assertion. Return bool.
12245 (switch_to_thread_if_alive): New.
12246 (prune_threads): Switch inferior/thread.
12247 (print_thread_info_1): Switch thread before calling target methods.
12248 (scoped_restore_current_thread::restore): New, factored out from
12250 (scoped_restore_current_thread::~scoped_restore_current_thread):
12252 (scoped_restore_current_thread::scoped_restore_current_thread):
12254 (thread_apply_all_command, thread_select): Use
12255 switch_to_thread_if_alive.
12256 * infrun.c (proceed, restart_threads, handle_signal_stop)
12257 (switch_back_to_stepped_thread): Switch current thread before
12258 calling target methods.
12260 2020-01-10 Pedro Alves <palves@redhat.com>
12262 * inferior.c (switch_to_inferior_no_thread): New function,
12263 factored out from ...
12264 (inferior_command): ... here.
12265 * inferior.h (switch_to_inferior_no_thread): Declare.
12266 * mi/mi-main.c (run_one_inferior): Use
12267 switch_to_inferior_no_thread.
12269 2020-01-10 Pedro Alves <palves@redhat.com>
12271 * infcmd.c (kill_command): Remove dead code.
12273 2020-01-10 Pedro Alves <palves@redhat.com>
12275 * remote.c (remote_target::mourn_inferior): No longer check
12276 whether the target is running.
12278 2020-01-10 Pedro Alves <palves@redhat.com>
12280 * corelow.c (core_target::has_execution): Change parameter type to
12282 * inferior.c (number_of_live_inferiors): Use
12283 inferior::has_execution instead of target_has_execution_1.
12284 * inferior.h (inferior::has_execution): New.
12285 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12286 inferior::has_execution instead of target_has_execution_1.
12287 * process-stratum-target.c
12288 (process_stratum_target::has_execution): Change parameter type to
12289 inferior pointer. Check the inferior's PID instead of
12291 * process-stratum-target.h
12292 (process_stratum_target::has_execution): Change parameter type to
12294 * record-full.c (record_full_core_target::has_execution): Change
12295 parameter type to inferior pointer.
12296 * target.c (target_has_execution_1): Change parameter type to
12298 (target_has_execution_current): Adjust.
12299 * target.h (target_ops::has_execution): Change parameter type to
12301 (target_has_execution_1): Change parameter type to inferior
12302 pointer. Change return type to bool.
12303 * tracefile.h (tracefile_target::has_execution): Change parameter
12304 type to inferior pointer.
12306 2020-01-10 Pedro Alves <palves@redhat.com>
12308 * exceptions.c (print_flush): Remove current_top_target() check.
12310 2020-01-10 Pedro Alves <palves@redhat.com>
12312 * remote.c (show_remote_exec_file): Show the current inferior's
12313 exec-file instead of the command variable's value.
12315 2020-01-10 Pedro Alves <palves@redhat.com>
12317 * record-full.c (record_full_resume_ptid): New global.
12318 (record_full_target::resume): Set it.
12319 (record_full_wait_1): Use record_full_resume_ptid instead of
12322 2020-01-10 Pedro Alves <palves@redhat.com>
12324 * gdbthread.h (scoped_restore_current_thread)
12325 <dont_restore, restore, m_dont_restore>: Declare.
12326 * thread.c (thread_alive): Add assertion. Return bool.
12327 (switch_to_thread_if_alive): New.
12328 (prune_threads): Switch inferior/thread.
12329 (print_thread_info_1): Switch thread before calling target methods.
12330 (scoped_restore_current_thread::restore): New, factored out from
12332 (scoped_restore_current_thread::~scoped_restore_current_thread):
12334 (scoped_restore_current_thread::scoped_restore_current_thread):
12336 (thread_apply_all_command, thread_select): Use
12337 switch_to_thread_if_alive.
12339 2020-01-10 George Barrett <bob@bob131.so>
12341 * stap-probe.c (stap_modify_semaphore): Don't check for null
12343 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12344 for null semaphores.
12346 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12348 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12349 all source windows, and maintain horizontal scroll status while
12352 2020-01-09 Tom Tromey <tom@tromey.com>
12355 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12356 update_source_window, not print_source_lines.
12358 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12360 * tui/tui.c (tui_enable): Register tui hooks after calling
12363 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12365 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12367 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12369 * thread.c (print_thread_info_1): Fix indentation.
12371 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12373 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12374 unique_xmalloc_ptr outside the if to always free the demangled name.
12376 2020-01-08 Tom Tromey <tromey@adacore.com>
12378 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12379 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12380 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12381 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12383 (section_offsets): New typedef.
12384 * symtab.c (fixup_section, get_msymbol_address): Update.
12385 * symmisc.c (dump_msymbols): Update.
12386 * symfile.h (relative_addr_info_to_section_offsets)
12387 (symfile_map_offsets_to_segments): Update.
12388 * symfile.c (build_section_addr_info_from_objfile)
12389 (init_objfile_sect_indices): Update.
12390 (struct place_section_arg): Change type of "offsets".
12391 (place_section): Update.
12392 (relative_addr_info_to_section_offsets): Change type of
12393 "section_offsets". Remove "num_sections" parameter.
12394 (default_symfile_offsets, syms_from_objfile_1)
12395 (set_objfile_default_section_offset): Update.
12396 (reread_symbols): No need to preserve section offsets by hand.
12397 (symfile_map_offsets_to_segments): Change type of "offsets".
12398 * stap-probe.c (relocate_address): Update.
12399 * stabsread.h (process_one_symbol): Update.
12400 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12401 (solib_target_relocate_section_addresses): Update.
12402 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12404 * solib-frv.c (frv_relocate_main_executable): Update.
12405 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12406 * solib-aix.c (solib_aix_get_section_offsets): Change return
12408 (solib_aix_solib_create_inferior_hook): Update.
12409 * remote.c (remote_target::get_offsets): Update.
12410 * psymtab.c (find_pc_sect_psymtab): Update.
12411 * psympriv.h (struct partial_symbol) <address, text_low,
12412 text_high>: Update.
12413 * objfiles.h (obj_section_offset): Update.
12414 (struct objfile) <section_offsets>: Change type.
12415 <num_sections>: Remove.
12416 (objfile_relocate): Update.
12417 * objfiles.c (entry_point_address_query): Update
12418 (relocate_one_symbol): Change type of "section_offsets".
12419 (objfile_relocate1, objfile_relocate1): Change type of
12421 (objfile_rebase1): Update.
12422 * mipsread.c (mipscoff_symfile_read): Update.
12423 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12425 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12426 (parse_external, psymtab_to_symtab_1): Update.
12427 * machoread.c (macho_symfile_offsets): Update.
12428 * ia64-tdep.c (ia64_find_unwind_table): Update.
12429 * hppa-tdep.c (read_unwind_info): Update.
12430 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12431 * dwarf2read.c (create_addrmap_from_index)
12432 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12433 (process_psymtab_comp_unit_reader, add_partial_symbol)
12434 (add_partial_subprogram, process_full_comp_unit)
12435 (read_file_scope, read_func_scope, read_lexical_block_scope)
12436 (read_call_site_scope, dwarf2_rnglists_process)
12437 (dwarf2_ranges_process, dwarf2_ranges_read)
12438 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12439 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12441 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12443 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12444 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12445 (process_one_symbol): Change type of "section_offsets".
12446 * ctfread.c (get_objfile_text_range): Update.
12447 * coffread.c (coff_symtab_read, enter_linenos)
12448 (process_coff_symbol): Update.
12449 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12450 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12452 2020-01-08 Tom Tromey <tromey@adacore.com>
12454 * dwarf2read.c (parse_macro_definition): Use std::string.
12455 (parse_macro_definition): Likewise.
12457 2020-01-08 Tom Tromey <tromey@adacore.com>
12459 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12460 (ATTR_ALLOC_CHUNK): Remove.
12462 2020-01-08 Tom Tromey <tromey@adacore.com>
12464 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12466 2020-01-08 Tom Tromey <tromey@adacore.com>
12468 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12469 (dwarf2_compute_name, open_dwo_file): Likewise.
12470 (process_enumeration_scope): Use std::vector.
12471 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12472 (partial_die_info::fixup, dwarf2_start_subfile)
12473 (guess_full_die_structure_name, dwarf2_name): Likewise.
12474 (determine_prefix): Update.
12475 (guess_full_die_structure_name): Make return type const.
12476 (partial_die_full_name): Return unique_xmalloc_ptr.
12477 (DW_FIELD_ALLOC_CHUNK): Remove.
12479 2020-01-07 Tom Tromey <tromey@adacore.com>
12482 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12484 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12486 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12488 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12490 * stack.c (print_frame_info): Move disassemble_next_line code
12491 inside source_print block.
12493 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12495 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12496 gdb/signals.h, as we are now using native signal symbols.
12498 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12500 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12501 overflow by an early check of content vs threshold.
12502 * tui/tui-source.c (tui_source_window::line_is_displayed):
12505 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12507 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12509 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12511 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12512 export table if no section contains it's RVA.
12514 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12516 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12518 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12520 * source.c (print_source_lines_base): Set last_line_listed.
12522 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12524 * tui/tui-disasm.c: Remove trailing spaces.
12526 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12527 Pedro Alves <palves@redhat.com>
12529 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12530 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12531 (windows_gdb_signal_to_target): New function, uses the above
12532 enumeration to convert GDB internal signal codes to equivalent
12534 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12535 * windows-nat.c: Include "gdb_wait.h".
12536 (get_windows_debug_event): Extract the fatal exception from the
12537 exit status and convert to the equivalent Posix signal number.
12538 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12539 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12540 * gdbsupport/gdb_wait.c: New file, implements
12541 windows_status_to_termsig.
12542 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12543 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12545 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12547 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12550 2020-01-05 Luis Machado <luis.machado@linaro.org>
12552 * aarch64-linux-nat.c
12553 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12554 and bfd_mach_aarch64.
12556 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12558 * ui-file.c (stdio_file::can_emit_style_escape)
12559 (tee_file::can_emit_style_escape): Ensure style is used also on
12560 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12562 * main.c (set_gdb_data_directory): Use file style to output the
12563 warning that the given pathname is not a directory.
12564 * top.c (show_history_filename, gdb_safe_append_history)
12565 (show_gdb_datadir): Use file style.
12567 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12569 * solib-target.c (struct lm_info_target):
12570 Change offsets to be a unique_xmalloc_ptr.
12571 (solib_target_relocate_section_addresses): Update.
12573 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12575 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12577 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12579 * MAINTAINERS (Write After Approval): Add myself.
12581 2020-01-02 Luis Machado <luis.machado@linaro.org>
12583 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12584 Cell BE architecture.
12585 * target.h (struct target_ops) <thread_architecture>: Likewise.
12587 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12589 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12591 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12593 * MAINTAINERS (Write After Approval): Add myself.
12595 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12597 * gdbarch.sh: Update copyright year range of generated files.
12599 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12601 Update copyright year range in all GDB files.
12603 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12605 * copyright.py: Convert to Python 3.
12607 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12609 * copyright.py: Adapt after move of gnulib directory from gdb
12610 directory to toplevel directory.
12612 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12614 * copyright.py (main): Exit if run from the wrong directory.
12616 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12618 * top.c (print_gdb_version): Change copyright year to 2020.
12620 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12622 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12624 For older changes see ChangeLog-2019.
12630 version-control: never