Debugger: Fix setting software breakpoints
Jeffrey Pfau jeffrey@endrift.com
Thu, 15 Sep 2016 09:33:13 -0700
1 files changed,
3 insertions(+),
2 deletions(-)
jump to
M
src/arm/debugger/cli-debugger.c
→
src/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) {