From: Eli Bendersky Date: Thu, 27 Oct 2011 12:29:32 +0000 (+0200) Subject: added name field to AttributeValue X-Git-Tag: v0.10~81 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=41c971a8674c5f793a021cd91732c0b0a88786de;p=pyelftools.git added name field to AttributeValue --- diff --git a/scripts/readelf.py b/scripts/readelf.py index 283ad92..13bd4a7 100755 --- a/scripts/readelf.py +++ b/scripts/readelf.py @@ -519,10 +519,10 @@ class ReadElf(object): die.abbrev_code, die.tag)) - for attrname, attr in die.attributes.iteritems(): + for attr in die.attributes.itervalues(): self._emitline(' <%2x> %-18s: %s' % ( attr.offset - section_offset, - attrname, + attr.name, describe_attr_value( attr, die, section_offset)))