From: Doug Evans Date: Mon, 9 May 2011 18:43:56 +0000 (+0000) Subject: * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case, X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=673c2bbeab36a7240fc8b85e696fbad249fbf408;p=binutils-gdb.git * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case, adding missing call to restore_child_signals_mask. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0d9b20f7f5a..580ce56dfcd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2011-05-09 Doug Evans + + * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case, + adding missing call to restore_child_signals_mask. + 2011-05-09 Pedro Alves * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap' 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;