1 2020-04-24 Tom Tromey <tom@tromey.com>
3 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4 (add_psymbol_to_list): New overload. Make old overload call new
6 * psympriv.h (add_psymbol_to_list): New overload.
8 2020-04-24 Tom Tromey <tom@tromey.com>
10 * dwarf2/read.c (partial_die_info::read) <case
11 DW_AT_linkage_name>: Use value_as_string.
12 (dwarf2_string_attr): Use value_as_string.
13 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
15 * dwarf2/attribute.c (attribute::value_as_string): New method.
17 2020-04-24 Tom Tromey <tom@tromey.com>
19 * symtab.c (general_symbol_info::natural_name)
20 (general_symbol_info::demangled_name): Check for language_rust.
22 2020-04-24 Tom Tromey <tom@tromey.com>
24 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
25 (dwarf2_physname): ... from here.
26 (partial_die_info::read): Add Rust "{" hack.
28 2020-04-24 Tom Tromey <tom@tromey.com>
30 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
32 (symbol_set_demangled_name): Don't declare.
33 * symtab.c (general_symbol_info::set_demangled_name): Rename from
34 symbol_set_demangled_name.
35 (general_symbol_info::set_language)
36 (general_symbol_info::compute_and_set_names): Update.
37 * minsyms.c (minimal_symbol_reader::install): Update.
38 * dwarf2/read.c (new_symbol): Update.
40 2020-04-24 Tom Tromey <tromey@adacore.com>
43 * python/py-type.c (convert_field): Handle
44 FIELD_LOC_KIND_DWARF_BLOCK.
45 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
46 (typy_get_dynamic): Nw function.
47 (type_object_getset): Add "dynamic".
50 2020-04-24 Tom Tromey <tromey@adacore.com>
52 * ada-typeprint.c (print_choices, print_variant_part)
53 (print_record_field_types_dynamic): New functions.
54 (print_record_field_types): Use print_record_field_types_dynamic.
56 2020-04-24 Tom Tromey <tromey@adacore.com>
58 * dwarf2/read.c (handle_data_member_location): New overload.
59 (dwarf2_add_field): Use it.
60 (decode_locdesc): Add "computed" parameter. Update comment.
61 * gdbtypes.c (is_dynamic_type_internal): Also look for
62 FIELD_LOC_KIND_DWARF_BLOCK.
63 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
64 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
66 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
67 FIELD_LOC_KIND_DWARF_BLOCK.
69 2020-04-24 Tom Tromey <tromey@adacore.com>
71 * dwarf2/read.c (read_structure_type): Handle dynamic length.
72 * gdbtypes.c (is_dynamic_type_internal): Check
73 TYPE_HAS_DYNAMIC_LENGTH.
74 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
75 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
77 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
80 2020-04-24 Tom Tromey <tromey@adacore.com>
82 * dwarf2/read.c (struct variant_field): Rewrite.
83 (struct variant_part_builder): New.
84 (struct nextfield): Remove "variant" field. Add "offset".
85 (struct field_info): Add "current_variant_part" and
87 (alloc_discriminant_info): Remove.
88 (alloc_rust_variant): New function.
89 (quirk_rust_enum): Update.
90 (dwarf2_add_field): Set "offset" member. Don't handle
92 (offset_map_type): New typedef.
93 (convert_variant_range, create_one_variant)
94 (create_one_variant_part, create_variant_parts)
95 (add_variant_property): New functions.
96 (dwarf2_attach_fields_to_type): Call add_variant_property.
97 (read_structure_type): Don't handle DW_TAG_variant_part.
98 (handle_variant_part, handle_variant): New functions.
99 (handle_struct_member_die): Use them.
100 (process_structure_scope): Don't handle variant parts.
101 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
102 (struct discriminant_info): Remove.
103 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
104 (struct main_type) <flag_discriminated_union>: Remove.
105 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
106 (rust_enum_variant): Return int. Remove "contents". Rewrite.
107 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
109 * valops.c (value_union_variant): Remove.
110 * value.h (value_union_variant): Don't declare.
112 2020-04-24 Tom Tromey <tromey@adacore.com>
114 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
115 (ada_value_primitive_packed_val): Update.
116 * ada-valprint.c (ada_value_print_1): Update.
117 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
118 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
119 just an address. Use evaluate_for_locexpr_baton.
120 (dwarf2_evaluate_property): Update.
121 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
123 * findvar.c (default_read_var_value): Update.
124 * gdbtypes.c (compute_variant_fields_inner)
125 (resolve_dynamic_type_internal): Update.
126 (resolve_dynamic_type): Change type of valaddr parameter.
127 * gdbtypes.h (resolve_dynamic_type): Update.
128 * valarith.c (value_subscripted_rvalue): Update.
129 * value.c (value_from_contents_and_address): Update.
131 2020-04-24 Tom Tromey <tromey@adacore.com>
133 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
134 "push_initial_value" parameter.
135 (dwarf2_evaluate_property): Likewise.
136 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
138 2020-04-24 Tom Tromey <tromey@adacore.com>
140 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
141 (variant::matches, compute_variant_fields_recurse)
142 (compute_variant_fields_inner, compute_variant_fields): New
144 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
145 Use resolved_type after type is made.
146 (operator==): Add new cases.
147 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
148 (struct discriminant_range, struct variant, struct variant_part):
150 (union dynamic_prop_data) <variant_parts, original_type>: New
152 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
153 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
155 * value.c (unpack_bits_as_long): Now public.
156 * value.h (unpack_bits_as_long): Declare.
158 2020-04-24 Tom Tromey <tromey@adacore.com>
160 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
161 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
163 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
165 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
167 2020-04-24 Kamil Rytarowski <n54@gmx.com>
169 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
170 (remove_fork_catchpoint, post_startup_inferior)
171 (post_attach): Move...
172 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
173 (remove_fork_catchpoint, post_startup_inferior)
174 (post_attach): ...here.
175 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
176 (remove_fork_catchpoint, post_startup_inferior)
177 (post_attach): Move...
178 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
179 (remove_fork_catchpoint, post_startup_inferior)
180 (post_attach): ...here.
182 2020-04-24 Tom Tromey <tromey@adacore.com>
184 * nat/windows-nat.h (struct windows_thread_info)
185 <pc_adjusted>: New member.
186 * windows-nat.c (windows_fetch_one_register): Check
188 (windows_nat_target::get_windows_debug_event)
189 (windows_nat_target::wait): Set pc_adjusted.
191 2020-04-24 Tom de Vries <tdevries@suse.de>
193 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
194 Run gdb-add-index inside temp dir.
196 2020-04-23 Tom Tromey <tromey@adacore.com>
198 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
201 2020-04-23 Luis Machado <luis.machado@linaro.org>
203 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
204 get_frame_register instead of gdbarch_unwind_pc.
206 2020-04-23 Tom de Vries <tdevries@suse.de>
208 * symtab.c (lookup_global_symbol): Prefer def over decl.
210 2020-04-23 Tom de Vries <tdevries@suse.de>
213 * block.c (best_symbol, better_symbol): Promote to external.
214 * block.h (best_symbol, better_symbol): Declare.
215 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
218 2020-04-23 Tom Tromey <tromey@adacore.com>
221 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
222 "const char *", not a "const std::string &".
223 <name_and_matcher::operator==>: Update.
224 * unittests/lookup_name_info-selftests.c: Change type of
227 2020-04-23 Tom Tromey <tom@tromey.com>
229 * inferior.h (iterate_over_inferiors): Don't declare.
230 * inferior.c (iterate_over_inferiors): Remove.
231 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
233 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
234 use iterate_over_inferiors.
235 (darwin_resume_inferior_it)
236 (struct resume_inferior_threads_param)
237 (darwin_resume_inferior_threads_it): Remove.
238 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
240 2020-04-23 Tom de Vries <tdevries@suse.de>
242 * blockframe.c (find_pc_partial_function): Use
243 find_pc_sect_compunit_symtab rather than
244 objfile->sf->qf->find_pc_sect_compunit_symtab.
246 2020-04-22 Tom de Vries <tdevries@suse.de>
249 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
252 2020-04-22 Tom de Vries <tdevries@suse.de>
255 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
258 2020-04-22 Tom de Vries <tdevries@suse.de>
261 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
262 CU if already created.
264 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
266 * infrun.c (displaced_step_fixup): Switch to the event_thread
267 before calling displaced_step_restore, not after.
269 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
271 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
272 its inferior is not recorded by us.
273 (record_btrace_target_open): Replace call to
274 all_non_exited_threads () with call to current_inferior
275 ()->non_exited_threads ().
276 (record_btrace_target::stop_recording): Likewise.
277 (record_btrace_target::close): Likewise.
278 (record_btrace_target::wait): Likewise.
279 (record_btrace_target::record_stop_replaying): Likewise.
281 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
283 * btrace.c (btrace_enable): Throw an error on double enables and
284 when enabling recording fails.
285 (btrace_disable): Throw an error if the thread is not recorded.
287 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
289 * record-btrace.c (record_btrace_target::fetch_registers): Forward
290 request if we do not have a thread_info.
292 2020-04-21 Tom de Vries <tdevries@suse.de>
296 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
297 exception in get_frame_id.
299 2020-04-20 Tom Tromey <tromey@adacore.com>
301 * python/python.c (struct gdbpy_event): Mark move constructor as
303 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
304 constructor as noexcept.
305 * completer.h (struct completion_result): Mark move constructor as
307 * completer.c (completion_result::completion_result): Use
308 initialization style. Don't call reset_match_list.
310 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
312 * MAINTAINERS (Write After Approval): Add myself.
314 2020-04-18 Tom Tromey <tom@tromey.com>
316 * windows-tdep.c (init_w32_command_list)
317 (w32_prefix_command_valid): Restore.
318 (_initialize_windows_tdep): Call init_w32_command_list.
320 2020-04-18 Tom Tromey <tom@tromey.com>
322 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
323 * value.c (value_fn_field): Update.
324 * valops.c (find_function_in_inferior)
325 (value_allocate_space_in_inferior): Update.
326 * tui/tui-winsource.c (tui_update_source_windows_with_line):
328 * tui/tui-source.c (tui_source_window::set_contents): Update.
329 * symtab.c (lookup_global_or_static_symbol)
330 (find_function_start_sal_1, skip_prologue_sal)
331 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
332 * symmisc.c (dump_msymbols, dump_symtab_1)
333 (maintenance_print_one_line_table): Update.
334 * symfile.c (init_entry_point_info, section_is_mapped)
335 (list_overlays_command, simple_read_overlay_table)
336 (simple_overlay_update_1): Update.
337 * stap-probe.c (handle_stap_probe): Update.
338 * stabsread.c (dbx_init_float_type, define_symbol)
339 (read_one_struct_field, read_enum_type, read_range_type): Update.
340 * source.c (info_line_command): Update.
341 * python/python.c (gdbpy_source_objfile_script)
342 (gdbpy_execute_objfile_script): Update.
343 * python/py-type.c (save_objfile_types): Update.
344 * python/py-objfile.c (py_free_objfile): Update.
345 * python/py-inferior.c (python_new_objfile): Update.
346 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
347 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
348 (maintenance_check_psymtabs): Update.
349 * printcmd.c (info_address_command): Update.
350 * objfiles.h (struct objfile) <arch>: New method, from
352 (get_objfile_arch): Don't declare.
353 * objfiles.c (get_objfile_arch): Remove.
354 (filter_overlapping_sections): Update.
355 * minsyms.c (msymbol_is_function): Update.
356 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
357 (output_nondebug_symbol): Update.
358 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
359 (mdebug_expand_psymtab): Update.
360 * machoread.c (macho_add_oso_symfile): Update.
361 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
363 * linux-fork.c (checkpoint_command): Update.
364 * linespec.c (convert_linespec_to_sals): Update.
365 * jit.c (finalize_symtab): Update.
366 * infrun.c (insert_exception_resume_from_probe): Update.
367 * ia64-tdep.c (ia64_find_unwind_table): Update.
368 * hppa-tdep.c (internalize_unwinds): Update.
369 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
371 * gcore.c (call_target_sbrk): Update.
372 * elfread.c (record_minimal_symbol, elf_symtab_read)
373 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
374 (elf_gnu_ifunc_resolve_by_got): Update.
375 * dwarf2/read.c (create_addrmap_from_index)
376 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
377 (read_debug_names_from_section)
378 (process_psymtab_comp_unit_reader, add_partial_symbol)
379 (add_partial_subprogram, process_full_comp_unit)
380 (read_file_scope, read_func_scope, read_lexical_block_scope)
381 (read_call_site_scope, dwarf2_ranges_read)
382 (dwarf2_record_block_ranges, dwarf2_add_field)
383 (mark_common_block_symbol_computed, read_tag_pointer_type)
384 (read_tag_string_type, dwarf2_init_float_type)
385 (dwarf2_init_complex_target_type, read_base_type)
386 (partial_die_info::read, partial_die_info::read)
387 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
388 (dwarf2_fetch_die_loc_sect_off): Update.
389 * dwarf2/loc.c (dwarf2_find_location_expression)
390 (class dwarf_evaluate_loc_desc, rw_pieced_value)
391 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
392 (dwarf2_loc_desc_get_symbol_read_needs)
393 (locexpr_describe_location_piece, locexpr_describe_location_1)
394 (loclist_describe_location): Update.
395 * dwarf2/index-write.c (write_debug_names): Update.
396 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
397 * dtrace-probe.c (dtrace_process_dof): Update.
398 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
399 (process_one_symbol): Update.
400 * ctfread.c (ctf_init_float_type, read_base_type): Update.
401 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
402 (coff_read_enum_type): Update.
403 * cli/cli-cmds.c (edit_command, list_command): Update.
404 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
405 * breakpoint.c (create_overlay_event_breakpoint)
406 (create_longjmp_master_breakpoint)
407 (create_std_terminate_master_breakpoint)
408 (create_exception_master_breakpoint, get_sal_arch): Update.
409 * block.c (block_gdbarch): Update.
410 * annotate.c (annotate_source_line): Update.
412 2020-04-17 Tom Tromey <tromey@adacore.com>
414 * auto-load.c (show_auto_load_cmd): Remove.
415 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
416 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
417 (maintenance_print_arc_command): Remove.
418 * tui/tui-win.c (tui_command): Remove.
419 (tui_get_cmd_list): Use add_basic_prefix_cmd.
420 * tui/tui-layout.c (tui_layout_command): Remove.
421 (_initialize_tui_layout): Use add_basic_prefix_cmd.
422 * python/python.c (user_set_python, user_show_python): Remove.
423 (_initialize_python): Use add_basic_prefix_cmd,
425 * guile/guile.c (set_guile_command, show_guile_command): Remove.
426 (install_gdb_commands): Use add_basic_prefix_cmd,
428 (info_guile_command): Remove.
429 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
430 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
432 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
433 Remove do_set and do_show parameters.
434 * cli/cli-style.c (set_style, show_style): Remove.
435 (_initialize_cli_style): Use add_basic_prefix_cmd,
437 (cli_style_option::add_setshow_commands): Remove do_set and
439 (cli_style_option::add_setshow_commands): Use
440 add_basic_prefix_cmd, add_show_prefix_cmd.
441 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
442 (set_style_name): Remove.
443 * cli/cli-dump.c (dump_command, append_command): Remove.
444 (srec_dump_command, ihex_dump_command, verilog_dump_command)
445 (tekhex_dump_command, binary_dump_command)
446 (binary_append_command): Remove.
447 (_initialize_cli_dump): Use add_basic_prefix_cmd.
448 * windows-tdep.c (w32_prefix_command_valid): Remove global.
449 (init_w32_command_list): Remove; move into ...
450 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
451 * valprint.c (set_print, show_print, set_print_raw)
452 (show_print_raw): Remove.
453 (_initialize_valprint): Use add_basic_prefix_cmd,
455 * typeprint.c (set_print_type, show_print_type): Remove.
456 (_initialize_typeprint): Use add_basic_prefix_cmd,
458 * record.c (set_record_command, show_record_command): Remove.
459 (_initialize_record): Use add_basic_prefix_cmd,
461 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
463 (info_command, show_command, set_debug, show_debug): Remove.
464 * top.h (set_history, show_history): Don't declare.
465 * top.c (set_history, show_history): Remove.
466 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
467 (unset_tdesc_cmd): Remove.
468 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
470 * symtab.c (info_module_command): Remove.
471 (_initialize_symtab): Use add_basic_prefix_cmd.
472 * symfile.c (overlay_command): Remove.
473 (_initialize_symfile): Use add_basic_prefix_cmd.
474 * sparc64-tdep.c (info_adi_command): Remove.
475 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
476 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
477 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
479 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
480 (_initialize_serial): Use add_basic_prefix_cmd,
482 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
483 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
485 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
486 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
488 * riscv-tdep.c (show_riscv_command, set_riscv_command)
489 (show_debug_riscv_command, set_debug_riscv_command): Remove.
490 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
492 * remote.c (remote_command, set_remote_cmd): Remove.
493 (_initialize_remote): Use add_basic_prefix_cmd.
494 * record-full.c (set_record_full_command)
495 (show_record_full_command): Remove.
496 (_initialize_record_full): Use add_basic_prefix_cmd,
498 * record-btrace.c (cmd_set_record_btrace)
499 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
500 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
501 (cmd_show_record_btrace_pt): Remove.
502 (_initialize_record_btrace): Use add_basic_prefix_cmd,
504 * ravenscar-thread.c (set_ravenscar_command)
505 (show_ravenscar_command): Remove.
506 (_initialize_ravenscar): Use add_basic_prefix_cmd,
508 * mips-tdep.c (show_mips_command, set_mips_command)
509 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
511 * maint.c (maintenance_command, maintenance_info_command)
512 (maintenance_check_command, maintenance_print_command)
513 (maintenance_set_cmd, maintenance_show_cmd): Remove.
514 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
516 (show_per_command_cmd): Remove.
517 * maint-test-settings.c (maintenance_set_test_settings_cmd):
519 (maintenance_show_test_settings_cmd): Remove.
520 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
522 * maint-test-options.c (maintenance_test_options_command):
524 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
525 * macrocmd.c (macro_command): Remove
526 (_initialize_macrocmd): Use add_basic_prefix_cmd.
527 * language.c (set_check, show_check): Remove.
528 (_initialize_language): Use add_basic_prefix_cmd,
530 * infcmd.c (unset_command): Remove.
531 (_initialize_infcmd): Use add_basic_prefix_cmd.
532 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
533 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
535 * go32-nat.c (go32_info_dos_command): Remove.
536 (_initialize_go32_nat): Use add_basic_prefix_cmd.
537 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
538 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
539 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
540 (_initialize_frame): Use add_basic_prefix_cmd,
542 * dcache.c (set_dcache_command, show_dcache_command): Remove.
543 (_initialize_dcache): Use add_basic_prefix_cmd,
545 * cp-support.c (maint_cplus_command): Remove.
546 (_initialize_cp_support): Use add_basic_prefix_cmd.
547 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
548 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
549 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
550 add_basic_prefix_cmd, add_show_prefix_cmd.
551 * breakpoint.c (save_command): Remove.
552 (_initialize_breakpoint): Use add_basic_prefix_cmd.
553 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
554 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
556 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
557 (set_ada_command, show_ada_command): Remove.
558 (_initialize_ada_language): Use add_basic_prefix_cmd,
560 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
562 2020-04-16 Kamil Rytarowski <n54@gmx.com>
564 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
565 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
567 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
569 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
572 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
574 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
575 import table is not at beginning of .idata section.
577 2020-04-16 Pedro Alves <palves@redhat.com>
579 * inferior.c (delete_inferior): Use delete operator directly
580 instead of delete_program_space.
581 * progspace.c (add_program_space): New, factored out from
582 program_space::program_space.
583 (remove_program_space): New, factored out from
584 delete_program_space.
585 (program_space::program_space): Remove intro comment. Rewrite.
586 (program_space::~program_space): Remove intro comment. Call
587 remove_program_space.
588 (delete_program_space): Delete.
589 * progspace.h (program_space::program_space): Make explicit. Move
590 intro comment here, adjusted.
591 (program_space::~program_space): Move intro comment here,
593 (delete_program_space): Remove.
595 2020-04-16 Tom Tromey <tromey@adacore.com>
597 * windows-nat.c (windows_nat::handle_access_violation): New
599 * nat/windows-nat.h (handle_access_violation): Declare.
600 * nat/windows-nat.c (handle_exception): Move Cygwin code to
601 windows-nat.c. Call handle_access_violation.
603 2020-04-16 Tom de Vries <tdevries@suse.de>
606 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
609 2020-04-16 Kevin Buettner <kevinb@redhat.com>
611 * python/python.c (do_start_initialization): Don't call
612 PyEval_InitThreads for Python 3.9 and beyond.
614 2020-04-15 Kamil Rytarowski <n54@gmx.com>
616 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
618 (obsd_nat_target::wait): Likewise.
620 2020-04-15 Tom Tromey <tromey@adacore.com>
622 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
623 (DEBUG_EXCEPT): Use debug_printf.
625 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
627 * completer.c (class completion_tracker::completion_hash_entry)
628 <hash_name>: New member function.
629 (completion_tracker::discard_completions): New callback to hash a
630 completion_hash_entry, pass this to htab_create_alloc.
632 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
634 * windows-nat.c (windows_make_so): Warn rather than stopping with
635 an error if realpath() fails.
637 2020-04-14 Kamil Rytarowski <n54@gmx.com>
639 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
640 (nbsd_nat_target::info_proc): Add do_status.
642 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
643 Tom de Vries <tdevries@suse.de>
646 * psympriv.h (struct partial_symtab::read_symtab)
647 (struct partial_symtab::expand_psymtab)
648 (struct partial_symtab::read_dependencies): Update comments.
649 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
650 read_symtab for includer.
651 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
652 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
653 (struct dwarf2_include_psymtab::m_readin): Remove.
654 (struct dwarf2_include_psymtab::includer): New member function.
655 (dwarf2_psymtab::expand_psymtab): Assert !readin.
657 2020-04-14 Tom de Vries <tdevries@suse.de>
660 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
661 with NULL symbol_matcher and lookup_name.
662 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
664 * dwarf2/read.c (dw2_expand_symtabs_matching)
665 (dw2_debug_names_expand_symtabs_matching): Same.
666 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
667 Make lookup_name a pointer. Update comment.
668 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
669 lookup_name being a pointer.
670 * symfile.c (expand_symtabs_matching): Same.
671 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
672 * linespec.c (iterate_over_all_matching_symtabs): Same.
674 2020-04-13 Tom Tromey <tom@tromey.com>
676 * run-on-main-thread.c: Update include.
677 * unittests/main-thread-selftests.c: Update include.
678 * tui/tui-win.c: Update include.
679 * tui/tui-io.c: Update include.
680 * tui/tui-interp.c: Update include.
681 * tui/tui-hooks.c: Update include.
682 * top.h: Update include.
683 * top.c: Update include.
684 * ser-base.c: Update include.
685 * remote.c: Update include.
686 * remote-notif.c: Update include.
687 * remote-fileio.c: Update include.
688 * record-full.c: Update include.
689 * record-btrace.c: Update include.
690 * python/python.c: Update include.
691 * posix-hdep.c: Update include.
692 * mingw-hdep.c: Update include.
693 * mi/mi-main.c: Update include.
694 * mi/mi-interp.c: Update include.
695 * main.c: Update include.
696 * linux-nat.c: Update include.
697 * interps.c: Update include.
698 * infrun.c: Update include.
699 * inf-loop.c: Update include.
700 * event-top.c: Update include.
701 * event-loop.c: Move to ../gdbsupport/.
702 * event-loop.h: Move to ../gdbsupport/.
703 * async-event.h: Update include.
704 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
706 2020-04-13 Tom Tromey <tom@tromey.com>
708 * tui/tui-win.c: Include async-event.h.
709 * remote.c: Include async-event.h.
710 * remote-notif.c: Include async-event.h.
711 * record-full.c: Include async-event.h.
712 * record-btrace.c: Include async-event.h.
713 * infrun.c: Include async-event.h.
714 * event-top.c: Include async-event.h.
715 * event-loop.h: Move some declarations to async-event.h.
716 * event-loop.c: Don't include ser-event.h or top.h. Move some
717 code to async-event.c.
718 * async-event.h: New file.
719 * async-event.c: New file.
720 * Makefile.in (COMMON_SFILES): Add async-event.c.
721 (HFILES_NO_SRCDIR): Add async-event.h.
723 2020-04-13 Tom Tromey <tom@tromey.com>
725 * utils.c (flush_streams): New function.
726 * event-loop.c (gdb_wait_for_event): Call flush_streams.
728 2020-04-13 Tom Tromey <tom@tromey.com>
730 * event-loop.c (handle_file_event): Use warning, not
733 2020-04-13 Tom Tromey <tom@tromey.com>
735 * event-loop.c: Include <chrono>.
737 2020-04-13 Tom Tromey <tom@tromey.com>
739 * gdb_select.h: Move to ../gdbsupport/.
740 * event-loop.c: Update include path.
741 * top.c: Update include path.
742 * ser-base.c: Update include path.
743 * ui-file.c: Update include path.
744 * ser-tcp.c: Update include path.
745 * guile/scm-ports.c: Update include path.
746 * posix-hdep.c: Update include path.
747 * ser-unix.c: Update include path.
748 * gdb_usleep.c: Update include path.
749 * mingw-hdep.c: Update include path.
750 * inflow.c: Update include path.
751 * infrun.c: Update include path.
752 * event-top.c: Update include path.
754 2020-04-13 Tom Tromey <tom@tromey.com>
756 * configure: Rebuild.
757 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
759 2020-04-13 Tom Tromey <tom@tromey.com>
761 * event-loop.h (start_event_loop): Don't declare.
762 * event-loop.c (start_event_loop): Move...
763 * main.c (start_event_loop): ...here. Now static.
765 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
767 * MAINTAINERS: Update my email address.
769 2020-04-12 Kamil Rytarowski <n54@gmx.com>
771 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
774 2020-04-12 Kamil Rytarowski <n54@gmx.com>
776 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
777 (nbsd_nat_target::info_proc): Add do_cmdline.
779 2020-04-12 Kamil Rytarowski <n54@gmx.com>
781 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
782 (nbsd_nat_target::info_proc): Add do_cwd.
784 2020-04-12 Kamil Rytarowski <n54@gmx.com>
786 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
788 2020-04-11 Kamil Rytarowski <n54@gmx.com>
790 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
791 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
792 (nbsd_nat_target::info_proc): New functions.
793 * nbsd-nat.c (kinfo_get_vmmap): New function.
794 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
795 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
796 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
797 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
799 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
800 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
801 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
802 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
803 (KINFO_VME_FLAG_GROWS_DOWN): New.
805 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
807 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
810 2020-04-10 Tom Tromey <tromey@adacore.com>
812 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
814 2020-04-10 Tom Tromey <tromey@adacore.com>
816 * symtab.c (get_symbol_address, get_msymbol_address): Skip
817 separate debug files.
819 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
821 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
823 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
825 * windows-nat.c (windows_nat_target::get_windows_debug_event):
826 Check for STATUS_WX86_BREAKPOINT.
827 (windows_nat_target::wait): Same.
829 2020-04-10 Tom de Vries <tdevries@suse.de>
832 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
834 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
836 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
837 (Write After Approval): Remove Tom de Vries.
839 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
842 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
844 * buildsym.c (record_line): Fix undefined behavior and preserve
847 2020-04-09 Kamil Rytarowski <n54@gmx.com>
849 * auxv.h (svr4_auxv_parse): New.
850 * auxv.c (default_auxv_parse): Split into default_auxv_parse
851 and generic_auxv_parse.
852 (svr4_auxv_parse): Add.
853 * obsd-tdep.c: Include "auxv.h".
854 (obsd_auxv_parse): Remove.
855 (obsd_init_abi): Remove comment.
856 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
857 from `obsd_auxv_parse' to `svr4_auxv_parse'.
858 * nbsd-tdep.c: Include "auxv.h".
859 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
861 2020-04-08 Tom Tromey <tromey@adacore.com>
863 * nat/windows-nat.h (last_wait_event): Don't declare.
864 (wait_for_debug_event): Update comment.
865 * nat/windows-nat.c (last_wait_event): Now static.
867 2020-04-08 Tom Tromey <tromey@adacore.com>
869 * windows-nat.c (wait_for_debug_event): Move to
871 * nat/windows-nat.h (wait_for_debug_event): Declare.
872 * nat/windows-nat.c (wait_for_debug_event): Move from
873 windows-nat.c. No longer static.
875 2020-04-08 Tom Tromey <tromey@adacore.com>
877 * windows-nat.c (get_windows_debug_event): Use
879 * nat/windows-nat.h (fetch_pending_stop): Declare.
880 * nat/windows-nat.c (fetch_pending_stop): New function.
882 2020-04-08 Tom Tromey <tromey@adacore.com>
884 * windows-nat.c (windows_continue): Use matching_pending_stop and
885 continue_last_debug_event.
886 * nat/windows-nat.h (matching_pending_stop)
887 (continue_last_debug_event): Declare.
888 * nat/windows-nat.c (DEBUG_EVENTS): New define.
889 (matching_pending_stop, continue_last_debug_event): New
892 2020-04-08 Tom Tromey <tromey@adacore.com>
894 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
895 (handle_exception_result): Move to nat/windows-nat.h.
896 (DEBUG_EXCEPTION_SIMPLE): Remove.
897 (windows_nat::handle_ms_vc_exception): New function.
898 (handle_exception): Move to nat/windows-nat.c.
899 (get_windows_debug_event): Update.
900 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
902 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
903 (handle_exception_result): Move from windows-nat.c.
904 (handle_exception): Declare.
905 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
906 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
909 2020-04-08 Tom Tromey <tromey@adacore.com>
911 * windows-nat.c (exception_count, event_count): Remove.
912 (handle_exception, get_windows_debug_event)
913 (do_initial_windows_stuff): Update.
915 2020-04-08 Tom Tromey <tromey@adacore.com>
917 * windows-nat.c (windows_nat::handle_load_dll)
918 (windows_nat::handle_unload_dll): Rename. No longer static.
919 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
922 2020-04-08 Tom Tromey <tromey@adacore.com>
924 * complaints.h (stop_whining): Declare at top-level.
925 (complaint): Don't declare stop_whining.
927 2020-04-08 Tom Tromey <tromey@adacore.com>
929 * windows-nat.c (windows_nat::handle_output_debug_string):
930 Rename. No longer static.
931 * nat/windows-nat.h (handle_output_debug_string): Declare.
933 2020-04-08 Tom Tromey <tromey@adacore.com>
935 * windows-nat.c (current_process_handle, current_process_id)
936 (main_thread_id, last_sig, current_event, last_wait_event)
937 (current_windows_thread, desired_stop_thread_id, pending_stops)
938 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
939 (display_selectors, fake_create_process)
940 (get_windows_debug_event): Update.
941 * nat/windows-nat.h (current_process_handle, current_process_id)
942 (main_thread_id, last_sig, current_event, last_wait_event)
943 (current_windows_thread, desired_stop_thread_id, pending_stops)
944 (struct pending_stop, siginfo_er): Move from windows-nat.c.
945 * nat/windows-nat.c (current_process_handle, current_process_id)
946 (main_thread_id, last_sig, current_event, last_wait_event)
947 (current_windows_thread, desired_stop_thread_id, pending_stops)
948 (siginfo_er): New globals. Move from windows-nat.c.
950 2020-04-08 Tom Tromey <tromey@adacore.com>
952 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
953 (handle_load_dll): Update.
954 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
956 2020-04-08 Tom Tromey <tromey@adacore.com>
958 * windows-nat.c (enum thread_disposition_type): Move to
960 (windows_nat::thread_rec): Rename from thread_rec. No longer
962 (windows_add_thread, windows_nat_target::fetch_registers)
963 (windows_nat_target::store_registers, handle_exception)
964 (windows_nat_target::resume, get_windows_debug_event)
965 (windows_nat_target::get_tib_address)
966 (windows_nat_target::thread_name)
967 (windows_nat_target::thread_alive): Update.
968 * nat/windows-nat.h (enum thread_disposition_type): Move from
970 (thread_rec): Declare.
972 2020-04-08 Tom Tromey <tromey@adacore.com>
974 * windows-nat.c: Add "using namespace".
975 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
976 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
978 2020-04-08 Tom Tromey <tromey@adacore.com>
980 * nat/windows-nat.h (struct windows_thread_info): Declare
982 * nat/windows-nat.c (~windows_thread_info): New.
984 2020-04-08 Tom Tromey <tromey@adacore.com>
987 * windows-nat.c (current_event): Update comment.
988 (last_wait_event, desired_stop_thread_id): New globals.
989 (struct pending_stop): New.
990 (pending_stops): New global.
991 (windows_nat_target) <stopped_by_sw_breakpoint>
992 <supports_stopped_by_sw_breakpoint>: New methods.
993 (windows_fetch_one_register): Add assertions. Adjust PC.
994 (windows_continue): Handle pending stops. Suspend other threads
995 when stepping. Use last_wait_event
996 (wait_for_debug_event): New function.
997 (get_windows_debug_event): Use wait_for_debug_event. Handle
998 pending stops. Queue spurious stops.
999 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
1000 (windows_nat_target::kill): Use wait_for_debug_event.
1001 * nat/windows-nat.h (struct windows_thread_info)
1002 <stopped_at_software_breakpoint>: New field.
1003 * nat/windows-nat.c (windows_thread_info::resume): Clear
1004 stopped_at_software_breakpoint.
1006 2020-04-08 Tom Tromey <tromey@adacore.com>
1008 * windows-nat.c (enum thread_disposition_type): New.
1009 (thread_rec): Replace "get_context" parameter with "disposition";
1011 (windows_add_thread, windows_nat_target::fetch_registers)
1012 (windows_nat_target::store_registers, handle_exception)
1013 (windows_nat_target::resume, get_windows_debug_event)
1014 (windows_nat_target::get_tib_address)
1015 (windows_nat_target::thread_name)
1016 (windows_nat_target::thread_alive): Update.
1018 2020-04-08 Tom Tromey <tromey@adacore.com>
1020 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
1021 (windows_continue): Use windows_continue::resume.
1022 * nat/windows-nat.h (struct windows_thread_info) <suspend,
1023 resume>: Declare new methods.
1024 * nat/windows-nat.c: New file.
1025 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
1027 2020-04-08 Tom Tromey <tromey@adacore.com>
1029 * windows-nat.c (windows_add_thread, windows_delete_thread)
1030 (windows_nat_target::fetch_registers)
1031 (windows_nat_target::store_registers, fake_create_process)
1032 (windows_nat_target::resume, windows_nat_target::resume)
1033 (get_windows_debug_event, windows_nat_target::wait)
1034 (windows_nat_target::pid_to_str)
1035 (windows_nat_target::get_tib_address)
1036 (windows_nat_target::get_ada_task_ptid)
1037 (windows_nat_target::thread_name)
1038 (windows_nat_target::thread_alive): Use lwp, not tid.
1040 2020-04-08 Tom Tromey <tromey@adacore.com>
1042 * windows-nat.c (handle_exception)
1043 (windows_nat_target::thread_name): Update.
1044 * nat/windows-nat.h (windows_thread_info): Remove destructor.
1045 <name>: Now unique_xmalloc_ptr.
1047 2020-04-08 Tom Tromey <tromey@adacore.com>
1049 * windows-nat.c (thread_rec)
1050 (windows_nat_target::fetch_registers): Update.
1051 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
1053 <debug_registers_changed, reload_context>: Now bool.
1055 2020-04-08 Tom Tromey <tromey@adacore.com>
1057 * windows-nat.c (windows_add_thread): Use new.
1058 (windows_init_thread_list, windows_delete_thread): Use delete.
1059 (get_windows_debug_event): Update.
1060 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
1061 destructor, and initializers.
1063 2020-04-08 Tom Tromey <tromey@adacore.com>
1065 * windows-nat.c (struct windows_thread_info): Remove.
1066 * nat/windows-nat.h: New file.
1068 2020-04-08 Tom Tromey <tromey@adacore.com>
1070 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
1071 (thread_rec, windows_add_thread, windows_delete_thread)
1072 (windows_continue): Update.
1074 2020-04-08 Tom Tromey <tromey@adacore.com>
1076 * windows-nat.c (struct windows_thread_info): Remove typedef.
1077 (thread_head): Remove.
1078 (thread_list): New global.
1079 (thread_rec, windows_add_thread, windows_init_thread_list)
1080 (windows_delete_thread, windows_continue): Update.
1082 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
1084 * windows-tdep.h (windows_init_abi): Add comment.
1085 (cygwin_init_abi): New declaration.
1086 * windows-tdep.c: Split signal enumeration in two, one for
1087 Windows and one for Cygwin.
1088 (windows_gdb_signal_to_target): Only deal with signal of the
1090 (cygwin_gdb_signal_to_target): New function.
1091 (windows_init_abi): Rename to windows_init_abi_common, don't set
1092 gdb_signal_to_target gdbarch method. Add new new function with
1094 (cygwin_init_abi): New function.
1095 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
1096 comment. Don't call windows_init_abi.
1097 (amd64_windows_init_abi): Add comment, call windows_init_abi.
1098 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
1099 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
1100 i386_windows_init_abi_common, don't call windows_init_abi. Add
1101 a new function of this name.
1102 (i386_cygwin_init_abi): New function.
1103 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
1106 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
1108 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
1110 (dwarf2_read_gdb_index): Update.
1112 2020-04-07 Kamil Rytarowski <n54@gmx.com>
1114 * nbsd-tdep.c: Include "objfiles.h".
1115 (nbsd_skip_solib_resolver): New.
1116 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
1118 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
1120 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
1121 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
1122 with DW_LLE_base_addressx are being emitted in DWARFv5.
1123 Add the newly added kind DW_LOC_OFFSET_PAIR also.
1124 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
1127 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
1129 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
1130 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
1131 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
1132 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
1133 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
1134 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
1135 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
1138 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
1140 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
1141 (read_loclist_index): New function definition.
1142 (lookup_loclist_base): New function definition.
1143 (read_loclist_header): New function definition.
1144 (dwarf2_cu): Add loclist_base and loclist_header field.
1145 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
1146 (read_full_die_1): Read the value of DW_AT_loclists_base.
1147 (read_attribute_reprocess): Handle DW_FORM_loclistx.
1148 (read_attribute_value): Handle DW_FORM_loclistx.
1149 (skip_one_die): Handle DW_FORM_loclistx.
1150 (loclist_header): New structure declaration.
1151 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
1153 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1155 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
1156 constructor. Remove `addr` parameter from other constructor and
1157 add `per_cu` parameter.
1158 * dwarf2/read.c (create_partial_symtab): Update.
1160 2020-04-07 Tom de Vries <tdevries@suse.de>
1163 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
1164 (partial_die_info::fixup): Inherit has_const_value.
1166 2020-04-07 Tom de Vries <tdevries@suse.de>
1168 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
1169 symbols without address.
1171 2020-04-06 Kamil Rytarowski <n54@gmx.com>
1173 * nbsd-nat.h (struct thread_info): Add forward declaration.
1174 (nbsd_nat_target::thread_alive): Add.
1175 (nbsd_nat_target::thread_name): Likewise.
1176 (nbsd_nat_target::update_thread_list): Likewise.
1177 (update_thread_list::post_attach): Likewise.
1178 (post_attach::pid_to_str): Likewise.
1179 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
1180 (nbsd_thread_lister): Add.
1181 (nbsd_nat_target::thread_alive): Likewise.
1182 (nbsd_nat_target::thread_name): Likewise.
1183 (nbsd_add_threads): Likewise.
1184 (update_thread_list::post_attach): Likewise.
1185 (nbsd_nat_target::update_thread_list): Likewise.
1186 (post_attach::pid_to_str): Likewise.
1188 2020-04-06 Tom Tromey <tromey@adacore.com>
1190 * ada-valprint.c (print_variant_part): Extract the variant field.
1191 (print_field_values): Use the field as the outer value when
1194 2020-04-06 Tom Tromey <tromey@adacore.com>
1196 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
1197 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
1198 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
1199 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
1200 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
1202 2020-04-06 Tom Tromey <tromey@adacore.com>
1204 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
1207 2020-04-06 Kamil Rytarowski <n54@gmx.com>
1209 * nbsd-tdep.c: Include "gdbarch.h".
1210 Define enum with NetBSD signal numbers.
1211 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
1212 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
1213 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
1214 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
1215 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
1216 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
1217 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
1218 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
1219 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
1220 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
1221 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
1222 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
1224 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
1227 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
1229 2020-04-03 Tom Tromey <tromey@adacore.com>
1231 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
1232 Read constant block.
1234 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1236 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
1237 (gdb_bfd_get_full_section_contents): New declaration.
1238 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
1239 * windows-tdep.c (is_linked_with_cygwin_dll): Use
1240 gdb_bfd_get_full_section_contents.
1242 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1244 * exec.c (build_section_table): Replace internal_error with
1246 (section_table_xfer_memory_partial): Likewise.
1247 * mdebugread.c (parse_partial_symbols): Likewise.
1248 * psymtab.c (lookup_partial_symbol): Likewise.
1249 * utils.c (wrap_here): Likewise.
1251 2020-04-02 Tom Tromey <tromey@adacore.com>
1253 * f-lang.c (build_fortran_types): Use arch_type to initialize
1254 builtin_complex_s32 in the TYPE_CODE_ERROR case.
1256 2020-04-02 Tom Tromey <tromey@adacore.com>
1258 * dwarf2/read.c (partial_die_info::read): Do not create a vector
1261 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
1262 Bernd Edlinger <bernd.edlinger@hotmail.de>
1263 Tom Tromey <tromey@adacore.com>
1265 * buildsym.c (buildsym_compunit::record_line): Remove
1268 2020-04-02 Tom de Vries <tdevries@suse.de>
1271 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
1273 2020-04-02 Tom de Vries <tdevries@suse.de>
1275 * dwarf2/read.c (dwarf2_gdb_index_functions,
1276 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
1278 * psymtab.c (psym_lookup_global_symbol_language): New function.
1279 (psym_functions): Init psym_lookup_global_symbol_language with
1280 psym_lookup_global_symbol_language.
1281 * symfile-debug.c (debug_sym_quick_functions): Init
1282 lookup_global_symbol_language with NULL.
1283 * symfile.c (set_initial_language): Remove fixme comment.
1284 * symfile.h (struct quick_symbol_functions): Add
1285 lookup_global_symbol_language.
1286 * symtab.c (find_quick_global_symbol_language): New function.
1287 (find_main_name): Use find_quick_global_symbol_language.
1289 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
1291 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
1293 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
1295 * buildsym.c (record_line): Fix undefined behavior and preserve
1298 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
1300 * buildsym.c (record_line): Fix the resizing condition.
1302 2020-04-01 Tom Tromey <tom@tromey.com>
1304 * value.h (value_literal_complex): Add comment.
1305 * valops.c (value_literal_complex): Refer to value.h.
1307 2020-04-01 Tom Tromey <tom@tromey.com>
1309 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
1310 (scalar_type): New rule, from typebase.
1311 (typebase): Use scalar_type. Recognize complex types.
1312 (field_name): Handle FLOAT_KEYWORD.
1313 (ident_tokens): Add _Complex and __complex__.
1315 2020-04-01 Tom Tromey <tom@tromey.com>
1318 * valarith.c (promotion_type, complex_binop): New functions.
1319 (scalar_binop): Handle complex numbers. Use promotion_type.
1320 (value_pos, value_neg, value_complement): Handle complex numbers.
1322 2020-04-01 Tom Tromey <tom@tromey.com>
1324 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
1325 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
1326 (parse_number): Handle complex numbers.
1328 2020-04-01 Tom Tromey <tom@tromey.com>
1330 * c-valprint.c (c_decorations): Change complex suffix to "i".
1332 2020-04-01 Tom Tromey <tom@tromey.com>
1334 * valprint.c (generic_value_print_complex): Use accessors.
1335 * value.h (value_real_part, value_imaginary_part): Declare.
1336 * valops.c (value_real_part, value_imaginary_part): New
1338 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
1340 2020-04-01 Tom Tromey <tom@tromey.com>
1342 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
1343 (read_range_type): Update.
1344 * mdebugread.c (basic_type): Update.
1345 * go-lang.c (build_go_types): Use init_complex_type.
1346 * gdbtypes.h (struct main_type) <complex_type>: New member.
1347 (init_complex_type): Update.
1348 (arch_complex_type): Don't declare.
1349 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
1350 Make name if none given. Use alloc_type_copy. Look for cached
1352 (arch_complex_type): Remove.
1353 (gdbtypes_post_init): Use init_complex_type.
1354 * f-lang.c (build_fortran_types): Use init_complex_type.
1355 * dwarf2/read.c (read_base_type): Update.
1356 * d-lang.c (build_d_types): Use init_complex_type.
1357 * ctfread.c (read_base_type): Update.
1359 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1361 * infrun.c (stop_all_threads): Update assertion, plus when
1362 stopping threads, take into account that we might be trying
1363 to stop an all-stop target.
1364 (stop_waiting): Call 'stop_all_threads' if there exists a
1367 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1369 * target.h (exists_non_stop_target): New function declaration.
1370 * target.c (exists_non_stop_target): New function.
1372 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
1375 * eval.c (is_integral_or_integral_reference): New function.
1376 (evaluate_subexp_standard): Allow integer references in
1379 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1381 * remote.c (remote_target::remote_parse_stop_reply): Remove the
1382 check for no ptid in the stop reply when the target is non-stop.
1384 2020-04-01 Tom Tromey <tromey@adacore.com>
1386 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
1387 "name" parameter to rvalue reference. Initialize m_name_holder.
1388 <lookup_name_info>: New overloads.
1389 <name>: Return gdb::string_view.
1390 <c_str>: New method.
1391 <make_ignore_params>: Update.
1392 <search_name_hash>: Update.
1393 <language_lookup_name>: Return const char *.
1394 <m_name>: Change type.
1395 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
1396 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
1397 (lookup_name_info::match_any): Update.
1398 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
1400 * minsyms.c (linkage_name_str): Update.
1401 * language.c (default_symbol_name_matcher): Update.
1402 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
1404 * ada-lang.c (ada_fold_name): Change parameter to string_view.
1405 (ada_lookup_name_info::ada_lookup_name_info): Update.
1406 (literal_symbol_name_matcher): Update.
1408 2020-04-01 Tom Tromey <tromey@adacore.com>
1410 * psymtab.c (psymtab_search_name): Remove function.
1411 (psym_lookup_symbol): Create search name and lookup name here.
1412 (lookup_partial_symbol): Remove "name" parameter; add
1414 (psym_expand_symtabs_for_function): Update.
1416 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
1419 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
1421 2020-03-31 Tom Tromey <tromey@adacore.com>
1423 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
1426 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
1428 * features/riscv/32bit-csr.xml: Regenerated.
1429 * features/riscv/64bit-csr.xml: Regenerated.
1431 2020-03-30 Tom Tromey <tromey@adacore.com>
1433 * ada-valprint.c (print_variant_part): Update.
1434 * ada-lang.h (ada_which_variant_applies): Update.
1435 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
1436 outer_valaddr parameters; replace with "outer" value parameter.
1437 (to_fixed_variant_branch_type): Update.
1439 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1441 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
1442 <list>. Remove inclusion of observable.h.
1443 (PPC_DEBUG_CURRENT_VERSION): Move up define.
1444 (struct arch_lwp_info): New struct.
1445 (class ppc_linux_dreg_interface): New class.
1446 (struct ppc_linux_process_info): New struct.
1447 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
1448 <low_new_clone, low_forget_process, low_prepare_to_resume>
1449 <copy_thread_dreg_state, mark_thread_stale>
1450 <mark_debug_registers_changed, register_hw_breakpoint>
1451 <clear_hw_breakpoint, register_wp, clear_wp>
1452 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
1453 <num_memory_accesses, get_trigger_type>
1454 <create_watchpoint_request, hwdebug_point_cmp>
1455 <init_arch_lwp_info, get_arch_lwp_info>
1456 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
1458 <struct ptid_hash>: New inner struct.
1459 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
1461 (saved_dabr_value, hwdebug_info, max_slots_number)
1462 (struct hw_break_tuple, struct thread_points, ppc_threads)
1463 (have_ptrace_hwdebug_interface)
1464 (hwdebug_find_thread_points_by_tid)
1465 (hwdebug_insert_point, hwdebug_remove_point): Remove.
1466 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
1467 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
1468 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
1469 use m_dreg_interface.
1470 (hwdebug_point_cmp): Change to...
1471 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
1472 reference arguments instead of pointers.
1473 (ppc_linux_nat_target::ranged_break_num_registers): Use
1475 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
1476 m_dreg_interface. Call register_hw_breakpoint.
1477 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
1478 m_dreg_interface. Call clear_hw_breakpoint.
1479 (get_trigger_type): Change to...
1480 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
1482 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
1483 use m_dreg_interface. Call register_hw_breakpoint.
1484 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
1485 use m_dreg_interface. Call clear_hw_breakpoint.
1486 (can_use_watchpoint_cond_accel): Change to...
1487 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
1488 method. Update comment, use m_dreg_interface and
1490 (calculate_dvc): Change to...
1491 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
1493 (num_memory_accesses): Change to...
1494 (ppc_linux_nat_target::num_memory_accesses): ...this method.
1495 (check_condition): Change to...
1496 (ppc_linux_nat_target::check_condition): ...this method.
1497 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
1498 comment, use m_dreg_interface.
1499 (create_watchpoint_request): Change to...
1500 (ppc_linux_nat_target::create_watchpoint_request): ...this
1501 method. Use m_dreg_interface.
1502 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
1503 m_dreg_interface. Call register_hw_breakpoint or register_wp.
1504 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
1505 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
1506 (ppc_linux_nat_target::low_forget_process)
1507 (ppc_linux_nat_target::low_new_fork)
1508 (ppc_linux_nat_target::low_new_clone)
1509 (ppc_linux_nat_target::low_delete_thread)
1510 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
1511 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
1512 only call mark_thread_stale.
1513 (ppc_linux_thread_exit): Remove.
1514 (ppc_linux_nat_target::stopped_data_address): Change to...
1515 (ppc_linux_nat_target::low_stopped_data_address): This. Add
1516 comment, use m_dreg_interface and m_thread_hw_breakpoints.
1517 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
1518 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
1519 comment. Call low_stopped_data_address.
1520 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
1522 (ppc_linux_nat_target::masked_watch_num_registers): Use
1524 (ppc_linux_nat_target::copy_thread_dreg_state)
1525 (ppc_linux_nat_target::mark_thread_stale)
1526 (ppc_linux_nat_target::mark_debug_registers_changed)
1527 (ppc_linux_nat_target::register_hw_breakpoint)
1528 (ppc_linux_nat_target::clear_hw_breakpoint)
1529 (ppc_linux_nat_target::register_wp)
1530 (ppc_linux_nat_target::clear_wp)
1531 (ppc_linux_nat_target::init_arch_lwp_info)
1532 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
1533 (_initialize_ppc_linux_nat): Remove observer callback.
1535 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1537 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
1538 (ppc_linux_nat_target::auxv_parse)
1539 (ppc_linux_nat_target::read_description)
1540 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
1543 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1545 * linux-nat.h (low_new_clone): New method.
1546 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
1548 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
1550 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
1551 (dbx_expand_psymtab): ... this.
1552 (start_psymtab): Update.
1553 * mdebugread.c (psymtab_to_symtab_1): Rename to...
1554 (mdebug_expand_psymtab): ... this.
1555 (parse_partial_symbols): Update.
1556 (new_psymtab): Update.
1557 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
1558 (xcoff_expand_psymtab): ... this.
1559 (xcoff_start_psymtab): Update.
1561 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
1563 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
1564 <expand_dependencies>: ... this.
1565 * psymtab.c (partial_symtab::read_dependencies): Rename to...
1566 (partial_symtab::expand_dependencies): ... this.
1567 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
1569 (dwarf2_psymtab::expand_psymtab): Update.
1570 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
1571 * mdebugread.c (psymtab_to_symtab_1): Update.
1572 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
1574 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
1576 * psympriv.h (discard_psymtab): Remove.
1577 * dbxread.c (dbx_end_psymtab): Update.
1578 * xcoffread.c (xcoff_end_psymtab): Update.
1580 2020-03-28 Tom Tromey <tom@tromey.com>
1582 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
1585 2020-03-28 Tom Tromey <tom@tromey.com>
1587 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
1589 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
1591 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
1593 2020-03-26 John Baldwin <jhb@FreeBSD.org>
1595 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
1597 2020-03-26 Tom Tromey <tom@tromey.com>
1599 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
1600 (mark_common_block_symbol_computed, read_tag_string_type)
1601 (attr_to_dynamic_prop, read_subrange_type): Update.
1602 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
1603 to be methods on struct attribute.
1604 (skip_one_die, process_imported_unit_die, read_namespace_alias)
1605 (read_call_site_scope, partial_die_info::read)
1606 (partial_die_info::read, lookup_die_type, follow_die_ref):
1608 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
1609 from dwarf2_get_ref_die_offset.
1610 (attribute::constant_value): New method, from
1611 dwarf2_get_attr_constant_value.
1612 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
1614 <constant_value>: New method.
1616 2020-03-26 Tom Tromey <tom@tromey.com>
1618 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
1619 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
1620 (dwarf_type_encoding_name): Move to stringify.c.
1621 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
1622 * dwarf2/stringify.c: New file.
1623 * dwarf2/stringify.h: New file.
1625 2020-03-26 Tom Tromey <tom@tromey.com>
1627 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
1630 2020-03-26 Tom Tromey <tom@tromey.com>
1632 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
1634 * dwarf2/read.c (lookup_addr_base): Move to die.h.
1635 (lookup_ranges_base): Likewise.
1636 (read_cutu_die_from_dwo, read_full_die_1): Update.
1638 2020-03-26 Tom Tromey <tom@tromey.com>
1640 * dwarf2/read.c (read_import_statement, read_file_scope)
1641 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
1642 (read_lexical_block_scope, read_call_site_scope)
1643 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
1644 (handle_struct_member_die, process_structure_scope)
1645 (update_enumeration_type_from_children)
1646 (process_enumeration_scope, read_array_type, read_common_block)
1647 (read_namespace, read_module, read_subroutine_type): Update.
1648 (sibling_die): Remove.
1650 2020-03-26 Tom Tromey <tom@tromey.com>
1652 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
1653 (build_type_psymtabs_reader, read_structure_type)
1654 (read_enumeration_type, read_full_die_1): Update.
1655 (dwarf2_attr_no_follow): Move to die.h.
1656 * dwarf2/die.h (struct die_info) <attr>: New method.
1658 2020-03-26 Tom Tromey <tom@tromey.com>
1660 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
1661 <base_address>: Now an optional.
1662 (dwarf2_find_base_address, dwarf2_rnglists_process)
1663 (dwarf2_ranges_process, fill_in_loclist_baton)
1664 (dwarf2_symbol_mark_computed): Update.
1666 2020-03-26 Tom Tromey <tom@tromey.com>
1668 * dwarf2/read.c (struct die_info): Move to die.h.
1669 * dwarf2/die.h: New file.
1671 2020-03-26 Tom Tromey <tom@tromey.com>
1673 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
1675 (dwarf2_statement_list_fits_in_line_number_section_complaint):
1676 Move to line-header.c.
1677 (read_checked_initial_length_and_offset, read_formatted_entries):
1679 (dwarf_decode_line_header): Split into two.
1680 * dwarf2/line-header.c
1681 (dwarf2_statement_list_fits_in_line_number_section_complaint):
1683 (read_checked_initial_length_and_offset, read_formatted_entries):
1685 (dwarf_decode_line_header): New function, split from read.c.
1687 2020-03-26 Tom Tromey <tom@tromey.com>
1689 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
1691 * dwarf2/read.c (read_attribute_value): Update.
1692 (dwarf2_per_objfile::read_line_string): Rename from
1693 read_indirect_line_string.
1694 (read_formatted_entries): Update.
1696 2020-03-26 Tom Tromey <tom@tromey.com>
1698 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
1701 2020-03-26 Tom Tromey <tom@tromey.com>
1703 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
1705 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
1706 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
1709 2020-03-26 Tom Tromey <tom@tromey.com>
1711 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
1712 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
1713 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
1714 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
1716 2020-03-26 Tom Tromey <tom@tromey.com>
1718 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
1719 file_names_size, file_full_name, file_file_name>: Use const.
1720 <file_name_at, file_names>: Add const overload.
1721 * dwarf2/line-header.c (line_header::file_file_name)
1722 (line_header::file_full_name): Update.
1724 2020-03-26 Tom Tromey <tom@tromey.com>
1726 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
1727 (macro_start_file, consume_improper_spaces)
1728 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
1729 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
1730 (dwarf_decode_macros): Move to macro.c.
1731 * dwarf2/macro.c: New file.
1732 * dwarf2/macro.h: New file.
1733 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
1735 2020-03-26 Tom Tromey <tom@tromey.com>
1737 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
1739 * dwarf2/section.c: New method. From
1740 read_indirect_string_at_offset_from.
1741 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
1742 (read_indirect_string_at_offset_from): Move to section.c.
1743 (read_indirect_string_at_offset): Rewrite.
1744 (read_indirect_line_string_at_offset): Remove.
1745 (read_indirect_string, read_indirect_line_string)
1746 (dwarf_decode_macro_bytes): Update.
1748 2020-03-26 Tom Tromey <tom@tromey.com>
1750 * dwarf2/section.h (struct dwarf2_section_info)
1751 <overload_complaint>: Declare.
1752 (dwarf2_section_buffer_overflow_complaint): Don't declare.
1753 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
1754 Rename from dwarf2_section_buffer_overflow_complaint.
1755 * dwarf2/read.c (skip_one_die, partial_die_info::read)
1756 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
1758 2020-03-26 Tom Tromey <tom@tromey.com>
1760 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
1762 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
1764 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
1767 2020-03-26 Tom Tromey <tom@tromey.com>
1769 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
1771 2020-03-26 Tom Tromey <tom@tromey.com>
1773 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
1775 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
1777 (dwarf_decode_macros): Update.
1779 2020-03-26 Tom Tromey <tom@tromey.com>
1781 * dwarf2/read.c (read_attribute_value): Update.
1782 (read_indirect_string_from_dwz): Move to dwz.c; change into
1784 (dwarf_decode_macro_bytes): Update.
1785 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
1786 * dwarf2/dwz.c: New file.
1787 * Makefile.in (COMMON_SFILES): Add dwz.c.
1789 2020-03-26 Tom Tromey <tom@tromey.com>
1791 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
1792 * dwarf2/read.c: Add include.
1793 * dwarf2/index-write.c: Add include.
1794 * dwarf2/index-cache.c: Add include.
1795 * dwarf2/dwz.h: New file.
1797 2020-03-25 Tom Tromey <tom@tromey.com>
1799 * compile/compile-object-load.c (get_out_value_type): Mention
1800 correct symbol name in error message.
1802 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
1804 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
1806 2020-03-25 Tom de Vries <tdevries@suse.de>
1808 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
1809 * symmisc.c (dump_symtab_1): Print user and includes fields.
1810 (maintenance_info_symtabs): Same.
1812 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
1815 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
1816 (riscv_regcache_cooked_write): New function.
1817 (riscv_push_dummy_call): Use new function.
1818 (riscv_return_value): Likewise.
1820 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1822 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
1823 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
1824 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
1825 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
1826 * infrun.c (follow_fork): Likewise.
1827 (follow_fork_inferior): Likewise.
1828 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
1829 * linux-nat.h (class linux_nat_target): Likewise.
1830 * remote.c (class remote_target) <follow_fork>: Likewise.
1831 (remote_target::follow_fork): Likewise.
1832 * target-delegates.c: Re-generate.
1833 * target.c (default_follow_fork): Likewise.
1834 (target_follow_fork): Likewise.
1835 * target.h (struct target_ops) <follow_fork>: Likewise.
1836 (target_follow_fork): Likewise.
1838 2020-03-24 Tom de Vries <tdevries@suse.de>
1840 * psymtab.c (maintenance_info_psymtabs): Print user field.
1842 2020-03-20 Tom Tromey <tromey@adacore.com>
1844 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
1846 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
1849 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
1851 * ptrace.m4: Don't check for ptrace declaration.
1852 * config.in: Re-generate.
1853 * configure: Re-generate.
1854 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
1857 2020-03-20 Kamil Rytarowski <n54@gmx.com>
1859 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
1861 * i386-bsd-nat.c (gdb_ptrace): Likewise.
1862 * sparc-nat.c (gdb_ptrace): Likewise.
1863 * x86-bsd-nat.c (gdb_ptrace): Likewise.
1865 2020-03-20 Tom Tromey <tromey@adacore.com>
1867 * c-exp.y (lex_one_token): Fix assert.
1869 2020-03-20 Tom Tromey <tromey@adacore.com>
1871 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
1872 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
1875 2020-03-20 Tom Tromey <tromey@adacore.com>
1877 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
1879 2020-03-20 Tom Tromey <tromey@adacore.com>
1881 * ada-valprint.c (print_variant_part): Remove parameters; switch
1883 (print_field_values): Likewise.
1884 (ada_val_print_struct_union): Likewise.
1885 (ada_value_print_1): Update.
1887 2020-03-20 Kamil Rytarowski <n54@gmx.com>
1889 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
1890 nbsd_nat_target instead of inf_ptrace_target.
1891 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
1894 2020-03-20 Kamil Rytarowski <n54@gmx.com>
1896 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
1897 it to the ptrace call.
1898 * (store_registers): Likewise.
1900 2020-03-20 Kamil Rytarowski <n54@gmx.com>
1902 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
1903 it to the ptrace call.
1904 * (store_registers): Likewise.
1906 2020-03-19 Luis Machado <luis.machado@linaro.org>
1908 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
1909 valid, fetch vg value from ptrace.
1911 2020-03-19 Kamil Rytarowski <n54@gmx.com>
1912 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
1913 * inf-ptrace.c: Likewise.
1914 * (gdb_ptrace): Add.
1915 * (inf_ptrace_target::resume): Update.
1916 * (inf_ptrace_target::xfer_partial): Likewise.
1917 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
1918 * (inf_ptrace_peek_poke): Update.
1920 2020-03-19 Kamil Rytarowski <n54@gmx.com>
1922 * x86-bsd-nat.c (gdb_ptrace): New.
1923 * (x86bsd_dr_set): Add new argument `ptid'.
1924 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
1925 x86bsd_dr_set_addr): Update.
1927 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
1929 * remote.c (remote_target::process_stop_reply): Handle events for
1930 all threads differently.
1932 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
1934 * completer.c (completion_tracker::remove_completion): Define new
1936 * completer.h (completion_tracker::remove_completion): Declare new
1938 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
1939 when adding a C++ function symbol.
1941 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
1943 * completer.c (completion_tracker::completion_hash_entry): Define
1945 (advance_to_filename_complete_word_point): Call
1946 recompute_lowest_common_denominator.
1947 (completion_tracker::completion_tracker): Call discard_completions
1948 to setup the hash table.
1949 (completion_tracker::discard_completions): Allow for being called
1950 from the constructor, pass new equal function, and element deleter
1951 when constructing the hash table. Initialise new class member
1953 (completion_tracker::maybe_add_completion): Remove use of
1954 m_entries_vec, and store more information into m_entries_hash.
1955 (completion_tracker::recompute_lcd_visitor): New function, most
1956 content taken from...
1957 (completion_tracker::recompute_lowest_common_denominator):
1958 ...here, this now just visits each item in the hash calling the
1960 (completion_tracker::build_completion_result): Remove use of
1961 m_entries_vec, call recompute_lowest_common_denominator.
1962 * completer.h (completion_tracker::have_completions): Remove use
1964 (completion_tracker::completion_hash_entry): Declare new class.
1965 (completion_tracker::recompute_lowest_common_denominator): Change
1967 (completion_tracker::recompute_lcd_visitor): Declare new function.
1968 (completion_tracker::m_entries_vec): Delete.
1969 (completion_tracker::m_entries_hash): Initialize to NULL.
1970 (completion_tracker::m_lowest_common_denominator_valid): New
1972 (completion_tracker::m_lowest_common_denominator_max_length): New
1975 2020-03-17 Kamil Rytarowski <n54@gmx.com>
1977 * regformats/regdef.h: Put reg in gdb namespace.
1979 2020-03-17 Kamil Rytarowski <n54@gmx.com>
1981 * i386-bsd-nat.c (gdb_ptrace): New.
1982 * (i386bsd_fetch_inferior_registers,
1983 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
1984 * (i386bsd_fetch_inferior_registers,
1985 i386bsd_store_inferior_registers) Use gdb_ptrace.
1987 2020-03-17 Kamil Rytarowski <n54@gmx.com>
1989 * amd64-bsd-nat.c (gdb_ptrace): New.
1990 * (amd64bsd_fetch_inferior_registers,
1991 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
1992 * (amd64bsd_fetch_inferior_registers,
1993 amd64bsd_store_inferior_registers) Use gdb_ptrace.
1995 2020-03-17 Kamil Rytarowski <n54@gmx.com>
1997 * user-regs.c (user_reg::read): Rename to...
1998 (user_reg::xread): ...this.
1999 * (append_user_reg): Rename argument `read' to `xread'.
2000 * (user_reg_add_builtin): Likewise.
2001 * (user_reg_add): Likewise.
2002 * (value_of_user_reg): Likewise.
2004 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2006 * sparc-nat.c (gdb_ptrace): New.
2007 * sparc-nat.c (sparc_fetch_inferior_registers)
2008 (sparc_store_inferior_registers) Remove obsolete comment.
2009 * sparc-nat.c (sparc_fetch_inferior_registers)
2010 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
2011 * sparc-nat.c (sparc_fetch_inferior_registers)
2012 (sparc_store_inferior_registers) Use gdb_ptrace.
2014 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2016 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
2017 it to the ptrace call.
2018 * sh-nbsd-nat.c (store_registers): Likewise.
2020 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2022 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
2023 nbsd_nat_target instead of inf_ptrace_target.
2024 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
2027 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2029 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
2031 2020-03-17 Kamil Rytarowski <n54@gmx.com>
2033 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
2035 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
2037 2020-03-17 Tom de Vries <tdevries@suse.de>
2040 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
2042 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
2044 (process_imported_unit_die): Skip import of c++ CUs.
2046 2020-03-16 Tom Tromey <tom@tromey.com>
2048 * p-valprint.c (pascal_object_print_value): Initialize
2051 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
2052 Shahab Vahedi <shahab@synopsys.com>
2054 * Makefile.in: Add arch/arc.o
2055 * configure.tgt: Likewise.
2056 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
2057 (_initialize_arc_tdep): Don't initialize old target descriptions.
2058 (arc_read_description): New function to cache target descriptions.
2059 * arc-tdep.h (arc_read_description): Add proto type.
2060 * arch/arc.c: New file.
2061 * arch/arc.h: Likewise.
2062 * features/Makefile: Replace old target descriptions with new.
2063 * features/arc-arcompact.c: Remove.
2064 * features/arc-arcompact.xml: Likewise.
2065 * features/arc-v2.c: Likewise
2066 * features/arc-v2.xml: Likewise
2067 * features/arc/aux-arcompact.xml: New file.
2068 * features/arc/aux-v2.xml: Likewise.
2069 * features/arc/core-arcompact.xml: Likewise.
2070 * features/arc/core-v2.xml: Likewise.
2071 * features/arc/aux-arcompact.c: Generate.
2072 * features/arc/aux-v2.c: Likewise.
2073 * features/arc/core-arcompact.c: Likewise.
2074 * features/arc/core-v2.c: Likewise.
2075 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
2077 2020-03-16 Tom Tromey <tromey@adacore.com>
2080 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
2081 putting value into bcache.
2083 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
2086 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
2088 (amd64_windows_init_abi_common): ... this. Don't set size of
2090 (amd64_windows_init_abi): New function.
2091 (amd64_cygwin_init_abi): New function.
2092 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
2094 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
2097 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
2099 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
2100 * windows-tdep.c (CYGWIN_DLL_NAME): New.
2101 (pe_import_directory_entry): New struct type.
2102 (is_linked_with_cygwin_dll): New function.
2103 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
2104 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
2105 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
2107 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
2109 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
2110 i386_cygwin_core_osabi_sniffer.
2112 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
2114 * i386-cygwin-tdep.c: Rename to...
2115 * i386-windows-tdep.c: ... this.
2116 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
2117 i386-windows-tdep.c.
2118 * configure.tgt: Likewise.
2120 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
2122 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
2123 * osabi.c (gdb_osabi_names): Add "Windows".
2124 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
2125 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
2126 (i386_cygwin_core_osabi_sniffer): New function, extracted from
2127 i386_cygwin_osabi_sniffer.
2128 (_initialize_i386_cygwin_tdep): Register OS ABI
2129 GDB_OSABI_WINDOWS for i386.
2130 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
2131 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
2132 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
2134 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
2135 when the target matches '*-*-mingw*'.
2137 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
2139 * defs.h (enum gdb_osabi): Move to...
2140 * osabi.h (enum gdb_osabi): ... here.
2141 * gdbarch.sh: Include osabi.h in gdbarch.h.
2142 * gdbarch.h: Re-generate.
2144 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
2146 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
2148 (_initialize_amd64_windows_tdep): Register osabi sniffer.
2150 2020-03-14 Tom Tromey <tom@tromey.com>
2152 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
2154 (c_type_print_modifier): Likewise. Add "language" parameter.
2155 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
2156 (c_type_print_base_1): Update.
2157 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
2159 * type-stack.c (type_stack::insert): Handle tp_atomic and
2161 (type_stack::follow_type_instance_flags): Likewise.
2162 (type_stack::follow_types): Likewise. Merge type-following code.
2163 * c-exp.y (RESTRICT, ATOMIC): New tokens.
2164 (space_identifier, cv_with_space_id)
2165 (const_or_volatile_or_space_identifier_noopt)
2166 (const_or_volatile_or_space_identifier): Remove.
2167 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
2169 (ptr_operator, typebase): Update.
2170 (enum token_flag) <FLAG_C>: New constant.
2171 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
2173 (lex_one_token): Handle FLAG_C.
2175 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2177 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
2178 it to the ptrace call.
2179 * m68k-bsd-nat.c (store_registers): Likewise.
2181 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2183 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
2185 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
2186 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
2187 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
2189 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2191 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
2192 nbsd_nat_target instead of inf_ptrace_target.
2193 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
2196 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2198 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
2201 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2203 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
2204 it to the ptrace call.
2205 * alpha-bsd-nat.c (store_registers): Likewise.
2207 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2209 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
2211 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
2212 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
2213 fill_fpregset): Likewise.
2215 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2217 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
2218 nbsd_nat_target instead of inf_ptrace_target.
2219 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
2222 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2224 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
2227 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2229 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
2230 it to the ptrace call.
2231 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
2232 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
2233 * arm-nbsd-nat.c (store_register): Likewise.
2234 * arm-nbsd-nat.c (store_regs): Likewise.
2235 * arm-nbsd-nat.c (store_fp_register): Likewise.
2236 * arm-nbsd-nat.c (store_fp_regs): Likewise.
2238 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2240 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
2241 nbsd_nat_target instead of inf_ptrace_target.
2242 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
2245 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2247 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
2248 it to the ptrace call.
2249 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
2251 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2253 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
2254 it to the ptrace call.
2255 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
2257 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2259 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
2261 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
2263 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2265 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
2266 instead of inf_ptrace_target.
2267 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
2270 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2272 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
2275 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2277 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
2280 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2282 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
2285 2020-03-13 Tom Tromey <tom@tromey.com>
2287 * value.h (val_print): Don't declare.
2288 * valprint.h (val_print_array_elements)
2289 (val_print_scalar_formatted, generic_val_print): Don't declare.
2290 * valprint.c (generic_val_print_array): Take a struct value.
2291 (generic_val_print_ptr, generic_val_print_memberptr)
2292 (generic_val_print_bool, generic_val_print_int)
2293 (generic_val_print_char, generic_val_print_complex)
2294 (generic_val_print): Remove.
2295 (generic_value_print): Update.
2296 (do_val_print): Remove unused parameters. Don't call
2298 (val_print): Remove.
2299 (common_val_print): Update. Don't call value_check_printable.
2300 (val_print_scalar_formatted, val_print_array_elements): Remove.
2301 * rust-lang.c (rust_val_print): Remove.
2302 (rust_language_defn): Update.
2303 * p-valprint.c (pascal_val_print): Remove.
2304 (pascal_value_print_inner): Update.
2305 (pascal_object_print_val_fields, pascal_object_print_val):
2307 (pascal_object_print_static_field): Update.
2308 * p-lang.h (pascal_val_print): Don't declare.
2309 * p-lang.c (pascal_language_defn): Update.
2310 * opencl-lang.c (opencl_language_defn): Update.
2311 * objc-lang.c (objc_language_defn): Update.
2312 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
2313 * m2-lang.h (m2_val_print): Don't declare.
2314 * m2-lang.c (m2_language_defn): Update.
2315 * language.h (struct language_defn) <la_val_print>: Remove.
2316 * language.c (unk_lang_value_print_inner): Rename. Change
2318 (unknown_language_defn, auto_language_defn): Update.
2319 * go-valprint.c (go_val_print): Remove.
2320 * go-lang.h (go_val_print): Don't declare.
2321 * go-lang.c (go_language_defn): Update.
2322 * f-valprint.c (f_val_print): Remove.
2323 * f-lang.h (f_value_print): Don't declare.
2324 * f-lang.c (f_language_defn): Update.
2325 * d-valprint.c (d_val_print): Remove.
2326 * d-lang.h (d_value_print): Don't declare.
2327 * d-lang.c (d_language_defn): Update.
2328 * cp-valprint.c (cp_print_value_fields)
2329 (cp_print_value_fields_rtti, cp_print_value): Remove.
2330 (cp_print_static_field): Update.
2331 * c-valprint.c (c_val_print_array, c_val_print_ptr)
2332 (c_val_print_struct, c_val_print_union, c_val_print_int)
2333 (c_val_print_memberptr, c_val_print): Remove.
2334 * c-lang.h (c_val_print_array, cp_print_value_fields)
2335 (cp_print_value_fields_rtti): Don't declare.
2336 * c-lang.c (c_language_defn, cplus_language_defn)
2337 (asm_language_defn, minimal_language_defn): Update.
2338 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
2339 (ada_val_print_enum): Take a struct value.
2340 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
2341 (ada_val_print): Remove.
2342 (ada_value_print_1): Update.
2343 (printable_val_type): Remove.
2344 * ada-lang.h (ada_val_print): Don't declare.
2345 * ada-lang.c (ada_language_defn): Update.
2347 2020-03-13 Tom Tromey <tom@tromey.com>
2349 * valprint.c (do_val_print): Update.
2350 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
2352 (value_to_value_object_no_release): Declare.
2353 * python/py-value.c (value_to_value_object_no_release): New
2355 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
2357 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
2359 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
2361 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
2363 (gdbscm_apply_val_pretty_printer): Take a struct value.
2364 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
2366 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
2368 * extension-priv.h (struct extension_language_ops)
2369 <apply_val_pretty_printer>: Take a struct value.
2370 * cp-valprint.c (cp_print_value): Create a struct value.
2371 (cp_print_value): Update.
2373 2020-03-13 Tom Tromey <tom@tromey.com>
2375 * ada-valprint.c (print_field_values): Call common_val_print.
2377 2020-03-13 Tom Tromey <tom@tromey.com>
2379 * ada-valprint.c (val_print_packed_array_elements): Remove
2380 bitoffset and val parameters. Call common_val_print.
2381 (ada_val_print_string): Remove offset, address, and original_value
2383 (ada_val_print_array): Update.
2384 (ada_value_print_array): New function.
2385 (ada_value_print_1): Call it.
2387 2020-03-13 Tom Tromey <tom@tromey.com>
2389 * ada-valprint.c (ada_value_print): Use common_val_print.
2391 2020-03-13 Tom Tromey <tom@tromey.com>
2393 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
2395 2020-03-13 Tom Tromey <tom@tromey.com>
2397 * ada-valprint.c (ada_value_print_num): New function.
2398 (ada_value_print_1): Use it.
2400 2020-03-13 Tom Tromey <tom@tromey.com>
2402 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
2404 2020-03-13 Tom Tromey <tom@tromey.com>
2406 * ada-valprint.c (ada_value_print_ptr): New function.
2407 (ada_value_print_1): Use it.
2409 2020-03-13 Tom Tromey <tom@tromey.com>
2411 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
2412 call common_val_print.
2413 (ada_val_print_1): Update.
2414 (ada_value_print_1): New function.
2415 (ada_value_print_inner): Rewrite.
2417 2020-03-13 Tom Tromey <tom@tromey.com>
2419 * cp-valprint.c (cp_print_value_fields): Update.
2420 (cp_print_value): New function.
2422 2020-03-13 Tom Tromey <tom@tromey.com>
2424 * m2-valprint.c (m2_value_print_inner): Use
2425 cp_print_value_fields.
2426 * cp-valprint.c (cp_print_value_fields): New function.
2427 * c-valprint.c (c_value_print_struct): New function.
2428 (c_value_print_inner): Use c_value_print_struct.
2429 * c-lang.h (cp_print_value_fields): Declare.
2431 2020-03-13 Tom Tromey <tom@tromey.com>
2433 * c-valprint.c (c_value_print_array): New function.
2434 (c_value_print_inner): Use it.
2436 2020-03-13 Tom Tromey <tom@tromey.com>
2438 * c-valprint.c (c_value_print_memberptr): New function.
2439 (c_value_print_inner): Use it.
2441 2020-03-13 Tom Tromey <tom@tromey.com>
2443 * c-valprint.c (c_value_print_int): New function.
2444 (c_value_print_inner): Use it.
2446 2020-03-13 Tom Tromey <tom@tromey.com>
2448 * c-valprint.c (c_value_print_ptr): New function.
2449 (c_value_print_inner): Use it.
2451 2020-03-13 Tom Tromey <tom@tromey.com>
2453 * c-valprint.c (c_value_print_inner): Rewrite.
2455 2020-03-13 Tom Tromey <tom@tromey.com>
2457 * valprint.c (generic_value_print_complex): New function.
2458 (generic_value_print): Use it.
2460 2020-03-13 Tom Tromey <tom@tromey.com>
2462 * valprint.c (generic_val_print_float): Don't call
2463 val_print_scalar_formatted.
2464 (generic_val_print, generic_value_print): Update.
2466 2020-03-13 Tom Tromey <tom@tromey.com>
2468 * valprint.c (generic_value_print_char): New function
2469 (generic_value_print): Use it.
2471 2020-03-13 Tom Tromey <tom@tromey.com>
2473 * valprint.c (generic_value_print_int): New function.
2474 (generic_value_print): Use it.
2476 2020-03-13 Tom Tromey <tom@tromey.com>
2478 * valprint.c (generic_value_print_bool): New function.
2479 (generic_value_print): Use it.
2481 2020-03-13 Tom Tromey <tom@tromey.com>
2483 * valprint.c (generic_val_print_func): Simplify.
2484 (generic_val_print, generic_value_print): Update.
2486 2020-03-13 Tom Tromey <tom@tromey.com>
2488 * valprint.c (generic_val_print_flags): Remove.
2489 (generic_val_print, generic_value_print): Update.
2490 (val_print_type_code_flags): Add original_value parameter.
2492 2020-03-13 Tom Tromey <tom@tromey.com>
2494 * valprint.c (generic_val_print): Update.
2495 (generic_value_print): Update.
2496 * valprint.c (generic_val_print_enum): Don't call
2497 val_print_scalar_formatted.
2499 2020-03-13 Tom Tromey <tom@tromey.com>
2501 * valprint.c (generic_value_print): Call generic_value_print_ptr.
2502 * valprint.c (generic_value_print_ptr): New function.
2504 2020-03-13 Tom Tromey <tom@tromey.com>
2506 * valprint.c (generic_value_print): Rewrite.
2508 2020-03-13 Tom Tromey <tom@tromey.com>
2510 * p-valprint.c (pascal_object_print_value_fields)
2511 (pascal_object_print_value): New functions.
2513 2020-03-13 Tom Tromey <tom@tromey.com>
2515 * p-valprint.c (pascal_value_print_inner): Rewrite.
2517 2020-03-13 Tom Tromey <tom@tromey.com>
2519 * f-valprint.c (f_value_print_innner): Rewrite.
2521 2020-03-13 Tom Tromey <tom@tromey.com>
2523 * m2-valprint.c (m2_print_unbounded_array): New overload.
2524 (m2_print_unbounded_array): Update.
2525 (m2_print_array_contents): Take a struct value.
2526 (m2_value_print_inner): Rewrite.
2528 2020-03-13 Tom Tromey <tom@tromey.com>
2530 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
2531 (d_value_print_inner): New function.
2532 * d-lang.h (d_value_print_inner): Declare.
2533 * d-lang.c (d_language_defn): Use d_value_print_inner.
2535 2020-03-13 Tom Tromey <tom@tromey.com>
2537 * go-valprint.c (go_value_print_inner): New function.
2538 * go-lang.h (go_value_print_inner): Declare.
2539 * go-lang.c (go_language_defn): Use go_value_print_inner.
2541 2020-03-13 Tom Tromey <tom@tromey.com>
2543 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
2545 (rust_val_print): Rewrite.
2546 (rust_value_print_inner): New function, from rust_val_print.
2547 (rust_language_defn): Use rust_value_print_inner.
2549 2020-03-13 Tom Tromey <tom@tromey.com>
2551 * ada-valprint.c (ada_value_print_inner): New function.
2552 * ada-lang.h (ada_value_print_inner): Declare.
2553 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
2555 2020-03-13 Tom Tromey <tom@tromey.com>
2557 * f-valprint.c (f_value_print_innner): New function.
2558 * f-lang.h (f_value_print_innner): Declare.
2559 * f-lang.c (f_language_defn): Use f_value_print_innner.
2561 2020-03-13 Tom Tromey <tom@tromey.com>
2563 * p-valprint.c (pascal_value_print_inner): New function.
2564 * p-lang.h (pascal_value_print_inner): Declare.
2565 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
2567 2020-03-13 Tom Tromey <tom@tromey.com>
2569 * m2-valprint.c (m2_value_print_inner): New function.
2570 * m2-lang.h (m2_value_print_inner): Declare.
2571 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
2573 2020-03-13 Tom Tromey <tom@tromey.com>
2575 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
2576 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
2577 * c-valprint.c (c_value_print_inner): New function.
2578 * c-lang.h (c_value_print_inner): Declare.
2579 * c-lang.c (c_language_defn, cplus_language_defn)
2580 (asm_language_defn, minimal_language_defn): Use
2581 c_value_print_inner.
2583 2020-03-13 Tom Tromey <tom@tromey.com>
2585 * p-valprint.c (pascal_object_print_value_fields): Now static.
2586 * p-lang.h (pascal_object_print_value_fields): Don't declare.
2588 2020-03-13 Tom Tromey <tom@tromey.com>
2590 * c-valprint.c (c_val_print_array): Simplify.
2592 2020-03-13 Tom Tromey <tom@tromey.com>
2594 * valprint.c (value_print_array_elements): New function.
2595 * valprint.h (value_print_array_elements): Declare.
2597 2020-03-13 Tom Tromey <tom@tromey.com>
2599 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
2600 * mips-tdep.c (mips_print_register): Use
2601 value_print_scalar_formatted.
2603 2020-03-13 Tom Tromey <tom@tromey.com>
2605 * valprint.h (value_print_scalar_formatted): Declare.
2606 * valprint.c (value_print_scalar_formatted): New function.
2608 2020-03-13 Tom Tromey <tom@tromey.com>
2610 * valprint.h (generic_value_print): Declare.
2611 * valprint.c (generic_value_print): New function.
2613 2020-03-13 Tom Tromey <tom@tromey.com>
2615 * valprint.c (do_val_print): Call la_value_print_inner, if
2617 * rust-lang.c (rust_language_defn): Update.
2618 * p-lang.c (pascal_language_defn): Update.
2619 * opencl-lang.c (opencl_language_defn): Update.
2620 * objc-lang.c (objc_language_defn): Update.
2621 * m2-lang.c (m2_language_defn): Update.
2622 * language.h (struct language_defn) <la_value_print_inner>: New
2624 * language.c (unknown_language_defn, auto_language_defn): Update.
2625 * go-lang.c (go_language_defn): Update.
2626 * f-lang.c (f_language_defn): Update.
2627 * d-lang.c (d_language_defn): Update.
2628 * c-lang.c (c_language_defn, cplus_language_defn)
2629 (asm_language_defn, minimal_language_defn): Update.
2630 * ada-lang.c (ada_language_defn): Update.
2632 2020-03-13 Tom Tromey <tom@tromey.com>
2634 * c-valprint.c (c_value_print): Use common_val_print.
2636 2020-03-13 Tom Tromey <tom@tromey.com>
2638 * cp-valprint.c (cp_print_static_field): Use common_val_print.
2640 2020-03-13 Tom Tromey <tom@tromey.com>
2642 * f-valprint.c (f77_print_array_1, f_val_print): Use
2645 2020-03-13 Tom Tromey <tom@tromey.com>
2647 * riscv-tdep.c (riscv_print_one_register_info): Use
2650 2020-03-13 Tom Tromey <tom@tromey.com>
2652 * mi/mi-main.c (output_register): Use common_val_print.
2654 2020-03-13 Tom Tromey <tom@tromey.com>
2656 * infcmd.c (default_print_one_register_info): Use
2659 2020-03-13 Tom Tromey <tom@tromey.com>
2661 * valprint.h (common_val_print_checked): Declare.
2662 * valprint.c (common_val_print_checked): New function.
2663 * stack.c (print_frame_arg): Use common_val_print_checked.
2665 2020-03-13 Tom Tromey <tom@tromey.com>
2667 * valprint.c (do_val_print): New function, from val_print.
2668 (val_print): Use do_val_print.
2669 (common_val_print): Use do_val_print.
2671 2020-03-13 Tom Tromey <tom@tromey.com>
2673 * valprint.c (value_print): Use scoped_value_mark.
2675 2020-03-13 Tom de Vries <tdevries@suse.de>
2678 * psymtab.c (partial_symtab::partial_symtab): Don't set
2679 globals_offset and statics_offset. Push element onto
2680 current_global_psymbols and current_static_psymbols stacks.
2681 (concat): New function.
2682 (end_psymtab_common): Set globals_offset and statics_offset. Pop
2683 element from current_global_psymbols and current_static_psymbols
2684 stacks. Concat popped elements to global_psymbols and
2686 (add_psymbol_to_list): Use current_global_psymbols and
2687 current_static_psymbols stacks.
2688 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
2689 current_static_psymbols fields.
2691 2020-03-12 Christian Biesinger <cbiesinger@google.com>
2693 * corelow.c (sniff_core_bfd): Remove.
2694 (class core_target) <m_core_vec>: Remove.
2695 (core_target::core_target): Update.
2696 (core_file_fns): Remove.
2697 (deprecated_add_core_fns): Remove.
2698 (default_core_sniffer): Remove.
2699 (sniff_core_bfd): Remove.
2700 (default_check_format): Remove.
2701 (gdb_check_format): Remove.
2702 (core_target_open): Update.
2703 (core_target::get_core_register_section): Update.
2704 (get_core_registers_cb): Update.
2705 (core_target::fetch_registers): Update.
2706 * gdbcore.h (struct core_fns): Remove.
2707 (deprecated_add_core_fns): Remove.
2708 (default_core_sniffer): Remove.
2709 (default_check_format): Remove.
2711 2020-03-12 Tom Tromey <tom@tromey.com>
2713 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
2715 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
2717 2020-03-12 Tom Tromey <tom@tromey.com>
2719 * remote.c (remote_target::download_tracepoint)
2720 (remote_target::enable_tracepoint)
2721 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
2722 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
2725 2020-03-12 Tom Tromey <tom@tromey.com>
2727 * symfile-mem.c: Update CORE_ADDR size assert.
2729 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2731 * selftest.m4: Move to gdbsupport/.
2732 * acinclude.m4: Update path to selftest.m4.
2734 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2736 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
2737 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
2738 gdbarch-selfselftests.c and selftest-arch.c.
2739 (SUBDIR_UNITTESTS_OBS): Rename to...
2740 (SELFTESTS_OBS): ... this.
2741 (COMMON_SFILES): Remove disasm-selftests.c and
2742 gdbarch-selftests.c.
2743 * configure.ac: Don't add selftest-arch.{c,o} to
2745 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
2746 preprocessor conditions.
2748 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2750 * configure.ac: Don't source bfd/development.sh.
2751 * selftest.m4: Modify comment.
2752 * configure: Re-generate.
2754 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2756 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
2757 not "true" or "false".
2758 * configure: Re-generate.
2760 2020-03-12 Christian Biesinger <cbiesinger@google.com>
2762 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
2763 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
2764 renamed to arm_nbsd_supply_gregset.
2765 (fetch_register): Update to call arm_nbsd_supply_gregset.
2766 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
2767 (arm_netbsd_nat_target::fetch_registers): Update.
2768 (fetch_elfcore_registers): Removed.
2769 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
2770 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
2771 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
2772 not require NetBSD system headers.
2773 (arm_nbsd_regset): New struct.
2774 (arm_nbsd_iterate_over_regset_sections): New function.
2775 (arm_netbsd_init_abi_common): Updated to call
2776 set_gdbarch_iterate_over_regset_sections.
2777 * arm-nbsd-tdep.h: New file.
2779 2020-03-11 Kevin Buettner <kevinb@redhat.com>
2781 * symtab.c (find_pc_sect_line): Add check which prevents infinite
2784 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2786 * configure: Re-generate.
2788 2020-03-11 Tom Tromey <tromey@adacore.com>
2790 * ada-typeprint.c (print_choices): Fix comment.
2792 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
2794 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
2795 previous item in the list, when the list has no items.
2797 2020-03-11 Tom de Vries <tdevries@suse.de>
2799 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
2800 PROP_LOCLIST handling code.
2802 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
2804 * buildsym-legacy.c (record_line): Pass extra parameter to
2806 * buildsym.c (buildsym_compunit::record_line): Take an extra
2807 parameter, reduce duplication in the line table, and record the
2808 is_stmt flag in the line table.
2809 * buildsym.h (buildsym_compunit::record_line): Add extra
2811 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
2812 non-statement lines.
2813 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
2814 this to the symtab builder.
2815 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
2816 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
2817 through to dwarf_record_line_1.
2818 * infrun.c (process_event_stop_test): When stepping, don't stop at
2819 a non-statement instruction, and only refresh the step info when
2820 we land in the middle of a line's range. Also add an extra
2822 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
2824 * record-btrace.c (btrace_find_line_range): Only record lines
2825 marked as is-statement.
2826 * stack.c (frame_show_address): Show the frame address if we are
2827 in a non-statement sal.
2828 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
2829 (maintenance_print_one_line_table): Print a header for the is_stmt
2830 column, and include is_stmt information in the output.
2831 * symtab.c (find_pc_sect_line): Find lines marked as statements in
2832 preference to non-statements.
2833 (find_pcs_for_symtab_line): Prefer is-statement entries.
2834 (find_line_common): Likewise.
2835 * symtab.h (struct linetable_entry): Add is_stmt field.
2836 (struct symtab_and_line): Likewise.
2837 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
2838 arranging the line table.
2840 2020-03-07 Tom de Vries <tdevries@suse.de>
2842 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
2845 2020-03-07 Tom Tromey <tom@tromey.com>
2847 * valops.c (value_literal_complex): Remove obsolete comment.
2848 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
2851 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
2853 * infrun.h: Forward-declare thread_info.
2854 (set_step_info): Add thread_info parameter, add doc.
2855 * infrun.c (set_step_info): Add thread_info parameter, move doc
2857 * infrun.c (process_event_stop_test): Pass thread to
2859 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
2861 (prepare_one_step): Add thread_info parameter, pass it to
2862 set_step_frame and prepare_one_step (recursive) call.
2863 (step_1): Pass thread to prepare_one_step call.
2864 (step_command_fsm::should_stop): Pass thread to
2866 (until_next_fsm): Pass thread to set_step_frame call.
2867 (finish_command): Pass thread to set_step_info call.
2869 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
2871 * windows-tdep.c (windows_solib_create_inferior_hook):
2872 Check if inferior is running.
2874 2020-03-06 Tom de Vries <tdevries@suse.de>
2876 * NEWS: Fix "the the".
2879 2020-03-06 Tom de Vries <tdevries@suse.de>
2881 * psymtab.c (psymtab_to_symtab): Don't print "done.".
2883 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2885 * .dir-locals.el: Add a comment referencing the other copies of
2888 2020-03-05 John Baldwin <jhb@FreeBSD.org>
2890 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
2893 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2895 * .gitattributes: New file.
2897 2020-03-04 Tom Tromey <tom@tromey.com>
2899 * symmisc.c (print_symbol_bcache_statistics)
2900 (print_objfile_statistics): Update.
2901 * symfile.c (allocate_symtab): Use intern.
2902 * psymtab.c (partial_symtab::partial_symtab): Use intern.
2903 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
2904 macro_cache>: Remove.
2905 <string_cache>: New member.
2906 (struct objfile) <intern>: New methods.
2907 * elfread.c (elf_symtab_read): Use intern.
2908 * dwarf2/read.c (fixup_go_packaging): Intern package name.
2909 (dwarf2_compute_name, dwarf2_physname)
2910 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
2912 (guess_partial_die_structure_name): Update.
2913 (partial_die_info::fixup): Intern name.
2914 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
2916 (dwarf2_name): Intern name. Update.
2917 * buildsym.c (buildsym_compunit::get_macro_table): Use
2920 2020-03-04 Tom Tromey <tom@tromey.com>
2922 * jit.c (bfd_open_from_target_memory): Make "target" const.
2923 * corefile.c (gnutarget): Now const.
2924 * gdbcore.h (gnutarget): Now const.
2926 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
2928 * NEWS: Mention support for WOW64 processes.
2929 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
2930 (amd64_windows_segment_register_p): Remove static.
2931 (_initialize_amd64_windows_nat): Update.
2932 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
2933 * i386-windows-nat.c (context_offset): Update.
2934 (i386_mappings): Rename and remove static.
2935 (i386_windows_segment_register_p): Remove static.
2936 (_initialize_i386_windows_nat): Update.
2937 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
2938 (STATUS_WX86_SINGLE_STEP): New macro.
2939 (EnumProcessModulesEx): New macro.
2940 (Wow64SuspendThread): New macro.
2941 (Wow64GetThreadContext): New macro.
2942 (Wow64SetThreadContext): New macro.
2943 (Wow64GetThreadSelectorEntry): New macro.
2944 (windows_set_context_register_offsets): Add static.
2945 (windows_set_segment_register_p): Likewise.
2946 (windows_add_thread): Adapt for WOW64 processes.
2947 (windows_fetch_one_register): Likewise.
2948 (windows_nat_target::fetch_registers): Likewise.
2949 (windows_store_one_register): Likewise.
2950 (display_selector): Likewise.
2951 (display_selectors): Likewise.
2952 (handle_exception): Likewise.
2953 (windows_continue): Likewise.
2954 (windows_nat_target::resume): Likewise.
2955 (windows_add_all_dlls): Likewise.
2956 (do_initial_windows_stuff): Likewise.
2957 (windows_nat_target::attach): Likewise.
2958 (windows_get_exec_module_filename): Likewise.
2959 (windows_nat_target::create_inferior): Likewise.
2960 (windows_xfer_siginfo): Likewise.
2961 (_initialize_loadable): Initialize Wow64SuspendThread,
2962 Wow64GetThreadContext, Wow64SetThreadContext,
2963 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
2964 * windows-nat.h (windows_set_context_register_offsets):
2966 (windows_set_segment_register_p): Likewise.
2967 (i386_windows_segment_register_p): Add declaration.
2968 (amd64_windows_segment_register_p): Likewise.
2970 2020-03-04 Luis Machado <luis.machado@linaro.org>
2972 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
2973 in "info registers" for AArch64/ARM.
2975 The change caused "info registers" to not print GPR's.
2979 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
2981 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
2982 when reg->group is empty and reggroup is not.
2984 2020-03-03 Tom Tromey <tromey@adacore.com>
2986 * dwarf2/frame.c (struct dwarf2_frame_cache)
2987 <checked_tailcall_bottom, entry_cfa_sp_offset,
2988 entry_cfa_sp_offset_p>: Remove members.
2989 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
2990 (dwarf2_frame_prev_register): Don't call
2991 dwarf2_tailcall_sniffer_first.
2992 (dwarf2_append_unwinders): Don't append tailcall unwinder.
2993 * frame-unwind.c (add_unwinder): New fuction.
2994 (frame_unwind_init): Use it. Add tailcall unwinder.
2996 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
2997 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2999 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
3000 value should be printed as true.
3002 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
3004 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
3005 (windows_init_abi): Set and use windows_so_ops.
3007 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
3009 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
3010 when verifying if dealing with a convenience variable.
3012 2020-03-03 Luis Machado <luis.machado@linaro.org>
3014 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
3016 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
3018 * infrun.c (gdbarch_supports_displaced_stepping): New.
3019 (use_displaced_stepping): Break up conditions in smaller pieces.
3020 Use gdbarch_supports_displaced_stepping.
3021 (displaced_step_prepare_throw): Use
3022 gdbarch_supports_displaced_stepping.
3024 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
3026 * NEWS: Mention new behaviour of the history filename.
3027 * top.c (write_history_p): Add comment.
3028 (show_write_history_p): Add header comment, give a different
3029 message when history writing is on, but the history filename is
3031 (history_filename): Add comment.
3032 (history_filename_empty): New function.
3033 (show_history_filename): Add header comment, give a different
3034 message when the filename is empty.
3035 (init_history): Compare history_filename against nullptr, and only
3036 read history if the filename is not empty.
3037 (set_history_filename): Add header comment, and only make
3038 non-empty filenames absolute.
3039 (init_main): Make the filename argument to 'set history filename'
3042 2020-03-02 Christian Biesinger <cbiesinger@google.com>
3044 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
3045 (arm_supply_vfpregset): ...this, and update to use VFP registers.
3046 (fetch_fp_register): Update.
3047 (fetch_fp_regs): Update.
3048 (store_fp_register): Update.
3049 (store_fp_regs): Update.
3050 (arm_netbsd_nat_target::read_description): New function.
3051 (fetch_elfcore_registers): Update.
3053 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
3055 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
3056 general_thread if the stop reply is missing a thread-id.
3057 (remote_target::process_stop_reply): Use the first non-exited
3058 thread if the target didn't pass a thread-id.
3059 * infrun.c (do_target_wait): Move call to
3060 switch_to_inferior_no_thread to ....
3061 (do_target_wait_1): ... here.
3063 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
3065 * debuginfod-support.c: Include defs.h first.
3067 2020-02-28 Tom de Vries <tdevries@suse.de>
3069 * symfile.c (set_initial_language): Use default language for lookup.
3071 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
3073 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
3074 reader variable, pass `this` to read_cutu_die_from_dwo.
3076 2020-02-27 Aaron Merey <amerey@redhat.com>
3078 * source.c (open_source_file): Check for nullptr when computing
3081 2020-02-27 Tom Tromey <tromey@adacore.com>
3083 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
3085 (dwarf2_add_field): Don't update nfields.
3086 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
3088 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3090 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
3093 2020-02-26 Tom Tromey <tom@tromey.com>
3095 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
3096 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
3097 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
3098 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
3101 2020-02-26 Tom Tromey <tom@tromey.com>
3103 * dwarf2/index-write.c (psym_index_map): Change type.
3104 (add_address_entry_worker, write_one_signatured_type)
3105 (recursively_count_psymbols, recursively_write_psymbols)
3106 (class debug_names, psyms_seen_size, write_gdbindex)
3107 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
3109 2020-02-26 Aaron Merey <amerey@redhat.com>
3111 * Makefile.in: Handle optional debuginfod support.
3113 * README: Add --with-debuginfod summary.
3114 * config.in: Regenerate.
3115 * configure: Regenerate.
3116 * configure.ac: Handle optional debuginfod support.
3117 * debuginfod-support.c: debuginfod helper functions.
3118 * debuginfod-support.h: Ditto.
3119 * doc/gdb.texinfo: Add --with-debuginfod to configure options
3121 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
3122 when a dwz file cannot be found.
3123 * elfread.c (elf_symfile_read): Query debuginfod servers when a
3124 debuginfo file cannot be found.
3125 * source.c (open_source_file): Query debuginfod servers when a
3126 source file cannot be found.
3127 * top.c (print_gdb_configuration): Include
3128 --{with,without}-debuginfod in the output.
3130 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
3132 * thread.c (thr_try_catch_cmd): Print thread name.
3134 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
3136 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
3137 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3138 dwarf2_fetch_die_type_sect_off): Move to...
3139 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3140 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3141 dwarf2_fetch_die_type_sect_off): ... here.
3142 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3143 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3144 dwarf2_fetch_die_type_sect_off): Move doc to header file.
3146 2020-02-26 Tom de Vries <tdevries@suse.de>
3149 * symfile.c (set_initial_language): Exit-early if
3150 language_mode == language_mode_manual.
3152 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
3154 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
3155 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
3156 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
3158 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3160 * gdbtypes.c (create_array_type_with_stride): Handle negative
3162 * valarith.c (value_subscripted_rvalue): Likewise.
3164 2020-02-25 Luis Machado <luis.machado@linaro.org>
3166 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
3168 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
3170 * loc.h (dwarf2_get_die_type): Move to...
3171 * read.h (dwarf2_get_die_type): ... here.
3172 * read.c (dwarf2_get_die_type): Move doc to header.
3174 2020-02-25 Joel Brobecker <brobecker@adacore.com>
3176 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
3177 'gnulib/Makefile.in' to the list.
3179 2020-02-24 Tom Tromey <tom@tromey.com>
3181 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
3183 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
3186 2020-02-24 Tom Tromey <tom@tromey.com>
3188 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
3190 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
3191 (dw2_do_instantiate_symtab, dw2_get_file_names)
3192 (build_type_psymtab_dependencies, load_full_type_unit): Update.
3194 2020-02-24 Tom Tromey <tom@tromey.com>
3196 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
3197 make_scoped_restore.
3198 (dwarf2_psymtab::read_symtab): Don't clear
3199 reading_partial_symbols.
3201 2020-02-24 Tom de Vries <tdevries@suse.de>
3204 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
3206 2020-02-24 Tom de Vries <tdevries@suse.de>
3208 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
3209 commands layout next/prev/regs.
3211 2020-02-22 Tom Tromey <tom@tromey.com>
3213 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
3214 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
3216 2020-02-22 Tom Tromey <tom@tromey.com>
3218 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
3220 2020-02-22 Tom Tromey <tom@tromey.com>
3222 * tui/tui-win.c (_initialize_tui_win): Add usage text.
3223 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
3224 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
3225 * tui/tui.c (_initialize_tui): Add usage text.
3227 2020-02-22 Tom Tromey <tom@tromey.com>
3229 * tui/tui-win.c (tui_set_focus_command)
3230 (tui_set_win_height_command): Use error_no_arg.
3231 (_initialize_tui_win): Update help text.
3232 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
3234 2020-02-22 Tom Tromey <tom@tromey.com>
3236 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
3237 * tui/tui-disasm.h (struct tui_disasm_window)
3238 <display_start_addr>: Declare.
3239 * tui/tui-source.h (struct tui_source_window)
3240 <display_start_addr>: Declare.
3241 * tui/tui-winsource.h (struct tui_source_window_base)
3242 <show_source_line, display_start_addr>: New methods.
3243 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
3244 Rename and move to protected section.
3245 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
3246 (tui_source_window_base::do_erase_source_content): Update.
3247 (tui_source_window_base::show_source_line): Now a method.
3248 (tui_source_window_base::show_source_content)
3249 (tui_source_window_base::tui_source_window_base)
3250 (tui_source_window_base::rerender)
3251 (tui_source_window_base::refill)
3252 (tui_source_window_base::do_scroll_horizontal)
3253 (tui_source_window_base::set_is_exec_point_at)
3254 (tui_source_window_base::update_breakpoint_info)
3255 (tui_source_window_base::update_exec_info): Update.
3256 * tui/tui-source.c (tui_source_window::set_contents)
3257 (tui_source_window::showing_source_p)
3258 (tui_source_window::do_scroll_vertical)
3259 (tui_source_window::location_matches_p)
3260 (tui_source_window::line_is_displayed): Update.
3261 (tui_source_window::display_start_addr): New method.
3262 * tui/tui-disasm.c (tui_disasm_window::set_contents)
3263 (tui_disasm_window::do_scroll_vertical)
3264 (tui_disasm_window::location_matches_p): Update.
3265 (tui_disasm_window::display_start_addr): New method.
3267 2020-02-22 Tom Tromey <tom@tromey.com>
3269 * NEWS: Add entry for gdb.register_window_type.
3270 * tui/tui-layout.h (window_factory): New typedef.
3271 (tui_register_window): Declare.
3272 * tui/tui-layout.c (saved_tui_windows): New global.
3273 (tui_apply_current_layout): Use it.
3274 (tui_register_window): New function.
3275 * python/python.c (do_start_initialization): Call
3276 gdbpy_initialize_tui.
3277 (python_GdbMethods): Add "register_window_type" function.
3278 * python/python-internal.h (gdbpy_register_tui_window)
3279 (gdbpy_initialize_tui): Declare.
3280 * python/py-tui.c: New file.
3281 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
3283 2020-02-22 Tom Tromey <tom@tromey.com>
3285 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
3287 2020-02-22 Tom Tromey <tom@tromey.com>
3289 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
3290 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
3291 * tui/tui-data.c (tui_set_win_with_focus): Remove.
3292 (tui_set_win_focus_to): Move from tui-win.c.
3294 2020-02-22 Tom Tromey <tom@tromey.com>
3296 * tui/tui-layout.c (make_standard_window, get_locator_window): New
3298 (known_window_types): New global.
3299 (tui_get_window_by_name): Reimplement.
3300 (initialize_known_windows): New function.
3301 (validate_window_name): Rewrite.
3302 (_initialize_tui_layout): Call initialize_known_windows.
3304 2020-02-22 Tom Tromey <tom@tromey.com>
3306 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
3308 * tui/tui-winsource.h (struct tui_source_window_base)
3309 <tui_source_window_base>: Remove parameter.
3310 * tui/tui-winsource.c
3311 (tui_source_window_base::tui_source_window_base): Remove
3313 (tui_source_window_base::refill): Update.
3314 * tui/tui-stack.h (struct tui_locator_window)
3315 <tui_locator_window>: Update.
3316 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
3317 Default the constructor.
3318 * tui/tui-regs.h (struct tui_data_item_window)
3319 <tui_data_item_window>: Default the constructor.
3320 (struct tui_data_window) <tui_data_window>: Likewise.
3321 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
3322 Default the constructor.
3323 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
3324 Default the constructor.
3326 (struct tui_win_info) <tui_win_info>: Default the constructor.
3327 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
3328 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
3329 Default the constructor.
3331 2020-02-22 Tom Tromey <tom@tromey.com>
3333 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
3334 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
3335 * tui/tui-win.c (tui_resize_all): Don't call
3336 tui_delete_invisible_windows.
3337 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
3339 (tui_set_layout): Update.
3340 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
3341 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
3342 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
3344 2020-02-22 Tom Tromey <tom@tromey.com>
3346 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
3349 2020-02-22 Tom Tromey <tom@tromey.com>
3351 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
3353 2020-02-22 Tom Tromey <tom@tromey.com>
3355 * tui/tui-winsource.h (struct tui_source_window_iterator)
3356 <inner_iterator>: New etytypedef.
3357 <tui_source_window_iterator>: Take "end" parameter.
3358 <tui_source_window_iterator>: Take iterator.
3359 <operator*, advance>: Update.
3360 <m_iter>: Change type.
3362 (struct tui_source_windows) <begin, end>: Update.
3363 * tui/tui-layout.c (tui_windows): New global.
3364 (tui_apply_current_layout): Clear tui_windows.
3365 (tui_layout_window::apply): Update tui_windows.
3366 * tui/tui-data.h (tui_windows): Declare.
3367 (all_tui_windows): Now inline function.
3368 (class tui_window_iterator, struct all_tui_windows): Remove.
3370 2020-02-22 Tom Tromey <tom@tromey.com>
3373 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
3374 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
3376 (class tui_layout_window) <get_sizes>: Likewise.
3377 (class tui_layout_split) <tui_layout_split>: Add "vertical"
3379 <get_sizes>: Add "height" argument.
3380 <m_vertical>: New field.
3381 * tui/tui-layout.c (tui_layout_split::clone): Update.
3382 (tui_layout_split::get_sizes): Add "height" argument.
3383 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
3384 (tui_new_layout_command): Parse "-horizontal".
3385 (_initialize_tui_layout): Update help string.
3386 (tui_layout_split::specification): Add "-horizontal" when needed.
3387 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
3389 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
3392 2020-02-22 Tom Tromey <tom@tromey.com>
3394 * tui/tui-layout.h (enum tui_adjust_result): New.
3395 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
3396 (class tui_layout_window) <adjust_size>: Return
3397 tui_adjust_result. Rewrite.
3398 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
3399 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
3401 2020-02-22 Tom Tromey <tom@tromey.com>
3403 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
3404 parameter and return types.
3405 (class tui_layout_base) <specification>: Add "depth".
3406 (class tui_layout_window) <specification>: Add "depth".
3407 (class tui_layout_split) <specification>: Add "depth".
3408 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
3410 (tui_new_layout_command): Parse sub-layouts.
3411 (_initialize_tui_layout): Update help string.
3412 (tui_layout_window::specification): Add "depth".
3413 (add_layout_command): Update.
3415 2020-02-22 Tom Tromey <tom@tromey.com>
3417 * NEWS: Add "tui new-layout" item.
3418 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
3419 Add new-layout command to help text.
3420 (validate_window_name): New function.
3421 (tui_new_layout_command): New function.
3422 (_initialize_tui_layout): Register "new-layout".
3423 (tui_layout_window::specification): New method.
3424 (tui_layout_window::specification): New method.
3425 * tui/tui-layout.h (class tui_layout_base) <specification>: New
3427 (class tui_layout_window) <specification>: New method.
3428 (class tui_layout_split) <specification>: New method.
3430 2020-02-22 Tom Tromey <tom@tromey.com>
3432 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
3433 * tui/tui-win.c (window_name_completer): Update comment.
3434 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
3436 (class tui_layout_window) <replace_window>: Likewise.
3437 (class tui_layout_split) <replace_window>: Likewise.
3438 (tui_set_layout): Don't declare.
3439 (tui_set_initial_layout): Declare function.
3440 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
3441 (asm_regs_layout): New globals.
3442 (tui_current_layout, show_layout): Remove.
3443 (tui_set_layout, tui_add_win_to_layout): Rewrite.
3444 (find_layout, tui_apply_layout): New function.
3445 (layout_completer): Remove.
3446 (tui_next_layout): Reimplement.
3447 (tui_next_layout_command): New function.
3448 (tui_set_initial_layout, tui_prev_layout_command): New functions.
3449 (tui_regs_layout): Reimplement.
3450 (tui_regs_layout_command): New function.
3451 (extract_display_start_addr): Rewrite.
3452 (next_layout, prev_layout): Remove.
3453 (tui_layout_window::replace_window): New method.
3454 (tui_layout_split::replace_window): New method.
3455 (destroy_layout): New function.
3456 (layout_list): New global.
3457 (add_layout_command): New function.
3458 (initialize_layouts): Update.
3459 (tui_layout_command): New function.
3460 (_initialize_tui_layout): Install "layout" commands.
3461 * tui/tui-data.h (enum tui_layout_type): Remove.
3462 (tui_current_layout): Don't declare.
3464 2020-02-22 Tom Tromey <tom@tromey.com>
3466 * tui/tui-regs.c (tui_reg_layout): Remove.
3467 (tui_reg_command): Use tui_regs_layout.
3468 * tui/tui-layout.h (tui_reg_command): Declare.
3469 * tui/tui-layout.c (tui_reg_command): New function.
3471 2020-02-22 Tom Tromey <tom@tromey.com>
3473 * tui/tui.c (tui_rl_delete_other_windows): Call
3474 tui_remove_some_windows.
3475 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
3477 (class tui_layout_window) <remove_windows>: New method.
3478 (class tui_layout_split) <remove_windows>: Declare.
3479 (tui_remove_some_windows): Declare.
3480 * tui/tui-layout.c (tui_remove_some_windows): New function.
3481 (tui_layout_split::remove_windows): New method.
3483 2020-02-22 Tom Tromey <tom@tromey.com>
3485 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
3486 * tui/tui-layout.h (tui_next_layout): Declare.
3487 * tui/tui-layout.c (tui_next_layout): New function.
3489 2020-02-22 Tom Tromey <tom@tromey.com>
3491 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
3492 correct coordinates.
3494 2020-02-22 Tom Tromey <tom@tromey.com>
3496 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
3497 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
3500 2020-02-22 Tom Tromey <tom@tromey.com>
3502 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
3503 TUI_DISASM_WIN, not tui_win_list.
3505 2020-02-22 Tom Tromey <tom@tromey.com>
3507 * valprint.c (generic_val_print_enum_1)
3508 (val_print_type_code_flags): Style member names.
3509 * rust-lang.c (val_print_struct, rust_print_enum)
3510 (rust_print_struct_def, rust_internal_print_type): Style member
3512 * p-valprint.c (pascal_object_print_value_fields): Style member
3513 names. Only call fprintf_symbol_filtered for static members.
3514 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
3515 * f-valprint.c (f_val_print): Style member names.
3516 * f-typeprint.c (f_type_print_base): Style member names.
3517 * cp-valprint.c (cp_print_value_fields): Style member names. Only
3518 call fprintf_symbol_filtered for static members.
3519 (cp_print_class_member): Style member names.
3520 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
3522 * ada-valprint.c (ada_print_scalar): Style enum names.
3523 (ada_val_print_enum): Likewise.
3524 * ada-typeprint.c (print_enum_type): Style enum names.
3526 2020-02-21 Tom Tromey <tom@tromey.com>
3528 * psympriv.h (struct partial_symtab): Update comment.
3530 2020-02-21 Tom Tromey <tromey@adacore.com>
3532 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
3535 2020-02-21 Tom de Vries <tdevries@suse.de>
3538 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
3539 if dependencies[i]->user != NULL.
3541 2020-02-21 Ali Tamur <tamur@google.com>
3543 * dwarf2/read.c (dwarf2_name): Add null check.
3545 2020-02-20 Tom Tromey <tom@tromey.com>
3547 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
3548 ">=", in binary search.
3549 (dwarf2_find_containing_comp_unit): New overload.
3550 (run_test): New self-test.
3551 (_initialize_dwarf2_read): Register new test.
3553 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
3555 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
3556 * riscv-tdep.h: Likewise.
3557 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
3559 * features/riscv/64bit-csr.xml: Regenerated.
3561 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
3562 Tom Tromey <tom@tromey.com>
3564 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
3565 of 'fputc_unfiltered'.
3566 (putchar_unfiltered): Call 'fputc_unfiltered'.
3567 (fputc_unfiltered): Call 'fputs_unfiltered'.
3569 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
3571 * config.in: Regenerate.
3572 * configure: Regenerate.
3573 * configure.ac: Add --with-python-libdir option.
3574 * main.c: Use WITH_PYTHON_LIBDIR.
3576 2020-02-19 Tom Tromey <tom@tromey.com>
3578 * symtab.c (general_symbol_info::compute_and_set_names): Use
3579 obstack_strndup. Simplify call to symbol_set_demangled_name.
3581 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
3583 * dwarf2/read.c (allocate_signatured_type_table,
3584 allocate_dwo_unit_table, allocate_type_unit_groups_table,
3585 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
3586 Remove objfile parameter, update all callers.
3588 2020-02-19 Doug Evans <dje@google.com>
3591 * rust-lang.c (rust_print_enum): Apply embedded_offset to
3592 rust_enum_variant calculation.
3594 2020-02-19 Tom Tromey <tromey@adacore.com>
3596 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
3598 2020-02-19 Tom Tromey <tromey@adacore.com>
3600 * ada-lang.c (cache_symbol): Use obstack_strdup.
3602 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3604 * configure: Regenerate.
3606 2020-02-19 Tom Tromey <tromey@adacore.com>
3608 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
3611 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
3613 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
3615 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3617 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
3618 if GDBSERVER is not defined.
3619 (riscv_tdesc_cache): Likewise, also store const target_desc.
3620 (STATIC_IN_GDB): Define.
3621 (riscv_create_target_description): Update declaration with
3623 (riscv_lookup_target_description): New function, only define if
3624 GDBSERVER is not defined.
3625 * arch/riscv.h (riscv_create_target_description): Declare only
3626 when GDBSERVER is defined.
3627 (riscv_lookup_target_description): New declaration when GDBSERVER
3629 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
3630 (riscv_linux_read_features): ...this, and return
3631 riscv_gdbarch_features instead of target_desc.
3632 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
3633 (riscv_linux_read_description): Rename to...
3634 (riscv_linux_read_features): ...this.
3635 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
3636 Update to use riscv_gdbarch_features and
3637 riscv_lookup_target_description.
3638 * riscv-tdep.c (riscv_find_default_target_description): Use
3639 riscv_lookup_target_description instead of
3640 riscv_create_target_description.
3642 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
3644 * valprint.c (generic_val_print_enum_1): When printing a flag
3645 enum with value 0 and there is no enumerator with value 0, print
3646 just "0" instead of "(unknown: 0x0)".
3648 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
3650 * valprint.c (generic_val_print_enum_1): Print unknown part of
3653 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
3655 * dwarf2/read.c (update_enumeration_type_from_children): Allow
3656 flag enums to contain duplicate enumerators.
3657 * valprint.c (generic_val_print_enum_1): Update comment.
3659 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
3661 * dwarf2/read.c: Include "count-one-bits.h".
3662 (update_enumeration_type_from_children): If an enumerator has
3663 multiple bits set, don't treat the enumeration as a "flag enum".
3664 * valprint.c (generic_val_print_enum_1): Assert that enumerators
3665 of flag enums have 0 or 1 bit set.
3667 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
3669 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
3671 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
3672 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3673 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
3674 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
3675 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
3677 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
3679 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
3681 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
3683 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
3684 displaced_step_closure_up.
3685 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
3686 (struct displaced_step_closure_up):
3687 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
3688 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
3689 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
3691 * gdbarch.sh (displaced_step_copy_insn): Likewise.
3692 * gdbarch.c, gdbarch.h: Re-generate.
3693 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
3694 displaced_step_closure_up.
3695 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
3696 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
3697 * infrun.h (displaced_step_closure_up): New type alias.
3698 (struct displaced_step_inferior_state) <step_closure>: Change
3699 type to displaced_step_closure_up.
3700 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
3701 displaced_step_closure_up.
3702 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
3704 2020-02-14 Tom Tromey <tom@tromey.com>
3706 * minidebug.c (gnu_debug_key): New global.
3707 (find_separate_debug_file_in_section): Use it.
3709 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
3711 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
3713 * gdbarch.c: Re-generate.
3714 * gdbarch.h: Re-generate.
3715 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
3717 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
3718 type to std::unique_ptr.
3719 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
3720 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
3721 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
3722 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3723 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
3724 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
3725 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
3726 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
3727 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
3729 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
3731 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
3733 (displaced_step_clear): Rename to...
3734 (displaced_step_reset): ... this. Just call displaced->reset ().
3735 (displaced_step_clear_cleanup): Rename to...
3736 (displaced_step_reset_cleanup): ... this.
3737 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
3738 (displaced_step_fixup): Likewise.
3739 (resume_1): Likewise.
3740 (handle_inferior_event): Restore child's memory before calling
3741 displaced_step_fixup on the parent.
3742 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
3744 <step_closure>: Change type to std::unique_ptr.
3746 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
3748 * arm-tdep.c: Include count-one-bits.h.
3749 (cleanup_block_store_pc): Use count_one_bits.
3750 (cleanup_block_load_pc): Use count_one_bits.
3751 (arm_copy_block_xfer): Use count_one_bits.
3752 (thumb2_copy_block_xfer): Use count_one_bits.
3753 (thumb_copy_pop_pc_16bit): Use count_one_bits.
3754 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
3755 (thumb_get_next_pcs_raw): Use count_one_bits.
3756 (arm_get_next_pcs_raw): Use count_one_bits_l.
3757 * arch/arm.c (bitcount): Remove.
3758 * arch/arm.h (bitcount): Remove.
3760 2020-02-14 Tom Tromey <tromey@adacore.com>
3762 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
3764 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
3765 * dwarf2/loc.c (call_site_find_chain_1): Return
3767 (call_site_find_chain): Likewise.
3769 2020-02-14 Richard Biener <rguenther@suse.de>
3771 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
3772 on expression with division operators.
3774 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3776 * MAINTAINERS (Write After Approval): Adding myself.
3778 2020-02-12 Tom Tromey <tom@tromey.com>
3780 * event-loop.c (event_data, gdb_event, event_handler_func):
3783 2020-02-12 Tom Tromey <tom@tromey.com>
3785 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
3786 (dwarf2_frame_objfile_data): Add comment.
3787 (find_comp_unit, set_comp_unit): New functions.
3788 (dwarf2_frame_find_fde): Use find_comp_unit.
3789 (dwarf2_build_frame_info): Use set_comp_unit.
3791 2020-02-12 Tom Tromey <tom@tromey.com>
3793 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
3794 (comp_unit): Don't initialize objfile.
3795 (execute_cfa_program): Add text_offset parameter.
3796 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
3797 (dwarf2_frame_cache): Update.
3798 (dwarf2_build_frame_info): Don't set "objfile" member.
3800 2020-02-12 Tom Tromey <tom@tromey.com>
3802 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
3803 (decode_frame_entry): Likewise.
3804 (dwarf2_build_frame_info): Update.
3806 2020-02-12 Tom Tromey <tom@tromey.com>
3808 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
3809 (decode_frame_entry_1): Use the comp_unit obstack.
3811 2020-02-12 Tom Tromey <tom@tromey.com>
3813 * dwarf2/frame.c (struct comp_unit): Add initializers and
3815 (dwarf2_frame_objfile_data): Store a comp_unit.
3816 (dwarf2_frame_find_fde): Update.
3817 (dwarf2_build_frame_info): Use "new".
3819 2020-02-12 Tom Tromey <tom@tromey.com>
3821 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
3822 (dwarf2_fde_table): Typedef for std::vector.
3823 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
3824 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
3825 (decode_frame_entry): Update.
3826 (dwarf2_build_frame_info): Use "new".
3828 2020-02-12 Christian Biesinger <cbiesinger@google.com>
3830 * arm-tdep.c (arm_gdbarch_init): Update.
3831 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
3832 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
3833 have_neon, is_m>: Change to bool.
3835 2020-02-12 Christian Biesinger <cbiesinger@google.com>
3837 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
3839 2020-02-12 Tom Tromey <tom@tromey.com>
3841 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
3843 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
3845 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
3846 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
3848 2020-02-11 Tom Tromey <tom@tromey.com>
3850 * psymtab.h: Update comment.
3852 2020-02-11 Tom Tromey <tom@tromey.com>
3854 * gdb_obstack.h (struct auto_obstack): Use
3855 DISABLE_COPY_AND_ASSIGN.
3857 2020-02-11 Tom Tromey <tom@tromey.com>
3859 * dwarf2/frame.h (struct objfile): Don't forward declare.
3861 2020-02-11 Christian Biesinger <cbiesinger@google.com>
3863 * cris-tdep.c (cris_supply_gregset): Change signature to match
3864 what struct regset expects.
3865 (cris_regset): New struct.
3866 (fetch_core_registers): Remove.
3867 (cris_iterate_over_regset_sections): New function.
3868 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
3869 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
3871 2020-02-11 Christian Biesinger <cbiesinger@google.com>
3873 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
3876 2020-02-11 Christian Biesinger <cbiesinger@google.com>
3878 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
3880 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3882 * configure: Re-generate.
3884 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3886 * configure: Re-generate.
3888 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3890 * acinclude: Update warning.m4 path.
3891 * warning.m4: Move to gdbsupport.
3893 2020-02-11 Tom Tromey <tromey@adacore.com>
3895 * remote.c (remote_console_output): Update.
3896 * printcmd.c (printf_command): Update.
3897 * event-loop.c (gdb_wait_for_event): Update.
3898 * linux-nat.c (sigchld_handler): Update.
3899 * remote-sim.c (gdb_os_write_stdout): Update.
3900 (gdb_os_flush_stdout): Update.
3901 (gdb_os_flush_stderr): Update.
3902 (gdb_os_write_stderr): Update.
3903 * exceptions.c (print_exception): Update.
3904 * remote-fileio.c (remote_fileio_func_read): Update.
3905 (remote_fileio_func_write): Update.
3906 * tui/tui.c (tui_enable): Update.
3907 * tui/tui-interp.c (tui_interp::init): Update.
3908 * utils.c (init_page_info): Update.
3909 (putchar_unfiltered, fputc_unfiltered): Update.
3910 (gdb_flush): Update.
3911 (emit_style_escape): Update.
3912 (flush_wrap_buffer, fputs_maybe_filtered): Update.
3913 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
3914 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
3915 (stderr_file::write): Update.
3916 (stderr_file::puts): Update.
3917 * ui-file.h (ui_file_isatty, ui_file_write)
3918 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
3919 (ui_file_puts): Don't declare.
3921 2020-02-10 Tom de Vries <tdevries@suse.de>
3923 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
3926 2020-02-09 Tom de Vries <tdevries@suse.de>
3928 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
3929 filename if it matches "<artificial>".
3931 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
3933 * windows-tdep.c (struct enum_value_name): New struct.
3934 (create_enum): New function.
3935 (windows_get_siginfo_type): Create and use enum types.
3937 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
3939 * NEWS: Mention $_siginfo support for Windows.
3940 * windows-nat.c (handle_exception): Set siginfo_er.
3941 (windows_nat_target::mourn_inferior): Reset siginfo_er.
3942 (windows_xfer_siginfo): New function.
3943 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
3944 * windows-tdep.c (struct windows_gdbarch_data): New struct.
3945 (init_windows_gdbarch_data): New function.
3946 (get_windows_gdbarch_data): New function.
3947 (windows_get_siginfo_type): New function.
3948 (windows_init_abi): Register windows_get_siginfo_type.
3949 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
3951 2020-02-08 Tom Tromey <tom@tromey.com>
3953 * dwarf2/read.c (class cutu_reader) <cutu_reader,
3954 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
3955 <keep>: Declare method.
3956 <m_keep>: Remove member.
3957 <~cutu_reader>: Remove.
3958 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3959 (cutu_reader::cutu_reader): Update.
3960 (cutu_reader::keep): Rename from ~cutu_reader.
3961 (process_psymtab_comp_unit, build_type_psymtabs_1)
3962 (process_skeletonless_type_unit, load_partial_comp_unit)
3963 (load_full_comp_unit, dwarf2_read_addr_index)
3964 (read_signatured_type): Update.
3966 2020-02-08 Tom Tromey <tom@tromey.com>
3968 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
3969 "want_partial_unit" parameter.
3970 (process_psymtab_comp_unit): Change want_partial_unit to bool.
3971 Inline check for DW_TAG_partial_unit.
3972 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
3974 2020-02-08 Tom Tromey <tom@tromey.com>
3976 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
3978 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
3981 2020-02-08 Tom Tromey <tom@tromey.com>
3983 * dwarf2/read.c (read_address): Move to comp-unit.c.
3984 (dwarf2_rnglists_process, dwarf2_ranges_process)
3985 (read_attribute_value, dwarf_decode_lines_1)
3986 (var_decode_location, decode_locdesc): Update.
3987 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
3988 read.c. Remove "cu" parameter.
3989 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
3992 2020-02-08 Tom Tromey <tom@tromey.com>
3994 * dwarf2/read.c (read_attribute_value, read_indirect_string)
3995 (read_indirect_line_string): Update.
3996 * dwarf2/comp-unit.c (read_offset): Remove.
3997 (read_comp_unit_head): Update.
3998 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
4000 (read_offset): Don't declare.
4002 2020-02-08 Tom Tromey <tom@tromey.com>
4004 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
4005 * dwarf2/read.c (struct comp_unit_head): Move to
4007 (enum class rcuh_kind): Move to comp-unit.h.
4008 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
4009 (read_comp_unit_head, error_check_comp_unit_head)
4010 (read_and_check_comp_unit_head): Move to comp-unit.c.
4011 (read_offset, dwarf_unit_type_name): Likewise.
4012 (create_debug_type_hash_table, read_cutu_die_from_dwo)
4013 (cutu_reader::cutu_reader, read_call_site_scope)
4014 (find_partial_die, follow_die_offset): Update.
4015 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
4017 2020-02-08 Tom Tromey <tom@tromey.com>
4019 * dwarf2/read.c (read_offset_1): Move to leb.c.
4020 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
4021 (dwarf_decode_macro_bytes): Update.
4022 * dwarf2/leb.c (read_offset): Rename; move from read.c.
4023 * dwarf2/leb.h (read_offset): Declare.
4025 2020-02-08 Tom Tromey <tom@tromey.com>
4027 * dwarf2/read.c (dwarf2_section_size): Remove.
4028 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
4030 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
4032 2020-02-08 Tom Tromey <tom@tromey.com>
4034 * dwarf2/read.c (read_initial_length): Move to leb.c.
4035 * dwarf2/leb.h (read_initial_length): Declare.
4036 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
4037 handle_nonstd parameter.
4038 * dwarf2/frame.c (read_initial_length): Remove.
4039 (decode_frame_entry_1): Update.
4041 2020-02-08 Tom Tromey <tom@tromey.com>
4043 * dwarf2/loc.c (dwarf2_find_location_expression)
4044 (dwarf_evaluate_loc_desc::get_tls_address)
4045 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
4046 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
4047 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
4048 (dwarf2_compile_property_to_c)
4049 (dwarf2_loc_desc_get_symbol_read_needs)
4050 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
4051 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
4052 (loclist_describe_location, loclist_tracepoint_var_ref)
4053 (loclist_generate_c_location): Update.
4054 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
4055 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
4056 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
4057 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
4058 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
4059 (dwarf2_per_cu_data::addr_size)
4060 (dwarf2_per_cu_data::ref_addr_size)
4061 (dwarf2_per_cu_data::text_offset)
4062 (dwarf2_per_cu_data::addr_type): Now methods.
4063 (per_cu_header_read_in): Make per_cu "const".
4064 (dwarf2_version): Remove.
4065 (dwarf2_per_cu_data::int_type): Now a method.
4066 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
4067 (set_die_type, read_array_type, read_subrange_index_type)
4068 (read_tag_string_type, read_subrange_type): Update.
4069 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
4070 offset_size, ref_addr_size, text_offset, addr_type, version,
4071 objfile, int_type, addr_sized_int_type>: Declare methods.
4073 2020-02-08 Tom Tromey <tom@tromey.com>
4075 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
4078 2020-02-08 Tom Tromey <tom@tromey.com>
4080 * dwarf2/read.h (dwarf_line_debug): Declare.
4081 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
4082 * dwarf2/read.c: Move line_header code to new files.
4083 (dwarf_line_debug): No longer static.
4084 * dwarf2/line-header.c: New file.
4085 * dwarf2/line-header.h: New file.
4087 2020-02-08 Tom Tromey <tom@tromey.com>
4089 * dwarf2/read.c (struct line_header) <file_full_name,
4090 file_file_name>: Return unique_xmalloc_ptr.
4091 (line_header::file_file_name): Update.
4092 (line_header::file_full_name): Update.
4093 (dw2_get_file_names_reader): Update.
4094 (macro_start_file): Update.
4096 2020-02-08 Tom Tromey <tom@tromey.com>
4098 * dwarf2/read.c (struct line_header) <file_full_name,
4099 file_file_name>: Declare methods.
4100 (dw2_get_file_names_reader): Update.
4101 (file_file_name): Now a method.
4102 (file_full_name): Likewise.
4103 (macro_start_file): Update.
4105 2020-02-08 Tom Tromey <tom@tromey.com>
4107 * dwarf2/read.c (dwarf_always_disassemble)
4108 (show_dwarf_always_disassemble): Move to loc.c.
4109 (_initialize_dwarf2_read): Move "always-disassemble" registration
4111 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
4112 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
4114 (show_dwarf_always_disassemble): Move from read.c.
4115 (_initialize_dwarf2loc): Move always-disassemble from read.c.
4117 2020-02-08 Tom Tromey <tom@tromey.com>
4119 * dwarf2/read.c (~dwarf2_per_objfile): Update.
4120 (create_quick_file_names_table): Return htab_up.
4121 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
4123 * dwarf2/read.h (struct dwarf2_per_objfile)
4124 <quick_file_names_table>: Now htab_up.
4126 2020-02-08 Tom Tromey <tom@tromey.com>
4128 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
4130 2020-02-08 Tom Tromey <tom@tromey.com>
4132 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
4134 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
4135 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
4136 (abbrev_table::abbrev_table): No longer inline.
4137 (ABBREV_HASH_SIZE): Remove.
4138 (abbrev_table::m_abbrevs): Now an htab_up.
4140 2020-02-08 Tom Tromey <tom@tromey.com>
4142 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
4143 (cutu_reader): Update.
4144 (build_type_psymtabs_1): Update.
4145 * dwarf2/abbrev.c (abbrev_table::read): Rename.
4146 (abbrev_table::alloc_abbrev): Update.
4147 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
4148 (abbrev_table::read): New static method, renamed from
4149 abbrev_table_read_table.
4150 (abbrev_table::alloc_abbrev)
4151 (abbrev_table::add_abbrev): Now private.
4152 (abbrev_table::abbrev_table): Now private.
4153 (abbrev_table::m_abbrev_obstack): Now private. Rename.
4155 2020-02-08 Tom Tromey <tom@tromey.com>
4157 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
4158 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
4161 2020-02-08 Tom Tromey <tom@tromey.com>
4163 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
4165 (lookup_dwo_unit_in_dwp): Update.
4166 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
4169 2020-02-08 Tom Tromey <tom@tromey.com>
4171 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
4174 2020-02-08 Tom Tromey <tom@tromey.com>
4176 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
4178 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
4179 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
4180 Change type to htab_up.
4182 2020-02-08 Tom Tromey <tom@tromey.com>
4184 * dwarf2/read.c (allocate_type_unit_groups_table): Return
4185 htab_up. Don't allocate on obstack.
4186 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
4187 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
4188 Change type to htab_up.
4190 2020-02-08 Tom Tromey <tom@tromey.com>
4192 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
4193 Change type to htab_up.
4194 * dwarf2/read.c (create_signatured_type_table_from_index)
4195 (create_signatured_type_table_from_debug_names)
4196 (create_all_type_units, add_type_unit)
4197 (lookup_dwo_signatured_type, lookup_signatured_type)
4198 (process_skeletonless_type_unit): Update.
4199 (create_debug_type_hash_table, create_debug_types_hash_table):
4200 Change type of types_htab.
4201 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
4202 htab_up. Don't allocate on obstack.
4203 (create_cus_hash_table): Change type of cus_htab parameter.
4204 (struct dwo_file) <cus, tus>: Now htab_up.
4205 (lookup_dwo_signatured_type, lookup_dwo_cutu)
4206 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
4207 (queue_and_load_all_dwo_tus): Update.
4208 * dwarf2/index-write.c (write_gdbindex): Update.
4209 (write_debug_names): Update.
4211 2020-02-08 Tom Tromey <tom@tromey.com>
4213 * dwarf2/read.h (struct dwarf2_queue_item): Move from
4214 dwarf2/read.c. Remove "next" member. Add constructor ntad
4216 (struct dwarf2_per_objfile) <queue>: New member.
4217 * dwarf2/read.c (struct dwarf2_queue_item): Move to
4219 (dwarf2_queue, dwarf2_queue_tail): Remove.
4220 (class dwarf2_queue_guard): Add parameter to constructor. Use
4221 DISABLE_COPY_AND_ASSIGN.
4222 <m_per_objfile>: New member.
4223 <~dwarf2_queue_guard>: Rewrite.
4224 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
4226 (~dwarf2_queue_item): New.
4228 2020-02-08 Tom Tromey <tom@tromey.com>
4230 * dwarf2/read.c (struct die_info) <has_children>: New member.
4231 (dw2_get_file_names_reader): Remove has_children.
4232 (dw2_get_file_names): Update.
4233 (read_cutu_die_from_dwo): Remove has_children.
4234 (cutu_reader::init_tu_and_read_dwo_dies)
4235 (cutu_reader::cutu_reader): Update.
4236 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
4237 Remove has_children.
4238 (build_type_psymtabs_1, process_skeletonless_type_unit)
4239 (load_partial_comp_unit, load_full_comp_unit): Update.
4240 (create_dwo_cu_reader): Remove has_children.
4241 (create_cus_hash_table, read_die_and_children): Update.
4242 (read_full_die_1,read_full_die): Remove has_children.
4243 (read_signatured_type): Update.
4244 (class cutu_reader) <has_children>: Remove.
4246 2020-02-08 Tom Tromey <tom@tromey.com>
4248 * dwarf2/expr.c: Rename from dwarf2expr.c.
4249 * dwarf2/expr.h: Rename from dwarf2expr.h.
4250 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
4251 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
4252 * dwarf2/frame.c: Rename from dwarf2-frame.c.
4253 * dwarf2/frame.h: Rename from dwarf2-frame.h.
4254 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
4255 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
4256 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
4257 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
4258 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
4259 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
4260 * dwarf2/loc.c: Rename from dwarf2loc.c.
4261 * dwarf2/loc.h: Rename from dwarf2loc.h.
4262 * dwarf2/read.c: Rename from dwarf2read.c.
4263 * dwarf2/read.h: Rename from dwarf2read.h.
4264 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
4265 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
4266 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
4267 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
4268 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
4269 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
4270 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
4271 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
4272 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
4273 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
4274 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
4275 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
4276 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
4278 * Makefile.in (COMMON_SFILES): Update.
4279 (HFILES_NO_SRCDIR): Update.
4281 2020-02-08 Tom Tromey <tom@tromey.com>
4283 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
4284 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
4286 2020-02-08 Tom Tromey <tom@tromey.com>
4288 * dwarf2read.h (struct die_info): Don't declare.
4290 2020-02-08 Tom Tromey <tom@tromey.com>
4292 * dwarf2read.h (die_info_ptr): Remove typedef.
4294 2020-02-08 Tom Tromey <tom@tromey.com>
4296 * dwarf2read.c (read_call_site_scope)
4297 (handle_data_member_location, dwarf2_add_member_fn)
4298 (mark_common_block_symbol_computed, read_common_block)
4299 (attr_to_dynamic_prop, partial_die_info::read)
4300 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
4301 (dwarf2_symbol_mark_computed, set_die_type): Update.
4302 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
4304 (attr_form_is_block): Don't declare.
4305 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
4307 2020-02-08 Tom Tromey <tom@tromey.com>
4309 * dwarf2read.c (dwarf2_find_base_address, )
4310 (read_call_site_scope, rust_containing_type)
4311 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
4312 (handle_data_member_location, dwarf2_add_member_fn)
4313 (get_alignment, read_structure_type, process_structure_scope)
4314 (mark_common_block_symbol_computed, read_common_block)
4315 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
4316 (partial_die_info::read, read_attribute_value, new_symbol)
4317 (lookup_die_type, dwarf2_get_ref_die_offset)
4318 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
4319 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
4320 (dwarf2_symbol_mark_computed): Update.
4321 * dwarf2/attribute.h (struct attribute) <value_as_address,
4322 form_is_section_offset, form_is_constant, form_is_ref>: Declare
4324 (value_as_address, attr_form_is_section_offset)
4325 (attr_form_is_constant, attr_form_is_ref): Don't declare.
4326 * dwarf2/attribute.c (attribute::value_as_address)
4327 (attribute::form_is_section_offset, attribute::form_is_constant)
4328 (attribute::form_is_ref): Now methods.
4330 2020-02-08 Tom Tromey <tom@tromey.com>
4332 * dwarf2read.c (struct attribute, DW_STRING)
4333 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
4334 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
4335 (attr_form_is_block, attr_form_is_section_offset)
4336 (attr_form_is_constant, attr_form_is_ref): Move.
4337 * dwarf2/attribute.h: New file.
4338 * dwarf2/attribute.c: New file, from dwarf2read.c.
4339 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
4341 2020-02-08 Tom Tromey <tom@tromey.com>
4343 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
4344 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
4346 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
4347 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
4348 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
4350 * dwarf2/abbrev.h: New file.
4351 * dwarf2/abbrev.c: New file, from dwarf2read.c.
4352 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
4354 2020-02-08 Tom Tromey <tom@tromey.com>
4356 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
4357 (dwarf2_section_size, dwarf2_get_section_info)
4358 (create_signatured_type_table_from_debug_names)
4359 (create_addrmap_from_aranges, read_debug_names_from_section)
4360 (get_gdb_index_contents_from_section, read_comp_unit_head)
4361 (error_check_comp_unit_head, read_abbrev_offset)
4362 (create_debug_type_hash_table, init_cu_die_reader)
4363 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
4364 (read_comp_units_from_section, create_cus_hash_table)
4365 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4366 (create_dwp_v2_section, dwarf2_rnglists_process)
4367 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
4368 (abbrev_table_read_table, read_indirect_string_at_offset_from)
4369 (read_indirect_string_from_dwz, read_addr_index_1)
4370 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
4371 (dwarf_decode_macro_bytes, dwarf_decode_macros)
4372 (fill_in_loclist_baton): Update.
4373 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
4374 get_containing_section, get_bfd_owner, get_bfd_section,
4375 get_file_name, get_id, get_flags, empty, read>: Declare methods.
4376 (dwarf2_read_section, get_section_name, get_section_file_name)
4377 (get_containing_section, get_section_bfd_owner)
4378 (get_section_bfd_section, get_section_name, get_section_file_name)
4379 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
4381 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
4382 (dwarf2_section_info::get_bfd_owner)
4383 (dwarf2_section_info::get_bfd_section)
4384 (dwarf2_section_info::get_name)
4385 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
4386 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
4387 (dwarf2_section_info::read): Now methods.
4388 * dwarf-index-write.c (class debug_names): Update.
4390 2020-02-08 Tom Tromey <tom@tromey.com>
4392 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
4393 Move to dwarf2/section.h.
4394 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
4395 (get_section_bfd_section, get_section_name)
4396 (get_section_file_name, get_section_id, get_section_flags)
4397 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
4399 * dwarf2/section.h: New file.
4400 * dwarf2/section.c: New file, from dwarf2read.c.
4401 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
4403 2020-02-08 Tom Tromey <tom@tromey.com>
4405 * dwarf2read.h (read_unsigned_leb128): Don't declare.
4406 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
4407 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
4408 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
4409 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
4410 * dwarf2/leb.h: New file, from dwarf2read.c.
4411 * dwarf2/leb.c: New file, from dwarf2read.c.
4412 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
4414 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
4415 (COMMON_SFILES): Add dwarf2/leb.c.
4417 2020-02-08 Joel Brobecker <brobecker@adacore.com>
4421 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
4424 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
4425 * gdb/remote.c (remote_console_output): Update.
4426 * gdb/ui-file.c (fputs_unfiltered): Rename to...
4427 (ui_file_puts): ...this.
4428 * gdb/ui-file.h (ui_file_puts): Add declaration.
4429 * gdb/utils.c (emit_style_escape): Update.
4430 (flush_wrap_buffer): Update.
4431 (fputs_maybe_filtered): Update.
4432 (fputs_unfiltered): Add function.
4434 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
4436 * gdb/event-loop.c (gdb_wait_for_event): Update.
4437 * gdb/printcmd.c (printf_command): Update.
4438 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
4439 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
4440 (gdb_os_flush_stderr): Update.
4441 * gdb/remote.c (remote_console_output): Update.
4442 * gdb/ui-file.c (gdb_flush): Rename to...
4443 (ui_file_flush): ...this.
4444 (stderr_file::write): Update.
4445 (stderr_file::puts): Update.
4446 * gdb/ui-file.h (gdb_flush): Rename to...
4447 (ui_file_flush): ...this.
4448 * gdb/utils.c (gdb_flush): Add function.
4449 * gdb/utils.h (gdb_flush): Add declaration.
4451 2020-02-07 Tom Tromey <tromey@adacore.com>
4453 PR breakpoints/24915:
4454 * source.c (find_and_open_source): Do not check basenames_may_differ.
4456 2020-02-07 Tom Tromey <tom@tromey.com>
4458 * README: Update gdbserver documentation.
4459 * gdbserver: Move to top level.
4460 * configure.tgt (build_gdbserver): Remove.
4461 * configure.ac: Remove --enable-gdbserver.
4462 * configure: Rebuild.
4463 * Makefile.in (distclean): Don't mention gdbserver.
4465 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
4467 * source-cache.c (source_cache::ensure): Surround
4468 get_plain_source_lines with a try/catch.
4469 (source_cache::get_line_charpos): Get rid of try/catch
4470 and only check for the return value of "ensure".
4471 * tui/tui-source.c (tui_source_window::set_contents):
4472 Simplify "nlines" calculation.
4474 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
4476 * MAINTAINERS (Write After Approval): Add myself.
4478 2020-02-05 Christian Biesinger <cbiesinger@google.com>
4480 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
4483 2020-02-05 Christian Biesinger <cbiesinger@google.com>
4485 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
4487 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
4489 * nat/riscv-linux-tdesc.h: New file.
4490 * nat/riscv-linux-tdesc.c: New file, taking code from...
4491 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
4493 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
4496 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
4498 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
4499 we don't set the fake simulator ptid to the null_ptid.
4501 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
4503 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
4504 * gdbthread.h (class thread_info) <resumed>: Likewise.
4505 * infrun.c (resume_1): Likewise.
4506 (proceed): Likewise.
4507 (infrun_thread_stop_requested): Likewise.
4508 (stop_all_threads): Likewise.
4509 (handle_inferior_event): Likewise.
4510 (restart_threads): Likewise.
4511 (finish_step_over): Likewise.
4512 (keep_going_stepped_thread): Likewise.
4513 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
4514 (linux_handle_extended_wait): Likewise.
4515 * record-btrace.c (get_thread_current_frame_id): Likewise.
4516 * record-full.c (record_full_wait_1): Likewise.
4517 * remote.c (remote_target::process_initial_stop_replies): Likewise.
4518 * target.c (target_resume): Likewise.
4519 * thread.c (set_running_thread): Likewise.
4521 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4523 * f-valprint.c (f77_print_array_1): Changed datatype of index
4524 variable to LONGEST from int to enable it to contain bound
4527 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
4529 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
4530 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
4531 offsets according to FLEN determined.
4532 (riscv_linux_nat_target::read_description): Determine FLEN
4534 (riscv_linux_nat_target::fetch_registers): Size regset buffer
4535 according to FLEN determined.
4536 (riscv_linux_nat_target::store_registers): Likewise.
4538 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
4540 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
4541 when reg->group is empty and reggroup is not.
4543 2020-01-31 Tom Tromey <tromey@adacore.com>
4545 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
4546 Call beneath target's mourn_inferior after unpushing.
4548 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
4551 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
4552 have enough lines to fill the screen, still return the lowest
4555 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
4557 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
4558 '-', '<', and '>' commands.
4560 2020-01-29 Pedro Alves <palves@redhat.com>
4561 Sergio Durigan Junior <sergiodj@redhat.com>
4563 * infcmd.c (construct_inferior_arguments): Assert that
4564 'argc' is greater than 0.
4566 2020-01-29 Luis Machado <luis.machado@linaro.org>
4568 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
4569 (BRK_INSN_MASK): Define to 0xd4200000.
4570 (aarch64_program_breakpoint_here_p): New function.
4571 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
4572 * arch-utils.c (default_program_breakpoint_here_p): Moved from
4574 * arch-utils.h (default_program_breakpoint_here_p): Moved from
4576 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
4577 call gdbarch_program_breakpoint_here_p.
4578 (program_breakpoint_here): Moved to arch-utils.c, renamed to
4579 default_program_breakpoint_here_p, changed return type to bool and
4581 * breakpoint.h (program_breakpoint_here): Moved prototype to
4582 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
4583 return type to bool.
4584 * gdbarch.c: Regenerate.
4585 * gdbarch.h: Regenerate.
4586 * gdbarch.sh (program_breakpoint_here_p): New method.
4587 * infrun.c (handle_signal_stop): Call
4588 gdbarch_program_breakpoint_here_p.
4590 2020-01-26 Tom Tromey <tom@tromey.com>
4592 * ctfread.c (struct ctf_fp_info): Reindent.
4593 (_initialize_ctfread): Remove.
4595 2020-01-26 Tom Tromey <tom@tromey.com>
4597 * psymtab.c (partial_map_expand_apply)
4598 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4599 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4600 (psym_print_stats, psym_expand_symtabs_for_function)
4601 (psym_map_symbol_filenames, psym_map_matching_symbols)
4602 (psym_expand_symtabs_matching)
4603 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4604 (maintenance_check_psymtabs): Use new methods.
4605 * psympriv.h (struct partial_symtab) <readin_p,
4606 get_compunit_symtab>: New methods.
4607 <readin, compunit_symtab>: Remove members.
4608 (struct standard_psymtab): New.
4609 (struct legacy_psymtab): Derive from standard_psymtab.
4610 * dwarf2read.h (struct dwarf2_psymtab): Derive from
4612 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
4614 2020-01-26 Tom Tromey <tom@tromey.com>
4616 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
4617 read_dependencies. Add assert.
4618 * psymtab.c (partial_symtab::read_dependencies): New method.
4619 * psympriv.h (struct partial_symtab) <read_dependencies>: New
4621 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
4622 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
4624 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
4627 2020-01-26 Tom Tromey <tom@tromey.com>
4629 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
4630 Call expand_psymtab.
4631 (xcoff_read_symtab): Call expand_psymtab.
4632 (xcoff_start_psymtab, xcoff_end_psymtab): Set
4633 legacy_expand_psymtab.
4634 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
4636 (struct legacy_psymtab) <expand_psymtab>: Implement.
4637 <legacy_expand_psymtab>: New member.
4638 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
4639 (parse_partial_symbols): Set legacy_expand_psymtab.
4640 (psymtab_to_symtab_1): Change argument order. Call
4642 (new_psymtab): Set legacy_expand_psymtab.
4643 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
4644 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
4646 (dwarf2_psymtab::expand_psymtab): Rename from
4647 psymtab_to_symtab_1. Call expand_psymtab.
4648 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
4649 (dbx_end_psymtab): Likewise.
4650 (dbx_psymtab_to_symtab_1): Change argument order. Call
4652 (dbx_read_symtab): Call expand_psymtab.
4653 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
4654 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
4655 (ctf_psymtab::read_symtab): Call expand_psymtab.
4657 2020-01-26 Tom Tromey <tom@tromey.com>
4659 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
4660 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
4662 * mdebugread.c (mdebug_read_symtab): Remove prints.
4663 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
4665 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
4667 2020-01-26 Tom Tromey <tom@tromey.com>
4669 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
4670 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
4671 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
4673 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
4674 * psymtab.c (psymtab_to_symtab): Call method.
4675 (dump_psymtab): Update.
4676 * psympriv.h (struct partial_symtab): Add virtual destructor.
4677 <read_symtab>: New method.
4678 (struct legacy_symtab): New.
4679 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
4680 (struct pst_map) <pst>: Now a legacy_psymtab.
4681 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
4682 (new_psymtab): Use legacy_psymtab.
4683 * dwarf2read.h (struct dwarf2_psymtab): New.
4684 (struct dwarf2_per_cu_data) <psymtab>: Use it.
4685 * dwarf2read.c (dwarf2_create_include_psymtab)
4686 (dwarf2_build_include_psymtabs, create_type_unit_group)
4687 (create_partial_symtab, process_psymtab_comp_unit_reader)
4688 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
4689 (set_partial_user): Use dwarf2_psymtab.
4690 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
4691 (psymtab_to_symtab_1, process_full_comp_unit)
4692 (process_full_type_unit, dwarf2_ranges_read)
4693 (dwarf2_get_pc_bounds, psymtab_include_file_name)
4694 (dwarf_decode_lines): Use dwarf2_psymtab.
4695 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
4696 (add_address_entry_worker, write_one_signatured_type)
4697 (recursively_count_psymbols, recursively_write_psymbols)
4698 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
4699 (write_debug_names): Likewise.
4700 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
4701 <pst>: Now a legacy_psymtab.
4702 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
4703 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
4704 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
4705 * ctfread.c (struct ctf_psymtab): New.
4706 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
4708 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
4709 (create_partial_symtab): Return a ctf_psymtab.
4710 (scan_partial_symbols): Update.
4712 2020-01-26 Tom Tromey <tom@tromey.com>
4714 * xcoffread.c (xcoff_start_psymtab): Use new.
4715 * psymtab.c (partial_symtab::partial_symtab): New constructor,
4716 renamed from start_psymtab_common.
4717 * psympriv.h (struct partial_symtab): Add new constructor.
4718 (start_psymtab_common): Don't declare.
4719 * mdebugread.c (parse_partial_symbols): Use new.
4720 * dwarf2read.c (create_partial_symtab): Use new.
4721 * dbxread.c (start_psymtab): Use new.
4722 * ctfread.c (create_partial_symtab): Use new.
4724 2020-01-26 Tom Tromey <tom@tromey.com>
4726 * xcoffread.c (xcoff_end_psymtab): Use new.
4727 * psymtab.c (start_psymtab_common): Use new.
4728 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
4730 * psympriv.h (struct partial_symtab): Add parameters to
4731 constructor. Don't inline.
4732 (allocate_psymtab): Don't declare.
4733 * mdebugread.c (new_psymtab): Use new.
4734 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
4735 * dbxread.c (dbx_end_psymtab): Use new.
4737 2020-01-26 Tom Tromey <tom@tromey.com>
4739 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
4740 allocate_psymtab. Update documentation.
4741 * psymtab.c (psymtab_storage::install_psymtab): Rename from
4742 allocate_psymtab. Do not use new.
4743 (allocate_psymtab): Use new. Update.
4745 2020-01-26 Tom Tromey <tom@tromey.com>
4747 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
4748 * psymtab.c (psym_print_stats): Update.
4749 * psympriv.h (struct partial_symtab) <readin,
4750 psymtabs_addrmap_supported, anonymous>: Now bool.
4751 * mdebugread.c (psymtab_to_symtab_1): Update.
4752 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
4753 (build_type_psymtabs_reader, psymtab_to_symtab_1)
4754 (process_full_comp_unit, process_full_type_unit): Update.
4755 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
4756 * ctfread.c (psymtab_to_symtab): Update.
4758 2020-01-26 Tom Tromey <tom@tromey.com>
4760 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
4761 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
4762 * psymtab.c (psymtab_storage): Delete psymtabs.
4763 (psymtab_storage::allocate_psymtab): Use new.
4764 (psymtab_storage::discard_psymtab): Use delete.
4765 * psympriv.h (struct partial_symtab): Add constructor and
4768 2020-01-26 Tom Tromey <tom@tromey.com>
4770 * machoread.c: Do not include psympriv.h.
4772 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4774 * NEWS: Mention the new option and the set/show commands.
4776 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4778 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
4779 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
4780 (validate_exec_file): New variables, enums, functions.
4781 (exec_file_locate_attach, print_section_info): Style the filenames.
4782 (_initialize_exec): Install show_exec_file_mismatch_command and
4783 set_exec_file_mismatch_command.
4784 * gdbcore.h (validate_exec_file): Declare.
4785 * infcmd.c (attach_command): Call validate_exec_file.
4786 * remote.c ( remote_target::remote_add_inferior): Likewise.
4788 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
4790 * frame.c (find_frame_sal): Move call to get_next_frame into more
4792 * inline-frame.c (inilne_state) <inline_state>: Update argument
4794 (inilne_state) <skipped_symbol>: Rename to...
4795 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
4796 (skip_inline_frames): Build vector of skipped symbols and use this
4797 to reate the inline_state.
4798 (inline_skipped_symbol): Add a comment and some assertions, fetch
4799 skipped symbol from the list.
4801 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
4803 * buildsym.c (lte_is_less_than): Delete.
4804 (buildsym_compunit::end_symtab_with_blockvector): Create local
4805 lambda function to sort line table entries, and use
4806 std::stable_sort instead of std::sort.
4807 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
4808 markers when looking for a previous line.
4810 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
4812 * dwarf2read.c (lnp_state_machine::record_line): Include
4813 end_sequence parameter in debug print out. Record the line if we
4814 are at an end_sequence marker even if it's not the start of a
4816 * symmisc.c (maintenance_print_one_line_table): Print end of
4817 sequence markers with 'END' not '0'.
4819 2020-01-24 Pedro Alves <palves@redhat.com>
4822 * thread.c (scoped_restore_current_thread::restore): Use
4823 switch_to_inferior_no_thread.
4824 * exec.c: Include "progspace-and-thread.h".
4825 (add_target_sections, remove_target_sections):
4826 scoped_restore_current_pspace_and_thread instead of
4827 scoped_restore_current_thread.
4828 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
4829 and aspace to the inferior before calling clone_program_space.
4830 Remove stale comment.
4832 2020-01-24 Christian Biesinger <cbiesinger@google.com>
4834 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
4835 (arm_netbsd_nat_target::fetch_registers): ...this.
4836 (arm_nbsd_nat_target::store_registers): Rename to...
4837 (arm_netbsd_nat_target::store_registers): ...this.
4839 2020-01-24 Christian Biesinger <cbiesinger@google.com>
4841 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
4844 2020-01-24 Christian Biesinger <cbiesinger@google.com>
4846 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
4848 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
4850 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
4851 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
4852 the correct replacement (iterate_over_regset_sections).
4853 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
4856 2020-01-24 Graham Markall <graham.markall@embecosm.com>
4859 * gdb/python/python.c (execute_gdb_command): Call
4860 async_enable_stdin in catch block.
4862 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
4864 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
4865 SWITCH_THRU_ALL_UIS.
4867 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
4870 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
4871 comment, add extra parameter, and update to store previous symbol
4873 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
4874 add extra parameter.
4875 * tui/tui-disasm.c (tui_disassemble): Update header comment,
4876 remove unneeded parameter, add try/catch around gdb_print_insn,
4877 rewrite to add items to asm_lines vector.
4878 (tui_find_backward_disassembly_start_address): New function.
4879 (tui_find_disassembly_address): Updated throughout.
4880 (tui_disasm_window::set_contents): Update for changes to
4882 (tui_disasm_window::do_scroll_vertical): No need to adjust the
4883 number of lines to scroll.
4885 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
4887 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
4888 (SECT_OFF_DATA): Likewise.
4889 (SECT_OFF_RODATA): Likewise.
4890 (SECT_OFF_TEXT): Likewise.
4891 (SECT_OFF_BSS): Likewise.
4892 (struct objfile) <text_section_offset, data_section_offset>: New
4894 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
4895 objfile::text_section_offset.
4896 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
4897 * coffread.c (coff_symtab_read): Likewise.
4898 (enter_linenos): Likewise.
4899 (process_coff_symbol): Likewise.
4900 * ctfread.c (get_objfile_text_range): Likewise.
4901 * dtrace-probe.c (dtrace_probe::get_relocated_address):
4902 Use objfile::data_section_offset.
4903 * dwarf2-frame.c (execute_cfa_program): Use
4904 objfile::text_section_offset.
4905 (dwarf2_frame_find_fde): Likewise.
4906 * dwarf2read.c (create_addrmap_from_index): Likewise.
4907 (create_addrmap_from_aranges): Likewise.
4908 (dw2_find_pc_sect_compunit_symtab): Likewise.
4909 (process_psymtab_comp_unit_reader): Likewise.
4910 (add_partial_symbol): Likewise.
4911 (add_partial_subprogram): Likewise.
4912 (process_full_comp_unit): Likewise.
4913 (read_file_scope): Likewise.
4914 (read_func_scope): Likewise.
4915 (read_lexical_block_scope): Likewise.
4916 (read_call_site_scope): Likewise.
4917 (dwarf2_rnglists_process): Likewise.
4918 (dwarf2_ranges_process): Likewise.
4919 (dwarf2_ranges_read): Likewise.
4920 (dwarf_decode_lines_1): Likewise.
4921 (new_symbol): Likewise.
4922 (dwarf2_fetch_die_loc_sect_off): Likewise.
4923 (dwarf2_per_cu_text_offset): Likewise.
4924 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4925 * hppa-tdep.c (read_unwind_info): Likewise.
4926 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
4927 * psympriv.h (struct partial_symtab): Likewise.
4928 * psymtab.c (find_pc_sect_psymtab): Likewise.
4929 * solib-svr4.c (enable_break): Likewise.
4930 * stap-probe.c (relocate_address): Use
4931 objfile::data_section_offset.
4932 * xcoffread.c (enter_line_range): Use
4933 objfile::text_section_offset.
4934 (read_xcoff_symtab): Likewise.
4936 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
4938 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
4939 declaration to narrower scopes.
4941 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
4943 * darwin-nat.h (struct darwin_exception_msg, enum
4944 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
4946 (class darwin_nat_target) <wait_1, check_new_threads,
4947 decode_exception_message, decode_message, stop_inferior,
4948 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
4949 * darwin-nat.c (darwin_check_new_threads): Rename to...
4950 (darwin_nat_target::check_new_threads): ... this.
4951 (darwin_suspend_inferior_it): Remove.
4952 (darwin_decode_exception_message): Rename to...
4953 (darwin_nat_target::decode_exception_message): ... this.
4954 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
4955 (darwin_decode_message): Rename to...
4956 (darwin_nat_target::decode_message): ... this.
4957 (cancel_breakpoint): Rename to...
4958 (darwin_nat_target::cancel_breakpoint): ... this.
4959 (darwin_wait): Rename to...
4960 (darwin_nat_target::wait_1): ... this. Use range-based for loop
4961 instead of iterate_over_inferiors.
4962 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
4963 (darwin_stop_inferior): Rename to...
4964 (darwin_nat_target::stop_inferior): ... this.
4965 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
4966 (darwin_init_thread_list): Rename to...
4967 (darwin_nat_target::init_thread_list): ... this.
4968 (darwin_ptrace_him): Rename to...
4969 (darwin_nat_target::ptrace_him): ... this.
4970 (darwin_nat_target::create_inferior): Pass lambda function to
4972 (darwin_nat_target::detach): Call stop_inferior instead of
4973 darwin_stop_inferior.
4974 * fork-inferior.h (fork_inferior): Change init_trace_fun
4975 parameter to gdb::function_view.
4976 * fork-inferior.c (fork_inferior): Likewise.
4978 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
4980 * i386-cygwin-tdep.c (core_process_module_section): Update.
4981 * windows-nat.c (struct lm_info_windows): Add text_offset.
4982 (windows_xfer_shared_libraries): Update.
4983 * windows-tdep.c (windows_xfer_shared_library):
4984 Add text_offset_cached argument.
4985 * windows-tdep.h (windows_xfer_shared_library): Update.
4987 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
4989 * gdbarch.sh: Add declaration for _initialize_gdbarch.
4991 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
4993 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
4994 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
4995 replace with range-based for.
4996 (gdbsim_interrupt_inferior): Remove.
4997 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
4998 with a range-based for. Inline code from
4999 gdbsim_interrupt_inferior.
5001 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
5003 * infrun.c (proceed): Fix indentation.
5005 2020-01-21 Tom Tromey <tromey@adacore.com>
5007 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
5008 * python/python.c (python_extension_ops): Update.
5009 (gdbpy_colorize): New function.
5010 * python/lib/gdb/__init__.py (colorize): New function.
5011 * extension.h (ext_lang_colorize): Declare.
5012 * extension.c (ext_lang_colorize): New function.
5013 * extension-priv.h (struct extension_language_ops) <colorize>: New
5015 * cli/cli-style.c (_initialize_cli_style): Update help text.
5017 2020-01-21 Luis Machado <luis.machado@linaro.org>
5019 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
5020 <cond>: Change type to bool.
5021 (aarch64_displaced_step_b_cond): Update cond to use bool type.
5022 (aarch64_displaced_step_cb): Likewise.
5023 (aarch64_displaced_step_tb): Likewise.
5025 2020-01-21 Luis Machado <luis.machado@linaro.org>
5027 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
5030 2020-01-21 Luis Machado <luis.machado@linaro.org>
5032 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
5033 <pc_adjust>: Adjust the documentation.
5034 (aarch64_displaced_step_fixup): Check if PC really moved before
5037 2020-01-19 Tom Tromey <tom@tromey.com>
5039 * disasm.c (~gdb_disassembler): New destructor.
5040 (gdb_buffered_insn_length): Call disassemble_free_target.
5041 * disasm.h (class gdb_disassembler): Declare destructor. Use
5042 DISABLE_COPY_AND_ASSIGN.
5044 2020-01-19 Tom Tromey <tom@tromey.com>
5046 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
5047 (die_reader_func_ftype): Remove.
5048 (cutu_reader): New class.
5049 (dw2_get_file_names_reader): Remove "data" parameter.
5050 (dw2_get_file_names): Use cutu_reader.
5051 (create_debug_type_hash_table): Update.
5052 (read_cutu_die_from_dwo): Update comment.
5053 (lookup_dwo_unit): Add dwo_name parameter.
5054 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
5055 die_reader_func_ftype and data parameters.
5056 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
5057 Remove die_reader_func_ftype and data parameters.
5058 (~cutu_reader): New; from init_cutu_and_read_dies.
5059 (cutu_reader::cutu_reader): Rename from
5060 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
5061 and data parameters.
5062 (init_cutu_and_read_dies_simple): Remove.
5063 (struct process_psymtab_comp_unit_data): Remove.
5064 (process_psymtab_comp_unit_reader): Remove data parameter; add
5065 want_partial_unit and pretend_language parameters.
5066 (process_psymtab_comp_unit): Use cutu_reader.
5067 (build_type_psymtabs_reader): Remove data parameter.
5068 (build_type_psymtabs_1): Use cutu_reader.
5069 (process_skeletonless_type_unit): Likewise.
5070 (load_partial_comp_unit_reader): Remove.
5071 (load_partial_comp_unit): Use cutu_reader.
5072 (load_full_comp_unit_reader): Remove.
5073 (load_full_comp_unit): Use cutu_reader.
5074 (struct create_dwo_cu_data): Remove.
5075 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
5076 dwo_unit parameters.
5077 (create_cus_hash_table): Use cutu_reader.
5078 (struct dwarf2_read_addr_index_data): Remove.
5079 (dwarf2_read_addr_index_reader): Remove.
5080 (dwarf2_read_addr_index): Use cutu_reader.
5081 (read_signatured_type_reader): Remove.
5082 (read_signatured_type): Use cutu_reader.
5084 2020-01-19 Tom Tromey <tom@tromey.com>
5086 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
5087 * tui/tui-wingeneral.h (class tui_suppress_output): New.
5088 (tui_wrefresh): Declare.
5089 * tui/tui-wingeneral.c (suppress_output): New global.
5090 (tui_suppress_output, ~tui_suppress_output): New constructor and
5092 (tui_wrefresh): New function.
5093 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
5094 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
5095 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
5097 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
5099 (tui_data_window::no_refresh): New method.
5100 (tui_data_item_window::refresh_window): Call tui_wrefresh.
5101 (tui_reg_command): Use tui_suppress_output
5102 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
5103 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
5105 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
5107 2020-01-19 Tom Tromey <tom@tromey.com>
5109 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5110 Handle case where symtab is null.
5112 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
5114 * linux-fork.c (one_fork_p): Simplify.
5116 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
5118 * top.c (struct qt_args): Remove.
5119 (kill_or_detach): Change return type to void, replace `void *`
5120 parameter with a proper one.
5121 (print_inferior_quit_action): Likewise.
5122 (quit_confirm): Use range-based for loop to iterate over inferiors.
5123 (quit_force): Likewise.
5125 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
5127 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
5128 `void *` parameter with proper parameters.
5129 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
5130 (print_one_inferior): Change return type to void, replace `void *`
5131 parameter with proper parameters.
5132 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
5134 (get_other_inferior): Remove.
5135 (mi_cmd_remove_inferior): Use range-based loop to iterate over
5138 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
5140 * mi/mi-interp.c (report_initial_inferior): Remove.
5141 (mi_interp::init): Use range-based for to iterate over inferiors.
5143 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
5145 * python/py-inferior.c (build_inferior_list): Remove.
5146 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
5148 2020-01-16 Christian Biesinger <cbiesinger@google.com>
5150 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
5151 (btrace_stitch_trace): Likewise.
5152 * charset.c (intermediate_encoding): Likewise (vaild).
5153 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
5154 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
5155 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
5157 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
5159 * windows-tdep.c (windows_get_tlb_type):
5160 Add rtl_user_process_parameters type.
5162 2020-01-16 Pedro Alves <palves@redhat.com>
5163 Norbert Lange <nolange79@gmail.com>
5166 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
5167 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
5168 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
5169 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
5170 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
5171 (ps_plog): Redeclare exported functions with default visibility.
5173 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
5175 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
5176 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
5178 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
5180 * infcmd.c (post_create_inferior): Use get_thread_regcache
5181 instead of get_current_regcache.
5183 2020-01-14 Tom Tromey <tom@tromey.com>
5186 * python/python.c (gdbpy_decode_line): Treat empty string the same
5189 2020-01-14 Tom Tromey <tom@tromey.com>
5191 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
5193 2020-01-14 Tom Tromey <tom@tromey.com>
5195 * nat/linux-btrace.c: Don't include <config.h>.
5196 * nat/linux-ptrace.c: Don't include <config.h>.
5197 * nat/x86-linux-dregs.c: Don't include <config.h>.
5199 2020-01-14 Tom Tromey <tom@tromey.com>
5201 * configure: Rebuild.
5202 * configure.ac: Move many checks to ../gdbsupport/common.m4.
5204 2020-01-14 Tom Tromey <tom@tromey.com>
5206 * nat/x86-linux-dregs.c: Include configh.h.
5207 * nat/linux-ptrace.c: Include configh.h.
5208 * nat/linux-btrace.c: Include configh.h.
5209 * defs.h: Include config.h, bfd.h.
5210 * configure.ac: Don't source common.host.
5211 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
5212 * configure: Rebuild.
5213 * acinclude.m4: Update path.
5214 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
5215 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
5216 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
5217 (CLIBS): Add LIBSUPPORT.
5219 (COMMON_SFILES): Remove gdbsupport files.
5220 (HFILES_NO_SRCDIR): Likewise.
5221 (stamp-version): Update path to create-version.sh.
5222 (ALLDEPFILES): Remove gdbsupport files.
5224 2020-01-14 Tom Tromey <tom@tromey.com>
5226 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
5227 USE_WIN32API when needed.
5228 * configure.ac (USE_WIN32API): Don't define.
5229 (WIN32LIBS): Use WIN32APILIBS.
5230 * configure: Rebuild.
5232 2020-01-14 Tom Tromey <tom@tromey.com>
5234 * configure: Rebuild.
5235 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
5237 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
5239 * skip.c (skip_function_command): Make skip w/o arguments use the
5240 name of the inlined function if pc is inside any inlined function.
5242 2020-01-14 Luis Machado <luis.machado@linaro.org>
5244 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
5245 * infrun.c (resume_1): Likewise.
5246 (handle_inferior_event): Remove stale comment.
5247 * linux-nat.c (linux_nat_target::resume): Update comments.
5248 (save_stop_reason): Likewise.
5249 (linux_nat_filter_event): Likewise.
5250 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
5252 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
5254 * elfread.c (record_minimal_symbol): Set section index to 0 for
5255 non-allocatable sections.
5258 2020-01-13 Ali Tamur <tamur@google.com>
5260 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
5261 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
5262 to gdb::optional. Update comments.
5263 (dwo_file): Update comments.
5264 (read_attribute): Update API to take an additional out parameter,
5265 need_reprocess. This is used to mark attributes that need other
5266 attributes (e.g. str_offsets_base) for correct computation which may not
5268 (read_attribute_reprocess): New function declaration.
5269 (read_addr_index): Likewise.
5270 (read_dwo_str_index): Likewise.
5271 (read_stub_str_index): Likewise.
5272 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
5273 (lookup_addr_base): New function definition.
5274 (lookup_ranges_base): Likewise.
5275 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
5277 (init_cutu_and_read_dies): Update comments.
5278 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
5279 unit. This is used to inherit parent's str_offsets_base and addr_base.
5281 (init_cutu_and_read_dies_simple): Reflect API changes.
5282 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
5283 (create_cus_hash_table): Change API to take parent compile unit.
5284 Reflect API changes.
5285 (open_and_init_dwo_file): Reflect API changes.
5286 (dwarf2_get_pc_bounds): Update comments.
5287 (dwarf2_record_block_ranges): Likewise.
5288 (read_full_die_1): Change implementation to reprocess attributes that
5289 need str_offsets_base and addr_base.
5290 (partial_die_info::read): Likewise.
5291 (read_attribute_reprocess): New function definition.
5292 (read_attribute_value): Change API to take an additional out parameter,
5293 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
5294 when a non-dwo compile unit has index based attributes.
5295 (read_attribute): Reflect API changes.
5296 (read_addr_index_1): Reflect API changes. Update comments.
5297 (dwarf2_read_addr_index_data): Reflect API changes.
5298 (dwarf2_read_addr_index): Likewise.
5299 (read_str_index): Change API and implementation. This becomes a helper
5300 to be used by the new string index related methods. Update error
5301 message and comments.
5302 (read_dwo_str_index): New function definition.
5303 (read_stub_str_index): Likewise.
5304 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
5305 * symfile.h (dwarf2_debug_sections): Likewise.
5306 * xcoffread.c (dwarf2_debug_sections): Likewise.
5308 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
5310 * gdbcore.h (struct core_fns) <core_read_registers>: Change
5311 core_reg_sect type to gdb_byte *.
5312 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
5313 * cris-tdep.c (fetch_core_registers): Likewise.
5314 * corelow.c (core_target::get_core_register_section): Change
5315 type of `contents` to gdb::byte_vector.
5317 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
5319 * tui/tui-wingeneral.c (box_win): Position the title in the center
5322 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5324 * corelow.c (core_target::get_core_register_section): Use
5325 std::vector instead of alloca.
5327 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
5329 * warning.m4: Add -Wmissing-declarations to build_warnings.
5330 * configure: Re-generate.
5332 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
5334 * python/python.c (init__gdb_module): Add declaration.
5336 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
5338 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
5339 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
5340 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
5341 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
5342 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
5343 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
5344 * ada-exp.y (_initialize_ada_exp): Add declaration.
5345 * ada-lang.c (_initialize_ada_language): Add declaration.
5346 * ada-tasks.c (_initialize_tasks): Add declaration.
5347 * agent.c (_initialize_agent): Add declaration.
5348 * aix-thread.c (_initialize_aix_thread): Add declaration.
5349 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
5350 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
5351 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
5352 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
5353 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
5354 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5355 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
5356 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
5357 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
5358 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
5359 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
5360 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
5361 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
5362 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
5363 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
5364 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
5365 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
5366 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
5367 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
5368 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
5369 * annotate.c (_initialize_annotate): Add declaration.
5370 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
5371 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
5372 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
5373 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
5374 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
5375 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
5376 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
5377 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
5378 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
5379 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
5380 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
5381 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
5382 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5383 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
5384 * auto-load.c (_initialize_auto_load): Add declaration.
5385 * auxv.c (_initialize_auxv): Add declaration.
5386 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
5387 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
5388 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
5389 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
5390 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
5391 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
5392 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
5393 * breakpoint.c (_initialize_breakpoint): Add declaration.
5394 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
5395 * btrace.c (_initialize_btrace): Add declaration.
5396 * charset.c (_initialize_charset): Add declaration.
5397 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
5398 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5399 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5400 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
5401 * cli/cli-script.c (_initialize_cli_script): Add declaration.
5402 * cli/cli-style.c (_initialize_cli_style): Add declaration.
5403 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
5404 * coffread.c (_initialize_coffread): Add declaration.
5405 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
5406 * compile/compile.c (_initialize_compile): Add declaration.
5407 * complaints.c (_initialize_complaints): Add declaration.
5408 * completer.c (_initialize_completer): Add declaration.
5409 * copying.c (_initialize_copying): Add declaration.
5410 * corefile.c (_initialize_core): Add declaration.
5411 * corelow.c (_initialize_corelow): Add declaration.
5412 * cp-abi.c (_initialize_cp_abi): Add declaration.
5413 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
5414 * cp-support.c (_initialize_cp_support): Add declaration.
5415 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
5416 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
5417 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
5418 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
5419 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
5420 * ctfread.c (_initialize_ctfread): Add declaration.
5421 * d-lang.c (_initialize_d_language): Add declaration.
5422 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
5423 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
5424 * dbxread.c (_initialize_dbxread): Add declaration.
5425 * dcache.c (_initialize_dcache): Add declaration.
5426 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
5427 * disasm.c (_initialize_disasm): Add declaration.
5428 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
5429 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
5430 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
5431 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
5432 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
5433 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
5434 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
5435 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
5436 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
5437 * elfread.c (_initialize_elfread): Add declaration.
5438 * exec.c (_initialize_exec): Add declaration.
5439 * extension.c (_initialize_extension): Add declaration.
5440 * f-lang.c (_initialize_f_language): Add declaration.
5441 * f-valprint.c (_initialize_f_valprint): Add declaration.
5442 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
5443 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
5444 * filesystem.c (_initialize_filesystem): Add declaration.
5445 * findcmd.c (_initialize_mem_search): Add declaration.
5446 * findvar.c (_initialize_findvar): Add declaration.
5447 * fork-child.c (_initialize_fork_child): Add declaration.
5448 * frame-base.c (_initialize_frame_base): Add declaration.
5449 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5450 * frame.c (_initialize_frame): Add declaration.
5451 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
5452 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
5453 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
5454 * gcore.c (_initialize_gcore): Add declaration.
5455 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
5456 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
5457 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
5458 * gdbarch.c (_initialize_gdbarch): Add declaration.
5459 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
5460 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
5461 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
5462 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
5463 * go-lang.c (_initialize_go_language): Add declaration.
5464 * go32-nat.c (_initialize_go32_nat): Add declaration.
5465 * guile/guile.c (_initialize_guile): Add declaration.
5466 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5467 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
5468 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
5469 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
5470 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
5471 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
5472 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
5473 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
5474 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
5475 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
5476 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
5477 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
5478 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
5479 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
5480 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
5481 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
5482 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
5483 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
5484 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
5485 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
5486 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
5487 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
5488 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
5489 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
5490 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
5491 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
5492 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
5493 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
5494 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
5495 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
5496 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
5497 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
5498 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
5499 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
5500 * infcall.c (_initialize_infcall): Add declaration.
5501 * infcmd.c (_initialize_infcmd): Add declaration.
5502 * inflow.c (_initialize_inflow): Add declaration.
5503 * infrun.c (_initialize_infrun): Add declaration.
5504 * interps.c (_initialize_interpreter): Add declaration.
5505 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
5506 * jit.c (_initialize_jit): Add declaration.
5507 * language.c (_initialize_language): Add declaration.
5508 * linux-fork.c (_initialize_linux_fork): Add declaration.
5509 * linux-nat.c (_initialize_linux_nat): Add declaration.
5510 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
5511 * linux-thread-db.c (_initialize_thread_db): Add declaration.
5512 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
5513 * m2-lang.c (_initialize_m2_language): Add declaration.
5514 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
5515 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
5516 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
5517 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
5518 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5519 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
5520 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
5521 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
5522 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
5523 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5524 * machoread.c (_initialize_machoread): Add declaration.
5525 * macrocmd.c (_initialize_macrocmd): Add declaration.
5526 * macroscope.c (_initialize_macroscope): Add declaration.
5527 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
5528 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
5529 * maint.c (_initialize_maint_cmds): Add declaration.
5530 * mdebugread.c (_initialize_mdebugread): Add declaration.
5531 * memattr.c (_initialize_mem): Add declaration.
5532 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
5533 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
5534 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
5535 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
5536 * mi/mi-main.c (_initialize_mi_main): Add declaration.
5537 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
5538 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
5539 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
5540 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
5541 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
5542 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
5543 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
5544 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
5545 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
5546 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5547 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
5548 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
5549 * mipsread.c (_initialize_mipsread): Add declaration.
5550 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
5551 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
5552 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
5553 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
5554 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
5555 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
5556 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
5557 * nto-procfs.c (_initialize_procfs): Add declaration.
5558 * objc-lang.c (_initialize_objc_language): Add declaration.
5559 * observable.c (_initialize_observer): Add declaration.
5560 * opencl-lang.c (_initialize_opencl_language): Add declaration.
5561 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
5562 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
5563 * osabi.c (_initialize_gdb_osabi): Add declaration.
5564 * osdata.c (_initialize_osdata): Add declaration.
5565 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5566 * parse.c (_initialize_parse): Add declaration.
5567 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
5568 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
5569 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
5570 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
5571 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
5572 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
5573 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
5574 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
5575 * printcmd.c (_initialize_printcmd): Add declaration.
5576 * probe.c (_initialize_probe): Add declaration.
5577 * proc-api.c (_initialize_proc_api): Add declaration.
5578 * proc-events.c (_initialize_proc_events): Add declaration.
5579 * proc-service.c (_initialize_proc_service): Add declaration.
5580 * procfs.c (_initialize_procfs): Add declaration.
5581 * producer.c (_initialize_producer): Add declaration.
5582 * psymtab.c (_initialize_psymtab): Add declaration.
5583 * python/python.c (_initialize_python): Add declaration.
5584 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
5585 * record-btrace.c (_initialize_record_btrace): Add declaration.
5586 * record-full.c (_initialize_record_full): Add declaration.
5587 * record.c (_initialize_record): Add declaration.
5588 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
5589 * regcache.c (_initialize_regcache): Add declaration.
5590 * reggroups.c (_initialize_reggroup): Add declaration.
5591 * remote-notif.c (_initialize_notif): Add declaration.
5592 * remote-sim.c (_initialize_remote_sim): Add declaration.
5593 * remote.c (_initialize_remote): Add declaration.
5594 * reverse.c (_initialize_reverse): Add declaration.
5595 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
5596 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
5597 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
5598 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
5599 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
5600 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
5601 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
5602 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
5604 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
5605 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
5606 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
5607 * rust-exp.y (_initialize_rust_exp): Add declaration.
5608 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
5609 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
5610 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
5611 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
5612 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
5613 * score-tdep.c (_initialize_score_tdep): Add declaration.
5614 * ser-go32.c (_initialize_ser_dos): Add declaration.
5615 * ser-mingw.c (_initialize_ser_windows): Add declaration.
5616 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
5617 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
5618 * ser-uds.c (_initialize_ser_socket): Add declaration.
5619 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
5620 * serial.c (_initialize_serial): Add declaration.
5621 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
5622 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
5623 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
5624 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
5625 * skip.c (_initialize_step_skip): Add declaration.
5626 * sol-thread.c (_initialize_sol_thread): Add declaration.
5627 * solib-aix.c (_initialize_solib_aix): Add declaration.
5628 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
5629 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
5630 * solib-frv.c (_initialize_frv_solib): Add declaration.
5631 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5632 * solib-target.c (_initialize_solib_target): Add declaration.
5633 * solib.c (_initialize_solib): Add declaration.
5634 * source-cache.c (_initialize_source_cache): Add declaration.
5635 * source.c (_initialize_source): Add declaration.
5636 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
5637 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
5638 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
5639 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
5640 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
5641 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
5642 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
5643 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
5644 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
5645 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
5646 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
5647 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
5648 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
5649 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
5650 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
5651 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
5652 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
5653 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
5654 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
5655 * stabsread.c (_initialize_stabsread): Add declaration.
5656 * stack.c (_initialize_stack): Add declaration.
5657 * stap-probe.c (_initialize_stap_probe): Add declaration.
5658 * std-regs.c (_initialize_frame_reg): Add declaration.
5659 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
5660 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
5661 * symfile.c (_initialize_symfile): Add declaration.
5662 * symmisc.c (_initialize_symmisc): Add declaration.
5663 * symtab.c (_initialize_symtab): Add declaration.
5664 * target.c (_initialize_target): Add declaration.
5665 * target-connection.c (_initialize_target_connection): Add
5667 * target-dcache.c (_initialize_target_dcache): Add declaration.
5668 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
5669 * thread.c (_initialize_thread): Add declaration.
5670 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
5671 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
5672 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
5673 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
5674 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
5675 * tracectf.c (_initialize_ctf): Add declaration.
5676 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
5677 * tracefile.c (_initialize_tracefile): Add declaration.
5678 * tracepoint.c (_initialize_tracepoint): Add declaration.
5679 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
5680 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
5681 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
5682 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
5683 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
5684 * tui/tui-win.c (_initialize_tui_win): Add declaration.
5685 * tui/tui.c (_initialize_tui): Add declaration.
5686 * typeprint.c (_initialize_typeprint): Add declaration.
5687 * ui-style.c (_initialize_ui_style): Add declaration.
5688 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
5689 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
5690 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
5691 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
5692 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
5693 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
5694 * unittests/filtered_iterator-selftests.c
5695 (_initialize_filtered_iterator_selftests): Add declaration.
5696 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
5697 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
5698 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
5699 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
5700 * unittests/main-thread-selftests.c
5701 (_initialize_main_thread_selftests): Add declaration.
5702 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
5703 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
5704 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
5705 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
5706 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
5707 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
5708 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
5709 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
5710 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
5711 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
5712 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
5713 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
5714 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
5715 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
5716 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
5718 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
5719 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
5720 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
5721 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
5722 * user-regs.c (_initialize_user_regs): Add declaration.
5723 * utils.c (_initialize_utils): Add declaration.
5724 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
5725 * valops.c (_initialize_valops): Add declaration.
5726 * valprint.c (_initialize_valprint): Add declaration.
5727 * value.c (_initialize_values): Add declaration.
5728 * varobj.c (_initialize_varobj): Add declaration.
5729 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
5730 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
5731 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5732 * windows-nat.c (_initialize_windows_nat): Add declaration.
5733 (_initialize_check_for_gdb_ini): Add declaration.
5734 (_initialize_loadable): Add declaration.
5735 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
5736 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
5737 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
5738 * xcoffread.c (_initialize_xcoffread): Add declaration.
5739 * xml-support.c (_initialize_xml_support): Add declaration.
5740 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
5741 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
5742 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
5743 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
5745 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5747 * regformats/regdat.sh: Generate declaration for init function.
5749 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5751 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
5753 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
5754 close_one_inferior>: New methods.
5755 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
5756 pass down target to find_inferior_pid.
5757 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
5758 Pass down target to find_inferior_ptid.
5759 (gdbsim_target::create_inferior): Pass down target to
5761 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
5762 target down to find_inferior_ptid and switch_to_thread.
5763 (gdbsim_target::close): Update to call close_one_inferior.
5764 (struct resume_data): Remove.
5765 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
5766 directly, rather than through a void pointer.
5767 (gdbsim_target::resume): Update to call resume_one_inferior.
5769 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5771 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
5773 2020-01-12 Pedro Alves <palves@redhat.com>
5775 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
5776 directly for the current inferior instead of
5777 discard_all_inferiors.
5778 (discard_all_inferiors): Delete.
5780 2020-01-11 Tom Tromey <tom@tromey.com>
5782 * tui/tui-wingeneral.c (box_win): Check cli_styling.
5783 * tui/tui-winsource.c (tui_source_window_base::refill): Use
5784 deprecated_safe_get_selected_frame.
5786 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5788 * inferior.c (print_inferior): Switch inferior before printing it.
5790 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
5791 Pedro Alves <palves@redhat.com>
5793 * progspace-and-thread.c (switch_to_program_space_and_thread):
5794 Assert there's an inferior for PSPACE. Use
5795 switch_to_inferior_no_thread to switch the inferior too.
5796 * progspace.c (program_space::~program_space): Call
5797 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
5798 (program_space::free_all_objfiles): Don't call clear_symtab_users
5800 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
5802 2020-01-10 Pedro Alves <palves@redhat.com>
5804 * NEWS: Mention multi-target debugging, "info connections", and
5805 "add-inferior -no-connection".
5807 2020-01-10 Pedro Alves <palves@redhat.com>
5809 * infrun.c: Include "target-connection.h".
5810 (check_multi_target_resumption): New.
5812 * target-connection.c (make_target_connection_string): Make
5814 * target-connection.h (make_target_connection_string): Declare.
5816 2020-01-10 Pedro Alves <palves@redhat.com>
5818 * Makefile.in (COMMON_SFILES): Add target-connection.c.
5819 * inferior.c (uiout_field_connection): New function.
5820 (print_inferior): Add new "connection-id" column.
5821 (add_inferior_command): Show connection number/string of added
5823 * process-stratum-target.h
5824 (process_stratum_target::connection_string): New virtual method.
5825 (process_stratum_target::connection_number): New field.
5826 * remote.c (remote_target::connection_string): New override.
5827 * target-connection.c: New file.
5828 * target-connection.h: New file.
5829 * target.c (decref_target): Remove process_stratum targets from
5830 the connection list.
5831 (target_stack::push): Add process_stratum targets to the
5834 2020-01-10 Pedro Alves <palves@redhat.com>
5837 2016-04-12 Pedro Alves <palves@redhat.com>
5838 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
5839 Remove references to name.
5840 * serial.h (struct serial) <name>: Delete.
5842 2020-01-10 Pedro Alves <palves@redhat.com>
5844 * gdbarch-selftests.c (register_to_value_test): Remove "target
5845 already pushed" check.
5847 2020-01-10 Pedro Alves <palves@redhat.com>
5848 John Baldwin <jhb@FreeBSD.org>
5850 * aarch64-linux-nat.c
5851 (aarch64_linux_nat_target::thread_architecture): Adjust.
5852 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
5853 (task_command_1): Likewise.
5854 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
5855 (aix_thread_target::wait, aix_thread_target::fetch_registers)
5856 (aix_thread_target::store_registers)
5857 (aix_thread_target::thread_alive): Adjust.
5858 * amd64-fbsd-tdep.c: Include "inferior.h".
5859 (amd64fbsd_get_thread_local_address): Pass down target.
5860 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
5861 thread's gdbarch instead of target_gdbarch.
5862 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
5863 get_last_target_status.
5864 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
5865 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
5867 (update_inserted_breakpoint_locations): Skip if inferiors with no
5869 (update_global_location_list): When handling moribund locations,
5870 find representative inferior for location's pspace, and use thread
5871 count of its process_stratum target.
5872 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
5873 * bsd-uthread.c (bsd_uthread_target::wait): Use
5874 as_process_stratum_target and adjust thread_change_ptid and
5876 (bsd_uthread_target::update_thread_list): Use
5877 as_process_stratum_target and adjust find_thread_ptid,
5878 thread_change_ptid and add_thread calls.
5879 * btrace.c (maint_btrace_packet_history_cmd): Adjust
5880 find_thread_ptid call.
5881 * corelow.c (add_to_thread_list): Adjust add_thread call.
5882 (core_target_open): Adjust add_thread_silent and thread_count
5884 (core_target::pid_to_str): Adjust find_inferior_ptid call.
5885 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
5886 * event-top.c (async_disconnect): Pop targets from all inferiors.
5887 * exec.c (add_target_sections): Push exec target on all inferiors
5888 sharing the program space.
5889 (remove_target_sections): Remove the exec target from all
5890 inferiors sharing the program space.
5891 (exec_on_vfork): New.
5892 * exec.h (exec_on_vfork): Declare.
5893 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
5895 (fbsd_nat_target::update_thread_list): Adjust.
5896 (fbsd_nat_target::resume): Adjust.
5897 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
5899 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
5900 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
5901 get_thread_arch_regcache call.
5902 * fork-child.c (gdb_startup_inferior): Pass target down to
5903 startup_inferior and set_executing.
5904 * gdbthread.h (struct process_stratum_target): Forward declare.
5905 (add_thread, add_thread_silent, add_thread_with_info)
5906 (in_thread_list): Add process_stratum_target parameter.
5907 (find_thread_ptid(inferior*, ptid_t)): New overload.
5908 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
5910 (all_threads()): Delete overload.
5911 (all_threads, all_non_exited_threads): Add process_stratum_target
5913 (all_threads_safe): Use brace initialization.
5914 (thread_count): Add process_stratum_target parameter.
5915 (set_resumed, set_running, set_stop_requested, set_executing)
5916 (threads_are_executing, finish_thread_state): Add
5917 process_stratum_target parameter.
5918 (switch_to_thread): Use is_current_thread.
5919 * i386-fbsd-tdep.c: Include "inferior.h".
5920 (i386fbsd_get_thread_local_address): Pass down target.
5921 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
5922 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
5923 have_inferiors check.
5924 * inf-ptrace.c (inf_ptrace_target::create_inferior)
5925 (inf_ptrace_target::attach): Adjust.
5926 * infcall.c (run_inferior_call): Adjust.
5927 * infcmd.c (run_command_1): Pass target to
5928 scoped_finish_thread_state.
5929 (proceed_thread_callback): Skip inferiors with no execution.
5930 (continue_command): Rename 'all_threads' local to avoid hiding
5931 'all_threads' function. Adjust get_last_target_status call.
5932 (prepare_one_step): Adjust set_running call.
5933 (signal_command): Use user_visible_resume_target. Compare thread
5934 pointers instead of inferior_ptid.
5935 (info_program_command): Adjust to pass down target.
5936 (attach_command): Mark target's 'thread_executing' flag.
5937 (stop_current_target_threads_ns): New, factored out from ...
5938 (interrupt_target_1): ... this. Switch inferior before making
5941 (struct all_inferiors_iterator, struct all_inferiors_range)
5942 (struct all_inferiors_safe_range)
5943 (struct all_non_exited_inferiors_range): Filter on
5944 process_stratum_target too. Remove explicit.
5945 * inferior.c (inferior::inferior): Push dummy target on target
5947 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
5948 Add process_stratum_target parameter, and pass it down.
5949 (have_live_inferiors): Adjust.
5950 (switch_to_inferior_and_push_target): New.
5951 (add_inferior_command, clone_inferior_command): Handle
5952 "-no-connection" parameter. Use
5953 switch_to_inferior_and_push_target.
5954 (_initialize_inferior): Mention "-no-connection" option in
5955 the help of "add-inferior" and "clone-inferior" commands.
5956 * inferior.h: Include "process-stratum-target.h".
5957 (interrupt_target_1): Use bool.
5958 (struct inferior) <push_target, unpush_target, target_is_pushed,
5959 find_target_beneath, top_target, process_target, target_at,
5961 (discard_all_inferiors): Delete.
5962 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
5963 (all_inferiors, all_non_exited_inferiors): Add
5964 process_stratum_target parameter.
5965 * infrun.c: Include "gdb_select.h" and <unordered_map>.
5966 (target_last_proc_target): New global.
5967 (follow_fork_inferior): Push target on new inferior. Pass target
5968 to add_thread_silent. Call exec_on_vfork. Handle target's
5970 (follow_fork): Adjust get_last_target_status call. Also consider
5972 (follow_exec): Push target on new inferior.
5973 (struct execution_control_state) <target>: New field.
5974 (user_visible_resume_target): New.
5975 (do_target_resume): Call target_async.
5976 (resume_1): Set target's threads_executing flag. Consider resume
5978 (commit_resume_all_targets): New.
5979 (proceed): Also consider resume target. Skip threads of inferiors
5980 with no execution. Commit resumtion in all targets.
5981 (start_remote): Pass current inferior to wait_for_inferior.
5982 (infrun_thread_stop_requested): Consider target as well. Pass
5983 thread_info pointer to clear_inline_frame_state instead of ptid.
5984 (infrun_thread_thread_exit): Consider target as well.
5985 (random_pending_event_thread): New inferior parameter. Use it.
5986 (do_target_wait): Rename to ...
5987 (do_target_wait_1): ... this. Add inferior parameter, and pass it
5989 (threads_are_resumed_pending_p, do_target_wait): New.
5990 (prepare_for_detach): Adjust calls.
5991 (wait_for_inferior): New inferior parameter. Handle it. Use
5992 do_target_wait_1 instead of do_target_wait.
5993 (fetch_inferior_event): Adjust. Switch to representative
5994 inferior. Pass target down.
5995 (set_last_target_status): Add process_stratum_target parameter.
5996 Save target in global.
5997 (get_last_target_status): Add process_stratum_target parameter and
5999 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
6000 (context_switch): Check inferior_ptid == null_ptid before calling
6002 (get_inferior_stop_soon): Pass down target.
6003 (wait_one): Rename to ...
6004 (poll_one_curr_target): ... this.
6005 (struct wait_one_event): New.
6007 (stop_all_threads): Adjust.
6008 (handle_no_resumed, handle_inferior_event): Adjust to consider the
6010 (switch_back_to_stepped_thread): Also consider target.
6011 (print_stop_event): Update.
6012 (normal_stop): Update. Also consider the resume target.
6013 * infrun.h (wait_for_inferior): Remove declaration.
6014 (user_visible_resume_target): New declaration.
6015 (get_last_target_status, set_last_target_status): New
6016 process_stratum_target parameter.
6017 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
6018 process_stratum_target parameter, and use it.
6019 (clear_inline_frame_state (thread_info*)): New.
6020 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
6021 process_stratum_target parameter.
6022 (clear_inline_frame_state (thread_info*)): Declare.
6023 * linux-fork.c (delete_checkpoint_command): Pass target down to
6025 (checkpoint_command): Adjust.
6026 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
6027 instead of just tweaking inferior_ptid.
6028 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
6029 (exit_lwp): Pass target down to find_thread_ptid.
6030 (attach_proc_task_lwp_callback): Pass target down to
6031 add_thread/set_running/set_executing.
6032 (linux_nat_target::attach): Pass target down to
6034 (get_detach_signal): Pass target down to find_thread_ptid.
6035 Consider last target status's target.
6036 (linux_resume_one_lwp_throw, resume_lwp)
6037 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
6038 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
6039 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
6040 (linux_nat_target::async_wait_fd): New.
6041 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
6043 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
6044 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
6045 * linux-thread-db.c (struct thread_db_info::process_target): New
6047 (add_thread_db_info): Save target.
6048 (get_thread_db_info): New process_stratum_target parameter. Also
6050 (delete_thread_db_info): New process_stratum_target parameter.
6052 (thread_from_lwp): Adjust to pass down target.
6053 (thread_db_notice_clone): Pass down target.
6054 (check_thread_db_callback): Pass down target.
6055 (try_thread_db_load_1): Always push the thread_db target.
6056 (try_thread_db_load, record_thread): Pass target down.
6057 (thread_db_target::detach): Pass target down. Always unpush the
6059 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
6060 target down. Always unpush the thread_db target.
6061 (find_new_threads_callback, thread_db_find_new_threads_2)
6062 (thread_db_target::update_thread_list): Pass target down.
6063 (thread_db_target::pid_to_str): Pass current inferior down.
6064 (thread_db_target::get_thread_local_address): Pass target down.
6065 (thread_db_target::resume, maintenance_check_libthread_db): Pass
6067 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
6068 * procfs.c (procfs_target::procfs_init_inferior): Declare.
6069 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
6070 (procfs_init_inferior): Rename to ...
6071 (procfs_target::procfs_init_inferior): ... this and adjust.
6072 (procfs_target::create_inferior, procfs_notice_thread)
6073 (procfs_do_thread_registers): Adjust.
6074 * ppc-fbsd-tdep.c: Include "inferior.h".
6075 (ppcfbsd_get_thread_local_address): Pass down target.
6076 * proc-service.c (ps_xfer_memory): Switch current inferior and
6077 program space as well.
6078 (get_ps_regcache): Pass target down.
6079 * process-stratum-target.c
6080 (process_stratum_target::thread_address_space)
6081 (process_stratum_target::thread_architecture): Pass target down.
6082 * process-stratum-target.h
6083 (process_stratum_target::threads_executing): New field.
6084 (as_process_stratum_target): New.
6085 * ravenscar-thread.c
6086 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
6087 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
6089 * record-btrace.c (record_btrace_target::info_record): Adjust.
6090 (record_btrace_target::record_method)
6091 (record_btrace_target::record_is_replaying)
6092 (record_btrace_target::fetch_registers)
6093 (get_thread_current_frame_id, record_btrace_target::resume)
6094 (record_btrace_target::wait, record_btrace_target::stop): Pass
6096 * record-full.c (record_full_wait_1): Switch to event thread.
6098 * regcache.c (regcache::regcache)
6099 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
6100 process_stratum_target parameter and handle it.
6101 (current_thread_target): New global.
6102 (get_thread_regcache): Add process_stratum_target parameter and
6103 handle it. Switch inferior before calling target method.
6104 (get_thread_regcache): Pass target down.
6105 (get_thread_regcache_for_ptid): Pass target down.
6106 (registers_changed_ptid): Add process_stratum_target parameter and
6108 (registers_changed_thread, registers_changed): Pass target down.
6109 (test_get_thread_arch_aspace_regcache): New.
6110 (current_regcache_test): Define a couple local test_target_ops
6111 instances and use them for testing.
6112 (readwrite_regcache): Pass process_stratum_target parameter.
6113 (cooked_read_test, cooked_write_test): Pass mock_target down.
6114 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
6115 (get_thread_arch_aspace_regcache): Add process_stratum_target
6117 (regcache::target): New method.
6118 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
6119 (regcache::registers_changed_ptid): Add process_stratum_target
6121 (regcache::m_target): New field.
6122 (registers_changed_ptid): Add process_stratum_target parameter.
6123 * remote.c (remote_state::supports_vCont_probed): New field.
6124 (remote_target::async_wait_fd): New method.
6125 (remote_unpush_and_throw): Add remote_target parameter.
6126 (get_current_remote_target): Adjust.
6127 (remote_target::remote_add_inferior): Push target.
6128 (remote_target::remote_add_thread)
6129 (remote_target::remote_notice_new_inferior)
6130 (get_remote_thread_info): Pass target down.
6131 (remote_target::update_thread_list): Skip threads of inferiors
6132 bound to other targets. (remote_target::close): Don't discard
6133 inferiors. (remote_target::add_current_inferior_and_thread)
6134 (remote_target::process_initial_stop_replies)
6135 (remote_target::start_remote)
6136 (remote_target::remote_serial_quit_handler): Pass down target.
6137 (remote_target::remote_unpush_target): New remote_target
6138 parameter. Unpush the target from all inferiors.
6139 (remote_target::remote_unpush_and_throw): New remote_target
6140 parameter. Pass it down.
6141 (remote_target::open_1): Check whether the current inferior has
6142 execution instead of checking whether any inferior is live. Pass
6144 (remote_target::remote_detach_1): Pass down target. Use
6145 remote_unpush_target.
6146 (extended_remote_target::attach): Pass down target.
6147 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
6148 (remote_target::append_resumption): Pass down target.
6149 (remote_target::append_pending_thread_resumptions)
6150 (remote_target::remote_resume_with_hc, remote_target::resume)
6151 (remote_target::commit_resume): Pass down target.
6152 (remote_target::remote_stop_ns): Check supports_vCont_probed.
6153 (remote_target::interrupt_query)
6154 (remote_target::remove_new_fork_children)
6155 (remote_target::check_pending_events_prevent_wildcard_vcont)
6156 (remote_target::remote_parse_stop_reply)
6157 (remote_target::process_stop_reply): Pass down target.
6158 (first_remote_resumed_thread): New remote_target parameter. Pass
6160 (remote_target::wait_as): Pass down target.
6161 (unpush_and_perror): New remote_target parameter. Pass it down.
6162 (remote_target::readchar, remote_target::remote_serial_write)
6163 (remote_target::getpkt_or_notif_sane_1)
6164 (remote_target::kill_new_fork_children, remote_target::kill): Pass
6166 (remote_target::mourn_inferior): Pass down target. Use
6167 remote_unpush_target.
6168 (remote_target::core_of_thread)
6169 (remote_target::remote_btrace_maybe_reopen): Pass down target.
6170 (remote_target::pid_to_exec_file)
6171 (remote_target::thread_handle_to_thread_info): Pass down target.
6172 (remote_target::async_wait_fd): New.
6173 * riscv-fbsd-tdep.c: Include "inferior.h".
6174 (riscv_fbsd_get_thread_local_address): Pass down target.
6175 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
6176 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
6177 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
6179 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
6180 * solib-svr4.c (enable_break): Pass down target.
6181 * spu-multiarch.c (parse_spufs_run): Pass down target.
6182 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
6183 * target-delegates.c: Regenerate.
6184 * target.c (g_target_stack): Delete.
6185 (current_top_target): Return the current inferior's top target.
6186 (target_has_execution_1): Refer to the passed-in inferior's top
6188 (target_supports_terminal_ours): Check whether the initial
6189 inferior was already created.
6190 (decref_target): New.
6191 (target_stack::push): Incref/decref the target.
6192 (push_target, push_target, unpush_target): Adjust.
6193 (target_stack::unpush): Defref target.
6194 (target_is_pushed): Return bool. Adjust to refer to the current
6195 inferior's target stack.
6196 (dispose_inferior): Delete, and inline parts ...
6197 (target_preopen): ... here. Only dispose of the current inferior.
6198 (target_detach): Hold strong target reference while detaching.
6200 (target_thread_name): Add assertion.
6201 (target_resume): Pass down target.
6202 (target_ops::beneath, find_target_at): Adjust to refer to the
6203 current inferior's target stack.
6204 (get_dummy_target): New.
6205 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
6206 has a thread running.
6207 (initialize_targets): Rename to ...
6208 (_initialize_target): ... this.
6209 * target.h: Include "gdbsupport/refcounted-object.h".
6210 (struct target_ops): Inherit refcounted_object.
6211 (target_ops::shortname, target_ops::longname): Make const.
6212 (target_ops::async_wait_fd): New method.
6213 (decref_target): Declare.
6214 (struct target_ops_ref_policy): New.
6215 (target_ops_ref): New typedef.
6216 (get_dummy_target): Declare function.
6217 (target_is_pushed): Return bool.
6218 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
6219 (all_matching_threads_iterator::all_matching_threads_iterator):
6220 Handle filter target.
6221 * thread-iter.h (struct all_matching_threads_iterator, struct
6222 all_matching_threads_range, class all_non_exited_threads_range):
6223 Filter by target too. Remove explicit.
6224 * thread.c (threads_executing): Delete.
6225 (inferior_thread): Pass down current inferior.
6226 (clear_thread_inferior_resources): Pass down thread pointer
6228 (add_thread_silent, add_thread_with_info, add_thread): Add
6229 process_stratum_target parameter. Use it for thread and inferior
6231 (is_current_thread): New.
6232 (thread_info::deletable): Use it.
6233 (find_thread_ptid, thread_count, in_thread_list)
6234 (thread_change_ptid, set_resumed, set_running): New
6235 process_stratum_target parameter. Pass it down.
6236 (set_executing): New process_stratum_target parameter. Pass it
6237 down. Adjust reference to 'threads_executing'.
6238 (threads_are_executing): New process_stratum_target parameter.
6239 Adjust reference to 'threads_executing'.
6240 (set_stop_requested, finish_thread_state): New
6241 process_stratum_target parameter. Pass it down.
6242 (switch_to_thread): Also match inferior.
6243 (switch_to_thread): New process_stratum_target parameter. Pass it
6245 (update_threads_executing): Reimplement.
6246 * top.c (quit_force): Pop targets from all inferior.
6247 (gdb_init): Don't call initialize_targets.
6248 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
6250 (windows_add_thread, windows_delete_thread): Adjust.
6251 (get_windows_debug_event): Rename to ...
6252 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
6253 * tracefile-tfile.c (tfile_target_open): Pass down target.
6254 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
6256 (switch_to_thread): Add process_stratum_target parameter.
6257 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
6259 (mi_on_resume): Pass target down.
6260 * nat/fork-inferior.c (startup_inferior): Add
6261 process_stratum_target parameter. Pass it down.
6262 * nat/fork-inferior.h (startup_inferior): Add
6263 process_stratum_target parameter.
6264 * python/py-threadevent.c (py_get_event_thread): Pass target down.
6266 2020-01-10 Pedro Alves <palves@redhat.com>
6268 * remote.c (remote_target::start_remote): Don't set inferior_ptid
6269 directly. Instead find the first thread in the thread list and
6270 use switch_to_thread.
6272 2020-01-10 Pedro Alves <palves@redhat.com>
6274 * remote.c (remote_target::remote_add_inferior): Don't bind a
6275 process to the current inferior if the current inferior is already
6278 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6279 Pedro Alves <palves@redhat.com>
6281 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
6282 If no process is specified, return null_ptid instead of
6284 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
6285 TARGET_WAITKIND_SIGNALLED with no pid.
6287 2020-01-10 Pedro Alves <palves@redhat.com>
6289 * remote.c (first_remote_resumed_thread): New.
6290 (remote_target::wait_as): Use it as default event_ptid instead of
6293 2020-01-10 Pedro Alves <palves@redhat.com>
6295 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
6297 2020-01-10 Pedro Alves <palves@redhat.com>
6299 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
6302 2020-01-10 Pedro Alves <palves@redhat.com>
6304 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
6305 ptid to get_last_target_status.
6306 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
6307 ptid to get_last_target_status.
6308 * infcmd.c (continue_command): Don't pass a target_waitstatus to
6309 get_last_target_status.
6310 (info_program_command): Don't pass a target_waitstatus to
6311 get_last_target_status.
6312 * infrun.c (init_wait_for_inferior): Use
6313 nullify_last_target_wait_ptid.
6314 (get_last_target_status): Handle nullptr arguments.
6315 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
6316 (print_stop_event): Don't pass a ptid to get_last_target_status.
6317 (normal_stop): Don't pass a ptid to get_last_target_status.
6318 * infrun.h (get_last_target_status, set_last_target_status): Move
6319 comments here and update.
6320 (nullify_last_target_wait_ptid): Declare.
6321 * linux-fork.c (fork_load_infrun_state): Remove local extern
6322 declaration of nullify_last_target_wait_ptid.
6323 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
6324 to get_last_target_status.
6326 2020-01-10 Pedro Alves <palves@redhat.com>
6328 * gdbthread.h (scoped_restore_current_thread)
6329 <dont_restore, restore, m_dont_restore>: Declare.
6330 * thread.c (thread_alive): Add assertion. Return bool.
6331 (switch_to_thread_if_alive): New.
6332 (prune_threads): Switch inferior/thread.
6333 (print_thread_info_1): Switch thread before calling target methods.
6334 (scoped_restore_current_thread::restore): New, factored out from
6336 (scoped_restore_current_thread::~scoped_restore_current_thread):
6338 (scoped_restore_current_thread::scoped_restore_current_thread):
6340 (thread_apply_all_command, thread_select): Use
6341 switch_to_thread_if_alive.
6342 * infrun.c (proceed, restart_threads, handle_signal_stop)
6343 (switch_back_to_stepped_thread): Switch current thread before
6344 calling target methods.
6346 2020-01-10 Pedro Alves <palves@redhat.com>
6348 * inferior.c (switch_to_inferior_no_thread): New function,
6349 factored out from ...
6350 (inferior_command): ... here.
6351 * inferior.h (switch_to_inferior_no_thread): Declare.
6352 * mi/mi-main.c (run_one_inferior): Use
6353 switch_to_inferior_no_thread.
6355 2020-01-10 Pedro Alves <palves@redhat.com>
6357 * infcmd.c (kill_command): Remove dead code.
6359 2020-01-10 Pedro Alves <palves@redhat.com>
6361 * remote.c (remote_target::mourn_inferior): No longer check
6362 whether the target is running.
6364 2020-01-10 Pedro Alves <palves@redhat.com>
6366 * corelow.c (core_target::has_execution): Change parameter type to
6368 * inferior.c (number_of_live_inferiors): Use
6369 inferior::has_execution instead of target_has_execution_1.
6370 * inferior.h (inferior::has_execution): New.
6371 * linux-thread-db.c (thread_db_target::update_thread_list): Use
6372 inferior::has_execution instead of target_has_execution_1.
6373 * process-stratum-target.c
6374 (process_stratum_target::has_execution): Change parameter type to
6375 inferior pointer. Check the inferior's PID instead of
6377 * process-stratum-target.h
6378 (process_stratum_target::has_execution): Change parameter type to
6380 * record-full.c (record_full_core_target::has_execution): Change
6381 parameter type to inferior pointer.
6382 * target.c (target_has_execution_1): Change parameter type to
6384 (target_has_execution_current): Adjust.
6385 * target.h (target_ops::has_execution): Change parameter type to
6387 (target_has_execution_1): Change parameter type to inferior
6388 pointer. Change return type to bool.
6389 * tracefile.h (tracefile_target::has_execution): Change parameter
6390 type to inferior pointer.
6392 2020-01-10 Pedro Alves <palves@redhat.com>
6394 * exceptions.c (print_flush): Remove current_top_target() check.
6396 2020-01-10 Pedro Alves <palves@redhat.com>
6398 * remote.c (show_remote_exec_file): Show the current inferior's
6399 exec-file instead of the command variable's value.
6401 2020-01-10 Pedro Alves <palves@redhat.com>
6403 * record-full.c (record_full_resume_ptid): New global.
6404 (record_full_target::resume): Set it.
6405 (record_full_wait_1): Use record_full_resume_ptid instead of
6408 2020-01-10 Pedro Alves <palves@redhat.com>
6410 * gdbthread.h (scoped_restore_current_thread)
6411 <dont_restore, restore, m_dont_restore>: Declare.
6412 * thread.c (thread_alive): Add assertion. Return bool.
6413 (switch_to_thread_if_alive): New.
6414 (prune_threads): Switch inferior/thread.
6415 (print_thread_info_1): Switch thread before calling target methods.
6416 (scoped_restore_current_thread::restore): New, factored out from
6418 (scoped_restore_current_thread::~scoped_restore_current_thread):
6420 (scoped_restore_current_thread::scoped_restore_current_thread):
6422 (thread_apply_all_command, thread_select): Use
6423 switch_to_thread_if_alive.
6425 2020-01-10 George Barrett <bob@bob131.so>
6427 * stap-probe.c (stap_modify_semaphore): Don't check for null
6429 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
6430 for null semaphores.
6432 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
6434 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
6435 all source windows, and maintain horizontal scroll status while
6438 2020-01-09 Tom Tromey <tom@tromey.com>
6441 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
6442 update_source_window, not print_source_lines.
6444 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
6446 * tui/tui.c (tui_enable): Register tui hooks after calling
6449 2020-01-09 Christian Biesinger <cbiesinger@google.com>
6451 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
6453 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
6455 * thread.c (print_thread_info_1): Fix indentation.
6457 2020-01-09 Christian Biesinger <cbiesinger@google.com>
6459 * symtab.c (general_symbol_info::compute_and_set_names): Move the
6460 unique_xmalloc_ptr outside the if to always free the demangled name.
6462 2020-01-08 Tom Tromey <tromey@adacore.com>
6464 * xcoffread.c (enter_line_range, read_xcoff_symtab)
6465 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
6466 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
6467 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
6469 (section_offsets): New typedef.
6470 * symtab.c (fixup_section, get_msymbol_address): Update.
6471 * symmisc.c (dump_msymbols): Update.
6472 * symfile.h (relative_addr_info_to_section_offsets)
6473 (symfile_map_offsets_to_segments): Update.
6474 * symfile.c (build_section_addr_info_from_objfile)
6475 (init_objfile_sect_indices): Update.
6476 (struct place_section_arg): Change type of "offsets".
6477 (place_section): Update.
6478 (relative_addr_info_to_section_offsets): Change type of
6479 "section_offsets". Remove "num_sections" parameter.
6480 (default_symfile_offsets, syms_from_objfile_1)
6481 (set_objfile_default_section_offset): Update.
6482 (reread_symbols): No need to preserve section offsets by hand.
6483 (symfile_map_offsets_to_segments): Change type of "offsets".
6484 * stap-probe.c (relocate_address): Update.
6485 * stabsread.h (process_one_symbol): Update.
6486 * solib-target.c (struct lm_info_target) <offsets>: Change type.
6487 (solib_target_relocate_section_addresses): Update.
6488 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
6490 * solib-frv.c (frv_relocate_main_executable): Update.
6491 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
6492 * solib-aix.c (solib_aix_get_section_offsets): Change return
6494 (solib_aix_solib_create_inferior_hook): Update.
6495 * remote.c (remote_target::get_offsets): Update.
6496 * psymtab.c (find_pc_sect_psymtab): Update.
6497 * psympriv.h (struct partial_symbol) <address, text_low,
6499 * objfiles.h (obj_section_offset): Update.
6500 (struct objfile) <section_offsets>: Change type.
6501 <num_sections>: Remove.
6502 (objfile_relocate): Update.
6503 * objfiles.c (entry_point_address_query): Update
6504 (relocate_one_symbol): Change type of "section_offsets".
6505 (objfile_relocate1, objfile_relocate1): Change type of
6507 (objfile_rebase1): Update.
6508 * mipsread.c (mipscoff_symfile_read): Update.
6509 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
6511 * mdebugread.c (parse_symbol): Change type of "section_offsets".
6512 (parse_external, psymtab_to_symtab_1): Update.
6513 * machoread.c (macho_symfile_offsets): Update.
6514 * ia64-tdep.c (ia64_find_unwind_table): Update.
6515 * hppa-tdep.c (read_unwind_info): Update.
6516 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
6517 * dwarf2read.c (create_addrmap_from_index)
6518 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6519 (process_psymtab_comp_unit_reader, add_partial_symbol)
6520 (add_partial_subprogram, process_full_comp_unit)
6521 (read_file_scope, read_func_scope, read_lexical_block_scope)
6522 (read_call_site_scope, dwarf2_rnglists_process)
6523 (dwarf2_ranges_process, dwarf2_ranges_read)
6524 (dwarf_decode_lines_1, var_decode_location, new_symbol)
6525 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
6527 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
6529 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
6530 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
6531 (process_one_symbol): Change type of "section_offsets".
6532 * ctfread.c (get_objfile_text_range): Update.
6533 * coffread.c (coff_symtab_read, enter_linenos)
6534 (process_coff_symbol): Update.
6535 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6536 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
6538 2020-01-08 Tom Tromey <tromey@adacore.com>
6540 * dwarf2read.c (parse_macro_definition): Use std::string.
6541 (parse_macro_definition): Likewise.
6543 2020-01-08 Tom Tromey <tromey@adacore.com>
6545 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
6546 (ATTR_ALLOC_CHUNK): Remove.
6548 2020-01-08 Tom Tromey <tromey@adacore.com>
6550 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
6552 2020-01-08 Tom Tromey <tromey@adacore.com>
6554 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
6555 (dwarf2_compute_name, open_dwo_file): Likewise.
6556 (process_enumeration_scope): Use std::vector.
6557 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
6558 (partial_die_info::fixup, dwarf2_start_subfile)
6559 (guess_full_die_structure_name, dwarf2_name): Likewise.
6560 (determine_prefix): Update.
6561 (guess_full_die_structure_name): Make return type const.
6562 (partial_die_full_name): Return unique_xmalloc_ptr.
6563 (DW_FIELD_ALLOC_CHUNK): Remove.
6565 2020-01-07 Tom Tromey <tromey@adacore.com>
6568 * stap-probe.c (class stap_static_probe_ops): Add constructor.
6570 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
6572 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
6574 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
6576 * stack.c (print_frame_info): Move disassemble_next_line code
6577 inside source_print block.
6579 2020-01-06 Eli Zaretskii <eliz@gnu.org>
6581 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
6582 gdb/signals.h, as we are now using native signal symbols.
6584 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
6586 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
6587 overflow by an early check of content vs threshold.
6588 * tui/tui-source.c (tui_source_window::line_is_displayed):
6591 2020-01-06 Eli Zaretskii <eliz@gnu.org>
6593 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
6595 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
6597 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
6598 export table if no section contains it's RVA.
6600 2020-01-06 Eli Zaretskii <eliz@gnu.org>
6602 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
6604 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
6606 * source.c (print_source_lines_base): Set last_line_listed.
6608 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
6610 * tui/tui-disasm.c: Remove trailing spaces.
6612 2020-01-06 Eli Zaretskii <eliz@gnu.org>
6613 Pedro Alves <palves@redhat.com>
6615 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
6616 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
6617 (windows_gdb_signal_to_target): New function, uses the above
6618 enumeration to convert GDB internal signal codes to equivalent
6620 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
6621 * windows-nat.c: Include "gdb_wait.h".
6622 (get_windows_debug_event): Extract the fatal exception from the
6623 exit status and convert to the equivalent Posix signal number.
6624 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
6625 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
6626 * gdbsupport/gdb_wait.c: New file, implements
6627 windows_status_to_termsig.
6628 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
6629 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
6631 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
6633 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
6636 2020-01-05 Luis Machado <luis.machado@linaro.org>
6638 * aarch64-linux-nat.c
6639 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
6640 and bfd_mach_aarch64.
6642 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6644 * ui-file.c (stdio_file::can_emit_style_escape)
6645 (tee_file::can_emit_style_escape): Ensure style is used also on
6646 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
6648 * main.c (set_gdb_data_directory): Use file style to output the
6649 warning that the given pathname is not a directory.
6650 * top.c (show_history_filename, gdb_safe_append_history)
6651 (show_gdb_datadir): Use file style.
6653 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
6655 * solib-target.c (struct lm_info_target):
6656 Change offsets to be a unique_xmalloc_ptr.
6657 (solib_target_relocate_section_addresses): Update.
6659 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
6661 * windows-nat.c (windows_clear_solib): Free so_list linked list.
6663 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
6665 * MAINTAINERS (Write After Approval): Add myself.
6667 2020-01-02 Luis Machado <luis.machado@linaro.org>
6669 * proc-service.c (get_ps_regcache): Remove reference to obsolete
6670 Cell BE architecture.
6671 * target.h (struct target_ops) <thread_architecture>: Likewise.
6673 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
6675 * Makefile.in: Use INSTALL_PROGRAM_ENV.
6677 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
6679 * MAINTAINERS (Write After Approval): Add myself.
6681 2020-01-01 Joel Brobecker <brobecker@adacore.com>
6683 * gdbarch.sh: Update copyright year range of generated files.
6685 2020-01-01 Joel Brobecker <brobecker@adacore.com>
6687 Update copyright year range in all GDB files.
6689 2020-01-01 Joel Brobecker <brobecker@adacore.com>
6691 * copyright.py: Convert to Python 3.
6693 2020-01-01 Joel Brobecker <brobecker@adacore.com>
6695 * copyright.py: Adapt after move of gnulib directory from gdb
6696 directory to toplevel directory.
6698 2020-01-01 Joel Brobecker <brobecker@adacore.com>
6700 * copyright.py (main): Exit if run from the wrong directory.
6702 2020-01-01 Joel Brobecker <brobecker@adacore.com>
6704 * top.c (print_gdb_version): Change copyright year to 2020.
6706 2020-01-01 Joel Brobecker <brobecker@adacore.com>
6708 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
6710 For older changes see ChangeLog-2019.
6716 version-control: never