aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli/cli-decode.c
diff options
context:
space:
mode:
authorPierre Muller <muller@sourceware.org>2008-07-04 22:30:19 +0000
committerPierre Muller <muller@sourceware.org>2008-07-04 22:30:19 +0000
commit7f6a63144cac75f7d23cf34224dcefddeac49e02 (patch)
treeb7f47946141b20fe79c86b80a38e2047c1a1ed4c /gdb/cli/cli-decode.c
parentd5721fa7dee8d105e701673eb51c6f16a26ec7a6 (diff)
downloadgdb-7f6a63144cac75f7d23cf34224dcefddeac49e02.zip
gdb-7f6a63144cac75f7d23cf34224dcefddeac49e02.tar.gz
gdb-7f6a63144cac75f7d23cf34224dcefddeac49e02.tar.bz2
* cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
completer for set to filename_completer. NEWS: Mention it.
Diffstat (limited to 'gdb/cli/cli-decode.c')
-rw-r--r--gdb/cli/cli-decode.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c
index 965b193..05a0b27 100644
--- a/gdb/cli/cli-decode.c
+++ b/gdb/cli/cli-decode.c
@@ -539,11 +539,16 @@ add_setshow_optional_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_optional_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