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  swig_version = (2, 0, 11) 
    7   
    8   
    9   
   10   
   11  """ 
   12  The lldb module contains the public APIs for Python binding. 
   13   
   14  Some of the important classes are described here: 
   15   
   16  o SBTarget: Represents the target program running under the debugger. 
   17  o SBProcess: Represents the process associated with the target program. 
   18  o SBThread: Represents a thread of execution. SBProcess contains SBThread(s). 
   19  o SBFrame: Represents one of the stack frames associated with a thread. SBThread 
   20        contains SBFrame(s). 
   21  o SBSymbolContext: A container that stores various debugger related info. 
   22  o SBValue: Represents the value of a variable, a register, or an expression. 
   23  o SBModule: Represents an executable image and its associated object and symbol 
   24        files.  SBTarget contains SBModule(s). 
   25  o SBBreakpoint: Represents a logical breakpoint and its associated settings. 
   26        SBTarget contains SBBreakpoint(s). 
   27  o SBSymbol: Represents the symbol possibly associated with a stack frame. 
   28  o SBCompileUnit: Represents a compilation unit, or compiled source file. 
   29  o SBFunction: Represents a generic function, which can be inlined or not. 
   30  o SBBlock: Represents a lexical block. SBFunction contains SBBlock(s). 
   31  o SBLineEntry: Specifies an association with a contiguous range of instructions 
   32        and a source file location. SBCompileUnit contains SBLineEntry(s). 
   33  """ 
   34   
   35   
   36  from sys import version_info 
   37  if version_info >= (2,6,0): 
38 - def swig_import_helper():
39 from os.path import dirname 40 import imp 41 fp = None 42 try: 43 fp, pathname, description = imp.find_module('_lldb', [dirname(__file__)]) 44 except ImportError: 45 import _lldb 46 return _lldb 47 if fp is not None: 48 try: 49 _mod = imp.load_module('_lldb', fp, pathname, description) 50 finally: 51 fp.close() 52 return _mod
53 _lldb = swig_import_helper() 54 del swig_import_helper 55 else: 56 import _lldb 57 del version_info 58 try: 59 _swig_property = property 60 except NameError: 61 pass # Python < 2.2 doesn't have 'property'.
62 -def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
63 if (name == "thisown"): return self.this.own(value) 64 if (name == "this"): 65 if type(value).__name__ == 'SwigPyObject': 66 self.__dict__[name] = value 67 return 68 method = class_type.__swig_setmethods__.get(name,None) 69 if method: return method(self,value) 70 if (not static): 71 self.__dict__[name] = value 72 else: 73 raise AttributeError("You cannot add attributes to %s" % self)
74
75 -def _swig_setattr(self,class_type,name,value):
76 return _swig_setattr_nondynamic(self,class_type,name,value,0)
77
78 -def _swig_getattr(self,class_type,name):
79 if (name == "thisown"): return self.this.own() 80 method = class_type.__swig_getmethods__.get(name,None) 81 if method: return method(self) 82 raise AttributeError(name)
83
84 -def _swig_repr(self):
85 try: strthis = "proxy of " + self.this.__repr__() 86 except: strthis = "" 87 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
88 89 try: 90 _object = object 91 _newclass = 1 92 except AttributeError:
93 - class _object : pass
94 _newclass = 0 95 96 97 import uuid 98 import re 99 import os 100 101 import six 102 103 INT32_MAX = _lldb.INT32_MAX 104 UINT32_MAX = _lldb.UINT32_MAX 105 UINT64_MAX = _lldb.UINT64_MAX 106 LLDB_GENERIC_ERROR = _lldb.LLDB_GENERIC_ERROR 107 LLDB_INVALID_BREAK_ID = _lldb.LLDB_INVALID_BREAK_ID 108 LLDB_DEFAULT_BREAK_SIZE = _lldb.LLDB_DEFAULT_BREAK_SIZE 109 LLDB_INVALID_WATCH_ID = _lldb.LLDB_INVALID_WATCH_ID 110 LLDB_WATCH_TYPE_READ = _lldb.LLDB_WATCH_TYPE_READ 111 LLDB_WATCH_TYPE_WRITE = _lldb.LLDB_WATCH_TYPE_WRITE 112 LLDB_REGNUM_GENERIC_PC = _lldb.LLDB_REGNUM_GENERIC_PC 113 LLDB_REGNUM_GENERIC_SP = _lldb.LLDB_REGNUM_GENERIC_SP 114 LLDB_REGNUM_GENERIC_FP = _lldb.LLDB_REGNUM_GENERIC_FP 115 LLDB_REGNUM_GENERIC_RA = _lldb.LLDB_REGNUM_GENERIC_RA 116 LLDB_REGNUM_GENERIC_FLAGS = _lldb.LLDB_REGNUM_GENERIC_FLAGS 117 LLDB_REGNUM_GENERIC_ARG1 = _lldb.LLDB_REGNUM_GENERIC_ARG1 118 LLDB_REGNUM_GENERIC_ARG2 = _lldb.LLDB_REGNUM_GENERIC_ARG2 119 LLDB_REGNUM_GENERIC_ARG3 = _lldb.LLDB_REGNUM_GENERIC_ARG3 120 LLDB_REGNUM_GENERIC_ARG4 = _lldb.LLDB_REGNUM_GENERIC_ARG4 121 LLDB_REGNUM_GENERIC_ARG5 = _lldb.LLDB_REGNUM_GENERIC_ARG5 122 LLDB_REGNUM_GENERIC_ARG6 = _lldb.LLDB_REGNUM_GENERIC_ARG6 123 LLDB_REGNUM_GENERIC_ARG7 = _lldb.LLDB_REGNUM_GENERIC_ARG7 124 LLDB_REGNUM_GENERIC_ARG8 = _lldb.LLDB_REGNUM_GENERIC_ARG8 125 LLDB_INVALID_ADDRESS = _lldb.LLDB_INVALID_ADDRESS 126 LLDB_INVALID_INDEX32 = _lldb.LLDB_INVALID_INDEX32 127 LLDB_INVALID_IVAR_OFFSET = _lldb.LLDB_INVALID_IVAR_OFFSET 128 LLDB_INVALID_IMAGE_TOKEN = _lldb.LLDB_INVALID_IMAGE_TOKEN 129 LLDB_INVALID_MODULE_VERSION = _lldb.LLDB_INVALID_MODULE_VERSION 130 LLDB_INVALID_REGNUM = _lldb.LLDB_INVALID_REGNUM 131 LLDB_INVALID_UID = _lldb.LLDB_INVALID_UID 132 LLDB_INVALID_PROCESS_ID = _lldb.LLDB_INVALID_PROCESS_ID 133 LLDB_INVALID_THREAD_ID = _lldb.LLDB_INVALID_THREAD_ID 134 LLDB_INVALID_FRAME_ID = _lldb.LLDB_INVALID_FRAME_ID 135 LLDB_INVALID_SIGNAL_NUMBER = _lldb.LLDB_INVALID_SIGNAL_NUMBER 136 LLDB_INVALID_OFFSET = _lldb.LLDB_INVALID_OFFSET 137 LLDB_INVALID_LINE_NUMBER = _lldb.LLDB_INVALID_LINE_NUMBER 138 LLDB_INVALID_QUEUE_ID = _lldb.LLDB_INVALID_QUEUE_ID 139 LLDB_ARCH_DEFAULT = _lldb.LLDB_ARCH_DEFAULT 140 LLDB_ARCH_DEFAULT_32BIT = _lldb.LLDB_ARCH_DEFAULT_32BIT 141 LLDB_ARCH_DEFAULT_64BIT = _lldb.LLDB_ARCH_DEFAULT_64BIT 142 LLDB_INVALID_CPUTYPE = _lldb.LLDB_INVALID_CPUTYPE 143 LLDB_MAX_NUM_OPTION_SETS = _lldb.LLDB_MAX_NUM_OPTION_SETS 144 LLDB_OPT_SET_ALL = _lldb.LLDB_OPT_SET_ALL 145 LLDB_OPT_SET_1 = _lldb.LLDB_OPT_SET_1 146 LLDB_OPT_SET_2 = _lldb.LLDB_OPT_SET_2 147 LLDB_OPT_SET_3 = _lldb.LLDB_OPT_SET_3 148 LLDB_OPT_SET_4 = _lldb.LLDB_OPT_SET_4 149 LLDB_OPT_SET_5 = _lldb.LLDB_OPT_SET_5 150 LLDB_OPT_SET_6 = _lldb.LLDB_OPT_SET_6 151 LLDB_OPT_SET_7 = _lldb.LLDB_OPT_SET_7 152 LLDB_OPT_SET_8 = _lldb.LLDB_OPT_SET_8 153 LLDB_OPT_SET_9 = _lldb.LLDB_OPT_SET_9 154 LLDB_OPT_SET_10 = _lldb.LLDB_OPT_SET_10 155 eStateInvalid = _lldb.eStateInvalid 156 eStateUnloaded = _lldb.eStateUnloaded 157 eStateConnected = _lldb.eStateConnected 158 eStateAttaching = _lldb.eStateAttaching 159 eStateLaunching = _lldb.eStateLaunching 160 eStateStopped = _lldb.eStateStopped 161 eStateRunning = _lldb.eStateRunning 162 eStateStepping = _lldb.eStateStepping 163 eStateCrashed = _lldb.eStateCrashed 164 eStateDetached = _lldb.eStateDetached 165 eStateExited = _lldb.eStateExited 166 eStateSuspended = _lldb.eStateSuspended 167 eLaunchFlagNone = _lldb.eLaunchFlagNone 168 eLaunchFlagExec = _lldb.eLaunchFlagExec 169 eLaunchFlagDebug = _lldb.eLaunchFlagDebug 170 eLaunchFlagStopAtEntry = _lldb.eLaunchFlagStopAtEntry 171 eLaunchFlagDisableASLR = _lldb.eLaunchFlagDisableASLR 172 eLaunchFlagDisableSTDIO = _lldb.eLaunchFlagDisableSTDIO 173 eLaunchFlagLaunchInTTY = _lldb.eLaunchFlagLaunchInTTY 174 eLaunchFlagLaunchInShell = _lldb.eLaunchFlagLaunchInShell 175 eLaunchFlagLaunchInSeparateProcessGroup = _lldb.eLaunchFlagLaunchInSeparateProcessGroup 176 eLaunchFlagDontSetExitStatus = _lldb.eLaunchFlagDontSetExitStatus 177 eLaunchFlagDetachOnError = _lldb.eLaunchFlagDetachOnError 178 eLaunchFlagShellExpandArguments = _lldb.eLaunchFlagShellExpandArguments 179 eLaunchFlagCloseTTYOnExit = _lldb.eLaunchFlagCloseTTYOnExit 180 eOnlyThisThread = _lldb.eOnlyThisThread 181 eAllThreads = _lldb.eAllThreads 182 eOnlyDuringStepping = _lldb.eOnlyDuringStepping 183 eByteOrderInvalid = _lldb.eByteOrderInvalid 184 eByteOrderBig = _lldb.eByteOrderBig 185 eByteOrderPDP = _lldb.eByteOrderPDP 186 eByteOrderLittle = _lldb.eByteOrderLittle 187 eEncodingInvalid = _lldb.eEncodingInvalid 188 eEncodingUint = _lldb.eEncodingUint 189 eEncodingSint = _lldb.eEncodingSint 190 eEncodingIEEE754 = _lldb.eEncodingIEEE754 191 eEncodingVector = _lldb.eEncodingVector 192 eFormatDefault = _lldb.eFormatDefault 193 eFormatInvalid = _lldb.eFormatInvalid 194 eFormatBoolean = _lldb.eFormatBoolean 195 eFormatBinary = _lldb.eFormatBinary 196 eFormatBytes = _lldb.eFormatBytes 197 eFormatBytesWithASCII = _lldb.eFormatBytesWithASCII 198 eFormatChar = _lldb.eFormatChar 199 eFormatCharPrintable = _lldb.eFormatCharPrintable 200 eFormatComplex = _lldb.eFormatComplex 201 eFormatComplexFloat = _lldb.eFormatComplexFloat 202 eFormatCString = _lldb.eFormatCString 203 eFormatDecimal = _lldb.eFormatDecimal 204 eFormatEnum = _lldb.eFormatEnum 205 eFormatHex = _lldb.eFormatHex 206 eFormatHexUppercase = _lldb.eFormatHexUppercase 207 eFormatFloat = _lldb.eFormatFloat 208 eFormatOctal = _lldb.eFormatOctal 209 eFormatOSType = _lldb.eFormatOSType 210 eFormatUnicode16 = _lldb.eFormatUnicode16 211 eFormatUnicode32 = _lldb.eFormatUnicode32 212 eFormatUnsigned = _lldb.eFormatUnsigned 213 eFormatPointer = _lldb.eFormatPointer 214 eFormatVectorOfChar = _lldb.eFormatVectorOfChar 215 eFormatVectorOfSInt8 = _lldb.eFormatVectorOfSInt8 216 eFormatVectorOfUInt8 = _lldb.eFormatVectorOfUInt8 217 eFormatVectorOfSInt16 = _lldb.eFormatVectorOfSInt16 218 eFormatVectorOfUInt16 = _lldb.eFormatVectorOfUInt16 219 eFormatVectorOfSInt32 = _lldb.eFormatVectorOfSInt32 220 eFormatVectorOfUInt32 = _lldb.eFormatVectorOfUInt32 221 eFormatVectorOfSInt64 = _lldb.eFormatVectorOfSInt64 222 eFormatVectorOfUInt64 = _lldb.eFormatVectorOfUInt64 223 eFormatVectorOfFloat16 = _lldb.eFormatVectorOfFloat16 224 eFormatVectorOfFloat32 = _lldb.eFormatVectorOfFloat32 225 eFormatVectorOfFloat64 = _lldb.eFormatVectorOfFloat64 226 eFormatVectorOfUInt128 = _lldb.eFormatVectorOfUInt128 227 eFormatComplexInteger = _lldb.eFormatComplexInteger 228 eFormatCharArray = _lldb.eFormatCharArray 229 eFormatAddressInfo = _lldb.eFormatAddressInfo 230 eFormatHexFloat = _lldb.eFormatHexFloat 231 eFormatInstruction = _lldb.eFormatInstruction 232 eFormatVoid = _lldb.eFormatVoid 233 kNumFormats = _lldb.kNumFormats 234 eDescriptionLevelBrief = _lldb.eDescriptionLevelBrief 235 eDescriptionLevelFull = _lldb.eDescriptionLevelFull 236 eDescriptionLevelVerbose = _lldb.eDescriptionLevelVerbose 237 eDescriptionLevelInitial = _lldb.eDescriptionLevelInitial 238 kNumDescriptionLevels = _lldb.kNumDescriptionLevels 239 eScriptLanguageNone = _lldb.eScriptLanguageNone 240 eScriptLanguagePython = _lldb.eScriptLanguagePython 241 eScriptLanguageDefault = _lldb.eScriptLanguageDefault 242 eScriptLanguageUnknown = _lldb.eScriptLanguageUnknown 243 eRegisterKindEHFrame = _lldb.eRegisterKindEHFrame 244 eRegisterKindDWARF = _lldb.eRegisterKindDWARF 245 eRegisterKindGeneric = _lldb.eRegisterKindGeneric 246 eRegisterKindProcessPlugin = _lldb.eRegisterKindProcessPlugin 247 eRegisterKindLLDB = _lldb.eRegisterKindLLDB 248 kNumRegisterKinds = _lldb.kNumRegisterKinds 249 eStopReasonInvalid = _lldb.eStopReasonInvalid 250 eStopReasonNone = _lldb.eStopReasonNone 251 eStopReasonTrace = _lldb.eStopReasonTrace 252 eStopReasonBreakpoint = _lldb.eStopReasonBreakpoint 253 eStopReasonWatchpoint = _lldb.eStopReasonWatchpoint 254 eStopReasonSignal = _lldb.eStopReasonSignal 255 eStopReasonException = _lldb.eStopReasonException 256 eStopReasonExec = _lldb.eStopReasonExec 257 eStopReasonPlanComplete = _lldb.eStopReasonPlanComplete 258 eStopReasonThreadExiting = _lldb.eStopReasonThreadExiting 259 eStopReasonInstrumentation = _lldb.eStopReasonInstrumentation 260 eReturnStatusInvalid = _lldb.eReturnStatusInvalid 261 eReturnStatusSuccessFinishNoResult = _lldb.eReturnStatusSuccessFinishNoResult 262 eReturnStatusSuccessFinishResult = _lldb.eReturnStatusSuccessFinishResult 263 eReturnStatusSuccessContinuingNoResult = _lldb.eReturnStatusSuccessContinuingNoResult 264 eReturnStatusSuccessContinuingResult = _lldb.eReturnStatusSuccessContinuingResult 265 eReturnStatusStarted = _lldb.eReturnStatusStarted 266 eReturnStatusFailed = _lldb.eReturnStatusFailed 267 eReturnStatusQuit = _lldb.eReturnStatusQuit 268 eExpressionCompleted = _lldb.eExpressionCompleted 269 eExpressionSetupError = _lldb.eExpressionSetupError 270 eExpressionParseError = _lldb.eExpressionParseError 271 eExpressionDiscarded = _lldb.eExpressionDiscarded 272 eExpressionInterrupted = _lldb.eExpressionInterrupted 273 eExpressionHitBreakpoint = _lldb.eExpressionHitBreakpoint 274 eExpressionTimedOut = _lldb.eExpressionTimedOut 275 eExpressionResultUnavailable = _lldb.eExpressionResultUnavailable 276 eExpressionStoppedForDebug = _lldb.eExpressionStoppedForDebug 277 eConnectionStatusSuccess = _lldb.eConnectionStatusSuccess 278 eConnectionStatusEndOfFile = _lldb.eConnectionStatusEndOfFile 279 eConnectionStatusError = _lldb.eConnectionStatusError 280 eConnectionStatusTimedOut = _lldb.eConnectionStatusTimedOut 281 eConnectionStatusNoConnection = _lldb.eConnectionStatusNoConnection 282 eConnectionStatusLostConnection = _lldb.eConnectionStatusLostConnection 283 eConnectionStatusInterrupted = _lldb.eConnectionStatusInterrupted 284 eErrorTypeInvalid = _lldb.eErrorTypeInvalid 285 eErrorTypeGeneric = _lldb.eErrorTypeGeneric 286 eErrorTypeMachKernel = _lldb.eErrorTypeMachKernel 287 eErrorTypePOSIX = _lldb.eErrorTypePOSIX 288 eErrorTypeExpression = _lldb.eErrorTypeExpression 289 eErrorTypeWin32 = _lldb.eErrorTypeWin32 290 eValueTypeInvalid = _lldb.eValueTypeInvalid 291 eValueTypeVariableGlobal = _lldb.eValueTypeVariableGlobal 292 eValueTypeVariableStatic = _lldb.eValueTypeVariableStatic 293 eValueTypeVariableArgument = _lldb.eValueTypeVariableArgument 294 eValueTypeVariableLocal = _lldb.eValueTypeVariableLocal 295 eValueTypeRegister = _lldb.eValueTypeRegister 296 eValueTypeRegisterSet = _lldb.eValueTypeRegisterSet 297 eValueTypeConstResult = _lldb.eValueTypeConstResult 298 eValueTypeVariableThreadLocal = _lldb.eValueTypeVariableThreadLocal 299 eInputReaderGranularityInvalid = _lldb.eInputReaderGranularityInvalid 300 eInputReaderGranularityByte = _lldb.eInputReaderGranularityByte 301 eInputReaderGranularityWord = _lldb.eInputReaderGranularityWord 302 eInputReaderGranularityLine = _lldb.eInputReaderGranularityLine 303 eInputReaderGranularityAll = _lldb.eInputReaderGranularityAll 304 eSymbolContextTarget = _lldb.eSymbolContextTarget 305 eSymbolContextModule = _lldb.eSymbolContextModule 306 eSymbolContextCompUnit = _lldb.eSymbolContextCompUnit 307 eSymbolContextFunction = _lldb.eSymbolContextFunction 308 eSymbolContextBlock = _lldb.eSymbolContextBlock 309 eSymbolContextLineEntry = _lldb.eSymbolContextLineEntry 310 eSymbolContextSymbol = _lldb.eSymbolContextSymbol 311 eSymbolContextEverything = _lldb.eSymbolContextEverything 312 eSymbolContextVariable = _lldb.eSymbolContextVariable 313 ePermissionsWritable = _lldb.ePermissionsWritable 314 ePermissionsReadable = _lldb.ePermissionsReadable 315 ePermissionsExecutable = _lldb.ePermissionsExecutable 316 eInputReaderActivate = _lldb.eInputReaderActivate 317 eInputReaderAsynchronousOutputWritten = _lldb.eInputReaderAsynchronousOutputWritten 318 eInputReaderReactivate = _lldb.eInputReaderReactivate 319 eInputReaderDeactivate = _lldb.eInputReaderDeactivate 320 eInputReaderGotToken = _lldb.eInputReaderGotToken 321 eInputReaderInterrupt = _lldb.eInputReaderInterrupt 322 eInputReaderEndOfFile = _lldb.eInputReaderEndOfFile 323 eInputReaderDone = _lldb.eInputReaderDone 324 eBreakpointEventTypeInvalidType = _lldb.eBreakpointEventTypeInvalidType 325 eBreakpointEventTypeAdded = _lldb.eBreakpointEventTypeAdded 326 eBreakpointEventTypeRemoved = _lldb.eBreakpointEventTypeRemoved 327 eBreakpointEventTypeLocationsAdded = _lldb.eBreakpointEventTypeLocationsAdded 328 eBreakpointEventTypeLocationsRemoved = _lldb.eBreakpointEventTypeLocationsRemoved 329 eBreakpointEventTypeLocationsResolved = _lldb.eBreakpointEventTypeLocationsResolved 330 eBreakpointEventTypeEnabled = _lldb.eBreakpointEventTypeEnabled 331 eBreakpointEventTypeDisabled = _lldb.eBreakpointEventTypeDisabled 332 eBreakpointEventTypeCommandChanged = _lldb.eBreakpointEventTypeCommandChanged 333 eBreakpointEventTypeConditionChanged = _lldb.eBreakpointEventTypeConditionChanged 334 eBreakpointEventTypeIgnoreChanged = _lldb.eBreakpointEventTypeIgnoreChanged 335 eBreakpointEventTypeThreadChanged = _lldb.eBreakpointEventTypeThreadChanged 336 eWatchpointEventTypeInvalidType = _lldb.eWatchpointEventTypeInvalidType 337 eWatchpointEventTypeAdded = _lldb.eWatchpointEventTypeAdded 338 eWatchpointEventTypeRemoved = _lldb.eWatchpointEventTypeRemoved 339 eWatchpointEventTypeEnabled = _lldb.eWatchpointEventTypeEnabled 340 eWatchpointEventTypeDisabled = _lldb.eWatchpointEventTypeDisabled 341 eWatchpointEventTypeCommandChanged = _lldb.eWatchpointEventTypeCommandChanged 342 eWatchpointEventTypeConditionChanged = _lldb.eWatchpointEventTypeConditionChanged 343 eWatchpointEventTypeIgnoreChanged = _lldb.eWatchpointEventTypeIgnoreChanged 344 eWatchpointEventTypeThreadChanged = _lldb.eWatchpointEventTypeThreadChanged 345 eWatchpointEventTypeTypeChanged = _lldb.eWatchpointEventTypeTypeChanged 346 eLanguageTypeUnknown = _lldb.eLanguageTypeUnknown 347 eLanguageTypeC89 = _lldb.eLanguageTypeC89 348 eLanguageTypeC = _lldb.eLanguageTypeC 349 eLanguageTypeAda83 = _lldb.eLanguageTypeAda83 350 eLanguageTypeC_plus_plus = _lldb.eLanguageTypeC_plus_plus 351 eLanguageTypeCobol74 = _lldb.eLanguageTypeCobol74 352 eLanguageTypeCobol85 = _lldb.eLanguageTypeCobol85 353 eLanguageTypeFortran77 = _lldb.eLanguageTypeFortran77 354 eLanguageTypeFortran90 = _lldb.eLanguageTypeFortran90 355 eLanguageTypePascal83 = _lldb.eLanguageTypePascal83 356 eLanguageTypeModula2 = _lldb.eLanguageTypeModula2 357 eLanguageTypeJava = _lldb.eLanguageTypeJava 358 eLanguageTypeC99 = _lldb.eLanguageTypeC99 359 eLanguageTypeAda95 = _lldb.eLanguageTypeAda95 360 eLanguageTypeFortran95 = _lldb.eLanguageTypeFortran95 361 eLanguageTypePLI = _lldb.eLanguageTypePLI 362 eLanguageTypeObjC = _lldb.eLanguageTypeObjC 363 eLanguageTypeObjC_plus_plus = _lldb.eLanguageTypeObjC_plus_plus 364 eLanguageTypeUPC = _lldb.eLanguageTypeUPC 365 eLanguageTypeD = _lldb.eLanguageTypeD 366 eLanguageTypePython = _lldb.eLanguageTypePython 367 eLanguageTypeOpenCL = _lldb.eLanguageTypeOpenCL 368 eLanguageTypeGo = _lldb.eLanguageTypeGo 369 eLanguageTypeModula3 = _lldb.eLanguageTypeModula3 370 eLanguageTypeHaskell = _lldb.eLanguageTypeHaskell 371 eLanguageTypeC_plus_plus_03 = _lldb.eLanguageTypeC_plus_plus_03 372 eLanguageTypeC_plus_plus_11 = _lldb.eLanguageTypeC_plus_plus_11 373 eLanguageTypeOCaml = _lldb.eLanguageTypeOCaml 374 eLanguageTypeRust = _lldb.eLanguageTypeRust 375 eLanguageTypeC11 = _lldb.eLanguageTypeC11 376 eLanguageTypeSwift = _lldb.eLanguageTypeSwift 377 eLanguageTypeJulia = _lldb.eLanguageTypeJulia 378 eLanguageTypeDylan = _lldb.eLanguageTypeDylan 379 eLanguageTypeC_plus_plus_14 = _lldb.eLanguageTypeC_plus_plus_14 380 eLanguageTypeFortran03 = _lldb.eLanguageTypeFortran03 381 eLanguageTypeFortran08 = _lldb.eLanguageTypeFortran08 382 eLanguageTypeMipsAssembler = _lldb.eLanguageTypeMipsAssembler 383 eLanguageTypeExtRenderScript = _lldb.eLanguageTypeExtRenderScript 384 eNumLanguageTypes = _lldb.eNumLanguageTypes 385 eInstrumentationRuntimeTypeAddressSanitizer = _lldb.eInstrumentationRuntimeTypeAddressSanitizer 386 eInstrumentationRuntimeTypeThreadSanitizer = _lldb.eInstrumentationRuntimeTypeThreadSanitizer 387 eNumInstrumentationRuntimeTypes = _lldb.eNumInstrumentationRuntimeTypes 388 eNoDynamicValues = _lldb.eNoDynamicValues 389 eDynamicCanRunTarget = _lldb.eDynamicCanRunTarget 390 eDynamicDontRunTarget = _lldb.eDynamicDontRunTarget 391 eStopShowColumnAnsiOrCaret = _lldb.eStopShowColumnAnsiOrCaret 392 eStopShowColumnAnsi = _lldb.eStopShowColumnAnsi 393 eStopShowColumnCaret = _lldb.eStopShowColumnCaret 394 eStopShowColumnNone = _lldb.eStopShowColumnNone 395 eAccessNone = _lldb.eAccessNone 396 eAccessPublic = _lldb.eAccessPublic 397 eAccessPrivate = _lldb.eAccessPrivate 398 eAccessProtected = _lldb.eAccessProtected 399 eAccessPackage = _lldb.eAccessPackage 400 eArgTypeAddress = _lldb.eArgTypeAddress 401 eArgTypeAddressOrExpression = _lldb.eArgTypeAddressOrExpression 402 eArgTypeAliasName = _lldb.eArgTypeAliasName 403 eArgTypeAliasOptions = _lldb.eArgTypeAliasOptions 404 eArgTypeArchitecture = _lldb.eArgTypeArchitecture 405 eArgTypeBoolean = _lldb.eArgTypeBoolean 406 eArgTypeBreakpointID = _lldb.eArgTypeBreakpointID 407 eArgTypeBreakpointIDRange = _lldb.eArgTypeBreakpointIDRange 408 eArgTypeBreakpointName = _lldb.eArgTypeBreakpointName 409 eArgTypeByteSize = _lldb.eArgTypeByteSize 410 eArgTypeClassName = _lldb.eArgTypeClassName 411 eArgTypeCommandName = _lldb.eArgTypeCommandName 412 eArgTypeCount = _lldb.eArgTypeCount 413 eArgTypeDescriptionVerbosity = _lldb.eArgTypeDescriptionVerbosity 414 eArgTypeDirectoryName = _lldb.eArgTypeDirectoryName 415 eArgTypeDisassemblyFlavor = _lldb.eArgTypeDisassemblyFlavor 416 eArgTypeEndAddress = _lldb.eArgTypeEndAddress 417 eArgTypeExpression = _lldb.eArgTypeExpression 418 eArgTypeExpressionPath = _lldb.eArgTypeExpressionPath 419 eArgTypeExprFormat = _lldb.eArgTypeExprFormat 420 eArgTypeFilename = _lldb.eArgTypeFilename 421 eArgTypeFormat = _lldb.eArgTypeFormat 422 eArgTypeFrameIndex = _lldb.eArgTypeFrameIndex 423 eArgTypeFullName = _lldb.eArgTypeFullName 424 eArgTypeFunctionName = _lldb.eArgTypeFunctionName 425 eArgTypeFunctionOrSymbol = _lldb.eArgTypeFunctionOrSymbol 426 eArgTypeGDBFormat = _lldb.eArgTypeGDBFormat 427 eArgTypeHelpText = _lldb.eArgTypeHelpText 428 eArgTypeIndex = _lldb.eArgTypeIndex 429 eArgTypeLanguage = _lldb.eArgTypeLanguage 430 eArgTypeLineNum = _lldb.eArgTypeLineNum 431 eArgTypeLogCategory = _lldb.eArgTypeLogCategory 432 eArgTypeLogChannel = _lldb.eArgTypeLogChannel 433 eArgTypeMethod = _lldb.eArgTypeMethod 434 eArgTypeName = _lldb.eArgTypeName 435 eArgTypeNewPathPrefix = _lldb.eArgTypeNewPathPrefix 436 eArgTypeNumLines = _lldb.eArgTypeNumLines 437 eArgTypeNumberPerLine = _lldb.eArgTypeNumberPerLine 438 eArgTypeOffset = _lldb.eArgTypeOffset 439 eArgTypeOldPathPrefix = _lldb.eArgTypeOldPathPrefix 440 eArgTypeOneLiner = _lldb.eArgTypeOneLiner 441 eArgTypePath = _lldb.eArgTypePath 442 eArgTypePermissionsNumber = _lldb.eArgTypePermissionsNumber 443 eArgTypePermissionsString = _lldb.eArgTypePermissionsString 444 eArgTypePid = _lldb.eArgTypePid 445 eArgTypePlugin = _lldb.eArgTypePlugin 446 eArgTypeProcessName = _lldb.eArgTypeProcessName 447 eArgTypePythonClass = _lldb.eArgTypePythonClass 448 eArgTypePythonFunction = _lldb.eArgTypePythonFunction 449 eArgTypePythonScript = _lldb.eArgTypePythonScript 450 eArgTypeQueueName = _lldb.eArgTypeQueueName 451 eArgTypeRegisterName = _lldb.eArgTypeRegisterName 452 eArgTypeRegularExpression = _lldb.eArgTypeRegularExpression 453 eArgTypeRunArgs = _lldb.eArgTypeRunArgs 454 eArgTypeRunMode = _lldb.eArgTypeRunMode 455 eArgTypeScriptedCommandSynchronicity = _lldb.eArgTypeScriptedCommandSynchronicity 456 eArgTypeScriptLang = _lldb.eArgTypeScriptLang 457 eArgTypeSearchWord = _lldb.eArgTypeSearchWord 458 eArgTypeSelector = _lldb.eArgTypeSelector 459 eArgTypeSettingIndex = _lldb.eArgTypeSettingIndex 460 eArgTypeSettingKey = _lldb.eArgTypeSettingKey 461 eArgTypeSettingPrefix = _lldb.eArgTypeSettingPrefix 462 eArgTypeSettingVariableName = _lldb.eArgTypeSettingVariableName 463 eArgTypeShlibName = _lldb.eArgTypeShlibName 464 eArgTypeSourceFile = _lldb.eArgTypeSourceFile 465 eArgTypeSortOrder = _lldb.eArgTypeSortOrder 466 eArgTypeStartAddress = _lldb.eArgTypeStartAddress 467 eArgTypeSummaryString = _lldb.eArgTypeSummaryString 468 eArgTypeSymbol = _lldb.eArgTypeSymbol 469 eArgTypeThreadID = _lldb.eArgTypeThreadID 470 eArgTypeThreadIndex = _lldb.eArgTypeThreadIndex 471 eArgTypeThreadName = _lldb.eArgTypeThreadName 472 eArgTypeTypeName = _lldb.eArgTypeTypeName 473 eArgTypeUnsignedInteger = _lldb.eArgTypeUnsignedInteger 474 eArgTypeUnixSignal = _lldb.eArgTypeUnixSignal 475 eArgTypeVarName = _lldb.eArgTypeVarName 476 eArgTypeValue = _lldb.eArgTypeValue 477 eArgTypeWidth = _lldb.eArgTypeWidth 478 eArgTypeNone = _lldb.eArgTypeNone 479 eArgTypePlatform = _lldb.eArgTypePlatform 480 eArgTypeWatchpointID = _lldb.eArgTypeWatchpointID 481 eArgTypeWatchpointIDRange = _lldb.eArgTypeWatchpointIDRange 482 eArgTypeWatchType = _lldb.eArgTypeWatchType 483 eArgRawInput = _lldb.eArgRawInput 484 eArgTypeLastArg = _lldb.eArgTypeLastArg 485 eSymbolTypeAny = _lldb.eSymbolTypeAny 486 eSymbolTypeInvalid = _lldb.eSymbolTypeInvalid 487 eSymbolTypeAbsolute = _lldb.eSymbolTypeAbsolute 488 eSymbolTypeCode = _lldb.eSymbolTypeCode 489 eSymbolTypeResolver = _lldb.eSymbolTypeResolver 490 eSymbolTypeData = _lldb.eSymbolTypeData 491 eSymbolTypeTrampoline = _lldb.eSymbolTypeTrampoline 492 eSymbolTypeRuntime = _lldb.eSymbolTypeRuntime 493 eSymbolTypeException = _lldb.eSymbolTypeException 494 eSymbolTypeSourceFile = _lldb.eSymbolTypeSourceFile 495 eSymbolTypeHeaderFile = _lldb.eSymbolTypeHeaderFile 496 eSymbolTypeObjectFile = _lldb.eSymbolTypeObjectFile 497 eSymbolTypeCommonBlock = _lldb.eSymbolTypeCommonBlock 498 eSymbolTypeBlock = _lldb.eSymbolTypeBlock 499 eSymbolTypeLocal = _lldb.eSymbolTypeLocal 500 eSymbolTypeParam = _lldb.eSymbolTypeParam 501 eSymbolTypeVariable = _lldb.eSymbolTypeVariable 502 eSymbolTypeVariableType = _lldb.eSymbolTypeVariableType 503 eSymbolTypeLineEntry = _lldb.eSymbolTypeLineEntry 504 eSymbolTypeLineHeader = _lldb.eSymbolTypeLineHeader 505 eSymbolTypeScopeBegin = _lldb.eSymbolTypeScopeBegin 506 eSymbolTypeScopeEnd = _lldb.eSymbolTypeScopeEnd 507 eSymbolTypeAdditional = _lldb.eSymbolTypeAdditional 508 eSymbolTypeCompiler = _lldb.eSymbolTypeCompiler 509 eSymbolTypeInstrumentation = _lldb.eSymbolTypeInstrumentation 510 eSymbolTypeUndefined = _lldb.eSymbolTypeUndefined 511 eSymbolTypeObjCClass = _lldb.eSymbolTypeObjCClass 512 eSymbolTypeObjCMetaClass = _lldb.eSymbolTypeObjCMetaClass 513 eSymbolTypeObjCIVar = _lldb.eSymbolTypeObjCIVar 514 eSymbolTypeReExported = _lldb.eSymbolTypeReExported 515 eSectionTypeInvalid = _lldb.eSectionTypeInvalid 516 eSectionTypeCode = _lldb.eSectionTypeCode 517 eSectionTypeContainer = _lldb.eSectionTypeContainer 518 eSectionTypeData = _lldb.eSectionTypeData 519 eSectionTypeDataCString = _lldb.eSectionTypeDataCString 520 eSectionTypeDataCStringPointers = _lldb.eSectionTypeDataCStringPointers 521 eSectionTypeDataSymbolAddress = _lldb.eSectionTypeDataSymbolAddress 522 eSectionTypeData4 = _lldb.eSectionTypeData4 523 eSectionTypeData8 = _lldb.eSectionTypeData8 524 eSectionTypeData16 = _lldb.eSectionTypeData16 525 eSectionTypeDataPointers = _lldb.eSectionTypeDataPointers 526 eSectionTypeDebug = _lldb.eSectionTypeDebug 527 eSectionTypeZeroFill = _lldb.eSectionTypeZeroFill 528 eSectionTypeDataObjCMessageRefs = _lldb.eSectionTypeDataObjCMessageRefs 529 eSectionTypeDataObjCCFStrings = _lldb.eSectionTypeDataObjCCFStrings 530 eSectionTypeDWARFDebugAbbrev = _lldb.eSectionTypeDWARFDebugAbbrev 531 eSectionTypeDWARFDebugAddr = _lldb.eSectionTypeDWARFDebugAddr 532 eSectionTypeDWARFDebugAranges = _lldb.eSectionTypeDWARFDebugAranges 533 eSectionTypeDWARFDebugFrame = _lldb.eSectionTypeDWARFDebugFrame 534 eSectionTypeDWARFDebugInfo = _lldb.eSectionTypeDWARFDebugInfo 535 eSectionTypeDWARFDebugLine = _lldb.eSectionTypeDWARFDebugLine 536 eSectionTypeDWARFDebugLoc = _lldb.eSectionTypeDWARFDebugLoc 537 eSectionTypeDWARFDebugMacInfo = _lldb.eSectionTypeDWARFDebugMacInfo 538 eSectionTypeDWARFDebugMacro = _lldb.eSectionTypeDWARFDebugMacro 539 eSectionTypeDWARFDebugPubNames = _lldb.eSectionTypeDWARFDebugPubNames 540 eSectionTypeDWARFDebugPubTypes = _lldb.eSectionTypeDWARFDebugPubTypes 541 eSectionTypeDWARFDebugRanges = _lldb.eSectionTypeDWARFDebugRanges 542 eSectionTypeDWARFDebugStr = _lldb.eSectionTypeDWARFDebugStr 543 eSectionTypeDWARFDebugStrOffsets = _lldb.eSectionTypeDWARFDebugStrOffsets 544 eSectionTypeDWARFAppleNames = _lldb.eSectionTypeDWARFAppleNames 545 eSectionTypeDWARFAppleTypes = _lldb.eSectionTypeDWARFAppleTypes 546 eSectionTypeDWARFAppleNamespaces = _lldb.eSectionTypeDWARFAppleNamespaces 547 eSectionTypeDWARFAppleObjC = _lldb.eSectionTypeDWARFAppleObjC 548 eSectionTypeELFSymbolTable = _lldb.eSectionTypeELFSymbolTable 549 eSectionTypeELFDynamicSymbols = _lldb.eSectionTypeELFDynamicSymbols 550 eSectionTypeELFRelocationEntries = _lldb.eSectionTypeELFRelocationEntries 551 eSectionTypeELFDynamicLinkInfo = _lldb.eSectionTypeELFDynamicLinkInfo 552 eSectionTypeEHFrame = _lldb.eSectionTypeEHFrame 553 eSectionTypeARMexidx = _lldb.eSectionTypeARMexidx 554 eSectionTypeARMextab = _lldb.eSectionTypeARMextab 555 eSectionTypeCompactUnwind = _lldb.eSectionTypeCompactUnwind 556 eSectionTypeGoSymtab = _lldb.eSectionTypeGoSymtab 557 eSectionTypeAbsoluteAddress = _lldb.eSectionTypeAbsoluteAddress 558 eSectionTypeOther = _lldb.eSectionTypeOther 559 eEmulateInstructionOptionNone = _lldb.eEmulateInstructionOptionNone 560 eEmulateInstructionOptionAutoAdvancePC = _lldb.eEmulateInstructionOptionAutoAdvancePC 561 eEmulateInstructionOptionIgnoreConditions = _lldb.eEmulateInstructionOptionIgnoreConditions 562 eFunctionNameTypeNone = _lldb.eFunctionNameTypeNone 563 eFunctionNameTypeAuto = _lldb.eFunctionNameTypeAuto 564 eFunctionNameTypeFull = _lldb.eFunctionNameTypeFull 565 eFunctionNameTypeBase = _lldb.eFunctionNameTypeBase 566 eFunctionNameTypeMethod = _lldb.eFunctionNameTypeMethod 567 eFunctionNameTypeSelector = _lldb.eFunctionNameTypeSelector 568 eFunctionNameTypeAny = _lldb.eFunctionNameTypeAny 569 eBasicTypeInvalid = _lldb.eBasicTypeInvalid 570 eBasicTypeVoid = _lldb.eBasicTypeVoid 571 eBasicTypeChar = _lldb.eBasicTypeChar 572 eBasicTypeSignedChar = _lldb.eBasicTypeSignedChar 573 eBasicTypeUnsignedChar = _lldb.eBasicTypeUnsignedChar 574 eBasicTypeWChar = _lldb.eBasicTypeWChar 575 eBasicTypeSignedWChar = _lldb.eBasicTypeSignedWChar 576 eBasicTypeUnsignedWChar = _lldb.eBasicTypeUnsignedWChar 577 eBasicTypeChar16 = _lldb.eBasicTypeChar16 578 eBasicTypeChar32 = _lldb.eBasicTypeChar32 579 eBasicTypeShort = _lldb.eBasicTypeShort 580 eBasicTypeUnsignedShort = _lldb.eBasicTypeUnsignedShort 581 eBasicTypeInt = _lldb.eBasicTypeInt 582 eBasicTypeUnsignedInt = _lldb.eBasicTypeUnsignedInt 583 eBasicTypeLong = _lldb.eBasicTypeLong 584 eBasicTypeUnsignedLong = _lldb.eBasicTypeUnsignedLong 585 eBasicTypeLongLong = _lldb.eBasicTypeLongLong 586 eBasicTypeUnsignedLongLong = _lldb.eBasicTypeUnsignedLongLong 587 eBasicTypeInt128 = _lldb.eBasicTypeInt128 588 eBasicTypeUnsignedInt128 = _lldb.eBasicTypeUnsignedInt128 589 eBasicTypeBool = _lldb.eBasicTypeBool 590 eBasicTypeHalf = _lldb.eBasicTypeHalf 591 eBasicTypeFloat = _lldb.eBasicTypeFloat 592 eBasicTypeDouble = _lldb.eBasicTypeDouble 593 eBasicTypeLongDouble = _lldb.eBasicTypeLongDouble 594 eBasicTypeFloatComplex = _lldb.eBasicTypeFloatComplex 595 eBasicTypeDoubleComplex = _lldb.eBasicTypeDoubleComplex 596 eBasicTypeLongDoubleComplex = _lldb.eBasicTypeLongDoubleComplex 597 eBasicTypeObjCID = _lldb.eBasicTypeObjCID 598 eBasicTypeObjCClass = _lldb.eBasicTypeObjCClass 599 eBasicTypeObjCSel = _lldb.eBasicTypeObjCSel 600 eBasicTypeNullPtr = _lldb.eBasicTypeNullPtr 601 eBasicTypeOther = _lldb.eBasicTypeOther 602 eTypeClassInvalid = _lldb.eTypeClassInvalid 603 eTypeClassArray = _lldb.eTypeClassArray 604 eTypeClassBlockPointer = _lldb.eTypeClassBlockPointer 605 eTypeClassBuiltin = _lldb.eTypeClassBuiltin 606 eTypeClassClass = _lldb.eTypeClassClass 607 eTypeClassComplexFloat = _lldb.eTypeClassComplexFloat 608 eTypeClassComplexInteger = _lldb.eTypeClassComplexInteger 609 eTypeClassEnumeration = _lldb.eTypeClassEnumeration 610 eTypeClassFunction = _lldb.eTypeClassFunction 611 eTypeClassMemberPointer = _lldb.eTypeClassMemberPointer 612 eTypeClassObjCObject = _lldb.eTypeClassObjCObject 613 eTypeClassObjCInterface = _lldb.eTypeClassObjCInterface 614 eTypeClassObjCObjectPointer = _lldb.eTypeClassObjCObjectPointer 615 eTypeClassPointer = _lldb.eTypeClassPointer 616 eTypeClassReference = _lldb.eTypeClassReference 617 eTypeClassStruct = _lldb.eTypeClassStruct 618 eTypeClassTypedef = _lldb.eTypeClassTypedef 619 eTypeClassUnion = _lldb.eTypeClassUnion 620 eTypeClassVector = _lldb.eTypeClassVector 621 eTypeClassOther = _lldb.eTypeClassOther 622 eTypeClassAny = _lldb.eTypeClassAny 623 eTemplateArgumentKindNull = _lldb.eTemplateArgumentKindNull 624 eTemplateArgumentKindType = _lldb.eTemplateArgumentKindType 625 eTemplateArgumentKindDeclaration = _lldb.eTemplateArgumentKindDeclaration 626 eTemplateArgumentKindIntegral = _lldb.eTemplateArgumentKindIntegral 627 eTemplateArgumentKindTemplate = _lldb.eTemplateArgumentKindTemplate 628 eTemplateArgumentKindTemplateExpansion = _lldb.eTemplateArgumentKindTemplateExpansion 629 eTemplateArgumentKindExpression = _lldb.eTemplateArgumentKindExpression 630 eTemplateArgumentKindPack = _lldb.eTemplateArgumentKindPack 631 eTypeOptionNone = _lldb.eTypeOptionNone 632 eTypeOptionCascade = _lldb.eTypeOptionCascade 633 eTypeOptionSkipPointers = _lldb.eTypeOptionSkipPointers 634 eTypeOptionSkipReferences = _lldb.eTypeOptionSkipReferences 635 eTypeOptionHideChildren = _lldb.eTypeOptionHideChildren 636 eTypeOptionHideValue = _lldb.eTypeOptionHideValue 637 eTypeOptionShowOneLiner = _lldb.eTypeOptionShowOneLiner 638 eTypeOptionHideNames = _lldb.eTypeOptionHideNames 639 eTypeOptionNonCacheable = _lldb.eTypeOptionNonCacheable 640 eTypeOptionHideEmptyAggregates = _lldb.eTypeOptionHideEmptyAggregates 641 eFrameCompareInvalid = _lldb.eFrameCompareInvalid 642 eFrameCompareUnknown = _lldb.eFrameCompareUnknown 643 eFrameCompareEqual = _lldb.eFrameCompareEqual 644 eFrameCompareSameParent = _lldb.eFrameCompareSameParent 645 eFrameCompareYounger = _lldb.eFrameCompareYounger 646 eFrameCompareOlder = _lldb.eFrameCompareOlder 647 eAddressClassInvalid = _lldb.eAddressClassInvalid 648 eAddressClassUnknown = _lldb.eAddressClassUnknown 649 eAddressClassCode = _lldb.eAddressClassCode 650 eAddressClassCodeAlternateISA = _lldb.eAddressClassCodeAlternateISA 651 eAddressClassData = _lldb.eAddressClassData 652 eAddressClassDebug = _lldb.eAddressClassDebug 653 eAddressClassRuntime = _lldb.eAddressClassRuntime 654 eFilePermissionsUserRead = _lldb.eFilePermissionsUserRead 655 eFilePermissionsUserWrite = _lldb.eFilePermissionsUserWrite 656 eFilePermissionsUserExecute = _lldb.eFilePermissionsUserExecute 657 eFilePermissionsGroupRead = _lldb.eFilePermissionsGroupRead 658 eFilePermissionsGroupWrite = _lldb.eFilePermissionsGroupWrite 659 eFilePermissionsGroupExecute = _lldb.eFilePermissionsGroupExecute 660 eFilePermissionsWorldRead = _lldb.eFilePermissionsWorldRead 661 eFilePermissionsWorldWrite = _lldb.eFilePermissionsWorldWrite 662 eFilePermissionsWorldExecute = _lldb.eFilePermissionsWorldExecute 663 eFilePermissionsUserRW = _lldb.eFilePermissionsUserRW 664 eFileFilePermissionsUserRX = _lldb.eFileFilePermissionsUserRX 665 eFilePermissionsUserRWX = _lldb.eFilePermissionsUserRWX 666 eFilePermissionsGroupRW = _lldb.eFilePermissionsGroupRW 667 eFilePermissionsGroupRX = _lldb.eFilePermissionsGroupRX 668 eFilePermissionsGroupRWX = _lldb.eFilePermissionsGroupRWX 669 eFilePermissionsWorldRW = _lldb.eFilePermissionsWorldRW 670 eFilePermissionsWorldRX = _lldb.eFilePermissionsWorldRX 671 eFilePermissionsWorldRWX = _lldb.eFilePermissionsWorldRWX 672 eFilePermissionsEveryoneR = _lldb.eFilePermissionsEveryoneR 673 eFilePermissionsEveryoneW = _lldb.eFilePermissionsEveryoneW 674 eFilePermissionsEveryoneX = _lldb.eFilePermissionsEveryoneX 675 eFilePermissionsEveryoneRW = _lldb.eFilePermissionsEveryoneRW 676 eFilePermissionsEveryoneRX = _lldb.eFilePermissionsEveryoneRX 677 eFilePermissionsEveryoneRWX = _lldb.eFilePermissionsEveryoneRWX 678 eFilePermissionsFileDefault = _lldb.eFilePermissionsFileDefault 679 eFilePermissionsDirectoryDefault = _lldb.eFilePermissionsDirectoryDefault 680 eQueueItemKindUnknown = _lldb.eQueueItemKindUnknown 681 eQueueItemKindFunction = _lldb.eQueueItemKindFunction 682 eQueueItemKindBlock = _lldb.eQueueItemKindBlock 683 eQueueKindUnknown = _lldb.eQueueKindUnknown 684 eQueueKindSerial = _lldb.eQueueKindSerial 685 eQueueKindConcurrent = _lldb.eQueueKindConcurrent 686 eExpressionEvaluationParse = _lldb.eExpressionEvaluationParse 687 eExpressionEvaluationIRGen = _lldb.eExpressionEvaluationIRGen 688 eExpressionEvaluationExecution = _lldb.eExpressionEvaluationExecution 689 eExpressionEvaluationComplete = _lldb.eExpressionEvaluationComplete 690 eWatchpointKindRead = _lldb.eWatchpointKindRead 691 eWatchpointKindWrite = _lldb.eWatchpointKindWrite 692 eGdbSignalBadAccess = _lldb.eGdbSignalBadAccess 693 eGdbSignalBadInstruction = _lldb.eGdbSignalBadInstruction 694 eGdbSignalArithmetic = _lldb.eGdbSignalArithmetic 695 eGdbSignalEmulation = _lldb.eGdbSignalEmulation 696 eGdbSignalSoftware = _lldb.eGdbSignalSoftware 697 eGdbSignalBreakpoint = _lldb.eGdbSignalBreakpoint 698 ePathTypeLLDBShlibDir = _lldb.ePathTypeLLDBShlibDir 699 ePathTypeSupportExecutableDir = _lldb.ePathTypeSupportExecutableDir 700 ePathTypeHeaderDir = _lldb.ePathTypeHeaderDir 701 ePathTypePythonDir = _lldb.ePathTypePythonDir 702 ePathTypeLLDBSystemPlugins = _lldb.ePathTypeLLDBSystemPlugins 703 ePathTypeLLDBUserPlugins = _lldb.ePathTypeLLDBUserPlugins 704 ePathTypeLLDBTempSystemDir = _lldb.ePathTypeLLDBTempSystemDir 705 ePathTypeGlobalLLDBTempSystemDir = _lldb.ePathTypeGlobalLLDBTempSystemDir 706 ePathTypeClangDir = _lldb.ePathTypeClangDir 707 eMemberFunctionKindUnknown = _lldb.eMemberFunctionKindUnknown 708 eMemberFunctionKindConstructor = _lldb.eMemberFunctionKindConstructor 709 eMemberFunctionKindDestructor = _lldb.eMemberFunctionKindDestructor 710 eMemberFunctionKindInstanceMethod = _lldb.eMemberFunctionKindInstanceMethod 711 eMemberFunctionKindStaticMethod = _lldb.eMemberFunctionKindStaticMethod 712 eMatchTypeNormal = _lldb.eMatchTypeNormal 713 eMatchTypeRegex = _lldb.eMatchTypeRegex 714 eMatchTypeStartsWith = _lldb.eMatchTypeStartsWith 715 eTypeHasChildren = _lldb.eTypeHasChildren 716 eTypeHasValue = _lldb.eTypeHasValue 717 eTypeIsArray = _lldb.eTypeIsArray 718 eTypeIsBlock = _lldb.eTypeIsBlock 719 eTypeIsBuiltIn = _lldb.eTypeIsBuiltIn 720 eTypeIsClass = _lldb.eTypeIsClass 721 eTypeIsCPlusPlus = _lldb.eTypeIsCPlusPlus 722 eTypeIsEnumeration = _lldb.eTypeIsEnumeration 723 eTypeIsFuncPrototype = _lldb.eTypeIsFuncPrototype 724 eTypeIsMember = _lldb.eTypeIsMember 725 eTypeIsObjC = _lldb.eTypeIsObjC 726 eTypeIsPointer = _lldb.eTypeIsPointer 727 eTypeIsReference = _lldb.eTypeIsReference 728 eTypeIsStructUnion = _lldb.eTypeIsStructUnion 729 eTypeIsTemplate = _lldb.eTypeIsTemplate 730 eTypeIsTypedef = _lldb.eTypeIsTypedef 731 eTypeIsVector = _lldb.eTypeIsVector 732 eTypeIsScalar = _lldb.eTypeIsScalar 733 eTypeIsInteger = _lldb.eTypeIsInteger 734 eTypeIsFloat = _lldb.eTypeIsFloat 735 eTypeIsComplex = _lldb.eTypeIsComplex 736 eTypeIsSigned = _lldb.eTypeIsSigned 737 eTypeInstanceIsPointer = _lldb.eTypeInstanceIsPointer 738 eCommandRequiresTarget = _lldb.eCommandRequiresTarget 739 eCommandRequiresProcess = _lldb.eCommandRequiresProcess 740 eCommandRequiresThread = _lldb.eCommandRequiresThread 741 eCommandRequiresFrame = _lldb.eCommandRequiresFrame 742 eCommandRequiresRegContext = _lldb.eCommandRequiresRegContext 743 eCommandTryTargetAPILock = _lldb.eCommandTryTargetAPILock 744 eCommandProcessMustBeLaunched = _lldb.eCommandProcessMustBeLaunched 745 eCommandProcessMustBePaused = _lldb.eCommandProcessMustBePaused 746 eTypeSummaryCapped = _lldb.eTypeSummaryCapped 747 eTypeSummaryUncapped = _lldb.eTypeSummaryUncapped
748 749 # ================================== 750 # Helper function for SBModule class 751 # ================================== 752 -def in_range(symbol, section):
753 """Test whether a symbol is within the range of a section.""" 754 symSA = symbol.GetStartAddress().GetFileAddress() 755 symEA = symbol.GetEndAddress().GetFileAddress() 756 secSA = section.GetFileAddress() 757 secEA = secSA + section.GetByteSize() 758 759 if symEA != LLDB_INVALID_ADDRESS: 760 if secSA <= symSA and symEA <= secEA: 761 return True 762 else: 763 return False 764 else: 765 if secSA <= symSA and symSA < secEA: 766 return True 767 else: 768 return False
769
770 771 # =================================== 772 # Iterator for lldb container objects 773 # =================================== 774 -def lldb_iter(obj, getsize, getelem):
775 """A generator adaptor to support iteration for lldb container objects.""" 776 size = getattr(obj, getsize) 777 elem = getattr(obj, getelem) 778 for i in range(size()): 779 yield elem(i)
780
781 # ============================================================================== 782 # The modify-python-lldb.py script is responsible for post-processing this SWIG- 783 # generated lldb.py module. It is responsible for adding the above lldb_iter() 784 # function definition as well as the supports, in the following, for iteration 785 # protocol: __iter__, rich comparison methods: __eq__ and __ne__, truth value 786 # testing (and built-in operation bool()): __nonzero__, and built-in function 787 # len(): __len__. 788 # ============================================================================== 789 790 -class SBAddress(_object):
791 """ 792 A section + offset based address class. 793 794 The SBAddress class allows addresses to be relative to a section 795 that can move during runtime due to images (executables, shared 796 libraries, bundles, frameworks) being loaded at different 797 addresses than the addresses found in the object file that 798 represents them on disk. There are currently two types of addresses 799 for a section: 800 o file addresses 801 o load addresses 802 803 File addresses represents the virtual addresses that are in the 'on 804 disk' object files. These virtual addresses are converted to be 805 relative to unique sections scoped to the object file so that 806 when/if the addresses slide when the images are loaded/unloaded 807 in memory, we can easily track these changes without having to 808 update every object (compile unit ranges, line tables, function 809 address ranges, lexical block and inlined subroutine address 810 ranges, global and static variables) each time an image is loaded or 811 unloaded. 812 813 Load addresses represents the virtual addresses where each section 814 ends up getting loaded at runtime. Before executing a program, it 815 is common for all of the load addresses to be unresolved. When a 816 DynamicLoader plug-in receives notification that shared libraries 817 have been loaded/unloaded, the load addresses of the main executable 818 and any images (shared libraries) will be resolved/unresolved. When 819 this happens, breakpoints that are in one of these sections can be 820 set/cleared. 821 822 See docstring of SBFunction for example usage of SBAddress. 823 """ 824 __swig_setmethods__ = {} 825 __setattr__ = lambda self, name, value: _swig_setattr(self, SBAddress, name, value) 826 __swig_getmethods__ = {} 827 __getattr__ = lambda self, name: _swig_getattr(self, SBAddress, name) 828 __repr__ = _swig_repr
829 - def __eq__(self, other): return isinstance(other, SBAddress) and self.GetFileAddress() == other.GetFileAddress() and self.GetModule() == other.GetModule()
830 - def __ne__(self, other): return not self.__eq__(other)
831 - def __init__(self, *args):
832 """ 833 __init__(lldb::SBAddress self) -> SBAddress 834 __init__(lldb::SBAddress self, SBAddress rhs) -> SBAddress 835 __init__(lldb::SBAddress self, SBSection section, lldb::addr_t offset) -> SBAddress 836 __init__(lldb::SBAddress self, lldb::addr_t load_addr, SBTarget target) -> SBAddress 837 838 Create an address by resolving a load address using the supplied target. 839 """ 840 this = _lldb.new_SBAddress(*args) 841 try: self.this.append(this) 842 except: self.this = this
843 __swig_destroy__ = _lldb.delete_SBAddress 844 __del__ = lambda self : None;
845 - def __nonzero__(self): return self.IsValid()
846 - def IsValid(self):
847 """IsValid(SBAddress self) -> bool""" 848 return _lldb.SBAddress_IsValid(self)
849
850 - def Clear(self):
851 """Clear(SBAddress self)""" 852 return _lldb.SBAddress_Clear(self)
853
854 - def GetFileAddress(self):
855 """GetFileAddress(SBAddress self) -> lldb::addr_t""" 856 return _lldb.SBAddress_GetFileAddress(self)
857
858 - def GetLoadAddress(self, *args):
859 """GetLoadAddress(SBAddress self, SBTarget target) -> lldb::addr_t""" 860 return _lldb.SBAddress_GetLoadAddress(self, *args)
861
862 - def SetLoadAddress(self, *args):
863 """SetLoadAddress(SBAddress self, lldb::addr_t load_addr, SBTarget target)""" 864 return _lldb.SBAddress_SetLoadAddress(self, *args)
865
866 - def OffsetAddress(self, *args):
867 """OffsetAddress(SBAddress self, lldb::addr_t offset) -> bool""" 868 return _lldb.SBAddress_OffsetAddress(self, *args)
869
870 - def GetDescription(self, *args):
871 """GetDescription(SBAddress self, SBStream description) -> bool""" 872 return _lldb.SBAddress_GetDescription(self, *args)
873
874 - def GetSection(self):
875 """GetSection(SBAddress self) -> SBSection""" 876 return _lldb.SBAddress_GetSection(self)
877
878 - def GetOffset(self):
879 """GetOffset(SBAddress self) -> lldb::addr_t""" 880 return _lldb.SBAddress_GetOffset(self)
881
882 - def SetAddress(self, *args):
883 """SetAddress(SBAddress self, SBSection section, lldb::addr_t offset)""" 884 return _lldb.SBAddress_SetAddress(self, *args)
885
886 - def GetAddressClass(self):
887 """GetAddressClass(SBAddress self) -> lldb::AddressClass""" 888 return _lldb.SBAddress_GetAddressClass(self)
889
890 - def GetSymbolContext(self, *args):
891 """ 892 GetSymbolContext(SBAddress self, uint32_t resolve_scope) -> SBSymbolContext 893 894 GetSymbolContext() and the following can lookup symbol information for a given address. 895 An address might refer to code or data from an existing module, or it 896 might refer to something on the stack or heap. The following functions 897 will only return valid values if the address has been resolved to a code 898 or data address using 'void SBAddress::SetLoadAddress(...)' or 899 'lldb::SBAddress SBTarget::ResolveLoadAddress (...)'. 900 """ 901 return _lldb.SBAddress_GetSymbolContext(self, *args)
902
903 - def GetModule(self):
904 """ 905 GetModule(SBAddress self) -> SBModule 906 907 GetModule() and the following grab individual objects for a given address and 908 are less efficient if you want more than one symbol related objects. 909 Use one of the following when you want multiple debug symbol related 910 objects for an address: 911 lldb::SBSymbolContext SBAddress::GetSymbolContext (uint32_t resolve_scope); 912 lldb::SBSymbolContext SBTarget::ResolveSymbolContextForAddress (const SBAddress &addr, uint32_t resolve_scope); 913 One or more bits from the SymbolContextItem enumerations can be logically 914 OR'ed together to more efficiently retrieve multiple symbol objects. 915 """ 916 return _lldb.SBAddress_GetModule(self)
917
918 - def GetCompileUnit(self):
919 """GetCompileUnit(SBAddress self) -> SBCompileUnit""" 920 return _lldb.SBAddress_GetCompileUnit(self)
921
922 - def GetFunction(self):
923 """GetFunction(SBAddress self) -> SBFunction""" 924 return _lldb.SBAddress_GetFunction(self)
925
926 - def GetBlock(self):
927 """GetBlock(SBAddress self) -> SBBlock""" 928 return _lldb.SBAddress_GetBlock(self)
929
930 - def GetSymbol(self):
931 """GetSymbol(SBAddress self) -> SBSymbol""" 932 return _lldb.SBAddress_GetSymbol(self)
933
934 - def GetLineEntry(self):
935 """GetLineEntry(SBAddress self) -> SBLineEntry""" 936 return _lldb.SBAddress_GetLineEntry(self)
937
938 - def __get_load_addr_property__ (self):
939 '''Get the load address for a lldb.SBAddress using the current target.''' 940 return self.GetLoadAddress (target)
941
942 - def __set_load_addr_property__ (self, load_addr):
943 '''Set the load address for a lldb.SBAddress using the current target.''' 944 return self.SetLoadAddress (load_addr, target)
945
946 - def __int__(self):
947 '''Convert an address to a load address if there is a process and that process is alive, or to a file address otherwise.''' 948 if process.is_alive: 949 return self.GetLoadAddress (target) 950 else: 951 return self.GetFileAddress ()
952
953 - def __oct__(self):
954 '''Convert the address to an octal string''' 955 return '%o' % int(self)
956
957 - def __hex__(self):
958 '''Convert the address to an hex string''' 959 return '0x%x' % int(self)
960 961 __swig_getmethods__["module"] = GetModule 962 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.''') 963 964 __swig_getmethods__["compile_unit"] = GetCompileUnit 965 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.''') 966 967 __swig_getmethods__["line_entry"] = GetLineEntry 968 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.''') 969 970 __swig_getmethods__["function"] = GetFunction 971 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.''') 972 973 __swig_getmethods__["block"] = GetBlock 974 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.''') 975 976 __swig_getmethods__["symbol"] = GetSymbol 977 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.''') 978 979 __swig_getmethods__["offset"] = GetOffset 980 if _newclass: offset = property(GetOffset, None, doc='''A read only property that returns the section offset in bytes as an integer.''') 981 982 __swig_getmethods__["section"] = GetSection 983 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.''') 984 985 __swig_getmethods__["file_addr"] = GetFileAddress 986 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.''') 987 988 __swig_getmethods__["load_addr"] = __get_load_addr_property__ 989 __swig_setmethods__["load_addr"] = __set_load_addr_property__ 990 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.''') 991 992
993 - def __str__(self):
994 """__str__(SBAddress self) -> PyObject *""" 995 return _lldb.SBAddress___str__(self)
996 997 SBAddress_swigregister = _lldb.SBAddress_swigregister 998 SBAddress_swigregister(SBAddress)
999 1000 -class SBAttachInfo(_object):
1001 """Proxy of C++ lldb::SBAttachInfo class""" 1002 __swig_setmethods__ = {} 1003 __setattr__ = lambda self, name, value: _swig_setattr(self, SBAttachInfo, name, value) 1004 __swig_getmethods__ = {} 1005 __getattr__ = lambda self, name: _swig_getattr(self, SBAttachInfo, name) 1006 __repr__ = _swig_repr
1007 - def __init__(self, *args):
1008 """ 1009 __init__(lldb::SBAttachInfo self) -> SBAttachInfo 1010 __init__(lldb::SBAttachInfo self, lldb::pid_t pid) -> SBAttachInfo 1011 __init__(lldb::SBAttachInfo self, str const * path, bool wait_for) -> SBAttachInfo 1012 __init__(lldb::SBAttachInfo self, str const * path, bool wait_for, bool async) -> SBAttachInfo 1013 __init__(lldb::SBAttachInfo self, SBAttachInfo rhs) -> SBAttachInfo 1014 """ 1015 this = _lldb.new_SBAttachInfo(*args) 1016 try: self.this.append(this) 1017 except: self.this = this
1018 - def GetProcessID(self):
1019 """GetProcessID(SBAttachInfo self) -> lldb::pid_t""" 1020 return _lldb.SBAttachInfo_GetProcessID(self)
1021
1022 - def SetProcessID(self, *args):
1023 """SetProcessID(SBAttachInfo self, lldb::pid_t pid)""" 1024 return _lldb.SBAttachInfo_SetProcessID(self, *args)
1025
1026 - def SetExecutable(self, *args):
1027 """ 1028 SetExecutable(SBAttachInfo self, str const * path) 1029 SetExecutable(SBAttachInfo self, SBFileSpec exe_file) 1030 """ 1031 return _lldb.SBAttachInfo_SetExecutable(self, *args)
1032
1033 - def GetWaitForLaunch(self):
1034 """GetWaitForLaunch(SBAttachInfo self) -> bool""" 1035 return _lldb.SBAttachInfo_GetWaitForLaunch(self)
1036
1037 - def SetWaitForLaunch(self, *args):
1038 """ 1039 SetWaitForLaunch(SBAttachInfo self, bool b) 1040 SetWaitForLaunch(SBAttachInfo self, bool b, bool async) 1041 """ 1042 return _lldb.SBAttachInfo_SetWaitForLaunch(self, *args)
1043
1044 - def GetIgnoreExisting(self):
1045 """GetIgnoreExisting(SBAttachInfo self) -> bool""" 1046 return _lldb.SBAttachInfo_GetIgnoreExisting(self)
1047
1048 - def SetIgnoreExisting(self, *args):
1049 """SetIgnoreExisting(SBAttachInfo self, bool b)""" 1050 return _lldb.SBAttachInfo_SetIgnoreExisting(self, *args)
1051
1052 - def GetResumeCount(self):
1053 """GetResumeCount(SBAttachInfo self) -> uint32_t""" 1054 return _lldb.SBAttachInfo_GetResumeCount(self)
1055
1056 - def SetResumeCount(self, *args):
1057 """SetResumeCount(SBAttachInfo self, uint32_t c)""" 1058 return _lldb.SBAttachInfo_SetResumeCount(self, *args)
1059
1060 - def GetProcessPluginName(self):
1061 """GetProcessPluginName(SBAttachInfo self) -> str const *""" 1062 return _lldb.SBAttachInfo_GetProcessPluginName(self)
1063
1064 - def SetProcessPluginName(self, *args):
1065 """SetProcessPluginName(SBAttachInfo self, str const * plugin_name)""" 1066 return _lldb.SBAttachInfo_SetProcessPluginName(self, *args)
1067
1068 - def GetUserID(self):
1069 """GetUserID(SBAttachInfo self) -> uint32_t""" 1070 return _lldb.SBAttachInfo_GetUserID(self)
1071
1072 - def GetGroupID(self):
1073 """GetGroupID(SBAttachInfo self) -> uint32_t""" 1074 return _lldb.SBAttachInfo_GetGroupID(self)
1075
1076 - def UserIDIsValid(self):
1077 """UserIDIsValid(SBAttachInfo self) -> bool""" 1078 return _lldb.SBAttachInfo_UserIDIsValid(self)
1079
1080 - def GroupIDIsValid(self):
1081 """GroupIDIsValid(SBAttachInfo self) -> bool""" 1082 return _lldb.SBAttachInfo_GroupIDIsValid(self)
1083
1084 - def SetUserID(self, *args):
1085 """SetUserID(SBAttachInfo self, uint32_t uid)""" 1086 return _lldb.SBAttachInfo_SetUserID(self, *args)
1087
1088 - def SetGroupID(self, *args):
1089 """SetGroupID(SBAttachInfo self, uint32_t gid)""" 1090 return _lldb.SBAttachInfo_SetGroupID(self, *args)
1091
1092 - def GetEffectiveUserID(self):
1093 """GetEffectiveUserID(SBAttachInfo self) -> uint32_t""" 1094 return _lldb.SBAttachInfo_GetEffectiveUserID(self)
1095
1096 - def GetEffectiveGroupID(self):
1097 """GetEffectiveGroupID(SBAttachInfo self) -> uint32_t""" 1098 return _lldb.SBAttachInfo_GetEffectiveGroupID(self)
1099
1100 - def EffectiveUserIDIsValid(self):
1101 """EffectiveUserIDIsValid(SBAttachInfo self) -> bool""" 1102 return _lldb.SBAttachInfo_EffectiveUserIDIsValid(self)
1103
1104 - def EffectiveGroupIDIsValid(self):
1105 """EffectiveGroupIDIsValid(SBAttachInfo self) -> bool""" 1106 return _lldb.SBAttachInfo_EffectiveGroupIDIsValid(self)
1107
1108 - def SetEffectiveUserID(self, *args):
1109 """SetEffectiveUserID(SBAttachInfo self, uint32_t uid)""" 1110 return _lldb.SBAttachInfo_SetEffectiveUserID(self, *args)
1111
1112 - def SetEffectiveGroupID(self, *args):
1113 """SetEffectiveGroupID(SBAttachInfo self, uint32_t gid)""" 1114 return _lldb.SBAttachInfo_SetEffectiveGroupID(self, *args)
1115
1116 - def GetParentProcessID(self):
1117 """GetParentProcessID(SBAttachInfo self) -> lldb::pid_t""" 1118 return _lldb.SBAttachInfo_GetParentProcessID(self)
1119
1120 - def SetParentProcessID(self, *args):
1121 """SetParentProcessID(SBAttachInfo self, lldb::pid_t pid)""" 1122 return _lldb.SBAttachInfo_SetParentProcessID(self, *args)
1123
1124 - def ParentProcessIDIsValid(self):
1125 """ParentProcessIDIsValid(SBAttachInfo self) -> bool""" 1126 return _lldb.SBAttachInfo_ParentProcessIDIsValid(self)
1127
1128 - def GetListener(self):
1129 """GetListener(SBAttachInfo self) -> SBListener""" 1130 return _lldb.SBAttachInfo_GetListener(self)
1131
1132 - def SetListener(self, *args):
1133 """SetListener(SBAttachInfo self, SBListener listener)""" 1134 return _lldb.SBAttachInfo_SetListener(self, *args)
1135 1136 __swig_destroy__ = _lldb.delete_SBAttachInfo 1137 __del__ = lambda self : None; 1138 SBAttachInfo_swigregister = _lldb.SBAttachInfo_swigregister 1139 SBAttachInfo_swigregister(SBAttachInfo)
1140 1141 -class SBBlock(_object):
1142 """Represents a lexical block. SBFunction contains SBBlock(s).""" 1143 __swig_setmethods__ = {} 1144 __setattr__ = lambda self, name, value: _swig_setattr(self, SBBlock, name, value) 1145 __swig_getmethods__ = {} 1146 __getattr__ = lambda self, name: _swig_getattr(self, SBBlock, name) 1147 __repr__ = _swig_repr
1148 - def __init__(self, *args):
1149 """ 1150 __init__(lldb::SBBlock self) -> SBBlock 1151 __init__(lldb::SBBlock self, SBBlock rhs) -> SBBlock 1152 """ 1153 this = _lldb.new_SBBlock(*args) 1154 try: self.this.append(this) 1155 except: self.this = this
1156 __swig_destroy__ = _lldb.delete_SBBlock 1157 __del__ = lambda self : None;
1158 - def IsInlined(self):
1159 """ 1160 IsInlined(SBBlock self) -> bool 1161 1162 Does this block represent an inlined function? 1163 """ 1164 return _lldb.SBBlock_IsInlined(self)
1165
1166 - def __nonzero__(self): return self.IsValid()
1167 - def IsValid(self):
1168 """IsValid(SBBlock self) -> bool""" 1169 return _lldb.SBBlock_IsValid(self)
1170
1171 - def GetInlinedName(self):
1172 """ 1173 GetInlinedName(SBBlock self) -> str const * 1174 1175 Get the function name if this block represents an inlined function; 1176 otherwise, return None. 1177 """ 1178 return _lldb.SBBlock_GetInlinedName(self)
1179
1180 - def GetInlinedCallSiteFile(self):
1181 """ 1182 GetInlinedCallSiteFile(SBBlock self) -> SBFileSpec 1183 1184 Get the call site file if this block represents an inlined function; 1185 otherwise, return an invalid file spec. 1186 """ 1187 return _lldb.SBBlock_GetInlinedCallSiteFile(self)
1188
1189 - def GetInlinedCallSiteLine(self):
1190 """ 1191 GetInlinedCallSiteLine(SBBlock self) -> uint32_t 1192 1193 Get the call site line if this block represents an inlined function; 1194 otherwise, return 0. 1195 """ 1196 return _lldb.SBBlock_GetInlinedCallSiteLine(self)
1197
1198 - def GetInlinedCallSiteColumn(self):
1199 """ 1200 GetInlinedCallSiteColumn(SBBlock self) -> uint32_t 1201 1202 Get the call site column if this block represents an inlined function; 1203 otherwise, return 0. 1204 """ 1205 return _lldb.SBBlock_GetInlinedCallSiteColumn(self)
1206
1207 - def GetParent(self):
1208 """ 1209 GetParent(SBBlock self) -> SBBlock 1210 1211 Get the parent block. 1212 """ 1213 return _lldb.SBBlock_GetParent(self)
1214
1215 - def GetContainingInlinedBlock(self):
1216 """ 1217 GetContainingInlinedBlock(SBBlock self) -> SBBlock 1218 1219 Get the inlined block that is or contains this block. 1220 """ 1221 return _lldb.SBBlock_GetContainingInlinedBlock(self)
1222
1223 - def GetSibling(self):
1224 """ 1225 GetSibling(SBBlock self) -> SBBlock 1226 1227 Get the sibling block for this block. 1228 """ 1229 return _lldb.SBBlock_GetSibling(self)
1230
1231 - def GetFirstChild(self):
1232 """ 1233 GetFirstChild(SBBlock self) -> SBBlock 1234 1235 Get the first child block. 1236 """ 1237 return _lldb.SBBlock_GetFirstChild(self)
1238
1239 - def GetNumRanges(self):
1240 """GetNumRanges(SBBlock self) -> uint32_t""" 1241 return _lldb.SBBlock_GetNumRanges(self)
1242
1243 - def GetRangeStartAddress(self, *args):
1244 """GetRangeStartAddress(SBBlock self, uint32_t idx) -> SBAddress""" 1245 return _lldb.SBBlock_GetRangeStartAddress(self, *args)
1246
1247 - def GetRangeEndAddress(self, *args):
1248 """GetRangeEndAddress(SBBlock self, uint32_t idx) -> SBAddress""" 1249 return _lldb.SBBlock_GetRangeEndAddress(self, *args)
1250
1251 - def GetRangeIndexForBlockAddress(self, *args):
1252 """GetRangeIndexForBlockAddress(SBBlock self, SBAddress block_addr) -> uint32_t""" 1253 return _lldb.SBBlock_GetRangeIndexForBlockAddress(self, *args)
1254
1255 - def GetDescription(self, *args):
1256 """GetDescription(SBBlock self, SBStream description) -> bool""" 1257 return _lldb.SBBlock_GetDescription(self, *args)
1258
1259 - def GetVariables(self, *args):
1260 """ 1261 GetVariables(SBBlock self, SBFrame frame, bool arguments, bool locals, bool statics, lldb::DynamicValueType use_dynamic) -> SBValueList 1262 GetVariables(SBBlock self, SBTarget target, bool arguments, bool locals, bool statics) -> SBValueList 1263 """ 1264 return _lldb.SBBlock_GetVariables(self, *args)
1265
1266 - def get_range_at_index(self, idx):
1267 if idx < self.GetNumRanges(): 1268 return [self.GetRangeStartAddress(idx), self.GetRangeEndAddress(idx)] 1269 return []
1270
1271 - class ranges_access(object):
1272 '''A helper object that will lazily hand out an array of lldb.SBAddress that represent address ranges for a block.'''
1273 - def __init__(self, sbblock):
1274 self.sbblock = sbblock
1275
1276 - def __len__(self):
1277 if self.sbblock: 1278 return int(self.sbblock.GetNumRanges()) 1279 return 0
1280
1281 - def __getitem__(self, key):
1282 count = len(self) 1283 if type(key) is int: 1284 return self.sbblock.get_range_at_index (key); 1285 if isinstance(key, SBAddress): 1286 range_idx = self.sbblock.GetRangeIndexForBlockAddress(key); 1287 if range_idx < len(self): 1288 return [self.sbblock.GetRangeStartAddress(range_idx), self.sbblock.GetRangeEndAddress(range_idx)] 1289 else: 1290 print("error: unsupported item type: %s" % type(key)) 1291 return None
1292
1293 - def get_ranges_access_object(self):
1294 '''An accessor function that returns a ranges_access() object which allows lazy block address ranges access.''' 1295 return self.ranges_access (self)
1296
1297 - def get_ranges_array(self):
1298 '''An accessor function that returns an array object that contains all ranges in this block object.''' 1299 if not hasattr(self, 'ranges_array'): 1300 self.ranges_array = [] 1301 for idx in range(self.num_ranges): 1302 self.ranges_array.append ([self.GetRangeStartAddress(idx), self.GetRangeEndAddress(idx)]) 1303 return self.ranges_array
1304
1305 - def get_call_site(self):
1306 return declaration(self.GetInlinedCallSiteFile(), self.GetInlinedCallSiteLine(), self.GetInlinedCallSiteColumn())
1307 1308 __swig_getmethods__["parent"] = GetParent 1309 if _newclass: parent = property(GetParent, None, doc='''A read only property that returns the same result as GetParent().''') 1310 1311 __swig_getmethods__["first_child"] = GetFirstChild 1312 if _newclass: first_child = property(GetFirstChild, None, doc='''A read only property that returns the same result as GetFirstChild().''') 1313 1314 __swig_getmethods__["call_site"] = get_call_site 1315 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.''') 1316 1317 __swig_getmethods__["sibling"] = GetSibling 1318 if _newclass: sibling = property(GetSibling, None, doc='''A read only property that returns the same result as GetSibling().''') 1319 1320 __swig_getmethods__["name"] = GetInlinedName 1321 if _newclass: name = property(GetInlinedName, None, doc='''A read only property that returns the same result as GetInlinedName().''') 1322 1323 __swig_getmethods__["inlined_block"] = GetContainingInlinedBlock 1324 if _newclass: inlined_block = property(GetContainingInlinedBlock, None, doc='''A read only property that returns the same result as GetContainingInlinedBlock().''') 1325 1326 __swig_getmethods__["range"] = get_ranges_access_object 1327 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]").''') 1328 1329 __swig_getmethods__["ranges"] = get_ranges_array 1330 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.''') 1331 1332 __swig_getmethods__["num_ranges"] = GetNumRanges 1333 if _newclass: num_ranges = property(GetNumRanges, None, doc='''A read only property that returns the same result as GetNumRanges().''') 1334
1335 - def __str__(self):
1336 """__str__(SBBlock self) -> PyObject *""" 1337 return _lldb.SBBlock___str__(self)
1338 1339 SBBlock_swigregister = _lldb.SBBlock_swigregister 1340 SBBlock_swigregister(SBBlock)
1341 1342 -class SBBreakpoint(_object):
1343 """ 1344 Represents a logical breakpoint and its associated settings. 1345 1346 For example (from test/functionalities/breakpoint/breakpoint_ignore_count/ 1347 TestBreakpointIgnoreCount.py), 1348 1349 def breakpoint_ignore_count_python(self): 1350 '''Use Python APIs to set breakpoint ignore count.''' 1351 exe = os.path.join(os.getcwd(), 'a.out') 1352 1353 # Create a target by the debugger. 1354 target = self.dbg.CreateTarget(exe) 1355 self.assertTrue(target, VALID_TARGET) 1356 1357 # Now create a breakpoint on main.c by name 'c'. 1358 breakpoint = target.BreakpointCreateByName('c', 'a.out') 1359 self.assertTrue(breakpoint and 1360 breakpoint.GetNumLocations() == 1, 1361 VALID_BREAKPOINT) 1362 1363 # Get the breakpoint location from breakpoint after we verified that, 1364 # indeed, it has one location. 1365 location = breakpoint.GetLocationAtIndex(0) 1366 self.assertTrue(location and 1367 location.IsEnabled(), 1368 VALID_BREAKPOINT_LOCATION) 1369 1370 # Set the ignore count on the breakpoint location. 1371 location.SetIgnoreCount(2) 1372 self.assertTrue(location.GetIgnoreCount() == 2, 1373 'SetIgnoreCount() works correctly') 1374 1375 # Now launch the process, and do not stop at entry point. 1376 process = target.LaunchSimple(None, None, os.getcwd()) 1377 self.assertTrue(process, PROCESS_IS_VALID) 1378 1379 # Frame#0 should be on main.c:37, frame#1 should be on main.c:25, and 1380 # frame#2 should be on main.c:48. 1381 #lldbutil.print_stacktraces(process) 1382 from lldbutil import get_stopped_thread 1383 thread = get_stopped_thread(process, lldb.eStopReasonBreakpoint) 1384 self.assertTrue(thread != None, 'There should be a thread stopped due to breakpoint') 1385 frame0 = thread.GetFrameAtIndex(0) 1386 frame1 = thread.GetFrameAtIndex(1) 1387 frame2 = thread.GetFrameAtIndex(2) 1388 self.assertTrue(frame0.GetLineEntry().GetLine() == self.line1 and 1389 frame1.GetLineEntry().GetLine() == self.line3 and 1390 frame2.GetLineEntry().GetLine() == self.line4, 1391 STOPPED_DUE_TO_BREAKPOINT_IGNORE_COUNT) 1392 1393 # The hit count for the breakpoint should be 3. 1394 self.assertTrue(breakpoint.GetHitCount() == 3) 1395 1396 process.Continue() 1397 1398 SBBreakpoint supports breakpoint location iteration, for example, 1399 1400 for bl in breakpoint: 1401 print('breakpoint location load addr: %s' % hex(bl.GetLoadAddress())) 1402 print('breakpoint location condition: %s' % hex(bl.GetCondition())) 1403 1404 and rich comparion methods which allow the API program to use, 1405 1406 if aBreakpoint == bBreakpoint: 1407 ... 1408 1409 to compare two breakpoints for equality. 1410 """ 1411 __swig_setmethods__ = {} 1412 __setattr__ = lambda self, name, value: _swig_setattr(self, SBBreakpoint, name, value) 1413 __swig_getmethods__ = {} 1414 __getattr__ = lambda self, name: _swig_getattr(self, SBBreakpoint, name) 1415 __repr__ = _swig_repr
1416 - def __iter__(self): return lldb_iter(self, 'GetNumLocations', 'GetLocationAtIndex')
1417 - def __len__(self): return self.GetNumLocations()
1418 - def __eq__(self, other): return isinstance(other, SBBreakpoint) and self.GetID() == other.GetID()
1419 - def __ne__(self, other): return not self.__eq__(other)
1420 - def __init__(self, *args):
1421 """ 1422 __init__(lldb::SBBreakpoint self) -> SBBreakpoint 1423 __init__(lldb::SBBreakpoint self, SBBreakpoint rhs) -> SBBreakpoint 1424 """ 1425 this = _lldb.new_SBBreakpoint(*args) 1426 try: self.this.append(this) 1427 except: self.this = this
1428 __swig_destroy__ = _lldb.delete_SBBreakpoint 1429 __del__ = lambda self : None;
1430 - def GetID(self):
1431 """GetID(SBBreakpoint self) -> lldb::break_id_t""" 1432 return _lldb.SBBreakpoint_GetID(self)
1433
1434 - def __nonzero__(self): return self.IsValid()
1435 - def IsValid(self):
1436 """IsValid(SBBreakpoint self) -> bool""" 1437 return _lldb.SBBreakpoint_IsValid(self)
1438
1439 - def ClearAllBreakpointSites(self):
1440 """ClearAllBreakpointSites(SBBreakpoint self)""" 1441 return _lldb.SBBreakpoint_ClearAllBreakpointSites(self)
1442
1443 - def FindLocationByAddress(self, *args):
1444 """FindLocationByAddress(SBBreakpoint self, lldb::addr_t vm_addr) -> SBBreakpointLocation""" 1445 return _lldb.SBBreakpoint_FindLocationByAddress(self, *args)
1446
1447 - def FindLocationIDByAddress(self, *args):
1448 """FindLocationIDByAddress(SBBreakpoint self, lldb::addr_t vm_addr) -> lldb::break_id_t""" 1449 return _lldb.SBBreakpoint_FindLocationIDByAddress(self, *args)
1450
1451 - def FindLocationByID(self, *args):
1452 """FindLocationByID(SBBreakpoint self, lldb::break_id_t bp_loc_id) -> SBBreakpointLocation""" 1453 return _lldb.SBBreakpoint_FindLocationByID(self, *args)
1454
1455 - def GetLocationAtIndex(self, *args):
1456 """GetLocationAtIndex(SBBreakpoint self, uint32_t index) -> SBBreakpointLocation""" 1457 return _lldb.SBBreakpoint_GetLocationAtIndex(self, *args)
1458
1459 - def SetEnabled(self, *args):
1460 """SetEnabled(SBBreakpoint self, bool enable)""" 1461 return _lldb.SBBreakpoint_SetEnabled(self, *args)
1462
1463 - def IsEnabled(self):
1464 """IsEnabled(SBBreakpoint self) -> bool""" 1465 return _lldb.SBBreakpoint_IsEnabled(self)
1466
1467 - def SetOneShot(self, *args):
1468 """SetOneShot(SBBreakpoint self, bool one_shot)""" 1469 return _lldb.SBBreakpoint_SetOneShot(self, *args)
1470
1471 - def IsOneShot(self):
1472 """IsOneShot(SBBreakpoint self) -> bool""" 1473 return _lldb.SBBreakpoint_IsOneShot(self)
1474
1475 - def IsInternal(self):
1476 """IsInternal(SBBreakpoint self) -> bool""" 1477 return _lldb.SBBreakpoint_IsInternal(self)
1478
1479 - def GetHitCount(self):
1480 """GetHitCount(SBBreakpoint self) -> uint32_t""" 1481 return _lldb.SBBreakpoint_GetHitCount(self)
1482
1483 - def SetIgnoreCount(self, *args):
1484 """SetIgnoreCount(SBBreakpoint self, uint32_t count)""" 1485 return _lldb.SBBreakpoint_SetIgnoreCount(self, *args)
1486
1487 - def GetIgnoreCount(self):
1488 """GetIgnoreCount(SBBreakpoint self) -> uint32_t""" 1489 return _lldb.SBBreakpoint_GetIgnoreCount(self)
1490
1491 - def SetCondition(self, *args):
1492 """ 1493 SetCondition(SBBreakpoint self, str const * condition) 1494 1495 The breakpoint stops only if the condition expression evaluates to true. 1496 """ 1497 return _lldb.SBBreakpoint_SetCondition(self, *args)
1498
1499 - def GetCondition(self):
1500 """ 1501 GetCondition(SBBreakpoint self) -> str const * 1502 1503 Get the condition expression for the breakpoint. 1504 """ 1505 return _lldb.SBBreakpoint_GetCondition(self)
1506
1507 - def SetThreadID(self, *args):
1508 """SetThreadID(SBBreakpoint self, lldb::tid_t sb_thread_id)""" 1509 return _lldb.SBBreakpoint_SetThreadID(self, *args)
1510
1511 - def GetThreadID(self):
1512 """GetThreadID(SBBreakpoint self) -> lldb::tid_t""" 1513 return _lldb.SBBreakpoint_GetThreadID(self)
1514
1515 - def SetThreadIndex(self, *args):
1516 """SetThreadIndex(SBBreakpoint self, uint32_t index)""" 1517 return _lldb.SBBreakpoint_SetThreadIndex(self, *args)
1518
1519 - def GetThreadIndex(self):
1520 """GetThreadIndex(SBBreakpoint self) -> uint32_t""" 1521 return _lldb.SBBreakpoint_GetThreadIndex(self)
1522
1523 - def SetThreadName(self, *args):
1524 """SetThreadName(SBBreakpoint self, str const * thread_name)""" 1525 return _lldb.SBBreakpoint_SetThreadName(self, *args)
1526
1527 - def GetThreadName(self):
1528 """GetThreadName(SBBreakpoint self) -> str const *""" 1529 return _lldb.SBBreakpoint_GetThreadName(self)
1530
1531 - def SetQueueName(self, *args):
1532 """SetQueueName(SBBreakpoint self, str const * queue_name)""" 1533 return _lldb.SBBreakpoint_SetQueueName(self, *args)
1534
1535 - def GetQueueName(self):
1536 """GetQueueName(SBBreakpoint self) -> str const *""" 1537 return _lldb.SBBreakpoint_GetQueueName(self)
1538
1539 - def SetScriptCallbackFunction(self, *args):
1540 """ 1541 SetScriptCallbackFunction(SBBreakpoint self, str const * callback_function_name) 1542 1543 Set the name of the script function to be called when the breakpoint is hit. 1544 """ 1545 return _lldb.SBBreakpoint_SetScriptCallbackFunction(self, *args)
1546
1547 - def SetScriptCallbackBody(self, *args):
1548 """ 1549 SetScriptCallbackBody(SBBreakpoint self, str const * script_body_text) -> SBError 1550 1551 Provide the body for the script function to be called when the breakpoint is hit. 1552 The body will be wrapped in a function, which be passed two arguments: 1553 'frame' - which holds the bottom-most SBFrame of the thread that hit the breakpoint 1554 'bpno' - which is the SBBreakpointLocation to which the callback was attached. 1555 1556 The error parameter is currently ignored, but will at some point hold the Python 1557 compilation diagnostics. 1558 Returns true if the body compiles successfully, false if not. 1559 """ 1560 return _lldb.SBBreakpoint_SetScriptCallbackBody(self, *args)
1561
1562 - def SetCommandLineCommands(self, *args):
1563 """SetCommandLineCommands(SBBreakpoint self, SBStringList commands)""" 1564 return _lldb.SBBreakpoint_SetCommandLineCommands(self, *args)
1565
1566 - def GetCommandLineCommands(self, *args):
1567 """GetCommandLineCommands(SBBreakpoint self, SBStringList commands) -> bool""" 1568 return _lldb.SBBreakpoint_GetCommandLineCommands(self, *args)
1569
1570 - def AddName(self, *args):
1571 """AddName(SBBreakpoint self, str const * new_name) -> bool""" 1572 return _lldb.SBBreakpoint_AddName(self, *args)
1573
1574 - def RemoveName(self, *args):
1575 """RemoveName(SBBreakpoint self, str const * name_to_remove)""" 1576 return _lldb.SBBreakpoint_RemoveName(self, *args)
1577
1578 - def MatchesName(self, *args):
1579 """MatchesName(SBBreakpoint self, str const * name) -> bool""" 1580 return _lldb.SBBreakpoint_MatchesName(self, *args)
1581
1582 - def GetNames(self, *args):
1583 """GetNames(SBBreakpoint self, SBStringList names)""" 1584 return _lldb.SBBreakpoint_GetNames(self, *args)
1585
1586 - def GetNumResolvedLocations(self):
1587 """GetNumResolvedLocations(SBBreakpoint self) -> size_t""" 1588 return _lldb.SBBreakpoint_GetNumResolvedLocations(self)
1589
1590 - def GetNumLocations(self):
1591 """GetNumLocations(SBBreakpoint self) -> size_t""" 1592 return _lldb.SBBreakpoint_GetNumLocations(self)
1593
1594 - def GetDescription(self, *args):
1595 """ 1596 GetDescription(SBBreakpoint self, SBStream description) -> bool 1597 GetDescription(SBBreakpoint self, SBStream description, bool include_locations) -> bool 1598 """ 1599 return _lldb.SBBreakpoint_GetDescription(self, *args)
1600
1601 - def __eq__(self, *args):
1602 """__eq__(SBBreakpoint self, SBBreakpoint rhs) -> bool""" 1603 return _lldb.SBBreakpoint___eq__(self, *args)
1604
1605 - def __ne__(self, *args):
1606 """__ne__(SBBreakpoint self, SBBreakpoint rhs) -> bool""" 1607 return _lldb.SBBreakpoint___ne__(self, *args)
1608
1609 - def EventIsBreakpointEvent(*args):
1610 """EventIsBreakpointEvent(SBEvent event) -> bool""" 1611 return _lldb.SBBreakpoint_EventIsBreakpointEvent(*args)
1612 1613 if _newclass:EventIsBreakpointEvent = staticmethod(EventIsBreakpointEvent) 1614 __swig_getmethods__["EventIsBreakpointEvent"] = lambda x: EventIsBreakpointEvent
1615 - def GetBreakpointEventTypeFromEvent(*args):
1616 """GetBreakpointEventTypeFromEvent(SBEvent event) -> lldb::BreakpointEventType""" 1617 return _lldb.SBBreakpoint_GetBreakpointEventTypeFromEvent(*args)
1618 1619 if _newclass:GetBreakpointEventTypeFromEvent = staticmethod(GetBreakpointEventTypeFromEvent) 1620 __swig_getmethods__["GetBreakpointEventTypeFromEvent"] = lambda x: GetBreakpointEventTypeFromEvent
1621 - def GetBreakpointFromEvent(*args):
1622 """GetBreakpointFromEvent(SBEvent event) -> SBBreakpoint""" 1623 return _lldb.SBBreakpoint_GetBreakpointFromEvent(*args)
1624 1625 if _newclass:GetBreakpointFromEvent = staticmethod(GetBreakpointFromEvent) 1626 __swig_getmethods__["GetBreakpointFromEvent"] = lambda x: GetBreakpointFromEvent
1627 - def GetBreakpointLocationAtIndexFromEvent(*args):
1628 """GetBreakpointLocationAtIndexFromEvent(SBEvent event, uint32_t loc_idx) -> SBBreakpointLocation""" 1629 return _lldb.SBBreakpoint_GetBreakpointLocationAtIndexFromEvent(*args)
1630 1631 if _newclass:GetBreakpointLocationAtIndexFromEvent = staticmethod(GetBreakpointLocationAtIndexFromEvent) 1632 __swig_getmethods__["GetBreakpointLocationAtIndexFromEvent"] = lambda x: GetBreakpointLocationAtIndexFromEvent
1633 - def GetNumBreakpointLocationsFromEvent(*args):
1634 """GetNumBreakpointLocationsFromEvent(SBEvent event_sp) -> uint32_t""" 1635 return _lldb.SBBreakpoint_GetNumBreakpointLocationsFromEvent(*args)
1636 1637 if _newclass:GetNumBreakpointLocationsFromEvent = staticmethod(GetNumBreakpointLocationsFromEvent) 1638 __swig_getmethods__["GetNumBreakpointLocationsFromEvent"] = lambda x: GetNumBreakpointLocationsFromEvent 1639 __swig_getmethods__["id"] = GetID 1640 if _newclass: id = property(GetID, None, doc='''A read only property that returns the ID of this breakpoint.''') 1641 1642 __swig_getmethods__["enabled"] = IsEnabled 1643 __swig_setmethods__["enabled"] = SetEnabled 1644 if _newclass: enabled = property(IsEnabled, SetEnabled, doc='''A read/write property that configures whether this breakpoint is enabled or not.''') 1645 1646 __swig_getmethods__["one_shot"] = IsOneShot 1647 __swig_setmethods__["one_shot"] = SetOneShot 1648 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.''') 1649 1650 __swig_getmethods__["num_locations"] = GetNumLocations 1651 if _newclass: num_locations = property(GetNumLocations, None, doc='''A read only property that returns the count of locations of this breakpoint.''') 1652 1653
1654 - def __str__(self):
1655 """__str__(SBBreakpoint self) -> PyObject *""" 1656 return _lldb.SBBreakpoint___str__(self)
1657
1658 - def __eq__(self, rhs):
1659 if not isinstance(rhs, type(self)): 1660 return False 1661 1662 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
1663
1664 - def __ne__(self, rhs):
1665 if not isinstance(rhs, type(self)): 1666 return True 1667 1668 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
1669 1670 SBBreakpoint_swigregister = _lldb.SBBreakpoint_swigregister 1671 SBBreakpoint_swigregister(SBBreakpoint)
1672 1673 -def SBBreakpoint_EventIsBreakpointEvent(*args):
1674 """SBBreakpoint_EventIsBreakpointEvent(SBEvent event) -> bool""" 1675 return _lldb.SBBreakpoint_EventIsBreakpointEvent(*args)
1676
1677 -def SBBreakpoint_GetBreakpointEventTypeFromEvent(*args):
1678 """SBBreakpoint_GetBreakpointEventTypeFromEvent(SBEvent event) -> lldb::BreakpointEventType""" 1679 return _lldb.SBBreakpoint_GetBreakpointEventTypeFromEvent(*args)
1680
1681 -def SBBreakpoint_GetBreakpointFromEvent(*args):
1682 """SBBreakpoint_GetBreakpointFromEvent(SBEvent event) -> SBBreakpoint""" 1683 return _lldb.SBBreakpoint_GetBreakpointFromEvent(*args)
1684
1685 -def SBBreakpoint_GetBreakpointLocationAtIndexFromEvent(*args):
1686 """SBBreakpoint_GetBreakpointLocationAtIndexFromEvent(SBEvent event, uint32_t loc_idx) -> SBBreakpointLocation""" 1687 return _lldb.SBBreakpoint_GetBreakpointLocationAtIndexFromEvent(*args)
1688
1689 -def SBBreakpoint_GetNumBreakpointLocationsFromEvent(*args):
1690 """SBBreakpoint_GetNumBreakpointLocationsFromEvent(SBEvent event_sp) -> uint32_t""" 1691 return _lldb.SBBreakpoint_GetNumBreakpointLocationsFromEvent(*args)
1692
1693 -class SBBreakpointList(_object):
1694 """Proxy of C++ lldb::SBBreakpointList class""" 1695 __swig_setmethods__ = {} 1696 __setattr__ = lambda self, name, value: _swig_setattr(self, SBBreakpointList, name, value) 1697 __swig_getmethods__ = {} 1698 __getattr__ = lambda self, name: _swig_getattr(self, SBBreakpointList, name) 1699 __repr__ = _swig_repr
1700 - def __init__(self, *args):
1701 """__init__(lldb::SBBreakpointList self, SBTarget target) -> SBBreakpointList""" 1702 this = _lldb.new_SBBreakpointList(*args) 1703 try: self.this.append(this) 1704 except: self.this = this
1705 __swig_destroy__ = _lldb.delete_SBBreakpointList 1706 __del__ = lambda self : None;
1707 - def GetSize(self):
1708 """GetSize(SBBreakpointList self) -> size_t""" 1709 return _lldb.SBBreakpointList_GetSize(self)
1710
1711 - def GetBreakpointAtIndex(self, *args):
1712 """GetBreakpointAtIndex(SBBreakpointList self, size_t idx) -> SBBreakpoint""" 1713 return _lldb.SBBreakpointList_GetBreakpointAtIndex(self, *args)
1714
1715 - def FindBreakpointByID(self, *args):
1716 """FindBreakpointByID(SBBreakpointList self, lldb::break_id_t arg2) -> SBBreakpoint""" 1717 return _lldb.SBBreakpointList_FindBreakpointByID(self, *args)
1718
1719 - def Append(self, *args):
1720 """Append(SBBreakpointList self, SBBreakpoint sb_bkpt)""" 1721 return _lldb.SBBreakpointList_Append(self, *args)
1722
1723 - def AppendIfUnique(self, *args):
1724 """AppendIfUnique(SBBreakpointList self, SBBreakpoint sb_bkpt) -> bool""" 1725 return _lldb.SBBreakpointList_AppendIfUnique(self, *args)
1726
1727 - def AppendByID(self, *args):
1728 """AppendByID(SBBreakpointList self, lldb::break_id_t id)""" 1729 return _lldb.SBBreakpointList_AppendByID(self, *args)
1730
1731 - def Clear(self):
1732 """Clear(SBBreakpointList self)""" 1733 return _lldb.SBBreakpointList_Clear(self)
1734 1735 SBBreakpointList_swigregister = _lldb.SBBreakpointList_swigregister 1736 SBBreakpointList_swigregister(SBBreakpointList)
1737 1738 -class SBBreakpointLocation(_object):
1739 """ 1740 Represents one unique instance (by address) of a logical breakpoint. 1741 1742 A breakpoint location is defined by the breakpoint that produces it, 1743 and the address that resulted in this particular instantiation. 1744 Each breakpoint location has its settable options. 1745 1746 SBBreakpoint contains SBBreakpointLocation(s). See docstring of SBBreakpoint 1747 for retrieval of an SBBreakpointLocation from an SBBreakpoint. 1748 """ 1749 __swig_setmethods__ = {} 1750 __setattr__ = lambda self, name, value: _swig_setattr(self, SBBreakpointLocation, name, value) 1751 __swig_getmethods__ = {} 1752 __getattr__ = lambda self, name: _swig_getattr(self, SBBreakpointLocation, name) 1753 __repr__ = _swig_repr
1754 - def __init__(self, *args):
1755 """ 1756 __init__(lldb::SBBreakpointLocation self) -> SBBreakpointLocation 1757 __init__(lldb::SBBreakpointLocation self, SBBreakpointLocation rhs) -> SBBreakpointLocation 1758 """ 1759 this = _lldb.new_SBBreakpointLocation(*args) 1760 try: self.this.append(this) 1761 except: self.this = this
1762 __swig_destroy__ = _lldb.delete_SBBreakpointLocation 1763 __del__ = lambda self : None;
1764 - def GetID(self):
1765 """GetID(SBBreakpointLocation self) -> lldb::break_id_t""" 1766 return _lldb.SBBreakpointLocation_GetID(self)
1767
1768 - def __nonzero__(self): return self.IsValid()
1769 - def IsValid(self):
1770 """IsValid(SBBreakpointLocation self) -> bool""" 1771 return _lldb.SBBreakpointLocation_IsValid(self)
1772
1773 - def GetAddress(self):
1774 """GetAddress(SBBreakpointLocation self) -> SBAddress""" 1775 return _lldb.SBBreakpointLocation_GetAddress(self)
1776
1777 - def GetLoadAddress(self):
1778 """GetLoadAddress(SBBreakpointLocation self) -> lldb::addr_t""" 1779 return _lldb.SBBreakpointLocation_GetLoadAddress(self)
1780
1781 - def SetEnabled(self, *args):
1782 """SetEnabled(SBBreakpointLocation self, bool enabled)""" 1783 return _lldb.SBBreakpointLocation_SetEnabled(self, *args)
1784
1785 - def IsEnabled(self):
1786 """IsEnabled(SBBreakpointLocation self) -> bool""" 1787 return _lldb.SBBreakpointLocation_IsEnabled(self)
1788
1789 - def GetIgnoreCount(self):
1790 """GetIgnoreCount(SBBreakpointLocation self) -> uint32_t""" 1791 return _lldb.SBBreakpointLocation_GetIgnoreCount(self)
1792
1793 - def SetIgnoreCount(self, *args):
1794 """SetIgnoreCount(SBBreakpointLocation self, uint32_t n)""" 1795 return _lldb.SBBreakpointLocation_SetIgnoreCount(self, *args)
1796
1797 - def SetCondition(self, *args):
1798 """ 1799 SetCondition(SBBreakpointLocation self, str const * condition) 1800 1801 The breakpoint location stops only if the condition expression evaluates 1802 to true. 1803 """ 1804 return _lldb.SBBreakpointLocation_SetCondition(self, *args)
1805
1806 - def GetCondition(self):
1807 """ 1808 GetCondition(SBBreakpointLocation self) -> str const * 1809 1810 Get the condition expression for the breakpoint location. 1811 """ 1812 return _lldb.SBBreakpointLocation_GetCondition(self)
1813
1814 - def SetScriptCallbackFunction(self, *args):
1815 """ 1816 SetScriptCallbackFunction(SBBreakpointLocation self, str const * callback_function_name) 1817 1818 Set the callback to the given Python function name. 1819 """ 1820 return _lldb.SBBreakpointLocation_SetScriptCallbackFunction(self, *args)
1821
1822 - def SetScriptCallbackBody(self, *args):
1823 """ 1824 SetScriptCallbackBody(SBBreakpointLocation self, str const * script_body_text) -> SBError 1825 1826 Provide the body for the script function to be called when the breakpoint location is hit. 1827 The body will be wrapped in a function, which be passed two arguments: 1828 'frame' - which holds the bottom-most SBFrame of the thread that hit the breakpoint 1829 'bpno' - which is the SBBreakpointLocation to which the callback was attached. 1830 1831 The error parameter is currently ignored, but will at some point hold the Python 1832 compilation diagnostics. 1833 Returns true if the body compiles successfully, false if not. 1834 """ 1835 return _lldb.SBBreakpointLocation_SetScriptCallbackBody(self, *args)
1836
1837 - def SetThreadID(self, *args):
1838 """SetThreadID(SBBreakpointLocation self, lldb::tid_t sb_thread_id)""" 1839 return _lldb.SBBreakpointLocation_SetThreadID(self, *args)
1840
1841 - def GetThreadID(self):
1842 """GetThreadID(SBBreakpointLocation self) -> lldb::tid_t""" 1843 return _lldb.SBBreakpointLocation_GetThreadID(self)
1844
1845 - def SetThreadIndex(self, *args):
1846 """SetThreadIndex(SBBreakpointLocation self, uint32_t index)""" 1847 return _lldb.SBBreakpointLocation_SetThreadIndex(self, *args)
1848
1849 - def GetThreadIndex(self):
1850 """GetThreadIndex(SBBreakpointLocation self) -> uint32_t""" 1851 return _lldb.SBBreakpointLocation_GetThreadIndex(self)
1852
1853 - def SetThreadName(self, *args):
1854 """SetThreadName(SBBreakpointLocation self, str const * thread_name)""" 1855 return _lldb.SBBreakpointLocation_SetThreadName(self, *args)
1856
1857 - def GetThreadName(self):
1858 """GetThreadName(SBBreakpointLocation self) -> str const *""" 1859 return _lldb.SBBreakpointLocation_GetThreadName(self)
1860
1861 - def SetQueueName(self, *args):
1862 """SetQueueName(SBBreakpointLocation self, str const * queue_name)""" 1863 return _lldb.SBBreakpointLocation_SetQueueName(self, *args)
1864
1865 - def GetQueueName(self):
1866 """GetQueueName(SBBreakpointLocation self) -> str const *""" 1867 return _lldb.SBBreakpointLocation_GetQueueName(self)
1868
1869 - def IsResolved(self):
1870 """IsResolved(SBBreakpointLocation self) -> bool""" 1871 return _lldb.SBBreakpointLocation_IsResolved(self)
1872
1873 - def GetDescription(self, *args):
1874 """GetDescription(SBBreakpointLocation self, SBStream description, lldb::DescriptionLevel level) -> bool""" 1875 return _lldb.SBBreakpointLocation_GetDescription(self, *args)
1876
1877 - def GetBreakpoint(self):
1878 """GetBreakpoint(SBBreakpointLocation self) -> SBBreakpoint""" 1879 return _lldb.SBBreakpointLocation_GetBreakpoint(self)
1880
1881 - def __str__(self):
1882 """__str__(SBBreakpointLocation self) -> PyObject *""" 1883 return _lldb.SBBreakpointLocation___str__(self)
1884 1885 SBBreakpointLocation_swigregister = _lldb.SBBreakpointLocation_swigregister 1886 SBBreakpointLocation_swigregister(SBBreakpointLocation)
1887 1888 -class SBBroadcaster(_object):
1889 """ 1890 Represents an entity which can broadcast events. A default broadcaster is 1891 associated with an SBCommandInterpreter, SBProcess, and SBTarget. For 1892 example, use 1893 1894 broadcaster = process.GetBroadcaster() 1895 1896 to retrieve the process's broadcaster. 1897 1898 See also SBEvent for example usage of interacting with a broadcaster. 1899 """ 1900 __swig_setmethods__ = {} 1901 __setattr__ = lambda self, name, value: _swig_setattr(self, SBBroadcaster, name, value) 1902 __swig_getmethods__ = {} 1903 __getattr__ = lambda self, name: _swig_getattr(self, SBBroadcaster, name) 1904 __repr__ = _swig_repr
1905 - def __init__(self, *args):
1906 """ 1907 __init__(lldb::SBBroadcaster self) -> SBBroadcaster 1908 __init__(lldb::SBBroadcaster self, str const * name) -> SBBroadcaster 1909 __init__(lldb::SBBroadcaster self, SBBroadcaster rhs) -> SBBroadcaster 1910 """ 1911 this = _lldb.new_SBBroadcaster(*args) 1912 try: self.this.append(this) 1913 except: self.this = this
1914 __swig_destroy__ = _lldb.delete_SBBroadcaster 1915 __del__ = lambda self : None;
1916 - def __nonzero__(self): return self.IsValid()
1917 - def IsValid(self):
1918 """IsValid(SBBroadcaster self) -> bool""" 1919 return _lldb.SBBroadcaster_IsValid(self)
1920
1921 - def Clear(self):
1922 """Clear(SBBroadcaster self)""" 1923 return _lldb.SBBroadcaster_Clear(self)
1924
1925 - def BroadcastEventByType(self, *args):
1926 """ 1927 BroadcastEventByType(SBBroadcaster self, uint32_t event_type, bool unique=False) 1928 BroadcastEventByType(SBBroadcaster self, uint32_t event_type) 1929 """ 1930 return _lldb.SBBroadcaster_BroadcastEventByType(self, *args)
1931
1932 - def BroadcastEvent(self, *args):
1933 """ 1934 BroadcastEvent(SBBroadcaster self, SBEvent event, bool unique=False) 1935 BroadcastEvent(SBBroadcaster self, SBEvent event) 1936 """ 1937 return _lldb.SBBroadcaster_BroadcastEvent(self, *args)
1938
1939 - def AddInitialEventsToListener(self, *args):
1940 """AddInitialEventsToListener(SBBroadcaster self, SBListener listener, uint32_t requested_events)""" 1941 return _lldb.SBBroadcaster_AddInitialEventsToListener(self, *args)
1942
1943 - def AddListener(self, *args):
1944 """AddListener(SBBroadcaster self, SBListener listener, uint32_t event_mask) -> uint32_t""" 1945 return _lldb.SBBroadcaster_AddListener(self, *args)
1946
1947 - def GetName(self):
1948 """GetName(SBBroadcaster self) -> str const *""" 1949 return _lldb.SBBroadcaster_GetName(self)
1950
1951 - def EventTypeHasListeners(self, *args):
1952 """EventTypeHasListeners(SBBroadcaster self, uint32_t event_type) -> bool""" 1953 return _lldb.SBBroadcaster_EventTypeHasListeners(self, *args)
1954
1955 - def RemoveListener(self, *args):
1956 """ 1957 RemoveListener(SBBroadcaster self, SBListener listener, uint32_t event_mask=4294967295U) -> bool 1958 RemoveListener(SBBroadcaster self, SBListener listener) -> bool 1959 """ 1960 return _lldb.SBBroadcaster_RemoveListener(self, *args)
1961
1962 - def __eq__(self, *args):
1963 """__eq__(SBBroadcaster self, SBBroadcaster rhs) -> bool""" 1964 return _lldb.SBBroadcaster___eq__(self, *args)
1965
1966 - def __ne__(self, *args):
1967 """__ne__(SBBroadcaster self, SBBroadcaster rhs) -> bool""" 1968 return _lldb.SBBroadcaster___ne__(self, *args)
1969
1970 - def __eq__(self, rhs):
1971 if not isinstance(rhs, type(self)): 1972 return False 1973 1974 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
1975
1976 - def __ne__(self, rhs):
1977 if not isinstance(rhs, type(self)): 1978 return True 1979 1980 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
1981 1982 SBBroadcaster_swigregister = _lldb.SBBroadcaster_swigregister 1983 SBBroadcaster_swigregister(SBBroadcaster)
1984 1985 -class SBCommandInterpreterRunOptions(_object):
1986 """ 1987 SBCommandInterpreterRunOptions controls how the RunCommandInterpreter runs the code it is fed. 1988 A default SBCommandInterpreterRunOptions object has: 1989 StopOnContinue: false 1990 StopOnError: false 1991 StopOnCrash: false 1992 EchoCommands: true 1993 PrintResults: true 1994 AddToHistory: true 1995 1996 1997 1998 """ 1999 __swig_setmethods__ = {} 2000 __setattr__ = lambda self, name, value: _swig_setattr(self, SBCommandInterpreterRunOptions, name, value) 2001 __swig_getmethods__ = {} 2002 __getattr__ = lambda self, name: _swig_getattr(self, SBCommandInterpreterRunOptions, name) 2003 __repr__ = _swig_repr
2004 - def __init__(self):
2005 """__init__(lldb::SBCommandInterpreterRunOptions self) -> SBCommandInterpreterRunOptions""" 2006 this = _lldb.new_SBCommandInterpreterRunOptions() 2007 try: self.this.append(this) 2008 except: self.this = this
2009 __swig_destroy__ = _lldb.delete_SBCommandInterpreterRunOptions 2010 __del__ = lambda self : None;
2011 - def GetStopOnContinue(self):
2012 """GetStopOnContinue(SBCommandInterpreterRunOptions self) -> bool""" 2013 return _lldb.SBCommandInterpreterRunOptions_GetStopOnContinue(self)
2014
2015 - def SetStopOnContinue(self, *args):
2016 """SetStopOnContinue(SBCommandInterpreterRunOptions self, bool arg2)""" 2017 return _lldb.SBCommandInterpreterRunOptions_SetStopOnContinue(self, *args)
2018
2019 - def GetStopOnError(self):
2020 """GetStopOnError(SBCommandInterpreterRunOptions self) -> bool""" 2021 return _lldb.SBCommandInterpreterRunOptions_GetStopOnError(self)
2022
2023 - def SetStopOnError(self, *args):
2024 """SetStopOnError(SBCommandInterpreterRunOptions self, bool arg2)""" 2025 return _lldb.SBCommandInterpreterRunOptions_SetStopOnError(self, *args)
2026
2027 - def GetStopOnCrash(self):
2028 """GetStopOnCrash(SBCommandInterpreterRunOptions self) -> bool""" 2029 return _lldb.SBCommandInterpreterRunOptions_GetStopOnCrash(self)
2030
2031 - def SetStopOnCrash(self, *args):
2032 """SetStopOnCrash(SBCommandInterpreterRunOptions self, bool arg2)""" 2033 return _lldb.SBCommandInterpreterRunOptions_SetStopOnCrash(self, *args)
2034
2035 - def GetEchoCommands(self):
2036 """GetEchoCommands(SBCommandInterpreterRunOptions self) -> bool""" 2037 return _lldb.SBCommandInterpreterRunOptions_GetEchoCommands(self)
2038
2039 - def SetEchoCommands(self, *args):
2040 """SetEchoCommands(SBCommandInterpreterRunOptions self, bool arg2)""" 2041 return _lldb.SBCommandInterpreterRunOptions_SetEchoCommands(self, *args)
2042
2043 - def GetPrintResults(self):
2044 """GetPrintResults(SBCommandInterpreterRunOptions self) -> bool""" 2045 return _lldb.SBCommandInterpreterRunOptions_GetPrintResults(self)
2046
2047 - def SetPrintResults(self, *args):
2048 """SetPrintResults(SBCommandInterpreterRunOptions self, bool arg2)""" 2049 return _lldb.SBCommandInterpreterRunOptions_SetPrintResults(self, *args)
2050
2051 - def GetAddToHistory(self):
2052 """GetAddToHistory(SBCommandInterpreterRunOptions self) -> bool""" 2053 return _lldb.SBCommandInterpreterRunOptions_GetAddToHistory(self)
2054
2055 - def SetAddToHistory(self, *args):
2056 """SetAddToHistory(SBCommandInterpreterRunOptions self, bool arg2)""" 2057 return _lldb.SBCommandInterpreterRunOptions_SetAddToHistory(self, *args)
2058 2059 SBCommandInterpreterRunOptions_swigregister = _lldb.SBCommandInterpreterRunOptions_swigregister 2060 SBCommandInterpreterRunOptions_swigregister(SBCommandInterpreterRunOptions)
2061 2062 -class SBCommandInterpreter(_object):
2063 """ 2064 SBCommandInterpreter handles/interprets commands for lldb. You get the 2065 command interpreter from the SBDebugger instance. For example (from test/ 2066 python_api/interpreter/TestCommandInterpreterAPI.py), 2067 2068 def command_interpreter_api(self): 2069 '''Test the SBCommandInterpreter APIs.''' 2070 exe = os.path.join(os.getcwd(), 'a.out') 2071 2072 # Create a target by the debugger. 2073 target = self.dbg.CreateTarget(exe) 2074 self.assertTrue(target, VALID_TARGET) 2075 2076 # Retrieve the associated command interpreter from our debugger. 2077 ci = self.dbg.GetCommandInterpreter() 2078 self.assertTrue(ci, VALID_COMMAND_INTERPRETER) 2079 2080 # Exercise some APIs.... 2081 2082 self.assertTrue(ci.HasCommands()) 2083 self.assertTrue(ci.HasAliases()) 2084 self.assertTrue(ci.HasAliasOptions()) 2085 self.assertTrue(ci.CommandExists('breakpoint')) 2086 self.assertTrue(ci.CommandExists('target')) 2087 self.assertTrue(ci.CommandExists('platform')) 2088 self.assertTrue(ci.AliasExists('file')) 2089 self.assertTrue(ci.AliasExists('run')) 2090 self.assertTrue(ci.AliasExists('bt')) 2091 2092 res = lldb.SBCommandReturnObject() 2093 ci.HandleCommand('breakpoint set -f main.c -l %d' % self.line, res) 2094 self.assertTrue(res.Succeeded()) 2095 ci.HandleCommand('process launch', res) 2096 self.assertTrue(res.Succeeded()) 2097 2098 process = ci.GetProcess() 2099 self.assertTrue(process) 2100 2101 ... 2102 2103 The HandleCommand() instance method takes two args: the command string and 2104 an SBCommandReturnObject instance which encapsulates the result of command 2105 execution. 2106 2107 """ 2108 __swig_setmethods__ = {} 2109 __setattr__ = lambda self, name, value: _swig_setattr(self, SBCommandInterpreter, name, value) 2110 __swig_getmethods__ = {} 2111 __getattr__ = lambda self, name: _swig_getattr(self, SBCommandInterpreter, name) 2112 __repr__ = _swig_repr 2113 eBroadcastBitThreadShouldExit = _lldb.SBCommandInterpreter_eBroadcastBitThreadShouldExit 2114 eBroadcastBitResetPrompt = _lldb.SBCommandInterpreter_eBroadcastBitResetPrompt 2115 eBroadcastBitQuitCommandReceived = _lldb.SBCommandInterpreter_eBroadcastBitQuitCommandReceived 2116 eBroadcastBitAsynchronousOutputData = _lldb.SBCommandInterpreter_eBroadcastBitAsynchronousOutputData 2117 eBroadcastBitAsynchronousErrorData = _lldb.SBCommandInterpreter_eBroadcastBitAsynchronousErrorData
2118 - def __init__(self, *args):
2119 """__init__(lldb::SBCommandInterpreter self, SBCommandInterpreter rhs) -> SBCommandInterpreter""" 2120 this = _lldb.new_SBCommandInterpreter(*args) 2121 try: self.this.append(this) 2122 except: self.this = this
2123 __swig_destroy__ = _lldb.delete_SBCommandInterpreter 2124 __del__ = lambda self : None;
2125 - def GetArgumentTypeAsCString(*args):
2126 """GetArgumentTypeAsCString(lldb::CommandArgumentType const arg_type) -> str const *""" 2127 return _lldb.SBCommandInterpreter_GetArgumentTypeAsCString(*args)
2128 2129 if _newclass:GetArgumentTypeAsCString = staticmethod(GetArgumentTypeAsCString) 2130 __swig_getmethods__["GetArgumentTypeAsCString"] = lambda x: GetArgumentTypeAsCString
2131 - def GetArgumentDescriptionAsCString(*args):
2132 """GetArgumentDescriptionAsCString(lldb::CommandArgumentType const arg_type) -> str const *""" 2133 return _lldb.SBCommandInterpreter_GetArgumentDescriptionAsCString(*args)
2134 2135 if _newclass:GetArgumentDescriptionAsCString = staticmethod(GetArgumentDescriptionAsCString) 2136 __swig_getmethods__["GetArgumentDescriptionAsCString"] = lambda x: GetArgumentDescriptionAsCString
2137 - def EventIsCommandInterpreterEvent(*args):
2138 """EventIsCommandInterpreterEvent(SBEvent event) -> bool""" 2139 return _lldb.SBCommandInterpreter_EventIsCommandInterpreterEvent(*args)
2140 2141 if _newclass:EventIsCommandInterpreterEvent = staticmethod(EventIsCommandInterpreterEvent) 2142 __swig_getmethods__["EventIsCommandInterpreterEvent"] = lambda x: EventIsCommandInterpreterEvent
2143 - def __nonzero__(self): return self.IsValid()
2144 - def IsValid(self):
2145 """IsValid(SBCommandInterpreter self) -> bool""" 2146 return _lldb.SBCommandInterpreter_IsValid(self)
2147
2148 - def GetIOHandlerControlSequence(self, *args):
2149 """GetIOHandlerControlSequence(SBCommandInterpreter self, str ch) -> str const *""" 2150 return _lldb.SBCommandInterpreter_GetIOHandlerControlSequence(self, *args)
2151
2152 - def GetPromptOnQuit(self):
2153 """GetPromptOnQuit(SBCommandInterpreter self) -> bool""" 2154 return _lldb.SBCommandInterpreter_GetPromptOnQuit(self)
2155
2156 - def SetPromptOnQuit(self, *args):
2157 """SetPromptOnQuit(SBCommandInterpreter self, bool b)""" 2158 return _lldb.SBCommandInterpreter_SetPromptOnQuit(self, *args)
2159
2160 - def ResolveCommand(self, *args):
2161 """ResolveCommand(SBCommandInterpreter self, str const * command_line, SBCommandReturnObject result)""" 2162 return _lldb.SBCommandInterpreter_ResolveCommand(self, *args)
2163
2164 - def CommandExists(self, *args):
2165 """CommandExists(SBCommandInterpreter self, str const * cmd) -> bool""" 2166 return _lldb.SBCommandInterpreter_CommandExists(self, *args)
2167
2168 - def AliasExists(self, *args):
2169 """AliasExists(SBCommandInterpreter self, str const * cmd) -> bool""" 2170 return _lldb.SBCommandInterpreter_AliasExists(self, *args)
2171
2172 - def GetBroadcaster(self):
2173 """GetBroadcaster(SBCommandInterpreter self) -> SBBroadcaster""" 2174 return _lldb.SBCommandInterpreter_GetBroadcaster(self)
2175
2176 - def GetBroadcasterClass():
2177 """GetBroadcasterClass() -> str const *""" 2178 return _lldb.SBCommandInterpreter_GetBroadcasterClass()
2179 2180 if _newclass:GetBroadcasterClass = staticmethod(GetBroadcasterClass) 2181 __swig_getmethods__["GetBroadcasterClass"] = lambda x: GetBroadcasterClass
2182 - def HasCommands(self):
2183 """HasCommands(SBCommandInterpreter self) -> bool""" 2184 return _lldb.SBCommandInterpreter_HasCommands(self)
2185
2186 - def HasAliases(self):
2187 """HasAliases(SBCommandInterpreter self) -> bool""" 2188 return _lldb.SBCommandInterpreter_HasAliases(self)
2189
2190 - def HasAliasOptions(self):
2191 """HasAliasOptions(SBCommandInterpreter self) -> bool""" 2192 return _lldb.SBCommandInterpreter_HasAliasOptions(self)
2193
2194 - def GetProcess(self):
2195 """GetProcess(SBCommandInterpreter self) -> SBProcess""" 2196 return _lldb.SBCommandInterpreter_GetProcess(self)
2197
2198 - def GetDebugger(self):
2199 """GetDebugger(SBCommandInterpreter self) -> SBDebugger""" 2200 return _lldb.SBCommandInterpreter_GetDebugger(self)
2201
2202 - def SourceInitFileInHomeDirectory(self, *args):
2203 """SourceInitFileInHomeDirectory(SBCommandInterpreter self, SBCommandReturnObject result)""" 2204 return _lldb.SBCommandInterpreter_SourceInitFileInHomeDirectory(self, *args)
2205
2206 - def SourceInitFileInCurrentWorkingDirectory(self, *args):
2207 """SourceInitFileInCurrentWorkingDirectory(SBCommandInterpreter self, SBCommandReturnObject result)""" 2208 return _lldb.SBCommandInterpreter_SourceInitFileInCurrentWorkingDirectory(self, *args)
2209
2210 - def HandleCommand(self, *args):
2211 """ 2212 HandleCommand(SBCommandInterpreter self, str const * command_line, SBCommandReturnObject result, bool add_to_history=False) -> lldb::ReturnStatus 2213 HandleCommand(SBCommandInterpreter self, str const * command_line, SBCommandReturnObject result) -> lldb::ReturnStatus 2214 HandleCommand(SBCommandInterpreter self, str const * command_line, SBExecutionContext exe_ctx, SBCommandReturnObject result, 2215 bool add_to_history=False) -> lldb::ReturnStatus 2216 HandleCommand(SBCommandInterpreter self, str const * command_line, SBExecutionContext exe_ctx, SBCommandReturnObject result) -> lldb::ReturnStatus 2217 """ 2218 return _lldb.SBCommandInterpreter_HandleCommand(self, *args)
2219
2220 - def HandleCommandsFromFile(self, *args):
2221 """ 2222 HandleCommandsFromFile(SBCommandInterpreter self, SBFileSpec file, SBExecutionContext override_context, SBCommandInterpreterRunOptions options, 2223 SBCommandReturnObject result) 2224 """ 2225 return _lldb.SBCommandInterpreter_HandleCommandsFromFile(self, *args)
2226
2227 - def HandleCompletion(self, *args):
2228 """ 2229 HandleCompletion(SBCommandInterpreter self, str const * current_line, uint32_t cursor_pos, int match_start_point, int max_return_elements, 2230 SBStringList matches) -> int 2231 """ 2232 return _lldb.SBCommandInterpreter_HandleCompletion(self, *args)
2233
2234 - def IsActive(self):
2235 """IsActive(SBCommandInterpreter self) -> bool""" 2236 return _lldb.SBCommandInterpreter_IsActive(self)
2237 2238 SBCommandInterpreter_swigregister = _lldb.SBCommandInterpreter_swigregister 2239 SBCommandInterpreter_swigregister(SBCommandInterpreter)
2240 2241 -def SBCommandInterpreter_GetArgumentTypeAsCString(*args):
2242 """SBCommandInterpreter_GetArgumentTypeAsCString(lldb::CommandArgumentType const arg_type) -> str const *""" 2243 return _lldb.SBCommandInterpreter_GetArgumentTypeAsCString(*args)
2244
2245 -def SBCommandInterpreter_GetArgumentDescriptionAsCString(*args):
2246 """SBCommandInterpreter_GetArgumentDescriptionAsCString(lldb::CommandArgumentType const arg_type) -> str const *""" 2247 return _lldb.SBCommandInterpreter_GetArgumentDescriptionAsCString(*args)
2248
2249 -def SBCommandInterpreter_EventIsCommandInterpreterEvent(*args):
2250 """SBCommandInterpreter_EventIsCommandInterpreterEvent(SBEvent event) -> bool""" 2251 return _lldb.SBCommandInterpreter_EventIsCommandInterpreterEvent(*args)
2252
2253 -def SBCommandInterpreter_GetBroadcasterClass():
2254 """SBCommandInterpreter_GetBroadcasterClass() -> str const *""" 2255 return _lldb.SBCommandInterpreter_GetBroadcasterClass()
2256
2257 -class SBCommandReturnObject(_object):
2258 """ 2259 Represents a container which holds the result from command execution. 2260 It works with SBCommandInterpreter.HandleCommand() to encapsulate the result 2261 of command execution. 2262 2263 See SBCommandInterpreter for example usage of SBCommandReturnObject. 2264 """ 2265 __swig_setmethods__ = {} 2266 __setattr__ = lambda self, name, value: _swig_setattr(self, SBCommandReturnObject, name, value) 2267 __swig_getmethods__ = {} 2268 __getattr__ = lambda self, name: _swig_getattr(self, SBCommandReturnObject, name) 2269 __repr__ = _swig_repr
2270 - def __init__(self, *args):
2271 """ 2272 __init__(lldb::SBCommandReturnObject self) -> SBCommandReturnObject 2273 __init__(lldb::SBCommandReturnObject self, SBCommandReturnObject rhs) -> SBCommandReturnObject 2274 """ 2275 this = _lldb.new_SBCommandReturnObject(*args) 2276 try: self.this.append(this) 2277 except: self.this = this
2278 __swig_destroy__ = _lldb.delete_SBCommandReturnObject 2279 __del__ = lambda self : None;
2280 - def __nonzero__(self): return self.IsValid()
2281 - def IsValid(self):
2282 """IsValid(SBCommandReturnObject self) -> bool""" 2283 return _lldb.SBCommandReturnObject_IsValid(self)
2284
2285 - def GetOutputSize(self):
2286 """GetOutputSize(SBCommandReturnObject self) -> size_t""" 2287 return _lldb.SBCommandReturnObject_GetOutputSize(self)
2288
2289 - def GetErrorSize(self):
2290 """GetErrorSize(SBCommandReturnObject self) -> size_t""" 2291 return _lldb.SBCommandReturnObject_GetErrorSize(self)
2292
2293 - def GetOutput(self, *args):
2294 """ 2295 GetOutput(SBCommandReturnObject self) -> str const 2296 GetOutput(SBCommandReturnObject self, bool only_if_no_immediate) -> str const * 2297 """ 2298 return _lldb.SBCommandReturnObject_GetOutput(self, *args)
2299
2300 - def GetError(self, *args):
2301 """ 2302 GetError(SBCommandReturnObject self) -> str const 2303 GetError(SBCommandReturnObject self, bool if_no_immediate) -> str const * 2304 """ 2305 return _lldb.SBCommandReturnObject_GetError(self, *args)
2306
2307 - def PutOutput(self, *args):
2308 """PutOutput(SBCommandReturnObject self, FILE * fh) -> size_t""" 2309 return _lldb.SBCommandReturnObject_PutOutput(self, *args)
2310
2311 - def PutError(self, *args):
2312 """PutError(SBCommandReturnObject self, FILE * fh) -> size_t""" 2313 return _lldb.SBCommandReturnObject_PutError(self, *args)
2314
2315 - def Clear(self):
2316 """Clear(SBCommandReturnObject self)""" 2317 return _lldb.SBCommandReturnObject_Clear(self)
2318
2319 - def SetStatus(self, *args):
2320 """SetStatus(SBCommandReturnObject self, lldb::ReturnStatus status)""" 2321 return _lldb.SBCommandReturnObject_SetStatus(self, *args)
2322
2323 - def SetError(self, *args):
2324 """ 2325 SetError(SBCommandReturnObject self, SBError error, str const * fallback_error_cstr=None) 2326 SetError(SBCommandReturnObject self, SBError error) 2327 SetError(SBCommandReturnObject self, str const * error_cstr) 2328 """ 2329 return _lldb.SBCommandReturnObject_SetError(self, *args)
2330
2331 - def GetStatus(self):
2332 """GetStatus(SBCommandReturnObject self) -> lldb::ReturnStatus""" 2333 return _lldb.SBCommandReturnObject_GetStatus(self)
2334
2335 - def Succeeded(self):
2336 """Succeeded(SBCommandReturnObject self) -> bool""" 2337 return _lldb.SBCommandReturnObject_Succeeded(self)
2338
2339 - def HasResult(self):
2340 """HasResult(SBCommandReturnObject self) -> bool""" 2341 return _lldb.SBCommandReturnObject_HasResult(self)
2342
2343 - def AppendMessage(self, *args):
2344 """AppendMessage(SBCommandReturnObject self, str const * message)""" 2345 return _lldb.SBCommandReturnObject_AppendMessage(self, *args)
2346
2347 - def AppendWarning(self, *args):
2348 """AppendWarning(SBCommandReturnObject self, str const * message)""" 2349 return _lldb.SBCommandReturnObject_AppendWarning(self, *args)
2350
2351 - def GetDescription(self, *args):
2352 """GetDescription(SBCommandReturnObject self, SBStream description) -> bool""" 2353 return _lldb.SBCommandReturnObject_GetDescription(self, *args)
2354
2355 - def SetImmediateOutputFile(self, *args):
2356 """SetImmediateOutputFile(SBCommandReturnObject self, FILE * fh)""" 2357 return _lldb.SBCommandReturnObject_SetImmediateOutputFile(self, *args)
2358
2359 - def SetImmediateErrorFile(self, *args):
2360 """SetImmediateErrorFile(SBCommandReturnObject self, FILE * fh)""" 2361 return _lldb.SBCommandReturnObject_SetImmediateErrorFile(self, *args)
2362
2363 - def PutCString(self, *args):
2364 """PutCString(SBCommandReturnObject self, str const * string)""" 2365 return _lldb.SBCommandReturnObject_PutCString(self, *args)
2366
2367 - def Print(self, *args):
2368 """Print(SBCommandReturnObject self, str const * str)""" 2369 return _lldb.SBCommandReturnObject_Print(self, *args)
2370
2371 - def __str__(self):
2372 """__str__(SBCommandReturnObject self) -> PyObject *""" 2373 return _lldb.SBCommandReturnObject___str__(self)
2374
2375 - def write(self, *args):
2376 """write(SBCommandReturnObject self, str const * str)""" 2377 return _lldb.SBCommandReturnObject_write(self, *args)
2378
2379 - def flush(self):
2380 """flush(SBCommandReturnObject self)""" 2381 return _lldb.SBCommandReturnObject_flush(self)
2382 2383 SBCommandReturnObject_swigregister = _lldb.SBCommandReturnObject_swigregister 2384 SBCommandReturnObject_swigregister(SBCommandReturnObject)
2385 2386 -class SBCommunication(_object):
2387 """Proxy of C++ lldb::SBCommunication class""" 2388 __swig_setmethods__ = {} 2389 __setattr__ = lambda self, name, value: _swig_setattr(self, SBCommunication, name, value) 2390 __swig_getmethods__ = {} 2391 __getattr__ = lambda self, name: _swig_getattr(self, SBCommunication, name) 2392 __repr__ = _swig_repr 2393 eBroadcastBitDisconnected = _lldb.SBCommunication_eBroadcastBitDisconnected 2394 eBroadcastBitReadThreadGotBytes = _lldb.SBCommunication_eBroadcastBitReadThreadGotBytes 2395 eBroadcastBitReadThreadDidExit = _lldb.SBCommunication_eBroadcastBitReadThreadDidExit 2396 eBroadcastBitReadThreadShouldExit = _lldb.SBCommunication_eBroadcastBitReadThreadShouldExit 2397 eBroadcastBitPacketAvailable = _lldb.SBCommunication_eBroadcastBitPacketAvailable 2398 eAllEventBits = _lldb.SBCommunication_eAllEventBits
2399 - def __init__(self, *args):
2400 """ 2401 __init__(lldb::SBCommunication self) -> SBCommunication 2402 __init__(lldb::SBCommunication self, str const * broadcaster_name) -> SBCommunication 2403 """ 2404 this = _lldb.new_SBCommunication(*args) 2405 try: self.this.append(this) 2406 except: self.this = this
2407 __swig_destroy__ = _lldb.delete_SBCommunication 2408 __del__ = lambda self : None;
2409 - def __nonzero__(self): return self.IsValid()
2410 - def IsValid(self):
2411 """IsValid(SBCommunication self) -> bool""" 2412 return _lldb.SBCommunication_IsValid(self)
2413
2414 - def GetBroadcaster(self):
2415 """GetBroadcaster(SBCommunication self) -> SBBroadcaster""" 2416 return _lldb.SBCommunication_GetBroadcaster(self)
2417
2418 - def GetBroadcasterClass():
2419 """GetBroadcasterClass() -> str const *""" 2420 return _lldb.SBCommunication_GetBroadcasterClass()
2421 2422 if _newclass:GetBroadcasterClass = staticmethod(GetBroadcasterClass) 2423 __swig_getmethods__["GetBroadcasterClass"] = lambda x: GetBroadcasterClass
2424 - def AdoptFileDesriptor(self, *args):
2425 """AdoptFileDesriptor(SBCommunication self, int fd, bool owns_fd) -> lldb::ConnectionStatus""" 2426 return _lldb.SBCommunication_AdoptFileDesriptor(self, *args)
2427
2428 - def Connect(self, *args):
2429 """Connect(SBCommunication self, str const * url) -> lldb::ConnectionStatus""" 2430 return _lldb.SBCommunication_Connect(self, *args)
2431
2432 - def Disconnect(self):
2433 """Disconnect(SBCommunication self) -> lldb::ConnectionStatus""" 2434 return _lldb.SBCommunication_Disconnect(self)
2435
2436 - def IsConnected(self):
2437 """IsConnected(SBCommunication self) -> bool""" 2438 return _lldb.SBCommunication_IsConnected(self)
2439
2440 - def GetCloseOnEOF(self):
2441 """GetCloseOnEOF(SBCommunication self) -> bool""" 2442 return _lldb.SBCommunication_GetCloseOnEOF(self)
2443
2444 - def SetCloseOnEOF(self, *args):
2445 """SetCloseOnEOF(SBCommunication self, bool b)""" 2446 return _lldb.SBCommunication_SetCloseOnEOF(self, *args)
2447
2448 - def Read(self, *args):
2449 """Read(SBCommunication self, void * dst, size_t dst_len, uint32_t timeout_usec, lldb::ConnectionStatus & status) -> size_t""" 2450 return _lldb.SBCommunication_Read(self, *args)
2451
2452 - def Write(self, *args):
2453 """Write(SBCommunication self, void const * src, size_t src_len, lldb::ConnectionStatus & status) -> size_t""" 2454 return _lldb.SBCommunication_Write(self, *args)
2455
2456 - def ReadThreadStart(self):
2457 """ReadThreadStart(SBCommunication self) -> bool""" 2458 return _lldb.SBCommunication_ReadThreadStart(self)
2459
2460 - def ReadThreadStop(self):
2461 """ReadThreadStop(SBCommunication self) -> bool""" 2462 return _lldb.SBCommunication_ReadThreadStop(self)
2463
2464 - def ReadThreadIsRunning(self):
2465 """ReadThreadIsRunning(SBCommunication self) -> bool""" 2466 return _lldb.SBCommunication_ReadThreadIsRunning(self)
2467
2468 - def SetReadThreadBytesReceivedCallback(self, *args):
2469 """SetReadThreadBytesReceivedCallback(SBCommunication self, lldb::SBCommunication::ReadThreadBytesReceived callback, void * callback_baton) -> bool""" 2470 return _lldb.SBCommunication_SetReadThreadBytesReceivedCallback(self, *args)
2471 2472 SBCommunication_swigregister = _lldb.SBCommunication_swigregister 2473 SBCommunication_swigregister(SBCommunication)
2474 2475 -def SBCommunication_GetBroadcasterClass():
2476 """SBCommunication_GetBroadcasterClass() -> str const *""" 2477 return _lldb.SBCommunication_GetBroadcasterClass()
2478
2479 -class SBCompileUnit(_object):
2480 """ 2481 Represents a compilation unit, or compiled source file. 2482 2483 SBCompileUnit supports line entry iteration. For example, 2484 2485 # Now get the SBSymbolContext from this frame. We want everything. :-) 2486 context = frame0.GetSymbolContext(lldb.eSymbolContextEverything) 2487 ... 2488 2489 compileUnit = context.GetCompileUnit() 2490 2491 for lineEntry in compileUnit: 2492 print('line entry: %s:%d' % (str(lineEntry.GetFileSpec()), 2493 lineEntry.GetLine())) 2494 print('start addr: %s' % str(lineEntry.GetStartAddress())) 2495 print('end addr: %s' % str(lineEntry.GetEndAddress())) 2496 2497 produces: 2498 2499 line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:20 2500 start addr: a.out[0x100000d98] 2501 end addr: a.out[0x100000da3] 2502 line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:21 2503 start addr: a.out[0x100000da3] 2504 end addr: a.out[0x100000da9] 2505 line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:22 2506 start addr: a.out[0x100000da9] 2507 end addr: a.out[0x100000db6] 2508 line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:23 2509 start addr: a.out[0x100000db6] 2510 end addr: a.out[0x100000dbc] 2511 ... 2512 2513 See also SBSymbolContext and SBLineEntry 2514 """ 2515 __swig_setmethods__ = {} 2516 __setattr__ = lambda self, name, value: _swig_setattr(self, SBCompileUnit, name, value) 2517 __swig_getmethods__ = {} 2518 __getattr__ = lambda self, name: _swig_getattr(self, SBCompileUnit, name) 2519 __repr__ = _swig_repr
2520 - def __iter__(self): return lldb_iter(self, 'GetNumLineEntries', 'GetLineEntryAtIndex')
2521 - def __len__(self): return self.GetNumLineEntries()
2522 - def __init__(self, *args):
2523 """ 2524 __init__(lldb::SBCompileUnit self) -> SBCompileUnit 2525 __init__(lldb::SBCompileUnit self, SBCompileUnit rhs) -> SBCompileUnit 2526 """ 2527 this = _lldb.new_SBCompileUnit(*args) 2528 try: self.this.append(this) 2529 except: self.this = this
2530 __swig_destroy__ = _lldb.delete_SBCompileUnit 2531 __del__ = lambda self : None;
2532 - def __nonzero__(self): return self.IsValid()
2533 - def IsValid(self):
2534 """IsValid(SBCompileUnit self) -> bool""" 2535 return _lldb.SBCompileUnit_IsValid(self)
2536
2537 - def GetFileSpec(self):
2538 """GetFileSpec(SBCompileUnit self) -> SBFileSpec""" 2539 return _lldb.SBCompileUnit_GetFileSpec(self)
2540
2541 - def GetNumLineEntries(self):
2542 """GetNumLineEntries(SBCompileUnit self) -> uint32_t""" 2543 return _lldb.SBCompileUnit_GetNumLineEntries(self)
2544
2545 - def GetLineEntryAtIndex(self, *args):
2546 """GetLineEntryAtIndex(SBCompileUnit self, uint32_t idx) -> SBLineEntry""" 2547 return _lldb.SBCompileUnit_GetLineEntryAtIndex(self, *args)
2548
2549 - def FindLineEntryIndex(self, *args):
2550 """ 2551 FindLineEntryIndex(SBCompileUnit self, uint32_t start_idx, uint32_t line, SBFileSpec inline_file_spec) -> uint32_t 2552 FindLineEntryIndex(SBCompileUnit self, uint32_t start_idx, uint32_t line, SBFileSpec inline_file_spec, bool exact) -> uint32_t 2553 """ 2554 return _lldb.SBCompileUnit_FindLineEntryIndex(self, *args)
2555
2556 - def GetSupportFileAtIndex(self, *args):
2557 """GetSupportFileAtIndex(SBCompileUnit self, uint32_t idx) -> SBFileSpec""" 2558 return _lldb.SBCompileUnit_GetSupportFileAtIndex(self, *args)
2559
2560 - def GetNumSupportFiles(self):
2561 """GetNumSupportFiles(SBCompileUnit self) -> uint32_t""" 2562 return _lldb.SBCompileUnit_GetNumSupportFiles(self)
2563
2564 - def FindSupportFileIndex(self, *args):
2565 """FindSupportFileIndex(SBCompileUnit self, uint32_t start_idx, SBFileSpec sb_file, bool full) -> uint32_t""" 2566 return _lldb.SBCompileUnit_FindSupportFileIndex(self, *args)
2567
2568 - def GetTypes(self, *args):
2569 """ 2570 GetTypes(SBCompileUnit self, uint32_t type_mask=eTypeClassAny) -> SBTypeList 2571 GetTypes(SBCompileUnit self) -> SBTypeList 2572 2573 Get all types matching type_mask from debug info in this 2574 compile unit. 2575 2576 @param[in] type_mask 2577 A bitfield that consists of one or more bits logically OR'ed 2578 together from the lldb::TypeClass enumeration. This allows 2579 you to request only structure types, or only class, struct 2580 and union types. Passing in lldb::eTypeClassAny will return 2581 all types found in the debug information for this compile 2582 unit. 2583 2584 @return 2585 A list of types in this compile unit that match type_mask 2586 """ 2587 return _lldb.SBCompileUnit_GetTypes(self, *args)
2588
2589 - def GetLanguage(self):
2590 """GetLanguage(SBCompileUnit self) -> lldb::LanguageType""" 2591 return _lldb.SBCompileUnit_GetLanguage(self)
2592
2593 - def GetDescription(self, *args):
2594 """GetDescription(SBCompileUnit self, SBStream description) -> bool""" 2595 return _lldb.SBCompileUnit_GetDescription(self, *args)
2596
2597 - def __eq__(self, *args):
2598 """__eq__(SBCompileUnit self, SBCompileUnit rhs) -> bool""" 2599 return _lldb.SBCompileUnit___eq__(self, *args)
2600
2601 - def __ne__(self, *args):
2602 """__ne__(SBCompileUnit self, SBCompileUnit rhs) -> bool""" 2603 return _lldb.SBCompileUnit___ne__(self, *args)
2604 2605 __swig_getmethods__["file"] = GetFileSpec 2606 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.''') 2607 2608 __swig_getmethods__["num_line_entries"] = GetNumLineEntries 2609 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.''') 2610
2611 - def __str__(self):
2612 """__str__(SBCompileUnit self) -> PyObject *""" 2613 return _lldb.SBCompileUnit___str__(self)
2614
2615 - def __eq__(self, rhs):
2616 if not isinstance(rhs, type(self)): 2617 return False 2618 2619 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
2620
2621 - def __ne__(self, rhs):
2622 if not isinstance(rhs, type(self)): 2623 return True 2624 2625 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
2626 2627 SBCompileUnit_swigregister = _lldb.SBCompileUnit_swigregister 2628 SBCompileUnit_swigregister(SBCompileUnit)
2629 2630 -class SBData(_object):
2631 """Proxy of C++ lldb::SBData class""" 2632 __swig_setmethods__ = {} 2633 __setattr__ = lambda self, name, value: _swig_setattr(self, SBData, name, value) 2634 __swig_getmethods__ = {} 2635 __getattr__ = lambda self, name: _swig_getattr(self, SBData, name) 2636 __repr__ = _swig_repr
2637 - def __init__(self, *args):
2638 """ 2639 __init__(lldb::SBData self) -> SBData 2640 __init__(lldb::SBData self, SBData rhs) -> SBData 2641 """ 2642 this = _lldb.new_SBData(*args) 2643 try: self.this.append(this) 2644 except: self.this = this
2645 __swig_destroy__ = _lldb.delete_SBData 2646 __del__ = lambda self : None;
2647 - def GetAddressByteSize(self):
2648 """GetAddressByteSize(SBData self) -> uint8_t""" 2649 return _lldb.SBData_GetAddressByteSize(self)
2650
2651 - def SetAddressByteSize(self, *args):
2652 """SetAddressByteSize(SBData self, uint8_t addr_byte_size)""" 2653 return _lldb.SBData_SetAddressByteSize(self, *args)
2654
2655 - def Clear(self):
2656 """Clear(SBData self)""" 2657 return _lldb.SBData_Clear(self)
2658
2659 - def __nonzero__(self): return self.IsValid()
2660 - def IsValid(self):
2661 """IsValid(SBData self) -> bool""" 2662 return _lldb.SBData_IsValid(self)
2663
2664 - def GetByteSize(self):
2665 """GetByteSize(SBData self) -> size_t""" 2666 return _lldb.SBData_GetByteSize(self)
2667
2668 - def GetByteOrder(self):
2669 """GetByteOrder(SBData self) -> lldb::ByteOrder""" 2670 return _lldb.SBData_GetByteOrder(self)
2671
2672 - def SetByteOrder(self, *args):
2673 """SetByteOrder(SBData self, lldb::ByteOrder endian)""" 2674 return _lldb.SBData_SetByteOrder(self, *args)
2675
2676 - def GetFloat(self, *args):
2677 """GetFloat(SBData self, SBError error, lldb::offset_t offset) -> float""" 2678 return _lldb.SBData_GetFloat(self, *args)
2679
2680 - def GetDouble(self, *args):
2681 """GetDouble(SBData self, SBError error, lldb::offset_t offset) -> double""" 2682 return _lldb.SBData_GetDouble(self, *args)
2683
2684 - def GetLongDouble(self, *args):
2685 """GetLongDouble(SBData self, SBError error, lldb::offset_t offset) -> long double""" 2686 return _lldb.SBData_GetLongDouble(self, *args)
2687
2688 - def GetAddress(self, *args):
2689 """GetAddress(SBData self, SBError error, lldb::offset_t offset) -> lldb::addr_t""" 2690 return _lldb.SBData_GetAddress(self, *args)
2691
2692 - def GetUnsignedInt8(self, *args):
2693 """GetUnsignedInt8(SBData self, SBError error, lldb::offset_t offset) -> uint8_t""" 2694 return _lldb.SBData_GetUnsignedInt8(self, *args)
2695
2696 - def GetUnsignedInt16(self, *args):
2697 """GetUnsignedInt16(SBData self, SBError error, lldb::offset_t offset) -> uint16_t""" 2698 return _lldb.SBData_GetUnsignedInt16(self, *args)
2699
2700 - def GetUnsignedInt32(self, *args):
2701 """GetUnsignedInt32(SBData self, SBError error, lldb::offset_t offset) -> uint32_t""" 2702 return _lldb.SBData_GetUnsignedInt32(self, *args)
2703
2704 - def GetUnsignedInt64(self, *args):
2705 """GetUnsignedInt64(SBData self, SBError error, lldb::offset_t offset) -> uint64_t""" 2706 return _lldb.SBData_GetUnsignedInt64(self, *args)
2707
2708 - def GetSignedInt8(self, *args):
2709 """GetSignedInt8(SBData self, SBError error, lldb::offset_t offset) -> int8_t""" 2710 return _lldb.SBData_GetSignedInt8(self, *args)
2711
2712 - def GetSignedInt16(self, *args):
2713 """GetSignedInt16(SBData self, SBError error, lldb::offset_t offset) -> int16_t""" 2714 return _lldb.SBData_GetSignedInt16(self, *args)
2715
2716 - def GetSignedInt32(self, *args):
2717 """GetSignedInt32(SBData self, SBError error, lldb::offset_t offset) -> int32_t""" 2718 return _lldb.SBData_GetSignedInt32(self, *args)
2719
2720 - def GetSignedInt64(self, *args):
2721 """GetSignedInt64(SBData self, SBError error, lldb::offset_t offset) -> int64_t""" 2722 return _lldb.SBData_GetSignedInt64(self, *args)
2723
2724 - def GetString(self, *args):
2725 """GetString(SBData self, SBError error, lldb::offset_t offset) -> str const *""" 2726 return _lldb.SBData_GetString(self, *args)
2727
2728 - def GetDescription(self, *args):
2729 """GetDescription(SBData self, SBStream description, lldb::addr_t base_addr) -> bool""" 2730 return _lldb.SBData_GetDescription(self, *args)
2731
2732 - def ReadRawData(self, *args):
2733 """ReadRawData(SBData self, SBError error, lldb::offset_t offset, void * buf) -> size_t""" 2734 return _lldb.SBData_ReadRawData(self, *args)
2735
2736 - def SetData(self, *args):
2737 """SetData(SBData self, SBError error, void const * buf, lldb::ByteOrder endian, uint8_t addr_size)""" 2738 return _lldb.SBData_SetData(self, *args)
2739
2740 - def Append(self, *args):
2741 """Append(SBData self, SBData rhs) -> bool""" 2742 return _lldb.SBData_Append(self, *args)
2743
2744 - def CreateDataFromCString(*args):
2745 """CreateDataFromCString(lldb::ByteOrder endian, uint32_t addr_byte_size, str const * data) -> SBData""" 2746 return _lldb.SBData_CreateDataFromCString(*args)
2747 2748 if _newclass:CreateDataFromCString = staticmethod(CreateDataFromCString) 2749 __swig_getmethods__["CreateDataFromCString"] = lambda x: CreateDataFromCString
2750 - def CreateDataFromUInt64Array(*args):
2751 """CreateDataFromUInt64Array(lldb::ByteOrder endian, uint32_t addr_byte_size, uint64_t * array) -> SBData""" 2752 return _lldb.SBData_CreateDataFromUInt64Array(*args)
2753 2754 if _newclass:CreateDataFromUInt64Array = staticmethod(CreateDataFromUInt64Array) 2755 __swig_getmethods__["CreateDataFromUInt64Array"] = lambda x: CreateDataFromUInt64Array
2756 - def CreateDataFromUInt32Array(*args):
2757 """CreateDataFromUInt32Array(lldb::ByteOrder endian, uint32_t addr_byte_size, uint32_t * array) -> SBData""" 2758 return _lldb.SBData_CreateDataFromUInt32Array(*args)
2759 2760 if _newclass:CreateDataFromUInt32Array = staticmethod(CreateDataFromUInt32Array) 2761 __swig_getmethods__["CreateDataFromUInt32Array"] = lambda x: CreateDataFromUInt32Array
2762 - def CreateDataFromSInt64Array(*args):
2763 """CreateDataFromSInt64Array(lldb::ByteOrder endian, uint32_t addr_byte_size, int64_t * array) -> SBData""" 2764 return _lldb.SBData_CreateDataFromSInt64Array(*args)
2765 2766 if _newclass:CreateDataFromSInt64Array = staticmethod(CreateDataFromSInt64Array) 2767 __swig_getmethods__["CreateDataFromSInt64Array"] = lambda x: CreateDataFromSInt64Array
2768 - def CreateDataFromSInt32Array(*args):
2769 """CreateDataFromSInt32Array(lldb::ByteOrder endian, uint32_t addr_byte_size, int32_t * array) -> SBData""" 2770 return _lldb.SBData_CreateDataFromSInt32Array(*args)
2771 2772 if _newclass:CreateDataFromSInt32Array = staticmethod(CreateDataFromSInt32Array) 2773 __swig_getmethods__["CreateDataFromSInt32Array"] = lambda x: CreateDataFromSInt32Array
2774 - def CreateDataFromDoubleArray(*args):
2775 """CreateDataFromDoubleArray(lldb::ByteOrder endian, uint32_t addr_byte_size, double * array) -> SBData""" 2776 return _lldb.SBData_CreateDataFromDoubleArray(*args)
2777 2778 if _newclass:CreateDataFromDoubleArray = staticmethod(CreateDataFromDoubleArray) 2779 __swig_getmethods__["CreateDataFromDoubleArray"] = lambda x: CreateDataFromDoubleArray
2780 - def SetDataFromCString(self, *args):
2781 """SetDataFromCString(SBData self, str const * data) -> bool""" 2782 return _lldb.SBData_SetDataFromCString(self, *args)
2783
2784 - def SetDataFromUInt64Array(self, *args):
2785 """SetDataFromUInt64Array(SBData self, uint64_t * array) -> bool""" 2786 return _lldb.SBData_SetDataFromUInt64Array(self, *args)
2787
2788 - def SetDataFromUInt32Array(self, *args):
2789 """SetDataFromUInt32Array(SBData self, uint32_t * array) -> bool""" 2790 return _lldb.SBData_SetDataFromUInt32Array(self, *args)
2791
2792 - def SetDataFromSInt64Array(self, *args):
2793 """SetDataFromSInt64Array(SBData self, int64_t * array) -> bool""" 2794 return _lldb.SBData_SetDataFromSInt64Array(self, *args)
2795
2796 - def SetDataFromSInt32Array(self, *args):
2797 """SetDataFromSInt32Array(SBData self, int32_t * array) -> bool""" 2798 return _lldb.SBData_SetDataFromSInt32Array(self, *args)
2799
2800 - def SetDataFromDoubleArray(self, *args):
2801 """SetDataFromDoubleArray(SBData self, double * array) -> bool""" 2802 return _lldb.SBData_SetDataFromDoubleArray(self, *args)
2803
2804 - class read_data_helper:
2805 - def __init__(self, sbdata, readerfunc, item_size):
2806 self.sbdata = sbdata 2807 self.readerfunc = readerfunc 2808 self.item_size = item_size
2809 - def __getitem__(self,key):
2810 if isinstance(key,slice): 2811 list = [] 2812 for x in range(*key.indices(self.__len__())): 2813 list.append(self.__getitem__(x)) 2814 return list 2815 if not (isinstance(key,six.integer_types)): 2816 raise TypeError('must be int') 2817 key = key * self.item_size # SBData uses byte-based indexes, but we want to use itemsize-based indexes here 2818 error = SBError() 2819 my_data = self.readerfunc(self.sbdata,error,key) 2820 if error.Fail(): 2821 raise IndexError(error.GetCString()) 2822 else: 2823 return my_data
2824 - def __len__(self):
2825 return int(self.sbdata.GetByteSize()/self.item_size)
2826 - def all(self):
2827 return self[0:len(self)]
2828 2829 @classmethod
2830 - def CreateDataFromInt (cls, value, size = None, target = None, ptr_size = None, endian = None):
2831 import sys 2832 lldbmodule = sys.modules[cls.__module__] 2833 lldbdict = lldbmodule.__dict__ 2834 if 'target' in lldbdict: 2835 lldbtarget = lldbdict['target'] 2836 else: 2837 lldbtarget = None 2838 if target == None and lldbtarget != None and lldbtarget.IsValid(): 2839 target = lldbtarget 2840 if ptr_size == None: 2841 if target and target.IsValid(): 2842 ptr_size = target.addr_size 2843 else: 2844 ptr_size = 8 2845 if endian == None: 2846 if target and target.IsValid(): 2847 endian = target.byte_order 2848 else: 2849 endian = lldbdict['eByteOrderLittle'] 2850 if size == None: 2851 if value > 2147483647: 2852 size = 8 2853 elif value < -2147483648: 2854 size = 8 2855 elif value > 4294967295: 2856 size = 8 2857 else: 2858 size = 4 2859 if size == 4: 2860 if value < 0: 2861 return SBData().CreateDataFromSInt32Array(endian, ptr_size, [value]) 2862 return SBData().CreateDataFromUInt32Array(endian, ptr_size, [value]) 2863 if size == 8: 2864 if value < 0: 2865 return SBData().CreateDataFromSInt64Array(endian, ptr_size, [value]) 2866 return SBData().CreateDataFromUInt64Array(endian, ptr_size, [value]) 2867 return None
2868
2869 - def _make_helper(self, sbdata, getfunc, itemsize):
2870 return self.read_data_helper(sbdata, getfunc, itemsize)
2871
2872 - def _make_helper_uint8(self):
2873 return self._make_helper(self, SBData.GetUnsignedInt8, 1)
2874
2875 - def _make_helper_uint16(self):
2876 return self._make_helper(self, SBData.GetUnsignedInt16, 2)
2877
2878 - def _make_helper_uint32(self):
2879 return self._make_helper(self, SBData.GetUnsignedInt32, 4)
2880
2881 - def _make_helper_uint64(self):
2882 return self._make_helper(self, SBData.GetUnsignedInt64, 8)
2883
2884 - def _make_helper_sint8(self):
2885 return self._make_helper(self, SBData.GetSignedInt8, 1)
2886
2887 - def _make_helper_sint16(self):
2888 return self._make_helper(self, SBData.GetSignedInt16, 2)
2889
2890 - def _make_helper_sint32(self):
2891 return self._make_helper(self, SBData.GetSignedInt32, 4)
2892
2893 - def _make_helper_sint64(self):
2894 return self._make_helper(self, SBData.GetSignedInt64, 8)
2895
2896 - def _make_helper_float(self):
2897 return self._make_helper(self, SBData.GetFloat, 4)
2898
2899 - def _make_helper_double(self):
2900 return self._make_helper(self, SBData.GetDouble, 8)
2901
2902 - def _read_all_uint8(self):
2903 return self._make_helper_uint8().all()
2904
2905 - def _read_all_uint16(self):
2906 return self._make_helper_uint16().all()
2907
2908 - def _read_all_uint32(self):
2909 return self._make_helper_uint32().all()
2910
2911 - def _read_all_uint64(self):
2912 return self._make_helper_uint64().all()
2913
2914 - def _read_all_sint8(self):
2915 return self._make_helper_sint8().all()
2916
2917 - def _read_all_sint16(self):
2918 return self._make_helper_sint16().all()
2919
2920 - def _read_all_sint32(self):
2921 return self._make_helper_sint32().all()
2922
2923 - def _read_all_sint64(self):
2924 return self._make_helper_sint64().all()
2925
2926 - def _read_all_float(self):
2927 return self._make_helper_float().all()
2928
2929 - def _read_all_double(self):
2930 return self._make_helper_double().all()
2931 2932 __swig_getmethods__["uint8"] = _make_helper_uint8 2933 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.''') 2934 2935 __swig_getmethods__["uint16"] = _make_helper_uint16 2936 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.''') 2937 2938 __swig_getmethods__["uint32"] = _make_helper_uint32 2939 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.''') 2940 2941 __swig_getmethods__["uint64"] = _make_helper_uint64 2942 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.''') 2943 2944 __swig_getmethods__["sint8"] = _make_helper_sint8 2945 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.''') 2946 2947 __swig_getmethods__["sint16"] = _make_helper_sint16 2948 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.''') 2949 2950 __swig_getmethods__["sint32"] = _make_helper_sint32 2951 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.''') 2952 2953 __swig_getmethods__["sint64"] = _make_helper_sint64 2954 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.''') 2955 2956 __swig_getmethods__["float"] = _make_helper_float 2957 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.''') 2958 2959 __swig_getmethods__["double"] = _make_helper_double 2960 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.''') 2961 2962 __swig_getmethods__["uint8s"] = _read_all_uint8 2963 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.''') 2964 2965 __swig_getmethods__["uint16s"] = _read_all_uint16 2966 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.''') 2967 2968 __swig_getmethods__["uint32s"] = _read_all_uint32 2969 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.''') 2970 2971 __swig_getmethods__["uint64s"] = _read_all_uint64 2972 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.''') 2973 2974 __swig_getmethods__["sint8s"] = _read_all_sint8 2975 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.''') 2976 2977 __swig_getmethods__["sint16s"] = _read_all_sint16 2978 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.''') 2979 2980 __swig_getmethods__["sint32s"] = _read_all_sint32 2981 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.''') 2982 2983 __swig_getmethods__["sint64s"] = _read_all_sint64 2984 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.''') 2985 2986 __swig_getmethods__["floats"] = _read_all_float 2987 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.''') 2988 2989 __swig_getmethods__["doubles"] = _read_all_double 2990 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.''') 2991 2992 2993 __swig_getmethods__["byte_order"] = GetByteOrder 2994 __swig_setmethods__["byte_order"] = SetByteOrder 2995 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).''') 2996 2997 __swig_getmethods__["size"] = GetByteSize 2998 if _newclass: size = property(GetByteSize, None, doc='''A read only property that returns the size the same result as GetByteSize().''') 2999 3000
3001 - def __str__(self):
3002 """__str__(SBData self) -> PyObject *""" 3003 return _lldb.SBData___str__(self)
3004 3005 SBData_swigregister = _lldb.SBData_swigregister 3006 SBData_swigregister(SBData)
3007 3008 -def SBData_CreateDataFromCString(*args):
3009 """SBData_CreateDataFromCString(lldb::ByteOrder endian, uint32_t addr_byte_size, str const * data) -> SBData""" 3010 return _lldb.SBData_CreateDataFromCString(*args)
3011
3012 -def SBData_CreateDataFromUInt64Array(*args):
3013 """SBData_CreateDataFromUInt64Array(lldb::ByteOrder endian, uint32_t addr_byte_size, uint64_t * array) -> SBData""" 3014 return _lldb.SBData_CreateDataFromUInt64Array(*args)
3015
3016 -def SBData_CreateDataFromUInt32Array(*args):
3017 """SBData_CreateDataFromUInt32Array(lldb::ByteOrder endian, uint32_t addr_byte_size, uint32_t * array) -> SBData""" 3018 return _lldb.SBData_CreateDataFromUInt32Array(*args)
3019
3020 -def SBData_CreateDataFromSInt64Array(*args):
3021 """SBData_CreateDataFromSInt64Array(lldb::ByteOrder endian, uint32_t addr_byte_size, int64_t * array) -> SBData""" 3022 return _lldb.SBData_CreateDataFromSInt64Array(*args)
3023
3024 -def SBData_CreateDataFromSInt32Array(*args):
3025 """SBData_CreateDataFromSInt32Array(lldb::ByteOrder endian, uint32_t addr_byte_size, int32_t * array) -> SBData""" 3026 return _lldb.SBData_CreateDataFromSInt32Array(*args)
3027
3028 -def SBData_CreateDataFromDoubleArray(*args):
3029 """SBData_CreateDataFromDoubleArray(lldb::ByteOrder endian, uint32_t addr_byte_size, double * array) -> SBData""" 3030 return _lldb.SBData_CreateDataFromDoubleArray(*args)
3031
3032 -class SBDebugger(_object):
3033 """ 3034 SBDebugger is the primordial object that creates SBTargets and provides 3035 access to them. It also manages the overall debugging experiences. 3036 3037 For example (from example/disasm.py), 3038 3039 import lldb 3040 import os 3041 import sys 3042 3043 def disassemble_instructions (insts): 3044 for i in insts: 3045 print i 3046 3047 ... 3048 3049 # Create a new debugger instance 3050 debugger = lldb.SBDebugger.Create() 3051 3052 # When we step or continue, don't return from the function until the process 3053 # stops. We do this by setting the async mode to false. 3054 debugger.SetAsync (False) 3055 3056 # Create a target from a file and arch 3057 print('Creating a target for '%s'' % exe) 3058 3059 target = debugger.CreateTargetWithFileAndArch (exe, lldb.LLDB_ARCH_DEFAULT) 3060 3061 if target: 3062 # If the target is valid set a breakpoint at main 3063 main_bp = target.BreakpointCreateByName (fname, target.GetExecutable().GetFilename()); 3064 3065 print main_bp 3066 3067 # Launch the process. Since we specified synchronous mode, we won't return 3068 # from this function until we hit the breakpoint at main 3069 process = target.LaunchSimple (None, None, os.getcwd()) 3070 3071 # Make sure the launch went ok 3072 if process: 3073 # Print some simple process info 3074 state = process.GetState () 3075 print process 3076 if state == lldb.eStateStopped: 3077 # Get the first thread 3078 thread = process.GetThreadAtIndex (0) 3079 if thread: 3080 # Print some simple thread info 3081 print thread 3082 # Get the first frame 3083 frame = thread.GetFrameAtIndex (0) 3084 if frame: 3085 # Print some simple frame info 3086 print frame 3087 function = frame.GetFunction() 3088 # See if we have debug info (a function) 3089 if function: 3090 # We do have a function, print some info for the function 3091 print function 3092 # Now get all instructions for this function and print them 3093 insts = function.GetInstructions(target) 3094 disassemble_instructions (insts) 3095 else: 3096 # See if we have a symbol in the symbol table for where we stopped 3097 symbol = frame.GetSymbol(); 3098 if symbol: 3099 # We do have a symbol, print some info for the symbol 3100 print symbol 3101 # Now get all instructions for this symbol and print them 3102 insts = symbol.GetInstructions(target) 3103 disassemble_instructions (insts) 3104 3105 registerList = frame.GetRegisters() 3106 print('Frame registers (size of register set = %d):' % registerList.GetSize()) 3107 for value in registerList: 3108 #print value 3109 print('%s (number of children = %d):' % (value.GetName(), value.GetNumChildren())) 3110 for child in value: 3111 print('Name: ', child.GetName(), ' Value: ', child.GetValue()) 3112 3113 print('Hit the breakpoint at main, enter to continue and wait for program to exit or 'Ctrl-D'/'quit' to terminate the program') 3114 next = sys.stdin.readline() 3115 if not next or next.rstrip(' 3116 ') == 'quit': 3117 print('Terminating the inferior process...') 3118 process.Kill() 3119 else: 3120 # Now continue to the program exit 3121 process.Continue() 3122 # When we return from the above function we will hopefully be at the 3123 # program exit. Print out some process info 3124 print process 3125 elif state == lldb.eStateExited: 3126 print('Didn't hit the breakpoint at main, program has exited...') 3127 else: 3128 print('Unexpected process state: %s, killing process...' % debugger.StateAsCString (state)) 3129 process.Kill() 3130 3131 Sometimes you need to create an empty target that will get filled in later. The most common use for this 3132 is to attach to a process by name or pid where you don't know the executable up front. The most convenient way 3133 to do this is: 3134 3135 target = debugger.CreateTarget('') 3136 error = lldb.SBError() 3137 process = target.AttachToProcessWithName(debugger.GetListener(), 'PROCESS_NAME', False, error) 3138 3139 or the equivalent arguments for AttachToProcessWithID. 3140 3141 """ 3142 __swig_setmethods__ = {} 3143 __setattr__ = lambda self, name, value: _swig_setattr(self, SBDebugger, name, value) 3144 __swig_getmethods__ = {} 3145 __getattr__ = lambda self, name: _swig_getattr(self, SBDebugger, name) 3146 __repr__ = _swig_repr
3147 - def Initialize():
3148 """Initialize()""" 3149 return _lldb.SBDebugger_Initialize()
3150 3151 if _newclass:Initialize = staticmethod(Initialize) 3152 __swig_getmethods__["Initialize"] = lambda x: Initialize
3153 - def Terminate():
3154 """Terminate()""" 3155 return _lldb.SBDebugger_Terminate()
3156 3157 if _newclass:Terminate = staticmethod(Terminate) 3158 __swig_getmethods__["Terminate"] = lambda x: Terminate
3159 - def Create(*args):
3160 """ 3161 Create() -> SBDebugger 3162 Create(bool source_init_files) -> SBDebugger 3163 Create(bool source_init_files, lldb::LogOutputCallback log_callback) -> SBDebugger 3164 """ 3165 return _lldb.SBDebugger_Create(*args)
3166 3167 if _newclass:Create = staticmethod(Create) 3168 __swig_getmethods__["Create"] = lambda x: Create
3169 - def Destroy(*args):
3170 """Destroy(SBDebugger debugger)""" 3171 return _lldb.SBDebugger_Destroy(*args)
3172 3173 if _newclass:Destroy = staticmethod(Destroy) 3174 __swig_getmethods__["Destroy"] = lambda x: Destroy
3176 """MemoryPressureDetected()""" 3177 return _lldb.SBDebugger_MemoryPressureDetected()
3178 3179 if _newclass:MemoryPressureDetected = staticmethod(MemoryPressureDetected) 3180 __swig_getmethods__["MemoryPressureDetected"] = lambda x: MemoryPressureDetected
3181 - def __iter__(self): return lldb_iter(self, 'GetNumTargets', 'GetTargetAtIndex')
3182 - def __len__(self): return self.GetNumTargets()
3183 - def __init__(self, *args):
3184 """ 3185 __init__(lldb::SBDebugger self) -> SBDebugger 3186 __init__(lldb::SBDebugger self, SBDebugger rhs) -> SBDebugger 3187 """ 3188 this = _lldb.new_SBDebugger(*args) 3189 try: self.this.append(this) 3190 except: self.this = this
3191 __swig_destroy__ = _lldb.delete_SBDebugger 3192 __del__ = lambda self : None;
3193 - def __nonzero__(self): return self.IsValid()
3194 - def IsValid(self):
3195 """IsValid(SBDebugger self) -> bool""" 3196 return _lldb.SBDebugger_IsValid(self)
3197
3198 - def Clear(self):
3199 """Clear(SBDebugger self)""" 3200 return _lldb.SBDebugger_Clear(self)
3201
3202 - def SetAsync(self, *args):
3203 """SetAsync(SBDebugger self, bool b)""" 3204 return _lldb.SBDebugger_SetAsync(self, *args)
3205
3206 - def GetAsync(self):
3207 """GetAsync(SBDebugger self) -> bool""" 3208 return _lldb.SBDebugger_GetAsync(self)
3209
3210 - def SkipLLDBInitFiles(self, *args):
3211 """SkipLLDBInitFiles(SBDebugger self, bool b)""" 3212 return _lldb.SBDebugger_SkipLLDBInitFiles(self, *args)
3213
3214 - def SetInputFileHandle(self, *args):
3215 """SetInputFileHandle(SBDebugger self, FILE * f, bool transfer_ownership)""" 3216 return _lldb.SBDebugger_SetInputFileHandle(self, *args)
3217
3218 - def SetOutputFileHandle(self, *args):
3219 """SetOutputFileHandle(SBDebugger self, FILE * f, bool transfer_ownership)""" 3220 return _lldb.SBDebugger_SetOutputFileHandle(self, *args)
3221
3222 - def SetErrorFileHandle(self, *args):
3223 """SetErrorFileHandle(SBDebugger self, FILE * f, bool transfer_ownership)""" 3224 return _lldb.SBDebugger_SetErrorFileHandle(self, *args)
3225
3226 - def GetInputFileHandle(self):
3227 """GetInputFileHandle(SBDebugger self) -> FILE *""" 3228 return _lldb.SBDebugger_GetInputFileHandle(self)
3229
3230 - def GetOutputFileHandle(self):
3231 """GetOutputFileHandle(SBDebugger self) -> FILE *""" 3232 return _lldb.SBDebugger_GetOutputFileHandle(self)
3233
3234 - def GetErrorFileHandle(self):
3235 """GetErrorFileHandle(SBDebugger self) -> FILE *""" 3236 return _lldb.SBDebugger_GetErrorFileHandle(self)
3237
3238 - def GetCommandInterpreter(self):
3239 """GetCommandInterpreter(SBDebugger self) -> SBCommandInterpreter""" 3240 return _lldb.SBDebugger_GetCommandInterpreter(self)
3241
3242 - def HandleCommand(self, *args):
3243 """HandleCommand(SBDebugger self, str const * command)""" 3244 return _lldb.SBDebugger_HandleCommand(self, *args)
3245
3246 - def GetListener(self):
3247 """GetListener(SBDebugger self) -> SBListener""" 3248 return _lldb.SBDebugger_GetListener(self)
3249
3250 - def HandleProcessEvent(self, *args):
3251 """HandleProcessEvent(SBDebugger self, SBProcess process, SBEvent event, FILE * out, FILE * err)""" 3252 return _lldb.SBDebugger_HandleProcessEvent(self, *args)
3253
3254 - def CreateTargetWithFileAndTargetTriple(self, *args):
3255 """CreateTargetWithFileAndTargetTriple(SBDebugger self, str const * filename, str const * target_triple) -> SBTarget""" 3256 return _lldb.SBDebugger_CreateTargetWithFileAndTargetTriple(self, *args)
3257
3258 - def CreateTargetWithFileAndArch(self, *args):
3259 """CreateTargetWithFileAndArch(SBDebugger self, str const * filename, str const * archname) -> SBTarget""" 3260 return _lldb.SBDebugger_CreateTargetWithFileAndArch(self, *args)
3261
3262 - def CreateTarget(self, *args):
3263 """ 3264 CreateTarget(SBDebugger self, str const * filename, str const * target_triple, str const * platform_name, bool add_dependent_modules, 3265 SBError sb_error) -> SBTarget 3266 CreateTarget(SBDebugger self, str const * filename) -> SBTarget 3267 """ 3268 return _lldb.SBDebugger_CreateTarget(self, *args)
3269
3270 - def DeleteTarget(self, *args):
3271 """ 3272 DeleteTarget(SBDebugger self, SBTarget target) -> bool 3273 3274 Return true if target is deleted from the target list of the debugger. 3275 """ 3276 return _lldb.SBDebugger_DeleteTarget(self, *args)
3277
3278 - def GetTargetAtIndex(self, *args):
3279 """GetTargetAtIndex(SBDebugger self, uint32_t idx) -> SBTarget""" 3280 return _lldb.SBDebugger_GetTargetAtIndex(self, *args)
3281
3282 - def GetIndexOfTarget(self, *args):
3283 """GetIndexOfTarget(SBDebugger self, SBTarget target) -> uint32_t""" 3284 return _lldb.SBDebugger_GetIndexOfTarget(self, *args)
3285
3286 - def FindTargetWithProcessID(self, *args):
3287 """FindTargetWithProcessID(SBDebugger self, lldb::pid_t pid) -> SBTarget""" 3288 return _lldb.SBDebugger_FindTargetWithProcessID(self, *args)
3289
3290 - def FindTargetWithFileAndArch(self, *args):
3291 """FindTargetWithFileAndArch(SBDebugger self, str const * filename, str const * arch) -> SBTarget""" 3292 return _lldb.SBDebugger_FindTargetWithFileAndArch(self, *args)
3293
3294 - def GetNumTargets(self):
3295 """GetNumTargets(SBDebugger self) -> uint32_t""" 3296 return _lldb.SBDebugger_GetNumTargets(self)
3297
3298 - def GetSelectedTarget(self):
3299 """GetSelectedTarget(SBDebugger self) -> SBTarget""" 3300 return _lldb.SBDebugger_GetSelectedTarget(self)
3301
3302 - def SetSelectedTarget(self, *args):
3303 """SetSelectedTarget(SBDebugger self, SBTarget target)""" 3304 return _lldb.SBDebugger_SetSelectedTarget(self, *args)
3305
3306 - def GetSelectedPlatform(self):
3307 """GetSelectedPlatform(SBDebugger self) -> SBPlatform""" 3308 return _lldb.SBDebugger_GetSelectedPlatform(self)
3309
3310 - def SetSelectedPlatform(self, *args):
3311 """SetSelectedPlatform(SBDebugger self, SBPlatform platform)""" 3312 return _lldb.SBDebugger_SetSelectedPlatform(self, *args)
3313
3314 - def GetSourceManager(self):
3315 """GetSourceManager(SBDebugger self) -> SBSourceManager""" 3316 return _lldb.SBDebugger_GetSourceManager(self)
3317
3318 - def SetCurrentPlatform(self, *args):
3319 """SetCurrentPlatform(SBDebugger self, str const * platform_name) -> SBError""" 3320 return _lldb.SBDebugger_SetCurrentPlatform(self, *args)
3321
3322 - def SetCurrentPlatformSDKRoot(self, *args):
3323 """SetCurrentPlatformSDKRoot(SBDebugger self, str const * sysroot) -> bool""" 3324 return _lldb.SBDebugger_SetCurrentPlatformSDKRoot(self, *args)
3325
3326 - def SetUseExternalEditor(self, *args):
3327 """SetUseExternalEditor(SBDebugger self, bool input) -> bool""" 3328 return _lldb.SBDebugger_SetUseExternalEditor(self, *args)
3329
3330 - def GetUseExternalEditor(self):
3331 """GetUseExternalEditor(SBDebugger self) -> bool""" 3332 return _lldb.SBDebugger_GetUseExternalEditor(self)
3333
3334 - def SetUseColor(self, *args):
3335 """SetUseColor(SBDebugger self, bool use_color) -> bool""" 3336 return _lldb.SBDebugger_SetUseColor(self, *args)
3337
3338 - def GetUseColor(self):
3339 """GetUseColor(SBDebugger self) -> bool""" 3340 return _lldb.SBDebugger_GetUseColor(self)
3341
3342 - def GetDefaultArchitecture(*args):
3343 """GetDefaultArchitecture(str * arch_name, size_t arch_name_len) -> bool""" 3344 return _lldb.SBDebugger_GetDefaultArchitecture(*args)
3345 3346 if _newclass:GetDefaultArchitecture = staticmethod(GetDefaultArchitecture) 3347 __swig_getmethods__["GetDefaultArchitecture"] = lambda x: GetDefaultArchitecture
3348 - def SetDefaultArchitecture(*args):
3349 """SetDefaultArchitecture(str const * arch_name) -> bool""" 3350 return _lldb.SBDebugger_SetDefaultArchitecture(*args)
3351 3352 if _newclass:SetDefaultArchitecture = staticmethod(SetDefaultArchitecture) 3353 __swig_getmethods__["SetDefaultArchitecture"] = lambda x: SetDefaultArchitecture
3354 - def GetScriptingLanguage(self, *args):
3355 """GetScriptingLanguage(SBDebugger self, str const * script_language_name) -> lldb::ScriptLanguage""" 3356 return _lldb.SBDebugger_GetScriptingLanguage(self, *args)
3357
3358 - def GetVersionString():
3359 """GetVersionString() -> str const *""" 3360 return _lldb.SBDebugger_GetVersionString()
3361 3362 if _newclass:GetVersionString = staticmethod(GetVersionString) 3363 __swig_getmethods__["GetVersionString"] = lambda x: GetVersionString
3364 - def StateAsCString(*args):
3365 """StateAsCString(lldb::StateType state) -> str const *""" 3366 return _lldb.SBDebugger_StateAsCString(*args)
3367 3368 if _newclass:StateAsCString = staticmethod(StateAsCString) 3369 __swig_getmethods__["StateAsCString"] = lambda x: StateAsCString
3370 - def StateIsRunningState(*args):
3371 """StateIsRunningState(lldb::StateType state) -> bool""" 3372 return _lldb.SBDebugger_StateIsRunningState(*args)
3373 3374 if _newclass:StateIsRunningState = staticmethod(StateIsRunningState) 3375 __swig_getmethods__["StateIsRunningState"] = lambda x: StateIsRunningState
3376 - def StateIsStoppedState(*args):
3377 """StateIsStoppedState(lldb::StateType state) -> bool""" 3378 return _lldb.SBDebugger_StateIsStoppedState(*args)
3379 3380 if _newclass:StateIsStoppedState = staticmethod(StateIsStoppedState) 3381 __swig_getmethods__["StateIsStoppedState"] = lambda x: StateIsStoppedState
3382 - def EnableLog(self, *args):
3383 """EnableLog(SBDebugger self, str const * channel, str const ** types) -> bool""" 3384 return _lldb.SBDebugger_EnableLog(self, *args)
3385
3386 - def SetLoggingCallback(self, *args):
3387 """SetLoggingCallback(SBDebugger self, lldb::LogOutputCallback log_callback)""" 3388 return _lldb.SBDebugger_SetLoggingCallback(self, *args)
3389
3390 - def DispatchInput(self, *args):
3391 """DispatchInput(SBDebugger self, void const * data)""" 3392 return _lldb.SBDebugger_DispatchInput(self, *args)
3393
3394 - def DispatchInputInterrupt(self):
3395 """DispatchInputInterrupt(SBDebugger self)""" 3396 return _lldb.SBDebugger_DispatchInputInterrupt(self)
3397
3398 - def DispatchInputEndOfFile(self):
3399 """DispatchInputEndOfFile(SBDebugger self)""" 3400 return _lldb.SBDebugger_DispatchInputEndOfFile(self)
3401
3402 - def GetInstanceName(self):
3403 """GetInstanceName(SBDebugger self) -> str const *""" 3404 return _lldb.SBDebugger_GetInstanceName(self)
3405
3406 - def FindDebuggerWithID(*args):
3407 """FindDebuggerWithID(int id) -> SBDebugger""" 3408 return _lldb.SBDebugger_FindDebuggerWithID(*args)
3409 3410 if _newclass:FindDebuggerWithID = staticmethod(FindDebuggerWithID) 3411 __swig_getmethods__["FindDebuggerWithID"] = lambda x: FindDebuggerWithID
3412 - def SetInternalVariable(*args):
3413 """SetInternalVariable(str const * var_name, str const * value, str const * debugger_instance_name) -> SBError""" 3414 return _lldb.SBDebugger_SetInternalVariable(*args)
3415 3416 if _newclass:SetInternalVariable = staticmethod(SetInternalVariable) 3417 __swig_getmethods__["SetInternalVariable"] = lambda x: SetInternalVariable
3418 - def GetInternalVariableValue(*args):
3419 """GetInternalVariableValue(str const * var_name, str const * debugger_instance_name) -> SBStringList""" 3420 return _lldb.SBDebugger_GetInternalVariableValue(*args)
3421 3422 if _newclass:GetInternalVariableValue = staticmethod(GetInternalVariableValue) 3423 __swig_getmethods__["GetInternalVariableValue"] = lambda x: GetInternalVariableValue
3424 - def GetDescription(self, *args):
3425 """GetDescription(SBDebugger self, SBStream description) -> bool""" 3426 return _lldb.SBDebugger_GetDescription(self, *args)
3427
3428 - def GetTerminalWidth(self):
3429 """GetTerminalWidth(SBDebugger self) -> uint32_t""" 3430 return _lldb.SBDebugger_GetTerminalWidth(self)
3431
3432 - def SetTerminalWidth(self, *args):
3433 """SetTerminalWidth(SBDebugger self, uint32_t term_width)""" 3434 return _lldb.SBDebugger_SetTerminalWidth(self, *args)
3435
3436 - def GetID(self):
3437 """GetID(SBDebugger self) -> lldb::user_id_t""" 3438 return _lldb.SBDebugger_GetID(self)
3439
3440 - def GetPrompt(self):
3441 """GetPrompt(SBDebugger self) -> str const *""" 3442 return _lldb.SBDebugger_GetPrompt(self)
3443
3444 - def SetPrompt(self, *args):
3445 """SetPrompt(SBDebugger self, str const * prompt)""" 3446 return _lldb.SBDebugger_SetPrompt(self, *args)
3447
3448 - def GetScriptLanguage(self):
3449 """GetScriptLanguage(SBDebugger self) -> lldb::ScriptLanguage""" 3450 return _lldb.SBDebugger_GetScriptLanguage(self)
3451
3452 - def SetScriptLanguage(self, *args):
3453 """SetScriptLanguage(SBDebugger self, lldb::ScriptLanguage script_lang)""" 3454 return _lldb.SBDebugger_SetScriptLanguage(self, *args)
3455
3456 - def GetCloseInputOnEOF(self):
3457 """GetCloseInputOnEOF(SBDebugger self) -> bool""" 3458 return _lldb.SBDebugger_GetCloseInputOnEOF(self)
3459
3460 - def SetCloseInputOnEOF(self, *args):
3461 """SetCloseInputOnEOF(SBDebugger self, bool b)""" 3462 return _lldb.SBDebugger_SetCloseInputOnEOF(self, *args)
3463
3464 - def GetCategory(self, *args):
3465 """ 3466 GetCategory(SBDebugger self, str const * category_name) -> SBTypeCategory 3467 GetCategory(SBDebugger self, lldb::LanguageType lang_type) -> SBTypeCategory 3468 """ 3469 return _lldb.SBDebugger_GetCategory(self, *args)
3470
3471 - def CreateCategory(self, *args):
3472 """CreateCategory(SBDebugger self, str const * category_name) -> SBTypeCategory""" 3473 return _lldb.SBDebugger_CreateCategory(self, *args)
3474
3475 - def DeleteCategory(self, *args):
3476 """DeleteCategory(SBDebugger self, str const * category_name) -> bool""" 3477 return _lldb.SBDebugger_DeleteCategory(self, *args)
3478
3479 - def GetNumCategories(self):
3480 """GetNumCategories(SBDebugger self) -> uint32_t""" 3481 return _lldb.SBDebugger_GetNumCategories(self)
3482
3483 - def GetCategoryAtIndex(self, *args):
3484 """GetCategoryAtIndex(SBDebugger self, uint32_t arg2) -> SBTypeCategory""" 3485 return _lldb.SBDebugger_GetCategoryAtIndex(self, *args)
3486
3487 - def GetDefaultCategory(self):
3488 """GetDefaultCategory(SBDebugger self) -> SBTypeCategory""" 3489 return _lldb.SBDebugger_GetDefaultCategory(self)
3490
3491 - def GetFormatForType(self, *args):
3492 """GetFormatForType(SBDebugger self, SBTypeNameSpecifier arg2) -> SBTypeFormat""" 3493 return _lldb.SBDebugger_GetFormatForType(self, *args)
3494
3495 - def GetSummaryForType(self, *args):
3496 """GetSummaryForType(SBDebugger self, SBTypeNameSpecifier arg2) -> SBTypeSummary""" 3497 return _lldb.SBDebugger_GetSummaryForType(self, *args)
3498
3499 - def GetFilterForType(self, *args):
3500 """GetFilterForType(SBDebugger self, SBTypeNameSpecifier arg2) -> SBTypeFilter""" 3501 return _lldb.SBDebugger_GetFilterForType(self, *args)
3502
3503 - def GetSyntheticForType(self, *args):
3504 """GetSyntheticForType(SBDebugger self, SBTypeNameSpecifier arg2) -> SBTypeSynthetic""" 3505 return _lldb.SBDebugger_GetSyntheticForType(self, *args)
3506
3507 - def RunCommandInterpreter(self, *args):
3508 """ 3509 RunCommandInterpreter(SBDebugger self, bool auto_handle_events, bool spawn_thread, SBCommandInterpreterRunOptions options, 3510 int & num_errors, bool & quit_requested, bool & stopped_for_crash) 3511 """ 3512 return _lldb.SBDebugger_RunCommandInterpreter(self, *args)
3513
3514 - def RunREPL(self, *args):
3515 """RunREPL(SBDebugger self, lldb::LanguageType language, str const * repl_options) -> SBError""" 3516 return _lldb.SBDebugger_RunREPL(self, *args)
3517
3518 - def __str__(self):
3519 """__str__(SBDebugger self) -> PyObject *""" 3520 return _lldb.SBDebugger___str__(self)
3521 3522 SBDebugger_swigregister = _lldb.SBDebugger_swigregister 3523 SBDebugger_swigregister(SBDebugger)
3524 3525 -def SBDebugger_Initialize():
3526 """SBDebugger_Initialize()""" 3527 return _lldb.SBDebugger_Initialize()
3528
3529 -def SBDebugger_Terminate():
3530 """SBDebugger_Terminate()""" 3531 return _lldb.SBDebugger_Terminate()
3532
3533 -def SBDebugger_Create(*args):
3534 """ 3535 Create() -> SBDebugger 3536 Create(bool source_init_files) -> SBDebugger 3537 SBDebugger_Create(bool source_init_files, lldb::LogOutputCallback log_callback) -> SBDebugger 3538 """ 3539 return _lldb.SBDebugger_Create(*args)
3540
3541 -def SBDebugger_Destroy(*args):
3542 """SBDebugger_Destroy(SBDebugger debugger)""" 3543 return _lldb.SBDebugger_Destroy(*args)
3544
3545 -def SBDebugger_MemoryPressureDetected():
3546 """SBDebugger_MemoryPressureDetected()""" 3547 return _lldb.SBDebugger_MemoryPressureDetected()
3548
3549 -def SBDebugger_GetDefaultArchitecture(*args):
3550 """SBDebugger_GetDefaultArchitecture(str * arch_name, size_t arch_name_len) -> bool""" 3551 return _lldb.SBDebugger_GetDefaultArchitecture(*args)
3552
3553 -def SBDebugger_SetDefaultArchitecture(*args):
3554 """SBDebugger_SetDefaultArchitecture(str const * arch_name) -> bool""" 3555 return _lldb.SBDebugger_SetDefaultArchitecture(*args)
3556
3557 -def SBDebugger_GetVersionString():
3558 """SBDebugger_GetVersionString() -> str const *""" 3559 return _lldb.SBDebugger_GetVersionString()
3560
3561 -def SBDebugger_StateAsCString(*args):
3562 """SBDebugger_StateAsCString(lldb::StateType state) -> str const *""" 3563 return _lldb.SBDebugger_StateAsCString(*args)
3564
3565 -def SBDebugger_StateIsRunningState(*args):
3566 """SBDebugger_StateIsRunningState(lldb::StateType state) -> bool""" 3567 return _lldb.SBDebugger_StateIsRunningState(*args)
3568
3569 -def SBDebugger_StateIsStoppedState(*args):
3570 """SBDebugger_StateIsStoppedState(lldb::StateType state) -> bool""" 3571 return _lldb.SBDebugger_StateIsStoppedState(*args)
3572
3573 -def SBDebugger_FindDebuggerWithID(*args):
3574 """SBDebugger_FindDebuggerWithID(int id) -> SBDebugger""" 3575 return _lldb.SBDebugger_FindDebuggerWithID(*args)
3576
3577 -def SBDebugger_SetInternalVariable(*args):
3578 """SBDebugger_SetInternalVariable(str const * var_name, str const * value, str const * debugger_instance_name) -> SBError""" 3579 return _lldb.SBDebugger_SetInternalVariable(*args)
3580
3581 -def SBDebugger_GetInternalVariableValue(*args):
3582 """SBDebugger_GetInternalVariableValue(str const * var_name, str const * debugger_instance_name) -> SBStringList""" 3583 return _lldb.SBDebugger_GetInternalVariableValue(*args)
3584
3585 -class SBDeclaration(_object):
3586 """Specifies an association with a line and column for a variable.""" 3587 __swig_setmethods__ = {} 3588 __setattr__ = lambda self, name, value: _swig_setattr(self, SBDeclaration, name, value) 3589 __swig_getmethods__ = {} 3590 __getattr__ = lambda self, name: _swig_getattr(self, SBDeclaration, name) 3591 __repr__ = _swig_repr
3592 - def __init__(self, *args):
3593 """ 3594 __init__(lldb::SBDeclaration self) -> SBDeclaration 3595 __init__(lldb::SBDeclaration self, SBDeclaration rhs) -> SBDeclaration 3596 """ 3597 this = _lldb.new_SBDeclaration(*args) 3598 try: self.this.append(this) 3599 except: self.this = this
3600 __swig_destroy__ = _lldb.delete_SBDeclaration 3601 __del__ = lambda self : None;
3602 - def __nonzero__(self): return self.IsValid()
3603 - def IsValid(self):
3604 """IsValid(SBDeclaration self) -> bool""" 3605 return _lldb.SBDeclaration_IsValid(self)
3606
3607 - def GetFileSpec(self):
3608 """GetFileSpec(SBDeclaration self) -> SBFileSpec""" 3609 return _lldb.SBDeclaration_GetFileSpec(self)
3610
3611 - def GetLine(self):
3612 """GetLine(SBDeclaration self) -> uint32_t""" 3613 return _lldb.SBDeclaration_GetLine(self)
3614
3615 - def GetColumn(self):
3616 """GetColumn(SBDeclaration self) -> uint32_t""" 3617 return _lldb.SBDeclaration_GetColumn(self)
3618
3619 - def GetDescription(self, *args):
3620 """GetDescription(SBDeclaration self, SBStream description) -> bool""" 3621 return _lldb.SBDeclaration_GetDescription(self, *args)
3622
3623 - def SetFileSpec(self, *args):
3624 """SetFileSpec(SBDeclaration self, SBFileSpec filespec)""" 3625 return _lldb.SBDeclaration_SetFileSpec(self, *args)
3626
3627 - def SetLine(self, *args):
3628 """SetLine(SBDeclaration self, uint32_t line)""" 3629 return _lldb.SBDeclaration_SetLine(self, *args)
3630
3631 - def SetColumn(self, *args):
3632 """SetColumn(SBDeclaration self, uint32_t column)""" 3633 return _lldb.SBDeclaration_SetColumn(self, *args)
3634
3635 - def __eq__(self, *args):
3636 """__eq__(SBDeclaration self, SBDeclaration rhs) -> bool""" 3637 return _lldb.SBDeclaration___eq__(self, *args)
3638
3639 - def __ne__(self, *args):
3640 """__ne__(SBDeclaration self, SBDeclaration rhs) -> bool""" 3641 return _lldb.SBDeclaration___ne__(self, *args)
3642 3643 __swig_getmethods__["file"] = GetFileSpec 3644 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.''') 3645 3646 __swig_getmethods__["line"] = GetLine 3647 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.''') 3648 3649 __swig_getmethods__["column"] = GetColumn 3650 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.''') 3651
3652 - def __str__(self):
3653 """__str__(SBDeclaration self) -> PyObject *""" 3654 return _lldb.SBDeclaration___str__(self)
3655
3656 - def __eq__(self, rhs):
3657 if not isinstance(rhs, type(self)): 3658 return False 3659 3660 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
3661
3662 - def __ne__(self, rhs):
3663 if not isinstance(rhs, type(self)): 3664 return True 3665 3666 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
3667 3668 SBDeclaration_swigregister = _lldb.SBDeclaration_swigregister 3669 SBDeclaration_swigregister(SBDeclaration)
3670 3671 -class SBError(_object):
3672 """ 3673 Represents a container for holding any error code. 3674 3675 For example (from test/python_api/hello_world/TestHelloWorld.py), 3676 3677 def hello_world_attach_with_id_api(self): 3678 '''Create target, spawn a process, and attach to it by id.''' 3679 3680 target = self.dbg.CreateTarget(self.exe) 3681 3682 # Spawn a new process and don't display the stdout if not in TraceOn() mode. 3683 import subprocess 3684 popen = subprocess.Popen([self.exe, 'abc', 'xyz'], 3685 stdout = open(os.devnull, 'w') if not self.TraceOn() else None) 3686 3687 listener = lldb.SBListener('my.attach.listener') 3688 error = lldb.SBError() 3689 process = target.AttachToProcessWithID(listener, popen.pid, error) 3690 3691 self.assertTrue(error.Success() and process, PROCESS_IS_VALID) 3692 3693 # Let's check the stack traces of the attached process. 3694 import lldbutil 3695 stacktraces = lldbutil.print_stacktraces(process, string_buffer=True) 3696 self.expect(stacktraces, exe=False, 3697 substrs = ['main.c:%d' % self.line2, 3698 '(int)argc=3']) 3699 3700 listener = lldb.SBListener('my.attach.listener') 3701 error = lldb.SBError() 3702 process = target.AttachToProcessWithID(listener, popen.pid, error) 3703 3704 self.assertTrue(error.Success() and process, PROCESS_IS_VALID) 3705 3706 checks that after the attach, there is no error condition by asserting 3707 that error.Success() is True and we get back a valid process object. 3708 3709 And (from test/python_api/event/TestEvent.py), 3710 3711 # Now launch the process, and do not stop at entry point. 3712 error = lldb.SBError() 3713 process = target.Launch(listener, None, None, None, None, None, None, 0, False, error) 3714 self.assertTrue(error.Success() and process, PROCESS_IS_VALID) 3715 3716 checks that after calling the target.Launch() method there's no error 3717 condition and we get back a void process object. 3718 3719 """ 3720 __swig_setmethods__ = {} 3721 __setattr__ = lambda self, name, value: _swig_setattr(self, SBError, name, value) 3722 __swig_getmethods__ = {} 3723 __getattr__ = lambda self, name: _swig_getattr(self, SBError, name) 3724 __repr__ = _swig_repr
3725 - def __init__(self, *args):
3726 """ 3727 __init__(lldb::SBError self) -> SBError 3728 __init__(lldb::SBError self, SBError rhs) -> SBError 3729 """ 3730 this = _lldb.new_SBError(*args) 3731 try: self.this.append(this) 3732 except: self.this = this
3733 __swig_destroy__ = _lldb.delete_SBError 3734 __del__ = lambda self : None;
3735 - def GetCString(self):
3736 """GetCString(SBError self) -> str const *""" 3737 return _lldb.SBError_GetCString(self)
3738
3739 - def Clear(self):
3740 """Clear(SBError self)""" 3741 return _lldb.SBError_Clear(self)
3742
3743 - def Fail(self):
3744 """Fail(SBError self) -> bool""" 3745 return _lldb.SBError_Fail(self)
3746
3747 - def Success(self):
3748 """Success(SBError self) -> bool""" 3749 return _lldb.SBError_Success(self)
3750
3751 - def GetError(self):
3752 """GetError(SBError self) -> uint32_t""" 3753 return _lldb.SBError_GetError(self)
3754
3755 - def GetType(self):
3756 """GetType(SBError self) -> lldb::ErrorType""" 3757 return _lldb.SBError_GetType(self)
3758
3759 - def SetError(self, *args):
3760 """SetError(SBError self, uint32_t err, lldb::ErrorType type)""" 3761 return _lldb.SBError_SetError(self, *args)
3762
3763 - def SetErrorToErrno(self):
3764 """SetErrorToErrno(SBError self)""" 3765 return _lldb.SBError_SetErrorToErrno(self)
3766
3767 - def SetErrorToGenericError(self):
3768 """SetErrorToGenericError(SBError self)""" 3769 return _lldb.SBError_SetErrorToGenericError(self)
3770
3771 - def SetErrorString(self, *args):
3772 """SetErrorString(SBError self, str const * err_str)""" 3773 return _lldb.SBError_SetErrorString(self, *args)
3774
3775 - def SetErrorStringWithFormat(self, *args):
3776 """ 3777 SetErrorStringWithFormat(SBError self, str const * format, str * str1=None, str * str2=None, str * str3=None) -> int 3778 SetErrorStringWithFormat(SBError self, str const * format, str * str1=None, str * str2=None) -> int 3779 SetErrorStringWithFormat(SBError self, str const * format, str * str1=None) -> int 3780 SetErrorStringWithFormat(SBError self, str const * format) -> int 3781 """ 3782 return _lldb.SBError_SetErrorStringWithFormat(self, *args)
3783
3784 - def __nonzero__(self): return self.IsValid()
3785 - def IsValid(self):
3786 """IsValid(SBError self) -> bool""" 3787 return _lldb.SBError_IsValid(self)
3788
3789 - def GetDescription(self, *args):
3790 """GetDescription(SBError self, SBStream description) -> bool""" 3791 return _lldb.SBError_GetDescription(self, *args)
3792 3793 __swig_getmethods__["value"] = GetError 3794 if _newclass: value = property(GetError, None, doc='''A read only property that returns the same result as GetError().''') 3795 3796 __swig_getmethods__["fail"] = Fail 3797 if _newclass: fail = property(Fail, None, doc='''A read only property that returns the same result as Fail().''') 3798 3799 __swig_getmethods__["success"] = Success 3800 if _newclass: success = property(Success, None, doc='''A read only property that returns the same result as Success().''') 3801 3802 __swig_getmethods__["description"] = GetCString 3803 if _newclass: description = property(GetCString, None, doc='''A read only property that returns the same result as GetCString().''') 3804 3805 __swig_getmethods__["type"] = GetType 3806 if _newclass: type = property(GetType, None, doc='''A read only property that returns the same result as GetType().''') 3807 3808
3809 - def __str__(self):
3810 """__str__(SBError self) -> PyObject *""" 3811 return _lldb.SBError___str__(self)
3812 3813 SBError_swigregister = _lldb.SBError_swigregister 3814 SBError_swigregister(SBError)
3815 3816 -class SBEvent(_object):
3817 """ 3818 API clients can register to receive events. 3819 3820 For example, check out the following output: 3821 3822 Try wait for event... 3823 Event description: 0x103d0bb70 Event: broadcaster = 0x1009c8410, type = 0x00000001, data = { process = 0x1009c8400 (pid = 21528), state = running} 3824 Event data flavor: Process::ProcessEventData 3825 Process state: running 3826 3827 Try wait for event... 3828 Event description: 0x103a700a0 Event: broadcaster = 0x1009c8410, type = 0x00000001, data = { process = 0x1009c8400 (pid = 21528), state = stopped} 3829 Event data flavor: Process::ProcessEventData 3830 Process state: stopped 3831 3832 Try wait for event... 3833 Event description: 0x103d0d4a0 Event: broadcaster = 0x1009c8410, type = 0x00000001, data = { process = 0x1009c8400 (pid = 21528), state = exited} 3834 Event data flavor: Process::ProcessEventData 3835 Process state: exited 3836 3837 Try wait for event... 3838 timeout occurred waiting for event... 3839 3840 from test/python_api/event/TestEventspy: 3841 3842 def do_listen_for_and_print_event(self): 3843 '''Create a listener and use SBEvent API to print the events received.''' 3844 exe = os.path.join(os.getcwd(), 'a.out') 3845 3846 # Create a target by the debugger. 3847 target = self.dbg.CreateTarget(exe) 3848 self.assertTrue(target, VALID_TARGET) 3849 3850 # Now create a breakpoint on main.c by name 'c'. 3851 breakpoint = target.BreakpointCreateByName('c', 'a.out') 3852 3853 # Now launch the process, and do not stop at the entry point. 3854 process = target.LaunchSimple(None, None, os.getcwd()) 3855 self.assertTrue(process.GetState() == lldb.eStateStopped, 3856 PROCESS_STOPPED) 3857 3858 # Get a handle on the process's broadcaster. 3859 broadcaster = process.GetBroadcaster() 3860 3861 # Create an empty event object. 3862 event = lldb.SBEvent() 3863 3864 # Create a listener object and register with the broadcaster. 3865 listener = lldb.SBListener('my listener') 3866 rc = broadcaster.AddListener(listener, lldb.SBProcess.eBroadcastBitStateChanged) 3867 self.assertTrue(rc, 'AddListener successfully retruns') 3868 3869 traceOn = self.TraceOn() 3870 if traceOn: 3871 lldbutil.print_stacktraces(process) 3872 3873 # Create MyListeningThread class to wait for any kind of event. 3874 import threading 3875 class MyListeningThread(threading.Thread): 3876 def run(self): 3877 count = 0 3878 # Let's only try at most 4 times to retrieve any kind of event. 3879 # After that, the thread exits. 3880 while not count > 3: 3881 if traceOn: 3882 print('Try wait for event...') 3883 if listener.WaitForEventForBroadcasterWithType(5, 3884 broadcaster, 3885 lldb.SBProcess.eBroadcastBitStateChanged, 3886 event): 3887 if traceOn: 3888 desc = lldbutil.get_description(event)) 3889 print('Event description:', desc) 3890 print('Event data flavor:', event.GetDataFlavor()) 3891 print('Process state:', lldbutil.state_type_to_str(process.GetState())) 3892 print() 3893 else: 3894 if traceOn: 3895 print 'timeout occurred waiting for event...' 3896 count = count + 1 3897 return 3898 3899 # Let's start the listening thread to retrieve the events. 3900 my_thread = MyListeningThread() 3901 my_thread.start() 3902 3903 # Use Python API to continue the process. The listening thread should be 3904 # able to receive the state changed events. 3905 process.Continue() 3906 3907 # Use Python API to kill the process. The listening thread should be 3908 # able to receive the state changed event, too. 3909 process.Kill() 3910 3911 # Wait until the 'MyListeningThread' terminates. 3912 my_thread.join() 3913 3914 """ 3915 __swig_setmethods__ = {} 3916 __setattr__ = lambda self, name, value: _swig_setattr(self, SBEvent, name, value) 3917 __swig_getmethods__ = {} 3918 __getattr__ = lambda self, name: _swig_getattr(self, SBEvent, name) 3919 __repr__ = _swig_repr
3920 - def __init__(self, *args):
3921 """ 3922 __init__(lldb::SBEvent self) -> SBEvent 3923 __init__(lldb::SBEvent self, SBEvent rhs) -> SBEvent 3924 __init__(self, int type, str data) -> SBEvent (make an event that contains a C string) 3925 """ 3926 this = _lldb.new_SBEvent(*args) 3927 try: self.this.append(this) 3928 except: self.this = this
3929 __swig_destroy__ = _lldb.delete_SBEvent 3930 __del__ = lambda self : None;
3931 - def __nonzero__(self): return self.IsValid()
3932 - def IsValid(self):
3933 """IsValid(SBEvent self) -> bool""" 3934 return _lldb.SBEvent_IsValid(self)
3935
3936 - def GetDataFlavor(self):
3937 """GetDataFlavor(SBEvent self) -> str const *""" 3938 return _lldb.SBEvent_GetDataFlavor(self)
3939
3940 - def GetType(self):
3941 """GetType(SBEvent self) -> uint32_t""" 3942 return _lldb.SBEvent_GetType(self)
3943
3944 - def GetBroadcaster(self):
3945 """GetBroadcaster(SBEvent self) -> SBBroadcaster""" 3946 return _lldb.SBEvent_GetBroadcaster(self)
3947
3948 - def GetBroadcasterClass(self):
3949 """GetBroadcasterClass(SBEvent self) -> str const *""" 3950 return _lldb.SBEvent_GetBroadcasterClass(self)
3951
3952 - def BroadcasterMatchesRef(self, *args):
3953 """BroadcasterMatchesRef(SBEvent self, SBBroadcaster broadcaster) -> bool""" 3954 return _lldb.SBEvent_BroadcasterMatchesRef(self, *args)
3955
3956 - def Clear(self):
3957 """Clear(SBEvent self)""" 3958 return _lldb.SBEvent_Clear(self)
3959
3960 - def GetCStringFromEvent(*args):
3961 """GetCStringFromEvent(SBEvent event) -> str const *""" 3962 return _lldb.SBEvent_GetCStringFromEvent(*args)
3963 3964 if _newclass:GetCStringFromEvent = staticmethod(GetCStringFromEvent) 3965 __swig_getmethods__["GetCStringFromEvent"] = lambda x: GetCStringFromEvent
3966 - def GetDescription(self, *args):
3967 """GetDescription(SBEvent self, SBStream description) -> bool""" 3968 return _lldb.SBEvent_GetDescription(self, *args)
3969 3970 SBEvent_swigregister = _lldb.SBEvent_swigregister 3971 SBEvent_swigregister(SBEvent)
3972 3973 -def SBEvent_GetCStringFromEvent(*args):
3974 """SBEvent_GetCStringFromEvent(SBEvent event) -> str const *""" 3975 return _lldb.SBEvent_GetCStringFromEvent(*args)
3976
3977 -class SBExecutionContext(_object):
3978 """Proxy of C++ lldb::SBExecutionContext class""" 3979 __swig_setmethods__ = {} 3980 __setattr__ = lambda self, name, value: _swig_setattr(self, SBExecutionContext, name, value) 3981 __swig_getmethods__ = {} 3982 __getattr__ = lambda self, name: _swig_getattr(self, SBExecutionContext, name) 3983 __repr__ = _swig_repr
3984 - def __init__(self, *args):
3985 """ 3986 __init__(lldb::SBExecutionContext self) -> SBExecutionContext 3987 __init__(lldb::SBExecutionContext self, SBExecutionContext rhs) -> SBExecutionContext 3988 __init__(lldb::SBExecutionContext self, SBTarget target) -> SBExecutionContext 3989 __init__(lldb::SBExecutionContext self, SBProcess process) -> SBExecutionContext 3990 __init__(lldb::SBExecutionContext self, SBThread thread) -> SBExecutionContext 3991 __init__(lldb::SBExecutionContext self, SBFrame frame) -> SBExecutionContext 3992 """ 3993 this = _lldb.new_SBExecutionContext(*args) 3994 try: self.this.append(this) 3995 except: self.this = this
3996 __swig_destroy__ = _lldb.delete_SBExecutionContext 3997 __del__ = lambda self : None;
3998 - def GetTarget(self):
3999 """GetTarget(SBExecutionContext self) -> SBTarget""" 4000 return _lldb.SBExecutionContext_GetTarget(self)
4001
4002 - def GetProcess(self):
4003 """GetProcess(SBExecutionContext self) -> SBProcess""" 4004 return _lldb.SBExecutionContext_GetProcess(self)
4005
4006 - def GetThread(self):
4007 """GetThread(SBExecutionContext self) -> SBThread""" 4008 return _lldb.SBExecutionContext_GetThread(self)
4009
4010 - def GetFrame(self):
4011 """GetFrame(SBExecutionContext self) -> SBFrame""" 4012 return _lldb.SBExecutionContext_GetFrame(self)
4013 4014 __swig_getmethods__["target"] = GetTarget 4015 if _newclass: target = property(GetTarget, None, doc='''A read only property that returns the same result as GetTarget().''') 4016 4017 __swig_getmethods__["process"] = GetProcess 4018 if _newclass: process = property(GetProcess, None, doc='''A read only property that returns the same result as GetProcess().''') 4019 4020 __swig_getmethods__["thread"] = GetThread 4021 if _newclass: thread = property(GetThread, None, doc='''A read only property that returns the same result as GetThread().''') 4022 4023 __swig_getmethods__["frame"] = GetFrame 4024 if _newclass: frame = property(GetFrame, None, doc='''A read only property that returns the same result as GetFrame().''') 4025 4026 SBExecutionContext_swigregister = _lldb.SBExecutionContext_swigregister 4027 SBExecutionContext_swigregister(SBExecutionContext)
4028 4029 -class SBExpressionOptions(_object):
4030 """A container for options to use when evaluating expressions.""" 4031 __swig_setmethods__ = {} 4032 __setattr__ = lambda self, name, value: _swig_setattr(self, SBExpressionOptions, name, value) 4033 __swig_getmethods__ = {} 4034 __getattr__ = lambda self, name: _swig_getattr(self, SBExpressionOptions, name) 4035 __repr__ = _swig_repr
4036 - def __init__(self, *args):
4037 """ 4038 __init__(lldb::SBExpressionOptions self) -> SBExpressionOptions 4039 __init__(lldb::SBExpressionOptions self, SBExpressionOptions rhs) -> SBExpressionOptions 4040 """ 4041 this = _lldb.new_SBExpressionOptions(*args) 4042 try: self.this.append(this) 4043 except: self.this = this
4044 __swig_destroy__ = _lldb.delete_SBExpressionOptions 4045 __del__ = lambda self : None;
4046 - def GetCoerceResultToId(self):
4047 """GetCoerceResultToId(SBExpressionOptions self) -> bool""" 4048 return _lldb.SBExpressionOptions_GetCoerceResultToId(self)
4049
4050 - def SetCoerceResultToId(self, coerce=True):
4051 """ 4052 SetCoerceResultToId(SBExpressionOptions self, bool coerce=True) 4053 SetCoerceResultToId(SBExpressionOptions self) 4054 4055 Sets whether to coerce the expression result to ObjC id type after evaluation. 4056 """ 4057 return _lldb.SBExpressionOptions_SetCoerceResultToId(self, coerce)
4058
4059 - def GetUnwindOnError(self):
4060 """GetUnwindOnError(SBExpressionOptions self) -> bool""" 4061 return _lldb.SBExpressionOptions_GetUnwindOnError(self)
4062
4063 - def SetUnwindOnError(self, unwind=True):
4064 """ 4065 SetUnwindOnError(SBExpressionOptions self, bool unwind=True) 4066 SetUnwindOnError(SBExpressionOptions self) 4067 4068 Sets whether to unwind the expression stack on error. 4069 """ 4070 return _lldb.SBExpressionOptions_SetUnwindOnError(self, unwind)
4071
4072 - def GetIgnoreBreakpoints(self):
4073 """GetIgnoreBreakpoints(SBExpressionOptions self) -> bool""" 4074 return _lldb.SBExpressionOptions_GetIgnoreBreakpoints(self)
4075
4076 - def SetIgnoreBreakpoints(self, ignore=True):
4077 """ 4078 SetIgnoreBreakpoints(SBExpressionOptions self, bool ignore=True) 4079 SetIgnoreBreakpoints(SBExpressionOptions self) 4080 """ 4081 return _lldb.SBExpressionOptions_SetIgnoreBreakpoints(self, ignore)
4082
4083 - def GetFetchDynamicValue(self):
4084 """GetFetchDynamicValue(SBExpressionOptions self) -> lldb::DynamicValueType""" 4085 return _lldb.SBExpressionOptions_GetFetchDynamicValue(self)
4086
4087 - def SetFetchDynamicValue(self, *args):
4088 """ 4089 SetFetchDynamicValue(SBExpressionOptions self, lldb::DynamicValueType dynamic=eDynamicCanRunTarget) 4090 SetFetchDynamicValue(SBExpressionOptions self) 4091 4092 Sets whether to cast the expression result to its dynamic type. 4093 """ 4094 return _lldb.SBExpressionOptions_SetFetchDynamicValue(self, *args)
4095
4096 - def GetTimeoutInMicroSeconds(self):
4097 """GetTimeoutInMicroSeconds(SBExpressionOptions self) -> uint32_t""" 4098 return _lldb.SBExpressionOptions_GetTimeoutInMicroSeconds(self)
4099
4100 - def SetTimeoutInMicroSeconds(self, timeout=0):
4101 """ 4102 SetTimeoutInMicroSeconds(SBExpressionOptions self, uint32_t timeout=0) 4103 SetTimeoutInMicroSeconds(SBExpressionOptions self) 4104 4105 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. 4106 """ 4107 return _lldb.SBExpressionOptions_SetTimeoutInMicroSeconds(self, timeout)
4108
4109 - def GetOneThreadTimeoutInMicroSeconds(self):
4110 """GetOneThreadTimeoutInMicroSeconds(SBExpressionOptions self) -> uint32_t""" 4111 return _lldb.SBExpressionOptions_GetOneThreadTimeoutInMicroSeconds(self)
4112
4113 - def SetOneThreadTimeoutInMicroSeconds(self, timeout=0):
4114 """ 4115 SetOneThreadTimeoutInMicroSeconds(SBExpressionOptions self, uint32_t timeout=0) 4116 SetOneThreadTimeoutInMicroSeconds(SBExpressionOptions self) 4117 """ 4118 return _lldb.SBExpressionOptions_SetOneThreadTimeoutInMicroSeconds(self, timeout)
4119
4120 - def GetTryAllThreads(self):
4121 """GetTryAllThreads(SBExpressionOptions self) -> bool""" 4122 return _lldb.SBExpressionOptions_GetTryAllThreads(self)
4123
4124 - def SetTryAllThreads(self, run_others=True):
4125 """ 4126 SetTryAllThreads(SBExpressionOptions self, bool run_others=True) 4127 SetTryAllThreads(SBExpressionOptions self) 4128 4129 Sets whether to run all threads if the expression does not complete on one thread. 4130 """ 4131 return _lldb.SBExpressionOptions_SetTryAllThreads(self, run_others)
4132
4133 - def GetStopOthers(self):
4134 """GetStopOthers(SBExpressionOptions self) -> bool""" 4135 return _lldb.SBExpressionOptions_GetStopOthers(self)
4136
4137 - def SetStopOthers(self, stop_others=True):
4138 """ 4139 SetStopOthers(SBExpressionOptions self, bool stop_others=True) 4140 SetStopOthers(SBExpressionOptions self) 4141 """ 4142 return _lldb.SBExpressionOptions_SetStopOthers(self, stop_others)
4143
4144 - def GetTrapExceptions(self):
4145 """GetTrapExceptions(SBExpressionOptions self) -> bool""" 4146 return _lldb.SBExpressionOptions_GetTrapExceptions(self)
4147
4148 - def SetTrapExceptions(self, trap_exceptions=True):
4149 """ 4150 SetTrapExceptions(SBExpressionOptions self, bool trap_exceptions=True) 4151 SetTrapExceptions(SBExpressionOptions self) 4152 """ 4153 return _lldb.SBExpressionOptions_SetTrapExceptions(self, trap_exceptions)
4154
4155 - def SetLanguage(self, *args):
4156 """ 4157 SetLanguage(SBExpressionOptions self, lldb::LanguageType language) 4158 4159 Sets the language that LLDB should assume the expression is written in 4160 """ 4161 return _lldb.SBExpressionOptions_SetLanguage(self, *args)
4162
4163 - def GetGenerateDebugInfo(self):
4164 """GetGenerateDebugInfo(SBExpressionOptions self) -> bool""" 4165 return _lldb.SBExpressionOptions_GetGenerateDebugInfo(self)
4166
4167 - def SetGenerateDebugInfo(self, b=True):
4168 """ 4169 SetGenerateDebugInfo(SBExpressionOptions self, bool b=True) 4170 SetGenerateDebugInfo(SBExpressionOptions self) 4171 4172 Sets whether to generate debug information for the expression and also controls if a SBModule is generated. 4173 """ 4174 return _lldb.SBExpressionOptions_SetGenerateDebugInfo(self, b)
4175
4176 - def GetSuppressPersistentResult(self):
4177 """GetSuppressPersistentResult(SBExpressionOptions self) -> bool""" 4178 return _lldb.SBExpressionOptions_GetSuppressPersistentResult(self)
4179
4180 - def SetSuppressPersistentResult(self, b=False):
4181 """ 4182 SetSuppressPersistentResult(SBExpressionOptions self, bool b=False) 4183 SetSuppressPersistentResult(SBExpressionOptions self) 4184 4185 Sets whether to produce a persistent result that can be used in future expressions. 4186 """ 4187 return _lldb.SBExpressionOptions_SetSuppressPersistentResult(self, b)
4188
4189 - def GetPrefix(self):
4190 """ 4191 GetPrefix(SBExpressionOptions self) -> str const * 4192 4193 Gets the prefix to use for this expression. 4194 """ 4195 return _lldb.SBExpressionOptions_GetPrefix(self)
4196
4197 - def SetPrefix(self, *args):
4198 """ 4199 SetPrefix(SBExpressionOptions self, str const * prefix) 4200 4201 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. 4202 """ 4203 return _lldb.SBExpressionOptions_SetPrefix(self, *args)
4204
4205 - def SetAutoApplyFixIts(self, b=True):
4206 """ 4207 SetAutoApplyFixIts(SBExpressionOptions self, bool b=True) 4208 SetAutoApplyFixIts(SBExpressionOptions self) 4209 4210 Sets whether to auto-apply fix-it hints to the expression being evaluated. 4211 """ 4212 return _lldb.SBExpressionOptions_SetAutoApplyFixIts(self, b)
4213
4214 - def GetAutoApplyFixIts(self):
4215 """ 4216 GetAutoApplyFixIts(SBExpressionOptions self) -> bool 4217 4218 Gets whether to auto-apply fix-it hints to an expression. 4219 """ 4220 return _lldb.SBExpressionOptions_GetAutoApplyFixIts(self)
4221
4222 - def GetTopLevel(self):
4223 """GetTopLevel(SBExpressionOptions self) -> bool""" 4224 return _lldb.SBExpressionOptions_GetTopLevel(self)
4225
4226 - def SetTopLevel(self, b=True):
4227 """ 4228 SetTopLevel(SBExpressionOptions self, bool b=True) 4229 SetTopLevel(SBExpressionOptions self) 4230 """ 4231 return _lldb.SBExpressionOptions_SetTopLevel(self, b)
4232 4233 SBExpressionOptions_swigregister = _lldb.SBExpressionOptions_swigregister 4234 SBExpressionOptions_swigregister(SBExpressionOptions)
4235 4236 -class SBFileSpec(_object):
4237 """ 4238 Represents a file specification that divides the path into a directory and 4239 basename. The string values of the paths are put into uniqued string pools 4240 for fast comparisons and efficient memory usage. 4241 4242 For example, the following code 4243 4244 lineEntry = context.GetLineEntry() 4245 self.expect(lineEntry.GetFileSpec().GetDirectory(), 'The line entry should have the correct directory', 4246 exe=False, 4247 substrs = [self.mydir]) 4248 self.expect(lineEntry.GetFileSpec().GetFilename(), 'The line entry should have the correct filename', 4249 exe=False, 4250 substrs = ['main.c']) 4251 self.assertTrue(lineEntry.GetLine() == self.line, 4252 'The line entry's line number should match ') 4253 4254 gets the line entry from the symbol context when a thread is stopped. 4255 It gets the file spec corresponding to the line entry and checks that 4256 the filename and the directory matches what we expect. 4257 4258 """ 4259 __swig_setmethods__ = {} 4260 __setattr__ = lambda self, name, value: _swig_setattr(self, SBFileSpec, name, value) 4261 __swig_getmethods__ = {} 4262 __getattr__ = lambda self, name: _swig_getattr(self, SBFileSpec, name) 4263 __repr__ = _swig_repr
4264 - def __eq__(self, other): return isinstance(other, SBFileSpec) and self.GetFilename() == other.GetFilename() and self.GetDirectory() == other.GetDirectory()
4265 - def __ne__(self, other): return not self.__eq__(other)
4266 - def __init__(self, *args):
4267 """ 4268 __init__(lldb::SBFileSpec self) -> SBFileSpec 4269 __init__(lldb::SBFileSpec self, SBFileSpec rhs) -> SBFileSpec 4270 __init__(lldb::SBFileSpec self, str const * path) -> SBFileSpec 4271 __init__(lldb::SBFileSpec self, str const * path, bool resolve) -> SBFileSpec 4272 """ 4273 this = _lldb.new_SBFileSpec(*args) 4274 try: self.this.append(this) 4275 except: self.this = this
4276 __swig_destroy__ = _lldb.delete_SBFileSpec 4277 __del__ = lambda self : None;
4278 - def __nonzero__(self): return self.IsValid()
4279 - def IsValid(self):
4280 """IsValid(SBFileSpec self) -> bool""" 4281 return _lldb.SBFileSpec_IsValid(self)
4282
4283 - def Exists(self):
4284 """Exists(SBFileSpec self) -> bool""" 4285 return _lldb.SBFileSpec_Exists(self)
4286
4287 - def ResolveExecutableLocation(self):
4288 """ResolveExecutableLocation(SBFileSpec self) -> bool""" 4289 return _lldb.SBFileSpec_ResolveExecutableLocation(self)
4290
4291 - def GetFilename(self):
4292 """GetFilename(SBFileSpec self) -> str const *""" 4293 return _lldb.SBFileSpec_GetFilename(self)
4294
4295 - def GetDirectory(self):
4296 """GetDirectory(SBFileSpec self) -> str const *""" 4297 return _lldb.SBFileSpec_GetDirectory(self)
4298
4299 - def SetFilename(self, *args):
4300 """SetFilename(SBFileSpec self, str const * filename)""" 4301 return _lldb.SBFileSpec_SetFilename(self, *args)
4302
4303 - def SetDirectory(self, *args):
4304 """SetDirectory(SBFileSpec self, str const * directory)""" 4305 return _lldb.SBFileSpec_SetDirectory(self, *args)
4306
4307 - def GetPath(self, *args):
4308 """GetPath(SBFileSpec self, str * dst_path, size_t dst_len) -> uint32_t""" 4309 return _lldb.SBFileSpec_GetPath(self, *args)
4310
4311 - def ResolvePath(*args):
4312 """ResolvePath(str const * src_path, str * dst_path, size_t dst_len) -> int""" 4313 return _lldb.SBFileSpec_ResolvePath(*args)
4314 4315 if _newclass:ResolvePath = staticmethod(ResolvePath) 4316 __swig_getmethods__["ResolvePath"] = lambda x: ResolvePath
4317 - def GetDescription(self, *args):
4318 """GetDescription(SBFileSpec self, SBStream description) -> bool""" 4319 return _lldb.SBFileSpec_GetDescription(self, *args)
4320
4321 - def AppendPathComponent(self, *args):
4322 """AppendPathComponent(SBFileSpec self, str const * file_or_directory)""" 4323 return _lldb.SBFileSpec_AppendPathComponent(self, *args)
4324
4325 - def __get_fullpath__(self):
4326 spec_dir = self.GetDirectory() 4327 spec_file = self.GetFilename() 4328 if spec_dir and spec_file: 4329 return '%s/%s' % (spec_dir, spec_file) 4330 elif spec_dir: 4331 return spec_dir 4332 elif spec_file: 4333 return spec_file 4334 return None
4335 4336 __swig_getmethods__["fullpath"] = __get_fullpath__ 4337 if _newclass: fullpath = property(__get_fullpath__, None, doc='''A read only property that returns the fullpath as a python string.''') 4338 4339 __swig_getmethods__["basename"] = GetFilename 4340 if _newclass: basename = property(GetFilename, None, doc='''A read only property that returns the path basename as a python string.''') 4341 4342 __swig_getmethods__["dirname"] = GetDirectory 4343 if _newclass: dirname = property(GetDirectory, None, doc='''A read only property that returns the path directory name as a python string.''') 4344 4345 __swig_getmethods__["exists"] = Exists 4346 if _newclass: exists = property(Exists, None, doc='''A read only property that returns a boolean value that indicates if the file exists.''') 4347
4348 - def __str__(self):
4349 """__str__(SBFileSpec self) -> PyObject *""" 4350 return _lldb.SBFileSpec___str__(self)
4351 4352 SBFileSpec_swigregister = _lldb.SBFileSpec_swigregister 4353 SBFileSpec_swigregister(SBFileSpec)
4354 4355 -def SBFileSpec_ResolvePath(*args):
4356 """SBFileSpec_ResolvePath(str const * src_path, str * dst_path, size_t dst_len) -> int""" 4357 return _lldb.SBFileSpec_ResolvePath(*args)
4358
4359 -class SBFileSpecList(_object):
4360 """Proxy of C++ lldb::SBFileSpecList class""" 4361 __swig_setmethods__ = {} 4362 __setattr__ = lambda self, name, value: _swig_setattr(self, SBFileSpecList, name, value) 4363 __swig_getmethods__ = {} 4364 __getattr__ = lambda self, name: _swig_getattr(self, SBFileSpecList, name) 4365 __repr__ = _swig_repr
4366 - def __init__(self, *args):
4367 """ 4368 __init__(lldb::SBFileSpecList self) -> SBFileSpecList 4369 __init__(lldb::SBFileSpecList self, SBFileSpecList rhs) -> SBFileSpecList 4370 """ 4371 this = _lldb.new_SBFileSpecList(*args) 4372 try: self.this.append(this) 4373 except: self.this = this
4374 __swig_destroy__ = _lldb.delete_SBFileSpecList 4375 __del__ = lambda self : None;
4376 - def GetSize(self):
4377 """GetSize(SBFileSpecList self) -> uint32_t""" 4378 return _lldb.SBFileSpecList_GetSize(self)
4379
4380 - def GetDescription(self, *args):
4381 """GetDescription(SBFileSpecList self, SBStream description) -> bool""" 4382 return _lldb.SBFileSpecList_GetDescription(self, *args)
4383
4384 - def Append(self, *args):
4385 """Append(SBFileSpecList self, SBFileSpec sb_file)""" 4386 return _lldb.SBFileSpecList_Append(self, *args)
4387
4388 - def AppendIfUnique(self, *args):
4389 """AppendIfUnique(SBFileSpecList self, SBFileSpec sb_file) -> bool""" 4390 return _lldb.SBFileSpecList_AppendIfUnique(self, *args)
4391
4392 - def Clear(self):
4393 """Clear(SBFileSpecList self)""" 4394 return _lldb.SBFileSpecList_Clear(self)
4395
4396 - def FindFileIndex(self, *args):
4397 """FindFileIndex(SBFileSpecList self, uint32_t idx, SBFileSpec sb_file, bool full) -> uint32_t""" 4398 return _lldb.SBFileSpecList_FindFileIndex(self, *args)
4399
4400 - def GetFileSpecAtIndex(self, *args):
4401 """GetFileSpecAtIndex(SBFileSpecList self, uint32_t idx) -> SBFileSpec""" 4402 return _lldb.SBFileSpecList_GetFileSpecAtIndex(self, *args)
4403 4404 SBFileSpecList_swigregister = _lldb.SBFileSpecList_swigregister 4405 SBFileSpecList_swigregister(SBFileSpecList)
4406 4407 -class SBFrame(_object):
4408 """ 4409 Represents one of the stack frames associated with a thread. 4410 SBThread contains SBFrame(s). For example (from test/lldbutil.py), 4411 4412 def print_stacktrace(thread, string_buffer = False): 4413 '''Prints a simple stack trace of this thread.''' 4414 4415 ... 4416 4417 for i in range(depth): 4418 frame = thread.GetFrameAtIndex(i) 4419 function = frame.GetFunction() 4420 4421 load_addr = addrs[i].GetLoadAddress(target) 4422 if not function: 4423 file_addr = addrs[i].GetFileAddress() 4424 start_addr = frame.GetSymbol().GetStartAddress().GetFileAddress() 4425 symbol_offset = file_addr - start_addr 4426 print >> output, ' frame #{num}: {addr:#016x} {mod}`{symbol} + {offset}'.format( 4427 num=i, addr=load_addr, mod=mods[i], symbol=symbols[i], offset=symbol_offset) 4428 else: 4429 print >> output, ' frame #{num}: {addr:#016x} {mod}`{func} at {file}:{line} {args}'.format( 4430 num=i, addr=load_addr, mod=mods[i], 4431 func='%s [inlined]' % funcs[i] if frame.IsInlined() else funcs[i], 4432 file=files[i], line=lines[i], 4433 args=get_args_as_string(frame, showFuncName=False) if not frame.IsInlined() else '()') 4434 4435 ... 4436 4437 And, 4438 4439 for frame in thread: 4440 print frame 4441 4442 See also SBThread. 4443 """ 4444 __swig_setmethods__ = {} 4445 __setattr__ = lambda self, name, value: _swig_setattr(self, SBFrame, name, value) 4446 __swig_getmethods__ = {} 4447 __getattr__ = lambda self, name: _swig_getattr(self, SBFrame, name) 4448 __repr__ = _swig_repr
4449 - def __init__(self, *args):
4450 """ 4451 __init__(lldb::SBFrame self) -> SBFrame 4452 __init__(lldb::SBFrame self, SBFrame rhs) -> SBFrame 4453 """ 4454 this = _lldb.new_SBFrame(*args) 4455 try: self.this.append(this) 4456 except: self.this = this
4457 __swig_destroy__ = _lldb.delete_SBFrame 4458 __del__ = lambda self : None;
4459 - def IsEqual(self, *args):
4460 """IsEqual(SBFrame self, SBFrame rhs) -> bool""" 4461 return _lldb.SBFrame_IsEqual(self, *args)
4462
4463 - def __nonzero__(self): return self.IsValid()
4464 - def IsValid(self):
4465 """IsValid(SBFrame self) -> bool""" 4466 return _lldb.SBFrame_IsValid(self)
4467
4468 - def GetFrameID(self):
4469 """GetFrameID(SBFrame self) -> uint32_t""" 4470 return _lldb.SBFrame_GetFrameID(self)
4471
4472 - def GetCFA(self):
4473 """ 4474 GetCFA(SBFrame self) -> lldb::addr_t 4475 4476 Get the Canonical Frame Address for this stack frame. 4477 This is the DWARF standard's definition of a CFA, a stack address 4478 that remains constant throughout the lifetime of the function. 4479 Returns an lldb::addr_t stack address, or LLDB_INVALID_ADDRESS if 4480 the CFA cannot be determined. 4481 """ 4482 return _lldb.SBFrame_GetCFA(self)
4483
4484 - def GetPC(self):
4485 """GetPC(SBFrame self) -> lldb::addr_t""" 4486 return _lldb.SBFrame_GetPC(self)
4487
4488 - def SetPC(self, *args):
4489 """SetPC(SBFrame self, lldb::addr_t new_pc) -> bool""" 4490 return _lldb.SBFrame_SetPC(self, *args)
4491
4492 - def GetSP(self):
4493 """GetSP(SBFrame self) -> lldb::addr_t""" 4494 return _lldb.SBFrame_GetSP(self)
4495
4496 - def GetFP(self):
4497 """GetFP(SBFrame self) -> lldb::addr_t""" 4498 return _lldb.SBFrame_GetFP(self)
4499
4500 - def GetPCAddress(self):
4501 """GetPCAddress(SBFrame self) -> SBAddress""" 4502 return _lldb.SBFrame_GetPCAddress(self)
4503
4504 - def GetSymbolContext(self, *args):
4505 """GetSymbolContext(SBFrame self, uint32_t resolve_scope) -> SBSymbolContext""" 4506 return _lldb.SBFrame_GetSymbolContext(self, *args)
4507
4508 - def GetModule(self):
4509 """GetModule(SBFrame self) -> SBModule""" 4510 return _lldb.SBFrame_GetModule(self)
4511
4512 - def GetCompileUnit(self):
4513 """GetCompileUnit(SBFrame self) -> SBCompileUnit""" 4514 return _lldb.SBFrame_GetCompileUnit(self)
4515
4516 - def GetFunction(self):
4517 """GetFunction(SBFrame self) -> SBFunction""" 4518 return _lldb.SBFrame_GetFunction(self)
4519
4520 - def GetSymbol(self):
4521 """GetSymbol(SBFrame self) -> SBSymbol""" 4522 return _lldb.SBFrame_GetSymbol(self)
4523
4524 - def GetBlock(self):
4525 """ 4526 GetBlock(SBFrame self) -> SBBlock 4527 4528 Gets the deepest block that contains the frame PC. 4529 4530 See also GetFrameBlock(). 4531 """ 4532 return _lldb.SBFrame_GetBlock(self)
4533
4534 - def GetDisplayFunctionName(self):
4535 """GetDisplayFunctionName(SBFrame self) -> str const *""" 4536 return _lldb.SBFrame_GetDisplayFunctionName(self)
4537
4538 - def GetFunctionName(self, *args):
4539 """ 4540 GetFunctionName(SBFrame self) -> str const 4541 GetFunctionName(SBFrame self) -> str const * 4542 4543 Get the appropriate function name for this frame. Inlined functions in 4544 LLDB are represented by Blocks that have inlined function information, so 4545 just looking at the SBFunction or SBSymbol for a frame isn't enough. 4546 This function will return the appropriate function, symbol or inlined 4547 function name for the frame. 4548 4549 This function returns: 4550 - the name of the inlined function (if there is one) 4551 - the name of the concrete function (if there is one) 4552 - the name of the symbol (if there is one) 4553 - NULL 4554 4555 See also IsInlined(). 4556 """ 4557 return _lldb.SBFrame_GetFunctionName(self, *args)
4558
4559 - def IsInlined(self, *args):
4560 """ 4561 IsInlined(SBFrame self) -> bool 4562 IsInlined(SBFrame self) -> bool 4563 4564 Return true if this frame represents an inlined function. 4565 4566 See also GetFunctionName(). 4567 """ 4568 return _lldb.SBFrame_IsInlined(self, *args)
4569
4570 - def EvaluateExpression(self, *args):
4571 """ 4572 EvaluateExpression(SBFrame self, str const * expr) -> SBValue 4573 EvaluateExpression(SBFrame self, str const * expr, lldb::DynamicValueType use_dynamic) -> SBValue 4574 EvaluateExpression(SBFrame self, str const * expr, lldb::DynamicValueType use_dynamic, bool unwind_on_error) -> SBValue 4575 EvaluateExpression(SBFrame self, str const * expr, SBExpressionOptions options) -> SBValue 4576 4577 The version that doesn't supply a 'use_dynamic' value will use the 4578 target's default. 4579 """ 4580 return _lldb.SBFrame_EvaluateExpression(self, *args)
4581
4582 - def GetFrameBlock(self):
4583 """ 4584 GetFrameBlock(SBFrame self) -> SBBlock 4585 4586 Gets the lexical block that defines the stack frame. Another way to think 4587 of this is it will return the block that contains all of the variables 4588 for a stack frame. Inlined functions are represented as SBBlock objects 4589 that have inlined function information: the name of the inlined function, 4590 where it was called from. The block that is returned will be the first 4591 block at or above the block for the PC (SBFrame::GetBlock()) that defines 4592 the scope of the frame. When a function contains no inlined functions, 4593 this will be the top most lexical block that defines the function. 4594 When a function has inlined functions and the PC is currently 4595 in one of those inlined functions, this method will return the inlined 4596 block that defines this frame. If the PC isn't currently in an inlined 4597 function, the lexical block that defines the function is returned. 4598 """ 4599 return _lldb.SBFrame_GetFrameBlock(self)
4600
4601 - def GetLineEntry(self):
4602 """GetLineEntry(SBFrame self) -> SBLineEntry""" 4603 return _lldb.SBFrame_GetLineEntry(self)
4604
4605 - def GetThread(self):
4606 """GetThread(SBFrame self) -> SBThread""" 4607 return _lldb.SBFrame_GetThread(self)
4608
4609 - def Disassemble(self):
4610 """Disassemble(SBFrame self) -> str const *""" 4611 return _lldb.SBFrame_Disassemble(self)
4612
4613 - def Clear(self):
4614 """Clear(SBFrame self)""" 4615 return _lldb.SBFrame_Clear(self)
4616
4617 - def GetVariables(self, *args):
4618 """ 4619 GetVariables(SBFrame self, bool arguments, bool locals, bool statics, bool in_scope_only) -> SBValueList 4620 GetVariables(SBFrame self, bool arguments, bool locals, bool statics, bool in_scope_only, lldb::DynamicValueType use_dynamic) -> SBValueList 4621 GetVariables(SBFrame self, SBVariablesOptions options) -> SBValueList 4622 4623 The version that doesn't supply a 'use_dynamic' value will use the 4624 target's default. 4625 """ 4626 return _lldb.SBFrame_GetVariables(self, *args)
4627
4628 - def GetRegisters(self):
4629 """GetRegisters(SBFrame self) -> SBValueList""" 4630 return _lldb.SBFrame_GetRegisters(self)
4631
4632 - def FindVariable(self, *args):
4633 """ 4634 FindVariable(SBFrame self, str const * var_name) -> SBValue 4635 FindVariable(SBFrame self, str const * var_name, lldb::DynamicValueType use_dynamic) -> SBValue 4636 4637 The version that doesn't supply a 'use_dynamic' value will use the 4638 target's default. 4639 """ 4640 return _lldb.SBFrame_FindVariable(self, *args)
4641
4642 - def FindRegister(self, *args):
4643 """FindRegister(SBFrame self, str const * name) -> SBValue""" 4644 return _lldb.SBFrame_FindRegister(self, *args)
4645
4646 - def GetValueForVariablePath(self, *args):
4647 """ 4648 GetValueForVariablePath(SBFrame self, str const * var_path) -> SBValue 4649 GetValueForVariablePath(SBFrame self, str const * var_path, lldb::DynamicValueType use_dynamic) -> SBValue 4650 4651 Get a lldb.SBValue for a variable path. 4652 4653 Variable paths can include access to pointer or instance members: 4654 rect_ptr->origin.y 4655 pt.x 4656 Pointer dereferences: 4657 *this->foo_ptr 4658 **argv 4659 Address of: 4660 &pt 4661 &my_array[3].x 4662 Array accesses and treating pointers as arrays: 4663 int_array[1] 4664 pt_ptr[22].x 4665 4666 Unlike EvaluateExpression() which returns lldb.SBValue objects 4667 with constant copies of the values at the time of evaluation, 4668 the result of this function is a value that will continue to 4669 track the current value of the value as execution progresses 4670 in the current frame. 4671 """ 4672 return _lldb.SBFrame_GetValueForVariablePath(self, *args)
4673
4674 - def FindValue(self, *args):
4675 """ 4676 FindValue(SBFrame self, str const * name, lldb::ValueType value_type) -> SBValue 4677 FindValue(SBFrame self, str const * name, lldb::ValueType value_type, lldb::DynamicValueType use_dynamic) -> SBValue 4678 4679 Find variables, register sets, registers, or persistent variables using 4680 the frame as the scope. 4681 4682 The version that doesn't supply a 'use_dynamic' value will use the 4683 target's default. 4684 """ 4685 return _lldb.SBFrame_FindValue(self, *args)
4686
4687 - def GetDescription(self, *args):
4688 """GetDescription(SBFrame self, SBStream description) -> bool""" 4689 return _lldb.SBFrame_GetDescription(self, *args)
4690
4691 - def get_all_variables(self):
4692 return self.GetVariables(True,True,True,True)
4693
4694 - def get_parent_frame(self):
4695 parent_idx = self.idx + 1 4696 if parent_idx >= 0 and parent_idx < len(self.thread.frame): 4697 return self.thread.frame[parent_idx] 4698 else: 4699 return SBFrame()
4700
4701 - def get_arguments(self):
4702 return self.GetVariables(True,False,False,False)
4703
4704 - def get_locals(self):
4705 return self.GetVariables(False,True,False,False)
4706
4707 - def get_statics(self):
4708 return self.GetVariables(False,False,True,False)
4709
4710 - def var(self, var_expr_path):
4711 '''Calls through to lldb.SBFrame.GetValueForVariablePath() and returns 4712 a value that represents the variable expression path''' 4713 return self.GetValueForVariablePath(var_expr_path)
4714
4715 - def get_registers_access(self):
4716 class registers_access(object): 4717 '''A helper object that exposes a flattened view of registers, masking away the notion of register sets for easy scripting.''' 4718 def __init__(self, regs): 4719 self.regs = regs
4720 4721 def __getitem__(self, key): 4722 if type(key) is str: 4723 for i in range(0,len(self.regs)): 4724 rs = self.regs[i] 4725 for j in range (0,rs.num_children): 4726 reg = rs.GetChildAtIndex(j) 4727 if reg.name == key: return reg 4728 else: 4729 return lldb.SBValue() 4730 4731 return registers_access(self.registers) 4732 4733 __swig_getmethods__["pc"] = GetPC 4734 __swig_setmethods__["pc"] = SetPC 4735 if _newclass: pc = property(GetPC, SetPC) 4736 4737 __swig_getmethods__["addr"] = GetPCAddress 4738 if _newclass: addr = property(GetPCAddress, None, doc='''A read only property that returns the program counter (PC) as a section offset address (lldb.SBAddress).''') 4739 4740 __swig_getmethods__["fp"] = GetFP 4741 if _newclass: fp = property(GetFP, None, doc='''A read only property that returns the frame pointer (FP) as an unsigned integer.''') 4742 4743 __swig_getmethods__["sp"] = GetSP 4744 if _newclass: sp = property(GetSP, None, doc='''A read only property that returns the stack pointer (SP) as an unsigned integer.''') 4745 4746 __swig_getmethods__["module"] = GetModule 4747 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.''') 4748 4749 __swig_getmethods__["compile_unit"] = GetCompileUnit 4750 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.''') 4751 4752 __swig_getmethods__["function"] = GetFunction 4753 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.''') 4754 4755 __swig_getmethods__["symbol"] = GetSymbol 4756 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.''') 4757 4758 __swig_getmethods__["block"] = GetBlock 4759 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.''') 4760 4761 __swig_getmethods__["is_inlined"] = IsInlined 4762 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.''') 4763 4764 __swig_getmethods__["name"] = GetFunctionName 4765 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).''') 4766 4767 __swig_getmethods__["line_entry"] = GetLineEntry 4768 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.''') 4769 4770 __swig_getmethods__["thread"] = GetThread 4771 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.''') 4772 4773 __swig_getmethods__["disassembly"] = Disassemble 4774 if _newclass: disassembly = property(Disassemble, None, doc='''A read only property that returns the disassembly for this stack frame as a python string.''') 4775 4776 __swig_getmethods__["idx"] = GetFrameID 4777 if _newclass: idx = property(GetFrameID, None, doc='''A read only property that returns the zero based stack frame index.''') 4778 4779 __swig_getmethods__["variables"] = get_all_variables 4780 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.''') 4781 4782 __swig_getmethods__["vars"] = get_all_variables 4783 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.''') 4784 4785 __swig_getmethods__["locals"] = get_locals 4786 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.''') 4787 4788 __swig_getmethods__["args"] = get_arguments 4789 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.''') 4790 4791 __swig_getmethods__["arguments"] = get_arguments 4792 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.''') 4793 4794 __swig_getmethods__["statics"] = get_statics 4795 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.''') 4796 4797 __swig_getmethods__["registers"] = GetRegisters 4798 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.''') 4799 4800 __swig_getmethods__["regs"] = GetRegisters 4801 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.''') 4802 4803 __swig_getmethods__["register"] = get_registers_access 4804 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.''') 4805 4806 __swig_getmethods__["reg"] = get_registers_access 4807 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''') 4808 4809 __swig_getmethods__["parent"] = get_parent_frame 4810 if _newclass: parent = property(get_parent_frame, None, doc='''A read only property that returns the parent (caller) frame of the current frame.''') 4811 4812
4813 - def __str__(self):
4814 """__str__(SBFrame self) -> PyObject *""" 4815 return _lldb.SBFrame___str__(self)
4816 4817 SBFrame_swigregister = _lldb.SBFrame_swigregister 4818 SBFrame_swigregister(SBFrame)
4819 4820 -class SBFunction(_object):
4821 """ 4822 Represents a generic function, which can be inlined or not. 4823 4824 For example (from test/lldbutil.py, but slightly modified for doc purpose), 4825 4826 ... 4827 4828 frame = thread.GetFrameAtIndex(i) 4829 addr = frame.GetPCAddress() 4830 load_addr = addr.GetLoadAddress(target) 4831 function = frame.GetFunction() 4832 mod_name = frame.GetModule().GetFileSpec().GetFilename() 4833 4834 if not function: 4835 # No debug info for 'function'. 4836 symbol = frame.GetSymbol() 4837 file_addr = addr.GetFileAddress() 4838 start_addr = symbol.GetStartAddress().GetFileAddress() 4839 symbol_name = symbol.GetName() 4840 symbol_offset = file_addr - start_addr 4841 print >> output, ' frame #{num}: {addr:#016x} {mod}`{symbol} + {offset}'.format( 4842 num=i, addr=load_addr, mod=mod_name, symbol=symbol_name, offset=symbol_offset) 4843 else: 4844 # Debug info is available for 'function'. 4845 func_name = frame.GetFunctionName() 4846 file_name = frame.GetLineEntry().GetFileSpec().GetFilename() 4847 line_num = frame.GetLineEntry().GetLine() 4848 print >> output, ' frame #{num}: {addr:#016x} {mod}`{func} at {file}:{line} {args}'.format( 4849 num=i, addr=load_addr, mod=mod_name, 4850 func='%s [inlined]' % func_name] if frame.IsInlined() else func_name, 4851 file=file_name, line=line_num, args=get_args_as_string(frame, showFuncName=False)) 4852 4853 ... 4854 4855 """ 4856 __swig_setmethods__ = {} 4857 __setattr__ = lambda self, name, value: _swig_setattr(self, SBFunction, name, value) 4858 __swig_getmethods__ = {} 4859 __getattr__ = lambda self, name: _swig_getattr(self, SBFunction, name) 4860 __repr__ = _swig_repr
4861 - def __init__(self, *args):
4862 """ 4863 __init__(lldb::SBFunction self) -> SBFunction 4864 __init__(lldb::SBFunction self, SBFunction rhs) -> SBFunction 4865 """ 4866 this = _lldb.new_SBFunction(*args) 4867 try: self.this.append(this) 4868 except: self.this = this
4869 __swig_destroy__ = _lldb.delete_SBFunction 4870 __del__ = lambda self : None;
4871 - def __nonzero__(self): return self.IsValid()
4872 - def IsValid(self):
4873 """IsValid(SBFunction self) -> bool""" 4874 return _lldb.SBFunction_IsValid(self)
4875
4876 - def GetName(self):
4877 """GetName(SBFunction self) -> str const *""" 4878 return _lldb.SBFunction_GetName(self)
4879
4880 - def GetDisplayName(self):
4881 """GetDisplayName(SBFunction self) -> str const *""" 4882 return _lldb.SBFunction_GetDisplayName(self)
4883
4884 - def GetMangledName(self):
4885 """GetMangledName(SBFunction self) -> str const *""" 4886 return _lldb.SBFunction_GetMangledName(self)
4887
4888 - def GetInstructions(self, *args):
4889 """ 4890 GetInstructions(SBFunction self, SBTarget target) -> SBInstructionList 4891 GetInstructions(SBFunction self, SBTarget target, str const * flavor) -> SBInstructionList 4892 """ 4893 return _lldb.SBFunction_GetInstructions(self, *args)
4894
4895 - def GetStartAddress(self):
4896 """GetStartAddress(SBFunction self) -> SBAddress""" 4897 return _lldb.SBFunction_GetStartAddress(self)
4898
4899 - def GetEndAddress(self):
4900 """GetEndAddress(SBFunction self) -> SBAddress""" 4901 return _lldb.SBFunction_GetEndAddress(self)
4902
4903 - def GetArgumentName(self, *args):
4904 """GetArgumentName(SBFunction self, uint32_t arg_idx) -> str const *""" 4905 return _lldb.SBFunction_GetArgumentName(self, *args)
4906
4907 - def GetPrologueByteSize(self):
4908 """GetPrologueByteSize(SBFunction self) -> uint32_t""" 4909 return _lldb.SBFunction_GetPrologueByteSize(self)
4910
4911 - def GetType(self):
4912 """GetType(SBFunction self) -> SBType""" 4913 return _lldb.SBFunction_GetType(self)
4914
4915 - def GetBlock(self):
4916 """GetBlock(SBFunction self) -> SBBlock""" 4917 return _lldb.SBFunction_GetBlock(self)
4918
4919 - def GetLanguage(self):
4920 """GetLanguage(SBFunction self) -> lldb::LanguageType""" 4921 return _lldb.SBFunction_GetLanguage(self)
4922
4923 - def GetIsOptimized(self):
4924 """ 4925 GetIsOptimized(SBFunction self) -> bool 4926 4927 Returns true if the function was compiled with optimization. 4928 Optimization, in this case, is meant to indicate that the debugger 4929 experience may be confusing for the user -- variables optimized away, 4930 stepping jumping between source lines -- and the driver may want to 4931 provide some guidance to the user about this. 4932 Returns false if unoptimized, or unknown. 4933 """ 4934 return _lldb.SBFunction_GetIsOptimized(self)
4935
4936 - def GetDescription(self, *args):
4937 """GetDescription(SBFunction self, SBStream description) -> bool""" 4938 return _lldb.SBFunction_GetDescription(self, *args)
4939
4940 - def __eq__(self, *args):
4941 """__eq__(SBFunction self, SBFunction rhs) -> bool""" 4942 return _lldb.SBFunction___eq__(self, *args)
4943
4944 - def __ne__(self, *args):
4945 """__ne__(SBFunction self, SBFunction rhs) -> bool""" 4946 return _lldb.SBFunction___ne__(self, *args)
4947
4948 - def get_instructions_from_current_target (self):
4949 return self.GetInstructions (target)
4950 4951 __swig_getmethods__["addr"] = GetStartAddress 4952 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.''') 4953 4954 __swig_getmethods__["end_addr"] = GetEndAddress 4955 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.''') 4956 4957 __swig_getmethods__["block"] = GetBlock 4958 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.''') 4959 4960 __swig_getmethods__["instructions"] = get_instructions_from_current_target 4961 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.''') 4962 4963 __swig_getmethods__["mangled"] = GetMangledName 4964 if _newclass: mangled = property(GetMangledName, None, doc='''A read only property that returns the mangled (linkage) name for this function as a string.''') 4965 4966 __swig_getmethods__["name"] = GetName 4967 if _newclass: name = property(GetName, None, doc='''A read only property that returns the name for this function as a string.''') 4968 4969 __swig_getmethods__["prologue_size"] = GetPrologueByteSize 4970 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.''') 4971 4972 __swig_getmethods__["type"] = GetType 4973 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.''') 4974
4975 - def __str__(self):
4976 """__str__(SBFunction self) -> PyObject *""" 4977 return _lldb.SBFunction___str__(self)
4978
4979 - def __eq__(self, rhs):
4980 if not isinstance(rhs, type(self)): 4981 return False 4982 4983 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
4984
4985 - def __ne__(self, rhs):
4986 if not isinstance(rhs, type(self)): 4987 return True 4988 4989 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
4990 4991 SBFunction_swigregister = _lldb.SBFunction_swigregister 4992 SBFunction_swigregister(SBFunction)
4993 4994 -class SBHostOS(_object):
4995 """Proxy of C++ lldb::SBHostOS class""" 4996 __swig_setmethods__ = {} 4997 __setattr__ = lambda self, name, value: _swig_setattr(self, SBHostOS, name, value) 4998 __swig_getmethods__ = {} 4999 __getattr__ = lambda self, name: _swig_getattr(self, SBHostOS, name) 5000 __repr__ = _swig_repr
5001 - def GetProgramFileSpec():
5002 """GetProgramFileSpec() -> SBFileSpec""" 5003 return _lldb.SBHostOS_GetProgramFileSpec()
5004 5005 if _newclass:GetProgramFileSpec = staticmethod(GetProgramFileSpec) 5006 __swig_getmethods__["GetProgramFileSpec"] = lambda x: GetProgramFileSpec
5007 - def GetLLDBPythonPath():
5008 """GetLLDBPythonPath() -> SBFileSpec""" 5009 return _lldb.SBHostOS_GetLLDBPythonPath()
5010 5011 if _newclass:GetLLDBPythonPath = staticmethod(GetLLDBPythonPath) 5012 __swig_getmethods__["GetLLDBPythonPath"] = lambda x: GetLLDBPythonPath
5013 - def GetLLDBPath(*args):
5014 """GetLLDBPath(lldb::PathType path_type) -> SBFileSpec""" 5015 return _lldb.SBHostOS_GetLLDBPath(*args)
5016 5017 if _newclass:GetLLDBPath = staticmethod(GetLLDBPath) 5018 __swig_getmethods__["GetLLDBPath"] = lambda x: GetLLDBPath
5019 - def GetUserHomeDirectory():
5020 """GetUserHomeDirectory() -> SBFileSpec""" 5021 return _lldb.SBHostOS_GetUserHomeDirectory()
5022 5023 if _newclass:GetUserHomeDirectory = staticmethod(GetUserHomeDirectory) 5024 __swig_getmethods__["GetUserHomeDirectory"] = lambda x: GetUserHomeDirectory
5025 - def ThreadCreated(*args):
5026 """ThreadCreated(str const * name)""" 5027 return _lldb.SBHostOS_ThreadCreated(*args)
5028 5029 if _newclass:ThreadCreated = staticmethod(ThreadCreated) 5030 __swig_getmethods__["ThreadCreated"] = lambda x: ThreadCreated
5031 - def ThreadCreate(*args):
5032 """ThreadCreate(str const * name, lldb::thread_func_t arg2, void * thread_arg, SBError err) -> lldb::thread_t""" 5033 return _lldb.SBHostOS_ThreadCreate(*args)
5034 5035 if _newclass:ThreadCreate = staticmethod(ThreadCreate) 5036 __swig_getmethods__["ThreadCreate"] = lambda x: ThreadCreate
5037 - def ThreadCancel(*args):
5038 """ThreadCancel(lldb::thread_t thread, SBError err) -> bool""" 5039 return _lldb.SBHostOS_ThreadCancel(*args)
5040 5041 if _newclass:ThreadCancel = staticmethod(ThreadCancel) 5042 __swig_getmethods__["ThreadCancel"] = lambda x: ThreadCancel
5043 - def ThreadDetach(*args):
5044 """ThreadDetach(lldb::thread_t thread, SBError err) -> bool""" 5045 return _lldb.SBHostOS_ThreadDetach(*args)
5046 5047 if _newclass:ThreadDetach = staticmethod(ThreadDetach) 5048 __swig_getmethods__["ThreadDetach"] = lambda x: ThreadDetach
5049 - def ThreadJoin(*args):
5050 """ThreadJoin(lldb::thread_t thread, lldb::thread_result_t * result, SBError err) -> bool""" 5051 return _lldb.SBHostOS_ThreadJoin(*args)
5052 5053 if _newclass:ThreadJoin = staticmethod(ThreadJoin) 5054 __swig_getmethods__["ThreadJoin"] = lambda x: ThreadJoin
5055 - def __init__(self):
5056 """__init__(lldb::SBHostOS self) -> SBHostOS""" 5057 this = _lldb.new_SBHostOS() 5058 try: self.this.append(this) 5059 except: self.this = this
5060 __swig_destroy__ = _lldb.delete_SBHostOS 5061 __del__ = lambda self : None; 5062 SBHostOS_swigregister = _lldb.SBHostOS_swigregister 5063 SBHostOS_swigregister(SBHostOS)
5064 5065 -def SBHostOS_GetProgramFileSpec():
5066 """SBHostOS_GetProgramFileSpec() -> SBFileSpec""" 5067 return _lldb.SBHostOS_GetProgramFileSpec()
5068
5069 -def SBHostOS_GetLLDBPythonPath():
5070 """SBHostOS_GetLLDBPythonPath() -> SBFileSpec""" 5071 return _lldb.SBHostOS_GetLLDBPythonPath()
5072
5073 -def SBHostOS_GetLLDBPath(*args):
5074 """SBHostOS_GetLLDBPath(lldb::PathType path_type) -> SBFileSpec""" 5075 return _lldb.SBHostOS_GetLLDBPath(*args)
5076
5077 -def SBHostOS_GetUserHomeDirectory():
5078 """SBHostOS_GetUserHomeDirectory() -> SBFileSpec""" 5079 return _lldb.SBHostOS_GetUserHomeDirectory()
5080
5081 -def SBHostOS_ThreadCreated(*args):
5082 """SBHostOS_ThreadCreated(str const * name)""" 5083 return _lldb.SBHostOS_ThreadCreated(*args)
5084
5085 -def SBHostOS_ThreadCreate(*args):
5086 """SBHostOS_ThreadCreate(str const * name, lldb::thread_func_t arg2, void * thread_arg, SBError err) -> lldb::thread_t""" 5087 return _lldb.SBHostOS_ThreadCreate(*args)
5088
5089 -def SBHostOS_ThreadCancel(*args):
5090 """SBHostOS_ThreadCancel(lldb::thread_t thread, SBError err) -> bool""" 5091 return _lldb.SBHostOS_ThreadCancel(*args)
5092
5093 -def SBHostOS_ThreadDetach(*args):
5094 """SBHostOS_ThreadDetach(lldb::thread_t thread, SBError err) -> bool""" 5095 return _lldb.SBHostOS_ThreadDetach(*args)
5096
5097 -def SBHostOS_ThreadJoin(*args):
5098 """SBHostOS_ThreadJoin(lldb::thread_t thread, lldb::thread_result_t * result, SBError err) -> bool""" 5099 return _lldb.SBHostOS_ThreadJoin(*args)
5100
5101 -class SBInstruction(_object):
5102 """Proxy of C++ lldb::SBInstruction class""" 5103 __swig_setmethods__ = {} 5104 __setattr__ = lambda self, name, value: _swig_setattr(self, SBInstruction, name, value) 5105 __swig_getmethods__ = {} 5106 __getattr__ = lambda self, name: _swig_getattr(self, SBInstruction, name) 5107 __repr__ = _swig_repr
5108 - def __init__(self, *args):
5109 """ 5110 __init__(lldb::SBInstruction self) -> SBInstruction 5111 __init__(lldb::SBInstruction self, SBInstruction rhs) -> SBInstruction 5112 """ 5113 this = _lldb.new_SBInstruction(*args) 5114 try: self.this.append(this) 5115 except: self.this = this
5116 __swig_destroy__ = _lldb.delete_SBInstruction 5117 __del__ = lambda self : None;
5118 - def __nonzero__(self): return self.IsValid()
5119 - def IsValid(self):
5120 """IsValid(SBInstruction self) -> bool""" 5121 return _lldb.SBInstruction_IsValid(self)
5122
5123 - def GetAddress(self):
5124 """GetAddress(SBInstruction self) -> SBAddress""" 5125 return _lldb.SBInstruction_GetAddress(self)
5126
5127 - def GetAddressClass(self):
5128 """GetAddressClass(SBInstruction self) -> lldb::AddressClass""" 5129 return _lldb.SBInstruction_GetAddressClass(self)
5130
5131 - def GetMnemonic(self, *args):
5132 """GetMnemonic(SBInstruction self, SBTarget target) -> str const *""" 5133 return _lldb.SBInstruction_GetMnemonic(self, *args)
5134
5135 - def GetOperands(self, *args):
5136 """GetOperands(SBInstruction self, SBTarget target) -> str const *""" 5137 return _lldb.SBInstruction_GetOperands(self, *args)
5138
5139 - def GetComment(self, *args):
5140 """GetComment(SBInstruction self, SBTarget target) -> str const *""" 5141 return _lldb.SBInstruction_GetComment(self, *args)
5142
5143 - def GetData(self, *args):
5144 """GetData(SBInstruction self, SBTarget target) -> SBData""" 5145 return _lldb.SBInstruction_GetData(self, *args)
5146
5147 - def GetByteSize(self):
5148 """GetByteSize(SBInstruction self) -> size_t""" 5149 return _lldb.SBInstruction_GetByteSize(self)
5150
5151 - def DoesBranch(self):
5152 """DoesBranch(SBInstruction self) -> bool""" 5153 return _lldb.SBInstruction_DoesBranch(self)
5154
5155 - def HasDelaySlot(self):
5156 """HasDelaySlot(SBInstruction self) -> bool""" 5157 return _lldb.SBInstruction_HasDelaySlot(self)
5158
5159 - def Print(self, *args):
5160 """Print(SBInstruction self, FILE * out)""" 5161 return _lldb.SBInstruction_Print(self, *args)
5162
5163 - def GetDescription(self, *args):
5164 """GetDescription(SBInstruction self, SBStream description) -> bool""" 5165 return _lldb.SBInstruction_GetDescription(self, *args)
5166
5167 - def EmulateWithFrame(self, *args):
5168 """EmulateWithFrame(SBInstruction self, SBFrame frame, uint32_t evaluate_options) -> bool""" 5169 return _lldb.SBInstruction_EmulateWithFrame(self, *args)
5170
5171 - def DumpEmulation(self, *args):
5172 """DumpEmulation(SBInstruction self, str const * triple) -> bool""" 5173 return _lldb.SBInstruction_DumpEmulation(self, *args)
5174
5175 - def TestEmulation(self, *args):
5176 """TestEmulation(SBInstruction self, SBStream output_stream, str const * test_file) -> bool""" 5177 return _lldb.SBInstruction_TestEmulation(self, *args)
5178
5179 - def __mnemonic_property__ (self):
5180 return self.GetMnemonic (target)
5181 - def __operands_property__ (self):
5182 return self.GetOperands (target)
5183 - def __comment_property__ (self):
5184 return self.GetComment (target)
5185 - def __file_addr_property__ (self):
5186 return self.GetAddress ().GetFileAddress()
5187 - def __load_adrr_property__ (self):
5188 return self.GetComment (target)
5189 5190 __swig_getmethods__["mnemonic"] = __mnemonic_property__ 5191 if _newclass: mnemonic = property(__mnemonic_property__, None, doc='''A read only property that returns the mnemonic for this instruction as a string.''') 5192 5193 __swig_getmethods__["operands"] = __operands_property__ 5194 if _newclass: operands = property(__operands_property__, None, doc='''A read only property that returns the operands for this instruction as a string.''') 5195 5196 __swig_getmethods__["comment"] = __comment_property__ 5197 if _newclass: comment = property(__comment_property__, None, doc='''A read only property that returns the comment for this instruction as a string.''') 5198 5199 __swig_getmethods__["addr"] = GetAddress 5200 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.''') 5201 5202 __swig_getmethods__["size"] = GetByteSize 5203 if _newclass: size = property(GetByteSize, None, doc='''A read only property that returns the size in bytes for this instruction as an integer.''') 5204 5205 __swig_getmethods__["is_branch"] = DoesBranch 5206 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.''') 5207
5208 - def __str__(self):
5209 """__str__(SBInstruction self) -> PyObject *""" 5210 return _lldb.SBInstruction___str__(self)
5211 5212 SBInstruction_swigregister = _lldb.SBInstruction_swigregister 5213 SBInstruction_swigregister(SBInstruction)
5214 5215 -class SBInstructionList(_object):
5216 """ 5217 Represents a list of machine instructions. SBFunction and SBSymbol have 5218 GetInstructions() methods which return SBInstructionList instances. 5219 5220 SBInstructionList supports instruction (SBInstruction instance) iteration. 5221 For example (see also SBDebugger for a more complete example), 5222 5223 def disassemble_instructions (insts): 5224 for i in insts: 5225 print i 5226 5227 defines a function which takes an SBInstructionList instance and prints out 5228 the machine instructions in assembly format. 5229 """ 5230 __swig_setmethods__ = {} 5231 __setattr__ = lambda self, name, value: _swig_setattr(self, SBInstructionList, name, value) 5232 __swig_getmethods__ = {} 5233 __getattr__ = lambda self, name: _swig_getattr(self, SBInstructionList, name) 5234 __repr__ = _swig_repr
5235 - def __iter__(self): return lldb_iter(self, 'GetSize', 'GetInstructionAtIndex')
5236 - def __len__(self): return self.GetSize()
5237 - def __init__(self, *args):
5238 """ 5239 __init__(lldb::SBInstructionList self) -> SBInstructionList 5240 __init__(lldb::SBInstructionList self, SBInstructionList rhs) -> SBInstructionList 5241 """ 5242 this = _lldb.new_SBInstructionList(*args) 5243 try: self.this.append(this) 5244 except: self.this = this
5245 __swig_destroy__ = _lldb.delete_SBInstructionList 5246 __del__ = lambda self : None;
5247 - def __nonzero__(self): return self.IsValid()
5248 - def IsValid(self):
5249 """IsValid(SBInstructionList self) -> bool""" 5250 return _lldb.SBInstructionList_IsValid(self)
5251
5252 - def GetSize(self):
5253 """GetSize(SBInstructionList self) -> size_t""" 5254 return _lldb.SBInstructionList_GetSize(self)
5255
5256 - def GetInstructionAtIndex(self, *args):
5257 """GetInstructionAtIndex(SBInstructionList self, uint32_t idx) -> SBInstruction""" 5258 return _lldb.SBInstructionList_GetInstructionAtIndex(self, *args)
5259
5260 - def Clear(self):
5261 """Clear(SBInstructionList self)""" 5262 return _lldb.SBInstructionList_Clear(self)
5263
5264 - def AppendInstruction(self, *args):
5265 """AppendInstruction(SBInstructionList self, SBInstruction inst)""" 5266 return _lldb.SBInstructionList_AppendInstruction(self, *args)
5267
5268 - def Print(self, *args):
5269 """Print(SBInstructionList self, FILE * out)""" 5270 return _lldb.SBInstructionList_Print(self, *args)
5271
5272 - def GetDescription(self, *args):
5273 """GetDescription(SBInstructionList self, SBStream description) -> bool""" 5274 return _lldb.SBInstructionList_GetDescription(self, *args)
5275
5276 - def DumpEmulationForAllInstructions(self, *args):
5277 """DumpEmulationForAllInstructions(SBInstructionList self, str const * triple) -> bool""" 5278 return _lldb.SBInstructionList_DumpEmulationForAllInstructions(self, *args)
5279
5280 - def __len__(self):
5281 '''Access len of the instruction list.''' 5282 return int(self.GetSize())
5283
5284 - def __getitem__(self, key):
5285 '''Access instructions by integer index for array access or by lldb.SBAddress to find an instruction that matches a section offset address object.''' 5286 if type(key) is int: 5287 # Find an instruction by index 5288 if key < len(self): 5289 return self.GetInstructionAtIndex(key) 5290 elif type(key) is SBAddress: 5291 # Find an instruction using a lldb.SBAddress object 5292 lookup_file_addr = key.file_addr 5293 closest_inst = None 5294 for idx in range(self.GetSize()): 5295 inst = self.GetInstructionAtIndex(idx) 5296 inst_file_addr = inst.addr.file_addr 5297 if inst_file_addr == lookup_file_addr: 5298 return inst 5299 elif inst_file_addr > lookup_file_addr: 5300 return closest_inst 5301 else: 5302 closest_inst = inst 5303 return None
5304
5305 - def __str__(self):
5306 """__str__(SBInstructionList self) -> PyObject *""" 5307 return _lldb.SBInstructionList___str__(self)
5308 5309 SBInstructionList_swigregister = _lldb.SBInstructionList_swigregister 5310 SBInstructionList_swigregister(SBInstructionList)
5311 5312 -class SBLanguageRuntime(_object):
5313 """Proxy of C++ lldb::SBLanguageRuntime class""" 5314 __swig_setmethods__ = {} 5315 __setattr__ = lambda self, name, value: _swig_setattr(self, SBLanguageRuntime, name, value) 5316 __swig_getmethods__ = {} 5317 __getattr__ = lambda self, name: _swig_getattr(self, SBLanguageRuntime, name) 5318 __repr__ = _swig_repr
5319 - def GetLanguageTypeFromString(*args):
5320 """GetLanguageTypeFromString(str const * string) -> lldb::LanguageType""" 5321 return _lldb.SBLanguageRuntime_GetLanguageTypeFromString(*args)
5322 5323 if _newclass:GetLanguageTypeFromString = staticmethod(GetLanguageTypeFromString) 5324 __swig_getmethods__["GetLanguageTypeFromString"] = lambda x: GetLanguageTypeFromString
5325 - def GetNameForLanguageType(*args):
5326 """GetNameForLanguageType(lldb::LanguageType language) -> str const *""" 5327 return _lldb.SBLanguageRuntime_GetNameForLanguageType(*args)
5328 5329 if _newclass:GetNameForLanguageType = staticmethod(GetNameForLanguageType) 5330 __swig_getmethods__["GetNameForLanguageType"] = lambda x: GetNameForLanguageType
5331 - def __init__(self):
5332 """__init__(lldb::SBLanguageRuntime self) -> SBLanguageRuntime""" 5333 this = _lldb.new_SBLanguageRuntime() 5334 try: self.this.append(this) 5335 except: self.this = this
5336 __swig_destroy__ = _lldb.delete_SBLanguageRuntime 5337 __del__ = lambda self : None; 5338 SBLanguageRuntime_swigregister = _lldb.SBLanguageRuntime_swigregister 5339 SBLanguageRuntime_swigregister(SBLanguageRuntime)
5340 5341 -def SBLanguageRuntime_GetLanguageTypeFromString(*args):
5342 """SBLanguageRuntime_GetLanguageTypeFromString(str const * string) -> lldb::LanguageType""" 5343 return _lldb.SBLanguageRuntime_GetLanguageTypeFromString(*args)
5344
5345 -def SBLanguageRuntime_GetNameForLanguageType(*args):
5346 """SBLanguageRuntime_GetNameForLanguageType(lldb::LanguageType language) -> str const *""" 5347 return _lldb.SBLanguageRuntime_GetNameForLanguageType(*args)
5348
5349 -class SBLaunchInfo(_object):
5350 """Proxy of C++ lldb::SBLaunchInfo class""" 5351 __swig_setmethods__ = {} 5352 __setattr__ = lambda self, name, value: _swig_setattr(self, SBLaunchInfo, name, value) 5353 __swig_getmethods__ = {} 5354 __getattr__ = lambda self, name: _swig_getattr(self, SBLaunchInfo, name) 5355 __repr__ = _swig_repr
5356 - def __init__(self, *args):
5357 """__init__(lldb::SBLaunchInfo self, str const ** argv) -> SBLaunchInfo""" 5358 this = _lldb.new_SBLaunchInfo(*args) 5359 try: self.this.append(this) 5360 except: self.this = this
5361 - def GetProcessID(self):
5362 """GetProcessID(SBLaunchInfo self) -> lldb::pid_t""" 5363 return _lldb.SBLaunchInfo_GetProcessID(self)
5364
5365 - def GetUserID(self):
5366 """GetUserID(SBLaunchInfo self) -> uint32_t""" 5367 return _lldb.SBLaunchInfo_GetUserID(self)
5368
5369 - def GetGroupID(self):
5370 """GetGroupID(SBLaunchInfo self) -> uint32_t""" 5371 return _lldb.SBLaunchInfo_GetGroupID(self)
5372
5373 - def UserIDIsValid(self):
5374 """UserIDIsValid(SBLaunchInfo self) -> bool""" 5375 return _lldb.SBLaunchInfo_UserIDIsValid(self)
5376
5377 - def GroupIDIsValid(self):
5378 """GroupIDIsValid(SBLaunchInfo self) -> bool""" 5379 return _lldb.SBLaunchInfo_GroupIDIsValid(self)
5380
5381 - def SetUserID(self, *args):
5382 """SetUserID(SBLaunchInfo self, uint32_t uid)""" 5383 return _lldb.SBLaunchInfo_SetUserID(self, *args)
5384
5385 - def SetGroupID(self, *args):
5386 """SetGroupID(SBLaunchInfo self, uint32_t gid)""" 5387 return _lldb.SBLaunchInfo_SetGroupID(self, *args)
5388
5389 - def GetExecutableFile(self):
5390 """GetExecutableFile(SBLaunchInfo self) -> SBFileSpec""" 5391 return _lldb.SBLaunchInfo_GetExecutableFile(self)
5392
5393 - def SetExecutableFile(self, *args):
5394 """SetExecutableFile(SBLaunchInfo self, SBFileSpec exe_file, bool add_as_first_arg)""" 5395 return _lldb.SBLaunchInfo_SetExecutableFile(self, *args)
5396
5397 - def GetListener(self):
5398 """GetListener(SBLaunchInfo self) -> SBListener""" 5399 return _lldb.SBLaunchInfo_GetListener(self)
5400
5401 - def SetListener(self, *args):
5402 """SetListener(SBLaunchInfo self, SBListener listener)""" 5403 return _lldb.SBLaunchInfo_SetListener(self, *args)
5404
5405 - def GetNumArguments(self):
5406 """GetNumArguments(SBLaunchInfo self) -> uint32_t""" 5407 return _lldb.SBLaunchInfo_GetNumArguments(self)
5408
5409 - def GetArgumentAtIndex(self, *args):
5410 """GetArgumentAtIndex(SBLaunchInfo self, uint32_t idx) -> str const *""" 5411 return _lldb.SBLaunchInfo_GetArgumentAtIndex(self, *args)
5412
5413 - def SetArguments(self, *args):
5414 """SetArguments(SBLaunchInfo self, str const ** argv, bool append)""" 5415 return _lldb.SBLaunchInfo_SetArguments(self, *args)
5416
5417 - def GetNumEnvironmentEntries(self):
5418 """GetNumEnvironmentEntries(SBLaunchInfo self) -> uint32_t""" 5419 return _lldb.SBLaunchInfo_GetNumEnvironmentEntries(self)
5420
5421 - def GetEnvironmentEntryAtIndex(self, *args):
5422 """GetEnvironmentEntryAtIndex(SBLaunchInfo self, uint32_t idx) -> str const *""" 5423 return _lldb.SBLaunchInfo_GetEnvironmentEntryAtIndex(self, *args)
5424
5425 - def SetEnvironmentEntries(self, *args):
5426 """SetEnvironmentEntries(SBLaunchInfo self, str const ** envp, bool append)""" 5427 return _lldb.SBLaunchInfo_SetEnvironmentEntries(self, *args)
5428
5429 - def Clear(self):
5430 """Clear(SBLaunchInfo self)""" 5431 return _lldb.SBLaunchInfo_Clear(self)
5432
5433 - def GetWorkingDirectory(self):
5434 """GetWorkingDirectory(SBLaunchInfo self) -> str const *""" 5435 return _lldb.SBLaunchInfo_GetWorkingDirectory(self)
5436
5437 - def SetWorkingDirectory(self, *args):
5438 """SetWorkingDirectory(SBLaunchInfo self, str const * working_dir)""" 5439 return _lldb.SBLaunchInfo_SetWorkingDirectory(self, *args)
5440
5441 - def GetLaunchFlags(self):
5442 """GetLaunchFlags(SBLaunchInfo self) -> uint32_t""" 5443 return _lldb.SBLaunchInfo_GetLaunchFlags(self)
5444
5445 - def SetLaunchFlags(self, *args):
5446 """SetLaunchFlags(SBLaunchInfo self, uint32_t flags)""" 5447 return _lldb.SBLaunchInfo_SetLaunchFlags(self, *args)
5448
5449 - def GetProcessPluginName(self):
5450 """GetProcessPluginName(SBLaunchInfo self) -> str const *""" 5451 return _lldb.SBLaunchInfo_GetProcessPluginName(self)
5452
5453 - def SetProcessPluginName(self, *args):
5454 """SetProcessPluginName(SBLaunchInfo self, str const * plugin_name)""" 5455 return _lldb.SBLaunchInfo_SetProcessPluginName(self, *args)
5456
5457 - def GetShell(self):
5458 """GetShell(SBLaunchInfo self) -> str const *""" 5459 return _lldb.SBLaunchInfo_GetShell(self)
5460
5461 - def SetShell(self, *args):
5462 """SetShell(SBLaunchInfo self, str const * path)""" 5463 return _lldb.SBLaunchInfo_SetShell(self, *args)
5464
5465 - def GetShellExpandArguments(self):
5466 """GetShellExpandArguments(SBLaunchInfo self) -> bool""" 5467 return _lldb.SBLaunchInfo_GetShellExpandArguments(self)
5468
5469 - def SetShellExpandArguments(self, *args):
5470 """SetShellExpandArguments(SBLaunchInfo self, bool expand)""" 5471 return _lldb.SBLaunchInfo_SetShellExpandArguments(self, *args)
5472
5473 - def GetResumeCount(self):
5474 """GetResumeCount(SBLaunchInfo self) -> uint32_t""" 5475 return _lldb.SBLaunchInfo_GetResumeCount(self)
5476
5477 - def SetResumeCount(self, *args):
5478 """SetResumeCount(SBLaunchInfo self, uint32_t c)""" 5479 return _lldb.SBLaunchInfo_SetResumeCount(self, *args)
5480
5481 - def AddCloseFileAction(self, *args):
5482 """AddCloseFileAction(SBLaunchInfo self, int fd) -> bool""" 5483 return _lldb.SBLaunchInfo_AddCloseFileAction(self, *args)
5484
5485 - def AddDuplicateFileAction(self, *args):
5486 """AddDuplicateFileAction(SBLaunchInfo self, int fd, int dup_fd) -> bool""" 5487 return _lldb.SBLaunchInfo_AddDuplicateFileAction(self, *args)
5488
5489 - def AddOpenFileAction(self, *args):
5490 """AddOpenFileAction(SBLaunchInfo self, int fd, str const * path, bool read, bool write) -> bool""" 5491 return _lldb.SBLaunchInfo_AddOpenFileAction(self, *args)
5492
5493 - def AddSuppressFileAction(self, *args):
5494 """AddSuppressFileAction(SBLaunchInfo self, int fd, bool read, bool write) -> bool""" 5495 return _lldb.SBLaunchInfo_AddSuppressFileAction(self, *args)
5496
5497 - def SetLaunchEventData(self, *args):
5498 """SetLaunchEventData(SBLaunchInfo self, str const * data)""" 5499 return _lldb.SBLaunchInfo_SetLaunchEventData(self, *args)
5500
5501 - def GetLaunchEventData(self):
5502 """GetLaunchEventData(SBLaunchInfo self) -> str const *""" 5503 return _lldb.SBLaunchInfo_GetLaunchEventData(self)
5504
5505 - def GetDetachOnError(self):
5506 """GetDetachOnError(SBLaunchInfo self) -> bool""" 5507 return _lldb.SBLaunchInfo_GetDetachOnError(self)
5508
5509 - def SetDetachOnError(self, *args):
5510 """SetDetachOnError(SBLaunchInfo self, bool enable)""" 5511 return _lldb.SBLaunchInfo_SetDetachOnError(self, *args)
5512 5513 __swig_destroy__ = _lldb.delete_SBLaunchInfo 5514 __del__ = lambda self : None; 5515 SBLaunchInfo_swigregister = _lldb.SBLaunchInfo_swigregister 5516 SBLaunchInfo_swigregister(SBLaunchInfo)
5517 5518 -class SBLineEntry(_object):
5519 """ 5520 Specifies an association with a contiguous range of instructions and 5521 a source file location. SBCompileUnit contains SBLineEntry(s). For example, 5522 5523 for lineEntry in compileUnit: 5524 print('line entry: %s:%d' % (str(lineEntry.GetFileSpec()), 5525 lineEntry.GetLine())) 5526 print('start addr: %s' % str(lineEntry.GetStartAddress())) 5527 print('end addr: %s' % str(lineEntry.GetEndAddress())) 5528 5529 produces: 5530 5531 line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:20 5532 start addr: a.out[0x100000d98] 5533 end addr: a.out[0x100000da3] 5534 line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:21 5535 start addr: a.out[0x100000da3] 5536 end addr: a.out[0x100000da9] 5537 line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:22 5538 start addr: a.out[0x100000da9] 5539 end addr: a.out[0x100000db6] 5540 line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:23 5541 start addr: a.out[0x100000db6] 5542 end addr: a.out[0x100000dbc] 5543 ... 5544 5545 See also SBCompileUnit. 5546 """ 5547 __swig_setmethods__ = {} 5548 __setattr__ = lambda self, name, value: _swig_setattr(self, SBLineEntry, name, value) 5549 __swig_getmethods__ = {} 5550 __getattr__ = lambda self, name: _swig_getattr(self, SBLineEntry, name) 5551 __repr__ = _swig_repr
5552 - def __init__(self, *args):
5553 """ 5554 __init__(lldb::SBLineEntry self) -> SBLineEntry 5555 __init__(lldb::SBLineEntry self, SBLineEntry rhs) -> SBLineEntry 5556 """ 5557 this = _lldb.new_SBLineEntry(*args) 5558 try: self.this.append(this) 5559 except: self.this = this
5560 __swig_destroy__ = _lldb.delete_SBLineEntry 5561 __del__ = lambda self : None;
5562 - def GetStartAddress(self):
5563 """GetStartAddress(SBLineEntry self) -> SBAddress""" 5564 return _lldb.SBLineEntry_GetStartAddress(self)
5565
5566 - def GetEndAddress(self):
5567 """GetEndAddress(SBLineEntry self) -> SBAddress""" 5568 return _lldb.SBLineEntry_GetEndAddress(self)
5569
5570 - def __nonzero__(self): return self.IsValid()
5571 - def IsValid(self):
5572 """IsValid(SBLineEntry self) -> bool""" 5573 return _lldb.SBLineEntry_IsValid(self)
5574
5575 - def GetFileSpec(self):
5576 """GetFileSpec(SBLineEntry self) -> SBFileSpec""" 5577 return _lldb.SBLineEntry_GetFileSpec(self)
5578
5579 - def GetLine(self):
5580 """GetLine(SBLineEntry self) -> uint32_t""" 5581 return _lldb.SBLineEntry_GetLine(self)
5582
5583 - def GetColumn(self):
5584 """GetColumn(SBLineEntry self) -> uint32_t""" 5585 return _lldb.SBLineEntry_GetColumn(self)
5586
5587 - def GetDescription(self, *args):
5588 """GetDescription(SBLineEntry self, SBStream description) -> bool""" 5589 return _lldb.SBLineEntry_GetDescription(self, *args)
5590
5591 - def SetFileSpec(self, *args):
5592 """SetFileSpec(SBLineEntry self, SBFileSpec filespec)""" 5593 return _lldb.SBLineEntry_SetFileSpec(self, *args)
5594
5595 - def SetLine(self, *args):
5596 """SetLine(SBLineEntry self, uint32_t line)""" 5597 return _lldb.SBLineEntry_SetLine(self, *args)
5598
5599 - def SetColumn(self, *args):
5600 """SetColumn(SBLineEntry self, uint32_t column)""" 5601 return _lldb.SBLineEntry_SetColumn(self, *args)
5602
5603 - def __eq__(self, *args):
5604 """__eq__(SBLineEntry self, SBLineEntry rhs) -> bool""" 5605 return _lldb.SBLineEntry___eq__(self, *args)
5606
5607 - def __ne__(self, *args):
5608 """__ne__(SBLineEntry self, SBLineEntry rhs) -> bool""" 5609 return _lldb.SBLineEntry___ne__(self, *args)
5610 5611 __swig_getmethods__["file"] = GetFileSpec 5612 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.''') 5613 5614 __swig_getmethods__["line"] = GetLine 5615 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.''') 5616 5617 __swig_getmethods__["column"] = GetColumn 5618 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.''') 5619 5620 __swig_getmethods__["addr"] = GetStartAddress 5621 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.''') 5622 5623 __swig_getmethods__["end_addr"] = GetEndAddress 5624 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.''') 5625 5626
5627 - def __str__(self):
5628 """__str__(SBLineEntry self) -> PyObject *""" 5629 return _lldb.SBLineEntry___str__(self)
5630
5631 - def __eq__(self, rhs):
5632 if not isinstance(rhs, type(self)): 5633 return False 5634 5635 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
5636
5637 - def __ne__(self, rhs):
5638 if not isinstance(rhs, type(self)): 5639 return True 5640 5641 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
5642 5643 SBLineEntry_swigregister = _lldb.SBLineEntry_swigregister 5644 SBLineEntry_swigregister(SBLineEntry)
5645 5646 -class SBListener(_object):
5647 """ 5648 API clients can register its own listener to debugger events. 5649 5650 See aslo SBEvent for example usage of creating and adding a listener. 5651 """ 5652 __swig_setmethods__ = {} 5653 __setattr__ = lambda self, name, value: _swig_setattr(self, SBListener, name, value) 5654 __swig_getmethods__ = {} 5655 __getattr__ = lambda self, name: _swig_getattr(self, SBListener, name) 5656 __repr__ = _swig_repr
5657 - def __init__(self, *args):
5658 """ 5659 __init__(lldb::SBListener self) -> SBListener 5660 __init__(lldb::SBListener self, str const * name) -> SBListener 5661 __init__(lldb::SBListener self, SBListener rhs) -> SBListener 5662 """ 5663 this = _lldb.new_SBListener(*args) 5664 try: self.this.append(this) 5665 except: self.this = this
5666 __swig_destroy__ = _lldb.delete_SBListener 5667 __del__ = lambda self : None;
5668 - def AddEvent(self, *args):
5669 """AddEvent(SBListener self, SBEvent event)""" 5670 return _lldb.SBListener_AddEvent(self, *args)
5671
5672 - def Clear(self):
5673 """Clear(SBListener self)""" 5674 return _lldb.SBListener_Clear(self)
5675
5676 - def __nonzero__(self): return self.IsValid()
5677 - def IsValid(self):
5678 """IsValid(SBListener self) -> bool""" 5679 return _lldb.SBListener_IsValid(self)
5680
5681 - def StartListeningForEventClass(self, *args):
5682 """StartListeningForEventClass(SBListener self, SBDebugger debugger, str const * broadcaster_class, uint32_t event_mask) -> uint32_t""" 5683 return _lldb.SBListener_StartListeningForEventClass(self, *args)
5684
5685 - def StopListeningForEventClass(self, *args):
5686 """StopListeningForEventClass(SBListener self, SBDebugger debugger, str const * broadcaster_class, uint32_t event_mask) -> uint32_t""" 5687 return _lldb.SBListener_StopListeningForEventClass(self, *args)
5688
5689 - def StartListeningForEvents(self, *args):
5690 """StartListeningForEvents(SBListener self, SBBroadcaster broadcaster, uint32_t event_mask) -> uint32_t""" 5691 return _lldb.SBListener_StartListeningForEvents(self, *args)
5692
5693 - def StopListeningForEvents(self, *args):
5694 """StopListeningForEvents(SBListener self, SBBroadcaster broadcaster, uint32_t event_mask) -> bool""" 5695 return _lldb.SBListener_StopListeningForEvents(self, *args)
5696
5697 - def WaitForEvent(self, *args):
5698 """WaitForEvent(SBListener self, uint32_t num_seconds, SBEvent event) -> bool""" 5699 return _lldb.SBListener_WaitForEvent(self, *args)
5700
5701 - def WaitForEventForBroadcaster(self, *args):
5702 """WaitForEventForBroadcaster(SBListener self, uint32_t num_seconds, SBBroadcaster broadcaster, SBEvent sb_event) -> bool""" 5703 return _lldb.SBListener_WaitForEventForBroadcaster(self, *args)
5704
5705 - def WaitForEventForBroadcasterWithType(self, *args):
5706 """WaitForEventForBroadcasterWithType(SBListener self, uint32_t num_seconds, SBBroadcaster broadcaster, uint32_t event_type_mask, SBEvent sb_event) -> bool""" 5707 return _lldb.SBListener_WaitForEventForBroadcasterWithType(self, *args)
5708
5709 - def PeekAtNextEvent(self, *args):
5710 """PeekAtNextEvent(SBListener self, SBEvent sb_event) -> bool""" 5711 return _lldb.SBListener_PeekAtNextEvent(self, *args)
5712
5713 - def PeekAtNextEventForBroadcaster(self, *args):
5714 """PeekAtNextEventForBroadcaster(SBListener self, SBBroadcaster broadcaster, SBEvent sb_event) -> bool""" 5715 return _lldb.SBListener_PeekAtNextEventForBroadcaster(self, *args)
5716
5717 - def PeekAtNextEventForBroadcasterWithType(self, *args):
5718 """PeekAtNextEventForBroadcasterWithType(SBListener self, SBBroadcaster broadcaster, uint32_t event_type_mask, SBEvent sb_event) -> bool""" 5719 return _lldb.SBListener_PeekAtNextEventForBroadcasterWithType(self, *args)
5720
5721 - def GetNextEvent(self, *args):
5722 """GetNextEvent(SBListener self, SBEvent sb_event) -> bool""" 5723 return _lldb.SBListener_GetNextEvent(self, *args)
5724
5725 - def GetNextEventForBroadcaster(self, *args):
5726 """GetNextEventForBroadcaster(SBListener self, SBBroadcaster broadcaster, SBEvent sb_event) -> bool""" 5727 return _lldb.SBListener_GetNextEventForBroadcaster(self, *args)
5728
5729 - def GetNextEventForBroadcasterWithType(self, *args):
5730 """GetNextEventForBroadcasterWithType(SBListener self, SBBroadcaster broadcaster, uint32_t event_type_mask, SBEvent sb_event) -> bool""" 5731 return _lldb.SBListener_GetNextEventForBroadcasterWithType(self, *args)
5732
5733 - def HandleBroadcastEvent(self, *args):
5734 """HandleBroadcastEvent(SBListener self, SBEvent event) -> bool""" 5735 return _lldb.SBListener_HandleBroadcastEvent(self, *args)
5736 5737 SBListener_swigregister = _lldb.SBListener_swigregister 5738 SBListener_swigregister(SBListener)
5739 5740 -class SBMemoryRegionInfo(_object):
5741 """API clients can get information about memory regions in processes.""" 5742 __swig_setmethods__ = {} 5743 __setattr__ = lambda self, name, value: _swig_setattr(self, SBMemoryRegionInfo, name, value) 5744 __swig_getmethods__ = {} 5745 __getattr__ = lambda self, name: _swig_getattr(self, SBMemoryRegionInfo, name) 5746 __repr__ = _swig_repr
5747 - def __init__(self, *args):
5748 """ 5749 __init__(lldb::SBMemoryRegionInfo self) -> SBMemoryRegionInfo 5750 __init__(lldb::SBMemoryRegionInfo self, SBMemoryRegionInfo rhs) -> SBMemoryRegionInfo 5751 """ 5752 this = _lldb.new_SBMemoryRegionInfo(*args) 5753 try: self.this.append(this) 5754 except: self.this = this
5755 __swig_destroy__ = _lldb.delete_SBMemoryRegionInfo 5756 __del__ = lambda self : None;
5757 - def Clear(self):
5758 """Clear(SBMemoryRegionInfo self)""" 5759 return _lldb.SBMemoryRegionInfo_Clear(self)
5760
5761 - def GetRegionBase(self):
5762 """GetRegionBase(SBMemoryRegionInfo self) -> lldb::addr_t""" 5763 return _lldb.SBMemoryRegionInfo_GetRegionBase(self)
5764
5765 - def GetRegionEnd(self):
5766 """GetRegionEnd(SBMemoryRegionInfo self) -> lldb::addr_t""" 5767 return _lldb.SBMemoryRegionInfo_GetRegionEnd(self)
5768
5769 - def IsReadable(self):
5770 """IsReadable(SBMemoryRegionInfo self) -> bool""" 5771 return _lldb.SBMemoryRegionInfo_IsReadable(self)
5772
5773 - def IsWritable(self):
5774 """IsWritable(SBMemoryRegionInfo self) -> bool""" 5775 return _lldb.SBMemoryRegionInfo_IsWritable(self)
5776
5777 - def IsExecutable(self):
5778 """IsExecutable(SBMemoryRegionInfo self) -> bool""" 5779 return _lldb.SBMemoryRegionInfo_IsExecutable(self)
5780
5781 - def IsMapped(self):
5782 """IsMapped(SBMemoryRegionInfo self) -> bool""" 5783 return _lldb.SBMemoryRegionInfo_IsMapped(self)
5784
5785 - def __eq__(self, *args):
5786 """__eq__(SBMemoryRegionInfo self, SBMemoryRegionInfo rhs) -> bool""" 5787 return _lldb.SBMemoryRegionInfo___eq__(self, *args)
5788
5789 - def __ne__(self, *args):
5790 """__ne__(SBMemoryRegionInfo self, SBMemoryRegionInfo rhs) -> bool""" 5791 return _lldb.SBMemoryRegionInfo___ne__(self, *args)
5792
5793 - def GetDescription(self, *args):
5794 """GetDescription(SBMemoryRegionInfo self, SBStream description) -> bool""" 5795 return _lldb.SBMemoryRegionInfo_GetDescription(self, *args)
5796
5797 - def __str__(self):
5798 """__str__(SBMemoryRegionInfo self) -> PyObject *""" 5799 return _lldb.SBMemoryRegionInfo___str__(self)
5800 5801 SBMemoryRegionInfo_swigregister = _lldb.SBMemoryRegionInfo_swigregister 5802 SBMemoryRegionInfo_swigregister(SBMemoryRegionInfo)
5803 5804 -class SBMemoryRegionInfoList(_object):
5805 """Proxy of C++ lldb::SBMemoryRegionInfoList class""" 5806 __swig_setmethods__ = {} 5807 __setattr__ = lambda self, name, value: _swig_setattr(self, SBMemoryRegionInfoList, name, value) 5808 __swig_getmethods__ = {} 5809 __getattr__ = lambda self, name: _swig_getattr(self, SBMemoryRegionInfoList, name) 5810 __repr__ = _swig_repr
5811 - def __init__(self, *args):
5812 """ 5813 __init__(lldb::SBMemoryRegionInfoList self) -> SBMemoryRegionInfoList 5814 __init__(lldb::SBMemoryRegionInfoList self, SBMemoryRegionInfoList rhs) -> SBMemoryRegionInfoList 5815 """ 5816 this = _lldb.new_SBMemoryRegionInfoList(*args) 5817 try: self.this.append(this) 5818 except: self.this = this
5819 __swig_destroy__ = _lldb.delete_SBMemoryRegionInfoList 5820 __del__ = lambda self : None;
5821 - def GetSize(self):
5822 """GetSize(SBMemoryRegionInfoList self) -> uint32_t""" 5823 return _lldb.SBMemoryRegionInfoList_GetSize(self)
5824
5825 - def GetMemoryRegionAtIndex(self, *args):
5826 """GetMemoryRegionAtIndex(SBMemoryRegionInfoList self, uint32_t idx, SBMemoryRegionInfo region_info) -> bool""" 5827 return _lldb.SBMemoryRegionInfoList_GetMemoryRegionAtIndex(self, *args)
5828
5829 - def Append(self, *args):
5830 """ 5831 Append(SBMemoryRegionInfoList self, SBMemoryRegionInfo region) 5832 Append(SBMemoryRegionInfoList self, SBMemoryRegionInfoList region_list) 5833 """ 5834 return _lldb.SBMemoryRegionInfoList_Append(self, *args)
5835
5836 - def Clear(self):
5837 """Clear(SBMemoryRegionInfoList self)""" 5838 return _lldb.SBMemoryRegionInfoList_Clear(self)
5839 5840 SBMemoryRegionInfoList_swigregister = _lldb.SBMemoryRegionInfoList_swigregister 5841 SBMemoryRegionInfoList_swigregister(SBMemoryRegionInfoList)
5842 5843 -class SBModule(_object):
5844 """ 5845 Represents an executable image and its associated object and symbol files. 5846 5847 The module is designed to be able to select a single slice of an 5848 executable image as it would appear on disk and during program 5849 execution. 5850 5851 You can retrieve SBModule from SBSymbolContext, which in turn is available 5852 from SBFrame. 5853 5854 SBModule supports symbol iteration, for example, 5855 5856 for symbol in module: 5857 name = symbol.GetName() 5858 saddr = symbol.GetStartAddress() 5859 eaddr = symbol.GetEndAddress() 5860 5861 and rich comparion methods which allow the API program to use, 5862 5863 if thisModule == thatModule: 5864 print('This module is the same as that module') 5865 5866 to test module equality. A module also contains object file sections, namely 5867 SBSection. SBModule supports section iteration through section_iter(), for 5868 example, 5869 5870 print('Number of sections: %d' % module.GetNumSections()) 5871 for sec in module.section_iter(): 5872 print(sec) 5873 5874 And to iterate the symbols within a SBSection, use symbol_in_section_iter(), 5875 5876 # Iterates the text section and prints each symbols within each sub-section. 5877 for subsec in text_sec: 5878 print(INDENT + repr(subsec)) 5879 for sym in exe_module.symbol_in_section_iter(subsec): 5880 print(INDENT2 + repr(sym)) 5881 print(INDENT2 + 'symbol type: %s' % symbol_type_to_str(sym.GetType())) 5882 5883 produces this following output: 5884 5885 [0x0000000100001780-0x0000000100001d5c) a.out.__TEXT.__text 5886 id = {0x00000004}, name = 'mask_access(MaskAction, unsigned int)', range = [0x00000001000017c0-0x0000000100001870) 5887 symbol type: code 5888 id = {0x00000008}, name = 'thread_func(void*)', range = [0x0000000100001870-0x00000001000019b0) 5889 symbol type: code 5890 id = {0x0000000c}, name = 'main', range = [0x00000001000019b0-0x0000000100001d5c) 5891 symbol type: code 5892 id = {0x00000023}, name = 'start', address = 0x0000000100001780 5893 symbol type: code 5894 [0x0000000100001d5c-0x0000000100001da4) a.out.__TEXT.__stubs 5895 id = {0x00000024}, name = '__stack_chk_fail', range = [0x0000000100001d5c-0x0000000100001d62) 5896 symbol type: trampoline 5897 id = {0x00000028}, name = 'exit', range = [0x0000000100001d62-0x0000000100001d68) 5898 symbol type: trampoline 5899 id = {0x00000029}, name = 'fflush', range = [0x0000000100001d68-0x0000000100001d6e) 5900 symbol type: trampoline 5901 id = {0x0000002a}, name = 'fgets', range = [0x0000000100001d6e-0x0000000100001d74) 5902 symbol type: trampoline 5903 id = {0x0000002b}, name = 'printf', range = [0x0000000100001d74-0x0000000100001d7a) 5904 symbol type: trampoline 5905 id = {0x0000002c}, name = 'pthread_create', range = [0x0000000100001d7a-0x0000000100001d80) 5906 symbol type: trampoline 5907 id = {0x0000002d}, name = 'pthread_join', range = [0x0000000100001d80-0x0000000100001d86) 5908 symbol type: trampoline 5909 id = {0x0000002e}, name = 'pthread_mutex_lock', range = [0x0000000100001d86-0x0000000100001d8c) 5910 symbol type: trampoline 5911 id = {0x0000002f}, name = 'pthread_mutex_unlock', range = [0x0000000100001d8c-0x0000000100001d92) 5912 symbol type: trampoline 5913 id = {0x00000030}, name = 'rand', range = [0x0000000100001d92-0x0000000100001d98) 5914 symbol type: trampoline 5915 id = {0x00000031}, name = 'strtoul', range = [0x0000000100001d98-0x0000000100001d9e) 5916 symbol type: trampoline 5917 id = {0x00000032}, name = 'usleep', range = [0x0000000100001d9e-0x0000000100001da4) 5918 symbol type: trampoline 5919 [0x0000000100001da4-0x0000000100001e2c) a.out.__TEXT.__stub_helper 5920 [0x0000000100001e2c-0x0000000100001f10) a.out.__TEXT.__cstring 5921 [0x0000000100001f10-0x0000000100001f68) a.out.__TEXT.__unwind_info 5922 [0x0000000100001f68-0x0000000100001ff8) a.out.__TEXT.__eh_frame 5923 5924 """ 5925 __swig_setmethods__ = {} 5926 __setattr__ = lambda self, name, value: _swig_setattr(self, SBModule, name, value) 5927 __swig_getmethods__ = {} 5928 __getattr__ = lambda self, name: _swig_getattr(self, SBModule, name) 5929 __repr__ = _swig_repr
5930 - def __iter__(self): return lldb_iter(self, 'GetNumSymbols', 'GetSymbolAtIndex')
5931 - def __len__(self): return self.GetNumSymbols()
5932 - def __eq__(self, other): return isinstance(other, SBModule) and self.GetFileSpec() == other.GetFileSpec() and self.GetUUIDString() == other.GetUUIDString()
5933 - def __ne__(self, other): return not self.__eq__(other)
5934 - def section_iter(self): return lldb_iter(self, 'GetNumSections', 'GetSectionAtIndex')
5935 - def compile_unit_iter(self): return lldb_iter(self, 'GetNumCompileUnits', 'GetCompileUnitAtIndex')
5936
5937 - def symbol_in_section_iter(self, section):
5938 """Given a module and its contained section, returns an iterator on the 5939 symbols within the section.""" 5940 for sym in self: 5941 if in_range(sym, section): 5942 yield sym
5943
5944 - def __init__(self, *args):
5945 """ 5946 __init__(lldb::SBModule self) -> SBModule 5947 __init__(lldb::SBModule self, SBModule rhs) -> SBModule 5948 __init__(lldb::SBModule self, SBModuleSpec module_spec) -> SBModule 5949 __init__(lldb::SBModule self, SBProcess process, lldb::addr_t header_addr) -> SBModule 5950 """ 5951 this = _lldb.new_SBModule(*args) 5952 try: self.this.append(this) 5953 except: self.this = this
5954 __swig_destroy__ = _lldb.delete_SBModule 5955 __del__ = lambda self : None;
5956 - def __nonzero__(self): return self.IsValid()
5957 - def IsValid(self):
5958 """IsValid(SBModule self) -> bool""" 5959 return _lldb.SBModule_IsValid(self)
5960
5961 - def Clear(self):
5962 """Clear(SBModule self)""" 5963 return _lldb.SBModule_Clear(self)
5964
5965 - def GetFileSpec(self):
5966 """ 5967 GetFileSpec(SBModule self) -> SBFileSpec 5968 5969 Get const accessor for the module file specification. 5970 5971 This function returns the file for the module on the host system 5972 that is running LLDB. This can differ from the path on the 5973 platform since we might be doing remote debugging. 5974 5975 @return 5976 A const reference to the file specification object. 5977 """ 5978 return _lldb.SBModule_GetFileSpec(self)
5979
5980 - def GetPlatformFileSpec(self):
5981 """ 5982 GetPlatformFileSpec(SBModule self) -> SBFileSpec 5983 5984 Get accessor for the module platform file specification. 5985 5986 Platform file refers to the path of the module as it is known on 5987 the remote system on which it is being debugged. For local 5988 debugging this is always the same as Module::GetFileSpec(). But 5989 remote debugging might mention a file '/usr/lib/liba.dylib' 5990 which might be locally downloaded and cached. In this case the 5991 platform file could be something like: 5992 '/tmp/lldb/platform-cache/remote.host.computer/usr/lib/liba.dylib' 5993 The file could also be cached in a local developer kit directory. 5994 5995 @return 5996 A const reference to the file specification object. 5997 """ 5998 return _lldb.SBModule_GetPlatformFileSpec(self)
5999
6000 - def SetPlatformFileSpec(self, *args):
6001 """SetPlatformFileSpec(SBModule self, SBFileSpec platform_file) -> bool""" 6002 return _lldb.SBModule_SetPlatformFileSpec(self, *args)
6003
6004 - def GetRemoteInstallFileSpec(self):
6005 """GetRemoteInstallFileSpec(SBModule self) -> SBFileSpec""" 6006 return _lldb.SBModule_GetRemoteInstallFileSpec(self)
6007
6008 - def SetRemoteInstallFileSpec(self, *args):
6009 """SetRemoteInstallFileSpec(SBModule self, SBFileSpec file) -> bool""" 6010 return _lldb.SBModule_SetRemoteInstallFileSpec(self, *args)
6011
6012 - def GetUUIDString(self):
6013 """ 6014 GetUUIDString(SBModule self) -> str const * 6015 6016 Returns the UUID of the module as a Python string. 6017 """ 6018 return _lldb.SBModule_GetUUIDString(self)
6019
6020 - def FindSection(self, *args):
6021 """FindSection(SBModule self, str const * sect_name) -> SBSection""" 6022 return _lldb.SBModule_FindSection(self, *args)
6023
6024 - def ResolveFileAddress(self, *args):
6025 """ResolveFileAddress(SBModule self, lldb::addr_t vm_addr) -> SBAddress""" 6026 return _lldb.SBModule_ResolveFileAddress(self, *args)
6027
6028 - def ResolveSymbolContextForAddress(self, *args):
6029 """ResolveSymbolContextForAddress(SBModule self, SBAddress addr, uint32_t resolve_scope) -> SBSymbolContext""" 6030 return _lldb.SBModule_ResolveSymbolContextForAddress(self, *args)
6031
6032 - def GetDescription(self, *args):
6033 """GetDescription(SBModule self, SBStream description) -> bool""" 6034 return _lldb.SBModule_GetDescription(self, *args)
6035
6036 - def GetNumCompileUnits(self):
6037 """GetNumCompileUnits(SBModule self) -> uint32_t""" 6038 return _lldb.SBModule_GetNumCompileUnits(self)
6039
6040 - def GetCompileUnitAtIndex(self, *args):
6041 """GetCompileUnitAtIndex(SBModule self, uint32_t arg2) -> SBCompileUnit""" 6042 return _lldb.SBModule_GetCompileUnitAtIndex(self, *args)
6043
6044 - def GetNumSymbols(self):
6045 """GetNumSymbols(SBModule self) -> size_t""" 6046 return _lldb.SBModule_GetNumSymbols(self)
6047
6048 - def GetSymbolAtIndex(self, *args):
6049 """GetSymbolAtIndex(SBModule self, size_t idx) -> SBSymbol""" 6050 return _lldb.SBModule_GetSymbolAtIndex(self, *args)
6051
6052 - def FindSymbol(self, *args):
6053 """ 6054 FindSymbol(SBModule self, str const * name, lldb::SymbolType type=eSymbolTypeAny) -> SBSymbol 6055 FindSymbol(SBModule self, str const * name) -> SBSymbol 6056 """ 6057 return _lldb.SBModule_FindSymbol(self, *args)
6058
6059 - def FindSymbols(self, *args):
6060 """ 6061 FindSymbols(SBModule self, str const * name, lldb::SymbolType type=eSymbolTypeAny) -> SBSymbolContextList 6062 FindSymbols(SBModule self, str const * name) -> SBSymbolContextList 6063 """ 6064 return _lldb.SBModule_FindSymbols(self, *args)
6065
6066 - def GetNumSections(self):
6067 """GetNumSections(SBModule self) -> size_t""" 6068 return _lldb.SBModule_GetNumSections(self)
6069
6070 - def GetSectionAtIndex(self, *args):
6071 """GetSectionAtIndex(SBModule self, size_t idx) -> SBSection""" 6072 return _lldb.SBModule_GetSectionAtIndex(self, *args)
6073
6074 - def FindFunctions(self, *args):
6075 """ 6076 FindFunctions(SBModule self, str const * name, uint32_t name_type_mask=eFunctionNameTypeAny) -> SBSymbolContextList 6077 FindFunctions(SBModule self, str const * name) -> SBSymbolContextList 6078 6079 Find functions by name. 6080 6081 @param[in] name 6082 The name of the function we are looking for. 6083 6084 @param[in] name_type_mask 6085 A logical OR of one or more FunctionNameType enum bits that 6086 indicate what kind of names should be used when doing the 6087 lookup. Bits include fully qualified names, base names, 6088 C++ methods, or ObjC selectors. 6089 See FunctionNameType for more details. 6090 6091 @return 6092 A symbol context list that gets filled in with all of the 6093 matches. 6094 """ 6095 return _lldb.SBModule_FindFunctions(self, *args)
6096
6097 - def FindFirstType(self, *args):
6098 """FindFirstType(SBModule self, str const * name) -> SBType""" 6099 return _lldb.SBModule_FindFirstType(self, *args)
6100
6101 - def FindTypes(self, *args):
6102 """FindTypes(SBModule self, str const * type) -> SBTypeList""" 6103 return _lldb.SBModule_FindTypes(self, *args)
6104
6105 - def GetTypeByID(self, *args):
6106 """GetTypeByID(SBModule self, lldb::user_id_t uid) -> SBType""" 6107 return _lldb.SBModule_GetTypeByID(self, *args)
6108
6109 - def GetBasicType(self, *args):
6110 """GetBasicType(SBModule self, lldb::BasicType type) -> SBType""" 6111 return _lldb.SBModule_GetBasicType(self, *args)
6112
6113 - def GetTypes(self, *args):
6114 """ 6115 GetTypes(SBModule self, uint32_t type_mask=eTypeClassAny) -> SBTypeList 6116 GetTypes(SBModule self) -> SBTypeList 6117 6118 Get all types matching type_mask from debug info in this 6119 module. 6120 6121 @param[in] type_mask 6122 A bitfield that consists of one or more bits logically OR'ed 6123 together from the lldb::TypeClass enumeration. This allows 6124 you to request only structure types, or only class, struct 6125 and union types. Passing in lldb::eTypeClassAny will return 6126 all types found in the debug information for this module. 6127 6128 @return 6129 A list of types in this module that match type_mask 6130 """ 6131 return _lldb.SBModule_GetTypes(self, *args)
6132
6133 - def FindGlobalVariables(self, *args):
6134 """ 6135 FindGlobalVariables(SBModule self, SBTarget target, str const * name, uint32_t max_matches) -> SBValueList 6136 6137 Find global and static variables by name. 6138 6139 @param[in] target 6140 A valid SBTarget instance representing the debuggee. 6141 6142 @param[in] name 6143 The name of the global or static variable we are looking 6144 for. 6145 6146 @param[in] max_matches 6147 Allow the number of matches to be limited to max_matches. 6148 6149 @return 6150 A list of matched variables in an SBValueList. 6151 """ 6152 return _lldb.SBModule_FindGlobalVariables(self, *args)
6153
6154 - def FindFirstGlobalVariable(self, *args):
6155 """ 6156 FindFirstGlobalVariable(SBModule self, SBTarget target, str const * name) -> SBValue 6157 6158 Find the first global (or static) variable by name. 6159 6160 @param[in] target 6161 A valid SBTarget instance representing the debuggee. 6162 6163 @param[in] name 6164 The name of the global or static variable we are looking 6165 for. 6166 6167 @return 6168 An SBValue that gets filled in with the found variable (if any). 6169 """ 6170 return _lldb.SBModule_FindFirstGlobalVariable(self, *args)
6171
6172 - def GetByteOrder(self):
6173 """GetByteOrder(SBModule self) -> lldb::ByteOrder""" 6174 return _lldb.SBModule_GetByteOrder(self)
6175
6176 - def GetAddressByteSize(self):
6177 """GetAddressByteSize(SBModule self) -> uint32_t""" 6178 return _lldb.SBModule_GetAddressByteSize(self)
6179
6180 - def GetTriple(self):
6181 """GetTriple(SBModule self) -> str const *""" 6182 return _lldb.SBModule_GetTriple(self)
6183
6184 - def GetVersion(self):
6185 """GetVersion(SBModule self) -> uint32_t""" 6186 return _lldb.SBModule_GetVersion(self)
6187
6188 - def GetSymbolFileSpec(self):
6189 """GetSymbolFileSpec(SBModule self) -> SBFileSpec""" 6190 return _lldb.SBModule_GetSymbolFileSpec(self)
6191
6192 - def GetObjectFileHeaderAddress(self):
6193 """GetObjectFileHeaderAddress(SBModule self) -> SBAddress""" 6194 return _lldb.SBModule_GetObjectFileHeaderAddress(self)
6195
6196 - def __eq__(self, *args):
6197 """__eq__(SBModule self, SBModule rhs) -> bool""" 6198 return _lldb.SBModule___eq__(self, *args)
6199
6200 - def __ne__(self, *args):
6201 """__ne__(SBModule self, SBModule rhs) -> bool""" 6202 return _lldb.SBModule___ne__(self, *args)
6203
6204 - class symbols_access(object):
6205 re_compile_type = type(re.compile('.')) 6206 '''A helper object that will lazily hand out lldb.SBSymbol objects for a module when supplied an index, name, or regular expression.'''
6207 - def __init__(self, sbmodule):
6208 self.sbmodule = sbmodule
6209
6210 - def __len__(self):
6211 if self.sbmodule: 6212 return int(self.sbmodule.GetNumSymbols()) 6213 return 0
6214
6215 - def __getitem__(self, key):
6216 count = len(self) 6217 if type(key) is int: 6218 if key < count: 6219 return self.sbmodule.GetSymbolAtIndex(key) 6220 elif type(key) is str: 6221 matches = [] 6222 sc_list = self.sbmodule.FindSymbols(key) 6223 for sc in sc_list: 6224 symbol = sc.symbol 6225 if symbol: 6226 matches.append(symbol) 6227 return matches 6228 elif isinstance(key, self.re_compile_type): 6229 matches = [] 6230 for idx in range(count): 6231 symbol = self.sbmodule.GetSymbolAtIndex(idx) 6232 added = False 6233 name = symbol.name 6234 if name: 6235 re_match = key.search(name) 6236 if re_match: 6237 matches.append(symbol) 6238 added = True 6239 if not added: 6240 mangled = symbol.mangled 6241 if mangled: 6242 re_match = key.search(mangled) 6243 if re_match: 6244 matches.append(symbol) 6245 return matches 6246 else: 6247 print("error: unsupported item type: %s" % type(key)) 6248 return None
6249
6250 - def get_symbols_access_object(self):
6251 '''An accessor function that returns a symbols_access() object which allows lazy symbol access from a lldb.SBModule object.''' 6252 return self.symbols_access (self)
6253
6254 - def get_compile_units_access_object (self):
6255 '''An accessor function that returns a compile_units_access() object which allows lazy compile unit access from a lldb.SBModule object.''' 6256 return self.compile_units_access (self)
6257
6258 - def get_symbols_array(self):
6259 '''An accessor function that returns a list() that contains all symbols in a lldb.SBModule object.''' 6260 symbols = [] 6261 for idx in range(self.num_symbols): 6262 symbols.append(self.GetSymbolAtIndex(idx)) 6263 return symbols
6264
6265 - class sections_access(object):
6266 re_compile_type = type(re.compile('.')) 6267 '''A helper object that will lazily hand out lldb.SBSection objects for a module when supplied an index, name, or regular expression.'''
6268 - def __init__(self, sbmodule):
6269 self.sbmodule = sbmodule
6270
6271 - def __len__(self):
6272 if self.sbmodule: 6273 return int(self.sbmodule.GetNumSections()) 6274 return 0
6275
6276 - def __getitem__(self, key):
6277 count = len(self) 6278 if type(key) is int: 6279 if key < count: 6280 return self.sbmodule.GetSectionAtIndex(key) 6281 elif type(key) is str: 6282 for idx in range(count): 6283 section = self.sbmodule.GetSectionAtIndex(idx) 6284 if section.name == key: 6285 return section 6286 elif isinstance(key, self.re_compile_type): 6287 matches = [] 6288 for idx in range(count): 6289 section = self.sbmodule.GetSectionAtIndex(idx) 6290 name = section.name 6291 if name: 6292 re_match = key.search(name) 6293 if re_match: 6294 matches.append(section) 6295 return matches 6296 else: 6297 print("error: unsupported item type: %s" % type(key)) 6298 return None
6299
6300 - class compile_units_access(object):
6301 re_compile_type = type(re.compile('.')) 6302 '''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.'''
6303 - def __init__(self, sbmodule):
6304 self.sbmodule = sbmodule
6305
6306 - def __len__(self):
6307 if self.sbmodule: 6308 return int(self.sbmodule.GetNumCompileUnits()) 6309 return 0
6310
6311 - def __getitem__(self, key):
6312 count = len(self) 6313 if type(key) is int: 6314 if key < count: 6315 return self.sbmodule.GetCompileUnitAtIndex(key) 6316 elif type(key) is str: 6317 is_full_path = key[0] == '/' 6318 for idx in range(count): 6319 comp_unit = self.sbmodule.GetCompileUnitAtIndex(idx) 6320 if is_full_path: 6321 if comp_unit.file.fullpath == key: 6322 return comp_unit 6323 else: 6324 if comp_unit.file.basename == key: 6325 return comp_unit 6326 elif isinstance(key, self.re_compile_type): 6327 matches = [] 6328 for idx in range(count): 6329 comp_unit = self.sbmodule.GetCompileUnitAtIndex(idx) 6330 fullpath = comp_unit.file.fullpath 6331 if fullpath: 6332 re_match = key.search(fullpath) 6333 if re_match: 6334 matches.append(comp_unit) 6335 return matches 6336 else: 6337 print("error: unsupported item type: %s" % type(key)) 6338 return None
6339
6340 - def get_sections_access_object(self):
6341 '''An accessor function that returns a sections_access() object which allows lazy section array access.''' 6342 return self.sections_access (self)
6343
6344 - def get_sections_array(self):
6345 '''An accessor function that returns an array object that contains all sections in this module object.''' 6346 if not hasattr(self, 'sections_array'): 6347 self.sections_array = [] 6348 for idx in range(self.num_sections): 6349 self.sections_array.append(self.GetSectionAtIndex(idx)) 6350 return self.sections_array
6351
6352 - def get_compile_units_array(self):
6353 '''An accessor function that returns an array object that contains all compile_units in this module object.''' 6354 if not hasattr(self, 'compile_units_array'): 6355 self.compile_units_array = [] 6356 for idx in range(self.GetNumCompileUnits()): 6357 self.compile_units_array.append(self.GetCompileUnitAtIndex(idx)) 6358 return self.compile_units_array
6359 6360 __swig_getmethods__["symbols"] = get_symbols_array 6361 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.''') 6362 6363 __swig_getmethods__["symbol"] = get_symbols_access_object 6364 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''') 6365 6366 __swig_getmethods__["sections"] = get_sections_array 6367 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.''') 6368 6369 __swig_getmethods__["compile_units"] = get_compile_units_array 6370 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.''') 6371 6372 __swig_getmethods__["section"] = get_sections_access_object 6373 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''') 6374 6375 __swig_getmethods__["compile_unit"] = get_compile_units_access_object 6376 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.''') 6377
6378 - def get_uuid(self):
6379 return uuid.UUID (self.GetUUIDString())
6380 6381 __swig_getmethods__["uuid"] = get_uuid 6382 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.''') 6383 6384 __swig_getmethods__["file"] = GetFileSpec 6385 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.''') 6386 6387 __swig_getmethods__["platform_file"] = GetPlatformFileSpec 6388 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.''') 6389 6390 __swig_getmethods__["byte_order"] = GetByteOrder 6391 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.''') 6392 6393 __swig_getmethods__["addr_size"] = GetAddressByteSize 6394 if _newclass: addr_size = property(GetAddressByteSize, None, doc='''A read only property that returns the size in bytes of an address for this module.''') 6395 6396 __swig_getmethods__["triple"] = GetTriple 6397 if _newclass: triple = property(GetTriple, None, doc='''A read only property that returns the target triple (arch-vendor-os) for this module.''') 6398 6399 __swig_getmethods__["num_symbols"] = GetNumSymbols 6400 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.''') 6401 6402 __swig_getmethods__["num_sections"] = GetNumSections 6403 if _newclass: num_sections = property(GetNumSections, None, doc='''A read only property that returns number of sections in the module as an integer.''') 6404 6405
6406 - def __str__(self):
6407 """__str__(SBModule self) -> PyObject *""" 6408 return _lldb.SBModule___str__(self)
6409
6410 - def __eq__(self, rhs):
6411 if not isinstance(rhs, type(self)): 6412 return False 6413 6414 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
6415
6416 - def __ne__(self, rhs):
6417 if not isinstance(rhs, type(self)): 6418 return True 6419 6420 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
6421 6422 SBModule_swigregister = _lldb.SBModule_swigregister 6423 SBModule_swigregister(SBModule)
6424 6425 -class SBModuleSpec(_object):
6426 """Proxy of C++ lldb::SBModuleSpec class""" 6427 __swig_setmethods__ = {} 6428 __setattr__ = lambda self, name, value: _swig_setattr(self, SBModuleSpec, name, value) 6429 __swig_getmethods__ = {} 6430 __getattr__ = lambda self, name: _swig_getattr(self, SBModuleSpec, name) 6431 __repr__ = _swig_repr
6432 - def __init__(self, *args):
6433 """ 6434 __init__(lldb::SBModuleSpec self) -> SBModuleSpec 6435 __init__(lldb::SBModuleSpec self, SBModuleSpec rhs) -> SBModuleSpec 6436 """ 6437 this = _lldb.new_SBModuleSpec(*args) 6438 try: self.this.append(this) 6439 except: self.this = this
6440 __swig_destroy__ = _lldb.delete_SBModuleSpec 6441 __del__ = lambda self : None;
6442 - def __nonzero__(self): return self.IsValid()
6443 - def IsValid(self):
6444 """IsValid(SBModuleSpec self) -> bool""" 6445 return _lldb.SBModuleSpec_IsValid(self)
6446
6447 - def Clear(self):
6448 """Clear(SBModuleSpec self)""" 6449 return _lldb.SBModuleSpec_Clear(self)
6450
6451 - def GetFileSpec(self):
6452 """GetFileSpec(SBModuleSpec self) -> SBFileSpec""" 6453 return _lldb.SBModuleSpec_GetFileSpec(self)
6454
6455 - def SetFileSpec(self, *args):
6456 """SetFileSpec(SBModuleSpec self, SBFileSpec fspec)""" 6457 return _lldb.SBModuleSpec_SetFileSpec(self, *args)
6458
6459 - def GetPlatformFileSpec(self):
6460 """GetPlatformFileSpec(SBModuleSpec self) -> SBFileSpec""" 6461 return _lldb.SBModuleSpec_GetPlatformFileSpec(self)
6462
6463 - def SetPlatformFileSpec(self, *args):
6464 """SetPlatformFileSpec(SBModuleSpec self, SBFileSpec fspec)""" 6465 return _lldb.SBModuleSpec_SetPlatformFileSpec(self, *args)
6466
6467 - def GetSymbolFileSpec(self):
6468 """GetSymbolFileSpec(SBModuleSpec self) -> SBFileSpec""" 6469 return _lldb.SBModuleSpec_GetSymbolFileSpec(self)
6470
6471 - def SetSymbolFileSpec(self, *args):
6472 """SetSymbolFileSpec(SBModuleSpec self, SBFileSpec fspec)""" 6473 return _lldb.SBModuleSpec_SetSymbolFileSpec(self, *args)
6474
6475 - def GetObjectName(self):
6476 """GetObjectName(SBModuleSpec self) -> str const *""" 6477 return _lldb.SBModuleSpec_GetObjectName(self)
6478
6479 - def SetObjectName(self, *args):
6480 """SetObjectName(SBModuleSpec self, str const * name)""" 6481 return _lldb.SBModuleSpec_SetObjectName(self, *args)
6482
6483 - def GetTriple(self):
6484 """GetTriple(SBModuleSpec self) -> str const *""" 6485 return _lldb.SBModuleSpec_GetTriple(self)
6486
6487 - def SetTriple(self, *args):
6488 """SetTriple(SBModuleSpec self, str const * triple)""" 6489 return _lldb.SBModuleSpec_SetTriple(self, *args)
6490
6491 - def GetUUIDBytes(self):
6492 """GetUUIDBytes(SBModuleSpec self) -> uint8_t const *""" 6493 return _lldb.SBModuleSpec_GetUUIDBytes(self)
6494
6495 - def GetUUIDLength(self):
6496 """GetUUIDLength(SBModuleSpec self) -> size_t""" 6497 return _lldb.SBModuleSpec_GetUUIDLength(self)
6498
6499 - def SetUUIDBytes(self, *args):
6500 """SetUUIDBytes(SBModuleSpec self, uint8_t const * uuid, size_t uuid_len) -> bool""" 6501 return _lldb.SBModuleSpec_SetUUIDBytes(self, *args)
6502
6503 - def GetDescription(self, *args):
6504 """GetDescription(SBModuleSpec self, SBStream description) -> bool""" 6505 return _lldb.SBModuleSpec_GetDescription(self, *args)
6506
6507 - def __str__(self):
6508 """__str__(SBModuleSpec self) -> PyObject *""" 6509 return _lldb.SBModuleSpec___str__(self)
6510 6511 SBModuleSpec_swigregister = _lldb.SBModuleSpec_swigregister 6512 SBModuleSpec_swigregister(SBModuleSpec)
6513 6514 -class SBModuleSpecList(_object):
6515 """Proxy of C++ lldb::SBModuleSpecList class""" 6516 __swig_setmethods__ = {} 6517 __setattr__ = lambda self, name, value: _swig_setattr(self, SBModuleSpecList, name, value) 6518 __swig_getmethods__ = {} 6519 __getattr__ = lambda self, name: _swig_getattr(self, SBModuleSpecList, name) 6520 __repr__ = _swig_repr
6521 - def __init__(self, *args):
6522 """ 6523 __init__(lldb::SBModuleSpecList self) -> SBModuleSpecList 6524 __init__(lldb::SBModuleSpecList self, SBModuleSpecList rhs) -> SBModuleSpecList 6525 """ 6526 this = _lldb.new_SBModuleSpecList(*args) 6527 try: self.this.append(this) 6528 except: self.this = this
6529 __swig_destroy__ = _lldb.delete_SBModuleSpecList 6530 __del__ = lambda self : None;
6531 - def GetModuleSpecifications(*args):
6532 """GetModuleSpecifications(str const * path) -> SBModuleSpecList""" 6533 return _lldb.SBModuleSpecList_GetModuleSpecifications(*args)
6534 6535 if _newclass:GetModuleSpecifications = staticmethod(GetModuleSpecifications) 6536 __swig_getmethods__["GetModuleSpecifications"] = lambda x: GetModuleSpecifications
6537 - def Append(self, *args):
6538 """ 6539 Append(SBModuleSpecList self, SBModuleSpec spec) 6540 Append(SBModuleSpecList self, SBModuleSpecList spec_list) 6541 """ 6542 return _lldb.SBModuleSpecList_Append(self, *args)
6543
6544 - def FindFirstMatchingSpec(self, *args):
6545 """FindFirstMatchingSpec(SBModuleSpecList self, SBModuleSpec match_spec) -> SBModuleSpec""" 6546 return _lldb.SBModuleSpecList_FindFirstMatchingSpec(self, *args)
6547
6548 - def FindMatchingSpecs(self, *args):
6549 """FindMatchingSpecs(SBModuleSpecList self, SBModuleSpec match_spec) -> SBModuleSpecList""" 6550 return _lldb.SBModuleSpecList_FindMatchingSpecs(self, *args)
6551
6552 - def GetSize(self):
6553 """GetSize(SBModuleSpecList self) -> size_t""" 6554 return _lldb.SBModuleSpecList_GetSize(self)
6555
6556 - def GetSpecAtIndex(self, *args):
6557 """GetSpecAtIndex(SBModuleSpecList self, size_t i) -> SBModuleSpec""" 6558 return _lldb.SBModuleSpecList_GetSpecAtIndex(self, *args)
6559
6560 - def GetDescription(self, *args):
6561 """GetDescription(SBModuleSpecList self, SBStream description) -> bool""" 6562 return _lldb.SBModuleSpecList_GetDescription(self, *args)
6563
6564 - def __str__(self):
6565 """__str__(SBModuleSpecList self) -> PyObject *""" 6566 return _lldb.SBModuleSpecList___str__(self)
6567 6568 SBModuleSpecList_swigregister = _lldb.SBModuleSpecList_swigregister 6569 SBModuleSpecList_swigregister(SBModuleSpecList)
6570 6571 -def SBModuleSpecList_GetModuleSpecifications(*args):
6572 """SBModuleSpecList_GetModuleSpecifications(str const * path) -> SBModuleSpecList""" 6573 return _lldb.SBModuleSpecList_GetModuleSpecifications(*args)
6574
6575 -class SBPlatformConnectOptions(_object):
6576 """Proxy of C++ lldb::SBPlatformConnectOptions class""" 6577 __swig_setmethods__ = {} 6578 __setattr__ = lambda self, name, value: _swig_setattr(self, SBPlatformConnectOptions, name, value) 6579 __swig_getmethods__ = {} 6580 __getattr__ = lambda self, name: _swig_getattr(self, SBPlatformConnectOptions, name) 6581 __repr__ = _swig_repr
6582 - def __init__(self, *args):
6583 """ 6584 __init__(lldb::SBPlatformConnectOptions self, str const * url) -> SBPlatformConnectOptions 6585 __init__(lldb::SBPlatformConnectOptions self, SBPlatformConnectOptions rhs) -> SBPlatformConnectOptions 6586 """ 6587 this = _lldb.new_SBPlatformConnectOptions(*args) 6588 try: self.this.append(this) 6589 except: self.this = this
6590 __swig_destroy__ = _lldb.delete_SBPlatformConnectOptions 6591 __del__ = lambda self : None;
6592 - def GetURL(self):
6593 """GetURL(SBPlatformConnectOptions self) -> str const *""" 6594 return _lldb.SBPlatformConnectOptions_GetURL(self)
6595
6596 - def SetURL(self, *args):
6597 """SetURL(SBPlatformConnectOptions self, str const * url)""" 6598 return _lldb.SBPlatformConnectOptions_SetURL(self, *args)
6599
6600 - def GetRsyncEnabled(self):
6601 """GetRsyncEnabled(SBPlatformConnectOptions self) -> bool""" 6602 return _lldb.SBPlatformConnectOptions_GetRsyncEnabled(self)
6603
6604 - def EnableRsync(self, *args):
6605 """EnableRsync(SBPlatformConnectOptions self, str const * options, str const * remote_path_prefix, bool omit_remote_hostname)""" 6606 return _lldb.SBPlatformConnectOptions_EnableRsync(self, *args)
6607
6608 - def DisableRsync(self):
6609 """DisableRsync(SBPlatformConnectOptions self)""" 6610 return _lldb.SBPlatformConnectOptions_DisableRsync(self)
6611
6612 - def GetLocalCacheDirectory(self):
6613 """GetLocalCacheDirectory(SBPlatformConnectOptions self) -> str const *""" 6614 return _lldb.SBPlatformConnectOptions_GetLocalCacheDirectory(self)
6615
6616 - def SetLocalCacheDirectory(self, *args):
6617 """SetLocalCacheDirectory(SBPlatformConnectOptions self, str const * path)""" 6618 return _lldb.SBPlatformConnectOptions_SetLocalCacheDirectory(self, *args)
6619 6620 SBPlatformConnectOptions_swigregister = _lldb.SBPlatformConnectOptions_swigregister 6621 SBPlatformConnectOptions_swigregister(SBPlatformConnectOptions)
6622 6623 -class SBPlatformShellCommand(_object):
6624 """Proxy of C++ lldb::SBPlatformShellCommand class""" 6625 __swig_setmethods__ = {} 6626 __setattr__ = lambda self, name, value: _swig_setattr(self, SBPlatformShellCommand, name, value) 6627 __swig_getmethods__ = {} 6628 __getattr__ = lambda self, name: _swig_getattr(self, SBPlatformShellCommand, name) 6629 __repr__ = _swig_repr
6630 - def __init__(self, *args):
6631 """ 6632 __init__(lldb::SBPlatformShellCommand self, str const * shell_command) -> SBPlatformShellCommand 6633 __init__(lldb::SBPlatformShellCommand self, SBPlatformShellCommand rhs) -> SBPlatformShellCommand 6634 """ 6635 this = _lldb.new_SBPlatformShellCommand(*args) 6636 try: self.this.append(this) 6637 except: self.this = this
6638 __swig_destroy__ = _lldb.delete_SBPlatformShellCommand 6639 __del__ = lambda self : None;
6640 - def Clear(self):
6641 """Clear(SBPlatformShellCommand self)""" 6642 return _lldb.SBPlatformShellCommand_Clear(self)
6643
6644 - def GetCommand(self):
6645 """GetCommand(SBPlatformShellCommand self) -> str const *""" 6646 return _lldb.SBPlatformShellCommand_GetCommand(self)
6647
6648 - def SetCommand(self, *args):
6649 """SetCommand(SBPlatformShellCommand self, str const * shell_command)""" 6650 return _lldb.SBPlatformShellCommand_SetCommand(self, *args)
6651
6652 - def GetWorkingDirectory(self):
6653 """GetWorkingDirectory(SBPlatformShellCommand self) -> str const *""" 6654 return _lldb.SBPlatformShellCommand_GetWorkingDirectory(self)
6655
6656 - def SetWorkingDirectory(self, *args):
6657 """SetWorkingDirectory(SBPlatformShellCommand self, str const * path)""" 6658 return _lldb.SBPlatformShellCommand_SetWorkingDirectory(self, *args)
6659
6660 - def GetTimeoutSeconds(self):
6661 """GetTimeoutSeconds(SBPlatformShellCommand self) -> uint32_t""" 6662 return _lldb.SBPlatformShellCommand_GetTimeoutSeconds(self)
6663
6664 - def SetTimeoutSeconds(self, *args):
6665 """SetTimeoutSeconds(SBPlatformShellCommand self, uint32_t sec)""" 6666 return _lldb.SBPlatformShellCommand_SetTimeoutSeconds(self, *args)
6667
6668 - def GetSignal(self):
6669 """GetSignal(SBPlatformShellCommand self) -> int""" 6670 return _lldb.SBPlatformShellCommand_GetSignal(self)
6671
6672 - def GetStatus(self):
6673 """GetStatus(SBPlatformShellCommand self) -> int""" 6674 return _lldb.SBPlatformShellCommand_GetStatus(self)
6675
6676 - def GetOutput(self):
6677 """GetOutput(SBPlatformShellCommand self) -> str const *""" 6678 return _lldb.SBPlatformShellCommand_GetOutput(self)
6679 6680 SBPlatformShellCommand_swigregister = _lldb.SBPlatformShellCommand_swigregister 6681 SBPlatformShellCommand_swigregister(SBPlatformShellCommand)
6682 6683 -class SBPlatform(_object):
6684 """ 6685 A class that represents a platform that can represent the current host or a remote host debug platform. 6686 6687 The SBPlatform class represents the current host, or a remote host. 6688 It can be connected to a remote platform in order to provide ways 6689 to remotely launch and attach to processes, upload/download files, 6690 create directories, run remote shell commands, find locally cached 6691 versions of files from the remote system, and much more. 6692 6693 SBPlatform objects can be created and then used to connect to a remote 6694 platform which allows the SBPlatform to be used to get a list of the 6695 current processes on the remote host, attach to one of those processes, 6696 install programs on the remote system, attach and launch processes, 6697 and much more. 6698 6699 Every SBTarget has a corresponding SBPlatform. The platform can be 6700 specified upon target creation, or the currently selected platform 6701 will attempt to be used when creating the target automatically as long 6702 as the currently selected platform matches the target architecture 6703 and executable type. If the architecture or executable type do not match, 6704 a suitable platform will be found automatically. 6705 """ 6706 __swig_setmethods__ = {} 6707 __setattr__ = lambda self, name, value: _swig_setattr(self, SBPlatform, name, value) 6708 __swig_getmethods__ = {} 6709 __getattr__ = lambda self, name: _swig_getattr(self, SBPlatform, name) 6710 __repr__ = _swig_repr
6711 - def __init__(self, *args):
6712 """ 6713 __init__(lldb::SBPlatform self) -> SBPlatform 6714 __init__(lldb::SBPlatform self, str const * arg2) -> SBPlatform 6715 """ 6716 this = _lldb.new_SBPlatform(*args) 6717 try: self.this.append(this) 6718 except: self.this = this
6719 __swig_destroy__ = _lldb.delete_SBPlatform 6720 __del__ = lambda self : None;
6721 - def __nonzero__(self): return self.IsValid()
6722 - def IsValid(self):
6723 """IsValid(SBPlatform self) -> bool""" 6724 return _lldb.SBPlatform_IsValid(self)
6725
6726 - def Clear(self):
6727 """Clear(SBPlatform self)""" 6728 return _lldb.SBPlatform_Clear(self)
6729
6730 - def GetWorkingDirectory(self):
6731 """GetWorkingDirectory(SBPlatform self) -> str const *""" 6732 return _lldb.SBPlatform_GetWorkingDirectory(self)
6733
6734 - def SetWorkingDirectory(self, *args):
6735 """SetWorkingDirectory(SBPlatform self, str const * arg2) -> bool""" 6736 return _lldb.SBPlatform_SetWorkingDirectory(self, *args)
6737
6738 - def GetName(self):
6739 """GetName(SBPlatform self) -> str const *""" 6740 return _lldb.SBPlatform_GetName(self)
6741
6742 - def ConnectRemote(self, *args):
6743 """ConnectRemote(SBPlatform self, SBPlatformConnectOptions connect_options) -> SBError""" 6744 return _lldb.SBPlatform_ConnectRemote(self, *args)
6745
6746 - def DisconnectRemote(self):
6747 """DisconnectRemote(SBPlatform self)""" 6748 return _lldb.SBPlatform_DisconnectRemote(self)
6749
6750 - def IsConnected(self):
6751 """IsConnected(SBPlatform self) -> bool""" 6752 return _lldb.SBPlatform_IsConnected(self)
6753
6754 - def GetTriple(self):
6755 """GetTriple(SBPlatform self) -> str const *""" 6756 return _lldb.SBPlatform_GetTriple(self)
6757
6758 - def GetHostname(self):
6759 """GetHostname(SBPlatform self) -> str const *""" 6760 return _lldb.SBPlatform_GetHostname(self)
6761
6762 - def GetOSBuild(self):
6763 """GetOSBuild(SBPlatform self) -> str const *""" 6764 return _lldb.SBPlatform_GetOSBuild(self)
6765
6766 - def GetOSDescription(self):
6767 """GetOSDescription(SBPlatform self) -> str const *""" 6768 return _lldb.SBPlatform_GetOSDescription(self)
6769
6770 - def GetOSMajorVersion(self):
6771 """GetOSMajorVersion(SBPlatform self) -> uint32_t""" 6772 return _lldb.SBPlatform_GetOSMajorVersion(self)
6773
6774 - def GetOSMinorVersion(self):
6775 """GetOSMinorVersion(SBPlatform self) -> uint32_t""" 6776 return _lldb.SBPlatform_GetOSMinorVersion(self)
6777
6778 - def GetOSUpdateVersion(self):
6779 """GetOSUpdateVersion(SBPlatform self) -> uint32_t""" 6780 return _lldb.SBPlatform_GetOSUpdateVersion(self)
6781
6782 - def Get(self, *args):
6783 """Get(SBPlatform self, SBFileSpec src, SBFileSpec dst) -> SBError""" 6784 return _lldb.SBPlatform_Get(self, *args)
6785
6786 - def Put(self, *args):
6787 """Put(SBPlatform self, SBFileSpec src, SBFileSpec dst) -> SBError""" 6788 return _lldb.SBPlatform_Put(self, *args)
6789
6790 - def Install(self, *args):
6791 """Install(SBPlatform self, SBFileSpec src, SBFileSpec dst) -> SBError""" 6792 return _lldb.SBPlatform_Install(self, *args)
6793
6794 - def Run(self, *args):
6795 """Run(SBPlatform self, SBPlatformShellCommand shell_command) -> SBError""" 6796 return _lldb.SBPlatform_Run(self, *args)
6797
6798 - def Launch(self, *args):
6799 """Launch(SBPlatform self, SBLaunchInfo launch_info) -> SBError""" 6800 return _lldb.SBPlatform_Launch(self, *args)
6801
6802 - def Kill(self, *args):
6803 """Kill(SBPlatform self, lldb::pid_t const pid) -> SBError""" 6804 return _lldb.SBPlatform_Kill(self, *args)
6805
6806 - def MakeDirectory(self, *args):
6807 """ 6808 MakeDirectory(SBPlatform self, str const * path, uint32_t file_permissions=eFilePermissionsDirectoryDefault) -> SBError 6809 MakeDirectory(SBPlatform self, str const * path) -> SBError 6810 """ 6811 return _lldb.SBPlatform_MakeDirectory(self, *args)
6812
6813 - def GetFilePermissions(self, *args):
6814 """GetFilePermissions(SBPlatform self, str const * path) -> uint32_t""" 6815 return _lldb.SBPlatform_GetFilePermissions(self, *args)
6816
6817 - def SetFilePermissions(self, *args):
6818 """SetFilePermissions(SBPlatform self, str const * path, uint32_t file_permissions) -> SBError""" 6819 return _lldb.SBPlatform_SetFilePermissions(self, *args)
6820
6821 - def GetUnixSignals(self):
6822 """GetUnixSignals(SBPlatform self) -> SBUnixSignals""" 6823 return _lldb.SBPlatform_GetUnixSignals(self)
6824 6825 SBPlatform_swigregister = _lldb.SBPlatform_swigregister 6826 SBPlatform_swigregister(SBPlatform)
6827 6828 -class SBProcess(_object):
6829 """ 6830 Represents the process associated with the target program. 6831 6832 SBProcess supports thread iteration. For example (from test/lldbutil.py), 6833 6834 # ================================================== 6835 # Utility functions related to Threads and Processes 6836 # ================================================== 6837 6838 def get_stopped_threads(process, reason): 6839 '''Returns the thread(s) with the specified stop reason in a list. 6840 6841 The list can be empty if no such thread exists. 6842 ''' 6843 threads = [] 6844 for t in process: 6845 if t.GetStopReason() == reason: 6846 threads.append(t) 6847 return threads 6848 6849 ... 6850 6851 """ 6852 __swig_setmethods__ = {} 6853 __setattr__ = lambda self, name, value: _swig_setattr(self, SBProcess, name, value) 6854 __swig_getmethods__ = {} 6855 __getattr__ = lambda self, name: _swig_getattr(self, SBProcess, name) 6856 __repr__ = _swig_repr 6857 eBroadcastBitStateChanged = _lldb.SBProcess_eBroadcastBitStateChanged 6858 eBroadcastBitInterrupt = _lldb.SBProcess_eBroadcastBitInterrupt 6859 eBroadcastBitSTDOUT = _lldb.SBProcess_eBroadcastBitSTDOUT 6860 eBroadcastBitSTDERR = _lldb.SBProcess_eBroadcastBitSTDERR 6861 eBroadcastBitProfileData = _lldb.SBProcess_eBroadcastBitProfileData 6862 eBroadcastBitStructuredData = _lldb.SBProcess_eBroadcastBitStructuredData
6863 - def __iter__(self): return lldb_iter(self, 'GetNumThreads', 'GetThreadAtIndex')
6864 - def __len__(self): return self.GetNumThreads()
6865 - def __init__(self, *args):
6866 """ 6867 __init__(lldb::SBProcess self) -> SBProcess 6868 __init__(lldb::SBProcess self, SBProcess rhs) -> SBProcess 6869 """ 6870 this = _lldb.new_SBProcess(*args) 6871 try: self.this.append(this) 6872 except: self.this = this
6873 __swig_destroy__ = _lldb.delete_SBProcess 6874 __del__ = lambda self : None;
6875 - def GetBroadcasterClassName():
6876 """GetBroadcasterClassName() -> str const *""" 6877 return _lldb.SBProcess_GetBroadcasterClassName()
6878 6879 if _newclass:GetBroadcasterClassName = staticmethod(GetBroadcasterClassName) 6880 __swig_getmethods__["GetBroadcasterClassName"] = lambda x: GetBroadcasterClassName
6881 - def GetPluginName(self):
6882 """GetPluginName(SBProcess self) -> str const *""" 6883 return _lldb.SBProcess_GetPluginName(self)
6884
6885 - def GetShortPluginName(self):
6886 """GetShortPluginName(SBProcess self) -> str const *""" 6887 return _lldb.SBProcess_GetShortPluginName(self)
6888
6889 - def Clear(self):
6890 """Clear(SBProcess self)""" 6891 return _lldb.SBProcess_Clear(self)
6892
6893 - def __nonzero__(self): return self.IsValid()
6894 - def IsValid(self):
6895 """IsValid(SBProcess self) -> bool""" 6896 return _lldb.SBProcess_IsValid(self)
6897
6898 - def GetTarget(self):
6899 """GetTarget(SBProcess self) -> SBTarget""" 6900 return _lldb.SBProcess_GetTarget(self)
6901
6902 - def GetByteOrder(self):
6903 """GetByteOrder(SBProcess self) -> lldb::ByteOrder""" 6904 return _lldb.SBProcess_GetByteOrder(self)
6905
6906 - def PutSTDIN(self, *args):
6907 """ 6908 Writes data into the current process's stdin. API client specifies a Python 6909 string as the only argument. 6910 """ 6911 return _lldb.SBProcess_PutSTDIN(self, *args)
6912
6913 - def GetSTDOUT(self, *args):
6914 """ 6915 Reads data from the current process's stdout stream. API client specifies 6916 the size of the buffer to read data into. It returns the byte buffer in a 6917 Python string. 6918 """ 6919 return _lldb.SBProcess_GetSTDOUT(self, *args)
6920
6921 - def GetSTDERR(self, *args):
6922 """ 6923 Reads data from the current process's stderr stream. API client specifies 6924 the size of the buffer to read data into. It returns the byte buffer in a 6925 Python string. 6926 """ 6927 return _lldb.SBProcess_GetSTDERR(self, *args)
6928
6929 - def GetAsyncProfileData(self, *args):
6930 """GetAsyncProfileData(SBProcess self, str * dst) -> size_t""" 6931 return _lldb.SBProcess_GetAsyncProfileData(self, *args)
6932
6933 - def ReportEventState(self, *args):
6934 """ReportEventState(SBProcess self, SBEvent event, FILE * out)""" 6935 return _lldb.SBProcess_ReportEventState(self, *args)
6936
6937 - def AppendEventStateReport(self, *args):
6938 """AppendEventStateReport(SBProcess self, SBEvent event, SBCommandReturnObject result)""" 6939 return _lldb.SBProcess_AppendEventStateReport(self, *args)
6940
6941 - def RemoteAttachToProcessWithID(self, *args):
6942 """ 6943 RemoteAttachToProcessWithID(SBProcess self, lldb::pid_t pid, SBError error) -> bool 6944 6945 Remote connection related functions. These will fail if the 6946 process is not in eStateConnected. They are intended for use 6947 when connecting to an externally managed debugserver instance. 6948 """ 6949 return _lldb.SBProcess_RemoteAttachToProcessWithID(self, *args)
6950
6951 - def RemoteLaunch(self, *args):
6952 """ 6953 RemoteLaunch(SBProcess self, str const ** argv, str const ** envp, str const * stdin_path, str const * stdout_path, 6954 str const * stderr_path, str const * working_directory, uint32_t launch_flags, 6955 bool stop_at_entry, SBError error) -> bool 6956 6957 See SBTarget.Launch for argument description and usage. 6958 """ 6959 return _lldb.SBProcess_RemoteLaunch(self, *args)
6960
6961 - def GetNumThreads(self):
6962 """GetNumThreads(SBProcess self) -> uint32_t""" 6963 return _lldb.SBProcess_GetNumThreads(self)
6964
6965 - def GetThreadAtIndex(self, *args):
6966 """ 6967 Returns the INDEX'th thread from the list of current threads. The index 6968 of a thread is only valid for the current stop. For a persistent thread 6969 identifier use either the thread ID or the IndexID. See help on SBThread 6970 for more details. 6971 """ 6972 return _lldb.SBProcess_GetThreadAtIndex(self, *args)
6973
6974 - def GetThreadByID(self, *args):
6975 """ 6976 Returns the thread with the given thread ID. 6977 """ 6978 return _lldb.SBProcess_GetThreadByID(self, *args)
6979
6980 - def GetThreadByIndexID(self, *args):
6981 """ 6982 Returns the thread with the given thread IndexID. 6983 """ 6984 return _lldb.SBProcess_GetThreadByIndexID(self, *args)
6985
6986 - def GetSelectedThread(self):
6987 """ 6988 Returns the currently selected thread. 6989 """ 6990 return _lldb.SBProcess_GetSelectedThread(self)
6991
6992 - def CreateOSPluginThread(self, *args):
6993 """ 6994 Lazily create a thread on demand through the current OperatingSystem plug-in, if the current OperatingSystem plug-in supports it. 6995 """ 6996 return _lldb.SBProcess_CreateOSPluginThread(self, *args)
6997
6998 - def SetSelectedThread(self, *args):
6999 """SetSelectedThread(SBProcess self, SBThread thread) -> bool""" 7000 return _lldb.SBProcess_SetSelectedThread(self, *args)
7001
7002 - def SetSelectedThreadByID(self, *args):
7003 """SetSelectedThreadByID(SBProcess self, lldb::tid_t tid) -> bool""" 7004 return _lldb.SBProcess_SetSelectedThreadByID(self, *args)
7005
7006 - def SetSelectedThreadByIndexID(self, *args):
7007 """SetSelectedThreadByIndexID(SBProcess self, uint32_t index_id) -> bool""" 7008 return _lldb.SBProcess_SetSelectedThreadByIndexID(self, *args)
7009
7010 - def GetNumQueues(self):
7011 """GetNumQueues(SBProcess self) -> uint32_t""" 7012 return _lldb.SBProcess_GetNumQueues(self)
7013
7014 - def GetQueueAtIndex(self, *args):
7015 """GetQueueAtIndex(SBProcess self, uint32_t index) -> SBQueue""" 7016 return _lldb.SBProcess_GetQueueAtIndex(self, *args)
7017
7018 - def GetState(self):
7019 """GetState(SBProcess self) -> lldb::StateType""" 7020 return _lldb.SBProcess_GetState(self)
7021
7022 - def GetExitStatus(self):
7023 """GetExitStatus(SBProcess self) -> int""" 7024 return _lldb.SBProcess_GetExitStatus(self)
7025
7026 - def GetExitDescription(self):
7027 """GetExitDescription(SBProcess self) -> str const *""" 7028 return _lldb.SBProcess_GetExitDescription(self)
7029
7030 - def GetProcessID(self):
7031 """ 7032 Returns the process ID of the process. 7033 """ 7034 return _lldb.SBProcess_GetProcessID(self)
7035
7036 - def GetUniqueID(self):
7037 """ 7038 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. 7039 """ 7040 return _lldb.SBProcess_GetUniqueID(self)
7041
7042 - def GetAddressByteSize(self):
7043 """GetAddressByteSize(SBProcess self) -> uint32_t""" 7044 return _lldb.SBProcess_GetAddressByteSize(self)
7045
7046 - def Destroy(self):
7047 """ 7048 Destroy(SBProcess self) -> SBError 7049 7050 Kills the process and shuts down all threads that were spawned to 7051 track and monitor process. 7052 """ 7053 return _lldb.SBProcess_Destroy(self)
7054
7055 - def Continue(self):
7056 """Continue(SBProcess self) -> SBError""" 7057 return _lldb.SBProcess_Continue(self)
7058
7059 - def Stop(self):
7060 """Stop(SBProcess self) -> SBError""" 7061 return _lldb.SBProcess_Stop(self)
7062
7063 - def Kill(self):
7064 """Kill(SBProcess self) -> SBError""" 7065 return _lldb.SBProcess_Kill(self)
7066
7067 - def Detach(self):
7068 """Detach(SBProcess self) -> SBError""" 7069 return _lldb.SBProcess_Detach(self)
7070
7071 - def Signal(self, *args):
7072 """ 7073 Signal(SBProcess self, int signal) -> SBError 7074 7075 Sends the process a unix signal. 7076 """ 7077 return _lldb.SBProcess_Signal(self, *args)
7078
7079 - def GetUnixSignals(self):
7080 """GetUnixSignals(SBProcess self) -> SBUnixSignals""" 7081 return _lldb.SBProcess_GetUnixSignals(self)
7082
7083 - def GetStopID(self, include_expression_stops=False):
7084 """ 7085 GetStopID(SBProcess self, bool include_expression_stops=False) -> uint32_t 7086 GetStopID(SBProcess self) -> uint32_t 7087 7088 Returns a stop id that will increase every time the process executes. If 7089 include_expression_stops is true, then stops caused by expression evaluation 7090 will cause the returned value to increase, otherwise the counter returned will 7091 only increase when execution is continued explicitly by the user. Note, the value 7092 will always increase, but may increase by more than one per stop. 7093 """ 7094 return _lldb.SBProcess_GetStopID(self, include_expression_stops)
7095
7096 - def SendAsyncInterrupt(self):
7097 """SendAsyncInterrupt(SBProcess self)""" 7098 return _lldb.SBProcess_SendAsyncInterrupt(self)
7099
7100 - def ReadMemory(self, *args):
7101 """ 7102 Reads memory from the current process's address space and removes any 7103 traps that may have been inserted into the memory. It returns the byte 7104 buffer in a Python string. Example: 7105 7106 # Read 4 bytes from address 'addr' and assume error.Success() is True. 7107 content = process.ReadMemory(addr, 4, error) 7108 new_bytes = bytearray(content) 7109 """ 7110 return _lldb.SBProcess_ReadMemory(self, *args)
7111
7112 - def WriteMemory(self, *args):
7113 """ 7114 Writes memory to the current process's address space and maintains any 7115 traps that might be present due to software breakpoints. Example: 7116 7117 # Create a Python string from the byte array. 7118 new_value = str(bytes) 7119 result = process.WriteMemory(addr, new_value, error) 7120 if not error.Success() or result != len(bytes): 7121 print('SBProcess.WriteMemory() failed!') 7122 """ 7123 return _lldb.SBProcess_WriteMemory(self, *args)
7124
7125 - def ReadCStringFromMemory(self, *args):
7126 """ 7127 Reads a NULL terminated C string from the current process's address space. 7128 It returns a python string of the exact length, or truncates the string if 7129 the maximum stracter limit is reached. Example: 7130 7131 # Read a C string of at most 256 bytes from address '0x1000' 7132 error = lldb.SBError() 7133 cstring = process.ReadCStringFromMemory(0x1000, 256, error) 7134 if error.Success(): 7135 print('cstring: ', cstring) 7136 else 7137 print('error: ', error) 7138 """ 7139 return _lldb.SBProcess_ReadCStringFromMemory(self, *args)
7140
7141 - def ReadUnsignedFromMemory(self, *args):
7142 """ 7143 Reads an unsigned integer from memory given a byte size and an address. 7144 Returns the unsigned integer that was read. Example: 7145 7146 # Read a 4 byte unsigned integer from address 0x1000 7147 error = lldb.SBError() 7148 uint = ReadUnsignedFromMemory(0x1000, 4, error) 7149 if error.Success(): 7150 print('integer: %u' % uint) 7151 else 7152 print('error: ', error) 7153 7154 """ 7155 return _lldb.SBProcess_ReadUnsignedFromMemory(self, *args)
7156
7157 - def ReadPointerFromMemory(self, *args):
7158 """ 7159 Reads a pointer from memory from an address and returns the value. Example: 7160 7161 # Read a pointer from address 0x1000 7162 error = lldb.SBError() 7163 ptr = ReadPointerFromMemory(0x1000, error) 7164 if error.Success(): 7165 print('pointer: 0x%x' % ptr) 7166 else 7167 print('error: ', error) 7168 7169 """ 7170 return _lldb.SBProcess_ReadPointerFromMemory(self, *args)
7171
7172 - def GetStateFromEvent(*args):
7173 """GetStateFromEvent(SBEvent event) -> lldb::StateType""" 7174 return _lldb.SBProcess_GetStateFromEvent(*args)
7175 7176 if _newclass:GetStateFromEvent = staticmethod(GetStateFromEvent) 7177 __swig_getmethods__["GetStateFromEvent"] = lambda x: GetStateFromEvent
7178 - def GetRestartedFromEvent(*args):
7179 """GetRestartedFromEvent(SBEvent event) -> bool""" 7180 return _lldb.SBProcess_GetRestartedFromEvent(*args)
7181 7182 if _newclass:GetRestartedFromEvent = staticmethod(GetRestartedFromEvent) 7183 __swig_getmethods__["GetRestartedFromEvent"] = lambda x: GetRestartedFromEvent
7184 - def GetNumRestartedReasonsFromEvent(*args):
7185 """GetNumRestartedReasonsFromEvent(SBEvent event) -> size_t""" 7186 return _lldb.SBProcess_GetNumRestartedReasonsFromEvent(*args)
7187 7188 if _newclass:GetNumRestartedReasonsFromEvent = staticmethod(GetNumRestartedReasonsFromEvent) 7189 __swig_getmethods__["GetNumRestartedReasonsFromEvent"] = lambda x: GetNumRestartedReasonsFromEvent
7190 - def GetRestartedReasonAtIndexFromEvent(*args):
7191 """GetRestartedReasonAtIndexFromEvent(SBEvent event, size_t idx) -> str const *""" 7192 return _lldb.SBProcess_GetRestartedReasonAtIndexFromEvent(*args)
7193 7194 if _newclass:GetRestartedReasonAtIndexFromEvent = staticmethod(GetRestartedReasonAtIndexFromEvent) 7195 __swig_getmethods__["GetRestartedReasonAtIndexFromEvent"] = lambda x: GetRestartedReasonAtIndexFromEvent
7196 - def GetProcessFromEvent(*args):
7197 """GetProcessFromEvent(SBEvent event) -> SBProcess""" 7198 return _lldb.SBProcess_GetProcessFromEvent(*args)
7199 7200 if _newclass:GetProcessFromEvent = staticmethod(GetProcessFromEvent) 7201 __swig_getmethods__["GetProcessFromEvent"] = lambda x: GetProcessFromEvent
7202 - def GetInterruptedFromEvent(*args):
7203 """GetInterruptedFromEvent(SBEvent event) -> bool""" 7204 return _lldb.SBProcess_GetInterruptedFromEvent(*args)
7205 7206 if _newclass:GetInterruptedFromEvent = staticmethod(GetInterruptedFromEvent) 7207 __swig_getmethods__["GetInterruptedFromEvent"] = lambda x: GetInterruptedFromEvent
7208 - def GetStructuredDataFromEvent(*args):
7209 """GetStructuredDataFromEvent(SBEvent event) -> SBStructuredData""" 7210 return _lldb.SBProcess_GetStructuredDataFromEvent(*args)
7211 7212 if _newclass:GetStructuredDataFromEvent = staticmethod(GetStructuredDataFromEvent) 7213 __swig_getmethods__["GetStructuredDataFromEvent"] = lambda x: GetStructuredDataFromEvent
7214 - def EventIsProcessEvent(*args):
7215 """EventIsProcessEvent(SBEvent event) -> bool""" 7216 return _lldb.SBProcess_EventIsProcessEvent(*args)
7217 7218 if _newclass:EventIsProcessEvent = staticmethod(EventIsProcessEvent) 7219 __swig_getmethods__["EventIsProcessEvent"] = lambda x: EventIsProcessEvent
7220 - def EventIsStructuredDataEvent(*args):
7221 """EventIsStructuredDataEvent(SBEvent event) -> bool""" 7222 return _lldb.SBProcess_EventIsStructuredDataEvent(*args)
7223 7224 if _newclass:EventIsStructuredDataEvent = staticmethod(EventIsStructuredDataEvent) 7225 __swig_getmethods__["EventIsStructuredDataEvent"] = lambda x: EventIsStructuredDataEvent
7226 - def GetBroadcaster(self):
7227 """GetBroadcaster(SBProcess self) -> SBBroadcaster""" 7228 return _lldb.SBProcess_GetBroadcaster(self)
7229
7230 - def GetDescription(self, *args):
7231 """GetDescription(SBProcess self, SBStream description) -> bool""" 7232 return _lldb.SBProcess_GetDescription(self, *args)
7233
7234 - def GetNumSupportedHardwareWatchpoints(self, *args):
7235 """GetNumSupportedHardwareWatchpoints(SBProcess self, SBError error) -> uint32_t""" 7236 return _lldb.SBProcess_GetNumSupportedHardwareWatchpoints(self, *args)
7237
7238 - def LoadImage(self, *args):
7239 """LoadImage(SBProcess self, SBFileSpec image_spec, SBError error) -> uint32_t""" 7240 return _lldb.SBProcess_LoadImage(self, *args)
7241
7242 - def UnloadImage(self, *args):
7243 """UnloadImage(SBProcess self, uint32_t image_token) -> SBError""" 7244 return _lldb.SBProcess_UnloadImage(self, *args)
7245
7246 - def SendEventData(self, *args):
7247 """SendEventData(SBProcess self, str const * event_data) -> SBError""" 7248 return _lldb.SBProcess_SendEventData(self, *args)
7249
7250 - def GetNumExtendedBacktraceTypes(self):
7251 """ 7252 Return the number of different thread-origin extended backtraces 7253 this process can support as a uint32_t. 7254 When the process is stopped and you have an SBThread, lldb may be 7255 able to show a backtrace of when that thread was originally created, 7256 or the work item was enqueued to it (in the case of a libdispatch 7257 queue). 7258 """ 7259 return _lldb.SBProcess_GetNumExtendedBacktraceTypes(self)
7260
7261 - def GetExtendedBacktraceTypeAtIndex(self, *args):
7262 """ 7263 Takes an index argument, returns the name of one of the thread-origin 7264 extended backtrace methods as a str. 7265 """ 7266 return _lldb.SBProcess_GetExtendedBacktraceTypeAtIndex(self, *args)
7267
7268 - def GetHistoryThreads(self, *args):
7269 """GetHistoryThreads(SBProcess self, lldb::addr_t addr) -> SBThreadCollection""" 7270 return _lldb.SBProcess_GetHistoryThreads(self, *args)
7271
7272 - def IsInstrumentationRuntimePresent(self, *args):
7273 """IsInstrumentationRuntimePresent(SBProcess self, lldb::InstrumentationRuntimeType type) -> bool""" 7274 return _lldb.SBProcess_IsInstrumentationRuntimePresent(self, *args)
7275
7276 - def SaveCore(self, *args):
7277 """SaveCore(SBProcess self, str const * file_name) -> SBError""" 7278 return _lldb.SBProcess_SaveCore(self, *args)
7279
7280 - def GetMemoryRegionInfo(self, *args):
7281 """GetMemoryRegionInfo(SBProcess self, lldb::addr_t load_addr, SBMemoryRegionInfo region_info) -> SBError""" 7282 return _lldb.SBProcess_GetMemoryRegionInfo(self, *args)
7283
7284 - def GetMemoryRegions(self):
7285 """GetMemoryRegions(SBProcess self) -> SBMemoryRegionInfoList""" 7286 return _lldb.SBProcess_GetMemoryRegions(self)
7287
7288 - def __get_is_alive__(self):
7289 '''Returns "True" if the process is currently alive, "False" otherwise''' 7290 s = self.GetState() 7291 if (s == eStateAttaching or 7292 s == eStateLaunching or 7293 s == eStateStopped or 7294 s == eStateRunning or 7295 s == eStateStepping or 7296 s == eStateCrashed or 7297 s == eStateSuspended): 7298 return True 7299 return False
7300
7301 - def __get_is_running__(self):
7302 '''Returns "True" if the process is currently running, "False" otherwise''' 7303 state = self.GetState() 7304 if state == eStateRunning or state == eStateStepping: 7305 return True 7306 return False
7307
7308 - def __get_is_stopped__(self):
7309 '''Returns "True" if the process is currently stopped, "False" otherwise''' 7310 state = self.GetState() 7311 if state == eStateStopped or state == eStateCrashed or state == eStateSuspended: 7312 return True 7313 return False
7314
7315 - class threads_access(object):
7316 '''A helper object that will lazily hand out thread for a process when supplied an index.'''
7317 - def __init__(self, sbprocess):
7318 self.sbprocess = sbprocess
7319
7320 - def __len__(self):
7321 if self.sbprocess: 7322 return int(self.sbprocess.GetNumThreads()) 7323 return 0
7324
7325 - def __getitem__(self, key):
7326 if type(key) is int and key < len(self): 7327 return self.sbprocess.GetThreadAtIndex(key) 7328 return None
7329
7330 - def get_threads_access_object(self):
7331 '''An accessor function that returns a modules_access() object which allows lazy thread access from a lldb.SBProcess object.''' 7332 return self.threads_access (self)
7333
7334 - def get_process_thread_list(self):
7335 '''An accessor function that returns a list() that contains all threads in a lldb.SBProcess object.''' 7336 threads = [] 7337 accessor = self.get_threads_access_object() 7338 for idx in range(len(accessor)): 7339 threads.append(accessor[idx]) 7340 return threads
7341 7342 __swig_getmethods__["threads"] = get_process_thread_list 7343 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.''') 7344 7345 __swig_getmethods__["thread"] = get_threads_access_object 7346 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]).''') 7347 7348 __swig_getmethods__["is_alive"] = __get_is_alive__ 7349 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.''') 7350 7351 __swig_getmethods__["is_running"] = __get_is_running__ 7352 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.''') 7353 7354 __swig_getmethods__["is_stopped"] = __get_is_stopped__ 7355 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.''') 7356 7357 __swig_getmethods__["id"] = GetProcessID 7358 if _newclass: id = property(GetProcessID, None, doc='''A read only property that returns the process ID as an integer.''') 7359 7360 __swig_getmethods__["target"] = GetTarget 7361 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.''') 7362 7363 __swig_getmethods__["num_threads"] = GetNumThreads 7364 if _newclass: num_threads = property(GetNumThreads, None, doc='''A read only property that returns the number of threads in this process as an integer.''') 7365 7366 __swig_getmethods__["selected_thread"] = GetSelectedThread 7367 __swig_setmethods__["selected_thread"] = SetSelectedThread 7368 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.''') 7369 7370 __swig_getmethods__["state"] = GetState 7371 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.).''') 7372 7373 __swig_getmethods__["exit_state"] = GetExitStatus 7374 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.''') 7375 7376 __swig_getmethods__["exit_description"] = GetExitDescription 7377 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.''') 7378 7379 __swig_getmethods__["broadcaster"] = GetBroadcaster 7380 if _newclass: broadcaster = property(GetBroadcaster, None, doc='''A read only property that an lldb object that represents the broadcaster (lldb.SBBroadcaster) for this process.''') 7381
7382 - def __str__(self):
7383 """__str__(SBProcess self) -> PyObject *""" 7384 return _lldb.SBProcess___str__(self)
7385 7386 SBProcess_swigregister = _lldb.SBProcess_swigregister 7387 SBProcess_swigregister(SBProcess)
7388 7389 -def SBProcess_GetBroadcasterClassName():
7390 """SBProcess_GetBroadcasterClassName() -> str const *""" 7391 return _lldb.SBProcess_GetBroadcasterClassName()
7392
7393 -def SBProcess_GetStateFromEvent(*args):
7394 """SBProcess_GetStateFromEvent(SBEvent event) -> lldb::StateType""" 7395 return _lldb.SBProcess_GetStateFromEvent(*args)
7396
7397 -def SBProcess_GetRestartedFromEvent(*args):
7398 """SBProcess_GetRestartedFromEvent(SBEvent event) -> bool""" 7399 return _lldb.SBProcess_GetRestartedFromEvent(*args)
7400
7401 -def SBProcess_GetNumRestartedReasonsFromEvent(*args):
7402 """SBProcess_GetNumRestartedReasonsFromEvent(SBEvent event) -> size_t""" 7403 return _lldb.SBProcess_GetNumRestartedReasonsFromEvent(*args)
7404
7405 -def SBProcess_GetRestartedReasonAtIndexFromEvent(*args):
7406 """SBProcess_GetRestartedReasonAtIndexFromEvent(SBEvent event, size_t idx) -> str const *""" 7407 return _lldb.SBProcess_GetRestartedReasonAtIndexFromEvent(*args)
7408
7409 -def SBProcess_GetProcessFromEvent(*args):
7410 """SBProcess_GetProcessFromEvent(SBEvent event) -> SBProcess""" 7411 return _lldb.SBProcess_GetProcessFromEvent(*args)
7412
7413 -def SBProcess_GetInterruptedFromEvent(*args):
7414 """SBProcess_GetInterruptedFromEvent(SBEvent event) -> bool""" 7415 return _lldb.SBProcess_GetInterruptedFromEvent(*args)
7416
7417 -def SBProcess_GetStructuredDataFromEvent(*args):
7418 """SBProcess_GetStructuredDataFromEvent(SBEvent event) -> SBStructuredData""" 7419 return _lldb.SBProcess_GetStructuredDataFromEvent(*args)
7420
7421 -def SBProcess_EventIsProcessEvent(*args):
7422 """SBProcess_EventIsProcessEvent(SBEvent event) -> bool""" 7423 return _lldb.SBProcess_EventIsProcessEvent(*args)
7424
7425 -def SBProcess_EventIsStructuredDataEvent(*args):
7426 """SBProcess_EventIsStructuredDataEvent(SBEvent event) -> bool""" 7427 return _lldb.SBProcess_EventIsStructuredDataEvent(*args)
7428
7429 -class SBQueue(_object):
7430 """Proxy of C++ lldb::SBQueue class""" 7431 __swig_setmethods__ = {} 7432 __setattr__ = lambda self, name, value: _swig_setattr(self, SBQueue, name, value) 7433 __swig_getmethods__ = {} 7434 __getattr__ = lambda self, name: _swig_getattr(self, SBQueue, name) 7435 __repr__ = _swig_repr
7436 - def __init__(self, *args):
7437 """ 7438 __init__(lldb::SBQueue self) -> SBQueue 7439 __init__(lldb::SBQueue self, lldb::QueueSP const & queue_sp) -> SBQueue 7440 """ 7441 this = _lldb.new_SBQueue(*args) 7442 try: self.this.append(this) 7443 except: self.this = this
7444 __swig_destroy__ = _lldb.delete_SBQueue 7445 __del__ = lambda self : None;
7446 - def __nonzero__(self): return self.IsValid()
7447 - def IsValid(self):
7448 """IsValid(SBQueue self) -> bool""" 7449 return _lldb.SBQueue_IsValid(self)
7450
7451 - def Clear(self):
7452 """Clear(SBQueue self)""" 7453 return _lldb.SBQueue_Clear(self)
7454
7455 - def GetProcess(self):
7456 """GetProcess(SBQueue self) -> SBProcess""" 7457 return _lldb.SBQueue_GetProcess(self)
7458
7459 - def GetQueueID(self):
7460 """ 7461 Returns an lldb::queue_id_t type unique identifier number for this 7462 queue that will not be used by any other queue during this process' 7463 execution. These ID numbers often start at 1 with the first 7464 system-created queues and increment from there. 7465 """ 7466 return _lldb.SBQueue_GetQueueID(self)
7467
7468 - def GetName(self):
7469 """GetName(SBQueue self) -> str const *""" 7470 return _lldb.SBQueue_GetName(self)
7471
7472 - def GetKind(self):
7473 """ 7474 Returns an lldb::QueueKind enumerated value (e.g. eQueueKindUnknown, 7475 eQueueKindSerial, eQueueKindConcurrent) describing the type of this 7476 queue. 7477 """ 7478 return _lldb.SBQueue_GetKind(self)
7479
7480 - def GetIndexID(self):
7481 """GetIndexID(SBQueue self) -> uint32_t""" 7482 return _lldb.SBQueue_GetIndexID(self)
7483
7484 - def GetNumThreads(self):
7485 """GetNumThreads(SBQueue self) -> uint32_t""" 7486 return _lldb.SBQueue_GetNumThreads(self)
7487
7488 - def GetThreadAtIndex(self, *args):
7489 """GetThreadAtIndex(SBQueue self, uint32_t arg2) -> SBThread""" 7490 return _lldb.SBQueue_GetThreadAtIndex(self, *args)
7491
7492 - def GetNumPendingItems(self):
7493 """GetNumPendingItems(SBQueue self) -> uint32_t""" 7494 return _lldb.SBQueue_GetNumPendingItems(self)
7495
7496 - def GetPendingItemAtIndex(self, *args):
7497 """GetPendingItemAtIndex(SBQueue self, uint32_t arg2) -> SBQueueItem""" 7498 return _lldb.SBQueue_GetPendingItemAtIndex(self, *args)
7499
7500 - def GetNumRunningItems(self):
7501 """GetNumRunningItems(SBQueue self) -> uint32_t""" 7502 return _lldb.SBQueue_GetNumRunningItems(self)
7503 7504 SBQueue_swigregister = _lldb.SBQueue_swigregister 7505 SBQueue_swigregister(SBQueue)
7506 7507 -class SBQueueItem(_object):
7508 """Proxy of C++ lldb::SBQueueItem class""" 7509 __swig_setmethods__ = {} 7510 __setattr__ = lambda self, name, value: _swig_setattr(self, SBQueueItem, name, value) 7511 __swig_getmethods__ = {} 7512 __getattr__ = lambda self, name: _swig_getattr(self, SBQueueItem, name) 7513 __repr__ = _swig_repr
7514 - def __init__(self, *args):
7515 """ 7516 __init__(lldb::SBQueueItem self) -> SBQueueItem 7517 __init__(lldb::SBQueueItem self, lldb::QueueItemSP const & queue_item_sp) -> SBQueueItem 7518 """ 7519 this = _lldb.new_SBQueueItem(*args) 7520 try: self.this.append(this) 7521 except: self.this = this
7522 __swig_destroy__ = _lldb.delete_SBQueueItem 7523 __del__ = lambda self : None;
7524 - def __nonzero__(self): return self.IsValid()
7525 - def IsValid(self):
7526 """IsValid(SBQueueItem self) -> bool""" 7527 return _lldb.SBQueueItem_IsValid(self)
7528
7529 - def Clear(self):
7530 """Clear(SBQueueItem self)""" 7531 return _lldb.SBQueueItem_Clear(self)
7532
7533 - def GetKind(self):
7534 """GetKind(SBQueueItem self) -> lldb::QueueItemKind""" 7535 return _lldb.SBQueueItem_GetKind(self)
7536
7537 - def SetKind(self, *args):
7538 """SetKind(SBQueueItem self, lldb::QueueItemKind kind)""" 7539 return _lldb.SBQueueItem_SetKind(self, *args)
7540
7541 - def GetAddress(self):
7542 """GetAddress(SBQueueItem self) -> SBAddress""" 7543 return _lldb.SBQueueItem_GetAddress(self)
7544
7545 - def SetAddress(self, *args):
7546 """SetAddress(SBQueueItem self, SBAddress addr)""" 7547 return _lldb.SBQueueItem_SetAddress(self, *args)
7548
7549 - def SetQueueItem(self, *args):
7550 """SetQueueItem(SBQueueItem self, lldb::QueueItemSP const & queue_item_sp)""" 7551 return _lldb.SBQueueItem_SetQueueItem(self, *args)
7552
7553 - def GetExtendedBacktraceThread(self, *args):
7554 """GetExtendedBacktraceThread(SBQueueItem self, str const * type) -> SBThread""" 7555 return _lldb.SBQueueItem_GetExtendedBacktraceThread(self, *args)
7556 7557 SBQueueItem_swigregister = _lldb.SBQueueItem_swigregister 7558 SBQueueItem_swigregister(SBQueueItem)
7559 7560 -class SBSection(_object):
7561 """ 7562 Represents an executable image section. 7563 7564 SBSection supports iteration through its subsection, represented as SBSection 7565 as well. For example, 7566 7567 for sec in exe_module: 7568 if sec.GetName() == '__TEXT': 7569 print sec 7570 break 7571 print INDENT + 'Number of subsections: %d' % sec.GetNumSubSections() 7572 for subsec in sec: 7573 print INDENT + repr(subsec) 7574 7575 produces: 7576 7577 [0x0000000100000000-0x0000000100002000) a.out.__TEXT 7578 Number of subsections: 6 7579 [0x0000000100001780-0x0000000100001d5c) a.out.__TEXT.__text 7580 [0x0000000100001d5c-0x0000000100001da4) a.out.__TEXT.__stubs 7581 [0x0000000100001da4-0x0000000100001e2c) a.out.__TEXT.__stub_helper 7582 [0x0000000100001e2c-0x0000000100001f10) a.out.__TEXT.__cstring 7583 [0x0000000100001f10-0x0000000100001f68) a.out.__TEXT.__unwind_info 7584 [0x0000000100001f68-0x0000000100001ff8) a.out.__TEXT.__eh_frame 7585 7586 See also SBModule. 7587 """ 7588 __swig_setmethods__ = {} 7589 __setattr__ = lambda self, name, value: _swig_setattr(self, SBSection, name, value) 7590 __swig_getmethods__ = {} 7591 __getattr__ = lambda self, name: _swig_getattr(self, SBSection, name) 7592 __repr__ = _swig_repr
7593 - def __iter__(self): return lldb_iter(self, 'GetNumSubSections', 'GetSubSectionAtIndex')
7594 - def __len__(self): return self.GetNumSubSections()
7595 - def __init__(self, *args):
7596 """ 7597 __init__(lldb::SBSection self) -> SBSection 7598 __init__(lldb::SBSection self, SBSection rhs) -> SBSection 7599 """ 7600 this = _lldb.new_SBSection(*args) 7601 try: self.this.append(this) 7602 except: self.this = this
7603 __swig_destroy__ = _lldb.delete_SBSection 7604 __del__ = lambda self : None;
7605 - def __nonzero__(self): return self.IsValid()
7606 - def IsValid(self):
7607 """IsValid(SBSection self) -> bool""" 7608 return _lldb.SBSection_IsValid(self)
7609
7610 - def GetName(self):
7611 """GetName(SBSection self) -> str const *""" 7612 return _lldb.SBSection_GetName(self)
7613
7614 - def GetParent(self):
7615 """GetParent(SBSection self) -> SBSection""" 7616 return _lldb.SBSection_GetParent(self)
7617
7618 - def FindSubSection(self, *args):
7619 """FindSubSection(SBSection self, str const * sect_name) -> SBSection""" 7620 return _lldb.SBSection_FindSubSection(self, *args)
7621
7622 - def GetNumSubSections(self):
7623 """GetNumSubSections(SBSection self) -> size_t""" 7624 return _lldb.SBSection_GetNumSubSections(self)
7625
7626 - def GetSubSectionAtIndex(self, *args):
7627 """GetSubSectionAtIndex(SBSection self, size_t idx) -> SBSection""" 7628 return _lldb.SBSection_GetSubSectionAtIndex(self, *args)
7629
7630 - def GetFileAddress(self):
7631 """GetFileAddress(SBSection self) -> lldb::addr_t""" 7632 return _lldb.SBSection_GetFileAddress(self)
7633
7634 - def GetLoadAddress(self, *args):
7635 """GetLoadAddress(SBSection self, SBTarget target) -> lldb::addr_t""" 7636 return _lldb.SBSection_GetLoadAddress(self, *args)
7637
7638 - def GetByteSize(self):
7639 """GetByteSize(SBSection self) -> lldb::addr_t""" 7640 return _lldb.SBSection_GetByteSize(self)
7641
7642 - def GetFileOffset(self):
7643 """GetFileOffset(SBSection self) -> uint64_t""" 7644 return _lldb.SBSection_GetFileOffset(self)
7645
7646 - def GetFileByteSize(self):
7647 """GetFileByteSize(SBSection self) -> uint64_t""" 7648 return _lldb.SBSection_GetFileByteSize(self)
7649
7650 - def GetSectionData(self, *args):
7651 """ 7652 GetSectionData(SBSection self) -> SBData 7653 GetSectionData(SBSection self, uint64_t offset, uint64_t size) -> SBData 7654 """ 7655 return _lldb.SBSection_GetSectionData(self, *args)
7656
7657 - def GetSectionType(self):
7658 """GetSectionType(SBSection self) -> lldb::SectionType""" 7659 return _lldb.SBSection_GetSectionType(self)
7660
7661 - def GetPermissions(self):
7662 """GetPermissions(SBSection self) -> uint32_t""" 7663 return _lldb.SBSection_GetPermissions(self)
7664
7665 - def GetTargetByteSize(self):
7666 """ 7667 GetTargetByteSize(SBSection self) -> uint32_t 7668 7669 Return the size of a target's byte represented by this section 7670 in numbers of host bytes. Note that certain architectures have 7671 varying minimum addressable unit (i.e. byte) size for their 7672 CODE or DATA buses. 7673 7674 @return 7675 The number of host (8-bit) bytes needed to hold a target byte 7676 """ 7677 return _lldb.SBSection_GetTargetByteSize(self)
7678
7679 - def GetDescription(self, *args):
7680 """GetDescription(SBSection self, SBStream description) -> bool""" 7681 return _lldb.SBSection_GetDescription(self, *args)
7682
7683 - def __eq__(self, *args):
7684 """__eq__(SBSection self, SBSection rhs) -> bool""" 7685 return _lldb.SBSection___eq__(self, *args)
7686
7687 - def __ne__(self, *args):
7688 """__ne__(SBSection self, SBSection rhs) -> bool""" 7689 return _lldb.SBSection___ne__(self, *args)
7690
7691 - def get_addr(self):
7692 return SBAddress(self, 0)
7693 7694 __swig_getmethods__["name"] = GetName 7695 if _newclass: name = property(GetName, None, doc='''A read only property that returns the name of this section as a string.''') 7696 7697 __swig_getmethods__["addr"] = get_addr 7698 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.''') 7699 7700 __swig_getmethods__["file_addr"] = GetFileAddress 7701 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.''') 7702 7703 __swig_getmethods__["size"] = GetByteSize 7704 if _newclass: size = property(GetByteSize, None, doc='''A read only property that returns the size in bytes of this section as an integer.''') 7705 7706 __swig_getmethods__["file_offset"] = GetFileOffset 7707 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.''') 7708 7709 __swig_getmethods__["file_size"] = GetFileByteSize 7710 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.''') 7711 7712 __swig_getmethods__["data"] = GetSectionData 7713 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.''') 7714 7715 __swig_getmethods__["type"] = GetSectionType 7716 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.).''') 7717 7718 __swig_getmethods__["target_byte_size"] = GetTargetByteSize 7719 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.''') 7720 7721
7722 - def __str__(self):
7723 """__str__(SBSection self) -> PyObject *""" 7724 return _lldb.SBSection___str__(self)
7725
7726 - def __eq__(self, rhs):
7727 if not isinstance(rhs, type(self)): 7728 return False 7729 7730 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
7731
7732 - def __ne__(self, rhs):
7733 if not isinstance(rhs, type(self)): 7734 return True 7735 7736 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
7737 7738 SBSection_swigregister = _lldb.SBSection_swigregister 7739 SBSection_swigregister(SBSection)
7740 7741 -class SBSourceManager(_object):
7742 """ 7743 Represents a central authority for displaying source code. 7744 7745 For example (from test/source-manager/TestSourceManager.py), 7746 7747 # Create the filespec for 'main.c'. 7748 filespec = lldb.SBFileSpec('main.c', False) 7749 source_mgr = self.dbg.GetSourceManager() 7750 # Use a string stream as the destination. 7751 stream = lldb.SBStream() 7752 source_mgr.DisplaySourceLinesWithLineNumbers(filespec, 7753 self.line, 7754 2, # context before 7755 2, # context after 7756 '=>', # prefix for current line 7757 stream) 7758 7759 # 2 7760 # 3 int main(int argc, char const *argv[]) { 7761 # => 4 printf('Hello world.\n'); // Set break point at this line. 7762 # 5 return 0; 7763 # 6 } 7764 self.expect(stream.GetData(), 'Source code displayed correctly', 7765 exe=False, 7766 patterns = ['=> %d.*Hello world' % self.line]) 7767 7768 """ 7769 __swig_setmethods__ = {} 7770 __setattr__ = lambda self, name, value: _swig_setattr(self, SBSourceManager, name, value) 7771 __swig_getmethods__ = {} 7772 __getattr__ = lambda self, name: _swig_getattr(self, SBSourceManager, name) 7773 __repr__ = _swig_repr
7774 - def __init__(self, *args):
7775 """__init__(lldb::SBSourceManager self, SBSourceManager rhs) -> SBSourceManager""" 7776 this = _lldb.new_SBSourceManager(*args) 7777 try: self.this.append(this) 7778 except: self.this = this
7779 __swig_destroy__ = _lldb.delete_SBSourceManager 7780 __del__ = lambda self : None;
7781 - def DisplaySourceLinesWithLineNumbers(self, *args):
7782 """ 7783 DisplaySourceLinesWithLineNumbers(SBSourceManager self, SBFileSpec file, uint32_t line, uint32_t context_before, uint32_t context_after, 7784 str const * current_line_cstr, SBStream s) -> size_t 7785 """ 7786 return _lldb.SBSourceManager_DisplaySourceLinesWithLineNumbers(self, *args)
7787
7788 - def DisplaySourceLinesWithLineNumbersAndColumn(self, *args):
7789 """ 7790 DisplaySourceLinesWithLineNumbersAndColumn(SBSourceManager self, SBFileSpec file, uint32_t line, uint32_t column, uint32_t context_before, uint32_t context_after, 7791 str const * current_line_cstr, SBStream s) -> size_t 7792 """ 7793 return _lldb.SBSourceManager_DisplaySourceLinesWithLineNumbersAndColumn(self, *args)
7794 7795 SBSourceManager_swigregister = _lldb.SBSourceManager_swigregister 7796 SBSourceManager_swigregister(SBSourceManager)
7797 7798 -class SBStream(_object):
7799 """ 7800 Represents a destination for streaming data output to. By default, a string 7801 stream is created. 7802 7803 For example (from test/source-manager/TestSourceManager.py), 7804 7805 # Create the filespec for 'main.c'. 7806 filespec = lldb.SBFileSpec('main.c', False) 7807 source_mgr = self.dbg.GetSourceManager() 7808 # Use a string stream as the destination. 7809 stream = lldb.SBStream() 7810 source_mgr.DisplaySourceLinesWithLineNumbers(filespec, 7811 self.line, 7812 2, # context before 7813 2, # context after 7814 '=>', # prefix for current line 7815 stream) 7816 7817 # 2 7818 # 3 int main(int argc, char const *argv[]) { 7819 # => 4 printf('Hello world.\n'); // Set break point at this line. 7820 # 5 return 0; 7821 # 6 } 7822 self.expect(stream.GetData(), 'Source code displayed correctly', 7823 exe=False, 7824 patterns = ['=> %d.*Hello world' % self.line]) 7825 7826 """ 7827 __swig_setmethods__ = {} 7828 __setattr__ = lambda self, name, value: _swig_setattr(self, SBStream, name, value) 7829 __swig_getmethods__ = {} 7830 __getattr__ = lambda self, name: _swig_getattr(self, SBStream, name) 7831 __repr__ = _swig_repr
7832 - def __init__(self):
7833 """__init__(lldb::SBStream self) -> SBStream""" 7834 this = _lldb.new_SBStream() 7835 try: self.this.append(this) 7836 except: self.this = this
7837 __swig_destroy__ = _lldb.delete_SBStream 7838 __del__ = lambda self : None;
7839 - def __nonzero__(self): return self.IsValid()
7840 - def IsValid(self):
7841 """IsValid(SBStream self) -> bool""" 7842 return _lldb.SBStream_IsValid(self)
7843
7844 - def GetData(self):
7845 """ 7846 GetData(SBStream self) -> str const * 7847 7848 If this stream is not redirected to a file, it will maintain a local 7849 cache for the stream data which can be accessed using this accessor. 7850 """ 7851 return _lldb.SBStream_GetData(self)
7852
7853 - def GetSize(self):
7854 """ 7855 GetSize(SBStream self) -> size_t 7856 7857 If this stream is not redirected to a file, it will maintain a local 7858 cache for the stream output whose length can be accessed using this 7859 accessor. 7860 """ 7861 return _lldb.SBStream_GetSize(self)
7862
7863 - def Print(self, *args):
7864 """Print(SBStream self, str const * str)""" 7865 return _lldb.SBStream_Print(self, *args)
7866
7867 - def RedirectToFile(self, *args):
7868 """RedirectToFile(SBStream self, str const * path, bool append)""" 7869 return _lldb.SBStream_RedirectToFile(self, *args)
7870
7871 - def RedirectToFileHandle(self, *args):
7872 """RedirectToFileHandle(SBStream self, FILE * fh, bool transfer_fh_ownership)""" 7873 return _lldb.SBStream_RedirectToFileHandle(self, *args)
7874
7875 - def RedirectToFileDescriptor(self, *args):
7876 """RedirectToFileDescriptor(SBStream self, int fd, bool transfer_fh_ownership)""" 7877 return _lldb.SBStream_RedirectToFileDescriptor(self, *args)
7878
7879 - def Clear(self):
7880 """ 7881 Clear(SBStream self) 7882 7883 If the stream is redirected to a file, forget about the file and if 7884 ownership of the file was transferred to this object, close the file. 7885 If the stream is backed by a local cache, clear this cache. 7886 """ 7887 return _lldb.SBStream_Clear(self)
7888
7889 - def write(self, *args):
7890 """write(SBStream self, str const * str)""" 7891 return _lldb.SBStream_write(self, *args)
7892
7893 - def flush(self):
7894 """flush(SBStream self)""" 7895 return _lldb.SBStream_flush(self)
7896 7897 SBStream_swigregister = _lldb.SBStream_swigregister 7898 SBStream_swigregister(SBStream)
7899 7900 -class SBStringList(_object):
7901 """Proxy of C++ lldb::SBStringList class""" 7902 __swig_setmethods__ = {} 7903 __setattr__ = lambda self, name, value: _swig_setattr(self, SBStringList, name, value) 7904 __swig_getmethods__ = {} 7905 __getattr__ = lambda self, name: _swig_getattr(self, SBStringList, name) 7906 __repr__ = _swig_repr
7907 - def __iter__(self): return lldb_iter(self, 'GetSize', 'GetStringAtIndex')
7908 - def __len__(self): return self.GetSize()
7909 - def __init__(self, *args):
7910 """ 7911 __init__(lldb::SBStringList self) -> SBStringList 7912 __init__(lldb::SBStringList self, SBStringList rhs) -> SBStringList 7913 """ 7914 this = _lldb.new_SBStringList(*args) 7915 try: self.this.append(this) 7916 except: self.this = this
7917 __swig_destroy__ = _lldb.delete_SBStringList 7918 __del__ = lambda self : None;
7919 - def __nonzero__(self): return self.IsValid()
7920 - def IsValid(self):
7921 """IsValid(SBStringList self) -> bool""" 7922 return _lldb.SBStringList_IsValid(self)
7923
7924 - def AppendString(self, *args):
7925 """AppendString(SBStringList self, str const * str)""" 7926 return _lldb.SBStringList_AppendString(self, *args)
7927
7928 - def AppendList(self, *args):
7929 """ 7930 AppendList(SBStringList self, str const ** strv, int strc) 7931 AppendList(SBStringList self, SBStringList strings) 7932 """ 7933 return _lldb.SBStringList_AppendList(self, *args)
7934
7935 - def GetSize(self):
7936 """GetSize(SBStringList self) -> uint32_t""" 7937 return _lldb.SBStringList_GetSize(self)
7938
7939 - def GetStringAtIndex(self, *args):
7940 """GetStringAtIndex(SBStringList self, size_t idx) -> str const *""" 7941 return _lldb.SBStringList_GetStringAtIndex(self, *args)
7942
7943 - def Clear(self):
7944 """Clear(SBStringList self)""" 7945 return _lldb.SBStringList_Clear(self)
7946 7947 SBStringList_swigregister = _lldb.SBStringList_swigregister 7948 SBStringList_swigregister(SBStringList)
7949 7950 -class SBStructuredData(_object):
7951 """ 7952 A class representing a StructuredData event. 7953 7954 This class wraps the event type generated by StructuredData 7955 features. 7956 """ 7957 __swig_setmethods__ = {} 7958 __setattr__ = lambda self, name, value: _swig_setattr(self, SBStructuredData, name, value) 7959 __swig_getmethods__ = {} 7960 __getattr__ = lambda self, name: _swig_getattr(self, SBStructuredData, name) 7961 __repr__ = _swig_repr
7962 - def __init__(self, *args):
7963 """ 7964 __init__(lldb::SBStructuredData self) -> SBStructuredData 7965 __init__(lldb::SBStructuredData self, SBStructuredData rhs) -> SBStructuredData 7966 __init__(lldb::SBStructuredData self, lldb::EventSP const & event_sp) -> SBStructuredData 7967 """ 7968 this = _lldb.new_SBStructuredData(*args) 7969 try: self.this.append(this) 7970 except: self.this = this
7971 __swig_destroy__ = _lldb.delete_SBStructuredData 7972 __del__ = lambda self : None;
7973 - def __nonzero__(self): return self.IsValid()
7974 - def IsValid(self):
7975 """IsValid(SBStructuredData self) -> bool""" 7976 return _lldb.SBStructuredData_IsValid(self)
7977
7978 - def Clear(self):
7979 """Clear(SBStructuredData self)""" 7980 return _lldb.SBStructuredData_Clear(self)
7981
7982 - def GetAsJSON(self, *args):
7983 """GetAsJSON(SBStructuredData self, SBStream stream) -> SBError""" 7984 return _lldb.SBStructuredData_GetAsJSON(self, *args)
7985
7986 - def GetDescription(self, *args):
7987 """GetDescription(SBStructuredData self, SBStream stream) -> SBError""" 7988 return _lldb.SBStructuredData_GetDescription(self, *args)
7989 7990 SBStructuredData_swigregister = _lldb.SBStructuredData_swigregister 7991 SBStructuredData_swigregister(SBStructuredData)
7992 7993 -class SBSymbol(_object):
7994 """ 7995 Represents the symbol possibly associated with a stack frame. 7996 SBModule contains SBSymbol(s). SBSymbol can also be retrived from SBFrame. 7997 7998 See also SBModule and SBFrame. 7999 """ 8000 __swig_setmethods__ = {} 8001 __setattr__ = lambda self, name, value: _swig_setattr(self, SBSymbol, name, value) 8002 __swig_getmethods__ = {} 8003 __getattr__ = lambda self, name: _swig_getattr(self, SBSymbol, name) 8004 __repr__ = _swig_repr 8005 __swig_destroy__ = _lldb.delete_SBSymbol 8006 __del__ = lambda self : None;
8007 - def __init__(self, *args):
8008 """ 8009 __init__(lldb::SBSymbol self) -> SBSymbol 8010 __init__(lldb::SBSymbol self, SBSymbol rhs) -> SBSymbol 8011 """ 8012 this = _lldb.new_SBSymbol(*args) 8013 try: self.this.append(this) 8014 except: self.this = this
8015 - def __nonzero__(self): return self.IsValid()
8016 - def IsValid(self):
8017 """IsValid(SBSymbol self) -> bool""" 8018 return _lldb.SBSymbol_IsValid(self)
8019
8020 - def GetName(self):
8021 """GetName(SBSymbol self) -> str const *""" 8022 return _lldb.SBSymbol_GetName(self)
8023
8024 - def GetDisplayName(self):
8025 """GetDisplayName(SBSymbol self) -> str const *""" 8026 return _lldb.SBSymbol_GetDisplayName(self)
8027
8028 - def GetMangledName(self):
8029 """GetMangledName(SBSymbol self) -> str const *""" 8030 return _lldb.SBSymbol_GetMangledName(self)
8031
8032 - def GetInstructions(self, *args):
8033 """ 8034 GetInstructions(SBSymbol self, SBTarget target) -> SBInstructionList 8035 GetInstructions(SBSymbol self, SBTarget target, str const * flavor_string) -> SBInstructionList 8036 """ 8037 return _lldb.SBSymbol_GetInstructions(self, *args)
8038
8039 - def GetStartAddress(self):
8040 """GetStartAddress(SBSymbol self) -> SBAddress""" 8041 return _lldb.SBSymbol_GetStartAddress(self)
8042
8043 - def GetEndAddress(self):
8044 """GetEndAddress(SBSymbol self) -> SBAddress""" 8045 return _lldb.SBSymbol_GetEndAddress(self)
8046
8047 - def GetPrologueByteSize(self):
8048 """GetPrologueByteSize(SBSymbol self) -> uint32_t""" 8049 return _lldb.SBSymbol_GetPrologueByteSize(self)
8050
8051 - def GetType(self):
8052 """GetType(SBSymbol self) -> lldb::SymbolType""" 8053 return _lldb.SBSymbol_GetType(self)
8054
8055 - def GetDescription(self, *args):
8056 """GetDescription(SBSymbol self, SBStream description) -> bool""" 8057 return _lldb.SBSymbol_GetDescription(self, *args)
8058
8059 - def IsExternal(self):
8060 """IsExternal(SBSymbol self) -> bool""" 8061 return _lldb.SBSymbol_IsExternal(self)
8062
8063 - def IsSynthetic(self):
8064 """IsSynthetic(SBSymbol self) -> bool""" 8065 return _lldb.SBSymbol_IsSynthetic(self)
8066
8067 - def __eq__(self, *args):
8068 """__eq__(SBSymbol self, SBSymbol rhs) -> bool""" 8069 return _lldb.SBSymbol___eq__(self, *args)
8070
8071 - def __ne__(self, *args):
8072 """__ne__(SBSymbol self, SBSymbol rhs) -> bool""" 8073 return _lldb.SBSymbol___ne__(self, *args)
8074
8075 - def get_instructions_from_current_target (self):
8076 return self.GetInstructions (target)
8077 8078 __swig_getmethods__["name"] = GetName 8079 if _newclass: name = property(GetName, None, doc='''A read only property that returns the name for this symbol as a string.''') 8080 8081 __swig_getmethods__["mangled"] = GetMangledName 8082 if _newclass: mangled = property(GetMangledName, None, doc='''A read only property that returns the mangled (linkage) name for this symbol as a string.''') 8083 8084 __swig_getmethods__["type"] = GetType 8085 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.''') 8086 8087 __swig_getmethods__["addr"] = GetStartAddress 8088 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.''') 8089 8090 __swig_getmethods__["end_addr"] = GetEndAddress 8091 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.''') 8092 8093 __swig_getmethods__["prologue_size"] = GetPrologueByteSize 8094 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.''') 8095 8096 __swig_getmethods__["instructions"] = get_instructions_from_current_target 8097 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.''') 8098 8099 __swig_getmethods__["external"] = IsExternal 8100 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.''') 8101 8102 __swig_getmethods__["synthetic"] = IsSynthetic 8103 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.''') 8104 8105 8106
8107 - def __str__(self):
8108 """__str__(SBSymbol self) -> PyObject *""" 8109 return _lldb.SBSymbol___str__(self)
8110
8111 - def __eq__(self, rhs):
8112 if not isinstance(rhs, type(self)): 8113 return False 8114 8115 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
8116
8117 - def __ne__(self, rhs):
8118 if not isinstance(rhs, type(self)): 8119 return True 8120 8121 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
8122 8123 SBSymbol_swigregister = _lldb.SBSymbol_swigregister 8124 SBSymbol_swigregister(SBSymbol)
8125 8126 -class SBSymbolContext(_object):
8127 """ 8128 A context object that provides access to core debugger entities. 8129 8130 Manay debugger functions require a context when doing lookups. This class 8131 provides a common structure that can be used as the result of a query that 8132 can contain a single result. 8133 8134 For example, 8135 8136 exe = os.path.join(os.getcwd(), 'a.out') 8137 8138 # Create a target for the debugger. 8139 target = self.dbg.CreateTarget(exe) 8140 8141 # Now create a breakpoint on main.c by name 'c'. 8142 breakpoint = target.BreakpointCreateByName('c', 'a.out') 8143 8144 # Now launch the process, and do not stop at entry point. 8145 process = target.LaunchSimple(None, None, os.getcwd()) 8146 8147 # The inferior should stop on 'c'. 8148 from lldbutil import get_stopped_thread 8149 thread = get_stopped_thread(process, lldb.eStopReasonBreakpoint) 8150 frame0 = thread.GetFrameAtIndex(0) 8151 8152 # Now get the SBSymbolContext from this frame. We want everything. :-) 8153 context = frame0.GetSymbolContext(lldb.eSymbolContextEverything) 8154 8155 # Get the module. 8156 module = context.GetModule() 8157 ... 8158 8159 # And the compile unit associated with the frame. 8160 compileUnit = context.GetCompileUnit() 8161 ... 8162 8163 """ 8164 __swig_setmethods__ = {} 8165 __setattr__ = lambda self, name, value: _swig_setattr(self, SBSymbolContext, name, value) 8166 __swig_getmethods__ = {} 8167 __getattr__ = lambda self, name: _swig_getattr(self, SBSymbolContext, name) 8168 __repr__ = _swig_repr
8169 - def __init__(self, *args):
8170 """ 8171 __init__(lldb::SBSymbolContext self) -> SBSymbolContext 8172 __init__(lldb::SBSymbolContext self, SBSymbolContext rhs) -> SBSymbolContext 8173 """ 8174 this = _lldb.new_SBSymbolContext(*args) 8175 try: self.this.append(this) 8176 except: self.this = this
8177 __swig_destroy__ = _lldb.delete_SBSymbolContext 8178 __del__ = lambda self : None;
8179 - def __nonzero__(self): return self.IsValid()
8180 - def IsValid(self):
8181 """IsValid(SBSymbolContext self) -> bool""" 8182 return _lldb.SBSymbolContext_IsValid(self)
8183
8184 - def GetModule(self):
8185 """GetModule(SBSymbolContext self) -> SBModule""" 8186 return _lldb.SBSymbolContext_GetModule(self)
8187
8188 - def GetCompileUnit(self):
8189 """GetCompileUnit(SBSymbolContext self) -> SBCompileUnit""" 8190 return _lldb.SBSymbolContext_GetCompileUnit(self)
8191
8192 - def GetFunction(self):
8193 """GetFunction(SBSymbolContext self) -> SBFunction""" 8194 return _lldb.SBSymbolContext_GetFunction(self)
8195
8196 - def GetBlock(self):
8197 """GetBlock(SBSymbolContext self) -> SBBlock""" 8198 return _lldb.SBSymbolContext_GetBlock(self)
8199
8200 - def GetLineEntry(self):
8201 """GetLineEntry(SBSymbolContext self) -> SBLineEntry""" 8202 return _lldb.SBSymbolContext_GetLineEntry(self)
8203
8204 - def GetSymbol(self):
8205 """GetSymbol(SBSymbolContext self) -> SBSymbol""" 8206 return _lldb.SBSymbolContext_GetSymbol(self)
8207
8208 - def SetModule(self, *args):
8209 """SetModule(SBSymbolContext self, SBModule module)""" 8210 return _lldb.SBSymbolContext_SetModule(self, *args)
8211
8212 - def SetCompileUnit(self, *args):
8213 """SetCompileUnit(SBSymbolContext self, SBCompileUnit compile_unit)""" 8214 return _lldb.SBSymbolContext_SetCompileUnit(self, *args)
8215
8216 - def SetFunction(self, *args):
8217 """SetFunction(SBSymbolContext self, SBFunction function)""" 8218 return _lldb.SBSymbolContext_SetFunction(self, *args)
8219
8220 - def SetBlock(self, *args):
8221 """SetBlock(SBSymbolContext self, SBBlock block)""" 8222 return _lldb.SBSymbolContext_SetBlock(self, *args)
8223
8224 - def SetLineEntry(self, *args):
8225 """SetLineEntry(SBSymbolContext self, SBLineEntry line_entry)""" 8226 return _lldb.SBSymbolContext_SetLineEntry(self, *args)
8227
8228 - def SetSymbol(self, *args):
8229 """SetSymbol(SBSymbolContext self, SBSymbol symbol)""" 8230 return _lldb.SBSymbolContext_SetSymbol(self, *args)
8231
8232 - def GetParentOfInlinedScope(self, *args):
8233 """GetParentOfInlinedScope(SBSymbolContext self, SBAddress curr_frame_pc, SBAddress parent_frame_addr) -> SBSymbolContext""" 8234 return _lldb.SBSymbolContext_GetParentOfInlinedScope(self, *args)
8235
8236 - def GetDescription(self, *args):
8237 """GetDescription(SBSymbolContext self, SBStream description) -> bool""" 8238 return _lldb.SBSymbolContext_GetDescription(self, *args)
8239 8240 __swig_getmethods__["module"] = GetModule 8241 __swig_setmethods__["module"] = SetModule 8242 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.''') 8243 8244 __swig_getmethods__["compile_unit"] = GetCompileUnit 8245 __swig_setmethods__["compile_unit"] = SetCompileUnit 8246 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.''') 8247 8248 __swig_getmethods__["function"] = GetFunction 8249 __swig_setmethods__["function"] = SetFunction 8250 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.''') 8251 8252 __swig_getmethods__["block"] = GetBlock 8253 __swig_setmethods__["block"] = SetBlock 8254 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.''') 8255 8256 __swig_getmethods__["symbol"] = GetSymbol 8257 __swig_setmethods__["symbol"] = SetSymbol 8258 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.''') 8259 8260 __swig_getmethods__["line_entry"] = GetLineEntry 8261 __swig_setmethods__["line_entry"] = SetLineEntry 8262 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.''') 8263
8264 - def __str__(self):
8265 """__str__(SBSymbolContext self) -> PyObject *""" 8266 return _lldb.SBSymbolContext___str__(self)
8267 8268 SBSymbolContext_swigregister = _lldb.SBSymbolContext_swigregister 8269 SBSymbolContext_swigregister(SBSymbolContext)
8270 8271 -class SBSymbolContextList(_object):
8272 """ 8273 Represents a list of symbol context object. See also SBSymbolContext. 8274 8275 For example (from test/python_api/target/TestTargetAPI.py), 8276 8277 def find_functions(self, exe_name): 8278 '''Exercise SBTaget.FindFunctions() API.''' 8279 exe = os.path.join(os.getcwd(), exe_name) 8280 8281 # Create a target by the debugger. 8282 target = self.dbg.CreateTarget(exe) 8283 self.assertTrue(target, VALID_TARGET) 8284 8285 list = lldb.SBSymbolContextList() 8286 num = target.FindFunctions('c', lldb.eFunctionNameTypeAuto, False, list) 8287 self.assertTrue(num == 1 and list.GetSize() == 1) 8288 8289 for sc in list: 8290 self.assertTrue(sc.GetModule().GetFileSpec().GetFilename() == exe_name) 8291 self.assertTrue(sc.GetSymbol().GetName() == 'c') 8292 8293 """ 8294 __swig_setmethods__ = {} 8295 __setattr__ = lambda self, name, value: _swig_setattr(self, SBSymbolContextList, name, value) 8296 __swig_getmethods__ = {} 8297 __getattr__ = lambda self, name: _swig_getattr(self, SBSymbolContextList, name) 8298 __repr__ = _swig_repr
8299 - def __iter__(self): return lldb_iter(self, 'GetSize', 'GetContextAtIndex')
8300 - def __len__(self): return self.GetSize()
8301 - def __init__(self, *args):
8302 """ 8303 __init__(lldb::SBSymbolContextList self) -> SBSymbolContextList 8304 __init__(lldb::SBSymbolContextList self, SBSymbolContextList rhs) -> SBSymbolContextList 8305 """ 8306 this = _lldb.new_SBSymbolContextList(*args) 8307 try: self.this.append(this) 8308 except: self.this = this
8309 __swig_destroy__ = _lldb.delete_SBSymbolContextList 8310 __del__ = lambda self : None;
8311 - def __nonzero__(self): return self.IsValid()
8312 - def IsValid(self):
8313 """IsValid(SBSymbolContextList self) -> bool""" 8314 return _lldb.SBSymbolContextList_IsValid(self)
8315
8316 - def GetSize(self):
8317 """GetSize(SBSymbolContextList self) -> uint32_t""" 8318 return _lldb.SBSymbolContextList_GetSize(self)
8319
8320 - def GetContextAtIndex(self, *args):
8321 """GetContextAtIndex(SBSymbolContextList self, uint32_t idx) -> SBSymbolContext""" 8322 return _lldb.SBSymbolContextList_GetContextAtIndex(self, *args)
8323
8324 - def Append(self, *args):
8325 """ 8326 Append(SBSymbolContextList self, SBSymbolContext sc) 8327 Append(SBSymbolContextList self, SBSymbolContextList sc_list) 8328 """ 8329 return _lldb.SBSymbolContextList_Append(self, *args)
8330
8331 - def GetDescription(self, *args):
8332 """GetDescription(SBSymbolContextList self, SBStream description) -> bool""" 8333 return _lldb.SBSymbolContextList_GetDescription(self, *args)
8334
8335 - def Clear(self):
8336 """Clear(SBSymbolContextList self)""" 8337 return _lldb.SBSymbolContextList_Clear(self)
8338
8339 - def __len__(self):
8340 return int(self.GetSize())
8341
8342 - def __getitem__(self, key):
8343 count = len(self) 8344 if type(key) is int: 8345 if key < count: 8346 return self.GetContextAtIndex(key) 8347 else: 8348 raise IndexError 8349 raise TypeError
8350
8351 - def get_module_array(self):
8352 a = [] 8353 for i in range(len(self)): 8354 obj = self.GetContextAtIndex(i).module 8355 if obj: 8356 a.append(obj) 8357 return a
8358
8359 - def get_compile_unit_array(self):
8360 a = [] 8361 for i in range(len(self)): 8362 obj = self.GetContextAtIndex(i).compile_unit 8363 if obj: 8364 a.append(obj) 8365 return a
8366 - def get_function_array(self):
8367 a = [] 8368 for i in range(len(self)): 8369 obj = self.GetContextAtIndex(i).function 8370 if obj: 8371 a.append(obj) 8372 return a
8373 - def get_block_array(self):
8374 a = [] 8375 for i in range(len(self)): 8376 obj = self.GetContextAtIndex(i).block 8377 if obj: 8378 a.append(obj) 8379 return a
8380 - def get_symbol_array(self):
8381 a = [] 8382 for i in range(len(self)): 8383 obj = self.GetContextAtIndex(i).symbol 8384 if obj: 8385 a.append(obj) 8386 return a
8387 - def get_line_entry_array(self):
8388 a = [] 8389 for i in range(len(self)): 8390 obj = self.GetContextAtIndex(i).line_entry 8391 if obj: 8392 a.append(obj) 8393 return a
8394 __swig_getmethods__["modules"] = get_module_array 8395 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.''') 8396 8397 __swig_getmethods__["compile_units"] = get_compile_unit_array 8398 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.''') 8399 8400 __swig_getmethods__["functions"] = get_function_array 8401 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.''') 8402 8403 __swig_getmethods__["blocks"] = get_block_array 8404 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.''') 8405 8406 __swig_getmethods__["line_entries"] = get_line_entry_array 8407 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.''') 8408 8409 __swig_getmethods__["symbols"] = get_symbol_array 8410 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.''') 8411
8412 - def __str__(self):
8413 """__str__(SBSymbolContextList self) -> PyObject *""" 8414 return _lldb.SBSymbolContextList___str__(self)
8415 8416 SBSymbolContextList_swigregister = _lldb.SBSymbolContextList_swigregister 8417 SBSymbolContextList_swigregister(SBSymbolContextList)
8418 8419 -class SBTarget(_object):
8420 """ 8421 Represents the target program running under the debugger. 8422 8423 SBTarget supports module, breakpoint, and watchpoint iterations. For example, 8424 8425 for m in target.module_iter(): 8426 print m 8427 8428 produces: 8429 8430 (x86_64) /Volumes/data/lldb/svn/trunk/test/python_api/lldbutil/iter/a.out 8431 (x86_64) /usr/lib/dyld 8432 (x86_64) /usr/lib/libstdc++.6.dylib 8433 (x86_64) /usr/lib/libSystem.B.dylib 8434 (x86_64) /usr/lib/system/libmathCommon.A.dylib 8435 (x86_64) /usr/lib/libSystem.B.dylib(__commpage) 8436 8437 and, 8438 8439 for b in target.breakpoint_iter(): 8440 print b 8441 8442 produces: 8443 8444 SBBreakpoint: id = 1, file ='main.cpp', line = 66, locations = 1 8445 SBBreakpoint: id = 2, file ='main.cpp', line = 85, locations = 1 8446 8447 and, 8448 8449 for wp_loc in target.watchpoint_iter(): 8450 print wp_loc 8451 8452 produces: 8453 8454 Watchpoint 1: addr = 0x1034ca048 size = 4 state = enabled type = rw 8455 declare @ '/Volumes/data/lldb/svn/trunk/test/python_api/watchpoint/main.c:12' 8456 hw_index = 0 hit_count = 2 ignore_count = 0 8457 """ 8458 __swig_setmethods__ = {} 8459 __setattr__ = lambda self, name, value: _swig_setattr(self, SBTarget, name, value) 8460 __swig_getmethods__ = {} 8461 __getattr__ = lambda self, name: _swig_getattr(self, SBTarget, name) 8462 __repr__ = _swig_repr 8463 eBroadcastBitBreakpointChanged = _lldb.SBTarget_eBroadcastBitBreakpointChanged 8464 eBroadcastBitModulesLoaded = _lldb.SBTarget_eBroadcastBitModulesLoaded 8465 eBroadcastBitModulesUnloaded = _lldb.SBTarget_eBroadcastBitModulesUnloaded 8466 eBroadcastBitWatchpointChanged = _lldb.SBTarget_eBroadcastBitWatchpointChanged 8467 eBroadcastBitSymbolsLoaded = _lldb.SBTarget_eBroadcastBitSymbolsLoaded
8468 - def module_iter(self): return lldb_iter(self, 'GetNumModules', 'GetModuleAtIndex')
8469 - def breakpoint_iter(self): return lldb_iter(self, 'GetNumBreakpoints', 'GetBreakpointAtIndex')
8470 - def watchpoint_iter(self): return lldb_iter(self, 'GetNumWatchpoints', 'GetWatchpointAtIndex')
8471 - def __init__(self, *args):
8472 """ 8473 __init__(lldb::SBTarget self) -> SBTarget 8474 __init__(lldb::SBTarget self, SBTarget rhs) -> SBTarget 8475 """ 8476 this = _lldb.new_SBTarget(*args) 8477 try: self.this.append(this) 8478 except: self.this = this
8479 __swig_destroy__ = _lldb.delete_SBTarget 8480 __del__ = lambda self : None;
8481 - def GetBroadcasterClassName():
8482 """GetBroadcasterClassName() -> str const *""" 8483 return _lldb.SBTarget_GetBroadcasterClassName()
8484 8485 if _newclass:GetBroadcasterClassName = staticmethod(GetBroadcasterClassName) 8486 __swig_getmethods__["GetBroadcasterClassName"] = lambda x: GetBroadcasterClassName
8487 - def __nonzero__(self): return self.IsValid()
8488 - def IsValid(self):
8489 """IsValid(SBTarget self) -> bool""" 8490 return _lldb.SBTarget_IsValid(self)
8491
8492 - def EventIsTargetEvent(*args):
8493 """EventIsTargetEvent(SBEvent event) -> bool""" 8494 return _lldb.SBTarget_EventIsTargetEvent(*args)
8495 8496 if _newclass:EventIsTargetEvent = staticmethod(EventIsTargetEvent) 8497 __swig_getmethods__["EventIsTargetEvent"] = lambda x: EventIsTargetEvent
8498 - def GetTargetFromEvent(*args):
8499 """GetTargetFromEvent(SBEvent event) -> SBTarget""" 8500 return _lldb.SBTarget_GetTargetFromEvent(*args)
8501 8502 if _newclass:GetTargetFromEvent = staticmethod(GetTargetFromEvent) 8503 __swig_getmethods__["GetTargetFromEvent"] = lambda x: GetTargetFromEvent
8504 - def GetNumModulesFromEvent(*args):
8505 """GetNumModulesFromEvent(SBEvent event) -> uint32_t""" 8506 return _lldb.SBTarget_GetNumModulesFromEvent(*args)
8507 8508 if _newclass:GetNumModulesFromEvent = staticmethod(GetNumModulesFromEvent) 8509 __swig_getmethods__["GetNumModulesFromEvent"] = lambda x: GetNumModulesFromEvent
8510 - def GetModuleAtIndexFromEvent(*args):
8511 """GetModuleAtIndexFromEvent(uint32_t const idx, SBEvent event) -> SBModule""" 8512 return _lldb.SBTarget_GetModuleAtIndexFromEvent(*args)
8513 8514 if _newclass:GetModuleAtIndexFromEvent = staticmethod(GetModuleAtIndexFromEvent) 8515 __swig_getmethods__["GetModuleAtIndexFromEvent"] = lambda x: GetModuleAtIndexFromEvent
8516 - def GetProcess(self):
8517 """GetProcess(SBTarget self) -> SBProcess""" 8518 return _lldb.SBTarget_GetProcess(self)
8519
8520 - def GetPlatform(self):
8521 """ 8522 GetPlatform(SBTarget self) -> SBPlatform 8523 8524 Return the platform object associated with the target. 8525 8526 After return, the platform object should be checked for 8527 validity. 8528 8529 @return 8530 A platform object. 8531 """ 8532 return _lldb.SBTarget_GetPlatform(self)
8533
8534 - def Install(self):
8535 """ 8536 Install(SBTarget self) -> SBError 8537 8538 Install any binaries that need to be installed. 8539 8540 This function does nothing when debugging on the host system. 8541 When connected to remote platforms, the target's main executable 8542 and any modules that have their install path set will be 8543 installed on the remote platform. If the main executable doesn't 8544 have an install location set, it will be installed in the remote 8545 platform's working directory. 8546 8547 @return 8548 An error describing anything that went wrong during 8549 installation. 8550 """ 8551 return _lldb.SBTarget_Install(self)
8552
8553 - def LaunchSimple(self, *args):
8554 """ 8555 LaunchSimple(SBTarget self, str const ** argv, str const ** envp, str const * working_directory) -> SBProcess 8556 8557 Launch a new process with sensible defaults. 8558 8559 @param[in] argv 8560 The argument array. 8561 8562 @param[in] envp 8563 The environment array. 8564 8565 @param[in] working_directory 8566 The working directory to have the child process run in 8567 8568 Default: listener 8569 Set to the target's debugger (SBTarget::GetDebugger()) 8570 8571 Default: launch_flags 8572 Empty launch flags 8573 8574 Default: stdin_path 8575 Default: stdout_path 8576 Default: stderr_path 8577 A pseudo terminal will be used. 8578 8579 @return 8580 A process object for the newly created process. 8581 8582 For example, 8583 8584 process = target.LaunchSimple(['X', 'Y', 'Z'], None, os.getcwd()) 8585 8586 launches a new process by passing 'X', 'Y', 'Z' as the args to the 8587 executable. 8588 """ 8589 return _lldb.SBTarget_LaunchSimple(self, *args)
8590
8591 - def Launch(self, *args):
8592 """ 8593 Launch(SBTarget self, SBListener listener, str const ** argv, str const ** envp, str const * stdin_path, 8594 str const * stdout_path, str const * stderr_path, str const * working_directory, 8595 uint32_t launch_flags, bool stop_at_entry, SBError error) -> SBProcess 8596 Launch(SBTarget self, SBLaunchInfo launch_info, SBError error) -> SBProcess 8597 8598 Launch a new process. 8599 8600 Launch a new process by spawning a new process using the 8601 target object's executable module's file as the file to launch. 8602 Arguments are given in argv, and the environment variables 8603 are in envp. Standard input and output files can be 8604 optionally re-directed to stdin_path, stdout_path, and 8605 stderr_path. 8606 8607 @param[in] listener 8608 An optional listener that will receive all process events. 8609 If listener is valid then listener will listen to all 8610 process events. If not valid, then this target's debugger 8611 (SBTarget::GetDebugger()) will listen to all process events. 8612 8613 @param[in] argv 8614 The argument array. 8615 8616 @param[in] envp 8617 The environment array. 8618 8619 @param[in] launch_flags 8620 Flags to modify the launch (@see lldb::LaunchFlags) 8621 8622 @param[in] stdin_path 8623 The path to use when re-directing the STDIN of the new 8624 process. If all stdXX_path arguments are NULL, a pseudo 8625 terminal will be used. 8626 8627 @param[in] stdout_path 8628 The path to use when re-directing the STDOUT of the new 8629 process. If all stdXX_path arguments are NULL, a pseudo 8630 terminal will be used. 8631 8632 @param[in] stderr_path 8633 The path to use when re-directing the STDERR of the new 8634 process. If all stdXX_path arguments are NULL, a pseudo 8635 terminal will be used. 8636 8637 @param[in] working_directory 8638 The working directory to have the child process run in 8639 8640 @param[in] launch_flags 8641 Some launch options specified by logical OR'ing 8642 lldb::LaunchFlags enumeration values together. 8643 8644 @param[in] stop_at_entry 8645 If false do not stop the inferior at the entry point. 8646 8647 @param[out] 8648 An error object. Contains the reason if there is some failure. 8649 8650 @return 8651 A process object for the newly created process. 8652 8653 For example, 8654 8655 process = target.Launch(self.dbg.GetListener(), None, None, 8656 None, '/tmp/stdout.txt', None, 8657 None, 0, False, error) 8658 8659 launches a new process by passing nothing for both the args and the envs 8660 and redirect the standard output of the inferior to the /tmp/stdout.txt 8661 file. It does not specify a working directory so that the debug server 8662 will use its idea of what the current working directory is for the 8663 inferior. Also, we ask the debugger not to stop the inferior at the 8664 entry point. If no breakpoint is specified for the inferior, it should 8665 run to completion if no user interaction is required. 8666 """ 8667 return _lldb.SBTarget_Launch(self, *args)
8668
8669 - def LoadCore(self, *args):
8670 """ 8671 LoadCore(SBTarget self, str const * core_file) -> SBProcess 8672 8673 Load a core file 8674 8675 @param[in] core_file 8676 File path of the core dump. 8677 8678 @return 8679 A process object for the newly created core file. 8680 8681 For example, 8682 8683 process = target.LoadCore('./a.out.core') 8684 8685 loads a new core file and returns the process object. 8686 """ 8687 return _lldb.SBTarget_LoadCore(self, *args)
8688
8689 - def Attach(self, *args):
8690 """Attach(SBTarget self, SBAttachInfo attach_info, SBError error) -> SBProcess""" 8691 return _lldb.SBTarget_Attach(self, *args)
8692
8693 - def AttachToProcessWithID(self, *args):
8694 """ 8695 AttachToProcessWithID(SBTarget self, SBListener listener, lldb::pid_t pid, SBError error) -> SBProcess 8696 8697 Attach to process with pid. 8698 8699 @param[in] listener 8700 An optional listener that will receive all process events. 8701 If listener is valid then listener will listen to all 8702 process events. If not valid, then this target's debugger 8703 (SBTarget::GetDebugger()) will listen to all process events. 8704 8705 @param[in] pid 8706 The process ID to attach to. 8707 8708 @param[out] 8709 An error explaining what went wrong if attach fails. 8710 8711 @return 8712 A process object for the attached process. 8713 """ 8714 return _lldb.SBTarget_AttachToProcessWithID(self, *args)
8715
8716 - def AttachToProcessWithName(self, *args):
8717 """ 8718 AttachToProcessWithName(SBTarget self, SBListener listener, str const * name, bool wait_for, SBError error) -> SBProcess 8719 8720 Attach to process with name. 8721 8722 @param[in] listener 8723 An optional listener that will receive all process events. 8724 If listener is valid then listener will listen to all 8725 process events. If not valid, then this target's debugger 8726 (SBTarget::GetDebugger()) will listen to all process events. 8727 8728 @param[in] name 8729 Basename of process to attach to. 8730 8731 @param[in] wait_for 8732 If true wait for a new instance of 'name' to be launched. 8733 8734 @param[out] 8735 An error explaining what went wrong if attach fails. 8736 8737 @return 8738 A process object for the attached process. 8739 """ 8740 return _lldb.SBTarget_AttachToProcessWithName(self, *args)
8741
8742 - def ConnectRemote(self, *args):
8743 """ 8744 ConnectRemote(SBTarget self, SBListener listener, str const * url, str const * plugin_name, SBError error) -> SBProcess 8745 8746 Connect to a remote debug server with url. 8747 8748 @param[in] listener 8749 An optional listener that will receive all process events. 8750 If listener is valid then listener will listen to all 8751 process events. If not valid, then this target's debugger 8752 (SBTarget::GetDebugger()) will listen to all process events. 8753 8754 @param[in] url 8755 The url to connect to, e.g., 'connect://localhost:12345'. 8756 8757 @param[in] plugin_name 8758 The plugin name to be used; can be NULL. 8759 8760 @param[out] 8761 An error explaining what went wrong if the connect fails. 8762 8763 @return 8764 A process object for the connected process. 8765 """ 8766 return _lldb.SBTarget_ConnectRemote(self, *args)
8767
8768 - def GetExecutable(self):
8769 """GetExecutable(SBTarget self) -> SBFileSpec""" 8770 return _lldb.SBTarget_GetExecutable(self)
8771
8772 - def AddModule(self, *args):
8773 """ 8774 AddModule(SBTarget self, SBModule module) -> bool 8775 AddModule(SBTarget self, str const * path, str const * triple, str const * uuid) -> SBModule 8776 AddModule(SBTarget self, str const * path, str const * triple, str const * uuid_cstr, str const * symfile) -> SBModule 8777 AddModule(SBTarget self, SBModuleSpec module_spec) -> SBModule 8778 """ 8779 return _lldb.SBTarget_AddModule(self, *args)
8780
8781 - def GetNumModules(self):
8782 """GetNumModules(SBTarget self) -> uint32_t""" 8783 return _lldb.SBTarget_GetNumModules(self)
8784
8785 - def GetModuleAtIndex(self, *args):
8786 """GetModuleAtIndex(SBTarget self, uint32_t idx) -> SBModule""" 8787 return _lldb.SBTarget_GetModuleAtIndex(self, *args)
8788
8789 - def RemoveModule(self, *args):
8790 """RemoveModule(SBTarget self, SBModule module) -> bool""" 8791 return _lldb.SBTarget_RemoveModule(self, *args)
8792
8793 - def GetDebugger(self):
8794 """GetDebugger(SBTarget self) -> SBDebugger""" 8795 return _lldb.SBTarget_GetDebugger(self)
8796
8797 - def FindModule(self, *args):
8798 """FindModule(SBTarget self, SBFileSpec file_spec) -> SBModule""" 8799 return _lldb.SBTarget_FindModule(self, *args)
8800
8801 - def GetByteOrder(self):
8802 """GetByteOrder(SBTarget self) -> lldb::ByteOrder""" 8803 return _lldb.SBTarget_GetByteOrder(self)
8804
8805 - def GetAddressByteSize(self):
8806 """GetAddressByteSize(SBTarget self) -> uint32_t""" 8807 return _lldb.SBTarget_GetAddressByteSize(self)
8808
8809 - def GetTriple(self):
8810 """GetTriple(SBTarget self) -> str const *""" 8811 return _lldb.SBTarget_GetTriple(self)
8812
8813 - def GetDataByteSize(self):
8814 """ 8815 GetDataByteSize(SBTarget self) -> uint32_t 8816 8817 Architecture data byte width accessor 8818 8819 @return 8820 The size in 8-bit (host) bytes of a minimum addressable 8821 unit from the Architecture's data bus 8822 """ 8823 return _lldb.SBTarget_GetDataByteSize(self)
8824
8825 - def GetCodeByteSize(self):
8826 """ 8827 GetCodeByteSize(SBTarget self) -> uint32_t 8828 8829 Architecture code byte width accessor 8830 8831 @return 8832 The size in 8-bit (host) bytes of a minimum addressable 8833 unit from the Architecture's code bus 8834 """ 8835 return _lldb.SBTarget_GetCodeByteSize(self)
8836
8837 - def SetSectionLoadAddress(self, *args):
8838 """SetSectionLoadAddress(SBTarget self, SBSection section, lldb::addr_t section_base_addr) -> SBError""" 8839 return _lldb.SBTarget_SetSectionLoadAddress(self, *args)
8840
8841 - def ClearSectionLoadAddress(self, *args):
8842 """ClearSectionLoadAddress(SBTarget self, SBSection section) -> SBError""" 8843 return _lldb.SBTarget_ClearSectionLoadAddress(self, *args)
8844
8845 - def SetModuleLoadAddress(self, *args):
8846 """SetModuleLoadAddress(SBTarget self, SBModule module, int64_t sections_offset) -> SBError""" 8847 return _lldb.SBTarget_SetModuleLoadAddress(self, *args)
8848
8849 - def ClearModuleLoadAddress(self, *args):
8850 """ClearModuleLoadAddress(SBTarget self, SBModule module) -> SBError""" 8851 return _lldb.SBTarget_ClearModuleLoadAddress(self, *args)
8852
8853 - def FindFunctions(self, *args):
8854 """ 8855 FindFunctions(SBTarget self, str const * name, uint32_t name_type_mask=eFunctionNameTypeAny) -> SBSymbolContextList 8856 FindFunctions(SBTarget self, str const * name) -> SBSymbolContextList 8857 8858 Find functions by name. 8859 8860 @param[in] name 8861 The name of the function we are looking for. 8862 8863 @param[in] name_type_mask 8864 A logical OR of one or more FunctionNameType enum bits that 8865 indicate what kind of names should be used when doing the 8866 lookup. Bits include fully qualified names, base names, 8867 C++ methods, or ObjC selectors. 8868 See FunctionNameType for more details. 8869 8870 @return 8871 A lldb::SBSymbolContextList that gets filled in with all of 8872 the symbol contexts for all the matches. 8873 """ 8874 return _lldb.SBTarget_FindFunctions(self, *args)
8875
8876 - def FindFirstType(self, *args):
8877 """FindFirstType(SBTarget self, str const * type) -> SBType""" 8878 return _lldb.SBTarget_FindFirstType(self, *args)
8879
8880 - def FindTypes(self, *args):
8881 """FindTypes(SBTarget self, str const * type) -> SBTypeList""" 8882 return _lldb.SBTarget_FindTypes(self, *args)
8883
8884 - def GetBasicType(self, *args):
8885 """GetBasicType(SBTarget self, lldb::BasicType type) -> SBType""" 8886 return _lldb.SBTarget_GetBasicType(self, *args)
8887
8888 - def GetSourceManager(self):
8889 """GetSourceManager(SBTarget self) -> SBSourceManager""" 8890 return _lldb.SBTarget_GetSourceManager(self)
8891
8892 - def FindFirstGlobalVariable(self, *args):
8893 """ 8894 FindFirstGlobalVariable(SBTarget self, str const * name) -> SBValue 8895 8896 Find the first global (or static) variable by name. 8897 8898 @param[in] name 8899 The name of the global or static variable we are looking 8900 for. 8901 8902 @return 8903 An SBValue that gets filled in with the found variable (if any). 8904 """ 8905 return _lldb.SBTarget_FindFirstGlobalVariable(self, *args)
8906
8907 - def FindGlobalVariables(self, *args):
8908 """ 8909 FindGlobalVariables(SBTarget self, str const * name, uint32_t max_matches) -> SBValueList 8910 FindGlobalVariables(SBTarget self, str const * name, uint32_t max_matches, lldb::MatchType matchtype) -> SBValueList 8911 8912 Find global and static variables by name. 8913 8914 @param[in] name 8915 The name of the global or static variable we are looking 8916 for. 8917 8918 @param[in] max_matches 8919 Allow the number of matches to be limited to max_matches. 8920 8921 @return 8922 A list of matched variables in an SBValueList. 8923 """ 8924 return _lldb.SBTarget_FindGlobalVariables(self, *args)
8925
8926 - def FindGlobalFunctions(self, *args):
8927 """FindGlobalFunctions(SBTarget self, str const * name, uint32_t max_matches, lldb::MatchType matchtype) -> SBSymbolContextList""" 8928 return _lldb.SBTarget_FindGlobalFunctions(self, *args)
8929
8930 - def Clear(self):
8931 """Clear(SBTarget self)""" 8932 return _lldb.SBTarget_Clear(self)
8933
8934 - def ResolveFileAddress(self, *args):
8935 """ 8936 ResolveFileAddress(SBTarget self, lldb::addr_t file_addr) -> SBAddress 8937 8938 Resolve a current file address into a section offset address. 8939 8940 @param[in] file_addr 8941 8942 @return 8943 An SBAddress which will be valid if... 8944 """ 8945 return _lldb.SBTarget_ResolveFileAddress(self, *args)
8946
8947 - def ResolveLoadAddress(self, *args):
8948 """ResolveLoadAddress(SBTarget self, lldb::addr_t vm_addr) -> SBAddress""" 8949 return _lldb.SBTarget_ResolveLoadAddress(self, *args)
8950
8951 - def ResolvePastLoadAddress(self, *args):
8952 """ResolvePastLoadAddress(SBTarget self, uint32_t stop_id, lldb::addr_t vm_addr) -> SBAddress""" 8953 return _lldb.SBTarget_ResolvePastLoadAddress(self, *args)
8954
8955 - def ResolveSymbolContextForAddress(self, *args):
8956 """ResolveSymbolContextForAddress(SBTarget self, SBAddress addr, uint32_t resolve_scope) -> SBSymbolContext""" 8957 return _lldb.SBTarget_ResolveSymbolContextForAddress(self, *args)
8958
8959 - def ReadMemory(self, *args):
8960 """ 8961 ReadMemory(SBTarget self, SBAddress addr, void * buf, SBError error) -> size_t 8962 8963 Read target memory. If a target process is running then memory 8964 is read from here. Otherwise the memory is read from the object 8965 files. For a target whose bytes are sized as a multiple of host 8966 bytes, the data read back will preserve the target's byte order. 8967 8968 @param[in] addr 8969 A target address to read from. 8970 8971 @param[out] buf 8972 The buffer to read memory into. 8973 8974 @param[in] size 8975 The maximum number of host bytes to read in the buffer passed 8976 into this call 8977 8978 @param[out] error 8979 Error information is written here if the memory read fails. 8980 8981 @return 8982 The amount of data read in host bytes. 8983 """ 8984 return _lldb.SBTarget_ReadMemory(self, *args)
8985
8986 - def BreakpointCreateByLocation(self, *args):
8987 """ 8988 BreakpointCreateByLocation(SBTarget self, str const * file, uint32_t line) -> SBBreakpoint 8989 BreakpointCreateByLocation(SBTarget self, SBFileSpec file_spec, uint32_t line) -> SBBreakpoint 8990 BreakpointCreateByLocation(SBTarget self, SBFileSpec file_spec, uint32_t line, lldb::addr_t offset) -> SBBreakpoint 8991 BreakpointCreateByLocation(SBTarget self, SBFileSpec file_spec, uint32_t line, lldb::addr_t offset, SBFileSpecList module_list) -> SBBreakpoint 8992 """ 8993 return _lldb.SBTarget_BreakpointCreateByLocation(self, *args)
8994
8995 - def BreakpointCreateByName(self, *args):
8996 """ 8997 BreakpointCreateByName(SBTarget self, str const * symbol_name, str const * module_name=None) -> SBBreakpoint 8998 BreakpointCreateByName(SBTarget self, str const * symbol_name) -> SBBreakpoint 8999 BreakpointCreateByName(SBTarget self, str const * symbol_name, uint32_t func_name_type, SBFileSpecList module_list, SBFileSpecList comp_unit_list) -> SBBreakpoint 9000 BreakpointCreateByName(SBTarget self, str const * symbol_name, uint32_t func_name_type, lldb::LanguageType symbol_language, 9001 SBFileSpecList module_list, SBFileSpecList comp_unit_list) -> SBBreakpoint 9002 """ 9003 return _lldb.SBTarget_BreakpointCreateByName(self, *args)
9004
9005 - def BreakpointCreateByNames(self, *args):
9006 """ 9007 BreakpointCreateByNames(SBTarget self, str const ** symbol_name, uint32_t name_type_mask, SBFileSpecList module_list, SBFileSpecList comp_unit_list) -> SBBreakpoint 9008 BreakpointCreateByNames(SBTarget self, str const ** symbol_name, uint32_t name_type_mask, lldb::LanguageType symbol_language, 9009 SBFileSpecList module_list, SBFileSpecList comp_unit_list) -> SBBreakpoint 9010 BreakpointCreateByNames(SBTarget self, str const ** symbol_name, uint32_t name_type_mask, lldb::LanguageType symbol_language, 9011 lldb::addr_t offset, SBFileSpecList module_list, SBFileSpecList comp_unit_list) -> SBBreakpoint 9012 """ 9013 return _lldb.SBTarget_BreakpointCreateByNames(self, *args)
9014
9015 - def BreakpointCreateByRegex(self, *args):
9016 """ 9017 BreakpointCreateByRegex(SBTarget self, str const * symbol_name_regex, str const * module_name=None) -> SBBreakpoint 9018 BreakpointCreateByRegex(SBTarget self, str const * symbol_name_regex) -> SBBreakpoint 9019 BreakpointCreateByRegex(SBTarget self, str const * symbol_name_regex, lldb::LanguageType symbol_language, SBFileSpecList module_list, 9020 SBFileSpecList comp_unit_list) -> SBBreakpoint 9021 """ 9022 return _lldb.SBTarget_BreakpointCreateByRegex(self, *args)
9023
9024 - def BreakpointCreateBySourceRegex(self, *args):
9025 """ 9026 BreakpointCreateBySourceRegex(SBTarget self, str const * source_regex, SBFileSpec source_file, str const * module_name=None) -> SBBreakpoint 9027 BreakpointCreateBySourceRegex(SBTarget self, str const * source_regex, SBFileSpec source_file) -> SBBreakpoint 9028 BreakpointCreateBySourceRegex(SBTarget self, str const * source_regex, SBFileSpecList module_list, SBFileSpecList file_list) -> SBBreakpoint 9029 BreakpointCreateBySourceRegex(SBTarget self, str const * source_regex, SBFileSpecList module_list, SBFileSpecList source_file, 9030 SBStringList func_names) -> SBBreakpoint 9031 """ 9032 return _lldb.SBTarget_BreakpointCreateBySourceRegex(self, *args)
9033
9034 - def BreakpointCreateForException(self, *args):
9035 """BreakpointCreateForException(SBTarget self, lldb::LanguageType language, bool catch_bp, bool throw_bp) -> SBBreakpoint""" 9036 return _lldb.SBTarget_BreakpointCreateForException(self, *args)
9037
9038 - def BreakpointCreateByAddress(self, *args):
9039 """BreakpointCreateByAddress(SBTarget self, lldb::addr_t address) -> SBBreakpoint""" 9040 return _lldb.SBTarget_BreakpointCreateByAddress(self, *args)
9041
9042 - def BreakpointCreateBySBAddress(self, *args):
9043 """BreakpointCreateBySBAddress(SBTarget self, SBAddress sb_address) -> SBBreakpoint""" 9044 return _lldb.SBTarget_BreakpointCreateBySBAddress(self, *args)
9045
9046 - def GetNumBreakpoints(self):
9047 """GetNumBreakpoints(SBTarget self) -> uint32_t""" 9048 return _lldb.SBTarget_GetNumBreakpoints(self)
9049
9050 - def GetBreakpointAtIndex(self, *args):
9051 """GetBreakpointAtIndex(SBTarget self, uint32_t idx) -> SBBreakpoint""" 9052 return _lldb.SBTarget_GetBreakpointAtIndex(self, *args)
9053
9054 - def BreakpointDelete(self, *args):
9055 """BreakpointDelete(SBTarget self, lldb::break_id_t break_id) -> bool""" 9056 return _lldb.SBTarget_BreakpointDelete(self, *args)
9057
9058 - def FindBreakpointByID(self, *args):
9059 """FindBreakpointByID(SBTarget self, lldb::break_id_t break_id) -> SBBreakpoint""" 9060 return _lldb.SBTarget_FindBreakpointByID(self, *args)
9061
9062 - def FindBreakpointsByName(self, *args):
9063 """FindBreakpointsByName(SBTarget self, str const * name, SBBreakpointList bkpt_list) -> bool""" 9064 return _lldb.SBTarget_FindBreakpointsByName(self, *args)
9065
9066 - def EnableAllBreakpoints(self):
9067 """EnableAllBreakpoints(SBTarget self) -> bool""" 9068 return _lldb.SBTarget_EnableAllBreakpoints(self)
9069
9070 - def DisableAllBreakpoints(self):
9071 """DisableAllBreakpoints(SBTarget self) -> bool""" 9072 return _lldb.SBTarget_DisableAllBreakpoints(self)
9073
9074 - def DeleteAllBreakpoints(self):
9075 """DeleteAllBreakpoints(SBTarget self) -> bool""" 9076 return _lldb.SBTarget_DeleteAllBreakpoints(self)
9077
9078 - def BreakpointsCreateFromFile(self, *args):
9079 """ 9080 BreakpointsCreateFromFile(SBTarget self, SBFileSpec source_file, SBBreakpointList bkpt_list) -> SBError 9081 BreakpointsCreateFromFile(SBTarget self, SBFileSpec source_file, SBStringList matching_names, SBBreakpointList new_bps) -> SBError 9082 9083 Read breakpoints from source_file and return the newly created 9084 breakpoints in bkpt_list. 9085 9086 @param[in] source_file 9087 The file from which to read the breakpoints 9088 9089 @param[in] matching_names 9090 Only read in breakpoints whose names match one of the names in this 9091 list. 9092 9093 @param[out] bkpt_list 9094 A list of the newly created breakpoints. 9095 9096 @return 9097 An SBError detailing any errors in reading in the breakpoints. 9098 """ 9099 return _lldb.SBTarget_BreakpointsCreateFromFile(self, *args)
9100
9101 - def BreakpointsWriteToFile(self, *args):
9102 """ 9103 BreakpointsWriteToFile(SBTarget self, SBFileSpec dest_file) -> SBError 9104 BreakpointsWriteToFile(SBTarget self, SBFileSpec dest_file, SBBreakpointList bkpt_list, bool append=False) -> SBError 9105 BreakpointsWriteToFile(SBTarget self, SBFileSpec dest_file, SBBreakpointList bkpt_list) -> SBError 9106 """ 9107 return _lldb.SBTarget_BreakpointsWriteToFile(self, *args)
9108
9109 - def GetNumWatchpoints(self):
9110 """GetNumWatchpoints(SBTarget self) -> uint32_t""" 9111 return _lldb.SBTarget_GetNumWatchpoints(self)
9112
9113 - def GetWatchpointAtIndex(self, *args):
9114 """GetWatchpointAtIndex(SBTarget self, uint32_t idx) -> SBWatchpoint""" 9115 return _lldb.SBTarget_GetWatchpointAtIndex(self, *args)
9116
9117 - def DeleteWatchpoint(self, *args):
9118 """DeleteWatchpoint(SBTarget self, lldb::watch_id_t watch_id) -> bool""" 9119 return _lldb.SBTarget_DeleteWatchpoint(self, *args)
9120
9121 - def FindWatchpointByID(self, *args):
9122 """FindWatchpointByID(SBTarget self, lldb::watch_id_t watch_id) -> SBWatchpoint""" 9123 return _lldb.SBTarget_FindWatchpointByID(self, *args)
9124
9125 - def EnableAllWatchpoints(self):
9126 """EnableAllWatchpoints(SBTarget self) -> bool""" 9127 return _lldb.SBTarget_EnableAllWatchpoints(self)
9128
9129 - def DisableAllWatchpoints(self):
9130 """DisableAllWatchpoints(SBTarget self) -> bool""" 9131 return _lldb.SBTarget_DisableAllWatchpoints(self)
9132
9133 - def DeleteAllWatchpoints(self):
9134 """DeleteAllWatchpoints(SBTarget self) -> bool""" 9135 return _lldb.SBTarget_DeleteAllWatchpoints(self)
9136
9137 - def WatchAddress(self, *args):
9138 """WatchAddress(SBTarget self, lldb::addr_t addr, size_t size, bool read, bool write, SBError error) -> SBWatchpoint""" 9139 return _lldb.SBTarget_WatchAddress(self, *args)
9140
9141 - def GetBroadcaster(self):
9142 """GetBroadcaster(SBTarget self) -> SBBroadcaster""" 9143 return _lldb.SBTarget_GetBroadcaster(self)
9144
9145 - def CreateValueFromAddress(self, *args):
9146 """ 9147 CreateValueFromAddress(SBTarget self, str const * name, SBAddress addr, SBType type) -> SBValue 9148 9149 Create an SBValue with the given name by treating the memory starting at addr as an entity of type. 9150 9151 @param[in] name 9152 The name of the resultant SBValue 9153 9154 @param[in] addr 9155 The address of the start of the memory region to be used. 9156 9157 @param[in] type 9158 The type to use to interpret the memory starting at addr. 9159 9160 @return 9161 An SBValue of the given type, may be invalid if there was an error reading 9162 the underlying memory. 9163 """ 9164 return _lldb.SBTarget_CreateValueFromAddress(self, *args)
9165
9166 - def CreateValueFromData(self, *args):
9167 """CreateValueFromData(SBTarget self, str const * name, SBData data, SBType type) -> SBValue""" 9168 return _lldb.SBTarget_CreateValueFromData(self, *args)
9169
9170 - def CreateValueFromExpression(self, *args):
9171 """CreateValueFromExpression(SBTarget self, str const * name, str const * expr) -> SBValue""" 9172 return _lldb.SBTarget_CreateValueFromExpression(self, *args)
9173
9174 - def ReadInstructions(self, *args):
9175 """ 9176 ReadInstructions(SBTarget self, SBAddress base_addr, uint32_t count) -> SBInstructionList 9177 ReadInstructions(SBTarget self, SBAddress base_addr, uint32_t count, str const * flavor_string) -> SBInstructionList 9178 9179 Disassemble a specified number of instructions starting at an address. 9180 Parameters: 9181 base_addr -- the address to start disassembly from 9182 count -- the number of instructions to disassemble 9183 flavor_string -- may be 'intel' or 'att' on x86 targets to specify that style of disassembly 9184 Returns an SBInstructionList. 9185 """ 9186 return _lldb.SBTarget_ReadInstructions(self, *args)
9187
9188 - def GetInstructions(self, *args):
9189 """ 9190 GetInstructions(SBTarget self, SBAddress base_addr, void const * buf) -> SBInstructionList 9191 9192 Disassemble the bytes in a buffer and return them in an SBInstructionList. 9193 Parameters: 9194 base_addr -- used for symbolicating the offsets in the byte stream when disassembling 9195 buf -- bytes to be disassembled 9196 size -- (C++) size of the buffer 9197 Returns an SBInstructionList. 9198 """ 9199 return _lldb.SBTarget_GetInstructions(self, *args)
9200
9201 - def GetInstructionsWithFlavor(self, *args):
9202 """ 9203 GetInstructionsWithFlavor(SBTarget self, SBAddress base_addr, str const * flavor_string, void const * buf) -> SBInstructionList 9204 9205 Disassemble the bytes in a buffer and return them in an SBInstructionList, with a supplied flavor. 9206 Parameters: 9207 base_addr -- used for symbolicating the offsets in the byte stream when disassembling 9208 flavor -- may be 'intel' or 'att' on x86 targets to specify that style of disassembly 9209 buf -- bytes to be disassembled 9210 size -- (C++) size of the buffer 9211 Returns an SBInstructionList. 9212 """ 9213 return _lldb.SBTarget_GetInstructionsWithFlavor(self, *args)
9214
9215 - def FindSymbols(self, *args):
9216 """ 9217 FindSymbols(SBTarget self, str const * name, lldb::SymbolType type=eSymbolTypeAny) -> SBSymbolContextList 9218 FindSymbols(SBTarget self, str const * name) -> SBSymbolContextList 9219 """ 9220 return _lldb.SBTarget_FindSymbols(self, *args)
9221
9222 - def GetDescription(self, *args):
9223 """GetDescription(SBTarget self, SBStream description, lldb::DescriptionLevel description_level) -> bool""" 9224 return _lldb.SBTarget_GetDescription(self, *args)
9225
9226 - def GetStackRedZoneSize(self):
9227 """GetStackRedZoneSize(SBTarget self) -> lldb::addr_t""" 9228 return _lldb.SBTarget_GetStackRedZoneSize(self)
9229
9230 - def GetLaunchInfo(self):
9231 """GetLaunchInfo(SBTarget self) -> SBLaunchInfo""" 9232 return _lldb.SBTarget_GetLaunchInfo(self)
9233
9234 - def SetLaunchInfo(self, *args):
9235 """SetLaunchInfo(SBTarget self, SBLaunchInfo launch_info)""" 9236 return _lldb.SBTarget_SetLaunchInfo(self, *args)
9237
9238 - def __eq__(self, *args):
9239 """__eq__(SBTarget self, SBTarget rhs) -> bool""" 9240 return _lldb.SBTarget___eq__(self, *args)
9241
9242 - def __ne__(self, *args):
9243 """__ne__(SBTarget self, SBTarget rhs) -> bool""" 9244 return _lldb.SBTarget___ne__(self, *args)
9245
9246 - def EvaluateExpression(self, *args):
9247 """ 9248 EvaluateExpression(SBTarget self, str const * expr) -> SBValue 9249 EvaluateExpression(SBTarget self, str const * expr, SBExpressionOptions options) -> SBValue 9250 """ 9251 return _lldb.SBTarget_EvaluateExpression(self, *args)
9252
9253 - class modules_access(object):
9254 '''A helper object that will lazily hand out lldb.SBModule objects for a target when supplied an index, or by full or partial path.'''
9255 - def __init__(self, sbtarget):
9256 self.sbtarget = sbtarget
9257
9258 - def __len__(self):
9259 if self.sbtarget: 9260 return int(self.sbtarget.GetNumModules()) 9261 return 0
9262
9263 - def __getitem__(self, key):
9264 num_modules = self.sbtarget.GetNumModules() 9265 if type(key) is int: 9266 if key < num_modules: 9267 return self.sbtarget.GetModuleAtIndex(key) 9268 elif type(key) is str: 9269 if key.find('/') == -1: 9270 for idx in range(num_modules): 9271 module = self.sbtarget.GetModuleAtIndex(idx) 9272 if module.file.basename == key: 9273 return module 9274 else: 9275 for idx in range(num_modules): 9276 module = self.sbtarget.GetModuleAtIndex(idx) 9277 if module.file.fullpath == key: 9278 return module 9279 # See if the string is a UUID 9280 try: 9281 the_uuid = uuid.UUID(key) 9282 if the_uuid: 9283 for idx in range(num_modules): 9284 module = self.sbtarget.GetModuleAtIndex(idx) 9285 if module.uuid == the_uuid: 9286 return module 9287 except: 9288 return None 9289 elif type(key) is uuid.UUID: 9290 for idx in range(num_modules): 9291 module = self.sbtarget.GetModuleAtIndex(idx) 9292 if module.uuid == key: 9293 return module 9294 elif type(key) is re.SRE_Pattern: 9295 matching_modules = [] 9296 for idx in range(num_modules): 9297 module = self.sbtarget.GetModuleAtIndex(idx) 9298 re_match = key.search(module.path.fullpath) 9299 if re_match: 9300 matching_modules.append(module) 9301 return matching_modules 9302 else: 9303 print("error: unsupported item type: %s" % type(key)) 9304 return None
9305
9306 - def get_modules_access_object(self):
9307 '''An accessor function that returns a modules_access() object which allows lazy module access from a lldb.SBTarget object.''' 9308 return self.modules_access (self)
9309
9310 - def get_modules_array(self):
9311 '''An accessor function that returns a list() that contains all modules in a lldb.SBTarget object.''' 9312 modules = [] 9313 for idx in range(self.GetNumModules()): 9314 modules.append(self.GetModuleAtIndex(idx)) 9315 return modules
9316 9317 __swig_getmethods__["modules"] = get_modules_array 9318 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).''') 9319 9320 __swig_getmethods__["module"] = get_modules_access_object 9321 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.''') 9322 9323 __swig_getmethods__["process"] = GetProcess 9324 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.''') 9325 9326 __swig_getmethods__["executable"] = GetExecutable 9327 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.''') 9328 9329 __swig_getmethods__["debugger"] = GetDebugger 9330 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.''') 9331 9332 __swig_getmethods__["num_breakpoints"] = GetNumBreakpoints 9333 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.''') 9334 9335 __swig_getmethods__["num_watchpoints"] = GetNumWatchpoints 9336 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.''') 9337 9338 __swig_getmethods__["broadcaster"] = GetBroadcaster 9339 if _newclass: broadcaster = property(GetBroadcaster, None, doc='''A read only property that an lldb object that represents the broadcaster (lldb.SBBroadcaster) for this target.''') 9340 9341 __swig_getmethods__["byte_order"] = GetByteOrder 9342 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.''') 9343 9344 __swig_getmethods__["addr_size"] = GetAddressByteSize 9345 if _newclass: addr_size = property(GetAddressByteSize, None, doc='''A read only property that returns the size in bytes of an address for this target.''') 9346 9347 __swig_getmethods__["triple"] = GetTriple 9348 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.''') 9349 9350 __swig_getmethods__["data_byte_size"] = GetDataByteSize 9351 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.''') 9352 9353 __swig_getmethods__["code_byte_size"] = GetCodeByteSize 9354 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.''') 9355 9356 __swig_getmethods__["platform"] = GetPlatform 9357 if _newclass: platform = property(GetPlatform, None, doc='''A read only property that returns the platform associated with with this target.''') 9358
9359 - def __str__(self):
9360 """__str__(SBTarget self) -> PyObject *""" 9361 return _lldb.SBTarget___str__(self)
9362
9363 - def __eq__(self, rhs):
9364 if not isinstance(rhs, type(self)): 9365 return False 9366 9367 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
9368
9369 - def __ne__(self, rhs):
9370 if not isinstance(rhs, type(self)): 9371 return True 9372 9373 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
9374 9375 SBTarget_swigregister = _lldb.SBTarget_swigregister 9376 SBTarget_swigregister(SBTarget)
9377 9378 -def SBTarget_GetBroadcasterClassName():
9379 """SBTarget_GetBroadcasterClassName() -> str const *""" 9380 return _lldb.SBTarget_GetBroadcasterClassName()
9381
9382 -def SBTarget_EventIsTargetEvent(*args):
9383 """SBTarget_EventIsTargetEvent(SBEvent event) -> bool""" 9384 return _lldb.SBTarget_EventIsTargetEvent(*args)
9385
9386 -def SBTarget_GetTargetFromEvent(*args):
9387 """SBTarget_GetTargetFromEvent(SBEvent event) -> SBTarget""" 9388 return _lldb.SBTarget_GetTargetFromEvent(*args)
9389
9390 -def SBTarget_GetNumModulesFromEvent(*args):
9391 """SBTarget_GetNumModulesFromEvent(SBEvent event) -> uint32_t""" 9392 return _lldb.SBTarget_GetNumModulesFromEvent(*args)
9393
9394 -def SBTarget_GetModuleAtIndexFromEvent(*args):
9395 """SBTarget_GetModuleAtIndexFromEvent(uint32_t const idx, SBEvent event) -> SBModule""" 9396 return _lldb.SBTarget_GetModuleAtIndexFromEvent(*args)
9397
9398 -class SBThread(_object):
9399 """ 9400 Represents a thread of execution. SBProcess contains SBThread(s). 9401 9402 SBThreads can be referred to by their ID, which maps to the system specific thread 9403 identifier, or by IndexID. The ID may or may not be unique depending on whether the 9404 system reuses its thread identifiers. The IndexID is a monotonically increasing identifier 9405 that will always uniquely reference a particular thread, and when that thread goes 9406 away it will not be reused. 9407 9408 SBThread supports frame iteration. For example (from test/python_api/ 9409 lldbutil/iter/TestLLDBIterator.py), 9410 9411 from lldbutil import print_stacktrace 9412 stopped_due_to_breakpoint = False 9413 for thread in process: 9414 if self.TraceOn(): 9415 print_stacktrace(thread) 9416 ID = thread.GetThreadID() 9417 if thread.GetStopReason() == lldb.eStopReasonBreakpoint: 9418 stopped_due_to_breakpoint = True 9419 for frame in thread: 9420 self.assertTrue(frame.GetThread().GetThreadID() == ID) 9421 if self.TraceOn(): 9422 print frame 9423 9424 self.assertTrue(stopped_due_to_breakpoint) 9425 9426 See also SBProcess and SBFrame. 9427 """ 9428 __swig_setmethods__ = {} 9429 __setattr__ = lambda self, name, value: _swig_setattr(self, SBThread, name, value) 9430 __swig_getmethods__ = {} 9431 __getattr__ = lambda self, name: _swig_getattr(self, SBThread, name) 9432 __repr__ = _swig_repr 9433 eBroadcastBitStackChanged = _lldb.SBThread_eBroadcastBitStackChanged 9434 eBroadcastBitThreadSuspended = _lldb.SBThread_eBroadcastBitThreadSuspended 9435 eBroadcastBitThreadResumed = _lldb.SBThread_eBroadcastBitThreadResumed 9436 eBroadcastBitSelectedFrameChanged = _lldb.SBThread_eBroadcastBitSelectedFrameChanged 9437 eBroadcastBitThreadSelected = _lldb.SBThread_eBroadcastBitThreadSelected
9438 - def __iter__(self): return lldb_iter(self, 'GetNumFrames', 'GetFrameAtIndex')
9439 - def __len__(self): return self.GetNumFrames()
9440 - def __init__(self, *args):
9441 """ 9442 __init__(lldb::SBThread self) -> SBThread 9443 __init__(lldb::SBThread self, SBThread thread) -> SBThread 9444 """ 9445 this = _lldb.new_SBThread(*args) 9446 try: self.this.append(this) 9447 except: self.this = this
9448 __swig_destroy__ = _lldb.delete_SBThread 9449 __del__ = lambda self : None;
9450 - def GetBroadcasterClassName():
9451 """GetBroadcasterClassName() -> str const *""" 9452 return _lldb.SBThread_GetBroadcasterClassName()
9453 9454 if _newclass:GetBroadcasterClassName = staticmethod(GetBroadcasterClassName) 9455 __swig_getmethods__["GetBroadcasterClassName"] = lambda x: GetBroadcasterClassName
9456 - def EventIsThreadEvent(*args):
9457 """EventIsThreadEvent(SBEvent event) -> bool""" 9458 return _lldb.SBThread_EventIsThreadEvent(*args)
9459 9460 if _newclass:EventIsThreadEvent = staticmethod(EventIsThreadEvent) 9461 __swig_getmethods__["EventIsThreadEvent"] = lambda x: EventIsThreadEvent
9462 - def GetStackFrameFromEvent(*args):
9463 """GetStackFrameFromEvent(SBEvent event) -> SBFrame""" 9464 return _lldb.SBThread_GetStackFrameFromEvent(*args)
9465 9466 if _newclass:GetStackFrameFromEvent = staticmethod(GetStackFrameFromEvent) 9467 __swig_getmethods__["GetStackFrameFromEvent"] = lambda x: GetStackFrameFromEvent
9468 - def GetThreadFromEvent(*args):
9469 """GetThreadFromEvent(SBEvent event) -> SBThread""" 9470 return _lldb.SBThread_GetThreadFromEvent(*args)
9471 9472 if _newclass:GetThreadFromEvent = staticmethod(GetThreadFromEvent) 9473 __swig_getmethods__["GetThreadFromEvent"] = lambda x: GetThreadFromEvent
9474 - def __nonzero__(self): return self.IsValid()
9475 - def IsValid(self):
9476 """IsValid(SBThread self) -> bool""" 9477 return _lldb.SBThread_IsValid(self)
9478
9479 - def Clear(self):
9480 """Clear(SBThread self)""" 9481 return _lldb.SBThread_Clear(self)
9482
9483 - def GetStopReason(self):
9484 """GetStopReason(SBThread self) -> lldb::StopReason""" 9485 return _lldb.SBThread_GetStopReason(self)
9486
9487 - def GetStopReasonDataCount(self):
9488 """ 9489 GetStopReasonDataCount(SBThread self) -> size_t 9490 9491 Get the number of words associated with the stop reason. 9492 See also GetStopReasonDataAtIndex(). 9493 """ 9494 return _lldb.SBThread_GetStopReasonDataCount(self)
9495
9496 - def GetStopReasonDataAtIndex(self, *args):
9497 """ 9498 GetStopReasonDataAtIndex(SBThread self, uint32_t idx) -> uint64_t 9499 9500 Get information associated with a stop reason. 9501 9502 Breakpoint stop reasons will have data that consists of pairs of 9503 breakpoint IDs followed by the breakpoint location IDs (they always come 9504 in pairs). 9505 9506 Stop Reason Count Data Type 9507 ======================== ===== ========================================= 9508 eStopReasonNone 0 9509 eStopReasonTrace 0 9510 eStopReasonBreakpoint N duple: {breakpoint id, location id} 9511 eStopReasonWatchpoint 1 watchpoint id 9512 eStopReasonSignal 1 unix signal number 9513 eStopReasonException N exception data 9514 eStopReasonExec 0 9515 eStopReasonPlanComplete 0 9516 """ 9517 return _lldb.SBThread_GetStopReasonDataAtIndex(self, *args)
9518
9519 - def GetStopReasonExtendedInfoAsJSON(self, *args):
9520 """ 9521 Collects a thread's stop reason extended information dictionary and prints it 9522 into the SBStream in a JSON format. The format of this JSON dictionary depends 9523 on the stop reason and is currently used only for instrumentation plugins. 9524 """ 9525 return _lldb.SBThread_GetStopReasonExtendedInfoAsJSON(self, *args)
9526
9527 - def GetStopReasonExtendedBacktraces(self, *args):
9528 """ 9529 Returns a collection of historical stack traces that are significant to the 9530 current stop reason. Used by ThreadSanitizer, where we provide various stack 9531 traces that were involved in a data race or other type of detected issue. 9532 """ 9533 return _lldb.SBThread_GetStopReasonExtendedBacktraces(self, *args)
9534
9535 - def GetStopDescription(self, *args):
9536 """ 9537 Pass only an (int)length and expect to get a Python string describing the 9538 stop reason. 9539 """ 9540 return _lldb.SBThread_GetStopDescription(self, *args)
9541
9542 - def GetStopReturnValue(self):
9543 """GetStopReturnValue(SBThread self) -> SBValue""" 9544 return _lldb.SBThread_GetStopReturnValue(self)
9545
9546 - def GetThreadID(self):
9547 """ 9548 Returns a unique thread identifier (type lldb::tid_t, typically a 64-bit type) 9549 for the current SBThread that will remain constant throughout the thread's 9550 lifetime in this process and will not be reused by another thread during this 9551 process lifetime. On Mac OS X systems, this is a system-wide unique thread 9552 identifier; this identifier is also used by other tools like sample which helps 9553 to associate data from those tools with lldb. See related GetIndexID. 9554 """ 9555 return _lldb.SBThread_GetThreadID(self)
9556
9557 - def GetIndexID(self):
9558 """ 9559 Return the index number for this SBThread. The index number is the same thing 9560 that a user gives as an argument to 'thread select' in the command line lldb. 9561 These numbers start at 1 (for the first thread lldb sees in a debug session) 9562 and increments up throughout the process lifetime. An index number will not be 9563 reused for a different thread later in a process - thread 1 will always be 9564 associated with the same thread. See related GetThreadID. 9565 This method returns a uint32_t index number, takes no arguments. 9566 """ 9567 return _lldb.SBThread_GetIndexID(self)
9568
9569 - def GetName(self):
9570 """GetName(SBThread self) -> str const *""" 9571 return _lldb.SBThread_GetName(self)
9572
9573 - def GetQueueName(self):
9574 """ 9575 Return the queue name associated with this thread, if any, as a str. 9576 For example, with a libdispatch (aka Grand Central Dispatch) queue. 9577 """ 9578 return _lldb.SBThread_GetQueueName(self)
9579
9580 - def GetQueueID(self):
9581 """ 9582 Return the dispatch_queue_id for this thread, if any, as a lldb::queue_id_t. 9583 For example, with a libdispatch (aka Grand Central Dispatch) queue. 9584 """ 9585 return _lldb.SBThread_GetQueueID(self)
9586
9587 - def GetInfoItemByPathAsString(self, *args):
9588 """ 9589 Takes a path string and a SBStream reference as parameters, returns a bool. 9590 Collects the thread's 'info' dictionary from the remote system, uses the path 9591 argument to descend into the dictionary to an item of interest, and prints 9592 it into the SBStream in a natural format. Return bool is to indicate if 9593 anything was printed into the stream (true) or not (false). 9594 """ 9595 return _lldb.SBThread_GetInfoItemByPathAsString(self, *args)
9596
9597 - def GetQueue(self):
9598 """ 9599 Return the SBQueue for this thread. If this thread is not currently associated 9600 with a libdispatch queue, the SBQueue object's IsValid() method will return false. 9601 If this SBThread is actually a HistoryThread, we may be able to provide QueueID 9602 and QueueName, but not provide an SBQueue. Those individual attributes may have 9603 been saved for the HistoryThread without enough information to reconstitute the 9604 entire SBQueue at that time. 9605 This method takes no arguments, returns an SBQueue. 9606 """ 9607 return _lldb.SBThread_GetQueue(self)
9608
9609 - def StepOver(self, *args):
9610 """ 9611 StepOver(SBThread self, lldb::RunMode stop_other_threads=eOnlyDuringStepping) 9612 StepOver(SBThread self) 9613 """ 9614 return _lldb.SBThread_StepOver(self, *args)
9615
9616 - def StepInto(self, *args):
9617 """ 9618 StepInto(SBThread self, lldb::RunMode stop_other_threads=eOnlyDuringStepping) 9619 StepInto(SBThread self) 9620 StepInto(SBThread self, str const * target_name, lldb::RunMode stop_other_threads=eOnlyDuringStepping) 9621 StepInto(SBThread self, str const * target_name) 9622 9623 Step the current thread from the current source line to the line given by end_line, stopping if 9624 the thread steps into the function given by target_name. If target_name is None, then stepping will stop 9625 in any of the places we would normally stop. 9626 9627 9628 Step the current thread from the current source line to the line given by end_line, stopping if 9629 the thread steps into the function given by target_name. If target_name is None, then stepping will stop 9630 in any of the places we would normally stop. 9631 """ 9632 return _lldb.SBThread_StepInto(self, *args)
9633
9634 - def StepOut(self):
9635 """StepOut(SBThread self)""" 9636 return _lldb.SBThread_StepOut(self)
9637
9638 - def StepOutOfFrame(self, *args):
9639 """StepOutOfFrame(SBThread self, SBFrame frame)""" 9640 return _lldb.SBThread_StepOutOfFrame(self, *args)
9641
9642 - def StepInstruction(self, *args):
9643 """StepInstruction(SBThread self, bool step_over)""" 9644 return _lldb.SBThread_StepInstruction(self, *args)
9645
9646 - def StepOverUntil(self, *args):
9647 """StepOverUntil(SBThread self, SBFrame frame, SBFileSpec file_spec, uint32_t line) -> SBError""" 9648 return _lldb.SBThread_StepOverUntil(self, *args)
9649
9650 - def StepUsingScriptedThreadPlan(self, *args):
9651 """ 9652 StepUsingScriptedThreadPlan(SBThread self, str const * script_class_name) -> SBError 9653 StepUsingScriptedThreadPlan(SBThread self, str const * script_class_name, bool resume_immediately) -> SBError 9654 """ 9655 return _lldb.SBThread_StepUsingScriptedThreadPlan(self, *args)
9656
9657 - def JumpToLine(self, *args):
9658 """JumpToLine(SBThread self, SBFileSpec file_spec, uint32_t line) -> SBError""" 9659 return _lldb.SBThread_JumpToLine(self, *args)
9660
9661 - def RunToAddress(self, *args):
9662 """RunToAddress(SBThread self, lldb::addr_t addr)""" 9663 return _lldb.SBThread_RunToAddress(self, *args)
9664
9665 - def ReturnFromFrame(self, *args):
9666 """ 9667 Force a return from the frame passed in (and any frames younger than it) 9668 without executing any more code in those frames. If return_value contains 9669 a valid SBValue, that will be set as the return value from frame. Note, at 9670 present only scalar return values are supported. 9671 """ 9672 return _lldb.SBThread_ReturnFromFrame(self, *args)
9673
9674 - def UnwindInnermostExpression(self):
9675 """ 9676 Unwind the stack frames from the innermost expression evaluation. 9677 This API is equivalent to 'thread return -x'. 9678 """ 9679 return _lldb.SBThread_UnwindInnermostExpression(self)
9680
9681 - def Suspend(self):
9682 """ 9683 Suspend(SBThread self) -> bool 9684 9685 LLDB currently supports process centric debugging which means when any 9686 thread in a process stops, all other threads are stopped. The Suspend() 9687 call here tells our process to suspend a thread and not let it run when 9688 the other threads in a process are allowed to run. So when 9689 SBProcess::Continue() is called, any threads that aren't suspended will 9690 be allowed to run. If any of the SBThread functions for stepping are 9691 called (StepOver, StepInto, StepOut, StepInstruction, RunToAddres), the 9692 thread will now be allowed to run and these functions will simply return. 9693 9694 Eventually we plan to add support for thread centric debugging where 9695 each thread is controlled individually and each thread would broadcast 9696 its state, but we haven't implemented this yet. 9697 9698 Likewise the SBThread::Resume() call will again allow the thread to run 9699 when the process is continued. 9700 9701 Suspend() and Resume() functions are not currently reference counted, if 9702 anyone has the need for them to be reference counted, please let us 9703 know. 9704 """ 9705 return _lldb.SBThread_Suspend(self)
9706
9707 - def Resume(self):
9708 """Resume(SBThread self) -> bool""" 9709 return _lldb.SBThread_Resume(self)
9710
9711 - def IsSuspended(self):
9712 """IsSuspended(SBThread self) -> bool""" 9713 return _lldb.SBThread_IsSuspended(self)
9714
9715 - def IsStopped(self):
9716 """IsStopped(SBThread self) -> bool""" 9717 return _lldb.SBThread_IsStopped(self)
9718
9719 - def GetNumFrames(self):
9720 """GetNumFrames(SBThread self) -> uint32_t""" 9721 return _lldb.SBThread_GetNumFrames(self)
9722
9723 - def GetFrameAtIndex(self, *args):
9724 """GetFrameAtIndex(SBThread self, uint32_t idx) -> SBFrame""" 9725 return _lldb.SBThread_GetFrameAtIndex(self, *args)
9726
9727 - def GetSelectedFrame(self):
9728 """GetSelectedFrame(SBThread self) -> SBFrame""" 9729 return _lldb.SBThread_GetSelectedFrame(self)
9730
9731 - def SetSelectedFrame(self, *args):
9732 """SetSelectedFrame(SBThread self, uint32_t frame_idx) -> SBFrame""" 9733 return _lldb.SBThread_SetSelectedFrame(self, *args)
9734
9735 - def GetProcess(self):
9736 """GetProcess(SBThread self) -> SBProcess""" 9737 return _lldb.SBThread_GetProcess(self)
9738
9739 - def GetDescription(self, *args):
9740 """GetDescription(SBThread self, SBStream description) -> bool""" 9741 return _lldb.SBThread_GetDescription(self, *args)
9742
9743 - def GetStatus(self, *args):
9744 """GetStatus(SBThread self, SBStream status) -> bool""" 9745 return _lldb.SBThread_GetStatus(self, *args)
9746
9747 - def __eq__(self, *args):
9748 """__eq__(SBThread self, SBThread rhs) -> bool""" 9749 return _lldb.SBThread___eq__(self, *args)
9750
9751 - def __ne__(self, *args):
9752 """__ne__(SBThread self, SBThread rhs) -> bool""" 9753 return _lldb.SBThread___ne__(self, *args)
9754
9755 - def GetExtendedBacktraceThread(self, *args):
9756 """ 9757 Given an argument of str to specify the type of thread-origin extended 9758 backtrace to retrieve, query whether the origin of this thread is 9759 available. An SBThread is retured; SBThread.IsValid will return true 9760 if an extended backtrace was available. The returned SBThread is not 9761 a part of the SBProcess' thread list and it cannot be manipulated like 9762 normal threads -- you cannot step or resume it, for instance -- it is 9763 intended to used primarily for generating a backtrace. You may request 9764 the returned thread's own thread origin in turn. 9765 """ 9766 return _lldb.SBThread_GetExtendedBacktraceThread(self, *args)
9767
9768 - def GetExtendedBacktraceOriginatingIndexID(self):
9769 """ 9770 Takes no arguments, returns a uint32_t. 9771 If this SBThread is an ExtendedBacktrace thread, get the IndexID of the 9772 original thread that this ExtendedBacktrace thread represents, if 9773 available. The thread that was running this backtrace in the past may 9774 not have been registered with lldb's thread index (if it was created, 9775 did its work, and was destroyed without lldb ever stopping execution). 9776 In that case, this ExtendedBacktrace thread's IndexID will be returned. 9777 """ 9778 return _lldb.SBThread_GetExtendedBacktraceOriginatingIndexID(self)
9779
9780 - def SafeToCallFunctions(self):
9781 """ 9782 Takes no arguments, returns a bool. 9783 lldb may be able to detect that function calls should not be executed 9784 on a given thread at a particular point in time. It is recommended that 9785 this is checked before performing an inferior function call on a given 9786 thread. 9787 """ 9788 return _lldb.SBThread_SafeToCallFunctions(self)
9789
9790 - class frames_access(object):
9791 '''A helper object that will lazily hand out frames for a thread when supplied an index.'''
9792 - def __init__(self, sbthread):
9793 self.sbthread = sbthread
9794
9795 - def __len__(self):
9796 if self.sbthread: 9797 return int(self.sbthread.GetNumFrames()) 9798 return 0
9799
9800 - def __getitem__(self, key):
9801 if type(key) is int and key < self.sbthread.GetNumFrames(): 9802 return self.sbthread.GetFrameAtIndex(key) 9803 return None
9804
9805 - def get_frames_access_object(self):
9806 '''An accessor function that returns a frames_access() object which allows lazy frame access from a lldb.SBThread object.''' 9807 return self.frames_access (self)
9808
9809 - def get_thread_frames(self):
9810 '''An accessor function that returns a list() that contains all frames in a lldb.SBThread object.''' 9811 frames = [] 9812 for frame in self: 9813 frames.append(frame) 9814 return frames
9815 9816 __swig_getmethods__["id"] = GetThreadID 9817 if _newclass: id = property(GetThreadID, None, doc='''A read only property that returns the thread ID as an integer.''') 9818 9819 __swig_getmethods__["idx"] = GetIndexID 9820 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.''') 9821 9822 __swig_getmethods__["return_value"] = GetStopReturnValue 9823 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.''') 9824 9825 __swig_getmethods__["process"] = GetProcess 9826 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.''') 9827 9828 __swig_getmethods__["num_frames"] = GetNumFrames 9829 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.''') 9830 9831 __swig_getmethods__["frames"] = get_thread_frames 9832 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.''') 9833 9834 __swig_getmethods__["frame"] = get_frames_access_object 9835 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]").''') 9836 9837 __swig_getmethods__["name"] = GetName 9838 if _newclass: name = property(GetName, None, doc='''A read only property that returns the name of this thread as a string.''') 9839 9840 __swig_getmethods__["queue"] = GetQueueName 9841 if _newclass: queue = property(GetQueueName, None, doc='''A read only property that returns the dispatch queue name of this thread as a string.''') 9842 9843 __swig_getmethods__["queue_id"] = GetQueueID 9844 if _newclass: queue_id = property(GetQueueID, None, doc='''A read only property that returns the dispatch queue id of this thread as an integer.''') 9845 9846 __swig_getmethods__["stop_reason"] = GetStopReason 9847 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.''') 9848 9849 __swig_getmethods__["is_suspended"] = IsSuspended 9850 if _newclass: is_suspended = property(IsSuspended, None, doc='''A read only property that returns a boolean value that indicates if this thread is suspended.''') 9851 9852 __swig_getmethods__["is_stopped"] = IsStopped 9853 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.''') 9854
9855 - def __str__(self):
9856 """__str__(SBThread self) -> PyObject *""" 9857 return _lldb.SBThread___str__(self)
9858
9859 - def __eq__(self, rhs):
9860 if not isinstance(rhs, type(self)): 9861 return False 9862 9863 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
9864
9865 - def __ne__(self, rhs):
9866 if not isinstance(rhs, type(self)): 9867 return True 9868 9869 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
9870 9871 SBThread_swigregister = _lldb.SBThread_swigregister 9872 SBThread_swigregister(SBThread)
9873 9874 -def SBThread_GetBroadcasterClassName():
9875 """SBThread_GetBroadcasterClassName() -> str const *""" 9876 return _lldb.SBThread_GetBroadcasterClassName()
9877
9878 -def SBThread_EventIsThreadEvent(*args):
9879 """SBThread_EventIsThreadEvent(SBEvent event) -> bool""" 9880 return _lldb.SBThread_EventIsThreadEvent(*args)
9881
9882 -def SBThread_GetStackFrameFromEvent(*args):
9883 """SBThread_GetStackFrameFromEvent(SBEvent event) -> SBFrame""" 9884 return _lldb.SBThread_GetStackFrameFromEvent(*args)
9885
9886 -def SBThread_GetThreadFromEvent(*args):
9887 """SBThread_GetThreadFromEvent(SBEvent event) -> SBThread""" 9888 return _lldb.SBThread_GetThreadFromEvent(*args)
9889
9890 -class SBThreadCollection(_object):
9891 """Represents a collection of SBThread objects.""" 9892 __swig_setmethods__ = {} 9893 __setattr__ = lambda self, name, value: _swig_setattr(self, SBThreadCollection, name, value) 9894 __swig_getmethods__ = {} 9895 __getattr__ = lambda self, name: _swig_getattr(self, SBThreadCollection, name) 9896 __repr__ = _swig_repr
9897 - def __init__(self, *args):
9898 """ 9899 __init__(lldb::SBThreadCollection self) -> SBThreadCollection 9900 __init__(lldb::SBThreadCollection self, SBThreadCollection rhs) -> SBThreadCollection 9901 """ 9902 this = _lldb.new_SBThreadCollection(*args) 9903 try: self.this.append(this) 9904 except: self.this = this
9905 __swig_destroy__ = _lldb.delete_SBThreadCollection 9906 __del__ = lambda self : None;
9907 - def __nonzero__(self): return self.IsValid()
9908 - def IsValid(self):
9909 """IsValid(SBThreadCollection self) -> bool""" 9910 return _lldb.SBThreadCollection_IsValid(self)
9911
9912 - def GetSize(self):
9913 """GetSize(SBThreadCollection self) -> size_t""" 9914 return _lldb.SBThreadCollection_GetSize(self)
9915
9916 - def GetThreadAtIndex(self, *args):
9917 """GetThreadAtIndex(SBThreadCollection self, size_t idx) -> SBThread""" 9918 return _lldb.SBThreadCollection_GetThreadAtIndex(self, *args)
9919 9920 SBThreadCollection_swigregister = _lldb.SBThreadCollection_swigregister 9921 SBThreadCollection_swigregister(SBThreadCollection)
9922 9923 -class SBThreadPlan(_object):
9924 """Proxy of C++ lldb::SBThreadPlan class""" 9925 __swig_setmethods__ = {} 9926 __setattr__ = lambda self, name, value: _swig_setattr(self, SBThreadPlan, name, value) 9927 __swig_getmethods__ = {} 9928 __getattr__ = lambda self, name: _swig_getattr(self, SBThreadPlan, name) 9929 __repr__ = _swig_repr
9930 - def __init__(self, *args):
9931 """ 9932 __init__(lldb::SBThreadPlan self) -> SBThreadPlan 9933 __init__(lldb::SBThreadPlan self, SBThreadPlan threadPlan) -> SBThreadPlan 9934 __init__(lldb::SBThreadPlan self, lldb::ThreadPlanSP const & lldb_object_sp) -> SBThreadPlan 9935 __init__(lldb::SBThreadPlan self, SBThread thread, str const * class_name) -> SBThreadPlan 9936 """ 9937 this = _lldb.new_SBThreadPlan(*args) 9938 try: self.this.append(this) 9939 except: self.this = this
9940 __swig_destroy__ = _lldb.delete_SBThreadPlan 9941 __del__ = lambda self : None;
9942 - def Clear(self):
9943 """Clear(SBThreadPlan self)""" 9944 return _lldb.SBThreadPlan_Clear(self)
9945
9946 - def GetStopReason(self):
9947 """GetStopReason(SBThreadPlan self) -> lldb::StopReason""" 9948 return _lldb.SBThreadPlan_GetStopReason(self)
9949
9950 - def GetStopReasonDataCount(self):
9951 """GetStopReasonDataCount(SBThreadPlan self) -> size_t""" 9952 return _lldb.SBThreadPlan_GetStopReasonDataCount(self)
9953
9954 - def GetStopReasonDataAtIndex(self, *args):
9955 """GetStopReasonDataAtIndex(SBThreadPlan self, uint32_t idx) -> uint64_t""" 9956 return _lldb.SBThreadPlan_GetStopReasonDataAtIndex(self, *args)
9957
9958 - def GetThread(self):
9959 """GetThread(SBThreadPlan self) -> SBThread""" 9960 return _lldb.SBThreadPlan_GetThread(self)
9961
9962 - def GetDescription(self, *args):
9963 """GetDescription(SBThreadPlan self, SBStream description) -> bool""" 9964 return _lldb.SBThreadPlan_GetDescription(self, *args)
9965
9966 - def SetPlanComplete(self, *args):
9967 """SetPlanComplete(SBThreadPlan self, bool success)""" 9968 return _lldb.SBThreadPlan_SetPlanComplete(self, *args)
9969
9970 - def IsPlanComplete(self):
9971 """IsPlanComplete(SBThreadPlan self) -> bool""" 9972 return _lldb.SBThreadPlan_IsPlanComplete(self)
9973
9974 - def IsPlanStale(self):
9975 """IsPlanStale(SBThreadPlan self) -> bool""" 9976 return _lldb.SBThreadPlan_IsPlanStale(self)
9977
9978 - def __nonzero__(self): return self.IsValid()
9979 - def IsValid(self, *args):
9980 """ 9981 IsValid(SBThreadPlan self) -> bool 9982 IsValid(SBThreadPlan self) -> bool 9983 """ 9984 return _lldb.SBThreadPlan_IsValid(self, *args)
9985
9986 - def QueueThreadPlanForStepOverRange(self, *args):
9987 """QueueThreadPlanForStepOverRange(SBThreadPlan self, SBAddress start_address, lldb::addr_t range_size) -> SBThreadPlan""" 9988 return _lldb.SBThreadPlan_QueueThreadPlanForStepOverRange(self, *args)
9989
9990 - def QueueThreadPlanForStepInRange(self, *args):
9991 """QueueThreadPlanForStepInRange(SBThreadPlan self, SBAddress start_address, lldb::addr_t range_size) -> SBThreadPlan""" 9992 return _lldb.SBThreadPlan_QueueThreadPlanForStepInRange(self, *args)
9993
9994 - def QueueThreadPlanForStepOut(self, *args):
9995 """ 9996 QueueThreadPlanForStepOut(SBThreadPlan self, uint32_t frame_idx_to_step_to, bool first_insn=False) -> SBThreadPlan 9997 QueueThreadPlanForStepOut(SBThreadPlan self, uint32_t frame_idx_to_step_to) -> SBThreadPlan 9998 """ 9999 return _lldb.SBThreadPlan_QueueThreadPlanForStepOut(self, *args)
10000
10001 - def QueueThreadPlanForRunToAddress(self, *args):
10002 """QueueThreadPlanForRunToAddress(SBThreadPlan self, SBAddress address) -> SBThreadPlan""" 10003 return _lldb.SBThreadPlan_QueueThreadPlanForRunToAddress(self, *args)
10004 10005 SBThreadPlan_swigregister = _lldb.SBThreadPlan_swigregister 10006 SBThreadPlan_swigregister(SBThreadPlan)
10007 10008 -class SBTypeMember(_object):
10009 """ 10010 Represents a member of a type in lldb. 10011 10012 """ 10013 __swig_setmethods__ = {} 10014 __setattr__ = lambda self, name, value: _swig_setattr(self, SBTypeMember, name, value) 10015 __swig_getmethods__ = {} 10016 __getattr__ = lambda self, name: _swig_getattr(self, SBTypeMember, name) 10017 __repr__ = _swig_repr
10018 - def __init__(self, *args):
10019 """ 10020 __init__(lldb::SBTypeMember self) -> SBTypeMember 10021 __init__(lldb::SBTypeMember self, SBTypeMember rhs) -> SBTypeMember 10022 """ 10023 this = _lldb.new_SBTypeMember(*args) 10024 try: self.this.append(this) 10025 except: self.this = this
10026 __swig_destroy__ = _lldb.delete_SBTypeMember 10027 __del__ = lambda self : None;
10028 - def __nonzero__(self): return self.IsValid()
10029 - def IsValid(self):
10030 """IsValid(SBTypeMember self) -> bool""" 10031 return _lldb.SBTypeMember_IsValid(self)
10032
10033 - def GetName(self):
10034 """GetName(SBTypeMember self) -> str const *""" 10035 return _lldb.SBTypeMember_GetName(self)
10036
10037 - def GetType(self):
10038 """GetType(SBTypeMember self) -> SBType""" 10039 return _lldb.SBTypeMember_GetType(self)
10040
10041 - def GetOffsetInBytes(self):
10042 """GetOffsetInBytes(SBTypeMember self) -> uint64_t""" 10043 return _lldb.SBTypeMember_GetOffsetInBytes(self)
10044
10045 - def GetOffsetInBits(self):
10046 """GetOffsetInBits(SBTypeMember self) -> uint64_t""" 10047 return _lldb.SBTypeMember_GetOffsetInBits(self)
10048
10049 - def IsBitfield(self):
10050 """IsBitfield(SBTypeMember self) -> bool""" 10051 return _lldb.SBTypeMember_IsBitfield(self)
10052
10053 - def GetBitfieldSizeInBits(self):
10054 """GetBitfieldSizeInBits(SBTypeMember self) -> uint32_t""" 10055 return _lldb.SBTypeMember_GetBitfieldSizeInBits(self)
10056 10057 __swig_getmethods__["name"] = GetName 10058 if _newclass: name = property(GetName, None, doc='''A read only property that returns the name for this member as a string.''') 10059 10060 __swig_getmethods__["type"] = GetType 10061 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.''') 10062 10063 __swig_getmethods__["byte_offset"] = GetOffsetInBytes 10064 if _newclass: byte_offset = property(GetOffsetInBytes, None, doc='''A read only property that returns offset in bytes for this member as an integer.''') 10065 10066 __swig_getmethods__["bit_offset"] = GetOffsetInBits 10067 if _newclass: bit_offset = property(GetOffsetInBits, None, doc='''A read only property that returns offset in bits for this member as an integer.''') 10068 10069 __swig_getmethods__["is_bitfield"] = IsBitfield 10070 if _newclass: is_bitfield = property(IsBitfield, None, doc='''A read only property that returns true if this member is a bitfield.''') 10071 10072 __swig_getmethods__["bitfield_bit_size"] = GetBitfieldSizeInBits 10073 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.''') 10074 10075
10076 - def __str__(self):
10077 """__str__(SBTypeMember self) -> PyObject *""" 10078 return _lldb.SBTypeMember___str__(self)
10079 10080 SBTypeMember_swigregister = _lldb.SBTypeMember_swigregister 10081 SBTypeMember_swigregister(SBTypeMember)
10082 10083 -class SBTypeMemberFunction(_object):
10084 """Proxy of C++ lldb::SBTypeMemberFunction class""" 10085 __swig_setmethods__ = {} 10086 __setattr__ = lambda self, name, value: _swig_setattr(self, SBTypeMemberFunction, name, value) 10087 __swig_getmethods__ = {} 10088 __getattr__ = lambda self, name: _swig_getattr(self, SBTypeMemberFunction, name) 10089 __repr__ = _swig_repr
10090 - def __init__(self, *args):
10091 """ 10092 __init__(lldb::SBTypeMemberFunction self) -> SBTypeMemberFunction 10093 __init__(lldb::SBTypeMemberFunction self, SBTypeMemberFunction rhs) -> SBTypeMemberFunction 10094 """ 10095 this = _lldb.new_SBTypeMemberFunction(*args) 10096 try: self.this.append(this) 10097 except: self.this = this
10098 __swig_destroy__ = _lldb.delete_SBTypeMemberFunction 10099 __del__ = lambda self : None;
10100 - def __nonzero__(self): return self.IsValid()
10101 - def IsValid(self):
10102 """IsValid(SBTypeMemberFunction self) -> bool""" 10103 return _lldb.SBTypeMemberFunction_IsValid(self)
10104
10105 - def GetName(self):
10106 """GetName(SBTypeMemberFunction self) -> str const *""" 10107 return _lldb.SBTypeMemberFunction_GetName(self)
10108
10109 - def GetDemangledName(self):
10110 """GetDemangledName(SBTypeMemberFunction self) -> str const *""" 10111 return _lldb.SBTypeMemberFunction_GetDemangledName(self)
10112
10113 - def GetMangledName(self):
10114 """GetMangledName(SBTypeMemberFunction self) -> str const *""" 10115 return _lldb.SBTypeMemberFunction_GetMangledName(self)
10116
10117 - def GetType(self):
10118 """GetType(SBTypeMemberFunction self) -> SBType""" 10119 return _lldb.SBTypeMemberFunction_GetType(self)
10120
10121 - def GetReturnType(self):
10122 """GetReturnType(SBTypeMemberFunction self) -> SBType""" 10123 return _lldb.SBTypeMemberFunction_GetReturnType(self)
10124
10125 - def GetNumberOfArguments(self):
10126 """GetNumberOfArguments(SBTypeMemberFunction self) -> uint32_t""" 10127 return _lldb.SBTypeMemberFunction_GetNumberOfArguments(self)
10128
10129 - def GetArgumentTypeAtIndex(self, *args):
10130 """GetArgumentTypeAtIndex(SBTypeMemberFunction self, uint32_t arg2) -> SBType""" 10131 return _lldb.SBTypeMemberFunction_GetArgumentTypeAtIndex(self, *args)
10132
10133 - def GetKind(self):
10134 """GetKind(SBTypeMemberFunction self) -> lldb::MemberFunctionKind""" 10135 return _lldb.SBTypeMemberFunction_GetKind(self)
10136
10137 - def GetDescription(self, *args):
10138 """GetDescription(SBTypeMemberFunction self, SBStream description, lldb::DescriptionLevel description_level) -> bool""" 10139 return _lldb.SBTypeMemberFunction_GetDescription(self, *args)
10140
10141 - def __str__(self):
10142 """__str__(SBTypeMemberFunction self) -> PyObject *""" 10143 return _lldb.SBTypeMemberFunction___str__(self)
10144 10145 SBTypeMemberFunction_swigregister = _lldb.SBTypeMemberFunction_swigregister 10146 SBTypeMemberFunction_swigregister(SBTypeMemberFunction)
10147 10148 -class SBType(_object):
10149 """ 10150 Represents a data type in lldb. The FindFirstType() method of SBTarget/SBModule 10151 returns a SBType. 10152 10153 SBType supports the eq/ne operator. For example, 10154 10155 main.cpp: 10156 10157 class Task { 10158 public: 10159 int id; 10160 Task *next; 10161 Task(int i, Task *n): 10162 id(i), 10163 next(n) 10164 {} 10165 }; 10166 10167 int main (int argc, char const *argv[]) 10168 { 10169 Task *task_head = new Task(-1, NULL); 10170 Task *task1 = new Task(1, NULL); 10171 Task *task2 = new Task(2, NULL); 10172 Task *task3 = new Task(3, NULL); // Orphaned. 10173 Task *task4 = new Task(4, NULL); 10174 Task *task5 = new Task(5, NULL); 10175 10176 task_head->next = task1; 10177 task1->next = task2; 10178 task2->next = task4; 10179 task4->next = task5; 10180 10181 int total = 0; 10182 Task *t = task_head; 10183 while (t != NULL) { 10184 if (t->id >= 0) 10185 ++total; 10186 t = t->next; 10187 } 10188 printf('We have a total number of %d tasks\n', total); 10189 10190 // This corresponds to an empty task list. 10191 Task *empty_task_head = new Task(-1, NULL); 10192 10193 return 0; // Break at this line 10194 } 10195 10196 find_type.py: 10197 10198 # Get the type 'Task'. 10199 task_type = target.FindFirstType('Task') 10200 self.assertTrue(task_type) 10201 10202 # Get the variable 'task_head'. 10203 frame0.FindVariable('task_head') 10204 task_head_type = task_head.GetType() 10205 self.assertTrue(task_head_type.IsPointerType()) 10206 10207 # task_head_type is 'Task *'. 10208 task_pointer_type = task_type.GetPointerType() 10209 self.assertTrue(task_head_type == task_pointer_type) 10210 10211 # Get the child mmember 'id' from 'task_head'. 10212 id = task_head.GetChildMemberWithName('id') 10213 id_type = id.GetType() 10214 10215 # SBType.GetBasicType() takes an enum 'BasicType' (lldb-enumerations.h). 10216 int_type = id_type.GetBasicType(lldb.eBasicTypeInt) 10217 # id_type and int_type should be the same type! 10218 self.assertTrue(id_type == int_type) 10219 10220 ... 10221 10222 """ 10223 __swig_setmethods__ = {} 10224 __setattr__ = lambda self, name, value: _swig_setattr(self, SBType, name, value) 10225 __swig_getmethods__ = {} 10226 __getattr__ = lambda self, name: _swig_getattr(self, SBType, name) 10227 __repr__ = _swig_repr
10228 - def __iter__(self): return lldb_iter(self, 'GetNumberChildren', 'GetChildAtIndex')
10229 - def __len__(self): return self.GetNumberChildren()
10230 - def __eq__(self, other): return isinstance(other, SBType) and self.GetByteSize() == other.GetByteSize() and self.GetName() == other.GetName()
10231 - def __ne__(self, other): return not self.__eq__(other)
10232 - def __init__(self, *args):
10233 """ 10234 __init__(lldb::SBType self) -> SBType 10235 __init__(lldb::SBType self, SBType rhs) -> SBType 10236 """ 10237 this = _lldb.new_SBType(*args) 10238 try: self.this.append(this) 10239 except: self.this = this
10240 __swig_destroy__ = _lldb.delete_SBType 10241 __del__ = lambda self : None;
10242 - def __nonzero__(self): return self.IsValid()
10243 - def IsValid(self):
10244 """IsValid(SBType self) -> bool""" 10245 return _lldb.SBType_IsValid(self)
10246
10247 - def GetByteSize(self):
10248 """GetByteSize(SBType self) -> uint64_t""" 10249 return _lldb.SBType_GetByteSize(self)
10250
10251 - def IsPointerType(self):
10252 """IsPointerType(SBType self) -> bool""" 10253 return _lldb.SBType_IsPointerType(self)
10254
10255 - def IsReferenceType(self):
10256 """IsReferenceType(SBType self) -> bool""" 10257 return _lldb.SBType_IsReferenceType(self)
10258
10259 - def IsFunctionType(self):
10260 """IsFunctionType(SBType self) -> bool""" 10261 return _lldb.SBType_IsFunctionType(self)
10262
10263 - def IsPolymorphicClass(self):
10264 """IsPolymorphicClass(SBType self) -> bool""" 10265 return _lldb.SBType_IsPolymorphicClass(self)
10266
10267 - def IsArrayType(self):
10268 """IsArrayType(SBType self) -> bool""" 10269 return _lldb.SBType_IsArrayType(self)
10270
10271 - def IsVectorType(self):
10272 """IsVectorType(SBType self) -> bool""" 10273 return _lldb.SBType_IsVectorType(self)
10274
10275 - def IsTypedefType(self):
10276 """IsTypedefType(SBType self) -> bool""" 10277 return _lldb.SBType_IsTypedefType(self)
10278
10279 - def IsAnonymousType(self):
10280 """IsAnonymousType(SBType self) -> bool""" 10281 return _lldb.SBType_IsAnonymousType(self)
10282
10283 - def GetPointerType(self):
10284 """GetPointerType(SBType self) -> SBType""" 10285 return _lldb.SBType_GetPointerType(self)
10286
10287 - def GetPointeeType(self):
10288 """GetPointeeType(SBType self) -> SBType""" 10289 return _lldb.SBType_GetPointeeType(self)
10290
10291 - def GetReferenceType(self):
10292 """GetReferenceType(SBType self) -> SBType""" 10293 return _lldb.SBType_GetReferenceType(self)
10294
10295 - def GetTypedefedType(self):
10296 """GetTypedefedType(SBType self) -> SBType""" 10297 return _lldb.SBType_GetTypedefedType(self)
10298
10299 - def GetDereferencedType(self):
10300 """GetDereferencedType(SBType self) -> SBType""" 10301 return _lldb.SBType_GetDereferencedType(self)
10302
10303 - def GetUnqualifiedType(self):
10304 """GetUnqualifiedType(SBType self) -> SBType""" 10305 return _lldb.SBType_GetUnqualifiedType(self)
10306
10307 - def GetCanonicalType(self):
10308 """GetCanonicalType(SBType self) -> SBType""" 10309 return _lldb.SBType_GetCanonicalType(self)
10310
10311 - def GetArrayElementType(self):
10312 """GetArrayElementType(SBType self) -> SBType""" 10313 return _lldb.SBType_GetArrayElementType(self)
10314
10315 - def GetArrayType(self, *args):
10316 """GetArrayType(SBType self, uint64_t size) -> SBType""" 10317 return _lldb.SBType_GetArrayType(self, *args)
10318
10319 - def GetVectorElementType(self):
10320 """GetVectorElementType(SBType self) -> SBType""" 10321 return _lldb.SBType_GetVectorElementType(self)
10322
10323 - def GetBasicType(self, *args):
10324 """ 10325 GetBasicType(SBType self) -> lldb::BasicType 10326 GetBasicType(SBType self, lldb::BasicType type) -> SBType 10327 """ 10328 return _lldb.SBType_GetBasicType(self, *args)
10329
10330 - def GetNumberOfFields(self):
10331 """GetNumberOfFields(SBType self) -> uint32_t""" 10332 return _lldb.SBType_GetNumberOfFields(self)
10333
10334 - def GetNumberOfDirectBaseClasses(self):
10335 """GetNumberOfDirectBaseClasses(SBType self) -> uint32_t""" 10336 return _lldb.SBType_GetNumberOfDirectBaseClasses(self)
10337
10338 - def GetNumberOfVirtualBaseClasses(self):
10339 """GetNumberOfVirtualBaseClasses(SBType self) -> uint32_t""" 10340 return _lldb.SBType_GetNumberOfVirtualBaseClasses(self)
10341
10342 - def GetFieldAtIndex(self, *args):
10343 """GetFieldAtIndex(SBType self, uint32_t idx) -> SBTypeMember""" 10344 return _lldb.SBType_GetFieldAtIndex(self, *args)
10345
10346 - def GetDirectBaseClassAtIndex(self, *args):
10347 """GetDirectBaseClassAtIndex(SBType self, uint32_t idx) -> SBTypeMember""" 10348 return _lldb.SBType_GetDirectBaseClassAtIndex(self, *args)
10349
10350 - def GetVirtualBaseClassAtIndex(self, *args):
10351 """GetVirtualBaseClassAtIndex(SBType self, uint32_t idx) -> SBTypeMember""" 10352 return _lldb.SBType_GetVirtualBaseClassAtIndex(self, *args)
10353
10354 - def GetEnumMembers(self):
10355 """GetEnumMembers(SBType self) -> SBTypeEnumMemberList""" 10356 return _lldb.SBType_GetEnumMembers(self)
10357
10358 - def GetName(self):
10359 """GetName(SBType self) -> str const *""" 10360 return _lldb.SBType_GetName(self)
10361
10362 - def GetDisplayTypeName(self):
10363 """GetDisplayTypeName(SBType self) -> str const *""" 10364 return _lldb.SBType_GetDisplayTypeName(self)
10365
10366 - def GetTypeClass(self):
10367 """GetTypeClass(SBType self) -> lldb::TypeClass""" 10368 return _lldb.SBType_GetTypeClass(self)
10369
10370 - def GetNumberOfTemplateArguments(self):
10371 """GetNumberOfTemplateArguments(SBType self) -> uint32_t""" 10372 return _lldb.SBType_GetNumberOfTemplateArguments(self)
10373
10374 - def GetTemplateArgumentType(self, *args):
10375 """GetTemplateArgumentType(SBType self, uint32_t idx) -> SBType""" 10376 return _lldb.SBType_GetTemplateArgumentType(self, *args)
10377
10378 - def GetTemplateArgumentKind(self, *args):
10379 """GetTemplateArgumentKind(SBType self, uint32_t idx) -> lldb::TemplateArgumentKind""" 10380 return _lldb.SBType_GetTemplateArgumentKind(self, *args)
10381
10382 - def GetFunctionReturnType(self):
10383 """GetFunctionReturnType(SBType self) -> SBType""" 10384 return _lldb.SBType_GetFunctionReturnType(self)
10385
10386 - def GetFunctionArgumentTypes(self):
10387 """GetFunctionArgumentTypes(SBType self) -> SBTypeList""" 10388 return _lldb.SBType_GetFunctionArgumentTypes(self)
10389
10390 - def GetNumberOfMemberFunctions(self):
10391 """GetNumberOfMemberFunctions(SBType self) -> uint32_t""" 10392 return _lldb.SBType_GetNumberOfMemberFunctions(self)
10393
10394 - def GetMemberFunctionAtIndex(self, *args):
10395 """GetMemberFunctionAtIndex(SBType self, uint32_t idx) -> SBTypeMemberFunction""" 10396 return _lldb.SBType_GetMemberFunctionAtIndex(self, *args)
10397
10398 - def IsTypeComplete(self):
10399 """IsTypeComplete(SBType self) -> bool""" 10400 return _lldb.SBType_IsTypeComplete(self)
10401
10402 - def GetTypeFlags(self):
10403 """GetTypeFlags(SBType self) -> uint32_t""" 10404 return _lldb.SBType_GetTypeFlags(self)
10405
10406 - def template_arg_array(self):
10407 num_args = self.num_template_args 10408 if num_args: 10409 template_args = [] 10410 for i in range(num_args): 10411 template_args.append(self.GetTemplateArgumentType(i)) 10412 return template_args 10413 return None
10414 10415 __swig_getmethods__["name"] = GetName 10416 if _newclass: name = property(GetName, None, doc='''A read only property that returns the name for this type as a string.''') 10417 10418 __swig_getmethods__["size"] = GetByteSize 10419 if _newclass: size = property(GetByteSize, None, doc='''A read only property that returns size in bytes for this type as an integer.''') 10420 10421 __swig_getmethods__["is_pointer"] = IsPointerType 10422 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.''') 10423 10424 __swig_getmethods__["is_reference"] = IsReferenceType 10425 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.''') 10426 10427 __swig_getmethods__["is_function"] = IsFunctionType 10428 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.''') 10429 10430 __swig_getmethods__["num_fields"] = GetNumberOfFields 10431 if _newclass: num_fields = property(GetNumberOfFields, None, doc='''A read only property that returns number of fields in this type as an integer.''') 10432 10433 __swig_getmethods__["num_bases"] = GetNumberOfDirectBaseClasses 10434 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.''') 10435 10436 __swig_getmethods__["num_vbases"] = GetNumberOfVirtualBaseClasses 10437 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.''') 10438 10439 __swig_getmethods__["num_template_args"] = GetNumberOfTemplateArguments 10440 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.''') 10441 10442 __swig_getmethods__["template_args"] = template_arg_array 10443 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.''') 10444 10445 __swig_getmethods__["type"] = GetTypeClass 10446 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.''') 10447 10448 __swig_getmethods__["is_complete"] = IsTypeComplete 10449 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).''') 10450
10451 - def get_bases_array(self):
10452 '''An accessor function that returns a list() that contains all direct base classes in a lldb.SBType object.''' 10453 bases = [] 10454 for idx in range(self.GetNumberOfDirectBaseClasses()): 10455 bases.append(self.GetDirectBaseClassAtIndex(idx)) 10456 return bases
10457
10458 - def get_vbases_array(self):
10459 '''An accessor function that returns a list() that contains all fields in a lldb.SBType object.''' 10460 vbases = [] 10461 for idx in range(self.GetNumberOfVirtualBaseClasses()): 10462 vbases.append(self.GetVirtualBaseClassAtIndex(idx)) 10463 return vbases
10464
10465 - def get_fields_array(self):
10466 '''An accessor function that returns a list() that contains all fields in a lldb.SBType object.''' 10467 fields = [] 10468 for idx in range(self.GetNumberOfFields()): 10469 fields.append(self.GetFieldAtIndex(idx)) 10470 return fields
10471
10472 - def get_members_array(self):
10473 '''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.''' 10474 members = [] 10475 bases = self.get_bases_array() 10476 fields = self.get_fields_array() 10477 vbases = self.get_vbases_array() 10478 for base in bases: 10479 bit_offset = base.bit_offset 10480 added = False 10481 for idx, member in enumerate(members): 10482 if member.bit_offset > bit_offset: 10483 members.insert(idx, base) 10484 added = True 10485 break 10486 if not added: 10487 members.append(base) 10488 for vbase in vbases: 10489 bit_offset = vbase.bit_offset 10490 added = False 10491 for idx, member in enumerate(members): 10492 if member.bit_offset > bit_offset: 10493 members.insert(idx, vbase) 10494 added = True 10495 break 10496 if not added: 10497 members.append(vbase) 10498 for field in fields: 10499 bit_offset = field.bit_offset 10500 added = False 10501 for idx, member in enumerate(members): 10502 if member.bit_offset > bit_offset: 10503 members.insert(idx, field) 10504 added = True 10505 break 10506 if not added: 10507 members.append(field) 10508 return members
10509
10510 - def get_enum_members_array(self):
10511 '''An accessor function that returns a list() that contains all enum members in an lldb.SBType object.''' 10512 enum_members_list = [] 10513 sb_enum_members = self.GetEnumMembers() 10514 for idx in range(sb_enum_members.GetSize()): 10515 enum_members_list.append(sb_enum_members.GetTypeEnumMemberAtIndex(idx)) 10516 return enum_members_list
10517 10518 __swig_getmethods__["bases"] = get_bases_array 10519 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.''') 10520 10521 __swig_getmethods__["vbases"] = get_vbases_array 10522 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.''') 10523 10524 __swig_getmethods__["fields"] = get_fields_array 10525 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.''') 10526 10527 __swig_getmethods__["members"] = get_members_array 10528 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.''') 10529 10530 __swig_getmethods__["enum_members"] = get_enum_members_array 10531 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.''') 10532 10533
10534 - def __str__(self):
10535 """__str__(SBType self) -> PyObject *""" 10536 return _lldb.SBType___str__(self)
10537 10538 SBType_swigregister = _lldb.SBType_swigregister 10539 SBType_swigregister(SBType)
10540 10541 -class SBTypeList(_object):
10542 """ 10543 Represents a list of SBTypes. The FindTypes() method of SBTarget/SBModule 10544 returns a SBTypeList. 10545 10546 SBTypeList supports SBType iteration. For example, 10547 10548 main.cpp: 10549 10550 class Task { 10551 public: 10552 int id; 10553 Task *next; 10554 Task(int i, Task *n): 10555 id(i), 10556 next(n) 10557 {} 10558 }; 10559 10560 ... 10561 10562 find_type.py: 10563 10564 # Get the type 'Task'. 10565 type_list = target.FindTypes('Task') 10566 self.assertTrue(len(type_list) == 1) 10567 # To illustrate the SBType iteration. 10568 for type in type_list: 10569 # do something with type 10570 10571 ... 10572 10573 """ 10574 __swig_setmethods__ = {} 10575 __setattr__ = lambda self, name, value: _swig_setattr(self, SBTypeList, name, value) 10576 __swig_getmethods__ = {} 10577 __getattr__ = lambda self, name: _swig_getattr(self, SBTypeList, name) 10578 __repr__ = _swig_repr
10579 - def __iter__(self): return lldb_iter(self, 'GetSize', 'GetTypeAtIndex')
10580 - def __len__(self): return self.GetSize()
10581 - def __init__(self):
10582 """__init__(lldb::SBTypeList self) -> SBTypeList""" 10583 this = _lldb.new_SBTypeList() 10584 try: self.this.append(this) 10585 except: self.this = this
10586 - def __nonzero__(self): return self.IsValid()
10587 - def IsValid(self):
10588 """IsValid(SBTypeList self) -> bool""" 10589 return _lldb.SBTypeList_IsValid(self)
10590
10591 - def Append(self, *args):
10592 """Append(SBTypeList self, SBType type)""" 10593 return _lldb.SBTypeList_Append(self, *args)
10594
10595 - def GetTypeAtIndex(self, *args):
10596 """GetTypeAtIndex(SBTypeList self, uint32_t index) -> SBType""" 10597 return _lldb.SBTypeList_GetTypeAtIndex(self, *args)
10598
10599 - def GetSize(self):
10600 """GetSize(SBTypeList self) -> uint32_t""" 10601 return _lldb.SBTypeList_GetSize(self)
10602 10603 __swig_destroy__ = _lldb.delete_SBTypeList 10604 __del__ = lambda self : None; 10605 SBTypeList_swigregister = _lldb.SBTypeList_swigregister 10606 SBTypeList_swigregister(SBTypeList)
10607 10608 -class SBTypeCategory(_object):
10609 """ 10610 Represents a category that can contain formatters for types. 10611 10612 """ 10613 __swig_setmethods__ = {} 10614 __setattr__ = lambda self, name, value: _swig_setattr(self, SBTypeCategory, name, value) 10615 __swig_getmethods__ = {} 10616 __getattr__ = lambda self, name: _swig_getattr(self, SBTypeCategory, name) 10617 __repr__ = _swig_repr
10618 - def __init__(self, *args):
10619 """ 10620 __init__(lldb::SBTypeCategory self) -> SBTypeCategory 10621 __init__(lldb::SBTypeCategory self, SBTypeCategory rhs) -> SBTypeCategory 10622 """ 10623 this = _lldb.new_SBTypeCategory(*args) 10624 try: self.this.append(this) 10625 except: self.this = this
10626 __swig_destroy__ = _lldb.delete_SBTypeCategory 10627 __del__ = lambda self : None;
10628 - def __nonzero__(self): return self.IsValid()
10629 - def IsValid(self):
10630 """IsValid(SBTypeCategory self) -> bool""" 10631 return _lldb.SBTypeCategory_IsValid(self)
10632
10633 - def GetEnabled(self):
10634 """GetEnabled(SBTypeCategory self) -> bool""" 10635 return _lldb.SBTypeCategory_GetEnabled(self)
10636
10637 - def SetEnabled(self, *args):
10638 """SetEnabled(SBTypeCategory self, bool arg2)""" 10639 return _lldb.SBTypeCategory_SetEnabled(self, *args)
10640
10641 - def GetName(self):
10642 """GetName(SBTypeCategory self) -> str const *""" 10643 return _lldb.SBTypeCategory_GetName(self)
10644
10645 - def GetLanguageAtIndex(self, *args):
10646 """GetLanguageAtIndex(SBTypeCategory self, uint32_t idx) -> lldb::LanguageType""" 10647 return _lldb.SBTypeCategory_GetLanguageAtIndex(self, *args)
10648
10649 - def GetNumLanguages(self):
10650 """GetNumLanguages(SBTypeCategory self) -> uint32_t""" 10651 return _lldb.SBTypeCategory_GetNumLanguages(self)
10652
10653 - def AddLanguage(self, *args):
10654 """AddLanguage(SBTypeCategory self, lldb::LanguageType language)""" 10655 return _lldb.SBTypeCategory_AddLanguage(self, *args)
10656
10657 - def GetDescription(self, *args):
10658 """GetDescription(SBTypeCategory self, SBStream description, lldb::DescriptionLevel description_level) -> bool""" 10659 return _lldb.SBTypeCategory_GetDescription(self, *args)
10660
10661 - def GetNumFormats(self):
10662 """GetNumFormats(SBTypeCategory self) -> uint32_t""" 10663 return _lldb.SBTypeCategory_GetNumFormats(self)
10664
10665 - def GetNumSummaries(self):
10666 """GetNumSummaries(SBTypeCategory self) -> uint32_t""" 10667 return _lldb.SBTypeCategory_GetNumSummaries(self)
10668
10669 - def GetNumFilters(self):
10670 """GetNumFilters(SBTypeCategory self) -> uint32_t""" 10671 return _lldb.SBTypeCategory_GetNumFilters(self)
10672
10673 - def GetNumSynthetics(self):
10674 """GetNumSynthetics(SBTypeCategory self) -> uint32_t""" 10675 return _lldb.SBTypeCategory_GetNumSynthetics(self)
10676
10677 - def GetTypeNameSpecifierForFilterAtIndex(self, *args):
10678 """GetTypeNameSpecifierForFilterAtIndex(SBTypeCategory self, uint32_t arg2) -> SBTypeNameSpecifier""" 10679 return _lldb.SBTypeCategory_GetTypeNameSpecifierForFilterAtIndex(self, *args)
10680
10681 - def GetTypeNameSpecifierForFormatAtIndex(self, *args):
10682 """GetTypeNameSpecifierForFormatAtIndex(SBTypeCategory self, uint32_t arg2) -> SBTypeNameSpecifier""" 10683 return _lldb.SBTypeCategory_GetTypeNameSpecifierForFormatAtIndex(self, *args)
10684
10685 - def GetTypeNameSpecifierForSummaryAtIndex(self, *args):
10686 """GetTypeNameSpecifierForSummaryAtIndex(SBTypeCategory self, uint32_t arg2) -> SBTypeNameSpecifier""" 10687 return _lldb.SBTypeCategory_GetTypeNameSpecifierForSummaryAtIndex(self, *args)
10688
10689 - def GetTypeNameSpecifierForSyntheticAtIndex(self, *args):
10690 """GetTypeNameSpecifierForSyntheticAtIndex(SBTypeCategory self, uint32_t arg2) -> SBTypeNameSpecifier""" 10691 return _lldb.SBTypeCategory_GetTypeNameSpecifierForSyntheticAtIndex(self, *args)
10692
10693 - def GetFilterForType(self, *args):
10694 """GetFilterForType(SBTypeCategory self, SBTypeNameSpecifier arg2) -> SBTypeFilter""" 10695 return _lldb.SBTypeCategory_GetFilterForType(self, *args)
10696
10697 - def GetFormatForType(self, *args):
10698 """GetFormatForType(SBTypeCategory self, SBTypeNameSpecifier arg2) -> SBTypeFormat""" 10699 return _lldb.SBTypeCategory_GetFormatForType(self, *args)
10700
10701 - def GetSummaryForType(self, *args):
10702 """GetSummaryForType(SBTypeCategory self, SBTypeNameSpecifier arg2) -> SBTypeSummary""" 10703 return _lldb.SBTypeCategory_GetSummaryForType(self, *args)
10704
10705 - def GetSyntheticForType(self, *args):
10706 """GetSyntheticForType(SBTypeCategory self, SBTypeNameSpecifier arg2) -> SBTypeSynthetic""" 10707 return _lldb.SBTypeCategory_GetSyntheticForType(self, *args)
10708
10709 - def GetFilterAtIndex(self, *args):
10710 """GetFilterAtIndex(SBTypeCategory self, uint32_t arg2) -> SBTypeFilter""" 10711 return _lldb.SBTypeCategory_GetFilterAtIndex(self, *args)
10712
10713 - def GetFormatAtIndex(self, *args):
10714 """GetFormatAtIndex(SBTypeCategory self, uint32_t arg2) -> SBTypeFormat""" 10715 return _lldb.SBTypeCategory_GetFormatAtIndex(self, *args)
10716
10717 - def GetSummaryAtIndex(self, *args):
10718 """GetSummaryAtIndex(SBTypeCategory self, uint32_t arg2) -> SBTypeSummary""" 10719 return _lldb.SBTypeCategory_GetSummaryAtIndex(self, *args)
10720
10721 - def GetSyntheticAtIndex(self, *args):
10722 """GetSyntheticAtIndex(SBTypeCategory self, uint32_t arg2) -> SBTypeSynthetic""" 10723 return _lldb.SBTypeCategory_GetSyntheticAtIndex(self, *args)
10724
10725 - def AddTypeFormat(self, *args):
10726 """AddTypeFormat(SBTypeCategory self, SBTypeNameSpecifier arg2, SBTypeFormat arg3) -> bool""" 10727 return _lldb.SBTypeCategory_AddTypeFormat(self, *args)
10728
10729 - def DeleteTypeFormat(self, *args):
10730 """DeleteTypeFormat(SBTypeCategory self, SBTypeNameSpecifier arg2) -> bool""" 10731 return _lldb.SBTypeCategory_DeleteTypeFormat(self, *args)
10732
10733 - def AddTypeSummary(self, *args):
10734 """AddTypeSummary(SBTypeCategory self, SBTypeNameSpecifier arg2, SBTypeSummary arg3) -> bool""" 10735 return _lldb.SBTypeCategory_AddTypeSummary(self, *args)
10736
10737 - def DeleteTypeSummary(self, *args):
10738 """DeleteTypeSummary(SBTypeCategory self, SBTypeNameSpecifier arg2) -> bool""" 10739 return _lldb.SBTypeCategory_DeleteTypeSummary(self, *args)
10740
10741 - def AddTypeFilter(self, *args):
10742 """AddTypeFilter(SBTypeCategory self, SBTypeNameSpecifier arg2, SBTypeFilter arg3) -> bool""" 10743 return _lldb.SBTypeCategory_AddTypeFilter(self, *args)
10744
10745 - def DeleteTypeFilter(self, *args):
10746 """DeleteTypeFilter(SBTypeCategory self, SBTypeNameSpecifier arg2) -> bool""" 10747 return _lldb.SBTypeCategory_DeleteTypeFilter(self, *args)
10748
10749 - def AddTypeSynthetic(self, *args):
10750 """AddTypeSynthetic(SBTypeCategory self, SBTypeNameSpecifier arg2, SBTypeSynthetic arg3) -> bool""" 10751 return _lldb.SBTypeCategory_AddTypeSynthetic(self, *args)
10752
10753 - def DeleteTypeSynthetic(self, *args):
10754 """DeleteTypeSynthetic(SBTypeCategory self, SBTypeNameSpecifier arg2) -> bool""" 10755 return _lldb.SBTypeCategory_DeleteTypeSynthetic(self, *args)
10756
10757 - class formatters_access_class(object):
10758 '''A helper object that will lazily hand out formatters for a specific category.'''
10759 - def __init__(self, sbcategory, get_count_function, get_at_index_function, get_by_name_function):
10760 self.sbcategory = sbcategory 10761 self.get_count_function = get_count_function 10762 self.get_at_index_function = get_at_index_function 10763 self.get_by_name_function = get_by_name_function 10764 self.regex_type = type(re.compile('.'))
10765 10766
10767 - def __len__(self):
10768 if self.sbcategory and self.get_count_function: 10769 return int(self.get_count_function(self.sbcategory)) 10770 return 0
10771
10772 - def __getitem__(self, key):
10773 num_items = len(self) 10774 if type(key) is int: 10775 if key < num_items: 10776 return self.get_at_index_function(self.sbcategory,key) 10777 elif type(key) is str: 10778 return self.get_by_name_function(self.sbcategory,SBTypeNameSpecifier(key)) 10779 elif isinstance(key,self.regex_type): 10780 return self.get_by_name_function(self.sbcategory,SBTypeNameSpecifier(key.pattern,True)) 10781 else: 10782 print("error: unsupported item type: %s" % type(key)) 10783 return None
10784
10785 - def get_formats_access_object(self):
10786 '''An accessor function that returns an accessor object which allows lazy format access from a lldb.SBTypeCategory object.''' 10787 return self.formatters_access_class (self,self.__class__.GetNumFormats,self.__class__.GetFormatAtIndex,self.__class__.GetFormatForType)
10788
10789 - def get_formats_array(self):
10790 '''An accessor function that returns a list() that contains all formats in a lldb.SBCategory object.''' 10791 formats = [] 10792 for idx in range(self.GetNumFormats()): 10793 formats.append(self.GetFormatAtIndex(idx)) 10794 return formats
10795
10796 - def get_summaries_access_object(self):
10797 '''An accessor function that returns an accessor object which allows lazy summary access from a lldb.SBTypeCategory object.''' 10798 return self.formatters_access_class (self,self.__class__.GetNumSummaries,self.__class__.GetSummaryAtIndex,self.__class__.GetSummaryForType)
10799
10800 - def get_summaries_array(self):
10801 '''An accessor function that returns a list() that contains all summaries in a lldb.SBCategory object.''' 10802 summaries = [] 10803 for idx in range(self.GetNumSummaries()): 10804 summaries.append(self.GetSummaryAtIndex(idx)) 10805 return summaries
10806
10807 - def get_synthetics_access_object(self):
10808 '''An accessor function that returns an accessor object which allows lazy synthetic children provider access from a lldb.SBTypeCategory object.''' 10809 return self.formatters_access_class (self,self.__class__.GetNumSynthetics,self.__class__.GetSyntheticAtIndex,self.__class__.GetSyntheticForType)
10810
10811 - def get_synthetics_array(self):
10812 '''An accessor function that returns a list() that contains all synthetic children providers in a lldb.SBCategory object.''' 10813 synthetics = [] 10814 for idx in range(self.GetNumSynthetics()): 10815 synthetics.append(self.GetSyntheticAtIndex(idx)) 10816 return synthetics
10817
10818 - def get_filters_access_object(self):
10819 '''An accessor function that returns an accessor object which allows lazy filter access from a lldb.SBTypeCategory object.''' 10820 return self.formatters_access_class (self,self.__class__.GetNumFilters,self.__class__.GetFilterAtIndex,self.__class__.GetFilterForType)
10821
10822 - def get_filters_array(self):
10823 '''An accessor function that returns a list() that contains all filters in a lldb.SBCategory object.''' 10824 filters = [] 10825 for idx in range(self.GetNumFilters()): 10826 filters.append(self.GetFilterAtIndex(idx)) 10827 return filters
10828 10829 __swig_getmethods__["formats"] = get_formats_array 10830 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''') 10831 10832 __swig_getmethods__["format"] = get_formats_access_object 10833 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.''') 10834 10835 __swig_getmethods__["summaries"] = get_summaries_array 10836 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''') 10837 10838 __swig_getmethods__["summary"] = get_summaries_access_object 10839 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.''') 10840 10841 __swig_getmethods__["filters"] = get_filters_array 10842 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''') 10843 10844 __swig_getmethods__["filter"] = get_filters_access_object 10845 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.''') 10846 10847 __swig_getmethods__["synthetics"] = get_synthetics_array 10848 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''') 10849 10850 __swig_getmethods__["synthetic"] = get_synthetics_access_object 10851 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.''') 10852 10853 __swig_getmethods__["num_formats"] = GetNumFormats 10854 if _newclass: num_formats = property(GetNumFormats, None) 10855 __swig_getmethods__["num_summaries"] = GetNumSummaries 10856 if _newclass: num_summaries = property(GetNumSummaries, None) 10857 __swig_getmethods__["num_filters"] = GetNumFilters 10858 if _newclass: num_filters = property(GetNumFilters, None) 10859 __swig_getmethods__["num_synthetics"] = GetNumSynthetics 10860 if _newclass: num_synthetics = property(GetNumSynthetics, None) 10861 10862 __swig_getmethods__["name"] = GetName 10863 if _newclass: name = property(GetName, None) 10864 10865 __swig_getmethods__["enabled"] = GetEnabled 10866 __swig_setmethods__["enabled"] = SetEnabled 10867 if _newclass: enabled = property(GetEnabled, SetEnabled) 10868
10869 - def __str__(self):
10870 """__str__(SBTypeCategory self) -> PyObject *""" 10871 return _lldb.SBTypeCategory___str__(self)
10872 10873 SBTypeCategory_swigregister = _lldb.SBTypeCategory_swigregister 10874 SBTypeCategory_swigregister(SBTypeCategory)
10875 10876 -class SBTypeEnumMember(_object):
10877 """Represents a member of an enum in lldb.""" 10878 __swig_setmethods__ = {} 10879 __setattr__ = lambda self, name, value: _swig_setattr(self, SBTypeEnumMember, name, value) 10880 __swig_getmethods__ = {} 10881 __getattr__ = lambda self, name: _swig_getattr(self, SBTypeEnumMember, name) 10882 __repr__ = _swig_repr
10883 - def __init__(self, *args):
10884 """ 10885 __init__(lldb::SBTypeEnumMember self) -> SBTypeEnumMember 10886 __init__(lldb::SBTypeEnumMember self, SBTypeEnumMember rhs) -> SBTypeEnumMember 10887 """ 10888 this = _lldb.new_SBTypeEnumMember(*args) 10889 try: self.this.append(this) 10890 except: self.this = this
10891 __swig_destroy__ = _lldb.delete_SBTypeEnumMember 10892 __del__ = lambda self : None;
10893 - def __nonzero__(self): return self.IsValid()
10894 - def IsValid(self):
10895 """IsValid(SBTypeEnumMember self) -> bool""" 10896 return _lldb.SBTypeEnumMember_IsValid(self)
10897
10898 - def GetValueAsSigned(self):
10899 """GetValueAsSigned(SBTypeEnumMember self) -> int64_t""" 10900 return _lldb.SBTypeEnumMember_GetValueAsSigned(self)
10901
10902 - def GetValueAsUnsigned(self):
10903 """GetValueAsUnsigned(SBTypeEnumMember self) -> uint64_t""" 10904 return _lldb.SBTypeEnumMember_GetValueAsUnsigned(self)
10905
10906 - def GetName(self):
10907 """GetName(SBTypeEnumMember self) -> str const *""" 10908 return _lldb.SBTypeEnumMember_GetName(self)
10909
10910 - def GetType(self):
10911 """GetType(SBTypeEnumMember self) -> SBType""" 10912 return _lldb.SBTypeEnumMember_GetType(self)
10913
10914 - def GetDescription(self, *args):
10915 """GetDescription(SBTypeEnumMember self, SBStream description, lldb::DescriptionLevel description_level) -> bool""" 10916 return _lldb.SBTypeEnumMember_GetDescription(self, *args)
10917 10918 __swig_getmethods__["name"] = GetName 10919 if _newclass: name = property(GetName, None, doc='''A read only property that returns the name for this enum member as a string.''') 10920 10921 __swig_getmethods__["type"] = GetType 10922 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.''') 10923 10924 __swig_getmethods__["signed"] = GetValueAsSigned 10925 if _newclass: signed = property(GetValueAsSigned, None, doc='''A read only property that returns the value of this enum member as a signed integer.''') 10926 10927 __swig_getmethods__["unsigned"] = GetValueAsUnsigned 10928 if _newclass: unsigned = property(GetValueAsUnsigned, None, doc='''A read only property that returns the value of this enum member as a unsigned integer.''') 10929
10930 - def __str__(self):
10931 """__str__(SBTypeEnumMember self) -> PyObject *""" 10932 return _lldb.SBTypeEnumMember___str__(self)
10933 10934 SBTypeEnumMember_swigregister = _lldb.SBTypeEnumMember_swigregister 10935 SBTypeEnumMember_swigregister(SBTypeEnumMember)
10936 10937 -class SBTypeEnumMemberList(_object):
10938 """Represents a list of SBTypeEnumMembers.""" 10939 __swig_setmethods__ = {} 10940 __setattr__ = lambda self, name, value: _swig_setattr(self, SBTypeEnumMemberList, name, value) 10941 __swig_getmethods__ = {} 10942 __getattr__ = lambda self, name: _swig_getattr(self, SBTypeEnumMemberList, name) 10943 __repr__ = _swig_repr
10944 - def __init__(self, *args):
10945 """ 10946 __init__(lldb::SBTypeEnumMemberList self) -> SBTypeEnumMemberList 10947 __init__(lldb::SBTypeEnumMemberList self, SBTypeEnumMemberList rhs) -> SBTypeEnumMemberList 10948 """ 10949 this = _lldb.new_SBTypeEnumMemberList(*args) 10950 try: self.this.append(this) 10951 except: self.this = this
10952 __swig_destroy__ = _lldb.delete_SBTypeEnumMemberList 10953 __del__ = lambda self : None;
10954 - def __nonzero__(self): return self.IsValid()
10955 - def IsValid(self):
10956 """IsValid(SBTypeEnumMemberList self) -> bool""" 10957 return _lldb.SBTypeEnumMemberList_IsValid(self)
10958
10959 - def Append(self, *args):
10960 """Append(SBTypeEnumMemberList self, SBTypeEnumMember entry)""" 10961 return _lldb.SBTypeEnumMemberList_Append(self, *args)
10962
10963 - def GetTypeEnumMemberAtIndex(self, *args):
10964 """GetTypeEnumMemberAtIndex(SBTypeEnumMemberList self, uint32_t index) -> SBTypeEnumMember""" 10965 return _lldb.SBTypeEnumMemberList_GetTypeEnumMemberAtIndex(self, *args)
10966
10967 - def GetSize(self):
10968 """GetSize(SBTypeEnumMemberList self) -> uint32_t""" 10969 return _lldb.SBTypeEnumMemberList_GetSize(self)
10970 10971 SBTypeEnumMemberList_swigregister = _lldb.SBTypeEnumMemberList_swigregister 10972 SBTypeEnumMemberList_swigregister(SBTypeEnumMemberList)
10973 10974 -class SBTypeFilter(_object):
10975 """ 10976 Represents a filter that can be associated to one or more types. 10977 10978 """ 10979 __swig_setmethods__ = {} 10980 __setattr__ = lambda self, name, value: _swig_setattr(self, SBTypeFilter, name, value) 10981 __swig_getmethods__ = {} 10982 __getattr__ = lambda self, name: _swig_getattr(self, SBTypeFilter, name) 10983 __repr__ = _swig_repr
10984 - def __init__(self, *args):
10985 """ 10986 __init__(lldb::SBTypeFilter self) -> SBTypeFilter 10987 __init__(lldb::SBTypeFilter self, uint32_t options) -> SBTypeFilter 10988 __init__(lldb::SBTypeFilter self, SBTypeFilter rhs) -> SBTypeFilter 10989 """ 10990 this = _lldb.new_SBTypeFilter(*args) 10991 try: self.this.append(this) 10992 except: self.this = this
10993 __swig_destroy__ = _lldb.delete_SBTypeFilter 10994 __del__ = lambda self : None;
10995 - def __nonzero__(self): return self.IsValid()
10996 - def IsValid(self):
10997 """IsValid(SBTypeFilter self) -> bool""" 10998 return _lldb.SBTypeFilter_IsValid(self)
10999
11000 - def IsEqualTo(self, *args):
11001 """IsEqualTo(SBTypeFilter self, SBTypeFilter rhs) -> bool""" 11002 return _lldb.SBTypeFilter_IsEqualTo(self, *args)
11003
11004 - def GetNumberOfExpressionPaths(self):
11005 """GetNumberOfExpressionPaths(SBTypeFilter self) -> uint32_t""" 11006 return _lldb.SBTypeFilter_GetNumberOfExpressionPaths(self)
11007
11008 - def GetExpressionPathAtIndex(self, *args):
11009 """GetExpressionPathAtIndex(SBTypeFilter self, uint32_t i) -> str const *""" 11010 return _lldb.SBTypeFilter_GetExpressionPathAtIndex(self, *args)
11011
11012 - def ReplaceExpressionPathAtIndex(self, *args):
11013 """ReplaceExpressionPathAtIndex(SBTypeFilter self, uint32_t i, str const * item) -> bool""" 11014 return _lldb.SBTypeFilter_ReplaceExpressionPathAtIndex(self, *args)
11015
11016 - def AppendExpressionPath(self, *args):
11017 """AppendExpressionPath(SBTypeFilter self, str const * item)""" 11018 return _lldb.SBTypeFilter_AppendExpressionPath(self, *args)
11019
11020 - def Clear(self):
11021 """Clear(SBTypeFilter self)""" 11022 return _lldb.SBTypeFilter_Clear(self)
11023
11024 - def GetOptions(self):
11025 """GetOptions(SBTypeFilter self) -> uint32_t""" 11026 return _lldb.SBTypeFilter_GetOptions(self)
11027
11028 - def SetOptions(self, *args):
11029 """SetOptions(SBTypeFilter self, uint32_t arg2)""" 11030 return _lldb.SBTypeFilter_SetOptions(self, *args)
11031
11032 - def GetDescription(self, *args):
11033 """GetDescription(SBTypeFilter self, SBStream description, lldb::DescriptionLevel description_level) -> bool""" 11034 return _lldb.SBTypeFilter_GetDescription(self, *args)
11035
11036 - def __eq__(self, *args):
11037 """__eq__(SBTypeFilter self, SBTypeFilter rhs) -> bool""" 11038 return _lldb.SBTypeFilter___eq__(self, *args)
11039
11040 - def __ne__(self, *args):
11041 """__ne__(SBTypeFilter self, SBTypeFilter rhs) -> bool""" 11042 return _lldb.SBTypeFilter___ne__(self, *args)
11043 11044 __swig_getmethods__["options"] = GetOptions 11045 __swig_setmethods__["options"] = SetOptions 11046 if _newclass: options = property(GetOptions, SetOptions) 11047 11048 __swig_getmethods__["count"] = GetNumberOfExpressionPaths 11049 if _newclass: count = property(GetNumberOfExpressionPaths, None) 11050
11051 - def __str__(self):
11052 """__str__(SBTypeFilter self) -> PyObject *""" 11053 return _lldb.SBTypeFilter___str__(self)
11054
11055 - def __eq__(self, rhs):
11056 if not isinstance(rhs, type(self)): 11057 return False 11058 11059 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
11060
11061 - def __ne__(self, rhs):
11062 if not isinstance(rhs, type(self)): 11063 return True 11064 11065 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
11066 11067 SBTypeFilter_swigregister = _lldb.SBTypeFilter_swigregister 11068 SBTypeFilter_swigregister(SBTypeFilter)
11069 11070 -class SBTypeFormat(_object):
11071 """ 11072 Represents a format that can be associated to one or more types. 11073 11074 """ 11075 __swig_setmethods__ = {} 11076 __setattr__ = lambda self, name, value: _swig_setattr(self, SBTypeFormat, name, value) 11077 __swig_getmethods__ = {} 11078 __getattr__ = lambda self, name: _swig_getattr(self, SBTypeFormat, name) 11079 __repr__ = _swig_repr
11080 - def __init__(self, *args):
11081 """ 11082 __init__(lldb::SBTypeFormat self) -> SBTypeFormat 11083 __init__(lldb::SBTypeFormat self, lldb::Format format, uint32_t options=0) -> SBTypeFormat 11084 __init__(lldb::SBTypeFormat self, lldb::Format format) -> SBTypeFormat 11085 __init__(lldb::SBTypeFormat self, str const * type, uint32_t options=0) -> SBTypeFormat 11086 __init__(lldb::SBTypeFormat self, str const * type) -> SBTypeFormat 11087 __init__(lldb::SBTypeFormat self, SBTypeFormat rhs) -> SBTypeFormat 11088 """ 11089 this = _lldb.new_SBTypeFormat(*args) 11090 try: self.this.append(this) 11091 except: self.this = this
11092 __swig_destroy__ = _lldb.delete_SBTypeFormat 11093 __del__ = lambda self : None;
11094 - def __nonzero__(self): return self.IsValid()
11095 - def IsValid(self):
11096 """IsValid(SBTypeFormat self) -> bool""" 11097 return _lldb.SBTypeFormat_IsValid(self)
11098
11099 - def IsEqualTo(self, *args):
11100 """IsEqualTo(SBTypeFormat self, SBTypeFormat rhs) -> bool""" 11101 return _lldb.SBTypeFormat_IsEqualTo(self, *args)
11102
11103 - def GetFormat(self):
11104 """GetFormat(SBTypeFormat self) -> lldb::Format""" 11105 return _lldb.SBTypeFormat_GetFormat(self)
11106
11107 - def GetTypeName(self):
11108 """GetTypeName(SBTypeFormat self) -> str const *""" 11109 return _lldb.SBTypeFormat_GetTypeName(self)
11110
11111 - def GetOptions(self):
11112 """GetOptions(SBTypeFormat self) -> uint32_t""" 11113 return _lldb.SBTypeFormat_GetOptions(self)
11114
11115 - def SetFormat(self, *args):
11116 """SetFormat(SBTypeFormat self, lldb::Format arg2)""" 11117 return _lldb.SBTypeFormat_SetFormat(self, *args)
11118
11119 - def SetTypeName(self, *args):
11120 """SetTypeName(SBTypeFormat self, str const * arg2)""" 11121 return _lldb.SBTypeFormat_SetTypeName(self, *args)
11122
11123 - def SetOptions(self, *args):
11124 """SetOptions(SBTypeFormat self, uint32_t arg2)""" 11125 return _lldb.SBTypeFormat_SetOptions(self, *args)
11126
11127 - def GetDescription(self, *args):
11128 """GetDescription(SBTypeFormat self, SBStream description, lldb::DescriptionLevel description_level) -> bool""" 11129 return _lldb.SBTypeFormat_GetDescription(self, *args)
11130
11131 - def __eq__(self, *args):
11132 """__eq__(SBTypeFormat self, SBTypeFormat rhs) -> bool""" 11133 return _lldb.SBTypeFormat___eq__(self, *args)
11134
11135 - def __ne__(self, *args):
11136 """__ne__(SBTypeFormat self, SBTypeFormat rhs) -> bool""" 11137 return _lldb.SBTypeFormat___ne__(self, *args)
11138 11139 __swig_getmethods__["format"] = GetFormat 11140 __swig_setmethods__["format"] = SetFormat 11141 if _newclass: format = property(GetFormat, SetFormat) 11142 11143 __swig_getmethods__["options"] = GetOptions 11144 __swig_setmethods__["options"] = SetOptions 11145 if _newclass: options = property(GetOptions, SetOptions) 11146
11147 - def __str__(self):
11148 """__str__(SBTypeFormat self) -> PyObject *""" 11149 return _lldb.SBTypeFormat___str__(self)
11150 11151 SBTypeFormat_swigregister = _lldb.SBTypeFormat_swigregister 11152 SBTypeFormat_swigregister(SBTypeFormat)
11153 11154 -class SBTypeNameSpecifier(_object):
11155 """ 11156 Represents a general way to provide a type name to LLDB APIs. 11157 11158 """ 11159 __swig_setmethods__ = {} 11160 __setattr__ = lambda self, name, value: _swig_setattr(self, SBTypeNameSpecifier, name, value) 11161 __swig_getmethods__ = {} 11162 __getattr__ = lambda self, name: _swig_getattr(self, SBTypeNameSpecifier, name) 11163 __repr__ = _swig_repr
11164 - def __init__(self, *args):
11165 """ 11166 __init__(lldb::SBTypeNameSpecifier self) -> SBTypeNameSpecifier 11167 __init__(lldb::SBTypeNameSpecifier self, str const * name, bool is_regex=False) -> SBTypeNameSpecifier 11168 __init__(lldb::SBTypeNameSpecifier self, str const * name) -> SBTypeNameSpecifier 11169 __init__(lldb::SBTypeNameSpecifier self, SBType type) -> SBTypeNameSpecifier 11170 __init__(lldb::SBTypeNameSpecifier self, SBTypeNameSpecifier rhs) -> SBTypeNameSpecifier 11171 """ 11172 this = _lldb.new_SBTypeNameSpecifier(*args) 11173 try: self.this.append(this) 11174 except: self.this = this
11175 __swig_destroy__ = _lldb.delete_SBTypeNameSpecifier 11176 __del__ = lambda self : None;
11177 - def __nonzero__(self): return self.IsValid()
11178 - def IsValid(self):
11179 """IsValid(SBTypeNameSpecifier self) -> bool""" 11180 return _lldb.SBTypeNameSpecifier_IsValid(self)
11181
11182 - def IsEqualTo(self, *args):
11183 """IsEqualTo(SBTypeNameSpecifier self, SBTypeNameSpecifier rhs) -> bool""" 11184 return _lldb.SBTypeNameSpecifier_IsEqualTo(self, *args)
11185
11186 - def GetName(self):
11187 """GetName(SBTypeNameSpecifier self) -> str const *""" 11188 return _lldb.SBTypeNameSpecifier_GetName(self)
11189
11190 - def GetType(self):
11191 """GetType(SBTypeNameSpecifier self) -> SBType""" 11192 return _lldb.SBTypeNameSpecifier_GetType(self)
11193
11194 - def IsRegex(self):
11195 """IsRegex(SBTypeNameSpecifier self) -> bool""" 11196 return _lldb.SBTypeNameSpecifier_IsRegex(self)
11197
11198 - def GetDescription(self, *args):
11199 """GetDescription(SBTypeNameSpecifier self, SBStream description, lldb::DescriptionLevel description_level) -> bool""" 11200 return _lldb.SBTypeNameSpecifier_GetDescription(self, *args)
11201
11202 - def __eq__(self, *args):
11203 """__eq__(SBTypeNameSpecifier self, SBTypeNameSpecifier rhs) -> bool""" 11204 return _lldb.SBTypeNameSpecifier___eq__(self, *args)
11205
11206 - def __ne__(self, *args):
11207 """__ne__(SBTypeNameSpecifier self, SBTypeNameSpecifier rhs) -> bool""" 11208 return _lldb.SBTypeNameSpecifier___ne__(self, *args)
11209 11210 __swig_getmethods__["name"] = GetName 11211 if _newclass: name = property(GetName, None) 11212 11213 __swig_getmethods__["is_regex"] = IsRegex 11214 if _newclass: is_regex = property(IsRegex, None) 11215
11216 - def __str__(self):
11217 """__str__(SBTypeNameSpecifier self) -> PyObject *""" 11218 return _lldb.SBTypeNameSpecifier___str__(self)
11219
11220 - def __eq__(self, rhs):
11221 if not isinstance(rhs, type(self)): 11222 return False 11223 11224 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
11225
11226 - def __ne__(self, rhs):
11227 if not isinstance(rhs, type(self)): 11228 return True 11229 11230 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
11231 11232 SBTypeNameSpecifier_swigregister = _lldb.SBTypeNameSpecifier_swigregister 11233 SBTypeNameSpecifier_swigregister(SBTypeNameSpecifier)
11234 11235 -class SBTypeSummaryOptions(_object):
11236 """Proxy of C++ lldb::SBTypeSummaryOptions class""" 11237 __swig_setmethods__ = {} 11238 __setattr__ = lambda self, name, value: _swig_setattr(self, SBTypeSummaryOptions, name, value) 11239 __swig_getmethods__ = {} 11240 __getattr__ = lambda self, name: _swig_getattr(self, SBTypeSummaryOptions, name) 11241 __repr__ = _swig_repr
11242 - def __init__(self, *args):
11243 """ 11244 __init__(lldb::SBTypeSummaryOptions self) -> SBTypeSummaryOptions 11245 __init__(lldb::SBTypeSummaryOptions self, SBTypeSummaryOptions rhs) -> SBTypeSummaryOptions 11246 """ 11247 this = _lldb.new_SBTypeSummaryOptions(*args) 11248 try: self.this.append(this) 11249 except: self.this = this
11250 __swig_destroy__ = _lldb.delete_SBTypeSummaryOptions 11251 __del__ = lambda self : None;
11252 - def __nonzero__(self): return self.IsValid()
11253 - def IsValid(self):
11254 """IsValid(SBTypeSummaryOptions self) -> bool""" 11255 return _lldb.SBTypeSummaryOptions_IsValid(self)
11256
11257 - def GetLanguage(self):
11258 """GetLanguage(SBTypeSummaryOptions self) -> lldb::LanguageType""" 11259 return _lldb.SBTypeSummaryOptions_GetLanguage(self)
11260
11261 - def GetCapping(self):
11262 """GetCapping(SBTypeSummaryOptions self) -> lldb::TypeSummaryCapping""" 11263 return _lldb.SBTypeSummaryOptions_GetCapping(self)
11264
11265 - def SetLanguage(self, *args):
11266 """SetLanguage(SBTypeSummaryOptions self, lldb::LanguageType arg2)""" 11267 return _lldb.SBTypeSummaryOptions_SetLanguage(self, *args)
11268
11269 - def SetCapping(self, *args):
11270 """SetCapping(SBTypeSummaryOptions self, lldb::TypeSummaryCapping arg2)""" 11271 return _lldb.SBTypeSummaryOptions_SetCapping(self, *args)
11272 11273 SBTypeSummaryOptions_swigregister = _lldb.SBTypeSummaryOptions_swigregister 11274 SBTypeSummaryOptions_swigregister(SBTypeSummaryOptions)
11275 11276 -class SBTypeSummary(_object):
11277 """ 11278 Represents a summary that can be associated to one or more types. 11279 11280 """ 11281 __swig_setmethods__ = {} 11282 __setattr__ = lambda self, name, value: _swig_setattr(self, SBTypeSummary, name, value) 11283 __swig_getmethods__ = {} 11284 __getattr__ = lambda self, name: _swig_getattr(self, SBTypeSummary, name) 11285 __repr__ = _swig_repr
11286 - def CreateWithSummaryString(*args):
11287 """ 11288 CreateWithSummaryString(str const * data, uint32_t options=0) -> SBTypeSummary 11289 CreateWithSummaryString(str const * data) -> SBTypeSummary 11290 """ 11291 return _lldb.SBTypeSummary_CreateWithSummaryString(*args)
11292 11293 if _newclass:CreateWithSummaryString = staticmethod(CreateWithSummaryString) 11294 __swig_getmethods__["CreateWithSummaryString"] = lambda x: CreateWithSummaryString
11295 - def CreateWithFunctionName(*args):
11296 """ 11297 CreateWithFunctionName(str const * data, uint32_t options=0) -> SBTypeSummary 11298 CreateWithFunctionName(str const * data) -> SBTypeSummary 11299 """ 11300 return _lldb.SBTypeSummary_CreateWithFunctionName(*args)
11301 11302 if _newclass:CreateWithFunctionName = staticmethod(CreateWithFunctionName) 11303 __swig_getmethods__["CreateWithFunctionName"] = lambda x: CreateWithFunctionName
11304 - def CreateWithScriptCode(*args):
11305 """ 11306 CreateWithScriptCode(str const * data, uint32_t options=0) -> SBTypeSummary 11307 CreateWithScriptCode(str const * data) -> SBTypeSummary 11308 """ 11309 return _lldb.SBTypeSummary_CreateWithScriptCode(*args)
11310 11311 if _newclass:CreateWithScriptCode = staticmethod(CreateWithScriptCode) 11312 __swig_getmethods__["CreateWithScriptCode"] = lambda x: CreateWithScriptCode
11313 - def __init__(self, *args):
11314 """ 11315 __init__(lldb::SBTypeSummary self) -> SBTypeSummary 11316 __init__(lldb::SBTypeSummary self, SBTypeSummary rhs) -> SBTypeSummary 11317 """ 11318 this = _lldb.new_SBTypeSummary(*args) 11319 try: self.this.append(this) 11320 except: self.this = this
11321 __swig_destroy__ = _lldb.delete_SBTypeSummary 11322 __del__ = lambda self : None;
11323 - def __nonzero__(self): return self.IsValid()
11324 - def IsValid(self):
11325 """IsValid(SBTypeSummary self) -> bool""" 11326 return _lldb.SBTypeSummary_IsValid(self)
11327
11328 - def IsEqualTo(self, *args):
11329 """IsEqualTo(SBTypeSummary self, SBTypeSummary rhs) -> bool""" 11330 return _lldb.SBTypeSummary_IsEqualTo(self, *args)
11331
11332 - def IsFunctionCode(self):
11333 """IsFunctionCode(SBTypeSummary self) -> bool""" 11334 return _lldb.SBTypeSummary_IsFunctionCode(self)
11335
11336 - def IsFunctionName(self):
11337 """IsFunctionName(SBTypeSummary self) -> bool""" 11338 return _lldb.SBTypeSummary_IsFunctionName(self)
11339
11340 - def IsSummaryString(self):
11341 """IsSummaryString(SBTypeSummary self) -> bool""" 11342 return _lldb.SBTypeSummary_IsSummaryString(self)
11343
11344 - def GetData(self):
11345 """GetData(SBTypeSummary self) -> str const *""" 11346 return _lldb.SBTypeSummary_GetData(self)
11347
11348 - def SetSummaryString(self, *args):
11349 """SetSummaryString(SBTypeSummary self, str const * data)""" 11350 return _lldb.SBTypeSummary_SetSummaryString(self, *args)
11351
11352 - def SetFunctionName(self, *args):
11353 """SetFunctionName(SBTypeSummary self, str const * data)""" 11354 return _lldb.SBTypeSummary_SetFunctionName(self, *args)
11355
11356 - def SetFunctionCode(self, *args):
11357 """SetFunctionCode(SBTypeSummary self, str const * data)""" 11358 return _lldb.SBTypeSummary_SetFunctionCode(self, *args)
11359
11360 - def GetOptions(self):
11361 """GetOptions(SBTypeSummary self) -> uint32_t""" 11362 return _lldb.SBTypeSummary_GetOptions(self)
11363
11364 - def SetOptions(self, *args):
11365 """SetOptions(SBTypeSummary self, uint32_t arg2)""" 11366 return _lldb.SBTypeSummary_SetOptions(self, *args)
11367
11368 - def GetDescription(self, *args):
11369 """GetDescription(SBTypeSummary self, SBStream description, lldb::DescriptionLevel description_level) -> bool""" 11370 return _lldb.SBTypeSummary_GetDescription(self, *args)
11371
11372 - def __eq__(self, *args):
11373 """__eq__(SBTypeSummary self, SBTypeSummary rhs) -> bool""" 11374 return _lldb.SBTypeSummary___eq__(self, *args)
11375
11376 - def __ne__(self, *args):
11377 """__ne__(SBTypeSummary self, SBTypeSummary rhs) -> bool""" 11378 return _lldb.SBTypeSummary___ne__(self, *args)
11379 11380 __swig_getmethods__["options"] = GetOptions 11381 __swig_setmethods__["options"] = SetOptions 11382 if _newclass: options = property(GetOptions, SetOptions) 11383 11384 __swig_getmethods__["is_summary_string"] = IsSummaryString 11385 if _newclass: is_summary_string = property(IsSummaryString, None) 11386 11387 __swig_getmethods__["is_function_name"] = IsFunctionName 11388 if _newclass: is_function_name = property(IsFunctionName, None) 11389 11390 __swig_getmethods__["is_function_name"] = IsFunctionCode 11391 if _newclass: is_function_name = property(IsFunctionCode, None) 11392 11393 __swig_getmethods__["summary_data"] = GetData 11394 if _newclass: summary_data = property(GetData, None) 11395
11396 - def __str__(self):
11397 """__str__(SBTypeSummary self) -> PyObject *""" 11398 return _lldb.SBTypeSummary___str__(self)
11399
11400 - def __eq__(self, rhs):
11401 if not isinstance(rhs, type(self)): 11402 return False 11403 11404 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
11405
11406 - def __ne__(self, rhs):
11407 if not isinstance(rhs, type(self)): 11408 return True 11409 11410 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
11411 11412 SBTypeSummary_swigregister = _lldb.SBTypeSummary_swigregister 11413 SBTypeSummary_swigregister(SBTypeSummary)
11414 11415 -def SBTypeSummary_CreateWithSummaryString(*args):
11416 """ 11417 CreateWithSummaryString(char const * data, uint32_t options=0) -> SBTypeSummary 11418 SBTypeSummary_CreateWithSummaryString(char const * data) -> SBTypeSummary 11419 """ 11420 return _lldb.SBTypeSummary_CreateWithSummaryString(*args)
11421
11422 -def SBTypeSummary_CreateWithFunctionName(*args):
11423 """ 11424 CreateWithFunctionName(char const * data, uint32_t options=0) -> SBTypeSummary 11425 SBTypeSummary_CreateWithFunctionName(char const * data) -> SBTypeSummary 11426 """ 11427 return _lldb.SBTypeSummary_CreateWithFunctionName(*args)
11428
11429 -def SBTypeSummary_CreateWithScriptCode(*args):
11430 """ 11431 CreateWithScriptCode(char const * data, uint32_t options=0) -> SBTypeSummary 11432 SBTypeSummary_CreateWithScriptCode(char const * data) -> SBTypeSummary 11433 """ 11434 return _lldb.SBTypeSummary_CreateWithScriptCode(*args)
11435
11436 -class SBTypeSynthetic(_object):
11437 """ 11438 Represents a summary that can be associated to one or more types. 11439 11440 """ 11441 __swig_setmethods__ = {} 11442 __setattr__ = lambda self, name, value: _swig_setattr(self, SBTypeSynthetic, name, value) 11443 __swig_getmethods__ = {} 11444 __getattr__ = lambda self, name: _swig_getattr(self, SBTypeSynthetic, name) 11445 __repr__ = _swig_repr
11446 - def CreateWithClassName(*args):
11447 """ 11448 CreateWithClassName(str const * data, uint32_t options=0) -> SBTypeSynthetic 11449 CreateWithClassName(str const * data) -> SBTypeSynthetic 11450 """ 11451 return _lldb.SBTypeSynthetic_CreateWithClassName(*args)
11452 11453 if _newclass:CreateWithClassName = staticmethod(CreateWithClassName) 11454 __swig_getmethods__["CreateWithClassName"] = lambda x: CreateWithClassName
11455 - def CreateWithScriptCode(*args):
11456 """ 11457 CreateWithScriptCode(str const * data, uint32_t options=0) -> SBTypeSynthetic 11458 CreateWithScriptCode(str const * data) -> SBTypeSynthetic 11459 """ 11460 return _lldb.SBTypeSynthetic_CreateWithScriptCode(*args)
11461 11462 if _newclass:CreateWithScriptCode = staticmethod(CreateWithScriptCode) 11463 __swig_getmethods__["CreateWithScriptCode"] = lambda x: CreateWithScriptCode
11464 - def __init__(self, *args):
11465 """ 11466 __init__(lldb::SBTypeSynthetic self) -> SBTypeSynthetic 11467 __init__(lldb::SBTypeSynthetic self, SBTypeSynthetic rhs) -> SBTypeSynthetic 11468 """ 11469 this = _lldb.new_SBTypeSynthetic(*args) 11470 try: self.this.append(this) 11471 except: self.this = this
11472 __swig_destroy__ = _lldb.delete_SBTypeSynthetic 11473 __del__ = lambda self : None;
11474 - def __nonzero__(self): return self.IsValid()
11475 - def IsValid(self):
11476 """IsValid(SBTypeSynthetic self) -> bool""" 11477 return _lldb.SBTypeSynthetic_IsValid(self)
11478
11479 - def IsEqualTo(self, *args):
11480 """IsEqualTo(SBTypeSynthetic self, SBTypeSynthetic rhs) -> bool""" 11481 return _lldb.SBTypeSynthetic_IsEqualTo(self, *args)
11482
11483 - def IsClassCode(self):
11484 """IsClassCode(SBTypeSynthetic self) -> bool""" 11485 return _lldb.SBTypeSynthetic_IsClassCode(self)
11486
11487 - def GetData(self):
11488 """GetData(SBTypeSynthetic self) -> str const *""" 11489 return _lldb.SBTypeSynthetic_GetData(self)
11490
11491 - def SetClassName(self, *args):
11492 """SetClassName(SBTypeSynthetic self, str const * data)""" 11493 return _lldb.SBTypeSynthetic_SetClassName(self, *args)
11494
11495 - def SetClassCode(self, *args):
11496 """SetClassCode(SBTypeSynthetic self, str const * data)""" 11497 return _lldb.SBTypeSynthetic_SetClassCode(self, *args)
11498
11499 - def GetOptions(self):
11500 """GetOptions(SBTypeSynthetic self) -> uint32_t""" 11501 return _lldb.SBTypeSynthetic_GetOptions(self)
11502
11503 - def SetOptions(self, *args):
11504 """SetOptions(SBTypeSynthetic self, uint32_t arg2)""" 11505 return _lldb.SBTypeSynthetic_SetOptions(self, *args)
11506
11507 - def GetDescription(self, *args):
11508 """GetDescription(SBTypeSynthetic self, SBStream description, lldb::DescriptionLevel description_level) -> bool""" 11509 return _lldb.SBTypeSynthetic_GetDescription(self, *args)
11510
11511 - def __eq__(self, *args):
11512 """__eq__(SBTypeSynthetic self, SBTypeSynthetic rhs) -> bool""" 11513 return _lldb.SBTypeSynthetic___eq__(self, *args)
11514
11515 - def __ne__(self, *args):
11516 """__ne__(SBTypeSynthetic self, SBTypeSynthetic rhs) -> bool""" 11517 return _lldb.SBTypeSynthetic___ne__(self, *args)
11518 11519 __swig_getmethods__["options"] = GetOptions 11520 __swig_setmethods__["options"] = SetOptions 11521 if _newclass: options = property(GetOptions, SetOptions) 11522 11523 __swig_getmethods__["contains_code"] = IsClassCode 11524 if _newclass: contains_code = property(IsClassCode, None) 11525 11526 __swig_getmethods__["synthetic_data"] = GetData 11527 if _newclass: synthetic_data = property(GetData, None) 11528
11529 - def __str__(self):
11530 """__str__(SBTypeSynthetic self) -> PyObject *""" 11531 return _lldb.SBTypeSynthetic___str__(self)
11532
11533 - def __eq__(self, rhs):
11534 if not isinstance(rhs, type(self)): 11535 return False 11536 11537 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
11538
11539 - def __ne__(self, rhs):
11540 if not isinstance(rhs, type(self)): 11541 return True 11542 11543 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
11544 11545 SBTypeSynthetic_swigregister = _lldb.SBTypeSynthetic_swigregister 11546 SBTypeSynthetic_swigregister(SBTypeSynthetic)
11547 11548 -def SBTypeSynthetic_CreateWithClassName(*args):
11549 """ 11550 CreateWithClassName(char const * data, uint32_t options=0) -> SBTypeSynthetic 11551 SBTypeSynthetic_CreateWithClassName(char const * data) -> SBTypeSynthetic 11552 """ 11553 return _lldb.SBTypeSynthetic_CreateWithClassName(*args)
11554
11555 -def SBTypeSynthetic_CreateWithScriptCode(*args):
11556 """ 11557 CreateWithScriptCode(char const * data, uint32_t options=0) -> SBTypeSynthetic 11558 SBTypeSynthetic_CreateWithScriptCode(char const * data) -> SBTypeSynthetic 11559 """ 11560 return _lldb.SBTypeSynthetic_CreateWithScriptCode(*args)
11561
11562 -class SBValue(_object):
11563 """ 11564 Represents the value of a variable, a register, or an expression. 11565 11566 SBValue supports iteration through its child, which in turn is represented 11567 as an SBValue. For example, we can get the general purpose registers of a 11568 frame as an SBValue, and iterate through all the registers, 11569 11570 registerSet = frame.GetRegisters() # Returns an SBValueList. 11571 for regs in registerSet: 11572 if 'general purpose registers' in regs.getName().lower(): 11573 GPRs = regs 11574 break 11575 11576 print('%s (number of children = %d):' % (GPRs.GetName(), GPRs.GetNumChildren())) 11577 for reg in GPRs: 11578 print('Name: ', reg.GetName(), ' Value: ', reg.GetValue()) 11579 11580 produces the output: 11581 11582 General Purpose Registers (number of children = 21): 11583 Name: rax Value: 0x0000000100000c5c 11584 Name: rbx Value: 0x0000000000000000 11585 Name: rcx Value: 0x00007fff5fbffec0 11586 Name: rdx Value: 0x00007fff5fbffeb8 11587 Name: rdi Value: 0x0000000000000001 11588 Name: rsi Value: 0x00007fff5fbffea8 11589 Name: rbp Value: 0x00007fff5fbffe80 11590 Name: rsp Value: 0x00007fff5fbffe60 11591 Name: r8 Value: 0x0000000008668682 11592 Name: r9 Value: 0x0000000000000000 11593 Name: r10 Value: 0x0000000000001200 11594 Name: r11 Value: 0x0000000000000206 11595 Name: r12 Value: 0x0000000000000000 11596 Name: r13 Value: 0x0000000000000000 11597 Name: r14 Value: 0x0000000000000000 11598 Name: r15 Value: 0x0000000000000000 11599 Name: rip Value: 0x0000000100000dae 11600 Name: rflags Value: 0x0000000000000206 11601 Name: cs Value: 0x0000000000000027 11602 Name: fs Value: 0x0000000000000010 11603 Name: gs Value: 0x0000000000000048 11604 11605 See also linked_list_iter() for another perspective on how to iterate through an 11606 SBValue instance which interprets the value object as representing the head of a 11607 linked list. 11608 """ 11609 __swig_setmethods__ = {} 11610 __setattr__ = lambda self, name, value: _swig_setattr(self, SBValue, name, value) 11611 __swig_getmethods__ = {} 11612 __getattr__ = lambda self, name: _swig_getattr(self, SBValue, name) 11613 __repr__ = _swig_repr
11614 - def __iter__(self): return lldb_iter(self, 'GetNumChildren', 'GetChildAtIndex')
11615 - def __len__(self): return self.GetNumChildren()
11616
11617 - def __eol_test__(val):
11618 """Default function for end of list test takes an SBValue object. 11619 11620 Return True if val is invalid or it corresponds to a null pointer. 11621 Otherwise, return False. 11622 """ 11623 if not val or val.GetValueAsUnsigned() == 0: 11624 return True 11625 else: 11626 return False
11627 11628 # ================================================== 11629 # Iterator for lldb.SBValue treated as a linked list 11630 # ==================================================
11631 - def linked_list_iter(self, next_item_name, end_of_list_test=__eol_test__):
11632 """Generator adaptor to support iteration for SBValue as a linked list. 11633 11634 linked_list_iter() is a special purpose iterator to treat the SBValue as 11635 the head of a list data structure, where you specify the child member 11636 name which points to the next item on the list and you specify the 11637 end-of-list test function which takes an SBValue for an item and returns 11638 True if EOL is reached and False if not. 11639 11640 linked_list_iter() also detects infinite loop and bails out early. 11641 11642 The end_of_list_test arg, if omitted, defaults to the __eol_test__ 11643 function above. 11644 11645 For example, 11646 11647 # Get Frame #0. 11648 ... 11649 11650 # Get variable 'task_head'. 11651 task_head = frame0.FindVariable('task_head') 11652 ... 11653 11654 for t in task_head.linked_list_iter('next'): 11655 print t 11656 """ 11657 if end_of_list_test(self): 11658 return 11659 item = self 11660 visited = set() 11661 try: 11662 while not end_of_list_test(item) and not item.GetValueAsUnsigned() in visited: 11663 visited.add(item.GetValueAsUnsigned()) 11664 yield item 11665 # Prepare for the next iteration. 11666 item = item.GetChildMemberWithName(next_item_name) 11667 except: 11668 # Exception occurred. Stop the generator. 11669 pass 11670 11671 return
11672
11673 - def __init__(self, *args):
11674 """ 11675 __init__(lldb::SBValue self) -> SBValue 11676 __init__(lldb::SBValue self, SBValue rhs) -> SBValue 11677 """ 11678 this = _lldb.new_SBValue(*args) 11679 try: self.this.append(this) 11680 except: self.this = this
11681 __swig_destroy__ = _lldb.delete_SBValue 11682 __del__ = lambda self : None;
11683 - def __nonzero__(self): return self.IsValid()
11684 - def IsValid(self):
11685 """IsValid(SBValue self) -> bool""" 11686 return _lldb.SBValue_IsValid(self)
11687
11688 - def Clear(self):
11689 """Clear(SBValue self)""" 11690 return _lldb.SBValue_Clear(self)
11691
11692 - def GetError(self):
11693 """GetError(SBValue self) -> SBError""" 11694 return _lldb.SBValue_GetError(self)
11695
11696 - def GetID(self):
11697 """GetID(SBValue self) -> lldb::user_id_t""" 11698 return _lldb.SBValue_GetID(self)
11699
11700 - def GetName(self):
11701 """GetName(SBValue self) -> str const *""" 11702 return _lldb.SBValue_GetName(self)
11703
11704 - def GetTypeName(self):
11705 """GetTypeName(SBValue self) -> str const *""" 11706 return _lldb.SBValue_GetTypeName(self)
11707
11708 - def GetDisplayTypeName(self):
11709 """GetDisplayTypeName(SBValue self) -> str const *""" 11710 return _lldb.SBValue_GetDisplayTypeName(self)
11711
11712 - def GetByteSize(self):
11713 """GetByteSize(SBValue self) -> size_t""" 11714 return _lldb.SBValue_GetByteSize(self)
11715
11716 - def IsInScope(self):
11717 """IsInScope(SBValue self) -> bool""" 11718 return _lldb.SBValue_IsInScope(self)
11719
11720 - def GetFormat(self):
11721 """GetFormat(SBValue self) -> lldb::Format""" 11722 return _lldb.SBValue_GetFormat(self)
11723
11724 - def SetFormat(self, *args):
11725 """SetFormat(SBValue self, lldb::Format format)""" 11726 return _lldb.SBValue_SetFormat(self, *args)
11727
11728 - def GetValue(self):
11729 """GetValue(SBValue self) -> str const *""" 11730 return _lldb.SBValue_GetValue(self)
11731
11732 - def GetValueAsSigned(self, *args):
11733 """ 11734 GetValueAsSigned(SBValue self, SBError error, int64_t fail_value=0) -> int64_t 11735 GetValueAsSigned(SBValue self, SBError error) -> int64_t 11736 GetValueAsSigned(SBValue self, int64_t fail_value=0) -> int64_t 11737 GetValueAsSigned(SBValue self) -> int64_t 11738 """ 11739 return _lldb.SBValue_GetValueAsSigned(self, *args)
11740
11741 - def GetValueAsUnsigned(self, *args):
11742 """ 11743 GetValueAsUnsigned(SBValue self, SBError error, uint64_t fail_value=0) -> uint64_t 11744 GetValueAsUnsigned(SBValue self, SBError error) -> uint64_t 11745 GetValueAsUnsigned(SBValue self, uint64_t fail_value=0) -> uint64_t 11746 GetValueAsUnsigned(SBValue self) -> uint64_t 11747 """ 11748 return _lldb.SBValue_GetValueAsUnsigned(self, *args)
11749
11750 - def GetValueType(self):
11751 """GetValueType(SBValue self) -> lldb::ValueType""" 11752 return _lldb.SBValue_GetValueType(self)
11753
11754 - def GetValueDidChange(self):
11755 """GetValueDidChange(SBValue self) -> bool""" 11756 return _lldb.SBValue_GetValueDidChange(self)
11757
11758 - def GetSummary(self, *args):
11759 """ 11760 GetSummary(SBValue self) -> str const 11761 GetSummary(SBValue self, SBStream stream, SBTypeSummaryOptions options) -> str const * 11762 """ 11763 return _lldb.SBValue_GetSummary(self, *args)
11764
11765 - def GetObjectDescription(self):
11766 """GetObjectDescription(SBValue self) -> str const *""" 11767 return _lldb.SBValue_GetObjectDescription(self)
11768
11769 - def GetTypeValidatorResult(self):
11770 """GetTypeValidatorResult(SBValue self) -> str const *""" 11771 return _lldb.SBValue_GetTypeValidatorResult(self)
11772
11773 - def GetDynamicValue(self, *args):
11774 """GetDynamicValue(SBValue self, lldb::DynamicValueType use_dynamic) -> SBValue""" 11775 return _lldb.SBValue_GetDynamicValue(self, *args)
11776
11777 - def GetStaticValue(self):
11778 """GetStaticValue(SBValue self) -> SBValue""" 11779 return _lldb.SBValue_GetStaticValue(self)
11780
11781 - def GetNonSyntheticValue(self):
11782 """GetNonSyntheticValue(SBValue self) -> SBValue""" 11783 return _lldb.SBValue_GetNonSyntheticValue(self)
11784
11785 - def GetPreferDynamicValue(self):
11786 """GetPreferDynamicValue(SBValue self) -> lldb::DynamicValueType""" 11787 return _lldb.SBValue_GetPreferDynamicValue(self)
11788
11789 - def SetPreferDynamicValue(self, *args):
11790 """SetPreferDynamicValue(SBValue self, lldb::DynamicValueType use_dynamic)""" 11791 return _lldb.SBValue_SetPreferDynamicValue(self, *args)
11792
11793 - def GetPreferSyntheticValue(self):
11794 """GetPreferSyntheticValue(SBValue self) -> bool""" 11795 return _lldb.SBValue_GetPreferSyntheticValue(self)
11796
11797 - def SetPreferSyntheticValue(self, *args):
11798 """SetPreferSyntheticValue(SBValue self, bool use_synthetic)""" 11799 return _lldb.SBValue_SetPreferSyntheticValue(self, *args)
11800
11801 - def IsDynamic(self):
11802 """IsDynamic(SBValue self) -> bool""" 11803 return _lldb.SBValue_IsDynamic(self)
11804
11805 - def IsSynthetic(self):
11806 """IsSynthetic(SBValue self) -> bool""" 11807 return _lldb.SBValue_IsSynthetic(self)
11808
11809 - def IsSyntheticChildrenGenerated(self):
11810 """IsSyntheticChildrenGenerated(SBValue self) -> bool""" 11811 return _lldb.SBValue_IsSyntheticChildrenGenerated(self)
11812
11813 - def SetSyntheticChildrenGenerated(self, *args):
11814 """SetSyntheticChildrenGenerated(SBValue self, bool arg2)""" 11815 return _lldb.SBValue_SetSyntheticChildrenGenerated(self, *args)
11816
11817 - def GetLocation(self):
11818 """GetLocation(SBValue self) -> str const *""" 11819 return _lldb.SBValue_GetLocation(self)
11820
11821 - def SetValueFromCString(self, *args):
11822 """ 11823 SetValueFromCString(SBValue self, str const * value_str) -> bool 11824 SetValueFromCString(SBValue self, str const * value_str, SBError error) -> bool 11825 """ 11826 return _lldb.SBValue_SetValueFromCString(self, *args)
11827
11828 - def GetTypeFormat(self):
11829 """GetTypeFormat(SBValue self) -> SBTypeFormat""" 11830 return _lldb.SBValue_GetTypeFormat(self)
11831
11832 - def GetTypeSummary(self):
11833 """GetTypeSummary(SBValue self) -> SBTypeSummary""" 11834 return _lldb.SBValue_GetTypeSummary(self)
11835
11836 - def GetTypeFilter(self):
11837 """GetTypeFilter(SBValue self) -> SBTypeFilter""" 11838 return _lldb.SBValue_GetTypeFilter(self)
11839
11840 - def GetTypeSynthetic(self):
11841 """GetTypeSynthetic(SBValue self) -> SBTypeSynthetic""" 11842 return _lldb.SBValue_GetTypeSynthetic(self)
11843
11844 - def GetChildAtIndex(self, *args):
11845 """ 11846 GetChildAtIndex(SBValue self, uint32_t idx) -> SBValue 11847 GetChildAtIndex(SBValue self, uint32_t idx, lldb::DynamicValueType use_dynamic, bool can_create_synthetic) -> SBValue 11848 11849 Get a child value by index from a value. 11850 11851 Structs, unions, classes, arrays and pointers have child 11852 values that can be access by index. 11853 11854 Structs and unions access child members using a zero based index 11855 for each child member. For 11856 11857 Classes reserve the first indexes for base classes that have 11858 members (empty base classes are omitted), and all members of the 11859 current class will then follow the base classes. 11860 11861 Pointers differ depending on what they point to. If the pointer 11862 points to a simple type, the child at index zero 11863 is the only child value available, unless synthetic_allowed 11864 is true, in which case the pointer will be used as an array 11865 and can create 'synthetic' child values using positive or 11866 negative indexes. If the pointer points to an aggregate type 11867 (an array, class, union, struct), then the pointee is 11868 transparently skipped and any children are going to be the indexes 11869 of the child values within the aggregate type. For example if 11870 we have a 'Point' type and we have a SBValue that contains a 11871 pointer to a 'Point' type, then the child at index zero will be 11872 the 'x' member, and the child at index 1 will be the 'y' member 11873 (the child at index zero won't be a 'Point' instance). 11874 11875 If you actually need an SBValue that represents the type pointed 11876 to by a SBValue for which GetType().IsPointeeType() returns true, 11877 regardless of the pointee type, you can do that with the SBValue.Dereference 11878 method (or the equivalent deref property). 11879 11880 Arrays have a preset number of children that can be accessed by 11881 index and will returns invalid child values for indexes that are 11882 out of bounds unless the synthetic_allowed is true. In this 11883 case the array can create 'synthetic' child values for indexes 11884 that aren't in the array bounds using positive or negative 11885 indexes. 11886 11887 @param[in] idx 11888 The index of the child value to get 11889 11890 @param[in] use_dynamic 11891 An enumeration that specifies whether to get dynamic values, 11892 and also if the target can be run to figure out the dynamic 11893 type of the child value. 11894 11895 @param[in] synthetic_allowed 11896 If true, then allow child values to be created by index 11897 for pointers and arrays for indexes that normally wouldn't 11898 be allowed. 11899 11900 @return 11901 A new SBValue object that represents the child member value. 11902 """ 11903 return _lldb.SBValue_GetChildAtIndex(self, *args)
11904
11905 - def CreateChildAtOffset(self, *args):
11906 """CreateChildAtOffset(SBValue self, str const * name, uint32_t offset, SBType type) -> SBValue""" 11907 return _lldb.SBValue_CreateChildAtOffset(self, *args)
11908
11909 - def Cast(self, *args):
11910 """Cast(SBValue self, SBType type) -> SBValue""" 11911 return _lldb.SBValue_Cast(self, *args)
11912
11913 - def CreateValueFromExpression(self, *args):
11914 """ 11915 CreateValueFromExpression(SBValue self, str const * name, str const * expression) -> SBValue 11916 CreateValueFromExpression(SBValue self, str const * name, str const * expression, SBExpressionOptions options) -> SBValue 11917 """ 11918 return _lldb.SBValue_CreateValueFromExpression(self, *args)
11919
11920 - def CreateValueFromAddress(self, *args):
11921 """CreateValueFromAddress(SBValue self, str const * name, lldb::addr_t address, SBType type) -> SBValue""" 11922 return _lldb.SBValue_CreateValueFromAddress(self, *args)
11923
11924 - def CreateValueFromData(self, *args):
11925 """CreateValueFromData(SBValue self, str const * name, SBData data, SBType type) -> SBValue""" 11926 return _lldb.SBValue_CreateValueFromData(self, *args)
11927
11928 - def GetType(self):
11929 """GetType(SBValue self) -> SBType""" 11930 return _lldb.SBValue_GetType(self)
11931
11932 - def GetIndexOfChildWithName(self, *args):
11933 """ 11934 GetIndexOfChildWithName(SBValue self, str const * name) -> uint32_t 11935 11936 Returns the child member index. 11937 11938 Matches children of this object only and will match base classes and 11939 member names if this is a clang typed object. 11940 11941 @param[in] name 11942 The name of the child value to get 11943 11944 @return 11945 An index to the child member value. 11946 """ 11947 return _lldb.SBValue_GetIndexOfChildWithName(self, *args)
11948
11949 - def GetChildMemberWithName(self, *args):
11950 """ 11951 GetChildMemberWithName(SBValue self, str const * name) -> SBValue 11952 GetChildMemberWithName(SBValue self, str const * name, lldb::DynamicValueType use_dynamic) -> SBValue 11953 11954 Returns the child member value. 11955 11956 Matches child members of this object and child members of any base 11957 classes. 11958 11959 @param[in] name 11960 The name of the child value to get 11961 11962 @param[in] use_dynamic 11963 An enumeration that specifies whether to get dynamic values, 11964 and also if the target can be run to figure out the dynamic 11965 type of the child value. 11966 11967 @return 11968 A new SBValue object that represents the child member value. 11969 """ 11970 return _lldb.SBValue_GetChildMemberWithName(self, *args)
11971
11972 - def GetValueForExpressionPath(self, *args):
11973 """ 11974 GetValueForExpressionPath(SBValue self, str const * expr_path) -> SBValue 11975 11976 Expands nested expressions like .a->b[0].c[1]->d. 11977 """ 11978 return _lldb.SBValue_GetValueForExpressionPath(self, *args)
11979
11980 - def GetDeclaration(self):
11981 """GetDeclaration(SBValue self) -> SBDeclaration""" 11982 return _lldb.SBValue_GetDeclaration(self)
11983
11984 - def MightHaveChildren(self):
11985 """MightHaveChildren(SBValue self) -> bool""" 11986 return _lldb.SBValue_MightHaveChildren(self)
11987
11988 - def IsRuntimeSupportValue(self):
11989 """IsRuntimeSupportValue(SBValue self) -> bool""" 11990 return _lldb.SBValue_IsRuntimeSupportValue(self)
11991
11992 - def GetNumChildren(self, *args):
11993 """ 11994 GetNumChildren(SBValue self) -> uint32_t 11995 GetNumChildren(SBValue self, uint32_t max) -> uint32_t 11996 """ 11997 return _lldb.SBValue_GetNumChildren(self, *args)
11998
11999 - def GetOpaqueType(self):
12000 """GetOpaqueType(SBValue self) -> void *""" 12001 return _lldb.SBValue_GetOpaqueType(self)
12002
12003 - def Dereference(self):
12004 """Dereference(SBValue self) -> SBValue""" 12005 return _lldb.SBValue_Dereference(self)
12006
12007 - def AddressOf(self):
12008 """AddressOf(SBValue self) -> SBValue""" 12009 return _lldb.SBValue_AddressOf(self)
12010
12011 - def TypeIsPointerType(self):
12012 """TypeIsPointerType(SBValue self) -> bool""" 12013 return _lldb.SBValue_TypeIsPointerType(self)
12014
12015 - def GetTarget(self):
12016 """GetTarget(SBValue self) -> SBTarget""" 12017 return _lldb.SBValue_GetTarget(self)
12018
12019 - def GetProcess(self):
12020 """GetProcess(SBValue self) -> SBProcess""" 12021 return _lldb.SBValue_GetProcess(self)
12022
12023 - def GetThread(self):
12024 """GetThread(SBValue self) -> SBThread""" 12025 return _lldb.SBValue_GetThread(self)
12026
12027 - def GetFrame(self):
12028 """GetFrame(SBValue self) -> SBFrame""" 12029 return _lldb.SBValue_GetFrame(self)
12030
12031 - def Watch(self, *args):
12032 """ 12033 Watch(SBValue self, bool resolve_location, bool read, bool write, SBError error) -> SBWatchpoint 12034 12035 Find and watch a variable. 12036 It returns an SBWatchpoint, which may be invalid. 12037 """ 12038 return _lldb.SBValue_Watch(self, *args)
12039
12040 - def WatchPointee(self, *args):
12041 """ 12042 WatchPointee(SBValue self, bool resolve_location, bool read, bool write, SBError error) -> SBWatchpoint 12043 12044 Find and watch the location pointed to by a variable. 12045 It returns an SBWatchpoint, which may be invalid. 12046 """ 12047 return _lldb.SBValue_WatchPointee(self, *args)
12048
12049 - def GetDescription(self, *args):
12050 """GetDescription(SBValue self, SBStream description) -> bool""" 12051 return _lldb.SBValue_GetDescription(self, *args)
12052
12053 - def GetPointeeData(self, item_idx=0, item_count=1):
12054 """ 12055 GetPointeeData(SBValue self, uint32_t item_idx=0, uint32_t item_count=1) -> SBData 12056 GetPointeeData(SBValue self, uint32_t item_idx=0) -> SBData 12057 GetPointeeData(SBValue self) -> SBData 12058 12059 Get an SBData wrapping what this SBValue points to. 12060 12061 This method will dereference the current SBValue, if its 12062 data type is a T* or T[], and extract item_count elements 12063 of type T from it, copying their contents in an SBData. 12064 12065 @param[in] item_idx 12066 The index of the first item to retrieve. For an array 12067 this is equivalent to array[item_idx], for a pointer 12068 to *(pointer + item_idx). In either case, the measurement 12069 unit for item_idx is the sizeof(T) rather than the byte 12070 12071 @param[in] item_count 12072 How many items should be copied into the output. By default 12073 only one item is copied, but more can be asked for. 12074 12075 @return 12076 An SBData with the contents of the copied items, on success. 12077 An empty SBData otherwise. 12078 """ 12079 return _lldb.SBValue_GetPointeeData(self, item_idx, item_count)
12080
12081 - def GetData(self):
12082 """ 12083 GetData(SBValue self) -> SBData 12084 12085 Get an SBData wrapping the contents of this SBValue. 12086 12087 This method will read the contents of this object in memory 12088 and copy them into an SBData for future use. 12089 12090 @return 12091 An SBData with the contents of this SBValue, on success. 12092 An empty SBData otherwise. 12093 """ 12094 return _lldb.SBValue_GetData(self)
12095
12096 - def SetData(self, *args):
12097 """SetData(SBValue self, SBData data, SBError error) -> bool""" 12098 return _lldb.SBValue_SetData(self, *args)
12099
12100 - def GetLoadAddress(self):
12101 """GetLoadAddress(SBValue self) -> lldb::addr_t""" 12102 return _lldb.SBValue_GetLoadAddress(self)
12103
12104 - def GetAddress(self):
12105 """GetAddress(SBValue self) -> SBAddress""" 12106 return _lldb.SBValue_GetAddress(self)
12107
12108 - def Persist(self):
12109 """Persist(SBValue self) -> SBValue""" 12110 return _lldb.SBValue_Persist(self)
12111
12112 - def GetExpressionPath(self, *args):
12113 """ 12114 GetExpressionPath(SBValue self, SBStream description) -> bool 12115 GetExpressionPath(SBValue self, SBStream description, bool qualify_cxx_base_classes) -> bool 12116 12117 Returns an expression path for this value. 12118 """ 12119 return _lldb.SBValue_GetExpressionPath(self, *args)
12120
12121 - def __get_dynamic__ (self):
12122 '''Helper function for the "SBValue.dynamic" property.''' 12123 return self.GetDynamicValue (eDynamicCanRunTarget)
12124 12125 __swig_getmethods__["name"] = GetName 12126 if _newclass: name = property(GetName, None, doc='''A read only property that returns the name of this value as a string.''') 12127 12128 __swig_getmethods__["type"] = GetType 12129 if _newclass: type = property(GetType, None, doc='''A read only property that returns a lldb.SBType object that represents the type for this value.''') 12130 12131 __swig_getmethods__["size"] = GetByteSize 12132 if _newclass: size = property(GetByteSize, None, doc='''A read only property that returns the size in bytes of this value.''') 12133 12134 __swig_getmethods__["is_in_scope"] = IsInScope 12135 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.''') 12136 12137 __swig_getmethods__["format"] = GetFormat 12138 __swig_setmethods__["format"] = SetFormat 12139 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".''') 12140 12141 __swig_getmethods__["value"] = GetValue 12142 __swig_setmethods__["value"] = SetValueFromCString 12143 if _newclass: value = property(GetValue, SetValueFromCString, doc='''A read/write property that gets/sets value from a string.''') 12144 12145 __swig_getmethods__["value_type"] = GetValueType 12146 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.).''') 12147 12148 __swig_getmethods__["changed"] = GetValueDidChange 12149 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.''') 12150 12151 __swig_getmethods__["data"] = GetData 12152 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.''') 12153 12154 __swig_getmethods__["load_addr"] = GetLoadAddress 12155 if _newclass: load_addr = property(GetLoadAddress, None, doc='''A read only property that returns the load address of this value as an integer.''') 12156 12157 __swig_getmethods__["addr"] = GetAddress 12158 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.''') 12159 12160 __swig_getmethods__["deref"] = Dereference 12161 if _newclass: deref = property(Dereference, None, doc='''A read only property that returns an lldb.SBValue that is created by dereferencing this value.''') 12162 12163 __swig_getmethods__["address_of"] = AddressOf 12164 if _newclass: address_of = property(AddressOf, None, doc='''A read only property that returns an lldb.SBValue that represents the address-of this value.''') 12165 12166 __swig_getmethods__["error"] = GetError 12167 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.''') 12168 12169 __swig_getmethods__["summary"] = GetSummary 12170 if _newclass: summary = property(GetSummary, None, doc='''A read only property that returns the summary for this value as a string''') 12171 12172 __swig_getmethods__["description"] = GetObjectDescription 12173 if _newclass: description = property(GetObjectDescription, None, doc='''A read only property that returns the language-specific description of this value as a string''') 12174 12175 __swig_getmethods__["dynamic"] = __get_dynamic__ 12176 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.''') 12177 12178 __swig_getmethods__["location"] = GetLocation 12179 if _newclass: location = property(GetLocation, None, doc='''A read only property that returns the location of this value as a string.''') 12180 12181 __swig_getmethods__["target"] = GetTarget 12182 if _newclass: target = property(GetTarget, None, doc='''A read only property that returns the lldb.SBTarget that this value is associated with.''') 12183 12184 __swig_getmethods__["process"] = GetProcess 12185 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.''') 12186 12187 __swig_getmethods__["thread"] = GetThread 12188 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.''') 12189 12190 __swig_getmethods__["frame"] = GetFrame 12191 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.''') 12192 12193 __swig_getmethods__["num_children"] = GetNumChildren 12194 if _newclass: num_children = property(GetNumChildren, None, doc='''A read only property that returns the number of child lldb.SBValues that this value has.''') 12195 12196 __swig_getmethods__["unsigned"] = GetValueAsUnsigned 12197 if _newclass: unsigned = property(GetValueAsUnsigned, None, doc='''A read only property that returns the value of this SBValue as an usigned integer.''') 12198 12199 __swig_getmethods__["signed"] = GetValueAsSigned 12200 if _newclass: signed = property(GetValueAsSigned, None, doc='''A read only property that returns the value of this SBValue as a signed integer.''') 12201
12202 - def get_expr_path(self):
12203 s = SBStream() 12204 self.GetExpressionPath (s) 12205 return s.GetData()
12206 12207 __swig_getmethods__["path"] = get_expr_path 12208 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.''') 12209
12210 - def synthetic_child_from_expression(self, name, expr, options=None):
12211 if options is None: options = lldb.SBExpressionOptions() 12212 child = self.CreateValueFromExpression(name, expr, options) 12213 child.SetSyntheticChildrenGenerated(True) 12214 return child
12215
12216 - def synthetic_child_from_data(self, name, data, type):
12217 child = self.CreateValueFromData(name, data, type) 12218 child.SetSyntheticChildrenGenerated(True) 12219 return child
12220
12221 - def synthetic_child_from_address(self, name, addr, type):
12222 child = self.CreateValueFromAddress(name, addr, type) 12223 child.SetSyntheticChildrenGenerated(True) 12224 return child
12225 12226
12227 - def __str__(self):
12228 """__str__(SBValue self) -> PyObject *""" 12229 return _lldb.SBValue___str__(self)
12230 12231 SBValue_swigregister = _lldb.SBValue_swigregister 12232 SBValue_swigregister(SBValue)
12233 12234 -class SBValueList(_object):
12235 """ 12236 Represents a collection of SBValues. Both SBFrame's GetVariables() and 12237 GetRegisters() return a SBValueList. 12238 12239 SBValueList supports SBValue iteration. For example (from test/lldbutil.py), 12240 12241 def get_registers(frame, kind): 12242 '''Returns the registers given the frame and the kind of registers desired. 12243 12244 Returns None if there's no such kind. 12245 ''' 12246 registerSet = frame.GetRegisters() # Return type of SBValueList. 12247 for value in registerSet: 12248 if kind.lower() in value.GetName().lower(): 12249 return value 12250 12251 return None 12252 12253 def get_GPRs(frame): 12254 '''Returns the general purpose registers of the frame as an SBValue. 12255 12256 The returned SBValue object is iterable. An example: 12257 ... 12258 from lldbutil import get_GPRs 12259 regs = get_GPRs(frame) 12260 for reg in regs: 12261 print('%s => %s' % (reg.GetName(), reg.GetValue())) 12262 ... 12263 ''' 12264 return get_registers(frame, 'general purpose') 12265 12266 def get_FPRs(frame): 12267 '''Returns the floating point registers of the frame as an SBValue. 12268 12269 The returned SBValue object is iterable. An example: 12270 ... 12271 from lldbutil import get_FPRs 12272 regs = get_FPRs(frame) 12273 for reg in regs: 12274 print('%s => %s' % (reg.GetName(), reg.GetValue())) 12275 ... 12276 ''' 12277 return get_registers(frame, 'floating point') 12278 12279 def get_ESRs(frame): 12280 '''Returns the exception state registers of the frame as an SBValue. 12281 12282 The returned SBValue object is iterable. An example: 12283 ... 12284 from lldbutil import get_ESRs 12285 regs = get_ESRs(frame) 12286 for reg in regs: 12287 print('%s => %s' % (reg.GetName(), reg.GetValue())) 12288 ... 12289 ''' 12290 return get_registers(frame, 'exception state') 12291 """ 12292 __swig_setmethods__ = {} 12293 __setattr__ = lambda self, name, value: _swig_setattr(self, SBValueList, name, value) 12294 __swig_getmethods__ = {} 12295 __getattr__ = lambda self, name: _swig_getattr(self, SBValueList, name) 12296 __repr__ = _swig_repr
12297 - def __iter__(self): return lldb_iter(self, 'GetSize', 'GetValueAtIndex')
12298 - def __len__(self): return self.GetSize()
12299 - def __init__(self, *args):
12300 """ 12301 __init__(lldb::SBValueList self) -> SBValueList 12302 __init__(lldb::SBValueList self, SBValueList rhs) -> SBValueList 12303 """ 12304 this = _lldb.new_SBValueList(*args) 12305 try: self.this.append(this) 12306 except: self.this = this
12307 __swig_destroy__ = _lldb.delete_SBValueList 12308 __del__ = lambda self : None;
12309 - def __nonzero__(self): return self.IsValid()
12310 - def IsValid(self):
12311 """IsValid(SBValueList self) -> bool""" 12312 return _lldb.SBValueList_IsValid(self)
12313
12314 - def Clear(self):
12315 """Clear(SBValueList self)""" 12316 return _lldb.SBValueList_Clear(self)
12317
12318 - def Append(self, *args):
12319 """ 12320 Append(SBValueList self, SBValue val_obj) 12321 Append(SBValueList self, SBValueList value_list) 12322 """ 12323 return _lldb.SBValueList_Append(self, *args)
12324
12325 - def GetSize(self):
12326 """GetSize(SBValueList self) -> uint32_t""" 12327 return _lldb.SBValueList_GetSize(self)
12328
12329 - def GetValueAtIndex(self, *args):
12330 """GetValueAtIndex(SBValueList self, uint32_t idx) -> SBValue""" 12331 return _lldb.SBValueList_GetValueAtIndex(self, *args)
12332
12333 - def FindValueObjectByUID(self, *args):
12334 """FindValueObjectByUID(SBValueList self, lldb::user_id_t uid) -> SBValue""" 12335 return _lldb.SBValueList_FindValueObjectByUID(self, *args)
12336
12337 - def GetFirstValueByName(self, *args):
12338 """GetFirstValueByName(SBValueList self, str const * name) -> SBValue""" 12339 return _lldb.SBValueList_GetFirstValueByName(self, *args)
12340
12341 - def __len__(self):
12342 return int(self.GetSize())
12343
12344 - def __getitem__(self, key):
12345 count = len(self) 12346 #------------------------------------------------------------ 12347 # Access with "int" to get Nth item in the list 12348 #------------------------------------------------------------ 12349 if type(key) is int: 12350 if key < count: 12351 return self.GetValueAtIndex(key) 12352 #------------------------------------------------------------ 12353 # Access with "str" to get values by name 12354 #------------------------------------------------------------ 12355 elif type(key) is str: 12356 matches = [] 12357 for idx in range(count): 12358 value = self.GetValueAtIndex(idx) 12359 if value.name == key: 12360 matches.append(value) 12361 return matches 12362 #------------------------------------------------------------ 12363 # Match with regex 12364 #------------------------------------------------------------ 12365 elif isinstance(key, type(re.compile('.'))): 12366 matches = [] 12367 for idx in range(count): 12368 value = self.GetValueAtIndex(idx) 12369 re_match = key.search(value.name) 12370 if re_match: 12371 matches.append(value) 12372 return matches
12373 12374
12375 - def __str__(self):
12376 """__str__(SBValueList self) -> PyObject *""" 12377 return _lldb.SBValueList___str__(self)
12378 12379 SBValueList_swigregister = _lldb.SBValueList_swigregister 12380 SBValueList_swigregister(SBValueList)
12381 12382 -class SBVariablesOptions(_object):
12383 """Proxy of C++ lldb::SBVariablesOptions class""" 12384 __swig_setmethods__ = {} 12385 __setattr__ = lambda self, name, value: _swig_setattr(self, SBVariablesOptions, name, value) 12386 __swig_getmethods__ = {} 12387 __getattr__ = lambda self, name: _swig_getattr(self, SBVariablesOptions, name) 12388 __repr__ = _swig_repr
12389 - def __init__(self, *args):
12390 """ 12391 __init__(lldb::SBVariablesOptions self) -> SBVariablesOptions 12392 __init__(lldb::SBVariablesOptions self, SBVariablesOptions options) -> SBVariablesOptions 12393 """ 12394 this = _lldb.new_SBVariablesOptions(*args) 12395 try: self.this.append(this) 12396 except: self.this = this
12397 __swig_destroy__ = _lldb.delete_SBVariablesOptions 12398 __del__ = lambda self : None;
12399 - def __nonzero__(self): return self.IsValid()
12400 - def IsValid(self):
12401 """IsValid(SBVariablesOptions self) -> bool""" 12402 return _lldb.SBVariablesOptions_IsValid(self)
12403
12404 - def GetIncludeArguments(self):
12405 """GetIncludeArguments(SBVariablesOptions self) -> bool""" 12406 return _lldb.SBVariablesOptions_GetIncludeArguments(self)
12407
12408 - def SetIncludeArguments(self, *args):
12409 """SetIncludeArguments(SBVariablesOptions self, bool arg2)""" 12410 return _lldb.SBVariablesOptions_SetIncludeArguments(self, *args)
12411
12412 - def GetIncludeLocals(self):
12413 """GetIncludeLocals(SBVariablesOptions self) -> bool""" 12414 return _lldb.SBVariablesOptions_GetIncludeLocals(self)
12415
12416 - def SetIncludeLocals(self, *args):
12417 """SetIncludeLocals(SBVariablesOptions self, bool arg2)""" 12418 return _lldb.SBVariablesOptions_SetIncludeLocals(self, *args)
12419
12420 - def GetIncludeStatics(self):
12421 """GetIncludeStatics(SBVariablesOptions self) -> bool""" 12422 return _lldb.SBVariablesOptions_GetIncludeStatics(self)
12423
12424 - def SetIncludeStatics(self, *args):
12425 """SetIncludeStatics(SBVariablesOptions self, bool arg2)""" 12426 return _lldb.SBVariablesOptions_SetIncludeStatics(self, *args)
12427
12428 - def GetInScopeOnly(self):
12429 """GetInScopeOnly(SBVariablesOptions self) -> bool""" 12430 return _lldb.SBVariablesOptions_GetInScopeOnly(self)
12431
12432 - def SetInScopeOnly(self, *args):
12433 """SetInScopeOnly(SBVariablesOptions self, bool arg2)""" 12434 return _lldb.SBVariablesOptions_SetInScopeOnly(self, *args)
12435
12436 - def GetIncludeRuntimeSupportValues(self):
12437 """GetIncludeRuntimeSupportValues(SBVariablesOptions self) -> bool""" 12438 return _lldb.SBVariablesOptions_GetIncludeRuntimeSupportValues(self)
12439
12440 - def SetIncludeRuntimeSupportValues(self, *args):
12441 """SetIncludeRuntimeSupportValues(SBVariablesOptions self, bool arg2)""" 12442 return _lldb.SBVariablesOptions_SetIncludeRuntimeSupportValues(self, *args)
12443
12444 - def GetUseDynamic(self):
12445 """GetUseDynamic(SBVariablesOptions self) -> lldb::DynamicValueType""" 12446 return _lldb.SBVariablesOptions_GetUseDynamic(self)
12447
12448 - def SetUseDynamic(self, *args):
12449 """SetUseDynamic(SBVariablesOptions self, lldb::DynamicValueType arg2)""" 12450 return _lldb.SBVariablesOptions_SetUseDynamic(self, *args)
12451 12452 SBVariablesOptions_swigregister = _lldb.SBVariablesOptions_swigregister 12453 SBVariablesOptions_swigregister(SBVariablesOptions)
12454 12455 -class SBWatchpoint(_object):
12456 """ 12457 Represents an instance of watchpoint for a specific target program. 12458 12459 A watchpoint is determined by the address and the byte size that resulted in 12460 this particular instantiation. Each watchpoint has its settable options. 12461 12462 See also SBTarget.watchpoint_iter() for example usage of iterating through the 12463 watchpoints of the target. 12464 """ 12465 __swig_setmethods__ = {} 12466 __setattr__ = lambda self, name, value: _swig_setattr(self, SBWatchpoint, name, value) 12467 __swig_getmethods__ = {} 12468 __getattr__ = lambda self, name: _swig_getattr(self, SBWatchpoint, name) 12469 __repr__ = _swig_repr
12470 - def __eq__(self, other): return isinstance(other, SBWatchpoint) and self.GetID() == other.GetID()
12471 - def __ne__(self, other): return not self.__eq__(other)
12472 - def __init__(self, *args):
12473 """ 12474 __init__(lldb::SBWatchpoint self) -> SBWatchpoint 12475 __init__(lldb::SBWatchpoint self, SBWatchpoint rhs) -> SBWatchpoint 12476 """ 12477 this = _lldb.new_SBWatchpoint(*args) 12478 try: self.this.append(this) 12479 except: self.this = this
12480 __swig_destroy__ = _lldb.delete_SBWatchpoint 12481 __del__ = lambda self : None;
12482 - def __nonzero__(self): return self.IsValid()
12483 - def IsValid(self):
12484 """IsValid(SBWatchpoint self) -> bool""" 12485 return _lldb.SBWatchpoint_IsValid(self)
12486
12487 - def GetError(self):
12488 """GetError(SBWatchpoint self) -> SBError""" 12489 return _lldb.SBWatchpoint_GetError(self)
12490
12491 - def GetID(self):
12492 """GetID(SBWatchpoint self) -> lldb::watch_id_t""" 12493 return _lldb.SBWatchpoint_GetID(self)
12494
12495 - def GetHardwareIndex(self):
12496 """ 12497 GetHardwareIndex(SBWatchpoint self) -> int32_t 12498 12499 With -1 representing an invalid hardware index. 12500 """ 12501 return _lldb.SBWatchpoint_GetHardwareIndex(self)
12502
12503 - def GetWatchAddress(self):
12504 """GetWatchAddress(SBWatchpoint self) -> lldb::addr_t""" 12505 return _lldb.SBWatchpoint_GetWatchAddress(self)
12506
12507 - def GetWatchSize(self):
12508 """GetWatchSize(SBWatchpoint self) -> size_t""" 12509 return _lldb.SBWatchpoint_GetWatchSize(self)
12510
12511 - def SetEnabled(self, *args):
12512 """SetEnabled(SBWatchpoint self, bool enabled)""" 12513 return _lldb.SBWatchpoint_SetEnabled(self, *args)
12514
12515 - def IsEnabled(self):
12516 """IsEnabled(SBWatchpoint self) -> bool""" 12517 return _lldb.SBWatchpoint_IsEnabled(self)
12518
12519 - def GetHitCount(self):
12520 """GetHitCount(SBWatchpoint self) -> uint32_t""" 12521 return _lldb.SBWatchpoint_GetHitCount(self)
12522
12523 - def GetIgnoreCount(self):
12524 """GetIgnoreCount(SBWatchpoint self) -> uint32_t""" 12525 return _lldb.SBWatchpoint_GetIgnoreCount(self)
12526
12527 - def SetIgnoreCount(self, *args):
12528 """SetIgnoreCount(SBWatchpoint self, uint32_t n)""" 12529 return _lldb.SBWatchpoint_SetIgnoreCount(self, *args)
12530
12531 - def GetCondition(self):
12532 """ 12533 GetCondition(SBWatchpoint self) -> str const * 12534 12535 Get the condition expression for the watchpoint. 12536 """ 12537 return _lldb.SBWatchpoint_GetCondition(self)
12538
12539 - def SetCondition(self, *args):
12540 """ 12541 SetCondition(SBWatchpoint self, str const * condition) 12542 12543 The watchpoint stops only if the condition expression evaluates to true. 12544 """ 12545 return _lldb.SBWatchpoint_SetCondition(self, *args)
12546
12547 - def GetDescription(self, *args):
12548 """GetDescription(SBWatchpoint self, SBStream description, lldb::DescriptionLevel level) -> bool""" 12549 return _lldb.SBWatchpoint_GetDescription(self, *args)
12550
12551 - def EventIsWatchpointEvent(*args):
12552 """EventIsWatchpointEvent(SBEvent event) -> bool""" 12553 return _lldb.SBWatchpoint_EventIsWatchpointEvent(*args)
12554 12555 if _newclass:EventIsWatchpointEvent = staticmethod(EventIsWatchpointEvent) 12556 __swig_getmethods__["EventIsWatchpointEvent"] = lambda x: EventIsWatchpointEvent
12557 - def GetWatchpointEventTypeFromEvent(*args):
12558 """GetWatchpointEventTypeFromEvent(SBEvent event) -> lldb::WatchpointEventType""" 12559 return _lldb.SBWatchpoint_GetWatchpointEventTypeFromEvent(*args)
12560 12561 if _newclass:GetWatchpointEventTypeFromEvent = staticmethod(GetWatchpointEventTypeFromEvent) 12562 __swig_getmethods__["GetWatchpointEventTypeFromEvent"] = lambda x: GetWatchpointEventTypeFromEvent
12563 - def GetWatchpointFromEvent(*args):
12564 """GetWatchpointFromEvent(SBEvent event) -> SBWatchpoint""" 12565 return _lldb.SBWatchpoint_GetWatchpointFromEvent(*args)
12566 12567 if _newclass:GetWatchpointFromEvent = staticmethod(GetWatchpointFromEvent) 12568 __swig_getmethods__["GetWatchpointFromEvent"] = lambda x: GetWatchpointFromEvent
12569 - def __str__(self):
12570 """__str__(SBWatchpoint self) -> PyObject *""" 12571 return _lldb.SBWatchpoint___str__(self)
12572 12573 SBWatchpoint_swigregister = _lldb.SBWatchpoint_swigregister 12574 SBWatchpoint_swigregister(SBWatchpoint)
12575 12576 -def SBWatchpoint_EventIsWatchpointEvent(*args):
12577 """SBWatchpoint_EventIsWatchpointEvent(SBEvent event) -> bool""" 12578 return _lldb.SBWatchpoint_EventIsWatchpointEvent(*args)
12579
12580 -def SBWatchpoint_GetWatchpointEventTypeFromEvent(*args):
12581 """SBWatchpoint_GetWatchpointEventTypeFromEvent(SBEvent event) -> lldb::WatchpointEventType""" 12582 return _lldb.SBWatchpoint_GetWatchpointEventTypeFromEvent(*args)
12583
12584 -def SBWatchpoint_GetWatchpointFromEvent(*args):
12585 """SBWatchpoint_GetWatchpointFromEvent(SBEvent event) -> SBWatchpoint""" 12586 return _lldb.SBWatchpoint_GetWatchpointFromEvent(*args)
12587
12588 -class SBUnixSignals(_object):
12589 """Allows you to manipulate LLDB's signal disposition""" 12590 __swig_setmethods__ = {} 12591 __setattr__ = lambda self, name, value: _swig_setattr(self, SBUnixSignals, name, value) 12592 __swig_getmethods__ = {} 12593 __getattr__ = lambda self, name: _swig_getattr(self, SBUnixSignals, name) 12594 __repr__ = _swig_repr
12595 - def __init__(self, *args):
12596 """ 12597 __init__(lldb::SBUnixSignals self) -> SBUnixSignals 12598 __init__(lldb::SBUnixSignals self, SBUnixSignals rhs) -> SBUnixSignals 12599 """ 12600 this = _lldb.new_SBUnixSignals(*args) 12601 try: self.this.append(this) 12602 except: self.this = this
12603 __swig_destroy__ = _lldb.delete_SBUnixSignals 12604 __del__ = lambda self : None;
12605 - def Clear(self):
12606 """Clear(SBUnixSignals self)""" 12607 return _lldb.SBUnixSignals_Clear(self)
12608
12609 - def __nonzero__(self): return self.IsValid()
12610 - def IsValid(self):
12611 """IsValid(SBUnixSignals self) -> bool""" 12612 return _lldb.SBUnixSignals_IsValid(self)
12613
12614 - def GetSignalAsCString(self, *args):
12615 """GetSignalAsCString(SBUnixSignals self, int32_t signo) -> str const *""" 12616 return _lldb.SBUnixSignals_GetSignalAsCString(self, *args)
12617
12618 - def GetSignalNumberFromName(self, *args):
12619 """GetSignalNumberFromName(SBUnixSignals self, str const * name) -> int32_t""" 12620 return _lldb.SBUnixSignals_GetSignalNumberFromName(self, *args)
12621
12622 - def GetShouldSuppress(self, *args):
12623 """GetShouldSuppress(SBUnixSignals self, int32_t signo) -> bool""" 12624 return _lldb.SBUnixSignals_GetShouldSuppress(self, *args)
12625
12626 - def SetShouldSuppress(self, *args):
12627 """SetShouldSuppress(SBUnixSignals self, int32_t signo, bool value) -> bool""" 12628 return _lldb.SBUnixSignals_SetShouldSuppress(self, *args)
12629
12630 - def GetShouldStop(self, *args):
12631 """GetShouldStop(SBUnixSignals self, int32_t signo) -> bool""" 12632 return _lldb.SBUnixSignals_GetShouldStop(self, *args)
12633
12634 - def SetShouldStop(self, *args):
12635 """SetShouldStop(SBUnixSignals self, int32_t signo, bool value) -> bool""" 12636 return _lldb.SBUnixSignals_SetShouldStop(self, *args)
12637
12638 - def GetShouldNotify(self, *args):
12639 """GetShouldNotify(SBUnixSignals self, int32_t signo) -> bool""" 12640 return _lldb.SBUnixSignals_GetShouldNotify(self, *args)
12641
12642 - def SetShouldNotify(self, *args):
12643 """SetShouldNotify(SBUnixSignals self, int32_t signo, bool value) -> bool""" 12644 return _lldb.SBUnixSignals_SetShouldNotify(self, *args)
12645
12646 - def GetNumSignals(self):
12647 """GetNumSignals(SBUnixSignals self) -> int32_t""" 12648 return _lldb.SBUnixSignals_GetNumSignals(self)
12649
12650 - def GetSignalAtIndex(self, *args):
12651 """GetSignalAtIndex(SBUnixSignals self, int32_t index) -> int32_t""" 12652 return _lldb.SBUnixSignals_GetSignalAtIndex(self, *args)
12653
12654 - def get_unix_signals_list(self):
12655 signals = [] 12656 for idx in range(0, self.GetNumSignals()): 12657 signals.append(self.GetSignalAtIndex(sig)) 12658 return signals
12659 12660 __swig_getmethods__["signals"] = get_unix_signals_list 12661 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.''') 12662 12663 SBUnixSignals_swigregister = _lldb.SBUnixSignals_swigregister 12664 SBUnixSignals_swigregister(SBUnixSignals)
12665 12666 -def command(*args, **kwargs):
12667 import lldb 12668 import inspect 12669 """A decorator function that registers an LLDB command line 12670 command that is bound to the function it is attached to.""" 12671 class obj(object): 12672 """The object that tracks adding the command to LLDB one time and handles 12673 calling the function on subsequent calls.""" 12674 def __init__(self, function, command_name, doc = None): 12675 if doc: 12676 function.__doc__ = doc 12677 command = "command script add -f %s.%s %s" % (function.__module__, function.__name__, command_name) 12678 lldb.debugger.HandleCommand(command) 12679 self.function = function
12680 def __call__(self, debugger, command, exe_ctx, result, dict): 12681 if len(inspect.getargspec(self.function).args) == 5: 12682 self.function(debugger, command, exe_ctx, result, dict) 12683 else: 12684 self.function(debugger, command, result, dict) 12685 def callable(function): 12686 """Creates a callable object that gets used.""" 12687 f = obj(function, *args, **kwargs) 12688 return f.__call__ 12689 return callable 12690
12691 -class declaration(object):
12692 '''A class that represents a source declaration location with file, line and column.'''
12693 - def __init__(self, file, line, col):
12694 self.file = file 12695 self.line = line 12696 self.col = col
12697
12698 -class value_iter(object):
12699 - def __iter__(self):
12700 return self
12701
12702 - def next(self):
12703 if self.index >= self.length: 12704 raise StopIteration() 12705 child_sbvalue = self.sbvalue.GetChildAtIndex(self.index) 12706 self.index += 1 12707 return value(child_sbvalue)
12708
12709 - def __init__(self,value):
12710 self.index = 0 12711 self.sbvalue = value 12712 if type(self.sbvalue) is value: 12713 self.sbvalue = self.sbvalue.sbvalue 12714 self.length = self.sbvalue.GetNumChildren()
12715
12716 -class value(object):
12717 '''A class designed to wrap lldb.SBValue() objects so the resulting object 12718 can be used as a variable would be in code. So if you have a Point structure 12719 variable in your code in the current frame named "pt", you can initialize an instance 12720 of this class with it: 12721 12722 pt = lldb.value(lldb.frame.FindVariable("pt")) 12723 print pt 12724 print pt.x 12725 print pt.y 12726 12727 pt = lldb.value(lldb.frame.FindVariable("rectangle_array")) 12728 print rectangle_array[12] 12729 print rectangle_array[5].origin.x'''
12730 - def __init__(self, sbvalue):
12731 self.sbvalue = sbvalue
12732
12733 - def __nonzero__(self):
12734 return self.sbvalue.__nonzero__()
12735
12736 - def __str__(self):
12737 return self.sbvalue.__str__()
12738
12739 - def __getitem__(self, key):
12740 # Allow array access if this value has children... 12741 if type(key) is value: 12742 key = int(key) 12743 if type(key) is int: 12744 child_sbvalue = (self.sbvalue.GetValueForExpressionPath("[%i]" % key)) 12745 if child_sbvalue and child_sbvalue.IsValid(): 12746 return value(child_sbvalue) 12747 raise IndexError("Index '%d' is out of range" % key) 12748 raise TypeError("No array item of type %s" % str(type(key)))
12749
12750 - def __iter__(self):
12751 return value_iter(self.sbvalue)
12752
12753 - def __getattr__(self, name):
12754 child_sbvalue = self.sbvalue.GetChildMemberWithName (name) 12755 if child_sbvalue and child_sbvalue.IsValid(): 12756 return value(child_sbvalue) 12757 raise AttributeError("Attribute '%s' is not defined" % name)
12758
12759 - def __add__(self, other):
12760 return int(self) + int(other)
12761
12762 - def __sub__(self, other):
12763 return int(self) - int(other)
12764
12765 - def __mul__(self, other):
12766 return int(self) * int(other)
12767
12768 - def __floordiv__(self, other):
12769 return int(self) // int(other)
12770
12771 - def __mod__(self, other):
12772 return int(self) % int(other)
12773
12774 - def __divmod__(self, other):
12775 return int(self) % int(other)
12776
12777 - def __pow__(self, other):
12778 return int(self) ** int(other)
12779
12780 - def __lshift__(self, other):
12781 return int(self) << int(other)
12782
12783 - def __rshift__(self, other):
12784 return int(self) >> int(other)
12785
12786 - def __and__(self, other):
12787 return int(self) & int(other)
12788
12789 - def __xor__(self, other):
12790 return int(self) ^ int(other)
12791
12792 - def __or__(self, other):
12793 return int(self) | int(other)
12794
12795 - def __div__(self, other):
12796 return int(self) / int(other)
12797
12798 - def __truediv__(self, other):
12799 return int(self) / int(other)
12800
12801 - def __iadd__(self, other):
12802 result = self.__add__(other) 12803 self.sbvalue.SetValueFromCString (str(result)) 12804 return result
12805
12806 - def __isub__(self, other):
12807 result = self.__sub__(other) 12808 self.sbvalue.SetValueFromCString (str(result)) 12809 return result
12810
12811 - def __imul__(self, other):
12812 result = self.__mul__(other) 12813 self.sbvalue.SetValueFromCString (str(result)) 12814 return result
12815
12816 - def __idiv__(self, other):
12817 result = self.__div__(other) 12818 self.sbvalue.SetValueFromCString (str(result)) 12819 return result
12820
12821 - def __itruediv__(self, other):
12822 result = self.__truediv__(other) 12823 self.sbvalue.SetValueFromCString (str(result)) 12824 return result
12825
12826 - def __ifloordiv__(self, other):
12827 result = self.__floordiv__(self, other) 12828 self.sbvalue.SetValueFromCString (str(result)) 12829 return result
12830
12831 - def __imod__(self, other):
12832 result = self.__and__(self, other) 12833 self.sbvalue.SetValueFromCString (str(result)) 12834 return result
12835
12836 - def __ipow__(self, other):
12837 result = self.__pow__(self, other) 12838 self.sbvalue.SetValueFromCString (str(result)) 12839 return result
12840
12841 - def __ipow__(self, other, modulo):
12842 result = self.__pow__(self, other, modulo) 12843 self.sbvalue.SetValueFromCString (str(result)) 12844 return result
12845
12846 - def __ilshift__(self, other):
12847 result = self.__lshift__(other) 12848 self.sbvalue.SetValueFromCString (str(result)) 12849 return result
12850
12851 - def __irshift__(self, other):
12852 result = self.__rshift__(other) 12853 self.sbvalue.SetValueFromCString (str(result)) 12854 return result
12855
12856 - def __iand__(self, other):
12857 result = self.__and__(self, other) 12858 self.sbvalue.SetValueFromCString (str(result)) 12859 return result
12860
12861 - def __ixor__(self, other):
12862 result = self.__xor__(self, other) 12863 self.sbvalue.SetValueFromCString (str(result)) 12864 return result
12865
12866 - def __ior__(self, other):
12867 result = self.__ior__(self, other) 12868 self.sbvalue.SetValueFromCString (str(result)) 12869 return result
12870
12871 - def __neg__(self):
12872 return -int(self)
12873
12874 - def __pos__(self):
12875 return +int(self)
12876
12877 - def __abs__(self):
12878 return abs(int(self))
12879
12880 - def __invert__(self):
12881 return ~int(self)
12882
12883 - def __complex__(self):
12884 return complex (int(self))
12885
12886 - def __int__(self):
12887 is_num,is_sign = is_numeric_type(self.sbvalue.GetType().GetCanonicalType().GetBasicType()) 12888 if is_num and not is_sign: return self.sbvalue.GetValueAsUnsigned() 12889 return self.sbvalue.GetValueAsSigned()
12890
12891 - def __long__(self):
12892 return self.__int__()
12893
12894 - def __float__(self):
12895 return float (self.sbvalue.GetValueAsSigned())
12896
12897 - def __oct__(self):
12898 return '0%o' % self.sbvalue.GetValueAsUnsigned()
12899
12900 - def __hex__(self):
12901 return '0x%x' % self.sbvalue.GetValueAsUnsigned()
12902
12903 - def __len__(self):
12904 return self.sbvalue.GetNumChildren()
12905
12906 - def __eq__(self, other):
12907 if type(other) is int: 12908 return int(self) == other 12909 elif type(other) is str: 12910 return str(self) == other 12911 elif type(other) is value: 12912 self_err = SBError() 12913 other_err = SBError() 12914 self_val = self.sbvalue.GetValueAsUnsigned(self_err) 12915 if self_err.fail: 12916 raise ValueError("unable to extract value of self") 12917 other_val = other.sbvalue.GetValueAsUnsigned(other_err) 12918 if other_err.fail: 12919 raise ValueError("unable to extract value of other") 12920 return self_val == other_val 12921 raise TypeError("Unknown type %s, No equality operation defined." % str(type(other)))
12922
12923 - def __ne__(self, other):
12924 return not self.__eq__(other)
12925
12926 -class SBSyntheticValueProvider(object):
12927 - def __init__(self,valobj):
12928 pass
12929
12930 - def num_children(self):
12931 return 0
12932
12933 - def get_child_index(self,name):
12934 return None
12935
12936 - def get_child_at_index(self,idx):
12937 return None
12938
12939 - def update(self):
12940 pass
12941
12942 - def has_children(self):
12943 return False
12944
12945 12946 12947 # given an lldb.SBBasicType it returns a tuple 12948 # (is_numeric, is_signed) 12949 # the value of is_signed is undefined if is_numeric == false 12950 -def is_numeric_type(basic_type):
12951 if basic_type == eBasicTypeInvalid: return (False,False) 12952 if basic_type == eBasicTypeVoid: return (False,False) 12953 if basic_type == eBasicTypeChar: return (True,False) 12954 if basic_type == eBasicTypeSignedChar: return (True,True) 12955 if basic_type == eBasicTypeUnsignedChar: return (True,False) 12956 if basic_type == eBasicTypeWChar: return (True,False) 12957 if basic_type == eBasicTypeSignedWChar: return (True,True) 12958 if basic_type == eBasicTypeUnsignedWChar: return (True,False) 12959 if basic_type == eBasicTypeChar16: return (True,False) 12960 if basic_type == eBasicTypeChar32: return (True,False) 12961 if basic_type == eBasicTypeShort: return (True,True) 12962 if basic_type == eBasicTypeUnsignedShort: return (True,False) 12963 if basic_type == eBasicTypeInt: return (True,True) 12964 if basic_type == eBasicTypeUnsignedInt: return (True,False) 12965 if basic_type == eBasicTypeLong: return (True,True) 12966 if basic_type == eBasicTypeUnsignedLong: return (True,False) 12967 if basic_type == eBasicTypeLongLong: return (True,True) 12968 if basic_type == eBasicTypeUnsignedLongLong: return (True,False) 12969 if basic_type == eBasicTypeInt128: return (True,True) 12970 if basic_type == eBasicTypeUnsignedInt128: return (True,False) 12971 if basic_type == eBasicTypeBool: return (False,False) 12972 if basic_type == eBasicTypeHalf: return (True,True) 12973 if basic_type == eBasicTypeFloat: return (True,True) 12974 if basic_type == eBasicTypeDouble: return (True,True) 12975 if basic_type == eBasicTypeLongDouble: return (True,True) 12976 if basic_type == eBasicTypeFloatComplex: return (True,True) 12977 if basic_type == eBasicTypeDoubleComplex: return (True,True) 12978 if basic_type == eBasicTypeLongDoubleComplex: return (True,True) 12979 if basic_type == eBasicTypeObjCID: return (False,False) 12980 if basic_type == eBasicTypeObjCClass: return (False,False) 12981 if basic_type == eBasicTypeObjCSel: return (False,False) 12982 if basic_type == eBasicTypeNullPtr: return (False,False) 12983 #if basic_type == eBasicTypeOther: 12984 return (False,False)
12985 12986 12987 # This file is compatible with both classic and new-style classes. 12988 12989 12990 debugger_unique_id = 0 12991 SBDebugger.Initialize() 12992 debugger = None 12993 target = SBTarget() 12994 process = SBProcess() 12995 thread = SBThread() 12996 frame = SBFrame() 12997