1
0
mirror of synced 2024-12-01 02:37:18 +01:00

fix: Debug breakpoint in crash handler not being triggered at all

This commit is contained in:
WerWolv 2023-12-20 10:50:58 +01:00
parent 5b3ae56912
commit 9bd1970371

View File

@ -85,15 +85,13 @@ namespace hex::crash {
// Trigger a breakpoint if we're in a debug build or raise the signal again for the default handler to handle it // Trigger a breakpoint if we're in a debug build or raise the signal again for the default handler to handle it
#if defined(DEBUG) #if defined(DEBUG)
if (signalNumber == 0) { #if defined(OS_WINDOWS)
#if defined(OS_WINDOWS) __debugbreak();
__debugbreak(); #else
#else raise(SIGTRAP);
raise(SIGTRAP); #endif
#endif
} else { std::exit(signalNumber);
std::exit(signalNumber);
}
#else #else