From af679fd00340269efb8474ee49a343dccaea9700 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Mon, 8 Sep 2008 21:52:25 +0000 Subject: Remove the global step_multi in favour of a per-thread step_multi. * inferior.h (step_multi): Delete. * gdbthread.h (struct thread_info): Add comments around step_multi. (save_infrun_state, load_infrun_state): Remove step_multi parameter. * thread.c (load_infrun_state, save_infrun_state): Remove step_multi argument, and references to it. * infcmd.c (step_multi): Delete. (step_1): Adjust. (step_1_continuation, until_next_command): Adjust. * infrun.c (fetch_inferior_event): Adjust. (context_switch): Don't context-switch step_multi. (print_stop_reason, normal_stop): Adjust. --- gdb/gdbthread.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'gdb/gdbthread.h') diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h index 3082abf..11581e9 100644 --- a/gdb/gdbthread.h +++ b/gdb/gdbthread.h @@ -147,6 +147,9 @@ struct thread_info enum step_over_calls_kind step_over_calls; int stop_step; + + /* If stepping, nonzero means step count is > 1 so don't print frame + next time inferior stops if it stops due to stepping. */ int step_multi; /* Last signal that the inferior received (why it stopped). */ @@ -224,16 +227,14 @@ extern int thread_count (void); extern void save_infrun_state (ptid_t ptid, struct continuation *continuations, struct continuation *intermediate_continuations, - int stop_step, - int step_multi); + int stop_step); /* infrun context switch: load the debugger state previously saved for the given thread. */ extern void load_infrun_state (ptid_t ptid, struct continuation **continuations, struct continuation **intermediate_continuations, - int *stop_step, - int *step_multi); + int *stop_step); /* Switch from one thread to another. */ extern void switch_to_thread (ptid_t ptid); -- cgit v1.1