Rename make_symbol_completion_list_fn -> symbol_completer
authorPedro Alves <palves@redhat.com>
Mon, 17 Jul 2017 10:55:42 +0000 (11:55 +0100)
committerPedro Alves <palves@redhat.com>
Mon, 17 Jul 2017 10:55:42 +0000 (11:55 +0100)
commit78b13106edcd14d87b4cc0b7f8dce8db8c2be489
treebabbbfb70255849fc190ed67de9846ab4ef4e852
parentbbf2f4dfaec5cf2e21b0935300b4921f0b5a8eb7
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.
gdb/ChangeLog
gdb/cli/cli-decode.c
gdb/completer.c
gdb/completer.h
gdb/guile/scm-cmd.c
gdb/python/py-cmd.c
gdb/symtab.c
gdb/symtab.h