From 0689e3dd6752f45f493eceb3edf040fbc7849846 Mon Sep 17 00:00:00 2001 From: oharboe Date: Thu, 28 Feb 2008 08:11:18 +0000 Subject: - Added TARGET_REQ_DEBUGCHAR target_request debugmsg. This provides a better impeadance match for debug output char fn's, e.g. eCos. - Line endings are now added at the caller site of command_print*(). command_print() still adds a line ending - echo of commands in scripts are now available via debug_level instead of forced echo - Added a USER_SAMELINE() for printing without a lineend. git-svn-id: svn://svn.berlios.de/openocd/trunk@364 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/helper/interpreter.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/helper/interpreter.c') diff --git a/src/helper/interpreter.c b/src/helper/interpreter.c index aa331fda..abf7b093 100644 --- a/src/helper/interpreter.c +++ b/src/helper/interpreter.c @@ -217,7 +217,6 @@ int handle_field_command(struct command_context_s *cmd_ctx, char *cmd, char **ar int handle_script_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc) { FILE *script_file; - int echo; if (argc != 1) return ERROR_COMMAND_SYNTAX_ERROR; @@ -229,14 +228,9 @@ int handle_script_command(struct command_context_s *cmd_ctx, char *cmd, char **a command_print(cmd_ctx, "couldn't open script file %s", args[0]); return ERROR_OK; } - - echo = cmd_ctx->echo; - cmd_ctx->echo = 1; command_run_file(cmd_ctx, script_file, cmd_ctx->mode); - cmd_ctx->echo = echo; - fclose(script_file); return ERROR_OK; -- cgit v1.2.3