Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 875e3a58a1b2889a8cf92d13a650be5c652e0d0c
      
https://github.com/WebKit/WebKit/commit/875e3a58a1b2889a8cf92d13a650be5c652e0d0c
  Author: Yijia Huang <[email protected]>
  Date:   2026-03-24 (Tue, 24 Mar 2026)

  Changed paths:
    A JSTests/wasm/debugger/resources/swift-wasm/globals-test/Package.swift
    A 
JSTests/wasm/debugger/resources/swift-wasm/globals-test/Sources/globals-test/main.swift
    A JSTests/wasm/debugger/resources/swift-wasm/globals-test/globals-test.wasm
    A JSTests/wasm/debugger/resources/swift-wasm/globals-test/main.js
    M JSTests/wasm/debugger/tests/tests.py
    M Source/JavaScriptCore/wasm/debugger/WasmQueryHandler.cpp
    M Source/JavaScriptCore/wasm/debugger/WasmQueryHandler.h

  Log Message:
  -----------
  [JSC][WASM][Debugger] Implement qWasmGlobal GDB remote packet handler
https://bugs.webkit.org/show_bug.cgi?id=310643
rdar://173256414

Reviewed by Keith Miller and Yusuke Suzuki.

`qWasmGlobal:<frame>;<index>` is sent by LLDB when evaluating DWARF location
expressions which Swift emits for module-level variables to encode their 
memory-base global index.

This patch introduces `handleWasmGlobal` which resolves the WASM instance from 
`stopData`
for frame 0, or by walking the collected call stack for non-zero frames (needed 
when frames
belong to different module instances).

Tests:
JSTests/wasm/debugger/resources/swift-wasm/globals-test/Sources/globals-test/main.swift
JSTests/wasm/debugger/tests/tests.py: (SwiftWasmGlobalTestCase)

Canonical link: https://commits.webkit.org/309876@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to