From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cagney To: Andrew Cagney Cc: gdb@sources.redhat.com Subject: Re: [cli] set ? Date: Sun, 23 Sep 2001 13:17:00 -0000 Message-id: <3BAE4334.1060502@cygnus.com> References: <3BAD1EC0.1060504@cygnus.com> X-SW-Source: 2001-09/msg00200.html > I can either: > > o Add a add_set_boolean_cmd() that is similar > to add_set_auto_boolean_cmd() > > o Tweek add_set_cmd() to realise it is > a var_boolean and set things up accordingly. > > If the latter, I should probably eliminate add_set_auto_boolean_cmd() and adding it to add_set_cmd(). Closer inspection reveals the rationale. add_set_auto_boolean_cmd takes an explicit / strongly typed ``enum cmd_auto_boolean'' as the parameter that is updated. add_set_cmd() takes a ``void *''. I'll cook up a patch adding add_set_boolean_cmd(). Andrew