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);
54 CalculateNumChildren();
56 virtual lldb::ValueType
62 virtual lldb::ModuleSP
72 Address m_address; ///< The variable that this value object is based upon
73 lldb::TypeSP m_type_sp;
74 ClangASTType m_clang_type;
77 ValueObjectMemory (ExecutionContextScope *exe_scope,
79 const Address &address,
80 lldb::TypeSP &type_sp);
82 ValueObjectMemory (ExecutionContextScope *exe_scope,
84 const Address &address,
85 const ClangASTType &ast_type);
86 //------------------------------------------------------------------
87 // For ValueObject only
88 //------------------------------------------------------------------
89 DISALLOW_COPY_AND_ASSIGN (ValueObjectMemory);
92 } // namespace lldb_private
94 #endif // liblldb_ValueObjectMemory_h_