summaryrefslogtreecommitdiff
path: root/arch/blackfin/kernel/signal.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-02-17 13:44:22 +0300
committerMike Frysinger <vapier@gentoo.org>2010-03-09 08:30:51 +0300
commit600482c13d3d3612d71f39d8aaec47f63aafa801 (patch)
tree87b347917f743a493de71d9655f7f336f4e92c73 /arch/blackfin/kernel/signal.c
parente8f263dfd32a784a816fe68956e564f8ede4a9fc (diff)
downloadlinux-600482c13d3d3612d71f39d8aaec47f63aafa801.tar.xz
Blackfin: fix single stepping over system calls
On Blackfin systems, the hardware single step exception triggers before the system call exception, so we need to save this info to process it later on. Otherwise, single stepping in userspace misses a few insns right after the system call. This is based a bit on the SuperH code added in commit 4b505db9c4c72dbd. Reported-by: Roland McGrath <roland@redhat.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/kernel/signal.c')
-rw-r--r--arch/blackfin/kernel/signal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/blackfin/kernel/signal.c b/arch/blackfin/kernel/signal.c
index e60990c0a1f0..28d6f28c058c 100644
--- a/arch/blackfin/kernel/signal.c
+++ b/arch/blackfin/kernel/signal.c
@@ -306,7 +306,8 @@ asmlinkage void do_signal(struct pt_regs *regs)
if (test_thread_flag(TIF_RESTORE_SIGMASK))
clear_thread_flag(TIF_RESTORE_SIGMASK);
- tracehook_signal_handler(signr, &info, &ka, regs, 1);
+ tracehook_signal_handler(signr, &info, &ka, regs,
+ test_thread_flag(TIF_SINGLESTEP));
}
return;