]> git.baikalelectronics.ru Git - kernel.git/commit
sh: Fix ptrace hw_breakpoint handling
authorDavid Engraf <david.engraf@sysgo.com>
Wed, 23 Mar 2011 11:35:42 +0000 (11:35 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 23 Mar 2011 13:18:25 +0000 (22:18 +0900)
commita1065f1c8944dc1c2679950f3c84c82b48cf0716
tree52e4ebc446dc2e506bffd1ee56fb5f9ce86cd02c
parent4348877d2fd2c8133c42e6c7eb22b278d67e69f7
sh: Fix ptrace hw_breakpoint handling

Since commit a8c73e594eea10be15d86dc8eb08210cef72cc1c 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>
arch/sh/kernel/ptrace_32.c