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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 INITIALIZATION_STATE_SET_VALID(initialized_); | 55 INITIALIZATION_STATE_SET_VALID(initialized_); |
56 return true; | 56 return true; |
57 } | 57 } |
58 | 58 |
59 bool ProcessSnapshotMac::InitializeException( | 59 bool ProcessSnapshotMac::InitializeException( |
60 thread_t exception_thread, | 60 thread_t exception_thread, |
61 exception_type_t exception, | 61 exception_type_t exception, |
62 const mach_exception_data_type_t* code, | 62 const mach_exception_data_type_t* code, |
63 mach_msg_type_number_t code_count, | 63 mach_msg_type_number_t code_count, |
64 thread_state_flavor_t flavor, | 64 thread_state_flavor_t flavor, |
65 const natural_t* state, | 65 ConstThreadState state, |
66 mach_msg_type_number_t state_count) { | 66 mach_msg_type_number_t state_count) { |
67 INITIALIZATION_STATE_DCHECK_VALID(initialized_); | 67 INITIALIZATION_STATE_DCHECK_VALID(initialized_); |
68 DCHECK(!exception_); | 68 DCHECK(!exception_); |
69 | 69 |
70 exception_.reset(new internal::ExceptionSnapshotMac()); | 70 exception_.reset(new internal::ExceptionSnapshotMac()); |
71 if (!exception_->Initialize(&process_reader_, | 71 if (!exception_->Initialize(&process_reader_, |
72 exception_thread, | 72 exception_thread, |
73 exception, | 73 exception, |
74 code, | 74 code, |
75 code_count, | 75 code_count, |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 for (const ProcessReader::Module& process_reader_module : | 201 for (const ProcessReader::Module& process_reader_module : |
202 process_reader_modules) { | 202 process_reader_modules) { |
203 auto module = make_scoped_ptr(new internal::ModuleSnapshotMac()); | 203 auto module = make_scoped_ptr(new internal::ModuleSnapshotMac()); |
204 if (module->Initialize(&process_reader_, process_reader_module)) { | 204 if (module->Initialize(&process_reader_, process_reader_module)) { |
205 modules_.push_back(module.release()); | 205 modules_.push_back(module.release()); |
206 } | 206 } |
207 } | 207 } |
208 } | 208 } |
209 | 209 |
210 } // namespace crashpad | 210 } // namespace crashpad |
OLD | NEW |