mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
* lin-lwp.c (lin_lwp_resume): Don't mark LWP as not stopped until
we're absolutely sure we're going to resume it.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user