This is the mail archive of the gdb-patches@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: [rfa] clean up output of "info set" command.


Pedro Alves wrote:
On Friday 11 February 2011 20:19:52, Michael Snyder wrote:
"info set" is meant to show the state of all "set"-able
debugger state variables, but it really executes each and
every "show" command in alphabetical order.

Several of these commands (notably "copying" and "warranty")
have no corresponding "set" command, are not "set"-able, and
produce a lot of output.  Especially "show copying" which
produces pages and pages of output.

Isn't there a property of the command we could check instead of hardcoding specific command names?

I'm open to suggestions. The only property I can think of is that there is no corresponding entry in "setlist". I could search setlist every time...

This patch excludes "copying", "warranty", and "version" from
the output of "info set'.



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