Index: snapshot/mac/mach_o_image_annotations_reader.h |
diff --git a/snapshot/mac/mach_o_image_annotations_reader.h b/snapshot/mac/mach_o_image_annotations_reader.h |
index 8d92e99f9ce10442394928db2b00143e3efda66a..dbabdb9c0827f67a295b43553db799f9c5658244 100644 |
--- a/snapshot/mac/mach_o_image_annotations_reader.h |
+++ b/snapshot/mac/mach_o_image_annotations_reader.h |
@@ -20,6 +20,7 @@ |
#include <vector> |
#include "base/basictypes.h" |
+#include "snapshot/mac/process_types.h" |
namespace crashpad { |
@@ -66,6 +67,13 @@ class MachOImageAnnotationsReader { |
//! pairs, where all keys and values are strings. |
std::map<std::string, std::string> SimpleMap() const; |
+ //! \brief Obtains the module’s CrashpadInfo structure. |
+ //! |
+ //! \return `true` on success, `false` on failure. If the module does not have |
+ //! a `__crashpad_info` section, this will return `false` without logging |
+ //! any messages. Other failures will result in messages being logged. |
+ bool GetCrashpadInfo(process_types::CrashpadInfo* crashpad_info) const; |
+ |
private: |
// Reades crashreporter_annotations_t::message and |
// crashreporter_annotations_t::message2 on behalf of Vector(). |