This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfa] clean up output of "info set" command.
>>>>> "Michael" == Michael Snyder <msnyder@vmware.com> writes:
Pedro> Isn't there a property of the command we could check
Pedro> instead of hardcoding specific command names?
Michael> I'm open to suggestions. The only property I can think of is that
Michael> there is no corresponding entry in "setlist". I could search
Michael> setlist every time...
You could stick a new flag on the command object.
Or there is cmd_cfunc_eq, which is used for a similar purpose in some
places. I don't think this is super, but OTOH it isn't any worse than
existing code.
Tom