SBSymbolContextList¶
-
class
lldb.
SBSymbolContextList
(*args)¶ 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 SBTarget.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')
Attributes Summary
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. Methods Summary
Append
(SBSymbolContextList self, …)Append(SBSymbolContextList self, SBSymbolContextList sc_list) Clear
(SBSymbolContextList self)GetContextAtIndex
(SBSymbolContextList self, …)GetDescription
(SBSymbolContextList self, …)GetSize
(SBSymbolContextList self)IsValid
(SBSymbolContextList self)get_block_array
()get_compile_unit_array
()get_function_array
()get_line_entry_array
()get_module_array
()get_symbol_array
()Attributes Documentation
-
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.
Methods Documentation
-
Append
(SBSymbolContextList self, SBSymbolContext sc)¶ Append(SBSymbolContextList self, SBSymbolContextList sc_list)
-
Clear
(SBSymbolContextList self)¶
-
GetContextAtIndex
(SBSymbolContextList self, uint32_t idx) → SBSymbolContext¶
-
GetDescription
(SBSymbolContextList self, SBStream description) → bool¶
-
GetSize
(SBSymbolContextList self) → uint32_t¶
-
IsValid
(SBSymbolContextList self) → bool¶
-
get_block_array
()¶
-
get_compile_unit_array
()¶
-
get_function_array
()¶
-
get_line_entry_array
()¶
-
get_module_array
()¶
-
get_symbol_array
()¶
-
__iter__
()¶ Iterate over all symbol contexts in a lldb.SBSymbolContextList object.
-