From: Will Deacon Date: Fri, 11 Feb 2011 15:01:42 +0000 (+0100) Subject: ARM: 6657/1: hw_breakpoint: fix ptrace breakpoint advertising on unsupported arch X-Git-Tag: v2.6.38-rc5~16^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66e1cfe6d52c69d317e9df76ebc8538a34af0d51;p=pandora-kernel.git ARM: 6657/1: hw_breakpoint: fix ptrace breakpoint advertising on unsupported arch The ptrace debug information register was advertising breakpoint and watchpoint resources for unsupported debug architectures. This meant that setting breakpoints on these architectures would appear to succeed, although they would never fire in reality. This patch fixes the breakpoint slot probing so that it returns 0 when running on an unsupported debug architecture. Reported-by: Ulrich Weigand Signed-off-by: Will Deacon Signed-off-by: Russell King --- Reading git-diff-tree failed