[Lldb-commits] [lldb] r105811 - /lldb/trunk/source/Core/Log.cpp

Eli Friedman eli.friedman at gmail.com
Thu Jun 10 21:29:29 PDT 2010


Author: efriedma
Date: Thu Jun 10 23:29:29 2010
New Revision: 105811

URL: http://llvm.org/viewvc/llvm-project?rev=105811&view=rev
Log:
Use Host::GetCurrentThreadID() instead of mach_thread_self().


Modified:
    lldb/trunk/source/Core/Log.cpp

Modified: lldb/trunk/source/Core/Log.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Log.cpp?rev=105811&r1=105810&r2=105811&view=diff
==============================================================================
--- lldb/trunk/source/Core/Log.cpp (original)
+++ lldb/trunk/source/Core/Log.cpp Thu Jun 10 23:29:29 2010
@@ -8,7 +8,6 @@
 //===----------------------------------------------------------------------===//
 
 // C Includes
-#include <mach/mach.h>
 #include <pthread.h>
 #include <stdio.h>
 #include <stdarg.h>
@@ -206,12 +205,12 @@
 
         // 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);
         }





More information about the lldb-commits mailing list