Add LLDB providers for BTreeMap and BTreeSet by ede1998 · Pull Request #140130 · rust-lang/rust (original) (raw)
Fixes #111868.
Still missing debuginfo
tests but struggling to get the tests running locally atm.Got the test to run somehow but the output of my provider seems totally wrong for some reason.
Ok, I found the cause: my original test program only had a BTreeMap<&str, &str>
but the tests have BTreeMap<i32, i32>
. Unfortunately, my provider seems to break because of an LLVM/LLDB bug: SBTarget.FindFirstType()
does not find the types I'm searching for. I could even bring it down to just this:
target = node.GetTarget()
print("leaf type:", node.GetType())
internal_type = target.FindFirstType(node.GetType().GetName())
print("Actual type:", internal_type)
which prints
leaf type: struct alloc::collections::btree::node::LeafNode<int, int> *
Actual type: No value