openocd: setup_command_handler() must not be static
authorØyvind Harboe <oyvind.harboe@zylin.com>
Tue, 22 Jun 2010 11:02:00 +0000 (13:02 +0200)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Wed, 23 Jun 2010 09:43:40 +0000 (11:43 +0200)
when OpenOCD is linked with an app this fn can be used from
the outside.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
src/openocd.c

index 623bd0c1625d0403e2ef294d25fe4ba31993f6b2..96de50c80cf701923f0572ee5b55b58e4f1fa814 100644 (file)
@@ -209,8 +209,10 @@ static int openocd_register_commands(struct command_context *cmd_ctx)
 
 struct command_context *global_cmd_ctx;
 
-/* NB! this fn can be invoked outside this file for non PC hosted builds */
-static struct command_context *setup_command_handler(Jim_Interp *interp)
+/* NB! this fn can be invoked outside this file for non PC hosted builds
+ * NB! do not change to 'static'!!!!
+ */
+struct command_context *setup_command_handler(Jim_Interp *interp)
 {
        log_init();
        LOG_DEBUG("log_init: complete");