Index: runtime/vm/os_linux.cc |
=================================================================== |
--- runtime/vm/os_linux.cc (revision 44777) |
+++ runtime/vm/os_linux.cc (working copy) |
@@ -504,11 +504,16 @@ |
} |
+// TODO(regis, iposva): When this function is no longer called from the |
+// CodeImmutability test in object_test.cc, it will be called only from the |
+// simulator, which means that only the Intel implementation is needed. |
void OS::DebugBreak() { |
#if defined(HOST_ARCH_X64) || defined(HOST_ARCH_IA32) |
asm("int $3"); |
-#elif defined(HOST_ARCH_ARM) |
+#elif defined(HOST_ARCH_ARM) && !defined(__THUMBEL__) |
asm("svc #0x9f0001"); // __ARM_NR_breakpoint |
+#elif defined(HOST_ARCH_ARM) && defined(__THUMBEL__) |
+ UNIMPLEMENTED(); |
#elif defined(HOST_ARCH_MIPS) || defined(HOST_ARCH_ARM64) |
UNIMPLEMENTED(); |
#else |