Remove cleanups from solib-target.c
authorTom Tromey <tom@tromey.com>
Thu, 17 Jan 2019 04:46:00 +0000 (21:46 -0700)
committerTom Tromey <tom@tromey.com>
Thu, 17 Jan 2019 17:23:47 +0000 (10:23 -0700)
commit776489e0a79a14cb3f1138d4e4158ab9a8c7ecf3
tree5cda9f425fa02ab6e7f980ca81d8d7c139ca1497
parent6471e7d23de333a63a119220d59b920c6aaef562
Remove cleanups from solib-target.c

This removes the remaining cleanups from solib-target.c, plus a VEC,
by using std::vector and std::unique_ptr.

Tested by the buildbot.

gdb/ChangeLog
2019-01-17  Tom Tromey  <tom@tromey.com>

* solib-target.c (lm_info_target_p): Remove typedef.  Don't
declare VEC.
(solib_target_parse_libraries): Change return type.
(library_list_start_segment, library_list_start_section)
(library_list_end_library, library_list_start_library); Update.
(solib_target_free_library_list): Remove.
(solib_target_parse_libraries): Remove cleanup.  Change return
type.
(solib_target_current_sos): Update.
gdb/ChangeLog
gdb/solib-target.c