зеркало из https://github.com/mozilla/pjs.git
Bug 524522 - Tinderbox debug build unit tests don't capture a stack for JS_ASSERT assertion failure. r=mrbkap.
--HG-- extra : rebase_source : 6852e32ab9a846e6bd361a0c38c10bc93ebd9b89
This commit is contained in:
Родитель
08e464db34
Коммит
2be895c6e1
|
@ -49,6 +49,8 @@
|
|||
|
||||
#ifdef WIN32
|
||||
# include <windows.h>
|
||||
#else
|
||||
# include <signal.h>
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
@ -63,10 +65,10 @@ JS_PUBLIC_API(void) JS_Assert(const char *s, const char *file, JSIntn ln)
|
|||
#if defined(WIN32)
|
||||
DebugBreak();
|
||||
exit(3);
|
||||
#elif defined(XP_OS2) || (defined(__GNUC__) && defined(__i386))
|
||||
asm("int $3");
|
||||
#else
|
||||
/* In GDB, you can continue from here with the command "signal 0". */
|
||||
raise(SIGABRT);
|
||||
#endif
|
||||
abort();
|
||||
}
|
||||
|
||||
#ifdef JS_BASIC_STATS
|
||||
|
|
Загрузка…
Ссылка в новой задаче