From c31c964d3bbf9a51e2e8f62eafe5038c0ba8ca30 Mon Sep 17 00:00:00 2001 From: Pierre-Marie de Rodat Date: Wed, 22 Mar 2017 16:04:32 +0100 Subject: CV2PDB::createTypes: materialize subranges as modifiers for base types --- src/dwarf2pdb.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/dwarf2pdb.cpp b/src/dwarf2pdb.cpp index 8ccde34..2f41d97 100644 --- a/src/dwarf2pdb.cpp +++ b/src/dwarf2pdb.cpp @@ -1238,6 +1238,12 @@ bool CV2PDB::createTypes() cvtype = appendPointerType(getTypeByDWARFPtr(cu, id.type), pointerAttr | 0x20); break; + case DW_TAG_subrange_type: + // It seems we cannot materialize bounds for scalar types in + // CodeView, so just redirect to a mere base type. + cvtype = appendModifierType(getTypeByDWARFPtr(cu, id.type), 0); + break; + case DW_TAG_class_type: case DW_TAG_structure_type: case DW_TAG_union_type: @@ -1247,7 +1253,6 @@ bool CV2PDB::createTypes() cvtype = addDWARFArray(id, cu, cursor.getSubtreeCursor()); break; case DW_TAG_subroutine_type: - case DW_TAG_subrange_type: case DW_TAG_enumeration_type: case DW_TAG_string_type: -- cgit v0.12