This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug rust/21763] gdb.lookup_type fails for rust
- From: "tromey at sourceware dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 12 Jul 2017 22:59:23 +0000
- Subject: [Bug rust/21763] gdb.lookup_type fails for rust
- Auto-submitted: auto-generated
- References: <bug-21763-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=21763
--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
The issue seems to be that lookup_typename looks in VAR_DOMAIN,
but the symbol in question is in STRUCT_DOMAIN.
Two possible fixes come to mind.
One is to attempt to put all Rust types into VAR_DOMAIN.
This arguably even makes sense because VAR_DOMAIN is defined
as holding typedefs (which seems weird -- having a real
"types" domain might be preferable, but much harder).
This change could probably be done just in dwarf2read.c,
though patching rust_lookup_type would be good to do as well.
It's unclear what other issues this might introduce.
The second possible fix is to have typy_lookup_typename
also search STRUCT_DOMAIN if the VAR_DOMAIN search fails.
--
You are receiving this mail because:
You are on the CC list for the bug.