Remove declaration of set_register_cache from regdef.h
[external/binutils.git] / gdb / ChangeLog
index a96e71f..666540a 100644 (file)
@@ -1,3 +1,455 @@
+2017-06-06  Yao Qi  <yao.qi@linaro.org>
+
+       * regformats/regdef.h (set_register_cache): Remove the
+       declaration.
+
+2017-06-06 Alan Hayward  <alan.hayward@arm.com>
+
+       * frame.c (frame_unwind_register_signed): Use
+       frame_unwind_register_value.
+
+2017-06-06  Pedro Alves  <palves@redhat.com>
+
+       PR breakpoints/21553
+       * breakpoint.c (create_breakpoints_sal_default)
+       (init_breakpoint_sal, create_breakpoint_sal): Use
+       gdb::unique_xmalloc_ptr for string parameters.
+       (create_breakpoint): Constify 'extra_string' and 'cond_string'
+       parameters.  Replace cleanups with gdb::unique_xmalloc_ptr.
+       (base_breakpoint_create_breakpoints_sal)
+       (bkpt_create_breakpoints_sal, tracepoint_create_breakpoints_sal)
+       (strace_marker_create_breakpoints_sal)
+       (create_breakpoints_sal_default): Use gdb::unique_xmalloc_ptr for
+       string parameters.
+       * breakpoint.h (breakpoint_ops::create_breakpoints_sal): Use
+       gdb::unique_xmalloc_ptr for string parameters.
+       (create_breakpoint): Constify 'extra_string' and 'cond_string'
+       parameters.
+
+2017-06-06  Alan Hayward  <alan.hayward@arm.com>
+
+       * alpha-tdep.c (alpha_register_to_value): Use
+       get_frame_register_value.
+       (alpha_value_to_register): Use ALPHA_REGISTER_SIZE.
+
+2017-06-06  Alan Hayward  <alan.hayward@arm.com>
+
+       * ia64-tdep.c (IA64_MAX_FP_REGISTER_SIZE) Add.
+       (ia64_register_to_value): Use IA64_MAX_FP_REGISTER_SIZE.
+       (ia64_value_to_register): Likewise.
+       (ia64_extract_return_value): Likewise.
+       (ia64_store_return_value): Likewise.
+       (ia64_push_dummy_call): Likewise.
+
+2017-06-04  Joel Brobecker  <brobecker@adacore.com>
+
+       GDB 8.0 released.
+
+2017-06-03  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * x86-linux-nat.c (struct arch_lwp_info): Remove.
+
+2017-06-03  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * linux-nat.c (linux_nat_post_attach_wait): Remove FIRST
+       parameter.
+       (linux_nat_attach): Adjust call to linux_nat_post_attach_wait.
+
+2017-06-02  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * event-loop.c (poll_timers): Unallocate timer using delete
+       instead of xfree.
+
+2017-06-02  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * breakpoint.h (struct breakpoint_ops) <dtor>: Remove.
+       (struct breakpoint) <~breakpoint>: New.
+       (struct watchpoint): Inherit from breakpoint.
+       <~watchpoint>: New.
+       <base>: Remove.
+       (struct tracepoint): Inherit from breakpoint.
+       <base>: Remove.
+       * breakpoint.c (longjmp_breakpoint_ops): Remove.
+       (struct longjmp_breakpoint): Inherit from breakpoint.
+       <~longjmp_breakpoint>: New.
+       <base>: Remove.
+       (new_breakpoint_from_type): Remove casts.
+       (watchpoint_in_thread_scope): Remove reference to base field.
+       (watchpoint_del_at_next_stop): Likewise.
+       (update_watchpoint): Likewise.
+       (watchpoint_check): Likewise.
+       (bpstat_check_watchpoint): Likewise.
+       (set_longjmp_breakpoint): Likewise.
+       (struct fork_catchpoint): Inherit from breakpoint.
+       <base>: Remove.
+       (struct solib_catchpoint): Inherit from breakpoint.
+       <~solib_catchpoint>: New.
+       <base>: Remove.
+       (dtor_catch_solib): Change to ...
+       (solib_catchpoint::~solib_catchpoint): ... this.
+       (breakpoint_hit_catch_solib): Remove reference to base field.
+       (add_solib_catchpoint): Likewise.
+       (create_fork_vfork_event_catchpoint): Likewise.
+       (struct exec_catchpoint): Inherit from breakpoint.
+       <~exec_catchpoint>: New.
+       <base>: Remove.
+       (dtor_catch_exec): Change to ...
+       (exec_catchpoint::~exec_catchpoint): ... this.
+       (dtor_watchpoint): Change to ...
+       (watchpoint::~watchpoint): ... this.
+       (watch_command_1): Remove reference to base field.
+       (catch_exec_command_1): Likewise.
+       (base_breakpoint_dtor): Change to ...
+       (breakpoint::~breakpoint): ... this.
+       (base_breakpoint_ops): Remove dtor field value.
+       (longjmp_bkpt_dtor): Change to ...
+       (longjmp_breakpoint::~longjmp_breakpoint): ... this.
+       (strace_marker_create_breakpoints_sal): Remove reference to base
+       field.
+       (delete_breakpoint): Don't manually call breakpoint destructor.
+       (create_tracepoint_from_upload): Remove reference to base field.
+       (trace_pass_set_count): Likewise.
+       (initialize_breakpoint_ops): Don't initialize
+       momentary_breakpoint_ops, don't set dtors.
+       * ada-lang.c (struct ada_catchpoint): Inherit from breakpoint.
+       <~ada_catchpoint>: New.
+       <base>: Remove.
+       (create_excep_cond_exprs): Remove reference to base field.
+       (dtor_exception): Change to ...
+       (ada_catchpoint::~ada_catchpoint): ... this.
+       (dtor_catch_exception): Remove.
+       (dtor_catch_exception_unhandled): Remove.
+       (dtor_catch_assert): Remove.
+       (create_ada_exception_catchpoint): Remove reference to base
+       field.
+       (initialize_ada_catchpoint_ops): Don't set dtors.
+       * break-catch-sig.c (struct signal_catchpoint): Inherit from
+       breakpoint.
+       <~signal_catchpoint>: New.
+       <base>: Remove.
+       (signal_catchpoint_dtor): Change to ...
+       (signal_catchpoint::~signal_catchpoint): ... this.
+       (create_signal_catchpoint): Remove reference to base field.
+       (initialize_signal_catchpoint_ops): Don't set dtor.
+       * break-catch-syscall.c (struct syscall_catchpoint): Inherit
+       from breakpoint.
+       <~syscall_catchpoint>: New.
+       <base>: Remove.
+       (dtor_catch_syscall): Change to ...
+       (syscall_catchpoint::~syscall_catchpoint): ... this.
+       (create_syscall_event_catchpoint): Remove reference to base
+       field.
+       (initialize_syscall_catchpoint_ops): Don't set dtor.
+       * break-catch-throw.c (struct exception_catchpoint): Inherit
+       from breakpoint.
+       <~exception_catchpoint>: New.
+       <base>: Remove.
+       (dtor_exception_catchpoint): Change to ...
+       (exception_catchpoint::~exception_catchpoint): ... this.
+       (handle_gnu_v3_exceptions): Remove reference to base field.
+       (initialize_throw_catchpoint_ops): Don't set dtor.
+       * ctf.c (ctf_get_traceframe_address): Remove reference to base
+       field.
+       * remote.c (remote_get_tracepoint_status): Likewise.
+       * tracefile-tfile.c (tfile_get_traceframe_address): Likewise.
+       * tracefile.c (tracefile_fetch_registers): Likewise.
+       * tracepoint.c (actions_command): Likewise.
+       (validate_actionline): Likewise.
+       (tfind_1): Likewise.
+       (get_traceframe_location): Likewise.
+       (find_matching_tracepoint_location): Likewise.
+       (parse_tracepoint_status): Likewise.
+       * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
+
+2017-06-02  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * breakpoint.c (struct longjmp_breakpoint): New struct.
+       (is_tracepoint_type): Change return type to bool.
+       (is_longjmp_type): New function.
+       (new_breakpoint_from_type): Handle longjmp kinds of breakpoints.
+       (set_raw_breakpoint_without_location): Use
+       new_breakpoint_from_type.
+       (set_raw_breakpoint): Likewise.
+
+2017-06-02  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       * breakpoint.c (new_breakpoint_from_type): New function.
+       (create_breakpoint_sal): Use new_breakpoint_from_type and
+       unique_ptr.
+       (create_breakpoint): Likewise.
+
+2017-05-31  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * memattr.c (mem_info_command): Rename to ...
+       (info_mem_command): ... this.
+       (mem_enable_command): Rename to ...
+       (enable_mem_command): ... this.
+       (mem_disable_command): Rename to ...
+       (disable_mem_command): ... this.
+       (mem_delete_command): Rename to ...
+       (delete_mem_command): ... this.
+       (_initialize_mem): Adjust function names.
+
+2017-05-31  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * btrace.c (handle_pt_insn_events): New.
+       (ftrace_add_pt): Call handle_pt_insn_events.  Rename ERRCODE into
+       STATUS.  Split into this and ...
+       (handle_pt_insn_event_flags): ... this.
+
+2017-05-31  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * configure.ac: Check for pt_insn_event, struct pt_insn.enabled,
+       and struct pt_insn.resynced.
+       * configure: Regenerated.
+       * config.in: Regenerated.
+
+2017-05-30  Tim Wiederhake  <tim.wiederhake@intel.com>
+
+       * btrace.c (ftrace_find_call_by_number): New function.
+       (ftrace_new_function): Store objects, not pointers.
+       (ftrace_find_call_by_number, ftrace_new_return, ftrace_new_switch,
+       ftrace_new_gap, ftrace_update_function,
+       ftrace_compute_global_level_offset, btrace_stich_bts, btrace_clear,
+       btrace_insn_get, btrace_insn_get_error, btrace_insn_end,
+       btrace_insn_next, btrace_insn_prev, ptrace_find_insn_by_number,
+       btrace_ends_with_single_insn, btrace_call_get): Account for
+       btrace_thread_info::functions now storing objects.
+       * btrace.h (struct btrace_thread_info): Add constructor.
+       (struct btrace_thread_info) <functions>: Make std::vector.
+       (struct btrace_thread_info) <prev, next, up, insn, errcode, flags):
+       Initialize with default values.
+       * record-btrace.c (record_btrace_frame_sniffer): Account for
+       btrace_thread_info::functions now storing objects.
+
+2017-05-30  Tim Wiederhake  <tim.wiederhake@intel.com>
+
+       * btrace.c: Remove typedef bfun_s.
+       (ftrace_new_gap): Directly add gaps to the list of gaps.
+       (btrace_bridge_gaps, btrace_compute_ftrace_bts, pt_btrace_insn_flags,
+       ftrace_add_pt, btrace_compute_ftrace_pt, btrace_compute_ftrace_1,
+       btrace_finalize_ftrace, btrace_compute_ftrace): Use std::vector
+       instead of gdb VEC.
+
+2017-05-30  Tim Wiederhake  <tim.wiederhake@intel.com>
+
+       * btrace.c (ftrace_fixup_caller, ftrace_new_return, ftrace_connect_bfun,
+       ftrace_bridge_gap): Replace references to btrace_thread_info::segment
+       with btrace_thread_info::next_segment and
+       btrace_thread_info::prev_segment.
+       * btrace.h: Remove struct btrace_func_link.
+       (struct btrace_function): Replace pair of function segment pointers
+       with pair of indices.
+       * python/py-record-btrace.c (btpy_call_prev_sibling,
+       btpy_call_next_sibling): Replace references to
+       btrace_thread_info::segment with btrace_thread_info::next_segment and
+       btrace_thread_info::prev_segment.
+       * record-btrace.c (record_btrace_frame_this_id): Use
+       btrace_find_call_by_number.
+
+2017-05-30  Tim Wiederhake  <tim.wiederhake@intel.com>
+
+       * btrace.c (ftrace_new_function, ftrace_fixup_level,
+       ftrace_connect_bfun, ftrace_bridge_gap, btrace_bridge_gaps,
+       btrace_insn_next, btrace_insn_prev): Remove references to
+       btrace_thread_info::flow.
+       * btrace.h (struct btrace_function): Remove FLOW.
+
+2017-05-30  Tim Wiederhake  <tim.wiederhake@intel.com>
+
+       * btrace.c (ftrace_find_call_by_number): New function.
+       (ftrace_update_caller, ftrace_new_call, ftrace_new_tailcall,
+       ftrace_get_caller, ftrace_find_call, ftrace_new_return,
+       ftrace_match_backtrace, ftrace_connect_bfun, ftrace_connect_backtrace,
+       ftrace_bridge_gap, btrace_bridge_gaps): Use btrace_function::up as an
+       index.
+       * btrace.h (struct btrace_function): Turn UP into an index.
+       * python/py-record-btrace.c (btpy_call_up): Use btrace_function::up
+       as an index.
+       * record-btrace.c (record_btrace_frame_unwind_stop_reason,
+       record_btrace_frame_prev_register, record_btrace_frame_sniffer,
+       record_btrace_tailcall_frame_sniffe): Use btrace_find_call_by_number.
+
+2017-05-30  Tim Wiederhake  <tim.wiederhake@intel.com>
+
+       * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
+       ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
+       ftrace_update_function, ftrace_compute_global_level_offset,
+       btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt,
+       btrace_stitch_bts, btrace_fetch, btrace_clear, btrace_insn_number,
+       btrace_insn_end, btrace_is_empty): Remove references to
+       btrace_thread_info::begin and btrace_thread_info::end.
+       * btrace.h (struct btrace_thread_info): Remove BEGIN and END.
+       (struct btrace_thread_info) <functions>: Adjust comment.
+       * record-btrace.c (record_btrace_start_replaying): Remove reference to
+       btrace_thread_info::begin.
+
+2017-05-30  Tim Wiederhake  <tim.wiederhake@intel.com>
+
+       * btrace.c (ftrace_new_function, ftrace_new_call, ftrace_new_tailcall,
+       ftrace_new_return, ftrace_new_switch, ftrace_new_gap,
+       ftrace_update_function): Remove arguments that implicitly were always
+       BTINFO->END.
+       (btrace_compute_ftrace_bts, ftrace_add_pt, btrace_compute_ftrace_pt):
+       Don't pass BTINFO->END.
+
+2017-05-30  Tim Wiederhake  <tim.wiederhake@intel.com>
+
+       * btrace.c: (btrace_insn_get, btrace_insn_get_error, btrace_insn_number,
+       btrace_insn_begin, btrace_insn_end, btrace_insn_next, btrace_insn_prev,
+       btrace_find_insn_by_number): Replace function segment pointer with
+       index.
+       (btrace_insn_cmp): Simplify.
+       * btrace.h: (struct btrace_insn_iterator) Rename index to
+       insn_index.  Replace function segment pointer with index into function
+       segment vector.
+       * record-btrace.c (record_btrace_call_history): Replace function
+       segment pointer use with index.
+       (record_btrace_frame_sniffer): Retrieve function call segment through
+       vector.
+       (record_btrace_set_replay): Remove defunc't safety check.
+
+2017-05-30  Tim Wiederhake  <tim.wiederhake@intel.com>
+
+       * btrace.c (btrace_ends_with_single_insn): New function.
+       (btrace_call_get, btrace_call_number, btrace_call_begin,
+       btrace_call_end, btrace_call_next, btrace_call_prev,
+       btrace_find_call_by_number): Use index into call segment vector
+       instead of pointer.
+       (btrace_call_cmp): Simplify.
+       * btrace.h (struct btrace_call_iterator): Replace function call segment
+       pointer with index into vector.
+       * record-btrace.c (record_btrace_call_history): Use index instead of
+       pointer.
+
+2017-05-30  Tim Wiederhake  <tim.wiederhake@intel.com>
+
+       * btrace.c (btrace_insn_begin, btrace_insn_end,
+       btrace_find_insn_by_number): Add btinfo to iterator.
+       * btrace.h (struct btrace_insn_iterator): Add btinfo.
+
+2017-05-30  Tim Wiederhake  <tim.wiederhake@intel.com>
+
+       * btrace.c (ftrace_new_function): Add btrace_thread_info to arguments
+       and save pointers directly.
+       (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return,
+       ftrace_new_switch, ftrace_new_gap, ftrace_update_function,
+       ftrace_add_pt): Add btrace_thread_info to arguments.  Adjust for
+       changed signature of functions.
+       (btrace_compute_ftrace_pt): Adjust for changed signature of functions.
+       (btrace_fetch): Remove code that adds btrace_function pointers to
+       vector of btrace_functions.
+       (btrace_clear): Simplify freeing vector of btrace_functions.
+
+2017-05-30  Tim Wiederhake  <tim.wiederhake@intel.com>
+
+       * btrace.c (btrace_fetch, btrace_clear, btrace_find_insn_by_number):
+       Replace VEC_* with std::vector functions.
+       * btrace.h: Add include: vector. Remove typedef for DEF_VEC_P.
+       (struct btrace_thread_info)<functions>: Change type to std::vector.
+
+2017-05-30  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * NEWS (Changes in GDB 8.0): Remove extra empty line.  Move
+       "Removed targets and native configurations" up.  Merge duplicate
+       "New commands" sub-sections.  Add "New options" sub-sections.
+
+2017-05-26  Alan Hayward  <alan.hayward@arm.com>
+
+       * defs.h (copy_integer_to_size): New declaration.
+       * findvar.c (copy_integer_to_size): New function.
+       (do_cint_test): New selftest function.
+       (copy_integer_to_size_test): Likewise.
+       (_initialize_findvar): Likewise.
+       * mips-fbsd-tdep.c (mips_fbsd_supply_reg): Use raw_supply_integer.
+       (mips_fbsd_collect_reg): Use raw_collect_integer.
+       * mips-linux-tdep.c (supply_32bit_reg): Use raw_supply_integer.
+       (mips64_fill_gregset): Use raw_collect_integer
+       (mips64_fill_fpregset): Use raw_supply_integer.
+       * regcache.c (regcache::raw_supply_integer): New function.
+       (regcache::raw_collect_integer): Likewise.
+       * regcache.h: (regcache::raw_supply_integer): New declaration.
+       (regcache::raw_collect_integer): Likewise.
+
+2017-05-24  Yao Qi  <yao.qi@linaro.org>
+
+       * Makefile.in (SFILES): Add gdbarch-selftests.c.
+       (COMMON_OBS): Add gdbarch-selftests.o.
+       * frame.c [GDB_SELF_TESTS] (create_new_frame): New function.
+       * frame.h [GDB_SELF_TESTS] (create_new_frame): Declare.
+       * gdbarch-selftests.c: New file.
+       * regcache.h (regcache) <~regcache>: Mark it virtual if
+       GDB_SELF_TEST.
+       <raw_write>: Likewise.
+
+2017-05-24  Yao Qi  <yao.qi@linaro.org>
+
+       * regcache.c (current_regcache): Change it to
+       regcache::current_regcache.
+       (regcache_observer_target_changed): Update.
+       (regcache_thread_ptid_changed): Make it a regcache static
+       method.
+       (regcache_thread_ptid_changed): Update.
+       (class regcache_access): New.
+       (current_regcache_test): Update.
+       (_initialize_regcache): Update.
+       * regcache.h: Include forward_list.
+       (regcache): Declare regcache_thread_ptid_changed and declare
+       registers_changed_ptid as friend.
+
+2017-05-24  Yao Qi  <yao.qi@linaro.org>
+
+       * i387-tdep.c (i387_register_to_value): Use register_size
+       instead of TYPE_LENGTH.
+       * m68k-tdep.c (m68k_register_to_value): Likewise.
+
+2017-05-24  Yao Qi  <yao.qi@linaro.org>
+
+       * i387-tdep.c (i387_convert_register_p): Return false if type
+       code isn't TYPE_CODE_FLT.
+
+2017-05-24  Yao Qi  <yao.qi@linaro.org>
+
+       * alpha-tdep.c (alpha_convert_register_p): Return true if type
+       length is 4.
+       (alpha_register_to_value): Remove type length check.
+       (alpha_value_to_register): Likewise.
+
+2017-05-24  Yao Qi  <yao.qi@linaro.org>
+
+       * ia64-tdep.c (ia64_convert_register_p): Check type's code is
+       TYPE_CODE_FLT.
+
+2017-05-24  Yao Qi  <yao.qi@linaro.org>
+
+       * m68k-tdep.c (m68k_convert_register_p): Check type's code is
+       TYPE_CODE_FLT or not.
+
+2017-05-24  Yao Qi  <yao.qi@linaro.org>
+
+       * alpha-tdep.c (alpha_gdbarch_init): Use XCNEW instead of XNEW.
+       * avr-tdep.c (avr_gdbarch_init): Likewise.
+       * bfin-tdep.c (bfin_gdbarch_init): Likewise.
+       * cris-tdep.c (cris_gdbarch_init): Likewise.
+       * ft32-tdep.c (ft32_gdbarch_init): Likewise.
+       * lm32-tdep.c (lm32_gdbarch_init): Likewise.
+       * m32r-tdep.c (m32r_gdbarch_init): Likewise.
+       * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
+       * mep-tdep.c (mep_gdbarch_init): Likewise.
+       * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
+       * mips-tdep.c (mips_gdbarch_init): Likewise.
+       * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
+       * moxie-tdep.c (moxie_gdbarch_init): Likewise.
+       * msp430-tdep.c (msp430_gdbarch_init): Likewise.
+       * sh64-tdep.c (sh64_gdbarch_init): Likewise.
+       * v850-tdep.c (v850_gdbarch_init): Likewise.
+
+2017-05-24  Yao Qi  <yao.qi@linaro.org>
+
+       * selftest-arch.c (tests_with_arch): Call registers_changed
+       and reinit_frame_cache.
+       * selftest.c (run_self_tests): Likewise.
+
 2017-05-24  Yao Qi  <yao.qi@linaro.org>
 
        * rs6000-tdep.c (gdb_print_insn_powerpc): Remove.