LLDB  mainline
ValueObjectDynamicValue.cpp
Go to the documentation of this file.
1 //===-- ValueObjectDynamicValue.cpp ---------------------------------------===//
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 
10 #include "lldb/Core/Value.h"
11 #include "lldb/Core/ValueObject.h"
13 #include "lldb/Symbol/Type.h"
16 #include "lldb/Target/Process.h"
17 #include "lldb/Target/Target.h"
19 #include "lldb/Utility/Log.h"
20 #include "lldb/Utility/Logging.h"
21 #include "lldb/Utility/Scalar.h"
22 #include "lldb/Utility/Status.h"
23 #include "lldb/lldb-types.h"
24 
25 #include <cstring>
26 namespace lldb_private {
27 class Declaration;
28 }
29 
30 using namespace lldb_private;
31 
33  ValueObject &parent, lldb::DynamicValueType use_dynamic)
34  : ValueObject(parent), m_address(), m_dynamic_type_info(),
35  m_use_dynamic(use_dynamic) {
36  SetName(parent.GetName());
37 }
38 
40  m_owning_valobj_sp.reset();
41 }
42 
44  const bool success = UpdateValueIfNeeded(false);
45  if (success) {
47  return m_value.GetCompilerType();
48  else
49  return m_parent->GetCompilerType();
50  }
51  return m_parent->GetCompilerType();
52 }
53 
55  const bool success = UpdateValueIfNeeded(false);
56  if (success) {
59  }
60  return m_parent->GetTypeName();
61 }
62 
64  const bool success = UpdateValueIfNeeded(false);
65  if (success && m_type_impl.IsValid()) {
66  return m_type_impl;
67  }
68  return m_parent->GetTypeImpl();
69 }
70 
72  const bool success = UpdateValueIfNeeded(false);
73  if (success) {
76  }
78 }
79 
81  const bool success = UpdateValueIfNeeded(false);
82  if (success) {
87  }
88  return m_parent->GetDisplayTypeName();
89 }
90 
92  const bool success = UpdateValueIfNeeded(false);
93  if (success && m_dynamic_type_info.HasType()) {
95  auto children_count = GetCompilerType().GetNumChildren(true, &exe_ctx);
96  return children_count <= max ? children_count : max;
97  } else
98  return m_parent->GetNumChildren(max);
99 }
100 
101 llvm::Optional<uint64_t> ValueObjectDynamicValue::GetByteSize() {
102  const bool success = UpdateValueIfNeeded(false);
103  if (success && m_dynamic_type_info.HasType()) {
105  return m_value.GetValueByteSize(nullptr, &exe_ctx);
106  } else
107  return m_parent->GetByteSize();
108 }
109 
111  return m_parent->GetValueType();
112 }
113 
115  SetValueIsValid(false);
116  m_error.Clear();
117 
118  if (!m_parent->UpdateValueIfNeeded(false)) {
119  // The dynamic value failed to get an error, pass the error along
120  if (m_error.Success() && m_parent->GetError().Fail())
122  return false;
123  }
124 
125  // Setting our type_sp to NULL will route everything back through our parent
126  // which is equivalent to not using dynamic values.
129  return true;
130  }
131 
133  Target *target = exe_ctx.GetTargetPtr();
134  if (target) {
137  }
138 
139  // First make sure our Type and/or Address haven't changed:
140  Process *process = exe_ctx.GetProcessPtr();
141  if (!process)
142  return false;
143 
144  TypeAndOrName class_type_or_name;
145  Address dynamic_address;
146  bool found_dynamic_type = false;
147  Value::ValueType value_type;
148 
149  LanguageRuntime *runtime = nullptr;
150 
152  if (known_type != lldb::eLanguageTypeUnknown &&
153  known_type != lldb::eLanguageTypeC) {
154  runtime = process->GetLanguageRuntime(known_type);
155  if (runtime)
156  found_dynamic_type = runtime->GetDynamicTypeAndAddress(
157  *m_parent, m_use_dynamic, class_type_or_name, dynamic_address,
158  value_type);
159  } else {
161  if (runtime)
162  found_dynamic_type = runtime->GetDynamicTypeAndAddress(
163  *m_parent, m_use_dynamic, class_type_or_name, dynamic_address,
164  value_type);
165 
166  if (!found_dynamic_type) {
167  runtime = process->GetLanguageRuntime(lldb::eLanguageTypeObjC);
168  if (runtime)
169  found_dynamic_type = runtime->GetDynamicTypeAndAddress(
170  *m_parent, m_use_dynamic, class_type_or_name, dynamic_address,
171  value_type);
172  }
173  }
174 
175  // Getting the dynamic value may have run the program a bit, and so marked us
176  // as needing updating, but we really don't...
177 
179 
180  if (runtime && found_dynamic_type) {
181  if (class_type_or_name.HasType()) {
182  m_type_impl =
184  runtime->FixUpDynamicType(class_type_or_name, *m_parent)
185  .GetCompilerType());
186  } else {
187  m_type_impl.Clear();
188  }
189  } else {
190  m_type_impl.Clear();
191  }
192 
193  // If we don't have a dynamic type, then make ourselves just a echo of our
194  // parent. Or we could return false, and make ourselves an echo of our
195  // parent?
196  if (!found_dynamic_type) {
198  SetValueDidChange(true);
202  m_error = m_value.GetValueAsData(&exe_ctx, m_data, GetModule().get());
203  return m_error.Success();
204  }
205 
206  Value old_value(m_value);
207 
209 
210  bool has_changed_type = false;
211 
212  if (!m_dynamic_type_info) {
213  m_dynamic_type_info = class_type_or_name;
214  has_changed_type = true;
215  } else if (class_type_or_name != m_dynamic_type_info) {
216  // We are another type, we need to tear down our children...
217  m_dynamic_type_info = class_type_or_name;
218  SetValueDidChange(true);
219  has_changed_type = true;
220  }
221 
222  if (has_changed_type)
224 
225  if (!m_address.IsValid() || m_address != dynamic_address) {
226  if (m_address.IsValid())
227  SetValueDidChange(true);
228 
229  // We've moved, so we should be fine...
230  m_address = dynamic_address;
231  lldb::TargetSP target_sp(GetTargetSP());
232  lldb::addr_t load_address = m_address.GetLoadAddress(target_sp.get());
233  m_value.GetScalar() = load_address;
234  }
235 
236  if (runtime)
239 
241 
242  m_value.SetValueType(value_type);
243 
244  if (has_changed_type && log)
245  LLDB_LOGF(log, "[%s %p] has a new dynamic type %s", GetName().GetCString(),
246  static_cast<void *>(this), GetTypeName().GetCString());
247 
249  // The variable value is in the Scalar value inside the m_value. We can
250  // point our m_data right to it.
251  m_error = m_value.GetValueAsData(&exe_ctx, m_data, GetModule().get());
252  if (m_error.Success()) {
253  if (!CanProvideValue()) {
254  // this value object represents an aggregate type whose children have
255  // values, but this object does not. So we say we are changed if our
256  // location has changed.
258  m_value.GetScalar() != old_value.GetScalar());
259  }
260 
261  SetValueIsValid(true);
262  return true;
263  }
264  }
265 
266  // We get here if we've failed above...
267  SetValueIsValid(false);
268  return false;
269 }
270 
272 
274  Status &error) {
275  if (!UpdateValueIfNeeded(false)) {
276  error.SetErrorString("unable to read value");
277  return false;
278  }
279 
280  uint64_t my_value = GetValueAsUnsigned(UINT64_MAX);
281  uint64_t parent_value = m_parent->GetValueAsUnsigned(UINT64_MAX);
282 
283  if (my_value == UINT64_MAX || parent_value == UINT64_MAX) {
284  error.SetErrorString("unable to read value");
285  return false;
286  }
287 
288  // if we are at an offset from our parent, in order to set ourselves
289  // correctly we would need to change the new value so that it refers to the
290  // correct dynamic type. we choose not to deal with that - if anything more
291  // than a value overwrite is required, you should be using the expression
292  // parser instead of the value editing facility
293  if (my_value != parent_value) {
294  // but NULL'ing out a value should always be allowed
295  if (strcmp(value_str, "0")) {
296  error.SetErrorString(
297  "unable to modify dynamic value, use 'expression' command");
298  return false;
299  }
300  }
301 
302  bool ret_val = m_parent->SetValueFromCString(value_str, error);
303  SetNeedsUpdate();
304  return ret_val;
305 }
306 
308  if (!UpdateValueIfNeeded(false)) {
309  error.SetErrorString("unable to read value");
310  return false;
311  }
312 
313  uint64_t my_value = GetValueAsUnsigned(UINT64_MAX);
314  uint64_t parent_value = m_parent->GetValueAsUnsigned(UINT64_MAX);
315 
316  if (my_value == UINT64_MAX || parent_value == UINT64_MAX) {
317  error.SetErrorString("unable to read value");
318  return false;
319  }
320 
321  // if we are at an offset from our parent, in order to set ourselves
322  // correctly we would need to change the new value so that it refers to the
323  // correct dynamic type. we choose not to deal with that - if anything more
324  // than a value overwrite is required, you should be using the expression
325  // parser instead of the value editing facility
326  if (my_value != parent_value) {
327  // but NULL'ing out a value should always be allowed
328  lldb::offset_t offset = 0;
329 
330  if (data.GetAddress(&offset) != 0) {
331  error.SetErrorString(
332  "unable to modify dynamic value, use 'expression' command");
333  return false;
334  }
335  }
336 
337  bool ret_val = m_parent->SetData(data, error);
338  SetNeedsUpdate();
339  return ret_val;
340 }
341 
343  lldb::LanguageType lang) {
345  if (m_parent)
347 }
348 
351  if (m_parent)
354  } else
356 }
357 
359  if (m_parent)
361  return false;
362 }
363 
365  if (m_parent)
368 }
369 
371  if (m_parent)
372  return m_parent->GetDeclaration(decl);
373 
374  return ValueObject::GetDeclaration(decl);
375 }
376 
378  if (m_parent)
379  return m_parent->GetLanguageFlags();
380  return this->ValueObject::GetLanguageFlags();
381 }
382 
384  if (m_parent)
385  m_parent->SetLanguageFlags(flags);
386  else
387  this->ValueObject::SetLanguageFlags(flags);
388 }
lldb_private::ValueObjectDynamicValue::m_owning_valobj_sp
lldb::ValueObjectSP m_owning_valobj_sp
Definition: ValueObjectDynamicValue.h:120
lldb_private::ValueObject::GetValueAsUnsigned
virtual uint64_t GetValueAsUnsigned(uint64_t fail_value, bool *success=nullptr)
Definition: ValueObject.cpp:1090
lldb_private::ExecutionContext
Definition: ExecutionContext.h:292
lldb_private::ArchSpec::GetByteOrder
lldb::ByteOrder GetByteOrder() const
Returns the byte order for the architecture specification.
Definition: ArchSpec.cpp:730
Scalar.h
lldb_private::ValueObject::IsInScope
virtual bool IsInScope()
Definition: ValueObject.h:420
lldb_private::ValueObjectDynamicValue::GetCompilerTypeImpl
CompilerType GetCompilerTypeImpl() override
Definition: ValueObjectDynamicValue.cpp:43
lldb_private::ValueObject::CanProvideValue
virtual bool CanProvideValue()
Definition: ValueObject.cpp:3103
lldb_private::DataExtractor::GetAddress
uint64_t GetAddress(lldb::offset_t *offset_ptr) const
Extract an address from *offset_ptr.
Definition: DataExtractor.cpp:651
lldb_private::TypeAndOrName::GetCompilerType
CompilerType GetCompilerType() const
Definition: Type.h:408
lldb_private::ValueObject::SetValueIsValid
void SetValueIsValid(bool valid)
Definition: ValueObject.h:980
lldb_private::Address::IsValid
bool IsValid() const
Check if the object state is valid.
Definition: Address.h:336
lldb_private::ValueObjectDynamicValue::GetByteSize
llvm::Optional< uint64_t > GetByteSize() override
Definition: ValueObjectDynamicValue.cpp:101
lldb_private::ValueObject::SetLanguageFlags
virtual void SetLanguageFlags(uint64_t flags)
Definition: ValueObject.h:791
lldb_private::ValueObjectDynamicValue::UpdateValue
bool UpdateValue() override
Definition: ValueObjectDynamicValue.cpp:114
lldb_private::ValueObject::GetValue
const Value & GetValue() const
Definition: ValueObject.h:497
lldb_private::Value
Definition: Value.h:38
lldb::eNoDynamicValues
@ eNoDynamicValues
Definition: lldb-enumerations.h:495
lldb_private::Value::SetValueType
void SetValueType(ValueType value_type)
Definition: Value.h:89
lldb_private::ExecutionContext::GetProcessPtr
Process * GetProcessPtr() const
Returns a pointer to the process object.
Definition: ExecutionContext.cpp:208
lldb_private::Value::GetValueAsData
Status GetValueAsData(ExecutionContext *exe_ctx, DataExtractor &data, Module *module)
Definition: Value.cpp:301
lldb_private::TypeAndOrName::HasName
bool HasName() const
Definition: Type.cpp:801
lldb_private::ValueObjectDynamicValue::GetLanguageFlags
uint64_t GetLanguageFlags() override
Definition: ValueObjectDynamicValue.cpp:377
lldb_private::Value::GetValueType
ValueType GetValueType() const
Definition: Value.cpp:109
lldb_private::ValueObject::EvaluationPoint::SetUpdated
void SetUpdated()
Definition: ValueObject.cpp:2922
lldb_private::LanguageRuntime::GetDynamicTypeAndAddress
virtual bool GetDynamicTypeAndAddress(ValueObject &in_value, lldb::DynamicValueType use_dynamic, TypeAndOrName &class_type_or_name, Address &address, Value::ValueType &value_type)=0
LLDB_LOGF
#define LLDB_LOGF(log,...)
Definition: Log.h:249
lldb_private::Process
Definition: Process.h:340
lldb_private::ValueObjectDynamicValue::GetQualifiedTypeName
ConstString GetQualifiedTypeName() override
Definition: ValueObjectDynamicValue.cpp:71
lldb_private::ValueObject::SetValueDidChange
void SetValueDidChange(bool value_changed)
Definition: ValueObject.h:976
lldb::LanguageType
LanguageType
Programming language type.
Definition: lldb-enumerations.h:436
lldb_private::ValueObject::IsSyntheticChildrenGenerated
virtual bool IsSyntheticChildrenGenerated()
Definition: ValueObject.h:641
lldb::offset_t
uint64_t offset_t
Definition: lldb-types.h:87
lldb_private::ValueObject::SetPreferredDisplayLanguage
void SetPreferredDisplayLanguage(lldb::LanguageType lt)
Definition: ValueObject.h:713
lldb_private::ValueObjectDynamicValue::m_use_dynamic
lldb::DynamicValueType m_use_dynamic
Definition: ValueObjectDynamicValue.h:121
lldb_private::ValueObjectDynamicValue::GetPreferredDisplayLanguage
lldb::LanguageType GetPreferredDisplayLanguage() override
Definition: ValueObjectDynamicValue.cpp:349
lldb::addr_t
uint64_t addr_t
Definition: lldb-types.h:83
lldb_private::ValueObject::GetQualifiedTypeName
virtual ConstString GetQualifiedTypeName()
Definition: ValueObject.h:369
lldb_private::ValueObject::m_preferred_display_language
lldb::LanguageType m_preferred_display_language
Definition: ValueObject.h:900
ValueObjectDynamicValue.h
lldb_private::TypeAndOrName::Clear
void Clear()
Definition: Type.cpp:796
lldb_private::Target
Definition: Target.h:450
lldb_private::ValueObject::GetTypeName
virtual ConstString GetTypeName()
Definition: ValueObject.h:365
lldb_private::ValueObjectDynamicValue::m_dynamic_type_info
TypeAndOrName m_dynamic_type_info
Definition: ValueObjectDynamicValue.h:119
Process.h
lldb_private::ValueObjectDynamicValue::SetSyntheticChildrenGenerated
void SetSyntheticChildrenGenerated(bool b) override
Definition: ValueObjectDynamicValue.cpp:364
lldb_private::ValueObject::GetError
const Status & GetError()
Definition: ValueObject.cpp:283
lldb_private::Value::SetCompilerType
void SetCompilerType(const CompilerType &compiler_type)
Definition: Value.cpp:254
lldb_private::ValueObject::m_data
DataExtractor m_data
A data extractor that can be used to extract the value.
Definition: ValueObject.h:851
lldb_private::TypeImpl::IsValid
bool IsValid() const
Definition: Type.cpp:903
Target.h
lldb_private::DataExtractor::SetByteOrder
void SetByteOrder(lldb::ByteOrder byte_order)
Set the byte_order value.
Definition: DataExtractor.h:931
lldb_private::Value::GetScalar
const Scalar & GetScalar() const
Definition: Value.h:112
lldb_private::ValueObject::SetSyntheticChildrenGenerated
virtual void SetSyntheticChildrenGenerated(bool b)
Definition: ValueObject.h:645
error
static llvm::raw_ostream & error(Stream &strm)
Definition: CommandReturnObject.cpp:17
lldb_private::Status::Success
bool Success() const
Test for success condition.
Definition: Status.cpp:288
lldb_private::CompilerType::GetDisplayTypeName
ConstString GetDisplayTypeName() const
Definition: CompilerType.cpp:284
lldb_private::TypeAndOrName::GetName
ConstString GetName() const
Definition: Type.cpp:762
lldb_private::ValueObjectDynamicValue::ValueObjectDynamicValue
ValueObjectDynamicValue(ValueObject &parent, lldb::DynamicValueType use_dynamic)
Definition: ValueObjectDynamicValue.cpp:32
lldb_private::DataExtractor
Definition: DataExtractor.h:48
Log.h
lldb_private::LanguageRuntime::FixUpDynamicType
virtual TypeAndOrName FixUpDynamicType(const TypeAndOrName &type_and_or_name, ValueObject &static_value)=0
lldb_private::Status::Fail
bool Fail() const
Test for error condition.
Definition: Status.cpp:182
lldb_private::DataExtractor::SetAddressByteSize
void SetAddressByteSize(uint32_t addr_size)
Set the address byte size.
Definition: DataExtractor.h:845
lldb_private::ValueObjectDynamicValue::SetData
bool SetData(DataExtractor &data, Status &error) override
Definition: ValueObjectDynamicValue.cpp:307
Type.h
lldb_private::ValueObject::GetTypeImpl
virtual TypeImpl GetTypeImpl()
Definition: ValueObject.h:355
lldb_private::ConstString
Definition: ConstString.h:40
LIBLLDB_LOG_TYPES
#define LIBLLDB_LOG_TYPES
Definition: Logging.h:33
lldb_private::ValueObjectDynamicValue::m_type_impl
TypeImpl m_type_impl
Definition: ValueObjectDynamicValue.h:122
lldb_private::ValueObject::UpdateValueIfNeeded
bool UpdateValueIfNeeded(bool update_format=true)
Definition: ValueObject.cpp:111
lldb_private::GetLogIfAllCategoriesSet
Log * GetLogIfAllCategoriesSet(uint32_t mask)
Definition: Logging.cpp:58
lldb_private::ValueObjectDynamicValue::IsInScope
bool IsInScope() override
Definition: ValueObjectDynamicValue.cpp:271
lldb_private::Value::ValueType
ValueType
Type that describes Value::m_value.
Definition: Value.h:41
lldb::DynamicValueType
DynamicValueType
Definition: lldb-enumerations.h:494
lldb_private::ValueObject::GetExecutionContextRef
const ExecutionContextRef & GetExecutionContextRef() const
Definition: ValueObject.h:330
lldb_private::LanguageRuntime
Definition: LanguageRuntime.h:60
lldb::eLanguageTypeObjC
@ eLanguageTypeObjC
Objective-C.
Definition: lldb-enumerations.h:453
CompilerType.h
lldb_private::ValueObject::SetName
void SetName(ConstString name)
Change the name of the current ValueObject.
Definition: ValueObject.h:560
ValueObject.h
lldb_private::ArchSpec::GetAddressByteSize
uint32_t GetAddressByteSize() const
Returns the size in bytes of an address of the current architecture.
Definition: ArchSpec.cpp:683
lldb_private::ValueObjectDynamicValue::GetTypeImpl
TypeImpl GetTypeImpl() override
Definition: ValueObjectDynamicValue.cpp:63
lldb_private::CompilerType::GetNumChildren
uint32_t GetNumChildren(bool omit_empty_base_classes, const ExecutionContext *exe_ctx) const
Definition: CompilerType.cpp:515
lldb_private::ValueObject::GetValueType
virtual lldb::ValueType GetValueType() const =0
lldb_private::ValueObject::SetValueFromCString
virtual bool SetValueFromCString(const char *value_str, Status &error)
Definition: ValueObject.cpp:1465
lldb_private::ValueObject::GetPreferredDisplayLanguage
virtual lldb::LanguageType GetPreferredDisplayLanguage()
Definition: ValueObject.cpp:3079
lldb-types.h
lldb_private::ValueObject::m_update_point
EvaluationPoint m_update_point
Stores both the stop id and the full context at which this value was last updated.
Definition: ValueObject.h:847
lldb_private::ValueObjectDynamicValue::GetDisplayTypeName
ConstString GetDisplayTypeName() override
Definition: ValueObjectDynamicValue.cpp:80
lldb_private::ValueObject::GetNumChildren
size_t GetNumChildren(uint32_t max=UINT32_MAX)
Definition: ValueObject.cpp:496
lldb_private::Target::GetArchitecture
const ArchSpec & GetArchitecture() const
Definition: Target.h:966
lldb_private::ValueObjectDynamicValue::GetTypeName
ConstString GetTypeName() override
Definition: ValueObjectDynamicValue.cpp:54
lldb_private::Status
Definition: Status.h:44
lldb_private::ValueObject
ValueObject:
Definition: ValueObject.h:105
lldb_private::ValueObject::GetName
ConstString GetName() const
Definition: ValueObject.h:467
lldb::ValueType
ValueType
Definition: lldb-enumerations.h:315
lldb::eLanguageTypeUnknown
@ eLanguageTypeUnknown
Unknown or invalid language value.
Definition: lldb-enumerations.h:437
uint32_t
lldb_private::Address
Definition: Address.h:59
lldb_private::ValueObject::m_value
Value m_value
Definition: ValueObject.h:852
lldb_private::ValueObject::m_parent
ValueObject * m_parent
The parent value object, or nullptr if this has no parent.
Definition: ValueObject.h:840
lldb_private::ValueObject::GetDeclaration
virtual bool GetDeclaration(Declaration &decl)
Definition: ValueObject.cpp:1550
lldb_private::Address::GetLoadAddress
lldb::addr_t GetLoadAddress(Target *target) const
Get the load address.
Definition: Address.cpp:310
lldb_private::Process::GetLanguageRuntime
LanguageRuntime * GetLanguageRuntime(lldb::LanguageType language)
Definition: Process.cpp:1501
lldb_private::ValueObjectDynamicValue::SetPreferredDisplayLanguage
void SetPreferredDisplayLanguage(lldb::LanguageType)
Definition: ValueObjectDynamicValue.cpp:342
lldb_private::ValueObject::GetCompilerType
CompilerType GetCompilerType()
Definition: ValueObject.h:352
lldb_private::ValueObjectDynamicValue::IsSyntheticChildrenGenerated
bool IsSyntheticChildrenGenerated() override
Definition: ValueObjectDynamicValue.cpp:358
lldb_private::TypeImpl::Clear
void Clear()
Definition: Type.cpp:913
lldb_private::ValueObject::GetModule
virtual lldb::ModuleSP GetModule()
Return the module associated with this value object in case the value is from an executable file and ...
Definition: ValueObject.cpp:3024
DataExtractor.h
lldb_private::CompilerType
Generic representation of a type in a programming language.
Definition: CompilerType.h:33
lldb_private::ValueObjectDynamicValue::SetValueFromCString
bool SetValueFromCString(const char *value_str, Status &error) override
Definition: ValueObjectDynamicValue.cpp:273
lldb_private::Value::GetCompilerType
const CompilerType & GetCompilerType()
Definition: Value.cpp:225
LanguageRuntime.h
Status.h
lldb_private::ValueObject::SetData
virtual bool SetData(DataExtractor &data, Status &error)
Definition: ValueObject.cpp:783
lldb_private::ValueObject::GetDisplayTypeName
virtual ConstString GetDisplayTypeName()
Definition: ValueObject.h:367
lldb::eLanguageTypeC
@ eLanguageTypeC
Non-standardized C, such as K&R.
Definition: lldb-enumerations.h:439
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
lldb_private::TypeImpl
Definition: Type.h:238
lldb_private::ValueObjectDynamicValue::GetDeclaration
bool GetDeclaration(Declaration &decl) override
Definition: ValueObjectDynamicValue.cpp:370
lldb_private::TypeAndOrName::HasType
bool HasType() const
Definition: Type.h:424
lldb_private::Status::Clear
void Clear()
Clear the object state.
Definition: Status.cpp:168
lldb_private::ValueObject::GetTargetSP
lldb::TargetSP GetTargetSP() const
Definition: ValueObject.h:334
lldb_private::ValueObjectDynamicValue::m_address
Address m_address
The variable that this value object is based upon.
Definition: ValueObjectDynamicValue.h:118
Logging.h
lldb_private::ValueObject::ClearDynamicTypeInformation
void ClearDynamicTypeInformation()
Definition: ValueObject.cpp:236
lldb_private::Value::GetValueByteSize
uint64_t GetValueByteSize(Status *error_ptr, ExecutionContext *exe_ctx)
Definition: Value.cpp:197
lldb_private::Log
Definition: Log.h:49
lldb_private::ValueObject::m_error
Status m_error
An error object that can describe any errors that occur when updating values.
Definition: ValueObject.h:855
lldb_private::TypeAndOrName
Sometimes you can find the name of the type corresponding to an object, but we don't have debug infor...
Definition: Type.h:394
lldb_private::Declaration
Definition: Declaration.h:24
lldb_private::ValueObject::GetLanguageFlags
virtual uint64_t GetLanguageFlags()
Definition: ValueObject.h:789
lldb_private::ValueObjectDynamicValue::GetValueType
lldb::ValueType GetValueType() const override
Definition: ValueObjectDynamicValue.cpp:110
Value.h
lldb_private::ValueObjectDynamicValue::CalculateNumChildren
size_t CalculateNumChildren(uint32_t max) override
Should only be called by ValueObject::GetNumChildren().
Definition: ValueObjectDynamicValue.cpp:91
lldb_private::ExecutionContext::GetTargetPtr
Target * GetTargetPtr() const
Returns a pointer to the target object.
Definition: ExecutionContext.cpp:200
ExecutionContext.h
UINT64_MAX
#define UINT64_MAX
Definition: lldb-defines.h:35
lldb_private::ValueObject::GetObjectRuntimeLanguage
virtual lldb::LanguageType GetObjectRuntimeLanguage()
Definition: ValueObject.h:373
lldb_private::ValueObjectDynamicValue::~ValueObjectDynamicValue
~ValueObjectDynamicValue() override
Definition: ValueObjectDynamicValue.cpp:39
lldb_private::ValueObject::GetByteSize
virtual llvm::Optional< uint64_t > GetByteSize()=0
lldb_private::ValueObject::SetNeedsUpdate
void SetNeedsUpdate()
Definition: ValueObject.cpp:229
lldb::eLanguageTypeC_plus_plus
@ eLanguageTypeC_plus_plus
ISO C++:1998.
Definition: lldb-enumerations.h:441
lldb_private::ValueObjectDynamicValue::SetLanguageFlags
void SetLanguageFlags(uint64_t flags) override
Definition: ValueObjectDynamicValue.cpp:383