target: add to_record_will_replay target method
[binutils-gdb.git] / gdb / ChangeLog
index 81ba49222ad1d916164fdf4c38946f9d58eacfee..a2bd84340498dc4d98be7b67af8884db8220f204 100644 (file)
@@ -1,3 +1,397 @@
+2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * record-btrace.c ((record_btrace_will_replay): New.
+       (init_record_btrace_ops): Initialize to_record_will_replay.
+       * record-full.c ((record_full_will_replay): New.
+       (init_record_full_ops): Initialize to_record_will_replay.
+       * target-delegates.c: Regenerated.
+       * target.c (target_record_will_replay): New.
+       * target.h (struct target_ops) <to_record_will_replay>: New.
+       (target_record_will_replay): New.
+
+2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * record-btrace.c (record_btrace_resume): Call
+       target_record_stop_replaying.
+       (record_btrace_stop_replaying_all): New.
+       (init_record_btrace_ops): Initialize to_record_stop_replaying.
+       * record-full.c (record_full_stop_replaying): New.
+       (init_record_full_ops ): Initialize to_record_stop_replaying.
+       * target-delegates.c: Regenerated.
+       * target.c (target_record_stop_replaying): New.
+       * target.h (struct target_ops) <to_record_stop_replaying>: New.
+       (target_record_stop_replaying): New.
+
+2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * record-btrace.c (record_btrace_xfer_partial)
+       (record_btrace_store_registers, record_btrace_prepare_to_store):
+       Call record_btrace_is_replaying with inferior_ptid instead of
+       minus_one_ptid.
+       (record_btrace_store_registers): Change error message.
+
+2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
+       Update users to pass minus_one_ptid.
+       * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
+       * record.c (cmd_record_delete): Pass inferior_ptid to
+       target_record_is_replaying.
+       * target-delegates.c: Regenerated.
+       * target.c (target_record_is_replaying): Add ptid argument.
+       * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
+       argument.
+       (target_record_is_replaying): Add ptid argument.
+
+2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * record-btrace.c (record_btrace_open): Remove non_stop check.
+       * NEWS: Announce that record btrace supports non-stop mode.
+
+2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * infrun.c (handle_inferior_event_1): Switch to the eventing thread
+       in the TARKET_WAITKIND_NO_HISTORY case.
+
+2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * record-btrace.c (record_btrace_maybe_mark_async_event): New.
+       (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
+
+2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * record-btrace.c (get_thread_current_frame): New.
+       (record_btrace_start_replaying): Call get_thread_current_frame.
+
+2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * record-btrace.c (record_btrace_resume_thread): A move request
+       overwrites a previous move request.
+       (record_btrace_find_resume_thread): Removed.
+       (record_btrace_resume): Resume all requested threads.
+
+2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * record-btrace.c: Include vec.h.
+       (record_btrace_find_thread_to_move): Removed.
+       (btrace_step_no_resumed, btrace_step_again)
+       (record_btrace_stop_replaying_at_end): New.
+       (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
+       (record_btrace_single_step_forward): Remove calls to
+       record_btrace_stop_replaying.
+       (record_btrace_step_thread): Do only one step for BTHR_CONT and
+       BTHR_RCONT.  Keep threads at the end of their history moving.
+       (record_btrace_wait): Call record_btrace_step_thread for all threads
+       until one reports an event.  Call record_btrace_stop_replaying_at_end
+       for the eventing thread.
+
+2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * record-btrace.c (record_btrace_single_step_forward): Return
+       NO_HISTORY if a step brings us to the end of the execution history.
+
+2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * record-btrace.c (record_btrace_step_thread): Move breakpoint check
+       to ...
+       (record_btrace_single_step_forward): ... here and
+       (record_btrace_single_step_backward): ... here.
+
+2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * record-btrace.c (btrace_step_spurious)
+       (record_btrace_single_step_forward)
+       (record_btrace_single_step_backward): New.
+       (record_btrace_step_thread): Call record_btrace_single_step_forward
+       and record_btrace_single_step_backward.
+
+2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * record-btrace.c (record_btrace_replay_at_breakpoint): New.
+       (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
+
+2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * record-btrace.c (btrace_thread_flag_to_str)
+       (record_btrace_cancel_resume): New.
+       (record_btrace_step_thread): Call btrace_thread_flag_to_str.
+       (record_btrace_resume): Print execution direction.
+       (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
+       (record_btrace_wait): Call record_btrace_cancel_resume.
+
+2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
+       * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
+       (record_btrace_find_thread_to_move): Also accept threads that have
+       BTHR_STOP set.
+       (btrace_step_stopped_on_request, record_btrace_stop): New.
+       (record_btrace_step_thread): Support BTHR_STOP.
+       (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
+       (init_record_btrace_ops): Initialize to_stop.
+
+2015-09-18  Markus Metzger  <markus.t.metzger@intel.com>
+
+       * record-btrace.c (record_btrace_wait): Replace non_stop check with
+       target_is_non_stop_p ().
+
+2015-09-15  Pierre-Marie de Rodat  <derodat@adacore.com>
+
+       * ada-typeprint.c (print_array_type): Do not describe arrays as
+       packed when they embed dynamic elements.
+
+2015-09-15  Philippe Waroquiers  <philippe.waroquiers@skynet.be>
+
+       * symtab.h (address_class): Document that TLS variables
+       are handled by LOC_UNRESOLVED.
+       * findvar.c (default_read_var_value): Don't relocate TLS variables.
+       * printcmd.c (address_info): Don't relocate TLS variables.
+
+2015-09-15  Pierre Langlois  <pierre.langlois@arm.com>
+
+       * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
+       (decode_adrp): Likewise.
+       (decode_b): Likewise.
+       (decode_bcond): Likewise.
+       (decode_br): Likewise.
+       (decode_cb): Likewise.
+       (decode_eret): Likewise.
+       (decode_movz): Likewise.
+       (decode_orr_shifted_register_x): Likewise.
+       (decode_ret): Likewise.
+       (decode_stp_offset): Likewise.
+       (decode_stp_offset_wb): Likewise.
+       (decode_stur): Likewise.
+       (decode_tb): Likewise.
+       (aarch64_analyze_prologue): Likewise.
+       (pass_in_x): Likewise.
+       (pass_in_v): Likewise.
+       (pass_on_stack): Likewise.
+       (aarch64_push_dummy_call): Likewise.
+       (aarch64_extract_return_value): Likewise.
+       (aarch64_store_return_value): Likewise.
+       (aarch64_return_value): Likewise.
+       (aarch64_record_asimd_load_store): Likewise.
+       (aarch64_record_load_store): Likewise.
+       (aarch64_record_data_proc_simd_fp): Likewise.
+
+2015-09-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
+       * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
+       (ppc64_skip_trampoline_code_1): ... here.
+       (ppc64_skip_trampoline_code): New wrapper function.
+       * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
+
+2015-09-15  Yao Qi  <yao.qi@linaro.org>
+
+       * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
+       function.
+       (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
+       * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
+       if target_can_do_single_step returns 1.
+       * remote.c (struct vCont_action_support) <s, S>: New fields.
+       (PACKET_vContSupported): New enum.
+       (remote_protocol_features): New element for vContSupported.
+       (remote_query_supported): Append "vContSupported+".
+       (remote_vcont_probe): Remove support_s and support_S, use
+       rs->supports_vCont.s and rs->supports_vCont.S instead.  Disable
+       vCont packet if c and C actions are not supported.
+       (remote_can_do_single_step): New function.
+       (init_remote_ops): Install it to to_can_do_single_step.
+       (_initialize_remote): Call add_packet_config_cmd.
+       * target.h (struct target_ops) <to_can_do_single_step>: New field.
+       (target_can_do_single_step): New macro.
+       * target-delegates.c: Re-generated.
+
+2015-09-15  Yao Qi  <yao.qi@linaro.org>
+
+       * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
+       (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
+       * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
+       New function.
+       (aarch64_siginfo_from_compat_siginfo): New function.
+       * nat/aarch64-linux.h: Include signal.h.
+       (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
+       (compat_timer_t, compat_clock_t): Likewise.
+       (struct compat_timeval): New.
+       (union compat_sigval): New.
+       (struct compat_siginfo): New.
+       (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
+       (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
+       (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
+       (cpt_si_band, cpt_si_fd): Likewise.
+
+2015-09-14  Pedro Alves  <palves@redhat.com>
+
+       * infrun.c (current_stop_id): New global.
+       (get_stop_id, new_stop_id): New functions.
+       (fetch_inferior_event): Handle normal_stop proceeding the target.
+       (struct stop_context): New.
+       (save_stop_context, release_stop_context_cleanup)
+       (stop_context_changed): New functions.
+       (normal_stop): Return true if the hook-stop changes the stop
+       context.
+       * infrun.h (get_stop_id): Declare.
+       (normal_stop): Now returns int.  Add documentation.
+
+2015-09-14  Pierre-Marie de Rodat  <derodat@adacore.com>
+
+       * ada-lang.c (ada_value_ptr_subscript): Update the heading
+       comment.  Handle packed arrays.
+
+2015-09-14  Pedro Alves  <palves@redhat.com>
+
+       * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
+       mention of maint set/show target-non-stop.
+
+2015-09-11  Don Breazeal  <donb@codesourcery.com>
+
+       * NEWS: Announce new remote packets for the exec-events
+       feature and the exec-events feature and associated commands.
+
+2015-09-11  Don Breazeal  <donb@codesourcery.com>
+
+       * remote.c (remote_exec_event_p): New function.
+       (remote_insert_exec_catchpoint): New function.
+       (remote_remove_exec_catchpoint): New function.
+       (init_extended_remote_ops): Initialize extended_remote_ops
+       members to_insert_exec_catchpoint and
+       to_remove_exec_catchpoint.
+
+2015-09-11  Don Breazeal  <donb@codesourcery.com>
+           Luis Machado  <lgustavo@codesourcery.com>
+
+       * infrun.c (follow_exec): Use process-style ptid for
+       exec message.  Call add_inferior_with_spaces and
+       target_follow_exec.
+       * nat/linux-ptrace.c (linux_supports_traceexec): New function.
+       * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
+       * remote.c (remote_pspace_data): New static variable.
+       (remote_pspace_data_cleanup): New function.
+       (get_remote_exec_file): New function.
+       (set_remote_exec_file_1): New function.
+       (set_remote_exec_file): New function.
+       (show_remote_exec_file): New function.
+       (remote_exec_file): Delete static variable.
+       (anonymous enum) <PACKET_exec_event_feature>: New
+       enumeration constant.
+       (remote_protocol_features): Add entry for exec-events feature.
+       (remote_query_supported): Add client side of qSupported query
+       for exec-events feature.
+       (remote_follow_exec): New function.
+       (remote_parse_stop_reply): Handle 'exec' stop reason.
+       (extended_remote_run, extended_remote_create_inferior): Call
+       get_remote_exec_file and set_remote_exec_file_1.
+       (init_extended_remote_ops) <to_follow_exec>: Initialize new
+       member.
+       (_initialize_remote): Call
+       register_program_space_data_with_cleanup.  Call
+       add_packet_config_cmd for remote exec-events feature.
+       Modify call to add_setshow_string_noescape_cmd for exec-file
+       to use new functions set_remote_exec_file and
+       show_remote_exec_file.
+       * target-debug.h, target-delegates.c: Regenerated.
+       * target.c (target_follow_exec): New function.
+       * target.h (struct target_ops) <to_follow_exec>: New member.
+       (target_follow_exec): Declare new function.
+
+2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
+
+       * aarch64-tdep.c (decode_cb): Move up comment describing the
+       encoding.
+       (decode_tb): Fix a typo in comment above the function.  Move up
+       comment describing the encoding.
+
+2015-09-11  Pierre Langlois  <pierre.langlois@arm.com>
+
+       * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
+
+2015-09-11  Mihail-Marian Nistor  <mihail.nistor@freescale.com>
+
+       PR gdb/18947
+       * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
+       glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
+
+2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * ada-lang.c (scan_discrim_bound): Factor out arithmetic
+       operations.
+
+2015-09-10  Simon Marchi  <simon.marchi@ericsson.com>
+
+       * ada-lang.c (ada_search_struct_field): Constify parameters
+       and/or variables..
+       (xget_renaming_scope): Likewise.
+       (ada_is_redundant_range_encoding): Likewise.
+       (scan_discrim_bound): Likewise.
+       (to_fixed_range_type): Likewise.
+
+2015-09-10  Yao Qi  <yao.qi@linaro.org>
+
+       * breakpoint.c (download_tracepoint_locations): New local
+       can_download_tracepoint.  Check the result of
+       target_can_download_tracepoint and save it in
+       can_download_tracepoint if there are tracepoints to download.
+       * linux-nat.h (enum tribool): Move it to ...
+       * common/common-types.h: ... here.
+
+2015-09-09  Pedro Alves  <palves@redhat.com>
+
+       * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
+       * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
+
+2015-09-09  Pedro Alves  <palves@redhat.com>
+
+       * continuations.c (add_continuation, restore_thread_cleanup)
+       (do_all_continuations_ptid, do_all_continuations_thread_callback)
+       (do_all_continuations_thread, do_all_continuations)
+       (discard_all_continuations_thread_callback)
+       (discard_all_continuations_thread, discard_all_continuations)
+       (add_intermediate_continuation)
+       (do_all_intermediate_continuations_thread_callback)
+       (do_all_intermediate_continuations_thread)
+       (do_all_intermediate_continuations)
+       (discard_all_intermediate_continuations_thread_callback)
+       (discard_all_intermediate_continuations_thread)
+       (discard_all_intermediate_continuations): Delete.
+       * continuations.h (add_continuation, do_all_continuations)
+       (do_all_continuations_thread, discard_all_continuations)
+       (discard_all_continuations_thread, add_intermediate_continuation)
+       (do_all_intermediate_continuations)
+       (do_all_intermediate_continuations_thread)
+       (discard_all_intermediate_continuations)
+       (discard_all_intermediate_continuations_thread): Delete
+       declarations.
+       * event-top.c (stdin_event_handler): Delete references to
+       continuations.
+       * gdbthread.h (struct thread_info): Delete continuations and
+       intermediate_continuations fields.
+       * inf-loop.c (inferior_event_handler): Remove references to
+       continuations.
+       * infrun.c (infrun_thread_stop_requested_callback): Remove
+       references to continuations.
+       * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
+       * thread.c: Don't include "continuations.h".
+       (clear_thread_inferior_resources): Remove references to
+       continuations.
+
+2015-09-09  Pedro Alves  <palves@redhat.com>
+
+       * infcall.c (struct dummy_frame_context_saver): Delete.
+       (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
+       (dummy_frame_context_saver_drop)
+       (dummy_frame_context_saver_cleanup)
+       (dummy_frame_context_saver_get_regs)
+       (dummy_frame_context_saver_setup): Delete.
+       * infcall.h (dummy_frame_context_saver_drop)
+       (dummy_frame_context_saver_cleanup)
+       (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
+       Delete.
+       (get_return_value): Remove 'ctx_saver' paremeter.  Adjust.
+       * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
+       * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
+
 2015-09-09  Pedro Alves  <palves@redhat.com>
 
        * breakpoint.c: Include "thread-fsm.h".