From 5b917078efad9cd06e04a35da481ae0e6e085350 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Mon, 22 Mar 2004 20:18:33 +0000 Subject: [PATCH] * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to linux_handle_extended_wait. --- gdb/ChangeLog | 5 +++++ gdb/lin-lwp.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 36c8b442e87..57c7a923c26 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2004-03-22 Daniel Jacobowitz + + * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to + linux_handle_extended_wait. + 2004-03-22 Andrew Cagney * rs6000-tdep.c (frame_initial_stack_address): Delete unused 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; } -- 2.30.2