summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Debugger.cpp
diff options
context:
space:
mode:
authorCaroline Tice <ctice@apple.com>2011-06-16 16:27:19 +0000
committerCaroline Tice <ctice@apple.com>2011-06-16 16:27:19 +0000
commitd61c10bc79322b5c51a6facf0de490b1dcf6a809 (patch)
tree73a8aea61d3de2ce8e74caa23e216bc18ce67fa4 /lldb/source/Core/Debugger.cpp
parentb5703510595ebf8af37e6e7a479534a01e69fccd (diff)
downloadbcm5719-llvm-d61c10bc79322b5c51a6facf0de490b1dcf6a809.tar.gz
bcm5719-llvm-d61c10bc79322b5c51a6facf0de490b1dcf6a809.zip
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
Diffstat (limited to 'lldb/source/Core/Debugger.cpp')
-rw-r--r--lldb/source/Core/Debugger.cpp14
1 files changed, 2 insertions, 12 deletions
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());
}
OpenPOWER on IntegriCloud