I configured and built the most recent gcc snapshot:
$ avr-gcc -v
Reading specs from /usr/local/lib/gcc/avr/3.4.0/specs
Configured with: ./configure --prefix=/usr/local --enable-languages=c,c++ --target=avr --with-dwarf2
Thread model: single
gcc version 3.4.0 20040324 (prerelease)
This seems ok, but I cannot get avr-gcc to output .debug_frame sections.
I did take a look at this document
http://www.sunsite.ualberta.ca/Documentation/Gnu/gcc-3.0.2/html_node/gcc_295.html#SEC295
and tried adding #define DWARF2_FRAME_INFO 1 to gcc/configure/avr/avr.h and rebuilt gcc, but this did not help.
Does anybody know how to make avr-gcc emit the dwarf debug frame information?
Is there a configure flag or something that governs this, or do I have to edit the machine description files?
regards,
Torleif Sandnes