Searched hist:"85 ce9a5d57bec126d19610d6e77f9e6e4eaea635" (Results 1 – 1 of 1) sorted by relevance
/linux/arch/powerpc/kernel/ |
H A D | hw_breakpoint.c | diff 85ce9a5d57bec126d19610d6e77f9e6e4eaea635 Tue Mar 27 06:37:18 CEST 2018 Michael Neuling <mikey@neuling.org> powerpc: Update ptrace to use ppc_breakpoint_available()
This updates the ptrace code to use ppc_breakpoint_available().
We now advertise via PPC_PTRACE_GETHWDBGINFO zero breakpoints when the DAWR is missing (ie. POWER9). This results in GDB falling back to software emulation of the breakpoint (which is slow).
For the features advertised by PPC_PTRACE_GETHWDBGINFO, we keep advertising DAWR as if we don't GDB assumes 1 breakpoint irrespective of the number of breakpoints advertised. GDB then fails later when trying to set this one breakpoint.
Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
|