all repos — mgba @ 5486e013e0665e3d13168d1500c7f99a4af0ee44

mGBA Game Boy Advance Emulator

Debugger: Fix setting software breakpoints
Jeffrey Pfau jeffrey@endrift.com
Thu, 15 Sep 2016 09:33:13 -0700
commit

5486e013e0665e3d13168d1500c7f99a4af0ee44

parent

e28782900da3915e8c8f63efac7d4b5b3402ded3

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

jump to
M src/arm/debugger/cli-debugger.csrc/arm/debugger/cli-debugger.c

@@ -6,6 +6,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "cli-debugger.h" #ifdef USE_CLI_DEBUGGER +#include "arm/debugger/debugger.h" #include "arm/debugger/memory-debugger.h" #include "arm/decoder.h" #include "core/core.h"

@@ -167,7 +168,7 @@ printf("%s\n", ERROR_MISSING_ARGS);

return; } uint32_t address = dv->intValue; - ARMDebuggerSetSoftwareBreakpoint(&debugger->d, address, MODE_ARM); + ARMDebuggerSetSoftwareBreakpoint(debugger->d.platform, address, MODE_ARM); } static void _setBreakpointThumb(struct CLIDebugger* debugger, struct CLIDebugVector* dv) {

@@ -176,7 +177,7 @@ printf("%s\n", ERROR_MISSING_ARGS);

return; } uint32_t address = dv->intValue; - ARMDebuggerSetSoftwareBreakpoint(&debugger->d, address, MODE_THUMB); + ARMDebuggerSetSoftwareBreakpoint(debugger->d.platform, address, MODE_THUMB); } static uint32_t _lookupPlatformIdentifier(struct CLIDebuggerSystem* debugger, const char* name, struct CLIDebugVector* dv) {