1 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
3 * objfiles.h (is_addr_in_objfile,
4 shared_objfile_contains_address_p): Return bool.
5 * objfile.c (is_addr_in_objfile,
6 shared_objfile_contains_address_p): Return bool.
8 2020-05-11 Tom Tromey <tromey@adacore.com>
10 * cli/cli-cmds.c (info_command): Restore.
11 (_initialize_cli_cmds): Use add_prefix_command for "info".
12 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
14 2020-05-11 Tom Tromey <tromey@adacore.com>
16 * ada-lang.c (ada_value_primitive_field): Now public.
17 * ada-lang.h (ada_value_primitive_field): Declare.
18 * ada-valprint.c (print_field_values): Use
19 ada_value_primitive_field for wrapper fields.
21 2020-05-11 Tom de Vries <tdevries@suse.de>
23 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
26 2020-05-11 Tom de Vries <tdevries@suse.de>
29 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
30 with length 0, if not gdb-produced.
31 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
33 2020-05-09 Tom de Vries <tdevries@suse.de>
36 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
39 2020-05-09 Tom Tromey <tom@tromey.com>
41 * top.c (server_command): Now bool.
42 * top.h (server_command): Now bool.
44 2020-05-08 Tom Tromey <tromey@adacore.com>
46 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
47 already being processed.
49 2020-05-08 Tom Tromey <tom@tromey.com>
51 * printcmd.c (struct display) <next>: Remove.
52 <display>: New constructor.
53 <exp_string>: Now a std::string.
54 <enabled_p>: Now a bool.
55 (display_number): Move definition earlier.
56 (displays): Rename from display_chain. Now a std::vector.
57 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
58 (display_command): Update.
59 (do_one_display, disable_display)
60 (enable_disable_display_command, do_enable_disable_display):
62 (free_display): Remove.
63 (clear_displays): Rewrite.
64 (delete_display): Update.
65 (map_display_numbers): Use function_view. Remove "data"
67 (do_delete_display): Remove.
68 (undisplay_command): Update.
69 (do_one_display, do_displays, disable_display)
70 (info_display_command): Update.
71 (do_enable_disable_display): Remove.
72 (enable_disable_display_command)
73 (clear_dangling_display_expressions): Update.
75 2020-05-08 Tom Tromey <tom@tromey.com>
77 * symtab.c (set_symbol_cache_size)
78 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
79 (maintenance_print_symbol_cache_statistics): Update.
80 * symmisc.c (print_symbol_bcache_statistics)
81 (print_objfile_statistics, maintenance_print_objfiles)
82 (maintenance_info_symtabs, maintenance_check_symtabs)
83 (maintenance_expand_symtabs, maintenance_info_line_tables):
85 * symfile-debug.c (set_debug_symfile): Update.
86 * source.c (forget_cached_source_info): Update.
87 * python/python.c (gdbpy_progspaces): Update.
88 * psymtab.c (maintenance_info_psymtabs): Update.
89 * probe.c (parse_probes): Update.
90 * linespec.c (iterate_over_all_matching_symtabs)
91 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
92 * guile/scm-progspace.c (gdbscm_progspaces): Update.
93 * exec.c (exec_target::close): Update.
94 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
95 * breakpoint.c (print_one_breakpoint_location)
96 (create_longjmp_master_breakpoint)
97 (create_std_terminate_master_breakpoint): Update.
98 * progspace.c (program_spaces): Now a std::vector.
99 (maybe_new_address_space): Update.
100 (add_program_space): Remove.
101 (program_space::program_space): Update.
102 (remove_program_space): Update.
103 (number_of_program_spaces): Remove.
104 (print_program_space, update_address_spaces): Update.
105 * progspace.h (program_spaces): Change type.
106 (ALL_PSPACES): Remove.
107 (number_of_program_spaces): Don't declare.
108 (struct program_space) <next>: Remove.
110 2020-05-08 Tom Tromey <tom@tromey.com>
112 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
113 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
114 (enable_break): Update.
115 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
116 (frv_fdpic_find_canonical_descriptor): Update.
117 (frv_fetch_objfile_link_map): Update.
118 * progspace.c (program_space::free_all_objfiles): Update.
119 (program_space::solibs): New method.
120 * progspace.h (struct program_space) <solibs>: New method.
121 * solist.h (master_so_list): Don't declare.
122 (ALL_SO_LIBS): Remove.
123 * solib.h (so_list_head): Remove.
124 (update_solib_list): Update comment.
125 * solib.c (master_so_list): Remove.
126 (solib_used, update_solib_list, solib_add)
127 (info_sharedlibrary_command, clear_solib)
128 (reload_shared_libraries_1, remove_user_added_objfile): Update.
130 2020-05-08 Tom Tromey <tom@tromey.com>
132 * extension.c (extension_languages): Now a std::array.
133 (ALL_EXTENSION_LANGUAGES): Remove.
134 (get_ext_lang_defn, get_ext_lang_of_file)
135 (eval_ext_lang_from_control_command): Update.
136 (finish_ext_lang_initialization)
137 (auto_load_ext_lang_scripts_for_objfile)
138 (ext_lang_type_printers::ext_lang_type_printers)
139 (apply_ext_lang_type_printers)
140 (ext_lang_type_printers::~ext_lang_type_printers)
141 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
142 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
143 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
144 (get_matching_xmethod_workers, ext_lang_colorize)
145 (ext_lang_before_prompt): Update.
146 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
148 2020-05-08 Tom Tromey <tom@tromey.com>
150 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
152 <swap_string, m_string>: Remove.
153 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
155 * stabsread.c (define_symbol, read_type): Update.
156 * linespec.c (find_linespec_symbols): Update.
157 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
158 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
159 * dbxread.c (read_dbx_symtab): Update.
160 * cp-support.h (cp_canonicalize_string_full)
161 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
162 Return unique_xmalloc_ptr.
163 * cp-support.c (inspect_type): Update.
164 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
165 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
167 * c-typeprint.c (print_name_maybe_canonical): Update.
168 * break-catch-throw.c (check_status_exception_catchpoint):
171 2020-05-08 Tom de Vries <tdevries@suse.de>
173 * infrun.c (follow_fork): Copy current_line and current_symtab to
176 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
178 * async-event.c (struct async_signal_handler, struct
179 async_event_handler): Reformat, remove typedef.
181 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
183 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
184 access thistype->main_type->dyn_prop_list directly.
186 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
188 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
189 (remove_dyn_prop): Remove. Update all users to use
190 type::remove_dyn_prop.
191 * gdbtypes.c (remove_dyn_prop): Rename to...
192 (type::remove_dyn_prop): ... this.
194 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
196 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
197 (add_dyn_prop): Remove. Update all users to use
199 * gdbtypes.c (add_dyn_prop): Rename to...
200 (type::add_dyn_prop): ... this.
202 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
204 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
205 (get_dyn_prop): Remove. Update all users to use
207 * gdbtypes.c (get_dyn_prop): Rename to...
208 (type::dyn_prop): ... this.
210 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
212 * gdbtypes.h (struct main_type) <flag_static>: Remove.
214 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
216 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
217 instruction, skip it if it's there.
219 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
221 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
223 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
225 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
226 * gdbtypes.c (recursive_dump_type): Remove use of
229 2020-05-03 Tom Tromey <tom@tromey.com>
231 * breakpoint.c (catch_command, tcatch_command): Remove.
232 (_initialize_breakpoint): Use add_basic_prefix_cmd,
234 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
235 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
237 (add_internal_problem_command): Use add_basic_prefix_cmd,
239 * mips-tdep.c (set_mipsfpu_command): Remove.
240 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
241 * dwarf2/index-cache.c (set_index_cache_command): Remove.
242 (_initialize_index_cache): Use add_basic_prefix_cmd.
243 * memattr.c (dummy_cmd): Remove.
244 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
245 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
246 (_initialize_tui_win): Use add_basic_prefix_cmd,
248 * cli/cli-logging.c (set_logging_command): Remove.
249 (_initialize_cli_logging): Use add_basic_prefix_cmd,
251 (show_logging_command): Remove.
252 * target.c (target_command): Remove.
253 (add_target): Use add_basic_prefix_cmd.
255 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
257 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
259 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
261 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
264 2020-04-30 Kamil Rytarowski <n54@gmx.com>
266 * nbsd-nat.c (nbsd_enable_proc_events)
267 (nbsd_nat_target::post_startup_inferior): Add.
268 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
269 (nbsd_nat_target::update_thread_list): Rewrite.
270 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
272 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
274 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
276 * stack.c (_initialize_stack): Remove duplicated creation
277 of "frame" command and "f" alias.
279 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
282 * gdbtypes.c (check_typedef): Calculate size of array of
285 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
288 * i386-tdep.c (i386_push_dummy_call): Call
289 i386_thiscall_push_dummy_call.
290 (i386_thiscall_push_dummy_call): New function.
291 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
292 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
293 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
295 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
297 * gdbarch.sh (do_read): Add shellcheck disable directive for
300 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
302 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
303 "referenced but not assigned" warning.
305 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
307 * gdbarch.sh: Remove code that sets fallbackdefault.
309 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
311 * gdbarch.sh: Use shell operators && and || instead of
314 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
316 * gdbarch.sh: Use $(...) instead of `...`.
318 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
320 * gdbarch.sh: Use double quotes around variables.
322 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
324 * gdbarch.sh: Use %s with printf, instead of variables in the
327 2020-04-29 Tom Tromey <tromey@adacore.com>
330 * dwarf2/read.c (update_enumeration_type_from_children): Compute
332 (read_enumeration_type): Call
333 update_enumeration_type_from_children later. Update comments.
334 (process_enumeration_scope): Don't create type fields.
336 2020-04-29 Kamil Rytarowski <n54@gmx.com>
338 * nbsd-tdep.c: Include "xml-syscall.h".
339 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
341 2020-04-29 Kamil Rytarowski <n54@gmx.com>
343 * nbsd-nat.c: Include "sys/wait.h".
344 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
345 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
346 (nbsd_nat_target::remove_exec_catchpoint)
347 (nbsd_nat_target::set_syscall_catchpoint): Add.
348 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
349 (nbsd_nat_target::insert_exec_catchpoint)
350 (nbsd_nat_target::remove_exec_catchpoint)
351 (nbsd_nat_target::set_syscall_catchpoint): Add.
352 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
353 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
354 `nbsd_get_syscall_number'.
356 2020-04-29 Tom Tromey <tom@tromey.com>
358 * stack.c (print_block_frame_labels): Remove.
360 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
363 * ada-valprint.c (val_print_packed_array_elements): Move array
364 end bracket to new line.
365 (ada_val_print_string): Remove extra spaces before first array
367 * c-valprint.c (c_value_print_array): Likewise.
368 * m2-valprint.c (m2_print_array_contents): Likewise.
369 (m2_value_print_inner): Likewise.
370 * p-valprint.c (pascal_value_print_inner): Likewise.
371 * valprint.c (generic_val_print_array): Likewise.
372 (value_print_array_elements): Move first array element and array
373 end bracket to new line.
375 2020-04-29 Tom de Vries <tdevries@suse.de>
378 * linespec.c (find_method): Fix ix calculation.
380 2020-04-28 Kamil Rytarowski <n54@gmx.com>
382 * syscalls/update-netbsd.sh: New file.
383 * syscalls/netbsd.xml: Regenerate.
384 * data-directory/Makefile.in: Register `netbsd.xml' in
387 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
389 * syscalls/update-freebsd.sh: Add double quotes.
391 2020-04-28 Tom Tromey <tom@tromey.com>
394 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
395 (cmdpy_init): Allow class_tui.
397 2020-04-28 Mark Williams <mark@myosotissp.com>
400 * dwarf2read.c: Add missing assingments to list_in_scope when
401 start_symtab was already called.
403 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
406 * dwarf2/read.c (offset_map_type): Use
407 gdb:hash_enum<sect_offset> as hash function.
409 2020-04-28 Tom de Vries <tdevries@suse.de>
411 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
412 with DW_AT_signature.
414 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
416 * configure.ac: Remove check for fs_base/gs_base in
418 * configure: Re-generate.
419 * config.in: Re-generate.
420 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
421 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
422 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
424 2020-04-27 Luis Machado <luis.machado@linaro.org>
426 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
427 problematic inline frame unwinding situation.
428 * frame.c (frame_id_computed_p): New function.
429 * frame.h (frame_id_computed_p): New prototype.
431 2020-04-26 Tom Tromey <tom@tromey.com>
433 * command.h (enum command_class) <class_pseudo>: Remove.
435 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
437 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
440 2020-04-25 Kamil Rytarowski <n54@gmx.com>
442 * inf-ptrace.c (inf_ptrace_target::wait): Remove
443 `PT_GET_PROCESS_STATE' block.
445 2020-04-24 Tom Tromey <tom@tromey.com>
447 * symtab.h (symbol_get_demangled_name): Don't declare.
448 * symtab.c (symbol_get_demangled_name): Remove.
449 (general_symbol_info::natural_name)
450 (general_symbol_info::demangled_name): Update.
452 2020-04-24 Tom Tromey <tom@tromey.com>
455 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
457 2020-04-24 Tom Tromey <tom@tromey.com>
460 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
462 (new_symbol): Likewise.
463 * compile/compile-object-load.c (get_out_value_type): Use
464 symbol_matches_search_name.
466 2020-04-24 Tom Tromey <tom@tromey.com>
468 * dwarf2/read.c (add_partial_symbol): Do not call
469 compute_and_set_names.
471 2020-04-24 Tom Tromey <tom@tromey.com>
473 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
476 2020-04-24 Tom Tromey <tom@tromey.com>
478 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
479 (add_psymbol_to_list): New overload. Make old overload call new
481 * psympriv.h (add_psymbol_to_list): New overload.
483 2020-04-24 Tom Tromey <tom@tromey.com>
485 * dwarf2/read.c (partial_die_info::read) <case
486 DW_AT_linkage_name>: Use value_as_string.
487 (dwarf2_string_attr): Use value_as_string.
488 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
490 * dwarf2/attribute.c (attribute::value_as_string): New method.
492 2020-04-24 Tom Tromey <tom@tromey.com>
494 * symtab.c (general_symbol_info::natural_name)
495 (general_symbol_info::demangled_name): Check for language_rust.
497 2020-04-24 Tom Tromey <tom@tromey.com>
499 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
500 (dwarf2_physname): ... from here.
501 (partial_die_info::read): Add Rust "{" hack.
503 2020-04-24 Tom Tromey <tom@tromey.com>
505 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
507 (symbol_set_demangled_name): Don't declare.
508 * symtab.c (general_symbol_info::set_demangled_name): Rename from
509 symbol_set_demangled_name.
510 (general_symbol_info::set_language)
511 (general_symbol_info::compute_and_set_names): Update.
512 * minsyms.c (minimal_symbol_reader::install): Update.
513 * dwarf2/read.c (new_symbol): Update.
515 2020-04-24 Tom Tromey <tromey@adacore.com>
518 * python/py-type.c (convert_field): Handle
519 FIELD_LOC_KIND_DWARF_BLOCK.
520 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
521 (typy_get_dynamic): Nw function.
522 (type_object_getset): Add "dynamic".
525 2020-04-24 Tom Tromey <tromey@adacore.com>
527 * ada-typeprint.c (print_choices, print_variant_part)
528 (print_record_field_types_dynamic): New functions.
529 (print_record_field_types): Use print_record_field_types_dynamic.
531 2020-04-24 Tom Tromey <tromey@adacore.com>
533 * dwarf2/read.c (handle_data_member_location): New overload.
534 (dwarf2_add_field): Use it.
535 (decode_locdesc): Add "computed" parameter. Update comment.
536 * gdbtypes.c (is_dynamic_type_internal): Also look for
537 FIELD_LOC_KIND_DWARF_BLOCK.
538 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
539 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
540 virtual base classes.
541 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
542 FIELD_LOC_KIND_DWARF_BLOCK.
544 2020-04-24 Tom Tromey <tromey@adacore.com>
546 * dwarf2/read.c (read_structure_type): Handle dynamic length.
547 * gdbtypes.c (is_dynamic_type_internal): Check
548 TYPE_HAS_DYNAMIC_LENGTH.
549 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
550 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
552 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
555 2020-04-24 Tom Tromey <tromey@adacore.com>
557 * dwarf2/read.c (struct variant_field): Rewrite.
558 (struct variant_part_builder): New.
559 (struct nextfield): Remove "variant" field. Add "offset".
560 (struct field_info): Add "current_variant_part" and
562 (alloc_discriminant_info): Remove.
563 (alloc_rust_variant): New function.
564 (quirk_rust_enum): Update.
565 (dwarf2_add_field): Set "offset" member. Don't handle
567 (offset_map_type): New typedef.
568 (convert_variant_range, create_one_variant)
569 (create_one_variant_part, create_variant_parts)
570 (add_variant_property): New functions.
571 (dwarf2_attach_fields_to_type): Call add_variant_property.
572 (read_structure_type): Don't handle DW_TAG_variant_part.
573 (handle_variant_part, handle_variant): New functions.
574 (handle_struct_member_die): Use them.
575 (process_structure_scope): Don't handle variant parts.
576 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
577 (struct discriminant_info): Remove.
578 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
579 (struct main_type) <flag_discriminated_union>: Remove.
580 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
581 (rust_enum_variant): Return int. Remove "contents". Rewrite.
582 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
584 * valops.c (value_union_variant): Remove.
585 * value.h (value_union_variant): Don't declare.
587 2020-04-24 Tom Tromey <tromey@adacore.com>
589 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
590 (ada_value_primitive_packed_val): Update.
591 * ada-valprint.c (ada_value_print_1): Update.
592 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
593 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
594 just an address. Use evaluate_for_locexpr_baton.
595 (dwarf2_evaluate_property): Update.
596 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
598 * findvar.c (default_read_var_value): Update.
599 * gdbtypes.c (compute_variant_fields_inner)
600 (resolve_dynamic_type_internal): Update.
601 (resolve_dynamic_type): Change type of valaddr parameter.
602 * gdbtypes.h (resolve_dynamic_type): Update.
603 * valarith.c (value_subscripted_rvalue): Update.
604 * value.c (value_from_contents_and_address): Update.
606 2020-04-24 Tom Tromey <tromey@adacore.com>
608 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
609 "push_initial_value" parameter.
610 (dwarf2_evaluate_property): Likewise.
611 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
613 2020-04-24 Tom Tromey <tromey@adacore.com>
615 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
616 (variant::matches, compute_variant_fields_recurse)
617 (compute_variant_fields_inner, compute_variant_fields): New
619 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
620 Use resolved_type after type is made.
621 (operator==): Add new cases.
622 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
623 (struct discriminant_range, struct variant, struct variant_part):
625 (union dynamic_prop_data) <variant_parts, original_type>: New
627 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
628 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
630 * value.c (unpack_bits_as_long): Now public.
631 * value.h (unpack_bits_as_long): Declare.
633 2020-04-24 Tom Tromey <tromey@adacore.com>
635 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
636 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
638 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
640 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
642 2020-04-24 Kamil Rytarowski <n54@gmx.com>
644 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
645 (remove_fork_catchpoint, post_startup_inferior)
646 (post_attach): Move...
647 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
648 (remove_fork_catchpoint, post_startup_inferior)
649 (post_attach): ...here.
650 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
651 (remove_fork_catchpoint, post_startup_inferior)
652 (post_attach): Move...
653 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
654 (remove_fork_catchpoint, post_startup_inferior)
655 (post_attach): ...here.
657 2020-04-24 Tom Tromey <tromey@adacore.com>
659 * nat/windows-nat.h (struct windows_thread_info)
660 <pc_adjusted>: New member.
661 * windows-nat.c (windows_fetch_one_register): Check
663 (windows_nat_target::get_windows_debug_event)
664 (windows_nat_target::wait): Set pc_adjusted.
666 2020-04-24 Tom de Vries <tdevries@suse.de>
668 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
669 Run gdb-add-index inside temp dir.
671 2020-04-23 Tom Tromey <tromey@adacore.com>
673 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
676 2020-04-23 Luis Machado <luis.machado@linaro.org>
678 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
679 get_frame_register instead of gdbarch_unwind_pc.
681 2020-04-23 Tom de Vries <tdevries@suse.de>
683 * symtab.c (lookup_global_symbol): Prefer def over decl.
685 2020-04-23 Tom de Vries <tdevries@suse.de>
688 * block.c (best_symbol, better_symbol): Promote to external.
689 * block.h (best_symbol, better_symbol): Declare.
690 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
693 2020-04-23 Tom Tromey <tromey@adacore.com>
696 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
697 "const char *", not a "const std::string &".
698 <name_and_matcher::operator==>: Update.
699 * unittests/lookup_name_info-selftests.c: Change type of
702 2020-04-23 Tom Tromey <tom@tromey.com>
704 * inferior.h (iterate_over_inferiors): Don't declare.
705 * inferior.c (iterate_over_inferiors): Remove.
706 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
708 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
709 use iterate_over_inferiors.
710 (darwin_resume_inferior_it)
711 (struct resume_inferior_threads_param)
712 (darwin_resume_inferior_threads_it): Remove.
713 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
715 2020-04-23 Tom de Vries <tdevries@suse.de>
717 * blockframe.c (find_pc_partial_function): Use
718 find_pc_sect_compunit_symtab rather than
719 objfile->sf->qf->find_pc_sect_compunit_symtab.
721 2020-04-22 Tom de Vries <tdevries@suse.de>
724 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
727 2020-04-22 Tom de Vries <tdevries@suse.de>
730 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
733 2020-04-22 Tom de Vries <tdevries@suse.de>
736 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
737 CU if already created.
739 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
741 * infrun.c (displaced_step_fixup): Switch to the event_thread
742 before calling displaced_step_restore, not after.
744 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
746 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
747 its inferior is not recorded by us.
748 (record_btrace_target_open): Replace call to
749 all_non_exited_threads () with call to current_inferior
750 ()->non_exited_threads ().
751 (record_btrace_target::stop_recording): Likewise.
752 (record_btrace_target::close): Likewise.
753 (record_btrace_target::wait): Likewise.
754 (record_btrace_target::record_stop_replaying): Likewise.
756 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
758 * btrace.c (btrace_enable): Throw an error on double enables and
759 when enabling recording fails.
760 (btrace_disable): Throw an error if the thread is not recorded.
762 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
764 * record-btrace.c (record_btrace_target::fetch_registers): Forward
765 request if we do not have a thread_info.
767 2020-04-21 Tom de Vries <tdevries@suse.de>
771 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
772 exception in get_frame_id.
774 2020-04-20 Tom Tromey <tromey@adacore.com>
776 * python/python.c (struct gdbpy_event): Mark move constructor as
778 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
779 constructor as noexcept.
780 * completer.h (struct completion_result): Mark move constructor as
782 * completer.c (completion_result::completion_result): Use
783 initialization style. Don't call reset_match_list.
785 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
787 * MAINTAINERS (Write After Approval): Add myself.
789 2020-04-18 Tom Tromey <tom@tromey.com>
791 * windows-tdep.c (init_w32_command_list)
792 (w32_prefix_command_valid): Restore.
793 (_initialize_windows_tdep): Call init_w32_command_list.
795 2020-04-18 Tom Tromey <tom@tromey.com>
797 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
798 * value.c (value_fn_field): Update.
799 * valops.c (find_function_in_inferior)
800 (value_allocate_space_in_inferior): Update.
801 * tui/tui-winsource.c (tui_update_source_windows_with_line):
803 * tui/tui-source.c (tui_source_window::set_contents): Update.
804 * symtab.c (lookup_global_or_static_symbol)
805 (find_function_start_sal_1, skip_prologue_sal)
806 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
807 * symmisc.c (dump_msymbols, dump_symtab_1)
808 (maintenance_print_one_line_table): Update.
809 * symfile.c (init_entry_point_info, section_is_mapped)
810 (list_overlays_command, simple_read_overlay_table)
811 (simple_overlay_update_1): Update.
812 * stap-probe.c (handle_stap_probe): Update.
813 * stabsread.c (dbx_init_float_type, define_symbol)
814 (read_one_struct_field, read_enum_type, read_range_type): Update.
815 * source.c (info_line_command): Update.
816 * python/python.c (gdbpy_source_objfile_script)
817 (gdbpy_execute_objfile_script): Update.
818 * python/py-type.c (save_objfile_types): Update.
819 * python/py-objfile.c (py_free_objfile): Update.
820 * python/py-inferior.c (python_new_objfile): Update.
821 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
822 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
823 (maintenance_check_psymtabs): Update.
824 * printcmd.c (info_address_command): Update.
825 * objfiles.h (struct objfile) <arch>: New method, from
827 (get_objfile_arch): Don't declare.
828 * objfiles.c (get_objfile_arch): Remove.
829 (filter_overlapping_sections): Update.
830 * minsyms.c (msymbol_is_function): Update.
831 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
832 (output_nondebug_symbol): Update.
833 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
834 (mdebug_expand_psymtab): Update.
835 * machoread.c (macho_add_oso_symfile): Update.
836 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
838 * linux-fork.c (checkpoint_command): Update.
839 * linespec.c (convert_linespec_to_sals): Update.
840 * jit.c (finalize_symtab): Update.
841 * infrun.c (insert_exception_resume_from_probe): Update.
842 * ia64-tdep.c (ia64_find_unwind_table): Update.
843 * hppa-tdep.c (internalize_unwinds): Update.
844 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
846 * gcore.c (call_target_sbrk): Update.
847 * elfread.c (record_minimal_symbol, elf_symtab_read)
848 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
849 (elf_gnu_ifunc_resolve_by_got): Update.
850 * dwarf2/read.c (create_addrmap_from_index)
851 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
852 (read_debug_names_from_section)
853 (process_psymtab_comp_unit_reader, add_partial_symbol)
854 (add_partial_subprogram, process_full_comp_unit)
855 (read_file_scope, read_func_scope, read_lexical_block_scope)
856 (read_call_site_scope, dwarf2_ranges_read)
857 (dwarf2_record_block_ranges, dwarf2_add_field)
858 (mark_common_block_symbol_computed, read_tag_pointer_type)
859 (read_tag_string_type, dwarf2_init_float_type)
860 (dwarf2_init_complex_target_type, read_base_type)
861 (partial_die_info::read, partial_die_info::read)
862 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
863 (dwarf2_fetch_die_loc_sect_off): Update.
864 * dwarf2/loc.c (dwarf2_find_location_expression)
865 (class dwarf_evaluate_loc_desc, rw_pieced_value)
866 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
867 (dwarf2_loc_desc_get_symbol_read_needs)
868 (locexpr_describe_location_piece, locexpr_describe_location_1)
869 (loclist_describe_location): Update.
870 * dwarf2/index-write.c (write_debug_names): Update.
871 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
872 * dtrace-probe.c (dtrace_process_dof): Update.
873 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
874 (process_one_symbol): Update.
875 * ctfread.c (ctf_init_float_type, read_base_type): Update.
876 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
877 (coff_read_enum_type): Update.
878 * cli/cli-cmds.c (edit_command, list_command): Update.
879 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
880 * breakpoint.c (create_overlay_event_breakpoint)
881 (create_longjmp_master_breakpoint)
882 (create_std_terminate_master_breakpoint)
883 (create_exception_master_breakpoint, get_sal_arch): Update.
884 * block.c (block_gdbarch): Update.
885 * annotate.c (annotate_source_line): Update.
887 2020-04-17 Tom Tromey <tromey@adacore.com>
889 * auto-load.c (show_auto_load_cmd): Remove.
890 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
891 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
892 (maintenance_print_arc_command): Remove.
893 * tui/tui-win.c (tui_command): Remove.
894 (tui_get_cmd_list): Use add_basic_prefix_cmd.
895 * tui/tui-layout.c (tui_layout_command): Remove.
896 (_initialize_tui_layout): Use add_basic_prefix_cmd.
897 * python/python.c (user_set_python, user_show_python): Remove.
898 (_initialize_python): Use add_basic_prefix_cmd,
900 * guile/guile.c (set_guile_command, show_guile_command): Remove.
901 (install_gdb_commands): Use add_basic_prefix_cmd,
903 (info_guile_command): Remove.
904 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
905 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
907 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
908 Remove do_set and do_show parameters.
909 * cli/cli-style.c (set_style, show_style): Remove.
910 (_initialize_cli_style): Use add_basic_prefix_cmd,
912 (cli_style_option::add_setshow_commands): Remove do_set and
914 (cli_style_option::add_setshow_commands): Use
915 add_basic_prefix_cmd, add_show_prefix_cmd.
916 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
917 (set_style_name): Remove.
918 * cli/cli-dump.c (dump_command, append_command): Remove.
919 (srec_dump_command, ihex_dump_command, verilog_dump_command)
920 (tekhex_dump_command, binary_dump_command)
921 (binary_append_command): Remove.
922 (_initialize_cli_dump): Use add_basic_prefix_cmd.
923 * windows-tdep.c (w32_prefix_command_valid): Remove global.
924 (init_w32_command_list): Remove; move into ...
925 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
926 * valprint.c (set_print, show_print, set_print_raw)
927 (show_print_raw): Remove.
928 (_initialize_valprint): Use add_basic_prefix_cmd,
930 * typeprint.c (set_print_type, show_print_type): Remove.
931 (_initialize_typeprint): Use add_basic_prefix_cmd,
933 * record.c (set_record_command, show_record_command): Remove.
934 (_initialize_record): Use add_basic_prefix_cmd,
936 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
938 (info_command, show_command, set_debug, show_debug): Remove.
939 * top.h (set_history, show_history): Don't declare.
940 * top.c (set_history, show_history): Remove.
941 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
942 (unset_tdesc_cmd): Remove.
943 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
945 * symtab.c (info_module_command): Remove.
946 (_initialize_symtab): Use add_basic_prefix_cmd.
947 * symfile.c (overlay_command): Remove.
948 (_initialize_symfile): Use add_basic_prefix_cmd.
949 * sparc64-tdep.c (info_adi_command): Remove.
950 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
951 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
952 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
954 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
955 (_initialize_serial): Use add_basic_prefix_cmd,
957 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
958 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
960 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
961 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
963 * riscv-tdep.c (show_riscv_command, set_riscv_command)
964 (show_debug_riscv_command, set_debug_riscv_command): Remove.
965 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
967 * remote.c (remote_command, set_remote_cmd): Remove.
968 (_initialize_remote): Use add_basic_prefix_cmd.
969 * record-full.c (set_record_full_command)
970 (show_record_full_command): Remove.
971 (_initialize_record_full): Use add_basic_prefix_cmd,
973 * record-btrace.c (cmd_set_record_btrace)
974 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
975 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
976 (cmd_show_record_btrace_pt): Remove.
977 (_initialize_record_btrace): Use add_basic_prefix_cmd,
979 * ravenscar-thread.c (set_ravenscar_command)
980 (show_ravenscar_command): Remove.
981 (_initialize_ravenscar): Use add_basic_prefix_cmd,
983 * mips-tdep.c (show_mips_command, set_mips_command)
984 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
986 * maint.c (maintenance_command, maintenance_info_command)
987 (maintenance_check_command, maintenance_print_command)
988 (maintenance_set_cmd, maintenance_show_cmd): Remove.
989 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
991 (show_per_command_cmd): Remove.
992 * maint-test-settings.c (maintenance_set_test_settings_cmd):
994 (maintenance_show_test_settings_cmd): Remove.
995 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
997 * maint-test-options.c (maintenance_test_options_command):
999 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
1000 * macrocmd.c (macro_command): Remove
1001 (_initialize_macrocmd): Use add_basic_prefix_cmd.
1002 * language.c (set_check, show_check): Remove.
1003 (_initialize_language): Use add_basic_prefix_cmd,
1004 add_show_prefix_cmd.
1005 * infcmd.c (unset_command): Remove.
1006 (_initialize_infcmd): Use add_basic_prefix_cmd.
1007 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
1008 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
1009 add_show_prefix_cmd.
1010 * go32-nat.c (go32_info_dos_command): Remove.
1011 (_initialize_go32_nat): Use add_basic_prefix_cmd.
1012 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
1013 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
1014 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
1015 (_initialize_frame): Use add_basic_prefix_cmd,
1016 add_show_prefix_cmd.
1017 * dcache.c (set_dcache_command, show_dcache_command): Remove.
1018 (_initialize_dcache): Use add_basic_prefix_cmd,
1019 add_show_prefix_cmd.
1020 * cp-support.c (maint_cplus_command): Remove.
1021 (_initialize_cp_support): Use add_basic_prefix_cmd.
1022 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
1023 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
1024 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
1025 add_basic_prefix_cmd, add_show_prefix_cmd.
1026 * breakpoint.c (save_command): Remove.
1027 (_initialize_breakpoint): Use add_basic_prefix_cmd.
1028 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
1029 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
1030 add_show_prefix_cmd.
1031 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
1032 (set_ada_command, show_ada_command): Remove.
1033 (_initialize_ada_language): Use add_basic_prefix_cmd,
1034 add_show_prefix_cmd.
1035 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
1037 2020-04-16 Kamil Rytarowski <n54@gmx.com>
1039 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
1040 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
1042 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
1044 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
1047 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
1049 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
1050 import table is not at beginning of .idata section.
1052 2020-04-16 Pedro Alves <palves@redhat.com>
1054 * inferior.c (delete_inferior): Use delete operator directly
1055 instead of delete_program_space.
1056 * progspace.c (add_program_space): New, factored out from
1057 program_space::program_space.
1058 (remove_program_space): New, factored out from
1059 delete_program_space.
1060 (program_space::program_space): Remove intro comment. Rewrite.
1061 (program_space::~program_space): Remove intro comment. Call
1062 remove_program_space.
1063 (delete_program_space): Delete.
1064 * progspace.h (program_space::program_space): Make explicit. Move
1065 intro comment here, adjusted.
1066 (program_space::~program_space): Move intro comment here,
1068 (delete_program_space): Remove.
1070 2020-04-16 Tom Tromey <tromey@adacore.com>
1072 * windows-nat.c (windows_nat::handle_access_violation): New
1074 * nat/windows-nat.h (handle_access_violation): Declare.
1075 * nat/windows-nat.c (handle_exception): Move Cygwin code to
1076 windows-nat.c. Call handle_access_violation.
1078 2020-04-16 Tom de Vries <tdevries@suse.de>
1081 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
1082 CUs without psymtab.
1084 2020-04-16 Kevin Buettner <kevinb@redhat.com>
1086 * python/python.c (do_start_initialization): Don't call
1087 PyEval_InitThreads for Python 3.9 and beyond.
1089 2020-04-15 Kamil Rytarowski <n54@gmx.com>
1091 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
1093 (obsd_nat_target::wait): Likewise.
1095 2020-04-15 Tom Tromey <tromey@adacore.com>
1097 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
1098 (DEBUG_EXCEPT): Use debug_printf.
1100 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1102 * completer.c (class completion_tracker::completion_hash_entry)
1103 <hash_name>: New member function.
1104 (completion_tracker::discard_completions): New callback to hash a
1105 completion_hash_entry, pass this to htab_create_alloc.
1107 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
1109 * windows-nat.c (windows_make_so): Warn rather than stopping with
1110 an error if realpath() fails.
1112 2020-04-14 Kamil Rytarowski <n54@gmx.com>
1114 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
1115 (nbsd_nat_target::info_proc): Add do_status.
1117 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
1118 Tom de Vries <tdevries@suse.de>
1121 * psympriv.h (struct partial_symtab::read_symtab)
1122 (struct partial_symtab::expand_psymtab)
1123 (struct partial_symtab::read_dependencies): Update comments.
1124 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
1125 read_symtab for includer.
1126 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
1127 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
1128 (struct dwarf2_include_psymtab::m_readin): Remove.
1129 (struct dwarf2_include_psymtab::includer): New member function.
1130 (dwarf2_psymtab::expand_psymtab): Assert !readin.
1132 2020-04-14 Tom de Vries <tdevries@suse.de>
1135 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
1136 with NULL symbol_matcher and lookup_name.
1137 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
1139 * dwarf2/read.c (dw2_expand_symtabs_matching)
1140 (dw2_debug_names_expand_symtabs_matching): Same.
1141 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
1142 Make lookup_name a pointer. Update comment.
1143 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
1144 lookup_name being a pointer.
1145 * symfile.c (expand_symtabs_matching): Same.
1146 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
1147 * linespec.c (iterate_over_all_matching_symtabs): Same.
1149 2020-04-13 Tom Tromey <tom@tromey.com>
1151 * run-on-main-thread.c: Update include.
1152 * unittests/main-thread-selftests.c: Update include.
1153 * tui/tui-win.c: Update include.
1154 * tui/tui-io.c: Update include.
1155 * tui/tui-interp.c: Update include.
1156 * tui/tui-hooks.c: Update include.
1157 * top.h: Update include.
1158 * top.c: Update include.
1159 * ser-base.c: Update include.
1160 * remote.c: Update include.
1161 * remote-notif.c: Update include.
1162 * remote-fileio.c: Update include.
1163 * record-full.c: Update include.
1164 * record-btrace.c: Update include.
1165 * python/python.c: Update include.
1166 * posix-hdep.c: Update include.
1167 * mingw-hdep.c: Update include.
1168 * mi/mi-main.c: Update include.
1169 * mi/mi-interp.c: Update include.
1170 * main.c: Update include.
1171 * linux-nat.c: Update include.
1172 * interps.c: Update include.
1173 * infrun.c: Update include.
1174 * inf-loop.c: Update include.
1175 * event-top.c: Update include.
1176 * event-loop.c: Move to ../gdbsupport/.
1177 * event-loop.h: Move to ../gdbsupport/.
1178 * async-event.h: Update include.
1179 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
1181 2020-04-13 Tom Tromey <tom@tromey.com>
1183 * tui/tui-win.c: Include async-event.h.
1184 * remote.c: Include async-event.h.
1185 * remote-notif.c: Include async-event.h.
1186 * record-full.c: Include async-event.h.
1187 * record-btrace.c: Include async-event.h.
1188 * infrun.c: Include async-event.h.
1189 * event-top.c: Include async-event.h.
1190 * event-loop.h: Move some declarations to async-event.h.
1191 * event-loop.c: Don't include ser-event.h or top.h. Move some
1192 code to async-event.c.
1193 * async-event.h: New file.
1194 * async-event.c: New file.
1195 * Makefile.in (COMMON_SFILES): Add async-event.c.
1196 (HFILES_NO_SRCDIR): Add async-event.h.
1198 2020-04-13 Tom Tromey <tom@tromey.com>
1200 * utils.c (flush_streams): New function.
1201 * event-loop.c (gdb_wait_for_event): Call flush_streams.
1203 2020-04-13 Tom Tromey <tom@tromey.com>
1205 * event-loop.c (handle_file_event): Use warning, not
1208 2020-04-13 Tom Tromey <tom@tromey.com>
1210 * event-loop.c: Include <chrono>.
1212 2020-04-13 Tom Tromey <tom@tromey.com>
1214 * gdb_select.h: Move to ../gdbsupport/.
1215 * event-loop.c: Update include path.
1216 * top.c: Update include path.
1217 * ser-base.c: Update include path.
1218 * ui-file.c: Update include path.
1219 * ser-tcp.c: Update include path.
1220 * guile/scm-ports.c: Update include path.
1221 * posix-hdep.c: Update include path.
1222 * ser-unix.c: Update include path.
1223 * gdb_usleep.c: Update include path.
1224 * mingw-hdep.c: Update include path.
1225 * inflow.c: Update include path.
1226 * infrun.c: Update include path.
1227 * event-top.c: Update include path.
1229 2020-04-13 Tom Tromey <tom@tromey.com>
1231 * configure: Rebuild.
1232 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
1234 2020-04-13 Tom Tromey <tom@tromey.com>
1236 * event-loop.h (start_event_loop): Don't declare.
1237 * event-loop.c (start_event_loop): Move...
1238 * main.c (start_event_loop): ...here. Now static.
1240 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
1242 * MAINTAINERS: Update my email address.
1244 2020-04-12 Kamil Rytarowski <n54@gmx.com>
1246 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
1249 2020-04-12 Kamil Rytarowski <n54@gmx.com>
1251 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
1252 (nbsd_nat_target::info_proc): Add do_cmdline.
1254 2020-04-12 Kamil Rytarowski <n54@gmx.com>
1256 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
1257 (nbsd_nat_target::info_proc): Add do_cwd.
1259 2020-04-12 Kamil Rytarowski <n54@gmx.com>
1261 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
1263 2020-04-11 Kamil Rytarowski <n54@gmx.com>
1265 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
1266 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
1267 (nbsd_nat_target::info_proc): New functions.
1268 * nbsd-nat.c (kinfo_get_vmmap): New function.
1269 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
1270 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
1271 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
1272 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
1274 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
1275 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
1276 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
1277 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
1278 (KINFO_VME_FLAG_GROWS_DOWN): New.
1280 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
1282 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
1285 2020-04-10 Tom Tromey <tromey@adacore.com>
1287 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
1289 2020-04-10 Tom Tromey <tromey@adacore.com>
1291 * symtab.c (get_symbol_address, get_msymbol_address): Skip
1292 separate debug files.
1294 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
1296 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
1298 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
1300 * windows-nat.c (windows_nat_target::get_windows_debug_event):
1301 Check for STATUS_WX86_BREAKPOINT.
1302 (windows_nat_target::wait): Same.
1304 2020-04-10 Tom de Vries <tdevries@suse.de>
1307 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
1309 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
1311 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
1312 (Write After Approval): Remove Tom de Vries.
1314 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
1317 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
1319 * buildsym.c (record_line): Fix undefined behavior and preserve
1322 2020-04-09 Kamil Rytarowski <n54@gmx.com>
1324 * auxv.h (svr4_auxv_parse): New.
1325 * auxv.c (default_auxv_parse): Split into default_auxv_parse
1326 and generic_auxv_parse.
1327 (svr4_auxv_parse): Add.
1328 * obsd-tdep.c: Include "auxv.h".
1329 (obsd_auxv_parse): Remove.
1330 (obsd_init_abi): Remove comment.
1331 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
1332 from `obsd_auxv_parse' to `svr4_auxv_parse'.
1333 * nbsd-tdep.c: Include "auxv.h".
1334 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
1336 2020-04-08 Tom Tromey <tromey@adacore.com>
1338 * nat/windows-nat.h (last_wait_event): Don't declare.
1339 (wait_for_debug_event): Update comment.
1340 * nat/windows-nat.c (last_wait_event): Now static.
1342 2020-04-08 Tom Tromey <tromey@adacore.com>
1344 * windows-nat.c (wait_for_debug_event): Move to
1346 * nat/windows-nat.h (wait_for_debug_event): Declare.
1347 * nat/windows-nat.c (wait_for_debug_event): Move from
1348 windows-nat.c. No longer static.
1350 2020-04-08 Tom Tromey <tromey@adacore.com>
1352 * windows-nat.c (get_windows_debug_event): Use
1354 * nat/windows-nat.h (fetch_pending_stop): Declare.
1355 * nat/windows-nat.c (fetch_pending_stop): New function.
1357 2020-04-08 Tom Tromey <tromey@adacore.com>
1359 * windows-nat.c (windows_continue): Use matching_pending_stop and
1360 continue_last_debug_event.
1361 * nat/windows-nat.h (matching_pending_stop)
1362 (continue_last_debug_event): Declare.
1363 * nat/windows-nat.c (DEBUG_EVENTS): New define.
1364 (matching_pending_stop, continue_last_debug_event): New
1367 2020-04-08 Tom Tromey <tromey@adacore.com>
1369 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
1370 (handle_exception_result): Move to nat/windows-nat.h.
1371 (DEBUG_EXCEPTION_SIMPLE): Remove.
1372 (windows_nat::handle_ms_vc_exception): New function.
1373 (handle_exception): Move to nat/windows-nat.c.
1374 (get_windows_debug_event): Update.
1375 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
1377 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
1378 (handle_exception_result): Move from windows-nat.c.
1379 (handle_exception): Declare.
1380 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
1381 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
1384 2020-04-08 Tom Tromey <tromey@adacore.com>
1386 * windows-nat.c (exception_count, event_count): Remove.
1387 (handle_exception, get_windows_debug_event)
1388 (do_initial_windows_stuff): Update.
1390 2020-04-08 Tom Tromey <tromey@adacore.com>
1392 * windows-nat.c (windows_nat::handle_load_dll)
1393 (windows_nat::handle_unload_dll): Rename. No longer static.
1394 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
1397 2020-04-08 Tom Tromey <tromey@adacore.com>
1399 * complaints.h (stop_whining): Declare at top-level.
1400 (complaint): Don't declare stop_whining.
1402 2020-04-08 Tom Tromey <tromey@adacore.com>
1404 * windows-nat.c (windows_nat::handle_output_debug_string):
1405 Rename. No longer static.
1406 * nat/windows-nat.h (handle_output_debug_string): Declare.
1408 2020-04-08 Tom Tromey <tromey@adacore.com>
1410 * windows-nat.c (current_process_handle, current_process_id)
1411 (main_thread_id, last_sig, current_event, last_wait_event)
1412 (current_windows_thread, desired_stop_thread_id, pending_stops)
1413 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
1414 (display_selectors, fake_create_process)
1415 (get_windows_debug_event): Update.
1416 * nat/windows-nat.h (current_process_handle, current_process_id)
1417 (main_thread_id, last_sig, current_event, last_wait_event)
1418 (current_windows_thread, desired_stop_thread_id, pending_stops)
1419 (struct pending_stop, siginfo_er): Move from windows-nat.c.
1420 * nat/windows-nat.c (current_process_handle, current_process_id)
1421 (main_thread_id, last_sig, current_event, last_wait_event)
1422 (current_windows_thread, desired_stop_thread_id, pending_stops)
1423 (siginfo_er): New globals. Move from windows-nat.c.
1425 2020-04-08 Tom Tromey <tromey@adacore.com>
1427 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
1428 (handle_load_dll): Update.
1429 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
1431 2020-04-08 Tom Tromey <tromey@adacore.com>
1433 * windows-nat.c (enum thread_disposition_type): Move to
1435 (windows_nat::thread_rec): Rename from thread_rec. No longer
1437 (windows_add_thread, windows_nat_target::fetch_registers)
1438 (windows_nat_target::store_registers, handle_exception)
1439 (windows_nat_target::resume, get_windows_debug_event)
1440 (windows_nat_target::get_tib_address)
1441 (windows_nat_target::thread_name)
1442 (windows_nat_target::thread_alive): Update.
1443 * nat/windows-nat.h (enum thread_disposition_type): Move from
1445 (thread_rec): Declare.
1447 2020-04-08 Tom Tromey <tromey@adacore.com>
1449 * windows-nat.c: Add "using namespace".
1450 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
1451 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
1453 2020-04-08 Tom Tromey <tromey@adacore.com>
1455 * nat/windows-nat.h (struct windows_thread_info): Declare
1457 * nat/windows-nat.c (~windows_thread_info): New.
1459 2020-04-08 Tom Tromey <tromey@adacore.com>
1462 * windows-nat.c (current_event): Update comment.
1463 (last_wait_event, desired_stop_thread_id): New globals.
1464 (struct pending_stop): New.
1465 (pending_stops): New global.
1466 (windows_nat_target) <stopped_by_sw_breakpoint>
1467 <supports_stopped_by_sw_breakpoint>: New methods.
1468 (windows_fetch_one_register): Add assertions. Adjust PC.
1469 (windows_continue): Handle pending stops. Suspend other threads
1470 when stepping. Use last_wait_event
1471 (wait_for_debug_event): New function.
1472 (get_windows_debug_event): Use wait_for_debug_event. Handle
1473 pending stops. Queue spurious stops.
1474 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
1475 (windows_nat_target::kill): Use wait_for_debug_event.
1476 * nat/windows-nat.h (struct windows_thread_info)
1477 <stopped_at_software_breakpoint>: New field.
1478 * nat/windows-nat.c (windows_thread_info::resume): Clear
1479 stopped_at_software_breakpoint.
1481 2020-04-08 Tom Tromey <tromey@adacore.com>
1483 * windows-nat.c (enum thread_disposition_type): New.
1484 (thread_rec): Replace "get_context" parameter with "disposition";
1486 (windows_add_thread, windows_nat_target::fetch_registers)
1487 (windows_nat_target::store_registers, handle_exception)
1488 (windows_nat_target::resume, get_windows_debug_event)
1489 (windows_nat_target::get_tib_address)
1490 (windows_nat_target::thread_name)
1491 (windows_nat_target::thread_alive): Update.
1493 2020-04-08 Tom Tromey <tromey@adacore.com>
1495 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
1496 (windows_continue): Use windows_continue::resume.
1497 * nat/windows-nat.h (struct windows_thread_info) <suspend,
1498 resume>: Declare new methods.
1499 * nat/windows-nat.c: New file.
1500 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
1502 2020-04-08 Tom Tromey <tromey@adacore.com>
1504 * windows-nat.c (windows_add_thread, windows_delete_thread)
1505 (windows_nat_target::fetch_registers)
1506 (windows_nat_target::store_registers, fake_create_process)
1507 (windows_nat_target::resume, windows_nat_target::resume)
1508 (get_windows_debug_event, windows_nat_target::wait)
1509 (windows_nat_target::pid_to_str)
1510 (windows_nat_target::get_tib_address)
1511 (windows_nat_target::get_ada_task_ptid)
1512 (windows_nat_target::thread_name)
1513 (windows_nat_target::thread_alive): Use lwp, not tid.
1515 2020-04-08 Tom Tromey <tromey@adacore.com>
1517 * windows-nat.c (handle_exception)
1518 (windows_nat_target::thread_name): Update.
1519 * nat/windows-nat.h (windows_thread_info): Remove destructor.
1520 <name>: Now unique_xmalloc_ptr.
1522 2020-04-08 Tom Tromey <tromey@adacore.com>
1524 * windows-nat.c (thread_rec)
1525 (windows_nat_target::fetch_registers): Update.
1526 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
1528 <debug_registers_changed, reload_context>: Now bool.
1530 2020-04-08 Tom Tromey <tromey@adacore.com>
1532 * windows-nat.c (windows_add_thread): Use new.
1533 (windows_init_thread_list, windows_delete_thread): Use delete.
1534 (get_windows_debug_event): Update.
1535 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
1536 destructor, and initializers.
1538 2020-04-08 Tom Tromey <tromey@adacore.com>
1540 * windows-nat.c (struct windows_thread_info): Remove.
1541 * nat/windows-nat.h: New file.
1543 2020-04-08 Tom Tromey <tromey@adacore.com>
1545 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
1546 (thread_rec, windows_add_thread, windows_delete_thread)
1547 (windows_continue): Update.
1549 2020-04-08 Tom Tromey <tromey@adacore.com>
1551 * windows-nat.c (struct windows_thread_info): Remove typedef.
1552 (thread_head): Remove.
1553 (thread_list): New global.
1554 (thread_rec, windows_add_thread, windows_init_thread_list)
1555 (windows_delete_thread, windows_continue): Update.
1557 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
1559 * windows-tdep.h (windows_init_abi): Add comment.
1560 (cygwin_init_abi): New declaration.
1561 * windows-tdep.c: Split signal enumeration in two, one for
1562 Windows and one for Cygwin.
1563 (windows_gdb_signal_to_target): Only deal with signal of the
1565 (cygwin_gdb_signal_to_target): New function.
1566 (windows_init_abi): Rename to windows_init_abi_common, don't set
1567 gdb_signal_to_target gdbarch method. Add new new function with
1569 (cygwin_init_abi): New function.
1570 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
1571 comment. Don't call windows_init_abi.
1572 (amd64_windows_init_abi): Add comment, call windows_init_abi.
1573 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
1574 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
1575 i386_windows_init_abi_common, don't call windows_init_abi. Add
1576 a new function of this name.
1577 (i386_cygwin_init_abi): New function.
1578 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
1581 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
1583 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
1585 (dwarf2_read_gdb_index): Update.
1587 2020-04-07 Kamil Rytarowski <n54@gmx.com>
1589 * nbsd-tdep.c: Include "objfiles.h".
1590 (nbsd_skip_solib_resolver): New.
1591 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
1593 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
1595 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
1596 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
1597 with DW_LLE_base_addressx are being emitted in DWARFv5.
1598 Add the newly added kind DW_LOC_OFFSET_PAIR also.
1599 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
1602 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
1604 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
1605 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
1606 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
1607 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
1608 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
1609 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
1610 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
1613 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
1615 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
1616 (read_loclist_index): New function definition.
1617 (lookup_loclist_base): New function definition.
1618 (read_loclist_header): New function definition.
1619 (dwarf2_cu): Add loclist_base and loclist_header field.
1620 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
1621 (read_full_die_1): Read the value of DW_AT_loclists_base.
1622 (read_attribute_reprocess): Handle DW_FORM_loclistx.
1623 (read_attribute_value): Handle DW_FORM_loclistx.
1624 (skip_one_die): Handle DW_FORM_loclistx.
1625 (loclist_header): New structure declaration.
1626 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
1628 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1630 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
1631 constructor. Remove `addr` parameter from other constructor and
1632 add `per_cu` parameter.
1633 * dwarf2/read.c (create_partial_symtab): Update.
1635 2020-04-07 Tom de Vries <tdevries@suse.de>
1638 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
1639 (partial_die_info::fixup): Inherit has_const_value.
1641 2020-04-07 Tom de Vries <tdevries@suse.de>
1643 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
1644 symbols without address.
1646 2020-04-06 Kamil Rytarowski <n54@gmx.com>
1648 * nbsd-nat.h (struct thread_info): Add forward declaration.
1649 (nbsd_nat_target::thread_alive): Add.
1650 (nbsd_nat_target::thread_name): Likewise.
1651 (nbsd_nat_target::update_thread_list): Likewise.
1652 (update_thread_list::post_attach): Likewise.
1653 (post_attach::pid_to_str): Likewise.
1654 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
1655 (nbsd_thread_lister): Add.
1656 (nbsd_nat_target::thread_alive): Likewise.
1657 (nbsd_nat_target::thread_name): Likewise.
1658 (nbsd_add_threads): Likewise.
1659 (update_thread_list::post_attach): Likewise.
1660 (nbsd_nat_target::update_thread_list): Likewise.
1661 (post_attach::pid_to_str): Likewise.
1663 2020-04-06 Tom Tromey <tromey@adacore.com>
1665 * ada-valprint.c (print_variant_part): Extract the variant field.
1666 (print_field_values): Use the field as the outer value when
1669 2020-04-06 Tom Tromey <tromey@adacore.com>
1671 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
1672 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
1673 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
1674 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
1675 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
1677 2020-04-06 Tom Tromey <tromey@adacore.com>
1679 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
1682 2020-04-06 Kamil Rytarowski <n54@gmx.com>
1684 * nbsd-tdep.c: Include "gdbarch.h".
1685 Define enum with NetBSD signal numbers.
1686 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
1687 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
1688 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
1689 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
1690 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
1691 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
1692 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
1693 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
1694 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
1695 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
1696 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
1697 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
1699 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
1702 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
1704 2020-04-03 Tom Tromey <tromey@adacore.com>
1706 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
1707 Read constant block.
1709 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1711 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
1712 (gdb_bfd_get_full_section_contents): New declaration.
1713 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
1714 * windows-tdep.c (is_linked_with_cygwin_dll): Use
1715 gdb_bfd_get_full_section_contents.
1717 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1719 * exec.c (build_section_table): Replace internal_error with
1721 (section_table_xfer_memory_partial): Likewise.
1722 * mdebugread.c (parse_partial_symbols): Likewise.
1723 * psymtab.c (lookup_partial_symbol): Likewise.
1724 * utils.c (wrap_here): Likewise.
1726 2020-04-02 Tom Tromey <tromey@adacore.com>
1728 * f-lang.c (build_fortran_types): Use arch_type to initialize
1729 builtin_complex_s32 in the TYPE_CODE_ERROR case.
1731 2020-04-02 Tom Tromey <tromey@adacore.com>
1733 * dwarf2/read.c (partial_die_info::read): Do not create a vector
1736 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
1737 Bernd Edlinger <bernd.edlinger@hotmail.de>
1738 Tom Tromey <tromey@adacore.com>
1740 * buildsym.c (buildsym_compunit::record_line): Remove
1743 2020-04-02 Tom de Vries <tdevries@suse.de>
1746 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
1748 2020-04-02 Tom de Vries <tdevries@suse.de>
1750 * dwarf2/read.c (dwarf2_gdb_index_functions,
1751 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
1753 * psymtab.c (psym_lookup_global_symbol_language): New function.
1754 (psym_functions): Init psym_lookup_global_symbol_language with
1755 psym_lookup_global_symbol_language.
1756 * symfile-debug.c (debug_sym_quick_functions): Init
1757 lookup_global_symbol_language with NULL.
1758 * symfile.c (set_initial_language): Remove fixme comment.
1759 * symfile.h (struct quick_symbol_functions): Add
1760 lookup_global_symbol_language.
1761 * symtab.c (find_quick_global_symbol_language): New function.
1762 (find_main_name): Use find_quick_global_symbol_language.
1764 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
1766 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
1768 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
1770 * buildsym.c (record_line): Fix undefined behavior and preserve
1773 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
1775 * buildsym.c (record_line): Fix the resizing condition.
1777 2020-04-01 Tom Tromey <tom@tromey.com>
1779 * value.h (value_literal_complex): Add comment.
1780 * valops.c (value_literal_complex): Refer to value.h.
1782 2020-04-01 Tom Tromey <tom@tromey.com>
1784 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
1785 (scalar_type): New rule, from typebase.
1786 (typebase): Use scalar_type. Recognize complex types.
1787 (field_name): Handle FLOAT_KEYWORD.
1788 (ident_tokens): Add _Complex and __complex__.
1790 2020-04-01 Tom Tromey <tom@tromey.com>
1793 * valarith.c (promotion_type, complex_binop): New functions.
1794 (scalar_binop): Handle complex numbers. Use promotion_type.
1795 (value_pos, value_neg, value_complement): Handle complex numbers.
1797 2020-04-01 Tom Tromey <tom@tromey.com>
1799 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
1800 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
1801 (parse_number): Handle complex numbers.
1803 2020-04-01 Tom Tromey <tom@tromey.com>
1805 * c-valprint.c (c_decorations): Change complex suffix to "i".
1807 2020-04-01 Tom Tromey <tom@tromey.com>
1809 * valprint.c (generic_value_print_complex): Use accessors.
1810 * value.h (value_real_part, value_imaginary_part): Declare.
1811 * valops.c (value_real_part, value_imaginary_part): New
1813 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
1815 2020-04-01 Tom Tromey <tom@tromey.com>
1817 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
1818 (read_range_type): Update.
1819 * mdebugread.c (basic_type): Update.
1820 * go-lang.c (build_go_types): Use init_complex_type.
1821 * gdbtypes.h (struct main_type) <complex_type>: New member.
1822 (init_complex_type): Update.
1823 (arch_complex_type): Don't declare.
1824 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
1825 Make name if none given. Use alloc_type_copy. Look for cached
1827 (arch_complex_type): Remove.
1828 (gdbtypes_post_init): Use init_complex_type.
1829 * f-lang.c (build_fortran_types): Use init_complex_type.
1830 * dwarf2/read.c (read_base_type): Update.
1831 * d-lang.c (build_d_types): Use init_complex_type.
1832 * ctfread.c (read_base_type): Update.
1834 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1836 * infrun.c (stop_all_threads): Update assertion, plus when
1837 stopping threads, take into account that we might be trying
1838 to stop an all-stop target.
1839 (stop_waiting): Call 'stop_all_threads' if there exists a
1842 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1844 * target.h (exists_non_stop_target): New function declaration.
1845 * target.c (exists_non_stop_target): New function.
1847 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
1850 * eval.c (is_integral_or_integral_reference): New function.
1851 (evaluate_subexp_standard): Allow integer references in
1854 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1856 * remote.c (remote_target::remote_parse_stop_reply): Remove the
1857 check for no ptid in the stop reply when the target is non-stop.
1859 2020-04-01 Tom Tromey <tromey@adacore.com>
1861 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
1862 "name" parameter to rvalue reference. Initialize m_name_holder.
1863 <lookup_name_info>: New overloads.
1864 <name>: Return gdb::string_view.
1865 <c_str>: New method.
1866 <make_ignore_params>: Update.
1867 <search_name_hash>: Update.
1868 <language_lookup_name>: Return const char *.
1869 <m_name>: Change type.
1870 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
1871 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
1872 (lookup_name_info::match_any): Update.
1873 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
1875 * minsyms.c (linkage_name_str): Update.
1876 * language.c (default_symbol_name_matcher): Update.
1877 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
1879 * ada-lang.c (ada_fold_name): Change parameter to string_view.
1880 (ada_lookup_name_info::ada_lookup_name_info): Update.
1881 (literal_symbol_name_matcher): Update.
1883 2020-04-01 Tom Tromey <tromey@adacore.com>
1885 * psymtab.c (psymtab_search_name): Remove function.
1886 (psym_lookup_symbol): Create search name and lookup name here.
1887 (lookup_partial_symbol): Remove "name" parameter; add
1889 (psym_expand_symtabs_for_function): Update.
1891 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
1894 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
1896 2020-03-31 Tom Tromey <tromey@adacore.com>
1898 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
1901 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
1903 * features/riscv/32bit-csr.xml: Regenerated.
1904 * features/riscv/64bit-csr.xml: Regenerated.
1906 2020-03-30 Tom Tromey <tromey@adacore.com>
1908 * ada-valprint.c (print_variant_part): Update.
1909 * ada-lang.h (ada_which_variant_applies): Update.
1910 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
1911 outer_valaddr parameters; replace with "outer" value parameter.
1912 (to_fixed_variant_branch_type): Update.
1914 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1916 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
1917 <list>. Remove inclusion of observable.h.
1918 (PPC_DEBUG_CURRENT_VERSION): Move up define.
1919 (struct arch_lwp_info): New struct.
1920 (class ppc_linux_dreg_interface): New class.
1921 (struct ppc_linux_process_info): New struct.
1922 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
1923 <low_new_clone, low_forget_process, low_prepare_to_resume>
1924 <copy_thread_dreg_state, mark_thread_stale>
1925 <mark_debug_registers_changed, register_hw_breakpoint>
1926 <clear_hw_breakpoint, register_wp, clear_wp>
1927 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
1928 <num_memory_accesses, get_trigger_type>
1929 <create_watchpoint_request, hwdebug_point_cmp>
1930 <init_arch_lwp_info, get_arch_lwp_info>
1931 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
1933 <struct ptid_hash>: New inner struct.
1934 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
1936 (saved_dabr_value, hwdebug_info, max_slots_number)
1937 (struct hw_break_tuple, struct thread_points, ppc_threads)
1938 (have_ptrace_hwdebug_interface)
1939 (hwdebug_find_thread_points_by_tid)
1940 (hwdebug_insert_point, hwdebug_remove_point): Remove.
1941 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
1942 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
1943 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
1944 use m_dreg_interface.
1945 (hwdebug_point_cmp): Change to...
1946 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
1947 reference arguments instead of pointers.
1948 (ppc_linux_nat_target::ranged_break_num_registers): Use
1950 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
1951 m_dreg_interface. Call register_hw_breakpoint.
1952 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
1953 m_dreg_interface. Call clear_hw_breakpoint.
1954 (get_trigger_type): Change to...
1955 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
1957 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
1958 use m_dreg_interface. Call register_hw_breakpoint.
1959 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
1960 use m_dreg_interface. Call clear_hw_breakpoint.
1961 (can_use_watchpoint_cond_accel): Change to...
1962 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
1963 method. Update comment, use m_dreg_interface and
1965 (calculate_dvc): Change to...
1966 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
1968 (num_memory_accesses): Change to...
1969 (ppc_linux_nat_target::num_memory_accesses): ...this method.
1970 (check_condition): Change to...
1971 (ppc_linux_nat_target::check_condition): ...this method.
1972 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
1973 comment, use m_dreg_interface.
1974 (create_watchpoint_request): Change to...
1975 (ppc_linux_nat_target::create_watchpoint_request): ...this
1976 method. Use m_dreg_interface.
1977 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
1978 m_dreg_interface. Call register_hw_breakpoint or register_wp.
1979 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
1980 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
1981 (ppc_linux_nat_target::low_forget_process)
1982 (ppc_linux_nat_target::low_new_fork)
1983 (ppc_linux_nat_target::low_new_clone)
1984 (ppc_linux_nat_target::low_delete_thread)
1985 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
1986 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
1987 only call mark_thread_stale.
1988 (ppc_linux_thread_exit): Remove.
1989 (ppc_linux_nat_target::stopped_data_address): Change to...
1990 (ppc_linux_nat_target::low_stopped_data_address): This. Add
1991 comment, use m_dreg_interface and m_thread_hw_breakpoints.
1992 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
1993 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
1994 comment. Call low_stopped_data_address.
1995 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
1997 (ppc_linux_nat_target::masked_watch_num_registers): Use
1999 (ppc_linux_nat_target::copy_thread_dreg_state)
2000 (ppc_linux_nat_target::mark_thread_stale)
2001 (ppc_linux_nat_target::mark_debug_registers_changed)
2002 (ppc_linux_nat_target::register_hw_breakpoint)
2003 (ppc_linux_nat_target::clear_hw_breakpoint)
2004 (ppc_linux_nat_target::register_wp)
2005 (ppc_linux_nat_target::clear_wp)
2006 (ppc_linux_nat_target::init_arch_lwp_info)
2007 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
2008 (_initialize_ppc_linux_nat): Remove observer callback.
2010 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2012 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
2013 (ppc_linux_nat_target::auxv_parse)
2014 (ppc_linux_nat_target::read_description)
2015 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
2018 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2020 * linux-nat.h (low_new_clone): New method.
2021 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
2023 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
2025 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
2026 (dbx_expand_psymtab): ... this.
2027 (start_psymtab): Update.
2028 * mdebugread.c (psymtab_to_symtab_1): Rename to...
2029 (mdebug_expand_psymtab): ... this.
2030 (parse_partial_symbols): Update.
2031 (new_psymtab): Update.
2032 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
2033 (xcoff_expand_psymtab): ... this.
2034 (xcoff_start_psymtab): Update.
2036 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
2038 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
2039 <expand_dependencies>: ... this.
2040 * psymtab.c (partial_symtab::read_dependencies): Rename to...
2041 (partial_symtab::expand_dependencies): ... this.
2042 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
2044 (dwarf2_psymtab::expand_psymtab): Update.
2045 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
2046 * mdebugread.c (psymtab_to_symtab_1): Update.
2047 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
2049 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
2051 * psympriv.h (discard_psymtab): Remove.
2052 * dbxread.c (dbx_end_psymtab): Update.
2053 * xcoffread.c (xcoff_end_psymtab): Update.
2055 2020-03-28 Tom Tromey <tom@tromey.com>
2057 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
2060 2020-03-28 Tom Tromey <tom@tromey.com>
2062 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
2064 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
2066 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
2068 2020-03-26 John Baldwin <jhb@FreeBSD.org>
2070 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
2072 2020-03-26 Tom Tromey <tom@tromey.com>
2074 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
2075 (mark_common_block_symbol_computed, read_tag_string_type)
2076 (attr_to_dynamic_prop, read_subrange_type): Update.
2077 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
2078 to be methods on struct attribute.
2079 (skip_one_die, process_imported_unit_die, read_namespace_alias)
2080 (read_call_site_scope, partial_die_info::read)
2081 (partial_die_info::read, lookup_die_type, follow_die_ref):
2083 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
2084 from dwarf2_get_ref_die_offset.
2085 (attribute::constant_value): New method, from
2086 dwarf2_get_attr_constant_value.
2087 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
2089 <constant_value>: New method.
2091 2020-03-26 Tom Tromey <tom@tromey.com>
2093 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
2094 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
2095 (dwarf_type_encoding_name): Move to stringify.c.
2096 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
2097 * dwarf2/stringify.c: New file.
2098 * dwarf2/stringify.h: New file.
2100 2020-03-26 Tom Tromey <tom@tromey.com>
2102 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
2105 2020-03-26 Tom Tromey <tom@tromey.com>
2107 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
2109 * dwarf2/read.c (lookup_addr_base): Move to die.h.
2110 (lookup_ranges_base): Likewise.
2111 (read_cutu_die_from_dwo, read_full_die_1): Update.
2113 2020-03-26 Tom Tromey <tom@tromey.com>
2115 * dwarf2/read.c (read_import_statement, read_file_scope)
2116 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
2117 (read_lexical_block_scope, read_call_site_scope)
2118 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
2119 (handle_struct_member_die, process_structure_scope)
2120 (update_enumeration_type_from_children)
2121 (process_enumeration_scope, read_array_type, read_common_block)
2122 (read_namespace, read_module, read_subroutine_type): Update.
2123 (sibling_die): Remove.
2125 2020-03-26 Tom Tromey <tom@tromey.com>
2127 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
2128 (build_type_psymtabs_reader, read_structure_type)
2129 (read_enumeration_type, read_full_die_1): Update.
2130 (dwarf2_attr_no_follow): Move to die.h.
2131 * dwarf2/die.h (struct die_info) <attr>: New method.
2133 2020-03-26 Tom Tromey <tom@tromey.com>
2135 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
2136 <base_address>: Now an optional.
2137 (dwarf2_find_base_address, dwarf2_rnglists_process)
2138 (dwarf2_ranges_process, fill_in_loclist_baton)
2139 (dwarf2_symbol_mark_computed): Update.
2141 2020-03-26 Tom Tromey <tom@tromey.com>
2143 * dwarf2/read.c (struct die_info): Move to die.h.
2144 * dwarf2/die.h: New file.
2146 2020-03-26 Tom Tromey <tom@tromey.com>
2148 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
2150 (dwarf2_statement_list_fits_in_line_number_section_complaint):
2151 Move to line-header.c.
2152 (read_checked_initial_length_and_offset, read_formatted_entries):
2154 (dwarf_decode_line_header): Split into two.
2155 * dwarf2/line-header.c
2156 (dwarf2_statement_list_fits_in_line_number_section_complaint):
2158 (read_checked_initial_length_and_offset, read_formatted_entries):
2160 (dwarf_decode_line_header): New function, split from read.c.
2162 2020-03-26 Tom Tromey <tom@tromey.com>
2164 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
2166 * dwarf2/read.c (read_attribute_value): Update.
2167 (dwarf2_per_objfile::read_line_string): Rename from
2168 read_indirect_line_string.
2169 (read_formatted_entries): Update.
2171 2020-03-26 Tom Tromey <tom@tromey.com>
2173 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
2176 2020-03-26 Tom Tromey <tom@tromey.com>
2178 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
2180 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
2181 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
2184 2020-03-26 Tom Tromey <tom@tromey.com>
2186 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
2187 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
2188 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
2189 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
2191 2020-03-26 Tom Tromey <tom@tromey.com>
2193 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
2194 file_names_size, file_full_name, file_file_name>: Use const.
2195 <file_name_at, file_names>: Add const overload.
2196 * dwarf2/line-header.c (line_header::file_file_name)
2197 (line_header::file_full_name): Update.
2199 2020-03-26 Tom Tromey <tom@tromey.com>
2201 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
2202 (macro_start_file, consume_improper_spaces)
2203 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
2204 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
2205 (dwarf_decode_macros): Move to macro.c.
2206 * dwarf2/macro.c: New file.
2207 * dwarf2/macro.h: New file.
2208 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
2210 2020-03-26 Tom Tromey <tom@tromey.com>
2212 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
2214 * dwarf2/section.c: New method. From
2215 read_indirect_string_at_offset_from.
2216 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
2217 (read_indirect_string_at_offset_from): Move to section.c.
2218 (read_indirect_string_at_offset): Rewrite.
2219 (read_indirect_line_string_at_offset): Remove.
2220 (read_indirect_string, read_indirect_line_string)
2221 (dwarf_decode_macro_bytes): Update.
2223 2020-03-26 Tom Tromey <tom@tromey.com>
2225 * dwarf2/section.h (struct dwarf2_section_info)
2226 <overload_complaint>: Declare.
2227 (dwarf2_section_buffer_overflow_complaint): Don't declare.
2228 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
2229 Rename from dwarf2_section_buffer_overflow_complaint.
2230 * dwarf2/read.c (skip_one_die, partial_die_info::read)
2231 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
2233 2020-03-26 Tom Tromey <tom@tromey.com>
2235 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
2237 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
2239 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
2242 2020-03-26 Tom Tromey <tom@tromey.com>
2244 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
2246 2020-03-26 Tom Tromey <tom@tromey.com>
2248 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
2250 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
2252 (dwarf_decode_macros): Update.
2254 2020-03-26 Tom Tromey <tom@tromey.com>
2256 * dwarf2/read.c (read_attribute_value): Update.
2257 (read_indirect_string_from_dwz): Move to dwz.c; change into
2259 (dwarf_decode_macro_bytes): Update.
2260 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
2261 * dwarf2/dwz.c: New file.
2262 * Makefile.in (COMMON_SFILES): Add dwz.c.
2264 2020-03-26 Tom Tromey <tom@tromey.com>
2266 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
2267 * dwarf2/read.c: Add include.
2268 * dwarf2/index-write.c: Add include.
2269 * dwarf2/index-cache.c: Add include.
2270 * dwarf2/dwz.h: New file.
2272 2020-03-25 Tom Tromey <tom@tromey.com>
2274 * compile/compile-object-load.c (get_out_value_type): Mention
2275 correct symbol name in error message.
2277 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
2279 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
2281 2020-03-25 Tom de Vries <tdevries@suse.de>
2283 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
2284 * symmisc.c (dump_symtab_1): Print user and includes fields.
2285 (maintenance_info_symtabs): Same.
2287 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
2290 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
2291 (riscv_regcache_cooked_write): New function.
2292 (riscv_push_dummy_call): Use new function.
2293 (riscv_return_value): Likewise.
2295 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2297 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
2298 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
2299 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
2300 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
2301 * infrun.c (follow_fork): Likewise.
2302 (follow_fork_inferior): Likewise.
2303 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
2304 * linux-nat.h (class linux_nat_target): Likewise.
2305 * remote.c (class remote_target) <follow_fork>: Likewise.
2306 (remote_target::follow_fork): Likewise.
2307 * target-delegates.c: Re-generate.
2308 * target.c (default_follow_fork): Likewise.
2309 (target_follow_fork): Likewise.
2310 * target.h (struct target_ops) <follow_fork>: Likewise.
2311 (target_follow_fork): Likewise.
2313 2020-03-24 Tom de Vries <tdevries@suse.de>
2315 * psymtab.c (maintenance_info_psymtabs): Print user field.
2317 2020-03-20 Tom Tromey <tromey@adacore.com>
2319 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
2321 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
2324 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
2326 * ptrace.m4: Don't check for ptrace declaration.
2327 * config.in: Re-generate.
2328 * configure: Re-generate.
2329 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
2332 2020-03-20 Kamil Rytarowski <n54@gmx.com>
2334 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
2336 * i386-bsd-nat.c (gdb_ptrace): Likewise.
2337 * sparc-nat.c (gdb_ptrace): Likewise.
2338 * x86-bsd-nat.c (gdb_ptrace): Likewise.
2340 2020-03-20 Tom Tromey <tromey@adacore.com>
2342 * c-exp.y (lex_one_token): Fix assert.
2344 2020-03-20 Tom Tromey <tromey@adacore.com>
2346 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
2347 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
2350 2020-03-20 Tom Tromey <tromey@adacore.com>
2352 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
2354 2020-03-20 Tom Tromey <tromey@adacore.com>
2356 * ada-valprint.c (print_variant_part): Remove parameters; switch
2358 (print_field_values): Likewise.
2359 (ada_val_print_struct_union): Likewise.
2360 (ada_value_print_1): Update.
2362 2020-03-20 Kamil Rytarowski <n54@gmx.com>
2364 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
2365 nbsd_nat_target instead of inf_ptrace_target.
2366 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
2369 2020-03-20 Kamil Rytarowski <n54@gmx.com>
2371 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
2372 it to the ptrace call.
2373 * (store_registers): Likewise.
2375 2020-03-20 Kamil Rytarowski <n54@gmx.com>
2377 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
2378 it to the ptrace call.
2379 * (store_registers): Likewise.
2381 2020-03-19 Luis Machado <luis.machado@linaro.org>
2383 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
2384 valid, fetch vg value from ptrace.
2386 2020-03-19 Kamil Rytarowski <n54@gmx.com>
2387 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
2388 * inf-ptrace.c: Likewise.
2389 * (gdb_ptrace): Add.
2390 * (inf_ptrace_target::resume): Update.
2391 * (inf_ptrace_target::xfer_partial): Likewise.
2392 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
2393 * (inf_ptrace_peek_poke): Update.
2395 2020-03-19 Kamil Rytarowski <n54@gmx.com>
2397 * x86-bsd-nat.c (gdb_ptrace): New.
2398 * (x86bsd_dr_set): Add new argument `ptid'.
2399 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
2400 x86bsd_dr_set_addr): Update.
2402 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
2404 * remote.c (remote_target::process_stop_reply): Handle events for
2405 all threads differently.
2407 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
2409 * completer.c (completion_tracker::remove_completion): Define new
2411 * completer.h (completion_tracker::remove_completion): Declare new
2413 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
2414 when adding a C++ function symbol.
2416 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
2418 * completer.c (completion_tracker::completion_hash_entry): Define
2420 (advance_to_filename_complete_word_point): Call
2421 recompute_lowest_common_denominator.
2422 (completion_tracker::completion_tracker): Call discard_completions
2423 to setup the hash table.
2424 (completion_tracker::discard_completions): Allow for being called
2425 from the constructor, pass new equal function, and element deleter
2426 when constructing the hash table. Initialise new class member
2428 (completion_tracker::maybe_add_completion): Remove use of
2429 m_entries_vec, and store more information into m_entries_hash.
2430 (completion_tracker::recompute_lcd_visitor): New function, most
2431 content taken from...
2432 (completion_tracker::recompute_lowest_common_denominator):
2433 ...here, this now just visits each item in the hash calling the
2435 (completion_tracker::build_completion_result): Remove use of
2436 m_entries_vec, call recompute_lowest_common_denominator.
2437 * completer.h (completion_tracker::have_completions): Remove use
2439 (completion_tracker::completion_hash_entry): Declare new class.
2440 (completion_tracker::recompute_lowest_common_denominator): Change
2442 (completion_tracker::recompute_lcd_visitor): Declare new function.
2443 (completion_tracker::m_entries_vec): Delete.
2444 (completion_tracker::m_entries_hash): Initialize to NULL.
2445 (completion_tracker::m_lowest_common_denominator_valid): New
2447 (completion_tracker::m_lowest_common_denominator_max_length): New
2450 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2452 * regformats/regdef.h: Put reg in gdb namespace.
2454 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2456 * i386-bsd-nat.c (gdb_ptrace): New.
2457 * (i386bsd_fetch_inferior_registers,
2458 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
2459 * (i386bsd_fetch_inferior_registers,
2460 i386bsd_store_inferior_registers) Use gdb_ptrace.
2462 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2464 * amd64-bsd-nat.c (gdb_ptrace): New.
2465 * (amd64bsd_fetch_inferior_registers,
2466 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
2467 * (amd64bsd_fetch_inferior_registers,
2468 amd64bsd_store_inferior_registers) Use gdb_ptrace.
2470 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2472 * user-regs.c (user_reg::read): Rename to...
2473 (user_reg::xread): ...this.
2474 * (append_user_reg): Rename argument `read' to `xread'.
2475 * (user_reg_add_builtin): Likewise.
2476 * (user_reg_add): Likewise.
2477 * (value_of_user_reg): Likewise.
2479 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2481 * sparc-nat.c (gdb_ptrace): New.
2482 * sparc-nat.c (sparc_fetch_inferior_registers)
2483 (sparc_store_inferior_registers) Remove obsolete comment.
2484 * sparc-nat.c (sparc_fetch_inferior_registers)
2485 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
2486 * sparc-nat.c (sparc_fetch_inferior_registers)
2487 (sparc_store_inferior_registers) Use gdb_ptrace.
2489 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2491 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
2492 it to the ptrace call.
2493 * sh-nbsd-nat.c (store_registers): Likewise.
2495 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2497 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
2498 nbsd_nat_target instead of inf_ptrace_target.
2499 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
2502 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2504 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
2506 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2508 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
2510 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
2512 2020-03-17 Tom de Vries <tdevries@suse.de>
2515 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
2517 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
2519 (process_imported_unit_die): Skip import of c++ CUs.
2521 2020-03-16 Tom Tromey <tom@tromey.com>
2523 * p-valprint.c (pascal_object_print_value): Initialize
2526 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
2527 Shahab Vahedi <shahab@synopsys.com>
2529 * Makefile.in: Add arch/arc.o
2530 * configure.tgt: Likewise.
2531 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
2532 (_initialize_arc_tdep): Don't initialize old target descriptions.
2533 (arc_read_description): New function to cache target descriptions.
2534 * arc-tdep.h (arc_read_description): Add proto type.
2535 * arch/arc.c: New file.
2536 * arch/arc.h: Likewise.
2537 * features/Makefile: Replace old target descriptions with new.
2538 * features/arc-arcompact.c: Remove.
2539 * features/arc-arcompact.xml: Likewise.
2540 * features/arc-v2.c: Likewise
2541 * features/arc-v2.xml: Likewise
2542 * features/arc/aux-arcompact.xml: New file.
2543 * features/arc/aux-v2.xml: Likewise.
2544 * features/arc/core-arcompact.xml: Likewise.
2545 * features/arc/core-v2.xml: Likewise.
2546 * features/arc/aux-arcompact.c: Generate.
2547 * features/arc/aux-v2.c: Likewise.
2548 * features/arc/core-arcompact.c: Likewise.
2549 * features/arc/core-v2.c: Likewise.
2550 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
2552 2020-03-16 Tom Tromey <tromey@adacore.com>
2555 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
2556 putting value into bcache.
2558 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
2561 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
2563 (amd64_windows_init_abi_common): ... this. Don't set size of
2565 (amd64_windows_init_abi): New function.
2566 (amd64_cygwin_init_abi): New function.
2567 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
2569 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
2572 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
2574 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
2575 * windows-tdep.c (CYGWIN_DLL_NAME): New.
2576 (pe_import_directory_entry): New struct type.
2577 (is_linked_with_cygwin_dll): New function.
2578 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
2579 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
2580 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
2582 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
2584 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
2585 i386_cygwin_core_osabi_sniffer.
2587 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
2589 * i386-cygwin-tdep.c: Rename to...
2590 * i386-windows-tdep.c: ... this.
2591 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
2592 i386-windows-tdep.c.
2593 * configure.tgt: Likewise.
2595 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
2597 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
2598 * osabi.c (gdb_osabi_names): Add "Windows".
2599 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
2600 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
2601 (i386_cygwin_core_osabi_sniffer): New function, extracted from
2602 i386_cygwin_osabi_sniffer.
2603 (_initialize_i386_cygwin_tdep): Register OS ABI
2604 GDB_OSABI_WINDOWS for i386.
2605 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
2606 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
2607 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
2609 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
2610 when the target matches '*-*-mingw*'.
2612 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
2614 * defs.h (enum gdb_osabi): Move to...
2615 * osabi.h (enum gdb_osabi): ... here.
2616 * gdbarch.sh: Include osabi.h in gdbarch.h.
2617 * gdbarch.h: Re-generate.
2619 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
2621 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
2623 (_initialize_amd64_windows_tdep): Register osabi sniffer.
2625 2020-03-14 Tom Tromey <tom@tromey.com>
2627 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
2629 (c_type_print_modifier): Likewise. Add "language" parameter.
2630 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
2631 (c_type_print_base_1): Update.
2632 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
2634 * type-stack.c (type_stack::insert): Handle tp_atomic and
2636 (type_stack::follow_type_instance_flags): Likewise.
2637 (type_stack::follow_types): Likewise. Merge type-following code.
2638 * c-exp.y (RESTRICT, ATOMIC): New tokens.
2639 (space_identifier, cv_with_space_id)
2640 (const_or_volatile_or_space_identifier_noopt)
2641 (const_or_volatile_or_space_identifier): Remove.
2642 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
2644 (ptr_operator, typebase): Update.
2645 (enum token_flag) <FLAG_C>: New constant.
2646 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
2648 (lex_one_token): Handle FLAG_C.
2650 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2652 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
2653 it to the ptrace call.
2654 * m68k-bsd-nat.c (store_registers): Likewise.
2656 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2658 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
2660 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
2661 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
2662 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
2664 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2666 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
2667 nbsd_nat_target instead of inf_ptrace_target.
2668 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
2671 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2673 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
2676 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2678 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
2679 it to the ptrace call.
2680 * alpha-bsd-nat.c (store_registers): Likewise.
2682 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2684 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
2686 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
2687 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
2688 fill_fpregset): Likewise.
2690 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2692 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
2693 nbsd_nat_target instead of inf_ptrace_target.
2694 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
2697 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2699 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
2702 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2704 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
2705 it to the ptrace call.
2706 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
2707 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
2708 * arm-nbsd-nat.c (store_register): Likewise.
2709 * arm-nbsd-nat.c (store_regs): Likewise.
2710 * arm-nbsd-nat.c (store_fp_register): Likewise.
2711 * arm-nbsd-nat.c (store_fp_regs): Likewise.
2713 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2715 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
2716 nbsd_nat_target instead of inf_ptrace_target.
2717 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
2720 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2722 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
2723 it to the ptrace call.
2724 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
2726 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2728 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
2729 it to the ptrace call.
2730 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
2732 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2734 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
2736 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
2738 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2740 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
2741 instead of inf_ptrace_target.
2742 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
2745 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2747 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
2750 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2752 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
2755 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2757 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
2760 2020-03-13 Tom Tromey <tom@tromey.com>
2762 * value.h (val_print): Don't declare.
2763 * valprint.h (val_print_array_elements)
2764 (val_print_scalar_formatted, generic_val_print): Don't declare.
2765 * valprint.c (generic_val_print_array): Take a struct value.
2766 (generic_val_print_ptr, generic_val_print_memberptr)
2767 (generic_val_print_bool, generic_val_print_int)
2768 (generic_val_print_char, generic_val_print_complex)
2769 (generic_val_print): Remove.
2770 (generic_value_print): Update.
2771 (do_val_print): Remove unused parameters. Don't call
2773 (val_print): Remove.
2774 (common_val_print): Update. Don't call value_check_printable.
2775 (val_print_scalar_formatted, val_print_array_elements): Remove.
2776 * rust-lang.c (rust_val_print): Remove.
2777 (rust_language_defn): Update.
2778 * p-valprint.c (pascal_val_print): Remove.
2779 (pascal_value_print_inner): Update.
2780 (pascal_object_print_val_fields, pascal_object_print_val):
2782 (pascal_object_print_static_field): Update.
2783 * p-lang.h (pascal_val_print): Don't declare.
2784 * p-lang.c (pascal_language_defn): Update.
2785 * opencl-lang.c (opencl_language_defn): Update.
2786 * objc-lang.c (objc_language_defn): Update.
2787 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
2788 * m2-lang.h (m2_val_print): Don't declare.
2789 * m2-lang.c (m2_language_defn): Update.
2790 * language.h (struct language_defn) <la_val_print>: Remove.
2791 * language.c (unk_lang_value_print_inner): Rename. Change
2793 (unknown_language_defn, auto_language_defn): Update.
2794 * go-valprint.c (go_val_print): Remove.
2795 * go-lang.h (go_val_print): Don't declare.
2796 * go-lang.c (go_language_defn): Update.
2797 * f-valprint.c (f_val_print): Remove.
2798 * f-lang.h (f_value_print): Don't declare.
2799 * f-lang.c (f_language_defn): Update.
2800 * d-valprint.c (d_val_print): Remove.
2801 * d-lang.h (d_value_print): Don't declare.
2802 * d-lang.c (d_language_defn): Update.
2803 * cp-valprint.c (cp_print_value_fields)
2804 (cp_print_value_fields_rtti, cp_print_value): Remove.
2805 (cp_print_static_field): Update.
2806 * c-valprint.c (c_val_print_array, c_val_print_ptr)
2807 (c_val_print_struct, c_val_print_union, c_val_print_int)
2808 (c_val_print_memberptr, c_val_print): Remove.
2809 * c-lang.h (c_val_print_array, cp_print_value_fields)
2810 (cp_print_value_fields_rtti): Don't declare.
2811 * c-lang.c (c_language_defn, cplus_language_defn)
2812 (asm_language_defn, minimal_language_defn): Update.
2813 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
2814 (ada_val_print_enum): Take a struct value.
2815 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
2816 (ada_val_print): Remove.
2817 (ada_value_print_1): Update.
2818 (printable_val_type): Remove.
2819 * ada-lang.h (ada_val_print): Don't declare.
2820 * ada-lang.c (ada_language_defn): Update.
2822 2020-03-13 Tom Tromey <tom@tromey.com>
2824 * valprint.c (do_val_print): Update.
2825 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
2827 (value_to_value_object_no_release): Declare.
2828 * python/py-value.c (value_to_value_object_no_release): New
2830 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
2832 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
2834 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
2836 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
2838 (gdbscm_apply_val_pretty_printer): Take a struct value.
2839 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
2841 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
2843 * extension-priv.h (struct extension_language_ops)
2844 <apply_val_pretty_printer>: Take a struct value.
2845 * cp-valprint.c (cp_print_value): Create a struct value.
2846 (cp_print_value): Update.
2848 2020-03-13 Tom Tromey <tom@tromey.com>
2850 * ada-valprint.c (print_field_values): Call common_val_print.
2852 2020-03-13 Tom Tromey <tom@tromey.com>
2854 * ada-valprint.c (val_print_packed_array_elements): Remove
2855 bitoffset and val parameters. Call common_val_print.
2856 (ada_val_print_string): Remove offset, address, and original_value
2858 (ada_val_print_array): Update.
2859 (ada_value_print_array): New function.
2860 (ada_value_print_1): Call it.
2862 2020-03-13 Tom Tromey <tom@tromey.com>
2864 * ada-valprint.c (ada_value_print): Use common_val_print.
2866 2020-03-13 Tom Tromey <tom@tromey.com>
2868 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
2870 2020-03-13 Tom Tromey <tom@tromey.com>
2872 * ada-valprint.c (ada_value_print_num): New function.
2873 (ada_value_print_1): Use it.
2875 2020-03-13 Tom Tromey <tom@tromey.com>
2877 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
2879 2020-03-13 Tom Tromey <tom@tromey.com>
2881 * ada-valprint.c (ada_value_print_ptr): New function.
2882 (ada_value_print_1): Use it.
2884 2020-03-13 Tom Tromey <tom@tromey.com>
2886 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
2887 call common_val_print.
2888 (ada_val_print_1): Update.
2889 (ada_value_print_1): New function.
2890 (ada_value_print_inner): Rewrite.
2892 2020-03-13 Tom Tromey <tom@tromey.com>
2894 * cp-valprint.c (cp_print_value_fields): Update.
2895 (cp_print_value): New function.
2897 2020-03-13 Tom Tromey <tom@tromey.com>
2899 * m2-valprint.c (m2_value_print_inner): Use
2900 cp_print_value_fields.
2901 * cp-valprint.c (cp_print_value_fields): New function.
2902 * c-valprint.c (c_value_print_struct): New function.
2903 (c_value_print_inner): Use c_value_print_struct.
2904 * c-lang.h (cp_print_value_fields): Declare.
2906 2020-03-13 Tom Tromey <tom@tromey.com>
2908 * c-valprint.c (c_value_print_array): New function.
2909 (c_value_print_inner): Use it.
2911 2020-03-13 Tom Tromey <tom@tromey.com>
2913 * c-valprint.c (c_value_print_memberptr): New function.
2914 (c_value_print_inner): Use it.
2916 2020-03-13 Tom Tromey <tom@tromey.com>
2918 * c-valprint.c (c_value_print_int): New function.
2919 (c_value_print_inner): Use it.
2921 2020-03-13 Tom Tromey <tom@tromey.com>
2923 * c-valprint.c (c_value_print_ptr): New function.
2924 (c_value_print_inner): Use it.
2926 2020-03-13 Tom Tromey <tom@tromey.com>
2928 * c-valprint.c (c_value_print_inner): Rewrite.
2930 2020-03-13 Tom Tromey <tom@tromey.com>
2932 * valprint.c (generic_value_print_complex): New function.
2933 (generic_value_print): Use it.
2935 2020-03-13 Tom Tromey <tom@tromey.com>
2937 * valprint.c (generic_val_print_float): Don't call
2938 val_print_scalar_formatted.
2939 (generic_val_print, generic_value_print): Update.
2941 2020-03-13 Tom Tromey <tom@tromey.com>
2943 * valprint.c (generic_value_print_char): New function
2944 (generic_value_print): Use it.
2946 2020-03-13 Tom Tromey <tom@tromey.com>
2948 * valprint.c (generic_value_print_int): New function.
2949 (generic_value_print): Use it.
2951 2020-03-13 Tom Tromey <tom@tromey.com>
2953 * valprint.c (generic_value_print_bool): New function.
2954 (generic_value_print): Use it.
2956 2020-03-13 Tom Tromey <tom@tromey.com>
2958 * valprint.c (generic_val_print_func): Simplify.
2959 (generic_val_print, generic_value_print): Update.
2961 2020-03-13 Tom Tromey <tom@tromey.com>
2963 * valprint.c (generic_val_print_flags): Remove.
2964 (generic_val_print, generic_value_print): Update.
2965 (val_print_type_code_flags): Add original_value parameter.
2967 2020-03-13 Tom Tromey <tom@tromey.com>
2969 * valprint.c (generic_val_print): Update.
2970 (generic_value_print): Update.
2971 * valprint.c (generic_val_print_enum): Don't call
2972 val_print_scalar_formatted.
2974 2020-03-13 Tom Tromey <tom@tromey.com>
2976 * valprint.c (generic_value_print): Call generic_value_print_ptr.
2977 * valprint.c (generic_value_print_ptr): New function.
2979 2020-03-13 Tom Tromey <tom@tromey.com>
2981 * valprint.c (generic_value_print): Rewrite.
2983 2020-03-13 Tom Tromey <tom@tromey.com>
2985 * p-valprint.c (pascal_object_print_value_fields)
2986 (pascal_object_print_value): New functions.
2988 2020-03-13 Tom Tromey <tom@tromey.com>
2990 * p-valprint.c (pascal_value_print_inner): Rewrite.
2992 2020-03-13 Tom Tromey <tom@tromey.com>
2994 * f-valprint.c (f_value_print_innner): Rewrite.
2996 2020-03-13 Tom Tromey <tom@tromey.com>
2998 * m2-valprint.c (m2_print_unbounded_array): New overload.
2999 (m2_print_unbounded_array): Update.
3000 (m2_print_array_contents): Take a struct value.
3001 (m2_value_print_inner): Rewrite.
3003 2020-03-13 Tom Tromey <tom@tromey.com>
3005 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
3006 (d_value_print_inner): New function.
3007 * d-lang.h (d_value_print_inner): Declare.
3008 * d-lang.c (d_language_defn): Use d_value_print_inner.
3010 2020-03-13 Tom Tromey <tom@tromey.com>
3012 * go-valprint.c (go_value_print_inner): New function.
3013 * go-lang.h (go_value_print_inner): Declare.
3014 * go-lang.c (go_language_defn): Use go_value_print_inner.
3016 2020-03-13 Tom Tromey <tom@tromey.com>
3018 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
3020 (rust_val_print): Rewrite.
3021 (rust_value_print_inner): New function, from rust_val_print.
3022 (rust_language_defn): Use rust_value_print_inner.
3024 2020-03-13 Tom Tromey <tom@tromey.com>
3026 * ada-valprint.c (ada_value_print_inner): New function.
3027 * ada-lang.h (ada_value_print_inner): Declare.
3028 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
3030 2020-03-13 Tom Tromey <tom@tromey.com>
3032 * f-valprint.c (f_value_print_innner): New function.
3033 * f-lang.h (f_value_print_innner): Declare.
3034 * f-lang.c (f_language_defn): Use f_value_print_innner.
3036 2020-03-13 Tom Tromey <tom@tromey.com>
3038 * p-valprint.c (pascal_value_print_inner): New function.
3039 * p-lang.h (pascal_value_print_inner): Declare.
3040 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
3042 2020-03-13 Tom Tromey <tom@tromey.com>
3044 * m2-valprint.c (m2_value_print_inner): New function.
3045 * m2-lang.h (m2_value_print_inner): Declare.
3046 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
3048 2020-03-13 Tom Tromey <tom@tromey.com>
3050 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
3051 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
3052 * c-valprint.c (c_value_print_inner): New function.
3053 * c-lang.h (c_value_print_inner): Declare.
3054 * c-lang.c (c_language_defn, cplus_language_defn)
3055 (asm_language_defn, minimal_language_defn): Use
3056 c_value_print_inner.
3058 2020-03-13 Tom Tromey <tom@tromey.com>
3060 * p-valprint.c (pascal_object_print_value_fields): Now static.
3061 * p-lang.h (pascal_object_print_value_fields): Don't declare.
3063 2020-03-13 Tom Tromey <tom@tromey.com>
3065 * c-valprint.c (c_val_print_array): Simplify.
3067 2020-03-13 Tom Tromey <tom@tromey.com>
3069 * valprint.c (value_print_array_elements): New function.
3070 * valprint.h (value_print_array_elements): Declare.
3072 2020-03-13 Tom Tromey <tom@tromey.com>
3074 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
3075 * mips-tdep.c (mips_print_register): Use
3076 value_print_scalar_formatted.
3078 2020-03-13 Tom Tromey <tom@tromey.com>
3080 * valprint.h (value_print_scalar_formatted): Declare.
3081 * valprint.c (value_print_scalar_formatted): New function.
3083 2020-03-13 Tom Tromey <tom@tromey.com>
3085 * valprint.h (generic_value_print): Declare.
3086 * valprint.c (generic_value_print): New function.
3088 2020-03-13 Tom Tromey <tom@tromey.com>
3090 * valprint.c (do_val_print): Call la_value_print_inner, if
3092 * rust-lang.c (rust_language_defn): Update.
3093 * p-lang.c (pascal_language_defn): Update.
3094 * opencl-lang.c (opencl_language_defn): Update.
3095 * objc-lang.c (objc_language_defn): Update.
3096 * m2-lang.c (m2_language_defn): Update.
3097 * language.h (struct language_defn) <la_value_print_inner>: New
3099 * language.c (unknown_language_defn, auto_language_defn): Update.
3100 * go-lang.c (go_language_defn): Update.
3101 * f-lang.c (f_language_defn): Update.
3102 * d-lang.c (d_language_defn): Update.
3103 * c-lang.c (c_language_defn, cplus_language_defn)
3104 (asm_language_defn, minimal_language_defn): Update.
3105 * ada-lang.c (ada_language_defn): Update.
3107 2020-03-13 Tom Tromey <tom@tromey.com>
3109 * c-valprint.c (c_value_print): Use common_val_print.
3111 2020-03-13 Tom Tromey <tom@tromey.com>
3113 * cp-valprint.c (cp_print_static_field): Use common_val_print.
3115 2020-03-13 Tom Tromey <tom@tromey.com>
3117 * f-valprint.c (f77_print_array_1, f_val_print): Use
3120 2020-03-13 Tom Tromey <tom@tromey.com>
3122 * riscv-tdep.c (riscv_print_one_register_info): Use
3125 2020-03-13 Tom Tromey <tom@tromey.com>
3127 * mi/mi-main.c (output_register): Use common_val_print.
3129 2020-03-13 Tom Tromey <tom@tromey.com>
3131 * infcmd.c (default_print_one_register_info): Use
3134 2020-03-13 Tom Tromey <tom@tromey.com>
3136 * valprint.h (common_val_print_checked): Declare.
3137 * valprint.c (common_val_print_checked): New function.
3138 * stack.c (print_frame_arg): Use common_val_print_checked.
3140 2020-03-13 Tom Tromey <tom@tromey.com>
3142 * valprint.c (do_val_print): New function, from val_print.
3143 (val_print): Use do_val_print.
3144 (common_val_print): Use do_val_print.
3146 2020-03-13 Tom Tromey <tom@tromey.com>
3148 * valprint.c (value_print): Use scoped_value_mark.
3150 2020-03-13 Tom de Vries <tdevries@suse.de>
3153 * psymtab.c (partial_symtab::partial_symtab): Don't set
3154 globals_offset and statics_offset. Push element onto
3155 current_global_psymbols and current_static_psymbols stacks.
3156 (concat): New function.
3157 (end_psymtab_common): Set globals_offset and statics_offset. Pop
3158 element from current_global_psymbols and current_static_psymbols
3159 stacks. Concat popped elements to global_psymbols and
3161 (add_psymbol_to_list): Use current_global_psymbols and
3162 current_static_psymbols stacks.
3163 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
3164 current_static_psymbols fields.
3166 2020-03-12 Christian Biesinger <cbiesinger@google.com>
3168 * corelow.c (sniff_core_bfd): Remove.
3169 (class core_target) <m_core_vec>: Remove.
3170 (core_target::core_target): Update.
3171 (core_file_fns): Remove.
3172 (deprecated_add_core_fns): Remove.
3173 (default_core_sniffer): Remove.
3174 (sniff_core_bfd): Remove.
3175 (default_check_format): Remove.
3176 (gdb_check_format): Remove.
3177 (core_target_open): Update.
3178 (core_target::get_core_register_section): Update.
3179 (get_core_registers_cb): Update.
3180 (core_target::fetch_registers): Update.
3181 * gdbcore.h (struct core_fns): Remove.
3182 (deprecated_add_core_fns): Remove.
3183 (default_core_sniffer): Remove.
3184 (default_check_format): Remove.
3186 2020-03-12 Tom Tromey <tom@tromey.com>
3188 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
3190 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
3192 2020-03-12 Tom Tromey <tom@tromey.com>
3194 * remote.c (remote_target::download_tracepoint)
3195 (remote_target::enable_tracepoint)
3196 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
3197 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
3200 2020-03-12 Tom Tromey <tom@tromey.com>
3202 * symfile-mem.c: Update CORE_ADDR size assert.
3204 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
3206 * selftest.m4: Move to gdbsupport/.
3207 * acinclude.m4: Update path to selftest.m4.
3209 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
3211 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
3212 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
3213 gdbarch-selfselftests.c and selftest-arch.c.
3214 (SUBDIR_UNITTESTS_OBS): Rename to...
3215 (SELFTESTS_OBS): ... this.
3216 (COMMON_SFILES): Remove disasm-selftests.c and
3217 gdbarch-selftests.c.
3218 * configure.ac: Don't add selftest-arch.{c,o} to
3220 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
3221 preprocessor conditions.
3223 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
3225 * configure.ac: Don't source bfd/development.sh.
3226 * selftest.m4: Modify comment.
3227 * configure: Re-generate.
3229 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
3231 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
3232 not "true" or "false".
3233 * configure: Re-generate.
3235 2020-03-12 Christian Biesinger <cbiesinger@google.com>
3237 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
3238 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
3239 renamed to arm_nbsd_supply_gregset.
3240 (fetch_register): Update to call arm_nbsd_supply_gregset.
3241 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
3242 (arm_netbsd_nat_target::fetch_registers): Update.
3243 (fetch_elfcore_registers): Removed.
3244 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
3245 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
3246 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
3247 not require NetBSD system headers.
3248 (arm_nbsd_regset): New struct.
3249 (arm_nbsd_iterate_over_regset_sections): New function.
3250 (arm_netbsd_init_abi_common): Updated to call
3251 set_gdbarch_iterate_over_regset_sections.
3252 * arm-nbsd-tdep.h: New file.
3254 2020-03-11 Kevin Buettner <kevinb@redhat.com>
3256 * symtab.c (find_pc_sect_line): Add check which prevents infinite
3259 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
3261 * configure: Re-generate.
3263 2020-03-11 Tom Tromey <tromey@adacore.com>
3265 * ada-typeprint.c (print_choices): Fix comment.
3267 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
3269 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
3270 previous item in the list, when the list has no items.
3272 2020-03-11 Tom de Vries <tdevries@suse.de>
3274 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
3275 PROP_LOCLIST handling code.
3277 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
3279 * buildsym-legacy.c (record_line): Pass extra parameter to
3281 * buildsym.c (buildsym_compunit::record_line): Take an extra
3282 parameter, reduce duplication in the line table, and record the
3283 is_stmt flag in the line table.
3284 * buildsym.h (buildsym_compunit::record_line): Add extra
3286 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
3287 non-statement lines.
3288 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
3289 this to the symtab builder.
3290 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
3291 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
3292 through to dwarf_record_line_1.
3293 * infrun.c (process_event_stop_test): When stepping, don't stop at
3294 a non-statement instruction, and only refresh the step info when
3295 we land in the middle of a line's range. Also add an extra
3297 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
3299 * record-btrace.c (btrace_find_line_range): Only record lines
3300 marked as is-statement.
3301 * stack.c (frame_show_address): Show the frame address if we are
3302 in a non-statement sal.
3303 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
3304 (maintenance_print_one_line_table): Print a header for the is_stmt
3305 column, and include is_stmt information in the output.
3306 * symtab.c (find_pc_sect_line): Find lines marked as statements in
3307 preference to non-statements.
3308 (find_pcs_for_symtab_line): Prefer is-statement entries.
3309 (find_line_common): Likewise.
3310 * symtab.h (struct linetable_entry): Add is_stmt field.
3311 (struct symtab_and_line): Likewise.
3312 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
3313 arranging the line table.
3315 2020-03-07 Tom de Vries <tdevries@suse.de>
3317 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
3320 2020-03-07 Tom Tromey <tom@tromey.com>
3322 * valops.c (value_literal_complex): Remove obsolete comment.
3323 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
3326 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
3328 * infrun.h: Forward-declare thread_info.
3329 (set_step_info): Add thread_info parameter, add doc.
3330 * infrun.c (set_step_info): Add thread_info parameter, move doc
3332 * infrun.c (process_event_stop_test): Pass thread to
3334 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
3336 (prepare_one_step): Add thread_info parameter, pass it to
3337 set_step_frame and prepare_one_step (recursive) call.
3338 (step_1): Pass thread to prepare_one_step call.
3339 (step_command_fsm::should_stop): Pass thread to
3341 (until_next_fsm): Pass thread to set_step_frame call.
3342 (finish_command): Pass thread to set_step_info call.
3344 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
3346 * windows-tdep.c (windows_solib_create_inferior_hook):
3347 Check if inferior is running.
3349 2020-03-06 Tom de Vries <tdevries@suse.de>
3351 * NEWS: Fix "the the".
3354 2020-03-06 Tom de Vries <tdevries@suse.de>
3356 * psymtab.c (psymtab_to_symtab): Don't print "done.".
3358 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3360 * .dir-locals.el: Add a comment referencing the other copies of
3363 2020-03-05 John Baldwin <jhb@FreeBSD.org>
3365 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
3368 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3370 * .gitattributes: New file.
3372 2020-03-04 Tom Tromey <tom@tromey.com>
3374 * symmisc.c (print_symbol_bcache_statistics)
3375 (print_objfile_statistics): Update.
3376 * symfile.c (allocate_symtab): Use intern.
3377 * psymtab.c (partial_symtab::partial_symtab): Use intern.
3378 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
3379 macro_cache>: Remove.
3380 <string_cache>: New member.
3381 (struct objfile) <intern>: New methods.
3382 * elfread.c (elf_symtab_read): Use intern.
3383 * dwarf2/read.c (fixup_go_packaging): Intern package name.
3384 (dwarf2_compute_name, dwarf2_physname)
3385 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
3387 (guess_partial_die_structure_name): Update.
3388 (partial_die_info::fixup): Intern name.
3389 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
3391 (dwarf2_name): Intern name. Update.
3392 * buildsym.c (buildsym_compunit::get_macro_table): Use
3395 2020-03-04 Tom Tromey <tom@tromey.com>
3397 * jit.c (bfd_open_from_target_memory): Make "target" const.
3398 * corefile.c (gnutarget): Now const.
3399 * gdbcore.h (gnutarget): Now const.
3401 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
3403 * NEWS: Mention support for WOW64 processes.
3404 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
3405 (amd64_windows_segment_register_p): Remove static.
3406 (_initialize_amd64_windows_nat): Update.
3407 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
3408 * i386-windows-nat.c (context_offset): Update.
3409 (i386_mappings): Rename and remove static.
3410 (i386_windows_segment_register_p): Remove static.
3411 (_initialize_i386_windows_nat): Update.
3412 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
3413 (STATUS_WX86_SINGLE_STEP): New macro.
3414 (EnumProcessModulesEx): New macro.
3415 (Wow64SuspendThread): New macro.
3416 (Wow64GetThreadContext): New macro.
3417 (Wow64SetThreadContext): New macro.
3418 (Wow64GetThreadSelectorEntry): New macro.
3419 (windows_set_context_register_offsets): Add static.
3420 (windows_set_segment_register_p): Likewise.
3421 (windows_add_thread): Adapt for WOW64 processes.
3422 (windows_fetch_one_register): Likewise.
3423 (windows_nat_target::fetch_registers): Likewise.
3424 (windows_store_one_register): Likewise.
3425 (display_selector): Likewise.
3426 (display_selectors): Likewise.
3427 (handle_exception): Likewise.
3428 (windows_continue): Likewise.
3429 (windows_nat_target::resume): Likewise.
3430 (windows_add_all_dlls): Likewise.
3431 (do_initial_windows_stuff): Likewise.
3432 (windows_nat_target::attach): Likewise.
3433 (windows_get_exec_module_filename): Likewise.
3434 (windows_nat_target::create_inferior): Likewise.
3435 (windows_xfer_siginfo): Likewise.
3436 (_initialize_loadable): Initialize Wow64SuspendThread,
3437 Wow64GetThreadContext, Wow64SetThreadContext,
3438 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
3439 * windows-nat.h (windows_set_context_register_offsets):
3441 (windows_set_segment_register_p): Likewise.
3442 (i386_windows_segment_register_p): Add declaration.
3443 (amd64_windows_segment_register_p): Likewise.
3445 2020-03-04 Luis Machado <luis.machado@linaro.org>
3447 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
3448 in "info registers" for AArch64/ARM.
3450 The change caused "info registers" to not print GPR's.
3454 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
3456 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
3457 when reg->group is empty and reggroup is not.
3459 2020-03-03 Tom Tromey <tromey@adacore.com>
3461 * dwarf2/frame.c (struct dwarf2_frame_cache)
3462 <checked_tailcall_bottom, entry_cfa_sp_offset,
3463 entry_cfa_sp_offset_p>: Remove members.
3464 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
3465 (dwarf2_frame_prev_register): Don't call
3466 dwarf2_tailcall_sniffer_first.
3467 (dwarf2_append_unwinders): Don't append tailcall unwinder.
3468 * frame-unwind.c (add_unwinder): New fuction.
3469 (frame_unwind_init): Use it. Add tailcall unwinder.
3471 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
3472 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3474 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
3475 value should be printed as true.
3477 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
3479 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
3480 (windows_init_abi): Set and use windows_so_ops.
3482 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
3484 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
3485 when verifying if dealing with a convenience variable.
3487 2020-03-03 Luis Machado <luis.machado@linaro.org>
3489 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
3491 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3493 * infrun.c (gdbarch_supports_displaced_stepping): New.
3494 (use_displaced_stepping): Break up conditions in smaller pieces.
3495 Use gdbarch_supports_displaced_stepping.
3496 (displaced_step_prepare_throw): Use
3497 gdbarch_supports_displaced_stepping.
3499 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
3501 * NEWS: Mention new behaviour of the history filename.
3502 * top.c (write_history_p): Add comment.
3503 (show_write_history_p): Add header comment, give a different
3504 message when history writing is on, but the history filename is
3506 (history_filename): Add comment.
3507 (history_filename_empty): New function.
3508 (show_history_filename): Add header comment, give a different
3509 message when the filename is empty.
3510 (init_history): Compare history_filename against nullptr, and only
3511 read history if the filename is not empty.
3512 (set_history_filename): Add header comment, and only make
3513 non-empty filenames absolute.
3514 (init_main): Make the filename argument to 'set history filename'
3517 2020-03-02 Christian Biesinger <cbiesinger@google.com>
3519 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
3520 (arm_supply_vfpregset): ...this, and update to use VFP registers.
3521 (fetch_fp_register): Update.
3522 (fetch_fp_regs): Update.
3523 (store_fp_register): Update.
3524 (store_fp_regs): Update.
3525 (arm_netbsd_nat_target::read_description): New function.
3526 (fetch_elfcore_registers): Update.
3528 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
3530 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
3531 general_thread if the stop reply is missing a thread-id.
3532 (remote_target::process_stop_reply): Use the first non-exited
3533 thread if the target didn't pass a thread-id.
3534 * infrun.c (do_target_wait): Move call to
3535 switch_to_inferior_no_thread to ....
3536 (do_target_wait_1): ... here.
3538 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
3540 * debuginfod-support.c: Include defs.h first.
3542 2020-02-28 Tom de Vries <tdevries@suse.de>
3544 * symfile.c (set_initial_language): Use default language for lookup.
3546 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
3548 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
3549 reader variable, pass `this` to read_cutu_die_from_dwo.
3551 2020-02-27 Aaron Merey <amerey@redhat.com>
3553 * source.c (open_source_file): Check for nullptr when computing
3556 2020-02-27 Tom Tromey <tromey@adacore.com>
3558 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
3560 (dwarf2_add_field): Don't update nfields.
3561 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
3563 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3565 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
3568 2020-02-26 Tom Tromey <tom@tromey.com>
3570 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
3571 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
3572 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
3573 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
3576 2020-02-26 Tom Tromey <tom@tromey.com>
3578 * dwarf2/index-write.c (psym_index_map): Change type.
3579 (add_address_entry_worker, write_one_signatured_type)
3580 (recursively_count_psymbols, recursively_write_psymbols)
3581 (class debug_names, psyms_seen_size, write_gdbindex)
3582 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
3584 2020-02-26 Aaron Merey <amerey@redhat.com>
3586 * Makefile.in: Handle optional debuginfod support.
3588 * README: Add --with-debuginfod summary.
3589 * config.in: Regenerate.
3590 * configure: Regenerate.
3591 * configure.ac: Handle optional debuginfod support.
3592 * debuginfod-support.c: debuginfod helper functions.
3593 * debuginfod-support.h: Ditto.
3594 * doc/gdb.texinfo: Add --with-debuginfod to configure options
3596 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
3597 when a dwz file cannot be found.
3598 * elfread.c (elf_symfile_read): Query debuginfod servers when a
3599 debuginfo file cannot be found.
3600 * source.c (open_source_file): Query debuginfod servers when a
3601 source file cannot be found.
3602 * top.c (print_gdb_configuration): Include
3603 --{with,without}-debuginfod in the output.
3605 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
3607 * thread.c (thr_try_catch_cmd): Print thread name.
3609 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
3611 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
3612 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3613 dwarf2_fetch_die_type_sect_off): Move to...
3614 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3615 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3616 dwarf2_fetch_die_type_sect_off): ... here.
3617 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3618 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3619 dwarf2_fetch_die_type_sect_off): Move doc to header file.
3621 2020-02-26 Tom de Vries <tdevries@suse.de>
3624 * symfile.c (set_initial_language): Exit-early if
3625 language_mode == language_mode_manual.
3627 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
3629 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
3630 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
3631 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
3633 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3635 * gdbtypes.c (create_array_type_with_stride): Handle negative
3637 * valarith.c (value_subscripted_rvalue): Likewise.
3639 2020-02-25 Luis Machado <luis.machado@linaro.org>
3641 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
3643 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
3645 * loc.h (dwarf2_get_die_type): Move to...
3646 * read.h (dwarf2_get_die_type): ... here.
3647 * read.c (dwarf2_get_die_type): Move doc to header.
3649 2020-02-25 Joel Brobecker <brobecker@adacore.com>
3651 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
3652 'gnulib/Makefile.in' to the list.
3654 2020-02-24 Tom Tromey <tom@tromey.com>
3656 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
3658 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
3661 2020-02-24 Tom Tromey <tom@tromey.com>
3663 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
3665 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
3666 (dw2_do_instantiate_symtab, dw2_get_file_names)
3667 (build_type_psymtab_dependencies, load_full_type_unit): Update.
3669 2020-02-24 Tom Tromey <tom@tromey.com>
3671 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
3672 make_scoped_restore.
3673 (dwarf2_psymtab::read_symtab): Don't clear
3674 reading_partial_symbols.
3676 2020-02-24 Tom de Vries <tdevries@suse.de>
3679 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
3681 2020-02-24 Tom de Vries <tdevries@suse.de>
3683 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
3684 commands layout next/prev/regs.
3686 2020-02-22 Tom Tromey <tom@tromey.com>
3688 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
3689 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
3691 2020-02-22 Tom Tromey <tom@tromey.com>
3693 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
3695 2020-02-22 Tom Tromey <tom@tromey.com>
3697 * tui/tui-win.c (_initialize_tui_win): Add usage text.
3698 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
3699 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
3700 * tui/tui.c (_initialize_tui): Add usage text.
3702 2020-02-22 Tom Tromey <tom@tromey.com>
3704 * tui/tui-win.c (tui_set_focus_command)
3705 (tui_set_win_height_command): Use error_no_arg.
3706 (_initialize_tui_win): Update help text.
3707 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
3709 2020-02-22 Tom Tromey <tom@tromey.com>
3711 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
3712 * tui/tui-disasm.h (struct tui_disasm_window)
3713 <display_start_addr>: Declare.
3714 * tui/tui-source.h (struct tui_source_window)
3715 <display_start_addr>: Declare.
3716 * tui/tui-winsource.h (struct tui_source_window_base)
3717 <show_source_line, display_start_addr>: New methods.
3718 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
3719 Rename and move to protected section.
3720 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
3721 (tui_source_window_base::do_erase_source_content): Update.
3722 (tui_source_window_base::show_source_line): Now a method.
3723 (tui_source_window_base::show_source_content)
3724 (tui_source_window_base::tui_source_window_base)
3725 (tui_source_window_base::rerender)
3726 (tui_source_window_base::refill)
3727 (tui_source_window_base::do_scroll_horizontal)
3728 (tui_source_window_base::set_is_exec_point_at)
3729 (tui_source_window_base::update_breakpoint_info)
3730 (tui_source_window_base::update_exec_info): Update.
3731 * tui/tui-source.c (tui_source_window::set_contents)
3732 (tui_source_window::showing_source_p)
3733 (tui_source_window::do_scroll_vertical)
3734 (tui_source_window::location_matches_p)
3735 (tui_source_window::line_is_displayed): Update.
3736 (tui_source_window::display_start_addr): New method.
3737 * tui/tui-disasm.c (tui_disasm_window::set_contents)
3738 (tui_disasm_window::do_scroll_vertical)
3739 (tui_disasm_window::location_matches_p): Update.
3740 (tui_disasm_window::display_start_addr): New method.
3742 2020-02-22 Tom Tromey <tom@tromey.com>
3744 * NEWS: Add entry for gdb.register_window_type.
3745 * tui/tui-layout.h (window_factory): New typedef.
3746 (tui_register_window): Declare.
3747 * tui/tui-layout.c (saved_tui_windows): New global.
3748 (tui_apply_current_layout): Use it.
3749 (tui_register_window): New function.
3750 * python/python.c (do_start_initialization): Call
3751 gdbpy_initialize_tui.
3752 (python_GdbMethods): Add "register_window_type" function.
3753 * python/python-internal.h (gdbpy_register_tui_window)
3754 (gdbpy_initialize_tui): Declare.
3755 * python/py-tui.c: New file.
3756 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
3758 2020-02-22 Tom Tromey <tom@tromey.com>
3760 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
3762 2020-02-22 Tom Tromey <tom@tromey.com>
3764 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
3765 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
3766 * tui/tui-data.c (tui_set_win_with_focus): Remove.
3767 (tui_set_win_focus_to): Move from tui-win.c.
3769 2020-02-22 Tom Tromey <tom@tromey.com>
3771 * tui/tui-layout.c (make_standard_window, get_locator_window): New
3773 (known_window_types): New global.
3774 (tui_get_window_by_name): Reimplement.
3775 (initialize_known_windows): New function.
3776 (validate_window_name): Rewrite.
3777 (_initialize_tui_layout): Call initialize_known_windows.
3779 2020-02-22 Tom Tromey <tom@tromey.com>
3781 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
3783 * tui/tui-winsource.h (struct tui_source_window_base)
3784 <tui_source_window_base>: Remove parameter.
3785 * tui/tui-winsource.c
3786 (tui_source_window_base::tui_source_window_base): Remove
3788 (tui_source_window_base::refill): Update.
3789 * tui/tui-stack.h (struct tui_locator_window)
3790 <tui_locator_window>: Update.
3791 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
3792 Default the constructor.
3793 * tui/tui-regs.h (struct tui_data_item_window)
3794 <tui_data_item_window>: Default the constructor.
3795 (struct tui_data_window) <tui_data_window>: Likewise.
3796 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
3797 Default the constructor.
3798 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
3799 Default the constructor.
3801 (struct tui_win_info) <tui_win_info>: Default the constructor.
3802 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
3803 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
3804 Default the constructor.
3806 2020-02-22 Tom Tromey <tom@tromey.com>
3808 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
3809 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
3810 * tui/tui-win.c (tui_resize_all): Don't call
3811 tui_delete_invisible_windows.
3812 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
3814 (tui_set_layout): Update.
3815 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
3816 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
3817 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
3819 2020-02-22 Tom Tromey <tom@tromey.com>
3821 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
3824 2020-02-22 Tom Tromey <tom@tromey.com>
3826 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
3828 2020-02-22 Tom Tromey <tom@tromey.com>
3830 * tui/tui-winsource.h (struct tui_source_window_iterator)
3831 <inner_iterator>: New etytypedef.
3832 <tui_source_window_iterator>: Take "end" parameter.
3833 <tui_source_window_iterator>: Take iterator.
3834 <operator*, advance>: Update.
3835 <m_iter>: Change type.
3837 (struct tui_source_windows) <begin, end>: Update.
3838 * tui/tui-layout.c (tui_windows): New global.
3839 (tui_apply_current_layout): Clear tui_windows.
3840 (tui_layout_window::apply): Update tui_windows.
3841 * tui/tui-data.h (tui_windows): Declare.
3842 (all_tui_windows): Now inline function.
3843 (class tui_window_iterator, struct all_tui_windows): Remove.
3845 2020-02-22 Tom Tromey <tom@tromey.com>
3848 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
3849 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
3851 (class tui_layout_window) <get_sizes>: Likewise.
3852 (class tui_layout_split) <tui_layout_split>: Add "vertical"
3854 <get_sizes>: Add "height" argument.
3855 <m_vertical>: New field.
3856 * tui/tui-layout.c (tui_layout_split::clone): Update.
3857 (tui_layout_split::get_sizes): Add "height" argument.
3858 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
3859 (tui_new_layout_command): Parse "-horizontal".
3860 (_initialize_tui_layout): Update help string.
3861 (tui_layout_split::specification): Add "-horizontal" when needed.
3862 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
3864 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
3867 2020-02-22 Tom Tromey <tom@tromey.com>
3869 * tui/tui-layout.h (enum tui_adjust_result): New.
3870 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
3871 (class tui_layout_window) <adjust_size>: Return
3872 tui_adjust_result. Rewrite.
3873 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
3874 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
3876 2020-02-22 Tom Tromey <tom@tromey.com>
3878 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
3879 parameter and return types.
3880 (class tui_layout_base) <specification>: Add "depth".
3881 (class tui_layout_window) <specification>: Add "depth".
3882 (class tui_layout_split) <specification>: Add "depth".
3883 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
3885 (tui_new_layout_command): Parse sub-layouts.
3886 (_initialize_tui_layout): Update help string.
3887 (tui_layout_window::specification): Add "depth".
3888 (add_layout_command): Update.
3890 2020-02-22 Tom Tromey <tom@tromey.com>
3892 * NEWS: Add "tui new-layout" item.
3893 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
3894 Add new-layout command to help text.
3895 (validate_window_name): New function.
3896 (tui_new_layout_command): New function.
3897 (_initialize_tui_layout): Register "new-layout".
3898 (tui_layout_window::specification): New method.
3899 (tui_layout_window::specification): New method.
3900 * tui/tui-layout.h (class tui_layout_base) <specification>: New
3902 (class tui_layout_window) <specification>: New method.
3903 (class tui_layout_split) <specification>: New method.
3905 2020-02-22 Tom Tromey <tom@tromey.com>
3907 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
3908 * tui/tui-win.c (window_name_completer): Update comment.
3909 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
3911 (class tui_layout_window) <replace_window>: Likewise.
3912 (class tui_layout_split) <replace_window>: Likewise.
3913 (tui_set_layout): Don't declare.
3914 (tui_set_initial_layout): Declare function.
3915 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
3916 (asm_regs_layout): New globals.
3917 (tui_current_layout, show_layout): Remove.
3918 (tui_set_layout, tui_add_win_to_layout): Rewrite.
3919 (find_layout, tui_apply_layout): New function.
3920 (layout_completer): Remove.
3921 (tui_next_layout): Reimplement.
3922 (tui_next_layout_command): New function.
3923 (tui_set_initial_layout, tui_prev_layout_command): New functions.
3924 (tui_regs_layout): Reimplement.
3925 (tui_regs_layout_command): New function.
3926 (extract_display_start_addr): Rewrite.
3927 (next_layout, prev_layout): Remove.
3928 (tui_layout_window::replace_window): New method.
3929 (tui_layout_split::replace_window): New method.
3930 (destroy_layout): New function.
3931 (layout_list): New global.
3932 (add_layout_command): New function.
3933 (initialize_layouts): Update.
3934 (tui_layout_command): New function.
3935 (_initialize_tui_layout): Install "layout" commands.
3936 * tui/tui-data.h (enum tui_layout_type): Remove.
3937 (tui_current_layout): Don't declare.
3939 2020-02-22 Tom Tromey <tom@tromey.com>
3941 * tui/tui-regs.c (tui_reg_layout): Remove.
3942 (tui_reg_command): Use tui_regs_layout.
3943 * tui/tui-layout.h (tui_reg_command): Declare.
3944 * tui/tui-layout.c (tui_reg_command): New function.
3946 2020-02-22 Tom Tromey <tom@tromey.com>
3948 * tui/tui.c (tui_rl_delete_other_windows): Call
3949 tui_remove_some_windows.
3950 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
3952 (class tui_layout_window) <remove_windows>: New method.
3953 (class tui_layout_split) <remove_windows>: Declare.
3954 (tui_remove_some_windows): Declare.
3955 * tui/tui-layout.c (tui_remove_some_windows): New function.
3956 (tui_layout_split::remove_windows): New method.
3958 2020-02-22 Tom Tromey <tom@tromey.com>
3960 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
3961 * tui/tui-layout.h (tui_next_layout): Declare.
3962 * tui/tui-layout.c (tui_next_layout): New function.
3964 2020-02-22 Tom Tromey <tom@tromey.com>
3966 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
3967 correct coordinates.
3969 2020-02-22 Tom Tromey <tom@tromey.com>
3971 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
3972 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
3975 2020-02-22 Tom Tromey <tom@tromey.com>
3977 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
3978 TUI_DISASM_WIN, not tui_win_list.
3980 2020-02-22 Tom Tromey <tom@tromey.com>
3982 * valprint.c (generic_val_print_enum_1)
3983 (val_print_type_code_flags): Style member names.
3984 * rust-lang.c (val_print_struct, rust_print_enum)
3985 (rust_print_struct_def, rust_internal_print_type): Style member
3987 * p-valprint.c (pascal_object_print_value_fields): Style member
3988 names. Only call fprintf_symbol_filtered for static members.
3989 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
3990 * f-valprint.c (f_val_print): Style member names.
3991 * f-typeprint.c (f_type_print_base): Style member names.
3992 * cp-valprint.c (cp_print_value_fields): Style member names. Only
3993 call fprintf_symbol_filtered for static members.
3994 (cp_print_class_member): Style member names.
3995 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
3997 * ada-valprint.c (ada_print_scalar): Style enum names.
3998 (ada_val_print_enum): Likewise.
3999 * ada-typeprint.c (print_enum_type): Style enum names.
4001 2020-02-21 Tom Tromey <tom@tromey.com>
4003 * psympriv.h (struct partial_symtab): Update comment.
4005 2020-02-21 Tom Tromey <tromey@adacore.com>
4007 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
4010 2020-02-21 Tom de Vries <tdevries@suse.de>
4013 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
4014 if dependencies[i]->user != NULL.
4016 2020-02-21 Ali Tamur <tamur@google.com>
4018 * dwarf2/read.c (dwarf2_name): Add null check.
4020 2020-02-20 Tom Tromey <tom@tromey.com>
4022 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
4023 ">=", in binary search.
4024 (dwarf2_find_containing_comp_unit): New overload.
4025 (run_test): New self-test.
4026 (_initialize_dwarf2_read): Register new test.
4028 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
4030 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
4031 * riscv-tdep.h: Likewise.
4032 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
4034 * features/riscv/64bit-csr.xml: Regenerated.
4036 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4037 Tom Tromey <tom@tromey.com>
4039 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
4040 of 'fputc_unfiltered'.
4041 (putchar_unfiltered): Call 'fputc_unfiltered'.
4042 (fputc_unfiltered): Call 'fputs_unfiltered'.
4044 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
4046 * config.in: Regenerate.
4047 * configure: Regenerate.
4048 * configure.ac: Add --with-python-libdir option.
4049 * main.c: Use WITH_PYTHON_LIBDIR.
4051 2020-02-19 Tom Tromey <tom@tromey.com>
4053 * symtab.c (general_symbol_info::compute_and_set_names): Use
4054 obstack_strndup. Simplify call to symbol_set_demangled_name.
4056 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
4058 * dwarf2/read.c (allocate_signatured_type_table,
4059 allocate_dwo_unit_table, allocate_type_unit_groups_table,
4060 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
4061 Remove objfile parameter, update all callers.
4063 2020-02-19 Doug Evans <dje@google.com>
4066 * rust-lang.c (rust_print_enum): Apply embedded_offset to
4067 rust_enum_variant calculation.
4069 2020-02-19 Tom Tromey <tromey@adacore.com>
4071 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
4073 2020-02-19 Tom Tromey <tromey@adacore.com>
4075 * ada-lang.c (cache_symbol): Use obstack_strdup.
4077 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4079 * configure: Regenerate.
4081 2020-02-19 Tom Tromey <tromey@adacore.com>
4083 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
4086 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
4088 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
4090 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
4092 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
4093 if GDBSERVER is not defined.
4094 (riscv_tdesc_cache): Likewise, also store const target_desc.
4095 (STATIC_IN_GDB): Define.
4096 (riscv_create_target_description): Update declaration with
4098 (riscv_lookup_target_description): New function, only define if
4099 GDBSERVER is not defined.
4100 * arch/riscv.h (riscv_create_target_description): Declare only
4101 when GDBSERVER is defined.
4102 (riscv_lookup_target_description): New declaration when GDBSERVER
4104 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
4105 (riscv_linux_read_features): ...this, and return
4106 riscv_gdbarch_features instead of target_desc.
4107 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
4108 (riscv_linux_read_description): Rename to...
4109 (riscv_linux_read_features): ...this.
4110 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
4111 Update to use riscv_gdbarch_features and
4112 riscv_lookup_target_description.
4113 * riscv-tdep.c (riscv_find_default_target_description): Use
4114 riscv_lookup_target_description instead of
4115 riscv_create_target_description.
4117 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
4119 * valprint.c (generic_val_print_enum_1): When printing a flag
4120 enum with value 0 and there is no enumerator with value 0, print
4121 just "0" instead of "(unknown: 0x0)".
4123 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
4125 * valprint.c (generic_val_print_enum_1): Print unknown part of
4128 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
4130 * dwarf2/read.c (update_enumeration_type_from_children): Allow
4131 flag enums to contain duplicate enumerators.
4132 * valprint.c (generic_val_print_enum_1): Update comment.
4134 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
4136 * dwarf2/read.c: Include "count-one-bits.h".
4137 (update_enumeration_type_from_children): If an enumerator has
4138 multiple bits set, don't treat the enumeration as a "flag enum".
4139 * valprint.c (generic_val_print_enum_1): Assert that enumerators
4140 of flag enums have 0 or 1 bit set.
4142 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
4144 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
4146 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
4147 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
4148 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
4149 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
4150 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
4152 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
4154 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
4156 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
4158 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
4159 displaced_step_closure_up.
4160 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
4161 (struct displaced_step_closure_up):
4162 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
4163 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
4164 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
4166 * gdbarch.sh (displaced_step_copy_insn): Likewise.
4167 * gdbarch.c, gdbarch.h: Re-generate.
4168 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
4169 displaced_step_closure_up.
4170 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
4171 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
4172 * infrun.h (displaced_step_closure_up): New type alias.
4173 (struct displaced_step_inferior_state) <step_closure>: Change
4174 type to displaced_step_closure_up.
4175 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
4176 displaced_step_closure_up.
4177 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
4179 2020-02-14 Tom Tromey <tom@tromey.com>
4181 * minidebug.c (gnu_debug_key): New global.
4182 (find_separate_debug_file_in_section): Use it.
4184 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
4186 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
4188 * gdbarch.c: Re-generate.
4189 * gdbarch.h: Re-generate.
4190 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
4192 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
4193 type to std::unique_ptr.
4194 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
4195 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
4196 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
4197 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
4198 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
4199 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
4200 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
4201 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
4202 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
4204 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
4206 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
4208 (displaced_step_clear): Rename to...
4209 (displaced_step_reset): ... this. Just call displaced->reset ().
4210 (displaced_step_clear_cleanup): Rename to...
4211 (displaced_step_reset_cleanup): ... this.
4212 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
4213 (displaced_step_fixup): Likewise.
4214 (resume_1): Likewise.
4215 (handle_inferior_event): Restore child's memory before calling
4216 displaced_step_fixup on the parent.
4217 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
4219 <step_closure>: Change type to std::unique_ptr.
4221 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
4223 * arm-tdep.c: Include count-one-bits.h.
4224 (cleanup_block_store_pc): Use count_one_bits.
4225 (cleanup_block_load_pc): Use count_one_bits.
4226 (arm_copy_block_xfer): Use count_one_bits.
4227 (thumb2_copy_block_xfer): Use count_one_bits.
4228 (thumb_copy_pop_pc_16bit): Use count_one_bits.
4229 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
4230 (thumb_get_next_pcs_raw): Use count_one_bits.
4231 (arm_get_next_pcs_raw): Use count_one_bits_l.
4232 * arch/arm.c (bitcount): Remove.
4233 * arch/arm.h (bitcount): Remove.
4235 2020-02-14 Tom Tromey <tromey@adacore.com>
4237 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
4239 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
4240 * dwarf2/loc.c (call_site_find_chain_1): Return
4242 (call_site_find_chain): Likewise.
4244 2020-02-14 Richard Biener <rguenther@suse.de>
4246 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
4247 on expression with division operators.
4249 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4251 * MAINTAINERS (Write After Approval): Adding myself.
4253 2020-02-12 Tom Tromey <tom@tromey.com>
4255 * event-loop.c (event_data, gdb_event, event_handler_func):
4258 2020-02-12 Tom Tromey <tom@tromey.com>
4260 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
4261 (dwarf2_frame_objfile_data): Add comment.
4262 (find_comp_unit, set_comp_unit): New functions.
4263 (dwarf2_frame_find_fde): Use find_comp_unit.
4264 (dwarf2_build_frame_info): Use set_comp_unit.
4266 2020-02-12 Tom Tromey <tom@tromey.com>
4268 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
4269 (comp_unit): Don't initialize objfile.
4270 (execute_cfa_program): Add text_offset parameter.
4271 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
4272 (dwarf2_frame_cache): Update.
4273 (dwarf2_build_frame_info): Don't set "objfile" member.
4275 2020-02-12 Tom Tromey <tom@tromey.com>
4277 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
4278 (decode_frame_entry): Likewise.
4279 (dwarf2_build_frame_info): Update.
4281 2020-02-12 Tom Tromey <tom@tromey.com>
4283 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
4284 (decode_frame_entry_1): Use the comp_unit obstack.
4286 2020-02-12 Tom Tromey <tom@tromey.com>
4288 * dwarf2/frame.c (struct comp_unit): Add initializers and
4290 (dwarf2_frame_objfile_data): Store a comp_unit.
4291 (dwarf2_frame_find_fde): Update.
4292 (dwarf2_build_frame_info): Use "new".
4294 2020-02-12 Tom Tromey <tom@tromey.com>
4296 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
4297 (dwarf2_fde_table): Typedef for std::vector.
4298 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
4299 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
4300 (decode_frame_entry): Update.
4301 (dwarf2_build_frame_info): Use "new".
4303 2020-02-12 Christian Biesinger <cbiesinger@google.com>
4305 * arm-tdep.c (arm_gdbarch_init): Update.
4306 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
4307 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
4308 have_neon, is_m>: Change to bool.
4310 2020-02-12 Christian Biesinger <cbiesinger@google.com>
4312 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
4314 2020-02-12 Tom Tromey <tom@tromey.com>
4316 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
4318 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
4320 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
4321 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
4323 2020-02-11 Tom Tromey <tom@tromey.com>
4325 * psymtab.h: Update comment.
4327 2020-02-11 Tom Tromey <tom@tromey.com>
4329 * gdb_obstack.h (struct auto_obstack): Use
4330 DISABLE_COPY_AND_ASSIGN.
4332 2020-02-11 Tom Tromey <tom@tromey.com>
4334 * dwarf2/frame.h (struct objfile): Don't forward declare.
4336 2020-02-11 Christian Biesinger <cbiesinger@google.com>
4338 * cris-tdep.c (cris_supply_gregset): Change signature to match
4339 what struct regset expects.
4340 (cris_regset): New struct.
4341 (fetch_core_registers): Remove.
4342 (cris_iterate_over_regset_sections): New function.
4343 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
4344 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
4346 2020-02-11 Christian Biesinger <cbiesinger@google.com>
4348 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
4351 2020-02-11 Christian Biesinger <cbiesinger@google.com>
4353 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
4355 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4357 * configure: Re-generate.
4359 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4361 * configure: Re-generate.
4363 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
4365 * acinclude: Update warning.m4 path.
4366 * warning.m4: Move to gdbsupport.
4368 2020-02-11 Tom Tromey <tromey@adacore.com>
4370 * remote.c (remote_console_output): Update.
4371 * printcmd.c (printf_command): Update.
4372 * event-loop.c (gdb_wait_for_event): Update.
4373 * linux-nat.c (sigchld_handler): Update.
4374 * remote-sim.c (gdb_os_write_stdout): Update.
4375 (gdb_os_flush_stdout): Update.
4376 (gdb_os_flush_stderr): Update.
4377 (gdb_os_write_stderr): Update.
4378 * exceptions.c (print_exception): Update.
4379 * remote-fileio.c (remote_fileio_func_read): Update.
4380 (remote_fileio_func_write): Update.
4381 * tui/tui.c (tui_enable): Update.
4382 * tui/tui-interp.c (tui_interp::init): Update.
4383 * utils.c (init_page_info): Update.
4384 (putchar_unfiltered, fputc_unfiltered): Update.
4385 (gdb_flush): Update.
4386 (emit_style_escape): Update.
4387 (flush_wrap_buffer, fputs_maybe_filtered): Update.
4388 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
4389 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
4390 (stderr_file::write): Update.
4391 (stderr_file::puts): Update.
4392 * ui-file.h (ui_file_isatty, ui_file_write)
4393 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
4394 (ui_file_puts): Don't declare.
4396 2020-02-10 Tom de Vries <tdevries@suse.de>
4398 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
4401 2020-02-09 Tom de Vries <tdevries@suse.de>
4403 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
4404 filename if it matches "<artificial>".
4406 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4408 * windows-tdep.c (struct enum_value_name): New struct.
4409 (create_enum): New function.
4410 (windows_get_siginfo_type): Create and use enum types.
4412 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
4414 * NEWS: Mention $_siginfo support for Windows.
4415 * windows-nat.c (handle_exception): Set siginfo_er.
4416 (windows_nat_target::mourn_inferior): Reset siginfo_er.
4417 (windows_xfer_siginfo): New function.
4418 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
4419 * windows-tdep.c (struct windows_gdbarch_data): New struct.
4420 (init_windows_gdbarch_data): New function.
4421 (get_windows_gdbarch_data): New function.
4422 (windows_get_siginfo_type): New function.
4423 (windows_init_abi): Register windows_get_siginfo_type.
4424 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
4426 2020-02-08 Tom Tromey <tom@tromey.com>
4428 * dwarf2/read.c (class cutu_reader) <cutu_reader,
4429 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
4430 <keep>: Declare method.
4431 <m_keep>: Remove member.
4432 <~cutu_reader>: Remove.
4433 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4434 (cutu_reader::cutu_reader): Update.
4435 (cutu_reader::keep): Rename from ~cutu_reader.
4436 (process_psymtab_comp_unit, build_type_psymtabs_1)
4437 (process_skeletonless_type_unit, load_partial_comp_unit)
4438 (load_full_comp_unit, dwarf2_read_addr_index)
4439 (read_signatured_type): Update.
4441 2020-02-08 Tom Tromey <tom@tromey.com>
4443 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
4444 "want_partial_unit" parameter.
4445 (process_psymtab_comp_unit): Change want_partial_unit to bool.
4446 Inline check for DW_TAG_partial_unit.
4447 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
4449 2020-02-08 Tom Tromey <tom@tromey.com>
4451 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
4453 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
4456 2020-02-08 Tom Tromey <tom@tromey.com>
4458 * dwarf2/read.c (read_address): Move to comp-unit.c.
4459 (dwarf2_rnglists_process, dwarf2_ranges_process)
4460 (read_attribute_value, dwarf_decode_lines_1)
4461 (var_decode_location, decode_locdesc): Update.
4462 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
4463 read.c. Remove "cu" parameter.
4464 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
4467 2020-02-08 Tom Tromey <tom@tromey.com>
4469 * dwarf2/read.c (read_attribute_value, read_indirect_string)
4470 (read_indirect_line_string): Update.
4471 * dwarf2/comp-unit.c (read_offset): Remove.
4472 (read_comp_unit_head): Update.
4473 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
4475 (read_offset): Don't declare.
4477 2020-02-08 Tom Tromey <tom@tromey.com>
4479 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
4480 * dwarf2/read.c (struct comp_unit_head): Move to
4482 (enum class rcuh_kind): Move to comp-unit.h.
4483 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
4484 (read_comp_unit_head, error_check_comp_unit_head)
4485 (read_and_check_comp_unit_head): Move to comp-unit.c.
4486 (read_offset, dwarf_unit_type_name): Likewise.
4487 (create_debug_type_hash_table, read_cutu_die_from_dwo)
4488 (cutu_reader::cutu_reader, read_call_site_scope)
4489 (find_partial_die, follow_die_offset): Update.
4490 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
4492 2020-02-08 Tom Tromey <tom@tromey.com>
4494 * dwarf2/read.c (read_offset_1): Move to leb.c.
4495 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
4496 (dwarf_decode_macro_bytes): Update.
4497 * dwarf2/leb.c (read_offset): Rename; move from read.c.
4498 * dwarf2/leb.h (read_offset): Declare.
4500 2020-02-08 Tom Tromey <tom@tromey.com>
4502 * dwarf2/read.c (dwarf2_section_size): Remove.
4503 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
4505 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
4507 2020-02-08 Tom Tromey <tom@tromey.com>
4509 * dwarf2/read.c (read_initial_length): Move to leb.c.
4510 * dwarf2/leb.h (read_initial_length): Declare.
4511 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
4512 handle_nonstd parameter.
4513 * dwarf2/frame.c (read_initial_length): Remove.
4514 (decode_frame_entry_1): Update.
4516 2020-02-08 Tom Tromey <tom@tromey.com>
4518 * dwarf2/loc.c (dwarf2_find_location_expression)
4519 (dwarf_evaluate_loc_desc::get_tls_address)
4520 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
4521 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
4522 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
4523 (dwarf2_compile_property_to_c)
4524 (dwarf2_loc_desc_get_symbol_read_needs)
4525 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
4526 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
4527 (loclist_describe_location, loclist_tracepoint_var_ref)
4528 (loclist_generate_c_location): Update.
4529 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
4530 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
4531 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
4532 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
4533 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
4534 (dwarf2_per_cu_data::addr_size)
4535 (dwarf2_per_cu_data::ref_addr_size)
4536 (dwarf2_per_cu_data::text_offset)
4537 (dwarf2_per_cu_data::addr_type): Now methods.
4538 (per_cu_header_read_in): Make per_cu "const".
4539 (dwarf2_version): Remove.
4540 (dwarf2_per_cu_data::int_type): Now a method.
4541 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
4542 (set_die_type, read_array_type, read_subrange_index_type)
4543 (read_tag_string_type, read_subrange_type): Update.
4544 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
4545 offset_size, ref_addr_size, text_offset, addr_type, version,
4546 objfile, int_type, addr_sized_int_type>: Declare methods.
4548 2020-02-08 Tom Tromey <tom@tromey.com>
4550 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
4553 2020-02-08 Tom Tromey <tom@tromey.com>
4555 * dwarf2/read.h (dwarf_line_debug): Declare.
4556 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
4557 * dwarf2/read.c: Move line_header code to new files.
4558 (dwarf_line_debug): No longer static.
4559 * dwarf2/line-header.c: New file.
4560 * dwarf2/line-header.h: New file.
4562 2020-02-08 Tom Tromey <tom@tromey.com>
4564 * dwarf2/read.c (struct line_header) <file_full_name,
4565 file_file_name>: Return unique_xmalloc_ptr.
4566 (line_header::file_file_name): Update.
4567 (line_header::file_full_name): Update.
4568 (dw2_get_file_names_reader): Update.
4569 (macro_start_file): Update.
4571 2020-02-08 Tom Tromey <tom@tromey.com>
4573 * dwarf2/read.c (struct line_header) <file_full_name,
4574 file_file_name>: Declare methods.
4575 (dw2_get_file_names_reader): Update.
4576 (file_file_name): Now a method.
4577 (file_full_name): Likewise.
4578 (macro_start_file): Update.
4580 2020-02-08 Tom Tromey <tom@tromey.com>
4582 * dwarf2/read.c (dwarf_always_disassemble)
4583 (show_dwarf_always_disassemble): Move to loc.c.
4584 (_initialize_dwarf2_read): Move "always-disassemble" registration
4586 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
4587 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
4589 (show_dwarf_always_disassemble): Move from read.c.
4590 (_initialize_dwarf2loc): Move always-disassemble from read.c.
4592 2020-02-08 Tom Tromey <tom@tromey.com>
4594 * dwarf2/read.c (~dwarf2_per_objfile): Update.
4595 (create_quick_file_names_table): Return htab_up.
4596 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
4598 * dwarf2/read.h (struct dwarf2_per_objfile)
4599 <quick_file_names_table>: Now htab_up.
4601 2020-02-08 Tom Tromey <tom@tromey.com>
4603 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
4605 2020-02-08 Tom Tromey <tom@tromey.com>
4607 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
4609 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
4610 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
4611 (abbrev_table::abbrev_table): No longer inline.
4612 (ABBREV_HASH_SIZE): Remove.
4613 (abbrev_table::m_abbrevs): Now an htab_up.
4615 2020-02-08 Tom Tromey <tom@tromey.com>
4617 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
4618 (cutu_reader): Update.
4619 (build_type_psymtabs_1): Update.
4620 * dwarf2/abbrev.c (abbrev_table::read): Rename.
4621 (abbrev_table::alloc_abbrev): Update.
4622 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
4623 (abbrev_table::read): New static method, renamed from
4624 abbrev_table_read_table.
4625 (abbrev_table::alloc_abbrev)
4626 (abbrev_table::add_abbrev): Now private.
4627 (abbrev_table::abbrev_table): Now private.
4628 (abbrev_table::m_abbrev_obstack): Now private. Rename.
4630 2020-02-08 Tom Tromey <tom@tromey.com>
4632 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
4633 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
4636 2020-02-08 Tom Tromey <tom@tromey.com>
4638 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
4640 (lookup_dwo_unit_in_dwp): Update.
4641 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
4644 2020-02-08 Tom Tromey <tom@tromey.com>
4646 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
4649 2020-02-08 Tom Tromey <tom@tromey.com>
4651 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
4653 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
4654 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
4655 Change type to htab_up.
4657 2020-02-08 Tom Tromey <tom@tromey.com>
4659 * dwarf2/read.c (allocate_type_unit_groups_table): Return
4660 htab_up. Don't allocate on obstack.
4661 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
4662 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
4663 Change type to htab_up.
4665 2020-02-08 Tom Tromey <tom@tromey.com>
4667 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
4668 Change type to htab_up.
4669 * dwarf2/read.c (create_signatured_type_table_from_index)
4670 (create_signatured_type_table_from_debug_names)
4671 (create_all_type_units, add_type_unit)
4672 (lookup_dwo_signatured_type, lookup_signatured_type)
4673 (process_skeletonless_type_unit): Update.
4674 (create_debug_type_hash_table, create_debug_types_hash_table):
4675 Change type of types_htab.
4676 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
4677 htab_up. Don't allocate on obstack.
4678 (create_cus_hash_table): Change type of cus_htab parameter.
4679 (struct dwo_file) <cus, tus>: Now htab_up.
4680 (lookup_dwo_signatured_type, lookup_dwo_cutu)
4681 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
4682 (queue_and_load_all_dwo_tus): Update.
4683 * dwarf2/index-write.c (write_gdbindex): Update.
4684 (write_debug_names): Update.
4686 2020-02-08 Tom Tromey <tom@tromey.com>
4688 * dwarf2/read.h (struct dwarf2_queue_item): Move from
4689 dwarf2/read.c. Remove "next" member. Add constructor ntad
4691 (struct dwarf2_per_objfile) <queue>: New member.
4692 * dwarf2/read.c (struct dwarf2_queue_item): Move to
4694 (dwarf2_queue, dwarf2_queue_tail): Remove.
4695 (class dwarf2_queue_guard): Add parameter to constructor. Use
4696 DISABLE_COPY_AND_ASSIGN.
4697 <m_per_objfile>: New member.
4698 <~dwarf2_queue_guard>: Rewrite.
4699 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
4701 (~dwarf2_queue_item): New.
4703 2020-02-08 Tom Tromey <tom@tromey.com>
4705 * dwarf2/read.c (struct die_info) <has_children>: New member.
4706 (dw2_get_file_names_reader): Remove has_children.
4707 (dw2_get_file_names): Update.
4708 (read_cutu_die_from_dwo): Remove has_children.
4709 (cutu_reader::init_tu_and_read_dwo_dies)
4710 (cutu_reader::cutu_reader): Update.
4711 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
4712 Remove has_children.
4713 (build_type_psymtabs_1, process_skeletonless_type_unit)
4714 (load_partial_comp_unit, load_full_comp_unit): Update.
4715 (create_dwo_cu_reader): Remove has_children.
4716 (create_cus_hash_table, read_die_and_children): Update.
4717 (read_full_die_1,read_full_die): Remove has_children.
4718 (read_signatured_type): Update.
4719 (class cutu_reader) <has_children>: Remove.
4721 2020-02-08 Tom Tromey <tom@tromey.com>
4723 * dwarf2/expr.c: Rename from dwarf2expr.c.
4724 * dwarf2/expr.h: Rename from dwarf2expr.h.
4725 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
4726 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
4727 * dwarf2/frame.c: Rename from dwarf2-frame.c.
4728 * dwarf2/frame.h: Rename from dwarf2-frame.h.
4729 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
4730 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
4731 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
4732 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
4733 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
4734 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
4735 * dwarf2/loc.c: Rename from dwarf2loc.c.
4736 * dwarf2/loc.h: Rename from dwarf2loc.h.
4737 * dwarf2/read.c: Rename from dwarf2read.c.
4738 * dwarf2/read.h: Rename from dwarf2read.h.
4739 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
4740 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
4741 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
4742 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
4743 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
4744 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
4745 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
4746 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
4747 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
4748 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
4749 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
4750 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
4751 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
4753 * Makefile.in (COMMON_SFILES): Update.
4754 (HFILES_NO_SRCDIR): Update.
4756 2020-02-08 Tom Tromey <tom@tromey.com>
4758 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
4759 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
4761 2020-02-08 Tom Tromey <tom@tromey.com>
4763 * dwarf2read.h (struct die_info): Don't declare.
4765 2020-02-08 Tom Tromey <tom@tromey.com>
4767 * dwarf2read.h (die_info_ptr): Remove typedef.
4769 2020-02-08 Tom Tromey <tom@tromey.com>
4771 * dwarf2read.c (read_call_site_scope)
4772 (handle_data_member_location, dwarf2_add_member_fn)
4773 (mark_common_block_symbol_computed, read_common_block)
4774 (attr_to_dynamic_prop, partial_die_info::read)
4775 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
4776 (dwarf2_symbol_mark_computed, set_die_type): Update.
4777 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
4779 (attr_form_is_block): Don't declare.
4780 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
4782 2020-02-08 Tom Tromey <tom@tromey.com>
4784 * dwarf2read.c (dwarf2_find_base_address, )
4785 (read_call_site_scope, rust_containing_type)
4786 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
4787 (handle_data_member_location, dwarf2_add_member_fn)
4788 (get_alignment, read_structure_type, process_structure_scope)
4789 (mark_common_block_symbol_computed, read_common_block)
4790 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
4791 (partial_die_info::read, read_attribute_value, new_symbol)
4792 (lookup_die_type, dwarf2_get_ref_die_offset)
4793 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
4794 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
4795 (dwarf2_symbol_mark_computed): Update.
4796 * dwarf2/attribute.h (struct attribute) <value_as_address,
4797 form_is_section_offset, form_is_constant, form_is_ref>: Declare
4799 (value_as_address, attr_form_is_section_offset)
4800 (attr_form_is_constant, attr_form_is_ref): Don't declare.
4801 * dwarf2/attribute.c (attribute::value_as_address)
4802 (attribute::form_is_section_offset, attribute::form_is_constant)
4803 (attribute::form_is_ref): Now methods.
4805 2020-02-08 Tom Tromey <tom@tromey.com>
4807 * dwarf2read.c (struct attribute, DW_STRING)
4808 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
4809 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
4810 (attr_form_is_block, attr_form_is_section_offset)
4811 (attr_form_is_constant, attr_form_is_ref): Move.
4812 * dwarf2/attribute.h: New file.
4813 * dwarf2/attribute.c: New file, from dwarf2read.c.
4814 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
4816 2020-02-08 Tom Tromey <tom@tromey.com>
4818 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
4819 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
4821 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
4822 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
4823 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
4825 * dwarf2/abbrev.h: New file.
4826 * dwarf2/abbrev.c: New file, from dwarf2read.c.
4827 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
4829 2020-02-08 Tom Tromey <tom@tromey.com>
4831 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
4832 (dwarf2_section_size, dwarf2_get_section_info)
4833 (create_signatured_type_table_from_debug_names)
4834 (create_addrmap_from_aranges, read_debug_names_from_section)
4835 (get_gdb_index_contents_from_section, read_comp_unit_head)
4836 (error_check_comp_unit_head, read_abbrev_offset)
4837 (create_debug_type_hash_table, init_cu_die_reader)
4838 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
4839 (read_comp_units_from_section, create_cus_hash_table)
4840 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4841 (create_dwp_v2_section, dwarf2_rnglists_process)
4842 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
4843 (abbrev_table_read_table, read_indirect_string_at_offset_from)
4844 (read_indirect_string_from_dwz, read_addr_index_1)
4845 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
4846 (dwarf_decode_macro_bytes, dwarf_decode_macros)
4847 (fill_in_loclist_baton): Update.
4848 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
4849 get_containing_section, get_bfd_owner, get_bfd_section,
4850 get_file_name, get_id, get_flags, empty, read>: Declare methods.
4851 (dwarf2_read_section, get_section_name, get_section_file_name)
4852 (get_containing_section, get_section_bfd_owner)
4853 (get_section_bfd_section, get_section_name, get_section_file_name)
4854 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
4856 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
4857 (dwarf2_section_info::get_bfd_owner)
4858 (dwarf2_section_info::get_bfd_section)
4859 (dwarf2_section_info::get_name)
4860 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
4861 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
4862 (dwarf2_section_info::read): Now methods.
4863 * dwarf-index-write.c (class debug_names): Update.
4865 2020-02-08 Tom Tromey <tom@tromey.com>
4867 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
4868 Move to dwarf2/section.h.
4869 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
4870 (get_section_bfd_section, get_section_name)
4871 (get_section_file_name, get_section_id, get_section_flags)
4872 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
4874 * dwarf2/section.h: New file.
4875 * dwarf2/section.c: New file, from dwarf2read.c.
4876 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
4878 2020-02-08 Tom Tromey <tom@tromey.com>
4880 * dwarf2read.h (read_unsigned_leb128): Don't declare.
4881 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
4882 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
4883 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
4884 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
4885 * dwarf2/leb.h: New file, from dwarf2read.c.
4886 * dwarf2/leb.c: New file, from dwarf2read.c.
4887 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
4889 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
4890 (COMMON_SFILES): Add dwarf2/leb.c.
4892 2020-02-08 Joel Brobecker <brobecker@adacore.com>
4896 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
4899 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
4900 * gdb/remote.c (remote_console_output): Update.
4901 * gdb/ui-file.c (fputs_unfiltered): Rename to...
4902 (ui_file_puts): ...this.
4903 * gdb/ui-file.h (ui_file_puts): Add declaration.
4904 * gdb/utils.c (emit_style_escape): Update.
4905 (flush_wrap_buffer): Update.
4906 (fputs_maybe_filtered): Update.
4907 (fputs_unfiltered): Add function.
4909 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
4911 * gdb/event-loop.c (gdb_wait_for_event): Update.
4912 * gdb/printcmd.c (printf_command): Update.
4913 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
4914 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
4915 (gdb_os_flush_stderr): Update.
4916 * gdb/remote.c (remote_console_output): Update.
4917 * gdb/ui-file.c (gdb_flush): Rename to...
4918 (ui_file_flush): ...this.
4919 (stderr_file::write): Update.
4920 (stderr_file::puts): Update.
4921 * gdb/ui-file.h (gdb_flush): Rename to...
4922 (ui_file_flush): ...this.
4923 * gdb/utils.c (gdb_flush): Add function.
4924 * gdb/utils.h (gdb_flush): Add declaration.
4926 2020-02-07 Tom Tromey <tromey@adacore.com>
4928 PR breakpoints/24915:
4929 * source.c (find_and_open_source): Do not check basenames_may_differ.
4931 2020-02-07 Tom Tromey <tom@tromey.com>
4933 * README: Update gdbserver documentation.
4934 * gdbserver: Move to top level.
4935 * configure.tgt (build_gdbserver): Remove.
4936 * configure.ac: Remove --enable-gdbserver.
4937 * configure: Rebuild.
4938 * Makefile.in (distclean): Don't mention gdbserver.
4940 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
4942 * source-cache.c (source_cache::ensure): Surround
4943 get_plain_source_lines with a try/catch.
4944 (source_cache::get_line_charpos): Get rid of try/catch
4945 and only check for the return value of "ensure".
4946 * tui/tui-source.c (tui_source_window::set_contents):
4947 Simplify "nlines" calculation.
4949 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
4951 * MAINTAINERS (Write After Approval): Add myself.
4953 2020-02-05 Christian Biesinger <cbiesinger@google.com>
4955 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
4958 2020-02-05 Christian Biesinger <cbiesinger@google.com>
4960 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
4962 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
4964 * nat/riscv-linux-tdesc.h: New file.
4965 * nat/riscv-linux-tdesc.c: New file, taking code from...
4966 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
4968 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
4971 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
4973 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
4974 we don't set the fake simulator ptid to the null_ptid.
4976 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
4978 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
4979 * gdbthread.h (class thread_info) <resumed>: Likewise.
4980 * infrun.c (resume_1): Likewise.
4981 (proceed): Likewise.
4982 (infrun_thread_stop_requested): Likewise.
4983 (stop_all_threads): Likewise.
4984 (handle_inferior_event): Likewise.
4985 (restart_threads): Likewise.
4986 (finish_step_over): Likewise.
4987 (keep_going_stepped_thread): Likewise.
4988 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
4989 (linux_handle_extended_wait): Likewise.
4990 * record-btrace.c (get_thread_current_frame_id): Likewise.
4991 * record-full.c (record_full_wait_1): Likewise.
4992 * remote.c (remote_target::process_initial_stop_replies): Likewise.
4993 * target.c (target_resume): Likewise.
4994 * thread.c (set_running_thread): Likewise.
4996 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4998 * f-valprint.c (f77_print_array_1): Changed datatype of index
4999 variable to LONGEST from int to enable it to contain bound
5002 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
5004 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
5005 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
5006 offsets according to FLEN determined.
5007 (riscv_linux_nat_target::read_description): Determine FLEN
5009 (riscv_linux_nat_target::fetch_registers): Size regset buffer
5010 according to FLEN determined.
5011 (riscv_linux_nat_target::store_registers): Likewise.
5013 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
5015 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
5016 when reg->group is empty and reggroup is not.
5018 2020-01-31 Tom Tromey <tromey@adacore.com>
5020 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
5021 Call beneath target's mourn_inferior after unpushing.
5023 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
5026 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
5027 have enough lines to fill the screen, still return the lowest
5030 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
5032 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
5033 '-', '<', and '>' commands.
5035 2020-01-29 Pedro Alves <palves@redhat.com>
5036 Sergio Durigan Junior <sergiodj@redhat.com>
5038 * infcmd.c (construct_inferior_arguments): Assert that
5039 'argc' is greater than 0.
5041 2020-01-29 Luis Machado <luis.machado@linaro.org>
5043 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
5044 (BRK_INSN_MASK): Define to 0xd4200000.
5045 (aarch64_program_breakpoint_here_p): New function.
5046 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
5047 * arch-utils.c (default_program_breakpoint_here_p): Moved from
5049 * arch-utils.h (default_program_breakpoint_here_p): Moved from
5051 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
5052 call gdbarch_program_breakpoint_here_p.
5053 (program_breakpoint_here): Moved to arch-utils.c, renamed to
5054 default_program_breakpoint_here_p, changed return type to bool and
5056 * breakpoint.h (program_breakpoint_here): Moved prototype to
5057 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
5058 return type to bool.
5059 * gdbarch.c: Regenerate.
5060 * gdbarch.h: Regenerate.
5061 * gdbarch.sh (program_breakpoint_here_p): New method.
5062 * infrun.c (handle_signal_stop): Call
5063 gdbarch_program_breakpoint_here_p.
5065 2020-01-26 Tom Tromey <tom@tromey.com>
5067 * ctfread.c (struct ctf_fp_info): Reindent.
5068 (_initialize_ctfread): Remove.
5070 2020-01-26 Tom Tromey <tom@tromey.com>
5072 * psymtab.c (partial_map_expand_apply)
5073 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
5074 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
5075 (psym_print_stats, psym_expand_symtabs_for_function)
5076 (psym_map_symbol_filenames, psym_map_matching_symbols)
5077 (psym_expand_symtabs_matching)
5078 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
5079 (maintenance_check_psymtabs): Use new methods.
5080 * psympriv.h (struct partial_symtab) <readin_p,
5081 get_compunit_symtab>: New methods.
5082 <readin, compunit_symtab>: Remove members.
5083 (struct standard_psymtab): New.
5084 (struct legacy_psymtab): Derive from standard_psymtab.
5085 * dwarf2read.h (struct dwarf2_psymtab): Derive from
5087 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
5089 2020-01-26 Tom Tromey <tom@tromey.com>
5091 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
5092 read_dependencies. Add assert.
5093 * psymtab.c (partial_symtab::read_dependencies): New method.
5094 * psympriv.h (struct partial_symtab) <read_dependencies>: New
5096 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
5097 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
5099 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
5102 2020-01-26 Tom Tromey <tom@tromey.com>
5104 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
5105 Call expand_psymtab.
5106 (xcoff_read_symtab): Call expand_psymtab.
5107 (xcoff_start_psymtab, xcoff_end_psymtab): Set
5108 legacy_expand_psymtab.
5109 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
5111 (struct legacy_psymtab) <expand_psymtab>: Implement.
5112 <legacy_expand_psymtab>: New member.
5113 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
5114 (parse_partial_symbols): Set legacy_expand_psymtab.
5115 (psymtab_to_symtab_1): Change argument order. Call
5117 (new_psymtab): Set legacy_expand_psymtab.
5118 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
5119 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
5121 (dwarf2_psymtab::expand_psymtab): Rename from
5122 psymtab_to_symtab_1. Call expand_psymtab.
5123 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
5124 (dbx_end_psymtab): Likewise.
5125 (dbx_psymtab_to_symtab_1): Change argument order. Call
5127 (dbx_read_symtab): Call expand_psymtab.
5128 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
5129 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
5130 (ctf_psymtab::read_symtab): Call expand_psymtab.
5132 2020-01-26 Tom Tromey <tom@tromey.com>
5134 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
5135 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
5137 * mdebugread.c (mdebug_read_symtab): Remove prints.
5138 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
5140 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
5142 2020-01-26 Tom Tromey <tom@tromey.com>
5144 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
5145 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
5146 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
5148 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
5149 * psymtab.c (psymtab_to_symtab): Call method.
5150 (dump_psymtab): Update.
5151 * psympriv.h (struct partial_symtab): Add virtual destructor.
5152 <read_symtab>: New method.
5153 (struct legacy_symtab): New.
5154 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
5155 (struct pst_map) <pst>: Now a legacy_psymtab.
5156 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
5157 (new_psymtab): Use legacy_psymtab.
5158 * dwarf2read.h (struct dwarf2_psymtab): New.
5159 (struct dwarf2_per_cu_data) <psymtab>: Use it.
5160 * dwarf2read.c (dwarf2_create_include_psymtab)
5161 (dwarf2_build_include_psymtabs, create_type_unit_group)
5162 (create_partial_symtab, process_psymtab_comp_unit_reader)
5163 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
5164 (set_partial_user): Use dwarf2_psymtab.
5165 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
5166 (psymtab_to_symtab_1, process_full_comp_unit)
5167 (process_full_type_unit, dwarf2_ranges_read)
5168 (dwarf2_get_pc_bounds, psymtab_include_file_name)
5169 (dwarf_decode_lines): Use dwarf2_psymtab.
5170 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
5171 (add_address_entry_worker, write_one_signatured_type)
5172 (recursively_count_psymbols, recursively_write_psymbols)
5173 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
5174 (write_debug_names): Likewise.
5175 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
5176 <pst>: Now a legacy_psymtab.
5177 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
5178 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
5179 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
5180 * ctfread.c (struct ctf_psymtab): New.
5181 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
5183 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
5184 (create_partial_symtab): Return a ctf_psymtab.
5185 (scan_partial_symbols): Update.
5187 2020-01-26 Tom Tromey <tom@tromey.com>
5189 * xcoffread.c (xcoff_start_psymtab): Use new.
5190 * psymtab.c (partial_symtab::partial_symtab): New constructor,
5191 renamed from start_psymtab_common.
5192 * psympriv.h (struct partial_symtab): Add new constructor.
5193 (start_psymtab_common): Don't declare.
5194 * mdebugread.c (parse_partial_symbols): Use new.
5195 * dwarf2read.c (create_partial_symtab): Use new.
5196 * dbxread.c (start_psymtab): Use new.
5197 * ctfread.c (create_partial_symtab): Use new.
5199 2020-01-26 Tom Tromey <tom@tromey.com>
5201 * xcoffread.c (xcoff_end_psymtab): Use new.
5202 * psymtab.c (start_psymtab_common): Use new.
5203 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
5205 * psympriv.h (struct partial_symtab): Add parameters to
5206 constructor. Don't inline.
5207 (allocate_psymtab): Don't declare.
5208 * mdebugread.c (new_psymtab): Use new.
5209 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
5210 * dbxread.c (dbx_end_psymtab): Use new.
5212 2020-01-26 Tom Tromey <tom@tromey.com>
5214 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
5215 allocate_psymtab. Update documentation.
5216 * psymtab.c (psymtab_storage::install_psymtab): Rename from
5217 allocate_psymtab. Do not use new.
5218 (allocate_psymtab): Use new. Update.
5220 2020-01-26 Tom Tromey <tom@tromey.com>
5222 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
5223 * psymtab.c (psym_print_stats): Update.
5224 * psympriv.h (struct partial_symtab) <readin,
5225 psymtabs_addrmap_supported, anonymous>: Now bool.
5226 * mdebugread.c (psymtab_to_symtab_1): Update.
5227 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
5228 (build_type_psymtabs_reader, psymtab_to_symtab_1)
5229 (process_full_comp_unit, process_full_type_unit): Update.
5230 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
5231 * ctfread.c (psymtab_to_symtab): Update.
5233 2020-01-26 Tom Tromey <tom@tromey.com>
5235 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
5236 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
5237 * psymtab.c (psymtab_storage): Delete psymtabs.
5238 (psymtab_storage::allocate_psymtab): Use new.
5239 (psymtab_storage::discard_psymtab): Use delete.
5240 * psympriv.h (struct partial_symtab): Add constructor and
5243 2020-01-26 Tom Tromey <tom@tromey.com>
5245 * machoread.c: Do not include psympriv.h.
5247 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5249 * NEWS: Mention the new option and the set/show commands.
5251 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5253 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
5254 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
5255 (validate_exec_file): New variables, enums, functions.
5256 (exec_file_locate_attach, print_section_info): Style the filenames.
5257 (_initialize_exec): Install show_exec_file_mismatch_command and
5258 set_exec_file_mismatch_command.
5259 * gdbcore.h (validate_exec_file): Declare.
5260 * infcmd.c (attach_command): Call validate_exec_file.
5261 * remote.c ( remote_target::remote_add_inferior): Likewise.
5263 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
5265 * frame.c (find_frame_sal): Move call to get_next_frame into more
5267 * inline-frame.c (inilne_state) <inline_state>: Update argument
5269 (inilne_state) <skipped_symbol>: Rename to...
5270 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
5271 (skip_inline_frames): Build vector of skipped symbols and use this
5272 to reate the inline_state.
5273 (inline_skipped_symbol): Add a comment and some assertions, fetch
5274 skipped symbol from the list.
5276 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
5278 * buildsym.c (lte_is_less_than): Delete.
5279 (buildsym_compunit::end_symtab_with_blockvector): Create local
5280 lambda function to sort line table entries, and use
5281 std::stable_sort instead of std::sort.
5282 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
5283 markers when looking for a previous line.
5285 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
5287 * dwarf2read.c (lnp_state_machine::record_line): Include
5288 end_sequence parameter in debug print out. Record the line if we
5289 are at an end_sequence marker even if it's not the start of a
5291 * symmisc.c (maintenance_print_one_line_table): Print end of
5292 sequence markers with 'END' not '0'.
5294 2020-01-24 Pedro Alves <palves@redhat.com>
5297 * thread.c (scoped_restore_current_thread::restore): Use
5298 switch_to_inferior_no_thread.
5299 * exec.c: Include "progspace-and-thread.h".
5300 (add_target_sections, remove_target_sections):
5301 scoped_restore_current_pspace_and_thread instead of
5302 scoped_restore_current_thread.
5303 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
5304 and aspace to the inferior before calling clone_program_space.
5305 Remove stale comment.
5307 2020-01-24 Christian Biesinger <cbiesinger@google.com>
5309 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
5310 (arm_netbsd_nat_target::fetch_registers): ...this.
5311 (arm_nbsd_nat_target::store_registers): Rename to...
5312 (arm_netbsd_nat_target::store_registers): ...this.
5314 2020-01-24 Christian Biesinger <cbiesinger@google.com>
5316 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
5319 2020-01-24 Christian Biesinger <cbiesinger@google.com>
5321 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
5323 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
5325 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
5326 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
5327 the correct replacement (iterate_over_regset_sections).
5328 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
5331 2020-01-24 Graham Markall <graham.markall@embecosm.com>
5334 * gdb/python/python.c (execute_gdb_command): Call
5335 async_enable_stdin in catch block.
5337 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
5339 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
5340 SWITCH_THRU_ALL_UIS.
5342 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
5345 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
5346 comment, add extra parameter, and update to store previous symbol
5348 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
5349 add extra parameter.
5350 * tui/tui-disasm.c (tui_disassemble): Update header comment,
5351 remove unneeded parameter, add try/catch around gdb_print_insn,
5352 rewrite to add items to asm_lines vector.
5353 (tui_find_backward_disassembly_start_address): New function.
5354 (tui_find_disassembly_address): Updated throughout.
5355 (tui_disasm_window::set_contents): Update for changes to
5357 (tui_disasm_window::do_scroll_vertical): No need to adjust the
5358 number of lines to scroll.
5360 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
5362 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
5363 (SECT_OFF_DATA): Likewise.
5364 (SECT_OFF_RODATA): Likewise.
5365 (SECT_OFF_TEXT): Likewise.
5366 (SECT_OFF_BSS): Likewise.
5367 (struct objfile) <text_section_offset, data_section_offset>: New
5369 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
5370 objfile::text_section_offset.
5371 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
5372 * coffread.c (coff_symtab_read): Likewise.
5373 (enter_linenos): Likewise.
5374 (process_coff_symbol): Likewise.
5375 * ctfread.c (get_objfile_text_range): Likewise.
5376 * dtrace-probe.c (dtrace_probe::get_relocated_address):
5377 Use objfile::data_section_offset.
5378 * dwarf2-frame.c (execute_cfa_program): Use
5379 objfile::text_section_offset.
5380 (dwarf2_frame_find_fde): Likewise.
5381 * dwarf2read.c (create_addrmap_from_index): Likewise.
5382 (create_addrmap_from_aranges): Likewise.
5383 (dw2_find_pc_sect_compunit_symtab): Likewise.
5384 (process_psymtab_comp_unit_reader): Likewise.
5385 (add_partial_symbol): Likewise.
5386 (add_partial_subprogram): Likewise.
5387 (process_full_comp_unit): Likewise.
5388 (read_file_scope): Likewise.
5389 (read_func_scope): Likewise.
5390 (read_lexical_block_scope): Likewise.
5391 (read_call_site_scope): Likewise.
5392 (dwarf2_rnglists_process): Likewise.
5393 (dwarf2_ranges_process): Likewise.
5394 (dwarf2_ranges_read): Likewise.
5395 (dwarf_decode_lines_1): Likewise.
5396 (new_symbol): Likewise.
5397 (dwarf2_fetch_die_loc_sect_off): Likewise.
5398 (dwarf2_per_cu_text_offset): Likewise.
5399 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
5400 * hppa-tdep.c (read_unwind_info): Likewise.
5401 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
5402 * psympriv.h (struct partial_symtab): Likewise.
5403 * psymtab.c (find_pc_sect_psymtab): Likewise.
5404 * solib-svr4.c (enable_break): Likewise.
5405 * stap-probe.c (relocate_address): Use
5406 objfile::data_section_offset.
5407 * xcoffread.c (enter_line_range): Use
5408 objfile::text_section_offset.
5409 (read_xcoff_symtab): Likewise.
5411 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
5413 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
5414 declaration to narrower scopes.
5416 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
5418 * darwin-nat.h (struct darwin_exception_msg, enum
5419 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
5421 (class darwin_nat_target) <wait_1, check_new_threads,
5422 decode_exception_message, decode_message, stop_inferior,
5423 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
5424 * darwin-nat.c (darwin_check_new_threads): Rename to...
5425 (darwin_nat_target::check_new_threads): ... this.
5426 (darwin_suspend_inferior_it): Remove.
5427 (darwin_decode_exception_message): Rename to...
5428 (darwin_nat_target::decode_exception_message): ... this.
5429 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
5430 (darwin_decode_message): Rename to...
5431 (darwin_nat_target::decode_message): ... this.
5432 (cancel_breakpoint): Rename to...
5433 (darwin_nat_target::cancel_breakpoint): ... this.
5434 (darwin_wait): Rename to...
5435 (darwin_nat_target::wait_1): ... this. Use range-based for loop
5436 instead of iterate_over_inferiors.
5437 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
5438 (darwin_stop_inferior): Rename to...
5439 (darwin_nat_target::stop_inferior): ... this.
5440 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
5441 (darwin_init_thread_list): Rename to...
5442 (darwin_nat_target::init_thread_list): ... this.
5443 (darwin_ptrace_him): Rename to...
5444 (darwin_nat_target::ptrace_him): ... this.
5445 (darwin_nat_target::create_inferior): Pass lambda function to
5447 (darwin_nat_target::detach): Call stop_inferior instead of
5448 darwin_stop_inferior.
5449 * fork-inferior.h (fork_inferior): Change init_trace_fun
5450 parameter to gdb::function_view.
5451 * fork-inferior.c (fork_inferior): Likewise.
5453 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
5455 * i386-cygwin-tdep.c (core_process_module_section): Update.
5456 * windows-nat.c (struct lm_info_windows): Add text_offset.
5457 (windows_xfer_shared_libraries): Update.
5458 * windows-tdep.c (windows_xfer_shared_library):
5459 Add text_offset_cached argument.
5460 * windows-tdep.h (windows_xfer_shared_library): Update.
5462 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
5464 * gdbarch.sh: Add declaration for _initialize_gdbarch.
5466 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
5468 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
5469 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
5470 replace with range-based for.
5471 (gdbsim_interrupt_inferior): Remove.
5472 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
5473 with a range-based for. Inline code from
5474 gdbsim_interrupt_inferior.
5476 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
5478 * infrun.c (proceed): Fix indentation.
5480 2020-01-21 Tom Tromey <tromey@adacore.com>
5482 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
5483 * python/python.c (python_extension_ops): Update.
5484 (gdbpy_colorize): New function.
5485 * python/lib/gdb/__init__.py (colorize): New function.
5486 * extension.h (ext_lang_colorize): Declare.
5487 * extension.c (ext_lang_colorize): New function.
5488 * extension-priv.h (struct extension_language_ops) <colorize>: New
5490 * cli/cli-style.c (_initialize_cli_style): Update help text.
5492 2020-01-21 Luis Machado <luis.machado@linaro.org>
5494 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
5495 <cond>: Change type to bool.
5496 (aarch64_displaced_step_b_cond): Update cond to use bool type.
5497 (aarch64_displaced_step_cb): Likewise.
5498 (aarch64_displaced_step_tb): Likewise.
5500 2020-01-21 Luis Machado <luis.machado@linaro.org>
5502 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
5505 2020-01-21 Luis Machado <luis.machado@linaro.org>
5507 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
5508 <pc_adjust>: Adjust the documentation.
5509 (aarch64_displaced_step_fixup): Check if PC really moved before
5512 2020-01-19 Tom Tromey <tom@tromey.com>
5514 * disasm.c (~gdb_disassembler): New destructor.
5515 (gdb_buffered_insn_length): Call disassemble_free_target.
5516 * disasm.h (class gdb_disassembler): Declare destructor. Use
5517 DISABLE_COPY_AND_ASSIGN.
5519 2020-01-19 Tom Tromey <tom@tromey.com>
5521 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
5522 (die_reader_func_ftype): Remove.
5523 (cutu_reader): New class.
5524 (dw2_get_file_names_reader): Remove "data" parameter.
5525 (dw2_get_file_names): Use cutu_reader.
5526 (create_debug_type_hash_table): Update.
5527 (read_cutu_die_from_dwo): Update comment.
5528 (lookup_dwo_unit): Add dwo_name parameter.
5529 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
5530 die_reader_func_ftype and data parameters.
5531 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
5532 Remove die_reader_func_ftype and data parameters.
5533 (~cutu_reader): New; from init_cutu_and_read_dies.
5534 (cutu_reader::cutu_reader): Rename from
5535 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
5536 and data parameters.
5537 (init_cutu_and_read_dies_simple): Remove.
5538 (struct process_psymtab_comp_unit_data): Remove.
5539 (process_psymtab_comp_unit_reader): Remove data parameter; add
5540 want_partial_unit and pretend_language parameters.
5541 (process_psymtab_comp_unit): Use cutu_reader.
5542 (build_type_psymtabs_reader): Remove data parameter.
5543 (build_type_psymtabs_1): Use cutu_reader.
5544 (process_skeletonless_type_unit): Likewise.
5545 (load_partial_comp_unit_reader): Remove.
5546 (load_partial_comp_unit): Use cutu_reader.
5547 (load_full_comp_unit_reader): Remove.
5548 (load_full_comp_unit): Use cutu_reader.
5549 (struct create_dwo_cu_data): Remove.
5550 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
5551 dwo_unit parameters.
5552 (create_cus_hash_table): Use cutu_reader.
5553 (struct dwarf2_read_addr_index_data): Remove.
5554 (dwarf2_read_addr_index_reader): Remove.
5555 (dwarf2_read_addr_index): Use cutu_reader.
5556 (read_signatured_type_reader): Remove.
5557 (read_signatured_type): Use cutu_reader.
5559 2020-01-19 Tom Tromey <tom@tromey.com>
5561 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
5562 * tui/tui-wingeneral.h (class tui_suppress_output): New.
5563 (tui_wrefresh): Declare.
5564 * tui/tui-wingeneral.c (suppress_output): New global.
5565 (tui_suppress_output, ~tui_suppress_output): New constructor and
5567 (tui_wrefresh): New function.
5568 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
5569 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
5570 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
5572 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
5574 (tui_data_window::no_refresh): New method.
5575 (tui_data_item_window::refresh_window): Call tui_wrefresh.
5576 (tui_reg_command): Use tui_suppress_output
5577 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
5578 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
5580 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
5582 2020-01-19 Tom Tromey <tom@tromey.com>
5584 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5585 Handle case where symtab is null.
5587 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
5589 * linux-fork.c (one_fork_p): Simplify.
5591 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
5593 * top.c (struct qt_args): Remove.
5594 (kill_or_detach): Change return type to void, replace `void *`
5595 parameter with a proper one.
5596 (print_inferior_quit_action): Likewise.
5597 (quit_confirm): Use range-based for loop to iterate over inferiors.
5598 (quit_force): Likewise.
5600 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
5602 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
5603 `void *` parameter with proper parameters.
5604 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
5605 (print_one_inferior): Change return type to void, replace `void *`
5606 parameter with proper parameters.
5607 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
5609 (get_other_inferior): Remove.
5610 (mi_cmd_remove_inferior): Use range-based loop to iterate over
5613 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
5615 * mi/mi-interp.c (report_initial_inferior): Remove.
5616 (mi_interp::init): Use range-based for to iterate over inferiors.
5618 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
5620 * python/py-inferior.c (build_inferior_list): Remove.
5621 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
5623 2020-01-16 Christian Biesinger <cbiesinger@google.com>
5625 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
5626 (btrace_stitch_trace): Likewise.
5627 * charset.c (intermediate_encoding): Likewise (vaild).
5628 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
5629 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
5630 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
5632 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
5634 * windows-tdep.c (windows_get_tlb_type):
5635 Add rtl_user_process_parameters type.
5637 2020-01-16 Pedro Alves <palves@redhat.com>
5638 Norbert Lange <nolange79@gmail.com>
5641 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
5642 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
5643 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
5644 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
5645 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
5646 (ps_plog): Redeclare exported functions with default visibility.
5648 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
5650 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
5651 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
5653 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
5655 * infcmd.c (post_create_inferior): Use get_thread_regcache
5656 instead of get_current_regcache.
5658 2020-01-14 Tom Tromey <tom@tromey.com>
5661 * python/python.c (gdbpy_decode_line): Treat empty string the same
5664 2020-01-14 Tom Tromey <tom@tromey.com>
5666 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
5668 2020-01-14 Tom Tromey <tom@tromey.com>
5670 * nat/linux-btrace.c: Don't include <config.h>.
5671 * nat/linux-ptrace.c: Don't include <config.h>.
5672 * nat/x86-linux-dregs.c: Don't include <config.h>.
5674 2020-01-14 Tom Tromey <tom@tromey.com>
5676 * configure: Rebuild.
5677 * configure.ac: Move many checks to ../gdbsupport/common.m4.
5679 2020-01-14 Tom Tromey <tom@tromey.com>
5681 * nat/x86-linux-dregs.c: Include configh.h.
5682 * nat/linux-ptrace.c: Include configh.h.
5683 * nat/linux-btrace.c: Include configh.h.
5684 * defs.h: Include config.h, bfd.h.
5685 * configure.ac: Don't source common.host.
5686 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
5687 * configure: Rebuild.
5688 * acinclude.m4: Update path.
5689 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
5690 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
5691 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
5692 (CLIBS): Add LIBSUPPORT.
5694 (COMMON_SFILES): Remove gdbsupport files.
5695 (HFILES_NO_SRCDIR): Likewise.
5696 (stamp-version): Update path to create-version.sh.
5697 (ALLDEPFILES): Remove gdbsupport files.
5699 2020-01-14 Tom Tromey <tom@tromey.com>
5701 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
5702 USE_WIN32API when needed.
5703 * configure.ac (USE_WIN32API): Don't define.
5704 (WIN32LIBS): Use WIN32APILIBS.
5705 * configure: Rebuild.
5707 2020-01-14 Tom Tromey <tom@tromey.com>
5709 * configure: Rebuild.
5710 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
5712 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
5714 * skip.c (skip_function_command): Make skip w/o arguments use the
5715 name of the inlined function if pc is inside any inlined function.
5717 2020-01-14 Luis Machado <luis.machado@linaro.org>
5719 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
5720 * infrun.c (resume_1): Likewise.
5721 (handle_inferior_event): Remove stale comment.
5722 * linux-nat.c (linux_nat_target::resume): Update comments.
5723 (save_stop_reason): Likewise.
5724 (linux_nat_filter_event): Likewise.
5725 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
5727 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
5729 * elfread.c (record_minimal_symbol): Set section index to 0 for
5730 non-allocatable sections.
5733 2020-01-13 Ali Tamur <tamur@google.com>
5735 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
5736 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
5737 to gdb::optional. Update comments.
5738 (dwo_file): Update comments.
5739 (read_attribute): Update API to take an additional out parameter,
5740 need_reprocess. This is used to mark attributes that need other
5741 attributes (e.g. str_offsets_base) for correct computation which may not
5743 (read_attribute_reprocess): New function declaration.
5744 (read_addr_index): Likewise.
5745 (read_dwo_str_index): Likewise.
5746 (read_stub_str_index): Likewise.
5747 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
5748 (lookup_addr_base): New function definition.
5749 (lookup_ranges_base): Likewise.
5750 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
5752 (init_cutu_and_read_dies): Update comments.
5753 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
5754 unit. This is used to inherit parent's str_offsets_base and addr_base.
5756 (init_cutu_and_read_dies_simple): Reflect API changes.
5757 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
5758 (create_cus_hash_table): Change API to take parent compile unit.
5759 Reflect API changes.
5760 (open_and_init_dwo_file): Reflect API changes.
5761 (dwarf2_get_pc_bounds): Update comments.
5762 (dwarf2_record_block_ranges): Likewise.
5763 (read_full_die_1): Change implementation to reprocess attributes that
5764 need str_offsets_base and addr_base.
5765 (partial_die_info::read): Likewise.
5766 (read_attribute_reprocess): New function definition.
5767 (read_attribute_value): Change API to take an additional out parameter,
5768 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
5769 when a non-dwo compile unit has index based attributes.
5770 (read_attribute): Reflect API changes.
5771 (read_addr_index_1): Reflect API changes. Update comments.
5772 (dwarf2_read_addr_index_data): Reflect API changes.
5773 (dwarf2_read_addr_index): Likewise.
5774 (read_str_index): Change API and implementation. This becomes a helper
5775 to be used by the new string index related methods. Update error
5776 message and comments.
5777 (read_dwo_str_index): New function definition.
5778 (read_stub_str_index): Likewise.
5779 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
5780 * symfile.h (dwarf2_debug_sections): Likewise.
5781 * xcoffread.c (dwarf2_debug_sections): Likewise.
5783 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
5785 * gdbcore.h (struct core_fns) <core_read_registers>: Change
5786 core_reg_sect type to gdb_byte *.
5787 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
5788 * cris-tdep.c (fetch_core_registers): Likewise.
5789 * corelow.c (core_target::get_core_register_section): Change
5790 type of `contents` to gdb::byte_vector.
5792 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
5794 * tui/tui-wingeneral.c (box_win): Position the title in the center
5797 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5799 * corelow.c (core_target::get_core_register_section): Use
5800 std::vector instead of alloca.
5802 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
5804 * warning.m4: Add -Wmissing-declarations to build_warnings.
5805 * configure: Re-generate.
5807 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
5809 * python/python.c (init__gdb_module): Add declaration.
5811 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
5813 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
5814 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
5815 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
5816 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
5817 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
5818 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
5819 * ada-exp.y (_initialize_ada_exp): Add declaration.
5820 * ada-lang.c (_initialize_ada_language): Add declaration.
5821 * ada-tasks.c (_initialize_tasks): Add declaration.
5822 * agent.c (_initialize_agent): Add declaration.
5823 * aix-thread.c (_initialize_aix_thread): Add declaration.
5824 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
5825 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
5826 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
5827 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
5828 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
5829 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5830 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
5831 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
5832 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
5833 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
5834 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
5835 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
5836 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
5837 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
5838 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
5839 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
5840 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
5841 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
5842 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
5843 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
5844 * annotate.c (_initialize_annotate): Add declaration.
5845 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
5846 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
5847 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
5848 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
5849 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
5850 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
5851 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
5852 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
5853 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
5854 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
5855 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
5856 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
5857 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5858 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
5859 * auto-load.c (_initialize_auto_load): Add declaration.
5860 * auxv.c (_initialize_auxv): Add declaration.
5861 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
5862 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
5863 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
5864 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
5865 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
5866 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
5867 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
5868 * breakpoint.c (_initialize_breakpoint): Add declaration.
5869 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
5870 * btrace.c (_initialize_btrace): Add declaration.
5871 * charset.c (_initialize_charset): Add declaration.
5872 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
5873 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5874 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5875 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
5876 * cli/cli-script.c (_initialize_cli_script): Add declaration.
5877 * cli/cli-style.c (_initialize_cli_style): Add declaration.
5878 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
5879 * coffread.c (_initialize_coffread): Add declaration.
5880 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
5881 * compile/compile.c (_initialize_compile): Add declaration.
5882 * complaints.c (_initialize_complaints): Add declaration.
5883 * completer.c (_initialize_completer): Add declaration.
5884 * copying.c (_initialize_copying): Add declaration.
5885 * corefile.c (_initialize_core): Add declaration.
5886 * corelow.c (_initialize_corelow): Add declaration.
5887 * cp-abi.c (_initialize_cp_abi): Add declaration.
5888 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
5889 * cp-support.c (_initialize_cp_support): Add declaration.
5890 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
5891 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
5892 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
5893 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
5894 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
5895 * ctfread.c (_initialize_ctfread): Add declaration.
5896 * d-lang.c (_initialize_d_language): Add declaration.
5897 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
5898 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
5899 * dbxread.c (_initialize_dbxread): Add declaration.
5900 * dcache.c (_initialize_dcache): Add declaration.
5901 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
5902 * disasm.c (_initialize_disasm): Add declaration.
5903 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
5904 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
5905 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
5906 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
5907 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
5908 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
5909 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
5910 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
5911 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
5912 * elfread.c (_initialize_elfread): Add declaration.
5913 * exec.c (_initialize_exec): Add declaration.
5914 * extension.c (_initialize_extension): Add declaration.
5915 * f-lang.c (_initialize_f_language): Add declaration.
5916 * f-valprint.c (_initialize_f_valprint): Add declaration.
5917 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
5918 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
5919 * filesystem.c (_initialize_filesystem): Add declaration.
5920 * findcmd.c (_initialize_mem_search): Add declaration.
5921 * findvar.c (_initialize_findvar): Add declaration.
5922 * fork-child.c (_initialize_fork_child): Add declaration.
5923 * frame-base.c (_initialize_frame_base): Add declaration.
5924 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5925 * frame.c (_initialize_frame): Add declaration.
5926 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
5927 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
5928 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
5929 * gcore.c (_initialize_gcore): Add declaration.
5930 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
5931 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
5932 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
5933 * gdbarch.c (_initialize_gdbarch): Add declaration.
5934 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
5935 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
5936 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
5937 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
5938 * go-lang.c (_initialize_go_language): Add declaration.
5939 * go32-nat.c (_initialize_go32_nat): Add declaration.
5940 * guile/guile.c (_initialize_guile): Add declaration.
5941 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5942 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
5943 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
5944 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
5945 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
5946 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
5947 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
5948 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
5949 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
5950 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
5951 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
5952 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
5953 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
5954 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
5955 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
5956 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
5957 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
5958 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
5959 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
5960 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
5961 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
5962 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
5963 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
5964 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
5965 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
5966 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
5967 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
5968 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
5969 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
5970 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
5971 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
5972 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
5973 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
5974 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
5975 * infcall.c (_initialize_infcall): Add declaration.
5976 * infcmd.c (_initialize_infcmd): Add declaration.
5977 * inflow.c (_initialize_inflow): Add declaration.
5978 * infrun.c (_initialize_infrun): Add declaration.
5979 * interps.c (_initialize_interpreter): Add declaration.
5980 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
5981 * jit.c (_initialize_jit): Add declaration.
5982 * language.c (_initialize_language): Add declaration.
5983 * linux-fork.c (_initialize_linux_fork): Add declaration.
5984 * linux-nat.c (_initialize_linux_nat): Add declaration.
5985 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
5986 * linux-thread-db.c (_initialize_thread_db): Add declaration.
5987 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
5988 * m2-lang.c (_initialize_m2_language): Add declaration.
5989 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
5990 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
5991 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
5992 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
5993 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5994 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
5995 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
5996 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
5997 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
5998 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5999 * machoread.c (_initialize_machoread): Add declaration.
6000 * macrocmd.c (_initialize_macrocmd): Add declaration.
6001 * macroscope.c (_initialize_macroscope): Add declaration.
6002 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
6003 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
6004 * maint.c (_initialize_maint_cmds): Add declaration.
6005 * mdebugread.c (_initialize_mdebugread): Add declaration.
6006 * memattr.c (_initialize_mem): Add declaration.
6007 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
6008 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
6009 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
6010 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
6011 * mi/mi-main.c (_initialize_mi_main): Add declaration.
6012 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
6013 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
6014 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
6015 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
6016 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
6017 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
6018 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
6019 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
6020 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
6021 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
6022 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
6023 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
6024 * mipsread.c (_initialize_mipsread): Add declaration.
6025 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
6026 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
6027 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
6028 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
6029 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
6030 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
6031 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
6032 * nto-procfs.c (_initialize_procfs): Add declaration.
6033 * objc-lang.c (_initialize_objc_language): Add declaration.
6034 * observable.c (_initialize_observer): Add declaration.
6035 * opencl-lang.c (_initialize_opencl_language): Add declaration.
6036 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
6037 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
6038 * osabi.c (_initialize_gdb_osabi): Add declaration.
6039 * osdata.c (_initialize_osdata): Add declaration.
6040 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
6041 * parse.c (_initialize_parse): Add declaration.
6042 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
6043 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
6044 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
6045 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
6046 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
6047 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
6048 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
6049 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
6050 * printcmd.c (_initialize_printcmd): Add declaration.
6051 * probe.c (_initialize_probe): Add declaration.
6052 * proc-api.c (_initialize_proc_api): Add declaration.
6053 * proc-events.c (_initialize_proc_events): Add declaration.
6054 * proc-service.c (_initialize_proc_service): Add declaration.
6055 * procfs.c (_initialize_procfs): Add declaration.
6056 * producer.c (_initialize_producer): Add declaration.
6057 * psymtab.c (_initialize_psymtab): Add declaration.
6058 * python/python.c (_initialize_python): Add declaration.
6059 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
6060 * record-btrace.c (_initialize_record_btrace): Add declaration.
6061 * record-full.c (_initialize_record_full): Add declaration.
6062 * record.c (_initialize_record): Add declaration.
6063 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
6064 * regcache.c (_initialize_regcache): Add declaration.
6065 * reggroups.c (_initialize_reggroup): Add declaration.
6066 * remote-notif.c (_initialize_notif): Add declaration.
6067 * remote-sim.c (_initialize_remote_sim): Add declaration.
6068 * remote.c (_initialize_remote): Add declaration.
6069 * reverse.c (_initialize_reverse): Add declaration.
6070 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
6071 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
6072 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
6073 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
6074 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
6075 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
6076 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
6077 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
6079 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
6080 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
6081 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
6082 * rust-exp.y (_initialize_rust_exp): Add declaration.
6083 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
6084 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
6085 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
6086 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
6087 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
6088 * score-tdep.c (_initialize_score_tdep): Add declaration.
6089 * ser-go32.c (_initialize_ser_dos): Add declaration.
6090 * ser-mingw.c (_initialize_ser_windows): Add declaration.
6091 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
6092 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
6093 * ser-uds.c (_initialize_ser_socket): Add declaration.
6094 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
6095 * serial.c (_initialize_serial): Add declaration.
6096 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
6097 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
6098 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
6099 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
6100 * skip.c (_initialize_step_skip): Add declaration.
6101 * sol-thread.c (_initialize_sol_thread): Add declaration.
6102 * solib-aix.c (_initialize_solib_aix): Add declaration.
6103 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
6104 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
6105 * solib-frv.c (_initialize_frv_solib): Add declaration.
6106 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
6107 * solib-target.c (_initialize_solib_target): Add declaration.
6108 * solib.c (_initialize_solib): Add declaration.
6109 * source-cache.c (_initialize_source_cache): Add declaration.
6110 * source.c (_initialize_source): Add declaration.
6111 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
6112 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
6113 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
6114 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
6115 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
6116 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
6117 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
6118 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
6119 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
6120 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
6121 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
6122 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
6123 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
6124 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
6125 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
6126 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
6127 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
6128 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
6129 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
6130 * stabsread.c (_initialize_stabsread): Add declaration.
6131 * stack.c (_initialize_stack): Add declaration.
6132 * stap-probe.c (_initialize_stap_probe): Add declaration.
6133 * std-regs.c (_initialize_frame_reg): Add declaration.
6134 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
6135 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
6136 * symfile.c (_initialize_symfile): Add declaration.
6137 * symmisc.c (_initialize_symmisc): Add declaration.
6138 * symtab.c (_initialize_symtab): Add declaration.
6139 * target.c (_initialize_target): Add declaration.
6140 * target-connection.c (_initialize_target_connection): Add
6142 * target-dcache.c (_initialize_target_dcache): Add declaration.
6143 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
6144 * thread.c (_initialize_thread): Add declaration.
6145 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
6146 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
6147 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
6148 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
6149 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
6150 * tracectf.c (_initialize_ctf): Add declaration.
6151 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
6152 * tracefile.c (_initialize_tracefile): Add declaration.
6153 * tracepoint.c (_initialize_tracepoint): Add declaration.
6154 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
6155 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
6156 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
6157 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
6158 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
6159 * tui/tui-win.c (_initialize_tui_win): Add declaration.
6160 * tui/tui.c (_initialize_tui): Add declaration.
6161 * typeprint.c (_initialize_typeprint): Add declaration.
6162 * ui-style.c (_initialize_ui_style): Add declaration.
6163 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
6164 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
6165 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
6166 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
6167 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
6168 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
6169 * unittests/filtered_iterator-selftests.c
6170 (_initialize_filtered_iterator_selftests): Add declaration.
6171 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
6172 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
6173 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
6174 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
6175 * unittests/main-thread-selftests.c
6176 (_initialize_main_thread_selftests): Add declaration.
6177 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
6178 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
6179 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
6180 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
6181 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
6182 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
6183 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
6184 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
6185 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
6186 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
6187 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
6188 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
6189 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
6190 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
6191 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
6193 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
6194 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
6195 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
6196 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
6197 * user-regs.c (_initialize_user_regs): Add declaration.
6198 * utils.c (_initialize_utils): Add declaration.
6199 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
6200 * valops.c (_initialize_valops): Add declaration.
6201 * valprint.c (_initialize_valprint): Add declaration.
6202 * value.c (_initialize_values): Add declaration.
6203 * varobj.c (_initialize_varobj): Add declaration.
6204 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
6205 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
6206 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
6207 * windows-nat.c (_initialize_windows_nat): Add declaration.
6208 (_initialize_check_for_gdb_ini): Add declaration.
6209 (_initialize_loadable): Add declaration.
6210 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
6211 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
6212 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
6213 * xcoffread.c (_initialize_xcoffread): Add declaration.
6214 * xml-support.c (_initialize_xml_support): Add declaration.
6215 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
6216 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
6217 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
6218 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
6220 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6222 * regformats/regdat.sh: Generate declaration for init function.
6224 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6226 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
6228 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
6229 close_one_inferior>: New methods.
6230 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
6231 pass down target to find_inferior_pid.
6232 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
6233 Pass down target to find_inferior_ptid.
6234 (gdbsim_target::create_inferior): Pass down target to
6236 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
6237 target down to find_inferior_ptid and switch_to_thread.
6238 (gdbsim_target::close): Update to call close_one_inferior.
6239 (struct resume_data): Remove.
6240 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
6241 directly, rather than through a void pointer.
6242 (gdbsim_target::resume): Update to call resume_one_inferior.
6244 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6246 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
6248 2020-01-12 Pedro Alves <palves@redhat.com>
6250 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
6251 directly for the current inferior instead of
6252 discard_all_inferiors.
6253 (discard_all_inferiors): Delete.
6255 2020-01-11 Tom Tromey <tom@tromey.com>
6257 * tui/tui-wingeneral.c (box_win): Check cli_styling.
6258 * tui/tui-winsource.c (tui_source_window_base::refill): Use
6259 deprecated_safe_get_selected_frame.
6261 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6263 * inferior.c (print_inferior): Switch inferior before printing it.
6265 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
6266 Pedro Alves <palves@redhat.com>
6268 * progspace-and-thread.c (switch_to_program_space_and_thread):
6269 Assert there's an inferior for PSPACE. Use
6270 switch_to_inferior_no_thread to switch the inferior too.
6271 * progspace.c (program_space::~program_space): Call
6272 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
6273 (program_space::free_all_objfiles): Don't call clear_symtab_users
6275 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
6277 2020-01-10 Pedro Alves <palves@redhat.com>
6279 * NEWS: Mention multi-target debugging, "info connections", and
6280 "add-inferior -no-connection".
6282 2020-01-10 Pedro Alves <palves@redhat.com>
6284 * infrun.c: Include "target-connection.h".
6285 (check_multi_target_resumption): New.
6287 * target-connection.c (make_target_connection_string): Make
6289 * target-connection.h (make_target_connection_string): Declare.
6291 2020-01-10 Pedro Alves <palves@redhat.com>
6293 * Makefile.in (COMMON_SFILES): Add target-connection.c.
6294 * inferior.c (uiout_field_connection): New function.
6295 (print_inferior): Add new "connection-id" column.
6296 (add_inferior_command): Show connection number/string of added
6298 * process-stratum-target.h
6299 (process_stratum_target::connection_string): New virtual method.
6300 (process_stratum_target::connection_number): New field.
6301 * remote.c (remote_target::connection_string): New override.
6302 * target-connection.c: New file.
6303 * target-connection.h: New file.
6304 * target.c (decref_target): Remove process_stratum targets from
6305 the connection list.
6306 (target_stack::push): Add process_stratum targets to the
6309 2020-01-10 Pedro Alves <palves@redhat.com>
6312 2016-04-12 Pedro Alves <palves@redhat.com>
6313 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
6314 Remove references to name.
6315 * serial.h (struct serial) <name>: Delete.
6317 2020-01-10 Pedro Alves <palves@redhat.com>
6319 * gdbarch-selftests.c (register_to_value_test): Remove "target
6320 already pushed" check.
6322 2020-01-10 Pedro Alves <palves@redhat.com>
6323 John Baldwin <jhb@FreeBSD.org>
6325 * aarch64-linux-nat.c
6326 (aarch64_linux_nat_target::thread_architecture): Adjust.
6327 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
6328 (task_command_1): Likewise.
6329 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
6330 (aix_thread_target::wait, aix_thread_target::fetch_registers)
6331 (aix_thread_target::store_registers)
6332 (aix_thread_target::thread_alive): Adjust.
6333 * amd64-fbsd-tdep.c: Include "inferior.h".
6334 (amd64fbsd_get_thread_local_address): Pass down target.
6335 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
6336 thread's gdbarch instead of target_gdbarch.
6337 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
6338 get_last_target_status.
6339 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
6340 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
6342 (update_inserted_breakpoint_locations): Skip if inferiors with no
6344 (update_global_location_list): When handling moribund locations,
6345 find representative inferior for location's pspace, and use thread
6346 count of its process_stratum target.
6347 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
6348 * bsd-uthread.c (bsd_uthread_target::wait): Use
6349 as_process_stratum_target and adjust thread_change_ptid and
6351 (bsd_uthread_target::update_thread_list): Use
6352 as_process_stratum_target and adjust find_thread_ptid,
6353 thread_change_ptid and add_thread calls.
6354 * btrace.c (maint_btrace_packet_history_cmd): Adjust
6355 find_thread_ptid call.
6356 * corelow.c (add_to_thread_list): Adjust add_thread call.
6357 (core_target_open): Adjust add_thread_silent and thread_count
6359 (core_target::pid_to_str): Adjust find_inferior_ptid call.
6360 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
6361 * event-top.c (async_disconnect): Pop targets from all inferiors.
6362 * exec.c (add_target_sections): Push exec target on all inferiors
6363 sharing the program space.
6364 (remove_target_sections): Remove the exec target from all
6365 inferiors sharing the program space.
6366 (exec_on_vfork): New.
6367 * exec.h (exec_on_vfork): Declare.
6368 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
6370 (fbsd_nat_target::update_thread_list): Adjust.
6371 (fbsd_nat_target::resume): Adjust.
6372 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
6374 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
6375 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
6376 get_thread_arch_regcache call.
6377 * fork-child.c (gdb_startup_inferior): Pass target down to
6378 startup_inferior and set_executing.
6379 * gdbthread.h (struct process_stratum_target): Forward declare.
6380 (add_thread, add_thread_silent, add_thread_with_info)
6381 (in_thread_list): Add process_stratum_target parameter.
6382 (find_thread_ptid(inferior*, ptid_t)): New overload.
6383 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
6385 (all_threads()): Delete overload.
6386 (all_threads, all_non_exited_threads): Add process_stratum_target
6388 (all_threads_safe): Use brace initialization.
6389 (thread_count): Add process_stratum_target parameter.
6390 (set_resumed, set_running, set_stop_requested, set_executing)
6391 (threads_are_executing, finish_thread_state): Add
6392 process_stratum_target parameter.
6393 (switch_to_thread): Use is_current_thread.
6394 * i386-fbsd-tdep.c: Include "inferior.h".
6395 (i386fbsd_get_thread_local_address): Pass down target.
6396 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
6397 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
6398 have_inferiors check.
6399 * inf-ptrace.c (inf_ptrace_target::create_inferior)
6400 (inf_ptrace_target::attach): Adjust.
6401 * infcall.c (run_inferior_call): Adjust.
6402 * infcmd.c (run_command_1): Pass target to
6403 scoped_finish_thread_state.
6404 (proceed_thread_callback): Skip inferiors with no execution.
6405 (continue_command): Rename 'all_threads' local to avoid hiding
6406 'all_threads' function. Adjust get_last_target_status call.
6407 (prepare_one_step): Adjust set_running call.
6408 (signal_command): Use user_visible_resume_target. Compare thread
6409 pointers instead of inferior_ptid.
6410 (info_program_command): Adjust to pass down target.
6411 (attach_command): Mark target's 'thread_executing' flag.
6412 (stop_current_target_threads_ns): New, factored out from ...
6413 (interrupt_target_1): ... this. Switch inferior before making
6416 (struct all_inferiors_iterator, struct all_inferiors_range)
6417 (struct all_inferiors_safe_range)
6418 (struct all_non_exited_inferiors_range): Filter on
6419 process_stratum_target too. Remove explicit.
6420 * inferior.c (inferior::inferior): Push dummy target on target
6422 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
6423 Add process_stratum_target parameter, and pass it down.
6424 (have_live_inferiors): Adjust.
6425 (switch_to_inferior_and_push_target): New.
6426 (add_inferior_command, clone_inferior_command): Handle
6427 "-no-connection" parameter. Use
6428 switch_to_inferior_and_push_target.
6429 (_initialize_inferior): Mention "-no-connection" option in
6430 the help of "add-inferior" and "clone-inferior" commands.
6431 * inferior.h: Include "process-stratum-target.h".
6432 (interrupt_target_1): Use bool.
6433 (struct inferior) <push_target, unpush_target, target_is_pushed,
6434 find_target_beneath, top_target, process_target, target_at,
6436 (discard_all_inferiors): Delete.
6437 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
6438 (all_inferiors, all_non_exited_inferiors): Add
6439 process_stratum_target parameter.
6440 * infrun.c: Include "gdb_select.h" and <unordered_map>.
6441 (target_last_proc_target): New global.
6442 (follow_fork_inferior): Push target on new inferior. Pass target
6443 to add_thread_silent. Call exec_on_vfork. Handle target's
6445 (follow_fork): Adjust get_last_target_status call. Also consider
6447 (follow_exec): Push target on new inferior.
6448 (struct execution_control_state) <target>: New field.
6449 (user_visible_resume_target): New.
6450 (do_target_resume): Call target_async.
6451 (resume_1): Set target's threads_executing flag. Consider resume
6453 (commit_resume_all_targets): New.
6454 (proceed): Also consider resume target. Skip threads of inferiors
6455 with no execution. Commit resumtion in all targets.
6456 (start_remote): Pass current inferior to wait_for_inferior.
6457 (infrun_thread_stop_requested): Consider target as well. Pass
6458 thread_info pointer to clear_inline_frame_state instead of ptid.
6459 (infrun_thread_thread_exit): Consider target as well.
6460 (random_pending_event_thread): New inferior parameter. Use it.
6461 (do_target_wait): Rename to ...
6462 (do_target_wait_1): ... this. Add inferior parameter, and pass it
6464 (threads_are_resumed_pending_p, do_target_wait): New.
6465 (prepare_for_detach): Adjust calls.
6466 (wait_for_inferior): New inferior parameter. Handle it. Use
6467 do_target_wait_1 instead of do_target_wait.
6468 (fetch_inferior_event): Adjust. Switch to representative
6469 inferior. Pass target down.
6470 (set_last_target_status): Add process_stratum_target parameter.
6471 Save target in global.
6472 (get_last_target_status): Add process_stratum_target parameter and
6474 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
6475 (context_switch): Check inferior_ptid == null_ptid before calling
6477 (get_inferior_stop_soon): Pass down target.
6478 (wait_one): Rename to ...
6479 (poll_one_curr_target): ... this.
6480 (struct wait_one_event): New.
6482 (stop_all_threads): Adjust.
6483 (handle_no_resumed, handle_inferior_event): Adjust to consider the
6485 (switch_back_to_stepped_thread): Also consider target.
6486 (print_stop_event): Update.
6487 (normal_stop): Update. Also consider the resume target.
6488 * infrun.h (wait_for_inferior): Remove declaration.
6489 (user_visible_resume_target): New declaration.
6490 (get_last_target_status, set_last_target_status): New
6491 process_stratum_target parameter.
6492 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
6493 process_stratum_target parameter, and use it.
6494 (clear_inline_frame_state (thread_info*)): New.
6495 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
6496 process_stratum_target parameter.
6497 (clear_inline_frame_state (thread_info*)): Declare.
6498 * linux-fork.c (delete_checkpoint_command): Pass target down to
6500 (checkpoint_command): Adjust.
6501 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
6502 instead of just tweaking inferior_ptid.
6503 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
6504 (exit_lwp): Pass target down to find_thread_ptid.
6505 (attach_proc_task_lwp_callback): Pass target down to
6506 add_thread/set_running/set_executing.
6507 (linux_nat_target::attach): Pass target down to
6509 (get_detach_signal): Pass target down to find_thread_ptid.
6510 Consider last target status's target.
6511 (linux_resume_one_lwp_throw, resume_lwp)
6512 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
6513 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
6514 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
6515 (linux_nat_target::async_wait_fd): New.
6516 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
6518 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
6519 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
6520 * linux-thread-db.c (struct thread_db_info::process_target): New
6522 (add_thread_db_info): Save target.
6523 (get_thread_db_info): New process_stratum_target parameter. Also
6525 (delete_thread_db_info): New process_stratum_target parameter.
6527 (thread_from_lwp): Adjust to pass down target.
6528 (thread_db_notice_clone): Pass down target.
6529 (check_thread_db_callback): Pass down target.
6530 (try_thread_db_load_1): Always push the thread_db target.
6531 (try_thread_db_load, record_thread): Pass target down.
6532 (thread_db_target::detach): Pass target down. Always unpush the
6534 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
6535 target down. Always unpush the thread_db target.
6536 (find_new_threads_callback, thread_db_find_new_threads_2)
6537 (thread_db_target::update_thread_list): Pass target down.
6538 (thread_db_target::pid_to_str): Pass current inferior down.
6539 (thread_db_target::get_thread_local_address): Pass target down.
6540 (thread_db_target::resume, maintenance_check_libthread_db): Pass
6542 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
6543 * procfs.c (procfs_target::procfs_init_inferior): Declare.
6544 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
6545 (procfs_init_inferior): Rename to ...
6546 (procfs_target::procfs_init_inferior): ... this and adjust.
6547 (procfs_target::create_inferior, procfs_notice_thread)
6548 (procfs_do_thread_registers): Adjust.
6549 * ppc-fbsd-tdep.c: Include "inferior.h".
6550 (ppcfbsd_get_thread_local_address): Pass down target.
6551 * proc-service.c (ps_xfer_memory): Switch current inferior and
6552 program space as well.
6553 (get_ps_regcache): Pass target down.
6554 * process-stratum-target.c
6555 (process_stratum_target::thread_address_space)
6556 (process_stratum_target::thread_architecture): Pass target down.
6557 * process-stratum-target.h
6558 (process_stratum_target::threads_executing): New field.
6559 (as_process_stratum_target): New.
6560 * ravenscar-thread.c
6561 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
6562 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
6564 * record-btrace.c (record_btrace_target::info_record): Adjust.
6565 (record_btrace_target::record_method)
6566 (record_btrace_target::record_is_replaying)
6567 (record_btrace_target::fetch_registers)
6568 (get_thread_current_frame_id, record_btrace_target::resume)
6569 (record_btrace_target::wait, record_btrace_target::stop): Pass
6571 * record-full.c (record_full_wait_1): Switch to event thread.
6573 * regcache.c (regcache::regcache)
6574 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
6575 process_stratum_target parameter and handle it.
6576 (current_thread_target): New global.
6577 (get_thread_regcache): Add process_stratum_target parameter and
6578 handle it. Switch inferior before calling target method.
6579 (get_thread_regcache): Pass target down.
6580 (get_thread_regcache_for_ptid): Pass target down.
6581 (registers_changed_ptid): Add process_stratum_target parameter and
6583 (registers_changed_thread, registers_changed): Pass target down.
6584 (test_get_thread_arch_aspace_regcache): New.
6585 (current_regcache_test): Define a couple local test_target_ops
6586 instances and use them for testing.
6587 (readwrite_regcache): Pass process_stratum_target parameter.
6588 (cooked_read_test, cooked_write_test): Pass mock_target down.
6589 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
6590 (get_thread_arch_aspace_regcache): Add process_stratum_target
6592 (regcache::target): New method.
6593 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
6594 (regcache::registers_changed_ptid): Add process_stratum_target
6596 (regcache::m_target): New field.
6597 (registers_changed_ptid): Add process_stratum_target parameter.
6598 * remote.c (remote_state::supports_vCont_probed): New field.
6599 (remote_target::async_wait_fd): New method.
6600 (remote_unpush_and_throw): Add remote_target parameter.
6601 (get_current_remote_target): Adjust.
6602 (remote_target::remote_add_inferior): Push target.
6603 (remote_target::remote_add_thread)
6604 (remote_target::remote_notice_new_inferior)
6605 (get_remote_thread_info): Pass target down.
6606 (remote_target::update_thread_list): Skip threads of inferiors
6607 bound to other targets. (remote_target::close): Don't discard
6608 inferiors. (remote_target::add_current_inferior_and_thread)
6609 (remote_target::process_initial_stop_replies)
6610 (remote_target::start_remote)
6611 (remote_target::remote_serial_quit_handler): Pass down target.
6612 (remote_target::remote_unpush_target): New remote_target
6613 parameter. Unpush the target from all inferiors.
6614 (remote_target::remote_unpush_and_throw): New remote_target
6615 parameter. Pass it down.
6616 (remote_target::open_1): Check whether the current inferior has
6617 execution instead of checking whether any inferior is live. Pass
6619 (remote_target::remote_detach_1): Pass down target. Use
6620 remote_unpush_target.
6621 (extended_remote_target::attach): Pass down target.
6622 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
6623 (remote_target::append_resumption): Pass down target.
6624 (remote_target::append_pending_thread_resumptions)
6625 (remote_target::remote_resume_with_hc, remote_target::resume)
6626 (remote_target::commit_resume): Pass down target.
6627 (remote_target::remote_stop_ns): Check supports_vCont_probed.
6628 (remote_target::interrupt_query)
6629 (remote_target::remove_new_fork_children)
6630 (remote_target::check_pending_events_prevent_wildcard_vcont)
6631 (remote_target::remote_parse_stop_reply)
6632 (remote_target::process_stop_reply): Pass down target.
6633 (first_remote_resumed_thread): New remote_target parameter. Pass
6635 (remote_target::wait_as): Pass down target.
6636 (unpush_and_perror): New remote_target parameter. Pass it down.
6637 (remote_target::readchar, remote_target::remote_serial_write)
6638 (remote_target::getpkt_or_notif_sane_1)
6639 (remote_target::kill_new_fork_children, remote_target::kill): Pass
6641 (remote_target::mourn_inferior): Pass down target. Use
6642 remote_unpush_target.
6643 (remote_target::core_of_thread)
6644 (remote_target::remote_btrace_maybe_reopen): Pass down target.
6645 (remote_target::pid_to_exec_file)
6646 (remote_target::thread_handle_to_thread_info): Pass down target.
6647 (remote_target::async_wait_fd): New.
6648 * riscv-fbsd-tdep.c: Include "inferior.h".
6649 (riscv_fbsd_get_thread_local_address): Pass down target.
6650 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
6651 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
6652 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
6654 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
6655 * solib-svr4.c (enable_break): Pass down target.
6656 * spu-multiarch.c (parse_spufs_run): Pass down target.
6657 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
6658 * target-delegates.c: Regenerate.
6659 * target.c (g_target_stack): Delete.
6660 (current_top_target): Return the current inferior's top target.
6661 (target_has_execution_1): Refer to the passed-in inferior's top
6663 (target_supports_terminal_ours): Check whether the initial
6664 inferior was already created.
6665 (decref_target): New.
6666 (target_stack::push): Incref/decref the target.
6667 (push_target, push_target, unpush_target): Adjust.
6668 (target_stack::unpush): Defref target.
6669 (target_is_pushed): Return bool. Adjust to refer to the current
6670 inferior's target stack.
6671 (dispose_inferior): Delete, and inline parts ...
6672 (target_preopen): ... here. Only dispose of the current inferior.
6673 (target_detach): Hold strong target reference while detaching.
6675 (target_thread_name): Add assertion.
6676 (target_resume): Pass down target.
6677 (target_ops::beneath, find_target_at): Adjust to refer to the
6678 current inferior's target stack.
6679 (get_dummy_target): New.
6680 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
6681 has a thread running.
6682 (initialize_targets): Rename to ...
6683 (_initialize_target): ... this.
6684 * target.h: Include "gdbsupport/refcounted-object.h".
6685 (struct target_ops): Inherit refcounted_object.
6686 (target_ops::shortname, target_ops::longname): Make const.
6687 (target_ops::async_wait_fd): New method.
6688 (decref_target): Declare.
6689 (struct target_ops_ref_policy): New.
6690 (target_ops_ref): New typedef.
6691 (get_dummy_target): Declare function.
6692 (target_is_pushed): Return bool.
6693 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
6694 (all_matching_threads_iterator::all_matching_threads_iterator):
6695 Handle filter target.
6696 * thread-iter.h (struct all_matching_threads_iterator, struct
6697 all_matching_threads_range, class all_non_exited_threads_range):
6698 Filter by target too. Remove explicit.
6699 * thread.c (threads_executing): Delete.
6700 (inferior_thread): Pass down current inferior.
6701 (clear_thread_inferior_resources): Pass down thread pointer
6703 (add_thread_silent, add_thread_with_info, add_thread): Add
6704 process_stratum_target parameter. Use it for thread and inferior
6706 (is_current_thread): New.
6707 (thread_info::deletable): Use it.
6708 (find_thread_ptid, thread_count, in_thread_list)
6709 (thread_change_ptid, set_resumed, set_running): New
6710 process_stratum_target parameter. Pass it down.
6711 (set_executing): New process_stratum_target parameter. Pass it
6712 down. Adjust reference to 'threads_executing'.
6713 (threads_are_executing): New process_stratum_target parameter.
6714 Adjust reference to 'threads_executing'.
6715 (set_stop_requested, finish_thread_state): New
6716 process_stratum_target parameter. Pass it down.
6717 (switch_to_thread): Also match inferior.
6718 (switch_to_thread): New process_stratum_target parameter. Pass it
6720 (update_threads_executing): Reimplement.
6721 * top.c (quit_force): Pop targets from all inferior.
6722 (gdb_init): Don't call initialize_targets.
6723 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
6725 (windows_add_thread, windows_delete_thread): Adjust.
6726 (get_windows_debug_event): Rename to ...
6727 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
6728 * tracefile-tfile.c (tfile_target_open): Pass down target.
6729 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
6731 (switch_to_thread): Add process_stratum_target parameter.
6732 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
6734 (mi_on_resume): Pass target down.
6735 * nat/fork-inferior.c (startup_inferior): Add
6736 process_stratum_target parameter. Pass it down.
6737 * nat/fork-inferior.h (startup_inferior): Add
6738 process_stratum_target parameter.
6739 * python/py-threadevent.c (py_get_event_thread): Pass target down.
6741 2020-01-10 Pedro Alves <palves@redhat.com>
6743 * remote.c (remote_target::start_remote): Don't set inferior_ptid
6744 directly. Instead find the first thread in the thread list and
6745 use switch_to_thread.
6747 2020-01-10 Pedro Alves <palves@redhat.com>
6749 * remote.c (remote_target::remote_add_inferior): Don't bind a
6750 process to the current inferior if the current inferior is already
6753 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6754 Pedro Alves <palves@redhat.com>
6756 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
6757 If no process is specified, return null_ptid instead of
6759 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
6760 TARGET_WAITKIND_SIGNALLED with no pid.
6762 2020-01-10 Pedro Alves <palves@redhat.com>
6764 * remote.c (first_remote_resumed_thread): New.
6765 (remote_target::wait_as): Use it as default event_ptid instead of
6768 2020-01-10 Pedro Alves <palves@redhat.com>
6770 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
6772 2020-01-10 Pedro Alves <palves@redhat.com>
6774 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
6777 2020-01-10 Pedro Alves <palves@redhat.com>
6779 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
6780 ptid to get_last_target_status.
6781 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
6782 ptid to get_last_target_status.
6783 * infcmd.c (continue_command): Don't pass a target_waitstatus to
6784 get_last_target_status.
6785 (info_program_command): Don't pass a target_waitstatus to
6786 get_last_target_status.
6787 * infrun.c (init_wait_for_inferior): Use
6788 nullify_last_target_wait_ptid.
6789 (get_last_target_status): Handle nullptr arguments.
6790 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
6791 (print_stop_event): Don't pass a ptid to get_last_target_status.
6792 (normal_stop): Don't pass a ptid to get_last_target_status.
6793 * infrun.h (get_last_target_status, set_last_target_status): Move
6794 comments here and update.
6795 (nullify_last_target_wait_ptid): Declare.
6796 * linux-fork.c (fork_load_infrun_state): Remove local extern
6797 declaration of nullify_last_target_wait_ptid.
6798 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
6799 to get_last_target_status.
6801 2020-01-10 Pedro Alves <palves@redhat.com>
6803 * gdbthread.h (scoped_restore_current_thread)
6804 <dont_restore, restore, m_dont_restore>: Declare.
6805 * thread.c (thread_alive): Add assertion. Return bool.
6806 (switch_to_thread_if_alive): New.
6807 (prune_threads): Switch inferior/thread.
6808 (print_thread_info_1): Switch thread before calling target methods.
6809 (scoped_restore_current_thread::restore): New, factored out from
6811 (scoped_restore_current_thread::~scoped_restore_current_thread):
6813 (scoped_restore_current_thread::scoped_restore_current_thread):
6815 (thread_apply_all_command, thread_select): Use
6816 switch_to_thread_if_alive.
6817 * infrun.c (proceed, restart_threads, handle_signal_stop)
6818 (switch_back_to_stepped_thread): Switch current thread before
6819 calling target methods.
6821 2020-01-10 Pedro Alves <palves@redhat.com>
6823 * inferior.c (switch_to_inferior_no_thread): New function,
6824 factored out from ...
6825 (inferior_command): ... here.
6826 * inferior.h (switch_to_inferior_no_thread): Declare.
6827 * mi/mi-main.c (run_one_inferior): Use
6828 switch_to_inferior_no_thread.
6830 2020-01-10 Pedro Alves <palves@redhat.com>
6832 * infcmd.c (kill_command): Remove dead code.
6834 2020-01-10 Pedro Alves <palves@redhat.com>
6836 * remote.c (remote_target::mourn_inferior): No longer check
6837 whether the target is running.
6839 2020-01-10 Pedro Alves <palves@redhat.com>
6841 * corelow.c (core_target::has_execution): Change parameter type to
6843 * inferior.c (number_of_live_inferiors): Use
6844 inferior::has_execution instead of target_has_execution_1.
6845 * inferior.h (inferior::has_execution): New.
6846 * linux-thread-db.c (thread_db_target::update_thread_list): Use
6847 inferior::has_execution instead of target_has_execution_1.
6848 * process-stratum-target.c
6849 (process_stratum_target::has_execution): Change parameter type to
6850 inferior pointer. Check the inferior's PID instead of
6852 * process-stratum-target.h
6853 (process_stratum_target::has_execution): Change parameter type to
6855 * record-full.c (record_full_core_target::has_execution): Change
6856 parameter type to inferior pointer.
6857 * target.c (target_has_execution_1): Change parameter type to
6859 (target_has_execution_current): Adjust.
6860 * target.h (target_ops::has_execution): Change parameter type to
6862 (target_has_execution_1): Change parameter type to inferior
6863 pointer. Change return type to bool.
6864 * tracefile.h (tracefile_target::has_execution): Change parameter
6865 type to inferior pointer.
6867 2020-01-10 Pedro Alves <palves@redhat.com>
6869 * exceptions.c (print_flush): Remove current_top_target() check.
6871 2020-01-10 Pedro Alves <palves@redhat.com>
6873 * remote.c (show_remote_exec_file): Show the current inferior's
6874 exec-file instead of the command variable's value.
6876 2020-01-10 Pedro Alves <palves@redhat.com>
6878 * record-full.c (record_full_resume_ptid): New global.
6879 (record_full_target::resume): Set it.
6880 (record_full_wait_1): Use record_full_resume_ptid instead of
6883 2020-01-10 Pedro Alves <palves@redhat.com>
6885 * gdbthread.h (scoped_restore_current_thread)
6886 <dont_restore, restore, m_dont_restore>: Declare.
6887 * thread.c (thread_alive): Add assertion. Return bool.
6888 (switch_to_thread_if_alive): New.
6889 (prune_threads): Switch inferior/thread.
6890 (print_thread_info_1): Switch thread before calling target methods.
6891 (scoped_restore_current_thread::restore): New, factored out from
6893 (scoped_restore_current_thread::~scoped_restore_current_thread):
6895 (scoped_restore_current_thread::scoped_restore_current_thread):
6897 (thread_apply_all_command, thread_select): Use
6898 switch_to_thread_if_alive.
6900 2020-01-10 George Barrett <bob@bob131.so>
6902 * stap-probe.c (stap_modify_semaphore): Don't check for null
6904 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
6905 for null semaphores.
6907 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
6909 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
6910 all source windows, and maintain horizontal scroll status while
6913 2020-01-09 Tom Tromey <tom@tromey.com>
6916 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
6917 update_source_window, not print_source_lines.
6919 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
6921 * tui/tui.c (tui_enable): Register tui hooks after calling
6924 2020-01-09 Christian Biesinger <cbiesinger@google.com>
6926 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
6928 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
6930 * thread.c (print_thread_info_1): Fix indentation.
6932 2020-01-09 Christian Biesinger <cbiesinger@google.com>
6934 * symtab.c (general_symbol_info::compute_and_set_names): Move the
6935 unique_xmalloc_ptr outside the if to always free the demangled name.
6937 2020-01-08 Tom Tromey <tromey@adacore.com>
6939 * xcoffread.c (enter_line_range, read_xcoff_symtab)
6940 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
6941 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
6942 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
6944 (section_offsets): New typedef.
6945 * symtab.c (fixup_section, get_msymbol_address): Update.
6946 * symmisc.c (dump_msymbols): Update.
6947 * symfile.h (relative_addr_info_to_section_offsets)
6948 (symfile_map_offsets_to_segments): Update.
6949 * symfile.c (build_section_addr_info_from_objfile)
6950 (init_objfile_sect_indices): Update.
6951 (struct place_section_arg): Change type of "offsets".
6952 (place_section): Update.
6953 (relative_addr_info_to_section_offsets): Change type of
6954 "section_offsets". Remove "num_sections" parameter.
6955 (default_symfile_offsets, syms_from_objfile_1)
6956 (set_objfile_default_section_offset): Update.
6957 (reread_symbols): No need to preserve section offsets by hand.
6958 (symfile_map_offsets_to_segments): Change type of "offsets".
6959 * stap-probe.c (relocate_address): Update.
6960 * stabsread.h (process_one_symbol): Update.
6961 * solib-target.c (struct lm_info_target) <offsets>: Change type.
6962 (solib_target_relocate_section_addresses): Update.
6963 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
6965 * solib-frv.c (frv_relocate_main_executable): Update.
6966 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
6967 * solib-aix.c (solib_aix_get_section_offsets): Change return
6969 (solib_aix_solib_create_inferior_hook): Update.
6970 * remote.c (remote_target::get_offsets): Update.
6971 * psymtab.c (find_pc_sect_psymtab): Update.
6972 * psympriv.h (struct partial_symbol) <address, text_low,
6974 * objfiles.h (obj_section_offset): Update.
6975 (struct objfile) <section_offsets>: Change type.
6976 <num_sections>: Remove.
6977 (objfile_relocate): Update.
6978 * objfiles.c (entry_point_address_query): Update
6979 (relocate_one_symbol): Change type of "section_offsets".
6980 (objfile_relocate1, objfile_relocate1): Change type of
6982 (objfile_rebase1): Update.
6983 * mipsread.c (mipscoff_symfile_read): Update.
6984 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
6986 * mdebugread.c (parse_symbol): Change type of "section_offsets".
6987 (parse_external, psymtab_to_symtab_1): Update.
6988 * machoread.c (macho_symfile_offsets): Update.
6989 * ia64-tdep.c (ia64_find_unwind_table): Update.
6990 * hppa-tdep.c (read_unwind_info): Update.
6991 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
6992 * dwarf2read.c (create_addrmap_from_index)
6993 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6994 (process_psymtab_comp_unit_reader, add_partial_symbol)
6995 (add_partial_subprogram, process_full_comp_unit)
6996 (read_file_scope, read_func_scope, read_lexical_block_scope)
6997 (read_call_site_scope, dwarf2_rnglists_process)
6998 (dwarf2_ranges_process, dwarf2_ranges_read)
6999 (dwarf_decode_lines_1, var_decode_location, new_symbol)
7000 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
7002 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
7004 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
7005 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
7006 (process_one_symbol): Change type of "section_offsets".
7007 * ctfread.c (get_objfile_text_range): Update.
7008 * coffread.c (coff_symtab_read, enter_linenos)
7009 (process_coff_symbol): Update.
7010 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7011 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
7013 2020-01-08 Tom Tromey <tromey@adacore.com>
7015 * dwarf2read.c (parse_macro_definition): Use std::string.
7016 (parse_macro_definition): Likewise.
7018 2020-01-08 Tom Tromey <tromey@adacore.com>
7020 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
7021 (ATTR_ALLOC_CHUNK): Remove.
7023 2020-01-08 Tom Tromey <tromey@adacore.com>
7025 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
7027 2020-01-08 Tom Tromey <tromey@adacore.com>
7029 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
7030 (dwarf2_compute_name, open_dwo_file): Likewise.
7031 (process_enumeration_scope): Use std::vector.
7032 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
7033 (partial_die_info::fixup, dwarf2_start_subfile)
7034 (guess_full_die_structure_name, dwarf2_name): Likewise.
7035 (determine_prefix): Update.
7036 (guess_full_die_structure_name): Make return type const.
7037 (partial_die_full_name): Return unique_xmalloc_ptr.
7038 (DW_FIELD_ALLOC_CHUNK): Remove.
7040 2020-01-07 Tom Tromey <tromey@adacore.com>
7043 * stap-probe.c (class stap_static_probe_ops): Add constructor.
7045 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
7047 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
7049 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
7051 * stack.c (print_frame_info): Move disassemble_next_line code
7052 inside source_print block.
7054 2020-01-06 Eli Zaretskii <eliz@gnu.org>
7056 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
7057 gdb/signals.h, as we are now using native signal symbols.
7059 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
7061 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
7062 overflow by an early check of content vs threshold.
7063 * tui/tui-source.c (tui_source_window::line_is_displayed):
7066 2020-01-06 Eli Zaretskii <eliz@gnu.org>
7068 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
7070 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
7072 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
7073 export table if no section contains it's RVA.
7075 2020-01-06 Eli Zaretskii <eliz@gnu.org>
7077 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
7079 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
7081 * source.c (print_source_lines_base): Set last_line_listed.
7083 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
7085 * tui/tui-disasm.c: Remove trailing spaces.
7087 2020-01-06 Eli Zaretskii <eliz@gnu.org>
7088 Pedro Alves <palves@redhat.com>
7090 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
7091 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
7092 (windows_gdb_signal_to_target): New function, uses the above
7093 enumeration to convert GDB internal signal codes to equivalent
7095 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
7096 * windows-nat.c: Include "gdb_wait.h".
7097 (get_windows_debug_event): Extract the fatal exception from the
7098 exit status and convert to the equivalent Posix signal number.
7099 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
7100 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
7101 * gdbsupport/gdb_wait.c: New file, implements
7102 windows_status_to_termsig.
7103 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
7104 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
7106 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
7108 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
7111 2020-01-05 Luis Machado <luis.machado@linaro.org>
7113 * aarch64-linux-nat.c
7114 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
7115 and bfd_mach_aarch64.
7117 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7119 * ui-file.c (stdio_file::can_emit_style_escape)
7120 (tee_file::can_emit_style_escape): Ensure style is used also on
7121 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
7123 * main.c (set_gdb_data_directory): Use file style to output the
7124 warning that the given pathname is not a directory.
7125 * top.c (show_history_filename, gdb_safe_append_history)
7126 (show_gdb_datadir): Use file style.
7128 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
7130 * solib-target.c (struct lm_info_target):
7131 Change offsets to be a unique_xmalloc_ptr.
7132 (solib_target_relocate_section_addresses): Update.
7134 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
7136 * windows-nat.c (windows_clear_solib): Free so_list linked list.
7138 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
7140 * MAINTAINERS (Write After Approval): Add myself.
7142 2020-01-02 Luis Machado <luis.machado@linaro.org>
7144 * proc-service.c (get_ps_regcache): Remove reference to obsolete
7145 Cell BE architecture.
7146 * target.h (struct target_ops) <thread_architecture>: Likewise.
7148 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
7150 * Makefile.in: Use INSTALL_PROGRAM_ENV.
7152 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
7154 * MAINTAINERS (Write After Approval): Add myself.
7156 2020-01-01 Joel Brobecker <brobecker@adacore.com>
7158 * gdbarch.sh: Update copyright year range of generated files.
7160 2020-01-01 Joel Brobecker <brobecker@adacore.com>
7162 Update copyright year range in all GDB files.
7164 2020-01-01 Joel Brobecker <brobecker@adacore.com>
7166 * copyright.py: Convert to Python 3.
7168 2020-01-01 Joel Brobecker <brobecker@adacore.com>
7170 * copyright.py: Adapt after move of gnulib directory from gdb
7171 directory to toplevel directory.
7173 2020-01-01 Joel Brobecker <brobecker@adacore.com>
7175 * copyright.py (main): Exit if run from the wrong directory.
7177 2020-01-01 Joel Brobecker <brobecker@adacore.com>
7179 * top.c (print_gdb_version): Change copyright year to 2020.
7181 2020-01-01 Joel Brobecker <brobecker@adacore.com>
7183 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
7185 For older changes see ChangeLog-2019.
7191 version-control: never