[Lldb-commits] [lldb] [lldb] Show value for libcxx and libstdcxx summary and remove pointer value in libcxx container summary (PR #125294)
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Mon Feb 3 00:58:38 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"])
----------------
labath wrote:
That makes sense, but you can still use `expect_expr` to match this. You just need to say `result_summary=re.compile("your_pattern")`
https://github.com/llvm/llvm-project/pull/125294
More information about the lldb-commits
mailing list