Search code examples
iosmacosdebuggingllvmlldb

How can I see the definition of an alias in lldb on macOS?


I know how to define my own alias's etc, but I can't figure out how to view the definition of already defined alias's like image:

  image     -- Commands for accessing information for one or more target modules.

The above alias is central to inspecting e.g. symbol information in the target program, and so I'd like to see how it's defined in terms of the main commands.


Solution

  • I don't know if there's a better way that produces less noisy output, but help image includes this at the end of its output:

    'image' is an abbreviation for 'target modules'
    

    That seems to be the case for aliases in general.