Linux PARISC architecture development
 help / color / mirror / Atom feed
* [PATCH] parisc: fix tracing of signals
@ 2010-02-12 15:53 Kyle McMartin
  2010-02-12 16:21 ` Linus Torvalds
  0 siblings, 1 reply; 5+ messages in thread
From: Kyle McMartin @ 2010-02-12 15:53 UTC (permalink / raw)
  To: torvalds; +Cc: vapier, linux-parisc, roland

From: Kyle McMartin <kyle@redhat.com>

Mike Frysinger pointed out that calling tracehook_signal_handler with
stepping=0 missed testing the thread flags, resulting in not calling
ptrace_notify. Fix this by testing if we're single stepping or branch
stepping and setting the flag accordingly.

Tested, seems to work.

Reported-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
---
 arch/parisc/kernel/signal.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/arch/parisc/kernel/signal.c b/arch/parisc/kernel/signal.c
index e8467e4..07b3dac 100644
--- a/arch/parisc/kernel/signal.c
+++ b/arch/parisc/kernel/signal.c
@@ -469,7 +469,9 @@ handle_signal(unsigned long sig, siginfo_t *info, struct k_sigaction *ka,
 	recalc_sigpending();
 	spin_unlock_irq(&current->sighand->siglock);
 
-	tracehook_signal_handler(sig, info, ka, regs, 0);
+	tracehook_signal_handler(sig, info, ka, regs, 
+		test_thread_flag(TIF_SINGLESTEP) ||
+		test_thread_flag(TIF_BLOCKSTEP));
 
 	return 1;
 }
-- 
1.6.6


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-02-13 11:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-12 15:53 [PATCH] parisc: fix tracing of signals Kyle McMartin
2010-02-12 16:21 ` Linus Torvalds
2010-02-12 17:10   ` Kyle McMartin
2010-02-12 23:58   ` Mike Frysinger
2010-02-13 11:03   ` Paul Mundt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox