]> git.sur5r.net Git - openocd/commitdiff
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 8fca4aa310a4e152767382b8c509b41e0cc0e0b7..4a3f8fe21fade48d580813959235ac2ac3c07d40 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 6648953e27d9c145c53e2d39ef3e09f4f3538d6b..42924c98f14d4611f592ac578f3f24688162411c 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 9d8cbae176bd379891b0aa58f2ed6d0b8b8e2398..b370e112b2acd546605ba4a3cc7cd85d30a0e9a6 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 addc323b132599ce5d6be7de8b1e413cd3ae7d84..f6ac8ff80b1b49667e1c59fa1d028083a75bb1a1 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 c6ea3f3b68af914013dca748a6fd550b3233280c..29d4e1e1d3302f25dc69da877c04299b3d512c86 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 8808666f4273dd6e734c764e2f2321574b4002e1..291ba2382bdb278a58783024618a89f6eb472f0e 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 b2623613e02bdeef5ca180e8f36707af872878d4..08a537c09cd3ec7448ab689835605043e2bb0813 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 f4aed34f50826736824bc1275237dd29e8d30903..74fcc40d9ddd099328d85e22774a2e2f7b1f2e30 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 2e7c08978117e55ac8a45c72165506a236e539aa..0cbd8e650b893203f6fe61e905542d9c7fd9150b 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 e60eb3984552e4b38f8a44fd24d928816eadbd5c..7a3c890d082496bcad91d2905f8f9a5da2da3b43 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 98e86160a3d5d34201090caae7c69f2223cd58bb..2be5ccc851e9bf8f80d61eb8edd8a812ce28490d 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 b922b1993302e10d474dd34f63ee672dbc85d757..da084b1074ac17132feb7ad0914322e0681dba7f 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 b41fbeccc5598b0d033e8d125b76264d09d3bad5..7a6a05478185e6a5c198ac259271658d60e5fa53 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 7ad70ea04aeca4cf26f076285303f0cef166f9ef..ed913024dbfb1f1d90a13cd3b213f8d262febb97 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 1357820a9a14a2c9b023428ec750ec1fbeab5cec..ecc158c75b31adf6943fae9a166da681f14e1af9 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 873e9a033e73b7029a64b8014b7482a33b19e391..47b94d1797d863c195cf94469ce0f8c6f9175ccd 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 d9d953d1511f406ad7737dc14f4afc1b6483fd11..11e79c9600f43ed91ee9136c87dadd14173015ef 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 170e3cc5869484f2a6032b0e890a79f5a65d17a4..439b0f639fe57ae0608013682eaeb6f6fd34c3da 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 dc18585c87adc105a01f7edece18070e3315757d..493adb3bff8955fee32e554158005c72c1cb81fc 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 c0d664d236daaf8c6ee6129bce09c99d954f8194..77d01a049d8c678900ffaf14779c65c26eb504ff 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 7468e389f442b68a0462009d472d9817465280ac..3e3fea03ccc56d867c885e0d401c0fd90c411975 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 f975c6df808e375abb67e0ee852174601d0943dc..13dca9ae36d74ab17b07666c66d48d692f44ff72 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 0c2247ef588eb8ffa356f4088334e20653ffbf30..c9401af7dea6f5587d3d109b14c2f8b374cc0059 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 c7cb9d48245930183128f34e086ef462898bfad5..f181060ab08a0ed42f165872fcaab92925171710 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 27983698f866f555eac13b4b6f1535737e2b13c2..de8bb8a416579eea2609de62a2e83f41677428ca 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 d9d84b729b128fdc54311f70858d01a45327c41c..26e0c5d65654e8bff22b540fa1c371250e7dc639 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 4546093f216c4d5b9f866b7b91433641cd712e1d..83a2a7bd81fc86330d97df963ee06b74ef9700d0 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 d2ed4fef414d9db14ca2259c0f9d4985b4caf574..09beba95bd6e4353af612ad5101d706fe154b8d6 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 484cdceafdf523fa3d57d68300ffd2819ed298e7..5ea507192659d0342aa66e91935ce797cd7ae75e 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