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