[Lldb-commits] [lldb] 2bd21b2 - [lldb] Improve command status when dwim-print has no result (#114478)

via lldb-commits lldb-commits at lists.llvm.org
Fri Nov 1 13:39:18 PDT 2024


Author: Dave Lee
Date: 2024-11-01T13:39:14-07:00
New Revision: 2bd21b26e26e5a4b962307d30c8e6279b464bf02

URL: https://github.com/llvm/llvm-project/commit/2bd21b26e26e5a4b962307d30c8e6279b464bf02
DIFF: https://github.com/llvm/llvm-project/commit/2bd21b26e26e5a4b962307d30c8e6279b464bf02.diff

LOG: [lldb] Improve command status when dwim-print has no result (#114478)

When an expression produces no result, set `dwim-print` status to 
`eReturnStatusSuccessFinishNoResult`.

Added: 
    

Modified: 
    lldb/source/Commands/CommandObjectDWIMPrint.cpp

Removed: 
    


################################################################################
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