Custom LLDB Commands in Practice | Kodeco

Learn how to use custom LLDB commands to attach to common iOS apps and modify their behavior – all without access to the source code!


This is a companion discussion topic for the original entry at https://www.kodeco.com/612-custom-lldb-commands-in-practice

Hi. I cannot get case insensitive image lookup such as

image lookup -rn (?i)\ _\w+description]

(as in page 100 of your book) to work; I get no output. I am using lldb version lldb-1316.0.9.46. Is there any setting that I need to adjust? Am I missing something? I asked about this in TaskOverflow, and I was told that modifiers such as (?i) are not supported. I’m puzzled, as your book is not the only source where I’ve seen (?i) mentioned in connection to regex in lldb. Thanks.

Hey @m00ngo , those regex commands do not currently work in the present day lldb. A couple years back they used a different regex parsing system but have since adopted llvm’s regex for interpretation which ain’t great.

I asked one of the lldb devs about it but he seemed skeptical that they would improve it

That’s really too bad. Is this supposed to be progress?
:stuck_out_tongue_closed_eyes:

Thanks for taking the time to reply.
:+1: