-
Notifications
You must be signed in to change notification settings - Fork 653
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
Could pycdc skip some part of a problem pyc file? #516
Comments
nope as far as I"m aware about |
From a user's perspective: if the error is "Unsupported opcode", you may try adding branches to For example I'm encountering Here is my modification for reference, note that this is only a temporary workaround. GL to contributors to achieve 3.11 full support soon. diff --git a/ASTree.cpp b/ASTree.cpp
index 050eebf..6d68258 100644
--- a/ASTree.cpp
+++ b/ASTree.cpp
@@ -1876,12 +1876,19 @@ PycRef<ASTNode> BuildFromCode(PycRef<PycCode> code, PycModule* mod)
break;
case Pyc::SETUP_WITH_A:
case Pyc::WITH_EXCEPT_START:
+ case Pyc::BEFORE_WITH:
+ case Pyc::PUSH_EXC_INFO:
{
PycRef<ASTBlock> withblock = new ASTWithBlock(pos+operand);
blocks.push(withblock);
curblock = blocks.top();
}
break;
+ case Pyc::RERAISE_A:
+ break;
+
+ case Pyc::COPY_A:
+ break;
case Pyc::WITH_CLEANUP:
case Pyc::WITH_CLEANUP_START: |
@RibomBalt Any updated PR for it? Thanks |
@bygreencn By far I didn't have any. As I said this is just a temporary workaround. What I did is basically just NOPing all the unknown opcodes and hoping it won't break anything else. But IMO to be qualified for a PR for such project one should at least take a serious look at how these new opcodes work and try to actually implement them. Now I don't have time for such a PR, sorry. |
I am try to decompyle a pyc file with some problem, I could get some output from
pycdc
but stuck at the promblem part, could I skip this part?The text was updated successfully, but these errors were encountered: