This is the mail archive of the gdb-patches@sourceware.org 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 01/67] Add add_cmd function overloads


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


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