[En-Nut-Discussion] generating .elf files for debugging
José Vallet
jose.vallet at hut.fi
Fri Jan 27 17:39:21 CET 2006
José Vallet wrote:
> Now the problem is that the avr-gcc doesn't accept the dwarf-2 option.
>
> I use WinAVR, and this uses the following avr-gcc version
> $ avr-gcc -v
> Reading specs from c:\WinAVR\bin\..\lib\gcc-lib\avr\3.3.1\specs
> Configured with: ../configure --prefix=/e/avrdev/install --target=avr
> --enable-languages=c,c++ --disable-nls --enable-win32-registry=WinAVR
> Thread model: single
> gcc version 3.3.1
>
> I cannot see the --with-dwarf2 option that I have seen in many places.
> Could this be the reason?
>
> If so, could be a solution to try to recompile avr-gcc under cygwin
> with --with-dwarf2 option? Any other better suggestion?
Yes, upgrade to Winavr-20050214. Somewhere in the manuals it says:
"This version of the compiler can generate both DWARF2 and stabs
debugging information."
Now, with the new version of the compiler I get the
"warning: assignment discards qualifiers from pointer target type"
with ethernut-4.0.1. I think I remember to have read once somewhere that
this is due to some changes in the compiler about warnings generation,
and that it is solved in new releases of ethernut. But essentially I can
live with it, (I mean, it is a warning, ugly but just a warning, not a bug)
Am I right? Any suggestion?
Thanks!
José
More information about the En-Nut-Discussion
mailing list