mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 02:32:36 +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());
|
fmt::append(msg, "Thread id = %s.\n", std::this_thread::get_id());
|
||||||
|
|
||||||
// TODO (debugger interaction)
|
|
||||||
sys_log.fatal("\n%s", msg);
|
sys_log.fatal("\n%s", msg);
|
||||||
|
std::fprintf(stderr, "%s\n", msg.c_str());
|
||||||
|
|
||||||
|
if (IsDebuggerPresent())
|
||||||
|
{
|
||||||
|
__asm("int3;");
|
||||||
|
}
|
||||||
|
|
||||||
report_fatal_error(msg);
|
report_fatal_error(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user