all repos — mgba @ adcfc37db2c3b63367524a61f6a1f3d5577d6ca5

mGBA Game Boy Advance Emulator

Add ability to detach debugger
Jeffrey Pfau jeffrey@endrift.com
Sat, 01 Feb 2014 20:24:38 -0800
commit

adcfc37db2c3b63367524a61f6a1f3d5577d6ca5

parent

11e3bdc58577540dfe888b68c8b4249ed16e025c

2 files changed, 6 insertions(+), 0 deletions(-)

jump to
M src/gba/gba.csrc/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.hsrc/gba/gba.h

@@ -141,6 +141,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);