[macOS] Add SIGTRAP to the crash handler.
This commit is contained in:
parent
9adb7c7d13
commit
b990cb95a9
|
@ -75,6 +75,7 @@ static void handle_crash(int sig) {
|
||||||
signal(SIGSEGV, SIG_DFL);
|
signal(SIGSEGV, SIG_DFL);
|
||||||
signal(SIGFPE, SIG_DFL);
|
signal(SIGFPE, SIG_DFL);
|
||||||
signal(SIGILL, SIG_DFL);
|
signal(SIGILL, SIG_DFL);
|
||||||
|
signal(SIGTRAP, SIG_DFL);
|
||||||
|
|
||||||
if (OS::get_singleton() == nullptr) {
|
if (OS::get_singleton() == nullptr) {
|
||||||
abort();
|
abort();
|
||||||
|
@ -193,6 +194,7 @@ void CrashHandler::disable() {
|
||||||
signal(SIGSEGV, SIG_DFL);
|
signal(SIGSEGV, SIG_DFL);
|
||||||
signal(SIGFPE, SIG_DFL);
|
signal(SIGFPE, SIG_DFL);
|
||||||
signal(SIGILL, SIG_DFL);
|
signal(SIGILL, SIG_DFL);
|
||||||
|
signal(SIGTRAP, SIG_DFL);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
disabled = true;
|
disabled = true;
|
||||||
|
@ -203,5 +205,6 @@ void CrashHandler::initialize() {
|
||||||
signal(SIGSEGV, handle_crash);
|
signal(SIGSEGV, handle_crash);
|
||||||
signal(SIGFPE, handle_crash);
|
signal(SIGFPE, handle_crash);
|
||||||
signal(SIGILL, handle_crash);
|
signal(SIGILL, handle_crash);
|
||||||
|
signal(SIGTRAP, handle_crash);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue