summaryrefslogtreecommitdiffstats
path: root/lldb/tools/debugserver/source/MacOSX/MachTask.mm
diff options
context:
space:
mode:
authorBruce Mitchener <bruce.mitchener@gmail.com>2015-07-22 17:31:44 +0000
committerBruce Mitchener <bruce.mitchener@gmail.com>2015-07-22 17:31:44 +0000
commita026de0585969aba770e5d72b79e9733905f678b (patch)
treef93b25b1e1d5332667de58042c3e0234a7449fa2 /lldb/tools/debugserver/source/MacOSX/MachTask.mm
parent9b46e9c5de19f91c4b6b8b1d3405875c48190aac (diff)
downloadbcm5719-llvm-a026de0585969aba770e5d72b79e9733905f678b.tar.gz
bcm5719-llvm-a026de0585969aba770e5d72b79e9733905f678b.zip
Fix warnings.
Reviewers: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D11404 llvm-svn: 242913
Diffstat (limited to 'lldb/tools/debugserver/source/MacOSX/MachTask.mm')
-rw-r--r--lldb/tools/debugserver/source/MacOSX/MachTask.mm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/tools/debugserver/source/MacOSX/MachTask.mm b/lldb/tools/debugserver/source/MacOSX/MachTask.mm
index cdef0256f51..9c725663d55 100644
--- a/lldb/tools/debugserver/source/MacOSX/MachTask.mm
+++ b/lldb/tools/debugserver/source/MacOSX/MachTask.mm
@@ -266,7 +266,7 @@ static void get_threads_profile_data(DNBProfileDataScanType scanType, task_t tas
if (kr != KERN_SUCCESS)
return;
- for (int i = 0; i < tcnt; i++)
+ for (mach_msg_type_number_t i = 0; i < tcnt; i++)
{
thread_identifier_info_data_t identifier_info;
mach_msg_type_number_t count = THREAD_IDENTIFIER_INFO_COUNT;
@@ -431,7 +431,7 @@ MachTask::GetProfileData (DNBProfileDataScanType scanType)
// Make sure that thread name doesn't interfere with our delimiter.
profile_data_stream << RAW_HEXBASE << std::setw(2);
const uint8_t *ubuf8 = (const uint8_t *)(thread_name);
- for (int j=0; j<len; j++)
+ for (size_t j=0; j<len; j++)
{
profile_data_stream << (uint32_t)(ubuf8[j]);
}
@@ -720,7 +720,7 @@ MachTask::ShutDownExcecptionThread()
// NULL our our exception port and let our exception thread exit
mach_port_t exception_port = m_exception_port;
- m_exception_port = NULL;
+ m_exception_port = 0;
err.SetError(::pthread_cancel(m_exception_thread), DNBError::POSIX);
if (DNBLogCheckLogBit(LOG_TASK) || err.Fail())
OpenPOWER on IntegriCloud