From 2c09e6318b9b83afc15b1fb1a80bdf6e332ec946 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Sat, 23 Jun 2018 16:35:12 -0700 Subject: [PATCH] LR35902: Fix breakpoint clearing breaking memory access --- src/lr35902/debugger/debugger.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lr35902/debugger/debugger.c b/src/lr35902/debugger/debugger.c index 4f899ae1e..04337f463 100644 --- a/src/lr35902/debugger/debugger.c +++ b/src/lr35902/debugger/debugger.c @@ -99,6 +99,7 @@ struct mDebuggerPlatform* LR35902DebuggerPlatformCreate(void) { 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); }