[llvm-bugs] [Bug 43258] New: Make it easier to find the definition for an alias command

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Sep 9 10:56:12 PDT 2019


            Bug ID: 43258
           Summary: Make it easier to find the definition for an alias
           Product: lldb
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: jingham at apple.com
                CC: jdevlieghere at apple.com, llvm-bugs at lists.llvm.org

Currently to see the definition of a command alias, you have to run "help" on
the command, and scan down to the end of the page to see the definition.  That
is not very obvious.

One option which came to mind is to have: "command alias name" - which is
currently an error - print the command alias of "name" if it exists.  But that
wouldn't work for "command regex name" which enters you into the "enter the
regex substitution strings" IOHandler.

Another option is to add something to help, like:

(lldb) help --print-definition name

To print the definition of "name" if there is one.  This could print regex
patterns, the alias mapping and maybe even the bodies of Python defined

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190909/c5a27fe5/attachment.html>

More information about the llvm-bugs mailing list