Stream: git-wasmtime

Topic: wasmtime / PR #12802 Debugging: add debug-tags to instrum...


view this post on Zulip Wasmtime GitHub notifications bot (Mar 19 2026 at 01:12):

cfallin opened PR #12802 from cfallin:debug-pc-on-traps to bytecodealliance:main:

This was not exposed earlier by (i) lack of handling of trap events in the initial version of the gdbstub component in #12771, and (ii) lack of asserting some value for the PC on the top frame in the debug-event test for traps. We got the PC for the last opcode in the function body previously because, with no debug tags on the trapping path that calls raise() (sunk to the bottom of the machine code body as cold code), we scanned backward for the last tag metadata and found that instead. Adding metadata according to the current source location when emitting traps fixes this for all trapping events.

<!--
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 (Mar 19 2026 at 01:12):

cfallin requested alexcrichton for a review on PR #12802.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 19 2026 at 01:12):

cfallin requested wasmtime-compiler-reviewers for a review on PR #12802.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 19 2026 at 01:12):

cfallin requested wasmtime-core-reviewers for a review on PR #12802.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 19 2026 at 01:22):

cfallin updated PR #12802.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 19 2026 at 22:04):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 19 2026 at 22:04):

alexcrichton added PR #12802 Debugging: add debug-tags to instrumented trap sites so we actually get PCs on traps. to the merge queue

view this post on Zulip Wasmtime GitHub notifications bot (Mar 19 2026 at 22:29):

alexcrichton merged PR #12802.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 19 2026 at 22:29):

alexcrichton removed PR #12802 Debugging: add debug-tags to instrumented trap sites so we actually get PCs on traps. from the merge queue


Last updated: Mar 23 2026 at 16:19 UTC