Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3202)

Unified Diff: base/debug_util_posix.cc

Issue 115087: Implement DebugBreak for ARM. (Closed)
Patch Set: Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/debug_util_posix.cc
diff --git a/base/debug_util_posix.cc b/base/debug_util_posix.cc
index a6d519983a094e062fd0e0040768365fb6cf2d87..84aebc3bfe3e967c7fa06b1dc178f9a8d73c397a 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
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698