OLD | NEW |
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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 modules.push_back(module); | 179 modules.push_back(module); |
180 } | 180 } |
181 return modules; | 181 return modules; |
182 } | 182 } |
183 | 183 |
184 const ExceptionSnapshot* ProcessSnapshotMac::Exception() const { | 184 const ExceptionSnapshot* ProcessSnapshotMac::Exception() const { |
185 INITIALIZATION_STATE_DCHECK_VALID(initialized_); | 185 INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
186 return exception_.get(); | 186 return exception_.get(); |
187 } | 187 } |
188 | 188 |
| 189 std::vector<const MemoryMapRegionSnapshot*> ProcessSnapshotMac::MemoryMap() |
| 190 const { |
| 191 INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
| 192 return std::vector<const MemoryMapRegionSnapshot*>(); |
| 193 } |
| 194 |
189 std::vector<const MemorySnapshot*> ProcessSnapshotMac::ExtraMemory() const { | 195 std::vector<const MemorySnapshot*> ProcessSnapshotMac::ExtraMemory() const { |
190 INITIALIZATION_STATE_DCHECK_VALID(initialized_); | 196 INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
191 return std::vector<const MemorySnapshot*>(); | 197 return std::vector<const MemorySnapshot*>(); |
192 } | 198 } |
193 | 199 |
194 void ProcessSnapshotMac::InitializeThreads() { | 200 void ProcessSnapshotMac::InitializeThreads() { |
195 const std::vector<ProcessReader::Thread>& process_reader_threads = | 201 const std::vector<ProcessReader::Thread>& process_reader_threads = |
196 process_reader_.Threads(); | 202 process_reader_.Threads(); |
197 for (const ProcessReader::Thread& process_reader_thread : | 203 for (const ProcessReader::Thread& process_reader_thread : |
198 process_reader_threads) { | 204 process_reader_threads) { |
(...skipping 10 matching lines...) Expand all Loading... |
209 for (const ProcessReader::Module& process_reader_module : | 215 for (const ProcessReader::Module& process_reader_module : |
210 process_reader_modules) { | 216 process_reader_modules) { |
211 auto module = make_scoped_ptr(new internal::ModuleSnapshotMac()); | 217 auto module = make_scoped_ptr(new internal::ModuleSnapshotMac()); |
212 if (module->Initialize(&process_reader_, process_reader_module)) { | 218 if (module->Initialize(&process_reader_, process_reader_module)) { |
213 modules_.push_back(module.release()); | 219 modules_.push_back(module.release()); |
214 } | 220 } |
215 } | 221 } |
216 } | 222 } |
217 | 223 |
218 } // namespace crashpad | 224 } // namespace crashpad |
OLD | NEW |