From bad87feca2d4e6209b93cf7d00b3f52ff2c55f29 Mon Sep 17 00:00:00 2001 From: Jim Ingham Date: Fri, 11 Mar 2011 01:51:49 +0000 Subject: [PATCH] CommandInterpreter::HandleCommands should take its commands as a "const StringList &" since it doesn't modify it... Also, don't turn on the immediate output in the temporary result, or you'll get doubled output. llvm-svn: 127452 --- lldb/include/lldb/Interpreter/CommandInterpreter.h | 2 +- lldb/source/Interpreter/CommandInterpreter.cpp | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lldb/include/lldb/Interpreter/CommandInterpreter.h b/lldb/include/lldb/Interpreter/CommandInterpreter.h index 7231e21b17e9..b96d1e3ee497 100644 --- a/lldb/include/lldb/Interpreter/CommandInterpreter.h +++ b/lldb/include/lldb/Interpreter/CommandInterpreter.h @@ -120,7 +120,7 @@ public: /// and failed with some explanation if we aborted executing the commands at some point. //------------------------------------------------------------------ void - HandleCommands (StringList &commands, + HandleCommands (const StringList &commands, ExecutionContext *context, bool stop_on_continue, bool stop_on_error, diff --git a/lldb/source/Interpreter/CommandInterpreter.cpp b/lldb/source/Interpreter/CommandInterpreter.cpp index fbe47d2c2105..461c54383acb 100644 --- a/lldb/source/Interpreter/CommandInterpreter.cpp +++ b/lldb/source/Interpreter/CommandInterpreter.cpp @@ -1508,7 +1508,7 @@ CommandInterpreter::SourceInitFile (bool in_cwd, CommandReturnObject &result) } void -CommandInterpreter::HandleCommands (StringList &commands, +CommandInterpreter::HandleCommands (const StringList &commands, ExecutionContext *override_context, bool stop_on_continue, bool stop_on_error, @@ -1548,8 +1548,6 @@ CommandInterpreter::HandleCommands (StringList &commands, } CommandReturnObject tmp_result; - tmp_result.SetImmediateOutputStream (result.GetImmediateOutputStream ()); - tmp_result.SetImmediateErrorStream (result.GetImmediateErrorStream ()); bool success = HandleCommand(cmd, false, tmp_result, NULL); if (print_results)