aboutsummaryrefslogtreecommitdiff
path: root/gdb/linux-nat.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2011-05-09 18:43:56 +0000
committerDoug Evans <dje@google.com>2011-05-09 18:43:56 +0000
commit673c2bbeab36a7240fc8b85e696fbad249fbf408 (patch)
treec7524e7a0699fbb2d7b09b729ea87fc890f21ea9 /gdb/linux-nat.c
parentb44f3f638ee28cb2e77d1768edbb7eeda01ffc61 (diff)
downloadgdb-673c2bbeab36a7240fc8b85e696fbad249fbf408.zip
gdb-673c2bbeab36a7240fc8b85e696fbad249fbf408.tar.gz
gdb-673c2bbeab36a7240fc8b85e696fbad249fbf408.tar.bz2
* 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 9442088..641a619 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;