llvm-project/lldb/scripts
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
..
Python Fix SBDebugger.GetOutputFileHandle() on OS X. 2016-03-11 01:57:45 +00:00
Xcode Use shallow clones in build-llvm.py. 2016-03-02 20:53:19 +00:00
interface Add an "offset" option to "break set -n" and "break set -f -l". 2016-03-09 18:59:13 +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
build-lldb-llvm-clang
buildbot.py
checkpoint-llvm.pl Fix typos. 2014-07-01 21:22:11 +00:00
disasm-gdb-remote.pl Fix typos. 2014-07-01 21:22:11 +00:00
finish-swig-wrapper-classes.sh Fixed Makefile-based install to place python packages in the LLDB install tree. 2013-12-06 23:16:23 +00:00
finishSwigWrapperClasses.py Be *stupider* about what constitutes a supported language binding. 2015-11-25 17:49:47 +00:00
generate-vers.pl Make lldb build with Makefiles on OS X. 2014-01-18 08:05:32 +00:00
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
prepare_bindings.py Fix SBDebugger.GetOutputFileHandle() on OS X. 2016-03-11 01:57:45 +00:00
sed-sources Fix typos. 2014-07-01 21:22:11 +00:00
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