Debugger: Some memory debugger fixes

This commit is contained in:
Jeffrey Pfau 2016-04-29 00:17:43 -07:00
parent 5c9d5d9ddf
commit 37a0839a25
1 changed files with 6 additions and 4 deletions

View File

@ -14,16 +14,18 @@
static bool _checkWatchpoints(struct ARMDebugger* debugger, uint32_t address, struct mDebuggerEntryInfo* info, enum mWatchpointType type, uint32_t newValue, int width);
#define FIND_DEBUGGER(DEBUGGER, CPU) \
{ \
do { \
DEBUGGER = 0; \
size_t i; \
for (i = 0; i < CPU->numComponents; ++i) { \
if (CPU->components[i]->id == DEBUGGER_ID) { \
DEBUGGER = (struct ARMDebugger*) cpu->components[i]; \
break; \
DEBUGGER = (struct ARMDebugger*) ((struct mDebugger*) cpu->components[i])->platform; \
goto debuggerFound; \
} \
} \
}
abort(); \
debuggerFound: break; \
} while(0)
#define CREATE_SHIM(NAME, RETURN, TYPES, ...) \
static RETURN DebuggerShim_ ## NAME TYPES { \