+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.
+
 2021-05-30  Tom Tromey  <tom@tromey.com>
 
        * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs,
 
   std::unique_ptr<signatured_type> result (new signatured_type);
   result->per_bfd = this;
   result->index = all_comp_units.size ();
+  result->is_debug_types = true;
   tu_stats.nr_tus++;
   return result;
 }
       sig_type = per_bfd->allocate_signatured_type ();
       sig_type->signature = signature;
       sig_type->type_offset_in_tu = type_offset_in_tu;
-      sig_type->is_debug_types = 1;
       sig_type->section = section;
       sig_type->sect_off = sect_off;
       sig_type->v.quick
       sig_type = per_objfile->per_bfd->allocate_signatured_type ();
       sig_type->signature = cu_header.signature;
       sig_type->type_offset_in_tu = cu_header.type_cu_offset_in_tu;
-      sig_type->is_debug_types = 1;
       sig_type->section = section;
       sig_type->sect_off = sect_off;
       sig_type->v.quick
   per_objfile->per_bfd->all_comp_units.emplace_back
     (sig_type_holder.release ());
   sig_type->signature = sig;
-  sig_type->is_debug_types = 1;
   if (per_objfile->per_bfd->using_index)
     {
       sig_type->v.quick =
                       hex_string (sig_ptr->signature));
          *slot = sig_ptr;
        }
-      this_cu->is_debug_types = (cu_header.unit_type == DW_UT_type);
       this_cu->sect_off = sect_off;
       this_cu->length = cu_header.length + cu_header.initial_length_size;
       this_cu->is_dwz = is_dwz;