<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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user