aboutsummaryrefslogtreecommitdiff
path: root/gdb/thread.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2008-09-08 21:55:16 +0000
committerPedro Alves <palves@redhat.com>2008-09-08 21:55:16 +0000
commit414c69f7a7e241fd4a4cb85535d864d48ddbee1f (patch)
tree5ba98c354ad39cfaee0db4d17b53296db378b5ec /gdb/thread.c
parentaf679fd00340269efb8474ee49a343dccaea9700 (diff)
downloadgdb-414c69f7a7e241fd4a4cb85535d864d48ddbee1f.zip
gdb-414c69f7a7e241fd4a4cb85535d864d48ddbee1f.tar.gz
gdb-414c69f7a7e241fd4a4cb85535d864d48ddbee1f.tar.bz2
Remove the global stop_step in favour of a per-thread
stop_step. * inferior.h (stop_step): Delete. * gdbthread.h (struct thread_info): Add comments to stop_step. (save_infrun_state, load_infrun_state): Remove stop_step argument. * thread.c (load_infrun_state, save_infrun_state): Remove stop_step argument, and references to it. * infrun.c (clear_proceed_status): Clear stop_step. (fetch_inferior_event): Adjust. (context_switch): Don't context-switch stop_step. (handle_inferior_event): Adjust. (normal_stop): Adjust. (save_inferior_status, restore_inferior_status): Adjust. * infcmd.c (stop_step): Delete. (step_1, step_1_continuation, step_once, until_next_command): Adjust.
Diffstat (limited to 'gdb/thread.c')
-rw-r--r--gdb/thread.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gdb/thread.c b/gdb/thread.c
index a3d85f8..39b353e 100644
--- a/gdb/thread.c
+++ b/gdb/thread.c
@@ -444,8 +444,7 @@ gdb_list_thread_ids (struct ui_out *uiout, char **error_message)
void
load_infrun_state (ptid_t ptid,
struct continuation **continuations,
- struct continuation **intermediate_continuations,
- int *stop_step)
+ struct continuation **intermediate_continuations)
{
struct thread_info *tp;
@@ -463,7 +462,6 @@ load_infrun_state (ptid_t ptid,
tp->continuations = NULL;
*intermediate_continuations = tp->intermediate_continuations;
tp->intermediate_continuations = NULL;
- *stop_step = tp->stop_step;
}
}
@@ -472,8 +470,7 @@ load_infrun_state (ptid_t ptid,
void
save_infrun_state (ptid_t ptid,
struct continuation *continuations,
- struct continuation *intermediate_continuations,
- int stop_step)
+ struct continuation *intermediate_continuations)
{
struct thread_info *tp;
@@ -489,7 +486,6 @@ save_infrun_state (ptid_t ptid,
{
tp->continuations = continuations;
tp->intermediate_continuations = intermediate_continuations;
- tp->stop_step = stop_step;
}
}