OSDN Git Service

tests/acceptance: pick a random gdb port for reverse debugging
authorAlex Bennée <alex.bennee@linaro.org>
Wed, 21 Oct 2020 16:31:36 +0000 (17:31 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 27 Oct 2020 09:53:51 +0000 (09:53 +0000)
commit0395b19438bd708f98280f87067870743a69a25d
treefde91e59633f87d6c613da2784bf07a88e12c22c
parent2d4274d6fe97da3e13ae21720ef0b57d6c3dc980
tests/acceptance: pick a random gdb port for reverse debugging

Currently the test randomly fails if you are using a shared machine
due to contention on the well known port 1234. We can ameliorate this
a bit by picking a random non-ephemeral port although it doesn't
totally avoid the problem. While we could use a totally unique socket
address for debugging it is fiddly to probe for gdb support. While gdb
socket debugging is not yet ubiquitous this a sub-optimal but workable
option.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Pavel Dovgalyuk <pavel.dovgalyuk@ispras.ru>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20201021163136.27324-7-alex.bennee@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
tests/acceptance/reverse_debugging.py