Skip to content

Commit

Permalink
Handle DW_TAG_unspecified_type in DWARF data
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielT committed Apr 18, 2024
1 parent 02be6d8 commit 1ff6441
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/dwarf/typereader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,13 @@ impl<'elffile> DebugDataReader<'elffile> {
Some("p_function".to_string()),
)
}
gimli::constants::DW_TAG_unspecified_type => {
// ?
(
DwarfDataType::Other(get_byte_size_attribute(entry).unwrap_or(0)),
None,
)
}
other_tag => {
return Err(format!(
"unexpected DWARF tag {other_tag} in type definition"
Expand Down

0 comments on commit 1ff6441

Please sign in to comment.