* lin-lwp.c (lin_lwp_wait): Avoid check for resumed LWPs if there
are no registered LWPs yet.
This commit is contained in:
parent
95500e1ca4
commit
9a973a8fb2
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2001-07-13 Mark Kettenis <kettenis@gnu.org>
|
||||
|
||||
* lin-lwp.c (lin_lwp_wait): Avoid check for resumed LWPs if there
|
||||
are no registered LWPs yet.
|
||||
|
||||
2001-07-12 Daniel Jacobowitz <drow@mvista.com>
|
||||
|
||||
* config/i386/nm-linux.h (CANNOT_FETCH_REGISTER): Call the right
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue