openocd/src/target
Mathias K 54d6330b78 command: print BUG warning when usage is missing
These error messages will prompt patches to be submitted for missing
.usage or empty fields. All of the below must be resolved before next
release.

The Jim defined commands are excluded from this checklist because the
help text can be set later than during command registration.

strlen(.usage) == 0 means that the command expects no arguments.

Updates to this patch in Gerrit to fix problems below are most
welcome. Anyone can push updated versions of a patch to Gerrit. If
there are no further updates to this patch within a week, it will be
pushed to the master branch to prompt more fixes.

These were caught by launching OpenOCD.

Error: BUG: command 'command' does not have the '.usage' field filled out
Error: BUG: command 'script' does not have the '.usage' field filled out
Error: BUG: command 'power_restore' does not have the '.usage' field filled out
Error: BUG: command 'srst_deasserted' does not have the '.usage' field filled out
Error: BUG: command 'measure_clk' does not have the '.usage' field filled out
Error: BUG: command 'exit' does not have the '.usage' field filled out
Error: BUG: command 'shutdown' does not have the '.usage' field filled out
Error: BUG: command 'gdb_sync' does not have the '.usage' field filled out
Error: BUG: command 'interface_list' does not have the '.usage' field filled out
Error: BUG: command 'target' does not have the '.usage' field filled out
Error: BUG: command 'target init' does not have the '.usage' field filled out
Error: BUG: command 'flash' does not have the '.usage' field filled out
Error: BUG: command 'flash init' does not have the '.usage' field filled out
Error: BUG: command 'flash banks' does not have the '.usage' field filled out
Error: BUG: command 'nand' does not have the '.usage' field filled out
Error: BUG: command 'nand drivers' does not have the '.usage' field filled out
Error: BUG: command 'nand init' does not have the '.usage' field filled out
Error: BUG: command 'pld' does not have the '.usage' field filled out
Error: BUG: command 'pld init' does not have the '.usage' field filled out
Error: BUG: command 'mflash' does not have the '.usage' field filled out
Error: BUG: command 'mflash init' does not have the '.usage' field filled out
Error: BUG: command 'dummy' does not have the '.usage' field filled out
Error: BUG: command 'dummy foo' does not have the '.usage' field filled out
Error: BUG: command 'scan_chain' does not have the '.usage' field filled out
Error: BUG: command 'jtag' does not have the '.usage' field filled out
Error: BUG: command 'jtag init' does not have the '.usage' field filled out
Error: BUG: command 'arm' does not have the '.usage' field filled out
Error: BUG: command 'arm reg' does not have the '.usage' field filled out
Error: BUG: command 'etm' does not have the '.usage' field filled out
Error: BUG: command 'arm7_9' does not have the '.usage' field filled out
Error: BUG: command 'at91eb40a.cpu' does not have the '.usage' field filled out
Error: BUG: command 'at91eb40a.cpu arm' does not have the '.usage' field filled out
Error: BUG: command 'arm reg' does not have the '.usage' field filled out
Error: BUG: command 'at91eb40a.cpu etm' does not have the '.usage' field filled out
Error: BUG: command 'at91eb40a.cpu arm7_9' does not have the '.usage' field filled out
Error: BUG: command 'target_request' does not have the '.usage' field filled out
^C
oyvind@fierce:~/openocd$ openocd -c "interface dummy" -f board/at91eb40a.cfg 2>&1 | grep -w BUG
Error: BUG: command 'command' does not have the '.usage' field filled out
Error: BUG: command 'script' does not have the '.usage' field filled out
Error: BUG: command 'power_restore' does not have the '.usage' field filled out
Error: BUG: command 'srst_deasserted' does not have the '.usage' field filled out
Error: BUG: command 'measure_clk' does not have the '.usage' field filled out
Error: BUG: command 'exit' does not have the '.usage' field filled out
Error: BUG: command 'shutdown' does not have the '.usage' field filled out
Error: BUG: command 'gdb_sync' does not have the '.usage' field filled out
Error: BUG: command 'interface_list' does not have the '.usage' field filled out
Error: BUG: command 'target' does not have the '.usage' field filled out
Error: BUG: command 'target init' does not have the '.usage' field filled out
Error: BUG: command 'flash' does not have the '.usage' field filled out
Error: BUG: command 'flash init' does not have the '.usage' field filled out
Error: BUG: command 'flash banks' does not have the '.usage' field filled out
Error: BUG: command 'nand' does not have the '.usage' field filled out
Error: BUG: command 'nand drivers' does not have the '.usage' field filled out
Error: BUG: command 'nand init' does not have the '.usage' field filled out
Error: BUG: command 'pld' does not have the '.usage' field filled out
Error: BUG: command 'pld init' does not have the '.usage' field filled out
Error: BUG: command 'mflash' does not have the '.usage' field filled out
Error: BUG: command 'mflash init' does not have the '.usage' field filled out
Error: BUG: command 'dummy' does not have the '.usage' field filled out
Error: BUG: command 'dummy foo' does not have the '.usage' field filled out
Error: BUG: command 'scan_chain' does not have the '.usage' field filled out
Error: BUG: command 'jtag' does not have the '.usage' field filled out
Error: BUG: command 'jtag init' does not have the '.usage' field filled out
Error: BUG: command 'arm' does not have the '.usage' field filled out
Error: BUG: command 'arm reg' does not have the '.usage' field filled out
Error: BUG: command 'etm' does not have the '.usage' field filled out
Error: BUG: command 'arm7_9' does not have the '.usage' field filled out
Error: BUG: command 'at91eb40a.cpu' does not have the '.usage' field filled out
Error: BUG: command 'at91eb40a.cpu arm' does not have the '.usage' field filled out
Error: BUG: command 'arm reg' does not have the '.usage' field filled out
Error: BUG: command 'at91eb40a.cpu etm' does not have the '.usage' field filled out
Error: BUG: command 'at91eb40a.cpu arm7_9' does not have the '.usage' field filled out
Error: BUG: command 'target_request' does not have the '.usage' field filled out

Change-Id: I2c3e529530a15d2295a1950ffc59e8f2fc661012
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Signed-off-by: Mathias K <kesmtp@freenet.de>
Reviewed-on: http://openocd.zylin.com/299
Tested-by: jenkins
Reviewed-by: Øyvind Harboe <oyvindharboe@gmail.com>
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
2012-01-04 17:13:03 +00:00
..
ecos - reverted some of the changes that possibly broke arm926ejs. Waiting 2008-04-04 13:47:38 +00:00
xscale Remove annoying end-of-line whitespace from most src/* 2009-09-21 18:40:55 +00:00
adi_v5_jtag.c arm_adi_v5: add/move apsel member in struct adiv5_dap 2011-02-17 09:28:07 +01:00
adi_v5_swd.c transport: move files over to transport folder 2011-06-13 15:51:04 +02:00
algorithm.c change #include "binarybuffer.h" to <helper/binarybuffer.h> 2009-12-03 04:22:17 -08:00
algorithm.h warnings: use more 'const' for char * 2010-12-29 22:07:39 +01:00
arm_adi_v5.c warning: silence gcc by initializing local variables 2011-10-24 17:10:40 +00:00
arm_adi_v5.h types: write memory now uses const 2011-04-01 08:59:07 +02:00
arm_disassembler.c disassembly: fix access to undefined memory pointer upon unknown instruction 2011-11-07 20:37:11 +00:00
arm_disassembler.h change #include "types.h" to <helper/types.h> 2009-12-03 04:22:52 -08:00
arm_dpm.c armv7a ,cortex a : add L1, L2 cache support, va to pa support 2011-09-30 09:45:26 +02:00
arm_dpm.h armv7a ,cortex a : add L1, L2 cache support, va to pa support 2011-09-30 09:45:26 +02:00
arm_jtag.c ARM_JTAG: review scope of functions 2010-04-10 16:59:50 +08:00
arm_jtag.h warnings: fix alignment warnings 2010-09-20 13:12:35 +02:00
arm_opcodes.h Add opcodes for load/store registers words immediate post-indexed 2011-04-13 21:32:24 +02:00
arm_semihosting.c target: rename cortex_m3.[ch] to cortex_m.[ch] 2011-11-01 14:23:08 +00:00
arm_semihosting.h ARM: remove semihosting globals 2009-12-04 16:51:48 -08:00
arm_simulator.c clang: fix warning about use of unitialized variable 2011-10-26 20:36:04 +00:00
arm_simulator.h ARM_SIMULATOR: review scope of functions 2010-04-10 16:57:49 +08:00
arm.h target: make it absolutely clear that no null pointers are accepted 2011-11-14 23:39:20 +00:00
arm7_9_common.c arm7_9: remove warnings by reducing scope of variables 2011-11-08 08:09:15 +00:00
arm7_9_common.h types: write memory now uses const 2011-04-01 08:59:07 +02:00
arm7tdmi.c jtag: retire jtag_alloc_in_value32 API 2011-12-20 16:56:16 +00:00
arm7tdmi.h target files shouldn't #include <target/...h> 2009-12-13 12:52:23 -08:00
arm9tdmi.c jtag: retire jtag_alloc_in_value32 API 2011-12-20 16:56:16 +00:00
arm9tdmi.h target files shouldn't #include <target/...h> 2009-12-13 12:52:23 -08:00
arm11_dbgtap.c arm11: disable broken optimization for setting current scan chain 2011-08-08 22:33:41 +02:00
arm11_dbgtap.h arm11 error propagation fixes 2010-07-20 08:42:52 +02:00
arm11.c arm11: print next address to debug 2011-11-02 09:41:40 +00:00
arm11.h ARM11: per-core options should not be global 2010-02-21 14:30:27 -08:00
arm720t.c Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - trivial fixes 2011-06-04 09:35:13 +02:00
arm720t.h target files shouldn't #include <target/...h> 2009-12-13 12:52:23 -08:00
arm920t.c Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - trivial fixes 2011-06-04 09:35:13 +02:00
arm920t.h types: write memory now uses const 2011-04-01 08:59:07 +02:00
arm926ejs.c Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - trivial fixes 2011-06-04 09:35:13 +02:00
arm926ejs.h types: write memory now uses const 2011-04-01 08:59:07 +02:00
arm946e.c Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - trivial fixes 2011-06-04 09:35:13 +02:00
arm946e.h arm964e: Add support for ARM946E target. 2010-11-04 14:52:47 +01:00
arm966e.c arm: error propagation of arm_jtag_set_instr 2010-07-19 22:13:49 +02:00
arm966e.h target files shouldn't #include <target/...h> 2009-12-13 12:52:23 -08:00
armv4_5_cache.c change #include "log.h" to <helper/log.h> 2009-12-03 04:22:52 -08:00
armv4_5_cache.h change #include "types.h" to <helper/types.h> 2009-12-03 04:22:52 -08:00
armv4_5_mmu.c types: write memory now uses const 2011-04-01 08:59:07 +02:00
armv4_5_mmu.h types: write memory now uses const 2011-04-01 08:59:07 +02:00
armv4_5.c target: fix null pointer exception 2011-11-01 21:20:19 +00:00
armv4_5.h ARM: use <target/arm.h> not armv4_5.h 2009-12-07 14:57:44 -08:00
armv7a.c armv7a: fix scan-build warnings 2011-10-25 05:16:50 +00:00
armv7a.h armv7a: make local functions static 2011-10-25 05:16:04 +00:00
armv7m.c armv7m: improve error handling 2011-10-25 05:14:11 +00:00
armv7m.h armv7m: implement async algorithm functions 2011-10-09 00:00:52 +02:00
avr32_ap7k.c Remove useless MIPS code in avr32_ap7k.c. 2011-05-03 21:59:08 +02:00
avr32_ap7k.h avr32: work-in-progress 2010-08-15 21:51:34 +02:00
avr32_jtag.c avr32: work-in-progress 2010-08-15 21:51:34 +02:00
avr32_jtag.h avr32: work-in-progress 2010-08-15 21:51:34 +02:00
avr32_mem.c types: write memory now uses const 2011-04-01 08:59:07 +02:00
avr32_mem.h types: write memory now uses const 2011-04-01 08:59:07 +02:00
avr32_regs.c avr32_regs: add missing error propagation 2011-11-04 09:05:15 +00:00
avr32_regs.h avr32: work-in-progress 2010-08-15 21:51:34 +02:00
avrt.c target/avrt: review unused symbols 2010-06-21 22:14:18 +08:00
avrt.h target/avr: review scope of symbols 2010-06-21 22:14:17 +08:00
breakpoints.c breakpoint : smp software breakpoint issue 2011-10-13 18:54:04 +00:00
breakpoints.h cortex_a hybrid & context breakpoints 2011-08-30 18:27:52 +02:00
cortex_a.c cortex_a: add missing error propagation 2011-11-02 09:43:04 +00:00
cortex_a.h armv7a ,cortex a : add L1, L2 cache support, va to pa support 2011-09-30 09:45:26 +02:00
cortex_m.c Make cortex_m3 functions public accessible. 2012-01-03 21:11:51 +00:00
cortex_m.h Make cortex_m3 functions public accessible. 2012-01-03 21:11:51 +00:00
dsp563xx_once.c dsp563xx_once: fix warning and potential bug 2011-03-20 19:47:58 +01:00
dsp563xx_once.h - add parameter flush to the once api to signalize if the jtag queue need to be flushed after the command 2011-02-15 20:20:00 +01:00
dsp563xx.c dsp563xxx: fix missing error propagation found by clang 2011-10-31 11:04:42 +00:00
dsp563xx.h - remove pipeline context, use once register instead - fix wrong register write in resume and step function - add more conditional branch handling 2011-02-17 08:24:17 +01:00
dsp5680xx.c dsp5680xx - indent fix 2011-12-11 18:40:01 +00:00
dsp5680xx.h dsp5680xx - indent fix 2011-12-11 18:40:01 +00:00
embeddedice.c Fix "unused variable" warnings (errors) detected with GCC 4.7.0 - trivial fixes 2011-06-04 09:35:13 +02:00
embeddedice.h types: write memory now uses const 2011-04-01 08:59:07 +02:00
etb.c etb: fix incorrect previous patchset 2011-08-01 17:16:10 +01:00
etb.h ETM trigger_percent becomes an ETB command 2009-12-19 13:06:46 -08:00
etm_dummy.c ARM ETM/ETB/trace: help/usage updates 2010-01-07 15:22:41 -08:00
etm_dummy.h target files shouldn't #include <target/...h> 2009-12-13 12:52:23 -08:00
etm.c etm: fix warning by removing assignment that is immediately overwritten 2011-11-04 09:15:14 +00:00
etm.h warnings: use more 'const' for char * 2010-12-29 22:07:39 +01:00
fa526.c arm7/9: remove unused post_restore_context 2010-03-17 07:40:00 +01:00
feroceon.c types: write memory now uses const 2011-04-01 08:59:07 +02:00
image.c image: remove assignments to local variables that is never read 2011-11-10 21:30:15 +00:00
image.h image: fix spelling mistake 2010-09-27 16:29:51 +02:00
Makefile.am STM32 ST-LINK target initial release 2012-01-03 21:12:37 +00:00
mips_ejtag.c mips: fixup fastdata 2011-06-01 07:23:42 +02:00
mips_ejtag.h mips: fixup fastdata 2011-06-01 07:23:42 +02:00
mips_m4k.c mips: fix potential alignment error 2011-08-12 12:00:51 +02:00
mips_m4k.h mips32: Added CP0 coprocessor R/W routines 2011-08-09 23:17:28 +02:00
mips32_dmaacc.c nit: do not add \n at end of LOG_ERROR 2011-01-05 21:46:12 +01:00
mips32_dmaacc.h TARGET/MIPS32_DMAACC: review scope of functions 2010-04-11 01:03:53 +08:00
mips32_pracc.c warning fix: remove senseless assignment before bailing out of fn w/error 2011-10-31 21:12:30 +00:00
mips32_pracc.h mips32: Added CP0 coprocessor R/W routines 2011-08-09 23:17:28 +02:00
mips32.c mips32: Added CP0 coprocessor R/W routines 2011-08-09 23:17:28 +02:00
mips32.h mips32: Sync Caches to Make Instr Writes Effective 2011-08-09 23:17:28 +02:00
oocd_trace.c nit: more LOG_* \n fixes 2011-01-09 21:35:23 +01:00
oocd_trace.h target files shouldn't #include <target/...h> 2009-12-13 12:52:23 -08:00
register.c change #include "types.h" to <helper/types.h> 2009-12-03 04:22:52 -08:00
register.h warnings: use more 'const' for char * 2010-12-29 22:07:39 +01:00
smp.c remove target argument from gdb packet handling functions 2011-08-24 17:41:35 +02:00
smp.h remove target argument from gdb packet handling functions 2011-08-24 17:41:35 +02:00
startup.tcl config: add init_targets proc that is executed just before init 2010-12-22 17:44:22 +01:00
stm32_stlink.c STM32 ST-LINK target initial release 2012-01-03 21:12:37 +00:00
target_request.c warnings: null pointer check fix 2011-10-31 20:43:36 +00:00
target_request.h target_request: add target_got_message() that can be used to improve DCC performance 2011-10-17 12:32:38 +00:00
target_type.h target: add async algorithm entries to the target type 2011-10-09 00:00:52 +02:00
target.c command: print BUG warning when usage is missing 2012-01-04 17:13:03 +00:00
target.h target: add async algorithm entries to the target type 2011-10-09 00:00:52 +02:00
testee.c target: further shrink Jim-awareness 2009-12-13 12:52:23 -08:00
trace.c command: print BUG warning when usage is missing 2012-01-04 17:13:03 +00:00
trace.h error number: review 2010-06-23 07:55:43 +02:00
xscale.c jtag: stop using sharp corner of JTAG API 2011-12-20 16:57:58 +00:00
xscale.h xscale: trace buffer remains enabled until explicitly disabled 2010-12-04 09:40:15 +01:00