diff options
author | Michał Górny <mgorny@moritz.systems> | 2022-06-22 08:32:05 +0200 |
---|---|---|
committer | Michał Górny <mgorny@moritz.systems> | 2022-06-24 17:20:24 +0200 |
commit | 4b485fc0ea4acf065c7992a5c9a1223f5565544e (patch) | |
tree | 8b297bdc5d752cc46ce0b3a916072071bfb9e765 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h | |
parent | e827e5186fb6991bc749eaaddf13f8a53ebb63c2 (diff) | |
download | llvm-4b485fc0ea4acf065c7992a5c9a1223f5565544e.zip llvm-4b485fc0ea4acf065c7992a5c9a1223f5565544e.tar.gz llvm-4b485fc0ea4acf065c7992a5c9a1223f5565544e.tar.bz2 |
[lldb] [llgs] Introduce an AppendThreadIDToResponse() helper
Introduce a helper function to append GDB Remote Serial Protocol "thread
IDs", with optional PID in multiprocess mode.
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.llvm.org/D128324
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h index abb7f10..5187a95 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h @@ -273,6 +273,9 @@ protected: // in non-stop mode, no response otherwise. PacketResult SendContinueSuccessResponse(); + void AppendThreadIDToResponse(Stream &response, lldb::pid_t pid, + lldb::tid_t tid); + private: llvm::Expected<std::unique_ptr<llvm::MemoryBuffer>> BuildTargetXml(); |