fix: Debug breakpoint in crash handler not being triggered at all
This commit is contained in:
parent
5b3ae56912
commit
9bd1970371
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user