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/TestTargetAPI.py),

        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]
__setattr__(self, name, value) x.__setattr__('name', value) <==> x.name = value | source code
__getattr__(self, name) | source code
__repr__(self) repr(x) | source code
__iter__(self) | source code
__init__(self, *args) __init__(lldb::SBSymbolContextList self) -> SBSymbolContextList __init__(lldb::SBSymbolContextList self, SBSymbolContextList rhs) -> SBSymbolContextList | source code
__swig_destroy__(...) delete_SBSymbolContextList(SBSymbolContextList self) |
__del__(self) | source code
__nonzero__(self) | source code
IsValid(self) IsValid(SBSymbolContextList self) -> bool | source code
GetSize(self) 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(self) Clear(SBSymbolContextList self) | 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__(self) __str__(SBSymbolContextList self) -> PyObject * | source code
Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__sizeof__`, `__subclasshook__`

Class Variables | [hide private]
| __swig_setmethods__ = ``{``}``
| __swig_getmethods__ = `{}`

Properties | [hide private]
| blocks Returns a list() of lldb.SBBlock objects, one for each block in each SBSymbolContext object in this list.
| compile_units Returns a list() of lldb.SBCompileUnit objects, one for each compile unit in each SBSymbolContext object in this list.
| functions Returns a list() of lldb.SBFunction objects, one for each function in each SBSymbolContext object in this list.
| line_entries Returns a list() of lldb.SBLineEntry objects, one for each line entry in each SBSymbolContext object in this list.
| modules Returns a list() of lldb.SBModule objects, one for each module in each SBSymbolContext object in this list.
| symbols Returns a list() of lldb.SBSymbol objects, one for each symbol in each SBSymbolContext object in this list.
Inherited from `object`: `__class__`

Method Details | [hide private]

### __setattr__(self, name, value) | source code
x.__setattr__('name', value) <==> x.name = value Overrides: object.__setattr__ (inherited documentation)

### __repr__(self) (Representation operator) | source code
repr(x) Overrides: object.__repr__ (inherited documentation)

### __init__(self, *args) (Constructor) | source code
__init__(lldb::SBSymbolContextList self) -> SBSymbolContextList __init__(lldb::SBSymbolContextList self, SBSymbolContextList rhs) -> SBSymbolContextList Overrides: object.__init__

### __str__(self) (Informal representation operator) | source code
__str__(SBSymbolContextList self) -> PyObject * Overrides: object.__str__

Property Details | [hide private]

### blocks Returns a list() of lldb.SBBlock objects, one for each block in each SBSymbolContext object in this list. Get Method: get_block_array(self)

### compile_units Returns a list() of lldb.SBCompileUnit objects, one for each compile unit in each SBSymbolContext object in this list. Get Method: get_compile_unit_array(self)

### functions Returns a list() of lldb.SBFunction objects, one for each function in each SBSymbolContext object in this list. Get Method: get_function_array(self)

### line_entries Returns a list() of lldb.SBLineEntry objects, one for each line entry in each SBSymbolContext object in this list. Get Method: get_line_entry_array(self)

### modules Returns a list() of lldb.SBModule objects, one for each module in each SBSymbolContext object in this list. Get Method: get_module_array(self)

### symbols Returns a list() of lldb.SBSymbol objects, one for each symbol in each SBSymbolContext object in this list. Get Method: get_symbol_array(self)