Remove some manual memory management from compile interface
authorTom Tromey <tom@tromey.com>
Wed, 23 Sep 2020 15:32:54 +0000 (09:32 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 23 Sep 2020 15:32:54 +0000 (09:32 -0600)
commitebe824f5dcf96c8f70e07affb44c3a1679849e28
tree483baf4a5fab305c7a9cd3750c215b13243af0e0
parentc4694f172b51a2168b8cc15109ab1b97fc0bcb9c
Remove some manual memory management from compile interface

This changes gdb's compile code to use std::vector in a couple of
places, rather than manual memory management.

gdb/ChangeLog
2020-09-23  Tom Tromey  <tom@tromey.com>

* compile/compile-cplus-types.c
(compile_cplus_convert_struct_or_union): Use std::vector.
(compile_cplus_convert_func): Likewise.
* compile/compile-c-types.c (convert_func): Use std::vector.
gdb/ChangeLog
gdb/compile/compile-c-types.c
gdb/compile/compile-cplus-types.c