diff options
author | Michał Górny <mgorny@moritz.systems> | 2021-04-13 17:32:23 +0200 |
---|---|---|
committer | Michał Górny <mgorny@moritz.systems> | 2021-04-24 11:08:33 +0200 |
commit | bbae0c1f7b4f60e9b8ac2be24e35bec79d9b7b01 (patch) | |
tree | 656b03a27caa7a0864a7329683fd1b567e0c0f44 /lldb/source/Utility/StringExtractorGDBRemote.cpp | |
parent | 6c37984ebaf4ee01df6a9b3f78e45f70dcd6fb33 (diff) | |
download | llvm-bbae0c1f7b4f60e9b8ac2be24e35bec79d9b7b01.zip llvm-bbae0c1f7b4f60e9b8ac2be24e35bec79d9b7b01.tar.gz llvm-bbae0c1f7b4f60e9b8ac2be24e35bec79d9b7b01.tar.bz2 |
[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
Diffstat (limited to 'lldb/source/Utility/StringExtractorGDBRemote.cpp')
-rw-r--r-- | lldb/source/Utility/StringExtractorGDBRemote.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lldb/source/Utility/StringExtractorGDBRemote.cpp b/lldb/source/Utility/StringExtractorGDBRemote.cpp index 6815ddf..dd8064f 100644 --- a/lldb/source/Utility/StringExtractorGDBRemote.cpp +++ b/lldb/source/Utility/StringExtractorGDBRemote.cpp @@ -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; |