1
0
mirror of synced 2024-11-28 09:30:51 +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
#if defined(DEBUG)
if (signalNumber == 0) {
#if defined(OS_WINDOWS)
__debugbreak();
#else
raise(SIGTRAP);
#endif
} else {
std::exit(signalNumber);
}
#else