src/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 "util/common.h"
10
11CXX_GUARD_START
12
13#include "debugger/debugger.h"
14
15struct LR35902DebugBreakpoint {
16 uint16_t address;
17 int segment;
18};
19
20struct LR35902DebugWatchpoint {
21 uint16_t address;
22 int segment;
23 enum mWatchpointType type;
24};
25
26DECLARE_VECTOR(LR35902DebugBreakpointList, struct LR35902DebugBreakpoint);
27DECLARE_VECTOR(LR35902DebugWatchpointList, struct LR35902DebugWatchpoint);
28
29struct LR35902Debugger {
30 struct mDebuggerPlatform d;
31 struct LR35902Core* cpu;
32
33 struct LR35902DebugBreakpointList breakpoints;
34 struct LR35902DebugWatchpointList watchpoints;
35};
36
37struct mDebuggerPlatform* LR35902DebuggerPlatformCreate(void);
38
39CXX_GUARD_END
40
41#endif