diff options
author | Eli Zaretskii <eliz@gnu.org> | 2001-03-07 07:21:13 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2001-03-07 07:21:13 +0000 |
commit | 7a1bd56a086cb8e81095bc373f0aadc0fe91fa8e (patch) | |
tree | c8961bc823d9f5647ae55b1a2621b2872e0b3c2a /gdb/top.c | |
parent | 21a12a30df024f2469d0bdf2f1a241e3a05378b8 (diff) | |
download | gdb-7a1bd56a086cb8e81095bc373f0aadc0fe91fa8e.zip gdb-7a1bd56a086cb8e81095bc373f0aadc0fe91fa8e.tar.gz gdb-7a1bd56a086cb8e81095bc373f0aadc0fe91fa8e.tar.bz2 |
* top.c (init_main): Make `set history file name' complete on file
names.
Diffstat (limited to 'gdb/top.c')
-rw-r--r-- | gdb/top.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -2081,11 +2081,12 @@ ie. the number of previous commands to keep a record of.", &sethistlist); 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, |