WASM/Debugger: parse the `name.functions` custom section
Context
This MR implements the parsing of the name section. This will improve !8510 (merged) to allow outputting the correct symbols in the flamegraph.
Adds a show debug
command that outputs the debug section.
Note that this work is also the first step if we want at some points add breakpoints on function calls.
Manually testing the MR
Take the unstripped kernel_evm.wasm
, then compare the result (for functions only) of
wasm-objdump src/kernel_evm/target/wasm32-unknown-unknown/release/evm_kernel.wasm -x --section=name
and
./octez-smart-rollup-wasm-debugger src/kernel_evm/target/wasm32-unknown-unknown/release/evm_kernel.wasm --inputs tezt/tests/evm_kernel_inputs/inputs.json
> show debug
Checklist
-
Document the interface of any function added or modified (see the coding guidelines) -
Document any change to the user interface, including configuration parameters (see node configuration) -
Provide automatic testing (see the testing guide). -
For new features and bug fixes, add an item in the appropriate changelog ( docs/protocols/alpha.rst
for the protocol and the environment,CHANGES.rst
at the root of the repository for everything else). -
Select suitable reviewers using the Reviewers
field below. -
Select as Assignee
the next person who should take action on that MR
Edited by Pierrick Couderc