| 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());
|
|
|