diff options
author | Mark Kettenis <kettenis@gnu.org> | 2001-07-13 12:49:31 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2001-07-13 12:49:31 +0000 |
commit | d86dcfc8220447bd2aeb2cf46f77e8cd266f9010 (patch) | |
tree | 2e3d503aafa0b8d590e7f4936a4a8ce799821c76 /gdb/lin-lwp.c | |
parent | de27b1fef4b68e713dabb9b345a8a1f4804be462 (diff) | |
download | gdb-d86dcfc8220447bd2aeb2cf46f77e8cd266f9010.tar.gz |
* lin-lwp.c (lin_lwp_wait): Avoid check for resumed LWPs if there
are no registered LWPs yet.
Diffstat (limited to 'gdb/lin-lwp.c')
-rw-r--r-- | gdb/lin-lwp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/lin-lwp.c b/gdb/lin-lwp.c index 61228a0385d..385b235f37e 100644 --- a/gdb/lin-lwp.c +++ b/gdb/lin-lwp.c @@ -908,8 +908,9 @@ lin_lwp_wait (ptid_t ptid, struct target_waitstatus *ourstatus) retry: - /* Make sure there is at least one thread that has been resumed. */ - gdb_assert (iterate_over_lwps (resumed_callback, NULL)); + /* Make sure there is at least one LWP that has been resumed, at + least if there are any LWPs at all. */ + gdb_assert (num_lwps == 0 || iterate_over_lwps (resumed_callback, NULL)); /* First check if there is a LWP with a wait status pending. */ if (pid == -1) |