summaryrefslogtreecommitdiff
path: root/gdb/linux-nat.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2011-05-09 18:43:55 +0000
committerDoug Evans <dje@google.com>2011-05-09 18:43:55 +0000
commit100ba5663cabeeb4c710c7df6c478ab3f973cb38 (patch)
treeaf503dec4bde7b9b4fbb627e3ac3c492b3f76845 /gdb/linux-nat.c
parentbc50dc930cd77a8fca133b6415825d5e57506c36 (diff)
downloadgdb-100ba5663cabeeb4c710c7df6c478ab3f973cb38.tar.gz
* linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
adding missing call to restore_child_signals_mask.
Diffstat (limited to 'gdb/linux-nat.c')
-rw-r--r--gdb/linux-nat.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index 9442088c333..641a619727c 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -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;