all repos — mgba @ 0fa6da495d80052b4231e84fd843e5010cf5c2c5

mGBA Game Boy Advance Emulator

All move around debugger files a bit
Jeffrey Pfau jeffrey@endrift.com
Sun, 08 May 2016 00:52:15 -0700
commit

0fa6da495d80052b4231e84fd843e5010cf5c2c5

parent

72b826dd2077dcc4affe3dc0388750c3b7b13d7c

M CMakeLists.txtCMakeLists.txt

@@ -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 @@ # Binaries

list(APPEND CORE_SRC ${UTIL_SRC} ${CORE_VFS_SRC} + ${DEBUGGER_SRC} ${OS_SRC} ${THIRD_PARTY_SRC})
M src/arm/cli-debugger.csrc/arm/debugger/cli-debugger.c

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

#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"
M src/arm/debugger.csrc/arm/debugger/debugger.c

@@ -7,7 +7,7 @@ #include "debugger.h"

#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);
M src/arm/memory-debugger.csrc/arm/debugger/memory-debugger.c

@@ -5,7 +5,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this

* 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"
M src/gb/cli.csrc/gb/cli.c

@@ -5,7 +5,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this

* 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
M src/gb/core.csrc/gb/core.c

@@ -9,7 +9,7 @@ #include "core/core.h"

#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"
M src/gba/extra/cli.csrc/gba/extra/cli.c

@@ -5,7 +5,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this

* 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"
M src/gba/gba.csrc/gba/gba.c

@@ -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"
M src/gba/gba.hsrc/gba/gba.h

@@ -9,7 +9,6 @@

#include "util/common.h" #include "arm/arm.h" -#include "arm/debugger.h" #include "core/log.h" #include "gba/interface.h"