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 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 | 397 |
398 //! \brief Structures identifying each thread within the process. | 398 //! \brief Structures identifying each thread within the process. |
399 MINIDUMP_THREAD Threads[0]; | 399 MINIDUMP_THREAD Threads[0]; |
400 }; | 400 }; |
401 | 401 |
402 //! \brief Information about an exception that occurred in the process. | 402 //! \brief Information about an exception that occurred in the process. |
403 struct __attribute__((packed, aligned(4))) MINIDUMP_EXCEPTION { | 403 struct __attribute__((packed, aligned(4))) MINIDUMP_EXCEPTION { |
404 //! \brief The top-level exception code identifying the exception, in | 404 //! \brief The top-level exception code identifying the exception, in |
405 //! operating system-specific values. | 405 //! operating system-specific values. |
406 //! | 406 //! |
407 //! For Mac OS X minidumps, this will be a value of | 407 //! For Mac OS X minidumps, this will be an \ref EXC_x "EXC_*" exception type, |
408 //! crashpad::MinidumpExceptionCodeMac, which corresponds to an `EXC_*` | 408 //! such as `EXC_BAD_ACCESS`. `EXC_CRASH` will not appear here for exceptions |
409 //! exception type. `EXC_CRASH` will not appear here for exceptions processed | 409 //! processed as `EXC_CRASH` when generated from another preceding exception: |
410 //! as `EXC_CRASH` when generated from another preceding exception: the | 410 //! the original exception code will appear instead. The exception type as it |
411 //! original exception code will appear instead. The exception type as it was | 411 //! was received will appear at index 0 of #ExceptionInformation. |
412 //! received will appear at index 0 of #ExceptionInformation. | |
413 //! | 412 //! |
414 //! \note This field is named ExceptionCode, but what is known as the | 413 //! \note This field is named ExceptionCode, but what is known as the |
415 //! “exception code” on Mac OS X/Mach is actually stored in the | 414 //! “exception code” on Mac OS X/Mach is actually stored in the |
416 //! #ExceptionFlags field of a minidump file. | 415 //! #ExceptionFlags field of a minidump file. |
417 //! | 416 //! |
418 //! \todo Document the possible values by OS. There should be OS-specific | 417 //! \todo Document the possible values by OS. There should be OS-specific |
419 //! enums in minidump_extensions.h. | 418 //! enums in minidump_extensions.h. |
420 uint32_t ExceptionCode; | 419 uint32_t ExceptionCode; |
421 | 420 |
422 //! \brief Additional exception flags that further identify the exception, in | 421 //! \brief Additional exception flags that further identify the exception, in |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
841 //! - A MINIDUMP_MODULE_LIST stream. All loaded modules are present. | 840 //! - A MINIDUMP_MODULE_LIST stream. All loaded modules are present. |
842 //! - Typically, a MINIDUMP_MEMORY_LIST stream containing duplicate pointers | 841 //! - Typically, a MINIDUMP_MEMORY_LIST stream containing duplicate pointers |
843 //! to the stack memory regions also referenced by the MINIDUMP_THREAD_LIST | 842 //! to the stack memory regions also referenced by the MINIDUMP_THREAD_LIST |
844 //! stream. Since Windows 7 (NT 6.1), this type of minidump file also | 843 //! stream. Since Windows 7 (NT 6.1), this type of minidump file also |
845 //! includes a MINIDUMP_MEMORY_DESCRIPTOR containing the 256 bytes centered | 844 //! includes a MINIDUMP_MEMORY_DESCRIPTOR containing the 256 bytes centered |
846 //! around the exception address or the instruction pointer. | 845 //! around the exception address or the instruction pointer. |
847 MiniDumpNormal = 0x00000000, | 846 MiniDumpNormal = 0x00000000, |
848 }; | 847 }; |
849 | 848 |
850 #endif // CRASHPAD_COMPAT_NON_WIN_DBGHELP_H_ | 849 #endif // CRASHPAD_COMPAT_NON_WIN_DBGHELP_H_ |
OLD | NEW |