2008-09-25 Sérgio Durigan Júnior <sergiodj@linux.vnet.ibm.com>
authorThiago Jung Bauermann <bauerman@br.ibm.com>
Thu, 25 Sep 2008 14:13:44 +0000 (14:13 +0000)
committerThiago Jung Bauermann <bauerman@br.ibm.com>
Thu, 25 Sep 2008 14:13:44 +0000 (14:13 +0000)
* linux-nat.c (get_pending_status): Fix argument to WIFSTOPPED.

gdb/ChangeLog
gdb/linux-nat.c

index f2428b659c3b6dda4a4c6518df1261613d42c2c3..88208d7217f484acf889c25ffb66945ffaab7ed5 100644 (file)
@@ -1,3 +1,7 @@
+2008-09-25  Sérgio Durigan Júnior  <sergiodj@linux.vnet.ibm.com>
+
+       * linux-nat.c (get_pending_status): Fix argument to WIFSTOPPED.
+
 2008-09-24  Vladimir Prus  <vladimir@codesourcery.com>
 
        * remote-sim.c (gdbsim_create_inferior): Fix missing parenthesis.
index 5ff4bceadd11ebd150be35924f00c98d597e10e8..a0dc634ff8300da395b04553cd51b3cb3109c551 100644 (file)
@@ -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.  */
This page took 0.033964 seconds and 4 git commands to generate.