Fix Linux Host::GetCurrentThreadID() to return real tid (not pthread_t).
This fixes threadname logging (--thread-name)
Add "-t" to TestLogging.py script to enable threadsafe and disable threadname logging

llvm-svn: 187599
diff --git a/lldb/test/logging/TestLogging.py b/lldb/test/logging/TestLogging.py
index 12b3b84..368708f 100644
--- a/lldb/test/logging/TestLogging.py
+++ b/lldb/test/logging/TestLogging.py
@@ -34,7 +34,10 @@
         if (os.path.exists (log_file)):
             os.remove (log_file)
 
-        self.runCmd ("log enable -f '%s' lldb commands" % (log_file))
+        # By default, Debugger::EnableLog() will set log options to
+        # PREPEND_THREAD_NAME + OPTION_THREADSAFE. We don't want the
+        # threadnames here, so we enable just threadsafe (-t).
+        self.runCmd ("log enable -t -f '%s' lldb commands" % (log_file))
         
         self.runCmd ("command alias bp breakpoint")