diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2003-10-08 20:05:56 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2003-10-08 20:05:56 +0000 |
commit | e6653b19d429ef71e8f8d1ebc2e9a02cd6706016 (patch) | |
tree | 89a32fd56eba84495a58a67dd056b8b065be9d30 /gdb/lin-lwp.c | |
parent | e323e5501b75dd9deb176dd93261cbccf602242b (diff) | |
download | gdb-e6653b19d429ef71e8f8d1ebc2e9a02cd6706016.tar.gz |
2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
* lin-lwp.c (stop_and_resume_callback): Set the resumed flag
for any lwp we resume.
(running_callback): Add lwps that have pending status events
against them to be considered running.
Diffstat (limited to 'gdb/lin-lwp.c')
-rw-r--r-- | gdb/lin-lwp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/lin-lwp.c b/gdb/lin-lwp.c index fbf9a09f675..df91aa76963 100644 --- a/gdb/lin-lwp.c +++ b/gdb/lin-lwp.c @@ -930,7 +930,7 @@ status_callback (struct lwp_info *lp, void *data) static int running_callback (struct lwp_info *lp, void *data) { - return (lp->stopped == 0); + return (lp->stopped == 0 || (lp->status != 0 && lp->resumed)); } /* Count the LWP's that have had events. */ @@ -1183,7 +1183,10 @@ stop_and_resume_callback (struct lwp_info *lp, void *data) /* Resume if the lwp still exists. */ for (ptr = lwp_list; ptr; ptr = ptr->next) if (lp == ptr) - resume_callback (lp, NULL); + { + resume_callback (lp, NULL); + resume_set_callback (lp, NULL); + } } return 0; } |