Re: lldb "memory find -e" not working ?
Re: lldb "memory find -e" not working ?
- Subject: Re: lldb "memory find -e" not working ?
- From: Paul Russell <email@hidden>
- Date: Wed, 14 Oct 2015 08:49:17 +0100
In case anyone else is interested I just learned that this is a known bug in lldb which was fixed recently, but evidently the fix has not yet made its way into Apple’s build. I got the following info from Enrico Granata on StackOverflow (see: http://stackoverflow.com/a/33114721/253056):
Paul
On 13 Oct 2015, at 11:28, Paul Russell < email@hidden> wrote:
I cant seem to get lldb’s “memory find” command to work with the -e option.
I've found that the -s option can be made to work, e.g. like this: (lldb) me fi -s "f" -- ptr ptr+8192*256 Your data was found at location: 0x11033e20c 0x11033e20c: 66 bb 58 07 d0 b7 32 7d ff 7f 00 00 66 5b e7 82 f.X...2}....f[.. But it looks like the -e option (which is what I need in this instance) is broken, e.g.:
(lldb) me fi -e 255 -- ptr ptr+8191*256
error: _expression_ evaluation failed. pass a string instead?
Trying to coax the -s option into accepting an escaped hex or decimal value doesn't seem to work either, unfortunately: (lldb) me fi -s "\xff" -- ptr ptr+8191*256 Your data was not found within the range.
(lldb) me fi -s "\255" -- ptr ptr+8191*256 Your data was not found within the range.
Am I missing something in the way I’m trying to use the -e option ?
Paul
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden