From 32400bebb23653900ef060aae37668a2a1961155 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Mon, 8 Sep 2008 21:48:52 +0000 Subject: * gdbthread.h (struct thread_info): Add comments around proceed_to_finish. (save_infrun_state, load_infrun_state): Remove proceed_to_finish argument. * thread.c (load_infrun_state, save_infrun_state): Delete proceed_to_finish argument and references to it. * infcall.c (call_function_by_hand): Adjust. * infcmd.c (finish_command): Adjust. * infrun.c (proceed_to_finish): Delete. (clear_proceed_status): Adjust. (context_switch): Don't context-switch proceed_to_finish. (normal_stop, save_inferior_status, restore_inferior_status): Adjust. --- gdb/gdbthread.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gdb/gdbthread.h') diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h index 82f1258..ca74976 100644 --- a/gdb/gdbthread.h +++ b/gdb/gdbthread.h @@ -140,7 +140,11 @@ struct thread_info /* Per-thread command support. */ struct continuation *continuations; struct continuation *intermediate_continuations; + + /* Nonzero if the thread is being proceeded for a "finish" command + or a similar situation when stop_registers should be saved. */ int proceed_to_finish; + enum step_over_calls_kind step_over_calls; int stop_step; int step_multi; @@ -219,7 +223,6 @@ extern int thread_count (void); extern void save_infrun_state (ptid_t ptid, struct continuation *continuations, struct continuation *intermediate_continuations, - int proceed_to_finish, int stop_step, int step_multi, enum target_signal stop_signal); @@ -229,7 +232,6 @@ extern void save_infrun_state (ptid_t ptid, extern void load_infrun_state (ptid_t ptid, struct continuation **continuations, struct continuation **intermediate_continuations, - int *proceed_to_finish, int *stop_step, int *step_multi, enum target_signal *stop_signal); -- cgit v1.1