This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Checking variable scope - progress and questions
- From: Daniel Jacobowitz <drow at false dot org>
- To: Rob Quill <rob dot quill at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Wed, 17 Jan 2007 01:24:17 -0500
- Subject: Re: Checking variable scope - progress and questions
- References: <baf6008d0701140611p31e86492vb0894aa11cc3fea7@mail.gmail.com>
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