Stream: git-wasmtime

Topic: wasmtime / PR #15182 Don't lose a component's breakpoints...


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

sansmoraxz opened PR #15182 from sansmoraxz:guest_debug_fix to bytecodealliance:main:

In a component with several core modules, turning single-stepping off removed the breakpoints in all of its modules except the last one.

The modules share one code image. When single-stepping was switched, each module reset every breakpoint site in that shared code by its own list of breakpoints, including the sites belonging to other modules. Whichever module went last decided for all of them.

With this change, each module only resets its own sites.

The test, component_breakpoint_survives_single_step, sets a breakpoint in one of two modules, turns single-stepping on and off, and checks that the breakpoint still fires. Without the fix, a breakpoint in the first module never fires.

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

sansmoraxz requested pchickey for a review on PR #15182.

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

sansmoraxz removed the review request for wasmtime-core-reviewers from PR #15182.

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

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

view this post on Zulip Wasmtime GitHub notifications bot (Nov 06 2026 at 19:27):

:memo: cfallin submitted PR review:

Thanks!

view this post on Zulip Wasmtime GitHub notifications bot (Nov 06 2026 at 19:27):

:speech_balloon: cfallin created PR review comment:

Rather than doing a binary search for each PC as we walk through PCs, it's probably more efficient to add an accessor to compiled_module that returns its offset-range, and test whether patch.offset is within that range, no? Or perhaps compiled_module().contains_offset(patch.offset) actually, with the range-contains comparisons?

view this post on Zulip Wasmtime GitHub notifications bot (Nov 06 2026 at 19:27):

:memo: cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 06 2026 at 19:27):

:speech_balloon: cfallin created PR review comment:

(To be clear with the latter: I'm suggesting adding that accessor, not that it already exists)

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

sansmoraxz updated PR #15182.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 06 2026 at 21:27):

:memo: sansmoraxz submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 06 2026 at 21:27):

:speech_balloon: sansmoraxz created PR review comment:

done

view this post on Zulip Wasmtime GitHub notifications bot (Nov 06 2026 at 22:32):

:thumbs_up: cfallin submitted PR review:

Thanks!

view this post on Zulip Wasmtime GitHub notifications bot (Nov 06 2026 at 22:32):

cfallin added PR #15182 Don't lose a component's breakpoints when single-stepping is turned off to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 06 2026 at 23:25):

:check: cfallin merged PR #15182.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 06 2026 at 23:25):

cfallin removed PR #15182 Don't lose a component's breakpoints when single-stepping is turned off from the merge queue.


Last updated: Nov 19 2026 at 20:05 UTC