This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 2/3] Use "new" to allocate gdb_bfd_data
- From: Simon Marchi <simon dot marchi at polymtl dot ca>
- To: Tom Tromey <tom at tromey dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 18 Oct 2017 23:30:10 -0400
- Subject: Re: [RFA 2/3] Use "new" to allocate gdb_bfd_data
- Authentication-results: sourceware.org; auth=none
- References: <20171018041449.10019-1-tom@tromey.com> <20171018041449.10019-3-tom@tromey.com>
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