Skip to content

Commit bd53c7c

Browse files
committed
[lldb][Docs] Document vFile "MD5" and "exists"
This is a Markdown version of llvm#89357.
1 parent d529e78 commit bd53c7c

File tree

1 file changed

+43
-1
lines changed

1 file changed

+43
-1
lines changed

lldb/docs/resources/lldbgdbremote.md

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2621,4 +2621,46 @@ Request packet has the fields:
26212621
2. Offset into file to start from, base 16
26222622
3. binary-escaped-data to be written
26232623
2624-
Response is `F`, followed by the number of bytes written (base 16).
2624+
Response is `F`, followed by the number of bytes written (base 16).
2625+
2626+
### vFile:MD5
2627+
2628+
#### Brief
2629+
2630+
Generate an MD5 hash of the file at the given path.
2631+
2632+
#### Example
2633+
2634+
```
2635+
receive: vFile:MD5:2f746d702f61
2636+
send (success): F,00000000000000001111111111111111
2637+
send (failure): F,x
2638+
```
2639+
2640+
Request packet contains the ASCII hex encoded filename.
2641+
2642+
If the hash succeeded, the response is `F,` followed by the low 64
2643+
bits of the result, and finally the high 64 bits of the result. Both are in
2644+
hex format without a prefix.
2645+
2646+
The response is `F,`, followed by `x` if the file did not exist
2647+
or failed to hash.
2648+
2649+
### vFile:exists
2650+
2651+
#### Brief
2652+
2653+
Check whether the file at the given path exists.
2654+
2655+
#### Example
2656+
2657+
```
2658+
receive: vFile:exists:2f746d702f61
2659+
send (exists): F,1
2660+
send (does not exist): F,0
2661+
```
2662+
2663+
Request packet contains the ASCII hex encoded filename.
2664+
2665+
The response is a return code where 1 means the file exists
2666+
and 0 means it does not.

0 commit comments

Comments
 (0)