Support --debug option for GNU/Linux emulation.

This commit is contained in:
NIIBE Yutaka
2017-10-10 14:36:34 +09:00
parent a1b8e7f40c
commit 0c901d8052
3 changed files with 13 additions and 1 deletions

View File

@@ -240,6 +240,13 @@ main (int argc, const char *argv[])
exit (0);
}
if (argc >= 2 && !strncmp (argv[1], "--debug=", 8))
{
debug = strtol (&argv[1][8], NULL, 10);
argc--;
argv++;
}
if (argc >= 2 && !strncmp (argv[1], "--vidpid=", 9))
{
extern uint8_t device_desc[];