mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 524522 - Tinderbox debug build unit tests don't capture a stack for JS_ASSERT assertion failure. r=mrbkap.
--HG-- extra : rebase_source : 6852e32ab9a846e6bd361a0c38c10bc93ebd9b89
This commit is contained in:
parent
c93384a279
commit
ae121ff847
@ -49,6 +49,8 @@
|
|||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
# include <windows.h>
|
# include <windows.h>
|
||||||
|
#else
|
||||||
|
# include <signal.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -63,10 +65,10 @@ JS_PUBLIC_API(void) JS_Assert(const char *s, const char *file, JSIntn ln)
|
|||||||
#if defined(WIN32)
|
#if defined(WIN32)
|
||||||
DebugBreak();
|
DebugBreak();
|
||||||
exit(3);
|
exit(3);
|
||||||
#elif defined(XP_OS2) || (defined(__GNUC__) && defined(__i386))
|
#else
|
||||||
asm("int $3");
|
/* In GDB, you can continue from here with the command "signal 0". */
|
||||||
|
raise(SIGABRT);
|
||||||
#endif
|
#endif
|
||||||
abort();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef JS_BASIC_STATS
|
#ifdef JS_BASIC_STATS
|
||||||
|
Loading…
Reference in New Issue
Block a user