Add 'batch_mode' to CommandInterpreter. Modify InputReaders to

not write output (prompts, instructions,etc.) if the CommandInterpreter
is in batch_mode.

Also, finish updating InputReaders to write to the asynchronous stream,
rather than using the Debugger's output file directly.

llvm-svn: 133162
This commit is contained in:
Caroline Tice
2011-06-16 16:27:19 +00:00
parent b570351059
commit d61c10bc79
9 changed files with 115 additions and 70 deletions

View File

@@ -11,6 +11,7 @@
#include "lldb/Core/InputReader.h"
#include "lldb/Core/Debugger.h"
#include "lldb/Interpreter/CommandInterpreter.h"
using namespace lldb;
using namespace lldb_private;
@@ -300,6 +301,9 @@ InputReader::GetPrompt () const
void
InputReader::RefreshPrompt ()
{
if (m_debugger.GetCommandInterpreter().GetBatchCommandMode())
return;
if (!m_prompt.empty())
{
File &out_file = m_debugger.GetOutputFile();