all repos — mgba @ 51a122f20d45119f34cca7e920c0eb9dacc15902

mGBA Game Boy Advance Emulator

include/mgba/internal/sm83/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 SM83_DEBUGGER_H
 7#define SM83_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/sm83/sm83.h>
16
17struct SM83Segment {
18	uint16_t start;
19	uint16_t end;
20	const char* name;
21};
22
23struct CLIDebuggerSystem;
24struct SM83Debugger {
25	struct mDebuggerPlatform d;
26	struct SM83Core* cpu;
27
28	struct mBreakpointList breakpoints;
29	struct mWatchpointList watchpoints;
30	struct SM83Memory originalMemory;
31
32	ssize_t nextId;
33
34	const struct SM83Segment* segments;
35
36	void (*printStatus)(struct CLIDebuggerSystem*);
37};
38
39struct mDebuggerPlatform* SM83DebuggerPlatformCreate(void);
40
41CXX_GUARD_END
42
43#endif