aboutsummaryrefslogtreecommitdiff
path: root/src/openocd.c
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-07-13 08:25:33 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-07-13 08:25:33 +0000
commit6956527849370062f059a2e63f30936595b48825 (patch)
tree3dd32492c3cde4d9fe542e13e9f84526801486a6 /src/openocd.c
parentde6acb2d364493530f8d616169245e3a59a4a4d5 (diff)
downloadriscv-openocd-6956527849370062f059a2e63f30936595b48825.zip
riscv-openocd-6956527849370062f059a2e63f30936595b48825.tar.gz
riscv-openocd-6956527849370062f059a2e63f30936595b48825.tar.bz2
Duane Ellis <openocd@duaneellis.com> fix to tcl puts
git-svn-id: svn://svn.berlios.de/openocd/trunk@802 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/openocd.c')
-rw-r--r--src/openocd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/openocd.c b/src/openocd.c
index dcaca78..6c1f570 100644
--- a/src/openocd.c
+++ b/src/openocd.c
@@ -499,7 +499,10 @@ static void tcl_output(void *privData, const char *file, int line, const char *f
int jim_command(command_context_t *context, char *line)
{
int retval=ERROR_OK;
- int retcode=Jim_Eval(interp, line);
+ int retcode;
+
+ active_cmd_ctx = context;
+ retcode = Jim_Eval(interp, line);
if (retcode == JIM_ERR) {
Jim_PrintErrorMessage(interp);