diff --git a/js/src/jsutil.cpp b/js/src/jsutil.cpp index 43d4eb37ff4..0394996eb0c 100644 --- a/js/src/jsutil.cpp +++ b/js/src/jsutil.cpp @@ -49,6 +49,8 @@ #ifdef WIN32 # include +#else +# include #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