summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectExpression.cpp
diff options
context:
space:
mode:
authorCaroline Tice <ctice@apple.com>2011-06-15 19:35:17 +0000
committerCaroline Tice <ctice@apple.com>2011-06-15 19:35:17 +0000
commit15356e7f4f8eb43cb290d0d8cb78bb5d08688310 (patch)
treec6c851e8e6817da3016aa4d5117714c05b906d4a /lldb/source/Commands/CommandObjectExpression.cpp
parent59d8c6071926f1510a0c4dbddba6e9d9f5ef544a (diff)
downloadbcm5719-llvm-15356e7f4f8eb43cb290d0d8cb78bb5d08688310.tar.gz
bcm5719-llvm-15356e7f4f8eb43cb290d0d8cb78bb5d08688310.zip
Replace direct uses of the Debugger's output stream with
uses of the asynchronous stream. llvm-svn: 133076
Diffstat (limited to 'lldb/source/Commands/CommandObjectExpression.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectExpression.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/lldb/source/Commands/CommandObjectExpression.cpp b/lldb/source/Commands/CommandObjectExpression.cpp
index e43e9bf0eaa..9f2e79e1a67 100644
--- a/lldb/source/Commands/CommandObjectExpression.cpp
+++ b/lldb/source/Commands/CommandObjectExpression.cpp
@@ -195,11 +195,13 @@ CommandObjectExpression::MultiLineExpressionCallback
switch (notification)
{
case eInputReaderActivate:
- reader.GetDebugger().GetOutputStream().Printf("%s\n", "Enter expressions, then terminate with an empty line to evaluate:");
+ {
+ StreamSP out_stream = reader.GetDebugger().GetAsyncOutputStream();
+ out_stream->Printf("%s\n", "Enter expressions, then terminate with an empty line to evaluate:");
+ out_stream->Flush();
+ }
// Fall through
case eInputReaderReactivate:
- //if (out_fh)
- // reader.GetDebugger().GetOutputStream().Printf ("%3u: ", cmd_object_expr->m_expr_line_count);
break;
case eInputReaderDeactivate:
@@ -217,14 +219,16 @@ CommandObjectExpression::MultiLineExpressionCallback
if (bytes_len == 0)
reader.SetIsDone(true);
- //else if (out_fh && !reader->IsDone())
- // ::fprintf (out_fh, "%3u: ", cmd_object_expr->m_expr_line_count);
break;
case eInputReaderInterrupt:
cmd_object_expr->m_expr_lines.clear();
reader.SetIsDone (true);
- reader.GetDebugger().GetOutputStream().Printf("%s\n", "Expression evaluation cancelled.");
+ {
+ StreamSP out_stream = reader.GetDebugger().GetAsyncOutputStream();
+ out_stream->Printf("%s\n", "Expression evaluation cancelled.");
+ out_stream->Flush();
+ }
break;
case eInputReaderEndOfFile:
OpenPOWER on IntegriCloud