This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: Completion in "set history filename"
- To: Eli Zaretskii <eliz at is dot elta dot co dot il>
- Subject: Re: Completion in "set history filename"
- From: Fernando Nasser <fnasser at cygnus dot com>
- Date: Tue, 06 Mar 2001 12:22:35 -0500
- CC: gdb-patches at sources dot redhat dot com
- Organization: Red Hat , Inc. - Toronto
- References: <200103041736.MAA25617@indy.delorie.com>
Eli Zaretskii wrote:
>
> One more command which didn't complete as God intended...
>
> Okay to commit?
>
Sure. If you find any more of these cases just post and check it in.
Thanks for improving the completion.
Regards,
Fernando
> 2001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
>
> * top.c (init_main): Make `set history filename' complete on file
> names.
>
> --- gdb/top.c~0 Thu Jan 25 17:19:30 2001
> +++ gdb/top.c Sun Mar 4 19:21:10 2001
> @@ -2080,11 +2080,12 @@ ie. the number of previous commands to k
> add_show_from_set (c, &showhistlist);
> c->function.sfunc = set_history_size_command;
>
> - add_show_from_set
> - (add_set_cmd ("filename", no_class, var_filename, (char *) &history_filename,
> - "Set the filename in which to record the command history\n\
> - (the list of previous commands of which a record is kept).", &sethistlist),
> - &showhistlist);
> + c = add_set_cmd ("filename", no_class, var_filename,
> + (char *) &history_filename,
> + "Set the filename in which to record the command history\n\
> + (the list of previous commands of which a record is kept).", &sethistlist);
> + c->completer = filename_completer;
> + add_show_from_set (c, &showhistlist);
>
> add_show_from_set
> (add_set_cmd ("confirm", class_support, var_boolean,
--
Fernando Nasser
Red Hat - Toronto E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9