]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/ptrace: Add DAWR debug feature info for userspace
authorMichael Neuling <mikey@neuling.org>
Thu, 21 Mar 2013 20:12:33 +0000 (20:12 +0000)
committerMichael Ellerman <michael@ellerman.id.au>
Thu, 18 Apr 2013 05:59:55 +0000 (15:59 +1000)
commit02fe76e9099c7c9e36f9324f77bb8ed94b8b9e80
treeb5306df74c471c66598922a4baaca75540526d29
parentfc15825e996b0ecb3bca4345f09236a929e8641d
powerpc/ptrace: Add DAWR debug feature info for userspace

This adds new debug feature information so that the DAWR can be
identified by userspace tools like GDB.

Unfortunately the DAWR doesn't sit nicely into the current description
that ptrace provides to userspace via struct ppc_debug_info.  It doesn't
allow for specifying that only some ranges are possible or even the end
alignment constraints (DAWR only allows 512 byte wide ranges which can't
cross a 512 byte boundary).

After talking to Edjunior Machado (GDB ppc developer), it was decided
this was the best approach.  Just mark it as debug feature DAWR and
tools like GDB can internally decide the constraints.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Documentation/powerpc/ptrace.txt
arch/powerpc/include/uapi/asm/ptrace.h
arch/powerpc/kernel/ptrace.c