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 <Acoustik666@gmail.com> * Fixes after rebase * Address gdkchan's comments Co-authored-by: Ac_K <Acoustik666@gmail.com> Co-authored-by: Mary <me@thog.eu>
This commit is contained in:
parent
2c3dab6986
commit
26e5b5acff
4 changed files with 170 additions and 35 deletions
|
@ -991,7 +991,12 @@ namespace Ryujinx.HLE.HOS.Kernel.Threading
|
|||
|
||||
public string GetGuestStackTrace()
|
||||
{
|
||||
return Owner.Debugger.GetGuestStackTrace(Context);
|
||||
return Owner.Debugger.GetGuestStackTrace(this);
|
||||
}
|
||||
|
||||
public string GetGuestRegisterPrintout()
|
||||
{
|
||||
return Owner.Debugger.GetCpuRegisterPrintout(this);
|
||||
}
|
||||
|
||||
public void PrintGuestStackTrace()
|
||||
|
@ -999,6 +1004,11 @@ namespace Ryujinx.HLE.HOS.Kernel.Threading
|
|||
Logger.Info?.Print(LogClass.Cpu, $"Guest stack trace:\n{GetGuestStackTrace()}\n");
|
||||
}
|
||||
|
||||
public void PrintGuestRegisterPrintout()
|
||||
{
|
||||
Logger.Info?.Print(LogClass.Cpu, $"Guest CPU registers:\n{GetGuestRegisterPrintout()}\n");
|
||||
}
|
||||
|
||||
public void AddCpuTime(long ticks)
|
||||
{
|
||||
Interlocked.Add(ref _totalTimeRunning, ticks);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue