added name field to AttributeValue
authorEli Bendersky <eliben@gmail.com>
Thu, 27 Oct 2011 12:29:32 +0000 (14:29 +0200)
committerEli Bendersky <eliben@gmail.com>
Thu, 27 Oct 2011 12:29:32 +0000 (14:29 +0200)
scripts/readelf.py

index 283ad92d6373ddbf8b374517deb0ab17e043d207..13bd4a745ff28398a3b3248a57672ac89548b483 100755 (executable)
@@ -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)))