mirror of https://github.com/mgba-emu/mgba.git
Qt: Fix gdb at startup (fixes #2986)
This commit is contained in:
parent
fdfa73a7f5
commit
1bb8d52e16
|
@ -207,7 +207,14 @@ void Window::argumentsPassed() {
|
||||||
|
|
||||||
#ifdef USE_GDB_STUB
|
#ifdef USE_GDB_STUB
|
||||||
if (args->debugGdb) {
|
if (args->debugGdb) {
|
||||||
gdbOpen();
|
if (!m_gdbController) {
|
||||||
|
m_gdbController = new GDBController(this);
|
||||||
|
}
|
||||||
|
if (m_controller) {
|
||||||
|
m_gdbController->setController(m_controller);
|
||||||
|
}
|
||||||
|
m_gdbController->attach();
|
||||||
|
m_gdbController->listen();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue