summaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2001-03-07 07:21:13 +0000
committerEli Zaretskii <eliz@gnu.org>2001-03-07 07:21:13 +0000
commitd40b5e7c2281f278186fdb848739c5b7106e0f59 (patch)
tree06c13a4a88cb815f435e6127df79a4c48821b74d /gdb/top.c
parent9cf9c3e2addd3e9bedd481bc13b222204dd5a7e1 (diff)
downloadgdb-d40b5e7c2281f278186fdb848739c5b7106e0f59.tar.gz
* top.c (init_main): Make `set history file name' complete on file
names.
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/top.c b/gdb/top.c
index 3b11642e41f..8cb66536f44 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -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,