From f402f78eb7c259501b0924a54e7e5d94c3b40949 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Sat, 13 Oct 2012 02:11:55 +0000 Subject: [PATCH] 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 ++-- lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp index ddb3181..c1560e4 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)) { diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h index adfec5b..2d6346f 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h @@ -294,7 +294,7 @@ public: GetStopReply (StringExtractorGDBRemote &response); bool - GetThreadStopInfo (uint32_t tid, + GetThreadStopInfo (lldb::tid_t tid, StringExtractorGDBRemote &response); bool -- 2.7.4