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

Unified Diff: util/mac/mach_o_image_segment_reader.h

Issue 535343004: Add MachOImageReader and its test (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 6 years, 3 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: util/mac/mach_o_image_segment_reader.h
diff --git a/util/mac/mach_o_image_segment_reader.h b/util/mac/mach_o_image_segment_reader.h
index 66fab9a832aa59e2ca6cdada3d3c03ee2f51c0a6..185bc63168e208e0c912556dc8332b21257129a6 100644
--- a/util/mac/mach_o_image_segment_reader.h
+++ b/util/mac/mach_o_image_segment_reader.h
@@ -140,6 +140,13 @@ class MachOImageSegmentReader {
//! \sa MachOImageReader::GetSectionAtIndex()
const process_types::section* GetSectionAtIndex(size_t index) const;
+ //! Returns whether the segment slides.
+ //!
+ //! Most segments slide, but the __PAGEZERO segment does not, it grows
+ //! instead. This method identifies non-sliding segments in the same way that
+ //! the kernel does.
+ bool SegmentSlides() const;
+
//! \brief Returns a segment name string.
//!
//! Segment names may be 16 characters long, and are not necessarily

Powered by Google App Engine
This is Rietveld 408576698