Change allocation of m_dwarf2_cus
authorTom Tromey <tom@tromey.com>
Wed, 8 Jun 2022 00:00:59 +0000 (18:00 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 8 Jun 2022 17:04:12 +0000 (11:04 -0600)
commitd09ee622ee7fb4f64e9456c600874070ca21debf
tree5b6898a798c305ae2b6a8e8da720ce7bee8ae813
parent2c3b9a91303097446d36107153ef1e588ec4f5ba
Change allocation of m_dwarf2_cus

m_dwarf2_cus manually manages the 'dwarf2_cu' pointers it owns.  This
patch simplifies the code by changing it to use unique_ptr.
gdb/dwarf2/read.c
gdb/dwarf2/read.h