[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-chat] avr-gdb can't diaplay variables while setting avr-gcc "Op
From: |
Joerg Wunsch |
Subject: |
Re: [avr-chat] avr-gdb can't diaplay variables while setting avr-gcc "Optimization level 0" |
Date: |
Fri, 20 Jul 2007 07:18:54 +0200 (MET DST) |
Glen Jackson <address@hidden> wrote:
> As we all know, setting avr-gcc "Optimization level to 0" will turn
> off the optimization. but when after doing this, i can't display the
> variables throug avr-gdb.
Which debugging format, DWARF-2 or stabs? WinAVR's GCC defaults to
DWARF-2 (because that's AVR Studio compatible), but AVR-GDB doesn't
really understand that. Use -gstabs when you want to debug with
AVR-GDB.
--
cheers, J"org .-.-. --... ...-- -.. . DL8DTL
http://www.sax.de/~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)