as I changed from Windows to Linux some years ago I missed the possibility to debug my ATMEGA with AVR-Studio :-(
Now I tried AVARICE with DDD and a AVR-DRAGON. Actually I am able to debug expect one problem. I can' t see the values for any peripheral registers like PORTA which are defined in <avr/io.h>. This information seems to be lost during preprocessing and the gdb has no access to this. Another ugly consequence is that I cant set a breakpoint via the graphical interface of DDD on a line like this: PORTA &= ~_BV(PORTA0). The DDD issues something like:
(gdb) break PORTA
Function "PORTA" not defined.
Breakpoint 4 (PORTA) pending.
Setting the breakpoint via the gdb command break LINEx works.
Does anybody know how link this information?
Thanks a lot
avr-gcc -c -mmcu=atmega32 -I. -gstabs -DF_CPU=16000000UL -O1 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=./toggleLED.lst -std=gnu99 -Wundef -MMD -MP -MF .dep/toggleLED.o.d toggleLED.c -o toggleLED.o