From 673c2bbeab36a7240fc8b85e696fbad249fbf408 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Mon, 9 May 2011 18:43:56 +0000 Subject: [PATCH] * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case, adding missing call to restore_child_signals_mask. --- gdb/ChangeLog | 5 +++++ gdb/linux-nat.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) 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; -- 2.30.2