[lldb] [llgs] Include process ID in stop responses
authorMichał Górny <mgorny@moritz.systems>
Mon, 6 Jun 2022 16:17:59 +0000 (18:17 +0200)
committerMichał Górny <mgorny@moritz.systems>
Mon, 20 Jun 2022 11:37:23 +0000 (13:37 +0200)
commitac570fbb8521a31a1931cc070e1b259fcac6a30f
tree835909ec78773beedffed55d175a0811c976f532
parente4d6ed58a86edc339ae124b74668b600f2a0f6d5
[lldb] [llgs] Include process ID in stop responses

Include the process identifier in the `T` stop responses when
multiprocess extension is enabled (i.e. prepend it to the thread
identifier).  Use the exposed identifier to simplify the fork-and-follow
tests.

The LLDB client accounts for the possible PID since the multiprocess
extension support was added in b601c6719226fb83c43dae62a581e5ee08bfb169.

Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.llvm.org/D127192
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
lldb/test/API/tools/lldb-server/TestGdbRemoteFork.py