teak-llvm/lldb/scripts/Python
Jim Ingham d815c9ab88 Fix SBDebugger.GetOutputFileHandle() on OS X.
The swig typemaps had some magic for output File *'s on OS X that made:

SBDebugger.GetOutputFileHandle() 

actually work.  That was protected by a "#ifdef __MACOSX__", but the corresponding define
got lost going from the Darwin shell scripts to the python scripts for running
swig, so the code was elided.  I need to pass the define to SWIG, but only when
targetting Darwin.

So I added a target-platform argument to prepare_bindings, and if that 
is Darwin, I pass -D__APPLE__ to swig, and that activates this code again, and
GetOutputFileHandle works again.  Note, I only pass that argument for the Xcode
build.  I'm sure it is possible to do that for cmake, but my cmake-foo is weak.

I should have been able to write a test for this by creating a debugger, setting the 
output file handle to something file, writing to it, getting the output file handle 
and reading it.  But SetOutputFileHandle doesn't seem to work from Python, so I'd 
have to write a pexpect test to test this, which I'd rather not do.

llvm-svn: 263183
2016-03-11 01:57:45 +00:00
..
android android: add a command script to help display mixed Java/native backtraces. 2014-09-23 16:28:01 +00:00
modules Adjust for Python-3. 2016-02-12 20:30:47 +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
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 Fix SBDebugger.GetOutputFileHandle() on OS X. 2016-03-11 01:57:45 +00:00
python-extensions.swig Change lldb.value.__int__() so that it takes into account the signedness of the value being cast to return a Python number with the proper value 2016-02-10 02:12:42 +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 SBDebugger.GetOutputFileHandle() on OS X. 2016-03-11 01:57:45 +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