~taiite/protodump

d31d7df84aff952cd06147d47a8abad0b0410516 — Hubert Hirtz 1 year, 9 months ago dd2d083
Handle DW_AT_class_type

the same way as DW_AT_structure_type
1 files changed, 4 insertions(+), 1 deletions(-)

M src/types.rs
M src/types.rs => src/types.rs +4 -1
@@ 450,7 450,9 @@ where
        let definition = match entry.tag() {
            gimli::DW_TAG_base_type => self.resolve_base_definition(entry)?,
            gimli::DW_TAG_enumeration_type => self.resolve_enumeration_definition(unit, entry)?,
            gimli::DW_TAG_structure_type => self.resolve_structure_definition(unit, entry)?,
            gimli::DW_TAG_structure_type | gimli::DW_TAG_class_type => {
                self.resolve_structure_definition(unit, entry)?
            }
            gimli::DW_TAG_subroutine_type => self.resolve_subroutine_definition(unit, entry)?,
            gimli::DW_TAG_union_type => self.resolve_union_definition(unit, entry)?,
            _ => unreachable!(),


@@ 477,6 479,7 @@ where
            let entry = unit.entry(entry_offset)?;
            match entry.tag() {
                gimli::DW_TAG_base_type
                | gimli::DW_TAG_class_type
                | gimli::DW_TAG_enumeration_type
                | gimli::DW_TAG_structure_type
                | gimli::DW_TAG_subroutine_type