This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug rust/20367] add further Rust demangling
- From: "tromey at sourceware dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sun, 09 Apr 2017 00:20:39 +0000
- Subject: [Bug rust/20367] add further Rust demangling
- Auto-submitted: auto-generated
- References: <bug-20367-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=20367
--- Comment #5 from Tom Tromey <tromey at sourceware dot org> ---
I have a patch for this but I haven't been able to find a situation
where it helps.
It doesn't help minimal symbols, because gdb thinks those are always
C++ symbols. There was a gdb bug on file for this, for Java, for a
long time; but it's difficult to argue that it is really a gdb bug
as any fix would seem to involve using debug symbols to interpret
minimal symbol names, which seems like an inversion at least.
(IMO Rust should not use a mangling that is close to
C++, but that's how it is for now.)
On the other hand, for DWARF symbols, the ones that are likely
to be affected are all emitted in a funny way, with names like "{{impl}}"
embedded.
E.g.:
<54> DW_AT_linkage_name: (indirect string, offset: 0x84):
_ZN2bc8{{impl}}4what15__STATIC_FMTSTRE
There's a Rust compiler bug on file for this.
--
You are receiving this mail because:
You are on the CC list for the bug.