This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 01/67] Add add_cmd function overloads
- From: Pedro Alves <palves at redhat dot com>
- To: Tom Tromey <tom at tromey dot com>, gdb-patches at sourceware dot org
- Date: Thu, 21 Sep 2017 11:25:06 +0100
- Subject: Re: [RFA 01/67] Add add_cmd function overloads
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=palves at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 9E403C0587C5
- References: <20170921051023.19023-1-tom@tromey.com> <20170921051023.19023-2-tom@tromey.com>
On 09/21/2017 06:09 AM, Tom Tromey wrote:
> @@ -140,6 +141,15 @@ extern struct cmd_list_element *add_cmd (const char *, enum command_class,
> const char *,
> struct cmd_list_element **);
>
> +extern struct cmd_list_element *add_cmd (const char *, enum command_class,
> + const char *,
> + struct cmd_list_element **);
> +
> +extern struct cmd_list_element *add_cmd (const char *, enum command_class,
> + cmd_const_cfunc_ftype *fun,
> + const char *,
> + struct cmd_list_element **);
> +
Can you please add some comments describing the difference between the
overloads? Here and in other cases.
Thanks,
Pedro Alves