[Top][All Lists]

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

[avr-gcc-list] Debugging with gdb7.5

From: Schwichtenberg, Knut
Subject: [avr-gcc-list] Debugging with gdb7.5
Date: Thu, 27 Jun 2013 09:46:57 +0200

Hello everyone,

For reliable debugging I swapped from AS6 to gdb/avarice. It is gcc 4.7.2 and 
gdb 7.5 I'm using and an ICE3 which is running smoothly - more stable than AS6. 
Also compilation using make is much faster than AS6 on the same machine. 
Yesterday I found out a problem in the toolchain. If main() starts at 0x10000 
or later gdb accepts a breakpoint but did not stop at ANY breakpoint! To move 
main() below the 64k border would require to set all PROGMEMs into a separate 
segment, because they are shifting main to a high location.
The bad thing about it is AS6 does not have this breakpoint problem. As long as 
it is unclear which program is responsible for this problem Jörg will have a 
look to an avarice trace.

BTW: Does it make sense to have all PROGMEM variables as the first components 
to be set in the flash or shouldn't they be moved per default to the end of the 
text segment?


reply via email to

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