* cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
authorPierre Muller <muller@sourceware.org>
Fri, 4 Jul 2008 22:30:19 +0000 (22:30 +0000)
committerPierre Muller <muller@sourceware.org>
Fri, 4 Jul 2008 22:30:19 +0000 (22:30 +0000)
completer for set to filename_completer.
NEWS: Mention it.

gdb/ChangeLog
gdb/NEWS
gdb/cli/cli-decode.c

index 4f0725fa25da81edf2e5362a50be9bbffc8a0148..be52915558adf6189ce9c3312e240d7579669343 100644 (file)
@@ -1,3 +1,10 @@
+2008-07-05  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set
+       completer for set to filename_completer.
+       
+       NEWS: Mention it.
+
 2008-07-04  Vladimir Prus  <vladimir@codesourcery.com>
 
        Implement -target-attach.
index 32472fea87c1c754f7caeef553ec66b3e549ff90..44c1a2f205350792f9b7c6e31c8e35afa7424813 100644 (file)
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -3,6 +3,9 @@
 
 *** Changes since GDB 6.8
 
+* Commands `set debug-file-directory', `set solib-search-path' and `set args'
+now complete on file names.
+
 * When completing in expressions, gdb will attempt to limit
 completions to allowable structure or union fields, where appropriate.
 For instance, consider:
index 965b193789878ff1fd7ea5b7b6f68f200c4757cd..05a0b27cea589fe3ca92fb7b7cb3acae3c762d08 100644 (file)
@@ -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
This page took 0.032089 seconds and 4 git commands to generate.