diff options
Diffstat (limited to 'lldb/tools/debugserver/source/MacOSX')
-rw-r--r-- | lldb/tools/debugserver/source/MacOSX/Genealogy.cpp | 2 | ||||
-rw-r--r-- | lldb/tools/debugserver/source/MacOSX/MachTask.mm | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/lldb/tools/debugserver/source/MacOSX/Genealogy.cpp b/lldb/tools/debugserver/source/MacOSX/Genealogy.cpp index 1544dc26b60..e6ada966b81 100644 --- a/lldb/tools/debugserver/source/MacOSX/Genealogy.cpp +++ b/lldb/tools/debugserver/source/MacOSX/Genealogy.cpp @@ -236,12 +236,10 @@ Genealogy::GetActivities(pid_t pid, const MachThreadList &thread_list, task_t ta nub_thread_t thread_id = iter->first; uint64_t activity_id = iter->second; ActivityList::const_iterator activity_search; - bool found_activity_for_this_thread = false; for (activity_search = activities.begin(); activity_search != activities.end(); ++activity_search) { if (activity_search->activity_id == activity_id) { - found_activity_for_this_thread = true; ThreadActivitySP thread_activity_sp (new ThreadActivity()); thread_activity_sp->current_activity = *activity_search; diff --git a/lldb/tools/debugserver/source/MacOSX/MachTask.mm b/lldb/tools/debugserver/source/MacOSX/MachTask.mm index c14b377f118..2cb456cff7c 100644 --- a/lldb/tools/debugserver/source/MacOSX/MachTask.mm +++ b/lldb/tools/debugserver/source/MacOSX/MachTask.mm @@ -309,9 +309,9 @@ static void get_threads_profile_data(DNBProfileDataScanType scanType, task_t tas threads_used_usec.push_back(used_usec); } - kr = mach_port_deallocate(mach_task_self(), threads[i]); + mach_port_deallocate(mach_task_self(), threads[i]); } - kr = mach_vm_deallocate(mach_task_self(), (mach_vm_address_t)(uintptr_t)threads, tcnt * sizeof(*threads)); + mach_vm_deallocate(mach_task_self(), (mach_vm_address_t)(uintptr_t)threads, tcnt * sizeof(*threads)); } #define RAW_HEXBASE std::setfill('0') << std::hex << std::right |