[Top][All Lists]

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

Re: [avr-gcc-list] Missing debug info in extcoff for AVRStudio

From: Ned Konz
Subject: Re: [avr-gcc-list] Missing debug info in extcoff for AVRStudio
Date: Fri, 7 Apr 2006 10:45:07 -0700

On Apr 6, 2006, at 1:05 AM, Juergen Suetterlin wrote:

I'm developing with the GNU and AVRStudio (JTAGICE). When I compile my
project with the provided makfile template, create the ext coff file and load it into AVRStudio460 the GUI does not show the PC inicator (yellow
arrow) where it should be but some lines above
E.g. I have a code that looks like this:
01:void subfunc(void)
03:   ..do something..
06:void main(void)
08: subfunc();
After loading it into AVRStudio the yellow arrow points to line 04! but not
line 06 or 07.
I took a look into .lss and .map files as well as into the disassembly
window of AVRStudio and it seems that there were no "debug entries"
generated to the function "init code" of main. The only entries are for line
04 (return) and line 08 (subfunc call).
This problem occurs not only for the main function but also for all
functions. You can imagine that stepping through such a mess is no fun.
Maybe I make a mistake with the compiler options. Does anybody have a
solution for this problem?

It's not a problem, it's a feature. The compiler has optimized the function.

If you change the optimization to -O0 (instead of -O2 or -Os or -O3) you will see things stepping through in the order you wrote them.

Ned Konz

reply via email to

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