[Windows] Enable crash reporter on MinGW builds, use libbacktrace to generate stack trace from DWARF symbols.

This commit is contained in:
bruvzg
2022-05-13 15:42:07 +03:00
parent 7529c0bec5
commit c1b34672f9
28 changed files with 7854 additions and 4 deletions

View File

@ -35,12 +35,15 @@
#include <windows.h>
// Crash handler exception only enabled with MSVC
#if defined(DEBUG_ENABLED) && defined(_MSC_VER)
#if defined(DEBUG_ENABLED)
#define CRASH_HANDLER_EXCEPTION 1
#ifdef _MSC_VER
extern DWORD CrashHandlerException(EXCEPTION_POINTERS *ep);
#endif
#endif
class CrashHandler {
bool disabled;