X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2FChangeLog;h=f6cb82b270cc358f1f9377725013491a3078bfcc;hb=632e107b32c0fe8aede62e070b00756e9fdd2c01;hp=09d8db479ab3b514da8915e970b564728f340579;hpb=d5f4488f09b811b0ca44e687da2acbc286d84d4a;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 09d8db479a..f6cb82b270 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,584 @@ +2018-04-27 Tom Tromey + + * configure: Rebuild. + * warning.m4 (AM_GDB_WARNINGS): Add -Wsuggest-override. + * dwarf2loc.c (class dwarf_evaluate_loc_desc): Use "override", not + "OVERRIDE". + (class symbol_needs_eval_context): Likewise. + * dwarf2read.c (mock_mapped_index::symbol_name_count) + (mock_mapped_index::symbol_name_at): Use "override". Remove + "virtual". + * dwarf2-frame.c (dwarf_expr_executor::get_addr_index): Use + "override". + (class dwarf_expr_executor): Use "override", not "OVERRIDE". + * aarch64-tdep.c (instruction_reader::read): Use "override". + (instruction_reader_test::read): Likewise. + * arm-tdep.c (instruction_reader::read): Use "override". + (instruction_reader_thumb::read): Likewise. + +2018-04-26 Andrzej Kaczmarek + + PR remote/9665 + * remote.c (send_g_packet): Use putpkt/getpkt/packet_check_result + instead of remote_send. + (remote_send): Remove. + +2018-04-26 Pedro Alves + + * elfread.c (elf_gnu_ifunc_resolver_return_stop): Use + find_function_start_sal instead of find_pc_line. + +2018-04-26 Pedro Alves + + * breakpoint.c (set_breakpoint_location_function): Handle + mst_data_gnu_ifunc. + * c-exp.y (variable production): Handle mst_data_gnu_ifunc. + * elfread.c (elf_symtab_read): Give data symbols with + BSF_GNU_INDIRECT_FUNCTION set mst_data_gnu_ifunc type. + (elf_rel_plt_read): Update comment. + * linespec.c (convert_linespec_to_sals): Handle + mst_data_gnu_ifunc. + (minsym_found): Handle mst_data_gnu_ifunc. + * minsyms.c (msymbol_is_function, minimal_symbol_reader::record) + (find_solib_trampoline_target): Handle mst_data_gnu_ifunc. + * parse.c (find_minsym_type_and_address): Handle + mst_data_gnu_ifunc. + * symmisc.c (dump_msymbols): Handle mst_data_gnu_ifunc. + * symtab.c (find_gnu_ifunc): Handle mst_data_gnu_ifunc. + * symtab.h (minimal_symbol_type) : Update + comment. + : New enumerator. + +2018-04-26 Pedro Alves + + * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Rename to ... + (lookup_minimal_symbol_by_pc_section): ... this. Replace + 'want_trampoline' parameter by a lookup_msym_prefer parameter. + Handle it. + (lookup_minimal_symbol_by_pc_section): Delete old implementation. + (lookup_minimal_symbol_by_pc): Adjust. + (in_gnu_ifunc_stub): Prefer GNU ifunc symbols. + (lookup_solib_trampoline_symbol_by_pc): Adjust. + * minsyms.h (lookup_msym_prefer): New enum. + (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline' + parameter by a lookup_msym_prefer parameter. + +2018-04-26 Pedro Alves + + * elfread.c (elf_gnu_ifunc_record_cache): Check if the symbol name + ends in "@plt" instead of looking at the symbol's section. + +2018-04-26 Pedro Alves + + * blockframe.c (cache_pc_function_is_gnu_ifunc): Delete. Remove + all references. + (find_pc_partial_function_gnu_ifunc): Rename to ... + (find_pc_partial_function): ... this, and remove references to + 'is_gnu_ifunc_p'. + (find_pc_partial_function): Delete old implementation. + * symtab.h (find_pc_partial_function_gnu_ifunc): Delete. + +2018-04-26 Pedro Alves + + * linespec.c (struct bound_minimal_symbol_search_key): New. + (convert_linespec_to_sals): Sort minimal symbols earlier. Don't + skip first line if we found a GNU ifunc minimal symbol by name. + (compare_msymbols): Change parameters to work with a destructured + lhs minsym. + (compare_msymbols_for_qsort, compare_msymbols_for_bsearch): New + functions. + +2018-04-26 Pedro Alves + + * breakpoint.c (set_breakpoint_location_function): Don't resolve + ifunc targets here. Instead, if we have an ifunc minsym, use its + address/name. + (add_location_to_breakpoint): Store the minsym and the objfile in + the breakpoint location. + * breakpoint.h (bp_location) : New fields. + * linespec.c (minsym_found): Resolve GNU ifunc targets here. + Record the minsym in the sal. + * symtab.h (symtab_and_line) : New field. + +2018-04-26 Pedro Alves + + * elfread.c (elf_gnu_ifunc_resolve_by_got): Don't write to *ADDR_P + unless we actually resolved the ifunc. + +2018-04-26 Pedro Alves + + * c-exp.y (variable production): Prefer ifunc minsyms over + regular function symbols. + * symtab.c (find_gnu_ifunc): New function. + * minsyms.h (lookup_msym_prefer): New enum. + (lookup_minimal_symbol_by_pc_section): Replace 'want_trampoline' + parameter by a lookup_msym_prefer parameter. + * symtab.h (find_gnu_ifunc): New declaration. + +2018-04-26 Pedro Alves + + * blockframe.c (find_gnu_ifunc_target_type): New function. + (find_function_type): New. + * eval.c (evaluate_var_msym_value): For GNU ifunc types, always + return a value with a memory address. + (eval_call): For calls to GNU ifunc functions, try to find the + type of the target function from the type that the resolver + returns. + * gdbtypes.c (objfile_type): Don't install a return type for ifunc + symbols. + * infcall.c (find_function_return_type): Delete. + (find_function_addr): Add 'function_type' parameter. For calls to + GNU ifunc functions, try to find the type of the target function + from the type that the resolver returns, and return it via + FUNCTION_TYPE. + (call_function_by_hand_dummy): Adjust to use the function type + returned by find_function_addr. + (find_function_addr): Add 'function_type' parameter and move + description here. + * symtab.h (find_function_type, find_gnu_ifunc_target_type): New + declarations. + +2018-04-26 Pedro Alves + + * c-exp.y (variable production): Skip finding an alias for ifunc + symbols. + +2018-04-26 Pedro Alves + + * elfread.c (elf_rel_plt_read): Look for relocations for .got.plt too. + +2018-04-25 Pedro Alves + + * infcmd.c (kill_command): Print the pid as string, not the whole + thread's ptid. Add comment. s/has been killed/killed/ in output + message. + * remote.c (remote_detach_1): Print the pid as string, not the + whole thread's ptid. + +2018-04-24 Jan Kratochvil + Sergio Durigan Junior + Pedro Alves + + * infcmd.c (kill_command): Print message when inferior has + been killed. + * inferior.c (print_inferior_events): Remove 'static'. Set as + '1'. + (add_inferior): Improve message printed when + 'print_inferior_events' is on. + (exit_inferior): Remove message printed when + 'print_inferior_events' is on. + (detach_inferior): Improve message printed when + 'print_inferior_events' is on. + (initialize_inferiors): Use 'add_inferior_silent' to set + 'current_inferior_'. + * inferior.h (print_inferior_events): Declare here as + 'extern'. + * infrun.c (follow_fork_inferior): Print '[Attaching...]' or + '[Detaching...]' messages when 'print_inferior_events' is on. + Use 'add_thread_silent' instead of 'add_thread'. Add '[' and ']' + as prefix/suffix for messages. Remove periods. Fix erroneous + 'Detaching after fork from child...', replace it by '... from + parent...'. + (handle_vfork_child_exec_or_exit): Add '[' and ']' as + prefix/suffix when printing 'Detaching...' messages. Print + them when 'print_inferior_events' is on. + * remote.c (remote_detach_1): Print message when detaching + from inferior and '!is_fork_parent'. + +2018-04-24 Tom Tromey + + * cli-out.h: Reindent. + +2018-04-24 Tom Tromey + + * cli-out.c (cli_ui_out::out_field_fmt): Remove. + (cli_ui_out::do_field_string): Use fputs_filtered. + * cli-out.h (class cli_ui_out) : Remove. + +2018-04-23 Tom Tromey + + * guile/scm-frame.c (gdbscm_frame_read_var): Use + gdb::unique_xmalloc_ptr. + +2018-04-23 Tom Tromey + + * configure: Rebuild. + +2018-04-22 Rajendra SY + + PR gdb/23095 + * gdb/testsuite/gdb.base/break-probes.exp: Pass shlib_load to + prepare_for_testing. Set normal_bp to r_debug_state if target + is bsd. + +2018-04-21 Pedro Alves + Rajendra SY + + * inf-ptrace.c (inf_ptrace_attach): Mark the thread as executing. + * remote.c (extended_remote_attach): In all-stop mode, mark the + thread as executing. + +2018-04-19 Philippe Waroquiers + + * thread.c (thread_apply_all_command): Fix comment. + (thread_command): Fix comment. + +2018-04-10 Alan Hayward + + * common/tdesc.h (tdesc_create_feature): Remove xml filename + parameter. + * features/aarch64-core.c (create_feature_aarch64_core): + Regenerate. + * features/aarch64-fpu.c (create_feature_aarch64_fpu): + Likewise. + * features/i386/32bit-avx.c (create_feature_i386_32bit_avx): + Likewise. + * features/i386/32bit-avx512.c + (create_feature_i386_32bit_avx512): Likewise. + * features/i386/32bit-core.c (create_feature_i386_32bit_core): + Likewise. + * features/i386/32bit-linux.c (create_feature_i386_32bit_linux): + Likewise. + * features/i386/32bit-mpx.c (create_feature_i386_32bit_mpx): + Likewise. + * features/i386/32bit-pkeys.c (create_feature_i386_32bit_pkeys): + Likewise. + * features/i386/32bit-sse.c (create_feature_i386_32bit_sse): + Likewise. + * features/i386/64bit-avx.c (create_feature_i386_64bit_avx): + Likewise. + * features/i386/64bit-avx512.c + (create_feature_i386_64bit_avx512): Likewise. + * features/i386/64bit-core.c (create_feature_i386_64bit_core): + Likewise. + * features/i386/64bit-linux.c (create_feature_i386_64bit_linux): + Likewise. + * features/i386/64bit-mpx.c (create_feature_i386_64bit_mpx): + Likewise. + * features/i386/64bit-pkeys.c (create_feature_i386_64bit_pkeys): + Likewise. + * features/i386/64bit-segments.c + (create_feature_i386_64bit_segments): Likewise. + * features/i386/64bit-sse.c (create_feature_i386_64bit_sse): + Likewise. + * features/i386/x32-core.c + (create_feature_i386_x32_core): Likewise. + * features/tic6x-c6xp.c (create_feature_tic6x_c6xp): Likewise. + * features/tic6x-core.c (create_feature_tic6x_core): Likewise. + * features/tic6x-gp.c (create_feature_tic6x_gp): Likewise. + * target-descriptions.c: In generated code, don't pass xml + filename. + +2018-04-18 Alan Hayward + + * common/tdesc.c (print_xml_feature::visit_pre): Add xml parsing. + (print_xml_feature::visit_post): Likewise. + (print_xml_feature::visit): Likewise. + * common/tdesc.h (tdesc_get_features_xml): Use const tdesc. + (print_xml_feature): Add new class. + * regformats/regdat.sh: Null xmltarget on feature targets. + * target-descriptions.c (struct target_desc): Add xmltarget. + (maintenance_check_tdesc_xml_convert): Add unittest function. + (tdesc_get_features_xml): Add function to get xml. + (maintenance_check_xml_descriptions): Test xml generation. + * xml-tdesc.c (string_read_description_xml): Add function. + * xml-tdesc.h (string_read_description_xml): Add declaration. + +2018-04-18 Alan Hayward + + * features/Makefile: Add feature marker to targets with new style + target descriptions. + * regformats/aarch64.dat: Regenerate. + * regformats/i386/amd64-avx-avx512-linux.dat: Likewise. + * regformats/i386/amd64-avx-linux.dat: Likewise. + * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Likewise. + * regformats/i386/amd64-avx-mpx-linux.dat: Likewise. + * regformats/i386/amd64-linux.dat: Likewise. + * regformats/i386/amd64-mpx-linux.dat: Likewise. + * regformats/i386/amd64.dat: Likewise. + * regformats/i386/i386-avx-avx512-linux.dat: Likewise. + * regformats/i386/i386-avx-linux.dat: Likewise. + * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Likewise. + * regformats/i386/i386-avx-mpx-linux.dat: Likewise. + * regformats/i386/i386-linux.dat: Likewise. + * regformats/i386/i386-mmx-linux.dat: Likewise. + * regformats/i386/i386-mpx-linux.dat: Likewise. + * regformats/i386/i386.dat: Likewise. + * regformats/i386/x32-avx-avx512-linux.dat: Likewise. + * regformats/i386/x32-avx-linux.dat: Likewise. + * regformats/i386/x32-linux.dat: Likewise. + * regformats/tic6x-c62x-linux.dat: Likewise. + * regformats/tic6x-c64x-linux.dat: Likewise. + * regformats/tic6x-c64xp-linux.dat: Likewise. + * regformats/regdat.sh: Parse feature marker. + +2018-04-18 Alan Hayward + + * common/tdesc.h (tdesc_architecture_name): Add new declaration. + (tdesc_osabi_name): Likewise. + * target-descriptions.c (tdesc_architecture_name): Add new + function. + (tdesc_osabi_name): Likewise. + +2018-04-18 Alan Hayward + + * common/tdesc.c (tdesc_predefined_type): Move to here. + (tdesc_named_type): Likewise. + (tdesc_create_vector): Likewise. + (tdesc_create_struct): Likewise. + (tdesc_set_struct_size): Likewise. + (tdesc_create_union): Likewise. + (tdesc_create_flags): Likewise. + (tdesc_create_enum): Likewise. + (tdesc_add_field): Likewise. + (tdesc_add_typed_bitfield): Likewise. + (tdesc_add_bitfield): Likewise. + (tdesc_add_flag): Likewise. + (tdesc_add_enum_value): Likewise. + * common/tdesc.h (struct tdesc_type_builtin): Likewise. + (struct tdesc_type_vector): Likewise. + (struct tdesc_type_field): Likewise. + (struct tdesc_type_with_fields): Likewise. + (tdesc_create_enum): Add declaration. + (tdesc_add_typed_bitfield): Likewise. + (tdesc_add_enum_value): Likewise. + * target-descriptions.c (tdesc_type_field): Move from here. + (tdesc_type_builtin): Likewise. + (tdesc_type_vector): Likewise. + (tdesc_type_with_fields): Likewise. + (tdesc_predefined_types): Likewise. + (tdesc_named_type): Likewise. + (tdesc_create_vector): Likewise. + (tdesc_create_struct): Likewise. + (tdesc_set_struct_size): Likewise. + (tdesc_create_union): Likewise. + (tdesc_create_flags): Likewise. + (tdesc_create_enum): Likewise. + (tdesc_add_field): Likewise. + (tdesc_add_typed_bitfield): Likewise. + (tdesc_add_bitfield): Likewise. + (tdesc_add_flag): Likewise. + (tdesc_add_enum_value): Likewise. + * gdb/target-descriptions.h (tdesc_create_enum): Likewise. + (tdesc_add_typed_bitfield): Likewise. + (tdesc_add_enum_value): Likewise. + +2018-04-18 Alan Hayward + + * common/tdesc.c (tdesc_feature::accept): Move to here. + (tdesc_feature::operator==): Likewise. + (tdesc_create_reg): Likewise. + * common/tdesc.h (tdesc_type_kind): Likewise. + (struct tdesc_type): Likewise. + (struct tdesc_feature): Likewise. + * regformats/regdat.sh: Create a feature. + * target-descriptions.c (tdesc_type_kind): Move from here. + (tdesc_type): Likewise. + (tdesc_type_up): Likewise. + (tdesc_feature): Likewise. + (tdesc_create_reg): Likewise. + +2018-04-18 Alan Hayward + + * Makefile.in: Add arch/tdesc.c + * common/tdesc.c: New file. + * common/tdesc.h (tdesc_element_visitor): Move to here. + (tdesc_element): Likewise. + (tdesc_reg): Likewise. + (tdesc_reg_up): Likewise. + * regformats/regdef.h (reg): Add offset to constructors. + * target-descriptions.c (tdesc_element_visitor): Move from here. + (tdesc_element): Likewise. + (tdesc_reg): Likewise. + (tdesc_reg_up): Likewise. + +2018-04-17 Tom Tromey + + * dwarf2read.c (quirk_rust_enum): Conditionally drop the + discriminant field. + +2018-04-17 Tom Tromey + + * dwarf2read.c (quirk_rust_enum): Handle unions correctly. + +2018-04-17 Andreas Arnez + + * symtab.c (print_symbol_info): Skip printing filename and line + number when `last' is NULL. + (symtab_symbol_info): Use empty string instead of NULL for first + invocation of print_symbol_info. + (rbreak_command): Pass NULL to `last' parameter of + print_symbol_info. + +2018-04-16 Simon Marchi + + * linux-tdep.c (linux_spu_make_corefile_notes): Return note_data + instead of nullptr. + +2018-04-16 Pedro Alves + + * MAINTAINERS (sh): Remove. + * Makefile.in (ALL_TARGET_OBS): Remove sh64-tdep.o. + (HFILES_NO_SRCDIR): Remove sh64-tdep.h. + (ALLDEPFILES): Remove sh64-tdep.c. + * NEWS: Mentions that support for SH-5/SH64 is removed. + * configure.tgt (sh*-*-linux*): Remove reference to sh64-tdep.o. + (sh*-*-openbsd*): Ditto. + (sh64-*-elf*): Remove. + (sh*): Remove. + * regcache.c (cooked_write_test): Remove bfd_mach_sh5 case. + * sh-linux-tdep.c: Remove reference to bfd_mach_sh5. + * sh-tdep.c: No longer include "sh64-tdep.h". + (sh_gdbarch_init): Remove reference to bfd_mach_sh5. + * sh64-tdep.c, sh64-tdep.h: Remove files. + +2018-04-16 Pedro Alves + + * MAINTAINERS: Remove m88k. + * Makefile.in (ALL_TARGET_OBS): Remove m88k-tdep.o. + (HFILES_NO_SRCDIR): Remove m88k-tdep.h. + (ALLDEPFILES): Remove m88k-bsd-nat.c and m88k-tdep.c. + * NEWS: Mention that support for m88k was removed. + * configure.host (m88*-*-*): Remove support. + * configure.nat (m88k-*-*): Remove support. + * configure.tgt (m88*-*-openbsd*): Remove. + * m88k-bsd-nat.c, m88k-tdep.c, m88k-tdep.h: Delete. + +2018-04-15 Simon Marchi + + * configure.tgt (x86_tobjs): New variable. + (amd64_tobjs, i386_tobjs): Use it. + +2018-04-13 Andreas Arnez + + * symtab.c (print_symbol_info): Precede the symbol definition by + the line number when available. + * NEWS: Advertise this enhancement. + +2018-04-13 Markus Metzger + + * NEWS (New options): announce set/show record btrace cpu. + * btrace.c: Include record-btrace.h. + (btrace_compute_ftrace_pt): Skip enabling errata workarounds if + the vendor is unknown. + (btrace_compute_ftrace_1): Add cpu parameter. Update callers. + Maybe overwrite the btrace configuration's cpu. + (btrace_compute_ftrace): Add cpu parameter. Update callers. + (btrace_fetch): Add cpu parameter. Update callers. + (btrace_maint_update_pt_packets): Call record_btrace_get_cpu. + Maybe overwrite the btrace configuration's cpu. Skip enabling + errata workarounds if the vendor is unknown. + * python/py-record-btrace.c: Include record-btrace.h. + (recpy_bt_begin, recpy_bt_end, recpy_bt_instruction_history) + (recpy_bt_function_call_history): Call record_btrace_get_cpu. + * record-btrace.c (record_btrace_cpu_state_kind): New. + (record_btrace_cpu): New. + (set_record_btrace_cpu_cmdlist): New. + (record_btrace_get_cpu): New. + (require_btrace_thread, record_btrace_info) + (record_btrace_resume_thread): Call record_btrace_get_cpu. + (cmd_set_record_btrace_cpu_none): New. + (cmd_set_record_btrace_cpu_auto): New. + (cmd_set_record_btrace_cpu): New. + (cmd_show_record_btrace_cpu): New. + (_initialize_record_btrace): Initialize set/show record btrace cpu + commands. + * record-btrace.h (record_btrace_get_cpu): New. + +2018-04-13 Markus Metzger + + * record.c (set_record_command): Fix typo in message. + +2018-04-13 Markus Metzger + + * record-btrace.c (cmd_set_record_btrace): Print sub-commands. + +2018-04-13 Markus Metzger + + * infrun.c (process_event_stop_test): Call + gdbarch_in_indirect_branch_thunk. + * gdbarch.sh (in_indirect_branch_thunk): New. + * gdbarch.c: Regenerated. + * gdbarch.h: Regenerated. + * x86-tdep.h: New. + * x86-tdep.c: New. + * Makefile.in (ALL_TARGET_OBS): Add x86-tdep.o. + (HFILES_NO_SRCDIR): Add x86-tdep.h. + (ALLDEPFILES): Add x86-tdep.c. + * arch-utils.h (default_in_indirect_branch_thunk): New. + * arch-utils.c (default_in_indirect_branch_thunk): New. + * i386-tdep: Include x86-tdep.h. + (i386_in_indirect_branch_thunk): New. + (i386_elf_init_abi): Set in_indirect_branch_thunk gdbarch + function. + * amd64-tdep: Include x86-tdep.h. + (amd64_in_indirect_branch_thunk): New. + (amd64_init_abi): Set in_indirect_branch_thunk gdbarch function. + +2018-04-12 Jan Kratochvil + + PR gdb/23053 + * dwarf-index-write.c (data_buf::grow) (write_one_signatured_type) + (recursively_write_psymbols) (debug_names::recursively_write_psymbols) + (debug_names::write_one_signatured_type): Fix -D_GLIBCXX_DEBUG + regression. + +2018-04-12 Tom Tromey + + * rust-lang.c (rust_print_struct_def): Remove univariant code. + (rust_evaluate_subexp): Likewise. + +2018-04-12 Pedro Alves + + * procfs.c (procfs_detach): Make forward declaration's prototype + match definition's protototype. + (proc_get_LDT_entry): Remove stale do_cleanups call. + +2018-04-12 Pedro Alves + + * target.h (target_ops::to_has_exited): Delete. + (target_has_exited): Delete. + * target-delegates.c: Regenerate. + +2018-04-11 Pedro Alves + + * target.c (fileio_fh_t::t): Add comment. + (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat) + (target_fileio_close): Handle a NULL target. + (invalidate_fileio_fh): New. + (target_close): Call it. + * remote.c (remote_hostio_send_command): No longer check whether + remote_desc is open. + +2018-04-11 Pedro Alves + + * target.c (fileio_fh_t): Make it a named struct instead of a + typedef. + (fileio_fh_t::is_closed): New method. + (DEF_VEC_O (fileio_fh_t)): Remove. + (fileio_fhandles): Now a std::vector. + (is_closed_fileio_fh): Delete. + (acquire_fileio_fd): Adjust. Rename parameters. + (release_fileio_fd): Adjust. + (fileio_fd_to_fh): Reimplement as a function instead of a macro. + (target_fileio_pwrite, target_fileio_pread, target_fileio_fstat) + (target_fileio_close): Adjust. + +2018-04-10 Simon Marchi + + * auto-load.c (auto_load_safe_path_vec_update): Iterate by + index. + +2018-04-10 Pedro Alves + + * gdbthread.h (finish_thread_state_cleanup): Delete declaration. + (scoped_finish_thread_state): New class. + * infcmd.c (run_command_1): Use it instead of finish_thread_state + cleanup. + * infrun.c (proceed, prepare_for_detach, wait_for_inferior) + (fetch_inferior_event, normal_stop): Likewise. + * thread.c (finish_thread_state_cleanup): Delete. + 2018-04-09 Simon Marchi Pedro Alves