[Lldb-commits] [lldb] [lldb] Add comment on cross printing of summary/value (PR #81681)
Dave Lee via lldb-commits
lldb-commits at lists.llvm.org
Tue Feb 13 14:43:59 PST 2024
https://github.com/kastiglione created https://github.com/llvm/llvm-project/pull/81681
None
>From 35a48898e20ba45db829dbf137d88a8417dd4d7c Mon Sep 17 00:00:00 2001
From: Dave Lee <davelee.com at gmail.com>
Date: Tue, 13 Feb 2024 14:43:33 -0800
Subject: [PATCH] [lldb] Add comment on cross printing of summary/value
---
lldb/source/Core/ValueObject.cpp | 1 +
1 file changed, 1 insertion(+)
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();
More information about the lldb-commits
mailing list