[Top][All Lists]

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

Re: [avr-gcc-list] Watching automatic variables in AVR Studio

From: Torleif Sandnes
Subject: Re: [avr-gcc-list] Watching automatic variables in AVR Studio
Date: Wed, 20 Apr 2005 07:45:38 +0200
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

Wallace White wrote:
> On 4/18/05, Torleif Sandnes <address@hidden> wrote:
>> > When I set a watch on a global variable in AVR Studio, the watch works
>>>as expected. But I haven't had any luck with watching automatic
>>>variables; AVR Studio always reports "Not in scope."
>>>Is that just the way it is? It's been two years since I developed on
>>>the AVR, and I thought you could watch automatics before, but maybe
>>>that's wishful remembering. I was one of the early beneficiaries of
>>>J"org's extended coff tools, which seems to have been superceded by
>>>elf dwarf-2 support in AVR Studio, so I'm using elf now:
>>This may be a side-effect of optimization or debugging another part than you
>>compiled for.
>>Which optimization flags do you compile with?
>>Try to turn optimization off and see if stack variables are correctly 
> Of course! Turning off optimization did the trick. Did I mention it's
> been a couple of years? ;)

Theoretically, the Dwarf debug information has arrangements for keeping track of variables through their lifetime in optimized code. I think I could add support for this in AVR Studio if avr-gcc put this information in the object files.


reply via email to

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