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] Remove symbolp vector


On 11/04/2017 04:10 PM, Tom Tromey wrote:
> This removes the symbolp typedef from dwarf2read.c and converts the
> associated VEC uses to std::vector.  This fixes a latent possible
> memory leak if an exception were thrown, because there were no
> cleanups installed for these VECs.
> 
> Regression tested on the buildbot.
> 
> gdb/ChangeLog
> 2017-11-04  Tom Tromey  <tom@tromey.com>
> 
> 	* dwarf2read.c (symbolp): Remove typedef.
> 	(read_func_scope): Use std::vector.
> 	(process_structure_scope): Use std::vector.

OK.

Thanks,
Pedro Alves


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