diff options
author | Greg Clayton <gclayton@apple.com> | 2011-07-20 03:41:06 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2011-07-20 03:41:06 +0000 |
commit | 07e66e3ebef8859d7b421ac5778ef92b980a16f3 (patch) | |
tree | d73be95ae4931aefc9b501a474869a4f2f29dea5 /lldb/source/Commands/CommandObjectExpression.cpp | |
parent | 60648578ba6203cb7cc2a4c119c81a6b48af6942 (diff) | |
download | bcm5719-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.cpp | 18 |
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; |