[PATCH 0/2] Clean up language handling in the DWARF reader

Tom Tromey tom@tromey.com
Tue Jun 8 15:26:28 GMT 2021


In my series to rewrite the DWARF psymtab reader, I needed to use the
dwarf2_per_cu_data 'lang' field.  However, I found that this field is
not normally set before the scanning is done, only afterward.

I fixed this with a hack on my WIP branch, but I decided to pull this
out into a separate patch.  Looking at it more deeply, I found that
this was set inconsistently (fixed in patch #1), and also that the
field is redundant (fixed in patch #2).

Regression tested on x86-64 Fedora 32.

Tom




More information about the Gdb-patches mailing list