This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA 0/5] remove cleanups from regcache
- From: Tom Tromey <tom at tromey dot com>
- To: gdb-patches at sourceware dot org
- Date: Sat, 23 Sep 2017 20:46:03 -0600
- Subject: [RFA 0/5] remove cleanups from regcache
- Authentication-results: sourceware.org; auth=none
This series removes the remaining cleanups from regcache and related
code.
First, it removes regcache_xmalloc and regcache_xfree in favor of
using plain new and delete everywhere. These were already used under
the hood; this just removes a layer of indirection.
Second, the main patch, #3, removes a cleanup by using
std::unique_ptr.
The final two patches remove some cleanups locally in regcache.c by
using standard techniques.
Regression tested by the buildbot.
Tom