diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2020-05-29 00:05:08 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2020-06-04 23:14:52 +0200 |
| commit | cb2d7f800a9fc276b96fd0927fa6d8ec9f5a31c8 (patch) | |
| tree | 3fcd11e34885c4dddc459c875c94e3b958d7750a /gui | |
| parent | 850010a96b6cbc3eae03edd891e50325e017b678 (diff) | |
| download | pcsxr-cb2d7f800a9fc276b96fd0927fa6d8ec9f5a31c8.tar.gz | |
Implemented port-specific wrappers and logic for gdb stub
Diffstat (limited to 'gui')
| -rw-r--r-- | gui/LnxMain.c | 7 |
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; } |
