avr-libc-dev
[Top][All Lists]
Advanced

[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: Wouter van Gulik
Subject: Re: [avr-libc-dev] [avr-libc-commit] [2372] * configure.ac (--with-debug-info): New option.
Date: Mon, 29 Apr 2013 22:15:49 +0200

See comments below

On Mon Apr 29 2013 05:56:08 PM CEST, Joerg Wunsch <address@hidden> wrote:

===================================================================
> --- trunk/avr-libc/configure.ac    2013-04-29 12:21:04 UTC (rev 2371)
> +++ trunk/avr-libc/configure.ac    2013-04-29 15:56:07 UTC (rev 2372)
> @@ -326,6 +326,31 @@
>   AC_SUBST(AVR_LIBC_USER_MANUAL)
>   AC_SUBST(DOC_INST_DIR)
>   
> +dnl Let the user decide which debug information to generate.
> +dnl Default is nothing, suitable for binary distributions of the
> +dnl compiled library.   Alternative options include stabs, dwarf-2,
> +dnl or dwarf-4.
> +AC_ARG_ENABLE(debug-info,
> +[   --enable-debug-info=stabs|dwarf-2|dwarf-4   Enable generation of
> debugging information], +[case "${enableval}" in
> +   yes|dwarf2|dwarf-2) debuginfo=dwarf2 ;;
> +   no)                                 debuginfo="" ;;
> +   stabs)                           debuginfo=stabs ;;
> +   dwarf4|dwarf-4)         debuginfo=dwarf4 ;;
> +   *)                                   AC_MSG_ERROR([bad value ${enableval} 
> for
> --enable-debug-info option; should be either stabs, dwarf-2, or
> dwarf-4]) ;; + esac], [debuginfo=""]) +
> +dnl Decide which debuginfo information to include
> +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?

Hth,

wouter


reply via email to

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