Implement thread name getting sysctl() on NetBSD. Also fix the incorrect type in pthread_setname_np() in the relevant test.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| lldb/source/Plugins/Process/NetBSD/NativeThreadNetBSD.cpp | ||
|---|---|---|
| 23 | Please include before this header <sys/types.h>. If it works, that header is likely pulled from some indirect location. | |
| lldb/packages/Python/lldbsuite/test/tools/lldb-server/thread-name/main.cpp | ||
|---|---|---|
| 13 | I think const_cast<char *>(name) ought to be enough. | |
| lldb/source/Plugins/Process/NetBSD/NativeThreadNetBSD.cpp | ||
| 123 | Thread-safety technically doesn't matter in this part of the code, but I think it would be good practice to use llvm::StrError (llvm/Support/Errno.h) anyway. | |
| lldb/source/Plugins/Process/NetBSD/NativeThreadNetBSD.cpp | ||
|---|---|---|
| 123 | strerror is thread safe on NetBSD, but probably better to pick llvm interfaces. | |
I think const_cast<char *>(name) ought to be enough.