avr-gcc, .debug_frame and bitfields
Denis Chertykov
denisc@overta.ru
Tue May 4 17:47:00 GMT 2004
Torleif Sandnes <tsandnes@atmel.no> writes:
> I have configured avr-gcc like this:
>
> bash-2.05$ avr-gcc -v
> Reading specs from /usr/local/bin/../lib/gcc/avr/3.4.0/specs
> Configured with: ./configure --prefix=/usr/local/
> --enable-languages=c,c++ --enable-version-specific-runtime-libs
> --target=avr --with-dwarf2
> Thread model: single
> gcc version 3.4.0
>
> When building objects, I am unable to make gcc output the .debug_frame section.
> This is how I build my objects:
>
> >avr-gcc -mmcu=atmega169 -gdwarf-2 -o test.elf test.c
Avr port support only stabs debugging format.
(-g equal to -gstabs.)
[...]
> DW_AT_bit_offset : 0
> DW_AT_data_member_location: 2 byte block: 23 1 (DW_OP_plus_uconst: 1)
>
> Are these problems specific for the AVR target?
Yes.
> How would I go about to fix these problems?
Rewrite code which handle debugging information.
Denis.
More information about the Gcc
mailing list