~taiite/protodump

cef81ae236a7205b399835ef89b575853a989570 — Hubert Hirtz 28 days 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