OLD | NEW |
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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 pid_t process_id_; | 173 pid_t process_id_; |
174 pid_t inherited_from_process_id_; | 174 pid_t inherited_from_process_id_; |
175 HANDLE process_; | 175 HANDLE process_; |
176 std::wstring command_line_; | 176 std::wstring command_line_; |
177 WinVMAddress peb_address_; | 177 WinVMAddress peb_address_; |
178 WinVMSize peb_size_; | 178 WinVMSize peb_size_; |
179 std::vector<Module> modules_; | 179 std::vector<Module> modules_; |
180 std::vector<MEMORY_BASIC_INFORMATION64> memory_info_; | 180 std::vector<MEMORY_BASIC_INFORMATION64> memory_info_; |
181 | 181 |
182 // Handles() is logically const, but updates this member on first retrieval. | 182 // Handles() is logically const, but updates this member on first retrieval. |
183 // See https://code.google.com/p/crashpad/issues/detail?id=9. | 183 // See https://crashpad.chromium.org/bug/9. |
184 mutable std::vector<Handle> handles_; | 184 mutable std::vector<Handle> handles_; |
185 | 185 |
186 bool is_64_bit_; | 186 bool is_64_bit_; |
187 bool is_wow64_; | 187 bool is_wow64_; |
188 InitializationStateDcheck initialized_; | 188 InitializationStateDcheck initialized_; |
189 | 189 |
190 DISALLOW_COPY_AND_ASSIGN(ProcessInfo); | 190 DISALLOW_COPY_AND_ASSIGN(ProcessInfo); |
191 }; | 191 }; |
192 | 192 |
193 //! \brief Given a memory map of a process, and a range to be read from the | 193 //! \brief Given a memory map of a process, and a range to be read from the |
194 //! target process, returns a vector of ranges, representing the readable | 194 //! target process, returns a vector of ranges, representing the readable |
195 //! portions of the original range. | 195 //! portions of the original range. |
196 //! | 196 //! |
197 //! This is a free function for testing, but prefer | 197 //! This is a free function for testing, but prefer |
198 //! ProcessInfo::GetReadableRanges(). | 198 //! ProcessInfo::GetReadableRanges(). |
199 std::vector<CheckedRange<WinVMAddress, WinVMSize>> GetReadableRangesOfMemoryMap( | 199 std::vector<CheckedRange<WinVMAddress, WinVMSize>> GetReadableRangesOfMemoryMap( |
200 const CheckedRange<WinVMAddress, WinVMSize>& range, | 200 const CheckedRange<WinVMAddress, WinVMSize>& range, |
201 const std::vector<MEMORY_BASIC_INFORMATION64>& memory_info); | 201 const std::vector<MEMORY_BASIC_INFORMATION64>& memory_info); |
202 | 202 |
203 } // namespace crashpad | 203 } // namespace crashpad |
204 | 204 |
205 #endif // CRASHPAD_UTIL_WIN_PROCESS_INFO_H_ | 205 #endif // CRASHPAD_UTIL_WIN_PROCESS_INFO_H_ |
OLD | NEW |