summaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorJason Molenda <jsm@bugshack.cygnus.com>2000-02-05 07:30:26 +0000
committerJason Molenda <jsm@bugshack.cygnus.com>2000-02-05 07:30:26 +0000
commitb7ebfe07f32e9873605d6ff420e63f1c9b627559 (patch)
treedd19e577ac6d8d46f92d0bbe9af1626df8aece50 /gdb/infrun.c
parent1b6027a5b62e0290ef2ca2e514f98a904e8c01d0 (diff)
downloadgdb-b7ebfe07f32e9873605d6ff420e63f1c9b627559.tar.gz
import gdb-2000-02-04 snapshot
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 57ab57607c3..9a8ee54e860 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -861,6 +861,8 @@ resume (int step, enum target_signal sig)
if (should_resume)
{
+ int resume_pid;
+
if (use_thread_step_needed && thread_step_needed)
{
/* We stopped on a BPT instruction;
@@ -872,7 +874,7 @@ resume (int step, enum target_signal sig)
{
/* Breakpoint deleted: ok to do regular resume
where all the threads either step or continue. */
- target_resume (-1, step, sig);
+ resume_pid = -1;
}
else
{
@@ -884,20 +886,19 @@ resume (int step, enum target_signal sig)
trap_expected = 1;
step = 1;
}
-
- target_resume (inferior_pid, step, sig);
+ resume_pid = inferior_pid;
}
}
else
{
/* Vanilla resume. */
-
if ((scheduler_mode == schedlock_on) ||
(scheduler_mode == schedlock_step && step != 0))
- target_resume (inferior_pid, step, sig);
+ resume_pid = inferior_pid;
else
- target_resume (-1, step, sig);
+ resume_pid = -1;
}
+ target_resume (resume_pid, step, sig);
}
discard_cleanups (old_cleanups);