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

Unified Diff: runtime/vm/os_linux.cc

Issue 1156053006: - Determine whether the simulator is being used in globals.h (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address review comments Created 5 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 | « runtime/vm/os_android.cc ('k') | runtime/vm/os_macos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/os_linux.cc
diff --git a/runtime/vm/os_linux.cc b/runtime/vm/os_linux.cc
index 55c6c36c97e2194caf32ea015c489607c08a4e98..430af48d89ff33adb30338a9a0a1ef5513be6314 100644
--- a/runtime/vm/os_linux.cc
+++ b/runtime/vm/os_linux.cc
@@ -508,17 +508,7 @@ void OS::SleepMicros(int64_t micros) {
// 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) && !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
-#error Unsupported architecture.
-#endif
+ __builtin_trap();
}
« no previous file with comments | « runtime/vm/os_android.cc ('k') | runtime/vm/os_macos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698