From bcf897fa89d888637a41fa19ab2fc95c255ea3c5 Mon Sep 17 00:00:00 2001 From: Sean Callanan Date: Thu, 9 Aug 2012 18:18:47 +0000 Subject: LLDB no longer prints by default if the expression returns nothing. There is now a setting, "notify-void." When the user enables that setting, lldb prints (void) if an expression's result is void. Otherwise, lldb is silent. llvm-svn: 161600 --- lldb/source/Commands/CommandObjectExpression.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lldb/source/Commands/CommandObjectExpression.cpp') diff --git a/lldb/source/Commands/CommandObjectExpression.cpp b/lldb/source/Commands/CommandObjectExpression.cpp index 35d372ddd567..d192c072b948 100644 --- a/lldb/source/Commands/CommandObjectExpression.cpp +++ b/lldb/source/Commands/CommandObjectExpression.cpp @@ -374,13 +374,13 @@ CommandObjectExpression::EvaluateExpression { if (result_valobj_sp->GetError().GetError() == ClangUserExpression::kNoResult) { - if (format != eFormatVoid) + if (format != eFormatVoid && m_interpreter.GetDebugger().GetNotifyVoid()) { - error_stream->PutCString("\n"); - - if (result) - result->SetStatus (eReturnStatusSuccessFinishResult); + error_stream->PutCString("(void)\n"); } + + if (result) + result->SetStatus (eReturnStatusSuccessFinishResult); } else { -- cgit v1.2.3