WebAssembly / WebAssembly/wabt
wasm-objdump should have a way to only show specific functions
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 8.1k
- Forks
- 827
- Avg merge
- 4d 6h
- Merged PRs (30d)
- 18
Description
I'm debugging a Wasm compile error in a specific function. It'd be nice to be able to limit the disassembly dump to only a specific function or functions. For example:
wasm-objdump -d out.wasm --functions=13,64
This would only show the disassembly for functions 13 and 64. For bonus points, it'd be nice to be able to specify their name if a names section is present.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the wasm-objdump disassembly option handling and trace how function selection is currently processed. Add a way to select multiple functions by index, with optional names-section lookup, and verify that disassembly output is limited to the requested functions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, wasm
- Domain
- cli, compilers
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100