diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2020-05-23 01:06:07 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2020-05-23 18:05:53 +0200 |
| commit | 470da05658a97a51bd2ad2db7834bcc13dd995fd (patch) | |
| tree | f2c85327bfe13813098446ff91a61b725116fa86 /gui | |
| parent | aea565d558f929729c0cb889f9c3296f2f487d0d (diff) | |
| download | pcsxr-470da05658a97a51bd2ad2db7834bcc13dd995fd.tar.gz | |
Started implementing GDB server
Diffstat (limited to 'gui')
| -rw-r--r-- | gui/ConfDlg.c | 4 | ||||
| -rw-r--r-- | gui/LnxMain.c | 6 |
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; } |
