[Lldb-commits] [PATCH] D90862: [lldb] [test] Fix TestGdbRemoteThreadName code on FreeBSD
    Michał Górny via Phabricator via lldb-commits 
    lldb-commits at lists.llvm.org
       
    Thu Nov  5 11:45:56 PST 2020
    
    
  
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb643deb03fb9: [lldb] [test] Fix TestGdbRemoteThreadName code on FreeBSD (authored by mgorny).
Herald added a project: LLDB.
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D90862/new/
https://reviews.llvm.org/D90862
Files:
  lldb/test/API/tools/lldb-server/thread-name/main.cpp
Index: lldb/test/API/tools/lldb-server/thread-name/main.cpp
===================================================================
--- lldb/test/API/tools/lldb-server/thread-name/main.cpp
+++ lldb/test/API/tools/lldb-server/thread-name/main.cpp
@@ -4,9 +4,7 @@
 void set_thread_name(const char *name) {
 #if defined(__APPLE__)
   ::pthread_setname_np(name);
-#elif defined(__FreeBSD__)
-  ::pthread_set_name_np(::pthread_self(), name);
-#elif defined(__linux__)
+#elif defined(__FreeBSD__) || defined(__linux__)
   ::pthread_setname_np(::pthread_self(), name);
 #elif defined(__NetBSD__)
   ::pthread_setname_np(::pthread_self(), "%s", const_cast<char *>(name));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90862.303211.patch
Type: text/x-patch
Size: 660 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20201105/3c0d841f/attachment.bin>
    
    
More information about the lldb-commits
mailing list