diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2017-04-28 17:16:17 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2017-04-28 17:16:17 -0400 |
commit | 76e75227c37bc058449a09fe5017eeb40cda0781 (patch) | |
tree | c560183af00d3490f64620cc0c902566544e649e /gdb/osdata.c | |
parent | 51046d9e60727cd6a4cfeae29a05ce2e1e394dc9 (diff) | |
download | gdb-76e75227c37bc058449a09fe5017eeb40cda0781.zip gdb-76e75227c37bc058449a09fe5017eeb40cda0781.tar.gz gdb-76e75227c37bc058449a09fe5017eeb40cda0781.tar.bz2 |
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.
Diffstat (limited to 'gdb/osdata.c')
0 files changed, 0 insertions, 0 deletions