diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-08-12 22:52:11 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-08-12 22:52:11 +0000 |
commit | 53cb46ebd771696dbfa93e957f115d4c323241d2 (patch) | |
tree | abd11feea0020e097e17e516dfc18aa3d389b6aa /lldb/scripts/Python | |
parent | 02e737b08ed90daf9dd46e6c3d7deb9eaceeef01 (diff) | |
download | bcm5719-llvm-53cb46ebd771696dbfa93e957f115d4c323241d2.tar.gz bcm5719-llvm-53cb46ebd771696dbfa93e957f115d4c323241d2.zip |
Update the SBAddress.i Python interface file to the latest SBAddress.h,
and add some docstrings.
llvm-svn: 137528
Diffstat (limited to 'lldb/scripts/Python')
-rw-r--r-- | lldb/scripts/Python/interface/SBAddress.i | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/lldb/scripts/Python/interface/SBAddress.i b/lldb/scripts/Python/interface/SBAddress.i index d2ca14873b3..f0e2253438c 100644 --- a/lldb/scripts/Python/interface/SBAddress.i +++ b/lldb/scripts/Python/interface/SBAddress.i @@ -82,8 +82,48 @@ public: SectionType GetSectionType (); + %feature("docstring", " + //------------------------------------------------------------------ + /// GetSymbolContext() and the following can lookup symbol information for a given address. + /// An address might refer to code or data from an existing module, or it + /// might refer to something on the stack or heap. The following functions + /// will only return valid values if the address has been resolved to a code + /// or data address using 'void SBAddress::SetLoadAddress(...)' or + /// 'lldb::SBAddress SBTarget::ResolveLoadAddress (...)'. + //------------------------------------------------------------------ + ") GetSymbolContext; + lldb::SBSymbolContext + GetSymbolContext (uint32_t resolve_scope); + + %feature("docstring", " + //------------------------------------------------------------------ + /// GetModule() and the following grab individual objects for a given address and + /// are less efficient if you want more than one symbol related objects. + /// Use one of the following when you want multiple debug symbol related + /// objects for an address: + /// lldb::SBSymbolContext SBAddress::GetSymbolContext (uint32_t resolve_scope); + /// lldb::SBSymbolContext SBTarget::ResolveSymbolContextForAddress (const SBAddress &addr, uint32_t resolve_scope); + /// One or more bits from the SymbolContextItem enumerations can be logically + /// OR'ed together to more efficiently retrieve multiple symbol objects. + //------------------------------------------------------------------ + ") GetModule; lldb::SBModule GetModule (); + + lldb::SBCompileUnit + GetCompileUnit (); + + lldb::SBFunction + GetFunction (); + + lldb::SBBlock + GetBlock (); + + lldb::SBSymbol + GetSymbol (); + + lldb::SBLineEntry + GetLineEntry (); }; } // namespace lldb |