summaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2020-05-23 01:06:07 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2020-05-23 18:05:53 +0200
commit470da05658a97a51bd2ad2db7834bcc13dd995fd (patch)
treef2c85327bfe13813098446ff91a61b725116fa86 /gui
parentaea565d558f929729c0cb889f9c3296f2f487d0d (diff)
downloadpcsxr-470da05658a97a51bd2ad2db7834bcc13dd995fd.tar.gz
Started implementing GDB server
Diffstat (limited to 'gui')
-rw-r--r--gui/ConfDlg.c4
-rw-r--r--gui/LnxMain.c6
2 files changed, 9 insertions, 1 deletions
diff --git a/gui/ConfDlg.c b/gui/ConfDlg.c
index e40a99fa..2e16be08 100644
--- a/gui/ConfDlg.c
+++ b/gui/ConfDlg.c
@@ -929,6 +929,10 @@ void OnCpu_Clicked(GtkDialog *dialog, gint arg1, gpointer user_data) {
else StopDebugger();
}
+ if (Config.GdbServer) {
+ GdbStartServer();
+ }
+
t = Config.Cpu;
Config.Cpu = gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(gtk_builder_get_object(builder, "GtkCheckButton_Cpu")));
if (t != Config.Cpu) {
diff --git a/gui/LnxMain.c b/gui/LnxMain.c
index d6dd9316..19187836 100644
--- a/gui/LnxMain.c
+++ b/gui/LnxMain.c
@@ -443,7 +443,7 @@ int main(int argc, char *argv[]) {
}
}
}
-
+
if (loadst==0) {
loadst = UpdateMenuSlots() + 1;
}
@@ -494,6 +494,10 @@ int SysInit() {
StartDebugger();
}
+ if (Config.GdbServer) {
+ GdbStartServer();
+ }
+
return 0;
}