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

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

Issue 1364053002: win: Save contents of PEB to minidump (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@save-teb
Patch Set: fixes 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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698