Fix gdb break on start & gdb ports not closing after restarting/crashing (#2167)

This commit is contained in:
GalaxyShard
2024-10-27 21:06:59 +00:00
committed by GitHub
parent 98d969ab15
commit b60f42b281
2 changed files with 10 additions and 0 deletions

View File

@ -110,6 +110,7 @@ const u32 ARM::ConditionTable[16] =
ARM::ARM(u32 num, bool jit, std::optional<GDBArgs> gdb, melonDS::NDS& nds) :
#ifdef GDBSTUB_ENABLED
GdbStub(this, gdb ? (num ? gdb->PortARM7 : gdb->PortARM9) : 0),
BreakOnStartup(gdb ? (num ? gdb->ARM7BreakOnStartup : gdb->ARM9BreakOnStartup) : false),
#endif
Num(num), // well uh
NDS(nds)