summaryrefslogtreecommitdiff
path: root/gdb/lin-lwp.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2001-03-30 19:45:19 +0000
committerMark Kettenis <kettenis@gnu.org>2001-03-30 19:45:19 +0000
commit4429314ff5e8c1f38a48f3cb1d8a1da93b8393d0 (patch)
treea9cc4b59b7671699549c8a30f2c2763326c8050b /gdb/lin-lwp.c
parent6b9aa0c1adaefdd9a212b2982da55c3f2b2a4111 (diff)
downloadgdb-4429314ff5e8c1f38a48f3cb1d8a1da93b8393d0.tar.gz
* lin-lwp.c (lin_lwp_resume): Don't mark LWP as not stopped until
we're absolutely sure we're going to resume it.
Diffstat (limited to 'gdb/lin-lwp.c')
-rw-r--r--gdb/lin-lwp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/lin-lwp.c b/gdb/lin-lwp.c
index c2a654ea521..42e98de701d 100644
--- a/gdb/lin-lwp.c
+++ b/gdb/lin-lwp.c
@@ -439,10 +439,6 @@ lin_lwp_resume (int pid, int step, enum target_signal signo)
{
pid = GET_LWP (lp->pid);
- /* Mark LWP as not stopped to prevent it from being continued by
- resume_callback. */
- lp->stopped = 0;
-
/* Remember if we're stepping. */
lp->step = step;
@@ -455,6 +451,10 @@ lin_lwp_resume (int pid, int step, enum target_signal signo)
gdb_assert (signo == TARGET_SIGNAL_0);
return;
}
+
+ /* Mark LWP as not stopped to prevent it from being continued by
+ resume_callback. */
+ lp->stopped = 0;
}
if (resume_all)