summaryrefslogtreecommitdiff
path: root/src/helper
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-07-17 17:31:07 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-07-17 17:31:07 +0000
commit0ebb33b185314a113a6961bf26c7b59cf42aff63 (patch)
tree7e65fc83ff1b899e5219ddd245db9684be8ca3a3 /src/helper
parent5fefa83d078bfea4338f4bb2112c5ef98c54656e (diff)
downloadopenocd_libswd-0ebb33b185314a113a6961bf26c7b59cf42aff63.tar.gz
openocd_libswd-0ebb33b185314a113a6961bf26c7b59cf42aff63.tar.bz2
openocd_libswd-0ebb33b185314a113a6961bf26c7b59cf42aff63.tar.xz
openocd_libswd-0ebb33b185314a113a6961bf26c7b59cf42aff63.zip
Charles Hardin ckhardin at gmail.com Instead of stashing the context in a global variable, just use the "context"
associated with the interp structure being passed around And fixed the message referring to mem2array in the array2mem function git-svn-id: svn://svn.berlios.de/openocd/trunk@821 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/helper')
-rw-r--r--src/helper/command.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/helper/command.c b/src/helper/command.c
index 31de2ec9..3ec1f84d 100644
--- a/src/helper/command.c
+++ b/src/helper/command.c
@@ -41,7 +41,6 @@
#include <openocd_tcl.h>
int fast_and_dangerous = 0;
-extern command_context_t *active_cmd_ctx;
int handle_sleep_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc);
int handle_fast_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc);
@@ -396,7 +395,6 @@ int command_run_line(command_context_t *context, char *line)
if (retcode != JIM_OK)
return ERROR_FAIL;
- active_cmd_ctx = context;
retcode = Jim_Eval(interp, line);
if (retcode == JIM_ERR) {
if (retval!=ERROR_COMMAND_CLOSE_CONNECTION)