Stream: git-wasmtime

Topic: wasmtime / PR #9796 pulley: Add simple debugging support


view this post on Zulip Wasmtime GitHub notifications bot (Dec 11 2024 at 22:50):

alexcrichton opened PR #9796 from alexcrichton:pulley-debug to bytecodealliance:main:

This commit adds a debug.rs to Pulley to print out the instruction being executed and the state of all registers between instructions. This is turned off by default and does not have a runtime or environment-based configuration value. Instead changing this requires changing source code for now. This enables the interpreter loop to unconditionally use this "debugger" where it'll compile away to nothing in release/benchmarking situations.

This commit additionally adds this support to the tail_loop module and fixes a few issues there such as it accidentally not being tested in CI as well as a new #[cfg] to use it on stable rust with normal return under the assumption that LLVM is highly likely to do TCO.

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Dec 11 2024 at 22:50):

alexcrichton requested wasmtime-default-reviewers for a review on PR #9796.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 11 2024 at 22:50):

alexcrichton requested abrown for a review on PR #9796.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 11 2024 at 23:06):

abrown submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 11 2024 at 23:48):

alexcrichton merged PR #9796.


Last updated: Dec 23 2024 at 12:05 UTC