teak-llvm/lldb/scripts/Python
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
..
android android: add a command script to help display mixed Java/native backtraces. 2014-09-23 16:28:01 +00:00
modules Allow to override python-config executable name from command line 2015-11-15 01:56:21 +00:00
finish-swig-Python-LLDB.sh Rename argdumper to lldb-argdumper 2015-10-29 05:07:12 +00:00
finishSwigPythonLLDB.py Change finishSwigPythonLLDB.py to copy six.py instead of simlink it 2015-12-11 15:43:36 +00:00
Makefile Suppress python readline module under Linux to fix a seg fault. 2014-02-26 07:39:20 +00:00
modify-python-lldb.py Insert the SWIG version into LLDB's __init__.py 2015-11-16 22:40:20 +00:00
prepare_binding_Python.py Revert "prepare_bindings.py: enable static bindings" 2015-11-19 16:56:12 +00:00
python-extensions.swig __ne__ is the actual Python operator; __neq__ is a typo 2015-12-18 22:46:58 +00:00
python-swigsafecast.swig Enable Python summaries to use custom SBTypeSummaryOptions if the user is so inclined. Updates to the webdoc will follow 2014-11-22 00:02:47 +00:00
python-typemaps.swig Fix some issues with bytes and strings in Python 3. 2016-01-25 23:21:18 +00:00
python-wrapper.swig Delete PyObjectToString and use PythonObject::Str(). 2015-11-13 01:24:25 +00:00
remote-build.py Added remote-build.py and wired it into Xcode for Linux and MacOSX+Linux builds. 2015-02-03 01:50:39 +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