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