Add ability to detach debugger

This commit is contained in:
Jeffrey Pfau 2014-02-01 20:24:38 -08:00
parent cc53b06cae
commit 0c332d972b
2 changed files with 6 additions and 0 deletions

View File

@ -346,6 +346,11 @@ void GBAAttachDebugger(struct GBA* gba, struct ARMDebugger* debugger) {
gba->debugger = debugger; gba->debugger = debugger;
} }
void GBADetachDebugger(struct GBA* gba) {
ARMDebuggerDeinit(gba->debugger);
gba->debugger = 0;
}
void GBALoadROM(struct GBA* gba, int fd, const char* fname) { void GBALoadROM(struct GBA* gba, int fd, const char* fname) {
struct stat info; struct stat info;
gba->memory.rom = fileMemoryMap(fd, SIZE_CART0, MEMORY_READ); gba->memory.rom = fileMemoryMap(fd, SIZE_CART0, MEMORY_READ);

View File

@ -140,6 +140,7 @@ int GBAWaitForIRQ(struct GBA* gba);
int GBAHalt(struct GBA* gba); int GBAHalt(struct GBA* gba);
void GBAAttachDebugger(struct GBA* gba, struct ARMDebugger* debugger); void GBAAttachDebugger(struct GBA* gba, struct ARMDebugger* debugger);
void GBADetachDebugger(struct GBA* gba);
void GBALoadROM(struct GBA* gba, int fd, const char* fname); void GBALoadROM(struct GBA* gba, int fd, const char* fname);
void GBALoadBIOS(struct GBA* gba, int fd); void GBALoadBIOS(struct GBA* gba, int fd);