From f402f78eb7c259501b0924a54e7e5d94c3b40949 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Sat, 13 Oct 2012 02:11:55 +0000 Subject: Make sure we always use lldb::tid_t for thread IDs so we don't truncate a 64 bit thread ID. llvm-svn: 165862 --- .../Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp') diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp index ddb31819b8b..c1560e44784 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp @@ -1942,12 +1942,12 @@ GDBRemoteCommunicationClient::GetStopReply (StringExtractorGDBRemote &response) } bool -GDBRemoteCommunicationClient::GetThreadStopInfo (uint32_t tid, StringExtractorGDBRemote &response) +GDBRemoteCommunicationClient::GetThreadStopInfo (lldb::tid_t tid, StringExtractorGDBRemote &response) { if (m_supports_qThreadStopInfo) { char packet[256]; - int packet_len = ::snprintf(packet, sizeof(packet), "qThreadStopInfo%x", tid); + int packet_len = ::snprintf(packet, sizeof(packet), "qThreadStopInfo%llx", tid); assert (packet_len < sizeof(packet)); if (SendPacketAndWaitForResponse(packet, packet_len, response, false)) { -- cgit v1.2.3