From 72c86ade31e52c14d0161b398b25aae325d86ddb Mon Sep 17 00:00:00 2001 From: Campbell Suter Date: Tue, 24 Dec 2024 12:29:21 +1300 Subject: [PATCH] Fix gdbstub not activating until the console is reset (#2245) The check for initialising the gdbstub depending on whether the JIT was enabled or not was the wrong way around: previously, it would only enable the gdbstub if the JIT was enabled. The stub started working again if you reset the console, as NDS::SetGdbArgs didn't have any such check and it was called by EmuInstance::updateConsole. --- src/ARM.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ARM.cpp b/src/ARM.cpp index 0d93dc45..f75c1e27 100644 --- a/src/ARM.cpp +++ b/src/ARM.cpp @@ -115,7 +115,7 @@ ARM::ARM(u32 num, bool jit, std::optional gdb, melonDS::NDS& nds) : Num(num), // well uh NDS(nds) { - SetGdbArgs(jit ? gdb : std::nullopt); + SetGdbArgs(jit ? std::nullopt : gdb); } ARM::~ARM()