[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: Wallace White
Subject: Re: [avr-gcc-list] Watching automatic variables in AVR Studio
Date: Tue, 19 Apr 2005 22:32:05 -0700

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 
> displayed
> then.

Of course! Turning off optimization did the trick. Did I mention it's
been a couple of years? ;)


reply via email to

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