summaryrefslogtreecommitdiff
path: root/src/openocd.c
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-21 19:27:20 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-25 10:29:05 -0800
commita93b404161dc42f8dee805c8f95bc4974aded9cb (patch)
tree5dcb1dc0658288fd0385f77bc46a221fbdc06c6f /src/openocd.c
parentd89c6310146d9e5fd1a4ab364f09c0f841da5c73 (diff)
downloadopenocd_libswd-a93b404161dc42f8dee805c8f95bc4974aded9cb.tar.gz
openocd_libswd-a93b404161dc42f8dee805c8f95bc4974aded9cb.tar.bz2
openocd_libswd-a93b404161dc42f8dee805c8f95bc4974aded9cb.tar.xz
openocd_libswd-a93b404161dc42f8dee805c8f95bc4974aded9cb.zip
improve command handling examples
Removes hello and foo commands from top-level registration. Instead, the dummy interface driver and faux flash driver have been augmented to register these commands as sub-commands.
Diffstat (limited to 'src/openocd.c')
-rw-r--r--src/openocd.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/openocd.c b/src/openocd.c
index e38c84ec..1f29acdb 100644
--- a/src/openocd.c
+++ b/src/openocd.c
@@ -179,9 +179,6 @@ static const struct command_registration openocd_command_handlers[] = {
struct command_context *global_cmd_ctx;
-/// src/hello.c gives a simple example for writing new command modules
-int hello_register_commands(struct command_context *cmd_ctx);
-
/* NB! this fn can be invoked outside this file for non PC hosted builds */
struct command_context *setup_command_handler(void)
{
@@ -191,7 +188,6 @@ struct command_context *setup_command_handler(void)
register_commands(cmd_ctx, NULL, openocd_command_handlers);
/* register subsystem commands */
- hello_register_commands(cmd_ctx);
server_register_commands(cmd_ctx);
telnet_register_commands(cmd_ctx);
gdb_register_commands(cmd_ctx);