blob: 15b39fd86301cc8e11d8c669b08b6e7847d71248 [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 ();
Enrico Granataedc44142014-09-06 01:30:04 +0000126
127 const char *
128 GetTypeValidatorResult ();
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000129
Jim Ingham60dbabb2011-12-08 19:44:08 +0000130 lldb::SBValue
131 GetDynamicValue (lldb::DynamicValueType use_dynamic);
132
133 lldb::SBValue
134 GetStaticValue ();
135
Enrico Granatac5bc4122012-03-27 02:35:13 +0000136 lldb::SBValue
137 GetNonSyntheticValue ();
Enrico Granatae3e91512012-10-22 18:18:36 +0000138
139 lldb::DynamicValueType
140 GetPreferDynamicValue ();
141
142 void
143 SetPreferDynamicValue (lldb::DynamicValueType use_dynamic);
144
145 bool
146 GetPreferSyntheticValue ();
147
148 void
149 SetPreferSyntheticValue (bool use_synthetic);
Enrico Granatac5bc4122012-03-27 02:35:13 +0000150
Jim Ingham60dbabb2011-12-08 19:44:08 +0000151 bool
152 IsDynamic();
Enrico Granatae3e91512012-10-22 18:18:36 +0000153
154 bool
155 IsSynthetic ();
Jim Ingham60dbabb2011-12-08 19:44:08 +0000156
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000157 const char *
158 GetLocation ();
159
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000160 bool
161 SetValueFromCString (const char *value_str);
162
Enrico Granata07a4ac22012-05-08 21:25:06 +0000163 bool
164 SetValueFromCString (const char *value_str, lldb::SBError& error);
165
Enrico Granata864e3e82012-02-17 03:18:30 +0000166 lldb::SBTypeFormat
167 GetTypeFormat ();
168
169 lldb::SBTypeSummary
170 GetTypeSummary ();
171
172 lldb::SBTypeFilter
173 GetTypeFilter ();
174
175 lldb::SBTypeSynthetic
176 GetTypeSynthetic ();
177
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000178 lldb::SBValue
179 GetChildAtIndex (uint32_t idx);
180
181 %feature("docstring", "
182 //------------------------------------------------------------------
183 /// Get a child value by index from a value.
184 ///
Bruce Mitchenerd93c4a32014-07-01 21:22:11 +0000185 /// Structs, unions, classes, arrays and pointers have child
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000186 /// values that can be access by index.
187 ///
188 /// Structs and unions access child members using a zero based index
189 /// for each child member. For
190 ///
191 /// Classes reserve the first indexes for base classes that have
192 /// members (empty base classes are omitted), and all members of the
193 /// current class will then follow the base classes.
194 ///
195 /// Pointers differ depending on what they point to. If the pointer
196 /// points to a simple type, the child at index zero
197 /// is the only child value available, unless \a synthetic_allowed
198 /// is \b true, in which case the pointer will be used as an array
199 /// and can create 'synthetic' child values using positive or
200 /// negative indexes. If the pointer points to an aggregate type
201 /// (an array, class, union, struct), then the pointee is
202 /// transparently skipped and any children are going to be the indexes
203 /// of the child values within the aggregate type. For example if
204 /// we have a 'Point' type and we have a SBValue that contains a
205 /// pointer to a 'Point' type, then the child at index zero will be
206 /// the 'x' member, and the child at index 1 will be the 'y' member
207 /// (the child at index zero won't be a 'Point' instance).
208 ///
209 /// Arrays have a preset number of children that can be accessed by
210 /// index and will returns invalid child values for indexes that are
211 /// out of bounds unless the \a synthetic_allowed is \b true. In this
212 /// case the array can create 'synthetic' child values for indexes
213 /// that aren't in the array bounds using positive or negative
214 /// indexes.
215 ///
216 /// @param[in] idx
217 /// The index of the child value to get
218 ///
219 /// @param[in] use_dynamic
Bruce Mitchenerd93c4a32014-07-01 21:22:11 +0000220 /// An enumeration that specifies whether to get dynamic values,
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000221 /// and also if the target can be run to figure out the dynamic
222 /// type of the child value.
223 ///
224 /// @param[in] synthetic_allowed
225 /// If \b true, then allow child values to be created by index
226 /// for pointers and arrays for indexes that normally wouldn't
227 /// be allowed.
228 ///
229 /// @return
230 /// A new SBValue object that represents the child member value.
231 //------------------------------------------------------------------
232 ") GetChildAtIndex;
233 lldb::SBValue
234 GetChildAtIndex (uint32_t idx,
235 lldb::DynamicValueType use_dynamic,
236 bool can_create_synthetic);
Enrico Granata6f3533f2011-07-29 19:53:35 +0000237
238 lldb::SBValue
Greg Claytonbf2331c2011-09-09 23:04:00 +0000239 CreateChildAtOffset (const char *name, uint32_t offset, lldb::SBType type);
Enrico Granata6f3533f2011-07-29 19:53:35 +0000240
241 lldb::SBValue
Greg Claytonbf2331c2011-09-09 23:04:00 +0000242 SBValue::Cast (lldb::SBType type);
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000243
Enrico Granata6f3533f2011-07-29 19:53:35 +0000244 lldb::SBValue
245 CreateValueFromExpression (const char *name, const char* expression);
Jim Ingham35e1bda2012-10-16 21:41:58 +0000246
247 lldb::SBValue
248 CreateValueFromExpression (const char *name, const char* expression, SBExpressionOptions &options);
Enrico Granata6f3533f2011-07-29 19:53:35 +0000249
250 lldb::SBValue
Greg Claytonbf2331c2011-09-09 23:04:00 +0000251 CreateValueFromAddress(const char* name, lldb::addr_t address, lldb::SBType type);
Enrico Granata6f3533f2011-07-29 19:53:35 +0000252
Enrico Granata9128ee22011-09-06 19:20:51 +0000253 lldb::SBValue
254 CreateValueFromData (const char* name,
Greg Claytonbf2331c2011-09-09 23:04:00 +0000255 lldb::SBData data,
256 lldb::SBType type);
Enrico Granata9128ee22011-09-06 19:20:51 +0000257
Enrico Granata6f3533f2011-07-29 19:53:35 +0000258 lldb::SBType
259 GetType();
260
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000261 %feature("docstring", "
262 //------------------------------------------------------------------
263 /// Returns the child member index.
264 ///
265 /// Matches children of this object only and will match base classes and
266 /// member names if this is a clang typed object.
267 ///
268 /// @param[in] name
269 /// The name of the child value to get
270 ///
271 /// @return
272 /// An index to the child member value.
273 //------------------------------------------------------------------
274 ") GetIndexOfChildWithName;
275 uint32_t
276 GetIndexOfChildWithName (const char *name);
277
278 lldb::SBValue
279 GetChildMemberWithName (const char *name);
280
281 %feature("docstring", "
282 //------------------------------------------------------------------
283 /// Returns the child member value.
284 ///
285 /// Matches child members of this object and child members of any base
286 /// classes.
287 ///
288 /// @param[in] name
289 /// The name of the child value to get
290 ///
291 /// @param[in] use_dynamic
Bruce Mitchenerd93c4a32014-07-01 21:22:11 +0000292 /// An enumeration that specifies whether to get dynamic values,
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000293 /// and also if the target can be run to figure out the dynamic
294 /// type of the child value.
295 ///
296 /// @return
297 /// A new SBValue object that represents the child member value.
298 //------------------------------------------------------------------
299 ") GetChildMemberWithName;
300 lldb::SBValue
301 GetChildMemberWithName (const char *name, lldb::DynamicValueType use_dynamic);
302
303 %feature("docstring", "Expands nested expressions like .a->b[0].c[1]->d."
304 ) GetValueForExpressionPath;
305 lldb::SBValue
306 GetValueForExpressionPath(const char* expr_path);
307
Enrico Granata10de0902012-10-10 22:54:17 +0000308 lldb::SBDeclaration
309 GetDeclaration ();
310
Greg Clayton4a792072012-10-23 01:50:10 +0000311 bool
312 MightHaveChildren ();
313
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000314 uint32_t
315 GetNumChildren ();
316
317 void *
318 GetOpaqueType();
319
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000320 lldb::SBValue
321 Dereference ();
322
Enrico Granata6f3533f2011-07-29 19:53:35 +0000323 lldb::SBValue
324 AddressOf();
325
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000326 bool
327 TypeIsPointerType ();
Enrico Granata6f3533f2011-07-29 19:53:35 +0000328
329 lldb::SBTarget
330 GetTarget();
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000331
Enrico Granata6f3533f2011-07-29 19:53:35 +0000332 lldb::SBProcess
333 GetProcess();
334
335 lldb::SBThread
336 GetThread();
337
338 lldb::SBFrame
339 GetFrame();
340
Johnny Chen01a67862011-10-14 00:42:25 +0000341 %feature("docstring", "
342 /// Find and watch a variable.
343 /// It returns an SBWatchpoint, which may be invalid.
344 ") Watch;
Greg Clayton1b282f92011-10-13 18:08:26 +0000345 lldb::SBWatchpoint
Johnny Chenb90827e2012-06-04 23:19:54 +0000346 Watch (bool resolve_location, bool read, bool write, SBError &error);
Greg Clayton1b282f92011-10-13 18:08:26 +0000347
Johnny Chen01a67862011-10-14 00:42:25 +0000348 %feature("docstring", "
349 /// Find and watch the location pointed to by a variable.
350 /// It returns an SBWatchpoint, which may be invalid.
351 ") WatchPointee;
Greg Clayton1b282f92011-10-13 18:08:26 +0000352 lldb::SBWatchpoint
Johnny Chenb90827e2012-06-04 23:19:54 +0000353 WatchPointee (bool resolve_location, bool read, bool write, SBError &error);
Greg Clayton1b282f92011-10-13 18:08:26 +0000354
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000355 bool
356 GetDescription (lldb::SBStream &description);
357
358 bool
359 GetExpressionPath (lldb::SBStream &description);
Enrico Granata9128ee22011-09-06 19:20:51 +0000360
361 %feature("docstring", "
362 //------------------------------------------------------------------
363 /// Get an SBData wrapping what this SBValue points to.
364 ///
365 /// This method will dereference the current SBValue, if its
366 /// data type is a T* or T[], and extract item_count elements
367 /// of type T from it, copying their contents in an SBData.
368 ///
369 /// @param[in] item_idx
370 /// The index of the first item to retrieve. For an array
371 /// this is equivalent to array[item_idx], for a pointer
372 /// to *(pointer + item_idx). In either case, the measurement
373 /// unit for item_idx is the sizeof(T) rather than the byte
374 ///
375 /// @param[in] item_count
376 /// How many items should be copied into the output. By default
377 /// only one item is copied, but more can be asked for.
378 ///
379 /// @return
380 /// An SBData with the contents of the copied items, on success.
381 /// An empty SBData otherwise.
382 //------------------------------------------------------------------
383 ") GetPointeeData;
384 lldb::SBData
385 GetPointeeData (uint32_t item_idx = 0,
386 uint32_t item_count = 1);
387
388 %feature("docstring", "
389 //------------------------------------------------------------------
390 /// Get an SBData wrapping the contents of this SBValue.
391 ///
392 /// This method will read the contents of this object in memory
393 /// and copy them into an SBData for future use.
394 ///
395 /// @return
396 /// An SBData with the contents of this SBValue, on success.
397 /// An empty SBData otherwise.
398 //------------------------------------------------------------------
399 ") GetData;
400 lldb::SBData
401 GetData ();
Sean Callanand3f99682013-04-13 01:28:33 +0000402
403 bool
404 SetData (lldb::SBData &data, lldb::SBError& error);
Enrico Granata9128ee22011-09-06 19:20:51 +0000405
406 lldb::addr_t
407 GetLoadAddress();
408
409 lldb::SBAddress
410 GetAddress();
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000411
412 %feature("docstring", "Returns an expression path for this value."
Enrico Granata9128ee22011-09-06 19:20:51 +0000413 ) GetExpressionPath;
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000414 bool
415 GetExpressionPath (lldb::SBStream &description, bool qualify_cxx_base_classes);
Greg Clayton13d19502012-01-29 06:07:39 +0000416
417 %pythoncode %{
Greg Clayton851eacb2012-04-11 16:20:15 +0000418 def __get_dynamic__ (self):
419 '''Helper function for the "SBValue.dynamic" property.'''
420 return self.GetDynamicValue (eDynamicCanRunTarget)
421
Greg Clayton13d19502012-01-29 06:07:39 +0000422 __swig_getmethods__["name"] = GetName
Greg Clayton5ef31a92012-06-29 22:00:42 +0000423 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 +0000424
425 __swig_getmethods__["type"] = GetType
Greg Clayton5ef31a92012-06-29 22:00:42 +0000426 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 +0000427
428 __swig_getmethods__["size"] = GetByteSize
Greg Clayton5ef31a92012-06-29 22:00:42 +0000429 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 +0000430
431 __swig_getmethods__["is_in_scope"] = IsInScope
Greg Clayton5ef31a92012-06-29 22:00:42 +0000432 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 +0000433
434 __swig_getmethods__["format"] = GetFormat
435 __swig_setmethods__["format"] = SetFormat
Greg Clayton5ef31a92012-06-29 22:00:42 +0000436 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 +0000437
438 __swig_getmethods__["value"] = GetValue
439 __swig_setmethods__["value"] = SetValueFromCString
Greg Clayton5ef31a92012-06-29 22:00:42 +0000440 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 +0000441
442 __swig_getmethods__["value_type"] = GetValueType
Greg Clayton5ef31a92012-06-29 22:00:42 +0000443 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 +0000444
445 __swig_getmethods__["changed"] = GetValueDidChange
Greg Clayton5ef31a92012-06-29 22:00:42 +0000446 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 +0000447
448 __swig_getmethods__["data"] = GetData
Greg Clayton5ef31a92012-06-29 22:00:42 +0000449 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 +0000450
451 __swig_getmethods__["load_addr"] = GetLoadAddress
Greg Clayton5ef31a92012-06-29 22:00:42 +0000452 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 +0000453
454 __swig_getmethods__["addr"] = GetAddress
Greg Clayton5ef31a92012-06-29 22:00:42 +0000455 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 +0000456
457 __swig_getmethods__["deref"] = Dereference
Greg Clayton5ef31a92012-06-29 22:00:42 +0000458 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 +0000459
460 __swig_getmethods__["address_of"] = AddressOf
Greg Clayton5ef31a92012-06-29 22:00:42 +0000461 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 +0000462
463 __swig_getmethods__["error"] = GetError
Greg Clayton5ef31a92012-06-29 22:00:42 +0000464 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 +0000465
466 __swig_getmethods__["summary"] = GetSummary
Greg Clayton5ef31a92012-06-29 22:00:42 +0000467 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 +0000468
469 __swig_getmethods__["description"] = GetObjectDescription
Greg Clayton5ef31a92012-06-29 22:00:42 +0000470 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 +0000471
472 __swig_getmethods__["dynamic"] = __get_dynamic__
Greg Clayton5ef31a92012-06-29 22:00:42 +0000473 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 +0000474
Greg Clayton13d19502012-01-29 06:07:39 +0000475 __swig_getmethods__["location"] = GetLocation
Greg Clayton5ef31a92012-06-29 22:00:42 +0000476 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 +0000477
478 __swig_getmethods__["target"] = GetTarget
Greg Clayton5ef31a92012-06-29 22:00:42 +0000479 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 +0000480
481 __swig_getmethods__["process"] = GetProcess
Greg Clayton5ef31a92012-06-29 22:00:42 +0000482 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 +0000483
484 __swig_getmethods__["thread"] = GetThread
Greg Clayton5ef31a92012-06-29 22:00:42 +0000485 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 +0000486
487 __swig_getmethods__["frame"] = GetFrame
Greg Clayton5ef31a92012-06-29 22:00:42 +0000488 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 +0000489
490 __swig_getmethods__["num_children"] = GetNumChildren
Greg Clayton5ef31a92012-06-29 22:00:42 +0000491 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 +0000492
Greg Clayton7edbdfc2012-02-03 07:02:37 +0000493 __swig_getmethods__["unsigned"] = GetValueAsUnsigned
Greg Clayton5ef31a92012-06-29 22:00:42 +0000494 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 +0000495
496 __swig_getmethods__["signed"] = GetValueAsSigned
Greg Clayton5ef31a92012-06-29 22:00:42 +0000497 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 +0000498
499 def get_expr_path(self):
500 s = SBStream()
501 self.GetExpressionPath (s)
502 return s.GetData()
503
504 __swig_getmethods__["path"] = get_expr_path
Greg Clayton5ef31a92012-06-29 22:00:42 +0000505 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 +0000506 %}
507
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000508};
509
510} // namespace lldb