summaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
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;
}