mirror of https://github.com/mgba-emu/mgba.git
Make GDB server able to be attached when the emulator starts
This commit is contained in:
parent
d16737ccf2
commit
8c53fbeb4f
|
@ -68,7 +68,7 @@ void GameController::setDebugger(ARMDebugger* debugger) {
|
|||
GBADetachDebugger(m_threadContext.gba);
|
||||
}
|
||||
m_threadContext.debugger = debugger;
|
||||
if (m_threadContext.debugger) {
|
||||
if (m_threadContext.debugger && GBAThreadHasStarted(&m_threadContext)) {
|
||||
GBAAttachDebugger(m_threadContext.gba, m_threadContext.debugger);
|
||||
}
|
||||
setPaused(wasPaused);
|
||||
|
|
Loading…
Reference in New Issue