[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] avr-gcc dwarf-2 debug format.
From: |
Joerg Wunsch |
Subject: |
Re: [avr-gcc-list] avr-gcc dwarf-2 debug format. |
Date: |
Mon, 28 Mar 2005 22:22:20 +0200 (MET DST) |
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
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)