X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2FChangeLog;h=2ca8e66a12272e9eb2ce2c731b7cf2098283cb12;hb=fdddfccba1cc4f70089873441b7e6c38de09ae37;hp=ff2172c28766013c8232629694e105c050824c2a;hpb=e5da11393a16416afc0c0a1da9914b6424f37fa8;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ff2172c287..2ca8e66a12 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,608 @@ +2020-03-13 Tom Tromey + + * valprint.c (generic_value_print_int): New function. + (generic_value_print): Use it. + +2020-03-13 Tom Tromey + + * valprint.c (generic_value_print_bool): New function. + (generic_value_print): Use it. + +2020-03-13 Tom Tromey + + * valprint.c (generic_val_print_func): Simplify. + (generic_val_print, generic_value_print): Update. + +2020-03-13 Tom Tromey + + * valprint.c (generic_val_print_flags): Remove. + (generic_val_print, generic_value_print): Update. + (val_print_type_code_flags): Add original_value parameter. + +2020-03-13 Tom Tromey + + * valprint.c (generic_val_print): Update. + (generic_value_print): Update. + * valprint.c (generic_val_print_enum): Don't call + val_print_scalar_formatted. + +2020-03-13 Tom Tromey + + * valprint.c (generic_value_print): Call generic_value_print_ptr. + * valprint.c (generic_value_print_ptr): New function. + +2020-03-13 Tom Tromey + + * valprint.c (generic_value_print): Rewrite. + +2020-03-13 Tom Tromey + + * p-valprint.c (pascal_object_print_value_fields) + (pascal_object_print_value): New functions. + +2020-03-13 Tom Tromey + + * p-valprint.c (pascal_value_print_inner): Rewrite. + +2020-03-13 Tom Tromey + + * f-valprint.c (f_value_print_innner): Rewrite. + +2020-03-13 Tom Tromey + + * m2-valprint.c (m2_print_unbounded_array): New overload. + (m2_print_unbounded_array): Update. + (m2_print_array_contents): Take a struct value. + (m2_value_print_inner): Rewrite. + +2020-03-13 Tom Tromey + + * d-valprint.c (dynamic_array_type): Call d_value_print_inner. + (d_value_print_inner): New function. + * d-lang.h (d_value_print_inner): Declare. + * d-lang.c (d_language_defn): Use d_value_print_inner. + +2020-03-13 Tom Tromey + + * go-valprint.c (go_value_print_inner): New function. + * go-lang.h (go_value_print_inner): Declare. + * go-lang.c (go_language_defn): Use go_value_print_inner. + +2020-03-13 Tom Tromey + + * rust-lang.c (val_print_struct, rust_print_enum): Use the value + API. + (rust_val_print): Rewrite. + (rust_value_print_inner): New function, from rust_val_print. + (rust_language_defn): Use rust_value_print_inner. + +2020-03-13 Tom Tromey + + * ada-valprint.c (ada_value_print_inner): New function. + * ada-lang.h (ada_value_print_inner): Declare. + * ada-lang.c (ada_language_defn): Use ada_value_print_inner. + +2020-03-13 Tom Tromey + + * f-valprint.c (f_value_print_innner): New function. + * f-lang.h (f_value_print_innner): Declare. + * f-lang.c (f_language_defn): Use f_value_print_innner. + +2020-03-13 Tom Tromey + + * p-valprint.c (pascal_value_print_inner): New function. + * p-lang.h (pascal_value_print_inner): Declare. + * p-lang.c (pascal_language_defn): Use pascal_value_print_inner. + +2020-03-13 Tom Tromey + + * m2-valprint.c (m2_value_print_inner): New function. + * m2-lang.h (m2_value_print_inner): Declare. + * m2-lang.c (m2_language_defn): Use m2_value_print_inner. + +2020-03-13 Tom Tromey + + * opencl-lang.c (opencl_language_defn): Use c_value_print_inner. + * objc-lang.c (objc_language_defn): Use c_value_print_inner. + * c-valprint.c (c_value_print_inner): New function. + * c-lang.h (c_value_print_inner): Declare. + * c-lang.c (c_language_defn, cplus_language_defn) + (asm_language_defn, minimal_language_defn): Use + c_value_print_inner. + +2020-03-13 Tom Tromey + + * p-valprint.c (pascal_object_print_value_fields): Now static. + * p-lang.h (pascal_object_print_value_fields): Don't declare. + +2020-03-13 Tom Tromey + + * c-valprint.c (c_val_print_array): Simplify. + +2020-03-13 Tom Tromey + + * valprint.c (value_print_array_elements): New function. + * valprint.h (value_print_array_elements): Declare. + +2020-03-13 Tom Tromey + + * printcmd.c (print_formatted): Use value_print_scalar_formatted. + * mips-tdep.c (mips_print_register): Use + value_print_scalar_formatted. + +2020-03-13 Tom Tromey + + * valprint.h (value_print_scalar_formatted): Declare. + * valprint.c (value_print_scalar_formatted): New function. + +2020-03-13 Tom Tromey + + * valprint.h (generic_value_print): Declare. + * valprint.c (generic_value_print): New function. + +2020-03-13 Tom Tromey + + * valprint.c (do_val_print): Call la_value_print_inner, if + available. + * rust-lang.c (rust_language_defn): Update. + * p-lang.c (pascal_language_defn): Update. + * opencl-lang.c (opencl_language_defn): Update. + * objc-lang.c (objc_language_defn): Update. + * m2-lang.c (m2_language_defn): Update. + * language.h (struct language_defn) : New + member. + * language.c (unknown_language_defn, auto_language_defn): Update. + * go-lang.c (go_language_defn): Update. + * f-lang.c (f_language_defn): Update. + * d-lang.c (d_language_defn): Update. + * c-lang.c (c_language_defn, cplus_language_defn) + (asm_language_defn, minimal_language_defn): Update. + * ada-lang.c (ada_language_defn): Update. + +2020-03-13 Tom Tromey + + * c-valprint.c (c_value_print): Use common_val_print. + +2020-03-13 Tom Tromey + + * cp-valprint.c (cp_print_static_field): Use common_val_print. + +2020-03-13 Tom Tromey + + * f-valprint.c (f77_print_array_1, f_val_print): Use + common_val_print. + +2020-03-13 Tom Tromey + + * riscv-tdep.c (riscv_print_one_register_info): Use + common_val_print. + +2020-03-13 Tom Tromey + + * mi/mi-main.c (output_register): Use common_val_print. + +2020-03-13 Tom Tromey + + * infcmd.c (default_print_one_register_info): Use + common_val_print. + +2020-03-13 Tom Tromey + + * valprint.h (common_val_print_checked): Declare. + * valprint.c (common_val_print_checked): New function. + * stack.c (print_frame_arg): Use common_val_print_checked. + +2020-03-13 Tom Tromey + + * valprint.c (do_val_print): New function, from val_print. + (val_print): Use do_val_print. + (common_val_print): Use do_val_print. + +2020-03-13 Tom Tromey + + * valprint.c (value_print): Use scoped_value_mark. + +2020-03-13 Tom de Vries + + PR symtab/25646 + * psymtab.c (partial_symtab::partial_symtab): Don't set + globals_offset and statics_offset. Push element onto + current_global_psymbols and current_static_psymbols stacks. + (concat): New function. + (end_psymtab_common): Set globals_offset and statics_offset. Pop + element from current_global_psymbols and current_static_psymbols + stacks. Concat popped elements to global_psymbols and + static_symbols. + (add_psymbol_to_list): Use current_global_psymbols and + current_static_psymbols stacks. + * psymtab.h (class psymtab_storage): Add current_global_psymbols and + current_static_psymbols fields. + +2020-03-12 Christian Biesinger + + * corelow.c (sniff_core_bfd): Remove. + (class core_target) : Remove. + (core_target::core_target): Update. + (core_file_fns): Remove. + (deprecated_add_core_fns): Remove. + (default_core_sniffer): Remove. + (sniff_core_bfd): Remove. + (default_check_format): Remove. + (gdb_check_format): Remove. + (core_target_open): Update. + (core_target::get_core_register_section): Update. + (get_core_registers_cb): Update. + (core_target::fetch_registers): Update. + * gdbcore.h (struct core_fns): Remove. + (deprecated_add_core_fns): Remove. + (default_core_sniffer): Remove. + (default_check_format): Remove. + +2020-03-12 Tom Tromey + + * arm-tdep.c (struct arm_mapping_symbol) : Now a + CORE_ADDR. + (struct arm_exidx_entry) : Now a CORE_ADDR. + +2020-03-12 Tom Tromey + + * remote.c (remote_target::download_tracepoint) + (remote_target::enable_tracepoint) + (remote_target::disable_tracepoint): Use phex, not sprintf_vma. + * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not + sprintf_vma. + +2020-03-12 Tom Tromey + + * symfile-mem.c: Update CORE_ADDR size assert. + +2020-03-12 Simon Marchi + + * selftest.m4: Move to gdbsupport/. + * acinclude.m4: Update path to selftest.m4. + +2020-03-12 Simon Marchi + + * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to... + (SELFTESTS_SRCS): ... this. Add disasm-selftests.c, + gdbarch-selfselftests.c and selftest-arch.c. + (SUBDIR_UNITTESTS_OBS): Rename to... + (SELFTESTS_OBS): ... this. + (COMMON_SFILES): Remove disasm-selftests.c and + gdbarch-selftests.c. + * configure.ac: Don't add selftest-arch.{c,o} to + CONFIG_{SRCS,OBS}. + * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST + preprocessor conditions. + +2020-03-12 Simon Marchi + + * configure.ac: Don't source bfd/development.sh. + * selftest.m4: Modify comment. + * configure: Re-generate. + +2020-03-12 Simon Marchi + + * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is + not "true" or "false". + * configure: Re-generate. + +2020-03-12 Christian Biesinger + + * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file. + * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and + renamed to arm_nbsd_supply_gregset. + (fetch_register): Update to call arm_nbsd_supply_gregset. + (fetch_regs): Remove in favor of fetch_register with a -1 regno. + (arm_netbsd_nat_target::fetch_registers): Update. + (fetch_elfcore_registers): Removed. + (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns. + * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct. + (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to + not require NetBSD system headers. + (arm_nbsd_regset): New struct. + (arm_nbsd_iterate_over_regset_sections): New function. + (arm_netbsd_init_abi_common): Updated to call + set_gdbarch_iterate_over_regset_sections. + * arm-nbsd-tdep.h: New file. + +2020-03-11 Kevin Buettner + + * symtab.c (find_pc_sect_line): Add check which prevents infinite + recursion. + +2020-03-11 Simon Marchi + + * configure: Re-generate. + +2020-03-11 Tom Tromey + + * ada-typeprint.c (print_choices): Fix comment. + +2020-03-11 Andrew Burgess + + * buildsyms.c (buildsym_compunit::record_line): Avoid accessing + previous item in the list, when the list has no items. + +2020-03-11 Tom de Vries + + * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in + PROP_LOCLIST handling code. + +2020-03-10 Andrew Burgess + + * buildsym-legacy.c (record_line): Pass extra parameter to + record_line. + * buildsym.c (buildsym_compunit::record_line): Take an extra + parameter, reduce duplication in the line table, and record the + is_stmt flag in the line table. + * buildsym.h (buildsym_compunit::record_line): Add extra + parameter. + * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore + non-statement lines. + * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass + this to the symtab builder. + (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1. + (lnp_state_machine::record_line): Pass a suitable is_stmt flag + through to dwarf_record_line_1. + * infrun.c (process_event_stop_test): When stepping, don't stop at + a non-statement instruction, and only refresh the step info when + we land in the middle of a line's range. Also add an extra + comment. + * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt + field. + * record-btrace.c (btrace_find_line_range): Only record lines + marked as is-statement. + * stack.c (frame_show_address): Show the frame address if we are + in a non-statement sal. + * symmisc.c (dump_symtab_1): Print the is_stmt flag. + (maintenance_print_one_line_table): Print a header for the is_stmt + column, and include is_stmt information in the output. + * symtab.c (find_pc_sect_line): Find lines marked as statements in + preference to non-statements. + (find_pcs_for_symtab_line): Prefer is-statement entries. + (find_line_common): Likewise. + * symtab.h (struct linetable_entry): Add is_stmt field. + (struct symtab_and_line): Likewise. + * xcoffread.c (arrange_linetable): Initialise is_stmt field when + arranging the line table. + +2020-03-07 Tom de Vries + + * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder + DIE. + +2020-03-07 Tom Tromey + + * valops.c (value_literal_complex): Remove obsolete comment. + * gdbtypes.h (enum type_code) : Remove obsolete + comment. + +2020-03-06 Simon Marchi + + * infrun.h: Forward-declare thread_info. + (set_step_info): Add thread_info parameter, add doc. + * infrun.c (set_step_info): Add thread_info parameter, move doc + to header. + * infrun.c (process_event_stop_test): Pass thread to + set_step_info call. + * infcmd.c (set_step_frame): Add thread_info pointer, pass it to + set_step_info. + (prepare_one_step): Add thread_info parameter, pass it to + set_step_frame and prepare_one_step (recursive) call. + (step_1): Pass thread to prepare_one_step call. + (step_command_fsm::should_stop): Pass thread to + prepare_one_step. + (until_next_fsm): Pass thread to set_step_frame call. + (finish_command): Pass thread to set_step_info call. + +2020-03-06 Hannes Domani + + * windows-tdep.c (windows_solib_create_inferior_hook): + Check if inferior is running. + +2020-03-06 Tom de Vries + + * NEWS: Fix "the the". + * ctfread.c: Same. + +2020-03-06 Tom de Vries + + * psymtab.c (psymtab_to_symtab): Don't print "done.". + +2020-03-06 Andrew Burgess + + * .dir-locals.el: Add a comment referencing the other copies of + this file. + +2020-03-05 John Baldwin + + * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for + psargs. + +2020-03-05 Tankut Baris Aktemur + + * .gitattributes: New file. + +2020-03-04 Tom Tromey + + * symmisc.c (print_symbol_bcache_statistics) + (print_objfile_statistics): Update. + * symfile.c (allocate_symtab): Use intern. + * psymtab.c (partial_symtab::partial_symtab): Use intern. + * objfiles.h (struct objfile_per_bfd_storage) : Remove. + : New member. + (struct objfile) : New methods. + * elfread.c (elf_symtab_read): Use intern. + * dwarf2/read.c (fixup_go_packaging): Intern package name. + (dwarf2_compute_name, dwarf2_physname) + (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern + names. + (guess_partial_die_structure_name): Update. + (partial_die_info::fixup): Intern name. + (dwarf2_canonicalize_name): Change parameter to objfile. Intern + name. + (dwarf2_name): Intern name. Update. + * buildsym.c (buildsym_compunit::get_macro_table): Use + string_cache. + +2020-03-04 Tom Tromey + + * jit.c (bfd_open_from_target_memory): Make "target" const. + * corefile.c (gnutarget): Now const. + * gdbcore.h (gnutarget): Now const. + +2020-03-04 Hannes Domani + + * NEWS: Mention support for WOW64 processes. + * amd64-windows-nat.c (amd64_mappings): Rename and remove static. + (amd64_windows_segment_register_p): Remove static. + (_initialize_amd64_windows_nat): Update. + * configure.nat (NATDEPFILES): Add i386-windows-nat.o. + * i386-windows-nat.c (context_offset): Update. + (i386_mappings): Rename and remove static. + (i386_windows_segment_register_p): Remove static. + (_initialize_i386_windows_nat): Update. + * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro. + (STATUS_WX86_SINGLE_STEP): New macro. + (EnumProcessModulesEx): New macro. + (Wow64SuspendThread): New macro. + (Wow64GetThreadContext): New macro. + (Wow64SetThreadContext): New macro. + (Wow64GetThreadSelectorEntry): New macro. + (windows_set_context_register_offsets): Add static. + (windows_set_segment_register_p): Likewise. + (windows_add_thread): Adapt for WOW64 processes. + (windows_fetch_one_register): Likewise. + (windows_nat_target::fetch_registers): Likewise. + (windows_store_one_register): Likewise. + (display_selector): Likewise. + (display_selectors): Likewise. + (handle_exception): Likewise. + (windows_continue): Likewise. + (windows_nat_target::resume): Likewise. + (windows_add_all_dlls): Likewise. + (do_initial_windows_stuff): Likewise. + (windows_nat_target::attach): Likewise. + (windows_get_exec_module_filename): Likewise. + (windows_nat_target::create_inferior): Likewise. + (windows_xfer_siginfo): Likewise. + (_initialize_loadable): Initialize Wow64SuspendThread, + Wow64GetThreadContext, Wow64SetThreadContext, + Wow64GetThreadSelectorEntry and EnumProcessModulesEx. + * windows-nat.h (windows_set_context_register_offsets): + Remove declaration. + (windows_set_segment_register_p): Likewise. + (i386_windows_segment_register_p): Add declaration. + (amd64_windows_segment_register_p): Likewise. + +2020-03-04 Luis Machado + + Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions + in "info registers" for AArch64/ARM. + + The change caused "info registers" to not print GPR's. + + gdb/ChangeLog: + + 2020-02-01 Shahab Vahedi + + * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0 + when reg->group is empty and reggroup is not. + +2020-03-03 Tom Tromey + + * dwarf2/frame.c (struct dwarf2_frame_cache) + : Remove members. + (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first. + (dwarf2_frame_prev_register): Don't call + dwarf2_tailcall_sniffer_first. + (dwarf2_append_unwinders): Don't append tailcall unwinder. + * frame-unwind.c (add_unwinder): New fuction. + (frame_unwind_init): Use it. Add tailcall unwinder. + +2020-03-03 Andrew Burgess + Alok Kumar Sharma + + * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero + value should be printed as true. + +2020-03-03 Hannes Domani + + * windows-tdep.c (windows_solib_create_inferior_hook): New function. + (windows_init_abi): Set and use windows_so_ops. + +2020-03-03 Sergio Durigan Junior + + * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR + when verifying if dealing with a convenience variable. + +2020-03-03 Luis Machado + + * auxv.c (default_print_auxv_entry): Add new AUXV entries. + +2020-03-02 Simon Marchi + + * infrun.c (gdbarch_supports_displaced_stepping): New. + (use_displaced_stepping): Break up conditions in smaller pieces. + Use gdbarch_supports_displaced_stepping. + (displaced_step_prepare_throw): Use + gdbarch_supports_displaced_stepping. + +2020-03-02 Andrew Burgess + + * NEWS: Mention new behaviour of the history filename. + * top.c (write_history_p): Add comment. + (show_write_history_p): Add header comment, give a different + message when history writing is on, but the history filename is + empty. + (history_filename): Add comment. + (history_filename_empty): New function. + (show_history_filename): Add header comment, give a different + message when the filename is empty. + (init_history): Compare history_filename against nullptr, and only + read history if the filename is not empty. + (set_history_filename): Add header comment, and only make + non-empty filenames absolute. + (init_main): Make the filename argument to 'set history filename' + optional. + +2020-03-02 Christian Biesinger + + * arm-nbsd-nat.c (arm_supply_fparegset): Rename to... + (arm_supply_vfpregset): ...this, and update to use VFP registers. + (fetch_fp_register): Update. + (fetch_fp_regs): Update. + (store_fp_register): Update. + (store_fp_regs): Update. + (arm_netbsd_nat_target::read_description): New function. + (fetch_elfcore_registers): Update. + +2020-03-02 Andrew Burgess + + * remote.c (remote_target::remote_parse_stop_reply): Don't use the + general_thread if the stop reply is missing a thread-id. + (remote_target::process_stop_reply): Use the first non-exited + thread if the target didn't pass a thread-id. + * infrun.c (do_target_wait): Move call to + switch_to_inferior_no_thread to .... + (do_target_wait_1): ... here. + +2020-02-29 Jon Turney + + * debuginfod-support.c: Include defs.h first. + +2020-02-28 Tom de Vries + + * symfile.c (set_initial_language): Use default language for lookup. + +2020-02-28 Simon Marchi + + * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove + reader variable, pass `this` to read_cutu_die_from_dwo. + 2020-02-27 Aaron Merey * source.c (open_source_file): Check for nullptr when computing