Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 073031147cf8669f7752968ab66e01a7c29e49cc
https://github.com/WebKit/WebKit/commit/073031147cf8669f7752968ab66e01a7c29e49cc
Author: Yijia Huang <[email protected]>
Date: 2026-09-19 (Sat, 19 Sep 2026)
Changed paths:
M JSTests/wasm/debugger/resources/swift-wasm/build.sh
A
JSTests/wasm/debugger/resources/swift-wasm/operand-stack-test/Package.swift
A
JSTests/wasm/debugger/resources/swift-wasm/operand-stack-test/Sources/operand-stack-test/operand-stack-test.swift
A JSTests/wasm/debugger/resources/swift-wasm/operand-stack-test/main.js
A
JSTests/wasm/debugger/resources/swift-wasm/operand-stack-test/operand-stack-test.wasm
M JSTests/wasm/debugger/test-wasm-debugger.py
M JSTests/wasm/debugger/tests/tests.py
M Source/JavaScriptCore/wasm/debugger/README.md
M Source/JavaScriptCore/wasm/debugger/WasmQueryHandler.cpp
M Source/JavaScriptCore/wasm/debugger/WasmQueryHandler.h
Log Message:
-----------
[JSC] WASM debugger: implement qWasmStackValue
https://bugs.webkit.org/show_bug.cgi?id=324576
rdar://187810072
Reviewed by Yusuke Suzuki.
An optimized build can leave a source variable on the wasm operand stack
instead of in a
local, and LLDB reads it with qWasmStackValue. The packet was unimplemented, so
such a
variable printed as "<unhandled opcode DW_OP_WASM_location in DWARFExpression>".
An IPIntStackEntry is an untyped 16-byte union and nothing records which member
is live, so
the entry is sent whole and LLDB narrows it to the variable's DW_AT_type --
which needs an
LLDB carrying llvm/llvm-project#163646.
This patch answers frame 0 only. Caller frames are a follow-up.
The test needs that LLDB, which `xcrun --find lldb` does not yet provide, so it
goes in a new
OPT_IN_TESTS list: runnable by name, excluded from a default sweep.
Tests:
JSTests/wasm/debugger/tests/tests.py: SwiftWasmOperandStackTestCase
Canonical link: https://commits.webkit.org/321456@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications