[Lldb-commits] [lldb] [lldb] Show value for libcxx and libstdcxx summary and remove pointer value in libcxx container summary (PR #125294)
Zequan Wu via lldb-commits
lldb-commits at lists.llvm.org
Fri Jan 31 13:13:22 PST 2025
================
@@ -172,7 +172,4 @@ def test_ref_and_ptr(self):
# The pointer should just show the right number of elements:
- ptrAddr = self.findVariable("ptr").GetValue()
- self.expect_expr(
- "ptr", result_type="std::span<int, 5> *", result_summary=f"{ptrAddr} size=5"
- )
+ self.expect("frame variable ptr", patterns=["ptr = 0x.*", " size=5"])
----------------
ZequanWu wrote:
`SBValue::GetValue` essentially uses the summary string provided by summary provider. So it returns "size=5" after I removed the pointer value in libcxx container summary.
https://github.com/llvm/llvm-project/pull/125294
More information about the lldb-commits
mailing list