This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: [cli] set <var_boolean> <tab>?
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Subject: Re: [cli] set <var_boolean> <tab>?
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Sun, 23 Sep 2001 16:16:52 -0400
- Cc: gdb at sources dot redhat dot com
- References: <3BAD1EC0.1060504@cygnus.com>
> 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