mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-28 21:38:01 +03:00
Log last function on debug pause or exception, dump cpu_thread state on access violation
This commit is contained in:
parent
d7a2d42d8f
commit
537d3f2548
7 changed files with 37 additions and 18 deletions
|
@ -1410,6 +1410,7 @@ bool handle_access_violation(u32 addr, bool is_writing, x64_context* context)
|
|||
|
||||
if (cpu->id_type() != 1)
|
||||
{
|
||||
LOG_NOTICE(GENERAL, "\n%s", cpu->dump());
|
||||
LOG_FATAL(MEMORY, "Access violation %s location 0x%x", is_writing ? "writing" : "reading", addr);
|
||||
|
||||
// TODO:
|
||||
|
@ -1446,6 +1447,12 @@ bool handle_access_violation(u32 addr, bool is_writing, x64_context* context)
|
|||
}
|
||||
|
||||
Emu.Pause();
|
||||
|
||||
if (cpu)
|
||||
{
|
||||
LOG_NOTICE(GENERAL, "\n%s", cpu->dump());
|
||||
}
|
||||
|
||||
LOG_FATAL(MEMORY, "Access violation %s location 0x%x", is_writing ? "writing" : "reading", addr);
|
||||
|
||||
while (Emu.IsPaused())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue