all repos — mgba @ ea8c788e9d8f31836c580d191d4ffae26b20f2ad

mGBA Game Boy Advance Emulator

DS: Fix up modern debugger bits
Vicki Pfau vi@endrift.com
Wed, 17 Jun 2020 22:48:02 -0700
commit

ea8c788e9d8f31836c580d191d4ffae26b20f2ad

parent

d1903276fa8c1992ce14513c1a41fc73b5c9305d

2 files changed, 11 insertions(+), 0 deletions(-)

jump to
M src/ds/core.csrc/ds/core.c

@@ -81,6 +81,7 @@ return false;

} core->cpu = arm9; core->board = ds; + core->timing = &ds->ds9.timing; core->debugger = NULL; dscore->arm7 = arm7; dscore->arm9 = arm9;

@@ -617,6 +618,12 @@ vf->close(vf);

} #endif } + +static bool _DSCoreLookupIdentifier(struct mCore* core, const char* name, int32_t* value, int* segment) { + UNUSED(core); + // TODO + return false; +} #endif static struct mCheatDevice* _DSCoreCheatDevice(struct mCore* core) {

@@ -741,6 +748,7 @@ core->cliDebuggerSystem = _DSCoreCliDebuggerSystem;

core->attachDebugger = _DSCoreAttachDebugger; core->detachDebugger = _DSCoreDetachDebugger; core->loadSymbols = _DSCoreLoadSymbols; + core->lookupIdentifier = _DSCoreLookupIdentifier; #endif core->cheatDevice = _DSCoreCheatDevice; core->savedataClone = _DSCoreSavedataClone;
M src/ds/extra/cli.csrc/ds/extra/cli.c

@@ -31,6 +31,7 @@ debugger->d.custom = _DSCLIDebuggerCustom;

debugger->d.name = "DS"; debugger->d.commands = _DSCLIDebuggerCommands; + debugger->d.commandAliases = NULL; debugger->core = core;

@@ -63,8 +64,10 @@ struct DS* ds = core->board;

debugger->d.platform->deinit(debugger->d.platform); if (core->cpu == ds->ds9.cpu) { core->cpu = ds->ds7.cpu; + core->timing = &ds->ds7.timing; } else { core->cpu = ds->ds9.cpu; + core->timing = &ds->ds9.timing; } debugger->d.platform->init(core->cpu, debugger->d.platform); debugger->system->printStatus(debugger->system);