This commit is contained in:
2025-04-14 08:42:12 +02:00
parent ee03c9ac13
commit 3cfc004c28

View File

@@ -41,14 +41,7 @@
#include <windows.h> #include <windows.h>
#include <dbghelp.h> #include <dbghelp.h>
LONG WINAPI ExceptionHandler(EXCEPTION_POINTERS* ExceptionInfo) void PulseFollowStackTrace()
{
fprintf(stderr, "Exception occurred!\n");
FollowStackTrace();
return EXCEPTION_EXECUTE_HANDLER;
}
void FollowStackTrace()
{ {
HANDLE process = GetCurrentProcess(); HANDLE process = GetCurrentProcess();
SymInitialize(process, NULL, TRUE); SymInitialize(process, NULL, TRUE);
@@ -83,6 +76,13 @@
} }
free(symbol); free(symbol);
} }
LONG WINAPI ExceptionHandler(EXCEPTION_POINTERS* ExceptionInfo)
{
fprintf(stderr, "Exception occurred!\n");
PulseFollowStackTrace();
return EXCEPTION_EXECUTE_HANDLER;
}
#endif #endif
extern void TestBackend(); extern void TestBackend();