llvm-project/lldb
Filipe Cabecinhas c5041918dd Added SBDebugger's log callbacks to Python-land
- Tweaked a parameter name in SBDebugger.h so my typemap will catch it;
- Added a SBDebugger.Create(bool, callback, baton) to the swig interface;
- Added SBDebugger.SetLoggingCallback to the swig interface;
- Added a callback utility function for log callbacks;
- Guard against Py_None on both callback utility functions;

- Added a FIXME to the SBDebugger API test;
- Added a __del__() stub for SBDebugger.

We need to be able to get both the log callback and baton from an
SBDebugger if we want to protect against memory leaks (or make the user
responsible for holding another reference to the callback).
Additionally, it's impossible to revert from a callback-backed log
mechanism to a file-backed log mechanism.

llvm-svn: 162633
2012-08-25 00:29:07 +00:00
..
docs Incorporate suggestions from Jim, add "USING LLDB" and "FILES" sections. 2012-06-08 23:49:32 +00:00
examples The OS plug-in can now get data from a python script that implements the protocol. 2012-08-24 05:45:15 +00:00
include Added SBDebugger's log callbacks to Python-land 2012-08-25 00:29:07 +00:00
lib Continue the work started by Dragos' Makefile patch (LLVMLibsOptions usage) 2012-05-29 13:41:50 +00:00
lldb.xcodeproj A first version of a bunch of classes that wrap commonly used Python objects in a ref-counting and type-safe C++ API 2012-08-23 22:02:23 +00:00
lldb.xcworkspace I accidentally committed some changes to the 2011-12-21 21:30:33 +00:00
resources Updating Xcode project version numbers for lldb-165 and debugserver-192 2012-08-07 00:32:29 +00:00
scripts Added SBDebugger's log callbacks to Python-land 2012-08-25 00:29:07 +00:00
source Changed register ValueObjects to report their 2012-08-24 18:21:05 +00:00
test Added SBDebugger's log callbacks to Python-land 2012-08-25 00:29:07 +00:00
tools Committed a simple dtrace script that tracks 2012-08-17 16:30:13 +00:00
utils Minor cleanup. 2012-03-05 18:25:29 +00:00
www Add the "expr" command to the gdb command equivalents. 2012-08-24 22:56:40 +00:00
.gitignore Remove "llvm" from list of things to ignore. This results in the 2012-03-03 06:43:59 +00:00
INSTALL.txt You'll need to be running Mac OS X to get lldb to build right now. 2010-06-09 07:29:26 +00:00
LICENSE.TXT test commit 2010-06-09 03:55:24 +00:00
Makefile Revert the RTTI change from r151187. It make lldb compile with g++ 4.4 but it doesn't link anymore. The bug seems to be fixed in g++ 4.5. 2012-02-22 21:00:17 +00:00