[Lldb-commits] [lldb] r217462 - Try to fix the FreeBSD build.

Zachary Turner zturner at google.com
Tue Sep 9 15:11:10 PDT 2014


Author: zturner
Date: Tue Sep  9 17:11:10 2014
New Revision: 217462

URL: http://llvm.org/viewvc/llvm-project?rev=217462&view=rev
Log:
Try to fix the FreeBSD build.

Modified:
    lldb/trunk/source/Host/freebsd/HostThreadFreeBSD.cpp
    lldb/trunk/source/Host/freebsd/ThisThread.cpp

Modified: lldb/trunk/source/Host/freebsd/HostThreadFreeBSD.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/freebsd/HostThreadFreeBSD.cpp?rev=217462&r1=217461&r2=217462&view=diff
==============================================================================
--- lldb/trunk/source/Host/freebsd/HostThreadFreeBSD.cpp (original)
+++ lldb/trunk/source/Host/freebsd/HostThreadFreeBSD.cpp Tue Sep  9 17:11:10 2014
@@ -11,6 +11,7 @@
 #include "lldb/Host/freebsd/HostThreadFreeBSD.h"
 
 // C includes
+#include <errno.h>
 #include <pthread.h>
 #include <pthread_np.h>
 #include <stdlib.h>
@@ -33,7 +34,7 @@ HostThreadFreeBSD::HostThreadFreeBSD(lld
 void
 HostThreadFreeBSD::SetName(lldb::thread_t thread, llvm::StringRef name)
 {
-    ::pthread_set_name_np(thread, name);
+    ::pthread_set_name_np(thread, name.data());
 }
 
 void

Modified: lldb/trunk/source/Host/freebsd/ThisThread.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/freebsd/ThisThread.cpp?rev=217462&r1=217461&r2=217462&view=diff
==============================================================================
--- lldb/trunk/source/Host/freebsd/ThisThread.cpp (original)
+++ lldb/trunk/source/Host/freebsd/ThisThread.cpp Tue Sep  9 17:11:10 2014
@@ -7,7 +7,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "lldb/Host/linux/HostThreadLinux.h"
+#include "lldb/Host/HostNativeThread.h"
 #include "lldb/Host/ThisThread.h"
 
 #include "llvm/ADT/SmallVector.h"
@@ -19,11 +19,11 @@ using namespace lldb_private;
 void
 ThisThread::SetName(llvm::StringRef name)
 {
-    HostThread::SetName(::pthread_self(), name);
+    HostNativeThread::SetName(::pthread_self(), name);
 }
 
 void
 ThisThread::GetName(llvm::SmallVectorImpl<char> &name)
 {
-    HostThread::GetName(::pthread_self(), name);
+    HostNativeThread::GetName(::pthread_self(), name);
 }





More information about the lldb-commits mailing list