From 5e65fd88084342585e88f6722c5a80908711cded Mon Sep 17 00:00:00 2001 From: svc64 Date: Fri, 6 Oct 2023 17:24:58 +0300 Subject: [PATCH] Reply with an error if we fail to step --- src/Ryujinx.HLE/Debugger/Debugger.cs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/Ryujinx.HLE/Debugger/Debugger.cs b/src/Ryujinx.HLE/Debugger/Debugger.cs index ce0102ecca..87676cb2fc 100644 --- a/src/Ryujinx.HLE/Debugger/Debugger.cs +++ b/src/Ryujinx.HLE/Debugger/Debugger.cs @@ -562,9 +562,14 @@ namespace Ryujinx.HLE.Debugger thread.Context.DebugPc = newPc.Value; } - thread.DebugStep(); - - Reply($"T05thread:{thread.ThreadUid:x};"); + if (!thread.DebugStep()) + { + ReplyError(); + } + else + { + Reply($"T05thread:{thread.ThreadUid:x};"); + } } private void CommandIsAlive(ulong? threadId)