From b958044e4ef5214d5c453de9aa3f598ee6507a31 Mon Sep 17 00:00:00 2001 From: Coxxs <58-coxxs@users.noreply.git.ryujinx.app> Date: Mon, 20 Oct 2025 21:12:16 -0500 Subject: [PATCH] gdb: Support qAttached; Add missing ReplyOK when detach --- src/Ryujinx.HLE/Debugger/Gdb/CommandProcessor.cs | 6 ++++++ src/Ryujinx.HLE/Debugger/Gdb/Commands.cs | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Ryujinx.HLE/Debugger/Gdb/CommandProcessor.cs b/src/Ryujinx.HLE/Debugger/Gdb/CommandProcessor.cs index a07dafd1c..cef1123f7 100644 --- a/src/Ryujinx.HLE/Debugger/Gdb/CommandProcessor.cs +++ b/src/Ryujinx.HLE/Debugger/Gdb/CommandProcessor.cs @@ -146,6 +146,12 @@ namespace Ryujinx.HLE.Debugger.Gdb break; } + if (ss.ConsumeRemaining("Attached")) + { + Reply("1"); + break; + } + if (ss.ConsumeRemaining("ProcessInfo")) { Reply( diff --git a/src/Ryujinx.HLE/Debugger/Gdb/Commands.cs b/src/Ryujinx.HLE/Debugger/Gdb/Commands.cs index 9093440eb..953515ec9 100644 --- a/src/Ryujinx.HLE/Debugger/Gdb/Commands.cs +++ b/src/Ryujinx.HLE/Debugger/Gdb/Commands.cs @@ -83,12 +83,13 @@ namespace Ryujinx.HLE.Debugger.Gdb } Debugger.DebugProcess.DebugContinue(); + Processor.ReplyOK(); } internal void Detach() { Debugger.BreakpointManager.ClearAll(); - Continue(null); + Continue(null); // Continue() will call ReplyError/ReplyOK for us. } internal void ReadRegisters()