Convert symfile-debug.c to type-safe registry API
authorTom Tromey <tom@tromey.com>
Sun, 21 Apr 2019 18:37:59 +0000 (12:37 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 8 May 2019 22:01:48 +0000 (16:01 -0600)
commit8c42777cd8e1557ffb29fe9c172edd8cc1de14b7
tree0c0b911f94a3524c0f6b0c0a5bfa5083d5c44e78
parent5bfd760d66c816d53a930635a84990c8536bb545
Convert symfile-debug.c to type-safe registry API

This changes symfile-debug.c to use the type-safe registry API.

gdb/ChangeLog
2019-05-08  Tom Tromey  <tom@tromey.com>

* symfile-debug.c (struct debug_sym_fns_data): Add initializers.
(symfile_debug_objfile_data_key): Change type.
(symfile_debug_installed, debug_qf_has_symbols)
(debug_qf_find_last_source_symtab)
(debug_qf_forget_cached_source_info)
(debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
(debug_qf_print_stats, debug_qf_dump)
(debug_qf_expand_symtabs_for_function)
(debug_qf_expand_all_symtabs)
(debug_qf_expand_symtabs_with_fullname)
(debug_qf_map_matching_symbols)
(debug_qf_expand_symtabs_matching)
(debug_qf_find_pc_sect_compunit_symtab)
(debug_qf_map_symbol_filenames)
(debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
(debug_sym_new_init, debug_sym_init, debug_sym_read)
(debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
(debug_sym_read_linetable, debug_sym_relocate): Update.
(symfile_debug_free_objfile): Remove.
(install_symfile_debug_logging, _initialize_symfile_debug):
Update.
gdb/ChangeLog
gdb/symfile-debug.c