ARM: 6357/1: hw-breakpoint: add new ptrace requests for hw-breakpoint interaction
commit864232fa1a2f8dfe003438ef0851a56722740f3e
authorWill Deacon <will.deacon@arm.com>
Fri, 3 Sep 2010 09:42:55 +0000 (3 10:42 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 8 Sep 2010 09:05:00 +0000 (8 10:05 +0100)
tree0f85f2b1b2f030e7c51f0c69b112dea746b3a861
parentf81ef4a920c8e1af75adf9f15042c2daa49d3cb3
ARM: 6357/1: hw-breakpoint: add new ptrace requests for hw-breakpoint interaction

For debuggers to take advantage of the hw-breakpoint framework in the kernel,
it is necessary to expose the API calls via a ptrace interface.

This patch exposes the hardware breakpoints framework as a collection of
virtual registers, accesible using PTRACE_SETHBPREGS and PTRACE_GETHBPREGS
requests. The breakpoints are stored in the debug_info struct of the running
thread.

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: S. Karthikeyan <informkarthik@gmail.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/hw_breakpoint.h
arch/arm/include/asm/processor.h
arch/arm/include/asm/ptrace.h
arch/arm/kernel/process.c
arch/arm/kernel/ptrace.c