From c1abd2d4c62e3c524f87849f24a2ab6030d1a359 Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Wed, 15 Jan 2014 05:53:07 -0800 Subject: [PATCH] Attempting fix for issue #22: bad structs reference --- elftools/dwarf/die.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.30.2