summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/python-extensions.swig
diff options
context:
space:
mode:
authorCaroline Tice <ctice@apple.com>2010-10-26 03:11:13 +0000
committerCaroline Tice <ctice@apple.com>2010-10-26 03:11:13 +0000
commitceb6b1393d05e3f5a7a235fd34bcf5d74ecc1f8d (patch)
treed49e665f965c7acfc1d122c6c5e1b128a7ef9d5a /lldb/scripts/Python/python-extensions.swig
parente96b8d7ab66051f9fcbac5dfffd8dff7544a2909 (diff)
downloadbcm5719-llvm-ceb6b1393d05e3f5a7a235fd34bcf5d74ecc1f8d.tar.gz
bcm5719-llvm-ceb6b1393d05e3f5a7a235fd34bcf5d74ecc1f8d.zip
First pass at adding logging capabilities for the API functions. At the moment
it logs the function calls, their arguments and the return values. This is not complete or polished, but I am committing it now, at the request of someone who really wants to use it, even though it's not really done. It currently does not attempt to log all the functions, just the most important ones. I will be making further adjustments to the API logging code over the next few days/weeks. (Suggestions for improvements are welcome). Update the Python build scripts to re-build the swig C++ file whenever the python-extensions.swig file is modified. Correct the help for 'log enable' command (give it the correct number & type of arguments). llvm-svn: 117349
Diffstat (limited to 'lldb/scripts/Python/python-extensions.swig')
-rw-r--r--lldb/scripts/Python/python-extensions.swig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/scripts/Python/python-extensions.swig b/lldb/scripts/Python/python-extensions.swig
index 8a572a7c44e..f52fa918145 100644
--- a/lldb/scripts/Python/python-extensions.swig
+++ b/lldb/scripts/Python/python-extensions.swig
@@ -23,7 +23,7 @@
%extend lldb::SBBreakpointLocation {
PyObject *lldb::SBBreakpointLocation::__repr__ (){
lldb::SBStream description;
- $self->GetDescription ("full", description);
+ $self->GetDescription (lldb::eDescriptionLevelFull, description);
return PyString_FromString (description.GetData());
}
}
@@ -128,7 +128,7 @@
%extend lldb::SBTarget {
PyObject *lldb::SBTarget::__repr__ (){
lldb::SBStream description;
- $self->GetDescription (description);
+ $self->GetDescription (description, lldb::eDescriptionLevelBrief);
return PyString_FromString (description.GetData());
}
}
OpenPOWER on IntegriCloud