summaryrefslogtreecommitdiff
path: root/gdb/cli
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-02-17 17:11:04 +0000
committerAndrew Cagney <cagney@redhat.com>2005-02-17 17:11:04 +0000
commita95dd3a9b7497aa1725611a746dd441825be0189 (patch)
tree196bf61224d80d92b9fa6d51564050c4695597bc /gdb/cli
parenta0e9ec787f6e2d5d3ab2925270282051234e8fe4 (diff)
downloadgdb-a95dd3a9b7497aa1725611a746dd441825be0189.tar.gz
2005-02-17 Andrew Cagney <cagney@gnu.org>
* cli/cli-decode.c (add_setshow_filename_cmd): Set the completer to filename_completer. * solib.c (_initialize_solib, reload_shared_libraries): Use add_setshow_filename_cmd. * serial.c (_initialize_serial): Ditto. * remote-utils.c (_initialize_sr_support): Ditto.
Diffstat (limited to 'gdb/cli')
-rw-r--r--gdb/cli/cli-decode.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c
index 529b475220d..f9e2925e9c0 100644
--- a/gdb/cli/cli-decode.c
+++ b/gdb/cli/cli-decode.c
@@ -23,7 +23,7 @@
#include <ctype.h>
#include "gdb_regex.h"
#include "gdb_string.h"
-
+#include "completer.h"
#include "ui-out.h"
#include "cli/cli-cmds.h"
@@ -488,11 +488,13 @@ add_setshow_filename_cmd (char *name, enum command_class class,
struct cmd_list_element **set_list,
struct cmd_list_element **show_list)
{
+ struct cmd_list_element *set_result;
add_setshow_cmd_full (name, class, var_filename, var,
set_doc, show_doc, help_doc,
set_func, show_func,
set_list, show_list,
- NULL, NULL);
+ &set_result, NULL);
+ set_cmd_completer (set_result, filename_completer);
}
/* Add element named NAME to both the set and show command LISTs (the