[lldb] [server] Support for multiprocess extension
authorMichał Górny <mgorny@moritz.systems>
Tue, 30 Mar 2021 11:25:06 +0000 (13:25 +0200)
committerMichał Górny <mgorny@moritz.systems>
Tue, 30 Mar 2021 13:09:27 +0000 (15:09 +0200)
commit6c1a8039de4646f6efbb3ba404d5bee5d631be67
tree8e36f9ed4cd62d6774bc167b4d1f0ae97575f32b
parentaf7e1f07ac03074647897498358aaec165c1aaea
[lldb] [server] Support for multiprocess extension

Add a minimal support for the multiprocess extension in lldb-server.
The server indicates support for it via qSupported, and accepts
thread-ids containing a PID.  However, it still does not support
debugging more than one inferior, so any other PID value results
in an error.

Differential Revision: https://reviews.llvm.org/D98482
lldb/include/lldb/Utility/StringExtractorGDBRemote.h
lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h
lldb/source/Utility/StringExtractorGDBRemote.cpp
lldb/test/API/tools/lldb-server/TestGdbRemote_vContThreads.py
lldb/test/API/tools/lldb-server/TestLldbGdbServer.py
lldb/unittests/Utility/CMakeLists.txt
lldb/unittests/Utility/StringExtractorGDBRemoteTest.cpp [new file with mode: 0644]