[Lldb-commits] [lldb] [lldb] Scope Wasm global reads to a module instance (PR #213176)

Jason Molenda via lldb-commits lldb-commits at lists.llvm.org
Sat Aug 1 14:48:56 PDT 2026


================
@@ -2670,6 +2683,46 @@ read packet: $e0030100#b9
 variables.
 
 
+### qWasmInstance (qSupported feature)
+
+A stub advertises `qWasmInstance+` in its `qSupported` response
+when it can be told which module instance to read from, rather than only serving
+what a frame can reach.
+
+A module instance has address spaces of its own, so a Wasm stub names an
+instance with a `;address_space:<id>;` key-value suffix, in which the id is
+encoded as base 10. A packet whose scope is an instance rather than a frame
+carries that suffix in place of its frame index. Today `qWasmGlobal` is the only
+such packet, and a stub that adds a query for instance-scoped state that no
+address can name has to carry the same suffix rather than introduce a packet of
+its own.
+
+An address in a packet is 64 bits wide: an address space tag in bits 63:62, the
----------------
jasonmolenda wrote:

just pointing this out because it sounds like b63 is reserved, and bit 62 is used to indicate flat address space addr or module-instance-addr.

https://github.com/llvm/llvm-project/pull/213176


More information about the lldb-commits mailing list