* lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
authorDaniel Jacobowitz <drow@false.org>
Mon, 22 Mar 2004 20:18:33 +0000 (20:18 +0000)
committerDaniel Jacobowitz <drow@false.org>
Mon, 22 Mar 2004 20:18:33 +0000 (20:18 +0000)
linux_handle_extended_wait.

gdb/ChangeLog
gdb/lin-lwp.c

index 36c8b44..57c7a92 100644 (file)
@@ -1,3 +1,8 @@
+2004-03-22  Daniel Jacobowitz  <drow@mvista.com>
+
+       * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
+       linux_handle_extended_wait.
+
 2004-03-22  Andrew Cagney  <cagney@redhat.com>
 
        * rs6000-tdep.c (frame_initial_stack_address): Delete unused
index df91aa7..0d8d1ff 100644 (file)
@@ -1591,8 +1591,7 @@ retry:
   /* Handle GNU/Linux's extended waitstatus for trace events.  */
   if (WIFSTOPPED (status) && WSTOPSIG (status) == SIGTRAP && status >> 16 != 0)
     {
-      linux_handle_extended_wait (ptid_get_pid (trap_ptid),
-                                 status, ourstatus);
+      linux_handle_extended_wait (GET_LWP (lp->ptid), status, ourstatus);
       return trap_ptid;
     }