diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-02-17 17:11:04 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-02-17 17:11:04 +0000 |
commit | f397e30345ade7e6fcdf186693715ca227508511 (patch) | |
tree | 6033eeb56fea767ea786c349f82f205432d8efb3 /gdb/cli | |
parent | 68320ddb7e5b01262e93cf9d57ffe9ea71d289d6 (diff) | |
download | gdb-f397e30345ade7e6fcdf186693715ca227508511.zip gdb-f397e30345ade7e6fcdf186693715ca227508511.tar.gz gdb-f397e30345ade7e6fcdf186693715ca227508511.tar.bz2 |
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.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c index 529b475..f9e2925 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 |