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 lldb::SBValue GetChildAtIndex(uint32_t idx);
136
137 lldb::SBValue CreateChildAtOffset(const char *name, uint32_t offset,
138 lldb::SBType type);
139
140 LLDB_DEPRECATED("Use the expression evaluator to perform type casting")
141 lldb::SBValue Cast(lldb::SBType type);
142
143 lldb::SBValue CreateValueFromExpression(const char *name,
144 const char *expression);
145
146 lldb::SBValue CreateValueFromExpression(const char *name,
147 const char *expression,
148 SBExpressionOptions &options);
149
150 lldb::SBValue CreateValueFromAddress(const char *name, lldb::addr_t address,
151 lldb::SBType type);
152
153 // this has no address! GetAddress() and GetLoadAddress() as well as
154 // AddressOf() on the return of this call all return invalid
155 lldb::SBValue CreateValueFromData(const char *name, lldb::SBData data,
156 lldb::SBType type);
157 // Returned value has no address.
158 lldb::SBValue CreateBoolValue(const char *name, bool value);
159
160 /// Get a child value by index from a value.
161 ///
162 /// Structs, unions, classes, arrays and pointers have child
163 /// values that can be access by index.
164 ///
165 /// Structs and unions access child members using a zero based index
166 /// for each child member. For
167 ///
168 /// Classes reserve the first indexes for base classes that have
169 /// members (empty base classes are omitted), and all members of the
170 /// current class will then follow the base classes.
171 ///
172 /// For array and pointers the behavior of the function depends on the value
173 /// of the \a treat_as_array argument. If \b false, the function returns
174 /// members of the array as given by the array bounds. If the value is a
175 /// pointer to a simple type, the child at index zero is the only child
176 /// value available. If the pointer points to an aggregate type (an array,
177 /// class, union, etc.), then the pointee is transparently skipped and any
178 /// children are going to be the indexes of the child values within the
179 /// aggregate type. For example if we have a 'Point' type and we have a
180 /// SBValue that contains a pointer to a 'Point' type, then the child at
181 /// index zero will be the 'x' member, and the child at index 1 will be the
182 /// 'y' member (the child at index zero won't be a 'Point' instance). If \a
183 /// treat_as_array is \b true, pointer values will be used as a (C) array and
184 /// and the function will create 'synthetic' child values using positive or
185 /// negative indexes. In case of arrays, the function will return values
186 /// which are outside of the array bounds.
187 ///
188 /// If you actually need an SBValue that represents the type pointed
189 /// to by a SBValue for which GetType().IsPointeeType() returns true,
190 /// regardless of the pointee type, you can do that with SBValue::Dereference.
191 ///
192 /// \param[in] idx
193 /// The index of the child value to get
194 ///
195 /// \param[in] use_dynamic
196 /// An enumeration that specifies whether to get dynamic values,
197 /// and also if the target can be run to figure out the dynamic
198 /// type of the child value.
199 ///
200 /// \param[in] treat_as_array
201 /// If \b true, then allow child values to be created by index
202 /// for pointers and arrays for indexes that normally wouldn't
203 /// be allowed.
204 ///
205 /// \return
206 /// A new SBValue object that represents the child member value.
207 lldb::SBValue GetChildAtIndex(uint32_t idx,
208 lldb::DynamicValueType use_dynamic,
209 bool treat_as_array);
210
211 // Matches children of this object only and will match base classes and
212 // member names if this is a clang typed object.
213 uint32_t GetIndexOfChildWithName(const char *name);
214
215 // Matches child members of this object and child members of any base
216 // classes.
217 lldb::SBValue GetChildMemberWithName(const char *name);
218
219 // Matches child members of this object and child members of any base
220 // classes.
221 lldb::SBValue GetChildMemberWithName(const char *name,
222 lldb::DynamicValueType use_dynamic);
223
224 // Expands nested expressions like .a->b[0].c[1]->d
225 lldb::SBValue GetValueForExpressionPath(const char *expr_path);
226
228
230
232
233 /// Get an SBData wrapping what this SBValue points to.
234 ///
235 /// This method will dereference the current SBValue, if its
236 /// data type is a T* or T[], and extract item_count elements
237 /// of type T from it, copying their contents in an SBData.
238 ///
239 /// \param[in] item_idx
240 /// The index of the first item to retrieve. For an array
241 /// this is equivalent to array[item_idx], for a pointer
242 /// to *(pointer + item_idx). In either case, the measurement
243 /// unit for item_idx is the sizeof(T) rather than the byte
244 ///
245 /// \param[in] item_count
246 /// How many items should be copied into the output. By default
247 /// only one item is copied, but more can be asked for.
248 ///
249 /// \return
250 /// An SBData with the contents of the copied items, on success.
251 /// An empty SBData otherwise.
252 lldb::SBData GetPointeeData(uint32_t item_idx = 0, uint32_t item_count = 1);
253
254 /// Get an SBData wrapping the contents of this SBValue.
255 ///
256 /// This method will read the contents of this object in memory
257 /// and copy them into an SBData for future use.
258 ///
259 /// \return
260 /// An SBData with the contents of this SBValue, on success.
261 /// An empty SBData otherwise.
263
264 bool SetData(lldb::SBData &data, lldb::SBError &error);
265
266 /// Creates a copy of the SBValue with a new name and setting the current
267 /// SBValue as its parent. It should be used when we want to change the
268 /// name of a SBValue without modifying the actual SBValue itself
269 /// (e.g. sythetic child provider).
270 lldb::SBValue Clone(const char *new_name);
271
273
274 /// Find out if a SBValue might have children.
275 ///
276 /// This call is much more efficient than GetNumChildren() as it
277 /// doesn't need to complete the underlying type. This is designed
278 /// to be used in a UI environment in order to detect if the
279 /// disclosure triangle should be displayed or not.
280 ///
281 /// This function returns true for class, union, structure,
282 /// pointers, references, arrays and more. Again, it does so without
283 /// doing any expensive type completion.
284 ///
285 /// \return
286 /// Returns \b true if the SBValue might have children, or \b
287 /// false otherwise.
288 bool MightHaveChildren();
289
291
292 /// Return the number of children of this variable. Note that for some
293 /// variables this operation can be expensive. If possible, prefer calling
294 /// GetNumChildren(max) with the maximum number of children you are interested
295 /// in.
296 uint32_t GetNumChildren();
297
298 /// Return the numer of children of this variable, with a hint that the
299 /// caller is interested in at most \a max children. Use this function to
300 /// avoid expensive child computations in some cases. For example, if you know
301 /// you will only ever display 100 elements, calling GetNumChildren(100) can
302 /// avoid enumerating all the other children. If the returned value is smaller
303 /// than \a max, then it represents the true number of children, otherwise it
304 /// indicates that their number is at least \a max. Do not assume the returned
305 /// number will always be less than or equal to \a max, as the implementation
306 /// may choose to return a larger (but still smaller than the actual number of
307 /// children) value.
308 uint32_t GetNumChildren(uint32_t max);
309
310 LLDB_DEPRECATED("SBValue::GetOpaqueType() is deprecated.")
311 void *GetOpaqueType();
312
314
316
318
320
322
323 LLDB_DEPRECATED("Use GetType().IsPointerType() instead")
324 bool TypeIsPointerType();
325
327
329
330 bool GetDescription(lldb::SBStream &description);
331
332 bool GetDescription(lldb::SBStream &description,
333 lldb::DescriptionLevel description_level);
334
335 bool GetExpressionPath(lldb::SBStream &description);
336
337 bool GetExpressionPath(lldb::SBStream &description,
338 bool qualify_cxx_base_classes);
339
340 lldb::SBValue EvaluateExpression(const char *expr) const;
341 lldb::SBValue EvaluateExpression(const char *expr,
342 const SBExpressionOptions &options) const;
343 lldb::SBValue EvaluateExpression(const char *expr,
344 const SBExpressionOptions &options,
345 const char *name) const;
346
347 /// Watch this value if it resides in memory.
348 ///
349 /// Sets a watchpoint on the value.
350 ///
351 /// \param[in] resolve_location
352 /// Resolve the location of this value once and watch its address.
353 /// This value must currently be set to \b true as watching all
354 /// locations of a variable or a variable path is not yet supported,
355 /// though we plan to support it in the future.
356 ///
357 /// \param[in] read
358 /// Stop when this value is accessed.
359 ///
360 /// \param[in] write
361 /// Stop when this value is modified
362 ///
363 /// \param[out] error
364 /// An error object. Contains the reason if there is some failure.
365 ///
366 /// \return
367 /// An SBWatchpoint object. This object might not be valid upon
368 /// return due to a value not being contained in memory, too
369 /// large, or watchpoint resources are not available or all in
370 /// use.
371 lldb::SBWatchpoint Watch(bool resolve_location, bool read, bool write,
372 SBError &error);
373
374 // Backward compatibility fix in the interim.
375 lldb::SBWatchpoint Watch(bool resolve_location, bool read, bool write);
376
377 /// Watch this value that this value points to in memory
378 ///
379 /// Sets a watchpoint on the value.
380 ///
381 /// \param[in] resolve_location
382 /// Resolve the location of this value once and watch its address.
383 /// This value must currently be set to \b true as watching all
384 /// locations of a variable or a variable path is not yet supported,
385 /// though we plan to support it in the future.
386 ///
387 /// \param[in] read
388 /// Stop when this value is accessed.
389 ///
390 /// \param[in] write
391 /// Stop when this value is modified
392 ///
393 /// \param[out] error
394 /// An error object. Contains the reason if there is some failure.
395 ///
396 /// \return
397 /// An SBWatchpoint object. This object might not be valid upon
398 /// return due to a value not being contained in memory, too
399 /// large, or watchpoint resources are not available or all in
400 /// use.
401 lldb::SBWatchpoint WatchPointee(bool resolve_location, bool read, bool write,
402 SBError &error);
403
404 /// If this value represents a C++ class that has a vtable, return an value
405 /// that represents the virtual function table.
406 ///
407 /// SBValue::GetError() will be in the success state if this value represents
408 /// a C++ class with a vtable, or an appropriate error describing that the
409 /// object isn't a C++ class with a vtable or not a C++ class.
410 ///
411 /// SBValue::GetName() will be the demangled symbol name for the virtual
412 /// function table like "vtable for <classname>".
413 ///
414 /// SBValue::GetValue() will be the address of the first vtable entry if the
415 /// current SBValue is a class with a vtable, or nothing the current SBValue
416 /// is not a C++ class or not a C++ class that has a vtable.
417 ///
418 /// SBValue::GetValueAtUnsigned(...) will return the address of the first
419 /// vtable entry.
420 ///
421 /// SBValue::GetLoadAddress() will return the address of the vtable pointer
422 /// found in the parent SBValue.
423 ///
424 /// SBValue::GetNumChildren() will return the number of virtual function
425 /// pointers in the vtable, or zero on error.
426 ///
427 /// SBValue::GetChildAtIndex(...) will return each virtual function pointer
428 /// as a SBValue object.
429 ///
430 /// The child SBValue objects will have the following values:
431 ///
432 /// SBValue::GetError() will indicate success if the vtable entry was
433 /// successfully read from memory, or an error if not.
434 ///
435 /// SBValue::GetName() will be the vtable function index in the form "[%u]"
436 /// where %u is the index.
437 ///
438 /// SBValue::GetValue() will be the virtual function pointer value as a
439 /// string.
440 ///
441 /// SBValue::GetValueAtUnsigned(...) will return the virtual function
442 /// pointer value.
443 ///
444 /// SBValue::GetLoadAddress() will return the address of the virtual function
445 /// pointer.
446 ///
447 /// SBValue::GetNumChildren() returns 0
449
450protected:
451 friend class SBBlock;
453 friend class SBFrame;
454 friend class SBModule;
455 friend class SBTarget;
456 friend class SBThread;
457 friend class SBType;
458 friend class SBTypeStaticField;
459 friend class SBTypeSummary;
460 friend class SBValueList;
461
462 friend class lldb_private::python::SWIGBridge;
463
464 SBValue(const lldb::ValueObjectSP &value_sp);
465
466 /// Same as the protected version of GetSP that takes a locker, except that we
467 /// make the
468 /// locker locally in the function. Since the Target API mutex is recursive,
469 /// and the
470 /// StopLocker is a read lock, you can call this function even if you are
471 /// already
472 /// holding the two above-mentioned locks.
473 ///
474 /// \return
475 /// A ValueObjectSP of the best kind (static, dynamic or synthetic) we
476 /// can cons up, in accordance with the SBValue's settings.
477 lldb::ValueObjectSP GetSP() const;
478
479 /// Get the appropriate ValueObjectSP from this SBValue, consulting the
480 /// use_dynamic and use_synthetic options passed in to SetSP when the
481 /// SBValue's contents were set. Since this often requires examining memory,
482 /// and maybe even running code, it needs to acquire the Target API and
483 /// Process StopLock.
484 /// Those are held in an opaque class ValueLocker which is currently local to
485 /// SBValue.cpp.
486 /// So you don't have to get these yourself just default construct a
487 /// ValueLocker, and pass it into this.
488 /// If we need to make a ValueLocker and use it in some other .cpp file, we'll
489 /// have to move it to
490 /// ValueObject.h/cpp or somewhere else convenient. We haven't needed to so
491 /// far.
492 ///
493 /// \param[in] value_locker
494 /// An object that will hold the Target API, and Process RunLocks, and
495 /// auto-destroy them when it goes out of scope. Currently this is only
496 /// useful in
497 /// SBValue.cpp.
498 ///
499 /// \return
500 /// A ValueObjectSP of the best kind (static, dynamic or synthetic) we
501 /// can cons up, in accordance with the SBValue's settings.
502 lldb::ValueObjectSP GetSP(lldb_private::ValueLocker &value_locker) const;
503
504 // these calls do the right thing WRT adjusting their settings according to
505 // the target's preferences
506 void SetSP(const lldb::ValueObjectSP &sp);
507
508 void SetSP(const lldb::ValueObjectSP &sp, bool use_synthetic);
509
510 void SetSP(const lldb::ValueObjectSP &sp, lldb::DynamicValueType use_dynamic);
511
512 void SetSP(const lldb::ValueObjectSP &sp, lldb::DynamicValueType use_dynamic,
513 bool use_synthetic);
514
515 void SetSP(const lldb::ValueObjectSP &sp, lldb::DynamicValueType use_dynamic,
516 bool use_synthetic, const char *name);
517
518protected:
520
521private:
522 typedef std::shared_ptr<lldb_private::ValueImpl> ValueImplSP;
524
525 void SetSP(ValueImplSP impl_sp);
526};
527
528} // namespace lldb
529
530#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:826
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:1301
bool GetDescription(lldb::SBStream &description)
Definition SBValue.cpp:1139
bool GetValueDidChange()
Definition SBValue.cpp:240
lldb::SBValue EvaluateExpression(const char *expr) const
Definition SBValue.cpp:1070
friend class SBValueList
Definition SBValue.h:460
lldb::SBValue GetChildAtIndex(uint32_t idx)
Definition SBValue.cpp:529
lldb::SBTypeFilter GetTypeFilter()
Definition SBValue.cpp:356
lldb::SBAddress GetAddress()
Definition SBValue.cpp:1238
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:1265
const char * GetTypeName()
Definition SBValue.cpp:137
bool GetExpressionPath(lldb::SBStream &description)
Definition SBValue.cpp:1045
LLDB_DEPRECATED("Use GetType().IsPointerType() instead") bool TypeIsPointerType()
friend class lldb_private::python::SWIGBridge
Definition SBValue.h:462
friend class SBCommandReturnObject
Definition SBValue.h:452
SBError GetError()
Definition SBValue.cpp:100
lldb::SBValue CreateValueFromData(const char *name, lldb::SBData data, lldb::SBType type)
Definition SBValue.cpp:477
lldb::SBValue Persist()
Definition SBValue.cpp:1450
friend class SBTypeSummary
Definition SBValue.h:459
void SetSP(const lldb::ValueObjectSP &sp)
Definition SBValue.cpp:993
lldb::SBValue CreateValueFromAddress(const char *name, lldb::addr_t address, lldb::SBType type)
Definition SBValue.cpp:457
const char * GetDisplayTypeName()
Definition SBValue.cpp:148
lldb::SBValue CreateValueFromExpression(const char *name, const char *expression)
Definition SBValue.cpp:428
lldb::SBData GetData()
Get an SBData wrapping the contents of this SBValue.
Definition SBValue.cpp:1284
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:1335
void SetSyntheticChildrenGenerated(bool)
Definition SBValue.cpp:738
void Clear()
Definition SBValue.cpp:94
lldb::SBProcess GetProcess()
Definition SBValue.cpp:932
const char * GetLocation()
Definition SBValue.cpp:279
lldb::SBValue CreateBoolValue(const char *name, bool value)
Definition SBValue.cpp:496
bool IsSynthetic()
Definition SBValue.cpp:718
friend class SBTarget
Definition SBValue.h:455
size_t GetByteSize()
Definition SBValue.cpp:159
friend class SBModule
Definition SBValue.h:454
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:764
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:1440
friend class SBTypeStaticField
Definition SBValue.h:458
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:1361
lldb::SBTypeFormat GetTypeFormat()
Definition SBValue.cpp:324
lldb::user_id_t GetID()
Definition SBValue.cpp:116
lldb::SBFrame GetFrame()
Definition SBValue.cpp:958
const char * GetValue()
Definition SBValue.cpp:187
bool MightHaveChildren()
Find out if a SBValue might have children.
Definition SBValue.cpp:845
lldb::SBTypeSummary GetTypeSummary()
Definition SBValue.cpp:340
lldb::SBValue GetDynamicValue(lldb::DynamicValueType use_dynamic)
Definition SBValue.cpp:626
bool IsDynamic()
Definition SBValue.cpp:708
bool IsSyntheticChildrenGenerated()
Definition SBValue.cpp:728
lldb::SBValue GetSyntheticValue()
Definition SBValue.cpp:663
lldb::SBValue CreateChildAtOffset(const char *name, uint32_t offset, lldb::SBType type)
Definition SBValue.cpp:396
lldb::SBValue Dereference()
Definition SBValue.cpp:888
lldb::SBValue GetStaticValue()
Definition SBValue.cpp:638
lldb::SBValue Cast(lldb::SBType type)
Definition SBValue.cpp:415
friend class SBThread
Definition SBValue.h:456
lldb::SBValue GetNonSyntheticValue()
Definition SBValue.cpp:651
bool GetPreferSyntheticValue()
Definition SBValue.cpp:693
uint32_t GetIndexOfChildWithName(const char *name)
Definition SBValue.cpp:566
friend class SBBlock
Definition SBValue.h:451
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:1462
const char * GetObjectDescription()
Definition SBValue.cpp:209
const char * GetSummary()
Definition SBValue.cpp:254
friend class lldb_private::ScriptInterpreter
Definition SBValue.h:519
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:984
lldb::SBTypeSynthetic GetTypeSynthetic()
Definition SBValue.cpp:376
void SetFormat(lldb::Format format)
Definition SBValue.cpp:1202
lldb::SBValue AddressOf()
Definition SBValue.cpp:1211
friend class SBFrame
Definition SBValue.h:453
bool SetValueFromCString(const char *value_str, lldb::SBError &error)
Definition SBValue.cpp:291
lldb::DynamicValueType GetPreferDynamicValue()
Definition SBValue.cpp:678
std::shared_ptr< lldb_private::ValueImpl > ValueImplSP
Definition SBValue.h:522
lldb::SBThread GetThread()
Definition SBValue.cpp:945
ValueImplSP m_opaque_sp
Definition SBValue.h:523
lldb::SBValue GetChildMemberWithName(const char *name)
Definition SBValue.cpp:580
lldb::SBTarget GetTarget()
Definition SBValue.cpp:919
uint64_t GetValueAsUnsigned(lldb::SBError &error, uint64_t fail_value=0)
Definition SBValue.cpp:784
uint32_t GetNumChildren()
Return the number of children of this variable.
Definition SBValue.cpp:869
void SetPreferDynamicValue(lldb::DynamicValueType use_dynamic)
Definition SBValue.cpp:686
ValueType GetValueType()
Definition SBValue.cpp:197
void * GetOpaqueType()
Definition SBValue.cpp:909
friend class SBType
Definition SBValue.h:457
bool IsValid()
Definition SBValue.cpp:80
lldb::SBValue GetValueForExpressionPath(const char *expr_path)
Definition SBValue.cpp:747
lldb::addr_t GetLoadAddress()
Definition SBValue.cpp:1226
lldb::SBType GetType()
Definition SBValue.cpp:225
lldb::SBValue GetParent()
Definition SBValue.cpp:612
void SetPreferSyntheticValue(bool use_synthetic)
Definition SBValue.cpp:701
lldb::SBDeclaration GetDeclaration()
Definition SBValue.cpp:1347
lldb::Format GetFormat()
Definition SBValue.cpp:1192
bool IsRuntimeSupportValue()
Definition SBValue.cpp:857
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