blob: 03938077275ea779f0d0dd331ce931c1a1fc1e1b [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 *
Enrico Granata49bfafb2014-11-18 23:36:25 +0000125 GetSummary (lldb::SBStream& stream,
126 lldb::SBTypeSummaryOptions& options);
Enrico Granatac1247f52014-11-06 21:23:20 +0000127
128 const char *
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000129 GetObjectDescription ();
Enrico Granataedc44142014-09-06 01:30:04 +0000130
131 const char *
132 GetTypeValidatorResult ();
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000133
Jim Ingham60dbabb2011-12-08 19:44:08 +0000134 lldb::SBValue
135 GetDynamicValue (lldb::DynamicValueType use_dynamic);
136
137 lldb::SBValue
138 GetStaticValue ();
139
Enrico Granatac5bc4122012-03-27 02:35:13 +0000140 lldb::SBValue
141 GetNonSyntheticValue ();
Enrico Granatae3e91512012-10-22 18:18:36 +0000142
143 lldb::DynamicValueType
144 GetPreferDynamicValue ();
145
146 void
147 SetPreferDynamicValue (lldb::DynamicValueType use_dynamic);
148
149 bool
150 GetPreferSyntheticValue ();
151
152 void
153 SetPreferSyntheticValue (bool use_synthetic);
Enrico Granatac5bc4122012-03-27 02:35:13 +0000154
Jim Ingham60dbabb2011-12-08 19:44:08 +0000155 bool
156 IsDynamic();
Enrico Granatae3e91512012-10-22 18:18:36 +0000157
158 bool
159 IsSynthetic ();
Jim Ingham60dbabb2011-12-08 19:44:08 +0000160
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000161 const char *
162 GetLocation ();
163
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000164 bool
165 SetValueFromCString (const char *value_str);
166
Enrico Granata07a4ac22012-05-08 21:25:06 +0000167 bool
168 SetValueFromCString (const char *value_str, lldb::SBError& error);
169
Enrico Granata864e3e82012-02-17 03:18:30 +0000170 lldb::SBTypeFormat
171 GetTypeFormat ();
172
173 lldb::SBTypeSummary
174 GetTypeSummary ();
175
176 lldb::SBTypeFilter
177 GetTypeFilter ();
178
179 lldb::SBTypeSynthetic
180 GetTypeSynthetic ();
181
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000182 lldb::SBValue
183 GetChildAtIndex (uint32_t idx);
184
185 %feature("docstring", "
186 //------------------------------------------------------------------
187 /// Get a child value by index from a value.
188 ///
Bruce Mitchenerd93c4a32014-07-01 21:22:11 +0000189 /// Structs, unions, classes, arrays and pointers have child
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000190 /// values that can be access by index.
191 ///
192 /// Structs and unions access child members using a zero based index
193 /// for each child member. For
194 ///
195 /// Classes reserve the first indexes for base classes that have
196 /// members (empty base classes are omitted), and all members of the
197 /// current class will then follow the base classes.
198 ///
199 /// Pointers differ depending on what they point to. If the pointer
200 /// points to a simple type, the child at index zero
201 /// is the only child value available, unless \a synthetic_allowed
202 /// is \b true, in which case the pointer will be used as an array
203 /// and can create 'synthetic' child values using positive or
204 /// negative indexes. If the pointer points to an aggregate type
205 /// (an array, class, union, struct), then the pointee is
206 /// transparently skipped and any children are going to be the indexes
207 /// of the child values within the aggregate type. For example if
208 /// we have a 'Point' type and we have a SBValue that contains a
209 /// pointer to a 'Point' type, then the child at index zero will be
210 /// the 'x' member, and the child at index 1 will be the 'y' member
211 /// (the child at index zero won't be a 'Point' instance).
212 ///
213 /// Arrays have a preset number of children that can be accessed by
214 /// index and will returns invalid child values for indexes that are
215 /// out of bounds unless the \a synthetic_allowed is \b true. In this
216 /// case the array can create 'synthetic' child values for indexes
217 /// that aren't in the array bounds using positive or negative
218 /// indexes.
219 ///
220 /// @param[in] idx
221 /// The index of the child value to get
222 ///
223 /// @param[in] use_dynamic
Bruce Mitchenerd93c4a32014-07-01 21:22:11 +0000224 /// An enumeration that specifies whether to get dynamic values,
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000225 /// and also if the target can be run to figure out the dynamic
226 /// type of the child value.
227 ///
228 /// @param[in] synthetic_allowed
229 /// If \b true, then allow child values to be created by index
230 /// for pointers and arrays for indexes that normally wouldn't
231 /// be allowed.
232 ///
233 /// @return
234 /// A new SBValue object that represents the child member value.
235 //------------------------------------------------------------------
236 ") GetChildAtIndex;
237 lldb::SBValue
238 GetChildAtIndex (uint32_t idx,
239 lldb::DynamicValueType use_dynamic,
240 bool can_create_synthetic);
Enrico Granata6f3533f2011-07-29 19:53:35 +0000241
242 lldb::SBValue
Greg Claytonbf2331c2011-09-09 23:04:00 +0000243 CreateChildAtOffset (const char *name, uint32_t offset, lldb::SBType type);
Enrico Granata6f3533f2011-07-29 19:53:35 +0000244
245 lldb::SBValue
Greg Claytonbf2331c2011-09-09 23:04:00 +0000246 SBValue::Cast (lldb::SBType type);
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000247
Enrico Granata6f3533f2011-07-29 19:53:35 +0000248 lldb::SBValue
249 CreateValueFromExpression (const char *name, const char* expression);
Jim Ingham35e1bda2012-10-16 21:41:58 +0000250
251 lldb::SBValue
252 CreateValueFromExpression (const char *name, const char* expression, SBExpressionOptions &options);
Enrico Granata6f3533f2011-07-29 19:53:35 +0000253
254 lldb::SBValue
Greg Claytonbf2331c2011-09-09 23:04:00 +0000255 CreateValueFromAddress(const char* name, lldb::addr_t address, lldb::SBType type);
Enrico Granata6f3533f2011-07-29 19:53:35 +0000256
Enrico Granata9128ee22011-09-06 19:20:51 +0000257 lldb::SBValue
258 CreateValueFromData (const char* name,
Greg Claytonbf2331c2011-09-09 23:04:00 +0000259 lldb::SBData data,
260 lldb::SBType type);
Enrico Granata9128ee22011-09-06 19:20:51 +0000261
Enrico Granata6f3533f2011-07-29 19:53:35 +0000262 lldb::SBType
263 GetType();
264
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000265 %feature("docstring", "
266 //------------------------------------------------------------------
267 /// Returns the child member index.
268 ///
269 /// Matches children of this object only and will match base classes and
270 /// member names if this is a clang typed object.
271 ///
272 /// @param[in] name
273 /// The name of the child value to get
274 ///
275 /// @return
276 /// An index to the child member value.
277 //------------------------------------------------------------------
278 ") GetIndexOfChildWithName;
279 uint32_t
280 GetIndexOfChildWithName (const char *name);
281
282 lldb::SBValue
283 GetChildMemberWithName (const char *name);
284
285 %feature("docstring", "
286 //------------------------------------------------------------------
287 /// Returns the child member value.
288 ///
289 /// Matches child members of this object and child members of any base
290 /// classes.
291 ///
292 /// @param[in] name
293 /// The name of the child value to get
294 ///
295 /// @param[in] use_dynamic
Bruce Mitchenerd93c4a32014-07-01 21:22:11 +0000296 /// An enumeration that specifies whether to get dynamic values,
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000297 /// and also if the target can be run to figure out the dynamic
298 /// type of the child value.
299 ///
300 /// @return
301 /// A new SBValue object that represents the child member value.
302 //------------------------------------------------------------------
303 ") GetChildMemberWithName;
304 lldb::SBValue
305 GetChildMemberWithName (const char *name, lldb::DynamicValueType use_dynamic);
306
307 %feature("docstring", "Expands nested expressions like .a->b[0].c[1]->d."
308 ) GetValueForExpressionPath;
309 lldb::SBValue
310 GetValueForExpressionPath(const char* expr_path);
311
Enrico Granata10de0902012-10-10 22:54:17 +0000312 lldb::SBDeclaration
313 GetDeclaration ();
314
Greg Clayton4a792072012-10-23 01:50:10 +0000315 bool
316 MightHaveChildren ();
317
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000318 uint32_t
319 GetNumChildren ();
320
321 void *
322 GetOpaqueType();
323
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000324 lldb::SBValue
325 Dereference ();
326
Enrico Granata6f3533f2011-07-29 19:53:35 +0000327 lldb::SBValue
328 AddressOf();
329
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000330 bool
331 TypeIsPointerType ();
Enrico Granata6f3533f2011-07-29 19:53:35 +0000332
333 lldb::SBTarget
334 GetTarget();
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000335
Enrico Granata6f3533f2011-07-29 19:53:35 +0000336 lldb::SBProcess
337 GetProcess();
338
339 lldb::SBThread
340 GetThread();
341
342 lldb::SBFrame
343 GetFrame();
344
Johnny Chen01a67862011-10-14 00:42:25 +0000345 %feature("docstring", "
346 /// Find and watch a variable.
347 /// It returns an SBWatchpoint, which may be invalid.
348 ") Watch;
Greg Clayton1b282f92011-10-13 18:08:26 +0000349 lldb::SBWatchpoint
Johnny Chenb90827e2012-06-04 23:19:54 +0000350 Watch (bool resolve_location, bool read, bool write, SBError &error);
Greg Clayton1b282f92011-10-13 18:08:26 +0000351
Johnny Chen01a67862011-10-14 00:42:25 +0000352 %feature("docstring", "
353 /// Find and watch the location pointed to by a variable.
354 /// It returns an SBWatchpoint, which may be invalid.
355 ") WatchPointee;
Greg Clayton1b282f92011-10-13 18:08:26 +0000356 lldb::SBWatchpoint
Johnny Chenb90827e2012-06-04 23:19:54 +0000357 WatchPointee (bool resolve_location, bool read, bool write, SBError &error);
Greg Clayton1b282f92011-10-13 18:08:26 +0000358
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000359 bool
360 GetDescription (lldb::SBStream &description);
361
362 bool
363 GetExpressionPath (lldb::SBStream &description);
Enrico Granata9128ee22011-09-06 19:20:51 +0000364
365 %feature("docstring", "
366 //------------------------------------------------------------------
367 /// Get an SBData wrapping what this SBValue points to.
368 ///
369 /// This method will dereference the current SBValue, if its
370 /// data type is a T* or T[], and extract item_count elements
371 /// of type T from it, copying their contents in an SBData.
372 ///
373 /// @param[in] item_idx
374 /// The index of the first item to retrieve. For an array
375 /// this is equivalent to array[item_idx], for a pointer
376 /// to *(pointer + item_idx). In either case, the measurement
377 /// unit for item_idx is the sizeof(T) rather than the byte
378 ///
379 /// @param[in] item_count
380 /// How many items should be copied into the output. By default
381 /// only one item is copied, but more can be asked for.
382 ///
383 /// @return
384 /// An SBData with the contents of the copied items, on success.
385 /// An empty SBData otherwise.
386 //------------------------------------------------------------------
387 ") GetPointeeData;
388 lldb::SBData
389 GetPointeeData (uint32_t item_idx = 0,
390 uint32_t item_count = 1);
391
392 %feature("docstring", "
393 //------------------------------------------------------------------
394 /// Get an SBData wrapping the contents of this SBValue.
395 ///
396 /// This method will read the contents of this object in memory
397 /// and copy them into an SBData for future use.
398 ///
399 /// @return
400 /// An SBData with the contents of this SBValue, on success.
401 /// An empty SBData otherwise.
402 //------------------------------------------------------------------
403 ") GetData;
404 lldb::SBData
405 GetData ();
Sean Callanand3f99682013-04-13 01:28:33 +0000406
407 bool
408 SetData (lldb::SBData &data, lldb::SBError& error);
Enrico Granata9128ee22011-09-06 19:20:51 +0000409
410 lldb::addr_t
411 GetLoadAddress();
412
413 lldb::SBAddress
414 GetAddress();
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000415
Enrico Granata0c10a852014-12-08 23:13:56 +0000416 lldb::SBValue
417 Persist ();
418
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000419 %feature("docstring", "Returns an expression path for this value."
Enrico Granata9128ee22011-09-06 19:20:51 +0000420 ) GetExpressionPath;
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000421 bool
422 GetExpressionPath (lldb::SBStream &description, bool qualify_cxx_base_classes);
Greg Clayton13d19502012-01-29 06:07:39 +0000423
424 %pythoncode %{
Greg Clayton851eacb2012-04-11 16:20:15 +0000425 def __get_dynamic__ (self):
426 '''Helper function for the "SBValue.dynamic" property.'''
427 return self.GetDynamicValue (eDynamicCanRunTarget)
428
Greg Clayton13d19502012-01-29 06:07:39 +0000429 __swig_getmethods__["name"] = GetName
Greg Clayton5ef31a92012-06-29 22:00:42 +0000430 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 +0000431
432 __swig_getmethods__["type"] = GetType
Greg Clayton5ef31a92012-06-29 22:00:42 +0000433 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 +0000434
435 __swig_getmethods__["size"] = GetByteSize
Greg Clayton5ef31a92012-06-29 22:00:42 +0000436 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 +0000437
438 __swig_getmethods__["is_in_scope"] = IsInScope
Greg Clayton5ef31a92012-06-29 22:00:42 +0000439 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 +0000440
441 __swig_getmethods__["format"] = GetFormat
442 __swig_setmethods__["format"] = SetFormat
Greg Clayton5ef31a92012-06-29 22:00:42 +0000443 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 +0000444
445 __swig_getmethods__["value"] = GetValue
446 __swig_setmethods__["value"] = SetValueFromCString
Greg Clayton5ef31a92012-06-29 22:00:42 +0000447 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 +0000448
449 __swig_getmethods__["value_type"] = GetValueType
Greg Clayton5ef31a92012-06-29 22:00:42 +0000450 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 +0000451
452 __swig_getmethods__["changed"] = GetValueDidChange
Greg Clayton5ef31a92012-06-29 22:00:42 +0000453 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 +0000454
455 __swig_getmethods__["data"] = GetData
Greg Clayton5ef31a92012-06-29 22:00:42 +0000456 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 +0000457
458 __swig_getmethods__["load_addr"] = GetLoadAddress
Greg Clayton5ef31a92012-06-29 22:00:42 +0000459 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 +0000460
461 __swig_getmethods__["addr"] = GetAddress
Greg Clayton5ef31a92012-06-29 22:00:42 +0000462 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 +0000463
464 __swig_getmethods__["deref"] = Dereference
Greg Clayton5ef31a92012-06-29 22:00:42 +0000465 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 +0000466
467 __swig_getmethods__["address_of"] = AddressOf
Greg Clayton5ef31a92012-06-29 22:00:42 +0000468 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 +0000469
470 __swig_getmethods__["error"] = GetError
Greg Clayton5ef31a92012-06-29 22:00:42 +0000471 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 +0000472
473 __swig_getmethods__["summary"] = GetSummary
Greg Clayton5ef31a92012-06-29 22:00:42 +0000474 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 +0000475
476 __swig_getmethods__["description"] = GetObjectDescription
Greg Clayton5ef31a92012-06-29 22:00:42 +0000477 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 +0000478
479 __swig_getmethods__["dynamic"] = __get_dynamic__
Greg Clayton5ef31a92012-06-29 22:00:42 +0000480 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 +0000481
Greg Clayton13d19502012-01-29 06:07:39 +0000482 __swig_getmethods__["location"] = GetLocation
Greg Clayton5ef31a92012-06-29 22:00:42 +0000483 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 +0000484
485 __swig_getmethods__["target"] = GetTarget
Greg Clayton5ef31a92012-06-29 22:00:42 +0000486 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 +0000487
488 __swig_getmethods__["process"] = GetProcess
Greg Clayton5ef31a92012-06-29 22:00:42 +0000489 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 +0000490
491 __swig_getmethods__["thread"] = GetThread
Greg Clayton5ef31a92012-06-29 22:00:42 +0000492 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 +0000493
494 __swig_getmethods__["frame"] = GetFrame
Greg Clayton5ef31a92012-06-29 22:00:42 +0000495 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 +0000496
497 __swig_getmethods__["num_children"] = GetNumChildren
Greg Clayton5ef31a92012-06-29 22:00:42 +0000498 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 +0000499
Greg Clayton7edbdfc2012-02-03 07:02:37 +0000500 __swig_getmethods__["unsigned"] = GetValueAsUnsigned
Greg Clayton5ef31a92012-06-29 22:00:42 +0000501 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 +0000502
503 __swig_getmethods__["signed"] = GetValueAsSigned
Greg Clayton5ef31a92012-06-29 22:00:42 +0000504 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 +0000505
506 def get_expr_path(self):
507 s = SBStream()
508 self.GetExpressionPath (s)
509 return s.GetData()
510
511 __swig_getmethods__["path"] = get_expr_path
Greg Clayton5ef31a92012-06-29 22:00:42 +0000512 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 +0000513 %}
514
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000515};
516
517} // namespace lldb