From 089275899410a6c65e855f1671879814ab05938e Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Thu, 26 Nov 2020 08:33:50 +0300 Subject: [PATCH] Minor debugging enhancement Use raise(SIGTRAP) in failed SIGSEGV handling and return. --- Utilities/Thread.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Utilities/Thread.cpp b/Utilities/Thread.cpp index 64b5e73a88..106322d5bc 100644 --- a/Utilities/Thread.cpp +++ b/Utilities/Thread.cpp @@ -1786,7 +1786,9 @@ static void signal_handler(int sig, siginfo_t* info, void* uct) noexcept if (IsDebuggerPresent()) { - __asm("int3;"); + // Convert to SIGTRAP + raise(SIGTRAP); + return; } report_fatal_error(msg);