cmd: add missing usage vars

we should have caught them all - hopefully.

Change-Id: I35435317fccaf5ad0216244d69f76db6857bb582
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/381
Tested-by: jenkins
Reviewed-by: Øyvind Harboe <oyvindharboe@gmail.com>
This commit is contained in:
Spencer Oliver 2012-01-16 13:35:23 +00:00
parent eae6353ca4
commit 0c2f8b6eb8
29 changed files with 52 additions and 0 deletions

View File

@ -1386,6 +1386,7 @@ static const struct command_registration mflash_config_command_handlers[] = {
.mode = COMMAND_CONFIG,
.handler = handle_mflash_init_command,
.help = "initialize mflash devices",
.usage = ""
},
COMMAND_REGISTRATION_DONE
};
@ -1394,6 +1395,7 @@ static const struct command_registration mflash_command_handler[] = {
.name = "mflash",
.mode = COMMAND_ANY,
.help = "mflash command group",
.usage = "",
.chain = mflash_config_command_handlers,
},
COMMAND_REGISTRATION_DONE

View File

@ -716,6 +716,7 @@ static const struct command_registration at91sam9_command_handler[] = {
.name = "at91sam9",
.mode = COMMAND_ANY,
.help = "AT91SAM9 NAND flash controller commands",
.usage = "",
.chain = at91sam9_sub_command_handlers,
},
COMMAND_REGISTRATION_DONE

View File

@ -1338,6 +1338,7 @@ static const struct command_registration lpc3180_command_handler[] = {
.name = "lpc3180",
.mode = COMMAND_ANY,
.help = "LPC3180 NAND flash controller commands",
.usage = "",
.chain = lpc3180_exec_command_handlers,
},
COMMAND_REGISTRATION_DONE

View File

@ -1806,6 +1806,7 @@ static const struct command_registration lpc32xx_command_handler[] = {
.name = "lpc32xx",
.mode = COMMAND_ANY,
.help = "LPC32xx NAND flash controller commands",
.usage = "",
.chain = lpc32xx_exec_command_handlers,
},
COMMAND_REGISTRATION_DONE

View File

@ -629,12 +629,14 @@ static const struct command_registration nand_config_command_handlers[] = {
.handler = &handle_nand_list_drivers,
.mode = COMMAND_ANY,
.help = "lists available NAND drivers",
.usage = ""
},
{
.name = "init",
.mode = COMMAND_CONFIG,
.handler = &handle_nand_init_command,
.help = "initialize NAND devices",
.usage = ""
},
COMMAND_REGISTRATION_DONE
};
@ -643,6 +645,7 @@ static const struct command_registration nand_command_handlers[] = {
.name = "nand",
.mode = COMMAND_ANY,
.help = "NAND flash command group",
.usage = "",
.chain = nand_config_command_handlers,
},
COMMAND_REGISTRATION_DONE

View File

@ -863,6 +863,7 @@ static const struct command_registration jtag_subcommand_handlers[] = {
.mode = COMMAND_ANY,
.handler = handle_jtag_init_command,
.help = "initialize jtag scan chain",
.usage = ""
},
{
.name = "arp_init",
@ -1356,6 +1357,7 @@ static const struct command_registration jtag_command_handlers[] = {
.handler = handle_scan_chain_command,
.mode = COMMAND_ANY,
.help = "print current scan chain configuration",
.usage = ""
},
{
.name = "jtag_reset",
@ -1420,6 +1422,7 @@ static const struct command_registration jtag_command_handlers[] = {
.name = "jtag",
.mode = COMMAND_ANY,
.help = "perform jtag tap actions",
.usage = "",
.chain = jtag_subcommand_handlers,
},

View File

@ -244,6 +244,7 @@ static const struct command_registration pld_config_command_handlers[] = {
.mode = COMMAND_CONFIG,
.handler = handle_pld_init_command,
.help = "initialize PLD devices",
.usage = ""
},
COMMAND_REGISTRATION_DONE
};
@ -252,6 +253,7 @@ static const struct command_registration pld_command_handler[] = {
.name = "pld",
.mode = COMMAND_ANY,
.help = "programmable logic device commands",
.usage = "",
.chain = pld_config_command_handlers,
},
COMMAND_REGISTRATION_DONE

View File

@ -238,6 +238,7 @@ static const struct command_registration virtex2_command_handler[] = {
.name = "virtex2",
.mode = COMMAND_ANY,
.help = "Virtex-II specific commands",
.usage = "",
.chain = virtex2_exec_command_handlers,
},
COMMAND_REGISTRATION_DONE

View File

@ -2603,6 +2603,7 @@ static const struct command_registration gdb_command_handlers[] = {
.help = "next stepi will return immediately allowing "
"GDB to fetch register state without affecting "
"target state",
.usage = ""
},
{
.name = "gdb_port",

View File

@ -625,6 +625,7 @@ static const struct command_registration server_command_handlers[] = {
.name = "shutdown",
.handler = &handle_shutdown_command,
.mode = COMMAND_ANY,
.usage = "",
.help = "shut the server down",
},
COMMAND_REGISTRATION_DONE

View File

@ -611,6 +611,7 @@ static const struct command_registration telnet_command_handlers[] = {
.name = "exit",
.handler = handle_exit_command,
.mode = COMMAND_EXEC,
.usage = "",
.help = "exit telnet session",
},
{

View File

@ -1355,6 +1355,7 @@ static const struct command_registration arm11_any_command_handlers[] = {
.name = "memwrite",
.mode = COMMAND_ANY,
.help = "memwrite command group",
.usage = "",
.chain = arm11_mw_command_handlers,
},
{
@ -1386,6 +1387,7 @@ static const struct command_registration arm11_command_handlers[] = {
.name = "arm11",
.mode = COMMAND_ANY,
.help = "ARM11 command group",
.usage = "",
.chain = arm11_any_command_handlers,
},
COMMAND_REGISTRATION_DONE

View File

@ -570,6 +570,7 @@ static const struct command_registration arm720t_command_handlers[] = {
.name = "arm720t",
.mode = COMMAND_ANY,
.help = "arm720t command group",
.usage = "",
.chain = arm720t_exec_command_handlers,
},
COMMAND_REGISTRATION_DONE

View File

@ -2999,6 +2999,7 @@ const struct command_registration arm7_9_command_handlers[] = {
.name = "arm7_9",
.mode = COMMAND_ANY,
.help = "arm7/9 specific commands",
.usage = "",
.chain = arm7_9_any_command_handlers,
},
COMMAND_REGISTRATION_DONE

View File

@ -1724,6 +1724,7 @@ static const struct command_registration arm920t_exec_command_handlers[] = {
.name = "cache_info",
.handler = arm920t_handle_cache_info_command,
.mode = COMMAND_EXEC,
.usage = "",
.help = "display information about target caches",
},
{
@ -1750,6 +1751,7 @@ const struct command_registration arm920t_command_handlers[] = {
.name = "arm920t",
.mode = COMMAND_ANY,
.help = "arm920t command group",
.usage = "",
.chain = arm920t_exec_command_handlers,
},
COMMAND_REGISTRATION_DONE

View File

@ -801,6 +801,7 @@ static const struct command_registration arm926ejs_exec_command_handlers[] = {
.name = "cache_info",
.handler = arm926ejs_handle_cache_info_command,
.mode = COMMAND_EXEC,
.usage = "",
.help = "display information about target caches",
},
@ -814,6 +815,7 @@ const struct command_registration arm926ejs_command_handlers[] = {
.name = "arm926ejs",
.mode = COMMAND_ANY,
.help = "arm926ejs command group",
.usage = "",
.chain = arm926ejs_exec_command_handlers,
},
COMMAND_REGISTRATION_DONE

View File

@ -657,6 +657,7 @@ const struct command_registration arm946e_command_handlers[] = {
.name = "arm946e",
.mode = COMMAND_ANY,
.help = "arm946e command group",
.usage = "",
.chain = arm946e_exec_command_handlers,
},
COMMAND_REGISTRATION_DONE

View File

@ -247,6 +247,7 @@ const struct command_registration arm966e_command_handlers[] = {
.name = "arm966e",
.mode = COMMAND_ANY,
.help = "arm966e command group",
.usage = "",
.chain = arm966e_exec_command_handlers,
},
COMMAND_REGISTRATION_DONE

View File

@ -927,6 +927,7 @@ const struct command_registration arm9tdmi_command_handlers[] = {
.name = "arm9",
.mode = COMMAND_ANY,
.help = "arm9 command group",
.usage = "",
.chain = arm9tdmi_exec_command_handlers,
},
COMMAND_REGISTRATION_DONE

View File

@ -1975,6 +1975,7 @@ const struct command_registration dap_command_handlers[] = {
.name = "dap",
.mode = COMMAND_EXEC,
.help = "DAP command group",
.usage = "",
.chain = dap_commands,
},
COMMAND_REGISTRATION_DONE

View File

@ -1003,6 +1003,7 @@ static const struct command_registration arm_exec_command_handlers[] = {
.handler = handle_armv4_5_reg_command,
.mode = COMMAND_EXEC,
.help = "display ARM core registers",
.usage = "",
},
{
.name = "core_state",
@ -1046,6 +1047,7 @@ const struct command_registration arm_command_handlers[] = {
.name = "arm",
.mode = COMMAND_ANY,
.help = "ARM command group",
.usage = "",
.chain = arm_exec_command_handlers,
},
COMMAND_REGISTRATION_DONE

View File

@ -785,6 +785,7 @@ const struct command_registration l2x_cache_command_handlers[] = {
.name = "cache_config",
.mode = COMMAND_EXEC,
.help = "cache configuation for a target",
.usage = "",
.chain = l2_cache_commands,
},
COMMAND_REGISTRATION_DONE

View File

@ -2637,29 +2637,34 @@ static const struct command_registration cortex_a8_exec_command_handlers[] = {
.handler = cortex_a8_handle_cache_info_command,
.mode = COMMAND_EXEC,
.help = "display information about target caches",
.usage = "",
},
{
.name = "dbginit",
.handler = cortex_a8_handle_dbginit_command,
.mode = COMMAND_EXEC,
.help = "Initialize core debug",
.usage = "",
},
{ .name ="smp_off",
.handler = cortex_a8_handle_smp_off_command,
.mode = COMMAND_EXEC,
.help = "Stop smp handling",
.usage = "",
},
{
.name ="smp_on",
.handler = cortex_a8_handle_smp_on_command,
.mode = COMMAND_EXEC,
.help = "Restart smp handling",
.usage = "",
},
{
.name ="smp_gdb",
.handler = cortex_a8_handle_smp_gdb_command,
.mode = COMMAND_EXEC,
.help = "display/fix current core played to gdb",
.usage = "",
},
@ -2676,6 +2681,7 @@ static const struct command_registration cortex_a8_command_handlers[] = {
.name = "cortex_a8",
.mode = COMMAND_ANY,
.help = "Cortex-A8 command group",
.usage = "",
.chain = cortex_a8_exec_command_handlers,
},
COMMAND_REGISTRATION_DONE

View File

@ -2299,6 +2299,7 @@ static const struct command_registration cortex_m3_command_handlers[] = {
.name = "cortex_m3",
.mode = COMMAND_EXEC,
.help = "Cortex-M3 command group",
.usage = "",
.chain = cortex_m3_exec_command_handlers,
},
COMMAND_REGISTRATION_DONE

View File

@ -2139,6 +2139,7 @@ const struct command_registration etm_command_handlers[] = {
.name = "etm",
.mode = COMMAND_ANY,
.help = "Emebdded Trace Macrocell command group",
.usage = "",
.chain = etm_config_command_handlers,
},
COMMAND_REGISTRATION_DONE
@ -2159,24 +2160,28 @@ static const struct command_registration etm_exec_command_handlers[] = {
.name = "info",
.handler = handle_etm_info_command,
.mode = COMMAND_EXEC,
.usage = "",
.help = "display info about the current target's ETM",
},
{
.name = "status",
.handler = handle_etm_status_command,
.mode = COMMAND_EXEC,
.usage = "",
.help = "display current target's ETM status",
},
{
.name = "start",
.handler = handle_etm_start_command,
.mode = COMMAND_EXEC,
.usage = "",
.help = "start ETM trace collection",
},
{
.name = "stop",
.handler = handle_etm_stop_command,
.mode = COMMAND_EXEC,
.usage = "",
.help = "stop ETM trace collection",
},
{
@ -2190,6 +2195,7 @@ static const struct command_registration etm_exec_command_handlers[] = {
.name = "analyze",
.handler = handle_etm_analyze_command,
.mode = COMMAND_EXEC,
.usage = "",
.help = "analyze collected ETM trace",
},
{
@ -2210,6 +2216,7 @@ static const struct command_registration etm_exec_command_handlers[] = {
.name = "load",
.handler = handle_etm_load_command,
.mode = COMMAND_EXEC,
.usage = "",
.help = "load trace data for analysis <file>",
},
COMMAND_REGISTRATION_DONE

View File

@ -859,6 +859,7 @@ const struct command_registration mips32_command_handlers[] = {
.name = "mips32",
.mode = COMMAND_ANY,
.help = "mips32 command group",
.usage = "",
.chain = mips32_exec_command_handlers,
},
COMMAND_REGISTRATION_DONE

View File

@ -1205,6 +1205,7 @@ const struct command_registration mips_m4k_command_handlers[] = {
.name = "mips_m4k",
.mode = COMMAND_ANY,
.help = "mips_m4k command group",
.usage = "",
.chain = mips_m4k_exec_command_handlers,
},
COMMAND_REGISTRATION_DONE

View File

@ -405,12 +405,14 @@ static const struct command_registration oocd_trace_all_command_handlers[] = {
.name = "status",
.handler = handle_oocd_trace_status_command,
.mode = COMMAND_EXEC,
.usage = "",
.help = "display OpenOCD + trace status",
},
{
.name = "resync",
.handler = handle_oocd_trace_resync_command,
.mode = COMMAND_EXEC,
.usage = "",
.help = "resync OpenOCD + trace capture clock",
},
COMMAND_REGISTRATION_DONE
@ -420,6 +422,7 @@ static const struct command_registration oocd_trace_command_handlers[] = {
.name = "oocd_trace",
.mode = COMMAND_ANY,
.help = "OpenOCD trace capture driver command group",
.usage = "",
.chain = oocd_trace_all_command_handlers,
},
COMMAND_REGISTRATION_DONE

View File

@ -3878,6 +3878,7 @@ static const struct command_registration xscale_command_handlers[] = {
.name = "xscale",
.mode = COMMAND_ANY,
.help = "xscale command group",
.usage = "",
.chain = xscale_any_command_handlers,
},
COMMAND_REGISTRATION_DONE