llvm-project/lldb/source/Host/common
Pavel Labath 927ec4b5ac Consolidate file handle usage in Editline.cpp
Summary:
To implement wide character reading, editline was mixing FILE*-based access with
a Connection-based one (plus it did some selects on the raw FD), which is very
fragile. Here, I replace it with one which uses only a Connection-based reads.
The code is somewhat longer as I had to read characters one by one to detect the
end of the multibyte sequence.

I've verified that international characters still work in lldb command line on
OSX.

Reviewers: clayborg, zturner

Subscribers: lldb-commits

Differential Revision: https://reviews.llvm.org/D28356

llvm-svn: 291220
2017-01-06 09:27:38 +00:00
..
Editline.cpp Consolidate file handle usage in Editline.cpp 2017-01-06 09:27:38 +00:00
File.cpp Fix build for mingw. 2016-12-15 15:00:41 +00:00
FileCache.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
FileSpec.cpp Add methods to enable using formatv syntax in LLDB. 2016-12-16 04:27:00 +00:00
FileSystem.cpp Remove TimeValue usage from FileSpec.h 2016-11-01 16:11:14 +00:00
GetOptInc.cpp [lldb] Fix typos in file headers 2016-11-26 05:23:44 +00:00
Host.cpp Adopt PrettyStackTrace in LLDB 2016-12-14 21:31:31 +00:00
HostInfoBase.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
HostNativeThreadBase.cpp Fix Clang-tidy readability-redundant-string-cstr warnings 2016-11-02 20:34:10 +00:00
HostProcess.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
HostThread.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
IOObject.cpp Creates a socket host object. 2014-08-06 18:16:26 +00:00
LockFileBase.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
MonitoringProcessLauncher.cpp [lldb] Fix typos in file headers 2016-11-26 05:23:44 +00:00
NativeBreakpoint.cpp Prevent at compile time converting from Error::success() to Expected<T> 2016-11-11 04:29:25 +00:00
NativeBreakpointList.cpp Prevent at compile time converting from Error::success() to Expected<T> 2016-11-11 04:29:25 +00:00
NativeProcessProtocol.cpp Prevent at compile time converting from Error::success() to Expected<T> 2016-11-11 04:29:25 +00:00
NativeRegisterContext.cpp Make GetRegisterByName() take a StringRef. 2016-11-17 21:54:37 +00:00
NativeRegisterContextRegisterInfo.cpp [lldb] Fix typos in file headers 2016-11-26 05:23:44 +00:00
NativeThreadProtocol.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
NativeWatchpointList.cpp Prevent at compile time converting from Error::success() to Expected<T> 2016-11-11 04:29:25 +00:00
OptionParser.cpp Make OptionParser::Parse() take StringRef. 2016-11-13 04:24:38 +00:00
PipeBase.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ProcessRunLock.cpp [lldb] Fix typos in file headers 2016-11-26 05:23:44 +00:00
Socket.cpp Remove superfluous android include 2016-12-05 14:57:23 +00:00
SocketAddress.cpp Make lldb -Werror clean on Windows. 2016-10-05 17:07:34 +00:00
SoftwareBreakpoint.cpp Prevent at compile time converting from Error::success() to Expected<T> 2016-11-11 04:29:25 +00:00
StringConvert.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
Symbols.cpp Fix Clang-tidy readability-redundant-string-cstr warnings 2016-11-02 20:34:10 +00:00
TCPSocket.cpp [lldb] Fix typos in file headers 2016-11-26 05:23:44 +00:00
Terminal.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ThisThread.cpp Fix Clang-tidy readability-redundant-string-cstr warnings 2016-11-02 20:34:10 +00:00
ThreadLauncher.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
UDPSocket.cpp [lldb] Fix typos in file headers 2016-11-26 05:23:44 +00:00
XML.cpp Fix some use-after-frees that my last CL introduced. 2016-11-13 03:36:01 +00:00