Package lldb
[hide private]
[frames] | no frames]

Source Code for Package lldb

    1  # This file was automatically generated by SWIG (http://www.swig.org). 
    2  # Version 2.0.11 
    3  # 
    4  # Do not make changes to this file unless you know what you are doing--modify 
    5  # the SWIG interface file instead. 
    6   
    7   
    8   
    9   
   10  """ 
   11  The lldb module contains the public APIs for Python binding. 
   12   
   13  Some of the important classes are described here: 
   14   
   15  o SBTarget: Represents the target program running under the debugger. 
   16  o SBProcess: Represents the process associated with the target program. 
   17  o SBThread: Represents a thread of execution. SBProcess contains SBThread(s). 
   18  o SBFrame: Represents one of the stack frames associated with a thread. SBThread 
   19        contains SBFrame(s). 
   20  o SBSymbolContext: A container that stores various debugger related info. 
   21  o SBValue: Represents the value of a variable, a register, or an expression. 
   22  o SBModule: Represents an executable image and its associated object and symbol 
   23        files.  SBTarget contains SBModule(s). 
   24  o SBBreakpoint: Represents a logical breakpoint and its associated settings. 
   25        SBTarget contains SBBreakpoint(s). 
   26  o SBSymbol: Represents the symbol possibly associated with a stack frame. 
   27  o SBCompileUnit: Represents a compilation unit, or compiled source file. 
   28  o SBFunction: Represents a generic function, which can be inlined or not. 
   29  o SBBlock: Represents a lexical block. SBFunction contains SBBlock(s). 
   30  o SBLineEntry: Specifies an association with a contiguous range of instructions 
   31        and a source file location. SBCompileUnit contains SBLineEntry(s). 
   32  """ 
   33   
   34   
   35  from sys import version_info 
   36  if version_info >= (2,6,0): 
37 - def swig_import_helper():
38 from os.path import dirname 39 import imp 40 fp = None 41 try: 42 fp, pathname, description = imp.find_module('_lldb', [dirname(__file__)]) 43 except ImportError: 44 import _lldb 45 return _lldb 46 if fp is not None: 47 try: 48 _mod = imp.load_module('_lldb', fp, pathname, description) 49 finally: 50 fp.close() 51 return _mod
52 _lldb = swig_import_helper() 53 del swig_import_helper 54 else: 55 import _lldb 56 del version_info 57 try: 58 _swig_property = property 59 except NameError: 60 pass # Python < 2.2 doesn't have 'property'.
61 -def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
62 if (name == "thisown"): return self.this.own(value) 63 if (name == "this"): 64 if type(value).__name__ == 'SwigPyObject': 65 self.__dict__[name] = value 66 return 67 method = class_type.__swig_setmethods__.get(name,None) 68 if method: return method(self,value) 69 if (not static): 70 self.__dict__[name] = value 71 else: 72 raise AttributeError("You cannot add attributes to %s" % self)
73
74 -def _swig_setattr(self,class_type,name,value):
75 return _swig_setattr_nondynamic(self,class_type,name,value,0)
76
77 -def _swig_getattr(self,class_type,name):
78 if (name == "thisown"): return self.this.own() 79 method = class_type.__swig_getmethods__.get(name,None) 80 if method: return method(self) 81 raise AttributeError(name)
82
83 -def _swig_repr(self):
84 try: strthis = "proxy of " + self.this.__repr__() 85 except: strthis = "" 86 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
87 88 try: 89 _object = object 90 _newclass = 1 91 except AttributeError:
92 - class _object : pass
93 _newclass = 0 94 95 96 import uuid 97 import re 98 import os 99 100 import six
101 102 #SWIG_VERSION is written as a single hex number, but the components of it are 103 #meant to be interpreted in decimal. So, 0x030012 is swig 3.0.12, and not 104 #3.0.18. 105 -def _to_int(hex):
106 return hex // 0x10 % 0x10 * 10 + hex % 0x10
107 swig_version = (_to_int(0x020011 // 0x10000), _to_int(0x020011 // 0x100), _to_int(0x020011)) 108 del _to_int
109 110 # =================================== 111 # Iterator for lldb container objects 112 # =================================== 113 -def lldb_iter(obj, getsize, getelem):
114 """A generator adaptor to support iteration for lldb container objects.""" 115 size = getattr(obj, getsize) 116 elem = getattr(obj, getelem) 117 for i in range(size()): 118 yield elem(i)
119 120 INT32_MAX = _lldb.INT32_MAX 121 UINT32_MAX = _lldb.UINT32_MAX 122 UINT64_MAX = _lldb.UINT64_MAX 123 LLDB_GENERIC_ERROR = _lldb.LLDB_GENERIC_ERROR 124 LLDB_INVALID_BREAK_ID = _lldb.LLDB_INVALID_BREAK_ID 125 LLDB_DEFAULT_BREAK_SIZE = _lldb.LLDB_DEFAULT_BREAK_SIZE 126 LLDB_INVALID_WATCH_ID = _lldb.LLDB_INVALID_WATCH_ID 127 LLDB_WATCH_TYPE_READ = _lldb.LLDB_WATCH_TYPE_READ 128 LLDB_WATCH_TYPE_WRITE = _lldb.LLDB_WATCH_TYPE_WRITE 129 LLDB_REGNUM_GENERIC_PC = _lldb.LLDB_REGNUM_GENERIC_PC 130 LLDB_REGNUM_GENERIC_SP = _lldb.LLDB_REGNUM_GENERIC_SP 131 LLDB_REGNUM_GENERIC_FP = _lldb.LLDB_REGNUM_GENERIC_FP 132 LLDB_REGNUM_GENERIC_RA = _lldb.LLDB_REGNUM_GENERIC_RA 133 LLDB_REGNUM_GENERIC_FLAGS = _lldb.LLDB_REGNUM_GENERIC_FLAGS 134 LLDB_REGNUM_GENERIC_ARG1 = _lldb.LLDB_REGNUM_GENERIC_ARG1 135 LLDB_REGNUM_GENERIC_ARG2 = _lldb.LLDB_REGNUM_GENERIC_ARG2 136 LLDB_REGNUM_GENERIC_ARG3 = _lldb.LLDB_REGNUM_GENERIC_ARG3 137 LLDB_REGNUM_GENERIC_ARG4 = _lldb.LLDB_REGNUM_GENERIC_ARG4 138 LLDB_REGNUM_GENERIC_ARG5 = _lldb.LLDB_REGNUM_GENERIC_ARG5 139 LLDB_REGNUM_GENERIC_ARG6 = _lldb.LLDB_REGNUM_GENERIC_ARG6 140 LLDB_REGNUM_GENERIC_ARG7 = _lldb.LLDB_REGNUM_GENERIC_ARG7 141 LLDB_REGNUM_GENERIC_ARG8 = _lldb.LLDB_REGNUM_GENERIC_ARG8 142 LLDB_INVALID_ADDRESS = _lldb.LLDB_INVALID_ADDRESS 143 LLDB_INVALID_INDEX32 = _lldb.LLDB_INVALID_INDEX32 144 LLDB_INVALID_IVAR_OFFSET = _lldb.LLDB_INVALID_IVAR_OFFSET 145 LLDB_INVALID_IMAGE_TOKEN = _lldb.LLDB_INVALID_IMAGE_TOKEN 146 LLDB_INVALID_MODULE_VERSION = _lldb.LLDB_INVALID_MODULE_VERSION 147 LLDB_INVALID_REGNUM = _lldb.LLDB_INVALID_REGNUM 148 LLDB_INVALID_UID = _lldb.LLDB_INVALID_UID 149 LLDB_INVALID_PROCESS_ID = _lldb.LLDB_INVALID_PROCESS_ID 150 LLDB_INVALID_THREAD_ID = _lldb.LLDB_INVALID_THREAD_ID 151 LLDB_INVALID_FRAME_ID = _lldb.LLDB_INVALID_FRAME_ID 152 LLDB_INVALID_SIGNAL_NUMBER = _lldb.LLDB_INVALID_SIGNAL_NUMBER 153 LLDB_INVALID_OFFSET = _lldb.LLDB_INVALID_OFFSET 154 LLDB_INVALID_LINE_NUMBER = _lldb.LLDB_INVALID_LINE_NUMBER 155 LLDB_INVALID_QUEUE_ID = _lldb.LLDB_INVALID_QUEUE_ID 156 LLDB_ARCH_DEFAULT = _lldb.LLDB_ARCH_DEFAULT 157 LLDB_ARCH_DEFAULT_32BIT = _lldb.LLDB_ARCH_DEFAULT_32BIT 158 LLDB_ARCH_DEFAULT_64BIT = _lldb.LLDB_ARCH_DEFAULT_64BIT 159 LLDB_INVALID_CPUTYPE = _lldb.LLDB_INVALID_CPUTYPE 160 LLDB_MAX_NUM_OPTION_SETS = _lldb.LLDB_MAX_NUM_OPTION_SETS 161 LLDB_OPT_SET_ALL = _lldb.LLDB_OPT_SET_ALL 162 LLDB_OPT_SET_1 = _lldb.LLDB_OPT_SET_1 163 LLDB_OPT_SET_2 = _lldb.LLDB_OPT_SET_2 164 LLDB_OPT_SET_3 = _lldb.LLDB_OPT_SET_3 165 LLDB_OPT_SET_4 = _lldb.LLDB_OPT_SET_4 166 LLDB_OPT_SET_5 = _lldb.LLDB_OPT_SET_5 167 LLDB_OPT_SET_6 = _lldb.LLDB_OPT_SET_6 168 LLDB_OPT_SET_7 = _lldb.LLDB_OPT_SET_7 169 LLDB_OPT_SET_8 = _lldb.LLDB_OPT_SET_8 170 LLDB_OPT_SET_9 = _lldb.LLDB_OPT_SET_9 171 LLDB_OPT_SET_10 = _lldb.LLDB_OPT_SET_10 172 LLDB_OPT_SET_11 = _lldb.LLDB_OPT_SET_11 173 eStateInvalid = _lldb.eStateInvalid 174 eStateUnloaded = _lldb.eStateUnloaded 175 eStateConnected = _lldb.eStateConnected 176 eStateAttaching = _lldb.eStateAttaching 177 eStateLaunching = _lldb.eStateLaunching 178 eStateStopped = _lldb.eStateStopped 179 eStateRunning = _lldb.eStateRunning 180 eStateStepping = _lldb.eStateStepping 181 eStateCrashed = _lldb.eStateCrashed 182 eStateDetached = _lldb.eStateDetached 183 eStateExited = _lldb.eStateExited 184 eStateSuspended = _lldb.eStateSuspended 185 kLastStateType = _lldb.kLastStateType 186 eLaunchFlagNone = _lldb.eLaunchFlagNone 187 eLaunchFlagExec = _lldb.eLaunchFlagExec 188 eLaunchFlagDebug = _lldb.eLaunchFlagDebug 189 eLaunchFlagStopAtEntry = _lldb.eLaunchFlagStopAtEntry 190 eLaunchFlagDisableASLR = _lldb.eLaunchFlagDisableASLR 191 eLaunchFlagDisableSTDIO = _lldb.eLaunchFlagDisableSTDIO 192 eLaunchFlagLaunchInTTY = _lldb.eLaunchFlagLaunchInTTY 193 eLaunchFlagLaunchInShell = _lldb.eLaunchFlagLaunchInShell 194 eLaunchFlagLaunchInSeparateProcessGroup = _lldb.eLaunchFlagLaunchInSeparateProcessGroup 195 eLaunchFlagDontSetExitStatus = _lldb.eLaunchFlagDontSetExitStatus 196 eLaunchFlagDetachOnError = _lldb.eLaunchFlagDetachOnError 197 eLaunchFlagShellExpandArguments = _lldb.eLaunchFlagShellExpandArguments 198 eLaunchFlagCloseTTYOnExit = _lldb.eLaunchFlagCloseTTYOnExit 199 eOnlyThisThread = _lldb.eOnlyThisThread 200 eAllThreads = _lldb.eAllThreads 201 eOnlyDuringStepping = _lldb.eOnlyDuringStepping 202 eByteOrderInvalid = _lldb.eByteOrderInvalid 203 eByteOrderBig = _lldb.eByteOrderBig 204 eByteOrderPDP = _lldb.eByteOrderPDP 205 eByteOrderLittle = _lldb.eByteOrderLittle 206 eEncodingInvalid = _lldb.eEncodingInvalid 207 eEncodingUint = _lldb.eEncodingUint 208 eEncodingSint = _lldb.eEncodingSint 209 eEncodingIEEE754 = _lldb.eEncodingIEEE754 210 eEncodingVector = _lldb.eEncodingVector 211 eFormatDefault = _lldb.eFormatDefault 212 eFormatInvalid = _lldb.eFormatInvalid 213 eFormatBoolean = _lldb.eFormatBoolean 214 eFormatBinary = _lldb.eFormatBinary 215 eFormatBytes = _lldb.eFormatBytes 216 eFormatBytesWithASCII = _lldb.eFormatBytesWithASCII 217 eFormatChar = _lldb.eFormatChar 218 eFormatCharPrintable = _lldb.eFormatCharPrintable 219 eFormatComplex = _lldb.eFormatComplex 220 eFormatComplexFloat = _lldb.eFormatComplexFloat 221 eFormatCString = _lldb.eFormatCString 222 eFormatDecimal = _lldb.eFormatDecimal 223 eFormatEnum = _lldb.eFormatEnum 224 eFormatHex = _lldb.eFormatHex 225 eFormatHexUppercase = _lldb.eFormatHexUppercase 226 eFormatFloat = _lldb.eFormatFloat 227 eFormatOctal = _lldb.eFormatOctal 228 eFormatOSType = _lldb.eFormatOSType 229 eFormatUnicode16 = _lldb.eFormatUnicode16 230 eFormatUnicode32 = _lldb.eFormatUnicode32 231 eFormatUnsigned = _lldb.eFormatUnsigned 232 eFormatPointer = _lldb.eFormatPointer 233 eFormatVectorOfChar = _lldb.eFormatVectorOfChar 234 eFormatVectorOfSInt8 = _lldb.eFormatVectorOfSInt8 235 eFormatVectorOfUInt8 = _lldb.eFormatVectorOfUInt8 236 eFormatVectorOfSInt16 = _lldb.eFormatVectorOfSInt16 237 eFormatVectorOfUInt16 = _lldb.eFormatVectorOfUInt16 238 eFormatVectorOfSInt32 = _lldb.eFormatVectorOfSInt32 239 eFormatVectorOfUInt32 = _lldb.eFormatVectorOfUInt32 240 eFormatVectorOfSInt64 = _lldb.eFormatVectorOfSInt64 241 eFormatVectorOfUInt64 = _lldb.eFormatVectorOfUInt64 242 eFormatVectorOfFloat16 = _lldb.eFormatVectorOfFloat16 243 eFormatVectorOfFloat32 = _lldb.eFormatVectorOfFloat32 244 eFormatVectorOfFloat64 = _lldb.eFormatVectorOfFloat64 245 eFormatVectorOfUInt128 = _lldb.eFormatVectorOfUInt128 246 eFormatComplexInteger = _lldb.eFormatComplexInteger 247 eFormatCharArray = _lldb.eFormatCharArray 248 eFormatAddressInfo = _lldb.eFormatAddressInfo 249 eFormatHexFloat = _lldb.eFormatHexFloat 250 eFormatInstruction = _lldb.eFormatInstruction 251 eFormatVoid = _lldb.eFormatVoid 252 kNumFormats = _lldb.kNumFormats 253 eDescriptionLevelBrief = _lldb.eDescriptionLevelBrief 254 eDescriptionLevelFull = _lldb.eDescriptionLevelFull 255 eDescriptionLevelVerbose = _lldb.eDescriptionLevelVerbose 256 eDescriptionLevelInitial = _lldb.eDescriptionLevelInitial 257 kNumDescriptionLevels = _lldb.kNumDescriptionLevels 258 eScriptLanguageNone = _lldb.eScriptLanguageNone 259 eScriptLanguagePython = _lldb.eScriptLanguagePython 260 eScriptLanguageDefault = _lldb.eScriptLanguageDefault 261 eScriptLanguageUnknown = _lldb.eScriptLanguageUnknown 262 eRegisterKindEHFrame = _lldb.eRegisterKindEHFrame 263 eRegisterKindDWARF = _lldb.eRegisterKindDWARF 264 eRegisterKindGeneric = _lldb.eRegisterKindGeneric 265 eRegisterKindProcessPlugin = _lldb.eRegisterKindProcessPlugin 266 eRegisterKindLLDB = _lldb.eRegisterKindLLDB 267 kNumRegisterKinds = _lldb.kNumRegisterKinds 268 eStopReasonInvalid = _lldb.eStopReasonInvalid 269 eStopReasonNone = _lldb.eStopReasonNone 270 eStopReasonTrace = _lldb.eStopReasonTrace 271 eStopReasonBreakpoint = _lldb.eStopReasonBreakpoint 272 eStopReasonWatchpoint = _lldb.eStopReasonWatchpoint 273 eStopReasonSignal = _lldb.eStopReasonSignal 274 eStopReasonException = _lldb.eStopReasonException 275 eStopReasonExec = _lldb.eStopReasonExec 276 eStopReasonPlanComplete = _lldb.eStopReasonPlanComplete 277 eStopReasonThreadExiting = _lldb.eStopReasonThreadExiting 278 eStopReasonInstrumentation = _lldb.eStopReasonInstrumentation 279 eReturnStatusInvalid = _lldb.eReturnStatusInvalid 280 eReturnStatusSuccessFinishNoResult = _lldb.eReturnStatusSuccessFinishNoResult 281 eReturnStatusSuccessFinishResult = _lldb.eReturnStatusSuccessFinishResult 282 eReturnStatusSuccessContinuingNoResult = _lldb.eReturnStatusSuccessContinuingNoResult 283 eReturnStatusSuccessContinuingResult = _lldb.eReturnStatusSuccessContinuingResult 284 eReturnStatusStarted = _lldb.eReturnStatusStarted 285 eReturnStatusFailed = _lldb.eReturnStatusFailed 286 eReturnStatusQuit = _lldb.eReturnStatusQuit 287 eExpressionCompleted = _lldb.eExpressionCompleted 288 eExpressionSetupError = _lldb.eExpressionSetupError 289 eExpressionParseError = _lldb.eExpressionParseError 290 eExpressionDiscarded = _lldb.eExpressionDiscarded 291 eExpressionInterrupted = _lldb.eExpressionInterrupted 292 eExpressionHitBreakpoint = _lldb.eExpressionHitBreakpoint 293 eExpressionTimedOut = _lldb.eExpressionTimedOut 294 eExpressionResultUnavailable = _lldb.eExpressionResultUnavailable 295 eExpressionStoppedForDebug = _lldb.eExpressionStoppedForDebug 296 eSearchDepthInvalid = _lldb.eSearchDepthInvalid 297 eSearchDepthTarget = _lldb.eSearchDepthTarget 298 eSearchDepthModule = _lldb.eSearchDepthModule 299 eSearchDepthCompUnit = _lldb.eSearchDepthCompUnit 300 eSearchDepthFunction = _lldb.eSearchDepthFunction 301 eSearchDepthBlock = _lldb.eSearchDepthBlock 302 eSearchDepthAddress = _lldb.eSearchDepthAddress 303 kLastSearchDepthKind = _lldb.kLastSearchDepthKind 304 eConnectionStatusSuccess = _lldb.eConnectionStatusSuccess 305 eConnectionStatusEndOfFile = _lldb.eConnectionStatusEndOfFile 306 eConnectionStatusError = _lldb.eConnectionStatusError 307 eConnectionStatusTimedOut = _lldb.eConnectionStatusTimedOut 308 eConnectionStatusNoConnection = _lldb.eConnectionStatusNoConnection 309 eConnectionStatusLostConnection = _lldb.eConnectionStatusLostConnection 310 eConnectionStatusInterrupted = _lldb.eConnectionStatusInterrupted 311 eErrorTypeInvalid = _lldb.eErrorTypeInvalid 312 eErrorTypeGeneric = _lldb.eErrorTypeGeneric 313 eErrorTypeMachKernel = _lldb.eErrorTypeMachKernel 314 eErrorTypePOSIX = _lldb.eErrorTypePOSIX 315 eErrorTypeExpression = _lldb.eErrorTypeExpression 316 eErrorTypeWin32 = _lldb.eErrorTypeWin32 317 eValueTypeInvalid = _lldb.eValueTypeInvalid 318 eValueTypeVariableGlobal = _lldb.eValueTypeVariableGlobal 319 eValueTypeVariableStatic = _lldb.eValueTypeVariableStatic 320 eValueTypeVariableArgument = _lldb.eValueTypeVariableArgument 321 eValueTypeVariableLocal = _lldb.eValueTypeVariableLocal 322 eValueTypeRegister = _lldb.eValueTypeRegister 323 eValueTypeRegisterSet = _lldb.eValueTypeRegisterSet 324 eValueTypeConstResult = _lldb.eValueTypeConstResult 325 eValueTypeVariableThreadLocal = _lldb.eValueTypeVariableThreadLocal 326 eInputReaderGranularityInvalid = _lldb.eInputReaderGranularityInvalid 327 eInputReaderGranularityByte = _lldb.eInputReaderGranularityByte 328 eInputReaderGranularityWord = _lldb.eInputReaderGranularityWord 329 eInputReaderGranularityLine = _lldb.eInputReaderGranularityLine 330 eInputReaderGranularityAll = _lldb.eInputReaderGranularityAll 331 eSymbolContextTarget = _lldb.eSymbolContextTarget 332 eSymbolContextModule = _lldb.eSymbolContextModule 333 eSymbolContextCompUnit = _lldb.eSymbolContextCompUnit 334 eSymbolContextFunction = _lldb.eSymbolContextFunction 335 eSymbolContextBlock = _lldb.eSymbolContextBlock 336 eSymbolContextLineEntry = _lldb.eSymbolContextLineEntry 337 eSymbolContextSymbol = _lldb.eSymbolContextSymbol 338 eSymbolContextEverything = _lldb.eSymbolContextEverything 339 eSymbolContextVariable = _lldb.eSymbolContextVariable 340 ePermissionsWritable = _lldb.ePermissionsWritable 341 ePermissionsReadable = _lldb.ePermissionsReadable 342 ePermissionsExecutable = _lldb.ePermissionsExecutable 343 eInputReaderActivate = _lldb.eInputReaderActivate 344 eInputReaderAsynchronousOutputWritten = _lldb.eInputReaderAsynchronousOutputWritten 345 eInputReaderReactivate = _lldb.eInputReaderReactivate 346 eInputReaderDeactivate = _lldb.eInputReaderDeactivate 347 eInputReaderGotToken = _lldb.eInputReaderGotToken 348 eInputReaderInterrupt = _lldb.eInputReaderInterrupt 349 eInputReaderEndOfFile = _lldb.eInputReaderEndOfFile 350 eInputReaderDone = _lldb.eInputReaderDone 351 eBreakpointEventTypeInvalidType = _lldb.eBreakpointEventTypeInvalidType 352 eBreakpointEventTypeAdded = _lldb.eBreakpointEventTypeAdded 353 eBreakpointEventTypeRemoved = _lldb.eBreakpointEventTypeRemoved 354 eBreakpointEventTypeLocationsAdded = _lldb.eBreakpointEventTypeLocationsAdded 355 eBreakpointEventTypeLocationsRemoved = _lldb.eBreakpointEventTypeLocationsRemoved 356 eBreakpointEventTypeLocationsResolved = _lldb.eBreakpointEventTypeLocationsResolved 357 eBreakpointEventTypeEnabled = _lldb.eBreakpointEventTypeEnabled 358 eBreakpointEventTypeDisabled = _lldb.eBreakpointEventTypeDisabled 359 eBreakpointEventTypeCommandChanged = _lldb.eBreakpointEventTypeCommandChanged 360 eBreakpointEventTypeConditionChanged = _lldb.eBreakpointEventTypeConditionChanged 361 eBreakpointEventTypeIgnoreChanged = _lldb.eBreakpointEventTypeIgnoreChanged 362 eBreakpointEventTypeThreadChanged = _lldb.eBreakpointEventTypeThreadChanged 363 eBreakpointEventTypeAutoContinueChanged = _lldb.eBreakpointEventTypeAutoContinueChanged 364 eWatchpointEventTypeInvalidType = _lldb.eWatchpointEventTypeInvalidType 365 eWatchpointEventTypeAdded = _lldb.eWatchpointEventTypeAdded 366 eWatchpointEventTypeRemoved = _lldb.eWatchpointEventTypeRemoved 367 eWatchpointEventTypeEnabled = _lldb.eWatchpointEventTypeEnabled 368 eWatchpointEventTypeDisabled = _lldb.eWatchpointEventTypeDisabled 369 eWatchpointEventTypeCommandChanged = _lldb.eWatchpointEventTypeCommandChanged 370 eWatchpointEventTypeConditionChanged = _lldb.eWatchpointEventTypeConditionChanged 371 eWatchpointEventTypeIgnoreChanged = _lldb.eWatchpointEventTypeIgnoreChanged 372 eWatchpointEventTypeThreadChanged = _lldb.eWatchpointEventTypeThreadChanged 373 eWatchpointEventTypeTypeChanged = _lldb.eWatchpointEventTypeTypeChanged 374 eLanguageTypeUnknown = _lldb.eLanguageTypeUnknown 375 eLanguageTypeC89 = _lldb.eLanguageTypeC89 376 eLanguageTypeC = _lldb.eLanguageTypeC 377 eLanguageTypeAda83 = _lldb.eLanguageTypeAda83 378 eLanguageTypeC_plus_plus = _lldb.eLanguageTypeC_plus_plus 379 eLanguageTypeCobol74 = _lldb.eLanguageTypeCobol74 380 eLanguageTypeCobol85 = _lldb.eLanguageTypeCobol85 381 eLanguageTypeFortran77 = _lldb.eLanguageTypeFortran77 382 eLanguageTypeFortran90 = _lldb.eLanguageTypeFortran90 383 eLanguageTypePascal83 = _lldb.eLanguageTypePascal83 384 eLanguageTypeModula2 = _lldb.eLanguageTypeModula2 385 eLanguageTypeJava = _lldb.eLanguageTypeJava 386 eLanguageTypeC99 = _lldb.eLanguageTypeC99 387 eLanguageTypeAda95 = _lldb.eLanguageTypeAda95 388 eLanguageTypeFortran95 = _lldb.eLanguageTypeFortran95 389 eLanguageTypePLI = _lldb.eLanguageTypePLI 390 eLanguageTypeObjC = _lldb.eLanguageTypeObjC 391 eLanguageTypeObjC_plus_plus = _lldb.eLanguageTypeObjC_plus_plus 392 eLanguageTypeUPC = _lldb.eLanguageTypeUPC 393 eLanguageTypeD = _lldb.eLanguageTypeD 394 eLanguageTypePython = _lldb.eLanguageTypePython 395 eLanguageTypeOpenCL = _lldb.eLanguageTypeOpenCL 396 eLanguageTypeGo = _lldb.eLanguageTypeGo 397 eLanguageTypeModula3 = _lldb.eLanguageTypeModula3 398 eLanguageTypeHaskell = _lldb.eLanguageTypeHaskell 399 eLanguageTypeC_plus_plus_03 = _lldb.eLanguageTypeC_plus_plus_03 400 eLanguageTypeC_plus_plus_11 = _lldb.eLanguageTypeC_plus_plus_11 401 eLanguageTypeOCaml = _lldb.eLanguageTypeOCaml 402 eLanguageTypeRust = _lldb.eLanguageTypeRust 403 eLanguageTypeC11 = _lldb.eLanguageTypeC11 404 eLanguageTypeSwift = _lldb.eLanguageTypeSwift 405 eLanguageTypeJulia = _lldb.eLanguageTypeJulia 406 eLanguageTypeDylan = _lldb.eLanguageTypeDylan 407 eLanguageTypeC_plus_plus_14 = _lldb.eLanguageTypeC_plus_plus_14 408 eLanguageTypeFortran03 = _lldb.eLanguageTypeFortran03 409 eLanguageTypeFortran08 = _lldb.eLanguageTypeFortran08 410 eLanguageTypeMipsAssembler = _lldb.eLanguageTypeMipsAssembler 411 eLanguageTypeExtRenderScript = _lldb.eLanguageTypeExtRenderScript 412 eNumLanguageTypes = _lldb.eNumLanguageTypes 413 eInstrumentationRuntimeTypeAddressSanitizer = _lldb.eInstrumentationRuntimeTypeAddressSanitizer 414 eInstrumentationRuntimeTypeThreadSanitizer = _lldb.eInstrumentationRuntimeTypeThreadSanitizer 415 eInstrumentationRuntimeTypeUndefinedBehaviorSanitizer = _lldb.eInstrumentationRuntimeTypeUndefinedBehaviorSanitizer 416 eInstrumentationRuntimeTypeMainThreadChecker = _lldb.eInstrumentationRuntimeTypeMainThreadChecker 417 eInstrumentationRuntimeTypeSwiftRuntimeReporting = _lldb.eInstrumentationRuntimeTypeSwiftRuntimeReporting 418 eNumInstrumentationRuntimeTypes = _lldb.eNumInstrumentationRuntimeTypes 419 eNoDynamicValues = _lldb.eNoDynamicValues 420 eDynamicCanRunTarget = _lldb.eDynamicCanRunTarget 421 eDynamicDontRunTarget = _lldb.eDynamicDontRunTarget 422 eStopShowColumnAnsiOrCaret = _lldb.eStopShowColumnAnsiOrCaret 423 eStopShowColumnAnsi = _lldb.eStopShowColumnAnsi 424 eStopShowColumnCaret = _lldb.eStopShowColumnCaret 425 eStopShowColumnNone = _lldb.eStopShowColumnNone 426 eAccessNone = _lldb.eAccessNone 427 eAccessPublic = _lldb.eAccessPublic 428 eAccessPrivate = _lldb.eAccessPrivate 429 eAccessProtected = _lldb.eAccessProtected 430 eAccessPackage = _lldb.eAccessPackage 431 eArgTypeAddress = _lldb.eArgTypeAddress 432 eArgTypeAddressOrExpression = _lldb.eArgTypeAddressOrExpression 433 eArgTypeAliasName = _lldb.eArgTypeAliasName 434 eArgTypeAliasOptions = _lldb.eArgTypeAliasOptions 435 eArgTypeArchitecture = _lldb.eArgTypeArchitecture 436 eArgTypeBoolean = _lldb.eArgTypeBoolean 437 eArgTypeBreakpointID = _lldb.eArgTypeBreakpointID 438 eArgTypeBreakpointIDRange = _lldb.eArgTypeBreakpointIDRange 439 eArgTypeBreakpointName = _lldb.eArgTypeBreakpointName 440 eArgTypeByteSize = _lldb.eArgTypeByteSize 441 eArgTypeClassName = _lldb.eArgTypeClassName 442 eArgTypeCommandName = _lldb.eArgTypeCommandName 443 eArgTypeCount = _lldb.eArgTypeCount 444 eArgTypeDescriptionVerbosity = _lldb.eArgTypeDescriptionVerbosity 445 eArgTypeDirectoryName = _lldb.eArgTypeDirectoryName 446 eArgTypeDisassemblyFlavor = _lldb.eArgTypeDisassemblyFlavor 447 eArgTypeEndAddress = _lldb.eArgTypeEndAddress 448 eArgTypeExpression = _lldb.eArgTypeExpression 449 eArgTypeExpressionPath = _lldb.eArgTypeExpressionPath 450 eArgTypeExprFormat = _lldb.eArgTypeExprFormat 451 eArgTypeFilename = _lldb.eArgTypeFilename 452 eArgTypeFormat = _lldb.eArgTypeFormat 453 eArgTypeFrameIndex = _lldb.eArgTypeFrameIndex 454 eArgTypeFullName = _lldb.eArgTypeFullName 455 eArgTypeFunctionName = _lldb.eArgTypeFunctionName 456 eArgTypeFunctionOrSymbol = _lldb.eArgTypeFunctionOrSymbol 457 eArgTypeGDBFormat = _lldb.eArgTypeGDBFormat 458 eArgTypeHelpText = _lldb.eArgTypeHelpText 459 eArgTypeIndex = _lldb.eArgTypeIndex 460 eArgTypeLanguage = _lldb.eArgTypeLanguage 461 eArgTypeLineNum = _lldb.eArgTypeLineNum 462 eArgTypeLogCategory = _lldb.eArgTypeLogCategory 463 eArgTypeLogChannel = _lldb.eArgTypeLogChannel 464 eArgTypeMethod = _lldb.eArgTypeMethod 465 eArgTypeName = _lldb.eArgTypeName 466 eArgTypeNewPathPrefix = _lldb.eArgTypeNewPathPrefix 467 eArgTypeNumLines = _lldb.eArgTypeNumLines 468 eArgTypeNumberPerLine = _lldb.eArgTypeNumberPerLine 469 eArgTypeOffset = _lldb.eArgTypeOffset 470 eArgTypeOldPathPrefix = _lldb.eArgTypeOldPathPrefix 471 eArgTypeOneLiner = _lldb.eArgTypeOneLiner 472 eArgTypePath = _lldb.eArgTypePath 473 eArgTypePermissionsNumber = _lldb.eArgTypePermissionsNumber 474 eArgTypePermissionsString = _lldb.eArgTypePermissionsString 475 eArgTypePid = _lldb.eArgTypePid 476 eArgTypePlugin = _lldb.eArgTypePlugin 477 eArgTypeProcessName = _lldb.eArgTypeProcessName 478 eArgTypePythonClass = _lldb.eArgTypePythonClass 479 eArgTypePythonFunction = _lldb.eArgTypePythonFunction 480 eArgTypePythonScript = _lldb.eArgTypePythonScript 481 eArgTypeQueueName = _lldb.eArgTypeQueueName 482 eArgTypeRegisterName = _lldb.eArgTypeRegisterName 483 eArgTypeRegularExpression = _lldb.eArgTypeRegularExpression 484 eArgTypeRunArgs = _lldb.eArgTypeRunArgs 485 eArgTypeRunMode = _lldb.eArgTypeRunMode 486 eArgTypeScriptedCommandSynchronicity = _lldb.eArgTypeScriptedCommandSynchronicity 487 eArgTypeScriptLang = _lldb.eArgTypeScriptLang 488 eArgTypeSearchWord = _lldb.eArgTypeSearchWord 489 eArgTypeSelector = _lldb.eArgTypeSelector 490 eArgTypeSettingIndex = _lldb.eArgTypeSettingIndex 491 eArgTypeSettingKey = _lldb.eArgTypeSettingKey 492 eArgTypeSettingPrefix = _lldb.eArgTypeSettingPrefix 493 eArgTypeSettingVariableName = _lldb.eArgTypeSettingVariableName 494 eArgTypeShlibName = _lldb.eArgTypeShlibName 495 eArgTypeSourceFile = _lldb.eArgTypeSourceFile 496 eArgTypeSortOrder = _lldb.eArgTypeSortOrder 497 eArgTypeStartAddress = _lldb.eArgTypeStartAddress 498 eArgTypeSummaryString = _lldb.eArgTypeSummaryString 499 eArgTypeSymbol = _lldb.eArgTypeSymbol 500 eArgTypeThreadID = _lldb.eArgTypeThreadID 501 eArgTypeThreadIndex = _lldb.eArgTypeThreadIndex 502 eArgTypeThreadName = _lldb.eArgTypeThreadName 503 eArgTypeTypeName = _lldb.eArgTypeTypeName 504 eArgTypeUnsignedInteger = _lldb.eArgTypeUnsignedInteger 505 eArgTypeUnixSignal = _lldb.eArgTypeUnixSignal 506 eArgTypeVarName = _lldb.eArgTypeVarName 507 eArgTypeValue = _lldb.eArgTypeValue 508 eArgTypeWidth = _lldb.eArgTypeWidth 509 eArgTypeNone = _lldb.eArgTypeNone 510 eArgTypePlatform = _lldb.eArgTypePlatform 511 eArgTypeWatchpointID = _lldb.eArgTypeWatchpointID 512 eArgTypeWatchpointIDRange = _lldb.eArgTypeWatchpointIDRange 513 eArgTypeWatchType = _lldb.eArgTypeWatchType 514 eArgRawInput = _lldb.eArgRawInput 515 eArgTypeCommand = _lldb.eArgTypeCommand 516 eArgTypeLastArg = _lldb.eArgTypeLastArg 517 eSymbolTypeAny = _lldb.eSymbolTypeAny 518 eSymbolTypeInvalid = _lldb.eSymbolTypeInvalid 519 eSymbolTypeAbsolute = _lldb.eSymbolTypeAbsolute 520 eSymbolTypeCode = _lldb.eSymbolTypeCode 521 eSymbolTypeResolver = _lldb.eSymbolTypeResolver 522 eSymbolTypeData = _lldb.eSymbolTypeData 523 eSymbolTypeTrampoline = _lldb.eSymbolTypeTrampoline 524 eSymbolTypeRuntime = _lldb.eSymbolTypeRuntime 525 eSymbolTypeException = _lldb.eSymbolTypeException 526 eSymbolTypeSourceFile = _lldb.eSymbolTypeSourceFile 527 eSymbolTypeHeaderFile = _lldb.eSymbolTypeHeaderFile 528 eSymbolTypeObjectFile = _lldb.eSymbolTypeObjectFile 529 eSymbolTypeCommonBlock = _lldb.eSymbolTypeCommonBlock 530 eSymbolTypeBlock = _lldb.eSymbolTypeBlock 531 eSymbolTypeLocal = _lldb.eSymbolTypeLocal 532 eSymbolTypeParam = _lldb.eSymbolTypeParam 533 eSymbolTypeVariable = _lldb.eSymbolTypeVariable 534 eSymbolTypeVariableType = _lldb.eSymbolTypeVariableType 535 eSymbolTypeLineEntry = _lldb.eSymbolTypeLineEntry 536 eSymbolTypeLineHeader = _lldb.eSymbolTypeLineHeader 537 eSymbolTypeScopeBegin = _lldb.eSymbolTypeScopeBegin 538 eSymbolTypeScopeEnd = _lldb.eSymbolTypeScopeEnd 539 eSymbolTypeAdditional = _lldb.eSymbolTypeAdditional 540 eSymbolTypeCompiler = _lldb.eSymbolTypeCompiler 541 eSymbolTypeInstrumentation = _lldb.eSymbolTypeInstrumentation 542 eSymbolTypeUndefined = _lldb.eSymbolTypeUndefined 543 eSymbolTypeObjCClass = _lldb.eSymbolTypeObjCClass 544 eSymbolTypeObjCMetaClass = _lldb.eSymbolTypeObjCMetaClass 545 eSymbolTypeObjCIVar = _lldb.eSymbolTypeObjCIVar 546 eSymbolTypeReExported = _lldb.eSymbolTypeReExported 547 eSectionTypeInvalid = _lldb.eSectionTypeInvalid 548 eSectionTypeCode = _lldb.eSectionTypeCode 549 eSectionTypeContainer = _lldb.eSectionTypeContainer 550 eSectionTypeData = _lldb.eSectionTypeData 551 eSectionTypeDataCString = _lldb.eSectionTypeDataCString 552 eSectionTypeDataCStringPointers = _lldb.eSectionTypeDataCStringPointers 553 eSectionTypeDataSymbolAddress = _lldb.eSectionTypeDataSymbolAddress 554 eSectionTypeData4 = _lldb.eSectionTypeData4 555 eSectionTypeData8 = _lldb.eSectionTypeData8 556 eSectionTypeData16 = _lldb.eSectionTypeData16 557 eSectionTypeDataPointers = _lldb.eSectionTypeDataPointers 558 eSectionTypeDebug = _lldb.eSectionTypeDebug 559 eSectionTypeZeroFill = _lldb.eSectionTypeZeroFill 560 eSectionTypeDataObjCMessageRefs = _lldb.eSectionTypeDataObjCMessageRefs 561 eSectionTypeDataObjCCFStrings = _lldb.eSectionTypeDataObjCCFStrings 562 eSectionTypeDWARFDebugAbbrev = _lldb.eSectionTypeDWARFDebugAbbrev 563 eSectionTypeDWARFDebugAddr = _lldb.eSectionTypeDWARFDebugAddr 564 eSectionTypeDWARFDebugAranges = _lldb.eSectionTypeDWARFDebugAranges 565 eSectionTypeDWARFDebugCuIndex = _lldb.eSectionTypeDWARFDebugCuIndex 566 eSectionTypeDWARFDebugFrame = _lldb.eSectionTypeDWARFDebugFrame 567 eSectionTypeDWARFDebugInfo = _lldb.eSectionTypeDWARFDebugInfo 568 eSectionTypeDWARFDebugLine = _lldb.eSectionTypeDWARFDebugLine 569 eSectionTypeDWARFDebugLoc = _lldb.eSectionTypeDWARFDebugLoc 570 eSectionTypeDWARFDebugMacInfo = _lldb.eSectionTypeDWARFDebugMacInfo 571 eSectionTypeDWARFDebugMacro = _lldb.eSectionTypeDWARFDebugMacro 572 eSectionTypeDWARFDebugPubNames = _lldb.eSectionTypeDWARFDebugPubNames 573 eSectionTypeDWARFDebugPubTypes = _lldb.eSectionTypeDWARFDebugPubTypes 574 eSectionTypeDWARFDebugRanges = _lldb.eSectionTypeDWARFDebugRanges 575 eSectionTypeDWARFDebugStr = _lldb.eSectionTypeDWARFDebugStr 576 eSectionTypeDWARFDebugStrOffsets = _lldb.eSectionTypeDWARFDebugStrOffsets 577 eSectionTypeDWARFAppleNames = _lldb.eSectionTypeDWARFAppleNames 578 eSectionTypeDWARFAppleTypes = _lldb.eSectionTypeDWARFAppleTypes 579 eSectionTypeDWARFAppleNamespaces = _lldb.eSectionTypeDWARFAppleNamespaces 580 eSectionTypeDWARFAppleObjC = _lldb.eSectionTypeDWARFAppleObjC 581 eSectionTypeELFSymbolTable = _lldb.eSectionTypeELFSymbolTable 582 eSectionTypeELFDynamicSymbols = _lldb.eSectionTypeELFDynamicSymbols 583 eSectionTypeELFRelocationEntries = _lldb.eSectionTypeELFRelocationEntries 584 eSectionTypeELFDynamicLinkInfo = _lldb.eSectionTypeELFDynamicLinkInfo 585 eSectionTypeEHFrame = _lldb.eSectionTypeEHFrame 586 eSectionTypeARMexidx = _lldb.eSectionTypeARMexidx 587 eSectionTypeARMextab = _lldb.eSectionTypeARMextab 588 eSectionTypeCompactUnwind = _lldb.eSectionTypeCompactUnwind 589 eSectionTypeGoSymtab = _lldb.eSectionTypeGoSymtab 590 eSectionTypeAbsoluteAddress = _lldb.eSectionTypeAbsoluteAddress 591 eSectionTypeDWARFGNUDebugAltLink = _lldb.eSectionTypeDWARFGNUDebugAltLink 592 eSectionTypeDWARFDebugTypes = _lldb.eSectionTypeDWARFDebugTypes 593 eSectionTypeDWARFDebugNames = _lldb.eSectionTypeDWARFDebugNames 594 eSectionTypeOther = _lldb.eSectionTypeOther 595 eSectionTypeDWARFDebugLineStr = _lldb.eSectionTypeDWARFDebugLineStr 596 eSectionTypeDWARFDebugRngLists = _lldb.eSectionTypeDWARFDebugRngLists 597 eSectionTypeDWARFDebugLocLists = _lldb.eSectionTypeDWARFDebugLocLists 598 eSectionTypeDWARFDebugAbbrevDwo = _lldb.eSectionTypeDWARFDebugAbbrevDwo 599 eSectionTypeDWARFDebugInfoDwo = _lldb.eSectionTypeDWARFDebugInfoDwo 600 eSectionTypeDWARFDebugStrDwo = _lldb.eSectionTypeDWARFDebugStrDwo 601 eSectionTypeDWARFDebugStrOffsetsDwo = _lldb.eSectionTypeDWARFDebugStrOffsetsDwo 602 eEmulateInstructionOptionNone = _lldb.eEmulateInstructionOptionNone 603 eEmulateInstructionOptionAutoAdvancePC = _lldb.eEmulateInstructionOptionAutoAdvancePC 604 eEmulateInstructionOptionIgnoreConditions = _lldb.eEmulateInstructionOptionIgnoreConditions 605 eFunctionNameTypeNone = _lldb.eFunctionNameTypeNone 606 eFunctionNameTypeAuto = _lldb.eFunctionNameTypeAuto 607 eFunctionNameTypeFull = _lldb.eFunctionNameTypeFull 608 eFunctionNameTypeBase = _lldb.eFunctionNameTypeBase 609 eFunctionNameTypeMethod = _lldb.eFunctionNameTypeMethod 610 eFunctionNameTypeSelector = _lldb.eFunctionNameTypeSelector 611 eFunctionNameTypeAny = _lldb.eFunctionNameTypeAny 612 eBasicTypeInvalid = _lldb.eBasicTypeInvalid 613 eBasicTypeVoid = _lldb.eBasicTypeVoid 614 eBasicTypeChar = _lldb.eBasicTypeChar 615 eBasicTypeSignedChar = _lldb.eBasicTypeSignedChar 616 eBasicTypeUnsignedChar = _lldb.eBasicTypeUnsignedChar 617 eBasicTypeWChar = _lldb.eBasicTypeWChar 618 eBasicTypeSignedWChar = _lldb.eBasicTypeSignedWChar 619 eBasicTypeUnsignedWChar = _lldb.eBasicTypeUnsignedWChar 620 eBasicTypeChar16 = _lldb.eBasicTypeChar16 621 eBasicTypeChar32 = _lldb.eBasicTypeChar32 622 eBasicTypeShort = _lldb.eBasicTypeShort 623 eBasicTypeUnsignedShort = _lldb.eBasicTypeUnsignedShort 624 eBasicTypeInt = _lldb.eBasicTypeInt 625 eBasicTypeUnsignedInt = _lldb.eBasicTypeUnsignedInt 626 eBasicTypeLong = _lldb.eBasicTypeLong 627 eBasicTypeUnsignedLong = _lldb.eBasicTypeUnsignedLong 628 eBasicTypeLongLong = _lldb.eBasicTypeLongLong 629 eBasicTypeUnsignedLongLong = _lldb.eBasicTypeUnsignedLongLong 630 eBasicTypeInt128 = _lldb.eBasicTypeInt128 631 eBasicTypeUnsignedInt128 = _lldb.eBasicTypeUnsignedInt128 632 eBasicTypeBool = _lldb.eBasicTypeBool 633 eBasicTypeHalf = _lldb.eBasicTypeHalf 634 eBasicTypeFloat = _lldb.eBasicTypeFloat 635 eBasicTypeDouble = _lldb.eBasicTypeDouble 636 eBasicTypeLongDouble = _lldb.eBasicTypeLongDouble 637 eBasicTypeFloatComplex = _lldb.eBasicTypeFloatComplex 638 eBasicTypeDoubleComplex = _lldb.eBasicTypeDoubleComplex 639 eBasicTypeLongDoubleComplex = _lldb.eBasicTypeLongDoubleComplex 640 eBasicTypeObjCID = _lldb.eBasicTypeObjCID 641 eBasicTypeObjCClass = _lldb.eBasicTypeObjCClass 642 eBasicTypeObjCSel = _lldb.eBasicTypeObjCSel 643 eBasicTypeNullPtr = _lldb.eBasicTypeNullPtr 644 eBasicTypeOther = _lldb.eBasicTypeOther 645 eTraceTypeNone = _lldb.eTraceTypeNone 646 eTraceTypeProcessorTrace = _lldb.eTraceTypeProcessorTrace 647 eStructuredDataTypeInvalid = _lldb.eStructuredDataTypeInvalid 648 eStructuredDataTypeNull = _lldb.eStructuredDataTypeNull 649 eStructuredDataTypeGeneric = _lldb.eStructuredDataTypeGeneric 650 eStructuredDataTypeArray = _lldb.eStructuredDataTypeArray 651 eStructuredDataTypeInteger = _lldb.eStructuredDataTypeInteger 652 eStructuredDataTypeFloat = _lldb.eStructuredDataTypeFloat 653 eStructuredDataTypeBoolean = _lldb.eStructuredDataTypeBoolean 654 eStructuredDataTypeString = _lldb.eStructuredDataTypeString 655 eStructuredDataTypeDictionary = _lldb.eStructuredDataTypeDictionary 656 eTypeClassInvalid = _lldb.eTypeClassInvalid 657 eTypeClassArray = _lldb.eTypeClassArray 658 eTypeClassBlockPointer = _lldb.eTypeClassBlockPointer 659 eTypeClassBuiltin = _lldb.eTypeClassBuiltin 660 eTypeClassClass = _lldb.eTypeClassClass 661 eTypeClassComplexFloat = _lldb.eTypeClassComplexFloat 662 eTypeClassComplexInteger = _lldb.eTypeClassComplexInteger 663 eTypeClassEnumeration = _lldb.eTypeClassEnumeration 664 eTypeClassFunction = _lldb.eTypeClassFunction 665 eTypeClassMemberPointer = _lldb.eTypeClassMemberPointer 666 eTypeClassObjCObject = _lldb.eTypeClassObjCObject 667 eTypeClassObjCInterface = _lldb.eTypeClassObjCInterface 668 eTypeClassObjCObjectPointer = _lldb.eTypeClassObjCObjectPointer 669 eTypeClassPointer = _lldb.eTypeClassPointer 670 eTypeClassReference = _lldb.eTypeClassReference 671 eTypeClassStruct = _lldb.eTypeClassStruct 672 eTypeClassTypedef = _lldb.eTypeClassTypedef 673 eTypeClassUnion = _lldb.eTypeClassUnion 674 eTypeClassVector = _lldb.eTypeClassVector 675 eTypeClassOther = _lldb.eTypeClassOther 676 eTypeClassAny = _lldb.eTypeClassAny 677 eTemplateArgumentKindNull = _lldb.eTemplateArgumentKindNull 678 eTemplateArgumentKindType = _lldb.eTemplateArgumentKindType 679 eTemplateArgumentKindDeclaration = _lldb.eTemplateArgumentKindDeclaration 680 eTemplateArgumentKindIntegral = _lldb.eTemplateArgumentKindIntegral 681 eTemplateArgumentKindTemplate = _lldb.eTemplateArgumentKindTemplate 682 eTemplateArgumentKindTemplateExpansion = _lldb.eTemplateArgumentKindTemplateExpansion 683 eTemplateArgumentKindExpression = _lldb.eTemplateArgumentKindExpression 684 eTemplateArgumentKindPack = _lldb.eTemplateArgumentKindPack 685 eTemplateArgumentKindNullPtr = _lldb.eTemplateArgumentKindNullPtr 686 eTypeOptionNone = _lldb.eTypeOptionNone 687 eTypeOptionCascade = _lldb.eTypeOptionCascade 688 eTypeOptionSkipPointers = _lldb.eTypeOptionSkipPointers 689 eTypeOptionSkipReferences = _lldb.eTypeOptionSkipReferences 690 eTypeOptionHideChildren = _lldb.eTypeOptionHideChildren 691 eTypeOptionHideValue = _lldb.eTypeOptionHideValue 692 eTypeOptionShowOneLiner = _lldb.eTypeOptionShowOneLiner 693 eTypeOptionHideNames = _lldb.eTypeOptionHideNames 694 eTypeOptionNonCacheable = _lldb.eTypeOptionNonCacheable 695 eTypeOptionHideEmptyAggregates = _lldb.eTypeOptionHideEmptyAggregates 696 eTypeOptionFrontEndWantsDereference = _lldb.eTypeOptionFrontEndWantsDereference 697 eFrameCompareInvalid = _lldb.eFrameCompareInvalid 698 eFrameCompareUnknown = _lldb.eFrameCompareUnknown 699 eFrameCompareEqual = _lldb.eFrameCompareEqual 700 eFrameCompareSameParent = _lldb.eFrameCompareSameParent 701 eFrameCompareYounger = _lldb.eFrameCompareYounger 702 eFrameCompareOlder = _lldb.eFrameCompareOlder 703 eFilePermissionsUserRead = _lldb.eFilePermissionsUserRead 704 eFilePermissionsUserWrite = _lldb.eFilePermissionsUserWrite 705 eFilePermissionsUserExecute = _lldb.eFilePermissionsUserExecute 706 eFilePermissionsGroupRead = _lldb.eFilePermissionsGroupRead 707 eFilePermissionsGroupWrite = _lldb.eFilePermissionsGroupWrite 708 eFilePermissionsGroupExecute = _lldb.eFilePermissionsGroupExecute 709 eFilePermissionsWorldRead = _lldb.eFilePermissionsWorldRead 710 eFilePermissionsWorldWrite = _lldb.eFilePermissionsWorldWrite 711 eFilePermissionsWorldExecute = _lldb.eFilePermissionsWorldExecute 712 eFilePermissionsUserRW = _lldb.eFilePermissionsUserRW 713 eFileFilePermissionsUserRX = _lldb.eFileFilePermissionsUserRX 714 eFilePermissionsUserRWX = _lldb.eFilePermissionsUserRWX 715 eFilePermissionsGroupRW = _lldb.eFilePermissionsGroupRW 716 eFilePermissionsGroupRX = _lldb.eFilePermissionsGroupRX 717 eFilePermissionsGroupRWX = _lldb.eFilePermissionsGroupRWX 718 eFilePermissionsWorldRW = _lldb.eFilePermissionsWorldRW 719 eFilePermissionsWorldRX = _lldb.eFilePermissionsWorldRX 720 eFilePermissionsWorldRWX = _lldb.eFilePermissionsWorldRWX 721 eFilePermissionsEveryoneR = _lldb.eFilePermissionsEveryoneR 722 eFilePermissionsEveryoneW = _lldb.eFilePermissionsEveryoneW 723 eFilePermissionsEveryoneX = _lldb.eFilePermissionsEveryoneX 724 eFilePermissionsEveryoneRW = _lldb.eFilePermissionsEveryoneRW 725 eFilePermissionsEveryoneRX = _lldb.eFilePermissionsEveryoneRX 726 eFilePermissionsEveryoneRWX = _lldb.eFilePermissionsEveryoneRWX 727 eFilePermissionsFileDefault = _lldb.eFilePermissionsFileDefault 728 eFilePermissionsDirectoryDefault = _lldb.eFilePermissionsDirectoryDefault 729 eQueueItemKindUnknown = _lldb.eQueueItemKindUnknown 730 eQueueItemKindFunction = _lldb.eQueueItemKindFunction 731 eQueueItemKindBlock = _lldb.eQueueItemKindBlock 732 eQueueKindUnknown = _lldb.eQueueKindUnknown 733 eQueueKindSerial = _lldb.eQueueKindSerial 734 eQueueKindConcurrent = _lldb.eQueueKindConcurrent 735 eExpressionEvaluationParse = _lldb.eExpressionEvaluationParse 736 eExpressionEvaluationIRGen = _lldb.eExpressionEvaluationIRGen 737 eExpressionEvaluationExecution = _lldb.eExpressionEvaluationExecution 738 eExpressionEvaluationComplete = _lldb.eExpressionEvaluationComplete 739 eWatchpointKindWrite = _lldb.eWatchpointKindWrite 740 eWatchpointKindRead = _lldb.eWatchpointKindRead 741 eGdbSignalBadAccess = _lldb.eGdbSignalBadAccess 742 eGdbSignalBadInstruction = _lldb.eGdbSignalBadInstruction 743 eGdbSignalArithmetic = _lldb.eGdbSignalArithmetic 744 eGdbSignalEmulation = _lldb.eGdbSignalEmulation 745 eGdbSignalSoftware = _lldb.eGdbSignalSoftware 746 eGdbSignalBreakpoint = _lldb.eGdbSignalBreakpoint 747 ePathTypeLLDBShlibDir = _lldb.ePathTypeLLDBShlibDir 748 ePathTypeSupportExecutableDir = _lldb.ePathTypeSupportExecutableDir 749 ePathTypeHeaderDir = _lldb.ePathTypeHeaderDir 750 ePathTypePythonDir = _lldb.ePathTypePythonDir 751 ePathTypeLLDBSystemPlugins = _lldb.ePathTypeLLDBSystemPlugins 752 ePathTypeLLDBUserPlugins = _lldb.ePathTypeLLDBUserPlugins 753 ePathTypeLLDBTempSystemDir = _lldb.ePathTypeLLDBTempSystemDir 754 ePathTypeGlobalLLDBTempSystemDir = _lldb.ePathTypeGlobalLLDBTempSystemDir 755 ePathTypeClangDir = _lldb.ePathTypeClangDir 756 eMemberFunctionKindUnknown = _lldb.eMemberFunctionKindUnknown 757 eMemberFunctionKindConstructor = _lldb.eMemberFunctionKindConstructor 758 eMemberFunctionKindDestructor = _lldb.eMemberFunctionKindDestructor 759 eMemberFunctionKindInstanceMethod = _lldb.eMemberFunctionKindInstanceMethod 760 eMemberFunctionKindStaticMethod = _lldb.eMemberFunctionKindStaticMethod 761 eMatchTypeNormal = _lldb.eMatchTypeNormal 762 eMatchTypeRegex = _lldb.eMatchTypeRegex 763 eMatchTypeStartsWith = _lldb.eMatchTypeStartsWith 764 eTypeHasChildren = _lldb.eTypeHasChildren 765 eTypeHasValue = _lldb.eTypeHasValue 766 eTypeIsArray = _lldb.eTypeIsArray 767 eTypeIsBlock = _lldb.eTypeIsBlock 768 eTypeIsBuiltIn = _lldb.eTypeIsBuiltIn 769 eTypeIsClass = _lldb.eTypeIsClass 770 eTypeIsCPlusPlus = _lldb.eTypeIsCPlusPlus 771 eTypeIsEnumeration = _lldb.eTypeIsEnumeration 772 eTypeIsFuncPrototype = _lldb.eTypeIsFuncPrototype 773 eTypeIsMember = _lldb.eTypeIsMember 774 eTypeIsObjC = _lldb.eTypeIsObjC 775 eTypeIsPointer = _lldb.eTypeIsPointer 776 eTypeIsReference = _lldb.eTypeIsReference 777 eTypeIsStructUnion = _lldb.eTypeIsStructUnion 778 eTypeIsTemplate = _lldb.eTypeIsTemplate 779 eTypeIsTypedef = _lldb.eTypeIsTypedef 780 eTypeIsVector = _lldb.eTypeIsVector 781 eTypeIsScalar = _lldb.eTypeIsScalar 782 eTypeIsInteger = _lldb.eTypeIsInteger 783 eTypeIsFloat = _lldb.eTypeIsFloat 784 eTypeIsComplex = _lldb.eTypeIsComplex 785 eTypeIsSigned = _lldb.eTypeIsSigned 786 eTypeInstanceIsPointer = _lldb.eTypeInstanceIsPointer 787 eCommandRequiresTarget = _lldb.eCommandRequiresTarget 788 eCommandRequiresProcess = _lldb.eCommandRequiresProcess 789 eCommandRequiresThread = _lldb.eCommandRequiresThread 790 eCommandRequiresFrame = _lldb.eCommandRequiresFrame 791 eCommandRequiresRegContext = _lldb.eCommandRequiresRegContext 792 eCommandTryTargetAPILock = _lldb.eCommandTryTargetAPILock 793 eCommandProcessMustBeLaunched = _lldb.eCommandProcessMustBeLaunched 794 eCommandProcessMustBePaused = _lldb.eCommandProcessMustBePaused 795 eTypeSummaryCapped = _lldb.eTypeSummaryCapped 796 eTypeSummaryUncapped = _lldb.eTypeSummaryUncapped
797 -class SBAddress(_object):
798 """ 799 A section + offset based address class. 800 801 The SBAddress class allows addresses to be relative to a section 802 that can move during runtime due to images (executables, shared 803 libraries, bundles, frameworks) being loaded at different 804 addresses than the addresses found in the object file that 805 represents them on disk. There are currently two types of addresses 806 for a section: 807 o file addresses 808 o load addresses 809 810 File addresses represents the virtual addresses that are in the 'on 811 disk' object files. These virtual addresses are converted to be 812 relative to unique sections scoped to the object file so that 813 when/if the addresses slide when the images are loaded/unloaded 814 in memory, we can easily track these changes without having to 815 update every object (compile unit ranges, line tables, function 816 address ranges, lexical block and inlined subroutine address 817 ranges, global and static variables) each time an image is loaded or 818 unloaded. 819 820 Load addresses represents the virtual addresses where each section 821 ends up getting loaded at runtime. Before executing a program, it 822 is common for all of the load addresses to be unresolved. When a 823 DynamicLoader plug-in receives notification that shared libraries 824 have been loaded/unloaded, the load addresses of the main executable 825 and any images (shared libraries) will be resolved/unresolved. When 826 this happens, breakpoints that are in one of these sections can be 827 set/cleared. 828 829 See docstring of SBFunction for example usage of SBAddress. 830 """ 831 __swig_setmethods__ = {} 832 __setattr__ = lambda self, name, value: _swig_setattr(self, SBAddress, name, value) 833 __swig_getmethods__ = {} 834 __getattr__ = lambda self, name: _swig_getattr(self, SBAddress, name) 835 __repr__ = _swig_repr
836 - def __init__(self, *args):
837 """ 838 __init__(lldb::SBAddress self) -> SBAddress 839 __init__(lldb::SBAddress self, SBAddress rhs) -> SBAddress 840 __init__(lldb::SBAddress self, SBSection section, lldb::addr_t offset) -> SBAddress 841 __init__(lldb::SBAddress self, lldb::addr_t load_addr, SBTarget target) -> SBAddress 842 843 Create an address by resolving a load address using the supplied target. 844 """ 845 this = _lldb.new_SBAddress(*args) 846 try: self.this.append(this) 847 except: self.this = this
848 __swig_destroy__ = _lldb.delete_SBAddress 849 __del__ = lambda self : None;
850 - def IsValid(self):
851 """IsValid(SBAddress self) -> bool""" 852 return _lldb.SBAddress_IsValid(self)
853
854 - def __nonzero__(self):
855 return _lldb.SBAddress___nonzero__(self)
856 __bool__ = __nonzero__ 857 858
859 - def __eq__(self, other):
860 return not self.__ne__(other)
861
862 - def __ne__(self, *args):
863 """__ne__(SBAddress self, SBAddress rhs) -> bool""" 864 return _lldb.SBAddress___ne__(self, *args)
865
866 - def Clear(self):
867 """Clear(SBAddress self)""" 868 return _lldb.SBAddress_Clear(self)
869
870 - def GetFileAddress(self):
871 """GetFileAddress(SBAddress self) -> lldb::addr_t""" 872 return _lldb.SBAddress_GetFileAddress(self)
873
874 - def GetLoadAddress(self, *args):
875 """GetLoadAddress(SBAddress self, SBTarget target) -> lldb::addr_t""" 876 return _lldb.SBAddress_GetLoadAddress(self, *args)
877
878 - def SetLoadAddress(self, *args):
879 """SetLoadAddress(SBAddress self, lldb::addr_t load_addr, SBTarget target)""" 880 return _lldb.SBAddress_SetLoadAddress(self, *args)
881
882 - def OffsetAddress(self, *args):
883 """OffsetAddress(SBAddress self, lldb::addr_t offset) -> bool""" 884 return _lldb.SBAddress_OffsetAddress(self, *args)
885
886 - def GetDescription(self, *args):
887 """GetDescription(SBAddress self, SBStream description) -> bool""" 888 return _lldb.SBAddress_GetDescription(self, *args)
889
890 - def GetSection(self):
891 """GetSection(SBAddress self) -> SBSection""" 892 return _lldb.SBAddress_GetSection(self)
893
894 - def GetOffset(self):
895 """GetOffset(SBAddress self) -> lldb::addr_t""" 896 return _lldb.SBAddress_GetOffset(self)
897
898 - def SetAddress(self, *args):
899 """SetAddress(SBAddress self, SBSection section, lldb::addr_t offset)""" 900 return _lldb.SBAddress_SetAddress(self, *args)
901
902 - def GetSymbolContext(self, *args):
903 """ 904 GetSymbolContext(SBAddress self, uint32_t resolve_scope) -> SBSymbolContext 905 906 GetSymbolContext() and the following can lookup symbol information for a given address. 907 An address might refer to code or data from an existing module, or it 908 might refer to something on the stack or heap. The following functions 909 will only return valid values if the address has been resolved to a code 910 or data address using 'void SBAddress::SetLoadAddress(...)' or 911 'lldb::SBAddress SBTarget::ResolveLoadAddress (...)'. 912 """ 913 return _lldb.SBAddress_GetSymbolContext(self, *args)
914
915 - def GetModule(self):
916 """ 917 GetModule(SBAddress self) -> SBModule 918 919 GetModule() and the following grab individual objects for a given address and 920 are less efficient if you want more than one symbol related objects. 921 Use one of the following when you want multiple debug symbol related 922 objects for an address: 923 lldb::SBSymbolContext SBAddress::GetSymbolContext (uint32_t resolve_scope); 924 lldb::SBSymbolContext SBTarget::ResolveSymbolContextForAddress (const SBAddress &addr, uint32_t resolve_scope); 925 One or more bits from the SymbolContextItem enumerations can be logically 926 OR'ed together to more efficiently retrieve multiple symbol objects. 927 """ 928 return _lldb.SBAddress_GetModule(self)
929
930 - def GetCompileUnit(self):
931 """GetCompileUnit(SBAddress self) -> SBCompileUnit""" 932 return _lldb.SBAddress_GetCompileUnit(self)
933
934 - def GetFunction(self):
935 """GetFunction(SBAddress self) -> SBFunction""" 936 return _lldb.SBAddress_GetFunction(self)
937
938 - def GetBlock(self):
939 """GetBlock(SBAddress self) -> SBBlock""" 940 return _lldb.SBAddress_GetBlock(self)
941
942 - def GetSymbol(self):
943 """GetSymbol(SBAddress self) -> SBSymbol""" 944 return _lldb.SBAddress_GetSymbol(self)
945
946 - def GetLineEntry(self):
947 """GetLineEntry(SBAddress self) -> SBLineEntry""" 948 return _lldb.SBAddress_GetLineEntry(self)
949
950 - def __get_load_addr_property__ (self):
951 '''Get the load address for a lldb.SBAddress using the current target.''' 952 return self.GetLoadAddress (target)
953
954 - def __set_load_addr_property__ (self, load_addr):
955 '''Set the load address for a lldb.SBAddress using the current target.''' 956 return self.SetLoadAddress (load_addr, target)
957
958 - def __int__(self):
959 '''Convert an address to a load address if there is a process and that process is alive, or to a file address otherwise.''' 960 if process.is_alive: 961 return self.GetLoadAddress (target) 962 else: 963 return self.GetFileAddress ()
964
965 - def __oct__(self):
966 '''Convert the address to an octal string''' 967 return '%o' % int(self)
968
969 - def __hex__(self):
970 '''Convert the address to an hex string''' 971 return '0x%x' % int(self)
972 973 __swig_getmethods__["module"] = GetModule 974 if _newclass: module = property(GetModule, None, doc='''A read only property that returns an lldb object that represents the module (lldb.SBModule) that this address resides within.''') 975 976 __swig_getmethods__["compile_unit"] = GetCompileUnit 977 if _newclass: compile_unit = property(GetCompileUnit, None, doc='''A read only property that returns an lldb object that represents the compile unit (lldb.SBCompileUnit) that this address resides within.''') 978 979 __swig_getmethods__["line_entry"] = GetLineEntry 980 if _newclass: line_entry = property(GetLineEntry, None, doc='''A read only property that returns an lldb object that represents the line entry (lldb.SBLineEntry) that this address resides within.''') 981 982 __swig_getmethods__["function"] = GetFunction 983 if _newclass: function = property(GetFunction, None, doc='''A read only property that returns an lldb object that represents the function (lldb.SBFunction) that this address resides within.''') 984 985 __swig_getmethods__["block"] = GetBlock 986 if _newclass: block = property(GetBlock, None, doc='''A read only property that returns an lldb object that represents the block (lldb.SBBlock) that this address resides within.''') 987 988 __swig_getmethods__["symbol"] = GetSymbol 989 if _newclass: symbol = property(GetSymbol, None, doc='''A read only property that returns an lldb object that represents the symbol (lldb.SBSymbol) that this address resides within.''') 990 991 __swig_getmethods__["offset"] = GetOffset 992 if _newclass: offset = property(GetOffset, None, doc='''A read only property that returns the section offset in bytes as an integer.''') 993 994 __swig_getmethods__["section"] = GetSection 995 if _newclass: section = property(GetSection, None, doc='''A read only property that returns an lldb object that represents the section (lldb.SBSection) that this address resides within.''') 996 997 __swig_getmethods__["file_addr"] = GetFileAddress 998 if _newclass: file_addr = property(GetFileAddress, None, doc='''A read only property that returns file address for the section as an integer. This is the address that represents the address as it is found in the object file that defines it.''') 999 1000 __swig_getmethods__["load_addr"] = __get_load_addr_property__ 1001 __swig_setmethods__["load_addr"] = __set_load_addr_property__ 1002 if _newclass: load_addr = property(__get_load_addr_property__, __set_load_addr_property__, doc='''A read/write property that gets/sets the SBAddress using load address. The setter resolves SBAddress using the SBTarget from lldb.target so this property can ONLY be used in the interactive script interpreter (i.e. under the lldb script command) and not in Python based commands, or breakpoint commands.''') 1003 1004
1005 - def __str__(self):
1006 """__str__(SBAddress self) -> PyObject *""" 1007 return _lldb.SBAddress___str__(self)
1008 1009 SBAddress_swigregister = _lldb.SBAddress_swigregister 1010 SBAddress_swigregister(SBAddress)
1011 1012 -class SBAttachInfo(_object):
1013 """Proxy of C++ lldb::SBAttachInfo class""" 1014 __swig_setmethods__ = {} 1015 __setattr__ = lambda self, name, value: _swig_setattr(self, SBAttachInfo, name, value) 1016 __swig_getmethods__ = {} 1017 __getattr__ = lambda self, name: _swig_getattr(self, SBAttachInfo, name) 1018 __repr__ = _swig_repr
1019 - def __init__(self, *args):
1020 """ 1021 __init__(lldb::SBAttachInfo self) -> SBAttachInfo 1022 __init__(lldb::SBAttachInfo self, lldb::pid_t pid) -> SBAttachInfo 1023 __init__(lldb::SBAttachInfo self, char const * path, bool wait_for) -> SBAttachInfo 1024 __init__(lldb::SBAttachInfo self, char const * path, bool wait_for, bool async) -> SBAttachInfo 1025 __init__(lldb::SBAttachInfo self, SBAttachInfo rhs) -> SBAttachInfo 1026 """ 1027 this = _lldb.new_SBAttachInfo(*args) 1028 try: self.this.append(this) 1029 except: self.this = this
1030 - def GetProcessID(self):
1031 """GetProcessID(SBAttachInfo self) -> lldb::pid_t""" 1032 return _lldb.SBAttachInfo_GetProcessID(self)
1033
1034 - def SetProcessID(self, *args):
1035 """SetProcessID(SBAttachInfo self, lldb::pid_t pid)""" 1036 return _lldb.SBAttachInfo_SetProcessID(self, *args)
1037
1038 - def SetExecutable(self, *args):
1039 """ 1040 SetExecutable(SBAttachInfo self, char const * path) 1041 SetExecutable(SBAttachInfo self, SBFileSpec exe_file) 1042 """ 1043 return _lldb.SBAttachInfo_SetExecutable(self, *args)
1044
1045 - def GetWaitForLaunch(self):
1046 """GetWaitForLaunch(SBAttachInfo self) -> bool""" 1047 return _lldb.SBAttachInfo_GetWaitForLaunch(self)
1048
1049 - def SetWaitForLaunch(self, *args):
1050 """ 1051 SetWaitForLaunch(SBAttachInfo self, bool b) 1052 SetWaitForLaunch(SBAttachInfo self, bool b, bool async) 1053 """ 1054 return _lldb.SBAttachInfo_SetWaitForLaunch(self, *args)
1055
1056 - def GetIgnoreExisting(self):
1057 """GetIgnoreExisting(SBAttachInfo self) -> bool""" 1058 return _lldb.SBAttachInfo_GetIgnoreExisting(self)
1059
1060 - def SetIgnoreExisting(self, *args):
1061 """SetIgnoreExisting(SBAttachInfo self, bool b)""" 1062 return _lldb.SBAttachInfo_SetIgnoreExisting(self, *args)
1063
1064 - def GetResumeCount(self):
1065 """GetResumeCount(SBAttachInfo self) -> uint32_t""" 1066 return _lldb.SBAttachInfo_GetResumeCount(self)
1067
1068 - def SetResumeCount(self, *args):
1069 """SetResumeCount(SBAttachInfo self, uint32_t c)""" 1070 return _lldb.SBAttachInfo_SetResumeCount(self, *args)
1071
1072 - def GetProcessPluginName(self):
1073 """GetProcessPluginName(SBAttachInfo self) -> char const *""" 1074 return _lldb.SBAttachInfo_GetProcessPluginName(self)
1075
1076 - def SetProcessPluginName(self, *args):
1077 """SetProcessPluginName(SBAttachInfo self, char const * plugin_name)""" 1078 return _lldb.SBAttachInfo_SetProcessPluginName(self, *args)
1079
1080 - def GetUserID(self):
1081 """GetUserID(SBAttachInfo self) -> uint32_t""" 1082 return _lldb.SBAttachInfo_GetUserID(self)
1083
1084 - def GetGroupID(self):
1085 """GetGroupID(SBAttachInfo self) -> uint32_t""" 1086 return _lldb.SBAttachInfo_GetGroupID(self)
1087
1088 - def UserIDIsValid(self):
1089 """UserIDIsValid(SBAttachInfo self) -> bool""" 1090 return _lldb.SBAttachInfo_UserIDIsValid(self)
1091
1092 - def GroupIDIsValid(self):
1093 """GroupIDIsValid(SBAttachInfo self) -> bool""" 1094 return _lldb.SBAttachInfo_GroupIDIsValid(self)
1095
1096 - def SetUserID(self, *args):
1097 """SetUserID(SBAttachInfo self, uint32_t uid)""" 1098 return _lldb.SBAttachInfo_SetUserID(self, *args)
1099
1100 - def SetGroupID(self, *args):
1101 """SetGroupID(SBAttachInfo self, uint32_t gid)""" 1102 return _lldb.SBAttachInfo_SetGroupID(self, *args)
1103
1104 - def GetEffectiveUserID(self):
1105 """GetEffectiveUserID(SBAttachInfo self) -> uint32_t""" 1106 return _lldb.SBAttachInfo_GetEffectiveUserID(self)
1107
1108 - def GetEffectiveGroupID(self):
1109 """GetEffectiveGroupID(SBAttachInfo self) -> uint32_t""" 1110 return _lldb.SBAttachInfo_GetEffectiveGroupID(self)
1111
1112 - def EffectiveUserIDIsValid(self):
1113 """EffectiveUserIDIsValid(SBAttachInfo self) -> bool""" 1114 return _lldb.SBAttachInfo_EffectiveUserIDIsValid(self)
1115
1116 - def EffectiveGroupIDIsValid(self):
1117 """EffectiveGroupIDIsValid(SBAttachInfo self) -> bool""" 1118 return _lldb.SBAttachInfo_EffectiveGroupIDIsValid(self)
1119
1120 - def SetEffectiveUserID(self, *args):
1121 """SetEffectiveUserID(SBAttachInfo self, uint32_t uid)""" 1122 return _lldb.SBAttachInfo_SetEffectiveUserID(self, *args)
1123
1124 - def SetEffectiveGroupID(self, *args):
1125 """SetEffectiveGroupID(SBAttachInfo self, uint32_t gid)""" 1126 return _lldb.SBAttachInfo_SetEffectiveGroupID(self, *args)
1127
1128 - def GetParentProcessID(self):
1129 """GetParentProcessID(SBAttachInfo self) -> lldb::pid_t""" 1130 return _lldb.SBAttachInfo_GetParentProcessID(self)
1131
1132 - def SetParentProcessID(self, *args):
1133 """SetParentProcessID(SBAttachInfo self, lldb::pid_t pid)""" 1134 return _lldb.SBAttachInfo_SetParentProcessID(self, *args)
1135
1136 - def ParentProcessIDIsValid(self):
1137 """ParentProcessIDIsValid(SBAttachInfo self) -> bool""" 1138 return _lldb.SBAttachInfo_ParentProcessIDIsValid(self)
1139
1140 - def GetListener(self):
1141 """GetListener(SBAttachInfo self) -> SBListener""" 1142 return _lldb.SBAttachInfo_GetListener(self)
1143
1144 - def SetListener(self, *args):
1145 """SetListener(SBAttachInfo self, SBListener listener)""" 1146 return _lldb.SBAttachInfo_SetListener(self, *args)
1147 1148 __swig_destroy__ = _lldb.delete_SBAttachInfo 1149 __del__ = lambda self : None; 1150 SBAttachInfo_swigregister = _lldb.SBAttachInfo_swigregister 1151 SBAttachInfo_swigregister(SBAttachInfo)
1152 1153 -class SBBlock(_object):
1154 """Represents a lexical block. SBFunction contains SBBlock(s).""" 1155 __swig_setmethods__ = {} 1156 __setattr__ = lambda self, name, value: _swig_setattr(self, SBBlock, name, value) 1157 __swig_getmethods__ = {} 1158 __getattr__ = lambda self, name: _swig_getattr(self, SBBlock, name) 1159 __repr__ = _swig_repr
1160 - def __init__(self, *args):
1161 """ 1162 __init__(lldb::SBBlock self) -> SBBlock 1163 __init__(lldb::SBBlock self, SBBlock rhs) -> SBBlock 1164 """ 1165 this = _lldb.new_SBBlock(*args) 1166 try: self.this.append(this) 1167 except: self.this = this
1168 __swig_destroy__ = _lldb.delete_SBBlock 1169 __del__ = lambda self : None;
1170 - def IsInlined(self):
1171 """ 1172 IsInlined(SBBlock self) -> bool 1173 1174 Does this block represent an inlined function? 1175 """ 1176 return _lldb.SBBlock_IsInlined(self)
1177
1178 - def IsValid(self):
1179 """IsValid(SBBlock self) -> bool""" 1180 return _lldb.SBBlock_IsValid(self)
1181
1182 - def __nonzero__(self):
1183 return _lldb.SBBlock___nonzero__(self)
1184 __bool__ = __nonzero__ 1185 1186
1187 - def GetInlinedName(self):
1188 """ 1189 GetInlinedName(SBBlock self) -> char const * 1190 1191 Get the function name if this block represents an inlined function; 1192 otherwise, return None. 1193 """ 1194 return _lldb.SBBlock_GetInlinedName(self)
1195
1196 - def GetInlinedCallSiteFile(self):
1197 """ 1198 GetInlinedCallSiteFile(SBBlock self) -> SBFileSpec 1199 1200 Get the call site file if this block represents an inlined function; 1201 otherwise, return an invalid file spec. 1202 """ 1203 return _lldb.SBBlock_GetInlinedCallSiteFile(self)
1204
1205 - def GetInlinedCallSiteLine(self):
1206 """ 1207 GetInlinedCallSiteLine(SBBlock self) -> uint32_t 1208 1209 Get the call site line if this block represents an inlined function; 1210 otherwise, return 0. 1211 """ 1212 return _lldb.SBBlock_GetInlinedCallSiteLine(self)
1213
1214 - def GetInlinedCallSiteColumn(self):
1215 """ 1216 GetInlinedCallSiteColumn(SBBlock self) -> uint32_t 1217 1218 Get the call site column if this block represents an inlined function; 1219 otherwise, return 0. 1220 """ 1221 return _lldb.SBBlock_GetInlinedCallSiteColumn(self)
1222
1223 - def GetParent(self):
1224 """ 1225 GetParent(SBBlock self) -> SBBlock 1226 1227 Get the parent block. 1228 """ 1229 return _lldb.SBBlock_GetParent(self)
1230
1231 - def GetContainingInlinedBlock(self):
1232 """ 1233 GetContainingInlinedBlock(SBBlock self) -> SBBlock 1234 1235 Get the inlined block that is or contains this block. 1236 """ 1237 return _lldb.SBBlock_GetContainingInlinedBlock(self)
1238
1239 - def GetSibling(self):
1240 """ 1241 GetSibling(SBBlock self) -> SBBlock 1242 1243 Get the sibling block for this block. 1244 """ 1245 return _lldb.SBBlock_GetSibling(self)
1246
1247 - def GetFirstChild(self):
1248 """ 1249 GetFirstChild(SBBlock self) -> SBBlock 1250 1251 Get the first child block. 1252 """ 1253 return _lldb.SBBlock_GetFirstChild(self)
1254
1255 - def GetNumRanges(self):
1256 """GetNumRanges(SBBlock self) -> uint32_t""" 1257 return _lldb.SBBlock_GetNumRanges(self)
1258
1259 - def GetRangeStartAddress(self, *args):
1260 """GetRangeStartAddress(SBBlock self, uint32_t idx) -> SBAddress""" 1261 return _lldb.SBBlock_GetRangeStartAddress(self, *args)
1262
1263 - def GetRangeEndAddress(self, *args):
1264 """GetRangeEndAddress(SBBlock self, uint32_t idx) -> SBAddress""" 1265 return _lldb.SBBlock_GetRangeEndAddress(self, *args)
1266
1267 - def GetRangeIndexForBlockAddress(self, *args):
1268 """GetRangeIndexForBlockAddress(SBBlock self, SBAddress block_addr) -> uint32_t""" 1269 return _lldb.SBBlock_GetRangeIndexForBlockAddress(self, *args)
1270
1271 - def GetDescription(self, *args):
1272 """GetDescription(SBBlock self, SBStream description) -> bool""" 1273 return _lldb.SBBlock_GetDescription(self, *args)
1274
1275 - def GetVariables(self, *args):
1276 """ 1277 GetVariables(SBBlock self, SBFrame frame, bool arguments, bool locals, bool statics, lldb::DynamicValueType use_dynamic) -> SBValueList 1278 GetVariables(SBBlock self, SBTarget target, bool arguments, bool locals, bool statics) -> SBValueList 1279 """ 1280 return _lldb.SBBlock_GetVariables(self, *args)
1281
1282 - def get_range_at_index(self, idx):
1283 if idx < self.GetNumRanges(): 1284 return [self.GetRangeStartAddress(idx), self.GetRangeEndAddress(idx)] 1285 return []
1286
1287 - class ranges_access(object):
1288 '''A helper object that will lazily hand out an array of lldb.SBAddress that represent address ranges for a block.'''
1289 - def __init__(self, sbblock):
1290 self.sbblock = sbblock
1291
1292 - def __len__(self):
1293 if self.sbblock: 1294 return int(self.sbblock.GetNumRanges()) 1295 return 0
1296
1297 - def __getitem__(self, key):
1298 count = len(self) 1299 if type(key) is int: 1300 return self.sbblock.get_range_at_index (key); 1301 if isinstance(key, SBAddress): 1302 range_idx = self.sbblock.GetRangeIndexForBlockAddress(key); 1303 if range_idx < len(self): 1304 return [self.sbblock.GetRangeStartAddress(range_idx), self.sbblock.GetRangeEndAddress(range_idx)] 1305 else: 1306 print("error: unsupported item type: %s" % type(key)) 1307 return None
1308
1309 - def get_ranges_access_object(self):
1310 '''An accessor function that returns a ranges_access() object which allows lazy block address ranges access.''' 1311 return self.ranges_access (self)
1312
1313 - def get_ranges_array(self):
1314 '''An accessor function that returns an array object that contains all ranges in this block object.''' 1315 if not hasattr(self, 'ranges_array'): 1316 self.ranges_array = [] 1317 for idx in range(self.num_ranges): 1318 self.ranges_array.append ([self.GetRangeStartAddress(idx), self.GetRangeEndAddress(idx)]) 1319 return self.ranges_array
1320
1321 - def get_call_site(self):
1322 return declaration(self.GetInlinedCallSiteFile(), self.GetInlinedCallSiteLine(), self.GetInlinedCallSiteColumn())
1323 1324 __swig_getmethods__["parent"] = GetParent 1325 if _newclass: parent = property(GetParent, None, doc='''A read only property that returns the same result as GetParent().''') 1326 1327 __swig_getmethods__["first_child"] = GetFirstChild 1328 if _newclass: first_child = property(GetFirstChild, None, doc='''A read only property that returns the same result as GetFirstChild().''') 1329 1330 __swig_getmethods__["call_site"] = get_call_site 1331 if _newclass: call_site = property(get_call_site, None, doc='''A read only property that returns a lldb.declaration object that contains the inlined call site file, line and column.''') 1332 1333 __swig_getmethods__["sibling"] = GetSibling 1334 if _newclass: sibling = property(GetSibling, None, doc='''A read only property that returns the same result as GetSibling().''') 1335 1336 __swig_getmethods__["name"] = GetInlinedName 1337 if _newclass: name = property(GetInlinedName, None, doc='''A read only property that returns the same result as GetInlinedName().''') 1338 1339 __swig_getmethods__["inlined_block"] = GetContainingInlinedBlock 1340 if _newclass: inlined_block = property(GetContainingInlinedBlock, None, doc='''A read only property that returns the same result as GetContainingInlinedBlock().''') 1341 1342 __swig_getmethods__["range"] = get_ranges_access_object 1343 if _newclass: range = property(get_ranges_access_object, None, doc='''A read only property that allows item access to the address ranges for a block by integer (range = block.range[0]) and by lldb.SBAdddress (find the range that contains the specified lldb.SBAddress like "pc_range = lldb.frame.block.range[frame.addr]").''') 1344 1345 __swig_getmethods__["ranges"] = get_ranges_array 1346 if _newclass: ranges = property(get_ranges_array, None, doc='''A read only property that returns a list() object that contains all of the address ranges for the block.''') 1347 1348 __swig_getmethods__["num_ranges"] = GetNumRanges 1349 if _newclass: num_ranges = property(GetNumRanges, None, doc='''A read only property that returns the same result as GetNumRanges().''') 1350
1351 - def __str__(self):
1352 """__str__(SBBlock self) -> PyObject *""" 1353 return _lldb.SBBlock___str__(self)
1354 1355 SBBlock_swigregister = _lldb.SBBlock_swigregister 1356 SBBlock_swigregister(SBBlock)
1357 1358 -class SBBreakpoint(_object):
1359 """ 1360 Represents a logical breakpoint and its associated settings. 1361 1362 For example (from test/functionalities/breakpoint/breakpoint_ignore_count/ 1363 TestBreakpointIgnoreCount.py), 1364 1365 def breakpoint_ignore_count_python(self): 1366 '''Use Python APIs to set breakpoint ignore count.''' 1367 exe = os.path.join(os.getcwd(), 'a.out') 1368 1369 # Create a target by the debugger. 1370 target = self.dbg.CreateTarget(exe) 1371 self.assertTrue(target, VALID_TARGET) 1372 1373 # Now create a breakpoint on main.c by name 'c'. 1374 breakpoint = target.BreakpointCreateByName('c', 'a.out') 1375 self.assertTrue(breakpoint and 1376 breakpoint.GetNumLocations() == 1, 1377 VALID_BREAKPOINT) 1378 1379 # Get the breakpoint location from breakpoint after we verified that, 1380 # indeed, it has one location. 1381 location = breakpoint.GetLocationAtIndex(0) 1382 self.assertTrue(location and 1383 location.IsEnabled(), 1384 VALID_BREAKPOINT_LOCATION) 1385 1386 # Set the ignore count on the breakpoint location. 1387 location.SetIgnoreCount(2) 1388 self.assertTrue(location.GetIgnoreCount() == 2, 1389 'SetIgnoreCount() works correctly') 1390 1391 # Now launch the process, and do not stop at entry point. 1392 process = target.LaunchSimple(None, None, os.getcwd()) 1393 self.assertTrue(process, PROCESS_IS_VALID) 1394 1395 # Frame#0 should be on main.c:37, frame#1 should be on main.c:25, and 1396 # frame#2 should be on main.c:48. 1397 #lldbutil.print_stacktraces(process) 1398 from lldbutil import get_stopped_thread 1399 thread = get_stopped_thread(process, lldb.eStopReasonBreakpoint) 1400 self.assertTrue(thread != None, 'There should be a thread stopped due to breakpoint') 1401 frame0 = thread.GetFrameAtIndex(0) 1402 frame1 = thread.GetFrameAtIndex(1) 1403 frame2 = thread.GetFrameAtIndex(2) 1404 self.assertTrue(frame0.GetLineEntry().GetLine() == self.line1 and 1405 frame1.GetLineEntry().GetLine() == self.line3 and 1406 frame2.GetLineEntry().GetLine() == self.line4, 1407 STOPPED_DUE_TO_BREAKPOINT_IGNORE_COUNT) 1408 1409 # The hit count for the breakpoint should be 3. 1410 self.assertTrue(breakpoint.GetHitCount() == 3) 1411 1412 process.Continue() 1413 1414 SBBreakpoint supports breakpoint location iteration, for example, 1415 1416 for bl in breakpoint: 1417 print('breakpoint location load addr: %s' % hex(bl.GetLoadAddress())) 1418 print('breakpoint location condition: %s' % hex(bl.GetCondition())) 1419 1420 and rich comparison methods which allow the API program to use, 1421 1422 if aBreakpoint == bBreakpoint: 1423 ... 1424 1425 to compare two breakpoints for equality. 1426 """ 1427 __swig_setmethods__ = {} 1428 __setattr__ = lambda self, name, value: _swig_setattr(self, SBBreakpoint, name, value) 1429 __swig_getmethods__ = {} 1430 __getattr__ = lambda self, name: _swig_getattr(self, SBBreakpoint, name) 1431 __repr__ = _swig_repr
1432 - def __init__(self, *args):
1433 """ 1434 __init__(lldb::SBBreakpoint self) -> SBBreakpoint 1435 __init__(lldb::SBBreakpoint self, SBBreakpoint rhs) -> SBBreakpoint 1436 """ 1437 this = _lldb.new_SBBreakpoint(*args) 1438 try: self.this.append(this) 1439 except: self.this = this
1440 __swig_destroy__ = _lldb.delete_SBBreakpoint 1441 __del__ = lambda self : None;
1442 - def __eq__(self, *args):
1443 """__eq__(SBBreakpoint self, SBBreakpoint rhs) -> bool""" 1444 return _lldb.SBBreakpoint___eq__(self, *args)
1445
1446 - def __ne__(self, *args):
1447 """__ne__(SBBreakpoint self, SBBreakpoint rhs) -> bool""" 1448 return _lldb.SBBreakpoint___ne__(self, *args)
1449
1450 - def GetID(self):
1451 """GetID(SBBreakpoint self) -> lldb::break_id_t""" 1452 return _lldb.SBBreakpoint_GetID(self)
1453
1454 - def IsValid(self):
1455 """IsValid(SBBreakpoint self) -> bool""" 1456 return _lldb.SBBreakpoint_IsValid(self)
1457
1458 - def __nonzero__(self):
1459 return _lldb.SBBreakpoint___nonzero__(self)
1460 __bool__ = __nonzero__ 1461 1462
1463 - def ClearAllBreakpointSites(self):
1464 """ClearAllBreakpointSites(SBBreakpoint self)""" 1465 return _lldb.SBBreakpoint_ClearAllBreakpointSites(self)
1466
1467 - def FindLocationByAddress(self, *args):
1468 """FindLocationByAddress(SBBreakpoint self, lldb::addr_t vm_addr) -> SBBreakpointLocation""" 1469 return _lldb.SBBreakpoint_FindLocationByAddress(self, *args)
1470
1471 - def FindLocationIDByAddress(self, *args):
1472 """FindLocationIDByAddress(SBBreakpoint self, lldb::addr_t vm_addr) -> lldb::break_id_t""" 1473 return _lldb.SBBreakpoint_FindLocationIDByAddress(self, *args)
1474
1475 - def FindLocationByID(self, *args):
1476 """FindLocationByID(SBBreakpoint self, lldb::break_id_t bp_loc_id) -> SBBreakpointLocation""" 1477 return _lldb.SBBreakpoint_FindLocationByID(self, *args)
1478
1479 - def GetLocationAtIndex(self, *args):
1480 """GetLocationAtIndex(SBBreakpoint self, uint32_t index) -> SBBreakpointLocation""" 1481 return _lldb.SBBreakpoint_GetLocationAtIndex(self, *args)
1482
1483 - def SetEnabled(self, *args):
1484 """SetEnabled(SBBreakpoint self, bool enable)""" 1485 return _lldb.SBBreakpoint_SetEnabled(self, *args)
1486
1487 - def IsEnabled(self):
1488 """IsEnabled(SBBreakpoint self) -> bool""" 1489 return _lldb.SBBreakpoint_IsEnabled(self)
1490
1491 - def SetOneShot(self, *args):
1492 """SetOneShot(SBBreakpoint self, bool one_shot)""" 1493 return _lldb.SBBreakpoint_SetOneShot(self, *args)
1494
1495 - def IsOneShot(self):
1496 """IsOneShot(SBBreakpoint self) -> bool""" 1497 return _lldb.SBBreakpoint_IsOneShot(self)
1498
1499 - def IsInternal(self):
1500 """IsInternal(SBBreakpoint self) -> bool""" 1501 return _lldb.SBBreakpoint_IsInternal(self)
1502
1503 - def GetHitCount(self):
1504 """GetHitCount(SBBreakpoint self) -> uint32_t""" 1505 return _lldb.SBBreakpoint_GetHitCount(self)
1506
1507 - def SetIgnoreCount(self, *args):
1508 """SetIgnoreCount(SBBreakpoint self, uint32_t count)""" 1509 return _lldb.SBBreakpoint_SetIgnoreCount(self, *args)
1510
1511 - def GetIgnoreCount(self):
1512 """GetIgnoreCount(SBBreakpoint self) -> uint32_t""" 1513 return _lldb.SBBreakpoint_GetIgnoreCount(self)
1514
1515 - def SetCondition(self, *args):
1516 """ 1517 SetCondition(SBBreakpoint self, char const * condition) 1518 1519 The breakpoint stops only if the condition expression evaluates to true. 1520 """ 1521 return _lldb.SBBreakpoint_SetCondition(self, *args)
1522
1523 - def GetCondition(self):
1524 """ 1525 GetCondition(SBBreakpoint self) -> char const * 1526 1527 Get the condition expression for the breakpoint. 1528 """ 1529 return _lldb.SBBreakpoint_GetCondition(self)
1530
1531 - def SetAutoContinue(self, *args):
1532 """SetAutoContinue(SBBreakpoint self, bool auto_continue)""" 1533 return _lldb.SBBreakpoint_SetAutoContinue(self, *args)
1534
1535 - def GetAutoContinue(self):
1536 """GetAutoContinue(SBBreakpoint self) -> bool""" 1537 return _lldb.SBBreakpoint_GetAutoContinue(self)
1538
1539 - def SetThreadID(self, *args):
1540 """SetThreadID(SBBreakpoint self, lldb::tid_t sb_thread_id)""" 1541 return _lldb.SBBreakpoint_SetThreadID(self, *args)
1542
1543 - def GetThreadID(self):
1544 """GetThreadID(SBBreakpoint self) -> lldb::tid_t""" 1545 return _lldb.SBBreakpoint_GetThreadID(self)
1546
1547 - def SetThreadIndex(self, *args):
1548 """SetThreadIndex(SBBreakpoint self, uint32_t index)""" 1549 return _lldb.SBBreakpoint_SetThreadIndex(self, *args)
1550
1551 - def GetThreadIndex(self):
1552 """GetThreadIndex(SBBreakpoint self) -> uint32_t""" 1553 return _lldb.SBBreakpoint_GetThreadIndex(self)
1554
1555 - def SetThreadName(self, *args):
1556 """SetThreadName(SBBreakpoint self, char const * thread_name)""" 1557 return _lldb.SBBreakpoint_SetThreadName(self, *args)
1558
1559 - def GetThreadName(self):
1560 """GetThreadName(SBBreakpoint self) -> char const *""" 1561 return _lldb.SBBreakpoint_GetThreadName(self)
1562
1563 - def SetQueueName(self, *args):
1564 """SetQueueName(SBBreakpoint self, char const * queue_name)""" 1565 return _lldb.SBBreakpoint_SetQueueName(self, *args)
1566
1567 - def GetQueueName(self):
1568 """GetQueueName(SBBreakpoint self) -> char const *""" 1569 return _lldb.SBBreakpoint_GetQueueName(self)
1570
1571 - def SetScriptCallbackFunction(self, *args):
1572 """ 1573 SetScriptCallbackFunction(SBBreakpoint self, char const * callback_function_name) 1574 1575 Set the name of the script function to be called when the breakpoint is hit. 1576 """ 1577 return _lldb.SBBreakpoint_SetScriptCallbackFunction(self, *args)
1578
1579 - def SetScriptCallbackBody(self, *args):
1580 """ 1581 SetScriptCallbackBody(SBBreakpoint self, char const * script_body_text) -> SBError 1582 1583 Provide the body for the script function to be called when the breakpoint is hit. 1584 The body will be wrapped in a function, which be passed two arguments: 1585 'frame' - which holds the bottom-most SBFrame of the thread that hit the breakpoint 1586 'bpno' - which is the SBBreakpointLocation to which the callback was attached. 1587 1588 The error parameter is currently ignored, but will at some point hold the Python 1589 compilation diagnostics. 1590 Returns true if the body compiles successfully, false if not. 1591 """ 1592 return _lldb.SBBreakpoint_SetScriptCallbackBody(self, *args)
1593
1594 - def SetCommandLineCommands(self, *args):
1595 """SetCommandLineCommands(SBBreakpoint self, SBStringList commands)""" 1596 return _lldb.SBBreakpoint_SetCommandLineCommands(self, *args)
1597
1598 - def GetCommandLineCommands(self, *args):
1599 """GetCommandLineCommands(SBBreakpoint self, SBStringList commands) -> bool""" 1600 return _lldb.SBBreakpoint_GetCommandLineCommands(self, *args)
1601
1602 - def AddName(self, *args):
1603 """AddName(SBBreakpoint self, char const * new_name) -> bool""" 1604 return _lldb.SBBreakpoint_AddName(self, *args)
1605
1606 - def RemoveName(self, *args):
1607 """RemoveName(SBBreakpoint self, char const * name_to_remove)""" 1608 return _lldb.SBBreakpoint_RemoveName(self, *args)
1609
1610 - def MatchesName(self, *args):
1611 """MatchesName(SBBreakpoint self, char const * name) -> bool""" 1612 return _lldb.SBBreakpoint_MatchesName(self, *args)
1613
1614 - def GetNames(self, *args):
1615 """GetNames(SBBreakpoint self, SBStringList names)""" 1616 return _lldb.SBBreakpoint_GetNames(self, *args)
1617
1618 - def GetNumResolvedLocations(self):
1619 """GetNumResolvedLocations(SBBreakpoint self) -> size_t""" 1620 return _lldb.SBBreakpoint_GetNumResolvedLocations(self)
1621
1622 - def GetNumLocations(self):
1623 """GetNumLocations(SBBreakpoint self) -> size_t""" 1624 return _lldb.SBBreakpoint_GetNumLocations(self)
1625
1626 - def GetDescription(self, *args):
1627 """ 1628 GetDescription(SBBreakpoint self, SBStream description) -> bool 1629 GetDescription(SBBreakpoint self, SBStream description, bool include_locations) -> bool 1630 """ 1631 return _lldb.SBBreakpoint_GetDescription(self, *args)
1632
1633 - def AddLocation(self, *args):
1634 """AddLocation(SBBreakpoint self, SBAddress address) -> SBError""" 1635 return _lldb.SBBreakpoint_AddLocation(self, *args)
1636
1637 - def EventIsBreakpointEvent(*args):
1638 """EventIsBreakpointEvent(SBEvent event) -> bool""" 1639 return _lldb.SBBreakpoint_EventIsBreakpointEvent(*args)
1640 1641 if _newclass:EventIsBreakpointEvent = staticmethod(EventIsBreakpointEvent) 1642 __swig_getmethods__["EventIsBreakpointEvent"] = lambda x: EventIsBreakpointEvent
1643 - def GetBreakpointEventTypeFromEvent(*args):
1644 """GetBreakpointEventTypeFromEvent(SBEvent event) -> lldb::BreakpointEventType""" 1645 return _lldb.SBBreakpoint_GetBreakpointEventTypeFromEvent(*args)
1646 1647 if _newclass:GetBreakpointEventTypeFromEvent = staticmethod(GetBreakpointEventTypeFromEvent) 1648 __swig_getmethods__["GetBreakpointEventTypeFromEvent"] = lambda x: GetBreakpointEventTypeFromEvent
1649 - def GetBreakpointFromEvent(*args):
1650 """GetBreakpointFromEvent(SBEvent event) -> SBBreakpoint""" 1651 return _lldb.SBBreakpoint_GetBreakpointFromEvent(*args)
1652 1653 if _newclass:GetBreakpointFromEvent = staticmethod(GetBreakpointFromEvent) 1654 __swig_getmethods__["GetBreakpointFromEvent"] = lambda x: GetBreakpointFromEvent
1655 - def GetBreakpointLocationAtIndexFromEvent(*args):
1656 """GetBreakpointLocationAtIndexFromEvent(SBEvent event, uint32_t loc_idx) -> SBBreakpointLocation""" 1657 return _lldb.SBBreakpoint_GetBreakpointLocationAtIndexFromEvent(*args)
1658 1659 if _newclass:GetBreakpointLocationAtIndexFromEvent = staticmethod(GetBreakpointLocationAtIndexFromEvent) 1660 __swig_getmethods__["GetBreakpointLocationAtIndexFromEvent"] = lambda x: GetBreakpointLocationAtIndexFromEvent
1661 - def GetNumBreakpointLocationsFromEvent(*args):
1662 """GetNumBreakpointLocationsFromEvent(SBEvent event_sp) -> uint32_t""" 1663 return _lldb.SBBreakpoint_GetNumBreakpointLocationsFromEvent(*args)
1664 1665 if _newclass:GetNumBreakpointLocationsFromEvent = staticmethod(GetNumBreakpointLocationsFromEvent) 1666 __swig_getmethods__["GetNumBreakpointLocationsFromEvent"] = lambda x: GetNumBreakpointLocationsFromEvent
1667 - def IsHardware(self):
1668 """IsHardware(SBBreakpoint self) -> bool""" 1669 return _lldb.SBBreakpoint_IsHardware(self)
1670
1671 - class locations_access(object):
1672 '''A helper object that will lazily hand out locations for a breakpoint when supplied an index.'''
1673 - def __init__(self, sbbreakpoint):
1674 self.sbbreakpoint = sbbreakpoint
1675
1676 - def __len__(self):
1677 if self.sbbreakpoint: 1678 return int(self.sbbreakpoint.GetNumLocations()) 1679 return 0
1680
1681 - def __getitem__(self, key):
1682 if type(key) is int and key < len(self): 1683 return self.sbbreakpoint.GetLocationAtIndex(key) 1684 return None
1685
1686 - def get_locations_access_object(self):
1687 '''An accessor function that returns a locations_access() object which allows lazy location access from a lldb.SBBreakpoint object.''' 1688 return self.locations_access (self)
1689
1690 - def get_breakpoint_location_list(self):
1691 '''An accessor function that returns a list() that contains all locations in a lldb.SBBreakpoint object.''' 1692 locations = [] 1693 accessor = self.get_locations_access_object() 1694 for idx in range(len(accessor)): 1695 locations.append(accessor[idx]) 1696 return locations
1697
1698 - def __iter__(self):
1699 '''Iterate over all breakpoint locations in a lldb.SBBreakpoint 1700 object.''' 1701 return lldb_iter(self, 'GetNumLocations', 'GetLocationAtIndex')
1702
1703 - def __len__(self):
1704 '''Return the number of breakpoint locations in a lldb.SBBreakpoint 1705 object.''' 1706 return self.GetNumLocations()
1707 1708 __swig_getmethods__["locations"] = get_breakpoint_location_list 1709 if _newclass: locations = property(get_breakpoint_location_list, None, doc='''A read only property that returns a list() of lldb.SBBreakpointLocation objects for this breakpoint.''') 1710 1711 __swig_getmethods__["location"] = get_locations_access_object 1712 if _newclass: location = property(get_locations_access_object, None, doc='''A read only property that returns an object that can access locations by index (not location ID) (location = bkpt.location[12]).''') 1713 1714 __swig_getmethods__["id"] = GetID 1715 if _newclass: id = property(GetID, None, doc='''A read only property that returns the ID of this breakpoint.''') 1716 1717 __swig_getmethods__["enabled"] = IsEnabled 1718 __swig_setmethods__["enabled"] = SetEnabled 1719 if _newclass: enabled = property(IsEnabled, SetEnabled, doc='''A read/write property that configures whether this breakpoint is enabled or not.''') 1720 1721 __swig_getmethods__["one_shot"] = IsOneShot 1722 __swig_setmethods__["one_shot"] = SetOneShot 1723 if _newclass: one_shot = property(IsOneShot, SetOneShot, doc='''A read/write property that configures whether this breakpoint is one-shot (deleted when hit) or not.''') 1724 1725 __swig_getmethods__["num_locations"] = GetNumLocations 1726 if _newclass: num_locations = property(GetNumLocations, None, doc='''A read only property that returns the count of locations of this breakpoint.''') 1727 1728
1729 - def __str__(self):
1730 """__str__(SBBreakpoint self) -> PyObject *""" 1731 return _lldb.SBBreakpoint___str__(self)
1732
1733 - def __eq__(self, rhs):
1734 if not isinstance(rhs, type(self)): 1735 return False 1736 1737 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
1738
1739 - def __ne__(self, rhs):
1740 if not isinstance(rhs, type(self)): 1741 return True 1742 1743 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
1744 1745 SBBreakpoint_swigregister = _lldb.SBBreakpoint_swigregister 1746 SBBreakpoint_swigregister(SBBreakpoint)
1747 1748 -def SBBreakpoint_EventIsBreakpointEvent(*args):
1749 """SBBreakpoint_EventIsBreakpointEvent(SBEvent event) -> bool""" 1750 return _lldb.SBBreakpoint_EventIsBreakpointEvent(*args)
1751
1752 -def SBBreakpoint_GetBreakpointEventTypeFromEvent(*args):
1753 """SBBreakpoint_GetBreakpointEventTypeFromEvent(SBEvent event) -> lldb::BreakpointEventType""" 1754 return _lldb.SBBreakpoint_GetBreakpointEventTypeFromEvent(*args)
1755
1756 -def SBBreakpoint_GetBreakpointFromEvent(*args):
1757 """SBBreakpoint_GetBreakpointFromEvent(SBEvent event) -> SBBreakpoint""" 1758 return _lldb.SBBreakpoint_GetBreakpointFromEvent(*args)
1759
1760 -def SBBreakpoint_GetBreakpointLocationAtIndexFromEvent(*args):
1761 """SBBreakpoint_GetBreakpointLocationAtIndexFromEvent(SBEvent event, uint32_t loc_idx) -> SBBreakpointLocation""" 1762 return _lldb.SBBreakpoint_GetBreakpointLocationAtIndexFromEvent(*args)
1763
1764 -def SBBreakpoint_GetNumBreakpointLocationsFromEvent(*args):
1765 """SBBreakpoint_GetNumBreakpointLocationsFromEvent(SBEvent event_sp) -> uint32_t""" 1766 return _lldb.SBBreakpoint_GetNumBreakpointLocationsFromEvent(*args)
1767
1768 -class SBBreakpointList(_object):
1769 """Proxy of C++ lldb::SBBreakpointList class""" 1770 __swig_setmethods__ = {} 1771 __setattr__ = lambda self, name, value: _swig_setattr(self, SBBreakpointList, name, value) 1772 __swig_getmethods__ = {} 1773 __getattr__ = lambda self, name: _swig_getattr(self, SBBreakpointList, name) 1774 __repr__ = _swig_repr
1775 - def __init__(self, *args):
1776 """__init__(lldb::SBBreakpointList self, SBTarget target) -> SBBreakpointList""" 1777 this = _lldb.new_SBBreakpointList(*args) 1778 try: self.this.append(this) 1779 except: self.this = this
1780 __swig_destroy__ = _lldb.delete_SBBreakpointList 1781 __del__ = lambda self : None;
1782 - def GetSize(self):
1783 """GetSize(SBBreakpointList self) -> size_t""" 1784 return _lldb.SBBreakpointList_GetSize(self)
1785
1786 - def GetBreakpointAtIndex(self, *args):
1787 """GetBreakpointAtIndex(SBBreakpointList self, size_t idx) -> SBBreakpoint""" 1788 return _lldb.SBBreakpointList_GetBreakpointAtIndex(self, *args)
1789
1790 - def FindBreakpointByID(self, *args):
1791 """FindBreakpointByID(SBBreakpointList self, lldb::break_id_t arg2) -> SBBreakpoint""" 1792 return _lldb.SBBreakpointList_FindBreakpointByID(self, *args)
1793
1794 - def Append(self, *args):
1795 """Append(SBBreakpointList self, SBBreakpoint sb_bkpt)""" 1796 return _lldb.SBBreakpointList_Append(self, *args)
1797
1798 - def AppendIfUnique(self, *args):
1799 """AppendIfUnique(SBBreakpointList self, SBBreakpoint sb_bkpt) -> bool""" 1800 return _lldb.SBBreakpointList_AppendIfUnique(self, *args)
1801
1802 - def AppendByID(self, *args):
1803 """AppendByID(SBBreakpointList self, lldb::break_id_t id)""" 1804 return _lldb.SBBreakpointList_AppendByID(self, *args)
1805
1806 - def Clear(self):
1807 """Clear(SBBreakpointList self)""" 1808 return _lldb.SBBreakpointList_Clear(self)
1809 1810 SBBreakpointList_swigregister = _lldb.SBBreakpointList_swigregister 1811 SBBreakpointList_swigregister(SBBreakpointList)
1812 1813 -class SBBreakpointLocation(_object):
1814 """ 1815 Represents one unique instance (by address) of a logical breakpoint. 1816 1817 A breakpoint location is defined by the breakpoint that produces it, 1818 and the address that resulted in this particular instantiation. 1819 Each breakpoint location has its settable options. 1820 1821 SBBreakpoint contains SBBreakpointLocation(s). See docstring of SBBreakpoint 1822 for retrieval of an SBBreakpointLocation from an SBBreakpoint. 1823 """ 1824 __swig_setmethods__ = {} 1825 __setattr__ = lambda self, name, value: _swig_setattr(self, SBBreakpointLocation, name, value) 1826 __swig_getmethods__ = {} 1827 __getattr__ = lambda self, name: _swig_getattr(self, SBBreakpointLocation, name) 1828 __repr__ = _swig_repr
1829 - def __init__(self, *args):
1830 """ 1831 __init__(lldb::SBBreakpointLocation self) -> SBBreakpointLocation 1832 __init__(lldb::SBBreakpointLocation self, SBBreakpointLocation rhs) -> SBBreakpointLocation 1833 """ 1834 this = _lldb.new_SBBreakpointLocation(*args) 1835 try: self.this.append(this) 1836 except: self.this = this
1837 __swig_destroy__ = _lldb.delete_SBBreakpointLocation 1838 __del__ = lambda self : None;
1839 - def GetID(self):
1840 """GetID(SBBreakpointLocation self) -> lldb::break_id_t""" 1841 return _lldb.SBBreakpointLocation_GetID(self)
1842
1843 - def IsValid(self):
1844 """IsValid(SBBreakpointLocation self) -> bool""" 1845 return _lldb.SBBreakpointLocation_IsValid(self)
1846
1847 - def __nonzero__(self):
1848 return _lldb.SBBreakpointLocation___nonzero__(self)
1849 __bool__ = __nonzero__ 1850 1851
1852 - def GetAddress(self):
1853 """GetAddress(SBBreakpointLocation self) -> SBAddress""" 1854 return _lldb.SBBreakpointLocation_GetAddress(self)
1855
1856 - def GetLoadAddress(self):
1857 """GetLoadAddress(SBBreakpointLocation self) -> lldb::addr_t""" 1858 return _lldb.SBBreakpointLocation_GetLoadAddress(self)
1859
1860 - def SetEnabled(self, *args):
1861 """SetEnabled(SBBreakpointLocation self, bool enabled)""" 1862 return _lldb.SBBreakpointLocation_SetEnabled(self, *args)
1863
1864 - def IsEnabled(self):
1865 """IsEnabled(SBBreakpointLocation self) -> bool""" 1866 return _lldb.SBBreakpointLocation_IsEnabled(self)
1867
1868 - def GetHitCount(self):
1869 """GetHitCount(SBBreakpointLocation self) -> uint32_t""" 1870 return _lldb.SBBreakpointLocation_GetHitCount(self)
1871
1872 - def GetIgnoreCount(self):
1873 """GetIgnoreCount(SBBreakpointLocation self) -> uint32_t""" 1874 return _lldb.SBBreakpointLocation_GetIgnoreCount(self)
1875
1876 - def SetIgnoreCount(self, *args):
1877 """SetIgnoreCount(SBBreakpointLocation self, uint32_t n)""" 1878 return _lldb.SBBreakpointLocation_SetIgnoreCount(self, *args)
1879
1880 - def SetCondition(self, *args):
1881 """ 1882 SetCondition(SBBreakpointLocation self, char const * condition) 1883 1884 The breakpoint location stops only if the condition expression evaluates 1885 to true. 1886 """ 1887 return _lldb.SBBreakpointLocation_SetCondition(self, *args)
1888
1889 - def GetCondition(self):
1890 """ 1891 GetCondition(SBBreakpointLocation self) -> char const * 1892 1893 Get the condition expression for the breakpoint location. 1894 """ 1895 return _lldb.SBBreakpointLocation_GetCondition(self)
1896
1897 - def GetAutoContinue(self):
1898 """GetAutoContinue(SBBreakpointLocation self) -> bool""" 1899 return _lldb.SBBreakpointLocation_GetAutoContinue(self)
1900
1901 - def SetAutoContinue(self, *args):
1902 """SetAutoContinue(SBBreakpointLocation self, bool auto_continue)""" 1903 return _lldb.SBBreakpointLocation_SetAutoContinue(self, *args)
1904
1905 - def SetScriptCallbackFunction(self, *args):
1906 """ 1907 SetScriptCallbackFunction(SBBreakpointLocation self, char const * callback_function_name) 1908 1909 Set the callback to the given Python function name. 1910 """ 1911 return _lldb.SBBreakpointLocation_SetScriptCallbackFunction(self, *args)
1912
1913 - def SetScriptCallbackBody(self, *args):
1914 """ 1915 SetScriptCallbackBody(SBBreakpointLocation self, char const * script_body_text) -> SBError 1916 1917 Provide the body for the script function to be called when the breakpoint location is hit. 1918 The body will be wrapped in a function, which be passed two arguments: 1919 'frame' - which holds the bottom-most SBFrame of the thread that hit the breakpoint 1920 'bpno' - which is the SBBreakpointLocation to which the callback was attached. 1921 1922 The error parameter is currently ignored, but will at some point hold the Python 1923 compilation diagnostics. 1924 Returns true if the body compiles successfully, false if not. 1925 """ 1926 return _lldb.SBBreakpointLocation_SetScriptCallbackBody(self, *args)
1927
1928 - def SetCommandLineCommands(self, *args):
1929 """SetCommandLineCommands(SBBreakpointLocation self, SBStringList commands)""" 1930 return _lldb.SBBreakpointLocation_SetCommandLineCommands(self, *args)
1931
1932 - def GetCommandLineCommands(self, *args):
1933 """GetCommandLineCommands(SBBreakpointLocation self, SBStringList commands) -> bool""" 1934 return _lldb.SBBreakpointLocation_GetCommandLineCommands(self, *args)
1935
1936 - def SetThreadID(self, *args):
1937 """SetThreadID(SBBreakpointLocation self, lldb::tid_t sb_thread_id)""" 1938 return _lldb.SBBreakpointLocation_SetThreadID(self, *args)
1939
1940 - def GetThreadID(self):
1941 """GetThreadID(SBBreakpointLocation self) -> lldb::tid_t""" 1942 return _lldb.SBBreakpointLocation_GetThreadID(self)
1943
1944 - def SetThreadIndex(self, *args):
1945 """SetThreadIndex(SBBreakpointLocation self, uint32_t index)""" 1946 return _lldb.SBBreakpointLocation_SetThreadIndex(self, *args)
1947
1948 - def GetThreadIndex(self):
1949 """GetThreadIndex(SBBreakpointLocation self) -> uint32_t""" 1950 return _lldb.SBBreakpointLocation_GetThreadIndex(self)
1951
1952 - def SetThreadName(self, *args):
1953 """SetThreadName(SBBreakpointLocation self, char const * thread_name)""" 1954 return _lldb.SBBreakpointLocation_SetThreadName(self, *args)
1955
1956 - def GetThreadName(self):
1957 """GetThreadName(SBBreakpointLocation self) -> char const *""" 1958 return _lldb.SBBreakpointLocation_GetThreadName(self)
1959
1960 - def SetQueueName(self, *args):
1961 """SetQueueName(SBBreakpointLocation self, char const * queue_name)""" 1962 return _lldb.SBBreakpointLocation_SetQueueName(self, *args)
1963
1964 - def GetQueueName(self):
1965 """GetQueueName(SBBreakpointLocation self) -> char const *""" 1966 return _lldb.SBBreakpointLocation_GetQueueName(self)
1967
1968 - def IsResolved(self):
1969 """IsResolved(SBBreakpointLocation self) -> bool""" 1970 return _lldb.SBBreakpointLocation_IsResolved(self)
1971
1972 - def GetDescription(self, *args):
1973 """GetDescription(SBBreakpointLocation self, SBStream description, lldb::DescriptionLevel level) -> bool""" 1974 return _lldb.SBBreakpointLocation_GetDescription(self, *args)
1975
1976 - def GetBreakpoint(self):
1977 """GetBreakpoint(SBBreakpointLocation self) -> SBBreakpoint""" 1978 return _lldb.SBBreakpointLocation_GetBreakpoint(self)
1979
1980 - def __str__(self):
1981 """__str__(SBBreakpointLocation self) -> PyObject *""" 1982 return _lldb.SBBreakpointLocation___str__(self)
1983 1984 SBBreakpointLocation_swigregister = _lldb.SBBreakpointLocation_swigregister 1985 SBBreakpointLocation_swigregister(SBBreakpointLocation)
1986 1987 -class SBBreakpointName(_object):
1988 """ 1989 Represents a breakpoint name registered in a given SBTarget. 1990 1991 Breakpoint names provide a way to act on groups of breakpoints. When you add a 1992 name to a group of breakpoints, you can then use the name in all the command 1993 line lldb commands for that name. You can also configure the SBBreakpointName 1994 options and those options will be propagated to any SBBreakpoints currently 1995 using that name. Adding a name to a breakpoint will also apply any of the 1996 set options to that breakpoint. 1997 1998 You can also set permissions on a breakpoint name to disable listing, deleting 1999 and disabling breakpoints. That will disallow the given operation for breakpoints 2000 except when the breakpoint is mentioned by ID. So for instance deleting all the 2001 breakpoints won't delete breakpoints so marked. 2002 """ 2003 __swig_setmethods__ = {} 2004 __setattr__ = lambda self, name, value: _swig_setattr(self, SBBreakpointName, name, value) 2005 __swig_getmethods__ = {} 2006 __getattr__ = lambda self, name: _swig_getattr(self, SBBreakpointName, name) 2007 __repr__ = _swig_repr
2008 - def __init__(self, *args):
2009 """ 2010 __init__(lldb::SBBreakpointName self) -> SBBreakpointName 2011 __init__(lldb::SBBreakpointName self, SBTarget target, char const * name) -> SBBreakpointName 2012 __init__(lldb::SBBreakpointName self, SBBreakpoint bkpt, char const * name) -> SBBreakpointName 2013 __init__(lldb::SBBreakpointName self, SBBreakpointName rhs) -> SBBreakpointName 2014 """ 2015 this = _lldb.new_SBBreakpointName(*args) 2016 try: self.this.append(this) 2017 except: self.this = this
2018 __swig_destroy__ = _lldb.delete_SBBreakpointName 2019 __del__ = lambda self : None;
2020 - def __eq__(self, *args):
2021 """__eq__(SBBreakpointName self, SBBreakpointName rhs) -> bool""" 2022 return _lldb.SBBreakpointName___eq__(self, *args)
2023
2024 - def __ne__(self, *args):
2025 """__ne__(SBBreakpointName self, SBBreakpointName rhs) -> bool""" 2026 return _lldb.SBBreakpointName___ne__(self, *args)
2027
2028 - def __nonzero__(self):
2029 return _lldb.SBBreakpointName___nonzero__(self)
2030 __bool__ = __nonzero__ 2031 2032
2033 - def IsValid(self):
2034 """IsValid(SBBreakpointName self) -> bool""" 2035 return _lldb.SBBreakpointName_IsValid(self)
2036
2037 - def GetName(self):
2038 """GetName(SBBreakpointName self) -> char const *""" 2039 return _lldb.SBBreakpointName_GetName(self)
2040
2041 - def SetEnabled(self, *args):
2042 """SetEnabled(SBBreakpointName self, bool enable)""" 2043 return _lldb.SBBreakpointName_SetEnabled(self, *args)
2044
2045 - def IsEnabled(self):
2046 """IsEnabled(SBBreakpointName self) -> bool""" 2047 return _lldb.SBBreakpointName_IsEnabled(self)
2048
2049 - def SetOneShot(self, *args):
2050 """SetOneShot(SBBreakpointName self, bool one_shot)""" 2051 return _lldb.SBBreakpointName_SetOneShot(self, *args)
2052
2053 - def IsOneShot(self):
2054 """IsOneShot(SBBreakpointName self) -> bool""" 2055 return _lldb.SBBreakpointName_IsOneShot(self)
2056
2057 - def SetIgnoreCount(self, *args):
2058 """SetIgnoreCount(SBBreakpointName self, uint32_t count)""" 2059 return _lldb.SBBreakpointName_SetIgnoreCount(self, *args)
2060
2061 - def GetIgnoreCount(self):
2062 """GetIgnoreCount(SBBreakpointName self) -> uint32_t""" 2063 return _lldb.SBBreakpointName_GetIgnoreCount(self)
2064
2065 - def SetCondition(self, *args):
2066 """SetCondition(SBBreakpointName self, char const * condition)""" 2067 return _lldb.SBBreakpointName_SetCondition(self, *args)
2068
2069 - def GetCondition(self):
2070 """GetCondition(SBBreakpointName self) -> char const *""" 2071 return _lldb.SBBreakpointName_GetCondition(self)
2072
2073 - def SetAutoContinue(self, *args):
2074 """SetAutoContinue(SBBreakpointName self, bool auto_continue)""" 2075 return _lldb.SBBreakpointName_SetAutoContinue(self, *args)
2076
2077 - def GetAutoContinue(self):
2078 """GetAutoContinue(SBBreakpointName self) -> bool""" 2079 return _lldb.SBBreakpointName_GetAutoContinue(self)
2080
2081 - def SetThreadID(self, *args):
2082 """SetThreadID(SBBreakpointName self, lldb::tid_t sb_thread_id)""" 2083 return _lldb.SBBreakpointName_SetThreadID(self, *args)
2084
2085 - def GetThreadID(self):
2086 """GetThreadID(SBBreakpointName self) -> lldb::tid_t""" 2087 return _lldb.SBBreakpointName_GetThreadID(self)
2088
2089 - def SetThreadIndex(self, *args):
2090 """SetThreadIndex(SBBreakpointName self, uint32_t index)""" 2091 return _lldb.SBBreakpointName_SetThreadIndex(self, *args)
2092
2093 - def GetThreadIndex(self):
2094 """GetThreadIndex(SBBreakpointName self) -> uint32_t""" 2095 return _lldb.SBBreakpointName_GetThreadIndex(self)
2096
2097 - def SetThreadName(self, *args):
2098 """SetThreadName(SBBreakpointName self, char const * thread_name)""" 2099 return _lldb.SBBreakpointName_SetThreadName(self, *args)
2100
2101 - def GetThreadName(self):
2102 """GetThreadName(SBBreakpointName self) -> char const *""" 2103 return _lldb.SBBreakpointName_GetThreadName(self)
2104
2105 - def SetQueueName(self, *args):
2106 """SetQueueName(SBBreakpointName self, char const * queue_name)""" 2107 return _lldb.SBBreakpointName_SetQueueName(self, *args)
2108
2109 - def GetQueueName(self):
2110 """GetQueueName(SBBreakpointName self) -> char const *""" 2111 return _lldb.SBBreakpointName_GetQueueName(self)
2112
2113 - def SetScriptCallbackFunction(self, *args):
2114 """SetScriptCallbackFunction(SBBreakpointName self, char const * callback_function_name)""" 2115 return _lldb.SBBreakpointName_SetScriptCallbackFunction(self, *args)
2116
2117 - def SetCommandLineCommands(self, *args):
2118 """SetCommandLineCommands(SBBreakpointName self, SBStringList commands)""" 2119 return _lldb.SBBreakpointName_SetCommandLineCommands(self, *args)
2120
2121 - def GetCommandLineCommands(self, *args):
2122 """GetCommandLineCommands(SBBreakpointName self, SBStringList commands) -> bool""" 2123 return _lldb.SBBreakpointName_GetCommandLineCommands(self, *args)
2124
2125 - def SetScriptCallbackBody(self, *args):
2126 """SetScriptCallbackBody(SBBreakpointName self, char const * script_body_text) -> SBError""" 2127 return _lldb.SBBreakpointName_SetScriptCallbackBody(self, *args)
2128
2129 - def GetHelpString(self):
2130 """GetHelpString(SBBreakpointName self) -> char const *""" 2131 return _lldb.SBBreakpointName_GetHelpString(self)
2132
2133 - def SetHelpString(self, *args):
2134 """SetHelpString(SBBreakpointName self, char const * help_string)""" 2135 return _lldb.SBBreakpointName_SetHelpString(self, *args)
2136
2137 - def GetAllowList(self):
2138 """GetAllowList(SBBreakpointName self) -> bool""" 2139 return _lldb.SBBreakpointName_GetAllowList(self)
2140
2141 - def SetAllowList(self, *args):
2142 """SetAllowList(SBBreakpointName self, bool value)""" 2143 return _lldb.SBBreakpointName_SetAllowList(self, *args)
2144
2145 - def GetAllowDelete(self):
2146 """GetAllowDelete(SBBreakpointName self) -> bool""" 2147 return _lldb.SBBreakpointName_GetAllowDelete(self)
2148
2149 - def SetAllowDelete(self, *args):
2150 """SetAllowDelete(SBBreakpointName self, bool value)""" 2151 return _lldb.SBBreakpointName_SetAllowDelete(self, *args)
2152
2153 - def GetAllowDisable(self):
2154 """GetAllowDisable(SBBreakpointName self) -> bool""" 2155 return _lldb.SBBreakpointName_GetAllowDisable(self)
2156
2157 - def SetAllowDisable(self, *args):
2158 """SetAllowDisable(SBBreakpointName self, bool value)""" 2159 return _lldb.SBBreakpointName_SetAllowDisable(self, *args)
2160
2161 - def GetDescription(self, *args):
2162 """GetDescription(SBBreakpointName self, SBStream description) -> bool""" 2163 return _lldb.SBBreakpointName_GetDescription(self, *args)
2164
2165 - def __str__(self):
2166 """__str__(SBBreakpointName self) -> PyObject *""" 2167 return _lldb.SBBreakpointName___str__(self)
2168 2169 SBBreakpointName_swigregister = _lldb.SBBreakpointName_swigregister 2170 SBBreakpointName_swigregister(SBBreakpointName)
2171 2172 -class SBBroadcaster(_object):
2173 """ 2174 Represents an entity which can broadcast events. A default broadcaster is 2175 associated with an SBCommandInterpreter, SBProcess, and SBTarget. For 2176 example, use 2177 2178 broadcaster = process.GetBroadcaster() 2179 2180 to retrieve the process's broadcaster. 2181 2182 See also SBEvent for example usage of interacting with a broadcaster. 2183 """ 2184 __swig_setmethods__ = {} 2185 __setattr__ = lambda self, name, value: _swig_setattr(self, SBBroadcaster, name, value) 2186 __swig_getmethods__ = {} 2187 __getattr__ = lambda self, name: _swig_getattr(self, SBBroadcaster, name) 2188 __repr__ = _swig_repr
2189 - def __init__(self, *args):
2190 """ 2191 __init__(lldb::SBBroadcaster self) -> SBBroadcaster 2192 __init__(lldb::SBBroadcaster self, char const * name) -> SBBroadcaster 2193 __init__(lldb::SBBroadcaster self, SBBroadcaster rhs) -> SBBroadcaster 2194 """ 2195 this = _lldb.new_SBBroadcaster(*args) 2196 try: self.this.append(this) 2197 except: self.this = this
2198 __swig_destroy__ = _lldb.delete_SBBroadcaster 2199 __del__ = lambda self : None;
2200 - def IsValid(self):
2201 """IsValid(SBBroadcaster self) -> bool""" 2202 return _lldb.SBBroadcaster_IsValid(self)
2203
2204 - def __nonzero__(self):
2205 return _lldb.SBBroadcaster___nonzero__(self)
2206 __bool__ = __nonzero__ 2207 2208
2209 - def Clear(self):
2210 """Clear(SBBroadcaster self)""" 2211 return _lldb.SBBroadcaster_Clear(self)
2212
2213 - def BroadcastEventByType(self, *args):
2214 """ 2215 BroadcastEventByType(SBBroadcaster self, uint32_t event_type, bool unique=False) 2216 BroadcastEventByType(SBBroadcaster self, uint32_t event_type) 2217 """ 2218 return _lldb.SBBroadcaster_BroadcastEventByType(self, *args)
2219
2220 - def BroadcastEvent(self, *args):
2221 """ 2222 BroadcastEvent(SBBroadcaster self, SBEvent event, bool unique=False) 2223 BroadcastEvent(SBBroadcaster self, SBEvent event) 2224 """ 2225 return _lldb.SBBroadcaster_BroadcastEvent(self, *args)
2226
2227 - def AddInitialEventsToListener(self, *args):
2228 """AddInitialEventsToListener(SBBroadcaster self, SBListener listener, uint32_t requested_events)""" 2229 return _lldb.SBBroadcaster_AddInitialEventsToListener(self, *args)
2230
2231 - def AddListener(self, *args):
2232 """AddListener(SBBroadcaster self, SBListener listener, uint32_t event_mask) -> uint32_t""" 2233 return _lldb.SBBroadcaster_AddListener(self, *args)
2234
2235 - def GetName(self):
2236 """GetName(SBBroadcaster self) -> char const *""" 2237 return _lldb.SBBroadcaster_GetName(self)
2238
2239 - def EventTypeHasListeners(self, *args):
2240 """EventTypeHasListeners(SBBroadcaster self, uint32_t event_type) -> bool""" 2241 return _lldb.SBBroadcaster_EventTypeHasListeners(self, *args)
2242
2243 - def RemoveListener(self, *args):
2244 """ 2245 RemoveListener(SBBroadcaster self, SBListener listener, uint32_t event_mask=4294967295U) -> bool 2246 RemoveListener(SBBroadcaster self, SBListener listener) -> bool 2247 """ 2248 return _lldb.SBBroadcaster_RemoveListener(self, *args)
2249
2250 - def __eq__(self, *args):
2251 """__eq__(SBBroadcaster self, SBBroadcaster rhs) -> bool""" 2252 return _lldb.SBBroadcaster___eq__(self, *args)
2253
2254 - def __ne__(self, *args):
2255 """__ne__(SBBroadcaster self, SBBroadcaster rhs) -> bool""" 2256 return _lldb.SBBroadcaster___ne__(self, *args)
2257
2258 - def __eq__(self, rhs):
2259 if not isinstance(rhs, type(self)): 2260 return False 2261 2262 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
2263
2264 - def __ne__(self, rhs):
2265 if not isinstance(rhs, type(self)): 2266 return True 2267 2268 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
2269 2270 SBBroadcaster_swigregister = _lldb.SBBroadcaster_swigregister 2271 SBBroadcaster_swigregister(SBBroadcaster)
2272 2273 -class SBCommandInterpreterRunOptions(_object):
2274 """ 2275 SBCommandInterpreterRunOptions controls how the RunCommandInterpreter runs the code it is fed. 2276 A default SBCommandInterpreterRunOptions object has: 2277 StopOnContinue: false 2278 StopOnError: false 2279 StopOnCrash: false 2280 EchoCommands: true 2281 PrintResults: true 2282 AddToHistory: true 2283 2284 2285 """ 2286 __swig_setmethods__ = {} 2287 __setattr__ = lambda self, name, value: _swig_setattr(self, SBCommandInterpreterRunOptions, name, value) 2288 __swig_getmethods__ = {} 2289 __getattr__ = lambda self, name: _swig_getattr(self, SBCommandInterpreterRunOptions, name) 2290 __repr__ = _swig_repr
2291 - def __init__(self):
2292 """__init__(lldb::SBCommandInterpreterRunOptions self) -> SBCommandInterpreterRunOptions""" 2293 this = _lldb.new_SBCommandInterpreterRunOptions() 2294 try: self.this.append(this) 2295 except: self.this = this
2296 __swig_destroy__ = _lldb.delete_SBCommandInterpreterRunOptions 2297 __del__ = lambda self : None;
2298 - def GetStopOnContinue(self):
2299 """GetStopOnContinue(SBCommandInterpreterRunOptions self) -> bool""" 2300 return _lldb.SBCommandInterpreterRunOptions_GetStopOnContinue(self)
2301
2302 - def SetStopOnContinue(self, *args):
2303 """SetStopOnContinue(SBCommandInterpreterRunOptions self, bool arg2)""" 2304 return _lldb.SBCommandInterpreterRunOptions_SetStopOnContinue(self, *args)
2305
2306 - def GetStopOnError(self):
2307 """GetStopOnError(SBCommandInterpreterRunOptions self) -> bool""" 2308 return _lldb.SBCommandInterpreterRunOptions_GetStopOnError(self)
2309
2310 - def SetStopOnError(self, *args):
2311 """SetStopOnError(SBCommandInterpreterRunOptions self, bool arg2)""" 2312 return _lldb.SBCommandInterpreterRunOptions_SetStopOnError(self, *args)
2313
2314 - def GetStopOnCrash(self):
2315 """GetStopOnCrash(SBCommandInterpreterRunOptions self) -> bool""" 2316 return _lldb.SBCommandInterpreterRunOptions_GetStopOnCrash(self)
2317
2318 - def SetStopOnCrash(self, *args):
2319 """SetStopOnCrash(SBCommandInterpreterRunOptions self, bool arg2)""" 2320 return _lldb.SBCommandInterpreterRunOptions_SetStopOnCrash(self, *args)
2321
2322 - def GetEchoCommands(self):
2323 """GetEchoCommands(SBCommandInterpreterRunOptions self) -> bool""" 2324 return _lldb.SBCommandInterpreterRunOptions_GetEchoCommands(self)
2325
2326 - def SetEchoCommands(self, *args):
2327 """SetEchoCommands(SBCommandInterpreterRunOptions self, bool arg2)""" 2328 return _lldb.SBCommandInterpreterRunOptions_SetEchoCommands(self, *args)
2329
2330 - def GetPrintResults(self):
2331 """GetPrintResults(SBCommandInterpreterRunOptions self) -> bool""" 2332 return _lldb.SBCommandInterpreterRunOptions_GetPrintResults(self)
2333
2334 - def SetPrintResults(self, *args):
2335 """SetPrintResults(SBCommandInterpreterRunOptions self, bool arg2)""" 2336 return _lldb.SBCommandInterpreterRunOptions_SetPrintResults(self, *args)
2337
2338 - def GetAddToHistory(self):
2339 """GetAddToHistory(SBCommandInterpreterRunOptions self) -> bool""" 2340 return _lldb.SBCommandInterpreterRunOptions_GetAddToHistory(self)
2341
2342 - def SetAddToHistory(self, *args):
2343 """SetAddToHistory(SBCommandInterpreterRunOptions self, bool arg2)""" 2344 return _lldb.SBCommandInterpreterRunOptions_SetAddToHistory(self, *args)
2345 2346 SBCommandInterpreterRunOptions_swigregister = _lldb.SBCommandInterpreterRunOptions_swigregister 2347 SBCommandInterpreterRunOptions_swigregister(SBCommandInterpreterRunOptions)
2348 2349 -class SBCommandInterpreter(_object):
2350 """ 2351 SBCommandInterpreter handles/interprets commands for lldb. You get the 2352 command interpreter from the SBDebugger instance. For example (from test/ 2353 python_api/interpreter/TestCommandInterpreterAPI.py), 2354 2355 def command_interpreter_api(self): 2356 '''Test the SBCommandInterpreter APIs.''' 2357 exe = os.path.join(os.getcwd(), 'a.out') 2358 2359 # Create a target by the debugger. 2360 target = self.dbg.CreateTarget(exe) 2361 self.assertTrue(target, VALID_TARGET) 2362 2363 # Retrieve the associated command interpreter from our debugger. 2364 ci = self.dbg.GetCommandInterpreter() 2365 self.assertTrue(ci, VALID_COMMAND_INTERPRETER) 2366 2367 # Exercise some APIs.... 2368 2369 self.assertTrue(ci.HasCommands()) 2370 self.assertTrue(ci.HasAliases()) 2371 self.assertTrue(ci.HasAliasOptions()) 2372 self.assertTrue(ci.CommandExists('breakpoint')) 2373 self.assertTrue(ci.CommandExists('target')) 2374 self.assertTrue(ci.CommandExists('platform')) 2375 self.assertTrue(ci.AliasExists('file')) 2376 self.assertTrue(ci.AliasExists('run')) 2377 self.assertTrue(ci.AliasExists('bt')) 2378 2379 res = lldb.SBCommandReturnObject() 2380 ci.HandleCommand('breakpoint set -f main.c -l %d' % self.line, res) 2381 self.assertTrue(res.Succeeded()) 2382 ci.HandleCommand('process launch', res) 2383 self.assertTrue(res.Succeeded()) 2384 2385 process = ci.GetProcess() 2386 self.assertTrue(process) 2387 2388 ... 2389 2390 The HandleCommand() instance method takes two args: the command string and 2391 an SBCommandReturnObject instance which encapsulates the result of command 2392 execution. 2393 """ 2394 __swig_setmethods__ = {} 2395 __setattr__ = lambda self, name, value: _swig_setattr(self, SBCommandInterpreter, name, value) 2396 __swig_getmethods__ = {} 2397 __getattr__ = lambda self, name: _swig_getattr(self, SBCommandInterpreter, name) 2398 __repr__ = _swig_repr 2399 eBroadcastBitThreadShouldExit = _lldb.SBCommandInterpreter_eBroadcastBitThreadShouldExit 2400 eBroadcastBitResetPrompt = _lldb.SBCommandInterpreter_eBroadcastBitResetPrompt 2401 eBroadcastBitQuitCommandReceived = _lldb.SBCommandInterpreter_eBroadcastBitQuitCommandReceived 2402 eBroadcastBitAsynchronousOutputData = _lldb.SBCommandInterpreter_eBroadcastBitAsynchronousOutputData 2403 eBroadcastBitAsynchronousErrorData = _lldb.SBCommandInterpreter_eBroadcastBitAsynchronousErrorData
2404 - def __init__(self, *args):
2405 """__init__(lldb::SBCommandInterpreter self, SBCommandInterpreter rhs) -> SBCommandInterpreter""" 2406 this = _lldb.new_SBCommandInterpreter(*args) 2407 try: self.this.append(this) 2408 except: self.this = this
2409 __swig_destroy__ = _lldb.delete_SBCommandInterpreter 2410 __del__ = lambda self : None;
2411 - def GetArgumentTypeAsCString(*args):
2412 """GetArgumentTypeAsCString(lldb::CommandArgumentType const arg_type) -> char const *""" 2413 return _lldb.SBCommandInterpreter_GetArgumentTypeAsCString(*args)
2414 2415 if _newclass:GetArgumentTypeAsCString = staticmethod(GetArgumentTypeAsCString) 2416 __swig_getmethods__["GetArgumentTypeAsCString"] = lambda x: GetArgumentTypeAsCString
2417 - def GetArgumentDescriptionAsCString(*args):
2418 """GetArgumentDescriptionAsCString(lldb::CommandArgumentType const arg_type) -> char const *""" 2419 return _lldb.SBCommandInterpreter_GetArgumentDescriptionAsCString(*args)
2420 2421 if _newclass:GetArgumentDescriptionAsCString = staticmethod(GetArgumentDescriptionAsCString) 2422 __swig_getmethods__["GetArgumentDescriptionAsCString"] = lambda x: GetArgumentDescriptionAsCString
2423 - def EventIsCommandInterpreterEvent(*args):
2424 """EventIsCommandInterpreterEvent(SBEvent event) -> bool""" 2425 return _lldb.SBCommandInterpreter_EventIsCommandInterpreterEvent(*args)
2426 2427 if _newclass:EventIsCommandInterpreterEvent = staticmethod(EventIsCommandInterpreterEvent) 2428 __swig_getmethods__["EventIsCommandInterpreterEvent"] = lambda x: EventIsCommandInterpreterEvent
2429 - def IsValid(self):
2430 """IsValid(SBCommandInterpreter self) -> bool""" 2431 return _lldb.SBCommandInterpreter_IsValid(self)
2432
2433 - def __nonzero__(self):
2434 return _lldb.SBCommandInterpreter___nonzero__(self)
2435 __bool__ = __nonzero__ 2436 2437
2438 - def GetIOHandlerControlSequence(self, *args):
2439 """GetIOHandlerControlSequence(SBCommandInterpreter self, char ch) -> char const *""" 2440 return _lldb.SBCommandInterpreter_GetIOHandlerControlSequence(self, *args)
2441
2442 - def GetPromptOnQuit(self):
2443 """GetPromptOnQuit(SBCommandInterpreter self) -> bool""" 2444 return _lldb.SBCommandInterpreter_GetPromptOnQuit(self)
2445
2446 - def SetPromptOnQuit(self, *args):
2447 """SetPromptOnQuit(SBCommandInterpreter self, bool b)""" 2448 return _lldb.SBCommandInterpreter_SetPromptOnQuit(self, *args)
2449
2450 - def AllowExitCodeOnQuit(self, *args):
2451 """AllowExitCodeOnQuit(SBCommandInterpreter self, bool b)""" 2452 return _lldb.SBCommandInterpreter_AllowExitCodeOnQuit(self, *args)
2453
2454 - def HasCustomQuitExitCode(self):
2455 """HasCustomQuitExitCode(SBCommandInterpreter self) -> bool""" 2456 return _lldb.SBCommandInterpreter_HasCustomQuitExitCode(self)
2457
2458 - def GetQuitStatus(self):
2459 """GetQuitStatus(SBCommandInterpreter self) -> int""" 2460 return _lldb.SBCommandInterpreter_GetQuitStatus(self)
2461
2462 - def ResolveCommand(self, *args):
2463 """ResolveCommand(SBCommandInterpreter self, char const * command_line, SBCommandReturnObject result)""" 2464 return _lldb.SBCommandInterpreter_ResolveCommand(self, *args)
2465
2466 - def CommandExists(self, *args):
2467 """CommandExists(SBCommandInterpreter self, char const * cmd) -> bool""" 2468 return _lldb.SBCommandInterpreter_CommandExists(self, *args)
2469
2470 - def AliasExists(self, *args):
2471 """AliasExists(SBCommandInterpreter self, char const * cmd) -> bool""" 2472 return _lldb.SBCommandInterpreter_AliasExists(self, *args)
2473
2474 - def GetBroadcaster(self):
2475 """GetBroadcaster(SBCommandInterpreter self) -> SBBroadcaster""" 2476 return _lldb.SBCommandInterpreter_GetBroadcaster(self)
2477
2478 - def GetBroadcasterClass():
2479 """GetBroadcasterClass() -> char const *""" 2480 return _lldb.SBCommandInterpreter_GetBroadcasterClass()
2481 2482 if _newclass:GetBroadcasterClass = staticmethod(GetBroadcasterClass) 2483 __swig_getmethods__["GetBroadcasterClass"] = lambda x: GetBroadcasterClass
2484 - def HasCommands(self):
2485 """HasCommands(SBCommandInterpreter self) -> bool""" 2486 return _lldb.SBCommandInterpreter_HasCommands(self)
2487
2488 - def HasAliases(self):
2489 """HasAliases(SBCommandInterpreter self) -> bool""" 2490 return _lldb.SBCommandInterpreter_HasAliases(self)
2491
2492 - def HasAliasOptions(self):
2493 """HasAliasOptions(SBCommandInterpreter self) -> bool""" 2494 return _lldb.SBCommandInterpreter_HasAliasOptions(self)
2495
2496 - def GetProcess(self):
2497 """GetProcess(SBCommandInterpreter self) -> SBProcess""" 2498 return _lldb.SBCommandInterpreter_GetProcess(self)
2499
2500 - def GetDebugger(self):
2501 """GetDebugger(SBCommandInterpreter self) -> SBDebugger""" 2502 return _lldb.SBCommandInterpreter_GetDebugger(self)
2503
2504 - def SourceInitFileInHomeDirectory(self, *args):
2505 """SourceInitFileInHomeDirectory(SBCommandInterpreter self, SBCommandReturnObject result)""" 2506 return _lldb.SBCommandInterpreter_SourceInitFileInHomeDirectory(self, *args)
2507
2508 - def SourceInitFileInCurrentWorkingDirectory(self, *args):
2509 """SourceInitFileInCurrentWorkingDirectory(SBCommandInterpreter self, SBCommandReturnObject result)""" 2510 return _lldb.SBCommandInterpreter_SourceInitFileInCurrentWorkingDirectory(self, *args)
2511
2512 - def HandleCommand(self, *args):
2513 """ 2514 HandleCommand(SBCommandInterpreter self, char const * command_line, SBCommandReturnObject result, bool add_to_history=False) -> lldb::ReturnStatus 2515 HandleCommand(SBCommandInterpreter self, char const * command_line, SBCommandReturnObject result) -> lldb::ReturnStatus 2516 HandleCommand(SBCommandInterpreter self, char const * command_line, SBExecutionContext exe_ctx, SBCommandReturnObject result, 2517 bool add_to_history=False) -> lldb::ReturnStatus 2518 HandleCommand(SBCommandInterpreter self, char const * command_line, SBExecutionContext exe_ctx, SBCommandReturnObject result) -> lldb::ReturnStatus 2519 """ 2520 return _lldb.SBCommandInterpreter_HandleCommand(self, *args)
2521
2522 - def HandleCommandsFromFile(self, *args):
2523 """ 2524 HandleCommandsFromFile(SBCommandInterpreter self, SBFileSpec file, SBExecutionContext override_context, SBCommandInterpreterRunOptions options, 2525 SBCommandReturnObject result) 2526 """ 2527 return _lldb.SBCommandInterpreter_HandleCommandsFromFile(self, *args)
2528
2529 - def HandleCompletion(self, *args):
2530 """ 2531 HandleCompletion(SBCommandInterpreter self, char const * current_line, uint32_t cursor_pos, int match_start_point, int max_return_elements, 2532 SBStringList matches) -> int 2533 """ 2534 return _lldb.SBCommandInterpreter_HandleCompletion(self, *args)
2535
2536 - def HandleCompletionWithDescriptions(self, *args):
2537 """ 2538 HandleCompletionWithDescriptions(SBCommandInterpreter self, char const * current_line, uint32_t cursor_pos, int match_start_point, int max_return_elements, 2539 SBStringList matches, SBStringList descriptions) -> int 2540 """ 2541 return _lldb.SBCommandInterpreter_HandleCompletionWithDescriptions(self, *args)
2542
2543 - def IsActive(self):
2544 """IsActive(SBCommandInterpreter self) -> bool""" 2545 return _lldb.SBCommandInterpreter_IsActive(self)
2546
2547 - def WasInterrupted(self):
2548 """WasInterrupted(SBCommandInterpreter self) -> bool""" 2549 return _lldb.SBCommandInterpreter_WasInterrupted(self)
2550 2551 SBCommandInterpreter_swigregister = _lldb.SBCommandInterpreter_swigregister 2552 SBCommandInterpreter_swigregister(SBCommandInterpreter)
2553 2554 -def SBCommandInterpreter_GetArgumentTypeAsCString(*args):
2555 """SBCommandInterpreter_GetArgumentTypeAsCString(lldb::CommandArgumentType const arg_type) -> char const *""" 2556 return _lldb.SBCommandInterpreter_GetArgumentTypeAsCString(*args)
2557
2558 -def SBCommandInterpreter_GetArgumentDescriptionAsCString(*args):
2559 """SBCommandInterpreter_GetArgumentDescriptionAsCString(lldb::CommandArgumentType const arg_type) -> char const *""" 2560 return _lldb.SBCommandInterpreter_GetArgumentDescriptionAsCString(*args)
2561
2562 -def SBCommandInterpreter_EventIsCommandInterpreterEvent(*args):
2563 """SBCommandInterpreter_EventIsCommandInterpreterEvent(SBEvent event) -> bool""" 2564 return _lldb.SBCommandInterpreter_EventIsCommandInterpreterEvent(*args)
2565
2566 -def SBCommandInterpreter_GetBroadcasterClass():
2567 """SBCommandInterpreter_GetBroadcasterClass() -> char const *""" 2568 return _lldb.SBCommandInterpreter_GetBroadcasterClass()
2569
2570 -class SBCommandReturnObject(_object):
2571 """ 2572 Represents a container which holds the result from command execution. 2573 It works with SBCommandInterpreter.HandleCommand() to encapsulate the result 2574 of command execution. 2575 2576 See SBCommandInterpreter for example usage of SBCommandReturnObject. 2577 """ 2578 __swig_setmethods__ = {} 2579 __setattr__ = lambda self, name, value: _swig_setattr(self, SBCommandReturnObject, name, value) 2580 __swig_getmethods__ = {} 2581 __getattr__ = lambda self, name: _swig_getattr(self, SBCommandReturnObject, name) 2582 __repr__ = _swig_repr
2583 - def __init__(self, *args):
2584 """ 2585 __init__(lldb::SBCommandReturnObject self) -> SBCommandReturnObject 2586 __init__(lldb::SBCommandReturnObject self, SBCommandReturnObject rhs) -> SBCommandReturnObject 2587 """ 2588 this = _lldb.new_SBCommandReturnObject(*args) 2589 try: self.this.append(this) 2590 except: self.this = this
2591 __swig_destroy__ = _lldb.delete_SBCommandReturnObject 2592 __del__ = lambda self : None;
2593 - def IsValid(self):
2594 """IsValid(SBCommandReturnObject self) -> bool""" 2595 return _lldb.SBCommandReturnObject_IsValid(self)
2596
2597 - def __nonzero__(self):
2598 return _lldb.SBCommandReturnObject___nonzero__(self)
2599 __bool__ = __nonzero__ 2600 2601
2602 - def GetOutputSize(self):
2603 """GetOutputSize(SBCommandReturnObject self) -> size_t""" 2604 return _lldb.SBCommandReturnObject_GetOutputSize(self)
2605
2606 - def GetErrorSize(self):
2607 """GetErrorSize(SBCommandReturnObject self) -> size_t""" 2608 return _lldb.SBCommandReturnObject_GetErrorSize(self)
2609
2610 - def GetOutput(self, *args):
2611 """ 2612 GetOutput(SBCommandReturnObject self) -> char const 2613 GetOutput(SBCommandReturnObject self, bool only_if_no_immediate) -> char const * 2614 """ 2615 return _lldb.SBCommandReturnObject_GetOutput(self, *args)
2616
2617 - def GetError(self, *args):
2618 """ 2619 GetError(SBCommandReturnObject self) -> char const 2620 GetError(SBCommandReturnObject self, bool if_no_immediate) -> char const * 2621 """ 2622 return _lldb.SBCommandReturnObject_GetError(self, *args)
2623
2624 - def PutOutput(self, *args):
2625 """PutOutput(SBCommandReturnObject self, FILE * fh) -> size_t""" 2626 return _lldb.SBCommandReturnObject_PutOutput(self, *args)
2627
2628 - def PutError(self, *args):
2629 """PutError(SBCommandReturnObject self, FILE * fh) -> size_t""" 2630 return _lldb.SBCommandReturnObject_PutError(self, *args)
2631
2632 - def Clear(self):
2633 """Clear(SBCommandReturnObject self)""" 2634 return _lldb.SBCommandReturnObject_Clear(self)
2635
2636 - def SetStatus(self, *args):
2637 """SetStatus(SBCommandReturnObject self, lldb::ReturnStatus status)""" 2638 return _lldb.SBCommandReturnObject_SetStatus(self, *args)
2639
2640 - def SetError(self, *args):
2641 """ 2642 SetError(SBCommandReturnObject self, SBError error, char const * fallback_error_cstr=None) 2643 SetError(SBCommandReturnObject self, SBError error) 2644 SetError(SBCommandReturnObject self, char const * error_cstr) 2645 """ 2646 return _lldb.SBCommandReturnObject_SetError(self, *args)
2647
2648 - def GetStatus(self):
2649 """GetStatus(SBCommandReturnObject self) -> lldb::ReturnStatus""" 2650 return _lldb.SBCommandReturnObject_GetStatus(self)
2651
2652 - def Succeeded(self):
2653 """Succeeded(SBCommandReturnObject self) -> bool""" 2654 return _lldb.SBCommandReturnObject_Succeeded(self)
2655
2656 - def HasResult(self):
2657 """HasResult(SBCommandReturnObject self) -> bool""" 2658 return _lldb.SBCommandReturnObject_HasResult(self)
2659
2660 - def AppendMessage(self, *args):
2661 """AppendMessage(SBCommandReturnObject self, char const * message)""" 2662 return _lldb.SBCommandReturnObject_AppendMessage(self, *args)
2663
2664 - def AppendWarning(self, *args):
2665 """AppendWarning(SBCommandReturnObject self, char const * message)""" 2666 return _lldb.SBCommandReturnObject_AppendWarning(self, *args)
2667
2668 - def GetDescription(self, *args):
2669 """GetDescription(SBCommandReturnObject self, SBStream description) -> bool""" 2670 return _lldb.SBCommandReturnObject_GetDescription(self, *args)
2671
2672 - def SetImmediateOutputFile(self, *args):
2673 """SetImmediateOutputFile(SBCommandReturnObject self, FILE * fh)""" 2674 return _lldb.SBCommandReturnObject_SetImmediateOutputFile(self, *args)
2675
2676 - def SetImmediateErrorFile(self, *args):
2677 """SetImmediateErrorFile(SBCommandReturnObject self, FILE * fh)""" 2678 return _lldb.SBCommandReturnObject_SetImmediateErrorFile(self, *args)
2679
2680 - def PutCString(self, *args):
2681 """PutCString(SBCommandReturnObject self, char const * string)""" 2682 return _lldb.SBCommandReturnObject_PutCString(self, *args)
2683
2684 - def Print(self, *args):
2685 """Print(SBCommandReturnObject self, char const * str)""" 2686 return _lldb.SBCommandReturnObject_Print(self, *args)
2687
2688 - def __str__(self):
2689 """__str__(SBCommandReturnObject self) -> PyObject *""" 2690 return _lldb.SBCommandReturnObject___str__(self)
2691
2692 - def write(self, *args):
2693 """write(SBCommandReturnObject self, char const * str)""" 2694 return _lldb.SBCommandReturnObject_write(self, *args)
2695
2696 - def flush(self):
2697 """flush(SBCommandReturnObject self)""" 2698 return _lldb.SBCommandReturnObject_flush(self)
2699 2700 SBCommandReturnObject_swigregister = _lldb.SBCommandReturnObject_swigregister 2701 SBCommandReturnObject_swigregister(SBCommandReturnObject)
2702 2703 -class SBCommunication(_object):
2704 """Proxy of C++ lldb::SBCommunication class""" 2705 __swig_setmethods__ = {} 2706 __setattr__ = lambda self, name, value: _swig_setattr(self, SBCommunication, name, value) 2707 __swig_getmethods__ = {} 2708 __getattr__ = lambda self, name: _swig_getattr(self, SBCommunication, name) 2709 __repr__ = _swig_repr 2710 eBroadcastBitDisconnected = _lldb.SBCommunication_eBroadcastBitDisconnected 2711 eBroadcastBitReadThreadGotBytes = _lldb.SBCommunication_eBroadcastBitReadThreadGotBytes 2712 eBroadcastBitReadThreadDidExit = _lldb.SBCommunication_eBroadcastBitReadThreadDidExit 2713 eBroadcastBitReadThreadShouldExit = _lldb.SBCommunication_eBroadcastBitReadThreadShouldExit 2714 eBroadcastBitPacketAvailable = _lldb.SBCommunication_eBroadcastBitPacketAvailable 2715 eAllEventBits = _lldb.SBCommunication_eAllEventBits
2716 - def __init__(self, *args):
2717 """ 2718 __init__(lldb::SBCommunication self) -> SBCommunication 2719 __init__(lldb::SBCommunication self, char const * broadcaster_name) -> SBCommunication 2720 """ 2721 this = _lldb.new_SBCommunication(*args) 2722 try: self.this.append(this) 2723 except: self.this = this
2724 __swig_destroy__ = _lldb.delete_SBCommunication 2725 __del__ = lambda self : None;
2726 - def IsValid(self):
2727 """IsValid(SBCommunication self) -> bool""" 2728 return _lldb.SBCommunication_IsValid(self)
2729
2730 - def __nonzero__(self):
2731 return _lldb.SBCommunication___nonzero__(self)
2732 __bool__ = __nonzero__ 2733 2734
2735 - def GetBroadcaster(self):
2736 """GetBroadcaster(SBCommunication self) -> SBBroadcaster""" 2737 return _lldb.SBCommunication_GetBroadcaster(self)
2738
2739 - def GetBroadcasterClass():
2740 """GetBroadcasterClass() -> char const *""" 2741 return _lldb.SBCommunication_GetBroadcasterClass()
2742 2743 if _newclass:GetBroadcasterClass = staticmethod(GetBroadcasterClass) 2744 __swig_getmethods__["GetBroadcasterClass"] = lambda x: GetBroadcasterClass
2745 - def AdoptFileDesriptor(self, *args):
2746 """AdoptFileDesriptor(SBCommunication self, int fd, bool owns_fd) -> lldb::ConnectionStatus""" 2747 return _lldb.SBCommunication_AdoptFileDesriptor(self, *args)
2748
2749 - def Connect(self, *args):
2750 """Connect(SBCommunication self, char const * url) -> lldb::ConnectionStatus""" 2751 return _lldb.SBCommunication_Connect(self, *args)
2752
2753 - def Disconnect(self):
2754 """Disconnect(SBCommunication self) -> lldb::ConnectionStatus""" 2755 return _lldb.SBCommunication_Disconnect(self)
2756
2757 - def IsConnected(self):
2758 """IsConnected(SBCommunication self) -> bool""" 2759 return _lldb.SBCommunication_IsConnected(self)
2760
2761 - def GetCloseOnEOF(self):
2762 """GetCloseOnEOF(SBCommunication self) -> bool""" 2763 return _lldb.SBCommunication_GetCloseOnEOF(self)
2764
2765 - def SetCloseOnEOF(self, *args):
2766 """SetCloseOnEOF(SBCommunication self, bool b)""" 2767 return _lldb.SBCommunication_SetCloseOnEOF(self, *args)
2768
2769 - def Read(self, *args):
2770 """Read(SBCommunication self, void * dst, size_t dst_len, uint32_t timeout_usec, lldb::ConnectionStatus & status) -> size_t""" 2771 return _lldb.SBCommunication_Read(self, *args)
2772
2773 - def Write(self, *args):
2774 """Write(SBCommunication self, void const * src, size_t src_len, lldb::ConnectionStatus & status) -> size_t""" 2775 return _lldb.SBCommunication_Write(self, *args)
2776
2777 - def ReadThreadStart(self):
2778 """ReadThreadStart(SBCommunication self) -> bool""" 2779 return _lldb.SBCommunication_ReadThreadStart(self)
2780
2781 - def ReadThreadStop(self):
2782 """ReadThreadStop(SBCommunication self) -> bool""" 2783 return _lldb.SBCommunication_ReadThreadStop(self)
2784
2785 - def ReadThreadIsRunning(self):
2786 """ReadThreadIsRunning(SBCommunication self) -> bool""" 2787 return _lldb.SBCommunication_ReadThreadIsRunning(self)
2788
2789 - def SetReadThreadBytesReceivedCallback(self, *args):
2790 """SetReadThreadBytesReceivedCallback(SBCommunication self, lldb::SBCommunication::ReadThreadBytesReceived callback, void * callback_baton) -> bool""" 2791 return _lldb.SBCommunication_SetReadThreadBytesReceivedCallback(self, *args)
2792 2793 SBCommunication_swigregister = _lldb.SBCommunication_swigregister 2794 SBCommunication_swigregister(SBCommunication)
2795 2796 -def SBCommunication_GetBroadcasterClass():
2797 """SBCommunication_GetBroadcasterClass() -> char const *""" 2798 return _lldb.SBCommunication_GetBroadcasterClass()
2799
2800 -class SBCompileUnit(_object):
2801 """ 2802 Represents a compilation unit, or compiled source file. 2803 2804 SBCompileUnit supports line entry iteration. For example, 2805 2806 # Now get the SBSymbolContext from this frame. We want everything. :-) 2807 context = frame0.GetSymbolContext(lldb.eSymbolContextEverything) 2808 ... 2809 2810 compileUnit = context.GetCompileUnit() 2811 2812 for lineEntry in compileUnit: 2813 print('line entry: %s:%d' % (str(lineEntry.GetFileSpec()), 2814 lineEntry.GetLine())) 2815 print('start addr: %s' % str(lineEntry.GetStartAddress())) 2816 print('end addr: %s' % str(lineEntry.GetEndAddress())) 2817 2818 produces: 2819 2820 line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:20 2821 start addr: a.out[0x100000d98] 2822 end addr: a.out[0x100000da3] 2823 line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:21 2824 start addr: a.out[0x100000da3] 2825 end addr: a.out[0x100000da9] 2826 line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:22 2827 start addr: a.out[0x100000da9] 2828 end addr: a.out[0x100000db6] 2829 line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:23 2830 start addr: a.out[0x100000db6] 2831 end addr: a.out[0x100000dbc] 2832 ... 2833 2834 See also SBSymbolContext and SBLineEntry 2835 """ 2836 __swig_setmethods__ = {} 2837 __setattr__ = lambda self, name, value: _swig_setattr(self, SBCompileUnit, name, value) 2838 __swig_getmethods__ = {} 2839 __getattr__ = lambda self, name: _swig_getattr(self, SBCompileUnit, name) 2840 __repr__ = _swig_repr
2841 - def __init__(self, *args):
2842 """ 2843 __init__(lldb::SBCompileUnit self) -> SBCompileUnit 2844 __init__(lldb::SBCompileUnit self, SBCompileUnit rhs) -> SBCompileUnit 2845 """ 2846 this = _lldb.new_SBCompileUnit(*args) 2847 try: self.this.append(this) 2848 except: self.this = this
2849 __swig_destroy__ = _lldb.delete_SBCompileUnit 2850 __del__ = lambda self : None;
2851 - def IsValid(self):
2852 """IsValid(SBCompileUnit self) -> bool""" 2853 return _lldb.SBCompileUnit_IsValid(self)
2854
2855 - def __nonzero__(self):
2856 return _lldb.SBCompileUnit___nonzero__(self)
2857 __bool__ = __nonzero__ 2858 2859
2860 - def GetFileSpec(self):
2861 """GetFileSpec(SBCompileUnit self) -> SBFileSpec""" 2862 return _lldb.SBCompileUnit_GetFileSpec(self)
2863
2864 - def GetNumLineEntries(self):
2865 """GetNumLineEntries(SBCompileUnit self) -> uint32_t""" 2866 return _lldb.SBCompileUnit_GetNumLineEntries(self)
2867
2868 - def GetLineEntryAtIndex(self, *args):
2869 """GetLineEntryAtIndex(SBCompileUnit self, uint32_t idx) -> SBLineEntry""" 2870 return _lldb.SBCompileUnit_GetLineEntryAtIndex(self, *args)
2871
2872 - def FindLineEntryIndex(self, *args):
2873 """ 2874 FindLineEntryIndex(SBCompileUnit self, uint32_t start_idx, uint32_t line, SBFileSpec inline_file_spec) -> uint32_t 2875 FindLineEntryIndex(SBCompileUnit self, uint32_t start_idx, uint32_t line, SBFileSpec inline_file_spec, bool exact) -> uint32_t 2876 """ 2877 return _lldb.SBCompileUnit_FindLineEntryIndex(self, *args)
2878
2879 - def GetSupportFileAtIndex(self, *args):
2880 """GetSupportFileAtIndex(SBCompileUnit self, uint32_t idx) -> SBFileSpec""" 2881 return _lldb.SBCompileUnit_GetSupportFileAtIndex(self, *args)
2882
2883 - def GetNumSupportFiles(self):
2884 """GetNumSupportFiles(SBCompileUnit self) -> uint32_t""" 2885 return _lldb.SBCompileUnit_GetNumSupportFiles(self)
2886
2887 - def FindSupportFileIndex(self, *args):
2888 """FindSupportFileIndex(SBCompileUnit self, uint32_t start_idx, SBFileSpec sb_file, bool full) -> uint32_t""" 2889 return _lldb.SBCompileUnit_FindSupportFileIndex(self, *args)
2890
2891 - def GetTypes(self, *args):
2892 """ 2893 GetTypes(SBCompileUnit self, uint32_t type_mask=eTypeClassAny) -> SBTypeList 2894 GetTypes(SBCompileUnit self) -> SBTypeList 2895 2896 Get all types matching type_mask from debug info in this 2897 compile unit. 2898 2899 @param[in] type_mask 2900 A bitfield that consists of one or more bits logically OR'ed 2901 together from the lldb::TypeClass enumeration. This allows 2902 you to request only structure types, or only class, struct 2903 and union types. Passing in lldb::eTypeClassAny will return 2904 all types found in the debug information for this compile 2905 unit. 2906 2907 @return 2908 A list of types in this compile unit that match type_mask 2909 """ 2910 return _lldb.SBCompileUnit_GetTypes(self, *args)
2911
2912 - def GetLanguage(self):
2913 """GetLanguage(SBCompileUnit self) -> lldb::LanguageType""" 2914 return _lldb.SBCompileUnit_GetLanguage(self)
2915
2916 - def GetDescription(self, *args):
2917 """GetDescription(SBCompileUnit self, SBStream description) -> bool""" 2918 return _lldb.SBCompileUnit_GetDescription(self, *args)
2919
2920 - def __eq__(self, *args):
2921 """__eq__(SBCompileUnit self, SBCompileUnit rhs) -> bool""" 2922 return _lldb.SBCompileUnit___eq__(self, *args)
2923
2924 - def __ne__(self, *args):
2925 """__ne__(SBCompileUnit self, SBCompileUnit rhs) -> bool""" 2926 return _lldb.SBCompileUnit___ne__(self, *args)
2927
2928 - def __iter__(self):
2929 '''Iterate over all line entries in a lldb.SBCompileUnit object.''' 2930 return lldb_iter(self, 'GetNumLineEntries', 'GetLineEntryAtIndex')
2931
2932 - def __len__(self):
2933 '''Return the number of line entries in a lldb.SBCompileUnit 2934 object.''' 2935 return self.GetNumLineEntries()
2936 2937 __swig_getmethods__["file"] = GetFileSpec 2938 if _newclass: file = property(GetFileSpec, None, doc='''A read only property that returns the same result an lldb object that represents the source file (lldb.SBFileSpec) for the compile unit.''') 2939 2940 __swig_getmethods__["num_line_entries"] = GetNumLineEntries 2941 if _newclass: num_line_entries = property(GetNumLineEntries, None, doc='''A read only property that returns the number of line entries in a compile unit as an integer.''') 2942
2943 - def __str__(self):
2944 """__str__(SBCompileUnit self) -> PyObject *""" 2945 return _lldb.SBCompileUnit___str__(self)
2946
2947 - def __eq__(self, rhs):
2948 if not isinstance(rhs, type(self)): 2949 return False 2950 2951 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
2952
2953 - def __ne__(self, rhs):
2954 if not isinstance(rhs, type(self)): 2955 return True 2956 2957 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
2958 2959 SBCompileUnit_swigregister = _lldb.SBCompileUnit_swigregister 2960 SBCompileUnit_swigregister(SBCompileUnit)
2961 2962 -class SBData(_object):
2963 """Proxy of C++ lldb::SBData class""" 2964 __swig_setmethods__ = {} 2965 __setattr__ = lambda self, name, value: _swig_setattr(self, SBData, name, value) 2966 __swig_getmethods__ = {} 2967 __getattr__ = lambda self, name: _swig_getattr(self, SBData, name) 2968 __repr__ = _swig_repr
2969 - def __init__(self, *args):
2970 """ 2971 __init__(lldb::SBData self) -> SBData 2972 __init__(lldb::SBData self, SBData rhs) -> SBData 2973 """ 2974 this = _lldb.new_SBData(*args) 2975 try: self.this.append(this) 2976 except: self.this = this
2977 __swig_destroy__ = _lldb.delete_SBData 2978 __del__ = lambda self : None;
2979 - def GetAddressByteSize(self):
2980 """GetAddressByteSize(SBData self) -> uint8_t""" 2981 return _lldb.SBData_GetAddressByteSize(self)
2982
2983 - def SetAddressByteSize(self, *args):
2984 """SetAddressByteSize(SBData self, uint8_t addr_byte_size)""" 2985 return _lldb.SBData_SetAddressByteSize(self, *args)
2986
2987 - def Clear(self):
2988 """Clear(SBData self)""" 2989 return _lldb.SBData_Clear(self)
2990
2991 - def IsValid(self):
2992 """IsValid(SBData self) -> bool""" 2993 return _lldb.SBData_IsValid(self)
2994
2995 - def __nonzero__(self):
2996 return _lldb.SBData___nonzero__(self)
2997 __bool__ = __nonzero__ 2998 2999
3000 - def GetByteSize(self):
3001 """GetByteSize(SBData self) -> size_t""" 3002 return _lldb.SBData_GetByteSize(self)
3003
3004 - def GetByteOrder(self):
3005 """GetByteOrder(SBData self) -> lldb::ByteOrder""" 3006 return _lldb.SBData_GetByteOrder(self)
3007
3008 - def SetByteOrder(self, *args):
3009 """SetByteOrder(SBData self, lldb::ByteOrder endian)""" 3010 return _lldb.SBData_SetByteOrder(self, *args)
3011
3012 - def GetFloat(self, *args):
3013 """GetFloat(SBData self, SBError error, lldb::offset_t offset) -> float""" 3014 return _lldb.SBData_GetFloat(self, *args)
3015
3016 - def GetDouble(self, *args):
3017 """GetDouble(SBData self, SBError error, lldb::offset_t offset) -> double""" 3018 return _lldb.SBData_GetDouble(self, *args)
3019
3020 - def GetLongDouble(self, *args):
3021 """GetLongDouble(SBData self, SBError error, lldb::offset_t offset) -> long double""" 3022 return _lldb.SBData_GetLongDouble(self, *args)
3023
3024 - def GetAddress(self, *args):
3025 """GetAddress(SBData self, SBError error, lldb::offset_t offset) -> lldb::addr_t""" 3026 return _lldb.SBData_GetAddress(self, *args)
3027
3028 - def GetUnsignedInt8(self, *args):
3029 """GetUnsignedInt8(SBData self, SBError error, lldb::offset_t offset) -> uint8_t""" 3030 return _lldb.SBData_GetUnsignedInt8(self, *args)
3031
3032 - def GetUnsignedInt16(self, *args):
3033 """GetUnsignedInt16(SBData self, SBError error, lldb::offset_t offset) -> uint16_t""" 3034 return _lldb.SBData_GetUnsignedInt16(self, *args)
3035
3036 - def GetUnsignedInt32(self, *args):
3037 """GetUnsignedInt32(SBData self, SBError error, lldb::offset_t offset) -> uint32_t""" 3038 return _lldb.SBData_GetUnsignedInt32(self, *args)
3039
3040 - def GetUnsignedInt64(self, *args):
3041 """GetUnsignedInt64(SBData self, SBError error, lldb::offset_t offset) -> uint64_t""" 3042 return _lldb.SBData_GetUnsignedInt64(self, *args)
3043
3044 - def GetSignedInt8(self, *args):
3045 """GetSignedInt8(SBData self, SBError error, lldb::offset_t offset) -> int8_t""" 3046 return _lldb.SBData_GetSignedInt8(self, *args)
3047
3048 - def GetSignedInt16(self, *args):
3049 """GetSignedInt16(SBData self, SBError error, lldb::offset_t offset) -> int16_t""" 3050 return _lldb.SBData_GetSignedInt16(self, *args)
3051
3052 - def GetSignedInt32(self, *args):
3053 """GetSignedInt32(SBData self, SBError error, lldb::offset_t offset) -> int32_t""" 3054 return _lldb.SBData_GetSignedInt32(self, *args)
3055
3056 - def GetSignedInt64(self, *args):
3057 """GetSignedInt64(SBData self, SBError error, lldb::offset_t offset) -> int64_t""" 3058 return _lldb.SBData_GetSignedInt64(self, *args)
3059
3060 - def GetString(self, *args):
3061 """GetString(SBData self, SBError error, lldb::offset_t offset) -> char const *""" 3062 return _lldb.SBData_GetString(self, *args)
3063
3064 - def GetDescription(self, *args):
3065 """GetDescription(SBData self, SBStream description, lldb::addr_t base_addr) -> bool""" 3066 return _lldb.SBData_GetDescription(self, *args)
3067
3068 - def ReadRawData(self, *args):
3069 """ReadRawData(SBData self, SBError error, lldb::offset_t offset, void * buf) -> size_t""" 3070 return _lldb.SBData_ReadRawData(self, *args)
3071
3072 - def SetData(self, *args):
3073 """SetData(SBData self, SBError error, void const * buf, lldb::ByteOrder endian, uint8_t addr_size)""" 3074 return _lldb.SBData_SetData(self, *args)
3075
3076 - def Append(self, *args):
3077 """Append(SBData self, SBData rhs) -> bool""" 3078 return _lldb.SBData_Append(self, *args)
3079
3080 - def CreateDataFromCString(*args):
3081 """CreateDataFromCString(lldb::ByteOrder endian, uint32_t addr_byte_size, char const * data) -> SBData""" 3082 return _lldb.SBData_CreateDataFromCString(*args)
3083 3084 if _newclass:CreateDataFromCString = staticmethod(CreateDataFromCString) 3085 __swig_getmethods__["CreateDataFromCString"] = lambda x: CreateDataFromCString
3086 - def CreateDataFromUInt64Array(*args):
3087 """CreateDataFromUInt64Array(lldb::ByteOrder endian, uint32_t addr_byte_size, uint64_t * array) -> SBData""" 3088 return _lldb.SBData_CreateDataFromUInt64Array(*args)
3089 3090 if _newclass:CreateDataFromUInt64Array = staticmethod(CreateDataFromUInt64Array) 3091 __swig_getmethods__["CreateDataFromUInt64Array"] = lambda x: CreateDataFromUInt64Array
3092 - def CreateDataFromUInt32Array(*args):
3093 """CreateDataFromUInt32Array(lldb::ByteOrder endian, uint32_t addr_byte_size, uint32_t * array) -> SBData""" 3094 return _lldb.SBData_CreateDataFromUInt32Array(*args)
3095 3096 if _newclass:CreateDataFromUInt32Array = staticmethod(CreateDataFromUInt32Array) 3097 __swig_getmethods__["CreateDataFromUInt32Array"] = lambda x: CreateDataFromUInt32Array
3098 - def CreateDataFromSInt64Array(*args):
3099 """CreateDataFromSInt64Array(lldb::ByteOrder endian, uint32_t addr_byte_size, int64_t * array) -> SBData""" 3100 return _lldb.SBData_CreateDataFromSInt64Array(*args)
3101 3102 if _newclass:CreateDataFromSInt64Array = staticmethod(CreateDataFromSInt64Array) 3103 __swig_getmethods__["CreateDataFromSInt64Array"] = lambda x: CreateDataFromSInt64Array
3104 - def CreateDataFromSInt32Array(*args):
3105 """CreateDataFromSInt32Array(lldb::ByteOrder endian, uint32_t addr_byte_size, int32_t * array) -> SBData""" 3106 return _lldb.SBData_CreateDataFromSInt32Array(*args)
3107 3108 if _newclass:CreateDataFromSInt32Array = staticmethod(CreateDataFromSInt32Array) 3109 __swig_getmethods__["CreateDataFromSInt32Array"] = lambda x: CreateDataFromSInt32Array
3110 - def CreateDataFromDoubleArray(*args):
3111 """CreateDataFromDoubleArray(lldb::ByteOrder endian, uint32_t addr_byte_size, double * array) -> SBData""" 3112 return _lldb.SBData_CreateDataFromDoubleArray(*args)
3113 3114 if _newclass:CreateDataFromDoubleArray = staticmethod(CreateDataFromDoubleArray) 3115 __swig_getmethods__["CreateDataFromDoubleArray"] = lambda x: CreateDataFromDoubleArray
3116 - def SetDataFromCString(self, *args):
3117 """SetDataFromCString(SBData self, char const * data) -> bool""" 3118 return _lldb.SBData_SetDataFromCString(self, *args)
3119
3120 - def SetDataFromUInt64Array(self, *args):
3121 """SetDataFromUInt64Array(SBData self, uint64_t * array) -> bool""" 3122 return _lldb.SBData_SetDataFromUInt64Array(self, *args)
3123
3124 - def SetDataFromUInt32Array(self, *args):
3125 """SetDataFromUInt32Array(SBData self, uint32_t * array) -> bool""" 3126 return _lldb.SBData_SetDataFromUInt32Array(self, *args)
3127
3128 - def SetDataFromSInt64Array(self, *args):
3129 """SetDataFromSInt64Array(SBData self, int64_t * array) -> bool""" 3130 return _lldb.SBData_SetDataFromSInt64Array(self, *args)
3131
3132 - def SetDataFromSInt32Array(self, *args):
3133 """SetDataFromSInt32Array(SBData self, int32_t * array) -> bool""" 3134 return _lldb.SBData_SetDataFromSInt32Array(self, *args)
3135
3136 - def SetDataFromDoubleArray(self, *args):
3137 """SetDataFromDoubleArray(SBData self, double * array) -> bool""" 3138 return _lldb.SBData_SetDataFromDoubleArray(self, *args)
3139
3140 - class read_data_helper:
3141 - def __init__(self, sbdata, readerfunc, item_size):
3142 self.sbdata = sbdata 3143 self.readerfunc = readerfunc 3144 self.item_size = item_size
3145 - def __getitem__(self,key):
3146 if isinstance(key,slice): 3147 list = [] 3148 for x in range(*key.indices(self.__len__())): 3149 list.append(self.__getitem__(x)) 3150 return list 3151 if not (isinstance(key,six.integer_types)): 3152 raise TypeError('must be int') 3153 key = key * self.item_size # SBData uses byte-based indexes, but we want to use itemsize-based indexes here 3154 error = SBError() 3155 my_data = self.readerfunc(self.sbdata,error,key) 3156 if error.Fail(): 3157 raise IndexError(error.GetCString()) 3158 else: 3159 return my_data
3160 - def __len__(self):
3161 return int(self.sbdata.GetByteSize()/self.item_size)
3162 - def all(self):
3163 return self[0:len(self)]
3164 3165 @classmethod
3166 - def CreateDataFromInt (cls, value, size = None, target = None, ptr_size = None, endian = None):
3167 import sys 3168 lldbmodule = sys.modules[cls.__module__] 3169 lldbdict = lldbmodule.__dict__ 3170 if 'target' in lldbdict: 3171 lldbtarget = lldbdict['target'] 3172 else: 3173 lldbtarget = None 3174 if target == None and lldbtarget != None and lldbtarget.IsValid(): 3175 target = lldbtarget 3176 if ptr_size == None: 3177 if target and target.IsValid(): 3178 ptr_size = target.addr_size 3179 else: 3180 ptr_size = 8 3181 if endian == None: 3182 if target and target.IsValid(): 3183 endian = target.byte_order 3184 else: 3185 endian = lldbdict['eByteOrderLittle'] 3186 if size == None: 3187 if value > 2147483647: 3188 size = 8 3189 elif value < -2147483648: 3190 size = 8 3191 elif value > 4294967295: 3192 size = 8 3193 else: 3194 size = 4 3195 if size == 4: 3196 if value < 0: 3197 return SBData().CreateDataFromSInt32Array(endian, ptr_size, [value]) 3198 return SBData().CreateDataFromUInt32Array(endian, ptr_size, [value]) 3199 if size == 8: 3200 if value < 0: 3201 return SBData().CreateDataFromSInt64Array(endian, ptr_size, [value]) 3202 return SBData().CreateDataFromUInt64Array(endian, ptr_size, [value]) 3203 return None
3204
3205 - def _make_helper(self, sbdata, getfunc, itemsize):
3206 return self.read_data_helper(sbdata, getfunc, itemsize)
3207
3208 - def _make_helper_uint8(self):
3209 return self._make_helper(self, SBData.GetUnsignedInt8, 1)
3210
3211 - def _make_helper_uint16(self):
3212 return self._make_helper(self, SBData.GetUnsignedInt16, 2)
3213
3214 - def _make_helper_uint32(self):
3215 return self._make_helper(self, SBData.GetUnsignedInt32, 4)
3216
3217 - def _make_helper_uint64(self):
3218 return self._make_helper(self, SBData.GetUnsignedInt64, 8)
3219
3220 - def _make_helper_sint8(self):
3221 return self._make_helper(self, SBData.GetSignedInt8, 1)
3222
3223 - def _make_helper_sint16(self):
3224 return self._make_helper(self, SBData.GetSignedInt16, 2)
3225
3226 - def _make_helper_sint32(self):
3227 return self._make_helper(self, SBData.GetSignedInt32, 4)
3228
3229 - def _make_helper_sint64(self):
3230 return self._make_helper(self, SBData.GetSignedInt64, 8)
3231
3232 - def _make_helper_float(self):
3233 return self._make_helper(self, SBData.GetFloat, 4)
3234
3235 - def _make_helper_double(self):
3236 return self._make_helper(self, SBData.GetDouble, 8)
3237
3238 - def _read_all_uint8(self):
3239 return self._make_helper_uint8().all()
3240
3241 - def _read_all_uint16(self):
3242 return self._make_helper_uint16().all()
3243
3244 - def _read_all_uint32(self):
3245 return self._make_helper_uint32().all()
3246
3247 - def _read_all_uint64(self):
3248 return self._make_helper_uint64().all()
3249
3250 - def _read_all_sint8(self):
3251 return self._make_helper_sint8().all()
3252
3253 - def _read_all_sint16(self):
3254 return self._make_helper_sint16().all()
3255
3256 - def _read_all_sint32(self):
3257 return self._make_helper_sint32().all()
3258
3259 - def _read_all_sint64(self):
3260 return self._make_helper_sint64().all()
3261
3262 - def _read_all_float(self):
3263 return self._make_helper_float().all()
3264
3265 - def _read_all_double(self):
3266 return self._make_helper_double().all()
3267 3268 __swig_getmethods__["uint8"] = _make_helper_uint8 3269 if _newclass: uint8 = property(_make_helper_uint8, None, doc='''A read only property that returns an array-like object out of which you can read uint8 values.''') 3270 3271 __swig_getmethods__["uint16"] = _make_helper_uint16 3272 if _newclass: uint16 = property(_make_helper_uint16, None, doc='''A read only property that returns an array-like object out of which you can read uint16 values.''') 3273 3274 __swig_getmethods__["uint32"] = _make_helper_uint32 3275 if _newclass: uint32 = property(_make_helper_uint32, None, doc='''A read only property that returns an array-like object out of which you can read uint32 values.''') 3276 3277 __swig_getmethods__["uint64"] = _make_helper_uint64 3278 if _newclass: uint64 = property(_make_helper_uint64, None, doc='''A read only property that returns an array-like object out of which you can read uint64 values.''') 3279 3280 __swig_getmethods__["sint8"] = _make_helper_sint8 3281 if _newclass: sint8 = property(_make_helper_sint8, None, doc='''A read only property that returns an array-like object out of which you can read sint8 values.''') 3282 3283 __swig_getmethods__["sint16"] = _make_helper_sint16 3284 if _newclass: sint16 = property(_make_helper_sint16, None, doc='''A read only property that returns an array-like object out of which you can read sint16 values.''') 3285 3286 __swig_getmethods__["sint32"] = _make_helper_sint32 3287 if _newclass: sint32 = property(_make_helper_sint32, None, doc='''A read only property that returns an array-like object out of which you can read sint32 values.''') 3288 3289 __swig_getmethods__["sint64"] = _make_helper_sint64 3290 if _newclass: sint64 = property(_make_helper_sint64, None, doc='''A read only property that returns an array-like object out of which you can read sint64 values.''') 3291 3292 __swig_getmethods__["float"] = _make_helper_float 3293 if _newclass: float = property(_make_helper_float, None, doc='''A read only property that returns an array-like object out of which you can read float values.''') 3294 3295 __swig_getmethods__["double"] = _make_helper_double 3296 if _newclass: double = property(_make_helper_double, None, doc='''A read only property that returns an array-like object out of which you can read double values.''') 3297 3298 __swig_getmethods__["uint8s"] = _read_all_uint8 3299 if _newclass: uint8s = property(_read_all_uint8, None, doc='''A read only property that returns an array with all the contents of this SBData represented as uint8 values.''') 3300 3301 __swig_getmethods__["uint16s"] = _read_all_uint16 3302 if _newclass: uint16s = property(_read_all_uint16, None, doc='''A read only property that returns an array with all the contents of this SBData represented as uint16 values.''') 3303 3304 __swig_getmethods__["uint32s"] = _read_all_uint32 3305 if _newclass: uint32s = property(_read_all_uint32, None, doc='''A read only property that returns an array with all the contents of this SBData represented as uint32 values.''') 3306 3307 __swig_getmethods__["uint64s"] = _read_all_uint64 3308 if _newclass: uint64s = property(_read_all_uint64, None, doc='''A read only property that returns an array with all the contents of this SBData represented as uint64 values.''') 3309 3310 __swig_getmethods__["sint8s"] = _read_all_sint8 3311 if _newclass: sint8s = property(_read_all_sint8, None, doc='''A read only property that returns an array with all the contents of this SBData represented as sint8 values.''') 3312 3313 __swig_getmethods__["sint16s"] = _read_all_sint16 3314 if _newclass: sint16s = property(_read_all_sint16, None, doc='''A read only property that returns an array with all the contents of this SBData represented as sint16 values.''') 3315 3316 __swig_getmethods__["sint32s"] = _read_all_sint32 3317 if _newclass: sint32s = property(_read_all_sint32, None, doc='''A read only property that returns an array with all the contents of this SBData represented as sint32 values.''') 3318 3319 __swig_getmethods__["sint64s"] = _read_all_sint64 3320 if _newclass: sint64s = property(_read_all_sint64, None, doc='''A read only property that returns an array with all the contents of this SBData represented as sint64 values.''') 3321 3322 __swig_getmethods__["floats"] = _read_all_float 3323 if _newclass: floats = property(_read_all_float, None, doc='''A read only property that returns an array with all the contents of this SBData represented as float values.''') 3324 3325 __swig_getmethods__["doubles"] = _read_all_double 3326 if _newclass: doubles = property(_read_all_double, None, doc='''A read only property that returns an array with all the contents of this SBData represented as double values.''') 3327 3328 3329 __swig_getmethods__["byte_order"] = GetByteOrder 3330 __swig_setmethods__["byte_order"] = SetByteOrder 3331 if _newclass: byte_order = property(GetByteOrder, SetByteOrder, doc='''A read/write property getting and setting the endianness of this SBData (data.byte_order = lldb.eByteOrderLittle).''') 3332 3333 __swig_getmethods__["size"] = GetByteSize 3334 if _newclass: size = property(GetByteSize, None, doc='''A read only property that returns the size the same result as GetByteSize().''') 3335 3336
3337 - def __str__(self):
3338 """__str__(SBData self) -> PyObject *""" 3339 return _lldb.SBData___str__(self)
3340 3341 SBData_swigregister = _lldb.SBData_swigregister 3342 SBData_swigregister(SBData)
3343 3344 -def SBData_CreateDataFromCString(*args):
3345 """SBData_CreateDataFromCString(lldb::ByteOrder endian, uint32_t addr_byte_size, char const * data) -> SBData""" 3346 return _lldb.SBData_CreateDataFromCString(*args)
3347
3348 -def SBData_CreateDataFromUInt64Array(*args):
3349 """SBData_CreateDataFromUInt64Array(lldb::ByteOrder endian, uint32_t addr_byte_size, uint64_t * array) -> SBData""" 3350 return _lldb.SBData_CreateDataFromUInt64Array(*args)
3351
3352 -def SBData_CreateDataFromUInt32Array(*args):
3353 """SBData_CreateDataFromUInt32Array(lldb::ByteOrder endian, uint32_t addr_byte_size, uint32_t * array) -> SBData""" 3354 return _lldb.SBData_CreateDataFromUInt32Array(*args)
3355
3356 -def SBData_CreateDataFromSInt64Array(*args):
3357 """SBData_CreateDataFromSInt64Array(lldb::ByteOrder endian, uint32_t addr_byte_size, int64_t * array) -> SBData""" 3358 return _lldb.SBData_CreateDataFromSInt64Array(*args)
3359
3360 -def SBData_CreateDataFromSInt32Array(*args):
3361 """SBData_CreateDataFromSInt32Array(lldb::ByteOrder endian, uint32_t addr_byte_size, int32_t * array) -> SBData""" 3362 return _lldb.SBData_CreateDataFromSInt32Array(*args)
3363
3364 -def SBData_CreateDataFromDoubleArray(*args):
3365 """SBData_CreateDataFromDoubleArray(lldb::ByteOrder endian, uint32_t addr_byte_size, double * array) -> SBData""" 3366 return _lldb.SBData_CreateDataFromDoubleArray(*args)
3367
3368 -class SBDebugger(_object):
3369 """ 3370 SBDebugger is the primordial object that creates SBTargets and provides 3371 access to them. It also manages the overall debugging experiences. 3372 3373 For example (from example/disasm.py), 3374 3375 import lldb 3376 import os 3377 import sys 3378 3379 def disassemble_instructions (insts): 3380 for i in insts: 3381 print i 3382 3383 ... 3384 3385 # Create a new debugger instance 3386 debugger = lldb.SBDebugger.Create() 3387 3388 # When we step or continue, don't return from the function until the process 3389 # stops. We do this by setting the async mode to false. 3390 debugger.SetAsync (False) 3391 3392 # Create a target from a file and arch 3393 print('Creating a target for '%s'' % exe) 3394 3395 target = debugger.CreateTargetWithFileAndArch (exe, lldb.LLDB_ARCH_DEFAULT) 3396 3397 if target: 3398 # If the target is valid set a breakpoint at main 3399 main_bp = target.BreakpointCreateByName (fname, target.GetExecutable().GetFilename()); 3400 3401 print main_bp 3402 3403 # Launch the process. Since we specified synchronous mode, we won't return 3404 # from this function until we hit the breakpoint at main 3405 process = target.LaunchSimple (None, None, os.getcwd()) 3406 3407 # Make sure the launch went ok 3408 if process: 3409 # Print some simple process info 3410 state = process.GetState () 3411 print process 3412 if state == lldb.eStateStopped: 3413 # Get the first thread 3414 thread = process.GetThreadAtIndex (0) 3415 if thread: 3416 # Print some simple thread info 3417 print thread 3418 # Get the first frame 3419 frame = thread.GetFrameAtIndex (0) 3420 if frame: 3421 # Print some simple frame info 3422 print frame 3423 function = frame.GetFunction() 3424 # See if we have debug info (a function) 3425 if function: 3426 # We do have a function, print some info for the function 3427 print function 3428 # Now get all instructions for this function and print them 3429 insts = function.GetInstructions(target) 3430 disassemble_instructions (insts) 3431 else: 3432 # See if we have a symbol in the symbol table for where we stopped 3433 symbol = frame.GetSymbol(); 3434 if symbol: 3435 # We do have a symbol, print some info for the symbol 3436 print symbol 3437 # Now get all instructions for this symbol and print them 3438 insts = symbol.GetInstructions(target) 3439 disassemble_instructions (insts) 3440 3441 registerList = frame.GetRegisters() 3442 print('Frame registers (size of register set = %d):' % registerList.GetSize()) 3443 for value in registerList: 3444 #print value 3445 print('%s (number of children = %d):' % (value.GetName(), value.GetNumChildren())) 3446 for child in value: 3447 print('Name: ', child.GetName(), ' Value: ', child.GetValue()) 3448 3449 print('Hit the breakpoint at main, enter to continue and wait for program to exit or 'Ctrl-D'/'quit' to terminate the program') 3450 next = sys.stdin.readline() 3451 if not next or next.rstrip(' 3452 ') == 'quit': 3453 print('Terminating the inferior process...') 3454 process.Kill() 3455 else: 3456 # Now continue to the program exit 3457 process.Continue() 3458 # When we return from the above function we will hopefully be at the 3459 # program exit. Print out some process info 3460 print process 3461 elif state == lldb.eStateExited: 3462 print('Didn't hit the breakpoint at main, program has exited...') 3463 else: 3464 print('Unexpected process state: %s, killing process...' % debugger.StateAsCString (state)) 3465 process.Kill() 3466 3467 Sometimes you need to create an empty target that will get filled in later. The most common use for this 3468 is to attach to a process by name or pid where you don't know the executable up front. The most convenient way 3469 to do this is: 3470 3471 target = debugger.CreateTarget('') 3472 error = lldb.SBError() 3473 process = target.AttachToProcessWithName(debugger.GetListener(), 'PROCESS_NAME', False, error) 3474 3475 or the equivalent arguments for AttachToProcessWithID. 3476 """ 3477 __swig_setmethods__ = {} 3478 __setattr__ = lambda self, name, value: _swig_setattr(self, SBDebugger, name, value) 3479 __swig_getmethods__ = {} 3480 __getattr__ = lambda self, name: _swig_getattr(self, SBDebugger, name) 3481 __repr__ = _swig_repr
3482 - def Initialize():
3483 """Initialize()""" 3484 return _lldb.SBDebugger_Initialize()
3485 3486 if _newclass:Initialize = staticmethod(Initialize) 3487 __swig_getmethods__["Initialize"] = lambda x: Initialize
3489 """InitializeWithErrorHandling() -> SBError""" 3490 return _lldb.SBDebugger_InitializeWithErrorHandling()
3491 3492 if _newclass:InitializeWithErrorHandling = staticmethod(InitializeWithErrorHandling) 3493 __swig_getmethods__["InitializeWithErrorHandling"] = lambda x: InitializeWithErrorHandling
3494 - def Terminate():
3495 """Terminate()""" 3496 return _lldb.SBDebugger_Terminate()
3497 3498 if _newclass:Terminate = staticmethod(Terminate) 3499 __swig_getmethods__["Terminate"] = lambda x: Terminate
3500 - def Create(*args):
3501 """ 3502 Create() -> SBDebugger 3503 Create(bool source_init_files) -> SBDebugger 3504 Create(bool source_init_files, lldb::LogOutputCallback log_callback) -> SBDebugger 3505 """ 3506 return _lldb.SBDebugger_Create(*args)
3507 3508 if _newclass:Create = staticmethod(Create) 3509 __swig_getmethods__["Create"] = lambda x: Create
3510 - def Destroy(*args):
3511 """Destroy(SBDebugger debugger)""" 3512 return _lldb.SBDebugger_Destroy(*args)
3513 3514 if _newclass:Destroy = staticmethod(Destroy) 3515 __swig_getmethods__["Destroy"] = lambda x: Destroy
3517 """MemoryPressureDetected()""" 3518 return _lldb.SBDebugger_MemoryPressureDetected()
3519 3520 if _newclass:MemoryPressureDetected = staticmethod(MemoryPressureDetected) 3521 __swig_getmethods__["MemoryPressureDetected"] = lambda x: MemoryPressureDetected
3522 - def __init__(self, *args):
3523 """ 3524 __init__(lldb::SBDebugger self) -> SBDebugger 3525 __init__(lldb::SBDebugger self, SBDebugger rhs) -> SBDebugger 3526 """ 3527 this = _lldb.new_SBDebugger(*args) 3528 try: self.this.append(this) 3529 except: self.this = this
3530 __swig_destroy__ = _lldb.delete_SBDebugger 3531 __del__ = lambda self : None;
3532 - def IsValid(self):
3533 """IsValid(SBDebugger self) -> bool""" 3534 return _lldb.SBDebugger_IsValid(self)
3535
3536 - def __nonzero__(self):
3537 return _lldb.SBDebugger___nonzero__(self)
3538 __bool__ = __nonzero__ 3539 3540
3541 - def Clear(self):
3542 """Clear(SBDebugger self)""" 3543 return _lldb.SBDebugger_Clear(self)
3544
3545 - def SetAsync(self, *args):
3546 """SetAsync(SBDebugger self, bool b)""" 3547 return _lldb.SBDebugger_SetAsync(self, *args)
3548
3549 - def GetAsync(self):
3550 """GetAsync(SBDebugger self) -> bool""" 3551 return _lldb.SBDebugger_GetAsync(self)
3552
3553 - def SkipLLDBInitFiles(self, *args):
3554 """SkipLLDBInitFiles(SBDebugger self, bool b)""" 3555 return _lldb.SBDebugger_SkipLLDBInitFiles(self, *args)
3556
3557 - def SetInputFileHandle(self, *args):
3558 """SetInputFileHandle(SBDebugger self, FILE * f, bool transfer_ownership)""" 3559 return _lldb.SBDebugger_SetInputFileHandle(self, *args)
3560
3561 - def SetOutputFileHandle(self, *args):
3562 """SetOutputFileHandle(SBDebugger self, FILE * f, bool transfer_ownership)""" 3563 return _lldb.SBDebugger_SetOutputFileHandle(self, *args)
3564
3565 - def SetErrorFileHandle(self, *args):
3566 """SetErrorFileHandle(SBDebugger self, FILE * f, bool transfer_ownership)""" 3567 return _lldb.SBDebugger_SetErrorFileHandle(self, *args)
3568
3569 - def GetInputFileHandle(self):
3570 """GetInputFileHandle(SBDebugger self) -> FILE *""" 3571 return _lldb.SBDebugger_GetInputFileHandle(self)
3572
3573 - def GetOutputFileHandle(self):
3574 """GetOutputFileHandle(SBDebugger self) -> FILE *""" 3575 return _lldb.SBDebugger_GetOutputFileHandle(self)
3576
3577 - def GetErrorFileHandle(self):
3578 """GetErrorFileHandle(SBDebugger self) -> FILE *""" 3579 return _lldb.SBDebugger_GetErrorFileHandle(self)
3580
3581 - def GetCommandInterpreter(self):
3582 """GetCommandInterpreter(SBDebugger self) -> SBCommandInterpreter""" 3583 return _lldb.SBDebugger_GetCommandInterpreter(self)
3584
3585 - def HandleCommand(self, *args):
3586 """HandleCommand(SBDebugger self, char const * command)""" 3587 return _lldb.SBDebugger_HandleCommand(self, *args)
3588
3589 - def GetListener(self):
3590 """GetListener(SBDebugger self) -> SBListener""" 3591 return _lldb.SBDebugger_GetListener(self)
3592
3593 - def HandleProcessEvent(self, *args):
3594 """HandleProcessEvent(SBDebugger self, SBProcess process, SBEvent event, FILE * out, FILE * err)""" 3595 return _lldb.SBDebugger_HandleProcessEvent(self, *args)
3596
3597 - def CreateTargetWithFileAndTargetTriple(self, *args):
3598 """CreateTargetWithFileAndTargetTriple(SBDebugger self, char const * filename, char const * target_triple) -> SBTarget""" 3599 return _lldb.SBDebugger_CreateTargetWithFileAndTargetTriple(self, *args)
3600
3601 - def CreateTargetWithFileAndArch(self, *args):
3602 """CreateTargetWithFileAndArch(SBDebugger self, char const * filename, char const * archname) -> SBTarget""" 3603 return _lldb.SBDebugger_CreateTargetWithFileAndArch(self, *args)
3604
3605 - def CreateTarget(self, *args):
3606 """ 3607 CreateTarget(SBDebugger self, char const * filename, char const * target_triple, char const * platform_name, bool add_dependent_modules, 3608 SBError sb_error) -> SBTarget 3609 CreateTarget(SBDebugger self, char const * filename) -> SBTarget 3610 """ 3611 return _lldb.SBDebugger_CreateTarget(self, *args)
3612
3613 - def GetDummyTarget(self):
3614 """ 3615 GetDummyTarget(SBDebugger self) -> SBTarget 3616 3617 The dummy target holds breakpoints and breakpoint names that will prime newly created targets. 3618 """ 3619 return _lldb.SBDebugger_GetDummyTarget(self)
3620
3621 - def DeleteTarget(self, *args):
3622 """ 3623 DeleteTarget(SBDebugger self, SBTarget target) -> bool 3624 3625 Return true if target is deleted from the target list of the debugger. 3626 """ 3627 return _lldb.SBDebugger_DeleteTarget(self, *args)
3628
3629 - def GetTargetAtIndex(self, *args):
3630 """GetTargetAtIndex(SBDebugger self, uint32_t idx) -> SBTarget""" 3631 return _lldb.SBDebugger_GetTargetAtIndex(self, *args)
3632
3633 - def GetIndexOfTarget(self, *args):
3634 """GetIndexOfTarget(SBDebugger self, SBTarget target) -> uint32_t""" 3635 return _lldb.SBDebugger_GetIndexOfTarget(self, *args)
3636
3637 - def FindTargetWithProcessID(self, *args):
3638 """FindTargetWithProcessID(SBDebugger self, lldb::pid_t pid) -> SBTarget""" 3639 return _lldb.SBDebugger_FindTargetWithProcessID(self, *args)
3640
3641 - def FindTargetWithFileAndArch(self, *args):
3642 """FindTargetWithFileAndArch(SBDebugger self, char const * filename, char const * arch) -> SBTarget""" 3643 return _lldb.SBDebugger_FindTargetWithFileAndArch(self, *args)
3644
3645 - def GetNumTargets(self):
3646 """GetNumTargets(SBDebugger self) -> uint32_t""" 3647 return _lldb.SBDebugger_GetNumTargets(self)
3648
3649 - def GetSelectedTarget(self):
3650 """GetSelectedTarget(SBDebugger self) -> SBTarget""" 3651 return _lldb.SBDebugger_GetSelectedTarget(self)
3652
3653 - def SetSelectedTarget(self, *args):
3654 """SetSelectedTarget(SBDebugger self, SBTarget target)""" 3655 return _lldb.SBDebugger_SetSelectedTarget(self, *args)
3656
3657 - def GetSelectedPlatform(self):
3658 """GetSelectedPlatform(SBDebugger self) -> SBPlatform""" 3659 return _lldb.SBDebugger_GetSelectedPlatform(self)
3660
3661 - def SetSelectedPlatform(self, *args):
3662 """SetSelectedPlatform(SBDebugger self, SBPlatform platform)""" 3663 return _lldb.SBDebugger_SetSelectedPlatform(self, *args)
3664
3665 - def GetNumPlatforms(self):
3666 """ 3667 GetNumPlatforms(SBDebugger self) -> uint32_t 3668 3669 Get the number of currently active platforms. 3670 """ 3671 return _lldb.SBDebugger_GetNumPlatforms(self)
3672
3673 - def GetPlatformAtIndex(self, *args):
3674 """ 3675 GetPlatformAtIndex(SBDebugger self, uint32_t idx) -> SBPlatform 3676 3677 Get one of the currently active platforms. 3678 """ 3679 return _lldb.SBDebugger_GetPlatformAtIndex(self, *args)
3680
3681 - def GetNumAvailablePlatforms(self):
3682 """ 3683 GetNumAvailablePlatforms(SBDebugger self) -> uint32_t 3684 3685 Get the number of available platforms. 3686 """ 3687 return _lldb.SBDebugger_GetNumAvailablePlatforms(self)
3688
3689 - def GetAvailablePlatformInfoAtIndex(self, *args):
3690 """ 3691 GetAvailablePlatformInfoAtIndex(SBDebugger self, uint32_t idx) -> SBStructuredData 3692 3693 Get the name and description of one of the available platforms. 3694 3695 @param idx Zero-based index of the platform for which info should be 3696 retrieved, must be less than the value returned by 3697 GetNumAvailablePlatforms(). 3698 """ 3699 return _lldb.SBDebugger_GetAvailablePlatformInfoAtIndex(self, *args)
3700
3701 - def GetSourceManager(self):
3702 """GetSourceManager(SBDebugger self) -> SBSourceManager""" 3703 return _lldb.SBDebugger_GetSourceManager(self)
3704
3705 - def SetCurrentPlatform(self, *args):
3706 """SetCurrentPlatform(SBDebugger self, char const * platform_name) -> SBError""" 3707 return _lldb.SBDebugger_SetCurrentPlatform(self, *args)
3708
3709 - def SetCurrentPlatformSDKRoot(self, *args):
3710 """SetCurrentPlatformSDKRoot(SBDebugger self, char const * sysroot) -> bool""" 3711 return _lldb.SBDebugger_SetCurrentPlatformSDKRoot(self, *args)
3712
3713 - def SetUseExternalEditor(self, *args):
3714 """SetUseExternalEditor(SBDebugger self, bool input) -> bool""" 3715 return _lldb.SBDebugger_SetUseExternalEditor(self, *args)
3716
3717 - def GetUseExternalEditor(self):
3718 """GetUseExternalEditor(SBDebugger self) -> bool""" 3719 return _lldb.SBDebugger_GetUseExternalEditor(self)
3720
3721 - def SetUseColor(self, *args):
3722 """SetUseColor(SBDebugger self, bool use_color) -> bool""" 3723 return _lldb.SBDebugger_SetUseColor(self, *args)
3724
3725 - def GetUseColor(self):
3726 """GetUseColor(SBDebugger self) -> bool""" 3727 return _lldb.SBDebugger_GetUseColor(self)
3728
3729 - def GetDefaultArchitecture(*args):
3730 """GetDefaultArchitecture(char * arch_name, size_t arch_name_len) -> bool""" 3731 return _lldb.SBDebugger_GetDefaultArchitecture(*args)
3732 3733 if _newclass:GetDefaultArchitecture = staticmethod(GetDefaultArchitecture) 3734 __swig_getmethods__["GetDefaultArchitecture"] = lambda x: GetDefaultArchitecture
3735 - def SetDefaultArchitecture(*args):
3736 """SetDefaultArchitecture(char const * arch_name) -> bool""" 3737 return _lldb.SBDebugger_SetDefaultArchitecture(*args)
3738 3739 if _newclass:SetDefaultArchitecture = staticmethod(SetDefaultArchitecture) 3740 __swig_getmethods__["SetDefaultArchitecture"] = lambda x: SetDefaultArchitecture
3741 - def GetScriptingLanguage(self, *args):
3742 """GetScriptingLanguage(SBDebugger self, char const * script_language_name) -> lldb::ScriptLanguage""" 3743 return _lldb.SBDebugger_GetScriptingLanguage(self, *args)
3744
3745 - def GetVersionString():
3746 """GetVersionString() -> char const *""" 3747 return _lldb.SBDebugger_GetVersionString()
3748 3749 if _newclass:GetVersionString = staticmethod(GetVersionString) 3750 __swig_getmethods__["GetVersionString"] = lambda x: GetVersionString
3751 - def StateAsCString(*args):
3752 """StateAsCString(lldb::StateType state) -> char const *""" 3753 return _lldb.SBDebugger_StateAsCString(*args)
3754 3755 if _newclass:StateAsCString = staticmethod(StateAsCString) 3756 __swig_getmethods__["StateAsCString"] = lambda x: StateAsCString
3757 - def GetBuildConfiguration():
3758 """GetBuildConfiguration() -> SBStructuredData""" 3759 return _lldb.SBDebugger_GetBuildConfiguration()
3760 3761 if _newclass:GetBuildConfiguration = staticmethod(GetBuildConfiguration) 3762 __swig_getmethods__["GetBuildConfiguration"] = lambda x: GetBuildConfiguration
3763 - def StateIsRunningState(*args):
3764 """StateIsRunningState(lldb::StateType state) -> bool""" 3765 return _lldb.SBDebugger_StateIsRunningState(*args)
3766 3767 if _newclass:StateIsRunningState = staticmethod(StateIsRunningState) 3768 __swig_getmethods__["StateIsRunningState"] = lambda x: StateIsRunningState
3769 - def StateIsStoppedState(*args):
3770 """StateIsStoppedState(lldb::StateType state) -> bool""" 3771 return _lldb.SBDebugger_StateIsStoppedState(*args)
3772 3773 if _newclass:StateIsStoppedState = staticmethod(StateIsStoppedState) 3774 __swig_getmethods__["StateIsStoppedState"] = lambda x: StateIsStoppedState
3775 - def EnableLog(self, *args):
3776 """EnableLog(SBDebugger self, char const * channel, char const ** types) -> bool""" 3777 return _lldb.SBDebugger_EnableLog(self, *args)
3778
3779 - def SetLoggingCallback(self, *args):
3780 """SetLoggingCallback(SBDebugger self, lldb::LogOutputCallback log_callback)""" 3781 return _lldb.SBDebugger_SetLoggingCallback(self, *args)
3782
3783 - def DispatchInput(self, *args):
3784 """DispatchInput(SBDebugger self, void const * data)""" 3785 return _lldb.SBDebugger_DispatchInput(self, *args)
3786
3787 - def DispatchInputInterrupt(self):
3788 """DispatchInputInterrupt(SBDebugger self)""" 3789 return _lldb.SBDebugger_DispatchInputInterrupt(self)
3790
3791 - def DispatchInputEndOfFile(self):
3792 """DispatchInputEndOfFile(SBDebugger self)""" 3793 return _lldb.SBDebugger_DispatchInputEndOfFile(self)
3794
3795 - def GetInstanceName(self):
3796 """GetInstanceName(SBDebugger self) -> char const *""" 3797 return _lldb.SBDebugger_GetInstanceName(self)
3798
3799 - def FindDebuggerWithID(*args):
3800 """FindDebuggerWithID(int id) -> SBDebugger""" 3801 return _lldb.SBDebugger_FindDebuggerWithID(*args)
3802 3803 if _newclass:FindDebuggerWithID = staticmethod(FindDebuggerWithID) 3804 __swig_getmethods__["FindDebuggerWithID"] = lambda x: FindDebuggerWithID
3805 - def SetInternalVariable(*args):
3806 """SetInternalVariable(char const * var_name, char const * value, char const * debugger_instance_name) -> SBError""" 3807 return _lldb.SBDebugger_SetInternalVariable(*args)
3808 3809 if _newclass:SetInternalVariable = staticmethod(SetInternalVariable) 3810 __swig_getmethods__["SetInternalVariable"] = lambda x: SetInternalVariable
3811 - def GetInternalVariableValue(*args):
3812 """GetInternalVariableValue(char const * var_name, char const * debugger_instance_name) -> SBStringList""" 3813 return _lldb.SBDebugger_GetInternalVariableValue(*args)
3814 3815 if _newclass:GetInternalVariableValue = staticmethod(GetInternalVariableValue) 3816 __swig_getmethods__["GetInternalVariableValue"] = lambda x: GetInternalVariableValue
3817 - def GetDescription(self, *args):
3818 """GetDescription(SBDebugger self, SBStream description) -> bool""" 3819 return _lldb.SBDebugger_GetDescription(self, *args)
3820
3821 - def GetTerminalWidth(self):
3822 """GetTerminalWidth(SBDebugger self) -> uint32_t""" 3823 return _lldb.SBDebugger_GetTerminalWidth(self)
3824
3825 - def SetTerminalWidth(self, *args):
3826 """SetTerminalWidth(SBDebugger self, uint32_t term_width)""" 3827 return _lldb.SBDebugger_SetTerminalWidth(self, *args)
3828
3829 - def GetID(self):
3830 """GetID(SBDebugger self) -> lldb::user_id_t""" 3831 return _lldb.SBDebugger_GetID(self)
3832
3833 - def GetPrompt(self):
3834 """GetPrompt(SBDebugger self) -> char const *""" 3835 return _lldb.SBDebugger_GetPrompt(self)
3836
3837 - def SetPrompt(self, *args):
3838 """SetPrompt(SBDebugger self, char const * prompt)""" 3839 return _lldb.SBDebugger_SetPrompt(self, *args)
3840
3841 - def GetReproducerPath(self):
3842 """GetReproducerPath(SBDebugger self) -> char const *""" 3843 return _lldb.SBDebugger_GetReproducerPath(self)
3844
3845 - def GetScriptLanguage(self):
3846 """GetScriptLanguage(SBDebugger self) -> lldb::ScriptLanguage""" 3847 return _lldb.SBDebugger_GetScriptLanguage(self)
3848
3849 - def SetScriptLanguage(self, *args):
3850 """SetScriptLanguage(SBDebugger self, lldb::ScriptLanguage script_lang)""" 3851 return _lldb.SBDebugger_SetScriptLanguage(self, *args)
3852
3853 - def GetCloseInputOnEOF(self):
3854 """GetCloseInputOnEOF(SBDebugger self) -> bool""" 3855 return _lldb.SBDebugger_GetCloseInputOnEOF(self)
3856
3857 - def SetCloseInputOnEOF(self, *args):
3858 """SetCloseInputOnEOF(SBDebugger self, bool b)""" 3859 return _lldb.SBDebugger_SetCloseInputOnEOF(self, *args)
3860
3861 - def GetCategory(self, *args):
3862 """ 3863 GetCategory(SBDebugger self, char const * category_name) -> SBTypeCategory 3864 GetCategory(SBDebugger self, lldb::LanguageType lang_type) -> SBTypeCategory 3865 """ 3866 return _lldb.SBDebugger_GetCategory(self, *args)
3867
3868 - def CreateCategory(self, *args):
3869 """CreateCategory(SBDebugger self, char const * category_name) -> SBTypeCategory""" 3870 return _lldb.SBDebugger_CreateCategory(self, *args)
3871
3872 - def DeleteCategory(self, *args):
3873 """DeleteCategory(SBDebugger self, char const * category_name) -> bool""" 3874 return _lldb.SBDebugger_DeleteCategory(self, *args)
3875
3876 - def GetNumCategories(self):
3877 """GetNumCategories(SBDebugger self) -> uint32_t""" 3878 return _lldb.SBDebugger_GetNumCategories(self)
3879
3880 - def GetCategoryAtIndex(self, *args):
3881 """GetCategoryAtIndex(SBDebugger self, uint32_t arg2) -> SBTypeCategory""" 3882 return _lldb.SBDebugger_GetCategoryAtIndex(self, *args)
3883
3884 - def GetDefaultCategory(self):
3885 """GetDefaultCategory(SBDebugger self) -> SBTypeCategory""" 3886 return _lldb.SBDebugger_GetDefaultCategory(self)
3887
3888 - def GetFormatForType(self, *args):
3889 """GetFormatForType(SBDebugger self, SBTypeNameSpecifier arg2) -> SBTypeFormat""" 3890 return _lldb.SBDebugger_GetFormatForType(self, *args)
3891
3892 - def GetSummaryForType(self, *args):
3893 """GetSummaryForType(SBDebugger self, SBTypeNameSpecifier arg2) -> SBTypeSummary""" 3894 return _lldb.SBDebugger_GetSummaryForType(self, *args)
3895
3896 - def GetFilterForType(self, *args):
3897 """GetFilterForType(SBDebugger self, SBTypeNameSpecifier arg2) -> SBTypeFilter""" 3898 return _lldb.SBDebugger_GetFilterForType(self, *args)
3899
3900 - def GetSyntheticForType(self, *args):
3901 """GetSyntheticForType(SBDebugger self, SBTypeNameSpecifier arg2) -> SBTypeSynthetic""" 3902 return _lldb.SBDebugger_GetSyntheticForType(self, *args)
3903
3904 - def RunCommandInterpreter(self, *args):
3905 """ 3906 RunCommandInterpreter(SBDebugger self, bool auto_handle_events, bool spawn_thread, SBCommandInterpreterRunOptions options, 3907 int & num_errors, bool & quit_requested, bool & stopped_for_crash) 3908 """ 3909 return _lldb.SBDebugger_RunCommandInterpreter(self, *args)
3910
3911 - def RunREPL(self, *args):
3912 """RunREPL(SBDebugger self, lldb::LanguageType language, char const * repl_options) -> SBError""" 3913 return _lldb.SBDebugger_RunREPL(self, *args)
3914
3915 - def __iter__(self):
3916 '''Iterate over all targets in a lldb.SBDebugger object.''' 3917 return lldb_iter(self, 'GetNumTargets', 'GetTargetAtIndex')
3918
3919 - def __len__(self):
3920 '''Return the number of targets in a lldb.SBDebugger object.''' 3921 return self.GetNumTargets()
3922
3923 - def __str__(self):
3924 """__str__(SBDebugger self) -> PyObject *""" 3925 return _lldb.SBDebugger___str__(self)
3926 3927 SBDebugger_swigregister = _lldb.SBDebugger_swigregister 3928 SBDebugger_swigregister(SBDebugger)
3929 3930 -def SBDebugger_Initialize():
3931 """SBDebugger_Initialize()""" 3932 return _lldb.SBDebugger_Initialize()
3933
3934 -def SBDebugger_InitializeWithErrorHandling():
3935 """SBDebugger_InitializeWithErrorHandling() -> SBError""" 3936 return _lldb.SBDebugger_InitializeWithErrorHandling()
3937
3938 -def SBDebugger_Terminate():
3939 """SBDebugger_Terminate()""" 3940 return _lldb.SBDebugger_Terminate()
3941
3942 -def SBDebugger_Create(*args):
3943 """ 3944 Create() -> SBDebugger 3945 Create(bool source_init_files) -> SBDebugger 3946 SBDebugger_Create(bool source_init_files, lldb::LogOutputCallback log_callback) -> SBDebugger 3947 """ 3948 return _lldb.SBDebugger_Create(*args)
3949
3950 -def SBDebugger_Destroy(*args):
3951 """SBDebugger_Destroy(SBDebugger debugger)""" 3952 return _lldb.SBDebugger_Destroy(*args)
3953
3954 -def SBDebugger_MemoryPressureDetected():
3955 """SBDebugger_MemoryPressureDetected()""" 3956 return _lldb.SBDebugger_MemoryPressureDetected()
3957
3958 -def SBDebugger_GetDefaultArchitecture(*args):
3959 """SBDebugger_GetDefaultArchitecture(char * arch_name, size_t arch_name_len) -> bool""" 3960 return _lldb.SBDebugger_GetDefaultArchitecture(*args)
3961
3962 -def SBDebugger_SetDefaultArchitecture(*args):
3963 """SBDebugger_SetDefaultArchitecture(char const * arch_name) -> bool""" 3964 return _lldb.SBDebugger_SetDefaultArchitecture(*args)
3965
3966 -def SBDebugger_GetVersionString():
3967 """SBDebugger_GetVersionString() -> char const *""" 3968 return _lldb.SBDebugger_GetVersionString()
3969
3970 -def SBDebugger_StateAsCString(*args):
3971 """SBDebugger_StateAsCString(lldb::StateType state) -> char const *""" 3972 return _lldb.SBDebugger_StateAsCString(*args)
3973
3974 -def SBDebugger_GetBuildConfiguration():
3975 """SBDebugger_GetBuildConfiguration() -> SBStructuredData""" 3976 return _lldb.SBDebugger_GetBuildConfiguration()
3977
3978 -def SBDebugger_StateIsRunningState(*args):
3979 """SBDebugger_StateIsRunningState(lldb::StateType state) -> bool""" 3980 return _lldb.SBDebugger_StateIsRunningState(*args)
3981
3982 -def SBDebugger_StateIsStoppedState(*args):
3983 """SBDebugger_StateIsStoppedState(lldb::StateType state) -> bool""" 3984 return _lldb.SBDebugger_StateIsStoppedState(*args)
3985
3986 -def SBDebugger_FindDebuggerWithID(*args):
3987 """SBDebugger_FindDebuggerWithID(int id) -> SBDebugger""" 3988 return _lldb.SBDebugger_FindDebuggerWithID(*args)
3989
3990 -def SBDebugger_SetInternalVariable(*args):
3991 """SBDebugger_SetInternalVariable(char const * var_name, char const * value, char const * debugger_instance_name) -> SBError""" 3992 return _lldb.SBDebugger_SetInternalVariable(*args)
3993
3994 -def SBDebugger_GetInternalVariableValue(*args):
3995 """SBDebugger_GetInternalVariableValue(char const * var_name, char const * debugger_instance_name) -> SBStringList""" 3996 return _lldb.SBDebugger_GetInternalVariableValue(*args)
3997
3998 -class SBDeclaration(_object):
3999 """Specifies an association with a line and column for a variable.""" 4000 __swig_setmethods__ = {} 4001 __setattr__ = lambda self, name, value: _swig_setattr(self, SBDeclaration, name, value) 4002 __swig_getmethods__ = {} 4003 __getattr__ = lambda self, name: _swig_getattr(self, SBDeclaration, name) 4004 __repr__ = _swig_repr
4005 - def __init__(self, *args):
4006 """ 4007 __init__(lldb::SBDeclaration self) -> SBDeclaration 4008 __init__(lldb::SBDeclaration self, SBDeclaration rhs) -> SBDeclaration 4009 """ 4010 this = _lldb.new_SBDeclaration(*args) 4011 try: self.this.append(this) 4012 except: self.this = this
4013 __swig_destroy__ = _lldb.delete_SBDeclaration 4014 __del__ = lambda self : None;
4015 - def IsValid(self):
4016 """IsValid(SBDeclaration self) -> bool""" 4017 return _lldb.SBDeclaration_IsValid(self)
4018
4019 - def __nonzero__(self):
4020 return _lldb.SBDeclaration___nonzero__(self)
4021 __bool__ = __nonzero__ 4022 4023
4024 - def GetFileSpec(self):
4025 """GetFileSpec(SBDeclaration self) -> SBFileSpec""" 4026 return _lldb.SBDeclaration_GetFileSpec(self)
4027
4028 - def GetLine(self):
4029 """GetLine(SBDeclaration self) -> uint32_t""" 4030 return _lldb.SBDeclaration_GetLine(self)
4031
4032 - def GetColumn(self):
4033 """GetColumn(SBDeclaration self) -> uint32_t""" 4034 return _lldb.SBDeclaration_GetColumn(self)
4035
4036 - def GetDescription(self, *args):
4037 """GetDescription(SBDeclaration self, SBStream description) -> bool""" 4038 return _lldb.SBDeclaration_GetDescription(self, *args)
4039
4040 - def SetFileSpec(self, *args):
4041 """SetFileSpec(SBDeclaration self, SBFileSpec filespec)""" 4042 return _lldb.SBDeclaration_SetFileSpec(self, *args)
4043
4044 - def SetLine(self, *args):
4045 """SetLine(SBDeclaration self, uint32_t line)""" 4046 return _lldb.SBDeclaration_SetLine(self, *args)
4047
4048 - def SetColumn(self, *args):
4049 """SetColumn(SBDeclaration self, uint32_t column)""" 4050 return _lldb.SBDeclaration_SetColumn(self, *args)
4051
4052 - def __eq__(self, *args):
4053 """__eq__(SBDeclaration self, SBDeclaration rhs) -> bool""" 4054 return _lldb.SBDeclaration___eq__(self, *args)
4055
4056 - def __ne__(self, *args):
4057 """__ne__(SBDeclaration self, SBDeclaration rhs) -> bool""" 4058 return _lldb.SBDeclaration___ne__(self, *args)
4059 4060 __swig_getmethods__["file"] = GetFileSpec 4061 if _newclass: file = property(GetFileSpec, None, doc='''A read only property that returns an lldb object that represents the file (lldb.SBFileSpec) for this line entry.''') 4062 4063 __swig_getmethods__["line"] = GetLine 4064 if _newclass: line = property(GetLine, None, doc='''A read only property that returns the 1 based line number for this line entry, a return value of zero indicates that no line information is available.''') 4065 4066 __swig_getmethods__["column"] = GetColumn 4067 if _newclass: column = property(GetColumn, None, doc='''A read only property that returns the 1 based column number for this line entry, a return value of zero indicates that no column information is available.''') 4068
4069 - def __str__(self):
4070 """__str__(SBDeclaration self) -> PyObject *""" 4071 return _lldb.SBDeclaration___str__(self)
4072
4073 - def __eq__(self, rhs):
4074 if not isinstance(rhs, type(self)): 4075 return False 4076 4077 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
4078
4079 - def __ne__(self, rhs):
4080 if not isinstance(rhs, type(self)): 4081 return True 4082 4083 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
4084 4085 SBDeclaration_swigregister = _lldb.SBDeclaration_swigregister 4086 SBDeclaration_swigregister(SBDeclaration)
4087 4088 -class SBError(_object):
4089 """ 4090 Represents a container for holding any error code. 4091 4092 For example (from test/python_api/hello_world/TestHelloWorld.py), 4093 4094 def hello_world_attach_with_id_api(self): 4095 '''Create target, spawn a process, and attach to it by id.''' 4096 4097 target = self.dbg.CreateTarget(self.exe) 4098 4099 # Spawn a new process and don't display the stdout if not in TraceOn() mode. 4100 import subprocess 4101 popen = subprocess.Popen([self.exe, 'abc', 'xyz'], 4102 stdout = open(os.devnull, 'w') if not self.TraceOn() else None) 4103 4104 listener = lldb.SBListener('my.attach.listener') 4105 error = lldb.SBError() 4106 process = target.AttachToProcessWithID(listener, popen.pid, error) 4107 4108 self.assertTrue(error.Success() and process, PROCESS_IS_VALID) 4109 4110 # Let's check the stack traces of the attached process. 4111 import lldbutil 4112 stacktraces = lldbutil.print_stacktraces(process, string_buffer=True) 4113 self.expect(stacktraces, exe=False, 4114 substrs = ['main.c:%d' % self.line2, 4115 '(int)argc=3']) 4116 4117 listener = lldb.SBListener('my.attach.listener') 4118 error = lldb.SBError() 4119 process = target.AttachToProcessWithID(listener, popen.pid, error) 4120 4121 self.assertTrue(error.Success() and process, PROCESS_IS_VALID) 4122 4123 checks that after the attach, there is no error condition by asserting 4124 that error.Success() is True and we get back a valid process object. 4125 4126 And (from test/python_api/event/TestEvent.py), 4127 4128 # Now launch the process, and do not stop at entry point. 4129 error = lldb.SBError() 4130 process = target.Launch(listener, None, None, None, None, None, None, 0, False, error) 4131 self.assertTrue(error.Success() and process, PROCESS_IS_VALID) 4132 4133 checks that after calling the target.Launch() method there's no error 4134 condition and we get back a void process object. 4135 """ 4136 __swig_setmethods__ = {} 4137 __setattr__ = lambda self, name, value: _swig_setattr(self, SBError, name, value) 4138 __swig_getmethods__ = {} 4139 __getattr__ = lambda self, name: _swig_getattr(self, SBError, name) 4140 __repr__ = _swig_repr
4141 - def __init__(self, *args):
4142 """ 4143 __init__(lldb::SBError self) -> SBError 4144 __init__(lldb::SBError self, SBError rhs) -> SBError 4145 """ 4146 this = _lldb.new_SBError(*args) 4147 try: self.this.append(this) 4148 except: self.this = this
4149 __swig_destroy__ = _lldb.delete_SBError 4150 __del__ = lambda self : None;
4151 - def GetCString(self):
4152 """GetCString(SBError self) -> char const *""" 4153 return _lldb.SBError_GetCString(self)
4154
4155 - def Clear(self):
4156 """Clear(SBError self)""" 4157 return _lldb.SBError_Clear(self)
4158
4159 - def Fail(self):
4160 """Fail(SBError self) -> bool""" 4161 return _lldb.SBError_Fail(self)
4162
4163 - def Success(self):
4164 """Success(SBError self) -> bool""" 4165 return _lldb.SBError_Success(self)
4166
4167 - def GetError(self):
4168 """GetError(SBError self) -> uint32_t""" 4169 return _lldb.SBError_GetError(self)
4170
4171 - def GetType(self):
4172 """GetType(SBError self) -> lldb::ErrorType""" 4173 return _lldb.SBError_GetType(self)
4174
4175 - def SetError(self, *args):
4176 """SetError(SBError self, uint32_t err, lldb::ErrorType type)""" 4177 return _lldb.SBError_SetError(self, *args)
4178
4179 - def SetErrorToErrno(self):
4180 """SetErrorToErrno(SBError self)""" 4181 return _lldb.SBError_SetErrorToErrno(self)
4182
4183 - def SetErrorToGenericError(self):
4184 """SetErrorToGenericError(SBError self)""" 4185 return _lldb.SBError_SetErrorToGenericError(self)
4186
4187 - def SetErrorString(self, *args):
4188 """SetErrorString(SBError self, char const * err_str)""" 4189 return _lldb.SBError_SetErrorString(self, *args)
4190
4191 - def SetErrorStringWithFormat(self, *args):
4192 """ 4193 SetErrorStringWithFormat(SBError self, char const * format, char * str1=None, char * str2=None, char * str3=None) -> int 4194 SetErrorStringWithFormat(SBError self, char const * format, char * str1=None, char * str2=None) -> int 4195 SetErrorStringWithFormat(SBError self, char const * format, char * str1=None) -> int 4196 SetErrorStringWithFormat(SBError self, char const * format) -> int 4197 """ 4198 return _lldb.SBError_SetErrorStringWithFormat(self, *args)
4199
4200 - def IsValid(self):
4201 """IsValid(SBError self) -> bool""" 4202 return _lldb.SBError_IsValid(self)
4203
4204 - def __nonzero__(self):
4205 return _lldb.SBError___nonzero__(self)
4206 __bool__ = __nonzero__ 4207 4208
4209 - def GetDescription(self, *args):
4210 """GetDescription(SBError self, SBStream description) -> bool""" 4211 return _lldb.SBError_GetDescription(self, *args)
4212 4213 __swig_getmethods__["value"] = GetError 4214 if _newclass: value = property(GetError, None, doc='''A read only property that returns the same result as GetError().''') 4215 4216 __swig_getmethods__["fail"] = Fail 4217 if _newclass: fail = property(Fail, None, doc='''A read only property that returns the same result as Fail().''') 4218 4219 __swig_getmethods__["success"] = Success 4220 if _newclass: success = property(Success, None, doc='''A read only property that returns the same result as Success().''') 4221 4222 __swig_getmethods__["description"] = GetCString 4223 if _newclass: description = property(GetCString, None, doc='''A read only property that returns the same result as GetCString().''') 4224 4225 __swig_getmethods__["type"] = GetType 4226 if _newclass: type = property(GetType, None, doc='''A read only property that returns the same result as GetType().''') 4227 4228
4229 - def __str__(self):
4230 """__str__(SBError self) -> PyObject *""" 4231 return _lldb.SBError___str__(self)
4232 4233 SBError_swigregister = _lldb.SBError_swigregister 4234 SBError_swigregister(SBError)
4235 4236 -class SBEvent(_object):
4237 """ 4238 API clients can register to receive events. 4239 4240 For example, check out the following output: 4241 4242 Try wait for event... 4243 Event description: 0x103d0bb70 Event: broadcaster = 0x1009c8410, type = 0x00000001, data = { process = 0x1009c8400 (pid = 21528), state = running} 4244 Event data flavor: Process::ProcessEventData 4245 Process state: running 4246 4247 Try wait for event... 4248 Event description: 0x103a700a0 Event: broadcaster = 0x1009c8410, type = 0x00000001, data = { process = 0x1009c8400 (pid = 21528), state = stopped} 4249 Event data flavor: Process::ProcessEventData 4250 Process state: stopped 4251 4252 Try wait for event... 4253 Event description: 0x103d0d4a0 Event: broadcaster = 0x1009c8410, type = 0x00000001, data = { process = 0x1009c8400 (pid = 21528), state = exited} 4254 Event data flavor: Process::ProcessEventData 4255 Process state: exited 4256 4257 Try wait for event... 4258 timeout occurred waiting for event... 4259 4260 from test/python_api/event/TestEventspy: 4261 4262 def do_listen_for_and_print_event(self): 4263 '''Create a listener and use SBEvent API to print the events received.''' 4264 exe = os.path.join(os.getcwd(), 'a.out') 4265 4266 # Create a target by the debugger. 4267 target = self.dbg.CreateTarget(exe) 4268 self.assertTrue(target, VALID_TARGET) 4269 4270 # Now create a breakpoint on main.c by name 'c'. 4271 breakpoint = target.BreakpointCreateByName('c', 'a.out') 4272 4273 # Now launch the process, and do not stop at the entry point. 4274 process = target.LaunchSimple(None, None, os.getcwd()) 4275 self.assertTrue(process.GetState() == lldb.eStateStopped, 4276 PROCESS_STOPPED) 4277 4278 # Get a handle on the process's broadcaster. 4279 broadcaster = process.GetBroadcaster() 4280 4281 # Create an empty event object. 4282 event = lldb.SBEvent() 4283 4284 # Create a listener object and register with the broadcaster. 4285 listener = lldb.SBListener('my listener') 4286 rc = broadcaster.AddListener(listener, lldb.SBProcess.eBroadcastBitStateChanged) 4287 self.assertTrue(rc, 'AddListener successfully retruns') 4288 4289 traceOn = self.TraceOn() 4290 if traceOn: 4291 lldbutil.print_stacktraces(process) 4292 4293 # Create MyListeningThread class to wait for any kind of event. 4294 import threading 4295 class MyListeningThread(threading.Thread): 4296 def run(self): 4297 count = 0 4298 # Let's only try at most 4 times to retrieve any kind of event. 4299 # After that, the thread exits. 4300 while not count > 3: 4301 if traceOn: 4302 print('Try wait for event...') 4303 if listener.WaitForEventForBroadcasterWithType(5, 4304 broadcaster, 4305 lldb.SBProcess.eBroadcastBitStateChanged, 4306 event): 4307 if traceOn: 4308 desc = lldbutil.get_description(event)) 4309 print('Event description:', desc) 4310 print('Event data flavor:', event.GetDataFlavor()) 4311 print('Process state:', lldbutil.state_type_to_str(process.GetState())) 4312 print() 4313 else: 4314 if traceOn: 4315 print 'timeout occurred waiting for event...' 4316 count = count + 1 4317 return 4318 4319 # Let's start the listening thread to retrieve the events. 4320 my_thread = MyListeningThread() 4321 my_thread.start() 4322 4323 # Use Python API to continue the process. The listening thread should be 4324 # able to receive the state changed events. 4325 process.Continue() 4326 4327 # Use Python API to kill the process. The listening thread should be 4328 # able to receive the state changed event, too. 4329 process.Kill() 4330 4331 # Wait until the 'MyListeningThread' terminates. 4332 my_thread.join() 4333 """ 4334 __swig_setmethods__ = {} 4335 __setattr__ = lambda self, name, value: _swig_setattr(self, SBEvent, name, value) 4336 __swig_getmethods__ = {} 4337 __getattr__ = lambda self, name: _swig_getattr(self, SBEvent, name) 4338 __repr__ = _swig_repr
4339 - def __init__(self, *args):
4340 """ 4341 __init__(lldb::SBEvent self) -> SBEvent 4342 __init__(lldb::SBEvent self, SBEvent rhs) -> SBEvent 4343 __init__(self, int type, str data) -> SBEvent (make an event that contains a C string) 4344 """ 4345 this = _lldb.new_SBEvent(*args) 4346 try: self.this.append(this) 4347 except: self.this = this
4348 __swig_destroy__ = _lldb.delete_SBEvent 4349 __del__ = lambda self : None;
4350 - def IsValid(self):
4351 """IsValid(SBEvent self) -> bool""" 4352 return _lldb.SBEvent_IsValid(self)
4353
4354 - def __nonzero__(self):
4355 return _lldb.SBEvent___nonzero__(self)
4356 __bool__ = __nonzero__ 4357 4358
4359 - def GetDataFlavor(self):
4360 """GetDataFlavor(SBEvent self) -> char const *""" 4361 return _lldb.SBEvent_GetDataFlavor(self)
4362
4363 - def GetType(self):
4364 """GetType(SBEvent self) -> uint32_t""" 4365 return _lldb.SBEvent_GetType(self)
4366
4367 - def GetBroadcaster(self):
4368 """GetBroadcaster(SBEvent self) -> SBBroadcaster""" 4369 return _lldb.SBEvent_GetBroadcaster(self)
4370
4371 - def GetBroadcasterClass(self):
4372 """GetBroadcasterClass(SBEvent self) -> char const *""" 4373 return _lldb.SBEvent_GetBroadcasterClass(self)
4374
4375 - def BroadcasterMatchesRef(self, *args):
4376 """BroadcasterMatchesRef(SBEvent self, SBBroadcaster broadcaster) -> bool""" 4377 return _lldb.SBEvent_BroadcasterMatchesRef(self, *args)
4378
4379 - def Clear(self):
4380 """Clear(SBEvent self)""" 4381 return _lldb.SBEvent_Clear(self)
4382
4383 - def GetCStringFromEvent(*args):
4384 """GetCStringFromEvent(SBEvent event) -> char const *""" 4385 return _lldb.SBEvent_GetCStringFromEvent(*args)
4386 4387 if _newclass:GetCStringFromEvent = staticmethod(GetCStringFromEvent) 4388 __swig_getmethods__["GetCStringFromEvent"] = lambda x: GetCStringFromEvent
4389 - def GetDescription(self, *args):
4390 """GetDescription(SBEvent self, SBStream description) -> bool""" 4391 return _lldb.SBEvent_GetDescription(self, *args)
4392 4393 SBEvent_swigregister = _lldb.SBEvent_swigregister 4394 SBEvent_swigregister(SBEvent)
4395 4396 -def SBEvent_GetCStringFromEvent(*args):
4397 """SBEvent_GetCStringFromEvent(SBEvent event) -> char const *""" 4398 return _lldb.SBEvent_GetCStringFromEvent(*args)
4399
4400 -class SBExecutionContext(_object):
4401 """Proxy of C++ lldb::SBExecutionContext class""" 4402 __swig_setmethods__ = {} 4403 __setattr__ = lambda self, name, value: _swig_setattr(self, SBExecutionContext, name, value) 4404 __swig_getmethods__ = {} 4405 __getattr__ = lambda self, name: _swig_getattr(self, SBExecutionContext, name) 4406 __repr__ = _swig_repr
4407 - def __init__(self, *args):
4408 """ 4409 __init__(lldb::SBExecutionContext self) -> SBExecutionContext 4410 __init__(lldb::SBExecutionContext self, SBExecutionContext rhs) -> SBExecutionContext 4411 __init__(lldb::SBExecutionContext self, SBTarget target) -> SBExecutionContext 4412 __init__(lldb::SBExecutionContext self, SBProcess process) -> SBExecutionContext 4413 __init__(lldb::SBExecutionContext self, SBThread thread) -> SBExecutionContext 4414 __init__(lldb::SBExecutionContext self, SBFrame frame) -> SBExecutionContext 4415 """ 4416 this = _lldb.new_SBExecutionContext(*args) 4417 try: self.this.append(this) 4418 except: self.this = this
4419 __swig_destroy__ = _lldb.delete_SBExecutionContext 4420 __del__ = lambda self : None;
4421 - def GetTarget(self):
4422 """GetTarget(SBExecutionContext self) -> SBTarget""" 4423 return _lldb.SBExecutionContext_GetTarget(self)
4424
4425 - def GetProcess(self):
4426 """GetProcess(SBExecutionContext self) -> SBProcess""" 4427 return _lldb.SBExecutionContext_GetProcess(self)
4428
4429 - def GetThread(self):
4430 """GetThread(SBExecutionContext self) -> SBThread""" 4431 return _lldb.SBExecutionContext_GetThread(self)
4432
4433 - def GetFrame(self):
4434 """GetFrame(SBExecutionContext self) -> SBFrame""" 4435 return _lldb.SBExecutionContext_GetFrame(self)
4436 4437 __swig_getmethods__["target"] = GetTarget 4438 if _newclass: target = property(GetTarget, None, doc='''A read only property that returns the same result as GetTarget().''') 4439 4440 __swig_getmethods__["process"] = GetProcess 4441 if _newclass: process = property(GetProcess, None, doc='''A read only property that returns the same result as GetProcess().''') 4442 4443 __swig_getmethods__["thread"] = GetThread 4444 if _newclass: thread = property(GetThread, None, doc='''A read only property that returns the same result as GetThread().''') 4445 4446 __swig_getmethods__["frame"] = GetFrame 4447 if _newclass: frame = property(GetFrame, None, doc='''A read only property that returns the same result as GetFrame().''') 4448 4449 SBExecutionContext_swigregister = _lldb.SBExecutionContext_swigregister 4450 SBExecutionContext_swigregister(SBExecutionContext)
4451 4452 -class SBExpressionOptions(_object):
4453 """A container for options to use when evaluating expressions.""" 4454 __swig_setmethods__ = {} 4455 __setattr__ = lambda self, name, value: _swig_setattr(self, SBExpressionOptions, name, value) 4456 __swig_getmethods__ = {} 4457 __getattr__ = lambda self, name: _swig_getattr(self, SBExpressionOptions, name) 4458 __repr__ = _swig_repr
4459 - def __init__(self, *args):
4460 """ 4461 __init__(lldb::SBExpressionOptions self) -> SBExpressionOptions 4462 __init__(lldb::SBExpressionOptions self, SBExpressionOptions rhs) -> SBExpressionOptions 4463 """ 4464 this = _lldb.new_SBExpressionOptions(*args) 4465 try: self.this.append(this) 4466 except: self.this = this
4467 __swig_destroy__ = _lldb.delete_SBExpressionOptions 4468 __del__ = lambda self : None;
4469 - def GetCoerceResultToId(self):
4470 """GetCoerceResultToId(SBExpressionOptions self) -> bool""" 4471 return _lldb.SBExpressionOptions_GetCoerceResultToId(self)
4472
4473 - def SetCoerceResultToId(self, coerce=True):
4474 """ 4475 SetCoerceResultToId(SBExpressionOptions self, bool coerce=True) 4476 SetCoerceResultToId(SBExpressionOptions self) 4477 4478 Sets whether to coerce the expression result to ObjC id type after evaluation. 4479 """ 4480 return _lldb.SBExpressionOptions_SetCoerceResultToId(self, coerce)
4481
4482 - def GetUnwindOnError(self):
4483 """GetUnwindOnError(SBExpressionOptions self) -> bool""" 4484 return _lldb.SBExpressionOptions_GetUnwindOnError(self)
4485
4486 - def SetUnwindOnError(self, unwind=True):
4487 """ 4488 SetUnwindOnError(SBExpressionOptions self, bool unwind=True) 4489 SetUnwindOnError(SBExpressionOptions self) 4490 4491 Sets whether to unwind the expression stack on error. 4492 """ 4493 return _lldb.SBExpressionOptions_SetUnwindOnError(self, unwind)
4494
4495 - def GetIgnoreBreakpoints(self):
4496 """GetIgnoreBreakpoints(SBExpressionOptions self) -> bool""" 4497 return _lldb.SBExpressionOptions_GetIgnoreBreakpoints(self)
4498
4499 - def SetIgnoreBreakpoints(self, ignore=True):
4500 """ 4501 SetIgnoreBreakpoints(SBExpressionOptions self, bool ignore=True) 4502 SetIgnoreBreakpoints(SBExpressionOptions self) 4503 """ 4504 return _lldb.SBExpressionOptions_SetIgnoreBreakpoints(self, ignore)
4505
4506 - def GetFetchDynamicValue(self):
4507 """GetFetchDynamicValue(SBExpressionOptions self) -> lldb::DynamicValueType""" 4508 return _lldb.SBExpressionOptions_GetFetchDynamicValue(self)
4509
4510 - def SetFetchDynamicValue(self, *args):
4511 """ 4512 SetFetchDynamicValue(SBExpressionOptions self, lldb::DynamicValueType dynamic=eDynamicCanRunTarget) 4513 SetFetchDynamicValue(SBExpressionOptions self) 4514 4515 Sets whether to cast the expression result to its dynamic type. 4516 """ 4517 return _lldb.SBExpressionOptions_SetFetchDynamicValue(self, *args)
4518
4519 - def GetTimeoutInMicroSeconds(self):
4520 """GetTimeoutInMicroSeconds(SBExpressionOptions self) -> uint32_t""" 4521 return _lldb.SBExpressionOptions_GetTimeoutInMicroSeconds(self)
4522
4523 - def SetTimeoutInMicroSeconds(self, timeout=0):
4524 """ 4525 SetTimeoutInMicroSeconds(SBExpressionOptions self, uint32_t timeout=0) 4526 SetTimeoutInMicroSeconds(SBExpressionOptions self) 4527 4528 Sets the timeout in microseconds to run the expression for. If try all threads is set to true and the expression doesn't complete within the specified timeout, all threads will be resumed for the same timeout to see if the expresson will finish. 4529 """ 4530 return _lldb.SBExpressionOptions_SetTimeoutInMicroSeconds(self, timeout)
4531
4532 - def GetOneThreadTimeoutInMicroSeconds(self):
4533 """GetOneThreadTimeoutInMicroSeconds(SBExpressionOptions self) -> uint32_t""" 4534 return _lldb.SBExpressionOptions_GetOneThreadTimeoutInMicroSeconds(self)
4535
4536 - def SetOneThreadTimeoutInMicroSeconds(self, timeout=0):
4537 """ 4538 SetOneThreadTimeoutInMicroSeconds(SBExpressionOptions self, uint32_t timeout=0) 4539 SetOneThreadTimeoutInMicroSeconds(SBExpressionOptions self) 4540 """ 4541 return _lldb.SBExpressionOptions_SetOneThreadTimeoutInMicroSeconds(self, timeout)
4542
4543 - def GetTryAllThreads(self):
4544 """GetTryAllThreads(SBExpressionOptions self) -> bool""" 4545 return _lldb.SBExpressionOptions_GetTryAllThreads(self)
4546
4547 - def SetTryAllThreads(self, run_others=True):
4548 """ 4549 SetTryAllThreads(SBExpressionOptions self, bool run_others=True) 4550 SetTryAllThreads(SBExpressionOptions self) 4551 4552 Sets whether to run all threads if the expression does not complete on one thread. 4553 """ 4554 return _lldb.SBExpressionOptions_SetTryAllThreads(self, run_others)
4555
4556 - def GetStopOthers(self):
4557 """GetStopOthers(SBExpressionOptions self) -> bool""" 4558 return _lldb.SBExpressionOptions_GetStopOthers(self)
4559
4560 - def SetStopOthers(self, stop_others=True):
4561 """ 4562 SetStopOthers(SBExpressionOptions self, bool stop_others=True) 4563 SetStopOthers(SBExpressionOptions self) 4564 """ 4565 return _lldb.SBExpressionOptions_SetStopOthers(self, stop_others)
4566
4567 - def GetTrapExceptions(self):
4568 """GetTrapExceptions(SBExpressionOptions self) -> bool""" 4569 return _lldb.SBExpressionOptions_GetTrapExceptions(self)
4570
4571 - def SetTrapExceptions(self, trap_exceptions=True):
4572 """ 4573 SetTrapExceptions(SBExpressionOptions self, bool trap_exceptions=True) 4574 SetTrapExceptions(SBExpressionOptions self) 4575 """ 4576 return _lldb.SBExpressionOptions_SetTrapExceptions(self, trap_exceptions)
4577
4578 - def SetLanguage(self, *args):
4579 """ 4580 SetLanguage(SBExpressionOptions self, lldb::LanguageType language) 4581 4582 Sets the language that LLDB should assume the expression is written in 4583 """ 4584 return _lldb.SBExpressionOptions_SetLanguage(self, *args)
4585
4586 - def GetGenerateDebugInfo(self):
4587 """GetGenerateDebugInfo(SBExpressionOptions self) -> bool""" 4588 return _lldb.SBExpressionOptions_GetGenerateDebugInfo(self)
4589
4590 - def SetGenerateDebugInfo(self, b=True):
4591 """ 4592 SetGenerateDebugInfo(SBExpressionOptions self, bool b=True) 4593 SetGenerateDebugInfo(SBExpressionOptions self) 4594 4595 Sets whether to generate debug information for the expression and also controls if a SBModule is generated. 4596 """ 4597 return _lldb.SBExpressionOptions_SetGenerateDebugInfo(self, b)
4598
4599 - def GetSuppressPersistentResult(self):
4600 """GetSuppressPersistentResult(SBExpressionOptions self) -> bool""" 4601 return _lldb.SBExpressionOptions_GetSuppressPersistentResult(self)
4602
4603 - def SetSuppressPersistentResult(self, b=False):
4604 """ 4605 SetSuppressPersistentResult(SBExpressionOptions self, bool b=False) 4606 SetSuppressPersistentResult(SBExpressionOptions self) 4607 4608 Sets whether to produce a persistent result that can be used in future expressions. 4609 """ 4610 return _lldb.SBExpressionOptions_SetSuppressPersistentResult(self, b)
4611
4612 - def GetPrefix(self):
4613 """ 4614 GetPrefix(SBExpressionOptions self) -> char const * 4615 4616 Gets the prefix to use for this expression. 4617 """ 4618 return _lldb.SBExpressionOptions_GetPrefix(self)
4619
4620 - def SetPrefix(self, *args):
4621 """ 4622 SetPrefix(SBExpressionOptions self, char const * prefix) 4623 4624 Sets the prefix to use for this expression. This prefix gets inserted after the 'target.expr-prefix' prefix contents, but before the wrapped expression function body. 4625 """ 4626 return _lldb.SBExpressionOptions_SetPrefix(self, *args)
4627
4628 - def SetAutoApplyFixIts(self, b=True):
4629 """ 4630 SetAutoApplyFixIts(SBExpressionOptions self, bool b=True) 4631 SetAutoApplyFixIts(SBExpressionOptions self) 4632 4633 Sets whether to auto-apply fix-it hints to the expression being evaluated. 4634 """ 4635 return _lldb.SBExpressionOptions_SetAutoApplyFixIts(self, b)
4636
4637 - def GetAutoApplyFixIts(self):
4638 """ 4639 GetAutoApplyFixIts(SBExpressionOptions self) -> bool 4640 4641 Gets whether to auto-apply fix-it hints to an expression. 4642 """ 4643 return _lldb.SBExpressionOptions_GetAutoApplyFixIts(self)
4644
4645 - def GetTopLevel(self):
4646 """GetTopLevel(SBExpressionOptions self) -> bool""" 4647 return _lldb.SBExpressionOptions_GetTopLevel(self)
4648
4649 - def SetTopLevel(self, b=True):
4650 """ 4651 SetTopLevel(SBExpressionOptions self, bool b=True) 4652 SetTopLevel(SBExpressionOptions self) 4653 """ 4654 return _lldb.SBExpressionOptions_SetTopLevel(self, b)
4655
4656 - def GetAllowJIT(self):
4657 """ 4658 GetAllowJIT(SBExpressionOptions self) -> bool 4659 4660 Gets whether to JIT an expression if it cannot be interpreted. 4661 """ 4662 return _lldb.SBExpressionOptions_GetAllowJIT(self)
4663
4664 - def SetAllowJIT(self, *args):
4665 """ 4666 SetAllowJIT(SBExpressionOptions self, bool allow) 4667 4668 Sets whether to JIT an expression if it cannot be interpreted. 4669 """ 4670 return _lldb.SBExpressionOptions_SetAllowJIT(self, *args)
4671 4672 SBExpressionOptions_swigregister = _lldb.SBExpressionOptions_swigregister 4673 SBExpressionOptions_swigregister(SBExpressionOptions)
4674 4675 -class SBFileSpec(_object):
4676 """ 4677 Represents a file specification that divides the path into a directory and 4678 basename. The string values of the paths are put into uniqued string pools 4679 for fast comparisons and efficient memory usage. 4680 4681 For example, the following code 4682 4683 lineEntry = context.GetLineEntry() 4684 self.expect(lineEntry.GetFileSpec().GetDirectory(), 'The line entry should have the correct directory', 4685 exe=False, 4686 substrs = [self.mydir]) 4687 self.expect(lineEntry.GetFileSpec().GetFilename(), 'The line entry should have the correct filename', 4688 exe=False, 4689 substrs = ['main.c']) 4690 self.assertTrue(lineEntry.GetLine() == self.line, 4691 'The line entry's line number should match ') 4692 4693 gets the line entry from the symbol context when a thread is stopped. 4694 It gets the file spec corresponding to the line entry and checks that 4695 the filename and the directory matches what we expect. 4696 """ 4697 __swig_setmethods__ = {} 4698 __setattr__ = lambda self, name, value: _swig_setattr(self, SBFileSpec, name, value) 4699 __swig_getmethods__ = {} 4700 __getattr__ = lambda self, name: _swig_getattr(self, SBFileSpec, name) 4701 __repr__ = _swig_repr
4702 - def __init__(self, *args):
4703 """ 4704 __init__(lldb::SBFileSpec self) -> SBFileSpec 4705 __init__(lldb::SBFileSpec self, SBFileSpec rhs) -> SBFileSpec 4706 __init__(lldb::SBFileSpec self, char const * path) -> SBFileSpec 4707 __init__(lldb::SBFileSpec self, char const * path, bool resolve) -> SBFileSpec 4708 """ 4709 this = _lldb.new_SBFileSpec(*args) 4710 try: self.this.append(this) 4711 except: self.this = this
4712 __swig_destroy__ = _lldb.delete_SBFileSpec 4713 __del__ = lambda self : None;
4714 - def __eq__(self, *args):
4715 """__eq__(SBFileSpec self, SBFileSpec rhs) -> bool""" 4716 return _lldb.SBFileSpec___eq__(self, *args)
4717
4718 - def __ne__(self, *args):
4719 """__ne__(SBFileSpec self, SBFileSpec rhs) -> bool""" 4720 return _lldb.SBFileSpec___ne__(self, *args)
4721
4722 - def IsValid(self):
4723 """IsValid(SBFileSpec self) -> bool""" 4724 return _lldb.SBFileSpec_IsValid(self)
4725
4726 - def __nonzero__(self):
4727 return _lldb.SBFileSpec___nonzero__(self)
4728 __bool__ = __nonzero__ 4729 4730
4731 - def Exists(self):
4732 """Exists(SBFileSpec self) -> bool""" 4733 return _lldb.SBFileSpec_Exists(self)
4734
4735 - def ResolveExecutableLocation(self):
4736 """ResolveExecutableLocation(SBFileSpec self) -> bool""" 4737 return _lldb.SBFileSpec_ResolveExecutableLocation(self)
4738
4739 - def GetFilename(self):
4740 """GetFilename(SBFileSpec self) -> char const *""" 4741 return _lldb.SBFileSpec_GetFilename(self)
4742
4743 - def GetDirectory(self):
4744 """GetDirectory(SBFileSpec self) -> char const *""" 4745 return _lldb.SBFileSpec_GetDirectory(self)
4746
4747 - def SetFilename(self, *args):
4748 """SetFilename(SBFileSpec self, char const * filename)""" 4749 return _lldb.SBFileSpec_SetFilename(self, *args)
4750
4751 - def SetDirectory(self, *args):
4752 """SetDirectory(SBFileSpec self, char const * directory)""" 4753 return _lldb.SBFileSpec_SetDirectory(self, *args)
4754
4755 - def GetPath(self, *args):
4756 """GetPath(SBFileSpec self, char * dst_path, size_t dst_len) -> uint32_t""" 4757 return _lldb.SBFileSpec_GetPath(self, *args)
4758
4759 - def ResolvePath(*args):
4760 """ResolvePath(char const * src_path, char * dst_path, size_t dst_len) -> int""" 4761 return _lldb.SBFileSpec_ResolvePath(*args)
4762 4763 if _newclass:ResolvePath = staticmethod(ResolvePath) 4764 __swig_getmethods__["ResolvePath"] = lambda x: ResolvePath
4765 - def GetDescription(self, *args):
4766 """GetDescription(SBFileSpec self, SBStream description) -> bool""" 4767 return _lldb.SBFileSpec_GetDescription(self, *args)
4768
4769 - def AppendPathComponent(self, *args):
4770 """AppendPathComponent(SBFileSpec self, char const * file_or_directory)""" 4771 return _lldb.SBFileSpec_AppendPathComponent(self, *args)
4772
4773 - def __get_fullpath__(self):
4774 spec_dir = self.GetDirectory() 4775 spec_file = self.GetFilename() 4776 if spec_dir and spec_file: 4777 return '%s/%s' % (spec_dir, spec_file) 4778 elif spec_dir: 4779 return spec_dir 4780 elif spec_file: 4781 return spec_file 4782 return None
4783 4784 __swig_getmethods__["fullpath"] = __get_fullpath__ 4785 if _newclass: fullpath = property(__get_fullpath__, None, doc='''A read only property that returns the fullpath as a python string.''') 4786 4787 __swig_getmethods__["basename"] = GetFilename 4788 if _newclass: basename = property(GetFilename, None, doc='''A read only property that returns the path basename as a python string.''') 4789 4790 __swig_getmethods__["dirname"] = GetDirectory 4791 if _newclass: dirname = property(GetDirectory, None, doc='''A read only property that returns the path directory name as a python string.''') 4792 4793 __swig_getmethods__["exists"] = Exists 4794 if _newclass: exists = property(Exists, None, doc='''A read only property that returns a boolean value that indicates if the file exists.''') 4795
4796 - def __str__(self):
4797 """__str__(SBFileSpec self) -> PyObject *""" 4798 return _lldb.SBFileSpec___str__(self)
4799 4800 SBFileSpec_swigregister = _lldb.SBFileSpec_swigregister 4801 SBFileSpec_swigregister(SBFileSpec)
4802 4803 -def SBFileSpec_ResolvePath(*args):
4804 """SBFileSpec_ResolvePath(char const * src_path, char * dst_path, size_t dst_len) -> int""" 4805 return _lldb.SBFileSpec_ResolvePath(*args)
4806
4807 -class SBFileSpecList(_object):
4808 """Proxy of C++ lldb::SBFileSpecList class""" 4809 __swig_setmethods__ = {} 4810 __setattr__ = lambda self, name, value: _swig_setattr(self, SBFileSpecList, name, value) 4811 __swig_getmethods__ = {} 4812 __getattr__ = lambda self, name: _swig_getattr(self, SBFileSpecList, name) 4813 __repr__ = _swig_repr
4814 - def __init__(self, *args):
4815 """ 4816 __init__(lldb::SBFileSpecList self) -> SBFileSpecList 4817 __init__(lldb::SBFileSpecList self, SBFileSpecList rhs) -> SBFileSpecList 4818 """ 4819 this = _lldb.new_SBFileSpecList(*args) 4820 try: self.this.append(this) 4821 except: self.this = this
4822 __swig_destroy__ = _lldb.delete_SBFileSpecList 4823 __del__ = lambda self : None;
4824 - def GetSize(self):
4825 """GetSize(SBFileSpecList self) -> uint32_t""" 4826 return _lldb.SBFileSpecList_GetSize(self)
4827
4828 - def GetDescription(self, *args):
4829 """GetDescription(SBFileSpecList self, SBStream description) -> bool""" 4830 return _lldb.SBFileSpecList_GetDescription(self, *args)
4831
4832 - def Append(self, *args):
4833 """Append(SBFileSpecList self, SBFileSpec sb_file)""" 4834 return _lldb.SBFileSpecList_Append(self, *args)
4835
4836 - def AppendIfUnique(self, *args):
4837 """AppendIfUnique(SBFileSpecList self, SBFileSpec sb_file) -> bool""" 4838 return _lldb.SBFileSpecList_AppendIfUnique(self, *args)
4839
4840 - def Clear(self):
4841 """Clear(SBFileSpecList self)""" 4842 return _lldb.SBFileSpecList_Clear(self)
4843
4844 - def FindFileIndex(self, *args):
4845 """FindFileIndex(SBFileSpecList self, uint32_t idx, SBFileSpec sb_file, bool full) -> uint32_t""" 4846 return _lldb.SBFileSpecList_FindFileIndex(self, *args)
4847
4848 - def GetFileSpecAtIndex(self, *args):
4849 """GetFileSpecAtIndex(SBFileSpecList self, uint32_t idx) -> SBFileSpec""" 4850 return _lldb.SBFileSpecList_GetFileSpecAtIndex(self, *args)
4851 4852 SBFileSpecList_swigregister = _lldb.SBFileSpecList_swigregister 4853 SBFileSpecList_swigregister(SBFileSpecList)
4854 4855 -class SBFrame(_object):
4856 """ 4857 Represents one of the stack frames associated with a thread. 4858 SBThread contains SBFrame(s). For example (from test/lldbutil.py), 4859 4860 def print_stacktrace(thread, string_buffer = False): 4861 '''Prints a simple stack trace of this thread.''' 4862 4863 ... 4864 4865 for i in range(depth): 4866 frame = thread.GetFrameAtIndex(i) 4867 function = frame.GetFunction() 4868 4869 load_addr = addrs[i].GetLoadAddress(target) 4870 if not function: 4871 file_addr = addrs[i].GetFileAddress() 4872 start_addr = frame.GetSymbol().GetStartAddress().GetFileAddress() 4873 symbol_offset = file_addr - start_addr 4874 print >> output, ' frame #{num}: {addr:#016x} {mod}`{symbol} + {offset}'.format( 4875 num=i, addr=load_addr, mod=mods[i], symbol=symbols[i], offset=symbol_offset) 4876 else: 4877 print >> output, ' frame #{num}: {addr:#016x} {mod}`{func} at {file}:{line} {args}'.format( 4878 num=i, addr=load_addr, mod=mods[i], 4879 func='%s [inlined]' % funcs[i] if frame.IsInlined() else funcs[i], 4880 file=files[i], line=lines[i], 4881 args=get_args_as_string(frame, showFuncName=False) if not frame.IsInlined() else '()') 4882 4883 ... 4884 4885 And, 4886 4887 for frame in thread: 4888 print frame 4889 4890 See also SBThread. 4891 """ 4892 __swig_setmethods__ = {} 4893 __setattr__ = lambda self, name, value: _swig_setattr(self, SBFrame, name, value) 4894 __swig_getmethods__ = {} 4895 __getattr__ = lambda self, name: _swig_getattr(self, SBFrame, name) 4896 __repr__ = _swig_repr
4897 - def __init__(self, *args):
4898 """ 4899 __init__(lldb::SBFrame self) -> SBFrame 4900 __init__(lldb::SBFrame self, SBFrame rhs) -> SBFrame 4901 """ 4902 this = _lldb.new_SBFrame(*args) 4903 try: self.this.append(this) 4904 except: self.this = this
4905 __swig_destroy__ = _lldb.delete_SBFrame 4906 __del__ = lambda self : None;
4907 - def IsEqual(self, *args):
4908 """IsEqual(SBFrame self, SBFrame rhs) -> bool""" 4909 return _lldb.SBFrame_IsEqual(self, *args)
4910
4911 - def IsValid(self):
4912 """IsValid(SBFrame self) -> bool""" 4913 return _lldb.SBFrame_IsValid(self)
4914
4915 - def __nonzero__(self):
4916 return _lldb.SBFrame___nonzero__(self)
4917 __bool__ = __nonzero__ 4918 4919
4920 - def GetFrameID(self):
4921 """GetFrameID(SBFrame self) -> uint32_t""" 4922 return _lldb.SBFrame_GetFrameID(self)
4923
4924 - def GetCFA(self):
4925 """ 4926 GetCFA(SBFrame self) -> lldb::addr_t 4927 4928 Get the Canonical Frame Address for this stack frame. 4929 This is the DWARF standard's definition of a CFA, a stack address 4930 that remains constant throughout the lifetime of the function. 4931 Returns an lldb::addr_t stack address, or LLDB_INVALID_ADDRESS if 4932 the CFA cannot be determined. 4933 """ 4934 return _lldb.SBFrame_GetCFA(self)
4935
4936 - def GetPC(self):
4937 """GetPC(SBFrame self) -> lldb::addr_t""" 4938 return _lldb.SBFrame_GetPC(self)
4939
4940 - def SetPC(self, *args):
4941 """SetPC(SBFrame self, lldb::addr_t new_pc) -> bool""" 4942 return _lldb.SBFrame_SetPC(self, *args)
4943
4944 - def GetSP(self):
4945 """GetSP(SBFrame self) -> lldb::addr_t""" 4946 return _lldb.SBFrame_GetSP(self)
4947
4948 - def GetFP(self):
4949 """GetFP(SBFrame self) -> lldb::addr_t""" 4950 return _lldb.SBFrame_GetFP(self)
4951
4952 - def GetPCAddress(self):
4953 """GetPCAddress(SBFrame self) -> SBAddress""" 4954 return _lldb.SBFrame_GetPCAddress(self)
4955
4956 - def GetSymbolContext(self, *args):
4957 """GetSymbolContext(SBFrame self, uint32_t resolve_scope) -> SBSymbolContext""" 4958 return _lldb.SBFrame_GetSymbolContext(self, *args)
4959
4960 - def GetModule(self):
4961 """GetModule(SBFrame self) -> SBModule""" 4962 return _lldb.SBFrame_GetModule(self)
4963
4964 - def GetCompileUnit(self):
4965 """GetCompileUnit(SBFrame self) -> SBCompileUnit""" 4966 return _lldb.SBFrame_GetCompileUnit(self)
4967
4968 - def GetFunction(self):
4969 """GetFunction(SBFrame self) -> SBFunction""" 4970 return _lldb.SBFrame_GetFunction(self)
4971
4972 - def GetSymbol(self):
4973 """GetSymbol(SBFrame self) -> SBSymbol""" 4974 return _lldb.SBFrame_GetSymbol(self)
4975
4976 - def GetBlock(self):
4977 """ 4978 GetBlock(SBFrame self) -> SBBlock 4979 4980 Gets the deepest block that contains the frame PC. 4981 4982 See also GetFrameBlock(). 4983 """ 4984 return _lldb.SBFrame_GetBlock(self)
4985
4986 - def GetDisplayFunctionName(self):
4987 """GetDisplayFunctionName(SBFrame self) -> char const *""" 4988 return _lldb.SBFrame_GetDisplayFunctionName(self)
4989
4990 - def GetFunctionName(self, *args):
4991 """ 4992 GetFunctionName(SBFrame self) -> char const 4993 GetFunctionName(SBFrame self) -> char const * 4994 4995 Get the appropriate function name for this frame. Inlined functions in 4996 LLDB are represented by Blocks that have inlined function information, so 4997 just looking at the SBFunction or SBSymbol for a frame isn't enough. 4998 This function will return the appropriate function, symbol or inlined 4999 function name for the frame. 5000 5001 This function returns: 5002 - the name of the inlined function (if there is one) 5003 - the name of the concrete function (if there is one) 5004 - the name of the symbol (if there is one) 5005 - NULL 5006 5007 See also IsInlined(). 5008 """ 5009 return _lldb.SBFrame_GetFunctionName(self, *args)
5010
5011 - def GuessLanguage(self):
5012 """ 5013 GuessLanguage(SBFrame self) -> lldb::LanguageType 5014 5015 Returns the language of the frame's SBFunction, or if there. 5016 is no SBFunction, guess the language from the mangled name. 5017 . 5018 """ 5019 return _lldb.SBFrame_GuessLanguage(self)
5020
5021 - def IsInlined(self, *args):
5022 """ 5023 IsInlined(SBFrame self) -> bool 5024 IsInlined(SBFrame self) -> bool 5025 5026 Return true if this frame represents an inlined function. 5027 5028 See also GetFunctionName(). 5029 """ 5030 return _lldb.SBFrame_IsInlined(self, *args)
5031
5032 - def IsArtificial(self, *args):
5033 """ 5034 IsArtificial(SBFrame self) -> bool 5035 IsArtificial(SBFrame self) -> bool 5036 5037 Return true if this frame is artificial (e.g a frame synthesized to 5038 capture a tail call). Local variables may not be available in an artificial 5039 frame. 5040 """ 5041 return _lldb.SBFrame_IsArtificial(self, *args)
5042
5043 - def EvaluateExpression(self, *args):
5044 """ 5045 EvaluateExpression(SBFrame self, char const * expr) -> SBValue 5046 EvaluateExpression(SBFrame self, char const * expr, lldb::DynamicValueType use_dynamic) -> SBValue 5047 EvaluateExpression(SBFrame self, char const * expr, lldb::DynamicValueType use_dynamic, bool unwind_on_error) -> SBValue 5048 EvaluateExpression(SBFrame self, char const * expr, SBExpressionOptions options) -> SBValue 5049 5050 The version that doesn't supply a 'use_dynamic' value will use the 5051 target's default. 5052 """ 5053 return _lldb.SBFrame_EvaluateExpression(self, *args)
5054
5055 - def GetFrameBlock(self):
5056 """ 5057 GetFrameBlock(SBFrame self) -> SBBlock 5058 5059 Gets the lexical block that defines the stack frame. Another way to think 5060 of this is it will return the block that contains all of the variables 5061 for a stack frame. Inlined functions are represented as SBBlock objects 5062 that have inlined function information: the name of the inlined function, 5063 where it was called from. The block that is returned will be the first 5064 block at or above the block for the PC (SBFrame::GetBlock()) that defines 5065 the scope of the frame. When a function contains no inlined functions, 5066 this will be the top most lexical block that defines the function. 5067 When a function has inlined functions and the PC is currently 5068 in one of those inlined functions, this method will return the inlined 5069 block that defines this frame. If the PC isn't currently in an inlined 5070 function, the lexical block that defines the function is returned. 5071 """ 5072 return _lldb.SBFrame_GetFrameBlock(self)
5073
5074 - def GetLineEntry(self):
5075 """GetLineEntry(SBFrame self) -> SBLineEntry""" 5076 return _lldb.SBFrame_GetLineEntry(self)
5077
5078 - def GetThread(self):
5079 """GetThread(SBFrame self) -> SBThread""" 5080 return _lldb.SBFrame_GetThread(self)
5081
5082 - def Disassemble(self):
5083 """Disassemble(SBFrame self) -> char const *""" 5084 return _lldb.SBFrame_Disassemble(self)
5085
5086 - def Clear(self):
5087 """Clear(SBFrame self)""" 5088 return _lldb.SBFrame_Clear(self)
5089
5090 - def __eq__(self, *args):
5091 """__eq__(SBFrame self, SBFrame rhs) -> bool""" 5092 return _lldb.SBFrame___eq__(self, *args)
5093
5094 - def __ne__(self, *args):
5095 """__ne__(SBFrame self, SBFrame rhs) -> bool""" 5096 return _lldb.SBFrame___ne__(self, *args)
5097
5098 - def GetVariables(self, *args):
5099 """ 5100 GetVariables(SBFrame self, bool arguments, bool locals, bool statics, bool in_scope_only) -> SBValueList 5101 GetVariables(SBFrame self, bool arguments, bool locals, bool statics, bool in_scope_only, lldb::DynamicValueType use_dynamic) -> SBValueList 5102 GetVariables(SBFrame self, SBVariablesOptions options) -> SBValueList 5103 5104 The version that doesn't supply a 'use_dynamic' value will use the 5105 target's default. 5106 """ 5107 return _lldb.SBFrame_GetVariables(self, *args)
5108
5109 - def GetRegisters(self):
5110 """GetRegisters(SBFrame self) -> SBValueList""" 5111 return _lldb.SBFrame_GetRegisters(self)
5112
5113 - def FindVariable(self, *args):
5114 """ 5115 FindVariable(SBFrame self, char const * var_name) -> SBValue 5116 FindVariable(SBFrame self, char const * var_name, lldb::DynamicValueType use_dynamic) -> SBValue 5117 5118 The version that doesn't supply a 'use_dynamic' value will use the 5119 target's default. 5120 """ 5121 return _lldb.SBFrame_FindVariable(self, *args)
5122
5123 - def FindRegister(self, *args):
5124 """FindRegister(SBFrame self, char const * name) -> SBValue""" 5125 return _lldb.SBFrame_FindRegister(self, *args)
5126
5127 - def GetValueForVariablePath(self, *args):
5128 """ 5129 GetValueForVariablePath(SBFrame self, char const * var_path) -> SBValue 5130 GetValueForVariablePath(SBFrame self, char const * var_path, lldb::DynamicValueType use_dynamic) -> SBValue 5131 5132 Get a lldb.SBValue for a variable path. 5133 5134 Variable paths can include access to pointer or instance members: 5135 rect_ptr->origin.y 5136 pt.x 5137 Pointer dereferences: 5138 *this->foo_ptr 5139 **argv 5140 Address of: 5141 &pt 5142 &my_array[3].x 5143 Array accesses and treating pointers as arrays: 5144 int_array[1] 5145 pt_ptr[22].x 5146 5147 Unlike EvaluateExpression() which returns lldb.SBValue objects 5148 with constant copies of the values at the time of evaluation, 5149 the result of this function is a value that will continue to 5150 track the current value of the value as execution progresses 5151 in the current frame. 5152 """ 5153 return _lldb.SBFrame_GetValueForVariablePath(self, *args)
5154
5155 - def FindValue(self, *args):
5156 """ 5157 FindValue(SBFrame self, char const * name, lldb::ValueType value_type) -> SBValue 5158 FindValue(SBFrame self, char const * name, lldb::ValueType value_type, lldb::DynamicValueType use_dynamic) -> SBValue 5159 5160 Find variables, register sets, registers, or persistent variables using 5161 the frame as the scope. 5162 5163 The version that doesn't supply a 'use_dynamic' value will use the 5164 target's default. 5165 """ 5166 return _lldb.SBFrame_FindValue(self, *args)
5167
5168 - def GetDescription(self, *args):
5169 """GetDescription(SBFrame self, SBStream description) -> bool""" 5170 return _lldb.SBFrame_GetDescription(self, *args)
5171
5172 - def get_all_variables(self):
5173 return self.GetVariables(True,True,True,True)
5174
5175 - def get_parent_frame(self):
5176 parent_idx = self.idx + 1 5177 if parent_idx >= 0 and parent_idx < len(self.thread.frame): 5178 return self.thread.frame[parent_idx] 5179 else: 5180 return SBFrame()
5181
5182 - def get_arguments(self):
5183 return self.GetVariables(True,False,False,False)
5184
5185 - def get_locals(self):
5186 return self.GetVariables(False,True,False,False)
5187
5188 - def get_statics(self):
5189 return self.GetVariables(False,False,True,False)
5190
5191 - def var(self, var_expr_path):
5192 '''Calls through to lldb.SBFrame.GetValueForVariablePath() and returns 5193 a value that represents the variable expression path''' 5194 return self.GetValueForVariablePath(var_expr_path)
5195
5196 - def get_registers_access(self):
5197 class registers_access(object): 5198 '''A helper object that exposes a flattened view of registers, masking away the notion of register sets for easy scripting.''' 5199 def __init__(self, regs): 5200 self.regs = regs
5201 5202 def __getitem__(self, key): 5203 if type(key) is str: 5204 for i in range(0,len(self.regs)): 5205 rs = self.regs[i] 5206 for j in range (0,rs.num_children): 5207 reg = rs.GetChildAtIndex(j) 5208 if reg.name == key: return reg 5209 else: 5210 return lldb.SBValue() 5211 5212 return registers_access(self.registers) 5213 5214 __swig_getmethods__["pc"] = GetPC 5215 __swig_setmethods__["pc"] = SetPC 5216 if _newclass: pc = property(GetPC, SetPC) 5217 5218 __swig_getmethods__["addr"] = GetPCAddress 5219 if _newclass: addr = property(GetPCAddress, None, doc='''A read only property that returns the program counter (PC) as a section offset address (lldb.SBAddress).''') 5220 5221 __swig_getmethods__["fp"] = GetFP 5222 if _newclass: fp = property(GetFP, None, doc='''A read only property that returns the frame pointer (FP) as an unsigned integer.''') 5223 5224 __swig_getmethods__["sp"] = GetSP 5225 if _newclass: sp = property(GetSP, None, doc='''A read only property that returns the stack pointer (SP) as an unsigned integer.''') 5226 5227 __swig_getmethods__["module"] = GetModule 5228 if _newclass: module = property(GetModule, None, doc='''A read only property that returns an lldb object that represents the module (lldb.SBModule) for this stack frame.''') 5229 5230 __swig_getmethods__["compile_unit"] = GetCompileUnit 5231 if _newclass: compile_unit = property(GetCompileUnit, None, doc='''A read only property that returns an lldb object that represents the compile unit (lldb.SBCompileUnit) for this stack frame.''') 5232 5233 __swig_getmethods__["function"] = GetFunction 5234 if _newclass: function = property(GetFunction, None, doc='''A read only property that returns an lldb object that represents the function (lldb.SBFunction) for this stack frame.''') 5235 5236 __swig_getmethods__["symbol"] = GetSymbol 5237 if _newclass: symbol = property(GetSymbol, None, doc='''A read only property that returns an lldb object that represents the symbol (lldb.SBSymbol) for this stack frame.''') 5238 5239 __swig_getmethods__["block"] = GetBlock 5240 if _newclass: block = property(GetBlock, None, doc='''A read only property that returns an lldb object that represents the block (lldb.SBBlock) for this stack frame.''') 5241 5242 __swig_getmethods__["is_inlined"] = IsInlined 5243 if _newclass: is_inlined = property(IsInlined, None, doc='''A read only property that returns an boolean that indicates if the block frame is an inlined function.''') 5244 5245 __swig_getmethods__["name"] = GetFunctionName 5246 if _newclass: name = property(GetFunctionName, None, doc='''A read only property that retuns the name for the function that this frame represents. Inlined stack frame might have a concrete function that differs from the name of the inlined function (a named lldb.SBBlock).''') 5247 5248 __swig_getmethods__["line_entry"] = GetLineEntry 5249 if _newclass: line_entry = property(GetLineEntry, None, doc='''A read only property that returns an lldb object that represents the line table entry (lldb.SBLineEntry) for this stack frame.''') 5250 5251 __swig_getmethods__["thread"] = GetThread 5252 if _newclass: thread = property(GetThread, None, doc='''A read only property that returns an lldb object that represents the thread (lldb.SBThread) for this stack frame.''') 5253 5254 __swig_getmethods__["disassembly"] = Disassemble 5255 if _newclass: disassembly = property(Disassemble, None, doc='''A read only property that returns the disassembly for this stack frame as a python string.''') 5256 5257 __swig_getmethods__["idx"] = GetFrameID 5258 if _newclass: idx = property(GetFrameID, None, doc='''A read only property that returns the zero based stack frame index.''') 5259 5260 __swig_getmethods__["variables"] = get_all_variables 5261 if _newclass: variables = property(get_all_variables, None, doc='''A read only property that returns a list() that contains a collection of lldb.SBValue objects that represent the variables in this stack frame.''') 5262 5263 __swig_getmethods__["vars"] = get_all_variables 5264 if _newclass: vars = property(get_all_variables, None, doc='''A read only property that returns a list() that contains a collection of lldb.SBValue objects that represent the variables in this stack frame.''') 5265 5266 __swig_getmethods__["locals"] = get_locals 5267 if _newclass: locals = property(get_locals, None, doc='''A read only property that returns a list() that contains a collection of lldb.SBValue objects that represent the local variables in this stack frame.''') 5268 5269 __swig_getmethods__["args"] = get_arguments 5270 if _newclass: args = property(get_arguments, None, doc='''A read only property that returns a list() that contains a collection of lldb.SBValue objects that represent the argument variables in this stack frame.''') 5271 5272 __swig_getmethods__["arguments"] = get_arguments 5273 if _newclass: arguments = property(get_arguments, None, doc='''A read only property that returns a list() that contains a collection of lldb.SBValue objects that represent the argument variables in this stack frame.''') 5274 5275 __swig_getmethods__["statics"] = get_statics 5276 if _newclass: statics = property(get_statics, None, doc='''A read only property that returns a list() that contains a collection of lldb.SBValue objects that represent the static variables in this stack frame.''') 5277 5278 __swig_getmethods__["registers"] = GetRegisters 5279 if _newclass: registers = property(GetRegisters, None, doc='''A read only property that returns a list() that contains a collection of lldb.SBValue objects that represent the CPU registers for this stack frame.''') 5280 5281 __swig_getmethods__["regs"] = GetRegisters 5282 if _newclass: regs = property(GetRegisters, None, doc='''A read only property that returns a list() that contains a collection of lldb.SBValue objects that represent the CPU registers for this stack frame.''') 5283 5284 __swig_getmethods__["register"] = get_registers_access 5285 if _newclass: register = property(get_registers_access, None, doc='''A read only property that returns an helper object providing a flattened indexable view of the CPU registers for this stack frame.''') 5286 5287 __swig_getmethods__["reg"] = get_registers_access 5288 if _newclass: reg = property(get_registers_access, None, doc='''A read only property that returns an helper object providing a flattened indexable view of the CPU registers for this stack frame''') 5289 5290 __swig_getmethods__["parent"] = get_parent_frame 5291 if _newclass: parent = property(get_parent_frame, None, doc='''A read only property that returns the parent (caller) frame of the current frame.''') 5292 5293
5294 - def __str__(self):
5295 """__str__(SBFrame self) -> PyObject *""" 5296 return _lldb.SBFrame___str__(self)
5297 5298 SBFrame_swigregister = _lldb.SBFrame_swigregister 5299 SBFrame_swigregister(SBFrame)
5300 5301 -class SBFunction(_object):
5302 """ 5303 Represents a generic function, which can be inlined or not. 5304 5305 For example (from test/lldbutil.py, but slightly modified for doc purpose), 5306 5307 ... 5308 5309 frame = thread.GetFrameAtIndex(i) 5310 addr = frame.GetPCAddress() 5311 load_addr = addr.GetLoadAddress(target) 5312 function = frame.GetFunction() 5313 mod_name = frame.GetModule().GetFileSpec().GetFilename() 5314 5315 if not function: 5316 # No debug info for 'function'. 5317 symbol = frame.GetSymbol() 5318 file_addr = addr.GetFileAddress() 5319 start_addr = symbol.GetStartAddress().GetFileAddress() 5320 symbol_name = symbol.GetName() 5321 symbol_offset = file_addr - start_addr 5322 print >> output, ' frame #{num}: {addr:#016x} {mod}`{symbol} + {offset}'.format( 5323 num=i, addr=load_addr, mod=mod_name, symbol=symbol_name, offset=symbol_offset) 5324 else: 5325 # Debug info is available for 'function'. 5326 func_name = frame.GetFunctionName() 5327 file_name = frame.GetLineEntry().GetFileSpec().GetFilename() 5328 line_num = frame.GetLineEntry().GetLine() 5329 print >> output, ' frame #{num}: {addr:#016x} {mod}`{func} at {file}:{line} {args}'.format( 5330 num=i, addr=load_addr, mod=mod_name, 5331 func='%s [inlined]' % func_name] if frame.IsInlined() else func_name, 5332 file=file_name, line=line_num, args=get_args_as_string(frame, showFuncName=False)) 5333 5334 ... 5335 """ 5336 __swig_setmethods__ = {} 5337 __setattr__ = lambda self, name, value: _swig_setattr(self, SBFunction, name, value) 5338 __swig_getmethods__ = {} 5339 __getattr__ = lambda self, name: _swig_getattr(self, SBFunction, name) 5340 __repr__ = _swig_repr
5341 - def __init__(self, *args):
5342 """ 5343 __init__(lldb::SBFunction self) -> SBFunction 5344 __init__(lldb::SBFunction self, SBFunction rhs) -> SBFunction 5345 """ 5346 this = _lldb.new_SBFunction(*args) 5347 try: self.this.append(this) 5348 except: self.this = this
5349 __swig_destroy__ = _lldb.delete_SBFunction 5350 __del__ = lambda self : None;
5351 - def IsValid(self):
5352 """IsValid(SBFunction self) -> bool""" 5353 return _lldb.SBFunction_IsValid(self)
5354
5355 - def __nonzero__(self):
5356 return _lldb.SBFunction___nonzero__(self)
5357 __bool__ = __nonzero__ 5358 5359
5360 - def GetName(self):
5361 """GetName(SBFunction self) -> char const *""" 5362 return _lldb.SBFunction_GetName(self)
5363
5364 - def GetDisplayName(self):
5365 """GetDisplayName(SBFunction self) -> char const *""" 5366 return _lldb.SBFunction_GetDisplayName(self)
5367
5368 - def GetMangledName(self):
5369 """GetMangledName(SBFunction self) -> char const *""" 5370 return _lldb.SBFunction_GetMangledName(self)
5371
5372 - def GetInstructions(self, *args):
5373 """ 5374 GetInstructions(SBFunction self, SBTarget target) -> SBInstructionList 5375 GetInstructions(SBFunction self, SBTarget target, char const * flavor) -> SBInstructionList 5376 """ 5377 return _lldb.SBFunction_GetInstructions(self, *args)
5378
5379 - def GetStartAddress(self):
5380 """GetStartAddress(SBFunction self) -> SBAddress""" 5381 return _lldb.SBFunction_GetStartAddress(self)
5382
5383 - def GetEndAddress(self):
5384 """GetEndAddress(SBFunction self) -> SBAddress""" 5385 return _lldb.SBFunction_GetEndAddress(self)
5386
5387 - def GetArgumentName(self, *args):
5388 """GetArgumentName(SBFunction self, uint32_t arg_idx) -> char const *""" 5389 return _lldb.SBFunction_GetArgumentName(self, *args)
5390
5391 - def GetPrologueByteSize(self):
5392 """GetPrologueByteSize(SBFunction self) -> uint32_t""" 5393 return _lldb.SBFunction_GetPrologueByteSize(self)
5394
5395 - def GetType(self):
5396 """GetType(SBFunction self) -> SBType""" 5397 return _lldb.SBFunction_GetType(self)
5398
5399 - def GetBlock(self):
5400 """GetBlock(SBFunction self) -> SBBlock""" 5401 return _lldb.SBFunction_GetBlock(self)
5402
5403 - def GetLanguage(self):
5404 """GetLanguage(SBFunction self) -> lldb::LanguageType""" 5405 return _lldb.SBFunction_GetLanguage(self)
5406
5407 - def GetIsOptimized(self):
5408 """ 5409 GetIsOptimized(SBFunction self) -> bool 5410 5411 Returns true if the function was compiled with optimization. 5412 Optimization, in this case, is meant to indicate that the debugger 5413 experience may be confusing for the user -- variables optimized away, 5414 stepping jumping between source lines -- and the driver may want to 5415 provide some guidance to the user about this. 5416 Returns false if unoptimized, or unknown. 5417 """ 5418 return _lldb.SBFunction_GetIsOptimized(self)
5419
5420 - def GetDescription(self, *args):
5421 """GetDescription(SBFunction self, SBStream description) -> bool""" 5422 return _lldb.SBFunction_GetDescription(self, *args)
5423
5424 - def __eq__(self, *args):
5425 """__eq__(SBFunction self, SBFunction rhs) -> bool""" 5426 return _lldb.SBFunction___eq__(self, *args)
5427
5428 - def __ne__(self, *args):
5429 """__ne__(SBFunction self, SBFunction rhs) -> bool""" 5430 return _lldb.SBFunction___ne__(self, *args)
5431
5432 - def get_instructions_from_current_target (self):
5433 return self.GetInstructions (target)
5434 5435 __swig_getmethods__["addr"] = GetStartAddress 5436 if _newclass: addr = property(GetStartAddress, None, doc='''A read only property that returns an lldb object that represents the start address (lldb.SBAddress) for this function.''') 5437 5438 __swig_getmethods__["end_addr"] = GetEndAddress 5439 if _newclass: end_addr = property(GetEndAddress, None, doc='''A read only property that returns an lldb object that represents the end address (lldb.SBAddress) for this function.''') 5440 5441 __swig_getmethods__["block"] = GetBlock 5442 if _newclass: block = property(GetBlock, None, doc='''A read only property that returns an lldb object that represents the top level lexical block (lldb.SBBlock) for this function.''') 5443 5444 __swig_getmethods__["instructions"] = get_instructions_from_current_target 5445 if _newclass: instructions = property(get_instructions_from_current_target, None, doc='''A read only property that returns an lldb object that represents the instructions (lldb.SBInstructionList) for this function.''') 5446 5447 __swig_getmethods__["mangled"] = GetMangledName 5448 if _newclass: mangled = property(GetMangledName, None, doc='''A read only property that returns the mangled (linkage) name for this function as a string.''') 5449 5450 __swig_getmethods__["name"] = GetName 5451 if _newclass: name = property(GetName, None, doc='''A read only property that returns the name for this function as a string.''') 5452 5453 __swig_getmethods__["prologue_size"] = GetPrologueByteSize 5454 if _newclass: prologue_size = property(GetPrologueByteSize, None, doc='''A read only property that returns the size in bytes of the prologue instructions as an unsigned integer.''') 5455 5456 __swig_getmethods__["type"] = GetType 5457 if _newclass: type = property(GetType, None, doc='''A read only property that returns an lldb object that represents the return type (lldb.SBType) for this function.''') 5458
5459 - def __str__(self):
5460 """__str__(SBFunction self) -> PyObject *""" 5461 return _lldb.SBFunction___str__(self)
5462
5463 - def __eq__(self, rhs):
5464 if not isinstance(rhs, type(self)): 5465 return False 5466 5467 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
5468
5469 - def __ne__(self, rhs):
5470 if not isinstance(rhs, type(self)): 5471 return True 5472 5473 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
5474 5475 SBFunction_swigregister = _lldb.SBFunction_swigregister 5476 SBFunction_swigregister(SBFunction)
5477 5478 -class SBHostOS(_object):
5479 """Proxy of C++ lldb::SBHostOS class""" 5480 __swig_setmethods__ = {} 5481 __setattr__ = lambda self, name, value: _swig_setattr(self, SBHostOS, name, value) 5482 __swig_getmethods__ = {} 5483 __getattr__ = lambda self, name: _swig_getattr(self, SBHostOS, name) 5484 __repr__ = _swig_repr
5485 - def GetProgramFileSpec():
5486 """GetProgramFileSpec() -> SBFileSpec""" 5487 return _lldb.SBHostOS_GetProgramFileSpec()
5488 5489 if _newclass:GetProgramFileSpec = staticmethod(GetProgramFileSpec) 5490 __swig_getmethods__["GetProgramFileSpec"] = lambda x: GetProgramFileSpec
5491 - def GetLLDBPythonPath():
5492 """GetLLDBPythonPath() -> SBFileSpec""" 5493 return _lldb.SBHostOS_GetLLDBPythonPath()
5494 5495 if _newclass:GetLLDBPythonPath = staticmethod(GetLLDBPythonPath) 5496 __swig_getmethods__["GetLLDBPythonPath"] = lambda x: GetLLDBPythonPath
5497 - def GetLLDBPath(*args):
5498 """GetLLDBPath(lldb::PathType path_type) -> SBFileSpec""" 5499 return _lldb.SBHostOS_GetLLDBPath(*args)
5500 5501 if _newclass:GetLLDBPath = staticmethod(GetLLDBPath) 5502 __swig_getmethods__["GetLLDBPath"] = lambda x: GetLLDBPath
5503 - def GetUserHomeDirectory():
5504 """GetUserHomeDirectory() -> SBFileSpec""" 5505 return _lldb.SBHostOS_GetUserHomeDirectory()
5506 5507 if _newclass:GetUserHomeDirectory = staticmethod(GetUserHomeDirectory) 5508 __swig_getmethods__["GetUserHomeDirectory"] = lambda x: GetUserHomeDirectory
5509 - def ThreadCreated(*args):
5510 """ThreadCreated(char const * name)""" 5511 return _lldb.SBHostOS_ThreadCreated(*args)
5512 5513 if _newclass:ThreadCreated = staticmethod(ThreadCreated) 5514 __swig_getmethods__["ThreadCreated"] = lambda x: ThreadCreated
5515 - def ThreadCreate(*args):
5516 """ThreadCreate(char const * name, lldb::thread_func_t arg2, void * thread_arg, SBError err) -> lldb::thread_t""" 5517 return _lldb.SBHostOS_ThreadCreate(*args)
5518 5519 if _newclass:ThreadCreate = staticmethod(ThreadCreate) 5520 __swig_getmethods__["ThreadCreate"] = lambda x: ThreadCreate
5521 - def ThreadCancel(*args):
5522 """ThreadCancel(lldb::thread_t thread, SBError err) -> bool""" 5523 return _lldb.SBHostOS_ThreadCancel(*args)
5524 5525 if _newclass:ThreadCancel = staticmethod(ThreadCancel) 5526 __swig_getmethods__["ThreadCancel"] = lambda x: ThreadCancel
5527 - def ThreadDetach(*args):
5528 """ThreadDetach(lldb::thread_t thread, SBError err) -> bool""" 5529 return _lldb.SBHostOS_ThreadDetach(*args)
5530 5531 if _newclass:ThreadDetach = staticmethod(ThreadDetach) 5532 __swig_getmethods__["ThreadDetach"] = lambda x: ThreadDetach
5533 - def ThreadJoin(*args):
5534 """ThreadJoin(lldb::thread_t thread, lldb::thread_result_t * result, SBError err) -> bool""" 5535 return _lldb.SBHostOS_ThreadJoin(*args)
5536 5537 if _newclass:ThreadJoin = staticmethod(ThreadJoin) 5538 __swig_getmethods__["ThreadJoin"] = lambda x: ThreadJoin
5539 - def __init__(self):
5540 """__init__(lldb::SBHostOS self) -> SBHostOS""" 5541 this = _lldb.new_SBHostOS() 5542 try: self.this.append(this) 5543 except: self.this = this
5544 __swig_destroy__ = _lldb.delete_SBHostOS 5545 __del__ = lambda self : None; 5546 SBHostOS_swigregister = _lldb.SBHostOS_swigregister 5547 SBHostOS_swigregister(SBHostOS)
5548 5549 -def SBHostOS_GetProgramFileSpec():
5550 """SBHostOS_GetProgramFileSpec() -> SBFileSpec""" 5551 return _lldb.SBHostOS_GetProgramFileSpec()
5552
5553 -def SBHostOS_GetLLDBPythonPath():
5554 """SBHostOS_GetLLDBPythonPath() -> SBFileSpec""" 5555 return _lldb.SBHostOS_GetLLDBPythonPath()
5556
5557 -def SBHostOS_GetLLDBPath(*args):
5558 """SBHostOS_GetLLDBPath(lldb::PathType path_type) -> SBFileSpec""" 5559 return _lldb.SBHostOS_GetLLDBPath(*args)
5560
5561 -def SBHostOS_GetUserHomeDirectory():
5562 """SBHostOS_GetUserHomeDirectory() -> SBFileSpec""" 5563 return _lldb.SBHostOS_GetUserHomeDirectory()
5564
5565 -def SBHostOS_ThreadCreated(*args):
5566 """SBHostOS_ThreadCreated(char const * name)""" 5567 return _lldb.SBHostOS_ThreadCreated(*args)
5568
5569 -def SBHostOS_ThreadCreate(*args):
5570 """SBHostOS_ThreadCreate(char const * name, lldb::thread_func_t arg2, void * thread_arg, SBError err) -> lldb::thread_t""" 5571 return _lldb.SBHostOS_ThreadCreate(*args)
5572
5573 -def SBHostOS_ThreadCancel(*args):
5574 """SBHostOS_ThreadCancel(lldb::thread_t thread, SBError err) -> bool""" 5575 return _lldb.SBHostOS_ThreadCancel(*args)
5576
5577 -def SBHostOS_ThreadDetach(*args):
5578 """SBHostOS_ThreadDetach(lldb::thread_t thread, SBError err) -> bool""" 5579 return _lldb.SBHostOS_ThreadDetach(*args)
5580
5581 -def SBHostOS_ThreadJoin(*args):
5582 """SBHostOS_ThreadJoin(lldb::thread_t thread, lldb::thread_result_t * result, SBError err) -> bool""" 5583 return _lldb.SBHostOS_ThreadJoin(*args)
5584
5585 -class SBInstruction(_object):
5586 """Proxy of C++ lldb::SBInstruction class""" 5587 __swig_setmethods__ = {} 5588 __setattr__ = lambda self, name, value: _swig_setattr(self, SBInstruction, name, value) 5589 __swig_getmethods__ = {} 5590 __getattr__ = lambda self, name: _swig_getattr(self, SBInstruction, name) 5591 __repr__ = _swig_repr
5592 - def __init__(self, *args):
5593 """ 5594 __init__(lldb::SBInstruction self) -> SBInstruction 5595 __init__(lldb::SBInstruction self, SBInstruction rhs) -> SBInstruction 5596 """ 5597 this = _lldb.new_SBInstruction(*args) 5598 try: self.this.append(this) 5599 except: self.this = this
5600 __swig_destroy__ = _lldb.delete_SBInstruction 5601 __del__ = lambda self : None;
5602 - def IsValid(self):
5603 """IsValid(SBInstruction self) -> bool""" 5604 return _lldb.SBInstruction_IsValid(self)
5605
5606 - def __nonzero__(self):
5607 return _lldb.SBInstruction___nonzero__(self)
5608 __bool__ = __nonzero__ 5609 5610
5611 - def GetAddress(self):
5612 """GetAddress(SBInstruction self) -> SBAddress""" 5613 return _lldb.SBInstruction_GetAddress(self)
5614
5615 - def GetMnemonic(self, *args):
5616 """GetMnemonic(SBInstruction self, SBTarget target) -> char const *""" 5617 return _lldb.SBInstruction_GetMnemonic(self, *args)
5618
5619 - def GetOperands(self, *args):
5620 """GetOperands(SBInstruction self, SBTarget target) -> char const *""" 5621 return _lldb.SBInstruction_GetOperands(self, *args)
5622
5623 - def GetComment(self, *args):
5624 """GetComment(SBInstruction self, SBTarget target) -> char const *""" 5625 return _lldb.SBInstruction_GetComment(self, *args)
5626
5627 - def GetData(self, *args):
5628 """GetData(SBInstruction self, SBTarget target) -> SBData""" 5629 return _lldb.SBInstruction_GetData(self, *args)
5630
5631 - def GetByteSize(self):
5632 """GetByteSize(SBInstruction self) -> size_t""" 5633 return _lldb.SBInstruction_GetByteSize(self)
5634
5635 - def DoesBranch(self):
5636 """DoesBranch(SBInstruction self) -> bool""" 5637 return _lldb.SBInstruction_DoesBranch(self)
5638
5639 - def HasDelaySlot(self):
5640 """HasDelaySlot(SBInstruction self) -> bool""" 5641 return _lldb.SBInstruction_HasDelaySlot(self)
5642
5643 - def CanSetBreakpoint(self):
5644 """CanSetBreakpoint(SBInstruction self) -> bool""" 5645 return _lldb.SBInstruction_CanSetBreakpoint(self)
5646
5647 - def Print(self, *args):
5648 """Print(SBInstruction self, FILE * out)""" 5649 return _lldb.SBInstruction_Print(self, *args)
5650
5651 - def GetDescription(self, *args):
5652 """GetDescription(SBInstruction self, SBStream description) -> bool""" 5653 return _lldb.SBInstruction_GetDescription(self, *args)
5654
5655 - def EmulateWithFrame(self, *args):
5656 """EmulateWithFrame(SBInstruction self, SBFrame frame, uint32_t evaluate_options) -> bool""" 5657 return _lldb.SBInstruction_EmulateWithFrame(self, *args)
5658
5659 - def DumpEmulation(self, *args):
5660 """DumpEmulation(SBInstruction self, char const * triple) -> bool""" 5661 return _lldb.SBInstruction_DumpEmulation(self, *args)
5662
5663 - def TestEmulation(self, *args):
5664 """TestEmulation(SBInstruction self, SBStream output_stream, char const * test_file) -> bool""" 5665 return _lldb.SBInstruction_TestEmulation(self, *args)
5666
5667 - def __mnemonic_property__ (self):
5668 return self.GetMnemonic (target)
5669 - def __operands_property__ (self):
5670 return self.GetOperands (target)
5671 - def __comment_property__ (self):
5672 return self.GetComment (target)
5673 - def __file_addr_property__ (self):
5674 return self.GetAddress ().GetFileAddress()
5675 - def __load_adrr_property__ (self):
5676 return self.GetComment (target)
5677 5678 __swig_getmethods__["mnemonic"] = __mnemonic_property__ 5679 if _newclass: mnemonic = property(__mnemonic_property__, None, doc='''A read only property that returns the mnemonic for this instruction as a string.''') 5680 5681 __swig_getmethods__["operands"] = __operands_property__ 5682 if _newclass: operands = property(__operands_property__, None, doc='''A read only property that returns the operands for this instruction as a string.''') 5683 5684 __swig_getmethods__["comment"] = __comment_property__ 5685 if _newclass: comment = property(__comment_property__, None, doc='''A read only property that returns the comment for this instruction as a string.''') 5686 5687 __swig_getmethods__["addr"] = GetAddress 5688 if _newclass: addr = property(GetAddress, None, doc='''A read only property that returns an lldb object that represents the address (lldb.SBAddress) for this instruction.''') 5689 5690 __swig_getmethods__["size"] = GetByteSize 5691 if _newclass: size = property(GetByteSize, None, doc='''A read only property that returns the size in bytes for this instruction as an integer.''') 5692 5693 __swig_getmethods__["is_branch"] = DoesBranch 5694 if _newclass: is_branch = property(DoesBranch, None, doc='''A read only property that returns a boolean value that indicates if this instruction is a branch instruction.''') 5695
5696 - def __str__(self):
5697 """__str__(SBInstruction self) -> PyObject *""" 5698 return _lldb.SBInstruction___str__(self)
5699 5700 SBInstruction_swigregister = _lldb.SBInstruction_swigregister 5701 SBInstruction_swigregister(SBInstruction)
5702 5703 -class SBInstructionList(_object):
5704 """ 5705 Represents a list of machine instructions. SBFunction and SBSymbol have 5706 GetInstructions() methods which return SBInstructionList instances. 5707 5708 SBInstructionList supports instruction (SBInstruction instance) iteration. 5709 For example (see also SBDebugger for a more complete example), 5710 5711 def disassemble_instructions (insts): 5712 for i in insts: 5713 print i 5714 5715 defines a function which takes an SBInstructionList instance and prints out 5716 the machine instructions in assembly format. 5717 """ 5718 __swig_setmethods__ = {} 5719 __setattr__ = lambda self, name, value: _swig_setattr(self, SBInstructionList, name, value) 5720 __swig_getmethods__ = {} 5721 __getattr__ = lambda self, name: _swig_getattr(self, SBInstructionList, name) 5722 __repr__ = _swig_repr
5723 - def __init__(self, *args):
5724 """ 5725 __init__(lldb::SBInstructionList self) -> SBInstructionList 5726 __init__(lldb::SBInstructionList self, SBInstructionList rhs) -> SBInstructionList 5727 """ 5728 this = _lldb.new_SBInstructionList(*args) 5729 try: self.this.append(this) 5730 except: self.this = this
5731 __swig_destroy__ = _lldb.delete_SBInstructionList 5732 __del__ = lambda self : None;
5733 - def IsValid(self):
5734 """IsValid(SBInstructionList self) -> bool""" 5735 return _lldb.SBInstructionList_IsValid(self)
5736
5737 - def __nonzero__(self):
5738 return _lldb.SBInstructionList___nonzero__(self)
5739 __bool__ = __nonzero__ 5740 5741
5742 - def GetSize(self):
5743 """GetSize(SBInstructionList self) -> size_t""" 5744 return _lldb.SBInstructionList_GetSize(self)
5745
5746 - def GetInstructionAtIndex(self, *args):
5747 """GetInstructionAtIndex(SBInstructionList self, uint32_t idx) -> SBInstruction""" 5748 return _lldb.SBInstructionList_GetInstructionAtIndex(self, *args)
5749
5750 - def GetInstructionsCount(self, *args):
5751 """GetInstructionsCount(SBInstructionList self, SBAddress start, SBAddress end, bool canSetBreakpoint) -> size_t""" 5752 return _lldb.SBInstructionList_GetInstructionsCount(self, *args)
5753
5754 - def Clear(self):
5755 """Clear(SBInstructionList self)""" 5756 return _lldb.SBInstructionList_Clear(self)
5757
5758 - def AppendInstruction(self, *args):
5759 """AppendInstruction(SBInstructionList self, SBInstruction inst)""" 5760 return _lldb.SBInstructionList_AppendInstruction(self, *args)
5761
5762 - def Print(self, *args):
5763 """Print(SBInstructionList self, FILE * out)""" 5764 return _lldb.SBInstructionList_Print(self, *args)
5765
5766 - def GetDescription(self, *args):
5767 """GetDescription(SBInstructionList self, SBStream description) -> bool""" 5768 return _lldb.SBInstructionList_GetDescription(self, *args)
5769
5770 - def DumpEmulationForAllInstructions(self, *args):
5771 """DumpEmulationForAllInstructions(SBInstructionList self, char const * triple) -> bool""" 5772 return _lldb.SBInstructionList_DumpEmulationForAllInstructions(self, *args)
5773
5774 - def __iter__(self):
5775 '''Iterate over all instructions in a lldb.SBInstructionList 5776 object.''' 5777 return lldb_iter(self, 'GetSize', 'GetInstructionAtIndex')
5778
5779 - def __len__(self):
5780 '''Access len of the instruction list.''' 5781 return int(self.GetSize())
5782
5783 - def __getitem__(self, key):
5784 '''Access instructions by integer index for array access or by lldb.SBAddress to find an instruction that matches a section offset address object.''' 5785 if type(key) is int: 5786 # Find an instruction by index 5787 if key < len(self): 5788 return self.GetInstructionAtIndex(key) 5789 elif type(key) is SBAddress: 5790 # Find an instruction using a lldb.SBAddress object 5791 lookup_file_addr = key.file_addr 5792 closest_inst = None 5793 for idx in range(self.GetSize()): 5794 inst = self.GetInstructionAtIndex(idx) 5795 inst_file_addr = inst.addr.file_addr 5796 if inst_file_addr == lookup_file_addr: 5797 return inst 5798 elif inst_file_addr > lookup_file_addr: 5799 return closest_inst 5800 else: 5801 closest_inst = inst 5802 return None
5803
5804 - def __str__(self):
5805 """__str__(SBInstructionList self) -> PyObject *""" 5806 return _lldb.SBInstructionList___str__(self)
5807 5808 SBInstructionList_swigregister = _lldb.SBInstructionList_swigregister 5809 SBInstructionList_swigregister(SBInstructionList)
5810 5811 -class SBLanguageRuntime(_object):
5812 """Proxy of C++ lldb::SBLanguageRuntime class""" 5813 __swig_setmethods__ = {} 5814 __setattr__ = lambda self, name, value: _swig_setattr(self, SBLanguageRuntime, name, value) 5815 __swig_getmethods__ = {} 5816 __getattr__ = lambda self, name: _swig_getattr(self, SBLanguageRuntime, name) 5817 __repr__ = _swig_repr
5818 - def GetLanguageTypeFromString(*args):
5819 """GetLanguageTypeFromString(char const * string) -> lldb::LanguageType""" 5820 return _lldb.SBLanguageRuntime_GetLanguageTypeFromString(*args)
5821 5822 if _newclass:GetLanguageTypeFromString = staticmethod(GetLanguageTypeFromString) 5823 __swig_getmethods__["GetLanguageTypeFromString"] = lambda x: GetLanguageTypeFromString
5824 - def GetNameForLanguageType(*args):
5825 """GetNameForLanguageType(lldb::LanguageType language) -> char const *""" 5826 return _lldb.SBLanguageRuntime_GetNameForLanguageType(*args)
5827 5828 if _newclass:GetNameForLanguageType = staticmethod(GetNameForLanguageType) 5829 __swig_getmethods__["GetNameForLanguageType"] = lambda x: GetNameForLanguageType
5830 - def __init__(self):
5831 """__init__(lldb::SBLanguageRuntime self) -> SBLanguageRuntime""" 5832 this = _lldb.new_SBLanguageRuntime() 5833 try: self.this.append(this) 5834 except: self.this = this
5835 __swig_destroy__ = _lldb.delete_SBLanguageRuntime 5836 __del__ = lambda self : None; 5837 SBLanguageRuntime_swigregister = _lldb.SBLanguageRuntime_swigregister 5838 SBLanguageRuntime_swigregister(SBLanguageRuntime)
5839 5840 -def SBLanguageRuntime_GetLanguageTypeFromString(*args):
5841 """SBLanguageRuntime_GetLanguageTypeFromString(char const * string) -> lldb::LanguageType""" 5842 return _lldb.SBLanguageRuntime_GetLanguageTypeFromString(*args)
5843
5844 -def SBLanguageRuntime_GetNameForLanguageType(*args):
5845 """SBLanguageRuntime_GetNameForLanguageType(lldb::LanguageType language) -> char const *""" 5846 return _lldb.SBLanguageRuntime_GetNameForLanguageType(*args)
5847
5848 -class SBLaunchInfo(_object):
5849 """Proxy of C++ lldb::SBLaunchInfo class""" 5850 __swig_setmethods__ = {} 5851 __setattr__ = lambda self, name, value: _swig_setattr(self, SBLaunchInfo, name, value) 5852 __swig_getmethods__ = {} 5853 __getattr__ = lambda self, name: _swig_getattr(self, SBLaunchInfo, name) 5854 __repr__ = _swig_repr
5855 - def __init__(self, *args):
5856 """__init__(lldb::SBLaunchInfo self, char const ** argv) -> SBLaunchInfo""" 5857 this = _lldb.new_SBLaunchInfo(*args) 5858 try: self.this.append(this) 5859 except: self.this = this
5860 - def GetProcessID(self):
5861 """GetProcessID(SBLaunchInfo self) -> lldb::pid_t""" 5862 return _lldb.SBLaunchInfo_GetProcessID(self)
5863
5864 - def GetUserID(self):
5865 """GetUserID(SBLaunchInfo self) -> uint32_t""" 5866 return _lldb.SBLaunchInfo_GetUserID(self)
5867
5868 - def GetGroupID(self):
5869 """GetGroupID(SBLaunchInfo self) -> uint32_t""" 5870 return _lldb.SBLaunchInfo_GetGroupID(self)
5871
5872 - def UserIDIsValid(self):
5873 """UserIDIsValid(SBLaunchInfo self) -> bool""" 5874 return _lldb.SBLaunchInfo_UserIDIsValid(self)
5875
5876 - def GroupIDIsValid(self):
5877 """GroupIDIsValid(SBLaunchInfo self) -> bool""" 5878 return _lldb.SBLaunchInfo_GroupIDIsValid(self)
5879
5880 - def SetUserID(self, *args):
5881 """SetUserID(SBLaunchInfo self, uint32_t uid)""" 5882 return _lldb.SBLaunchInfo_SetUserID(self, *args)
5883
5884 - def SetGroupID(self, *args):
5885 """SetGroupID(SBLaunchInfo self, uint32_t gid)""" 5886 return _lldb.SBLaunchInfo_SetGroupID(self, *args)
5887
5888 - def GetExecutableFile(self):
5889 """GetExecutableFile(SBLaunchInfo self) -> SBFileSpec""" 5890 return _lldb.SBLaunchInfo_GetExecutableFile(self)
5891
5892 - def SetExecutableFile(self, *args):
5893 """SetExecutableFile(SBLaunchInfo self, SBFileSpec exe_file, bool add_as_first_arg)""" 5894 return _lldb.SBLaunchInfo_SetExecutableFile(self, *args)
5895
5896 - def GetListener(self):
5897 """GetListener(SBLaunchInfo self) -> SBListener""" 5898 return _lldb.SBLaunchInfo_GetListener(self)
5899
5900 - def SetListener(self, *args):
5901 """SetListener(SBLaunchInfo self, SBListener listener)""" 5902 return _lldb.SBLaunchInfo_SetListener(self, *args)
5903
5904 - def GetNumArguments(self):
5905 """GetNumArguments(SBLaunchInfo self) -> uint32_t""" 5906 return _lldb.SBLaunchInfo_GetNumArguments(self)
5907
5908 - def GetArgumentAtIndex(self, *args):
5909 """GetArgumentAtIndex(SBLaunchInfo self, uint32_t idx) -> char const *""" 5910 return _lldb.SBLaunchInfo_GetArgumentAtIndex(self, *args)
5911
5912 - def SetArguments(self, *args):
5913 """SetArguments(SBLaunchInfo self, char const ** argv, bool append)""" 5914 return _lldb.SBLaunchInfo_SetArguments(self, *args)
5915
5916 - def GetNumEnvironmentEntries(self):
5917 """GetNumEnvironmentEntries(SBLaunchInfo self) -> uint32_t""" 5918 return _lldb.SBLaunchInfo_GetNumEnvironmentEntries(self)
5919
5920 - def GetEnvironmentEntryAtIndex(self, *args):
5921 """GetEnvironmentEntryAtIndex(SBLaunchInfo self, uint32_t idx) -> char const *""" 5922 return _lldb.SBLaunchInfo_GetEnvironmentEntryAtIndex(self, *args)
5923
5924 - def SetEnvironmentEntries(self, *args):
5925 """SetEnvironmentEntries(SBLaunchInfo self, char const ** envp, bool append)""" 5926 return _lldb.SBLaunchInfo_SetEnvironmentEntries(self, *args)
5927
5928 - def Clear(self):
5929 """Clear(SBLaunchInfo self)""" 5930 return _lldb.SBLaunchInfo_Clear(self)
5931
5932 - def GetWorkingDirectory(self):
5933 """GetWorkingDirectory(SBLaunchInfo self) -> char const *""" 5934 return _lldb.SBLaunchInfo_GetWorkingDirectory(self)
5935
5936 - def SetWorkingDirectory(self, *args):
5937 """SetWorkingDirectory(SBLaunchInfo self, char const * working_dir)""" 5938 return _lldb.SBLaunchInfo_SetWorkingDirectory(self, *args)
5939
5940 - def GetLaunchFlags(self):
5941 """GetLaunchFlags(SBLaunchInfo self) -> uint32_t""" 5942 return _lldb.SBLaunchInfo_GetLaunchFlags(self)
5943
5944 - def SetLaunchFlags(self, *args):
5945 """SetLaunchFlags(SBLaunchInfo self, uint32_t flags)""" 5946 return _lldb.SBLaunchInfo_SetLaunchFlags(self, *args)
5947
5948 - def GetProcessPluginName(self):
5949 """GetProcessPluginName(SBLaunchInfo self) -> char const *""" 5950 return _lldb.SBLaunchInfo_GetProcessPluginName(self)
5951
5952 - def SetProcessPluginName(self, *args):
5953 """SetProcessPluginName(SBLaunchInfo self, char const * plugin_name)""" 5954 return _lldb.SBLaunchInfo_SetProcessPluginName(self, *args)
5955
5956 - def GetShell(self):
5957 """GetShell(SBLaunchInfo self) -> char const *""" 5958 return _lldb.SBLaunchInfo_GetShell(self)
5959
5960 - def SetShell(self, *args):
5961 """SetShell(SBLaunchInfo self, char const * path)""" 5962 return _lldb.SBLaunchInfo_SetShell(self, *args)
5963
5964 - def GetShellExpandArguments(self):
5965 """GetShellExpandArguments(SBLaunchInfo self) -> bool""" 5966 return _lldb.SBLaunchInfo_GetShellExpandArguments(self)
5967
5968 - def SetShellExpandArguments(self, *args):
5969 """SetShellExpandArguments(SBLaunchInfo self, bool expand)""" 5970 return _lldb.SBLaunchInfo_SetShellExpandArguments(self, *args)
5971
5972 - def GetResumeCount(self):
5973 """GetResumeCount(SBLaunchInfo self) -> uint32_t""" 5974 return _lldb.SBLaunchInfo_GetResumeCount(self)
5975
5976 - def SetResumeCount(self, *args):
5977 """SetResumeCount(SBLaunchInfo self, uint32_t c)""" 5978 return _lldb.SBLaunchInfo_SetResumeCount(self, *args)
5979
5980 - def AddCloseFileAction(self, *args):
5981 """AddCloseFileAction(SBLaunchInfo self, int fd) -> bool""" 5982 return _lldb.SBLaunchInfo_AddCloseFileAction(self, *args)
5983
5984 - def AddDuplicateFileAction(self, *args):
5985 """AddDuplicateFileAction(SBLaunchInfo self, int fd, int dup_fd) -> bool""" 5986 return _lldb.SBLaunchInfo_AddDuplicateFileAction(self, *args)
5987
5988 - def AddOpenFileAction(self, *args):
5989 """AddOpenFileAction(SBLaunchInfo self, int fd, char const * path, bool read, bool write) -> bool""" 5990 return _lldb.SBLaunchInfo_AddOpenFileAction(self, *args)
5991
5992 - def AddSuppressFileAction(self, *args):
5993 """AddSuppressFileAction(SBLaunchInfo self, int fd, bool read, bool write) -> bool""" 5994 return _lldb.SBLaunchInfo_AddSuppressFileAction(self, *args)
5995
5996 - def SetLaunchEventData(self, *args):
5997 """SetLaunchEventData(SBLaunchInfo self, char const * data)""" 5998 return _lldb.SBLaunchInfo_SetLaunchEventData(self, *args)
5999
6000 - def GetLaunchEventData(self):
6001 """GetLaunchEventData(SBLaunchInfo self) -> char const *""" 6002 return _lldb.SBLaunchInfo_GetLaunchEventData(self)
6003
6004 - def GetDetachOnError(self):
6005 """GetDetachOnError(SBLaunchInfo self) -> bool""" 6006 return _lldb.SBLaunchInfo_GetDetachOnError(self)
6007
6008 - def SetDetachOnError(self, *args):
6009 """SetDetachOnError(SBLaunchInfo self, bool enable)""" 6010 return _lldb.SBLaunchInfo_SetDetachOnError(self, *args)
6011 6012 __swig_destroy__ = _lldb.delete_SBLaunchInfo 6013 __del__ = lambda self : None; 6014 SBLaunchInfo_swigregister = _lldb.SBLaunchInfo_swigregister 6015 SBLaunchInfo_swigregister(SBLaunchInfo)
6016 6017 -class SBLineEntry(_object):
6018 """ 6019 Specifies an association with a contiguous range of instructions and 6020 a source file location. SBCompileUnit contains SBLineEntry(s). For example, 6021 6022 for lineEntry in compileUnit: 6023 print('line entry: %s:%d' % (str(lineEntry.GetFileSpec()), 6024 lineEntry.GetLine())) 6025 print('start addr: %s' % str(lineEntry.GetStartAddress())) 6026 print('end addr: %s' % str(lineEntry.GetEndAddress())) 6027 6028 produces: 6029 6030 line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:20 6031 start addr: a.out[0x100000d98] 6032 end addr: a.out[0x100000da3] 6033 line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:21 6034 start addr: a.out[0x100000da3] 6035 end addr: a.out[0x100000da9] 6036 line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:22 6037 start addr: a.out[0x100000da9] 6038 end addr: a.out[0x100000db6] 6039 line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:23 6040 start addr: a.out[0x100000db6] 6041 end addr: a.out[0x100000dbc] 6042 ... 6043 6044 See also SBCompileUnit. 6045 """ 6046 __swig_setmethods__ = {} 6047 __setattr__ = lambda self, name, value: _swig_setattr(self, SBLineEntry, name, value) 6048 __swig_getmethods__ = {} 6049 __getattr__ = lambda self, name: _swig_getattr(self, SBLineEntry, name) 6050 __repr__ = _swig_repr
6051 - def __init__(self, *args):
6052 """ 6053 __init__(lldb::SBLineEntry self) -> SBLineEntry 6054 __init__(lldb::SBLineEntry self, SBLineEntry rhs) -> SBLineEntry 6055 """ 6056 this = _lldb.new_SBLineEntry(*args) 6057 try: self.this.append(this) 6058 except: self.this = this
6059 __swig_destroy__ = _lldb.delete_SBLineEntry 6060 __del__ = lambda self : None;
6061 - def GetStartAddress(self):
6062 """GetStartAddress(SBLineEntry self) -> SBAddress""" 6063 return _lldb.SBLineEntry_GetStartAddress(self)
6064
6065 - def GetEndAddress(self):
6066 """GetEndAddress(SBLineEntry self) -> SBAddress""" 6067 return _lldb.SBLineEntry_GetEndAddress(self)
6068
6069 - def IsValid(self):
6070 """IsValid(SBLineEntry self) -> bool""" 6071 return _lldb.SBLineEntry_IsValid(self)
6072
6073 - def __nonzero__(self):
6074 return _lldb.SBLineEntry___nonzero__(self)
6075 __bool__ = __nonzero__ 6076 6077
6078 - def GetFileSpec(self):
6079 """GetFileSpec(SBLineEntry self) -> SBFileSpec""" 6080 return _lldb.SBLineEntry_GetFileSpec(self)
6081
6082 - def GetLine(self):
6083 """GetLine(SBLineEntry self) -> uint32_t""" 6084 return _lldb.SBLineEntry_GetLine(self)
6085
6086 - def GetColumn(self):
6087 """GetColumn(SBLineEntry self) -> uint32_t""" 6088 return _lldb.SBLineEntry_GetColumn(self)
6089
6090 - def GetDescription(self, *args):
6091 """GetDescription(SBLineEntry self, SBStream description) -> bool""" 6092 return _lldb.SBLineEntry_GetDescription(self, *args)
6093
6094 - def SetFileSpec(self, *args):
6095 """SetFileSpec(SBLineEntry self, SBFileSpec filespec)""" 6096 return _lldb.SBLineEntry_SetFileSpec(self, *args)
6097
6098 - def SetLine(self, *args):
6099 """SetLine(SBLineEntry self, uint32_t line)""" 6100 return _lldb.SBLineEntry_SetLine(self, *args)
6101
6102 - def SetColumn(self, *args):
6103 """SetColumn(SBLineEntry self, uint32_t column)""" 6104 return _lldb.SBLineEntry_SetColumn(self, *args)
6105
6106 - def __eq__(self, *args):
6107 """__eq__(SBLineEntry self, SBLineEntry rhs) -> bool""" 6108 return _lldb.SBLineEntry___eq__(self, *args)
6109
6110 - def __ne__(self, *args):
6111 """__ne__(SBLineEntry self, SBLineEntry rhs) -> bool""" 6112 return _lldb.SBLineEntry___ne__(self, *args)
6113 6114 __swig_getmethods__["file"] = GetFileSpec 6115 if _newclass: file = property(GetFileSpec, None, doc='''A read only property that returns an lldb object that represents the file (lldb.SBFileSpec) for this line entry.''') 6116 6117 __swig_getmethods__["line"] = GetLine 6118 if _newclass: line = property(GetLine, None, doc='''A read only property that returns the 1 based line number for this line entry, a return value of zero indicates that no line information is available.''') 6119 6120 __swig_getmethods__["column"] = GetColumn 6121 if _newclass: column = property(GetColumn, None, doc='''A read only property that returns the 1 based column number for this line entry, a return value of zero indicates that no column information is available.''') 6122 6123 __swig_getmethods__["addr"] = GetStartAddress 6124 if _newclass: addr = property(GetStartAddress, None, doc='''A read only property that returns an lldb object that represents the start address (lldb.SBAddress) for this line entry.''') 6125 6126 __swig_getmethods__["end_addr"] = GetEndAddress 6127 if _newclass: end_addr = property(GetEndAddress, None, doc='''A read only property that returns an lldb object that represents the end address (lldb.SBAddress) for this line entry.''') 6128 6129
6130 - def __str__(self):
6131 """__str__(SBLineEntry self) -> PyObject *""" 6132 return _lldb.SBLineEntry___str__(self)
6133
6134 - def __eq__(self, rhs):
6135 if not isinstance(rhs, type(self)): 6136 return False 6137 6138 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
6139
6140 - def __ne__(self, rhs):
6141 if not isinstance(rhs, type(self)): 6142 return True 6143 6144 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
6145 6146 SBLineEntry_swigregister = _lldb.SBLineEntry_swigregister 6147 SBLineEntry_swigregister(SBLineEntry)
6148 6149 -class SBListener(_object):
6150 """ 6151 API clients can register its own listener to debugger events. 6152 6153 See aslo SBEvent for example usage of creating and adding a listener. 6154 """ 6155 __swig_setmethods__ = {} 6156 __setattr__ = lambda self, name, value: _swig_setattr(self, SBListener, name, value) 6157 __swig_getmethods__ = {} 6158 __getattr__ = lambda self, name: _swig_getattr(self, SBListener, name) 6159 __repr__ = _swig_repr
6160 - def __init__(self, *args):
6161 """ 6162 __init__(lldb::SBListener self) -> SBListener 6163 __init__(lldb::SBListener self, char const * name) -> SBListener 6164 __init__(lldb::SBListener self, SBListener rhs) -> SBListener 6165 """ 6166 this = _lldb.new_SBListener(*args) 6167 try: self.this.append(this) 6168 except: self.this = this
6169 __swig_destroy__ = _lldb.delete_SBListener 6170 __del__ = lambda self : None;
6171 - def AddEvent(self, *args):
6172 """AddEvent(SBListener self, SBEvent event)""" 6173 return _lldb.SBListener_AddEvent(self, *args)
6174
6175 - def Clear(self):
6176 """Clear(SBListener self)""" 6177 return _lldb.SBListener_Clear(self)
6178
6179 - def IsValid(self):
6180 """IsValid(SBListener self) -> bool""" 6181 return _lldb.SBListener_IsValid(self)
6182
6183 - def __nonzero__(self):
6184 return _lldb.SBListener___nonzero__(self)
6185 __bool__ = __nonzero__ 6186 6187
6188 - def StartListeningForEventClass(self, *args):
6189 """StartListeningForEventClass(SBListener self, SBDebugger debugger, char const * broadcaster_class, uint32_t event_mask) -> uint32_t""" 6190 return _lldb.SBListener_StartListeningForEventClass(self, *args)
6191
6192 - def StopListeningForEventClass(self, *args):
6193 """StopListeningForEventClass(SBListener self, SBDebugger debugger, char const * broadcaster_class, uint32_t event_mask) -> uint32_t""" 6194 return _lldb.SBListener_StopListeningForEventClass(self, *args)
6195
6196 - def StartListeningForEvents(self, *args):
6197 """StartListeningForEvents(SBListener self, SBBroadcaster broadcaster, uint32_t event_mask) -> uint32_t""" 6198 return _lldb.SBListener_StartListeningForEvents(self, *args)
6199
6200 - def StopListeningForEvents(self, *args):
6201 """StopListeningForEvents(SBListener self, SBBroadcaster broadcaster, uint32_t event_mask) -> bool""" 6202 return _lldb.SBListener_StopListeningForEvents(self, *args)
6203
6204 - def WaitForEvent(self, *args):
6205 """WaitForEvent(SBListener self, uint32_t num_seconds, SBEvent event) -> bool""" 6206 return _lldb.SBListener_WaitForEvent(self, *args)
6207
6208 - def WaitForEventForBroadcaster(self, *args):
6209 """WaitForEventForBroadcaster(SBListener self, uint32_t num_seconds, SBBroadcaster broadcaster, SBEvent sb_event) -> bool""" 6210 return _lldb.SBListener_WaitForEventForBroadcaster(self, *args)
6211
6212 - def WaitForEventForBroadcasterWithType(self, *args):
6213 """WaitForEventForBroadcasterWithType(SBListener self, uint32_t num_seconds, SBBroadcaster broadcaster, uint32_t event_type_mask, SBEvent sb_event) -> bool""" 6214 return _lldb.SBListener_WaitForEventForBroadcasterWithType(self, *args)
6215
6216 - def PeekAtNextEvent(self, *args):
6217 """PeekAtNextEvent(SBListener self, SBEvent sb_event) -> bool""" 6218 return _lldb.SBListener_PeekAtNextEvent(self, *args)
6219
6220 - def PeekAtNextEventForBroadcaster(self, *args):
6221 """PeekAtNextEventForBroadcaster(SBListener self, SBBroadcaster broadcaster, SBEvent sb_event) -> bool""" 6222 return _lldb.SBListener_PeekAtNextEventForBroadcaster(self, *args)
6223
6224 - def PeekAtNextEventForBroadcasterWithType(self, *args):
6225 """PeekAtNextEventForBroadcasterWithType(SBListener self, SBBroadcaster broadcaster, uint32_t event_type_mask, SBEvent sb_event) -> bool""" 6226 return _lldb.SBListener_PeekAtNextEventForBroadcasterWithType(self, *args)
6227
6228 - def GetNextEvent(self, *args):
6229 """GetNextEvent(SBListener self, SBEvent sb_event) -> bool""" 6230 return _lldb.SBListener_GetNextEvent(self, *args)
6231
6232 - def GetNextEventForBroadcaster(self, *args):
6233 """GetNextEventForBroadcaster(SBListener self, SBBroadcaster broadcaster, SBEvent sb_event) -> bool""" 6234 return _lldb.SBListener_GetNextEventForBroadcaster(self, *args)
6235
6236 - def GetNextEventForBroadcasterWithType(self, *args):
6237 """GetNextEventForBroadcasterWithType(SBListener self, SBBroadcaster broadcaster, uint32_t event_type_mask, SBEvent sb_event) -> bool""" 6238 return _lldb.SBListener_GetNextEventForBroadcasterWithType(self, *args)
6239
6240 - def HandleBroadcastEvent(self, *args):
6241 """HandleBroadcastEvent(SBListener self, SBEvent event) -> bool""" 6242 return _lldb.SBListener_HandleBroadcastEvent(self, *args)
6243 6244 SBListener_swigregister = _lldb.SBListener_swigregister 6245 SBListener_swigregister(SBListener)
6246 6247 -class SBMemoryRegionInfo(_object):
6248 """API clients can get information about memory regions in processes.""" 6249 __swig_setmethods__ = {} 6250 __setattr__ = lambda self, name, value: _swig_setattr(self, SBMemoryRegionInfo, name, value) 6251 __swig_getmethods__ = {} 6252 __getattr__ = lambda self, name: _swig_getattr(self, SBMemoryRegionInfo, name) 6253 __repr__ = _swig_repr
6254 - def __init__(self, *args):
6255 """ 6256 __init__(lldb::SBMemoryRegionInfo self) -> SBMemoryRegionInfo 6257 __init__(lldb::SBMemoryRegionInfo self, SBMemoryRegionInfo rhs) -> SBMemoryRegionInfo 6258 """ 6259 this = _lldb.new_SBMemoryRegionInfo(*args) 6260 try: self.this.append(this) 6261 except: self.this = this
6262 __swig_destroy__ = _lldb.delete_SBMemoryRegionInfo 6263 __del__ = lambda self : None;
6264 - def Clear(self):
6265 """Clear(SBMemoryRegionInfo self)""" 6266 return _lldb.SBMemoryRegionInfo_Clear(self)
6267
6268 - def GetRegionBase(self):
6269 """GetRegionBase(SBMemoryRegionInfo self) -> lldb::addr_t""" 6270 return _lldb.SBMemoryRegionInfo_GetRegionBase(self)
6271
6272 - def GetRegionEnd(self):
6273 """GetRegionEnd(SBMemoryRegionInfo self) -> lldb::addr_t""" 6274 return _lldb.SBMemoryRegionInfo_GetRegionEnd(self)
6275
6276 - def IsReadable(self):
6277 """IsReadable(SBMemoryRegionInfo self) -> bool""" 6278 return _lldb.SBMemoryRegionInfo_IsReadable(self)
6279
6280 - def IsWritable(self):
6281 """IsWritable(SBMemoryRegionInfo self) -> bool""" 6282 return _lldb.SBMemoryRegionInfo_IsWritable(self)
6283
6284 - def IsExecutable(self):
6285 """IsExecutable(SBMemoryRegionInfo self) -> bool""" 6286 return _lldb.SBMemoryRegionInfo_IsExecutable(self)
6287
6288 - def IsMapped(self):
6289 """IsMapped(SBMemoryRegionInfo self) -> bool""" 6290 return _lldb.SBMemoryRegionInfo_IsMapped(self)
6291
6292 - def GetName(self):
6293 """GetName(SBMemoryRegionInfo self) -> char const *""" 6294 return _lldb.SBMemoryRegionInfo_GetName(self)
6295
6296 - def __eq__(self, *args):
6297 """__eq__(SBMemoryRegionInfo self, SBMemoryRegionInfo rhs) -> bool""" 6298 return _lldb.SBMemoryRegionInfo___eq__(self, *args)
6299
6300 - def __ne__(self, *args):
6301 """__ne__(SBMemoryRegionInfo self, SBMemoryRegionInfo rhs) -> bool""" 6302 return _lldb.SBMemoryRegionInfo___ne__(self, *args)
6303
6304 - def GetDescription(self, *args):
6305 """GetDescription(SBMemoryRegionInfo self, SBStream description) -> bool""" 6306 return _lldb.SBMemoryRegionInfo_GetDescription(self, *args)
6307
6308 - def __str__(self):
6309 """__str__(SBMemoryRegionInfo self) -> PyObject *""" 6310 return _lldb.SBMemoryRegionInfo___str__(self)
6311 6312 SBMemoryRegionInfo_swigregister = _lldb.SBMemoryRegionInfo_swigregister 6313 SBMemoryRegionInfo_swigregister(SBMemoryRegionInfo)
6314 6315 -class SBMemoryRegionInfoList(_object):
6316 """Proxy of C++ lldb::SBMemoryRegionInfoList class""" 6317 __swig_setmethods__ = {} 6318 __setattr__ = lambda self, name, value: _swig_setattr(self, SBMemoryRegionInfoList, name, value) 6319 __swig_getmethods__ = {} 6320 __getattr__ = lambda self, name: _swig_getattr(self, SBMemoryRegionInfoList, name) 6321 __repr__ = _swig_repr
6322 - def __init__(self, *args):
6323 """ 6324 __init__(lldb::SBMemoryRegionInfoList self) -> SBMemoryRegionInfoList 6325 __init__(lldb::SBMemoryRegionInfoList self, SBMemoryRegionInfoList rhs) -> SBMemoryRegionInfoList 6326 """ 6327 this = _lldb.new_SBMemoryRegionInfoList(*args) 6328 try: self.this.append(this) 6329 except: self.this = this
6330 __swig_destroy__ = _lldb.delete_SBMemoryRegionInfoList 6331 __del__ = lambda self : None;
6332 - def GetSize(self):
6333 """GetSize(SBMemoryRegionInfoList self) -> uint32_t""" 6334 return _lldb.SBMemoryRegionInfoList_GetSize(self)
6335
6336 - def GetMemoryRegionAtIndex(self, *args):
6337 """GetMemoryRegionAtIndex(SBMemoryRegionInfoList self, uint32_t idx, SBMemoryRegionInfo region_info) -> bool""" 6338 return _lldb.SBMemoryRegionInfoList_GetMemoryRegionAtIndex(self, *args)
6339
6340 - def Append(self, *args):
6341 """ 6342 Append(SBMemoryRegionInfoList self, SBMemoryRegionInfo region) 6343 Append(SBMemoryRegionInfoList self, SBMemoryRegionInfoList region_list) 6344 """ 6345 return _lldb.SBMemoryRegionInfoList_Append(self, *args)
6346
6347 - def Clear(self):
6348 """Clear(SBMemoryRegionInfoList self)""" 6349 return _lldb.SBMemoryRegionInfoList_Clear(self)
6350 6351 SBMemoryRegionInfoList_swigregister = _lldb.SBMemoryRegionInfoList_swigregister 6352 SBMemoryRegionInfoList_swigregister(SBMemoryRegionInfoList)
6353 6354 # ================================== 6355 # Helper function for SBModule class 6356 # ================================== 6357 -def in_range(symbol, section):
6358 """Test whether a symbol is within the range of a section.""" 6359 symSA = symbol.GetStartAddress().GetFileAddress() 6360 symEA = symbol.GetEndAddress().GetFileAddress() 6361 secSA = section.GetFileAddress() 6362 secEA = secSA + section.GetByteSize() 6363 6364 if symEA != LLDB_INVALID_ADDRESS: 6365 if secSA <= symSA and symEA <= secEA: 6366 return True 6367 else: 6368 return False 6369 else: 6370 if secSA <= symSA and symSA < secEA: 6371 return True 6372 else: 6373 return False
6374
6375 -class SBModule(_object):
6376 """ 6377 Represents an executable image and its associated object and symbol files. 6378 6379 The module is designed to be able to select a single slice of an 6380 executable image as it would appear on disk and during program 6381 execution. 6382 6383 You can retrieve SBModule from SBSymbolContext, which in turn is available 6384 from SBFrame. 6385 6386 SBModule supports symbol iteration, for example, 6387 6388 for symbol in module: 6389 name = symbol.GetName() 6390 saddr = symbol.GetStartAddress() 6391 eaddr = symbol.GetEndAddress() 6392 6393 and rich comparison methods which allow the API program to use, 6394 6395 if thisModule == thatModule: 6396 print('This module is the same as that module') 6397 6398 to test module equality. A module also contains object file sections, namely 6399 SBSection. SBModule supports section iteration through section_iter(), for 6400 example, 6401 6402 print('Number of sections: %d' % module.GetNumSections()) 6403 for sec in module.section_iter(): 6404 print(sec) 6405 6406 And to iterate the symbols within a SBSection, use symbol_in_section_iter(), 6407 6408 # Iterates the text section and prints each symbols within each sub-section. 6409 for subsec in text_sec: 6410 print(INDENT + repr(subsec)) 6411 for sym in exe_module.symbol_in_section_iter(subsec): 6412 print(INDENT2 + repr(sym)) 6413 print(INDENT2 + 'symbol type: %s' % symbol_type_to_str(sym.GetType())) 6414 6415 produces this following output: 6416 6417 [0x0000000100001780-0x0000000100001d5c) a.out.__TEXT.__text 6418 id = {0x00000004}, name = 'mask_access(MaskAction, unsigned int)', range = [0x00000001000017c0-0x0000000100001870) 6419 symbol type: code 6420 id = {0x00000008}, name = 'thread_func(void*)', range = [0x0000000100001870-0x00000001000019b0) 6421 symbol type: code 6422 id = {0x0000000c}, name = 'main', range = [0x00000001000019b0-0x0000000100001d5c) 6423 symbol type: code 6424 id = {0x00000023}, name = 'start', address = 0x0000000100001780 6425 symbol type: code 6426 [0x0000000100001d5c-0x0000000100001da4) a.out.__TEXT.__stubs 6427 id = {0x00000024}, name = '__stack_chk_fail', range = [0x0000000100001d5c-0x0000000100001d62) 6428 symbol type: trampoline 6429 id = {0x00000028}, name = 'exit', range = [0x0000000100001d62-0x0000000100001d68) 6430 symbol type: trampoline 6431 id = {0x00000029}, name = 'fflush', range = [0x0000000100001d68-0x0000000100001d6e) 6432 symbol type: trampoline 6433 id = {0x0000002a}, name = 'fgets', range = [0x0000000100001d6e-0x0000000100001d74) 6434 symbol type: trampoline 6435 id = {0x0000002b}, name = 'printf', range = [0x0000000100001d74-0x0000000100001d7a) 6436 symbol type: trampoline 6437 id = {0x0000002c}, name = 'pthread_create', range = [0x0000000100001d7a-0x0000000100001d80) 6438 symbol type: trampoline 6439 id = {0x0000002d}, name = 'pthread_join', range = [0x0000000100001d80-0x0000000100001d86) 6440 symbol type: trampoline 6441 id = {0x0000002e}, name = 'pthread_mutex_lock', range = [0x0000000100001d86-0x0000000100001d8c) 6442 symbol type: trampoline 6443 id = {0x0000002f}, name = 'pthread_mutex_unlock', range = [0x0000000100001d8c-0x0000000100001d92) 6444 symbol type: trampoline 6445 id = {0x00000030}, name = 'rand', range = [0x0000000100001d92-0x0000000100001d98) 6446 symbol type: trampoline 6447 id = {0x00000031}, name = 'strtoul', range = [0x0000000100001d98-0x0000000100001d9e) 6448 symbol type: trampoline 6449 id = {0x00000032}, name = 'usleep', range = [0x0000000100001d9e-0x0000000100001da4) 6450 symbol type: trampoline 6451 [0x0000000100001da4-0x0000000100001e2c) a.out.__TEXT.__stub_helper 6452 [0x0000000100001e2c-0x0000000100001f10) a.out.__TEXT.__cstring 6453 [0x0000000100001f10-0x0000000100001f68) a.out.__TEXT.__unwind_info 6454 [0x0000000100001f68-0x0000000100001ff8) a.out.__TEXT.__eh_frame 6455 6456 """ 6457 __swig_setmethods__ = {} 6458 __setattr__ = lambda self, name, value: _swig_setattr(self, SBModule, name, value) 6459 __swig_getmethods__ = {} 6460 __getattr__ = lambda self, name: _swig_getattr(self, SBModule, name) 6461 __repr__ = _swig_repr
6462 - def __init__(self, *args):
6463 """ 6464 __init__(lldb::SBModule self) -> SBModule 6465 __init__(lldb::SBModule self, SBModule rhs) -> SBModule 6466 __init__(lldb::SBModule self, SBModuleSpec module_spec) -> SBModule 6467 __init__(lldb::SBModule self, SBProcess process, lldb::addr_t header_addr) -> SBModule 6468 """ 6469 this = _lldb.new_SBModule(*args) 6470 try: self.this.append(this) 6471 except: self.this = this
6472 __swig_destroy__ = _lldb.delete_SBModule 6473 __del__ = lambda self : None;
6474 - def IsValid(self):
6475 """IsValid(SBModule self) -> bool""" 6476 return _lldb.SBModule_IsValid(self)
6477
6478 - def __nonzero__(self):
6479 return _lldb.SBModule___nonzero__(self)
6480 __bool__ = __nonzero__ 6481 6482
6483 - def Clear(self):
6484 """Clear(SBModule self)""" 6485 return _lldb.SBModule_Clear(self)
6486
6487 - def GetFileSpec(self):
6488 """ 6489 GetFileSpec(SBModule self) -> SBFileSpec 6490 6491 Get const accessor for the module file specification. 6492 6493 This function returns the file for the module on the host system 6494 that is running LLDB. This can differ from the path on the 6495 platform since we might be doing remote debugging. 6496 6497 @return 6498 A const reference to the file specification object. 6499 """ 6500 return _lldb.SBModule_GetFileSpec(self)
6501
6502 - def GetPlatformFileSpec(self):
6503 """ 6504 GetPlatformFileSpec(SBModule self) -> SBFileSpec 6505 6506 Get accessor for the module platform file specification. 6507 6508 Platform file refers to the path of the module as it is known on 6509 the remote system on which it is being debugged. For local 6510 debugging this is always the same as Module::GetFileSpec(). But 6511 remote debugging might mention a file '/usr/lib/liba.dylib' 6512 which might be locally downloaded and cached. In this case the 6513 platform file could be something like: 6514 '/tmp/lldb/platform-cache/remote.host.computer/usr/lib/liba.dylib' 6515 The file could also be cached in a local developer kit directory. 6516 6517 @return 6518 A const reference to the file specification object. 6519 """ 6520 return _lldb.SBModule_GetPlatformFileSpec(self)
6521
6522 - def SetPlatformFileSpec(self, *args):
6523 """SetPlatformFileSpec(SBModule self, SBFileSpec platform_file) -> bool""" 6524 return _lldb.SBModule_SetPlatformFileSpec(self, *args)
6525
6526 - def GetRemoteInstallFileSpec(self):
6527 """GetRemoteInstallFileSpec(SBModule self) -> SBFileSpec""" 6528 return _lldb.SBModule_GetRemoteInstallFileSpec(self)
6529
6530 - def SetRemoteInstallFileSpec(self, *args):
6531 """SetRemoteInstallFileSpec(SBModule self, SBFileSpec file) -> bool""" 6532 return _lldb.SBModule_SetRemoteInstallFileSpec(self, *args)
6533
6534 - def GetUUIDString(self):
6535 """ 6536 GetUUIDString(SBModule self) -> char const * 6537 6538 Returns the UUID of the module as a Python string. 6539 """ 6540 return _lldb.SBModule_GetUUIDString(self)
6541
6542 - def __eq__(self, *args):
6543 """__eq__(SBModule self, SBModule rhs) -> bool""" 6544 return _lldb.SBModule___eq__(self, *args)
6545
6546 - def __ne__(self, *args):
6547 """__ne__(SBModule self, SBModule rhs) -> bool""" 6548 return _lldb.SBModule___ne__(self, *args)
6549
6550 - def FindSection(self, *args):
6551 """FindSection(SBModule self, char const * sect_name) -> SBSection""" 6552 return _lldb.SBModule_FindSection(self, *args)
6553
6554 - def ResolveFileAddress(self, *args):
6555 """ResolveFileAddress(SBModule self, lldb::addr_t vm_addr) -> SBAddress""" 6556 return _lldb.SBModule_ResolveFileAddress(self, *args)
6557
6558 - def ResolveSymbolContextForAddress(self, *args):
6559 """ResolveSymbolContextForAddress(SBModule self, SBAddress addr, uint32_t resolve_scope) -> SBSymbolContext""" 6560 return _lldb.SBModule_ResolveSymbolContextForAddress(self, *args)
6561
6562 - def GetDescription(self, *args):
6563 """GetDescription(SBModule self, SBStream description) -> bool""" 6564 return _lldb.SBModule_GetDescription(self, *args)
6565
6566 - def GetNumCompileUnits(self):
6567 """GetNumCompileUnits(SBModule self) -> uint32_t""" 6568 return _lldb.SBModule_GetNumCompileUnits(self)
6569
6570 - def GetCompileUnitAtIndex(self, *args):
6571 """GetCompileUnitAtIndex(SBModule self, uint32_t arg2) -> SBCompileUnit""" 6572 return _lldb.SBModule_GetCompileUnitAtIndex(self, *args)
6573
6574 - def FindCompileUnits(self, *args):
6575 """ 6576 FindCompileUnits(SBModule self, SBFileSpec sb_file_spec) -> SBSymbolContextList 6577 6578 Find compile units related to *this module and passed source 6579 file. 6580 6581 @param[in] sb_file_spec 6582 A lldb::SBFileSpec object that contains source file 6583 specification. 6584 6585 @return 6586 A lldb::SBSymbolContextList that gets filled in with all of 6587 the symbol contexts for all the matches. 6588 """ 6589 return _lldb.SBModule_FindCompileUnits(self, *args)
6590
6591 - def GetNumSymbols(self):
6592 """GetNumSymbols(SBModule self) -> size_t""" 6593 return _lldb.SBModule_GetNumSymbols(self)
6594
6595 - def GetSymbolAtIndex(self, *args):
6596 """GetSymbolAtIndex(SBModule self, size_t idx) -> SBSymbol""" 6597 return _lldb.SBModule_GetSymbolAtIndex(self, *args)
6598
6599 - def FindSymbol(self, *args):
6600 """ 6601 FindSymbol(SBModule self, char const * name, lldb::SymbolType type=eSymbolTypeAny) -> SBSymbol 6602 FindSymbol(SBModule self, char const * name) -> SBSymbol 6603 """ 6604 return _lldb.SBModule_FindSymbol(self, *args)
6605
6606 - def FindSymbols(self, *args):
6607 """ 6608 FindSymbols(SBModule self, char const * name, lldb::SymbolType type=eSymbolTypeAny) -> SBSymbolContextList 6609 FindSymbols(SBModule self, char const * name) -> SBSymbolContextList 6610 """ 6611 return _lldb.SBModule_FindSymbols(self, *args)
6612
6613 - def GetNumSections(self):
6614 """GetNumSections(SBModule self) -> size_t""" 6615 return _lldb.SBModule_GetNumSections(self)
6616
6617 - def GetSectionAtIndex(self, *args):
6618 """GetSectionAtIndex(SBModule self, size_t idx) -> SBSection""" 6619 return _lldb.SBModule_GetSectionAtIndex(self, *args)
6620
6621 - def FindFunctions(self, *args):
6622 """ 6623 FindFunctions(SBModule self, char const * name, uint32_t name_type_mask=eFunctionNameTypeAny) -> SBSymbolContextList 6624 FindFunctions(SBModule self, char const * name) -> SBSymbolContextList 6625 6626 Find functions by name. 6627 6628 @param[in] name 6629 The name of the function we are looking for. 6630 6631 @param[in] name_type_mask 6632 A logical OR of one or more FunctionNameType enum bits that 6633 indicate what kind of names should be used when doing the 6634 lookup. Bits include fully qualified names, base names, 6635 C++ methods, or ObjC selectors. 6636 See FunctionNameType for more details. 6637 6638 @return 6639 A symbol context list that gets filled in with all of the 6640 matches. 6641 """ 6642 return _lldb.SBModule_FindFunctions(self, *args)
6643
6644 - def FindFirstType(self, *args):
6645 """FindFirstType(SBModule self, char const * name) -> SBType""" 6646 return _lldb.SBModule_FindFirstType(self, *args)
6647
6648 - def FindTypes(self, *args):
6649 """FindTypes(SBModule self, char const * type) -> SBTypeList""" 6650 return _lldb.SBModule_FindTypes(self, *args)
6651
6652 - def GetTypeByID(self, *args):
6653 """GetTypeByID(SBModule self, lldb::user_id_t uid) -> SBType""" 6654 return _lldb.SBModule_GetTypeByID(self, *args)
6655
6656 - def GetBasicType(self, *args):
6657 """GetBasicType(SBModule self, lldb::BasicType type) -> SBType""" 6658 return _lldb.SBModule_GetBasicType(self, *args)
6659
6660 - def GetTypes(self, *args):
6661 """ 6662 GetTypes(SBModule self, uint32_t type_mask=eTypeClassAny) -> SBTypeList 6663 GetTypes(SBModule self) -> SBTypeList 6664 6665 Get all types matching type_mask from debug info in this 6666 module. 6667 6668 @param[in] type_mask 6669 A bitfield that consists of one or more bits logically OR'ed 6670 together from the lldb::TypeClass enumeration. This allows 6671 you to request only structure types, or only class, struct 6672 and union types. Passing in lldb::eTypeClassAny will return 6673 all types found in the debug information for this module. 6674 6675 @return 6676 A list of types in this module that match type_mask 6677 """ 6678 return _lldb.SBModule_GetTypes(self, *args)
6679
6680 - def FindGlobalVariables(self, *args):
6681 """ 6682 FindGlobalVariables(SBModule self, SBTarget target, char const * name, uint32_t max_matches) -> SBValueList 6683 6684 Find global and static variables by name. 6685 6686 @param[in] target 6687 A valid SBTarget instance representing the debuggee. 6688 6689 @param[in] name 6690 The name of the global or static variable we are looking 6691 for. 6692 6693 @param[in] max_matches 6694 Allow the number of matches to be limited to max_matches. 6695 6696 @return 6697 A list of matched variables in an SBValueList. 6698 """ 6699 return _lldb.SBModule_FindGlobalVariables(self, *args)
6700
6701 - def FindFirstGlobalVariable(self, *args):
6702 """ 6703 FindFirstGlobalVariable(SBModule self, SBTarget target, char const * name) -> SBValue 6704 6705 Find the first global (or static) variable by name. 6706 6707 @param[in] target 6708 A valid SBTarget instance representing the debuggee. 6709 6710 @param[in] name 6711 The name of the global or static variable we are looking 6712 for. 6713 6714 @return 6715 An SBValue that gets filled in with the found variable (if any). 6716 """ 6717 return _lldb.SBModule_FindFirstGlobalVariable(self, *args)
6718
6719 - def GetByteOrder(self):
6720 """GetByteOrder(SBModule self) -> lldb::ByteOrder""" 6721 return _lldb.SBModule_GetByteOrder(self)
6722
6723 - def GetAddressByteSize(self):
6724 """GetAddressByteSize(SBModule self) -> uint32_t""" 6725 return _lldb.SBModule_GetAddressByteSize(self)
6726
6727 - def GetTriple(self):
6728 """GetTriple(SBModule self) -> char const *""" 6729 return _lldb.SBModule_GetTriple(self)
6730
6731 - def GetVersion(self):
6732 """GetVersion(SBModule self) -> uint32_t""" 6733 return _lldb.SBModule_GetVersion(self)
6734
6735 - def GetSymbolFileSpec(self):
6736 """GetSymbolFileSpec(SBModule self) -> SBFileSpec""" 6737 return _lldb.SBModule_GetSymbolFileSpec(self)
6738
6739 - def GetObjectFileHeaderAddress(self):
6740 """GetObjectFileHeaderAddress(SBModule self) -> SBAddress""" 6741 return _lldb.SBModule_GetObjectFileHeaderAddress(self)
6742
6743 - def GetObjectFileEntryPointAddress(self):
6744 """GetObjectFileEntryPointAddress(SBModule self) -> SBAddress""" 6745 return _lldb.SBModule_GetObjectFileEntryPointAddress(self)
6746
6747 - def __len__(self):
6748 '''Return the number of symbols in a lldb.SBModule object.''' 6749 return self.GetNumSymbols()
6750
6751 - def __iter__(self):
6752 '''Iterate over all symbols in a lldb.SBModule object.''' 6753 return lldb_iter(self, 'GetNumSymbols', 'GetSymbolAtIndex')
6754
6755 - def section_iter(self):
6756 '''Iterate over all sections in a lldb.SBModule object.''' 6757 return lldb_iter(self, 'GetNumSections', 'GetSectionAtIndex')
6758
6759 - def compile_unit_iter(self):
6760 '''Iterate over all compile units in a lldb.SBModule object.''' 6761 return lldb_iter(self, 'GetNumCompileUnits', 'GetCompileUnitAtIndex')
6762
6763 - def symbol_in_section_iter(self, section):
6764 '''Given a module and its contained section, returns an iterator on the 6765 symbols within the section.''' 6766 for sym in self: 6767 if in_range(sym, section): 6768 yield sym
6769
6770 - class symbols_access(object):
6771 re_compile_type = type(re.compile('.')) 6772 '''A helper object that will lazily hand out lldb.SBSymbol objects for a module when supplied an index, name, or regular expression.'''
6773 - def __init__(self, sbmodule):
6774 self.sbmodule = sbmodule
6775
6776 - def __len__(self):
6777 if self.sbmodule: 6778 return int(self.sbmodule.GetNumSymbols()) 6779 return 0
6780
6781 - def __getitem__(self, key):
6782 count = len(self) 6783 if type(key) is int: 6784 if key < count: 6785 return self.sbmodule.GetSymbolAtIndex(key) 6786 elif type(key) is str: 6787 matches = [] 6788 sc_list = self.sbmodule.FindSymbols(key) 6789 for sc in sc_list: 6790 symbol = sc.symbol 6791 if symbol: 6792 matches.append(symbol) 6793 return matches 6794 elif isinstance(key, self.re_compile_type): 6795 matches = [] 6796 for idx in range(count): 6797 symbol = self.sbmodule.GetSymbolAtIndex(idx) 6798 added = False 6799 name = symbol.name 6800 if name: 6801 re_match = key.search(name) 6802 if re_match: 6803 matches.append(symbol) 6804 added = True 6805 if not added: 6806 mangled = symbol.mangled 6807 if mangled: 6808 re_match = key.search(mangled) 6809 if re_match: 6810 matches.append(symbol) 6811 return matches 6812 else: 6813 print("error: unsupported item type: %s" % type(key)) 6814 return None
6815
6816 - def get_symbols_access_object(self):
6817 '''An accessor function that returns a symbols_access() object which allows lazy symbol access from a lldb.SBModule object.''' 6818 return self.symbols_access (self)
6819
6820 - def get_compile_units_access_object (self):
6821 '''An accessor function that returns a compile_units_access() object which allows lazy compile unit access from a lldb.SBModule object.''' 6822 return self.compile_units_access (self)
6823
6824 - def get_symbols_array(self):
6825 '''An accessor function that returns a list() that contains all symbols in a lldb.SBModule object.''' 6826 symbols = [] 6827 for idx in range(self.num_symbols): 6828 symbols.append(self.GetSymbolAtIndex(idx)) 6829 return symbols
6830
6831 - class sections_access(object):
6832 re_compile_type = type(re.compile('.')) 6833 '''A helper object that will lazily hand out lldb.SBSection objects for a module when supplied an index, name, or regular expression.'''
6834 - def __init__(self, sbmodule):
6835 self.sbmodule = sbmodule
6836
6837 - def __len__(self):
6838 if self.sbmodule: 6839 return int(self.sbmodule.GetNumSections()) 6840 return 0
6841
6842 - def __getitem__(self, key):
6843 count = len(self) 6844 if type(key) is int: 6845 if key < count: 6846 return self.sbmodule.GetSectionAtIndex(key) 6847 elif type(key) is str: 6848 for idx in range(count): 6849 section = self.sbmodule.GetSectionAtIndex(idx) 6850 if section.name == key: 6851 return section 6852 elif isinstance(key, self.re_compile_type): 6853 matches = [] 6854 for idx in range(count): 6855 section = self.sbmodule.GetSectionAtIndex(idx) 6856 name = section.name 6857 if name: 6858 re_match = key.search(name) 6859 if re_match: 6860 matches.append(section) 6861 return matches 6862 else: 6863 print("error: unsupported item type: %s" % type(key)) 6864 return None
6865
6866 - class compile_units_access(object):
6867 re_compile_type = type(re.compile('.')) 6868 '''A helper object that will lazily hand out lldb.SBCompileUnit objects for a module when supplied an index, full or partial path, or regular expression.'''
6869 - def __init__(self, sbmodule):
6870 self.sbmodule = sbmodule
6871
6872 - def __len__(self):
6873 if self.sbmodule: 6874 return int(self.sbmodule.GetNumCompileUnits()) 6875 return 0
6876
6877 - def __getitem__(self, key):
6878 count = len(self) 6879 if type(key) is int: 6880 if key < count: 6881 return self.sbmodule.GetCompileUnitAtIndex(key) 6882 elif type(key) is str: 6883 is_full_path = key[0] == '/' 6884 for idx in range(count): 6885 comp_unit = self.sbmodule.GetCompileUnitAtIndex(idx) 6886 if is_full_path: 6887 if comp_unit.file.fullpath == key: 6888 return comp_unit 6889 else: 6890 if comp_unit.file.basename == key: 6891 return comp_unit 6892 elif isinstance(key, self.re_compile_type): 6893 matches = [] 6894 for idx in range(count): 6895 comp_unit = self.sbmodule.GetCompileUnitAtIndex(idx) 6896 fullpath = comp_unit.file.fullpath 6897 if fullpath: 6898 re_match = key.search(fullpath) 6899 if re_match: 6900 matches.append(comp_unit) 6901 return matches 6902 else: 6903 print("error: unsupported item type: %s" % type(key)) 6904 return None
6905
6906 - def get_sections_access_object(self):
6907 '''An accessor function that returns a sections_access() object which allows lazy section array access.''' 6908 return self.sections_access (self)
6909
6910 - def get_sections_array(self):
6911 '''An accessor function that returns an array object that contains all sections in this module object.''' 6912 if not hasattr(self, 'sections_array'): 6913 self.sections_array = [] 6914 for idx in range(self.num_sections): 6915 self.sections_array.append(self.GetSectionAtIndex(idx)) 6916 return self.sections_array
6917
6918 - def get_compile_units_array(self):
6919 '''An accessor function that returns an array object that contains all compile_units in this module object.''' 6920 if not hasattr(self, 'compile_units_array'): 6921 self.compile_units_array = [] 6922 for idx in range(self.GetNumCompileUnits()): 6923 self.compile_units_array.append(self.GetCompileUnitAtIndex(idx)) 6924 return self.compile_units_array
6925 6926 __swig_getmethods__["symbols"] = get_symbols_array 6927 if _newclass: symbols = property(get_symbols_array, None, doc='''A read only property that returns a list() of lldb.SBSymbol objects contained in this module.''') 6928 6929 __swig_getmethods__["symbol"] = get_symbols_access_object 6930 if _newclass: symbol = property(get_symbols_access_object, None, doc='''A read only property that can be used to access symbols by index ("symbol = module.symbol[0]"), name ("symbols = module.symbol['main']"), or using a regular expression ("symbols = module.symbol[re.compile(...)]"). The return value is a single lldb.SBSymbol object for array access, and a list() of lldb.SBSymbol objects for name and regular expression access''') 6931 6932 __swig_getmethods__["sections"] = get_sections_array 6933 if _newclass: sections = property(get_sections_array, None, doc='''A read only property that returns a list() of lldb.SBSection objects contained in this module.''') 6934 6935 __swig_getmethods__["compile_units"] = get_compile_units_array 6936 if _newclass: compile_units = property(get_compile_units_array, None, doc='''A read only property that returns a list() of lldb.SBCompileUnit objects contained in this module.''') 6937 6938 __swig_getmethods__["section"] = get_sections_access_object 6939 if _newclass: section = property(get_sections_access_object, None, doc='''A read only property that can be used to access symbols by index ("section = module.section[0]"), name ("sections = module.section[\'main\']"), or using a regular expression ("sections = module.section[re.compile(...)]"). The return value is a single lldb.SBSection object for array access, and a list() of lldb.SBSection objects for name and regular expression access''') 6940 6941 __swig_getmethods__["compile_unit"] = get_compile_units_access_object 6942 if _newclass: section = property(get_sections_access_object, None, doc='''A read only property that can be used to access compile units by index ("compile_unit = module.compile_unit[0]"), name ("compile_unit = module.compile_unit[\'main.cpp\']"), or using a regular expression ("compile_unit = module.compile_unit[re.compile(...)]"). The return value is a single lldb.SBCompileUnit object for array access or by full or partial path, and a list() of lldb.SBCompileUnit objects regular expressions.''') 6943
6944 - def get_uuid(self):
6945 return uuid.UUID (self.GetUUIDString())
6946 6947 __swig_getmethods__["uuid"] = get_uuid 6948 if _newclass: uuid = property(get_uuid, None, doc='''A read only property that returns a standard python uuid.UUID object that represents the UUID of this module.''') 6949 6950 __swig_getmethods__["file"] = GetFileSpec 6951 if _newclass: file = property(GetFileSpec, None, doc='''A read only property that returns an lldb object that represents the file (lldb.SBFileSpec) for this object file for this module as it is represented where it is being debugged.''') 6952 6953 __swig_getmethods__["platform_file"] = GetPlatformFileSpec 6954 if _newclass: platform_file = property(GetPlatformFileSpec, None, doc='''A read only property that returns an lldb object that represents the file (lldb.SBFileSpec) for this object file for this module as it is represented on the current host system.''') 6955 6956 __swig_getmethods__["byte_order"] = GetByteOrder 6957 if _newclass: byte_order = property(GetByteOrder, None, doc='''A read only property that returns an lldb enumeration value (lldb.eByteOrderLittle, lldb.eByteOrderBig, lldb.eByteOrderInvalid) that represents the byte order for this module.''') 6958 6959 __swig_getmethods__["addr_size"] = GetAddressByteSize 6960 if _newclass: addr_size = property(GetAddressByteSize, None, doc='''A read only property that returns the size in bytes of an address for this module.''') 6961 6962 __swig_getmethods__["triple"] = GetTriple 6963 if _newclass: triple = property(GetTriple, None, doc='''A read only property that returns the target triple (arch-vendor-os) for this module.''') 6964 6965 __swig_getmethods__["num_symbols"] = GetNumSymbols 6966 if _newclass: num_symbols = property(GetNumSymbols, None, doc='''A read only property that returns number of symbols in the module symbol table as an integer.''') 6967 6968 __swig_getmethods__["num_sections"] = GetNumSections 6969 if _newclass: num_sections = property(GetNumSections, None, doc='''A read only property that returns number of sections in the module as an integer.''') 6970 6971
6972 - def __str__(self):
6973 """__str__(SBModule self) -> PyObject *""" 6974 return _lldb.SBModule___str__(self)
6975
6976 - def __eq__(self, rhs):
6977 if not isinstance(rhs, type(self)): 6978 return False 6979 6980 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
6981
6982 - def __ne__(self, rhs):
6983 if not isinstance(rhs, type(self)): 6984 return True 6985 6986 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
6987 6988 SBModule_swigregister = _lldb.SBModule_swigregister 6989 SBModule_swigregister(SBModule)
6990 6991 -class SBModuleSpec(_object):
6992 """Proxy of C++ lldb::SBModuleSpec class""" 6993 __swig_setmethods__ = {} 6994 __setattr__ = lambda self, name, value: _swig_setattr(self, SBModuleSpec, name, value) 6995 __swig_getmethods__ = {} 6996 __getattr__ = lambda self, name: _swig_getattr(self, SBModuleSpec, name) 6997 __repr__ = _swig_repr
6998 - def __init__(self, *args):
6999 """ 7000 __init__(lldb::SBModuleSpec self) -> SBModuleSpec 7001 __init__(lldb::SBModuleSpec self, SBModuleSpec rhs) -> SBModuleSpec 7002 """ 7003 this = _lldb.new_SBModuleSpec(*args) 7004 try: self.this.append(this) 7005 except: self.this = this
7006 __swig_destroy__ = _lldb.delete_SBModuleSpec 7007 __del__ = lambda self : None;
7008 - def IsValid(self):
7009 """IsValid(SBModuleSpec self) -> bool""" 7010 return _lldb.SBModuleSpec_IsValid(self)
7011
7012 - def __nonzero__(self):
7013 return _lldb.SBModuleSpec___nonzero__(self)
7014 __bool__ = __nonzero__ 7015 7016
7017 - def Clear(self):
7018 """Clear(SBModuleSpec self)""" 7019 return _lldb.SBModuleSpec_Clear(self)
7020
7021 - def GetFileSpec(self):
7022 """ 7023 GetFileSpec(SBModuleSpec self) -> SBFileSpec 7024 7025 Get const accessor for the module file. 7026 7027 This function returns the file for the module on the host system 7028 that is running LLDB. This can differ from the path on the 7029 platform since we might be doing remote debugging. 7030 7031 @return 7032 A const reference to the file specification object. 7033 """ 7034 return _lldb.SBModuleSpec_GetFileSpec(self)
7035
7036 - def SetFileSpec(self, *args):
7037 """SetFileSpec(SBModuleSpec self, SBFileSpec fspec)""" 7038 return _lldb.SBModuleSpec_SetFileSpec(self, *args)
7039
7040 - def GetPlatformFileSpec(self):
7041 """ 7042 GetPlatformFileSpec(SBModuleSpec self) -> SBFileSpec 7043 7044 Get accessor for the module platform file. 7045 7046 Platform file refers to the path of the module as it is known on 7047 the remote system on which it is being debugged. For local 7048 debugging this is always the same as Module::GetFileSpec(). But 7049 remote debugging might mention a file '/usr/lib/liba.dylib' 7050 which might be locally downloaded and cached. In this case the 7051 platform file could be something like: 7052 '/tmp/lldb/platform-cache/remote.host.computer/usr/lib/liba.dylib' 7053 The file could also be cached in a local developer kit directory. 7054 7055 @return 7056 A const reference to the file specification object. 7057 """ 7058 return _lldb.SBModuleSpec_GetPlatformFileSpec(self)
7059
7060 - def SetPlatformFileSpec(self, *args):
7061 """SetPlatformFileSpec(SBModuleSpec self, SBFileSpec fspec)""" 7062 return _lldb.SBModuleSpec_SetPlatformFileSpec(self, *args)
7063
7064 - def GetSymbolFileSpec(self):
7065 """GetSymbolFileSpec(SBModuleSpec self) -> SBFileSpec""" 7066 return _lldb.SBModuleSpec_GetSymbolFileSpec(self)
7067
7068 - def SetSymbolFileSpec(self, *args):
7069 """SetSymbolFileSpec(SBModuleSpec self, SBFileSpec fspec)""" 7070 return _lldb.SBModuleSpec_SetSymbolFileSpec(self, *args)
7071
7072 - def GetObjectName(self):
7073 """GetObjectName(SBModuleSpec self) -> char const *""" 7074 return _lldb.SBModuleSpec_GetObjectName(self)
7075
7076 - def SetObjectName(self, *args):
7077 """SetObjectName(SBModuleSpec self, char const * name)""" 7078 return _lldb.SBModuleSpec_SetObjectName(self, *args)
7079
7080 - def GetTriple(self):
7081 """GetTriple(SBModuleSpec self) -> char const *""" 7082 return _lldb.SBModuleSpec_GetTriple(self)
7083
7084 - def SetTriple(self, *args):
7085 """SetTriple(SBModuleSpec self, char const * triple)""" 7086 return _lldb.SBModuleSpec_SetTriple(self, *args)
7087
7088 - def GetUUIDBytes(self):
7089 """GetUUIDBytes(SBModuleSpec self) -> uint8_t const *""" 7090 return _lldb.SBModuleSpec_GetUUIDBytes(self)
7091
7092 - def GetUUIDLength(self):
7093 """GetUUIDLength(SBModuleSpec self) -> size_t""" 7094 return _lldb.SBModuleSpec_GetUUIDLength(self)
7095
7096 - def SetUUIDBytes(self, *args):
7097 """SetUUIDBytes(SBModuleSpec self, uint8_t const * uuid, size_t uuid_len) -> bool""" 7098 return _lldb.SBModuleSpec_SetUUIDBytes(self, *args)
7099
7100 - def GetDescription(self, *args):
7101 """GetDescription(SBModuleSpec self, SBStream description) -> bool""" 7102 return _lldb.SBModuleSpec_GetDescription(self, *args)
7103
7104 - def __str__(self):
7105 """__str__(SBModuleSpec self) -> PyObject *""" 7106 return _lldb.SBModuleSpec___str__(self)
7107 7108 SBModuleSpec_swigregister = _lldb.SBModuleSpec_swigregister 7109 SBModuleSpec_swigregister(SBModuleSpec)
7110 7111 -class SBModuleSpecList(_object):
7112 """Proxy of C++ lldb::SBModuleSpecList class""" 7113 __swig_setmethods__ = {} 7114 __setattr__ = lambda self, name, value: _swig_setattr(self, SBModuleSpecList, name, value) 7115 __swig_getmethods__ = {} 7116 __getattr__ = lambda self, name: _swig_getattr(self, SBModuleSpecList, name) 7117 __repr__ = _swig_repr
7118 - def __init__(self, *args):
7119 """ 7120 __init__(lldb::SBModuleSpecList self) -> SBModuleSpecList 7121 __init__(lldb::SBModuleSpecList self, SBModuleSpecList rhs) -> SBModuleSpecList 7122 """ 7123 this = _lldb.new_SBModuleSpecList(*args) 7124 try: self.this.append(this) 7125 except: self.this = this
7126 __swig_destroy__ = _lldb.delete_SBModuleSpecList 7127 __del__ = lambda self : None;
7128 - def GetModuleSpecifications(*args):
7129 """GetModuleSpecifications(char const * path) -> SBModuleSpecList""" 7130 return _lldb.SBModuleSpecList_GetModuleSpecifications(*args)
7131 7132 if _newclass:GetModuleSpecifications = staticmethod(GetModuleSpecifications) 7133 __swig_getmethods__["GetModuleSpecifications"] = lambda x: GetModuleSpecifications
7134 - def Append(self, *args):
7135 """ 7136 Append(SBModuleSpecList self, SBModuleSpec spec) 7137 Append(SBModuleSpecList self, SBModuleSpecList spec_list) 7138 """ 7139 return _lldb.SBModuleSpecList_Append(self, *args)
7140
7141 - def FindFirstMatchingSpec(self, *args):
7142 """FindFirstMatchingSpec(SBModuleSpecList self, SBModuleSpec match_spec) -> SBModuleSpec""" 7143 return _lldb.SBModuleSpecList_FindFirstMatchingSpec(self, *args)
7144
7145 - def FindMatchingSpecs(self, *args):
7146 """FindMatchingSpecs(SBModuleSpecList self, SBModuleSpec match_spec) -> SBModuleSpecList""" 7147 return _lldb.SBModuleSpecList_FindMatchingSpecs(self, *args)
7148
7149 - def GetSize(self):
7150 """GetSize(SBModuleSpecList self) -> size_t""" 7151 return _lldb.SBModuleSpecList_GetSize(self)
7152
7153 - def GetSpecAtIndex(self, *args):
7154 """GetSpecAtIndex(SBModuleSpecList self, size_t i) -> SBModuleSpec""" 7155 return _lldb.SBModuleSpecList_GetSpecAtIndex(self, *args)
7156
7157 - def GetDescription(self, *args):
7158 """GetDescription(SBModuleSpecList self, SBStream description) -> bool""" 7159 return _lldb.SBModuleSpecList_GetDescription(self, *args)
7160
7161 - def __str__(self):
7162 """__str__(SBModuleSpecList self) -> PyObject *""" 7163 return _lldb.SBModuleSpecList___str__(self)
7164 7165 SBModuleSpecList_swigregister = _lldb.SBModuleSpecList_swigregister 7166 SBModuleSpecList_swigregister(SBModuleSpecList)
7167 7168 -def SBModuleSpecList_GetModuleSpecifications(*args):
7169 """SBModuleSpecList_GetModuleSpecifications(char const * path) -> SBModuleSpecList""" 7170 return _lldb.SBModuleSpecList_GetModuleSpecifications(*args)
7171
7172 -class SBPlatformConnectOptions(_object):
7173 """Proxy of C++ lldb::SBPlatformConnectOptions class""" 7174 __swig_setmethods__ = {} 7175 __setattr__ = lambda self, name, value: _swig_setattr(self, SBPlatformConnectOptions, name, value) 7176 __swig_getmethods__ = {} 7177 __getattr__ = lambda self, name: _swig_getattr(self, SBPlatformConnectOptions, name) 7178 __repr__ = _swig_repr
7179 - def __init__(self, *args):
7180 """ 7181 __init__(lldb::SBPlatformConnectOptions self, char const * url) -> SBPlatformConnectOptions 7182 __init__(lldb::SBPlatformConnectOptions self, SBPlatformConnectOptions rhs) -> SBPlatformConnectOptions 7183 """ 7184 this = _lldb.new_SBPlatformConnectOptions(*args) 7185 try: self.this.append(this) 7186 except: self.this = this
7187 __swig_destroy__ = _lldb.delete_SBPlatformConnectOptions 7188 __del__ = lambda self : None;
7189 - def GetURL(self):
7190 """GetURL(SBPlatformConnectOptions self) -> char const *""" 7191 return _lldb.SBPlatformConnectOptions_GetURL(self)
7192
7193 - def SetURL(self, *args):
7194 """SetURL(SBPlatformConnectOptions self, char const * url)""" 7195 return _lldb.SBPlatformConnectOptions_SetURL(self, *args)
7196
7197 - def GetRsyncEnabled(self):
7198 """GetRsyncEnabled(SBPlatformConnectOptions self) -> bool""" 7199 return _lldb.SBPlatformConnectOptions_GetRsyncEnabled(self)
7200
7201 - def EnableRsync(self, *args):
7202 """EnableRsync(SBPlatformConnectOptions self, char const * options, char const * remote_path_prefix, bool omit_remote_hostname)""" 7203 return _lldb.SBPlatformConnectOptions_EnableRsync(self, *args)
7204
7205 - def DisableRsync(self):
7206 """DisableRsync(SBPlatformConnectOptions self)""" 7207 return _lldb.SBPlatformConnectOptions_DisableRsync(self)
7208
7209 - def GetLocalCacheDirectory(self):
7210 """GetLocalCacheDirectory(SBPlatformConnectOptions self) -> char const *""" 7211 return _lldb.SBPlatformConnectOptions_GetLocalCacheDirectory(self)
7212
7213 - def SetLocalCacheDirectory(self, *args):
7214 """SetLocalCacheDirectory(SBPlatformConnectOptions self, char const * path)""" 7215 return _lldb.SBPlatformConnectOptions_SetLocalCacheDirectory(self, *args)
7216 7217 SBPlatformConnectOptions_swigregister = _lldb.SBPlatformConnectOptions_swigregister 7218 SBPlatformConnectOptions_swigregister(SBPlatformConnectOptions)
7219 7220 -class SBPlatformShellCommand(_object):
7221 """Proxy of C++ lldb::SBPlatformShellCommand class""" 7222 __swig_setmethods__ = {} 7223 __setattr__ = lambda self, name, value: _swig_setattr(self, SBPlatformShellCommand, name, value) 7224 __swig_getmethods__ = {} 7225 __getattr__ = lambda self, name: _swig_getattr(self, SBPlatformShellCommand, name) 7226 __repr__ = _swig_repr
7227 - def __init__(self, *args):
7228 """ 7229 __init__(lldb::SBPlatformShellCommand self, char const * shell_command) -> SBPlatformShellCommand 7230 __init__(lldb::SBPlatformShellCommand self, SBPlatformShellCommand rhs) -> SBPlatformShellCommand 7231 """ 7232 this = _lldb.new_SBPlatformShellCommand(*args) 7233 try: self.this.append(this) 7234 except: self.this = this
7235 __swig_destroy__ = _lldb.delete_SBPlatformShellCommand 7236 __del__ = lambda self : None;
7237 - def Clear(self):
7238 """Clear(SBPlatformShellCommand self)""" 7239 return _lldb.SBPlatformShellCommand_Clear(self)
7240
7241 - def GetCommand(self):
7242 """GetCommand(SBPlatformShellCommand self) -> char const *""" 7243 return _lldb.SBPlatformShellCommand_GetCommand(self)
7244
7245 - def SetCommand(self, *args):
7246 """SetCommand(SBPlatformShellCommand self, char const * shell_command)""" 7247 return _lldb.SBPlatformShellCommand_SetCommand(self, *args)
7248
7249 - def GetWorkingDirectory(self):
7250 """GetWorkingDirectory(SBPlatformShellCommand self) -> char const *""" 7251 return _lldb.SBPlatformShellCommand_GetWorkingDirectory(self)
7252
7253 - def SetWorkingDirectory(self, *args):
7254 """SetWorkingDirectory(SBPlatformShellCommand self, char const * path)""" 7255 return _lldb.SBPlatformShellCommand_SetWorkingDirectory(self, *args)
7256
7257 - def GetTimeoutSeconds(self):
7258 """GetTimeoutSeconds(SBPlatformShellCommand self) -> uint32_t""" 7259 return _lldb.SBPlatformShellCommand_GetTimeoutSeconds(self)
7260
7261 - def SetTimeoutSeconds(self, *args):
7262 """SetTimeoutSeconds(SBPlatformShellCommand self, uint32_t sec)""" 7263 return _lldb.SBPlatformShellCommand_SetTimeoutSeconds(self, *args)
7264
7265 - def GetSignal(self):
7266 """GetSignal(SBPlatformShellCommand self) -> int""" 7267 return _lldb.SBPlatformShellCommand_GetSignal(self)
7268
7269 - def GetStatus(self):
7270 """GetStatus(SBPlatformShellCommand self) -> int""" 7271 return _lldb.SBPlatformShellCommand_GetStatus(self)
7272
7273 - def GetOutput(self):
7274 """GetOutput(SBPlatformShellCommand self) -> char const *""" 7275 return _lldb.SBPlatformShellCommand_GetOutput(self)
7276 7277 SBPlatformShellCommand_swigregister = _lldb.SBPlatformShellCommand_swigregister 7278 SBPlatformShellCommand_swigregister(SBPlatformShellCommand)
7279 7280 -class SBPlatform(_object):
7281 """ 7282 A class that represents a platform that can represent the current host or a remote host debug platform. 7283 7284 The SBPlatform class represents the current host, or a remote host. 7285 It can be connected to a remote platform in order to provide ways 7286 to remotely launch and attach to processes, upload/download files, 7287 create directories, run remote shell commands, find locally cached 7288 versions of files from the remote system, and much more. 7289 7290 SBPlatform objects can be created and then used to connect to a remote 7291 platform which allows the SBPlatform to be used to get a list of the 7292 current processes on the remote host, attach to one of those processes, 7293 install programs on the remote system, attach and launch processes, 7294 and much more. 7295 7296 Every SBTarget has a corresponding SBPlatform. The platform can be 7297 specified upon target creation, or the currently selected platform 7298 will attempt to be used when creating the target automatically as long 7299 as the currently selected platform matches the target architecture 7300 and executable type. If the architecture or executable type do not match, 7301 a suitable platform will be found automatically. 7302 """ 7303 __swig_setmethods__ = {} 7304 __setattr__ = lambda self, name, value: _swig_setattr(self, SBPlatform, name, value) 7305 __swig_getmethods__ = {} 7306 __getattr__ = lambda self, name: _swig_getattr(self, SBPlatform, name) 7307 __repr__ = _swig_repr
7308 - def __init__(self, *args):
7309 """ 7310 __init__(lldb::SBPlatform self) -> SBPlatform 7311 __init__(lldb::SBPlatform self, char const * arg2) -> SBPlatform 7312 """ 7313 this = _lldb.new_SBPlatform(*args) 7314 try: self.this.append(this) 7315 except: self.this = this
7316 __swig_destroy__ = _lldb.delete_SBPlatform 7317 __del__ = lambda self : None;
7318 - def IsValid(self):
7319 """IsValid(SBPlatform self) -> bool""" 7320 return _lldb.SBPlatform_IsValid(self)
7321
7322 - def __nonzero__(self):
7323 return _lldb.SBPlatform___nonzero__(self)
7324 __bool__ = __nonzero__ 7325 7326
7327 - def Clear(self):
7328 """Clear(SBPlatform self)""" 7329 return _lldb.SBPlatform_Clear(self)
7330
7331 - def GetWorkingDirectory(self):
7332 """GetWorkingDirectory(SBPlatform self) -> char const *""" 7333 return _lldb.SBPlatform_GetWorkingDirectory(self)
7334
7335 - def SetWorkingDirectory(self, *args):
7336 """SetWorkingDirectory(SBPlatform self, char const * arg2) -> bool""" 7337 return _lldb.SBPlatform_SetWorkingDirectory(self, *args)
7338
7339 - def GetName(self):
7340 """GetName(SBPlatform self) -> char const *""" 7341 return _lldb.SBPlatform_GetName(self)
7342
7343 - def ConnectRemote(self, *args):
7344 """ConnectRemote(SBPlatform self, SBPlatformConnectOptions connect_options) -> SBError""" 7345 return _lldb.SBPlatform_ConnectRemote(self, *args)
7346
7347 - def DisconnectRemote(self):
7348 """DisconnectRemote(SBPlatform self)""" 7349 return _lldb.SBPlatform_DisconnectRemote(self)
7350
7351 - def IsConnected(self):
7352 """IsConnected(SBPlatform self) -> bool""" 7353 return _lldb.SBPlatform_IsConnected(self)
7354
7355 - def GetTriple(self):
7356 """GetTriple(SBPlatform self) -> char const *""" 7357 return _lldb.SBPlatform_GetTriple(self)
7358
7359 - def GetHostname(self):
7360 """GetHostname(SBPlatform self) -> char const *""" 7361 return _lldb.SBPlatform_GetHostname(self)
7362
7363 - def GetOSBuild(self):
7364 """GetOSBuild(SBPlatform self) -> char const *""" 7365 return _lldb.SBPlatform_GetOSBuild(self)
7366
7367 - def GetOSDescription(self):
7368 """GetOSDescription(SBPlatform self) -> char const *""" 7369 return _lldb.SBPlatform_GetOSDescription(self)
7370
7371 - def GetOSMajorVersion(self):
7372 """GetOSMajorVersion(SBPlatform self) -> uint32_t""" 7373 return _lldb.SBPlatform_GetOSMajorVersion(self)
7374
7375 - def GetOSMinorVersion(self):
7376 """GetOSMinorVersion(SBPlatform self) -> uint32_t""" 7377 return _lldb.SBPlatform_GetOSMinorVersion(self)
7378
7379 - def GetOSUpdateVersion(self):
7380 """GetOSUpdateVersion(SBPlatform self) -> uint32_t""" 7381 return _lldb.SBPlatform_GetOSUpdateVersion(self)
7382
7383 - def Get(self, *args):
7384 """Get(SBPlatform self, SBFileSpec src, SBFileSpec dst) -> SBError""" 7385 return _lldb.SBPlatform_Get(self, *args)
7386
7387 - def Put(self, *args):
7388 """Put(SBPlatform self, SBFileSpec src, SBFileSpec dst) -> SBError""" 7389 return _lldb.SBPlatform_Put(self, *args)
7390
7391 - def Install(self, *args):
7392 """Install(SBPlatform self, SBFileSpec src, SBFileSpec dst) -> SBError""" 7393 return _lldb.SBPlatform_Install(self, *args)
7394
7395 - def Run(self, *args):
7396 """Run(SBPlatform self, SBPlatformShellCommand shell_command) -> SBError""" 7397 return _lldb.SBPlatform_Run(self, *args)
7398
7399 - def Launch(self, *args):
7400 """Launch(SBPlatform self, SBLaunchInfo launch_info) -> SBError""" 7401 return _lldb.SBPlatform_Launch(self, *args)
7402
7403 - def Kill(self, *args):
7404 """Kill(SBPlatform self, lldb::pid_t const pid) -> SBError""" 7405 return _lldb.SBPlatform_Kill(self, *args)
7406
7407 - def MakeDirectory(self, *args):
7408 """ 7409 MakeDirectory(SBPlatform self, char const * path, uint32_t file_permissions=eFilePermissionsDirectoryDefault) -> SBError 7410 MakeDirectory(SBPlatform self, char const * path) -> SBError 7411 """ 7412 return _lldb.SBPlatform_MakeDirectory(self, *args)
7413
7414 - def GetFilePermissions(self, *args):
7415 """GetFilePermissions(SBPlatform self, char const * path) -> uint32_t""" 7416 return _lldb.SBPlatform_GetFilePermissions(self, *args)
7417
7418 - def SetFilePermissions(self, *args):
7419 """SetFilePermissions(SBPlatform self, char const * path, uint32_t file_permissions) -> SBError""" 7420 return _lldb.SBPlatform_SetFilePermissions(self, *args)
7421
7422 - def GetUnixSignals(self):
7423 """GetUnixSignals(SBPlatform self) -> SBUnixSignals""" 7424 return _lldb.SBPlatform_GetUnixSignals(self)
7425 7426 SBPlatform_swigregister = _lldb.SBPlatform_swigregister 7427 SBPlatform_swigregister(SBPlatform)
7428 7429 -class SBProcess(_object):
7430 """ 7431 Represents the process associated with the target program. 7432 7433 SBProcess supports thread iteration. For example (from test/lldbutil.py), 7434 7435 # ================================================== 7436 # Utility functions related to Threads and Processes 7437 # ================================================== 7438 7439 def get_stopped_threads(process, reason): 7440 '''Returns the thread(s) with the specified stop reason in a list. 7441 7442 The list can be empty if no such thread exists. 7443 ''' 7444 threads = [] 7445 for t in process: 7446 if t.GetStopReason() == reason: 7447 threads.append(t) 7448 return threads 7449 7450 ... 7451 7452 """ 7453 __swig_setmethods__ = {} 7454 __setattr__ = lambda self, name, value: _swig_setattr(self, SBProcess, name, value) 7455 __swig_getmethods__ = {} 7456 __getattr__ = lambda self, name: _swig_getattr(self, SBProcess, name) 7457 __repr__ = _swig_repr 7458 eBroadcastBitStateChanged = _lldb.SBProcess_eBroadcastBitStateChanged 7459 eBroadcastBitInterrupt = _lldb.SBProcess_eBroadcastBitInterrupt 7460 eBroadcastBitSTDOUT = _lldb.SBProcess_eBroadcastBitSTDOUT 7461 eBroadcastBitSTDERR = _lldb.SBProcess_eBroadcastBitSTDERR 7462 eBroadcastBitProfileData = _lldb.SBProcess_eBroadcastBitProfileData 7463 eBroadcastBitStructuredData = _lldb.SBProcess_eBroadcastBitStructuredData
7464 - def __init__(self, *args):
7465 """ 7466 __init__(lldb::SBProcess self) -> SBProcess 7467 __init__(lldb::SBProcess self, SBProcess rhs) -> SBProcess 7468 """ 7469 this = _lldb.new_SBProcess(*args) 7470 try: self.this.append(this) 7471 except: self.this = this
7472 __swig_destroy__ = _lldb.delete_SBProcess 7473 __del__ = lambda self : None;
7474 - def GetBroadcasterClassName():
7475 """GetBroadcasterClassName() -> char const *""" 7476 return _lldb.SBProcess_GetBroadcasterClassName()
7477 7478 if _newclass:GetBroadcasterClassName = staticmethod(GetBroadcasterClassName) 7479 __swig_getmethods__["GetBroadcasterClassName"] = lambda x: GetBroadcasterClassName
7480 - def GetPluginName(self):
7481 """GetPluginName(SBProcess self) -> char const *""" 7482 return _lldb.SBProcess_GetPluginName(self)
7483
7484 - def GetShortPluginName(self):
7485 """GetShortPluginName(SBProcess self) -> char const *""" 7486 return _lldb.SBProcess_GetShortPluginName(self)
7487
7488 - def Clear(self):
7489 """Clear(SBProcess self)""" 7490 return _lldb.SBProcess_Clear(self)
7491
7492 - def IsValid(self):
7493 """IsValid(SBProcess self) -> bool""" 7494 return _lldb.SBProcess_IsValid(self)
7495
7496 - def __nonzero__(self):
7497 return _lldb.SBProcess___nonzero__(self)
7498 __bool__ = __nonzero__ 7499 7500
7501 - def GetTarget(self):
7502 """GetTarget(SBProcess self) -> SBTarget""" 7503 return _lldb.SBProcess_GetTarget(self)
7504
7505 - def GetByteOrder(self):
7506 """GetByteOrder(SBProcess self) -> lldb::ByteOrder""" 7507 return _lldb.SBProcess_GetByteOrder(self)
7508
7509 - def PutSTDIN(self, *args):
7510 """ 7511 Writes data into the current process's stdin. API client specifies a Python 7512 string as the only argument. 7513 """ 7514 return _lldb.SBProcess_PutSTDIN(self, *args)
7515
7516 - def GetSTDOUT(self, *args):
7517 """ 7518 Reads data from the current process's stdout stream. API client specifies 7519 the size of the buffer to read data into. It returns the byte buffer in a 7520 Python string. 7521 """ 7522 return _lldb.SBProcess_GetSTDOUT(self, *args)
7523
7524 - def GetSTDERR(self, *args):
7525 """ 7526 Reads data from the current process's stderr stream. API client specifies 7527 the size of the buffer to read data into. It returns the byte buffer in a 7528 Python string. 7529 """ 7530 return _lldb.SBProcess_GetSTDERR(self, *args)
7531
7532 - def GetAsyncProfileData(self, *args):
7533 """GetAsyncProfileData(SBProcess self, char * dst) -> size_t""" 7534 return _lldb.SBProcess_GetAsyncProfileData(self, *args)
7535
7536 - def ReportEventState(self, *args):
7537 """ReportEventState(SBProcess self, SBEvent event, FILE * out)""" 7538 return _lldb.SBProcess_ReportEventState(self, *args)
7539
7540 - def AppendEventStateReport(self, *args):
7541 """AppendEventStateReport(SBProcess self, SBEvent event, SBCommandReturnObject result)""" 7542 return _lldb.SBProcess_AppendEventStateReport(self, *args)
7543
7544 - def RemoteAttachToProcessWithID(self, *args):
7545 """ 7546 RemoteAttachToProcessWithID(SBProcess self, lldb::pid_t pid, SBError error) -> bool 7547 7548 Remote connection related functions. These will fail if the 7549 process is not in eStateConnected. They are intended for use 7550 when connecting to an externally managed debugserver instance. 7551 """ 7552 return _lldb.SBProcess_RemoteAttachToProcessWithID(self, *args)
7553
7554 - def RemoteLaunch(self, *args):
7555 """ 7556 RemoteLaunch(SBProcess self, char const ** argv, char const ** envp, char const * stdin_path, char const * stdout_path, 7557 char const * stderr_path, char const * working_directory, uint32_t launch_flags, 7558 bool stop_at_entry, SBError error) -> bool 7559 7560 See SBTarget.Launch for argument description and usage. 7561 """ 7562 return _lldb.SBProcess_RemoteLaunch(self, *args)
7563
7564 - def GetNumThreads(self):
7565 """GetNumThreads(SBProcess self) -> uint32_t""" 7566 return _lldb.SBProcess_GetNumThreads(self)
7567
7568 - def GetThreadAtIndex(self, *args):
7569 """ 7570 Returns the INDEX'th thread from the list of current threads. The index 7571 of a thread is only valid for the current stop. For a persistent thread 7572 identifier use either the thread ID or the IndexID. See help on SBThread 7573 for more details. 7574 """ 7575 return _lldb.SBProcess_GetThreadAtIndex(self, *args)
7576
7577 - def GetThreadByID(self, *args):
7578 """ 7579 Returns the thread with the given thread ID. 7580 """ 7581 return _lldb.SBProcess_GetThreadByID(self, *args)
7582
7583 - def GetThreadByIndexID(self, *args):
7584 """ 7585 Returns the thread with the given thread IndexID. 7586 """ 7587 return _lldb.SBProcess_GetThreadByIndexID(self, *args)
7588
7589 - def GetSelectedThread(self):
7590 """ 7591 Returns the currently selected thread. 7592 """ 7593 return _lldb.SBProcess_GetSelectedThread(self)
7594
7595 - def CreateOSPluginThread(self, *args):
7596 """ 7597 Lazily create a thread on demand through the current OperatingSystem plug-in, if the current OperatingSystem plug-in supports it. 7598 """ 7599 return _lldb.SBProcess_CreateOSPluginThread(self, *args)
7600
7601 - def SetSelectedThread(self, *args):
7602 """SetSelectedThread(SBProcess self, SBThread thread) -> bool""" 7603 return _lldb.SBProcess_SetSelectedThread(self, *args)
7604
7605 - def SetSelectedThreadByID(self, *args):
7606 """SetSelectedThreadByID(SBProcess self, lldb::tid_t tid) -> bool""" 7607 return _lldb.SBProcess_SetSelectedThreadByID(self, *args)
7608
7609 - def SetSelectedThreadByIndexID(self, *args):
7610 """SetSelectedThreadByIndexID(SBProcess self, uint32_t index_id) -> bool""" 7611 return _lldb.SBProcess_SetSelectedThreadByIndexID(self, *args)
7612
7613 - def GetNumQueues(self):
7614 """GetNumQueues(SBProcess self) -> uint32_t""" 7615 return _lldb.SBProcess_GetNumQueues(self)
7616
7617 - def GetQueueAtIndex(self, *args):
7618 """GetQueueAtIndex(SBProcess self, uint32_t index) -> SBQueue""" 7619 return _lldb.SBProcess_GetQueueAtIndex(self, *args)
7620
7621 - def GetState(self):
7622 """GetState(SBProcess self) -> lldb::StateType""" 7623 return _lldb.SBProcess_GetState(self)
7624
7625 - def GetExitStatus(self):
7626 """GetExitStatus(SBProcess self) -> int""" 7627 return _lldb.SBProcess_GetExitStatus(self)
7628
7629 - def GetExitDescription(self):
7630 """GetExitDescription(SBProcess self) -> char const *""" 7631 return _lldb.SBProcess_GetExitDescription(self)
7632
7633 - def GetProcessID(self):
7634 """ 7635 Returns the process ID of the process. 7636 """ 7637 return _lldb.SBProcess_GetProcessID(self)
7638
7639 - def GetUniqueID(self):
7640 """ 7641 Returns an integer ID that is guaranteed to be unique across all process instances. This is not the process ID, just a unique integer for comparison and caching purposes. 7642 """ 7643 return _lldb.SBProcess_GetUniqueID(self)
7644
7645 - def GetAddressByteSize(self):
7646 """GetAddressByteSize(SBProcess self) -> uint32_t""" 7647 return _lldb.SBProcess_GetAddressByteSize(self)
7648
7649 - def Destroy(self):
7650 """ 7651 Destroy(SBProcess self) -> SBError 7652 7653 Kills the process and shuts down all threads that were spawned to 7654 track and monitor process. 7655 """ 7656 return _lldb.SBProcess_Destroy(self)
7657
7658 - def Continue(self):
7659 """Continue(SBProcess self) -> SBError""" 7660 return _lldb.SBProcess_Continue(self)
7661
7662 - def Stop(self):
7663 """Stop(SBProcess self) -> SBError""" 7664 return _lldb.SBProcess_Stop(self)
7665
7666 - def Kill(self):
7667 """Kill(SBProcess self) -> SBError""" 7668 return _lldb.SBProcess_Kill(self)
7669
7670 - def Detach(self):
7671 """Detach(SBProcess self) -> SBError""" 7672 return _lldb.SBProcess_Detach(self)
7673
7674 - def Signal(self, *args):
7675 """ 7676 Signal(SBProcess self, int signal) -> SBError 7677 7678 Sends the process a unix signal. 7679 """ 7680 return _lldb.SBProcess_Signal(self, *args)
7681
7682 - def GetUnixSignals(self):
7683 """GetUnixSignals(SBProcess self) -> SBUnixSignals""" 7684 return _lldb.SBProcess_GetUnixSignals(self)
7685
7686 - def GetStopID(self, include_expression_stops=False):
7687 """ 7688 GetStopID(SBProcess self, bool include_expression_stops=False) -> uint32_t 7689 GetStopID(SBProcess self) -> uint32_t 7690 7691 Returns a stop id that will increase every time the process executes. If 7692 include_expression_stops is true, then stops caused by expression evaluation 7693 will cause the returned value to increase, otherwise the counter returned will 7694 only increase when execution is continued explicitly by the user. Note, the value 7695 will always increase, but may increase by more than one per stop. 7696 """ 7697 return _lldb.SBProcess_GetStopID(self, include_expression_stops)
7698
7699 - def SendAsyncInterrupt(self):
7700 """SendAsyncInterrupt(SBProcess self)""" 7701 return _lldb.SBProcess_SendAsyncInterrupt(self)
7702
7703 - def ReadMemory(self, *args):
7704 """ 7705 Reads memory from the current process's address space and removes any 7706 traps that may have been inserted into the memory. It returns the byte 7707 buffer in a Python string. Example: 7708 7709 # Read 4 bytes from address 'addr' and assume error.Success() is True. 7710 content = process.ReadMemory(addr, 4, error) 7711 new_bytes = bytearray(content) 7712 """ 7713 return _lldb.SBProcess_ReadMemory(self, *args)
7714
7715 - def WriteMemory(self, *args):
7716 """ 7717 Writes memory to the current process's address space and maintains any 7718 traps that might be present due to software breakpoints. Example: 7719 7720 # Create a Python string from the byte array. 7721 new_value = str(bytes) 7722 result = process.WriteMemory(addr, new_value, error) 7723 if not error.Success() or result != len(bytes): 7724 print('SBProcess.WriteMemory() failed!') 7725 """ 7726 return _lldb.SBProcess_WriteMemory(self, *args)
7727
7728 - def ReadCStringFromMemory(self, *args):
7729 """ 7730 Reads a NULL terminated C string from the current process's address space. 7731 It returns a python string of the exact length, or truncates the string if 7732 the maximum character limit is reached. Example: 7733 7734 # Read a C string of at most 256 bytes from address '0x1000' 7735 error = lldb.SBError() 7736 cstring = process.ReadCStringFromMemory(0x1000, 256, error) 7737 if error.Success(): 7738 print('cstring: ', cstring) 7739 else 7740 print('error: ', error) 7741 """ 7742 return _lldb.SBProcess_ReadCStringFromMemory(self, *args)
7743
7744 - def ReadUnsignedFromMemory(self, *args):
7745 """ 7746 Reads an unsigned integer from memory given a byte size and an address. 7747 Returns the unsigned integer that was read. Example: 7748 7749 # Read a 4 byte unsigned integer from address 0x1000 7750 error = lldb.SBError() 7751 uint = ReadUnsignedFromMemory(0x1000, 4, error) 7752 if error.Success(): 7753 print('integer: %u' % uint) 7754 else 7755 print('error: ', error) 7756 """ 7757 return _lldb.SBProcess_ReadUnsignedFromMemory(self, *args)
7758
7759 - def ReadPointerFromMemory(self, *args):
7760 """ 7761 Reads a pointer from memory from an address and returns the value. Example: 7762 7763 # Read a pointer from address 0x1000 7764 error = lldb.SBError() 7765 ptr = ReadPointerFromMemory(0x1000, error) 7766 if error.Success(): 7767 print('pointer: 0x%x' % ptr) 7768 else 7769 print('error: ', error) 7770 """ 7771 return _lldb.SBProcess_ReadPointerFromMemory(self, *args)
7772
7773 - def GetStateFromEvent(*args):
7774 """GetStateFromEvent(SBEvent event) -> lldb::StateType""" 7775 return _lldb.SBProcess_GetStateFromEvent(*args)
7776 7777 if _newclass:GetStateFromEvent = staticmethod(GetStateFromEvent) 7778 __swig_getmethods__["GetStateFromEvent"] = lambda x: GetStateFromEvent
7779 - def GetRestartedFromEvent(*args):
7780 """GetRestartedFromEvent(SBEvent event) -> bool""" 7781 return _lldb.SBProcess_GetRestartedFromEvent(*args)
7782 7783 if _newclass:GetRestartedFromEvent = staticmethod(GetRestartedFromEvent) 7784 __swig_getmethods__["GetRestartedFromEvent"] = lambda x: GetRestartedFromEvent
7785 - def GetNumRestartedReasonsFromEvent(*args):
7786 """GetNumRestartedReasonsFromEvent(SBEvent event) -> size_t""" 7787 return _lldb.SBProcess_GetNumRestartedReasonsFromEvent(*args)
7788 7789 if _newclass:GetNumRestartedReasonsFromEvent = staticmethod(GetNumRestartedReasonsFromEvent) 7790 __swig_getmethods__["GetNumRestartedReasonsFromEvent"] = lambda x: GetNumRestartedReasonsFromEvent
7791 - def GetRestartedReasonAtIndexFromEvent(*args):
7792 """GetRestartedReasonAtIndexFromEvent(SBEvent event, size_t idx) -> char const *""" 7793 return _lldb.SBProcess_GetRestartedReasonAtIndexFromEvent(*args)
7794 7795 if _newclass:GetRestartedReasonAtIndexFromEvent = staticmethod(GetRestartedReasonAtIndexFromEvent) 7796 __swig_getmethods__["GetRestartedReasonAtIndexFromEvent"] = lambda x: GetRestartedReasonAtIndexFromEvent
7797 - def GetProcessFromEvent(*args):
7798 """GetProcessFromEvent(SBEvent event) -> SBProcess""" 7799 return _lldb.SBProcess_GetProcessFromEvent(*args)
7800 7801 if _newclass:GetProcessFromEvent = staticmethod(GetProcessFromEvent) 7802 __swig_getmethods__["GetProcessFromEvent"] = lambda x: GetProcessFromEvent
7803 - def GetInterruptedFromEvent(*args):
7804 """GetInterruptedFromEvent(SBEvent event) -> bool""" 7805 return _lldb.SBProcess_GetInterruptedFromEvent(*args)
7806 7807 if _newclass:GetInterruptedFromEvent = staticmethod(GetInterruptedFromEvent) 7808 __swig_getmethods__["GetInterruptedFromEvent"] = lambda x: GetInterruptedFromEvent
7809 - def GetStructuredDataFromEvent(*args):
7810 """GetStructuredDataFromEvent(SBEvent event) -> SBStructuredData""" 7811 return _lldb.SBProcess_GetStructuredDataFromEvent(*args)
7812 7813 if _newclass:GetStructuredDataFromEvent = staticmethod(GetStructuredDataFromEvent) 7814 __swig_getmethods__["GetStructuredDataFromEvent"] = lambda x: GetStructuredDataFromEvent
7815 - def EventIsProcessEvent(*args):
7816 """EventIsProcessEvent(SBEvent event) -> bool""" 7817 return _lldb.SBProcess_EventIsProcessEvent(*args)
7818 7819 if _newclass:EventIsProcessEvent = staticmethod(EventIsProcessEvent) 7820 __swig_getmethods__["EventIsProcessEvent"] = lambda x: EventIsProcessEvent
7821 - def EventIsStructuredDataEvent(*args):
7822 """EventIsStructuredDataEvent(SBEvent event) -> bool""" 7823 return _lldb.SBProcess_EventIsStructuredDataEvent(*args)
7824 7825 if _newclass:EventIsStructuredDataEvent = staticmethod(EventIsStructuredDataEvent) 7826 __swig_getmethods__["EventIsStructuredDataEvent"] = lambda x: EventIsStructuredDataEvent
7827 - def GetBroadcaster(self):
7828 """GetBroadcaster(SBProcess self) -> SBBroadcaster""" 7829 return _lldb.SBProcess_GetBroadcaster(self)
7830
7831 - def GetDescription(self, *args):
7832 """GetDescription(SBProcess self, SBStream description) -> bool""" 7833 return _lldb.SBProcess_GetDescription(self, *args)
7834
7835 - def GetNumSupportedHardwareWatchpoints(self, *args):
7836 """GetNumSupportedHardwareWatchpoints(SBProcess self, SBError error) -> uint32_t""" 7837 return _lldb.SBProcess_GetNumSupportedHardwareWatchpoints(self, *args)
7838
7839 - def LoadImage(self, *args):
7840 """LoadImage(SBProcess self, SBFileSpec image_spec, SBError error) -> uint32_t""" 7841 return _lldb.SBProcess_LoadImage(self, *args)
7842
7843 - def LoadImageUsingPaths(self, *args):
7844 """ 7845 Load the library whose filename is given by image_spec looking in all the 7846 paths supplied in the paths argument. If successful, return a token that 7847 can be passed to UnloadImage and fill loaded_path with the path that was 7848 successfully loaded. On failure, return 7849 lldb.LLDB_INVALID_IMAGE_TOKEN. 7850 """ 7851 return _lldb.SBProcess_LoadImageUsingPaths(self, *args)
7852
7853 - def UnloadImage(self, *args):
7854 """UnloadImage(SBProcess self, uint32_t image_token) -> SBError""" 7855 return _lldb.SBProcess_UnloadImage(self, *args)
7856
7857 - def SendEventData(self, *args):
7858 """SendEventData(SBProcess self, char const * event_data) -> SBError""" 7859 return _lldb.SBProcess_SendEventData(self, *args)
7860
7861 - def GetNumExtendedBacktraceTypes(self):
7862 """ 7863 Return the number of different thread-origin extended backtraces 7864 this process can support as a uint32_t. 7865 When the process is stopped and you have an SBThread, lldb may be 7866 able to show a backtrace of when that thread was originally created, 7867 or the work item was enqueued to it (in the case of a libdispatch 7868 queue). 7869 """ 7870 return _lldb.SBProcess_GetNumExtendedBacktraceTypes(self)
7871
7872 - def GetExtendedBacktraceTypeAtIndex(self, *args):
7873 """ 7874 Takes an index argument, returns the name of one of the thread-origin 7875 extended backtrace methods as a str. 7876 """ 7877 return _lldb.SBProcess_GetExtendedBacktraceTypeAtIndex(self, *args)
7878
7879 - def GetHistoryThreads(self, *args):
7880 """GetHistoryThreads(SBProcess self, lldb::addr_t addr) -> SBThreadCollection""" 7881 return _lldb.SBProcess_GetHistoryThreads(self, *args)
7882
7883 - def IsInstrumentationRuntimePresent(self, *args):
7884 """IsInstrumentationRuntimePresent(SBProcess self, lldb::InstrumentationRuntimeType type) -> bool""" 7885 return _lldb.SBProcess_IsInstrumentationRuntimePresent(self, *args)
7886
7887 - def SaveCore(self, *args):
7888 """SaveCore(SBProcess self, char const * file_name) -> SBError""" 7889 return _lldb.SBProcess_SaveCore(self, *args)
7890
7891 - def StartTrace(self, *args):
7892 """StartTrace(SBProcess self, SBTraceOptions options, SBError error) -> SBTrace""" 7893 return _lldb.SBProcess_StartTrace(self, *args)
7894
7895 - def GetMemoryRegionInfo(self, *args):
7896 """GetMemoryRegionInfo(SBProcess self, lldb::addr_t load_addr, SBMemoryRegionInfo region_info) -> SBError""" 7897 return _lldb.SBProcess_GetMemoryRegionInfo(self, *args)
7898
7899 - def GetMemoryRegions(self):
7900 """GetMemoryRegions(SBProcess self) -> SBMemoryRegionInfoList""" 7901 return _lldb.SBProcess_GetMemoryRegions(self)
7902
7903 - def GetProcessInfo(self):
7904 """ 7905 Get information about the process. 7906 Valid process info will only be returned when the process is alive, 7907 use IsValid() to check if the info returned is valid. 7908 7909 process_info = process.GetProcessInfo() 7910 if process_info.IsValid(): 7911 process_info.GetProcessID() 7912 """ 7913 return _lldb.SBProcess_GetProcessInfo(self)
7914
7915 - def __get_is_alive__(self):
7916 '''Returns "True" if the process is currently alive, "False" otherwise''' 7917 s = self.GetState() 7918 if (s == eStateAttaching or 7919 s == eStateLaunching or 7920 s == eStateStopped or 7921 s == eStateRunning or 7922 s == eStateStepping or 7923 s == eStateCrashed or 7924 s == eStateSuspended): 7925 return True 7926 return False
7927
7928 - def __get_is_running__(self):
7929 '''Returns "True" if the process is currently running, "False" otherwise''' 7930 state = self.GetState() 7931 if state == eStateRunning or state == eStateStepping: 7932 return True 7933 return False
7934
7935 - def __get_is_stopped__(self):
7936 '''Returns "True" if the process is currently stopped, "False" otherwise''' 7937 state = self.GetState() 7938 if state == eStateStopped or state == eStateCrashed or state == eStateSuspended: 7939 return True 7940 return False
7941
7942 - class threads_access(object):
7943 '''A helper object that will lazily hand out thread for a process when supplied an index.'''
7944 - def __init__(self, sbprocess):
7945 self.sbprocess = sbprocess
7946
7947 - def __len__(self):
7948 if self.sbprocess: 7949 return int(self.sbprocess.GetNumThreads()) 7950 return 0
7951
7952 - def __getitem__(self, key):
7953 if type(key) is int and key < len(self): 7954 return self.sbprocess.GetThreadAtIndex(key) 7955 return None
7956
7957 - def get_threads_access_object(self):
7958 '''An accessor function that returns a modules_access() object which allows lazy thread access from a lldb.SBProcess object.''' 7959 return self.threads_access (self)
7960
7961 - def get_process_thread_list(self):
7962 '''An accessor function that returns a list() that contains all threads in a lldb.SBProcess object.''' 7963 threads = [] 7964 accessor = self.get_threads_access_object() 7965 for idx in range(len(accessor)): 7966 threads.append(accessor[idx]) 7967 return threads
7968
7969 - def __iter__(self):
7970 '''Iterate over all threads in a lldb.SBProcess object.''' 7971 return lldb_iter(self, 'GetNumThreads', 'GetThreadAtIndex')
7972
7973 - def __len__(self):
7974 '''Return the number of threads in a lldb.SBProcess object.''' 7975 return self.GetNumThreads()
7976 7977 7978 __swig_getmethods__["threads"] = get_process_thread_list 7979 if _newclass: threads = property(get_process_thread_list, None, doc='''A read only property that returns a list() of lldb.SBThread objects for this process.''') 7980 7981 __swig_getmethods__["thread"] = get_threads_access_object 7982 if _newclass: thread = property(get_threads_access_object, None, doc='''A read only property that returns an object that can access threads by thread index (thread = lldb.process.thread[12]).''') 7983 7984 __swig_getmethods__["is_alive"] = __get_is_alive__ 7985 if _newclass: is_alive = property(__get_is_alive__, None, doc='''A read only property that returns a boolean value that indicates if this process is currently alive.''') 7986 7987 __swig_getmethods__["is_running"] = __get_is_running__ 7988 if _newclass: is_running = property(__get_is_running__, None, doc='''A read only property that returns a boolean value that indicates if this process is currently running.''') 7989 7990 __swig_getmethods__["is_stopped"] = __get_is_stopped__ 7991 if _newclass: is_stopped = property(__get_is_stopped__, None, doc='''A read only property that returns a boolean value that indicates if this process is currently stopped.''') 7992 7993 __swig_getmethods__["id"] = GetProcessID 7994 if _newclass: id = property(GetProcessID, None, doc='''A read only property that returns the process ID as an integer.''') 7995 7996 __swig_getmethods__["target"] = GetTarget 7997 if _newclass: target = property(GetTarget, None, doc='''A read only property that an lldb object that represents the target (lldb.SBTarget) that owns this process.''') 7998 7999 __swig_getmethods__["num_threads"] = GetNumThreads 8000 if _newclass: num_threads = property(GetNumThreads, None, doc='''A read only property that returns the number of threads in this process as an integer.''') 8001 8002 __swig_getmethods__["selected_thread"] = GetSelectedThread 8003 __swig_setmethods__["selected_thread"] = SetSelectedThread 8004 if _newclass: selected_thread = property(GetSelectedThread, SetSelectedThread, doc='''A read/write property that gets/sets the currently selected thread in this process. The getter returns a lldb.SBThread object and the setter takes an lldb.SBThread object.''') 8005 8006 __swig_getmethods__["state"] = GetState 8007 if _newclass: state = property(GetState, None, doc='''A read only property that returns an lldb enumeration value (see enumerations that start with "lldb.eState") that represents the current state of this process (running, stopped, exited, etc.).''') 8008 8009 __swig_getmethods__["exit_state"] = GetExitStatus 8010 if _newclass: exit_state = property(GetExitStatus, None, doc='''A read only property that returns an exit status as an integer of this process when the process state is lldb.eStateExited.''') 8011 8012 __swig_getmethods__["exit_description"] = GetExitDescription 8013 if _newclass: exit_description = property(GetExitDescription, None, doc='''A read only property that returns an exit description as a string of this process when the process state is lldb.eStateExited.''') 8014 8015 __swig_getmethods__["broadcaster"] = GetBroadcaster 8016 if _newclass: broadcaster = property(GetBroadcaster, None, doc='''A read only property that an lldb object that represents the broadcaster (lldb.SBBroadcaster) for this process.''') 8017
8018 - def __str__(self):
8019 """__str__(SBProcess self) -> PyObject *""" 8020 return _lldb.SBProcess___str__(self)
8021 8022 SBProcess_swigregister = _lldb.SBProcess_swigregister 8023 SBProcess_swigregister(SBProcess)
8024 8025 -def SBProcess_GetBroadcasterClassName():
8026 """SBProcess_GetBroadcasterClassName() -> char const *""" 8027 return _lldb.SBProcess_GetBroadcasterClassName()
8028
8029 -def SBProcess_GetStateFromEvent(*args):
8030 """SBProcess_GetStateFromEvent(SBEvent event) -> lldb::StateType""" 8031 return _lldb.SBProcess_GetStateFromEvent(*args)
8032
8033 -def SBProcess_GetRestartedFromEvent(*args):
8034 """SBProcess_GetRestartedFromEvent(SBEvent event) -> bool""" 8035 return _lldb.SBProcess_GetRestartedFromEvent(*args)
8036
8037 -def SBProcess_GetNumRestartedReasonsFromEvent(*args):
8038 """SBProcess_GetNumRestartedReasonsFromEvent(SBEvent event) -> size_t""" 8039 return _lldb.SBProcess_GetNumRestartedReasonsFromEvent(*args)
8040
8041 -def SBProcess_GetRestartedReasonAtIndexFromEvent(*args):
8042 """SBProcess_GetRestartedReasonAtIndexFromEvent(SBEvent event, size_t idx) -> char const *""" 8043 return _lldb.SBProcess_GetRestartedReasonAtIndexFromEvent(*args)
8044
8045 -def SBProcess_GetProcessFromEvent(*args):
8046 """SBProcess_GetProcessFromEvent(SBEvent event) -> SBProcess""" 8047 return _lldb.SBProcess_GetProcessFromEvent(*args)
8048
8049 -def SBProcess_GetInterruptedFromEvent(*args):
8050 """SBProcess_GetInterruptedFromEvent(SBEvent event) -> bool""" 8051 return _lldb.SBProcess_GetInterruptedFromEvent(*args)
8052
8053 -def SBProcess_GetStructuredDataFromEvent(*args):
8054 """SBProcess_GetStructuredDataFromEvent(SBEvent event) -> SBStructuredData""" 8055 return _lldb.SBProcess_GetStructuredDataFromEvent(*args)
8056
8057 -def SBProcess_EventIsProcessEvent(*args):
8058 """SBProcess_EventIsProcessEvent(SBEvent event) -> bool""" 8059 return _lldb.SBProcess_EventIsProcessEvent(*args)
8060
8061 -def SBProcess_EventIsStructuredDataEvent(*args):
8062 """SBProcess_EventIsStructuredDataEvent(SBEvent event) -> bool""" 8063 return _lldb.SBProcess_EventIsStructuredDataEvent(*args)
8064
8065 -class SBProcessInfo(_object):
8066 """ 8067 Describes an existing process and any discoverable information that pertains to 8068 that process. 8069 """ 8070 __swig_setmethods__ = {} 8071 __setattr__ = lambda self, name, value: _swig_setattr(self, SBProcessInfo, name, value) 8072 __swig_getmethods__ = {} 8073 __getattr__ = lambda self, name: _swig_getattr(self, SBProcessInfo, name) 8074 __repr__ = _swig_repr
8075 - def __init__(self, *args):
8076 """ 8077 __init__(lldb::SBProcessInfo self) -> SBProcessInfo 8078 __init__(lldb::SBProcessInfo self, SBProcessInfo rhs) -> SBProcessInfo 8079 """ 8080 this = _lldb.new_SBProcessInfo(*args) 8081 try: self.this.append(this) 8082 except: self.this = this
8083 __swig_destroy__ = _lldb.delete_SBProcessInfo 8084 __del__ = lambda self : None;
8085 - def IsValid(self):
8086 """IsValid(SBProcessInfo self) -> bool""" 8087 return _lldb.SBProcessInfo_IsValid(self)
8088
8089 - def __nonzero__(self):
8090 return _lldb.SBProcessInfo___nonzero__(self)
8091 __bool__ = __nonzero__ 8092 8093
8094 - def GetName(self):
8095 """GetName(SBProcessInfo self) -> char const *""" 8096 return _lldb.SBProcessInfo_GetName(self)
8097
8098 - def GetExecutableFile(self):
8099 """GetExecutableFile(SBProcessInfo self) -> SBFileSpec""" 8100 return _lldb.SBProcessInfo_GetExecutableFile(self)
8101
8102 - def GetProcessID(self):
8103 """GetProcessID(SBProcessInfo self) -> lldb::pid_t""" 8104 return _lldb.SBProcessInfo_GetProcessID(self)
8105
8106 - def GetUserID(self):
8107 """GetUserID(SBProcessInfo self) -> uint32_t""" 8108 return _lldb.SBProcessInfo_GetUserID(self)
8109
8110 - def GetGroupID(self):
8111 """GetGroupID(SBProcessInfo self) -> uint32_t""" 8112 return _lldb.SBProcessInfo_GetGroupID(self)
8113
8114 - def UserIDIsValid(self):
8115 """UserIDIsValid(SBProcessInfo self) -> bool""" 8116 return _lldb.SBProcessInfo_UserIDIsValid(self)
8117
8118 - def GroupIDIsValid(self):
8119 """GroupIDIsValid(SBProcessInfo self) -> bool""" 8120 return _lldb.SBProcessInfo_GroupIDIsValid(self)
8121
8122 - def GetEffectiveUserID(self):
8123 """GetEffectiveUserID(SBProcessInfo self) -> uint32_t""" 8124 return _lldb.SBProcessInfo_GetEffectiveUserID(self)
8125
8126 - def GetEffectiveGroupID(self):
8127 """GetEffectiveGroupID(SBProcessInfo self) -> uint32_t""" 8128 return _lldb.SBProcessInfo_GetEffectiveGroupID(self)
8129
8130 - def EffectiveUserIDIsValid(self):
8131 """EffectiveUserIDIsValid(SBProcessInfo self) -> bool""" 8132 return _lldb.SBProcessInfo_EffectiveUserIDIsValid(self)
8133
8134 - def EffectiveGroupIDIsValid(self):
8135 """EffectiveGroupIDIsValid(SBProcessInfo self) -> bool""" 8136 return _lldb.SBProcessInfo_EffectiveGroupIDIsValid(self)
8137
8138 - def GetParentProcessID(self):
8139 """GetParentProcessID(SBProcessInfo self) -> lldb::pid_t""" 8140 return _lldb.SBProcessInfo_GetParentProcessID(self)
8141 8142 SBProcessInfo_swigregister = _lldb.SBProcessInfo_swigregister 8143 SBProcessInfo_swigregister(SBProcessInfo)
8144 8145 -class SBQueue(_object):
8146 """Proxy of C++ lldb::SBQueue class""" 8147 __swig_setmethods__ = {} 8148 __setattr__ = lambda self, name, value: _swig_setattr(self, SBQueue, name, value) 8149 __swig_getmethods__ = {} 8150 __getattr__ = lambda self, name: _swig_getattr(self, SBQueue, name) 8151 __repr__ = _swig_repr
8152 - def __init__(self, *args):
8153 """ 8154 __init__(lldb::SBQueue self) -> SBQueue 8155 __init__(lldb::SBQueue self, lldb::QueueSP const & queue_sp) -> SBQueue 8156 """ 8157 this = _lldb.new_SBQueue(*args) 8158 try: self.this.append(this) 8159 except: self.this = this
8160 __swig_destroy__ = _lldb.delete_SBQueue 8161 __del__ = lambda self : None;
8162 - def IsValid(self):
8163 """IsValid(SBQueue self) -> bool""" 8164 return _lldb.SBQueue_IsValid(self)
8165
8166 - def __nonzero__(self):
8167 return _lldb.SBQueue___nonzero__(self)
8168 __bool__ = __nonzero__ 8169 8170
8171 - def Clear(self):
8172 """Clear(SBQueue self)""" 8173 return _lldb.SBQueue_Clear(self)
8174
8175 - def GetProcess(self):
8176 """GetProcess(SBQueue self) -> SBProcess""" 8177 return _lldb.SBQueue_GetProcess(self)
8178
8179 - def GetQueueID(self):
8180 """ 8181 Returns an lldb::queue_id_t type unique identifier number for this 8182 queue that will not be used by any other queue during this process' 8183 execution. These ID numbers often start at 1 with the first 8184 system-created queues and increment from there. 8185 """ 8186 return _lldb.SBQueue_GetQueueID(self)
8187
8188 - def GetName(self):
8189 """GetName(SBQueue self) -> char const *""" 8190 return _lldb.SBQueue_GetName(self)
8191
8192 - def GetKind(self):
8193 """ 8194 Returns an lldb::QueueKind enumerated value (e.g. eQueueKindUnknown, 8195 eQueueKindSerial, eQueueKindConcurrent) describing the type of this 8196 queue. 8197 """ 8198 return _lldb.SBQueue_GetKind(self)
8199
8200 - def GetIndexID(self):
8201 """GetIndexID(SBQueue self) -> uint32_t""" 8202 return _lldb.SBQueue_GetIndexID(self)
8203
8204 - def GetNumThreads(self):
8205 """GetNumThreads(SBQueue self) -> uint32_t""" 8206 return _lldb.SBQueue_GetNumThreads(self)
8207
8208 - def GetThreadAtIndex(self, *args):
8209 """GetThreadAtIndex(SBQueue self, uint32_t arg2) -> SBThread""" 8210 return _lldb.SBQueue_GetThreadAtIndex(self, *args)
8211
8212 - def GetNumPendingItems(self):
8213 """GetNumPendingItems(SBQueue self) -> uint32_t""" 8214 return _lldb.SBQueue_GetNumPendingItems(self)
8215
8216 - def GetPendingItemAtIndex(self, *args):
8217 """GetPendingItemAtIndex(SBQueue self, uint32_t arg2) -> SBQueueItem""" 8218 return _lldb.SBQueue_GetPendingItemAtIndex(self, *args)
8219
8220 - def GetNumRunningItems(self):
8221 """GetNumRunningItems(SBQueue self) -> uint32_t""" 8222 return _lldb.SBQueue_GetNumRunningItems(self)
8223 8224 SBQueue_swigregister = _lldb.SBQueue_swigregister 8225 SBQueue_swigregister(SBQueue)
8226 8227 -class SBQueueItem(_object):
8228 """Proxy of C++ lldb::SBQueueItem class""" 8229 __swig_setmethods__ = {} 8230 __setattr__ = lambda self, name, value: _swig_setattr(self, SBQueueItem, name, value) 8231 __swig_getmethods__ = {} 8232 __getattr__ = lambda self, name: _swig_getattr(self, SBQueueItem, name) 8233 __repr__ = _swig_repr
8234 - def __init__(self, *args):
8235 """ 8236 __init__(lldb::SBQueueItem self) -> SBQueueItem 8237 __init__(lldb::SBQueueItem self, lldb::QueueItemSP const & queue_item_sp) -> SBQueueItem 8238 """ 8239 this = _lldb.new_SBQueueItem(*args) 8240 try: self.this.append(this) 8241 except: self.this = this
8242 __swig_destroy__ = _lldb.delete_SBQueueItem 8243 __del__ = lambda self : None;
8244 - def IsValid(self):
8245 """IsValid(SBQueueItem self) -> bool""" 8246 return _lldb.SBQueueItem_IsValid(self)
8247
8248 - def __nonzero__(self):
8249 return _lldb.SBQueueItem___nonzero__(self)
8250 __bool__ = __nonzero__ 8251 8252
8253 - def Clear(self):
8254 """Clear(SBQueueItem self)""" 8255 return _lldb.SBQueueItem_Clear(self)
8256
8257 - def GetKind(self):
8258 """GetKind(SBQueueItem self) -> lldb::QueueItemKind""" 8259 return _lldb.SBQueueItem_GetKind(self)
8260
8261 - def SetKind(self, *args):
8262 """SetKind(SBQueueItem self, lldb::QueueItemKind kind)""" 8263 return _lldb.SBQueueItem_SetKind(self, *args)
8264
8265 - def GetAddress(self):
8266 """GetAddress(SBQueueItem self) -> SBAddress""" 8267 return _lldb.SBQueueItem_GetAddress(self)
8268
8269 - def SetAddress(self, *args):
8270 """SetAddress(SBQueueItem self, SBAddress addr)""" 8271 return _lldb.SBQueueItem_SetAddress(self, *args)
8272
8273 - def SetQueueItem(self, *args):
8274 """SetQueueItem(SBQueueItem self, lldb::QueueItemSP const & queue_item_sp)""" 8275 return _lldb.SBQueueItem_SetQueueItem(self, *args)
8276
8277 - def GetExtendedBacktraceThread(self, *args):
8278 """GetExtendedBacktraceThread(SBQueueItem self, char const * type) -> SBThread""" 8279 return _lldb.SBQueueItem_GetExtendedBacktraceThread(self, *args)
8280 8281 SBQueueItem_swigregister = _lldb.SBQueueItem_swigregister 8282 SBQueueItem_swigregister(SBQueueItem)
8283 8284 -class SBSection(_object):
8285 """ 8286 Represents an executable image section. 8287 8288 SBSection supports iteration through its subsection, represented as SBSection 8289 as well. For example, 8290 8291 for sec in exe_module: 8292 if sec.GetName() == '__TEXT': 8293 print sec 8294 break 8295 print INDENT + 'Number of subsections: %d' % sec.GetNumSubSections() 8296 for subsec in sec: 8297 print INDENT + repr(subsec) 8298 8299 produces: 8300 8301 [0x0000000100000000-0x0000000100002000) a.out.__TEXT 8302 Number of subsections: 6 8303 [0x0000000100001780-0x0000000100001d5c) a.out.__TEXT.__text 8304 [0x0000000100001d5c-0x0000000100001da4) a.out.__TEXT.__stubs 8305 [0x0000000100001da4-0x0000000100001e2c) a.out.__TEXT.__stub_helper 8306 [0x0000000100001e2c-0x0000000100001f10) a.out.__TEXT.__cstring 8307 [0x0000000100001f10-0x0000000100001f68) a.out.__TEXT.__unwind_info 8308 [0x0000000100001f68-0x0000000100001ff8) a.out.__TEXT.__eh_frame 8309 8310 See also SBModule. 8311 """ 8312 __swig_setmethods__ = {} 8313 __setattr__ = lambda self, name, value: _swig_setattr(self, SBSection, name, value) 8314 __swig_getmethods__ = {} 8315 __getattr__ = lambda self, name: _swig_getattr(self, SBSection, name) 8316 __repr__ = _swig_repr
8317 - def __init__(self, *args):
8318 """ 8319 __init__(lldb::SBSection self) -> SBSection 8320 __init__(lldb::SBSection self, SBSection rhs) -> SBSection 8321 """ 8322 this = _lldb.new_SBSection(*args) 8323 try: self.this.append(this) 8324 except: self.this = this
8325 __swig_destroy__ = _lldb.delete_SBSection 8326 __del__ = lambda self : None;
8327 - def IsValid(self):
8328 """IsValid(SBSection self) -> bool""" 8329 return _lldb.SBSection_IsValid(self)
8330
8331 - def __nonzero__(self):
8332 return _lldb.SBSection___nonzero__(self)
8333 __bool__ = __nonzero__ 8334 8335
8336 - def GetName(self):
8337 """GetName(SBSection self) -> char const *""" 8338 return _lldb.SBSection_GetName(self)
8339
8340 - def GetParent(self):
8341 """GetParent(SBSection self) -> SBSection""" 8342 return _lldb.SBSection_GetParent(self)
8343
8344 - def FindSubSection(self, *args):
8345 """FindSubSection(SBSection self, char const * sect_name) -> SBSection""" 8346 return _lldb.SBSection_FindSubSection(self, *args)
8347
8348 - def GetNumSubSections(self):
8349 """GetNumSubSections(SBSection self) -> size_t""" 8350 return _lldb.SBSection_GetNumSubSections(self)
8351
8352 - def GetSubSectionAtIndex(self, *args):
8353 """GetSubSectionAtIndex(SBSection self, size_t idx) -> SBSection""" 8354 return _lldb.SBSection_GetSubSectionAtIndex(self, *args)
8355
8356 - def GetFileAddress(self):
8357 """GetFileAddress(SBSection self) -> lldb::addr_t""" 8358 return _lldb.SBSection_GetFileAddress(self)
8359
8360 - def GetLoadAddress(self, *args):
8361 """GetLoadAddress(SBSection self, SBTarget target) -> lldb::addr_t""" 8362 return _lldb.SBSection_GetLoadAddress(self, *args)
8363
8364 - def GetByteSize(self):
8365 """GetByteSize(SBSection self) -> lldb::addr_t""" 8366 return _lldb.SBSection_GetByteSize(self)
8367
8368 - def GetFileOffset(self):
8369 """GetFileOffset(SBSection self) -> uint64_t""" 8370 return _lldb.SBSection_GetFileOffset(self)
8371
8372 - def GetFileByteSize(self):
8373 """GetFileByteSize(SBSection self) -> uint64_t""" 8374 return _lldb.SBSection_GetFileByteSize(self)
8375
8376 - def GetSectionData(self, *args):
8377 """ 8378 GetSectionData(SBSection self) -> SBData 8379 GetSectionData(SBSection self, uint64_t offset, uint64_t size) -> SBData 8380 """ 8381 return _lldb.SBSection_GetSectionData(self, *args)
8382
8383 - def GetSectionType(self):
8384 """GetSectionType(SBSection self) -> lldb::SectionType""" 8385 return _lldb.SBSection_GetSectionType(self)
8386
8387 - def GetPermissions(self):
8388 """GetPermissions(SBSection self) -> uint32_t""" 8389 return _lldb.SBSection_GetPermissions(self)
8390
8391 - def GetTargetByteSize(self):
8392 """ 8393 GetTargetByteSize(SBSection self) -> uint32_t 8394 8395 Return the size of a target's byte represented by this section 8396 in numbers of host bytes. Note that certain architectures have 8397 varying minimum addressable unit (i.e. byte) size for their 8398 CODE or DATA buses. 8399 8400 @return 8401 The number of host (8-bit) bytes needed to hold a target byte 8402 """ 8403 return _lldb.SBSection_GetTargetByteSize(self)
8404
8405 - def GetDescription(self, *args):
8406 """GetDescription(SBSection self, SBStream description) -> bool""" 8407 return _lldb.SBSection_GetDescription(self, *args)
8408
8409 - def __eq__(self, *args):
8410 """__eq__(SBSection self, SBSection rhs) -> bool""" 8411 return _lldb.SBSection___eq__(self, *args)
8412
8413 - def __ne__(self, *args):
8414 """__ne__(SBSection self, SBSection rhs) -> bool""" 8415 return _lldb.SBSection___ne__(self, *args)
8416
8417 - def __iter__(self):
8418 '''Iterate over all subsections in a lldb.SBSection object.''' 8419 return lldb_iter(self, 'GetNumSubSections', 'GetSubSectionAtIndex')
8420
8421 - def __len__(self):
8422 '''Return the number of subsections in a lldb.SBSection object.''' 8423 return self.GetNumSubSections()
8424
8425 - def get_addr(self):
8426 return SBAddress(self, 0)
8427 8428 __swig_getmethods__["name"] = GetName 8429 if _newclass: name = property(GetName, None, doc='''A read only property that returns the name of this section as a string.''') 8430 8431 __swig_getmethods__["addr"] = get_addr 8432 if _newclass: addr = property(get_addr, None, doc='''A read only property that returns an lldb object that represents the start address (lldb.SBAddress) for this section.''') 8433 8434 __swig_getmethods__["file_addr"] = GetFileAddress 8435 if _newclass: file_addr = property(GetFileAddress, None, doc='''A read only property that returns an integer that represents the starting "file" address for this section, or the address of the section in the object file in which it is defined.''') 8436 8437 __swig_getmethods__["size"] = GetByteSize 8438 if _newclass: size = property(GetByteSize, None, doc='''A read only property that returns the size in bytes of this section as an integer.''') 8439 8440 __swig_getmethods__["file_offset"] = GetFileOffset 8441 if _newclass: file_offset = property(GetFileOffset, None, doc='''A read only property that returns the file offset in bytes of this section as an integer.''') 8442 8443 __swig_getmethods__["file_size"] = GetFileByteSize 8444 if _newclass: file_size = property(GetFileByteSize, None, doc='''A read only property that returns the file size in bytes of this section as an integer.''') 8445 8446 __swig_getmethods__["data"] = GetSectionData 8447 if _newclass: data = property(GetSectionData, None, doc='''A read only property that returns an lldb object that represents the bytes for this section (lldb.SBData) for this section.''') 8448 8449 __swig_getmethods__["type"] = GetSectionType 8450 if _newclass: type = property(GetSectionType, None, doc='''A read only property that returns an lldb enumeration value (see enumerations that start with "lldb.eSectionType") that represents the type of this section (code, data, etc.).''') 8451 8452 __swig_getmethods__["target_byte_size"] = GetTargetByteSize 8453 if _newclass: target_byte_size = property(GetTargetByteSize, None, doc='''A read only property that returns the size of a target byte represented by this section as a number of host bytes.''') 8454 8455
8456 - def __str__(self):
8457 """__str__(SBSection self) -> PyObject *""" 8458 return _lldb.SBSection___str__(self)
8459
8460 - def __eq__(self, rhs):
8461 if not isinstance(rhs, type(self)): 8462 return False 8463 8464 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
8465
8466 - def __ne__(self, rhs):
8467 if not isinstance(rhs, type(self)): 8468 return True 8469 8470 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
8471 8472 SBSection_swigregister = _lldb.SBSection_swigregister 8473 SBSection_swigregister(SBSection)
8474 8475 -class SBSourceManager(_object):
8476 """ 8477 Represents a central authority for displaying source code. 8478 8479 For example (from test/source-manager/TestSourceManager.py), 8480 8481 # Create the filespec for 'main.c'. 8482 filespec = lldb.SBFileSpec('main.c', False) 8483 source_mgr = self.dbg.GetSourceManager() 8484 # Use a string stream as the destination. 8485 stream = lldb.SBStream() 8486 source_mgr.DisplaySourceLinesWithLineNumbers(filespec, 8487 self.line, 8488 2, # context before 8489 2, # context after 8490 '=>', # prefix for current line 8491 stream) 8492 8493 # 2 8494 # 3 int main(int argc, char const *argv[]) { 8495 # => 4 printf('Hello world.\n'); // Set break point at this line. 8496 # 5 return 0; 8497 # 6 } 8498 self.expect(stream.GetData(), 'Source code displayed correctly', 8499 exe=False, 8500 patterns = ['=> %d.*Hello world' % self.line]) 8501 """ 8502 __swig_setmethods__ = {} 8503 __setattr__ = lambda self, name, value: _swig_setattr(self, SBSourceManager, name, value) 8504 __swig_getmethods__ = {} 8505 __getattr__ = lambda self, name: _swig_getattr(self, SBSourceManager, name) 8506 __repr__ = _swig_repr
8507 - def __init__(self, *args):
8508 """__init__(lldb::SBSourceManager self, SBSourceManager rhs) -> SBSourceManager""" 8509 this = _lldb.new_SBSourceManager(*args) 8510 try: self.this.append(this) 8511 except: self.this = this
8512 __swig_destroy__ = _lldb.delete_SBSourceManager 8513 __del__ = lambda self : None;
8514 - def DisplaySourceLinesWithLineNumbers(self, *args):
8515 """ 8516 DisplaySourceLinesWithLineNumbers(SBSourceManager self, SBFileSpec file, uint32_t line, uint32_t context_before, uint32_t context_after, 8517 char const * current_line_cstr, SBStream s) -> size_t 8518 """ 8519 return _lldb.SBSourceManager_DisplaySourceLinesWithLineNumbers(self, *args)
8520
8521 - def DisplaySourceLinesWithLineNumbersAndColumn(self, *args):
8522 """ 8523 DisplaySourceLinesWithLineNumbersAndColumn(SBSourceManager self, SBFileSpec file, uint32_t line, uint32_t column, uint32_t context_before, uint32_t context_after, 8524 char const * current_line_cstr, SBStream s) -> size_t 8525 """ 8526 return _lldb.SBSourceManager_DisplaySourceLinesWithLineNumbersAndColumn(self, *args)
8527 8528 SBSourceManager_swigregister = _lldb.SBSourceManager_swigregister 8529 SBSourceManager_swigregister(SBSourceManager)
8530 8531 -class SBStream(_object):
8532 """ 8533 Represents a destination for streaming data output to. By default, a string 8534 stream is created. 8535 8536 For example (from test/source-manager/TestSourceManager.py), 8537 8538 # Create the filespec for 'main.c'. 8539 filespec = lldb.SBFileSpec('main.c', False) 8540 source_mgr = self.dbg.GetSourceManager() 8541 # Use a string stream as the destination. 8542 stream = lldb.SBStream() 8543 source_mgr.DisplaySourceLinesWithLineNumbers(filespec, 8544 self.line, 8545 2, # context before 8546 2, # context after 8547 '=>', # prefix for current line 8548 stream) 8549 8550 # 2 8551 # 3 int main(int argc, char const *argv[]) { 8552 # => 4 printf('Hello world.\n'); // Set break point at this line. 8553 # 5 return 0; 8554 # 6 } 8555 self.expect(stream.GetData(), 'Source code displayed correctly', 8556 exe=False, 8557 patterns = ['=> %d.*Hello world' % self.line]) 8558 """ 8559 __swig_setmethods__ = {} 8560 __setattr__ = lambda self, name, value: _swig_setattr(self, SBStream, name, value) 8561 __swig_getmethods__ = {} 8562 __getattr__ = lambda self, name: _swig_getattr(self, SBStream, name) 8563 __repr__ = _swig_repr
8564 - def __init__(self):
8565 """__init__(lldb::SBStream self) -> SBStream""" 8566 this = _lldb.new_SBStream() 8567 try: self.this.append(this) 8568 except: self.this = this
8569 __swig_destroy__ = _lldb.delete_SBStream 8570 __del__ = lambda self : None;
8571 - def IsValid(self):
8572 """IsValid(SBStream self) -> bool""" 8573 return _lldb.SBStream_IsValid(self)
8574
8575 - def __nonzero__(self):
8576 return _lldb.SBStream___nonzero__(self)
8577 __bool__ = __nonzero__ 8578 8579
8580 - def GetData(self):
8581 """ 8582 GetData(SBStream self) -> char const * 8583 8584 If this stream is not redirected to a file, it will maintain a local 8585 cache for the stream data which can be accessed using this accessor. 8586 """ 8587 return _lldb.SBStream_GetData(self)
8588
8589 - def GetSize(self):
8590 """ 8591 GetSize(SBStream self) -> size_t 8592 8593 If this stream is not redirected to a file, it will maintain a local 8594 cache for the stream output whose length can be accessed using this 8595 accessor. 8596 """ 8597 return _lldb.SBStream_GetSize(self)
8598
8599 - def Print(self, *args):
8600 """Print(SBStream self, char const * str)""" 8601 return _lldb.SBStream_Print(self, *args)
8602
8603 - def RedirectToFile(self, *args):
8604 """RedirectToFile(SBStream self, char const * path, bool append)""" 8605 return _lldb.SBStream_RedirectToFile(self, *args)
8606
8607 - def RedirectToFileHandle(self, *args):
8608 """RedirectToFileHandle(SBStream self, FILE * fh, bool transfer_fh_ownership)""" 8609 return _lldb.SBStream_RedirectToFileHandle(self, *args)
8610
8611 - def RedirectToFileDescriptor(self, *args):
8612 """RedirectToFileDescriptor(SBStream self, int fd, bool transfer_fh_ownership)""" 8613 return _lldb.SBStream_RedirectToFileDescriptor(self, *args)
8614
8615 - def Clear(self):
8616 """ 8617 Clear(SBStream self) 8618 8619 If the stream is redirected to a file, forget about the file and if 8620 ownership of the file was transferred to this object, close the file. 8621 If the stream is backed by a local cache, clear this cache. 8622 """ 8623 return _lldb.SBStream_Clear(self)
8624
8625 - def write(self, *args):
8626 """write(SBStream self, char const * str)""" 8627 return _lldb.SBStream_write(self, *args)
8628
8629 - def flush(self):
8630 """flush(SBStream self)""" 8631 return _lldb.SBStream_flush(self)
8632 8633 SBStream_swigregister = _lldb.SBStream_swigregister 8634 SBStream_swigregister(SBStream)
8635 8636 -class SBStringList(_object):
8637 """Proxy of C++ lldb::SBStringList class""" 8638 __swig_setmethods__ = {} 8639 __setattr__ = lambda self, name, value: _swig_setattr(self, SBStringList, name, value) 8640 __swig_getmethods__ = {} 8641 __getattr__ = lambda self, name: _swig_getattr(self, SBStringList, name) 8642 __repr__ = _swig_repr
8643 - def __init__(self, *args):
8644 """ 8645 __init__(lldb::SBStringList self) -> SBStringList 8646 __init__(lldb::SBStringList self, SBStringList rhs) -> SBStringList 8647 """ 8648 this = _lldb.new_SBStringList(*args) 8649 try: self.this.append(this) 8650 except: self.this = this
8651 __swig_destroy__ = _lldb.delete_SBStringList 8652 __del__ = lambda self : None;
8653 - def IsValid(self):
8654 """IsValid(SBStringList self) -> bool""" 8655 return _lldb.SBStringList_IsValid(self)
8656
8657 - def __nonzero__(self):
8658 return _lldb.SBStringList___nonzero__(self)
8659 __bool__ = __nonzero__ 8660 8661
8662 - def AppendString(self, *args):
8663 """AppendString(SBStringList self, char const * str)""" 8664 return _lldb.SBStringList_AppendString(self, *args)
8665
8666 - def AppendList(self, *args):
8667 """ 8668 AppendList(SBStringList self, char const ** strv, int strc) 8669 AppendList(SBStringList self, SBStringList strings) 8670 """ 8671 return _lldb.SBStringList_AppendList(self, *args)
8672
8673 - def GetSize(self):
8674 """GetSize(SBStringList self) -> uint32_t""" 8675 return _lldb.SBStringList_GetSize(self)
8676
8677 - def GetStringAtIndex(self, *args):
8678 """GetStringAtIndex(SBStringList self, size_t idx) -> char const *""" 8679 return _lldb.SBStringList_GetStringAtIndex(self, *args)
8680
8681 - def Clear(self):
8682 """Clear(SBStringList self)""" 8683 return _lldb.SBStringList_Clear(self)
8684
8685 - def __iter__(self):
8686 '''Iterate over all strings in a lldb.SBStringList object.''' 8687 return lldb_iter(self, 'GetSize', 'GetStringAtIndex')
8688
8689 - def __len__(self):
8690 '''Return the number of strings in a lldb.SBStringList object.''' 8691 return self.GetSize()
8692 8693 SBStringList_swigregister = _lldb.SBStringList_swigregister 8694 SBStringList_swigregister(SBStringList)
8695 8696 -class SBStructuredData(_object):
8697 """ 8698 A class representing a StructuredData event. 8699 8700 This class wraps the event type generated by StructuredData 8701 features. 8702 """ 8703 __swig_setmethods__ = {} 8704 __setattr__ = lambda self, name, value: _swig_setattr(self, SBStructuredData, name, value) 8705 __swig_getmethods__ = {} 8706 __getattr__ = lambda self, name: _swig_getattr(self, SBStructuredData, name) 8707 __repr__ = _swig_repr
8708 - def __init__(self, *args):
8709 """ 8710 __init__(lldb::SBStructuredData self) -> SBStructuredData 8711 __init__(lldb::SBStructuredData self, SBStructuredData rhs) -> SBStructuredData 8712 __init__(lldb::SBStructuredData self, lldb::EventSP const & event_sp) -> SBStructuredData 8713 """ 8714 this = _lldb.new_SBStructuredData(*args) 8715 try: self.this.append(this) 8716 except: self.this = this
8717 __swig_destroy__ = _lldb.delete_SBStructuredData 8718 __del__ = lambda self : None;
8719 - def IsValid(self):
8720 """IsValid(SBStructuredData self) -> bool""" 8721 return _lldb.SBStructuredData_IsValid(self)
8722
8723 - def __nonzero__(self):
8724 return _lldb.SBStructuredData___nonzero__(self)
8725 __bool__ = __nonzero__ 8726 8727
8728 - def Clear(self):
8729 """Clear(SBStructuredData self)""" 8730 return _lldb.SBStructuredData_Clear(self)
8731
8732 - def GetType(self):
8733 """GetType(SBStructuredData self) -> lldb::StructuredDataType""" 8734 return _lldb.SBStructuredData_GetType(self)
8735
8736 - def GetSize(self):
8737 """GetSize(SBStructuredData self) -> size_t""" 8738 return _lldb.SBStructuredData_GetSize(self)
8739
8740 - def GetKeys(self, *args):
8741 """GetKeys(SBStructuredData self, SBStringList keys) -> bool""" 8742 return _lldb.SBStructuredData_GetKeys(self, *args)
8743
8744 - def GetValueForKey(self, *args):
8745 """GetValueForKey(SBStructuredData self, char const * key) -> SBStructuredData""" 8746 return _lldb.SBStructuredData_GetValueForKey(self, *args)
8747
8748 - def GetItemAtIndex(self, *args):
8749 """GetItemAtIndex(SBStructuredData self, size_t idx) -> SBStructuredData""" 8750 return _lldb.SBStructuredData_GetItemAtIndex(self, *args)
8751
8752 - def GetIntegerValue(self, fail_value=0):
8753 """ 8754 GetIntegerValue(SBStructuredData self, uint64_t fail_value=0) -> uint64_t 8755 GetIntegerValue(SBStructuredData self) -> uint64_t 8756 """ 8757 return _lldb.SBStructuredData_GetIntegerValue(self, fail_value)
8758
8759 - def GetFloatValue(self, fail_value=0.0):
8760 """ 8761 GetFloatValue(SBStructuredData self, double fail_value=0.0) -> double 8762 GetFloatValue(SBStructuredData self) -> double 8763 """ 8764 return _lldb.SBStructuredData_GetFloatValue(self, fail_value)
8765
8766 - def GetBooleanValue(self, fail_value=False):
8767 """ 8768 GetBooleanValue(SBStructuredData self, bool fail_value=False) -> bool 8769 GetBooleanValue(SBStructuredData self) -> bool 8770 """ 8771 return _lldb.SBStructuredData_GetBooleanValue(self, fail_value)
8772
8773 - def GetStringValue(self, *args):
8774 """GetStringValue(SBStructuredData self, char * dst) -> size_t""" 8775 return _lldb.SBStructuredData_GetStringValue(self, *args)
8776
8777 - def GetAsJSON(self, *args):
8778 """GetAsJSON(SBStructuredData self, SBStream stream) -> SBError""" 8779 return _lldb.SBStructuredData_GetAsJSON(self, *args)
8780
8781 - def GetDescription(self, *args):
8782 """GetDescription(SBStructuredData self, SBStream stream) -> SBError""" 8783 return _lldb.SBStructuredData_GetDescription(self, *args)
8784
8785 - def SetFromJSON(self, *args):
8786 """SetFromJSON(SBStructuredData self, SBStream stream) -> SBError""" 8787 return _lldb.SBStructuredData_SetFromJSON(self, *args)
8788 8789 SBStructuredData_swigregister = _lldb.SBStructuredData_swigregister 8790 SBStructuredData_swigregister(SBStructuredData)
8791 8792 -class SBSymbol(_object):
8793 """ 8794 Represents the symbol possibly associated with a stack frame. 8795 SBModule contains SBSymbol(s). SBSymbol can also be retrieved from SBFrame. 8796 8797 See also SBModule and SBFrame. 8798 """ 8799 __swig_setmethods__ = {} 8800 __setattr__ = lambda self, name, value: _swig_setattr(self, SBSymbol, name, value) 8801 __swig_getmethods__ = {} 8802 __getattr__ = lambda self, name: _swig_getattr(self, SBSymbol, name) 8803 __repr__ = _swig_repr 8804 __swig_destroy__ = _lldb.delete_SBSymbol 8805 __del__ = lambda self : None;
8806 - def __init__(self, *args):
8807 """ 8808 __init__(lldb::SBSymbol self) -> SBSymbol 8809 __init__(lldb::SBSymbol self, SBSymbol rhs) -> SBSymbol 8810 """ 8811 this = _lldb.new_SBSymbol(*args) 8812 try: self.this.append(this) 8813 except: self.this = this
8814 - def IsValid(self):
8815 """IsValid(SBSymbol self) -> bool""" 8816 return _lldb.SBSymbol_IsValid(self)
8817
8818 - def __nonzero__(self):
8819 return _lldb.SBSymbol___nonzero__(self)
8820 __bool__ = __nonzero__ 8821 8822
8823 - def GetName(self):
8824 """GetName(SBSymbol self) -> char const *""" 8825 return _lldb.SBSymbol_GetName(self)
8826
8827 - def GetDisplayName(self):
8828 """GetDisplayName(SBSymbol self) -> char const *""" 8829 return _lldb.SBSymbol_GetDisplayName(self)
8830
8831 - def GetMangledName(self):
8832 """GetMangledName(SBSymbol self) -> char const *""" 8833 return _lldb.SBSymbol_GetMangledName(self)
8834
8835 - def GetInstructions(self, *args):
8836 """ 8837 GetInstructions(SBSymbol self, SBTarget target) -> SBInstructionList 8838 GetInstructions(SBSymbol self, SBTarget target, char const * flavor_string) -> SBInstructionList 8839 """ 8840 return _lldb.SBSymbol_GetInstructions(self, *args)
8841
8842 - def GetStartAddress(self):
8843 """GetStartAddress(SBSymbol self) -> SBAddress""" 8844 return _lldb.SBSymbol_GetStartAddress(self)
8845
8846 - def GetEndAddress(self):
8847 """GetEndAddress(SBSymbol self) -> SBAddress""" 8848 return _lldb.SBSymbol_GetEndAddress(self)
8849
8850 - def GetPrologueByteSize(self):
8851 """GetPrologueByteSize(SBSymbol self) -> uint32_t""" 8852 return _lldb.SBSymbol_GetPrologueByteSize(self)
8853
8854 - def GetType(self):
8855 """GetType(SBSymbol self) -> lldb::SymbolType""" 8856 return _lldb.SBSymbol_GetType(self)
8857
8858 - def GetDescription(self, *args):
8859 """GetDescription(SBSymbol self, SBStream description) -> bool""" 8860 return _lldb.SBSymbol_GetDescription(self, *args)
8861
8862 - def IsExternal(self):
8863 """IsExternal(SBSymbol self) -> bool""" 8864 return _lldb.SBSymbol_IsExternal(self)
8865
8866 - def IsSynthetic(self):
8867 """IsSynthetic(SBSymbol self) -> bool""" 8868 return _lldb.SBSymbol_IsSynthetic(self)
8869
8870 - def __eq__(self, *args):
8871 """__eq__(SBSymbol self, SBSymbol rhs) -> bool""" 8872 return _lldb.SBSymbol___eq__(self, *args)
8873
8874 - def __ne__(self, *args):
8875 """__ne__(SBSymbol self, SBSymbol rhs) -> bool""" 8876 return _lldb.SBSymbol___ne__(self, *args)
8877
8878 - def get_instructions_from_current_target (self):
8879 return self.GetInstructions (target)
8880 8881 __swig_getmethods__["name"] = GetName 8882 if _newclass: name = property(GetName, None, doc='''A read only property that returns the name for this symbol as a string.''') 8883 8884 __swig_getmethods__["mangled"] = GetMangledName 8885 if _newclass: mangled = property(GetMangledName, None, doc='''A read only property that returns the mangled (linkage) name for this symbol as a string.''') 8886 8887 __swig_getmethods__["type"] = GetType 8888 if _newclass: type = property(GetType, None, doc='''A read only property that returns an lldb enumeration value (see enumerations that start with "lldb.eSymbolType") that represents the type of this symbol.''') 8889 8890 __swig_getmethods__["addr"] = GetStartAddress 8891 if _newclass: addr = property(GetStartAddress, None, doc='''A read only property that returns an lldb object that represents the start address (lldb.SBAddress) for this symbol.''') 8892 8893 __swig_getmethods__["end_addr"] = GetEndAddress 8894 if _newclass: end_addr = property(GetEndAddress, None, doc='''A read only property that returns an lldb object that represents the end address (lldb.SBAddress) for this symbol.''') 8895 8896 __swig_getmethods__["prologue_size"] = GetPrologueByteSize 8897 if _newclass: prologue_size = property(GetPrologueByteSize, None, doc='''A read only property that returns the size in bytes of the prologue instructions as an unsigned integer.''') 8898 8899 __swig_getmethods__["instructions"] = get_instructions_from_current_target 8900 if _newclass: instructions = property(get_instructions_from_current_target, None, doc='''A read only property that returns an lldb object that represents the instructions (lldb.SBInstructionList) for this symbol.''') 8901 8902 __swig_getmethods__["external"] = IsExternal 8903 if _newclass: external = property(IsExternal, None, doc='''A read only property that returns a boolean value that indicates if this symbol is externally visiable (exported) from the module that contains it.''') 8904 8905 __swig_getmethods__["synthetic"] = IsSynthetic 8906 if _newclass: synthetic = property(IsSynthetic, None, doc='''A read only property that returns a boolean value that indicates if this symbol was synthetically created from information in module that contains it.''') 8907 8908 8909
8910 - def __str__(self):
8911 """__str__(SBSymbol self) -> PyObject *""" 8912 return _lldb.SBSymbol___str__(self)
8913
8914 - def __eq__(self, rhs):
8915 if not isinstance(rhs, type(self)): 8916 return False 8917 8918 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
8919
8920 - def __ne__(self, rhs):
8921 if not isinstance(rhs, type(self)): 8922 return True 8923 8924 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
8925 8926 SBSymbol_swigregister = _lldb.SBSymbol_swigregister 8927 SBSymbol_swigregister(SBSymbol)
8928 8929 -class SBSymbolContext(_object):
8930 """ 8931 A context object that provides access to core debugger entities. 8932 8933 Many debugger functions require a context when doing lookups. This class 8934 provides a common structure that can be used as the result of a query that 8935 can contain a single result. 8936 8937 For example, 8938 8939 exe = os.path.join(os.getcwd(), 'a.out') 8940 8941 # Create a target for the debugger. 8942 target = self.dbg.CreateTarget(exe) 8943 8944 # Now create a breakpoint on main.c by name 'c'. 8945 breakpoint = target.BreakpointCreateByName('c', 'a.out') 8946 8947 # Now launch the process, and do not stop at entry point. 8948 process = target.LaunchSimple(None, None, os.getcwd()) 8949 8950 # The inferior should stop on 'c'. 8951 from lldbutil import get_stopped_thread 8952 thread = get_stopped_thread(process, lldb.eStopReasonBreakpoint) 8953 frame0 = thread.GetFrameAtIndex(0) 8954 8955 # Now get the SBSymbolContext from this frame. We want everything. :-) 8956 context = frame0.GetSymbolContext(lldb.eSymbolContextEverything) 8957 8958 # Get the module. 8959 module = context.GetModule() 8960 ... 8961 8962 # And the compile unit associated with the frame. 8963 compileUnit = context.GetCompileUnit() 8964 ... 8965 8966 """ 8967 __swig_setmethods__ = {} 8968 __setattr__ = lambda self, name, value: _swig_setattr(self, SBSymbolContext, name, value) 8969 __swig_getmethods__ = {} 8970 __getattr__ = lambda self, name: _swig_getattr(self, SBSymbolContext, name) 8971 __repr__ = _swig_repr
8972 - def __init__(self, *args):
8973 """ 8974 __init__(lldb::SBSymbolContext self) -> SBSymbolContext 8975 __init__(lldb::SBSymbolContext self, SBSymbolContext rhs) -> SBSymbolContext 8976 """ 8977 this = _lldb.new_SBSymbolContext(*args) 8978 try: self.this.append(this) 8979 except: self.this = this
8980 __swig_destroy__ = _lldb.delete_SBSymbolContext 8981 __del__ = lambda self : None;
8982 - def IsValid(self):
8983 """IsValid(SBSymbolContext self) -> bool""" 8984 return _lldb.SBSymbolContext_IsValid(self)
8985
8986 - def __nonzero__(self):
8987 return _lldb.SBSymbolContext___nonzero__(self)
8988 __bool__ = __nonzero__ 8989 8990
8991 - def GetModule(self):
8992 """GetModule(SBSymbolContext self) -> SBModule""" 8993 return _lldb.SBSymbolContext_GetModule(self)
8994
8995 - def GetCompileUnit(self):
8996 """GetCompileUnit(SBSymbolContext self) -> SBCompileUnit""" 8997 return _lldb.SBSymbolContext_GetCompileUnit(self)
8998
8999 - def GetFunction(self):
9000 """GetFunction(SBSymbolContext self) -> SBFunction""" 9001 return _lldb.SBSymbolContext_GetFunction(self)
9002
9003 - def GetBlock(self):
9004 """GetBlock(SBSymbolContext self) -> SBBlock""" 9005 return _lldb.SBSymbolContext_GetBlock(self)
9006
9007 - def GetLineEntry(self):
9008 """GetLineEntry(SBSymbolContext self) -> SBLineEntry""" 9009 return _lldb.SBSymbolContext_GetLineEntry(self)
9010
9011 - def GetSymbol(self):
9012 """GetSymbol(SBSymbolContext self) -> SBSymbol""" 9013 return _lldb.SBSymbolContext_GetSymbol(self)
9014
9015 - def SetModule(self, *args):
9016 """SetModule(SBSymbolContext self, SBModule module)""" 9017 return _lldb.SBSymbolContext_SetModule(self, *args)
9018
9019 - def SetCompileUnit(self, *args):
9020 """SetCompileUnit(SBSymbolContext self, SBCompileUnit compile_unit)""" 9021 return _lldb.SBSymbolContext_SetCompileUnit(self, *args)
9022
9023 - def SetFunction(self, *args):
9024 """SetFunction(SBSymbolContext self, SBFunction function)""" 9025 return _lldb.SBSymbolContext_SetFunction(self, *args)
9026
9027 - def SetBlock(self, *args):
9028 """SetBlock(SBSymbolContext self, SBBlock block)""" 9029 return _lldb.SBSymbolContext_SetBlock(self, *args)
9030
9031 - def SetLineEntry(self, *args):
9032 """SetLineEntry(SBSymbolContext self, SBLineEntry line_entry)""" 9033 return _lldb.SBSymbolContext_SetLineEntry(self, *args)
9034
9035 - def SetSymbol(self, *args):
9036 """SetSymbol(SBSymbolContext self, SBSymbol symbol)""" 9037 return _lldb.SBSymbolContext_SetSymbol(self, *args)
9038
9039 - def GetParentOfInlinedScope(self, *args):
9040 """GetParentOfInlinedScope(SBSymbolContext self, SBAddress curr_frame_pc, SBAddress parent_frame_addr) -> SBSymbolContext""" 9041 return _lldb.SBSymbolContext_GetParentOfInlinedScope(self, *args)
9042
9043 - def GetDescription(self, *args):
9044 """GetDescription(SBSymbolContext self, SBStream description) -> bool""" 9045 return _lldb.SBSymbolContext_GetDescription(self, *args)
9046 9047 __swig_getmethods__["module"] = GetModule 9048 __swig_setmethods__["module"] = SetModule 9049 if _newclass: module = property(GetModule, SetModule, doc='''A read/write property that allows the getting/setting of the module (lldb.SBModule) in this symbol context.''') 9050 9051 __swig_getmethods__["compile_unit"] = GetCompileUnit 9052 __swig_setmethods__["compile_unit"] = SetCompileUnit 9053 if _newclass: compile_unit = property(GetCompileUnit, SetCompileUnit, doc='''A read/write property that allows the getting/setting of the compile unit (lldb.SBCompileUnit) in this symbol context.''') 9054 9055 __swig_getmethods__["function"] = GetFunction 9056 __swig_setmethods__["function"] = SetFunction 9057 if _newclass: function = property(GetFunction, SetFunction, doc='''A read/write property that allows the getting/setting of the function (lldb.SBFunction) in this symbol context.''') 9058 9059 __swig_getmethods__["block"] = GetBlock 9060 __swig_setmethods__["block"] = SetBlock 9061 if _newclass: block = property(GetBlock, SetBlock, doc='''A read/write property that allows the getting/setting of the block (lldb.SBBlock) in this symbol context.''') 9062 9063 __swig_getmethods__["symbol"] = GetSymbol 9064 __swig_setmethods__["symbol"] = SetSymbol 9065 if _newclass: symbol = property(GetSymbol, SetSymbol, doc='''A read/write property that allows the getting/setting of the symbol (lldb.SBSymbol) in this symbol context.''') 9066 9067 __swig_getmethods__["line_entry"] = GetLineEntry 9068 __swig_setmethods__["line_entry"] = SetLineEntry 9069 if _newclass: line_entry = property(GetLineEntry, SetLineEntry, doc='''A read/write property that allows the getting/setting of the line entry (lldb.SBLineEntry) in this symbol context.''') 9070
9071 - def __str__(self):
9072 """__str__(SBSymbolContext self) -> PyObject *""" 9073 return _lldb.SBSymbolContext___str__(self)
9074 9075 SBSymbolContext_swigregister = _lldb.SBSymbolContext_swigregister 9076 SBSymbolContext_swigregister(SBSymbolContext)
9077 9078 -class SBSymbolContextList(_object):
9079 """ 9080 Represents a list of symbol context object. See also SBSymbolContext. 9081 9082 For example (from test/python_api/target/TestTargetAPI.py), 9083 9084 def find_functions(self, exe_name): 9085 '''Exercise SBTaget.FindFunctions() API.''' 9086 exe = os.path.join(os.getcwd(), exe_name) 9087 9088 # Create a target by the debugger. 9089 target = self.dbg.CreateTarget(exe) 9090 self.assertTrue(target, VALID_TARGET) 9091 9092 list = lldb.SBSymbolContextList() 9093 num = target.FindFunctions('c', lldb.eFunctionNameTypeAuto, False, list) 9094 self.assertTrue(num == 1 and list.GetSize() == 1) 9095 9096 for sc in list: 9097 self.assertTrue(sc.GetModule().GetFileSpec().GetFilename() == exe_name) 9098 self.assertTrue(sc.GetSymbol().GetName() == 'c') 9099 """ 9100 __swig_setmethods__ = {} 9101 __setattr__ = lambda self, name, value: _swig_setattr(self, SBSymbolContextList, name, value) 9102 __swig_getmethods__ = {} 9103 __getattr__ = lambda self, name: _swig_getattr(self, SBSymbolContextList, name) 9104 __repr__ = _swig_repr
9105 - def __init__(self, *args):
9106 """ 9107 __init__(lldb::SBSymbolContextList self) -> SBSymbolContextList 9108 __init__(lldb::SBSymbolContextList self, SBSymbolContextList rhs) -> SBSymbolContextList 9109 """ 9110 this = _lldb.new_SBSymbolContextList(*args) 9111 try: self.this.append(this) 9112 except: self.this = this
9113 __swig_destroy__ = _lldb.delete_SBSymbolContextList 9114 __del__ = lambda self : None;
9115 - def IsValid(self):
9116 """IsValid(SBSymbolContextList self) -> bool""" 9117 return _lldb.SBSymbolContextList_IsValid(self)
9118
9119 - def __nonzero__(self):
9120 return _lldb.SBSymbolContextList___nonzero__(self)
9121 __bool__ = __nonzero__ 9122 9123
9124 - def GetSize(self):
9125 """GetSize(SBSymbolContextList self) -> uint32_t""" 9126 return _lldb.SBSymbolContextList_GetSize(self)
9127
9128 - def GetContextAtIndex(self, *args):
9129 """GetContextAtIndex(SBSymbolContextList self, uint32_t idx) -> SBSymbolContext""" 9130 return _lldb.SBSymbolContextList_GetContextAtIndex(self, *args)
9131
9132 - def Append(self, *args):
9133 """ 9134 Append(SBSymbolContextList self, SBSymbolContext sc) 9135 Append(SBSymbolContextList self, SBSymbolContextList sc_list) 9136 """ 9137 return _lldb.SBSymbolContextList_Append(self, *args)
9138
9139 - def GetDescription(self, *args):
9140 """GetDescription(SBSymbolContextList self, SBStream description) -> bool""" 9141 return _lldb.SBSymbolContextList_GetDescription(self, *args)
9142
9143 - def Clear(self):
9144 """Clear(SBSymbolContextList self)""" 9145 return _lldb.SBSymbolContextList_Clear(self)
9146
9147 - def __iter__(self):
9148 '''Iterate over all symbol contexts in a lldb.SBSymbolContextList 9149 object.''' 9150 return lldb_iter(self, 'GetSize', 'GetContextAtIndex')
9151
9152 - def __len__(self):
9153 return int(self.GetSize())
9154
9155 - def __getitem__(self, key):
9156 count = len(self) 9157 if type(key) is int: 9158 if key < count: 9159 return self.GetContextAtIndex(key) 9160 else: 9161 raise IndexError 9162 raise TypeError
9163
9164 - def get_module_array(self):
9165 a = [] 9166 for i in range(len(self)): 9167 obj = self.GetContextAtIndex(i).module 9168 if obj: 9169 a.append(obj) 9170 return a
9171
9172 - def get_compile_unit_array(self):
9173 a = [] 9174 for i in range(len(self)): 9175 obj = self.GetContextAtIndex(i).compile_unit 9176 if obj: 9177 a.append(obj) 9178 return a
9179 - def get_function_array(self):
9180 a = [] 9181 for i in range(len(self)): 9182 obj = self.GetContextAtIndex(i).function 9183 if obj: 9184 a.append(obj) 9185 return a
9186 - def get_block_array(self):
9187 a = [] 9188 for i in range(len(self)): 9189 obj = self.GetContextAtIndex(i).block 9190 if obj: 9191 a.append(obj) 9192 return a
9193 - def get_symbol_array(self):
9194 a = [] 9195 for i in range(len(self)): 9196 obj = self.GetContextAtIndex(i).symbol 9197 if obj: 9198 a.append(obj) 9199 return a
9200 - def get_line_entry_array(self):
9201 a = [] 9202 for i in range(len(self)): 9203 obj = self.GetContextAtIndex(i).line_entry 9204 if obj: 9205 a.append(obj) 9206 return a
9207 __swig_getmethods__["modules"] = get_module_array 9208 if _newclass: 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.''') 9209 9210 __swig_getmethods__["compile_units"] = get_compile_unit_array 9211 if _newclass: 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.''') 9212 9213 __swig_getmethods__["functions"] = get_function_array 9214 if _newclass: 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.''') 9215 9216 __swig_getmethods__["blocks"] = get_block_array 9217 if _newclass: 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.''') 9218 9219 __swig_getmethods__["line_entries"] = get_line_entry_array 9220 if _newclass: 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.''') 9221 9222 __swig_getmethods__["symbols"] = get_symbol_array 9223 if _newclass: 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.''') 9224
9225 - def __str__(self):
9226 """__str__(SBSymbolContextList self) -> PyObject *""" 9227 return _lldb.SBSymbolContextList___str__(self)
9228 9229 SBSymbolContextList_swigregister = _lldb.SBSymbolContextList_swigregister 9230 SBSymbolContextList_swigregister(SBSymbolContextList)
9231 9232 -class SBTarget(_object):
9233 """ 9234 Represents the target program running under the debugger. 9235 9236 SBTarget supports module, breakpoint, and watchpoint iterations. For example, 9237 9238 for m in target.module_iter(): 9239 print m 9240 9241 produces: 9242 9243 (x86_64) /Volumes/data/lldb/svn/trunk/test/python_api/lldbutil/iter/a.out 9244 (x86_64) /usr/lib/dyld 9245 (x86_64) /usr/lib/libstdc++.6.dylib 9246 (x86_64) /usr/lib/libSystem.B.dylib 9247 (x86_64) /usr/lib/system/libmathCommon.A.dylib 9248 (x86_64) /usr/lib/libSystem.B.dylib(__commpage) 9249 9250 and, 9251 9252 for b in target.breakpoint_iter(): 9253 print b 9254 9255 produces: 9256 9257 SBBreakpoint: id = 1, file ='main.cpp', line = 66, locations = 1 9258 SBBreakpoint: id = 2, file ='main.cpp', line = 85, locations = 1 9259 9260 and, 9261 9262 for wp_loc in target.watchpoint_iter(): 9263 print wp_loc 9264 9265 produces: 9266 9267 Watchpoint 1: addr = 0x1034ca048 size = 4 state = enabled type = rw 9268 declare @ '/Volumes/data/lldb/svn/trunk/test/python_api/watchpoint/main.c:12' 9269 hw_index = 0 hit_count = 2 ignore_count = 0 9270 """ 9271 __swig_setmethods__ = {} 9272 __setattr__ = lambda self, name, value: _swig_setattr(self, SBTarget, name, value) 9273 __swig_getmethods__ = {} 9274 __getattr__ = lambda self, name: _swig_getattr(self, SBTarget, name) 9275 __repr__ = _swig_repr 9276 eBroadcastBitBreakpointChanged = _lldb.SBTarget_eBroadcastBitBreakpointChanged 9277 eBroadcastBitModulesLoaded = _lldb.SBTarget_eBroadcastBitModulesLoaded 9278 eBroadcastBitModulesUnloaded = _lldb.SBTarget_eBroadcastBitModulesUnloaded 9279 eBroadcastBitWatchpointChanged = _lldb.SBTarget_eBroadcastBitWatchpointChanged 9280 eBroadcastBitSymbolsLoaded = _lldb.SBTarget_eBroadcastBitSymbolsLoaded
9281 - def __init__(self, *args):
9282 """ 9283 __init__(lldb::SBTarget self) -> SBTarget 9284 __init__(lldb::SBTarget self, SBTarget rhs) -> SBTarget 9285 """ 9286 this = _lldb.new_SBTarget(*args) 9287 try: self.this.append(this) 9288 except: self.this = this
9289 __swig_destroy__ = _lldb.delete_SBTarget 9290 __del__ = lambda self : None;
9291 - def GetBroadcasterClassName():
9292 """GetBroadcasterClassName() -> char const *""" 9293 return _lldb.SBTarget_GetBroadcasterClassName()
9294 9295 if _newclass:GetBroadcasterClassName = staticmethod(GetBroadcasterClassName) 9296 __swig_getmethods__["GetBroadcasterClassName"] = lambda x: GetBroadcasterClassName
9297 - def IsValid(self):
9298 """IsValid(SBTarget self) -> bool""" 9299 return _lldb.SBTarget_IsValid(self)
9300
9301 - def __nonzero__(self):
9302 return _lldb.SBTarget___nonzero__(self)
9303 __bool__ = __nonzero__ 9304 9305
9306 - def EventIsTargetEvent(*args):
9307 """EventIsTargetEvent(SBEvent event) -> bool""" 9308 return _lldb.SBTarget_EventIsTargetEvent(*args)
9309 9310 if _newclass:EventIsTargetEvent = staticmethod(EventIsTargetEvent) 9311 __swig_getmethods__["EventIsTargetEvent"] = lambda x: EventIsTargetEvent
9312 - def GetTargetFromEvent(*args):
9313 """GetTargetFromEvent(SBEvent event) -> SBTarget""" 9314 return _lldb.SBTarget_GetTargetFromEvent(*args)
9315 9316 if _newclass:GetTargetFromEvent = staticmethod(GetTargetFromEvent) 9317 __swig_getmethods__["GetTargetFromEvent"] = lambda x: GetTargetFromEvent
9318 - def GetNumModulesFromEvent(*args):
9319 """GetNumModulesFromEvent(SBEvent event) -> uint32_t""" 9320 return _lldb.SBTarget_GetNumModulesFromEvent(*args)
9321 9322 if _newclass:GetNumModulesFromEvent = staticmethod(GetNumModulesFromEvent) 9323 __swig_getmethods__["GetNumModulesFromEvent"] = lambda x: GetNumModulesFromEvent
9324 - def GetModuleAtIndexFromEvent(*args):
9325 """GetModuleAtIndexFromEvent(uint32_t const idx, SBEvent event) -> SBModule""" 9326 return _lldb.SBTarget_GetModuleAtIndexFromEvent(*args)
9327 9328 if _newclass:GetModuleAtIndexFromEvent = staticmethod(GetModuleAtIndexFromEvent) 9329 __swig_getmethods__["GetModuleAtIndexFromEvent"] = lambda x: GetModuleAtIndexFromEvent
9330 - def GetProcess(self):
9331 """GetProcess(SBTarget self) -> SBProcess""" 9332 return _lldb.SBTarget_GetProcess(self)
9333
9334 - def GetPlatform(self):
9335 """ 9336 GetPlatform(SBTarget self) -> SBPlatform 9337 9338 Return the platform object associated with the target. 9339 9340 After return, the platform object should be checked for 9341 validity. 9342 9343 @return 9344 A platform object. 9345 """ 9346 return _lldb.SBTarget_GetPlatform(self)
9347
9348 - def Install(self):
9349 """ 9350 Install(SBTarget self) -> SBError 9351 9352 Install any binaries that need to be installed. 9353 9354 This function does nothing when debugging on the host system. 9355 When connected to remote platforms, the target's main executable 9356 and any modules that have their install path set will be 9357 installed on the remote platform. If the main executable doesn't 9358 have an install location set, it will be installed in the remote 9359 platform's working directory. 9360 9361 @return 9362 An error describing anything that went wrong during 9363 installation. 9364 """ 9365 return _lldb.SBTarget_Install(self)
9366
9367 - def LaunchSimple(self, *args):
9368 """ 9369 LaunchSimple(SBTarget self, char const ** argv, char const ** envp, char const * working_directory) -> SBProcess 9370 9371 Launch a new process with sensible defaults. 9372 9373 @param[in] argv 9374 The argument array. 9375 9376 @param[in] envp 9377 The environment array. 9378 9379 @param[in] working_directory 9380 The working directory to have the child process run in 9381 9382 Default: listener 9383 Set to the target's debugger (SBTarget::GetDebugger()) 9384 9385 Default: launch_flags 9386 Empty launch flags 9387 9388 Default: stdin_path 9389 Default: stdout_path 9390 Default: stderr_path 9391 A pseudo terminal will be used. 9392 9393 @return 9394 A process object for the newly created process. 9395 9396 For example, 9397 9398 process = target.LaunchSimple(['X', 'Y', 'Z'], None, os.getcwd()) 9399 9400 launches a new process by passing 'X', 'Y', 'Z' as the args to the 9401 executable. 9402 """ 9403 return _lldb.SBTarget_LaunchSimple(self, *args)
9404
9405 - def Launch(self, *args):
9406 """ 9407 Launch(SBTarget self, SBListener listener, char const ** argv, char const ** envp, char const * stdin_path, 9408 char const * stdout_path, char const * stderr_path, char const * working_directory, 9409 uint32_t launch_flags, bool stop_at_entry, SBError error) -> SBProcess 9410 Launch(SBTarget self, SBLaunchInfo launch_info, SBError error) -> SBProcess 9411 9412 Launch a new process. 9413 9414 Launch a new process by spawning a new process using the 9415 target object's executable module's file as the file to launch. 9416 Arguments are given in argv, and the environment variables 9417 are in envp. Standard input and output files can be 9418 optionally re-directed to stdin_path, stdout_path, and 9419 stderr_path. 9420 9421 @param[in] listener 9422 An optional listener that will receive all process events. 9423 If listener is valid then listener will listen to all 9424 process events. If not valid, then this target's debugger 9425 (SBTarget::GetDebugger()) will listen to all process events. 9426 9427 @param[in] argv 9428 The argument array. 9429 9430 @param[in] envp 9431 The environment array. 9432 9433 @param[in] launch_flags 9434 Flags to modify the launch (@see lldb::LaunchFlags) 9435 9436 @param[in] stdin_path 9437 The path to use when re-directing the STDIN of the new 9438 process. If all stdXX_path arguments are NULL, a pseudo 9439 terminal will be used. 9440 9441 @param[in] stdout_path 9442 The path to use when re-directing the STDOUT of the new 9443 process. If all stdXX_path arguments are NULL, a pseudo 9444 terminal will be used. 9445 9446 @param[in] stderr_path 9447 The path to use when re-directing the STDERR of the new 9448 process. If all stdXX_path arguments are NULL, a pseudo 9449 terminal will be used. 9450 9451 @param[in] working_directory 9452 The working directory to have the child process run in 9453 9454 @param[in] launch_flags 9455 Some launch options specified by logical OR'ing 9456 lldb::LaunchFlags enumeration values together. 9457 9458 @param[in] stop_at_entry 9459 If false do not stop the inferior at the entry point. 9460 9461 @param[out] 9462 An error object. Contains the reason if there is some failure. 9463 9464 @return 9465 A process object for the newly created process. 9466 9467 For example, 9468 9469 process = target.Launch(self.dbg.GetListener(), None, None, 9470 None, '/tmp/stdout.txt', None, 9471 None, 0, False, error) 9472 9473 launches a new process by passing nothing for both the args and the envs 9474 and redirect the standard output of the inferior to the /tmp/stdout.txt 9475 file. It does not specify a working directory so that the debug server 9476 will use its idea of what the current working directory is for the 9477 inferior. Also, we ask the debugger not to stop the inferior at the 9478 entry point. If no breakpoint is specified for the inferior, it should 9479 run to completion if no user interaction is required. 9480 """ 9481 return _lldb.SBTarget_Launch(self, *args)
9482
9483 - def LoadCore(self, *args):
9484 """ 9485 LoadCore(SBTarget self, char const * core_file) -> SBProcess 9486 LoadCore(SBTarget self, char const * core_file, SBError error) -> SBProcess 9487 9488 Load a core file 9489 9490 @param[in] core_file 9491 File path of the core dump. 9492 9493 @param[out] error 9494 An error explaining what went wrong if the operation fails. 9495 (Optional) 9496 9497 @return 9498 A process object for the newly created core file. 9499 9500 For example, 9501 9502 process = target.LoadCore('./a.out.core') 9503 9504 loads a new core file and returns the process object. 9505 """ 9506 return _lldb.SBTarget_LoadCore(self, *args)
9507
9508 - def Attach(self, *args):
9509 """Attach(SBTarget self, SBAttachInfo attach_info, SBError error) -> SBProcess""" 9510 return _lldb.SBTarget_Attach(self, *args)
9511
9512 - def AttachToProcessWithID(self, *args):
9513 """ 9514 AttachToProcessWithID(SBTarget self, SBListener listener, lldb::pid_t pid, SBError error) -> SBProcess 9515 9516 Attach to process with pid. 9517 9518 @param[in] listener 9519 An optional listener that will receive all process events. 9520 If listener is valid then listener will listen to all 9521 process events. If not valid, then this target's debugger 9522 (SBTarget::GetDebugger()) will listen to all process events. 9523 9524 @param[in] pid 9525 The process ID to attach to. 9526 9527 @param[out] 9528 An error explaining what went wrong if attach fails. 9529 9530 @return 9531 A process object for the attached process. 9532 """ 9533 return _lldb.SBTarget_AttachToProcessWithID(self, *args)
9534
9535 - def AttachToProcessWithName(self, *args):
9536 """ 9537 AttachToProcessWithName(SBTarget self, SBListener listener, char const * name, bool wait_for, SBError error) -> SBProcess 9538 9539 Attach to process with name. 9540 9541 @param[in] listener 9542 An optional listener that will receive all process events. 9543 If listener is valid then listener will listen to all 9544 process events. If not valid, then this target's debugger 9545 (SBTarget::GetDebugger()) will listen to all process events. 9546 9547 @param[in] name 9548 Basename of process to attach to. 9549 9550 @param[in] wait_for 9551 If true wait for a new instance of 'name' to be launched. 9552 9553 @param[out] 9554 An error explaining what went wrong if attach fails. 9555 9556 @return 9557 A process object for the attached process. 9558 """ 9559 return _lldb.SBTarget_AttachToProcessWithName(self, *args)
9560
9561 - def ConnectRemote(self, *args):
9562 """ 9563 ConnectRemote(SBTarget self, SBListener listener, char const * url, char const * plugin_name, SBError error) -> SBProcess 9564 9565 Connect to a remote debug server with url. 9566 9567 @param[in] listener 9568 An optional listener that will receive all process events. 9569 If listener is valid then listener will listen to all 9570 process events. If not valid, then this target's debugger 9571 (SBTarget::GetDebugger()) will listen to all process events. 9572 9573 @param[in] url 9574 The url to connect to, e.g., 'connect://localhost:12345'. 9575 9576 @param[in] plugin_name 9577 The plugin name to be used; can be NULL. 9578 9579 @param[out] 9580 An error explaining what went wrong if the connect fails. 9581 9582 @return 9583 A process object for the connected process. 9584 """ 9585 return _lldb.SBTarget_ConnectRemote(self, *args)
9586
9587 - def GetExecutable(self):
9588 """GetExecutable(SBTarget self) -> SBFileSpec""" 9589 return _lldb.SBTarget_GetExecutable(self)
9590
9591 - def AppendImageSearchPath(self, *args):
9592 """ 9593 AppendImageSearchPath(SBTarget self, char const * _from, char const * to, SBError error) 9594 9595 Append the path mapping (from -> to) to the target's paths mapping list. 9596 """ 9597 return _lldb.SBTarget_AppendImageSearchPath(self, *args)
9598
9599 - def AddModule(self, *args):
9600 """ 9601 AddModule(SBTarget self, SBModule module) -> bool 9602 AddModule(SBTarget self, char const * path, char const * triple, char const * uuid) -> SBModule 9603 AddModule(SBTarget self, char const * path, char const * triple, char const * uuid_cstr, char const * symfile) -> SBModule 9604 AddModule(SBTarget self, SBModuleSpec module_spec) -> SBModule 9605 """ 9606 return _lldb.SBTarget_AddModule(self, *args)
9607
9608 - def GetNumModules(self):
9609 """GetNumModules(SBTarget self) -> uint32_t""" 9610 return _lldb.SBTarget_GetNumModules(self)
9611
9612 - def GetModuleAtIndex(self, *args):
9613 """GetModuleAtIndex(SBTarget self, uint32_t idx) -> SBModule""" 9614 return _lldb.SBTarget_GetModuleAtIndex(self, *args)
9615
9616 - def RemoveModule(self, *args):
9617 """RemoveModule(SBTarget self, SBModule module) -> bool""" 9618 return _lldb.SBTarget_RemoveModule(self, *args)
9619
9620 - def GetDebugger(self):
9621 """GetDebugger(SBTarget self) -> SBDebugger""" 9622 return _lldb.SBTarget_GetDebugger(self)
9623
9624 - def FindModule(self, *args):
9625 """FindModule(SBTarget self, SBFileSpec file_spec) -> SBModule""" 9626 return _lldb.SBTarget_FindModule(self, *args)
9627
9628 - def FindCompileUnits(self, *args):
9629 """ 9630 FindCompileUnits(SBTarget self, SBFileSpec sb_file_spec) -> SBSymbolContextList 9631 9632 Find compile units related to *this target and passed source 9633 file. 9634 9635 @param[in] sb_file_spec 9636 A lldb::SBFileSpec object that contains source file 9637 specification. 9638 9639 @return 9640 A lldb::SBSymbolContextList that gets filled in with all of 9641 the symbol contexts for all the matches. 9642 """ 9643 return _lldb.SBTarget_FindCompileUnits(self, *args)
9644
9645 - def GetByteOrder(self):
9646 """GetByteOrder(SBTarget self) -> lldb::ByteOrder""" 9647 return _lldb.SBTarget_GetByteOrder(self)
9648
9649 - def GetAddressByteSize(self):
9650 """GetAddressByteSize(SBTarget self) -> uint32_t""" 9651 return _lldb.SBTarget_GetAddressByteSize(self)
9652
9653 - def GetTriple(self):
9654 """GetTriple(SBTarget self) -> char const *""" 9655 return _lldb.SBTarget_GetTriple(self)
9656
9657 - def GetDataByteSize(self):
9658 """ 9659 GetDataByteSize(SBTarget self) -> uint32_t 9660 9661 Architecture data byte width accessor 9662 9663 @return 9664 The size in 8-bit (host) bytes of a minimum addressable 9665 unit from the Architecture's data bus 9666 """ 9667 return _lldb.SBTarget_GetDataByteSize(self)
9668
9669 - def GetCodeByteSize(self):
9670 """ 9671 GetCodeByteSize(SBTarget self) -> uint32_t 9672 9673 Architecture code byte width accessor 9674 9675 @return 9676 The size in 8-bit (host) bytes of a minimum addressable 9677 unit from the Architecture's code bus 9678 """ 9679 return _lldb.SBTarget_GetCodeByteSize(self)
9680
9681 - def SetSectionLoadAddress(self, *args):
9682 """SetSectionLoadAddress(SBTarget self, SBSection section, lldb::addr_t section_base_addr) -> SBError""" 9683 return _lldb.SBTarget_SetSectionLoadAddress(self, *args)
9684
9685 - def ClearSectionLoadAddress(self, *args):
9686 """ClearSectionLoadAddress(SBTarget self, SBSection section) -> SBError""" 9687 return _lldb.SBTarget_ClearSectionLoadAddress(self, *args)
9688
9689 - def SetModuleLoadAddress(self, *args):
9690 """SetModuleLoadAddress(SBTarget self, SBModule module, int64_t sections_offset) -> SBError""" 9691 return _lldb.SBTarget_SetModuleLoadAddress(self, *args)
9692
9693 - def ClearModuleLoadAddress(self, *args):
9694 """ClearModuleLoadAddress(SBTarget self, SBModule module) -> SBError""" 9695 return _lldb.SBTarget_ClearModuleLoadAddress(self, *args)
9696
9697 - def FindFunctions(self, *args):
9698 """ 9699 FindFunctions(SBTarget self, char const * name, uint32_t name_type_mask=eFunctionNameTypeAny) -> SBSymbolContextList 9700 FindFunctions(SBTarget self, char const * name) -> SBSymbolContextList 9701 9702 Find functions by name. 9703 9704 @param[in] name 9705 The name of the function we are looking for. 9706 9707 @param[in] name_type_mask 9708 A logical OR of one or more FunctionNameType enum bits that 9709 indicate what kind of names should be used when doing the 9710 lookup. Bits include fully qualified names, base names, 9711 C++ methods, or ObjC selectors. 9712 See FunctionNameType for more details. 9713 9714 @return 9715 A lldb::SBSymbolContextList that gets filled in with all of 9716 the symbol contexts for all the matches. 9717 """ 9718 return _lldb.SBTarget_FindFunctions(self, *args)
9719
9720 - def FindFirstType(self, *args):
9721 """FindFirstType(SBTarget self, char const * type) -> SBType""" 9722 return _lldb.SBTarget_FindFirstType(self, *args)
9723
9724 - def FindTypes(self, *args):
9725 """FindTypes(SBTarget self, char const * type) -> SBTypeList""" 9726 return _lldb.SBTarget_FindTypes(self, *args)
9727
9728 - def GetBasicType(self, *args):
9729 """GetBasicType(SBTarget self, lldb::BasicType type) -> SBType""" 9730 return _lldb.SBTarget_GetBasicType(self, *args)
9731
9732 - def GetSourceManager(self):
9733 """GetSourceManager(SBTarget self) -> SBSourceManager""" 9734 return _lldb.SBTarget_GetSourceManager(self)
9735
9736 - def FindFirstGlobalVariable(self, *args):
9737 """ 9738 FindFirstGlobalVariable(SBTarget self, char const * name) -> SBValue 9739 9740 Find the first global (or static) variable by name. 9741 9742 @param[in] name 9743 The name of the global or static variable we are looking 9744 for. 9745 9746 @return 9747 An SBValue that gets filled in with the found variable (if any). 9748 """ 9749 return _lldb.SBTarget_FindFirstGlobalVariable(self, *args)
9750
9751 - def FindGlobalVariables(self, *args):
9752 """ 9753 FindGlobalVariables(SBTarget self, char const * name, uint32_t max_matches) -> SBValueList 9754 FindGlobalVariables(SBTarget self, char const * name, uint32_t max_matches, lldb::MatchType matchtype) -> SBValueList 9755 9756 Find global and static variables by name. 9757 9758 @param[in] name 9759 The name of the global or static variable we are looking 9760 for. 9761 9762 @param[in] max_matches 9763 Allow the number of matches to be limited to max_matches. 9764 9765 @return 9766 A list of matched variables in an SBValueList. 9767 """ 9768 return _lldb.SBTarget_FindGlobalVariables(self, *args)
9769
9770 - def FindGlobalFunctions(self, *args):
9771 """FindGlobalFunctions(SBTarget self, char const * name, uint32_t max_matches, lldb::MatchType matchtype) -> SBSymbolContextList""" 9772 return _lldb.SBTarget_FindGlobalFunctions(self, *args)
9773
9774 - def Clear(self):
9775 """Clear(SBTarget self)""" 9776 return _lldb.SBTarget_Clear(self)
9777
9778 - def ResolveFileAddress(self, *args):
9779 """ 9780 ResolveFileAddress(SBTarget self, lldb::addr_t file_addr) -> SBAddress 9781 9782 Resolve a current file address into a section offset address. 9783 9784 @param[in] file_addr 9785 9786 @return 9787 An SBAddress which will be valid if... 9788 """ 9789 return _lldb.SBTarget_ResolveFileAddress(self, *args)
9790
9791 - def ResolveLoadAddress(self, *args):
9792 """ResolveLoadAddress(SBTarget self, lldb::addr_t vm_addr) -> SBAddress""" 9793 return _lldb.SBTarget_ResolveLoadAddress(self, *args)
9794
9795 - def ResolvePastLoadAddress(self, *args):
9796 """ResolvePastLoadAddress(SBTarget self, uint32_t stop_id, lldb::addr_t vm_addr) -> SBAddress""" 9797 return _lldb.SBTarget_ResolvePastLoadAddress(self, *args)
9798
9799 - def ResolveSymbolContextForAddress(self, *args):
9800 """ResolveSymbolContextForAddress(SBTarget self, SBAddress addr, uint32_t resolve_scope) -> SBSymbolContext""" 9801 return _lldb.SBTarget_ResolveSymbolContextForAddress(self, *args)
9802
9803 - def ReadMemory(self, *args):
9804 """ 9805 ReadMemory(SBTarget self, SBAddress addr, void * buf, SBError error) -> size_t 9806 9807 Read target memory. If a target process is running then memory 9808 is read from here. Otherwise the memory is read from the object 9809 files. For a target whose bytes are sized as a multiple of host 9810 bytes, the data read back will preserve the target's byte order. 9811 9812 @param[in] addr 9813 A target address to read from. 9814 9815 @param[out] buf 9816 The buffer to read memory into. 9817 9818 @param[in] size 9819 The maximum number of host bytes to read in the buffer passed 9820 into this call 9821 9822 @param[out] error 9823 Error information is written here if the memory read fails. 9824 9825 @return 9826 The amount of data read in host bytes. 9827 """ 9828 return _lldb.SBTarget_ReadMemory(self, *args)
9829
9830 - def BreakpointCreateByLocation(self, *args):
9831 """ 9832 BreakpointCreateByLocation(SBTarget self, char const * file, uint32_t line) -> SBBreakpoint 9833 BreakpointCreateByLocation(SBTarget self, SBFileSpec file_spec, uint32_t line) -> SBBreakpoint 9834 BreakpointCreateByLocation(SBTarget self, SBFileSpec file_spec, uint32_t line, lldb::addr_t offset) -> SBBreakpoint 9835 BreakpointCreateByLocation(SBTarget self, SBFileSpec file_spec, uint32_t line, lldb::addr_t offset, SBFileSpecList module_list) -> SBBreakpoint 9836 BreakpointCreateByLocation(SBTarget self, SBFileSpec file_spec, uint32_t line, uint32_t column, lldb::addr_t offset, SBFileSpecList module_list) -> SBBreakpoint 9837 """ 9838 return _lldb.SBTarget_BreakpointCreateByLocation(self, *args)
9839
9840 - def BreakpointCreateByName(self, *args):
9841 """ 9842 BreakpointCreateByName(SBTarget self, char const * symbol_name, char const * module_name=None) -> SBBreakpoint 9843 BreakpointCreateByName(SBTarget self, char const * symbol_name) -> SBBreakpoint 9844 BreakpointCreateByName(SBTarget self, char const * symbol_name, uint32_t func_name_type, SBFileSpecList module_list, SBFileSpecList comp_unit_list) -> SBBreakpoint 9845 BreakpointCreateByName(SBTarget self, char const * symbol_name, uint32_t func_name_type, lldb::LanguageType symbol_language, 9846 SBFileSpecList module_list, SBFileSpecList comp_unit_list) -> SBBreakpoint 9847 """ 9848 return _lldb.SBTarget_BreakpointCreateByName(self, *args)
9849
9850 - def BreakpointCreateByNames(self, *args):
9851 """ 9852 BreakpointCreateByNames(SBTarget self, char const ** symbol_name, uint32_t name_type_mask, SBFileSpecList module_list, SBFileSpecList comp_unit_list) -> SBBreakpoint 9853 BreakpointCreateByNames(SBTarget self, char const ** symbol_name, uint32_t name_type_mask, lldb::LanguageType symbol_language, 9854 SBFileSpecList module_list, SBFileSpecList comp_unit_list) -> SBBreakpoint 9855 BreakpointCreateByNames(SBTarget self, char const ** symbol_name, uint32_t name_type_mask, lldb::LanguageType symbol_language, 9856 lldb::addr_t offset, SBFileSpecList module_list, SBFileSpecList comp_unit_list) -> SBBreakpoint 9857 """ 9858 return _lldb.SBTarget_BreakpointCreateByNames(self, *args)
9859
9860 - def BreakpointCreateByRegex(self, *args):
9861 """ 9862 BreakpointCreateByRegex(SBTarget self, char const * symbol_name_regex, char const * module_name=None) -> SBBreakpoint 9863 BreakpointCreateByRegex(SBTarget self, char const * symbol_name_regex) -> SBBreakpoint 9864 BreakpointCreateByRegex(SBTarget self, char const * symbol_name_regex, lldb::LanguageType symbol_language, SBFileSpecList module_list, 9865 SBFileSpecList comp_unit_list) -> SBBreakpoint 9866 """ 9867 return _lldb.SBTarget_BreakpointCreateByRegex(self, *args)
9868
9869 - def BreakpointCreateBySourceRegex(self, *args):
9870 """ 9871 BreakpointCreateBySourceRegex(SBTarget self, char const * source_regex, SBFileSpec source_file, char const * module_name=None) -> SBBreakpoint 9872 BreakpointCreateBySourceRegex(SBTarget self, char const * source_regex, SBFileSpec source_file) -> SBBreakpoint 9873 BreakpointCreateBySourceRegex(SBTarget self, char const * source_regex, SBFileSpecList module_list, SBFileSpecList file_list) -> SBBreakpoint 9874 BreakpointCreateBySourceRegex(SBTarget self, char const * source_regex, SBFileSpecList module_list, SBFileSpecList source_file, 9875 SBStringList func_names) -> SBBreakpoint 9876 """ 9877 return _lldb.SBTarget_BreakpointCreateBySourceRegex(self, *args)
9878
9879 - def BreakpointCreateForException(self, *args):
9880 """BreakpointCreateForException(SBTarget self, lldb::LanguageType language, bool catch_bp, bool throw_bp) -> SBBreakpoint""" 9881 return _lldb.SBTarget_BreakpointCreateForException(self, *args)
9882
9883 - def BreakpointCreateByAddress(self, *args):
9884 """BreakpointCreateByAddress(SBTarget self, lldb::addr_t address) -> SBBreakpoint""" 9885 return _lldb.SBTarget_BreakpointCreateByAddress(self, *args)
9886
9887 - def BreakpointCreateBySBAddress(self, *args):
9888 """BreakpointCreateBySBAddress(SBTarget self, SBAddress sb_address) -> SBBreakpoint""" 9889 return _lldb.SBTarget_BreakpointCreateBySBAddress(self, *args)
9890
9891 - def BreakpointCreateFromScript(self, *args):
9892 """ 9893 BreakpointCreateFromScript(SBTarget self, char const * class_name, SBStructuredData extra_args, SBFileSpecList module_list, 9894 SBFileSpecList file_list, bool request_hardware=False) -> SBBreakpoint 9895 BreakpointCreateFromScript(SBTarget self, char const * class_name, SBStructuredData extra_args, SBFileSpecList module_list, 9896 SBFileSpecList file_list) -> SBBreakpoint 9897 9898 Create a breakpoint using a scripted resolver. 9899 9900 @param[in] class_name 9901 This is the name of the class that implements a scripted resolver. 9902 The class should have the following signature: 9903 class Resolver: 9904 def __init__(self, bkpt, extra_args): 9905 # bkpt - the breakpoint for which this is the resolver. When 9906 # the resolver finds an interesting address, call AddLocation 9907 # on this breakpoint to add it. 9908 # 9909 # extra_args - an SBStructuredData that can be used to 9910 # parametrize this instance. Same as the extra_args passed 9911 # to BreakpointCreateFromScript. 9912 9913 def __get_depth__ (self): 9914 # This is optional, but if defined, you should return the 9915 # depth at which you want the callback to be called. The 9916 # available options are: 9917 # lldb.eSearchDepthModule 9918 # lldb.eSearchDepthCompUnit 9919 # The default if you don't implement this method is 9920 # eSearchDepthModule. 9921 9922 def __callback__(self, sym_ctx): 9923 # sym_ctx - an SBSymbolContext that is the cursor in the 9924 # search through the program to resolve breakpoints. 9925 # The sym_ctx will be filled out to the depth requested in 9926 # __get_depth__. 9927 # Look in this sym_ctx for new breakpoint locations, 9928 # and if found use bkpt.AddLocation to add them. 9929 # Note, you will only get called for modules/compile_units that 9930 # pass the SearchFilter provided by the module_list & file_list 9931 # passed into BreakpointCreateFromScript. 9932 9933 def get_short_help(self): 9934 # Optional, but if implemented return a short string that will 9935 # be printed at the beginning of the break list output for the 9936 # breakpoint. 9937 9938 @param[in] extra_args 9939 This is an SBStructuredData object that will get passed to the 9940 constructor of the class in class_name. You can use this to 9941 reuse the same class, parametrizing it with entries from this 9942 dictionary. 9943 9944 @param module_list 9945 If this is non-empty, this will be used as the module filter in the 9946 SearchFilter created for this breakpoint. 9947 9948 @param file_list 9949 If this is non-empty, this will be used as the comp unit filter in the 9950 SearchFilter created for this breakpoint. 9951 9952 @return 9953 An SBBreakpoint that will set locations based on the logic in the 9954 resolver's search callback. 9955 """ 9956 return _lldb.SBTarget_BreakpointCreateFromScript(self, *args)
9957
9958 - def GetNumBreakpoints(self):
9959 """GetNumBreakpoints(SBTarget self) -> uint32_t""" 9960 return _lldb.SBTarget_GetNumBreakpoints(self)
9961
9962 - def GetBreakpointAtIndex(self, *args):
9963 """GetBreakpointAtIndex(SBTarget self, uint32_t idx) -> SBBreakpoint""" 9964 return _lldb.SBTarget_GetBreakpointAtIndex(self, *args)
9965
9966 - def BreakpointDelete(self, *args):
9967 """BreakpointDelete(SBTarget self, lldb::break_id_t break_id) -> bool""" 9968 return _lldb.SBTarget_BreakpointDelete(self, *args)
9969
9970 - def FindBreakpointByID(self, *args):
9971 """FindBreakpointByID(SBTarget self, lldb::break_id_t break_id) -> SBBreakpoint""" 9972 return _lldb.SBTarget_FindBreakpointByID(self, *args)
9973
9974 - def FindBreakpointsByName(self, *args):
9975 """FindBreakpointsByName(SBTarget self, char const * name, SBBreakpointList bkpt_list) -> bool""" 9976 return _lldb.SBTarget_FindBreakpointsByName(self, *args)
9977
9978 - def DeleteBreakpointName(self, *args):
9979 """DeleteBreakpointName(SBTarget self, char const * name)""" 9980 return _lldb.SBTarget_DeleteBreakpointName(self, *args)
9981
9982 - def GetBreakpointNames(self, *args):
9983 """GetBreakpointNames(SBTarget self, SBStringList names)""" 9984 return _lldb.SBTarget_GetBreakpointNames(self, *args)
9985
9986 - def EnableAllBreakpoints(self):
9987 """EnableAllBreakpoints(SBTarget self) -> bool""" 9988 return _lldb.SBTarget_EnableAllBreakpoints(self)
9989
9990 - def DisableAllBreakpoints(self):
9991 """DisableAllBreakpoints(SBTarget self) -> bool""" 9992 return _lldb.SBTarget_DisableAllBreakpoints(self)
9993
9994 - def DeleteAllBreakpoints(self):
9995 """DeleteAllBreakpoints(SBTarget self) -> bool""" 9996 return _lldb.SBTarget_DeleteAllBreakpoints(self)
9997
9998 - def BreakpointsCreateFromFile(self, *args):
9999 """ 10000 BreakpointsCreateFromFile(SBTarget self, SBFileSpec source_file, SBBreakpointList bkpt_list) -> SBError 10001 BreakpointsCreateFromFile(SBTarget self, SBFileSpec source_file, SBStringList matching_names, SBBreakpointList new_bps) -> SBError 10002 10003 Read breakpoints from source_file and return the newly created 10004 breakpoints in bkpt_list. 10005 10006 @param[in] source_file 10007 The file from which to read the breakpoints 10008 10009 @param[in] matching_names 10010 Only read in breakpoints whose names match one of the names in this 10011 list. 10012 10013 @param[out] bkpt_list 10014 A list of the newly created breakpoints. 10015 10016 @return 10017 An SBError detailing any errors in reading in the breakpoints. 10018 """ 10019 return _lldb.SBTarget_BreakpointsCreateFromFile(self, *args)
10020
10021 - def BreakpointsWriteToFile(self, *args):
10022 """ 10023 BreakpointsWriteToFile(SBTarget self, SBFileSpec dest_file) -> SBError 10024 BreakpointsWriteToFile(SBTarget self, SBFileSpec dest_file, SBBreakpointList bkpt_list, bool append=False) -> SBError 10025 BreakpointsWriteToFile(SBTarget self, SBFileSpec dest_file, SBBreakpointList bkpt_list) -> SBError 10026 """ 10027 return _lldb.SBTarget_BreakpointsWriteToFile(self, *args)
10028
10029 - def GetNumWatchpoints(self):
10030 """GetNumWatchpoints(SBTarget self) -> uint32_t""" 10031 return _lldb.SBTarget_GetNumWatchpoints(self)
10032
10033 - def GetWatchpointAtIndex(self, *args):
10034 """GetWatchpointAtIndex(SBTarget self, uint32_t idx) -> SBWatchpoint""" 10035 return _lldb.SBTarget_GetWatchpointAtIndex(self, *args)
10036
10037 - def DeleteWatchpoint(self, *args):
10038 """DeleteWatchpoint(SBTarget self, lldb::watch_id_t watch_id) -> bool""" 10039 return _lldb.SBTarget_DeleteWatchpoint(self, *args)
10040
10041 - def FindWatchpointByID(self, *args):
10042 """FindWatchpointByID(SBTarget self, lldb::watch_id_t watch_id) -> SBWatchpoint""" 10043 return _lldb.SBTarget_FindWatchpointByID(self, *args)
10044
10045 - def EnableAllWatchpoints(self):
10046 """EnableAllWatchpoints(SBTarget self) -> bool""" 10047 return _lldb.SBTarget_EnableAllWatchpoints(self)
10048
10049 - def DisableAllWatchpoints(self):
10050 """DisableAllWatchpoints(SBTarget self) -> bool""" 10051 return _lldb.SBTarget_DisableAllWatchpoints(self)
10052
10053 - def DeleteAllWatchpoints(self):
10054 """DeleteAllWatchpoints(SBTarget self) -> bool""" 10055 return _lldb.SBTarget_DeleteAllWatchpoints(self)
10056
10057 - def WatchAddress(self, *args):
10058 """WatchAddress(SBTarget self, lldb::addr_t addr, size_t size, bool read, bool write, SBError error) -> SBWatchpoint""" 10059 return _lldb.SBTarget_WatchAddress(self, *args)
10060
10061 - def GetBroadcaster(self):
10062 """GetBroadcaster(SBTarget self) -> SBBroadcaster""" 10063 return _lldb.SBTarget_GetBroadcaster(self)
10064
10065 - def CreateValueFromAddress(self, *args):
10066 """ 10067 CreateValueFromAddress(SBTarget self, char const * name, SBAddress addr, SBType type) -> SBValue 10068 10069 Create an SBValue with the given name by treating the memory starting at addr as an entity of type. 10070 10071 @param[in] name 10072 The name of the resultant SBValue 10073 10074 @param[in] addr 10075 The address of the start of the memory region to be used. 10076 10077 @param[in] type 10078 The type to use to interpret the memory starting at addr. 10079 10080 @return 10081 An SBValue of the given type, may be invalid if there was an error reading 10082 the underlying memory. 10083 """ 10084 return _lldb.SBTarget_CreateValueFromAddress(self, *args)
10085
10086 - def CreateValueFromData(self, *args):
10087 """CreateValueFromData(SBTarget self, char const * name, SBData data, SBType type) -> SBValue""" 10088 return _lldb.SBTarget_CreateValueFromData(self, *args)
10089
10090 - def CreateValueFromExpression(self, *args):
10091 """CreateValueFromExpression(SBTarget self, char const * name, char const * expr) -> SBValue""" 10092 return _lldb.SBTarget_CreateValueFromExpression(self, *args)
10093
10094 - def ReadInstructions(self, *args):
10095 """ 10096 ReadInstructions(SBTarget self, SBAddress base_addr, uint32_t count) -> SBInstructionList 10097 ReadInstructions(SBTarget self, SBAddress base_addr, uint32_t count, char const * flavor_string) -> SBInstructionList 10098 10099 Disassemble a specified number of instructions starting at an address. 10100 Parameters: 10101 base_addr -- the address to start disassembly from 10102 count -- the number of instructions to disassemble 10103 flavor_string -- may be 'intel' or 'att' on x86 targets to specify that style of disassembly 10104 Returns an SBInstructionList. 10105 """ 10106 return _lldb.SBTarget_ReadInstructions(self, *args)
10107
10108 - def GetInstructions(self, *args):
10109 """ 10110 GetInstructions(SBTarget self, SBAddress base_addr, void const * buf) -> SBInstructionList 10111 10112 Disassemble the bytes in a buffer and return them in an SBInstructionList. 10113 Parameters: 10114 base_addr -- used for symbolicating the offsets in the byte stream when disassembling 10115 buf -- bytes to be disassembled 10116 size -- (C++) size of the buffer 10117 Returns an SBInstructionList. 10118 """ 10119 return _lldb.SBTarget_GetInstructions(self, *args)
10120
10121 - def GetInstructionsWithFlavor(self, *args):
10122 """ 10123 GetInstructionsWithFlavor(SBTarget self, SBAddress base_addr, char const * flavor_string, void const * buf) -> SBInstructionList 10124 10125 Disassemble the bytes in a buffer and return them in an SBInstructionList, with a supplied flavor. 10126 Parameters: 10127 base_addr -- used for symbolicating the offsets in the byte stream when disassembling 10128 flavor -- may be 'intel' or 'att' on x86 targets to specify that style of disassembly 10129 buf -- bytes to be disassembled 10130 size -- (C++) size of the buffer 10131 Returns an SBInstructionList. 10132 """ 10133 return _lldb.SBTarget_GetInstructionsWithFlavor(self, *args)
10134
10135 - def FindSymbols(self, *args):
10136 """ 10137 FindSymbols(SBTarget self, char const * name, lldb::SymbolType type=eSymbolTypeAny) -> SBSymbolContextList 10138 FindSymbols(SBTarget self, char const * name) -> SBSymbolContextList 10139 """ 10140 return _lldb.SBTarget_FindSymbols(self, *args)
10141
10142 - def GetDescription(self, *args):
10143 """GetDescription(SBTarget self, SBStream description, lldb::DescriptionLevel description_level) -> bool""" 10144 return _lldb.SBTarget_GetDescription(self, *args)
10145
10146 - def GetStackRedZoneSize(self):
10147 """GetStackRedZoneSize(SBTarget self) -> lldb::addr_t""" 10148 return _lldb.SBTarget_GetStackRedZoneSize(self)
10149
10150 - def GetLaunchInfo(self):
10151 """GetLaunchInfo(SBTarget self) -> SBLaunchInfo""" 10152 return _lldb.SBTarget_GetLaunchInfo(self)
10153
10154 - def SetLaunchInfo(self, *args):
10155 """SetLaunchInfo(SBTarget self, SBLaunchInfo launch_info)""" 10156 return _lldb.SBTarget_SetLaunchInfo(self, *args)
10157
10158 - def SetCollectingStats(self, *args):
10159 """SetCollectingStats(SBTarget self, bool v)""" 10160 return _lldb.SBTarget_SetCollectingStats(self, *args)
10161
10162 - def GetCollectingStats(self):
10163 """GetCollectingStats(SBTarget self) -> bool""" 10164 return _lldb.SBTarget_GetCollectingStats(self)
10165
10166 - def GetStatistics(self):
10167 """GetStatistics(SBTarget self) -> SBStructuredData""" 10168 return _lldb.SBTarget_GetStatistics(self)
10169
10170 - def __eq__(self, *args):
10171 """__eq__(SBTarget self, SBTarget rhs) -> bool""" 10172 return _lldb.SBTarget___eq__(self, *args)
10173
10174 - def __ne__(self, *args):
10175 """__ne__(SBTarget self, SBTarget rhs) -> bool""" 10176 return _lldb.SBTarget___ne__(self, *args)
10177
10178 - def EvaluateExpression(self, *args):
10179 """ 10180 EvaluateExpression(SBTarget self, char const * expr) -> SBValue 10181 EvaluateExpression(SBTarget self, char const * expr, SBExpressionOptions options) -> SBValue 10182 """ 10183 return _lldb.SBTarget_EvaluateExpression(self, *args)
10184
10185 - class modules_access(object):
10186 '''A helper object that will lazily hand out lldb.SBModule objects for a target when supplied an index, or by full or partial path.'''
10187 - def __init__(self, sbtarget):
10188 self.sbtarget = sbtarget
10189
10190 - def __len__(self):
10191 if self.sbtarget: 10192 return int(self.sbtarget.GetNumModules()) 10193 return 0
10194
10195 - def __getitem__(self, key):
10196 num_modules = self.sbtarget.GetNumModules() 10197 if type(key) is int: 10198 if key < num_modules: 10199 return self.sbtarget.GetModuleAtIndex(key) 10200 elif type(key) is str: 10201 if key.find('/') == -1: 10202 for idx in range(num_modules): 10203 module = self.sbtarget.GetModuleAtIndex(idx) 10204 if module.file.basename == key: 10205 return module 10206 else: 10207 for idx in range(num_modules): 10208 module = self.sbtarget.GetModuleAtIndex(idx) 10209 if module.file.fullpath == key: 10210 return module 10211 # See if the string is a UUID 10212 try: 10213 the_uuid = uuid.UUID(key) 10214 if the_uuid: 10215 for idx in range(num_modules): 10216 module = self.sbtarget.GetModuleAtIndex(idx) 10217 if module.uuid == the_uuid: 10218 return module 10219 except: 10220 return None 10221 elif type(key) is uuid.UUID: 10222 for idx in range(num_modules): 10223 module = self.sbtarget.GetModuleAtIndex(idx) 10224 if module.uuid == key: 10225 return module 10226 elif type(key) is re.SRE_Pattern: 10227 matching_modules = [] 10228 for idx in range(num_modules): 10229 module = self.sbtarget.GetModuleAtIndex(idx) 10230 re_match = key.search(module.path.fullpath) 10231 if re_match: 10232 matching_modules.append(module) 10233 return matching_modules 10234 else: 10235 print("error: unsupported item type: %s" % type(key)) 10236 return None
10237
10238 - def get_modules_access_object(self):
10239 '''An accessor function that returns a modules_access() object which allows lazy module access from a lldb.SBTarget object.''' 10240 return self.modules_access (self)
10241
10242 - def get_modules_array(self):
10243 '''An accessor function that returns a list() that contains all modules in a lldb.SBTarget object.''' 10244 modules = [] 10245 for idx in range(self.GetNumModules()): 10246 modules.append(self.GetModuleAtIndex(idx)) 10247 return modules
10248
10249 - def module_iter(self):
10250 '''Returns an iterator over all modules in a lldb.SBTarget 10251 object.''' 10252 return lldb_iter(self, 'GetNumModules', 'GetModuleAtIndex')
10253
10254 - def breakpoint_iter(self):
10255 '''Returns an iterator over all breakpoints in a lldb.SBTarget 10256 object.''' 10257 return lldb_iter(self, 'GetNumBreakpoints', 'GetBreakpointAtIndex')
10258
10259 - def watchpoint_iter(self):
10260 '''Returns an iterator over all watchpoints in a lldb.SBTarget 10261 object.''' 10262 return lldb_iter(self, 'GetNumWatchpoints', 'GetWatchpointAtIndex')
10263 10264 __swig_getmethods__["modules"] = get_modules_array 10265 if _newclass: modules = property(get_modules_array, None, doc='''A read only property that returns a list() of lldb.SBModule objects contained in this target. This list is a list all modules that the target currently is tracking (the main executable and all dependent shared libraries).''') 10266 10267 __swig_getmethods__["module"] = get_modules_access_object 10268 if _newclass: module = property(get_modules_access_object, None, doc=r'''A read only property that returns an object that implements python operator overloading with the square brackets().\n target.module[<int>] allows array access to any modules.\n target.module[<str>] allows access to modules by basename, full path, or uuid string value.\n target.module[uuid.UUID()] allows module access by UUID.\n target.module[re] allows module access using a regular expression that matches the module full path.''') 10269 10270 __swig_getmethods__["process"] = GetProcess 10271 if _newclass: process = property(GetProcess, None, doc='''A read only property that returns an lldb object that represents the process (lldb.SBProcess) that this target owns.''') 10272 10273 __swig_getmethods__["executable"] = GetExecutable 10274 if _newclass: executable = property(GetExecutable, None, doc='''A read only property that returns an lldb object that represents the main executable module (lldb.SBModule) for this target.''') 10275 10276 __swig_getmethods__["debugger"] = GetDebugger 10277 if _newclass: debugger = property(GetDebugger, None, doc='''A read only property that returns an lldb object that represents the debugger (lldb.SBDebugger) that owns this target.''') 10278 10279 __swig_getmethods__["num_breakpoints"] = GetNumBreakpoints 10280 if _newclass: num_breakpoints = property(GetNumBreakpoints, None, doc='''A read only property that returns the number of breakpoints that this target has as an integer.''') 10281 10282 __swig_getmethods__["num_watchpoints"] = GetNumWatchpoints 10283 if _newclass: num_watchpoints = property(GetNumWatchpoints, None, doc='''A read only property that returns the number of watchpoints that this target has as an integer.''') 10284 10285 __swig_getmethods__["broadcaster"] = GetBroadcaster 10286 if _newclass: broadcaster = property(GetBroadcaster, None, doc='''A read only property that an lldb object that represents the broadcaster (lldb.SBBroadcaster) for this target.''') 10287 10288 __swig_getmethods__["byte_order"] = GetByteOrder 10289 if _newclass: byte_order = property(GetByteOrder, None, doc='''A read only property that returns an lldb enumeration value (lldb.eByteOrderLittle, lldb.eByteOrderBig, lldb.eByteOrderInvalid) that represents the byte order for this target.''') 10290 10291 __swig_getmethods__["addr_size"] = GetAddressByteSize 10292 if _newclass: addr_size = property(GetAddressByteSize, None, doc='''A read only property that returns the size in bytes of an address for this target.''') 10293 10294 __swig_getmethods__["triple"] = GetTriple 10295 if _newclass: triple = property(GetTriple, None, doc='''A read only property that returns the target triple (arch-vendor-os) for this target as a string.''') 10296 10297 __swig_getmethods__["data_byte_size"] = GetDataByteSize 10298 if _newclass: data_byte_size = property(GetDataByteSize, None, doc='''A read only property that returns the size in host bytes of a byte in the data address space for this target.''') 10299 10300 __swig_getmethods__["code_byte_size"] = GetCodeByteSize 10301 if _newclass: code_byte_size = property(GetCodeByteSize, None, doc='''A read only property that returns the size in host bytes of a byte in the code address space for this target.''') 10302 10303 __swig_getmethods__["platform"] = GetPlatform 10304 if _newclass: platform = property(GetPlatform, None, doc='''A read only property that returns the platform associated with with this target.''') 10305
10306 - def __str__(self):
10307 """__str__(SBTarget self) -> PyObject *""" 10308 return _lldb.SBTarget___str__(self)
10309
10310 - def __eq__(self, rhs):
10311 if not isinstance(rhs, type(self)): 10312 return False 10313 10314 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
10315
10316 - def __ne__(self, rhs):
10317 if not isinstance(rhs, type(self)): 10318 return True 10319 10320 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
10321 10322 SBTarget_swigregister = _lldb.SBTarget_swigregister 10323 SBTarget_swigregister(SBTarget)
10324 10325 -def SBTarget_GetBroadcasterClassName():
10326 """SBTarget_GetBroadcasterClassName() -> char const *""" 10327 return _lldb.SBTarget_GetBroadcasterClassName()
10328
10329 -def SBTarget_EventIsTargetEvent(*args):
10330 """SBTarget_EventIsTargetEvent(SBEvent event) -> bool""" 10331 return _lldb.SBTarget_EventIsTargetEvent(*args)
10332
10333 -def SBTarget_GetTargetFromEvent(*args):
10334 """SBTarget_GetTargetFromEvent(SBEvent event) -> SBTarget""" 10335 return _lldb.SBTarget_GetTargetFromEvent(*args)
10336
10337 -def SBTarget_GetNumModulesFromEvent(*args):
10338 """SBTarget_GetNumModulesFromEvent(SBEvent event) -> uint32_t""" 10339 return _lldb.SBTarget_GetNumModulesFromEvent(*args)
10340
10341 -def SBTarget_GetModuleAtIndexFromEvent(*args):
10342 """SBTarget_GetModuleAtIndexFromEvent(uint32_t const idx, SBEvent event) -> SBModule""" 10343 return _lldb.SBTarget_GetModuleAtIndexFromEvent(*args)
10344
10345 -class SBThread(_object):
10346 """ 10347 Represents a thread of execution. SBProcess contains SBThread(s). 10348 10349 SBThreads can be referred to by their ID, which maps to the system specific thread 10350 identifier, or by IndexID. The ID may or may not be unique depending on whether the 10351 system reuses its thread identifiers. The IndexID is a monotonically increasing identifier 10352 that will always uniquely reference a particular thread, and when that thread goes 10353 away it will not be reused. 10354 10355 SBThread supports frame iteration. For example (from test/python_api/ 10356 lldbutil/iter/TestLLDBIterator.py), 10357 10358 from lldbutil import print_stacktrace 10359 stopped_due_to_breakpoint = False 10360 for thread in process: 10361 if self.TraceOn(): 10362 print_stacktrace(thread) 10363 ID = thread.GetThreadID() 10364 if thread.GetStopReason() == lldb.eStopReasonBreakpoint: 10365 stopped_due_to_breakpoint = True 10366 for frame in thread: 10367 self.assertTrue(frame.GetThread().GetThreadID() == ID) 10368 if self.TraceOn(): 10369 print frame 10370 10371 self.assertTrue(stopped_due_to_breakpoint) 10372 10373 See also SBProcess and SBFrame. 10374 """ 10375 __swig_setmethods__ = {} 10376 __setattr__ = lambda self, name, value: _swig_setattr(self, SBThread, name, value) 10377 __swig_getmethods__ = {} 10378 __getattr__ = lambda self, name: _swig_getattr(self, SBThread, name) 10379 __repr__ = _swig_repr 10380 eBroadcastBitStackChanged = _lldb.SBThread_eBroadcastBitStackChanged 10381 eBroadcastBitThreadSuspended = _lldb.SBThread_eBroadcastBitThreadSuspended 10382 eBroadcastBitThreadResumed = _lldb.SBThread_eBroadcastBitThreadResumed 10383 eBroadcastBitSelectedFrameChanged = _lldb.SBThread_eBroadcastBitSelectedFrameChanged 10384 eBroadcastBitThreadSelected = _lldb.SBThread_eBroadcastBitThreadSelected
10385 - def __init__(self, *args):
10386 """ 10387 __init__(lldb::SBThread self) -> SBThread 10388 __init__(lldb::SBThread self, SBThread thread) -> SBThread 10389 """ 10390 this = _lldb.new_SBThread(*args) 10391 try: self.this.append(this) 10392 except: self.this = this
10393 __swig_destroy__ = _lldb.delete_SBThread 10394 __del__ = lambda self : None;
10395 - def GetBroadcasterClassName():
10396 """GetBroadcasterClassName() -> char const *""" 10397 return _lldb.SBThread_GetBroadcasterClassName()
10398 10399 if _newclass:GetBroadcasterClassName = staticmethod(GetBroadcasterClassName) 10400 __swig_getmethods__["GetBroadcasterClassName"] = lambda x: GetBroadcasterClassName
10401 - def EventIsThreadEvent(*args):
10402 """EventIsThreadEvent(SBEvent event) -> bool""" 10403 return _lldb.SBThread_EventIsThreadEvent(*args)
10404 10405 if _newclass:EventIsThreadEvent = staticmethod(EventIsThreadEvent) 10406 __swig_getmethods__["EventIsThreadEvent"] = lambda x: EventIsThreadEvent
10407 - def GetStackFrameFromEvent(*args):
10408 """GetStackFrameFromEvent(SBEvent event) -> SBFrame""" 10409 return _lldb.SBThread_GetStackFrameFromEvent(*args)
10410 10411 if _newclass:GetStackFrameFromEvent = staticmethod(GetStackFrameFromEvent) 10412 __swig_getmethods__["GetStackFrameFromEvent"] = lambda x: GetStackFrameFromEvent
10413 - def GetThreadFromEvent(*args):
10414 """GetThreadFromEvent(SBEvent event) -> SBThread""" 10415 return _lldb.SBThread_GetThreadFromEvent(*args)
10416 10417 if _newclass:GetThreadFromEvent = staticmethod(GetThreadFromEvent) 10418 __swig_getmethods__["GetThreadFromEvent"] = lambda x: GetThreadFromEvent
10419 - def IsValid(self):
10420 """IsValid(SBThread self) -> bool""" 10421 return _lldb.SBThread_IsValid(self)
10422
10423 - def __nonzero__(self):
10424 return _lldb.SBThread___nonzero__(self)
10425 __bool__ = __nonzero__ 10426 10427
10428 - def Clear(self):
10429 """Clear(SBThread self)""" 10430 return _lldb.SBThread_Clear(self)
10431
10432 - def GetStopReason(self):
10433 """GetStopReason(SBThread self) -> lldb::StopReason""" 10434 return _lldb.SBThread_GetStopReason(self)
10435
10436 - def GetStopReasonDataCount(self):
10437 """ 10438 GetStopReasonDataCount(SBThread self) -> size_t 10439 10440 Get the number of words associated with the stop reason. 10441 See also GetStopReasonDataAtIndex(). 10442 """ 10443 return _lldb.SBThread_GetStopReasonDataCount(self)
10444
10445 - def GetStopReasonDataAtIndex(self, *args):
10446 """ 10447 GetStopReasonDataAtIndex(SBThread self, uint32_t idx) -> uint64_t 10448 10449 Get information associated with a stop reason. 10450 10451 Breakpoint stop reasons will have data that consists of pairs of 10452 breakpoint IDs followed by the breakpoint location IDs (they always come 10453 in pairs). 10454 10455 Stop Reason Count Data Type 10456 ======================== ===== ========================================= 10457 eStopReasonNone 0 10458 eStopReasonTrace 0 10459 eStopReasonBreakpoint N duple: {breakpoint id, location id} 10460 eStopReasonWatchpoint 1 watchpoint id 10461 eStopReasonSignal 1 unix signal number 10462 eStopReasonException N exception data 10463 eStopReasonExec 0 10464 eStopReasonPlanComplete 0 10465 """ 10466 return _lldb.SBThread_GetStopReasonDataAtIndex(self, *args)
10467
10468 - def GetStopReasonExtendedInfoAsJSON(self, *args):
10469 """ 10470 Collects a thread's stop reason extended information dictionary and prints it 10471 into the SBStream in a JSON format. The format of this JSON dictionary depends 10472 on the stop reason and is currently used only for instrumentation plugins. 10473 """ 10474 return _lldb.SBThread_GetStopReasonExtendedInfoAsJSON(self, *args)
10475
10476 - def GetStopReasonExtendedBacktraces(self, *args):
10477 """ 10478 Returns a collection of historical stack traces that are significant to the 10479 current stop reason. Used by ThreadSanitizer, where we provide various stack 10480 traces that were involved in a data race or other type of detected issue. 10481 """ 10482 return _lldb.SBThread_GetStopReasonExtendedBacktraces(self, *args)
10483
10484 - def GetStopDescription(self, *args):
10485 """ 10486 Pass only an (int)length and expect to get a Python string describing the 10487 stop reason. 10488 """ 10489 return _lldb.SBThread_GetStopDescription(self, *args)
10490
10491 - def GetStopReturnValue(self):
10492 """GetStopReturnValue(SBThread self) -> SBValue""" 10493 return _lldb.SBThread_GetStopReturnValue(self)
10494
10495 - def GetThreadID(self):
10496 """ 10497 Returns a unique thread identifier (type lldb::tid_t, typically a 64-bit type) 10498 for the current SBThread that will remain constant throughout the thread's 10499 lifetime in this process and will not be reused by another thread during this 10500 process lifetime. On Mac OS X systems, this is a system-wide unique thread 10501 identifier; this identifier is also used by other tools like sample which helps 10502 to associate data from those tools with lldb. See related GetIndexID. 10503 """ 10504 return _lldb.SBThread_GetThreadID(self)
10505
10506 - def GetIndexID(self):
10507 """ 10508 Return the index number for this SBThread. The index number is the same thing 10509 that a user gives as an argument to 'thread select' in the command line lldb. 10510 These numbers start at 1 (for the first thread lldb sees in a debug session) 10511 and increments up throughout the process lifetime. An index number will not be 10512 reused for a different thread later in a process - thread 1 will always be 10513 associated with the same thread. See related GetThreadID. 10514 This method returns a uint32_t index number, takes no arguments. 10515 """ 10516 return _lldb.SBThread_GetIndexID(self)
10517
10518 - def GetName(self):
10519 """GetName(SBThread self) -> char const *""" 10520 return _lldb.SBThread_GetName(self)
10521
10522 - def GetQueueName(self):
10523 """ 10524 Return the queue name associated with this thread, if any, as a str. 10525 For example, with a libdispatch (aka Grand Central Dispatch) queue. 10526 """ 10527 return _lldb.SBThread_GetQueueName(self)
10528
10529 - def GetQueueID(self):
10530 """ 10531 Return the dispatch_queue_id for this thread, if any, as a lldb::queue_id_t. 10532 For example, with a libdispatch (aka Grand Central Dispatch) queue. 10533 """ 10534 return _lldb.SBThread_GetQueueID(self)
10535
10536 - def GetInfoItemByPathAsString(self, *args):
10537 """ 10538 GetInfoItemByPathAsString(SBThread self, char const * path, SBStream strm) -> bool 10539 10540 Takes a path string and a SBStream reference as parameters, returns a bool. 10541 Collects the thread's 'info' dictionary from the remote system, uses the path 10542 argument to descend into the dictionary to an item of interest, and prints 10543 it into the SBStream in a natural format. Return bool is to indicate if 10544 anything was printed into the stream (true) or not (false). 10545 """ 10546 return _lldb.SBThread_GetInfoItemByPathAsString(self, *args)
10547
10548 - def GetQueue(self):
10549 """ 10550 Return the SBQueue for this thread. If this thread is not currently associated 10551 with a libdispatch queue, the SBQueue object's IsValid() method will return false. 10552 If this SBThread is actually a HistoryThread, we may be able to provide QueueID 10553 and QueueName, but not provide an SBQueue. Those individual attributes may have 10554 been saved for the HistoryThread without enough information to reconstitute the 10555 entire SBQueue at that time. 10556 This method takes no arguments, returns an SBQueue. 10557 """ 10558 return _lldb.SBThread_GetQueue(self)
10559
10560 - def StepOver(self, *args):
10561 """ 10562 StepOver(SBThread self, lldb::RunMode stop_other_threads=eOnlyDuringStepping) 10563 StepOver(SBThread self) 10564 Do a source level single step over in the currently selected thread. 10565 """ 10566 return _lldb.SBThread_StepOver(self, *args)
10567
10568 - def StepInto(self, *args):
10569 """ 10570 StepInto(SBThread self, lldb::RunMode stop_other_threads=eOnlyDuringStepping) 10571 StepInto(SBThread self) 10572 StepInto(SBThread self, char const * target_name, lldb::RunMode stop_other_threads=eOnlyDuringStepping) 10573 StepInto(SBThread self, char const * target_name) 10574 10575 Step the current thread from the current source line to the line given by end_line, stopping if 10576 the thread steps into the function given by target_name. If target_name is None, then stepping will stop 10577 in any of the places we would normally stop. 10578 10579 Step the current thread from the current source line to the line given by end_line, stopping if 10580 the thread steps into the function given by target_name. If target_name is None, then stepping will stop 10581 in any of the places we would normally stop. 10582 """ 10583 return _lldb.SBThread_StepInto(self, *args)
10584
10585 - def StepOut(self, *args):
10586 """ 10587 StepOut(SBThread self) 10588 Step out of the currently selected thread. 10589 """ 10590 return _lldb.SBThread_StepOut(self, *args)
10591
10592 - def StepOutOfFrame(self, *args):
10593 """ 10594 StepOutOfFrame(SBThread self, SBFrame frame) 10595 Step out of the specified frame. 10596 """ 10597 return _lldb.SBThread_StepOutOfFrame(self, *args)
10598
10599 - def StepInstruction(self, *args):
10600 """ 10601 StepInstruction(SBThread self, bool step_over) 10602 Do an instruction level single step in the currently selected thread. 10603 """ 10604 return _lldb.SBThread_StepInstruction(self, *args)
10605
10606 - def StepOverUntil(self, *args):
10607 """StepOverUntil(SBThread self, SBFrame frame, SBFileSpec file_spec, uint32_t line) -> SBError""" 10608 return _lldb.SBThread_StepOverUntil(self, *args)
10609
10610 - def StepUsingScriptedThreadPlan(self, *args):
10611 """ 10612 StepUsingScriptedThreadPlan(SBThread self, char const * script_class_name) -> SBError 10613 StepUsingScriptedThreadPlan(SBThread self, char const * script_class_name, bool resume_immediately) -> SBError 10614 """ 10615 return _lldb.SBThread_StepUsingScriptedThreadPlan(self, *args)
10616
10617 - def JumpToLine(self, *args):
10618 """JumpToLine(SBThread self, SBFileSpec file_spec, uint32_t line) -> SBError""" 10619 return _lldb.SBThread_JumpToLine(self, *args)
10620
10621 - def RunToAddress(self, *args):
10622 """ 10623 RunToAddress(SBThread self, lldb::addr_t addr) 10624 RunToAddress(SBThread self, lldb::addr_t addr, SBError error) 10625 """ 10626 return _lldb.SBThread_RunToAddress(self, *args)
10627
10628 - def ReturnFromFrame(self, *args):
10629 """ 10630 Force a return from the frame passed in (and any frames younger than it) 10631 without executing any more code in those frames. If return_value contains 10632 a valid SBValue, that will be set as the return value from frame. Note, at 10633 present only scalar return values are supported. 10634 """ 10635 return _lldb.SBThread_ReturnFromFrame(self, *args)
10636
10637 - def UnwindInnermostExpression(self):
10638 """ 10639 Unwind the stack frames from the innermost expression evaluation. 10640 This API is equivalent to 'thread return -x'. 10641 """ 10642 return _lldb.SBThread_UnwindInnermostExpression(self)
10643
10644 - def Suspend(self, *args):
10645 """ 10646 Suspend(SBThread self) -> bool 10647 Suspend(SBThread self, SBError error) -> bool 10648 10649 LLDB currently supports process centric debugging which means when any 10650 thread in a process stops, all other threads are stopped. The Suspend() 10651 call here tells our process to suspend a thread and not let it run when 10652 the other threads in a process are allowed to run. So when 10653 SBProcess::Continue() is called, any threads that aren't suspended will 10654 be allowed to run. If any of the SBThread functions for stepping are 10655 called (StepOver, StepInto, StepOut, StepInstruction, RunToAddres), the 10656 thread will now be allowed to run and these functions will simply return. 10657 10658 Eventually we plan to add support for thread centric debugging where 10659 each thread is controlled individually and each thread would broadcast 10660 its state, but we haven't implemented this yet. 10661 10662 Likewise the SBThread::Resume() call will again allow the thread to run 10663 when the process is continued. 10664 10665 Suspend() and Resume() functions are not currently reference counted, if 10666 anyone has the need for them to be reference counted, please let us 10667 know. 10668 """ 10669 return _lldb.SBThread_Suspend(self, *args)
10670
10671 - def Resume(self, *args):
10672 """ 10673 Resume(SBThread self) -> bool 10674 Resume(SBThread self, SBError error) -> bool 10675 """ 10676 return _lldb.SBThread_Resume(self, *args)
10677
10678 - def IsSuspended(self):
10679 """IsSuspended(SBThread self) -> bool""" 10680 return _lldb.SBThread_IsSuspended(self)
10681
10682 - def IsStopped(self):
10683 """IsStopped(SBThread self) -> bool""" 10684 return _lldb.SBThread_IsStopped(self)
10685
10686 - def GetNumFrames(self):
10687 """GetNumFrames(SBThread self) -> uint32_t""" 10688 return _lldb.SBThread_GetNumFrames(self)
10689
10690 - def GetFrameAtIndex(self, *args):
10691 """GetFrameAtIndex(SBThread self, uint32_t idx) -> SBFrame""" 10692 return _lldb.SBThread_GetFrameAtIndex(self, *args)
10693
10694 - def GetSelectedFrame(self):
10695 """GetSelectedFrame(SBThread self) -> SBFrame""" 10696 return _lldb.SBThread_GetSelectedFrame(self)
10697
10698 - def SetSelectedFrame(self, *args):
10699 """SetSelectedFrame(SBThread self, uint32_t frame_idx) -> SBFrame""" 10700 return _lldb.SBThread_SetSelectedFrame(self, *args)
10701
10702 - def GetProcess(self):
10703 """GetProcess(SBThread self) -> SBProcess""" 10704 return _lldb.SBThread_GetProcess(self)
10705
10706 - def GetDescription(self, *args):
10707 """ 10708 GetDescription(SBThread self, SBStream description) -> bool 10709 GetDescription(SBThread self, SBStream description, bool stop_format) -> bool 10710 10711 Get the description strings for this thread that match what the 10712 lldb driver will present, using the thread-format (stop_format==false) 10713 or thread-stop-format (stop_format = true). 10714 """ 10715 return _lldb.SBThread_GetDescription(self, *args)
10716
10717 - def GetStatus(self, *args):
10718 """GetStatus(SBThread self, SBStream status) -> bool""" 10719 return _lldb.SBThread_GetStatus(self, *args)
10720
10721 - def __eq__(self, *args):
10722 """__eq__(SBThread self, SBThread rhs) -> bool""" 10723 return _lldb.SBThread___eq__(self, *args)
10724
10725 - def __ne__(self, *args):
10726 """__ne__(SBThread self, SBThread rhs) -> bool""" 10727 return _lldb.SBThread___ne__(self, *args)
10728
10729 - def GetExtendedBacktraceThread(self, *args):
10730 """ 10731 Given an argument of str to specify the type of thread-origin extended 10732 backtrace to retrieve, query whether the origin of this thread is 10733 available. An SBThread is retured; SBThread.IsValid will return true 10734 if an extended backtrace was available. The returned SBThread is not 10735 a part of the SBProcess' thread list and it cannot be manipulated like 10736 normal threads -- you cannot step or resume it, for instance -- it is 10737 intended to used primarily for generating a backtrace. You may request 10738 the returned thread's own thread origin in turn. 10739 """ 10740 return _lldb.SBThread_GetExtendedBacktraceThread(self, *args)
10741
10742 - def GetExtendedBacktraceOriginatingIndexID(self):
10743 """ 10744 Takes no arguments, returns a uint32_t. 10745 If this SBThread is an ExtendedBacktrace thread, get the IndexID of the 10746 original thread that this ExtendedBacktrace thread represents, if 10747 available. The thread that was running this backtrace in the past may 10748 not have been registered with lldb's thread index (if it was created, 10749 did its work, and was destroyed without lldb ever stopping execution). 10750 In that case, this ExtendedBacktrace thread's IndexID will be returned. 10751 """ 10752 return _lldb.SBThread_GetExtendedBacktraceOriginatingIndexID(self)
10753
10754 - def GetCurrentException(self):
10755 """ 10756 Returns an SBValue object represeting the current exception for the thread, 10757 if there is any. Currently, this works for Obj-C code and returns an SBValue 10758 representing the NSException object at the throw site or that's currently 10759 being processes. 10760 """ 10761 return _lldb.SBThread_GetCurrentException(self)
10762
10763 - def GetCurrentExceptionBacktrace(self):
10764 """ 10765 Returns a historical (fake) SBThread representing the stack trace of an 10766 exception, if there is one for the thread. Currently, this works for Obj-C 10767 code, and can retrieve the throw-site backtrace of an NSException object 10768 even when the program is no longer at the throw site. 10769 """ 10770 return _lldb.SBThread_GetCurrentExceptionBacktrace(self)
10771
10772 - def SafeToCallFunctions(self):
10773 """ 10774 Takes no arguments, returns a bool. 10775 lldb may be able to detect that function calls should not be executed 10776 on a given thread at a particular point in time. It is recommended that 10777 this is checked before performing an inferior function call on a given 10778 thread. 10779 """ 10780 return _lldb.SBThread_SafeToCallFunctions(self)
10781
10782 - def __iter__(self):
10783 '''Iterate over all frames in a lldb.SBThread object.''' 10784 return lldb_iter(self, 'GetNumFrames', 'GetFrameAtIndex')
10785
10786 - def __len__(self):
10787 '''Return the number of frames in a lldb.SBThread object.''' 10788 return self.GetNumFrames()
10789
10790 - class frames_access(object):
10791 '''A helper object that will lazily hand out frames for a thread when supplied an index.'''
10792 - def __init__(self, sbthread):
10793 self.sbthread = sbthread
10794
10795 - def __len__(self):
10796 if self.sbthread: 10797 return int(self.sbthread.GetNumFrames()) 10798 return 0
10799
10800 - def __getitem__(self, key):
10801 if type(key) is int and key < self.sbthread.GetNumFrames(): 10802 return self.sbthread.GetFrameAtIndex(key) 10803 return None
10804
10805 - def get_frames_access_object(self):
10806 '''An accessor function that returns a frames_access() object which allows lazy frame access from a lldb.SBThread object.''' 10807 return self.frames_access (self)
10808
10809 - def get_thread_frames(self):
10810 '''An accessor function that returns a list() that contains all frames in a lldb.SBThread object.''' 10811 frames = [] 10812 for frame in self: 10813 frames.append(frame) 10814 return frames
10815 10816 __swig_getmethods__["id"] = GetThreadID 10817 if _newclass: id = property(GetThreadID, None, doc='''A read only property that returns the thread ID as an integer.''') 10818 10819 __swig_getmethods__["idx"] = GetIndexID 10820 if _newclass: idx = property(GetIndexID, None, doc='''A read only property that returns the thread index ID as an integer. Thread index ID values start at 1 and increment as threads come and go and can be used to uniquely identify threads.''') 10821 10822 __swig_getmethods__["return_value"] = GetStopReturnValue 10823 if _newclass: return_value = property(GetStopReturnValue, None, doc='''A read only property that returns an lldb object that represents the return value from the last stop (lldb.SBValue) if we just stopped due to stepping out of a function.''') 10824 10825 __swig_getmethods__["process"] = GetProcess 10826 if _newclass: process = property(GetProcess, None, doc='''A read only property that returns an lldb object that represents the process (lldb.SBProcess) that owns this thread.''') 10827 10828 __swig_getmethods__["num_frames"] = GetNumFrames 10829 if _newclass: num_frames = property(GetNumFrames, None, doc='''A read only property that returns the number of stack frames in this thread as an integer.''') 10830 10831 __swig_getmethods__["frames"] = get_thread_frames 10832 if _newclass: frames = property(get_thread_frames, None, doc='''A read only property that returns a list() of lldb.SBFrame objects for all frames in this thread.''') 10833 10834 __swig_getmethods__["frame"] = get_frames_access_object 10835 if _newclass: frame = property(get_frames_access_object, None, doc='''A read only property that returns an object that can be used to access frames as an array ("frame_12 = lldb.thread.frame[12]").''') 10836 10837 __swig_getmethods__["name"] = GetName 10838 if _newclass: name = property(GetName, None, doc='''A read only property that returns the name of this thread as a string.''') 10839 10840 __swig_getmethods__["queue"] = GetQueueName 10841 if _newclass: queue = property(GetQueueName, None, doc='''A read only property that returns the dispatch queue name of this thread as a string.''') 10842 10843 __swig_getmethods__["queue_id"] = GetQueueID 10844 if _newclass: queue_id = property(GetQueueID, None, doc='''A read only property that returns the dispatch queue id of this thread as an integer.''') 10845 10846 __swig_getmethods__["stop_reason"] = GetStopReason 10847 if _newclass: stop_reason = property(GetStopReason, None, doc='''A read only property that returns an lldb enumeration value (see enumerations that start with "lldb.eStopReason") that represents the reason this thread stopped.''') 10848 10849 __swig_getmethods__["is_suspended"] = IsSuspended 10850 if _newclass: is_suspended = property(IsSuspended, None, doc='''A read only property that returns a boolean value that indicates if this thread is suspended.''') 10851 10852 __swig_getmethods__["is_stopped"] = IsStopped 10853 if _newclass: is_stopped = property(IsStopped, None, doc='''A read only property that returns a boolean value that indicates if this thread is stopped but not exited.''') 10854
10855 - def __str__(self):
10856 """__str__(SBThread self) -> PyObject *""" 10857 return _lldb.SBThread___str__(self)
10858
10859 - def __eq__(self, rhs):
10860 if not isinstance(rhs, type(self)): 10861 return False 10862 10863 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
10864
10865 - def __ne__(self, rhs):
10866 if not isinstance(rhs, type(self)): 10867 return True 10868 10869 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
10870 10871 SBThread_swigregister = _lldb.SBThread_swigregister 10872 SBThread_swigregister(SBThread)
10873 10874 -def SBThread_GetBroadcasterClassName():
10875 """SBThread_GetBroadcasterClassName() -> char const *""" 10876 return _lldb.SBThread_GetBroadcasterClassName()
10877
10878 -def SBThread_EventIsThreadEvent(*args):
10879 """SBThread_EventIsThreadEvent(SBEvent event) -> bool""" 10880 return _lldb.SBThread_EventIsThreadEvent(*args)
10881
10882 -def SBThread_GetStackFrameFromEvent(*args):
10883 """SBThread_GetStackFrameFromEvent(SBEvent event) -> SBFrame""" 10884 return _lldb.SBThread_GetStackFrameFromEvent(*args)
10885
10886 -def SBThread_GetThreadFromEvent(*args):
10887 """SBThread_GetThreadFromEvent(SBEvent event) -> SBThread""" 10888 return _lldb.SBThread_GetThreadFromEvent(*args)
10889
10890 -class SBThreadCollection(_object):
10891 """Represents a collection of SBThread objects.""" 10892 __swig_setmethods__ = {} 10893 __setattr__ = lambda self, name, value: _swig_setattr(self, SBThreadCollection, name, value) 10894 __swig_getmethods__ = {} 10895 __getattr__ = lambda self, name: _swig_getattr(self, SBThreadCollection, name) 10896 __repr__ = _swig_repr
10897 - def __init__(self, *args):
10898 """ 10899 __init__(lldb::SBThreadCollection self) -> SBThreadCollection 10900 __init__(lldb::SBThreadCollection self, SBThreadCollection rhs) -> SBThreadCollection 10901 """ 10902 this = _lldb.new_SBThreadCollection(*args) 10903 try: self.this.append(this) 10904 except: self.this = this
10905 __swig_destroy__ = _lldb.delete_SBThreadCollection 10906 __del__ = lambda self : None;
10907 - def IsValid(self):
10908 """IsValid(SBThreadCollection self) -> bool""" 10909 return _lldb.SBThreadCollection_IsValid(self)
10910
10911 - def __nonzero__(self):
10912 return _lldb.SBThreadCollection___nonzero__(self)
10913 __bool__ = __nonzero__ 10914 10915
10916 - def GetSize(self):
10917 """GetSize(SBThreadCollection self) -> size_t""" 10918 return _lldb.SBThreadCollection_GetSize(self)
10919
10920 - def GetThreadAtIndex(self, *args):
10921 """GetThreadAtIndex(SBThreadCollection self, size_t idx) -> SBThread""" 10922 return _lldb.SBThreadCollection_GetThreadAtIndex(self, *args)
10923 10924 SBThreadCollection_swigregister = _lldb.SBThreadCollection_swigregister 10925 SBThreadCollection_swigregister(SBThreadCollection)
10926 10927 -class SBThreadPlan(_object):
10928 """Proxy of C++ lldb::SBThreadPlan class""" 10929 __swig_setmethods__ = {} 10930 __setattr__ = lambda self, name, value: _swig_setattr(self, SBThreadPlan, name, value) 10931 __swig_getmethods__ = {} 10932 __getattr__ = lambda self, name: _swig_getattr(self, SBThreadPlan, name) 10933 __repr__ = _swig_repr
10934 - def __init__(self, *args):
10935 """ 10936 __init__(lldb::SBThreadPlan self) -> SBThreadPlan 10937 __init__(lldb::SBThreadPlan self, SBThreadPlan threadPlan) -> SBThreadPlan 10938 __init__(lldb::SBThreadPlan self, lldb::ThreadPlanSP const & lldb_object_sp) -> SBThreadPlan 10939 __init__(lldb::SBThreadPlan self, SBThread thread, char const * class_name) -> SBThreadPlan 10940 """ 10941 this = _lldb.new_SBThreadPlan(*args) 10942 try: self.this.append(this) 10943 except: self.this = this
10944 __swig_destroy__ = _lldb.delete_SBThreadPlan 10945 __del__ = lambda self : None;
10946 - def __nonzero__(self):
10947 return _lldb.SBThreadPlan___nonzero__(self)
10948 __bool__ = __nonzero__ 10949 10950
10951 - def Clear(self):
10952 """Clear(SBThreadPlan self)""" 10953 return _lldb.SBThreadPlan_Clear(self)
10954
10955 - def GetStopReason(self):
10956 """GetStopReason(SBThreadPlan self) -> lldb::StopReason""" 10957 return _lldb.SBThreadPlan_GetStopReason(self)
10958
10959 - def GetStopReasonDataCount(self):
10960 """ 10961 GetStopReasonDataCount(SBThreadPlan self) -> size_t 10962 10963 Get the number of words associated with the stop reason. 10964 See also GetStopReasonDataAtIndex(). 10965 """ 10966 return _lldb.SBThreadPlan_GetStopReasonDataCount(self)
10967
10968 - def GetStopReasonDataAtIndex(self, *args):
10969 """ 10970 GetStopReasonDataAtIndex(SBThreadPlan self, uint32_t idx) -> uint64_t 10971 10972 Get information associated with a stop reason. 10973 10974 Breakpoint stop reasons will have data that consists of pairs of 10975 breakpoint IDs followed by the breakpoint location IDs (they always come 10976 in pairs). 10977 10978 Stop Reason Count Data Type 10979 ======================== ===== ========================================= 10980 eStopReasonNone 0 10981 eStopReasonTrace 0 10982 eStopReasonBreakpoint N duple: {breakpoint id, location id} 10983 eStopReasonWatchpoint 1 watchpoint id 10984 eStopReasonSignal 1 unix signal number 10985 eStopReasonException N exception data 10986 eStopReasonExec 0 10987 eStopReasonPlanComplete 0 10988 """ 10989 return _lldb.SBThreadPlan_GetStopReasonDataAtIndex(self, *args)
10990
10991 - def GetThread(self):
10992 """GetThread(SBThreadPlan self) -> SBThread""" 10993 return _lldb.SBThreadPlan_GetThread(self)
10994
10995 - def GetDescription(self, *args):
10996 """GetDescription(SBThreadPlan self, SBStream description) -> bool""" 10997 return _lldb.SBThreadPlan_GetDescription(self, *args)
10998
10999 - def SetPlanComplete(self, *args):
11000 """SetPlanComplete(SBThreadPlan self, bool success)""" 11001 return _lldb.SBThreadPlan_SetPlanComplete(self, *args)
11002
11003 - def IsPlanComplete(self):
11004 """IsPlanComplete(SBThreadPlan self) -> bool""" 11005 return _lldb.SBThreadPlan_IsPlanComplete(self)
11006
11007 - def IsPlanStale(self):
11008 """IsPlanStale(SBThreadPlan self) -> bool""" 11009 return _lldb.SBThreadPlan_IsPlanStale(self)
11010
11011 - def IsValid(self, *args):
11012 """ 11013 IsValid(SBThreadPlan self) -> bool 11014 IsValid(SBThreadPlan self) -> bool 11015 """ 11016 return _lldb.SBThreadPlan_IsValid(self, *args)
11017
11018 - def QueueThreadPlanForStepOverRange(self, *args):
11019 """QueueThreadPlanForStepOverRange(SBThreadPlan self, SBAddress start_address, lldb::addr_t range_size) -> SBThreadPlan""" 11020 return _lldb.SBThreadPlan_QueueThreadPlanForStepOverRange(self, *args)
11021
11022 - def QueueThreadPlanForStepInRange(self, *args):
11023 """QueueThreadPlanForStepInRange(SBThreadPlan self, SBAddress start_address, lldb::addr_t range_size) -> SBThreadPlan""" 11024 return _lldb.SBThreadPlan_QueueThreadPlanForStepInRange(self, *args)
11025
11026 - def QueueThreadPlanForStepOut(self, *args):
11027 """ 11028 QueueThreadPlanForStepOut(SBThreadPlan self, uint32_t frame_idx_to_step_to, bool first_insn=False) -> SBThreadPlan 11029 QueueThreadPlanForStepOut(SBThreadPlan self, uint32_t frame_idx_to_step_to) -> SBThreadPlan 11030 """ 11031 return _lldb.SBThreadPlan_QueueThreadPlanForStepOut(self, *args)
11032
11033 - def QueueThreadPlanForRunToAddress(self, *args):
11034 """QueueThreadPlanForRunToAddress(SBThreadPlan self, SBAddress address) -> SBThreadPlan""" 11035 return _lldb.SBThreadPlan_QueueThreadPlanForRunToAddress(self, *args)
11036
11037 - def QueueThreadPlanForStepScripted(self, *args):
11038 """QueueThreadPlanForStepScripted(SBThreadPlan self, char const * script_class_name) -> SBThreadPlan""" 11039 return _lldb.SBThreadPlan_QueueThreadPlanForStepScripted(self, *args)
11040 11041 SBThreadPlan_swigregister = _lldb.SBThreadPlan_swigregister 11042 SBThreadPlan_swigregister(SBThreadPlan)
11043 11044 -class SBTrace(_object):
11045 """Proxy of C++ lldb::SBTrace class""" 11046 __swig_setmethods__ = {} 11047 __setattr__ = lambda self, name, value: _swig_setattr(self, SBTrace, name, value) 11048 __swig_getmethods__ = {} 11049 __getattr__ = lambda self, name: _swig_getattr(self, SBTrace, name) 11050 __repr__ = _swig_repr
11051 - def __init__(self):
11052 """__init__(lldb::SBTrace self) -> SBTrace""" 11053 this = _lldb.new_SBTrace() 11054 try: self.this.append(this) 11055 except: self.this = this
11056 - def GetTraceData(self, *args):
11057 """GetTraceData(SBTrace self, SBError error, void * buf, size_t offset, lldb::tid_t thread_id) -> size_t""" 11058 return _lldb.SBTrace_GetTraceData(self, *args)
11059
11060 - def GetMetaData(self, *args):
11061 """GetMetaData(SBTrace self, SBError error, void * buf, size_t offset, lldb::tid_t thread_id) -> size_t""" 11062 return _lldb.SBTrace_GetMetaData(self, *args)
11063
11064 - def StopTrace(self, *args):
11065 """StopTrace(SBTrace self, SBError error, lldb::tid_t thread_id)""" 11066 return _lldb.SBTrace_StopTrace(self, *args)
11067
11068 - def GetTraceConfig(self, *args):
11069 """GetTraceConfig(SBTrace self, SBTraceOptions options, SBError error)""" 11070 return _lldb.SBTrace_GetTraceConfig(self, *args)
11071
11072 - def GetTraceUID(self):
11073 """GetTraceUID(SBTrace self) -> lldb::user_id_t""" 11074 return _lldb.SBTrace_GetTraceUID(self)
11075
11076 - def __nonzero__(self):
11077 return _lldb.SBTrace___nonzero__(self)
11078 __bool__ = __nonzero__ 11079 11080
11081 - def IsValid(self):
11082 """IsValid(SBTrace self) -> bool""" 11083 return _lldb.SBTrace_IsValid(self)
11084 11085 __swig_destroy__ = _lldb.delete_SBTrace 11086 __del__ = lambda self : None; 11087 SBTrace_swigregister = _lldb.SBTrace_swigregister 11088 SBTrace_swigregister(SBTrace)
11089 11090 -class SBTraceOptions(_object):
11091 """Proxy of C++ lldb::SBTraceOptions class""" 11092 __swig_setmethods__ = {} 11093 __setattr__ = lambda self, name, value: _swig_setattr(self, SBTraceOptions, name, value) 11094 __swig_getmethods__ = {} 11095 __getattr__ = lambda self, name: _swig_getattr(self, SBTraceOptions, name) 11096 __repr__ = _swig_repr
11097 - def __init__(self):
11098 """__init__(lldb::SBTraceOptions self) -> SBTraceOptions""" 11099 this = _lldb.new_SBTraceOptions() 11100 try: self.this.append(this) 11101 except: self.this = this
11102 - def getType(self):
11103 """getType(SBTraceOptions self) -> lldb::TraceType""" 11104 return _lldb.SBTraceOptions_getType(self)
11105
11106 - def getTraceBufferSize(self):
11107 """getTraceBufferSize(SBTraceOptions self) -> uint64_t""" 11108 return _lldb.SBTraceOptions_getTraceBufferSize(self)
11109
11110 - def getTraceParams(self, *args):
11111 """getTraceParams(SBTraceOptions self, SBError error) -> SBStructuredData""" 11112 return _lldb.SBTraceOptions_getTraceParams(self, *args)
11113
11114 - def getMetaDataBufferSize(self):
11115 """getMetaDataBufferSize(SBTraceOptions self) -> uint64_t""" 11116 return _lldb.SBTraceOptions_getMetaDataBufferSize(self)
11117
11118 - def setTraceParams(self, *args):
11119 """setTraceParams(SBTraceOptions self, SBStructuredData params)""" 11120 return _lldb.SBTraceOptions_setTraceParams(self, *args)
11121
11122 - def setType(self, *args):
11123 """setType(SBTraceOptions self, lldb::TraceType type)""" 11124 return _lldb.SBTraceOptions_setType(self, *args)
11125
11126 - def setTraceBufferSize(self, *args):
11127 """setTraceBufferSize(SBTraceOptions self, uint64_t size)""" 11128 return _lldb.SBTraceOptions_setTraceBufferSize(self, *args)
11129
11130 - def setMetaDataBufferSize(self, *args):
11131 """setMetaDataBufferSize(SBTraceOptions self, uint64_t size)""" 11132 return _lldb.SBTraceOptions_setMetaDataBufferSize(self, *args)
11133
11134 - def setThreadID(self, *args):
11135 """setThreadID(SBTraceOptions self, lldb::tid_t thread_id)""" 11136 return _lldb.SBTraceOptions_setThreadID(self, *args)
11137
11138 - def getThreadID(self):
11139 """getThreadID(SBTraceOptions self) -> lldb::tid_t""" 11140 return _lldb.SBTraceOptions_getThreadID(self)
11141
11142 - def __nonzero__(self):
11143 return _lldb.SBTraceOptions___nonzero__(self)
11144 __bool__ = __nonzero__ 11145 11146
11147 - def IsValid(self):
11148 """IsValid(SBTraceOptions self) -> bool""" 11149 return _lldb.SBTraceOptions_IsValid(self)
11150 11151 __swig_destroy__ = _lldb.delete_SBTraceOptions 11152 __del__ = lambda self : None; 11153 SBTraceOptions_swigregister = _lldb.SBTraceOptions_swigregister 11154 SBTraceOptions_swigregister(SBTraceOptions)
11155 11156 -class SBTypeMember(_object):
11157 """Represents a member of a type in lldb.""" 11158 __swig_setmethods__ = {} 11159 __setattr__ = lambda self, name, value: _swig_setattr(self, SBTypeMember, name, value) 11160 __swig_getmethods__ = {} 11161 __getattr__ = lambda self, name: _swig_getattr(self, SBTypeMember, name) 11162 __repr__ = _swig_repr
11163 - def __init__(self, *args):
11164 """ 11165 __init__(lldb::SBTypeMember self) -> SBTypeMember 11166 __init__(lldb::SBTypeMember self, SBTypeMember rhs) -> SBTypeMember 11167 """ 11168 this = _lldb.new_SBTypeMember(*args) 11169 try: self.this.append(this) 11170 except: self.this = this
11171 __swig_destroy__ = _lldb.delete_SBTypeMember 11172 __del__ = lambda self : None;
11173 - def IsValid(self):
11174 """IsValid(SBTypeMember self) -> bool""" 11175 return _lldb.SBTypeMember_IsValid(self)
11176
11177 - def __nonzero__(self):
11178 return _lldb.SBTypeMember___nonzero__(self)
11179 __bool__ = __nonzero__ 11180 11181
11182 - def GetName(self):
11183 """GetName(SBTypeMember self) -> char const *""" 11184 return _lldb.SBTypeMember_GetName(self)
11185
11186 - def GetType(self):
11187 """GetType(SBTypeMember self) -> SBType""" 11188 return _lldb.SBTypeMember_GetType(self)
11189
11190 - def GetOffsetInBytes(self):
11191 """GetOffsetInBytes(SBTypeMember self) -> uint64_t""" 11192 return _lldb.SBTypeMember_GetOffsetInBytes(self)
11193
11194 - def GetOffsetInBits(self):
11195 """GetOffsetInBits(SBTypeMember self) -> uint64_t""" 11196 return _lldb.SBTypeMember_GetOffsetInBits(self)
11197
11198 - def IsBitfield(self):
11199 """IsBitfield(SBTypeMember self) -> bool""" 11200 return _lldb.SBTypeMember_IsBitfield(self)
11201
11202 - def GetBitfieldSizeInBits(self):
11203 """GetBitfieldSizeInBits(SBTypeMember self) -> uint32_t""" 11204 return _lldb.SBTypeMember_GetBitfieldSizeInBits(self)
11205 11206 __swig_getmethods__["name"] = GetName 11207 if _newclass: name = property(GetName, None, doc='''A read only property that returns the name for this member as a string.''') 11208 11209 __swig_getmethods__["type"] = GetType 11210 if _newclass: type = property(GetType, None, doc='''A read only property that returns an lldb object that represents the type (lldb.SBType) for this member.''') 11211 11212 __swig_getmethods__["byte_offset"] = GetOffsetInBytes 11213 if _newclass: byte_offset = property(GetOffsetInBytes, None, doc='''A read only property that returns offset in bytes for this member as an integer.''') 11214 11215 __swig_getmethods__["bit_offset"] = GetOffsetInBits 11216 if _newclass: bit_offset = property(GetOffsetInBits, None, doc='''A read only property that returns offset in bits for this member as an integer.''') 11217 11218 __swig_getmethods__["is_bitfield"] = IsBitfield 11219 if _newclass: is_bitfield = property(IsBitfield, None, doc='''A read only property that returns true if this member is a bitfield.''') 11220 11221 __swig_getmethods__["bitfield_bit_size"] = GetBitfieldSizeInBits 11222 if _newclass: bitfield_bit_size = property(GetBitfieldSizeInBits, None, doc='''A read only property that returns the bitfield size in bits for this member as an integer, or zero if this member is not a bitfield.''') 11223 11224
11225 - def __str__(self):
11226 """__str__(SBTypeMember self) -> PyObject *""" 11227 return _lldb.SBTypeMember___str__(self)
11228 11229 SBTypeMember_swigregister = _lldb.SBTypeMember_swigregister 11230 SBTypeMember_swigregister(SBTypeMember)
11231 11232 -class SBTypeMemberFunction(_object):
11233 """Proxy of C++ lldb::SBTypeMemberFunction class""" 11234 __swig_setmethods__ = {} 11235 __setattr__ = lambda self, name, value: _swig_setattr(self, SBTypeMemberFunction, name, value) 11236 __swig_getmethods__ = {} 11237 __getattr__ = lambda self, name: _swig_getattr(self, SBTypeMemberFunction, name) 11238 __repr__ = _swig_repr
11239 - def __init__(self, *args):
11240 """ 11241 __init__(lldb::SBTypeMemberFunction self) -> SBTypeMemberFunction 11242 __init__(lldb::SBTypeMemberFunction self, SBTypeMemberFunction rhs) -> SBTypeMemberFunction 11243 """ 11244 this = _lldb.new_SBTypeMemberFunction(*args) 11245 try: self.this.append(this) 11246 except: self.this = this
11247 __swig_destroy__ = _lldb.delete_SBTypeMemberFunction 11248 __del__ = lambda self : None;
11249 - def IsValid(self):
11250 """IsValid(SBTypeMemberFunction self) -> bool""" 11251 return _lldb.SBTypeMemberFunction_IsValid(self)
11252
11253 - def __nonzero__(self):
11254 return _lldb.SBTypeMemberFunction___nonzero__(self)
11255 __bool__ = __nonzero__ 11256 11257
11258 - def GetName(self):
11259 """GetName(SBTypeMemberFunction self) -> char const *""" 11260 return _lldb.SBTypeMemberFunction_GetName(self)
11261
11262 - def GetDemangledName(self):
11263 """GetDemangledName(SBTypeMemberFunction self) -> char const *""" 11264 return _lldb.SBTypeMemberFunction_GetDemangledName(self)
11265
11266 - def GetMangledName(self):
11267 """GetMangledName(SBTypeMemberFunction self) -> char const *""" 11268 return _lldb.SBTypeMemberFunction_GetMangledName(self)
11269
11270 - def GetType(self):
11271 """GetType(SBTypeMemberFunction self) -> SBType""" 11272 return _lldb.SBTypeMemberFunction_GetType(self)
11273
11274 - def GetReturnType(self):
11275 """GetReturnType(SBTypeMemberFunction self) -> SBType""" 11276 return _lldb.SBTypeMemberFunction_GetReturnType(self)
11277
11278 - def GetNumberOfArguments(self):
11279 """GetNumberOfArguments(SBTypeMemberFunction self) -> uint32_t""" 11280 return _lldb.SBTypeMemberFunction_GetNumberOfArguments(self)
11281
11282 - def GetArgumentTypeAtIndex(self, *args):
11283 """GetArgumentTypeAtIndex(SBTypeMemberFunction self, uint32_t arg2) -> SBType""" 11284 return _lldb.SBTypeMemberFunction_GetArgumentTypeAtIndex(self, *args)
11285
11286 - def GetKind(self):
11287 """GetKind(SBTypeMemberFunction self) -> lldb::MemberFunctionKind""" 11288 return _lldb.SBTypeMemberFunction_GetKind(self)
11289
11290 - def GetDescription(self, *args):
11291 """GetDescription(SBTypeMemberFunction self, SBStream description, lldb::DescriptionLevel description_level) -> bool""" 11292 return _lldb.SBTypeMemberFunction_GetDescription(self, *args)
11293
11294 - def __str__(self):
11295 """__str__(SBTypeMemberFunction self) -> PyObject *""" 11296 return _lldb.SBTypeMemberFunction___str__(self)
11297 11298 SBTypeMemberFunction_swigregister = _lldb.SBTypeMemberFunction_swigregister 11299 SBTypeMemberFunction_swigregister(SBTypeMemberFunction)
11300 11301 -class SBType(_object):
11302 """ 11303 Represents a data type in lldb. The FindFirstType() method of SBTarget/SBModule 11304 returns a SBType. 11305 11306 SBType supports the eq/ne operator. For example, 11307 11308 main.cpp: 11309 11310 class Task { 11311 public: 11312 int id; 11313 Task *next; 11314 Task(int i, Task *n): 11315 id(i), 11316 next(n) 11317 {} 11318 }; 11319 11320 int main (int argc, char const *argv[]) 11321 { 11322 Task *task_head = new Task(-1, NULL); 11323 Task *task1 = new Task(1, NULL); 11324 Task *task2 = new Task(2, NULL); 11325 Task *task3 = new Task(3, NULL); // Orphaned. 11326 Task *task4 = new Task(4, NULL); 11327 Task *task5 = new Task(5, NULL); 11328 11329 task_head->next = task1; 11330 task1->next = task2; 11331 task2->next = task4; 11332 task4->next = task5; 11333 11334 int total = 0; 11335 Task *t = task_head; 11336 while (t != NULL) { 11337 if (t->id >= 0) 11338 ++total; 11339 t = t->next; 11340 } 11341 printf('We have a total number of %d tasks\n', total); 11342 11343 // This corresponds to an empty task list. 11344 Task *empty_task_head = new Task(-1, NULL); 11345 11346 return 0; // Break at this line 11347 } 11348 11349 find_type.py: 11350 11351 # Get the type 'Task'. 11352 task_type = target.FindFirstType('Task') 11353 self.assertTrue(task_type) 11354 11355 # Get the variable 'task_head'. 11356 frame0.FindVariable('task_head') 11357 task_head_type = task_head.GetType() 11358 self.assertTrue(task_head_type.IsPointerType()) 11359 11360 # task_head_type is 'Task *'. 11361 task_pointer_type = task_type.GetPointerType() 11362 self.assertTrue(task_head_type == task_pointer_type) 11363 11364 # Get the child mmember 'id' from 'task_head'. 11365 id = task_head.GetChildMemberWithName('id') 11366 id_type = id.GetType() 11367 11368 # SBType.GetBasicType() takes an enum 'BasicType' (lldb-enumerations.h). 11369 int_type = id_type.GetBasicType(lldb.eBasicTypeInt) 11370 # id_type and int_type should be the same type! 11371 self.assertTrue(id_type == int_type) 11372 11373 ... 11374 """ 11375 __swig_setmethods__ = {} 11376 __setattr__ = lambda self, name, value: _swig_setattr(self, SBType, name, value) 11377 __swig_getmethods__ = {} 11378 __getattr__ = lambda self, name: _swig_getattr(self, SBType, name) 11379 __repr__ = _swig_repr
11380 - def __init__(self, *args):
11381 """ 11382 __init__(lldb::SBType self) -> SBType 11383 __init__(lldb::SBType self, SBType rhs) -> SBType 11384 """ 11385 this = _lldb.new_SBType(*args) 11386 try: self.this.append(this) 11387 except: self.this = this
11388 __swig_destroy__ = _lldb.delete_SBType 11389 __del__ = lambda self : None;
11390 - def IsValid(self):
11391 """IsValid(SBType self) -> bool""" 11392 return _lldb.SBType_IsValid(self)
11393
11394 - def __nonzero__(self):
11395 return _lldb.SBType___nonzero__(self)
11396 __bool__ = __nonzero__ 11397 11398
11399 - def GetByteSize(self):
11400 """GetByteSize(SBType self) -> uint64_t""" 11401 return _lldb.SBType_GetByteSize(self)
11402
11403 - def IsPointerType(self):
11404 """IsPointerType(SBType self) -> bool""" 11405 return _lldb.SBType_IsPointerType(self)
11406
11407 - def IsReferenceType(self):
11408 """IsReferenceType(SBType self) -> bool""" 11409 return _lldb.SBType_IsReferenceType(self)
11410
11411 - def IsFunctionType(self):
11412 """IsFunctionType(SBType self) -> bool""" 11413 return _lldb.SBType_IsFunctionType(self)
11414
11415 - def IsPolymorphicClass(self):
11416 """IsPolymorphicClass(SBType self) -> bool""" 11417 return _lldb.SBType_IsPolymorphicClass(self)
11418
11419 - def IsArrayType(self):
11420 """IsArrayType(SBType self) -> bool""" 11421 return _lldb.SBType_IsArrayType(self)
11422
11423 - def IsVectorType(self):
11424 """IsVectorType(SBType self) -> bool""" 11425 return _lldb.SBType_IsVectorType(self)
11426
11427 - def IsTypedefType(self):
11428 """IsTypedefType(SBType self) -> bool""" 11429 return _lldb.SBType_IsTypedefType(self)
11430
11431 - def IsAnonymousType(self):
11432 """IsAnonymousType(SBType self) -> bool""" 11433 return _lldb.SBType_IsAnonymousType(self)
11434
11435 - def GetPointerType(self):
11436 """GetPointerType(SBType self) -> SBType""" 11437 return _lldb.SBType_GetPointerType(self)
11438
11439 - def GetPointeeType(self):
11440 """GetPointeeType(SBType self) -> SBType""" 11441 return _lldb.SBType_GetPointeeType(self)
11442
11443 - def GetReferenceType(self):
11444 """GetReferenceType(SBType self) -> SBType""" 11445 return _lldb.SBType_GetReferenceType(self)
11446
11447 - def GetTypedefedType(self):
11448 """GetTypedefedType(SBType self) -> SBType""" 11449 return _lldb.SBType_GetTypedefedType(self)
11450
11451 - def GetDereferencedType(self):
11452 """GetDereferencedType(SBType self) -> SBType""" 11453 return _lldb.SBType_GetDereferencedType(self)
11454
11455 - def GetUnqualifiedType(self):
11456 """GetUnqualifiedType(SBType self) -> SBType""" 11457 return _lldb.SBType_GetUnqualifiedType(self)
11458
11459 - def GetCanonicalType(self):
11460 """GetCanonicalType(SBType self) -> SBType""" 11461 return _lldb.SBType_GetCanonicalType(self)
11462
11463 - def GetArrayElementType(self):
11464 """GetArrayElementType(SBType self) -> SBType""" 11465 return _lldb.SBType_GetArrayElementType(self)
11466
11467 - def GetArrayType(self, *args):
11468 """GetArrayType(SBType self, uint64_t size) -> SBType""" 11469 return _lldb.SBType_GetArrayType(self, *args)
11470
11471 - def GetVectorElementType(self):
11472 """GetVectorElementType(SBType self) -> SBType""" 11473 return _lldb.SBType_GetVectorElementType(self)
11474
11475 - def GetBasicType(self, *args):
11476 """ 11477 GetBasicType(SBType self) -> lldb::BasicType 11478 GetBasicType(SBType self, lldb::BasicType type) -> SBType 11479 """ 11480 return _lldb.SBType_GetBasicType(self, *args)
11481
11482 - def GetNumberOfFields(self):
11483 """GetNumberOfFields(SBType self) -> uint32_t""" 11484 return _lldb.SBType_GetNumberOfFields(self)
11485
11486 - def GetNumberOfDirectBaseClasses(self):
11487 """GetNumberOfDirectBaseClasses(SBType self) -> uint32_t""" 11488 return _lldb.SBType_GetNumberOfDirectBaseClasses(self)
11489
11490 - def GetNumberOfVirtualBaseClasses(self):
11491 """GetNumberOfVirtualBaseClasses(SBType self) -> uint32_t""" 11492 return _lldb.SBType_GetNumberOfVirtualBaseClasses(self)
11493
11494 - def GetFieldAtIndex(self, *args):
11495 """GetFieldAtIndex(SBType self, uint32_t idx) -> SBTypeMember""" 11496 return _lldb.SBType_GetFieldAtIndex(self, *args)
11497
11498 - def GetDirectBaseClassAtIndex(self, *args):
11499 """GetDirectBaseClassAtIndex(SBType self, uint32_t idx) -> SBTypeMember""" 11500 return _lldb.SBType_GetDirectBaseClassAtIndex(self, *args)
11501
11502 - def GetVirtualBaseClassAtIndex(self, *args):
11503 """GetVirtualBaseClassAtIndex(SBType self, uint32_t idx) -> SBTypeMember""" 11504 return _lldb.SBType_GetVirtualBaseClassAtIndex(self, *args)
11505
11506 - def GetEnumMembers(self):
11507 """GetEnumMembers(SBType self) -> SBTypeEnumMemberList""" 11508 return _lldb.SBType_GetEnumMembers(self)
11509
11510 - def GetName(self):
11511 """GetName(SBType self) -> char const *""" 11512 return _lldb.SBType_GetName(self)
11513
11514 - def GetDisplayTypeName(self):
11515 """GetDisplayTypeName(SBType self) -> char const *""" 11516 return _lldb.SBType_GetDisplayTypeName(self)
11517
11518 - def GetTypeClass(self):
11519 """GetTypeClass(SBType self) -> lldb::TypeClass""" 11520 return _lldb.SBType_GetTypeClass(self)
11521
11522 - def GetNumberOfTemplateArguments(self):
11523 """GetNumberOfTemplateArguments(SBType self) -> uint32_t""" 11524 return _lldb.SBType_GetNumberOfTemplateArguments(self)
11525
11526 - def GetTemplateArgumentType(self, *args):
11527 """GetTemplateArgumentType(SBType self, uint32_t idx) -> SBType""" 11528 return _lldb.SBType_GetTemplateArgumentType(self, *args)
11529
11530 - def GetTemplateArgumentKind(self, *args):
11531 """GetTemplateArgumentKind(SBType self, uint32_t idx) -> lldb::TemplateArgumentKind""" 11532 return _lldb.SBType_GetTemplateArgumentKind(self, *args)
11533
11534 - def GetFunctionReturnType(self):
11535 """GetFunctionReturnType(SBType self) -> SBType""" 11536 return _lldb.SBType_GetFunctionReturnType(self)
11537
11538 - def GetFunctionArgumentTypes(self):
11539 """GetFunctionArgumentTypes(SBType self) -> SBTypeList""" 11540 return _lldb.SBType_GetFunctionArgumentTypes(self)
11541
11542 - def GetNumberOfMemberFunctions(self):
11543 """GetNumberOfMemberFunctions(SBType self) -> uint32_t""" 11544 return _lldb.SBType_GetNumberOfMemberFunctions(self)
11545
11546 - def GetMemberFunctionAtIndex(self, *args):
11547 """GetMemberFunctionAtIndex(SBType self, uint32_t idx) -> SBTypeMemberFunction""" 11548 return _lldb.SBType_GetMemberFunctionAtIndex(self, *args)
11549
11550 - def IsTypeComplete(self):
11551 """IsTypeComplete(SBType self) -> bool""" 11552 return _lldb.SBType_IsTypeComplete(self)
11553
11554 - def GetTypeFlags(self):
11555 """GetTypeFlags(SBType self) -> uint32_t""" 11556 return _lldb.SBType_GetTypeFlags(self)
11557
11558 - def __eq__(self, *args):
11559 """__eq__(SBType self, SBType rhs) -> bool""" 11560 return _lldb.SBType___eq__(self, *args)
11561
11562 - def __ne__(self, *args):
11563 """__ne__(SBType self, SBType rhs) -> bool""" 11564 return _lldb.SBType___ne__(self, *args)
11565
11566 - def template_arg_array(self):
11567 num_args = self.num_template_args 11568 if num_args: 11569 template_args = [] 11570 for i in range(num_args): 11571 template_args.append(self.GetTemplateArgumentType(i)) 11572 return template_args 11573 return None
11574 11575 __swig_getmethods__["name"] = GetName 11576 if _newclass: name = property(GetName, None, doc='''A read only property that returns the name for this type as a string.''') 11577 11578 __swig_getmethods__["size"] = GetByteSize 11579 if _newclass: size = property(GetByteSize, None, doc='''A read only property that returns size in bytes for this type as an integer.''') 11580 11581 __swig_getmethods__["is_pointer"] = IsPointerType 11582 if _newclass: is_pointer = property(IsPointerType, None, doc='''A read only property that returns a boolean value that indicates if this type is a pointer type.''') 11583 11584 __swig_getmethods__["is_reference"] = IsReferenceType 11585 if _newclass: is_reference = property(IsReferenceType, None, doc='''A read only property that returns a boolean value that indicates if this type is a reference type.''') 11586 11587 __swig_getmethods__["is_function"] = IsFunctionType 11588 if _newclass: is_reference = property(IsReferenceType, None, doc='''A read only property that returns a boolean value that indicates if this type is a function type.''') 11589 11590 __swig_getmethods__["num_fields"] = GetNumberOfFields 11591 if _newclass: num_fields = property(GetNumberOfFields, None, doc='''A read only property that returns number of fields in this type as an integer.''') 11592 11593 __swig_getmethods__["num_bases"] = GetNumberOfDirectBaseClasses 11594 if _newclass: num_bases = property(GetNumberOfDirectBaseClasses, None, doc='''A read only property that returns number of direct base classes in this type as an integer.''') 11595 11596 __swig_getmethods__["num_vbases"] = GetNumberOfVirtualBaseClasses 11597 if _newclass: num_vbases = property(GetNumberOfVirtualBaseClasses, None, doc='''A read only property that returns number of virtual base classes in this type as an integer.''') 11598 11599 __swig_getmethods__["num_template_args"] = GetNumberOfTemplateArguments 11600 if _newclass: num_template_args = property(GetNumberOfTemplateArguments, None, doc='''A read only property that returns number of template arguments in this type as an integer.''') 11601 11602 __swig_getmethods__["template_args"] = template_arg_array 11603 if _newclass: template_args = property(template_arg_array, None, doc='''A read only property that returns a list() of lldb.SBType objects that represent all template arguments in this type.''') 11604 11605 __swig_getmethods__["type"] = GetTypeClass 11606 if _newclass: type = property(GetTypeClass, None, doc='''A read only property that returns an lldb enumeration value (see enumerations that start with "lldb.eTypeClass") that represents a classification for this type.''') 11607 11608 __swig_getmethods__["is_complete"] = IsTypeComplete 11609 if _newclass: is_complete = property(IsTypeComplete, None, doc='''A read only property that returns a boolean value that indicates if this type is a complete type (True) or a forward declaration (False).''') 11610
11611 - def get_bases_array(self):
11612 '''An accessor function that returns a list() that contains all direct base classes in a lldb.SBType object.''' 11613 bases = [] 11614 for idx in range(self.GetNumberOfDirectBaseClasses()): 11615 bases.append(self.GetDirectBaseClassAtIndex(idx)) 11616 return bases
11617
11618 - def get_vbases_array(self):
11619 '''An accessor function that returns a list() that contains all fields in a lldb.SBType object.''' 11620 vbases = [] 11621 for idx in range(self.GetNumberOfVirtualBaseClasses()): 11622 vbases.append(self.GetVirtualBaseClassAtIndex(idx)) 11623 return vbases
11624
11625 - def get_fields_array(self):
11626 '''An accessor function that returns a list() that contains all fields in a lldb.SBType object.''' 11627 fields = [] 11628 for idx in range(self.GetNumberOfFields()): 11629 fields.append(self.GetFieldAtIndex(idx)) 11630 return fields
11631
11632 - def get_members_array(self):
11633 '''An accessor function that returns a list() that contains all members (base classes and fields) in a lldb.SBType object in ascending bit offset order.''' 11634 members = [] 11635 bases = self.get_bases_array() 11636 fields = self.get_fields_array() 11637 vbases = self.get_vbases_array() 11638 for base in bases: 11639 bit_offset = base.bit_offset 11640 added = False 11641 for idx, member in enumerate(members): 11642 if member.bit_offset > bit_offset: 11643 members.insert(idx, base) 11644 added = True 11645 break 11646 if not added: 11647 members.append(base) 11648 for vbase in vbases: 11649 bit_offset = vbase.bit_offset 11650 added = False 11651 for idx, member in enumerate(members): 11652 if member.bit_offset > bit_offset: 11653 members.insert(idx, vbase) 11654 added = True 11655 break 11656 if not added: 11657 members.append(vbase) 11658 for field in fields: 11659 bit_offset = field.bit_offset 11660 added = False 11661 for idx, member in enumerate(members): 11662 if member.bit_offset > bit_offset: 11663 members.insert(idx, field) 11664 added = True 11665 break 11666 if not added: 11667 members.append(field) 11668 return members
11669
11670 - def get_enum_members_array(self):
11671 '''An accessor function that returns a list() that contains all enum members in an lldb.SBType object.''' 11672 enum_members_list = [] 11673 sb_enum_members = self.GetEnumMembers() 11674 for idx in range(sb_enum_members.GetSize()): 11675 enum_members_list.append(sb_enum_members.GetTypeEnumMemberAtIndex(idx)) 11676 return enum_members_list
11677 11678 __swig_getmethods__["bases"] = get_bases_array 11679 if _newclass: bases = property(get_bases_array, None, doc='''A read only property that returns a list() of lldb.SBTypeMember objects that represent all of the direct base classes for this type.''') 11680 11681 __swig_getmethods__["vbases"] = get_vbases_array 11682 if _newclass: vbases = property(get_vbases_array, None, doc='''A read only property that returns a list() of lldb.SBTypeMember objects that represent all of the virtual base classes for this type.''') 11683 11684 __swig_getmethods__["fields"] = get_fields_array 11685 if _newclass: fields = property(get_fields_array, None, doc='''A read only property that returns a list() of lldb.SBTypeMember objects that represent all of the fields for this type.''') 11686 11687 __swig_getmethods__["members"] = get_members_array 11688 if _newclass: members = property(get_members_array, None, doc='''A read only property that returns a list() of all lldb.SBTypeMember objects that represent all of the base classes, virtual base classes and fields for this type in ascending bit offset order.''') 11689 11690 __swig_getmethods__["enum_members"] = get_enum_members_array 11691 if _newclass: enum_members = property(get_enum_members_array, None, doc='''A read only property that returns a list() of all lldb.SBTypeEnumMember objects that represent the enum members for this type.''') 11692 11693
11694 - def __str__(self):
11695 """__str__(SBType self) -> PyObject *""" 11696 return _lldb.SBType___str__(self)
11697 11698 SBType_swigregister = _lldb.SBType_swigregister 11699 SBType_swigregister(SBType)
11700 11701 -class SBTypeList(_object):
11702 """ 11703 Represents a list of SBTypes. The FindTypes() method of SBTarget/SBModule 11704 returns a SBTypeList. 11705 11706 SBTypeList supports SBType iteration. For example, 11707 11708 main.cpp: 11709 11710 class Task { 11711 public: 11712 int id; 11713 Task *next; 11714 Task(int i, Task *n): 11715 id(i), 11716 next(n) 11717 {} 11718 }; 11719 11720 ... 11721 11722 find_type.py: 11723 11724 # Get the type 'Task'. 11725 type_list = target.FindTypes('Task') 11726 self.assertTrue(len(type_list) == 1) 11727 # To illustrate the SBType iteration. 11728 for type in type_list: 11729 # do something with type 11730 11731 ... 11732 """ 11733 __swig_setmethods__ = {} 11734 __setattr__ = lambda self, name, value: _swig_setattr(self, SBTypeList, name, value) 11735 __swig_getmethods__ = {} 11736 __getattr__ = lambda self, name: _swig_getattr(self, SBTypeList, name) 11737 __repr__ = _swig_repr
11738 - def __init__(self):
11739 """__init__(lldb::SBTypeList self) -> SBTypeList""" 11740 this = _lldb.new_SBTypeList() 11741 try: self.this.append(this) 11742 except: self.this = this
11743 - def IsValid(self):
11744 """IsValid(SBTypeList self) -> bool""" 11745 return _lldb.SBTypeList_IsValid(self)
11746
11747 - def __nonzero__(self):
11748 return _lldb.SBTypeList___nonzero__(self)
11749 __bool__ = __nonzero__ 11750 11751
11752 - def Append(self, *args):
11753 """Append(SBTypeList self, SBType type)""" 11754 return _lldb.SBTypeList_Append(self, *args)
11755
11756 - def GetTypeAtIndex(self, *args):
11757 """GetTypeAtIndex(SBTypeList self, uint32_t index) -> SBType""" 11758 return _lldb.SBTypeList_GetTypeAtIndex(self, *args)
11759
11760 - def GetSize(self):
11761 """GetSize(SBTypeList self) -> uint32_t""" 11762 return _lldb.SBTypeList_GetSize(self)
11763 11764 __swig_destroy__ = _lldb.delete_SBTypeList 11765 __del__ = lambda self : None;
11766 - def __iter__(self):
11767 '''Iterate over all types in a lldb.SBTypeList object.''' 11768 return lldb_iter(self, 'GetSize', 'GetTypeAtIndex')
11769
11770 - def __len__(self):
11771 '''Return the number of types in a lldb.SBTypeList object.''' 11772 return self.GetSize()
11773 11774 SBTypeList_swigregister = _lldb.SBTypeList_swigregister 11775 SBTypeList_swigregister(SBTypeList)
11776 11777 -class SBTypeCategory(_object):
11778 """Represents a category that can contain formatters for types.""" 11779 __swig_setmethods__ = {} 11780 __setattr__ = lambda self, name, value: _swig_setattr(self, SBTypeCategory, name, value) 11781 __swig_getmethods__ = {} 11782 __getattr__ = lambda self, name: _swig_getattr(self, SBTypeCategory, name) 11783 __repr__ = _swig_repr
11784 - def __init__(self, *args):
11785 """ 11786 __init__(lldb::SBTypeCategory self) -> SBTypeCategory 11787 __init__(lldb::SBTypeCategory self, SBTypeCategory rhs) -> SBTypeCategory 11788 """ 11789 this = _lldb.new_SBTypeCategory(*args) 11790 try: self.this.append(this) 11791 except: self.this = this
11792 __swig_destroy__ = _lldb.delete_SBTypeCategory 11793 __del__ = lambda self : None;
11794 - def IsValid(self):
11795 """IsValid(SBTypeCategory self) -> bool""" 11796 return _lldb.SBTypeCategory_IsValid(self)
11797
11798 - def __nonzero__(self):
11799 return _lldb.SBTypeCategory___nonzero__(self)
11800 __bool__ = __nonzero__ 11801 11802
11803 - def GetEnabled(self):
11804 """GetEnabled(SBTypeCategory self) -> bool""" 11805 return _lldb.SBTypeCategory_GetEnabled(self)
11806
11807 - def SetEnabled(self, *args):
11808 """SetEnabled(SBTypeCategory self, bool arg2)""" 11809 return _lldb.SBTypeCategory_SetEnabled(self, *args)
11810
11811 - def GetName(self):
11812 """GetName(SBTypeCategory self) -> char const *""" 11813 return _lldb.SBTypeCategory_GetName(self)
11814
11815 - def GetLanguageAtIndex(self, *args):
11816 """GetLanguageAtIndex(SBTypeCategory self, uint32_t idx) -> lldb::LanguageType""" 11817 return _lldb.SBTypeCategory_GetLanguageAtIndex(self, *args)
11818
11819 - def GetNumLanguages(self):
11820 """GetNumLanguages(SBTypeCategory self) -> uint32_t""" 11821 return _lldb.SBTypeCategory_GetNumLanguages(self)
11822
11823 - def AddLanguage(self, *args):
11824 """AddLanguage(SBTypeCategory self, lldb::LanguageType language)""" 11825 return _lldb.SBTypeCategory_AddLanguage(self, *args)
11826
11827 - def GetDescription(self, *args):
11828 """GetDescription(SBTypeCategory self, SBStream description, lldb::DescriptionLevel description_level) -> bool""" 11829 return _lldb.SBTypeCategory_GetDescription(self, *args)
11830
11831 - def GetNumFormats(self):
11832 """GetNumFormats(SBTypeCategory self) -> uint32_t""" 11833 return _lldb.SBTypeCategory_GetNumFormats(self)
11834
11835 - def GetNumSummaries(self):
11836 """GetNumSummaries(SBTypeCategory self) -> uint32_t""" 11837 return _lldb.SBTypeCategory_GetNumSummaries(self)
11838
11839 - def GetNumFilters(self):
11840 """GetNumFilters(SBTypeCategory self) -> uint32_t""" 11841 return _lldb.SBTypeCategory_GetNumFilters(self)
11842
11843 - def GetNumSynthetics(self):
11844 """GetNumSynthetics(SBTypeCategory self) -> uint32_t""" 11845 return _lldb.SBTypeCategory_GetNumSynthetics(self)
11846
11847 - def GetTypeNameSpecifierForFilterAtIndex(self, *args):
11848 """GetTypeNameSpecifierForFilterAtIndex(SBTypeCategory self, uint32_t arg2) -> SBTypeNameSpecifier""" 11849 return _lldb.SBTypeCategory_GetTypeNameSpecifierForFilterAtIndex(self, *args)
11850
11851 - def GetTypeNameSpecifierForFormatAtIndex(self, *args):
11852 """GetTypeNameSpecifierForFormatAtIndex(SBTypeCategory self, uint32_t arg2) -> SBTypeNameSpecifier""" 11853 return _lldb.SBTypeCategory_GetTypeNameSpecifierForFormatAtIndex(self, *args)
11854
11855 - def GetTypeNameSpecifierForSummaryAtIndex(self, *args):
11856 """GetTypeNameSpecifierForSummaryAtIndex(SBTypeCategory self, uint32_t arg2) -> SBTypeNameSpecifier""" 11857 return _lldb.SBTypeCategory_GetTypeNameSpecifierForSummaryAtIndex(self, *args)
11858
11859 - def GetTypeNameSpecifierForSyntheticAtIndex(self, *args):
11860 """GetTypeNameSpecifierForSyntheticAtIndex(SBTypeCategory self, uint32_t arg2) -> SBTypeNameSpecifier""" 11861 return _lldb.SBTypeCategory_GetTypeNameSpecifierForSyntheticAtIndex(self, *args)
11862
11863 - def GetFilterForType(self, *args):
11864 """GetFilterForType(SBTypeCategory self, SBTypeNameSpecifier arg2) -> SBTypeFilter""" 11865 return _lldb.SBTypeCategory_GetFilterForType(self, *args)
11866
11867 - def GetFormatForType(self, *args):
11868 """GetFormatForType(SBTypeCategory self, SBTypeNameSpecifier arg2) -> SBTypeFormat""" 11869 return _lldb.SBTypeCategory_GetFormatForType(self, *args)
11870
11871 - def GetSummaryForType(self, *args):
11872 """GetSummaryForType(SBTypeCategory self, SBTypeNameSpecifier arg2) -> SBTypeSummary""" 11873 return _lldb.SBTypeCategory_GetSummaryForType(self, *args)
11874
11875 - def GetSyntheticForType(self, *args):
11876 """GetSyntheticForType(SBTypeCategory self, SBTypeNameSpecifier arg2) -> SBTypeSynthetic""" 11877 return _lldb.SBTypeCategory_GetSyntheticForType(self, *args)
11878
11879 - def GetFilterAtIndex(self, *args):
11880 """GetFilterAtIndex(SBTypeCategory self, uint32_t arg2) -> SBTypeFilter""" 11881 return _lldb.SBTypeCategory_GetFilterAtIndex(self, *args)
11882
11883 - def GetFormatAtIndex(self, *args):
11884 """GetFormatAtIndex(SBTypeCategory self, uint32_t arg2) -> SBTypeFormat""" 11885 return _lldb.SBTypeCategory_GetFormatAtIndex(self, *args)
11886
11887 - def GetSummaryAtIndex(self, *args):
11888 """GetSummaryAtIndex(SBTypeCategory self, uint32_t arg2) -> SBTypeSummary""" 11889 return _lldb.SBTypeCategory_GetSummaryAtIndex(self, *args)
11890
11891 - def GetSyntheticAtIndex(self, *args):
11892 """GetSyntheticAtIndex(SBTypeCategory self, uint32_t arg2) -> SBTypeSynthetic""" 11893 return _lldb.SBTypeCategory_GetSyntheticAtIndex(self, *args)
11894
11895 - def AddTypeFormat(self, *args):
11896 """AddTypeFormat(SBTypeCategory self, SBTypeNameSpecifier arg2, SBTypeFormat arg3) -> bool""" 11897 return _lldb.SBTypeCategory_AddTypeFormat(self, *args)
11898
11899 - def DeleteTypeFormat(self, *args):
11900 """DeleteTypeFormat(SBTypeCategory self, SBTypeNameSpecifier arg2) -> bool""" 11901 return _lldb.SBTypeCategory_DeleteTypeFormat(self, *args)
11902
11903 - def AddTypeSummary(self, *args):
11904 """AddTypeSummary(SBTypeCategory self, SBTypeNameSpecifier arg2, SBTypeSummary arg3) -> bool""" 11905 return _lldb.SBTypeCategory_AddTypeSummary(self, *args)
11906
11907 - def DeleteTypeSummary(self, *args):
11908 """DeleteTypeSummary(SBTypeCategory self, SBTypeNameSpecifier arg2) -> bool""" 11909 return _lldb.SBTypeCategory_DeleteTypeSummary(self, *args)
11910
11911 - def AddTypeFilter(self, *args):
11912 """AddTypeFilter(SBTypeCategory self, SBTypeNameSpecifier arg2, SBTypeFilter arg3) -> bool""" 11913 return _lldb.SBTypeCategory_AddTypeFilter(self, *args)
11914
11915 - def DeleteTypeFilter(self, *args):
11916 """DeleteTypeFilter(SBTypeCategory self, SBTypeNameSpecifier arg2) -> bool""" 11917 return _lldb.SBTypeCategory_DeleteTypeFilter(self, *args)
11918
11919 - def AddTypeSynthetic(self, *args):
11920 """AddTypeSynthetic(SBTypeCategory self, SBTypeNameSpecifier arg2, SBTypeSynthetic arg3) -> bool""" 11921 return _lldb.SBTypeCategory_AddTypeSynthetic(self, *args)
11922
11923 - def DeleteTypeSynthetic(self, *args):
11924 """DeleteTypeSynthetic(SBTypeCategory self, SBTypeNameSpecifier arg2) -> bool""" 11925 return _lldb.SBTypeCategory_DeleteTypeSynthetic(self, *args)
11926
11927 - class formatters_access_class(object):
11928 '''A helper object that will lazily hand out formatters for a specific category.'''
11929 - def __init__(self, sbcategory, get_count_function, get_at_index_function, get_by_name_function):
11930 self.sbcategory = sbcategory 11931 self.get_count_function = get_count_function 11932 self.get_at_index_function = get_at_index_function 11933 self.get_by_name_function = get_by_name_function 11934 self.regex_type = type(re.compile('.'))
11935 11936
11937 - def __len__(self):
11938 if self.sbcategory and self.get_count_function: 11939 return int(self.get_count_function(self.sbcategory)) 11940 return 0
11941
11942 - def __getitem__(self, key):
11943 num_items = len(self) 11944 if type(key) is int: 11945 if key < num_items: 11946 return self.get_at_index_function(self.sbcategory,key) 11947 elif type(key) is str: 11948 return self.get_by_name_function(self.sbcategory,SBTypeNameSpecifier(key)) 11949 elif isinstance(key,self.regex_type): 11950 return self.get_by_name_function(self.sbcategory,SBTypeNameSpecifier(key.pattern,True)) 11951 else: 11952 print("error: unsupported item type: %s" % type(key)) 11953 return None
11954
11955 - def get_formats_access_object(self):
11956 '''An accessor function that returns an accessor object which allows lazy format access from a lldb.SBTypeCategory object.''' 11957 return self.formatters_access_class (self,self.__class__.GetNumFormats,self.__class__.GetFormatAtIndex,self.__class__.GetFormatForType)
11958
11959 - def get_formats_array(self):
11960 '''An accessor function that returns a list() that contains all formats in a lldb.SBCategory object.''' 11961 formats = [] 11962 for idx in range(self.GetNumFormats()): 11963 formats.append(self.GetFormatAtIndex(idx)) 11964 return formats
11965
11966 - def get_summaries_access_object(self):
11967 '''An accessor function that returns an accessor object which allows lazy summary access from a lldb.SBTypeCategory object.''' 11968 return self.formatters_access_class (self,self.__class__.GetNumSummaries,self.__class__.GetSummaryAtIndex,self.__class__.GetSummaryForType)
11969
11970 - def get_summaries_array(self):
11971 '''An accessor function that returns a list() that contains all summaries in a lldb.SBCategory object.''' 11972 summaries = [] 11973 for idx in range(self.GetNumSummaries()): 11974 summaries.append(self.GetSummaryAtIndex(idx)) 11975 return summaries
11976
11977 - def get_synthetics_access_object(self):
11978 '''An accessor function that returns an accessor object which allows lazy synthetic children provider access from a lldb.SBTypeCategory object.''' 11979 return self.formatters_access_class (self,self.__class__.GetNumSynthetics,self.__class__.GetSyntheticAtIndex,self.__class__.GetSyntheticForType)
11980
11981 - def get_synthetics_array(self):
11982 '''An accessor function that returns a list() that contains all synthetic children providers in a lldb.SBCategory object.''' 11983 synthetics = [] 11984 for idx in range(self.GetNumSynthetics()): 11985 synthetics.append(self.GetSyntheticAtIndex(idx)) 11986 return synthetics
11987
11988 - def get_filters_access_object(self):
11989 '''An accessor function that returns an accessor object which allows lazy filter access from a lldb.SBTypeCategory object.''' 11990 return self.formatters_access_class (self,self.__class__.GetNumFilters,self.__class__.GetFilterAtIndex,self.__class__.GetFilterForType)
11991
11992 - def get_filters_array(self):
11993 '''An accessor function that returns a list() that contains all filters in a lldb.SBCategory object.''' 11994 filters = [] 11995 for idx in range(self.GetNumFilters()): 11996 filters.append(self.GetFilterAtIndex(idx)) 11997 return filters
11998 11999 __swig_getmethods__["formats"] = get_formats_array 12000 if _newclass: formats = property(get_formats_array, None, doc='''A read only property that returns a list() of lldb.SBTypeFormat objects contained in this category''') 12001 12002 __swig_getmethods__["format"] = get_formats_access_object 12003 if _newclass: format = property(get_formats_access_object, None, doc=r'''A read only property that returns an object that you can use to look for formats by index or type name.''') 12004 12005 __swig_getmethods__["summaries"] = get_summaries_array 12006 if _newclass: summaries = property(get_summaries_array, None, doc='''A read only property that returns a list() of lldb.SBTypeSummary objects contained in this category''') 12007 12008 __swig_getmethods__["summary"] = get_summaries_access_object 12009 if _newclass: summary = property(get_summaries_access_object, None, doc=r'''A read only property that returns an object that you can use to look for summaries by index or type name or regular expression.''') 12010 12011 __swig_getmethods__["filters"] = get_filters_array 12012 if _newclass: filters = property(get_filters_array, None, doc='''A read only property that returns a list() of lldb.SBTypeFilter objects contained in this category''') 12013 12014 __swig_getmethods__["filter"] = get_filters_access_object 12015 if _newclass: filter = property(get_filters_access_object, None, doc=r'''A read only property that returns an object that you can use to look for filters by index or type name or regular expression.''') 12016 12017 __swig_getmethods__["synthetics"] = get_synthetics_array 12018 if _newclass: synthetics = property(get_synthetics_array, None, doc='''A read only property that returns a list() of lldb.SBTypeSynthetic objects contained in this category''') 12019 12020 __swig_getmethods__["synthetic"] = get_synthetics_access_object 12021 if _newclass: synthetic = property(get_synthetics_access_object, None, doc=r'''A read only property that returns an object that you can use to look for synthetic children provider by index or type name or regular expression.''') 12022 12023 __swig_getmethods__["num_formats"] = GetNumFormats 12024 if _newclass: num_formats = property(GetNumFormats, None) 12025 __swig_getmethods__["num_summaries"] = GetNumSummaries 12026 if _newclass: num_summaries = property(GetNumSummaries, None) 12027 __swig_getmethods__["num_filters"] = GetNumFilters 12028 if _newclass: num_filters = property(GetNumFilters, None) 12029 __swig_getmethods__["num_synthetics"] = GetNumSynthetics 12030 if _newclass: num_synthetics = property(GetNumSynthetics, None) 12031 12032 __swig_getmethods__["name"] = GetName 12033 if _newclass: name = property(GetName, None) 12034 12035 __swig_getmethods__["enabled"] = GetEnabled 12036 __swig_setmethods__["enabled"] = SetEnabled 12037 if _newclass: enabled = property(GetEnabled, SetEnabled) 12038
12039 - def __str__(self):
12040 """__str__(SBTypeCategory self) -> PyObject *""" 12041 return _lldb.SBTypeCategory___str__(self)
12042 12043 SBTypeCategory_swigregister = _lldb.SBTypeCategory_swigregister 12044 SBTypeCategory_swigregister(SBTypeCategory)
12045 12046 -class SBTypeEnumMember(_object):
12047 """Represents a member of an enum in lldb.""" 12048 __swig_setmethods__ = {} 12049 __setattr__ = lambda self, name, value: _swig_setattr(self, SBTypeEnumMember, name, value) 12050 __swig_getmethods__ = {} 12051 __getattr__ = lambda self, name: _swig_getattr(self, SBTypeEnumMember, name) 12052 __repr__ = _swig_repr
12053 - def __init__(self, *args):
12054 """ 12055 __init__(lldb::SBTypeEnumMember self) -> SBTypeEnumMember 12056 __init__(lldb::SBTypeEnumMember self, SBTypeEnumMember rhs) -> SBTypeEnumMember 12057 """ 12058 this = _lldb.new_SBTypeEnumMember(*args) 12059 try: self.this.append(this) 12060 except: self.this = this
12061 __swig_destroy__ = _lldb.delete_SBTypeEnumMember 12062 __del__ = lambda self : None;
12063 - def IsValid(self):
12064 """IsValid(SBTypeEnumMember self) -> bool""" 12065 return _lldb.SBTypeEnumMember_IsValid(self)
12066
12067 - def __nonzero__(self):
12068 return _lldb.SBTypeEnumMember___nonzero__(self)
12069 __bool__ = __nonzero__ 12070 12071
12072 - def GetValueAsSigned(self):
12073 """GetValueAsSigned(SBTypeEnumMember self) -> int64_t""" 12074 return _lldb.SBTypeEnumMember_GetValueAsSigned(self)
12075
12076 - def GetValueAsUnsigned(self):
12077 """GetValueAsUnsigned(SBTypeEnumMember self) -> uint64_t""" 12078 return _lldb.SBTypeEnumMember_GetValueAsUnsigned(self)
12079
12080 - def GetName(self):
12081 """GetName(SBTypeEnumMember self) -> char const *""" 12082 return _lldb.SBTypeEnumMember_GetName(self)
12083
12084 - def GetType(self):
12085 """GetType(SBTypeEnumMember self) -> SBType""" 12086 return _lldb.SBTypeEnumMember_GetType(self)
12087
12088 - def GetDescription(self, *args):
12089 """GetDescription(SBTypeEnumMember self, SBStream description, lldb::DescriptionLevel description_level) -> bool""" 12090 return _lldb.SBTypeEnumMember_GetDescription(self, *args)
12091 12092 __swig_getmethods__["name"] = GetName 12093 if _newclass: name = property(GetName, None, doc='''A read only property that returns the name for this enum member as a string.''') 12094 12095 __swig_getmethods__["type"] = GetType 12096 if _newclass: type = property(GetType, None, doc='''A read only property that returns an lldb object that represents the type (lldb.SBType) for this enum member.''') 12097 12098 __swig_getmethods__["signed"] = GetValueAsSigned 12099 if _newclass: signed = property(GetValueAsSigned, None, doc='''A read only property that returns the value of this enum member as a signed integer.''') 12100 12101 __swig_getmethods__["unsigned"] = GetValueAsUnsigned 12102 if _newclass: unsigned = property(GetValueAsUnsigned, None, doc='''A read only property that returns the value of this enum member as a unsigned integer.''') 12103
12104 - def __str__(self):
12105 """__str__(SBTypeEnumMember self) -> PyObject *""" 12106 return _lldb.SBTypeEnumMember___str__(self)
12107 12108 SBTypeEnumMember_swigregister = _lldb.SBTypeEnumMember_swigregister 12109 SBTypeEnumMember_swigregister(SBTypeEnumMember)
12110 12111 -class SBTypeEnumMemberList(_object):
12112 """Represents a list of SBTypeEnumMembers.""" 12113 __swig_setmethods__ = {} 12114 __setattr__ = lambda self, name, value: _swig_setattr(self, SBTypeEnumMemberList, name, value) 12115 __swig_getmethods__ = {} 12116 __getattr__ = lambda self, name: _swig_getattr(self, SBTypeEnumMemberList, name) 12117 __repr__ = _swig_repr
12118 - def __init__(self, *args):
12119 """ 12120 __init__(lldb::SBTypeEnumMemberList self) -> SBTypeEnumMemberList 12121 __init__(lldb::SBTypeEnumMemberList self, SBTypeEnumMemberList rhs) -> SBTypeEnumMemberList 12122 """ 12123 this = _lldb.new_SBTypeEnumMemberList(*args) 12124 try: self.this.append(this) 12125 except: self.this = this
12126 __swig_destroy__ = _lldb.delete_SBTypeEnumMemberList 12127 __del__ = lambda self : None;
12128 - def IsValid(self):
12129 """IsValid(SBTypeEnumMemberList self) -> bool""" 12130 return _lldb.SBTypeEnumMemberList_IsValid(self)
12131
12132 - def __nonzero__(self):
12133 return _lldb.SBTypeEnumMemberList___nonzero__(self)
12134 __bool__ = __nonzero__ 12135 12136
12137 - def Append(self, *args):
12138 """Append(SBTypeEnumMemberList self, SBTypeEnumMember entry)""" 12139 return _lldb.SBTypeEnumMemberList_Append(self, *args)
12140
12141 - def GetTypeEnumMemberAtIndex(self, *args):
12142 """GetTypeEnumMemberAtIndex(SBTypeEnumMemberList self, uint32_t index) -> SBTypeEnumMember""" 12143 return _lldb.SBTypeEnumMemberList_GetTypeEnumMemberAtIndex(self, *args)
12144
12145 - def GetSize(self):
12146 """GetSize(SBTypeEnumMemberList self) -> uint32_t""" 12147 return _lldb.SBTypeEnumMemberList_GetSize(self)
12148 12149 SBTypeEnumMemberList_swigregister = _lldb.SBTypeEnumMemberList_swigregister 12150 SBTypeEnumMemberList_swigregister(SBTypeEnumMemberList)
12151 12152 -class SBTypeFilter(_object):
12153 """Represents a filter that can be associated to one or more types.""" 12154 __swig_setmethods__ = {} 12155 __setattr__ = lambda self, name, value: _swig_setattr(self, SBTypeFilter, name, value) 12156 __swig_getmethods__ = {} 12157 __getattr__ = lambda self, name: _swig_getattr(self, SBTypeFilter, name) 12158 __repr__ = _swig_repr
12159 - def __init__(self, *args):
12160 """ 12161 __init__(lldb::SBTypeFilter self) -> SBTypeFilter 12162 __init__(lldb::SBTypeFilter self, uint32_t options) -> SBTypeFilter 12163 __init__(lldb::SBTypeFilter self, SBTypeFilter rhs) -> SBTypeFilter 12164 """ 12165 this = _lldb.new_SBTypeFilter(*args) 12166 try: self.this.append(this) 12167 except: self.this = this
12168 __swig_destroy__ = _lldb.delete_SBTypeFilter 12169 __del__ = lambda self : None;
12170 - def IsValid(self):
12171 """IsValid(SBTypeFilter self) -> bool""" 12172 return _lldb.SBTypeFilter_IsValid(self)
12173
12174 - def __nonzero__(self):
12175 return _lldb.SBTypeFilter___nonzero__(self)
12176 __bool__ = __nonzero__ 12177 12178
12179 - def IsEqualTo(self, *args):
12180 """IsEqualTo(SBTypeFilter self, SBTypeFilter rhs) -> bool""" 12181 return _lldb.SBTypeFilter_IsEqualTo(self, *args)
12182
12183 - def GetNumberOfExpressionPaths(self):
12184 """GetNumberOfExpressionPaths(SBTypeFilter self) -> uint32_t""" 12185 return _lldb.SBTypeFilter_GetNumberOfExpressionPaths(self)
12186
12187 - def GetExpressionPathAtIndex(self, *args):
12188 """GetExpressionPathAtIndex(SBTypeFilter self, uint32_t i) -> char const *""" 12189 return _lldb.SBTypeFilter_GetExpressionPathAtIndex(self, *args)
12190
12191 - def ReplaceExpressionPathAtIndex(self, *args):
12192 """ReplaceExpressionPathAtIndex(SBTypeFilter self, uint32_t i, char const * item) -> bool""" 12193 return _lldb.SBTypeFilter_ReplaceExpressionPathAtIndex(self, *args)
12194
12195 - def AppendExpressionPath(self, *args):
12196 """AppendExpressionPath(SBTypeFilter self, char const * item)""" 12197 return _lldb.SBTypeFilter_AppendExpressionPath(self, *args)
12198
12199 - def Clear(self):
12200 """Clear(SBTypeFilter self)""" 12201 return _lldb.SBTypeFilter_Clear(self)
12202
12203 - def GetOptions(self):
12204 """GetOptions(SBTypeFilter self) -> uint32_t""" 12205 return _lldb.SBTypeFilter_GetOptions(self)
12206
12207 - def SetOptions(self, *args):
12208 """SetOptions(SBTypeFilter self, uint32_t arg2)""" 12209 return _lldb.SBTypeFilter_SetOptions(self, *args)
12210
12211 - def GetDescription(self, *args):
12212 """GetDescription(SBTypeFilter self, SBStream description, lldb::DescriptionLevel description_level) -> bool""" 12213 return _lldb.SBTypeFilter_GetDescription(self, *args)
12214
12215 - def __eq__(self, *args):
12216 """__eq__(SBTypeFilter self, SBTypeFilter rhs) -> bool""" 12217 return _lldb.SBTypeFilter___eq__(self, *args)
12218
12219 - def __ne__(self, *args):
12220 """__ne__(SBTypeFilter self, SBTypeFilter rhs) -> bool""" 12221 return _lldb.SBTypeFilter___ne__(self, *args)
12222 12223 __swig_getmethods__["options"] = GetOptions 12224 __swig_setmethods__["options"] = SetOptions 12225 if _newclass: options = property(GetOptions, SetOptions) 12226 12227 __swig_getmethods__["count"] = GetNumberOfExpressionPaths 12228 if _newclass: count = property(GetNumberOfExpressionPaths, None) 12229
12230 - def __str__(self):
12231 """__str__(SBTypeFilter self) -> PyObject *""" 12232 return _lldb.SBTypeFilter___str__(self)
12233
12234 - def __eq__(self, rhs):
12235 if not isinstance(rhs, type(self)): 12236 return False 12237 12238 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
12239
12240 - def __ne__(self, rhs):
12241 if not isinstance(rhs, type(self)): 12242 return True 12243 12244 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
12245 12246 SBTypeFilter_swigregister = _lldb.SBTypeFilter_swigregister 12247 SBTypeFilter_swigregister(SBTypeFilter)
12248 12249 -class SBTypeFormat(_object):
12250 """Represents a format that can be associated to one or more types.""" 12251 __swig_setmethods__ = {} 12252 __setattr__ = lambda self, name, value: _swig_setattr(self, SBTypeFormat, name, value) 12253 __swig_getmethods__ = {} 12254 __getattr__ = lambda self, name: _swig_getattr(self, SBTypeFormat, name) 12255 __repr__ = _swig_repr
12256 - def __init__(self, *args):
12257 """ 12258 __init__(lldb::SBTypeFormat self) -> SBTypeFormat 12259 __init__(lldb::SBTypeFormat self, lldb::Format format, uint32_t options=0) -> SBTypeFormat 12260 __init__(lldb::SBTypeFormat self, lldb::Format format) -> SBTypeFormat 12261 __init__(lldb::SBTypeFormat self, char const * type, uint32_t options=0) -> SBTypeFormat 12262 __init__(lldb::SBTypeFormat self, char const * type) -> SBTypeFormat 12263 __init__(lldb::SBTypeFormat self, SBTypeFormat rhs) -> SBTypeFormat 12264 """ 12265 this = _lldb.new_SBTypeFormat(*args) 12266 try: self.this.append(this) 12267 except: self.this = this
12268 __swig_destroy__ = _lldb.delete_SBTypeFormat 12269 __del__ = lambda self : None;
12270 - def IsValid(self):
12271 """IsValid(SBTypeFormat self) -> bool""" 12272 return _lldb.SBTypeFormat_IsValid(self)
12273
12274 - def __nonzero__(self):
12275 return _lldb.SBTypeFormat___nonzero__(self)
12276 __bool__ = __nonzero__ 12277 12278
12279 - def IsEqualTo(self, *args):
12280 """IsEqualTo(SBTypeFormat self, SBTypeFormat rhs) -> bool""" 12281 return _lldb.SBTypeFormat_IsEqualTo(self, *args)
12282
12283 - def GetFormat(self):
12284 """GetFormat(SBTypeFormat self) -> lldb::Format""" 12285 return _lldb.SBTypeFormat_GetFormat(self)
12286
12287 - def GetTypeName(self):
12288 """GetTypeName(SBTypeFormat self) -> char const *""" 12289 return _lldb.SBTypeFormat_GetTypeName(self)
12290
12291 - def GetOptions(self):
12292 """GetOptions(SBTypeFormat self) -> uint32_t""" 12293 return _lldb.SBTypeFormat_GetOptions(self)
12294
12295 - def SetFormat(self, *args):
12296 """SetFormat(SBTypeFormat self, lldb::Format arg2)""" 12297 return _lldb.SBTypeFormat_SetFormat(self, *args)
12298
12299 - def SetTypeName(self, *args):
12300 """SetTypeName(SBTypeFormat self, char const * arg2)""" 12301 return _lldb.SBTypeFormat_SetTypeName(self, *args)
12302
12303 - def SetOptions(self, *args):
12304 """SetOptions(SBTypeFormat self, uint32_t arg2)""" 12305 return _lldb.SBTypeFormat_SetOptions(self, *args)
12306
12307 - def GetDescription(self, *args):
12308 """GetDescription(SBTypeFormat self, SBStream description, lldb::DescriptionLevel description_level) -> bool""" 12309 return _lldb.SBTypeFormat_GetDescription(self, *args)
12310
12311 - def __eq__(self, *args):
12312 """__eq__(SBTypeFormat self, SBTypeFormat rhs) -> bool""" 12313 return _lldb.SBTypeFormat___eq__(self, *args)
12314
12315 - def __ne__(self, *args):
12316 """__ne__(SBTypeFormat self, SBTypeFormat rhs) -> bool""" 12317 return _lldb.SBTypeFormat___ne__(self, *args)
12318 12319 __swig_getmethods__["format"] = GetFormat 12320 __swig_setmethods__["format"] = SetFormat 12321 if _newclass: format = property(GetFormat, SetFormat) 12322 12323 __swig_getmethods__["options"] = GetOptions 12324 __swig_setmethods__["options"] = SetOptions 12325 if _newclass: options = property(GetOptions, SetOptions) 12326
12327 - def __str__(self):
12328 """__str__(SBTypeFormat self) -> PyObject *""" 12329 return _lldb.SBTypeFormat___str__(self)
12330 12331 SBTypeFormat_swigregister = _lldb.SBTypeFormat_swigregister 12332 SBTypeFormat_swigregister(SBTypeFormat)
12333 12334 -class SBTypeNameSpecifier(_object):
12335 """Represents a general way to provide a type name to LLDB APIs.""" 12336 __swig_setmethods__ = {} 12337 __setattr__ = lambda self, name, value: _swig_setattr(self, SBTypeNameSpecifier, name, value) 12338 __swig_getmethods__ = {} 12339 __getattr__ = lambda self, name: _swig_getattr(self, SBTypeNameSpecifier, name) 12340 __repr__ = _swig_repr
12341 - def __init__(self, *args):
12342 """ 12343 __init__(lldb::SBTypeNameSpecifier self) -> SBTypeNameSpecifier 12344 __init__(lldb::SBTypeNameSpecifier self, char const * name, bool is_regex=False) -> SBTypeNameSpecifier 12345 __init__(lldb::SBTypeNameSpecifier self, char const * name) -> SBTypeNameSpecifier 12346 __init__(lldb::SBTypeNameSpecifier self, SBType type) -> SBTypeNameSpecifier 12347 __init__(lldb::SBTypeNameSpecifier self, SBTypeNameSpecifier rhs) -> SBTypeNameSpecifier 12348 """ 12349 this = _lldb.new_SBTypeNameSpecifier(*args) 12350 try: self.this.append(this) 12351 except: self.this = this
12352 __swig_destroy__ = _lldb.delete_SBTypeNameSpecifier 12353 __del__ = lambda self : None;
12354 - def IsValid(self):
12355 """IsValid(SBTypeNameSpecifier self) -> bool""" 12356 return _lldb.SBTypeNameSpecifier_IsValid(self)
12357
12358 - def __nonzero__(self):
12359 return _lldb.SBTypeNameSpecifier___nonzero__(self)
12360 __bool__ = __nonzero__ 12361 12362
12363 - def IsEqualTo(self, *args):
12364 """IsEqualTo(SBTypeNameSpecifier self, SBTypeNameSpecifier rhs) -> bool""" 12365 return _lldb.SBTypeNameSpecifier_IsEqualTo(self, *args)
12366
12367 - def GetName(self):
12368 """GetName(SBTypeNameSpecifier self) -> char const *""" 12369 return _lldb.SBTypeNameSpecifier_GetName(self)
12370
12371 - def GetType(self):
12372 """GetType(SBTypeNameSpecifier self) -> SBType""" 12373 return _lldb.SBTypeNameSpecifier_GetType(self)
12374
12375 - def IsRegex(self):
12376 """IsRegex(SBTypeNameSpecifier self) -> bool""" 12377 return _lldb.SBTypeNameSpecifier_IsRegex(self)
12378
12379 - def GetDescription(self, *args):
12380 """GetDescription(SBTypeNameSpecifier self, SBStream description, lldb::DescriptionLevel description_level) -> bool""" 12381 return _lldb.SBTypeNameSpecifier_GetDescription(self, *args)
12382
12383 - def __eq__(self, *args):
12384 """__eq__(SBTypeNameSpecifier self, SBTypeNameSpecifier rhs) -> bool""" 12385 return _lldb.SBTypeNameSpecifier___eq__(self, *args)
12386
12387 - def __ne__(self, *args):
12388 """__ne__(SBTypeNameSpecifier self, SBTypeNameSpecifier rhs) -> bool""" 12389 return _lldb.SBTypeNameSpecifier___ne__(self, *args)
12390 12391 __swig_getmethods__["name"] = GetName 12392 if _newclass: name = property(GetName, None) 12393 12394 __swig_getmethods__["is_regex"] = IsRegex 12395 if _newclass: is_regex = property(IsRegex, None) 12396
12397 - def __str__(self):
12398 """__str__(SBTypeNameSpecifier self) -> PyObject *""" 12399 return _lldb.SBTypeNameSpecifier___str__(self)
12400
12401 - def __eq__(self, rhs):
12402 if not isinstance(rhs, type(self)): 12403 return False 12404 12405 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
12406
12407 - def __ne__(self, rhs):
12408 if not isinstance(rhs, type(self)): 12409 return True 12410 12411 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
12412 12413 SBTypeNameSpecifier_swigregister = _lldb.SBTypeNameSpecifier_swigregister 12414 SBTypeNameSpecifier_swigregister(SBTypeNameSpecifier)
12415 12416 -class SBTypeSummaryOptions(_object):
12417 """Proxy of C++ lldb::SBTypeSummaryOptions class""" 12418 __swig_setmethods__ = {} 12419 __setattr__ = lambda self, name, value: _swig_setattr(self, SBTypeSummaryOptions, name, value) 12420 __swig_getmethods__ = {} 12421 __getattr__ = lambda self, name: _swig_getattr(self, SBTypeSummaryOptions, name) 12422 __repr__ = _swig_repr
12423 - def __init__(self, *args):
12424 """ 12425 __init__(lldb::SBTypeSummaryOptions self) -> SBTypeSummaryOptions 12426 __init__(lldb::SBTypeSummaryOptions self, SBTypeSummaryOptions rhs) -> SBTypeSummaryOptions 12427 """ 12428 this = _lldb.new_SBTypeSummaryOptions(*args) 12429 try: self.this.append(this) 12430 except: self.this = this
12431 __swig_destroy__ = _lldb.delete_SBTypeSummaryOptions 12432 __del__ = lambda self : None;
12433 - def IsValid(self):
12434 """IsValid(SBTypeSummaryOptions self) -> bool""" 12435 return _lldb.SBTypeSummaryOptions_IsValid(self)
12436
12437 - def __nonzero__(self):
12438 return _lldb.SBTypeSummaryOptions___nonzero__(self)
12439 __bool__ = __nonzero__ 12440 12441
12442 - def GetLanguage(self):
12443 """GetLanguage(SBTypeSummaryOptions self) -> lldb::LanguageType""" 12444 return _lldb.SBTypeSummaryOptions_GetLanguage(self)
12445
12446 - def GetCapping(self):
12447 """GetCapping(SBTypeSummaryOptions self) -> lldb::TypeSummaryCapping""" 12448 return _lldb.SBTypeSummaryOptions_GetCapping(self)
12449
12450 - def SetLanguage(self, *args):
12451 """SetLanguage(SBTypeSummaryOptions self, lldb::LanguageType arg2)""" 12452 return _lldb.SBTypeSummaryOptions_SetLanguage(self, *args)
12453
12454 - def SetCapping(self, *args):
12455 """SetCapping(SBTypeSummaryOptions self, lldb::TypeSummaryCapping arg2)""" 12456 return _lldb.SBTypeSummaryOptions_SetCapping(self, *args)
12457 12458 SBTypeSummaryOptions_swigregister = _lldb.SBTypeSummaryOptions_swigregister 12459 SBTypeSummaryOptions_swigregister(SBTypeSummaryOptions)
12460 12461 -class SBTypeSummary(_object):
12462 """Represents a summary that can be associated to one or more types.""" 12463 __swig_setmethods__ = {} 12464 __setattr__ = lambda self, name, value: _swig_setattr(self, SBTypeSummary, name, value) 12465 __swig_getmethods__ = {} 12466 __getattr__ = lambda self, name: _swig_getattr(self, SBTypeSummary, name) 12467 __repr__ = _swig_repr
12468 - def CreateWithSummaryString(*args):
12469 """ 12470 CreateWithSummaryString(char const * data, uint32_t options=0) -> SBTypeSummary 12471 CreateWithSummaryString(char const * data) -> SBTypeSummary 12472 """ 12473 return _lldb.SBTypeSummary_CreateWithSummaryString(*args)
12474 12475 if _newclass:CreateWithSummaryString = staticmethod(CreateWithSummaryString) 12476 __swig_getmethods__["CreateWithSummaryString"] = lambda x: CreateWithSummaryString
12477 - def CreateWithFunctionName(*args):
12478 """ 12479 CreateWithFunctionName(char const * data, uint32_t options=0) -> SBTypeSummary 12480 CreateWithFunctionName(char const * data) -> SBTypeSummary 12481 """ 12482 return _lldb.SBTypeSummary_CreateWithFunctionName(*args)
12483 12484 if _newclass:CreateWithFunctionName = staticmethod(CreateWithFunctionName) 12485 __swig_getmethods__["CreateWithFunctionName"] = lambda x: CreateWithFunctionName
12486 - def CreateWithScriptCode(*args):
12487 """ 12488 CreateWithScriptCode(char const * data, uint32_t options=0) -> SBTypeSummary 12489 CreateWithScriptCode(char const * data) -> SBTypeSummary 12490 """ 12491 return _lldb.SBTypeSummary_CreateWithScriptCode(*args)
12492 12493 if _newclass:CreateWithScriptCode = staticmethod(CreateWithScriptCode) 12494 __swig_getmethods__["CreateWithScriptCode"] = lambda x: CreateWithScriptCode
12495 - def __init__(self, *args):
12496 """ 12497 __init__(lldb::SBTypeSummary self) -> SBTypeSummary 12498 __init__(lldb::SBTypeSummary self, SBTypeSummary rhs) -> SBTypeSummary 12499 """ 12500 this = _lldb.new_SBTypeSummary(*args) 12501 try: self.this.append(this) 12502 except: self.this = this
12503 __swig_destroy__ = _lldb.delete_SBTypeSummary 12504 __del__ = lambda self : None;
12505 - def IsValid(self):
12506 """IsValid(SBTypeSummary self) -> bool""" 12507 return _lldb.SBTypeSummary_IsValid(self)
12508
12509 - def __nonzero__(self):
12510 return _lldb.SBTypeSummary___nonzero__(self)
12511 __bool__ = __nonzero__ 12512 12513
12514 - def IsEqualTo(self, *args):
12515 """IsEqualTo(SBTypeSummary self, SBTypeSummary rhs) -> bool""" 12516 return _lldb.SBTypeSummary_IsEqualTo(self, *args)
12517
12518 - def IsFunctionCode(self):
12519 """IsFunctionCode(SBTypeSummary self) -> bool""" 12520 return _lldb.SBTypeSummary_IsFunctionCode(self)
12521
12522 - def IsFunctionName(self):
12523 """IsFunctionName(SBTypeSummary self) -> bool""" 12524 return _lldb.SBTypeSummary_IsFunctionName(self)
12525
12526 - def IsSummaryString(self):
12527 """IsSummaryString(SBTypeSummary self) -> bool""" 12528 return _lldb.SBTypeSummary_IsSummaryString(self)
12529
12530 - def GetData(self):
12531 """GetData(SBTypeSummary self) -> char const *""" 12532 return _lldb.SBTypeSummary_GetData(self)
12533
12534 - def SetSummaryString(self, *args):
12535 """SetSummaryString(SBTypeSummary self, char const * data)""" 12536 return _lldb.SBTypeSummary_SetSummaryString(self, *args)
12537
12538 - def SetFunctionName(self, *args):
12539 """SetFunctionName(SBTypeSummary self, char const * data)""" 12540 return _lldb.SBTypeSummary_SetFunctionName(self, *args)
12541
12542 - def SetFunctionCode(self, *args):
12543 """SetFunctionCode(SBTypeSummary self, char const * data)""" 12544 return _lldb.SBTypeSummary_SetFunctionCode(self, *args)
12545
12546 - def GetOptions(self):
12547 """GetOptions(SBTypeSummary self) -> uint32_t""" 12548 return _lldb.SBTypeSummary_GetOptions(self)
12549
12550 - def SetOptions(self, *args):
12551 """SetOptions(SBTypeSummary self, uint32_t arg2)""" 12552 return _lldb.SBTypeSummary_SetOptions(self, *args)
12553
12554 - def GetDescription(self, *args):
12555 """GetDescription(SBTypeSummary self, SBStream description, lldb::DescriptionLevel description_level) -> bool""" 12556 return _lldb.SBTypeSummary_GetDescription(self, *args)
12557
12558 - def __eq__(self, *args):
12559 """__eq__(SBTypeSummary self, SBTypeSummary rhs) -> bool""" 12560 return _lldb.SBTypeSummary___eq__(self, *args)
12561
12562 - def __ne__(self, *args):
12563 """__ne__(SBTypeSummary self, SBTypeSummary rhs) -> bool""" 12564 return _lldb.SBTypeSummary___ne__(self, *args)
12565 12566 __swig_getmethods__["options"] = GetOptions 12567 __swig_setmethods__["options"] = SetOptions 12568 if _newclass: options = property(GetOptions, SetOptions) 12569 12570 __swig_getmethods__["is_summary_string"] = IsSummaryString 12571 if _newclass: is_summary_string = property(IsSummaryString, None) 12572 12573 __swig_getmethods__["is_function_name"] = IsFunctionName 12574 if _newclass: is_function_name = property(IsFunctionName, None) 12575 12576 __swig_getmethods__["is_function_name"] = IsFunctionCode 12577 if _newclass: is_function_name = property(IsFunctionCode, None) 12578 12579 __swig_getmethods__["summary_data"] = GetData 12580 if _newclass: summary_data = property(GetData, None) 12581
12582 - def __str__(self):
12583 """__str__(SBTypeSummary self) -> PyObject *""" 12584 return _lldb.SBTypeSummary___str__(self)
12585
12586 - def __eq__(self, rhs):
12587 if not isinstance(rhs, type(self)): 12588 return False 12589 12590 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
12591
12592 - def __ne__(self, rhs):
12593 if not isinstance(rhs, type(self)): 12594 return True 12595 12596 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
12597 12598 SBTypeSummary_swigregister = _lldb.SBTypeSummary_swigregister 12599 SBTypeSummary_swigregister(SBTypeSummary)
12600 12601 -def SBTypeSummary_CreateWithSummaryString(*args):
12602 """ 12603 CreateWithSummaryString(char const * data, uint32_t options=0) -> SBTypeSummary 12604 SBTypeSummary_CreateWithSummaryString(char const * data) -> SBTypeSummary 12605 """ 12606 return _lldb.SBTypeSummary_CreateWithSummaryString(*args)
12607
12608 -def SBTypeSummary_CreateWithFunctionName(*args):
12609 """ 12610 CreateWithFunctionName(char const * data, uint32_t options=0) -> SBTypeSummary 12611 SBTypeSummary_CreateWithFunctionName(char const * data) -> SBTypeSummary 12612 """ 12613 return _lldb.SBTypeSummary_CreateWithFunctionName(*args)
12614
12615 -def SBTypeSummary_CreateWithScriptCode(*args):
12616 """ 12617 CreateWithScriptCode(char const * data, uint32_t options=0) -> SBTypeSummary 12618 SBTypeSummary_CreateWithScriptCode(char const * data) -> SBTypeSummary 12619 """ 12620 return _lldb.SBTypeSummary_CreateWithScriptCode(*args)
12621
12622 -class SBTypeSynthetic(_object):
12623 """Represents a summary that can be associated to one or more types.""" 12624 __swig_setmethods__ = {} 12625 __setattr__ = lambda self, name, value: _swig_setattr(self, SBTypeSynthetic, name, value) 12626 __swig_getmethods__ = {} 12627 __getattr__ = lambda self, name: _swig_getattr(self, SBTypeSynthetic, name) 12628 __repr__ = _swig_repr
12629 - def CreateWithClassName(*args):
12630 """ 12631 CreateWithClassName(char const * data, uint32_t options=0) -> SBTypeSynthetic 12632 CreateWithClassName(char const * data) -> SBTypeSynthetic 12633 """ 12634 return _lldb.SBTypeSynthetic_CreateWithClassName(*args)
12635 12636 if _newclass:CreateWithClassName = staticmethod(CreateWithClassName) 12637 __swig_getmethods__["CreateWithClassName"] = lambda x: CreateWithClassName
12638 - def CreateWithScriptCode(*args):
12639 """ 12640 CreateWithScriptCode(char const * data, uint32_t options=0) -> SBTypeSynthetic 12641 CreateWithScriptCode(char const * data) -> SBTypeSynthetic 12642 """ 12643 return _lldb.SBTypeSynthetic_CreateWithScriptCode(*args)
12644 12645 if _newclass:CreateWithScriptCode = staticmethod(CreateWithScriptCode) 12646 __swig_getmethods__["CreateWithScriptCode"] = lambda x: CreateWithScriptCode
12647 - def __init__(self, *args):
12648 """ 12649 __init__(lldb::SBTypeSynthetic self) -> SBTypeSynthetic 12650 __init__(lldb::SBTypeSynthetic self, SBTypeSynthetic rhs) -> SBTypeSynthetic 12651 """ 12652 this = _lldb.new_SBTypeSynthetic(*args) 12653 try: self.this.append(this) 12654 except: self.this = this
12655 __swig_destroy__ = _lldb.delete_SBTypeSynthetic 12656 __del__ = lambda self : None;
12657 - def IsValid(self):
12658 """IsValid(SBTypeSynthetic self) -> bool""" 12659 return _lldb.SBTypeSynthetic_IsValid(self)
12660
12661 - def __nonzero__(self):
12662 return _lldb.SBTypeSynthetic___nonzero__(self)
12663 __bool__ = __nonzero__ 12664 12665
12666 - def IsEqualTo(self, *args):
12667 """IsEqualTo(SBTypeSynthetic self, SBTypeSynthetic rhs) -> bool""" 12668 return _lldb.SBTypeSynthetic_IsEqualTo(self, *args)
12669
12670 - def IsClassCode(self):
12671 """IsClassCode(SBTypeSynthetic self) -> bool""" 12672 return _lldb.SBTypeSynthetic_IsClassCode(self)
12673
12674 - def GetData(self):
12675 """GetData(SBTypeSynthetic self) -> char const *""" 12676 return _lldb.SBTypeSynthetic_GetData(self)
12677
12678 - def SetClassName(self, *args):
12679 """SetClassName(SBTypeSynthetic self, char const * data)""" 12680 return _lldb.SBTypeSynthetic_SetClassName(self, *args)
12681
12682 - def SetClassCode(self, *args):
12683 """SetClassCode(SBTypeSynthetic self, char const * data)""" 12684 return _lldb.SBTypeSynthetic_SetClassCode(self, *args)
12685
12686 - def GetOptions(self):
12687 """GetOptions(SBTypeSynthetic self) -> uint32_t""" 12688 return _lldb.SBTypeSynthetic_GetOptions(self)
12689
12690 - def SetOptions(self, *args):
12691 """SetOptions(SBTypeSynthetic self, uint32_t arg2)""" 12692 return _lldb.SBTypeSynthetic_SetOptions(self, *args)
12693
12694 - def GetDescription(self, *args):
12695 """GetDescription(SBTypeSynthetic self, SBStream description, lldb::DescriptionLevel description_level) -> bool""" 12696 return _lldb.SBTypeSynthetic_GetDescription(self, *args)
12697
12698 - def __eq__(self, *args):
12699 """__eq__(SBTypeSynthetic self, SBTypeSynthetic rhs) -> bool""" 12700 return _lldb.SBTypeSynthetic___eq__(self, *args)
12701
12702 - def __ne__(self, *args):
12703 """__ne__(SBTypeSynthetic self, SBTypeSynthetic rhs) -> bool""" 12704 return _lldb.SBTypeSynthetic___ne__(self, *args)
12705 12706 __swig_getmethods__["options"] = GetOptions 12707 __swig_setmethods__["options"] = SetOptions 12708 if _newclass: options = property(GetOptions, SetOptions) 12709 12710 __swig_getmethods__["contains_code"] = IsClassCode 12711 if _newclass: contains_code = property(IsClassCode, None) 12712 12713 __swig_getmethods__["synthetic_data"] = GetData 12714 if _newclass: synthetic_data = property(GetData, None) 12715
12716 - def __str__(self):
12717 """__str__(SBTypeSynthetic self) -> PyObject *""" 12718 return _lldb.SBTypeSynthetic___str__(self)
12719
12720 - def __eq__(self, rhs):
12721 if not isinstance(rhs, type(self)): 12722 return False 12723 12724 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
12725
12726 - def __ne__(self, rhs):
12727 if not isinstance(rhs, type(self)): 12728 return True 12729 12730 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
12731 12732 SBTypeSynthetic_swigregister = _lldb.SBTypeSynthetic_swigregister 12733 SBTypeSynthetic_swigregister(SBTypeSynthetic)
12734 12735 -def SBTypeSynthetic_CreateWithClassName(*args):
12736 """ 12737 CreateWithClassName(char const * data, uint32_t options=0) -> SBTypeSynthetic 12738 SBTypeSynthetic_CreateWithClassName(char const * data) -> SBTypeSynthetic 12739 """ 12740 return _lldb.SBTypeSynthetic_CreateWithClassName(*args)
12741
12742 -def SBTypeSynthetic_CreateWithScriptCode(*args):
12743 """ 12744 CreateWithScriptCode(char const * data, uint32_t options=0) -> SBTypeSynthetic 12745 SBTypeSynthetic_CreateWithScriptCode(char const * data) -> SBTypeSynthetic 12746 """ 12747 return _lldb.SBTypeSynthetic_CreateWithScriptCode(*args)
12748
12749 -class SBValue(_object):
12750 """ 12751 Represents the value of a variable, a register, or an expression. 12752 12753 SBValue supports iteration through its child, which in turn is represented 12754 as an SBValue. For example, we can get the general purpose registers of a 12755 frame as an SBValue, and iterate through all the registers, 12756 12757 registerSet = frame.registers # Returns an SBValueList. 12758 for regs in registerSet: 12759 if 'general purpose registers' in regs.name.lower(): 12760 GPRs = regs 12761 break 12762 12763 print('%s (number of children = %d):' % (GPRs.name, GPRs.num_children)) 12764 for reg in GPRs: 12765 print('Name: ', reg.name, ' Value: ', reg.value) 12766 12767 produces the output: 12768 12769 General Purpose Registers (number of children = 21): 12770 Name: rax Value: 0x0000000100000c5c 12771 Name: rbx Value: 0x0000000000000000 12772 Name: rcx Value: 0x00007fff5fbffec0 12773 Name: rdx Value: 0x00007fff5fbffeb8 12774 Name: rdi Value: 0x0000000000000001 12775 Name: rsi Value: 0x00007fff5fbffea8 12776 Name: rbp Value: 0x00007fff5fbffe80 12777 Name: rsp Value: 0x00007fff5fbffe60 12778 Name: r8 Value: 0x0000000008668682 12779 Name: r9 Value: 0x0000000000000000 12780 Name: r10 Value: 0x0000000000001200 12781 Name: r11 Value: 0x0000000000000206 12782 Name: r12 Value: 0x0000000000000000 12783 Name: r13 Value: 0x0000000000000000 12784 Name: r14 Value: 0x0000000000000000 12785 Name: r15 Value: 0x0000000000000000 12786 Name: rip Value: 0x0000000100000dae 12787 Name: rflags Value: 0x0000000000000206 12788 Name: cs Value: 0x0000000000000027 12789 Name: fs Value: 0x0000000000000010 12790 Name: gs Value: 0x0000000000000048 12791 12792 See also linked_list_iter() for another perspective on how to iterate through an 12793 SBValue instance which interprets the value object as representing the head of a 12794 linked list. 12795 """ 12796 __swig_setmethods__ = {} 12797 __setattr__ = lambda self, name, value: _swig_setattr(self, SBValue, name, value) 12798 __swig_getmethods__ = {} 12799 __getattr__ = lambda self, name: _swig_getattr(self, SBValue, name) 12800 __repr__ = _swig_repr
12801 - def __init__(self, *args):
12802 """ 12803 __init__(lldb::SBValue self) -> SBValue 12804 __init__(lldb::SBValue self, SBValue rhs) -> SBValue 12805 """ 12806 this = _lldb.new_SBValue(*args) 12807 try: self.this.append(this) 12808 except: self.this = this
12809 __swig_destroy__ = _lldb.delete_SBValue 12810 __del__ = lambda self : None;
12811 - def IsValid(self):
12812 """IsValid(SBValue self) -> bool""" 12813 return _lldb.SBValue_IsValid(self)
12814
12815 - def __nonzero__(self):
12816 return _lldb.SBValue___nonzero__(self)
12817 __bool__ = __nonzero__ 12818 12819
12820 - def Clear(self):
12821 """Clear(SBValue self)""" 12822 return _lldb.SBValue_Clear(self)
12823
12824 - def GetError(self):
12825 """GetError(SBValue self) -> SBError""" 12826 return _lldb.SBValue_GetError(self)
12827
12828 - def GetID(self):
12829 """GetID(SBValue self) -> lldb::user_id_t""" 12830 return _lldb.SBValue_GetID(self)
12831
12832 - def GetName(self):
12833 """GetName(SBValue self) -> char const *""" 12834 return _lldb.SBValue_GetName(self)
12835
12836 - def GetTypeName(self):
12837 """GetTypeName(SBValue self) -> char const *""" 12838 return _lldb.SBValue_GetTypeName(self)
12839
12840 - def GetDisplayTypeName(self):
12841 """GetDisplayTypeName(SBValue self) -> char const *""" 12842 return _lldb.SBValue_GetDisplayTypeName(self)
12843
12844 - def GetByteSize(self):
12845 """GetByteSize(SBValue self) -> size_t""" 12846 return _lldb.SBValue_GetByteSize(self)
12847
12848 - def IsInScope(self):
12849 """IsInScope(SBValue self) -> bool""" 12850 return _lldb.SBValue_IsInScope(self)
12851
12852 - def GetFormat(self):
12853 """GetFormat(SBValue self) -> lldb::Format""" 12854 return _lldb.SBValue_GetFormat(self)
12855
12856 - def SetFormat(self, *args):
12857 """SetFormat(SBValue self, lldb::Format format)""" 12858 return _lldb.SBValue_SetFormat(self, *args)
12859
12860 - def GetValue(self):
12861 """GetValue(SBValue self) -> char const *""" 12862 return _lldb.SBValue_GetValue(self)
12863
12864 - def GetValueAsSigned(self, *args):
12865 """ 12866 GetValueAsSigned(SBValue self, SBError error, int64_t fail_value=0) -> int64_t 12867 GetValueAsSigned(SBValue self, SBError error) -> int64_t 12868 GetValueAsSigned(SBValue self, int64_t fail_value=0) -> int64_t 12869 GetValueAsSigned(SBValue self) -> int64_t 12870 """ 12871 return _lldb.SBValue_GetValueAsSigned(self, *args)
12872
12873 - def GetValueAsUnsigned(self, *args):
12874 """ 12875 GetValueAsUnsigned(SBValue self, SBError error, uint64_t fail_value=0) -> uint64_t 12876 GetValueAsUnsigned(SBValue self, SBError error) -> uint64_t 12877 GetValueAsUnsigned(SBValue self, uint64_t fail_value=0) -> uint64_t 12878 GetValueAsUnsigned(SBValue self) -> uint64_t 12879 """ 12880 return _lldb.SBValue_GetValueAsUnsigned(self, *args)
12881
12882 - def GetValueType(self):
12883 """GetValueType(SBValue self) -> lldb::ValueType""" 12884 return _lldb.SBValue_GetValueType(self)
12885
12886 - def GetValueDidChange(self):
12887 """GetValueDidChange(SBValue self) -> bool""" 12888 return _lldb.SBValue_GetValueDidChange(self)
12889
12890 - def GetSummary(self, *args):
12891 """ 12892 GetSummary(SBValue self) -> char const 12893 GetSummary(SBValue self, SBStream stream, SBTypeSummaryOptions options) -> char const * 12894 """ 12895 return _lldb.SBValue_GetSummary(self, *args)
12896
12897 - def GetObjectDescription(self):
12898 """GetObjectDescription(SBValue self) -> char const *""" 12899 return _lldb.SBValue_GetObjectDescription(self)
12900
12901 - def GetTypeValidatorResult(self):
12902 """GetTypeValidatorResult(SBValue self) -> char const *""" 12903 return _lldb.SBValue_GetTypeValidatorResult(self)
12904
12905 - def GetDynamicValue(self, *args):
12906 """GetDynamicValue(SBValue self, lldb::DynamicValueType use_dynamic) -> SBValue""" 12907 return _lldb.SBValue_GetDynamicValue(self, *args)
12908
12909 - def GetStaticValue(self):
12910 """GetStaticValue(SBValue self) -> SBValue""" 12911 return _lldb.SBValue_GetStaticValue(self)
12912
12913 - def GetNonSyntheticValue(self):
12914 """GetNonSyntheticValue(SBValue self) -> SBValue""" 12915 return _lldb.SBValue_GetNonSyntheticValue(self)
12916
12917 - def GetPreferDynamicValue(self):
12918 """GetPreferDynamicValue(SBValue self) -> lldb::DynamicValueType""" 12919 return _lldb.SBValue_GetPreferDynamicValue(self)
12920
12921 - def SetPreferDynamicValue(self, *args):
12922 """SetPreferDynamicValue(SBValue self, lldb::DynamicValueType use_dynamic)""" 12923 return _lldb.SBValue_SetPreferDynamicValue(self, *args)
12924
12925 - def GetPreferSyntheticValue(self):
12926 """GetPreferSyntheticValue(SBValue self) -> bool""" 12927 return _lldb.SBValue_GetPreferSyntheticValue(self)
12928
12929 - def SetPreferSyntheticValue(self, *args):
12930 """SetPreferSyntheticValue(SBValue self, bool use_synthetic)""" 12931 return _lldb.SBValue_SetPreferSyntheticValue(self, *args)
12932
12933 - def IsDynamic(self):
12934 """IsDynamic(SBValue self) -> bool""" 12935 return _lldb.SBValue_IsDynamic(self)
12936
12937 - def IsSynthetic(self):
12938 """IsSynthetic(SBValue self) -> bool""" 12939 return _lldb.SBValue_IsSynthetic(self)
12940
12941 - def IsSyntheticChildrenGenerated(self):
12942 """IsSyntheticChildrenGenerated(SBValue self) -> bool""" 12943 return _lldb.SBValue_IsSyntheticChildrenGenerated(self)
12944
12945 - def SetSyntheticChildrenGenerated(self, *args):
12946 """SetSyntheticChildrenGenerated(SBValue self, bool arg2)""" 12947 return _lldb.SBValue_SetSyntheticChildrenGenerated(self, *args)
12948
12949 - def GetLocation(self):
12950 """GetLocation(SBValue self) -> char const *""" 12951 return _lldb.SBValue_GetLocation(self)
12952
12953 - def SetValueFromCString(self, *args):
12954 """ 12955 SetValueFromCString(SBValue self, char const * value_str) -> bool 12956 SetValueFromCString(SBValue self, char const * value_str, SBError error) -> bool 12957 """ 12958 return _lldb.SBValue_SetValueFromCString(self, *args)
12959
12960 - def GetTypeFormat(self):
12961 """GetTypeFormat(SBValue self) -> SBTypeFormat""" 12962 return _lldb.SBValue_GetTypeFormat(self)
12963
12964 - def GetTypeSummary(self):
12965 """GetTypeSummary(SBValue self) -> SBTypeSummary""" 12966 return _lldb.SBValue_GetTypeSummary(self)
12967
12968 - def GetTypeFilter(self):
12969 """GetTypeFilter(SBValue self) -> SBTypeFilter""" 12970 return _lldb.SBValue_GetTypeFilter(self)
12971
12972 - def GetTypeSynthetic(self):
12973 """GetTypeSynthetic(SBValue self) -> SBTypeSynthetic""" 12974 return _lldb.SBValue_GetTypeSynthetic(self)
12975
12976 - def GetChildAtIndex(self, *args):
12977 """ 12978 GetChildAtIndex(SBValue self, uint32_t idx) -> SBValue 12979 GetChildAtIndex(SBValue self, uint32_t idx, lldb::DynamicValueType use_dynamic, bool can_create_synthetic) -> SBValue 12980 12981 Get a child value by index from a value. 12982 12983 Structs, unions, classes, arrays and pointers have child 12984 values that can be access by index. 12985 12986 Structs and unions access child members using a zero based index 12987 for each child member. For 12988 12989 Classes reserve the first indexes for base classes that have 12990 members (empty base classes are omitted), and all members of the 12991 current class will then follow the base classes. 12992 12993 Pointers differ depending on what they point to. If the pointer 12994 points to a simple type, the child at index zero 12995 is the only child value available, unless synthetic_allowed 12996 is true, in which case the pointer will be used as an array 12997 and can create 'synthetic' child values using positive or 12998 negative indexes. If the pointer points to an aggregate type 12999 (an array, class, union, struct), then the pointee is 13000 transparently skipped and any children are going to be the indexes 13001 of the child values within the aggregate type. For example if 13002 we have a 'Point' type and we have a SBValue that contains a 13003 pointer to a 'Point' type, then the child at index zero will be 13004 the 'x' member, and the child at index 1 will be the 'y' member 13005 (the child at index zero won't be a 'Point' instance). 13006 13007 If you actually need an SBValue that represents the type pointed 13008 to by a SBValue for which GetType().IsPointeeType() returns true, 13009 regardless of the pointee type, you can do that with the SBValue.Dereference 13010 method (or the equivalent deref property). 13011 13012 Arrays have a preset number of children that can be accessed by 13013 index and will returns invalid child values for indexes that are 13014 out of bounds unless the synthetic_allowed is true. In this 13015 case the array can create 'synthetic' child values for indexes 13016 that aren't in the array bounds using positive or negative 13017 indexes. 13018 13019 @param[in] idx 13020 The index of the child value to get 13021 13022 @param[in] use_dynamic 13023 An enumeration that specifies whether to get dynamic values, 13024 and also if the target can be run to figure out the dynamic 13025 type of the child value. 13026 13027 @param[in] synthetic_allowed 13028 If true, then allow child values to be created by index 13029 for pointers and arrays for indexes that normally wouldn't 13030 be allowed. 13031 13032 @return 13033 A new SBValue object that represents the child member value. 13034 """ 13035 return _lldb.SBValue_GetChildAtIndex(self, *args)
13036
13037 - def CreateChildAtOffset(self, *args):
13038 """CreateChildAtOffset(SBValue self, char const * name, uint32_t offset, SBType type) -> SBValue""" 13039 return _lldb.SBValue_CreateChildAtOffset(self, *args)
13040
13041 - def Cast(self, *args):
13042 """Cast(SBValue self, SBType type) -> SBValue""" 13043 return _lldb.SBValue_Cast(self, *args)
13044
13045 - def CreateValueFromExpression(self, *args):
13046 """ 13047 CreateValueFromExpression(SBValue self, char const * name, char const * expression) -> SBValue 13048 CreateValueFromExpression(SBValue self, char const * name, char const * expression, SBExpressionOptions options) -> SBValue 13049 """ 13050 return _lldb.SBValue_CreateValueFromExpression(self, *args)
13051
13052 - def CreateValueFromAddress(self, *args):
13053 """CreateValueFromAddress(SBValue self, char const * name, lldb::addr_t address, SBType type) -> SBValue""" 13054 return _lldb.SBValue_CreateValueFromAddress(self, *args)
13055
13056 - def CreateValueFromData(self, *args):
13057 """CreateValueFromData(SBValue self, char const * name, SBData data, SBType type) -> SBValue""" 13058 return _lldb.SBValue_CreateValueFromData(self, *args)
13059
13060 - def GetType(self):
13061 """GetType(SBValue self) -> SBType""" 13062 return _lldb.SBValue_GetType(self)
13063
13064 - def GetIndexOfChildWithName(self, *args):
13065 """ 13066 GetIndexOfChildWithName(SBValue self, char const * name) -> uint32_t 13067 13068 Returns the child member index. 13069 13070 Matches children of this object only and will match base classes and 13071 member names if this is a clang typed object. 13072 13073 @param[in] name 13074 The name of the child value to get 13075 13076 @return 13077 An index to the child member value. 13078 """ 13079 return _lldb.SBValue_GetIndexOfChildWithName(self, *args)
13080
13081 - def GetChildMemberWithName(self, *args):
13082 """ 13083 GetChildMemberWithName(SBValue self, char const * name) -> SBValue 13084 GetChildMemberWithName(SBValue self, char const * name, lldb::DynamicValueType use_dynamic) -> SBValue 13085 13086 Returns the child member value. 13087 13088 Matches child members of this object and child members of any base 13089 classes. 13090 13091 @param[in] name 13092 The name of the child value to get 13093 13094 @param[in] use_dynamic 13095 An enumeration that specifies whether to get dynamic values, 13096 and also if the target can be run to figure out the dynamic 13097 type of the child value. 13098 13099 @return 13100 A new SBValue object that represents the child member value. 13101 """ 13102 return _lldb.SBValue_GetChildMemberWithName(self, *args)
13103
13104 - def GetValueForExpressionPath(self, *args):
13105 """ 13106 GetValueForExpressionPath(SBValue self, char const * expr_path) -> SBValue 13107 13108 Expands nested expressions like .a->b[0].c[1]->d. 13109 """ 13110 return _lldb.SBValue_GetValueForExpressionPath(self, *args)
13111
13112 - def GetDeclaration(self):
13113 """GetDeclaration(SBValue self) -> SBDeclaration""" 13114 return _lldb.SBValue_GetDeclaration(self)
13115
13116 - def MightHaveChildren(self):
13117 """MightHaveChildren(SBValue self) -> bool""" 13118 return _lldb.SBValue_MightHaveChildren(self)
13119
13120 - def IsRuntimeSupportValue(self):
13121 """IsRuntimeSupportValue(SBValue self) -> bool""" 13122 return _lldb.SBValue_IsRuntimeSupportValue(self)
13123
13124 - def GetNumChildren(self, *args):
13125 """ 13126 GetNumChildren(SBValue self) -> uint32_t 13127 GetNumChildren(SBValue self, uint32_t max) -> uint32_t 13128 """ 13129 return _lldb.SBValue_GetNumChildren(self, *args)
13130
13131 - def GetOpaqueType(self):
13132 """GetOpaqueType(SBValue self) -> void *""" 13133 return _lldb.SBValue_GetOpaqueType(self)
13134
13135 - def Dereference(self):
13136 """Dereference(SBValue self) -> SBValue""" 13137 return _lldb.SBValue_Dereference(self)
13138
13139 - def AddressOf(self):
13140 """AddressOf(SBValue self) -> SBValue""" 13141 return _lldb.SBValue_AddressOf(self)
13142
13143 - def TypeIsPointerType(self):
13144 """TypeIsPointerType(SBValue self) -> bool""" 13145 return _lldb.SBValue_TypeIsPointerType(self)
13146
13147 - def GetTarget(self):
13148 """GetTarget(SBValue self) -> SBTarget""" 13149 return _lldb.SBValue_GetTarget(self)
13150
13151 - def GetProcess(self):
13152 """GetProcess(SBValue self) -> SBProcess""" 13153 return _lldb.SBValue_GetProcess(self)
13154
13155 - def GetThread(self):
13156 """GetThread(SBValue self) -> SBThread""" 13157 return _lldb.SBValue_GetThread(self)
13158
13159 - def GetFrame(self):
13160 """GetFrame(SBValue self) -> SBFrame""" 13161 return _lldb.SBValue_GetFrame(self)
13162
13163 - def Watch(self, *args):
13164 """ 13165 Watch(SBValue self, bool resolve_location, bool read, bool write, SBError error) -> SBWatchpoint 13166 13167 Find and watch a variable. 13168 It returns an SBWatchpoint, which may be invalid. 13169 """ 13170 return _lldb.SBValue_Watch(self, *args)
13171
13172 - def WatchPointee(self, *args):
13173 """ 13174 WatchPointee(SBValue self, bool resolve_location, bool read, bool write, SBError error) -> SBWatchpoint 13175 13176 Find and watch the location pointed to by a variable. 13177 It returns an SBWatchpoint, which may be invalid. 13178 """ 13179 return _lldb.SBValue_WatchPointee(self, *args)
13180
13181 - def GetDescription(self, *args):
13182 """GetDescription(SBValue self, SBStream description) -> bool""" 13183 return _lldb.SBValue_GetDescription(self, *args)
13184
13185 - def GetPointeeData(self, item_idx=0, item_count=1):
13186 """ 13187 GetPointeeData(SBValue self, uint32_t item_idx=0, uint32_t item_count=1) -> SBData 13188 GetPointeeData(SBValue self, uint32_t item_idx=0) -> SBData 13189 GetPointeeData(SBValue self) -> SBData 13190 13191 Get an SBData wrapping what this SBValue points to. 13192 13193 This method will dereference the current SBValue, if its 13194 data type is a T* or T[], and extract item_count elements 13195 of type T from it, copying their contents in an SBData. 13196 13197 @param[in] item_idx 13198 The index of the first item to retrieve. For an array 13199 this is equivalent to array[item_idx], for a pointer 13200 to *(pointer + item_idx). In either case, the measurement 13201 unit for item_idx is the sizeof(T) rather than the byte 13202 13203 @param[in] item_count 13204 How many items should be copied into the output. By default 13205 only one item is copied, but more can be asked for. 13206 13207 @return 13208 An SBData with the contents of the copied items, on success. 13209 An empty SBData otherwise. 13210 """ 13211 return _lldb.SBValue_GetPointeeData(self, item_idx, item_count)
13212
13213 - def GetData(self):
13214 """ 13215 GetData(SBValue self) -> SBData 13216 13217 Get an SBData wrapping the contents of this SBValue. 13218 13219 This method will read the contents of this object in memory 13220 and copy them into an SBData for future use. 13221 13222 @return 13223 An SBData with the contents of this SBValue, on success. 13224 An empty SBData otherwise. 13225 """ 13226 return _lldb.SBValue_GetData(self)
13227
13228 - def SetData(self, *args):
13229 """SetData(SBValue self, SBData data, SBError error) -> bool""" 13230 return _lldb.SBValue_SetData(self, *args)
13231
13232 - def GetLoadAddress(self):
13233 """GetLoadAddress(SBValue self) -> lldb::addr_t""" 13234 return _lldb.SBValue_GetLoadAddress(self)
13235
13236 - def GetAddress(self):
13237 """GetAddress(SBValue self) -> SBAddress""" 13238 return _lldb.SBValue_GetAddress(self)
13239
13240 - def Persist(self):
13241 """Persist(SBValue self) -> SBValue""" 13242 return _lldb.SBValue_Persist(self)
13243
13244 - def GetExpressionPath(self, *args):
13245 """ 13246 GetExpressionPath(SBValue self, SBStream description) -> bool 13247 GetExpressionPath(SBValue self, SBStream description, bool qualify_cxx_base_classes) -> bool 13248 13249 Returns an expression path for this value. 13250 """ 13251 return _lldb.SBValue_GetExpressionPath(self, *args)
13252
13253 - def EvaluateExpression(self, *args):
13254 """ 13255 EvaluateExpression(SBValue self, char const * expr) -> SBValue 13256 EvaluateExpression(SBValue self, char const * expr, SBExpressionOptions options) -> SBValue 13257 EvaluateExpression(SBValue self, char const * expr, SBExpressionOptions options, char const * name) -> SBValue 13258 """ 13259 return _lldb.SBValue_EvaluateExpression(self, *args)
13260
13261 - def __get_dynamic__ (self):
13262 '''Helper function for the "SBValue.dynamic" property.''' 13263 return self.GetDynamicValue (eDynamicCanRunTarget)
13264
13265 - class children_access(object):
13266 '''A helper object that will lazily hand out thread for a process when supplied an index.''' 13267
13268 - def __init__(self, sbvalue):
13269 self.sbvalue = sbvalue
13270
13271 - def __len__(self):
13272 if self.sbvalue: 13273 return int(self.sbvalue.GetNumChildren()) 13274 return 0
13275
13276 - def __getitem__(self, key):
13277 if type(key) is int and key < len(self): 13278 return self.sbvalue.GetChildAtIndex(key) 13279 return None
13280
13281 - def get_child_access_object(self):
13282 '''An accessor function that returns a children_access() object which allows lazy member variable access from a lldb.SBValue object.''' 13283 return self.children_access (self)
13284
13285 - def get_value_child_list(self):
13286 '''An accessor function that returns a list() that contains all children in a lldb.SBValue object.''' 13287 children = [] 13288 accessor = self.get_child_access_object() 13289 for idx in range(len(accessor)): 13290 children.append(accessor[idx]) 13291 return children
13292
13293 - def __iter__(self):
13294 '''Iterate over all child values of a lldb.SBValue object.''' 13295 return lldb_iter(self, 'GetNumChildren', 'GetChildAtIndex')
13296
13297 - def __len__(self):
13298 '''Return the number of child values of a lldb.SBValue object.''' 13299 return self.GetNumChildren()
13300 13301 __swig_getmethods__["children"] = get_value_child_list 13302 if _newclass: children = property(get_value_child_list, None, doc='''A read only property that returns a list() of lldb.SBValue objects for the children of the value.''') 13303 13304 __swig_getmethods__["child"] = get_child_access_object 13305 if _newclass: child = property(get_child_access_object, None, doc='''A read only property that returns an object that can access children of a variable by index (child_value = value.children[12]).''') 13306 13307 __swig_getmethods__["name"] = GetName 13308 if _newclass: name = property(GetName, None, doc='''A read only property that returns the name of this value as a string.''') 13309 13310 __swig_getmethods__["type"] = GetType 13311 if _newclass: type = property(GetType, None, doc='''A read only property that returns a lldb.SBType object that represents the type for this value.''') 13312 13313 __swig_getmethods__["size"] = GetByteSize 13314 if _newclass: size = property(GetByteSize, None, doc='''A read only property that returns the size in bytes of this value.''') 13315 13316 __swig_getmethods__["is_in_scope"] = IsInScope 13317 if _newclass: is_in_scope = property(IsInScope, None, doc='''A read only property that returns a boolean value that indicates whether this value is currently lexically in scope.''') 13318 13319 __swig_getmethods__["format"] = GetFormat 13320 __swig_setmethods__["format"] = SetFormat 13321 if _newclass: format = property(GetName, SetFormat, doc='''A read/write property that gets/sets the format used for lldb.SBValue().GetValue() for this value. See enumerations that start with "lldb.eFormat".''') 13322 13323 __swig_getmethods__["value"] = GetValue 13324 __swig_setmethods__["value"] = SetValueFromCString 13325 if _newclass: value = property(GetValue, SetValueFromCString, doc='''A read/write property that gets/sets value from a string.''') 13326 13327 __swig_getmethods__["value_type"] = GetValueType 13328 if _newclass: value_type = property(GetValueType, None, doc='''A read only property that returns an lldb enumeration value (see enumerations that start with "lldb.eValueType") that represents the type of this value (local, argument, global, register, etc.).''') 13329 13330 __swig_getmethods__["changed"] = GetValueDidChange 13331 if _newclass: changed = property(GetValueDidChange, None, doc='''A read only property that returns a boolean value that indicates if this value has changed since it was last updated.''') 13332 13333 __swig_getmethods__["data"] = GetData 13334 if _newclass: data = property(GetData, None, doc='''A read only property that returns an lldb object (lldb.SBData) that represents the bytes that make up the value for this object.''') 13335 13336 __swig_getmethods__["load_addr"] = GetLoadAddress 13337 if _newclass: load_addr = property(GetLoadAddress, None, doc='''A read only property that returns the load address of this value as an integer.''') 13338 13339 __swig_getmethods__["addr"] = GetAddress 13340 if _newclass: addr = property(GetAddress, None, doc='''A read only property that returns an lldb.SBAddress that represents the address of this value if it is in memory.''') 13341 13342 __swig_getmethods__["deref"] = Dereference 13343 if _newclass: deref = property(Dereference, None, doc='''A read only property that returns an lldb.SBValue that is created by dereferencing this value.''') 13344 13345 __swig_getmethods__["address_of"] = AddressOf 13346 if _newclass: address_of = property(AddressOf, None, doc='''A read only property that returns an lldb.SBValue that represents the address-of this value.''') 13347 13348 __swig_getmethods__["error"] = GetError 13349 if _newclass: error = property(GetError, None, doc='''A read only property that returns the lldb.SBError that represents the error from the last time the variable value was calculated.''') 13350 13351 __swig_getmethods__["summary"] = GetSummary 13352 if _newclass: summary = property(GetSummary, None, doc='''A read only property that returns the summary for this value as a string''') 13353 13354 __swig_getmethods__["description"] = GetObjectDescription 13355 if _newclass: description = property(GetObjectDescription, None, doc='''A read only property that returns the language-specific description of this value as a string''') 13356 13357 __swig_getmethods__["dynamic"] = __get_dynamic__ 13358 if _newclass: dynamic = property(__get_dynamic__, None, doc='''A read only property that returns an lldb.SBValue that is created by finding the dynamic type of this value.''') 13359 13360 __swig_getmethods__["location"] = GetLocation 13361 if _newclass: location = property(GetLocation, None, doc='''A read only property that returns the location of this value as a string.''') 13362 13363 __swig_getmethods__["target"] = GetTarget 13364 if _newclass: target = property(GetTarget, None, doc='''A read only property that returns the lldb.SBTarget that this value is associated with.''') 13365 13366 __swig_getmethods__["process"] = GetProcess 13367 if _newclass: process = property(GetProcess, None, doc='''A read only property that returns the lldb.SBProcess that this value is associated with, the returned value might be invalid and should be tested.''') 13368 13369 __swig_getmethods__["thread"] = GetThread 13370 if _newclass: thread = property(GetThread, None, doc='''A read only property that returns the lldb.SBThread that this value is associated with, the returned value might be invalid and should be tested.''') 13371 13372 __swig_getmethods__["frame"] = GetFrame 13373 if _newclass: frame = property(GetFrame, None, doc='''A read only property that returns the lldb.SBFrame that this value is associated with, the returned value might be invalid and should be tested.''') 13374 13375 __swig_getmethods__["num_children"] = GetNumChildren 13376 if _newclass: num_children = property(GetNumChildren, None, doc='''A read only property that returns the number of child lldb.SBValues that this value has.''') 13377 13378 __swig_getmethods__["unsigned"] = GetValueAsUnsigned 13379 if _newclass: unsigned = property(GetValueAsUnsigned, None, doc='''A read only property that returns the value of this SBValue as an usigned integer.''') 13380 13381 __swig_getmethods__["signed"] = GetValueAsSigned 13382 if _newclass: signed = property(GetValueAsSigned, None, doc='''A read only property that returns the value of this SBValue as a signed integer.''') 13383
13384 - def get_expr_path(self):
13385 s = SBStream() 13386 self.GetExpressionPath (s) 13387 return s.GetData()
13388 13389 __swig_getmethods__["path"] = get_expr_path 13390 if _newclass: path = property(get_expr_path, None, doc='''A read only property that returns the expression path that one can use to reach this value in an expression.''') 13391
13392 - def synthetic_child_from_expression(self, name, expr, options=None):
13393 if options is None: options = lldb.SBExpressionOptions() 13394 child = self.CreateValueFromExpression(name, expr, options) 13395 child.SetSyntheticChildrenGenerated(True) 13396 return child
13397
13398 - def synthetic_child_from_data(self, name, data, type):
13399 child = self.CreateValueFromData(name, data, type) 13400 child.SetSyntheticChildrenGenerated(True) 13401 return child
13402
13403 - def synthetic_child_from_address(self, name, addr, type):
13404 child = self.CreateValueFromAddress(name, addr, type) 13405 child.SetSyntheticChildrenGenerated(True) 13406 return child
13407
13408 - def __eol_test(val):
13409 """Default function for end of list test takes an SBValue object. 13410 13411 Return True if val is invalid or it corresponds to a null pointer. 13412 Otherwise, return False. 13413 """ 13414 if not val or val.GetValueAsUnsigned() == 0: 13415 return True 13416 else: 13417 return False
13418 13419 # ================================================== 13420 # Iterator for lldb.SBValue treated as a linked list 13421 # ==================================================
13422 - def linked_list_iter(self, next_item_name, end_of_list_test=__eol_test):
13423 """Generator adaptor to support iteration for SBValue as a linked list. 13424 13425 linked_list_iter() is a special purpose iterator to treat the SBValue as 13426 the head of a list data structure, where you specify the child member 13427 name which points to the next item on the list and you specify the 13428 end-of-list test function which takes an SBValue for an item and returns 13429 True if EOL is reached and False if not. 13430 13431 linked_list_iter() also detects infinite loop and bails out early. 13432 13433 The end_of_list_test arg, if omitted, defaults to the __eol_test 13434 function above. 13435 13436 For example, 13437 13438 # Get Frame #0. 13439 ... 13440 13441 # Get variable 'task_head'. 13442 task_head = frame0.FindVariable('task_head') 13443 ... 13444 13445 for t in task_head.linked_list_iter('next'): 13446 print t 13447 """ 13448 if end_of_list_test(self): 13449 return 13450 item = self 13451 visited = set() 13452 try: 13453 while not end_of_list_test(item) and not item.GetValueAsUnsigned() in visited: 13454 visited.add(item.GetValueAsUnsigned()) 13455 yield item 13456 # Prepare for the next iteration. 13457 item = item.GetChildMemberWithName(next_item_name) 13458 except: 13459 # Exception occurred. Stop the generator. 13460 pass 13461 13462 return
13463
13464 - def __str__(self):
13465 """__str__(SBValue self) -> PyObject *""" 13466 return _lldb.SBValue___str__(self)
13467 13468 SBValue_swigregister = _lldb.SBValue_swigregister 13469 SBValue_swigregister(SBValue)
13470 13471 -class SBValueList(_object):
13472 """ 13473 Represents a collection of SBValues. Both SBFrame's GetVariables() and 13474 GetRegisters() return a SBValueList. 13475 13476 SBValueList supports SBValue iteration. For example (from test/lldbutil.py), 13477 13478 def get_registers(frame, kind): 13479 '''Returns the registers given the frame and the kind of registers desired. 13480 13481 Returns None if there's no such kind. 13482 ''' 13483 registerSet = frame.GetRegisters() # Return type of SBValueList. 13484 for value in registerSet: 13485 if kind.lower() in value.GetName().lower(): 13486 return value 13487 13488 return None 13489 13490 def get_GPRs(frame): 13491 '''Returns the general purpose registers of the frame as an SBValue. 13492 13493 The returned SBValue object is iterable. An example: 13494 ... 13495 from lldbutil import get_GPRs 13496 regs = get_GPRs(frame) 13497 for reg in regs: 13498 print('%s => %s' % (reg.GetName(), reg.GetValue())) 13499 ... 13500 ''' 13501 return get_registers(frame, 'general purpose') 13502 13503 def get_FPRs(frame): 13504 '''Returns the floating point registers of the frame as an SBValue. 13505 13506 The returned SBValue object is iterable. An example: 13507 ... 13508 from lldbutil import get_FPRs 13509 regs = get_FPRs(frame) 13510 for reg in regs: 13511 print('%s => %s' % (reg.GetName(), reg.GetValue())) 13512 ... 13513 ''' 13514 return get_registers(frame, 'floating point') 13515 13516 def get_ESRs(frame): 13517 '''Returns the exception state registers of the frame as an SBValue. 13518 13519 The returned SBValue object is iterable. An example: 13520 ... 13521 from lldbutil import get_ESRs 13522 regs = get_ESRs(frame) 13523 for reg in regs: 13524 print('%s => %s' % (reg.GetName(), reg.GetValue())) 13525 ... 13526 ''' 13527 return get_registers(frame, 'exception state') 13528 """ 13529 __swig_setmethods__ = {} 13530 __setattr__ = lambda self, name, value: _swig_setattr(self, SBValueList, name, value) 13531 __swig_getmethods__ = {} 13532 __getattr__ = lambda self, name: _swig_getattr(self, SBValueList, name) 13533 __repr__ = _swig_repr
13534 - def __init__(self, *args):
13535 """ 13536 __init__(lldb::SBValueList self) -> SBValueList 13537 __init__(lldb::SBValueList self, SBValueList rhs) -> SBValueList 13538 """ 13539 this = _lldb.new_SBValueList(*args) 13540 try: self.this.append(this) 13541 except: self.this = this
13542 __swig_destroy__ = _lldb.delete_SBValueList 13543 __del__ = lambda self : None;
13544 - def IsValid(self):
13545 """IsValid(SBValueList self) -> bool""" 13546 return _lldb.SBValueList_IsValid(self)
13547
13548 - def __nonzero__(self):
13549 return _lldb.SBValueList___nonzero__(self)
13550 __bool__ = __nonzero__ 13551 13552
13553 - def Clear(self):
13554 """Clear(SBValueList self)""" 13555 return _lldb.SBValueList_Clear(self)
13556
13557 - def Append(self, *args):
13558 """ 13559 Append(SBValueList self, SBValue val_obj) 13560 Append(SBValueList self, SBValueList value_list) 13561 """ 13562 return _lldb.SBValueList_Append(self, *args)
13563
13564 - def GetSize(self):
13565 """GetSize(SBValueList self) -> uint32_t""" 13566 return _lldb.SBValueList_GetSize(self)
13567
13568 - def GetValueAtIndex(self, *args):
13569 """GetValueAtIndex(SBValueList self, uint32_t idx) -> SBValue""" 13570 return _lldb.SBValueList_GetValueAtIndex(self, *args)
13571
13572 - def FindValueObjectByUID(self, *args):
13573 """FindValueObjectByUID(SBValueList self, lldb::user_id_t uid) -> SBValue""" 13574 return _lldb.SBValueList_FindValueObjectByUID(self, *args)
13575
13576 - def GetFirstValueByName(self, *args):
13577 """GetFirstValueByName(SBValueList self, char const * name) -> SBValue""" 13578 return _lldb.SBValueList_GetFirstValueByName(self, *args)
13579
13580 - def __iter__(self):
13581 '''Iterate over all values in a lldb.SBValueList object.''' 13582 return lldb_iter(self, 'GetSize', 'GetValueAtIndex')
13583
13584 - def __len__(self):
13585 return int(self.GetSize())
13586
13587 - def __getitem__(self, key):
13588 count = len(self) 13589 #------------------------------------------------------------ 13590 # Access with "int" to get Nth item in the list 13591 #------------------------------------------------------------ 13592 if type(key) is int: 13593 if key < count: 13594 return self.GetValueAtIndex(key) 13595 #------------------------------------------------------------ 13596 # Access with "str" to get values by name 13597 #------------------------------------------------------------ 13598 elif type(key) is str: 13599 matches = [] 13600 for idx in range(count): 13601 value = self.GetValueAtIndex(idx) 13602 if value.name == key: 13603 matches.append(value) 13604 return matches 13605 #------------------------------------------------------------ 13606 # Match with regex 13607 #------------------------------------------------------------ 13608 elif isinstance(key, type(re.compile('.'))): 13609 matches = [] 13610 for idx in range(count): 13611 value = self.GetValueAtIndex(idx) 13612 re_match = key.search(value.name) 13613 if re_match: 13614 matches.append(value) 13615 return matches
13616 13617
13618 - def __str__(self):
13619 """__str__(SBValueList self) -> PyObject *""" 13620 return _lldb.SBValueList___str__(self)
13621 13622 SBValueList_swigregister = _lldb.SBValueList_swigregister 13623 SBValueList_swigregister(SBValueList)
13624 13625 -class SBVariablesOptions(_object):
13626 """Proxy of C++ lldb::SBVariablesOptions class""" 13627 __swig_setmethods__ = {} 13628 __setattr__ = lambda self, name, value: _swig_setattr(self, SBVariablesOptions, name, value) 13629 __swig_getmethods__ = {} 13630 __getattr__ = lambda self, name: _swig_getattr(self, SBVariablesOptions, name) 13631 __repr__ = _swig_repr
13632 - def __init__(self, *args):
13633 """ 13634 __init__(lldb::SBVariablesOptions self) -> SBVariablesOptions 13635 __init__(lldb::SBVariablesOptions self, SBVariablesOptions options) -> SBVariablesOptions 13636 """ 13637 this = _lldb.new_SBVariablesOptions(*args) 13638 try: self.this.append(this) 13639 except: self.this = this
13640 __swig_destroy__ = _lldb.delete_SBVariablesOptions 13641 __del__ = lambda self : None;
13642 - def IsValid(self):
13643 """IsValid(SBVariablesOptions self) -> bool""" 13644 return _lldb.SBVariablesOptions_IsValid(self)
13645
13646 - def __nonzero__(self):
13647 return _lldb.SBVariablesOptions___nonzero__(self)
13648 __bool__ = __nonzero__ 13649 13650
13651 - def GetIncludeArguments(self):
13652 """GetIncludeArguments(SBVariablesOptions self) -> bool""" 13653 return _lldb.SBVariablesOptions_GetIncludeArguments(self)
13654
13655 - def SetIncludeArguments(self, *args):
13656 """SetIncludeArguments(SBVariablesOptions self, bool arg2)""" 13657 return _lldb.SBVariablesOptions_SetIncludeArguments(self, *args)
13658
13659 - def GetIncludeRecognizedArguments(self, *args):
13660 """GetIncludeRecognizedArguments(SBVariablesOptions self, SBTarget arg2) -> bool""" 13661 return _lldb.SBVariablesOptions_GetIncludeRecognizedArguments(self, *args)
13662
13663 - def SetIncludeRecognizedArguments(self, *args):
13664 """SetIncludeRecognizedArguments(SBVariablesOptions self, bool arg2)""" 13665 return _lldb.SBVariablesOptions_SetIncludeRecognizedArguments(self, *args)
13666
13667 - def GetIncludeLocals(self):
13668 """GetIncludeLocals(SBVariablesOptions self) -> bool""" 13669 return _lldb.SBVariablesOptions_GetIncludeLocals(self)
13670
13671 - def SetIncludeLocals(self, *args):
13672 """SetIncludeLocals(SBVariablesOptions self, bool arg2)""" 13673 return _lldb.SBVariablesOptions_SetIncludeLocals(self, *args)
13674
13675 - def GetIncludeStatics(self):
13676 """GetIncludeStatics(SBVariablesOptions self) -> bool""" 13677 return _lldb.SBVariablesOptions_GetIncludeStatics(self)
13678
13679 - def SetIncludeStatics(self, *args):
13680 """SetIncludeStatics(SBVariablesOptions self, bool arg2)""" 13681 return _lldb.SBVariablesOptions_SetIncludeStatics(self, *args)
13682
13683 - def GetInScopeOnly(self):
13684 """GetInScopeOnly(SBVariablesOptions self) -> bool""" 13685 return _lldb.SBVariablesOptions_GetInScopeOnly(self)
13686
13687 - def SetInScopeOnly(self, *args):
13688 """SetInScopeOnly(SBVariablesOptions self, bool arg2)""" 13689 return _lldb.SBVariablesOptions_SetInScopeOnly(self, *args)
13690
13691 - def GetIncludeRuntimeSupportValues(self):
13692 """GetIncludeRuntimeSupportValues(SBVariablesOptions self) -> bool""" 13693 return _lldb.SBVariablesOptions_GetIncludeRuntimeSupportValues(self)
13694
13695 - def SetIncludeRuntimeSupportValues(self, *args):
13696 """SetIncludeRuntimeSupportValues(SBVariablesOptions self, bool arg2)""" 13697 return _lldb.SBVariablesOptions_SetIncludeRuntimeSupportValues(self, *args)
13698
13699 - def GetUseDynamic(self):
13700 """GetUseDynamic(SBVariablesOptions self) -> lldb::DynamicValueType""" 13701 return _lldb.SBVariablesOptions_GetUseDynamic(self)
13702
13703 - def SetUseDynamic(self, *args):
13704 """SetUseDynamic(SBVariablesOptions self, lldb::DynamicValueType arg2)""" 13705 return _lldb.SBVariablesOptions_SetUseDynamic(self, *args)
13706 13707 SBVariablesOptions_swigregister = _lldb.SBVariablesOptions_swigregister 13708 SBVariablesOptions_swigregister(SBVariablesOptions)
13709 13710 -class SBWatchpoint(_object):
13711 """ 13712 Represents an instance of watchpoint for a specific target program. 13713 13714 A watchpoint is determined by the address and the byte size that resulted in 13715 this particular instantiation. Each watchpoint has its settable options. 13716 13717 See also SBTarget.watchpoint_iter() for example usage of iterating through the 13718 watchpoints of the target. 13719 """ 13720 __swig_setmethods__ = {} 13721 __setattr__ = lambda self, name, value: _swig_setattr(self, SBWatchpoint, name, value) 13722 __swig_getmethods__ = {} 13723 __getattr__ = lambda self, name: _swig_getattr(self, SBWatchpoint, name) 13724 __repr__ = _swig_repr
13725 - def __init__(self, *args):
13726 """ 13727 __init__(lldb::SBWatchpoint self) -> SBWatchpoint 13728 __init__(lldb::SBWatchpoint self, SBWatchpoint rhs) -> SBWatchpoint 13729 """ 13730 this = _lldb.new_SBWatchpoint(*args) 13731 try: self.this.append(this) 13732 except: self.this = this
13733 __swig_destroy__ = _lldb.delete_SBWatchpoint 13734 __del__ = lambda self : None;
13735 - def IsValid(self):
13736 """IsValid(SBWatchpoint self) -> bool""" 13737 return _lldb.SBWatchpoint_IsValid(self)
13738
13739 - def __nonzero__(self):
13740 return _lldb.SBWatchpoint___nonzero__(self)
13741 __bool__ = __nonzero__ 13742 13743
13744 - def __eq__(self, *args):
13745 """__eq__(SBWatchpoint self, SBWatchpoint rhs) -> bool""" 13746 return _lldb.SBWatchpoint___eq__(self, *args)
13747
13748 - def __ne__(self, *args):
13749 """__ne__(SBWatchpoint self, SBWatchpoint rhs) -> bool""" 13750 return _lldb.SBWatchpoint___ne__(self, *args)
13751
13752 - def GetError(self):
13753 """GetError(SBWatchpoint self) -> SBError""" 13754 return _lldb.SBWatchpoint_GetError(self)
13755
13756 - def GetID(self):
13757 """GetID(SBWatchpoint self) -> lldb::watch_id_t""" 13758 return _lldb.SBWatchpoint_GetID(self)
13759
13760 - def GetHardwareIndex(self):
13761 """ 13762 GetHardwareIndex(SBWatchpoint self) -> int32_t 13763 13764 With -1 representing an invalid hardware index. 13765 """ 13766 return _lldb.SBWatchpoint_GetHardwareIndex(self)
13767
13768 - def GetWatchAddress(self):
13769 """GetWatchAddress(SBWatchpoint self) -> lldb::addr_t""" 13770 return _lldb.SBWatchpoint_GetWatchAddress(self)
13771
13772 - def GetWatchSize(self):
13773 """GetWatchSize(SBWatchpoint self) -> size_t""" 13774 return _lldb.SBWatchpoint_GetWatchSize(self)
13775
13776 - def SetEnabled(self, *args):
13777 """SetEnabled(SBWatchpoint self, bool enabled)""" 13778 return _lldb.SBWatchpoint_SetEnabled(self, *args)
13779
13780 - def IsEnabled(self):
13781 """IsEnabled(SBWatchpoint self) -> bool""" 13782 return _lldb.SBWatchpoint_IsEnabled(self)
13783
13784 - def GetHitCount(self):
13785 """GetHitCount(SBWatchpoint self) -> uint32_t""" 13786 return _lldb.SBWatchpoint_GetHitCount(self)
13787
13788 - def GetIgnoreCount(self):
13789 """GetIgnoreCount(SBWatchpoint self) -> uint32_t""" 13790 return _lldb.SBWatchpoint_GetIgnoreCount(self)
13791
13792 - def SetIgnoreCount(self, *args):
13793 """SetIgnoreCount(SBWatchpoint self, uint32_t n)""" 13794 return _lldb.SBWatchpoint_SetIgnoreCount(self, *args)
13795
13796 - def GetCondition(self):
13797 """ 13798 GetCondition(SBWatchpoint self) -> char const * 13799 13800 Get the condition expression for the watchpoint. 13801 """ 13802 return _lldb.SBWatchpoint_GetCondition(self)
13803
13804 - def SetCondition(self, *args):
13805 """ 13806 SetCondition(SBWatchpoint self, char const * condition) 13807 13808 The watchpoint stops only if the condition expression evaluates to true. 13809 """ 13810 return _lldb.SBWatchpoint_SetCondition(self, *args)
13811
13812 - def GetDescription(self, *args):
13813 """GetDescription(SBWatchpoint self, SBStream description, lldb::DescriptionLevel level) -> bool""" 13814 return _lldb.SBWatchpoint_GetDescription(self, *args)
13815
13816 - def EventIsWatchpointEvent(*args):
13817 """EventIsWatchpointEvent(SBEvent event) -> bool""" 13818 return _lldb.SBWatchpoint_EventIsWatchpointEvent(*args)
13819 13820 if _newclass:EventIsWatchpointEvent = staticmethod(EventIsWatchpointEvent) 13821 __swig_getmethods__["EventIsWatchpointEvent"] = lambda x: EventIsWatchpointEvent
13822 - def GetWatchpointEventTypeFromEvent(*args):
13823 """GetWatchpointEventTypeFromEvent(SBEvent event) -> lldb::WatchpointEventType""" 13824 return _lldb.SBWatchpoint_GetWatchpointEventTypeFromEvent(*args)
13825 13826 if _newclass:GetWatchpointEventTypeFromEvent = staticmethod(GetWatchpointEventTypeFromEvent) 13827 __swig_getmethods__["GetWatchpointEventTypeFromEvent"] = lambda x: GetWatchpointEventTypeFromEvent
13828 - def GetWatchpointFromEvent(*args):
13829 """GetWatchpointFromEvent(SBEvent event) -> SBWatchpoint""" 13830 return _lldb.SBWatchpoint_GetWatchpointFromEvent(*args)
13831 13832 if _newclass:GetWatchpointFromEvent = staticmethod(GetWatchpointFromEvent) 13833 __swig_getmethods__["GetWatchpointFromEvent"] = lambda x: GetWatchpointFromEvent
13834 - def __str__(self):
13835 """__str__(SBWatchpoint self) -> PyObject *""" 13836 return _lldb.SBWatchpoint___str__(self)
13837 13838 SBWatchpoint_swigregister = _lldb.SBWatchpoint_swigregister 13839 SBWatchpoint_swigregister(SBWatchpoint)
13840 13841 -def SBWatchpoint_EventIsWatchpointEvent(*args):
13842 """SBWatchpoint_EventIsWatchpointEvent(SBEvent event) -> bool""" 13843 return _lldb.SBWatchpoint_EventIsWatchpointEvent(*args)
13844
13845 -def SBWatchpoint_GetWatchpointEventTypeFromEvent(*args):
13846 """SBWatchpoint_GetWatchpointEventTypeFromEvent(SBEvent event) -> lldb::WatchpointEventType""" 13847 return _lldb.SBWatchpoint_GetWatchpointEventTypeFromEvent(*args)
13848
13849 -def SBWatchpoint_GetWatchpointFromEvent(*args):
13850 """SBWatchpoint_GetWatchpointFromEvent(SBEvent event) -> SBWatchpoint""" 13851 return _lldb.SBWatchpoint_GetWatchpointFromEvent(*args)
13852
13853 -class SBUnixSignals(_object):
13854 """Allows you to manipulate LLDB's signal disposition""" 13855 __swig_setmethods__ = {} 13856 __setattr__ = lambda self, name, value: _swig_setattr(self, SBUnixSignals, name, value) 13857 __swig_getmethods__ = {} 13858 __getattr__ = lambda self, name: _swig_getattr(self, SBUnixSignals, name) 13859 __repr__ = _swig_repr
13860 - def __init__(self, *args):
13861 """ 13862 __init__(lldb::SBUnixSignals self) -> SBUnixSignals 13863 __init__(lldb::SBUnixSignals self, SBUnixSignals rhs) -> SBUnixSignals 13864 """ 13865 this = _lldb.new_SBUnixSignals(*args) 13866 try: self.this.append(this) 13867 except: self.this = this
13868 __swig_destroy__ = _lldb.delete_SBUnixSignals 13869 __del__ = lambda self : None;
13870 - def Clear(self):
13871 """Clear(SBUnixSignals self)""" 13872 return _lldb.SBUnixSignals_Clear(self)
13873
13874 - def IsValid(self):
13875 """IsValid(SBUnixSignals self) -> bool""" 13876 return _lldb.SBUnixSignals_IsValid(self)
13877
13878 - def __nonzero__(self):
13879 return _lldb.SBUnixSignals___nonzero__(self)
13880 __bool__ = __nonzero__ 13881 13882
13883 - def GetSignalAsCString(self, *args):
13884 """GetSignalAsCString(SBUnixSignals self, int32_t signo) -> char const *""" 13885 return _lldb.SBUnixSignals_GetSignalAsCString(self, *args)
13886
13887 - def GetSignalNumberFromName(self, *args):
13888 """GetSignalNumberFromName(SBUnixSignals self, char const * name) -> int32_t""" 13889 return _lldb.SBUnixSignals_GetSignalNumberFromName(self, *args)
13890
13891 - def GetShouldSuppress(self, *args):
13892 """GetShouldSuppress(SBUnixSignals self, int32_t signo) -> bool""" 13893 return _lldb.SBUnixSignals_GetShouldSuppress(self, *args)
13894
13895 - def SetShouldSuppress(self, *args):
13896 """SetShouldSuppress(SBUnixSignals self, int32_t signo, bool value) -> bool""" 13897 return _lldb.SBUnixSignals_SetShouldSuppress(self, *args)
13898
13899 - def GetShouldStop(self, *args):
13900 """GetShouldStop(SBUnixSignals self, int32_t signo) -> bool""" 13901 return _lldb.SBUnixSignals_GetShouldStop(self, *args)
13902
13903 - def SetShouldStop(self, *args):
13904 """SetShouldStop(SBUnixSignals self, int32_t signo, bool value) -> bool""" 13905 return _lldb.SBUnixSignals_SetShouldStop(self, *args)
13906
13907 - def GetShouldNotify(self, *args):
13908 """GetShouldNotify(SBUnixSignals self, int32_t signo) -> bool""" 13909 return _lldb.SBUnixSignals_GetShouldNotify(self, *args)
13910
13911 - def SetShouldNotify(self, *args):
13912 """SetShouldNotify(SBUnixSignals self, int32_t signo, bool value) -> bool""" 13913 return _lldb.SBUnixSignals_SetShouldNotify(self, *args)
13914
13915 - def GetNumSignals(self):
13916 """GetNumSignals(SBUnixSignals self) -> int32_t""" 13917 return _lldb.SBUnixSignals_GetNumSignals(self)
13918
13919 - def GetSignalAtIndex(self, *args):
13920 """GetSignalAtIndex(SBUnixSignals self, int32_t index) -> int32_t""" 13921 return _lldb.SBUnixSignals_GetSignalAtIndex(self, *args)
13922
13923 - def get_unix_signals_list(self):
13924 signals = [] 13925 for idx in range(0, self.GetNumSignals()): 13926 signals.append(self.GetSignalAtIndex(sig)) 13927 return signals
13928 13929 __swig_getmethods__["signals"] = get_unix_signals_list 13930 if _newclass: threads = property(get_unix_signals_list, None, doc='''A read only property that returns a list() of valid signal numbers for this platform.''') 13931 13932 SBUnixSignals_swigregister = _lldb.SBUnixSignals_swigregister 13933 SBUnixSignals_swigregister(SBUnixSignals)
13934 13935 -def command(command_name=None, doc=None):
13936 import lldb 13937 """A decorator function that registers an LLDB command line 13938 command that is bound to the function it is attached to.""" 13939 def callable(function): 13940 """Registers an lldb command for the decorated function.""" 13941 command = "command script add -f %s.%s %s" % (function.__module__, function.__name__, command_name or function.__name__) 13942 lldb.debugger.HandleCommand(command) 13943 if doc: 13944 function.__doc__ = doc 13945 return function
13946 13947 return callable 13948
13949 -class declaration(object):
13950 '''A class that represents a source declaration location with file, line and column.'''
13951 - def __init__(self, file, line, col):
13952 self.file = file 13953 self.line = line 13954 self.col = col
13955
13956 -class value_iter(object):
13957 - def __iter__(self):
13958 return self
13959
13960 - def next(self):
13961 if self.index >= self.length: 13962 raise StopIteration() 13963 child_sbvalue = self.sbvalue.GetChildAtIndex(self.index) 13964 self.index += 1 13965 return value(child_sbvalue)
13966
13967 - def __init__(self,value):
13968 self.index = 0 13969 self.sbvalue = value 13970 if type(self.sbvalue) is value: 13971 self.sbvalue = self.sbvalue.sbvalue 13972 self.length = self.sbvalue.GetNumChildren()
13973
13974 -class value(object):
13975 '''A class designed to wrap lldb.SBValue() objects so the resulting object 13976 can be used as a variable would be in code. So if you have a Point structure 13977 variable in your code in the current frame named "pt", you can initialize an instance 13978 of this class with it: 13979 13980 pt = lldb.value(lldb.frame.FindVariable("pt")) 13981 print pt 13982 print pt.x 13983 print pt.y 13984 13985 pt = lldb.value(lldb.frame.FindVariable("rectangle_array")) 13986 print rectangle_array[12] 13987 print rectangle_array[5].origin.x'''
13988 - def __init__(self, sbvalue):
13989 self.sbvalue = sbvalue
13990
13991 - def __nonzero__(self):
13992 return self.sbvalue.__nonzero__()
13993
13994 - def __str__(self):
13995 return self.sbvalue.__str__()
13996
13997 - def __getitem__(self, key):
13998 # Allow array access if this value has children... 13999 if type(key) is value: 14000 key = int(key) 14001 if type(key) is int: 14002 child_sbvalue = (self.sbvalue.GetValueForExpressionPath("[%i]" % key)) 14003 if child_sbvalue and child_sbvalue.IsValid(): 14004 return value(child_sbvalue) 14005 raise IndexError("Index '%d' is out of range" % key) 14006 raise TypeError("No array item of type %s" % str(type(key)))
14007
14008 - def __iter__(self):
14009 return value_iter(self.sbvalue)
14010
14011 - def __getattr__(self, name):
14012 child_sbvalue = self.sbvalue.GetChildMemberWithName (name) 14013 if child_sbvalue and child_sbvalue.IsValid(): 14014 return value(child_sbvalue) 14015 raise AttributeError("Attribute '%s' is not defined" % name)
14016
14017 - def __add__(self, other):
14018 return int(self) + int(other)
14019
14020 - def __sub__(self, other):
14021 return int(self) - int(other)
14022
14023 - def __mul__(self, other):
14024 return int(self) * int(other)
14025
14026 - def __floordiv__(self, other):
14027 return int(self) // int(other)
14028
14029 - def __mod__(self, other):
14030 return int(self) % int(other)
14031
14032 - def __divmod__(self, other):
14033 return int(self) % int(other)
14034
14035 - def __pow__(self, other):
14036 return int(self) ** int(other)
14037
14038 - def __lshift__(self, other):
14039 return int(self) << int(other)
14040
14041 - def __rshift__(self, other):
14042 return int(self) >> int(other)
14043
14044 - def __and__(self, other):
14045 return int(self) & int(other)
14046
14047 - def __xor__(self, other):
14048 return int(self) ^ int(other)
14049
14050 - def __or__(self, other):
14051 return int(self) | int(other)
14052
14053 - def __div__(self, other):
14054 return int(self) / int(other)
14055
14056 - def __truediv__(self, other):
14057 return int(self) / int(other)
14058
14059 - def __iadd__(self, other):
14060 result = self.__add__(other) 14061 self.sbvalue.SetValueFromCString (str(result)) 14062 return result
14063
14064 - def __isub__(self, other):
14065 result = self.__sub__(other) 14066 self.sbvalue.SetValueFromCString (str(result)) 14067 return result
14068
14069 - def __imul__(self, other):
14070 result = self.__mul__(other) 14071 self.sbvalue.SetValueFromCString (str(result)) 14072 return result
14073
14074 - def __idiv__(self, other):
14075 result = self.__div__(other) 14076 self.sbvalue.SetValueFromCString (str(result)) 14077 return result
14078
14079 - def __itruediv__(self, other):
14080 result = self.__truediv__(other) 14081 self.sbvalue.SetValueFromCString (str(result)) 14082 return result
14083
14084 - def __ifloordiv__(self, other):
14085 result = self.__floordiv__(self, other) 14086 self.sbvalue.SetValueFromCString (str(result)) 14087 return result
14088
14089 - def __imod__(self, other):
14090 result = self.__and__(self, other) 14091 self.sbvalue.SetValueFromCString (str(result)) 14092 return result
14093
14094 - def __ipow__(self, other):
14095 result = self.__pow__(self, other) 14096 self.sbvalue.SetValueFromCString (str(result)) 14097 return result
14098
14099 - def __ipow__(self, other, modulo):
14100 result = self.__pow__(self, other, modulo) 14101 self.sbvalue.SetValueFromCString (str(result)) 14102 return result
14103
14104 - def __ilshift__(self, other):
14105 result = self.__lshift__(other) 14106 self.sbvalue.SetValueFromCString (str(result)) 14107 return result
14108
14109 - def __irshift__(self, other):
14110 result = self.__rshift__(other) 14111 self.sbvalue.SetValueFromCString (str(result)) 14112 return result
14113
14114 - def __iand__(self, other):
14115 result = self.__and__(self, other) 14116 self.sbvalue.SetValueFromCString (str(result)) 14117 return result
14118
14119 - def __ixor__(self, other):
14120 result = self.__xor__(self, other) 14121 self.sbvalue.SetValueFromCString (str(result)) 14122 return result
14123
14124 - def __ior__(self, other):
14125 result = self.__ior__(self, other) 14126 self.sbvalue.SetValueFromCString (str(result)) 14127 return result
14128
14129 - def __neg__(self):
14130 return -int(self)
14131
14132 - def __pos__(self):
14133 return +int(self)
14134
14135 - def __abs__(self):
14136 return abs(int(self))
14137
14138 - def __invert__(self):
14139 return ~int(self)
14140
14141 - def __complex__(self):
14142 return complex (int(self))
14143
14144 - def __int__(self):
14145 is_num,is_sign = is_numeric_type(self.sbvalue.GetType().GetCanonicalType().GetBasicType()) 14146 if is_num and not is_sign: return self.sbvalue.GetValueAsUnsigned() 14147 return self.sbvalue.GetValueAsSigned()
14148
14149 - def __long__(self):
14150 return self.__int__()
14151
14152 - def __float__(self):
14153 return float (self.sbvalue.GetValueAsSigned())
14154
14155 - def __oct__(self):
14156 return '0%o' % self.sbvalue.GetValueAsUnsigned()
14157
14158 - def __hex__(self):
14159 return '0x%x' % self.sbvalue.GetValueAsUnsigned()
14160
14161 - def __len__(self):
14162 return self.sbvalue.GetNumChildren()
14163
14164 - def __eq__(self, other):
14165 if type(other) is int: 14166 return int(self) == other 14167 elif type(other) is str: 14168 return str(self) == other 14169 elif type(other) is value: 14170 self_err = SBError() 14171 other_err = SBError() 14172 self_val = self.sbvalue.GetValueAsUnsigned(self_err) 14173 if self_err.fail: 14174 raise ValueError("unable to extract value of self") 14175 other_val = other.sbvalue.GetValueAsUnsigned(other_err) 14176 if other_err.fail: 14177 raise ValueError("unable to extract value of other") 14178 return self_val == other_val 14179 raise TypeError("Unknown type %s, No equality operation defined." % str(type(other)))
14180
14181 - def __ne__(self, other):
14182 return not self.__eq__(other)
14183
14184 -class SBSyntheticValueProvider(object):
14185 - def __init__(self,valobj):
14186 pass
14187
14188 - def num_children(self):
14189 return 0
14190
14191 - def get_child_index(self,name):
14192 return None
14193
14194 - def get_child_at_index(self,idx):
14195 return None
14196
14197 - def update(self):
14198 pass
14199
14200 - def has_children(self):
14201 return False
14202
14203 14204 14205 # given an lldb.SBBasicType it returns a tuple 14206 # (is_numeric, is_signed) 14207 # the value of is_signed is undefined if is_numeric == false 14208 -def is_numeric_type(basic_type):
14209 if basic_type == eBasicTypeInvalid: return (False,False) 14210 if basic_type == eBasicTypeVoid: return (False,False) 14211 if basic_type == eBasicTypeChar: return (True,False) 14212 if basic_type == eBasicTypeSignedChar: return (True,True) 14213 if basic_type == eBasicTypeUnsignedChar: return (True,False) 14214 if basic_type == eBasicTypeWChar: return (True,False) 14215 if basic_type == eBasicTypeSignedWChar: return (True,True) 14216 if basic_type == eBasicTypeUnsignedWChar: return (True,False) 14217 if basic_type == eBasicTypeChar16: return (True,False) 14218 if basic_type == eBasicTypeChar32: return (True,False) 14219 if basic_type == eBasicTypeShort: return (True,True) 14220 if basic_type == eBasicTypeUnsignedShort: return (True,False) 14221 if basic_type == eBasicTypeInt: return (True,True) 14222 if basic_type == eBasicTypeUnsignedInt: return (True,False) 14223 if basic_type == eBasicTypeLong: return (True,True) 14224 if basic_type == eBasicTypeUnsignedLong: return (True,False) 14225 if basic_type == eBasicTypeLongLong: return (True,True) 14226 if basic_type == eBasicTypeUnsignedLongLong: return (True,False) 14227 if basic_type == eBasicTypeInt128: return (True,True) 14228 if basic_type == eBasicTypeUnsignedInt128: return (True,False) 14229 if basic_type == eBasicTypeBool: return (False,False) 14230 if basic_type == eBasicTypeHalf: return (True,True) 14231 if basic_type == eBasicTypeFloat: return (True,True) 14232 if basic_type == eBasicTypeDouble: return (True,True) 14233 if basic_type == eBasicTypeLongDouble: return (True,True) 14234 if basic_type == eBasicTypeFloatComplex: return (True,True) 14235 if basic_type == eBasicTypeDoubleComplex: return (True,True) 14236 if basic_type == eBasicTypeLongDoubleComplex: return (True,True) 14237 if basic_type == eBasicTypeObjCID: return (False,False) 14238 if basic_type == eBasicTypeObjCClass: return (False,False) 14239 if basic_type == eBasicTypeObjCSel: return (False,False) 14240 if basic_type == eBasicTypeNullPtr: return (False,False) 14241 #if basic_type == eBasicTypeOther: 14242 return (False,False)
14243 14244 14245 debugger_unique_id = 0 14246 SBDebugger.Initialize() 14247 debugger = None 14248 target = SBTarget() 14249 process = SBProcess() 14250 thread = SBThread() 14251 frame = SBFrame() 14252 14253 # This file is compatible with both classic and new-style classes. 14254