hanchenye-llvm-project/lldb/test/python_api
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
..
debugger Added SBDebugger's log callbacks to Python-land 2012-08-25 00:29:07 +00:00
default-constructor Added a typemap and wrappers for SBInputReader callbacks 2012-08-22 13:25:10 +00:00
disassemble-raw-data <rdar://problem/11358639> 2012-05-08 01:45:38 +00:00
event Second batch of adding @dsym_test/@dwarf_test decorators to existing test cases. 2012-04-06 19:54:10 +00:00
formatters Clean renamed files on 'make clean' 2012-05-30 02:52:29 +00:00
frame Second batch of adding @dsym_test/@dwarf_test decorators to existing test cases. 2012-04-06 19:54:10 +00:00
function_symbol Second batch of adding @dsym_test/@dwarf_test decorators to existing test cases. 2012-04-06 19:54:10 +00:00
hello_world Second batch of adding @dsym_test/@dwarf_test decorators to existing test cases. 2012-04-06 19:54:10 +00:00
input_reader Added a test for the Python part of SBInputReader callbacks. 2012-08-22 13:25:58 +00:00
interpreter Second batch of adding @dsym_test/@dwarf_test decorators to existing test cases. 2012-04-06 19:54:10 +00:00
lldbutil Added a new Host class: ReadWriteLock 2012-04-05 16:12:35 +00:00
module_section Export the APIs submitted by Dawn to the Python bindings. Add a simple test case for the SBModule.compile_unit_iter() API. 2012-03-16 21:55:42 +00:00
process Add SBProcess::GetNumSupportedHardwareWatchpoints() API and export it through the Python scripting bridge. 2012-05-23 22:34:34 +00:00
sbdata Second batch of adding @dsym_test/@dwarf_test decorators to existing test cases. 2012-04-06 19:54:10 +00:00
symbol-context Second batch of adding @dsym_test/@dwarf_test decorators to existing test cases. 2012-04-06 19:54:10 +00:00
target Second batch of adding @dsym_test/@dwarf_test decorators to existing test cases. 2012-04-06 19:54:10 +00:00
thread Second batch of adding @dsym_test/@dwarf_test decorators to existing test cases. 2012-04-06 19:54:10 +00:00
type Second batch of adding @dsym_test/@dwarf_test decorators to existing test cases. 2012-04-06 19:54:10 +00:00
value Second batch of adding @dsym_test/@dwarf_test decorators to existing test cases. 2012-04-06 19:54:10 +00:00
watchpoint rdar://problem/11584012 2012-06-04 23:19:54 +00:00