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: [RFC] Register commands using add_setshow_zuinteger_cmd


>>>>> "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


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