diff options
author | Greg Clayton <gclayton@apple.com> | 2012-10-12 23:32:11 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-10-12 23:32:11 +0000 |
commit | ea561dcffb7f49b339af2ed90efcfb87f56b9f74 (patch) | |
tree | 9ade7b315812eb32c361d4d45c8fb21bc9a5da4f /lldb/source/API/SBProcess.cpp | |
parent | aac08d2c3de03238a95752e6358c952adff8f950 (diff) | |
download | bcm5719-llvm-ea561dcffb7f49b339af2ed90efcfb87f56b9f74.tar.gz bcm5719-llvm-ea561dcffb7f49b339af2ed90efcfb87f56b9f74.zip |
<rdar://problem/12490558>
SBProcess::SetSelectedThreadByID() had a "uint32_t tid" parameter which would truncate 64 bit thread IDs (lldb::tid_t is 64 bit).
llvm-svn: 165852
Diffstat (limited to 'lldb/source/API/SBProcess.cpp')
-rw-r--r-- | lldb/source/API/SBProcess.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lldb/source/API/SBProcess.cpp b/lldb/source/API/SBProcess.cpp index ea2638c4d84..e1078748217 100644 --- a/lldb/source/API/SBProcess.cpp +++ b/lldb/source/API/SBProcess.cpp @@ -398,6 +398,12 @@ SBProcess::SetSelectedThread (const SBThread &thread) bool SBProcess::SetSelectedThreadByID (uint32_t tid) { + return SetSelectedThreadByID ((lldb::tid_t)tid); +} + +bool +SBProcess::SetSelectedThreadByID (lldb::tid_t tid) +{ LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API)); bool ret_val = false; @@ -409,7 +415,7 @@ SBProcess::SetSelectedThreadByID (uint32_t tid) } if (log) - log->Printf ("SBProcess(%p)::SetSelectedThreadByID (tid=0x%4.4x) => %s", + log->Printf ("SBProcess(%p)::SetSelectedThreadByID (tid=0x%4.4llx) => %s", process_sp.get(), tid, (ret_val ? "true" : "false")); return ret_val; |