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

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

[avr-libc-commit] [2489] patch #8564: Add dwarf debug info alternative,


From: Pitchumani
Subject: [avr-libc-commit] [2489] patch #8564: Add dwarf debug info alternative, build printf with debug info
Date: Tue, 06 Oct 2015 09:43:30 +0000

Revision: 2489
          http://svn.sv.gnu.org/viewvc/?view=rev&root=avr-libc&revision=2489
Author:   pitchumani
Date:     2015-10-06 09:43:29 +0000 (Tue, 06 Oct 2015)
Log Message:
-----------
patch #8564: Add dwarf debug info alternative, build printf with debug info

Ticket Links:
------------
    http://savannah.gnu.org/patch/?8564

Modified Paths:
--------------
    trunk/avr-libc/ChangeLog
    trunk/avr-libc/NEWS
    trunk/avr-libc/configure.ac
    trunk/avr-libc/libc/stdio/Rules.am

Modified: trunk/avr-libc/ChangeLog
===================================================================
--- trunk/avr-libc/ChangeLog    2015-10-06 09:25:08 UTC (rev 2488)
+++ trunk/avr-libc/ChangeLog    2015-10-06 09:43:29 UTC (rev 2489)
@@ -1,3 +1,9 @@
+2015-10-06  Joern Rennecke <address@hidden>
+
+       patch #8564: Add dwarf debug info alternative, build printf with debug 
info
+       * configure.ac (--enable-debug-info=): Add dwarf alternative.
+       * libc/stdio/Rules.am (PRINTF_CFLAGS): Add @address@hidden
+
 2015-10-06  Pitchumani Sivanupandi <address@hidden>
 
        patch #8731: Header file for atmega644a

Modified: trunk/avr-libc/NEWS
===================================================================
--- trunk/avr-libc/NEWS 2015-10-06 09:25:08 UTC (rev 2488)
+++ trunk/avr-libc/NEWS 2015-10-06 09:43:29 UTC (rev 2489)
@@ -30,6 +30,7 @@
   [no-id] save & restore rampd register in xmega wdt_enable and wdt_disable
   [#8543] Fix multiple issues with device header files
   [#8563] Generalize power reduction macros in power.h by removing hard coded 
device names
+  [#8564] Add dwarf debug info alternative, build printf with debug info
   [#8565] Compute and include device header file name from
           __AVR_DEV_LIB_NAME__ as fallback in io.h.
   [#8587] Move device specific functions to libdev.a

Modified: trunk/avr-libc/configure.ac
===================================================================
--- trunk/avr-libc/configure.ac 2015-10-06 09:25:08 UTC (rev 2488)
+++ trunk/avr-libc/configure.ac 2015-10-06 09:43:29 UTC (rev 2489)
@@ -353,7 +353,7 @@
 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.
+dnl dwarf-4 or [compiler's default version] dwarf.
 AC_ARG_ENABLE(debug-info,
 [  --enable-debug-info=stabs|dwarf-2|dwarf-4  Enable generation of debugging 
information],
 [case "${enableval}" in
@@ -361,6 +361,7 @@
   no)                 debuginfo="" ;;
   stabs)              debuginfo=stabs ;;
   dwarf4|dwarf-4)     debuginfo=dwarf4 ;;
+  dwarf)              debuginfo=dwarf ;;
   *)                  AC_MSG_ERROR([bad value ${enableval} for 
--enable-debug-info option; should be either stabs, dwarf-2, or dwarf-4]) ;;
  esac], [debuginfo=""])
 
@@ -370,6 +371,7 @@
 stabs)   CDEBUG="-gstabs"; ASDEBUG="-Wa,-gstabs" ;;
 dwarf2)  CDEBUG="-gdwarf-2"; ASDEBUG="-Wa,-gdwarf-2" ;;
 dwarf4)  CDEBUG="-gdwarf-4"; ASDEBUG="-Wa,-gdwarf-2" ;;
+dwarf)   CDEBUG="-gdwarf"; ASDEBUG="-Wa,-gdwarf-2" ;;
 esac
 
 AC_SUBST(CDEBUG)

Modified: trunk/avr-libc/libc/stdio/Rules.am
===================================================================
--- trunk/avr-libc/libc/stdio/Rules.am  2015-10-06 09:25:08 UTC (rev 2488)
+++ trunk/avr-libc/libc/stdio/Rules.am  2015-10-06 09:43:29 UTC (rev 2489)
@@ -49,9 +49,9 @@
 
 libscanf_flt_a_LIBADD = vfscanf_flt.o
 
-# vfprintf is compiled best with -Os -fno-jump-tables (-mno-tablejump), 
+# vfprintf is compiled best with -Os -g -fno-jump-tables (-mno-tablejump), 
 # this gives the smallest code.
-PRINTF_CFLAGS = -Os $(FNO_JUMP_TABLES)
+PRINTF_CFLAGS = -Os @CDEBUG@ $(FNO_JUMP_TABLES)
 
 vfprintf_min.o: vfprintf.c
        $(COMPILE) $(PRINTF_CFLAGS) -DPRINTF_LEVEL=PRINTF_MIN -c -o $@ $<




reply via email to

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