LLDB mainline
SBValue.h
Go to the documentation of this file.
1//===-- SBValue.h -----------------------------------------------*- C++ -*-===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9#ifndef LLDB_API_SBVALUE_H
10#define LLDB_API_SBVALUE_H
11
12#include "lldb/API/SBData.h"
13#include "lldb/API/SBDefines.h"
14#include "lldb/API/SBType.h"
15
16namespace lldb_private {
17class ValueImpl;
18class ValueLocker;
19namespace python {
20class SWIGBridge;
21}
22} // namespace lldb_private
23
24namespace lldb {
25
27public:
28 SBValue();
29
30 SBValue(const lldb::SBValue &rhs);
31
33
35
36 explicit operator bool() const;
37
38 bool IsValid();
39
40 void Clear();
41
43
45
46 const char *GetName();
47
48 const char *GetTypeName();
49
50 const char *GetDisplayTypeName();
51
52 size_t GetByteSize();
53
54 bool IsInScope();
55
57
58 void SetFormat(lldb::Format format);
59
60 const char *GetValue();
61
62 int64_t GetValueAsSigned(lldb::SBError &error, int64_t fail_value = 0);
63
64 uint64_t GetValueAsUnsigned(lldb::SBError &error, uint64_t fail_value = 0);
65
66 int64_t GetValueAsSigned(int64_t fail_value = 0);
67
68 uint64_t GetValueAsUnsigned(uint64_t fail_value = 0);
69
71
73
74 // If you call this on a newly created ValueObject, it will always return
75 // false.
76 bool GetValueDidChange();
77
78 const char *GetSummary();
79
80 const char *GetSummary(lldb::SBStream &stream,
82
83 const char *GetObjectDescription();
84
86
88
90
92
94
96
98
100
101 void SetPreferSyntheticValue(bool use_synthetic);
102
103 bool IsDynamic();
104
105 bool IsSynthetic();
106
108
110
111 const char *GetLocation();
112
113 LLDB_DEPRECATED_FIXME("Use the variant that takes an SBError &",
114 "SetValueFromCString(const char *, SBError &)")
115 bool SetValueFromCString(const char *value_str);
116
117 bool SetValueFromCString(const char *value_str, lldb::SBError &error);
118
119 /// Returns false if this value cannot be modified through
120 /// SetValueFromCString() or SetData(), for instance because it
121 /// exists in the target, but has no writable storage (for example a
122 /// constant or variable value that was reconstructed from debug
123 /// info as the result of a computation). A true result does not
124 /// guarantee a write will succeed.
125 bool CanSetValue();
126
128
130
132
134
135 /// Override the `SBTypeSynthetic` chosen by the DataFormatter system for this
136 /// instance.
137 ///
138 /// This can be used to great effect in scripted synthetic children providers
139 /// where a child's underlying type can only be figured out by inspecting the
140 /// containing object's other members.
141 void SetTypeSynthetic(lldb::SBTypeSynthetic &synthetic);
142
143 /// This function's primary use is to ease inspecting the internal state of
144 /// scripted synthetic children providers for debugging purposes.
145 ///
146 /// An other alternative usecase is for parent synthetic children providers to
147 /// imbue their children's synthetic children providers with additional
148 /// context after creation.
150
151 lldb::SBValue GetChildAtIndex(uint32_t idx);
152
153 lldb::SBValue CreateChildAtOffset(const char *name, uint32_t offset,
154 lldb::SBType type);
155
156 LLDB_DEPRECATED("Use the expression evaluator to perform type casting")
157 lldb::SBValue Cast(lldb::SBType type);
158
159 lldb::SBValue CreateValueFromExpression(const char *name,
160 const char *expression);
161
162 lldb::SBValue CreateValueFromExpression(const char *name,
163 const char *expression,
164 SBExpressionOptions &options);
165
166 lldb::SBValue CreateValueFromAddress(const char *name, lldb::addr_t address,
167 lldb::SBType type);
168
169 // this has no address! GetAddress() and GetLoadAddress() as well as
170 // AddressOf() on the return of this call all return invalid
171 lldb::SBValue CreateValueFromData(const char *name, lldb::SBData data,
172 lldb::SBType type);
173 // Returned value has no address.
174 lldb::SBValue CreateBoolValue(const char *name, bool value);
175
176 /// Get a child value by index from a value.
177 ///
178 /// Structs, unions, classes, arrays and pointers have child
179 /// values that can be access by index.
180 ///
181 /// Structs and unions access child members using a zero based index
182 /// for each child member. For
183 ///
184 /// Classes reserve the first indexes for base classes that have
185 /// members (empty base classes are omitted), and all members of the
186 /// current class will then follow the base classes.
187 ///
188 /// For array and pointers the behavior of the function depends on the value
189 /// of the \a treat_as_array argument. If \b false, the function returns
190 /// members of the array as given by the array bounds. If the value is a
191 /// pointer to a simple type, the child at index zero is the only child
192 /// value available. If the pointer points to an aggregate type (an array,
193 /// class, union, etc.), then the pointee is transparently skipped and any
194 /// children are going to be the indexes of the child values within the
195 /// aggregate type. For example if we have a 'Point' type and we have a
196 /// SBValue that contains a pointer to a 'Point' type, then the child at
197 /// index zero will be the 'x' member, and the child at index 1 will be the
198 /// 'y' member (the child at index zero won't be a 'Point' instance). If \a
199 /// treat_as_array is \b true, pointer values will be used as a (C) array and
200 /// and the function will create 'synthetic' child values using positive or
201 /// negative indexes. In case of arrays, the function will return values
202 /// which are outside of the array bounds.
203 ///
204 /// If you actually need an SBValue that represents the type pointed
205 /// to by a SBValue for which GetType().IsPointeeType() returns true,
206 /// regardless of the pointee type, you can do that with SBValue::Dereference.
207 ///
208 /// \param[in] idx
209 /// The index of the child value to get
210 ///
211 /// \param[in] use_dynamic
212 /// An enumeration that specifies whether to get dynamic values,
213 /// and also if the target can be run to figure out the dynamic
214 /// type of the child value.
215 ///
216 /// \param[in] treat_as_array
217 /// If \b true, then allow child values to be created by index
218 /// for pointers and arrays for indexes that normally wouldn't
219 /// be allowed.
220 ///
221 /// \return
222 /// A new SBValue object that represents the child member value.
223 lldb::SBValue GetChildAtIndex(uint32_t idx,
224 lldb::DynamicValueType use_dynamic,
225 bool treat_as_array);
226
227 // Matches children of this object only and will match base classes and
228 // member names if this is a clang typed object.
229 uint32_t GetIndexOfChildWithName(const char *name);
230
231 // Matches child members of this object and child members of any base
232 // classes.
233 lldb::SBValue GetChildMemberWithName(const char *name);
234
235 // Matches child members of this object and child members of any base
236 // classes.
237 lldb::SBValue GetChildMemberWithName(const char *name,
238 lldb::DynamicValueType use_dynamic);
239
240 // Expands nested expressions like .a->b[0].c[1]->d
241 lldb::SBValue GetValueForExpressionPath(const char *expr_path);
242
244
246
248
249 /// Get an SBData wrapping what this SBValue points to.
250 ///
251 /// This method will dereference the current SBValue, if its
252 /// data type is a T* or T[], and extract item_count elements
253 /// of type T from it, copying their contents in an SBData.
254 ///
255 /// \param[in] item_idx
256 /// The index of the first item to retrieve. For an array
257 /// this is equivalent to array[item_idx], for a pointer
258 /// to *(pointer + item_idx). In either case, the measurement
259 /// unit for item_idx is the sizeof(T) rather than the byte
260 ///
261 /// \param[in] item_count
262 /// How many items should be copied into the output. By default
263 /// only one item is copied, but more can be asked for.
264 ///
265 /// \return
266 /// An SBData with the contents of the copied items, on success.
267 /// An empty SBData otherwise.
268 lldb::SBData GetPointeeData(uint32_t item_idx = 0, uint32_t item_count = 1);
269
270 /// Get an SBData wrapping the contents of this SBValue.
271 ///
272 /// This method will read the contents of this object in memory
273 /// and copy them into an SBData for future use.
274 ///
275 /// \return
276 /// An SBData with the contents of this SBValue, on success.
277 /// An empty SBData otherwise.
279
280 bool SetData(lldb::SBData &data, lldb::SBError &error);
281
282 /// Creates a copy of the SBValue with a new name and setting the current
283 /// SBValue as its parent. It should be used when we want to change the
284 /// name of a SBValue without modifying the actual SBValue itself
285 /// (e.g. sythetic child provider).
286 lldb::SBValue Clone(const char *new_name);
287
289
290 /// Find out if a SBValue might have children.
291 ///
292 /// This call is much more efficient than GetNumChildren() as it
293 /// doesn't need to complete the underlying type. This is designed
294 /// to be used in a UI environment in order to detect if the
295 /// disclosure triangle should be displayed or not.
296 ///
297 /// This function returns true for class, union, structure,
298 /// pointers, references, arrays and more. Again, it does so without
299 /// doing any expensive type completion.
300 ///
301 /// \return
302 /// Returns \b true if the SBValue might have children, or \b
303 /// false otherwise.
304 bool MightHaveChildren();
305
307
308 /// Return the number of children of this variable. Note that for some
309 /// variables this operation can be expensive. If possible, prefer calling
310 /// GetNumChildren(max) with the maximum number of children you are interested
311 /// in.
312 uint32_t GetNumChildren();
313
314 /// Return the numer of children of this variable, with a hint that the
315 /// caller is interested in at most \a max children. Use this function to
316 /// avoid expensive child computations in some cases. For example, if you know
317 /// you will only ever display 100 elements, calling GetNumChildren(100) can
318 /// avoid enumerating all the other children. If the returned value is smaller
319 /// than \a max, then it represents the true number of children, otherwise it
320 /// indicates that their number is at least \a max. Do not assume the returned
321 /// number will always be less than or equal to \a max, as the implementation
322 /// may choose to return a larger (but still smaller than the actual number of
323 /// children) value.
324 uint32_t GetNumChildren(uint32_t max);
325
326 LLDB_DEPRECATED("SBValue::GetOpaqueType() is deprecated.")
327 void *GetOpaqueType();
328
330
332
334
336
338
339 LLDB_DEPRECATED("Use GetType().IsPointerType() instead")
340 bool TypeIsPointerType();
341
343
345
346 bool GetDescription(lldb::SBStream &description);
347
348 bool GetDescription(lldb::SBStream &description,
349 lldb::DescriptionLevel description_level);
350
351 bool GetExpressionPath(lldb::SBStream &description);
352
353 bool GetExpressionPath(lldb::SBStream &description,
354 bool qualify_cxx_base_classes);
355
356 lldb::SBValue EvaluateExpression(const char *expr) const;
357 lldb::SBValue EvaluateExpression(const char *expr,
358 const SBExpressionOptions &options) const;
359 lldb::SBValue EvaluateExpression(const char *expr,
360 const SBExpressionOptions &options,
361 const char *name) const;
362
363 /// Watch this value if it resides in memory.
364 ///
365 /// Sets a watchpoint on the value.
366 ///
367 /// \param[in] resolve_location
368 /// Resolve the location of this value once and watch its address.
369 /// This value must currently be set to \b true as watching all
370 /// locations of a variable or a variable path is not yet supported,
371 /// though we plan to support it in the future.
372 ///
373 /// \param[in] read
374 /// Stop when this value is accessed.
375 ///
376 /// \param[in] write
377 /// Stop when this value is modified
378 ///
379 /// \param[out] error
380 /// An error object. Contains the reason if there is some failure.
381 ///
382 /// \return
383 /// An SBWatchpoint object. This object might not be valid upon
384 /// return due to a value not being contained in memory, too
385 /// large, or watchpoint resources are not available or all in
386 /// use.
387 lldb::SBWatchpoint Watch(bool resolve_location, bool read, bool write,
388 SBError &error);
389
390 // Backward compatibility fix in the interim.
391 lldb::SBWatchpoint Watch(bool resolve_location, bool read, bool write);
392
393 /// Watch this value that this value points to in memory
394 ///
395 /// Sets a watchpoint on the value.
396 ///
397 /// \param[in] resolve_location
398 /// Resolve the location of this value once and watch its address.
399 /// This value must currently be set to \b true as watching all
400 /// locations of a variable or a variable path is not yet supported,
401 /// though we plan to support it in the future.
402 ///
403 /// \param[in] read
404 /// Stop when this value is accessed.
405 ///
406 /// \param[in] write
407 /// Stop when this value is modified
408 ///
409 /// \param[out] error
410 /// An error object. Contains the reason if there is some failure.
411 ///
412 /// \return
413 /// An SBWatchpoint object. This object might not be valid upon
414 /// return due to a value not being contained in memory, too
415 /// large, or watchpoint resources are not available or all in
416 /// use.
417 lldb::SBWatchpoint WatchPointee(bool resolve_location, bool read, bool write,
418 SBError &error);
419
420 /// If this value represents a C++ class that has a vtable, return an value
421 /// that represents the virtual function table.
422 ///
423 /// SBValue::GetError() will be in the success state if this value represents
424 /// a C++ class with a vtable, or an appropriate error describing that the
425 /// object isn't a C++ class with a vtable or not a C++ class.
426 ///
427 /// SBValue::GetName() will be the demangled symbol name for the virtual
428 /// function table like "vtable for <classname>".
429 ///
430 /// SBValue::GetValue() will be the address of the first vtable entry if the
431 /// current SBValue is a class with a vtable, or nothing the current SBValue
432 /// is not a C++ class or not a C++ class that has a vtable.
433 ///
434 /// SBValue::GetValueAtUnsigned(...) will return the address of the first
435 /// vtable entry.
436 ///
437 /// SBValue::GetLoadAddress() will return the address of the vtable pointer
438 /// found in the parent SBValue.
439 ///
440 /// SBValue::GetNumChildren() will return the number of virtual function
441 /// pointers in the vtable, or zero on error.
442 ///
443 /// SBValue::GetChildAtIndex(...) will return each virtual function pointer
444 /// as a SBValue object.
445 ///
446 /// The child SBValue objects will have the following values:
447 ///
448 /// SBValue::GetError() will indicate success if the vtable entry was
449 /// successfully read from memory, or an error if not.
450 ///
451 /// SBValue::GetName() will be the vtable function index in the form "[%u]"
452 /// where %u is the index.
453 ///
454 /// SBValue::GetValue() will be the virtual function pointer value as a
455 /// string.
456 ///
457 /// SBValue::GetValueAtUnsigned(...) will return the virtual function
458 /// pointer value.
459 ///
460 /// SBValue::GetLoadAddress() will return the address of the virtual function
461 /// pointer.
462 ///
463 /// SBValue::GetNumChildren() returns 0
465
466protected:
467 friend class SBBlock;
469 friend class SBFrame;
470 friend class SBModule;
471 friend class SBTarget;
472 friend class SBThread;
473 friend class SBType;
474 friend class SBTypeStaticField;
475 friend class SBTypeSummary;
476 friend class SBValueList;
477
478 friend class lldb_private::python::SWIGBridge;
479
480 SBValue(const lldb::ValueObjectSP &value_sp);
481
482 /// Same as the protected version of GetSP that takes a locker, except that we
483 /// make the
484 /// locker locally in the function. Since the Target API mutex is recursive,
485 /// and the
486 /// StopLocker is a read lock, you can call this function even if you are
487 /// already
488 /// holding the two above-mentioned locks.
489 ///
490 /// \return
491 /// A ValueObjectSP of the best kind (static, dynamic or synthetic) we
492 /// can cons up, in accordance with the SBValue's settings.
493 lldb::ValueObjectSP GetSP() const;
494
495 /// Get the appropriate ValueObjectSP from this SBValue, consulting the
496 /// use_dynamic and use_synthetic options passed in to SetSP when the
497 /// SBValue's contents were set. Since this often requires examining memory,
498 /// and maybe even running code, it needs to acquire the Target API and
499 /// Process StopLock.
500 /// Those are held in an opaque class ValueLocker which is currently local to
501 /// SBValue.cpp.
502 /// So you don't have to get these yourself just default construct a
503 /// ValueLocker, and pass it into this.
504 /// If we need to make a ValueLocker and use it in some other .cpp file, we'll
505 /// have to move it to
506 /// ValueObject.h/cpp or somewhere else convenient. We haven't needed to so
507 /// far.
508 ///
509 /// \param[in] value_locker
510 /// An object that will hold the Target API, and Process RunLocks, and
511 /// auto-destroy them when it goes out of scope. Currently this is only
512 /// useful in
513 /// SBValue.cpp.
514 ///
515 /// \return
516 /// A ValueObjectSP of the best kind (static, dynamic or synthetic) we
517 /// can cons up, in accordance with the SBValue's settings.
518 lldb::ValueObjectSP GetSP(lldb_private::ValueLocker &value_locker) const;
519
520 // these calls do the right thing WRT adjusting their settings according to
521 // the target's preferences
522 void SetSP(const lldb::ValueObjectSP &sp);
523
524 void SetSP(const lldb::ValueObjectSP &sp, bool use_synthetic);
525
526 void SetSP(const lldb::ValueObjectSP &sp, lldb::DynamicValueType use_dynamic);
527
528 void SetSP(const lldb::ValueObjectSP &sp, lldb::DynamicValueType use_dynamic,
529 bool use_synthetic);
530
531 void SetSP(const lldb::ValueObjectSP &sp, lldb::DynamicValueType use_dynamic,
532 bool use_synthetic, const char *name);
533
534protected:
536
537private:
538 typedef std::shared_ptr<lldb_private::ValueImpl> ValueImplSP;
540
541 void SetSP(ValueImplSP impl_sp);
542};
543
544} // namespace lldb
545
546#endif // LLDB_API_SBVALUE_H
static llvm::raw_ostream & error(Stream &strm)
#define LLDB_API
Definition SBDefines.h:28
static llvm::StringRef GetName(XcodeSDK::Type type)
Definition XcodeSDK.cpp:21
lldb::addr_t GetValueAsAddress()
Definition SBValue.cpp:853
LLDB_DEPRECATED_FIXME("Use the variant that takes an SBError &", "SetValueFromCString(const char *, SBError &)") bool SetValueFromCString(const char *value_str)
bool IsInScope()
Definition SBValue.cpp:173
bool SetData(lldb::SBData &data, lldb::SBError &error)
Definition SBValue.cpp:1328
bool GetDescription(lldb::SBStream &description)
Definition SBValue.cpp:1166
bool GetValueDidChange()
Definition SBValue.cpp:240
lldb::SBValue EvaluateExpression(const char *expr) const
Definition SBValue.cpp:1097
friend class SBValueList
Definition SBValue.h:476
lldb::SBValue GetChildAtIndex(uint32_t idx)
Definition SBValue.cpp:556
lldb::SBTypeFilter GetTypeFilter()
Definition SBValue.cpp:356
lldb::SBAddress GetAddress()
Definition SBValue.cpp:1265
lldb::SBData GetPointeeData(uint32_t item_idx=0, uint32_t item_count=1)
Get an SBData wrapping what this SBValue points to.
Definition SBValue.cpp:1292
const char * GetTypeName()
Definition SBValue.cpp:137
bool GetExpressionPath(lldb::SBStream &description)
Definition SBValue.cpp:1072
LLDB_DEPRECATED("Use GetType().IsPointerType() instead") bool TypeIsPointerType()
friend class lldb_private::python::SWIGBridge
Definition SBValue.h:478
friend class SBCommandReturnObject
Definition SBValue.h:468
SBError GetError()
Definition SBValue.cpp:100
lldb::SBValue CreateValueFromData(const char *name, lldb::SBData data, lldb::SBType type)
Definition SBValue.cpp:504
lldb::SBValue Persist()
Definition SBValue.cpp:1477
friend class SBTypeSummary
Definition SBValue.h:475
void SetSP(const lldb::ValueObjectSP &sp)
Definition SBValue.cpp:1020
lldb::SBValue CreateValueFromAddress(const char *name, lldb::addr_t address, lldb::SBType type)
Definition SBValue.cpp:484
const char * GetDisplayTypeName()
Definition SBValue.cpp:148
lldb::SBValue CreateValueFromExpression(const char *name, const char *expression)
Definition SBValue.cpp:455
lldb::SBData GetData()
Get an SBData wrapping the contents of this SBValue.
Definition SBValue.cpp:1311
lldb::SBValue Clone(const char *new_name)
Creates a copy of the SBValue with a new name and setting the current SBValue as its parent.
Definition SBValue.cpp:1362
void SetSyntheticChildrenGenerated(bool)
Definition SBValue.cpp:765
void Clear()
Definition SBValue.cpp:94
lldb::SBProcess GetProcess()
Definition SBValue.cpp:959
const char * GetLocation()
Definition SBValue.cpp:279
lldb::SBValue CreateBoolValue(const char *name, bool value)
Definition SBValue.cpp:523
bool IsSynthetic()
Definition SBValue.cpp:745
friend class SBTarget
Definition SBValue.h:471
size_t GetByteSize()
Definition SBValue.cpp:159
friend class SBModule
Definition SBValue.h:470
lldb::SBValue & operator=(const lldb::SBValue &rhs)
Definition SBValue.cpp:69
int64_t GetValueAsSigned(lldb::SBError &error, int64_t fail_value=0)
Definition SBValue.cpp:791
lldb::SBWatchpoint WatchPointee(bool resolve_location, bool read, bool write, SBError &error)
Watch this value that this value points to in memory.
Definition SBValue.cpp:1467
friend class SBTypeStaticField
Definition SBValue.h:474
bool CanSetValue()
Returns false if this value cannot be modified through SetValueFromCString() or SetData(),...
Definition SBValue.cpp:313
lldb::SBWatchpoint Watch(bool resolve_location, bool read, bool write, SBError &error)
Watch this value if it resides in memory.
Definition SBValue.cpp:1388
lldb::SBTypeFormat GetTypeFormat()
Definition SBValue.cpp:324
lldb::user_id_t GetID()
Definition SBValue.cpp:116
lldb::SBFrame GetFrame()
Definition SBValue.cpp:985
const char * GetValue()
Definition SBValue.cpp:187
bool MightHaveChildren()
Find out if a SBValue might have children.
Definition SBValue.cpp:872
lldb::SBTypeSummary GetTypeSummary()
Definition SBValue.cpp:340
lldb::SBValue GetDynamicValue(lldb::DynamicValueType use_dynamic)
Definition SBValue.cpp:653
bool IsDynamic()
Definition SBValue.cpp:735
bool IsSyntheticChildrenGenerated()
Definition SBValue.cpp:755
lldb::SBValue GetSyntheticValue()
Definition SBValue.cpp:690
lldb::SBValue CreateChildAtOffset(const char *name, uint32_t offset, lldb::SBType type)
Definition SBValue.cpp:423
lldb::SBScriptObject GetTypeSyntheticImplementation()
This function's primary use is to ease inspecting the internal state of scripted synthetic children p...
Definition SBValue.cpp:407
lldb::SBValue Dereference()
Definition SBValue.cpp:915
lldb::SBValue GetStaticValue()
Definition SBValue.cpp:665
lldb::SBValue Cast(lldb::SBType type)
Definition SBValue.cpp:442
void SetTypeSynthetic(lldb::SBTypeSynthetic &synthetic)
Override the SBTypeSynthetic chosen by the DataFormatter system for this instance.
Definition SBValue.cpp:396
friend class SBThread
Definition SBValue.h:472
lldb::SBValue GetNonSyntheticValue()
Definition SBValue.cpp:678
bool GetPreferSyntheticValue()
Definition SBValue.cpp:720
uint32_t GetIndexOfChildWithName(const char *name)
Definition SBValue.cpp:593
friend class SBBlock
Definition SBValue.h:467
lldb::SBValue GetVTable()
If this value represents a C++ class that has a vtable, return an value that represents the virtual f...
Definition SBValue.cpp:1489
const char * GetObjectDescription()
Definition SBValue.cpp:209
const char * GetSummary()
Definition SBValue.cpp:254
friend class lldb_private::ScriptInterpreter
Definition SBValue.h:535
lldb::ValueObjectSP GetSP() const
Same as the protected version of GetSP that takes a locker, except that we make the locker locally in...
Definition SBValue.cpp:1011
lldb::SBTypeSynthetic GetTypeSynthetic()
Definition SBValue.cpp:376
void SetFormat(lldb::Format format)
Definition SBValue.cpp:1229
lldb::SBValue AddressOf()
Definition SBValue.cpp:1238
friend class SBFrame
Definition SBValue.h:469
bool SetValueFromCString(const char *value_str, lldb::SBError &error)
Definition SBValue.cpp:291
lldb::DynamicValueType GetPreferDynamicValue()
Definition SBValue.cpp:705
std::shared_ptr< lldb_private::ValueImpl > ValueImplSP
Definition SBValue.h:538
lldb::SBThread GetThread()
Definition SBValue.cpp:972
ValueImplSP m_opaque_sp
Definition SBValue.h:539
lldb::SBValue GetChildMemberWithName(const char *name)
Definition SBValue.cpp:607
lldb::SBTarget GetTarget()
Definition SBValue.cpp:946
uint64_t GetValueAsUnsigned(lldb::SBError &error, uint64_t fail_value=0)
Definition SBValue.cpp:811
uint32_t GetNumChildren()
Return the number of children of this variable.
Definition SBValue.cpp:896
void SetPreferDynamicValue(lldb::DynamicValueType use_dynamic)
Definition SBValue.cpp:713
ValueType GetValueType()
Definition SBValue.cpp:197
void * GetOpaqueType()
Definition SBValue.cpp:936
friend class SBType
Definition SBValue.h:473
bool IsValid()
Definition SBValue.cpp:80
lldb::SBValue GetValueForExpressionPath(const char *expr_path)
Definition SBValue.cpp:774
lldb::addr_t GetLoadAddress()
Definition SBValue.cpp:1253
lldb::SBType GetType()
Definition SBValue.cpp:225
lldb::SBValue GetParent()
Definition SBValue.cpp:639
void SetPreferSyntheticValue(bool use_synthetic)
Definition SBValue.cpp:728
lldb::SBDeclaration GetDeclaration()
Definition SBValue.cpp:1374
lldb::Format GetFormat()
Definition SBValue.cpp:1219
bool IsRuntimeSupportValue()
Definition SBValue.cpp:884
A class that represents a running process on the host machine.
DescriptionLevel
Description levels for "void GetDescription(Stream *, DescriptionLevel)" calls.
std::shared_ptr< lldb_private::ValueObject > ValueObjectSP
Format
Display format definitions.
uint64_t user_id_t
Definition lldb-types.h:82
uint64_t addr_t
Definition lldb-types.h:80