From: Eli Bendersky Date: Fri, 16 Dec 2011 04:46:19 +0000 (+0200) Subject: fixed a bug in taking the last line from CIE to first line in FDE - need copy.copy... X-Git-Tag: v0.10~32 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=63268db2bc1e2b9d950b0b06d1874a255ac4c447;p=pyelftools.git 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 --- 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 = []