decoding seems to somewhat work. some unit tests pass
authorEli Bendersky <eliben@gmail.com>
Thu, 15 Dec 2011 13:28:35 +0000 (15:28 +0200)
committerEli Bendersky <eliben@gmail.com>
Thu, 15 Dec 2011 13:28:35 +0000 (15:28 +0200)
tests/test_callframe.py

index 556f172131155418c93d812a53dc8546585d395b..73e35d940d8582d574fd8233431aaa8f5657f4be 100644 (file)
@@ -115,6 +115,7 @@ class TestCallFrame(unittest.TestCase):
         self.assertEqual(decoded_FDE.table[2][8].type, RegisterRule.OFFSET)
         self.assertEqual(decoded_FDE.table[2][8].arg, -4)
         self.assertEqual(decoded_FDE.table[2][4].type, RegisterRule.SAME_VALUE)
+        self.assertEqual(decoded_FDE.table[5]['pc'], 0x11223344 + 20)
         self.assertEqual(decoded_FDE.table[5][4].type, RegisterRule.OFFSET)
         self.assertEqual(decoded_FDE.table[5][4].arg, -12)