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

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: . Created 5 years, 3 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') | snapshot/memory_map_snapshot.h » ('J')
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..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.
//!
« no previous file with comments | « no previous file | snapshot/mac/process_snapshot_mac.h » ('j') | snapshot/memory_map_snapshot.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698