[Lldb-commits] [lldb] 94c8940 - lldbgdbremote.md: Update `qWasmLocal` result description (#170393)
via lldb-commits
lldb-commits at lists.llvm.org
Tue Dec 2 16:27:18 PST 2025
Author: Max Desiatov
Date: 2025-12-02T16:27:14-08:00
New Revision: 94c8940f449ebc3a42c8343ebbdf5b888a436854
URL: https://github.com/llvm/llvm-project/commit/94c8940f449ebc3a42c8343ebbdf5b888a436854
DIFF: https://github.com/llvm/llvm-project/commit/94c8940f449ebc3a42c8343ebbdf5b888a436854.diff
LOG: lldbgdbremote.md: Update `qWasmLocal` result description (#170393)
The current description mistakenly specified that an address of a local
value in some address space is returned. When testing this with Wasm
runtimes that already implement this command, it can be observed that
the value itself is returned. The value itself may be an address for
languages that use shadow stack in Wasm linear memory, but the value of
an arbitrary local does not always contain that address.
Added:
Modified:
lldb/docs/resources/lldbgdbremote.md
Removed:
################################################################################
diff --git a/lldb/docs/resources/lldbgdbremote.md b/lldb/docs/resources/lldbgdbremote.md
index 032edb66690e4..fdd9b057f0b4a 100644
--- a/lldb/docs/resources/lldbgdbremote.md
+++ b/lldb/docs/resources/lldbgdbremote.md
@@ -2508,7 +2508,7 @@ stack traces.
Get the value of a Wasm global variable for the given frame index at the given
variable index. The indexes are encoded as base 10. The result is a hex-encoded
-address from where to read the value.
+little-endian value of the global.
```
send packet: $qWasmGlobal:0;2#cb
@@ -2523,7 +2523,7 @@ variables.
Get the value of a Wasm function argument or local variable for the given frame
index at the given variable index. The indexes are encoded as base 10. The
-result is a hex-encoded address from where to read the value.
+result is a hex-encoded little-endian value of the local.
```
@@ -2539,7 +2539,7 @@ variables.
Get the value of a Wasm local variable from the Wasm operand stack, for the
given frame index at the given variable index. The indexes are encoded as base
-10. The result is a hex-encoded address from where to read value.
+10. The result is a hex-encoded little-endian value from the stack at the given index.
```
send packet: $qWasmStackValue:0;2#cb
More information about the lldb-commits
mailing list