-
Notifications
You must be signed in to change notification settings - Fork 637
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unsupported opcode: JUMP_IF_NOT_EXC_MATCH any fix? #307
Comments
edit ASTree.cpp , comment default branch ,and recompile it default:
stack.pop();
// fprintf(stderr, "Unsupported opcode: %s\n", Pyc::OpcodeName(opcode & 0xFF));
// cleanBuild = false;
// return new ASTNodeList(defblock->nodes()); |
@Hexmagic Your tweak works 👍 |
It's not how you are supposed to handle this. |
Example I tested. |
This opcode occurs in Python 3.10 in simple functions like the one shown below. def f(x):
try:
...
except Exception:
return x The disassembly of this function is (as given by
The behaviour of the opcode is:
|
this is far from the ideal solution, as the code comes incomplete, but is better than not decompiling the file at all this workaround was proposed by https://github.com/zrax/pycdc/issues/307\#issuecomment-1382103504
this is far from the ideal solution, as the code comes incomplete, but is better than not decompiling the file at all this workaround was proposed by https://github.com/zrax/pycdc/issues/307\#issuecomment-1382103504
What to do? |
Duplicate #450 |
Unsupported opcode: JUMP_IF_NOT_EXC_MATCH
pass
WARNING: Decompyle incomplete
any fix?
The text was updated successfully, but these errors were encountered: