Lines Matching refs:Segment
133 for (auto &Segment : FR.Segments) { in initialize() local
134 if (Segment.Addr < MinAddr) in initialize()
135 MinAddr = Segment.Addr; in initialize()
140 if (Segment.Prot & tpctypes::WPF_Read) in initialize()
142 if (Segment.Prot & tpctypes::WPF_Write) in initialize()
144 if (Segment.Prot & tpctypes::WPF_Exec) in initialize()
147 if (mprotect(Segment.Addr.toPtr<void *>(), Segment.Size, NativeProt)) in initialize()
153 getWindowsProtectionFlags(fromWireProtectionFlags(Segment.Prot)); in initialize()
155 if (!VirtualProtect(Segment.Addr.toPtr<void *>(), Segment.Size, NativeProt, in initialize()
161 if (Segment.Prot & tpctypes::WPF_Exec) in initialize()
162 sys::Memory::InvalidateInstructionCache(Segment.Addr.toPtr<void *>(), in initialize()
163 Segment.Size); in initialize()