WebAssembly / WebAssembly/wabt

wasm-objdump should have a way to only show specific functions

Open
#828 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement good-first-bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.