Add basic opcode (disassembly) support for Python 3.11

This commit is contained in:
Michael Hansen
2022-12-02 16:34:58 -08:00
parent a3e5ebd481
commit 9f1d0f2a21
11 changed files with 558 additions and 362 deletions

View File

@@ -36,6 +36,7 @@ DECLARE_PYTHON(3, 7)
DECLARE_PYTHON(3, 8)
DECLARE_PYTHON(3, 9)
DECLARE_PYTHON(3, 10)
DECLARE_PYTHON(3, 11)
const char* Pyc::OpcodeName(int opcode)
{
@@ -103,6 +104,7 @@ int Pyc::ByteToOpcode(int maj, int min, int opcode)
case 8: return python_38_map(opcode);
case 9: return python_39_map(opcode);
case 10: return python_310_map(opcode);
case 11: return python_311_map(opcode);
}
break;
}