Debugger: Export debugger interface

This commit is contained in:
Vicki Pfau 2017-06-11 13:28:55 -07:00
parent 201da5adac
commit bd30fbeb81
10 changed files with 15 additions and 20 deletions

View File

@ -19,8 +19,7 @@ CXX_GUARD_START
#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 {

View File

@ -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);
@ -53,14 +52,6 @@ enum mDebuggerEntryReason {
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;
union {

View File

@ -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;

View File

@ -10,9 +10,10 @@
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;

View File

@ -10,7 +10,10 @@
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;

View File

@ -10,7 +10,7 @@
CXX_GUARD_START
#include <mgba/internal/debugger/debugger.h>
#include <mgba/debugger/debugger.h>
#include <mgba-util/socket.h>

View File

@ -10,7 +10,7 @@
CXX_GUARD_START
#include <mgba/internal/debugger/debugger.h>
#include <mgba/debugger/debugger.h>
enum LexState {
LEX_ERROR = -1,

View File

@ -10,9 +10,10 @@
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 {

View File

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

View File

@ -9,7 +9,7 @@
#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>