From 26e5b5acffa28c7fc9b6d13612ef5077fa35c971 Mon Sep 17 00:00:00 2001 From: Somebody Whoisbored <13044396+shadowninja108@users.noreply.github.com> Date: Thu, 20 May 2021 16:27:16 -0700 Subject: Extend info printed when guest crashes/breaks execution (#1845) * Add CPU register printout when guest crashes/breaks execution * Print out registers when undefined instruction is hit * Apply suggestions from code review Co-authored-by: Ac_K * Fixes after rebase * Address gdkchan's comments Co-authored-by: Ac_K Co-authored-by: Mary --- Ryujinx.HLE/HOS/Kernel/SupervisorCall/Syscall.cs | 1 + 1 file changed, 1 insertion(+) (limited to 'Ryujinx.HLE/HOS/Kernel/SupervisorCall') diff --git a/Ryujinx.HLE/HOS/Kernel/SupervisorCall/Syscall.cs b/Ryujinx.HLE/HOS/Kernel/SupervisorCall/Syscall.cs index 238f1226..39161f22 100644 --- a/Ryujinx.HLE/HOS/Kernel/SupervisorCall/Syscall.cs +++ b/Ryujinx.HLE/HOS/Kernel/SupervisorCall/Syscall.cs @@ -1409,6 +1409,7 @@ namespace Ryujinx.HLE.HOS.Kernel.SupervisorCall if ((reason & (1UL << 31)) == 0) { currentThread.PrintGuestStackTrace(); + currentThread.PrintGuestRegisterPrintout(); // As the process is exiting, this is probably caused by emulation termination. if (currentThread.Owner.State == ProcessState.Exiting) -- cgit v1.2.3