openocd: prevent jimtcl error message while testing commands
commite48093b395808692145bf320e6d206561670107c
authorAntonio Borneo <borneo.antonio@gmail.com>
Fri, 17 Sep 2021 16:37:41 +0000 (17 18:37 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 25 Sep 2021 13:13:28 +0000 (25 13:13 +0000)
treed2b7c32d3876f18e17b2af9eefce7af3a588188e
parent7b504370f732a00d803163cab2b1750bde1927cf
openocd: prevent jimtcl error message while testing commands

The jimtcl API Jim_GetCommand() sets an error message when the
command is not found and flag JIM_ERRMSG is set.
OpenOCD is checking if the command has already been registered,
thus 'command not found' is the desired case.

Pass flag JIM_NONE to prevent jimtcl from setting the error
message.

Change-Id: I3329c2f8722eda0cc9a5f9cbd888a37915b46107
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/6562
Tested-by: jenkins
src/target/arm_cti.c
src/target/arm_dap.c
src/target/arm_tpiu_swo.c
src/target/target.c