diff options
author | Mark Kettenis <kettenis@gnu.org> | 2001-03-30 19:45:19 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2001-03-30 19:45:19 +0000 |
commit | 40564acad470c2f68f66f85c5969839a30a0b66f (patch) | |
tree | 70b3e9c508bd51b12eeed1bce40e36b5b3264dbd /gdb | |
parent | 95a856212b2220f94f87145e5f0bc1c64ecb79dd (diff) | |
download | gdb-40564acad470c2f68f66f85c5969839a30a0b66f.zip gdb-40564acad470c2f68f66f85c5969839a30a0b66f.tar.gz gdb-40564acad470c2f68f66f85c5969839a30a0b66f.tar.bz2 |
* 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')
-rw-r--r-- | gdb/ChangeLog | 3 | ||||
-rw-r--r-- | gdb/lin-lwp.c | 8 |
2 files changed, 7 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 41a4daa..0489c98 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 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 a thread creation event for a thread that's already in the thread list, since that may legitemately happen. Instead only call diff --git a/gdb/lin-lwp.c b/gdb/lin-lwp.c index c2a654e..42e98de 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) |