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 | |
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
-rw-r--r-- | lldb/include/lldb/API/SBProcess.h | 5 | ||||
-rw-r--r-- | lldb/scripts/Python/interface/SBProcess.i | 2 | ||||
-rw-r--r-- | lldb/source/API/SBProcess.cpp | 8 |
3 files changed, 12 insertions, 3 deletions
diff --git a/lldb/include/lldb/API/SBProcess.h b/lldb/include/lldb/API/SBProcess.h index 76c34e729ac..c6960917a56 100644 --- a/lldb/include/lldb/API/SBProcess.h +++ b/lldb/include/lldb/API/SBProcess.h @@ -116,7 +116,10 @@ public: SetSelectedThread (const lldb::SBThread &thread); bool - SetSelectedThreadByID (uint32_t tid); + SetSelectedThreadByID (uint32_t tid); // DEPRECATED + + bool + SetSelectedThreadByID (lldb::tid_t tid); bool SetSelectedThreadByIndexID (uint32_t index_id); diff --git a/lldb/scripts/Python/interface/SBProcess.i b/lldb/scripts/Python/interface/SBProcess.i index 2a7bb77dd8c..c62caa39d08 100644 --- a/lldb/scripts/Python/interface/SBProcess.i +++ b/lldb/scripts/Python/interface/SBProcess.i @@ -158,7 +158,7 @@ public: SetSelectedThread (const lldb::SBThread &thread); bool - SetSelectedThreadByID (uint32_t tid); + SetSelectedThreadByID (lldb::tid_t tid); bool SetSelectedThreadByIndexID (uint32_t index_id); 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; |