44      return m_value.GetCompilerType();
 
 
   74  return m_parent->GetQualifiedTypeName();
 
 
   85  return m_parent->GetDisplayTypeName();
 
 
   88llvm::Expected<uint32_t>
 
   95      return children_count;
 
   96    return *children_count <= max ? *children_count : max;
 
   98    return m_parent->GetNumChildren(max);
 
 
  105    return m_value.GetValueByteSize(
nullptr, &exe_ctx);
 
 
  118  if (!
m_parent->UpdateValueIfNeeded(
false)) {
 
  146  bool found_dynamic_type = 
false;
 
  148  llvm::ArrayRef<uint8_t> local_buffer;
 
  156    if (
auto *preferred_runtime =
 
  159      found_dynamic_type = preferred_runtime->GetDynamicTypeAndAddress(
 
  161          value_type, local_buffer);
 
  162      if (found_dynamic_type)
 
  164        runtime = preferred_runtime;
 
  166    if (!found_dynamic_type)
 
  170          value_type, local_buffer);
 
  176          value_type, local_buffer);
 
  178    if (!found_dynamic_type) {
 
  183            value_type, local_buffer);
 
  192  if (runtime && found_dynamic_type) {
 
  193    if (class_type_or_name.
HasType()) {
 
  211  if (!found_dynamic_type) {
 
  224  bool has_changed_type = 
false;
 
  228    has_changed_type = 
true;
 
  233    has_changed_type = 
true;
 
  236  if (has_changed_type)
 
  250      if (local_buffer.size() <
 
  251          llvm::expectedToOptional(
 
  257      m_value.GetScalar() = (uint64_t)local_buffer.data();
 
  265      m_value.GetScalar() = load_address;
 
  275  m_value.SetValueType(value_type);
 
  277  if (has_changed_type && log)
 
  279              static_cast<void *
>(
this), 
GetTypeName().GetCString());
 
 
  330  if (my_value != parent_value) {
 
  332    if (strcmp(value_str, 
"0")) {
 
  334          "unable to modify dynamic value, use 'expression' command");
 
  339  bool ret_val = 
m_parent->SetValueFromCString(value_str, 
error);
 
 
  363  if (my_value != parent_value) {
 
  369          "unable to modify dynamic value, use 'expression' command");
 
 
  383    m_parent->SetPreferredDisplayLanguage(lang);
 
 
  389      return m_parent->GetPreferredDisplayLanguage();
 
 
  397    return m_parent->IsSyntheticChildrenGenerated();
 
 
  403    m_parent->SetSyntheticChildrenGenerated(b);
 
 
  409    return m_parent->GetDeclaration(decl);
 
 
  416    return m_parent->GetLanguageFlags();
 
 
static llvm::raw_ostream & error(Stream &strm)
#define LLDB_LOGF(log,...)
A section + offset based address class.
uint32_t GetAddressByteSize() const
Returns the size in bytes of an address of the current architecture.
lldb::ByteOrder GetByteOrder() const
Returns the byte order for the architecture specification.
Generic representation of a type in a programming language.
ConstString GetDisplayTypeName() const
llvm::Expected< uint32_t > GetNumChildren(bool omit_empty_base_classes, const ExecutionContext *exe_ctx) const
A uniqued constant string class.
A class that describes the declaration location of a lldb object.
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
ExecutionContextScope * GetBestExecutionContextScope() const
Target * GetTargetPtr() const
Returns a pointer to the target object.
Process * GetProcessPtr() const
Returns a pointer to the process object.
virtual TypeAndOrName FixUpDynamicType(const TypeAndOrName &type_and_or_name, ValueObject &static_value)=0
virtual bool GetDynamicTypeAndAddress(ValueObject &in_value, lldb::DynamicValueType use_dynamic, TypeAndOrName &class_type_or_name, Address &address, Value::ValueType &value_type, llvm::ArrayRef< uint8_t > &local_buffer)=0
This call should return true if it could set the name and/or the type Sets address to the address of ...
virtual LanguageRuntime * GetPreferredLanguageRuntime(ValueObject &in_value)
Return the preferred language runtime instance, which in most cases will be the current instance.
A plug-in interface definition class for debugging a process.
LanguageRuntime * GetLanguageRuntime(lldb::LanguageType language)
static Status FromErrorString(const char *str)
const ArchSpec & GetArchitecture() const
Sometimes you can find the name of the type corresponding to an object, but we don't have debug infor...
CompilerType GetCompilerType() const
bool UpdateValue() override
bool IsSyntheticChildrenGenerated() override
llvm::Expected< uint64_t > GetByteSize() override
llvm::Expected< uint32_t > CalculateNumChildren(uint32_t max) override
Should only be called by ValueObject::GetNumChildren().
lldb::ValueType GetValueType() const override
lldb::LanguageType GetPreferredDisplayLanguage() override
TypeImpl GetTypeImpl() override
void SetLanguageFlags(uint64_t flags) override
CompilerType GetCompilerTypeImpl() override
uint64_t GetLanguageFlags() override
bool IsInScope() override
ConstString GetQualifiedTypeName() override
void SetSyntheticChildrenGenerated(bool b) override
void SetPreferredDisplayLanguage(lldb::LanguageType)
ValueObjectDynamicValue(ValueObject &parent, lldb::DynamicValueType use_dynamic)
lldb::DynamicValueType m_use_dynamic
TypeAndOrName m_dynamic_type_info
bool SetData(DataExtractor &data, Status &error) override
bool GetDeclaration(Declaration &decl) override
bool SetValueFromCString(const char *value_str, Status &error) override
ConstString GetDisplayTypeName() override
Address m_address
The variable that this value object is based upon.
ConstString GetTypeName() override
void SetValueIsValid(bool valid)
EvaluationPoint m_update_point
Stores both the stop id and the full context at which this value was last updated.
CompilerType GetCompilerType()
void SetPreferredDisplayLanguage(lldb::LanguageType lt)
virtual void SetLanguageFlags(uint64_t flags)
Status m_error
An error object that can describe any errors that occur when updating values.
virtual uint64_t GetLanguageFlags()
virtual void SetSyntheticChildrenGenerated(bool b)
DataExtractor m_data
A data extractor that can be used to extract the value.
virtual uint64_t GetValueAsUnsigned(uint64_t fail_value, bool *success=nullptr)
void SetValueDidChange(bool value_changed)
virtual lldb::ModuleSP GetModule()
Return the module associated with this value object in case the value is from an executable file and ...
lldb::LanguageType m_preferred_display_language
ValueObject * m_parent
The parent value object, or nullptr if this has no parent.
virtual bool GetDeclaration(Declaration &decl)
bool UpdateValueIfNeeded(bool update_format=true)
void SetName(ConstString name)
Change the name of the current ValueObject.
lldb::TargetSP GetTargetSP() const
ConstString GetName() const
void ClearDynamicTypeInformation()
const ExecutionContextRef & GetExecutionContextRef() const
virtual bool CanProvideValue()
const Scalar & GetScalar() const
See comment on m_scalar to understand what GetScalar returns.
ValueType
Type that describes Value::m_value.
@ HostAddress
A host address value (for memory in the process that < A is using liblldb).
ValueType GetValueType() const
#define LLDB_INVALID_ADDRESS
A class that represents a running process on the host machine.
Log * GetLog(Cat mask)
Retrieve the Log object for the channel associated with the given log enum.
LanguageType
Programming language type.
@ eLanguageTypeUnknown
Unknown or invalid language value.
@ eLanguageTypeC
Non-standardized C, such as K&R.
@ eLanguageTypeObjC
Objective-C.
@ eLanguageTypeC_plus_plus
ISO C++:1998.
std::shared_ptr< lldb_private::Target > TargetSP