retdec
vtable_gcc.h
Go to the documentation of this file.
1 
7 #ifndef RETDEC_RTTI_FINDER_VTABLE_VTABLE_GCC_H
8 #define RETDEC_RTTI_FINDER_VTABLE_VTABLE_GCC_H
9 
10 #include <cstdint>
11 #include <map>
12 #include <vector>
13 
15 #include "retdec/common/address.h"
16 #include "retdec/common/vtable.h"
17 
18 namespace retdec {
19 namespace rtti_finder {
20 
32 {
33  public:
35 
36  public:
37  std::vector<int> vcallOffsets;
38  std::vector<int> vbaseOffsets;
39  int topOffset = 0;
41  std::shared_ptr<ClassTypeInfo> rtti;
42 };
43 
44 using VtablesGcc = std::map<retdec::common::Address, VtableGcc>;
45 
46 } // namespace rtti_finder
47 } // namespace retdec
48 
49 #endif
Definition: address.h:21
Definition: vtable.h:68
Vtable(const retdec::common::Address &a=retdec::common::Address::Undefined)
Definition: vtable.cpp:107
Definition: vtable_gcc.h:32
VtableGcc(retdec::common::Address a)
Definition: vtable_gcc.h:34
std::vector< int > vbaseOffsets
TODO: not set/used right now.
Definition: vtable_gcc.h:38
std::shared_ptr< ClassTypeInfo > rtti
Definition: vtable_gcc.h:41
std::vector< int > vcallOffsets
TODO: not set/used right now.
Definition: vtable_gcc.h:37
int topOffset
TODO: not set/used right now.
Definition: vtable_gcc.h:39
retdec::common::Address rttiAddress
Definition: vtable_gcc.h:40
Address, address pair and other derived class representation.
Common vtable representation.
std::map< retdec::common::Address, VtableGcc > VtablesGcc
Definition: vtable_gcc.h:44
Definition: archive_wrapper.h:19
GCC/Clang C++ RTTI structures.