Remove make_cleanup_free_so
authorTom Tromey <tom@tromey.com>
Sat, 29 Apr 2017 04:43:54 +0000 (22:43 -0600)
committerTom Tromey <tom@tromey.com>
Thu, 3 Aug 2017 13:58:59 +0000 (07:58 -0600)
commitb3bc84537bc6de78e2bbd550ce9c57dd4b7e2ec6
tree26d6e6f337d8b20f02876c2b36b990b4a1a5c6fc
parente3ad2841b1c75837a901618651fed23013643e3f
Remove make_cleanup_free_so

make_cleanup_free_so is used in a single spot.  This patch introduces
a unique pointer wrapper for struct so_list, and changes this spot to
use it.

ChangeLog
2017-08-03  Tom Tromey  <tom@tromey.com>

* utils.h (make_cleanup_free_so): Remove.
* utils.c (do_free_so, make_cleanup_free_so): Remove.
* solist.h (struct so_deleter): New.
(so_list_up): New typedef.
* solib-svr4.c (svr4_read_so_list): Use so_list_up.
gdb/ChangeLog
gdb/solib-svr4.c
gdb/solist.h
gdb/utils.c
gdb/utils.h