This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Class-ify lm_info_dsbt
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Fri, 28 Apr 2017 19:33:18 -0400
- Subject: [binutils-gdb] Class-ify lm_info_dsbt
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT b091120773f8a740065b6449617cfbf1e0e789f4 ***
Author: Simon Marchi <simon.marchi@ericsson.com>
Branch: master
Commit: b091120773f8a740065b6449617cfbf1e0e789f4
Class-ify lm_info_dsbt
This patches makes lm_info_dsbt a "real" class. It introduces a
destructor, initializes the field and replaces XCNEW/xfree with
new/delete.
gdb/ChangeLog:
* solib-dsbt.c (struct lm_info_dsbt): Add destructor, initialize
map field.
(dsbt_current_sos): Allocate lm_info_dsbt with new.
(dsbt_relocate_main_executable): Free lm_info_dsbt with delete
and allocate with new.
(dsbt_clear_solib, dsbt_free_so): Free lm_info_dsbt with delete.