From 63268db2bc1e2b9d950b0b06d1874a255ac4c447 Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Fri, 16 Dec 2011 06:46:19 +0200 Subject: [PATCH] fixed a bug in taking the last line from CIE to first line in FDE - need copy.copy! now all current readelf tests run successfully --- elftools/dwarf/callframe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elftools/dwarf/callframe.py b/elftools/dwarf/callframe.py index c2a7ec2..f8dcac6 100644 --- a/elftools/dwarf/callframe.py +++ b/elftools/dwarf/callframe.py @@ -240,10 +240,10 @@ class CFIEntry(object): else: # FDE cie = self.cie cie_decoded_table = cie.get_decoded() - last_line_in_CIE = cie_decoded_table.table[-1] + last_line_in_CIE = copy.copy(cie_decoded_table.table[-1]) cur_line = last_line_in_CIE cur_line['pc'] = self['initial_location'] - reg_order = cie_decoded_table.reg_order + reg_order = copy.copy(cie_decoded_table.reg_order) table = [] line_stack = [] -- 2.30.2