This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: -var-update and address changes


On Thu, May 04, 2006 at 07:11:46PM +0400, Vladimir Prus wrote:
> This appears to work for a simple case of variable 'i' defined both in 'main' 
> and in 'foo' called from main.
> 
> For the case where I'm stepping into 'bar' that has no 'i', -var-update 
> correctly says that 'i' has gone out of scope. However, after -exec-finish, 
> -var-update does not say that 'i' is not back in scope -- which would be nice 
> if "@-varobjs" are to be used for watches.

I'm not terribly surprised by this.  While I was fiddling with it I got
the feeling that the in-and-out-of-scope code was not very robust.  I'm
not going to try to debug this any further now, though - do you want to?


-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]