[Lldb-commits] [lldb] [lldb] Improve command status when dwim-print has no result (PR #114478)
Dave Lee via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 31 15:47:07 PDT 2024
https://github.com/kastiglione created https://github.com/llvm/llvm-project/pull/114478
None
>From 530e9db082ce2a3140045a1696c4e5c2f85a8f36 Mon Sep 17 00:00:00 2001
From: Dave Lee <davelee.com at gmail.com>
Date: Thu, 31 Oct 2024 15:26:21 -0700
Subject: [PATCH] [lldb] Improve command status when dwim-print has no result
---
lldb/source/Commands/CommandObjectDWIMPrint.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lldb/source/Commands/CommandObjectDWIMPrint.cpp b/lldb/source/Commands/CommandObjectDWIMPrint.cpp
index f5aa6a287b6f46..76bed100dc7291 100644
--- a/lldb/source/Commands/CommandObjectDWIMPrint.cpp
+++ b/lldb/source/Commands/CommandObjectDWIMPrint.cpp
@@ -231,7 +231,7 @@ void CommandObjectDWIMPrint::DoExecute(StringRef command,
if (valobj_sp->GetError().GetError() != UserExpression::kNoResult)
dump_val_object(*valobj_sp);
else
- result.SetStatus(eReturnStatusSuccessFinishResult);
+ result.SetStatus(eReturnStatusSuccessFinishNoResult);
if (suppress_result)
if (auto result_var_sp =
More information about the lldb-commits
mailing list