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

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.

>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] 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.
 
 
 ```

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

Reply via email to