mirror of
https://github.com/JakeHillion/drgn.git
synced 2024-12-26 02:25:36 +00:00
type: handle typedef bitfields
This commit is contained in:
parent
a63fbdb975
commit
c6c7c080ce
@ -612,6 +612,8 @@ class ArrayType(Type):
|
|||||||
|
|
||||||
def _from_dwarf_bit_field(dwarf_index: DwarfIndex, die: Die) -> Type:
|
def _from_dwarf_bit_field(dwarf_index: DwarfIndex, die: Die) -> Type:
|
||||||
type_ = from_dwarf_type(dwarf_index, die.type())
|
type_ = from_dwarf_type(dwarf_index, die.type())
|
||||||
|
while isinstance(type_, TypedefType):
|
||||||
|
type_ = type_.type
|
||||||
if not isinstance(type_, IntType):
|
if not isinstance(type_, IntType):
|
||||||
raise DwarfFormatError('bit field type is not integer')
|
raise DwarfFormatError('bit field type is not integer')
|
||||||
bit_size = die.find_constant(DW_AT.bit_size)
|
bit_size = die.find_constant(DW_AT.bit_size)
|
||||||
|
Loading…
Reference in New Issue
Block a user