summaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
authorKukjin Kim <kgene.kim@samsung.com>2011-05-16 16:29:50 +0900
committerKukjin Kim <kgene.kim@samsung.com>2011-05-16 16:29:50 +0900
commitbd6356bdafc853201168f718f0059fbe11191461 (patch)
treee2f82e8950b0201ab93c8fa8ff07ac31ba1c2a35 /arch/sh
parent3185847957d4834d1b30b253b1c71bb05bad7265 (diff)
parent4b42120df72aeebd3967c952804cb1af53b91cc5 (diff)
Merge branch 'dev/removing-s5p6442' into for-next
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/kernel/ptrace_32.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sh/kernel/ptrace_32.c b/arch/sh/kernel/ptrace_32.c
index 2130ca674e9..3d7b209b217 100644
--- a/arch/sh/kernel/ptrace_32.c
+++ b/arch/sh/kernel/ptrace_32.c
@@ -117,7 +117,11 @@ void user_enable_single_step(struct task_struct *child)
set_tsk_thread_flag(child, TIF_SINGLESTEP);
+ if (ptrace_get_breakpoints(child) < 0)
+ return;
+
set_single_step(child, pc);
+ ptrace_put_breakpoints(child);
}
void user_disable_single_step(struct task_struct *child)