This revision was automatically updated to reflect the committed changes. Closed by commit rL354029: [lldb] [MainLoop] Report errno for failed kevent() (authored by mgorny, committed by ). Herald added a project: LLVM. Herald added a subscriber: llvm-commits.
Changed prior to commit: https://reviews.llvm.org/D58229?vs=186816&id=186829#toc Repository: rL LLVM CHANGES SINCE LAST ACTION https://reviews.llvm.org/D58229/new/ https://reviews.llvm.org/D58229 Files: lldb/trunk/source/Host/common/MainLoop.cpp Index: lldb/trunk/source/Host/common/MainLoop.cpp =================================================================== --- lldb/trunk/source/Host/common/MainLoop.cpp +++ lldb/trunk/source/Host/common/MainLoop.cpp @@ -108,7 +108,7 @@ 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(); }
Index: lldb/trunk/source/Host/common/MainLoop.cpp =================================================================== --- lldb/trunk/source/Host/common/MainLoop.cpp +++ lldb/trunk/source/Host/common/MainLoop.cpp @@ -108,7 +108,7 @@ 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(); }
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits