1 2020-08-31 Scott Linder <scott@scottlinder.com>
2 Simon Marchi <simon.marchi@efficios.com>
4 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5 inline frame ids in outer frame.
7 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
9 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
10 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
11 (outer_frame_id): Use FID_STACK_OUTER instead of
13 (frame_id_p): Don't check for outer_frame_id.
15 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
17 * frame-unwind.c (frame_unwind_got_optimized): Don't set
18 regnum/frame in value. Call allocate_value_lazy.
19 * frame.c (frame_unwind_register_value): Use
22 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
24 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
26 2020-08-29 Pedro Alves <pedro@palves.net>
28 * progspace.c (print_program_space): Use all_inferiors. Switch to
29 the inferior before calling target_pid_to_str.
31 2020-08-28 Tom Tromey <tom@tromey.com>
33 * xcoffread.c (xcoff_end_psymtab): Update comment.
34 * dbxread.c (dbx_end_psymtab): Update comment.
36 2020-08-28 Tom de Vries <tdevries@suse.de>
39 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
41 (create_breakpoint): Same.
42 (base_breakpoint_decode_location): Same.
43 (bkpt_create_sals_from_location): Same.
44 (bkpt_decode_location): Same.
45 (bkpt_probe_create_sals_from_location): Same.
46 (bkpt_probe_decode_location): Same.
47 (tracepoint_create_sals_from_location): Same.
48 (tracepoint_decode_location): Same.
49 (tracepoint_probe_decode_location): Same.
50 (strace_marker_create_sals_from_location): Same.
51 (strace_marker_decode_location): Same.
52 (create_sals_from_location_default): Same.
53 (decode_location_default): Same.
54 * breakpoint.h (struct breakpoint_ops): Same.
55 (create_breakpoint): Same.
56 * linespec.h (decode_line_full): Same.
57 * linespec.c (decode_line_full): Same. Throw error if
60 2020-08-27 Pedro Alves <pedro@palves.net>
63 * breakpoint.c (until_break_fsm) <location_breakpoint,
64 caller_breakpoint>: Delete fields.
65 <breakpoints>: New field.
66 <until_break_fsm>: Adjust to save a breakpoint vector instead of
67 two individual breakpoints.
68 (until_break_fsm::should_stop): Loop over breakpoints in the
70 (until_break_fsm::clean_up): Adjust to clear the breakpoints
72 (until_break_command): Handle location expanding into multiple
75 2020-08-27 Pedro Alves <pedro@palves.net>
78 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
79 bp_until breakpoints user-specified locations. Update intro
82 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
84 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
85 gdb_bfd_sections): New.
86 * maint.c (print_bfd_section_info): Change param type to
87 maint_print_section_data.
88 (print_objfile_section_info): Likewise.
89 (print_bfd_section_info_maybe_relocated): Likewise.
90 (maintenance_info_sections): Use gdb_bfd_sections.
92 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
94 * MAINTAINERS: Add ARC target and maintainer.
96 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
98 * configure.tgt: ARC support for GNU/Linux.
99 * Makefile.in (ALL_TARGET_OBJS): Likewise.
100 * arc-linux-tdep.c: New file.
101 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
102 * arc-tdep.c (arc_write_pc): Use it.
104 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
106 * arc-tdep.c (arc_check_for_hardware_loop): New.
107 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
109 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
111 * arc-tdep.h: Include "gdbarch.h".
113 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
116 (arc_gdbarch_features): New class to stir the selection of target XML.
117 (arc_create_target_description): Use FEATURES to choose XML target.
118 (arc_lookup_target_description): Use arc_create_target_description
119 to create _new_ target descriptions or return the already created
120 ones if the FEATURES is the same.
121 * arch/arc.c: Implementation of prototypes described above.
122 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
123 (arc_gdbarch_features_init): Initialize the FEATURES struct.
124 * arc-tdep.c (*_feature_name): Make feature names consistent.
125 (arc_register_feature): A new struct to hold information about
126 registers of a particular target/feature.
127 (arc_check_tdesc_feature): Check if XML provides registers in
128 compliance with ARC_REGISTER_FEATURE structs.
129 (arc_update_acc_reg_names): Add aliases for r58 and r59.
130 (determine_*_reg_feature_set): Which feature name to look for.
131 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
132 (mach_type_to_arc_isa): Convert from a set of binutils machine types
133 to expected ISA enums to be used in arc_gdbarch_features structs.
134 * features/Makefile (FEATURE_XMLFILES): Add new files.
135 * gdb/features/arc/v1-aux.c: New file.
136 * gdb/features/arc/v1-aux.xml: Likewise.
137 * gdb/features/arc/v1-core.c: Likewise.
138 * gdb/features/arc/v1-core.xml: Likewise.
139 * gdb/features/arc/v2-aux.c: Likewise.
140 * gdb/features/arc/v2-aux.xml: Likewise.
141 * gdb/features/arc/v2-core.c: Likewise.
142 * gdb/features/arc/v2-core.xml: Likewise.
143 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
145 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
146 Andrew Burgess <andrew.burgess@embecosm.com>
149 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
150 an assert. Remove single element array indexing pattern as the
151 MULTI_SUBSCRIPT support will handle this case too.
153 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
155 * value.h (valprint_check_validity): Move declaration from
157 * valprint.h (valprint_check_validity): ... to here.
159 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
162 * debug.c (debug_prefixed_vprintf): New function.
163 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
164 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
166 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
168 * infrun.h (infrun_debug_printf_1): New function declaration.
169 (infrun_debug_printf): New macro.
170 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
172 (infrun_debug_printf): New function.
173 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
174 (handle_jit_event): Likewise.
176 2020-08-21 Mark Wielaard <mark@klomp.org>
178 * ada-lex.l: Extend register warnings diagnostics comment for g++.
180 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
182 * frame.c (enum class frame_id_status): New.
183 (struct frame_info) <this_id::p>: Change type to frame_id_status.
184 (fprintf_frame): Update.
185 (compute_frame_id): Set frame id status to "computing" on entry.
186 Set it back to "not_computed" on failure and to "computed" on
188 (get_frame_id): Assert the frame id is not being computed.
189 (create_sentinel_frame): Use frame_id_status::COMPUTED.
190 (create_new_frame): Likewise.
191 (frame_cleanup_after_sniffer): Update assert.
193 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
195 * regcache.c (pid_ptid_regcache_map): New type.
196 (target_ptid_regcache_map): Remove.
197 (target_pid_ptid_regcache_map): New type.
198 (regcaches): Change type to target_pid_ptid_regcache_map.
199 (get_thread_arch_aspace_regcache): Update.
200 (regcache_thread_ptid_changed): Update, handle pid-like ptid
202 (regcaches_size): Update.
203 (regcache_count): Update.
204 (registers_changed_ptid_target_pid_test): New.
205 (_initialize_regcache): Register new test.
207 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
209 * regcache.c (regcache_count): New.
210 (struct regcache_test_data): New.
211 (regcache_test_data_up): New.
212 (populate_regcaches_for_test): New.
213 (regcaches_test): Remove.
214 (get_thread_arch_aspace_regcache_test): New.
215 (registers_changed_ptid_all_test): New.
216 (registers_changed_ptid_target_test): New.
217 (registers_changed_ptid_target_ptid_test): New.
218 (regcache_thread_ptid_changed): Remove regcache_count lambda.
219 (_initialize_regcache): Register new tests.
221 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
223 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
224 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
225 gdbarch and aspace parameter. Use current inferior's aspace.
226 Validate regcache's arch value.
227 (regcaches_test): Update.
229 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
231 * regcache.c (regcaches_test): Call registers_changed.
233 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
235 * infrun.c (process_event_stop_test): Fix typo "breapoint".
237 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
239 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
240 to find the end of prologue for flang compiled binaries.
241 * arm-tdep.c (arm_skip_prologue): Likewise.
242 * i386-tdep.c (i386_skip_prologue): Likewise.
243 * producer.c (producer_is_llvm): New function.
244 (producer_parsing_tests): Added new tests for clang/flang.
245 * producer.h (producer_is_llvm): New declaration.
247 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
249 * linux-nat.c (linux_nat_debug_printf): New function.
250 (linux_nat_debug_printf_1): New macro. Use throughout the file.
252 2020-08-18 Aaron Merey <amerey@redhat.com>
254 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
255 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
256 (CLIBS): Add DEBUGINFOD_LIBS.
258 2020-08-17 Sergei Trofimovich <siarheit@google.com>
260 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
263 2020-08-17 Tom Tromey <tromey@adacore.com>
265 * ada-varobj.c (ada_varobj_decode_var): Handle case where
266 ada_get_decoded_value returns NULL.
268 2020-08-17 Tom Tromey <tromey@adacore.com>
270 * python/py-inferior.c (infpy_search_memory): Use
271 gdb_py_object_from_ulongest.
272 * python/py-infevents.c (create_inferior_call_event_object)
273 (create_memory_changed_event_object): Use
274 gdb_py_object_from_ulongest.
275 * python/py-linetable.c (ltpy_entry_get_pc): Use
276 gdb_py_object_from_ulongest.
278 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
280 * loc.c (class symbol_needs_eval_context): Fix indentation.
282 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
284 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
287 2020-08-17 Tom de Vries <tdevries@suse.de>
290 * gdbtypes.c (dump_dynamic_prop): New function.
291 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
293 2020-08-15 Tom de Vries <tdevries@suse.de>
296 * stack.c (print_frame_args): Temporarily set the selected
297 frame to FRAME while printing the frame's arguments.
299 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
302 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
303 Always clear watchpoint with PTRACE_SET_DEBUGREG.
305 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
307 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
308 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
309 and >= to check return value instead of == -1 and != -1.
311 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
313 * utils.h (class gdb_argv) <as_array_view>: New method.
314 * utils.c (gdb_argv_as_array_view_test): New.
315 (_initialize_utils): Register selftest.
316 * maint.c (maintenance_selftest): Use the new method.
318 2020-08-13 Kamil Rytarowski <n54@gmx.com>
320 * target.h (supports_dumpcore, dumpcore): New
321 function declarations.
322 * target.c (supports_dumpcore, dumpcore): New
324 * target-delegates.c: Rebuild.
325 * gcore.c (gcore_command): Use target_supports_dumpcore ()
326 and target_dumpcore ().
328 2020-08-13 Aaron Merey <amerey@redhat.com>
330 * debuginfod-support.c: Replace global variables with user_data.
332 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
334 * maint.c (maintenance_selftest): Split args and pass array_view
337 2020-08-12 Luis Machado <luis.machado@linaro.org>
339 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
341 Use %s and pulongest to print the length.
343 2020-08-12 Pedro Alves <palves@redhat.com>
345 * NEWS: Move "Multi-target debugging support" item to the
346 "Changes since GDB 9" section.
348 2020-08-12 Pedro Alves <palves@redhat.com>
351 * progspace.c (program_space::remove_objfile): Invalidate the
354 2020-08-11 Tom de Vries <tdevries@suse.de>
356 * MAINTAINERS: Mark ms1 as deleted.
358 2020-08-10 Luis Machado <luis.machado@linaro.org>
362 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
364 (aarch64_analyze_prologue_test): Add more unit tests to exercise
365 movz/str/stur/stp skipping behavior.
367 2020-08-10 Luis Machado <luis.machado@linaro.org>
369 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
370 struct user_sve_header instead of struct sve_context.
372 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
374 * read.h (dwarf2_fetch_die_loc_sect_off,
375 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
376 `void *` parameter with function_view.
377 * read.c (dwarf2_fetch_die_loc_sect_off,
378 dwarf2_fetch_die_loc_cu_off): Likewise.
379 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
380 (per_cu_dwarf_call): Adjust.
381 (get_frame_address_in_block_wrapper): Remove.
382 (indirect_synthetic_pointer): Adjust.
384 (dwarf2_compile_expr_to_ax): Adjust.
386 2020-08-08 Tom de Vries <tdevries@suse.de>
389 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
391 * regcache.c (get_thread_arch_aspace_regcache): Same.
393 2020-08-07 Tom Tromey <tromey@adacore.com>
396 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
398 (ravenscar_thread_target::wait): Check
400 (ravenscar_thread_target::prepare_to_store)
401 (ravenscar_thread_target::stopped_by_sw_breakpoint)
402 (ravenscar_thread_target::stopped_by_hw_breakpoint)
403 (ravenscar_thread_target::stopped_by_watchpoint)
404 (ravenscar_thread_target::stopped_data_address)
405 (ravenscar_thread_target::core_of_thread): Use
406 scoped_restore_current_thread and
407 set_base_thread_from_ravenscar_task.
409 2020-08-07 Tom Tromey <tromey@adacore.com>
411 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
413 2020-08-07 Tom Tromey <tromey@adacore.com>
415 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
416 update_inferior_ptid before update_thread_list.
417 (temporarily_change_regcache_ptid): New class.
418 (ravenscar_thread_target::fetch_registers)
419 (ravenscar_thread_target::store_registers)
420 (ravenscar_thread_target::prepare_to_store): Use base thread when
421 forwarding operation.
423 2020-08-07 Tom Tromey <tromey@adacore.com>
425 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
428 2020-08-07 Tom Tromey <tromey@adacore.com>
430 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
432 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
434 (ravenscar_thread_target::add_thread): Rename from
435 ravenscar_add_thread.
436 (ravenscar_thread_target::update_thread_list): Use a lambda.
437 (ravenscar_thread_target::xfer_partial): New method.
439 2020-08-07 Tom Tromey <tromey@adacore.com>
441 * ada-lang.h (ada_task_list_iterator_ftype): Now a
443 (iterate_over_live_ada_tasks): Change type of argument.
444 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
447 2020-08-07 Tom Tromey <tromey@adacore.com>
449 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
451 (ravenscar_thread_target::extra_thread_info): Remove.
452 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
453 defer to target beneath for non-Ravenscar threads.
455 2020-08-07 Tom Tromey <tromey@adacore.com>
457 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
458 get_base_thread_from_ravenscar_task>: Now methods.
459 <m_cpu_map>: New member.
460 (ravenscar_thread_target::get_thread_base_cpu): Rename from
461 ravenscar_get_thread_base_cpu. Check m_cpu_map.
462 (ravenscar_thread_target::task_is_currently_active): Update.
463 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
465 (ravenscar_thread_target::add_active_thread): Put initial thread
468 2020-08-07 Tom Tromey <tromey@adacore.com>
470 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
473 2020-08-07 Tom Tromey <tromey@adacore.com>
475 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
478 2020-08-07 Tom Tromey <tromey@adacore.com>
480 * ravenscar-thread.c (ravenscar_thread_target): Don't call
482 (ravenscar_thread_target::add_active_thread): Now public.
483 (ravenscar_inferior_created): Call add_active_thread after pushing
486 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
488 * regcache.c (ptid_regcache_map): New type.
489 (target_ptid_regcache_map): New type.
490 (regcaches): Change type to target_ptid_regcache_map.
491 (get_thread_arch_aspace_regcache): Update to regcaches' new
493 (regcache_thread_ptid_changed): Likewise.
494 (registers_changed_ptid): Likewise.
495 (regcaches_size): Likewise.
496 (regcaches_test): Update.
497 (regcache_thread_ptid_changed): Update.
498 * regcache.h (regcache_up): New type.
499 * gdbsupport/ptid.h (hash_ptid): New struct.
501 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
503 * observable.h (thread_ptid_changed): Add parameter
504 `process_stratum_target *`.
505 * infrun.c (infrun_thread_ptid_changed): Add parameter
506 `process_stratum_target *` and use it.
507 (selftests): New namespace.
508 (infrun_thread_ptid_changed): New function.
509 (_initialize_infrun): Register selftest.
510 * regcache.c (regcache_thread_ptid_changed): Add parameter
511 `process_stratum_target *` and use it.
512 (regcache_thread_ptid_changed): New function.
513 (_initialize_regcache): Register selftest.
514 * thread.c (thread_change_ptid): Pass target to
515 thread_ptid_changed observable.
517 2020-08-06 Caroline Tice <cmtice@google.com>
519 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
520 (struct dwp_sections): Update field comments. Add loclists and
522 (struct virtual_v2_dwo_sections): Rename struct to
523 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
524 size & offset fields for loclists and rnglists.
525 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
526 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
527 skipping dummy type units.
528 (create_dwp_hash_table): Update the large comment above the function to
529 discuss Version 5 DWP files as well, with references. Update all the
530 version checks in the function to check for version 5 as well. Add new
531 section at the end to create dwp hash table for version 5.
532 (create_dwp_v2_section): Rename function to
533 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
534 Add V5 to error message text.
535 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
536 into calls to create_dwp_v2_or_v5_section.
537 (create_dwo_unit_in_dwp_v5): New function.
538 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
539 check for version2; add else clause to handle version 5.
540 (open_and_init_dwo_file): Add code to check dwarf version & only call
541 create_debug_types_hash_table (with sections.types) if version is not 5;
542 else call create_debug_type_hash_table, with sections.info.
543 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
545 (dwarf2_locate_v5_dwp_sections): New function.
546 (open_and_init_dwp_file): Add else-if clause for version 5 to call
547 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
549 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
551 * regcache.h (class regcache): Remove friend
552 registers_changed_ptid.
553 <regcache_thread_ptid_changed>: Remove.
555 * regcache.c (regcache::regcaches): Rename to...
556 (regcaches): ... this. Make static.
557 (get_thread_arch_aspace_regcache): Update.
558 (regcache::regcache_thread_ptid_changed): Rename to...
559 (regcache_thread_ptid_changed): ... this. Update.
560 (class regcache_access): Remove.
561 (regcaches_test): Update.
562 (_initialize_regcache): Update.
563 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
566 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
568 * regcache.h (class regcache) <current_regcache>: Rename to...
569 <regcaches>: ... this. Move doc here.
570 * regcache.c (regcache::current_regcache) Rename to...
571 (regcache::regcaches): ... this. Move doc to header.
572 (get_thread_arch_aspace_regcache): Update.
573 (regcache::regcache_thread_ptid_changed): Update.
574 (registers_changed_ptid): Update.
575 (class regcache_access) <current_regcache_size>: Rename to...
576 <regcaches_size>: ... this.
577 (current_regcache_test): Rename to...
578 (regcaches_test): ... this.
579 (_initialize_regcache): Update.
581 2020-08-06 Victor Collod <vcollod@nvidia.com>
583 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
585 2020-08-05 Kevin Buettner <kevinb@redhat.com>
587 * corelow.c (core_target::build_file_mappings): Don't output
588 null pathname in warning.
590 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
592 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
593 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
594 gdb.dwarf2/dw2-single-line-discriminators.exp,
595 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
597 2020-08-05 Tom Tromey <tromey@adacore.com>
600 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
601 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
602 Fix off-by-one and type size errors in ordinary case.
604 2020-08-05 Tom de Vries <tdevries@suse.de>
606 * gdbtypes.c (type_not_allocated, type_not_associated): Use
607 "prop->const_val () == 0" instead of "prop->const_val () != 0".
609 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
611 * frame.h (frame_id_p): Return bool.
612 (frame_id_artificial_p): Return bool.
613 (frame_id_eq): Return bool.
614 (has_stack_frames): Return bool.
615 (get_selected_frame): Fix typo in comment.
616 (get_frame_pc_if_available): Return bool.
617 (get_frame_address_in_block_if_available): Return bool.
618 (get_frame_func_if_available): Return bool.
619 (read_frame_register_unsigned): Return bool.
620 (get_frame_register_bytes): Return bool.
621 (safe_frame_unwind_memory): Return bool.
622 (deprecated_frame_register_read): Return bool.
623 (frame_unwinder_is): Return bool.
624 * frame.c (struct frame_info) <prev_arch::p>: Change type to
626 <this_id::p>: Likewise.
628 (frame_stash_add): Return bool.
629 (get_frame_id): Use bool.
630 (frame_id_build_special) Use bool.
631 (frame_id_build_unavailable_stack): Use bool.
632 (frame_id_build): Use bool.
633 (frame_id_p): Return bool, use true/false instead of 1/0.
634 (frame_id_artificial_p): Likewise.
635 (frame_id_eq): Likewise.
636 (frame_id_inner): Likewise.
637 (get_frame_func_if_available): Likewise.
638 (read_frame_register_unsigned): Likewise.
639 (deprecated_frame_register_read): Likewise.
640 (get_frame_register_bytes): Likewise.
641 (has_stack_frames): Likewise.
642 (inside_main_func): Likewise.
643 (inside_entry_func): Likewise.
644 (get_frame_pc_if_available): Likewise.
645 (get_frame_address_in_block_if_available): Likewise.
646 (frame_unwinder_is): Likewise.
647 (safe_frame_unwind_memory): Likewise.
648 (frame_unwind_arch): Likewise.
650 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
652 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
653 type to cached_copy_status.
654 (fprintf_frame): Adjust.
655 (get_frame_func_if_available): Adjust.
656 (frame_cleanup_after_sniffer): Adjust.
658 2020-08-04 Mark Wielaard <mark@klomp.org>
660 * MAINTAINERS (Write After Approval): Update email address.
662 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
664 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
665 dynamic_prop::const_val.
667 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
669 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
672 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
674 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
676 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
678 * configure.tgt: Set gdb_sim for bpf-*-* targets.
680 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
681 Jose E. Marchesi <jose.marchesi@oracle.com>
683 * configure.tgt: Add entry for bpf-*-*.
684 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
685 (ALLDEPFILES): Add bpf-tdep.c.
686 * bpf-tdep.c: New file.
687 * MAINTAINERS: Add bpf target and maintainer.
688 * NEWS: Mention the support for the new target.
690 2020-08-04 Tom de Vries <tdevries@suse.de>
693 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
696 2020-08-03 John Baldwin <jhb@FreeBSD.org>
698 * syscalls/freebsd.xml: Regenerate.
700 2020-08-03 John Baldwin <jhb@FreeBSD.org>
702 * syscalls/update-freebsd.sh: Fix usage and year range.
704 2020-08-03 Tom de Vries <tdevries@suse.de>
707 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
708 DW_LNE_lo_user/DW_LNE_hi_user range.
710 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
713 * ada-lang.c (ada_modulus): Return 0 if property is not of const
716 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
718 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
720 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
722 * breakpoint.c (set_breakpoint_condition): Update the condition
723 expressions after checking that the input condition string parses
724 successfully and does not contain junk at the end.
726 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
728 * breakpoint.c (set_breakpoint_condition): Update the
729 condition string after parsing the new condition successfully.
731 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
733 * proc-api.c (_STRUCTURED_PROC): Don't define.
734 * proc-events.c: Likewise.
735 * proc-flags.c: Likewise.
736 * proc-why.c: Likewise.
737 * procfs.c: Likewise.
739 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
740 * configure, config.in: Regenerate.
742 2020-07-30 Tom de Vries <tdevries@suse.de>
745 * ui-style.h (struct ui_file_style::color): Wrap m_value and
746 m_red/m_green/m_blue in a union.
748 2020-07-29 Tom de Vries <tdevries@suse.de>
751 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
753 2020-07-28 Tom Tromey <tromey@adacore.com>
756 * symtab.h (find_pc_partial_function_sym): Declare.
757 * cli/cli-cmds.c (disassemble_command): Use
758 find_pc_partial_function_sym. Check asm_demangle.
759 * blockframe.c (cache_pc_function_sym): New global.
760 (cache_pc_function_name): Remove.
761 (clear_pc_function_cache): Update.
762 (find_pc_partial_function_sym): New function, from
763 find_pc_partial_function.
764 (find_pc_partial_function): Rewrite using
765 find_pc_partial_function_sym.
767 2020-07-28 Tom Tromey <tromey@adacore.com>
769 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
772 2020-07-28 Tom Tromey <tromey@adacore.com>
774 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
775 <DW_OP_GNU_variable_value>: Cast to address type.
777 2020-07-28 Kamil Rytarowski <n54@gmx.com>
779 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
780 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
781 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
782 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
783 (nbsd_get_siginfo_type): New.
784 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
785 (_initialize_nbsd_tdep): New.
787 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
790 * configure: Regenerated.
792 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
795 * configure: Regenerated.
797 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
799 * python/py-frame.c: Remove 'user-regs.h' include.
800 (frapy_read_register): Rewrite to make use of
801 gdbpy_parse_register_id.
802 * python/py-registers.c (gdbpy_parse_register_id): New function,
803 moved here from python/py-unwind.c. Updated the return type, and
804 also accepts register descriptor objects.
805 * python/py-unwind.c: Remove 'user-regs.h' include.
806 (pyuw_parse_register_id): Moved to python/py-registers.c.
807 (unwind_infopy_add_saved_register): Update to use
808 gdbpy_parse_register_id.
809 (pending_framepy_read_register): Likewise.
810 * python/python-internal.h (gdbpy_parse_register_id): Declare.
812 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
814 * python/py-registers.c: Add 'user-regs.h' include.
815 (register_descriptor_iter_find): New function.
816 (register_descriptor_iterator_object_methods): New static global
818 (register_descriptor_iterator_object_type): Add pointer to methods
821 2020-07-27 John Baldwin <jhb@FreeBSD.org>
823 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
824 for all architectures on FreeBSD 11.3 and later.
826 2020-07-27 Tom Tromey <tromey@adacore.com>
828 * gcore.h (load_corefile): Don't declare.
830 2020-07-27 Tom de Vries <tdevries@suse.de>
832 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
833 * config.in: Regenerate.
834 * configure: Regenerate.
836 2020-07-26 Eli Zaretskii <eliz@gnu.org>
838 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
839 ws2tcpip.h. When checking whether socklen_t type is defined, use
840 ws2tcpip.h if it is available and sys/socket.h isn't.
841 * configure: Regenerate.
842 * config.in: Regenerate.
844 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
848 * valops.c (value_ind): Pass address to
849 readjust_indirect_value_type.
850 * value.c (readjust_indirect_value_type): Make parameter
851 non-const, and add extra address parameter. Resolve original type
853 * value.h (readjust_indirect_value_type): Update function
854 signature and comment.
856 2020-07-25 Tom de Vries <tdevries@suse.de>
859 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
862 2020-07-24 Aaron Merey <amerey@redhat.com>
864 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
865 * configure: Rebuild.
867 2020-07-23 Kevin Buettner <kevinb@redhat.com>
870 * corelow.c (_initialize_corelow): Add period to help text
871 for "maintenance print core-file-backed-mappings".
873 2020-07-23 Pedro Alves <pedro@palves.net>
875 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
876 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
878 * frame.c (frame_cache_generation, get_frame_cache_generation):
880 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
881 (get_prev_frame_if_no_cycle): On exception, don't touch
882 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
883 * frame.h (get_frame_cache_generation): Declare.
885 2020-07-23 Tom de Vries <tdevries@suse.de>
888 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
889 New default constructor.
891 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
893 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
894 exclude non-statement entries.
896 2020-07-22 Kevin Buettner <kevinb@redhat.com>
898 * NEWS (New commands): Mention new command
899 "maintenance print core-file-backed-mappings".
901 2020-07-22 Kevin Buettner <kevinb@redhat.com>
903 * corelow.c (gdbcmd.h): Include.
904 (core_target::info_proc_mappings): New method.
905 (get_current_core_target): New function.
906 (maintenance_print_core_file_backed_mappings): New function.
907 (_initialize_corelow): Add core-file-backed-mappings to
908 "maint print" commands.
910 2020-07-22 Kevin Buettner <kevinb@redhat.com>
912 * linux-tdep.c (dump_note_entry_p): New function.
913 (linux_dump_mapping_p_ftype): New typedef.
914 (linux_find_memory_regions_full): Add new parameter,
915 should_dump_mapping_p.
916 (linux_find_memory_regions): Adjust call to
917 linux_find_memory_regions_full.
918 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
919 call to linux_find_memory_regions_full.
921 2020-07-22 Kevin Buettner <kevinb@redhat.com>
923 * corelow.c (solist.h, unordered_map): Include.
924 (class core_target): Add field m_core_file_mappings and
925 method build_file_mappings.
926 (core_target::core_target): Call build_file_mappings.
927 (core_target::~core_target): Free memory associated with
928 m_core_file_mappings.
929 (core_target::build_file_mappings): New method.
930 (core_target::xfer_partial): Use m_core_file_mappings
931 for memory transfers.
932 * linux-tdep.c (linux_read_core_file_mappings): New
934 (linux_core_info_proc_mappings): Rewrite to use
935 linux_read_core_file_mappings.
936 (linux_init_abi): Register linux_read_core_file_mappings.
938 2020-07-22 Kevin Buettner <kevinb@redhat.com>
940 * arch-utils.c (default_read_core_file_mappings): New function.
941 * arch-utils.c (default_read_core_file_mappings): Declare.
942 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
943 * gdbarch.h, gdbarch.c: Regenerate.
945 2020-07-22 Kevin Buettner <kevinb@redhat.com>
948 * corelow.c (core_target:xfer_partial): Revise
949 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
950 case after first checking the stratum beneath the core
952 (has_all_memory): Return true.
953 * target.c (raw_memory_xfer_partial): Revise comment
954 regarding use of has_all_memory.
956 2020-07-22 Kevin Buettner <kevinb@redhat.com>
958 * exec.h (section_table_xfer_memory): Revise declaration,
959 replacing section name parameter with an optional callback
961 * exec.c (section_table_xfer_memory): Likewise.
962 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
963 of section_table_xfer_memory.
965 2020-07-22 Tom Tromey <tromey@adacore.com>
967 * mi/mi-cmd-stack.c (list_args_or_locals): Use
968 lookup_symbol_search_name.
970 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
972 * python/py-registers.c (gdbpy_register_object_data_init): Remove
973 redundant local variable.
974 (gdbpy_get_register_descriptor): Extract descriptor vector as a
975 reference, not pointer, update code accordingly.
977 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
978 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
980 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
981 * jit.c (jit_breakpoint_re_set_internal): Use the
982 `skip_jit_symbol_lookup` field.
984 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
985 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
987 * jit.c (jit_read_descriptor): Define the descriptor address once,
989 (jit_breakpoint_deleted): Move the declaration of the loop variable
990 `iter` into the loop header.
991 (jit_breakpoint_re_set_internal): Move the declaration of the local
992 variable `objf_data` to the first point of definition.
993 (jit_event_handler): Move the declaration of local variables
994 `code_entry`, `entry_addr`, and `objf` to their first point of use.
995 Rename `objf` to `jited`.
997 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
999 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
1001 * jit.c (get_jiter_objfile_data): Update.
1003 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1004 Simon Marchi <simon.marchi@polymtl.ca>
1006 * jit.c (struct jit_program_space_data): Remove.
1007 (jit_program_space_key): Remove.
1008 (jiter_objfile_data::~jiter_objfile_data): Remove program space
1010 (get_jit_program_space_data): Remove.
1011 (jit_breakpoint_deleted): Iterate on all of the program space's
1013 (jit_inferior_init): Likewise.
1014 (jit_breakpoint_re_set_internal): Likewise. Also change return
1016 (jit_breakpoint_re_set): Pass current_program_space to
1017 jit_breakpoint_re_set_internal.
1019 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1021 * jit.h (struct jiter_objfile_data) <cached_code_address,
1022 jit_breakpoint>: Move to here from ...
1023 * jit.c (jit_program_space_data): ... here.
1024 (jiter_objfile_data::~jiter_objfile_data): Update.
1025 (jit_breakpoint_deleted): Update.
1026 (jit_breakpoint_re_set_internal): Update.
1028 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1030 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
1032 (jit_read_descriptor): Remove NULL check.
1033 (jit_event_handler): Add an assertion.
1035 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1037 * jit.h (struct jit_objfile_data): Split into...
1038 (struct jiter_objfile_data): ... this ...
1039 (struct jited_objfile_data): ... and this.
1040 * objfiles.h (struct objfile) <jit_data>: Remove.
1041 <jiter_data, jited_data>: New fields.
1042 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
1043 (jiter_objfile_data::~jiter_objfile_data): ... this.
1044 (get_jit_objfile_data): Rename to ...
1045 (get_jiter_objfile_data): ... this.
1046 (add_objfile_entry): Update.
1047 (jit_read_descriptor): Use get_jiter_objfile_data.
1048 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
1049 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
1050 (jit_inferior_exit_hook): Use objfile's jited_data field.
1052 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1054 * jit.h: Forward-declare `struct minimal_symbol`.
1055 (struct jit_objfile_data): Migrate to here from jit.c; also add a
1056 constructor, destructor, and an objfile* field.
1057 * jit.c (jit_objfile_data): Remove.
1058 (struct jit_objfile_data): Migrate from here to jit.h.
1059 (jit_objfile_data::~jit_objfile_data): New destructor
1060 implementation with code moved from free_objfile_data.
1061 (free_objfile_data): Delete.
1062 (get_jit_objfile_data): Update to use the jit_data field of objfile.
1063 (jit_find_objf_with_entry_addr): Ditto.
1064 (jit_inferior_exit_hook): Ditto.
1065 (_initialize_jit): Remove the call to
1066 register_objfile_data_with_cleanup.
1067 * objfiles.h (struct objfile) <jit_data>: New field.
1069 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1071 * jit.h: Forward-declare `struct objfile`.
1072 (jit_event_handler): Add a second parameter, the JITer objfile.
1073 * jit.c (jit_read_descriptor): Change the signature to take the
1074 JITer objfile as an argument instead of the jit_program_space_data.
1075 (jit_inferior_init): Update the call to jit_read_descriptor.
1076 (jit_event_handler): Use the new JITer objfile argument when calling
1077 jit_read_descriptor.
1078 * breakpoint.c (handle_jit_event): Update the call to
1079 jit_event_handler to pass the JITer objfile.
1081 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1083 * gdbarch.c: Regenerate.
1084 * gdbarch.h: Regenerate.
1085 * gdbarch.sh (handle_segmentation_fault): Remove method.
1086 * infrun.c (handle_segmentation_fault): Remove.
1087 (print_signal_received_reason): Remove call to
1088 handle_segmentation_fault.
1090 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1092 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
1093 Rename to sparc64_linux_report_signal_info and add siggnal
1095 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
1096 instead of sparc64_linux_handle_segmentation_fault.
1098 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1100 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
1101 i386_linux_report_signal_info instead of
1102 i386_linux_handle_segmentation_fault.
1103 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
1104 to i386_linux_report_signal_info and add siggnal argument.
1105 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
1106 of i386_linux_handle_segmentation_fault.
1107 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
1108 to i386_linux_report_signal_info and add siggnal argument.
1110 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1112 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
1115 2020-07-21 John Baldwin <jhb@FreeBSD.org>
1117 * gdbarch.c: Regenerate.
1118 * gdbarch.h: Regenerate.
1119 * gdbarch.sh (report_signal_info): New method.
1120 * infrun.c (print_signal_received_reason): Invoke gdbarch
1121 report_signal_info hook if present.
1123 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1125 * python/py-registers.c : Add 'unordered_map' include.
1126 (gdbpy_new_reggroup): Renamed to...
1127 (gdbpy_get_reggroup): ...this. Update to only create register
1128 group descriptors when needed.
1129 (gdbpy_reggroup_iter_next): Update.
1131 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
1133 * python/py-registers.c (gdbpy_register_object_data): New static
1135 (gdbpy_register_object_data_init): New function.
1136 (gdbpy_new_register_descriptor): Renamed to...
1137 (gdbpy_get_register_descriptor): ...this, and update to reuse
1138 existing register descriptors where possible.
1139 (gdbpy_register_descriptor_iter_next): Update.
1140 (gdbpy_initialize_registers): Register new gdbarch data.
1142 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
1144 * linux-nat.c (stopped_pids): Make static.
1146 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
1149 * gdbtypes.c (ada_discrete_type_low_bound,
1150 ada_discrete_type_high_bound): Handle undefined bounds.
1152 2020-07-21 Kamil Rytarowski <n54@gmx.com>
1154 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
1156 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
1159 2020-07-20 John Baldwin <jhb@FreeBSD.org>
1161 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
1162 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
1163 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
1164 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
1165 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
1168 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1170 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
1171 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
1172 which are deprecated in Guile 3.0.
1173 * configure.ac (try_guile_versions): Add "guile-3.0".
1174 * configure (try_guile_versions): Regenerate.
1175 * NEWS: Update entry.
1177 2020-07-20 Ludovic Courtès <ludo@gnu.org>
1178 Doug Evans <dje@google.com>
1181 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
1182 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
1183 USING_GUILE_BEFORE_2_2.
1184 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
1185 Change type to 'scm_t_port_type *'.
1186 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
1187 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
1188 parameter and honor it. Update callers.
1189 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
1190 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
1192 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
1193 USING_GUILE_BEFORE_2_2.
1194 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
1195 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
1196 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
1197 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
1198 and 'SCM_PORT_TYPE'.
1199 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
1200 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
1201 (gdbscm_memory_port_read, gdbscm_memory_port_write)
1202 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
1203 [!USING_GUILE_BEFORE_2_2]: New functions.
1204 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
1205 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
1206 'gdbscm_memory_port_read'.
1207 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
1208 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
1209 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
1211 (ioscm_init_memory_port): Remove.
1212 (ioscm_init_memory_port_stream): New function
1213 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
1215 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1216 Return scm_from_uint (0).
1217 (gdbscm_set_memory_port_read_buffer_size_x)
1218 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1219 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
1220 Return scm_from_uint (0).
1221 (gdbscm_set_memory_port_write_buffer_size_x)
1222 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
1223 * configure.ac (try_guile_versions): Add "guile-2.2".
1224 * configure: Regenerate.
1227 2020-07-18 Tom Tromey <tom@tromey.com>
1229 * linux-nat.c (linux_multi_process): Remove.
1230 (linux_nat_target::supports_multi_process): Return true.
1232 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
1234 * arch/riscv.c (riscv_tdesc_cache): Change map type.
1235 (riscv_lookup_target_description): Return pointer out of
1237 * target-descriptions.c (allocate_target_description): Add
1239 (target_desc_deleter::operator()): Likewise.
1240 * target-descriptions.h (struct target_desc_deleter): Moved to
1242 (target_desc_up): Likewise.
1244 2020-07-17 Tom Tromey <tromey@adacore.com>
1246 * linux-nat.c (linux_nat_target::supports_non_stop)
1247 (linux_nat_target::always_non_stop_p): Use "true".
1248 (linux_nat_target::supports_disable_randomization): Use "true" and
1251 2020-07-16 Caroline Tice <cmtice@google.com>
1253 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
1254 (RNGLIST_HEADER_SIZE64): New constant definition.
1255 (struct dwop_section_names): Add rnglists_dwo.
1256 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
1257 (struct loclist_header): Rename to 'loclists_rnglists_header'.
1258 (struct dwo_sections): Add rnglists field.
1259 (read_attribut_reprocess): Add tag parameter.
1260 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
1261 (cu_debug_rnglists_section): New function (decl & definition).
1262 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
1263 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
1264 die whose range is being checked; get rnglist section from
1265 cu_debug_rnglists_section, to get from either objfile or dwo file as
1266 appropriate. Add cases for DW_RLE_base_addressx,
1267 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
1268 the base address to DW_RLE_offset_pairs (not to all ranges), moving
1269 test inside if-condition and updating complaint message.
1270 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
1271 dwarf2_rnglists_process.
1272 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
1273 dwarf2_ranges_process.
1274 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
1275 need_ranges_base and update comment appropriately. Also pass die tag
1276 to dwarf2_ranges_read.
1277 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
1278 need_ranges_base and update comment appropriately. Also pass die tag
1279 to dwarf2_ranges_process.
1280 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
1281 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
1282 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
1283 need_ranges_base and update comment appropriately. Also pass die tag
1284 to read_attribute_reprocess and dwarf2_ranges_read.
1285 (read_loclist_header): Rename function to read_loclists_rnglists_header,
1286 and update function comment appropriately.
1287 (read_loclist_index): Call read_loclists_rnglists_header instead of
1288 read_loclist_header.
1289 (read_rnglist_index): New function.
1290 (read_attribute_reprocess): Add tag parameter. Add code for
1291 DW_FORM_rnglistx, passing tag to read_rnglist_index.
1292 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
1294 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
1296 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
1299 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
1301 * arch-utils.c (show_architecture): Update formatting of messages.
1303 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1305 * gdbtypes.h (struct type) <bounds>: Handle array and string
1307 * ada-lang.c (assign_aggregate): Use type::bounds on
1309 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
1310 * c-varobj.c (c_number_of_children): Likewise.
1311 (c_describe_child): Likewise.
1312 * eval.c (evaluate_subexp_for_sizeof): Likewise.
1313 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
1314 (f_type_print_base): Likewise.
1315 * f-valprint.c (f77_array_offset_tbl): Likewise.
1316 (f77_get_upperbound): Likewise.
1317 (f77_print_array_1): Likewise.
1318 * guile/scm-type.c (gdbscm_type_range): Likewise.
1319 * m2-typeprint.c (m2_array): Likewise.
1320 (m2_is_long_set_of_type): Likewise.
1321 * m2-valprint.c (get_long_set_bounds): Likewise.
1322 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1323 * python/py-type.c (typy_range): Likewise.
1324 * rust-lang.c (rust_internal_print_type): Likewise.
1325 * type-stack.c (type_stack::follow_types): Likewise.
1326 * valarith.c (value_subscripted_rvalue): Likewise.
1327 * valops.c (value_cast): Likewise.
1329 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1331 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
1332 callers to use the equivalent accessor methods.
1334 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1336 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
1337 (struct type) <bit_stride>: New method.
1338 (TYPE_BIT_STRIDE): Remove.
1339 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
1341 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1343 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1344 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1345 callers to use the equivalent accessor methods instead.
1347 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1349 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1350 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1351 callers to use the equivalent accessor methods instead.
1353 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1355 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1356 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1357 to use dynamic_prop::kind.
1359 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1361 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1362 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1363 to get the bound property's kind and check against
1366 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1368 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1369 all callers to use type::range_bounds followed by
1370 dynamic_prop::{low,high}.
1372 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1374 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1375 const_val, set_const_val, baton, set_locexpr, set_loclist,
1376 set_addr_offset, variant_parts, set_variant_parts,
1377 original_type, set_original_type>: New methods.
1378 <kind>: Rename to...
1379 <m_kind>: ... this. Update all users to use the new methods
1381 <data>: Rename to...
1382 <m_data>: ... this. Update all users to use the new methods
1385 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1387 * gdbtypes.c (get_discrete_bounds): Return failure if
1388 the range type's bounds are not both defined and constant
1390 (get_array_bounds): Update comment. Remove undefined bound check.
1392 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1394 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1395 the type::bounds method directly.
1397 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1399 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1400 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1401 are used to set the range type's bounds to use set_bounds.
1403 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1405 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1407 2020-07-10 Pedro Alves <pedro@palves.net>
1409 * gdbthread.h (inferior_ref): Define.
1410 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1411 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1413 (scoped_restore_current_thread::restore):
1414 Adjust to gdb::ref_ptr.
1415 (scoped_restore_current_thread::~scoped_restore_current_thread):
1416 Remove manual decref handling.
1417 (scoped_restore_current_thread::scoped_restore_current_thread):
1419 inferior_ref::new_reference/thread_info_ref::new_reference.
1420 Incref the thread before calling get_frame_id instead of after.
1421 Let TARGET_CLOSE_ERROR propagate.
1423 2020-07-10 Pedro Alves <pedro@palves.net>
1425 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1426 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1427 NOT_AVAILABLE_ERROR.
1428 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1429 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1431 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1432 Pedro Alves <pedro@palves.net>
1435 * infrun.c (threads_are_resumed_pending_p): Delete.
1436 (do_target_wait): Remove threads_are_executing and
1437 threads_are_resumed_pending_p checks from the inferior_matches
1438 lambda. Update comments.
1440 2020-07-10 Pedro Alves <pedro@palves.net>
1443 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1446 2020-07-10 Pedro Alves <pedro@palves.net>
1449 * infrun.c (handle_no_resumed): Handle multiple targets.
1451 2020-07-10 Pedro Alves <pedro@palves.net>
1454 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1457 2020-07-10 Pedro Alves <pedro@palves.net>
1460 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1461 threads, not all threads.
1463 2020-07-10 Pedro Alves <pedro@palves.net>
1466 * remote.c (remote_target::open_1): Pass remote target pointer as
1467 data to create_async_event_handler.
1468 (remote_async_inferior_event_handler): Mark async event handler
1469 before returning if the remote target still has either pending
1470 events or unacknowledged notifications.
1472 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1474 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1476 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1479 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1481 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1484 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1486 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1487 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1488 AT_FREEBSD_PS_STRINGS.
1490 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1492 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1493 of debugfile path on Windows.
1495 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1497 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1500 2020-07-08 Tom Tromey <tromey@adacore.com>
1502 * ada-lang.c (ada_exception_message_1): Use read_memory.
1504 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1507 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1508 special handling for inline frames.
1509 * findvar.c (value_of_register_lazy): Skip inline frames when
1510 creating lazy register values.
1511 * frame.c (frame_id_computed_p): Delete definition.
1512 * frame.h (frame_id_computed_p): Delete declaration.
1514 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1516 * NEWS: Mention additions to Python API.
1517 * python/py-arch.c (archpy_register_groups): New function.
1518 (arch_object_methods): Add 'register_groups' method.
1519 * python/py-registers.c (reggroup_iterator_object): New struct.
1520 (reggroup_object): New struct.
1521 (gdbpy_new_reggroup): New function.
1522 (gdbpy_reggroup_to_string): New function.
1523 (gdbpy_reggroup_name): New function.
1524 (gdbpy_reggroup_iter): New function.
1525 (gdbpy_reggroup_iter_next): New function.
1526 (gdbpy_new_reggroup_iterator): New function
1527 (gdbpy_initialize_registers): Register new types.
1528 (reggroup_iterator_object_type): Define new Python type.
1529 (gdbpy_reggroup_getset): New static global.
1530 (reggroup_object_type): Define new Python type.
1531 * python/python-internal.h
1533 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1535 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1536 * python/py-arch.c (archpy_registers): New function.
1537 (arch_object_methods): Add 'registers' method.
1538 * python/py-registers.c: New file.
1539 * python/python-internal.h
1540 (gdbpy_new_register_descriptor_iterator): Declare.
1541 (gdbpy_initialize_registers): Declare.
1542 * python/python.c (do_start_initialization): Call
1543 gdbpy_initialize_registers.
1544 * NEWS: Mention additions to the Python API.
1546 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1548 * NEWS: Mention new Python API method.
1549 * python/py-unwind.c (pending_framepy_architecture): New function.
1550 (pending_frame_object_methods): Add architecture method.
1552 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1554 * gdbarch.c: Regenerate.
1555 * gdbarch.h: Regenerate.
1556 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1557 (gdbarch_data): Use internal_error for the case where
1558 deprecated_set_gdbarch_data was originally needed.
1559 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1560 and use passed in obstack.
1561 (libunwind_frame_set_descr): Should no longer get back NULL from
1563 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1565 * user-regs.c (user_regs_init): Update parameters, and use passed
1567 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1568 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1570 2020-07-06 Tom de Vries <tdevries@suse.de>
1572 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1573 End-Of-Sequence in lte_is_less_than.
1574 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1575 "gdb: Don't reorder line table entries too much when sorting".
1577 2020-07-06 Tom de Vries <tdevries@suse.de>
1580 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1582 2020-07-05 Tom de Vries <tdevries@suse.de>
1585 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1586 std::uncaught_exceptions instead of deprecated
1587 std::uncaught_exception.
1589 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1591 * macroexp.h (macro_stringify): Return
1592 gdb::unique_xmalloc_ptr<char>.
1593 * macroexp.c (macro_stringify): Likewise.
1594 * macrotab.c (fixup_definition): Update.
1596 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1598 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1599 (lex_one_token): Update.
1600 * macroexp.c (struct macro_buffer) <release>: Return
1601 gdb::unique_xmalloc_ptr<char>.
1602 (macro_stringify): Update.
1603 (macro_expand): Update.
1604 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1605 * macroexp.h (macro_expand_next): Likewise.
1607 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1609 * macroexp.h (macro_lookup_ftype): Remove.
1610 (macro_expand, macro_expand_once, macro_expand_next): Remove
1611 lookup function parameters, add scope parameter.
1612 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1613 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1614 * macroscope.h (standard_macro_lookup): Change parameter type
1616 * macroscope.c (standard_macro_lookup): Likewise.
1617 * c-exp.y (lex_one_token): Update.
1618 * macrocmd.c (macro_expand_command): Likewise.
1619 (macro_expand_once_command): Likewise.
1621 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1623 * inf-loop.c (inferior_event_handler): Remove client_data param.
1624 * inf-loop.h (inferior_event_handler): Likewise.
1625 * infcmd.c (step_1): Adjust.
1626 * infrun.c (proceed): Adjust.
1627 (fetch_inferior_event): Remove client_data param.
1628 (infrun_async_inferior_event_handler): Adjust.
1629 * infrun.h (fetch_inferior_event): Remove `void *` param.
1630 * linux-nat.c (handle_target_event): Adjust.
1631 * record-btrace.c (record_btrace_handle_async_inferior_event):
1633 * record-full.c (record_full_async_inferior_event_handler):
1635 * remote.c (remote_async_inferior_event_handler): Adjust.
1637 2020-07-01 Tom Tromey <tom@tromey.com>
1639 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1640 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1642 2020-07-01 Tom Tromey <tom@tromey.com>
1644 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1646 (tui_win_info::make_window): Merge with
1647 tui_gen_win_info::make_window.
1648 (tui_win_info::make_visible): Move from tui_gen_win_info.
1649 * tui/tui-win.c (tui_win_info::max_width): Move from
1651 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1653 <window_factory>: Likewise.
1654 * tui/tui-layout.c (tui_win_info::resize): Move from
1656 (make_standard_window): Change return type.
1657 (get_locator_window, tui_get_window_by_name): Likewise.
1658 (tui_layout_window::apply): Remove a cast.
1659 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1660 (struct tui_win_info): Merge with tui_gen_win_info.
1661 (struct tui_gen_win_info): Remove.
1663 2020-07-01 Tom Tromey <tom@tromey.com>
1665 * tui/tui-stack.h (struct tui_locator_window): Derive from
1667 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1668 <can_box>: New method.
1670 2020-07-01 Tom Tromey <tom@tromey.com>
1672 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1674 2020-07-01 Tom Tromey <tom@tromey.com>
1676 * tui/tui-regs.c (tui_data_window::display_registers_from)
1677 (tui_data_window::display_registers_from)
1678 (tui_data_window::first_data_item_displayed)
1679 (tui_data_window::delete_data_content_windows): Update.
1680 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1682 (tui_data_window::check_register_values): Update.
1683 (tui_data_item_window::rerender): Add parameters. Update.
1684 (tui_data_item_window::refresh_window): Remove.
1685 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1687 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1689 <refresh_window, max_height, min_height>: Remove.
1690 <rerender>: Add parameters.
1691 <x, y, visible>: New members.
1692 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1693 <m_item_width>: New member.
1695 2020-07-01 Tom Tromey <tom@tromey.com>
1697 * tui/tui-regs.c (tui_data_window::show_register_group)
1698 (tui_data_window::check_register_values): Update.
1699 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1702 2020-07-01 Tom Tromey <tom@tromey.com>
1704 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1707 2020-07-01 Tom Tromey <tom@tromey.com>
1709 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1710 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1712 2020-07-01 Tom Tromey <tom@tromey.com>
1714 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1715 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1716 (struct tui_line_or_address): Move from tui-data.h.
1717 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1718 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1719 (tui_cmd_window, tui_source_window_base, tui_source_window)
1720 (tui_disasm_window): Don't declare.
1721 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1723 (SINGLE_KEY): Move to tui-stack.c.
1725 2020-07-01 Tom Tromey <tom@tromey.com>
1727 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1729 * tui/tui-regs.c (class tab_expansion_file): New.
1730 (tab_expansion_file::write): New method.
1731 (tui_register_format): Change return type. Use
1733 (tui_get_register, tui_data_window::display_registers_from)
1734 (tui_data_item_window::rerender): Update.
1735 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1736 * tui/tui-io.c (tui_expand_tabs): Remove.
1738 2020-07-01 Tom Tromey <tom@tromey.com>
1740 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1742 2020-07-01 Fangrui Song <maskray@google.com>
1744 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1746 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1748 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1749 forms for DW_AT_associated and DW_AT_allocated attributes,
1750 which is already checked in function attr_to_dynamic_prop.
1752 2020-06-30 Tom Tromey <tromey@adacore.com>
1754 * dwarf2/read.c (quirk_rust_enum): Correctly call
1755 alloc_rust_variant for default-less enum.
1757 2020-06-30 Tom Tromey <tromey@adacore.com>
1760 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1763 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1765 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1766 * gdbarch.h: Re-generate.
1768 2020-06-28 Tom Tromey <tom@tromey.com>
1770 * command.h (cmd_types): Remove.
1771 (cmd_type): Don't declare.
1772 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1774 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1775 * cli/cli-decode.c (cmd_type): Remove.
1777 2020-06-27 Pedro Alves <palves@redhat.com>
1779 * fork-child.c (prefork_hook): Adjust.
1780 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1782 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1783 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1784 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1785 Remove declarations.
1786 (struct inferior) <set_tty, tty>: New methods.
1787 (struct inferior) <terminal>: Rename to ...
1788 (struct inferior) <m_terminal>: ... this and make private.
1789 * main.c (captured_main_1): Adjust.
1790 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1791 (mi_cmd_inferior_tty_show): Adjust.
1792 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1793 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1795 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1797 * configure.ac: Add --enable-libctf: handle --disable-static
1799 * acinclude.m4: sinclude ../config/enable.m4.
1800 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1801 (LIBCTF): Substitute in.
1802 (CTF_DEPS): New, likewise.
1803 (CLIBS): libctf needs symbols from libbfd: move earlier.
1804 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1806 * ctfread.c: Surround in ENABLE_LIBCTF.
1807 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1808 * configure: Regenerate.
1809 * config.in: Likewise.
1811 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1813 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1815 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1817 * inferior.h (struct inferior) <terminal>: Change type to
1818 gdb::unique_xmalloc_ptr<char>.
1819 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1820 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1821 field, adjust to unique pointer.
1822 (get_inferior_io_terminal): Adjust to unique pointer.
1824 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1826 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1827 registers, not just the known core set of registers.
1829 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1831 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1832 fflags, frm, and fcsr registers.
1833 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1835 (riscv_tdesc_unknown_reg): New function.
1836 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1837 tdesc_use_registers.
1838 * riscv-tdep.h (struct gdbarch_tdep): Add
1839 unknown_csrs_first_regnum, unknown_csrs_count,
1840 duplicate_fflags_regnum, duplicate_frm_regnum, and
1841 duplicate_fcsr_regnum fields.
1843 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1845 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1846 callback, use the callback (when not null) to help number unknown
1848 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1849 (tdesc_use_registers): Add extra parameter to declaration.
1851 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1853 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1855 (class riscv_pending_register_alias): Likewise.
1856 (riscv_register_feature::register_info): Change 'required_p' field
1857 to 'required', and change its type. Add 'check' member function.
1858 (riscv_register_feature::register_info::check): Define new member
1860 (riscv_xreg_feature): Change initialisation of 'required' field.
1861 (riscv_freg_feature): Likewise.
1862 (riscv_virtual_feature): Likewise.
1863 (riscv_csr_feature): Likewise.
1864 (riscv_check_tdesc_feature): Take extra parameter, the csr
1865 tdesc_feature, rewrite the function to use the new
1866 riscv_register_feature::register_info::check function.
1867 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1869 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1871 * features/Makefile: Remove all references to the deleted files
1873 * features/riscv/32bit-csr.c: Deleted.
1874 * features/riscv/32bit-csr.xml: Deleted.
1875 * features/riscv/64bit-csr.c: Deleted.
1876 * features/riscv/64bit-csr.xml: Deleted.
1877 * features/riscv/rebuild-csr-xml.sh: Deleted.
1879 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1881 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1882 whitespace error for declaration of names member variable.
1883 (struct riscv_register_feature): Add new prefer_first_name member
1884 variable, and fix whitespace error in declaration of registers.
1885 (riscv_xreg_feature): Initialize prefer_first_name field.
1886 (riscv_freg_feature): Likewise.
1887 (riscv_virtual_feature): Likewise.
1888 (riscv_csr_feature): Likewise.
1889 (riscv_register_name): Expand on comments. Remove register name
1890 modifications for CSR and virtual registers.
1892 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1894 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1897 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1899 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1901 (class riscv_pending_register_alias): New class.
1902 (riscv_check_tdesc_feature): Take vector of pending aliases and
1903 populate it as appropriate.
1904 (riscv_setup_register_aliases): Delete.
1905 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1906 to riscv_check_tdesc_feature in all cases. Use the vector to
1907 create the register aliases.
1909 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1911 * sol2-tdep.c (sol2_static_transform_name): Remove.
1912 (sol2_init_abi): Don't register it.
1913 * gdbarch.sh (static_transform_name): Remove.
1914 * gdbarch.c, gdbarch.h: Regenerate.
1916 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1917 gdbarch_static_transform_name.
1918 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1919 * stabsread.c (define_symbol) <'X'>: Remove.
1920 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1923 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1924 <'S'>: Remove call to gdbarch_static_transform_name.
1926 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1928 * procfs.c (procfs_pre_trace): New function.
1929 (procfs_target::create_inferior): Pass it to fork_inferior.
1931 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1933 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1934 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1935 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1936 sol2-tdep.o, sparc-sol2-tdep.o.
1937 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1938 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1939 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1940 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1942 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1944 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1945 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1947 Remove calls to set_gdbarch_skip_solib_resolver,
1948 set_gdbarch_core_pid_to_str.
1949 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1950 (i386_sol2_static_transform_name): Remove.
1951 (i386_sol2_init_abi): Call sol2_init_abi.
1952 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1953 set_gdbarch_static_transform_name,
1954 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1955 Use sol2_sigtramp_p.
1956 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1957 (sol2_sigtramp_p): New function.
1958 (sol2_static_transform_name): New function.
1959 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1960 (sol2_init_abi): New function.
1961 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1962 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1963 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1964 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1965 (sparc_sol2_static_transform_name): Remove.
1966 (sparc32_sol2_init_abi): Call sol2_init_abi.
1967 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1968 set_gdbarch_static_transform_name,
1969 set_gdbarch_skip_solib_resolver,
1970 set_gdbarch_core_pid_to_str.
1971 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1972 (sparc_sol2_static_transform_name): Remove
1973 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1974 call sol2_sigtramp_p.
1975 (sparc64_sol2_init_abi): Call sol2_init_abi.
1976 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1977 set_gdbarch_static_transform_name,
1978 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1980 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1982 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1983 * exec.c (validate_exec_file): If from_tty, set both
1984 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1985 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1986 and from_tty, unconditionally ask a confirmation.
1988 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1990 * target-descriptions.c (tdesc_architecture_name): Protect against
1991 NULL pointer dereference.
1992 (maint_print_xml_tdesc_cmd): New function.
1993 (_initialize_target_descriptions): Register new 'maint print
1994 xml-tdesc' command and give it the filename completer.
1995 * NEWS: Mention new 'maint print xml-tdesc' command.
1997 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1999 * target-descriptions.c (class tdesc_compatible_info): New class.
2000 (struct target_desc): Change type of compatible vector.
2001 (tdesc_compatible_p): Update for change in type of
2002 target_desc::compatible.
2003 (tdesc_compatible_info_list): New function.
2004 (tdesc_compatible_info_arch_name): New function.
2005 (tdesc_add_compatible): Update for change in type of
2006 target_desc::compatible.
2007 (print_c_tdesc::visit_pre): Likewise.
2009 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2011 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
2012 whitespace to underscore.
2013 (maint_print_c_tdesc_cmd): Use fake filename for target
2014 descriptions that came from the target.
2015 (_initialize_target_descriptions): Add filename command completion
2016 for 'maint print c-tdesc'.
2018 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2020 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
2023 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
2025 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
2027 (dwarf2_find_location_expression): Likewise.
2028 (call_site_parameter_matches): Likewise.
2029 (dwarf2_compile_expr_to_ax): Likewise.
2030 (disassemble_dwarf_expression): Likewise.
2031 (loclist_describe_location): Likewise.
2033 2020-06-23 Pedro Alves <palves@redhat.com>
2035 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
2036 progspace-and-thread.h. Include scoped-mock-context.h instead.
2037 (register_to_value_test): Use scoped_mock_context.
2038 * regcache.c: Include "scoped-mock-context.h".
2039 (cooked_read_test): Don't error out if a target is already pushed.
2040 Use scoped_mock_context. Adjust.
2041 * scoped-mock-context.h: New file.
2043 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2045 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
2047 (ada_language::is_string_type_p): New member function.
2048 * c-lang.c (c_language_data): Delete la_is_string_type_p
2050 (cplus_language_data): Likewise.
2051 (asm_language_data): Likewise.
2052 (minimal_language_data): Likewise.
2053 * d-lang.c (d_language_data): Likewise.
2054 * f-lang.c (f_is_string_type_p): Delete function, implementation
2055 moved to f_language::is_string_type_p.
2056 (f_language_data): Delete la_is_string_type_p initializer.
2057 (f_language::is_string_type_p): New member function,
2058 implementation from f_is_string_type_p.
2059 * go-lang.c (go_is_string_type_p): Delete function, implementation
2060 moved to go_language::is_string_type_p.
2061 (go_language_data): Delete la_is_string_type_p initializer.
2062 (go_language::is_string_type_p): New member function,
2063 implementation from go_is_string_type_p.
2064 * language.c (language_defn::is_string_type_p): Define new member
2066 (default_is_string_type_p): Make static, add comment copied from
2068 (unknown_language_data): Delete la_is_string_type_p initializer.
2069 (unknown_language::is_string_type_p): New member function.
2070 (auto_language_data): Delete la_is_string_type_p initializer.
2071 (auto_language::is_string_type_p): New member function.
2072 * language.h (language_data): Delete la_is_string_type_p field.
2073 (language_defn::is_string_type_p): Declare new function.
2074 (default_is_string_type_p): Delete desclaration, move comment to
2076 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
2077 moved to m2_language::is_string_type_p.
2078 (m2_language_data): Delete la_is_string_type_p initializer.
2079 (m2_language::is_string_type_p): New member function,
2080 implementation from m2_is_string_type_p.
2081 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
2083 * opencl-lang.c (opencl_language_data): Likewise.
2084 * p-lang.c (pascal_is_string_type_p): Delete function,
2085 implementation moved to pascal_language::is_string_type_p.
2086 (pascal_language_data): Delete la_is_string_type_p initializer.
2087 (pascal_language::is_string_type_p): New member function,
2088 implementation from pascal_is_string_type_p.
2089 * rust-lang.c (rust_is_string_type_p): Delete function,
2090 implementation moved to rust_language::is_string_type_p.
2091 (rust_language_data): Delete la_is_string_type_p initializer.
2092 (rust_language::is_string_type_p): New member function,
2093 implementation from rust_is_string_type_p.
2094 * valprint.c (val_print_scalar_or_string_type_p): Update call to
2097 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2099 * ada-lang.c (ada_language_data): Delete la_print_typedef
2101 (ada_language::print_typedef): New member function.
2102 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
2103 (cplus_language_data): Likewise.
2104 (asm_language_data): Likewise.
2105 (minimal_language_data): Likewise.
2106 * d-lang.c (d_language_data): Likewise.
2107 * f-lang.c (f_language_data): Likewise.
2108 (f_language::print_typedef): New member function.
2109 * go-lang.c (go_language_data): Delete la_print_typedef
2111 * language.c (language_defn::print_typedef): Define member
2113 (unknown_language_data): Delete la_print_typedef initializer.
2114 (unknown_language::print_typedef): New member function.
2115 (auto_language_data): Delete la_print_typedef initializer.
2116 (auto_language::print_typedef): New member function.
2117 * language.h (language_data): Delete la_print_typedef field.
2118 (language_defn::print_typedef): Declare new member function.
2119 (LA_PRINT_TYPEDEF): Update call to print_typedef.
2120 (default_print_typedef): Delete declaration.
2121 * m2-lang.c (m2_language_data): Delete la_print_typedef
2123 (m2_language::print_typedef): New member function.
2124 * objc-lang.c (objc_language_data): Delete la_print_typedef
2126 * opencl-lang.c (opencl_language_data): Likewise.
2127 * p-lang.c (pascal_language_data): Likewise.
2128 (pascal_language::print_typedef): New member function.
2129 * rust-lang.c (rust_print_typedef): Delete function,
2130 implementation moved to rust_language::print_typedef.
2131 (rust_language): Delete la_print_typedef initializer.
2132 (rust_language::print_typedef): New member function,
2133 implementation from rust_print_typedef.
2134 * typeprint.c (default_print_typedef): Delete.
2136 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2138 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
2139 (ada_language::printstr): New member function.
2140 * c-lang.c (c_language_data): Delete la_printstr initializer.
2141 (cplus_language_data): Likewise.
2142 (asm_language_data): Likewise.
2143 (minimal_language_data): Likewise.
2144 * d-lang.c (d_language_data): Likewise.
2145 * f-lang.c (f_printstr): Rename to f_language::printstr.
2146 (f_language_data): Delete la_printstr initializer.
2147 (f_language::printstr): New member function, implementation from
2149 * go-lang.c (go_language_data): Delete la_printstr initializer.
2150 * language.c (language_defn::printstr): Define new member
2152 (unk_lang_printstr): Delete.
2153 (unknown_language_data): Delete la_printstr initializer.
2154 (unknown_language::printstr): New member function.
2155 (auto_language_data): Delete la_printstr initializer.
2156 (auto_language::printstr): New member function.
2157 * language.h (language_data): Delete la_printstr field.
2158 (language_defn::printstr): Declare new member function.
2159 (LA_PRINT_STRING): Update call to printstr.
2160 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
2161 (m2_language_data): Delete la_printstr initializer.
2162 (m2_language::printstr): New member function, implementation from
2164 * objc-lang.c (objc_language_data): Delete la_printstr
2166 * opencl-lang.c (opencl_language_data): Likewise.
2167 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
2168 (pascal_language_data): Delete la_printstr initializer.
2169 (pascal_language::printstr): New member function, implementation
2170 from pascal_printstr.
2171 * p-lang.h (pascal_printstr): Delete declaration.
2172 * rust-lang.c (rust_printstr): Update header comment.
2173 (rust_language_data): Delete la_printstr initializer.
2174 (rust_language::printstr): New member function.
2176 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2178 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
2179 (ada_language::printchar): New member function.
2180 * c-lang.c (c_language_data): Delete la_printchar initializer.
2181 (cplus_language_data): Likewise.
2182 (asm_language_data): Likewise.
2183 (minimal_language_data): Likewise.
2184 * d-lang.c (d_language_data): Likewise.
2185 * f-lang.c (f_printchar): Rename to f_language::printchar.
2186 (f_language_data): Delete la_printchar initializer.
2187 (f_language::printchar): New member function, implementation from
2189 * go-lang.c (go_language_data): Delete la_printchar initializer.
2190 * language.c (unk_lang_printchar): Delete.
2191 (language_defn::printchar): Define new member function.
2192 (unknown_language_data): Delete la_printchar initializer.
2193 (unknown_language::printchar): New member function.
2194 (auto_language_data): Delete la_printchar initializer.
2195 (auto_language::printchar): New member function.
2196 * language.h (language_data): Delete la_printchar field.
2197 (language_defn::printchar): Declare new member function.
2198 (LA_PRINT_CHAR): Update call to printchar.
2199 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
2200 (m2_language::printchar): New member function.
2201 * objc-lang.c (objc_language_data): Delete la_printchar
2203 * opencl-lang.c (opencl_language_data): Likewise.
2204 * p-lang.c (pascal_language_data): Delete la_printchar
2206 (pascal_language::printchar): New member function.
2207 * rust-lang.c (rust_printchar): Rename to
2208 rust_language::printchar.
2209 (rust_language_data): Delete la_printchar initializer.
2210 (rust_language::printchar): New member function, implementation
2211 from rust_printchar.
2213 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2215 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
2216 (ada_language_data): Delete la_emitchar initializer.
2217 (ada_language::emitchar): New member function, implementation from
2219 * c-lang.c (c_language_data): Delete la_emitchar initializer.
2220 (cplus_language_data): Likewise.
2221 (asm_language_data): Likewise.
2222 (minimal_language_data): Likewise.
2223 * d-lang.c (d_language_data): Likewise.
2224 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
2225 (f_language_data): Delete la_emitchar initializer.
2226 (f_language::emitchar): New member function, implementation from
2228 * go-lang.c (go_language_data): Delete la_emitchar initializer.
2229 * language.c (unk_lang_emit_char): Delete.
2230 (language_defn::emitchar): New member function definition.
2231 (unknown_language_data): Delete la_emitchar initializer.
2232 (unknown_language::emitchar): New member function.
2233 (auto_language_data): Delete la_emitchar initializer.
2234 (auto_language::emitchar): New member function.
2235 * language.h (language_data): Delete la_emitchar field.
2236 (language_defn::emitchar): New member field declaration.
2237 (LA_EMIT_CHAR): Update call to emitchar.
2238 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
2239 (m2_language_data): Delete la_emitchar initializer.
2240 (m2_language::emitchar): New member function, implementation from
2242 * objc-lang.c (objc_language_data): Delete la_emitchar
2244 * opencl-lang.c (opencl_language_data): Likewise.
2245 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
2246 (pascal_language_data): Delete la_emitchar initializer.
2247 (pascal_language::emitchar): New member function, implementation
2248 from pascal_emit_char.
2249 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
2250 (rust_language_data): Delete la_emitchar initializer.
2251 (rust_language::emitchar): New member function, implementation
2254 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2256 * ada-lang.c (resolve): Rename to ada_language::post_parser.
2257 (ada_language_data): Delete la_post_parser initializer.
2258 (ada_language::post_parser): New member function.
2259 * c-lang.c (c_language_data): Delete la_post_parser initializer.
2260 (cplus_language_data): Likewise.
2261 (asm_language_data): Likewise.
2262 (minimal_language_data): Likewise.
2263 * d-lang.c (d_language_data): Likewise.
2264 * f-lang.c (f_language_data): Likewise.
2265 * go-lang.c (go_language_data): Likewise.
2266 * language.c (unknown_language_data): Likewise.
2267 (auto_language_data): Likewise.
2268 * language.h (language_data): Delete la_post_parser field.
2269 (language_defn::post_parser): New member function.
2270 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
2271 * objc-lang.c (objc_language_data): Likewise.
2272 * opencl-lang.c (opencl_language_data): Likewise.
2273 * p-lang.c (pascal_language_data): Likewise.
2274 * parse.c (parse_exp_in_context): Update call to post_parser.
2275 (null_post_parser): Delete definition.
2276 * parser-defs.h (null_post_parser): Delete declaration.
2277 * rust-lang.c (rust_language_data): Delete la_post_parser
2280 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2282 * ada-lang.c (parse): Rename to ada_language::parser.
2283 (ada_language_data): Delete la_parser initializer.
2284 (ada_language::parser): New member function, implementation from
2286 * c-lang.c (c_language_data): Delete la_parser initializer.
2287 (cplus_language_data): Likewise.
2288 (asm_language_data): Likewise.
2289 (minimal_language_data): Likewise.
2290 * d-lang.c (d_language_data): Likewise.
2291 (d_language::parser): New member function.
2292 * f-lang.c (f_language_data): Delete la_parser initializer.
2293 (f_language::parser): New member function.
2294 * go-lang.c (go_language_data): Delete la_parser initializer.
2295 (go_language::parser): New member function.
2296 * language.c (unk_lang_parser): Delete.
2297 (language_defn::parser): Define new member function.
2298 (unknown_language_data): Delete la_parser initializer.
2299 (unknown_language::parser): New member function.
2300 (auto_language_data): Delete la_parser initializer.
2301 (auto_language::parser): New member function.
2302 * language.h (language_data): Delete la_parser field.
2303 (language_defn::parser): Declare new member function.
2304 * m2-lang.c (m2_language_data): Delete la_parser initializer.
2305 (m2_language::parser): New member function.
2306 * objc-lang.c (objc_language_data): Delete la_parser initializer.
2307 * opencl-lang.c (opencl_language_data): Likewise.
2308 * p-lang.c (pascal_language_data): Likewise.
2309 (pascal_language::parser): New member function.
2310 * parse.c (parse_exp_in_context): Update call to parser.
2311 * rust-lang.c (rust_language_data): Delete la_parser initializer.
2312 (rust_language::parser): New member function.
2314 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
2316 * top.c (print_gdb_configuration): Print --with-python-libdir
2317 configuration value.
2319 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2321 * NEWS: Mention change to the alias command.
2323 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2325 * cli/cli-cmds.c (lookup_cmd_for_default_args)
2326 (alias_command_completer)
2327 (make_alias_options_def_group): New functions.
2328 (alias_opts, alias_option_defs): New struct and array.
2329 (alias_usage_error): Update usage.
2330 (alias_command): Handles optional DEFAULT-ARGS... arguments.
2331 Use option framework.
2332 (_initialize_cli_cmds): Update alias command help.
2333 Update aliases command help.
2335 Add NULL for new default_args lookup_cmd argument.
2336 (valid_command_p): Rename to validate_aliased_command.
2337 Add NULL for new default_args lookup_cmd argument. Verify that the
2338 aliased_command has no default args.
2339 * cli/cli-decode.c (help_cmd): Show aliases definitions.
2340 (lookup_cmd_1, lookup_cmd): New argument default_args.
2342 Add NULL for new default_args lookup_cmd argument.
2343 (print_help_for_command): Show default args under the layout
2344 alias some_alias = some_aliased_cmd some_alias_default_arg.
2345 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2346 xfree default_args in destructor.
2347 * cli/cli-script.c (process_next_line, do_define_command):
2348 Add NULL for new default_args lookup_cmd argument.
2349 * command.h: Declare new default_args argument in lookup_cmd
2351 * completer.c (complete_line_internal_1):
2352 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2353 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2354 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2356 * infcmd.c (_initialize_infcmd): Likewise.
2357 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2358 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2359 * python/py-param.c (add_setshow_generic): Likewise.
2360 * remote.c (_initialize_remote): Likewise.
2361 * top.c (execute_command): Prepend default_args if command has some.
2363 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2364 * tracepoint.c (validate_actionline, encode_actions_1):
2365 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2367 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2369 * jit.c (jit_read_descriptor): Use bool as the return type.
2370 (jit_breakpoint_re_set_internal): Use bool as the return type.
2371 Invert the return value logic; return true if the jit breakpoint
2372 has been successfully initialized.
2373 (jit_inferior_init): Update the call to
2374 jit_breakpoint_re_set_internal.
2376 2020-06-22 Pedro Alves <palves@redhat.com>
2379 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2380 Use the current inferior instead. Don't return
2381 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2383 * sol-thread.c (sol_thread_target::wait): Don't reference
2385 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2386 (sol_update_thread_list_callback): Use the current inferior's pid
2387 instead of inferior_ptid.
2389 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2391 * procfs.c: Cleanup many comments.
2393 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2394 (AFTER_WATCHFLAG): Replace by value.
2396 (MAIN_PROC_NAME_FORMAT): Inline ...
2397 (create_procinfo): ... here.
2399 (procfs_debug_inferior): Remove SYS_exec handling.
2400 (syscall_is_exec): Likewise.
2401 (procfs_set_exec_trap): Likewise.
2403 (syscall_is_lwp_exit): Inline in callers.
2404 (syscall_is_exit): Likewise.
2405 (syscall_is_exec): Likewise.
2406 (syscall_is_lwp_create): Likewise.
2408 (invalidate_cache): Remove #if 0 code.
2410 (make_signal_thread_runnable): Remove.
2411 (procfs_target::resume): Remove #if 0 code.
2413 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2416 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2418 (procfs_target::create_inferior): ... here.
2420 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2422 * exec.c (validate_exec_file): Ensure the build-id is up to
2423 date by calling reopen_exec_file (that checks file timestamp
2424 to decide to re-read the file).
2426 2020-06-18 Pedro Alves <palves@redhat.com>
2429 * gdbthread.h (delete_thread, delete_thread_silent)
2430 (find_thread_ptid): Update comments.
2431 * thread.c (current_thread_): New global.
2432 (is_current_thread): Move higher, and reimplement.
2433 (inferior_thread): Reimplement.
2434 (set_thread_exited): Use bool. Add assertions.
2435 (add_thread_silent): Simplify thread-reuse handling by always
2436 calling delete_thread.
2437 (delete_thread): Remove intro comment.
2438 (find_thread_ptid): Skip exited threads.
2439 (switch_to_thread_no_regs): Write to current_thread_.
2440 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2441 INFERIOR_PTID. Clear current_thread_.
2443 2020-06-18 Pedro Alves <palves@redhat.com>
2445 * aix-thread.c (pd_update): Use switch_to_thread.
2447 2020-06-18 Pedro Alves <palves@redhat.com>
2449 * ravenscar-thread.c (ravenscar_thread_target): Update.
2450 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2451 (ravenscar_thread_target::add_active_thread): ... this. Don't
2452 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2453 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2455 2020-06-18 Pedro Alves <palves@redhat.com>
2457 * nat/windows-nat.c (current_windows_thread): Remove.
2458 * nat/windows-nat.h (current_windows_thread): Remove.
2459 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2461 (display_selectors): Adjust to fetch the current
2462 windows_thread_info based on inferior_ptid.
2463 (fake_create_process): No longer write to current_windows_thread.
2464 (windows_nat_target::get_windows_debug_event):
2465 Don't set inferior_ptid or current_windows_thread.
2466 (windows_nat_target::wait): Adjust to not rely on
2467 current_windows_thread.
2468 (do_initial_windows_stuff): Now a method of windows_nat_target.
2469 Switch to the last_ptid thread.
2470 (windows_nat_target::attach): Adjust.
2471 (windows_nat_target::detach): Use switch_to_no_thread instead of
2472 writing to inferior_ptid directly.
2473 (windows_nat_target::create_inferior): Adjust.
2475 2020-06-18 Pedro Alves <palves@redhat.com>
2477 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2479 2020-06-18 Pedro Alves <palves@redhat.com>
2481 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2482 after creating it, instead of writing to inferior_ptid. Don't
2483 write to inferior_ptid.
2485 2020-06-18 Pedro Alves <palves@redhat.com>
2487 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2489 2020-06-18 Pedro Alves <palves@redhat.com>
2491 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2492 it, instead of writing to inferior_ptid.
2494 2020-06-18 Pedro Alves <palves@redhat.com>
2496 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2499 2020-06-18 Pedro Alves <palves@redhat.com>
2501 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2502 instead of writing to inferior_ptid directly.
2504 2020-06-18 Pedro Alves <palves@redhat.com>
2506 * corelow.c (core_target::close): Use switch_to_no_thread instead
2507 of writing to inferior_ptid directly.
2508 (add_to_thread_list, core_target_open): Use switch_to_thread
2509 instead of writing to inferior_ptid directly.
2511 2020-06-18 Pedro Alves <palves@redhat.com>
2513 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2515 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2517 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2518 inferior_ptid directly.
2519 (darwin_nat_target::init_thread_list): Switch to thread, instead
2520 of writing to inferior_ptid.
2521 (darwin_nat_target::attach): Don't write to inferior_ptid.
2522 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2524 2020-06-18 Pedro Alves <palves@redhat.com>
2526 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2528 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2529 Instead use switch_to_thread.
2530 (gnu_nat_target::detach): Use switch_to_no_thread
2531 instead of writing to inferior_ptid directly. Used passed-in
2532 inferior instead of looking up the inferior by pid.
2534 2020-06-18 Pedro Alves <palves@redhat.com>
2536 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2539 2020-06-18 Pedro Alves <palves@redhat.com>
2541 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2543 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2545 (nto_procfs_target::detach): Avoid referencing
2546 inferior_ptid. Use switch_to_no_thread instead of writing to
2547 inferior_ptid directly.
2548 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2549 instead of writing to inferior_ptid directly.
2550 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2553 2020-06-18 Pedro Alves <palves@redhat.com>
2555 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2556 after creating it, instead of writing to inferior_ptid.
2557 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2558 to inferior_ptid directly.
2559 (gdbsim_target::wait): Don't write to inferior_ptid.
2561 2020-06-18 Pedro Alves <palves@redhat.com>
2563 * remote.c (remote_target::remote_notice_new_inferior): Use
2564 switch_to_thread instead of writing to inferior_ptid directly.
2565 (remote_target::add_current_inferior_and_thread): Use
2566 switch_to_no_thread instead of writing to inferior_ptid directly.
2567 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2568 and switch_to_thread instead of using set_current_inferior or
2569 writing to inferior_ptid directly.
2571 2020-06-18 Pedro Alves <palves@redhat.com>
2573 * tracectf.c (ctf_target_open): Switch to added thread instead of
2574 writing to inferior_ptid directly.
2575 (ctf_target::close): Use switch_to_no_thread instead of writing to
2576 inferior_ptid directly.
2578 2020-06-18 Pedro Alves <palves@redhat.com>
2580 * tracefile-tfile.c (tfile_target_open): Don't write to
2581 inferior_ptid directly, instead switch to added thread.
2582 (tfile_target::close): Use switch_to_no_thread instead of writing
2583 to inferior_ptid directly.
2585 2020-06-18 Pedro Alves <palves@redhat.com>
2587 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2588 (procfs_target::detach): Use switch_to_no_thread
2589 instead of writing to inferior_ptid directly.
2590 (do_attach): Change return type to void. Switch to the added
2592 (procfs_target::create_inferior): Switch to the added thread.
2593 (procfs_do_thread_registers): Don't write to inferior_ptid.
2595 2020-06-18 Pedro Alves <palves@redhat.com>
2597 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2598 of writing to inferior_ptid.
2599 (scoped_restore_exited_inferior): Delete.
2600 (handle_vfork_child_exec_or_exit): Simplify using
2601 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2602 instead of writing to inferior_ptid.
2603 (THREAD_STOPPED_BY): Delete.
2604 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2605 (thread_stopped_by_hw_breakpoint): Delete.
2606 (save_waitstatus): Use
2607 scoped_restore_current_thread+switch_to_thread, and call
2608 target_stopped_by_watchpoint instead of
2609 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2610 instead of thread_stopped_by_sw_breakpoint, and
2611 target_stopped_by_hw_breakpoint instead of
2612 thread_stopped_by_hw_breakpoint.
2613 (handle_inferior_event)
2614 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2615 inferior_ptid directly, nor
2616 set_current_inferior/set_current_program_space. Use
2617 switch_to_thread / switch_to_inferior_no_thread instead.
2619 2020-06-18 Pedro Alves <palves@redhat.com>
2621 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2622 instead of writing to inferior_ptid.
2624 2020-06-18 Pedro Alves <palves@redhat.com>
2626 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2628 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2629 to the added thread.
2630 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2631 instead of writing to inferior_ptid.
2633 2020-06-18 Pedro Alves <palves@redhat.com>
2635 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2636 (register_to_value_test): Mock a program_space too. Heap-allocate
2637 the address space. Don't write to inferior_ptid. Use
2638 switch_to_thread instead.
2640 2020-06-18 Pedro Alves <palves@redhat.com>
2642 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2644 (find_signalled_thread()): New, factored out from
2645 linux_make_corefile_notes and adjusted to handle exited threads.
2646 (linux_make_corefile_notes): Adjust to use the new
2647 find_signalled_thread.
2649 2020-06-18 Pedro Alves <palves@redhat.com>
2651 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2652 of saving/restoring inferior_ptid.
2654 2020-06-17 Tom Tromey <tom@tromey.com>
2656 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2657 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2659 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2661 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2663 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2666 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2668 * regformats/reg-arm.dat: Remove.
2669 * regformats/reg-bfin.dat: Remove.
2670 * regformats/reg-cris.dat: Remove.
2671 * regformats/reg-crisv32.dat: Remove.
2672 * regformats/reg-m32r.dat: Remove.
2673 * regformats/reg-tilegx.dat: Remove.
2674 * regformats/reg-tilegx32.dat: Remove.
2676 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2678 * features/Makefile (WHICH): Remove arm files.
2679 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2680 * regformats/arm/arm-with-neon.dat: Remove.
2681 * regformats/arm/arm-with-vfpv2.dat: Remove.
2682 * regformats/arm/arm-with-vfpv3.dat: Remove.
2684 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2686 * features/Makefile (XMLTOC): Remove rx.xml.
2688 2020-06-17 Pedro Alves <palves@redhat.com>
2690 * gdbthread.h (thread_control_state) <trap_expected> Update
2693 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2695 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2696 ada_language::lookup_symbol_nonlocal.
2697 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2698 (ada_language::lookup_symbol_nonlocal): New member function,
2699 implementation from ada_lookup_symbol_nonlocal.
2700 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2702 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2704 (cplus_language::lookup_symbol_nonlocal): New member function.
2705 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2706 (minimal_language_data) Likewise.
2707 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2708 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2710 (d_language::lookup_symbol_nonlocal): New member function.
2711 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2713 (f_language::lookup_symbol_nonlocal): New member function.
2714 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2716 * language.c (unknown_language_data): Likewise.
2717 (auto_language_data): Likewise.
2718 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2720 (language_defn::lookup_symbol_nonlocal): New member function.
2721 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2723 * objc-lang.c (objc_language_data): Likewise.
2724 * opencl-lang.c (opencl_language_data): Likewise.
2725 * p-lang.c (pascal_language_data): Likewise.
2726 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2727 rust_language::lookup_symbol_nonlocal.
2728 (rust_language_data): Delete la_lookup_symbol_nonlocal
2730 (rust_language::lookup_symbol_nonlocal): New member function,
2731 implementation from rust_lookup_symbol_nonlocal.
2732 * symtab.c (lookup_symbol_aux): Update call to
2733 lookup_symbol_nonlocal.
2734 (basic_lookup_symbol_nonlocal): Rename to...
2735 (language_defn::lookup_symbol_nonlocal): ...this, and update
2736 header comment. Remove language_defn parameter, and replace with
2738 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2740 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2742 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2744 (ada_language::value_print_inner): New member function.
2745 * c-lang.c (c_language_data): Delete la_value_print_inner
2747 (cplus_language_data): Likewise.
2748 (asm_language_data): Likewise.
2749 (minimal_language_data): Likewise.
2750 * d-lang.c (d_language_data): Likewise.
2751 (d_language::value_print_inner): New member function.
2752 * f-lang.c (f_language_data): Delete la_value_print_inner
2754 (f_language::value_print_inner): New member function.
2755 * f-lang.h (f_value_print_innner): Rename to...
2756 (f_value_print_inner): ...this (note spelling of 'inner').
2757 * f-valprint.c (f_value_print_innner): Rename to...
2758 (f_value_print_inner): ...this (note spelling of 'inner').
2759 * go-lang.c (go_language_data): Delete la_value_print_inner
2761 (go_language::value_print_inner): New member function.
2762 * language.c (language_defn::value_print_inner): Define new member
2764 (unk_lang_value_print_inner): Delete.
2765 (unknown_language_data): Delete la_value_print_inner initializer.
2766 (unknown_language::value_print_inner): New member function.
2767 (auto_language_data): Delete la_value_print_inner initializer.
2768 (auto_language::value_print_inner): New member function.
2769 * language.h (language_data): Delete la_value_print_inner field.
2770 (language_defn::value_print_inner): Delcare new member function.
2771 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2773 (m2_language::value_print_inner): New member function.
2774 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2776 * opencl-lang.c (opencl_language_data): Likewise.
2777 * p-lang.c (pascal_language_data): Likewise.
2778 (pascal_language::value_print_inner): New member function.
2779 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2781 (rust_language::value_print_inner): New member function.
2782 * valprint.c (do_val_print): Update call to value_print_inner.
2784 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2786 * ada-lang.c (ada_language_data): Delete la_value_print
2788 (ada_language::value_print): New member function.
2789 * c-lang.c (c_language_data): Delete la_value_print initializer.
2790 (cplus_language_data): Likewise.
2791 (asm_language_data): Likewise.
2792 (minimal_language_data): Likewise.
2793 * d-lang.c (d_language_data): Likewise.
2794 * f-lang.c (f_language_data): Likewise.
2795 * go-lang.c (go_language_data): Likewise.
2796 * language.c (unk_lang_value_print): Delete.
2797 (language_defn::value_print): Define new member function.
2798 (unknown_language_data): Delete la_value_print initializer.
2799 (unknown_language::value_print): New member function.
2800 (auto_language_data): Delete la_value_print initializer.
2801 (auto_language::value_print): New member function.
2802 * language.h (language_data): Delete la_value_print field.
2803 (language_defn::value_print): Declare new member function.
2804 (LA_VALUE_PRINT): Update call to value_print.
2805 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2806 * objc-lang.c (objc_language_data): Likewise.
2807 * opencl-lang.c (opencl_language_data): Likewise.
2808 * p-lang.c (pascal_language_data): Likewise.
2809 (pascal_language::value_print): New member function.
2810 * rust-lang.c (rust_language_data): Delete la_value_print
2813 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2815 * ada-lang.c (ada_watch_location_expression): Rename to
2816 ada_language::watch_location_expression.
2817 (ada_language_data): Delete la_watch_location_expression
2819 (ada_language::watch_location_expression): New member function,
2820 implementation from ada_watch_location_expression.
2821 * breakpoint.c (watch_command_1): Update call to
2822 watch_location_expression.
2823 * c-lang.c (c_watch_location_expression): Rename to
2824 language_defn::watch_location_expression.
2825 (c_language_data): Delete la_watch_location_expression
2827 (cplus_language_data): Likewise.
2828 (asm_language_data): Likewise.
2829 (minimal_language_data): Likewise.
2830 * c-lang.h (c_watch_location_expression): Delete declaration.
2831 * d-lang.c (d_language_data): Delete la_watch_location_expression
2833 * f-lang.c (f_language_data): Likewise.
2834 * go-lang.c (go_language_data): Likewise.
2835 * language.c (language_defn::watch_location_expression): Member
2836 function implementation from c_watch_location_expression.
2837 (unknown_language_data): Delete la_watch_location_expression
2839 (auto_language_data): Likewise.
2840 * language.h (language_data): Delete la_watch_location_expression
2842 (language_defn::watch_location_expression): Declare new member
2844 * m2-lang.c (m2_language_data): Delete
2845 la_watch_location_expression initializer.
2846 * objc-lang.c (objc_language_data): Likewise.
2847 * opencl-lang.c (opencl_language_data): Likewise.
2848 * p-lang.c (pascal_language_data): Likewise.
2849 * rust-lang.c (rust_watch_location_expression): Rename to
2850 rust_language::watch_location_expression.
2851 (rust_language_data): Delete la_watch_location_expression
2853 (rust_language::watch_location_expression): New member function,
2854 implementation from rust_watch_location_expression.
2856 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2858 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2859 ada_language::collect_symbol_completion_matches.
2860 (ada_language_data): Delete la_collect_symbol_completion_matches
2862 (ada_language::collect_symbol_completion_matches): New member
2863 function, implementation from
2864 ada_collect_symbol_completion_matches.
2865 * c-lang.c (c_language_data): Delete
2866 la_collect_symbol_completion_matches initializer.
2867 (cplus_language_data): Likewise.
2868 (asm_language_data): Likewise.
2869 (minimal_language_data): Likewise.
2870 * d-lang.c (d_language_data): Likewise.
2871 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2872 f_language::collect_symbol_completion_matches.
2873 (f_language_data): Delete la_collect_symbol_completion_matches
2875 (f_language::collect_symbol_completion_matches) New member
2876 function, implementation from f_collect_symbol_completion_matches.
2877 * go-lang.c (go_language_data): Delete
2878 la_collect_symbol_completion_matches initializer.
2879 * language.c (unknown_language_data): Likewise.
2880 (auto_language_data): Likewise.
2881 * language.h (language_data): Delete
2882 la_collect_symbol_completion_matches field.
2883 (language_defn::collect_symbol_completion_matches): New member
2885 * m2-lang.c (m2_language_data): Delete
2886 la_collect_symbol_completion_matches initializer.
2887 * objc-lang.c (objc_language_data): Likewise.
2888 * opencl-lang.c (opencl_language_data): Likewise.
2889 * p-lang.c (pascal_language_data): Likewise.
2890 * rust-lang.c (rust_language_data): Likewise.
2891 * symtab.c (default_collect_symbol_completion_matches): Delete.
2892 (collect_symbol_completion_matches): Update call to
2893 collect_symbol_completion_matches.
2894 (collect_symbol_completion_matches_type): Likewise.
2895 * symtab.h (default_collect_symbol_completion_matches): Delete
2898 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2900 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2901 (ada_language_data): Delete la_word_break_characters initializer.
2902 (ada_language::word_break_characters): New member function.
2903 * c-lang.c (c_language_data): Delete la_word_break_characters
2905 (cplus_language_data): Likewise.
2906 (asm_language_data): Likewise.
2907 (minimal_language_data): Likewise.
2908 * completer.c: Update global comment.
2909 (advance_to_expression_complete_word_point): Update call to
2910 word_break_characters.
2911 (complete_files_symbols): Likewise.
2912 (complete_line_internal_1): Likewise.
2913 (default_completer_handle_brkchars): Likewise.
2914 (skip_quoted_chars): Likewise.
2915 * d-lang.c (d_language_data): Delete la_word_break_characters
2917 * f-lang.c (f_word_break_characters): Delete.
2918 (f_language_data): Delete la_word_break_characters initializer.
2919 (f_language::word_break_characters): New member function.
2920 * go-lang.c (go_language_data): Delete la_word_break_characters
2922 * language.c (unknown_language_data): Likewise.
2923 (auto_language_data): Likewise.
2924 * language.h (default_word_break_characters): Move declaration to
2925 earlier in the file.
2926 (language_data): Delete la_word_break_characters field.
2927 (language_defn::word_break_characters): New member function.
2928 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2930 * objc-lang.c (objc_language_data): Likewise.
2931 * opencl-lang.c (opencl_language_data): Likewise.
2932 * p-lang.c (pascal_language_data): Likewise.
2933 * rust-lang.c (rust_language_data): Likewise.
2935 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2937 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2938 (ada_language_data): Delete la_get_symbol_name_matcher
2940 (language_defn::get_symbol_name_matcher_inner): New member
2942 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2944 (cplus_language_data): Likewise.
2945 (cplus_language::get_symbol_name_matcher_inner): New member
2947 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2948 (minimal_language_data): Likewise.
2949 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2950 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2952 * dictionary.c (iter_match_first_hashed): Update call to
2953 get_symbol_name_matcher.
2954 (iter_match_next_hashed): Likewise.
2955 (iter_match_next_linear): Likewise.
2956 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2957 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2959 (f_language::get_symbol_name_matcher_inner): New member function.
2960 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2962 * language.c (default_symbol_name_matcher): Update header comment,
2964 (language_defn::get_symbol_name_matcher): New definition.
2965 (language_defn::get_symbol_name_matcher_inner): Likewise.
2966 (get_symbol_name_matcher): Delete.
2967 (unknown_language_data): Delete la_get_symbol_name_matcher
2969 (auto_language_data): Likewise.
2970 * language.h (language_data): Delete la_get_symbol_name_matcher
2972 (language_defn::get_symbol_name_matcher): New member function.
2973 (language_defn::get_symbol_name_matcher_inner): Likewise.
2974 (default_symbol_name_matcher): Delete declaration.
2975 * linespec.c (find_methods): Update call to
2976 get_symbol_name_matcher.
2977 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2979 * minsyms.c (lookup_minimal_symbol): Update call to
2980 get_symbol_name_matcher.
2981 (iterate_over_minimal_symbols): Likewise.
2982 * objc-lang.c (objc_language_data): Delete
2983 la_get_symbol_name_matcher initializer.
2984 * opencl-lang.c (opencl_language_data): Likewise.
2985 * p-lang.c (pascal_language_data): Likewise.
2986 * psymtab.c (psymbol_name_matches): Update call to
2987 get_symbol_name_matcher.
2988 * rust-lang.c (rust_language_data): Delete
2989 la_get_symbol_name_matcher initializer.
2990 * symtab.c (symbol_matches_search_name): Update call to
2991 get_symbol_name_matcher.
2992 (compare_symbol_name): Likewise.
2994 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2996 * ada-lang.c (ada_language_data): Delete la_compute_program
2998 * c-lang.c (c_language_data): Likewise.
2999 (c_language::compute_program): New member function.
3000 (cplus_language_data): Delete la_compute_program initializer.
3001 (cplus_language::compute_program): New member function.
3002 (asm_language_data): Delete la_compute_program initializer.
3003 (minimal_language_data): Likewise.
3004 * c-lang.h (c_compute_program): Update comment.
3005 (cplus_compute_program): Likewise.
3006 * compile/compile-c-support.c (c_compute_program): Likewise.
3007 (cplus_compute_program): Likewise.
3008 * compile/compile.c (compile_to_object): Update call to
3010 * d-lang.c (d_language_data): Delete la_compute_program
3012 * f-lang.c (f_language_data): Likewise.
3013 * go-lang.c (go_language_data): Likewise.
3014 * language.c (unknown_language_data): Likewise.
3015 (auto_language_data): Likewise.
3016 * language.h (language_data): Delete la_compute_program field.
3017 (language_defn::compute_program): New member function.
3018 * m2-lang.c (m2_language_data): Delete la_compute_program
3020 * objc-lang.c (objc_language_data): Likewise.
3021 * opencl-lang.c (opencl_language_data): Likewise.
3022 * p-lang.c (pascal_language_data): Likewise.
3023 * rust-lang.c (rust_language_data): Likewise.
3025 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
3027 * ada-lang.c (ada_language_data) Delete
3028 la_class_name_from_physname initializer.
3029 * c-lang.c (c_language_data): Likewise.
3030 (cplus_language_data): Likewise.
3031 (cplus_language::class_name_from_physname): New member function.
3032 (asm_language_data): Delete la_class_name_from_physname
3034 (minimal_language_data): Likewise.
3035 * d-lang.c (d_language_data): Likewise.
3036 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
3037 method on language_defn class.
3038 (guess_full_die_structure_name): Likewise.
3039 * f-lang.c (f_language_data): Delete la_class_name_from_physname
3041 * go-lang.c (go_language_data): Likewise.
3042 * language.c (language_class_name_from_physname): Delete.
3043 (unk_lang_class_name): Delete.
3044 (unknown_language_data): Delete la_class_name_from_physname
3046 (auto_language_data): Likewise.
3047 * language.h (language_data): Delete la_class_name_from_physname
3049 (language_defn::class_name_from_physname): New function.
3050 (language_class_name_from_physname): Delete declaration.
3051 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
3053 * objc-lang.c (objc_language_data): Likewise.
3054 * opencl-lang.c (opencl_language_data): Likewise.
3055 * p-lang.c (pascal_language_data): Likewise.
3056 * rust-lang.c (rust_language_data): Likewise.
3058 2020-06-16 Tom Tromey <tom@tromey.com>
3060 * tui/tui-data.h (STATUS_NAME): New macro.
3061 * tui/tui-layout.c (tui_remove_some_windows)
3062 (initialize_known_windows, tui_register_window)
3063 (tui_layout_split::remove_windows, initialize_layouts)
3064 (tui_new_layout_command): Don't use hard-coded window names.
3066 2020-06-16 Tom Tromey <tom@tromey.com>
3069 * tui/tui.c (tui_ensure_readline_initialized): Rename from
3070 tui_initialize_readline. Only run once. Call rl_initialize.
3071 * tui/tui.h (tui_ensure_readline_initialized): Rename from
3072 tui_initialize_readline.
3073 * tui/tui-io.c (tui_setup_io): Call
3074 tui_ensure_readline_initialized.
3075 * tui/tui-interp.c (tui_interp::init): Update.
3077 2020-06-16 Tom Tromey <tom@tromey.com>
3079 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
3080 Also preserve the status window.
3082 2020-06-16 Tom Tromey <tom@tromey.com>
3084 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
3085 where m_window==nullptr.
3087 2020-06-15 Tom Tromey <tromey@adacore.com>
3089 * windows-nat.c (windows_nat::handle_output_debug_string):
3091 (windows_nat::handle_ms_vc_exception): Update.
3092 * target.h (target_read_string): Change API.
3093 * target.c (target_read_string): Change API.
3094 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
3096 * solib-frv.c (frv_current_sos): Update.
3097 * solib-dsbt.c (dsbt_current_sos): Update.
3098 * solib-darwin.c (darwin_current_sos): Update.
3099 * linux-thread-db.c (inferior_has_bug): Update.
3100 * expprint.c (print_subexp_standard): Update.
3101 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
3102 (ada_exception_message_1): Update.
3104 2020-06-15 Tom Tromey <tromey@adacore.com>
3106 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
3108 2020-06-15 Tom Tromey <tromey@adacore.com>
3110 * valprint.c (read_string): Update comment.
3111 * target.c (MIN): Remove.
3112 (target_read_string): Rewrite.
3114 2020-06-15 Tom Tromey <tromey@adacore.com>
3116 * corefile.c (read_memory_string): Remove.
3117 * ada-valprint.c (ada_value_print_ptr): Update.
3118 * ada-lang.h (ada_tag_name): Change return type.
3119 * ada-lang.c (type_from_tag): Update.
3120 (ada_tag_name_from_tsd): Change return type. Use
3122 (ada_tag_name): Likewise.
3123 * gdbcore.h (read_memory_string): Don't declare.
3125 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
3127 * symtab.c (rbreak_command): Ignore Windows drive colon.
3129 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
3131 * NEWS: Mention removed GDBserver host support.
3133 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
3135 * features/riscv/rebuild-csr-xml.sh: Updated.
3137 2020-06-11 Tom Tromey <tom@tromey.com>
3140 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
3142 2020-06-09 Jonny Grant <jg@jguk.org>
3143 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
3145 * main.c (captured_main_1): Don't print new line after help.
3146 (print_gdb_help): add mailing list and IRC channel information
3147 to --help. Add new lines between items in the footer. Remove
3148 quotes around bug url.
3150 2020-06-11 Keith Seitz <keiths@redhat.com>
3153 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
3154 Resolve typedefs for type length calculations.
3156 2020-06-10 Tom de Vries <tdevries@suse.de>
3159 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
3160 (write_psymbols): Enable .gdb_index for ada.
3161 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
3164 2020-06-10 Tom de Vries <tdevries@suse.de>
3166 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
3167 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
3168 namei" instead of "const char *name" argument.
3169 (dw2_map_matching_symbols): Use "offset_type namei" variant of
3170 dw2_symtab_iter_init.
3172 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3174 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
3175 to use type::field and field::type instead.
3177 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3179 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
3180 to use field::type instead.
3182 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3184 * gdbtypes.h (struct field) <type, set_type>: New methods.
3185 Rename `type` field to...
3186 <m_type>: ... this. Change references throughout to use type or
3188 (FIELD_TYPE): Use field::type. Change call sites that modify
3189 the field's type to use field::set_type instead.
3191 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3193 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
3194 to use type::index_type instead.
3196 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
3198 * gdbtypes.h (struct type) <index_type, set_index_type>: New
3200 (TYPE_INDEX_TYPE): Use type::index_type.
3201 * gdbtypes.c (create_array_type_with_stride): Likewise.
3203 2020-06-07 Tom Tromey <tom@tromey.com>
3205 * valprint.c (generic_val_print_float): Remove "embedded_offset"
3207 (generic_value_print): Update.
3209 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3211 Revert commit 982a38f60b0.
3212 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
3214 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
3216 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
3217 avoid use after free.
3219 2020-06-05 Tom de Vries <tdevries@suse.de>
3223 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
3225 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
3227 (dwarf2_read_debug_names): Likewise.
3228 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
3229 object when re-using a per_bfd object with an index.
3231 2020-06-03 Tom de Vries <tdevries@suse.de>
3234 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
3236 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
3239 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3241 * ada-lang.c (ada_language_data): Delete skip_trampoline
3243 * c-lang.c (c_language_data): Likewise.
3244 (cplus_language_data): Likewise.
3245 (cplus_language::skip_trampoline): New member function.
3246 (asm_language_data): Delete skip_trampoline initializer.
3247 (minimal_language_data): Likewise.
3248 * d-lang.c (d_language_data): Likewise.
3249 * f-lang.c (f_language_data): Likewise.
3250 * go-lang.c (go_language_data): Likewise.
3251 * language.c (unk_lang_trampoline): Delete function.
3252 (skip_language_trampoline): Update.
3253 (unknown_language_data): Delete skip_trampoline initializer.
3254 (auto_language_data): Likewise.
3255 * language.h (language_data): Delete skip_trampoline field.
3256 (language_defn::skip_trampoline): New function.
3257 * m2-lang.c (m2_language_data): Delete skip_trampoline
3259 * objc-lang.c (objc_skip_trampoline): Delete function, move
3260 implementation to objc_language::skip_trampoline.
3261 (objc_language_data): Delete skip_trampoline initializer.
3262 (objc_language::skip_trampoline): New member function with
3263 implementation from objc_skip_trampoline.
3264 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
3266 * p-lang.c (pascal_language_data): Likewise.
3267 * rust-lang.c (rust_language_data): Likewise.
3269 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3271 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
3272 (ada_language::demangle): New member function.
3273 * c-lang.c (c_language_data): Delete la_demangle initializer.
3274 (cplus_language_data): Delete la_demangle initializer.
3275 (cplus_language::demangle): New member function.
3276 (asm_language_data): Delete la_demangle initializer.
3277 (minimal_language_data): Delete la_demangle initializer.
3278 * d-lang.c (d_language_data): Delete la_demangle initializer.
3279 (d_language::demangle): New member function.
3280 * f-lang.c (f_language_data): Delete la_demangle initializer.
3281 (f_language::demangle): New member function.
3282 * go-lang.c (go_language_data): Delete la_demangle initializer.
3283 (go_language::demangle): New member function.
3284 * language.c (language_demangle): Update.
3285 (unk_lang_demangle): Delete.
3286 (unknown_language_data): Delete la_demangle initializer.
3287 (unknown_language::demangle): New member function.
3288 (auto_language_data): Delete la_demangle initializer.
3289 (auto_language::demangle): New member function.
3290 * language.h (language_data): Delete la_demangle field.
3291 (language_defn::demangle): New function.
3292 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
3293 * objc-lang.c (objc_language_data): Delete la_demangle
3295 (objc_language::demangle): New member function.
3296 * opencl-lang.c (opencl_language_data): Delete la_demangle
3298 * p-lang.c (pascal_language_data): Likewise.
3299 * rust-lang.c (rust_language_data): Likewise.
3300 (rust_language::demangle): New member function.
3302 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3304 * ada-lang.c (ada_language_data): Delete la_print_type
3306 (ada_language::print_type): New member function.
3307 * c-lang.c (c_language_data): Delete la_print_type initializer.
3308 (c_language::print_type): New member function.
3309 (cplus_language_data): Delete la_print_type initializer.
3310 (cplus_language::print_type): New member function.
3311 (asm_language_data): Delete la_print_type initializer.
3312 (asm_language::print_type): New member function.
3313 (minimal_language_data): Delete la_print_type initializer.
3314 (minimal_language::print_type): New member function.
3315 * d-lang.c (d_language_data): Delete la_print_type initializer.
3316 (d_language::print_type): New member function.
3317 * f-lang.c (f_language_data): Delete la_print_type initializer.
3318 (f_language::print_type): New member function.
3319 * go-lang.c (go_language_data): Delete la_print_type initializer.
3320 (go_language::print_type): New member function.
3321 * language.c (unk_lang_print_type): Delete.
3322 (unknown_language_data): Delete la_print_type initializer.
3323 (unknown_language::print_type): New member function.
3324 (auto_language_data): Delete la_print_type initializer.
3325 (auto_language::print_type): New member function.
3326 * language.h (language_data): Delete la_print_type field.
3327 (language_defn::print_type): New function.
3328 (LA_PRINT_TYPE): Update.
3329 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
3330 (m2_language::print_type): New member function.
3331 * objc-lang.c (objc_language_data): Delete la_print_type
3333 (objc_language::print_type): New member function.
3334 * opencl-lang.c (opencl_print_type): Delete, implementation moved
3335 to opencl_language::print_type.
3336 (opencl_language_data): Delete la_print_type initializer.
3337 (opencl_language::print_type): New member function, implementation
3338 from opencl_print_type.
3339 * p-lang.c (pascal_language_data): Delete la_print_type
3341 (pascal_language::print_type): New member function.
3342 * rust-lang.c (rust_print_type): Delete, implementation moved to
3343 rust_language::print_type.
3344 (rust_language_data): Delete la_print_type initializer.
3345 (rust_language::print_type): New member function, implementation
3346 from rust_print_type.
3348 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3350 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3351 implementation moves to...
3352 (ada_language::sniff_from_mangled_name): ...here. Update return
3354 (ada_language_data): Delete la_sniff_from_mangled_name
3356 * c-lang.c (c_language_data): Likewise.
3357 (cplus_language_data): Likewise.
3358 (cplus_language::sniff_from_mangled_name): New member function,
3359 implementation taken from gdb_sniff_from_mangled_name.
3360 (asm_language_data): Delete la_sniff_from_mangled_name
3362 (minimal_language_data): Likewise.
3363 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3364 implementation moves to cplus_language::sniff_from_mangled_name.
3365 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3366 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3368 (d_language::sniff_from_mangled_name): ...here.
3369 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3370 * f-lang.c (f_language_data): Likewise.
3371 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3373 (go_language::sniff_from_mangled_name): ...here.
3374 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3375 * language.c (language_sniff_from_mangled_name): Delete.
3376 (unknown_language_data): Delete la_sniff_from_mangled_name
3378 (auto_language_data): Likewise.
3379 * language.h (language_data): Delete la_sniff_from_mangled_name
3381 (language_defn::sniff_from_mangled_name): New function.
3382 (language_sniff_from_mangled_name): Delete declaration.
3383 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3385 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3386 implementation moves to...
3387 (objc_language::sniff_from_mangled_name): ...here.
3388 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3389 * opencl-lang.c (opencl_language_data): Likewise.
3390 * p-lang.c (pascal_language_data): Likewise.
3391 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3392 implementation moves to...
3393 (rust_language::sniff_from_mangled_name): ...here.
3394 (rust_language_data): Delete la_sniff_from_mangled_name
3396 * symtab.c (symbol_find_demangled_name): Call
3397 sniff_from_mangled_name member function.
3399 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3401 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3403 * c-lang.c (c_language_data): Likewise.
3404 (cplus_language_data): Likewise.
3405 (cplus_language::search_name_hash): New member function.
3406 (asm_language_data): Delete la_search_name_hash initializer.
3407 (minimal_language_data): Likewise.
3408 * d-lang.c (d_language_data): Likewise.
3409 * dictionary.c (default_search_name_hash): Rename to...
3410 (language_defn::search_name_hash): ...this.
3411 * f-lang.c (f_language_data): Likewise.
3412 (f_language::search_name_hash): New member function.
3413 * go-lang.c (go_language_data): Delete la_search_name_hash
3415 * language.c (unknown_language_data): Likewise.
3416 (auto_language_data): Likewise.
3417 * language.h (struct language_data): Delete la_search_name_hash
3419 (language_defn::search_name_hash): Declare new member function.
3420 (default_search_name_hash): Delete declaration.
3421 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3423 * objc-lang.c (objc_language_data): Likewise.
3424 * opencl-lang.c (opencl_language_data): Likewise.
3425 * p-lang.c (pascal_language_data): Likewise.
3426 * rust-lang.c (rust_language_data): Likewise.
3427 * symtab.c (search_name_hash): Update call.
3429 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3431 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3433 * c-lang.c (class compile_instance): Declare.
3434 (c_language_data): Delete la_get_compile_instance initializer.
3435 (c_language::get_compile_instance): New member function.
3436 (cplus_language_data): Delete la_get_compile_instance initializer.
3437 (cplus_language::get_compile_instance): New member function.
3438 (asm_language_data): Delete la_get_compile_instance initializer.
3439 (minimal_language_data): Likewise.
3440 * c-lang.h (c_get_compile_context): Update comment.
3441 (cplus_get_compile_context): Update comment.
3442 * compile/compile.c (compile_to_object): Update calls, don't rely
3443 on function pointer being NULL.
3444 * d-lang.c (d_language_data): Delete la_get_compile_instance
3446 * f-lang.c (f_language_data): Likewise.
3447 * go-lang.c (go_language_data): Likewise.
3448 * language.c (unknown_language_data): Likewise.
3449 (auto_language_data): Likewise.
3450 * language.h (language_data): Delete la_get_compile_instance field.
3451 (language_defn::get_compile_instance): New member function.
3452 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3454 * objc-lang.c (objc_language_data): Likewise.
3455 * opencl-lang.c (opencl_language_data): Likewise.
3456 * p-lang.c (pascal_language_data): Likewise.
3457 * rust-lang.c (rust_language_data): Likewise.
3459 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3461 * ada-lang.c (ada_add_all_symbols): Update comment.
3462 (ada_iterate_over_symbols): Delete, move implementation to...
3463 (ada_language::iterate_over_symbols): ...here, a new member
3464 function, rewrite to use range based for loop.
3465 (ada_language_data): Delete la_iterate_over_symbols initializer.
3466 * c-lang.c (c_language_data): Likewise.
3467 (cplus_language_data): Likewise.
3468 (asm_language_data): Likewise.
3469 (minimal_language_data): Likewise.
3470 * d-lang.c (d_language_data): Likewise.
3471 * f-lang.c (f_language_data): Likewise.
3472 * go-lang.c (go_language_data): Likewise.
3473 * language.c (unknown_language_data): Likewise.
3474 (auto_language_data): Likewise.
3475 * language.h (language_data): Delete la_iterate_over_symbols field.
3476 (language_defn::iterate_over_symbols): New member function.
3477 (LA_ITERATE_OVER_SYMBOLS): Update.
3478 * linespec.c (iterate_over_all_matching_symtabs): Update.
3479 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3481 * objc-lang.c (objc_language_data): Likewise.
3482 * opencl-lang.c (opencl_language_data): Likewise.
3483 * p-lang.c (pascal_language_data): Likewise.
3484 * rust-lang.c (rust_language_data): Likewise.
3486 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3488 * ada-lang.c (ada_language_data): Delete
3489 la_lookup_transparent_type initializer.
3490 * c-lang.c (c_language_data): Likewise.
3491 (cplus_language_data): Likewise.
3492 (cplus_language::lookup_transparent_type): New member function.
3493 (asm_language_data): Delete la_lookup_transparent_type
3495 (minimal_language_data): Likewise.
3496 * d-lang.c (d_language_data): Likewise.
3497 * f-lang.c (f_language_data): Likewise.
3498 * go-lang.c (go_language_data): Likewise.
3499 * language.c (unknown_language_data): Likewise.
3500 (auto_language_data): Likewise.
3501 * language.h (struct language_data): Delete
3502 la_lookup_transparent_type field.
3503 (language_defn::lookup_transparent_type): New member function.
3504 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3506 * objc-lang.c (objc_language_data): Likewise.
3507 * opencl-lang.c (opencl_language_data): Likewise.
3508 * p-lang.c (pascal_language_data): Likewise.
3509 * rust-lang.c (rust_language_data): Likewise.
3510 * symtab.c (symbol_matches_domain): Update call.
3512 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3514 * ada-lang.c (ada_language_arch_info): Delete function, move
3515 implementation to...
3516 (ada_language::language_arch_info): ...here, a new member
3518 (ada_language_data): Delete la_language_arch_info.
3519 * c-lang.c (c_language_data): Likewise.
3520 (c_language::language_arch_info): New member function.
3521 (cplus_language_arch_info): Delete function, move
3522 implementation to...
3523 (cplus_language::language_arch_info): ...here, a new member
3525 (cplus_language_data): Delete la_language_arch_info.
3526 (asm_language_data): Likewise.
3527 (asm_language::language_arch_info): New member function.
3528 (minimal_language_data): Delete la_language_arch_info.
3529 (minimal_language::language_arch_info): New member function.
3530 * d-lang.c (d_language_arch_info): Delete function, move
3531 implementation to...
3532 (d_language::language_arch_info): ...here, a new member
3534 (d_language_data): Delete la_language_arch_info.
3535 * f-lang.c (f_language_arch_info): Delete function, move
3536 implementation to...
3537 (f_language::language_arch_info): ...here, a new member
3539 (f_language_data): Delete la_language_arch_info.
3540 * go-lang.c (go_language_arch_info): Delete function, move
3541 implementation to...
3542 (go_language::language_arch_info): ...here, a new member
3544 (go_language_data): Delete la_language_arch_info.
3545 * language.c (unknown_language_data): Likewise.
3546 (unknown_language::language_arch_info): New member function.
3547 (auto_language_data): Delete la_language_arch_info.
3548 (auto_language::language_arch_info): New member function.
3549 (language_gdbarch_post_init): Update call to
3550 la_language_arch_info.
3551 * language.h (language_data): Delete la_language_arch_info
3553 (language_defn::language_arch_info): New function.
3554 * m2-lang.c (m2_language_arch_info): Delete function, move
3555 implementation to...
3556 (m2_language::language_arch_info): ...here, a new member
3558 (m2_language_data): Delete la_language_arch_info.
3559 * objc-lang.c (objc_language_arch_info): Delete function, move
3560 implementation to...
3561 (objc_language::language_arch_info): ...here, a new member
3563 (objc_language_data): Delete la_language_arch_info.
3564 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3565 implementation to...
3566 (opencl_language::language_arch_info): ...here, a new member
3568 (opencl_language_data): Delete la_language_arch_info.
3569 * p-lang.c (pascal_language_arch_info): Delete function, move
3570 implementation to...
3571 (pascal_language::language_arch_info): ...here, a new member
3573 (pascal_language_data): Delete la_language_arch_info.
3574 * rust-lang.c (rust_language_arch_info): Delete function, move
3575 implementation to...
3576 (rust_language::language_arch_info): ...here, a new member
3578 (rust_language_data): Delete la_language_arch_info.
3580 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3582 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3584 * c-lang.c (c_language_data): Likewise.
3585 (cplus_language_data): Likewise.
3586 (cplus_language::pass_by_reference_info): New method.
3587 (asm_language_data): Delete la_pass_by_reference initializer.
3588 (minimal_language_data): Likewise.
3589 * cp-abi.c (cp_pass_by_reference): Remove use of
3590 default_pass_by_reference.
3591 * d-lang.c (d_language_data): Likewise.
3592 * f-lang.c (f_language_data): Likewise.
3593 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3594 default_pass_by_reference.
3595 * go-lang.c (go_language_data): Likewise.
3596 * language.c (language_pass_by_reference): Update.
3597 (default_pass_by_reference): Delete.
3598 (unknown_language_data): Delete la_pass_by_reference
3600 (auto_language_data): Likewise.
3601 * language.h (struct language_data): Delete la_pass_by_reference
3603 (language_defn::pass_by_reference_info): New member function.
3604 (default_pass_by_reference): Delete declaration.
3605 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3607 * objc-lang.c (objc_language_data): Likewise.
3608 * opencl-lang.c (opencl_language_data): Likewise.
3609 * p-lang.c (pascal_language_data): Likewise.
3610 * rust-lang.c (rust_language_data): Likewise.
3612 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3614 * ada-lang.c (ada_read_var_value): Delete function, move
3615 implementation to...
3616 (ada_language::read_var_value): ...here.
3617 (ada_language_data): Delete la_read_var_value initializer.
3618 * c-lang.c (c_language_data): Likewise.
3619 (cplus_language_data): Likewise.
3620 (minimal_language_data): Likewise.
3621 * d-lang.c (d_language_data): Likewise.
3622 * f-lang.c (f_language_data): Likewise.
3623 * findvar.c (default_read_var_value): Rename to...
3624 (language_defn::read_var_value): ...this.
3625 * findvar.c (read_var_value): Update header comment, and change to
3626 call member function instead of function pointer.
3627 * go-lang.c (go_language_data): Likewise.
3628 * language.c (unknown_language_data): Delete la_read_var_value
3630 (auto_language_data): Likewise.
3631 * language.h (struct language_data): Delete la_read_var_value
3633 (language_defn::read_var_value): New member function.
3634 (default_read_var_value): Delete declaration.
3635 * m2-lang.c (m2_language_data): Delete la_read_var_value
3637 * objc-lang.c (objc_language_data): Likewise.
3638 * opencl-lang.c (opencl_language_data): Likewise.
3639 * p-lang.c (pascal_language_data): Likewise.
3640 * rust-lang.c (rust_language_data): Likewise.
3641 * value.h (default_read_var_value): Delete declaration.
3643 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3645 * ada-lang.c (ada_print_array_index): Delete function, move
3646 implementation to...
3647 (ada_language::print_array_index): ...here.
3648 (ada_language_data): Delete la_print_array_index initializer.
3649 * c-lang.c (c_language_data): Likewise.
3650 (cplus_language_data): Likewise.
3651 (minimal_language_data): Likewise.
3652 * d-lang.c (d_language_data): Likewise.
3653 * f-lang.c (f_language_data): Likewise.
3654 * go-lang.c (go_language_data): Likewise.
3655 * language.c (default_print_array_index): Delete function, move
3656 implementation to...
3657 (language_defn::print_array_index): ...here.
3658 (unknown_language_data): Delete la_print_array_index initializer.
3659 (auto_language_data): Likewise.
3660 * language.h (struct language_data): Delete la_print_array_index
3662 (language_defn::print_array_index): New member function.
3663 (LA_PRINT_ARRAY_INDEX): Update.
3664 (default_print_array_index): Delete declaration.
3665 * m2-lang.c (m2_language_data): Delete la_print_array_index
3667 * objc-lang.c (objc_language_data): Likewise.
3668 * opencl-lang.c (opencl_language_data): Likewise.
3669 * p-lang.c (pascal_language_data): Likewise.
3670 * rust-lang.c (rust_language_data): Likewise.
3672 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3674 * gdb/ada-lang.c (ada_language_defn): Convert to...
3675 (ada_language_data): ...this.
3676 (class ada_language): New class.
3677 (ada_language_defn): New static global.
3678 * gdb/c-lang.c (c_language_defn): Convert to...
3679 (c_language_data): ...this.
3680 (class c_language): New class.
3681 (c_language_defn): New static global.
3682 (cplus_language_defn): Convert to...
3683 (cplus_language_data): ...this.
3684 (class cplus_language): New class.
3685 (cplus_language_defn): New static global.
3686 (asm_language_defn): Convert to...
3687 (asm_language_data): ...this.
3688 (class asm_language): New class.
3689 (asm_language_defn): New static global.
3690 (minimal_language_defn): Convert to...
3691 (minimal_language_data): ...this.
3692 (class minimal_language): New class.
3693 (minimal_language_defn): New static global.
3694 * gdb/d-lang.c (d_language_defn): Convert to...
3695 (d_language_data): ...this.
3696 (class d_language): New class.
3697 (d_language_defn): New static global.
3698 * gdb/f-lang.c (f_language_defn): Convert to...
3699 (f_language_data): ...this.
3700 (class f_language): New class.
3701 (f_language_defn): New static global.
3702 * gdb/go-lang.c (go_language_defn): Convert to...
3703 (go_language_data): ...this.
3704 (class go_language): New class.
3705 (go_language_defn): New static global.
3706 * gdb/language.c (unknown_language_defn): Remove declaration.
3707 (current_language): Initialize to nullptr, real initialization is
3708 moved to _initialize_language.
3709 (languages): Delete global.
3710 (language_defn::languages): Define.
3711 (set_language_command): Use language_defn::languages.
3712 (set_language): Likewise.
3713 (range_error): Likewise.
3714 (language_enum): Likewise.
3715 (language_def): Likewise.
3716 (add_set_language_command): Use language_def::languages for the
3717 language list, and language_def to lookup language pointers.
3718 (skip_language_trampoline): Use language_defn::languages.
3719 (unknown_language_defn): Convert to...
3720 (unknown_language_data): ...this.
3721 (class unknown_language): New class.
3722 (unknown_language_defn): New static global.
3723 (auto_language_defn): Convert to...
3724 (auto_language_data): ...this.
3725 (class auto_language): New class.
3726 (auto_language_defn): New static global.
3727 (language_gdbarch_post_init): Use language_defn::languages.
3728 (_initialize_language): Initialize current_language.
3729 * gdb/language.h (struct language_defn): Rename to...
3730 (struct language_data): ...this.
3731 (struct language_defn): New.
3732 (auto_language_defn): Delete.
3733 (unknown_language_defn): Delete.
3734 (minimal_language_defn): Delete.
3735 (ada_language_defn): Delete.
3736 (asm_language_defn): Delete.
3737 (c_language_defn): Delete.
3738 (cplus_language_defn): Delete.
3739 (d_language_defn): Delete.
3740 (f_language_defn): Delete.
3741 (go_language_defn): Delete.
3742 (m2_language_defn): Delete.
3743 (objc_language_defn): Delete.
3744 (opencl_language_defn): Delete.
3745 (pascal_language_defn): Delete.
3746 (rust_language_defn): Delete.
3747 * gdb/m2-lang.c (m2_language_defn): Convert to...
3748 (m2_language_data): ...this.
3749 (class m2_language): New class.
3750 (m2_language_defn): New static global.
3751 * gdb/objc-lang.c (objc_language_defn): Convert to...
3752 (objc_language_data): ...this.
3753 (class objc_language): New class.
3754 (objc_language_defn): New static global.
3755 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3756 (opencl_language_data): ...this.
3757 (class opencl_language): New class.
3758 (opencl_language_defn): New static global.
3759 * gdb/p-lang.c (pascal_language_defn): Convert to...
3760 (pascal_language_data): ...this.
3761 (class pascal_language): New class.
3762 (pascal_language_defn): New static global.
3763 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3764 language pointer, update comment format.
3765 * gdb/rust-lang.c (rust_language_defn): Convert to...
3766 (rust_language_data): ...this.
3767 (class rust_language): New class.
3768 (rust_language_defn): New static global.
3770 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3772 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3774 <m_stmt_at_address>: New member variable.
3775 (lnp_state_machine::record_line): Don't record some lines, update
3776 tracking of is_stmt at the same address.
3777 (lnp_state_machine::lnp_state_machine): Initialise new member
3780 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3782 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3783 "-include gnu-nat-mig.h".
3784 * gnu-nat-mig.h: New file.
3785 * gnu-nat.c: Include "gnu-nat-mig.h".
3786 (exc_server, msg_reply_server, notify_server,
3787 process_reply_server): Remove declarations.
3789 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3791 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3792 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3793 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3794 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3795 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3796 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3797 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3798 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3799 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3800 to gnu_nat_target class.
3801 * gnu-nat.c: Likewise.
3802 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3803 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3804 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3806 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3807 instead of `gnu_target'.
3809 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3811 * i386-gnu-tdep.c: Include "gdbcore.h"
3812 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3813 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3814 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3815 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3816 i386_gnu_sigcontext_addr): New functions
3817 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3818 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3821 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3823 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3824 before fork_inferior call. Avoid calling it if target_is_pushed returns
3827 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3829 * gnu-nat.h (gnu_target): New variable declaration.
3830 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3832 * gnu-nat.c (gnu_target): New variable.
3833 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3834 add_thread_silent, and add_thread calls.
3835 (gnu_nat_target::create_inferior): Pass gnu_target to
3836 add_thread_silent, thread_change_ptid call.
3837 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3840 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3842 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3843 (gnu_nat_target::find_memory_regions): Remove unused
3844 `old_address' variable.
3846 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3848 * gnu-nat.c: Include "gdbarch.h".
3850 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3852 * reply_mig_hack.awk (Error return): Cast function through
3853 void *, to bypass compiler function call check.
3855 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3857 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3858 $(srcdir)/reply_mig_hack.awk.
3860 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3862 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3864 2020-05-30 Jonny Grant <jg@jguk.org>
3866 * configure.ac (ACX_BUGURL): change bug URL to https.
3868 2020-05-30 Pedro Alves <palves@redhat.com>
3870 * cp-support.c (replace_typedefs_template): New.
3871 (replace_typedefs_qualified_name): Handle
3872 DEMANGLE_COMPONENT_TEMPLATE.
3874 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3876 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3877 dwarf2/index-cache.h, dwarf2/index-write.c,
3878 dwarf2/index-write.h, dwarf2/line-header.c,
3879 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3880 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3881 variables and fields from `dwarf2_per_objfile` to just
3882 `per_objfile` throughout.
3884 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3886 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3887 <push_dwarf_reg_entry_value>: Add comment.
3889 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3890 Keith Seitz <keiths@redhat.com>
3892 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3893 instead of PyEval_ReleaseLock.
3894 (class gdbpy_gil): Move to earlier in file.
3895 (finalize_python): Set gdb_python_initialized.
3896 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3897 when not initialized.
3899 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3901 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3902 <push_dwarf_reg_entry_value>: Remove assert. Override
3903 per_objfile with caller_per_objfile.
3905 2020-05-28 Tom de Vries <tdevries@suse.de>
3907 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3908 PR gold/15646 workaround to symbol kind "type".
3910 2020-05-27 Tom Tromey <tromey@adacore.com>
3912 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3914 2020-05-27 Tom Tromey <tromey@adacore.com>
3916 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3917 Use htab_find_with_hash.
3918 <add_abbrev>: Remove "abbrev_number" parameter.
3919 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3920 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3921 (hash_abbrev): Add comment.
3922 (abbrev_table::lookup_abbrev): Move to header file.
3923 (abbrev_table::read): Update.
3925 2020-05-27 Tom Tromey <tromey@adacore.com>
3927 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3929 <canonical_name>: New member.
3930 <raw_name>: Rename from "name".
3931 (partial_die_info): Initialize canonical_name.
3932 (scan_partial_symbols): Check raw_name.
3933 (partial_die_parent_scope, partial_die_full_name)
3934 (add_partial_symbol, add_partial_subprogram)
3935 (add_partial_enumeration, load_partial_dies): Use "name" method.
3936 (partial_die_info::name): New method.
3937 (partial_die_info::read, guess_partial_die_structure_name)
3938 (partial_die_info::fixup): Update.
3940 2020-05-27 Tom Tromey <tromey@adacore.com>
3942 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3943 <get_ref_die_offset>: Inline.
3944 <get_ref_die_offset_complaint>: New method.
3945 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3946 (attribute::get_ref_die_offset_complaint): Rename from
3947 get_ref_die_offset. Just issue complaint.
3949 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3951 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3953 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3955 * exec.c (exec_file_attach): Use errno value of first openp failure.
3957 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3959 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3960 Don't close thread handle.
3962 2020-05-27 Tom Tromey <tom@tromey.com>
3963 Simon Marchi <simon.marchi@efficios.com>
3965 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3967 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3969 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3970 dwarf2_per_bfd_objfile_data_key>: New globals.
3971 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3972 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3973 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3975 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3976 short-circuit when sharing.
3977 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3978 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3980 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3982 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3984 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3985 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3987 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3989 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3990 build_name_components, find_name_components_bounds>:
3991 Add per_objfile parameter.
3992 (struct mapped_index) <symbol_name_at>: Likewise.
3993 (struct mapped_debug_names): Remove constructor.
3994 <dwarf2_per_objfile>: Remove field.
3995 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3996 (mapped_index_base::find_name_components_bounds,
3997 mapped_index_base::build_name_components,
3998 dw2_expand_symtabs_matching_symbol): Likewise.
3999 (class mock_mapped_index) <symbol_name_at>: Likewise.
4000 (check_match): Likewise.
4001 (check_find_bounds_finds): Likewise.
4002 (test_mapped_index_find_name_component_bounds): Update.
4003 (CHECK_MATCH): Update.
4004 (dw2_expand_symtabs_matching): Update.
4005 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
4006 per_objfile parameter.
4007 <find_vec_in_debug_names>: Likewise.
4008 <m_per_objfile>: New field.
4009 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
4011 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
4012 (dw2_debug_names_iterator::next): Update.
4013 (dw2_debug_names_lookup_symbol): Update.
4014 (dw2_debug_names_expand_symtabs_for_function): Update.
4015 (dw2_debug_names_map_matching_symbols): Update.
4016 (dw2_debug_names_expand_symtabs_matching): Update.
4017 (dwarf2_read_debug_names): Update.
4019 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4021 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
4022 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
4023 move to dwarf2_per_objfile.
4024 <read_in_chain>: Remove.
4025 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
4026 remove_all_cus, age_comp_units>: New methods.
4027 <m_dwarf2_cus>: New member.
4028 (struct dwarf2_per_cu_data) <cu>: Remove.
4029 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
4030 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
4031 moved to methods of dwarf2_per_objfile.
4032 (dwarf2_clear_marks): Remove.
4033 (dwarf2_queue_item::~dwarf2_queue_item): Update.
4034 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
4035 (dwarf2_per_bfd::free_cached_comp_units): Remove.
4036 (dwarf2_per_objfile::remove_all_cus): New.
4037 (class free_cached_comp_units) <~free_cached_comp_units>:
4040 (dw2_do_instantiate_symtab): Adjust.
4041 (fill_in_sig_entry_from_dwo_entry): Adjust.
4042 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4043 (cutu_reader::cutu_reader): Likewise.
4044 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
4045 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
4046 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
4047 and dwarf2_per_objfile::age_comp_units.
4048 (load_partial_comp_unit): Update.
4049 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
4050 (process_queue): Likewise.
4051 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
4053 (dwarf2_read_addr_index): Likewise.
4054 (follow_die_offset): Likewise.
4055 (dwarf2_fetch_die_loc_sect_off): Likewise.
4056 (dwarf2_fetch_constant_bytes): Likewise.
4057 (dwarf2_fetch_die_type_sect_off): Likewise.
4058 (follow_die_sig_1): Likewise.
4059 (load_full_type_unit): Likewise.
4060 (read_signatured_type): Likewise.
4061 (dwarf2_cu::dwarf2_cu): Don't set cu field.
4062 (dwarf2_cu::~dwarf2_cu): Remove.
4063 (dwarf2_per_objfile::get_cu): New.
4064 (dwarf2_per_objfile::set_cu): New.
4065 (age_cached_comp_units): Rename to...
4066 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
4067 to std::unordered_map.
4068 (free_one_cached_comp_unit): Rename to...
4069 (dwarf2_per_objfile::remove_cu): ... this. Adjust
4070 to std::unordered_map.
4071 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
4072 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
4073 a dwarf2_per_objfile in data.
4074 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
4075 (dwarf2_clear_marks): Remove.
4077 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4079 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
4080 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
4081 (init_tu_and_read_dwo_dies): Likewise.
4082 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
4083 (cutu_reader::cutu_reader): Likewise.
4084 (load_partial_comp_unit): Likewise.
4085 (process_psymtab_comp_unit): Update.
4086 (build_type_psymtabs_1): Update.
4087 (process_skeletonless_type_unit): Update.
4088 (load_full_comp_unit): Update.
4089 (find_partial_die): Update.
4090 (dwarf2_read_addr_index): Update.
4091 (read_signatured_type): Update.
4093 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4095 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
4096 m_header_read_in>: New fields.
4097 <get_header>: New method.
4098 * dwarf2/read.c (per_cu_header_read_in): Remove.
4099 (dwarf2_per_cu_data::get_header): New.
4100 (dwarf2_per_cu_data::addr_size): Update.
4101 (dwarf2_per_cu_data::offset_size): Update.
4102 (dwarf2_per_cu_data::ref_addr_size): Update.
4104 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4106 * dwarf2/read.c (load_cu): Return dwarf2_cu.
4107 (dw2_do_instantiate_symtab): Update.
4108 (queue_and_load_all_dwo_tus): Change parameter from
4109 dwarf2_per_cu_data to dwarf2_cu.
4110 (dwarf2_fetch_die_loc_sect_off): Update.
4111 (dwarf2_fetch_constant_bytes): Update.
4112 (dwarf2_fetch_die_type_sect_off): Update.
4114 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4116 * dwarf2/read.c (process_full_comp_unit,
4117 process_full_type_unit): Remove per_cu, per_objfile paramters.
4118 Add dwarf2_cu parameter.
4119 (process_queue): Update.
4121 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4123 * dwarf2/read.c (create_cu_from_index_list): Replace
4124 dwarf2_per_objfile parameter with dwarf2_per_bfd.
4125 (create_cus_from_index_list): Likewise.
4126 (create_cus_from_index): Likewise.
4127 (create_signatured_type_table_from_index): Likewise.
4128 (create_cus_from_debug_names_list): Likewise.
4129 (create_cus_from_debug_names): Likewise.
4130 (dwarf2_read_gdb_index): Update.
4131 (dwarf2_read_debug_names): Update.
4133 2020-05-27 Tom Tromey <tom@tromey.com>
4134 Simon Marchi <simon.marchi@efficios.com>
4136 * dwarf2/read.h (struct dwarf2_per_objfile)
4137 <get_type_for_signatured_type, set_type_for_signatured_type>:
4139 <m_type_map>: New member.
4140 (struct signatured_type) <type>: Remove.
4142 (dwarf2_per_objfile::get_type_for_signatured_type,
4143 dwarf2_per_objfile::set_type_for_signatured_type): New.
4144 (get_signatured_type): Use new methods.
4146 2020-05-27 Tom Tromey <tom@tromey.com>
4147 Simon Marchi <simon.marchi@efficios.com>
4149 * dwarf2/read.h (struct type_unit_group_unshareable): New.
4150 (struct dwarf2_per_objfile) <type_units>: New member.
4151 <get_type_unit_group_unshareable>: New method.
4152 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
4153 num_symtabs, symtabs>: Remove; move to
4154 type_unit_group_unshareable.
4155 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
4156 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
4157 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
4159 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4161 * dwarf2/read.h (struct dwarf2_per_cu_data):
4162 <dwarf2_per_objfile>: Remove.
4163 * dwarf2/read.c (create_cu_from_index_list): Don't assign
4165 (create_signatured_type_table_from_index): Likewise.
4166 (create_signatured_type_table_from_debug_names): Likewise.
4167 (create_debug_type_hash_table): Likewise.
4168 (fill_in_sig_entry_from_dwo_entry): Likewise.
4169 (create_type_unit_group): Likewise.
4170 (read_comp_units_from_section): Likewise.
4171 (create_cus_hash_table): Likewise.
4173 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4175 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
4176 dwarf2_per_cu_data::dwarf2_per_objfile.
4177 (compute_compunit_symtab_includes): Likewise.
4178 (dwarf2_cu::start_symtab): Likewise.
4180 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4182 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
4184 * dwarf2/read.c (get_die_type_at_offset): Likewise.
4185 (read_namespace_alias): Update.
4186 (lookup_die_type): Update.
4187 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
4188 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
4190 (disassemble_dwarf_expression): Update.
4192 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4194 * dwarf2/read.h (struct dwarf2_queue_item): Add
4195 dwarf2_per_objfile parameter, assign new parameter.
4196 <per_objfile>: New field.
4197 * dwarf2/read.c (free_one_cached_comp_unit): Add
4198 dwarf2_per_objfile parameter.
4199 (queue_comp_unit): Likewise.
4200 (dw2_do_instantiate_symtab): Update.
4201 (process_psymtab_comp_unit): Update.
4202 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
4203 (process_imported_unit_die): Update.
4204 (queue_and_load_dwo_tu): Update.
4205 (follow_die_offset): Update.
4206 (follow_die_sig_1): Update.
4208 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4210 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
4211 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
4212 (read_call_site_scope): Assign per_objfile.
4213 (dwarf2_per_cu_data::objfile): Remove.
4214 * gdbtypes.h (struct call_site) <per_objfile>: New member.
4215 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
4216 dwarf2_per_objfile parameter.
4217 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
4218 dwarf2_per_objfile parameter.
4219 (dwarf_expr_reg_to_entry_parameter): Add output
4220 dwarf2_per_objfile parameter.
4221 (locexpr_get_frame_base): Update.
4222 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
4223 <push_dwarf_reg_entry_value>: Update.
4224 <call_site_to_target_addr>: Update.
4225 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
4227 (value_of_dwarf_reg_entry): Update.
4228 (rw_pieced_value): Update.
4229 (indirect_synthetic_pointer): Update.
4230 (dwarf2_evaluate_property): Update.
4231 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
4233 (locexpr_read_variable): Update.
4234 (locexpr_get_symbol_read_needs): Update.
4235 (loclist_read_variable): Update.
4237 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4239 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
4240 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4241 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4243 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
4244 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
4245 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
4247 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
4248 sect_variable_value): Add dwarf2_per_objfile parameter.
4249 (class dwarf_evaluate_loc_desc) <dwarf_call,
4250 dwarf_variable_value>: Update.
4251 (fetch_const_value_from_synthetic_pointer): Add
4252 dwarf2_per_objfile parameter.
4253 (fetch_const_value_from_synthetic_pointer): Update.
4254 (coerced_pieced_ref): Update.
4255 (class symbol_needs_eval_context) <dwarf_call,
4256 dwarf_variable_value>: Update.
4257 (dwarf2_compile_expr_to_ax): Update.
4259 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4261 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
4263 (dwarf2_evaluate_loc_desc_full): Update.
4265 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4267 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
4269 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
4270 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
4271 dwarf2_per_objfile parameter.
4272 (decode_debug_loc_dwo_addresses): Likewise.
4273 (dwarf2_find_location_expression): Update.
4274 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
4275 (locexpr_describe_location_piece): Add dwarf2_per_objfile
4277 (disassemble_dwarf_expression): Add dwarf2_per_objfile
4279 (locexpr_describe_location_1): Likewise.
4280 (locexpr_describe_location): Update.
4282 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4284 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
4286 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
4287 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
4288 (dwarf2_compile_property_to_c): Update.
4289 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
4290 use text offset from objfile.
4291 (locexpr_tracepoint_var_ref): Update.
4292 (locexpr_generate_c_location): Update.
4293 (loclist_describe_location): Update.
4294 (loclist_tracepoint_var_ref): Update.
4295 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
4296 dwarf2_per_objfile parameter.
4297 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
4298 use text offset from objfile.
4299 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
4301 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4303 * dwarf2/expr.h (struct dwarf_expr_context)
4304 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
4306 <per_objfile>: New member.
4307 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
4308 dwarf2_per_objfile parameter. Don't set offset, set
4310 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
4311 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
4312 a dwarf2_per_objfile object instead of an offset.
4313 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
4315 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
4316 to dwarf2_expr_executor constructor. Don't set offset.
4317 (dwarf2_fetch_cfa_info): Update.
4318 (struct dwarf2_frame_cache) <text_offset>: Remove.
4319 <per_objfile>: New field.
4320 (dwarf2_frame_cache): Update.
4321 (dwarf2_frame_prev_register): Update.
4322 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
4323 <dwarf_evaluate_loc_desc>: Add constructor.
4324 (dwarf2_evaluate_loc_desc_full): Update.
4325 (dwarf2_locexpr_baton_eval): Update.
4326 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
4328 (dwarf2_loc_desc_get_symbol_read_needs): Update.
4330 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4332 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
4333 addr_sized_int_type>: Move to dwarf2_cu.
4334 <int_type>: Move to dwarf2_per_objfile.
4335 (struct dwarf2_per_objfile) <int_type>: Move here.
4336 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
4337 addr_sized_int_type>: Move here.
4338 (read_func_scope): Update.
4339 (read_array_type): Update.
4340 (read_tag_string_type): Update.
4341 (attr_to_dynamic_prop): Update.
4342 (dwarf2_per_cu_data::int_type): Rename to...
4343 (dwarf2_per_objfile::int_type): ... this.
4344 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4345 (dwarf2_cu::addr_sized_int_type): ... this.
4346 (read_subrange_type): Update.
4347 (dwarf2_per_cu_data::addr_type): Rename to...
4348 (dwarf2_cu::addr_type): ... this.
4349 (set_die_type): Update.
4351 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4353 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4354 data through per_cu->cu.
4356 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4358 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4359 dwarf2_per_cu_data parameter fo dwarf2_cu.
4360 (lookup_dwo_type_unit): Likewise.
4361 (read_cutu_die_from_dwo): Likewise.
4362 (lookup_dwo_unit): Likewise.
4363 (open_and_init_dwo_file): Likewise.
4364 (lookup_dwo_cutu): Likewise.
4365 (lookup_dwo_comp_unit): Likewise.
4366 (lookup_dwo_type_unit): Likewise.
4367 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4368 (cutu_reader::cutu_reader): Update.
4370 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4372 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4374 (process_full_type_unit): Likewise.
4375 (process_queue): Update.
4377 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4379 * dwarf2/read.c (recursively_compute_inclusions): Add
4380 dwarf2_per_objfile parameter.
4381 (compute_compunit_symtab_includes): Likewise.
4382 (process_cu_includes): Update.
4384 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4386 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4388 (create_type_unit_group): Update.
4389 (process_psymtab_comp_unit_reader): Update.
4390 (build_type_psymtabs_reader): Update.
4392 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4394 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4395 object through m_this_cu->cu.
4397 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4399 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4401 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4403 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4405 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4406 per_objfile parameter.
4407 (load_full_type_unit): Add per_objfile parameter.
4408 (read_signatured_type): Likewise.
4409 (load_full_comp_unit): Likewise.
4410 (load_cu): Likewise.
4411 (dw2_do_instantiate_symtab): Likewise.
4412 (dw2_get_file_names): Likewise.
4413 (dw2_map_symtabs_matching_filename): Update.
4414 (dw_expand_symtabs_matching_file_matcher): Update.
4415 (dw2_map_symbol_filenames): Update.
4416 (process_psymtab_comp_unit): Add per_objfile parameter.
4417 (build_type_psymtabs_1): Update.
4418 (process_skeletonless_type_unit): Update.
4419 (dwarf2_build_psymtabs_hard): Update.
4420 (load_partial_comp_unit): Add per_objfile parameter.
4421 (scan_partial_symbols): Update.
4422 (load_full_comp_unit): Add per_objfile parameter.
4423 (process_imported_unit_die): Update.
4424 (create_cus_hash_table): Update.
4425 (find_partial_die): Update.
4426 (dwarf2_read_addr_index): Update.
4427 (follow_die_offset): Update.
4428 (dwarf2_fetch_die_loc_sect_off): Update.
4429 (dwarf2_fetch_constant_bytes): Update.
4430 (dwarf2_fetch_die_type_sect_off): Update.
4431 (follow_die_sig_1): Update.
4432 (load_full_type_unit): Add per_objfile parameter.
4433 (read_signatured_type): Likewise.
4435 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4437 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4440 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4442 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4443 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4444 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4446 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4447 (create_cus_from_index): Update.
4448 (dwarf2_read_gdb_index): Update.
4449 (create_cus_from_debug_names): Update.
4450 (dwarf2_read_debug_names): Update.
4451 (get_abbrev_section_for_cu): Update.
4452 (create_all_comp_units): Update.
4453 (read_attribute_value): Update.
4454 (get_debug_line_section): Update.
4455 * dwarf2/index-cache.c (index_cache::store): Update.
4456 * dwarf2/index-write.c (save_gdb_index_command): Update.
4457 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4459 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4461 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4463 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4464 dwarf2_per_cu_data::per_bfd.
4465 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4466 (create_type_unit_group): Likewise.
4467 (queue_comp_unit): Remove reference to
4468 per_cu->dwarf2_per_objfile.
4469 (maybe_queue_comp_unit): Likewise.
4470 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4471 (create_cus_hash_table): Assign new field.
4473 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4475 * dwarf2/read.c: Replace
4476 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4477 dwarf2_cu->per_objfile throughout.
4479 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4481 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4482 parameter, don't use per_cu->dwarf2_per_objfile.
4483 (dw2_instantiate_symtab): Likewise.
4484 (dw2_find_last_source_symtab): Update.
4485 (dw2_map_expand_apply): Update.
4486 (dw2_lookup_symbol): Update.
4487 (dw2_expand_symtabs_for_function): Update.
4488 (dw2_expand_all_symtabs): Update.
4489 (dw2_expand_symtabs_with_fullname): Update.
4490 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4491 don't use per_cu->dwarf2_per_objfile.
4492 (dw2_expand_marked_cus): Update.
4493 (dw2_find_pc_sect_compunit_symtab): Update.
4494 (dw2_debug_names_lookup_symbol): Update.
4495 (dw2_debug_names_expand_symtabs_for_function): Update.
4496 (dw2_debug_names_map_matching_symbols): Update.
4497 (dwarf2_psymtab::expand_psymtab): Update.
4499 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4501 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4502 <per_objfile>: New member.
4503 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4504 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4506 (cutu_reader::cutu_reader): Update.
4507 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4509 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4511 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4512 struct dwarf2_per_objfile.
4513 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4515 * dwarf2/read.c (set_die_type): Update.
4516 (get_die_type_at_offset): Update.
4518 2020-05-27 Tom Tromey <tom@tromey.com>
4519 Simon Marchi <simon.marchi@efficios.com>
4521 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4523 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4524 get_symtab, set_symtab>: New methods.
4525 <m_symtabs>: New field.
4526 (struct dwarf2_psymtab): Derive from partial_symtab.
4527 <readin_p, get_compunit_symtab>: Declare methods.
4528 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4529 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4531 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4532 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4533 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4534 (dw2_symtab_iter_next, dw2_print_stats)
4535 (dw2_expand_symtabs_with_fullname)
4536 (dw2_expand_symtabs_matching_one)
4537 (dw_expand_symtabs_matching_file_matcher)
4538 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4539 (dw2_debug_names_iterator::next)
4540 (dw2_debug_names_map_matching_symbols)
4541 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4542 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4543 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4545 (get_compunit_symtab, process_full_comp_unit)
4546 (process_full_type_unit): Update.
4547 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4549 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4551 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4552 then introduce a new dwarf2_per_objfile type.
4553 <read_line_string>: Move to the new dwarf2_per_objfile type.
4554 <objfile>: Likewise.
4555 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4556 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4557 dwarf2_per_objfile->per_bfd.
4558 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4559 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4560 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4561 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4562 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4563 (dwarf2_per_objfile::locate_sections): Rename to...
4564 (dwarf2_per_bfd::locate_sections): ... this.
4565 (dwarf2_per_objfile::get_cutu): Rename to...
4566 (dwarf2_per_bfd::get_cutu): ... this.
4567 (dwarf2_per_objfile::get_cu): Rename to...
4568 (dwarf2_per_bfd::get_cu): ... this.
4569 (dwarf2_per_objfile::get_tu): Rename to...
4570 (dwarf2_per_bfd::get_tu): ... this.
4571 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4572 (dwarf2_per_bfd::allocate_per_cu): ... this.
4573 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4574 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4575 (get_gdb_index_contents_ftype): Change parameter from
4576 dwarf2_per_objfile to dwarf2_per_bfd.
4577 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4578 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4580 2020-05-27 Tom Tromey <tom@tromey.com>
4581 Simon Marchi <simon.marchi@efficios.com>
4583 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4584 (allocate_piece_closure): Set "per_objfile" member.
4585 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4586 (locexpr_describe_location, loclist_describe_location): Use new
4588 * dwarf2/read.c (read_call_site_scope)
4589 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4590 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4591 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4592 handle_data_member_location): Set per_objfile member.
4593 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4595 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4597 2020-05-27 Tom Tromey <tom@tromey.com>
4599 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4600 allocate_signatured_type>: Declare new methods.
4601 <m_num_psymtabs>: New member.
4602 (struct dwarf2_per_cu_data) <index>: New member.
4603 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4604 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4605 (create_cu_from_index_list): Use allocate_per_cu.
4606 (create_signatured_type_table_from_index)
4607 (create_signatured_type_table_from_debug_names)
4608 (create_debug_type_hash_table, add_type_unit)
4609 (read_comp_units_from_section): Use allocate_signatured_type.
4611 2020-05-27 Tom Tromey <tom@tromey.com>
4613 * psymtab.c (partial_map_expand_apply)
4614 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4615 (psym_lookup_global_symbol_language)
4616 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4617 (psym_print_stats, psym_expand_symtabs_for_function)
4618 (psym_map_symbol_filenames, psym_map_matching_symbols)
4619 (psym_expand_symtabs_matching)
4620 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4621 (maintenance_check_psymtabs): Update.
4622 * psympriv.h (struct partial_symtab) <readin_p,
4623 get_compunit_symtab>: Add objfile parameter.
4624 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4626 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4627 get_compunit_symtab>: Likewise.
4628 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4630 2020-05-27 Tom Tromey <tom@tromey.com>
4632 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4634 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4635 (create_cu_from_index_list)
4636 (create_signatured_type_table_from_index)
4637 (create_signatured_type_table_from_debug_names)
4638 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4639 (dwarf2_create_include_psymtab)
4640 (create_debug_type_hash_table, add_type_unit)
4641 (create_type_unit_group, read_comp_units_from_section)
4642 (dwarf2_compute_name, create_cus_hash_table)
4643 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4644 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4646 (dw2_get_real_path): Likewise. Change argument to
4649 2020-05-27 Luis Machado <luis.machado@linaro.org>
4652 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4653 for ldrd (immediate).
4655 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4657 * command.h: Add comment giving the name of class_tui.
4658 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4659 create the fake command for the help for class_tui.
4661 2020-05-26 Tom Tromey <tromey@adacore.com>
4663 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4664 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4665 (val_atr): New function.
4666 (value_val_atr): Use it.
4667 * ada-valprint.c (print_optional_low_bound): Change low bound
4669 (val_print_packed_array_elements): Don't call discrete_position.
4670 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4671 discrete_position for enum types.
4672 * language.c (default_print_array_index): Change type.
4673 * language.h (struct language_defn) <la_print_array_index>: Add
4674 index_type parameter, change type of index_value.
4675 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4676 (default_print_array_index): Update.
4677 * valprint.c (maybe_print_array_index): Don't call
4678 value_from_longest. Update.
4679 (value_print_array_elements): Don't call discrete_position.
4681 2020-05-26 Tom Tromey <tromey@adacore.com>
4683 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4684 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4686 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4689 * avr-tdep.c (avr_integer_to_address): Return data or code
4690 address accordingly to the second 'type' argument of the
4693 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4695 * infcmd.c, inferior.h: (construct_inferior_arguments):
4696 Moved function from here to gdbsupport/common-inferior.{h,cc}
4698 2020-05-23 Tom Tromey <tom@tromey.com>
4700 Revert commit eca1f90c:
4701 * NEWS: Remove entry for completion styling.
4702 * completer.c (_rl_completion_prefix_display_length): Move
4704 (gdb_fnprint): Revert.
4705 (gdb_display_match_list_1): Likewise.
4706 * cli/cli-style.c (completion_prefix_style)
4707 (completion_difference_style, completion_suffix_style): Remove.
4708 (_initialize_cli_style): Revert.
4709 * cli/cli-style.h (completion_prefix_style)
4710 (completion_difference_style, completion_suffix_style): Don't
4713 2020-05-24 Pedro Alves <palves@redhat.com>
4715 * symtab.c (completion_list_add_name): Return boolean indication
4716 of whether the symbol matched.
4717 (completion_list_add_symbol): Don't try to remove C++ aliases if
4718 the symbol didn't match in the first place.
4719 * symtab.h (completion_list_add_name): Return bool.
4721 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4723 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4726 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4730 2020-05-23 Tom Tromey <tom@tromey.com>
4732 * NEWS: Add entry for completion styling.
4733 * completer.c (_rl_completion_prefix_display_length): Move
4734 declaration earlier.
4735 (gdb_fnprint): Use completion_style.
4736 (gdb_display_match_list_1): Likewise.
4737 * cli/cli-style.c (completion_prefix_style)
4738 (completion_difference_style, completion_suffix_style): New
4740 (_initialize_cli_style): Register new globals.
4741 * cli/cli-style.h (completion_prefix_style)
4742 (completion_difference_style, completion_suffix_style): Declare.
4744 2020-05-23 Pedro Alves <palves@redhat.com>
4746 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4747 (parse_escape): Use ISDIGIT instead of isdigit.
4748 (puts_debug): Use gdb_isprint instead of isprint.
4749 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4750 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4751 ISSPACE instead of isspace.
4752 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4754 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4755 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4756 instead of isxdigit and ISDIGIT instead of isdigit.
4758 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4760 * gdbtypes.h (struct type) <field>: New method.
4761 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4764 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4766 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4767 (TYPE_FIELDS): Use type::fields. Change all call sites that
4768 modify the propery to use type::set_fields instead.
4770 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4772 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4773 type::num_fields instead.
4775 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4777 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4779 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4780 that modify the number of fields to use type::set_num_fields
4783 2020-05-22 Tom Tromey <tromey@adacore.com>
4785 * compile/compile-object-load.h (munmap_list_free): Don't
4788 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4790 * annotate.c (annotate_source_line): Update return type, add call
4791 to update current symtab and line.
4792 * annotate.h (annotate_source_line): Update return type, and
4793 extend header comment.
4794 * source.c (info_line_command): Check annotation_level before
4795 calling annotate_source_line.
4796 * stack.c (print_frame_info): If calling annotate_source_line
4797 returns true, then don't print any other source line information.
4799 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4801 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4803 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4805 * coffread.c (patch_type): Remove NULL check before xfree.
4806 * corefile.c (set_gnutarget): Likewise.
4807 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4808 * exec.c (build_section_table): Likewise.
4809 * remote.c (remote_target::pass_signals): Likewise.
4810 * utils.c (n_spaces): Likewise.
4811 * cli/cli-script.c (document_command): Likewise.
4812 * i386-windows-tdep.c (core_process_module_section): Likewise.
4813 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4815 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4817 * symfile.c (reread_symbols): Clear objfile's section_offsets
4818 vector and section indices, re-compute them by calling
4821 2020-05-20 Tom Tromey <tromey@adacore.com>
4823 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4824 (desc_one_bound, desc_index_type): Compute field name.
4826 2020-05-20 Tom de Vries <tdevries@suse.de>
4829 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4831 2020-05-20 Alan Modra <amodra@gmail.com>
4834 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4836 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4837 passed to bfd_set_filename.
4838 * symfile-mem.c (add_vsyscall_page): Likewise for string
4839 passed to symbol_file_add_from_memory.
4840 (symbol_file_add_from_memory): Make name param a const char* and
4843 2020-05-20 Alan Modra <amodra@gmail.com>
4845 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4846 rather than accessing bfd->filename directly.
4847 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4848 and use bfd_section_name.
4849 * dwarf2/frame.c (decode_frame_entry): Likewise.
4850 * exec.c (exec_set_section_address): Likewise.
4851 * solib-aix.c (solib_aix_bfd_open): Likewise.
4852 * stap-probe.c (get_stap_base_address): Likewise.
4853 * symfile.c (reread_symbols): Likewise.
4855 2020-05-19 Tom Tromey <tromey@adacore.com>
4857 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4859 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4861 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4863 2020-05-19 Pedro Alves <palves@redhat.com>
4865 * NEWS (set exec-file-mismatch): Adjust entry.
4866 * exec.c: Include "build-id.h".
4867 (validate_exec_file): Try to match build IDs instead of filenames.
4868 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4869 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4870 and pass down 'warn_if_slow'.
4871 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4872 gdb_bfd_open_closure to pass it down.
4873 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4875 2020-05-19 Pedro Alves <palves@redhat.com>
4877 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4878 * target.c (target_fileio_open_1): Rename to target_fileio_open
4879 and make extern. Use bool.
4880 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4881 (target_fileio_read_alloc_1): Adjust.
4882 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4883 (target_fileio_open_warn_if_slow): Delete declaration.
4885 2020-05-19 Pedro Alves <palves@redhat.com>
4887 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4890 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4892 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4893 whether disp is negative.
4895 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4897 * symfile.h (struct symfile_segment_data)
4898 <~symfile_segment_data>: Remove.
4899 <segment_info>: Change to std::vector.
4900 * symfile.c (default_symfile_segments): Update.
4901 * elfread.c (elf_symfile_segments): Update.
4903 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4905 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4907 <segment_bases, segment_sizes>: Remove.
4908 * symfile.c (default_symfile_segments): Update.
4909 * elfread.c (elf_symfile_segments): Update.
4910 * remote.c (remote_target::get_offsets): Update.
4911 * solib-target.c (solib_target_relocate_section_addresses):
4914 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4916 * symfile.h (struct symfile_segment_data): Initialize fields.
4917 <~symfile_segment_data>: Add.
4918 (symfile_segment_data_up): New.
4919 (struct sym_fns) <sym_segments>: Return a
4920 symfile_segment_data_up.
4921 (default_symfile_segments): Return a symfile_segment_data_up.
4922 (free_symfile_segment_data): Remove.
4923 (get_symfile_segment_data): Return a symfile_segment_data_up.
4924 * symfile.c (default_symfile_segments): Likewise.
4925 (get_symfile_segment_data): Likewise.
4926 (free_symfile_segment_data): Remove.
4927 (symfile_find_segment_sections): Update.
4928 * elfread.c (elf_symfile_segments): Return a
4929 symfile_segment_data_up.
4930 * remote.c (remote_target::get_offsets): Update.
4931 * solib-target.c (solib_target_relocate_section_addresses):
4933 * symfile-debug.c (debug_sym_segments): Return a
4934 symfile_segment_data_up.
4936 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4939 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4940 Hardcode register numbers.
4943 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4944 procfs_find_LDT_entry): Remove.
4945 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4946 procfs_find_LDT_entry): Remove.
4947 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4950 2020-05-17 Pedro Alves <palves@redhat.com>
4951 Andrew Burgess <andrew.burgess@embecosm.com>
4952 Keno Fischer <keno@juliacomputing.com>
4955 * breakpoint.c (build_target_condition_list): Update comments.
4956 (build_target_command_list): Update comments and skip matching
4958 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4959 a separate function. Simplify "set breakpoint auto-hw off"
4961 (insert_breakpoints): Update comment.
4962 (tracepoint_locations_match): New parameter. For breakpoints,
4963 compare location types too, if the caller wants to.
4964 (handle_automatic_hardware_breakpoints): New functions.
4965 (bp_location_is_less_than): Also sort by location type and
4966 hardware breakpoint length.
4967 (update_global_location_list): Handle "set breakpoint auto-hw on"
4969 (update_breakpoint_locations): Ask breakpoint_locations_match to
4970 ignore location types.
4972 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4974 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4977 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4979 * gdbtypes.h (struct type) <name, set_name>: New methods.
4980 (TYPE_CODE): Use type::name. Change all call sites used to set
4981 the name to use type::set_name instead.
4983 2020-05-16 Tom Tromey <tom@tromey.com>
4985 * top.c (quit_force): Update.
4986 * infrun.c (handle_no_resumed): Update.
4987 * top.h (all_uis): New function.
4990 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4992 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4994 2020-05-16 Pedro Alves <palves@redhat.com>
4997 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4999 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
5001 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
5003 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
5004 (sparc64_adi_info): Likewise.
5006 2020-05-15 Tom Tromey <tom@tromey.com>
5008 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
5010 (lookup_objfile_from_block): Remove.
5011 (lookup_symbol_in_block, lookup_symbol_in_static_block)
5012 (lookup_global_symbol): Use block_objfile.
5013 * symtab.h (lookup_objfile_from_block): Don't declare.
5014 * printcmd.c (clear_dangling_display_expressions): Use
5016 * parse.c (operator_check_standard): Use block_objfile.
5018 2020-05-15 Tom Tromey <tom@tromey.com>
5020 * language.c (language_alloc_type_symbol): Set
5022 * symtab.c (initialize_objfile_symbol): Remove.
5023 (allocate_symbol): Remove.
5024 (allocate_template_symbol): Remove.
5025 * dwarf2/read.c (fixup_go_packaging): Use "new".
5026 (new_symbol): Use "new".
5027 (read_variable): Don't call initialize_objfile_symbol. Use
5029 (read_func_scope): Use "new".
5030 * xcoffread.c (process_xcoff_symbol): Don't call
5031 initialize_objfile_symbol.
5032 (SYMBOL_DUP): Remove.
5033 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
5035 * symtab.h (allocate_symbol, initialize_objfile_symbol)
5036 (allocate_template_symbol): Don't declare.
5037 (struct symbol): Add copy constructor. Change defaults.
5038 * jit.c (finalize_symtab): Use "new".
5039 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
5041 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5042 (common_block_end): Use "new".
5043 * mdebugread.c (parse_symbol): Use "new".
5044 (new_symbol): Likewise.
5046 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5048 * NEWS: Mention changes to help and apropos.
5050 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5052 * command.h (enum command_class): Improve comments, document
5053 that class_alias is for user-defined aliases, give the class
5054 name for each class, remove unused class_xdb.
5055 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
5056 * breakpoint.c (_initialize_breakpoint): Replace class_alias
5058 * infcmd.c (_initialize_infcmd): Likewise.
5059 * reverse.c (_initialize_reverse): Likewise.
5060 * stack.c (_initialize_stack): Likewise.
5061 * symfile.c (_initialize_symfile): Likewise.
5062 * tracepoint.c (_initialize_tracepoint): Likewise.
5064 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5066 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
5067 when their aliased command is traversed.
5068 (help_cmd): Add fput_command_names_styled call to
5069 output command name and aliases when command has an alias.
5071 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5073 * cli/cli-decode.h (help_cmd_list): Remove declaration.
5074 * cli/cli-decode.c (help_cmd_list): Declare as static,
5075 remove prefix argument, use bool for recurse arg, rework to show the aliases of
5076 a command together with the command.
5077 (fput_command_name_styled, fput_command_names_styled): New functions.
5078 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
5079 fput_command_name_styled.
5080 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
5081 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
5083 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5085 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
5086 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
5087 * command.h (cmd_show_list): Likewise.
5088 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
5089 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
5091 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5093 * unittests/command-def-selftests.c (traverse_command_structure):
5094 Verify all commands of a list have the same prefix command and
5095 that only the top cmdlist commands have a null prefix.
5097 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5099 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
5100 as prefix, not one of its aliases.
5101 (set_cmd_prefix): Remove.
5102 (do_add_cmd): Centralize the setting of the prefix of a command, when
5103 command is defined after its full chain of prefix commands.
5104 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
5105 (add_setshow_cmd_full): Likewise.
5106 (update_prefix_field_of_prefixed_commands): New function.
5107 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
5108 update_prefix_field_of_prefixed_commands.
5109 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
5110 addresses of remote_set_cmdlist and remote_show_cmdlist given
5111 as argument, not the address of an argument.
5112 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
5113 * gdb/remote.c (_initialize_remote): Likewise.
5115 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5117 * cli/cli-cmds.c (alias_command): Check for an existing alias
5118 using lookup_cmd_composition, as valid_command_p is too strict
5119 and forbids aliases that are the prefix of an existing alias
5121 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
5122 command is properly recognised as a valid command.
5124 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5126 * unittests/help-doc-selftests.c: Rename to
5127 unittests/command-def-selftests.c
5128 * unittests/command-def-selftests.c (help_doc_tests): Update some
5130 (command_structure_tests, traverse_command_structure): New namespace
5132 (command_structure_invariants_tests): New function.
5133 (_initialize_command_def_selftests) Renamed from
5134 _initialize_help_doc_selftests, register command_structure_invariants
5137 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5139 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
5142 2020-05-15 Joel Brobecker <brobecker@adacore.com>
5144 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
5145 ada_is_fixed_point_type. Update all callers.
5146 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
5148 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
5150 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
5151 print_fixed_point_type. Update all callers.
5152 * ada-valprint.c (ada_value_print_num): Replace call to
5153 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
5155 2020-05-14 Kevin Buettner <kevinb@redhat.com>
5157 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
5159 (cpu_supports_bts): Add CV_AMD case.
5161 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
5162 Simon Marchi <simon.marchi@efficios.com>
5164 * infrun.c (stop_all_threads): Collect multiple wait events at
5167 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5169 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
5172 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
5174 * gdbtypes.h (struct type) <code, set_code>: New methods.
5175 (TYPE_CODE): Use type::code. Change all call sites used to set
5176 the code to use type::set_code instead.
5178 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5179 Tom de Vries <tdevries@suse.de>
5180 Pedro Alves <palves@redhat.com>
5183 * infrun.c (stop_all_threads): Do NOT ignore
5184 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
5185 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
5187 (handle_no_resumed): Remove code handling a live inferior with no
5189 * remote.c (has_single_non_exited_thread): New.
5190 (remote_target::update_thread_list): Do not delete a thread if is
5191 the last thread of the process.
5192 * thread.c (thread_select): Call delete_exited_threads instead of
5195 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5197 * infrun.c (stop_all_threads): Enable/disable thread events of all
5198 targets. Move a debug message denoting the end of the function
5199 into the SCOPED_EXIT block.
5201 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5203 * process-stratum-target.h: Include <set>.
5204 (all_non_exited_process_targets, switch_to_target_no_thread): New
5205 function declarations.
5206 * process-stratum-target.c (all_non_exited_process_targets)
5207 (switch_to_target_no_thread): New function implementations.
5209 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5211 * infrun.c (handle_inferior_event): Extract out a piece of code
5213 (mark_non_executing_threads): ...this new function.
5215 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5217 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
5220 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5222 * regcache.c (regcache_read_pc_protected): New function
5223 implementation that returns 0 if the PC cannot read via
5225 * infrun.c (proceed): Call 'regcache_read_pc_protected'
5226 instead of 'regcache_read_pc'.
5227 (keep_going_pass_signal): Ditto.
5229 2020-05-13 Tom Tromey <tromey@adacore.com>
5231 * ada-lang.c (align_value): Remove.
5232 (ada_template_to_fixed_record_type_1): Use align_up.
5234 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5236 * async-event.c: Update the copyright year.
5237 * async-event.h: Update the copyright year.
5239 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
5241 * objfiles.h (is_addr_in_objfile,
5242 shared_objfile_contains_address_p): Return bool.
5243 * objfile.c (is_addr_in_objfile,
5244 shared_objfile_contains_address_p): Return bool.
5246 2020-05-11 Tom Tromey <tromey@adacore.com>
5248 * cli/cli-cmds.c (info_command): Restore.
5249 (_initialize_cli_cmds): Use add_prefix_command for "info".
5250 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
5252 2020-05-11 Tom Tromey <tromey@adacore.com>
5254 * ada-lang.c (ada_value_primitive_field): Now public.
5255 * ada-lang.h (ada_value_primitive_field): Declare.
5256 * ada-valprint.c (print_field_values): Use
5257 ada_value_primitive_field for wrapper fields.
5259 2020-05-11 Tom de Vries <tdevries@suse.de>
5261 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
5264 2020-05-11 Tom de Vries <tdevries@suse.de>
5267 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
5268 with length 0, if not gdb-produced.
5269 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
5271 2020-05-09 Tom de Vries <tdevries@suse.de>
5274 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
5277 2020-05-09 Tom Tromey <tom@tromey.com>
5279 * top.c (server_command): Now bool.
5280 * top.h (server_command): Now bool.
5282 2020-05-08 Tom Tromey <tromey@adacore.com>
5284 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
5285 already being processed.
5287 2020-05-08 Tom Tromey <tom@tromey.com>
5289 * printcmd.c (struct display) <next>: Remove.
5290 <display>: New constructor.
5291 <exp_string>: Now a std::string.
5292 <enabled_p>: Now a bool.
5293 (display_number): Move definition earlier.
5294 (displays): Rename from display_chain. Now a std::vector.
5295 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
5296 (display_command): Update.
5297 (do_one_display, disable_display)
5298 (enable_disable_display_command, do_enable_disable_display):
5300 (free_display): Remove.
5301 (clear_displays): Rewrite.
5302 (delete_display): Update.
5303 (map_display_numbers): Use function_view. Remove "data"
5305 (do_delete_display): Remove.
5306 (undisplay_command): Update.
5307 (do_one_display, do_displays, disable_display)
5308 (info_display_command): Update.
5309 (do_enable_disable_display): Remove.
5310 (enable_disable_display_command)
5311 (clear_dangling_display_expressions): Update.
5313 2020-05-08 Tom Tromey <tom@tromey.com>
5315 * symtab.c (set_symbol_cache_size)
5316 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
5317 (maintenance_print_symbol_cache_statistics): Update.
5318 * symmisc.c (print_symbol_bcache_statistics)
5319 (print_objfile_statistics, maintenance_print_objfiles)
5320 (maintenance_info_symtabs, maintenance_check_symtabs)
5321 (maintenance_expand_symtabs, maintenance_info_line_tables):
5323 * symfile-debug.c (set_debug_symfile): Update.
5324 * source.c (forget_cached_source_info): Update.
5325 * python/python.c (gdbpy_progspaces): Update.
5326 * psymtab.c (maintenance_info_psymtabs): Update.
5327 * probe.c (parse_probes): Update.
5328 * linespec.c (iterate_over_all_matching_symtabs)
5329 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
5330 * guile/scm-progspace.c (gdbscm_progspaces): Update.
5331 * exec.c (exec_target::close): Update.
5332 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
5333 * breakpoint.c (print_one_breakpoint_location)
5334 (create_longjmp_master_breakpoint)
5335 (create_std_terminate_master_breakpoint): Update.
5336 * progspace.c (program_spaces): Now a std::vector.
5337 (maybe_new_address_space): Update.
5338 (add_program_space): Remove.
5339 (program_space::program_space): Update.
5340 (remove_program_space): Update.
5341 (number_of_program_spaces): Remove.
5342 (print_program_space, update_address_spaces): Update.
5343 * progspace.h (program_spaces): Change type.
5344 (ALL_PSPACES): Remove.
5345 (number_of_program_spaces): Don't declare.
5346 (struct program_space) <next>: Remove.
5348 2020-05-08 Tom Tromey <tom@tromey.com>
5350 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5351 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5352 (enable_break): Update.
5353 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5354 (frv_fdpic_find_canonical_descriptor): Update.
5355 (frv_fetch_objfile_link_map): Update.
5356 * progspace.c (program_space::free_all_objfiles): Update.
5357 (program_space::solibs): New method.
5358 * progspace.h (struct program_space) <solibs>: New method.
5359 * solist.h (master_so_list): Don't declare.
5360 (ALL_SO_LIBS): Remove.
5361 * solib.h (so_list_head): Remove.
5362 (update_solib_list): Update comment.
5363 * solib.c (master_so_list): Remove.
5364 (solib_used, update_solib_list, solib_add)
5365 (info_sharedlibrary_command, clear_solib)
5366 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5368 2020-05-08 Tom Tromey <tom@tromey.com>
5370 * extension.c (extension_languages): Now a std::array.
5371 (ALL_EXTENSION_LANGUAGES): Remove.
5372 (get_ext_lang_defn, get_ext_lang_of_file)
5373 (eval_ext_lang_from_control_command): Update.
5374 (finish_ext_lang_initialization)
5375 (auto_load_ext_lang_scripts_for_objfile)
5376 (ext_lang_type_printers::ext_lang_type_printers)
5377 (apply_ext_lang_type_printers)
5378 (ext_lang_type_printers::~ext_lang_type_printers)
5379 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5380 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5381 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5382 (get_matching_xmethod_workers, ext_lang_colorize)
5383 (ext_lang_before_prompt): Update.
5384 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5386 2020-05-08 Tom Tromey <tom@tromey.com>
5388 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5390 <swap_string, m_string>: Remove.
5391 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5393 * stabsread.c (define_symbol, read_type): Update.
5394 * linespec.c (find_linespec_symbols): Update.
5395 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5396 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5397 * dbxread.c (read_dbx_symtab): Update.
5398 * cp-support.h (cp_canonicalize_string_full)
5399 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5400 Return unique_xmalloc_ptr.
5401 * cp-support.c (inspect_type): Update.
5402 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5403 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5405 * c-typeprint.c (print_name_maybe_canonical): Update.
5406 * break-catch-throw.c (check_status_exception_catchpoint):
5409 2020-05-08 Tom de Vries <tdevries@suse.de>
5411 * infrun.c (follow_fork): Copy current_line and current_symtab to
5414 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5416 * async-event.c (struct async_signal_handler, struct
5417 async_event_handler): Reformat, remove typedef.
5419 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5421 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5422 access thistype->main_type->dyn_prop_list directly.
5424 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5426 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5427 (remove_dyn_prop): Remove. Update all users to use
5428 type::remove_dyn_prop.
5429 * gdbtypes.c (remove_dyn_prop): Rename to...
5430 (type::remove_dyn_prop): ... this.
5432 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5434 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5435 (add_dyn_prop): Remove. Update all users to use
5437 * gdbtypes.c (add_dyn_prop): Rename to...
5438 (type::add_dyn_prop): ... this.
5440 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5442 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5443 (get_dyn_prop): Remove. Update all users to use
5445 * gdbtypes.c (get_dyn_prop): Rename to...
5446 (type::dyn_prop): ... this.
5448 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5450 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5452 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5454 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5455 instruction, skip it if it's there.
5457 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5459 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5461 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5463 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5464 * gdbtypes.c (recursive_dump_type): Remove use of
5467 2020-05-03 Tom Tromey <tom@tromey.com>
5469 * breakpoint.c (catch_command, tcatch_command): Remove.
5470 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5471 add_show_prefix_cmd.
5472 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5473 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5475 (add_internal_problem_command): Use add_basic_prefix_cmd,
5476 add_show_prefix_cmd.
5477 * mips-tdep.c (set_mipsfpu_command): Remove.
5478 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5479 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5480 (_initialize_index_cache): Use add_basic_prefix_cmd.
5481 * memattr.c (dummy_cmd): Remove.
5482 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5483 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5484 (_initialize_tui_win): Use add_basic_prefix_cmd,
5485 add_show_prefix_cmd.
5486 * cli/cli-logging.c (set_logging_command): Remove.
5487 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5488 add_show_prefix_cmd.
5489 (show_logging_command): Remove.
5490 * target.c (target_command): Remove.
5491 (add_target): Use add_basic_prefix_cmd.
5493 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5495 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5497 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5499 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5502 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5504 * nbsd-nat.c (nbsd_enable_proc_events)
5505 (nbsd_nat_target::post_startup_inferior): Add.
5506 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5507 (nbsd_nat_target::update_thread_list): Rewrite.
5508 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5509 "PTRACE_LWP_CREATE".
5510 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5512 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5514 * stack.c (_initialize_stack): Remove duplicated creation
5515 of "frame" command and "f" alias.
5517 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5520 * gdbtypes.c (check_typedef): Calculate size of array of
5523 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5526 * i386-tdep.c (i386_push_dummy_call): Call
5527 i386_thiscall_push_dummy_call.
5528 (i386_thiscall_push_dummy_call): New function.
5529 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5530 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5531 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5533 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5535 * gdbarch.sh (do_read): Add shellcheck disable directive for
5538 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5540 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5541 "referenced but not assigned" warning.
5543 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5545 * gdbarch.sh: Remove code that sets fallbackdefault.
5547 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5549 * gdbarch.sh: Use shell operators && and || instead of
5552 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5554 * gdbarch.sh: Use $(...) instead of `...`.
5556 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5558 * gdbarch.sh: Use double quotes around variables.
5560 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5562 * gdbarch.sh: Use %s with printf, instead of variables in the
5565 2020-04-29 Tom Tromey <tromey@adacore.com>
5568 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5570 (read_enumeration_type): Call
5571 update_enumeration_type_from_children later. Update comments.
5572 (process_enumeration_scope): Don't create type fields.
5574 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5576 * nbsd-tdep.c: Include "xml-syscall.h".
5577 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5579 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5581 * nbsd-nat.c: Include "sys/wait.h".
5582 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5583 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5584 (nbsd_nat_target::remove_exec_catchpoint)
5585 (nbsd_nat_target::set_syscall_catchpoint): Add.
5586 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5587 (nbsd_nat_target::insert_exec_catchpoint)
5588 (nbsd_nat_target::remove_exec_catchpoint)
5589 (nbsd_nat_target::set_syscall_catchpoint): Add.
5590 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5591 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5592 `nbsd_get_syscall_number'.
5594 2020-04-29 Tom Tromey <tom@tromey.com>
5596 * stack.c (print_block_frame_labels): Remove.
5598 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5601 * ada-valprint.c (val_print_packed_array_elements): Move array
5602 end bracket to new line.
5603 (ada_val_print_string): Remove extra spaces before first array
5605 * c-valprint.c (c_value_print_array): Likewise.
5606 * m2-valprint.c (m2_print_array_contents): Likewise.
5607 (m2_value_print_inner): Likewise.
5608 * p-valprint.c (pascal_value_print_inner): Likewise.
5609 * valprint.c (generic_val_print_array): Likewise.
5610 (value_print_array_elements): Move first array element and array
5611 end bracket to new line.
5613 2020-04-29 Tom de Vries <tdevries@suse.de>
5616 * linespec.c (find_method): Fix ix calculation.
5618 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5620 * syscalls/update-netbsd.sh: New file.
5621 * syscalls/netbsd.xml: Regenerate.
5622 * data-directory/Makefile.in: Register `netbsd.xml' in
5625 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5627 * syscalls/update-freebsd.sh: Add double quotes.
5629 2020-04-28 Tom Tromey <tom@tromey.com>
5632 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5633 (cmdpy_init): Allow class_tui.
5635 2020-04-28 Mark Williams <mark@myosotissp.com>
5638 * dwarf2read.c: Add missing assingments to list_in_scope when
5639 start_symtab was already called.
5641 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5644 * dwarf2/read.c (offset_map_type): Use
5645 gdb:hash_enum<sect_offset> as hash function.
5647 2020-04-28 Tom de Vries <tdevries@suse.de>
5649 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5650 with DW_AT_signature.
5652 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5654 * configure.ac: Remove check for fs_base/gs_base in
5656 * configure: Re-generate.
5657 * config.in: Re-generate.
5658 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5659 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5660 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5662 2020-04-27 Luis Machado <luis.machado@linaro.org>
5664 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5665 problematic inline frame unwinding situation.
5666 * frame.c (frame_id_computed_p): New function.
5667 * frame.h (frame_id_computed_p): New prototype.
5669 2020-04-26 Tom Tromey <tom@tromey.com>
5671 * command.h (enum command_class) <class_pseudo>: Remove.
5673 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5675 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5678 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5680 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5681 `PT_GET_PROCESS_STATE' block.
5683 2020-04-24 Tom Tromey <tom@tromey.com>
5685 * symtab.h (symbol_get_demangled_name): Don't declare.
5686 * symtab.c (symbol_get_demangled_name): Remove.
5687 (general_symbol_info::natural_name)
5688 (general_symbol_info::demangled_name): Update.
5690 2020-04-24 Tom Tromey <tom@tromey.com>
5693 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5695 2020-04-24 Tom Tromey <tom@tromey.com>
5698 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5700 (new_symbol): Likewise.
5701 * compile/compile-object-load.c (get_out_value_type): Use
5702 symbol_matches_search_name.
5704 2020-04-24 Tom Tromey <tom@tromey.com>
5706 * dwarf2/read.c (add_partial_symbol): Do not call
5707 compute_and_set_names.
5709 2020-04-24 Tom Tromey <tom@tromey.com>
5711 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5714 2020-04-24 Tom Tromey <tom@tromey.com>
5716 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5717 (add_psymbol_to_list): New overload. Make old overload call new
5719 * psympriv.h (add_psymbol_to_list): New overload.
5721 2020-04-24 Tom Tromey <tom@tromey.com>
5723 * dwarf2/read.c (partial_die_info::read) <case
5724 DW_AT_linkage_name>: Use value_as_string.
5725 (dwarf2_string_attr): Use value_as_string.
5726 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5728 * dwarf2/attribute.c (attribute::value_as_string): New method.
5730 2020-04-24 Tom Tromey <tom@tromey.com>
5732 * symtab.c (general_symbol_info::natural_name)
5733 (general_symbol_info::demangled_name): Check for language_rust.
5735 2020-04-24 Tom Tromey <tom@tromey.com>
5737 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5738 (dwarf2_physname): ... from here.
5739 (partial_die_info::read): Add Rust "{" hack.
5741 2020-04-24 Tom Tromey <tom@tromey.com>
5743 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5745 (symbol_set_demangled_name): Don't declare.
5746 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5747 symbol_set_demangled_name.
5748 (general_symbol_info::set_language)
5749 (general_symbol_info::compute_and_set_names): Update.
5750 * minsyms.c (minimal_symbol_reader::install): Update.
5751 * dwarf2/read.c (new_symbol): Update.
5753 2020-04-24 Tom Tromey <tromey@adacore.com>
5756 * python/py-type.c (convert_field): Handle
5757 FIELD_LOC_KIND_DWARF_BLOCK.
5758 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5759 (typy_get_dynamic): Nw function.
5760 (type_object_getset): Add "dynamic".
5763 2020-04-24 Tom Tromey <tromey@adacore.com>
5765 * ada-typeprint.c (print_choices, print_variant_part)
5766 (print_record_field_types_dynamic): New functions.
5767 (print_record_field_types): Use print_record_field_types_dynamic.
5769 2020-04-24 Tom Tromey <tromey@adacore.com>
5771 * dwarf2/read.c (handle_data_member_location): New overload.
5772 (dwarf2_add_field): Use it.
5773 (decode_locdesc): Add "computed" parameter. Update comment.
5774 * gdbtypes.c (is_dynamic_type_internal): Also look for
5775 FIELD_LOC_KIND_DWARF_BLOCK.
5776 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5777 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5778 virtual base classes.
5779 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5780 FIELD_LOC_KIND_DWARF_BLOCK.
5782 2020-04-24 Tom Tromey <tromey@adacore.com>
5784 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5785 * gdbtypes.c (is_dynamic_type_internal): Check
5786 TYPE_HAS_DYNAMIC_LENGTH.
5787 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5788 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5790 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5793 2020-04-24 Tom Tromey <tromey@adacore.com>
5795 * dwarf2/read.c (struct variant_field): Rewrite.
5796 (struct variant_part_builder): New.
5797 (struct nextfield): Remove "variant" field. Add "offset".
5798 (struct field_info): Add "current_variant_part" and
5800 (alloc_discriminant_info): Remove.
5801 (alloc_rust_variant): New function.
5802 (quirk_rust_enum): Update.
5803 (dwarf2_add_field): Set "offset" member. Don't handle
5804 DW_TAG_variant_part.
5805 (offset_map_type): New typedef.
5806 (convert_variant_range, create_one_variant)
5807 (create_one_variant_part, create_variant_parts)
5808 (add_variant_property): New functions.
5809 (dwarf2_attach_fields_to_type): Call add_variant_property.
5810 (read_structure_type): Don't handle DW_TAG_variant_part.
5811 (handle_variant_part, handle_variant): New functions.
5812 (handle_struct_member_die): Use them.
5813 (process_structure_scope): Don't handle variant parts.
5814 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5815 (struct discriminant_info): Remove.
5816 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5817 (struct main_type) <flag_discriminated_union>: Remove.
5818 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5819 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5820 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5822 * valops.c (value_union_variant): Remove.
5823 * value.h (value_union_variant): Don't declare.
5825 2020-04-24 Tom Tromey <tromey@adacore.com>
5827 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5828 (ada_value_primitive_packed_val): Update.
5829 * ada-valprint.c (ada_value_print_1): Update.
5830 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5831 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5832 just an address. Use evaluate_for_locexpr_baton.
5833 (dwarf2_evaluate_property): Update.
5834 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5836 * findvar.c (default_read_var_value): Update.
5837 * gdbtypes.c (compute_variant_fields_inner)
5838 (resolve_dynamic_type_internal): Update.
5839 (resolve_dynamic_type): Change type of valaddr parameter.
5840 * gdbtypes.h (resolve_dynamic_type): Update.
5841 * valarith.c (value_subscripted_rvalue): Update.
5842 * value.c (value_from_contents_and_address): Update.
5844 2020-04-24 Tom Tromey <tromey@adacore.com>
5846 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5847 "push_initial_value" parameter.
5848 (dwarf2_evaluate_property): Likewise.
5849 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5851 2020-04-24 Tom Tromey <tromey@adacore.com>
5853 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5854 (variant::matches, compute_variant_fields_recurse)
5855 (compute_variant_fields_inner, compute_variant_fields): New
5857 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5858 Use resolved_type after type is made.
5859 (operator==): Add new cases.
5860 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5861 (struct discriminant_range, struct variant, struct variant_part):
5863 (union dynamic_prop_data) <variant_parts, original_type>: New
5865 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5866 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5868 * value.c (unpack_bits_as_long): Now public.
5869 * value.h (unpack_bits_as_long): Declare.
5871 2020-04-24 Tom Tromey <tromey@adacore.com>
5873 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5874 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5876 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5878 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5880 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5882 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5883 (remove_fork_catchpoint, post_startup_inferior)
5884 (post_attach): Move...
5885 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5886 (remove_fork_catchpoint, post_startup_inferior)
5887 (post_attach): ...here.
5888 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5889 (remove_fork_catchpoint, post_startup_inferior)
5890 (post_attach): Move...
5891 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5892 (remove_fork_catchpoint, post_startup_inferior)
5893 (post_attach): ...here.
5895 2020-04-24 Tom Tromey <tromey@adacore.com>
5897 * nat/windows-nat.h (struct windows_thread_info)
5898 <pc_adjusted>: New member.
5899 * windows-nat.c (windows_fetch_one_register): Check
5901 (windows_nat_target::get_windows_debug_event)
5902 (windows_nat_target::wait): Set pc_adjusted.
5904 2020-04-24 Tom de Vries <tdevries@suse.de>
5906 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5907 Run gdb-add-index inside temp dir.
5909 2020-04-23 Tom Tromey <tromey@adacore.com>
5911 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5914 2020-04-23 Luis Machado <luis.machado@linaro.org>
5916 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5917 get_frame_register instead of gdbarch_unwind_pc.
5919 2020-04-23 Tom de Vries <tdevries@suse.de>
5921 * symtab.c (lookup_global_symbol): Prefer def over decl.
5923 2020-04-23 Tom de Vries <tdevries@suse.de>
5926 * block.c (best_symbol, better_symbol): Promote to external.
5927 * block.h (best_symbol, better_symbol): Declare.
5928 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5931 2020-04-23 Tom Tromey <tromey@adacore.com>
5934 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5935 "const char *", not a "const std::string &".
5936 <name_and_matcher::operator==>: Update.
5937 * unittests/lookup_name_info-selftests.c: Change type of
5940 2020-04-23 Tom Tromey <tom@tromey.com>
5942 * inferior.h (iterate_over_inferiors): Don't declare.
5943 * inferior.c (iterate_over_inferiors): Remove.
5944 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5946 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5947 use iterate_over_inferiors.
5948 (darwin_resume_inferior_it)
5949 (struct resume_inferior_threads_param)
5950 (darwin_resume_inferior_threads_it): Remove.
5951 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5953 2020-04-23 Tom de Vries <tdevries@suse.de>
5955 * blockframe.c (find_pc_partial_function): Use
5956 find_pc_sect_compunit_symtab rather than
5957 objfile->sf->qf->find_pc_sect_compunit_symtab.
5959 2020-04-22 Tom de Vries <tdevries@suse.de>
5962 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5965 2020-04-22 Tom de Vries <tdevries@suse.de>
5968 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5971 2020-04-22 Tom de Vries <tdevries@suse.de>
5974 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5975 CU if already created.
5977 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5979 * infrun.c (displaced_step_fixup): Switch to the event_thread
5980 before calling displaced_step_restore, not after.
5982 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5984 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5985 its inferior is not recorded by us.
5986 (record_btrace_target_open): Replace call to
5987 all_non_exited_threads () with call to current_inferior
5988 ()->non_exited_threads ().
5989 (record_btrace_target::stop_recording): Likewise.
5990 (record_btrace_target::close): Likewise.
5991 (record_btrace_target::wait): Likewise.
5992 (record_btrace_target::record_stop_replaying): Likewise.
5994 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5996 * btrace.c (btrace_enable): Throw an error on double enables and
5997 when enabling recording fails.
5998 (btrace_disable): Throw an error if the thread is not recorded.
6000 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
6002 * record-btrace.c (record_btrace_target::fetch_registers): Forward
6003 request if we do not have a thread_info.
6005 2020-04-21 Tom de Vries <tdevries@suse.de>
6009 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
6010 exception in get_frame_id.
6012 2020-04-20 Tom Tromey <tromey@adacore.com>
6014 * python/python.c (struct gdbpy_event): Mark move constructor as
6016 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
6017 constructor as noexcept.
6018 * completer.h (struct completion_result): Mark move constructor as
6020 * completer.c (completion_result::completion_result): Use
6021 initialization style. Don't call reset_match_list.
6023 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
6025 * MAINTAINERS (Write After Approval): Add myself.
6027 2020-04-18 Tom Tromey <tom@tromey.com>
6029 * windows-tdep.c (init_w32_command_list)
6030 (w32_prefix_command_valid): Restore.
6031 (_initialize_windows_tdep): Call init_w32_command_list.
6033 2020-04-18 Tom Tromey <tom@tromey.com>
6035 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
6036 * value.c (value_fn_field): Update.
6037 * valops.c (find_function_in_inferior)
6038 (value_allocate_space_in_inferior): Update.
6039 * tui/tui-winsource.c (tui_update_source_windows_with_line):
6041 * tui/tui-source.c (tui_source_window::set_contents): Update.
6042 * symtab.c (lookup_global_or_static_symbol)
6043 (find_function_start_sal_1, skip_prologue_sal)
6044 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
6045 * symmisc.c (dump_msymbols, dump_symtab_1)
6046 (maintenance_print_one_line_table): Update.
6047 * symfile.c (init_entry_point_info, section_is_mapped)
6048 (list_overlays_command, simple_read_overlay_table)
6049 (simple_overlay_update_1): Update.
6050 * stap-probe.c (handle_stap_probe): Update.
6051 * stabsread.c (dbx_init_float_type, define_symbol)
6052 (read_one_struct_field, read_enum_type, read_range_type): Update.
6053 * source.c (info_line_command): Update.
6054 * python/python.c (gdbpy_source_objfile_script)
6055 (gdbpy_execute_objfile_script): Update.
6056 * python/py-type.c (save_objfile_types): Update.
6057 * python/py-objfile.c (py_free_objfile): Update.
6058 * python/py-inferior.c (python_new_objfile): Update.
6059 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
6060 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
6061 (maintenance_check_psymtabs): Update.
6062 * printcmd.c (info_address_command): Update.
6063 * objfiles.h (struct objfile) <arch>: New method, from
6065 (get_objfile_arch): Don't declare.
6066 * objfiles.c (get_objfile_arch): Remove.
6067 (filter_overlapping_sections): Update.
6068 * minsyms.c (msymbol_is_function): Update.
6069 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
6070 (output_nondebug_symbol): Update.
6071 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
6072 (mdebug_expand_psymtab): Update.
6073 * machoread.c (macho_add_oso_symfile): Update.
6074 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
6076 * linux-fork.c (checkpoint_command): Update.
6077 * linespec.c (convert_linespec_to_sals): Update.
6078 * jit.c (finalize_symtab): Update.
6079 * infrun.c (insert_exception_resume_from_probe): Update.
6080 * ia64-tdep.c (ia64_find_unwind_table): Update.
6081 * hppa-tdep.c (internalize_unwinds): Update.
6082 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
6084 * gcore.c (call_target_sbrk): Update.
6085 * elfread.c (record_minimal_symbol, elf_symtab_read)
6086 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
6087 (elf_gnu_ifunc_resolve_by_got): Update.
6088 * dwarf2/read.c (create_addrmap_from_index)
6089 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6090 (read_debug_names_from_section)
6091 (process_psymtab_comp_unit_reader, add_partial_symbol)
6092 (add_partial_subprogram, process_full_comp_unit)
6093 (read_file_scope, read_func_scope, read_lexical_block_scope)
6094 (read_call_site_scope, dwarf2_ranges_read)
6095 (dwarf2_record_block_ranges, dwarf2_add_field)
6096 (mark_common_block_symbol_computed, read_tag_pointer_type)
6097 (read_tag_string_type, dwarf2_init_float_type)
6098 (dwarf2_init_complex_target_type, read_base_type)
6099 (partial_die_info::read, partial_die_info::read)
6100 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
6101 (dwarf2_fetch_die_loc_sect_off): Update.
6102 * dwarf2/loc.c (dwarf2_find_location_expression)
6103 (class dwarf_evaluate_loc_desc, rw_pieced_value)
6104 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
6105 (dwarf2_loc_desc_get_symbol_read_needs)
6106 (locexpr_describe_location_piece, locexpr_describe_location_1)
6107 (loclist_describe_location): Update.
6108 * dwarf2/index-write.c (write_debug_names): Update.
6109 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
6110 * dtrace-probe.c (dtrace_process_dof): Update.
6111 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
6112 (process_one_symbol): Update.
6113 * ctfread.c (ctf_init_float_type, read_base_type): Update.
6114 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
6115 (coff_read_enum_type): Update.
6116 * cli/cli-cmds.c (edit_command, list_command): Update.
6117 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
6118 * breakpoint.c (create_overlay_event_breakpoint)
6119 (create_longjmp_master_breakpoint)
6120 (create_std_terminate_master_breakpoint)
6121 (create_exception_master_breakpoint, get_sal_arch): Update.
6122 * block.c (block_gdbarch): Update.
6123 * annotate.c (annotate_source_line): Update.
6125 2020-04-17 Tom Tromey <tromey@adacore.com>
6127 * auto-load.c (show_auto_load_cmd): Remove.
6128 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
6129 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
6130 (maintenance_print_arc_command): Remove.
6131 * tui/tui-win.c (tui_command): Remove.
6132 (tui_get_cmd_list): Use add_basic_prefix_cmd.
6133 * tui/tui-layout.c (tui_layout_command): Remove.
6134 (_initialize_tui_layout): Use add_basic_prefix_cmd.
6135 * python/python.c (user_set_python, user_show_python): Remove.
6136 (_initialize_python): Use add_basic_prefix_cmd,
6137 add_show_prefix_cmd.
6138 * guile/guile.c (set_guile_command, show_guile_command): Remove.
6139 (install_gdb_commands): Use add_basic_prefix_cmd,
6140 add_show_prefix_cmd.
6141 (info_guile_command): Remove.
6142 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
6143 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
6144 add_show_prefix_cmd.
6145 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
6146 Remove do_set and do_show parameters.
6147 * cli/cli-style.c (set_style, show_style): Remove.
6148 (_initialize_cli_style): Use add_basic_prefix_cmd,
6149 add_show_prefix_cmd.
6150 (cli_style_option::add_setshow_commands): Remove do_set and
6152 (cli_style_option::add_setshow_commands): Use
6153 add_basic_prefix_cmd, add_show_prefix_cmd.
6154 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
6155 (set_style_name): Remove.
6156 * cli/cli-dump.c (dump_command, append_command): Remove.
6157 (srec_dump_command, ihex_dump_command, verilog_dump_command)
6158 (tekhex_dump_command, binary_dump_command)
6159 (binary_append_command): Remove.
6160 (_initialize_cli_dump): Use add_basic_prefix_cmd.
6161 * windows-tdep.c (w32_prefix_command_valid): Remove global.
6162 (init_w32_command_list): Remove; move into ...
6163 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
6164 * valprint.c (set_print, show_print, set_print_raw)
6165 (show_print_raw): Remove.
6166 (_initialize_valprint): Use add_basic_prefix_cmd,
6167 add_show_prefix_cmd.
6168 * typeprint.c (set_print_type, show_print_type): Remove.
6169 (_initialize_typeprint): Use add_basic_prefix_cmd,
6170 add_show_prefix_cmd.
6171 * record.c (set_record_command, show_record_command): Remove.
6172 (_initialize_record): Use add_basic_prefix_cmd,
6173 add_show_prefix_cmd.
6174 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
6175 add_show_prefix_cmd.
6176 (info_command, show_command, set_debug, show_debug): Remove.
6177 * top.h (set_history, show_history): Don't declare.
6178 * top.c (set_history, show_history): Remove.
6179 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
6180 (unset_tdesc_cmd): Remove.
6181 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
6182 add_show_prefix_cmd.
6183 * symtab.c (info_module_command): Remove.
6184 (_initialize_symtab): Use add_basic_prefix_cmd.
6185 * symfile.c (overlay_command): Remove.
6186 (_initialize_symfile): Use add_basic_prefix_cmd.
6187 * sparc64-tdep.c (info_adi_command): Remove.
6188 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
6189 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
6190 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
6191 add_show_prefix_cmd.
6192 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
6193 (_initialize_serial): Use add_basic_prefix_cmd,
6194 add_show_prefix_cmd.
6195 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
6196 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
6197 add_show_prefix_cmd.
6198 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
6199 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
6200 add_show_prefix_cmd.
6201 * riscv-tdep.c (show_riscv_command, set_riscv_command)
6202 (show_debug_riscv_command, set_debug_riscv_command): Remove.
6203 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
6204 add_show_prefix_cmd.
6205 * remote.c (remote_command, set_remote_cmd): Remove.
6206 (_initialize_remote): Use add_basic_prefix_cmd.
6207 * record-full.c (set_record_full_command)
6208 (show_record_full_command): Remove.
6209 (_initialize_record_full): Use add_basic_prefix_cmd,
6210 add_show_prefix_cmd.
6211 * record-btrace.c (cmd_set_record_btrace)
6212 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
6213 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
6214 (cmd_show_record_btrace_pt): Remove.
6215 (_initialize_record_btrace): Use add_basic_prefix_cmd,
6216 add_show_prefix_cmd.
6217 * ravenscar-thread.c (set_ravenscar_command)
6218 (show_ravenscar_command): Remove.
6219 (_initialize_ravenscar): Use add_basic_prefix_cmd,
6220 add_show_prefix_cmd.
6221 * mips-tdep.c (show_mips_command, set_mips_command)
6222 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
6223 add_show_prefix_cmd.
6224 * maint.c (maintenance_command, maintenance_info_command)
6225 (maintenance_check_command, maintenance_print_command)
6226 (maintenance_set_cmd, maintenance_show_cmd): Remove.
6227 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
6228 add_show_prefix_cmd.
6229 (show_per_command_cmd): Remove.
6230 * maint-test-settings.c (maintenance_set_test_settings_cmd):
6232 (maintenance_show_test_settings_cmd): Remove.
6233 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
6234 add_show_prefix_cmd.
6235 * maint-test-options.c (maintenance_test_options_command):
6237 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
6238 * macrocmd.c (macro_command): Remove
6239 (_initialize_macrocmd): Use add_basic_prefix_cmd.
6240 * language.c (set_check, show_check): Remove.
6241 (_initialize_language): Use add_basic_prefix_cmd,
6242 add_show_prefix_cmd.
6243 * infcmd.c (unset_command): Remove.
6244 (_initialize_infcmd): Use add_basic_prefix_cmd.
6245 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
6246 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
6247 add_show_prefix_cmd.
6248 * go32-nat.c (go32_info_dos_command): Remove.
6249 (_initialize_go32_nat): Use add_basic_prefix_cmd.
6250 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
6251 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
6252 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
6253 (_initialize_frame): Use add_basic_prefix_cmd,
6254 add_show_prefix_cmd.
6255 * dcache.c (set_dcache_command, show_dcache_command): Remove.
6256 (_initialize_dcache): Use add_basic_prefix_cmd,
6257 add_show_prefix_cmd.
6258 * cp-support.c (maint_cplus_command): Remove.
6259 (_initialize_cp_support): Use add_basic_prefix_cmd.
6260 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
6261 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
6262 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
6263 add_basic_prefix_cmd, add_show_prefix_cmd.
6264 * breakpoint.c (save_command): Remove.
6265 (_initialize_breakpoint): Use add_basic_prefix_cmd.
6266 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
6267 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
6268 add_show_prefix_cmd.
6269 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
6270 (set_ada_command, show_ada_command): Remove.
6271 (_initialize_ada_language): Use add_basic_prefix_cmd,
6272 add_show_prefix_cmd.
6273 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
6275 2020-04-16 Kamil Rytarowski <n54@gmx.com>
6277 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
6278 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
6280 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6282 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
6285 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
6287 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
6288 import table is not at beginning of .idata section.
6290 2020-04-16 Pedro Alves <palves@redhat.com>
6292 * inferior.c (delete_inferior): Use delete operator directly
6293 instead of delete_program_space.
6294 * progspace.c (add_program_space): New, factored out from
6295 program_space::program_space.
6296 (remove_program_space): New, factored out from
6297 delete_program_space.
6298 (program_space::program_space): Remove intro comment. Rewrite.
6299 (program_space::~program_space): Remove intro comment. Call
6300 remove_program_space.
6301 (delete_program_space): Delete.
6302 * progspace.h (program_space::program_space): Make explicit. Move
6303 intro comment here, adjusted.
6304 (program_space::~program_space): Move intro comment here,
6306 (delete_program_space): Remove.
6308 2020-04-16 Tom Tromey <tromey@adacore.com>
6310 * windows-nat.c (windows_nat::handle_access_violation): New
6312 * nat/windows-nat.h (handle_access_violation): Declare.
6313 * nat/windows-nat.c (handle_exception): Move Cygwin code to
6314 windows-nat.c. Call handle_access_violation.
6316 2020-04-16 Tom de Vries <tdevries@suse.de>
6319 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
6320 CUs without psymtab.
6322 2020-04-16 Kevin Buettner <kevinb@redhat.com>
6324 * python/python.c (do_start_initialization): Don't call
6325 PyEval_InitThreads for Python 3.9 and beyond.
6327 2020-04-15 Kamil Rytarowski <n54@gmx.com>
6329 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
6331 (obsd_nat_target::wait): Likewise.
6333 2020-04-15 Tom Tromey <tromey@adacore.com>
6335 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6336 (DEBUG_EXCEPT): Use debug_printf.
6338 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
6340 * completer.c (class completion_tracker::completion_hash_entry)
6341 <hash_name>: New member function.
6342 (completion_tracker::discard_completions): New callback to hash a
6343 completion_hash_entry, pass this to htab_create_alloc.
6345 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6347 * windows-nat.c (windows_make_so): Warn rather than stopping with
6348 an error if realpath() fails.
6350 2020-04-14 Kamil Rytarowski <n54@gmx.com>
6352 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6353 (nbsd_nat_target::info_proc): Add do_status.
6355 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6356 Tom de Vries <tdevries@suse.de>
6359 * psympriv.h (struct partial_symtab::read_symtab)
6360 (struct partial_symtab::expand_psymtab)
6361 (struct partial_symtab::read_dependencies): Update comments.
6362 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6363 read_symtab for includer.
6364 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6365 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6366 (struct dwarf2_include_psymtab::m_readin): Remove.
6367 (struct dwarf2_include_psymtab::includer): New member function.
6368 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6370 2020-04-14 Tom de Vries <tdevries@suse.de>
6373 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6374 with NULL symbol_matcher and lookup_name.
6375 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6377 * dwarf2/read.c (dw2_expand_symtabs_matching)
6378 (dw2_debug_names_expand_symtabs_matching): Same.
6379 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6380 Make lookup_name a pointer. Update comment.
6381 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6382 lookup_name being a pointer.
6383 * symfile.c (expand_symtabs_matching): Same.
6384 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6385 * linespec.c (iterate_over_all_matching_symtabs): Same.
6387 2020-04-13 Tom Tromey <tom@tromey.com>
6389 * run-on-main-thread.c: Update include.
6390 * unittests/main-thread-selftests.c: Update include.
6391 * tui/tui-win.c: Update include.
6392 * tui/tui-io.c: Update include.
6393 * tui/tui-interp.c: Update include.
6394 * tui/tui-hooks.c: Update include.
6395 * top.h: Update include.
6396 * top.c: Update include.
6397 * ser-base.c: Update include.
6398 * remote.c: Update include.
6399 * remote-notif.c: Update include.
6400 * remote-fileio.c: Update include.
6401 * record-full.c: Update include.
6402 * record-btrace.c: Update include.
6403 * python/python.c: Update include.
6404 * posix-hdep.c: Update include.
6405 * mingw-hdep.c: Update include.
6406 * mi/mi-main.c: Update include.
6407 * mi/mi-interp.c: Update include.
6408 * main.c: Update include.
6409 * linux-nat.c: Update include.
6410 * interps.c: Update include.
6411 * infrun.c: Update include.
6412 * inf-loop.c: Update include.
6413 * event-top.c: Update include.
6414 * event-loop.c: Move to ../gdbsupport/.
6415 * event-loop.h: Move to ../gdbsupport/.
6416 * async-event.h: Update include.
6417 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6419 2020-04-13 Tom Tromey <tom@tromey.com>
6421 * tui/tui-win.c: Include async-event.h.
6422 * remote.c: Include async-event.h.
6423 * remote-notif.c: Include async-event.h.
6424 * record-full.c: Include async-event.h.
6425 * record-btrace.c: Include async-event.h.
6426 * infrun.c: Include async-event.h.
6427 * event-top.c: Include async-event.h.
6428 * event-loop.h: Move some declarations to async-event.h.
6429 * event-loop.c: Don't include ser-event.h or top.h. Move some
6430 code to async-event.c.
6431 * async-event.h: New file.
6432 * async-event.c: New file.
6433 * Makefile.in (COMMON_SFILES): Add async-event.c.
6434 (HFILES_NO_SRCDIR): Add async-event.h.
6436 2020-04-13 Tom Tromey <tom@tromey.com>
6438 * utils.c (flush_streams): New function.
6439 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6441 2020-04-13 Tom Tromey <tom@tromey.com>
6443 * event-loop.c (handle_file_event): Use warning, not
6446 2020-04-13 Tom Tromey <tom@tromey.com>
6448 * event-loop.c: Include <chrono>.
6450 2020-04-13 Tom Tromey <tom@tromey.com>
6452 * gdb_select.h: Move to ../gdbsupport/.
6453 * event-loop.c: Update include path.
6454 * top.c: Update include path.
6455 * ser-base.c: Update include path.
6456 * ui-file.c: Update include path.
6457 * ser-tcp.c: Update include path.
6458 * guile/scm-ports.c: Update include path.
6459 * posix-hdep.c: Update include path.
6460 * ser-unix.c: Update include path.
6461 * gdb_usleep.c: Update include path.
6462 * mingw-hdep.c: Update include path.
6463 * inflow.c: Update include path.
6464 * infrun.c: Update include path.
6465 * event-top.c: Update include path.
6467 2020-04-13 Tom Tromey <tom@tromey.com>
6469 * configure: Rebuild.
6470 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6472 2020-04-13 Tom Tromey <tom@tromey.com>
6474 * event-loop.h (start_event_loop): Don't declare.
6475 * event-loop.c (start_event_loop): Move...
6476 * main.c (start_event_loop): ...here. Now static.
6478 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6480 * MAINTAINERS: Update my email address.
6482 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6484 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6487 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6489 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6490 (nbsd_nat_target::info_proc): Add do_cmdline.
6492 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6494 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6495 (nbsd_nat_target::info_proc): Add do_cwd.
6497 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6499 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6501 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6503 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6504 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6505 (nbsd_nat_target::info_proc): New functions.
6506 * nbsd-nat.c (kinfo_get_vmmap): New function.
6507 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6508 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6509 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6510 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6512 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6513 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6514 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6515 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6516 (KINFO_VME_FLAG_GROWS_DOWN): New.
6518 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6520 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6523 2020-04-10 Tom Tromey <tromey@adacore.com>
6525 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6527 2020-04-10 Tom Tromey <tromey@adacore.com>
6529 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6530 separate debug files.
6532 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6534 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6536 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6538 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6539 Check for STATUS_WX86_BREAKPOINT.
6540 (windows_nat_target::wait): Same.
6542 2020-04-10 Tom de Vries <tdevries@suse.de>
6545 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6547 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6549 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6550 (Write After Approval): Remove Tom de Vries.
6552 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6555 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6557 * buildsym.c (record_line): Fix undefined behavior and preserve
6560 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6562 * auxv.h (svr4_auxv_parse): New.
6563 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6564 and generic_auxv_parse.
6565 (svr4_auxv_parse): Add.
6566 * obsd-tdep.c: Include "auxv.h".
6567 (obsd_auxv_parse): Remove.
6568 (obsd_init_abi): Remove comment.
6569 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6570 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6571 * nbsd-tdep.c: Include "auxv.h".
6572 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6574 2020-04-08 Tom Tromey <tromey@adacore.com>
6576 * nat/windows-nat.h (last_wait_event): Don't declare.
6577 (wait_for_debug_event): Update comment.
6578 * nat/windows-nat.c (last_wait_event): Now static.
6580 2020-04-08 Tom Tromey <tromey@adacore.com>
6582 * windows-nat.c (wait_for_debug_event): Move to
6584 * nat/windows-nat.h (wait_for_debug_event): Declare.
6585 * nat/windows-nat.c (wait_for_debug_event): Move from
6586 windows-nat.c. No longer static.
6588 2020-04-08 Tom Tromey <tromey@adacore.com>
6590 * windows-nat.c (get_windows_debug_event): Use
6592 * nat/windows-nat.h (fetch_pending_stop): Declare.
6593 * nat/windows-nat.c (fetch_pending_stop): New function.
6595 2020-04-08 Tom Tromey <tromey@adacore.com>
6597 * windows-nat.c (windows_continue): Use matching_pending_stop and
6598 continue_last_debug_event.
6599 * nat/windows-nat.h (matching_pending_stop)
6600 (continue_last_debug_event): Declare.
6601 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6602 (matching_pending_stop, continue_last_debug_event): New
6605 2020-04-08 Tom Tromey <tromey@adacore.com>
6607 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6608 (handle_exception_result): Move to nat/windows-nat.h.
6609 (DEBUG_EXCEPTION_SIMPLE): Remove.
6610 (windows_nat::handle_ms_vc_exception): New function.
6611 (handle_exception): Move to nat/windows-nat.c.
6612 (get_windows_debug_event): Update.
6613 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6615 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6616 (handle_exception_result): Move from windows-nat.c.
6617 (handle_exception): Declare.
6618 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6619 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6622 2020-04-08 Tom Tromey <tromey@adacore.com>
6624 * windows-nat.c (exception_count, event_count): Remove.
6625 (handle_exception, get_windows_debug_event)
6626 (do_initial_windows_stuff): Update.
6628 2020-04-08 Tom Tromey <tromey@adacore.com>
6630 * windows-nat.c (windows_nat::handle_load_dll)
6631 (windows_nat::handle_unload_dll): Rename. No longer static.
6632 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6635 2020-04-08 Tom Tromey <tromey@adacore.com>
6637 * complaints.h (stop_whining): Declare at top-level.
6638 (complaint): Don't declare stop_whining.
6640 2020-04-08 Tom Tromey <tromey@adacore.com>
6642 * windows-nat.c (windows_nat::handle_output_debug_string):
6643 Rename. No longer static.
6644 * nat/windows-nat.h (handle_output_debug_string): Declare.
6646 2020-04-08 Tom Tromey <tromey@adacore.com>
6648 * windows-nat.c (current_process_handle, current_process_id)
6649 (main_thread_id, last_sig, current_event, last_wait_event)
6650 (current_windows_thread, desired_stop_thread_id, pending_stops)
6651 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6652 (display_selectors, fake_create_process)
6653 (get_windows_debug_event): Update.
6654 * nat/windows-nat.h (current_process_handle, current_process_id)
6655 (main_thread_id, last_sig, current_event, last_wait_event)
6656 (current_windows_thread, desired_stop_thread_id, pending_stops)
6657 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6658 * nat/windows-nat.c (current_process_handle, current_process_id)
6659 (main_thread_id, last_sig, current_event, last_wait_event)
6660 (current_windows_thread, desired_stop_thread_id, pending_stops)
6661 (siginfo_er): New globals. Move from windows-nat.c.
6663 2020-04-08 Tom Tromey <tromey@adacore.com>
6665 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6666 (handle_load_dll): Update.
6667 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6669 2020-04-08 Tom Tromey <tromey@adacore.com>
6671 * windows-nat.c (enum thread_disposition_type): Move to
6673 (windows_nat::thread_rec): Rename from thread_rec. No longer
6675 (windows_add_thread, windows_nat_target::fetch_registers)
6676 (windows_nat_target::store_registers, handle_exception)
6677 (windows_nat_target::resume, get_windows_debug_event)
6678 (windows_nat_target::get_tib_address)
6679 (windows_nat_target::thread_name)
6680 (windows_nat_target::thread_alive): Update.
6681 * nat/windows-nat.h (enum thread_disposition_type): Move from
6683 (thread_rec): Declare.
6685 2020-04-08 Tom Tromey <tromey@adacore.com>
6687 * windows-nat.c: Add "using namespace".
6688 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6689 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6691 2020-04-08 Tom Tromey <tromey@adacore.com>
6693 * nat/windows-nat.h (struct windows_thread_info): Declare
6695 * nat/windows-nat.c (~windows_thread_info): New.
6697 2020-04-08 Tom Tromey <tromey@adacore.com>
6700 * windows-nat.c (current_event): Update comment.
6701 (last_wait_event, desired_stop_thread_id): New globals.
6702 (struct pending_stop): New.
6703 (pending_stops): New global.
6704 (windows_nat_target) <stopped_by_sw_breakpoint>
6705 <supports_stopped_by_sw_breakpoint>: New methods.
6706 (windows_fetch_one_register): Add assertions. Adjust PC.
6707 (windows_continue): Handle pending stops. Suspend other threads
6708 when stepping. Use last_wait_event
6709 (wait_for_debug_event): New function.
6710 (get_windows_debug_event): Use wait_for_debug_event. Handle
6711 pending stops. Queue spurious stops.
6712 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6713 (windows_nat_target::kill): Use wait_for_debug_event.
6714 * nat/windows-nat.h (struct windows_thread_info)
6715 <stopped_at_software_breakpoint>: New field.
6716 * nat/windows-nat.c (windows_thread_info::resume): Clear
6717 stopped_at_software_breakpoint.
6719 2020-04-08 Tom Tromey <tromey@adacore.com>
6721 * windows-nat.c (enum thread_disposition_type): New.
6722 (thread_rec): Replace "get_context" parameter with "disposition";
6724 (windows_add_thread, windows_nat_target::fetch_registers)
6725 (windows_nat_target::store_registers, handle_exception)
6726 (windows_nat_target::resume, get_windows_debug_event)
6727 (windows_nat_target::get_tib_address)
6728 (windows_nat_target::thread_name)
6729 (windows_nat_target::thread_alive): Update.
6731 2020-04-08 Tom Tromey <tromey@adacore.com>
6733 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6734 (windows_continue): Use windows_continue::resume.
6735 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6736 resume>: Declare new methods.
6737 * nat/windows-nat.c: New file.
6738 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6740 2020-04-08 Tom Tromey <tromey@adacore.com>
6742 * windows-nat.c (windows_add_thread, windows_delete_thread)
6743 (windows_nat_target::fetch_registers)
6744 (windows_nat_target::store_registers, fake_create_process)
6745 (windows_nat_target::resume, windows_nat_target::resume)
6746 (get_windows_debug_event, windows_nat_target::wait)
6747 (windows_nat_target::pid_to_str)
6748 (windows_nat_target::get_tib_address)
6749 (windows_nat_target::get_ada_task_ptid)
6750 (windows_nat_target::thread_name)
6751 (windows_nat_target::thread_alive): Use lwp, not tid.
6753 2020-04-08 Tom Tromey <tromey@adacore.com>
6755 * windows-nat.c (handle_exception)
6756 (windows_nat_target::thread_name): Update.
6757 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6758 <name>: Now unique_xmalloc_ptr.
6760 2020-04-08 Tom Tromey <tromey@adacore.com>
6762 * windows-nat.c (thread_rec)
6763 (windows_nat_target::fetch_registers): Update.
6764 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6766 <debug_registers_changed, reload_context>: Now bool.
6768 2020-04-08 Tom Tromey <tromey@adacore.com>
6770 * windows-nat.c (windows_add_thread): Use new.
6771 (windows_init_thread_list, windows_delete_thread): Use delete.
6772 (get_windows_debug_event): Update.
6773 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6774 destructor, and initializers.
6776 2020-04-08 Tom Tromey <tromey@adacore.com>
6778 * windows-nat.c (struct windows_thread_info): Remove.
6779 * nat/windows-nat.h: New file.
6781 2020-04-08 Tom Tromey <tromey@adacore.com>
6783 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6784 (thread_rec, windows_add_thread, windows_delete_thread)
6785 (windows_continue): Update.
6787 2020-04-08 Tom Tromey <tromey@adacore.com>
6789 * windows-nat.c (struct windows_thread_info): Remove typedef.
6790 (thread_head): Remove.
6791 (thread_list): New global.
6792 (thread_rec, windows_add_thread, windows_init_thread_list)
6793 (windows_delete_thread, windows_continue): Update.
6795 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6797 * windows-tdep.h (windows_init_abi): Add comment.
6798 (cygwin_init_abi): New declaration.
6799 * windows-tdep.c: Split signal enumeration in two, one for
6800 Windows and one for Cygwin.
6801 (windows_gdb_signal_to_target): Only deal with signal of the
6803 (cygwin_gdb_signal_to_target): New function.
6804 (windows_init_abi): Rename to windows_init_abi_common, don't set
6805 gdb_signal_to_target gdbarch method. Add new new function with
6807 (cygwin_init_abi): New function.
6808 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6809 comment. Don't call windows_init_abi.
6810 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6811 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6812 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6813 i386_windows_init_abi_common, don't call windows_init_abi. Add
6814 a new function of this name.
6815 (i386_cygwin_init_abi): New function.
6816 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6819 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6821 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6823 (dwarf2_read_gdb_index): Update.
6825 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6827 * nbsd-tdep.c: Include "objfiles.h".
6828 (nbsd_skip_solib_resolver): New.
6829 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6831 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6833 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6834 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6835 with DW_LLE_base_addressx are being emitted in DWARFv5.
6836 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6837 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6840 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6842 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6843 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6844 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6845 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6846 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6847 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6848 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6851 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6853 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6854 (read_loclist_index): New function definition.
6855 (lookup_loclist_base): New function definition.
6856 (read_loclist_header): New function definition.
6857 (dwarf2_cu): Add loclist_base and loclist_header field.
6858 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6859 (read_full_die_1): Read the value of DW_AT_loclists_base.
6860 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6861 (read_attribute_value): Handle DW_FORM_loclistx.
6862 (skip_one_die): Handle DW_FORM_loclistx.
6863 (loclist_header): New structure declaration.
6864 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6866 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6868 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6869 constructor. Remove `addr` parameter from other constructor and
6870 add `per_cu` parameter.
6871 * dwarf2/read.c (create_partial_symtab): Update.
6873 2020-04-07 Tom de Vries <tdevries@suse.de>
6876 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6877 (partial_die_info::fixup): Inherit has_const_value.
6879 2020-04-07 Tom de Vries <tdevries@suse.de>
6881 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6882 symbols without address.
6884 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6886 * nbsd-nat.h (struct thread_info): Add forward declaration.
6887 (nbsd_nat_target::thread_alive): Add.
6888 (nbsd_nat_target::thread_name): Likewise.
6889 (nbsd_nat_target::update_thread_list): Likewise.
6890 (update_thread_list::post_attach): Likewise.
6891 (post_attach::pid_to_str): Likewise.
6892 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6893 (nbsd_thread_lister): Add.
6894 (nbsd_nat_target::thread_alive): Likewise.
6895 (nbsd_nat_target::thread_name): Likewise.
6896 (nbsd_add_threads): Likewise.
6897 (update_thread_list::post_attach): Likewise.
6898 (nbsd_nat_target::update_thread_list): Likewise.
6899 (post_attach::pid_to_str): Likewise.
6901 2020-04-06 Tom Tromey <tromey@adacore.com>
6903 * ada-valprint.c (print_variant_part): Extract the variant field.
6904 (print_field_values): Use the field as the outer value when
6907 2020-04-06 Tom Tromey <tromey@adacore.com>
6909 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6910 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6911 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6912 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6913 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6915 2020-04-06 Tom Tromey <tromey@adacore.com>
6917 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6920 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6922 * nbsd-tdep.c: Include "gdbarch.h".
6923 Define enum with NetBSD signal numbers.
6924 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6925 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6926 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6927 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6928 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6929 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6930 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6931 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6932 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6933 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6934 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6935 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6937 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6940 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6942 2020-04-03 Tom Tromey <tromey@adacore.com>
6944 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6945 Read constant block.
6947 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6949 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6950 (gdb_bfd_get_full_section_contents): New declaration.
6951 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6952 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6953 gdb_bfd_get_full_section_contents.
6955 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6957 * exec.c (build_section_table): Replace internal_error with
6959 (section_table_xfer_memory_partial): Likewise.
6960 * mdebugread.c (parse_partial_symbols): Likewise.
6961 * psymtab.c (lookup_partial_symbol): Likewise.
6962 * utils.c (wrap_here): Likewise.
6964 2020-04-02 Tom Tromey <tromey@adacore.com>
6966 * f-lang.c (build_fortran_types): Use arch_type to initialize
6967 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6969 2020-04-02 Tom Tromey <tromey@adacore.com>
6971 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6974 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6975 Bernd Edlinger <bernd.edlinger@hotmail.de>
6976 Tom Tromey <tromey@adacore.com>
6978 * buildsym.c (buildsym_compunit::record_line): Remove
6981 2020-04-02 Tom de Vries <tdevries@suse.de>
6984 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6986 2020-04-02 Tom de Vries <tdevries@suse.de>
6988 * dwarf2/read.c (dwarf2_gdb_index_functions,
6989 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6991 * psymtab.c (psym_lookup_global_symbol_language): New function.
6992 (psym_functions): Init psym_lookup_global_symbol_language with
6993 psym_lookup_global_symbol_language.
6994 * symfile-debug.c (debug_sym_quick_functions): Init
6995 lookup_global_symbol_language with NULL.
6996 * symfile.c (set_initial_language): Remove fixme comment.
6997 * symfile.h (struct quick_symbol_functions): Add
6998 lookup_global_symbol_language.
6999 * symtab.c (find_quick_global_symbol_language): New function.
7000 (find_main_name): Use find_quick_global_symbol_language.
7002 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
7004 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
7006 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7008 * buildsym.c (record_line): Fix undefined behavior and preserve
7011 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
7013 * buildsym.c (record_line): Fix the resizing condition.
7015 2020-04-01 Tom Tromey <tom@tromey.com>
7017 * value.h (value_literal_complex): Add comment.
7018 * valops.c (value_literal_complex): Refer to value.h.
7020 2020-04-01 Tom Tromey <tom@tromey.com>
7022 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
7023 (scalar_type): New rule, from typebase.
7024 (typebase): Use scalar_type. Recognize complex types.
7025 (field_name): Handle FLOAT_KEYWORD.
7026 (ident_tokens): Add _Complex and __complex__.
7028 2020-04-01 Tom Tromey <tom@tromey.com>
7031 * valarith.c (promotion_type, complex_binop): New functions.
7032 (scalar_binop): Handle complex numbers. Use promotion_type.
7033 (value_pos, value_neg, value_complement): Handle complex numbers.
7035 2020-04-01 Tom Tromey <tom@tromey.com>
7037 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
7038 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
7039 (parse_number): Handle complex numbers.
7041 2020-04-01 Tom Tromey <tom@tromey.com>
7043 * c-valprint.c (c_decorations): Change complex suffix to "i".
7045 2020-04-01 Tom Tromey <tom@tromey.com>
7047 * valprint.c (generic_value_print_complex): Use accessors.
7048 * value.h (value_real_part, value_imaginary_part): Declare.
7049 * valops.c (value_real_part, value_imaginary_part): New
7051 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
7053 2020-04-01 Tom Tromey <tom@tromey.com>
7055 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
7056 (read_range_type): Update.
7057 * mdebugread.c (basic_type): Update.
7058 * go-lang.c (build_go_types): Use init_complex_type.
7059 * gdbtypes.h (struct main_type) <complex_type>: New member.
7060 (init_complex_type): Update.
7061 (arch_complex_type): Don't declare.
7062 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
7063 Make name if none given. Use alloc_type_copy. Look for cached
7065 (arch_complex_type): Remove.
7066 (gdbtypes_post_init): Use init_complex_type.
7067 * f-lang.c (build_fortran_types): Use init_complex_type.
7068 * dwarf2/read.c (read_base_type): Update.
7069 * d-lang.c (build_d_types): Use init_complex_type.
7070 * ctfread.c (read_base_type): Update.
7072 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7074 * infrun.c (stop_all_threads): Update assertion, plus when
7075 stopping threads, take into account that we might be trying
7076 to stop an all-stop target.
7077 (stop_waiting): Call 'stop_all_threads' if there exists a
7080 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7082 * target.h (exists_non_stop_target): New function declaration.
7083 * target.c (exists_non_stop_target): New function.
7085 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
7088 * eval.c (is_integral_or_integral_reference): New function.
7089 (evaluate_subexp_standard): Allow integer references in
7092 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7094 * remote.c (remote_target::remote_parse_stop_reply): Remove the
7095 check for no ptid in the stop reply when the target is non-stop.
7097 2020-04-01 Tom Tromey <tromey@adacore.com>
7099 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
7100 "name" parameter to rvalue reference. Initialize m_name_holder.
7101 <lookup_name_info>: New overloads.
7102 <name>: Return gdb::string_view.
7103 <c_str>: New method.
7104 <make_ignore_params>: Update.
7105 <search_name_hash>: Update.
7106 <language_lookup_name>: Return const char *.
7107 <m_name>: Change type.
7108 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
7109 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
7110 (lookup_name_info::match_any): Update.
7111 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
7113 * minsyms.c (linkage_name_str): Update.
7114 * language.c (default_symbol_name_matcher): Update.
7115 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
7117 * ada-lang.c (ada_fold_name): Change parameter to string_view.
7118 (ada_lookup_name_info::ada_lookup_name_info): Update.
7119 (literal_symbol_name_matcher): Update.
7121 2020-04-01 Tom Tromey <tromey@adacore.com>
7123 * psymtab.c (psymtab_search_name): Remove function.
7124 (psym_lookup_symbol): Create search name and lookup name here.
7125 (lookup_partial_symbol): Remove "name" parameter; add
7127 (psym_expand_symtabs_for_function): Update.
7129 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
7132 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
7134 2020-03-31 Tom Tromey <tromey@adacore.com>
7136 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
7139 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
7141 * features/riscv/32bit-csr.xml: Regenerated.
7142 * features/riscv/64bit-csr.xml: Regenerated.
7144 2020-03-30 Tom Tromey <tromey@adacore.com>
7146 * ada-valprint.c (print_variant_part): Update.
7147 * ada-lang.h (ada_which_variant_applies): Update.
7148 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
7149 outer_valaddr parameters; replace with "outer" value parameter.
7150 (to_fixed_variant_branch_type): Update.
7152 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7154 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
7155 <list>. Remove inclusion of observable.h.
7156 (PPC_DEBUG_CURRENT_VERSION): Move up define.
7157 (struct arch_lwp_info): New struct.
7158 (class ppc_linux_dreg_interface): New class.
7159 (struct ppc_linux_process_info): New struct.
7160 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
7161 <low_new_clone, low_forget_process, low_prepare_to_resume>
7162 <copy_thread_dreg_state, mark_thread_stale>
7163 <mark_debug_registers_changed, register_hw_breakpoint>
7164 <clear_hw_breakpoint, register_wp, clear_wp>
7165 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
7166 <num_memory_accesses, get_trigger_type>
7167 <create_watchpoint_request, hwdebug_point_cmp>
7168 <init_arch_lwp_info, get_arch_lwp_info>
7169 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
7171 <struct ptid_hash>: New inner struct.
7172 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
7174 (saved_dabr_value, hwdebug_info, max_slots_number)
7175 (struct hw_break_tuple, struct thread_points, ppc_threads)
7176 (have_ptrace_hwdebug_interface)
7177 (hwdebug_find_thread_points_by_tid)
7178 (hwdebug_insert_point, hwdebug_remove_point): Remove.
7179 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
7180 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
7181 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
7182 use m_dreg_interface.
7183 (hwdebug_point_cmp): Change to...
7184 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
7185 reference arguments instead of pointers.
7186 (ppc_linux_nat_target::ranged_break_num_registers): Use
7188 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
7189 m_dreg_interface. Call register_hw_breakpoint.
7190 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
7191 m_dreg_interface. Call clear_hw_breakpoint.
7192 (get_trigger_type): Change to...
7193 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
7195 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
7196 use m_dreg_interface. Call register_hw_breakpoint.
7197 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
7198 use m_dreg_interface. Call clear_hw_breakpoint.
7199 (can_use_watchpoint_cond_accel): Change to...
7200 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
7201 method. Update comment, use m_dreg_interface and
7203 (calculate_dvc): Change to...
7204 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
7206 (num_memory_accesses): Change to...
7207 (ppc_linux_nat_target::num_memory_accesses): ...this method.
7208 (check_condition): Change to...
7209 (ppc_linux_nat_target::check_condition): ...this method.
7210 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
7211 comment, use m_dreg_interface.
7212 (create_watchpoint_request): Change to...
7213 (ppc_linux_nat_target::create_watchpoint_request): ...this
7214 method. Use m_dreg_interface.
7215 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
7216 m_dreg_interface. Call register_hw_breakpoint or register_wp.
7217 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
7218 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
7219 (ppc_linux_nat_target::low_forget_process)
7220 (ppc_linux_nat_target::low_new_fork)
7221 (ppc_linux_nat_target::low_new_clone)
7222 (ppc_linux_nat_target::low_delete_thread)
7223 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
7224 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
7225 only call mark_thread_stale.
7226 (ppc_linux_thread_exit): Remove.
7227 (ppc_linux_nat_target::stopped_data_address): Change to...
7228 (ppc_linux_nat_target::low_stopped_data_address): This. Add
7229 comment, use m_dreg_interface and m_thread_hw_breakpoints.
7230 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
7231 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
7232 comment. Call low_stopped_data_address.
7233 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
7235 (ppc_linux_nat_target::masked_watch_num_registers): Use
7237 (ppc_linux_nat_target::copy_thread_dreg_state)
7238 (ppc_linux_nat_target::mark_thread_stale)
7239 (ppc_linux_nat_target::mark_debug_registers_changed)
7240 (ppc_linux_nat_target::register_hw_breakpoint)
7241 (ppc_linux_nat_target::clear_hw_breakpoint)
7242 (ppc_linux_nat_target::register_wp)
7243 (ppc_linux_nat_target::clear_wp)
7244 (ppc_linux_nat_target::init_arch_lwp_info)
7245 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
7246 (_initialize_ppc_linux_nat): Remove observer callback.
7248 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7250 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
7251 (ppc_linux_nat_target::auxv_parse)
7252 (ppc_linux_nat_target::read_description)
7253 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
7256 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
7258 * linux-nat.h (low_new_clone): New method.
7259 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
7261 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7263 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
7264 (dbx_expand_psymtab): ... this.
7265 (start_psymtab): Update.
7266 * mdebugread.c (psymtab_to_symtab_1): Rename to...
7267 (mdebug_expand_psymtab): ... this.
7268 (parse_partial_symbols): Update.
7269 (new_psymtab): Update.
7270 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
7271 (xcoff_expand_psymtab): ... this.
7272 (xcoff_start_psymtab): Update.
7274 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7276 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
7277 <expand_dependencies>: ... this.
7278 * psymtab.c (partial_symtab::read_dependencies): Rename to...
7279 (partial_symtab::expand_dependencies): ... this.
7280 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
7282 (dwarf2_psymtab::expand_psymtab): Update.
7283 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7284 * mdebugread.c (psymtab_to_symtab_1): Update.
7285 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7287 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
7289 * psympriv.h (discard_psymtab): Remove.
7290 * dbxread.c (dbx_end_psymtab): Update.
7291 * xcoffread.c (xcoff_end_psymtab): Update.
7293 2020-03-28 Tom Tromey <tom@tromey.com>
7295 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
7298 2020-03-28 Tom Tromey <tom@tromey.com>
7300 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
7302 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
7304 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7306 2020-03-26 John Baldwin <jhb@FreeBSD.org>
7308 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
7310 2020-03-26 Tom Tromey <tom@tromey.com>
7312 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
7313 (mark_common_block_symbol_computed, read_tag_string_type)
7314 (attr_to_dynamic_prop, read_subrange_type): Update.
7315 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
7316 to be methods on struct attribute.
7317 (skip_one_die, process_imported_unit_die, read_namespace_alias)
7318 (read_call_site_scope, partial_die_info::read)
7319 (partial_die_info::read, lookup_die_type, follow_die_ref):
7321 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
7322 from dwarf2_get_ref_die_offset.
7323 (attribute::constant_value): New method, from
7324 dwarf2_get_attr_constant_value.
7325 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
7327 <constant_value>: New method.
7329 2020-03-26 Tom Tromey <tom@tromey.com>
7331 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
7332 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
7333 (dwarf_type_encoding_name): Move to stringify.c.
7334 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
7335 * dwarf2/stringify.c: New file.
7336 * dwarf2/stringify.h: New file.
7338 2020-03-26 Tom Tromey <tom@tromey.com>
7340 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
7343 2020-03-26 Tom Tromey <tom@tromey.com>
7345 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7347 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7348 (lookup_ranges_base): Likewise.
7349 (read_cutu_die_from_dwo, read_full_die_1): Update.
7351 2020-03-26 Tom Tromey <tom@tromey.com>
7353 * dwarf2/read.c (read_import_statement, read_file_scope)
7354 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7355 (read_lexical_block_scope, read_call_site_scope)
7356 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7357 (handle_struct_member_die, process_structure_scope)
7358 (update_enumeration_type_from_children)
7359 (process_enumeration_scope, read_array_type, read_common_block)
7360 (read_namespace, read_module, read_subroutine_type): Update.
7361 (sibling_die): Remove.
7363 2020-03-26 Tom Tromey <tom@tromey.com>
7365 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7366 (build_type_psymtabs_reader, read_structure_type)
7367 (read_enumeration_type, read_full_die_1): Update.
7368 (dwarf2_attr_no_follow): Move to die.h.
7369 * dwarf2/die.h (struct die_info) <attr>: New method.
7371 2020-03-26 Tom Tromey <tom@tromey.com>
7373 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7374 <base_address>: Now an optional.
7375 (dwarf2_find_base_address, dwarf2_rnglists_process)
7376 (dwarf2_ranges_process, fill_in_loclist_baton)
7377 (dwarf2_symbol_mark_computed): Update.
7379 2020-03-26 Tom Tromey <tom@tromey.com>
7381 * dwarf2/read.c (struct die_info): Move to die.h.
7382 * dwarf2/die.h: New file.
7384 2020-03-26 Tom Tromey <tom@tromey.com>
7386 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7388 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7389 Move to line-header.c.
7390 (read_checked_initial_length_and_offset, read_formatted_entries):
7392 (dwarf_decode_line_header): Split into two.
7393 * dwarf2/line-header.c
7394 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7396 (read_checked_initial_length_and_offset, read_formatted_entries):
7398 (dwarf_decode_line_header): New function, split from read.c.
7400 2020-03-26 Tom Tromey <tom@tromey.com>
7402 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7404 * dwarf2/read.c (read_attribute_value): Update.
7405 (dwarf2_per_objfile::read_line_string): Rename from
7406 read_indirect_line_string.
7407 (read_formatted_entries): Update.
7409 2020-03-26 Tom Tromey <tom@tromey.com>
7411 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7414 2020-03-26 Tom Tromey <tom@tromey.com>
7416 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7418 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7419 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7422 2020-03-26 Tom Tromey <tom@tromey.com>
7424 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7425 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7426 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7427 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7429 2020-03-26 Tom Tromey <tom@tromey.com>
7431 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7432 file_names_size, file_full_name, file_file_name>: Use const.
7433 <file_name_at, file_names>: Add const overload.
7434 * dwarf2/line-header.c (line_header::file_file_name)
7435 (line_header::file_full_name): Update.
7437 2020-03-26 Tom Tromey <tom@tromey.com>
7439 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7440 (macro_start_file, consume_improper_spaces)
7441 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7442 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7443 (dwarf_decode_macros): Move to macro.c.
7444 * dwarf2/macro.c: New file.
7445 * dwarf2/macro.h: New file.
7446 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7448 2020-03-26 Tom Tromey <tom@tromey.com>
7450 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7452 * dwarf2/section.c: New method. From
7453 read_indirect_string_at_offset_from.
7454 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7455 (read_indirect_string_at_offset_from): Move to section.c.
7456 (read_indirect_string_at_offset): Rewrite.
7457 (read_indirect_line_string_at_offset): Remove.
7458 (read_indirect_string, read_indirect_line_string)
7459 (dwarf_decode_macro_bytes): Update.
7461 2020-03-26 Tom Tromey <tom@tromey.com>
7463 * dwarf2/section.h (struct dwarf2_section_info)
7464 <overload_complaint>: Declare.
7465 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7466 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7467 Rename from dwarf2_section_buffer_overflow_complaint.
7468 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7469 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7471 2020-03-26 Tom Tromey <tom@tromey.com>
7473 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7475 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7477 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7480 2020-03-26 Tom Tromey <tom@tromey.com>
7482 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7484 2020-03-26 Tom Tromey <tom@tromey.com>
7486 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7488 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7490 (dwarf_decode_macros): Update.
7492 2020-03-26 Tom Tromey <tom@tromey.com>
7494 * dwarf2/read.c (read_attribute_value): Update.
7495 (read_indirect_string_from_dwz): Move to dwz.c; change into
7497 (dwarf_decode_macro_bytes): Update.
7498 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7499 * dwarf2/dwz.c: New file.
7500 * Makefile.in (COMMON_SFILES): Add dwz.c.
7502 2020-03-26 Tom Tromey <tom@tromey.com>
7504 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7505 * dwarf2/read.c: Add include.
7506 * dwarf2/index-write.c: Add include.
7507 * dwarf2/index-cache.c: Add include.
7508 * dwarf2/dwz.h: New file.
7510 2020-03-25 Tom Tromey <tom@tromey.com>
7512 * compile/compile-object-load.c (get_out_value_type): Mention
7513 correct symbol name in error message.
7515 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7517 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7519 2020-03-25 Tom de Vries <tdevries@suse.de>
7521 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7522 * symmisc.c (dump_symtab_1): Print user and includes fields.
7523 (maintenance_info_symtabs): Same.
7525 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7528 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7529 (riscv_regcache_cooked_write): New function.
7530 (riscv_push_dummy_call): Use new function.
7531 (riscv_return_value): Likewise.
7533 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7535 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7536 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7537 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7538 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7539 * infrun.c (follow_fork): Likewise.
7540 (follow_fork_inferior): Likewise.
7541 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7542 * linux-nat.h (class linux_nat_target): Likewise.
7543 * remote.c (class remote_target) <follow_fork>: Likewise.
7544 (remote_target::follow_fork): Likewise.
7545 * target-delegates.c: Re-generate.
7546 * target.c (default_follow_fork): Likewise.
7547 (target_follow_fork): Likewise.
7548 * target.h (struct target_ops) <follow_fork>: Likewise.
7549 (target_follow_fork): Likewise.
7551 2020-03-24 Tom de Vries <tdevries@suse.de>
7553 * psymtab.c (maintenance_info_psymtabs): Print user field.
7555 2020-03-20 Tom Tromey <tromey@adacore.com>
7557 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7559 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7562 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7564 * ptrace.m4: Don't check for ptrace declaration.
7565 * config.in: Re-generate.
7566 * configure: Re-generate.
7567 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7570 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7572 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7574 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7575 * sparc-nat.c (gdb_ptrace): Likewise.
7576 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7578 2020-03-20 Tom Tromey <tromey@adacore.com>
7580 * c-exp.y (lex_one_token): Fix assert.
7582 2020-03-20 Tom Tromey <tromey@adacore.com>
7584 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7585 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7588 2020-03-20 Tom Tromey <tromey@adacore.com>
7590 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7592 2020-03-20 Tom Tromey <tromey@adacore.com>
7594 * ada-valprint.c (print_variant_part): Remove parameters; switch
7596 (print_field_values): Likewise.
7597 (ada_val_print_struct_union): Likewise.
7598 (ada_value_print_1): Update.
7600 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7602 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7603 nbsd_nat_target instead of inf_ptrace_target.
7604 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7607 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7609 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7610 it to the ptrace call.
7611 * (store_registers): Likewise.
7613 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7615 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7616 it to the ptrace call.
7617 * (store_registers): Likewise.
7619 2020-03-19 Luis Machado <luis.machado@linaro.org>
7621 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7622 valid, fetch vg value from ptrace.
7624 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7625 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7626 * inf-ptrace.c: Likewise.
7627 * (gdb_ptrace): Add.
7628 * (inf_ptrace_target::resume): Update.
7629 * (inf_ptrace_target::xfer_partial): Likewise.
7630 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7631 * (inf_ptrace_peek_poke): Update.
7633 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7635 * x86-bsd-nat.c (gdb_ptrace): New.
7636 * (x86bsd_dr_set): Add new argument `ptid'.
7637 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7638 x86bsd_dr_set_addr): Update.
7640 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7642 * remote.c (remote_target::process_stop_reply): Handle events for
7643 all threads differently.
7645 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7647 * completer.c (completion_tracker::remove_completion): Define new
7649 * completer.h (completion_tracker::remove_completion): Declare new
7651 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7652 when adding a C++ function symbol.
7654 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7656 * completer.c (completion_tracker::completion_hash_entry): Define
7658 (advance_to_filename_complete_word_point): Call
7659 recompute_lowest_common_denominator.
7660 (completion_tracker::completion_tracker): Call discard_completions
7661 to setup the hash table.
7662 (completion_tracker::discard_completions): Allow for being called
7663 from the constructor, pass new equal function, and element deleter
7664 when constructing the hash table. Initialise new class member
7666 (completion_tracker::maybe_add_completion): Remove use of
7667 m_entries_vec, and store more information into m_entries_hash.
7668 (completion_tracker::recompute_lcd_visitor): New function, most
7669 content taken from...
7670 (completion_tracker::recompute_lowest_common_denominator):
7671 ...here, this now just visits each item in the hash calling the
7673 (completion_tracker::build_completion_result): Remove use of
7674 m_entries_vec, call recompute_lowest_common_denominator.
7675 * completer.h (completion_tracker::have_completions): Remove use
7677 (completion_tracker::completion_hash_entry): Declare new class.
7678 (completion_tracker::recompute_lowest_common_denominator): Change
7680 (completion_tracker::recompute_lcd_visitor): Declare new function.
7681 (completion_tracker::m_entries_vec): Delete.
7682 (completion_tracker::m_entries_hash): Initialize to NULL.
7683 (completion_tracker::m_lowest_common_denominator_valid): New
7685 (completion_tracker::m_lowest_common_denominator_max_length): New
7688 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7690 * regformats/regdef.h: Put reg in gdb namespace.
7692 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7694 * i386-bsd-nat.c (gdb_ptrace): New.
7695 * (i386bsd_fetch_inferior_registers,
7696 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7697 * (i386bsd_fetch_inferior_registers,
7698 i386bsd_store_inferior_registers) Use gdb_ptrace.
7700 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7702 * amd64-bsd-nat.c (gdb_ptrace): New.
7703 * (amd64bsd_fetch_inferior_registers,
7704 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7705 * (amd64bsd_fetch_inferior_registers,
7706 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7708 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7710 * user-regs.c (user_reg::read): Rename to...
7711 (user_reg::xread): ...this.
7712 * (append_user_reg): Rename argument `read' to `xread'.
7713 * (user_reg_add_builtin): Likewise.
7714 * (user_reg_add): Likewise.
7715 * (value_of_user_reg): Likewise.
7717 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7719 * sparc-nat.c (gdb_ptrace): New.
7720 * sparc-nat.c (sparc_fetch_inferior_registers)
7721 (sparc_store_inferior_registers) Remove obsolete comment.
7722 * sparc-nat.c (sparc_fetch_inferior_registers)
7723 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7724 * sparc-nat.c (sparc_fetch_inferior_registers)
7725 (sparc_store_inferior_registers) Use gdb_ptrace.
7727 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7729 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7730 it to the ptrace call.
7731 * sh-nbsd-nat.c (store_registers): Likewise.
7733 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7735 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7736 nbsd_nat_target instead of inf_ptrace_target.
7737 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7740 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7742 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7744 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7746 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7748 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7750 2020-03-17 Tom de Vries <tdevries@suse.de>
7753 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7755 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7757 (process_imported_unit_die): Skip import of c++ CUs.
7759 2020-03-16 Tom Tromey <tom@tromey.com>
7761 * p-valprint.c (pascal_object_print_value): Initialize
7764 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7765 Shahab Vahedi <shahab@synopsys.com>
7767 * Makefile.in: Add arch/arc.o
7768 * configure.tgt: Likewise.
7769 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7770 (_initialize_arc_tdep): Don't initialize old target descriptions.
7771 (arc_read_description): New function to cache target descriptions.
7772 * arc-tdep.h (arc_read_description): Add proto type.
7773 * arch/arc.c: New file.
7774 * arch/arc.h: Likewise.
7775 * features/Makefile: Replace old target descriptions with new.
7776 * features/arc-arcompact.c: Remove.
7777 * features/arc-arcompact.xml: Likewise.
7778 * features/arc-v2.c: Likewise
7779 * features/arc-v2.xml: Likewise
7780 * features/arc/aux-arcompact.xml: New file.
7781 * features/arc/aux-v2.xml: Likewise.
7782 * features/arc/core-arcompact.xml: Likewise.
7783 * features/arc/core-v2.xml: Likewise.
7784 * features/arc/aux-arcompact.c: Generate.
7785 * features/arc/aux-v2.c: Likewise.
7786 * features/arc/core-arcompact.c: Likewise.
7787 * features/arc/core-v2.c: Likewise.
7788 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7790 2020-03-16 Tom Tromey <tromey@adacore.com>
7793 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7794 putting value into bcache.
7796 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7799 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7801 (amd64_windows_init_abi_common): ... this. Don't set size of
7803 (amd64_windows_init_abi): New function.
7804 (amd64_cygwin_init_abi): New function.
7805 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7807 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7810 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7812 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7813 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7814 (pe_import_directory_entry): New struct type.
7815 (is_linked_with_cygwin_dll): New function.
7816 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7817 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7818 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7820 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7822 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7823 i386_cygwin_core_osabi_sniffer.
7825 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7827 * i386-cygwin-tdep.c: Rename to...
7828 * i386-windows-tdep.c: ... this.
7829 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7830 i386-windows-tdep.c.
7831 * configure.tgt: Likewise.
7833 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7835 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7836 * osabi.c (gdb_osabi_names): Add "Windows".
7837 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7838 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7839 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7840 i386_cygwin_osabi_sniffer.
7841 (_initialize_i386_cygwin_tdep): Register OS ABI
7842 GDB_OSABI_WINDOWS for i386.
7843 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7844 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7845 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7847 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7848 when the target matches '*-*-mingw*'.
7850 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7852 * defs.h (enum gdb_osabi): Move to...
7853 * osabi.h (enum gdb_osabi): ... here.
7854 * gdbarch.sh: Include osabi.h in gdbarch.h.
7855 * gdbarch.h: Re-generate.
7857 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7859 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7861 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7863 2020-03-14 Tom Tromey <tom@tromey.com>
7865 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7867 (c_type_print_modifier): Likewise. Add "language" parameter.
7868 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7869 (c_type_print_base_1): Update.
7870 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7872 * type-stack.c (type_stack::insert): Handle tp_atomic and
7874 (type_stack::follow_type_instance_flags): Likewise.
7875 (type_stack::follow_types): Likewise. Merge type-following code.
7876 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7877 (space_identifier, cv_with_space_id)
7878 (const_or_volatile_or_space_identifier_noopt)
7879 (const_or_volatile_or_space_identifier): Remove.
7880 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7882 (ptr_operator, typebase): Update.
7883 (enum token_flag) <FLAG_C>: New constant.
7884 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7886 (lex_one_token): Handle FLAG_C.
7888 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7890 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7891 it to the ptrace call.
7892 * m68k-bsd-nat.c (store_registers): Likewise.
7894 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7896 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7898 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7899 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7900 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7902 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7904 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7905 nbsd_nat_target instead of inf_ptrace_target.
7906 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7909 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7911 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7914 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7916 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7917 it to the ptrace call.
7918 * alpha-bsd-nat.c (store_registers): Likewise.
7920 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7922 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7924 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7925 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7926 fill_fpregset): Likewise.
7928 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7930 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7931 nbsd_nat_target instead of inf_ptrace_target.
7932 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7935 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7937 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7940 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7942 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7943 it to the ptrace call.
7944 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7945 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7946 * arm-nbsd-nat.c (store_register): Likewise.
7947 * arm-nbsd-nat.c (store_regs): Likewise.
7948 * arm-nbsd-nat.c (store_fp_register): Likewise.
7949 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7951 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7953 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7954 nbsd_nat_target instead of inf_ptrace_target.
7955 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7958 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7960 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7961 it to the ptrace call.
7962 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7964 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7966 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7967 it to the ptrace call.
7968 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7970 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7972 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7974 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7976 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7978 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7979 instead of inf_ptrace_target.
7980 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7983 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7985 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7988 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7990 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7993 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7995 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7998 2020-03-13 Tom Tromey <tom@tromey.com>
8000 * value.h (val_print): Don't declare.
8001 * valprint.h (val_print_array_elements)
8002 (val_print_scalar_formatted, generic_val_print): Don't declare.
8003 * valprint.c (generic_val_print_array): Take a struct value.
8004 (generic_val_print_ptr, generic_val_print_memberptr)
8005 (generic_val_print_bool, generic_val_print_int)
8006 (generic_val_print_char, generic_val_print_complex)
8007 (generic_val_print): Remove.
8008 (generic_value_print): Update.
8009 (do_val_print): Remove unused parameters. Don't call
8011 (val_print): Remove.
8012 (common_val_print): Update. Don't call value_check_printable.
8013 (val_print_scalar_formatted, val_print_array_elements): Remove.
8014 * rust-lang.c (rust_val_print): Remove.
8015 (rust_language_defn): Update.
8016 * p-valprint.c (pascal_val_print): Remove.
8017 (pascal_value_print_inner): Update.
8018 (pascal_object_print_val_fields, pascal_object_print_val):
8020 (pascal_object_print_static_field): Update.
8021 * p-lang.h (pascal_val_print): Don't declare.
8022 * p-lang.c (pascal_language_defn): Update.
8023 * opencl-lang.c (opencl_language_defn): Update.
8024 * objc-lang.c (objc_language_defn): Update.
8025 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
8026 * m2-lang.h (m2_val_print): Don't declare.
8027 * m2-lang.c (m2_language_defn): Update.
8028 * language.h (struct language_defn) <la_val_print>: Remove.
8029 * language.c (unk_lang_value_print_inner): Rename. Change
8031 (unknown_language_defn, auto_language_defn): Update.
8032 * go-valprint.c (go_val_print): Remove.
8033 * go-lang.h (go_val_print): Don't declare.
8034 * go-lang.c (go_language_defn): Update.
8035 * f-valprint.c (f_val_print): Remove.
8036 * f-lang.h (f_value_print): Don't declare.
8037 * f-lang.c (f_language_defn): Update.
8038 * d-valprint.c (d_val_print): Remove.
8039 * d-lang.h (d_value_print): Don't declare.
8040 * d-lang.c (d_language_defn): Update.
8041 * cp-valprint.c (cp_print_value_fields)
8042 (cp_print_value_fields_rtti, cp_print_value): Remove.
8043 (cp_print_static_field): Update.
8044 * c-valprint.c (c_val_print_array, c_val_print_ptr)
8045 (c_val_print_struct, c_val_print_union, c_val_print_int)
8046 (c_val_print_memberptr, c_val_print): Remove.
8047 * c-lang.h (c_val_print_array, cp_print_value_fields)
8048 (cp_print_value_fields_rtti): Don't declare.
8049 * c-lang.c (c_language_defn, cplus_language_defn)
8050 (asm_language_defn, minimal_language_defn): Update.
8051 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
8052 (ada_val_print_enum): Take a struct value.
8053 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
8054 (ada_val_print): Remove.
8055 (ada_value_print_1): Update.
8056 (printable_val_type): Remove.
8057 * ada-lang.h (ada_val_print): Don't declare.
8058 * ada-lang.c (ada_language_defn): Update.
8060 2020-03-13 Tom Tromey <tom@tromey.com>
8062 * valprint.c (do_val_print): Update.
8063 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
8065 (value_to_value_object_no_release): Declare.
8066 * python/py-value.c (value_to_value_object_no_release): New
8068 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
8070 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
8072 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
8074 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
8076 (gdbscm_apply_val_pretty_printer): Take a struct value.
8077 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
8079 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
8081 * extension-priv.h (struct extension_language_ops)
8082 <apply_val_pretty_printer>: Take a struct value.
8083 * cp-valprint.c (cp_print_value): Create a struct value.
8084 (cp_print_value): Update.
8086 2020-03-13 Tom Tromey <tom@tromey.com>
8088 * ada-valprint.c (print_field_values): Call common_val_print.
8090 2020-03-13 Tom Tromey <tom@tromey.com>
8092 * ada-valprint.c (val_print_packed_array_elements): Remove
8093 bitoffset and val parameters. Call common_val_print.
8094 (ada_val_print_string): Remove offset, address, and original_value
8096 (ada_val_print_array): Update.
8097 (ada_value_print_array): New function.
8098 (ada_value_print_1): Call it.
8100 2020-03-13 Tom Tromey <tom@tromey.com>
8102 * ada-valprint.c (ada_value_print): Use common_val_print.
8104 2020-03-13 Tom Tromey <tom@tromey.com>
8106 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
8108 2020-03-13 Tom Tromey <tom@tromey.com>
8110 * ada-valprint.c (ada_value_print_num): New function.
8111 (ada_value_print_1): Use it.
8113 2020-03-13 Tom Tromey <tom@tromey.com>
8115 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
8117 2020-03-13 Tom Tromey <tom@tromey.com>
8119 * ada-valprint.c (ada_value_print_ptr): New function.
8120 (ada_value_print_1): Use it.
8122 2020-03-13 Tom Tromey <tom@tromey.com>
8124 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
8125 call common_val_print.
8126 (ada_val_print_1): Update.
8127 (ada_value_print_1): New function.
8128 (ada_value_print_inner): Rewrite.
8130 2020-03-13 Tom Tromey <tom@tromey.com>
8132 * cp-valprint.c (cp_print_value_fields): Update.
8133 (cp_print_value): New function.
8135 2020-03-13 Tom Tromey <tom@tromey.com>
8137 * m2-valprint.c (m2_value_print_inner): Use
8138 cp_print_value_fields.
8139 * cp-valprint.c (cp_print_value_fields): New function.
8140 * c-valprint.c (c_value_print_struct): New function.
8141 (c_value_print_inner): Use c_value_print_struct.
8142 * c-lang.h (cp_print_value_fields): Declare.
8144 2020-03-13 Tom Tromey <tom@tromey.com>
8146 * c-valprint.c (c_value_print_array): New function.
8147 (c_value_print_inner): Use it.
8149 2020-03-13 Tom Tromey <tom@tromey.com>
8151 * c-valprint.c (c_value_print_memberptr): New function.
8152 (c_value_print_inner): Use it.
8154 2020-03-13 Tom Tromey <tom@tromey.com>
8156 * c-valprint.c (c_value_print_int): New function.
8157 (c_value_print_inner): Use it.
8159 2020-03-13 Tom Tromey <tom@tromey.com>
8161 * c-valprint.c (c_value_print_ptr): New function.
8162 (c_value_print_inner): Use it.
8164 2020-03-13 Tom Tromey <tom@tromey.com>
8166 * c-valprint.c (c_value_print_inner): Rewrite.
8168 2020-03-13 Tom Tromey <tom@tromey.com>
8170 * valprint.c (generic_value_print_complex): New function.
8171 (generic_value_print): Use it.
8173 2020-03-13 Tom Tromey <tom@tromey.com>
8175 * valprint.c (generic_val_print_float): Don't call
8176 val_print_scalar_formatted.
8177 (generic_val_print, generic_value_print): Update.
8179 2020-03-13 Tom Tromey <tom@tromey.com>
8181 * valprint.c (generic_value_print_char): New function
8182 (generic_value_print): Use it.
8184 2020-03-13 Tom Tromey <tom@tromey.com>
8186 * valprint.c (generic_value_print_int): New function.
8187 (generic_value_print): Use it.
8189 2020-03-13 Tom Tromey <tom@tromey.com>
8191 * valprint.c (generic_value_print_bool): New function.
8192 (generic_value_print): Use it.
8194 2020-03-13 Tom Tromey <tom@tromey.com>
8196 * valprint.c (generic_val_print_func): Simplify.
8197 (generic_val_print, generic_value_print): Update.
8199 2020-03-13 Tom Tromey <tom@tromey.com>
8201 * valprint.c (generic_val_print_flags): Remove.
8202 (generic_val_print, generic_value_print): Update.
8203 (val_print_type_code_flags): Add original_value parameter.
8205 2020-03-13 Tom Tromey <tom@tromey.com>
8207 * valprint.c (generic_val_print): Update.
8208 (generic_value_print): Update.
8209 * valprint.c (generic_val_print_enum): Don't call
8210 val_print_scalar_formatted.
8212 2020-03-13 Tom Tromey <tom@tromey.com>
8214 * valprint.c (generic_value_print): Call generic_value_print_ptr.
8215 * valprint.c (generic_value_print_ptr): New function.
8217 2020-03-13 Tom Tromey <tom@tromey.com>
8219 * valprint.c (generic_value_print): Rewrite.
8221 2020-03-13 Tom Tromey <tom@tromey.com>
8223 * p-valprint.c (pascal_object_print_value_fields)
8224 (pascal_object_print_value): New functions.
8226 2020-03-13 Tom Tromey <tom@tromey.com>
8228 * p-valprint.c (pascal_value_print_inner): Rewrite.
8230 2020-03-13 Tom Tromey <tom@tromey.com>
8232 * f-valprint.c (f_value_print_innner): Rewrite.
8234 2020-03-13 Tom Tromey <tom@tromey.com>
8236 * m2-valprint.c (m2_print_unbounded_array): New overload.
8237 (m2_print_unbounded_array): Update.
8238 (m2_print_array_contents): Take a struct value.
8239 (m2_value_print_inner): Rewrite.
8241 2020-03-13 Tom Tromey <tom@tromey.com>
8243 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
8244 (d_value_print_inner): New function.
8245 * d-lang.h (d_value_print_inner): Declare.
8246 * d-lang.c (d_language_defn): Use d_value_print_inner.
8248 2020-03-13 Tom Tromey <tom@tromey.com>
8250 * go-valprint.c (go_value_print_inner): New function.
8251 * go-lang.h (go_value_print_inner): Declare.
8252 * go-lang.c (go_language_defn): Use go_value_print_inner.
8254 2020-03-13 Tom Tromey <tom@tromey.com>
8256 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
8258 (rust_val_print): Rewrite.
8259 (rust_value_print_inner): New function, from rust_val_print.
8260 (rust_language_defn): Use rust_value_print_inner.
8262 2020-03-13 Tom Tromey <tom@tromey.com>
8264 * ada-valprint.c (ada_value_print_inner): New function.
8265 * ada-lang.h (ada_value_print_inner): Declare.
8266 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
8268 2020-03-13 Tom Tromey <tom@tromey.com>
8270 * f-valprint.c (f_value_print_innner): New function.
8271 * f-lang.h (f_value_print_innner): Declare.
8272 * f-lang.c (f_language_defn): Use f_value_print_innner.
8274 2020-03-13 Tom Tromey <tom@tromey.com>
8276 * p-valprint.c (pascal_value_print_inner): New function.
8277 * p-lang.h (pascal_value_print_inner): Declare.
8278 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
8280 2020-03-13 Tom Tromey <tom@tromey.com>
8282 * m2-valprint.c (m2_value_print_inner): New function.
8283 * m2-lang.h (m2_value_print_inner): Declare.
8284 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
8286 2020-03-13 Tom Tromey <tom@tromey.com>
8288 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
8289 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
8290 * c-valprint.c (c_value_print_inner): New function.
8291 * c-lang.h (c_value_print_inner): Declare.
8292 * c-lang.c (c_language_defn, cplus_language_defn)
8293 (asm_language_defn, minimal_language_defn): Use
8294 c_value_print_inner.
8296 2020-03-13 Tom Tromey <tom@tromey.com>
8298 * p-valprint.c (pascal_object_print_value_fields): Now static.
8299 * p-lang.h (pascal_object_print_value_fields): Don't declare.
8301 2020-03-13 Tom Tromey <tom@tromey.com>
8303 * c-valprint.c (c_val_print_array): Simplify.
8305 2020-03-13 Tom Tromey <tom@tromey.com>
8307 * valprint.c (value_print_array_elements): New function.
8308 * valprint.h (value_print_array_elements): Declare.
8310 2020-03-13 Tom Tromey <tom@tromey.com>
8312 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
8313 * mips-tdep.c (mips_print_register): Use
8314 value_print_scalar_formatted.
8316 2020-03-13 Tom Tromey <tom@tromey.com>
8318 * valprint.h (value_print_scalar_formatted): Declare.
8319 * valprint.c (value_print_scalar_formatted): New function.
8321 2020-03-13 Tom Tromey <tom@tromey.com>
8323 * valprint.h (generic_value_print): Declare.
8324 * valprint.c (generic_value_print): New function.
8326 2020-03-13 Tom Tromey <tom@tromey.com>
8328 * valprint.c (do_val_print): Call la_value_print_inner, if
8330 * rust-lang.c (rust_language_defn): Update.
8331 * p-lang.c (pascal_language_defn): Update.
8332 * opencl-lang.c (opencl_language_defn): Update.
8333 * objc-lang.c (objc_language_defn): Update.
8334 * m2-lang.c (m2_language_defn): Update.
8335 * language.h (struct language_defn) <la_value_print_inner>: New
8337 * language.c (unknown_language_defn, auto_language_defn): Update.
8338 * go-lang.c (go_language_defn): Update.
8339 * f-lang.c (f_language_defn): Update.
8340 * d-lang.c (d_language_defn): Update.
8341 * c-lang.c (c_language_defn, cplus_language_defn)
8342 (asm_language_defn, minimal_language_defn): Update.
8343 * ada-lang.c (ada_language_defn): Update.
8345 2020-03-13 Tom Tromey <tom@tromey.com>
8347 * c-valprint.c (c_value_print): Use common_val_print.
8349 2020-03-13 Tom Tromey <tom@tromey.com>
8351 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8353 2020-03-13 Tom Tromey <tom@tromey.com>
8355 * f-valprint.c (f77_print_array_1, f_val_print): Use
8358 2020-03-13 Tom Tromey <tom@tromey.com>
8360 * riscv-tdep.c (riscv_print_one_register_info): Use
8363 2020-03-13 Tom Tromey <tom@tromey.com>
8365 * mi/mi-main.c (output_register): Use common_val_print.
8367 2020-03-13 Tom Tromey <tom@tromey.com>
8369 * infcmd.c (default_print_one_register_info): Use
8372 2020-03-13 Tom Tromey <tom@tromey.com>
8374 * valprint.h (common_val_print_checked): Declare.
8375 * valprint.c (common_val_print_checked): New function.
8376 * stack.c (print_frame_arg): Use common_val_print_checked.
8378 2020-03-13 Tom Tromey <tom@tromey.com>
8380 * valprint.c (do_val_print): New function, from val_print.
8381 (val_print): Use do_val_print.
8382 (common_val_print): Use do_val_print.
8384 2020-03-13 Tom Tromey <tom@tromey.com>
8386 * valprint.c (value_print): Use scoped_value_mark.
8388 2020-03-13 Tom de Vries <tdevries@suse.de>
8391 * psymtab.c (partial_symtab::partial_symtab): Don't set
8392 globals_offset and statics_offset. Push element onto
8393 current_global_psymbols and current_static_psymbols stacks.
8394 (concat): New function.
8395 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8396 element from current_global_psymbols and current_static_psymbols
8397 stacks. Concat popped elements to global_psymbols and
8399 (add_psymbol_to_list): Use current_global_psymbols and
8400 current_static_psymbols stacks.
8401 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8402 current_static_psymbols fields.
8404 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8406 * corelow.c (sniff_core_bfd): Remove.
8407 (class core_target) <m_core_vec>: Remove.
8408 (core_target::core_target): Update.
8409 (core_file_fns): Remove.
8410 (deprecated_add_core_fns): Remove.
8411 (default_core_sniffer): Remove.
8412 (sniff_core_bfd): Remove.
8413 (default_check_format): Remove.
8414 (gdb_check_format): Remove.
8415 (core_target_open): Update.
8416 (core_target::get_core_register_section): Update.
8417 (get_core_registers_cb): Update.
8418 (core_target::fetch_registers): Update.
8419 * gdbcore.h (struct core_fns): Remove.
8420 (deprecated_add_core_fns): Remove.
8421 (default_core_sniffer): Remove.
8422 (default_check_format): Remove.
8424 2020-03-12 Tom Tromey <tom@tromey.com>
8426 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8428 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8430 2020-03-12 Tom Tromey <tom@tromey.com>
8432 * remote.c (remote_target::download_tracepoint)
8433 (remote_target::enable_tracepoint)
8434 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8435 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8438 2020-03-12 Tom Tromey <tom@tromey.com>
8440 * symfile-mem.c: Update CORE_ADDR size assert.
8442 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8444 * selftest.m4: Move to gdbsupport/.
8445 * acinclude.m4: Update path to selftest.m4.
8447 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8449 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8450 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8451 gdbarch-selfselftests.c and selftest-arch.c.
8452 (SUBDIR_UNITTESTS_OBS): Rename to...
8453 (SELFTESTS_OBS): ... this.
8454 (COMMON_SFILES): Remove disasm-selftests.c and
8455 gdbarch-selftests.c.
8456 * configure.ac: Don't add selftest-arch.{c,o} to
8458 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8459 preprocessor conditions.
8461 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8463 * configure.ac: Don't source bfd/development.sh.
8464 * selftest.m4: Modify comment.
8465 * configure: Re-generate.
8467 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8469 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8470 not "true" or "false".
8471 * configure: Re-generate.
8473 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8475 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8476 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8477 renamed to arm_nbsd_supply_gregset.
8478 (fetch_register): Update to call arm_nbsd_supply_gregset.
8479 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8480 (arm_netbsd_nat_target::fetch_registers): Update.
8481 (fetch_elfcore_registers): Removed.
8482 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8483 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8484 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8485 not require NetBSD system headers.
8486 (arm_nbsd_regset): New struct.
8487 (arm_nbsd_iterate_over_regset_sections): New function.
8488 (arm_netbsd_init_abi_common): Updated to call
8489 set_gdbarch_iterate_over_regset_sections.
8490 * arm-nbsd-tdep.h: New file.
8492 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8494 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8497 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8499 * configure: Re-generate.
8501 2020-03-11 Tom Tromey <tromey@adacore.com>
8503 * ada-typeprint.c (print_choices): Fix comment.
8505 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8507 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8508 previous item in the list, when the list has no items.
8510 2020-03-11 Tom de Vries <tdevries@suse.de>
8512 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8513 PROP_LOCLIST handling code.
8515 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8517 * buildsym-legacy.c (record_line): Pass extra parameter to
8519 * buildsym.c (buildsym_compunit::record_line): Take an extra
8520 parameter, reduce duplication in the line table, and record the
8521 is_stmt flag in the line table.
8522 * buildsym.h (buildsym_compunit::record_line): Add extra
8524 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8525 non-statement lines.
8526 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8527 this to the symtab builder.
8528 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8529 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8530 through to dwarf_record_line_1.
8531 * infrun.c (process_event_stop_test): When stepping, don't stop at
8532 a non-statement instruction, and only refresh the step info when
8533 we land in the middle of a line's range. Also add an extra
8535 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8537 * record-btrace.c (btrace_find_line_range): Only record lines
8538 marked as is-statement.
8539 * stack.c (frame_show_address): Show the frame address if we are
8540 in a non-statement sal.
8541 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8542 (maintenance_print_one_line_table): Print a header for the is_stmt
8543 column, and include is_stmt information in the output.
8544 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8545 preference to non-statements.
8546 (find_pcs_for_symtab_line): Prefer is-statement entries.
8547 (find_line_common): Likewise.
8548 * symtab.h (struct linetable_entry): Add is_stmt field.
8549 (struct symtab_and_line): Likewise.
8550 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8551 arranging the line table.
8553 2020-03-07 Tom de Vries <tdevries@suse.de>
8555 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8558 2020-03-07 Tom Tromey <tom@tromey.com>
8560 * valops.c (value_literal_complex): Remove obsolete comment.
8561 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8564 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8566 * infrun.h: Forward-declare thread_info.
8567 (set_step_info): Add thread_info parameter, add doc.
8568 * infrun.c (set_step_info): Add thread_info parameter, move doc
8570 * infrun.c (process_event_stop_test): Pass thread to
8572 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8574 (prepare_one_step): Add thread_info parameter, pass it to
8575 set_step_frame and prepare_one_step (recursive) call.
8576 (step_1): Pass thread to prepare_one_step call.
8577 (step_command_fsm::should_stop): Pass thread to
8579 (until_next_fsm): Pass thread to set_step_frame call.
8580 (finish_command): Pass thread to set_step_info call.
8582 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8584 * windows-tdep.c (windows_solib_create_inferior_hook):
8585 Check if inferior is running.
8587 2020-03-06 Tom de Vries <tdevries@suse.de>
8589 * NEWS: Fix "the the".
8592 2020-03-06 Tom de Vries <tdevries@suse.de>
8594 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8596 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8598 * .dir-locals.el: Add a comment referencing the other copies of
8601 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8603 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8606 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8608 * .gitattributes: New file.
8610 2020-03-04 Tom Tromey <tom@tromey.com>
8612 * symmisc.c (print_symbol_bcache_statistics)
8613 (print_objfile_statistics): Update.
8614 * symfile.c (allocate_symtab): Use intern.
8615 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8616 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8617 macro_cache>: Remove.
8618 <string_cache>: New member.
8619 (struct objfile) <intern>: New methods.
8620 * elfread.c (elf_symtab_read): Use intern.
8621 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8622 (dwarf2_compute_name, dwarf2_physname)
8623 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8625 (guess_partial_die_structure_name): Update.
8626 (partial_die_info::fixup): Intern name.
8627 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8629 (dwarf2_name): Intern name. Update.
8630 * buildsym.c (buildsym_compunit::get_macro_table): Use
8633 2020-03-04 Tom Tromey <tom@tromey.com>
8635 * jit.c (bfd_open_from_target_memory): Make "target" const.
8636 * corefile.c (gnutarget): Now const.
8637 * gdbcore.h (gnutarget): Now const.
8639 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8641 * NEWS: Mention support for WOW64 processes.
8642 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8643 (amd64_windows_segment_register_p): Remove static.
8644 (_initialize_amd64_windows_nat): Update.
8645 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8646 * i386-windows-nat.c (context_offset): Update.
8647 (i386_mappings): Rename and remove static.
8648 (i386_windows_segment_register_p): Remove static.
8649 (_initialize_i386_windows_nat): Update.
8650 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8651 (STATUS_WX86_SINGLE_STEP): New macro.
8652 (EnumProcessModulesEx): New macro.
8653 (Wow64SuspendThread): New macro.
8654 (Wow64GetThreadContext): New macro.
8655 (Wow64SetThreadContext): New macro.
8656 (Wow64GetThreadSelectorEntry): New macro.
8657 (windows_set_context_register_offsets): Add static.
8658 (windows_set_segment_register_p): Likewise.
8659 (windows_add_thread): Adapt for WOW64 processes.
8660 (windows_fetch_one_register): Likewise.
8661 (windows_nat_target::fetch_registers): Likewise.
8662 (windows_store_one_register): Likewise.
8663 (display_selector): Likewise.
8664 (display_selectors): Likewise.
8665 (handle_exception): Likewise.
8666 (windows_continue): Likewise.
8667 (windows_nat_target::resume): Likewise.
8668 (windows_add_all_dlls): Likewise.
8669 (do_initial_windows_stuff): Likewise.
8670 (windows_nat_target::attach): Likewise.
8671 (windows_get_exec_module_filename): Likewise.
8672 (windows_nat_target::create_inferior): Likewise.
8673 (windows_xfer_siginfo): Likewise.
8674 (_initialize_loadable): Initialize Wow64SuspendThread,
8675 Wow64GetThreadContext, Wow64SetThreadContext,
8676 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8677 * windows-nat.h (windows_set_context_register_offsets):
8679 (windows_set_segment_register_p): Likewise.
8680 (i386_windows_segment_register_p): Add declaration.
8681 (amd64_windows_segment_register_p): Likewise.
8683 2020-03-04 Luis Machado <luis.machado@linaro.org>
8685 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8686 in "info registers" for AArch64/ARM.
8688 The change caused "info registers" to not print GPR's.
8692 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8694 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8695 when reg->group is empty and reggroup is not.
8697 2020-03-03 Tom Tromey <tromey@adacore.com>
8699 * dwarf2/frame.c (struct dwarf2_frame_cache)
8700 <checked_tailcall_bottom, entry_cfa_sp_offset,
8701 entry_cfa_sp_offset_p>: Remove members.
8702 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8703 (dwarf2_frame_prev_register): Don't call
8704 dwarf2_tailcall_sniffer_first.
8705 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8706 * frame-unwind.c (add_unwinder): New fuction.
8707 (frame_unwind_init): Use it. Add tailcall unwinder.
8709 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8710 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8712 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8713 value should be printed as true.
8715 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8717 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8718 (windows_init_abi): Set and use windows_so_ops.
8720 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8722 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8723 when verifying if dealing with a convenience variable.
8725 2020-03-03 Luis Machado <luis.machado@linaro.org>
8727 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8729 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8731 * infrun.c (gdbarch_supports_displaced_stepping): New.
8732 (use_displaced_stepping): Break up conditions in smaller pieces.
8733 Use gdbarch_supports_displaced_stepping.
8734 (displaced_step_prepare_throw): Use
8735 gdbarch_supports_displaced_stepping.
8737 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8739 * NEWS: Mention new behaviour of the history filename.
8740 * top.c (write_history_p): Add comment.
8741 (show_write_history_p): Add header comment, give a different
8742 message when history writing is on, but the history filename is
8744 (history_filename): Add comment.
8745 (history_filename_empty): New function.
8746 (show_history_filename): Add header comment, give a different
8747 message when the filename is empty.
8748 (init_history): Compare history_filename against nullptr, and only
8749 read history if the filename is not empty.
8750 (set_history_filename): Add header comment, and only make
8751 non-empty filenames absolute.
8752 (init_main): Make the filename argument to 'set history filename'
8755 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8757 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8758 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8759 (fetch_fp_register): Update.
8760 (fetch_fp_regs): Update.
8761 (store_fp_register): Update.
8762 (store_fp_regs): Update.
8763 (arm_netbsd_nat_target::read_description): New function.
8764 (fetch_elfcore_registers): Update.
8766 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8768 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8769 general_thread if the stop reply is missing a thread-id.
8770 (remote_target::process_stop_reply): Use the first non-exited
8771 thread if the target didn't pass a thread-id.
8772 * infrun.c (do_target_wait): Move call to
8773 switch_to_inferior_no_thread to ....
8774 (do_target_wait_1): ... here.
8776 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8778 * debuginfod-support.c: Include defs.h first.
8780 2020-02-28 Tom de Vries <tdevries@suse.de>
8782 * symfile.c (set_initial_language): Use default language for lookup.
8784 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8786 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8787 reader variable, pass `this` to read_cutu_die_from_dwo.
8789 2020-02-27 Aaron Merey <amerey@redhat.com>
8791 * source.c (open_source_file): Check for nullptr when computing
8794 2020-02-27 Tom Tromey <tromey@adacore.com>
8796 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8798 (dwarf2_add_field): Don't update nfields.
8799 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8801 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8803 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8806 2020-02-26 Tom Tromey <tom@tromey.com>
8808 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8809 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8810 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8811 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8814 2020-02-26 Tom Tromey <tom@tromey.com>
8816 * dwarf2/index-write.c (psym_index_map): Change type.
8817 (add_address_entry_worker, write_one_signatured_type)
8818 (recursively_count_psymbols, recursively_write_psymbols)
8819 (class debug_names, psyms_seen_size, write_gdbindex)
8820 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8822 2020-02-26 Aaron Merey <amerey@redhat.com>
8824 * Makefile.in: Handle optional debuginfod support.
8826 * README: Add --with-debuginfod summary.
8827 * config.in: Regenerate.
8828 * configure: Regenerate.
8829 * configure.ac: Handle optional debuginfod support.
8830 * debuginfod-support.c: debuginfod helper functions.
8831 * debuginfod-support.h: Ditto.
8832 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8834 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8835 when a dwz file cannot be found.
8836 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8837 debuginfo file cannot be found.
8838 * source.c (open_source_file): Query debuginfod servers when a
8839 source file cannot be found.
8840 * top.c (print_gdb_configuration): Include
8841 --{with,without}-debuginfod in the output.
8843 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8845 * thread.c (thr_try_catch_cmd): Print thread name.
8847 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8849 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8850 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8851 dwarf2_fetch_die_type_sect_off): Move to...
8852 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8853 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8854 dwarf2_fetch_die_type_sect_off): ... here.
8855 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8856 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8857 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8859 2020-02-26 Tom de Vries <tdevries@suse.de>
8862 * symfile.c (set_initial_language): Exit-early if
8863 language_mode == language_mode_manual.
8865 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8867 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8868 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8869 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8871 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8873 * gdbtypes.c (create_array_type_with_stride): Handle negative
8875 * valarith.c (value_subscripted_rvalue): Likewise.
8877 2020-02-25 Luis Machado <luis.machado@linaro.org>
8879 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8881 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8883 * loc.h (dwarf2_get_die_type): Move to...
8884 * read.h (dwarf2_get_die_type): ... here.
8885 * read.c (dwarf2_get_die_type): Move doc to header.
8887 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8889 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8890 'gnulib/Makefile.in' to the list.
8892 2020-02-24 Tom Tromey <tom@tromey.com>
8894 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8896 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8899 2020-02-24 Tom Tromey <tom@tromey.com>
8901 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8903 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8904 (dw2_do_instantiate_symtab, dw2_get_file_names)
8905 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8907 2020-02-24 Tom Tromey <tom@tromey.com>
8909 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8910 make_scoped_restore.
8911 (dwarf2_psymtab::read_symtab): Don't clear
8912 reading_partial_symbols.
8914 2020-02-24 Tom de Vries <tdevries@suse.de>
8917 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8919 2020-02-24 Tom de Vries <tdevries@suse.de>
8921 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8922 commands layout next/prev/regs.
8924 2020-02-22 Tom Tromey <tom@tromey.com>
8926 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8927 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8929 2020-02-22 Tom Tromey <tom@tromey.com>
8931 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8933 2020-02-22 Tom Tromey <tom@tromey.com>
8935 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8936 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8937 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8938 * tui/tui.c (_initialize_tui): Add usage text.
8940 2020-02-22 Tom Tromey <tom@tromey.com>
8942 * tui/tui-win.c (tui_set_focus_command)
8943 (tui_set_win_height_command): Use error_no_arg.
8944 (_initialize_tui_win): Update help text.
8945 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8947 2020-02-22 Tom Tromey <tom@tromey.com>
8949 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8950 * tui/tui-disasm.h (struct tui_disasm_window)
8951 <display_start_addr>: Declare.
8952 * tui/tui-source.h (struct tui_source_window)
8953 <display_start_addr>: Declare.
8954 * tui/tui-winsource.h (struct tui_source_window_base)
8955 <show_source_line, display_start_addr>: New methods.
8956 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8957 Rename and move to protected section.
8958 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8959 (tui_source_window_base::do_erase_source_content): Update.
8960 (tui_source_window_base::show_source_line): Now a method.
8961 (tui_source_window_base::show_source_content)
8962 (tui_source_window_base::tui_source_window_base)
8963 (tui_source_window_base::rerender)
8964 (tui_source_window_base::refill)
8965 (tui_source_window_base::do_scroll_horizontal)
8966 (tui_source_window_base::set_is_exec_point_at)
8967 (tui_source_window_base::update_breakpoint_info)
8968 (tui_source_window_base::update_exec_info): Update.
8969 * tui/tui-source.c (tui_source_window::set_contents)
8970 (tui_source_window::showing_source_p)
8971 (tui_source_window::do_scroll_vertical)
8972 (tui_source_window::location_matches_p)
8973 (tui_source_window::line_is_displayed): Update.
8974 (tui_source_window::display_start_addr): New method.
8975 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8976 (tui_disasm_window::do_scroll_vertical)
8977 (tui_disasm_window::location_matches_p): Update.
8978 (tui_disasm_window::display_start_addr): New method.
8980 2020-02-22 Tom Tromey <tom@tromey.com>
8982 * NEWS: Add entry for gdb.register_window_type.
8983 * tui/tui-layout.h (window_factory): New typedef.
8984 (tui_register_window): Declare.
8985 * tui/tui-layout.c (saved_tui_windows): New global.
8986 (tui_apply_current_layout): Use it.
8987 (tui_register_window): New function.
8988 * python/python.c (do_start_initialization): Call
8989 gdbpy_initialize_tui.
8990 (python_GdbMethods): Add "register_window_type" function.
8991 * python/python-internal.h (gdbpy_register_tui_window)
8992 (gdbpy_initialize_tui): Declare.
8993 * python/py-tui.c: New file.
8994 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8996 2020-02-22 Tom Tromey <tom@tromey.com>
8998 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
9000 2020-02-22 Tom Tromey <tom@tromey.com>
9002 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
9003 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
9004 * tui/tui-data.c (tui_set_win_with_focus): Remove.
9005 (tui_set_win_focus_to): Move from tui-win.c.
9007 2020-02-22 Tom Tromey <tom@tromey.com>
9009 * tui/tui-layout.c (make_standard_window, get_locator_window): New
9011 (known_window_types): New global.
9012 (tui_get_window_by_name): Reimplement.
9013 (initialize_known_windows): New function.
9014 (validate_window_name): Rewrite.
9015 (_initialize_tui_layout): Call initialize_known_windows.
9017 2020-02-22 Tom Tromey <tom@tromey.com>
9019 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
9021 * tui/tui-winsource.h (struct tui_source_window_base)
9022 <tui_source_window_base>: Remove parameter.
9023 * tui/tui-winsource.c
9024 (tui_source_window_base::tui_source_window_base): Remove
9026 (tui_source_window_base::refill): Update.
9027 * tui/tui-stack.h (struct tui_locator_window)
9028 <tui_locator_window>: Update.
9029 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
9030 Default the constructor.
9031 * tui/tui-regs.h (struct tui_data_item_window)
9032 <tui_data_item_window>: Default the constructor.
9033 (struct tui_data_window) <tui_data_window>: Likewise.
9034 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
9035 Default the constructor.
9036 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
9037 Default the constructor.
9039 (struct tui_win_info) <tui_win_info>: Default the constructor.
9040 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
9041 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
9042 Default the constructor.
9044 2020-02-22 Tom Tromey <tom@tromey.com>
9046 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
9047 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
9048 * tui/tui-win.c (tui_resize_all): Don't call
9049 tui_delete_invisible_windows.
9050 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
9052 (tui_set_layout): Update.
9053 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
9054 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
9055 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
9057 2020-02-22 Tom Tromey <tom@tromey.com>
9059 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
9062 2020-02-22 Tom Tromey <tom@tromey.com>
9064 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
9066 2020-02-22 Tom Tromey <tom@tromey.com>
9068 * tui/tui-winsource.h (struct tui_source_window_iterator)
9069 <inner_iterator>: New etytypedef.
9070 <tui_source_window_iterator>: Take "end" parameter.
9071 <tui_source_window_iterator>: Take iterator.
9072 <operator*, advance>: Update.
9073 <m_iter>: Change type.
9075 (struct tui_source_windows) <begin, end>: Update.
9076 * tui/tui-layout.c (tui_windows): New global.
9077 (tui_apply_current_layout): Clear tui_windows.
9078 (tui_layout_window::apply): Update tui_windows.
9079 * tui/tui-data.h (tui_windows): Declare.
9080 (all_tui_windows): Now inline function.
9081 (class tui_window_iterator, struct all_tui_windows): Remove.
9083 2020-02-22 Tom Tromey <tom@tromey.com>
9086 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
9087 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
9089 (class tui_layout_window) <get_sizes>: Likewise.
9090 (class tui_layout_split) <tui_layout_split>: Add "vertical"
9092 <get_sizes>: Add "height" argument.
9093 <m_vertical>: New field.
9094 * tui/tui-layout.c (tui_layout_split::clone): Update.
9095 (tui_layout_split::get_sizes): Add "height" argument.
9096 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
9097 (tui_new_layout_command): Parse "-horizontal".
9098 (_initialize_tui_layout): Update help string.
9099 (tui_layout_split::specification): Add "-horizontal" when needed.
9100 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
9102 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
9105 2020-02-22 Tom Tromey <tom@tromey.com>
9107 * tui/tui-layout.h (enum tui_adjust_result): New.
9108 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
9109 (class tui_layout_window) <adjust_size>: Return
9110 tui_adjust_result. Rewrite.
9111 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
9112 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
9114 2020-02-22 Tom Tromey <tom@tromey.com>
9116 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
9117 parameter and return types.
9118 (class tui_layout_base) <specification>: Add "depth".
9119 (class tui_layout_window) <specification>: Add "depth".
9120 (class tui_layout_split) <specification>: Add "depth".
9121 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
9123 (tui_new_layout_command): Parse sub-layouts.
9124 (_initialize_tui_layout): Update help string.
9125 (tui_layout_window::specification): Add "depth".
9126 (add_layout_command): Update.
9128 2020-02-22 Tom Tromey <tom@tromey.com>
9130 * NEWS: Add "tui new-layout" item.
9131 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
9132 Add new-layout command to help text.
9133 (validate_window_name): New function.
9134 (tui_new_layout_command): New function.
9135 (_initialize_tui_layout): Register "new-layout".
9136 (tui_layout_window::specification): New method.
9137 (tui_layout_window::specification): New method.
9138 * tui/tui-layout.h (class tui_layout_base) <specification>: New
9140 (class tui_layout_window) <specification>: New method.
9141 (class tui_layout_split) <specification>: New method.
9143 2020-02-22 Tom Tromey <tom@tromey.com>
9145 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
9146 * tui/tui-win.c (window_name_completer): Update comment.
9147 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
9149 (class tui_layout_window) <replace_window>: Likewise.
9150 (class tui_layout_split) <replace_window>: Likewise.
9151 (tui_set_layout): Don't declare.
9152 (tui_set_initial_layout): Declare function.
9153 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
9154 (asm_regs_layout): New globals.
9155 (tui_current_layout, show_layout): Remove.
9156 (tui_set_layout, tui_add_win_to_layout): Rewrite.
9157 (find_layout, tui_apply_layout): New function.
9158 (layout_completer): Remove.
9159 (tui_next_layout): Reimplement.
9160 (tui_next_layout_command): New function.
9161 (tui_set_initial_layout, tui_prev_layout_command): New functions.
9162 (tui_regs_layout): Reimplement.
9163 (tui_regs_layout_command): New function.
9164 (extract_display_start_addr): Rewrite.
9165 (next_layout, prev_layout): Remove.
9166 (tui_layout_window::replace_window): New method.
9167 (tui_layout_split::replace_window): New method.
9168 (destroy_layout): New function.
9169 (layout_list): New global.
9170 (add_layout_command): New function.
9171 (initialize_layouts): Update.
9172 (tui_layout_command): New function.
9173 (_initialize_tui_layout): Install "layout" commands.
9174 * tui/tui-data.h (enum tui_layout_type): Remove.
9175 (tui_current_layout): Don't declare.
9177 2020-02-22 Tom Tromey <tom@tromey.com>
9179 * tui/tui-regs.c (tui_reg_layout): Remove.
9180 (tui_reg_command): Use tui_regs_layout.
9181 * tui/tui-layout.h (tui_reg_command): Declare.
9182 * tui/tui-layout.c (tui_reg_command): New function.
9184 2020-02-22 Tom Tromey <tom@tromey.com>
9186 * tui/tui.c (tui_rl_delete_other_windows): Call
9187 tui_remove_some_windows.
9188 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
9190 (class tui_layout_window) <remove_windows>: New method.
9191 (class tui_layout_split) <remove_windows>: Declare.
9192 (tui_remove_some_windows): Declare.
9193 * tui/tui-layout.c (tui_remove_some_windows): New function.
9194 (tui_layout_split::remove_windows): New method.
9196 2020-02-22 Tom Tromey <tom@tromey.com>
9198 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
9199 * tui/tui-layout.h (tui_next_layout): Declare.
9200 * tui/tui-layout.c (tui_next_layout): New function.
9202 2020-02-22 Tom Tromey <tom@tromey.com>
9204 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
9205 correct coordinates.
9207 2020-02-22 Tom Tromey <tom@tromey.com>
9209 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
9210 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
9213 2020-02-22 Tom Tromey <tom@tromey.com>
9215 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
9216 TUI_DISASM_WIN, not tui_win_list.
9218 2020-02-22 Tom Tromey <tom@tromey.com>
9220 * valprint.c (generic_val_print_enum_1)
9221 (val_print_type_code_flags): Style member names.
9222 * rust-lang.c (val_print_struct, rust_print_enum)
9223 (rust_print_struct_def, rust_internal_print_type): Style member
9225 * p-valprint.c (pascal_object_print_value_fields): Style member
9226 names. Only call fprintf_symbol_filtered for static members.
9227 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
9228 * f-valprint.c (f_val_print): Style member names.
9229 * f-typeprint.c (f_type_print_base): Style member names.
9230 * cp-valprint.c (cp_print_value_fields): Style member names. Only
9231 call fprintf_symbol_filtered for static members.
9232 (cp_print_class_member): Style member names.
9233 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
9235 * ada-valprint.c (ada_print_scalar): Style enum names.
9236 (ada_val_print_enum): Likewise.
9237 * ada-typeprint.c (print_enum_type): Style enum names.
9239 2020-02-21 Tom Tromey <tom@tromey.com>
9241 * psympriv.h (struct partial_symtab): Update comment.
9243 2020-02-21 Tom Tromey <tromey@adacore.com>
9245 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
9248 2020-02-21 Tom de Vries <tdevries@suse.de>
9251 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
9252 if dependencies[i]->user != NULL.
9254 2020-02-21 Ali Tamur <tamur@google.com>
9256 * dwarf2/read.c (dwarf2_name): Add null check.
9258 2020-02-20 Tom Tromey <tom@tromey.com>
9260 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
9261 ">=", in binary search.
9262 (dwarf2_find_containing_comp_unit): New overload.
9263 (run_test): New self-test.
9264 (_initialize_dwarf2_read): Register new test.
9266 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
9268 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
9269 * riscv-tdep.h: Likewise.
9270 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
9272 * features/riscv/64bit-csr.xml: Regenerated.
9274 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
9275 Tom Tromey <tom@tromey.com>
9277 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
9278 of 'fputc_unfiltered'.
9279 (putchar_unfiltered): Call 'fputc_unfiltered'.
9280 (fputc_unfiltered): Call 'fputs_unfiltered'.
9282 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
9284 * config.in: Regenerate.
9285 * configure: Regenerate.
9286 * configure.ac: Add --with-python-libdir option.
9287 * main.c: Use WITH_PYTHON_LIBDIR.
9289 2020-02-19 Tom Tromey <tom@tromey.com>
9291 * symtab.c (general_symbol_info::compute_and_set_names): Use
9292 obstack_strndup. Simplify call to symbol_set_demangled_name.
9294 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
9296 * dwarf2/read.c (allocate_signatured_type_table,
9297 allocate_dwo_unit_table, allocate_type_unit_groups_table,
9298 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
9299 Remove objfile parameter, update all callers.
9301 2020-02-19 Doug Evans <dje@google.com>
9304 * rust-lang.c (rust_print_enum): Apply embedded_offset to
9305 rust_enum_variant calculation.
9307 2020-02-19 Tom Tromey <tromey@adacore.com>
9309 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
9311 2020-02-19 Tom Tromey <tromey@adacore.com>
9313 * ada-lang.c (cache_symbol): Use obstack_strdup.
9315 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9317 * configure: Regenerate.
9319 2020-02-19 Tom Tromey <tromey@adacore.com>
9321 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
9324 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
9326 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
9328 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
9330 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
9331 if GDBSERVER is not defined.
9332 (riscv_tdesc_cache): Likewise, also store const target_desc.
9333 (STATIC_IN_GDB): Define.
9334 (riscv_create_target_description): Update declaration with
9336 (riscv_lookup_target_description): New function, only define if
9337 GDBSERVER is not defined.
9338 * arch/riscv.h (riscv_create_target_description): Declare only
9339 when GDBSERVER is defined.
9340 (riscv_lookup_target_description): New declaration when GDBSERVER
9342 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9343 (riscv_linux_read_features): ...this, and return
9344 riscv_gdbarch_features instead of target_desc.
9345 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9346 (riscv_linux_read_description): Rename to...
9347 (riscv_linux_read_features): ...this.
9348 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9349 Update to use riscv_gdbarch_features and
9350 riscv_lookup_target_description.
9351 * riscv-tdep.c (riscv_find_default_target_description): Use
9352 riscv_lookup_target_description instead of
9353 riscv_create_target_description.
9355 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9357 * valprint.c (generic_val_print_enum_1): When printing a flag
9358 enum with value 0 and there is no enumerator with value 0, print
9359 just "0" instead of "(unknown: 0x0)".
9361 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9363 * valprint.c (generic_val_print_enum_1): Print unknown part of
9366 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9368 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9369 flag enums to contain duplicate enumerators.
9370 * valprint.c (generic_val_print_enum_1): Update comment.
9372 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9374 * dwarf2/read.c: Include "count-one-bits.h".
9375 (update_enumeration_type_from_children): If an enumerator has
9376 multiple bits set, don't treat the enumeration as a "flag enum".
9377 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9378 of flag enums have 0 or 1 bit set.
9380 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9382 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9384 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9385 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9386 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9387 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9388 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9390 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9392 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9394 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9396 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9397 displaced_step_closure_up.
9398 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9399 (struct displaced_step_closure_up):
9400 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9401 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9402 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9404 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9405 * gdbarch.c, gdbarch.h: Re-generate.
9406 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9407 displaced_step_closure_up.
9408 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9409 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9410 * infrun.h (displaced_step_closure_up): New type alias.
9411 (struct displaced_step_inferior_state) <step_closure>: Change
9412 type to displaced_step_closure_up.
9413 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9414 displaced_step_closure_up.
9415 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9417 2020-02-14 Tom Tromey <tom@tromey.com>
9419 * minidebug.c (gnu_debug_key): New global.
9420 (find_separate_debug_file_in_section): Use it.
9422 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9424 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9426 * gdbarch.c: Re-generate.
9427 * gdbarch.h: Re-generate.
9428 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9430 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9431 type to std::unique_ptr.
9432 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9433 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9434 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9435 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9436 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9437 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9438 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9439 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9440 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9442 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9444 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9446 (displaced_step_clear): Rename to...
9447 (displaced_step_reset): ... this. Just call displaced->reset ().
9448 (displaced_step_clear_cleanup): Rename to...
9449 (displaced_step_reset_cleanup): ... this.
9450 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9451 (displaced_step_fixup): Likewise.
9452 (resume_1): Likewise.
9453 (handle_inferior_event): Restore child's memory before calling
9454 displaced_step_fixup on the parent.
9455 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9457 <step_closure>: Change type to std::unique_ptr.
9459 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9461 * arm-tdep.c: Include count-one-bits.h.
9462 (cleanup_block_store_pc): Use count_one_bits.
9463 (cleanup_block_load_pc): Use count_one_bits.
9464 (arm_copy_block_xfer): Use count_one_bits.
9465 (thumb2_copy_block_xfer): Use count_one_bits.
9466 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9467 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9468 (thumb_get_next_pcs_raw): Use count_one_bits.
9469 (arm_get_next_pcs_raw): Use count_one_bits_l.
9470 * arch/arm.c (bitcount): Remove.
9471 * arch/arm.h (bitcount): Remove.
9473 2020-02-14 Tom Tromey <tromey@adacore.com>
9475 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9477 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9478 * dwarf2/loc.c (call_site_find_chain_1): Return
9480 (call_site_find_chain): Likewise.
9482 2020-02-14 Richard Biener <rguenther@suse.de>
9484 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9485 on expression with division operators.
9487 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9489 * MAINTAINERS (Write After Approval): Adding myself.
9491 2020-02-12 Tom Tromey <tom@tromey.com>
9493 * event-loop.c (event_data, gdb_event, event_handler_func):
9496 2020-02-12 Tom Tromey <tom@tromey.com>
9498 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9499 (dwarf2_frame_objfile_data): Add comment.
9500 (find_comp_unit, set_comp_unit): New functions.
9501 (dwarf2_frame_find_fde): Use find_comp_unit.
9502 (dwarf2_build_frame_info): Use set_comp_unit.
9504 2020-02-12 Tom Tromey <tom@tromey.com>
9506 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9507 (comp_unit): Don't initialize objfile.
9508 (execute_cfa_program): Add text_offset parameter.
9509 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9510 (dwarf2_frame_cache): Update.
9511 (dwarf2_build_frame_info): Don't set "objfile" member.
9513 2020-02-12 Tom Tromey <tom@tromey.com>
9515 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9516 (decode_frame_entry): Likewise.
9517 (dwarf2_build_frame_info): Update.
9519 2020-02-12 Tom Tromey <tom@tromey.com>
9521 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9522 (decode_frame_entry_1): Use the comp_unit obstack.
9524 2020-02-12 Tom Tromey <tom@tromey.com>
9526 * dwarf2/frame.c (struct comp_unit): Add initializers and
9528 (dwarf2_frame_objfile_data): Store a comp_unit.
9529 (dwarf2_frame_find_fde): Update.
9530 (dwarf2_build_frame_info): Use "new".
9532 2020-02-12 Tom Tromey <tom@tromey.com>
9534 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9535 (dwarf2_fde_table): Typedef for std::vector.
9536 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9537 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9538 (decode_frame_entry): Update.
9539 (dwarf2_build_frame_info): Use "new".
9541 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9543 * arm-tdep.c (arm_gdbarch_init): Update.
9544 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9545 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9546 have_neon, is_m>: Change to bool.
9548 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9550 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9552 2020-02-12 Tom Tromey <tom@tromey.com>
9554 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9556 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9558 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9559 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9561 2020-02-11 Tom Tromey <tom@tromey.com>
9563 * psymtab.h: Update comment.
9565 2020-02-11 Tom Tromey <tom@tromey.com>
9567 * gdb_obstack.h (struct auto_obstack): Use
9568 DISABLE_COPY_AND_ASSIGN.
9570 2020-02-11 Tom Tromey <tom@tromey.com>
9572 * dwarf2/frame.h (struct objfile): Don't forward declare.
9574 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9576 * cris-tdep.c (cris_supply_gregset): Change signature to match
9577 what struct regset expects.
9578 (cris_regset): New struct.
9579 (fetch_core_registers): Remove.
9580 (cris_iterate_over_regset_sections): New function.
9581 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9582 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9584 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9586 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9589 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9591 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9593 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9595 * configure: Re-generate.
9597 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9599 * configure: Re-generate.
9601 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9603 * acinclude: Update warning.m4 path.
9604 * warning.m4: Move to gdbsupport.
9606 2020-02-11 Tom Tromey <tromey@adacore.com>
9608 * remote.c (remote_console_output): Update.
9609 * printcmd.c (printf_command): Update.
9610 * event-loop.c (gdb_wait_for_event): Update.
9611 * linux-nat.c (sigchld_handler): Update.
9612 * remote-sim.c (gdb_os_write_stdout): Update.
9613 (gdb_os_flush_stdout): Update.
9614 (gdb_os_flush_stderr): Update.
9615 (gdb_os_write_stderr): Update.
9616 * exceptions.c (print_exception): Update.
9617 * remote-fileio.c (remote_fileio_func_read): Update.
9618 (remote_fileio_func_write): Update.
9619 * tui/tui.c (tui_enable): Update.
9620 * tui/tui-interp.c (tui_interp::init): Update.
9621 * utils.c (init_page_info): Update.
9622 (putchar_unfiltered, fputc_unfiltered): Update.
9623 (gdb_flush): Update.
9624 (emit_style_escape): Update.
9625 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9626 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9627 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9628 (stderr_file::write): Update.
9629 (stderr_file::puts): Update.
9630 * ui-file.h (ui_file_isatty, ui_file_write)
9631 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9632 (ui_file_puts): Don't declare.
9634 2020-02-10 Tom de Vries <tdevries@suse.de>
9636 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9639 2020-02-09 Tom de Vries <tdevries@suse.de>
9641 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9642 filename if it matches "<artificial>".
9644 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9646 * windows-tdep.c (struct enum_value_name): New struct.
9647 (create_enum): New function.
9648 (windows_get_siginfo_type): Create and use enum types.
9650 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9652 * NEWS: Mention $_siginfo support for Windows.
9653 * windows-nat.c (handle_exception): Set siginfo_er.
9654 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9655 (windows_xfer_siginfo): New function.
9656 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9657 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9658 (init_windows_gdbarch_data): New function.
9659 (get_windows_gdbarch_data): New function.
9660 (windows_get_siginfo_type): New function.
9661 (windows_init_abi): Register windows_get_siginfo_type.
9662 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9664 2020-02-08 Tom Tromey <tom@tromey.com>
9666 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9667 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9668 <keep>: Declare method.
9669 <m_keep>: Remove member.
9670 <~cutu_reader>: Remove.
9671 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9672 (cutu_reader::cutu_reader): Update.
9673 (cutu_reader::keep): Rename from ~cutu_reader.
9674 (process_psymtab_comp_unit, build_type_psymtabs_1)
9675 (process_skeletonless_type_unit, load_partial_comp_unit)
9676 (load_full_comp_unit, dwarf2_read_addr_index)
9677 (read_signatured_type): Update.
9679 2020-02-08 Tom Tromey <tom@tromey.com>
9681 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9682 "want_partial_unit" parameter.
9683 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9684 Inline check for DW_TAG_partial_unit.
9685 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9687 2020-02-08 Tom Tromey <tom@tromey.com>
9689 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9691 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9694 2020-02-08 Tom Tromey <tom@tromey.com>
9696 * dwarf2/read.c (read_address): Move to comp-unit.c.
9697 (dwarf2_rnglists_process, dwarf2_ranges_process)
9698 (read_attribute_value, dwarf_decode_lines_1)
9699 (var_decode_location, decode_locdesc): Update.
9700 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9701 read.c. Remove "cu" parameter.
9702 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9705 2020-02-08 Tom Tromey <tom@tromey.com>
9707 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9708 (read_indirect_line_string): Update.
9709 * dwarf2/comp-unit.c (read_offset): Remove.
9710 (read_comp_unit_head): Update.
9711 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9713 (read_offset): Don't declare.
9715 2020-02-08 Tom Tromey <tom@tromey.com>
9717 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9718 * dwarf2/read.c (struct comp_unit_head): Move to
9720 (enum class rcuh_kind): Move to comp-unit.h.
9721 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9722 (read_comp_unit_head, error_check_comp_unit_head)
9723 (read_and_check_comp_unit_head): Move to comp-unit.c.
9724 (read_offset, dwarf_unit_type_name): Likewise.
9725 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9726 (cutu_reader::cutu_reader, read_call_site_scope)
9727 (find_partial_die, follow_die_offset): Update.
9728 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9730 2020-02-08 Tom Tromey <tom@tromey.com>
9732 * dwarf2/read.c (read_offset_1): Move to leb.c.
9733 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9734 (dwarf_decode_macro_bytes): Update.
9735 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9736 * dwarf2/leb.h (read_offset): Declare.
9738 2020-02-08 Tom Tromey <tom@tromey.com>
9740 * dwarf2/read.c (dwarf2_section_size): Remove.
9741 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9743 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9745 2020-02-08 Tom Tromey <tom@tromey.com>
9747 * dwarf2/read.c (read_initial_length): Move to leb.c.
9748 * dwarf2/leb.h (read_initial_length): Declare.
9749 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9750 handle_nonstd parameter.
9751 * dwarf2/frame.c (read_initial_length): Remove.
9752 (decode_frame_entry_1): Update.
9754 2020-02-08 Tom Tromey <tom@tromey.com>
9756 * dwarf2/loc.c (dwarf2_find_location_expression)
9757 (dwarf_evaluate_loc_desc::get_tls_address)
9758 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9759 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9760 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9761 (dwarf2_compile_property_to_c)
9762 (dwarf2_loc_desc_get_symbol_read_needs)
9763 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9764 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9765 (loclist_describe_location, loclist_tracepoint_var_ref)
9766 (loclist_generate_c_location): Update.
9767 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9768 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9769 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9770 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9771 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9772 (dwarf2_per_cu_data::addr_size)
9773 (dwarf2_per_cu_data::ref_addr_size)
9774 (dwarf2_per_cu_data::text_offset)
9775 (dwarf2_per_cu_data::addr_type): Now methods.
9776 (per_cu_header_read_in): Make per_cu "const".
9777 (dwarf2_version): Remove.
9778 (dwarf2_per_cu_data::int_type): Now a method.
9779 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9780 (set_die_type, read_array_type, read_subrange_index_type)
9781 (read_tag_string_type, read_subrange_type): Update.
9782 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9783 offset_size, ref_addr_size, text_offset, addr_type, version,
9784 objfile, int_type, addr_sized_int_type>: Declare methods.
9786 2020-02-08 Tom Tromey <tom@tromey.com>
9788 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9791 2020-02-08 Tom Tromey <tom@tromey.com>
9793 * dwarf2/read.h (dwarf_line_debug): Declare.
9794 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9795 * dwarf2/read.c: Move line_header code to new files.
9796 (dwarf_line_debug): No longer static.
9797 * dwarf2/line-header.c: New file.
9798 * dwarf2/line-header.h: New file.
9800 2020-02-08 Tom Tromey <tom@tromey.com>
9802 * dwarf2/read.c (struct line_header) <file_full_name,
9803 file_file_name>: Return unique_xmalloc_ptr.
9804 (line_header::file_file_name): Update.
9805 (line_header::file_full_name): Update.
9806 (dw2_get_file_names_reader): Update.
9807 (macro_start_file): Update.
9809 2020-02-08 Tom Tromey <tom@tromey.com>
9811 * dwarf2/read.c (struct line_header) <file_full_name,
9812 file_file_name>: Declare methods.
9813 (dw2_get_file_names_reader): Update.
9814 (file_file_name): Now a method.
9815 (file_full_name): Likewise.
9816 (macro_start_file): Update.
9818 2020-02-08 Tom Tromey <tom@tromey.com>
9820 * dwarf2/read.c (dwarf_always_disassemble)
9821 (show_dwarf_always_disassemble): Move to loc.c.
9822 (_initialize_dwarf2_read): Move "always-disassemble" registration
9824 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9825 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9827 (show_dwarf_always_disassemble): Move from read.c.
9828 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9830 2020-02-08 Tom Tromey <tom@tromey.com>
9832 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9833 (create_quick_file_names_table): Return htab_up.
9834 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9836 * dwarf2/read.h (struct dwarf2_per_objfile)
9837 <quick_file_names_table>: Now htab_up.
9839 2020-02-08 Tom Tromey <tom@tromey.com>
9841 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9843 2020-02-08 Tom Tromey <tom@tromey.com>
9845 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9847 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9848 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9849 (abbrev_table::abbrev_table): No longer inline.
9850 (ABBREV_HASH_SIZE): Remove.
9851 (abbrev_table::m_abbrevs): Now an htab_up.
9853 2020-02-08 Tom Tromey <tom@tromey.com>
9855 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9856 (cutu_reader): Update.
9857 (build_type_psymtabs_1): Update.
9858 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9859 (abbrev_table::alloc_abbrev): Update.
9860 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9861 (abbrev_table::read): New static method, renamed from
9862 abbrev_table_read_table.
9863 (abbrev_table::alloc_abbrev)
9864 (abbrev_table::add_abbrev): Now private.
9865 (abbrev_table::abbrev_table): Now private.
9866 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9868 2020-02-08 Tom Tromey <tom@tromey.com>
9870 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9871 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9874 2020-02-08 Tom Tromey <tom@tromey.com>
9876 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9878 (lookup_dwo_unit_in_dwp): Update.
9879 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9882 2020-02-08 Tom Tromey <tom@tromey.com>
9884 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9887 2020-02-08 Tom Tromey <tom@tromey.com>
9889 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9891 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9892 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9893 Change type to htab_up.
9895 2020-02-08 Tom Tromey <tom@tromey.com>
9897 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9898 htab_up. Don't allocate on obstack.
9899 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9900 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9901 Change type to htab_up.
9903 2020-02-08 Tom Tromey <tom@tromey.com>
9905 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9906 Change type to htab_up.
9907 * dwarf2/read.c (create_signatured_type_table_from_index)
9908 (create_signatured_type_table_from_debug_names)
9909 (create_all_type_units, add_type_unit)
9910 (lookup_dwo_signatured_type, lookup_signatured_type)
9911 (process_skeletonless_type_unit): Update.
9912 (create_debug_type_hash_table, create_debug_types_hash_table):
9913 Change type of types_htab.
9914 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9915 htab_up. Don't allocate on obstack.
9916 (create_cus_hash_table): Change type of cus_htab parameter.
9917 (struct dwo_file) <cus, tus>: Now htab_up.
9918 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9919 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9920 (queue_and_load_all_dwo_tus): Update.
9921 * dwarf2/index-write.c (write_gdbindex): Update.
9922 (write_debug_names): Update.
9924 2020-02-08 Tom Tromey <tom@tromey.com>
9926 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9927 dwarf2/read.c. Remove "next" member. Add constructor ntad
9929 (struct dwarf2_per_objfile) <queue>: New member.
9930 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9932 (dwarf2_queue, dwarf2_queue_tail): Remove.
9933 (class dwarf2_queue_guard): Add parameter to constructor. Use
9934 DISABLE_COPY_AND_ASSIGN.
9935 <m_per_objfile>: New member.
9936 <~dwarf2_queue_guard>: Rewrite.
9937 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9939 (~dwarf2_queue_item): New.
9941 2020-02-08 Tom Tromey <tom@tromey.com>
9943 * dwarf2/read.c (struct die_info) <has_children>: New member.
9944 (dw2_get_file_names_reader): Remove has_children.
9945 (dw2_get_file_names): Update.
9946 (read_cutu_die_from_dwo): Remove has_children.
9947 (cutu_reader::init_tu_and_read_dwo_dies)
9948 (cutu_reader::cutu_reader): Update.
9949 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9950 Remove has_children.
9951 (build_type_psymtabs_1, process_skeletonless_type_unit)
9952 (load_partial_comp_unit, load_full_comp_unit): Update.
9953 (create_dwo_cu_reader): Remove has_children.
9954 (create_cus_hash_table, read_die_and_children): Update.
9955 (read_full_die_1,read_full_die): Remove has_children.
9956 (read_signatured_type): Update.
9957 (class cutu_reader) <has_children>: Remove.
9959 2020-02-08 Tom Tromey <tom@tromey.com>
9961 * dwarf2/expr.c: Rename from dwarf2expr.c.
9962 * dwarf2/expr.h: Rename from dwarf2expr.h.
9963 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9964 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9965 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9966 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9967 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9968 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9969 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9970 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9971 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9972 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9973 * dwarf2/loc.c: Rename from dwarf2loc.c.
9974 * dwarf2/loc.h: Rename from dwarf2loc.h.
9975 * dwarf2/read.c: Rename from dwarf2read.c.
9976 * dwarf2/read.h: Rename from dwarf2read.h.
9977 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9978 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9979 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9980 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9981 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9982 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9983 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9984 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9985 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9986 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9987 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9988 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9989 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9991 * Makefile.in (COMMON_SFILES): Update.
9992 (HFILES_NO_SRCDIR): Update.
9994 2020-02-08 Tom Tromey <tom@tromey.com>
9996 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9997 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9999 2020-02-08 Tom Tromey <tom@tromey.com>
10001 * dwarf2read.h (struct die_info): Don't declare.
10003 2020-02-08 Tom Tromey <tom@tromey.com>
10005 * dwarf2read.h (die_info_ptr): Remove typedef.
10007 2020-02-08 Tom Tromey <tom@tromey.com>
10009 * dwarf2read.c (read_call_site_scope)
10010 (handle_data_member_location, dwarf2_add_member_fn)
10011 (mark_common_block_symbol_computed, read_common_block)
10012 (attr_to_dynamic_prop, partial_die_info::read)
10013 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
10014 (dwarf2_symbol_mark_computed, set_die_type): Update.
10015 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
10017 (attr_form_is_block): Don't declare.
10018 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
10020 2020-02-08 Tom Tromey <tom@tromey.com>
10022 * dwarf2read.c (dwarf2_find_base_address, )
10023 (read_call_site_scope, rust_containing_type)
10024 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
10025 (handle_data_member_location, dwarf2_add_member_fn)
10026 (get_alignment, read_structure_type, process_structure_scope)
10027 (mark_common_block_symbol_computed, read_common_block)
10028 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
10029 (partial_die_info::read, read_attribute_value, new_symbol)
10030 (lookup_die_type, dwarf2_get_ref_die_offset)
10031 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
10032 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
10033 (dwarf2_symbol_mark_computed): Update.
10034 * dwarf2/attribute.h (struct attribute) <value_as_address,
10035 form_is_section_offset, form_is_constant, form_is_ref>: Declare
10037 (value_as_address, attr_form_is_section_offset)
10038 (attr_form_is_constant, attr_form_is_ref): Don't declare.
10039 * dwarf2/attribute.c (attribute::value_as_address)
10040 (attribute::form_is_section_offset, attribute::form_is_constant)
10041 (attribute::form_is_ref): Now methods.
10043 2020-02-08 Tom Tromey <tom@tromey.com>
10045 * dwarf2read.c (struct attribute, DW_STRING)
10046 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
10047 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
10048 (attr_form_is_block, attr_form_is_section_offset)
10049 (attr_form_is_constant, attr_form_is_ref): Move.
10050 * dwarf2/attribute.h: New file.
10051 * dwarf2/attribute.c: New file, from dwarf2read.c.
10052 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
10054 2020-02-08 Tom Tromey <tom@tromey.com>
10056 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
10057 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
10059 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
10060 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
10061 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
10063 * dwarf2/abbrev.h: New file.
10064 * dwarf2/abbrev.c: New file, from dwarf2read.c.
10065 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
10067 2020-02-08 Tom Tromey <tom@tromey.com>
10069 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
10070 (dwarf2_section_size, dwarf2_get_section_info)
10071 (create_signatured_type_table_from_debug_names)
10072 (create_addrmap_from_aranges, read_debug_names_from_section)
10073 (get_gdb_index_contents_from_section, read_comp_unit_head)
10074 (error_check_comp_unit_head, read_abbrev_offset)
10075 (create_debug_type_hash_table, init_cu_die_reader)
10076 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
10077 (read_comp_units_from_section, create_cus_hash_table)
10078 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
10079 (create_dwp_v2_section, dwarf2_rnglists_process)
10080 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
10081 (abbrev_table_read_table, read_indirect_string_at_offset_from)
10082 (read_indirect_string_from_dwz, read_addr_index_1)
10083 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
10084 (dwarf_decode_macro_bytes, dwarf_decode_macros)
10085 (fill_in_loclist_baton): Update.
10086 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
10087 get_containing_section, get_bfd_owner, get_bfd_section,
10088 get_file_name, get_id, get_flags, empty, read>: Declare methods.
10089 (dwarf2_read_section, get_section_name, get_section_file_name)
10090 (get_containing_section, get_section_bfd_owner)
10091 (get_section_bfd_section, get_section_name, get_section_file_name)
10092 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
10094 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
10095 (dwarf2_section_info::get_bfd_owner)
10096 (dwarf2_section_info::get_bfd_section)
10097 (dwarf2_section_info::get_name)
10098 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
10099 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
10100 (dwarf2_section_info::read): Now methods.
10101 * dwarf-index-write.c (class debug_names): Update.
10103 2020-02-08 Tom Tromey <tom@tromey.com>
10105 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
10106 Move to dwarf2/section.h.
10107 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
10108 (get_section_bfd_section, get_section_name)
10109 (get_section_file_name, get_section_id, get_section_flags)
10110 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
10112 * dwarf2/section.h: New file.
10113 * dwarf2/section.c: New file, from dwarf2read.c.
10114 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
10116 2020-02-08 Tom Tromey <tom@tromey.com>
10118 * dwarf2read.h (read_unsigned_leb128): Don't declare.
10119 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
10120 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
10121 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
10122 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
10123 * dwarf2/leb.h: New file, from dwarf2read.c.
10124 * dwarf2/leb.c: New file, from dwarf2read.c.
10125 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
10127 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
10128 (COMMON_SFILES): Add dwarf2/leb.c.
10130 2020-02-08 Joel Brobecker <brobecker@adacore.com>
10134 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10137 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
10138 * gdb/remote.c (remote_console_output): Update.
10139 * gdb/ui-file.c (fputs_unfiltered): Rename to...
10140 (ui_file_puts): ...this.
10141 * gdb/ui-file.h (ui_file_puts): Add declaration.
10142 * gdb/utils.c (emit_style_escape): Update.
10143 (flush_wrap_buffer): Update.
10144 (fputs_maybe_filtered): Update.
10145 (fputs_unfiltered): Add function.
10147 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
10149 * gdb/event-loop.c (gdb_wait_for_event): Update.
10150 * gdb/printcmd.c (printf_command): Update.
10151 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
10152 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
10153 (gdb_os_flush_stderr): Update.
10154 * gdb/remote.c (remote_console_output): Update.
10155 * gdb/ui-file.c (gdb_flush): Rename to...
10156 (ui_file_flush): ...this.
10157 (stderr_file::write): Update.
10158 (stderr_file::puts): Update.
10159 * gdb/ui-file.h (gdb_flush): Rename to...
10160 (ui_file_flush): ...this.
10161 * gdb/utils.c (gdb_flush): Add function.
10162 * gdb/utils.h (gdb_flush): Add declaration.
10164 2020-02-07 Tom Tromey <tromey@adacore.com>
10166 PR breakpoints/24915:
10167 * source.c (find_and_open_source): Do not check basenames_may_differ.
10169 2020-02-07 Tom Tromey <tom@tromey.com>
10171 * README: Update gdbserver documentation.
10172 * gdbserver: Move to top level.
10173 * configure.tgt (build_gdbserver): Remove.
10174 * configure.ac: Remove --enable-gdbserver.
10175 * configure: Rebuild.
10176 * Makefile.in (distclean): Don't mention gdbserver.
10178 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10180 * source-cache.c (source_cache::ensure): Surround
10181 get_plain_source_lines with a try/catch.
10182 (source_cache::get_line_charpos): Get rid of try/catch
10183 and only check for the return value of "ensure".
10184 * tui/tui-source.c (tui_source_window::set_contents):
10185 Simplify "nlines" calculation.
10187 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
10189 * MAINTAINERS (Write After Approval): Add myself.
10191 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10193 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
10196 2020-02-05 Christian Biesinger <cbiesinger@google.com>
10198 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
10200 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
10202 * nat/riscv-linux-tdesc.h: New file.
10203 * nat/riscv-linux-tdesc.c: New file, taking code from...
10204 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
10206 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
10209 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
10211 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
10212 we don't set the fake simulator ptid to the null_ptid.
10214 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
10216 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
10217 * gdbthread.h (class thread_info) <resumed>: Likewise.
10218 * infrun.c (resume_1): Likewise.
10219 (proceed): Likewise.
10220 (infrun_thread_stop_requested): Likewise.
10221 (stop_all_threads): Likewise.
10222 (handle_inferior_event): Likewise.
10223 (restart_threads): Likewise.
10224 (finish_step_over): Likewise.
10225 (keep_going_stepped_thread): Likewise.
10226 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
10227 (linux_handle_extended_wait): Likewise.
10228 * record-btrace.c (get_thread_current_frame_id): Likewise.
10229 * record-full.c (record_full_wait_1): Likewise.
10230 * remote.c (remote_target::process_initial_stop_replies): Likewise.
10231 * target.c (target_resume): Likewise.
10232 * thread.c (set_running_thread): Likewise.
10234 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10236 * f-valprint.c (f77_print_array_1): Changed datatype of index
10237 variable to LONGEST from int to enable it to contain bound
10240 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
10242 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
10243 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
10244 offsets according to FLEN determined.
10245 (riscv_linux_nat_target::read_description): Determine FLEN
10247 (riscv_linux_nat_target::fetch_registers): Size regset buffer
10248 according to FLEN determined.
10249 (riscv_linux_nat_target::store_registers): Likewise.
10251 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10253 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10254 when reg->group is empty and reggroup is not.
10256 2020-01-31 Tom Tromey <tromey@adacore.com>
10258 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
10259 Call beneath target's mourn_inferior after unpushing.
10261 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10264 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
10265 have enough lines to fill the screen, still return the lowest
10268 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
10270 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
10271 '-', '<', and '>' commands.
10273 2020-01-29 Pedro Alves <palves@redhat.com>
10274 Sergio Durigan Junior <sergiodj@redhat.com>
10276 * infcmd.c (construct_inferior_arguments): Assert that
10277 'argc' is greater than 0.
10279 2020-01-29 Luis Machado <luis.machado@linaro.org>
10281 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
10282 (BRK_INSN_MASK): Define to 0xd4200000.
10283 (aarch64_program_breakpoint_here_p): New function.
10284 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
10285 * arch-utils.c (default_program_breakpoint_here_p): Moved from
10287 * arch-utils.h (default_program_breakpoint_here_p): Moved from
10289 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
10290 call gdbarch_program_breakpoint_here_p.
10291 (program_breakpoint_here): Moved to arch-utils.c, renamed to
10292 default_program_breakpoint_here_p, changed return type to bool and
10294 * breakpoint.h (program_breakpoint_here): Moved prototype to
10295 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
10296 return type to bool.
10297 * gdbarch.c: Regenerate.
10298 * gdbarch.h: Regenerate.
10299 * gdbarch.sh (program_breakpoint_here_p): New method.
10300 * infrun.c (handle_signal_stop): Call
10301 gdbarch_program_breakpoint_here_p.
10303 2020-01-26 Tom Tromey <tom@tromey.com>
10305 * ctfread.c (struct ctf_fp_info): Reindent.
10306 (_initialize_ctfread): Remove.
10308 2020-01-26 Tom Tromey <tom@tromey.com>
10310 * psymtab.c (partial_map_expand_apply)
10311 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
10312 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
10313 (psym_print_stats, psym_expand_symtabs_for_function)
10314 (psym_map_symbol_filenames, psym_map_matching_symbols)
10315 (psym_expand_symtabs_matching)
10316 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
10317 (maintenance_check_psymtabs): Use new methods.
10318 * psympriv.h (struct partial_symtab) <readin_p,
10319 get_compunit_symtab>: New methods.
10320 <readin, compunit_symtab>: Remove members.
10321 (struct standard_psymtab): New.
10322 (struct legacy_psymtab): Derive from standard_psymtab.
10323 * dwarf2read.h (struct dwarf2_psymtab): Derive from
10325 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
10327 2020-01-26 Tom Tromey <tom@tromey.com>
10329 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
10330 read_dependencies. Add assert.
10331 * psymtab.c (partial_symtab::read_dependencies): New method.
10332 * psympriv.h (struct partial_symtab) <read_dependencies>: New
10334 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
10335 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
10337 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
10340 2020-01-26 Tom Tromey <tom@tromey.com>
10342 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10343 Call expand_psymtab.
10344 (xcoff_read_symtab): Call expand_psymtab.
10345 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10346 legacy_expand_psymtab.
10347 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10349 (struct legacy_psymtab) <expand_psymtab>: Implement.
10350 <legacy_expand_psymtab>: New member.
10351 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10352 (parse_partial_symbols): Set legacy_expand_psymtab.
10353 (psymtab_to_symtab_1): Change argument order. Call
10355 (new_psymtab): Set legacy_expand_psymtab.
10356 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10357 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10359 (dwarf2_psymtab::expand_psymtab): Rename from
10360 psymtab_to_symtab_1. Call expand_psymtab.
10361 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10362 (dbx_end_psymtab): Likewise.
10363 (dbx_psymtab_to_symtab_1): Change argument order. Call
10365 (dbx_read_symtab): Call expand_psymtab.
10366 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10367 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10368 (ctf_psymtab::read_symtab): Call expand_psymtab.
10370 2020-01-26 Tom Tromey <tom@tromey.com>
10372 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10373 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10375 * mdebugread.c (mdebug_read_symtab): Remove prints.
10376 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10378 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10380 2020-01-26 Tom Tromey <tom@tromey.com>
10382 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10383 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10384 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10386 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10387 * psymtab.c (psymtab_to_symtab): Call method.
10388 (dump_psymtab): Update.
10389 * psympriv.h (struct partial_symtab): Add virtual destructor.
10390 <read_symtab>: New method.
10391 (struct legacy_symtab): New.
10392 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10393 (struct pst_map) <pst>: Now a legacy_psymtab.
10394 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10395 (new_psymtab): Use legacy_psymtab.
10396 * dwarf2read.h (struct dwarf2_psymtab): New.
10397 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10398 * dwarf2read.c (dwarf2_create_include_psymtab)
10399 (dwarf2_build_include_psymtabs, create_type_unit_group)
10400 (create_partial_symtab, process_psymtab_comp_unit_reader)
10401 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10402 (set_partial_user): Use dwarf2_psymtab.
10403 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10404 (psymtab_to_symtab_1, process_full_comp_unit)
10405 (process_full_type_unit, dwarf2_ranges_read)
10406 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10407 (dwarf_decode_lines): Use dwarf2_psymtab.
10408 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10409 (add_address_entry_worker, write_one_signatured_type)
10410 (recursively_count_psymbols, recursively_write_psymbols)
10411 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10412 (write_debug_names): Likewise.
10413 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10414 <pst>: Now a legacy_psymtab.
10415 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10416 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10417 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10418 * ctfread.c (struct ctf_psymtab): New.
10419 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10421 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10422 (create_partial_symtab): Return a ctf_psymtab.
10423 (scan_partial_symbols): Update.
10425 2020-01-26 Tom Tromey <tom@tromey.com>
10427 * xcoffread.c (xcoff_start_psymtab): Use new.
10428 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10429 renamed from start_psymtab_common.
10430 * psympriv.h (struct partial_symtab): Add new constructor.
10431 (start_psymtab_common): Don't declare.
10432 * mdebugread.c (parse_partial_symbols): Use new.
10433 * dwarf2read.c (create_partial_symtab): Use new.
10434 * dbxread.c (start_psymtab): Use new.
10435 * ctfread.c (create_partial_symtab): Use new.
10437 2020-01-26 Tom Tromey <tom@tromey.com>
10439 * xcoffread.c (xcoff_end_psymtab): Use new.
10440 * psymtab.c (start_psymtab_common): Use new.
10441 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10443 * psympriv.h (struct partial_symtab): Add parameters to
10444 constructor. Don't inline.
10445 (allocate_psymtab): Don't declare.
10446 * mdebugread.c (new_psymtab): Use new.
10447 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10448 * dbxread.c (dbx_end_psymtab): Use new.
10450 2020-01-26 Tom Tromey <tom@tromey.com>
10452 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10453 allocate_psymtab. Update documentation.
10454 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10455 allocate_psymtab. Do not use new.
10456 (allocate_psymtab): Use new. Update.
10458 2020-01-26 Tom Tromey <tom@tromey.com>
10460 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10461 * psymtab.c (psym_print_stats): Update.
10462 * psympriv.h (struct partial_symtab) <readin,
10463 psymtabs_addrmap_supported, anonymous>: Now bool.
10464 * mdebugread.c (psymtab_to_symtab_1): Update.
10465 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10466 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10467 (process_full_comp_unit, process_full_type_unit): Update.
10468 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10469 * ctfread.c (psymtab_to_symtab): Update.
10471 2020-01-26 Tom Tromey <tom@tromey.com>
10473 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10474 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10475 * psymtab.c (psymtab_storage): Delete psymtabs.
10476 (psymtab_storage::allocate_psymtab): Use new.
10477 (psymtab_storage::discard_psymtab): Use delete.
10478 * psympriv.h (struct partial_symtab): Add constructor and
10481 2020-01-26 Tom Tromey <tom@tromey.com>
10483 * machoread.c: Do not include psympriv.h.
10485 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10487 * NEWS: Mention the new option and the set/show commands.
10489 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10491 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10492 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10493 (validate_exec_file): New variables, enums, functions.
10494 (exec_file_locate_attach, print_section_info): Style the filenames.
10495 (_initialize_exec): Install show_exec_file_mismatch_command and
10496 set_exec_file_mismatch_command.
10497 * gdbcore.h (validate_exec_file): Declare.
10498 * infcmd.c (attach_command): Call validate_exec_file.
10499 * remote.c ( remote_target::remote_add_inferior): Likewise.
10501 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10503 * frame.c (find_frame_sal): Move call to get_next_frame into more
10505 * inline-frame.c (inilne_state) <inline_state>: Update argument
10507 (inilne_state) <skipped_symbol>: Rename to...
10508 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10509 (skip_inline_frames): Build vector of skipped symbols and use this
10510 to reate the inline_state.
10511 (inline_skipped_symbol): Add a comment and some assertions, fetch
10512 skipped symbol from the list.
10514 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10516 * buildsym.c (lte_is_less_than): Delete.
10517 (buildsym_compunit::end_symtab_with_blockvector): Create local
10518 lambda function to sort line table entries, and use
10519 std::stable_sort instead of std::sort.
10520 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10521 markers when looking for a previous line.
10523 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10525 * dwarf2read.c (lnp_state_machine::record_line): Include
10526 end_sequence parameter in debug print out. Record the line if we
10527 are at an end_sequence marker even if it's not the start of a
10529 * symmisc.c (maintenance_print_one_line_table): Print end of
10530 sequence markers with 'END' not '0'.
10532 2020-01-24 Pedro Alves <palves@redhat.com>
10535 * thread.c (scoped_restore_current_thread::restore): Use
10536 switch_to_inferior_no_thread.
10537 * exec.c: Include "progspace-and-thread.h".
10538 (add_target_sections, remove_target_sections):
10539 scoped_restore_current_pspace_and_thread instead of
10540 scoped_restore_current_thread.
10541 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10542 and aspace to the inferior before calling clone_program_space.
10543 Remove stale comment.
10545 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10547 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10548 (arm_netbsd_nat_target::fetch_registers): ...this.
10549 (arm_nbsd_nat_target::store_registers): Rename to...
10550 (arm_netbsd_nat_target::store_registers): ...this.
10552 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10554 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10557 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10559 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10561 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10563 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10564 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10565 the correct replacement (iterate_over_regset_sections).
10566 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10569 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10572 * gdb/python/python.c (execute_gdb_command): Call
10573 async_enable_stdin in catch block.
10575 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10577 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10578 SWITCH_THRU_ALL_UIS.
10580 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10583 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10584 comment, add extra parameter, and update to store previous symbol
10586 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10587 add extra parameter.
10588 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10589 remove unneeded parameter, add try/catch around gdb_print_insn,
10590 rewrite to add items to asm_lines vector.
10591 (tui_find_backward_disassembly_start_address): New function.
10592 (tui_find_disassembly_address): Updated throughout.
10593 (tui_disasm_window::set_contents): Update for changes to
10595 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10596 number of lines to scroll.
10598 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10600 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10601 (SECT_OFF_DATA): Likewise.
10602 (SECT_OFF_RODATA): Likewise.
10603 (SECT_OFF_TEXT): Likewise.
10604 (SECT_OFF_BSS): Likewise.
10605 (struct objfile) <text_section_offset, data_section_offset>: New
10607 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10608 objfile::text_section_offset.
10609 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10610 * coffread.c (coff_symtab_read): Likewise.
10611 (enter_linenos): Likewise.
10612 (process_coff_symbol): Likewise.
10613 * ctfread.c (get_objfile_text_range): Likewise.
10614 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10615 Use objfile::data_section_offset.
10616 * dwarf2-frame.c (execute_cfa_program): Use
10617 objfile::text_section_offset.
10618 (dwarf2_frame_find_fde): Likewise.
10619 * dwarf2read.c (create_addrmap_from_index): Likewise.
10620 (create_addrmap_from_aranges): Likewise.
10621 (dw2_find_pc_sect_compunit_symtab): Likewise.
10622 (process_psymtab_comp_unit_reader): Likewise.
10623 (add_partial_symbol): Likewise.
10624 (add_partial_subprogram): Likewise.
10625 (process_full_comp_unit): Likewise.
10626 (read_file_scope): Likewise.
10627 (read_func_scope): Likewise.
10628 (read_lexical_block_scope): Likewise.
10629 (read_call_site_scope): Likewise.
10630 (dwarf2_rnglists_process): Likewise.
10631 (dwarf2_ranges_process): Likewise.
10632 (dwarf2_ranges_read): Likewise.
10633 (dwarf_decode_lines_1): Likewise.
10634 (new_symbol): Likewise.
10635 (dwarf2_fetch_die_loc_sect_off): Likewise.
10636 (dwarf2_per_cu_text_offset): Likewise.
10637 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10638 * hppa-tdep.c (read_unwind_info): Likewise.
10639 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10640 * psympriv.h (struct partial_symtab): Likewise.
10641 * psymtab.c (find_pc_sect_psymtab): Likewise.
10642 * solib-svr4.c (enable_break): Likewise.
10643 * stap-probe.c (relocate_address): Use
10644 objfile::data_section_offset.
10645 * xcoffread.c (enter_line_range): Use
10646 objfile::text_section_offset.
10647 (read_xcoff_symtab): Likewise.
10649 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10651 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10652 declaration to narrower scopes.
10654 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10656 * darwin-nat.h (struct darwin_exception_msg, enum
10657 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10659 (class darwin_nat_target) <wait_1, check_new_threads,
10660 decode_exception_message, decode_message, stop_inferior,
10661 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10662 * darwin-nat.c (darwin_check_new_threads): Rename to...
10663 (darwin_nat_target::check_new_threads): ... this.
10664 (darwin_suspend_inferior_it): Remove.
10665 (darwin_decode_exception_message): Rename to...
10666 (darwin_nat_target::decode_exception_message): ... this.
10667 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10668 (darwin_decode_message): Rename to...
10669 (darwin_nat_target::decode_message): ... this.
10670 (cancel_breakpoint): Rename to...
10671 (darwin_nat_target::cancel_breakpoint): ... this.
10672 (darwin_wait): Rename to...
10673 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10674 instead of iterate_over_inferiors.
10675 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10676 (darwin_stop_inferior): Rename to...
10677 (darwin_nat_target::stop_inferior): ... this.
10678 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10679 (darwin_init_thread_list): Rename to...
10680 (darwin_nat_target::init_thread_list): ... this.
10681 (darwin_ptrace_him): Rename to...
10682 (darwin_nat_target::ptrace_him): ... this.
10683 (darwin_nat_target::create_inferior): Pass lambda function to
10685 (darwin_nat_target::detach): Call stop_inferior instead of
10686 darwin_stop_inferior.
10687 * fork-inferior.h (fork_inferior): Change init_trace_fun
10688 parameter to gdb::function_view.
10689 * fork-inferior.c (fork_inferior): Likewise.
10691 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10693 * i386-cygwin-tdep.c (core_process_module_section): Update.
10694 * windows-nat.c (struct lm_info_windows): Add text_offset.
10695 (windows_xfer_shared_libraries): Update.
10696 * windows-tdep.c (windows_xfer_shared_library):
10697 Add text_offset_cached argument.
10698 * windows-tdep.h (windows_xfer_shared_library): Update.
10700 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10702 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10704 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10706 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10707 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10708 replace with range-based for.
10709 (gdbsim_interrupt_inferior): Remove.
10710 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10711 with a range-based for. Inline code from
10712 gdbsim_interrupt_inferior.
10714 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10716 * infrun.c (proceed): Fix indentation.
10718 2020-01-21 Tom Tromey <tromey@adacore.com>
10720 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10721 * python/python.c (python_extension_ops): Update.
10722 (gdbpy_colorize): New function.
10723 * python/lib/gdb/__init__.py (colorize): New function.
10724 * extension.h (ext_lang_colorize): Declare.
10725 * extension.c (ext_lang_colorize): New function.
10726 * extension-priv.h (struct extension_language_ops) <colorize>: New
10728 * cli/cli-style.c (_initialize_cli_style): Update help text.
10730 2020-01-21 Luis Machado <luis.machado@linaro.org>
10732 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10733 <cond>: Change type to bool.
10734 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10735 (aarch64_displaced_step_cb): Likewise.
10736 (aarch64_displaced_step_tb): Likewise.
10738 2020-01-21 Luis Machado <luis.machado@linaro.org>
10740 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10743 2020-01-21 Luis Machado <luis.machado@linaro.org>
10745 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10746 <pc_adjust>: Adjust the documentation.
10747 (aarch64_displaced_step_fixup): Check if PC really moved before
10750 2020-01-19 Tom Tromey <tom@tromey.com>
10752 * disasm.c (~gdb_disassembler): New destructor.
10753 (gdb_buffered_insn_length): Call disassemble_free_target.
10754 * disasm.h (class gdb_disassembler): Declare destructor. Use
10755 DISABLE_COPY_AND_ASSIGN.
10757 2020-01-19 Tom Tromey <tom@tromey.com>
10759 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10760 (die_reader_func_ftype): Remove.
10761 (cutu_reader): New class.
10762 (dw2_get_file_names_reader): Remove "data" parameter.
10763 (dw2_get_file_names): Use cutu_reader.
10764 (create_debug_type_hash_table): Update.
10765 (read_cutu_die_from_dwo): Update comment.
10766 (lookup_dwo_unit): Add dwo_name parameter.
10767 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10768 die_reader_func_ftype and data parameters.
10769 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10770 Remove die_reader_func_ftype and data parameters.
10771 (~cutu_reader): New; from init_cutu_and_read_dies.
10772 (cutu_reader::cutu_reader): Rename from
10773 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10774 and data parameters.
10775 (init_cutu_and_read_dies_simple): Remove.
10776 (struct process_psymtab_comp_unit_data): Remove.
10777 (process_psymtab_comp_unit_reader): Remove data parameter; add
10778 want_partial_unit and pretend_language parameters.
10779 (process_psymtab_comp_unit): Use cutu_reader.
10780 (build_type_psymtabs_reader): Remove data parameter.
10781 (build_type_psymtabs_1): Use cutu_reader.
10782 (process_skeletonless_type_unit): Likewise.
10783 (load_partial_comp_unit_reader): Remove.
10784 (load_partial_comp_unit): Use cutu_reader.
10785 (load_full_comp_unit_reader): Remove.
10786 (load_full_comp_unit): Use cutu_reader.
10787 (struct create_dwo_cu_data): Remove.
10788 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10789 dwo_unit parameters.
10790 (create_cus_hash_table): Use cutu_reader.
10791 (struct dwarf2_read_addr_index_data): Remove.
10792 (dwarf2_read_addr_index_reader): Remove.
10793 (dwarf2_read_addr_index): Use cutu_reader.
10794 (read_signatured_type_reader): Remove.
10795 (read_signatured_type): Use cutu_reader.
10797 2020-01-19 Tom Tromey <tom@tromey.com>
10799 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10800 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10801 (tui_wrefresh): Declare.
10802 * tui/tui-wingeneral.c (suppress_output): New global.
10803 (tui_suppress_output, ~tui_suppress_output): New constructor and
10805 (tui_wrefresh): New function.
10806 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10807 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10808 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10810 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10812 (tui_data_window::no_refresh): New method.
10813 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10814 (tui_reg_command): Use tui_suppress_output
10815 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10816 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10818 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10820 2020-01-19 Tom Tromey <tom@tromey.com>
10822 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10823 Handle case where symtab is null.
10825 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10827 * linux-fork.c (one_fork_p): Simplify.
10829 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10831 * top.c (struct qt_args): Remove.
10832 (kill_or_detach): Change return type to void, replace `void *`
10833 parameter with a proper one.
10834 (print_inferior_quit_action): Likewise.
10835 (quit_confirm): Use range-based for loop to iterate over inferiors.
10836 (quit_force): Likewise.
10838 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10840 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10841 `void *` parameter with proper parameters.
10842 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10843 (print_one_inferior): Change return type to void, replace `void *`
10844 parameter with proper parameters.
10845 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10847 (get_other_inferior): Remove.
10848 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10851 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10853 * mi/mi-interp.c (report_initial_inferior): Remove.
10854 (mi_interp::init): Use range-based for to iterate over inferiors.
10856 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10858 * python/py-inferior.c (build_inferior_list): Remove.
10859 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10861 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10863 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10864 (btrace_stitch_trace): Likewise.
10865 * charset.c (intermediate_encoding): Likewise (vaild).
10866 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10867 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10868 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10870 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10872 * windows-tdep.c (windows_get_tlb_type):
10873 Add rtl_user_process_parameters type.
10875 2020-01-16 Pedro Alves <palves@redhat.com>
10876 Norbert Lange <nolange79@gmail.com>
10879 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10880 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10881 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10882 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10883 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10884 (ps_plog): Redeclare exported functions with default visibility.
10886 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10888 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10889 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10891 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10893 * infcmd.c (post_create_inferior): Use get_thread_regcache
10894 instead of get_current_regcache.
10896 2020-01-14 Tom Tromey <tom@tromey.com>
10899 * python/python.c (gdbpy_decode_line): Treat empty string the same
10902 2020-01-14 Tom Tromey <tom@tromey.com>
10904 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10906 2020-01-14 Tom Tromey <tom@tromey.com>
10908 * nat/linux-btrace.c: Don't include <config.h>.
10909 * nat/linux-ptrace.c: Don't include <config.h>.
10910 * nat/x86-linux-dregs.c: Don't include <config.h>.
10912 2020-01-14 Tom Tromey <tom@tromey.com>
10914 * configure: Rebuild.
10915 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10917 2020-01-14 Tom Tromey <tom@tromey.com>
10919 * nat/x86-linux-dregs.c: Include configh.h.
10920 * nat/linux-ptrace.c: Include configh.h.
10921 * nat/linux-btrace.c: Include configh.h.
10922 * defs.h: Include config.h, bfd.h.
10923 * configure.ac: Don't source common.host.
10924 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10925 * configure: Rebuild.
10926 * acinclude.m4: Update path.
10927 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10928 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10929 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10930 (CLIBS): Add LIBSUPPORT.
10932 (COMMON_SFILES): Remove gdbsupport files.
10933 (HFILES_NO_SRCDIR): Likewise.
10934 (stamp-version): Update path to create-version.sh.
10935 (ALLDEPFILES): Remove gdbsupport files.
10937 2020-01-14 Tom Tromey <tom@tromey.com>
10939 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10940 USE_WIN32API when needed.
10941 * configure.ac (USE_WIN32API): Don't define.
10942 (WIN32LIBS): Use WIN32APILIBS.
10943 * configure: Rebuild.
10945 2020-01-14 Tom Tromey <tom@tromey.com>
10947 * configure: Rebuild.
10948 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10950 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10952 * skip.c (skip_function_command): Make skip w/o arguments use the
10953 name of the inlined function if pc is inside any inlined function.
10955 2020-01-14 Luis Machado <luis.machado@linaro.org>
10957 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10958 * infrun.c (resume_1): Likewise.
10959 (handle_inferior_event): Remove stale comment.
10960 * linux-nat.c (linux_nat_target::resume): Update comments.
10961 (save_stop_reason): Likewise.
10962 (linux_nat_filter_event): Likewise.
10963 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10965 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10967 * elfread.c (record_minimal_symbol): Set section index to 0 for
10968 non-allocatable sections.
10971 2020-01-13 Ali Tamur <tamur@google.com>
10973 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10974 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10975 to gdb::optional. Update comments.
10976 (dwo_file): Update comments.
10977 (read_attribute): Update API to take an additional out parameter,
10978 need_reprocess. This is used to mark attributes that need other
10979 attributes (e.g. str_offsets_base) for correct computation which may not
10980 have been read yet.
10981 (read_attribute_reprocess): New function declaration.
10982 (read_addr_index): Likewise.
10983 (read_dwo_str_index): Likewise.
10984 (read_stub_str_index): Likewise.
10985 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10986 (lookup_addr_base): New function definition.
10987 (lookup_ranges_base): Likewise.
10988 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10989 lookup_ranges_base.
10990 (init_cutu_and_read_dies): Update comments.
10991 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10992 unit. This is used to inherit parent's str_offsets_base and addr_base.
10994 (init_cutu_and_read_dies_simple): Reflect API changes.
10995 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10996 (create_cus_hash_table): Change API to take parent compile unit.
10997 Reflect API changes.
10998 (open_and_init_dwo_file): Reflect API changes.
10999 (dwarf2_get_pc_bounds): Update comments.
11000 (dwarf2_record_block_ranges): Likewise.
11001 (read_full_die_1): Change implementation to reprocess attributes that
11002 need str_offsets_base and addr_base.
11003 (partial_die_info::read): Likewise.
11004 (read_attribute_reprocess): New function definition.
11005 (read_attribute_value): Change API to take an additional out parameter,
11006 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
11007 when a non-dwo compile unit has index based attributes.
11008 (read_attribute): Reflect API changes.
11009 (read_addr_index_1): Reflect API changes. Update comments.
11010 (dwarf2_read_addr_index_data): Reflect API changes.
11011 (dwarf2_read_addr_index): Likewise.
11012 (read_str_index): Change API and implementation. This becomes a helper
11013 to be used by the new string index related methods. Update error
11014 message and comments.
11015 (read_dwo_str_index): New function definition.
11016 (read_stub_str_index): Likewise.
11017 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
11018 * symfile.h (dwarf2_debug_sections): Likewise.
11019 * xcoffread.c (dwarf2_debug_sections): Likewise.
11021 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11023 * gdbcore.h (struct core_fns) <core_read_registers>: Change
11024 core_reg_sect type to gdb_byte *.
11025 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
11026 * cris-tdep.c (fetch_core_registers): Likewise.
11027 * corelow.c (core_target::get_core_register_section): Change
11028 type of `contents` to gdb::byte_vector.
11030 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
11032 * tui/tui-wingeneral.c (box_win): Position the title in the center
11035 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11037 * corelow.c (core_target::get_core_register_section): Use
11038 std::vector instead of alloca.
11040 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11042 * warning.m4: Add -Wmissing-declarations to build_warnings.
11043 * configure: Re-generate.
11045 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11047 * python/python.c (init__gdb_module): Add declaration.
11049 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
11051 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
11052 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
11053 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
11054 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
11055 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
11056 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
11057 * ada-exp.y (_initialize_ada_exp): Add declaration.
11058 * ada-lang.c (_initialize_ada_language): Add declaration.
11059 * ada-tasks.c (_initialize_tasks): Add declaration.
11060 * agent.c (_initialize_agent): Add declaration.
11061 * aix-thread.c (_initialize_aix_thread): Add declaration.
11062 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
11063 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
11064 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
11065 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
11066 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
11067 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
11068 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
11069 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
11070 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
11071 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
11072 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
11073 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
11074 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
11075 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
11076 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
11077 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
11078 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
11079 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
11080 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
11081 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
11082 * annotate.c (_initialize_annotate): Add declaration.
11083 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
11084 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
11085 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
11086 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
11087 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
11088 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
11089 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
11090 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
11091 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
11092 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
11093 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
11094 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
11095 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
11096 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
11097 * auto-load.c (_initialize_auto_load): Add declaration.
11098 * auxv.c (_initialize_auxv): Add declaration.
11099 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
11100 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
11101 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
11102 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
11103 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
11104 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
11105 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
11106 * breakpoint.c (_initialize_breakpoint): Add declaration.
11107 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
11108 * btrace.c (_initialize_btrace): Add declaration.
11109 * charset.c (_initialize_charset): Add declaration.
11110 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
11111 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
11112 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
11113 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
11114 * cli/cli-script.c (_initialize_cli_script): Add declaration.
11115 * cli/cli-style.c (_initialize_cli_style): Add declaration.
11116 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
11117 * coffread.c (_initialize_coffread): Add declaration.
11118 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
11119 * compile/compile.c (_initialize_compile): Add declaration.
11120 * complaints.c (_initialize_complaints): Add declaration.
11121 * completer.c (_initialize_completer): Add declaration.
11122 * copying.c (_initialize_copying): Add declaration.
11123 * corefile.c (_initialize_core): Add declaration.
11124 * corelow.c (_initialize_corelow): Add declaration.
11125 * cp-abi.c (_initialize_cp_abi): Add declaration.
11126 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
11127 * cp-support.c (_initialize_cp_support): Add declaration.
11128 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
11129 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
11130 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
11131 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
11132 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
11133 * ctfread.c (_initialize_ctfread): Add declaration.
11134 * d-lang.c (_initialize_d_language): Add declaration.
11135 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
11136 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
11137 * dbxread.c (_initialize_dbxread): Add declaration.
11138 * dcache.c (_initialize_dcache): Add declaration.
11139 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
11140 * disasm.c (_initialize_disasm): Add declaration.
11141 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
11142 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
11143 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
11144 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
11145 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
11146 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
11147 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
11148 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
11149 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
11150 * elfread.c (_initialize_elfread): Add declaration.
11151 * exec.c (_initialize_exec): Add declaration.
11152 * extension.c (_initialize_extension): Add declaration.
11153 * f-lang.c (_initialize_f_language): Add declaration.
11154 * f-valprint.c (_initialize_f_valprint): Add declaration.
11155 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
11156 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
11157 * filesystem.c (_initialize_filesystem): Add declaration.
11158 * findcmd.c (_initialize_mem_search): Add declaration.
11159 * findvar.c (_initialize_findvar): Add declaration.
11160 * fork-child.c (_initialize_fork_child): Add declaration.
11161 * frame-base.c (_initialize_frame_base): Add declaration.
11162 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
11163 * frame.c (_initialize_frame): Add declaration.
11164 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
11165 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
11166 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
11167 * gcore.c (_initialize_gcore): Add declaration.
11168 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
11169 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
11170 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
11171 * gdbarch.c (_initialize_gdbarch): Add declaration.
11172 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
11173 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
11174 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
11175 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
11176 * go-lang.c (_initialize_go_language): Add declaration.
11177 * go32-nat.c (_initialize_go32_nat): Add declaration.
11178 * guile/guile.c (_initialize_guile): Add declaration.
11179 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
11180 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
11181 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
11182 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
11183 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
11184 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
11185 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
11186 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
11187 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
11188 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
11189 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
11190 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
11191 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
11192 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
11193 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
11194 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
11195 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
11196 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
11197 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
11198 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
11199 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
11200 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
11201 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
11202 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
11203 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
11204 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
11205 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
11206 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
11207 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
11208 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
11209 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
11210 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
11211 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
11212 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
11213 * infcall.c (_initialize_infcall): Add declaration.
11214 * infcmd.c (_initialize_infcmd): Add declaration.
11215 * inflow.c (_initialize_inflow): Add declaration.
11216 * infrun.c (_initialize_infrun): Add declaration.
11217 * interps.c (_initialize_interpreter): Add declaration.
11218 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
11219 * jit.c (_initialize_jit): Add declaration.
11220 * language.c (_initialize_language): Add declaration.
11221 * linux-fork.c (_initialize_linux_fork): Add declaration.
11222 * linux-nat.c (_initialize_linux_nat): Add declaration.
11223 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
11224 * linux-thread-db.c (_initialize_thread_db): Add declaration.
11225 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
11226 * m2-lang.c (_initialize_m2_language): Add declaration.
11227 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
11228 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
11229 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
11230 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
11231 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
11232 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
11233 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
11234 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
11235 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
11236 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
11237 * machoread.c (_initialize_machoread): Add declaration.
11238 * macrocmd.c (_initialize_macrocmd): Add declaration.
11239 * macroscope.c (_initialize_macroscope): Add declaration.
11240 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
11241 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
11242 * maint.c (_initialize_maint_cmds): Add declaration.
11243 * mdebugread.c (_initialize_mdebugread): Add declaration.
11244 * memattr.c (_initialize_mem): Add declaration.
11245 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
11246 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
11247 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
11248 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
11249 * mi/mi-main.c (_initialize_mi_main): Add declaration.
11250 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
11251 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
11252 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
11253 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
11254 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
11255 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
11256 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
11257 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
11258 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
11259 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
11260 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
11261 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
11262 * mipsread.c (_initialize_mipsread): Add declaration.
11263 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
11264 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
11265 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
11266 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
11267 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
11268 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
11269 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
11270 * nto-procfs.c (_initialize_procfs): Add declaration.
11271 * objc-lang.c (_initialize_objc_language): Add declaration.
11272 * observable.c (_initialize_observer): Add declaration.
11273 * opencl-lang.c (_initialize_opencl_language): Add declaration.
11274 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
11275 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
11276 * osabi.c (_initialize_gdb_osabi): Add declaration.
11277 * osdata.c (_initialize_osdata): Add declaration.
11278 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
11279 * parse.c (_initialize_parse): Add declaration.
11280 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
11281 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
11282 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
11283 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
11284 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
11285 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
11286 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
11287 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
11288 * printcmd.c (_initialize_printcmd): Add declaration.
11289 * probe.c (_initialize_probe): Add declaration.
11290 * proc-api.c (_initialize_proc_api): Add declaration.
11291 * proc-events.c (_initialize_proc_events): Add declaration.
11292 * proc-service.c (_initialize_proc_service): Add declaration.
11293 * procfs.c (_initialize_procfs): Add declaration.
11294 * producer.c (_initialize_producer): Add declaration.
11295 * psymtab.c (_initialize_psymtab): Add declaration.
11296 * python/python.c (_initialize_python): Add declaration.
11297 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
11298 * record-btrace.c (_initialize_record_btrace): Add declaration.
11299 * record-full.c (_initialize_record_full): Add declaration.
11300 * record.c (_initialize_record): Add declaration.
11301 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
11302 * regcache.c (_initialize_regcache): Add declaration.
11303 * reggroups.c (_initialize_reggroup): Add declaration.
11304 * remote-notif.c (_initialize_notif): Add declaration.
11305 * remote-sim.c (_initialize_remote_sim): Add declaration.
11306 * remote.c (_initialize_remote): Add declaration.
11307 * reverse.c (_initialize_reverse): Add declaration.
11308 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
11309 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
11310 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
11311 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
11312 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
11313 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
11314 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
11315 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
11317 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
11318 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
11319 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
11320 * rust-exp.y (_initialize_rust_exp): Add declaration.
11321 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
11322 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
11323 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
11324 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
11325 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
11326 * score-tdep.c (_initialize_score_tdep): Add declaration.
11327 * ser-go32.c (_initialize_ser_dos): Add declaration.
11328 * ser-mingw.c (_initialize_ser_windows): Add declaration.
11329 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
11330 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
11331 * ser-uds.c (_initialize_ser_socket): Add declaration.
11332 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
11333 * serial.c (_initialize_serial): Add declaration.
11334 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
11335 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
11336 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
11337 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
11338 * skip.c (_initialize_step_skip): Add declaration.
11339 * sol-thread.c (_initialize_sol_thread): Add declaration.
11340 * solib-aix.c (_initialize_solib_aix): Add declaration.
11341 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11342 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11343 * solib-frv.c (_initialize_frv_solib): Add declaration.
11344 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11345 * solib-target.c (_initialize_solib_target): Add declaration.
11346 * solib.c (_initialize_solib): Add declaration.
11347 * source-cache.c (_initialize_source_cache): Add declaration.
11348 * source.c (_initialize_source): Add declaration.
11349 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11350 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11351 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11352 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11353 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11354 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11355 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11356 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11357 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11358 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11359 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11360 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11361 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11362 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11363 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11364 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11365 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11366 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11367 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11368 * stabsread.c (_initialize_stabsread): Add declaration.
11369 * stack.c (_initialize_stack): Add declaration.
11370 * stap-probe.c (_initialize_stap_probe): Add declaration.
11371 * std-regs.c (_initialize_frame_reg): Add declaration.
11372 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11373 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11374 * symfile.c (_initialize_symfile): Add declaration.
11375 * symmisc.c (_initialize_symmisc): Add declaration.
11376 * symtab.c (_initialize_symtab): Add declaration.
11377 * target.c (_initialize_target): Add declaration.
11378 * target-connection.c (_initialize_target_connection): Add
11380 * target-dcache.c (_initialize_target_dcache): Add declaration.
11381 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11382 * thread.c (_initialize_thread): Add declaration.
11383 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11384 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11385 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11386 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11387 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11388 * tracectf.c (_initialize_ctf): Add declaration.
11389 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11390 * tracefile.c (_initialize_tracefile): Add declaration.
11391 * tracepoint.c (_initialize_tracepoint): Add declaration.
11392 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11393 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11394 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11395 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11396 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11397 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11398 * tui/tui.c (_initialize_tui): Add declaration.
11399 * typeprint.c (_initialize_typeprint): Add declaration.
11400 * ui-style.c (_initialize_ui_style): Add declaration.
11401 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11402 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11403 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11404 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11405 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11406 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11407 * unittests/filtered_iterator-selftests.c
11408 (_initialize_filtered_iterator_selftests): Add declaration.
11409 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11410 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11411 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11412 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11413 * unittests/main-thread-selftests.c
11414 (_initialize_main_thread_selftests): Add declaration.
11415 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11416 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11417 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11418 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11419 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11420 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11421 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11422 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11423 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11424 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11425 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11426 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11427 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11428 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11429 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11431 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11432 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11433 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11434 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11435 * user-regs.c (_initialize_user_regs): Add declaration.
11436 * utils.c (_initialize_utils): Add declaration.
11437 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11438 * valops.c (_initialize_valops): Add declaration.
11439 * valprint.c (_initialize_valprint): Add declaration.
11440 * value.c (_initialize_values): Add declaration.
11441 * varobj.c (_initialize_varobj): Add declaration.
11442 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11443 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11444 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11445 * windows-nat.c (_initialize_windows_nat): Add declaration.
11446 (_initialize_check_for_gdb_ini): Add declaration.
11447 (_initialize_loadable): Add declaration.
11448 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11449 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11450 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11451 * xcoffread.c (_initialize_xcoffread): Add declaration.
11452 * xml-support.c (_initialize_xml_support): Add declaration.
11453 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11454 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11455 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11456 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11458 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11460 * regformats/regdat.sh: Generate declaration for init function.
11462 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11464 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11466 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11467 close_one_inferior>: New methods.
11468 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11469 pass down target to find_inferior_pid.
11470 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11471 Pass down target to find_inferior_ptid.
11472 (gdbsim_target::create_inferior): Pass down target to
11474 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11475 target down to find_inferior_ptid and switch_to_thread.
11476 (gdbsim_target::close): Update to call close_one_inferior.
11477 (struct resume_data): Remove.
11478 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11479 directly, rather than through a void pointer.
11480 (gdbsim_target::resume): Update to call resume_one_inferior.
11482 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11484 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11486 2020-01-12 Pedro Alves <palves@redhat.com>
11488 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11489 directly for the current inferior instead of
11490 discard_all_inferiors.
11491 (discard_all_inferiors): Delete.
11493 2020-01-11 Tom Tromey <tom@tromey.com>
11495 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11496 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11497 deprecated_safe_get_selected_frame.
11499 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11501 * inferior.c (print_inferior): Switch inferior before printing it.
11503 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11504 Pedro Alves <palves@redhat.com>
11506 * progspace-and-thread.c (switch_to_program_space_and_thread):
11507 Assert there's an inferior for PSPACE. Use
11508 switch_to_inferior_no_thread to switch the inferior too.
11509 * progspace.c (program_space::~program_space): Call
11510 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11511 (program_space::free_all_objfiles): Don't call clear_symtab_users
11513 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11515 2020-01-10 Pedro Alves <palves@redhat.com>
11517 * NEWS: Mention multi-target debugging, "info connections", and
11518 "add-inferior -no-connection".
11520 2020-01-10 Pedro Alves <palves@redhat.com>
11522 * infrun.c: Include "target-connection.h".
11523 (check_multi_target_resumption): New.
11524 (proceed): Call it.
11525 * target-connection.c (make_target_connection_string): Make
11527 * target-connection.h (make_target_connection_string): Declare.
11529 2020-01-10 Pedro Alves <palves@redhat.com>
11531 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11532 * inferior.c (uiout_field_connection): New function.
11533 (print_inferior): Add new "connection-id" column.
11534 (add_inferior_command): Show connection number/string of added
11536 * process-stratum-target.h
11537 (process_stratum_target::connection_string): New virtual method.
11538 (process_stratum_target::connection_number): New field.
11539 * remote.c (remote_target::connection_string): New override.
11540 * target-connection.c: New file.
11541 * target-connection.h: New file.
11542 * target.c (decref_target): Remove process_stratum targets from
11543 the connection list.
11544 (target_stack::push): Add process_stratum targets to the
11547 2020-01-10 Pedro Alves <palves@redhat.com>
11550 2016-04-12 Pedro Alves <palves@redhat.com>
11551 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11552 Remove references to name.
11553 * serial.h (struct serial) <name>: Delete.
11555 2020-01-10 Pedro Alves <palves@redhat.com>
11557 * gdbarch-selftests.c (register_to_value_test): Remove "target
11558 already pushed" check.
11560 2020-01-10 Pedro Alves <palves@redhat.com>
11561 John Baldwin <jhb@FreeBSD.org>
11563 * aarch64-linux-nat.c
11564 (aarch64_linux_nat_target::thread_architecture): Adjust.
11565 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11566 (task_command_1): Likewise.
11567 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11568 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11569 (aix_thread_target::store_registers)
11570 (aix_thread_target::thread_alive): Adjust.
11571 * amd64-fbsd-tdep.c: Include "inferior.h".
11572 (amd64fbsd_get_thread_local_address): Pass down target.
11573 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11574 thread's gdbarch instead of target_gdbarch.
11575 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11576 get_last_target_status.
11577 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11578 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11580 (update_inserted_breakpoint_locations): Skip if inferiors with no
11582 (update_global_location_list): When handling moribund locations,
11583 find representative inferior for location's pspace, and use thread
11584 count of its process_stratum target.
11585 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11586 * bsd-uthread.c (bsd_uthread_target::wait): Use
11587 as_process_stratum_target and adjust thread_change_ptid and
11589 (bsd_uthread_target::update_thread_list): Use
11590 as_process_stratum_target and adjust find_thread_ptid,
11591 thread_change_ptid and add_thread calls.
11592 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11593 find_thread_ptid call.
11594 * corelow.c (add_to_thread_list): Adjust add_thread call.
11595 (core_target_open): Adjust add_thread_silent and thread_count
11597 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11598 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11599 * event-top.c (async_disconnect): Pop targets from all inferiors.
11600 * exec.c (add_target_sections): Push exec target on all inferiors
11601 sharing the program space.
11602 (remove_target_sections): Remove the exec target from all
11603 inferiors sharing the program space.
11604 (exec_on_vfork): New.
11605 * exec.h (exec_on_vfork): Declare.
11606 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11608 (fbsd_nat_target::update_thread_list): Adjust.
11609 (fbsd_nat_target::resume): Adjust.
11610 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11612 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11613 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11614 get_thread_arch_regcache call.
11615 * fork-child.c (gdb_startup_inferior): Pass target down to
11616 startup_inferior and set_executing.
11617 * gdbthread.h (struct process_stratum_target): Forward declare.
11618 (add_thread, add_thread_silent, add_thread_with_info)
11619 (in_thread_list): Add process_stratum_target parameter.
11620 (find_thread_ptid(inferior*, ptid_t)): New overload.
11621 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11623 (all_threads()): Delete overload.
11624 (all_threads, all_non_exited_threads): Add process_stratum_target
11626 (all_threads_safe): Use brace initialization.
11627 (thread_count): Add process_stratum_target parameter.
11628 (set_resumed, set_running, set_stop_requested, set_executing)
11629 (threads_are_executing, finish_thread_state): Add
11630 process_stratum_target parameter.
11631 (switch_to_thread): Use is_current_thread.
11632 * i386-fbsd-tdep.c: Include "inferior.h".
11633 (i386fbsd_get_thread_local_address): Pass down target.
11634 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11635 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11636 have_inferiors check.
11637 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11638 (inf_ptrace_target::attach): Adjust.
11639 * infcall.c (run_inferior_call): Adjust.
11640 * infcmd.c (run_command_1): Pass target to
11641 scoped_finish_thread_state.
11642 (proceed_thread_callback): Skip inferiors with no execution.
11643 (continue_command): Rename 'all_threads' local to avoid hiding
11644 'all_threads' function. Adjust get_last_target_status call.
11645 (prepare_one_step): Adjust set_running call.
11646 (signal_command): Use user_visible_resume_target. Compare thread
11647 pointers instead of inferior_ptid.
11648 (info_program_command): Adjust to pass down target.
11649 (attach_command): Mark target's 'thread_executing' flag.
11650 (stop_current_target_threads_ns): New, factored out from ...
11651 (interrupt_target_1): ... this. Switch inferior before making
11654 (struct all_inferiors_iterator, struct all_inferiors_range)
11655 (struct all_inferiors_safe_range)
11656 (struct all_non_exited_inferiors_range): Filter on
11657 process_stratum_target too. Remove explicit.
11658 * inferior.c (inferior::inferior): Push dummy target on target
11660 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11661 Add process_stratum_target parameter, and pass it down.
11662 (have_live_inferiors): Adjust.
11663 (switch_to_inferior_and_push_target): New.
11664 (add_inferior_command, clone_inferior_command): Handle
11665 "-no-connection" parameter. Use
11666 switch_to_inferior_and_push_target.
11667 (_initialize_inferior): Mention "-no-connection" option in
11668 the help of "add-inferior" and "clone-inferior" commands.
11669 * inferior.h: Include "process-stratum-target.h".
11670 (interrupt_target_1): Use bool.
11671 (struct inferior) <push_target, unpush_target, target_is_pushed,
11672 find_target_beneath, top_target, process_target, target_at,
11674 (discard_all_inferiors): Delete.
11675 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11676 (all_inferiors, all_non_exited_inferiors): Add
11677 process_stratum_target parameter.
11678 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11679 (target_last_proc_target): New global.
11680 (follow_fork_inferior): Push target on new inferior. Pass target
11681 to add_thread_silent. Call exec_on_vfork. Handle target's
11683 (follow_fork): Adjust get_last_target_status call. Also consider
11685 (follow_exec): Push target on new inferior.
11686 (struct execution_control_state) <target>: New field.
11687 (user_visible_resume_target): New.
11688 (do_target_resume): Call target_async.
11689 (resume_1): Set target's threads_executing flag. Consider resume
11691 (commit_resume_all_targets): New.
11692 (proceed): Also consider resume target. Skip threads of inferiors
11693 with no execution. Commit resumtion in all targets.
11694 (start_remote): Pass current inferior to wait_for_inferior.
11695 (infrun_thread_stop_requested): Consider target as well. Pass
11696 thread_info pointer to clear_inline_frame_state instead of ptid.
11697 (infrun_thread_thread_exit): Consider target as well.
11698 (random_pending_event_thread): New inferior parameter. Use it.
11699 (do_target_wait): Rename to ...
11700 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11702 (threads_are_resumed_pending_p, do_target_wait): New.
11703 (prepare_for_detach): Adjust calls.
11704 (wait_for_inferior): New inferior parameter. Handle it. Use
11705 do_target_wait_1 instead of do_target_wait.
11706 (fetch_inferior_event): Adjust. Switch to representative
11707 inferior. Pass target down.
11708 (set_last_target_status): Add process_stratum_target parameter.
11709 Save target in global.
11710 (get_last_target_status): Add process_stratum_target parameter and
11712 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11713 (context_switch): Check inferior_ptid == null_ptid before calling
11715 (get_inferior_stop_soon): Pass down target.
11716 (wait_one): Rename to ...
11717 (poll_one_curr_target): ... this.
11718 (struct wait_one_event): New.
11720 (stop_all_threads): Adjust.
11721 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11723 (switch_back_to_stepped_thread): Also consider target.
11724 (print_stop_event): Update.
11725 (normal_stop): Update. Also consider the resume target.
11726 * infrun.h (wait_for_inferior): Remove declaration.
11727 (user_visible_resume_target): New declaration.
11728 (get_last_target_status, set_last_target_status): New
11729 process_stratum_target parameter.
11730 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11731 process_stratum_target parameter, and use it.
11732 (clear_inline_frame_state (thread_info*)): New.
11733 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11734 process_stratum_target parameter.
11735 (clear_inline_frame_state (thread_info*)): Declare.
11736 * linux-fork.c (delete_checkpoint_command): Pass target down to
11738 (checkpoint_command): Adjust.
11739 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11740 instead of just tweaking inferior_ptid.
11741 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11742 (exit_lwp): Pass target down to find_thread_ptid.
11743 (attach_proc_task_lwp_callback): Pass target down to
11744 add_thread/set_running/set_executing.
11745 (linux_nat_target::attach): Pass target down to
11746 thread_change_ptid.
11747 (get_detach_signal): Pass target down to find_thread_ptid.
11748 Consider last target status's target.
11749 (linux_resume_one_lwp_throw, resume_lwp)
11750 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11751 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11752 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11753 (linux_nat_target::async_wait_fd): New.
11754 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11756 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11757 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11758 * linux-thread-db.c (struct thread_db_info::process_target): New
11760 (add_thread_db_info): Save target.
11761 (get_thread_db_info): New process_stratum_target parameter. Also
11763 (delete_thread_db_info): New process_stratum_target parameter.
11765 (thread_from_lwp): Adjust to pass down target.
11766 (thread_db_notice_clone): Pass down target.
11767 (check_thread_db_callback): Pass down target.
11768 (try_thread_db_load_1): Always push the thread_db target.
11769 (try_thread_db_load, record_thread): Pass target down.
11770 (thread_db_target::detach): Pass target down. Always unpush the
11772 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11773 target down. Always unpush the thread_db target.
11774 (find_new_threads_callback, thread_db_find_new_threads_2)
11775 (thread_db_target::update_thread_list): Pass target down.
11776 (thread_db_target::pid_to_str): Pass current inferior down.
11777 (thread_db_target::get_thread_local_address): Pass target down.
11778 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11780 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11781 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11782 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11783 (procfs_init_inferior): Rename to ...
11784 (procfs_target::procfs_init_inferior): ... this and adjust.
11785 (procfs_target::create_inferior, procfs_notice_thread)
11786 (procfs_do_thread_registers): Adjust.
11787 * ppc-fbsd-tdep.c: Include "inferior.h".
11788 (ppcfbsd_get_thread_local_address): Pass down target.
11789 * proc-service.c (ps_xfer_memory): Switch current inferior and
11790 program space as well.
11791 (get_ps_regcache): Pass target down.
11792 * process-stratum-target.c
11793 (process_stratum_target::thread_address_space)
11794 (process_stratum_target::thread_architecture): Pass target down.
11795 * process-stratum-target.h
11796 (process_stratum_target::threads_executing): New field.
11797 (as_process_stratum_target): New.
11798 * ravenscar-thread.c
11799 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11800 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11802 * record-btrace.c (record_btrace_target::info_record): Adjust.
11803 (record_btrace_target::record_method)
11804 (record_btrace_target::record_is_replaying)
11805 (record_btrace_target::fetch_registers)
11806 (get_thread_current_frame_id, record_btrace_target::resume)
11807 (record_btrace_target::wait, record_btrace_target::stop): Pass
11809 * record-full.c (record_full_wait_1): Switch to event thread.
11811 * regcache.c (regcache::regcache)
11812 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11813 process_stratum_target parameter and handle it.
11814 (current_thread_target): New global.
11815 (get_thread_regcache): Add process_stratum_target parameter and
11816 handle it. Switch inferior before calling target method.
11817 (get_thread_regcache): Pass target down.
11818 (get_thread_regcache_for_ptid): Pass target down.
11819 (registers_changed_ptid): Add process_stratum_target parameter and
11821 (registers_changed_thread, registers_changed): Pass target down.
11822 (test_get_thread_arch_aspace_regcache): New.
11823 (current_regcache_test): Define a couple local test_target_ops
11824 instances and use them for testing.
11825 (readwrite_regcache): Pass process_stratum_target parameter.
11826 (cooked_read_test, cooked_write_test): Pass mock_target down.
11827 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11828 (get_thread_arch_aspace_regcache): Add process_stratum_target
11830 (regcache::target): New method.
11831 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11832 (regcache::registers_changed_ptid): Add process_stratum_target
11834 (regcache::m_target): New field.
11835 (registers_changed_ptid): Add process_stratum_target parameter.
11836 * remote.c (remote_state::supports_vCont_probed): New field.
11837 (remote_target::async_wait_fd): New method.
11838 (remote_unpush_and_throw): Add remote_target parameter.
11839 (get_current_remote_target): Adjust.
11840 (remote_target::remote_add_inferior): Push target.
11841 (remote_target::remote_add_thread)
11842 (remote_target::remote_notice_new_inferior)
11843 (get_remote_thread_info): Pass target down.
11844 (remote_target::update_thread_list): Skip threads of inferiors
11845 bound to other targets. (remote_target::close): Don't discard
11846 inferiors. (remote_target::add_current_inferior_and_thread)
11847 (remote_target::process_initial_stop_replies)
11848 (remote_target::start_remote)
11849 (remote_target::remote_serial_quit_handler): Pass down target.
11850 (remote_target::remote_unpush_target): New remote_target
11851 parameter. Unpush the target from all inferiors.
11852 (remote_target::remote_unpush_and_throw): New remote_target
11853 parameter. Pass it down.
11854 (remote_target::open_1): Check whether the current inferior has
11855 execution instead of checking whether any inferior is live. Pass
11857 (remote_target::remote_detach_1): Pass down target. Use
11858 remote_unpush_target.
11859 (extended_remote_target::attach): Pass down target.
11860 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11861 (remote_target::append_resumption): Pass down target.
11862 (remote_target::append_pending_thread_resumptions)
11863 (remote_target::remote_resume_with_hc, remote_target::resume)
11864 (remote_target::commit_resume): Pass down target.
11865 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11866 (remote_target::interrupt_query)
11867 (remote_target::remove_new_fork_children)
11868 (remote_target::check_pending_events_prevent_wildcard_vcont)
11869 (remote_target::remote_parse_stop_reply)
11870 (remote_target::process_stop_reply): Pass down target.
11871 (first_remote_resumed_thread): New remote_target parameter. Pass
11873 (remote_target::wait_as): Pass down target.
11874 (unpush_and_perror): New remote_target parameter. Pass it down.
11875 (remote_target::readchar, remote_target::remote_serial_write)
11876 (remote_target::getpkt_or_notif_sane_1)
11877 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11879 (remote_target::mourn_inferior): Pass down target. Use
11880 remote_unpush_target.
11881 (remote_target::core_of_thread)
11882 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11883 (remote_target::pid_to_exec_file)
11884 (remote_target::thread_handle_to_thread_info): Pass down target.
11885 (remote_target::async_wait_fd): New.
11886 * riscv-fbsd-tdep.c: Include "inferior.h".
11887 (riscv_fbsd_get_thread_local_address): Pass down target.
11888 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11889 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11890 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11892 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11893 * solib-svr4.c (enable_break): Pass down target.
11894 * spu-multiarch.c (parse_spufs_run): Pass down target.
11895 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11896 * target-delegates.c: Regenerate.
11897 * target.c (g_target_stack): Delete.
11898 (current_top_target): Return the current inferior's top target.
11899 (target_has_execution_1): Refer to the passed-in inferior's top
11901 (target_supports_terminal_ours): Check whether the initial
11902 inferior was already created.
11903 (decref_target): New.
11904 (target_stack::push): Incref/decref the target.
11905 (push_target, push_target, unpush_target): Adjust.
11906 (target_stack::unpush): Defref target.
11907 (target_is_pushed): Return bool. Adjust to refer to the current
11908 inferior's target stack.
11909 (dispose_inferior): Delete, and inline parts ...
11910 (target_preopen): ... here. Only dispose of the current inferior.
11911 (target_detach): Hold strong target reference while detaching.
11913 (target_thread_name): Add assertion.
11914 (target_resume): Pass down target.
11915 (target_ops::beneath, find_target_at): Adjust to refer to the
11916 current inferior's target stack.
11917 (get_dummy_target): New.
11918 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11919 has a thread running.
11920 (initialize_targets): Rename to ...
11921 (_initialize_target): ... this.
11922 * target.h: Include "gdbsupport/refcounted-object.h".
11923 (struct target_ops): Inherit refcounted_object.
11924 (target_ops::shortname, target_ops::longname): Make const.
11925 (target_ops::async_wait_fd): New method.
11926 (decref_target): Declare.
11927 (struct target_ops_ref_policy): New.
11928 (target_ops_ref): New typedef.
11929 (get_dummy_target): Declare function.
11930 (target_is_pushed): Return bool.
11931 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11932 (all_matching_threads_iterator::all_matching_threads_iterator):
11933 Handle filter target.
11934 * thread-iter.h (struct all_matching_threads_iterator, struct
11935 all_matching_threads_range, class all_non_exited_threads_range):
11936 Filter by target too. Remove explicit.
11937 * thread.c (threads_executing): Delete.
11938 (inferior_thread): Pass down current inferior.
11939 (clear_thread_inferior_resources): Pass down thread pointer
11941 (add_thread_silent, add_thread_with_info, add_thread): Add
11942 process_stratum_target parameter. Use it for thread and inferior
11944 (is_current_thread): New.
11945 (thread_info::deletable): Use it.
11946 (find_thread_ptid, thread_count, in_thread_list)
11947 (thread_change_ptid, set_resumed, set_running): New
11948 process_stratum_target parameter. Pass it down.
11949 (set_executing): New process_stratum_target parameter. Pass it
11950 down. Adjust reference to 'threads_executing'.
11951 (threads_are_executing): New process_stratum_target parameter.
11952 Adjust reference to 'threads_executing'.
11953 (set_stop_requested, finish_thread_state): New
11954 process_stratum_target parameter. Pass it down.
11955 (switch_to_thread): Also match inferior.
11956 (switch_to_thread): New process_stratum_target parameter. Pass it
11958 (update_threads_executing): Reimplement.
11959 * top.c (quit_force): Pop targets from all inferior.
11960 (gdb_init): Don't call initialize_targets.
11961 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11963 (windows_add_thread, windows_delete_thread): Adjust.
11964 (get_windows_debug_event): Rename to ...
11965 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11966 * tracefile-tfile.c (tfile_target_open): Pass down target.
11967 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11969 (switch_to_thread): Add process_stratum_target parameter.
11970 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11972 (mi_on_resume): Pass target down.
11973 * nat/fork-inferior.c (startup_inferior): Add
11974 process_stratum_target parameter. Pass it down.
11975 * nat/fork-inferior.h (startup_inferior): Add
11976 process_stratum_target parameter.
11977 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11979 2020-01-10 Pedro Alves <palves@redhat.com>
11981 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11982 directly. Instead find the first thread in the thread list and
11983 use switch_to_thread.
11985 2020-01-10 Pedro Alves <palves@redhat.com>
11987 * remote.c (remote_target::remote_add_inferior): Don't bind a
11988 process to the current inferior if the current inferior is already
11989 bound to a process.
11991 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11992 Pedro Alves <palves@redhat.com>
11994 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11995 If no process is specified, return null_ptid instead of
11997 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11998 TARGET_WAITKIND_SIGNALLED with no pid.
12000 2020-01-10 Pedro Alves <palves@redhat.com>
12002 * remote.c (first_remote_resumed_thread): New.
12003 (remote_target::wait_as): Use it as default event_ptid instead of
12006 2020-01-10 Pedro Alves <palves@redhat.com>
12008 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
12010 2020-01-10 Pedro Alves <palves@redhat.com>
12012 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
12015 2020-01-10 Pedro Alves <palves@redhat.com>
12017 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
12018 ptid to get_last_target_status.
12019 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
12020 ptid to get_last_target_status.
12021 * infcmd.c (continue_command): Don't pass a target_waitstatus to
12022 get_last_target_status.
12023 (info_program_command): Don't pass a target_waitstatus to
12024 get_last_target_status.
12025 * infrun.c (init_wait_for_inferior): Use
12026 nullify_last_target_wait_ptid.
12027 (get_last_target_status): Handle nullptr arguments.
12028 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
12029 (print_stop_event): Don't pass a ptid to get_last_target_status.
12030 (normal_stop): Don't pass a ptid to get_last_target_status.
12031 * infrun.h (get_last_target_status, set_last_target_status): Move
12032 comments here and update.
12033 (nullify_last_target_wait_ptid): Declare.
12034 * linux-fork.c (fork_load_infrun_state): Remove local extern
12035 declaration of nullify_last_target_wait_ptid.
12036 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
12037 to get_last_target_status.
12039 2020-01-10 Pedro Alves <palves@redhat.com>
12041 * gdbthread.h (scoped_restore_current_thread)
12042 <dont_restore, restore, m_dont_restore>: Declare.
12043 * thread.c (thread_alive): Add assertion. Return bool.
12044 (switch_to_thread_if_alive): New.
12045 (prune_threads): Switch inferior/thread.
12046 (print_thread_info_1): Switch thread before calling target methods.
12047 (scoped_restore_current_thread::restore): New, factored out from
12049 (scoped_restore_current_thread::~scoped_restore_current_thread):
12051 (scoped_restore_current_thread::scoped_restore_current_thread):
12053 (thread_apply_all_command, thread_select): Use
12054 switch_to_thread_if_alive.
12055 * infrun.c (proceed, restart_threads, handle_signal_stop)
12056 (switch_back_to_stepped_thread): Switch current thread before
12057 calling target methods.
12059 2020-01-10 Pedro Alves <palves@redhat.com>
12061 * inferior.c (switch_to_inferior_no_thread): New function,
12062 factored out from ...
12063 (inferior_command): ... here.
12064 * inferior.h (switch_to_inferior_no_thread): Declare.
12065 * mi/mi-main.c (run_one_inferior): Use
12066 switch_to_inferior_no_thread.
12068 2020-01-10 Pedro Alves <palves@redhat.com>
12070 * infcmd.c (kill_command): Remove dead code.
12072 2020-01-10 Pedro Alves <palves@redhat.com>
12074 * remote.c (remote_target::mourn_inferior): No longer check
12075 whether the target is running.
12077 2020-01-10 Pedro Alves <palves@redhat.com>
12079 * corelow.c (core_target::has_execution): Change parameter type to
12081 * inferior.c (number_of_live_inferiors): Use
12082 inferior::has_execution instead of target_has_execution_1.
12083 * inferior.h (inferior::has_execution): New.
12084 * linux-thread-db.c (thread_db_target::update_thread_list): Use
12085 inferior::has_execution instead of target_has_execution_1.
12086 * process-stratum-target.c
12087 (process_stratum_target::has_execution): Change parameter type to
12088 inferior pointer. Check the inferior's PID instead of
12090 * process-stratum-target.h
12091 (process_stratum_target::has_execution): Change parameter type to
12093 * record-full.c (record_full_core_target::has_execution): Change
12094 parameter type to inferior pointer.
12095 * target.c (target_has_execution_1): Change parameter type to
12097 (target_has_execution_current): Adjust.
12098 * target.h (target_ops::has_execution): Change parameter type to
12100 (target_has_execution_1): Change parameter type to inferior
12101 pointer. Change return type to bool.
12102 * tracefile.h (tracefile_target::has_execution): Change parameter
12103 type to inferior pointer.
12105 2020-01-10 Pedro Alves <palves@redhat.com>
12107 * exceptions.c (print_flush): Remove current_top_target() check.
12109 2020-01-10 Pedro Alves <palves@redhat.com>
12111 * remote.c (show_remote_exec_file): Show the current inferior's
12112 exec-file instead of the command variable's value.
12114 2020-01-10 Pedro Alves <palves@redhat.com>
12116 * record-full.c (record_full_resume_ptid): New global.
12117 (record_full_target::resume): Set it.
12118 (record_full_wait_1): Use record_full_resume_ptid instead of
12121 2020-01-10 Pedro Alves <palves@redhat.com>
12123 * gdbthread.h (scoped_restore_current_thread)
12124 <dont_restore, restore, m_dont_restore>: Declare.
12125 * thread.c (thread_alive): Add assertion. Return bool.
12126 (switch_to_thread_if_alive): New.
12127 (prune_threads): Switch inferior/thread.
12128 (print_thread_info_1): Switch thread before calling target methods.
12129 (scoped_restore_current_thread::restore): New, factored out from
12131 (scoped_restore_current_thread::~scoped_restore_current_thread):
12133 (scoped_restore_current_thread::scoped_restore_current_thread):
12135 (thread_apply_all_command, thread_select): Use
12136 switch_to_thread_if_alive.
12138 2020-01-10 George Barrett <bob@bob131.so>
12140 * stap-probe.c (stap_modify_semaphore): Don't check for null
12142 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
12143 for null semaphores.
12145 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12147 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
12148 all source windows, and maintain horizontal scroll status while
12151 2020-01-09 Tom Tromey <tom@tromey.com>
12154 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
12155 update_source_window, not print_source_lines.
12157 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
12159 * tui/tui.c (tui_enable): Register tui hooks after calling
12162 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12164 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
12166 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
12168 * thread.c (print_thread_info_1): Fix indentation.
12170 2020-01-09 Christian Biesinger <cbiesinger@google.com>
12172 * symtab.c (general_symbol_info::compute_and_set_names): Move the
12173 unique_xmalloc_ptr outside the if to always free the demangled name.
12175 2020-01-08 Tom Tromey <tromey@adacore.com>
12177 * xcoffread.c (enter_line_range, read_xcoff_symtab)
12178 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
12179 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
12180 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
12182 (section_offsets): New typedef.
12183 * symtab.c (fixup_section, get_msymbol_address): Update.
12184 * symmisc.c (dump_msymbols): Update.
12185 * symfile.h (relative_addr_info_to_section_offsets)
12186 (symfile_map_offsets_to_segments): Update.
12187 * symfile.c (build_section_addr_info_from_objfile)
12188 (init_objfile_sect_indices): Update.
12189 (struct place_section_arg): Change type of "offsets".
12190 (place_section): Update.
12191 (relative_addr_info_to_section_offsets): Change type of
12192 "section_offsets". Remove "num_sections" parameter.
12193 (default_symfile_offsets, syms_from_objfile_1)
12194 (set_objfile_default_section_offset): Update.
12195 (reread_symbols): No need to preserve section offsets by hand.
12196 (symfile_map_offsets_to_segments): Change type of "offsets".
12197 * stap-probe.c (relocate_address): Update.
12198 * stabsread.h (process_one_symbol): Update.
12199 * solib-target.c (struct lm_info_target) <offsets>: Change type.
12200 (solib_target_relocate_section_addresses): Update.
12201 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
12203 * solib-frv.c (frv_relocate_main_executable): Update.
12204 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
12205 * solib-aix.c (solib_aix_get_section_offsets): Change return
12207 (solib_aix_solib_create_inferior_hook): Update.
12208 * remote.c (remote_target::get_offsets): Update.
12209 * psymtab.c (find_pc_sect_psymtab): Update.
12210 * psympriv.h (struct partial_symbol) <address, text_low,
12211 text_high>: Update.
12212 * objfiles.h (obj_section_offset): Update.
12213 (struct objfile) <section_offsets>: Change type.
12214 <num_sections>: Remove.
12215 (objfile_relocate): Update.
12216 * objfiles.c (entry_point_address_query): Update
12217 (relocate_one_symbol): Change type of "section_offsets".
12218 (objfile_relocate1, objfile_relocate1): Change type of
12220 (objfile_rebase1): Update.
12221 * mipsread.c (mipscoff_symfile_read): Update.
12222 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
12224 * mdebugread.c (parse_symbol): Change type of "section_offsets".
12225 (parse_external, psymtab_to_symtab_1): Update.
12226 * machoread.c (macho_symfile_offsets): Update.
12227 * ia64-tdep.c (ia64_find_unwind_table): Update.
12228 * hppa-tdep.c (read_unwind_info): Update.
12229 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
12230 * dwarf2read.c (create_addrmap_from_index)
12231 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
12232 (process_psymtab_comp_unit_reader, add_partial_symbol)
12233 (add_partial_subprogram, process_full_comp_unit)
12234 (read_file_scope, read_func_scope, read_lexical_block_scope)
12235 (read_call_site_scope, dwarf2_rnglists_process)
12236 (dwarf2_ranges_process, dwarf2_ranges_read)
12237 (dwarf_decode_lines_1, var_decode_location, new_symbol)
12238 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
12240 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
12242 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
12243 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
12244 (process_one_symbol): Change type of "section_offsets".
12245 * ctfread.c (get_objfile_text_range): Update.
12246 * coffread.c (coff_symtab_read, enter_linenos)
12247 (process_coff_symbol): Update.
12248 * coff-pe-read.c (add_pe_forwarded_sym): Update.
12249 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
12251 2020-01-08 Tom Tromey <tromey@adacore.com>
12253 * dwarf2read.c (parse_macro_definition): Use std::string.
12254 (parse_macro_definition): Likewise.
12256 2020-01-08 Tom Tromey <tromey@adacore.com>
12258 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
12259 (ATTR_ALLOC_CHUNK): Remove.
12261 2020-01-08 Tom Tromey <tromey@adacore.com>
12263 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
12265 2020-01-08 Tom Tromey <tromey@adacore.com>
12267 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
12268 (dwarf2_compute_name, open_dwo_file): Likewise.
12269 (process_enumeration_scope): Use std::vector.
12270 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
12271 (partial_die_info::fixup, dwarf2_start_subfile)
12272 (guess_full_die_structure_name, dwarf2_name): Likewise.
12273 (determine_prefix): Update.
12274 (guess_full_die_structure_name): Make return type const.
12275 (partial_die_full_name): Return unique_xmalloc_ptr.
12276 (DW_FIELD_ALLOC_CHUNK): Remove.
12278 2020-01-07 Tom Tromey <tromey@adacore.com>
12281 * stap-probe.c (class stap_static_probe_ops): Add constructor.
12283 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12285 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
12287 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
12289 * stack.c (print_frame_info): Move disassemble_next_line code
12290 inside source_print block.
12292 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12294 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
12295 gdb/signals.h, as we are now using native signal symbols.
12297 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12299 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
12300 overflow by an early check of content vs threshold.
12301 * tui/tui-source.c (tui_source_window::line_is_displayed):
12304 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12306 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
12308 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
12310 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
12311 export table if no section contains it's RVA.
12313 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12315 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
12317 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
12319 * source.c (print_source_lines_base): Set last_line_listed.
12321 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
12323 * tui/tui-disasm.c: Remove trailing spaces.
12325 2020-01-06 Eli Zaretskii <eliz@gnu.org>
12326 Pedro Alves <palves@redhat.com>
12328 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
12329 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
12330 (windows_gdb_signal_to_target): New function, uses the above
12331 enumeration to convert GDB internal signal codes to equivalent
12333 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
12334 * windows-nat.c: Include "gdb_wait.h".
12335 (get_windows_debug_event): Extract the fatal exception from the
12336 exit status and convert to the equivalent Posix signal number.
12337 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
12338 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
12339 * gdbsupport/gdb_wait.c: New file, implements
12340 windows_status_to_termsig.
12341 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12342 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12344 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12346 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12349 2020-01-05 Luis Machado <luis.machado@linaro.org>
12351 * aarch64-linux-nat.c
12352 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12353 and bfd_mach_aarch64.
12355 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12357 * ui-file.c (stdio_file::can_emit_style_escape)
12358 (tee_file::can_emit_style_escape): Ensure style is used also on
12359 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12361 * main.c (set_gdb_data_directory): Use file style to output the
12362 warning that the given pathname is not a directory.
12363 * top.c (show_history_filename, gdb_safe_append_history)
12364 (show_gdb_datadir): Use file style.
12366 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12368 * solib-target.c (struct lm_info_target):
12369 Change offsets to be a unique_xmalloc_ptr.
12370 (solib_target_relocate_section_addresses): Update.
12372 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
12374 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12376 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12378 * MAINTAINERS (Write After Approval): Add myself.
12380 2020-01-02 Luis Machado <luis.machado@linaro.org>
12382 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12383 Cell BE architecture.
12384 * target.h (struct target_ops) <thread_architecture>: Likewise.
12386 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12388 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12390 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12392 * MAINTAINERS (Write After Approval): Add myself.
12394 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12396 * gdbarch.sh: Update copyright year range of generated files.
12398 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12400 Update copyright year range in all GDB files.
12402 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12404 * copyright.py: Convert to Python 3.
12406 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12408 * copyright.py: Adapt after move of gnulib directory from gdb
12409 directory to toplevel directory.
12411 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12413 * copyright.py (main): Exit if run from the wrong directory.
12415 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12417 * top.c (print_gdb_version): Change copyright year to 2020.
12419 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12421 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12423 For older changes see ChangeLog-2019.
12429 version-control: never