Index: src/platform-linux.cc |
=================================================================== |
--- src/platform-linux.cc (revision 4215) |
+++ src/platform-linux.cc (working copy) |
@@ -266,7 +266,8 @@ |
void OS::DebugBreak() { |
// TODO(lrn): Introduce processor define for runtime system (!= V8_ARCH_x, |
// which is the architecture of generated code). |
-#if defined(__arm__) || defined(__thumb__) |
+#if (defined(__arm__) || defined(__thumb__)) && \ |
+ defined(CAN_USE_ARMV5_INSTRUCTIONS) |
asm("bkpt 0"); |
#elif defined(__mips__) |
asm("break"); |