blob: 281782b5a1ad80139f1d66a012e53a98331cfa72 [file] [log] [blame]
Johnny Chen9a5b16b2011-07-18 19:15:22 +00001//===-- SWIG Interface for SBValue ------------------------------*- C++ -*-===//
Johnny Chen67ae7bd2011-07-18 19:08:30 +00002//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10namespace lldb {
11
12%feature("docstring",
13"Represents the value of a variable, a register, or an expression.
14
15SBValue supports iteration through its child, which in turn is represented
16as an SBValue. For example, we can get the general purpose registers of a
17frame as an SBValue, and iterate through all the registers,
18
19 registerSet = frame.GetRegisters() # Returns an SBValueList.
20 for regs in registerSet:
21 if 'general purpose registers' in regs.getName().lower():
22 GPRs = regs
23 break
24
25 print '%s (number of children = %d):' % (GPRs.GetName(), GPRs.GetNumChildren())
26 for reg in GPRs:
27 print 'Name: ', reg.GetName(), ' Value: ', reg.GetValue()
28
29produces the output:
30
31General Purpose Registers (number of children = 21):
32Name: rax Value: 0x0000000100000c5c
33Name: rbx Value: 0x0000000000000000
34Name: rcx Value: 0x00007fff5fbffec0
35Name: rdx Value: 0x00007fff5fbffeb8
36Name: rdi Value: 0x0000000000000001
37Name: rsi Value: 0x00007fff5fbffea8
38Name: rbp Value: 0x00007fff5fbffe80
39Name: rsp Value: 0x00007fff5fbffe60
40Name: r8 Value: 0x0000000008668682
41Name: r9 Value: 0x0000000000000000
42Name: r10 Value: 0x0000000000001200
43Name: r11 Value: 0x0000000000000206
44Name: r12 Value: 0x0000000000000000
45Name: r13 Value: 0x0000000000000000
46Name: r14 Value: 0x0000000000000000
47Name: r15 Value: 0x0000000000000000
48Name: rip Value: 0x0000000100000dae
49Name: rflags Value: 0x0000000000000206
50Name: cs Value: 0x0000000000000027
51Name: fs Value: 0x0000000000000010
Johnny Chena4bc3a72011-07-25 23:41:08 +000052Name: gs Value: 0x0000000000000048
53
54See also linked_list_iter() for another perspective on how to iterate through an
55SBValue instance which interprets the value object as representing the head of a
56linked list."
Johnny Chen357033b2011-07-18 20:13:38 +000057) SBValue;
Johnny Chen67ae7bd2011-07-18 19:08:30 +000058class SBValue
59{
60public:
61 SBValue ();
62
63 SBValue (const SBValue &rhs);
64
65 ~SBValue ();
66
67 bool
Greg Claytonbf2331c2011-09-09 23:04:00 +000068 IsValid();
Johnny Chen67ae7bd2011-07-18 19:08:30 +000069
Jim Ingham5d3bca42011-12-19 20:39:44 +000070 void
71 Clear();
72
Johnny Chen67ae7bd2011-07-18 19:08:30 +000073 SBError
74 GetError();
75
76 lldb::user_id_t
77 GetID ();
78
79 const char *
80 GetName();
81
82 const char *
83 GetTypeName ();
Enrico Granatae8daa2f2014-05-17 19:14:17 +000084
85 const char *
86 GetDisplayTypeName ();
Johnny Chen67ae7bd2011-07-18 19:08:30 +000087
88 size_t
89 GetByteSize ();
90
Johnny Chen67ae7bd2011-07-18 19:08:30 +000091 bool
92 IsInScope ();
93
94 lldb::Format
Greg Claytonbf2331c2011-09-09 23:04:00 +000095 GetFormat ();
Johnny Chen67ae7bd2011-07-18 19:08:30 +000096
97 void
98 SetFormat (lldb::Format format);
99
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000100 const char *
101 GetValue ();
102
Greg Claytonfe42ac42011-08-03 22:57:10 +0000103 int64_t
Enrico Granata6fd87d52011-08-04 01:41:02 +0000104 GetValueAsSigned(SBError& error, int64_t fail_value=0);
Greg Claytonfe42ac42011-08-03 22:57:10 +0000105
106 uint64_t
Enrico Granata6fd87d52011-08-04 01:41:02 +0000107 GetValueAsUnsigned(SBError& error, uint64_t fail_value=0);
108
109 int64_t
110 GetValueAsSigned(int64_t fail_value=0);
111
112 uint64_t
Greg Claytonfe42ac42011-08-03 22:57:10 +0000113 GetValueAsUnsigned(uint64_t fail_value=0);
114
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000115 ValueType
116 GetValueType ();
117
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000118 bool
119 GetValueDidChange ();
120
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000121 const char *
122 GetSummary ();
123
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000124 const char *
125 GetObjectDescription ();
126
Jim Ingham60dbabb2011-12-08 19:44:08 +0000127 lldb::SBValue
128 GetDynamicValue (lldb::DynamicValueType use_dynamic);
129
130 lldb::SBValue
131 GetStaticValue ();
132
Enrico Granatac5bc4122012-03-27 02:35:13 +0000133 lldb::SBValue
134 GetNonSyntheticValue ();
Enrico Granatae3e91512012-10-22 18:18:36 +0000135
136 lldb::DynamicValueType
137 GetPreferDynamicValue ();
138
139 void
140 SetPreferDynamicValue (lldb::DynamicValueType use_dynamic);
141
142 bool
143 GetPreferSyntheticValue ();
144
145 void
146 SetPreferSyntheticValue (bool use_synthetic);
Enrico Granatac5bc4122012-03-27 02:35:13 +0000147
Jim Ingham60dbabb2011-12-08 19:44:08 +0000148 bool
149 IsDynamic();
Enrico Granatae3e91512012-10-22 18:18:36 +0000150
151 bool
152 IsSynthetic ();
Jim Ingham60dbabb2011-12-08 19:44:08 +0000153
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000154 const char *
155 GetLocation ();
156
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000157 bool
158 SetValueFromCString (const char *value_str);
159
Enrico Granata07a4ac22012-05-08 21:25:06 +0000160 bool
161 SetValueFromCString (const char *value_str, lldb::SBError& error);
162
Enrico Granata864e3e82012-02-17 03:18:30 +0000163 lldb::SBTypeFormat
164 GetTypeFormat ();
165
166 lldb::SBTypeSummary
167 GetTypeSummary ();
168
169 lldb::SBTypeFilter
170 GetTypeFilter ();
171
172 lldb::SBTypeSynthetic
173 GetTypeSynthetic ();
174
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000175 lldb::SBValue
176 GetChildAtIndex (uint32_t idx);
177
178 %feature("docstring", "
179 //------------------------------------------------------------------
180 /// Get a child value by index from a value.
181 ///
Bruce Mitchenerd93c4a32014-07-01 21:22:11 +0000182 /// Structs, unions, classes, arrays and pointers have child
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000183 /// values that can be access by index.
184 ///
185 /// Structs and unions access child members using a zero based index
186 /// for each child member. For
187 ///
188 /// Classes reserve the first indexes for base classes that have
189 /// members (empty base classes are omitted), and all members of the
190 /// current class will then follow the base classes.
191 ///
192 /// Pointers differ depending on what they point to. If the pointer
193 /// points to a simple type, the child at index zero
194 /// is the only child value available, unless \a synthetic_allowed
195 /// is \b true, in which case the pointer will be used as an array
196 /// and can create 'synthetic' child values using positive or
197 /// negative indexes. If the pointer points to an aggregate type
198 /// (an array, class, union, struct), then the pointee is
199 /// transparently skipped and any children are going to be the indexes
200 /// of the child values within the aggregate type. For example if
201 /// we have a 'Point' type and we have a SBValue that contains a
202 /// pointer to a 'Point' type, then the child at index zero will be
203 /// the 'x' member, and the child at index 1 will be the 'y' member
204 /// (the child at index zero won't be a 'Point' instance).
205 ///
206 /// Arrays have a preset number of children that can be accessed by
207 /// index and will returns invalid child values for indexes that are
208 /// out of bounds unless the \a synthetic_allowed is \b true. In this
209 /// case the array can create 'synthetic' child values for indexes
210 /// that aren't in the array bounds using positive or negative
211 /// indexes.
212 ///
213 /// @param[in] idx
214 /// The index of the child value to get
215 ///
216 /// @param[in] use_dynamic
Bruce Mitchenerd93c4a32014-07-01 21:22:11 +0000217 /// An enumeration that specifies whether to get dynamic values,
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000218 /// and also if the target can be run to figure out the dynamic
219 /// type of the child value.
220 ///
221 /// @param[in] synthetic_allowed
222 /// If \b true, then allow child values to be created by index
223 /// for pointers and arrays for indexes that normally wouldn't
224 /// be allowed.
225 ///
226 /// @return
227 /// A new SBValue object that represents the child member value.
228 //------------------------------------------------------------------
229 ") GetChildAtIndex;
230 lldb::SBValue
231 GetChildAtIndex (uint32_t idx,
232 lldb::DynamicValueType use_dynamic,
233 bool can_create_synthetic);
Enrico Granata6f3533f2011-07-29 19:53:35 +0000234
235 lldb::SBValue
Greg Claytonbf2331c2011-09-09 23:04:00 +0000236 CreateChildAtOffset (const char *name, uint32_t offset, lldb::SBType type);
Enrico Granata6f3533f2011-07-29 19:53:35 +0000237
238 lldb::SBValue
Greg Claytonbf2331c2011-09-09 23:04:00 +0000239 SBValue::Cast (lldb::SBType type);
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000240
Enrico Granata6f3533f2011-07-29 19:53:35 +0000241 lldb::SBValue
242 CreateValueFromExpression (const char *name, const char* expression);
Jim Ingham35e1bda2012-10-16 21:41:58 +0000243
244 lldb::SBValue
245 CreateValueFromExpression (const char *name, const char* expression, SBExpressionOptions &options);
Enrico Granata6f3533f2011-07-29 19:53:35 +0000246
247 lldb::SBValue
Greg Claytonbf2331c2011-09-09 23:04:00 +0000248 CreateValueFromAddress(const char* name, lldb::addr_t address, lldb::SBType type);
Enrico Granata6f3533f2011-07-29 19:53:35 +0000249
Enrico Granata9128ee22011-09-06 19:20:51 +0000250 lldb::SBValue
251 CreateValueFromData (const char* name,
Greg Claytonbf2331c2011-09-09 23:04:00 +0000252 lldb::SBData data,
253 lldb::SBType type);
Enrico Granata9128ee22011-09-06 19:20:51 +0000254
Enrico Granata6f3533f2011-07-29 19:53:35 +0000255 lldb::SBType
256 GetType();
257
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000258 %feature("docstring", "
259 //------------------------------------------------------------------
260 /// Returns the child member index.
261 ///
262 /// Matches children of this object only and will match base classes and
263 /// member names if this is a clang typed object.
264 ///
265 /// @param[in] name
266 /// The name of the child value to get
267 ///
268 /// @return
269 /// An index to the child member value.
270 //------------------------------------------------------------------
271 ") GetIndexOfChildWithName;
272 uint32_t
273 GetIndexOfChildWithName (const char *name);
274
275 lldb::SBValue
276 GetChildMemberWithName (const char *name);
277
278 %feature("docstring", "
279 //------------------------------------------------------------------
280 /// Returns the child member value.
281 ///
282 /// Matches child members of this object and child members of any base
283 /// classes.
284 ///
285 /// @param[in] name
286 /// The name of the child value to get
287 ///
288 /// @param[in] use_dynamic
Bruce Mitchenerd93c4a32014-07-01 21:22:11 +0000289 /// An enumeration that specifies whether to get dynamic values,
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000290 /// and also if the target can be run to figure out the dynamic
291 /// type of the child value.
292 ///
293 /// @return
294 /// A new SBValue object that represents the child member value.
295 //------------------------------------------------------------------
296 ") GetChildMemberWithName;
297 lldb::SBValue
298 GetChildMemberWithName (const char *name, lldb::DynamicValueType use_dynamic);
299
300 %feature("docstring", "Expands nested expressions like .a->b[0].c[1]->d."
301 ) GetValueForExpressionPath;
302 lldb::SBValue
303 GetValueForExpressionPath(const char* expr_path);
304
Enrico Granata10de0902012-10-10 22:54:17 +0000305 lldb::SBDeclaration
306 GetDeclaration ();
307
Greg Clayton4a792072012-10-23 01:50:10 +0000308 bool
309 MightHaveChildren ();
310
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000311 uint32_t
312 GetNumChildren ();
313
314 void *
315 GetOpaqueType();
316
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000317 lldb::SBValue
318 Dereference ();
319
Enrico Granata6f3533f2011-07-29 19:53:35 +0000320 lldb::SBValue
321 AddressOf();
322
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000323 bool
324 TypeIsPointerType ();
Enrico Granata6f3533f2011-07-29 19:53:35 +0000325
326 lldb::SBTarget
327 GetTarget();
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000328
Enrico Granata6f3533f2011-07-29 19:53:35 +0000329 lldb::SBProcess
330 GetProcess();
331
332 lldb::SBThread
333 GetThread();
334
335 lldb::SBFrame
336 GetFrame();
337
Johnny Chen01a67862011-10-14 00:42:25 +0000338 %feature("docstring", "
339 /// Find and watch a variable.
340 /// It returns an SBWatchpoint, which may be invalid.
341 ") Watch;
Greg Clayton1b282f92011-10-13 18:08:26 +0000342 lldb::SBWatchpoint
Johnny Chenb90827e2012-06-04 23:19:54 +0000343 Watch (bool resolve_location, bool read, bool write, SBError &error);
Greg Clayton1b282f92011-10-13 18:08:26 +0000344
Johnny Chen01a67862011-10-14 00:42:25 +0000345 %feature("docstring", "
346 /// Find and watch the location pointed to by a variable.
347 /// It returns an SBWatchpoint, which may be invalid.
348 ") WatchPointee;
Greg Clayton1b282f92011-10-13 18:08:26 +0000349 lldb::SBWatchpoint
Johnny Chenb90827e2012-06-04 23:19:54 +0000350 WatchPointee (bool resolve_location, bool read, bool write, SBError &error);
Greg Clayton1b282f92011-10-13 18:08:26 +0000351
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000352 bool
353 GetDescription (lldb::SBStream &description);
354
355 bool
356 GetExpressionPath (lldb::SBStream &description);
Enrico Granata9128ee22011-09-06 19:20:51 +0000357
358 %feature("docstring", "
359 //------------------------------------------------------------------
360 /// Get an SBData wrapping what this SBValue points to.
361 ///
362 /// This method will dereference the current SBValue, if its
363 /// data type is a T* or T[], and extract item_count elements
364 /// of type T from it, copying their contents in an SBData.
365 ///
366 /// @param[in] item_idx
367 /// The index of the first item to retrieve. For an array
368 /// this is equivalent to array[item_idx], for a pointer
369 /// to *(pointer + item_idx). In either case, the measurement
370 /// unit for item_idx is the sizeof(T) rather than the byte
371 ///
372 /// @param[in] item_count
373 /// How many items should be copied into the output. By default
374 /// only one item is copied, but more can be asked for.
375 ///
376 /// @return
377 /// An SBData with the contents of the copied items, on success.
378 /// An empty SBData otherwise.
379 //------------------------------------------------------------------
380 ") GetPointeeData;
381 lldb::SBData
382 GetPointeeData (uint32_t item_idx = 0,
383 uint32_t item_count = 1);
384
385 %feature("docstring", "
386 //------------------------------------------------------------------
387 /// Get an SBData wrapping the contents of this SBValue.
388 ///
389 /// This method will read the contents of this object in memory
390 /// and copy them into an SBData for future use.
391 ///
392 /// @return
393 /// An SBData with the contents of this SBValue, on success.
394 /// An empty SBData otherwise.
395 //------------------------------------------------------------------
396 ") GetData;
397 lldb::SBData
398 GetData ();
Sean Callanand3f99682013-04-13 01:28:33 +0000399
400 bool
401 SetData (lldb::SBData &data, lldb::SBError& error);
Enrico Granata9128ee22011-09-06 19:20:51 +0000402
403 lldb::addr_t
404 GetLoadAddress();
405
406 lldb::SBAddress
407 GetAddress();
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000408
409 %feature("docstring", "Returns an expression path for this value."
Enrico Granata9128ee22011-09-06 19:20:51 +0000410 ) GetExpressionPath;
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000411 bool
412 GetExpressionPath (lldb::SBStream &description, bool qualify_cxx_base_classes);
Greg Clayton13d19502012-01-29 06:07:39 +0000413
414 %pythoncode %{
Greg Clayton851eacb2012-04-11 16:20:15 +0000415 def __get_dynamic__ (self):
416 '''Helper function for the "SBValue.dynamic" property.'''
417 return self.GetDynamicValue (eDynamicCanRunTarget)
418
Greg Clayton13d19502012-01-29 06:07:39 +0000419 __swig_getmethods__["name"] = GetName
Greg Clayton5ef31a92012-06-29 22:00:42 +0000420 if _newclass: name = property(GetName, None, doc='''A read only property that returns the name of this value as a string.''')
Greg Clayton13d19502012-01-29 06:07:39 +0000421
422 __swig_getmethods__["type"] = GetType
Greg Clayton5ef31a92012-06-29 22:00:42 +0000423 if _newclass: type = property(GetType, None, doc='''A read only property that returns a lldb.SBType object that represents the type for this value.''')
Greg Clayton13d19502012-01-29 06:07:39 +0000424
425 __swig_getmethods__["size"] = GetByteSize
Greg Clayton5ef31a92012-06-29 22:00:42 +0000426 if _newclass: size = property(GetByteSize, None, doc='''A read only property that returns the size in bytes of this value.''')
Greg Clayton13d19502012-01-29 06:07:39 +0000427
428 __swig_getmethods__["is_in_scope"] = IsInScope
Greg Clayton5ef31a92012-06-29 22:00:42 +0000429 if _newclass: is_in_scope = property(IsInScope, None, doc='''A read only property that returns a boolean value that indicates whether this value is currently lexically in scope.''')
Greg Clayton13d19502012-01-29 06:07:39 +0000430
431 __swig_getmethods__["format"] = GetFormat
432 __swig_setmethods__["format"] = SetFormat
Greg Clayton5ef31a92012-06-29 22:00:42 +0000433 if _newclass: format = property(GetName, SetFormat, doc='''A read/write property that gets/sets the format used for lldb.SBValue().GetValue() for this value. See enumerations that start with "lldb.eFormat".''')
Greg Clayton13d19502012-01-29 06:07:39 +0000434
435 __swig_getmethods__["value"] = GetValue
436 __swig_setmethods__["value"] = SetValueFromCString
Greg Clayton5ef31a92012-06-29 22:00:42 +0000437 if _newclass: value = property(GetValue, SetValueFromCString, doc='''A read/write property that gets/sets value from a string.''')
Greg Clayton13d19502012-01-29 06:07:39 +0000438
439 __swig_getmethods__["value_type"] = GetValueType
Greg Clayton5ef31a92012-06-29 22:00:42 +0000440 if _newclass: value_type = property(GetValueType, None, doc='''A read only property that returns an lldb enumeration value (see enumerations that start with "lldb.eValueType") that represents the type of this value (local, argument, global, register, etc.).''')
Greg Clayton13d19502012-01-29 06:07:39 +0000441
442 __swig_getmethods__["changed"] = GetValueDidChange
Greg Clayton5ef31a92012-06-29 22:00:42 +0000443 if _newclass: changed = property(GetValueDidChange, None, doc='''A read only property that returns a boolean value that indicates if this value has changed since it was last updated.''')
Greg Clayton13d19502012-01-29 06:07:39 +0000444
445 __swig_getmethods__["data"] = GetData
Greg Clayton5ef31a92012-06-29 22:00:42 +0000446 if _newclass: data = property(GetData, None, doc='''A read only property that returns an lldb object (lldb.SBData) that represents the bytes that make up the value for this object.''')
Greg Clayton13d19502012-01-29 06:07:39 +0000447
448 __swig_getmethods__["load_addr"] = GetLoadAddress
Greg Clayton5ef31a92012-06-29 22:00:42 +0000449 if _newclass: load_addr = property(GetLoadAddress, None, doc='''A read only property that returns the load address of this value as an integer.''')
Greg Clayton13d19502012-01-29 06:07:39 +0000450
451 __swig_getmethods__["addr"] = GetAddress
Greg Clayton5ef31a92012-06-29 22:00:42 +0000452 if _newclass: addr = property(GetAddress, None, doc='''A read only property that returns an lldb.SBAddress that represents the address of this value if it is in memory.''')
Greg Clayton13d19502012-01-29 06:07:39 +0000453
454 __swig_getmethods__["deref"] = Dereference
Greg Clayton5ef31a92012-06-29 22:00:42 +0000455 if _newclass: deref = property(Dereference, None, doc='''A read only property that returns an lldb.SBValue that is created by dereferencing this value.''')
Greg Clayton13d19502012-01-29 06:07:39 +0000456
457 __swig_getmethods__["address_of"] = AddressOf
Greg Clayton5ef31a92012-06-29 22:00:42 +0000458 if _newclass: address_of = property(AddressOf, None, doc='''A read only property that returns an lldb.SBValue that represents the address-of this value.''')
Greg Clayton13d19502012-01-29 06:07:39 +0000459
460 __swig_getmethods__["error"] = GetError
Greg Clayton5ef31a92012-06-29 22:00:42 +0000461 if _newclass: error = property(GetError, None, doc='''A read only property that returns the lldb.SBError that represents the error from the last time the variable value was calculated.''')
Greg Clayton13d19502012-01-29 06:07:39 +0000462
463 __swig_getmethods__["summary"] = GetSummary
Greg Clayton5ef31a92012-06-29 22:00:42 +0000464 if _newclass: summary = property(GetSummary, None, doc='''A read only property that returns the summary for this value as a string''')
Greg Clayton13d19502012-01-29 06:07:39 +0000465
466 __swig_getmethods__["description"] = GetObjectDescription
Greg Clayton5ef31a92012-06-29 22:00:42 +0000467 if _newclass: description = property(GetObjectDescription, None, doc='''A read only property that returns the language-specific description of this value as a string''')
Greg Clayton851eacb2012-04-11 16:20:15 +0000468
469 __swig_getmethods__["dynamic"] = __get_dynamic__
Greg Clayton5ef31a92012-06-29 22:00:42 +0000470 if _newclass: dynamic = property(__get_dynamic__, None, doc='''A read only property that returns an lldb.SBValue that is created by finding the dynamic type of this value.''')
Greg Clayton851eacb2012-04-11 16:20:15 +0000471
Greg Clayton13d19502012-01-29 06:07:39 +0000472 __swig_getmethods__["location"] = GetLocation
Greg Clayton5ef31a92012-06-29 22:00:42 +0000473 if _newclass: location = property(GetLocation, None, doc='''A read only property that returns the location of this value as a string.''')
Greg Clayton13d19502012-01-29 06:07:39 +0000474
475 __swig_getmethods__["target"] = GetTarget
Greg Clayton5ef31a92012-06-29 22:00:42 +0000476 if _newclass: target = property(GetTarget, None, doc='''A read only property that returns the lldb.SBTarget that this value is associated with.''')
Greg Clayton13d19502012-01-29 06:07:39 +0000477
478 __swig_getmethods__["process"] = GetProcess
Greg Clayton5ef31a92012-06-29 22:00:42 +0000479 if _newclass: process = property(GetProcess, None, doc='''A read only property that returns the lldb.SBProcess that this value is associated with, the returned value might be invalid and should be tested.''')
Greg Clayton13d19502012-01-29 06:07:39 +0000480
481 __swig_getmethods__["thread"] = GetThread
Greg Clayton5ef31a92012-06-29 22:00:42 +0000482 if _newclass: thread = property(GetThread, None, doc='''A read only property that returns the lldb.SBThread that this value is associated with, the returned value might be invalid and should be tested.''')
Greg Clayton13d19502012-01-29 06:07:39 +0000483
484 __swig_getmethods__["frame"] = GetFrame
Greg Clayton5ef31a92012-06-29 22:00:42 +0000485 if _newclass: frame = property(GetFrame, None, doc='''A read only property that returns the lldb.SBFrame that this value is associated with, the returned value might be invalid and should be tested.''')
Greg Clayton13d19502012-01-29 06:07:39 +0000486
487 __swig_getmethods__["num_children"] = GetNumChildren
Greg Clayton5ef31a92012-06-29 22:00:42 +0000488 if _newclass: num_children = property(GetNumChildren, None, doc='''A read only property that returns the number of child lldb.SBValues that this value has.''')
Greg Clayton13d19502012-01-29 06:07:39 +0000489
Greg Clayton7edbdfc2012-02-03 07:02:37 +0000490 __swig_getmethods__["unsigned"] = GetValueAsUnsigned
Greg Clayton5ef31a92012-06-29 22:00:42 +0000491 if _newclass: unsigned = property(GetValueAsUnsigned, None, doc='''A read only property that returns the value of this SBValue as an usigned integer.''')
Greg Clayton7edbdfc2012-02-03 07:02:37 +0000492
493 __swig_getmethods__["signed"] = GetValueAsSigned
Greg Clayton5ef31a92012-06-29 22:00:42 +0000494 if _newclass: signed = property(GetValueAsSigned, None, doc='''A read only property that returns the value of this SBValue as a signed integer.''')
Greg Clayton7edbdfc2012-02-03 07:02:37 +0000495
496 def get_expr_path(self):
497 s = SBStream()
498 self.GetExpressionPath (s)
499 return s.GetData()
500
501 __swig_getmethods__["path"] = get_expr_path
Greg Clayton5ef31a92012-06-29 22:00:42 +0000502 if _newclass: path = property(get_expr_path, None, doc='''A read only property that returns the expression path that one can use to reach this value in an expression.''')
Greg Clayton13d19502012-01-29 06:07:39 +0000503 %}
504
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000505};
506
507} // namespace lldb