-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lldb hashmap pretty printer broken #81814
Comments
@ehuss I checked the issue with two different LLDB:
by adding the following code to the from pprint import pprint
pprint("Without GetTypedefedType(): " + table.type.template_args[0].GetName())
pprint("IsTypedefType(): " + str(table.type.template_args[0].IsTypedefType()))
pprint("With GetTypedefedType(): " + table.type.template_args[0].GetTypedefedType().GetName())
|
I may be misunderstanding you, but |
@ehuss Oh, that's even worse since macOS LLDB has very poor Rust support. I believe that debugging support is crucial for any compiled programming language, surely including Rust. So it would be really great to consider shipping rust-enabled LLDB and, more importantly, to maintain and improve Rust support in both GDB and LLDB. |
The LLDB provider for hash maps has been broken since #79234.
Repro:
Run this, notice that it doesn't print any values for the hash map:
Using an older version works (1.49 or earler):
I don't understand the motivation for #79234, as you can see the older versions are able to display the type. @ortem can you clarify what is going on?
I did some debugging, and the
pair_type_size
anddata_ptr
values are invalid.Another way to check this is to run the
src/test/debuginfo/pretty-std-collections.rs
test. Due to #81813 it hasn't been running on CI.It has a check for the following output:
But the actual output is:
The text was updated successfully, but these errors were encountered: