This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA: make add_setshow_cmd public
- From: Tom Tromey <tromey at redhat dot com>
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: 25 Jun 2002 13:14:54 -0600
- Subject: Re: RFA: make add_setshow_cmd public
- References: <87wusndz3l.fsf@fleche.redhat.com> <3D18BC2C.8050007@cygnus.com>
- Reply-to: tromey at redhat dot com
>>>>> "Andrew" == Andrew Cagney <ac131313@cygnus.com> writes:
Andrew> Can the public version return void?
I looked. There is this code in cli-cmds.c that uses the return value:
set_verbose (NULL, 0, c);
This whole joke function is pretty stale though and could be removed.
IMHO.
Also from infcmd.c:
set_cmd_completer (c, filename_completer);
All other uses (that I've run into so far) are for deprecation.
Right now the straightforward translation breaks these uses.
Any preferences here?
Tom