Convert solib-svr4.c to type-safe registry API
authorTom Tromey <tom@tromey.com>
Wed, 1 May 2019 03:58:50 +0000 (21:58 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 8 May 2019 22:01:50 +0000 (16:01 -0600)
commit092324387247f92c66f25a3e1927cf8821bb4943
tree800e218886f19f9c389d580997926977a492592b
parent7b4a314f8b9b50c2289ca6b5d21513052c48730b
Convert solib-svr4.c to type-safe registry API

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

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

* solib-svr4.c (struct svr4_info): Add initializers and
destructor.
<probes_table>: Now an htab_up.
(solib_svr4_pspace_data): Change type.
(free_probes_table): Simplify.
(~svr4_info): Rename from svr4_pspace_data_cleanup.
(get_svr4_info, probes_table_htab_remove_objfile_probes)
(probes_table_remove_objfile_probes, register_solib_event_probe)
(solib_event_probe_at, svr4_update_solib_event_breakpoint)
(_initialize_svr4_solib): Update.
gdb/ChangeLog
gdb/solib-svr4.c