22 lines · plain
1%feature("docstring",2"Represents a list of symbol context object. See also SBSymbolContext.3 4For example (from test/python_api/target/TestTargetAPI.py), ::5 6 def find_functions(self, exe_name):7 '''Exercise SBTarget.FindFunctions() API.'''8 exe = os.path.join(os.getcwd(), exe_name)9 10 # Create a target by the debugger.11 target = self.dbg.CreateTarget(exe)12 self.assertTrue(target, VALID_TARGET)13 14 list = lldb.SBSymbolContextList()15 num = target.FindFunctions('c', lldb.eFunctionNameTypeAuto, False, list)16 self.assertTrue(num == 1 and list.GetSize() == 1)17 18 for sc in list:19 self.assertTrue(sc.GetModule().GetFileSpec().GetFilename() == exe_name)20 self.assertTrue(sc.GetSymbol().GetName() == 'c')"21) lldb::SBSymbolContextList;22