ARM: hw_breakpoint: unify single-stepping code for watchpoints and breakpoints
authorWill Deacon <will.deacon@arm.com>
Wed, 1 Dec 2010 14:12:13 +0000 (14:12 +0000)
committerWill Deacon <will.deacon@arm.com>
Mon, 6 Dec 2010 11:55:57 +0000 (11:55 +0000)
commit9ebb3cbcc39d4e61ae6751167086acfb5c201e6f
tree4e88970d75cb2e7b3a5a2f1b50c58ab358d30339
parent93a04a3416da12647c47840ebe2bb812fcb801d0
ARM: hw_breakpoint: unify single-stepping code for watchpoints and breakpoints

The single-stepping code is currently different depending on whether
we are stepping over a breakpoint or a watchpoint. There is no good
reason for this, so let's sort it out.

This patch adds functions for enabling/disabling single-step for
a particular hw_breakpoint and integrates this with the exception
handling code.

Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/include/asm/hw_breakpoint.h
arch/arm/kernel/hw_breakpoint.c