* top.c (init_main): Make `set history file name' complete on file
authorEli Zaretskii <eliz@gnu.org>
Wed, 7 Mar 2001 07:21:13 +0000 (07:21 +0000)
committerEli Zaretskii <eliz@gnu.org>
Wed, 7 Mar 2001 07:21:13 +0000 (07:21 +0000)
names.

gdb/ChangeLog
gdb/top.c

index ba239a4dc17e9333c9f14794ce5ada98400629ad..e3737d75602dcf1dbc9bf152b9779764040f5033 100644 (file)
@@ -1,3 +1,8 @@
+2001-03-07  Eli Zaretskii  <eliz@is.elta.co.il>
+
+       * top.c (init_main): Make `set history file name' complete on file
+       names.
+
 2001-03-06  J.T. Conklin  <jtc@redback.com>
 
        * Makefile.in (LINTFLAGS): Update to contain all of the macros
index 3b11642e41fc04d2ad0a1f6b484e81be4892c0bc..8cb66536f447b8f6b9fc42178ac39e8d79c74d82 100644 (file)
--- 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,