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: test availability of variables in context from user command


On Fri, 2007-02-23 at 16:59 +0100, Christophe Demarey wrote:
> Hello,
> 
> I want to check the availability of a variable (var1 for instance) in 
> the context from an user command but I don't find any way to do this.

Just interjecting a thought -- it would be nice if gdb had a
"which" command.  It could not only tell you whether an identifier
was in scope, but tell you WHICH scope it was in.  Could be useful,
for instance, to tell you that a local was over-shadowing a global.



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