[lldb] [llgs] Support owning and detaching extra processes

Add a NativeDelegate API to pass new processes (forks) to LLGS,
and support detaching them via the 'D' packet.  A 'D' packet without
a specific PID detaches all processes, otherwise it detaches either
the specified subprocess or the main process, depending on the passed
PID.

Differential Revision: https://reviews.llvm.org/D100191
This commit is contained in:
Michał Górny
2021-04-13 17:32:23 +02:00
parent 6c37984eba
commit bbae0c1f7b
7 changed files with 142 additions and 44 deletions

View File

@@ -378,9 +378,7 @@ StringExtractorGDBRemote::GetServerPacketType() const {
return eServerPacketType_C;
case 'D':
if (packet_size == 1)
return eServerPacketType_D;
break;
return eServerPacketType_D;
case 'g':
return eServerPacketType_g;