all repos — mgba @ 04f3fdf21ea5bc446c461fc427eec2f0eb46417f

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

04f3fdf21ea5bc446c461fc427eec2f0eb46417f

parent

47f3358186f8871ecff0e7514bda2f36124fcbef

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

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

@@ -69,6 +69,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); }