]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/ChangeLog
Class-ify lm_info_aix
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)
commit6c401f72e979ddd7e2f890dcc88f93f683233d74
tree7139860aa5623683b765d45a87aa6c26fcbbd564
parentd0e449a1865c741c5e0c9d43a7d61a0621163aa7
Class-ify lm_info_aix

This patch makes lm_info_aix a "real" class.  It uses std::string,
initializes fields in-class and replaces XCNEW/xfree with new/delete.
The solib_aix_new_lm_info can be replaced by using the default copy
constructor.

gdb/ChangeLog:

* solib-aix.c (struct lm_info_aix): Initialize fields in-class.
<filename, member_name>: Change type to std::string.
(solib_aix_new_lm_info, solib_aix_xfree_lm_info): Remove.
(library_list_start_library): Allocate lm_info_aix with new.
(solib_aix_free_library_list, solib_aix_free_so): Free with delete.
(solib_aix_current_sos): Adapt to std::string, copy lm_info_aix
with copy constructor.
gdb/ChangeLog
gdb/solib-aix.c