> -----Original Message----- > From: Georg-Johann Lay > Sent: Thursday, October 13, 2011 3:31 PM > To: AVR-GCC-list@nongnu.org > Cc: Weddington, Eric; Boyapati, Anitha > Subject: Re: [avr-gcc-list] [AVR] RTL prologue/epilogue ver.3 > > Weddington, Eric a écrit: > > > There will probably have to be some info in the DWARF debug info for the > > debugger to track... > > The information is all there, it just has to be used. > > But maybe the real problem is located in > > ./gcc/config/avr/elf.h: > > #undef PREFERRED_DEBUGGING_TYPE > #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG > > so that is does not suffice to specify -g to get DWARF. > I copied these lines above from avr.h in order to have no functional > change when I cleaned up the elf code and included ./gcc/config/elfos.h > which reads: > > /* The GNU tools operate better with dwarf2, and it is required by some > psABI's. Since we don't have any native tools to be compatible with, > default to dwarf2. */ > > #ifndef PREFERRED_DEBUGGING_TYPE > #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG > #endif
Yeah, we need to make sure that DWARF2 debugging info is the default and enabled. _______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-gcc-list