Re: [lldb-dev] Break setting aliases...

2020-07-22 Thread Dave Lee via lldb-dev
On Tuesday, July 21, 2020, Jim Ingham via lldb-dev 
wrote:

> I think adding:
>
> bs (break source) -> break set -y
> ba (break address) -> break set -a
> bn (break name) -> break set -n
>
> 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”.
>

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?

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`.

Dave
___
lldb-dev mailing list
lldb-dev@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev


Re: [lldb-dev] Unable to build lldb on Mac OS

2020-10-26 Thread Dave Lee via lldb-dev
On Mon, Oct 26, 2020 at 6:51 AM Tom Stellard via lldb-dev <
lldb-dev@lists.llvm.org> wrote:

> Is there anyone with access to a Mac OS system that has time to take a
> look at this bug: https://bugs.llvm.org/show_bug.cgi?id=46190
>

When I've had compilation issues caused by CommandLineTools, the cause has
been Homebrew's install of pkg-config. Since it's not always possible to
uninstall pkg-config, the solution I use is to add
`-DPKG_CONFIG_EXECUTABLE=/usr/bin/false` to CMake. On macOS, the Xcode SDK
includes the libraries lldb needs, and CMake finds them without needing
pkg-config. But when pkg-config is installed, the paths it provides from
CommandLineTools are used instead. Using `false` is to simulate failure, at
which point cmake continues on with its search and finds them in the SDK.

Dave
___
lldb-dev mailing list
lldb-dev@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev