1
0
Fork 0
mirror of https://github.com/melonDS-emu/melonDS.git synced 2025-03-06 21:00:31 +01:00

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.
This commit is contained in:
Campbell Suter 2024-12-24 10:34:58 +13:00
parent 7d718ada39
commit b7c4334cca

View file

@ -115,7 +115,7 @@ ARM::ARM(u32 num, bool jit, std::optional<GDBArgs> gdb, melonDS::NDS& nds) :
Num(num), // well uh
NDS(nds)
{
SetGdbArgs(jit ? gdb : std::nullopt);
SetGdbArgs(jit ? std::nullopt : gdb);
}
ARM::~ARM()