<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
This commit is contained in:
Greg Clayton
2012-10-12 23:32:11 +00:00
parent aac08d2c3d
commit ea561dcffb
3 changed files with 12 additions and 3 deletions

View File

@@ -397,6 +397,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));
@@ -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;