[Lldb-commits] [PATCH] D111965: [lldb] improve the help strings for gdb-remote and kdp-remote

Jim Ingham via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Oct 18 10:39:42 PDT 2021


jingham added a comment.

In D111965#3069568 <https://reviews.llvm.org/D111965#3069568>, @DavidSpickett wrote:

> I've seen commands print that they are an alias automatically:
>
>   (lldb) help rbreak
>   Sets a breakpoint or set of breakpoints in the executable.
>   
>   Syntax: rbreak <cmd-options>
>   
>   <...>
>   
>   'rbreak' is an abbreviation for 'breakpoint set -r %1'
>
> Is this not the case for regex commands? Showing the user a cryptic regex isn't going to help them that much anyway, so nothing against doing this change.

A regex command is not necessarily an alias for anything.  You can have a regex command that calls different lldb commands depending on the regex.  So there's no way for a regex command to automatically show anything but the regex's.  So if you want to provide useful help for regex commands, you kind of have to provide a hand-written help.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D111965/new/

https://reviews.llvm.org/D111965



More information about the lldb-commits mailing list