<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Incorrect help text for memory write -f and -s options"
href="https://bugs.llvm.org/show_bug.cgi?id=49018">49018</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Incorrect help text for memory write -f and -s options
</td>
</tr>
<tr>
<th>Product</th>
<td>lldb
</td>
</tr>
<tr>
<th>Version</th>
<td>11.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>lldb-dev@lists.llvm.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>david.spickett@linaro.org
</td>
</tr>
<tr>
<th>CC</th>
<td>jdevlieghere@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>"memory write" shares "OptionGroupFormat" with a bunch of other commands but
the options always have the same help text.
(lldb) help memory read
<...>
-f <format> ( --format <format> )
Specify a format to be used for display.
<...>
-s <byte-size> ( --size <byte-size> )
The size in bytes to use when displaying with the selected format
(lldb) help memory write
<...>
-f <format> ( --format <format> )
Specify a format to be used for display.
-i <filename> ( --infile <filename> )
Write memory using the contents of a file.
-o <offset> ( --offset <offset> )
Start writing bytes from an offset within the input file.
-s <byte-size> ( --size <byte-size> )
The size in bytes to use when displaying with the selected format
Meaning that the description for memory write -f and -s is incorrect. Reading
the code I think -s is used for the input file size and -f is used to decide
how to interpret the input values.
(lldb) memory write buf 0xcgh -f hex
error: '0xcgh' is not a valid hex string value.
I haven't looked at the other uses in detail but they look like display
commands so memory write is the odd one out. ("register write" doesn't use it)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>