llvm
ee745070 - [lldb] Give Wasm stack frames a synthetic call frame address (#208061)

Commit
5 days ago
[lldb] Give Wasm stack frames a synthetic call frame address (#208061) UnwindWasm reported a call frame address of zero for every Wasm frame. StackID orders frames by their CFA, assuming the stack grows downward so that a younger frame compares below its caller. With every CFA equal to zero that ordering collapsed, and CompareCurrentFrameToStartFrame treated a step into a function as a step out, which silently disabled step-in avoid-regexp and confused other thread plans. WebAssembly keeps its call stack inside the engine and exposes no linear-memory frame address, so synthesize a CFA from each frame's distance to the outermost frame. That distance is invariant as frames are pushed and popped above it, so a given frame keeps a stable, ordered CFA across steps.
Author
Parents
Loading