diff options
author | K.Prasad <prasad@linux.vnet.ibm.com> | 2012-10-28 15:13:15 +0000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-11-15 13:00:23 +1100 |
commit | 6c7a2856ade6a58c20038024247d16a12a8d2323 (patch) | |
tree | 87d43dc2aeaded2c7d9cc9faaa2ce326334f2360 /kernel/mutex-debug.h | |
parent | 16b86bf2520ed29712ca7462dbfe76c856b445e9 (diff) | |
download | op-kernel-dev-6c7a2856ade6a58c20038024247d16a12a8d2323.zip op-kernel-dev-6c7a2856ade6a58c20038024247d16a12a8d2323.tar.gz |
powerpc/hw-breakpoint: Use generic hw-breakpoint interfaces for new PPC ptrace flags
PPC_PTRACE_GETHWDBGINFO, PPC_PTRACE_SETHWDEBUG and PPC_PTRACE_DELHWDEBUG are
PowerPC specific ptrace flags that use the watchpoint register. While they are
targeted primarily towards BookE users, user-space applications such as GDB
have started using them for BookS too. This patch enables the use of generic
hardware breakpoint interfaces for these new flags.
Apart from the usual benefits of using generic hw-breakpoint interfaces, these
changes allow debuggers (such as GDB) to use a common set of ptrace flags for
their watchpoint needs and allow more precise breakpoint specification (length
of the variable can be specified).
Mikey added: rebased and added dbginfo.features around #ifdef
CONFIG_HAVE_HW_BREAKPOINT
Signed-off-by: K.Prasad <prasad@linux.vnet.ibm.com>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'kernel/mutex-debug.h')
0 files changed, 0 insertions, 0 deletions