Add ability to detach debugger
Jeffrey Pfau jeffrey@endrift.com
Sat, 01 Feb 2014 20:24:38 -0800
2 files changed,
6 insertions(+),
0 deletions(-)
M
src/gba/gba.c
→
src/gba/gba.c
@@ -346,6 +346,11 @@ ARMDebuggerInit(debugger, &gba->cpu);
gba->debugger = debugger; } +void GBADetachDebugger(struct GBA* gba) { + ARMDebuggerDeinit(gba->debugger); + gba->debugger = 0; +} + void GBALoadROM(struct GBA* gba, int fd, const char* fname) { struct stat info; gba->memory.rom = fileMemoryMap(fd, SIZE_CART0, MEMORY_READ);
M
src/gba/gba.h
→
src/gba/gba.h
@@ -140,6 +140,7 @@ int GBAWaitForIRQ(struct GBA* gba);
int GBAHalt(struct GBA* gba); void GBAAttachDebugger(struct GBA* gba, struct ARMDebugger* debugger); +void GBADetachDebugger(struct GBA* gba); void GBALoadROM(struct GBA* gba, int fd, const char* fname); void GBALoadBIOS(struct GBA* gba, int fd);