mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 570895: Replace abort() in AvmAssertFail. r=gal
This commit is contained in:
parent
ffe7358fca
commit
2c2bdd0503
@ -62,7 +62,20 @@ avmplus::AvmLog(char const *msg, ...) {
|
||||
#ifdef _DEBUG
|
||||
namespace avmplus {
|
||||
void AvmAssertFail(const char* /* msg */) {
|
||||
abort();
|
||||
fflush(stderr);
|
||||
#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". */
|
||||
raise(SIGABRT); /* In case above statement gets nixed by the optimizer. */
|
||||
#else
|
||||
raise(SIGABRT); /* To continue from here in GDB: "signal 0". */
|
||||
#endif
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user