fixed a bug in taking the last line from CIE to first line in FDE - need copy.copy...
authorEli Bendersky <eliben@gmail.com>
Fri, 16 Dec 2011 04:46:19 +0000 (06:46 +0200)
committerEli Bendersky <eliben@gmail.com>
Fri, 16 Dec 2011 04:46:19 +0000 (06:46 +0200)
elftools/dwarf/callframe.py

index c2a7ec29832bb99196919c8e958ec17caf104466..f8dcac63bbb2c987b57c360d1bbdeef87d274ae9 100644 (file)
@@ -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 = []