From: Eli Bendersky Date: Thu, 15 Dec 2011 13:28:35 +0000 (+0200) Subject: decoding seems to somewhat work. some unit tests pass X-Git-Tag: v0.10~35 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fc15efbbd2a27e251c2b289692db778d8d4cf6bd;p=pyelftools.git decoding seems to somewhat work. some unit tests pass --- 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)