Convert objfiles.c to type-safe registry API
authorTom Tromey <tom@tromey.com>
Sun, 21 Apr 2019 15:29:13 +0000 (09:29 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 8 May 2019 22:01:47 +0000 (16:01 -0600)
commitf6aa7436201194e80e8d7761e6d88ecf0ec1e327
tree9a747fecb5fee40026adab6124838f1de46a696e
parent6ae614f66a0a86c9e83b9f40ee1f4e105b681f7b
Convert objfiles.c to type-safe registry API

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

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

* objfiles.c (objfile_pspace_info): Add destructor and
initializers.
(objfiles_pspace_data): Change type.
(~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
(get_objfile_pspace_data): Update.
(objfiles_bfd_data): Change type.
(get_objfile_bfd_data): Update.
(objfile_bfd_data_free, _initialize_objfiles): Remove.
gdb/ChangeLog
gdb/objfiles.c