1 //===-- ValueObjectMemory.h -----------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef liblldb_ValueObjectMemory_h_
11 #define liblldb_ValueObjectMemory_h_
15 // Other libraries and framework includes
17 #include "lldb/Core/ValueObject.h"
18 #include "lldb/Symbol/CompilerType.h"
20 namespace lldb_private {
22 //----------------------------------------------------------------------
23 // A ValueObject that represents memory at a given address, viewed as some
25 //----------------------------------------------------------------------
26 class ValueObjectMemory : public ValueObject
29 ~ValueObjectMemory() override;
31 static lldb::ValueObjectSP
32 Create (ExecutionContextScope *exe_scope,
34 const Address &address,
35 lldb::TypeSP &type_sp);
37 static lldb::ValueObjectSP
38 Create (ExecutionContextScope *exe_scope,
40 const Address &address,
41 const CompilerType &ast_type);
44 GetByteSize() override;
47 GetTypeName() override;
50 GetDisplayTypeName() override;
53 CalculateNumChildren(uint32_t max) override;
56 GetValueType() const override;
66 UpdateValue() override;
69 GetCompilerTypeImpl() override;
71 Address m_address; ///< The variable that this value object is based upon
72 lldb::TypeSP m_type_sp;
73 CompilerType m_compiler_type;
76 ValueObjectMemory (ExecutionContextScope *exe_scope,
78 const Address &address,
79 lldb::TypeSP &type_sp);
81 ValueObjectMemory (ExecutionContextScope *exe_scope,
83 const Address &address,
84 const CompilerType &ast_type);
85 //------------------------------------------------------------------
86 // For ValueObject only
87 //------------------------------------------------------------------
88 DISALLOW_COPY_AND_ASSIGN (ValueObjectMemory);
91 } // namespace lldb_private
93 #endif // liblldb_ValueObjectMemory_h_