diff options
author | Zachary Turner <zturner@google.com> | 2014-11-17 21:31:18 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2014-11-17 21:31:18 +0000 |
commit | d553d00c79eb250a10cd3ad8b45103ff0be0c9ee (patch) | |
tree | ef7762253257804f7d87712c3951cb902df93662 /lldb/source/Host/common/Editline.cpp | |
parent | 05d77c8b717877df69295fd70abf77ca021330ac (diff) | |
download | bcm5719-llvm-d553d00c79eb250a10cd3ad8b45103ff0be0c9ee.tar.gz bcm5719-llvm-d553d00c79eb250a10cd3ad8b45103ff0be0c9ee.zip |
Disable Editline on Windows.
Editline does not work correctly on Windows. This goes back at
least to r208369, and as a result r210105 was submitted to disable
libedit at runtime on Windows.
More recently, r222163 was submitted which re-writes editline
entirely, but makes the situation even worse on Windows, to the
point that it doesn't even compile. While it would be easy to
fix the compilation failure, this patch simply stops compiling
Editline entirely on Windows, as the simple compilation fix would
still result in a broken use of select on Windows, and as such a
broken implementation of Editline.
Since Editline was already disabled to begin with on Windows, we
don't attempt to fix the compilation failure or the underlying
issues, and instead just disable it "even more".
llvm-svn: 222177
Diffstat (limited to 'lldb/source/Host/common/Editline.cpp')
-rw-r--r-- | lldb/source/Host/common/Editline.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/Host/common/Editline.cpp b/lldb/source/Host/common/Editline.cpp index 215f06fe7c4..b82fbea90c6 100644 --- a/lldb/source/Host/common/Editline.cpp +++ b/lldb/source/Host/common/Editline.cpp @@ -136,6 +136,10 @@ GetIndentation (const EditLineStringType & line) bool IsInputPending (FILE * file) { + // FIXME: This will be broken on Windows if we ever re-enable Editline. You can't use select + // on something that isn't a socket. This will have to be re-written to not use a FILE*, but + // instead use some kind of yet-to-be-created abstraction that select-like functionality on + // non-socket objects. const int fd = fileno (file); fd_set fds; FD_ZERO (&fds); |