On Feb 27, 2009, at 4:24 PM, David VanHorn wrote:

Here's a studio question though:

When stepping thru the code, the pointer isn't always pointing to the line properly. Sometimes when it exits a function, it ends up pointing at the last brace, sometimes not. Sometimes when it enters a function, it ends up pointing at the first brace, sometimes not. Basically, I'm never SURE that the pointer is pointing to the code that's about to be executed.


Disable optimizations, -O0 I believe, and the source code debugger will more closely track the actual lines of code.

Also make sure you have specified -g in the compiler flags.

--
David Kelly N4HHE, dke...@hiwaay.net
========================================================================
Whom computers would destroy, they must first drive mad.



_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to