diff options
author | Doug Evans <dje@google.com> | 2011-05-09 18:43:55 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2011-05-09 18:43:55 +0000 |
commit | 100ba5663cabeeb4c710c7df6c478ab3f973cb38 (patch) | |
tree | af503dec4bde7b9b4fbb627e3ac3c492b3f76845 /gdb/linux-nat.c | |
parent | bc50dc930cd77a8fca133b6415825d5e57506c36 (diff) | |
download | gdb-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.c | 5 |
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; |