sh: Fix ptrace hw_breakpoint handling

Since commit 34d0b5af50a063cded842716633501b38ff815fb it is no longer
possible to debug an application using singlestep. The old commit
converted singlestep handling via ptrace to hw_breakpoints. The
hw_breakpoint is disabled when an event is triggered and not re-enabled
again. This patch re-enables the existing hw_breakpoint before the
existing breakpoint is reused.

Signed-off-by: David Engraf <david.engraf@sysgo.com>
Cc: stable@kernel.org
Signed-off-by: Paul Mundt <lethal@linux-sh.org>

authored by David Engraf and committed by Paul Mundt fb7f045a c49b6ecf

+2
+2
arch/sh/kernel/ptrace_32.c
··· 101 101 102 102 attr = bp->attr; 103 103 attr.bp_addr = addr; 104 + /* reenable breakpoint */ 105 + attr.disabled = false; 104 106 err = modify_user_hw_breakpoint(bp, &attr); 105 107 if (unlikely(err)) 106 108 return err;