summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands/CommandObjectExpression.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-07-20 03:41:06 +0000
committerGreg Clayton <gclayton@apple.com>2011-07-20 03:41:06 +0000
commit07e66e3ebef8859d7b421ac5778ef92b980a16f3 (patch)
treed73be95ae4931aefc9b501a474869a4f2f29dea5 /lldb/source/Commands/CommandObjectExpression.cpp
parent60648578ba6203cb7cc2a4c119c81a6b48af6942 (diff)
downloadbcm5719-llvm-07e66e3ebef8859d7b421ac5778ef92b980a16f3.tar.gz
bcm5719-llvm-07e66e3ebef8859d7b421ac5778ef92b980a16f3.zip
Added KDP resume, suspend, set/remove breakpoint, and kernel version support.
Also we now display a live update of the kexts that we are loading. llvm-svn: 135563
Diffstat (limited to 'lldb/source/Commands/CommandObjectExpression.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectExpression.cpp18
1 files changed, 12 insertions, 6 deletions
diff --git a/lldb/source/Commands/CommandObjectExpression.cpp b/lldb/source/Commands/CommandObjectExpression.cpp
index 0afb0eb13db..cab8ed549fc 100644
--- a/lldb/source/Commands/CommandObjectExpression.cpp
+++ b/lldb/source/Commands/CommandObjectExpression.cpp
@@ -198,9 +198,12 @@ CommandObjectExpression::MultiLineExpressionCallback
case eInputReaderActivate:
if (!batch_mode)
{
- StreamSP out_stream = reader.GetDebugger().GetAsyncOutputStream();
- out_stream->Printf("%s\n", "Enter expressions, then terminate with an empty line to evaluate:");
- out_stream->Flush();
+ StreamSP async_strm_sp(reader.GetDebugger().GetAsyncOutputStream());
+ if (async_strm_sp)
+ {
+ async_strm_sp->PutCString("Enter expressions, then terminate with an empty line to evaluate:\n");
+ async_strm_sp->Flush();
+ }
}
// Fall through
case eInputReaderReactivate:
@@ -228,9 +231,12 @@ CommandObjectExpression::MultiLineExpressionCallback
reader.SetIsDone (true);
if (!batch_mode)
{
- StreamSP out_stream = reader.GetDebugger().GetAsyncOutputStream();
- out_stream->Printf("%s\n", "Expression evaluation cancelled.");
- out_stream->Flush();
+ StreamSP async_strm_sp (reader.GetDebugger().GetAsyncOutputStream());
+ if (async_strm_sp)
+ {
+ async_strm_sp->PutCString("Expression evaluation cancelled.\n");
+ async_strm_sp->Flush();
+ }
}
break;
OpenPOWER on IntegriCloud