llvm-project/lldb/scripts
Zachary Turner 88ab3c70e6 Use PythonDataObjects in swig helper functions.
Relying on manual Python C API calls is error prone, especially
when trying to maintain compatibility with Python 2 and Python 3.

This patch additionally fixes what appears to be a potentially
serious memory leak, in that were were incref'ing two values
returned from the session dictionary but never decref'ing them.
There was a comment indicating that it was intentional, but the
reasoning was, I believe, faulty and it resulted in a legitimate
memory leak.

Switching everything to PythonObject based classes solves both
the compatibility issues as well as the resource leak issues.

llvm-svn: 252536
2015-11-09 23:23:52 +00:00
..
Python Use PythonDataObjects in swig helper functions. 2015-11-09 23:23:52 +00:00
interface Add SBType::IsAnonymousType() and relative plumbing in the debugger internals 2015-11-07 02:06:57 +00:00
CMakeLists.txt Python 3 - Use __bool__() instead of __nonzero__() for truthiness. 2015-11-07 01:08:25 +00:00
Makefile Fix configure & make build with python disabled 2014-09-09 04:52:37 +00:00
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
build-swig-wrapper-classes.sh Linux buildbot fix: detect swig tool from PATH in shell script (before searching hardcoded directories) 2012-11-28 23:49:11 +00:00
buildSwigWrapperClasses.py [swig] Remove check_lldb_swig_executable_file_exists. 2015-11-06 18:53:29 +00:00
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 [swig] Start of pylint on python build scripts. 2015-11-05 23:57:33 +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 Change swig interface files to use PythonDataObjects. 2015-10-14 16:59:32 +00:00
package-clang-headers.py Update for tvos or watchos builds. 2015-11-05 23:42:18 +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
use_lldb_suite.py Python 3 - Use __bool__() instead of __nonzero__() for truthiness. 2015-11-07 01:08:25 +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 Added the ability to verify the LLDB API on MacOSX using a script. Usage is: 2012-08-30 21:21:24 +00:00