aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2017-07-17 11:55:42 +0100
committerPedro Alves <palves@redhat.com>2017-07-17 11:55:42 +0100
commit78b13106edcd14d87b4cc0b7f8dce8db8c2be489 (patch)
treebabbbfb70255849fc190ed67de9846ab4ef4e852 /gdb/symtab.c
parentbbf2f4dfaec5cf2e21b0935300b4921f0b5a8eb7 (diff)
downloadgdb-78b13106edcd14d87b4cc0b7f8dce8db8c2be489.zip
gdb-78b13106edcd14d87b4cc0b7f8dce8db8c2be489.tar.gz
gdb-78b13106edcd14d87b4cc0b7f8dce8db8c2be489.tar.bz2
Rename make_symbol_completion_list_fn -> symbol_completer
"make_symbol_completion_list_fn" is odly named when you look at a list of "standard" completers, like the Python/Guile completer lists adjusted by this patch. Rename / move it to completers.h/c, for consistency. gdb/ChangeLog: 2017-07-17 Pedro Alves <palves@redhat.com> * completer.c (symbol_completer): New function, based on make_symbol_completion_list_fn. * completer.h (symbol_completer): New declaration. * guile/scm-cmd.c (cmdscm_completers): Adjust. * python/py-cmd.c (completers): Adjust. * symtab.c (make_symbol_completion_list_fn): Delete. * symtab.h (make_symbol_completion_list_fn): Delete. * cli/cli-decode.c (add_cmd): Adjust.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index 44809ae..e5cd397 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -5299,16 +5299,6 @@ make_symbol_completion_type (const char *text, const char *word,
return current_language->la_make_symbol_completion_list (text, word, code);
}
-/* Like make_symbol_completion_list, but suitable for use as a
- completion function. */
-
-VEC (char_ptr) *
-make_symbol_completion_list_fn (struct cmd_list_element *ignore,
- const char *text, const char *word)
-{
- return make_symbol_completion_list (text, word);
-}
-
/* Like make_symbol_completion_list, but returns a list of symbols
defined in all source files name SRCFILE. */