OLD | NEW |
1 // Copyright 2014 The Crashpad Authors. All rights reserved. | 1 // Copyright 2014 The Crashpad Authors. 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, |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 iov.iov_base = &pdb_name_[0]; | 70 iov.iov_base = &pdb_name_[0]; |
71 iov.iov_len = (pdb_name_.size() + 1) * sizeof(pdb_name_[0]); | 71 iov.iov_len = (pdb_name_.size() + 1) * sizeof(pdb_name_[0]); |
72 iovecs.push_back(iov); | 72 iovecs.push_back(iov); |
73 | 73 |
74 return file_writer->WriteIoVec(&iovecs); | 74 return file_writer->WriteIoVec(&iovecs); |
75 } | 75 } |
76 | 76 |
77 } // namespace internal | 77 } // namespace internal |
78 | 78 |
79 template class internal::MinidumpModuleCodeViewRecordPDBLinkWriter< | 79 template class internal::MinidumpModuleCodeViewRecordPDBLinkWriter< |
80 MinidumpModuleCodeViewRecordPDB20>; | 80 CodeViewRecordPDB20>; |
81 | 81 |
82 MinidumpModuleCodeViewRecordPDB20Writer:: | 82 MinidumpModuleCodeViewRecordPDB20Writer:: |
83 ~MinidumpModuleCodeViewRecordPDB20Writer() { | 83 ~MinidumpModuleCodeViewRecordPDB20Writer() { |
84 } | 84 } |
85 | 85 |
86 void MinidumpModuleCodeViewRecordPDB20Writer::SetTimestampAndAge( | 86 void MinidumpModuleCodeViewRecordPDB20Writer::SetTimestampAndAge( |
87 time_t timestamp, | 87 time_t timestamp, |
88 uint32_t age) { | 88 uint32_t age) { |
89 DCHECK_EQ(state(), kStateMutable); | 89 DCHECK_EQ(state(), kStateMutable); |
90 | 90 |
91 internal::MinidumpWriterUtil::AssignTimeT(&codeview_record()->timestamp, | 91 internal::MinidumpWriterUtil::AssignTimeT(&codeview_record()->timestamp, |
92 timestamp); | 92 timestamp); |
93 | 93 |
94 codeview_record()->age = age; | 94 codeview_record()->age = age; |
95 } | 95 } |
96 | 96 |
97 template class internal::MinidumpModuleCodeViewRecordPDBLinkWriter< | 97 template class internal::MinidumpModuleCodeViewRecordPDBLinkWriter< |
98 MinidumpModuleCodeViewRecordPDB70>; | 98 CodeViewRecordPDB70>; |
99 | 99 |
100 MinidumpModuleCodeViewRecordPDB70Writer:: | 100 MinidumpModuleCodeViewRecordPDB70Writer:: |
101 ~MinidumpModuleCodeViewRecordPDB70Writer() { | 101 ~MinidumpModuleCodeViewRecordPDB70Writer() { |
102 } | 102 } |
103 | 103 |
104 void MinidumpModuleCodeViewRecordPDB70Writer::InitializeFromSnapshot( | 104 void MinidumpModuleCodeViewRecordPDB70Writer::InitializeFromSnapshot( |
105 const ModuleSnapshot* module_snapshot) { | 105 const ModuleSnapshot* module_snapshot) { |
106 DCHECK_EQ(state(), kStateMutable); | 106 DCHECK_EQ(state(), kStateMutable); |
107 | 107 |
108 std::string name = module_snapshot->Name(); | 108 std::string name = module_snapshot->Name(); |
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 } | 450 } |
451 | 451 |
452 return file_writer->WriteIoVec(&iovecs); | 452 return file_writer->WriteIoVec(&iovecs); |
453 } | 453 } |
454 | 454 |
455 MinidumpStreamType MinidumpModuleListWriter::StreamType() const { | 455 MinidumpStreamType MinidumpModuleListWriter::StreamType() const { |
456 return kMinidumpStreamTypeModuleList; | 456 return kMinidumpStreamTypeModuleList; |
457 } | 457 } |
458 | 458 |
459 } // namespace crashpad | 459 } // namespace crashpad |
OLD | NEW |