зеркало из https://github.com/mozilla/pjs.git
Bug 586186 Implement RealBreak for Solaris r=doug.turner a=bsmedberg
This commit is contained in:
Родитель
c6247f8cae
Коммит
173e44ab51
|
@ -395,6 +395,12 @@ RealBreak()
|
|||
asm("int $3");
|
||||
#elif defined(__arm__)
|
||||
asm("BKPT #0");
|
||||
#elif defined(SOLARIS)
|
||||
#if defined(__i386__) || defined(__i386) || defined(__x86_64__)
|
||||
asm("int $3");
|
||||
#else
|
||||
raise(SIGTRAP);
|
||||
#endif
|
||||
#else
|
||||
#warning don't know how to break on this platform
|
||||
#endif
|
||||
|
@ -497,6 +503,8 @@ Break(const char *aMsg)
|
|||
RealBreak();
|
||||
#elif defined(__arm__)
|
||||
RealBreak();
|
||||
#elif defined(SOLARIS)
|
||||
RealBreak();
|
||||
#else
|
||||
#warning don't know how to break on this platform
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче