forked from OSchip/llvm-project
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
This commit is contained in:
parent
190f17cae7
commit
750228a6a7
|
@ -1187,7 +1187,8 @@ bool FormatEntity::Format(const Entry &entry, Stream &s,
|
|||
? 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 {
|
||||
|
|
Loading…
Reference in New Issue