[Lldb-commits] Patches for python bindings

Filipe Cabecinhas filcab at gmail.com
Tue Mar 13 17:56:37 PDT 2012


Hi all, 

Attached are the updated patches for the lldb python bindings (and a fix for some debug statements). I sent them a week ago but got no answer.

lldb-disable-python-interpreter.patch:

Changes the symbol LLDB_DISABLE_PYTHON to only disable the embedded python interpreter, building the bindings anyway;
If both the symbol LLDB_DISABLE_PYTHON and LLDB_DISABLE_PYTHON_BINDINGS are defined, it also disables the Python bindings and any swig-related code, as happened before;
Defines LLDB_DISABLE_PYTHON_BINDINGS in iOS builds.


lldb-enable-log-callback.patch:

Enables SBDebugger::Create(bool, lldb::LogOutputCallback, void *baton) in the python bindings. Transforming it into SBDebugger.Create(bool, Python_callable_object);
The caller object is responsible for ensuring the passed object is valid until it is not needed.


lldb-debug-pthread-fix.patch:

This patch fixes a compile error in Predicate.h when DB_PTHREAD_LOG_EVENTS is defined;
It also adds newlines to the end of each printf() log statement that are active with that constant.


If you want me to change anything in the patches, just let me know.

Regards, 

  Filipe

-------------- next part --------------
A non-text attachment was scrubbed...
Name: lldb-debug-pthread-fix.patch
Type: application/octet-stream
Size: 4773 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20120314/d8e6a7e8/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lldb-disable-python-interpreter.patch
Type: application/octet-stream
Size: 11640 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20120314/d8e6a7e8/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lldb-enable-log-callback.patch
Type: application/octet-stream
Size: 2004 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20120314/d8e6a7e8/attachment-0002.obj>


More information about the lldb-commits mailing list