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/ClangASTType.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 static lldb::ValueObjectSP
30 Create (ExecutionContextScope *exe_scope,
32 const Address &address,
33 lldb::TypeSP &type_sp);
35 static lldb::ValueObjectSP
36 Create (ExecutionContextScope *exe_scope,
38 const Address &address,
39 const ClangASTType &ast_type);
51 CalculateNumChildren();
53 virtual lldb::ValueType
59 virtual lldb::ModuleSP
69 Address m_address; ///< The variable that this value object is based upon
70 lldb::TypeSP m_type_sp;
71 ClangASTType m_clang_type;
74 ValueObjectMemory (ExecutionContextScope *exe_scope,
76 const Address &address,
77 lldb::TypeSP &type_sp);
79 ValueObjectMemory (ExecutionContextScope *exe_scope,
81 const Address &address,
82 const ClangASTType &ast_type);
83 //------------------------------------------------------------------
84 // For ValueObject only
85 //------------------------------------------------------------------
86 DISALLOW_COPY_AND_ASSIGN (ValueObjectMemory);
89 } // namespace lldb_private
91 #endif // liblldb_ValueObjectMemory_h_