diff options
-rw-r--r-- | lldb/source/Host/freebsd/HostThreadFreeBSD.cpp | 3 | ||||
-rw-r--r-- | lldb/source/Host/freebsd/ThisThread.cpp | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/lldb/source/Host/freebsd/HostThreadFreeBSD.cpp b/lldb/source/Host/freebsd/HostThreadFreeBSD.cpp index ce2d44e24ad..7df7698447b 100644 --- a/lldb/source/Host/freebsd/HostThreadFreeBSD.cpp +++ b/lldb/source/Host/freebsd/HostThreadFreeBSD.cpp @@ -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(lldb::thread_t thread) void HostThreadFreeBSD::SetName(lldb::thread_t thread, llvm::StringRef name) { - ::pthread_set_name_np(thread, name); + ::pthread_set_name_np(thread, name.data()); } void diff --git a/lldb/source/Host/freebsd/ThisThread.cpp b/lldb/source/Host/freebsd/ThisThread.cpp index 6a506187aaf..1c68c8ba16d 100644 --- a/lldb/source/Host/freebsd/ThisThread.cpp +++ b/lldb/source/Host/freebsd/ThisThread.cpp @@ -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); } |