Attempting fix for issue #22: bad structs reference
authorEli Bendersky <eliben@gmail.com>
Wed, 15 Jan 2014 13:53:07 +0000 (05:53 -0800)
committerEli Bendersky <eliben@gmail.com>
Wed, 15 Jan 2014 13:53:07 +0000 (05:53 -0800)
elftools/dwarf/die.py

index 91c0d0b4161689e5edd415a99c002aa138b6d6a5..e329e5c7165fdd9935901648611413965944ee87 100644 (file)
@@ -204,7 +204,7 @@ class DIE(object):
         elif form == 'DW_FORM_indirect':
             form = raw_value
             raw_value = struct_parse(
-                structs.Dwarf_dw_form[form], self.stream)
+                self.cu.structs.Dwarf_dw_form[form], self.stream)
             # Let's hope this doesn't get too deep :-)
             return self._translate_attr_value(form, raw_value)
         else: