This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Class-ify lm_info_target
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Fri, 28 Apr 2017 20:31:45 -0400
- Subject: [binutils-gdb] Class-ify lm_info_target
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 51046d9e60727cd6a4cfeae29a05ce2e1e394dc9 ***
Author: Simon Marchi <simon.marchi@ericsson.com>
Branch: master
Commit: 51046d9e60727cd6a4cfeae29a05ce2e1e394dc9
Class-ify lm_info_target
This patch makes lm_info_target a "real" class. It adds a destructor,
uses std::string, initializes the fields and replaces XCNEW/xfree with
new/delete.
gdb/ChangeLog:
* solib-target.c (struct lm_info_target): Add destructor,
initialize fields.
<name>: Change type to std::string.
(library_list_start_library): Allocate lm_info_target with new.
(solib_target_free_library_list): Free lm_info_target with
delete.
(solib_target_current_sos): Adapt to std::string.
(solib_target_free_so): Free lm_info_target with delete.