[Lldb-commits] [PATCH] D13019: Do not use pthread_{get, set}name_np() if we don't have GLIBC.
Vasileios Kalintiris via lldb-commits
lldb-commits at lists.llvm.org
Tue Sep 22 07:54:13 PDT 2015
This revision was automatically updated to reflect the committed changes.
Closed by commit rL248280: Do not use pthread_setname_np() if we don't have GLIBC or Android. (authored by vkalintiris).
Changed prior to commit:
http://reviews.llvm.org/D13019?vs=35357&id=35374#toc
Repository:
rL LLVM
http://reviews.llvm.org/D13019
Files:
lldb/trunk/source/Host/linux/HostThreadLinux.cpp
Index: lldb/trunk/source/Host/linux/HostThreadLinux.cpp
===================================================================
--- lldb/trunk/source/Host/linux/HostThreadLinux.cpp
+++ lldb/trunk/source/Host/linux/HostThreadLinux.cpp
@@ -30,7 +30,12 @@
void
HostThreadLinux::SetName(lldb::thread_t thread, llvm::StringRef name)
{
+#if (defined(__GLIBC__) && defined(_GNU_SOURCE)) || defined(__ANDROID__)
::pthread_setname_np(thread, name.data());
+#else
+ (void) thread;
+ (void) name;
+#endif
}
void
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13019.35374.patch
Type: text/x-patch
Size: 515 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150922/1d0093a2/attachment.bin>
More information about the lldb-commits
mailing list