Bug 643779 - Allow to build nsDebugImpl.cpp on ARMv4T. r=dougt

This commit is contained in:
Mike Hommey 2011-07-01 10:42:47 +02:00
parent 21b2d5da33
commit ec45f8f1c5

View File

@ -400,7 +400,16 @@ RealBreak()
#elif defined(__GNUC__) && (defined(__i386__) || defined(__i386) || defined(__x86_64__))
asm("int $3");
#elif defined(__arm__)
asm("BKPT #0");
asm(
#ifdef __ARM_ARCH_4T__
/* ARMv4T doesn't support the BKPT instruction, so if the compiler target
* is ARMv4T, we want to ensure the assembler will understand that ARMv5T
* instruction, while keeping the resulting object tagged as ARMv4T.
*/
".arch armv5t\n"
".object_arch armv4t\n"
#endif
"BKPT #0");
#elif defined(SOLARIS)
#if defined(__i386__) || defined(__i386) || defined(__x86_64__)
asm("int $3");