This is the mail archive of the gdb-patches@sources.redhat.com 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: RFA: make add_setshow_cmd public


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


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