DS: Fix non-debuggers build
Vicki Pfau vi@endrift.com
Thu, 23 Feb 2017 17:05:24 -0800
2 files changed,
4 insertions(+),
1 deletions(-)
M
CMakeLists.txt
→
CMakeLists.txt
@@ -646,7 +646,8 @@ ${DS_RENDERER_SRC})
list(APPEND DEBUGGER_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/arm/debugger/cli-debugger.c ${CMAKE_CURRENT_SOURCE_DIR}/src/arm/debugger/debugger.c - ${CMAKE_CURRENT_SOURCE_DIR}/src/arm/debugger/memory-debugger.c) + ${CMAKE_CURRENT_SOURCE_DIR}/src/arm/debugger/memory-debugger.c + ${CMAKE_CURRENT_SOURCE_DIR}/src/ds/extra/cli.c) endif() source_group("Virtual files" FILES ${CORE_VFS_SRC} ${VFS_SRC})
M
src/ds/core.c
→
src/ds/core.c
@@ -402,6 +402,7 @@
static void _DSCoreRawWrite32(struct mCore* core, uint32_t address, int segment, uint32_t value) { } +#ifdef USE_DEBUGGERS static bool _DSCoreSupportsDebuggerType(struct mCore* core, enum mDebuggerType type) { UNUSED(core); switch (type) {@@ -440,6 +441,7 @@ static void _DSCoreDetachDebugger(struct mCore* core) {
DSDetachDebugger(core->board); core->debugger = NULL; } +#endif static struct mCheatDevice* _DSCoreCheatDevice(struct mCore* core) { return NULL;