[Lldb-commits] [PATCH] D30981: Remove HostThreadLinux/Free/NetBSD
Kamil Rytarowski via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Mar 16 14:57:49 PDT 2017
krytarowski added inline comments.
================
Comment at: packages/Python/lldbsuite/test/tools/lldb-server/thread-name/main.cpp:6
+#if defined(__linux__) || defined(__NetBSD__)
+ ::pthread_setname_np(::pthread_self(), name);
+#elif defined(__FreeBSD__)
----------------
I overlooked it.
```
int
pthread_setname_np(pthread_t thread, const char *name, void *arg);
```
It should be:
```
::pthread_setname_np(::pthread_self(), "%s", name);
```
https://reviews.llvm.org/D30981
More information about the lldb-commits
mailing list