avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] Debugging problem with gdb-avr.


From: Miguel
Subject: [avr-gcc-list] Debugging problem with gdb-avr.
Date: Sat, 7 Feb 2009 19:06:52 +0100

Hi to all,

I´m trying to program and debug an atmega16, with Avarice, gcc-avr and gdb-avr with JTAG, using the avr Dragon device.

I can program the target correctly and the code works fine in it.

my problems come when I debug by using functions(besides the main),
the allocations to the registers don´t happen correctly, 
and the steps are not in the correct order.

if I put all the code in the main function, the debug seems ok.

I suspect that the problem is in gdb-avr.
Anyone has had any problems about the same issue?


I compile with:
avr-gcc -g  -mmcu=atmega16 -c hello.c;avr-gcc -g  -mmcu=atmega16 -o hello.elf hello.o;avr-objcopy -j .text -j .data -O ihex hello.elf hello.hex 

I use:
debian-sid.
ii  gcc-avr                              1:4.3.3-1
ii  gdb-avr                              6.4.90.dfsg-2.1              
ii  avarice                              2.8-1

Thanks in advance.

--
-----------
Miguel.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]