Convert auto-load.c to type-safe registry API
authorTom Tromey <tom@tromey.com>
Sun, 21 Apr 2019 15:34:16 +0000 (09:34 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 8 May 2019 22:01:47 +0000 (16:01 -0600)
commite85e19b4d7d9b3b322f27684f8c0a3a9ac0e57ab
treed946177e7924291df285c5f80ec019b31e064614
parentf6aa7436201194e80e8d7761e6d88ecf0ec1e327
Convert auto-load.c to type-safe registry API

This changes auto-load.c to use the type-safe registry API.  It also
changes a couple of types to "bool", removing uses of "FALSE".

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

* auto-load.c (struct auto_load_pspace_info): Add destructor and
initializers.
<unsupported_script_warning_printed,
script_not_found_warning_printed>: Now bool.
(auto_load_pspace_data): Change type.
(~auto_load_pspace_info): Rename from
auto_load_pspace_data_cleanup.
(get_auto_load_pspace_data, init_loaded_scripts_info)
(clear_section_scripts, maybe_print_unsupported_script_warning)
(maybe_print_script_not_found_warning, _initialize_auto_load):
Update.
gdb/ChangeLog
gdb/auto-load.c