Qt: Fix gdb at startup (fixes #2986)

This commit is contained in:
Vicki Pfau 2023-08-05 17:58:12 -07:00
parent fdfa73a7f5
commit 1bb8d52e16
1 changed files with 8 additions and 1 deletions

View File

@ -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