Class-ify lm_info_darwin
authorSimon Marchi <simon.marchi@ericsson.com>
Fri, 28 Apr 2017 21:16:18 +0000 (17:16 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Fri, 28 Apr 2017 21:16:18 +0000 (17:16 -0400)
commit9ccbfd7bc1b7228d67f2d4ca878224d493918264
tree4c939fccccc9457bef276ff571bd15888527eb99
parent76e75227c37bc058449a09fe5017eeb40cda0781
Class-ify lm_info_darwin

This patch makes lm_info_darwin a "real" class.  It initializes the
field and replaces XCNEW/xfree with new/delete.

gdb/ChangeLog:

* solib-darwin.c (struct lm_info_darwin): Initialize field.
(darwin_current_sos): Allocate lm_info_darwin with new, remove
cleanup.
(darwin_free_so): Free lm_info_darwin with delete.
gdb/ChangeLog
gdb/solib-darwin.c