Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Checking variable scope
@ 2006-11-22 11:32 Rob Quill
  2006-11-22 19:10 ` Jim Blandy
  0 siblings, 1 reply; 10+ messages in thread
From: Rob Quill @ 2006-11-22 11:32 UTC (permalink / raw)
  To: gdb

Hi,

I am trying to make it possible to be able to check if a variable is
in scope at a given time. My current implementation for this involves
adding a parameter to parse_expression, and the parsing functions it
calls, all the way until it gets to the line:

if (sym == 0)
    error ("No symbol \"%s\" in specified context.", copy_name ($3));

in c-exp.y

as which point it doesn't call error, but calls another function which
returns a value signifing that the variable is not in scope.

Whilst this is OK, in that it (should) work, I was wondering if anyone
had a neater way of implementing it?

Thanks for your time.

Rob


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-11-29 19:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-22 11:32 Checking variable scope Rob Quill
2006-11-22 19:10 ` Jim Blandy
2006-11-23 13:09   ` Rob Quill
2006-11-27 19:46     ` Jim Blandy
2006-11-28 11:47       ` Rob Quill
2006-11-28 19:43         ` Jim Blandy
     [not found]           ` <baf6008d0611290519i4e25c51bt865320b09c756ec8@mail.gmail.com>
2006-11-29 13:20             ` Rob Quill
2006-11-29 18:44               ` Jim Blandy
2006-11-29 19:06                 ` Daniel Jacobowitz
2006-11-29 19:08                   ` Jim Blandy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox