mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix crash when starting GDB stub after closing a game
This commit is contained in:
parent
2235dcf2ab
commit
56475e578b
1
CHANGES
1
CHANGES
|
@ -42,6 +42,7 @@ Bugfixes:
|
|||
- GBA: Fix savestate loading of DISPSTAT and WAITCNT registers
|
||||
- Qt: Fix crash starting a GDB stub if a game isn't loaded
|
||||
- Qt: Fix crash when adjusting settings after closing a game
|
||||
- Qt: Fix crash when starting GDB stub after closing a game
|
||||
Misc:
|
||||
- GBA Audio: Change internal audio sample buffer from 32-bit to 16-bit samples
|
||||
- GBA Memory: Simplify memory API and use fixed bus width
|
||||
|
|
|
@ -170,11 +170,11 @@ ARMDebugger* GameController::debugger() {
|
|||
|
||||
void GameController::setDebugger(ARMDebugger* debugger) {
|
||||
threadInterrupt();
|
||||
if (m_threadContext.debugger && GBAThreadHasStarted(&m_threadContext)) {
|
||||
if (m_threadContext.debugger && GBAThreadIsActive(&m_threadContext)) {
|
||||
GBADetachDebugger(m_threadContext.gba);
|
||||
}
|
||||
m_threadContext.debugger = debugger;
|
||||
if (m_threadContext.debugger && GBAThreadHasStarted(&m_threadContext)) {
|
||||
if (m_threadContext.debugger && GBAThreadIsActive(&m_threadContext)) {
|
||||
GBAAttachDebugger(m_threadContext.gba, m_threadContext.debugger);
|
||||
}
|
||||
threadContinue();
|
||||
|
|
Loading…
Reference in New Issue