mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
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:
parent
5197cab6cf
commit
a7aa886188
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user