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

Unified Diff: compat/non_win/dbghelp.h

Issue 1377133006: Mostly-boilerplate to add MemoryMapSnapshot (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@memory-info-to-misc
Patch Set: fixes 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 | snapshot/mac/process_snapshot_mac.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 8537687a4f7d8b104485a241e25239865c007cd8..4fcd796bffef51f60b93cab0fd35cd9b45eb22e1 100644
--- a/compat/non_win/dbghelp.h
+++ b/compat/non_win/dbghelp.h
@@ -836,6 +836,42 @@ struct __attribute__((packed, aligned(4))) MINIDUMP_MISC_INFO_4
//! \brief The latest known version of the MINIDUMP_MISC_INFO structure.
typedef MINIDUMP_MISC_INFO_4 MINIDUMP_MISC_INFO_N;
+//! \brief Describes a region of memory.
+struct __attribute__((packed, aligned(4))) MINIDUMP_MEMORY_INFO {
+ //! \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;
+
+ 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.
+ 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;
+
+ uint32_t __alignment2;
+};
+
//! \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 | snapshot/mac/process_snapshot_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698