[Lldb-commits] [lldb] [lldb] Add comment on cross printing of	summary/value (PR #81681)
    via lldb-commits 
    lldb-commits at lists.llvm.org
       
    Tue Feb 13 14:44:31 PST 2024
    
    
  
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Dave Lee (kastiglione)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/81681.diff
1 Files Affected:
- (modified) lldb/source/Core/ValueObject.cpp (+1) 
``````````diff
diff --git a/lldb/source/Core/ValueObject.cpp b/lldb/source/Core/ValueObject.cpp
index e80042826f7d64..2a2bb128d33c57 100644
--- a/lldb/source/Core/ValueObject.cpp
+++ b/lldb/source/Core/ValueObject.cpp
@@ -1312,6 +1312,7 @@ bool ValueObject::DumpPrintableRepresentation(
       break;
     }
 
+    // Try summary if no value, and value if no summary.
     if (str.empty()) {
       if (val_obj_display == eValueObjectRepresentationStyleValue)
         str = GetSummaryAsCString();
``````````
</details>
https://github.com/llvm/llvm-project/pull/81681
    
    
More information about the lldb-commits
mailing list