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

Unified Diff: snapshot/minidump/process_snapshot_minidump.h

Issue 972383002: snapshot: Add a minimal ModuleSnapshotMinidump and accessor from ProcessSnapshotMinidump (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 5 years, 10 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: snapshot/minidump/process_snapshot_minidump.h
diff --git a/snapshot/minidump/process_snapshot_minidump.h b/snapshot/minidump/process_snapshot_minidump.h
index 9a7f84af1eb3ee2f301c0a46f999a794e0a9e1b1..b1bf6ef8833fefb09cd40be5cbe3ba324cf05d12 100644
--- a/snapshot/minidump/process_snapshot_minidump.h
+++ b/snapshot/minidump/process_snapshot_minidump.h
@@ -26,12 +26,14 @@
#include "base/basictypes.h"
#include "minidump/minidump_extensions.h"
#include "snapshot/exception_snapshot.h"
+#include "snapshot/minidump/module_snapshot_minidump.h"
#include "snapshot/module_snapshot.h"
#include "snapshot/process_snapshot.h"
#include "snapshot/system_snapshot.h"
#include "snapshot/thread_snapshot.h"
#include "util/file/file_reader.h"
#include "util/misc/initialization_state_dcheck.h"
+#include "util/stdlib/pointer_container.h"
namespace crashpad {
@@ -69,9 +71,21 @@ class ProcessSnapshotMinidump final : public ProcessSnapshot {
// Initialize().
void InitializeCrashpadInfo();
+ // Initializes data carried in a MINIDUMP_MODULE_LIST stream on behalf of
+ // Initialize().
+ bool InitializeModules();
+
+ // Initializes data carried in a MinidumpModuleCrashpadInfoList structure on
+ // behalf of InitializeModules(). This makes use of MinidumpCrashpadInfo as
+ // well, so it must be called after InitializeCrashpadInfo().
+ void InitializeModulesCrashpadInfo(
+ std::map<uint32_t, MINIDUMP_LOCATION_DESCRIPTOR>*
+ module_crashpad_info_links);
+
MINIDUMP_HEADER header_;
std::vector<MINIDUMP_DIRECTORY> stream_directory_;
std::map<MinidumpStreamType, const MINIDUMP_LOCATION_DESCRIPTOR*> stream_map_;
+ PointerVector<internal::ModuleSnapshotMinidump> modules_;
MinidumpCrashpadInfo crashpad_info_;
std::map<std::string, std::string> annotations_simple_map_;
FileReaderInterface* file_reader_; // weak

Powered by Google App Engine
This is Rietveld 408576698