From: Eli Bendersky Date: Wed, 15 Jan 2014 13:53:07 +0000 (-0800) Subject: Attempting fix for issue #22: bad structs reference X-Git-Tag: v0.22~8 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c1abd2d4c62e3c524f87849f24a2ab6030d1a359;p=pyelftools.git Attempting fix for issue #22: bad structs reference --- diff --git a/elftools/dwarf/die.py b/elftools/dwarf/die.py index 91c0d0b..e329e5c 100644 --- a/elftools/dwarf/die.py +++ b/elftools/dwarf/die.py @@ -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: