aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectExpression.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2012-08-09 18:18:47 +0000
committerSean Callanan <scallanan@apple.com>2012-08-09 18:18:47 +0000
commitbcf897fa89d888637a41fa19ab2fc95c255ea3c5 (patch)
treee82493e405554ff20d13daa6dfeccbcee65bc116 /lldb/source/Commands/CommandObjectExpression.cpp
parent38c63ed5f80d6760505a49c0f316573b62a31ec3 (diff)
downloadllvm-bcf897fa89d888637a41fa19ab2fc95c255ea3c5.zip
llvm-bcf897fa89d888637a41fa19ab2fc95c255ea3c5.tar.gz
llvm-bcf897fa89d888637a41fa19ab2fc95c255ea3c5.tar.bz2
LLDB no longer prints <no result> 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. <rdar://problem/11225150> llvm-svn: 161600
Diffstat (limited to 'lldb/source/Commands/CommandObjectExpression.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectExpression.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lldb/source/Commands/CommandObjectExpression.cpp b/lldb/source/Commands/CommandObjectExpression.cpp
index 35d372d..d192c07 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("<no result>\n");
-
- if (result)
- result->SetStatus (eReturnStatusSuccessFinishResult);
+ error_stream->PutCString("(void)\n");
}
+
+ if (result)
+ result->SetStatus (eReturnStatusSuccessFinishResult);
}
else
{