From: Pierre Muller Date: Fri, 4 Jul 2008 22:30:19 +0000 (+0000) Subject: * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7f6a63144cac75f7d23cf34224dcefddeac49e02;p=binutils-gdb.git * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set completer for set to filename_completer. NEWS: Mention it. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4f0725fa25d..be52915558a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2008-07-05 Pierre Muller + + * cli/cli-decode.c (add_setshow_optional_filename_cmd): Set + completer for set to filename_completer. + + NEWS: Mention it. + 2008-07-04 Vladimir Prus Implement -target-attach. diff --git a/gdb/NEWS b/gdb/NEWS index 32472fea87c..44c1a2f2053 100644 --- 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: diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c index 965b1937898..05a0b27cea5 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