[Top][All Lists]

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

Re: [avr-libc-dev] [avr-libc-commit] [2372] * configure.ac (--with-debug

From: Joerg Wunsch
Subject: Re: [avr-libc-dev] [avr-libc-commit] [2372] * configure.ac (--with-debug-info): New option.
Date: Mon, 29 Apr 2013 22:27:23 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

As Wouter van Gulik wrote:

> > +case "$debuginfo" in
> > +"")           CDEBUG=""; ASDEBUG="" ;;
> > +stabs)     CDEBUG="-gstabs"; ASDEBUG="-Wa,-gstabs" ;;
> > +dwarf2)   CDEBUG="-gdwarf-2"; ASDEBUG="-Wa,-gdwarf-2" ;;
> > +dwarf4)   CDEBUG="-gdwarf-4"; ASDEBUG="-Wa,-gdwarf-2" ;;
> is the ASDEBUG gdwarf-2 correct for dwarf 4?

According to the output of avr-as --help, it only supports generating
DWARF-2.  Thus, --enable-debug-info=dwarf-4 means DWARF-4 for the
compiler, and DWARF-2 for the assembly files.

However, for assembly source files, the generated debug info is very
limited anyway (I guess, to just the source line numbers), so there's
no practical difference between both DWARF versions for them.
cheers, Joerg               .-.-.   --... ...--   -.. .  DL8DTL

Never trust an operating system you don't have sources for. ;-)

reply via email to

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