From 8b8655b3f74e720096915d67b226087097847473 Mon Sep 17 00:00:00 2001 From: Thiago Jung Bauermann Date: Thu, 25 Sep 2008 14:13:44 +0000 Subject: =?UTF-8?q?2008-09-25=20=20S=C3=A9rgio=20Durigan=20J=C3=BAnior=20?= =?UTF-8?q?=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * linux-nat.c (get_pending_status): Fix argument to WIFSTOPPED. --- gdb/linux-nat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/linux-nat.c') diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 5ff4bce..a0dc634 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -1450,8 +1450,8 @@ get_pending_status (struct lwp_info *lp, int *status) queue. */ if (queued_waitpid (GET_LWP (lp->ptid), status, __WALL) != -1) { - if (WIFSTOPPED (status)) - signo = target_signal_from_host (WSTOPSIG (status)); + if (WIFSTOPPED (*status)) + signo = target_signal_from_host (WSTOPSIG (*status)); /* If not stopped, then the lwp is gone, no use in resending a signal. */ -- cgit v1.1