|
From: | Glen Jackson |
Subject: | Re: [avr-chat] avr-gdb can't diaplay variables while setting avr-gcc "Optimization level 0" |
Date: | Fri, 20 Jul 2007 14:14:00 +0800 |
User-agent: | Thunderbird 2.0.0.4 (Windows/20070604) |
Joerg Wunsch wrote:
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.
I see. Change it to -gstabs, avr-gdb work well. Thank a lot.
[Prev in Thread] | Current Thread | [Next in Thread] |