mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-09 22:26:06 +00:00
Better location for adding ExtraMemory snapshots
Follow up to https://codereview.chromium.org/1364053002/. R=mark@chromium.org BUG=crashpad:46 Review URL: https://codereview.chromium.org/1369823002 .
This commit is contained in:
parent
599eda0403
commit
9bc0a99681
@ -93,14 +93,14 @@ void MinidumpFileWriter::InitializeFromSnapshot(
|
|||||||
auto crashpad_info = make_scoped_ptr(new MinidumpCrashpadInfoWriter());
|
auto crashpad_info = make_scoped_ptr(new MinidumpCrashpadInfoWriter());
|
||||||
crashpad_info->InitializeFromSnapshot(process_snapshot);
|
crashpad_info->InitializeFromSnapshot(process_snapshot);
|
||||||
|
|
||||||
memory_list->AddFromSnapshot(process_snapshot->ExtraMemory());
|
|
||||||
|
|
||||||
// Since the MinidumpCrashpadInfo stream is an extension, it’s safe to not add
|
// Since the MinidumpCrashpadInfo stream is an extension, it’s safe to not add
|
||||||
// it to the minidump file if it wouldn’t carry any useful information.
|
// it to the minidump file if it wouldn’t carry any useful information.
|
||||||
if (crashpad_info->IsUseful()) {
|
if (crashpad_info->IsUseful()) {
|
||||||
AddStream(crashpad_info.Pass());
|
AddStream(crashpad_info.Pass());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
memory_list->AddFromSnapshot(process_snapshot->ExtraMemory());
|
||||||
|
|
||||||
AddStream(memory_list.Pass());
|
AddStream(memory_list.Pass());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user