mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 524522 revisited - Make JS_ASSERT trigger Breakpad on Mac OS X. rs=luke.
This commit is contained in:
parent
5ab231bfb9
commit
da670f0947
@ -65,9 +65,14 @@ JS_PUBLIC_API(void) JS_Assert(const char *s, const char *file, JSIntn ln)
|
||||
#if defined(WIN32)
|
||||
DebugBreak();
|
||||
exit(3);
|
||||
#elif defined(__APPLE__)
|
||||
/*
|
||||
* On Mac OS X, Breakpad ignores signals. Only real Mach exceptions are
|
||||
* trapped.
|
||||
*/
|
||||
*((int *) NULL) = 0; /* To continue from here in GDB: "return" then "continue". */
|
||||
#else
|
||||
/* In GDB, you can continue from here with the command "signal 0". */
|
||||
raise(SIGABRT);
|
||||
raise(SIGABRT); /* To continue from here in GDB: "signal 0". */
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user