summaryrefslogtreecommitdiff
path: root/gdb/lin-lwp.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2004-03-22 20:18:33 +0000
committerDaniel Jacobowitz <dan@debian.org>2004-03-22 20:18:33 +0000
commitf5cbfca3926be543ada929a03480193553e0ca7e (patch)
tree749565f373fcb47a5ce45436d33b0f13a7c2988f /gdb/lin-lwp.c
parent0b5dc1c6cd4e686292ee1814b3c94af14b0981c5 (diff)
downloadgdb-f5cbfca3926be543ada929a03480193553e0ca7e.tar.gz
* lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
linux_handle_extended_wait.
Diffstat (limited to 'gdb/lin-lwp.c')
-rw-r--r--gdb/lin-lwp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/lin-lwp.c b/gdb/lin-lwp.c
index df91aa76963..0d8d1ff6a01 100644
--- a/gdb/lin-lwp.c
+++ b/gdb/lin-lwp.c
@@ -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;
}