diff options
Diffstat (limited to 'arch/powerpc/kernel/ptrace.c')
-rw-r--r-- | arch/powerpc/kernel/ptrace.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/ptrace.c b/arch/powerpc/kernel/ptrace.c index 817b4116e5bb..c4970004d44d 100644 --- a/arch/powerpc/kernel/ptrace.c +++ b/arch/powerpc/kernel/ptrace.c | |||
@@ -952,6 +952,10 @@ int ptrace_set_debugreg(struct task_struct *task, unsigned long addr, | |||
952 | arch_bp_generic_fields(data & | 952 | arch_bp_generic_fields(data & |
953 | (DABR_DATA_WRITE | DABR_DATA_READ), | 953 | (DABR_DATA_WRITE | DABR_DATA_READ), |
954 | &attr.bp_type); | 954 | &attr.bp_type); |
955 | |||
956 | /* Enable breakpoint */ | ||
957 | attr.disabled = false; | ||
958 | |||
955 | ret = modify_user_hw_breakpoint(bp, &attr); | 959 | ret = modify_user_hw_breakpoint(bp, &attr); |
956 | if (ret) { | 960 | if (ret) { |
957 | ptrace_put_breakpoints(task); | 961 | ptrace_put_breakpoints(task); |