Disambiguate info_print_options
authorAli Tamur <tamur@google.com>
Sat, 25 Jan 2020 03:40:40 +0000 (19:40 -0800)
committerAli Tamur <tamur@google.com>
Thu, 6 Feb 2020 01:35:18 +0000 (17:35 -0800)
commit095252be0b51750f0b135bcbf8624dd70a59bc1f
tree012c81a25e314f4a5f2f544534f06e11dae32593
parentbd24ec732e5c69b9bf45fc859168cd4123dbcd46
Disambiguate info_print_options

struct info_print_options is defined in both symtab.c and stack.c, which is
an ODR violation. So, I am renaming info_print_options and related
structs/functions in symtab.c:

info_print_options                ==> info_vars_funcs_options
info_print_options_defs           ==> info_vars_funcs_options_defs
make_info_print_options_def_group ==> make_info_vars_funcs_options_def_group
info_print_command_completer      ==> info_vars_funcs_command_completer

gdb/ChangeLog:

* symtab.c (info_print_options): Rename to
info_vars_funcs_options.
(info_print_options_defs): Rename to
info_vars_funcs_options_defs.
(make_info_print_options_def_group): Rename to
make_info_vars_funcs_options_def_group.
(info_print_command_completer): Rename to
info_vars_funcs_command_completer.
(info_variables_command): Apply name changes.
(info_functions_command): Likewise.
(_initialize_symtab): Likewise.
gdb/symtab.c