This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Use gdb::unique_xmalloc_ptr<> instead of a deleter that invokes free().
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Tue, 09 Jan 2018 18:38:03 -0500
- Subject: [binutils-gdb] Use gdb::unique_xmalloc_ptr<> instead of a deleter that invokes free().
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 262f62f57d987269152412a55c458a03adc6ddd6 ***
Author: John Baldwin <jhb@FreeBSD.org>
Branch: master
Commit: 262f62f57d987269152412a55c458a03adc6ddd6
Use gdb::unique_xmalloc_ptr<> instead of a deleter that invokes free().
Since xfree() always wraps free(), it is safe to use the xfree deleter
for buffers allocated by library routines such as kinfo_getvmmap() that
must be released via free().
gdb/ChangeLog:
* fbsd-nat.c (struct free_deleter): Remove.
(fbsd_find_memory_regions): Use gdb::unique_xmalloc_ptr<>.