mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 534922: quick and dirty hack to make NS_RUNTIMEABORT trigger the crashreporter on windows. r=bsmedberg
This commit is contained in:
parent
1df0a1390e
commit
d00615ff66
@ -361,10 +361,19 @@ NS_DebugBreak(PRUint32 aSeverity, const char *aStr, const char *aExpr,
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
TouchBadMemory()
|
||||
{
|
||||
// XXX this should use the frame poisoning code
|
||||
gAssertionCount += *((PRInt32 *) 0); // TODO annotation saying we know
|
||||
// this is crazy
|
||||
}
|
||||
|
||||
static void
|
||||
Abort(const char *aMsg)
|
||||
{
|
||||
#if defined(_WIN32)
|
||||
TouchBadMemory();
|
||||
|
||||
#ifndef WINCE
|
||||
//This should exit us
|
||||
@ -386,9 +395,7 @@ Abort(const char *aMsg)
|
||||
#endif
|
||||
|
||||
// Still haven't aborted? Try dereferencing null.
|
||||
// (Written this way to lessen the likelihood of it being optimized away.)
|
||||
gAssertionCount += *((PRInt32 *) 0); // TODO annotation saying we know
|
||||
// this is crazy
|
||||
TouchBadMemory();
|
||||
|
||||
// Still haven't aborted? Try _exit().
|
||||
PR_ProcessExit(127);
|
||||
|
Loading…
Reference in New Issue
Block a user