cmd: add missing usage vars
authorSpencer Oliver <spen@spen-soft.co.uk>
Mon, 16 Jan 2012 13:35:23 +0000 (13:35 +0000)
committerSpencer Oliver <spen@spen-soft.co.uk>
Wed, 18 Jan 2012 21:45:02 +0000 (21:45 +0000)
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>
29 files changed:
src/flash/mflash.c
src/flash/nand/at91sam9.c
src/flash/nand/lpc3180.c
src/flash/nand/lpc32xx.c
src/flash/nand/tcl.c
src/jtag/tcl.c
src/pld/pld.c
src/pld/virtex2.c
src/server/gdb_server.c
src/server/server.c
src/server/telnet_server.c
src/target/arm11.c
src/target/arm720t.c
src/target/arm7_9_common.c
src/target/arm920t.c
src/target/arm926ejs.c
src/target/arm946e.c
src/target/arm966e.c
src/target/arm9tdmi.c
src/target/arm_adi_v5.c
src/target/armv4_5.c
src/target/armv7a.c
src/target/cortex_a.c
src/target/cortex_m.c
src/target/etm.c
src/target/mips32.c
src/target/mips_m4k.c
src/target/oocd_trace.c
src/target/xscale.c

index 8fca4aa..4a3f8fe 100644 (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
index 6648953..42924c9 100644 (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
index 9d8cbae..b370e11 100644 (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
index addc323..f6ac8ff 100644 (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
index c6ea3f3..29d4e1e 100644 (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
index 8808666..291ba23 100644 (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,
        },
index b262361..08a537c 100644 (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
index f4aed34..74fcc40 100644 (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
index 2e7c089..0cbd8e6 100644 (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",
index e60eb39..7a3c890 100644 (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
index 98e8616..2be5ccc 100644 (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",
        },
        {
index b922b19..da084b1 100644 (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
index b41fbec..7a6a054 100644 (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
index 7ad70ea..ed91302 100644 (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
index 1357820..ecc158c 100644 (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
index 873e9a0..47b94d1 100644 (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
index d9d953d..11e79c9 100644 (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
index 170e3cc..439b0f6 100644 (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
index dc18585..493adb3 100644 (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
index c0d664d..77d01a0 100644 (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
index 7468e38..3e3fea0 100644 (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
index f975c6d..13dca9a 100644 (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
index 0c2247e..c9401af 100755 (executable)
@@ -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
index c7cb9d4..f181060 100644 (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
index 2798369..de8bb8a 100644 (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
index d9d84b7..26e0c5d 100644 (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
index 4546093..83a2a7b 100644 (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
index d2ed4fe..09beba9 100644 (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
index 484cdce..5ea5071 100644 (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