[Lldb-commits] [PATCH] D31132: Add NetBSD case in Entry::Type::ThreadID
Kamil Rytarowski via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Mar 20 08:05:17 PDT 2017
krytarowski created this revision.
krytarowski added a project: LLDB.
NetBSD native threads are printed as 64-bit unsigned integers.
The underlying system type of a thread identity is lwpid_t of type int32_t. For consistency with Linux and FreeBSD share the 64-bit unsigned integer type.
Repository:
rL LLVM
https://reviews.llvm.org/D31132
Files:
source/Core/FormatEntity.cpp
Index: source/Core/FormatEntity.cpp
===================================================================
--- source/Core/FormatEntity.cpp
+++ source/Core/FormatEntity.cpp
@@ -1187,7 +1187,8 @@
? arch.GetTriple().getOS()
: llvm::Triple::UnknownOS;
if ((ostype == llvm::Triple::FreeBSD) ||
- (ostype == llvm::Triple::Linux)) {
+ (ostype == llvm::Triple::Linux) ||
+ (ostype == llvm::Triple::NetBSD)) {
format = "%" PRIu64;
}
} else {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31132.92326.patch
Type: text/x-patch
Size: 622 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20170320/30c906e4/attachment-0001.bin>
More information about the lldb-commits
mailing list