all repos — mgba @ 2c09e6318b9b83afc15b1fb1a80bdf6e332ec946

mGBA Game Boy Advance Emulator

LR35902: Fix breakpoint clearing breaking memory access
Vicki Pfau vi@endrift.com
Sat, 23 Jun 2018 16:35:12 -0700
commit

2c09e6318b9b83afc15b1fb1a80bdf6e332ec946

parent

f1a9ebec8a34295ebeb0a4c2ba2d285009a868ed

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M src/lr35902/debugger/debugger.csrc/lr35902/debugger/debugger.c

@@ -99,6 +99,7 @@

void LR35902DebuggerInit(void* cpu, struct mDebuggerPlatform* platform) { struct LR35902Debugger* debugger = (struct LR35902Debugger*) platform; debugger->cpu = cpu; + debugger->originalMemory = debugger->cpu->memory; LR35902DebugBreakpointListInit(&debugger->breakpoints, 0); LR35902DebugWatchpointListInit(&debugger->watchpoints, 0); }