Re: [PATCH] Implement unique_xmalloc_ptr<T[]> and add more selftests

2017-10-16 Thread Pedro Alves
On 10/14/2017 12:35 AM, David Malcolm wrote: > As far as I can tell from your mail, the one issue that blocks that > is the lack of gdb::unique_xmalloc_ptr. > > So here's an patch on top of the previous one which adds the > xmalloc_deleter (taken from gdb, but changing "xfree" to >

[PATCH] Implement unique_xmalloc_ptr<T[]> and add more selftests

2017-10-13 Thread David Malcolm
On Fri, 2017-10-13 at 13:01 +0100, Pedro Alves wrote: > On 10/13/2017 10:26 AM, Richard Biener wrote: > > On Fri, Oct 13, 2017 at 2:40 AM, David Malcolm > > wrote: > > > From: Trevor Saunders > > > > > > I had a go at updating Trevor's unique_ptr