Skip to content
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

Cover more code flags in disassembly output #138

Closed
greenozon opened this issue Aug 7, 2024 · 0 comments
Closed

Cover more code flags in disassembly output #138

greenozon opened this issue Aug 7, 2024 · 0 comments

Comments

@greenozon
Copy link
Contributor

Description

For the moment I'm observing the case when pydisasm output leaves some flags as hex values,
but it'd be nice to decode it into user friendly strings

Priority

Low

Tests

version used:

pydisasm --version
pydisasm, version 6.1.2.dev0

example of the sample .pyc:

# Flags:             0x0100001f (0x1000000 | NESTED | VARKEYWORDS | VARARGS | NEWLOCALS | OPTIMIZED)

expected output:
0x1000000 decoded into FUTURE_ANNOTATIONS
as the module is using

from future import annotations

Thanks!

Attached sample .pyc:
rewriter.cpython-311.zip

@greenozon greenozon mentioned this issue Aug 13, 2024
greenozon added a commit to greenozon/python-xdis that referenced this issue Aug 14, 2024
@rocky rocky closed this as completed in 66bb31c Aug 14, 2024
rocky added a commit that referenced this issue Aug 14, 2024
greenozon added a commit to greenozon/python-xdis that referenced this issue Aug 14, 2024
greenozon added a commit to greenozon/python-xdis that referenced this issue Aug 14, 2024
greenozon added a commit to greenozon/python-xdis that referenced this issue Aug 14, 2024
greenozon added a commit to greenozon/python-xdis that referenced this issue Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants