On Jun 7, 2008, at 5:13 PM, Cat Hotmail wrote: > I'm having this weird problem whereby I am able to debug, and to step > through the program, but it just ignores/skips some of the lines. As you have found when -Os is changed to -O0 all your "lines" appear as expected in the debugger. You didn't say whether "skipped" lines were executed or not, I suspect they were. Just optimized to where the debugger couldn't single out and associate assembly code with source code. To some extent you could use more volatile modifiers to create distinct source code line demarcations that will single step debug. -- David Kelly N4HHE, dkelly@HiWAAY.net ======================================================================== Whom computers would destroy, they must first drive mad.
Message
Re: [AVR-Chat] AvrStudio4 (2008), WinAVR (2007-05...) and Dragon problem debugging C code (jtag)
2008-06-08 by David Kelly