diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2018-04-22 02:48:17 -0300 |
|---|---|---|
| committer | gdkchan <gab.dark.100@gmail.com> | 2018-04-22 02:48:17 -0300 |
| commit | db0aa54233d14b8feaf9fd382a3d64fda3614c4b (patch) | |
| tree | 16356a5420189d3fa5ca3999539aeb48e16c8440 /Ryujinx.Core/OsHle/Kernel/SvcSystem.cs | |
| parent | bd9b1e2c6b912c7cdab55ec6acc063c88a59cff1 (diff) | |
Print guest stack trace on a few points that can throw exceptions
Diffstat (limited to 'Ryujinx.Core/OsHle/Kernel/SvcSystem.cs')
| -rw-r--r-- | Ryujinx.Core/OsHle/Kernel/SvcSystem.cs | 7 |
1 files changed, 6 insertions, 1 deletions
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; |
