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

@ -153,9 +153,9 @@ void cpu_thread::operator()()
}
catch (const std::exception& e)
{
Emu.Pause();
LOG_FATAL(GENERAL, "%s thrown: %s", typeid(e).name(), e.what());
LOG_NOTICE(GENERAL, "\n%s", dump());
Emu.Pause();
break;
}