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 LR35902Debugger {
24 struct mDebuggerPlatform d;
25 struct LR35902Core* cpu;
26
27 struct mBreakpointList breakpoints;
28 struct mWatchpointList watchpoints;
29 struct LR35902Memory originalMemory;
30
31 ssize_t nextId;
32
33 const struct LR35902Segment* segments;
34};
35
36struct mDebuggerPlatform* LR35902DebuggerPlatformCreate(void);
37
38CXX_GUARD_END
39
40#endif