labath added a subscriber: labath.

================
Comment at: source/Host/linux/HostThreadLinux.cpp:44
@@ -38,2 +43,3 @@
 {
+#if defined(__GLIBC__) && defined(_GNU_SOURCE)
     // Read /proc/$TID/comm file.
----------------
While the pthread functions is a glibc extension, the presence of the comm file 
under /proc definitely does not depend on the C library used. This does not 
need to be ifdef-ed out.

If you're feeling adventurous, you could reimplement SetName to write to this 
file and have this functionality regardless of the shared library. If not then 
ifdef-out the first part only.


http://reviews.llvm.org/D13019



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to