[RFC] Register commands using add_setshow_zuinteger_cmd

Tom Tromey tromey@redhat.com
Mon Jul 30 17:26:00 GMT 2012


>>>>> "Yao" == Yao Qi <yao@codesourcery.com> writes:

Yao> I am examing the usage of zuinteger_cmd and zinteger_cmd today, and I find
Yao> that a lot of zinteger_cmd commands should be registered as zuinteger_cmd.
Yao> For example, all the debug commands, such as 'set debug infrun 1' should
Yao> be registered as 'zuinteger_cmd', because we never do 'set debug FOO -2'.

Yao> This patch is not indented to commit anything to CVS, but describe what I
Yao> try to do.  If it is the right way to go, I'll convert other zinteger_cmd
Yao> to zuinteger_cmd if appropriate.  What do you think?

For 'maint' and 'set debug' settings, I think it is fine.

For other settings, I guess it would depend on the actual benefits of
the change.  It seems unlikely that anybody relies on some of these
things.  But it also doesn't seem to cause much harm.

Tom



More information about the Gdb-patches mailing list