From d61c10bc79322b5c51a6facf0de490b1dcf6a809 Mon Sep 17 00:00:00 2001 From: Caroline Tice Date: Thu, 16 Jun 2011 16:27:19 +0000 Subject: 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 --- lldb/source/Core/Debugger.cpp | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'lldb/source/Core/Debugger.cpp') diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp index 5610ad764c6..ba43411dfaf 100644 --- a/lldb/source/Core/Debugger.cpp +++ b/lldb/source/Core/Debugger.cpp @@ -452,19 +452,9 @@ Debugger::NotifyTopInputReader (InputReaderAction notification) bool Debugger::InputReaderIsTopReader (const lldb::InputReaderSP& reader_sp) { - if (reader_sp) - { - InputReaderSP top_reader_sp (GetCurrentInputReader()); - if (top_reader_sp) - { - return (reader_sp.get() == top_reader_sp.get()); - } - else - return false; - } - else - return false; + InputReaderSP top_reader_sp (GetCurrentInputReader()); + return (reader_sp.get() == top_reader_sp.get()); } -- cgit v1.2.3