X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gdb%2FChangeLog;h=1e2aa8d697b8a1879f221ca31cb71648f93e3675;hb=27c7b875bd386d56fc75fb14cc83957bdc282812;hp=c39ea07648f5741926fd161ca47ec40853efbbad;hpb=e7bc9db8f447e056f4faa11702230239b4075c2c;p=binutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c39ea07648f..1e2aa8d697b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,528 @@ +2020-08-12 Pedro Alves + + PR gdb/26336 + * progspace.c (program_space::remove_objfile): Invalidate the + frame cache. + +2020-08-11 Tom de Vries + + * MAINTAINERS: Mark ms1 as deleted. + +2020-08-10 Luis Machado + + PR gdb/26310 + + * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and + act accordingly. + (aarch64_analyze_prologue_test): Add more unit tests to exercise + movz/str/stur/stp skipping behavior. + +2020-08-10 Luis Machado + + * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use + struct user_sve_header instead of struct sve_context. + +2020-08-09 Simon Marchi + + * read.h (dwarf2_fetch_die_loc_sect_off, + dwarf2_fetch_die_loc_cu_off): Replace function pointer + + `void *` parameter with function_view. + * read.c (dwarf2_fetch_die_loc_sect_off, + dwarf2_fetch_die_loc_cu_off): Likewise. + * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove. + (per_cu_dwarf_call): Adjust. + (get_frame_address_in_block_wrapper): Remove. + (indirect_synthetic_pointer): Adjust. + (get_ax_pc): Remove. + (dwarf2_compile_expr_to_ax): Adjust. + +2020-08-08 Tom de Vries + + PR build/26344 + * arch/riscv.c (riscv_lookup_target_description): Use an explicit + constructor. + * regcache.c (get_thread_arch_aspace_regcache): Same. + +2020-08-07 Tom Tromey + + * ravenscar-thread.c + (ravenscar_thread_target::set_base_thread_from_ravenscar_task): + New method. + (ravenscar_thread_target::wait): Check + runtime_initialized. + (ravenscar_thread_target::prepare_to_store) + (ravenscar_thread_target::stopped_by_sw_breakpoint) + (ravenscar_thread_target::stopped_by_hw_breakpoint) + (ravenscar_thread_target::stopped_by_watchpoint) + (ravenscar_thread_target::stopped_data_address) + (ravenscar_thread_target::core_of_thread): Use + scoped_restore_current_thread and + set_base_thread_from_ravenscar_task. + +2020-08-07 Tom Tromey + + * ravenscar-thread.c (update_thread_list): Set inferior_ptid. + +2020-08-07 Tom Tromey + + * ravenscar-thread.c (ravenscar_thread_target::wait): Call + update_inferior_ptid before update_thread_list. + (temporarily_change_regcache_ptid): New class. + (ravenscar_thread_target::fetch_registers) + (ravenscar_thread_target::store_registers) + (ravenscar_thread_target::prepare_to_store): Use base thread when + forwarding operation. + +2020-08-07 Tom Tromey + + * ravenscar-thread.c (ravenscar_thread_target::resume): Handle + "is_pid" case. + +2020-08-07 Tom Tromey + + * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread): + New methods. + (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map + first. + (ravenscar_thread_target::add_thread): Rename from + ravenscar_add_thread. + (ravenscar_thread_target::update_thread_list): Use a lambda. + (ravenscar_thread_target::xfer_partial): New method. + +2020-08-07 Tom Tromey + + * ada-lang.h (ada_task_list_iterator_ftype): Now a + gdb::function_view. + (iterate_over_live_ada_tasks): Change type of argument. + * ada-tasks.c (iterate_over_live_ada_tasks): Change type + of argument. + +2020-08-07 Tom Tromey + + * ravenscar-thread.c (ravenscar_thread_target) : + Remove. + (ravenscar_thread_target::extra_thread_info): Remove. + (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result; + defer to target beneath for non-Ravenscar threads. + +2020-08-07 Tom Tromey + + * ravenscar-thread.c (ravenscar_thread_target) : Now methods. + : New member. + (ravenscar_thread_target::get_thread_base_cpu): Rename from + ravenscar_get_thread_base_cpu. Check m_cpu_map. + (ravenscar_thread_target::task_is_currently_active): Update. + (ravenscar_thread_target::get_base_thread_from_ravenscar_task): + Now a method. + (ravenscar_thread_target::add_active_thread): Put initial thread + into the m_cpu_map. + +2020-08-07 Tom Tromey + + * ravenscar-thread.c (ravenscar_thread_target::wait): Return + event_ptid. + +2020-08-07 Tom Tromey + + * ravenscar-thread.c (ravenscar_thread_target::wait): Check + runtime_initialized. + +2020-08-07 Tom Tromey + + * ravenscar-thread.c (ravenscar_thread_target): Don't call + add_active_thread. + (ravenscar_thread_target::add_active_thread): Now public. + (ravenscar_inferior_created): Call add_active_thread after pushing + the target. + +2020-08-07 Simon Marchi + + * regcache.c (ptid_regcache_map): New type. + (target_ptid_regcache_map): New type. + (regcaches): Change type to target_ptid_regcache_map. + (get_thread_arch_aspace_regcache): Update to regcaches' new + type. + (regcache_thread_ptid_changed): Likewise. + (registers_changed_ptid): Likewise. + (regcaches_size): Likewise. + (regcaches_test): Update. + (regcache_thread_ptid_changed): Update. + * regcache.h (regcache_up): New type. + * gdbsupport/ptid.h (hash_ptid): New struct. + +2020-08-07 Simon Marchi + + * observable.h (thread_ptid_changed): Add parameter + `process_stratum_target *`. + * infrun.c (infrun_thread_ptid_changed): Add parameter + `process_stratum_target *` and use it. + (selftests): New namespace. + (infrun_thread_ptid_changed): New function. + (_initialize_infrun): Register selftest. + * regcache.c (regcache_thread_ptid_changed): Add parameter + `process_stratum_target *` and use it. + (regcache_thread_ptid_changed): New function. + (_initialize_regcache): Register selftest. + * thread.c (thread_change_ptid): Pass target to + thread_ptid_changed observable. + +2020-08-06 Caroline Tice + + * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field. + (struct dwp_sections): Update field comments. Add loclists and + rnglists fields. + (struct virtual_v2_dwo_sections): Rename struct to + 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add + size & offset fields for loclists and rnglists. + (struct dwp_hash_table): Add a 'v5' struct field to the union section. + (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for + skipping dummy type units. + (create_dwp_hash_table): Update the large comment above the function to + discuss Version 5 DWP files as well, with references. Update all the + version checks in the function to check for version 5 as well. Add new + section at the end to create dwp hash table for version 5. + (create_dwp_v2_section): Rename function to + 'create_dwp_v2_or_v5_section'. Update function comment appropriately. + Add V5 to error message text. + (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section + into calls to create_dwp_v2_or_v5_section. + (create_dwo_unit_in_dwp_v5): New function. + (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly + check for version2; add else clause to handle version 5. + (open_and_init_dwo_file): Add code to check dwarf version & only call + create_debug_types_hash_table (with sections.types) if version is not 5; + else call create_debug_type_hash_table, with sections.info. + (dwarf2_locate_v2_dwp_sections): Update function comment to mention + version 5. + (dwarf2_locate_v5_dwp_sections): New function. + (open_and_init_dwp_file): Add else-if clause for version 5 to call + bfd_map_over_sections with dwarf2_locate_v5_dwp_sections. + +2020-08-06 Simon Marchi + + * regcache.h (class regcache): Remove friend + registers_changed_ptid. + : Remove. + : Remove. + * regcache.c (regcache::regcaches): Rename to... + (regcaches): ... this. Make static. + (get_thread_arch_aspace_regcache): Update. + (regcache::regcache_thread_ptid_changed): Rename to... + (regcache_thread_ptid_changed): ... this. Update. + (class regcache_access): Remove. + (regcaches_test): Update. + (_initialize_regcache): Update. + * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include + . + +2020-08-06 Simon Marchi + + * regcache.h (class regcache) : Rename to... + : ... this. Move doc here. + * regcache.c (regcache::current_regcache) Rename to... + (regcache::regcaches): ... this. Move doc to header. + (get_thread_arch_aspace_regcache): Update. + (regcache::regcache_thread_ptid_changed): Update. + (registers_changed_ptid): Update. + (class regcache_access) : Rename to... + : ... this. + (current_regcache_test): Rename to... + (regcaches_test): ... this. + (_initialize_regcache): Update. + +2020-08-06 Victor Collod + + * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment. + +2020-08-05 Kevin Buettner + + * corelow.c (core_target::build_file_mappings): Don't output + null pathname in warning. + +2020-08-05 Simon Marchi + + * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp, + gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp, + gdb.dwarf2/dw2-single-line-discriminators.exp, + dw2-undefined-ret-addr.exp: Pass nopie to compilation options. + +2020-08-05 Tom Tromey + + PR rust/26197: + * dwarf2/read.c (alloc_rust_variant): Handle univariant case. + (quirk_rust_enum): Call alloc_rust_variant for univariant case. + Fix off-by-one and type size errors in ordinary case. + +2020-08-05 Tom de Vries + + * gdbtypes.c (type_not_allocated, type_not_associated): Use + "prop->const_val () == 0" instead of "prop->const_val () != 0". + +2020-08-04 Simon Marchi + + * frame.h (frame_id_p): Return bool. + (frame_id_artificial_p): Return bool. + (frame_id_eq): Return bool. + (has_stack_frames): Return bool. + (get_selected_frame): Fix typo in comment. + (get_frame_pc_if_available): Return bool. + (get_frame_address_in_block_if_available): Return bool. + (get_frame_func_if_available): Return bool. + (read_frame_register_unsigned): Return bool. + (get_frame_register_bytes): Return bool. + (safe_frame_unwind_memory): Return bool. + (deprecated_frame_register_read): Return bool. + (frame_unwinder_is): Return bool. + * frame.c (struct frame_info) : Change type to + bool. + : Likewise. + : Likewise. + (frame_stash_add): Return bool. + (get_frame_id): Use bool. + (frame_id_build_special) Use bool. + (frame_id_build_unavailable_stack): Use bool. + (frame_id_build): Use bool. + (frame_id_p): Return bool, use true/false instead of 1/0. + (frame_id_artificial_p): Likewise. + (frame_id_eq): Likewise. + (frame_id_inner): Likewise. + (get_frame_func_if_available): Likewise. + (read_frame_register_unsigned): Likewise. + (deprecated_frame_register_read): Likewise. + (get_frame_register_bytes): Likewise. + (has_stack_frames): Likewise. + (inside_main_func): Likewise. + (inside_entry_func): Likewise. + (get_frame_pc_if_available): Likewise. + (get_frame_address_in_block_if_available): Likewise. + (frame_unwinder_is): Likewise. + (safe_frame_unwind_memory): Likewise. + (frame_unwind_arch): Likewise. + +2020-08-04 Simon Marchi + + * frame.c (frame_info)

: Rename to status, change + type to cached_copy_status. + (fprintf_frame): Adjust. + (get_frame_func_if_available): Adjust. + (frame_cleanup_after_sniffer): Adjust. + +2020-08-04 Mark Wielaard + + * MAINTAINERS (Write After Approval): Update email address. + +2020-08-04 Simon Marchi + + * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with + dynamic_prop::const_val. + +2020-08-04 Simon Marchi + + * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with + dynamic_prop::kind. + +2020-08-04 Simon Marchi + + * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove. + +2020-08-04 Jose E. Marchesi + + * configure.tgt: Set gdb_sim for bpf-*-* targets. + +2020-08-04 Weimin Pan + Jose E. Marchesi + + * configure.tgt: Add entry for bpf-*-*. + * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o + (ALLDEPFILES): Add bpf-tdep.c. + * bpf-tdep.c: New file. + * MAINTAINERS: Add bpf target and maintainer. + * NEWS: Mention the support for the new target. + +2020-08-04 Tom de Vries + + PR symtab/23270 + * dwarf2/read.c (find_partial_die): Change internal error into Dwarf + Error. + +2020-08-03 John Baldwin + + * syscalls/freebsd.xml: Regenerate. + +2020-08-03 John Baldwin + + * syscalls/update-freebsd.sh: Fix usage and year range. + +2020-08-03 Tom de Vries + + PR symtab/26333 + * dwarf2/read.c (dwarf_decode_lines_1): Ignore + DW_LNE_lo_user/DW_LNE_hi_user range. + +2020-07-30 Simon Marchi + + PR ada/26318 + * ada-lang.c (ada_modulus): Return 0 if property is not of const + kind. + +2020-07-30 Tankut Baris Aktemur + + * breakpoint.c (set_breakpoint_condition): Do minor refactoring. + +2020-07-30 Tankut Baris Aktemur + + * breakpoint.c (set_breakpoint_condition): Update the condition + expressions after checking that the input condition string parses + successfully and does not contain junk at the end. + +2020-07-30 Tankut Baris Aktemur + + * breakpoint.c (set_breakpoint_condition): Update the + condition string after parsing the new condition successfully. + +2020-07-30 Rainer Orth + + * proc-api.c (_STRUCTURED_PROC): Don't define. + * proc-events.c: Likewise. + * proc-flags.c: Likewise. + * proc-why.c: Likewise. + * procfs.c: Likewise. + + * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS. + * configure, config.in: Regenerate. + +2020-07-30 Tom de Vries + + PR build/26320 + * ui-style.h (struct ui_file_style::color): Wrap m_value and + m_red/m_green/m_blue in a union. + +2020-07-29 Tom de Vries + + PR tdep/26280 + * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized. + +2020-07-28 Tom Tromey + + PR symtab/26270: + * symtab.h (find_pc_partial_function_sym): Declare. + * cli/cli-cmds.c (disassemble_command): Use + find_pc_partial_function_sym. Check asm_demangle. + * blockframe.c (cache_pc_function_sym): New global. + (cache_pc_function_name): Remove. + (clear_pc_function_cache): Update. + (find_pc_partial_function_sym): New function, from + find_pc_partial_function. + (find_pc_partial_function): Rewrite using + find_pc_partial_function_sym. + +2020-07-28 Tom Tromey + + * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble" + help. Add usage. + +2020-07-28 Tom Tromey + + * dwarf2/expr.c (dwarf_expr_context::execute_stack_op) + : Cast to address type. + +2020-07-28 Kamil Rytarowski + + * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration. + * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function. + * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data) + (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data) + (nbsd_get_siginfo_type): New. + (nbsd_init_abi): Install gdbarch "get_siginfo_type" method. + (_initialize_nbsd_tdep): New. + +2020-07-28 H.J. Lu + + PR binutils/26301 + * configure: Regenerated. + +2020-07-28 H.J. Lu + + PR binutils/26301 + * configure: Regenerated. + +2020-07-28 Andrew Burgess + + * python/py-frame.c: Remove 'user-regs.h' include. + (frapy_read_register): Rewrite to make use of + gdbpy_parse_register_id. + * python/py-registers.c (gdbpy_parse_register_id): New function, + moved here from python/py-unwind.c. Updated the return type, and + also accepts register descriptor objects. + * python/py-unwind.c: Remove 'user-regs.h' include. + (pyuw_parse_register_id): Moved to python/py-registers.c. + (unwind_infopy_add_saved_register): Update to use + gdbpy_parse_register_id. + (pending_framepy_read_register): Likewise. + * python/python-internal.h (gdbpy_parse_register_id): Declare. + +2020-07-28 Andrew Burgess + + * python/py-registers.c: Add 'user-regs.h' include. + (register_descriptor_iter_find): New function. + (register_descriptor_iterator_object_methods): New static global + methods array. + (register_descriptor_iterator_object_type): Add pointer to methods + array. + +2020-07-27 John Baldwin + + * fbsd-nat.h: Include . Define USE_SIGTRAP_SIGINFO + for all architectures on FreeBSD 11.3 and later. + +2020-07-27 Tom Tromey + + * gcore.h (load_corefile): Don't declare. + +2020-07-27 Tom de Vries + + * configure.ac: Fix sys/sockets.h -> sys/socket.h typo. + * config.in: Regenerate. + * configure: Regenerate. + +2020-07-26 Eli Zaretskii + + * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and + ws2tcpip.h. When checking whether socklen_t type is defined, use + ws2tcpip.h if it is available and sys/socket.h isn't. + * configure: Regenerate. + * config.in: Regenerate. + +2020-07-25 Andrew Burgess + + PR fortran/23051 + PR fortran/26139 + * valops.c (value_ind): Pass address to + readjust_indirect_value_type. + * value.c (readjust_indirect_value_type): Make parameter + non-const, and add extra address parameter. Resolve original type + before using it. + * value.h (readjust_indirect_value_type): Update function + signature and comment. + +2020-07-25 Tom de Vries + + PR symtab/26243 + * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line + entries. + +2020-07-24 Aaron Merey + + * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS. + * configure: Rebuild. + +2020-07-23 Kevin Buettner + + PR corefiles/26294 + * corelow.c (_initialize_corelow): Add period to help text + for "maintenance print core-file-backed-mappings". + 2020-07-23 Pedro Alves * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't @@ -36,7 +561,7 @@ "maint print" commands. 2020-07-22 Kevin Buettner - + * linux-tdep.c (dump_note_entry_p): New function. (linux_dump_mapping_p_ftype): New typedef. (linux_find_memory_regions_full): Add new parameter,