https://github.com/MaxDesiatov updated 
https://github.com/llvm/llvm-project/pull/170393

>From eede8ac526d1e468b6072a1a499488e88b650844 Mon Sep 17 00:00:00 2001
From: Max Desiatov <[email protected]>
Date: Tue, 2 Dec 2025 23:50:09 +0000
Subject: [PATCH 1/2] lldbgdbremote.md: Update `qWasmLocal` result description

The current description mistakenly specified that an address of the local value 
in some address space is returned. When testing this with Wasm runtimes that 
already implement this command, it can be clearly seen that the value 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.
---
 lldb/docs/resources/lldbgdbremote.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lldb/docs/resources/lldbgdbremote.md 
b/lldb/docs/resources/lldbgdbremote.md
index 36b95f1073ebc..80e76fed8c78b 100644
--- a/lldb/docs/resources/lldbgdbremote.md
+++ b/lldb/docs/resources/lldbgdbremote.md
@@ -2505,7 +2505,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.
 
 
 ```

>From c79dfd8d1cc86095355c794d48b2cef98b88732f Mon Sep 17 00:00:00 2001
From: Max Desiatov <[email protected]>
Date: Wed, 3 Dec 2025 00:08:12 +0000
Subject: [PATCH 2/2] Update docs for `qWasmGlobal` and `qWasmStackValue`

---
 lldb/docs/resources/lldbgdbremote.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lldb/docs/resources/lldbgdbremote.md 
b/lldb/docs/resources/lldbgdbremote.md
index 80e76fed8c78b..7cd49c7bcab1b 100644
--- a/lldb/docs/resources/lldbgdbremote.md
+++ b/lldb/docs/resources/lldbgdbremote.md
@@ -2490,7 +2490,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
@@ -2521,7 +2521,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

_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to