avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] [AVR] RTL prologue/epilogue ver.3


From: Georg-Johann Lay
Subject: Re: [avr-gcc-list] [AVR] RTL prologue/epilogue ver.3
Date: Thu, 13 Oct 2011 23:30:41 +0200
User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)

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

Johann




reply via email to

[Prev in Thread] Current Thread [Next in Thread]