hanchenye-llvm-project/lldb/scripts
Zachary Turner 4407396fb9 Fix some issues with bytes and strings in Python 3.
SBProcess::ReadMemory and other related functions such as
WriteMemory are returning Python string() objects.  This means
that in Python 3 that are returning Unicode objects.  In reality
they should be returning bytes objects which is the same as a string
in Python 2, but different in Python 3.  This patch updates the
generated SWIG code to return Python bytes objects for all
memory related functions.

One quirk of this patch is that the C++ signature of ReadCStringFromMemory
has it writing c-string data into a void*.  This confuses our swig
typemaps which expect that a void* means byte data.  So I hacked up
a custom typemap which maps this specific function to treat the
void* as string data instead of byte data.

llvm-svn: 258743
2016-01-25 23:21:18 +00:00
..
Python Fix some issues with bytes and strings in Python 3. 2016-01-25 23:21:18 +00:00
interface Fix some issues with bytes and strings in Python 3. 2016-01-25 23:21:18 +00:00
swig_bot_lib Use sub-commands instead of --mode={client,server}. 2015-12-02 19:00:52 +00:00
CMakeLists.txt Remove superseded buildSwigWrapperClasses.py and buildSwigPython.py classes 2015-11-18 22:21:47 +00:00
Makefile
build-lldb-llvm-clang
build-llvm.pl I've been seeing a problem with xcodebuilds on macosx for 2015-10-16 01:27:21 +00:00
buildbot.py
checkpoint-llvm.pl
disasm-gdb-remote.pl
finish-swig-wrapper-classes.sh
finishSwigWrapperClasses.py Be *stupider* about what constitutes a supported language binding. 2015-11-25 17:49:47 +00:00
generate-vers.pl
get_relative_lib_dir.py Support RHEL 7 and similar systems that use architecture-specific Python lib dirs 2015-10-12 20:12:27 +00:00
install-lldb.sh
install_custom_python.py Making linking against Python simpler on Windows. 2015-04-10 22:58:56 +00:00
lldb.swig Fix non-Windows build after r252906. 2015-11-12 17:01:48 +00:00
package-clang-headers.py Update for tvos or watchos builds. 2015-11-05 23:42:18 +00:00
prepare_bindings.py Be *stupider* about what constitutes a supported language binding. 2015-11-25 17:49:47 +00:00
sed-sources
shush Several improvements to the shush script 2015-01-16 23:16:22 +00:00
swig_bot.py Use sub-commands instead of --mode={client,server}. 2015-12-02 19:00:52 +00:00
use_lldb_suite.py Fix ResourceWarning about unclosed file in use_lldb_suite_root.py. 2016-01-15 22:22:35 +00:00
utilsArgsParse.py [swig] Start of pylint on python build scripts. 2015-11-05 23:57:33 +00:00
utilsDebug.py [swig] Start of pylint on python build scripts. 2015-11-05 23:57:33 +00:00
utilsOsType.py [swig] Start of pylint on python build scripts. 2015-11-05 23:57:33 +00:00
verify_api.py