Use get_inst() to paper around EXTENDED_ARG

This commit is contained in:
rocky
2018-02-25 23:02:23 -05:00
parent b584a0f6b0
commit d09e820d89
2 changed files with 2 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ Usage-Examples:
test_pyenvlib.py --all --verify # decomyile all tests and verify results test_pyenvlib.py --all --verify # decomyile all tests and verify results
test_pyenvlib.py --test # decompile only the testsuite test_pyenvlib.py --test # decompile only the testsuite
test_pyenvlib.py --2.7.12 --verify # decompile and verify python lib 2.7.11 test_pyenvlib.py --2.7.12 --verify # decompile and verify python lib 2.7.11
test_pyenvlib.py --3.6.4 --max 10 # decompile first 10 of 3.6.4
Adding own test-trees: Adding own test-trees:

View File

@@ -790,7 +790,7 @@ class Scanner3(Scanner):
# not myself? If so, it's part of a larger conditional. # not myself? If so, it's part of a larger conditional.
# rocky: if we have a conditional jump to the next instruction, then # rocky: if we have a conditional jump to the next instruction, then
# possibly I am "skipping over" a "pass" or null statement. # possibly I am "skipping over" a "pass" or null statement.
pretarget = self.insts[self.offset2inst_index[prev_op[target]]] pretarget = self.get_inst(prev_op[target])
if (pretarget.opcode in self.pop_jump_if_pop and if (pretarget.opcode in self.pop_jump_if_pop and
(target > offset) and pretarget.offset != offset): (target > offset) and pretarget.offset != offset):