Index: snapshot/mac/mach_o_image_reader.h |
diff --git a/snapshot/mac/mach_o_image_reader.h b/snapshot/mac/mach_o_image_reader.h |
index e750fbbba7c9444e93ef40ff072c65f8f5e6a1c3..23e4a90fd8296df61c02c7a3897c505aac69d4f0 100644 |
--- a/snapshot/mac/mach_o_image_reader.h |
+++ b/snapshot/mac/mach_o_image_reader.h |
@@ -265,6 +265,13 @@ class MachOImageReader { |
//! be empty. |
std::string DylinkerName() const { return dylinker_name_; } |
+ //! \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: |
// A generic helper routine for the other Read*Command() methods. |
template <typename T> |