Stream: git-wasmtime

Topic: wasmtime / PR #15194 Keep a component's breakpoints in th...


view this post on Zulip Wasmtime GitHub notifications bot (Nov 07 2026 at 09:33):

sansmoraxz opened PR #15194 from sansmoraxz:guest_debug_single_step_by_module to bytecodealliance:main:

Follow-up to #15182. A component's core modules share one code image and one frame table, and the frame table told breakpoint sites apart only by their module-relative Wasm PC, so the same PC in two modules was taken for the same site. There are two fixes, one per commit.

Keep inlined breakpoints when single-stepping ends. Since #15182, each module re-patches only the sites in its own range of the code. But with inlining, a function from one module can be inlined into a caller from another. Its sites are then in the caller's range, and were re-patched by the caller's module, so a breakpoint in the inlined function was lost. The frame table now records each site's module (the innermost frame's, so inlined code keeps its own), and re-patching goes by that. The text-range accessors added in #15182 are no longer needed and are removed.

Scope breakpoint lookups to one module. Adding, removing and slipping a breakpoint looked its sites up by PC alone, across all modules. So:

Note: breaking change

The sites are now sorted by module, then PC, and each lookup is scoped to one module. FrameTable::breakpoint_patches now takes a module, and objdump uses the new all_breakpoint_patches.

Tests:

view this post on Zulip Wasmtime GitHub notifications bot (Nov 07 2026 at 09:33):

sansmoraxz removed the review request for wasmtime-compiler-reviewers from PR #15194.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 07 2026 at 09:33):

sansmoraxz requested alexcrichton for a review on PR #15194.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 07 2026 at 09:33):

sansmoraxz requested wasmtime-compiler-reviewers for a review on PR #15194.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 07 2026 at 09:33):

sansmoraxz requested wasmtime-core-reviewers for a review on PR #15194.


Last updated: Nov 19 2026 at 20:05 UTC