mirror of https://github.com/mgba-emu/mgba.git
Add ability to detach debugger
This commit is contained in:
parent
cc53b06cae
commit
0c332d972b
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue