[Lldb-commits] [PATCH] D58229: [lldb] [MainLoop] Report errno for failed kevent()

Michał Górny via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Feb 14 05:52:08 PST 2019


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();
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58229.186829.patch
Type: text/x-patch
Size: 472 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190214/3261c240/attachment.bin>


More information about the lldb-commits mailing list