cur_offset += child.size
elif "DW_AT_sibling" in child.attributes:
sibling = child.attributes["DW_AT_sibling"]
- if sibling.form in ('DW_FORM_ref1', 'DW_FORM_ref2', 'DW_FORM_ref4', 'DW_FORM_ref8', 'DW_FORM_ref'):
+ if sibling.form in ('DW_FORM_ref1', 'DW_FORM_ref2',
+ 'DW_FORM_ref4', 'DW_FORM_ref8',
+ 'DW_FORM_ref'):
cur_offset = sibling.value + self.cu_offset
elif sibling.form == 'DW_FORM_ref_addr':
cur_offset = sibling.value
else:
- raise NotImplementedError('Sibling in form %s' % sibling.form)
+ raise NotImplementedError('sibling in form %s' % sibling.form)
else:
# If no DW_AT_sibling attribute is provided by the producer
# then the whole child subtree must be parsed to find its next