Use new and delete for buildsym_compunit
authorTom Tromey <tom@tromey.com>
Sun, 20 May 2018 16:20:53 +0000 (10:20 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 16 Jul 2018 14:55:13 +0000 (08:55 -0600)
commitb248663fe5654192101fc95dbe0cbfb389564359
treec88a82026bc9ca6aa6144f700f8a3d9aba7917b3
parentad96220cc73a2daa24b1d2b2e4afed557879e6f4
Use new and delete for buildsym_compunit

This changes buildsym_compunit to use new and delete.

gdb/ChangeLog
2018-07-16  Tom Tromey  <tom@tromey.com>

* buildsym.c (struct buildsym_compunit): Add constructor,
destructor, initializers.
(start_buildsym_compunit): Remove.
(free_buildsym_compunit): Use "delete".
(start_symtab, restart_symtab): Use "new".
gdb/ChangeLog
gdb/buildsym.c