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

Unified Diff: compat/non_win/dbghelp.h

Issue 1379873005: win: Write memory map info as MINIDUMP_MEMORY_INFO[_LIST] (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@save-peb-more-2
Patch Set: headers Created 5 years, 2 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | compat/non_win/winnt.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compat/non_win/dbghelp.h
diff --git a/compat/non_win/dbghelp.h b/compat/non_win/dbghelp.h
index 4fcd796bffef51f60b93cab0fd35cd9b45eb22e1..6fed86bdaaeb5b77674a2c0375d71df2f02fca46 100644
--- a/compat/non_win/dbghelp.h
+++ b/compat/non_win/dbghelp.h
@@ -167,6 +167,9 @@ enum MINIDUMP_STREAM_TYPE {
//! MINIDUMP_MISC_INFO::Flags1, that indicates which data is present and
//! valid.
MiscInfoStream = 15,
+
+ //! \brief The stream type for MINIDUMP_MEMORY_INFO_LIST.
+ MemoryInfoListStream = 16,
};
//! \brief Information about the CPU (or CPUs) that ran the process that the
@@ -847,8 +850,8 @@ struct __attribute__((packed, aligned(4))) MINIDUMP_MEMORY_INFO {
//! \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.
+ //! \ref PAGE_x PAGE_EXECUTE, \ref PAGE_x PAGE_NOACCESS, etc.), along with
+ //! \ref PAGE_x PAGE_GUARD or \ref PAGE_x PAGE_NOCACHE, as needed.
uint32_t AllocationProtect;
uint32_t __alignment1;
@@ -858,20 +861,35 @@ struct __attribute__((packed, aligned(4))) MINIDUMP_MEMORY_INFO {
uint64_t RegionSize;
//! \brief The state of the pages in the region. This can be one of
- //! `MEM_COMMIT`, `MEM_FREE`, or `MEM_RESERVE`.
+ //! \ref MEM_x MEM_COMMIT, \ref MEM_x MEM_FREE, or \ref MEM_x 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.
uint32_t Protect;
- //! \brief The type of pages in the region. This can be one of `MEM_IMAGE`,
- //! `MEM_MAPPED`, or `MEM_PRIVATE`.
+ //! \brief The type of pages in the region. This can be one of \ref MEM_x
+ //! MEM_IMAGE, \ref MEM_x MEM_MAPPED, or \ref MEM_x MEM_PRIVATE.
uint32_t Type;
uint32_t __alignment2;
};
+//! \brief Contains a list of memory regions.
+struct __attribute__((packed, aligned(4))) MINIDUMP_MEMORY_INFO_LIST {
+ //! \brief The size of the header data for the stream, in bytes. This is
+ //! generally sizeof(MINIDUMP_MEMORY_INFO_LIST).
+ uint32_t SizeOfHeader;
+
+ //! \brief The size of each entry following the header, in bytes. This is
+ //! generally sizeof(MINIDUMP_MEMORY_INFO).
+ uint32_t SizeOfEntry;
+
+ //! \brief The number of entries in the stream. These are generally
+ //! MINIDUMP_MEMORY_INFO structures. The entries follow the header.
+ uint64_t NumberOfEntries;
+};
+
//! \brief Minidump file type values for MINIDUMP_HEADER::Flags. These bits
//! describe the types of data carried within a minidump file.
enum MINIDUMP_TYPE {
« no previous file with comments | « no previous file | compat/non_win/winnt.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698