Debugger: Fix some minor GB debugger issues
Jeffrey Pfau jeffrey@endrift.com
Tue, 16 Aug 2016 22:15:25 -0700
2 files changed,
2 insertions(+),
2 deletions(-)
M
src/lr35902/debugger/cli-debugger.c
→
src/lr35902/debugger/cli-debugger.c
@@ -73,7 +73,7 @@ if (strcmp(name, "pc") == 0) {
return cpu->pc; } if (strcmp(name, "sp") == 0) { - return cpu->pc; + return cpu->sp; } if (strcmp(name, "f") == 0) { return cpu->f.packed;
M
src/lr35902/debugger/debugger.c
→
src/lr35902/debugger/debugger.c
@@ -23,7 +23,7 @@ }
static void LR35902DebuggerCheckBreakpoints(struct mDebuggerPlatform* d) { struct LR35902Debugger* debugger = (struct LR35902Debugger*) d; - struct LR35902DebugBreakpoint* breakpoint = _lookupBreakpoint(&debugger->breakpoints, debugger->cpu->pc - 1); + struct LR35902DebugBreakpoint* breakpoint = _lookupBreakpoint(&debugger->breakpoints, debugger->cpu->pc); if (!breakpoint) { return; }