summaryrefslogtreecommitdiff
path: root/src/openocd.c
diff options
context:
space:
mode:
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 dcaca784..6c1f5703 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);