mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 643779 - Allow to build nsDebugImpl.cpp on ARMv4T. r=dougt
This commit is contained in:
parent
21b2d5da33
commit
ec45f8f1c5
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user