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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 } | 83 } |
84 | 84 |
85 // This type appears only as a variable-sized list. | 85 // This type appears only as a variable-sized list. |
86 MINIDUMP_ALLOW_OVERSIZED_DATA(MINIDUMP_DIRECTORY); | 86 MINIDUMP_ALLOW_OVERSIZED_DATA(MINIDUMP_DIRECTORY); |
87 | 87 |
88 // These types are permitted to be oversized because their final fields are | 88 // These types are permitted to be oversized because their final fields are |
89 // variable-sized lists. | 89 // variable-sized lists. |
90 MINIDUMP_ALLOW_OVERSIZED_DATA(MINIDUMP_MEMORY_LIST); | 90 MINIDUMP_ALLOW_OVERSIZED_DATA(MINIDUMP_MEMORY_LIST); |
91 MINIDUMP_ALLOW_OVERSIZED_DATA(MINIDUMP_MODULE_LIST); | 91 MINIDUMP_ALLOW_OVERSIZED_DATA(MINIDUMP_MODULE_LIST); |
92 MINIDUMP_ALLOW_OVERSIZED_DATA(MINIDUMP_THREAD_LIST); | 92 MINIDUMP_ALLOW_OVERSIZED_DATA(MINIDUMP_THREAD_LIST); |
93 MINIDUMP_ALLOW_OVERSIZED_DATA(MinidumpLocationDescriptorList); | 93 MINIDUMP_ALLOW_OVERSIZED_DATA(MinidumpModuleCrashpadInfoList); |
94 MINIDUMP_ALLOW_OVERSIZED_DATA(MinidumpRVAList); | 94 MINIDUMP_ALLOW_OVERSIZED_DATA(MinidumpRVAList); |
95 MINIDUMP_ALLOW_OVERSIZED_DATA(MinidumpSimpleStringDictionary); | 95 MINIDUMP_ALLOW_OVERSIZED_DATA(MinidumpSimpleStringDictionary); |
96 | 96 |
97 // These types have final fields carrying variable-sized data (typically string | 97 // These types have final fields carrying variable-sized data (typically string |
98 // data). | 98 // data). |
99 MINIDUMP_ALLOW_OVERSIZED_DATA(IMAGE_DEBUG_MISC); | 99 MINIDUMP_ALLOW_OVERSIZED_DATA(IMAGE_DEBUG_MISC); |
100 MINIDUMP_ALLOW_OVERSIZED_DATA(MINIDUMP_STRING); | 100 MINIDUMP_ALLOW_OVERSIZED_DATA(MINIDUMP_STRING); |
101 MINIDUMP_ALLOW_OVERSIZED_DATA(MinidumpModuleCodeViewRecordPDB20); | 101 MINIDUMP_ALLOW_OVERSIZED_DATA(MinidumpModuleCodeViewRecordPDB20); |
102 MINIDUMP_ALLOW_OVERSIZED_DATA(MinidumpModuleCodeViewRecordPDB70); | 102 MINIDUMP_ALLOW_OVERSIZED_DATA(MinidumpModuleCodeViewRecordPDB70); |
103 MINIDUMP_ALLOW_OVERSIZED_DATA(MinidumpUTF8String); | 103 MINIDUMP_ALLOW_OVERSIZED_DATA(MinidumpUTF8String); |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 const MINIDUMP_MODULE_LIST* MinidumpWritableAtLocationDescriptor< | 183 const MINIDUMP_MODULE_LIST* MinidumpWritableAtLocationDescriptor< |
184 MINIDUMP_MODULE_LIST>(const std::string& file_contents, | 184 MINIDUMP_MODULE_LIST>(const std::string& file_contents, |
185 const MINIDUMP_LOCATION_DESCRIPTOR& location); | 185 const MINIDUMP_LOCATION_DESCRIPTOR& location); |
186 | 186 |
187 template <> | 187 template <> |
188 const MINIDUMP_THREAD_LIST* MinidumpWritableAtLocationDescriptor< | 188 const MINIDUMP_THREAD_LIST* MinidumpWritableAtLocationDescriptor< |
189 MINIDUMP_THREAD_LIST>(const std::string& file_contents, | 189 MINIDUMP_THREAD_LIST>(const std::string& file_contents, |
190 const MINIDUMP_LOCATION_DESCRIPTOR& location); | 190 const MINIDUMP_LOCATION_DESCRIPTOR& location); |
191 | 191 |
192 template <> | 192 template <> |
193 const MinidumpLocationDescriptorList* | |
194 MinidumpWritableAtLocationDescriptor<MinidumpLocationDescriptorList>( | |
195 const std::string& file_contents, | |
196 const MINIDUMP_LOCATION_DESCRIPTOR& location); | |
197 | |
198 template <> | |
199 const MinidumpModuleCodeViewRecordPDB20* | 193 const MinidumpModuleCodeViewRecordPDB20* |
200 MinidumpWritableAtLocationDescriptor<MinidumpModuleCodeViewRecordPDB20>( | 194 MinidumpWritableAtLocationDescriptor<MinidumpModuleCodeViewRecordPDB20>( |
201 const std::string& file_contents, | 195 const std::string& file_contents, |
202 const MINIDUMP_LOCATION_DESCRIPTOR& location); | 196 const MINIDUMP_LOCATION_DESCRIPTOR& location); |
203 | 197 |
204 template <> | 198 template <> |
205 const MinidumpModuleCodeViewRecordPDB70* | 199 const MinidumpModuleCodeViewRecordPDB70* |
206 MinidumpWritableAtLocationDescriptor<MinidumpModuleCodeViewRecordPDB70>( | 200 MinidumpWritableAtLocationDescriptor<MinidumpModuleCodeViewRecordPDB70>( |
207 const std::string& file_contents, | 201 const std::string& file_contents, |
208 const MINIDUMP_LOCATION_DESCRIPTOR& location); | 202 const MINIDUMP_LOCATION_DESCRIPTOR& location); |
209 | 203 |
210 template <> | 204 template <> |
| 205 const MinidumpModuleCrashpadInfoList* |
| 206 MinidumpWritableAtLocationDescriptor<MinidumpModuleCrashpadInfoList>( |
| 207 const std::string& file_contents, |
| 208 const MINIDUMP_LOCATION_DESCRIPTOR& location); |
| 209 |
| 210 template <> |
211 const MinidumpSimpleStringDictionary* | 211 const MinidumpSimpleStringDictionary* |
212 MinidumpWritableAtLocationDescriptor<MinidumpSimpleStringDictionary>( | 212 MinidumpWritableAtLocationDescriptor<MinidumpSimpleStringDictionary>( |
213 const std::string& file_contents, | 213 const std::string& file_contents, |
214 const MINIDUMP_LOCATION_DESCRIPTOR& location); | 214 const MINIDUMP_LOCATION_DESCRIPTOR& location); |
215 | 215 |
216 //! \brief Returns a typed minidump object located within a minidump file’s | 216 //! \brief Returns a typed minidump object located within a minidump file’s |
217 //! contents, where the offset of the object is known. | 217 //! contents, where the offset of the object is known. |
218 //! | 218 //! |
219 //! \param[in] file_contents The contents of the minidump file. | 219 //! \param[in] file_contents The contents of the minidump file. |
220 //! \param[in] rva The offset within the minidump file of the desired object. | 220 //! \param[in] rva The offset within the minidump file of the desired object. |
(...skipping 28 matching lines...) Expand all Loading... |
249 private: | 249 private: |
250 uint32_t value_; | 250 uint32_t value_; |
251 | 251 |
252 DISALLOW_COPY_AND_ASSIGN(TestUInt32MinidumpWritable); | 252 DISALLOW_COPY_AND_ASSIGN(TestUInt32MinidumpWritable); |
253 }; | 253 }; |
254 | 254 |
255 } // namespace test | 255 } // namespace test |
256 } // namespace crashpad | 256 } // namespace crashpad |
257 | 257 |
258 #endif // CRASHPAD_MINIDUMP_TEST_MINIDUMP_WRITABLE_TEST_UTIL_H_ | 258 #endif // CRASHPAD_MINIDUMP_TEST_MINIDUMP_WRITABLE_TEST_UTIL_H_ |
OLD | NEW |