[Lldb-commits] [lldb] r137528 - /lldb/trunk/scripts/Python/interface/SBAddress.i

Johnny Chen johnny.chen at apple.com
Fri Aug 12 15:52:11 PDT 2011


Author: johnny
Date: Fri Aug 12 17:52:11 2011
New Revision: 137528

URL: http://llvm.org/viewvc/llvm-project?rev=137528&view=rev
Log:
Update the SBAddress.i Python interface file to the latest SBAddress.h,
and add some docstrings.

Modified:
    lldb/trunk/scripts/Python/interface/SBAddress.i

Modified: lldb/trunk/scripts/Python/interface/SBAddress.i
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/interface/SBAddress.i?rev=137528&r1=137527&r2=137528&view=diff
==============================================================================
--- lldb/trunk/scripts/Python/interface/SBAddress.i (original)
+++ lldb/trunk/scripts/Python/interface/SBAddress.i Fri Aug 12 17:52:11 2011
@@ -82,8 +82,48 @@
     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





More information about the lldb-commits mailing list