Jeff Kowing <address@hidden> wrote:
What flags or patches are needed when building avr-gcc to enable
the dwarf-2 debug support ?
I believe you need to add --with-dwarf2
to the configure arguments.
I think that will also make it the default debugging format
though.
If you'd like to add the ability to use -gdwarf-2 but still
defaulting -g to -gstabs, use this patch:
--- gcc/config/avr/avr.h.orig Tue Mar 9 03:59:55 2004
+++ gcc/config/avr/avr.h Sun Jul 4 21:46:12 2004
@@ -2479,4 +2479,5 @@
/* zero register r1 */
#define ZERO_REGNO 1
+#define DWARF2_DEBUGGING_INFO 1
#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG