Class-ify lm_info_dsbt
authorSimon Marchi <simon.marchi@ericsson.com>
Fri, 28 Apr 2017 21:16:14 +0000 (17:16 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Fri, 28 Apr 2017 21:16:14 +0000 (17:16 -0400)
commitb091120773f8a740065b6449617cfbf1e0e789f4
tree9333715621ba58e3c792481d5892e26379cccd8e
parent6c401f72e979ddd7e2f890dcc88f93f683233d74
Class-ify lm_info_dsbt

This patches makes lm_info_dsbt a "real" class.  It introduces a
destructor, initializes the field and replaces XCNEW/xfree with
new/delete.

gdb/ChangeLog:

* solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
map field.
(dsbt_current_sos): Allocate lm_info_dsbt with new.
(dsbt_relocate_main_executable): Free lm_info_dsbt with delete
and allocate with new.
(dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.
gdb/ChangeLog
gdb/solib-dsbt.c