all repos — mgba @ 244f19774210b923778e123b58df9dbb9173d14e

mGBA Game Boy Advance Emulator

src/debugger/gdb-stub.h (view raw)

 1#ifndef GDB_STUB_H
 2#define GDB_STUB_H
 3
 4#include "debugger.h"
 5
 6#define GDB_STUB_MAX_LINE 256
 7
 8struct GDBStub {
 9	struct ARMDebugger d;
10
11	char line[GDB_STUB_MAX_LINE];
12
13	int socket;
14	int connection;
15};
16
17void GDBStubCreate(struct GDBStub*);
18int GDBStubListen(struct GDBStub*, int port, uint32_t bindAddress);
19
20void GDBStubHangup(struct GDBStub*);
21void GDBStubShutdown(struct GDBStub*);
22
23void GDBStubUpdate(struct GDBStub*);
24
25#endif