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: [RFA 2/3] Use "new" to allocate gdb_bfd_data


On 2017-10-18 00:14, Tom Tromey wrote:
This changes gdb_bfd_data to be allocated with new.  Placement new is
used because the object actually resides in the BFD's objalloc.

Is there a reason it can't be new'ed/deleted normally?

Still, LGTM.

Simon


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