From b7c4334cca202f8ab093b7dd98cbeef96997ed9d Mon Sep 17 00:00:00 2001 From: Campbell Suter Date: Tue, 24 Dec 2024 10:34:58 +1300 Subject: [PATCH] Fix gdbstub not activating until the console is reset 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 0d93dc4538..f75c1e2749 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()