aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-nat.c
diff options
context:
space:
mode:
authorThiago Jung Bauermann <bauerman@br.ibm.com>2008-09-25 14:13:44 +0000
committerThiago Jung Bauermann <bauerman@br.ibm.com>2008-09-25 14:13:44 +0000
commit8b8655b3f74e720096915d67b226087097847473 (patch)
tree51a56ed057dfda96d0b758b749aa8d9ba97f500f /gdb/linux-nat.c
parent68db4c759fdbf32ab365624b5c794d2152ad83da (diff)
downloadgdb-8b8655b3f74e720096915d67b226087097847473.zip
gdb-8b8655b3f74e720096915d67b226087097847473.tar.gz
gdb-8b8655b3f74e720096915d67b226087097847473.tar.bz2
2008-09-25 Sérgio Durigan Júnior <sergiodj@linux.vnet.ibm.com>
* linux-nat.c (get_pending_status): Fix argument to WIFSTOPPED.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r--gdb/linux-nat.c4
1 files changed, 2 insertions, 2 deletions
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. */