diff options
author | Greg Clayton <gclayton@apple.com> | 2012-10-13 02:11:55 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-10-13 02:11:55 +0000 |
commit | f402f78eb7c259501b0924a54e7e5d94c3b40949 (patch) | |
tree | 74a61306245da9d98f099e60270bd9a4cda44b19 /lldb/source/Plugins/Process/gdb-remote | |
parent | 998255bfe841a4191d458a56aae0267f673b1a72 (diff) | |
download | bcm5719-llvm-f402f78eb7c259501b0924a54e7e5d94c3b40949.tar.gz bcm5719-llvm-f402f78eb7c259501b0924a54e7e5d94c3b40949.zip |
Make sure we always use lldb::tid_t for thread IDs so we don't truncate a 64 bit thread ID.
llvm-svn: 165862
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp | 4 | ||||
-rw-r--r-- | 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 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)) { diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h index adfec5b6b04..2d6346f6842 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 |