From a0e5edf8ba999f24f3f7790d7c76a636b54854a3 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 (ryubing/ryujinx!184) See merge request ryubing/ryujinx!184 --- 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 0220e259f..a665e657e 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()