This is the mail archive of the
mailing list for the GDB project.
Re: RFC: Skip declarations in "info variables"
On Sat, Nov 14, 2009 at 11:35:00AM +0200, Eli Zaretskii wrote:
> To decide whether or not this is a Good Thing, we need to answer a
> question: What is the purpose of "info variables"? More specifically,
> what are the main use-cases for using it? Can people please share
> their experience with this command?
> Without that, I'm not sure we are not removing a potentially useful
A very good question.
I use "info variables" to find definitions - and some information
about where they come from. With all the declarations showing up I
can't figure out what file defined the variable, which I find
inconvenient. Actually, I'd like it even better if I had the
There's usually at least one definition, so the only thing the
declarations add is a list of files that (may or may not depending on
the whim of the compiler) have referenced the global variable.
Thoughts? Anyone see a use for the declarations that I don't?