Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: syzygy/experimental/pdb_dumper/pdb_dump.h

Issue 1357713004: PdbDumper: Dump FPO records. (Closed) Base URL: https://github.com/google/syzygy.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | syzygy/experimental/pdb_dumper/pdb_dump.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 Google Inc. All Rights Reserved. 1 // Copyright 2012 Google Inc. All Rights Reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with 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 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and 12 // See the License for the specific language governing permissions and
13 // limitations under the License. 13 // limitations under the License.
14 14
15 #ifndef SYZYGY_EXPERIMENTAL_PDB_DUMPER_PDB_DUMP_H_ 15 #ifndef SYZYGY_EXPERIMENTAL_PDB_DUMPER_PDB_DUMP_H_
16 #define SYZYGY_EXPERIMENTAL_PDB_DUMPER_PDB_DUMP_H_ 16 #define SYZYGY_EXPERIMENTAL_PDB_DUMPER_PDB_DUMP_H_
17 17
18 #include <utility> 18 #include <utility>
19 #include <vector> 19 #include <vector>
20 20
21 #include "base/files/file_path.h" 21 #include "base/files/file_path.h"
22 #include "syzygy/application/application.h" 22 #include "syzygy/application/application.h"
23 #include "syzygy/pdb/pdb_stream.h"
23 #include "syzygy/pdb/pdb_util.h" 24 #include "syzygy/pdb/pdb_util.h"
24 25
25 namespace pdb { 26 namespace pdb {
26 27
27 // Forward declarations. 28 // Forward declarations.
28 class DbiStream; 29 class DbiStream;
29 30
30 // The PdbDump application dumps data for one or more PDB files to stdout, 31 // The PdbDump application dumps data for one or more PDB files to stdout,
31 // and can optionally explode the streams from each PDB file to a set of files 32 // and can optionally explode the streams from each PDB file to a set of files
32 // in a directory named <pdbfile>-streams. 33 // in a directory named <pdbfile>-streams.
(...skipping 18 matching lines...) Expand all
51 52
52 // Dumps headers from @p dbi_stream to out(). 53 // Dumps headers from @p dbi_stream to out().
53 void DumpDbiHeaders(const DbiStream& dbi_stream); 54 void DumpDbiHeaders(const DbiStream& dbi_stream);
54 55
55 // Dumps the name table from the PDB file to out(). 56 // Dumps the name table from the PDB file to out().
56 void DumpNameTable(const OffsetStringMap& name_table); 57 void DumpNameTable(const OffsetStringMap& name_table);
57 58
58 // Dumps @p dbi_stream to out(). 59 // Dumps @p dbi_stream to out().
59 void DumpDbiStream(const DbiStream& dbi_stream); 60 void DumpDbiStream(const DbiStream& dbi_stream);
60 61
62 // Dumps @p fpo_stream to out().
63 void DumpFpoStream(pdb::PdbStream* fpo_stream,
64 pdb::PdbStream* new_fpo_stream);
65
61 // The PDB files to dump. 66 // The PDB files to dump.
62 std::vector<base::FilePath> pdb_files_; 67 std::vector<base::FilePath> pdb_files_;
63 68
64 // Iff true, will explode the streams from pdb_files_ to individual files. 69 // Iff true, will explode the streams from pdb_files_ to individual files.
65 // Default to false. 70 // Default to false.
66 bool explode_streams_; 71 bool explode_streams_;
67 72
68 // Iff true, the symbol record stream will be dumped. Default to false. 73 // Iff true, the symbol record stream will be dumped. Default to false.
69 bool dump_symbol_record_; 74 bool dump_symbol_record_;
70 75
76 // Iff true, the FPO stream will be dumped. Default to false.
77 bool dump_fpo_;
78
71 // Iff true, the type info stream will be dumped. Default to false. 79 // Iff true, the type info stream will be dumped. Default to false.
72 bool dump_type_info_; 80 bool dump_type_info_;
73 81
74 // Iff true, the module streams will be dumped. Default to false. 82 // Iff true, the module streams will be dumped. Default to false.
75 bool dump_modules_; 83 bool dump_modules_;
76 }; 84 };
77 85
78 } // namespace pdb 86 } // namespace pdb
79 87
80 #endif // SYZYGY_EXPERIMENTAL_PDB_DUMPER_PDB_DUMP_H_ 88 #endif // SYZYGY_EXPERIMENTAL_PDB_DUMPER_PDB_DUMP_H_
OLDNEW
« no previous file with comments | « no previous file | syzygy/experimental/pdb_dumper/pdb_dump.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698