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

Unified Diff: minidump/minidump_file_writer.cc

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 | « minidump/minidump_extensions.h ('k') | minidump/minidump_memory_info_writer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: minidump/minidump_file_writer.cc
diff --git a/minidump/minidump_file_writer.cc b/minidump/minidump_file_writer.cc
index f0c8d4b87f155b60f423619d72193d2a9729548f..88986561c31ce2c5c4c03d211b9acd52d8b087f2 100644
--- a/minidump/minidump_file_writer.cc
+++ b/minidump/minidump_file_writer.cc
@@ -17,6 +17,7 @@
#include "base/logging.h"
#include "minidump/minidump_crashpad_info_writer.h"
#include "minidump/minidump_exception_writer.h"
+#include "minidump/minidump_memory_info_writer.h"
#include "minidump/minidump_memory_writer.h"
#include "minidump/minidump_misc_info_writer.h"
#include "minidump/minidump_module_writer.h"
@@ -99,6 +100,14 @@ void MinidumpFileWriter::InitializeFromSnapshot(
AddStream(crashpad_info.Pass());
}
+ std::vector<const MemoryMapRegionSnapshot*> memory_map_snapshot =
+ process_snapshot->MemoryMap();
+ if (!memory_map_snapshot.empty()) {
+ auto memory_info_list = make_scoped_ptr(new MinidumpMemoryInfoListWriter());
+ memory_info_list->InitializeFromSnapshot(memory_map_snapshot);
+ AddStream(memory_info_list.Pass());
+ }
+
memory_list->AddFromSnapshot(process_snapshot->ExtraMemory());
AddStream(memory_list.Pass());
« no previous file with comments | « minidump/minidump_extensions.h ('k') | minidump/minidump_memory_info_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698