include/mgba/internal/lr35902/debugger/debugger.h (view raw)
1/* Copyright (c) 2013-2016 Jeffrey Pfau
2 *
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6#ifndef LR35902_DEBUGGER_H
7#define LR35902_DEBUGGER_H
8
9#include <mgba-util/common.h>
10
11CXX_GUARD_START
12
13#include <mgba/debugger/debugger.h>
14
15#include <mgba/internal/lr35902/lr35902.h>
16
17struct LR35902Segment {
18 uint16_t start;
19 uint16_t end;
20 const char* name;
21};
22
23struct CLIDebuggerSystem;
24struct LR35902Debugger {
25 struct mDebuggerPlatform d;
26 struct LR35902Core* cpu;
27
28 struct mBreakpointList breakpoints;
29 struct mWatchpointList watchpoints;
30 struct LR35902Memory originalMemory;
31
32 ssize_t nextId;
33
34 const struct LR35902Segment* segments;
35
36 void (*printStatus)(struct CLIDebuggerSystem*);
37};
38
39struct mDebuggerPlatform* LR35902DebuggerPlatformCreate(void);
40
41CXX_GUARD_END
42
43#endif