Log last function on debug pause or exception, dump cpu_thread state on access violation

This commit is contained in:
Eladash 2019-07-09 20:44:07 +03:00 committed by Ivan
parent d7a2d42d8f
commit 537d3f2548
7 changed files with 37 additions and 18 deletions

View file

@ -1744,9 +1744,9 @@ s32 error_code::error_report(const fmt_type_info* sup, u64 arg, const fmt_type_i
{
auto& ppu = static_cast<ppu_thread&>(*thread);
if (ppu.last_function)
if (ppu.current_function)
{
func = ppu.last_function;
func = ppu.current_function;
}
}
}