arm64: debug: consolidate software breakpoint handlers
authorWill Deacon <will.deacon@arm.com>
Sat, 16 Mar 2013 08:48:13 +0000 (08:48 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 12 Jun 2013 10:23:02 +0000 (11:23 +0100)
commit1442b6ed249d2b3d2cfcf45b65ac64393495c96c
tree440be3115d6d3ac4aa766c295d9b15c8160da38f
parentadace89562c7a9645b8dc84f6e1ac7ba8756094e
arm64: debug: consolidate software breakpoint handlers

The software breakpoint handlers are hooked in directly from ptrace,
which makes it difficult to add additional handlers for things like
kprobes and kgdb.

This patch moves the handling code into debug-monitors.c, where we can
dispatch to different debug subsystems more easily.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/debug-monitors.h
arch/arm64/include/asm/ptrace.h
arch/arm64/kernel/debug-monitors.c
arch/arm64/kernel/ptrace.c
arch/arm64/kernel/traps.c