Added "-gdb" command line argument to start gdb stub

This commit is contained in:
Xavier Del Campo Romero 2020-06-02 23:24:24 +02:00
parent cb2d7f800a
commit ece90128a0
1 changed files with 6 additions and 0 deletions

View File

@ -225,6 +225,12 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
return 0;
}
else if (strcmp(arg, "-gdb") == 0) {
/* Force configuration. */
Config.Cpu = CPU_INTERPRETER;
Config.GdbServer = 1;
dbg_start();
}
}
if (SysInit() == -1) return 1;