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

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

Re: [avr-gcc-list] Debug with AVRStudio4?


From: Torleif Sandnes
Subject: Re: [avr-gcc-list] Debug with AVRStudio4?
Date: Wed, 07 Sep 2005 12:36:25 +0200
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

 > The problem is that AVRstudio and the gnu tools seem to have
different line numbers: debugging somewhat works, variables seem to be correctly displayed, but breakpoints/singlestepping is - um - "funny".

Is this combination supposed to work at all?

Yes.
Your problem may be that you are compiling with optimization on.
Try to use -O0 instead of -Os, -O1 or whatever you are using.
You could also just remove the -O flag altogether.

Torleif




reply via email to

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