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:
Jason Orendorff 2009-10-27 12:03:49 -05:00
Родитель 08e464db34
Коммит 2be895c6e1
1 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -49,6 +49,8 @@
#ifdef WIN32 #ifdef WIN32
# include <windows.h> # include <windows.h>
#else
# include <signal.h>
#endif #endif
/* /*
@ -63,10 +65,10 @@ JS_PUBLIC_API(void) JS_Assert(const char *s, const char *file, JSIntn ln)
#if defined(WIN32) #if defined(WIN32)
DebugBreak(); DebugBreak();
exit(3); exit(3);
#elif defined(XP_OS2) || (defined(__GNUC__) && defined(__i386)) #else
asm("int $3"); /* In GDB, you can continue from here with the command "signal 0". */
raise(SIGABRT);
#endif #endif
abort();
} }
#ifdef JS_BASIC_STATS #ifdef JS_BASIC_STATS