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: Checking variable scope - progress and questions


On Sun, Jan 14, 2007 at 02:11:00PM +0000, Rob Quill wrote:
> But I am having difficulty getting it to work for expressions of the form
> 
> $in_scope(x.y)
> 
> Becuase I can't find the place in the grammar when it is checked if
> this is in scope.

It isn't checked explicitly.  It's checked when we do the x.y
operation, so that we can look up the type of x.  Try setting a
breakpoint on 'error'; that may help.

-- 
Daniel Jacobowitz
CodeSourcery


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