From: Thiago Jung Bauermann Date: Thu, 25 Sep 2008 14:13:44 +0000 (+0000) Subject: 2008-09-25 Sérgio Durigan Júnior X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8b8655b3f74e720096915d67b226087097847473;p=binutils-gdb.git 2008-09-25 Sérgio Durigan Júnior * linux-nat.c (get_pending_status): Fix argument to WIFSTOPPED. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f2428b659c3..88208d7217f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2008-09-25 Sérgio Durigan Júnior + + * linux-nat.c (get_pending_status): Fix argument to WIFSTOPPED. + 2008-09-24 Vladimir Prus * remote-sim.c (gdbsim_create_inferior): Fix missing parenthesis. diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 5ff4bceadd1..a0dc634ff83 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. */