[lldb/test] Make it possible to run the mock gdb server on a single thread
authorPavel Labath <pavel@labath.sk>
Thu, 18 Nov 2021 12:52:44 +0000 (13:52 +0100)
committerPavel Labath <pavel@labath.sk>
Mon, 22 Nov 2021 14:14:50 +0000 (15:14 +0100)
commit7c8ae65f2c3d5c1a6aba2f7ee7588f9f76f94f84
treef0c6046fca8c8e27677190f91a7a54d8fa063bde
parent247a1a55eb6a58199006565d594c6f6c6b58b736
[lldb/test] Make it possible to run the mock gdb server on a single thread

This is a preparatory commit to enable mocking of qemu startup. That
will involve running the mock server in a separate process, so there's
no need for multithreading.

Initialization is moved from the start function into the constructor
(which can then take an actual socket instead of a class), and the run
method is made public.

Depends on D114156.

Differential Revision: https://reviews.llvm.org/D114157
lldb/packages/Python/lldbsuite/test/gdbclientutils.py
lldb/packages/Python/lldbsuite/test/lldbgdbclient.py