all repos — mgba @ c6dd9b6e6498059f28b8a5847ddb8826d07f782d

mGBA Game Boy Advance Emulator

Debugger: Fix some minor GB debugger issues
Jeffrey Pfau jeffrey@endrift.com
Tue, 16 Aug 2016 22:15:25 -0700
commit

c6dd9b6e6498059f28b8a5847ddb8826d07f782d

parent

071406b3a1b5480e87a5dfbc1081ce5c29b2bd28

2 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/lr35902/debugger/cli-debugger.csrc/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.csrc/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; }