diff options
author | Doug Evans <dje@google.com> | 2011-05-09 18:43:56 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2011-05-09 18:43:56 +0000 |
commit | 673c2bbeab36a7240fc8b85e696fbad249fbf408 (patch) | |
tree | c7524e7a0699fbb2d7b09b729ea87fc890f21ea9 /gdb | |
parent | b44f3f638ee28cb2e77d1768edbb7eeda01ffc61 (diff) | |
download | gdb-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')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/linux-nat.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0d9b20f..580ce56 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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' 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; |