helper/command: register all commands through register_commands()
authorAntonio Borneo <borneo.antonio@gmail.com>
Fri, 1 May 2020 16:30:00 +0000 (18:30 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 9 May 2020 13:36:44 +0000 (14:36 +0100)
commit8807a5937e5fe5d09828c3e535beafb48e171621
tree8311605c611ce05b9b253e5d4c22db17e585eda8
parent2a8303b0bd1ea10b1a60891cbff24d717a985f6f
helper/command: register all commands through register_commands()

The commands "ocd_find" and "capture" are registered directly
through the jim API, instead of the common way to describe them
in a struct command_registration that is then passed to the helper
register_commands().
This cause the two commands above to not have either "help" nor
"usage" string nor a properly identified "mode".

Since the following line registers the commands listed in struct
command_builtin_handlers, simply add the two commands above in the
same struct.

Change-Id: Id6ee11dac3b18364deeed65ee8e18ad80152750a
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5644
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
src/helper/command.c