1
2
3
4
5
6
7
8
9
10 """
11 The lldb module contains the public APIs for Python binding.
12
13 Some of the important classes are described here:
14
15 o SBTarget: Represents the target program running under the debugger.
16 o SBProcess: Represents the process associated with the target program.
17 o SBThread: Represents a thread of execution. SBProcess contains SBThread(s).
18 o SBFrame: Represents one of the stack frames associated with a thread. SBThread
19 contains SBFrame(s).
20 o SBSymbolContext: A container that stores various debugger related info.
21 o SBValue: Represents the value of a variable, a register, or an expression.
22 o SBModule: Represents an executable image and its associated object and symbol
23 files. SBTarget contains SBModule(s).
24 o SBBreakpoint: Represents a logical breakpoint and its associated settings.
25 SBTarget contains SBBreakpoint(s).
26 o SBSymbol: Represents the symbol possibly associated with a stack frame.
27 o SBCompileUnit: Represents a compilation unit, or compiled source file.
28 o SBFunction: Represents a generic function, which can be inlined or not.
29 o SBBlock: Represents a lexical block. SBFunction contains SBBlock(s).
30 o SBLineEntry: Specifies an association with a contiguous range of instructions
31 and a source file location. SBCompileUnit contains SBLineEntry(s).
32 """
33
34
35 from sys import version_info
36 if version_info >= (2,6,0):
38 from os.path import dirname
39 import imp
40 fp = None
41 try:
42 fp, pathname, description = imp.find_module('_lldb', [dirname(__file__)])
43 except ImportError:
44 import _lldb
45 return _lldb
46 if fp is not None:
47 try:
48 _mod = imp.load_module('_lldb', fp, pathname, description)
49 finally:
50 fp.close()
51 return _mod
52 _lldb = swig_import_helper()
53 del swig_import_helper
54 else:
55 import _lldb
56 del version_info
57 try:
58 _swig_property = property
59 except NameError:
60 pass
62 if (name == "thisown"): return self.this.own(value)
63 if (name == "this"):
64 if type(value).__name__ == 'SwigPyObject':
65 self.__dict__[name] = value
66 return
67 method = class_type.__swig_setmethods__.get(name,None)
68 if method: return method(self,value)
69 if (not static):
70 self.__dict__[name] = value
71 else:
72 raise AttributeError("You cannot add attributes to %s" % self)
73
76
78 if (name == "thisown"): return self.this.own()
79 method = class_type.__swig_getmethods__.get(name,None)
80 if method: return method(self)
81 raise AttributeError(name)
82
84 try: strthis = "proxy of " + self.this.__repr__()
85 except: strthis = ""
86 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
87
88 try:
89 _object = object
90 _newclass = 1
91 except AttributeError:
93 _newclass = 0
94
95
96 import uuid
97 import re
98 import os
99
100 import six
106 return hex // 0x10 % 0x10 * 10 + hex % 0x10
107 swig_version = (_to_int(0x020011 // 0x10000), _to_int(0x020011 // 0x100), _to_int(0x020011))
108 del _to_int
109
110
111
112
113 -def lldb_iter(obj, getsize, getelem):
114 """A generator adaptor to support iteration for lldb container objects."""
115 size = getattr(obj, getsize)
116 elem = getattr(obj, getelem)
117 for i in range(size()):
118 yield elem(i)
119
120 INT32_MAX = _lldb.INT32_MAX
121 UINT32_MAX = _lldb.UINT32_MAX
122 UINT64_MAX = _lldb.UINT64_MAX
123 LLDB_GENERIC_ERROR = _lldb.LLDB_GENERIC_ERROR
124 LLDB_INVALID_BREAK_ID = _lldb.LLDB_INVALID_BREAK_ID
125 LLDB_DEFAULT_BREAK_SIZE = _lldb.LLDB_DEFAULT_BREAK_SIZE
126 LLDB_INVALID_WATCH_ID = _lldb.LLDB_INVALID_WATCH_ID
127 LLDB_WATCH_TYPE_READ = _lldb.LLDB_WATCH_TYPE_READ
128 LLDB_WATCH_TYPE_WRITE = _lldb.LLDB_WATCH_TYPE_WRITE
129 LLDB_REGNUM_GENERIC_PC = _lldb.LLDB_REGNUM_GENERIC_PC
130 LLDB_REGNUM_GENERIC_SP = _lldb.LLDB_REGNUM_GENERIC_SP
131 LLDB_REGNUM_GENERIC_FP = _lldb.LLDB_REGNUM_GENERIC_FP
132 LLDB_REGNUM_GENERIC_RA = _lldb.LLDB_REGNUM_GENERIC_RA
133 LLDB_REGNUM_GENERIC_FLAGS = _lldb.LLDB_REGNUM_GENERIC_FLAGS
134 LLDB_REGNUM_GENERIC_ARG1 = _lldb.LLDB_REGNUM_GENERIC_ARG1
135 LLDB_REGNUM_GENERIC_ARG2 = _lldb.LLDB_REGNUM_GENERIC_ARG2
136 LLDB_REGNUM_GENERIC_ARG3 = _lldb.LLDB_REGNUM_GENERIC_ARG3
137 LLDB_REGNUM_GENERIC_ARG4 = _lldb.LLDB_REGNUM_GENERIC_ARG4
138 LLDB_REGNUM_GENERIC_ARG5 = _lldb.LLDB_REGNUM_GENERIC_ARG5
139 LLDB_REGNUM_GENERIC_ARG6 = _lldb.LLDB_REGNUM_GENERIC_ARG6
140 LLDB_REGNUM_GENERIC_ARG7 = _lldb.LLDB_REGNUM_GENERIC_ARG7
141 LLDB_REGNUM_GENERIC_ARG8 = _lldb.LLDB_REGNUM_GENERIC_ARG8
142 LLDB_INVALID_ADDRESS = _lldb.LLDB_INVALID_ADDRESS
143 LLDB_INVALID_INDEX32 = _lldb.LLDB_INVALID_INDEX32
144 LLDB_INVALID_IVAR_OFFSET = _lldb.LLDB_INVALID_IVAR_OFFSET
145 LLDB_INVALID_IMAGE_TOKEN = _lldb.LLDB_INVALID_IMAGE_TOKEN
146 LLDB_INVALID_MODULE_VERSION = _lldb.LLDB_INVALID_MODULE_VERSION
147 LLDB_INVALID_REGNUM = _lldb.LLDB_INVALID_REGNUM
148 LLDB_INVALID_UID = _lldb.LLDB_INVALID_UID
149 LLDB_INVALID_PROCESS_ID = _lldb.LLDB_INVALID_PROCESS_ID
150 LLDB_INVALID_THREAD_ID = _lldb.LLDB_INVALID_THREAD_ID
151 LLDB_INVALID_FRAME_ID = _lldb.LLDB_INVALID_FRAME_ID
152 LLDB_INVALID_SIGNAL_NUMBER = _lldb.LLDB_INVALID_SIGNAL_NUMBER
153 LLDB_INVALID_OFFSET = _lldb.LLDB_INVALID_OFFSET
154 LLDB_INVALID_LINE_NUMBER = _lldb.LLDB_INVALID_LINE_NUMBER
155 LLDB_INVALID_QUEUE_ID = _lldb.LLDB_INVALID_QUEUE_ID
156 LLDB_ARCH_DEFAULT = _lldb.LLDB_ARCH_DEFAULT
157 LLDB_ARCH_DEFAULT_32BIT = _lldb.LLDB_ARCH_DEFAULT_32BIT
158 LLDB_ARCH_DEFAULT_64BIT = _lldb.LLDB_ARCH_DEFAULT_64BIT
159 LLDB_INVALID_CPUTYPE = _lldb.LLDB_INVALID_CPUTYPE
160 LLDB_MAX_NUM_OPTION_SETS = _lldb.LLDB_MAX_NUM_OPTION_SETS
161 LLDB_OPT_SET_ALL = _lldb.LLDB_OPT_SET_ALL
162 LLDB_OPT_SET_1 = _lldb.LLDB_OPT_SET_1
163 LLDB_OPT_SET_2 = _lldb.LLDB_OPT_SET_2
164 LLDB_OPT_SET_3 = _lldb.LLDB_OPT_SET_3
165 LLDB_OPT_SET_4 = _lldb.LLDB_OPT_SET_4
166 LLDB_OPT_SET_5 = _lldb.LLDB_OPT_SET_5
167 LLDB_OPT_SET_6 = _lldb.LLDB_OPT_SET_6
168 LLDB_OPT_SET_7 = _lldb.LLDB_OPT_SET_7
169 LLDB_OPT_SET_8 = _lldb.LLDB_OPT_SET_8
170 LLDB_OPT_SET_9 = _lldb.LLDB_OPT_SET_9
171 LLDB_OPT_SET_10 = _lldb.LLDB_OPT_SET_10
172 LLDB_OPT_SET_11 = _lldb.LLDB_OPT_SET_11
173 eStateInvalid = _lldb.eStateInvalid
174 eStateUnloaded = _lldb.eStateUnloaded
175 eStateConnected = _lldb.eStateConnected
176 eStateAttaching = _lldb.eStateAttaching
177 eStateLaunching = _lldb.eStateLaunching
178 eStateStopped = _lldb.eStateStopped
179 eStateRunning = _lldb.eStateRunning
180 eStateStepping = _lldb.eStateStepping
181 eStateCrashed = _lldb.eStateCrashed
182 eStateDetached = _lldb.eStateDetached
183 eStateExited = _lldb.eStateExited
184 eStateSuspended = _lldb.eStateSuspended
185 kLastStateType = _lldb.kLastStateType
186 eLaunchFlagNone = _lldb.eLaunchFlagNone
187 eLaunchFlagExec = _lldb.eLaunchFlagExec
188 eLaunchFlagDebug = _lldb.eLaunchFlagDebug
189 eLaunchFlagStopAtEntry = _lldb.eLaunchFlagStopAtEntry
190 eLaunchFlagDisableASLR = _lldb.eLaunchFlagDisableASLR
191 eLaunchFlagDisableSTDIO = _lldb.eLaunchFlagDisableSTDIO
192 eLaunchFlagLaunchInTTY = _lldb.eLaunchFlagLaunchInTTY
193 eLaunchFlagLaunchInShell = _lldb.eLaunchFlagLaunchInShell
194 eLaunchFlagLaunchInSeparateProcessGroup = _lldb.eLaunchFlagLaunchInSeparateProcessGroup
195 eLaunchFlagDontSetExitStatus = _lldb.eLaunchFlagDontSetExitStatus
196 eLaunchFlagDetachOnError = _lldb.eLaunchFlagDetachOnError
197 eLaunchFlagShellExpandArguments = _lldb.eLaunchFlagShellExpandArguments
198 eLaunchFlagCloseTTYOnExit = _lldb.eLaunchFlagCloseTTYOnExit
199 eOnlyThisThread = _lldb.eOnlyThisThread
200 eAllThreads = _lldb.eAllThreads
201 eOnlyDuringStepping = _lldb.eOnlyDuringStepping
202 eByteOrderInvalid = _lldb.eByteOrderInvalid
203 eByteOrderBig = _lldb.eByteOrderBig
204 eByteOrderPDP = _lldb.eByteOrderPDP
205 eByteOrderLittle = _lldb.eByteOrderLittle
206 eEncodingInvalid = _lldb.eEncodingInvalid
207 eEncodingUint = _lldb.eEncodingUint
208 eEncodingSint = _lldb.eEncodingSint
209 eEncodingIEEE754 = _lldb.eEncodingIEEE754
210 eEncodingVector = _lldb.eEncodingVector
211 eFormatDefault = _lldb.eFormatDefault
212 eFormatInvalid = _lldb.eFormatInvalid
213 eFormatBoolean = _lldb.eFormatBoolean
214 eFormatBinary = _lldb.eFormatBinary
215 eFormatBytes = _lldb.eFormatBytes
216 eFormatBytesWithASCII = _lldb.eFormatBytesWithASCII
217 eFormatChar = _lldb.eFormatChar
218 eFormatCharPrintable = _lldb.eFormatCharPrintable
219 eFormatComplex = _lldb.eFormatComplex
220 eFormatComplexFloat = _lldb.eFormatComplexFloat
221 eFormatCString = _lldb.eFormatCString
222 eFormatDecimal = _lldb.eFormatDecimal
223 eFormatEnum = _lldb.eFormatEnum
224 eFormatHex = _lldb.eFormatHex
225 eFormatHexUppercase = _lldb.eFormatHexUppercase
226 eFormatFloat = _lldb.eFormatFloat
227 eFormatOctal = _lldb.eFormatOctal
228 eFormatOSType = _lldb.eFormatOSType
229 eFormatUnicode16 = _lldb.eFormatUnicode16
230 eFormatUnicode32 = _lldb.eFormatUnicode32
231 eFormatUnsigned = _lldb.eFormatUnsigned
232 eFormatPointer = _lldb.eFormatPointer
233 eFormatVectorOfChar = _lldb.eFormatVectorOfChar
234 eFormatVectorOfSInt8 = _lldb.eFormatVectorOfSInt8
235 eFormatVectorOfUInt8 = _lldb.eFormatVectorOfUInt8
236 eFormatVectorOfSInt16 = _lldb.eFormatVectorOfSInt16
237 eFormatVectorOfUInt16 = _lldb.eFormatVectorOfUInt16
238 eFormatVectorOfSInt32 = _lldb.eFormatVectorOfSInt32
239 eFormatVectorOfUInt32 = _lldb.eFormatVectorOfUInt32
240 eFormatVectorOfSInt64 = _lldb.eFormatVectorOfSInt64
241 eFormatVectorOfUInt64 = _lldb.eFormatVectorOfUInt64
242 eFormatVectorOfFloat16 = _lldb.eFormatVectorOfFloat16
243 eFormatVectorOfFloat32 = _lldb.eFormatVectorOfFloat32
244 eFormatVectorOfFloat64 = _lldb.eFormatVectorOfFloat64
245 eFormatVectorOfUInt128 = _lldb.eFormatVectorOfUInt128
246 eFormatComplexInteger = _lldb.eFormatComplexInteger
247 eFormatCharArray = _lldb.eFormatCharArray
248 eFormatAddressInfo = _lldb.eFormatAddressInfo
249 eFormatHexFloat = _lldb.eFormatHexFloat
250 eFormatInstruction = _lldb.eFormatInstruction
251 eFormatVoid = _lldb.eFormatVoid
252 kNumFormats = _lldb.kNumFormats
253 eDescriptionLevelBrief = _lldb.eDescriptionLevelBrief
254 eDescriptionLevelFull = _lldb.eDescriptionLevelFull
255 eDescriptionLevelVerbose = _lldb.eDescriptionLevelVerbose
256 eDescriptionLevelInitial = _lldb.eDescriptionLevelInitial
257 kNumDescriptionLevels = _lldb.kNumDescriptionLevels
258 eScriptLanguageNone = _lldb.eScriptLanguageNone
259 eScriptLanguagePython = _lldb.eScriptLanguagePython
260 eScriptLanguageDefault = _lldb.eScriptLanguageDefault
261 eScriptLanguageUnknown = _lldb.eScriptLanguageUnknown
262 eRegisterKindEHFrame = _lldb.eRegisterKindEHFrame
263 eRegisterKindDWARF = _lldb.eRegisterKindDWARF
264 eRegisterKindGeneric = _lldb.eRegisterKindGeneric
265 eRegisterKindProcessPlugin = _lldb.eRegisterKindProcessPlugin
266 eRegisterKindLLDB = _lldb.eRegisterKindLLDB
267 kNumRegisterKinds = _lldb.kNumRegisterKinds
268 eStopReasonInvalid = _lldb.eStopReasonInvalid
269 eStopReasonNone = _lldb.eStopReasonNone
270 eStopReasonTrace = _lldb.eStopReasonTrace
271 eStopReasonBreakpoint = _lldb.eStopReasonBreakpoint
272 eStopReasonWatchpoint = _lldb.eStopReasonWatchpoint
273 eStopReasonSignal = _lldb.eStopReasonSignal
274 eStopReasonException = _lldb.eStopReasonException
275 eStopReasonExec = _lldb.eStopReasonExec
276 eStopReasonPlanComplete = _lldb.eStopReasonPlanComplete
277 eStopReasonThreadExiting = _lldb.eStopReasonThreadExiting
278 eStopReasonInstrumentation = _lldb.eStopReasonInstrumentation
279 eReturnStatusInvalid = _lldb.eReturnStatusInvalid
280 eReturnStatusSuccessFinishNoResult = _lldb.eReturnStatusSuccessFinishNoResult
281 eReturnStatusSuccessFinishResult = _lldb.eReturnStatusSuccessFinishResult
282 eReturnStatusSuccessContinuingNoResult = _lldb.eReturnStatusSuccessContinuingNoResult
283 eReturnStatusSuccessContinuingResult = _lldb.eReturnStatusSuccessContinuingResult
284 eReturnStatusStarted = _lldb.eReturnStatusStarted
285 eReturnStatusFailed = _lldb.eReturnStatusFailed
286 eReturnStatusQuit = _lldb.eReturnStatusQuit
287 eExpressionCompleted = _lldb.eExpressionCompleted
288 eExpressionSetupError = _lldb.eExpressionSetupError
289 eExpressionParseError = _lldb.eExpressionParseError
290 eExpressionDiscarded = _lldb.eExpressionDiscarded
291 eExpressionInterrupted = _lldb.eExpressionInterrupted
292 eExpressionHitBreakpoint = _lldb.eExpressionHitBreakpoint
293 eExpressionTimedOut = _lldb.eExpressionTimedOut
294 eExpressionResultUnavailable = _lldb.eExpressionResultUnavailable
295 eExpressionStoppedForDebug = _lldb.eExpressionStoppedForDebug
296 eSearchDepthInvalid = _lldb.eSearchDepthInvalid
297 eSearchDepthTarget = _lldb.eSearchDepthTarget
298 eSearchDepthModule = _lldb.eSearchDepthModule
299 eSearchDepthCompUnit = _lldb.eSearchDepthCompUnit
300 eSearchDepthFunction = _lldb.eSearchDepthFunction
301 eSearchDepthBlock = _lldb.eSearchDepthBlock
302 eSearchDepthAddress = _lldb.eSearchDepthAddress
303 kLastSearchDepthKind = _lldb.kLastSearchDepthKind
304 eConnectionStatusSuccess = _lldb.eConnectionStatusSuccess
305 eConnectionStatusEndOfFile = _lldb.eConnectionStatusEndOfFile
306 eConnectionStatusError = _lldb.eConnectionStatusError
307 eConnectionStatusTimedOut = _lldb.eConnectionStatusTimedOut
308 eConnectionStatusNoConnection = _lldb.eConnectionStatusNoConnection
309 eConnectionStatusLostConnection = _lldb.eConnectionStatusLostConnection
310 eConnectionStatusInterrupted = _lldb.eConnectionStatusInterrupted
311 eErrorTypeInvalid = _lldb.eErrorTypeInvalid
312 eErrorTypeGeneric = _lldb.eErrorTypeGeneric
313 eErrorTypeMachKernel = _lldb.eErrorTypeMachKernel
314 eErrorTypePOSIX = _lldb.eErrorTypePOSIX
315 eErrorTypeExpression = _lldb.eErrorTypeExpression
316 eErrorTypeWin32 = _lldb.eErrorTypeWin32
317 eValueTypeInvalid = _lldb.eValueTypeInvalid
318 eValueTypeVariableGlobal = _lldb.eValueTypeVariableGlobal
319 eValueTypeVariableStatic = _lldb.eValueTypeVariableStatic
320 eValueTypeVariableArgument = _lldb.eValueTypeVariableArgument
321 eValueTypeVariableLocal = _lldb.eValueTypeVariableLocal
322 eValueTypeRegister = _lldb.eValueTypeRegister
323 eValueTypeRegisterSet = _lldb.eValueTypeRegisterSet
324 eValueTypeConstResult = _lldb.eValueTypeConstResult
325 eValueTypeVariableThreadLocal = _lldb.eValueTypeVariableThreadLocal
326 eInputReaderGranularityInvalid = _lldb.eInputReaderGranularityInvalid
327 eInputReaderGranularityByte = _lldb.eInputReaderGranularityByte
328 eInputReaderGranularityWord = _lldb.eInputReaderGranularityWord
329 eInputReaderGranularityLine = _lldb.eInputReaderGranularityLine
330 eInputReaderGranularityAll = _lldb.eInputReaderGranularityAll
331 eSymbolContextTarget = _lldb.eSymbolContextTarget
332 eSymbolContextModule = _lldb.eSymbolContextModule
333 eSymbolContextCompUnit = _lldb.eSymbolContextCompUnit
334 eSymbolContextFunction = _lldb.eSymbolContextFunction
335 eSymbolContextBlock = _lldb.eSymbolContextBlock
336 eSymbolContextLineEntry = _lldb.eSymbolContextLineEntry
337 eSymbolContextSymbol = _lldb.eSymbolContextSymbol
338 eSymbolContextEverything = _lldb.eSymbolContextEverything
339 eSymbolContextVariable = _lldb.eSymbolContextVariable
340 ePermissionsWritable = _lldb.ePermissionsWritable
341 ePermissionsReadable = _lldb.ePermissionsReadable
342 ePermissionsExecutable = _lldb.ePermissionsExecutable
343 eInputReaderActivate = _lldb.eInputReaderActivate
344 eInputReaderAsynchronousOutputWritten = _lldb.eInputReaderAsynchronousOutputWritten
345 eInputReaderReactivate = _lldb.eInputReaderReactivate
346 eInputReaderDeactivate = _lldb.eInputReaderDeactivate
347 eInputReaderGotToken = _lldb.eInputReaderGotToken
348 eInputReaderInterrupt = _lldb.eInputReaderInterrupt
349 eInputReaderEndOfFile = _lldb.eInputReaderEndOfFile
350 eInputReaderDone = _lldb.eInputReaderDone
351 eBreakpointEventTypeInvalidType = _lldb.eBreakpointEventTypeInvalidType
352 eBreakpointEventTypeAdded = _lldb.eBreakpointEventTypeAdded
353 eBreakpointEventTypeRemoved = _lldb.eBreakpointEventTypeRemoved
354 eBreakpointEventTypeLocationsAdded = _lldb.eBreakpointEventTypeLocationsAdded
355 eBreakpointEventTypeLocationsRemoved = _lldb.eBreakpointEventTypeLocationsRemoved
356 eBreakpointEventTypeLocationsResolved = _lldb.eBreakpointEventTypeLocationsResolved
357 eBreakpointEventTypeEnabled = _lldb.eBreakpointEventTypeEnabled
358 eBreakpointEventTypeDisabled = _lldb.eBreakpointEventTypeDisabled
359 eBreakpointEventTypeCommandChanged = _lldb.eBreakpointEventTypeCommandChanged
360 eBreakpointEventTypeConditionChanged = _lldb.eBreakpointEventTypeConditionChanged
361 eBreakpointEventTypeIgnoreChanged = _lldb.eBreakpointEventTypeIgnoreChanged
362 eBreakpointEventTypeThreadChanged = _lldb.eBreakpointEventTypeThreadChanged
363 eBreakpointEventTypeAutoContinueChanged = _lldb.eBreakpointEventTypeAutoContinueChanged
364 eWatchpointEventTypeInvalidType = _lldb.eWatchpointEventTypeInvalidType
365 eWatchpointEventTypeAdded = _lldb.eWatchpointEventTypeAdded
366 eWatchpointEventTypeRemoved = _lldb.eWatchpointEventTypeRemoved
367 eWatchpointEventTypeEnabled = _lldb.eWatchpointEventTypeEnabled
368 eWatchpointEventTypeDisabled = _lldb.eWatchpointEventTypeDisabled
369 eWatchpointEventTypeCommandChanged = _lldb.eWatchpointEventTypeCommandChanged
370 eWatchpointEventTypeConditionChanged = _lldb.eWatchpointEventTypeConditionChanged
371 eWatchpointEventTypeIgnoreChanged = _lldb.eWatchpointEventTypeIgnoreChanged
372 eWatchpointEventTypeThreadChanged = _lldb.eWatchpointEventTypeThreadChanged
373 eWatchpointEventTypeTypeChanged = _lldb.eWatchpointEventTypeTypeChanged
374 eLanguageTypeUnknown = _lldb.eLanguageTypeUnknown
375 eLanguageTypeC89 = _lldb.eLanguageTypeC89
376 eLanguageTypeC = _lldb.eLanguageTypeC
377 eLanguageTypeAda83 = _lldb.eLanguageTypeAda83
378 eLanguageTypeC_plus_plus = _lldb.eLanguageTypeC_plus_plus
379 eLanguageTypeCobol74 = _lldb.eLanguageTypeCobol74
380 eLanguageTypeCobol85 = _lldb.eLanguageTypeCobol85
381 eLanguageTypeFortran77 = _lldb.eLanguageTypeFortran77
382 eLanguageTypeFortran90 = _lldb.eLanguageTypeFortran90
383 eLanguageTypePascal83 = _lldb.eLanguageTypePascal83
384 eLanguageTypeModula2 = _lldb.eLanguageTypeModula2
385 eLanguageTypeJava = _lldb.eLanguageTypeJava
386 eLanguageTypeC99 = _lldb.eLanguageTypeC99
387 eLanguageTypeAda95 = _lldb.eLanguageTypeAda95
388 eLanguageTypeFortran95 = _lldb.eLanguageTypeFortran95
389 eLanguageTypePLI = _lldb.eLanguageTypePLI
390 eLanguageTypeObjC = _lldb.eLanguageTypeObjC
391 eLanguageTypeObjC_plus_plus = _lldb.eLanguageTypeObjC_plus_plus
392 eLanguageTypeUPC = _lldb.eLanguageTypeUPC
393 eLanguageTypeD = _lldb.eLanguageTypeD
394 eLanguageTypePython = _lldb.eLanguageTypePython
395 eLanguageTypeOpenCL = _lldb.eLanguageTypeOpenCL
396 eLanguageTypeGo = _lldb.eLanguageTypeGo
397 eLanguageTypeModula3 = _lldb.eLanguageTypeModula3
398 eLanguageTypeHaskell = _lldb.eLanguageTypeHaskell
399 eLanguageTypeC_plus_plus_03 = _lldb.eLanguageTypeC_plus_plus_03
400 eLanguageTypeC_plus_plus_11 = _lldb.eLanguageTypeC_plus_plus_11
401 eLanguageTypeOCaml = _lldb.eLanguageTypeOCaml
402 eLanguageTypeRust = _lldb.eLanguageTypeRust
403 eLanguageTypeC11 = _lldb.eLanguageTypeC11
404 eLanguageTypeSwift = _lldb.eLanguageTypeSwift
405 eLanguageTypeJulia = _lldb.eLanguageTypeJulia
406 eLanguageTypeDylan = _lldb.eLanguageTypeDylan
407 eLanguageTypeC_plus_plus_14 = _lldb.eLanguageTypeC_plus_plus_14
408 eLanguageTypeFortran03 = _lldb.eLanguageTypeFortran03
409 eLanguageTypeFortran08 = _lldb.eLanguageTypeFortran08
410 eLanguageTypeMipsAssembler = _lldb.eLanguageTypeMipsAssembler
411 eLanguageTypeExtRenderScript = _lldb.eLanguageTypeExtRenderScript
412 eNumLanguageTypes = _lldb.eNumLanguageTypes
413 eInstrumentationRuntimeTypeAddressSanitizer = _lldb.eInstrumentationRuntimeTypeAddressSanitizer
414 eInstrumentationRuntimeTypeThreadSanitizer = _lldb.eInstrumentationRuntimeTypeThreadSanitizer
415 eInstrumentationRuntimeTypeUndefinedBehaviorSanitizer = _lldb.eInstrumentationRuntimeTypeUndefinedBehaviorSanitizer
416 eInstrumentationRuntimeTypeMainThreadChecker = _lldb.eInstrumentationRuntimeTypeMainThreadChecker
417 eInstrumentationRuntimeTypeSwiftRuntimeReporting = _lldb.eInstrumentationRuntimeTypeSwiftRuntimeReporting
418 eNumInstrumentationRuntimeTypes = _lldb.eNumInstrumentationRuntimeTypes
419 eNoDynamicValues = _lldb.eNoDynamicValues
420 eDynamicCanRunTarget = _lldb.eDynamicCanRunTarget
421 eDynamicDontRunTarget = _lldb.eDynamicDontRunTarget
422 eStopShowColumnAnsiOrCaret = _lldb.eStopShowColumnAnsiOrCaret
423 eStopShowColumnAnsi = _lldb.eStopShowColumnAnsi
424 eStopShowColumnCaret = _lldb.eStopShowColumnCaret
425 eStopShowColumnNone = _lldb.eStopShowColumnNone
426 eAccessNone = _lldb.eAccessNone
427 eAccessPublic = _lldb.eAccessPublic
428 eAccessPrivate = _lldb.eAccessPrivate
429 eAccessProtected = _lldb.eAccessProtected
430 eAccessPackage = _lldb.eAccessPackage
431 eArgTypeAddress = _lldb.eArgTypeAddress
432 eArgTypeAddressOrExpression = _lldb.eArgTypeAddressOrExpression
433 eArgTypeAliasName = _lldb.eArgTypeAliasName
434 eArgTypeAliasOptions = _lldb.eArgTypeAliasOptions
435 eArgTypeArchitecture = _lldb.eArgTypeArchitecture
436 eArgTypeBoolean = _lldb.eArgTypeBoolean
437 eArgTypeBreakpointID = _lldb.eArgTypeBreakpointID
438 eArgTypeBreakpointIDRange = _lldb.eArgTypeBreakpointIDRange
439 eArgTypeBreakpointName = _lldb.eArgTypeBreakpointName
440 eArgTypeByteSize = _lldb.eArgTypeByteSize
441 eArgTypeClassName = _lldb.eArgTypeClassName
442 eArgTypeCommandName = _lldb.eArgTypeCommandName
443 eArgTypeCount = _lldb.eArgTypeCount
444 eArgTypeDescriptionVerbosity = _lldb.eArgTypeDescriptionVerbosity
445 eArgTypeDirectoryName = _lldb.eArgTypeDirectoryName
446 eArgTypeDisassemblyFlavor = _lldb.eArgTypeDisassemblyFlavor
447 eArgTypeEndAddress = _lldb.eArgTypeEndAddress
448 eArgTypeExpression = _lldb.eArgTypeExpression
449 eArgTypeExpressionPath = _lldb.eArgTypeExpressionPath
450 eArgTypeExprFormat = _lldb.eArgTypeExprFormat
451 eArgTypeFilename = _lldb.eArgTypeFilename
452 eArgTypeFormat = _lldb.eArgTypeFormat
453 eArgTypeFrameIndex = _lldb.eArgTypeFrameIndex
454 eArgTypeFullName = _lldb.eArgTypeFullName
455 eArgTypeFunctionName = _lldb.eArgTypeFunctionName
456 eArgTypeFunctionOrSymbol = _lldb.eArgTypeFunctionOrSymbol
457 eArgTypeGDBFormat = _lldb.eArgTypeGDBFormat
458 eArgTypeHelpText = _lldb.eArgTypeHelpText
459 eArgTypeIndex = _lldb.eArgTypeIndex
460 eArgTypeLanguage = _lldb.eArgTypeLanguage
461 eArgTypeLineNum = _lldb.eArgTypeLineNum
462 eArgTypeLogCategory = _lldb.eArgTypeLogCategory
463 eArgTypeLogChannel = _lldb.eArgTypeLogChannel
464 eArgTypeMethod = _lldb.eArgTypeMethod
465 eArgTypeName = _lldb.eArgTypeName
466 eArgTypeNewPathPrefix = _lldb.eArgTypeNewPathPrefix
467 eArgTypeNumLines = _lldb.eArgTypeNumLines
468 eArgTypeNumberPerLine = _lldb.eArgTypeNumberPerLine
469 eArgTypeOffset = _lldb.eArgTypeOffset
470 eArgTypeOldPathPrefix = _lldb.eArgTypeOldPathPrefix
471 eArgTypeOneLiner = _lldb.eArgTypeOneLiner
472 eArgTypePath = _lldb.eArgTypePath
473 eArgTypePermissionsNumber = _lldb.eArgTypePermissionsNumber
474 eArgTypePermissionsString = _lldb.eArgTypePermissionsString
475 eArgTypePid = _lldb.eArgTypePid
476 eArgTypePlugin = _lldb.eArgTypePlugin
477 eArgTypeProcessName = _lldb.eArgTypeProcessName
478 eArgTypePythonClass = _lldb.eArgTypePythonClass
479 eArgTypePythonFunction = _lldb.eArgTypePythonFunction
480 eArgTypePythonScript = _lldb.eArgTypePythonScript
481 eArgTypeQueueName = _lldb.eArgTypeQueueName
482 eArgTypeRegisterName = _lldb.eArgTypeRegisterName
483 eArgTypeRegularExpression = _lldb.eArgTypeRegularExpression
484 eArgTypeRunArgs = _lldb.eArgTypeRunArgs
485 eArgTypeRunMode = _lldb.eArgTypeRunMode
486 eArgTypeScriptedCommandSynchronicity = _lldb.eArgTypeScriptedCommandSynchronicity
487 eArgTypeScriptLang = _lldb.eArgTypeScriptLang
488 eArgTypeSearchWord = _lldb.eArgTypeSearchWord
489 eArgTypeSelector = _lldb.eArgTypeSelector
490 eArgTypeSettingIndex = _lldb.eArgTypeSettingIndex
491 eArgTypeSettingKey = _lldb.eArgTypeSettingKey
492 eArgTypeSettingPrefix = _lldb.eArgTypeSettingPrefix
493 eArgTypeSettingVariableName = _lldb.eArgTypeSettingVariableName
494 eArgTypeShlibName = _lldb.eArgTypeShlibName
495 eArgTypeSourceFile = _lldb.eArgTypeSourceFile
496 eArgTypeSortOrder = _lldb.eArgTypeSortOrder
497 eArgTypeStartAddress = _lldb.eArgTypeStartAddress
498 eArgTypeSummaryString = _lldb.eArgTypeSummaryString
499 eArgTypeSymbol = _lldb.eArgTypeSymbol
500 eArgTypeThreadID = _lldb.eArgTypeThreadID
501 eArgTypeThreadIndex = _lldb.eArgTypeThreadIndex
502 eArgTypeThreadName = _lldb.eArgTypeThreadName
503 eArgTypeTypeName = _lldb.eArgTypeTypeName
504 eArgTypeUnsignedInteger = _lldb.eArgTypeUnsignedInteger
505 eArgTypeUnixSignal = _lldb.eArgTypeUnixSignal
506 eArgTypeVarName = _lldb.eArgTypeVarName
507 eArgTypeValue = _lldb.eArgTypeValue
508 eArgTypeWidth = _lldb.eArgTypeWidth
509 eArgTypeNone = _lldb.eArgTypeNone
510 eArgTypePlatform = _lldb.eArgTypePlatform
511 eArgTypeWatchpointID = _lldb.eArgTypeWatchpointID
512 eArgTypeWatchpointIDRange = _lldb.eArgTypeWatchpointIDRange
513 eArgTypeWatchType = _lldb.eArgTypeWatchType
514 eArgRawInput = _lldb.eArgRawInput
515 eArgTypeCommand = _lldb.eArgTypeCommand
516 eArgTypeLastArg = _lldb.eArgTypeLastArg
517 eSymbolTypeAny = _lldb.eSymbolTypeAny
518 eSymbolTypeInvalid = _lldb.eSymbolTypeInvalid
519 eSymbolTypeAbsolute = _lldb.eSymbolTypeAbsolute
520 eSymbolTypeCode = _lldb.eSymbolTypeCode
521 eSymbolTypeResolver = _lldb.eSymbolTypeResolver
522 eSymbolTypeData = _lldb.eSymbolTypeData
523 eSymbolTypeTrampoline = _lldb.eSymbolTypeTrampoline
524 eSymbolTypeRuntime = _lldb.eSymbolTypeRuntime
525 eSymbolTypeException = _lldb.eSymbolTypeException
526 eSymbolTypeSourceFile = _lldb.eSymbolTypeSourceFile
527 eSymbolTypeHeaderFile = _lldb.eSymbolTypeHeaderFile
528 eSymbolTypeObjectFile = _lldb.eSymbolTypeObjectFile
529 eSymbolTypeCommonBlock = _lldb.eSymbolTypeCommonBlock
530 eSymbolTypeBlock = _lldb.eSymbolTypeBlock
531 eSymbolTypeLocal = _lldb.eSymbolTypeLocal
532 eSymbolTypeParam = _lldb.eSymbolTypeParam
533 eSymbolTypeVariable = _lldb.eSymbolTypeVariable
534 eSymbolTypeVariableType = _lldb.eSymbolTypeVariableType
535 eSymbolTypeLineEntry = _lldb.eSymbolTypeLineEntry
536 eSymbolTypeLineHeader = _lldb.eSymbolTypeLineHeader
537 eSymbolTypeScopeBegin = _lldb.eSymbolTypeScopeBegin
538 eSymbolTypeScopeEnd = _lldb.eSymbolTypeScopeEnd
539 eSymbolTypeAdditional = _lldb.eSymbolTypeAdditional
540 eSymbolTypeCompiler = _lldb.eSymbolTypeCompiler
541 eSymbolTypeInstrumentation = _lldb.eSymbolTypeInstrumentation
542 eSymbolTypeUndefined = _lldb.eSymbolTypeUndefined
543 eSymbolTypeObjCClass = _lldb.eSymbolTypeObjCClass
544 eSymbolTypeObjCMetaClass = _lldb.eSymbolTypeObjCMetaClass
545 eSymbolTypeObjCIVar = _lldb.eSymbolTypeObjCIVar
546 eSymbolTypeReExported = _lldb.eSymbolTypeReExported
547 eSectionTypeInvalid = _lldb.eSectionTypeInvalid
548 eSectionTypeCode = _lldb.eSectionTypeCode
549 eSectionTypeContainer = _lldb.eSectionTypeContainer
550 eSectionTypeData = _lldb.eSectionTypeData
551 eSectionTypeDataCString = _lldb.eSectionTypeDataCString
552 eSectionTypeDataCStringPointers = _lldb.eSectionTypeDataCStringPointers
553 eSectionTypeDataSymbolAddress = _lldb.eSectionTypeDataSymbolAddress
554 eSectionTypeData4 = _lldb.eSectionTypeData4
555 eSectionTypeData8 = _lldb.eSectionTypeData8
556 eSectionTypeData16 = _lldb.eSectionTypeData16
557 eSectionTypeDataPointers = _lldb.eSectionTypeDataPointers
558 eSectionTypeDebug = _lldb.eSectionTypeDebug
559 eSectionTypeZeroFill = _lldb.eSectionTypeZeroFill
560 eSectionTypeDataObjCMessageRefs = _lldb.eSectionTypeDataObjCMessageRefs
561 eSectionTypeDataObjCCFStrings = _lldb.eSectionTypeDataObjCCFStrings
562 eSectionTypeDWARFDebugAbbrev = _lldb.eSectionTypeDWARFDebugAbbrev
563 eSectionTypeDWARFDebugAddr = _lldb.eSectionTypeDWARFDebugAddr
564 eSectionTypeDWARFDebugAranges = _lldb.eSectionTypeDWARFDebugAranges
565 eSectionTypeDWARFDebugCuIndex = _lldb.eSectionTypeDWARFDebugCuIndex
566 eSectionTypeDWARFDebugFrame = _lldb.eSectionTypeDWARFDebugFrame
567 eSectionTypeDWARFDebugInfo = _lldb.eSectionTypeDWARFDebugInfo
568 eSectionTypeDWARFDebugLine = _lldb.eSectionTypeDWARFDebugLine
569 eSectionTypeDWARFDebugLoc = _lldb.eSectionTypeDWARFDebugLoc
570 eSectionTypeDWARFDebugMacInfo = _lldb.eSectionTypeDWARFDebugMacInfo
571 eSectionTypeDWARFDebugMacro = _lldb.eSectionTypeDWARFDebugMacro
572 eSectionTypeDWARFDebugPubNames = _lldb.eSectionTypeDWARFDebugPubNames
573 eSectionTypeDWARFDebugPubTypes = _lldb.eSectionTypeDWARFDebugPubTypes
574 eSectionTypeDWARFDebugRanges = _lldb.eSectionTypeDWARFDebugRanges
575 eSectionTypeDWARFDebugStr = _lldb.eSectionTypeDWARFDebugStr
576 eSectionTypeDWARFDebugStrOffsets = _lldb.eSectionTypeDWARFDebugStrOffsets
577 eSectionTypeDWARFAppleNames = _lldb.eSectionTypeDWARFAppleNames
578 eSectionTypeDWARFAppleTypes = _lldb.eSectionTypeDWARFAppleTypes
579 eSectionTypeDWARFAppleNamespaces = _lldb.eSectionTypeDWARFAppleNamespaces
580 eSectionTypeDWARFAppleObjC = _lldb.eSectionTypeDWARFAppleObjC
581 eSectionTypeELFSymbolTable = _lldb.eSectionTypeELFSymbolTable
582 eSectionTypeELFDynamicSymbols = _lldb.eSectionTypeELFDynamicSymbols
583 eSectionTypeELFRelocationEntries = _lldb.eSectionTypeELFRelocationEntries
584 eSectionTypeELFDynamicLinkInfo = _lldb.eSectionTypeELFDynamicLinkInfo
585 eSectionTypeEHFrame = _lldb.eSectionTypeEHFrame
586 eSectionTypeARMexidx = _lldb.eSectionTypeARMexidx
587 eSectionTypeARMextab = _lldb.eSectionTypeARMextab
588 eSectionTypeCompactUnwind = _lldb.eSectionTypeCompactUnwind
589 eSectionTypeGoSymtab = _lldb.eSectionTypeGoSymtab
590 eSectionTypeAbsoluteAddress = _lldb.eSectionTypeAbsoluteAddress
591 eSectionTypeDWARFGNUDebugAltLink = _lldb.eSectionTypeDWARFGNUDebugAltLink
592 eSectionTypeDWARFDebugTypes = _lldb.eSectionTypeDWARFDebugTypes
593 eSectionTypeDWARFDebugNames = _lldb.eSectionTypeDWARFDebugNames
594 eSectionTypeOther = _lldb.eSectionTypeOther
595 eSectionTypeDWARFDebugLineStr = _lldb.eSectionTypeDWARFDebugLineStr
596 eSectionTypeDWARFDebugRngLists = _lldb.eSectionTypeDWARFDebugRngLists
597 eSectionTypeDWARFDebugLocLists = _lldb.eSectionTypeDWARFDebugLocLists
598 eSectionTypeDWARFDebugAbbrevDwo = _lldb.eSectionTypeDWARFDebugAbbrevDwo
599 eSectionTypeDWARFDebugInfoDwo = _lldb.eSectionTypeDWARFDebugInfoDwo
600 eSectionTypeDWARFDebugStrDwo = _lldb.eSectionTypeDWARFDebugStrDwo
601 eSectionTypeDWARFDebugStrOffsetsDwo = _lldb.eSectionTypeDWARFDebugStrOffsetsDwo
602 eEmulateInstructionOptionNone = _lldb.eEmulateInstructionOptionNone
603 eEmulateInstructionOptionAutoAdvancePC = _lldb.eEmulateInstructionOptionAutoAdvancePC
604 eEmulateInstructionOptionIgnoreConditions = _lldb.eEmulateInstructionOptionIgnoreConditions
605 eFunctionNameTypeNone = _lldb.eFunctionNameTypeNone
606 eFunctionNameTypeAuto = _lldb.eFunctionNameTypeAuto
607 eFunctionNameTypeFull = _lldb.eFunctionNameTypeFull
608 eFunctionNameTypeBase = _lldb.eFunctionNameTypeBase
609 eFunctionNameTypeMethod = _lldb.eFunctionNameTypeMethod
610 eFunctionNameTypeSelector = _lldb.eFunctionNameTypeSelector
611 eFunctionNameTypeAny = _lldb.eFunctionNameTypeAny
612 eBasicTypeInvalid = _lldb.eBasicTypeInvalid
613 eBasicTypeVoid = _lldb.eBasicTypeVoid
614 eBasicTypeChar = _lldb.eBasicTypeChar
615 eBasicTypeSignedChar = _lldb.eBasicTypeSignedChar
616 eBasicTypeUnsignedChar = _lldb.eBasicTypeUnsignedChar
617 eBasicTypeWChar = _lldb.eBasicTypeWChar
618 eBasicTypeSignedWChar = _lldb.eBasicTypeSignedWChar
619 eBasicTypeUnsignedWChar = _lldb.eBasicTypeUnsignedWChar
620 eBasicTypeChar16 = _lldb.eBasicTypeChar16
621 eBasicTypeChar32 = _lldb.eBasicTypeChar32
622 eBasicTypeShort = _lldb.eBasicTypeShort
623 eBasicTypeUnsignedShort = _lldb.eBasicTypeUnsignedShort
624 eBasicTypeInt = _lldb.eBasicTypeInt
625 eBasicTypeUnsignedInt = _lldb.eBasicTypeUnsignedInt
626 eBasicTypeLong = _lldb.eBasicTypeLong
627 eBasicTypeUnsignedLong = _lldb.eBasicTypeUnsignedLong
628 eBasicTypeLongLong = _lldb.eBasicTypeLongLong
629 eBasicTypeUnsignedLongLong = _lldb.eBasicTypeUnsignedLongLong
630 eBasicTypeInt128 = _lldb.eBasicTypeInt128
631 eBasicTypeUnsignedInt128 = _lldb.eBasicTypeUnsignedInt128
632 eBasicTypeBool = _lldb.eBasicTypeBool
633 eBasicTypeHalf = _lldb.eBasicTypeHalf
634 eBasicTypeFloat = _lldb.eBasicTypeFloat
635 eBasicTypeDouble = _lldb.eBasicTypeDouble
636 eBasicTypeLongDouble = _lldb.eBasicTypeLongDouble
637 eBasicTypeFloatComplex = _lldb.eBasicTypeFloatComplex
638 eBasicTypeDoubleComplex = _lldb.eBasicTypeDoubleComplex
639 eBasicTypeLongDoubleComplex = _lldb.eBasicTypeLongDoubleComplex
640 eBasicTypeObjCID = _lldb.eBasicTypeObjCID
641 eBasicTypeObjCClass = _lldb.eBasicTypeObjCClass
642 eBasicTypeObjCSel = _lldb.eBasicTypeObjCSel
643 eBasicTypeNullPtr = _lldb.eBasicTypeNullPtr
644 eBasicTypeOther = _lldb.eBasicTypeOther
645 eTraceTypeNone = _lldb.eTraceTypeNone
646 eTraceTypeProcessorTrace = _lldb.eTraceTypeProcessorTrace
647 eStructuredDataTypeInvalid = _lldb.eStructuredDataTypeInvalid
648 eStructuredDataTypeNull = _lldb.eStructuredDataTypeNull
649 eStructuredDataTypeGeneric = _lldb.eStructuredDataTypeGeneric
650 eStructuredDataTypeArray = _lldb.eStructuredDataTypeArray
651 eStructuredDataTypeInteger = _lldb.eStructuredDataTypeInteger
652 eStructuredDataTypeFloat = _lldb.eStructuredDataTypeFloat
653 eStructuredDataTypeBoolean = _lldb.eStructuredDataTypeBoolean
654 eStructuredDataTypeString = _lldb.eStructuredDataTypeString
655 eStructuredDataTypeDictionary = _lldb.eStructuredDataTypeDictionary
656 eTypeClassInvalid = _lldb.eTypeClassInvalid
657 eTypeClassArray = _lldb.eTypeClassArray
658 eTypeClassBlockPointer = _lldb.eTypeClassBlockPointer
659 eTypeClassBuiltin = _lldb.eTypeClassBuiltin
660 eTypeClassClass = _lldb.eTypeClassClass
661 eTypeClassComplexFloat = _lldb.eTypeClassComplexFloat
662 eTypeClassComplexInteger = _lldb.eTypeClassComplexInteger
663 eTypeClassEnumeration = _lldb.eTypeClassEnumeration
664 eTypeClassFunction = _lldb.eTypeClassFunction
665 eTypeClassMemberPointer = _lldb.eTypeClassMemberPointer
666 eTypeClassObjCObject = _lldb.eTypeClassObjCObject
667 eTypeClassObjCInterface = _lldb.eTypeClassObjCInterface
668 eTypeClassObjCObjectPointer = _lldb.eTypeClassObjCObjectPointer
669 eTypeClassPointer = _lldb.eTypeClassPointer
670 eTypeClassReference = _lldb.eTypeClassReference
671 eTypeClassStruct = _lldb.eTypeClassStruct
672 eTypeClassTypedef = _lldb.eTypeClassTypedef
673 eTypeClassUnion = _lldb.eTypeClassUnion
674 eTypeClassVector = _lldb.eTypeClassVector
675 eTypeClassOther = _lldb.eTypeClassOther
676 eTypeClassAny = _lldb.eTypeClassAny
677 eTemplateArgumentKindNull = _lldb.eTemplateArgumentKindNull
678 eTemplateArgumentKindType = _lldb.eTemplateArgumentKindType
679 eTemplateArgumentKindDeclaration = _lldb.eTemplateArgumentKindDeclaration
680 eTemplateArgumentKindIntegral = _lldb.eTemplateArgumentKindIntegral
681 eTemplateArgumentKindTemplate = _lldb.eTemplateArgumentKindTemplate
682 eTemplateArgumentKindTemplateExpansion = _lldb.eTemplateArgumentKindTemplateExpansion
683 eTemplateArgumentKindExpression = _lldb.eTemplateArgumentKindExpression
684 eTemplateArgumentKindPack = _lldb.eTemplateArgumentKindPack
685 eTemplateArgumentKindNullPtr = _lldb.eTemplateArgumentKindNullPtr
686 eTypeOptionNone = _lldb.eTypeOptionNone
687 eTypeOptionCascade = _lldb.eTypeOptionCascade
688 eTypeOptionSkipPointers = _lldb.eTypeOptionSkipPointers
689 eTypeOptionSkipReferences = _lldb.eTypeOptionSkipReferences
690 eTypeOptionHideChildren = _lldb.eTypeOptionHideChildren
691 eTypeOptionHideValue = _lldb.eTypeOptionHideValue
692 eTypeOptionShowOneLiner = _lldb.eTypeOptionShowOneLiner
693 eTypeOptionHideNames = _lldb.eTypeOptionHideNames
694 eTypeOptionNonCacheable = _lldb.eTypeOptionNonCacheable
695 eTypeOptionHideEmptyAggregates = _lldb.eTypeOptionHideEmptyAggregates
696 eTypeOptionFrontEndWantsDereference = _lldb.eTypeOptionFrontEndWantsDereference
697 eFrameCompareInvalid = _lldb.eFrameCompareInvalid
698 eFrameCompareUnknown = _lldb.eFrameCompareUnknown
699 eFrameCompareEqual = _lldb.eFrameCompareEqual
700 eFrameCompareSameParent = _lldb.eFrameCompareSameParent
701 eFrameCompareYounger = _lldb.eFrameCompareYounger
702 eFrameCompareOlder = _lldb.eFrameCompareOlder
703 eFilePermissionsUserRead = _lldb.eFilePermissionsUserRead
704 eFilePermissionsUserWrite = _lldb.eFilePermissionsUserWrite
705 eFilePermissionsUserExecute = _lldb.eFilePermissionsUserExecute
706 eFilePermissionsGroupRead = _lldb.eFilePermissionsGroupRead
707 eFilePermissionsGroupWrite = _lldb.eFilePermissionsGroupWrite
708 eFilePermissionsGroupExecute = _lldb.eFilePermissionsGroupExecute
709 eFilePermissionsWorldRead = _lldb.eFilePermissionsWorldRead
710 eFilePermissionsWorldWrite = _lldb.eFilePermissionsWorldWrite
711 eFilePermissionsWorldExecute = _lldb.eFilePermissionsWorldExecute
712 eFilePermissionsUserRW = _lldb.eFilePermissionsUserRW
713 eFileFilePermissionsUserRX = _lldb.eFileFilePermissionsUserRX
714 eFilePermissionsUserRWX = _lldb.eFilePermissionsUserRWX
715 eFilePermissionsGroupRW = _lldb.eFilePermissionsGroupRW
716 eFilePermissionsGroupRX = _lldb.eFilePermissionsGroupRX
717 eFilePermissionsGroupRWX = _lldb.eFilePermissionsGroupRWX
718 eFilePermissionsWorldRW = _lldb.eFilePermissionsWorldRW
719 eFilePermissionsWorldRX = _lldb.eFilePermissionsWorldRX
720 eFilePermissionsWorldRWX = _lldb.eFilePermissionsWorldRWX
721 eFilePermissionsEveryoneR = _lldb.eFilePermissionsEveryoneR
722 eFilePermissionsEveryoneW = _lldb.eFilePermissionsEveryoneW
723 eFilePermissionsEveryoneX = _lldb.eFilePermissionsEveryoneX
724 eFilePermissionsEveryoneRW = _lldb.eFilePermissionsEveryoneRW
725 eFilePermissionsEveryoneRX = _lldb.eFilePermissionsEveryoneRX
726 eFilePermissionsEveryoneRWX = _lldb.eFilePermissionsEveryoneRWX
727 eFilePermissionsFileDefault = _lldb.eFilePermissionsFileDefault
728 eFilePermissionsDirectoryDefault = _lldb.eFilePermissionsDirectoryDefault
729 eQueueItemKindUnknown = _lldb.eQueueItemKindUnknown
730 eQueueItemKindFunction = _lldb.eQueueItemKindFunction
731 eQueueItemKindBlock = _lldb.eQueueItemKindBlock
732 eQueueKindUnknown = _lldb.eQueueKindUnknown
733 eQueueKindSerial = _lldb.eQueueKindSerial
734 eQueueKindConcurrent = _lldb.eQueueKindConcurrent
735 eExpressionEvaluationParse = _lldb.eExpressionEvaluationParse
736 eExpressionEvaluationIRGen = _lldb.eExpressionEvaluationIRGen
737 eExpressionEvaluationExecution = _lldb.eExpressionEvaluationExecution
738 eExpressionEvaluationComplete = _lldb.eExpressionEvaluationComplete
739 eWatchpointKindWrite = _lldb.eWatchpointKindWrite
740 eWatchpointKindRead = _lldb.eWatchpointKindRead
741 eGdbSignalBadAccess = _lldb.eGdbSignalBadAccess
742 eGdbSignalBadInstruction = _lldb.eGdbSignalBadInstruction
743 eGdbSignalArithmetic = _lldb.eGdbSignalArithmetic
744 eGdbSignalEmulation = _lldb.eGdbSignalEmulation
745 eGdbSignalSoftware = _lldb.eGdbSignalSoftware
746 eGdbSignalBreakpoint = _lldb.eGdbSignalBreakpoint
747 ePathTypeLLDBShlibDir = _lldb.ePathTypeLLDBShlibDir
748 ePathTypeSupportExecutableDir = _lldb.ePathTypeSupportExecutableDir
749 ePathTypeHeaderDir = _lldb.ePathTypeHeaderDir
750 ePathTypePythonDir = _lldb.ePathTypePythonDir
751 ePathTypeLLDBSystemPlugins = _lldb.ePathTypeLLDBSystemPlugins
752 ePathTypeLLDBUserPlugins = _lldb.ePathTypeLLDBUserPlugins
753 ePathTypeLLDBTempSystemDir = _lldb.ePathTypeLLDBTempSystemDir
754 ePathTypeGlobalLLDBTempSystemDir = _lldb.ePathTypeGlobalLLDBTempSystemDir
755 ePathTypeClangDir = _lldb.ePathTypeClangDir
756 eMemberFunctionKindUnknown = _lldb.eMemberFunctionKindUnknown
757 eMemberFunctionKindConstructor = _lldb.eMemberFunctionKindConstructor
758 eMemberFunctionKindDestructor = _lldb.eMemberFunctionKindDestructor
759 eMemberFunctionKindInstanceMethod = _lldb.eMemberFunctionKindInstanceMethod
760 eMemberFunctionKindStaticMethod = _lldb.eMemberFunctionKindStaticMethod
761 eMatchTypeNormal = _lldb.eMatchTypeNormal
762 eMatchTypeRegex = _lldb.eMatchTypeRegex
763 eMatchTypeStartsWith = _lldb.eMatchTypeStartsWith
764 eTypeHasChildren = _lldb.eTypeHasChildren
765 eTypeHasValue = _lldb.eTypeHasValue
766 eTypeIsArray = _lldb.eTypeIsArray
767 eTypeIsBlock = _lldb.eTypeIsBlock
768 eTypeIsBuiltIn = _lldb.eTypeIsBuiltIn
769 eTypeIsClass = _lldb.eTypeIsClass
770 eTypeIsCPlusPlus = _lldb.eTypeIsCPlusPlus
771 eTypeIsEnumeration = _lldb.eTypeIsEnumeration
772 eTypeIsFuncPrototype = _lldb.eTypeIsFuncPrototype
773 eTypeIsMember = _lldb.eTypeIsMember
774 eTypeIsObjC = _lldb.eTypeIsObjC
775 eTypeIsPointer = _lldb.eTypeIsPointer
776 eTypeIsReference = _lldb.eTypeIsReference
777 eTypeIsStructUnion = _lldb.eTypeIsStructUnion
778 eTypeIsTemplate = _lldb.eTypeIsTemplate
779 eTypeIsTypedef = _lldb.eTypeIsTypedef
780 eTypeIsVector = _lldb.eTypeIsVector
781 eTypeIsScalar = _lldb.eTypeIsScalar
782 eTypeIsInteger = _lldb.eTypeIsInteger
783 eTypeIsFloat = _lldb.eTypeIsFloat
784 eTypeIsComplex = _lldb.eTypeIsComplex
785 eTypeIsSigned = _lldb.eTypeIsSigned
786 eTypeInstanceIsPointer = _lldb.eTypeInstanceIsPointer
787 eCommandRequiresTarget = _lldb.eCommandRequiresTarget
788 eCommandRequiresProcess = _lldb.eCommandRequiresProcess
789 eCommandRequiresThread = _lldb.eCommandRequiresThread
790 eCommandRequiresFrame = _lldb.eCommandRequiresFrame
791 eCommandRequiresRegContext = _lldb.eCommandRequiresRegContext
792 eCommandTryTargetAPILock = _lldb.eCommandTryTargetAPILock
793 eCommandProcessMustBeLaunched = _lldb.eCommandProcessMustBeLaunched
794 eCommandProcessMustBePaused = _lldb.eCommandProcessMustBePaused
795 eTypeSummaryCapped = _lldb.eTypeSummaryCapped
796 eTypeSummaryUncapped = _lldb.eTypeSummaryUncapped
798 """
799 A section + offset based address class.
800
801 The SBAddress class allows addresses to be relative to a section
802 that can move during runtime due to images (executables, shared
803 libraries, bundles, frameworks) being loaded at different
804 addresses than the addresses found in the object file that
805 represents them on disk. There are currently two types of addresses
806 for a section:
807 o file addresses
808 o load addresses
809
810 File addresses represents the virtual addresses that are in the 'on
811 disk' object files. These virtual addresses are converted to be
812 relative to unique sections scoped to the object file so that
813 when/if the addresses slide when the images are loaded/unloaded
814 in memory, we can easily track these changes without having to
815 update every object (compile unit ranges, line tables, function
816 address ranges, lexical block and inlined subroutine address
817 ranges, global and static variables) each time an image is loaded or
818 unloaded.
819
820 Load addresses represents the virtual addresses where each section
821 ends up getting loaded at runtime. Before executing a program, it
822 is common for all of the load addresses to be unresolved. When a
823 DynamicLoader plug-in receives notification that shared libraries
824 have been loaded/unloaded, the load addresses of the main executable
825 and any images (shared libraries) will be resolved/unresolved. When
826 this happens, breakpoints that are in one of these sections can be
827 set/cleared.
828
829 See docstring of SBFunction for example usage of SBAddress.
830 """
831 __swig_setmethods__ = {}
832 __setattr__ = lambda self, name, value: _swig_setattr(self, SBAddress, name, value)
833 __swig_getmethods__ = {}
834 __getattr__ = lambda self, name: _swig_getattr(self, SBAddress, name)
835 __repr__ = _swig_repr
837 """
838 __init__(lldb::SBAddress self) -> SBAddress
839 __init__(lldb::SBAddress self, SBAddress rhs) -> SBAddress
840 __init__(lldb::SBAddress self, SBSection section, lldb::addr_t offset) -> SBAddress
841 __init__(lldb::SBAddress self, lldb::addr_t load_addr, SBTarget target) -> SBAddress
842
843 Create an address by resolving a load address using the supplied target.
844 """
845 this = _lldb.new_SBAddress(*args)
846 try: self.this.append(this)
847 except: self.this = this
848 __swig_destroy__ = _lldb.delete_SBAddress
849 __del__ = lambda self : None;
851 """IsValid(SBAddress self) -> bool"""
852 return _lldb.SBAddress_IsValid(self)
853
855 return _lldb.SBAddress___nonzero__(self)
856 __bool__ = __nonzero__
857
858
860 return not self.__ne__(other)
861
863 """__ne__(SBAddress self, SBAddress rhs) -> bool"""
864 return _lldb.SBAddress___ne__(self, *args)
865
867 """Clear(SBAddress self)"""
868 return _lldb.SBAddress_Clear(self)
869
871 """GetFileAddress(SBAddress self) -> lldb::addr_t"""
872 return _lldb.SBAddress_GetFileAddress(self)
873
875 """GetLoadAddress(SBAddress self, SBTarget target) -> lldb::addr_t"""
876 return _lldb.SBAddress_GetLoadAddress(self, *args)
877
879 """SetLoadAddress(SBAddress self, lldb::addr_t load_addr, SBTarget target)"""
880 return _lldb.SBAddress_SetLoadAddress(self, *args)
881
883 """OffsetAddress(SBAddress self, lldb::addr_t offset) -> bool"""
884 return _lldb.SBAddress_OffsetAddress(self, *args)
885
887 """GetDescription(SBAddress self, SBStream description) -> bool"""
888 return _lldb.SBAddress_GetDescription(self, *args)
889
891 """GetSection(SBAddress self) -> SBSection"""
892 return _lldb.SBAddress_GetSection(self)
893
895 """GetOffset(SBAddress self) -> lldb::addr_t"""
896 return _lldb.SBAddress_GetOffset(self)
897
899 """SetAddress(SBAddress self, SBSection section, lldb::addr_t offset)"""
900 return _lldb.SBAddress_SetAddress(self, *args)
901
902 - def GetSymbolContext(self, *args):
903 """
904 GetSymbolContext(SBAddress self, uint32_t resolve_scope) -> SBSymbolContext
905
906 GetSymbolContext() and the following can lookup symbol information for a given address.
907 An address might refer to code or data from an existing module, or it
908 might refer to something on the stack or heap. The following functions
909 will only return valid values if the address has been resolved to a code
910 or data address using 'void SBAddress::SetLoadAddress(...)' or
911 'lldb::SBAddress SBTarget::ResolveLoadAddress (...)'.
912 """
913 return _lldb.SBAddress_GetSymbolContext(self, *args)
914
916 """
917 GetModule(SBAddress self) -> SBModule
918
919 GetModule() and the following grab individual objects for a given address and
920 are less efficient if you want more than one symbol related objects.
921 Use one of the following when you want multiple debug symbol related
922 objects for an address:
923 lldb::SBSymbolContext SBAddress::GetSymbolContext (uint32_t resolve_scope);
924 lldb::SBSymbolContext SBTarget::ResolveSymbolContextForAddress (const SBAddress &addr, uint32_t resolve_scope);
925 One or more bits from the SymbolContextItem enumerations can be logically
926 OR'ed together to more efficiently retrieve multiple symbol objects.
927 """
928 return _lldb.SBAddress_GetModule(self)
929
931 """GetCompileUnit(SBAddress self) -> SBCompileUnit"""
932 return _lldb.SBAddress_GetCompileUnit(self)
933
935 """GetFunction(SBAddress self) -> SBFunction"""
936 return _lldb.SBAddress_GetFunction(self)
937
939 """GetBlock(SBAddress self) -> SBBlock"""
940 return _lldb.SBAddress_GetBlock(self)
941
943 """GetSymbol(SBAddress self) -> SBSymbol"""
944 return _lldb.SBAddress_GetSymbol(self)
945
946 - def GetLineEntry(self):
947 """GetLineEntry(SBAddress self) -> SBLineEntry"""
948 return _lldb.SBAddress_GetLineEntry(self)
949
951 '''Get the load address for a lldb.SBAddress using the current target.'''
952 return self.GetLoadAddress (target)
953
955 '''Set the load address for a lldb.SBAddress using the current target.'''
956 return self.SetLoadAddress (load_addr, target)
957
959 '''Convert an address to a load address if there is a process and that process is alive, or to a file address otherwise.'''
960 if process.is_alive:
961 return self.GetLoadAddress (target)
962 else:
963 return self.GetFileAddress ()
964
966 '''Convert the address to an octal string'''
967 return '%o' % int(self)
968
970 '''Convert the address to an hex string'''
971 return '0x%x' % int(self)
972
973 __swig_getmethods__["module"] = GetModule
974 if _newclass: module = property(GetModule, None, doc='''A read only property that returns an lldb object that represents the module (lldb.SBModule) that this address resides within.''')
975
976 __swig_getmethods__["compile_unit"] = GetCompileUnit
977 if _newclass: compile_unit = property(GetCompileUnit, None, doc='''A read only property that returns an lldb object that represents the compile unit (lldb.SBCompileUnit) that this address resides within.''')
978
979 __swig_getmethods__["line_entry"] = GetLineEntry
980 if _newclass: line_entry = property(GetLineEntry, None, doc='''A read only property that returns an lldb object that represents the line entry (lldb.SBLineEntry) that this address resides within.''')
981
982 __swig_getmethods__["function"] = GetFunction
983 if _newclass: function = property(GetFunction, None, doc='''A read only property that returns an lldb object that represents the function (lldb.SBFunction) that this address resides within.''')
984
985 __swig_getmethods__["block"] = GetBlock
986 if _newclass: block = property(GetBlock, None, doc='''A read only property that returns an lldb object that represents the block (lldb.SBBlock) that this address resides within.''')
987
988 __swig_getmethods__["symbol"] = GetSymbol
989 if _newclass: symbol = property(GetSymbol, None, doc='''A read only property that returns an lldb object that represents the symbol (lldb.SBSymbol) that this address resides within.''')
990
991 __swig_getmethods__["offset"] = GetOffset
992 if _newclass: offset = property(GetOffset, None, doc='''A read only property that returns the section offset in bytes as an integer.''')
993
994 __swig_getmethods__["section"] = GetSection
995 if _newclass: section = property(GetSection, None, doc='''A read only property that returns an lldb object that represents the section (lldb.SBSection) that this address resides within.''')
996
997 __swig_getmethods__["file_addr"] = GetFileAddress
998 if _newclass: file_addr = property(GetFileAddress, None, doc='''A read only property that returns file address for the section as an integer. This is the address that represents the address as it is found in the object file that defines it.''')
999
1000 __swig_getmethods__["load_addr"] = __get_load_addr_property__
1001 __swig_setmethods__["load_addr"] = __set_load_addr_property__
1002 if _newclass: load_addr = property(__get_load_addr_property__, __set_load_addr_property__, doc='''A read/write property that gets/sets the SBAddress using load address. The setter resolves SBAddress using the SBTarget from lldb.target so this property can ONLY be used in the interactive script interpreter (i.e. under the lldb script command) and not in Python based commands, or breakpoint commands.''')
1003
1004
1006 """__str__(SBAddress self) -> PyObject *"""
1007 return _lldb.SBAddress___str__(self)
1008
1009 SBAddress_swigregister = _lldb.SBAddress_swigregister
1010 SBAddress_swigregister(SBAddress)
1013 """Proxy of C++ lldb::SBAttachInfo class"""
1014 __swig_setmethods__ = {}
1015 __setattr__ = lambda self, name, value: _swig_setattr(self, SBAttachInfo, name, value)
1016 __swig_getmethods__ = {}
1017 __getattr__ = lambda self, name: _swig_getattr(self, SBAttachInfo, name)
1018 __repr__ = _swig_repr
1020 """
1021 __init__(lldb::SBAttachInfo self) -> SBAttachInfo
1022 __init__(lldb::SBAttachInfo self, lldb::pid_t pid) -> SBAttachInfo
1023 __init__(lldb::SBAttachInfo self, char const * path, bool wait_for) -> SBAttachInfo
1024 __init__(lldb::SBAttachInfo self, char const * path, bool wait_for, bool async) -> SBAttachInfo
1025 __init__(lldb::SBAttachInfo self, SBAttachInfo rhs) -> SBAttachInfo
1026 """
1027 this = _lldb.new_SBAttachInfo(*args)
1028 try: self.this.append(this)
1029 except: self.this = this
1031 """GetProcessID(SBAttachInfo self) -> lldb::pid_t"""
1032 return _lldb.SBAttachInfo_GetProcessID(self)
1033
1035 """SetProcessID(SBAttachInfo self, lldb::pid_t pid)"""
1036 return _lldb.SBAttachInfo_SetProcessID(self, *args)
1037
1039 """
1040 SetExecutable(SBAttachInfo self, char const * path)
1041 SetExecutable(SBAttachInfo self, SBFileSpec exe_file)
1042 """
1043 return _lldb.SBAttachInfo_SetExecutable(self, *args)
1044
1046 """GetWaitForLaunch(SBAttachInfo self) -> bool"""
1047 return _lldb.SBAttachInfo_GetWaitForLaunch(self)
1048
1050 """
1051 SetWaitForLaunch(SBAttachInfo self, bool b)
1052 SetWaitForLaunch(SBAttachInfo self, bool b, bool async)
1053 """
1054 return _lldb.SBAttachInfo_SetWaitForLaunch(self, *args)
1055
1057 """GetIgnoreExisting(SBAttachInfo self) -> bool"""
1058 return _lldb.SBAttachInfo_GetIgnoreExisting(self)
1059
1061 """SetIgnoreExisting(SBAttachInfo self, bool b)"""
1062 return _lldb.SBAttachInfo_SetIgnoreExisting(self, *args)
1063
1065 """GetResumeCount(SBAttachInfo self) -> uint32_t"""
1066 return _lldb.SBAttachInfo_GetResumeCount(self)
1067
1069 """SetResumeCount(SBAttachInfo self, uint32_t c)"""
1070 return _lldb.SBAttachInfo_SetResumeCount(self, *args)
1071
1073 """GetProcessPluginName(SBAttachInfo self) -> char const *"""
1074 return _lldb.SBAttachInfo_GetProcessPluginName(self)
1075
1077 """SetProcessPluginName(SBAttachInfo self, char const * plugin_name)"""
1078 return _lldb.SBAttachInfo_SetProcessPluginName(self, *args)
1079
1081 """GetUserID(SBAttachInfo self) -> uint32_t"""
1082 return _lldb.SBAttachInfo_GetUserID(self)
1083
1085 """GetGroupID(SBAttachInfo self) -> uint32_t"""
1086 return _lldb.SBAttachInfo_GetGroupID(self)
1087
1089 """UserIDIsValid(SBAttachInfo self) -> bool"""
1090 return _lldb.SBAttachInfo_UserIDIsValid(self)
1091
1093 """GroupIDIsValid(SBAttachInfo self) -> bool"""
1094 return _lldb.SBAttachInfo_GroupIDIsValid(self)
1095
1097 """SetUserID(SBAttachInfo self, uint32_t uid)"""
1098 return _lldb.SBAttachInfo_SetUserID(self, *args)
1099
1101 """SetGroupID(SBAttachInfo self, uint32_t gid)"""
1102 return _lldb.SBAttachInfo_SetGroupID(self, *args)
1103
1105 """GetEffectiveUserID(SBAttachInfo self) -> uint32_t"""
1106 return _lldb.SBAttachInfo_GetEffectiveUserID(self)
1107
1109 """GetEffectiveGroupID(SBAttachInfo self) -> uint32_t"""
1110 return _lldb.SBAttachInfo_GetEffectiveGroupID(self)
1111
1113 """EffectiveUserIDIsValid(SBAttachInfo self) -> bool"""
1114 return _lldb.SBAttachInfo_EffectiveUserIDIsValid(self)
1115
1117 """EffectiveGroupIDIsValid(SBAttachInfo self) -> bool"""
1118 return _lldb.SBAttachInfo_EffectiveGroupIDIsValid(self)
1119
1121 """SetEffectiveUserID(SBAttachInfo self, uint32_t uid)"""
1122 return _lldb.SBAttachInfo_SetEffectiveUserID(self, *args)
1123
1125 """SetEffectiveGroupID(SBAttachInfo self, uint32_t gid)"""
1126 return _lldb.SBAttachInfo_SetEffectiveGroupID(self, *args)
1127
1129 """GetParentProcessID(SBAttachInfo self) -> lldb::pid_t"""
1130 return _lldb.SBAttachInfo_GetParentProcessID(self)
1131
1133 """SetParentProcessID(SBAttachInfo self, lldb::pid_t pid)"""
1134 return _lldb.SBAttachInfo_SetParentProcessID(self, *args)
1135
1137 """ParentProcessIDIsValid(SBAttachInfo self) -> bool"""
1138 return _lldb.SBAttachInfo_ParentProcessIDIsValid(self)
1139
1141 """GetListener(SBAttachInfo self) -> SBListener"""
1142 return _lldb.SBAttachInfo_GetListener(self)
1143
1145 """SetListener(SBAttachInfo self, SBListener listener)"""
1146 return _lldb.SBAttachInfo_SetListener(self, *args)
1147
1148 __swig_destroy__ = _lldb.delete_SBAttachInfo
1149 __del__ = lambda self : None;
1150 SBAttachInfo_swigregister = _lldb.SBAttachInfo_swigregister
1151 SBAttachInfo_swigregister(SBAttachInfo)
1168 __swig_destroy__ = _lldb.delete_SBBlock
1169 __del__ = lambda self : None;
1171 """
1172 IsInlined(SBBlock self) -> bool
1173
1174 Does this block represent an inlined function?
1175 """
1176 return _lldb.SBBlock_IsInlined(self)
1177
1179 """IsValid(SBBlock self) -> bool"""
1180 return _lldb.SBBlock_IsValid(self)
1181
1183 return _lldb.SBBlock___nonzero__(self)
1184 __bool__ = __nonzero__
1185
1186
1188 """
1189 GetInlinedName(SBBlock self) -> char const *
1190
1191 Get the function name if this block represents an inlined function;
1192 otherwise, return None.
1193 """
1194 return _lldb.SBBlock_GetInlinedName(self)
1195
1197 """
1198 GetInlinedCallSiteFile(SBBlock self) -> SBFileSpec
1199
1200 Get the call site file if this block represents an inlined function;
1201 otherwise, return an invalid file spec.
1202 """
1203 return _lldb.SBBlock_GetInlinedCallSiteFile(self)
1204
1206 """
1207 GetInlinedCallSiteLine(SBBlock self) -> uint32_t
1208
1209 Get the call site line if this block represents an inlined function;
1210 otherwise, return 0.
1211 """
1212 return _lldb.SBBlock_GetInlinedCallSiteLine(self)
1213
1215 """
1216 GetInlinedCallSiteColumn(SBBlock self) -> uint32_t
1217
1218 Get the call site column if this block represents an inlined function;
1219 otherwise, return 0.
1220 """
1221 return _lldb.SBBlock_GetInlinedCallSiteColumn(self)
1222
1224 """
1225 GetParent(SBBlock self) -> SBBlock
1226
1227 Get the parent block.
1228 """
1229 return _lldb.SBBlock_GetParent(self)
1230
1232 """
1233 GetContainingInlinedBlock(SBBlock self) -> SBBlock
1234
1235 Get the inlined block that is or contains this block.
1236 """
1237 return _lldb.SBBlock_GetContainingInlinedBlock(self)
1238
1240 """
1241 GetSibling(SBBlock self) -> SBBlock
1242
1243 Get the sibling block for this block.
1244 """
1245 return _lldb.SBBlock_GetSibling(self)
1246
1248 """
1249 GetFirstChild(SBBlock self) -> SBBlock
1250
1251 Get the first child block.
1252 """
1253 return _lldb.SBBlock_GetFirstChild(self)
1254
1256 """GetNumRanges(SBBlock self) -> uint32_t"""
1257 return _lldb.SBBlock_GetNumRanges(self)
1258
1260 """GetRangeStartAddress(SBBlock self, uint32_t idx) -> SBAddress"""
1261 return _lldb.SBBlock_GetRangeStartAddress(self, *args)
1262
1264 """GetRangeEndAddress(SBBlock self, uint32_t idx) -> SBAddress"""
1265 return _lldb.SBBlock_GetRangeEndAddress(self, *args)
1266
1268 """GetRangeIndexForBlockAddress(SBBlock self, SBAddress block_addr) -> uint32_t"""
1269 return _lldb.SBBlock_GetRangeIndexForBlockAddress(self, *args)
1270
1272 """GetDescription(SBBlock self, SBStream description) -> bool"""
1273 return _lldb.SBBlock_GetDescription(self, *args)
1274
1276 """
1277 GetVariables(SBBlock self, SBFrame frame, bool arguments, bool locals, bool statics, lldb::DynamicValueType use_dynamic) -> SBValueList
1278 GetVariables(SBBlock self, SBTarget target, bool arguments, bool locals, bool statics) -> SBValueList
1279 """
1280 return _lldb.SBBlock_GetVariables(self, *args)
1281
1286
1288 '''A helper object that will lazily hand out an array of lldb.SBAddress that represent address ranges for a block.'''
1290 self.sbblock = sbblock
1291
1293 if self.sbblock:
1294 return int(self.sbblock.GetNumRanges())
1295 return 0
1296
1308
1310 '''An accessor function that returns a ranges_access() object which allows lazy block address ranges access.'''
1311 return self.ranges_access (self)
1312
1314 '''An accessor function that returns an array object that contains all ranges in this block object.'''
1315 if not hasattr(self, 'ranges_array'):
1316 self.ranges_array = []
1317 for idx in range(self.num_ranges):
1318 self.ranges_array.append ([self.GetRangeStartAddress(idx), self.GetRangeEndAddress(idx)])
1319 return self.ranges_array
1320
1323
1324 __swig_getmethods__["parent"] = GetParent
1325 if _newclass: parent = property(GetParent, None, doc='''A read only property that returns the same result as GetParent().''')
1326
1327 __swig_getmethods__["first_child"] = GetFirstChild
1328 if _newclass: first_child = property(GetFirstChild, None, doc='''A read only property that returns the same result as GetFirstChild().''')
1329
1330 __swig_getmethods__["call_site"] = get_call_site
1331 if _newclass: call_site = property(get_call_site, None, doc='''A read only property that returns a lldb.declaration object that contains the inlined call site file, line and column.''')
1332
1333 __swig_getmethods__["sibling"] = GetSibling
1334 if _newclass: sibling = property(GetSibling, None, doc='''A read only property that returns the same result as GetSibling().''')
1335
1336 __swig_getmethods__["name"] = GetInlinedName
1337 if _newclass: name = property(GetInlinedName, None, doc='''A read only property that returns the same result as GetInlinedName().''')
1338
1339 __swig_getmethods__["inlined_block"] = GetContainingInlinedBlock
1340 if _newclass: inlined_block = property(GetContainingInlinedBlock, None, doc='''A read only property that returns the same result as GetContainingInlinedBlock().''')
1341
1342 __swig_getmethods__["range"] = get_ranges_access_object
1343 if _newclass: range = property(get_ranges_access_object, None, doc='''A read only property that allows item access to the address ranges for a block by integer (range = block.range[0]) and by lldb.SBAdddress (find the range that contains the specified lldb.SBAddress like "pc_range = lldb.frame.block.range[frame.addr]").''')
1344
1345 __swig_getmethods__["ranges"] = get_ranges_array
1346 if _newclass: ranges = property(get_ranges_array, None, doc='''A read only property that returns a list() object that contains all of the address ranges for the block.''')
1347
1348 __swig_getmethods__["num_ranges"] = GetNumRanges
1349 if _newclass: num_ranges = property(GetNumRanges, None, doc='''A read only property that returns the same result as GetNumRanges().''')
1350
1352 """__str__(SBBlock self) -> PyObject *"""
1353 return _lldb.SBBlock___str__(self)
1354
1355 SBBlock_swigregister = _lldb.SBBlock_swigregister
1356 SBBlock_swigregister(SBBlock)
1359 """
1360 Represents a logical breakpoint and its associated settings.
1361
1362 For example (from test/functionalities/breakpoint/breakpoint_ignore_count/
1363 TestBreakpointIgnoreCount.py),
1364
1365 def breakpoint_ignore_count_python(self):
1366 '''Use Python APIs to set breakpoint ignore count.'''
1367 exe = os.path.join(os.getcwd(), 'a.out')
1368
1369 # Create a target by the debugger.
1370 target = self.dbg.CreateTarget(exe)
1371 self.assertTrue(target, VALID_TARGET)
1372
1373 # Now create a breakpoint on main.c by name 'c'.
1374 breakpoint = target.BreakpointCreateByName('c', 'a.out')
1375 self.assertTrue(breakpoint and
1376 breakpoint.GetNumLocations() == 1,
1377 VALID_BREAKPOINT)
1378
1379 # Get the breakpoint location from breakpoint after we verified that,
1380 # indeed, it has one location.
1381 location = breakpoint.GetLocationAtIndex(0)
1382 self.assertTrue(location and
1383 location.IsEnabled(),
1384 VALID_BREAKPOINT_LOCATION)
1385
1386 # Set the ignore count on the breakpoint location.
1387 location.SetIgnoreCount(2)
1388 self.assertTrue(location.GetIgnoreCount() == 2,
1389 'SetIgnoreCount() works correctly')
1390
1391 # Now launch the process, and do not stop at entry point.
1392 process = target.LaunchSimple(None, None, os.getcwd())
1393 self.assertTrue(process, PROCESS_IS_VALID)
1394
1395 # Frame#0 should be on main.c:37, frame#1 should be on main.c:25, and
1396 # frame#2 should be on main.c:48.
1397 #lldbutil.print_stacktraces(process)
1398 from lldbutil import get_stopped_thread
1399 thread = get_stopped_thread(process, lldb.eStopReasonBreakpoint)
1400 self.assertTrue(thread != None, 'There should be a thread stopped due to breakpoint')
1401 frame0 = thread.GetFrameAtIndex(0)
1402 frame1 = thread.GetFrameAtIndex(1)
1403 frame2 = thread.GetFrameAtIndex(2)
1404 self.assertTrue(frame0.GetLineEntry().GetLine() == self.line1 and
1405 frame1.GetLineEntry().GetLine() == self.line3 and
1406 frame2.GetLineEntry().GetLine() == self.line4,
1407 STOPPED_DUE_TO_BREAKPOINT_IGNORE_COUNT)
1408
1409 # The hit count for the breakpoint should be 3.
1410 self.assertTrue(breakpoint.GetHitCount() == 3)
1411
1412 process.Continue()
1413
1414 SBBreakpoint supports breakpoint location iteration, for example,
1415
1416 for bl in breakpoint:
1417 print('breakpoint location load addr: %s' % hex(bl.GetLoadAddress()))
1418 print('breakpoint location condition: %s' % hex(bl.GetCondition()))
1419
1420 and rich comparison methods which allow the API program to use,
1421
1422 if aBreakpoint == bBreakpoint:
1423 ...
1424
1425 to compare two breakpoints for equality.
1426 """
1427 __swig_setmethods__ = {}
1428 __setattr__ = lambda self, name, value: _swig_setattr(self, SBBreakpoint, name, value)
1429 __swig_getmethods__ = {}
1430 __getattr__ = lambda self, name: _swig_getattr(self, SBBreakpoint, name)
1431 __repr__ = _swig_repr
1433 """
1434 __init__(lldb::SBBreakpoint self) -> SBBreakpoint
1435 __init__(lldb::SBBreakpoint self, SBBreakpoint rhs) -> SBBreakpoint
1436 """
1437 this = _lldb.new_SBBreakpoint(*args)
1438 try: self.this.append(this)
1439 except: self.this = this
1440 __swig_destroy__ = _lldb.delete_SBBreakpoint
1441 __del__ = lambda self : None;
1443 """__eq__(SBBreakpoint self, SBBreakpoint rhs) -> bool"""
1444 return _lldb.SBBreakpoint___eq__(self, *args)
1445
1447 """__ne__(SBBreakpoint self, SBBreakpoint rhs) -> bool"""
1448 return _lldb.SBBreakpoint___ne__(self, *args)
1449
1451 """GetID(SBBreakpoint self) -> lldb::break_id_t"""
1452 return _lldb.SBBreakpoint_GetID(self)
1453
1455 """IsValid(SBBreakpoint self) -> bool"""
1456 return _lldb.SBBreakpoint_IsValid(self)
1457
1459 return _lldb.SBBreakpoint___nonzero__(self)
1460 __bool__ = __nonzero__
1461
1462
1464 """ClearAllBreakpointSites(SBBreakpoint self)"""
1465 return _lldb.SBBreakpoint_ClearAllBreakpointSites(self)
1466
1468 """FindLocationByAddress(SBBreakpoint self, lldb::addr_t vm_addr) -> SBBreakpointLocation"""
1469 return _lldb.SBBreakpoint_FindLocationByAddress(self, *args)
1470
1472 """FindLocationIDByAddress(SBBreakpoint self, lldb::addr_t vm_addr) -> lldb::break_id_t"""
1473 return _lldb.SBBreakpoint_FindLocationIDByAddress(self, *args)
1474
1476 """FindLocationByID(SBBreakpoint self, lldb::break_id_t bp_loc_id) -> SBBreakpointLocation"""
1477 return _lldb.SBBreakpoint_FindLocationByID(self, *args)
1478
1480 """GetLocationAtIndex(SBBreakpoint self, uint32_t index) -> SBBreakpointLocation"""
1481 return _lldb.SBBreakpoint_GetLocationAtIndex(self, *args)
1482
1484 """SetEnabled(SBBreakpoint self, bool enable)"""
1485 return _lldb.SBBreakpoint_SetEnabled(self, *args)
1486
1488 """IsEnabled(SBBreakpoint self) -> bool"""
1489 return _lldb.SBBreakpoint_IsEnabled(self)
1490
1492 """SetOneShot(SBBreakpoint self, bool one_shot)"""
1493 return _lldb.SBBreakpoint_SetOneShot(self, *args)
1494
1496 """IsOneShot(SBBreakpoint self) -> bool"""
1497 return _lldb.SBBreakpoint_IsOneShot(self)
1498
1500 """IsInternal(SBBreakpoint self) -> bool"""
1501 return _lldb.SBBreakpoint_IsInternal(self)
1502
1504 """GetHitCount(SBBreakpoint self) -> uint32_t"""
1505 return _lldb.SBBreakpoint_GetHitCount(self)
1506
1508 """SetIgnoreCount(SBBreakpoint self, uint32_t count)"""
1509 return _lldb.SBBreakpoint_SetIgnoreCount(self, *args)
1510
1512 """GetIgnoreCount(SBBreakpoint self) -> uint32_t"""
1513 return _lldb.SBBreakpoint_GetIgnoreCount(self)
1514
1516 """
1517 SetCondition(SBBreakpoint self, char const * condition)
1518
1519 The breakpoint stops only if the condition expression evaluates to true.
1520 """
1521 return _lldb.SBBreakpoint_SetCondition(self, *args)
1522
1524 """
1525 GetCondition(SBBreakpoint self) -> char const *
1526
1527 Get the condition expression for the breakpoint.
1528 """
1529 return _lldb.SBBreakpoint_GetCondition(self)
1530
1532 """SetAutoContinue(SBBreakpoint self, bool auto_continue)"""
1533 return _lldb.SBBreakpoint_SetAutoContinue(self, *args)
1534
1536 """GetAutoContinue(SBBreakpoint self) -> bool"""
1537 return _lldb.SBBreakpoint_GetAutoContinue(self)
1538
1540 """SetThreadID(SBBreakpoint self, lldb::tid_t sb_thread_id)"""
1541 return _lldb.SBBreakpoint_SetThreadID(self, *args)
1542
1544 """GetThreadID(SBBreakpoint self) -> lldb::tid_t"""
1545 return _lldb.SBBreakpoint_GetThreadID(self)
1546
1548 """SetThreadIndex(SBBreakpoint self, uint32_t index)"""
1549 return _lldb.SBBreakpoint_SetThreadIndex(self, *args)
1550
1552 """GetThreadIndex(SBBreakpoint self) -> uint32_t"""
1553 return _lldb.SBBreakpoint_GetThreadIndex(self)
1554
1556 """SetThreadName(SBBreakpoint self, char const * thread_name)"""
1557 return _lldb.SBBreakpoint_SetThreadName(self, *args)
1558
1560 """GetThreadName(SBBreakpoint self) -> char const *"""
1561 return _lldb.SBBreakpoint_GetThreadName(self)
1562
1564 """SetQueueName(SBBreakpoint self, char const * queue_name)"""
1565 return _lldb.SBBreakpoint_SetQueueName(self, *args)
1566
1568 """GetQueueName(SBBreakpoint self) -> char const *"""
1569 return _lldb.SBBreakpoint_GetQueueName(self)
1570
1572 """
1573 SetScriptCallbackFunction(SBBreakpoint self, char const * callback_function_name)
1574
1575 Set the name of the script function to be called when the breakpoint is hit.
1576 """
1577 return _lldb.SBBreakpoint_SetScriptCallbackFunction(self, *args)
1578
1579 - def SetScriptCallbackBody(self, *args):
1580 """
1581 SetScriptCallbackBody(SBBreakpoint self, char const * script_body_text) -> SBError
1582
1583 Provide the body for the script function to be called when the breakpoint is hit.
1584 The body will be wrapped in a function, which be passed two arguments:
1585 'frame' - which holds the bottom-most SBFrame of the thread that hit the breakpoint
1586 'bpno' - which is the SBBreakpointLocation to which the callback was attached.
1587
1588 The error parameter is currently ignored, but will at some point hold the Python
1589 compilation diagnostics.
1590 Returns true if the body compiles successfully, false if not.
1591 """
1592 return _lldb.SBBreakpoint_SetScriptCallbackBody(self, *args)
1593
1595 """SetCommandLineCommands(SBBreakpoint self, SBStringList commands)"""
1596 return _lldb.SBBreakpoint_SetCommandLineCommands(self, *args)
1597
1599 """GetCommandLineCommands(SBBreakpoint self, SBStringList commands) -> bool"""
1600 return _lldb.SBBreakpoint_GetCommandLineCommands(self, *args)
1601
1603 """AddName(SBBreakpoint self, char const * new_name) -> bool"""
1604 return _lldb.SBBreakpoint_AddName(self, *args)
1605
1607 """RemoveName(SBBreakpoint self, char const * name_to_remove)"""
1608 return _lldb.SBBreakpoint_RemoveName(self, *args)
1609
1611 """MatchesName(SBBreakpoint self, char const * name) -> bool"""
1612 return _lldb.SBBreakpoint_MatchesName(self, *args)
1613
1615 """GetNames(SBBreakpoint self, SBStringList names)"""
1616 return _lldb.SBBreakpoint_GetNames(self, *args)
1617
1619 """GetNumResolvedLocations(SBBreakpoint self) -> size_t"""
1620 return _lldb.SBBreakpoint_GetNumResolvedLocations(self)
1621
1623 """GetNumLocations(SBBreakpoint self) -> size_t"""
1624 return _lldb.SBBreakpoint_GetNumLocations(self)
1625
1627 """
1628 GetDescription(SBBreakpoint self, SBStream description) -> bool
1629 GetDescription(SBBreakpoint self, SBStream description, bool include_locations) -> bool
1630 """
1631 return _lldb.SBBreakpoint_GetDescription(self, *args)
1632
1634 """AddLocation(SBBreakpoint self, SBAddress address) -> SBError"""
1635 return _lldb.SBBreakpoint_AddLocation(self, *args)
1636
1640
1641 if _newclass:EventIsBreakpointEvent = staticmethod(EventIsBreakpointEvent)
1642 __swig_getmethods__["EventIsBreakpointEvent"] = lambda x: EventIsBreakpointEvent
1646
1647 if _newclass:GetBreakpointEventTypeFromEvent = staticmethod(GetBreakpointEventTypeFromEvent)
1648 __swig_getmethods__["GetBreakpointEventTypeFromEvent"] = lambda x: GetBreakpointEventTypeFromEvent
1652
1653 if _newclass:GetBreakpointFromEvent = staticmethod(GetBreakpointFromEvent)
1654 __swig_getmethods__["GetBreakpointFromEvent"] = lambda x: GetBreakpointFromEvent
1658
1659 if _newclass:GetBreakpointLocationAtIndexFromEvent = staticmethod(GetBreakpointLocationAtIndexFromEvent)
1660 __swig_getmethods__["GetBreakpointLocationAtIndexFromEvent"] = lambda x: GetBreakpointLocationAtIndexFromEvent
1664
1665 if _newclass:GetNumBreakpointLocationsFromEvent = staticmethod(GetNumBreakpointLocationsFromEvent)
1666 __swig_getmethods__["GetNumBreakpointLocationsFromEvent"] = lambda x: GetNumBreakpointLocationsFromEvent
1668 """IsHardware(SBBreakpoint self) -> bool"""
1669 return _lldb.SBBreakpoint_IsHardware(self)
1670
1672 '''A helper object that will lazily hand out locations for a breakpoint when supplied an index.'''
1674 self.sbbreakpoint = sbbreakpoint
1675
1677 if self.sbbreakpoint:
1678 return int(self.sbbreakpoint.GetNumLocations())
1679 return 0
1680
1682 if type(key) is int and key < len(self):
1683 return self.sbbreakpoint.GetLocationAtIndex(key)
1684 return None
1685
1687 '''An accessor function that returns a locations_access() object which allows lazy location access from a lldb.SBBreakpoint object.'''
1688 return self.locations_access (self)
1689
1691 '''An accessor function that returns a list() that contains all locations in a lldb.SBBreakpoint object.'''
1692 locations = []
1693 accessor = self.get_locations_access_object()
1694 for idx in range(len(accessor)):
1695 locations.append(accessor[idx])
1696 return locations
1697
1699 '''Iterate over all breakpoint locations in a lldb.SBBreakpoint
1700 object.'''
1701 return lldb_iter(self, 'GetNumLocations', 'GetLocationAtIndex')
1702
1704 '''Return the number of breakpoint locations in a lldb.SBBreakpoint
1705 object.'''
1706 return self.GetNumLocations()
1707
1708 __swig_getmethods__["locations"] = get_breakpoint_location_list
1709 if _newclass: locations = property(get_breakpoint_location_list, None, doc='''A read only property that returns a list() of lldb.SBBreakpointLocation objects for this breakpoint.''')
1710
1711 __swig_getmethods__["location"] = get_locations_access_object
1712 if _newclass: location = property(get_locations_access_object, None, doc='''A read only property that returns an object that can access locations by index (not location ID) (location = bkpt.location[12]).''')
1713
1714 __swig_getmethods__["id"] = GetID
1715 if _newclass: id = property(GetID, None, doc='''A read only property that returns the ID of this breakpoint.''')
1716
1717 __swig_getmethods__["enabled"] = IsEnabled
1718 __swig_setmethods__["enabled"] = SetEnabled
1719 if _newclass: enabled = property(IsEnabled, SetEnabled, doc='''A read/write property that configures whether this breakpoint is enabled or not.''')
1720
1721 __swig_getmethods__["one_shot"] = IsOneShot
1722 __swig_setmethods__["one_shot"] = SetOneShot
1723 if _newclass: one_shot = property(IsOneShot, SetOneShot, doc='''A read/write property that configures whether this breakpoint is one-shot (deleted when hit) or not.''')
1724
1725 __swig_getmethods__["num_locations"] = GetNumLocations
1726 if _newclass: num_locations = property(GetNumLocations, None, doc='''A read only property that returns the count of locations of this breakpoint.''')
1727
1728
1730 """__str__(SBBreakpoint self) -> PyObject *"""
1731 return _lldb.SBBreakpoint___str__(self)
1732
1734 if not isinstance(rhs, type(self)):
1735 return False
1736
1737 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
1738
1740 if not isinstance(rhs, type(self)):
1741 return True
1742
1743 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
1744
1745 SBBreakpoint_swigregister = _lldb.SBBreakpoint_swigregister
1746 SBBreakpoint_swigregister(SBBreakpoint)
1751
1755
1759
1763
1767
1780 __swig_destroy__ = _lldb.delete_SBBreakpointList
1781 __del__ = lambda self : None;
1783 """GetSize(SBBreakpointList self) -> size_t"""
1784 return _lldb.SBBreakpointList_GetSize(self)
1785
1787 """GetBreakpointAtIndex(SBBreakpointList self, size_t idx) -> SBBreakpoint"""
1788 return _lldb.SBBreakpointList_GetBreakpointAtIndex(self, *args)
1789
1791 """FindBreakpointByID(SBBreakpointList self, lldb::break_id_t arg2) -> SBBreakpoint"""
1792 return _lldb.SBBreakpointList_FindBreakpointByID(self, *args)
1793
1795 """Append(SBBreakpointList self, SBBreakpoint sb_bkpt)"""
1796 return _lldb.SBBreakpointList_Append(self, *args)
1797
1799 """AppendIfUnique(SBBreakpointList self, SBBreakpoint sb_bkpt) -> bool"""
1800 return _lldb.SBBreakpointList_AppendIfUnique(self, *args)
1801
1803 """AppendByID(SBBreakpointList self, lldb::break_id_t id)"""
1804 return _lldb.SBBreakpointList_AppendByID(self, *args)
1805
1807 """Clear(SBBreakpointList self)"""
1808 return _lldb.SBBreakpointList_Clear(self)
1809
1810 SBBreakpointList_swigregister = _lldb.SBBreakpointList_swigregister
1811 SBBreakpointList_swigregister(SBBreakpointList)
1814 """
1815 Represents one unique instance (by address) of a logical breakpoint.
1816
1817 A breakpoint location is defined by the breakpoint that produces it,
1818 and the address that resulted in this particular instantiation.
1819 Each breakpoint location has its settable options.
1820
1821 SBBreakpoint contains SBBreakpointLocation(s). See docstring of SBBreakpoint
1822 for retrieval of an SBBreakpointLocation from an SBBreakpoint.
1823 """
1824 __swig_setmethods__ = {}
1825 __setattr__ = lambda self, name, value: _swig_setattr(self, SBBreakpointLocation, name, value)
1826 __swig_getmethods__ = {}
1827 __getattr__ = lambda self, name: _swig_getattr(self, SBBreakpointLocation, name)
1828 __repr__ = _swig_repr
1830 """
1831 __init__(lldb::SBBreakpointLocation self) -> SBBreakpointLocation
1832 __init__(lldb::SBBreakpointLocation self, SBBreakpointLocation rhs) -> SBBreakpointLocation
1833 """
1834 this = _lldb.new_SBBreakpointLocation(*args)
1835 try: self.this.append(this)
1836 except: self.this = this
1837 __swig_destroy__ = _lldb.delete_SBBreakpointLocation
1838 __del__ = lambda self : None;
1840 """GetID(SBBreakpointLocation self) -> lldb::break_id_t"""
1841 return _lldb.SBBreakpointLocation_GetID(self)
1842
1844 """IsValid(SBBreakpointLocation self) -> bool"""
1845 return _lldb.SBBreakpointLocation_IsValid(self)
1846
1848 return _lldb.SBBreakpointLocation___nonzero__(self)
1849 __bool__ = __nonzero__
1850
1851
1853 """GetAddress(SBBreakpointLocation self) -> SBAddress"""
1854 return _lldb.SBBreakpointLocation_GetAddress(self)
1855
1857 """GetLoadAddress(SBBreakpointLocation self) -> lldb::addr_t"""
1858 return _lldb.SBBreakpointLocation_GetLoadAddress(self)
1859
1861 """SetEnabled(SBBreakpointLocation self, bool enabled)"""
1862 return _lldb.SBBreakpointLocation_SetEnabled(self, *args)
1863
1865 """IsEnabled(SBBreakpointLocation self) -> bool"""
1866 return _lldb.SBBreakpointLocation_IsEnabled(self)
1867
1869 """GetHitCount(SBBreakpointLocation self) -> uint32_t"""
1870 return _lldb.SBBreakpointLocation_GetHitCount(self)
1871
1873 """GetIgnoreCount(SBBreakpointLocation self) -> uint32_t"""
1874 return _lldb.SBBreakpointLocation_GetIgnoreCount(self)
1875
1877 """SetIgnoreCount(SBBreakpointLocation self, uint32_t n)"""
1878 return _lldb.SBBreakpointLocation_SetIgnoreCount(self, *args)
1879
1881 """
1882 SetCondition(SBBreakpointLocation self, char const * condition)
1883
1884 The breakpoint location stops only if the condition expression evaluates
1885 to true.
1886 """
1887 return _lldb.SBBreakpointLocation_SetCondition(self, *args)
1888
1890 """
1891 GetCondition(SBBreakpointLocation self) -> char const *
1892
1893 Get the condition expression for the breakpoint location.
1894 """
1895 return _lldb.SBBreakpointLocation_GetCondition(self)
1896
1898 """GetAutoContinue(SBBreakpointLocation self) -> bool"""
1899 return _lldb.SBBreakpointLocation_GetAutoContinue(self)
1900
1902 """SetAutoContinue(SBBreakpointLocation self, bool auto_continue)"""
1903 return _lldb.SBBreakpointLocation_SetAutoContinue(self, *args)
1904
1906 """
1907 SetScriptCallbackFunction(SBBreakpointLocation self, char const * callback_function_name)
1908
1909 Set the callback to the given Python function name.
1910 """
1911 return _lldb.SBBreakpointLocation_SetScriptCallbackFunction(self, *args)
1912
1913 - def SetScriptCallbackBody(self, *args):
1914 """
1915 SetScriptCallbackBody(SBBreakpointLocation self, char const * script_body_text) -> SBError
1916
1917 Provide the body for the script function to be called when the breakpoint location is hit.
1918 The body will be wrapped in a function, which be passed two arguments:
1919 'frame' - which holds the bottom-most SBFrame of the thread that hit the breakpoint
1920 'bpno' - which is the SBBreakpointLocation to which the callback was attached.
1921
1922 The error parameter is currently ignored, but will at some point hold the Python
1923 compilation diagnostics.
1924 Returns true if the body compiles successfully, false if not.
1925 """
1926 return _lldb.SBBreakpointLocation_SetScriptCallbackBody(self, *args)
1927
1929 """SetCommandLineCommands(SBBreakpointLocation self, SBStringList commands)"""
1930 return _lldb.SBBreakpointLocation_SetCommandLineCommands(self, *args)
1931
1933 """GetCommandLineCommands(SBBreakpointLocation self, SBStringList commands) -> bool"""
1934 return _lldb.SBBreakpointLocation_GetCommandLineCommands(self, *args)
1935
1937 """SetThreadID(SBBreakpointLocation self, lldb::tid_t sb_thread_id)"""
1938 return _lldb.SBBreakpointLocation_SetThreadID(self, *args)
1939
1941 """GetThreadID(SBBreakpointLocation self) -> lldb::tid_t"""
1942 return _lldb.SBBreakpointLocation_GetThreadID(self)
1943
1945 """SetThreadIndex(SBBreakpointLocation self, uint32_t index)"""
1946 return _lldb.SBBreakpointLocation_SetThreadIndex(self, *args)
1947
1949 """GetThreadIndex(SBBreakpointLocation self) -> uint32_t"""
1950 return _lldb.SBBreakpointLocation_GetThreadIndex(self)
1951
1953 """SetThreadName(SBBreakpointLocation self, char const * thread_name)"""
1954 return _lldb.SBBreakpointLocation_SetThreadName(self, *args)
1955
1957 """GetThreadName(SBBreakpointLocation self) -> char const *"""
1958 return _lldb.SBBreakpointLocation_GetThreadName(self)
1959
1961 """SetQueueName(SBBreakpointLocation self, char const * queue_name)"""
1962 return _lldb.SBBreakpointLocation_SetQueueName(self, *args)
1963
1965 """GetQueueName(SBBreakpointLocation self) -> char const *"""
1966 return _lldb.SBBreakpointLocation_GetQueueName(self)
1967
1969 """IsResolved(SBBreakpointLocation self) -> bool"""
1970 return _lldb.SBBreakpointLocation_IsResolved(self)
1971
1973 """GetDescription(SBBreakpointLocation self, SBStream description, lldb::DescriptionLevel level) -> bool"""
1974 return _lldb.SBBreakpointLocation_GetDescription(self, *args)
1975
1977 """GetBreakpoint(SBBreakpointLocation self) -> SBBreakpoint"""
1978 return _lldb.SBBreakpointLocation_GetBreakpoint(self)
1979
1981 """__str__(SBBreakpointLocation self) -> PyObject *"""
1982 return _lldb.SBBreakpointLocation___str__(self)
1983
1984 SBBreakpointLocation_swigregister = _lldb.SBBreakpointLocation_swigregister
1985 SBBreakpointLocation_swigregister(SBBreakpointLocation)
1988 """
1989 Represents a breakpoint name registered in a given SBTarget.
1990
1991 Breakpoint names provide a way to act on groups of breakpoints. When you add a
1992 name to a group of breakpoints, you can then use the name in all the command
1993 line lldb commands for that name. You can also configure the SBBreakpointName
1994 options and those options will be propagated to any SBBreakpoints currently
1995 using that name. Adding a name to a breakpoint will also apply any of the
1996 set options to that breakpoint.
1997
1998 You can also set permissions on a breakpoint name to disable listing, deleting
1999 and disabling breakpoints. That will disallow the given operation for breakpoints
2000 except when the breakpoint is mentioned by ID. So for instance deleting all the
2001 breakpoints won't delete breakpoints so marked.
2002 """
2003 __swig_setmethods__ = {}
2004 __setattr__ = lambda self, name, value: _swig_setattr(self, SBBreakpointName, name, value)
2005 __swig_getmethods__ = {}
2006 __getattr__ = lambda self, name: _swig_getattr(self, SBBreakpointName, name)
2007 __repr__ = _swig_repr
2009 """
2010 __init__(lldb::SBBreakpointName self) -> SBBreakpointName
2011 __init__(lldb::SBBreakpointName self, SBTarget target, char const * name) -> SBBreakpointName
2012 __init__(lldb::SBBreakpointName self, SBBreakpoint bkpt, char const * name) -> SBBreakpointName
2013 __init__(lldb::SBBreakpointName self, SBBreakpointName rhs) -> SBBreakpointName
2014 """
2015 this = _lldb.new_SBBreakpointName(*args)
2016 try: self.this.append(this)
2017 except: self.this = this
2018 __swig_destroy__ = _lldb.delete_SBBreakpointName
2019 __del__ = lambda self : None;
2021 """__eq__(SBBreakpointName self, SBBreakpointName rhs) -> bool"""
2022 return _lldb.SBBreakpointName___eq__(self, *args)
2023
2025 """__ne__(SBBreakpointName self, SBBreakpointName rhs) -> bool"""
2026 return _lldb.SBBreakpointName___ne__(self, *args)
2027
2029 return _lldb.SBBreakpointName___nonzero__(self)
2030 __bool__ = __nonzero__
2031
2032
2034 """IsValid(SBBreakpointName self) -> bool"""
2035 return _lldb.SBBreakpointName_IsValid(self)
2036
2038 """GetName(SBBreakpointName self) -> char const *"""
2039 return _lldb.SBBreakpointName_GetName(self)
2040
2042 """SetEnabled(SBBreakpointName self, bool enable)"""
2043 return _lldb.SBBreakpointName_SetEnabled(self, *args)
2044
2046 """IsEnabled(SBBreakpointName self) -> bool"""
2047 return _lldb.SBBreakpointName_IsEnabled(self)
2048
2050 """SetOneShot(SBBreakpointName self, bool one_shot)"""
2051 return _lldb.SBBreakpointName_SetOneShot(self, *args)
2052
2054 """IsOneShot(SBBreakpointName self) -> bool"""
2055 return _lldb.SBBreakpointName_IsOneShot(self)
2056
2058 """SetIgnoreCount(SBBreakpointName self, uint32_t count)"""
2059 return _lldb.SBBreakpointName_SetIgnoreCount(self, *args)
2060
2062 """GetIgnoreCount(SBBreakpointName self) -> uint32_t"""
2063 return _lldb.SBBreakpointName_GetIgnoreCount(self)
2064
2066 """SetCondition(SBBreakpointName self, char const * condition)"""
2067 return _lldb.SBBreakpointName_SetCondition(self, *args)
2068
2070 """GetCondition(SBBreakpointName self) -> char const *"""
2071 return _lldb.SBBreakpointName_GetCondition(self)
2072
2074 """SetAutoContinue(SBBreakpointName self, bool auto_continue)"""
2075 return _lldb.SBBreakpointName_SetAutoContinue(self, *args)
2076
2078 """GetAutoContinue(SBBreakpointName self) -> bool"""
2079 return _lldb.SBBreakpointName_GetAutoContinue(self)
2080
2082 """SetThreadID(SBBreakpointName self, lldb::tid_t sb_thread_id)"""
2083 return _lldb.SBBreakpointName_SetThreadID(self, *args)
2084
2086 """GetThreadID(SBBreakpointName self) -> lldb::tid_t"""
2087 return _lldb.SBBreakpointName_GetThreadID(self)
2088
2090 """SetThreadIndex(SBBreakpointName self, uint32_t index)"""
2091 return _lldb.SBBreakpointName_SetThreadIndex(self, *args)
2092
2094 """GetThreadIndex(SBBreakpointName self) -> uint32_t"""
2095 return _lldb.SBBreakpointName_GetThreadIndex(self)
2096
2098 """SetThreadName(SBBreakpointName self, char const * thread_name)"""
2099 return _lldb.SBBreakpointName_SetThreadName(self, *args)
2100
2102 """GetThreadName(SBBreakpointName self) -> char const *"""
2103 return _lldb.SBBreakpointName_GetThreadName(self)
2104
2106 """SetQueueName(SBBreakpointName self, char const * queue_name)"""
2107 return _lldb.SBBreakpointName_SetQueueName(self, *args)
2108
2110 """GetQueueName(SBBreakpointName self) -> char const *"""
2111 return _lldb.SBBreakpointName_GetQueueName(self)
2112
2114 """SetScriptCallbackFunction(SBBreakpointName self, char const * callback_function_name)"""
2115 return _lldb.SBBreakpointName_SetScriptCallbackFunction(self, *args)
2116
2118 """SetCommandLineCommands(SBBreakpointName self, SBStringList commands)"""
2119 return _lldb.SBBreakpointName_SetCommandLineCommands(self, *args)
2120
2122 """GetCommandLineCommands(SBBreakpointName self, SBStringList commands) -> bool"""
2123 return _lldb.SBBreakpointName_GetCommandLineCommands(self, *args)
2124
2125 - def SetScriptCallbackBody(self, *args):
2126 """SetScriptCallbackBody(SBBreakpointName self, char const * script_body_text) -> SBError"""
2127 return _lldb.SBBreakpointName_SetScriptCallbackBody(self, *args)
2128
2130 """GetHelpString(SBBreakpointName self) -> char const *"""
2131 return _lldb.SBBreakpointName_GetHelpString(self)
2132
2134 """SetHelpString(SBBreakpointName self, char const * help_string)"""
2135 return _lldb.SBBreakpointName_SetHelpString(self, *args)
2136
2138 """GetAllowList(SBBreakpointName self) -> bool"""
2139 return _lldb.SBBreakpointName_GetAllowList(self)
2140
2142 """SetAllowList(SBBreakpointName self, bool value)"""
2143 return _lldb.SBBreakpointName_SetAllowList(self, *args)
2144
2146 """GetAllowDelete(SBBreakpointName self) -> bool"""
2147 return _lldb.SBBreakpointName_GetAllowDelete(self)
2148
2150 """SetAllowDelete(SBBreakpointName self, bool value)"""
2151 return _lldb.SBBreakpointName_SetAllowDelete(self, *args)
2152
2154 """GetAllowDisable(SBBreakpointName self) -> bool"""
2155 return _lldb.SBBreakpointName_GetAllowDisable(self)
2156
2158 """SetAllowDisable(SBBreakpointName self, bool value)"""
2159 return _lldb.SBBreakpointName_SetAllowDisable(self, *args)
2160
2162 """GetDescription(SBBreakpointName self, SBStream description) -> bool"""
2163 return _lldb.SBBreakpointName_GetDescription(self, *args)
2164
2166 """__str__(SBBreakpointName self) -> PyObject *"""
2167 return _lldb.SBBreakpointName___str__(self)
2168
2169 SBBreakpointName_swigregister = _lldb.SBBreakpointName_swigregister
2170 SBBreakpointName_swigregister(SBBreakpointName)
2173 """
2174 Represents an entity which can broadcast events. A default broadcaster is
2175 associated with an SBCommandInterpreter, SBProcess, and SBTarget. For
2176 example, use
2177
2178 broadcaster = process.GetBroadcaster()
2179
2180 to retrieve the process's broadcaster.
2181
2182 See also SBEvent for example usage of interacting with a broadcaster.
2183 """
2184 __swig_setmethods__ = {}
2185 __setattr__ = lambda self, name, value: _swig_setattr(self, SBBroadcaster, name, value)
2186 __swig_getmethods__ = {}
2187 __getattr__ = lambda self, name: _swig_getattr(self, SBBroadcaster, name)
2188 __repr__ = _swig_repr
2190 """
2191 __init__(lldb::SBBroadcaster self) -> SBBroadcaster
2192 __init__(lldb::SBBroadcaster self, char const * name) -> SBBroadcaster
2193 __init__(lldb::SBBroadcaster self, SBBroadcaster rhs) -> SBBroadcaster
2194 """
2195 this = _lldb.new_SBBroadcaster(*args)
2196 try: self.this.append(this)
2197 except: self.this = this
2198 __swig_destroy__ = _lldb.delete_SBBroadcaster
2199 __del__ = lambda self : None;
2201 """IsValid(SBBroadcaster self) -> bool"""
2202 return _lldb.SBBroadcaster_IsValid(self)
2203
2205 return _lldb.SBBroadcaster___nonzero__(self)
2206 __bool__ = __nonzero__
2207
2208
2210 """Clear(SBBroadcaster self)"""
2211 return _lldb.SBBroadcaster_Clear(self)
2212
2214 """
2215 BroadcastEventByType(SBBroadcaster self, uint32_t event_type, bool unique=False)
2216 BroadcastEventByType(SBBroadcaster self, uint32_t event_type)
2217 """
2218 return _lldb.SBBroadcaster_BroadcastEventByType(self, *args)
2219
2221 """
2222 BroadcastEvent(SBBroadcaster self, SBEvent event, bool unique=False)
2223 BroadcastEvent(SBBroadcaster self, SBEvent event)
2224 """
2225 return _lldb.SBBroadcaster_BroadcastEvent(self, *args)
2226
2228 """AddInitialEventsToListener(SBBroadcaster self, SBListener listener, uint32_t requested_events)"""
2229 return _lldb.SBBroadcaster_AddInitialEventsToListener(self, *args)
2230
2232 """AddListener(SBBroadcaster self, SBListener listener, uint32_t event_mask) -> uint32_t"""
2233 return _lldb.SBBroadcaster_AddListener(self, *args)
2234
2236 """GetName(SBBroadcaster self) -> char const *"""
2237 return _lldb.SBBroadcaster_GetName(self)
2238
2240 """EventTypeHasListeners(SBBroadcaster self, uint32_t event_type) -> bool"""
2241 return _lldb.SBBroadcaster_EventTypeHasListeners(self, *args)
2242
2244 """
2245 RemoveListener(SBBroadcaster self, SBListener listener, uint32_t event_mask=4294967295U) -> bool
2246 RemoveListener(SBBroadcaster self, SBListener listener) -> bool
2247 """
2248 return _lldb.SBBroadcaster_RemoveListener(self, *args)
2249
2251 """__eq__(SBBroadcaster self, SBBroadcaster rhs) -> bool"""
2252 return _lldb.SBBroadcaster___eq__(self, *args)
2253
2255 """__ne__(SBBroadcaster self, SBBroadcaster rhs) -> bool"""
2256 return _lldb.SBBroadcaster___ne__(self, *args)
2257
2259 if not isinstance(rhs, type(self)):
2260 return False
2261
2262 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
2263
2265 if not isinstance(rhs, type(self)):
2266 return True
2267
2268 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
2269
2270 SBBroadcaster_swigregister = _lldb.SBBroadcaster_swigregister
2271 SBBroadcaster_swigregister(SBBroadcaster)
2274 """
2275 SBCommandInterpreterRunOptions controls how the RunCommandInterpreter runs the code it is fed.
2276 A default SBCommandInterpreterRunOptions object has:
2277 StopOnContinue: false
2278 StopOnError: false
2279 StopOnCrash: false
2280 EchoCommands: true
2281 PrintResults: true
2282 AddToHistory: true
2283
2284
2285 """
2286 __swig_setmethods__ = {}
2287 __setattr__ = lambda self, name, value: _swig_setattr(self, SBCommandInterpreterRunOptions, name, value)
2288 __swig_getmethods__ = {}
2289 __getattr__ = lambda self, name: _swig_getattr(self, SBCommandInterpreterRunOptions, name)
2290 __repr__ = _swig_repr
2292 """__init__(lldb::SBCommandInterpreterRunOptions self) -> SBCommandInterpreterRunOptions"""
2293 this = _lldb.new_SBCommandInterpreterRunOptions()
2294 try: self.this.append(this)
2295 except: self.this = this
2296 __swig_destroy__ = _lldb.delete_SBCommandInterpreterRunOptions
2297 __del__ = lambda self : None;
2299 """GetStopOnContinue(SBCommandInterpreterRunOptions self) -> bool"""
2300 return _lldb.SBCommandInterpreterRunOptions_GetStopOnContinue(self)
2301
2303 """SetStopOnContinue(SBCommandInterpreterRunOptions self, bool arg2)"""
2304 return _lldb.SBCommandInterpreterRunOptions_SetStopOnContinue(self, *args)
2305
2307 """GetStopOnError(SBCommandInterpreterRunOptions self) -> bool"""
2308 return _lldb.SBCommandInterpreterRunOptions_GetStopOnError(self)
2309
2311 """SetStopOnError(SBCommandInterpreterRunOptions self, bool arg2)"""
2312 return _lldb.SBCommandInterpreterRunOptions_SetStopOnError(self, *args)
2313
2315 """GetStopOnCrash(SBCommandInterpreterRunOptions self) -> bool"""
2316 return _lldb.SBCommandInterpreterRunOptions_GetStopOnCrash(self)
2317
2319 """SetStopOnCrash(SBCommandInterpreterRunOptions self, bool arg2)"""
2320 return _lldb.SBCommandInterpreterRunOptions_SetStopOnCrash(self, *args)
2321
2323 """GetEchoCommands(SBCommandInterpreterRunOptions self) -> bool"""
2324 return _lldb.SBCommandInterpreterRunOptions_GetEchoCommands(self)
2325
2327 """SetEchoCommands(SBCommandInterpreterRunOptions self, bool arg2)"""
2328 return _lldb.SBCommandInterpreterRunOptions_SetEchoCommands(self, *args)
2329
2331 """GetPrintResults(SBCommandInterpreterRunOptions self) -> bool"""
2332 return _lldb.SBCommandInterpreterRunOptions_GetPrintResults(self)
2333
2335 """SetPrintResults(SBCommandInterpreterRunOptions self, bool arg2)"""
2336 return _lldb.SBCommandInterpreterRunOptions_SetPrintResults(self, *args)
2337
2338 - def GetAddToHistory(self):
2339 """GetAddToHistory(SBCommandInterpreterRunOptions self) -> bool"""
2340 return _lldb.SBCommandInterpreterRunOptions_GetAddToHistory(self)
2341
2342 - def SetAddToHistory(self, *args):
2343 """SetAddToHistory(SBCommandInterpreterRunOptions self, bool arg2)"""
2344 return _lldb.SBCommandInterpreterRunOptions_SetAddToHistory(self, *args)
2345
2346 SBCommandInterpreterRunOptions_swigregister = _lldb.SBCommandInterpreterRunOptions_swigregister
2347 SBCommandInterpreterRunOptions_swigregister(SBCommandInterpreterRunOptions)
2350 """
2351 SBCommandInterpreter handles/interprets commands for lldb. You get the
2352 command interpreter from the SBDebugger instance. For example (from test/
2353 python_api/interpreter/TestCommandInterpreterAPI.py),
2354
2355 def command_interpreter_api(self):
2356 '''Test the SBCommandInterpreter APIs.'''
2357 exe = os.path.join(os.getcwd(), 'a.out')
2358
2359 # Create a target by the debugger.
2360 target = self.dbg.CreateTarget(exe)
2361 self.assertTrue(target, VALID_TARGET)
2362
2363 # Retrieve the associated command interpreter from our debugger.
2364 ci = self.dbg.GetCommandInterpreter()
2365 self.assertTrue(ci, VALID_COMMAND_INTERPRETER)
2366
2367 # Exercise some APIs....
2368
2369 self.assertTrue(ci.HasCommands())
2370 self.assertTrue(ci.HasAliases())
2371 self.assertTrue(ci.HasAliasOptions())
2372 self.assertTrue(ci.CommandExists('breakpoint'))
2373 self.assertTrue(ci.CommandExists('target'))
2374 self.assertTrue(ci.CommandExists('platform'))
2375 self.assertTrue(ci.AliasExists('file'))
2376 self.assertTrue(ci.AliasExists('run'))
2377 self.assertTrue(ci.AliasExists('bt'))
2378
2379 res = lldb.SBCommandReturnObject()
2380 ci.HandleCommand('breakpoint set -f main.c -l %d' % self.line, res)
2381 self.assertTrue(res.Succeeded())
2382 ci.HandleCommand('process launch', res)
2383 self.assertTrue(res.Succeeded())
2384
2385 process = ci.GetProcess()
2386 self.assertTrue(process)
2387
2388 ...
2389
2390 The HandleCommand() instance method takes two args: the command string and
2391 an SBCommandReturnObject instance which encapsulates the result of command
2392 execution.
2393 """
2394 __swig_setmethods__ = {}
2395 __setattr__ = lambda self, name, value: _swig_setattr(self, SBCommandInterpreter, name, value)
2396 __swig_getmethods__ = {}
2397 __getattr__ = lambda self, name: _swig_getattr(self, SBCommandInterpreter, name)
2398 __repr__ = _swig_repr
2399 eBroadcastBitThreadShouldExit = _lldb.SBCommandInterpreter_eBroadcastBitThreadShouldExit
2400 eBroadcastBitResetPrompt = _lldb.SBCommandInterpreter_eBroadcastBitResetPrompt
2401 eBroadcastBitQuitCommandReceived = _lldb.SBCommandInterpreter_eBroadcastBitQuitCommandReceived
2402 eBroadcastBitAsynchronousOutputData = _lldb.SBCommandInterpreter_eBroadcastBitAsynchronousOutputData
2403 eBroadcastBitAsynchronousErrorData = _lldb.SBCommandInterpreter_eBroadcastBitAsynchronousErrorData
2405 """__init__(lldb::SBCommandInterpreter self, SBCommandInterpreter rhs) -> SBCommandInterpreter"""
2406 this = _lldb.new_SBCommandInterpreter(*args)
2407 try: self.this.append(this)
2408 except: self.this = this
2409 __swig_destroy__ = _lldb.delete_SBCommandInterpreter
2410 __del__ = lambda self : None;
2414
2415 if _newclass:GetArgumentTypeAsCString = staticmethod(GetArgumentTypeAsCString)
2416 __swig_getmethods__["GetArgumentTypeAsCString"] = lambda x: GetArgumentTypeAsCString
2420
2421 if _newclass:GetArgumentDescriptionAsCString = staticmethod(GetArgumentDescriptionAsCString)
2422 __swig_getmethods__["GetArgumentDescriptionAsCString"] = lambda x: GetArgumentDescriptionAsCString
2426
2427 if _newclass:EventIsCommandInterpreterEvent = staticmethod(EventIsCommandInterpreterEvent)
2428 __swig_getmethods__["EventIsCommandInterpreterEvent"] = lambda x: EventIsCommandInterpreterEvent
2430 """IsValid(SBCommandInterpreter self) -> bool"""
2431 return _lldb.SBCommandInterpreter_IsValid(self)
2432
2434 return _lldb.SBCommandInterpreter___nonzero__(self)
2435 __bool__ = __nonzero__
2436
2437
2439 """GetIOHandlerControlSequence(SBCommandInterpreter self, char ch) -> char const *"""
2440 return _lldb.SBCommandInterpreter_GetIOHandlerControlSequence(self, *args)
2441
2443 """GetPromptOnQuit(SBCommandInterpreter self) -> bool"""
2444 return _lldb.SBCommandInterpreter_GetPromptOnQuit(self)
2445
2447 """SetPromptOnQuit(SBCommandInterpreter self, bool b)"""
2448 return _lldb.SBCommandInterpreter_SetPromptOnQuit(self, *args)
2449
2451 """AllowExitCodeOnQuit(SBCommandInterpreter self, bool b)"""
2452 return _lldb.SBCommandInterpreter_AllowExitCodeOnQuit(self, *args)
2453
2455 """HasCustomQuitExitCode(SBCommandInterpreter self) -> bool"""
2456 return _lldb.SBCommandInterpreter_HasCustomQuitExitCode(self)
2457
2459 """GetQuitStatus(SBCommandInterpreter self) -> int"""
2460 return _lldb.SBCommandInterpreter_GetQuitStatus(self)
2461
2463 """ResolveCommand(SBCommandInterpreter self, char const * command_line, SBCommandReturnObject result)"""
2464 return _lldb.SBCommandInterpreter_ResolveCommand(self, *args)
2465
2467 """CommandExists(SBCommandInterpreter self, char const * cmd) -> bool"""
2468 return _lldb.SBCommandInterpreter_CommandExists(self, *args)
2469
2471 """AliasExists(SBCommandInterpreter self, char const * cmd) -> bool"""
2472 return _lldb.SBCommandInterpreter_AliasExists(self, *args)
2473
2475 """GetBroadcaster(SBCommandInterpreter self) -> SBBroadcaster"""
2476 return _lldb.SBCommandInterpreter_GetBroadcaster(self)
2477
2481
2482 if _newclass:GetBroadcasterClass = staticmethod(GetBroadcasterClass)
2483 __swig_getmethods__["GetBroadcasterClass"] = lambda x: GetBroadcasterClass
2485 """HasCommands(SBCommandInterpreter self) -> bool"""
2486 return _lldb.SBCommandInterpreter_HasCommands(self)
2487
2489 """HasAliases(SBCommandInterpreter self) -> bool"""
2490 return _lldb.SBCommandInterpreter_HasAliases(self)
2491
2493 """HasAliasOptions(SBCommandInterpreter self) -> bool"""
2494 return _lldb.SBCommandInterpreter_HasAliasOptions(self)
2495
2497 """GetProcess(SBCommandInterpreter self) -> SBProcess"""
2498 return _lldb.SBCommandInterpreter_GetProcess(self)
2499
2501 """GetDebugger(SBCommandInterpreter self) -> SBDebugger"""
2502 return _lldb.SBCommandInterpreter_GetDebugger(self)
2503
2505 """SourceInitFileInHomeDirectory(SBCommandInterpreter self, SBCommandReturnObject result)"""
2506 return _lldb.SBCommandInterpreter_SourceInitFileInHomeDirectory(self, *args)
2507
2509 """SourceInitFileInCurrentWorkingDirectory(SBCommandInterpreter self, SBCommandReturnObject result)"""
2510 return _lldb.SBCommandInterpreter_SourceInitFileInCurrentWorkingDirectory(self, *args)
2511
2513 """
2514 HandleCommand(SBCommandInterpreter self, char const * command_line, SBCommandReturnObject result, bool add_to_history=False) -> lldb::ReturnStatus
2515 HandleCommand(SBCommandInterpreter self, char const * command_line, SBCommandReturnObject result) -> lldb::ReturnStatus
2516 HandleCommand(SBCommandInterpreter self, char const * command_line, SBExecutionContext exe_ctx, SBCommandReturnObject result,
2517 bool add_to_history=False) -> lldb::ReturnStatus
2518 HandleCommand(SBCommandInterpreter self, char const * command_line, SBExecutionContext exe_ctx, SBCommandReturnObject result) -> lldb::ReturnStatus
2519 """
2520 return _lldb.SBCommandInterpreter_HandleCommand(self, *args)
2521
2523 """
2524 HandleCommandsFromFile(SBCommandInterpreter self, SBFileSpec file, SBExecutionContext override_context, SBCommandInterpreterRunOptions options,
2525 SBCommandReturnObject result)
2526 """
2527 return _lldb.SBCommandInterpreter_HandleCommandsFromFile(self, *args)
2528
2530 """
2531 HandleCompletion(SBCommandInterpreter self, char const * current_line, uint32_t cursor_pos, int match_start_point, int max_return_elements,
2532 SBStringList matches) -> int
2533 """
2534 return _lldb.SBCommandInterpreter_HandleCompletion(self, *args)
2535
2537 """
2538 HandleCompletionWithDescriptions(SBCommandInterpreter self, char const * current_line, uint32_t cursor_pos, int match_start_point, int max_return_elements,
2539 SBStringList matches, SBStringList descriptions) -> int
2540 """
2541 return _lldb.SBCommandInterpreter_HandleCompletionWithDescriptions(self, *args)
2542
2544 """IsActive(SBCommandInterpreter self) -> bool"""
2545 return _lldb.SBCommandInterpreter_IsActive(self)
2546
2548 """WasInterrupted(SBCommandInterpreter self) -> bool"""
2549 return _lldb.SBCommandInterpreter_WasInterrupted(self)
2550
2551 SBCommandInterpreter_swigregister = _lldb.SBCommandInterpreter_swigregister
2552 SBCommandInterpreter_swigregister(SBCommandInterpreter)
2557
2561
2565
2569
2571 """
2572 Represents a container which holds the result from command execution.
2573 It works with SBCommandInterpreter.HandleCommand() to encapsulate the result
2574 of command execution.
2575
2576 See SBCommandInterpreter for example usage of SBCommandReturnObject.
2577 """
2578 __swig_setmethods__ = {}
2579 __setattr__ = lambda self, name, value: _swig_setattr(self, SBCommandReturnObject, name, value)
2580 __swig_getmethods__ = {}
2581 __getattr__ = lambda self, name: _swig_getattr(self, SBCommandReturnObject, name)
2582 __repr__ = _swig_repr
2584 """
2585 __init__(lldb::SBCommandReturnObject self) -> SBCommandReturnObject
2586 __init__(lldb::SBCommandReturnObject self, SBCommandReturnObject rhs) -> SBCommandReturnObject
2587 """
2588 this = _lldb.new_SBCommandReturnObject(*args)
2589 try: self.this.append(this)
2590 except: self.this = this
2591 __swig_destroy__ = _lldb.delete_SBCommandReturnObject
2592 __del__ = lambda self : None;
2594 """IsValid(SBCommandReturnObject self) -> bool"""
2595 return _lldb.SBCommandReturnObject_IsValid(self)
2596
2598 return _lldb.SBCommandReturnObject___nonzero__(self)
2599 __bool__ = __nonzero__
2600
2601
2603 """GetOutputSize(SBCommandReturnObject self) -> size_t"""
2604 return _lldb.SBCommandReturnObject_GetOutputSize(self)
2605
2607 """GetErrorSize(SBCommandReturnObject self) -> size_t"""
2608 return _lldb.SBCommandReturnObject_GetErrorSize(self)
2609
2611 """
2612 GetOutput(SBCommandReturnObject self) -> char const
2613 GetOutput(SBCommandReturnObject self, bool only_if_no_immediate) -> char const *
2614 """
2615 return _lldb.SBCommandReturnObject_GetOutput(self, *args)
2616
2618 """
2619 GetError(SBCommandReturnObject self) -> char const
2620 GetError(SBCommandReturnObject self, bool if_no_immediate) -> char const *
2621 """
2622 return _lldb.SBCommandReturnObject_GetError(self, *args)
2623
2625 """PutOutput(SBCommandReturnObject self, FILE * fh) -> size_t"""
2626 return _lldb.SBCommandReturnObject_PutOutput(self, *args)
2627
2629 """PutError(SBCommandReturnObject self, FILE * fh) -> size_t"""
2630 return _lldb.SBCommandReturnObject_PutError(self, *args)
2631
2633 """Clear(SBCommandReturnObject self)"""
2634 return _lldb.SBCommandReturnObject_Clear(self)
2635
2637 """SetStatus(SBCommandReturnObject self, lldb::ReturnStatus status)"""
2638 return _lldb.SBCommandReturnObject_SetStatus(self, *args)
2639
2641 """
2642 SetError(SBCommandReturnObject self, SBError error, char const * fallback_error_cstr=None)
2643 SetError(SBCommandReturnObject self, SBError error)
2644 SetError(SBCommandReturnObject self, char const * error_cstr)
2645 """
2646 return _lldb.SBCommandReturnObject_SetError(self, *args)
2647
2649 """GetStatus(SBCommandReturnObject self) -> lldb::ReturnStatus"""
2650 return _lldb.SBCommandReturnObject_GetStatus(self)
2651
2653 """Succeeded(SBCommandReturnObject self) -> bool"""
2654 return _lldb.SBCommandReturnObject_Succeeded(self)
2655
2657 """HasResult(SBCommandReturnObject self) -> bool"""
2658 return _lldb.SBCommandReturnObject_HasResult(self)
2659
2661 """AppendMessage(SBCommandReturnObject self, char const * message)"""
2662 return _lldb.SBCommandReturnObject_AppendMessage(self, *args)
2663
2665 """AppendWarning(SBCommandReturnObject self, char const * message)"""
2666 return _lldb.SBCommandReturnObject_AppendWarning(self, *args)
2667
2669 """GetDescription(SBCommandReturnObject self, SBStream description) -> bool"""
2670 return _lldb.SBCommandReturnObject_GetDescription(self, *args)
2671
2675
2679
2681 """PutCString(SBCommandReturnObject self, char const * string)"""
2682 return _lldb.SBCommandReturnObject_PutCString(self, *args)
2683
2684 - def Print(self, *args):
2685 """Print(SBCommandReturnObject self, char const * str)"""
2686 return _lldb.SBCommandReturnObject_Print(self, *args)
2687
2689 """__str__(SBCommandReturnObject self) -> PyObject *"""
2690 return _lldb.SBCommandReturnObject___str__(self)
2691
2692 - def write(self, *args):
2693 """write(SBCommandReturnObject self, char const * str)"""
2694 return _lldb.SBCommandReturnObject_write(self, *args)
2695
2697 """flush(SBCommandReturnObject self)"""
2698 return _lldb.SBCommandReturnObject_flush(self)
2699
2700 SBCommandReturnObject_swigregister = _lldb.SBCommandReturnObject_swigregister
2701 SBCommandReturnObject_swigregister(SBCommandReturnObject)
2724 __swig_destroy__ = _lldb.delete_SBCommunication
2725 __del__ = lambda self : None;
2727 """IsValid(SBCommunication self) -> bool"""
2728 return _lldb.SBCommunication_IsValid(self)
2729
2731 return _lldb.SBCommunication___nonzero__(self)
2732 __bool__ = __nonzero__
2733
2734
2736 """GetBroadcaster(SBCommunication self) -> SBBroadcaster"""
2737 return _lldb.SBCommunication_GetBroadcaster(self)
2738
2742
2743 if _newclass:GetBroadcasterClass = staticmethod(GetBroadcasterClass)
2744 __swig_getmethods__["GetBroadcasterClass"] = lambda x: GetBroadcasterClass
2746 """AdoptFileDesriptor(SBCommunication self, int fd, bool owns_fd) -> lldb::ConnectionStatus"""
2747 return _lldb.SBCommunication_AdoptFileDesriptor(self, *args)
2748
2750 """Connect(SBCommunication self, char const * url) -> lldb::ConnectionStatus"""
2751 return _lldb.SBCommunication_Connect(self, *args)
2752
2754 """Disconnect(SBCommunication self) -> lldb::ConnectionStatus"""
2755 return _lldb.SBCommunication_Disconnect(self)
2756
2758 """IsConnected(SBCommunication self) -> bool"""
2759 return _lldb.SBCommunication_IsConnected(self)
2760
2762 """GetCloseOnEOF(SBCommunication self) -> bool"""
2763 return _lldb.SBCommunication_GetCloseOnEOF(self)
2764
2766 """SetCloseOnEOF(SBCommunication self, bool b)"""
2767 return _lldb.SBCommunication_SetCloseOnEOF(self, *args)
2768
2769 - def Read(self, *args):
2770 """Read(SBCommunication self, void * dst, size_t dst_len, uint32_t timeout_usec, lldb::ConnectionStatus & status) -> size_t"""
2771 return _lldb.SBCommunication_Read(self, *args)
2772
2773 - def Write(self, *args):
2774 """Write(SBCommunication self, void const * src, size_t src_len, lldb::ConnectionStatus & status) -> size_t"""
2775 return _lldb.SBCommunication_Write(self, *args)
2776
2778 """ReadThreadStart(SBCommunication self) -> bool"""
2779 return _lldb.SBCommunication_ReadThreadStart(self)
2780
2782 """ReadThreadStop(SBCommunication self) -> bool"""
2783 return _lldb.SBCommunication_ReadThreadStop(self)
2784
2786 """ReadThreadIsRunning(SBCommunication self) -> bool"""
2787 return _lldb.SBCommunication_ReadThreadIsRunning(self)
2788
2790 """SetReadThreadBytesReceivedCallback(SBCommunication self, lldb::SBCommunication::ReadThreadBytesReceived callback, void * callback_baton) -> bool"""
2791 return _lldb.SBCommunication_SetReadThreadBytesReceivedCallback(self, *args)
2792
2793 SBCommunication_swigregister = _lldb.SBCommunication_swigregister
2794 SBCommunication_swigregister(SBCommunication)
2799
2801 """
2802 Represents a compilation unit, or compiled source file.
2803
2804 SBCompileUnit supports line entry iteration. For example,
2805
2806 # Now get the SBSymbolContext from this frame. We want everything. :-)
2807 context = frame0.GetSymbolContext(lldb.eSymbolContextEverything)
2808 ...
2809
2810 compileUnit = context.GetCompileUnit()
2811
2812 for lineEntry in compileUnit:
2813 print('line entry: %s:%d' % (str(lineEntry.GetFileSpec()),
2814 lineEntry.GetLine()))
2815 print('start addr: %s' % str(lineEntry.GetStartAddress()))
2816 print('end addr: %s' % str(lineEntry.GetEndAddress()))
2817
2818 produces:
2819
2820 line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:20
2821 start addr: a.out[0x100000d98]
2822 end addr: a.out[0x100000da3]
2823 line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:21
2824 start addr: a.out[0x100000da3]
2825 end addr: a.out[0x100000da9]
2826 line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:22
2827 start addr: a.out[0x100000da9]
2828 end addr: a.out[0x100000db6]
2829 line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:23
2830 start addr: a.out[0x100000db6]
2831 end addr: a.out[0x100000dbc]
2832 ...
2833
2834 See also SBSymbolContext and SBLineEntry
2835 """
2836 __swig_setmethods__ = {}
2837 __setattr__ = lambda self, name, value: _swig_setattr(self, SBCompileUnit, name, value)
2838 __swig_getmethods__ = {}
2839 __getattr__ = lambda self, name: _swig_getattr(self, SBCompileUnit, name)
2840 __repr__ = _swig_repr
2842 """
2843 __init__(lldb::SBCompileUnit self) -> SBCompileUnit
2844 __init__(lldb::SBCompileUnit self, SBCompileUnit rhs) -> SBCompileUnit
2845 """
2846 this = _lldb.new_SBCompileUnit(*args)
2847 try: self.this.append(this)
2848 except: self.this = this
2849 __swig_destroy__ = _lldb.delete_SBCompileUnit
2850 __del__ = lambda self : None;
2852 """IsValid(SBCompileUnit self) -> bool"""
2853 return _lldb.SBCompileUnit_IsValid(self)
2854
2856 return _lldb.SBCompileUnit___nonzero__(self)
2857 __bool__ = __nonzero__
2858
2859
2861 """GetFileSpec(SBCompileUnit self) -> SBFileSpec"""
2862 return _lldb.SBCompileUnit_GetFileSpec(self)
2863
2865 """GetNumLineEntries(SBCompileUnit self) -> uint32_t"""
2866 return _lldb.SBCompileUnit_GetNumLineEntries(self)
2867
2868 - def GetLineEntryAtIndex(self, *args):
2869 """GetLineEntryAtIndex(SBCompileUnit self, uint32_t idx) -> SBLineEntry"""
2870 return _lldb.SBCompileUnit_GetLineEntryAtIndex(self, *args)
2871
2872 - def FindLineEntryIndex(self, *args):
2873 """
2874 FindLineEntryIndex(SBCompileUnit self, uint32_t start_idx, uint32_t line, SBFileSpec inline_file_spec) -> uint32_t
2875 FindLineEntryIndex(SBCompileUnit self, uint32_t start_idx, uint32_t line, SBFileSpec inline_file_spec, bool exact) -> uint32_t
2876 """
2877 return _lldb.SBCompileUnit_FindLineEntryIndex(self, *args)
2878
2880 """GetSupportFileAtIndex(SBCompileUnit self, uint32_t idx) -> SBFileSpec"""
2881 return _lldb.SBCompileUnit_GetSupportFileAtIndex(self, *args)
2882
2884 """GetNumSupportFiles(SBCompileUnit self) -> uint32_t"""
2885 return _lldb.SBCompileUnit_GetNumSupportFiles(self)
2886
2888 """FindSupportFileIndex(SBCompileUnit self, uint32_t start_idx, SBFileSpec sb_file, bool full) -> uint32_t"""
2889 return _lldb.SBCompileUnit_FindSupportFileIndex(self, *args)
2890
2892 """
2893 GetTypes(SBCompileUnit self, uint32_t type_mask=eTypeClassAny) -> SBTypeList
2894 GetTypes(SBCompileUnit self) -> SBTypeList
2895
2896 Get all types matching type_mask from debug info in this
2897 compile unit.
2898
2899 @param[in] type_mask
2900 A bitfield that consists of one or more bits logically OR'ed
2901 together from the lldb::TypeClass enumeration. This allows
2902 you to request only structure types, or only class, struct
2903 and union types. Passing in lldb::eTypeClassAny will return
2904 all types found in the debug information for this compile
2905 unit.
2906
2907 @return
2908 A list of types in this compile unit that match type_mask
2909 """
2910 return _lldb.SBCompileUnit_GetTypes(self, *args)
2911
2913 """GetLanguage(SBCompileUnit self) -> lldb::LanguageType"""
2914 return _lldb.SBCompileUnit_GetLanguage(self)
2915
2917 """GetDescription(SBCompileUnit self, SBStream description) -> bool"""
2918 return _lldb.SBCompileUnit_GetDescription(self, *args)
2919
2921 """__eq__(SBCompileUnit self, SBCompileUnit rhs) -> bool"""
2922 return _lldb.SBCompileUnit___eq__(self, *args)
2923
2925 """__ne__(SBCompileUnit self, SBCompileUnit rhs) -> bool"""
2926 return _lldb.SBCompileUnit___ne__(self, *args)
2927
2929 '''Iterate over all line entries in a lldb.SBCompileUnit object.'''
2930 return lldb_iter(self, 'GetNumLineEntries', 'GetLineEntryAtIndex')
2931
2933 '''Return the number of line entries in a lldb.SBCompileUnit
2934 object.'''
2935 return self.GetNumLineEntries()
2936
2937 __swig_getmethods__["file"] = GetFileSpec
2938 if _newclass: file = property(GetFileSpec, None, doc='''A read only property that returns the same result an lldb object that represents the source file (lldb.SBFileSpec) for the compile unit.''')
2939
2940 __swig_getmethods__["num_line_entries"] = GetNumLineEntries
2941 if _newclass: num_line_entries = property(GetNumLineEntries, None, doc='''A read only property that returns the number of line entries in a compile unit as an integer.''')
2942
2944 """__str__(SBCompileUnit self) -> PyObject *"""
2945 return _lldb.SBCompileUnit___str__(self)
2946
2948 if not isinstance(rhs, type(self)):
2949 return False
2950
2951 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
2952
2954 if not isinstance(rhs, type(self)):
2955 return True
2956
2957 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
2958
2959 SBCompileUnit_swigregister = _lldb.SBCompileUnit_swigregister
2960 SBCompileUnit_swigregister(SBCompileUnit)
2977 __swig_destroy__ = _lldb.delete_SBData
2978 __del__ = lambda self : None;
2980 """GetAddressByteSize(SBData self) -> uint8_t"""
2981 return _lldb.SBData_GetAddressByteSize(self)
2982
2984 """SetAddressByteSize(SBData self, uint8_t addr_byte_size)"""
2985 return _lldb.SBData_SetAddressByteSize(self, *args)
2986
2988 """Clear(SBData self)"""
2989 return _lldb.SBData_Clear(self)
2990
2992 """IsValid(SBData self) -> bool"""
2993 return _lldb.SBData_IsValid(self)
2994
2996 return _lldb.SBData___nonzero__(self)
2997 __bool__ = __nonzero__
2998
2999
3001 """GetByteSize(SBData self) -> size_t"""
3002 return _lldb.SBData_GetByteSize(self)
3003
3005 """GetByteOrder(SBData self) -> lldb::ByteOrder"""
3006 return _lldb.SBData_GetByteOrder(self)
3007
3009 """SetByteOrder(SBData self, lldb::ByteOrder endian)"""
3010 return _lldb.SBData_SetByteOrder(self, *args)
3011
3013 """GetFloat(SBData self, SBError error, lldb::offset_t offset) -> float"""
3014 return _lldb.SBData_GetFloat(self, *args)
3015
3017 """GetDouble(SBData self, SBError error, lldb::offset_t offset) -> double"""
3018 return _lldb.SBData_GetDouble(self, *args)
3019
3021 """GetLongDouble(SBData self, SBError error, lldb::offset_t offset) -> long double"""
3022 return _lldb.SBData_GetLongDouble(self, *args)
3023
3025 """GetAddress(SBData self, SBError error, lldb::offset_t offset) -> lldb::addr_t"""
3026 return _lldb.SBData_GetAddress(self, *args)
3027
3029 """GetUnsignedInt8(SBData self, SBError error, lldb::offset_t offset) -> uint8_t"""
3030 return _lldb.SBData_GetUnsignedInt8(self, *args)
3031
3033 """GetUnsignedInt16(SBData self, SBError error, lldb::offset_t offset) -> uint16_t"""
3034 return _lldb.SBData_GetUnsignedInt16(self, *args)
3035
3037 """GetUnsignedInt32(SBData self, SBError error, lldb::offset_t offset) -> uint32_t"""
3038 return _lldb.SBData_GetUnsignedInt32(self, *args)
3039
3041 """GetUnsignedInt64(SBData self, SBError error, lldb::offset_t offset) -> uint64_t"""
3042 return _lldb.SBData_GetUnsignedInt64(self, *args)
3043
3045 """GetSignedInt8(SBData self, SBError error, lldb::offset_t offset) -> int8_t"""
3046 return _lldb.SBData_GetSignedInt8(self, *args)
3047
3049 """GetSignedInt16(SBData self, SBError error, lldb::offset_t offset) -> int16_t"""
3050 return _lldb.SBData_GetSignedInt16(self, *args)
3051
3053 """GetSignedInt32(SBData self, SBError error, lldb::offset_t offset) -> int32_t"""
3054 return _lldb.SBData_GetSignedInt32(self, *args)
3055
3057 """GetSignedInt64(SBData self, SBError error, lldb::offset_t offset) -> int64_t"""
3058 return _lldb.SBData_GetSignedInt64(self, *args)
3059
3061 """GetString(SBData self, SBError error, lldb::offset_t offset) -> char const *"""
3062 return _lldb.SBData_GetString(self, *args)
3063
3065 """GetDescription(SBData self, SBStream description, lldb::addr_t base_addr) -> bool"""
3066 return _lldb.SBData_GetDescription(self, *args)
3067
3069 """ReadRawData(SBData self, SBError error, lldb::offset_t offset, void * buf) -> size_t"""
3070 return _lldb.SBData_ReadRawData(self, *args)
3071
3073 """SetData(SBData self, SBError error, void const * buf, lldb::ByteOrder endian, uint8_t addr_size)"""
3074 return _lldb.SBData_SetData(self, *args)
3075
3077 """Append(SBData self, SBData rhs) -> bool"""
3078 return _lldb.SBData_Append(self, *args)
3079
3081 """CreateDataFromCString(lldb::ByteOrder endian, uint32_t addr_byte_size, char const * data) -> SBData"""
3082 return _lldb.SBData_CreateDataFromCString(*args)
3083
3084 if _newclass:CreateDataFromCString = staticmethod(CreateDataFromCString)
3085 __swig_getmethods__["CreateDataFromCString"] = lambda x: CreateDataFromCString
3087 """CreateDataFromUInt64Array(lldb::ByteOrder endian, uint32_t addr_byte_size, uint64_t * array) -> SBData"""
3088 return _lldb.SBData_CreateDataFromUInt64Array(*args)
3089
3090 if _newclass:CreateDataFromUInt64Array = staticmethod(CreateDataFromUInt64Array)
3091 __swig_getmethods__["CreateDataFromUInt64Array"] = lambda x: CreateDataFromUInt64Array
3093 """CreateDataFromUInt32Array(lldb::ByteOrder endian, uint32_t addr_byte_size, uint32_t * array) -> SBData"""
3094 return _lldb.SBData_CreateDataFromUInt32Array(*args)
3095
3096 if _newclass:CreateDataFromUInt32Array = staticmethod(CreateDataFromUInt32Array)
3097 __swig_getmethods__["CreateDataFromUInt32Array"] = lambda x: CreateDataFromUInt32Array
3099 """CreateDataFromSInt64Array(lldb::ByteOrder endian, uint32_t addr_byte_size, int64_t * array) -> SBData"""
3100 return _lldb.SBData_CreateDataFromSInt64Array(*args)
3101
3102 if _newclass:CreateDataFromSInt64Array = staticmethod(CreateDataFromSInt64Array)
3103 __swig_getmethods__["CreateDataFromSInt64Array"] = lambda x: CreateDataFromSInt64Array
3105 """CreateDataFromSInt32Array(lldb::ByteOrder endian, uint32_t addr_byte_size, int32_t * array) -> SBData"""
3106 return _lldb.SBData_CreateDataFromSInt32Array(*args)
3107
3108 if _newclass:CreateDataFromSInt32Array = staticmethod(CreateDataFromSInt32Array)
3109 __swig_getmethods__["CreateDataFromSInt32Array"] = lambda x: CreateDataFromSInt32Array
3111 """CreateDataFromDoubleArray(lldb::ByteOrder endian, uint32_t addr_byte_size, double * array) -> SBData"""
3112 return _lldb.SBData_CreateDataFromDoubleArray(*args)
3113
3114 if _newclass:CreateDataFromDoubleArray = staticmethod(CreateDataFromDoubleArray)
3115 __swig_getmethods__["CreateDataFromDoubleArray"] = lambda x: CreateDataFromDoubleArray
3117 """SetDataFromCString(SBData self, char const * data) -> bool"""
3118 return _lldb.SBData_SetDataFromCString(self, *args)
3119
3121 """SetDataFromUInt64Array(SBData self, uint64_t * array) -> bool"""
3122 return _lldb.SBData_SetDataFromUInt64Array(self, *args)
3123
3125 """SetDataFromUInt32Array(SBData self, uint32_t * array) -> bool"""
3126 return _lldb.SBData_SetDataFromUInt32Array(self, *args)
3127
3129 """SetDataFromSInt64Array(SBData self, int64_t * array) -> bool"""
3130 return _lldb.SBData_SetDataFromSInt64Array(self, *args)
3131
3133 """SetDataFromSInt32Array(SBData self, int32_t * array) -> bool"""
3134 return _lldb.SBData_SetDataFromSInt32Array(self, *args)
3135
3137 """SetDataFromDoubleArray(SBData self, double * array) -> bool"""
3138 return _lldb.SBData_SetDataFromDoubleArray(self, *args)
3139
3141 - def __init__(self, sbdata, readerfunc, item_size):
3142 self.sbdata = sbdata
3143 self.readerfunc = readerfunc
3144 self.item_size = item_size
3146 if isinstance(key,slice):
3147 list = []
3148 for x in range(*key.indices(self.__len__())):
3149 list.append(self.__getitem__(x))
3150 return list
3151 if not (isinstance(key,six.integer_types)):
3152 raise TypeError('must be int')
3153 key = key * self.item_size
3154 error = SBError()
3155 my_data = self.readerfunc(self.sbdata,error,key)
3156 if error.Fail():
3157 raise IndexError(error.GetCString())
3158 else:
3159 return my_data
3161 return int(self.sbdata.GetByteSize()/self.item_size)
3163 return self[0:len(self)]
3164
3165 @classmethod
3166 - def CreateDataFromInt (cls, value, size = None, target = None, ptr_size = None, endian = None):
3204
3207
3210
3213
3216
3219
3222
3225
3228
3231
3234
3237
3240
3243
3246
3249
3252
3255
3258
3261
3264
3267
3268 __swig_getmethods__["uint8"] = _make_helper_uint8
3269 if _newclass: uint8 = property(_make_helper_uint8, None, doc='''A read only property that returns an array-like object out of which you can read uint8 values.''')
3270
3271 __swig_getmethods__["uint16"] = _make_helper_uint16
3272 if _newclass: uint16 = property(_make_helper_uint16, None, doc='''A read only property that returns an array-like object out of which you can read uint16 values.''')
3273
3274 __swig_getmethods__["uint32"] = _make_helper_uint32
3275 if _newclass: uint32 = property(_make_helper_uint32, None, doc='''A read only property that returns an array-like object out of which you can read uint32 values.''')
3276
3277 __swig_getmethods__["uint64"] = _make_helper_uint64
3278 if _newclass: uint64 = property(_make_helper_uint64, None, doc='''A read only property that returns an array-like object out of which you can read uint64 values.''')
3279
3280 __swig_getmethods__["sint8"] = _make_helper_sint8
3281 if _newclass: sint8 = property(_make_helper_sint8, None, doc='''A read only property that returns an array-like object out of which you can read sint8 values.''')
3282
3283 __swig_getmethods__["sint16"] = _make_helper_sint16
3284 if _newclass: sint16 = property(_make_helper_sint16, None, doc='''A read only property that returns an array-like object out of which you can read sint16 values.''')
3285
3286 __swig_getmethods__["sint32"] = _make_helper_sint32
3287 if _newclass: sint32 = property(_make_helper_sint32, None, doc='''A read only property that returns an array-like object out of which you can read sint32 values.''')
3288
3289 __swig_getmethods__["sint64"] = _make_helper_sint64
3290 if _newclass: sint64 = property(_make_helper_sint64, None, doc='''A read only property that returns an array-like object out of which you can read sint64 values.''')
3291
3292 __swig_getmethods__["float"] = _make_helper_float
3293 if _newclass: float = property(_make_helper_float, None, doc='''A read only property that returns an array-like object out of which you can read float values.''')
3294
3295 __swig_getmethods__["double"] = _make_helper_double
3296 if _newclass: double = property(_make_helper_double, None, doc='''A read only property that returns an array-like object out of which you can read double values.''')
3297
3298 __swig_getmethods__["uint8s"] = _read_all_uint8
3299 if _newclass: uint8s = property(_read_all_uint8, None, doc='''A read only property that returns an array with all the contents of this SBData represented as uint8 values.''')
3300
3301 __swig_getmethods__["uint16s"] = _read_all_uint16
3302 if _newclass: uint16s = property(_read_all_uint16, None, doc='''A read only property that returns an array with all the contents of this SBData represented as uint16 values.''')
3303
3304 __swig_getmethods__["uint32s"] = _read_all_uint32
3305 if _newclass: uint32s = property(_read_all_uint32, None, doc='''A read only property that returns an array with all the contents of this SBData represented as uint32 values.''')
3306
3307 __swig_getmethods__["uint64s"] = _read_all_uint64
3308 if _newclass: uint64s = property(_read_all_uint64, None, doc='''A read only property that returns an array with all the contents of this SBData represented as uint64 values.''')
3309
3310 __swig_getmethods__["sint8s"] = _read_all_sint8
3311 if _newclass: sint8s = property(_read_all_sint8, None, doc='''A read only property that returns an array with all the contents of this SBData represented as sint8 values.''')
3312
3313 __swig_getmethods__["sint16s"] = _read_all_sint16
3314 if _newclass: sint16s = property(_read_all_sint16, None, doc='''A read only property that returns an array with all the contents of this SBData represented as sint16 values.''')
3315
3316 __swig_getmethods__["sint32s"] = _read_all_sint32
3317 if _newclass: sint32s = property(_read_all_sint32, None, doc='''A read only property that returns an array with all the contents of this SBData represented as sint32 values.''')
3318
3319 __swig_getmethods__["sint64s"] = _read_all_sint64
3320 if _newclass: sint64s = property(_read_all_sint64, None, doc='''A read only property that returns an array with all the contents of this SBData represented as sint64 values.''')
3321
3322 __swig_getmethods__["floats"] = _read_all_float
3323 if _newclass: floats = property(_read_all_float, None, doc='''A read only property that returns an array with all the contents of this SBData represented as float values.''')
3324
3325 __swig_getmethods__["doubles"] = _read_all_double
3326 if _newclass: doubles = property(_read_all_double, None, doc='''A read only property that returns an array with all the contents of this SBData represented as double values.''')
3327
3328
3329 __swig_getmethods__["byte_order"] = GetByteOrder
3330 __swig_setmethods__["byte_order"] = SetByteOrder
3331 if _newclass: byte_order = property(GetByteOrder, SetByteOrder, doc='''A read/write property getting and setting the endianness of this SBData (data.byte_order = lldb.eByteOrderLittle).''')
3332
3333 __swig_getmethods__["size"] = GetByteSize
3334 if _newclass: size = property(GetByteSize, None, doc='''A read only property that returns the size the same result as GetByteSize().''')
3335
3336
3338 """__str__(SBData self) -> PyObject *"""
3339 return _lldb.SBData___str__(self)
3340
3341 SBData_swigregister = _lldb.SBData_swigregister
3342 SBData_swigregister(SBData)
3345 """SBData_CreateDataFromCString(lldb::ByteOrder endian, uint32_t addr_byte_size, char const * data) -> SBData"""
3346 return _lldb.SBData_CreateDataFromCString(*args)
3347
3349 """SBData_CreateDataFromUInt64Array(lldb::ByteOrder endian, uint32_t addr_byte_size, uint64_t * array) -> SBData"""
3350 return _lldb.SBData_CreateDataFromUInt64Array(*args)
3351
3353 """SBData_CreateDataFromUInt32Array(lldb::ByteOrder endian, uint32_t addr_byte_size, uint32_t * array) -> SBData"""
3354 return _lldb.SBData_CreateDataFromUInt32Array(*args)
3355
3357 """SBData_CreateDataFromSInt64Array(lldb::ByteOrder endian, uint32_t addr_byte_size, int64_t * array) -> SBData"""
3358 return _lldb.SBData_CreateDataFromSInt64Array(*args)
3359
3361 """SBData_CreateDataFromSInt32Array(lldb::ByteOrder endian, uint32_t addr_byte_size, int32_t * array) -> SBData"""
3362 return _lldb.SBData_CreateDataFromSInt32Array(*args)
3363
3365 """SBData_CreateDataFromDoubleArray(lldb::ByteOrder endian, uint32_t addr_byte_size, double * array) -> SBData"""
3366 return _lldb.SBData_CreateDataFromDoubleArray(*args)
3367
3369 """
3370 SBDebugger is the primordial object that creates SBTargets and provides
3371 access to them. It also manages the overall debugging experiences.
3372
3373 For example (from example/disasm.py),
3374
3375 import lldb
3376 import os
3377 import sys
3378
3379 def disassemble_instructions (insts):
3380 for i in insts:
3381 print i
3382
3383 ...
3384
3385 # Create a new debugger instance
3386 debugger = lldb.SBDebugger.Create()
3387
3388 # When we step or continue, don't return from the function until the process
3389 # stops. We do this by setting the async mode to false.
3390 debugger.SetAsync (False)
3391
3392 # Create a target from a file and arch
3393 print('Creating a target for '%s'' % exe)
3394
3395 target = debugger.CreateTargetWithFileAndArch (exe, lldb.LLDB_ARCH_DEFAULT)
3396
3397 if target:
3398 # If the target is valid set a breakpoint at main
3399 main_bp = target.BreakpointCreateByName (fname, target.GetExecutable().GetFilename());
3400
3401 print main_bp
3402
3403 # Launch the process. Since we specified synchronous mode, we won't return
3404 # from this function until we hit the breakpoint at main
3405 process = target.LaunchSimple (None, None, os.getcwd())
3406
3407 # Make sure the launch went ok
3408 if process:
3409 # Print some simple process info
3410 state = process.GetState ()
3411 print process
3412 if state == lldb.eStateStopped:
3413 # Get the first thread
3414 thread = process.GetThreadAtIndex (0)
3415 if thread:
3416 # Print some simple thread info
3417 print thread
3418 # Get the first frame
3419 frame = thread.GetFrameAtIndex (0)
3420 if frame:
3421 # Print some simple frame info
3422 print frame
3423 function = frame.GetFunction()
3424 # See if we have debug info (a function)
3425 if function:
3426 # We do have a function, print some info for the function
3427 print function
3428 # Now get all instructions for this function and print them
3429 insts = function.GetInstructions(target)
3430 disassemble_instructions (insts)
3431 else:
3432 # See if we have a symbol in the symbol table for where we stopped
3433 symbol = frame.GetSymbol();
3434 if symbol:
3435 # We do have a symbol, print some info for the symbol
3436 print symbol
3437 # Now get all instructions for this symbol and print them
3438 insts = symbol.GetInstructions(target)
3439 disassemble_instructions (insts)
3440
3441 registerList = frame.GetRegisters()
3442 print('Frame registers (size of register set = %d):' % registerList.GetSize())
3443 for value in registerList:
3444 #print value
3445 print('%s (number of children = %d):' % (value.GetName(), value.GetNumChildren()))
3446 for child in value:
3447 print('Name: ', child.GetName(), ' Value: ', child.GetValue())
3448
3449 print('Hit the breakpoint at main, enter to continue and wait for program to exit or 'Ctrl-D'/'quit' to terminate the program')
3450 next = sys.stdin.readline()
3451 if not next or next.rstrip('
3452 ') == 'quit':
3453 print('Terminating the inferior process...')
3454 process.Kill()
3455 else:
3456 # Now continue to the program exit
3457 process.Continue()
3458 # When we return from the above function we will hopefully be at the
3459 # program exit. Print out some process info
3460 print process
3461 elif state == lldb.eStateExited:
3462 print('Didn't hit the breakpoint at main, program has exited...')
3463 else:
3464 print('Unexpected process state: %s, killing process...' % debugger.StateAsCString (state))
3465 process.Kill()
3466
3467 Sometimes you need to create an empty target that will get filled in later. The most common use for this
3468 is to attach to a process by name or pid where you don't know the executable up front. The most convenient way
3469 to do this is:
3470
3471 target = debugger.CreateTarget('')
3472 error = lldb.SBError()
3473 process = target.AttachToProcessWithName(debugger.GetListener(), 'PROCESS_NAME', False, error)
3474
3475 or the equivalent arguments for AttachToProcessWithID.
3476 """
3477 __swig_setmethods__ = {}
3478 __setattr__ = lambda self, name, value: _swig_setattr(self, SBDebugger, name, value)
3479 __swig_getmethods__ = {}
3480 __getattr__ = lambda self, name: _swig_getattr(self, SBDebugger, name)
3481 __repr__ = _swig_repr
3485
3486 if _newclass:Initialize = staticmethod(Initialize)
3487 __swig_getmethods__["Initialize"] = lambda x: Initialize
3491
3492 if _newclass:InitializeWithErrorHandling = staticmethod(InitializeWithErrorHandling)
3493 __swig_getmethods__["InitializeWithErrorHandling"] = lambda x: InitializeWithErrorHandling
3497
3498 if _newclass:Terminate = staticmethod(Terminate)
3499 __swig_getmethods__["Terminate"] = lambda x: Terminate
3501 """
3502 Create() -> SBDebugger
3503 Create(bool source_init_files) -> SBDebugger
3504 Create(bool source_init_files, lldb::LogOutputCallback log_callback) -> SBDebugger
3505 """
3506 return _lldb.SBDebugger_Create(*args)
3507
3508 if _newclass:Create = staticmethod(Create)
3509 __swig_getmethods__["Create"] = lambda x: Create
3513
3514 if _newclass:Destroy = staticmethod(Destroy)
3515 __swig_getmethods__["Destroy"] = lambda x: Destroy
3519
3520 if _newclass:MemoryPressureDetected = staticmethod(MemoryPressureDetected)
3521 __swig_getmethods__["MemoryPressureDetected"] = lambda x: MemoryPressureDetected
3523 """
3524 __init__(lldb::SBDebugger self) -> SBDebugger
3525 __init__(lldb::SBDebugger self, SBDebugger rhs) -> SBDebugger
3526 """
3527 this = _lldb.new_SBDebugger(*args)
3528 try: self.this.append(this)
3529 except: self.this = this
3530 __swig_destroy__ = _lldb.delete_SBDebugger
3531 __del__ = lambda self : None;
3533 """IsValid(SBDebugger self) -> bool"""
3534 return _lldb.SBDebugger_IsValid(self)
3535
3537 return _lldb.SBDebugger___nonzero__(self)
3538 __bool__ = __nonzero__
3539
3540
3542 """Clear(SBDebugger self)"""
3543 return _lldb.SBDebugger_Clear(self)
3544
3546 """SetAsync(SBDebugger self, bool b)"""
3547 return _lldb.SBDebugger_SetAsync(self, *args)
3548
3550 """GetAsync(SBDebugger self) -> bool"""
3551 return _lldb.SBDebugger_GetAsync(self)
3552
3554 """SkipLLDBInitFiles(SBDebugger self, bool b)"""
3555 return _lldb.SBDebugger_SkipLLDBInitFiles(self, *args)
3556
3560
3562 """SetOutputFileHandle(SBDebugger self, FILE * f, bool transfer_ownership)"""
3563 return _lldb.SBDebugger_SetOutputFileHandle(self, *args)
3564
3566 """SetErrorFileHandle(SBDebugger self, FILE * f, bool transfer_ownership)"""
3567 return _lldb.SBDebugger_SetErrorFileHandle(self, *args)
3568
3572
3574 """GetOutputFileHandle(SBDebugger self) -> FILE *"""
3575 return _lldb.SBDebugger_GetOutputFileHandle(self)
3576
3578 """GetErrorFileHandle(SBDebugger self) -> FILE *"""
3579 return _lldb.SBDebugger_GetErrorFileHandle(self)
3580
3582 """GetCommandInterpreter(SBDebugger self) -> SBCommandInterpreter"""
3583 return _lldb.SBDebugger_GetCommandInterpreter(self)
3584
3586 """HandleCommand(SBDebugger self, char const * command)"""
3587 return _lldb.SBDebugger_HandleCommand(self, *args)
3588
3590 """GetListener(SBDebugger self) -> SBListener"""
3591 return _lldb.SBDebugger_GetListener(self)
3592
3594 """HandleProcessEvent(SBDebugger self, SBProcess process, SBEvent event, FILE * out, FILE * err)"""
3595 return _lldb.SBDebugger_HandleProcessEvent(self, *args)
3596
3598 """CreateTargetWithFileAndTargetTriple(SBDebugger self, char const * filename, char const * target_triple) -> SBTarget"""
3599 return _lldb.SBDebugger_CreateTargetWithFileAndTargetTriple(self, *args)
3600
3602 """CreateTargetWithFileAndArch(SBDebugger self, char const * filename, char const * archname) -> SBTarget"""
3603 return _lldb.SBDebugger_CreateTargetWithFileAndArch(self, *args)
3604
3606 """
3607 CreateTarget(SBDebugger self, char const * filename, char const * target_triple, char const * platform_name, bool add_dependent_modules,
3608 SBError sb_error) -> SBTarget
3609 CreateTarget(SBDebugger self, char const * filename) -> SBTarget
3610 """
3611 return _lldb.SBDebugger_CreateTarget(self, *args)
3612
3614 """
3615 GetDummyTarget(SBDebugger self) -> SBTarget
3616
3617 The dummy target holds breakpoints and breakpoint names that will prime newly created targets.
3618 """
3619 return _lldb.SBDebugger_GetDummyTarget(self)
3620
3622 """
3623 DeleteTarget(SBDebugger self, SBTarget target) -> bool
3624
3625 Return true if target is deleted from the target list of the debugger.
3626 """
3627 return _lldb.SBDebugger_DeleteTarget(self, *args)
3628
3630 """GetTargetAtIndex(SBDebugger self, uint32_t idx) -> SBTarget"""
3631 return _lldb.SBDebugger_GetTargetAtIndex(self, *args)
3632
3634 """GetIndexOfTarget(SBDebugger self, SBTarget target) -> uint32_t"""
3635 return _lldb.SBDebugger_GetIndexOfTarget(self, *args)
3636
3638 """FindTargetWithProcessID(SBDebugger self, lldb::pid_t pid) -> SBTarget"""
3639 return _lldb.SBDebugger_FindTargetWithProcessID(self, *args)
3640
3642 """FindTargetWithFileAndArch(SBDebugger self, char const * filename, char const * arch) -> SBTarget"""
3643 return _lldb.SBDebugger_FindTargetWithFileAndArch(self, *args)
3644
3646 """GetNumTargets(SBDebugger self) -> uint32_t"""
3647 return _lldb.SBDebugger_GetNumTargets(self)
3648
3650 """GetSelectedTarget(SBDebugger self) -> SBTarget"""
3651 return _lldb.SBDebugger_GetSelectedTarget(self)
3652
3654 """SetSelectedTarget(SBDebugger self, SBTarget target)"""
3655 return _lldb.SBDebugger_SetSelectedTarget(self, *args)
3656
3660
3664
3672
3680
3688
3700
3702 """GetSourceManager(SBDebugger self) -> SBSourceManager"""
3703 return _lldb.SBDebugger_GetSourceManager(self)
3704
3708
3712
3714 """SetUseExternalEditor(SBDebugger self, bool input) -> bool"""
3715 return _lldb.SBDebugger_SetUseExternalEditor(self, *args)
3716
3718 """GetUseExternalEditor(SBDebugger self) -> bool"""
3719 return _lldb.SBDebugger_GetUseExternalEditor(self)
3720
3722 """SetUseColor(SBDebugger self, bool use_color) -> bool"""
3723 return _lldb.SBDebugger_SetUseColor(self, *args)
3724
3726 """GetUseColor(SBDebugger self) -> bool"""
3727 return _lldb.SBDebugger_GetUseColor(self)
3728
3732
3733 if _newclass:GetDefaultArchitecture = staticmethod(GetDefaultArchitecture)
3734 __swig_getmethods__["GetDefaultArchitecture"] = lambda x: GetDefaultArchitecture
3738
3739 if _newclass:SetDefaultArchitecture = staticmethod(SetDefaultArchitecture)
3740 __swig_getmethods__["SetDefaultArchitecture"] = lambda x: SetDefaultArchitecture
3742 """GetScriptingLanguage(SBDebugger self, char const * script_language_name) -> lldb::ScriptLanguage"""
3743 return _lldb.SBDebugger_GetScriptingLanguage(self, *args)
3744
3748
3749 if _newclass:GetVersionString = staticmethod(GetVersionString)
3750 __swig_getmethods__["GetVersionString"] = lambda x: GetVersionString
3754
3755 if _newclass:StateAsCString = staticmethod(StateAsCString)
3756 __swig_getmethods__["StateAsCString"] = lambda x: StateAsCString
3760
3761 if _newclass:GetBuildConfiguration = staticmethod(GetBuildConfiguration)
3762 __swig_getmethods__["GetBuildConfiguration"] = lambda x: GetBuildConfiguration
3766
3767 if _newclass:StateIsRunningState = staticmethod(StateIsRunningState)
3768 __swig_getmethods__["StateIsRunningState"] = lambda x: StateIsRunningState
3772
3773 if _newclass:StateIsStoppedState = staticmethod(StateIsStoppedState)
3774 __swig_getmethods__["StateIsStoppedState"] = lambda x: StateIsStoppedState
3776 """EnableLog(SBDebugger self, char const * channel, char const ** types) -> bool"""
3777 return _lldb.SBDebugger_EnableLog(self, *args)
3778
3780 """SetLoggingCallback(SBDebugger self, lldb::LogOutputCallback log_callback)"""
3781 return _lldb.SBDebugger_SetLoggingCallback(self, *args)
3782
3786
3790
3794
3796 """GetInstanceName(SBDebugger self) -> char const *"""
3797 return _lldb.SBDebugger_GetInstanceName(self)
3798
3802
3803 if _newclass:FindDebuggerWithID = staticmethod(FindDebuggerWithID)
3804 __swig_getmethods__["FindDebuggerWithID"] = lambda x: FindDebuggerWithID
3806 """SetInternalVariable(char const * var_name, char const * value, char const * debugger_instance_name) -> SBError"""
3807 return _lldb.SBDebugger_SetInternalVariable(*args)
3808
3809 if _newclass:SetInternalVariable = staticmethod(SetInternalVariable)
3810 __swig_getmethods__["SetInternalVariable"] = lambda x: SetInternalVariable
3814
3815 if _newclass:GetInternalVariableValue = staticmethod(GetInternalVariableValue)
3816 __swig_getmethods__["GetInternalVariableValue"] = lambda x: GetInternalVariableValue
3818 """GetDescription(SBDebugger self, SBStream description) -> bool"""
3819 return _lldb.SBDebugger_GetDescription(self, *args)
3820
3822 """GetTerminalWidth(SBDebugger self) -> uint32_t"""
3823 return _lldb.SBDebugger_GetTerminalWidth(self)
3824
3826 """SetTerminalWidth(SBDebugger self, uint32_t term_width)"""
3827 return _lldb.SBDebugger_SetTerminalWidth(self, *args)
3828
3830 """GetID(SBDebugger self) -> lldb::user_id_t"""
3831 return _lldb.SBDebugger_GetID(self)
3832
3834 """GetPrompt(SBDebugger self) -> char const *"""
3835 return _lldb.SBDebugger_GetPrompt(self)
3836
3838 """SetPrompt(SBDebugger self, char const * prompt)"""
3839 return _lldb.SBDebugger_SetPrompt(self, *args)
3840
3842 """GetReproducerPath(SBDebugger self) -> char const *"""
3843 return _lldb.SBDebugger_GetReproducerPath(self)
3844
3846 """GetScriptLanguage(SBDebugger self) -> lldb::ScriptLanguage"""
3847 return _lldb.SBDebugger_GetScriptLanguage(self)
3848
3850 """SetScriptLanguage(SBDebugger self, lldb::ScriptLanguage script_lang)"""
3851 return _lldb.SBDebugger_SetScriptLanguage(self, *args)
3852
3856
3860
3862 """
3863 GetCategory(SBDebugger self, char const * category_name) -> SBTypeCategory
3864 GetCategory(SBDebugger self, lldb::LanguageType lang_type) -> SBTypeCategory
3865 """
3866 return _lldb.SBDebugger_GetCategory(self, *args)
3867
3869 """CreateCategory(SBDebugger self, char const * category_name) -> SBTypeCategory"""
3870 return _lldb.SBDebugger_CreateCategory(self, *args)
3871
3873 """DeleteCategory(SBDebugger self, char const * category_name) -> bool"""
3874 return _lldb.SBDebugger_DeleteCategory(self, *args)
3875
3877 """GetNumCategories(SBDebugger self) -> uint32_t"""
3878 return _lldb.SBDebugger_GetNumCategories(self)
3879
3881 """GetCategoryAtIndex(SBDebugger self, uint32_t arg2) -> SBTypeCategory"""
3882 return _lldb.SBDebugger_GetCategoryAtIndex(self, *args)
3883
3885 """GetDefaultCategory(SBDebugger self) -> SBTypeCategory"""
3886 return _lldb.SBDebugger_GetDefaultCategory(self)
3887
3891
3893 """GetSummaryForType(SBDebugger self, SBTypeNameSpecifier arg2) -> SBTypeSummary"""
3894 return _lldb.SBDebugger_GetSummaryForType(self, *args)
3895
3897 """GetFilterForType(SBDebugger self, SBTypeNameSpecifier arg2) -> SBTypeFilter"""
3898 return _lldb.SBDebugger_GetFilterForType(self, *args)
3899
3901 """GetSyntheticForType(SBDebugger self, SBTypeNameSpecifier arg2) -> SBTypeSynthetic"""
3902 return _lldb.SBDebugger_GetSyntheticForType(self, *args)
3903
3905 """
3906 RunCommandInterpreter(SBDebugger self, bool auto_handle_events, bool spawn_thread, SBCommandInterpreterRunOptions options,
3907 int & num_errors, bool & quit_requested, bool & stopped_for_crash)
3908 """
3909 return _lldb.SBDebugger_RunCommandInterpreter(self, *args)
3910
3912 """RunREPL(SBDebugger self, lldb::LanguageType language, char const * repl_options) -> SBError"""
3913 return _lldb.SBDebugger_RunREPL(self, *args)
3914
3916 '''Iterate over all targets in a lldb.SBDebugger object.'''
3917 return lldb_iter(self, 'GetNumTargets', 'GetTargetAtIndex')
3918
3920 '''Return the number of targets in a lldb.SBDebugger object.'''
3921 return self.GetNumTargets()
3922
3924 """__str__(SBDebugger self) -> PyObject *"""
3925 return _lldb.SBDebugger___str__(self)
3926
3927 SBDebugger_swigregister = _lldb.SBDebugger_swigregister
3928 SBDebugger_swigregister(SBDebugger)
3933
3937
3941
3943 """
3944 Create() -> SBDebugger
3945 Create(bool source_init_files) -> SBDebugger
3946 SBDebugger_Create(bool source_init_files, lldb::LogOutputCallback log_callback) -> SBDebugger
3947 """
3948 return _lldb.SBDebugger_Create(*args)
3949
3951 """SBDebugger_Destroy(SBDebugger debugger)"""
3952 return _lldb.SBDebugger_Destroy(*args)
3953
3957
3961
3965
3969
3971 """SBDebugger_StateAsCString(lldb::StateType state) -> char const *"""
3972 return _lldb.SBDebugger_StateAsCString(*args)
3973
3977
3981
3985
3989
3991 """SBDebugger_SetInternalVariable(char const * var_name, char const * value, char const * debugger_instance_name) -> SBError"""
3992 return _lldb.SBDebugger_SetInternalVariable(*args)
3993
3995 """SBDebugger_GetInternalVariableValue(char const * var_name, char const * debugger_instance_name) -> SBStringList"""
3996 return _lldb.SBDebugger_GetInternalVariableValue(*args)
3997
4013 __swig_destroy__ = _lldb.delete_SBDeclaration
4014 __del__ = lambda self : None;
4016 """IsValid(SBDeclaration self) -> bool"""
4017 return _lldb.SBDeclaration_IsValid(self)
4018
4020 return _lldb.SBDeclaration___nonzero__(self)
4021 __bool__ = __nonzero__
4022
4023
4025 """GetFileSpec(SBDeclaration self) -> SBFileSpec"""
4026 return _lldb.SBDeclaration_GetFileSpec(self)
4027
4029 """GetLine(SBDeclaration self) -> uint32_t"""
4030 return _lldb.SBDeclaration_GetLine(self)
4031
4033 """GetColumn(SBDeclaration self) -> uint32_t"""
4034 return _lldb.SBDeclaration_GetColumn(self)
4035
4037 """GetDescription(SBDeclaration self, SBStream description) -> bool"""
4038 return _lldb.SBDeclaration_GetDescription(self, *args)
4039
4041 """SetFileSpec(SBDeclaration self, SBFileSpec filespec)"""
4042 return _lldb.SBDeclaration_SetFileSpec(self, *args)
4043
4045 """SetLine(SBDeclaration self, uint32_t line)"""
4046 return _lldb.SBDeclaration_SetLine(self, *args)
4047
4049 """SetColumn(SBDeclaration self, uint32_t column)"""
4050 return _lldb.SBDeclaration_SetColumn(self, *args)
4051
4053 """__eq__(SBDeclaration self, SBDeclaration rhs) -> bool"""
4054 return _lldb.SBDeclaration___eq__(self, *args)
4055
4057 """__ne__(SBDeclaration self, SBDeclaration rhs) -> bool"""
4058 return _lldb.SBDeclaration___ne__(self, *args)
4059
4060 __swig_getmethods__["file"] = GetFileSpec
4061 if _newclass: file = property(GetFileSpec, None, doc='''A read only property that returns an lldb object that represents the file (lldb.SBFileSpec) for this line entry.''')
4062
4063 __swig_getmethods__["line"] = GetLine
4064 if _newclass: line = property(GetLine, None, doc='''A read only property that returns the 1 based line number for this line entry, a return value of zero indicates that no line information is available.''')
4065
4066 __swig_getmethods__["column"] = GetColumn
4067 if _newclass: column = property(GetColumn, None, doc='''A read only property that returns the 1 based column number for this line entry, a return value of zero indicates that no column information is available.''')
4068
4070 """__str__(SBDeclaration self) -> PyObject *"""
4071 return _lldb.SBDeclaration___str__(self)
4072
4074 if not isinstance(rhs, type(self)):
4075 return False
4076
4077 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
4078
4080 if not isinstance(rhs, type(self)):
4081 return True
4082
4083 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
4084
4085 SBDeclaration_swigregister = _lldb.SBDeclaration_swigregister
4086 SBDeclaration_swigregister(SBDeclaration)
4089 """
4090 Represents a container for holding any error code.
4091
4092 For example (from test/python_api/hello_world/TestHelloWorld.py),
4093
4094 def hello_world_attach_with_id_api(self):
4095 '''Create target, spawn a process, and attach to it by id.'''
4096
4097 target = self.dbg.CreateTarget(self.exe)
4098
4099 # Spawn a new process and don't display the stdout if not in TraceOn() mode.
4100 import subprocess
4101 popen = subprocess.Popen([self.exe, 'abc', 'xyz'],
4102 stdout = open(os.devnull, 'w') if not self.TraceOn() else None)
4103
4104 listener = lldb.SBListener('my.attach.listener')
4105 error = lldb.SBError()
4106 process = target.AttachToProcessWithID(listener, popen.pid, error)
4107
4108 self.assertTrue(error.Success() and process, PROCESS_IS_VALID)
4109
4110 # Let's check the stack traces of the attached process.
4111 import lldbutil
4112 stacktraces = lldbutil.print_stacktraces(process, string_buffer=True)
4113 self.expect(stacktraces, exe=False,
4114 substrs = ['main.c:%d' % self.line2,
4115 '(int)argc=3'])
4116
4117 listener = lldb.SBListener('my.attach.listener')
4118 error = lldb.SBError()
4119 process = target.AttachToProcessWithID(listener, popen.pid, error)
4120
4121 self.assertTrue(error.Success() and process, PROCESS_IS_VALID)
4122
4123 checks that after the attach, there is no error condition by asserting
4124 that error.Success() is True and we get back a valid process object.
4125
4126 And (from test/python_api/event/TestEvent.py),
4127
4128 # Now launch the process, and do not stop at entry point.
4129 error = lldb.SBError()
4130 process = target.Launch(listener, None, None, None, None, None, None, 0, False, error)
4131 self.assertTrue(error.Success() and process, PROCESS_IS_VALID)
4132
4133 checks that after calling the target.Launch() method there's no error
4134 condition and we get back a void process object.
4135 """
4136 __swig_setmethods__ = {}
4137 __setattr__ = lambda self, name, value: _swig_setattr(self, SBError, name, value)
4138 __swig_getmethods__ = {}
4139 __getattr__ = lambda self, name: _swig_getattr(self, SBError, name)
4140 __repr__ = _swig_repr
4142 """
4143 __init__(lldb::SBError self) -> SBError
4144 __init__(lldb::SBError self, SBError rhs) -> SBError
4145 """
4146 this = _lldb.new_SBError(*args)
4147 try: self.this.append(this)
4148 except: self.this = this
4149 __swig_destroy__ = _lldb.delete_SBError
4150 __del__ = lambda self : None;
4152 """GetCString(SBError self) -> char const *"""
4153 return _lldb.SBError_GetCString(self)
4154
4156 """Clear(SBError self)"""
4157 return _lldb.SBError_Clear(self)
4158
4160 """Fail(SBError self) -> bool"""
4161 return _lldb.SBError_Fail(self)
4162
4164 """Success(SBError self) -> bool"""
4165 return _lldb.SBError_Success(self)
4166
4168 """GetError(SBError self) -> uint32_t"""
4169 return _lldb.SBError_GetError(self)
4170
4172 """GetType(SBError self) -> lldb::ErrorType"""
4173 return _lldb.SBError_GetType(self)
4174
4176 """SetError(SBError self, uint32_t err, lldb::ErrorType type)"""
4177 return _lldb.SBError_SetError(self, *args)
4178
4180 """SetErrorToErrno(SBError self)"""
4181 return _lldb.SBError_SetErrorToErrno(self)
4182
4184 """SetErrorToGenericError(SBError self)"""
4185 return _lldb.SBError_SetErrorToGenericError(self)
4186
4188 """SetErrorString(SBError self, char const * err_str)"""
4189 return _lldb.SBError_SetErrorString(self, *args)
4190
4199
4201 """IsValid(SBError self) -> bool"""
4202 return _lldb.SBError_IsValid(self)
4203
4205 return _lldb.SBError___nonzero__(self)
4206 __bool__ = __nonzero__
4207
4208
4210 """GetDescription(SBError self, SBStream description) -> bool"""
4211 return _lldb.SBError_GetDescription(self, *args)
4212
4213 __swig_getmethods__["value"] = GetError
4214 if _newclass: value = property(GetError, None, doc='''A read only property that returns the same result as GetError().''')
4215
4216 __swig_getmethods__["fail"] = Fail
4217 if _newclass: fail = property(Fail, None, doc='''A read only property that returns the same result as Fail().''')
4218
4219 __swig_getmethods__["success"] = Success
4220 if _newclass: success = property(Success, None, doc='''A read only property that returns the same result as Success().''')
4221
4222 __swig_getmethods__["description"] = GetCString
4223 if _newclass: description = property(GetCString, None, doc='''A read only property that returns the same result as GetCString().''')
4224
4225 __swig_getmethods__["type"] = GetType
4226 if _newclass: type = property(GetType, None, doc='''A read only property that returns the same result as GetType().''')
4227
4228
4230 """__str__(SBError self) -> PyObject *"""
4231 return _lldb.SBError___str__(self)
4232
4233 SBError_swigregister = _lldb.SBError_swigregister
4234 SBError_swigregister(SBError)
4237 """
4238 API clients can register to receive events.
4239
4240 For example, check out the following output:
4241
4242 Try wait for event...
4243 Event description: 0x103d0bb70 Event: broadcaster = 0x1009c8410, type = 0x00000001, data = { process = 0x1009c8400 (pid = 21528), state = running}
4244 Event data flavor: Process::ProcessEventData
4245 Process state: running
4246
4247 Try wait for event...
4248 Event description: 0x103a700a0 Event: broadcaster = 0x1009c8410, type = 0x00000001, data = { process = 0x1009c8400 (pid = 21528), state = stopped}
4249 Event data flavor: Process::ProcessEventData
4250 Process state: stopped
4251
4252 Try wait for event...
4253 Event description: 0x103d0d4a0 Event: broadcaster = 0x1009c8410, type = 0x00000001, data = { process = 0x1009c8400 (pid = 21528), state = exited}
4254 Event data flavor: Process::ProcessEventData
4255 Process state: exited
4256
4257 Try wait for event...
4258 timeout occurred waiting for event...
4259
4260 from test/python_api/event/TestEventspy:
4261
4262 def do_listen_for_and_print_event(self):
4263 '''Create a listener and use SBEvent API to print the events received.'''
4264 exe = os.path.join(os.getcwd(), 'a.out')
4265
4266 # Create a target by the debugger.
4267 target = self.dbg.CreateTarget(exe)
4268 self.assertTrue(target, VALID_TARGET)
4269
4270 # Now create a breakpoint on main.c by name 'c'.
4271 breakpoint = target.BreakpointCreateByName('c', 'a.out')
4272
4273 # Now launch the process, and do not stop at the entry point.
4274 process = target.LaunchSimple(None, None, os.getcwd())
4275 self.assertTrue(process.GetState() == lldb.eStateStopped,
4276 PROCESS_STOPPED)
4277
4278 # Get a handle on the process's broadcaster.
4279 broadcaster = process.GetBroadcaster()
4280
4281 # Create an empty event object.
4282 event = lldb.SBEvent()
4283
4284 # Create a listener object and register with the broadcaster.
4285 listener = lldb.SBListener('my listener')
4286 rc = broadcaster.AddListener(listener, lldb.SBProcess.eBroadcastBitStateChanged)
4287 self.assertTrue(rc, 'AddListener successfully retruns')
4288
4289 traceOn = self.TraceOn()
4290 if traceOn:
4291 lldbutil.print_stacktraces(process)
4292
4293 # Create MyListeningThread class to wait for any kind of event.
4294 import threading
4295 class MyListeningThread(threading.Thread):
4296 def run(self):
4297 count = 0
4298 # Let's only try at most 4 times to retrieve any kind of event.
4299 # After that, the thread exits.
4300 while not count > 3:
4301 if traceOn:
4302 print('Try wait for event...')
4303 if listener.WaitForEventForBroadcasterWithType(5,
4304 broadcaster,
4305 lldb.SBProcess.eBroadcastBitStateChanged,
4306 event):
4307 if traceOn:
4308 desc = lldbutil.get_description(event))
4309 print('Event description:', desc)
4310 print('Event data flavor:', event.GetDataFlavor())
4311 print('Process state:', lldbutil.state_type_to_str(process.GetState()))
4312 print()
4313 else:
4314 if traceOn:
4315 print 'timeout occurred waiting for event...'
4316 count = count + 1
4317 return
4318
4319 # Let's start the listening thread to retrieve the events.
4320 my_thread = MyListeningThread()
4321 my_thread.start()
4322
4323 # Use Python API to continue the process. The listening thread should be
4324 # able to receive the state changed events.
4325 process.Continue()
4326
4327 # Use Python API to kill the process. The listening thread should be
4328 # able to receive the state changed event, too.
4329 process.Kill()
4330
4331 # Wait until the 'MyListeningThread' terminates.
4332 my_thread.join()
4333 """
4334 __swig_setmethods__ = {}
4335 __setattr__ = lambda self, name, value: _swig_setattr(self, SBEvent, name, value)
4336 __swig_getmethods__ = {}
4337 __getattr__ = lambda self, name: _swig_getattr(self, SBEvent, name)
4338 __repr__ = _swig_repr
4340 """
4341 __init__(lldb::SBEvent self) -> SBEvent
4342 __init__(lldb::SBEvent self, SBEvent rhs) -> SBEvent
4343 __init__(self, int type, str data) -> SBEvent (make an event that contains a C string)
4344 """
4345 this = _lldb.new_SBEvent(*args)
4346 try: self.this.append(this)
4347 except: self.this = this
4348 __swig_destroy__ = _lldb.delete_SBEvent
4349 __del__ = lambda self : None;
4351 """IsValid(SBEvent self) -> bool"""
4352 return _lldb.SBEvent_IsValid(self)
4353
4355 return _lldb.SBEvent___nonzero__(self)
4356 __bool__ = __nonzero__
4357
4358
4360 """GetDataFlavor(SBEvent self) -> char const *"""
4361 return _lldb.SBEvent_GetDataFlavor(self)
4362
4364 """GetType(SBEvent self) -> uint32_t"""
4365 return _lldb.SBEvent_GetType(self)
4366
4368 """GetBroadcaster(SBEvent self) -> SBBroadcaster"""
4369 return _lldb.SBEvent_GetBroadcaster(self)
4370
4372 """GetBroadcasterClass(SBEvent self) -> char const *"""
4373 return _lldb.SBEvent_GetBroadcasterClass(self)
4374
4376 """BroadcasterMatchesRef(SBEvent self, SBBroadcaster broadcaster) -> bool"""
4377 return _lldb.SBEvent_BroadcasterMatchesRef(self, *args)
4378
4380 """Clear(SBEvent self)"""
4381 return _lldb.SBEvent_Clear(self)
4382
4386
4387 if _newclass:GetCStringFromEvent = staticmethod(GetCStringFromEvent)
4388 __swig_getmethods__["GetCStringFromEvent"] = lambda x: GetCStringFromEvent
4390 """GetDescription(SBEvent self, SBStream description) -> bool"""
4391 return _lldb.SBEvent_GetDescription(self, *args)
4392
4393 SBEvent_swigregister = _lldb.SBEvent_swigregister
4394 SBEvent_swigregister(SBEvent)
4399
4400 -class SBExecutionContext(_object):
4401 """Proxy of C++ lldb::SBExecutionContext class"""
4402 __swig_setmethods__ = {}
4403 __setattr__ = lambda self, name, value: _swig_setattr(self, SBExecutionContext, name, value)
4404 __swig_getmethods__ = {}
4405 __getattr__ = lambda self, name: _swig_getattr(self, SBExecutionContext, name)
4406 __repr__ = _swig_repr
4407 - def __init__(self, *args):
4408 """
4409 __init__(lldb::SBExecutionContext self) -> SBExecutionContext
4410 __init__(lldb::SBExecutionContext self, SBExecutionContext rhs) -> SBExecutionContext
4411 __init__(lldb::SBExecutionContext self, SBTarget target) -> SBExecutionContext
4412 __init__(lldb::SBExecutionContext self, SBProcess process) -> SBExecutionContext
4413 __init__(lldb::SBExecutionContext self, SBThread thread) -> SBExecutionContext
4414 __init__(lldb::SBExecutionContext self, SBFrame frame) -> SBExecutionContext
4415 """
4416 this = _lldb.new_SBExecutionContext(*args)
4417 try: self.this.append(this)
4418 except: self.this = this
4419 __swig_destroy__ = _lldb.delete_SBExecutionContext
4420 __del__ = lambda self : None;
4421 - def GetTarget(self):
4422 """GetTarget(SBExecutionContext self) -> SBTarget"""
4423 return _lldb.SBExecutionContext_GetTarget(self)
4424
4425 - def GetProcess(self):
4426 """GetProcess(SBExecutionContext self) -> SBProcess"""
4427 return _lldb.SBExecutionContext_GetProcess(self)
4428
4429 - def GetThread(self):
4430 """GetThread(SBExecutionContext self) -> SBThread"""
4431 return _lldb.SBExecutionContext_GetThread(self)
4432
4433 - def GetFrame(self):
4434 """GetFrame(SBExecutionContext self) -> SBFrame"""
4435 return _lldb.SBExecutionContext_GetFrame(self)
4436
4437 __swig_getmethods__["target"] = GetTarget
4438 if _newclass: target = property(GetTarget, None, doc='''A read only property that returns the same result as GetTarget().''')
4439
4440 __swig_getmethods__["process"] = GetProcess
4441 if _newclass: process = property(GetProcess, None, doc='''A read only property that returns the same result as GetProcess().''')
4442
4443 __swig_getmethods__["thread"] = GetThread
4444 if _newclass: thread = property(GetThread, None, doc='''A read only property that returns the same result as GetThread().''')
4445
4446 __swig_getmethods__["frame"] = GetFrame
4447 if _newclass: frame = property(GetFrame, None, doc='''A read only property that returns the same result as GetFrame().''')
4448
4449 SBExecutionContext_swigregister = _lldb.SBExecutionContext_swigregister
4450 SBExecutionContext_swigregister(SBExecutionContext)
4467 __swig_destroy__ = _lldb.delete_SBExpressionOptions
4468 __del__ = lambda self : None;
4470 """GetCoerceResultToId(SBExpressionOptions self) -> bool"""
4471 return _lldb.SBExpressionOptions_GetCoerceResultToId(self)
4472
4474 """
4475 SetCoerceResultToId(SBExpressionOptions self, bool coerce=True)
4476 SetCoerceResultToId(SBExpressionOptions self)
4477
4478 Sets whether to coerce the expression result to ObjC id type after evaluation.
4479 """
4480 return _lldb.SBExpressionOptions_SetCoerceResultToId(self, coerce)
4481
4483 """GetUnwindOnError(SBExpressionOptions self) -> bool"""
4484 return _lldb.SBExpressionOptions_GetUnwindOnError(self)
4485
4487 """
4488 SetUnwindOnError(SBExpressionOptions self, bool unwind=True)
4489 SetUnwindOnError(SBExpressionOptions self)
4490
4491 Sets whether to unwind the expression stack on error.
4492 """
4493 return _lldb.SBExpressionOptions_SetUnwindOnError(self, unwind)
4494
4496 """GetIgnoreBreakpoints(SBExpressionOptions self) -> bool"""
4497 return _lldb.SBExpressionOptions_GetIgnoreBreakpoints(self)
4498
4500 """
4501 SetIgnoreBreakpoints(SBExpressionOptions self, bool ignore=True)
4502 SetIgnoreBreakpoints(SBExpressionOptions self)
4503 """
4504 return _lldb.SBExpressionOptions_SetIgnoreBreakpoints(self, ignore)
4505
4507 """GetFetchDynamicValue(SBExpressionOptions self) -> lldb::DynamicValueType"""
4508 return _lldb.SBExpressionOptions_GetFetchDynamicValue(self)
4509
4511 """
4512 SetFetchDynamicValue(SBExpressionOptions self, lldb::DynamicValueType dynamic=eDynamicCanRunTarget)
4513 SetFetchDynamicValue(SBExpressionOptions self)
4514
4515 Sets whether to cast the expression result to its dynamic type.
4516 """
4517 return _lldb.SBExpressionOptions_SetFetchDynamicValue(self, *args)
4518
4520 """GetTimeoutInMicroSeconds(SBExpressionOptions self) -> uint32_t"""
4521 return _lldb.SBExpressionOptions_GetTimeoutInMicroSeconds(self)
4522
4524 """
4525 SetTimeoutInMicroSeconds(SBExpressionOptions self, uint32_t timeout=0)
4526 SetTimeoutInMicroSeconds(SBExpressionOptions self)
4527
4528 Sets the timeout in microseconds to run the expression for. If try all threads is set to true and the expression doesn't complete within the specified timeout, all threads will be resumed for the same timeout to see if the expresson will finish.
4529 """
4530 return _lldb.SBExpressionOptions_SetTimeoutInMicroSeconds(self, timeout)
4531
4533 """GetOneThreadTimeoutInMicroSeconds(SBExpressionOptions self) -> uint32_t"""
4534 return _lldb.SBExpressionOptions_GetOneThreadTimeoutInMicroSeconds(self)
4535
4537 """
4538 SetOneThreadTimeoutInMicroSeconds(SBExpressionOptions self, uint32_t timeout=0)
4539 SetOneThreadTimeoutInMicroSeconds(SBExpressionOptions self)
4540 """
4541 return _lldb.SBExpressionOptions_SetOneThreadTimeoutInMicroSeconds(self, timeout)
4542
4544 """GetTryAllThreads(SBExpressionOptions self) -> bool"""
4545 return _lldb.SBExpressionOptions_GetTryAllThreads(self)
4546
4548 """
4549 SetTryAllThreads(SBExpressionOptions self, bool run_others=True)
4550 SetTryAllThreads(SBExpressionOptions self)
4551
4552 Sets whether to run all threads if the expression does not complete on one thread.
4553 """
4554 return _lldb.SBExpressionOptions_SetTryAllThreads(self, run_others)
4555
4557 """GetStopOthers(SBExpressionOptions self) -> bool"""
4558 return _lldb.SBExpressionOptions_GetStopOthers(self)
4559
4561 """
4562 SetStopOthers(SBExpressionOptions self, bool stop_others=True)
4563 SetStopOthers(SBExpressionOptions self)
4564 """
4565 return _lldb.SBExpressionOptions_SetStopOthers(self, stop_others)
4566
4568 """GetTrapExceptions(SBExpressionOptions self) -> bool"""
4569 return _lldb.SBExpressionOptions_GetTrapExceptions(self)
4570
4572 """
4573 SetTrapExceptions(SBExpressionOptions self, bool trap_exceptions=True)
4574 SetTrapExceptions(SBExpressionOptions self)
4575 """
4576 return _lldb.SBExpressionOptions_SetTrapExceptions(self, trap_exceptions)
4577
4579 """
4580 SetLanguage(SBExpressionOptions self, lldb::LanguageType language)
4581
4582 Sets the language that LLDB should assume the expression is written in
4583 """
4584 return _lldb.SBExpressionOptions_SetLanguage(self, *args)
4585
4587 """GetGenerateDebugInfo(SBExpressionOptions self) -> bool"""
4588 return _lldb.SBExpressionOptions_GetGenerateDebugInfo(self)
4589
4591 """
4592 SetGenerateDebugInfo(SBExpressionOptions self, bool b=True)
4593 SetGenerateDebugInfo(SBExpressionOptions self)
4594
4595 Sets whether to generate debug information for the expression and also controls if a SBModule is generated.
4596 """
4597 return _lldb.SBExpressionOptions_SetGenerateDebugInfo(self, b)
4598
4600 """GetSuppressPersistentResult(SBExpressionOptions self) -> bool"""
4601 return _lldb.SBExpressionOptions_GetSuppressPersistentResult(self)
4602
4604 """
4605 SetSuppressPersistentResult(SBExpressionOptions self, bool b=False)
4606 SetSuppressPersistentResult(SBExpressionOptions self)
4607
4608 Sets whether to produce a persistent result that can be used in future expressions.
4609 """
4610 return _lldb.SBExpressionOptions_SetSuppressPersistentResult(self, b)
4611
4613 """
4614 GetPrefix(SBExpressionOptions self) -> char const *
4615
4616 Gets the prefix to use for this expression.
4617 """
4618 return _lldb.SBExpressionOptions_GetPrefix(self)
4619
4621 """
4622 SetPrefix(SBExpressionOptions self, char const * prefix)
4623
4624 Sets the prefix to use for this expression. This prefix gets inserted after the 'target.expr-prefix' prefix contents, but before the wrapped expression function body.
4625 """
4626 return _lldb.SBExpressionOptions_SetPrefix(self, *args)
4627
4629 """
4630 SetAutoApplyFixIts(SBExpressionOptions self, bool b=True)
4631 SetAutoApplyFixIts(SBExpressionOptions self)
4632
4633 Sets whether to auto-apply fix-it hints to the expression being evaluated.
4634 """
4635 return _lldb.SBExpressionOptions_SetAutoApplyFixIts(self, b)
4636
4638 """
4639 GetAutoApplyFixIts(SBExpressionOptions self) -> bool
4640
4641 Gets whether to auto-apply fix-it hints to an expression.
4642 """
4643 return _lldb.SBExpressionOptions_GetAutoApplyFixIts(self)
4644
4646 """GetTopLevel(SBExpressionOptions self) -> bool"""
4647 return _lldb.SBExpressionOptions_GetTopLevel(self)
4648
4650 """
4651 SetTopLevel(SBExpressionOptions self, bool b=True)
4652 SetTopLevel(SBExpressionOptions self)
4653 """
4654 return _lldb.SBExpressionOptions_SetTopLevel(self, b)
4655
4657 """
4658 GetAllowJIT(SBExpressionOptions self) -> bool
4659
4660 Gets whether to JIT an expression if it cannot be interpreted.
4661 """
4662 return _lldb.SBExpressionOptions_GetAllowJIT(self)
4663
4665 """
4666 SetAllowJIT(SBExpressionOptions self, bool allow)
4667
4668 Sets whether to JIT an expression if it cannot be interpreted.
4669 """
4670 return _lldb.SBExpressionOptions_SetAllowJIT(self, *args)
4671
4672 SBExpressionOptions_swigregister = _lldb.SBExpressionOptions_swigregister
4673 SBExpressionOptions_swigregister(SBExpressionOptions)
4676 """
4677 Represents a file specification that divides the path into a directory and
4678 basename. The string values of the paths are put into uniqued string pools
4679 for fast comparisons and efficient memory usage.
4680
4681 For example, the following code
4682
4683 lineEntry = context.GetLineEntry()
4684 self.expect(lineEntry.GetFileSpec().GetDirectory(), 'The line entry should have the correct directory',
4685 exe=False,
4686 substrs = [self.mydir])
4687 self.expect(lineEntry.GetFileSpec().GetFilename(), 'The line entry should have the correct filename',
4688 exe=False,
4689 substrs = ['main.c'])
4690 self.assertTrue(lineEntry.GetLine() == self.line,
4691 'The line entry's line number should match ')
4692
4693 gets the line entry from the symbol context when a thread is stopped.
4694 It gets the file spec corresponding to the line entry and checks that
4695 the filename and the directory matches what we expect.
4696 """
4697 __swig_setmethods__ = {}
4698 __setattr__ = lambda self, name, value: _swig_setattr(self, SBFileSpec, name, value)
4699 __swig_getmethods__ = {}
4700 __getattr__ = lambda self, name: _swig_getattr(self, SBFileSpec, name)
4701 __repr__ = _swig_repr
4703 """
4704 __init__(lldb::SBFileSpec self) -> SBFileSpec
4705 __init__(lldb::SBFileSpec self, SBFileSpec rhs) -> SBFileSpec
4706 __init__(lldb::SBFileSpec self, char const * path) -> SBFileSpec
4707 __init__(lldb::SBFileSpec self, char const * path, bool resolve) -> SBFileSpec
4708 """
4709 this = _lldb.new_SBFileSpec(*args)
4710 try: self.this.append(this)
4711 except: self.this = this
4712 __swig_destroy__ = _lldb.delete_SBFileSpec
4713 __del__ = lambda self : None;
4715 """__eq__(SBFileSpec self, SBFileSpec rhs) -> bool"""
4716 return _lldb.SBFileSpec___eq__(self, *args)
4717
4719 """__ne__(SBFileSpec self, SBFileSpec rhs) -> bool"""
4720 return _lldb.SBFileSpec___ne__(self, *args)
4721
4723 """IsValid(SBFileSpec self) -> bool"""
4724 return _lldb.SBFileSpec_IsValid(self)
4725
4727 return _lldb.SBFileSpec___nonzero__(self)
4728 __bool__ = __nonzero__
4729
4730
4732 """Exists(SBFileSpec self) -> bool"""
4733 return _lldb.SBFileSpec_Exists(self)
4734
4736 """ResolveExecutableLocation(SBFileSpec self) -> bool"""
4737 return _lldb.SBFileSpec_ResolveExecutableLocation(self)
4738
4740 """GetFilename(SBFileSpec self) -> char const *"""
4741 return _lldb.SBFileSpec_GetFilename(self)
4742
4744 """GetDirectory(SBFileSpec self) -> char const *"""
4745 return _lldb.SBFileSpec_GetDirectory(self)
4746
4748 """SetFilename(SBFileSpec self, char const * filename)"""
4749 return _lldb.SBFileSpec_SetFilename(self, *args)
4750
4752 """SetDirectory(SBFileSpec self, char const * directory)"""
4753 return _lldb.SBFileSpec_SetDirectory(self, *args)
4754
4756 """GetPath(SBFileSpec self, char * dst_path, size_t dst_len) -> uint32_t"""
4757 return _lldb.SBFileSpec_GetPath(self, *args)
4758
4760 """ResolvePath(char const * src_path, char * dst_path, size_t dst_len) -> int"""
4761 return _lldb.SBFileSpec_ResolvePath(*args)
4762
4763 if _newclass:ResolvePath = staticmethod(ResolvePath)
4764 __swig_getmethods__["ResolvePath"] = lambda x: ResolvePath
4766 """GetDescription(SBFileSpec self, SBStream description) -> bool"""
4767 return _lldb.SBFileSpec_GetDescription(self, *args)
4768
4770 """AppendPathComponent(SBFileSpec self, char const * file_or_directory)"""
4771 return _lldb.SBFileSpec_AppendPathComponent(self, *args)
4772
4774 spec_dir = self.GetDirectory()
4775 spec_file = self.GetFilename()
4776 if spec_dir and spec_file:
4777 return '%s/%s' % (spec_dir, spec_file)
4778 elif spec_dir:
4779 return spec_dir
4780 elif spec_file:
4781 return spec_file
4782 return None
4783
4784 __swig_getmethods__["fullpath"] = __get_fullpath__
4785 if _newclass: fullpath = property(__get_fullpath__, None, doc='''A read only property that returns the fullpath as a python string.''')
4786
4787 __swig_getmethods__["basename"] = GetFilename
4788 if _newclass: basename = property(GetFilename, None, doc='''A read only property that returns the path basename as a python string.''')
4789
4790 __swig_getmethods__["dirname"] = GetDirectory
4791 if _newclass: dirname = property(GetDirectory, None, doc='''A read only property that returns the path directory name as a python string.''')
4792
4793 __swig_getmethods__["exists"] = Exists
4794 if _newclass: exists = property(Exists, None, doc='''A read only property that returns a boolean value that indicates if the file exists.''')
4795
4797 """__str__(SBFileSpec self) -> PyObject *"""
4798 return _lldb.SBFileSpec___str__(self)
4799
4800 SBFileSpec_swigregister = _lldb.SBFileSpec_swigregister
4801 SBFileSpec_swigregister(SBFileSpec)
4804 """SBFileSpec_ResolvePath(char const * src_path, char * dst_path, size_t dst_len) -> int"""
4805 return _lldb.SBFileSpec_ResolvePath(*args)
4806
4822 __swig_destroy__ = _lldb.delete_SBFileSpecList
4823 __del__ = lambda self : None;
4825 """GetSize(SBFileSpecList self) -> uint32_t"""
4826 return _lldb.SBFileSpecList_GetSize(self)
4827
4829 """GetDescription(SBFileSpecList self, SBStream description) -> bool"""
4830 return _lldb.SBFileSpecList_GetDescription(self, *args)
4831
4833 """Append(SBFileSpecList self, SBFileSpec sb_file)"""
4834 return _lldb.SBFileSpecList_Append(self, *args)
4835
4837 """AppendIfUnique(SBFileSpecList self, SBFileSpec sb_file) -> bool"""
4838 return _lldb.SBFileSpecList_AppendIfUnique(self, *args)
4839
4841 """Clear(SBFileSpecList self)"""
4842 return _lldb.SBFileSpecList_Clear(self)
4843
4845 """FindFileIndex(SBFileSpecList self, uint32_t idx, SBFileSpec sb_file, bool full) -> uint32_t"""
4846 return _lldb.SBFileSpecList_FindFileIndex(self, *args)
4847
4849 """GetFileSpecAtIndex(SBFileSpecList self, uint32_t idx) -> SBFileSpec"""
4850 return _lldb.SBFileSpecList_GetFileSpecAtIndex(self, *args)
4851
4852 SBFileSpecList_swigregister = _lldb.SBFileSpecList_swigregister
4853 SBFileSpecList_swigregister(SBFileSpecList)
4856 """
4857 Represents one of the stack frames associated with a thread.
4858 SBThread contains SBFrame(s). For example (from test/lldbutil.py),
4859
4860 def print_stacktrace(thread, string_buffer = False):
4861 '''Prints a simple stack trace of this thread.'''
4862
4863 ...
4864
4865 for i in range(depth):
4866 frame = thread.GetFrameAtIndex(i)
4867 function = frame.GetFunction()
4868
4869 load_addr = addrs[i].GetLoadAddress(target)
4870 if not function:
4871 file_addr = addrs[i].GetFileAddress()
4872 start_addr = frame.GetSymbol().GetStartAddress().GetFileAddress()
4873 symbol_offset = file_addr - start_addr
4874 print >> output, ' frame #{num}: {addr:#016x} {mod}`{symbol} + {offset}'.format(
4875 num=i, addr=load_addr, mod=mods[i], symbol=symbols[i], offset=symbol_offset)
4876 else:
4877 print >> output, ' frame #{num}: {addr:#016x} {mod}`{func} at {file}:{line} {args}'.format(
4878 num=i, addr=load_addr, mod=mods[i],
4879 func='%s [inlined]' % funcs[i] if frame.IsInlined() else funcs[i],
4880 file=files[i], line=lines[i],
4881 args=get_args_as_string(frame, showFuncName=False) if not frame.IsInlined() else '()')
4882
4883 ...
4884
4885 And,
4886
4887 for frame in thread:
4888 print frame
4889
4890 See also SBThread.
4891 """
4892 __swig_setmethods__ = {}
4893 __setattr__ = lambda self, name, value: _swig_setattr(self, SBFrame, name, value)
4894 __swig_getmethods__ = {}
4895 __getattr__ = lambda self, name: _swig_getattr(self, SBFrame, name)
4896 __repr__ = _swig_repr
4898 """
4899 __init__(lldb::SBFrame self) -> SBFrame
4900 __init__(lldb::SBFrame self, SBFrame rhs) -> SBFrame
4901 """
4902 this = _lldb.new_SBFrame(*args)
4903 try: self.this.append(this)
4904 except: self.this = this
4905 __swig_destroy__ = _lldb.delete_SBFrame
4906 __del__ = lambda self : None;
4908 """IsEqual(SBFrame self, SBFrame rhs) -> bool"""
4909 return _lldb.SBFrame_IsEqual(self, *args)
4910
4912 """IsValid(SBFrame self) -> bool"""
4913 return _lldb.SBFrame_IsValid(self)
4914
4916 return _lldb.SBFrame___nonzero__(self)
4917 __bool__ = __nonzero__
4918
4919
4921 """GetFrameID(SBFrame self) -> uint32_t"""
4922 return _lldb.SBFrame_GetFrameID(self)
4923
4925 """
4926 GetCFA(SBFrame self) -> lldb::addr_t
4927
4928 Get the Canonical Frame Address for this stack frame.
4929 This is the DWARF standard's definition of a CFA, a stack address
4930 that remains constant throughout the lifetime of the function.
4931 Returns an lldb::addr_t stack address, or LLDB_INVALID_ADDRESS if
4932 the CFA cannot be determined.
4933 """
4934 return _lldb.SBFrame_GetCFA(self)
4935
4937 """GetPC(SBFrame self) -> lldb::addr_t"""
4938 return _lldb.SBFrame_GetPC(self)
4939
4940 - def SetPC(self, *args):
4941 """SetPC(SBFrame self, lldb::addr_t new_pc) -> bool"""
4942 return _lldb.SBFrame_SetPC(self, *args)
4943
4945 """GetSP(SBFrame self) -> lldb::addr_t"""
4946 return _lldb.SBFrame_GetSP(self)
4947
4949 """GetFP(SBFrame self) -> lldb::addr_t"""
4950 return _lldb.SBFrame_GetFP(self)
4951
4953 """GetPCAddress(SBFrame self) -> SBAddress"""
4954 return _lldb.SBFrame_GetPCAddress(self)
4955
4956 - def GetSymbolContext(self, *args):
4957 """GetSymbolContext(SBFrame self, uint32_t resolve_scope) -> SBSymbolContext"""
4958 return _lldb.SBFrame_GetSymbolContext(self, *args)
4959
4961 """GetModule(SBFrame self) -> SBModule"""
4962 return _lldb.SBFrame_GetModule(self)
4963
4965 """GetCompileUnit(SBFrame self) -> SBCompileUnit"""
4966 return _lldb.SBFrame_GetCompileUnit(self)
4967
4969 """GetFunction(SBFrame self) -> SBFunction"""
4970 return _lldb.SBFrame_GetFunction(self)
4971
4973 """GetSymbol(SBFrame self) -> SBSymbol"""
4974 return _lldb.SBFrame_GetSymbol(self)
4975
4977 """
4978 GetBlock(SBFrame self) -> SBBlock
4979
4980 Gets the deepest block that contains the frame PC.
4981
4982 See also GetFrameBlock().
4983 """
4984 return _lldb.SBFrame_GetBlock(self)
4985
4987 """GetDisplayFunctionName(SBFrame self) -> char const *"""
4988 return _lldb.SBFrame_GetDisplayFunctionName(self)
4989
4991 """
4992 GetFunctionName(SBFrame self) -> char const
4993 GetFunctionName(SBFrame self) -> char const *
4994
4995 Get the appropriate function name for this frame. Inlined functions in
4996 LLDB are represented by Blocks that have inlined function information, so
4997 just looking at the SBFunction or SBSymbol for a frame isn't enough.
4998 This function will return the appropriate function, symbol or inlined
4999 function name for the frame.
5000
5001 This function returns:
5002 - the name of the inlined function (if there is one)
5003 - the name of the concrete function (if there is one)
5004 - the name of the symbol (if there is one)
5005 - NULL
5006
5007 See also IsInlined().
5008 """
5009 return _lldb.SBFrame_GetFunctionName(self, *args)
5010
5012 """
5013 GuessLanguage(SBFrame self) -> lldb::LanguageType
5014
5015 Returns the language of the frame's SBFunction, or if there.
5016 is no SBFunction, guess the language from the mangled name.
5017 .
5018 """
5019 return _lldb.SBFrame_GuessLanguage(self)
5020
5022 """
5023 IsInlined(SBFrame self) -> bool
5024 IsInlined(SBFrame self) -> bool
5025
5026 Return true if this frame represents an inlined function.
5027
5028 See also GetFunctionName().
5029 """
5030 return _lldb.SBFrame_IsInlined(self, *args)
5031
5033 """
5034 IsArtificial(SBFrame self) -> bool
5035 IsArtificial(SBFrame self) -> bool
5036
5037 Return true if this frame is artificial (e.g a frame synthesized to
5038 capture a tail call). Local variables may not be available in an artificial
5039 frame.
5040 """
5041 return _lldb.SBFrame_IsArtificial(self, *args)
5042
5044 """
5045 EvaluateExpression(SBFrame self, char const * expr) -> SBValue
5046 EvaluateExpression(SBFrame self, char const * expr, lldb::DynamicValueType use_dynamic) -> SBValue
5047 EvaluateExpression(SBFrame self, char const * expr, lldb::DynamicValueType use_dynamic, bool unwind_on_error) -> SBValue
5048 EvaluateExpression(SBFrame self, char const * expr, SBExpressionOptions options) -> SBValue
5049
5050 The version that doesn't supply a 'use_dynamic' value will use the
5051 target's default.
5052 """
5053 return _lldb.SBFrame_EvaluateExpression(self, *args)
5054
5056 """
5057 GetFrameBlock(SBFrame self) -> SBBlock
5058
5059 Gets the lexical block that defines the stack frame. Another way to think
5060 of this is it will return the block that contains all of the variables
5061 for a stack frame. Inlined functions are represented as SBBlock objects
5062 that have inlined function information: the name of the inlined function,
5063 where it was called from. The block that is returned will be the first
5064 block at or above the block for the PC (SBFrame::GetBlock()) that defines
5065 the scope of the frame. When a function contains no inlined functions,
5066 this will be the top most lexical block that defines the function.
5067 When a function has inlined functions and the PC is currently
5068 in one of those inlined functions, this method will return the inlined
5069 block that defines this frame. If the PC isn't currently in an inlined
5070 function, the lexical block that defines the function is returned.
5071 """
5072 return _lldb.SBFrame_GetFrameBlock(self)
5073
5074 - def GetLineEntry(self):
5075 """GetLineEntry(SBFrame self) -> SBLineEntry"""
5076 return _lldb.SBFrame_GetLineEntry(self)
5077
5079 """GetThread(SBFrame self) -> SBThread"""
5080 return _lldb.SBFrame_GetThread(self)
5081
5083 """Disassemble(SBFrame self) -> char const *"""
5084 return _lldb.SBFrame_Disassemble(self)
5085
5087 """Clear(SBFrame self)"""
5088 return _lldb.SBFrame_Clear(self)
5089
5091 """__eq__(SBFrame self, SBFrame rhs) -> bool"""
5092 return _lldb.SBFrame___eq__(self, *args)
5093
5095 """__ne__(SBFrame self, SBFrame rhs) -> bool"""
5096 return _lldb.SBFrame___ne__(self, *args)
5097
5099 """
5100 GetVariables(SBFrame self, bool arguments, bool locals, bool statics, bool in_scope_only) -> SBValueList
5101 GetVariables(SBFrame self, bool arguments, bool locals, bool statics, bool in_scope_only, lldb::DynamicValueType use_dynamic) -> SBValueList
5102 GetVariables(SBFrame self, SBVariablesOptions options) -> SBValueList
5103
5104 The version that doesn't supply a 'use_dynamic' value will use the
5105 target's default.
5106 """
5107 return _lldb.SBFrame_GetVariables(self, *args)
5108
5110 """GetRegisters(SBFrame self) -> SBValueList"""
5111 return _lldb.SBFrame_GetRegisters(self)
5112
5114 """
5115 FindVariable(SBFrame self, char const * var_name) -> SBValue
5116 FindVariable(SBFrame self, char const * var_name, lldb::DynamicValueType use_dynamic) -> SBValue
5117
5118 The version that doesn't supply a 'use_dynamic' value will use the
5119 target's default.
5120 """
5121 return _lldb.SBFrame_FindVariable(self, *args)
5122
5124 """FindRegister(SBFrame self, char const * name) -> SBValue"""
5125 return _lldb.SBFrame_FindRegister(self, *args)
5126
5128 """
5129 GetValueForVariablePath(SBFrame self, char const * var_path) -> SBValue
5130 GetValueForVariablePath(SBFrame self, char const * var_path, lldb::DynamicValueType use_dynamic) -> SBValue
5131
5132 Get a lldb.SBValue for a variable path.
5133
5134 Variable paths can include access to pointer or instance members:
5135 rect_ptr->origin.y
5136 pt.x
5137 Pointer dereferences:
5138 *this->foo_ptr
5139 **argv
5140 Address of:
5141 &pt
5142 &my_array[3].x
5143 Array accesses and treating pointers as arrays:
5144 int_array[1]
5145 pt_ptr[22].x
5146
5147 Unlike EvaluateExpression() which returns lldb.SBValue objects
5148 with constant copies of the values at the time of evaluation,
5149 the result of this function is a value that will continue to
5150 track the current value of the value as execution progresses
5151 in the current frame.
5152 """
5153 return _lldb.SBFrame_GetValueForVariablePath(self, *args)
5154
5156 """
5157 FindValue(SBFrame self, char const * name, lldb::ValueType value_type) -> SBValue
5158 FindValue(SBFrame self, char const * name, lldb::ValueType value_type, lldb::DynamicValueType use_dynamic) -> SBValue
5159
5160 Find variables, register sets, registers, or persistent variables using
5161 the frame as the scope.
5162
5163 The version that doesn't supply a 'use_dynamic' value will use the
5164 target's default.
5165 """
5166 return _lldb.SBFrame_FindValue(self, *args)
5167
5169 """GetDescription(SBFrame self, SBStream description) -> bool"""
5170 return _lldb.SBFrame_GetDescription(self, *args)
5171
5174
5176 parent_idx = self.idx + 1
5177 if parent_idx >= 0 and parent_idx < len(self.thread.frame):
5178 return self.thread.frame[parent_idx]
5179 else:
5180 return SBFrame()
5181
5184
5187
5190
5191 - def var(self, var_expr_path):
5192 '''Calls through to lldb.SBFrame.GetValueForVariablePath() and returns
5193 a value that represents the variable expression path'''
5194 return self.GetValueForVariablePath(var_expr_path)
5195
5197 class registers_access(object):
5198 '''A helper object that exposes a flattened view of registers, masking away the notion of register sets for easy scripting.'''
5199 def __init__(self, regs):
5200 self.regs = regs
5201
5202 def __getitem__(self, key):
5203 if type(key) is str:
5204 for i in range(0,len(self.regs)):
5205 rs = self.regs[i]
5206 for j in range (0,rs.num_children):
5207 reg = rs.GetChildAtIndex(j)
5208 if reg.name == key: return reg
5209 else:
5210 return lldb.SBValue()
5211
5212 return registers_access(self.registers)
5213
5214 __swig_getmethods__["pc"] = GetPC
5215 __swig_setmethods__["pc"] = SetPC
5216 if _newclass: pc = property(GetPC, SetPC)
5217
5218 __swig_getmethods__["addr"] = GetPCAddress
5219 if _newclass: addr = property(GetPCAddress, None, doc='''A read only property that returns the program counter (PC) as a section offset address (lldb.SBAddress).''')
5220
5221 __swig_getmethods__["fp"] = GetFP
5222 if _newclass: fp = property(GetFP, None, doc='''A read only property that returns the frame pointer (FP) as an unsigned integer.''')
5223
5224 __swig_getmethods__["sp"] = GetSP
5225 if _newclass: sp = property(GetSP, None, doc='''A read only property that returns the stack pointer (SP) as an unsigned integer.''')
5226
5227 __swig_getmethods__["module"] = GetModule
5228 if _newclass: module = property(GetModule, None, doc='''A read only property that returns an lldb object that represents the module (lldb.SBModule) for this stack frame.''')
5229
5230 __swig_getmethods__["compile_unit"] = GetCompileUnit
5231 if _newclass: compile_unit = property(GetCompileUnit, None, doc='''A read only property that returns an lldb object that represents the compile unit (lldb.SBCompileUnit) for this stack frame.''')
5232
5233 __swig_getmethods__["function"] = GetFunction
5234 if _newclass: function = property(GetFunction, None, doc='''A read only property that returns an lldb object that represents the function (lldb.SBFunction) for this stack frame.''')
5235
5236 __swig_getmethods__["symbol"] = GetSymbol
5237 if _newclass: symbol = property(GetSymbol, None, doc='''A read only property that returns an lldb object that represents the symbol (lldb.SBSymbol) for this stack frame.''')
5238
5239 __swig_getmethods__["block"] = GetBlock
5240 if _newclass: block = property(GetBlock, None, doc='''A read only property that returns an lldb object that represents the block (lldb.SBBlock) for this stack frame.''')
5241
5242 __swig_getmethods__["is_inlined"] = IsInlined
5243 if _newclass: is_inlined = property(IsInlined, None, doc='''A read only property that returns an boolean that indicates if the block frame is an inlined function.''')
5244
5245 __swig_getmethods__["name"] = GetFunctionName
5246 if _newclass: name = property(GetFunctionName, None, doc='''A read only property that retuns the name for the function that this frame represents. Inlined stack frame might have a concrete function that differs from the name of the inlined function (a named lldb.SBBlock).''')
5247
5248 __swig_getmethods__["line_entry"] = GetLineEntry
5249 if _newclass: line_entry = property(GetLineEntry, None, doc='''A read only property that returns an lldb object that represents the line table entry (lldb.SBLineEntry) for this stack frame.''')
5250
5251 __swig_getmethods__["thread"] = GetThread
5252 if _newclass: thread = property(GetThread, None, doc='''A read only property that returns an lldb object that represents the thread (lldb.SBThread) for this stack frame.''')
5253
5254 __swig_getmethods__["disassembly"] = Disassemble
5255 if _newclass: disassembly = property(Disassemble, None, doc='''A read only property that returns the disassembly for this stack frame as a python string.''')
5256
5257 __swig_getmethods__["idx"] = GetFrameID
5258 if _newclass: idx = property(GetFrameID, None, doc='''A read only property that returns the zero based stack frame index.''')
5259
5260 __swig_getmethods__["variables"] = get_all_variables
5261 if _newclass: variables = property(get_all_variables, None, doc='''A read only property that returns a list() that contains a collection of lldb.SBValue objects that represent the variables in this stack frame.''')
5262
5263 __swig_getmethods__["vars"] = get_all_variables
5264 if _newclass: vars = property(get_all_variables, None, doc='''A read only property that returns a list() that contains a collection of lldb.SBValue objects that represent the variables in this stack frame.''')
5265
5266 __swig_getmethods__["locals"] = get_locals
5267 if _newclass: locals = property(get_locals, None, doc='''A read only property that returns a list() that contains a collection of lldb.SBValue objects that represent the local variables in this stack frame.''')
5268
5269 __swig_getmethods__["args"] = get_arguments
5270 if _newclass: args = property(get_arguments, None, doc='''A read only property that returns a list() that contains a collection of lldb.SBValue objects that represent the argument variables in this stack frame.''')
5271
5272 __swig_getmethods__["arguments"] = get_arguments
5273 if _newclass: arguments = property(get_arguments, None, doc='''A read only property that returns a list() that contains a collection of lldb.SBValue objects that represent the argument variables in this stack frame.''')
5274
5275 __swig_getmethods__["statics"] = get_statics
5276 if _newclass: statics = property(get_statics, None, doc='''A read only property that returns a list() that contains a collection of lldb.SBValue objects that represent the static variables in this stack frame.''')
5277
5278 __swig_getmethods__["registers"] = GetRegisters
5279 if _newclass: registers = property(GetRegisters, None, doc='''A read only property that returns a list() that contains a collection of lldb.SBValue objects that represent the CPU registers for this stack frame.''')
5280
5281 __swig_getmethods__["regs"] = GetRegisters
5282 if _newclass: regs = property(GetRegisters, None, doc='''A read only property that returns a list() that contains a collection of lldb.SBValue objects that represent the CPU registers for this stack frame.''')
5283
5284 __swig_getmethods__["register"] = get_registers_access
5285 if _newclass: register = property(get_registers_access, None, doc='''A read only property that returns an helper object providing a flattened indexable view of the CPU registers for this stack frame.''')
5286
5287 __swig_getmethods__["reg"] = get_registers_access
5288 if _newclass: reg = property(get_registers_access, None, doc='''A read only property that returns an helper object providing a flattened indexable view of the CPU registers for this stack frame''')
5289
5290 __swig_getmethods__["parent"] = get_parent_frame
5291 if _newclass: parent = property(get_parent_frame, None, doc='''A read only property that returns the parent (caller) frame of the current frame.''')
5292
5293
5295 """__str__(SBFrame self) -> PyObject *"""
5296 return _lldb.SBFrame___str__(self)
5297
5298 SBFrame_swigregister = _lldb.SBFrame_swigregister
5299 SBFrame_swigregister(SBFrame)
5302 """
5303 Represents a generic function, which can be inlined or not.
5304
5305 For example (from test/lldbutil.py, but slightly modified for doc purpose),
5306
5307 ...
5308
5309 frame = thread.GetFrameAtIndex(i)
5310 addr = frame.GetPCAddress()
5311 load_addr = addr.GetLoadAddress(target)
5312 function = frame.GetFunction()
5313 mod_name = frame.GetModule().GetFileSpec().GetFilename()
5314
5315 if not function:
5316 # No debug info for 'function'.
5317 symbol = frame.GetSymbol()
5318 file_addr = addr.GetFileAddress()
5319 start_addr = symbol.GetStartAddress().GetFileAddress()
5320 symbol_name = symbol.GetName()
5321 symbol_offset = file_addr - start_addr
5322 print >> output, ' frame #{num}: {addr:#016x} {mod}`{symbol} + {offset}'.format(
5323 num=i, addr=load_addr, mod=mod_name, symbol=symbol_name, offset=symbol_offset)
5324 else:
5325 # Debug info is available for 'function'.
5326 func_name = frame.GetFunctionName()
5327 file_name = frame.GetLineEntry().GetFileSpec().GetFilename()
5328 line_num = frame.GetLineEntry().GetLine()
5329 print >> output, ' frame #{num}: {addr:#016x} {mod}`{func} at {file}:{line} {args}'.format(
5330 num=i, addr=load_addr, mod=mod_name,
5331 func='%s [inlined]' % func_name] if frame.IsInlined() else func_name,
5332 file=file_name, line=line_num, args=get_args_as_string(frame, showFuncName=False))
5333
5334 ...
5335 """
5336 __swig_setmethods__ = {}
5337 __setattr__ = lambda self, name, value: _swig_setattr(self, SBFunction, name, value)
5338 __swig_getmethods__ = {}
5339 __getattr__ = lambda self, name: _swig_getattr(self, SBFunction, name)
5340 __repr__ = _swig_repr
5342 """
5343 __init__(lldb::SBFunction self) -> SBFunction
5344 __init__(lldb::SBFunction self, SBFunction rhs) -> SBFunction
5345 """
5346 this = _lldb.new_SBFunction(*args)
5347 try: self.this.append(this)
5348 except: self.this = this
5349 __swig_destroy__ = _lldb.delete_SBFunction
5350 __del__ = lambda self : None;
5352 """IsValid(SBFunction self) -> bool"""
5353 return _lldb.SBFunction_IsValid(self)
5354
5356 return _lldb.SBFunction___nonzero__(self)
5357 __bool__ = __nonzero__
5358
5359
5361 """GetName(SBFunction self) -> char const *"""
5362 return _lldb.SBFunction_GetName(self)
5363
5365 """GetDisplayName(SBFunction self) -> char const *"""
5366 return _lldb.SBFunction_GetDisplayName(self)
5367
5369 """GetMangledName(SBFunction self) -> char const *"""
5370 return _lldb.SBFunction_GetMangledName(self)
5371
5373 """
5374 GetInstructions(SBFunction self, SBTarget target) -> SBInstructionList
5375 GetInstructions(SBFunction self, SBTarget target, char const * flavor) -> SBInstructionList
5376 """
5377 return _lldb.SBFunction_GetInstructions(self, *args)
5378
5380 """GetStartAddress(SBFunction self) -> SBAddress"""
5381 return _lldb.SBFunction_GetStartAddress(self)
5382
5384 """GetEndAddress(SBFunction self) -> SBAddress"""
5385 return _lldb.SBFunction_GetEndAddress(self)
5386
5388 """GetArgumentName(SBFunction self, uint32_t arg_idx) -> char const *"""
5389 return _lldb.SBFunction_GetArgumentName(self, *args)
5390
5392 """GetPrologueByteSize(SBFunction self) -> uint32_t"""
5393 return _lldb.SBFunction_GetPrologueByteSize(self)
5394
5396 """GetType(SBFunction self) -> SBType"""
5397 return _lldb.SBFunction_GetType(self)
5398
5400 """GetBlock(SBFunction self) -> SBBlock"""
5401 return _lldb.SBFunction_GetBlock(self)
5402
5404 """GetLanguage(SBFunction self) -> lldb::LanguageType"""
5405 return _lldb.SBFunction_GetLanguage(self)
5406
5408 """
5409 GetIsOptimized(SBFunction self) -> bool
5410
5411 Returns true if the function was compiled with optimization.
5412 Optimization, in this case, is meant to indicate that the debugger
5413 experience may be confusing for the user -- variables optimized away,
5414 stepping jumping between source lines -- and the driver may want to
5415 provide some guidance to the user about this.
5416 Returns false if unoptimized, or unknown.
5417 """
5418 return _lldb.SBFunction_GetIsOptimized(self)
5419
5421 """GetDescription(SBFunction self, SBStream description) -> bool"""
5422 return _lldb.SBFunction_GetDescription(self, *args)
5423
5425 """__eq__(SBFunction self, SBFunction rhs) -> bool"""
5426 return _lldb.SBFunction___eq__(self, *args)
5427
5429 """__ne__(SBFunction self, SBFunction rhs) -> bool"""
5430 return _lldb.SBFunction___ne__(self, *args)
5431
5434
5435 __swig_getmethods__["addr"] = GetStartAddress
5436 if _newclass: addr = property(GetStartAddress, None, doc='''A read only property that returns an lldb object that represents the start address (lldb.SBAddress) for this function.''')
5437
5438 __swig_getmethods__["end_addr"] = GetEndAddress
5439 if _newclass: end_addr = property(GetEndAddress, None, doc='''A read only property that returns an lldb object that represents the end address (lldb.SBAddress) for this function.''')
5440
5441 __swig_getmethods__["block"] = GetBlock
5442 if _newclass: block = property(GetBlock, None, doc='''A read only property that returns an lldb object that represents the top level lexical block (lldb.SBBlock) for this function.''')
5443
5444 __swig_getmethods__["instructions"] = get_instructions_from_current_target
5445 if _newclass: instructions = property(get_instructions_from_current_target, None, doc='''A read only property that returns an lldb object that represents the instructions (lldb.SBInstructionList) for this function.''')
5446
5447 __swig_getmethods__["mangled"] = GetMangledName
5448 if _newclass: mangled = property(GetMangledName, None, doc='''A read only property that returns the mangled (linkage) name for this function as a string.''')
5449
5450 __swig_getmethods__["name"] = GetName
5451 if _newclass: name = property(GetName, None, doc='''A read only property that returns the name for this function as a string.''')
5452
5453 __swig_getmethods__["prologue_size"] = GetPrologueByteSize
5454 if _newclass: prologue_size = property(GetPrologueByteSize, None, doc='''A read only property that returns the size in bytes of the prologue instructions as an unsigned integer.''')
5455
5456 __swig_getmethods__["type"] = GetType
5457 if _newclass: type = property(GetType, None, doc='''A read only property that returns an lldb object that represents the return type (lldb.SBType) for this function.''')
5458
5460 """__str__(SBFunction self) -> PyObject *"""
5461 return _lldb.SBFunction___str__(self)
5462
5464 if not isinstance(rhs, type(self)):
5465 return False
5466
5467 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
5468
5470 if not isinstance(rhs, type(self)):
5471 return True
5472
5473 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
5474
5475 SBFunction_swigregister = _lldb.SBFunction_swigregister
5476 SBFunction_swigregister(SBFunction)
5479 """Proxy of C++ lldb::SBHostOS class"""
5480 __swig_setmethods__ = {}
5481 __setattr__ = lambda self, name, value: _swig_setattr(self, SBHostOS, name, value)
5482 __swig_getmethods__ = {}
5483 __getattr__ = lambda self, name: _swig_getattr(self, SBHostOS, name)
5484 __repr__ = _swig_repr
5488
5489 if _newclass:GetProgramFileSpec = staticmethod(GetProgramFileSpec)
5490 __swig_getmethods__["GetProgramFileSpec"] = lambda x: GetProgramFileSpec
5494
5495 if _newclass:GetLLDBPythonPath = staticmethod(GetLLDBPythonPath)
5496 __swig_getmethods__["GetLLDBPythonPath"] = lambda x: GetLLDBPythonPath
5498 """GetLLDBPath(lldb::PathType path_type) -> SBFileSpec"""
5499 return _lldb.SBHostOS_GetLLDBPath(*args)
5500
5501 if _newclass:GetLLDBPath = staticmethod(GetLLDBPath)
5502 __swig_getmethods__["GetLLDBPath"] = lambda x: GetLLDBPath
5506
5507 if _newclass:GetUserHomeDirectory = staticmethod(GetUserHomeDirectory)
5508 __swig_getmethods__["GetUserHomeDirectory"] = lambda x: GetUserHomeDirectory
5512
5513 if _newclass:ThreadCreated = staticmethod(ThreadCreated)
5514 __swig_getmethods__["ThreadCreated"] = lambda x: ThreadCreated
5516 """ThreadCreate(char const * name, lldb::thread_func_t arg2, void * thread_arg, SBError err) -> lldb::thread_t"""
5517 return _lldb.SBHostOS_ThreadCreate(*args)
5518
5519 if _newclass:ThreadCreate = staticmethod(ThreadCreate)
5520 __swig_getmethods__["ThreadCreate"] = lambda x: ThreadCreate
5522 """ThreadCancel(lldb::thread_t thread, SBError err) -> bool"""
5523 return _lldb.SBHostOS_ThreadCancel(*args)
5524
5525 if _newclass:ThreadCancel = staticmethod(ThreadCancel)
5526 __swig_getmethods__["ThreadCancel"] = lambda x: ThreadCancel
5528 """ThreadDetach(lldb::thread_t thread, SBError err) -> bool"""
5529 return _lldb.SBHostOS_ThreadDetach(*args)
5530
5531 if _newclass:ThreadDetach = staticmethod(ThreadDetach)
5532 __swig_getmethods__["ThreadDetach"] = lambda x: ThreadDetach
5534 """ThreadJoin(lldb::thread_t thread, lldb::thread_result_t * result, SBError err) -> bool"""
5535 return _lldb.SBHostOS_ThreadJoin(*args)
5536
5537 if _newclass:ThreadJoin = staticmethod(ThreadJoin)
5538 __swig_getmethods__["ThreadJoin"] = lambda x: ThreadJoin
5540 """__init__(lldb::SBHostOS self) -> SBHostOS"""
5541 this = _lldb.new_SBHostOS()
5542 try: self.this.append(this)
5543 except: self.this = this
5544 __swig_destroy__ = _lldb.delete_SBHostOS
5545 __del__ = lambda self : None;
5546 SBHostOS_swigregister = _lldb.SBHostOS_swigregister
5547 SBHostOS_swigregister(SBHostOS)
5552
5556
5558 """SBHostOS_GetLLDBPath(lldb::PathType path_type) -> SBFileSpec"""
5559 return _lldb.SBHostOS_GetLLDBPath(*args)
5560
5564
5568
5570 """SBHostOS_ThreadCreate(char const * name, lldb::thread_func_t arg2, void * thread_arg, SBError err) -> lldb::thread_t"""
5571 return _lldb.SBHostOS_ThreadCreate(*args)
5572
5574 """SBHostOS_ThreadCancel(lldb::thread_t thread, SBError err) -> bool"""
5575 return _lldb.SBHostOS_ThreadCancel(*args)
5576
5578 """SBHostOS_ThreadDetach(lldb::thread_t thread, SBError err) -> bool"""
5579 return _lldb.SBHostOS_ThreadDetach(*args)
5580
5582 """SBHostOS_ThreadJoin(lldb::thread_t thread, lldb::thread_result_t * result, SBError err) -> bool"""
5583 return _lldb.SBHostOS_ThreadJoin(*args)
5584
5600 __swig_destroy__ = _lldb.delete_SBInstruction
5601 __del__ = lambda self : None;
5603 """IsValid(SBInstruction self) -> bool"""
5604 return _lldb.SBInstruction_IsValid(self)
5605
5607 return _lldb.SBInstruction___nonzero__(self)
5608 __bool__ = __nonzero__
5609
5610
5612 """GetAddress(SBInstruction self) -> SBAddress"""
5613 return _lldb.SBInstruction_GetAddress(self)
5614
5616 """GetMnemonic(SBInstruction self, SBTarget target) -> char const *"""
5617 return _lldb.SBInstruction_GetMnemonic(self, *args)
5618
5620 """GetOperands(SBInstruction self, SBTarget target) -> char const *"""
5621 return _lldb.SBInstruction_GetOperands(self, *args)
5622
5626
5628 """GetData(SBInstruction self, SBTarget target) -> SBData"""
5629 return _lldb.SBInstruction_GetData(self, *args)
5630
5632 """GetByteSize(SBInstruction self) -> size_t"""
5633 return _lldb.SBInstruction_GetByteSize(self)
5634
5636 """DoesBranch(SBInstruction self) -> bool"""
5637 return _lldb.SBInstruction_DoesBranch(self)
5638
5640 """HasDelaySlot(SBInstruction self) -> bool"""
5641 return _lldb.SBInstruction_HasDelaySlot(self)
5642
5644 """CanSetBreakpoint(SBInstruction self) -> bool"""
5645 return _lldb.SBInstruction_CanSetBreakpoint(self)
5646
5647 - def Print(self, *args):
5648 """Print(SBInstruction self, FILE * out)"""
5649 return _lldb.SBInstruction_Print(self, *args)
5650
5652 """GetDescription(SBInstruction self, SBStream description) -> bool"""
5653 return _lldb.SBInstruction_GetDescription(self, *args)
5654
5656 """EmulateWithFrame(SBInstruction self, SBFrame frame, uint32_t evaluate_options) -> bool"""
5657 return _lldb.SBInstruction_EmulateWithFrame(self, *args)
5658
5660 """DumpEmulation(SBInstruction self, char const * triple) -> bool"""
5661 return _lldb.SBInstruction_DumpEmulation(self, *args)
5662
5664 """TestEmulation(SBInstruction self, SBStream output_stream, char const * test_file) -> bool"""
5665 return _lldb.SBInstruction_TestEmulation(self, *args)
5666
5677
5678 __swig_getmethods__["mnemonic"] = __mnemonic_property__
5679 if _newclass: mnemonic = property(__mnemonic_property__, None, doc='''A read only property that returns the mnemonic for this instruction as a string.''')
5680
5681 __swig_getmethods__["operands"] = __operands_property__
5682 if _newclass: operands = property(__operands_property__, None, doc='''A read only property that returns the operands for this instruction as a string.''')
5683
5684 __swig_getmethods__["comment"] = __comment_property__
5685 if _newclass: comment = property(__comment_property__, None, doc='''A read only property that returns the comment for this instruction as a string.''')
5686
5687 __swig_getmethods__["addr"] = GetAddress
5688 if _newclass: addr = property(GetAddress, None, doc='''A read only property that returns an lldb object that represents the address (lldb.SBAddress) for this instruction.''')
5689
5690 __swig_getmethods__["size"] = GetByteSize
5691 if _newclass: size = property(GetByteSize, None, doc='''A read only property that returns the size in bytes for this instruction as an integer.''')
5692
5693 __swig_getmethods__["is_branch"] = DoesBranch
5694 if _newclass: is_branch = property(DoesBranch, None, doc='''A read only property that returns a boolean value that indicates if this instruction is a branch instruction.''')
5695
5697 """__str__(SBInstruction self) -> PyObject *"""
5698 return _lldb.SBInstruction___str__(self)
5699
5700 SBInstruction_swigregister = _lldb.SBInstruction_swigregister
5701 SBInstruction_swigregister(SBInstruction)
5704 """
5705 Represents a list of machine instructions. SBFunction and SBSymbol have
5706 GetInstructions() methods which return SBInstructionList instances.
5707
5708 SBInstructionList supports instruction (SBInstruction instance) iteration.
5709 For example (see also SBDebugger for a more complete example),
5710
5711 def disassemble_instructions (insts):
5712 for i in insts:
5713 print i
5714
5715 defines a function which takes an SBInstructionList instance and prints out
5716 the machine instructions in assembly format.
5717 """
5718 __swig_setmethods__ = {}
5719 __setattr__ = lambda self, name, value: _swig_setattr(self, SBInstructionList, name, value)
5720 __swig_getmethods__ = {}
5721 __getattr__ = lambda self, name: _swig_getattr(self, SBInstructionList, name)
5722 __repr__ = _swig_repr
5724 """
5725 __init__(lldb::SBInstructionList self) -> SBInstructionList
5726 __init__(lldb::SBInstructionList self, SBInstructionList rhs) -> SBInstructionList
5727 """
5728 this = _lldb.new_SBInstructionList(*args)
5729 try: self.this.append(this)
5730 except: self.this = this
5731 __swig_destroy__ = _lldb.delete_SBInstructionList
5732 __del__ = lambda self : None;
5734 """IsValid(SBInstructionList self) -> bool"""
5735 return _lldb.SBInstructionList_IsValid(self)
5736
5738 return _lldb.SBInstructionList___nonzero__(self)
5739 __bool__ = __nonzero__
5740
5741
5743 """GetSize(SBInstructionList self) -> size_t"""
5744 return _lldb.SBInstructionList_GetSize(self)
5745
5747 """GetInstructionAtIndex(SBInstructionList self, uint32_t idx) -> SBInstruction"""
5748 return _lldb.SBInstructionList_GetInstructionAtIndex(self, *args)
5749
5751 """GetInstructionsCount(SBInstructionList self, SBAddress start, SBAddress end, bool canSetBreakpoint) -> size_t"""
5752 return _lldb.SBInstructionList_GetInstructionsCount(self, *args)
5753
5755 """Clear(SBInstructionList self)"""
5756 return _lldb.SBInstructionList_Clear(self)
5757
5759 """AppendInstruction(SBInstructionList self, SBInstruction inst)"""
5760 return _lldb.SBInstructionList_AppendInstruction(self, *args)
5761
5762 - def Print(self, *args):
5763 """Print(SBInstructionList self, FILE * out)"""
5764 return _lldb.SBInstructionList_Print(self, *args)
5765
5767 """GetDescription(SBInstructionList self, SBStream description) -> bool"""
5768 return _lldb.SBInstructionList_GetDescription(self, *args)
5769
5771 """DumpEmulationForAllInstructions(SBInstructionList self, char const * triple) -> bool"""
5772 return _lldb.SBInstructionList_DumpEmulationForAllInstructions(self, *args)
5773
5775 '''Iterate over all instructions in a lldb.SBInstructionList
5776 object.'''
5777 return lldb_iter(self, 'GetSize', 'GetInstructionAtIndex')
5778
5780 '''Access len of the instruction list.'''
5781 return int(self.GetSize())
5782
5784 '''Access instructions by integer index for array access or by lldb.SBAddress to find an instruction that matches a section offset address object.'''
5785 if type(key) is int:
5786
5787 if key < len(self):
5788 return self.GetInstructionAtIndex(key)
5789 elif type(key) is SBAddress:
5790
5791 lookup_file_addr = key.file_addr
5792 closest_inst = None
5793 for idx in range(self.GetSize()):
5794 inst = self.GetInstructionAtIndex(idx)
5795 inst_file_addr = inst.addr.file_addr
5796 if inst_file_addr == lookup_file_addr:
5797 return inst
5798 elif inst_file_addr > lookup_file_addr:
5799 return closest_inst
5800 else:
5801 closest_inst = inst
5802 return None
5803
5805 """__str__(SBInstructionList self) -> PyObject *"""
5806 return _lldb.SBInstructionList___str__(self)
5807
5808 SBInstructionList_swigregister = _lldb.SBInstructionList_swigregister
5809 SBInstructionList_swigregister(SBInstructionList)
5835 __swig_destroy__ = _lldb.delete_SBLanguageRuntime
5836 __del__ = lambda self : None;
5837 SBLanguageRuntime_swigregister = _lldb.SBLanguageRuntime_swigregister
5838 SBLanguageRuntime_swigregister(SBLanguageRuntime)
5843
5847
5861 """GetProcessID(SBLaunchInfo self) -> lldb::pid_t"""
5862 return _lldb.SBLaunchInfo_GetProcessID(self)
5863
5865 """GetUserID(SBLaunchInfo self) -> uint32_t"""
5866 return _lldb.SBLaunchInfo_GetUserID(self)
5867
5869 """GetGroupID(SBLaunchInfo self) -> uint32_t"""
5870 return _lldb.SBLaunchInfo_GetGroupID(self)
5871
5873 """UserIDIsValid(SBLaunchInfo self) -> bool"""
5874 return _lldb.SBLaunchInfo_UserIDIsValid(self)
5875
5877 """GroupIDIsValid(SBLaunchInfo self) -> bool"""
5878 return _lldb.SBLaunchInfo_GroupIDIsValid(self)
5879
5881 """SetUserID(SBLaunchInfo self, uint32_t uid)"""
5882 return _lldb.SBLaunchInfo_SetUserID(self, *args)
5883
5885 """SetGroupID(SBLaunchInfo self, uint32_t gid)"""
5886 return _lldb.SBLaunchInfo_SetGroupID(self, *args)
5887
5889 """GetExecutableFile(SBLaunchInfo self) -> SBFileSpec"""
5890 return _lldb.SBLaunchInfo_GetExecutableFile(self)
5891
5893 """SetExecutableFile(SBLaunchInfo self, SBFileSpec exe_file, bool add_as_first_arg)"""
5894 return _lldb.SBLaunchInfo_SetExecutableFile(self, *args)
5895
5897 """GetListener(SBLaunchInfo self) -> SBListener"""
5898 return _lldb.SBLaunchInfo_GetListener(self)
5899
5901 """SetListener(SBLaunchInfo self, SBListener listener)"""
5902 return _lldb.SBLaunchInfo_SetListener(self, *args)
5903
5905 """GetNumArguments(SBLaunchInfo self) -> uint32_t"""
5906 return _lldb.SBLaunchInfo_GetNumArguments(self)
5907
5909 """GetArgumentAtIndex(SBLaunchInfo self, uint32_t idx) -> char const *"""
5910 return _lldb.SBLaunchInfo_GetArgumentAtIndex(self, *args)
5911
5913 """SetArguments(SBLaunchInfo self, char const ** argv, bool append)"""
5914 return _lldb.SBLaunchInfo_SetArguments(self, *args)
5915
5917 """GetNumEnvironmentEntries(SBLaunchInfo self) -> uint32_t"""
5918 return _lldb.SBLaunchInfo_GetNumEnvironmentEntries(self)
5919
5921 """GetEnvironmentEntryAtIndex(SBLaunchInfo self, uint32_t idx) -> char const *"""
5922 return _lldb.SBLaunchInfo_GetEnvironmentEntryAtIndex(self, *args)
5923
5925 """SetEnvironmentEntries(SBLaunchInfo self, char const ** envp, bool append)"""
5926 return _lldb.SBLaunchInfo_SetEnvironmentEntries(self, *args)
5927
5929 """Clear(SBLaunchInfo self)"""
5930 return _lldb.SBLaunchInfo_Clear(self)
5931
5933 """GetWorkingDirectory(SBLaunchInfo self) -> char const *"""
5934 return _lldb.SBLaunchInfo_GetWorkingDirectory(self)
5935
5937 """SetWorkingDirectory(SBLaunchInfo self, char const * working_dir)"""
5938 return _lldb.SBLaunchInfo_SetWorkingDirectory(self, *args)
5939
5941 """GetLaunchFlags(SBLaunchInfo self) -> uint32_t"""
5942 return _lldb.SBLaunchInfo_GetLaunchFlags(self)
5943
5945 """SetLaunchFlags(SBLaunchInfo self, uint32_t flags)"""
5946 return _lldb.SBLaunchInfo_SetLaunchFlags(self, *args)
5947
5949 """GetProcessPluginName(SBLaunchInfo self) -> char const *"""
5950 return _lldb.SBLaunchInfo_GetProcessPluginName(self)
5951
5953 """SetProcessPluginName(SBLaunchInfo self, char const * plugin_name)"""
5954 return _lldb.SBLaunchInfo_SetProcessPluginName(self, *args)
5955
5957 """GetShell(SBLaunchInfo self) -> char const *"""
5958 return _lldb.SBLaunchInfo_GetShell(self)
5959
5961 """SetShell(SBLaunchInfo self, char const * path)"""
5962 return _lldb.SBLaunchInfo_SetShell(self, *args)
5963
5965 """GetShellExpandArguments(SBLaunchInfo self) -> bool"""
5966 return _lldb.SBLaunchInfo_GetShellExpandArguments(self)
5967
5969 """SetShellExpandArguments(SBLaunchInfo self, bool expand)"""
5970 return _lldb.SBLaunchInfo_SetShellExpandArguments(self, *args)
5971
5973 """GetResumeCount(SBLaunchInfo self) -> uint32_t"""
5974 return _lldb.SBLaunchInfo_GetResumeCount(self)
5975
5977 """SetResumeCount(SBLaunchInfo self, uint32_t c)"""
5978 return _lldb.SBLaunchInfo_SetResumeCount(self, *args)
5979
5981 """AddCloseFileAction(SBLaunchInfo self, int fd) -> bool"""
5982 return _lldb.SBLaunchInfo_AddCloseFileAction(self, *args)
5983
5985 """AddDuplicateFileAction(SBLaunchInfo self, int fd, int dup_fd) -> bool"""
5986 return _lldb.SBLaunchInfo_AddDuplicateFileAction(self, *args)
5987
5989 """AddOpenFileAction(SBLaunchInfo self, int fd, char const * path, bool read, bool write) -> bool"""
5990 return _lldb.SBLaunchInfo_AddOpenFileAction(self, *args)
5991
5993 """AddSuppressFileAction(SBLaunchInfo self, int fd, bool read, bool write) -> bool"""
5994 return _lldb.SBLaunchInfo_AddSuppressFileAction(self, *args)
5995
5997 """SetLaunchEventData(SBLaunchInfo self, char const * data)"""
5998 return _lldb.SBLaunchInfo_SetLaunchEventData(self, *args)
5999
6001 """GetLaunchEventData(SBLaunchInfo self) -> char const *"""
6002 return _lldb.SBLaunchInfo_GetLaunchEventData(self)
6003
6005 """GetDetachOnError(SBLaunchInfo self) -> bool"""
6006 return _lldb.SBLaunchInfo_GetDetachOnError(self)
6007
6009 """SetDetachOnError(SBLaunchInfo self, bool enable)"""
6010 return _lldb.SBLaunchInfo_SetDetachOnError(self, *args)
6011
6012 __swig_destroy__ = _lldb.delete_SBLaunchInfo
6013 __del__ = lambda self : None;
6014 SBLaunchInfo_swigregister = _lldb.SBLaunchInfo_swigregister
6015 SBLaunchInfo_swigregister(SBLaunchInfo)
6016
6017 -class SBLineEntry(_object):
6018 """
6019 Specifies an association with a contiguous range of instructions and
6020 a source file location. SBCompileUnit contains SBLineEntry(s). For example,
6021
6022 for lineEntry in compileUnit:
6023 print('line entry: %s:%d' % (str(lineEntry.GetFileSpec()),
6024 lineEntry.GetLine()))
6025 print('start addr: %s' % str(lineEntry.GetStartAddress()))
6026 print('end addr: %s' % str(lineEntry.GetEndAddress()))
6027
6028 produces:
6029
6030 line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:20
6031 start addr: a.out[0x100000d98]
6032 end addr: a.out[0x100000da3]
6033 line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:21
6034 start addr: a.out[0x100000da3]
6035 end addr: a.out[0x100000da9]
6036 line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:22
6037 start addr: a.out[0x100000da9]
6038 end addr: a.out[0x100000db6]
6039 line entry: /Volumes/data/lldb/svn/trunk/test/python_api/symbol-context/main.c:23
6040 start addr: a.out[0x100000db6]
6041 end addr: a.out[0x100000dbc]
6042 ...
6043
6044 See also SBCompileUnit.
6045 """
6046 __swig_setmethods__ = {}
6047 __setattr__ = lambda self, name, value: _swig_setattr(self, SBLineEntry, name, value)
6048 __swig_getmethods__ = {}
6049 __getattr__ = lambda self, name: _swig_getattr(self, SBLineEntry, name)
6050 __repr__ = _swig_repr
6051 - def __init__(self, *args):
6052 """
6053 __init__(lldb::SBLineEntry self) -> SBLineEntry
6054 __init__(lldb::SBLineEntry self, SBLineEntry rhs) -> SBLineEntry
6055 """
6056 this = _lldb.new_SBLineEntry(*args)
6057 try: self.this.append(this)
6058 except: self.this = this
6059 __swig_destroy__ = _lldb.delete_SBLineEntry
6060 __del__ = lambda self : None;
6061 - def GetStartAddress(self):
6062 """GetStartAddress(SBLineEntry self) -> SBAddress"""
6063 return _lldb.SBLineEntry_GetStartAddress(self)
6064
6065 - def GetEndAddress(self):
6066 """GetEndAddress(SBLineEntry self) -> SBAddress"""
6067 return _lldb.SBLineEntry_GetEndAddress(self)
6068
6069 - def IsValid(self):
6070 """IsValid(SBLineEntry self) -> bool"""
6071 return _lldb.SBLineEntry_IsValid(self)
6072
6073 - def __nonzero__(self):
6074 return _lldb.SBLineEntry___nonzero__(self)
6075 __bool__ = __nonzero__
6076
6077
6078 - def GetFileSpec(self):
6079 """GetFileSpec(SBLineEntry self) -> SBFileSpec"""
6080 return _lldb.SBLineEntry_GetFileSpec(self)
6081
6082 - def GetLine(self):
6083 """GetLine(SBLineEntry self) -> uint32_t"""
6084 return _lldb.SBLineEntry_GetLine(self)
6085
6086 - def GetColumn(self):
6087 """GetColumn(SBLineEntry self) -> uint32_t"""
6088 return _lldb.SBLineEntry_GetColumn(self)
6089
6090 - def GetDescription(self, *args):
6091 """GetDescription(SBLineEntry self, SBStream description) -> bool"""
6092 return _lldb.SBLineEntry_GetDescription(self, *args)
6093
6094 - def SetFileSpec(self, *args):
6095 """SetFileSpec(SBLineEntry self, SBFileSpec filespec)"""
6096 return _lldb.SBLineEntry_SetFileSpec(self, *args)
6097
6098 - def SetLine(self, *args):
6099 """SetLine(SBLineEntry self, uint32_t line)"""
6100 return _lldb.SBLineEntry_SetLine(self, *args)
6101
6102 - def SetColumn(self, *args):
6103 """SetColumn(SBLineEntry self, uint32_t column)"""
6104 return _lldb.SBLineEntry_SetColumn(self, *args)
6105
6106 - def __eq__(self, *args):
6107 """__eq__(SBLineEntry self, SBLineEntry rhs) -> bool"""
6108 return _lldb.SBLineEntry___eq__(self, *args)
6109
6110 - def __ne__(self, *args):
6111 """__ne__(SBLineEntry self, SBLineEntry rhs) -> bool"""
6112 return _lldb.SBLineEntry___ne__(self, *args)
6113
6114 __swig_getmethods__["file"] = GetFileSpec
6115 if _newclass: file = property(GetFileSpec, None, doc='''A read only property that returns an lldb object that represents the file (lldb.SBFileSpec) for this line entry.''')
6116
6117 __swig_getmethods__["line"] = GetLine
6118 if _newclass: line = property(GetLine, None, doc='''A read only property that returns the 1 based line number for this line entry, a return value of zero indicates that no line information is available.''')
6119
6120 __swig_getmethods__["column"] = GetColumn
6121 if _newclass: column = property(GetColumn, None, doc='''A read only property that returns the 1 based column number for this line entry, a return value of zero indicates that no column information is available.''')
6122
6123 __swig_getmethods__["addr"] = GetStartAddress
6124 if _newclass: addr = property(GetStartAddress, None, doc='''A read only property that returns an lldb object that represents the start address (lldb.SBAddress) for this line entry.''')
6125
6126 __swig_getmethods__["end_addr"] = GetEndAddress
6127 if _newclass: end_addr = property(GetEndAddress, None, doc='''A read only property that returns an lldb object that represents the end address (lldb.SBAddress) for this line entry.''')
6128
6129
6130 - def __str__(self):
6131 """__str__(SBLineEntry self) -> PyObject *"""
6132 return _lldb.SBLineEntry___str__(self)
6133
6134 - def __eq__(self, rhs):
6135 if not isinstance(rhs, type(self)):
6136 return False
6137
6138 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
6139
6140 - def __ne__(self, rhs):
6141 if not isinstance(rhs, type(self)):
6142 return True
6143
6144 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
6145
6146 SBLineEntry_swigregister = _lldb.SBLineEntry_swigregister
6147 SBLineEntry_swigregister(SBLineEntry)
6150 """
6151 API clients can register its own listener to debugger events.
6152
6153 See aslo SBEvent for example usage of creating and adding a listener.
6154 """
6155 __swig_setmethods__ = {}
6156 __setattr__ = lambda self, name, value: _swig_setattr(self, SBListener, name, value)
6157 __swig_getmethods__ = {}
6158 __getattr__ = lambda self, name: _swig_getattr(self, SBListener, name)
6159 __repr__ = _swig_repr
6161 """
6162 __init__(lldb::SBListener self) -> SBListener
6163 __init__(lldb::SBListener self, char const * name) -> SBListener
6164 __init__(lldb::SBListener self, SBListener rhs) -> SBListener
6165 """
6166 this = _lldb.new_SBListener(*args)
6167 try: self.this.append(this)
6168 except: self.this = this
6169 __swig_destroy__ = _lldb.delete_SBListener
6170 __del__ = lambda self : None;
6172 """AddEvent(SBListener self, SBEvent event)"""
6173 return _lldb.SBListener_AddEvent(self, *args)
6174
6176 """Clear(SBListener self)"""
6177 return _lldb.SBListener_Clear(self)
6178
6180 """IsValid(SBListener self) -> bool"""
6181 return _lldb.SBListener_IsValid(self)
6182
6184 return _lldb.SBListener___nonzero__(self)
6185 __bool__ = __nonzero__
6186
6187
6189 """StartListeningForEventClass(SBListener self, SBDebugger debugger, char const * broadcaster_class, uint32_t event_mask) -> uint32_t"""
6190 return _lldb.SBListener_StartListeningForEventClass(self, *args)
6191
6193 """StopListeningForEventClass(SBListener self, SBDebugger debugger, char const * broadcaster_class, uint32_t event_mask) -> uint32_t"""
6194 return _lldb.SBListener_StopListeningForEventClass(self, *args)
6195
6197 """StartListeningForEvents(SBListener self, SBBroadcaster broadcaster, uint32_t event_mask) -> uint32_t"""
6198 return _lldb.SBListener_StartListeningForEvents(self, *args)
6199
6201 """StopListeningForEvents(SBListener self, SBBroadcaster broadcaster, uint32_t event_mask) -> bool"""
6202 return _lldb.SBListener_StopListeningForEvents(self, *args)
6203
6205 """WaitForEvent(SBListener self, uint32_t num_seconds, SBEvent event) -> bool"""
6206 return _lldb.SBListener_WaitForEvent(self, *args)
6207
6209 """WaitForEventForBroadcaster(SBListener self, uint32_t num_seconds, SBBroadcaster broadcaster, SBEvent sb_event) -> bool"""
6210 return _lldb.SBListener_WaitForEventForBroadcaster(self, *args)
6211
6213 """WaitForEventForBroadcasterWithType(SBListener self, uint32_t num_seconds, SBBroadcaster broadcaster, uint32_t event_type_mask, SBEvent sb_event) -> bool"""
6214 return _lldb.SBListener_WaitForEventForBroadcasterWithType(self, *args)
6215
6217 """PeekAtNextEvent(SBListener self, SBEvent sb_event) -> bool"""
6218 return _lldb.SBListener_PeekAtNextEvent(self, *args)
6219
6221 """PeekAtNextEventForBroadcaster(SBListener self, SBBroadcaster broadcaster, SBEvent sb_event) -> bool"""
6222 return _lldb.SBListener_PeekAtNextEventForBroadcaster(self, *args)
6223
6225 """PeekAtNextEventForBroadcasterWithType(SBListener self, SBBroadcaster broadcaster, uint32_t event_type_mask, SBEvent sb_event) -> bool"""
6226 return _lldb.SBListener_PeekAtNextEventForBroadcasterWithType(self, *args)
6227
6229 """GetNextEvent(SBListener self, SBEvent sb_event) -> bool"""
6230 return _lldb.SBListener_GetNextEvent(self, *args)
6231
6233 """GetNextEventForBroadcaster(SBListener self, SBBroadcaster broadcaster, SBEvent sb_event) -> bool"""
6234 return _lldb.SBListener_GetNextEventForBroadcaster(self, *args)
6235
6237 """GetNextEventForBroadcasterWithType(SBListener self, SBBroadcaster broadcaster, uint32_t event_type_mask, SBEvent sb_event) -> bool"""
6238 return _lldb.SBListener_GetNextEventForBroadcasterWithType(self, *args)
6239
6241 """HandleBroadcastEvent(SBListener self, SBEvent event) -> bool"""
6242 return _lldb.SBListener_HandleBroadcastEvent(self, *args)
6243
6244 SBListener_swigregister = _lldb.SBListener_swigregister
6245 SBListener_swigregister(SBListener)
6262 __swig_destroy__ = _lldb.delete_SBMemoryRegionInfo
6263 __del__ = lambda self : None;
6265 """Clear(SBMemoryRegionInfo self)"""
6266 return _lldb.SBMemoryRegionInfo_Clear(self)
6267
6269 """GetRegionBase(SBMemoryRegionInfo self) -> lldb::addr_t"""
6270 return _lldb.SBMemoryRegionInfo_GetRegionBase(self)
6271
6273 """GetRegionEnd(SBMemoryRegionInfo self) -> lldb::addr_t"""
6274 return _lldb.SBMemoryRegionInfo_GetRegionEnd(self)
6275
6277 """IsReadable(SBMemoryRegionInfo self) -> bool"""
6278 return _lldb.SBMemoryRegionInfo_IsReadable(self)
6279
6281 """IsWritable(SBMemoryRegionInfo self) -> bool"""
6282 return _lldb.SBMemoryRegionInfo_IsWritable(self)
6283
6285 """IsExecutable(SBMemoryRegionInfo self) -> bool"""
6286 return _lldb.SBMemoryRegionInfo_IsExecutable(self)
6287
6289 """IsMapped(SBMemoryRegionInfo self) -> bool"""
6290 return _lldb.SBMemoryRegionInfo_IsMapped(self)
6291
6293 """GetName(SBMemoryRegionInfo self) -> char const *"""
6294 return _lldb.SBMemoryRegionInfo_GetName(self)
6295
6297 """__eq__(SBMemoryRegionInfo self, SBMemoryRegionInfo rhs) -> bool"""
6298 return _lldb.SBMemoryRegionInfo___eq__(self, *args)
6299
6301 """__ne__(SBMemoryRegionInfo self, SBMemoryRegionInfo rhs) -> bool"""
6302 return _lldb.SBMemoryRegionInfo___ne__(self, *args)
6303
6305 """GetDescription(SBMemoryRegionInfo self, SBStream description) -> bool"""
6306 return _lldb.SBMemoryRegionInfo_GetDescription(self, *args)
6307
6309 """__str__(SBMemoryRegionInfo self) -> PyObject *"""
6310 return _lldb.SBMemoryRegionInfo___str__(self)
6311
6312 SBMemoryRegionInfo_swigregister = _lldb.SBMemoryRegionInfo_swigregister
6313 SBMemoryRegionInfo_swigregister(SBMemoryRegionInfo)
6330 __swig_destroy__ = _lldb.delete_SBMemoryRegionInfoList
6331 __del__ = lambda self : None;
6333 """GetSize(SBMemoryRegionInfoList self) -> uint32_t"""
6334 return _lldb.SBMemoryRegionInfoList_GetSize(self)
6335
6337 """GetMemoryRegionAtIndex(SBMemoryRegionInfoList self, uint32_t idx, SBMemoryRegionInfo region_info) -> bool"""
6338 return _lldb.SBMemoryRegionInfoList_GetMemoryRegionAtIndex(self, *args)
6339
6341 """
6342 Append(SBMemoryRegionInfoList self, SBMemoryRegionInfo region)
6343 Append(SBMemoryRegionInfoList self, SBMemoryRegionInfoList region_list)
6344 """
6345 return _lldb.SBMemoryRegionInfoList_Append(self, *args)
6346
6348 """Clear(SBMemoryRegionInfoList self)"""
6349 return _lldb.SBMemoryRegionInfoList_Clear(self)
6350
6351 SBMemoryRegionInfoList_swigregister = _lldb.SBMemoryRegionInfoList_swigregister
6352 SBMemoryRegionInfoList_swigregister(SBMemoryRegionInfoList)
6353
6354
6355
6356
6357 -def in_range(symbol, section):
6374
6376 """
6377 Represents an executable image and its associated object and symbol files.
6378
6379 The module is designed to be able to select a single slice of an
6380 executable image as it would appear on disk and during program
6381 execution.
6382
6383 You can retrieve SBModule from SBSymbolContext, which in turn is available
6384 from SBFrame.
6385
6386 SBModule supports symbol iteration, for example,
6387
6388 for symbol in module:
6389 name = symbol.GetName()
6390 saddr = symbol.GetStartAddress()
6391 eaddr = symbol.GetEndAddress()
6392
6393 and rich comparison methods which allow the API program to use,
6394
6395 if thisModule == thatModule:
6396 print('This module is the same as that module')
6397
6398 to test module equality. A module also contains object file sections, namely
6399 SBSection. SBModule supports section iteration through section_iter(), for
6400 example,
6401
6402 print('Number of sections: %d' % module.GetNumSections())
6403 for sec in module.section_iter():
6404 print(sec)
6405
6406 And to iterate the symbols within a SBSection, use symbol_in_section_iter(),
6407
6408 # Iterates the text section and prints each symbols within each sub-section.
6409 for subsec in text_sec:
6410 print(INDENT + repr(subsec))
6411 for sym in exe_module.symbol_in_section_iter(subsec):
6412 print(INDENT2 + repr(sym))
6413 print(INDENT2 + 'symbol type: %s' % symbol_type_to_str(sym.GetType()))
6414
6415 produces this following output:
6416
6417 [0x0000000100001780-0x0000000100001d5c) a.out.__TEXT.__text
6418 id = {0x00000004}, name = 'mask_access(MaskAction, unsigned int)', range = [0x00000001000017c0-0x0000000100001870)
6419 symbol type: code
6420 id = {0x00000008}, name = 'thread_func(void*)', range = [0x0000000100001870-0x00000001000019b0)
6421 symbol type: code
6422 id = {0x0000000c}, name = 'main', range = [0x00000001000019b0-0x0000000100001d5c)
6423 symbol type: code
6424 id = {0x00000023}, name = 'start', address = 0x0000000100001780
6425 symbol type: code
6426 [0x0000000100001d5c-0x0000000100001da4) a.out.__TEXT.__stubs
6427 id = {0x00000024}, name = '__stack_chk_fail', range = [0x0000000100001d5c-0x0000000100001d62)
6428 symbol type: trampoline
6429 id = {0x00000028}, name = 'exit', range = [0x0000000100001d62-0x0000000100001d68)
6430 symbol type: trampoline
6431 id = {0x00000029}, name = 'fflush', range = [0x0000000100001d68-0x0000000100001d6e)
6432 symbol type: trampoline
6433 id = {0x0000002a}, name = 'fgets', range = [0x0000000100001d6e-0x0000000100001d74)
6434 symbol type: trampoline
6435 id = {0x0000002b}, name = 'printf', range = [0x0000000100001d74-0x0000000100001d7a)
6436 symbol type: trampoline
6437 id = {0x0000002c}, name = 'pthread_create', range = [0x0000000100001d7a-0x0000000100001d80)
6438 symbol type: trampoline
6439 id = {0x0000002d}, name = 'pthread_join', range = [0x0000000100001d80-0x0000000100001d86)
6440 symbol type: trampoline
6441 id = {0x0000002e}, name = 'pthread_mutex_lock', range = [0x0000000100001d86-0x0000000100001d8c)
6442 symbol type: trampoline
6443 id = {0x0000002f}, name = 'pthread_mutex_unlock', range = [0x0000000100001d8c-0x0000000100001d92)
6444 symbol type: trampoline
6445 id = {0x00000030}, name = 'rand', range = [0x0000000100001d92-0x0000000100001d98)
6446 symbol type: trampoline
6447 id = {0x00000031}, name = 'strtoul', range = [0x0000000100001d98-0x0000000100001d9e)
6448 symbol type: trampoline
6449 id = {0x00000032}, name = 'usleep', range = [0x0000000100001d9e-0x0000000100001da4)
6450 symbol type: trampoline
6451 [0x0000000100001da4-0x0000000100001e2c) a.out.__TEXT.__stub_helper
6452 [0x0000000100001e2c-0x0000000100001f10) a.out.__TEXT.__cstring
6453 [0x0000000100001f10-0x0000000100001f68) a.out.__TEXT.__unwind_info
6454 [0x0000000100001f68-0x0000000100001ff8) a.out.__TEXT.__eh_frame
6455
6456 """
6457 __swig_setmethods__ = {}
6458 __setattr__ = lambda self, name, value: _swig_setattr(self, SBModule, name, value)
6459 __swig_getmethods__ = {}
6460 __getattr__ = lambda self, name: _swig_getattr(self, SBModule, name)
6461 __repr__ = _swig_repr
6463 """
6464 __init__(lldb::SBModule self) -> SBModule
6465 __init__(lldb::SBModule self, SBModule rhs) -> SBModule
6466 __init__(lldb::SBModule self, SBModuleSpec module_spec) -> SBModule
6467 __init__(lldb::SBModule self, SBProcess process, lldb::addr_t header_addr) -> SBModule
6468 """
6469 this = _lldb.new_SBModule(*args)
6470 try: self.this.append(this)
6471 except: self.this = this
6472 __swig_destroy__ = _lldb.delete_SBModule
6473 __del__ = lambda self : None;
6475 """IsValid(SBModule self) -> bool"""
6476 return _lldb.SBModule_IsValid(self)
6477
6479 return _lldb.SBModule___nonzero__(self)
6480 __bool__ = __nonzero__
6481
6482
6484 """Clear(SBModule self)"""
6485 return _lldb.SBModule_Clear(self)
6486
6488 """
6489 GetFileSpec(SBModule self) -> SBFileSpec
6490
6491 Get const accessor for the module file specification.
6492
6493 This function returns the file for the module on the host system
6494 that is running LLDB. This can differ from the path on the
6495 platform since we might be doing remote debugging.
6496
6497 @return
6498 A const reference to the file specification object.
6499 """
6500 return _lldb.SBModule_GetFileSpec(self)
6501
6521
6525
6527 """GetRemoteInstallFileSpec(SBModule self) -> SBFileSpec"""
6528 return _lldb.SBModule_GetRemoteInstallFileSpec(self)
6529
6531 """SetRemoteInstallFileSpec(SBModule self, SBFileSpec file) -> bool"""
6532 return _lldb.SBModule_SetRemoteInstallFileSpec(self, *args)
6533
6535 """
6536 GetUUIDString(SBModule self) -> char const *
6537
6538 Returns the UUID of the module as a Python string.
6539 """
6540 return _lldb.SBModule_GetUUIDString(self)
6541
6543 """__eq__(SBModule self, SBModule rhs) -> bool"""
6544 return _lldb.SBModule___eq__(self, *args)
6545
6547 """__ne__(SBModule self, SBModule rhs) -> bool"""
6548 return _lldb.SBModule___ne__(self, *args)
6549
6551 """FindSection(SBModule self, char const * sect_name) -> SBSection"""
6552 return _lldb.SBModule_FindSection(self, *args)
6553
6555 """ResolveFileAddress(SBModule self, lldb::addr_t vm_addr) -> SBAddress"""
6556 return _lldb.SBModule_ResolveFileAddress(self, *args)
6557
6559 """ResolveSymbolContextForAddress(SBModule self, SBAddress addr, uint32_t resolve_scope) -> SBSymbolContext"""
6560 return _lldb.SBModule_ResolveSymbolContextForAddress(self, *args)
6561
6563 """GetDescription(SBModule self, SBStream description) -> bool"""
6564 return _lldb.SBModule_GetDescription(self, *args)
6565
6567 """GetNumCompileUnits(SBModule self) -> uint32_t"""
6568 return _lldb.SBModule_GetNumCompileUnits(self)
6569
6571 """GetCompileUnitAtIndex(SBModule self, uint32_t arg2) -> SBCompileUnit"""
6572 return _lldb.SBModule_GetCompileUnitAtIndex(self, *args)
6573
6575 """
6576 FindCompileUnits(SBModule self, SBFileSpec sb_file_spec) -> SBSymbolContextList
6577
6578 Find compile units related to *this module and passed source
6579 file.
6580
6581 @param[in] sb_file_spec
6582 A lldb::SBFileSpec object that contains source file
6583 specification.
6584
6585 @return
6586 A lldb::SBSymbolContextList that gets filled in with all of
6587 the symbol contexts for all the matches.
6588 """
6589 return _lldb.SBModule_FindCompileUnits(self, *args)
6590
6592 """GetNumSymbols(SBModule self) -> size_t"""
6593 return _lldb.SBModule_GetNumSymbols(self)
6594
6596 """GetSymbolAtIndex(SBModule self, size_t idx) -> SBSymbol"""
6597 return _lldb.SBModule_GetSymbolAtIndex(self, *args)
6598
6600 """
6601 FindSymbol(SBModule self, char const * name, lldb::SymbolType type=eSymbolTypeAny) -> SBSymbol
6602 FindSymbol(SBModule self, char const * name) -> SBSymbol
6603 """
6604 return _lldb.SBModule_FindSymbol(self, *args)
6605
6607 """
6608 FindSymbols(SBModule self, char const * name, lldb::SymbolType type=eSymbolTypeAny) -> SBSymbolContextList
6609 FindSymbols(SBModule self, char const * name) -> SBSymbolContextList
6610 """
6611 return _lldb.SBModule_FindSymbols(self, *args)
6612
6614 """GetNumSections(SBModule self) -> size_t"""
6615 return _lldb.SBModule_GetNumSections(self)
6616
6618 """GetSectionAtIndex(SBModule self, size_t idx) -> SBSection"""
6619 return _lldb.SBModule_GetSectionAtIndex(self, *args)
6620
6622 """
6623 FindFunctions(SBModule self, char const * name, uint32_t name_type_mask=eFunctionNameTypeAny) -> SBSymbolContextList
6624 FindFunctions(SBModule self, char const * name) -> SBSymbolContextList
6625
6626 Find functions by name.
6627
6628 @param[in] name
6629 The name of the function we are looking for.
6630
6631 @param[in] name_type_mask
6632 A logical OR of one or more FunctionNameType enum bits that
6633 indicate what kind of names should be used when doing the
6634 lookup. Bits include fully qualified names, base names,
6635 C++ methods, or ObjC selectors.
6636 See FunctionNameType for more details.
6637
6638 @return
6639 A symbol context list that gets filled in with all of the
6640 matches.
6641 """
6642 return _lldb.SBModule_FindFunctions(self, *args)
6643
6645 """FindFirstType(SBModule self, char const * name) -> SBType"""
6646 return _lldb.SBModule_FindFirstType(self, *args)
6647
6649 """FindTypes(SBModule self, char const * type) -> SBTypeList"""
6650 return _lldb.SBModule_FindTypes(self, *args)
6651
6653 """GetTypeByID(SBModule self, lldb::user_id_t uid) -> SBType"""
6654 return _lldb.SBModule_GetTypeByID(self, *args)
6655
6657 """GetBasicType(SBModule self, lldb::BasicType type) -> SBType"""
6658 return _lldb.SBModule_GetBasicType(self, *args)
6659
6661 """
6662 GetTypes(SBModule self, uint32_t type_mask=eTypeClassAny) -> SBTypeList
6663 GetTypes(SBModule self) -> SBTypeList
6664
6665 Get all types matching type_mask from debug info in this
6666 module.
6667
6668 @param[in] type_mask
6669 A bitfield that consists of one or more bits logically OR'ed
6670 together from the lldb::TypeClass enumeration. This allows
6671 you to request only structure types, or only class, struct
6672 and union types. Passing in lldb::eTypeClassAny will return
6673 all types found in the debug information for this module.
6674
6675 @return
6676 A list of types in this module that match type_mask
6677 """
6678 return _lldb.SBModule_GetTypes(self, *args)
6679
6681 """
6682 FindGlobalVariables(SBModule self, SBTarget target, char const * name, uint32_t max_matches) -> SBValueList
6683
6684 Find global and static variables by name.
6685
6686 @param[in] target
6687 A valid SBTarget instance representing the debuggee.
6688
6689 @param[in] name
6690 The name of the global or static variable we are looking
6691 for.
6692
6693 @param[in] max_matches
6694 Allow the number of matches to be limited to max_matches.
6695
6696 @return
6697 A list of matched variables in an SBValueList.
6698 """
6699 return _lldb.SBModule_FindGlobalVariables(self, *args)
6700
6702 """
6703 FindFirstGlobalVariable(SBModule self, SBTarget target, char const * name) -> SBValue
6704
6705 Find the first global (or static) variable by name.
6706
6707 @param[in] target
6708 A valid SBTarget instance representing the debuggee.
6709
6710 @param[in] name
6711 The name of the global or static variable we are looking
6712 for.
6713
6714 @return
6715 An SBValue that gets filled in with the found variable (if any).
6716 """
6717 return _lldb.SBModule_FindFirstGlobalVariable(self, *args)
6718
6720 """GetByteOrder(SBModule self) -> lldb::ByteOrder"""
6721 return _lldb.SBModule_GetByteOrder(self)
6722
6724 """GetAddressByteSize(SBModule self) -> uint32_t"""
6725 return _lldb.SBModule_GetAddressByteSize(self)
6726
6728 """GetTriple(SBModule self) -> char const *"""
6729 return _lldb.SBModule_GetTriple(self)
6730
6732 """GetVersion(SBModule self) -> uint32_t"""
6733 return _lldb.SBModule_GetVersion(self)
6734
6736 """GetSymbolFileSpec(SBModule self) -> SBFileSpec"""
6737 return _lldb.SBModule_GetSymbolFileSpec(self)
6738
6740 """GetObjectFileHeaderAddress(SBModule self) -> SBAddress"""
6741 return _lldb.SBModule_GetObjectFileHeaderAddress(self)
6742
6744 """GetObjectFileEntryPointAddress(SBModule self) -> SBAddress"""
6745 return _lldb.SBModule_GetObjectFileEntryPointAddress(self)
6746
6748 '''Return the number of symbols in a lldb.SBModule object.'''
6749 return self.GetNumSymbols()
6750
6752 '''Iterate over all symbols in a lldb.SBModule object.'''
6753 return lldb_iter(self, 'GetNumSymbols', 'GetSymbolAtIndex')
6754
6756 '''Iterate over all sections in a lldb.SBModule object.'''
6757 return lldb_iter(self, 'GetNumSections', 'GetSectionAtIndex')
6758
6760 '''Iterate over all compile units in a lldb.SBModule object.'''
6761 return lldb_iter(self, 'GetNumCompileUnits', 'GetCompileUnitAtIndex')
6762
6764 '''Given a module and its contained section, returns an iterator on the
6765 symbols within the section.'''
6766 for sym in self:
6767 if in_range(sym, section):
6768 yield sym
6769
6771 re_compile_type = type(re.compile('.'))
6772 '''A helper object that will lazily hand out lldb.SBSymbol objects for a module when supplied an index, name, or regular expression.'''
6774 self.sbmodule = sbmodule
6775
6777 if self.sbmodule:
6778 return int(self.sbmodule.GetNumSymbols())
6779 return 0
6780
6782 count = len(self)
6783 if type(key) is int:
6784 if key < count:
6785 return self.sbmodule.GetSymbolAtIndex(key)
6786 elif type(key) is str:
6787 matches = []
6788 sc_list = self.sbmodule.FindSymbols(key)
6789 for sc in sc_list:
6790 symbol = sc.symbol
6791 if symbol:
6792 matches.append(symbol)
6793 return matches
6794 elif isinstance(key, self.re_compile_type):
6795 matches = []
6796 for idx in range(count):
6797 symbol = self.sbmodule.GetSymbolAtIndex(idx)
6798 added = False
6799 name = symbol.name
6800 if name:
6801 re_match = key.search(name)
6802 if re_match:
6803 matches.append(symbol)
6804 added = True
6805 if not added:
6806 mangled = symbol.mangled
6807 if mangled:
6808 re_match = key.search(mangled)
6809 if re_match:
6810 matches.append(symbol)
6811 return matches
6812 else:
6813 print("error: unsupported item type: %s" % type(key))
6814 return None
6815
6817 '''An accessor function that returns a symbols_access() object which allows lazy symbol access from a lldb.SBModule object.'''
6818 return self.symbols_access (self)
6819
6821 '''An accessor function that returns a compile_units_access() object which allows lazy compile unit access from a lldb.SBModule object.'''
6822 return self.compile_units_access (self)
6823
6825 '''An accessor function that returns a list() that contains all symbols in a lldb.SBModule object.'''
6826 symbols = []
6827 for idx in range(self.num_symbols):
6828 symbols.append(self.GetSymbolAtIndex(idx))
6829 return symbols
6830
6832 re_compile_type = type(re.compile('.'))
6833 '''A helper object that will lazily hand out lldb.SBSection objects for a module when supplied an index, name, or regular expression.'''
6835 self.sbmodule = sbmodule
6836
6838 if self.sbmodule:
6839 return int(self.sbmodule.GetNumSections())
6840 return 0
6841
6843 count = len(self)
6844 if type(key) is int:
6845 if key < count:
6846 return self.sbmodule.GetSectionAtIndex(key)
6847 elif type(key) is str:
6848 for idx in range(count):
6849 section = self.sbmodule.GetSectionAtIndex(idx)
6850 if section.name == key:
6851 return section
6852 elif isinstance(key, self.re_compile_type):
6853 matches = []
6854 for idx in range(count):
6855 section = self.sbmodule.GetSectionAtIndex(idx)
6856 name = section.name
6857 if name:
6858 re_match = key.search(name)
6859 if re_match:
6860 matches.append(section)
6861 return matches
6862 else:
6863 print("error: unsupported item type: %s" % type(key))
6864 return None
6865
6867 re_compile_type = type(re.compile('.'))
6868 '''A helper object that will lazily hand out lldb.SBCompileUnit objects for a module when supplied an index, full or partial path, or regular expression.'''
6870 self.sbmodule = sbmodule
6871
6876
6878 count = len(self)
6879 if type(key) is int:
6880 if key < count:
6881 return self.sbmodule.GetCompileUnitAtIndex(key)
6882 elif type(key) is str:
6883 is_full_path = key[0] == '/'
6884 for idx in range(count):
6885 comp_unit = self.sbmodule.GetCompileUnitAtIndex(idx)
6886 if is_full_path:
6887 if comp_unit.file.fullpath == key:
6888 return comp_unit
6889 else:
6890 if comp_unit.file.basename == key:
6891 return comp_unit
6892 elif isinstance(key, self.re_compile_type):
6893 matches = []
6894 for idx in range(count):
6895 comp_unit = self.sbmodule.GetCompileUnitAtIndex(idx)
6896 fullpath = comp_unit.file.fullpath
6897 if fullpath:
6898 re_match = key.search(fullpath)
6899 if re_match:
6900 matches.append(comp_unit)
6901 return matches
6902 else:
6903 print("error: unsupported item type: %s" % type(key))
6904 return None
6905
6907 '''An accessor function that returns a sections_access() object which allows lazy section array access.'''
6908 return self.sections_access (self)
6909
6911 '''An accessor function that returns an array object that contains all sections in this module object.'''
6912 if not hasattr(self, 'sections_array'):
6913 self.sections_array = []
6914 for idx in range(self.num_sections):
6915 self.sections_array.append(self.GetSectionAtIndex(idx))
6916 return self.sections_array
6917
6919 '''An accessor function that returns an array object that contains all compile_units in this module object.'''
6920 if not hasattr(self, 'compile_units_array'):
6921 self.compile_units_array = []
6922 for idx in range(self.GetNumCompileUnits()):
6923 self.compile_units_array.append(self.GetCompileUnitAtIndex(idx))
6924 return self.compile_units_array
6925
6926 __swig_getmethods__["symbols"] = get_symbols_array
6927 if _newclass: symbols = property(get_symbols_array, None, doc='''A read only property that returns a list() of lldb.SBSymbol objects contained in this module.''')
6928
6929 __swig_getmethods__["symbol"] = get_symbols_access_object
6930 if _newclass: symbol = property(get_symbols_access_object, None, doc='''A read only property that can be used to access symbols by index ("symbol = module.symbol[0]"), name ("symbols = module.symbol['main']"), or using a regular expression ("symbols = module.symbol[re.compile(...)]"). The return value is a single lldb.SBSymbol object for array access, and a list() of lldb.SBSymbol objects for name and regular expression access''')
6931
6932 __swig_getmethods__["sections"] = get_sections_array
6933 if _newclass: sections = property(get_sections_array, None, doc='''A read only property that returns a list() of lldb.SBSection objects contained in this module.''')
6934
6935 __swig_getmethods__["compile_units"] = get_compile_units_array
6936 if _newclass: compile_units = property(get_compile_units_array, None, doc='''A read only property that returns a list() of lldb.SBCompileUnit objects contained in this module.''')
6937
6938 __swig_getmethods__["section"] = get_sections_access_object
6939 if _newclass: section = property(get_sections_access_object, None, doc='''A read only property that can be used to access symbols by index ("section = module.section[0]"), name ("sections = module.section[\'main\']"), or using a regular expression ("sections = module.section[re.compile(...)]"). The return value is a single lldb.SBSection object for array access, and a list() of lldb.SBSection objects for name and regular expression access''')
6940
6941 __swig_getmethods__["compile_unit"] = get_compile_units_access_object
6942 if _newclass: section = property(get_sections_access_object, None, doc='''A read only property that can be used to access compile units by index ("compile_unit = module.compile_unit[0]"), name ("compile_unit = module.compile_unit[\'main.cpp\']"), or using a regular expression ("compile_unit = module.compile_unit[re.compile(...)]"). The return value is a single lldb.SBCompileUnit object for array access or by full or partial path, and a list() of lldb.SBCompileUnit objects regular expressions.''')
6943
6946
6947 __swig_getmethods__["uuid"] = get_uuid
6948 if _newclass: uuid = property(get_uuid, None, doc='''A read only property that returns a standard python uuid.UUID object that represents the UUID of this module.''')
6949
6950 __swig_getmethods__["file"] = GetFileSpec
6951 if _newclass: file = property(GetFileSpec, None, doc='''A read only property that returns an lldb object that represents the file (lldb.SBFileSpec) for this object file for this module as it is represented where it is being debugged.''')
6952
6953 __swig_getmethods__["platform_file"] = GetPlatformFileSpec
6954 if _newclass: platform_file = property(GetPlatformFileSpec, None, doc='''A read only property that returns an lldb object that represents the file (lldb.SBFileSpec) for this object file for this module as it is represented on the current host system.''')
6955
6956 __swig_getmethods__["byte_order"] = GetByteOrder
6957 if _newclass: byte_order = property(GetByteOrder, None, doc='''A read only property that returns an lldb enumeration value (lldb.eByteOrderLittle, lldb.eByteOrderBig, lldb.eByteOrderInvalid) that represents the byte order for this module.''')
6958
6959 __swig_getmethods__["addr_size"] = GetAddressByteSize
6960 if _newclass: addr_size = property(GetAddressByteSize, None, doc='''A read only property that returns the size in bytes of an address for this module.''')
6961
6962 __swig_getmethods__["triple"] = GetTriple
6963 if _newclass: triple = property(GetTriple, None, doc='''A read only property that returns the target triple (arch-vendor-os) for this module.''')
6964
6965 __swig_getmethods__["num_symbols"] = GetNumSymbols
6966 if _newclass: num_symbols = property(GetNumSymbols, None, doc='''A read only property that returns number of symbols in the module symbol table as an integer.''')
6967
6968 __swig_getmethods__["num_sections"] = GetNumSections
6969 if _newclass: num_sections = property(GetNumSections, None, doc='''A read only property that returns number of sections in the module as an integer.''')
6970
6971
6973 """__str__(SBModule self) -> PyObject *"""
6974 return _lldb.SBModule___str__(self)
6975
6977 if not isinstance(rhs, type(self)):
6978 return False
6979
6980 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
6981
6983 if not isinstance(rhs, type(self)):
6984 return True
6985
6986 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
6987
6988 SBModule_swigregister = _lldb.SBModule_swigregister
6989 SBModule_swigregister(SBModule)
7006 __swig_destroy__ = _lldb.delete_SBModuleSpec
7007 __del__ = lambda self : None;
7009 """IsValid(SBModuleSpec self) -> bool"""
7010 return _lldb.SBModuleSpec_IsValid(self)
7011
7013 return _lldb.SBModuleSpec___nonzero__(self)
7014 __bool__ = __nonzero__
7015
7016
7018 """Clear(SBModuleSpec self)"""
7019 return _lldb.SBModuleSpec_Clear(self)
7020
7022 """
7023 GetFileSpec(SBModuleSpec self) -> SBFileSpec
7024
7025 Get const accessor for the module file.
7026
7027 This function returns the file for the module on the host system
7028 that is running LLDB. This can differ from the path on the
7029 platform since we might be doing remote debugging.
7030
7031 @return
7032 A const reference to the file specification object.
7033 """
7034 return _lldb.SBModuleSpec_GetFileSpec(self)
7035
7037 """SetFileSpec(SBModuleSpec self, SBFileSpec fspec)"""
7038 return _lldb.SBModuleSpec_SetFileSpec(self, *args)
7039
7059
7063
7065 """GetSymbolFileSpec(SBModuleSpec self) -> SBFileSpec"""
7066 return _lldb.SBModuleSpec_GetSymbolFileSpec(self)
7067
7069 """SetSymbolFileSpec(SBModuleSpec self, SBFileSpec fspec)"""
7070 return _lldb.SBModuleSpec_SetSymbolFileSpec(self, *args)
7071
7073 """GetObjectName(SBModuleSpec self) -> char const *"""
7074 return _lldb.SBModuleSpec_GetObjectName(self)
7075
7077 """SetObjectName(SBModuleSpec self, char const * name)"""
7078 return _lldb.SBModuleSpec_SetObjectName(self, *args)
7079
7081 """GetTriple(SBModuleSpec self) -> char const *"""
7082 return _lldb.SBModuleSpec_GetTriple(self)
7083
7085 """SetTriple(SBModuleSpec self, char const * triple)"""
7086 return _lldb.SBModuleSpec_SetTriple(self, *args)
7087
7089 """GetUUIDBytes(SBModuleSpec self) -> uint8_t const *"""
7090 return _lldb.SBModuleSpec_GetUUIDBytes(self)
7091
7093 """GetUUIDLength(SBModuleSpec self) -> size_t"""
7094 return _lldb.SBModuleSpec_GetUUIDLength(self)
7095
7097 """SetUUIDBytes(SBModuleSpec self, uint8_t const * uuid, size_t uuid_len) -> bool"""
7098 return _lldb.SBModuleSpec_SetUUIDBytes(self, *args)
7099
7101 """GetDescription(SBModuleSpec self, SBStream description) -> bool"""
7102 return _lldb.SBModuleSpec_GetDescription(self, *args)
7103
7105 """__str__(SBModuleSpec self) -> PyObject *"""
7106 return _lldb.SBModuleSpec___str__(self)
7107
7108 SBModuleSpec_swigregister = _lldb.SBModuleSpec_swigregister
7109 SBModuleSpec_swigregister(SBModuleSpec)
7126 __swig_destroy__ = _lldb.delete_SBModuleSpecList
7127 __del__ = lambda self : None;
7131
7132 if _newclass:GetModuleSpecifications = staticmethod(GetModuleSpecifications)
7133 __swig_getmethods__["GetModuleSpecifications"] = lambda x: GetModuleSpecifications
7135 """
7136 Append(SBModuleSpecList self, SBModuleSpec spec)
7137 Append(SBModuleSpecList self, SBModuleSpecList spec_list)
7138 """
7139 return _lldb.SBModuleSpecList_Append(self, *args)
7140
7142 """FindFirstMatchingSpec(SBModuleSpecList self, SBModuleSpec match_spec) -> SBModuleSpec"""
7143 return _lldb.SBModuleSpecList_FindFirstMatchingSpec(self, *args)
7144
7146 """FindMatchingSpecs(SBModuleSpecList self, SBModuleSpec match_spec) -> SBModuleSpecList"""
7147 return _lldb.SBModuleSpecList_FindMatchingSpecs(self, *args)
7148
7150 """GetSize(SBModuleSpecList self) -> size_t"""
7151 return _lldb.SBModuleSpecList_GetSize(self)
7152
7154 """GetSpecAtIndex(SBModuleSpecList self, size_t i) -> SBModuleSpec"""
7155 return _lldb.SBModuleSpecList_GetSpecAtIndex(self, *args)
7156
7158 """GetDescription(SBModuleSpecList self, SBStream description) -> bool"""
7159 return _lldb.SBModuleSpecList_GetDescription(self, *args)
7160
7162 """__str__(SBModuleSpecList self) -> PyObject *"""
7163 return _lldb.SBModuleSpecList___str__(self)
7164
7165 SBModuleSpecList_swigregister = _lldb.SBModuleSpecList_swigregister
7166 SBModuleSpecList_swigregister(SBModuleSpecList)
7171
7187 __swig_destroy__ = _lldb.delete_SBPlatformConnectOptions
7188 __del__ = lambda self : None;
7192
7196
7200
7204
7208
7212
7216
7217 SBPlatformConnectOptions_swigregister = _lldb.SBPlatformConnectOptions_swigregister
7218 SBPlatformConnectOptions_swigregister(SBPlatformConnectOptions)
7235 __swig_destroy__ = _lldb.delete_SBPlatformShellCommand
7236 __del__ = lambda self : None;
7240
7244
7248
7252
7256
7260
7264
7268
7272
7276
7277 SBPlatformShellCommand_swigregister = _lldb.SBPlatformShellCommand_swigregister
7278 SBPlatformShellCommand_swigregister(SBPlatformShellCommand)
7316 __swig_destroy__ = _lldb.delete_SBPlatform
7317 __del__ = lambda self : None;
7321
7324 __bool__ = __nonzero__
7325
7326
7330
7334
7338
7342
7346
7350
7354
7358
7362
7366
7370
7374
7378
7382
7386
7390
7394
7398
7402
7406
7413
7417
7421
7425
7426 SBPlatform_swigregister = _lldb.SBPlatform_swigregister
7427 SBPlatform_swigregister(SBPlatform)
7430 """
7431 Represents the process associated with the target program.
7432
7433 SBProcess supports thread iteration. For example (from test/lldbutil.py),
7434
7435 # ==================================================
7436 # Utility functions related to Threads and Processes
7437 # ==================================================
7438
7439 def get_stopped_threads(process, reason):
7440 '''Returns the thread(s) with the specified stop reason in a list.
7441
7442 The list can be empty if no such thread exists.
7443 '''
7444 threads = []
7445 for t in process:
7446 if t.GetStopReason() == reason:
7447 threads.append(t)
7448 return threads
7449
7450 ...
7451
7452 """
7453 __swig_setmethods__ = {}
7454 __setattr__ = lambda self, name, value: _swig_setattr(self, SBProcess, name, value)
7455 __swig_getmethods__ = {}
7456 __getattr__ = lambda self, name: _swig_getattr(self, SBProcess, name)
7457 __repr__ = _swig_repr
7458 eBroadcastBitStateChanged = _lldb.SBProcess_eBroadcastBitStateChanged
7459 eBroadcastBitInterrupt = _lldb.SBProcess_eBroadcastBitInterrupt
7460 eBroadcastBitSTDOUT = _lldb.SBProcess_eBroadcastBitSTDOUT
7461 eBroadcastBitSTDERR = _lldb.SBProcess_eBroadcastBitSTDERR
7462 eBroadcastBitProfileData = _lldb.SBProcess_eBroadcastBitProfileData
7463 eBroadcastBitStructuredData = _lldb.SBProcess_eBroadcastBitStructuredData
7465 """
7466 __init__(lldb::SBProcess self) -> SBProcess
7467 __init__(lldb::SBProcess self, SBProcess rhs) -> SBProcess
7468 """
7469 this = _lldb.new_SBProcess(*args)
7470 try: self.this.append(this)
7471 except: self.this = this
7472 __swig_destroy__ = _lldb.delete_SBProcess
7473 __del__ = lambda self : None;
7477
7478 if _newclass:GetBroadcasterClassName = staticmethod(GetBroadcasterClassName)
7479 __swig_getmethods__["GetBroadcasterClassName"] = lambda x: GetBroadcasterClassName
7481 """GetPluginName(SBProcess self) -> char const *"""
7482 return _lldb.SBProcess_GetPluginName(self)
7483
7485 """GetShortPluginName(SBProcess self) -> char const *"""
7486 return _lldb.SBProcess_GetShortPluginName(self)
7487
7489 """Clear(SBProcess self)"""
7490 return _lldb.SBProcess_Clear(self)
7491
7493 """IsValid(SBProcess self) -> bool"""
7494 return _lldb.SBProcess_IsValid(self)
7495
7497 return _lldb.SBProcess___nonzero__(self)
7498 __bool__ = __nonzero__
7499
7500
7502 """GetTarget(SBProcess self) -> SBTarget"""
7503 return _lldb.SBProcess_GetTarget(self)
7504
7506 """GetByteOrder(SBProcess self) -> lldb::ByteOrder"""
7507 return _lldb.SBProcess_GetByteOrder(self)
7508
7510 """
7511 Writes data into the current process's stdin. API client specifies a Python
7512 string as the only argument.
7513 """
7514 return _lldb.SBProcess_PutSTDIN(self, *args)
7515
7517 """
7518 Reads data from the current process's stdout stream. API client specifies
7519 the size of the buffer to read data into. It returns the byte buffer in a
7520 Python string.
7521 """
7522 return _lldb.SBProcess_GetSTDOUT(self, *args)
7523
7525 """
7526 Reads data from the current process's stderr stream. API client specifies
7527 the size of the buffer to read data into. It returns the byte buffer in a
7528 Python string.
7529 """
7530 return _lldb.SBProcess_GetSTDERR(self, *args)
7531
7533 """GetAsyncProfileData(SBProcess self, char * dst) -> size_t"""
7534 return _lldb.SBProcess_GetAsyncProfileData(self, *args)
7535
7537 """ReportEventState(SBProcess self, SBEvent event, FILE * out)"""
7538 return _lldb.SBProcess_ReportEventState(self, *args)
7539
7541 """AppendEventStateReport(SBProcess self, SBEvent event, SBCommandReturnObject result)"""
7542 return _lldb.SBProcess_AppendEventStateReport(self, *args)
7543
7545 """
7546 RemoteAttachToProcessWithID(SBProcess self, lldb::pid_t pid, SBError error) -> bool
7547
7548 Remote connection related functions. These will fail if the
7549 process is not in eStateConnected. They are intended for use
7550 when connecting to an externally managed debugserver instance.
7551 """
7552 return _lldb.SBProcess_RemoteAttachToProcessWithID(self, *args)
7553
7555 """
7556 RemoteLaunch(SBProcess self, char const ** argv, char const ** envp, char const * stdin_path, char const * stdout_path,
7557 char const * stderr_path, char const * working_directory, uint32_t launch_flags,
7558 bool stop_at_entry, SBError error) -> bool
7559
7560 See SBTarget.Launch for argument description and usage.
7561 """
7562 return _lldb.SBProcess_RemoteLaunch(self, *args)
7563
7565 """GetNumThreads(SBProcess self) -> uint32_t"""
7566 return _lldb.SBProcess_GetNumThreads(self)
7567
7569 """
7570 Returns the INDEX'th thread from the list of current threads. The index
7571 of a thread is only valid for the current stop. For a persistent thread
7572 identifier use either the thread ID or the IndexID. See help on SBThread
7573 for more details.
7574 """
7575 return _lldb.SBProcess_GetThreadAtIndex(self, *args)
7576
7578 """
7579 Returns the thread with the given thread ID.
7580 """
7581 return _lldb.SBProcess_GetThreadByID(self, *args)
7582
7584 """
7585 Returns the thread with the given thread IndexID.
7586 """
7587 return _lldb.SBProcess_GetThreadByIndexID(self, *args)
7588
7590 """
7591 Returns the currently selected thread.
7592 """
7593 return _lldb.SBProcess_GetSelectedThread(self)
7594
7596 """
7597 Lazily create a thread on demand through the current OperatingSystem plug-in, if the current OperatingSystem plug-in supports it.
7598 """
7599 return _lldb.SBProcess_CreateOSPluginThread(self, *args)
7600
7602 """SetSelectedThread(SBProcess self, SBThread thread) -> bool"""
7603 return _lldb.SBProcess_SetSelectedThread(self, *args)
7604
7606 """SetSelectedThreadByID(SBProcess self, lldb::tid_t tid) -> bool"""
7607 return _lldb.SBProcess_SetSelectedThreadByID(self, *args)
7608
7610 """SetSelectedThreadByIndexID(SBProcess self, uint32_t index_id) -> bool"""
7611 return _lldb.SBProcess_SetSelectedThreadByIndexID(self, *args)
7612
7614 """GetNumQueues(SBProcess self) -> uint32_t"""
7615 return _lldb.SBProcess_GetNumQueues(self)
7616
7618 """GetQueueAtIndex(SBProcess self, uint32_t index) -> SBQueue"""
7619 return _lldb.SBProcess_GetQueueAtIndex(self, *args)
7620
7622 """GetState(SBProcess self) -> lldb::StateType"""
7623 return _lldb.SBProcess_GetState(self)
7624
7626 """GetExitStatus(SBProcess self) -> int"""
7627 return _lldb.SBProcess_GetExitStatus(self)
7628
7630 """GetExitDescription(SBProcess self) -> char const *"""
7631 return _lldb.SBProcess_GetExitDescription(self)
7632
7634 """
7635 Returns the process ID of the process.
7636 """
7637 return _lldb.SBProcess_GetProcessID(self)
7638
7640 """
7641 Returns an integer ID that is guaranteed to be unique across all process instances. This is not the process ID, just a unique integer for comparison and caching purposes.
7642 """
7643 return _lldb.SBProcess_GetUniqueID(self)
7644
7646 """GetAddressByteSize(SBProcess self) -> uint32_t"""
7647 return _lldb.SBProcess_GetAddressByteSize(self)
7648
7650 """
7651 Destroy(SBProcess self) -> SBError
7652
7653 Kills the process and shuts down all threads that were spawned to
7654 track and monitor process.
7655 """
7656 return _lldb.SBProcess_Destroy(self)
7657
7659 """Continue(SBProcess self) -> SBError"""
7660 return _lldb.SBProcess_Continue(self)
7661
7663 """Stop(SBProcess self) -> SBError"""
7664 return _lldb.SBProcess_Stop(self)
7665
7667 """Kill(SBProcess self) -> SBError"""
7668 return _lldb.SBProcess_Kill(self)
7669
7671 """Detach(SBProcess self) -> SBError"""
7672 return _lldb.SBProcess_Detach(self)
7673
7675 """
7676 Signal(SBProcess self, int signal) -> SBError
7677
7678 Sends the process a unix signal.
7679 """
7680 return _lldb.SBProcess_Signal(self, *args)
7681
7683 """GetUnixSignals(SBProcess self) -> SBUnixSignals"""
7684 return _lldb.SBProcess_GetUnixSignals(self)
7685
7686 - def GetStopID(self, include_expression_stops=False):
7687 """
7688 GetStopID(SBProcess self, bool include_expression_stops=False) -> uint32_t
7689 GetStopID(SBProcess self) -> uint32_t
7690
7691 Returns a stop id that will increase every time the process executes. If
7692 include_expression_stops is true, then stops caused by expression evaluation
7693 will cause the returned value to increase, otherwise the counter returned will
7694 only increase when execution is continued explicitly by the user. Note, the value
7695 will always increase, but may increase by more than one per stop.
7696 """
7697 return _lldb.SBProcess_GetStopID(self, include_expression_stops)
7698
7700 """SendAsyncInterrupt(SBProcess self)"""
7701 return _lldb.SBProcess_SendAsyncInterrupt(self)
7702
7704 """
7705 Reads memory from the current process's address space and removes any
7706 traps that may have been inserted into the memory. It returns the byte
7707 buffer in a Python string. Example:
7708
7709 # Read 4 bytes from address 'addr' and assume error.Success() is True.
7710 content = process.ReadMemory(addr, 4, error)
7711 new_bytes = bytearray(content)
7712 """
7713 return _lldb.SBProcess_ReadMemory(self, *args)
7714
7716 """
7717 Writes memory to the current process's address space and maintains any
7718 traps that might be present due to software breakpoints. Example:
7719
7720 # Create a Python string from the byte array.
7721 new_value = str(bytes)
7722 result = process.WriteMemory(addr, new_value, error)
7723 if not error.Success() or result != len(bytes):
7724 print('SBProcess.WriteMemory() failed!')
7725 """
7726 return _lldb.SBProcess_WriteMemory(self, *args)
7727
7729 """
7730 Reads a NULL terminated C string from the current process's address space.
7731 It returns a python string of the exact length, or truncates the string if
7732 the maximum character limit is reached. Example:
7733
7734 # Read a C string of at most 256 bytes from address '0x1000'
7735 error = lldb.SBError()
7736 cstring = process.ReadCStringFromMemory(0x1000, 256, error)
7737 if error.Success():
7738 print('cstring: ', cstring)
7739 else
7740 print('error: ', error)
7741 """
7742 return _lldb.SBProcess_ReadCStringFromMemory(self, *args)
7743
7745 """
7746 Reads an unsigned integer from memory given a byte size and an address.
7747 Returns the unsigned integer that was read. Example:
7748
7749 # Read a 4 byte unsigned integer from address 0x1000
7750 error = lldb.SBError()
7751 uint = ReadUnsignedFromMemory(0x1000, 4, error)
7752 if error.Success():
7753 print('integer: %u' % uint)
7754 else
7755 print('error: ', error)
7756 """
7757 return _lldb.SBProcess_ReadUnsignedFromMemory(self, *args)
7758
7760 """
7761 Reads a pointer from memory from an address and returns the value. Example:
7762
7763 # Read a pointer from address 0x1000
7764 error = lldb.SBError()
7765 ptr = ReadPointerFromMemory(0x1000, error)
7766 if error.Success():
7767 print('pointer: 0x%x' % ptr)
7768 else
7769 print('error: ', error)
7770 """
7771 return _lldb.SBProcess_ReadPointerFromMemory(self, *args)
7772
7776
7777 if _newclass:GetStateFromEvent = staticmethod(GetStateFromEvent)
7778 __swig_getmethods__["GetStateFromEvent"] = lambda x: GetStateFromEvent
7782
7783 if _newclass:GetRestartedFromEvent = staticmethod(GetRestartedFromEvent)
7784 __swig_getmethods__["GetRestartedFromEvent"] = lambda x: GetRestartedFromEvent
7788
7789 if _newclass:GetNumRestartedReasonsFromEvent = staticmethod(GetNumRestartedReasonsFromEvent)
7790 __swig_getmethods__["GetNumRestartedReasonsFromEvent"] = lambda x: GetNumRestartedReasonsFromEvent
7794
7795 if _newclass:GetRestartedReasonAtIndexFromEvent = staticmethod(GetRestartedReasonAtIndexFromEvent)
7796 __swig_getmethods__["GetRestartedReasonAtIndexFromEvent"] = lambda x: GetRestartedReasonAtIndexFromEvent
7800
7801 if _newclass:GetProcessFromEvent = staticmethod(GetProcessFromEvent)
7802 __swig_getmethods__["GetProcessFromEvent"] = lambda x: GetProcessFromEvent
7806
7807 if _newclass:GetInterruptedFromEvent = staticmethod(GetInterruptedFromEvent)
7808 __swig_getmethods__["GetInterruptedFromEvent"] = lambda x: GetInterruptedFromEvent
7812
7813 if _newclass:GetStructuredDataFromEvent = staticmethod(GetStructuredDataFromEvent)
7814 __swig_getmethods__["GetStructuredDataFromEvent"] = lambda x: GetStructuredDataFromEvent
7818
7819 if _newclass:EventIsProcessEvent = staticmethod(EventIsProcessEvent)
7820 __swig_getmethods__["EventIsProcessEvent"] = lambda x: EventIsProcessEvent
7824
7825 if _newclass:EventIsStructuredDataEvent = staticmethod(EventIsStructuredDataEvent)
7826 __swig_getmethods__["EventIsStructuredDataEvent"] = lambda x: EventIsStructuredDataEvent
7828 """GetBroadcaster(SBProcess self) -> SBBroadcaster"""
7829 return _lldb.SBProcess_GetBroadcaster(self)
7830
7832 """GetDescription(SBProcess self, SBStream description) -> bool"""
7833 return _lldb.SBProcess_GetDescription(self, *args)
7834
7836 """GetNumSupportedHardwareWatchpoints(SBProcess self, SBError error) -> uint32_t"""
7837 return _lldb.SBProcess_GetNumSupportedHardwareWatchpoints(self, *args)
7838
7840 """LoadImage(SBProcess self, SBFileSpec image_spec, SBError error) -> uint32_t"""
7841 return _lldb.SBProcess_LoadImage(self, *args)
7842
7844 """
7845 Load the library whose filename is given by image_spec looking in all the
7846 paths supplied in the paths argument. If successful, return a token that
7847 can be passed to UnloadImage and fill loaded_path with the path that was
7848 successfully loaded. On failure, return
7849 lldb.LLDB_INVALID_IMAGE_TOKEN.
7850 """
7851 return _lldb.SBProcess_LoadImageUsingPaths(self, *args)
7852
7854 """UnloadImage(SBProcess self, uint32_t image_token) -> SBError"""
7855 return _lldb.SBProcess_UnloadImage(self, *args)
7856
7858 """SendEventData(SBProcess self, char const * event_data) -> SBError"""
7859 return _lldb.SBProcess_SendEventData(self, *args)
7860
7862 """
7863 Return the number of different thread-origin extended backtraces
7864 this process can support as a uint32_t.
7865 When the process is stopped and you have an SBThread, lldb may be
7866 able to show a backtrace of when that thread was originally created,
7867 or the work item was enqueued to it (in the case of a libdispatch
7868 queue).
7869 """
7870 return _lldb.SBProcess_GetNumExtendedBacktraceTypes(self)
7871
7873 """
7874 Takes an index argument, returns the name of one of the thread-origin
7875 extended backtrace methods as a str.
7876 """
7877 return _lldb.SBProcess_GetExtendedBacktraceTypeAtIndex(self, *args)
7878
7879 - def GetHistoryThreads(self, *args):
7880 """GetHistoryThreads(SBProcess self, lldb::addr_t addr) -> SBThreadCollection"""
7881 return _lldb.SBProcess_GetHistoryThreads(self, *args)
7882
7884 """IsInstrumentationRuntimePresent(SBProcess self, lldb::InstrumentationRuntimeType type) -> bool"""
7885 return _lldb.SBProcess_IsInstrumentationRuntimePresent(self, *args)
7886
7888 """SaveCore(SBProcess self, char const * file_name) -> SBError"""
7889 return _lldb.SBProcess_SaveCore(self, *args)
7890
7892 """StartTrace(SBProcess self, SBTraceOptions options, SBError error) -> SBTrace"""
7893 return _lldb.SBProcess_StartTrace(self, *args)
7894
7896 """GetMemoryRegionInfo(SBProcess self, lldb::addr_t load_addr, SBMemoryRegionInfo region_info) -> SBError"""
7897 return _lldb.SBProcess_GetMemoryRegionInfo(self, *args)
7898
7900 """GetMemoryRegions(SBProcess self) -> SBMemoryRegionInfoList"""
7901 return _lldb.SBProcess_GetMemoryRegions(self)
7902
7904 """
7905 Get information about the process.
7906 Valid process info will only be returned when the process is alive,
7907 use IsValid() to check if the info returned is valid.
7908
7909 process_info = process.GetProcessInfo()
7910 if process_info.IsValid():
7911 process_info.GetProcessID()
7912 """
7913 return _lldb.SBProcess_GetProcessInfo(self)
7914
7927
7929 '''Returns "True" if the process is currently running, "False" otherwise'''
7930 state = self.GetState()
7931 if state == eStateRunning or state == eStateStepping:
7932 return True
7933 return False
7934
7941
7943 '''A helper object that will lazily hand out thread for a process when supplied an index.'''
7945 self.sbprocess = sbprocess
7946
7948 if self.sbprocess:
7949 return int(self.sbprocess.GetNumThreads())
7950 return 0
7951
7953 if type(key) is int and key < len(self):
7954 return self.sbprocess.GetThreadAtIndex(key)
7955 return None
7956
7958 '''An accessor function that returns a modules_access() object which allows lazy thread access from a lldb.SBProcess object.'''
7959 return self.threads_access (self)
7960
7962 '''An accessor function that returns a list() that contains all threads in a lldb.SBProcess object.'''
7963 threads = []
7964 accessor = self.get_threads_access_object()
7965 for idx in range(len(accessor)):
7966 threads.append(accessor[idx])
7967 return threads
7968
7970 '''Iterate over all threads in a lldb.SBProcess object.'''
7971 return lldb_iter(self, 'GetNumThreads', 'GetThreadAtIndex')
7972
7974 '''Return the number of threads in a lldb.SBProcess object.'''
7975 return self.GetNumThreads()
7976
7977
7978 __swig_getmethods__["threads"] = get_process_thread_list
7979 if _newclass: threads = property(get_process_thread_list, None, doc='''A read only property that returns a list() of lldb.SBThread objects for this process.''')
7980
7981 __swig_getmethods__["thread"] = get_threads_access_object
7982 if _newclass: thread = property(get_threads_access_object, None, doc='''A read only property that returns an object that can access threads by thread index (thread = lldb.process.thread[12]).''')
7983
7984 __swig_getmethods__["is_alive"] = __get_is_alive__
7985 if _newclass: is_alive = property(__get_is_alive__, None, doc='''A read only property that returns a boolean value that indicates if this process is currently alive.''')
7986
7987 __swig_getmethods__["is_running"] = __get_is_running__
7988 if _newclass: is_running = property(__get_is_running__, None, doc='''A read only property that returns a boolean value that indicates if this process is currently running.''')
7989
7990 __swig_getmethods__["is_stopped"] = __get_is_stopped__
7991 if _newclass: is_stopped = property(__get_is_stopped__, None, doc='''A read only property that returns a boolean value that indicates if this process is currently stopped.''')
7992
7993 __swig_getmethods__["id"] = GetProcessID
7994 if _newclass: id = property(GetProcessID, None, doc='''A read only property that returns the process ID as an integer.''')
7995
7996 __swig_getmethods__["target"] = GetTarget
7997 if _newclass: target = property(GetTarget, None, doc='''A read only property that an lldb object that represents the target (lldb.SBTarget) that owns this process.''')
7998
7999 __swig_getmethods__["num_threads"] = GetNumThreads
8000 if _newclass: num_threads = property(GetNumThreads, None, doc='''A read only property that returns the number of threads in this process as an integer.''')
8001
8002 __swig_getmethods__["selected_thread"] = GetSelectedThread
8003 __swig_setmethods__["selected_thread"] = SetSelectedThread
8004 if _newclass: selected_thread = property(GetSelectedThread, SetSelectedThread, doc='''A read/write property that gets/sets the currently selected thread in this process. The getter returns a lldb.SBThread object and the setter takes an lldb.SBThread object.''')
8005
8006 __swig_getmethods__["state"] = GetState
8007 if _newclass: state = property(GetState, None, doc='''A read only property that returns an lldb enumeration value (see enumerations that start with "lldb.eState") that represents the current state of this process (running, stopped, exited, etc.).''')
8008
8009 __swig_getmethods__["exit_state"] = GetExitStatus
8010 if _newclass: exit_state = property(GetExitStatus, None, doc='''A read only property that returns an exit status as an integer of this process when the process state is lldb.eStateExited.''')
8011
8012 __swig_getmethods__["exit_description"] = GetExitDescription
8013 if _newclass: exit_description = property(GetExitDescription, None, doc='''A read only property that returns an exit description as a string of this process when the process state is lldb.eStateExited.''')
8014
8015 __swig_getmethods__["broadcaster"] = GetBroadcaster
8016 if _newclass: broadcaster = property(GetBroadcaster, None, doc='''A read only property that an lldb object that represents the broadcaster (lldb.SBBroadcaster) for this process.''')
8017
8019 """__str__(SBProcess self) -> PyObject *"""
8020 return _lldb.SBProcess___str__(self)
8021
8022 SBProcess_swigregister = _lldb.SBProcess_swigregister
8023 SBProcess_swigregister(SBProcess)
8028
8032
8036
8040
8044
8048
8052
8056
8060
8064
8083 __swig_destroy__ = _lldb.delete_SBProcessInfo
8084 __del__ = lambda self : None;
8086 """IsValid(SBProcessInfo self) -> bool"""
8087 return _lldb.SBProcessInfo_IsValid(self)
8088
8090 return _lldb.SBProcessInfo___nonzero__(self)
8091 __bool__ = __nonzero__
8092
8093
8095 """GetName(SBProcessInfo self) -> char const *"""
8096 return _lldb.SBProcessInfo_GetName(self)
8097
8099 """GetExecutableFile(SBProcessInfo self) -> SBFileSpec"""
8100 return _lldb.SBProcessInfo_GetExecutableFile(self)
8101
8103 """GetProcessID(SBProcessInfo self) -> lldb::pid_t"""
8104 return _lldb.SBProcessInfo_GetProcessID(self)
8105
8107 """GetUserID(SBProcessInfo self) -> uint32_t"""
8108 return _lldb.SBProcessInfo_GetUserID(self)
8109
8111 """GetGroupID(SBProcessInfo self) -> uint32_t"""
8112 return _lldb.SBProcessInfo_GetGroupID(self)
8113
8115 """UserIDIsValid(SBProcessInfo self) -> bool"""
8116 return _lldb.SBProcessInfo_UserIDIsValid(self)
8117
8119 """GroupIDIsValid(SBProcessInfo self) -> bool"""
8120 return _lldb.SBProcessInfo_GroupIDIsValid(self)
8121
8123 """GetEffectiveUserID(SBProcessInfo self) -> uint32_t"""
8124 return _lldb.SBProcessInfo_GetEffectiveUserID(self)
8125
8127 """GetEffectiveGroupID(SBProcessInfo self) -> uint32_t"""
8128 return _lldb.SBProcessInfo_GetEffectiveGroupID(self)
8129
8131 """EffectiveUserIDIsValid(SBProcessInfo self) -> bool"""
8132 return _lldb.SBProcessInfo_EffectiveUserIDIsValid(self)
8133
8135 """EffectiveGroupIDIsValid(SBProcessInfo self) -> bool"""
8136 return _lldb.SBProcessInfo_EffectiveGroupIDIsValid(self)
8137
8139 """GetParentProcessID(SBProcessInfo self) -> lldb::pid_t"""
8140 return _lldb.SBProcessInfo_GetParentProcessID(self)
8141
8142 SBProcessInfo_swigregister = _lldb.SBProcessInfo_swigregister
8143 SBProcessInfo_swigregister(SBProcessInfo)
8160 __swig_destroy__ = _lldb.delete_SBQueue
8161 __del__ = lambda self : None;
8163 """IsValid(SBQueue self) -> bool"""
8164 return _lldb.SBQueue_IsValid(self)
8165
8167 return _lldb.SBQueue___nonzero__(self)
8168 __bool__ = __nonzero__
8169
8170
8172 """Clear(SBQueue self)"""
8173 return _lldb.SBQueue_Clear(self)
8174
8176 """GetProcess(SBQueue self) -> SBProcess"""
8177 return _lldb.SBQueue_GetProcess(self)
8178
8180 """
8181 Returns an lldb::queue_id_t type unique identifier number for this
8182 queue that will not be used by any other queue during this process'
8183 execution. These ID numbers often start at 1 with the first
8184 system-created queues and increment from there.
8185 """
8186 return _lldb.SBQueue_GetQueueID(self)
8187
8189 """GetName(SBQueue self) -> char const *"""
8190 return _lldb.SBQueue_GetName(self)
8191
8193 """
8194 Returns an lldb::QueueKind enumerated value (e.g. eQueueKindUnknown,
8195 eQueueKindSerial, eQueueKindConcurrent) describing the type of this
8196 queue.
8197 """
8198 return _lldb.SBQueue_GetKind(self)
8199
8201 """GetIndexID(SBQueue self) -> uint32_t"""
8202 return _lldb.SBQueue_GetIndexID(self)
8203
8205 """GetNumThreads(SBQueue self) -> uint32_t"""
8206 return _lldb.SBQueue_GetNumThreads(self)
8207
8209 """GetThreadAtIndex(SBQueue self, uint32_t arg2) -> SBThread"""
8210 return _lldb.SBQueue_GetThreadAtIndex(self, *args)
8211
8213 """GetNumPendingItems(SBQueue self) -> uint32_t"""
8214 return _lldb.SBQueue_GetNumPendingItems(self)
8215
8217 """GetPendingItemAtIndex(SBQueue self, uint32_t arg2) -> SBQueueItem"""
8218 return _lldb.SBQueue_GetPendingItemAtIndex(self, *args)
8219
8221 """GetNumRunningItems(SBQueue self) -> uint32_t"""
8222 return _lldb.SBQueue_GetNumRunningItems(self)
8223
8224 SBQueue_swigregister = _lldb.SBQueue_swigregister
8225 SBQueue_swigregister(SBQueue)
8242 __swig_destroy__ = _lldb.delete_SBQueueItem
8243 __del__ = lambda self : None;
8245 """IsValid(SBQueueItem self) -> bool"""
8246 return _lldb.SBQueueItem_IsValid(self)
8247
8249 return _lldb.SBQueueItem___nonzero__(self)
8250 __bool__ = __nonzero__
8251
8252
8254 """Clear(SBQueueItem self)"""
8255 return _lldb.SBQueueItem_Clear(self)
8256
8258 """GetKind(SBQueueItem self) -> lldb::QueueItemKind"""
8259 return _lldb.SBQueueItem_GetKind(self)
8260
8262 """SetKind(SBQueueItem self, lldb::QueueItemKind kind)"""
8263 return _lldb.SBQueueItem_SetKind(self, *args)
8264
8266 """GetAddress(SBQueueItem self) -> SBAddress"""
8267 return _lldb.SBQueueItem_GetAddress(self)
8268
8270 """SetAddress(SBQueueItem self, SBAddress addr)"""
8271 return _lldb.SBQueueItem_SetAddress(self, *args)
8272
8274 """SetQueueItem(SBQueueItem self, lldb::QueueItemSP const & queue_item_sp)"""
8275 return _lldb.SBQueueItem_SetQueueItem(self, *args)
8276
8278 """GetExtendedBacktraceThread(SBQueueItem self, char const * type) -> SBThread"""
8279 return _lldb.SBQueueItem_GetExtendedBacktraceThread(self, *args)
8280
8281 SBQueueItem_swigregister = _lldb.SBQueueItem_swigregister
8282 SBQueueItem_swigregister(SBQueueItem)
8285 """
8286 Represents an executable image section.
8287
8288 SBSection supports iteration through its subsection, represented as SBSection
8289 as well. For example,
8290
8291 for sec in exe_module:
8292 if sec.GetName() == '__TEXT':
8293 print sec
8294 break
8295 print INDENT + 'Number of subsections: %d' % sec.GetNumSubSections()
8296 for subsec in sec:
8297 print INDENT + repr(subsec)
8298
8299 produces:
8300
8301 [0x0000000100000000-0x0000000100002000) a.out.__TEXT
8302 Number of subsections: 6
8303 [0x0000000100001780-0x0000000100001d5c) a.out.__TEXT.__text
8304 [0x0000000100001d5c-0x0000000100001da4) a.out.__TEXT.__stubs
8305 [0x0000000100001da4-0x0000000100001e2c) a.out.__TEXT.__stub_helper
8306 [0x0000000100001e2c-0x0000000100001f10) a.out.__TEXT.__cstring
8307 [0x0000000100001f10-0x0000000100001f68) a.out.__TEXT.__unwind_info
8308 [0x0000000100001f68-0x0000000100001ff8) a.out.__TEXT.__eh_frame
8309
8310 See also SBModule.
8311 """
8312 __swig_setmethods__ = {}
8313 __setattr__ = lambda self, name, value: _swig_setattr(self, SBSection, name, value)
8314 __swig_getmethods__ = {}
8315 __getattr__ = lambda self, name: _swig_getattr(self, SBSection, name)
8316 __repr__ = _swig_repr
8318 """
8319 __init__(lldb::SBSection self) -> SBSection
8320 __init__(lldb::SBSection self, SBSection rhs) -> SBSection
8321 """
8322 this = _lldb.new_SBSection(*args)
8323 try: self.this.append(this)
8324 except: self.this = this
8325 __swig_destroy__ = _lldb.delete_SBSection
8326 __del__ = lambda self : None;
8328 """IsValid(SBSection self) -> bool"""
8329 return _lldb.SBSection_IsValid(self)
8330
8332 return _lldb.SBSection___nonzero__(self)
8333 __bool__ = __nonzero__
8334
8335
8337 """GetName(SBSection self) -> char const *"""
8338 return _lldb.SBSection_GetName(self)
8339
8341 """GetParent(SBSection self) -> SBSection"""
8342 return _lldb.SBSection_GetParent(self)
8343
8345 """FindSubSection(SBSection self, char const * sect_name) -> SBSection"""
8346 return _lldb.SBSection_FindSubSection(self, *args)
8347
8349 """GetNumSubSections(SBSection self) -> size_t"""
8350 return _lldb.SBSection_GetNumSubSections(self)
8351
8353 """GetSubSectionAtIndex(SBSection self, size_t idx) -> SBSection"""
8354 return _lldb.SBSection_GetSubSectionAtIndex(self, *args)
8355
8357 """GetFileAddress(SBSection self) -> lldb::addr_t"""
8358 return _lldb.SBSection_GetFileAddress(self)
8359
8361 """GetLoadAddress(SBSection self, SBTarget target) -> lldb::addr_t"""
8362 return _lldb.SBSection_GetLoadAddress(self, *args)
8363
8365 """GetByteSize(SBSection self) -> lldb::addr_t"""
8366 return _lldb.SBSection_GetByteSize(self)
8367
8369 """GetFileOffset(SBSection self) -> uint64_t"""
8370 return _lldb.SBSection_GetFileOffset(self)
8371
8373 """GetFileByteSize(SBSection self) -> uint64_t"""
8374 return _lldb.SBSection_GetFileByteSize(self)
8375
8377 """
8378 GetSectionData(SBSection self) -> SBData
8379 GetSectionData(SBSection self, uint64_t offset, uint64_t size) -> SBData
8380 """
8381 return _lldb.SBSection_GetSectionData(self, *args)
8382
8384 """GetSectionType(SBSection self) -> lldb::SectionType"""
8385 return _lldb.SBSection_GetSectionType(self)
8386
8388 """GetPermissions(SBSection self) -> uint32_t"""
8389 return _lldb.SBSection_GetPermissions(self)
8390
8392 """
8393 GetTargetByteSize(SBSection self) -> uint32_t
8394
8395 Return the size of a target's byte represented by this section
8396 in numbers of host bytes. Note that certain architectures have
8397 varying minimum addressable unit (i.e. byte) size for their
8398 CODE or DATA buses.
8399
8400 @return
8401 The number of host (8-bit) bytes needed to hold a target byte
8402 """
8403 return _lldb.SBSection_GetTargetByteSize(self)
8404
8406 """GetDescription(SBSection self, SBStream description) -> bool"""
8407 return _lldb.SBSection_GetDescription(self, *args)
8408
8410 """__eq__(SBSection self, SBSection rhs) -> bool"""
8411 return _lldb.SBSection___eq__(self, *args)
8412
8414 """__ne__(SBSection self, SBSection rhs) -> bool"""
8415 return _lldb.SBSection___ne__(self, *args)
8416
8418 '''Iterate over all subsections in a lldb.SBSection object.'''
8419 return lldb_iter(self, 'GetNumSubSections', 'GetSubSectionAtIndex')
8420
8422 '''Return the number of subsections in a lldb.SBSection object.'''
8423 return self.GetNumSubSections()
8424
8427
8428 __swig_getmethods__["name"] = GetName
8429 if _newclass: name = property(GetName, None, doc='''A read only property that returns the name of this section as a string.''')
8430
8431 __swig_getmethods__["addr"] = get_addr
8432 if _newclass: addr = property(get_addr, None, doc='''A read only property that returns an lldb object that represents the start address (lldb.SBAddress) for this section.''')
8433
8434 __swig_getmethods__["file_addr"] = GetFileAddress
8435 if _newclass: file_addr = property(GetFileAddress, None, doc='''A read only property that returns an integer that represents the starting "file" address for this section, or the address of the section in the object file in which it is defined.''')
8436
8437 __swig_getmethods__["size"] = GetByteSize
8438 if _newclass: size = property(GetByteSize, None, doc='''A read only property that returns the size in bytes of this section as an integer.''')
8439
8440 __swig_getmethods__["file_offset"] = GetFileOffset
8441 if _newclass: file_offset = property(GetFileOffset, None, doc='''A read only property that returns the file offset in bytes of this section as an integer.''')
8442
8443 __swig_getmethods__["file_size"] = GetFileByteSize
8444 if _newclass: file_size = property(GetFileByteSize, None, doc='''A read only property that returns the file size in bytes of this section as an integer.''')
8445
8446 __swig_getmethods__["data"] = GetSectionData
8447 if _newclass: data = property(GetSectionData, None, doc='''A read only property that returns an lldb object that represents the bytes for this section (lldb.SBData) for this section.''')
8448
8449 __swig_getmethods__["type"] = GetSectionType
8450 if _newclass: type = property(GetSectionType, None, doc='''A read only property that returns an lldb enumeration value (see enumerations that start with "lldb.eSectionType") that represents the type of this section (code, data, etc.).''')
8451
8452 __swig_getmethods__["target_byte_size"] = GetTargetByteSize
8453 if _newclass: target_byte_size = property(GetTargetByteSize, None, doc='''A read only property that returns the size of a target byte represented by this section as a number of host bytes.''')
8454
8455
8457 """__str__(SBSection self) -> PyObject *"""
8458 return _lldb.SBSection___str__(self)
8459
8461 if not isinstance(rhs, type(self)):
8462 return False
8463
8464 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
8465
8467 if not isinstance(rhs, type(self)):
8468 return True
8469
8470 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
8471
8472 SBSection_swigregister = _lldb.SBSection_swigregister
8473 SBSection_swigregister(SBSection)
8476 """
8477 Represents a central authority for displaying source code.
8478
8479 For example (from test/source-manager/TestSourceManager.py),
8480
8481 # Create the filespec for 'main.c'.
8482 filespec = lldb.SBFileSpec('main.c', False)
8483 source_mgr = self.dbg.GetSourceManager()
8484 # Use a string stream as the destination.
8485 stream = lldb.SBStream()
8486 source_mgr.DisplaySourceLinesWithLineNumbers(filespec,
8487 self.line,
8488 2, # context before
8489 2, # context after
8490 '=>', # prefix for current line
8491 stream)
8492
8493 # 2
8494 # 3 int main(int argc, char const *argv[]) {
8495 # => 4 printf('Hello world.\n'); // Set break point at this line.
8496 # 5 return 0;
8497 # 6 }
8498 self.expect(stream.GetData(), 'Source code displayed correctly',
8499 exe=False,
8500 patterns = ['=> %d.*Hello world' % self.line])
8501 """
8502 __swig_setmethods__ = {}
8503 __setattr__ = lambda self, name, value: _swig_setattr(self, SBSourceManager, name, value)
8504 __swig_getmethods__ = {}
8505 __getattr__ = lambda self, name: _swig_getattr(self, SBSourceManager, name)
8506 __repr__ = _swig_repr
8508 """__init__(lldb::SBSourceManager self, SBSourceManager rhs) -> SBSourceManager"""
8509 this = _lldb.new_SBSourceManager(*args)
8510 try: self.this.append(this)
8511 except: self.this = this
8512 __swig_destroy__ = _lldb.delete_SBSourceManager
8513 __del__ = lambda self : None;
8515 """
8516 DisplaySourceLinesWithLineNumbers(SBSourceManager self, SBFileSpec file, uint32_t line, uint32_t context_before, uint32_t context_after,
8517 char const * current_line_cstr, SBStream s) -> size_t
8518 """
8519 return _lldb.SBSourceManager_DisplaySourceLinesWithLineNumbers(self, *args)
8520
8522 """
8523 DisplaySourceLinesWithLineNumbersAndColumn(SBSourceManager self, SBFileSpec file, uint32_t line, uint32_t column, uint32_t context_before, uint32_t context_after,
8524 char const * current_line_cstr, SBStream s) -> size_t
8525 """
8526 return _lldb.SBSourceManager_DisplaySourceLinesWithLineNumbersAndColumn(self, *args)
8527
8528 SBSourceManager_swigregister = _lldb.SBSourceManager_swigregister
8529 SBSourceManager_swigregister(SBSourceManager)
8532 """
8533 Represents a destination for streaming data output to. By default, a string
8534 stream is created.
8535
8536 For example (from test/source-manager/TestSourceManager.py),
8537
8538 # Create the filespec for 'main.c'.
8539 filespec = lldb.SBFileSpec('main.c', False)
8540 source_mgr = self.dbg.GetSourceManager()
8541 # Use a string stream as the destination.
8542 stream = lldb.SBStream()
8543 source_mgr.DisplaySourceLinesWithLineNumbers(filespec,
8544 self.line,
8545 2, # context before
8546 2, # context after
8547 '=>', # prefix for current line
8548 stream)
8549
8550 # 2
8551 # 3 int main(int argc, char const *argv[]) {
8552 # => 4 printf('Hello world.\n'); // Set break point at this line.
8553 # 5 return 0;
8554 # 6 }
8555 self.expect(stream.GetData(), 'Source code displayed correctly',
8556 exe=False,
8557 patterns = ['=> %d.*Hello world' % self.line])
8558 """
8559 __swig_setmethods__ = {}
8560 __setattr__ = lambda self, name, value: _swig_setattr(self, SBStream, name, value)
8561 __swig_getmethods__ = {}
8562 __getattr__ = lambda self, name: _swig_getattr(self, SBStream, name)
8563 __repr__ = _swig_repr
8565 """__init__(lldb::SBStream self) -> SBStream"""
8566 this = _lldb.new_SBStream()
8567 try: self.this.append(this)
8568 except: self.this = this
8569 __swig_destroy__ = _lldb.delete_SBStream
8570 __del__ = lambda self : None;
8572 """IsValid(SBStream self) -> bool"""
8573 return _lldb.SBStream_IsValid(self)
8574
8576 return _lldb.SBStream___nonzero__(self)
8577 __bool__ = __nonzero__
8578
8579
8581 """
8582 GetData(SBStream self) -> char const *
8583
8584 If this stream is not redirected to a file, it will maintain a local
8585 cache for the stream data which can be accessed using this accessor.
8586 """
8587 return _lldb.SBStream_GetData(self)
8588
8590 """
8591 GetSize(SBStream self) -> size_t
8592
8593 If this stream is not redirected to a file, it will maintain a local
8594 cache for the stream output whose length can be accessed using this
8595 accessor.
8596 """
8597 return _lldb.SBStream_GetSize(self)
8598
8599 - def Print(self, *args):
8600 """Print(SBStream self, char const * str)"""
8601 return _lldb.SBStream_Print(self, *args)
8602
8604 """RedirectToFile(SBStream self, char const * path, bool append)"""
8605 return _lldb.SBStream_RedirectToFile(self, *args)
8606
8608 """RedirectToFileHandle(SBStream self, FILE * fh, bool transfer_fh_ownership)"""
8609 return _lldb.SBStream_RedirectToFileHandle(self, *args)
8610
8612 """RedirectToFileDescriptor(SBStream self, int fd, bool transfer_fh_ownership)"""
8613 return _lldb.SBStream_RedirectToFileDescriptor(self, *args)
8614
8616 """
8617 Clear(SBStream self)
8618
8619 If the stream is redirected to a file, forget about the file and if
8620 ownership of the file was transferred to this object, close the file.
8621 If the stream is backed by a local cache, clear this cache.
8622 """
8623 return _lldb.SBStream_Clear(self)
8624
8625 - def write(self, *args):
8626 """write(SBStream self, char const * str)"""
8627 return _lldb.SBStream_write(self, *args)
8628
8630 """flush(SBStream self)"""
8631 return _lldb.SBStream_flush(self)
8632
8633 SBStream_swigregister = _lldb.SBStream_swigregister
8634 SBStream_swigregister(SBStream)
8651 __swig_destroy__ = _lldb.delete_SBStringList
8652 __del__ = lambda self : None;
8654 """IsValid(SBStringList self) -> bool"""
8655 return _lldb.SBStringList_IsValid(self)
8656
8658 return _lldb.SBStringList___nonzero__(self)
8659 __bool__ = __nonzero__
8660
8661
8663 """AppendString(SBStringList self, char const * str)"""
8664 return _lldb.SBStringList_AppendString(self, *args)
8665
8667 """
8668 AppendList(SBStringList self, char const ** strv, int strc)
8669 AppendList(SBStringList self, SBStringList strings)
8670 """
8671 return _lldb.SBStringList_AppendList(self, *args)
8672
8674 """GetSize(SBStringList self) -> uint32_t"""
8675 return _lldb.SBStringList_GetSize(self)
8676
8678 """GetStringAtIndex(SBStringList self, size_t idx) -> char const *"""
8679 return _lldb.SBStringList_GetStringAtIndex(self, *args)
8680
8682 """Clear(SBStringList self)"""
8683 return _lldb.SBStringList_Clear(self)
8684
8686 '''Iterate over all strings in a lldb.SBStringList object.'''
8687 return lldb_iter(self, 'GetSize', 'GetStringAtIndex')
8688
8690 '''Return the number of strings in a lldb.SBStringList object.'''
8691 return self.GetSize()
8692
8693 SBStringList_swigregister = _lldb.SBStringList_swigregister
8694 SBStringList_swigregister(SBStringList)
8697 """
8698 A class representing a StructuredData event.
8699
8700 This class wraps the event type generated by StructuredData
8701 features.
8702 """
8703 __swig_setmethods__ = {}
8704 __setattr__ = lambda self, name, value: _swig_setattr(self, SBStructuredData, name, value)
8705 __swig_getmethods__ = {}
8706 __getattr__ = lambda self, name: _swig_getattr(self, SBStructuredData, name)
8707 __repr__ = _swig_repr
8709 """
8710 __init__(lldb::SBStructuredData self) -> SBStructuredData
8711 __init__(lldb::SBStructuredData self, SBStructuredData rhs) -> SBStructuredData
8712 __init__(lldb::SBStructuredData self, lldb::EventSP const & event_sp) -> SBStructuredData
8713 """
8714 this = _lldb.new_SBStructuredData(*args)
8715 try: self.this.append(this)
8716 except: self.this = this
8717 __swig_destroy__ = _lldb.delete_SBStructuredData
8718 __del__ = lambda self : None;
8720 """IsValid(SBStructuredData self) -> bool"""
8721 return _lldb.SBStructuredData_IsValid(self)
8722
8724 return _lldb.SBStructuredData___nonzero__(self)
8725 __bool__ = __nonzero__
8726
8727
8729 """Clear(SBStructuredData self)"""
8730 return _lldb.SBStructuredData_Clear(self)
8731
8733 """GetType(SBStructuredData self) -> lldb::StructuredDataType"""
8734 return _lldb.SBStructuredData_GetType(self)
8735
8737 """GetSize(SBStructuredData self) -> size_t"""
8738 return _lldb.SBStructuredData_GetSize(self)
8739
8741 """GetKeys(SBStructuredData self, SBStringList keys) -> bool"""
8742 return _lldb.SBStructuredData_GetKeys(self, *args)
8743
8745 """GetValueForKey(SBStructuredData self, char const * key) -> SBStructuredData"""
8746 return _lldb.SBStructuredData_GetValueForKey(self, *args)
8747
8749 """GetItemAtIndex(SBStructuredData self, size_t idx) -> SBStructuredData"""
8750 return _lldb.SBStructuredData_GetItemAtIndex(self, *args)
8751
8753 """
8754 GetIntegerValue(SBStructuredData self, uint64_t fail_value=0) -> uint64_t
8755 GetIntegerValue(SBStructuredData self) -> uint64_t
8756 """
8757 return _lldb.SBStructuredData_GetIntegerValue(self, fail_value)
8758
8760 """
8761 GetFloatValue(SBStructuredData self, double fail_value=0.0) -> double
8762 GetFloatValue(SBStructuredData self) -> double
8763 """
8764 return _lldb.SBStructuredData_GetFloatValue(self, fail_value)
8765
8767 """
8768 GetBooleanValue(SBStructuredData self, bool fail_value=False) -> bool
8769 GetBooleanValue(SBStructuredData self) -> bool
8770 """
8771 return _lldb.SBStructuredData_GetBooleanValue(self, fail_value)
8772
8774 """GetStringValue(SBStructuredData self, char * dst) -> size_t"""
8775 return _lldb.SBStructuredData_GetStringValue(self, *args)
8776
8778 """GetAsJSON(SBStructuredData self, SBStream stream) -> SBError"""
8779 return _lldb.SBStructuredData_GetAsJSON(self, *args)
8780
8782 """GetDescription(SBStructuredData self, SBStream stream) -> SBError"""
8783 return _lldb.SBStructuredData_GetDescription(self, *args)
8784
8786 """SetFromJSON(SBStructuredData self, SBStream stream) -> SBError"""
8787 return _lldb.SBStructuredData_SetFromJSON(self, *args)
8788
8789 SBStructuredData_swigregister = _lldb.SBStructuredData_swigregister
8790 SBStructuredData_swigregister(SBStructuredData)
8793 """
8794 Represents the symbol possibly associated with a stack frame.
8795 SBModule contains SBSymbol(s). SBSymbol can also be retrieved from SBFrame.
8796
8797 See also SBModule and SBFrame.
8798 """
8799 __swig_setmethods__ = {}
8800 __setattr__ = lambda self, name, value: _swig_setattr(self, SBSymbol, name, value)
8801 __swig_getmethods__ = {}
8802 __getattr__ = lambda self, name: _swig_getattr(self, SBSymbol, name)
8803 __repr__ = _swig_repr
8804 __swig_destroy__ = _lldb.delete_SBSymbol
8805 __del__ = lambda self : None;
8807 """
8808 __init__(lldb::SBSymbol self) -> SBSymbol
8809 __init__(lldb::SBSymbol self, SBSymbol rhs) -> SBSymbol
8810 """
8811 this = _lldb.new_SBSymbol(*args)
8812 try: self.this.append(this)
8813 except: self.this = this
8815 """IsValid(SBSymbol self) -> bool"""
8816 return _lldb.SBSymbol_IsValid(self)
8817
8819 return _lldb.SBSymbol___nonzero__(self)
8820 __bool__ = __nonzero__
8821
8822
8824 """GetName(SBSymbol self) -> char const *"""
8825 return _lldb.SBSymbol_GetName(self)
8826
8828 """GetDisplayName(SBSymbol self) -> char const *"""
8829 return _lldb.SBSymbol_GetDisplayName(self)
8830
8832 """GetMangledName(SBSymbol self) -> char const *"""
8833 return _lldb.SBSymbol_GetMangledName(self)
8834
8836 """
8837 GetInstructions(SBSymbol self, SBTarget target) -> SBInstructionList
8838 GetInstructions(SBSymbol self, SBTarget target, char const * flavor_string) -> SBInstructionList
8839 """
8840 return _lldb.SBSymbol_GetInstructions(self, *args)
8841
8843 """GetStartAddress(SBSymbol self) -> SBAddress"""
8844 return _lldb.SBSymbol_GetStartAddress(self)
8845
8847 """GetEndAddress(SBSymbol self) -> SBAddress"""
8848 return _lldb.SBSymbol_GetEndAddress(self)
8849
8851 """GetPrologueByteSize(SBSymbol self) -> uint32_t"""
8852 return _lldb.SBSymbol_GetPrologueByteSize(self)
8853
8855 """GetType(SBSymbol self) -> lldb::SymbolType"""
8856 return _lldb.SBSymbol_GetType(self)
8857
8859 """GetDescription(SBSymbol self, SBStream description) -> bool"""
8860 return _lldb.SBSymbol_GetDescription(self, *args)
8861
8863 """IsExternal(SBSymbol self) -> bool"""
8864 return _lldb.SBSymbol_IsExternal(self)
8865
8867 """IsSynthetic(SBSymbol self) -> bool"""
8868 return _lldb.SBSymbol_IsSynthetic(self)
8869
8871 """__eq__(SBSymbol self, SBSymbol rhs) -> bool"""
8872 return _lldb.SBSymbol___eq__(self, *args)
8873
8875 """__ne__(SBSymbol self, SBSymbol rhs) -> bool"""
8876 return _lldb.SBSymbol___ne__(self, *args)
8877
8880
8881 __swig_getmethods__["name"] = GetName
8882 if _newclass: name = property(GetName, None, doc='''A read only property that returns the name for this symbol as a string.''')
8883
8884 __swig_getmethods__["mangled"] = GetMangledName
8885 if _newclass: mangled = property(GetMangledName, None, doc='''A read only property that returns the mangled (linkage) name for this symbol as a string.''')
8886
8887 __swig_getmethods__["type"] = GetType
8888 if _newclass: type = property(GetType, None, doc='''A read only property that returns an lldb enumeration value (see enumerations that start with "lldb.eSymbolType") that represents the type of this symbol.''')
8889
8890 __swig_getmethods__["addr"] = GetStartAddress
8891 if _newclass: addr = property(GetStartAddress, None, doc='''A read only property that returns an lldb object that represents the start address (lldb.SBAddress) for this symbol.''')
8892
8893 __swig_getmethods__["end_addr"] = GetEndAddress
8894 if _newclass: end_addr = property(GetEndAddress, None, doc='''A read only property that returns an lldb object that represents the end address (lldb.SBAddress) for this symbol.''')
8895
8896 __swig_getmethods__["prologue_size"] = GetPrologueByteSize
8897 if _newclass: prologue_size = property(GetPrologueByteSize, None, doc='''A read only property that returns the size in bytes of the prologue instructions as an unsigned integer.''')
8898
8899 __swig_getmethods__["instructions"] = get_instructions_from_current_target
8900 if _newclass: instructions = property(get_instructions_from_current_target, None, doc='''A read only property that returns an lldb object that represents the instructions (lldb.SBInstructionList) for this symbol.''')
8901
8902 __swig_getmethods__["external"] = IsExternal
8903 if _newclass: external = property(IsExternal, None, doc='''A read only property that returns a boolean value that indicates if this symbol is externally visiable (exported) from the module that contains it.''')
8904
8905 __swig_getmethods__["synthetic"] = IsSynthetic
8906 if _newclass: synthetic = property(IsSynthetic, None, doc='''A read only property that returns a boolean value that indicates if this symbol was synthetically created from information in module that contains it.''')
8907
8908
8909
8911 """__str__(SBSymbol self) -> PyObject *"""
8912 return _lldb.SBSymbol___str__(self)
8913
8915 if not isinstance(rhs, type(self)):
8916 return False
8917
8918 return getattr(_lldb,self.__class__.__name__+"___eq__")(self, rhs)
8919
8921 if not isinstance(rhs, type(self)):
8922 return True
8923
8924 return getattr(_lldb,self.__class__.__name__+"___ne__")(self, rhs)
8925
8926 SBSymbol_swigregister = _lldb.SBSymbol_swigregister
8927 SBSymbol_swigregister(SBSymbol)
8928
8929 -class SBSymbolContext(_object):
8930 """
8931 A context object that provides access to core debugger entities.
8932
8933 Many debugger functions require a context when doing lookups. This class
8934 provides a common structure that can be used as the result of a query that
8935 can contain a single result.
8936
8937 For example,
8938
8939 exe = os.path.join(os.getcwd(), 'a.out')
8940
8941 # Create a target for the debugger.
8942 target = self.dbg.CreateTarget(exe)
8943
8944 # Now create a breakpoint on main.c by name 'c'.
8945 breakpoint = target.BreakpointCreateByName('c', 'a.out')
8946
8947 # Now launch the process, and do not stop at entry point.
8948 process = target.LaunchSimple(None, None, os.getcwd())
8949
8950 # The inferior should stop on 'c'.
8951 from lldbutil import get_stopped_thread
8952 thread = get_stopped_thread(process, lldb.eStopReasonBreakpoint)
8953 frame0 = thread.GetFrameAtIndex(0)
8954
8955 # Now get the SBSymbolContext from this frame. We want everything. :-)
8956 context = frame0.GetSymbolContext(lldb.eSymbolContextEverything)
8957
8958 # Get the module.
8959 module = context.GetModule()
8960 ...
8961
8962 # And the compile unit associated with the frame.
8963 compileUnit = context.GetCompileUnit()
8964 ...
8965
8966 """
8967 __swig_setmethods__ = {}
8968 __setattr__ = lambda self, name, value: _swig_setattr(self, SBSymbolContext, name, value)
8969 __swig_getmethods__ = {}
8970 __getattr__ = lambda self, name: _swig_getattr(self, SBSymbolContext, name)
8971 __repr__ = _swig_repr
8972 - def __init__(self, *args):
8973 """
8974 __init__(lldb::SBSymbolContext self) -> SBSymbolContext
8975 __init__(lldb::SBSymbolContext self, SBSymbolContext rhs) -> SBSymbolContext
8976 """
8977 this = _lldb.new_SBSymbolContext(*args)
8978 try: self.this.append(this)
8979 except: self.this = this
8980 __swig_destroy__ = _lldb.delete_SBSymbolContext
8981 __del__ = lambda self : None;
8982 - def IsValid(self):
8983 """IsValid(SBSymbolContext self) -> bool"""
8984 return _lldb.SBSymbolContext_IsValid(self)
8985
8986 - def __nonzero__(self):
8987 return _lldb.SBSymbolContext___nonzero__(self)
8988 __bool__ = __nonzero__
8989
8990
8991 - def GetModule(self):
8992 """GetModule(SBSymbolContext self) -> SBModule"""
8993 return _lldb.SBSymbolContext_GetModule(self)
8994
8995 - def GetCompileUnit(self):
8996 """GetCompileUnit(SBSymbolContext self) -> SBCompileUnit"""
8997 return _lldb.SBSymbolContext_GetCompileUnit(self)
8998
8999 - def GetFunction(self):
9000 """GetFunction(SBSymbolContext self) -> SBFunction"""
9001 return _lldb.SBSymbolContext_GetFunction(self)
9002
9003 - def GetBlock(self):
9004 """GetBlock(SBSymbolContext self) -> SBBlock"""
9005 return _lldb.SBSymbolContext_GetBlock(self)
9006
9007 - def GetLineEntry(self):
9008 """GetLineEntry(SBSymbolContext self) -> SBLineEntry"""
9009 return _lldb.SBSymbolContext_GetLineEntry(self)
9010
9011 - def GetSymbol(self):
9012 """GetSymbol(SBSymbolContext self) -> SBSymbol"""
9013 return _lldb.SBSymbolContext_GetSymbol(self)
9014
9015 - def SetModule(self, *args):
9016 """SetModule(SBSymbolContext self, SBModule module)"""
9017 return _lldb.SBSymbolContext_SetModule(self, *args)
9018
9019 - def SetCompileUnit(self, *args):
9020 """SetCompileUnit(SBSymbolContext self, SBCompileUnit compile_unit)"""
9021 return _lldb.SBSymbolContext_SetCompileUnit(self, *args)
9022
9023 - def SetFunction(self, *args):
9024 """SetFunction(SBSymbolContext self, SBFunction function)"""
9025 return _lldb.SBSymbolContext_SetFunction(self, *args)
9026
9027 - def SetBlock(self, *args):
9028 """SetBlock(SBSymbolContext self, SBBlock block)"""
9029 return _lldb.SBSymbolContext_SetBlock(self, *args)
9030
9031 - def SetLineEntry(self, *args):
9032 """SetLineEntry(SBSymbolContext self, SBLineEntry line_entry)"""
9033 return _lldb.SBSymbolContext_SetLineEntry(self, *args)
9034
9035 - def SetSymbol(self, *args):
9036 """SetSymbol(SBSymbolContext self, SBSymbol symbol)"""
9037 return _lldb.SBSymbolContext_SetSymbol(self, *args)
9038
9039 - def GetParentOfInlinedScope(self, *args):
9040 """GetParentOfInlinedScope(SBSymbolContext self, SBAddress curr_frame_pc, SBAddress parent_frame_addr) -> SBSymbolContext"""
9041 return _lldb.SBSymbolContext_GetParentOfInlinedScope(self, *args)
9042
9043 - def GetDescription(self, *args):
9044 """GetDescription(SBSymbolContext self, SBStream description) -> bool"""
9045 return _lldb.SBSymbolContext_GetDescription(self, *args)
9046
9047 __swig_getmethods__["module"] = GetModule
9048 __swig_setmethods__["module"] = SetModule
9049 if _newclass: module = property(GetModule, SetModule, doc='''A read/write property that allows the getting/setting of the module (lldb.SBModule) in this symbol context.''')
9050
9051 __swig_getmethods__["compile_unit"] = GetCompileUnit
9052 __swig_setmethods__["compile_unit"] = SetCompileUnit
9053 if _newclass: compile_unit = property(GetCompileUnit, SetCompileUnit, doc='''A read/write property that allows the getting/setting of the compile unit (lldb.SBCompileUnit) in this symbol context.''')
9054
9055 __swig_getmethods__["function"] = GetFunction
9056 __swig_setmethods__["function"] = SetFunction
9057 if _newclass: function = property(GetFunction, SetFunction, doc='''A read/write property that allows the getting/setting of the function (lldb.SBFunction) in this symbol context.''')
9058
9059 __swig_getmethods__["block"] = GetBlock
9060 __swig_setmethods__["block"] = SetBlock
9061 if _newclass: block = property(GetBlock, SetBlock, doc='''A read/write property that allows the getting/setting of the block (lldb.SBBlock) in this symbol context.''')
9062
9063 __swig_getmethods__["symbol"] = GetSymbol
9064 __swig_setmethods__["symbol"] = SetSymbol
9065 if _newclass: symbol = property(GetSymbol, SetSymbol, doc='''A read/write property that allows the getting/setting of the symbol (lldb.SBSymbol) in this symbol context.''')
9066
9067 __swig_getmethods__["line_entry"] = GetLineEntry
9068 __swig_setmethods__["line_entry"] = SetLineEntry
9069 if _newclass: line_entry = property(GetLineEntry, SetLineEntry, doc='''A read/write property that allows the getting/setting of the line entry (lldb.SBLineEntry) in this symbol context.''')
9070
9071 - def __str__(self):
9072 """__str__(SBSymbolContext self) -> PyObject *"""
9073 return _lldb.SBSymbolContext___str__(self)
9074
9075 SBSymbolContext_swigregister = _lldb.SBSymbolContext_swigregister
9076 SBSymbolContext_swigregister(SBSymbolContext)
9077
9078 -class SBSymbolContextList(_object):
9079 """
9080 Represents a list of symbol context object. See also SBSymbolContext.
9081
9082 For example (from test/python_api/target/TestTargetAPI.py),
9083
9084 def find_functions(self, exe_name):
9085 '''Exercise SBTaget.FindFunctions() API.'''
9086 exe = os.path.join(os.getcwd(), exe_name)
9087
9088 # Create a target by the debugger.
9089 target = self.dbg.CreateTarget(exe)
9090 self.assertTrue(target, VALID_TARGET)
9091
9092 list = lldb.SBSymbolContextList()
9093 num = target.FindFunctions('c', lldb.eFunctionNameTypeAuto, False, list)
9094 self.assertTrue(num == 1 and list.GetSize() == 1)
9095
9096 for sc in list:
9097 self.assertTrue(sc.GetModule().GetFileSpec().GetFilename() == exe_name)
9098 self.assertTrue(sc.GetSymbol().GetName() == 'c')
9099 """
9100 __swig_setmethods__ = {}
9101 __setattr__ = lambda self, name, value: _swig_setattr(self, SBSymbolContextList, name, value)
9102 __swig_getmethods__ = {}
9103 __getattr__ = lambda self, name: _swig_getattr(self, SBSymbolContextList, name)
9104 __repr__ = _swig_repr
9105 - def __init__(self, *args):
9106 """
9107 __init__(lldb::SBSymbolContextList self) -> SBSymbolContextList
9108 __init__(lldb::SBSymbolContextList self, SBSymbolContextList rhs) -> SBSymbolContextList
9109 """
9110 this = _lldb.new_SBSymbolContextList(*args)
9111 try: self.this.append(this)
9112 except: self.this = this
9113 __swig_destroy__ = _lldb.delete_SBSymbolContextList
9114 __del__ = lambda self : None;
9115 - def IsValid(self):
9116 """IsValid(SBSymbolContextList self) -> bool"""
9117 return _lldb.SBSymbolContextList_IsValid(self)
9118
9119 - def __nonzero__(self):
9120 return _lldb.SBSymbolContextList___nonzero__(self)
9121 __bool__ = __nonzero__
9122
9123
9124 - def GetSize(self):
9125 """GetSize(SBSymbolContextList self) -> uint32_t"""
9126 return _lldb.SBSymbolContextList_GetSize(self)
9127
9128 - def GetContextAtIndex(self, *args):
9129 """GetContextAtIndex(SBSymbolContextList self, uint32_t idx) -> SBSymbolContext"""
9130 return _lldb.SBSymbolContextList_GetContextAtIndex(self, *args)
9131
9132 - def Append(self, *args):
9133 """
9134 Append(SBSymbolContextList self, SBSymbolContext sc)
9135 Append(SBSymbolContextList self, SBSymbolContextList sc_list)
9136 """
9137 return _lldb.SBSymbolContextList_Append(self, *args)
9138
9139 - def GetDescription(self, *args):
9140 """GetDescription(SBSymbolContextList self, SBStream description) -> bool"""
9141 return _lldb.SBSymbolContextList_GetDescription(self, *args)
9142
9144 """Clear(SBSymbolContextList self)"""
9145 return _lldb.SBSymbolContextList_Clear(self)
9146
9147 - def __iter__(self):
9148 '''Iterate over all symbol contexts in a lldb.SBSymbolContextList
9149 object.'''
9150 return lldb_iter(self, 'GetSize', 'GetContextAtIndex')
9151
9152 - def __len__(self):
9153 return int(self.GetSize())
9154
9155 - def __getitem__(self, key):
9156 count = len(self)
9157 if type(key) is int:
9158 if key < count:
9159 return self.GetContextAtIndex(key)
9160 else:
9161 raise IndexError
9162 raise TypeError
9163
9164 - def get_module_array(self):
9165 a = []
9166 for i in range(len(self)):
9167 obj = self.GetContextAtIndex(i).module
9168 if obj:
9169 a.append(obj)
9170 return a
9171
9173 a = []
9174 for i in range(len(self)):
9175 obj = self.GetContextAtIndex(i).compile_unit
9176 if obj:
9177 a.append(obj)
9178 return a
9180 a = []
9181 for i in range(len(self)):
9182 obj = self.GetContextAtIndex(i).function
9183 if obj:
9184 a.append(obj)
9185 return a
9186 - def get_block_array(self):
9187 a = []
9188 for i in range(len(self)):
9189 obj = self.GetContextAtIndex(i).block
9190 if obj:
9191 a.append(obj)
9192 return a
9193 - def get_symbol_array(self):
9194 a = []
9195 for i in range(len(self)):
9196 obj = self.GetContextAtIndex(i).symbol
9197 if obj:
9198 a.append(obj)
9199 return a
9201 a = []
9202 for i in range(len(self)):
9203 obj = self.GetContextAtIndex(i).line_entry
9204 if obj:
9205 a.append(obj)
9206 return a
9207 __swig_getmethods__["modules"] = get_module_array
9208 if _newclass: modules = property(get_module_array, None, doc='''Returns a list() of lldb.SBModule objects, one for each module in each SBSymbolContext object in this list.''')
9209
9210 __swig_getmethods__["compile_units"] = get_compile_unit_array
9211 if _newclass: compile_units = property(get_compile_unit_array, None, doc='''Returns a list() of lldb.SBCompileUnit objects, one for each compile unit in each SBSymbolContext object in this list.''')
9212
9213 __swig_getmethods__["functions"] = get_function_array
9214 if _newclass: functions = property(get_function_array, None, doc='''Returns a list() of lldb.SBFunction objects, one for each function in each SBSymbolContext object in this list.''')
9215
9216 __swig_getmethods__["blocks"] = get_block_array
9217 if _newclass: blocks = property(get_block_array, None, doc='''Returns a list() of lldb.SBBlock objects, one for each block in each SBSymbolContext object in this list.''')
9218
9219 __swig_getmethods__["line_entries"] = get_line_entry_array
9220 if _newclass: line_entries = property(get_line_entry_array, None, doc='''Returns a list() of lldb.SBLineEntry objects, one for each line entry in each SBSymbolContext object in this list.''')
9221
9222 __swig_getmethods__["symbols"] = get_symbol_array
9223 if _newclass: symbols = property(get_symbol_array, None, doc='''Returns a list() of lldb.SBSymbol objects, one for each symbol in each SBSymbolContext object in this list.''')
9224
9225 - def __str__(self):
9226 """__str__(SBSymbolContextList self) -> PyObject *"""
9227 return _lldb.SBSymbolContextList___str__(self)
9228
9229 SBSymbolContextList_swigregister = _lldb.SBSymbolContextList_swigregister
9230 SBSymbolContextList_swigregister(SBSymbolContextList)
9233 """
9234 Represents the target program running under the debugger.
9235
9236 SBTarget supports module, breakpoint, and watchpoint iterations. For example,
9237
9238 for m in target.module_iter():
9239 print m
9240
9241 produces:
9242
9243 (x86_64) /Volumes/data/lldb/svn/trunk/test/python_api/lldbutil/iter/a.out
9244 (x86_64) /usr/lib/dyld
9245 (x86_64) /usr/lib/libstdc++.6.dylib
9246 (x86_64) /usr/lib/libSystem.B.dylib
9247 (x86_64) /usr/lib/system/libmathCommon.A.dylib
9248 (x86_64) /usr/lib/libSystem.B.dylib(__commpage)
9249
9250 and,
9251
9252 for b in target.breakpoint_iter():
9253 print b
9254
9255 produces:
9256
9257 SBBreakpoint: id = 1, file ='main.cpp', line = 66, locations = 1
9258 SBBreakpoint: id = 2, file ='main.cpp', line = 85, locations = 1
9259
9260 and,
9261
9262 for wp_loc in target.watchpoint_iter():
9263 print wp_loc
9264
9265 produces:
9266
9267 Watchpoint 1: addr = 0x1034ca048 size = 4 state = enabled type = rw
9268 declare @ '/Volumes/data/lldb/svn/trunk/test/python_api/watchpoint/main.c:12'
9269 hw_index = 0 hit_count = 2 ignore_count = 0
9270 """
9271 __swig_setmethods__ = {}
9272 __setattr__ = lambda self, name, value: _swig_setattr(self, SBTarget, name, value)
9273 __swig_getmethods__ = {}
9274 __getattr__ = lambda self, name: _swig_getattr(self, SBTarget, name)
9275 __repr__ = _swig_repr
9276 eBroadcastBitBreakpointChanged = _lldb.SBTarget_eBroadcastBitBreakpointChanged
9277 eBroadcastBitModulesLoaded = _lldb.SBTarget_eBroadcastBitModulesLoaded
9278 eBroadcastBitModulesUnloaded = _lldb.SBTarget_eBroadcastBitModulesUnloaded
9279 eBroadcastBitWatchpointChanged = _lldb.SBTarget_eBroadcastBitWatchpointChanged
9280 eBroadcastBitSymbolsLoaded = _lldb.SBTarget_eBroadcastBitSymbolsLoaded
9282 """
9283 __init__(lldb::SBTarget self) -> SBTarget
9284 __init__(lldb::SBTarget self, SBTarget rhs) -> SBTarget
9285 """
9286 this = _lldb.new_SBTarget(*args)
9287 try: self.this.append(this)
9288 except: self.this = this
9289 __swig_destroy__ = _lldb.delete_SBTarget
9290 __del__ = lambda self : None;
9294
9295 if _newclass:GetBroadcasterClassName = staticmethod(GetBroadcasterClassName)
9296 __swig_getmethods__["GetBroadcasterClassName"] = lambda x: GetBroadcasterClassName
9298 """IsValid(SBTarget self) -> bool"""
9299 return _lldb.SBTarget_IsValid(self)
9300
9302 return _lldb.SBTarget___nonzero__(self)
9303 __bool__ = __nonzero__
9304
9305
9309
9310 if _newclass:EventIsTargetEvent = staticmethod(EventIsTargetEvent)
9311 __swig_getmethods__["EventIsTargetEvent"] = lambda x: EventIsTargetEvent
9315
9316 if _newclass:GetTargetFromEvent = staticmethod(GetTargetFromEvent)
9317 __swig_getmethods__["GetTargetFromEvent"] = lambda x: GetTargetFromEvent
9321
9322 if _newclass:GetNumModulesFromEvent = staticmethod(GetNumModulesFromEvent)
9323 __swig_getmethods__["GetNumModulesFromEvent"] = lambda x: GetNumModulesFromEvent
9327
9328 if _newclass:GetModuleAtIndexFromEvent = staticmethod(GetModuleAtIndexFromEvent)
9329 __swig_getmethods__["GetModuleAtIndexFromEvent"] = lambda x: GetModuleAtIndexFromEvent
9331 """GetProcess(SBTarget self) -> SBProcess"""
9332 return _lldb.SBTarget_GetProcess(self)
9333
9347
9349 """
9350 Install(SBTarget self) -> SBError
9351
9352 Install any binaries that need to be installed.
9353
9354 This function does nothing when debugging on the host system.
9355 When connected to remote platforms, the target's main executable
9356 and any modules that have their install path set will be
9357 installed on the remote platform. If the main executable doesn't
9358 have an install location set, it will be installed in the remote
9359 platform's working directory.
9360
9361 @return
9362 An error describing anything that went wrong during
9363 installation.
9364 """
9365 return _lldb.SBTarget_Install(self)
9366
9368 """
9369 LaunchSimple(SBTarget self, char const ** argv, char const ** envp, char const * working_directory) -> SBProcess
9370
9371 Launch a new process with sensible defaults.
9372
9373 @param[in] argv
9374 The argument array.
9375
9376 @param[in] envp
9377 The environment array.
9378
9379 @param[in] working_directory
9380 The working directory to have the child process run in
9381
9382 Default: listener
9383 Set to the target's debugger (SBTarget::GetDebugger())
9384
9385 Default: launch_flags
9386 Empty launch flags
9387
9388 Default: stdin_path
9389 Default: stdout_path
9390 Default: stderr_path
9391 A pseudo terminal will be used.
9392
9393 @return
9394 A process object for the newly created process.
9395
9396 For example,
9397
9398 process = target.LaunchSimple(['X', 'Y', 'Z'], None, os.getcwd())
9399
9400 launches a new process by passing 'X', 'Y', 'Z' as the args to the
9401 executable.
9402 """
9403 return _lldb.SBTarget_LaunchSimple(self, *args)
9404
9406 """
9407 Launch(SBTarget self, SBListener listener, char const ** argv, char const ** envp, char const * stdin_path,
9408 char const * stdout_path, char const * stderr_path, char const * working_directory,
9409 uint32_t launch_flags, bool stop_at_entry, SBError error) -> SBProcess
9410 Launch(SBTarget self, SBLaunchInfo launch_info, SBError error) -> SBProcess
9411
9412 Launch a new process.
9413
9414 Launch a new process by spawning a new process using the
9415 target object's executable module's file as the file to launch.
9416 Arguments are given in argv, and the environment variables
9417 are in envp. Standard input and output files can be
9418 optionally re-directed to stdin_path, stdout_path, and
9419 stderr_path.
9420
9421 @param[in] listener
9422 An optional listener that will receive all process events.
9423 If listener is valid then listener will listen to all
9424 process events. If not valid, then this target's debugger
9425 (SBTarget::GetDebugger()) will listen to all process events.
9426
9427 @param[in] argv
9428 The argument array.
9429
9430 @param[in] envp
9431 The environment array.
9432
9433 @param[in] launch_flags
9434 Flags to modify the launch (@see lldb::LaunchFlags)
9435
9436 @param[in] stdin_path
9437 The path to use when re-directing the STDIN of the new
9438 process. If all stdXX_path arguments are NULL, a pseudo
9439 terminal will be used.
9440
9441 @param[in] stdout_path
9442 The path to use when re-directing the STDOUT of the new
9443 process. If all stdXX_path arguments are NULL, a pseudo
9444 terminal will be used.
9445
9446 @param[in] stderr_path
9447 The path to use when re-directing the STDERR of the new
9448 process. If all stdXX_path arguments are NULL, a pseudo
9449 terminal will be used.
9450
9451 @param[in] working_directory
9452 The working directory to have the child process run in
9453
9454 @param[in] launch_flags
9455 Some launch options specified by logical OR'ing
9456 lldb::LaunchFlags enumeration values together.
9457
9458 @param[in] stop_at_entry
9459 If false do not stop the inferior at the entry point.
9460
9461 @param[out]
9462 An error object. Contains the reason if there is some failure.
9463
9464 @return
9465 A process object for the newly created process.
9466
9467 For example,
9468
9469 process = target.Launch(self.dbg.GetListener(), None, None,
9470 None, '/tmp/stdout.txt', None,
9471 None, 0, False, error)
9472
9473 launches a new process by passing nothing for both the args and the envs
9474 and redirect the standard output of the inferior to the /tmp/stdout.txt
9475 file. It does not specify a working directory so that the debug server
9476 will use its idea of what the current working directory is for the
9477 inferior. Also, we ask the debugger not to stop the inferior at the
9478 entry point. If no breakpoint is specified for the inferior, it should
9479 run to completion if no user interaction is required.
9480 """
9481 return _lldb.SBTarget_Launch(self, *args)
9482
9484 """
9485 LoadCore(SBTarget self, char const * core_file) -> SBProcess
9486 LoadCore(SBTarget self, char const * core_file, SBError error) -> SBProcess
9487
9488 Load a core file
9489
9490 @param[in] core_file
9491 File path of the core dump.
9492
9493 @param[out] error
9494 An error explaining what went wrong if the operation fails.
9495 (Optional)
9496
9497 @return
9498 A process object for the newly created core file.
9499
9500 For example,
9501
9502 process = target.LoadCore('./a.out.core')
9503
9504 loads a new core file and returns the process object.
9505 """
9506 return _lldb.SBTarget_LoadCore(self, *args)
9507
9509 """Attach(SBTarget self, SBAttachInfo attach_info, SBError error) -> SBProcess"""
9510 return _lldb.SBTarget_Attach(self, *args)
9511
9513 """
9514 AttachToProcessWithID(SBTarget self, SBListener listener, lldb::pid_t pid, SBError error) -> SBProcess
9515
9516 Attach to process with pid.
9517
9518 @param[in] listener
9519 An optional listener that will receive all process events.
9520 If listener is valid then listener will listen to all
9521 process events. If not valid, then this target's debugger
9522 (SBTarget::GetDebugger()) will listen to all process events.
9523
9524 @param[in] pid
9525 The process ID to attach to.
9526
9527 @param[out]
9528 An error explaining what went wrong if attach fails.
9529
9530 @return
9531 A process object for the attached process.
9532 """
9533 return _lldb.SBTarget_AttachToProcessWithID(self, *args)
9534
9536 """
9537 AttachToProcessWithName(SBTarget self, SBListener listener, char const * name, bool wait_for, SBError error) -> SBProcess
9538
9539 Attach to process with name.
9540
9541 @param[in] listener
9542 An optional listener that will receive all process events.
9543 If listener is valid then listener will listen to all
9544 process events. If not valid, then this target's debugger
9545 (SBTarget::GetDebugger()) will listen to all process events.
9546
9547 @param[in] name
9548 Basename of process to attach to.
9549
9550 @param[in] wait_for
9551 If true wait for a new instance of 'name' to be launched.
9552
9553 @param[out]
9554 An error explaining what went wrong if attach fails.
9555
9556 @return
9557 A process object for the attached process.
9558 """
9559 return _lldb.SBTarget_AttachToProcessWithName(self, *args)
9560
9562 """
9563 ConnectRemote(SBTarget self, SBListener listener, char const * url, char const * plugin_name, SBError error) -> SBProcess
9564
9565 Connect to a remote debug server with url.
9566
9567 @param[in] listener
9568 An optional listener that will receive all process events.
9569 If listener is valid then listener will listen to all
9570 process events. If not valid, then this target's debugger
9571 (SBTarget::GetDebugger()) will listen to all process events.
9572
9573 @param[in] url
9574 The url to connect to, e.g., 'connect://localhost:12345'.
9575
9576 @param[in] plugin_name
9577 The plugin name to be used; can be NULL.
9578
9579 @param[out]
9580 An error explaining what went wrong if the connect fails.
9581
9582 @return
9583 A process object for the connected process.
9584 """
9585 return _lldb.SBTarget_ConnectRemote(self, *args)
9586
9588 """GetExecutable(SBTarget self) -> SBFileSpec"""
9589 return _lldb.SBTarget_GetExecutable(self)
9590
9592 """
9593 AppendImageSearchPath(SBTarget self, char const * _from, char const * to, SBError error)
9594
9595 Append the path mapping (from -> to) to the target's paths mapping list.
9596 """
9597 return _lldb.SBTarget_AppendImageSearchPath(self, *args)
9598
9600 """
9601 AddModule(SBTarget self, SBModule module) -> bool
9602 AddModule(SBTarget self, char const * path, char const * triple, char const * uuid) -> SBModule
9603 AddModule(SBTarget self, char const * path, char const * triple, char const * uuid_cstr, char const * symfile) -> SBModule
9604 AddModule(SBTarget self, SBModuleSpec module_spec) -> SBModule
9605 """
9606 return _lldb.SBTarget_AddModule(self, *args)
9607
9609 """GetNumModules(SBTarget self) -> uint32_t"""
9610 return _lldb.SBTarget_GetNumModules(self)
9611
9613 """GetModuleAtIndex(SBTarget self, uint32_t idx) -> SBModule"""
9614 return _lldb.SBTarget_GetModuleAtIndex(self, *args)
9615
9617 """RemoveModule(SBTarget self, SBModule module) -> bool"""
9618 return _lldb.SBTarget_RemoveModule(self, *args)
9619
9621 """GetDebugger(SBTarget self) -> SBDebugger"""
9622 return _lldb.SBTarget_GetDebugger(self)
9623
9625 """FindModule(SBTarget self, SBFileSpec file_spec) -> SBModule"""
9626 return _lldb.SBTarget_FindModule(self, *args)
9627
9629 """
9630 FindCompileUnits(SBTarget self, SBFileSpec sb_file_spec) -> SBSymbolContextList
9631
9632 Find compile units related to *this target and passed source
9633 file.
9634
9635 @param[in] sb_file_spec
9636 A lldb::SBFileSpec object that contains source file
9637 specification.
9638
9639 @return
9640 A lldb::SBSymbolContextList that gets filled in with all of
9641 the symbol contexts for all the matches.
9642 """
9643 return _lldb.SBTarget_FindCompileUnits(self, *args)
9644
9646 """GetByteOrder(SBTarget self) -> lldb::ByteOrder"""
9647 return _lldb.SBTarget_GetByteOrder(self)
9648
9650 """GetAddressByteSize(SBTarget self) -> uint32_t"""
9651 return _lldb.SBTarget_GetAddressByteSize(self)
9652
9654 """GetTriple(SBTarget self) -> char const *"""
9655 return _lldb.SBTarget_GetTriple(self)
9656
9658 """
9659 GetDataByteSize(SBTarget self) -> uint32_t
9660
9661 Architecture data byte width accessor
9662
9663 @return
9664 The size in 8-bit (host) bytes of a minimum addressable
9665 unit from the Architecture's data bus
9666 """
9667 return _lldb.SBTarget_GetDataByteSize(self)
9668
9670 """
9671 GetCodeByteSize(SBTarget self) -> uint32_t
9672
9673 Architecture code byte width accessor
9674
9675 @return
9676 The size in 8-bit (host) bytes of a minimum addressable
9677 unit from the Architecture's code bus
9678 """
9679 return _lldb.SBTarget_GetCodeByteSize(self)
9680
9682 """SetSectionLoadAddress(SBTarget self, SBSection section, lldb::addr_t section_base_addr) -> SBError"""
9683 return _lldb.SBTarget_SetSectionLoadAddress(self, *args)
9684
9686 """ClearSectionLoadAddress(SBTarget self, SBSection section) -> SBError"""
9687 return _lldb.SBTarget_ClearSectionLoadAddress(self, *args)
9688
9690 """SetModuleLoadAddress(SBTarget self, SBModule module, int64_t sections_offset) -> SBError"""
9691 return _lldb.SBTarget_SetModuleLoadAddress(self, *args)
9692
9694 """ClearModuleLoadAddress(SBTarget self, SBModule module) -> SBError"""
9695 return _lldb.SBTarget_ClearModuleLoadAddress(self, *args)
9696
9698 """
9699 FindFunctions(SBTarget self, char const * name, uint32_t name_type_mask=eFunctionNameTypeAny) -> SBSymbolContextList
9700 FindFunctions(SBTarget self, char const * name) -> SBSymbolContextList
9701
9702 Find functions by name.
9703
9704 @param[in] name
9705 The name of the function we are looking for.
9706
9707 @param[in] name_type_mask
9708 A logical OR of one or more FunctionNameType enum bits that
9709 indicate what kind of names should be used when doing the
9710 lookup. Bits include fully qualified names, base names,
9711 C++ methods, or ObjC selectors.
9712 See FunctionNameType for more details.
9713
9714 @return
9715 A lldb::SBSymbolContextList that gets filled in with all of
9716 the symbol contexts for all the matches.
9717 """
9718 return _lldb.SBTarget_FindFunctions(self, *args)
9719
9721 """FindFirstType(SBTarget self, char const * type) -> SBType"""
9722 return _lldb.SBTarget_FindFirstType(self, *args)
9723
9725 """FindTypes(SBTarget self, char const * type) -> SBTypeList"""
9726 return _lldb.SBTarget_FindTypes(self, *args)
9727
9729 """GetBasicType(SBTarget self, lldb::BasicType type) -> SBType"""
9730 return _lldb.SBTarget_GetBasicType(self, *args)
9731
9733 """GetSourceManager(SBTarget self) -> SBSourceManager"""
9734 return _lldb.SBTarget_GetSourceManager(self)
9735
9737 """
9738 FindFirstGlobalVariable(SBTarget self, char const * name) -> SBValue
9739
9740 Find the first global (or static) variable by name.
9741
9742 @param[in] name
9743 The name of the global or static variable we are looking
9744 for.
9745
9746 @return
9747 An SBValue that gets filled in with the found variable (if any).
9748 """
9749 return _lldb.SBTarget_FindFirstGlobalVariable(self, *args)
9750
9752 """
9753 FindGlobalVariables(SBTarget self, char const * name, uint32_t max_matches) -> SBValueList
9754 FindGlobalVariables(SBTarget self, char const * name, uint32_t max_matches, lldb::MatchType matchtype) -> SBValueList
9755
9756 Find global and static variables by name.
9757
9758 @param[in] name
9759 The name of the global or static variable we are looking
9760 for.
9761
9762 @param[in] max_matches
9763 Allow the number of matches to be limited to max_matches.
9764
9765 @return
9766 A list of matched variables in an SBValueList.
9767 """
9768 return _lldb.SBTarget_FindGlobalVariables(self, *args)
9769
9771 """FindGlobalFunctions(SBTarget self, char const * name, uint32_t max_matches, lldb::MatchType matchtype) -> SBSymbolContextList"""
9772 return _lldb.SBTarget_FindGlobalFunctions(self, *args)
9773
9775 """Clear(SBTarget self)"""
9776 return _lldb.SBTarget_Clear(self)
9777
9779 """
9780 ResolveFileAddress(SBTarget self, lldb::addr_t file_addr) -> SBAddress
9781
9782 Resolve a current file address into a section offset address.
9783
9784 @param[in] file_addr
9785
9786 @return
9787 An SBAddress which will be valid if...
9788 """
9789 return _lldb.SBTarget_ResolveFileAddress(self, *args)
9790
9792 """ResolveLoadAddress(SBTarget self, lldb::addr_t vm_addr) -> SBAddress"""
9793 return _lldb.SBTarget_ResolveLoadAddress(self, *args)
9794
9796 """ResolvePastLoadAddress(SBTarget self, uint32_t stop_id, lldb::addr_t vm_addr) -> SBAddress"""
9797 return _lldb.SBTarget_ResolvePastLoadAddress(self, *args)
9798
9800 """ResolveSymbolContextForAddress(SBTarget self, SBAddress addr, uint32_t resolve_scope) -> SBSymbolContext"""
9801 return _lldb.SBTarget_ResolveSymbolContextForAddress(self, *args)
9802
9804 """
9805 ReadMemory(SBTarget self, SBAddress addr, void * buf, SBError error) -> size_t
9806
9807 Read target memory. If a target process is running then memory
9808 is read from here. Otherwise the memory is read from the object
9809 files. For a target whose bytes are sized as a multiple of host
9810 bytes, the data read back will preserve the target's byte order.
9811
9812 @param[in] addr
9813 A target address to read from.
9814
9815 @param[out] buf
9816 The buffer to read memory into.
9817
9818 @param[in] size
9819 The maximum number of host bytes to read in the buffer passed
9820 into this call
9821
9822 @param[out] error
9823 Error information is written here if the memory read fails.
9824
9825 @return
9826 The amount of data read in host bytes.
9827 """
9828 return _lldb.SBTarget_ReadMemory(self, *args)
9829
9831 """
9832 BreakpointCreateByLocation(SBTarget self, char const * file, uint32_t line) -> SBBreakpoint
9833 BreakpointCreateByLocation(SBTarget self, SBFileSpec file_spec, uint32_t line) -> SBBreakpoint
9834 BreakpointCreateByLocation(SBTarget self, SBFileSpec file_spec, uint32_t line, lldb::addr_t offset) -> SBBreakpoint
9835 BreakpointCreateByLocation(SBTarget self, SBFileSpec file_spec, uint32_t line, lldb::addr_t offset, SBFileSpecList module_list) -> SBBreakpoint
9836 BreakpointCreateByLocation(SBTarget self, SBFileSpec file_spec, uint32_t line, uint32_t column, lldb::addr_t offset, SBFileSpecList module_list) -> SBBreakpoint
9837 """
9838 return _lldb.SBTarget_BreakpointCreateByLocation(self, *args)
9839
9841 """
9842 BreakpointCreateByName(SBTarget self, char const * symbol_name, char const * module_name=None) -> SBBreakpoint
9843 BreakpointCreateByName(SBTarget self, char const * symbol_name) -> SBBreakpoint
9844 BreakpointCreateByName(SBTarget self, char const * symbol_name, uint32_t func_name_type, SBFileSpecList module_list, SBFileSpecList comp_unit_list) -> SBBreakpoint
9845 BreakpointCreateByName(SBTarget self, char const * symbol_name, uint32_t func_name_type, lldb::LanguageType symbol_language,
9846 SBFileSpecList module_list, SBFileSpecList comp_unit_list) -> SBBreakpoint
9847 """
9848 return _lldb.SBTarget_BreakpointCreateByName(self, *args)
9849
9851 """
9852 BreakpointCreateByNames(SBTarget self, char const ** symbol_name, uint32_t name_type_mask, SBFileSpecList module_list, SBFileSpecList comp_unit_list) -> SBBreakpoint
9853 BreakpointCreateByNames(SBTarget self, char const ** symbol_name, uint32_t name_type_mask, lldb::LanguageType symbol_language,
9854 SBFileSpecList module_list, SBFileSpecList comp_unit_list) -> SBBreakpoint
9855 BreakpointCreateByNames(SBTarget self, char const ** symbol_name, uint32_t name_type_mask, lldb::LanguageType symbol_language,
9856 lldb::addr_t offset, SBFileSpecList module_list, SBFileSpecList comp_unit_list) -> SBBreakpoint
9857 """
9858 return _lldb.SBTarget_BreakpointCreateByNames(self, *args)
9859
9861 """
9862 BreakpointCreateByRegex(SBTarget self, char const * symbol_name_regex, char const * module_name=None) -> SBBreakpoint
9863 BreakpointCreateByRegex(SBTarget self, char const * symbol_name_regex) -> SBBreakpoint
9864 BreakpointCreateByRegex(SBTarget self, char const * symbol_name_regex, lldb::LanguageType symbol_language, SBFileSpecList module_list,
9865 SBFileSpecList comp_unit_list) -> SBBreakpoint
9866 """
9867 return _lldb.SBTarget_BreakpointCreateByRegex(self, *args)
9868
9870 """
9871 BreakpointCreateBySourceRegex(SBTarget self, char const * source_regex, SBFileSpec source_file, char const * module_name=None) -> SBBreakpoint
9872 BreakpointCreateBySourceRegex(SBTarget self, char const * source_regex, SBFileSpec source_file) -> SBBreakpoint
9873 BreakpointCreateBySourceRegex(SBTarget self, char const * source_regex, SBFileSpecList module_list, SBFileSpecList file_list) -> SBBreakpoint
9874 BreakpointCreateBySourceRegex(SBTarget self, char const * source_regex, SBFileSpecList module_list, SBFileSpecList source_file,
9875 SBStringList func_names) -> SBBreakpoint
9876 """
9877 return _lldb.SBTarget_BreakpointCreateBySourceRegex(self, *args)
9878
9880 """BreakpointCreateForException(SBTarget self, lldb::LanguageType language, bool catch_bp, bool throw_bp) -> SBBreakpoint"""
9881 return _lldb.SBTarget_BreakpointCreateForException(self, *args)
9882
9884 """BreakpointCreateByAddress(SBTarget self, lldb::addr_t address) -> SBBreakpoint"""
9885 return _lldb.SBTarget_BreakpointCreateByAddress(self, *args)
9886
9888 """BreakpointCreateBySBAddress(SBTarget self, SBAddress sb_address) -> SBBreakpoint"""
9889 return _lldb.SBTarget_BreakpointCreateBySBAddress(self, *args)
9890
9892 """
9893 BreakpointCreateFromScript(SBTarget self, char const * class_name, SBStructuredData extra_args, SBFileSpecList module_list,
9894 SBFileSpecList file_list, bool request_hardware=False) -> SBBreakpoint
9895 BreakpointCreateFromScript(SBTarget self, char const * class_name, SBStructuredData extra_args, SBFileSpecList module_list,
9896 SBFileSpecList file_list) -> SBBreakpoint
9897
9898 Create a breakpoint using a scripted resolver.
9899
9900 @param[in] class_name
9901 This is the name of the class that implements a scripted resolver.
9902 The class should have the following signature:
9903 class Resolver:
9904 def __init__(self, bkpt, extra_args):
9905 # bkpt - the breakpoint for which this is the resolver. When
9906 # the resolver finds an interesting address, call AddLocation
9907 # on this breakpoint to add it.
9908 #
9909 # extra_args - an SBStructuredData that can be used to
9910 # parametrize this instance. Same as the extra_args passed
9911 # to BreakpointCreateFromScript.
9912
9913 def __get_depth__ (self):
9914 # This is optional, but if defined, you should return the
9915 # depth at which you want the callback to be called. The
9916 # available options are:
9917 # lldb.eSearchDepthModule
9918 # lldb.eSearchDepthCompUnit
9919 # The default if you don't implement this method is
9920 # eSearchDepthModule.
9921
9922 def __callback__(self, sym_ctx):
9923 # sym_ctx - an SBSymbolContext that is the cursor in the
9924 # search through the program to resolve breakpoints.
9925 # The sym_ctx will be filled out to the depth requested in
9926 # __get_depth__.
9927 # Look in this sym_ctx for new breakpoint locations,
9928 # and if found use bkpt.AddLocation to add them.
9929 # Note, you will only get called for modules/compile_units that
9930 # pass the SearchFilter provided by the module_list & file_list
9931 # passed into BreakpointCreateFromScript.
9932
9933 def get_short_help(self):
9934 # Optional, but if implemented return a short string that will
9935 # be printed at the beginning of the break list output for the
9936 # breakpoint.
9937
9938 @param[in] extra_args
9939 This is an SBStructuredData object that will get passed to the
9940 constructor of the class in class_name. You can use this to
9941 reuse the same class, parametrizing it with entries from this
9942 dictionary.
9943
9944 @param module_list
9945 If this is non-empty, this will be used as the module filter in the
9946 SearchFilter created for this breakpoint.
9947
9948 @param file_list
9949 If this is non-empty, this will be used as the comp unit filter in the
9950 SearchFilter created for this breakpoint.
9951
9952 @return
9953 An SBBreakpoint that will set locations based on the logic in the
9954 resolver's search callback.
9955 """
9956 return _lldb.SBTarget_BreakpointCreateFromScript(self, *args)
9957
9959 """GetNumBreakpoints(SBTarget self) -> uint32_t"""
9960 return _lldb.SBTarget_GetNumBreakpoints(self)
9961
9963 """GetBreakpointAtIndex(SBTarget self, uint32_t idx) -> SBBreakpoint"""
9964 return _lldb.SBTarget_GetBreakpointAtIndex(self, *args)
9965
9967 """BreakpointDelete(SBTarget self, lldb::break_id_t break_id) -> bool"""
9968 return _lldb.SBTarget_BreakpointDelete(self, *args)
9969
9971 """FindBreakpointByID(SBTarget self, lldb::break_id_t break_id) -> SBBreakpoint"""
9972 return _lldb.SBTarget_FindBreakpointByID(self, *args)
9973
9975 """FindBreakpointsByName(SBTarget self, char const * name, SBBreakpointList bkpt_list) -> bool"""
9976 return _lldb.SBTarget_FindBreakpointsByName(self, *args)
9977
9979 """DeleteBreakpointName(SBTarget self, char const * name)"""
9980 return _lldb.SBTarget_DeleteBreakpointName(self, *args)
9981
9983 """GetBreakpointNames(SBTarget self, SBStringList names)"""
9984 return _lldb.SBTarget_GetBreakpointNames(self, *args)
9985
9987 """EnableAllBreakpoints(SBTarget self) -> bool"""
9988 return _lldb.SBTarget_EnableAllBreakpoints(self)
9989
9991 """DisableAllBreakpoints(SBTarget self) -> bool"""
9992 return _lldb.SBTarget_DisableAllBreakpoints(self)
9993
9995 """DeleteAllBreakpoints(SBTarget self) -> bool"""
9996 return _lldb.SBTarget_DeleteAllBreakpoints(self)
9997
9999 """
10000 BreakpointsCreateFromFile(SBTarget self, SBFileSpec source_file, SBBreakpointList bkpt_list) -> SBError
10001 BreakpointsCreateFromFile(SBTarget self, SBFileSpec source_file, SBStringList matching_names, SBBreakpointList new_bps) -> SBError
10002
10003 Read breakpoints from source_file and return the newly created
10004 breakpoints in bkpt_list.
10005
10006 @param[in] source_file
10007 The file from which to read the breakpoints
10008
10009 @param[in] matching_names
10010 Only read in breakpoints whose names match one of the names in this
10011 list.
10012
10013 @param[out] bkpt_list
10014 A list of the newly created breakpoints.
10015
10016 @return
10017 An SBError detailing any errors in reading in the breakpoints.
10018 """
10019 return _lldb.SBTarget_BreakpointsCreateFromFile(self, *args)
10020
10022 """
10023 BreakpointsWriteToFile(SBTarget self, SBFileSpec dest_file) -> SBError
10024 BreakpointsWriteToFile(SBTarget self, SBFileSpec dest_file, SBBreakpointList bkpt_list, bool append=False) -> SBError
10025 BreakpointsWriteToFile(SBTarget self, SBFileSpec dest_file, SBBreakpointList bkpt_list) -> SBError
10026 """
10027 return _lldb.SBTarget_BreakpointsWriteToFile(self, *args)
10028
10030 """GetNumWatchpoints(SBTarget self) -> uint32_t"""
10031 return _lldb.SBTarget_GetNumWatchpoints(self)
10032
10034 """GetWatchpointAtIndex(SBTarget self, uint32_t idx) -> SBWatchpoint"""
10035 return _lldb.SBTarget_GetWatchpointAtIndex(self, *args)
10036
10038 """DeleteWatchpoint(SBTarget self, lldb::watch_id_t watch_id) -> bool"""
10039 return _lldb.SBTarget_DeleteWatchpoint(self, *args)
10040
10042 """FindWatchpointByID(SBTarget self, lldb::watch_id_t watch_id) -> SBWatchpoint"""
10043 return _lldb.SBTarget_FindWatchpointByID(self, *args)
10044
10046 """EnableAllWatchpoints(SBTarget self) -> bool"""
10047 return _lldb.SBTarget_EnableAllWatchpoints(self)
10048
10050 """DisableAllWatchpoints(SBTarget self) -> bool"""
10051 return _lldb.SBTarget_DisableAllWatchpoints(self)
10052
10054 """DeleteAllWatchpoints(SBTarget self) -> bool"""
10055 return _lldb.SBTarget_DeleteAllWatchpoints(self)
10056
10058 """WatchAddress(SBTarget self, lldb::addr_t addr, size_t size, bool read, bool write, SBError error) -> SBWatchpoint"""
10059 return _lldb.SBTarget_WatchAddress(self, *args)
10060
10062 """GetBroadcaster(SBTarget self) -> SBBroadcaster"""
10063 return _lldb.SBTarget_GetBroadcaster(self)
10064
10066 """
10067 CreateValueFromAddress(SBTarget self, char const * name, SBAddress addr, SBType type) -> SBValue
10068
10069 Create an SBValue with the given name by treating the memory starting at addr as an entity of type.
10070
10071 @param[in] name
10072 The name of the resultant SBValue
10073
10074 @param[in] addr
10075 The address of the start of the memory region to be used.
10076
10077 @param[in] type
10078 The type to use to interpret the memory starting at addr.
10079
10080 @return
10081 An SBValue of the given type, may be invalid if there was an error reading
10082 the underlying memory.
10083 """
10084 return _lldb.SBTarget_CreateValueFromAddress(self, *args)
10085
10087 """CreateValueFromData(SBTarget self, char const * name, SBData data, SBType type) -> SBValue"""
10088 return _lldb.SBTarget_CreateValueFromData(self, *args)
10089
10091 """CreateValueFromExpression(SBTarget self, char const * name, char const * expr) -> SBValue"""
10092 return _lldb.SBTarget_CreateValueFromExpression(self, *args)
10093
10095 """
10096 ReadInstructions(SBTarget self, SBAddress base_addr, uint32_t count) -> SBInstructionList
10097 ReadInstructions(SBTarget self, SBAddress base_addr, uint32_t count, char const * flavor_string) -> SBInstructionList
10098
10099 Disassemble a specified number of instructions starting at an address.
10100 Parameters:
10101 base_addr -- the address to start disassembly from
10102 count -- the number of instructions to disassemble
10103 flavor_string -- may be 'intel' or 'att' on x86 targets to specify that style of disassembly
10104 Returns an SBInstructionList.
10105 """
10106 return _lldb.SBTarget_ReadInstructions(self, *args)
10107
10109 """
10110 GetInstructions(SBTarget self, SBAddress base_addr, void const * buf) -> SBInstructionList
10111
10112 Disassemble the bytes in a buffer and return them in an SBInstructionList.
10113 Parameters:
10114 base_addr -- used for symbolicating the offsets in the byte stream when disassembling
10115 buf -- bytes to be disassembled
10116 size -- (C++) size of the buffer
10117 Returns an SBInstructionList.
10118 """
10119 return _lldb.SBTarget_GetInstructions(self, *args)
10120
10122 """
10123 GetInstructionsWithFlavor(SBTarget self, SBAddress base_addr, char const * flavor_string, void const * buf) -> SBInstructionList
10124
10125 Disassemble the bytes in a buffer and return them in an SBInstructionList, with a supplied flavor.
10126 Parameters:
10127 base_addr -- used for symbolicating the offsets in the byte stream when disassembling
10128 flavor -- may be 'intel' or 'att' on x86 targets to specify that style of disassembly
10129 buf -- bytes to be disassembled
10130 size -- (C++) size of the buffer
10131 Returns an SBInstructionList.
10132 """
10133 return _lldb.SBTarget_GetInstructionsWithFlavor(self, *args)
10134
10136 """
10137 FindSymbols(SBTarget self, char const * name, lldb::SymbolType type=eSymbolTypeAny) -> SBSymbolContextList
10138 FindSymbols(SBTarget self, char const * name) -> SBSymbolContextList
10139 """
10140 return _lldb.SBTarget_FindSymbols(self, *args)
10141
10143 """GetDescription(SBTarget self, SBStream description, lldb::DescriptionLevel description_level) -> bool"""
10144 return _lldb.SBTarget_GetDescription(self, *args)
10145
10147 """GetStackRedZoneSize(SBTarget self) -> lldb::addr_t"""
10148 return _lldb.SBTarget_GetStackRedZoneSize(self)
10149
10151 """GetLaunchInfo(SBTarget self) -> SBLaunchInfo"""
10152 return _lldb.SBTarget_GetLaunchInfo(self)
10153
10155 """SetLaunchInfo(SBTarget self, SBLaunchInfo launch_info)"""
10156 return _lldb.SBTarget_SetLaunchInfo(self, *args)
10157
10159 """SetCollectingStats(SBTarget self, bool v)"""
10160 return _lldb.SBTarget_SetCollectingStats(self, *args)
10161
10163 """GetCollectingStats(SBTarget self) -> bool"""
10164 return _lldb.SBTarget_GetCollectingStats(self)
10165
10167 """GetStatistics(SBTarget self) -> SBStructuredData"""
10168 return _lldb.SBTarget_GetStatistics(self)
10169
10171 """__eq__(SBTarget self, SBTarget rhs) -> bool"""
10172 return _lldb.SBTarget___eq__(self, *args)
10173
10175 """__ne__(SBTarget self, SBTarget rhs) -> bool"""
10176 return _lldb.SBTarget___ne__(self, *args)
10177
10179 """
10180 EvaluateExpression(SBTarget self, char const * expr) -> SBValue
10181 EvaluateExpression(SBTarget self, char const * expr, SBExpressionOptions options) -> SBValue
10182 """
10183 return _lldb.SBTarget_EvaluateExpression(self, *args)
10184
10186 '''A helper object that will lazily hand out lldb.SBModule objects for a target when supplied an index, or by full or partial path.'''
10188 self.sbtarget = sbtarget
10189
10191 if self.sbtarget:
10192 return int(self.sbtarget.GetNumModules())
10193 return 0
10194
10196 num_modules = self.sbtarget.GetNumModules()
10197 if type(key) is int:
10198 if key < num_modules:
10199 return self.sbtarget.GetModuleAtIndex(key)
10200 elif type(key) is str:
10201 if key.find('/') == -1:
10202 for idx in range(num_modules):
10203 module = self.sbtarget.GetModuleAtIndex(idx)
10204 if module.file.basename == key:
10205 return module
10206 else:
10207 for idx in range(num_modules):
10208 module = self.sbtarget.GetModuleAtIndex(idx)
10209 if module.file.fullpath == key:
10210 return module
10211
10212 try:
10213 the_uuid = uuid.UUID(key)
10214 if the_uuid:
10215 for idx in range(num_modules):
10216 module = self.sbtarget.GetModuleAtIndex(idx)
10217 if module.uuid == the_uuid:
10218 return module
10219 except:
10220 return None
10221 elif type(key) is uuid.UUID:
10222 for idx in range(num_modules):
10223 module = self.sbtarget.GetModuleAtIndex(idx)
10224 if module.uuid == key:
10225 return module
10226 elif type(key) is re.SRE_Pattern:
10227 matching_modules = []
10228 for idx in range(num_modules):
10229 module = self.sbtarget.GetModuleAtIndex(idx)
10230 re_match = key.search(module.path.fullpath)
10231 if re_match:
10232 matching_modules.append(module)
10233 return matching_modules
10234 else:
10235 print("error: unsupported item type: %s" % type(key))
10236 return None
10237
10239 '''An accessor function that returns a modules_access() object which allows lazy module access from a lldb.SBTarget object.'''
10240 return self.modules_access (self)
10241
10243 '''An accessor function that returns a list() that contains all modules in a lldb.SBTarget object.'''
10244 modules = []
10245 for idx in range(self.GetNumModules()):
10246 modules.append(self.GetModuleAtIndex(idx))
10247 return modules
10248
10250 '''Returns an iterator over all modules in a lldb.SBTarget
10251 object.'''
10252 return lldb_iter(self, 'GetNumModules', 'GetModuleAtIndex')
10253
10255 '''Returns an iterator over all breakpoints in a lldb.SBTarget
10256 object.'''
10257 return lldb_iter(self, 'GetNumBreakpoints', 'GetBreakpointAtIndex')
10258
10260 '''Returns an iterator over all watchpoints in a lldb.SBTarget
10261 object.'''
10262 return lldb_iter(self, 'GetNumWatchpoints', 'GetWatchpointAtIndex')
10263
10264 __swig_getmethods__["modules"] = get_modules_array
10265 if _newclass: