Added the ability to get all section contents, or the section

contents starting at an offset (2 separate methods). This helps
the scripting interface stay more natural by allowing both from
Python.

Added the ability to dump data with address annotations when
call SBData::GetDescription().

Hooked up the SBSection to the __repr__ so you can print section
objects from within python.

Improved the dumping of symbols from python.

Fixed the .i interface references which were set to "Relative to this Group"
which somehow included Jim's "lldb-clean" root directory in the path. The
interfaces are now in a folder called "interfaces" withing the Xcode API
subfolder.

llvm-svn: 140451
This commit is contained in:
Greg Clayton
2011-09-24 05:04:40 +00:00
parent 57087f3df3
commit d9dc52dc4c
10 changed files with 125 additions and 87 deletions

View File

@@ -118,6 +118,13 @@
return PyString_FromString (description.GetData());
}
}
%extend lldb::SBSection {
PyObject *lldb::SBSection::__repr__ (){
lldb::SBStream description;
$self->GetDescription (description);
return PyString_FromString (description.GetData());
}
}
%extend lldb::SBSymbol {
PyObject *lldb::SBSymbol::__repr__ (){
lldb::SBStream description;