This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Print the enum values and their description in the argument value help output
ClosedPublic

Authored by JDevlieghere on Jul 13 2022, 5:24 PM.

Details

Summary

Print the enum values and their description in the argument value help output.

Here's what the output looks like:

(lldb) help <description-verbosity>
  <description-verbosity> -- How verbose the output of 'po' should be.

     compact : Only show the description string
     full    : Show the full output, including persistent variable's name and type

(lldb) help <log-handler>
  <log-handler> -- The log handle that will be used to write out log messages.

     default  : Use the default (stream) log handler
     stream   : Write log messages to the debugger output stream or to a file if one is specified. A buffer size (in bytes) can be specified with -b. If no buffer size is specified the output is unbuffered.
     circular : Write log messages to a fixed size circular buffer. A buffer size (number of messages) must be specified with -b.
     os       : Write log messages to the operating system log.

Until now, as far as I know, there was no way to get these values and their description.

Diff Detail