All move around debugger files a bit

This commit is contained in:
Jeffrey Pfau 2016-05-08 00:52:15 -07:00
parent 72b826dd20
commit 0fa6da495d
16 changed files with 22 additions and 13 deletions

View File

@ -324,9 +324,15 @@ endif()
if(USE_CLI_DEBUGGER)
list(APPEND FEATURES CLI_DEBUGGER)
list(APPEND DEBUGGER_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/debugger/cli-debugger.c)
list(APPEND DEBUGGER_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/debugger/parser.c)
list(APPEND DEBUGGER_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/gba/extra/cli.c)
list(APPEND FEATURE_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/debugger/cli-debugger.c)
list(APPEND FEATURE_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/debugger/parser.c)
if(M_CORE_GBA)
list(APPEND FEATURE_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/arm/debugger/cli-debugger.c)
list(APPEND FEATURE_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/gba/extra/cli.c)
endif()
if(M_CORE_GB)
list(APPEND FEATURE_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/lr35902/debugger/cli-debugger.c)
endif()
include_directories(AFTER ${LIBEDIT_INCLUDE_DIRS})
link_directories(${LIBEDIT_LIBRARY_DIRS})
set(DEBUGGER_LIB ${LIBEDIT_LIBRARIES})
@ -337,9 +343,9 @@ endif()
if(USE_GDB_STUB)
list(APPEND FEATURES GDB_STUB)
list(APPEND DEBUGGER_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/debugger/gdb-stub.c)
list(APPEND FEATURE_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/debugger/gdb-stub.c)
endif()
source_group("ARM debugger" FILES ${DEBUGGER_SRC})
source_group("Debugger" FILES ${DEBUGGER_SRC})
if(USE_FFMPEG)
list(APPEND FEATURES FFMPEG)
@ -492,6 +498,7 @@ if(M_CORE_GB)
add_definitions(-DM_CORE_GB)
list(APPEND CORE_SRC
${LR35902_SRC}
${CMAKE_CURRENT_SOURCE_DIR}/src/lr35902/debugger/debugger.c
${GB_SRC}
${GB_RENDERER_SRC})
endif()
@ -500,9 +507,10 @@ if(M_CORE_GBA)
add_definitions(-DM_CORE_GBA)
list(APPEND CORE_SRC
${ARM_SRC}
${CMAKE_CURRENT_SOURCE_DIR}/src/arm/debugger/debugger.c
${CMAKE_CURRENT_SOURCE_DIR}/src/arm/debugger/memory-debugger.c
${GBA_SRC}
${GBA_CHEATS_SRC}
${DEBUGGER_SRC}
${GBA_RENDERER_SRC})
if(NOT M_CORE_GB)
list(APPEND CORE_SRC ${CMAKE_CURRENT_SOURCE_DIR}/src/gb/audio.c)
@ -530,6 +538,7 @@ endif()
list(APPEND CORE_SRC
${UTIL_SRC}
${CORE_VFS_SRC}
${DEBUGGER_SRC}
${OS_SRC}
${THIRD_PARTY_SRC})

View File

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

View File

@ -7,7 +7,7 @@
#include "arm/arm.h"
#include "arm/isa-inlines.h"
#include "arm/memory-debugger.h"
#include "arm/debugger/memory-debugger.h"
#include "core/core.h"
DEFINE_VECTOR(ARMDebugBreakpointList, struct ARMDebugBreakpoint);

View File

@ -5,7 +5,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "memory-debugger.h"
#include "arm/debugger.h"
#include "arm/debugger/debugger.h"
#include "util/math.h"

View File

@ -5,7 +5,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "cli.h"
#include "lr35902/cli-debugger.h"
#include "lr35902/debugger/cli-debugger.h"
#ifdef USE_CLI_DEBUGGER

View File

@ -9,7 +9,7 @@
#include "gb/cli.h"
#include "gb/gb.h"
#include "gb/renderers/software.h"
#include "lr35902/debugger.h"
#include "lr35902/debugger/debugger.h"
#include "util/memory.h"
#include "util/patch.h"

View File

@ -5,7 +5,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "cli.h"
#include "arm/cli-debugger.h"
#include "arm/debugger/cli-debugger.h"
#include "gba/io.h"
#include "gba/serialize.h"

View File

@ -8,6 +8,7 @@
#include "core/thread.h"
#include "arm/decoder.h"
#include "arm/debugger/debugger.h"
#include "arm/isa-inlines.h"
#include "gba/bios.h"

View File

@ -9,7 +9,6 @@
#include "util/common.h"
#include "arm/arm.h"
#include "arm/debugger.h"
#include "core/log.h"
#include "gba/interface.h"