src/gb/cli.c (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 "cli.h"
7
8#include "lr35902/cli-debugger.h"
9
10#ifdef USE_CLI_DEBUGGER
11
12struct CLIDebuggerCommandSummary _GBCLIDebuggerCommands[] = {
13 { 0, 0, 0, 0 }
14};
15
16struct CLIDebuggerSystem* GBCLIDebuggerCreate(struct mCore* core) {
17 UNUSED(core);
18 struct CLIDebuggerSystem* debugger = malloc(sizeof(struct CLIDebuggerSystem));
19 LR35902CLIDebuggerCreate(debugger);
20 debugger->init = NULL;
21 debugger->deinit = NULL;
22 debugger->custom = NULL;
23 debugger->lookupIdentifier = NULL;
24
25 debugger->name = "Game Boy";
26 debugger->commands = _GBCLIDebuggerCommands;
27
28 return debugger;
29}
30
31#endif