teak-llvm/lldb/packages/Python/lldbsuite/test/tools/lldb-server
Zachary Turner e5a7990dbe Always write the session file in UTF-8.
This patch attempts to solve the Python 2 / Python 3 incompatibilities by
introducing a new `encoded_file` abstraction that we use instead of
`io.open()`.  The problem with the builtin implementation of `io.open` is
that `read` and `write` accept and return `unicode` objects, which are not
always convenient to work with in Python 2.  We solve this by making
`encoded_file.open()` return the same object returned by `io.open()` but
with hooked `read()` and `write()` methods.  These hooked methods will
accept binary or text data, and conditionally convert what it gets to a
`unicode` object using the correct encoding.  When calling `read()` it
also does any conversion necessary to convert the output back into the
native `string` type of the running python version.

Differential Revision: http://reviews.llvm.org/D16736

llvm-svn: 259379
2016-02-01 18:12:59 +00:00
..
commandline Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
inferior-crash Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
platform-process-connect XFAIL some tests failing for Windows -> Android 2015-12-17 10:58:35 +00:00
test Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
gdbremote_testcase.py Modify "platform connect" to connect to processes as well 2015-12-08 14:08:19 +00:00
lldbgdbserverutils.py Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
main.cpp Centralize the handling of attach permissions on linux in tests 2016-01-11 10:24:50 +00:00
Makefile
socket_packet_pump.py Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
TestGdbRemote_qThreadStopInfo.py Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
TestGdbRemote_vCont.py Mark arm/aarch64 specific xfails with expectedFailureLinux decorator 2016-01-20 15:01:54 +00:00
TestGdbRemoteAttach.py Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
TestGdbRemoteAuxvSupport.py Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
TestGdbRemoteExpeditedRegisters.py Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
TestGdbRemoteKill.py Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
TestGDBRemoteMemoryRead.py Always write the session file in UTF-8. 2016-02-01 18:12:59 +00:00
TestGdbRemoteProcessInfo.py Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
TestGdbRemoteRegisterState.py Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
TestGdbRemoteSingleStep.py Mark arm/aarch64 specific xfails with expectedFailureLinux decorator 2016-01-20 15:01:54 +00:00
TestGdbRemoteThreadsInStopReply.py Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
TestLldbGdbServer.py Marked test_qRegisterInfo_returns_{one_valid_result,all_valid_results} XFAIL on Darwin. 2015-11-11 06:32:44 +00:00