make it possible to change gdb stub settings without destroying/recreating a NDS

This commit is contained in:
Arisotura
2024-11-17 20:00:52 +01:00
parent 99aa5676db
commit 0ea0af3abf
7 changed files with 41 additions and 17 deletions

View File

@ -227,6 +227,15 @@ void NDS::SetJITArgs(std::optional<JITArgs> args) noexcept
}
#endif
#ifdef GDBSTUB_ENABLED
void NDS::SetGdbArgs(std::optional<GDBArgs> args) noexcept
{
ARM9.SetGdbArgs(args);
ARM7.SetGdbArgs(args);
EnableGDBStub = args.has_value();
}
#endif
void NDS::InitTimings()
{
// TODO, eventually: