mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-25 04:02:42 +01:00
Use TRAP on segfault with debugger (Linux)
This commit is contained in:
parent
adfd8ab43c
commit
1678b37aa0
@ -1749,8 +1749,14 @@ static void signal_handler(int sig, siginfo_t* info, void* uct) noexcept
|
||||
|
||||
fmt::append(msg, "Thread id = %s.\n", std::this_thread::get_id());
|
||||
|
||||
// TODO (debugger interaction)
|
||||
sys_log.fatal("\n%s", msg);
|
||||
std::fprintf(stderr, "%s\n", msg.c_str());
|
||||
|
||||
if (IsDebuggerPresent())
|
||||
{
|
||||
__asm("int3;");
|
||||
}
|
||||
|
||||
report_fatal_error(msg);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user