On Tuesday, July 21, 2020, Jim Ingham via lldb-dev <<a href="mailto:lldb-dev@lists.llvm.org">lldb-dev@lists.llvm.org</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I think adding:<br>
<br>
bs (break source) -> break set -y<br>
ba (break address) -> break set -a<br>
bn (break name) -> break set -n<br>
<br>
would provide a convenient way to set the most common classes of breakpoints while not precluding access to all the other options available to “break set”. <br>
</blockquote><div><br></div><div>If these are defined as regular aliases, I wonder how many people would try, say, `bn -H whatever` and be confused when it doesn't work because it didn't do the right thing (such as creating a breakpoint named "-H" in this example). Should these new aliases support flags before and after the positional argument? Personally I think so. But to support that, it seems they'd need to be implemented with `command regex`. In that case, would it be good to add similar before/after flag composition abilities to `b` as Greg Clayton suggested?</div><div><br></div><div>It hasn't been mentioned in this thread, but `b` has undocumented handling for flags: the prefix `b -` is expanded to `breakpoint set -`. Because of this I almost never use `breakpoint set` directly. For whatever it's worth, this means `bn` can be achieved as `b -n`, etc. As Pavel Labath suggested, I think it's worth updating the help documentation for `b` to explicitly lead users from `b` to `breakpoint set`.</div><div><br></div><div>Dave</div>