blob: 7bbfe8a662d1bdf0f7c68b68f20b886946c932d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
//===-- ValueObjectChild.h --------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef liblldb_ValueObjectChild_h_
#define liblldb_ValueObjectChild_h_
// C Includes
// C++ Includes
// Other libraries and framework includes
// Project includes
#include "lldb/Core/ValueObject.h"
namespace lldb_private {
//----------------------------------------------------------------------
// A child of another ValueObject.
//----------------------------------------------------------------------
class ValueObjectChild : public ValueObject
{
public:
virtual ~ValueObjectChild();
virtual uint64_t
GetByteSize()
{
return m_byte_size;
}
virtual lldb::offset_t
GetByteOffset()
{
return m_byte_offset;
}
virtual uint32_t
GetBitfieldBitSize()
{
return m_bitfield_bit_size;
}
virtual uint32_t
GetBitfieldBitOffset()
{
return m_bitfield_bit_offset;
}
virtual lldb::ValueType
GetValueType() const;
virtual size_t
CalculateNumChildren();
virtual ConstString
GetTypeName();
virtual ConstString
GetQualifiedTypeName();
virtual ConstString
GetDisplayTypeName();
virtual bool
IsInScope ();
virtual bool
IsBaseClass ()
{
return m_is_base_class;
}
virtual bool
IsDereferenceOfParent ()
{
return m_is_deref_of_parent;
}
protected:
virtual bool
UpdateValue ();
virtual ClangASTType
GetClangTypeImpl ()
{
return m_clang_type;
}
ClangASTType m_clang_type;
ConstString m_type_name;
uint64_t m_byte_size;
int32_t m_byte_offset;
uint8_t m_bitfield_bit_size;
uint8_t m_bitfield_bit_offset;
bool m_is_base_class;
bool m_is_deref_of_parent;
//
// void
// ReadValueFromMemory (ValueObject* parent, lldb::addr_t address);
protected:
friend class ValueObject;
friend class ValueObjectConstResult;
friend class ValueObjectConstResultImpl;
ValueObjectChild (ValueObject &parent,
const ClangASTType &clang_type,
const ConstString &name,
uint64_t byte_size,
int32_t byte_offset,
uint32_t bitfield_bit_size,
uint32_t bitfield_bit_offset,
bool is_base_class,
bool is_deref_of_parent,
AddressType child_ptr_or_ref_addr_type);
DISALLOW_COPY_AND_ASSIGN (ValueObjectChild);
};
} // namespace lldb_private
#endif // liblldb_ValueObjectChild_h_
|