blob: db780394e71aaa8535be1a21545260b034e5b19a [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 Granatac1247f52014-11-06 21:23:20 +0000125 GetSummary (lldb::SBTypeSummaryOptions& options);
126
127 const char *
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000128 GetObjectDescription ();
Enrico Granataedc44142014-09-06 01:30:04 +0000129
130 const char *
131 GetTypeValidatorResult ();
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000132
Jim Ingham60dbabb2011-12-08 19:44:08 +0000133 lldb::SBValue
134 GetDynamicValue (lldb::DynamicValueType use_dynamic);
135
136 lldb::SBValue
137 GetStaticValue ();
138
Enrico Granatac5bc4122012-03-27 02:35:13 +0000139 lldb::SBValue
140 GetNonSyntheticValue ();
Enrico Granatae3e91512012-10-22 18:18:36 +0000141
142 lldb::DynamicValueType
143 GetPreferDynamicValue ();
144
145 void
146 SetPreferDynamicValue (lldb::DynamicValueType use_dynamic);
147
148 bool
149 GetPreferSyntheticValue ();
150
151 void
152 SetPreferSyntheticValue (bool use_synthetic);
Enrico Granatac5bc4122012-03-27 02:35:13 +0000153
Jim Ingham60dbabb2011-12-08 19:44:08 +0000154 bool
155 IsDynamic();
Enrico Granatae3e91512012-10-22 18:18:36 +0000156
157 bool
158 IsSynthetic ();
Jim Ingham60dbabb2011-12-08 19:44:08 +0000159
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000160 const char *
161 GetLocation ();
162
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000163 bool
164 SetValueFromCString (const char *value_str);
165
Enrico Granata07a4ac22012-05-08 21:25:06 +0000166 bool
167 SetValueFromCString (const char *value_str, lldb::SBError& error);
168
Enrico Granata864e3e82012-02-17 03:18:30 +0000169 lldb::SBTypeFormat
170 GetTypeFormat ();
171
172 lldb::SBTypeSummary
173 GetTypeSummary ();
174
175 lldb::SBTypeFilter
176 GetTypeFilter ();
177
178 lldb::SBTypeSynthetic
179 GetTypeSynthetic ();
180
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000181 lldb::SBValue
182 GetChildAtIndex (uint32_t idx);
183
184 %feature("docstring", "
185 //------------------------------------------------------------------
186 /// Get a child value by index from a value.
187 ///
Bruce Mitchenerd93c4a32014-07-01 21:22:11 +0000188 /// Structs, unions, classes, arrays and pointers have child
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000189 /// values that can be access by index.
190 ///
191 /// Structs and unions access child members using a zero based index
192 /// for each child member. For
193 ///
194 /// Classes reserve the first indexes for base classes that have
195 /// members (empty base classes are omitted), and all members of the
196 /// current class will then follow the base classes.
197 ///
198 /// Pointers differ depending on what they point to. If the pointer
199 /// points to a simple type, the child at index zero
200 /// is the only child value available, unless \a synthetic_allowed
201 /// is \b true, in which case the pointer will be used as an array
202 /// and can create 'synthetic' child values using positive or
203 /// negative indexes. If the pointer points to an aggregate type
204 /// (an array, class, union, struct), then the pointee is
205 /// transparently skipped and any children are going to be the indexes
206 /// of the child values within the aggregate type. For example if
207 /// we have a 'Point' type and we have a SBValue that contains a
208 /// pointer to a 'Point' type, then the child at index zero will be
209 /// the 'x' member, and the child at index 1 will be the 'y' member
210 /// (the child at index zero won't be a 'Point' instance).
211 ///
212 /// Arrays have a preset number of children that can be accessed by
213 /// index and will returns invalid child values for indexes that are
214 /// out of bounds unless the \a synthetic_allowed is \b true. In this
215 /// case the array can create 'synthetic' child values for indexes
216 /// that aren't in the array bounds using positive or negative
217 /// indexes.
218 ///
219 /// @param[in] idx
220 /// The index of the child value to get
221 ///
222 /// @param[in] use_dynamic
Bruce Mitchenerd93c4a32014-07-01 21:22:11 +0000223 /// An enumeration that specifies whether to get dynamic values,
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000224 /// and also if the target can be run to figure out the dynamic
225 /// type of the child value.
226 ///
227 /// @param[in] synthetic_allowed
228 /// If \b true, then allow child values to be created by index
229 /// for pointers and arrays for indexes that normally wouldn't
230 /// be allowed.
231 ///
232 /// @return
233 /// A new SBValue object that represents the child member value.
234 //------------------------------------------------------------------
235 ") GetChildAtIndex;
236 lldb::SBValue
237 GetChildAtIndex (uint32_t idx,
238 lldb::DynamicValueType use_dynamic,
239 bool can_create_synthetic);
Enrico Granata6f3533f2011-07-29 19:53:35 +0000240
241 lldb::SBValue
Greg Claytonbf2331c2011-09-09 23:04:00 +0000242 CreateChildAtOffset (const char *name, uint32_t offset, lldb::SBType type);
Enrico Granata6f3533f2011-07-29 19:53:35 +0000243
244 lldb::SBValue
Greg Claytonbf2331c2011-09-09 23:04:00 +0000245 SBValue::Cast (lldb::SBType type);
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000246
Enrico Granata6f3533f2011-07-29 19:53:35 +0000247 lldb::SBValue
248 CreateValueFromExpression (const char *name, const char* expression);
Jim Ingham35e1bda2012-10-16 21:41:58 +0000249
250 lldb::SBValue
251 CreateValueFromExpression (const char *name, const char* expression, SBExpressionOptions &options);
Enrico Granata6f3533f2011-07-29 19:53:35 +0000252
253 lldb::SBValue
Greg Claytonbf2331c2011-09-09 23:04:00 +0000254 CreateValueFromAddress(const char* name, lldb::addr_t address, lldb::SBType type);
Enrico Granata6f3533f2011-07-29 19:53:35 +0000255
Enrico Granata9128ee22011-09-06 19:20:51 +0000256 lldb::SBValue
257 CreateValueFromData (const char* name,
Greg Claytonbf2331c2011-09-09 23:04:00 +0000258 lldb::SBData data,
259 lldb::SBType type);
Enrico Granata9128ee22011-09-06 19:20:51 +0000260
Enrico Granata6f3533f2011-07-29 19:53:35 +0000261 lldb::SBType
262 GetType();
263
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000264 %feature("docstring", "
265 //------------------------------------------------------------------
266 /// Returns the child member index.
267 ///
268 /// Matches children of this object only and will match base classes and
269 /// member names if this is a clang typed object.
270 ///
271 /// @param[in] name
272 /// The name of the child value to get
273 ///
274 /// @return
275 /// An index to the child member value.
276 //------------------------------------------------------------------
277 ") GetIndexOfChildWithName;
278 uint32_t
279 GetIndexOfChildWithName (const char *name);
280
281 lldb::SBValue
282 GetChildMemberWithName (const char *name);
283
284 %feature("docstring", "
285 //------------------------------------------------------------------
286 /// Returns the child member value.
287 ///
288 /// Matches child members of this object and child members of any base
289 /// classes.
290 ///
291 /// @param[in] name
292 /// The name of the child value to get
293 ///
294 /// @param[in] use_dynamic
Bruce Mitchenerd93c4a32014-07-01 21:22:11 +0000295 /// An enumeration that specifies whether to get dynamic values,
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000296 /// and also if the target can be run to figure out the dynamic
297 /// type of the child value.
298 ///
299 /// @return
300 /// A new SBValue object that represents the child member value.
301 //------------------------------------------------------------------
302 ") GetChildMemberWithName;
303 lldb::SBValue
304 GetChildMemberWithName (const char *name, lldb::DynamicValueType use_dynamic);
305
306 %feature("docstring", "Expands nested expressions like .a->b[0].c[1]->d."
307 ) GetValueForExpressionPath;
308 lldb::SBValue
309 GetValueForExpressionPath(const char* expr_path);
310
Enrico Granata10de0902012-10-10 22:54:17 +0000311 lldb::SBDeclaration
312 GetDeclaration ();
313
Greg Clayton4a792072012-10-23 01:50:10 +0000314 bool
315 MightHaveChildren ();
316
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000317 uint32_t
318 GetNumChildren ();
319
320 void *
321 GetOpaqueType();
322
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000323 lldb::SBValue
324 Dereference ();
325
Enrico Granata6f3533f2011-07-29 19:53:35 +0000326 lldb::SBValue
327 AddressOf();
328
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000329 bool
330 TypeIsPointerType ();
Enrico Granata6f3533f2011-07-29 19:53:35 +0000331
332 lldb::SBTarget
333 GetTarget();
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000334
Enrico Granata6f3533f2011-07-29 19:53:35 +0000335 lldb::SBProcess
336 GetProcess();
337
338 lldb::SBThread
339 GetThread();
340
341 lldb::SBFrame
342 GetFrame();
343
Johnny Chen01a67862011-10-14 00:42:25 +0000344 %feature("docstring", "
345 /// Find and watch a variable.
346 /// It returns an SBWatchpoint, which may be invalid.
347 ") Watch;
Greg Clayton1b282f92011-10-13 18:08:26 +0000348 lldb::SBWatchpoint
Johnny Chenb90827e2012-06-04 23:19:54 +0000349 Watch (bool resolve_location, bool read, bool write, SBError &error);
Greg Clayton1b282f92011-10-13 18:08:26 +0000350
Johnny Chen01a67862011-10-14 00:42:25 +0000351 %feature("docstring", "
352 /// Find and watch the location pointed to by a variable.
353 /// It returns an SBWatchpoint, which may be invalid.
354 ") WatchPointee;
Greg Clayton1b282f92011-10-13 18:08:26 +0000355 lldb::SBWatchpoint
Johnny Chenb90827e2012-06-04 23:19:54 +0000356 WatchPointee (bool resolve_location, bool read, bool write, SBError &error);
Greg Clayton1b282f92011-10-13 18:08:26 +0000357
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000358 bool
359 GetDescription (lldb::SBStream &description);
360
361 bool
362 GetExpressionPath (lldb::SBStream &description);
Enrico Granata9128ee22011-09-06 19:20:51 +0000363
364 %feature("docstring", "
365 //------------------------------------------------------------------
366 /// Get an SBData wrapping what this SBValue points to.
367 ///
368 /// This method will dereference the current SBValue, if its
369 /// data type is a T* or T[], and extract item_count elements
370 /// of type T from it, copying their contents in an SBData.
371 ///
372 /// @param[in] item_idx
373 /// The index of the first item to retrieve. For an array
374 /// this is equivalent to array[item_idx], for a pointer
375 /// to *(pointer + item_idx). In either case, the measurement
376 /// unit for item_idx is the sizeof(T) rather than the byte
377 ///
378 /// @param[in] item_count
379 /// How many items should be copied into the output. By default
380 /// only one item is copied, but more can be asked for.
381 ///
382 /// @return
383 /// An SBData with the contents of the copied items, on success.
384 /// An empty SBData otherwise.
385 //------------------------------------------------------------------
386 ") GetPointeeData;
387 lldb::SBData
388 GetPointeeData (uint32_t item_idx = 0,
389 uint32_t item_count = 1);
390
391 %feature("docstring", "
392 //------------------------------------------------------------------
393 /// Get an SBData wrapping the contents of this SBValue.
394 ///
395 /// This method will read the contents of this object in memory
396 /// and copy them into an SBData for future use.
397 ///
398 /// @return
399 /// An SBData with the contents of this SBValue, on success.
400 /// An empty SBData otherwise.
401 //------------------------------------------------------------------
402 ") GetData;
403 lldb::SBData
404 GetData ();
Sean Callanand3f99682013-04-13 01:28:33 +0000405
406 bool
407 SetData (lldb::SBData &data, lldb::SBError& error);
Enrico Granata9128ee22011-09-06 19:20:51 +0000408
409 lldb::addr_t
410 GetLoadAddress();
411
412 lldb::SBAddress
413 GetAddress();
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000414
415 %feature("docstring", "Returns an expression path for this value."
Enrico Granata9128ee22011-09-06 19:20:51 +0000416 ) GetExpressionPath;
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000417 bool
418 GetExpressionPath (lldb::SBStream &description, bool qualify_cxx_base_classes);
Greg Clayton13d19502012-01-29 06:07:39 +0000419
420 %pythoncode %{
Greg Clayton851eacb2012-04-11 16:20:15 +0000421 def __get_dynamic__ (self):
422 '''Helper function for the "SBValue.dynamic" property.'''
423 return self.GetDynamicValue (eDynamicCanRunTarget)
424
Greg Clayton13d19502012-01-29 06:07:39 +0000425 __swig_getmethods__["name"] = GetName
Greg Clayton5ef31a92012-06-29 22:00:42 +0000426 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 +0000427
428 __swig_getmethods__["type"] = GetType
Greg Clayton5ef31a92012-06-29 22:00:42 +0000429 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 +0000430
431 __swig_getmethods__["size"] = GetByteSize
Greg Clayton5ef31a92012-06-29 22:00:42 +0000432 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 +0000433
434 __swig_getmethods__["is_in_scope"] = IsInScope
Greg Clayton5ef31a92012-06-29 22:00:42 +0000435 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 +0000436
437 __swig_getmethods__["format"] = GetFormat
438 __swig_setmethods__["format"] = SetFormat
Greg Clayton5ef31a92012-06-29 22:00:42 +0000439 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 +0000440
441 __swig_getmethods__["value"] = GetValue
442 __swig_setmethods__["value"] = SetValueFromCString
Greg Clayton5ef31a92012-06-29 22:00:42 +0000443 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 +0000444
445 __swig_getmethods__["value_type"] = GetValueType
Greg Clayton5ef31a92012-06-29 22:00:42 +0000446 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 +0000447
448 __swig_getmethods__["changed"] = GetValueDidChange
Greg Clayton5ef31a92012-06-29 22:00:42 +0000449 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 +0000450
451 __swig_getmethods__["data"] = GetData
Greg Clayton5ef31a92012-06-29 22:00:42 +0000452 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 +0000453
454 __swig_getmethods__["load_addr"] = GetLoadAddress
Greg Clayton5ef31a92012-06-29 22:00:42 +0000455 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 +0000456
457 __swig_getmethods__["addr"] = GetAddress
Greg Clayton5ef31a92012-06-29 22:00:42 +0000458 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 +0000459
460 __swig_getmethods__["deref"] = Dereference
Greg Clayton5ef31a92012-06-29 22:00:42 +0000461 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 +0000462
463 __swig_getmethods__["address_of"] = AddressOf
Greg Clayton5ef31a92012-06-29 22:00:42 +0000464 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 +0000465
466 __swig_getmethods__["error"] = GetError
Greg Clayton5ef31a92012-06-29 22:00:42 +0000467 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 +0000468
469 __swig_getmethods__["summary"] = GetSummary
Greg Clayton5ef31a92012-06-29 22:00:42 +0000470 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 +0000471
472 __swig_getmethods__["description"] = GetObjectDescription
Greg Clayton5ef31a92012-06-29 22:00:42 +0000473 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 +0000474
475 __swig_getmethods__["dynamic"] = __get_dynamic__
Greg Clayton5ef31a92012-06-29 22:00:42 +0000476 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 +0000477
Greg Clayton13d19502012-01-29 06:07:39 +0000478 __swig_getmethods__["location"] = GetLocation
Greg Clayton5ef31a92012-06-29 22:00:42 +0000479 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 +0000480
481 __swig_getmethods__["target"] = GetTarget
Greg Clayton5ef31a92012-06-29 22:00:42 +0000482 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 +0000483
484 __swig_getmethods__["process"] = GetProcess
Greg Clayton5ef31a92012-06-29 22:00:42 +0000485 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 +0000486
487 __swig_getmethods__["thread"] = GetThread
Greg Clayton5ef31a92012-06-29 22:00:42 +0000488 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 +0000489
490 __swig_getmethods__["frame"] = GetFrame
Greg Clayton5ef31a92012-06-29 22:00:42 +0000491 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 +0000492
493 __swig_getmethods__["num_children"] = GetNumChildren
Greg Clayton5ef31a92012-06-29 22:00:42 +0000494 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 +0000495
Greg Clayton7edbdfc2012-02-03 07:02:37 +0000496 __swig_getmethods__["unsigned"] = GetValueAsUnsigned
Greg Clayton5ef31a92012-06-29 22:00:42 +0000497 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 +0000498
499 __swig_getmethods__["signed"] = GetValueAsSigned
Greg Clayton5ef31a92012-06-29 22:00:42 +0000500 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 +0000501
502 def get_expr_path(self):
503 s = SBStream()
504 self.GetExpressionPath (s)
505 return s.GetData()
506
507 __swig_getmethods__["path"] = get_expr_path
Greg Clayton5ef31a92012-06-29 22:00:42 +0000508 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 +0000509 %}
510
Johnny Chen67ae7bd2011-07-18 19:08:30 +0000511};
512
513} // namespace lldb