(name, form) pairs.
"""
for attr_spec in self['attr_spec']:
- # Ignore the terminating 'null' spec
- if attr_spec.name == 'DW_AT_null':
- break
yield attr_spec.name, attr_spec.form
def __getitem__(self, entry):
self.Dwarf_abbrev_declaration = Struct('Dwarf_abbrev_entry',
Enum(self.Dwarf_uleb128('tag'), **ENUM_DW_TAG),
Enum(self.Dwarf_uint8('children_flag'), **ENUM_DW_CHILDREN),
- RepeatUntil(
+ RepeatUntilExcluding(
lambda obj, ctx:
obj.name == 'DW_AT_null' and obj.form == 'DW_FORM_null',
Struct('attr_spec',