Add --start_debug_server cmdline argument to nuttx-stm32f4 target (#1586)

JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com
This commit is contained in:
Robert Sipka 2017-02-16 14:19:51 +01:00 committed by GitHub
parent fdd31f20b5
commit 68afd14f7c

View File

@ -41,10 +41,11 @@ print_help (char *name)
jerry_port_console ("Usage: %s [OPTION]... [FILE]...\n" jerry_port_console ("Usage: %s [OPTION]... [FILE]...\n"
"\n" "\n"
"Options:\n" "Options:\n"
" --log-level [0-3]\n"
" --mem-stats\n" " --mem-stats\n"
" --mem-stats-separate\n" " --mem-stats-separate\n"
" --show-opcodes\n" " --show-opcodes\n"
" --log-level [0-3]\n" " --start-debug-server\n"
"\n", "\n",
name); name);
} /* print_help */ } /* print_help */
@ -233,6 +234,10 @@ int jerry_main (int argc, char *argv[])
return JERRY_STANDALONE_EXIT_CODE_FAIL; return JERRY_STANDALONE_EXIT_CODE_FAIL;
} }
} }
else if (!strcmp ("--start-debug-server", argv[i]))
{
flags |= JERRY_INIT_DEBUGGER;
}
else else
{ {
file_names[files_counter++] = argv[i]; file_names[files_counter++] = argv[i];