Stream: git-wasmtime

Topic: wasmtime / PR #15194 Debugging: Keep a component's breakp...


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

sansmoraxz edited PR #15194.

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

sansmoraxz edited PR #15194:

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. This removes the text-range accessors added in #15182: where a site is in the code says whose function it is in, not whose Wasm code it is, and once the frame table records the module the range isn't needed. Re-patching also gets cheaper: it walks only the module's own sites, found by a binary search.

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

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 11:44):

github-actions[bot] added the label wasmtime:api on PR #15194.

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

alexcrichton removed the review request for wasmtime-core-reviewers from PR #15194.

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

alexcrichton removed the review request for alexcrichton from PR #15194.

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

alexcrichton requested cfallin for a review on PR #15194.

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

:thumbs_up: cfallin submitted PR review:

Thanks!

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

cfallin added PR #15194 Debugging: Keep a component's breakpoints in the module they were set in to the merge queue.

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

github-merge-queue[bot] removed PR #15194 Debugging: Keep a component's breakpoints in the module they were set in from the merge queue.

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

alexcrichton added PR #15194 Debugging: Keep a component's breakpoints in the module they were set in to the merge queue.

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

:check: alexcrichton merged PR #15194.

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

alexcrichton removed PR #15194 Debugging: Keep a component's breakpoints in the module they were set in from the merge queue.


Last updated: Nov 19 2026 at 20:05 UTC