OSDN Git Service

2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
authorjjohnstn <jjohnstn>
Wed, 8 Oct 2003 20:05:55 +0000 (20:05 +0000)
committerjjohnstn <jjohnstn>
Wed, 8 Oct 2003 20:05:55 +0000 (20:05 +0000)
        * 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.

gdb/ChangeLog
gdb/lin-lwp.c

index 1235d89..112512b 100644 (file)
@@ -1,3 +1,10 @@
+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.
+
 2003-10-08  Kei Sakamoto  <sakamoto.kei@renesas.com>
 
        * m32r-tdep.c : Include "dis-asm.h".
index fbf9a09..df91aa7 100644 (file)
@@ -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;
 }