diff options
author | Michał Górny <mgorny@moritz.systems> | 2022-06-06 15:21:12 +0200 |
---|---|---|
committer | Michał Górny <mgorny@moritz.systems> | 2022-06-20 13:37:23 +0200 |
commit | e4d6ed58a86edc339ae124b74668b600f2a0f6d5 (patch) | |
tree | 2896cb9554758446d49fb60a9cbb38160a8192ac /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp | |
parent | 7cd1c01c8e855704ffa963778e51e8cd3030c6bf (diff) | |
download | llvm-e4d6ed58a86edc339ae124b74668b600f2a0f6d5.zip llvm-e4d6ed58a86edc339ae124b74668b600f2a0f6d5.tar.gz llvm-e4d6ed58a86edc339ae124b74668b600f2a0f6d5.tar.bz2 |
[lldb] [llgs] Include process id in W/X stop reasons
Include the process identifier in W/X stop reasons when multiprocess
extensions are enabled.
The LLDB client does not support process identifiers there at the moment
but it parses packets in such a way that their presence does not cause
any problems.
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.llvm.org/D127191
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp index 0a44929..2b491f50 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp @@ -474,6 +474,8 @@ GDBRemoteCommunicationServerLLGS::SendWResponse( StreamGDBRemote response; response.Format("{0:g}", *wait_status); + if (bool(m_extensions_supported & NativeProcessProtocol::Extension::multiprocess)) + response.Format(";process:{0:x-}", process->GetID()); return SendPacketNoLock(response.GetString()); } |