[Lldb-commits] [lldb] [lldb][test] Fix unordered-map test (PR #156033)
Michael Buch via lldb-commits
lldb-commits at lists.llvm.org
Thu Sep 11 04:42:13 PDT 2025
Michael137 wrote:
> > @da-viper since you can repro this issue locally, mind confirming @labath's theory ([#156033 (comment)]
> > ([#156033 (comment)](https://github.com/llvm/llvm-project/pull/156033#issuecomment-3253156453)))?
>
> > The "frame var" expression would be more similar to script lldb.frame.FindVariable("ptr1").Dereference().GetChildAtIndex(0)
>
> This works in this case.
>
> ```shell
> >>> lldb.frame.FindVariable("ptr1").Dereference().GetChildAtIndex(0)
> (std::pair<const std::basic_string<char>, std::basic_string<char> >) [0] = (first = "Hello", second = "World")
> ```
What I'm a bit confused about is why the map even contains a `__cc_` member in the first place. @da-viper could you attach LLDB to the test binary and dump the output of `frame var --raw ptr1`? If it's being compiled in C++03 mode, why? Could it be that on your setup we are not building a local libc++ for some reason. And the system libc++ is a really old one? That's my only guess at the moment. We should probably just remove all the `__cc_` support from our data-formatters anyway. Since it's not being tested
https://github.com/llvm/llvm-project/pull/156033
More information about the lldb-commits
mailing list