[llvm-branch-commits] [lldb] r354254 - Merging r354029:
Hans Wennborg via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Feb 18 02:30:57 PST 2019
Author: hans
Date: Mon Feb 18 02:30:57 2019
New Revision: 354254
URL: http://llvm.org/viewvc/llvm-project?rev=354254&view=rev
Log:
Merging r354029:
------------------------------------------------------------------------
r354029 | mgorny | 2019-02-14 14:52:31 +0100 (Thu, 14 Feb 2019) | 7 lines
[lldb] [MainLoop] Report errno for failed kevent()
Modify the kevent() error reporting to use errno rather than returning
the return value. At least on FreeBSD and NetBSD, kevent() always
returns -1 in case of error, and the actual error is returned via errno.
Differential Revision: https://reviews.llvm.org/D58229
------------------------------------------------------------------------
Modified:
lldb/branches/release_80/ (props changed)
lldb/branches/release_80/source/Host/common/MainLoop.cpp
Propchange: lldb/branches/release_80/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Mon Feb 18 02:30:57 2019
@@ -1,3 +1,3 @@
/lldb/branches/apple/python-GIL:156467-162159
/lldb/branches/iohandler:198360-200250
-/lldb/trunk:351327,351504,352116,352374,352382,353642
+/lldb/trunk:351327,351504,352116,352374,352382,353642,354029
Modified: lldb/branches/release_80/source/Host/common/MainLoop.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/branches/release_80/source/Host/common/MainLoop.cpp?rev=354254&r1=354253&r2=354254&view=diff
==============================================================================
--- lldb/branches/release_80/source/Host/common/MainLoop.cpp (original)
+++ lldb/branches/release_80/source/Host/common/MainLoop.cpp Mon Feb 18 02:30:57 2019
@@ -109,7 +109,7 @@ Status MainLoop::RunImpl::Poll() {
out_events, llvm::array_lengthof(out_events), nullptr);
if (num_events < 0)
- return Status("kevent() failed with error %d\n", num_events);
+ return Status(errno, eErrorTypePOSIX);
return Status();
}
More information about the llvm-branch-commits
mailing list