1 : // Copyright 2012 Google Inc. All Rights Reserved.
2 : //
3 : // Licensed under the Apache License, Version 2.0 (the "License");
4 : // you may not use this file except in compliance with the License.
5 : // You may obtain a copy of the License at
6 : //
7 : // http://www.apache.org/licenses/LICENSE-2.0
8 : //
9 : // Unless required by applicable law or agreed to in writing, software
10 : // distributed under the License is distributed on an "AS IS" BASIS,
11 : // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 : // See the License for the specific language governing permissions and
13 : // limitations under the License.
14 : //
15 : // This file provide some data types used to store the content of the different
16 : // PDB streams.
17 :
18 : #ifndef SYZYGY_PDB_PDB_DATA_TYPES_H_
19 : #define SYZYGY_PDB_PDB_DATA_TYPES_H_
20 :
21 : #include <map>
22 : #include <vector>
23 :
24 m : namespace pdb {
25 :
26 : // Stores the basic information for a symbol record.
27 m : struct SymbolRecord {
28 m : size_t start_position;
29 m : uint16 len;
30 m : uint16 type;
31 m : };
32 m : typedef std::vector<SymbolRecord> SymbolRecordVector;
33 :
34 : // Stores the basic information for a type info record.
35 m : struct TypeInfoRecord {
36 m : size_t start_position;
37 m : uint16 len;
38 m : uint16 type;
39 m : };
40 : // Map with the type number as a key and the TypeInfoRecord as a value.
41 m : typedef std::map<uint32, TypeInfoRecord> TypeInfoRecordMap;
42 :
43 m : } // namespace pdb
44 :
45 : #endif // SYZYGY_PDB_PDB_DATA_TYPES_H_
|