* linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
authorDoug Evans <dje@google.com>
Mon, 9 May 2011 18:43:56 +0000 (18:43 +0000)
committerDoug Evans <dje@google.com>
Mon, 9 May 2011 18:43:56 +0000 (18:43 +0000)
adding missing call to restore_child_signals_mask.

gdb/ChangeLog
gdb/linux-nat.c

index 0d9b20f..580ce56 100644 (file)
@@ -1,3 +1,8 @@
+2011-05-09  Doug Evans  <dje@google.com>
+
+       * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
+       adding missing call to restore_child_signals_mask.
+
 2011-05-09  Pedro Alves  <pedro@codesourcery.com>
 
        * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
index 9442088..641a619 100644 (file)
@@ -1476,7 +1476,10 @@ lin_lwp_attach_lwp (ptid_t ptid)
 
       status = linux_nat_post_attach_wait (ptid, 0, &cloned, &signalled);
       if (!WIFSTOPPED (status))
-       return -1;
+       {
+         restore_child_signals_mask (&prev_mask);
+         return -1;
+       }
 
       lp = add_lwp (ptid);
       lp->stopped = 1;