From e01b70bf307bf64abfa100e3a93dcce83fc0fb44 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Fri, 11 Jun 2010 04:29:29 +0000 Subject: [PATCH] Use Host::GetCurrentThreadID() instead of mach_thread_self(). llvm-svn: 105811 --- lldb/source/Core/Log.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lldb/source/Core/Log.cpp b/lldb/source/Core/Log.cpp index fe2071683cac..217f6c40297e 100644 --- a/lldb/source/Core/Log.cpp +++ b/lldb/source/Core/Log.cpp @@ -8,7 +8,6 @@ //===----------------------------------------------------------------------===// // C Includes -#include #include #include #include @@ -206,12 +205,12 @@ Log::PrintfWithFlagsVarArg (uint32_t flags, const char *format, va_list args) // Add the process and thread if requested if (log_options & LLDB_LOG_OPTION_PREPEND_PROC_AND_THREAD) - header.Printf ("[%4.4x/%4.4x]: ", getpid(), mach_thread_self()); + header.Printf ("[%4.4x/%4.4x]: ", getpid(), Host::GetCurrentThreadID()); // Add the process and thread if requested if (log_options & LLDB_LOG_OPTION_PREPEND_THREAD_NAME) { - const char *thread_name_str = Host::GetThreadName (getpid(), mach_thread_self()); + const char *thread_name_str = Host::GetThreadName (getpid(), Host::GetCurrentThreadID()); if (thread_name_str) header.Printf ("%s ", thread_name_str); }