all repos — mgba @ 7bee81384633501bfc7bdee0138d0828d8b7b6d7

mGBA Game Boy Advance Emulator

Make GDB server able to be detached before GBA thread starts
Jeffrey Pfau jeffrey@endrift.com
Mon, 03 Feb 2014 03:45:43 -0800
commit

7bee81384633501bfc7bdee0138d0828d8b7b6d7

parent

844cee07e8a16130d1f2df8886ab342df68923de

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/platform/qt/GameController.cppsrc/platform/qt/GameController.cpp

@@ -64,7 +64,7 @@

void GameController::setDebugger(ARMDebugger* debugger) { bool wasPaused = isPaused(); setPaused(true); - if (m_threadContext.debugger) { + if (m_threadContext.debugger && GBAThreadHasStarted(&m_threadContext)) { GBADetachDebugger(m_threadContext.gba); } m_threadContext.debugger = debugger;