teak-llvm/lldb/scripts/Python
Luke Drummond c3d0165c49 Fix broken escaping of commands in the build
A combination of broken escaping in CMake and in the python swig
generation scripts meant that the swig generation step would fail
whenever there were spaces or special characters in parameters passed to
swig.

The fix for this in CMakeLists is to use the VERBATIM option on all
COMMAND-based custom builders relying on CMake to properly escape each
argument in the generated file.

Within the python swig scripts, the fix is to call subprocess.Popen with
a list of raw argument strings rather than ones that are incorrectly
manually escaped, then passed to a shell subprocess via
subprocess.Popen(' '.join(params)). This also prevents nasty things
happening such as accidental command-injection.

This allows us to have the swig / python executables in paths containing
special chars and spaces, (or on shared storage on Win32, e.g
\\some\path or C:\Program Files\swig\swig.exe).

Subscribers: lldb-commits
Differential Revision: https://reviews.llvm.org/D26757

llvm-svn: 289956
2016-12-16 16:38:25 +00:00
..
android *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
modules Clean up some use of __ANDROID_NDK__ in the cmake files 2016-12-05 11:15:36 +00:00
finish-swig-Python-LLDB.sh [CMake] Rename lldb-launcher to darwin-debug 2016-10-27 22:51:41 +00:00
finishSwigPythonLLDB.py [CMake] Rename lldb-launcher to darwin-debug 2016-10-27 22:51:41 +00:00
modify-python-lldb.py *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
prepare_binding_Python.py Fix broken escaping of commands in the build 2016-12-16 16:38:25 +00:00
python-extensions.swig Add .i files for SBMemoryRegionInfo and SBMemoryRegionInfoList and also hook up the new calls in SBProcess that give out SBMemoryRegionInfo and SBMemoryRegionInfoList objects. 2016-06-24 23:40:35 +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 #ifdef __APPLE__ code is the swig Python bindings 2016-04-08 18:58:07 +00:00
python-wrapper.swig Fix an issue where the @lldb.command marker would not work with the new 5-argument version of the Python command function 2016-06-24 02:07:15 +00:00
remote-build.py *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
use_lldb_suite.py *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00