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
parent c93384a279
commit ae121ff847

View File

@ -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