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

Unified Diff: compat/non_win/winnt.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: typo 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
Index: compat/non_win/winnt.h
diff --git a/compat/non_win/winnt.h b/compat/non_win/winnt.h
index d61504c09c7d9e231df14facaf4c5a79f09dc74a..5d0067159a96ab6745c5608568daff01351a96ca 100644
--- a/compat/non_win/winnt.h
+++ b/compat/non_win/winnt.h
@@ -179,4 +179,39 @@ struct IMAGE_DEBUG_MISC {
#define VER_PLATFORM_WIN32_NT 2
//! \}
+//! \anchor PAGE_*
Mark Mentovai 2015/10/12 14:34:46 PAGE_x, because a * won’t work here. Same on line
Mark Mentovai 2015/10/12 14:47:30 Mark Mentovai wrote:
scottmg 2015/10/13 19:51:29 Done.
+//! \name PAGE_*
+//!
+//! \brief Memory protection constants for MINIDUMP_MEMORY_INFO::Protect and
+//! MINIDUMP_MEMORY_INFO::AllocationProtect.
+//! \{
+#define PAGE_NOACCESS 0x01
Mark Mentovai 2015/10/12 14:34:46 Meh on the leading zeroes, which none of the other
scottmg 2015/10/13 19:51:29 Done.
+#define PAGE_READONLY 0x02
+#define PAGE_READWRITE 0x04
+#define PAGE_WRITECOPY 0x08
+#define PAGE_EXECUTE 0x10
+#define PAGE_EXECUTE_READ 0x20
+#define PAGE_EXECUTE_READWRITE 0x40
+#define PAGE_EXECUTE_WRITECOPY 0x80
+#define PAGE_GUARD 0x100
+#define PAGE_NOCACHE 0x200
+#define PAGE_WRITECOMBINE 0x400
+//! \}
+
+//! \anchor MEM_*
+//! \name MEM_*
+//!
+//! \brief Memory state and type constants for MINIDUMP_MEMORY_INFO::State and
+//! MINIDUMP_MEMORY_INFO::Type.
+//! \{
+#define MEM_COMMIT 0x1000
+#define MEM_RESERVE 0x2000
+#define MEM_DECOMMIT 0x4000
+#define MEM_RELEASE 0x8000
+#define MEM_FREE 0x10000
+#define MEM_PRIVATE 0x20000
+#define MEM_MAPPED 0x40000
+#define MEM_RESET 0x80000
+//! \}
+
#endif // CRASHPAD_COMPAT_NON_WIN_WINNT_H_

Powered by Google App Engine
This is Rietveld 408576698