Debugger: Export debugger interface
Vicki Pfau vi@endrift.com
Sun, 11 Jun 2017 13:28:55 -0700
10 files changed,
15 insertions(+),
20 deletions(-)
jump to
M
include/mgba/core/core.h
→
include/mgba/core/core.h
@@ -19,8 +19,7 @@ #include <mgba/core/input.h>
#endif #include <mgba/core/interface.h> #ifdef USE_DEBUGGERS -// TODO: Fix layering violation -#include <mgba/internal/debugger/debugger.h> +#include <mgba/debugger/debugger.h> #endif enum mPlatform {
M
include/mgba/feature/commandline.h
→
include/mgba/feature/commandline.h
@@ -12,7 +12,7 @@ CXX_GUARD_START
#include <mgba-util/table.h> -#include <mgba/internal/debugger/debugger.h> +#include <mgba/debugger/debugger.h> struct mArguments { char* fname;
M
include/mgba/internal/arm/debugger/debugger.h
→
include/mgba/internal/arm/debugger/debugger.h
@@ -10,9 +10,10 @@ #include <mgba-util/common.h>
CXX_GUARD_START -#include <mgba/internal/debugger/debugger.h> +#include <mgba/debugger/debugger.h> #include <mgba/internal/arm/arm.h> +#include <mgba-util/vector.h> struct ARMDebugBreakpoint { uint32_t address;
M
include/mgba/internal/debugger/cli-debugger.h
→
include/mgba/internal/debugger/cli-debugger.h
@@ -10,7 +10,10 @@ #include <mgba-util/common.h>
CXX_GUARD_START -#include <mgba/internal/debugger/debugger.h> +#include <mgba/debugger/debugger.h> + +extern const char* ERROR_MISSING_ARGS; +extern const char* ERROR_OVERFLOW; struct CLIDebugger;
M
include/mgba/internal/debugger/debugger.h
→
include/mgba/debugger/debugger.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2013-2014 Jeffrey Pfau +/* Copyright (c) 2013-2017 Jeffrey Pfau * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this@@ -12,7 +12,6 @@ CXX_GUARD_START
#include <mgba/core/cpu.h> #include <mgba/core/log.h> -#include <mgba-util/vector.h> mLOG_DECLARE_CATEGORY(DEBUGGER);@@ -52,14 +51,6 @@ DEBUGGER_ENTER_BREAKPOINT,
DEBUGGER_ENTER_WATCHPOINT, DEBUGGER_ENTER_ILLEGAL_OP }; - -struct mDebugWatchpoint { - uint32_t address; - enum mWatchpointType type; -}; - -extern const char* ERROR_MISSING_ARGS; -extern const char* ERROR_OVERFLOW; struct mDebuggerEntryInfo { uint32_t address;
M
include/mgba/internal/debugger/gdb-stub.h
→
include/mgba/internal/debugger/gdb-stub.h
@@ -10,7 +10,7 @@ #include <mgba-util/common.h>
CXX_GUARD_START -#include <mgba/internal/debugger/debugger.h> +#include <mgba/debugger/debugger.h> #include <mgba-util/socket.h>
M
include/mgba/internal/debugger/parser.h
→
include/mgba/internal/debugger/parser.h
@@ -10,7 +10,7 @@ #include <mgba-util/common.h>
CXX_GUARD_START -#include <mgba/internal/debugger/debugger.h> +#include <mgba/debugger/debugger.h> enum LexState { LEX_ERROR = -1,
M
include/mgba/internal/lr35902/debugger/debugger.h
→
include/mgba/internal/lr35902/debugger/debugger.h
@@ -10,9 +10,10 @@ #include <mgba-util/common.h>
CXX_GUARD_START -#include <mgba/internal/debugger/debugger.h> +#include <mgba/debugger/debugger.h> #include <mgba/internal/lr35902/lr35902.h> +#include <mgba-util/vector.h> struct LR35902DebugBreakpoint {
M
src/debugger/debugger.c
→
src/debugger/debugger.c
@@ -3,7 +3,7 @@ *
* This Source Code Form is subject to the terms of the Mozilla Public * 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 <mgba/internal/debugger/debugger.h> +#include <mgba/debugger/debugger.h> #include <mgba/core/core.h>
M
src/platform/sdl/sdl-events.c
→
src/platform/sdl/sdl-events.c
@@ -9,7 +9,7 @@ #include <mgba/core/core.h>
#include <mgba/core/input.h> #include <mgba/core/serialize.h> #include <mgba/core/thread.h> -#include <mgba/internal/debugger/debugger.h> +#include <mgba/debugger/debugger.h> #include <mgba/internal/gba/input.h> #include <mgba-util/configuration.h> #include <mgba-util/formatting.h>