Convert main_info to type-safe registry API
authorTom Tromey <tom@tromey.com>
Wed, 10 Apr 2019 02:26:09 +0000 (20:26 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 8 May 2019 22:01:45 +0000 (16:01 -0600)
commita32ad8c55c5c6bcdbc6773b6b825c4505fd44c16
treeb50441918b59fc320dafb3051a95b9ac34545352
parent5f6e90a0cec8c269634ba0bff3c9e549a903c39a
Convert main_info to type-safe registry API

This changes main_info to use the type-safe registry API.

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

* symtab.c (struct main_info): Add destructor and initializers.
(main_progspace_key): Move.  Change type.
(get_main_info): Update.
(main_info_cleanup): Remove.
(_initialize_symtab): Update.
gdb/ChangeLog
gdb/symtab.c