projects
/
pyelftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a58e602
)
Minor cosmetic changes
author
Eli Bendersky
<eliben@gmail.com>
Tue, 7 Jun 2022 23:20:05 +0000
(16:20 -0700)
committer
Eli Bendersky
<eliben@gmail.com>
Tue, 7 Jun 2022 23:20:05 +0000
(16:20 -0700)
elftools/dwarf/compileunit.py
patch
|
blob
|
history
diff --git
a/elftools/dwarf/compileunit.py
b/elftools/dwarf/compileunit.py
index e40dab4e9616323e67f1fabf338a084371cb3465..08401bef761fb3d5f65f1bd294d64f5b1ec9b211 100644
(file)
--- a/
elftools/dwarf/compileunit.py
+++ b/
elftools/dwarf/compileunit.py
@@
-155,12
+155,14
@@
class CompileUnit(object):
cur_offset += child.size
elif "DW_AT_sibling" in child.attributes:
sibling = child.attributes["DW_AT_sibling"]
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:
cur_offset = sibling.value + self.cu_offset
elif sibling.form == 'DW_FORM_ref_addr':
cur_offset = sibling.value
else:
- raise NotImplementedError('
S
ibling in form %s' % sibling.form)
+ raise NotImplementedError('
s
ibling 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
else:
# If no DW_AT_sibling attribute is provided by the producer
# then the whole child subtree must be parsed to find its next