all repos — mgba @ 8c53fbeb4f22b008a903fcacfac18c744d986cdc

mGBA Game Boy Advance Emulator

Make GDB server able to be attached when the emulator starts
Jeffrey Pfau jeffrey@endrift.com
Mon, 03 Feb 2014 03:42:29 -0800
commit

8c53fbeb4f22b008a903fcacfac18c744d986cdc

parent

d16737ccf2df09323d354b007ffd25da45c036ad

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

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

@@ -68,7 +68,7 @@ if (m_threadContext.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);