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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user