Go to file
Benjamin Kramer 5957a19630 [clangd] Fix not being able to attach a debugger on macOS
Clangd is often waiting for input on getline as it awaits requests. If the
getline is interrupted, it causes the system call (read) to fail and the EINTR
error to be set. This can be seen when attaching a debugger such as LLDB on
macOS. On macOS (and possibly other operating systems), this system call is not
restarted after interruption but on Linux it is restarted which is why
attaching a debugger does work correctly there.

The solution is to work around the non-restarting system call by checking the
errno for EINTR when the stream fails and try again. This should be safe on all
Unixish platforms.

See also http://bugs.llvm.org/show_bug.cgi?id=32149 for some background
discussion.

Patch by Marc-Andre Laperle!
Differential Revision: https://reviews.llvm.org/D30675

llvm-svn: 297779
2017-03-14 20:41:28 +00:00
clang [Hexagon] Recognize hexagonv62 as a valid target CPU 2017-03-14 20:29:23 +00:00
clang-tools-extra [clangd] Fix not being able to attach a debugger on macOS 2017-03-14 20:41:28 +00:00
compiler-rt [cfi] Disable bad-split test on win32. 2017-03-14 20:02:42 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc math: Implement sinh function 2017-02-25 02:46:53 +00:00
libcxx Fixed unintentional assignment-in-assert in new "extending memory management tools" algorithms. 2017-03-14 19:36:30 +00:00
libcxxabi Fully Reformat fallback_malloc.cpp 2017-03-04 03:23:15 +00:00
libunwind DarwinParser: include limits 2017-03-14 15:17:55 +00:00
lld [ELF] - Move members of LinkerScript to LinkerScriptBase. NFC. 2017-03-14 12:03:34 +00:00
lldb [CMake] Override debugserver to use the build tree on Darwin 2017-03-14 20:04:46 +00:00
llgo [llgo] Remove support for LLVM attributes 2016-12-06 19:22:04 +00:00
llvm [WebAssembly] Use LEB encoding for value types 2017-03-14 20:23:22 +00:00
openmp Create a git ignore file for openmp runtime. 2017-03-11 13:05:08 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly Preserve the isl-noexceptions.h C++ bindings when updating isl 2017-03-14 07:46:28 +00:00