powerpc/booke: Fix breakpoint/watchpoint one-shot behavior
authorDave Kleikamp <shaggy@linux.vnet.ibm.com>
Mon, 1 Mar 2010 04:57:34 +0000 (04:57 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 9 Mar 2010 00:57:10 +0000 (11:57 +1100)
commit30124d11097e371e42052144d8a3f4a78d26e09f
treeb37404e0b2c653c099401eea7e9bc988eaa84bb1
parenta8e6da093ea8642b1320fb5d64134366f2a8d0ac
powerpc/booke: Fix breakpoint/watchpoint one-shot behavior

Another fix for the extended ptrace patches in the -next tree.

The handling of breakpoints and watchpoints is inconsistent.  When a
breakpoint or watchpoint is hit, the interrupt handler is clearing the
proper bits in the dbcr* registers, but leaving the dac* and iac* registers
alone.  The ptrace code to delete the break/watchpoints checks the dac* and
iac* registers for zero to determine if they are enabled.  Instead, they
should check the dbcr* bits.

Signed-off-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/ptrace.c