2

is possible with lldb have a list of functions at runtime like gdb info functions? I had a look at help but didn't find it.

1

Although lldb help doesn't explicitly state gdb's info functions equivalent, it shows the command mapped from info function <FUNC_REGEX>.

Nonetheless, you may realise that info functions in gdb gives you the same output as info function .*, where .* is the regular expression that matches every function name.

That being said, from GDB to LDB command map you get two corresponding commands:

image lookup -r -n <FUNC_REGEX> 

and

image lookup -r -s <FUNC_REGEX>

where the first one will find debug symbols matching <FUNC_REGEX>, while the second one: non-debug symbols matching this regular expression.

The combination of both with <FUNC_REGEX> equal .* should give you the desired result.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.