Skip to content

Commit 750228a

Browse files
committedMar 21, 2017
Add NetBSD case in Entry::Type::ThreadID
Summary: 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. Sponsored by <The NetBSD Foundation> Reviewers: labath, kettenis, joerg, emaste Reviewed By: labath, emaste Subscribers: #lldb Tags: #lldb Differential Revision: https://reviews.llvm.org/D31132 llvm-svn: 298405
1 parent 190f17c commit 750228a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎lldb/source/Core/FormatEntity.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1187,7 +1187,8 @@ bool FormatEntity::Format(const Entry &entry, Stream &s,
11871187
? arch.GetTriple().getOS()
11881188
: llvm::Triple::UnknownOS;
11891189
if ((ostype == llvm::Triple::FreeBSD) ||
1190-
(ostype == llvm::Triple::Linux)) {
1190+
(ostype == llvm::Triple::Linux) ||
1191+
(ostype == llvm::Triple::NetBSD)) {
11911192
format = "%" PRIu64;
11921193
}
11931194
} else {

0 commit comments

Comments
 (0)
Please sign in to comment.