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

Side by Side Diff: snapshot/mac/module_snapshot_mac.cc

Issue 972383002: snapshot: Add a minimal ModuleSnapshotMinidump and accessor from ProcessSnapshotMinidump (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Add NOTREACHED() comments Created 5 years, 9 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
« no previous file with comments | « no previous file | snapshot/mac/process_snapshot_mac.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 return kModuleTypeUnknown; 129 return kModuleTypeUnknown;
130 } 130 }
131 } 131 }
132 132
133 void ModuleSnapshotMac::UUID(crashpad::UUID* uuid) const { 133 void ModuleSnapshotMac::UUID(crashpad::UUID* uuid) const {
134 INITIALIZATION_STATE_DCHECK_VALID(initialized_); 134 INITIALIZATION_STATE_DCHECK_VALID(initialized_);
135 return mach_o_image_reader_->UUID(uuid); 135 return mach_o_image_reader_->UUID(uuid);
136 } 136 }
137 137
138 std::vector<std::string> ModuleSnapshotMac::AnnotationsVector() const { 138 std::vector<std::string> ModuleSnapshotMac::AnnotationsVector() const {
139 INITIALIZATION_STATE_DCHECK_VALID(initialized_);
139 MachOImageAnnotationsReader annotations_reader( 140 MachOImageAnnotationsReader annotations_reader(
140 process_reader_, mach_o_image_reader_, name_); 141 process_reader_, mach_o_image_reader_, name_);
141 return annotations_reader.Vector(); 142 return annotations_reader.Vector();
142 } 143 }
143 144
144 std::map<std::string, std::string> ModuleSnapshotMac::AnnotationsSimpleMap() 145 std::map<std::string, std::string> ModuleSnapshotMac::AnnotationsSimpleMap()
145 const { 146 const {
147 INITIALIZATION_STATE_DCHECK_VALID(initialized_);
146 MachOImageAnnotationsReader annotations_reader( 148 MachOImageAnnotationsReader annotations_reader(
147 process_reader_, mach_o_image_reader_, name_); 149 process_reader_, mach_o_image_reader_, name_);
148 return annotations_reader.SimpleMap(); 150 return annotations_reader.SimpleMap();
149 } 151 }
150 152
151 } // namespace internal 153 } // namespace internal
152 } // namespace crashpad 154 } // namespace crashpad
OLDNEW
« no previous file with comments | « no previous file | snapshot/mac/process_snapshot_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698