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

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

Re: [avr-gcc-list] Re: sprintf


From: David Kelly
Subject: Re: [avr-gcc-list] Re: sprintf
Date: Fri, 27 Feb 2009 21:02:29 -0600


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, address@hidden
========================================================================
Whom computers would destroy, they must first drive mad.





reply via email to

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