Skip to content

Commit 2bd21b2

Browse files
authored
[lldb] Improve command status when dwim-print has no result (#114478)
When an expression produces no result, set `dwim-print` status to `eReturnStatusSuccessFinishNoResult`.
1 parent 57183b6 commit 2bd21b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Commands/CommandObjectDWIMPrint.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ void CommandObjectDWIMPrint::DoExecute(StringRef command,
231231
if (valobj_sp->GetError().GetError() != UserExpression::kNoResult)
232232
dump_val_object(*valobj_sp);
233233
else
234-
result.SetStatus(eReturnStatusSuccessFinishResult);
234+
result.SetStatus(eReturnStatusSuccessFinishNoResult);
235235

236236
if (suppress_result)
237237
if (auto result_var_sp =

0 commit comments

Comments
 (0)