This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Class-ify lm_info_svr4
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Fri, 28 Apr 2017 21:18:47 -0400
- Subject: [binutils-gdb] Class-ify lm_info_svr4
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 76e75227c37bc058449a09fe5017eeb40cda0781 ***
Author: Simon Marchi <simon.marchi@ericsson.com>
Branch: master
Commit: 76e75227c37bc058449a09fe5017eeb40cda0781
Class-ify lm_info_svr4
This patch makes lm_info_svr4 a "real" class. It initializes fields,
uses bool and replaces XCNEW/xfree with new/delete.
The memcpy in svr4_copy_library_list is replaced by a usage of the
default copy constructor.
gdb/ChangeLog:
* solib-svr4.h (struct lm_info_svr4): Initialize fields.
<l_addr_p>: Change type to bool.
* solib-svr4.c (lm_info_read): Allocate lm_info_svr4 with new.
(svr4_free_so): Free lm_info_svr4 with delete.
(svr4_copy_library_list): Replace memcpy with call to copy
constructor.
(library_list_start_library, svr4_default_sos): Allocate
lm_info_svr4 with new.