From: Dave Kleikamp Date: Mon, 1 Mar 2010 04:57:34 +0000 (+0000) Subject: powerpc/booke: Fix breakpoint/watchpoint one-shot behavior X-Git-Tag: v2.6.34-rc2~64^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30124d11097e371e42052144d8a3f4a78d26e09f;p=pandora-kernel.git 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 Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed