summaryrefslogtreecommitdiff
path: root/src/openocd.c
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-07-04 08:08:29 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-07-04 08:08:29 +0000
commitef268c96bb562fa09f15675305b76e8231502db7 (patch)
treeb7d772858367a468165fc7455a26ecf22211fd81 /src/openocd.c
parent71471b07fd91655acd7c36618f7ac6ef34f5b66f (diff)
downloadopenocd+libswd-ef268c96bb562fa09f15675305b76e8231502db7.tar.gz
openocd+libswd-ef268c96bb562fa09f15675305b76e8231502db7.tar.bz2
openocd+libswd-ef268c96bb562fa09f15675305b76e8231502db7.tar.xz
openocd+libswd-ef268c96bb562fa09f15675305b76e8231502db7.zip
tcl config script example
git-svn-id: svn://svn.berlios.de/openocd/trunk@744 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/openocd.c')
-rw-r--r--src/openocd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/openocd.c b/src/openocd.c
index c17e149c..e24eb9a7 100644
--- a/src/openocd.c
+++ b/src/openocd.c
@@ -182,9 +182,11 @@ static void tcl_output(void *privData, const char *file, int line,
int jim_command(command_context_t *context, char *line)
{
int retval=ERROR_OK;
+ /* FIX!!!! in reality there is only one cmd_ctx handler, but consider
+ what might happen here if there are multiple handlers w/reentrant callback
+ fn's... shudder! */
active_cmd_ctx=context;
int retcode=Jim_Eval(interp, line);
- active_cmd_ctx=NULL;
const char *result;
int reslen;