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

Side by Side Diff: minidump/minidump_extensions.h

Issue 704333002: Add MinidumpRVAListWriter and test (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@minidump_location_descriptor_list
Patch Set: Rebase Created 6 years, 1 month 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 | « minidump/minidump.gyp ('k') | minidump/minidump_location_descriptor_list_writer_test.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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 289
290 //! \brief The path or file name of the `.pdb` file associated with the 290 //! \brief The path or file name of the `.pdb` file associated with the
291 //! module. 291 //! module.
292 //! 292 //!
293 //! This is a NUL-terminated string. On Windows, it will be encoded in the 293 //! This is a NUL-terminated string. On Windows, it will be encoded in the
294 //! code page of the system that linked the module. On other operating 294 //! code page of the system that linked the module. On other operating
295 //! systems, UTF-8 may be used. 295 //! systems, UTF-8 may be used.
296 uint8_t pdb_name[1]; 296 uint8_t pdb_name[1];
297 }; 297 };
298 298
299 //! \brief A list of ::RVA pointers.
300 struct __attribute__((packed, aligned(4))) MinidumpRVAList {
301 //! \brief The number of children present in the #children array.
302 uint32_t count;
303
304 //! \brief Pointers to other structures in the minidump file.
305 RVA children[0];
306 };
307
299 //! \brief A list of MINIDUMP_LOCATION_DESCRIPTOR objects. 308 //! \brief A list of MINIDUMP_LOCATION_DESCRIPTOR objects.
300 struct __attribute__((packed, aligned(4))) MinidumpLocationDescriptorList { 309 struct __attribute__((packed, aligned(4))) MinidumpLocationDescriptorList {
301 //! \brief The number of children present in the #children array. 310 //! \brief The number of children present in the #children array.
302 uint32_t count; 311 uint32_t count;
303 312
304 //! \brief Pointers to other structures in the minidump file. 313 //! \brief Pointers to other structures in the minidump file.
305 MINIDUMP_LOCATION_DESCRIPTOR children[0]; 314 MINIDUMP_LOCATION_DESCRIPTOR children[0];
306 }; 315 };
307 316
308 //! \brief A key-value pair. 317 //! \brief A key-value pair.
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 428
420 //! \brief A pointer to a #MinidumpModuleCrashpadInfoList structure. 429 //! \brief A pointer to a #MinidumpModuleCrashpadInfoList structure.
421 //! 430 //!
422 //! This field is present when #version is at least `1`. 431 //! This field is present when #version is at least `1`.
423 MINIDUMP_LOCATION_DESCRIPTOR module_list; 432 MINIDUMP_LOCATION_DESCRIPTOR module_list;
424 }; 433 };
425 434
426 } // namespace crashpad 435 } // namespace crashpad
427 436
428 #endif // CRASHPAD_MINIDUMP_MINIDUMP_EXTENSIONS_H_ 437 #endif // CRASHPAD_MINIDUMP_MINIDUMP_EXTENSIONS_H_
OLDNEW
« no previous file with comments | « minidump/minidump.gyp ('k') | minidump/minidump_location_descriptor_list_writer_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698