Convert xcoffread.c to type-safe registry API
authorTom Tromey <tom@tromey.com>
Wed, 1 May 2019 04:18:10 +0000 (22:18 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 8 May 2019 22:01:50 +0000 (16:01 -0600)
commit02dc647ed65b1429b9af4986ed467f90fbe0c33b
tree16362e209f6d22944f1340de667b67f924011df6
parent092324387247f92c66f25a3e1927cf8821bb4943
Convert xcoffread.c to type-safe registry API

This changes xcoffread.c to use the type-safe registry API.  It also
renames coff_symfile_info to xcoff_symfile_info, to avoid any possible
ODR violation.

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

* xcoffread.c (struct xcoff_symfile_info): Rename from
coff_symfile_info.  Add initializers.
(xcoff_objfile_data_key): Move lower.  Change type.
(XCOFF_DATA): Rewrite.
(xcoff_free_info): Remove.
(xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
(read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
(xcoff_initial_scan): Update.
gdb/ChangeLog
gdb/xcoffread.c