This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [3/17] clean up allocate of BFD filenames


> Currently BFD filename allocation is kind of a mess.  Generally they are
> xmalloc'd, but sometimes they are not.
> 
> This patch tries to clean it up by adding a new function that
> reallocates the filename on the BFD's obstack.  This synchronizes the
> lifetime nicely and means we don't have to separately decide when to
> free the filename.

I only skimmed through the patch, but I like the idea of it. Nice!

-- 
Joel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]