This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Class-ify lm_info_aix
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Fri, 28 Apr 2017 18:45:25 -0400
- Subject: [binutils-gdb] Class-ify lm_info_aix
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 6c401f72e979ddd7e2f890dcc88f93f683233d74 ***
Author: Simon Marchi <simon.marchi@ericsson.com>
Branch: master
Commit: 6c401f72e979ddd7e2f890dcc88f93f683233d74
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.