all repos — mgba @ 0c332d972b6fb755a07d9292d9622f2e0b625a60

mGBA Game Boy Advance Emulator

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

0c332d972b6fb755a07d9292d9622f2e0b625a60

parent

cc53b06caecdf25dc7cfb63f1641a38f736d8884

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

@@ -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);