diff options
author | Greg Clayton <gclayton@apple.com> | 2011-12-01 23:28:38 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2011-12-01 23:28:38 +0000 |
commit | 61e7a58c0ced8df707c0ca0b85632268ace30d27 (patch) | |
tree | dd27b4584524382bc35eecd04121111ae2d30386 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp | |
parent | 576c0f8e542e0a69d2f450450ef4ba8124b01d28 (diff) | |
download | bcm5719-llvm-61e7a58c0ced8df707c0ca0b85632268ace30d27.tar.gz bcm5719-llvm-61e7a58c0ced8df707c0ca0b85632268ace30d27.zip |
Process IDs (lldb::pid_t) and thread IDs (lldb::tid_t) are now 64 bit. This
will allow us to represent a process/thread ID using a pointer for the OS
plug-ins where they might want to represent the process or thread ID using
the address of the process or thread structure.
llvm-svn: 145644
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp index 13b1abe796d..60234ac07bd 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp @@ -1019,7 +1019,7 @@ GDBRemoteCommunicationClient::SendAttach if (pid != LLDB_INVALID_PROCESS_ID) { char packet[64]; - const int packet_len = ::snprintf (packet, sizeof(packet), "vAttach;%x", pid); + const int packet_len = ::snprintf (packet, sizeof(packet), "vAttach;%llx", pid); assert (packet_len < sizeof(packet)); if (SendPacketAndWaitForResponse (packet, packet_len, response, false)) { @@ -1334,7 +1334,7 @@ GDBRemoteCommunicationClient::GetProcessInfo (lldb::pid_t pid, ProcessInstanceIn if (m_supports_qProcessInfoPID) { char packet[32]; - const int packet_len = ::snprintf (packet, sizeof (packet), "qProcessInfoPID:%i", pid); + const int packet_len = ::snprintf (packet, sizeof (packet), "qProcessInfoPID:%llu", pid); assert (packet_len < sizeof(packet)); StringExtractorGDBRemote response; if (SendPacketAndWaitForResponse (packet, packet_len, response, false)) @@ -1404,9 +1404,9 @@ GDBRemoteCommunicationClient::FindProcesses (const ProcessInstanceInfoMatch &mat } if (match_info.GetProcessInfo().ProcessIDIsValid()) - packet.Printf("pid:%u;",match_info.GetProcessInfo().GetProcessID()); + packet.Printf("pid:%llu;",match_info.GetProcessInfo().GetProcessID()); if (match_info.GetProcessInfo().ParentProcessIDIsValid()) - packet.Printf("parent_pid:%u;",match_info.GetProcessInfo().GetParentProcessID()); + packet.Printf("parent_pid:%llu;",match_info.GetProcessInfo().GetParentProcessID()); if (match_info.GetProcessInfo().UserIDIsValid()) packet.Printf("uid:%u;",match_info.GetProcessInfo().GetUserID()); if (match_info.GetProcessInfo().GroupIDIsValid()) |