Skip to content

Commit 94c8940

Browse files
authored
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.
1 parent 9fd288e commit 94c8940

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lldb/docs/resources/lldbgdbremote.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2508,7 +2508,7 @@ stack traces.
25082508
25092509
Get the value of a Wasm global variable for the given frame index at the given
25102510
variable index. The indexes are encoded as base 10. The result is a hex-encoded
2511-
address from where to read the value.
2511+
little-endian value of the global.
25122512
25132513
```
25142514
send packet: $qWasmGlobal:0;2#cb
@@ -2523,7 +2523,7 @@ variables.
25232523
25242524
Get the value of a Wasm function argument or local variable for the given frame
25252525
index at the given variable index. The indexes are encoded as base 10. The
2526-
result is a hex-encoded address from where to read the value.
2526+
result is a hex-encoded little-endian value of the local.
25272527
25282528
25292529
```
@@ -2539,7 +2539,7 @@ variables.
25392539
25402540
Get the value of a Wasm local variable from the Wasm operand stack, for the
25412541
given frame index at the given variable index. The indexes are encoded as base
2542-
10. The result is a hex-encoded address from where to read value.
2542+
10. The result is a hex-encoded little-endian value from the stack at the given index.
25432543
25442544
```
25452545
send packet: $qWasmStackValue:0;2#cb

0 commit comments

Comments
 (0)