From 07e66e3ebef8859d7b421ac5778ef92b980a16f3 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Wed, 20 Jul 2011 03:41:06 +0000 Subject: 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 --- lldb/source/Commands/CommandObjectExpression.cpp | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'lldb/source/Commands/CommandObjectExpression.cpp') 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; -- cgit v1.2.3