[lldb] [llgs] Support resuming one process with PID!=current via vCont
authorMichał Górny <mgorny@moritz.systems>
Wed, 15 Jun 2022 14:48:48 +0000 (16:48 +0200)
committerMichał Górny <mgorny@moritz.systems>
Fri, 24 Jun 2022 15:20:23 +0000 (17:20 +0200)
commita3422793e0643fa849ff178d87fc706c81b734b7
tree856a9a8d85efc51ab56b94922968694474b925a2
parent3266b117147db73d1c42668c1033b59a36d8a2f3
[lldb] [llgs] Support resuming one process with PID!=current via vCont

Extend vCont function to support resuming a process with an arbitrary
PID, that could be different than the one selected via Hc (or no process
at all may be selected).  Resuming more than one process simultaneously
is not supported yet.

Remove the ReadTid() method that was only used by Handle_vCont(),
and furthermore it was wrongly using m_current_process rather than
m_continue_process.

Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.llvm.org/D127862
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/TestGdbRemoteFork.py