Qt: Implement GDB server
This commit is contained in:
committed by
Connor McLaughlin
parent
abd2399aaf
commit
7dcacc2cda
@ -11,6 +11,7 @@
|
||||
#include "gamelistsettingswidget.h"
|
||||
#include "gamelistwidget.h"
|
||||
#include "gamepropertiesdialog.h"
|
||||
#include "gdbserver.h"
|
||||
#include "memorycardeditordialog.h"
|
||||
#include "qtdisplaywidget.h"
|
||||
#include "qthostinterface.h"
|
||||
@ -814,6 +815,16 @@ void MainWindow::updateEmulationActions(bool starting, bool running)
|
||||
}
|
||||
}
|
||||
|
||||
if (g_settings.debugging.enable_gdb_server) {
|
||||
if (starting && !m_gdb_server) {
|
||||
m_gdb_server = new GDBServer(this, g_settings.debugging.gdb_server_port);
|
||||
}
|
||||
else if (!running && m_gdb_server) {
|
||||
delete m_gdb_server;
|
||||
m_gdb_server = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
m_ui.statusBar->clearMessage();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user