powerpc: Fix booke user_disable_single_step()
authorDave Kleikamp <shaggy@linux.vnet.ibm.com>
Wed, 8 Jul 2009 13:46:18 +0000 (13:46 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 15 Jul 2009 07:41:45 +0000 (17:41 +1000)
commit28477fb1ed1a00c67b382ae8f37f35708e3bf5dd
tree7dda6fa6262aa362175ffdb976da01d9aa7e0e68
parente9e961c9a818a2f24711af493b907a8e40a69efc
powerpc: Fix booke user_disable_single_step()

On booke processors, gdb is seeing spurious SIGTRAPs when setting a
watchpoint.

user_disable_single_step() simply quits when the DAC is non-zero.  It should
be clearing the DBCR0_IC and DBCR0_BT bits from the dbcr0 register and
TIF_SINGLESTEP from the thread flag.

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