aboutsummaryrefslogtreecommitdiffstats
path: root/arch/microblaze
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2009-10-15 05:32:25 -0400
committerMichal Simek <monstr@monstr.eu>2009-12-14 02:44:58 -0500
commita01523cdcd2439b553086127be3d30ac9c3cb651 (patch)
tree66ef137a4a495b0749b12178e5d0757b1ebd4742 /arch/microblaze
parente051af576a414b6fcfe6589e99b2357522718050 (diff)
microblaze: Ptrace notifying from signal code
After the signal frame is set up on the userspace stack, ptrace() should be given an opportunity to single-step into the signal handler FRV, Blackfin, mn10300 and UM. Worth to look at that patches. Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze')
-rw-r--r--arch/microblaze/kernel/signal.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/microblaze/kernel/signal.c b/arch/microblaze/kernel/signal.c
index 1c80e4fc40ce..0c96ac34c316 100644
--- a/arch/microblaze/kernel/signal.c
+++ b/arch/microblaze/kernel/signal.c
@@ -233,6 +233,10 @@ static void setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
233 233
234 set_fs(USER_DS); 234 set_fs(USER_DS);
235 235
236 /* the tracer may want to single-step inside the handler */
237 if (test_thread_flag(TIF_SINGLESTEP))
238 ptrace_notify(SIGTRAP);
239
236#ifdef DEBUG_SIG 240#ifdef DEBUG_SIG
237 printk(KERN_INFO "SIG deliver (%s:%d): sp=%p pc=%08lx\n", 241 printk(KERN_INFO "SIG deliver (%s:%d): sp=%p pc=%08lx\n",
238 current->comm, current->pid, frame, regs->pc); 242 current->comm, current->pid, frame, regs->pc);