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

Unified Diff: snapshot/exception_snapshot.h

Issue 1533183002: win: Capture some memory pointed at by context (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: mac Created 4 years, 11 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_file_writer.cc ('k') | snapshot/mac/exception_snapshot_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: snapshot/exception_snapshot.h
diff --git a/snapshot/exception_snapshot.h b/snapshot/exception_snapshot.h
index bd8ad8a6be46c9e59d1cf57e827fa3ec2dfb81d5..eef9f47a66f6a1d67821749833b53f3401b6b027 100644
--- a/snapshot/exception_snapshot.h
+++ b/snapshot/exception_snapshot.h
@@ -19,6 +19,8 @@
#include <vector>
+#include "snapshot/memory_snapshot.h"
+
namespace crashpad {
struct CPUContext;
@@ -103,6 +105,15 @@ class ExceptionSnapshot {
//! `RaiseException()`. See the documentation for `ExceptionInformation` in
//! `EXCEPTION_RECORD`.
virtual const std::vector<uint64_t>& Codes() const = 0;
+
+ //! \brief Returns a vector of additional memory blocks that should be
+ //! included in a minidump.
+ //!
+ //! \return A vector of MemorySnapshot objects that will be included in the
+ //! crash dump. The caller does not take ownership of these objects, they
+ //! are scoped to the lifetime of the ThreadSnapshot object that they
+ //! were obtained from.
+ virtual std::vector<const MemorySnapshot*> ExtraMemory() const = 0;
};
} // namespace crashpad
« no previous file with comments | « minidump/minidump_file_writer.cc ('k') | snapshot/mac/exception_snapshot_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698