]> git.sur5r.net Git - openocd/commit
split jim_target into multiple handlers
authorZachary T Welch <zw@superlucidity.net>
Wed, 25 Nov 2009 20:57:28 +0000 (12:57 -0800)
committerZachary T Welch <zw@superlucidity.net>
Sat, 28 Nov 2009 21:00:39 +0000 (13:00 -0800)
commitcb8d567b7524b96d034344a2027e33d7f44f48ec
tree631c9b1fcec5ea6272a1a406bae4e5a0d7bae8e0
parentf8a62fb9c62f165696cc34eeb23b2bc1f6a79000
split jim_target into multiple handlers

The 'target' command group was implemented using its own command
dispatching, which can be eliminated by using the new chained command
registration mechanism.  This patch splits the jim_target() function
into individual handlers, which makes them to be visible to the help and
usage commands.  These one-trick handlers are much easier to understand.
src/target/target.c