src/lr35902/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#include "debugger/debugger.h"
7
8struct LR35902DebugBreakpoint {
9 uint16_t address;
10 int segment;
11};
12
13struct LR35902DebugWatchpoint {
14 uint16_t address;
15 int segment;
16 enum mWatchpointType type;
17};
18
19DECLARE_VECTOR(LR35902DebugBreakpointList, struct LR35902DebugBreakpoint);
20DECLARE_VECTOR(LR35902DebugWatchpointList, struct LR35902DebugWatchpoint);
21
22struct LR35902Debugger {
23 struct mDebuggerPlatform d;
24 struct LR35902Core* cpu;
25
26 struct LR35902DebugBreakpointList breakpoints;
27 struct LR35902DebugWatchpointList watchpoints;
28};
29
30struct mDebuggerPlatform* LR35902DebuggerPlatformCreate(void);