Added "-gdb" command line argument to start gdb stub
This commit is contained in:
parent
cb2d7f800a
commit
ece90128a0
|
@ -225,6 +225,12 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
else if (strcmp(arg, "-gdb") == 0) {
|
||||||
|
/* Force configuration. */
|
||||||
|
Config.Cpu = CPU_INTERPRETER;
|
||||||
|
Config.GdbServer = 1;
|
||||||
|
dbg_start();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (SysInit() == -1) return 1;
|
if (SysInit() == -1) return 1;
|
||||||
|
|
Loading…
Reference in New Issue