mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
[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(SIGFPE, SIG_DFL);
|
||||
signal(SIGILL, SIG_DFL);
|
||||
signal(SIGTRAP, SIG_DFL);
|
||||
|
||||
if (OS::get_singleton() == nullptr) {
|
||||
abort();
|
||||
@ -193,6 +194,7 @@ void CrashHandler::disable() {
|
||||
signal(SIGSEGV, SIG_DFL);
|
||||
signal(SIGFPE, SIG_DFL);
|
||||
signal(SIGILL, SIG_DFL);
|
||||
signal(SIGTRAP, SIG_DFL);
|
||||
#endif
|
||||
|
||||
disabled = true;
|
||||
@ -203,5 +205,6 @@ void CrashHandler::initialize() {
|
||||
signal(SIGSEGV, handle_crash);
|
||||
signal(SIGFPE, handle_crash);
|
||||
signal(SIGILL, handle_crash);
|
||||
signal(SIGTRAP, handle_crash);
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user