[Lldb-commits] [PATCH] D49739: Add new API to SBTarget class

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Aug 10 01:11:39 PDT 2018

labath added a comment.

In https://reviews.llvm.org/D49739#1194037, @apolyakov wrote:

> I think those options don't fit. I'm looking for behavior like this:
>   ~/workspace/gsoc/build/bin/lldb-server gdbserver --pipe 1 localhost:0
>   36251
> Here lldb-server prints out the port number it is listening on and continues running.
> If debugserver can choose a tcp port in case of passed `hostname:0` then probably all we need to do is to add analogue of `--pipe` option.

That's what --unix-socket and --named-pipe do, except that they write to the port number, well.. to a unix socket or a named pipe. You should be able to use that the same way as the --pipe argument, just the setup will be slightly different. However, adding support for the --pipe option should not be a problem either, given that all the pieces are already in place.



More information about the lldb-commits mailing list