Index: minidump/minidump_file_writer.cc |
diff --git a/minidump/minidump_file_writer.cc b/minidump/minidump_file_writer.cc |
index 88986561c31ce2c5c4c03d211b9acd52d8b087f2..ff3531918eb13f9e6681f6c65e51b1669ef70165 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_handle_writer.h" |
#include "minidump/minidump_memory_info_writer.h" |
#include "minidump/minidump_memory_writer.h" |
#include "minidump/minidump_misc_info_writer.h" |
@@ -108,6 +109,13 @@ void MinidumpFileWriter::InitializeFromSnapshot( |
AddStream(memory_info_list.Pass()); |
} |
+ std::vector<HandleSnapshot> handles_snapshot = process_snapshot->Handles(); |
+ if (!handles_snapshot.empty()) { |
+ auto handle_data_writer = make_scoped_ptr(new MinidumpHandleDataWriter()); |
+ handle_data_writer->InitializeFromSnapshot(handles_snapshot); |
+ AddStream(handle_data_writer.Pass()); |
+ } |
+ |
memory_list->AddFromSnapshot(process_snapshot->ExtraMemory()); |
AddStream(memory_list.Pass()); |