Make GDB server able to be detached before GBA thread starts
Jeffrey Pfau jeffrey@endrift.com
Mon, 03 Feb 2014 03:45:43 -0800
1 files changed,
1 insertions(+),
1 deletions(-)
M
src/platform/qt/GameController.cpp
→
src/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;