From db0aa54233d14b8feaf9fd382a3d64fda3614c4b Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sun, 22 Apr 2018 02:48:17 -0300 Subject: Print guest stack trace on a few points that can throw exceptions --- Ryujinx.Core/OsHle/Kernel/SvcSystem.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Ryujinx.Core/OsHle/Kernel/SvcSystem.cs') diff --git a/Ryujinx.Core/OsHle/Kernel/SvcSystem.cs b/Ryujinx.Core/OsHle/Kernel/SvcSystem.cs index 48e8ce38..056b5059 100644 --- a/Ryujinx.Core/OsHle/Kernel/SvcSystem.cs +++ b/Ryujinx.Core/OsHle/Kernel/SvcSystem.cs @@ -211,6 +211,8 @@ namespace Ryujinx.Core.OsHle.Kernel long Unknown = (long)ThreadState.X1; long Info = (long)ThreadState.X2; + Process.PrintStackTrace(ThreadState); + throw new GuestBrokeExecutionException(); } @@ -297,7 +299,10 @@ namespace Ryujinx.Core.OsHle.Kernel ThreadState.X1 = MemoryRegions.MapRegionSize; break; - default: throw new NotImplementedException($"SvcGetInfo: {InfoType} {Handle} {InfoId}"); + default: + Process.PrintStackTrace(ThreadState); + + throw new NotImplementedException($"SvcGetInfo: {InfoType} {Handle:x8} {InfoId}"); } ThreadState.X0 = 0; -- cgit v1.2.3