printbug...

This commit is contained in:
Jeremy 2024-02-07 22:34:23 -06:00
parent 41f37a3446
commit 59272bccd6
No known key found for this signature in database
GPG Key ID: BE03111EB7ED6E2E

View File

@ -451,6 +451,8 @@ namespace detail {
off_t mach_header_offset = (off_t)arch.offset;
arch_offset += arch_size;
std::uint32_t magic = load_bytes<std::uint32_t>(file, mach_header_offset);
std::cerr<<"xxx: "<<arch.cputype<<" : "<<mhp->cputype<<std::endl;
std::cerr<<" "<<arch.cpusubtype<<" : "<<static_cast<cpu_subtype_t>(mhp->cpusubtype & ~CPU_SUBTYPE_MASK)<<std::endl;
if(
arch.cputype == mhp->cputype &&
static_cast<cpu_subtype_t>(mhp->cpusubtype & ~CPU_SUBTYPE_MASK) == arch.cpusubtype