From f397e30345ade7e6fcdf186693715ca227508511 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Thu, 17 Feb 2005 17:11:04 +0000 Subject: 2005-02-17 Andrew Cagney * 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. --- gdb/cli/cli-decode.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gdb/cli') 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 #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 -- cgit v1.1