Set is_debug_types in allocate_signatured_type
authorTom Tromey <tom@tromey.com>
Sun, 30 May 2021 14:50:57 +0000 (08:50 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 31 May 2021 01:44:05 +0000 (19:44 -0600)
commitcc653233da3f9dade8b95be9a7286b95727408d6
tree41db647197b72d9681fa241c12fc6507c44f9745
parentc96e8b04d3a8ef41843c7d3fa093b50b597dc7e0
Set is_debug_types in allocate_signatured_type

All callers of allocate_signatured_type set the is_debug_types flag on
the result -- in fact, they are required to, because this is the sign
that downcasting the object to signatured_type is safe.  This patch
moves this assignment into the allocation function.

2021-05-30  Tom Tromey  <tom@tromey.com>

* dwarf2/read.c (dwarf2_per_bfd::allocate_signatured_type): Set
is_debug_types.
(create_signatured_type_table_from_index)
(create_signatured_type_table_from_debug_names, add_type_unit)
(read_comp_units_from_section): Update.
gdb/ChangeLog
gdb/dwarf2/read.c