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

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: test 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
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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 INITIALIZATION_STATE_DCHECK_VALID(initialized_); 149 INITIALIZATION_STATE_DCHECK_VALID(initialized_);
150 return annotations_simple_map_; 150 return annotations_simple_map_;
151 } 151 }
152 152
153 const SystemSnapshot* ProcessSnapshotMinidump::System() const { 153 const SystemSnapshot* ProcessSnapshotMinidump::System() const {
154 INITIALIZATION_STATE_DCHECK_VALID(initialized_); 154 INITIALIZATION_STATE_DCHECK_VALID(initialized_);
155 NOTREACHED(); // https://code.google.com/p/crashpad/issues/detail?id=10 155 NOTREACHED(); // https://code.google.com/p/crashpad/issues/detail?id=10
156 return nullptr; 156 return nullptr;
157 } 157 }
158 158
159 const MemorySnapshot* ProcessSnapshotMinidump::Peb() const {
160 INITIALIZATION_STATE_DCHECK_VALID(initialized_);
161 NOTREACHED(); // https://code.google.com/p/crashpad/issues/detail?id=10
162 return nullptr;
163 }
164
159 std::vector<const ThreadSnapshot*> ProcessSnapshotMinidump::Threads() const { 165 std::vector<const ThreadSnapshot*> ProcessSnapshotMinidump::Threads() const {
160 INITIALIZATION_STATE_DCHECK_VALID(initialized_); 166 INITIALIZATION_STATE_DCHECK_VALID(initialized_);
161 NOTREACHED(); // https://code.google.com/p/crashpad/issues/detail?id=10 167 NOTREACHED(); // https://code.google.com/p/crashpad/issues/detail?id=10
162 return std::vector<const ThreadSnapshot*>(); 168 return std::vector<const ThreadSnapshot*>();
163 } 169 }
164 170
165 std::vector<const ModuleSnapshot*> ProcessSnapshotMinidump::Modules() const { 171 std::vector<const ModuleSnapshot*> ProcessSnapshotMinidump::Modules() const {
166 INITIALIZATION_STATE_DCHECK_VALID(initialized_); 172 INITIALIZATION_STATE_DCHECK_VALID(initialized_);
167 std::vector<const ModuleSnapshot*> modules; 173 std::vector<const ModuleSnapshot*> modules;
168 for (internal::ModuleSnapshotMinidump* module : modules_) { 174 for (internal::ModuleSnapshotMinidump* module : modules_) {
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 << "duplicate module_crashpad_info_list minidump_module_list_index " 323 << "duplicate module_crashpad_info_list minidump_module_list_index "
318 << minidump_link.minidump_module_list_index; 324 << minidump_link.minidump_module_list_index;
319 return false; 325 return false;
320 } 326 }
321 } 327 }
322 328
323 return true; 329 return true;
324 } 330 }
325 331
326 } // namespace crashpad 332 } // namespace crashpad
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698