summaryrefslogtreecommitdiff
path: root/src/openocd.c
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-10 19:44:38 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-10 19:44:38 +0000
commit72acdac71aa2b2dd787f9b1e400d058e1887e61f (patch)
treea48684c54312c525c5b7c2ef9b43866271bf6bd2 /src/openocd.c
parent90465379e558ea7310867d9d39b79428c2050ddb (diff)
downloadopenocd+libswd-72acdac71aa2b2dd787f9b1e400d058e1887e61f.tar.gz
openocd+libswd-72acdac71aa2b2dd787f9b1e400d058e1887e61f.tar.bz2
openocd+libswd-72acdac71aa2b2dd787f9b1e400d058e1887e61f.tar.xz
openocd+libswd-72acdac71aa2b2dd787f9b1e400d058e1887e61f.zip
Revive tclapi.c from r1650:
* Remove superfluous #include directives. * Fix warnings and API usage to cure its bit rot. * Build into libhelper library (for now). Add tclapi.h to export tclapi_register_commands(). Register tclapi commands in openocd.c:setup_command_handler(). git-svn-id: svn://svn.berlios.de/openocd/trunk@1691 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/openocd.c')
-rw-r--r--src/openocd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/openocd.c b/src/openocd.c
index 7e8b7cdf..4d76fd6c 100644
--- a/src/openocd.c
+++ b/src/openocd.c
@@ -41,6 +41,7 @@
#include "mflash.h"
#include "command.h"
+#include "tclapi.h"
#include "server.h"
#include "telnet_server.h"
#include "gdb_server.h"
@@ -202,6 +203,7 @@ command_context_t *setup_command_handler(void)
telnet_register_commands(cmd_ctx);
gdb_register_commands(cmd_ctx);
tcl_register_commands(cmd_ctx); /* tcl server commands */
+ tclapi_register_commands(cmd_ctx); /* misc tcl commands */
log_register_commands(cmd_ctx);
jtag_register_commands(cmd_ctx);
xsvf_register_commands(cmd_ctx);