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

Side by Side Diff: snapshot/minidump/process_snapshot_minidump.cc

Issue 1377133006: Mostly-boilerplate to add MemoryMapSnapshot (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@memory-info-to-misc
Patch Set: . Created 5 years, 2 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
OLDNEW
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
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 const MemoryMapSnapshot* ProcessSnapshotMinidump::MemoryMap() const {
181 INITIALIZATION_STATE_DCHECK_VALID(initialized_);
182 NOTREACHED(); // https://code.google.com/p/crashpad/issues/detail?id=10
183 return nullptr;
184 }
185
180 std::vector<const MemorySnapshot*> ProcessSnapshotMinidump::ExtraMemory() 186 std::vector<const MemorySnapshot*> ProcessSnapshotMinidump::ExtraMemory()
181 const { 187 const {
182 INITIALIZATION_STATE_DCHECK_VALID(initialized_); 188 INITIALIZATION_STATE_DCHECK_VALID(initialized_);
183 NOTREACHED(); // https://code.google.com/p/crashpad/issues/detail?id=10 189 NOTREACHED(); // https://code.google.com/p/crashpad/issues/detail?id=10
184 return std::vector<const MemorySnapshot*>(); 190 return std::vector<const MemorySnapshot*>();
185 } 191 }
186 192
187 bool ProcessSnapshotMinidump::InitializeCrashpadInfo() { 193 bool ProcessSnapshotMinidump::InitializeCrashpadInfo() {
188 const auto& stream_it = stream_map_.find(kMinidumpStreamTypeCrashpadInfo); 194 const auto& stream_it = stream_map_.find(kMinidumpStreamTypeCrashpadInfo);
189 if (stream_it == stream_map_.end()) { 195 if (stream_it == stream_map_.end()) {
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 << "duplicate module_crashpad_info_list minidump_module_list_index " 330 << "duplicate module_crashpad_info_list minidump_module_list_index "
325 << minidump_link.minidump_module_list_index; 331 << minidump_link.minidump_module_list_index;
326 return false; 332 return false;
327 } 333 }
328 } 334 }
329 335
330 return true; 336 return true;
331 } 337 }
332 338
333 } // namespace crashpad 339 } // namespace crashpad
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698