Skip to content

Remove dead capstone disassembly subsystem; drop Python capstone#13

Merged
jzh18 merged 1 commit into
mainfrom
refactor/drop-python-capstone-disasm
Jun 17, 2026
Merged

Remove dead capstone disassembly subsystem; drop Python capstone#13
jzh18 merged 1 commit into
mainfrom
refactor/drop-python-capstone-disasm

Conversation

@jzh18

@jzh18 jzh18 commented Jun 17, 2026

Copy link
Copy Markdown
Member

No description provided.

The --filter removal left the capstone-backed disassembly path unreferenced:
nothing read the instruction stream that Library.decode() produced. Remove it:

- library.py: delete the Instruction class, decode()/dump()/
  get_instruction_at_address(), the now-unused _list_executable_sections()
  helper, the _instructions/_addr_to_instruction state, and the capstone imports.
- disassembler.py: deleted (only held the capstone disassemble_data wrapper).
- process.py: drop the 'if mode == 0: decode()' call and the
  get_instruction_at_address wrapper; the 'mode' parameter is now vestigial
  across Module/get_loaded_module/ProcessMemory (rich/light is already carried
  by analyze_function_prototypes), so remove it. postprocess.py updated to match.
- pyproject.toml / requirements.txt: drop the Python capstone==5.0.0.post1 dep.
- build-bundles.yml: heavy-edition import check 'import angr, capstone' -> 'import angr'.
- docs: update edition tables / dependency lists accordingly.

libcapstone (the C library) is unaffected -- nucleus still links it, so the
capstone submodule and its build steps in dev.sh/build-native.sh stay.
@jzh18 jzh18 merged commit 29f2b3a into main Jun 17, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant