From a68eb89de4ff00edae2ded98974f1f97667ca402 Mon Sep 17 00:00:00 2001 From: "deanm@chromium.org" Date: Thu, 7 May 2009 15:38:28 +0000 Subject: Implement BreakDebugger for ARM. Review URL: http://codereview.chromium.org/115087 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15548 0039d316-1c4b-4281-b951-d872f2087c98 --- base/debug_util_posix.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'base') diff --git a/base/debug_util_posix.cc b/base/debug_util_posix.cc index a6d5199..84aebc3 100644 --- a/base/debug_util_posix.cc +++ b/base/debug_util_posix.cc @@ -108,8 +108,10 @@ bool DebugUtil::BeingDebugged() { // static void DebugUtil::BreakDebugger() { -#if !defined(ARCH_CPU_ARM_FAMILY) - asm ("int3"); +#if defined(ARCH_CPU_ARM_FAMILY) + asm("bkpt 0"); +#else + asm("int3"); #endif } -- cgit v1.1