kern: improve some debug output

This commit is contained in:
Michael Scire 2021-08-20 00:06:43 -07:00
parent fe79bc253a
commit f175802136
2 changed files with 11 additions and 4 deletions

View file

@ -293,6 +293,13 @@ namespace ams::kern::arch::arm64 {
/* Print that an exception occurred. */
MESOSPHERE_RELEASE_LOG("Exception occurred. %016lx\n", GetCurrentProcess().GetProgramId());
{
/* Print the current thread's registers. */
KDebug::PrintRegister();
/* Print a backtrace. */
KDebug::PrintBacktrace();
}
/* If the SVC is handled, handle it. */
if (!svc::ResultNotHandled::Includes(result)) {