Permalink
Browse files

LR35902: Fix breakpoint clearing breaking memory access

  • Loading branch information...
endrift committed Jun 23, 2018
1 parent f1a9ebe commit 2c09e6318b9b83afc15b1fb1a80bdf6e332ec946
Showing with 1 addition and 0 deletions.
  1. +1 −0 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);
}

0 comments on commit 2c09e63

Please sign in to comment.