-g broken for DWARF2 on x86 platforms
Jeffrey A Law
law@cygnus.com
Mon Nov 24 00:32:00 GMT 1997
In message < u9pvnqiyyr.fsf@yorick.cygnus.com >you write:
> >>>>> J Kean Johnston <jkj@sco.com> writes:
>
> > Compiling C++ stuff with -g is broken on any platform with uses (or can
> > use) DWARF or DWARF2. Both on SCO and Linux dwarf2 -g causes unknown
> > symbols (for example .L_T6310) to be output.
>
> -gdwarf2 produces DWARF 1 output (debug level 2).
> -gdwarf-2 produces DWARF 2 output.
> The undefined symbol bug appears only to affect dwarf 1.
Good point.
I think I know what the problem is:
We never call equate_type_number_to_die_number for the type of array
elements.
You might think that the call in output_array_type_die would handle this,
but if you look closely at the loop in subscripe_data_attribute it can
change TYPE before calling type_attribute for the array element type.
Jeff
More information about the Gcc
mailing list