From 7a1bd56a086cb8e81095bc373f0aadc0fe91fa8e Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 7 Mar 2001 07:21:13 +0000 Subject: [PATCH] * top.c (init_main): Make `set history file name' complete on file names. --- gdb/ChangeLog | 5 +++++ gdb/top.c | 11 ++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ba239a4..e3737d7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-03-07 Eli Zaretskii + + * top.c (init_main): Make `set history file name' complete on file + names. + 2001-03-06 J.T. Conklin * Makefile.in (LINTFLAGS): Update to contain all of the macros diff --git a/gdb/top.c b/gdb/top.c index 3b11642..8cb6653 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, -- 2.7.4