[PATCH] D30675: [clangd] Fix not being able to attach a debugger on macOS

Marc-Andre Laperle via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 9 18:04:37 PST 2017


malaperle-ericsson updated this revision to Diff 91246.
malaperle-ericsson added a comment.

Remove ifdexf


https://reviews.llvm.org/D30675

Files:
  clangd/ClangDMain.cpp


Index: clangd/ClangDMain.cpp
===================================================================
--- clangd/ClangDMain.cpp
+++ clangd/ClangDMain.cpp
@@ -67,6 +67,10 @@
     // by \r\n.
     std::string Line;
     std::getline(std::cin, Line);
+    if (!std::cin.good() && errno == EINTR) {
+      std::cin.clear();
+      continue;
+    }
 
     // Skip empty lines.
     llvm::StringRef LineRef(Line);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30675.91246.patch
Type: text/x-patch
Size: 403 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170310/d50e8432/attachment.bin>


More information about the cfe-commits mailing list