Lines Matching defs:hdr
139 static bool IsDyldHdr(const mach_header *hdr) {
140 return (hdr->magic == MH_MAGIC || hdr->magic == MH_MAGIC_64) &&
141 hdr->filetype == MH_DYLINKER;
165 mach_header *hdr = (mach_header *)address;
166 if (IsDyldHdr(hdr)) {
167 return hdr;
209 mach_header *hdr =
211 if (IsDyldHdr(hdr))
212 dyldHdr = hdr;
364 const mach_header *hdr = (data_.current_image == kDyldImageIdx)
367 return (const ImageHeader *)hdr;
372 const mach_header *hdr = (const mach_header *)CurrentImageHeader();
373 if (!hdr) continue;
376 data_.current_load_cmd_count = hdr->ncmds;
377 data_.current_magic = hdr->magic;
378 data_.current_filetype = hdr->filetype;
379 data_.current_arch = ModuleArchFromCpuType(hdr->cputype, hdr->cpusubtype);
384 (const char *)hdr + sizeof(mach_header_64);
389 data_.current_load_cmd_addr = (const char *)hdr + sizeof(mach_header);