1 STRING_EXTENSION_OUTSIDE
(SBSymbolContextList
)
3 %extend lldb
::SBSymbolContextList
{
7 '''Iterate over all symbol contexts in a lldb.SBSymbolContextList
9 return lldb_iter
(self
, 'GetSize'
, 'GetContextAtIndex'
)
12 return int
(self.GetSize
())
14 def __getitem__
(self
, key
):
16 if isinstance
(key
, int
):
17 if
-count
<= key
< count
:
19 return self.GetContextAtIndex
(key
)
24 def get_module_array
(self
):
26 for i in range
(len
(self
)):
27 obj
= self.GetContextAtIndex
(i
).module
32 def get_compile_unit_array
(self
):
34 for i in range
(len
(self
)):
35 obj
= self.GetContextAtIndex
(i
).compile_unit
39 def get_function_array
(self
):
41 for i in range
(len
(self
)):
42 obj
= self.GetContextAtIndex
(i
).function
46 def get_block_array
(self
):
48 for i in range
(len
(self
)):
49 obj
= self.GetContextAtIndex
(i
).block
53 def get_symbol_array
(self
):
55 for i in range
(len
(self
)):
56 obj
= self.GetContextAtIndex
(i
).symbol
60 def get_line_entry_array
(self
):
62 for i in range
(len
(self
)):
63 obj
= self.GetContextAtIndex
(i
).line_entry
68 modules
= property
(get_module_array
, None
, doc
='''Returns a list
() of lldb.SBModule objects
, one for each module in each SBSymbolContext object in this list.'''
)
69 compile_units
= property
(get_compile_unit_array
, None
, doc
='''Returns a list
() of lldb.SBCompileUnit objects
, one for each compile unit in each SBSymbolContext object in this list.'''
)
70 functions
= property
(get_function_array
, None
, doc
='''Returns a list
() of lldb.SBFunction objects
, one for each function in each SBSymbolContext object in this list.'''
)
71 blocks
= property
(get_block_array
, None
, doc
='''Returns a list
() of lldb.SBBlock objects
, one for each block in each SBSymbolContext object in this list.'''
)
72 line_entries
= property
(get_line_entry_array
, None
, doc
='''Returns a list
() of lldb.SBLineEntry objects
, one for each line entry in each SBSymbolContext object in this list.'''
)
73 symbols
= property
(get_symbol_array
, None
, doc
='''Returns a list
() of lldb.SBSymbol objects
, one for each symbol in each SBSymbolContext object in this list.'''
)