all repos — mgba @ bd30fbeb8188dbab52be8601536a06eea4753b0b

mGBA Game Boy Advance Emulator

Debugger: Export debugger interface
Vicki Pfau vi@endrift.com
Sun, 11 Jun 2017 13:28:55 -0700
commit

bd30fbeb8188dbab52be8601536a06eea4753b0b

parent

201da5adacddb6db11e023a23247e94e774260d5

M include/mgba/core/core.hinclude/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.hinclude/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.hinclude/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.hinclude/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.hinclude/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.hinclude/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.hinclude/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.hinclude/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.csrc/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.csrc/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>