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

@@ -1,3 +1,8 @@
2017-10-10 NIIBE Yutaka <gniibe@fsij.org>
* src/main.c (main): Support --debug option.
* chopstx: Update to 1.5.
2017-10-06 NIIBE Yutaka <gniibe@fsij.org>
* src/configure (flash_override): Fix suggested by Jeremy Drake.

Submodule chopstx updated: c08044e22b...96d2a81331

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[];