From fc15efbbd2a27e251c2b289692db778d8d4cf6bd Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Thu, 15 Dec 2011 15:28:35 +0200 Subject: [PATCH] decoding seems to somewhat work. some unit tests pass --- tests/test_callframe.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_callframe.py b/tests/test_callframe.py index 556f172..73e35d9 100644 --- a/tests/test_callframe.py +++ b/tests/test_callframe.py @@ -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) -- 2.30.2