[Lldb-commits] [PATCH] D49739: [WIP] Re-implement MI target-select command.

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Jul 25 03:28:33 PDT 2018

labath added a comment.

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

> `packages/Python/lldbsuite/test/tools/lldb-mi/signal/TestMiSignal.py` test contains `port = 12000 + random.randint(0, 3999)`.

Ok, that's bad. I don't know why the other lldb-mi tests are flaky, but these ones are definitely flaky because of that. Let's not emulate that.

The best way to get a port is to have lldb-server/debugserver choose it for you. You can do this by passing "0" as the command line port, and using the `--pipe` argument to have the stub write out the actual port number it has chosen back to you. That way, you're guaranteed to get a free port without any races.


More information about the lldb-commits mailing list