[PATCH 00/10] Fix two name-related bugs in DWARF reader

Christian Biesinger cbiesinger@google.com
Wed Mar 25 22:48:24 GMT 2020


On Wed, Mar 25, 2020 at 3:07 PM Tom Tromey <tom@tromey.com> wrote:
>
> I started this series by trying to fix PR rust/25025.  This showed
> that the Rust compiler sometimes emits two mangled forms that demangle
> to the same thing.
>
> In the end I could maybe have fixed this in a direct way (see patch #9
> for the details), but while debugging I went on a detour into the
> physname code and came up with this series.
>
> This changes the DWARF reader to avoid demangling when constructing
> partial symbols.  This obsoletes my previous patch to do the same
> thing; I think this approach is cleaner.
>
> It also attempts to fix the longstanding physname bug, PR 12707.
> After this series, the demangled form is now stored on the symbol
> again.

I haven't read the patches yet but just to clarify, does this mean
that a psymbol will now do the expected thing of storing the mangled
name as the linkage_name and the demangled name as the demangled_name?

Christian


More information about the Gdb-patches mailing list