summaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2020-05-29 00:05:08 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2020-06-04 23:14:52 +0200
commitcb2d7f800a9fc276b96fd0927fa6d8ec9f5a31c8 (patch)
tree3fcd11e34885c4dddc459c875c94e3b958d7750a /gui
parent850010a96b6cbc3eae03edd891e50325e017b678 (diff)
downloadpcsxr-cb2d7f800a9fc276b96fd0927fa6d8ec9f5a31c8.tar.gz
Implemented port-specific wrappers and logic for gdb stub
Diffstat (limited to 'gui')
-rw-r--r--gui/LnxMain.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gui/LnxMain.c b/gui/LnxMain.c
index 12aeb5fc..2e087ee3 100644
--- a/gui/LnxMain.c
+++ b/gui/LnxMain.c
@@ -321,6 +321,11 @@ int main(int argc, char *argv[]) {
SetIsoFile(isofilename);
runcd = RUN_CD;
}
+ else if (!strcmp(argv[i], "-gdb")) {
+ /* Force configuration. */
+ Config.Cpu = CPU_INTERPRETER;
+ Config.GdbServer = 1;
+ }
else if (!strcmp(argv[i], "-h") ||
!strcmp(argv[i], "-help") ||
!strcmp(argv[i], "--help")) {
@@ -461,6 +466,8 @@ int main(int argc, char *argv[]) {
psxCpu->Execute();
}
+ if (Config.GdbServer) dbg_stop();
+
return 0;
}