Chromium Code Reviews| Index: compat/non_win/dbghelp.h |
| diff --git a/compat/non_win/dbghelp.h b/compat/non_win/dbghelp.h |
| index 8537687a4f7d8b104485a241e25239865c007cd8..aec5ce55f97dfa5ac1bf3642929233709afc321d 100644 |
| --- a/compat/non_win/dbghelp.h |
| +++ b/compat/non_win/dbghelp.h |
| @@ -137,6 +137,44 @@ struct __attribute__((packed, aligned(4))) MINIDUMP_STRING { |
| base::char16 Buffer[0]; |
| }; |
| +//! \brief Describes a region of memory. |
| +struct __attribute__((packed, aligned(4))) MINIDUMP_MEMORY_INFO { |
|
Mark Mentovai
2015/10/06 20:44:49
Everything in here is ordered the same as in dbghe
scottmg
2015/10/07 21:45:09
Done.
|
| + //! \brief The base address of the region of pages. |
| + uint64_t BaseAddress; |
| + |
| + //! \brief The base address of a range of pages in this region. The page is |
| + //! contained within this memory region. |
| + uint64_t AllocationBase; |
| + |
| + //! \brief The memory protection when the region was initially allocated. This |
| + //! member can be one of the memory protection options (such as |
| + //! `PAGE_EXECUTE`, `PAGE_NOACCESS`, etc.), along with `PAGE_GUARD` or |
| + //! `PAGE_NOCACHE`, as needed. |
| + uint32_t AllocationProtect; |
| + |
| + //! \brief To align the next field. |
| + uint32_t __alignment1; |
| + |
| + //! \brief The size of the region beginning at the base address in which all |
| + //! pages have identical attributes, in bytes. |
| + uint64_t RegionSize; |
| + |
| + //! \brief The state of the pages in the region. This can be one of |
| + //! `MEM_COMMIT`, `MEM_FREE`, or `MEM_RESERVE`. |
| + uint32_t State; |
| + |
| + //! \brief The access protection of the pages in the region. This member is |
| + //! one of the values listed for the AllocationProtect member. |
|
Mark Mentovai
2015/10/06 20:44:49
#AllocationProtect for proper linking in the gener
scottmg
2015/10/07 21:45:09
Done.
|
| + uint32_t Protect; |
| + |
| + //! \brief The type of pages in the region. This can be one of `MEM_IMAGE`, |
| + //! `MEM_MAPPED`, or `MEM_PRIVATE`. |
| + uint32_t Type; |
| + |
| + //! \brief To align the next MINIDUMP_MEMORY_INFO in an array. |
| + uint32_t __alignment2; |
| +}; |
| + |
| //! \brief Minidump stream type values for MINIDUMP_DIRECTORY::StreamType. Each |
| //! stream structure has a corresponding stream type value to identify it. |
| //! |