* 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:
parent
95a856212b
commit
40564acad4
2 changed files with 7 additions and 4 deletions
|
@ -1,5 +1,8 @@
|
||||||
2001-03-30 Mark Kettenis <kettenis@gnu.org>
|
2001-03-30 Mark Kettenis <kettenis@gnu.org>
|
||||||
|
|
||||||
|
* lin-lwp.c (lin_lwp_resume): Don't mark LWP as not stopped until
|
||||||
|
we're absolutely sure we're going to resume it.
|
||||||
|
|
||||||
* thread-db.c (check_event): Don't report an error if we encounter
|
* thread-db.c (check_event): Don't report an error if we encounter
|
||||||
a thread creation event for a thread that's already in the thread
|
a thread creation event for a thread that's already in the thread
|
||||||
list, since that may legitemately happen. Instead only call
|
list, since that may legitemately happen. Instead only call
|
||||||
|
|
|
@ -439,10 +439,6 @@ lin_lwp_resume (int pid, int step, enum target_signal signo)
|
||||||
{
|
{
|
||||||
pid = GET_LWP (lp->pid);
|
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. */
|
/* Remember if we're stepping. */
|
||||||
lp->step = step;
|
lp->step = step;
|
||||||
|
|
||||||
|
@ -455,6 +451,10 @@ lin_lwp_resume (int pid, int step, enum target_signal signo)
|
||||||
gdb_assert (signo == TARGET_SIGNAL_0);
|
gdb_assert (signo == TARGET_SIGNAL_0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Mark LWP as not stopped to prevent it from being continued by
|
||||||
|
resume_callback. */
|
||||||
|
lp->stopped = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (resume_all)
|
if (resume_all)
|
||||||
|
|
Loading…
Add table
Reference in a new issue