diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2017-04-28 17:16:14 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2017-04-28 17:16:14 -0400 |
commit | 6c401f72e979ddd7e2f890dcc88f93f683233d74 (patch) | |
tree | 7139860aa5623683b765d45a87aa6c26fcbbd564 /gdb/xml-support.c | |
parent | d0e449a1865c741c5e0c9d43a7d61a0621163aa7 (diff) | |
download | gdb-6c401f72e979ddd7e2f890dcc88f93f683233d74.zip gdb-6c401f72e979ddd7e2f890dcc88f93f683233d74.tar.gz gdb-6c401f72e979ddd7e2f890dcc88f93f683233d74.tar.bz2 |
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.
Diffstat (limited to 'gdb/xml-support.c')
0 files changed, 0 insertions, 0 deletions