From: Will Deacon Date: Thu, 18 Oct 2012 14:17:00 +0000 (+0100) Subject: arm64: ptrace: use HW_BREAKPOINT_EMPTY type for disabled breakpoints X-Git-Tag: v3.7-rc2~1^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f34a1da35aed7b438a2de8ac27723a5472e8399;p=pandora-kernel.git arm64: ptrace: use HW_BREAKPOINT_EMPTY type for disabled breakpoints If a debugger tries to zero a hardware debug control register, the kernel will try to infer both the type and length of the breakpoint in order to sanity-check against the requested regset type. This will fail because the encoding will appear as a zero-length breakpoint. This patch changes the control register setting so that disabled breakpoints are treated as HW_BREAKPOINT_EMPTY and no further sanity-checking is required. Signed-off-by: Will Deacon Signed-off-by: Catalin Marinas --- Reading git-diff-tree failed