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 http://www.sax.de/~joerg/ Never trust an operating system you don't have sources for. ;-) _______________________________________________ AVR-libc-dev mailing list AVR-libc-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/avr-libc-dev