bug 308395: Give gdb a fighting chance in catching JS_Asserts by sending an "int $3" before abort()ing. r=brendan

This commit is contained in:
mrbkap%gmail.com 2005-09-14 17:30:10 +00:00
parent 5197cab6cf
commit a7aa886188

View File

@ -56,8 +56,7 @@ JS_PUBLIC_API(void) JS_Assert(const char *s, const char *file, JSIntn ln)
fprintf(stderr, "Assertion failure: %s, at %s:%d\n", s, file, ln);
#if defined(WIN32)
DebugBreak();
#endif
#if defined(XP_OS2)
#elif defined(XP_OS2) || (defined(__GNUC__) && defined(__i386))
asm("int $3");
#endif
abort();