Lines Matching refs:hdr
139 static bool IsDyldHdr(const mach_header *hdr) { in IsDyldHdr() argument
140 return (hdr->magic == MH_MAGIC || hdr->magic == MH_MAGIC_64) && in IsDyldHdr()
141 hdr->filetype == MH_DYLINKER; in IsDyldHdr()
165 mach_header *hdr = (mach_header *)address; in GetDyldImageHeaderViaVMRegion() local
166 if (IsDyldHdr(hdr)) { in GetDyldImageHeaderViaVMRegion()
167 return hdr; in GetDyldImageHeaderViaVMRegion()
209 mach_header *hdr = in GetDyldImageHeaderViaSharedCache()
211 if (IsDyldHdr(hdr)) in GetDyldImageHeaderViaSharedCache()
212 dyldHdr = hdr; in GetDyldImageHeaderViaSharedCache()
363 const mach_header *hdr = (data_.current_image == kDyldImageIdx) in Next() local
366 if (!hdr) continue; in Next()
369 data_.current_load_cmd_count = hdr->ncmds; in Next()
370 data_.current_magic = hdr->magic; in Next()
371 data_.current_filetype = hdr->filetype; in Next()
372 data_.current_arch = ModuleArchFromCpuType(hdr->cputype, hdr->cpusubtype); in Next()
377 (const char *)hdr + sizeof(mach_header_64); in Next()
382 data_.current_load_cmd_addr = (const char *)hdr + sizeof(mach_header); in Next()