Package lldb :: Class SBSymbolContextList
[hide private]
[frames] | no frames]

Class SBSymbolContextList

source code

Represents a list of symbol context object. See also SBSymbolContext.

For example (from test/python_api/target/,

    def find_functions(self, exe_name):
        '''Exercise SBTaget.FindFunctions() API.'''
        exe = os.path.join(os.getcwd(), exe_name)

        # Create a target by the debugger.
        target = self.dbg.CreateTarget(exe)
        self.assertTrue(target, VALID_TARGET)

        list = lldb.SBSymbolContextList()
        num = target.FindFunctions('c', lldb.eFunctionNameTypeAuto, False, list)
        self.assertTrue(num == 1 and list.GetSize() == 1)

        for sc in list:
            self.assertTrue(sc.GetModule().GetFileSpec().GetFilename() == exe_name)
            self.assertTrue(sc.GetSymbol().GetName() == 'c')

Instance Methods [hide private]
__repr__(self) source code
__init__(self, *args)
__init__(lldb::SBSymbolContextList self) -> SBSymbolContextList __init__(lldb::SBSymbolContextList self, SBSymbolContextList rhs) -> SBSymbolContextList
source code
IsValid(SBSymbolContextList self) -> bool
source code
__nonzero__(self) source code
__bool__(self) source code
GetSize(SBSymbolContextList self) -> uint32_t
source code
GetContextAtIndex(self, *args)
GetContextAtIndex(SBSymbolContextList self, uint32_t idx) -> SBSymbolContext
source code
Append(self, *args)
Append(SBSymbolContextList self, SBSymbolContext sc) Append(SBSymbolContextList self, SBSymbolContextList sc_list)
source code
GetDescription(self, *args)
GetDescription(SBSymbolContextList self, SBStream description) -> bool
source code
Clear(SBSymbolContextList self)
source code
Iterate over all symbol contexts in a lldb.SBSymbolContextList object.
source code
__len__(self) source code
__getitem__(self, key) source code
get_module_array(self) source code
get_compile_unit_array(self) source code
get_function_array(self) source code
get_block_array(self) source code
get_symbol_array(self) source code
get_line_entry_array(self) source code
__str__(SBSymbolContextList self) -> PyObject *
source code
Class Variables [hide private]
  __swig_setmethods__ = {}
  __setattr__ = lambda self, name, value:
  __swig_getmethods__ = {}
  __getattr__ = lambda self, name:
  __swig_destroy__ = _lldb.delete_SBSymbolContextList
  __del__ = lambda self: