OLD | NEW |
1 // Copyright 2015 The Crashpad Authors. All rights reserved. | 1 // Copyright 2015 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 } | 170 } |
171 return modules; | 171 return modules; |
172 } | 172 } |
173 | 173 |
174 const ExceptionSnapshot* ProcessSnapshotMinidump::Exception() const { | 174 const ExceptionSnapshot* ProcessSnapshotMinidump::Exception() const { |
175 INITIALIZATION_STATE_DCHECK_VALID(initialized_); | 175 INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
176 NOTREACHED(); // https://code.google.com/p/crashpad/issues/detail?id=10 | 176 NOTREACHED(); // https://code.google.com/p/crashpad/issues/detail?id=10 |
177 return nullptr; | 177 return nullptr; |
178 } | 178 } |
179 | 179 |
| 180 std::vector<const MemorySnapshot*> ProcessSnapshotMinidump::ExtraMemory() |
| 181 const { |
| 182 INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
| 183 NOTREACHED(); // https://code.google.com/p/crashpad/issues/detail?id=10 |
| 184 return std::vector<const MemorySnapshot*>(); |
| 185 } |
| 186 |
180 bool ProcessSnapshotMinidump::InitializeCrashpadInfo() { | 187 bool ProcessSnapshotMinidump::InitializeCrashpadInfo() { |
181 const auto& stream_it = stream_map_.find(kMinidumpStreamTypeCrashpadInfo); | 188 const auto& stream_it = stream_map_.find(kMinidumpStreamTypeCrashpadInfo); |
182 if (stream_it == stream_map_.end()) { | 189 if (stream_it == stream_map_.end()) { |
183 return true; | 190 return true; |
184 } | 191 } |
185 | 192 |
186 if (stream_it->second->DataSize < sizeof(crashpad_info_)) { | 193 if (stream_it->second->DataSize < sizeof(crashpad_info_)) { |
187 LOG(ERROR) << "crashpad_info size mismatch"; | 194 LOG(ERROR) << "crashpad_info size mismatch"; |
188 return false; | 195 return false; |
189 } | 196 } |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 << "duplicate module_crashpad_info_list minidump_module_list_index " | 324 << "duplicate module_crashpad_info_list minidump_module_list_index " |
318 << minidump_link.minidump_module_list_index; | 325 << minidump_link.minidump_module_list_index; |
319 return false; | 326 return false; |
320 } | 327 } |
321 } | 328 } |
322 | 329 |
323 return true; | 330 return true; |
324 } | 331 } |
325 | 332 |
326 } // namespace crashpad | 333 } // namespace crashpad |
OLD | NEW |