[lldb-dev] [Bug 24334] New: memory find documentation incorrect

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Aug 2 10:59:42 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24334

            Bug ID: 24334
           Summary: memory find documentation incorrect
           Product: lldb
           Version: 3.3
          Hardware: Macintosh
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at cs.uiuc.edu
          Reporter: gnachman at gmail.com
    Classification: Unclassified

If you run "help memory find" it incorrectly states that it takes this:

  memory find <address> <value> [<value> [...]]

As a matter of fact, the first argument is the start address to search. The
send is the end of the range. Additional arguments are not accepted (if there
are not exactly two arguments, it fails).

Finally, passing it an expression doesn't seem to work; or if it does, the
correct syntax cannot be inferred from the documentation.

(lldb) memory find 0x100000000 0x10000e000 -e "(void*)0x00007fff9145e965"
error: expression evaluation failed. pass a string instead?
(lldb) memory find 0x100000000 0x10000e000 -e "(void*)0x7fff9145e965"
error: expression evaluation failed. pass a string instead?
(lldb) memory find 0x100000000 0x10000e000 -e (void*)0x7fff9145e965
error: expression evaluation failed. pass a string instead?
(lldb) memory find 0x100000000 0x10000e000 -e (void*)0x7fff9145e965
error: expression evaluation failed. pass a string instead?
(lldb) memory find 0x100000000 0x10000e000 -e "isDirty"
error: do not know how to deal with larger than 8 byte result types. pass a
string instead
(lldb) memory find 0x100000000 0x10000e000 -e "i"
error: do not know how to deal with larger than 8 byte result types. pass a
string instead
(lldb) memory find 0x100000000 0x10000e000 -e "(char*)i"
error: do not know how to deal with larger than 8 byte result types. pass a
string instead
(lldb) memory find 0x100000000 0x10000e000 -e 1
error: expression evaluation failed. pass a string instead?
(lldb) memory find 0x100000000 0x10000e000 -e x=1
error: do not know how to deal with larger than 8 byte result types. pass a
string instead

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20150802/e835c514/attachment.html>


More information about the lldb-dev mailing list