Index: runtime/vm/os_linux.cc |
=================================================================== |
--- runtime/vm/os_linux.cc (revision 17622) |
+++ runtime/vm/os_linux.cc (working copy) |
@@ -310,6 +310,19 @@ |
} |
+void OS::DebugBreak() { |
+#if defined(HOST_ARCH_X64) || defined(HOST_ARCH_IA32) |
+ asm("int $3"); |
+#elif defined(HOST_ARCH_ARM) |
+ asm("svc #0x9f0001"); // __ARM_NR_breakpoint |
+#elif defined(HOST_ARCH_MIPS) |
+ UNIMPLEMENTED(); |
+#else |
+#error Unsupported architecture. |
+#endif |
+} |
+ |
+ |
void OS::Print(const char* format, ...) { |
va_list args; |
va_start(args, format); |