Lines Matching refs:outs
232 dumpBytes(ArrayRef(bytes, 4), outs()); in DumpDataInCode()
234 outs() << "\t.long " << Value; in DumpDataInCode()
238 dumpBytes(ArrayRef(bytes, 2), outs()); in DumpDataInCode()
240 outs() << "\t.short " << Value; in DumpDataInCode()
244 dumpBytes(ArrayRef(bytes, 2), outs()); in DumpDataInCode()
246 outs() << "\t.byte " << Value; in DumpDataInCode()
250 outs() << "\t@ KIND_DATA\n"; in DumpDataInCode()
252 outs() << "\t@ data in code kind = " << Kind << "\n"; in DumpDataInCode()
256 dumpBytes(ArrayRef(bytes, 1), outs()); in DumpDataInCode()
258 outs() << "\t.byte " << format("%3u", Value) << "\t@ KIND_JUMP_TABLE8\n"; in DumpDataInCode()
263 dumpBytes(ArrayRef(bytes, 2), outs()); in DumpDataInCode()
265 outs() << "\t.short " << format("%5u", Value & 0xffff) in DumpDataInCode()
272 dumpBytes(ArrayRef(bytes, 4), outs()); in DumpDataInCode()
274 outs() << "\t.long " << Value; in DumpDataInCode()
276 outs() << "\t@ KIND_JUMP_TABLE32\n"; in DumpDataInCode()
278 outs() << "\t@ KIND_ABS_JUMP_TABLE32\n"; in DumpDataInCode()
606 outs() << " (entries start past the end of the indirect symbol " in PrintIndirectSymbolTable()
609 outs() << " (entries extends past the end of the indirect symbol " in PrintIndirectSymbolTable()
611 outs() << "\n"; in PrintIndirectSymbolTable()
614 outs() << "address index"; in PrintIndirectSymbolTable()
616 outs() << "address index"; in PrintIndirectSymbolTable()
618 outs() << " name\n"; in PrintIndirectSymbolTable()
620 outs() << "\n"; in PrintIndirectSymbolTable()
623 outs() << format("0x%016" PRIx64, addr + j * stride) << " "; in PrintIndirectSymbolTable()
625 outs() << format("0x%08" PRIx32, (uint32_t)addr + j * stride) << " "; in PrintIndirectSymbolTable()
629 outs() << "LOCAL\n"; in PrintIndirectSymbolTable()
634 outs() << "LOCAL ABSOLUTE\n"; in PrintIndirectSymbolTable()
638 outs() << "ABSOLUTE\n"; in PrintIndirectSymbolTable()
641 outs() << format("%5u ", indirect_symbol); in PrintIndirectSymbolTable()
647 outs() << unwrapOrError(Symbol.getName(), O->getFileName()); in PrintIndirectSymbolTable()
649 outs() << "?"; in PrintIndirectSymbolTable()
652 outs() << "\n"; in PrintIndirectSymbolTable()
674 outs() << "Can't print indirect symbols for (" << Sec.segname << "," in PrintIndirectSymbols()
680 outs() << "Indirect symbols for (" << Sec.segname << "," in PrintIndirectSymbols()
702 outs() << "Can't print indirect symbols for (" << Sec.segname << "," in PrintIndirectSymbols()
708 outs() << "Indirect symbols for (" << Sec.segname << "," in PrintIndirectSymbols()
741 outs() << format("%-7u", r_type) << " "; in PrintRType()
746 outs() << generic_r_types[r_type]; in PrintRType()
749 outs() << x86_64_r_types[r_type]; in PrintRType()
752 outs() << arm_r_types[r_type]; in PrintRType()
756 outs() << arm64_r_types[r_type]; in PrintRType()
759 outs() << format("%-7u ", r_type); in PrintRType()
769 outs() << "lo/"; in PrintRLength()
771 outs() << "hi/"; in PrintRLength()
773 outs() << "arm "; in PrintRLength()
775 outs() << "thm "; in PrintRLength()
779 outs() << "byte "; in PrintRLength()
782 outs() << "word "; in PrintRLength()
785 outs() << "long "; in PrintRLength()
789 outs() << "quad "; in PrintRLength()
791 outs() << format("?(%2d) ", r_length); in PrintRLength()
794 outs() << format("?(%2d) ", r_length); in PrintRLength()
830 outs() << " "; in PrintRelocationEntries()
832 outs() << format("%08x ", (unsigned int)r_address); in PrintRelocationEntries()
836 outs() << "True "; in PrintRelocationEntries()
838 outs() << "False "; in PrintRelocationEntries()
844 outs() << "n/a "; in PrintRelocationEntries()
848 outs() << format("True 0x%08x", (unsigned int)r_value); in PrintRelocationEntries()
852 outs() << format(" half = 0x%04x ", (unsigned int)r_address); in PrintRelocationEntries()
855 outs() << format(" other_half = 0x%04x ", (unsigned int)r_address); in PrintRelocationEntries()
875 outs() << "\n"; in PrintRelocationEntries()
879 outs() << format("%08x %1d %-2d n/a %-7d 1 0x%08x\n", in PrintRelocationEntries()
888 outs() << " "; in PrintRelocationEntries()
890 outs() << format("%08x ", (unsigned int)r_address); in PrintRelocationEntries()
894 outs() << "True "; in PrintRelocationEntries()
896 outs() << "False "; in PrintRelocationEntries()
903 outs() << "True "; in PrintRelocationEntries()
905 outs() << "False "; in PrintRelocationEntries()
909 outs() << format("?(%d)\n", r_symbolnum); in PrintRelocationEntries()
917 outs() << format("?(%d)\n", r_symbolnum); in PrintRelocationEntries()
919 outs() << name << "\n"; in PrintRelocationEntries()
924 outs() << "False "; in PrintRelocationEntries()
926 outs() << "False "; in PrintRelocationEntries()
930 outs() << format("other_half = 0x%04x\n", (unsigned int)r_address); in PrintRelocationEntries()
934 outs() << format("addend = 0x%06x\n", (unsigned int)r_symbolnum); in PrintRelocationEntries()
936 outs() << format("%d ", r_symbolnum); in PrintRelocationEntries()
938 outs() << "R_ABS\n"; in PrintRelocationEntries()
947 outs() << "(" << SegName << "," << *NameOrErr << ")\n"; in PrintRelocationEntries()
949 outs() << "(?,?)\n"; in PrintRelocationEntries()
952 outs() << "(?,?)\n"; in PrintRelocationEntries()
966 outs() << format("%08x %1d %-2d %1d %-7d 0 %d\n", in PrintRelocationEntries()
978 outs() << "External relocation information " << Dysymtab.nextrel in PrintRelocations()
980 outs() << "\naddress pcrel length extern type scattered " in PrintRelocations()
986 outs() << format("Local relocation information %u entries", in PrintRelocations()
988 outs() << "\naddress pcrel length extern type scattered " in PrintRelocations()
1003 outs() << "Relocation information (" << SegName << "," << *NameOrErr in PrintRelocations()
1006 outs() << "Relocation information (" << SegName << ",?) " in PrintRelocations()
1008 outs() << "\naddress pcrel length extern type scattered " in PrintRelocations()
1023 outs() << "Relocation information (" << SegName << "," << *NameOrErr in PrintRelocations()
1026 outs() << "Relocation information (" << SegName << ",?) " in PrintRelocations()
1028 outs() << "\naddress pcrel length extern type scattered " in PrintRelocations()
1083 outs() << It->second << "\n"; in PrintFunctionStarts()
1086 outs() << format("%016" PRIx64, Addr); in PrintFunctionStarts()
1088 outs() << format("%08" PRIx32, static_cast<uint32_t>(Addr)); in PrintFunctionStarts()
1093 outs() << " " << It->second; in PrintFunctionStarts()
1095 outs() << " ?"; in PrintFunctionStarts()
1097 outs() << "\n"; in PrintFunctionStarts()
1105 outs() << "Data in code table (" << nentries << " entries)\n"; in PrintDataInCodeTable()
1106 outs() << "offset length kind\n"; in PrintDataInCodeTable()
1111 outs() << format("0x%08" PRIx32, Offset) << " "; in PrintDataInCodeTable()
1114 outs() << format("%6u", Length) << " "; in PrintDataInCodeTable()
1120 outs() << "DATA"; in PrintDataInCodeTable()
1123 outs() << "JUMP_TABLE8"; in PrintDataInCodeTable()
1126 outs() << "JUMP_TABLE16"; in PrintDataInCodeTable()
1129 outs() << "JUMP_TABLE32"; in PrintDataInCodeTable()
1132 outs() << "ABS_JUMP_TABLE32"; in PrintDataInCodeTable()
1135 outs() << format("0x%04" PRIx32, Kind); in PrintDataInCodeTable()
1139 outs() << format("0x%04" PRIx32, Kind); in PrintDataInCodeTable()
1140 outs() << "\n"; in PrintDataInCodeTable()
1148 outs() << "Linker optimiztion hints (" << nloh << " total bytes)\n"; in PrintLinkOptHints()
1153 outs() << " identifier " << identifier << " "; in PrintLinkOptHints()
1158 outs() << "AdrpAdrp\n"; in PrintLinkOptHints()
1161 outs() << "AdrpLdr\n"; in PrintLinkOptHints()
1164 outs() << "AdrpAddLdr\n"; in PrintLinkOptHints()
1167 outs() << "AdrpLdrGotLdr\n"; in PrintLinkOptHints()
1170 outs() << "AdrpAddStr\n"; in PrintLinkOptHints()
1173 outs() << "AdrpLdrGotStr\n"; in PrintLinkOptHints()
1176 outs() << "AdrpAdd\n"; in PrintLinkOptHints()
1179 outs() << "AdrpLdrGot\n"; in PrintLinkOptHints()
1182 outs() << "Unknown identifier value\n"; in PrintLinkOptHints()
1187 outs() << " narguments " << narguments << "\n"; in PrintLinkOptHints()
1194 outs() << "\tvalue " << format("0x%" PRIx64, value) << "\n"; in PrintLinkOptHints()
1217 outs() << "chained fixups header (LC_DYLD_CHAINED_FIXUPS)\n"; in PrintChainedFixupsHeader()
1218 outs() << " fixups_version = " << H.fixups_version << '\n'; in PrintChainedFixupsHeader()
1219 outs() << " starts_offset = " << H.starts_offset << '\n'; in PrintChainedFixupsHeader()
1220 outs() << " imports_offset = " << H.imports_offset << '\n'; in PrintChainedFixupsHeader()
1221 outs() << " symbols_offset = " << H.symbols_offset << '\n'; in PrintChainedFixupsHeader()
1222 outs() << " imports_count = " << H.imports_count << '\n'; in PrintChainedFixupsHeader()
1224 outs() << " imports_format = " << H.imports_format; in PrintChainedFixupsHeader()
1227 outs() << " (DYLD_CHAINED_IMPORT)"; in PrintChainedFixupsHeader()
1230 outs() << " (DYLD_CHAINED_IMPORT_ADDEND)"; in PrintChainedFixupsHeader()
1233 outs() << " (DYLD_CHAINED_IMPORT_ADDEND64)"; in PrintChainedFixupsHeader()
1236 outs() << '\n'; in PrintChainedFixupsHeader()
1238 outs() << " symbols_format = " << H.symbols_format; in PrintChainedFixupsHeader()
1240 outs() << " (zlib compressed)"; in PrintChainedFixupsHeader()
1241 outs() << '\n'; in PrintChainedFixupsHeader()
1261 outs() << "chained starts in segment " << Segment.SegIdx << " (" << SegName in PrintChainedFixupsSegment()
1263 outs() << " size = " << Segment.Header.size << '\n'; in PrintChainedFixupsSegment()
1264 outs() << " page_size = " << format("0x%0" PRIx16, Segment.Header.page_size) in PrintChainedFixupsSegment()
1267 outs() << " pointer_format = " << Segment.Header.pointer_format; in PrintChainedFixupsSegment()
1270 outs() << " (" << PointerFormats[Segment.Header.pointer_format - 1] << ")"; in PrintChainedFixupsSegment()
1271 outs() << '\n'; in PrintChainedFixupsSegment()
1273 outs() << " segment_offset = " in PrintChainedFixupsSegment()
1275 outs() << " max_valid_pointer = " << Segment.Header.max_valid_pointer in PrintChainedFixupsSegment()
1277 outs() << " page_count = " << Segment.Header.page_count << '\n'; in PrintChainedFixupsSegment()
1279 outs() << " page_start[" << Index << "] = " << PageStart; in PrintChainedFixupsSegment()
1282 outs() << " (DYLD_CHAINED_PTR_START_NONE)"; in PrintChainedFixupsSegment()
1283 outs() << '\n'; in PrintChainedFixupsSegment()
1290 outs() << "dyld chained import"; in PrintChainedFixupTarget()
1292 outs() << "dyld chained import addend"; in PrintChainedFixupTarget()
1294 outs() << "dyld chained import addend64"; in PrintChainedFixupTarget()
1296 outs() << '[' << Idx << "]\n"; in PrintChainedFixupTarget()
1298 outs() << " lib_ordinal = " << Target.libOrdinal() << " (" in PrintChainedFixupTarget()
1300 outs() << " weak_import = " << Target.weakImport() << '\n'; in PrintChainedFixupTarget()
1301 outs() << " name_offset = " << Target.nameOffset() << " (" in PrintChainedFixupTarget()
1304 outs() << " addend = " << (int64_t)Target.addend() << '\n'; in PrintChainedFixupTarget()
1323 outs() << "chained starts in image\n"; in PrintChainedFixups()
1324 outs() << " seg_count = " << SegCount << '\n'; in PrintChainedFixups()
1332 outs() << " seg_offset[" << I << "] = " << SegOffset << " (" in PrintChainedFixups()
1373 outs() << "dyld information:\n"; in PrintDyldInfo()
1374 outs() << left_justify("segment", SegmentWidth) << ' ' in PrintDyldInfo()
1381 outs() << left_justify(Entry.segmentName(), SegmentWidth) << ' ' in PrintDyldInfo()
1386 outs() << "bind " in PrintDyldInfo()
1391 outs() << " (weak import)"; in PrintDyldInfo()
1392 outs() << '\n'; in PrintDyldInfo()
1395 outs() << "rebase"; in PrintDyldInfo()
1396 outs().indent(AddendWidth + DylibWidth + 2); in PrintDyldInfo()
1397 outs() << format("0x%" PRIX64, Entry.pointerValue()) << '\n'; in PrintDyldInfo()
1420 outs() << p << "\n"; in PrintDylibs()
1422 outs() << "\t" << p; in PrintDylibs()
1423 outs() << " (compatibility version " in PrintDylibs()
1427 outs() << " current version " in PrintDylibs()
1432 outs() << ", weak"; in PrintDylibs()
1434 outs() << ", reexport"; in PrintDylibs()
1436 outs() << ", upward"; in PrintDylibs()
1438 outs() << ", lazy"; in PrintDylibs()
1439 outs() << ")\n"; in PrintDylibs()
1442 outs() << "\tBad offset (" << dl.dylib.name << ") for name of "; in PrintDylibs()
1444 outs() << "LC_ID_DYLIB "; in PrintDylibs()
1446 outs() << "LC_LOAD_DYLIB "; in PrintDylibs()
1448 outs() << "LC_LOAD_WEAK_DYLIB "; in PrintDylibs()
1450 outs() << "LC_LAZY_LOAD_DYLIB "; in PrintDylibs()
1452 outs() << "LC_REEXPORT_DYLIB "; in PrintDylibs()
1454 outs() << "LC_LOAD_UPWARD_DYLIB "; in PrintDylibs()
1456 outs() << "LC_??? "; in PrintDylibs()
1457 outs() << "command " << Index++ << "\n"; in PrintDylibs()
1468 outs() << P << "\n"; in printRpaths()
1509 outs().write_escaped(p); in DumpCstringChar()
1518 outs() << format("%016" PRIx64, sect_addr + i) << " "; in DumpCstringSection()
1520 outs() << format("%08" PRIx64, sect_addr + i) << " "; in DumpCstringSection()
1525 outs() << "\n"; in DumpCstringSection()
1530 outs() << format("0x%08" PRIx32, l); in DumpLiteral4()
1532 outs() << format(" (%.16e)\n", f); in DumpLiteral4()
1535 outs() << " (+Infinity)\n"; in DumpLiteral4()
1537 outs() << " (-Infinity)\n"; in DumpLiteral4()
1539 outs() << " (non-signaling Not-a-Number)\n"; in DumpLiteral4()
1541 outs() << " (signaling Not-a-Number)\n"; in DumpLiteral4()
1551 outs() << format("%016" PRIx64, sect_addr + i) << " "; in DumpLiteral4Section()
1553 outs() << format("%08" PRIx64, sect_addr + i) << " "; in DumpLiteral4Section()
1569 outs() << format("0x%08" PRIx32, l0) << " " << format("0x%08" PRIx32, l1); in DumpLiteral8()
1576 outs() << format(" (%.16e)\n", d); in DumpLiteral8()
1579 outs() << " (+Infinity)\n"; in DumpLiteral8()
1581 outs() << " (-Infinity)\n"; in DumpLiteral8()
1583 outs() << " (non-signaling Not-a-Number)\n"; in DumpLiteral8()
1585 outs() << " (signaling Not-a-Number)\n"; in DumpLiteral8()
1595 outs() << format("%016" PRIx64, sect_addr + i) << " "; in DumpLiteral8Section()
1597 outs() << format("%08" PRIx64, sect_addr + i) << " "; in DumpLiteral8Section()
1615 outs() << format("0x%08" PRIx32, l0) << " "; in DumpLiteral16()
1616 outs() << format("0x%08" PRIx32, l1) << " "; in DumpLiteral16()
1617 outs() << format("0x%08" PRIx32, l2) << " "; in DumpLiteral16()
1618 outs() << format("0x%08" PRIx32, l3) << "\n"; in DumpLiteral16()
1627 outs() << format("%016" PRIx64, sect_addr + i) << " "; in DumpLiteral16Section()
1629 outs() << format("%08" PRIx64, sect_addr + i) << " "; in DumpLiteral16Section()
1694 outs() << format("%016" PRIx64, sect_addr + i) << " "; in DumpLiteralPointerSection()
1696 outs() << format("%08" PRIx64, sect_addr + i) << " "; in DumpLiteralPointerSection()
1718 outs() << "external relocation entry for symbol:" << SymName << "\n"; in DumpLiteralPointerSection()
1727 outs() << format("0x%" PRIx64, lp) << " (not in a literal section)\n"; in DumpLiteralPointerSection()
1743 outs() << SegmentName << ":" << SectName << ":"; in DumpLiteralPointerSection()
1764 outs() << "\n"; in DumpLiteralPointerSection()
1844 outs() << format("0x%016" PRIx64, sect_addr + i * stride) << " "; in DumpInitTermPointerSection()
1849 outs() << format("0x%016" PRIx64, pointer_value); in DumpInitTermPointerSection()
1852 outs() << format("0x%08" PRIx64, sect_addr + i * stride) << " "; in DumpInitTermPointerSection()
1857 outs() << format("0x%08" PRIx32, pointer_value); in DumpInitTermPointerSection()
1867 outs() << " " << unwrapOrError(RelocSym->getName(), O->getFileName()); in DumpInitTermPointerSection()
1871 outs() << " " << SymbolName; in DumpInitTermPointerSection()
1874 outs() << "\n"; in DumpInitTermPointerSection()
1885 outs() << format("%016" PRIx64, addr) << "\t"; in DumpRawSectionContents()
1887 outs() << format("%08" PRIx64, addr) << "\t"; in DumpRawSectionContents()
1890 outs() << format("%02" PRIx32, (uint32_t)byte_word) << " "; in DumpRawSectionContents()
1892 outs() << "\n"; in DumpRawSectionContents()
1898 outs() << format("%016" PRIx64, addr) << "\t"; in DumpRawSectionContents()
1900 outs() << format("%08" PRIx64, addr) << "\t"; in DumpRawSectionContents()
1908 outs() << format("%08" PRIx32, long_word) << " "; in DumpRawSectionContents()
1912 outs() << format("%02" PRIx32, (uint32_t)byte_word) << " "; in DumpRawSectionContents()
1916 outs() << "\n"; in DumpRawSectionContents()
1977 outs() << "Contents of (" << SegName << "," << SectName in DumpSectionContents()
1987 outs() << sect; in DumpSectionContents()
1999 outs() << "zerofill section and has no contents in the file\n"; in DumpSectionContents()
2023 outs() << "Unknown section type (" in DumpSectionContents()
2030 outs() << "zerofill section and has no contents in the file\n"; in DumpSectionContents()
2053 outs() << "Contents of (" << SegName << "," << SectName << ") section\n"; in DumpInfoPlistSectionContents()
2057 outs() << format("%.*s", BytesStr.size(), sect) << "\n"; in DumpInfoPlistSectionContents()
2116 outs() << Name; in ProcessMachO()
2118 outs() << '(' << ArchiveMemberName << ')'; in ProcessMachO()
2120 outs() << " (architecture " << ArchitectureName << ")"; in ProcessMachO()
2121 outs() << ":\n"; in ProcessMachO()
2221 DICtx->dump(outs(), DumpOpts); in ProcessMachO()
2227 outs() << " cputype (" << cputype << ")\n"; in printUnknownCPUType()
2228 outs() << " cpusubtype (" << cpusubtype << ")\n"; in printUnknownCPUType()
2238 outs() << " cputype CPU_TYPE_I386\n"; in printCPUType()
2239 outs() << " cpusubtype CPU_SUBTYPE_I386_ALL\n"; in printCPUType()
2249 outs() << " cputype CPU_TYPE_X86_64\n"; in printCPUType()
2250 outs() << " cpusubtype CPU_SUBTYPE_X86_64_ALL\n"; in printCPUType()
2253 outs() << " cputype CPU_TYPE_X86_64\n"; in printCPUType()
2254 outs() << " cpusubtype CPU_SUBTYPE_X86_64_H\n"; in printCPUType()
2264 outs() << " cputype CPU_TYPE_ARM\n"; in printCPUType()
2265 outs() << " cpusubtype CPU_SUBTYPE_ARM_ALL\n"; in printCPUType()
2268 outs() << " cputype CPU_TYPE_ARM\n"; in printCPUType()
2269 outs() << " cpusubtype CPU_SUBTYPE_ARM_V4T\n"; in printCPUType()
2272 outs() << " cputype CPU_TYPE_ARM\n"; in printCPUType()
2273 outs() << " cpusubtype CPU_SUBTYPE_ARM_V5TEJ\n"; in printCPUType()
2276 outs() << " cputype CPU_TYPE_ARM\n"; in printCPUType()
2277 outs() << " cpusubtype CPU_SUBTYPE_ARM_XSCALE\n"; in printCPUType()
2280 outs() << " cputype CPU_TYPE_ARM\n"; in printCPUType()
2281 outs() << " cpusubtype CPU_SUBTYPE_ARM_V6\n"; in printCPUType()
2284 outs() << " cputype CPU_TYPE_ARM\n"; in printCPUType()
2285 outs() << " cpusubtype CPU_SUBTYPE_ARM_V6M\n"; in printCPUType()
2288 outs() << " cputype CPU_TYPE_ARM\n"; in printCPUType()
2289 outs() << " cpusubtype CPU_SUBTYPE_ARM_V7\n"; in printCPUType()
2292 outs() << " cputype CPU_TYPE_ARM\n"; in printCPUType()
2293 outs() << " cpusubtype CPU_SUBTYPE_ARM_V7EM\n"; in printCPUType()
2296 outs() << " cputype CPU_TYPE_ARM\n"; in printCPUType()
2297 outs() << " cpusubtype CPU_SUBTYPE_ARM_V7K\n"; in printCPUType()
2300 outs() << " cputype CPU_TYPE_ARM\n"; in printCPUType()
2301 outs() << " cpusubtype CPU_SUBTYPE_ARM_V7M\n"; in printCPUType()
2304 outs() << " cputype CPU_TYPE_ARM\n"; in printCPUType()
2305 outs() << " cpusubtype CPU_SUBTYPE_ARM_V7S\n"; in printCPUType()
2315 outs() << " cputype CPU_TYPE_ARM64\n"; in printCPUType()
2316 outs() << " cpusubtype CPU_SUBTYPE_ARM64_ALL\n"; in printCPUType()
2319 outs() << " cputype CPU_TYPE_ARM64\n"; in printCPUType()
2320 outs() << " cpusubtype CPU_SUBTYPE_ARM64_V8\n"; in printCPUType()
2323 outs() << " cputype CPU_TYPE_ARM64\n"; in printCPUType()
2324 outs() << " cpusubtype CPU_SUBTYPE_ARM64E\n"; in printCPUType()
2334 outs() << " cputype CPU_TYPE_ARM64_32\n"; in printCPUType()
2335 outs() << " cpusubtype CPU_SUBTYPE_ARM64_32_V8\n"; in printCPUType()
2350 outs() << "Fat headers\n"; in printMachOUniversalHeaders()
2353 outs() << "fat_magic FAT_MAGIC\n"; in printMachOUniversalHeaders()
2355 outs() << "fat_magic FAT_MAGIC_64\n"; in printMachOUniversalHeaders()
2357 outs() << "fat_magic " << format("0x%" PRIx32, MachO::FAT_MAGIC) << "\n"; in printMachOUniversalHeaders()
2364 outs() << "nfat_arch " << UB->getNumberOfObjects(); in printMachOUniversalHeaders()
2366 outs() << " (malformed, contains zero architecture types)\n"; in printMachOUniversalHeaders()
2368 outs() << " (malformed, architectures past end of file)\n"; in printMachOUniversalHeaders()
2370 outs() << "\n"; in printMachOUniversalHeaders()
2376 outs() << "architecture "; in printMachOUniversalHeaders()
2384 outs() << "(illegal duplicate architecture) "; in printMachOUniversalHeaders()
2389 outs() << OFA.getArchFlagName() << "\n"; in printMachOUniversalHeaders()
2392 outs() << i << "\n"; in printMachOUniversalHeaders()
2393 outs() << " cputype " << cputype << "\n"; in printMachOUniversalHeaders()
2394 outs() << " cpusubtype " << (cpusubtype & ~MachO::CPU_SUBTYPE_MASK) in printMachOUniversalHeaders()
2399 outs() << " capabilities CPU_SUBTYPE_LIB64\n"; in printMachOUniversalHeaders()
2401 outs() << " capabilities " in printMachOUniversalHeaders()
2404 outs() << " offset " << OFA.getOffset(); in printMachOUniversalHeaders()
2406 outs() << " (past end of file)"; in printMachOUniversalHeaders()
2408 outs() << " (not aligned on it's alignment (2^" << OFA.getAlign() << ")"; in printMachOUniversalHeaders()
2409 outs() << "\n"; in printMachOUniversalHeaders()
2410 outs() << " size " << OFA.getSize(); in printMachOUniversalHeaders()
2413 outs() << " (past end of file)"; in printMachOUniversalHeaders()
2414 outs() << "\n"; in printMachOUniversalHeaders()
2415 outs() << " align 2^" << OFA.getAlign() << " (" << (1 << OFA.getAlign()) in printMachOUniversalHeaders()
2425 outs() << C.getChildOffset() << "\t"; in printArchiveChild()
2432 outs() << "-"; in printArchiveChild()
2433 outs() << ((Mode & sys::fs::owner_read) ? "r" : "-"); in printArchiveChild()
2434 outs() << ((Mode & sys::fs::owner_write) ? "w" : "-"); in printArchiveChild()
2435 outs() << ((Mode & sys::fs::owner_exe) ? "x" : "-"); in printArchiveChild()
2436 outs() << ((Mode & sys::fs::group_read) ? "r" : "-"); in printArchiveChild()
2437 outs() << ((Mode & sys::fs::group_write) ? "w" : "-"); in printArchiveChild()
2438 outs() << ((Mode & sys::fs::group_exe) ? "x" : "-"); in printArchiveChild()
2439 outs() << ((Mode & sys::fs::others_read) ? "r" : "-"); in printArchiveChild()
2440 outs() << ((Mode & sys::fs::others_write) ? "w" : "-"); in printArchiveChild()
2441 outs() << ((Mode & sys::fs::others_exe) ? "x" : "-"); in printArchiveChild()
2443 outs() << format("0%o ", Mode); in printArchiveChild()
2446 outs() << format("%3d/%-3d %5" PRId64 " ", in printArchiveChild()
2459 outs() << "(date: \"" << RawLastModified in printArchiveChild()
2466 outs() << format("%.24s ", ctime(&t)); in printArchiveChild()
2469 outs() << RawLastModified << " "; in printArchiveChild()
2476 outs() << unwrapOrError(C.getRawName(), in printArchiveChild()
2482 outs() << Name << "\n"; in printArchiveChild()
2485 outs() << unwrapOrError(C.getRawName(), getFileNameForError(C, ChildIndex), in printArchiveChild()
2535 outs() << Filename << ": is not an object file\n"; in parseInputMachO()
2541 outs() << "Archive : " << Filename << "\n"; in parseInputMachO()
2619 outs() << "Archive : " << Filename; in parseInputMachO()
2621 outs() << " (architecture " << ArchitectureName << ")"; in parseInputMachO()
2622 outs() << "\n"; in parseInputMachO()
2683 outs() << "Archive : " << Filename << "\n"; in parseInputMachO()
2733 outs() << "Archive : " << Filename; in parseInputMachO()
2735 outs() << " (architecture " << ArchitectureName << ")"; in parseInputMachO()
2736 outs() << "\n"; in parseInputMachO()
4330 outs() << "Contents of (" << SegName << "," << SectName << ") section\n"; in walk_pointer_list_64()
4341 outs() << listname << " list pointer extends past end of (" << SegName in walk_pointer_list_64()
4343 outs() << format("%016" PRIx64, S.getAddress() + i) << " "; in walk_pointer_list_64()
4354 outs() << format("0x%" PRIx64, n_value); in walk_pointer_list_64()
4356 outs() << " + " << format("0x%" PRIx64, p); in walk_pointer_list_64()
4358 outs() << format("0x%" PRIx64, p); in walk_pointer_list_64()
4360 outs() << " " << name; in walk_pointer_list_64()
4361 outs() << "\n"; in walk_pointer_list_64()
4379 outs() << "Contents of (" << SegName << "," << SectName << ") section\n"; in walk_pointer_list_32()
4390 outs() << listname << " list pointer extends past end of (" << SegName in walk_pointer_list_32()
4393 outs() << format("%08" PRIx32, Address) << " "; in walk_pointer_list_32()
4397 outs() << format("0x%" PRIx32, p); in walk_pointer_list_32()
4401 outs() << " " << name; in walk_pointer_list_32()
4402 outs() << "\n"; in walk_pointer_list_32()
4412 outs() << " layout map: "; in print_layout_map()
4414 outs() << format("0x%02" PRIx32, (*layout_map) & 0xff) << " "; in print_layout_map()
4418 outs() << "\n"; in print_layout_map()
4459 outs() << " (method_list_t entends past the end of the section)\n"; in print_method_list64_t()
4464 outs() << indent << "\t\t entsize " << ml.entsize << "\n"; in print_method_list64_t()
4465 outs() << indent << "\t\t count " << ml.count << "\n"; in print_method_list64_t()
4476 outs() << indent << " (method_t extends past the end of the section)\n"; in print_method_list64_t()
4482 outs() << indent << "\t\t name "; in print_method_list64_t()
4487 outs() << sym_name; in print_method_list64_t()
4489 outs() << format("0x%" PRIx64, n_value); in print_method_list64_t()
4491 outs() << " + " << format("0x%" PRIx64, m.name); in print_method_list64_t()
4493 outs() << format("0x%" PRIx64, m.name); in print_method_list64_t()
4496 outs() << format(" %.*s", left, name); in print_method_list64_t()
4497 outs() << "\n"; in print_method_list64_t()
4499 outs() << indent << "\t\t types "; in print_method_list64_t()
4504 outs() << sym_name; in print_method_list64_t()
4506 outs() << format("0x%" PRIx64, n_value); in print_method_list64_t()
4508 outs() << " + " << format("0x%" PRIx64, m.types); in print_method_list64_t()
4510 outs() << format("0x%" PRIx64, m.types); in print_method_list64_t()
4513 outs() << format(" %.*s", left, name); in print_method_list64_t()
4514 outs() << "\n"; in print_method_list64_t()
4516 outs() << indent << "\t\t imp "; in print_method_list64_t()
4521 outs() << format("0x%" PRIx64, n_value) << " "; in print_method_list64_t()
4523 outs() << "+ " << format("0x%" PRIx64, m.imp) << " "; in print_method_list64_t()
4525 outs() << format("0x%" PRIx64, m.imp) << " "; in print_method_list64_t()
4528 outs() << name; in print_method_list64_t()
4529 outs() << "\n"; in print_method_list64_t()
4550 outs() << " (method_list_t entends past the end of the section)\n"; in print_method_list32_t()
4555 outs() << indent << "\t\t entsize " << ml.entsize << "\n"; in print_method_list32_t()
4556 outs() << indent << "\t\t count " << ml.count << "\n"; in print_method_list32_t()
4567 outs() << indent << " (method_t entends past the end of the section)\n"; in print_method_list32_t()
4573 outs() << indent << "\t\t name " << format("0x%" PRIx32, m.name); in print_method_list32_t()
4576 outs() << format(" %.*s", left, name); in print_method_list32_t()
4577 outs() << "\n"; in print_method_list32_t()
4579 outs() << indent << "\t\t types " << format("0x%" PRIx32, m.types); in print_method_list32_t()
4582 outs() << format(" %.*s", left, name); in print_method_list32_t()
4583 outs() << "\n"; in print_method_list32_t()
4585 outs() << indent << "\t\t imp " << format("0x%" PRIx32, m.imp); in print_method_list32_t()
4589 outs() << " " << name; in print_method_list32_t()
4590 outs() << "\n"; in print_method_list32_t()
4609 outs() << "\n"; in print_method_list()
4613 outs() << "\t\t objc_method_list extends past end of the section\n"; in print_method_list()
4620 outs() << "\t\t obsolete " in print_method_list()
4622 outs() << "\t\t method_count " << method_list.method_count << "\n"; in print_method_list()
4627 outs() << "\t\t remaining method's extend past the of the section\n"; in print_method_list()
4635 outs() << "\t\t method_name " in print_method_list()
4640 outs() << format(" %.*s", xleft, name); in print_method_list()
4642 outs() << " (not in an __OBJC section)"; in print_method_list()
4644 outs() << "\n"; in print_method_list()
4646 outs() << "\t\t method_types " in print_method_list()
4651 outs() << format(" %.*s", xleft, name); in print_method_list()
4653 outs() << " (not in an __OBJC section)"; in print_method_list()
4655 outs() << "\n"; in print_method_list()
4657 outs() << "\t\t method_imp " in print_method_list()
4662 outs() << SymbolName; in print_method_list()
4664 outs() << "\n"; in print_method_list()
4684 outs() << " (protocol_list_t entends past the end of the section)\n"; in print_protocol_list64_t()
4689 outs() << " count " << pl.count << "\n"; in print_protocol_list64_t()
4700 outs() << " (protocol_t * entends past the end of the section)\n"; in print_protocol_list64_t()
4706 outs() << "\t\t list[" << i << "] "; in print_protocol_list64_t()
4710 outs() << sym_name; in print_protocol_list64_t()
4712 outs() << format("0x%" PRIx64, n_value); in print_protocol_list64_t()
4714 outs() << " + " << format("0x%" PRIx64, q); in print_protocol_list64_t()
4716 outs() << format("0x%" PRIx64, q); in print_protocol_list64_t()
4717 outs() << " (struct protocol_t *)\n"; in print_protocol_list64_t()
4725 outs() << " (protocol_t entends past the end of the section)\n"; in print_protocol_list64_t()
4731 outs() << "\t\t\t isa " << format("0x%" PRIx64, pc.isa) << "\n"; in print_protocol_list64_t()
4733 outs() << "\t\t\t name "; in print_protocol_list64_t()
4738 outs() << sym_name; in print_protocol_list64_t()
4740 outs() << format("0x%" PRIx64, n_value); in print_protocol_list64_t()
4742 outs() << " + " << format("0x%" PRIx64, pc.name); in print_protocol_list64_t()
4744 outs() << format("0x%" PRIx64, pc.name); in print_protocol_list64_t()
4747 outs() << format(" %.*s", left, name); in print_protocol_list64_t()
4748 outs() << "\n"; in print_protocol_list64_t()
4750 outs() << "\t\t\tprotocols " << format("0x%" PRIx64, pc.protocols) << "\n"; in print_protocol_list64_t()
4752 outs() << "\t\t instanceMethods "; in print_protocol_list64_t()
4758 outs() << sym_name; in print_protocol_list64_t()
4760 outs() << format("0x%" PRIx64, n_value); in print_protocol_list64_t()
4762 outs() << " + " << format("0x%" PRIx64, pc.instanceMethods); in print_protocol_list64_t()
4764 outs() << format("0x%" PRIx64, pc.instanceMethods); in print_protocol_list64_t()
4765 outs() << " (struct method_list_t *)\n"; in print_protocol_list64_t()
4769 outs() << "\t\t classMethods "; in print_protocol_list64_t()
4775 outs() << sym_name; in print_protocol_list64_t()
4777 outs() << format("0x%" PRIx64, n_value); in print_protocol_list64_t()
4779 outs() << " + " << format("0x%" PRIx64, pc.classMethods); in print_protocol_list64_t()
4781 outs() << format("0x%" PRIx64, pc.classMethods); in print_protocol_list64_t()
4782 outs() << " (struct method_list_t *)\n"; in print_protocol_list64_t()
4786 outs() << "\t optionalInstanceMethods " in print_protocol_list64_t()
4788 outs() << "\t optionalClassMethods " in print_protocol_list64_t()
4790 outs() << "\t instanceProperties " in print_protocol_list64_t()
4813 outs() << " (protocol_list_t entends past the end of the section)\n"; in print_protocol_list32_t()
4818 outs() << " count " << pl.count << "\n"; in print_protocol_list32_t()
4829 outs() << " (protocol_t * entends past the end of the section)\n"; in print_protocol_list32_t()
4834 outs() << "\t\t list[" << i << "] " << format("0x%" PRIx32, q) in print_protocol_list32_t()
4842 outs() << " (protocol_t entends past the end of the section)\n"; in print_protocol_list32_t()
4847 outs() << "\t\t\t isa " << format("0x%" PRIx32, pc.isa) << "\n"; in print_protocol_list32_t()
4848 outs() << "\t\t\t name " << format("0x%" PRIx32, pc.name); in print_protocol_list32_t()
4851 outs() << format(" %.*s", left, name); in print_protocol_list32_t()
4852 outs() << "\n"; in print_protocol_list32_t()
4853 outs() << "\t\t\tprotocols " << format("0x%" PRIx32, pc.protocols) << "\n"; in print_protocol_list32_t()
4854 outs() << "\t\t instanceMethods " in print_protocol_list32_t()
4859 outs() << "\t\t classMethods " << format("0x%" PRIx32, pc.classMethods) in print_protocol_list32_t()
4863 outs() << "\t optionalInstanceMethods " in print_protocol_list32_t()
4865 outs() << "\t optionalClassMethods " in print_protocol_list32_t()
4867 outs() << "\t instanceProperties " in print_protocol_list32_t()
4877 outs() << "\t"; in print_indent()
4881 outs() << " "; in print_indent()
4900 outs() << "\n"; in print_method_description_list()
4905 outs() << " objc_method_description_list extends past end of the section\n"; in print_method_description_list()
4913 outs() << " count " << mdl.count << "\n"; in print_method_description_list()
4919 outs() << " remaining list entries extend past the of the section\n"; in print_method_description_list()
4923 outs() << " list[" << i << "]\n"; in print_method_description_list()
4930 outs() << " name " << format("0x%08" PRIx32, md.name); in print_method_description_list()
4934 outs() << format(" %.*s", xleft, name); in print_method_description_list()
4936 outs() << " (not in an __OBJC section)"; in print_method_description_list()
4938 outs() << "\n"; in print_method_description_list()
4941 outs() << " types " << format("0x%08" PRIx32, md.types); in print_method_description_list()
4945 outs() << format(" %.*s", xleft, name); in print_method_description_list()
4947 outs() << " (not in an __OBJC section)"; in print_method_description_list()
4949 outs() << "\n"; in print_method_description_list()
4968 outs() << "\n"; in print_protocol()
4973 outs() << " Protocol extends past end of the section\n"; in print_protocol()
4981 outs() << " isa " << format("0x%08" PRIx32, protocol.isa) in print_protocol()
4985 outs() << " protocol_name " in print_protocol()
4990 outs() << format(" %.*s", left, name); in print_protocol()
4992 outs() << " (not in an __OBJC section)"; in print_protocol()
4994 outs() << "\n"; in print_protocol()
4997 outs() << " protocol_list " in print_protocol()
5000 outs() << " (not in an __OBJC section)\n"; in print_protocol()
5003 outs() << " instance_methods " in print_protocol()
5006 outs() << " (not in an __OBJC section)\n"; in print_protocol()
5009 outs() << " class_methods " in print_protocol()
5012 outs() << " (not in an __OBJC section)\n"; in print_protocol()
5029 outs() << "\n"; in print_protocol_list()
5033 outs() << "\t\t objc_protocol_list_t extends past end of the section\n"; in print_protocol_list()
5041 outs() << " next " << format("0x%08" PRIx32, protocol_list.next) in print_protocol_list()
5044 outs() << " count " << protocol_list.count << "\n"; in print_protocol_list()
5049 outs() << "\t\t remaining list entries extend past the of the section\n"; in print_protocol_list()
5057 outs() << " list[" << i << "] " << format("0x%08" PRIx32, l); in print_protocol_list()
5059 outs() << "(not in an __OBJC section)\n"; in print_protocol_list()
5079 outs() << " (ivar_list_t entends past the end of the section)\n"; in print_ivar_list64_t()
5084 outs() << " entsize " << il.entsize << "\n"; in print_ivar_list64_t()
5085 outs() << " count " << il.count << "\n"; in print_ivar_list64_t()
5096 outs() << " (ivar_t entends past the end of the section)\n"; in print_ivar_list64_t()
5102 outs() << "\t\t\t offset "; in print_ivar_list64_t()
5107 outs() << sym_name; in print_ivar_list64_t()
5109 outs() << format("0x%" PRIx64, n_value); in print_ivar_list64_t()
5111 outs() << " + " << format("0x%" PRIx64, i.offset); in print_ivar_list64_t()
5113 outs() << format("0x%" PRIx64, i.offset); in print_ivar_list64_t()
5119 outs() << " " << ivar_offset << "\n"; in print_ivar_list64_t()
5121 outs() << "\n"; in print_ivar_list64_t()
5123 outs() << "\t\t\t name "; in print_ivar_list64_t()
5128 outs() << sym_name; in print_ivar_list64_t()
5130 outs() << format("0x%" PRIx64, n_value); in print_ivar_list64_t()
5132 outs() << " + " << format("0x%" PRIx64, i.name); in print_ivar_list64_t()
5134 outs() << format("0x%" PRIx64, i.name); in print_ivar_list64_t()
5137 outs() << format(" %.*s", left, name); in print_ivar_list64_t()
5138 outs() << "\n"; in print_ivar_list64_t()
5140 outs() << "\t\t\t type "; in print_ivar_list64_t()
5146 outs() << sym_name; in print_ivar_list64_t()
5148 outs() << format("0x%" PRIx64, n_value); in print_ivar_list64_t()
5150 outs() << " + " << format("0x%" PRIx64, i.type); in print_ivar_list64_t()
5152 outs() << format("0x%" PRIx64, i.type); in print_ivar_list64_t()
5154 outs() << format(" %.*s", left, name); in print_ivar_list64_t()
5155 outs() << "\n"; in print_ivar_list64_t()
5157 outs() << "\t\t\talignment " << i.alignment << "\n"; in print_ivar_list64_t()
5158 outs() << "\t\t\t size " << i.size << "\n"; in print_ivar_list64_t()
5180 outs() << " (ivar_list_t entends past the end of the section)\n"; in print_ivar_list32_t()
5185 outs() << " entsize " << il.entsize << "\n"; in print_ivar_list32_t()
5186 outs() << " count " << il.count << "\n"; in print_ivar_list32_t()
5197 outs() << " (ivar_t entends past the end of the section)\n"; in print_ivar_list32_t()
5203 outs() << "\t\t\t offset " << format("0x%" PRIx32, i.offset); in print_ivar_list32_t()
5209 outs() << " " << ivar_offset << "\n"; in print_ivar_list32_t()
5211 outs() << "\n"; in print_ivar_list32_t()
5213 outs() << "\t\t\t name " << format("0x%" PRIx32, i.name); in print_ivar_list32_t()
5216 outs() << format(" %.*s", left, name); in print_ivar_list32_t()
5217 outs() << "\n"; in print_ivar_list32_t()
5219 outs() << "\t\t\t type " << format("0x%" PRIx32, i.type); in print_ivar_list32_t()
5222 outs() << format(" %.*s", left, name); in print_ivar_list32_t()
5223 outs() << "\n"; in print_ivar_list32_t()
5225 outs() << "\t\t\talignment " << i.alignment << "\n"; in print_ivar_list32_t()
5226 outs() << "\t\t\t size " << i.size << "\n"; in print_ivar_list32_t()
5249 outs() << " (objc_property_list entends past the end of the section)\n"; in print_objc_property_list64()
5254 outs() << " entsize " << opl.entsize << "\n"; in print_objc_property_list64()
5255 outs() << " count " << opl.count << "\n"; in print_objc_property_list64()
5266 outs() << " (objc_property entends past the end of the section)\n"; in print_objc_property_list64()
5272 outs() << "\t\t\t name "; in print_objc_property_list64()
5277 outs() << sym_name; in print_objc_property_list64()
5279 outs() << format("0x%" PRIx64, n_value); in print_objc_property_list64()
5281 outs() << " + " << format("0x%" PRIx64, op.name); in print_objc_property_list64()
5283 outs() << format("0x%" PRIx64, op.name); in print_objc_property_list64()
5286 outs() << format(" %.*s", left, name); in print_objc_property_list64()
5287 outs() << "\n"; in print_objc_property_list64()
5289 outs() << "\t\t\tattributes "; in print_objc_property_list64()
5295 outs() << sym_name; in print_objc_property_list64()
5297 outs() << format("0x%" PRIx64, n_value); in print_objc_property_list64()
5299 outs() << " + " << format("0x%" PRIx64, op.attributes); in print_objc_property_list64()
5301 outs() << format("0x%" PRIx64, op.attributes); in print_objc_property_list64()
5304 outs() << format(" %.*s", left, name); in print_objc_property_list64()
5305 outs() << "\n"; in print_objc_property_list64()
5327 outs() << " (objc_property_list entends past the end of the section)\n"; in print_objc_property_list32()
5332 outs() << " entsize " << opl.entsize << "\n"; in print_objc_property_list32()
5333 outs() << " count " << opl.count << "\n"; in print_objc_property_list32()
5344 outs() << " (objc_property entends past the end of the section)\n"; in print_objc_property_list32()
5350 outs() << "\t\t\t name " << format("0x%" PRIx32, op.name); in print_objc_property_list32()
5353 outs() << format(" %.*s", left, name); in print_objc_property_list32()
5354 outs() << "\n"; in print_objc_property_list32()
5356 outs() << "\t\t\tattributes " << format("0x%" PRIx32, op.attributes); in print_objc_property_list32()
5359 outs() << format(" %.*s", left, name); in print_objc_property_list32()
5360 outs() << "\n"; in print_objc_property_list32()
5382 outs() << " flags " << format("0x%" PRIx32, cro.flags); in print_class_ro64_t()
5384 outs() << " RO_META"; in print_class_ro64_t()
5386 outs() << " RO_ROOT"; in print_class_ro64_t()
5388 outs() << " RO_HAS_CXX_STRUCTORS"; in print_class_ro64_t()
5389 outs() << "\n"; in print_class_ro64_t()
5390 outs() << " instanceStart " << cro.instanceStart << "\n"; in print_class_ro64_t()
5391 outs() << " instanceSize " << cro.instanceSize << "\n"; in print_class_ro64_t()
5392 outs() << " reserved " << format("0x%" PRIx32, cro.reserved) in print_class_ro64_t()
5394 outs() << " ivarLayout " << format("0x%" PRIx64, cro.ivarLayout) in print_class_ro64_t()
5398 outs() << " name "; in print_class_ro64_t()
5403 outs() << sym_name; in print_class_ro64_t()
5405 outs() << format("0x%" PRIx64, n_value); in print_class_ro64_t()
5407 outs() << " + " << format("0x%" PRIx64, cro.name); in print_class_ro64_t()
5409 outs() << format("0x%" PRIx64, cro.name); in print_class_ro64_t()
5412 outs() << format(" %.*s", left, name); in print_class_ro64_t()
5413 outs() << "\n"; in print_class_ro64_t()
5415 outs() << " baseMethods "; in print_class_ro64_t()
5420 outs() << sym_name; in print_class_ro64_t()
5422 outs() << format("0x%" PRIx64, n_value); in print_class_ro64_t()
5424 outs() << " + " << format("0x%" PRIx64, cro.baseMethods); in print_class_ro64_t()
5426 outs() << format("0x%" PRIx64, cro.baseMethods); in print_class_ro64_t()
5427 outs() << " (struct method_list_t *)\n"; in print_class_ro64_t()
5431 outs() << " baseProtocols "; in print_class_ro64_t()
5437 outs() << sym_name; in print_class_ro64_t()
5439 outs() << format("0x%" PRIx64, n_value); in print_class_ro64_t()
5441 outs() << " + " << format("0x%" PRIx64, cro.baseProtocols); in print_class_ro64_t()
5443 outs() << format("0x%" PRIx64, cro.baseProtocols); in print_class_ro64_t()
5444 outs() << "\n"; in print_class_ro64_t()
5448 outs() << " ivars "; in print_class_ro64_t()
5453 outs() << sym_name; in print_class_ro64_t()
5455 outs() << format("0x%" PRIx64, n_value); in print_class_ro64_t()
5457 outs() << " + " << format("0x%" PRIx64, cro.ivars); in print_class_ro64_t()
5459 outs() << format("0x%" PRIx64, cro.ivars); in print_class_ro64_t()
5460 outs() << "\n"; in print_class_ro64_t()
5464 outs() << " weakIvarLayout "; in print_class_ro64_t()
5470 outs() << sym_name; in print_class_ro64_t()
5472 outs() << format("0x%" PRIx64, n_value); in print_class_ro64_t()
5474 outs() << " + " << format("0x%" PRIx64, cro.weakIvarLayout); in print_class_ro64_t()
5476 outs() << format("0x%" PRIx64, cro.weakIvarLayout); in print_class_ro64_t()
5477 outs() << "\n"; in print_class_ro64_t()
5480 outs() << " baseProperties "; in print_class_ro64_t()
5486 outs() << sym_name; in print_class_ro64_t()
5488 outs() << format("0x%" PRIx64, n_value); in print_class_ro64_t()
5490 outs() << " + " << format("0x%" PRIx64, cro.baseProperties); in print_class_ro64_t()
5492 outs() << format("0x%" PRIx64, cro.baseProperties); in print_class_ro64_t()
5493 outs() << "\n"; in print_class_ro64_t()
5515 outs() << " (class_ro_t entends past the end of the section)\n"; in print_class_ro32_t()
5520 outs() << " flags " << format("0x%" PRIx32, cro.flags); in print_class_ro32_t()
5522 outs() << " RO_META"; in print_class_ro32_t()
5524 outs() << " RO_ROOT"; in print_class_ro32_t()
5526 outs() << " RO_HAS_CXX_STRUCTORS"; in print_class_ro32_t()
5527 outs() << "\n"; in print_class_ro32_t()
5528 outs() << " instanceStart " << cro.instanceStart << "\n"; in print_class_ro32_t()
5529 outs() << " instanceSize " << cro.instanceSize << "\n"; in print_class_ro32_t()
5530 outs() << " ivarLayout " << format("0x%" PRIx32, cro.ivarLayout) in print_class_ro32_t()
5534 outs() << " name " << format("0x%" PRIx32, cro.name); in print_class_ro32_t()
5537 outs() << format(" %.*s", left, name); in print_class_ro32_t()
5538 outs() << "\n"; in print_class_ro32_t()
5540 outs() << " baseMethods " in print_class_ro32_t()
5546 outs() << " baseProtocols " in print_class_ro32_t()
5550 outs() << " ivars " << format("0x%" PRIx32, cro.ivars) in print_class_ro32_t()
5554 outs() << " weakIvarLayout " in print_class_ro32_t()
5557 outs() << " baseProperties " in print_class_ro32_t()
5580 outs() << " isa " << format("0x%" PRIx64, c.isa); in print_class64_t()
5584 outs() << " " << name; in print_class64_t()
5585 outs() << "\n"; in print_class64_t()
5587 outs() << " superclass " << format("0x%" PRIx64, c.superclass); in print_class64_t()
5591 outs() << " " << name; in print_class64_t()
5596 outs() << " " << name; in print_class64_t()
5598 outs() << "\n"; in print_class64_t()
5600 outs() << " cache " << format("0x%" PRIx64, c.cache); in print_class64_t()
5604 outs() << " " << name; in print_class64_t()
5605 outs() << "\n"; in print_class64_t()
5607 outs() << " vtable " << format("0x%" PRIx64, c.vtable); in print_class64_t()
5611 outs() << " " << name; in print_class64_t()
5612 outs() << "\n"; in print_class64_t()
5616 outs() << " data "; in print_class64_t()
5619 outs() << name; in print_class64_t()
5621 outs() << format("0x%" PRIx64, n_value); in print_class64_t()
5623 outs() << " + " << format("0x%" PRIx64, c.data); in print_class64_t()
5625 outs() << format("0x%" PRIx64, c.data); in print_class64_t()
5626 outs() << " (struct class_ro_t *)"; in print_class64_t()
5630 outs() << " Swift class"; in print_class64_t()
5631 outs() << "\n"; in print_class64_t()
5641 outs() << "Meta Class\n"; in print_class64_t()
5659 outs() << " (class_t entends past the end of the section)\n"; in print_class32_t()
5665 outs() << " isa " << format("0x%" PRIx32, c.isa); in print_class32_t()
5669 outs() << " " << name; in print_class32_t()
5670 outs() << "\n"; in print_class32_t()
5672 outs() << " superclass " << format("0x%" PRIx32, c.superclass); in print_class32_t()
5676 outs() << " " << name; in print_class32_t()
5677 outs() << "\n"; in print_class32_t()
5679 outs() << " cache " << format("0x%" PRIx32, c.cache); in print_class32_t()
5683 outs() << " " << name; in print_class32_t()
5684 outs() << "\n"; in print_class32_t()
5686 outs() << " vtable " << format("0x%" PRIx32, c.vtable); in print_class32_t()
5690 outs() << " " << name; in print_class32_t()
5691 outs() << "\n"; in print_class32_t()
5695 outs() << " data " << format("0x%" PRIx32, c.data) in print_class32_t()
5700 outs() << " Swift class"; in print_class32_t()
5701 outs() << "\n"; in print_class32_t()
5707 outs() << "Meta Class\n"; in print_class32_t()
5721 outs() << "\t\t isa " << format("0x%08" PRIx32, objc_class->isa); in print_objc_class_t()
5725 outs() << format(" %.*s", left, name); in print_objc_class_t()
5727 outs() << " (not in an __OBJC section)"; in print_objc_class_t()
5729 outs() << "\n"; in print_objc_class_t()
5731 outs() << "\t super_class " in print_objc_class_t()
5736 outs() << format(" %.*s", left, name); in print_objc_class_t()
5738 outs() << " (not in an __OBJC section)"; in print_objc_class_t()
5740 outs() << "\n"; in print_objc_class_t()
5742 outs() << "\t\t name " << format("0x%08" PRIx32, objc_class->name); in print_objc_class_t()
5746 outs() << format(" %.*s", left, name); in print_objc_class_t()
5748 outs() << " (not in an __OBJC section)"; in print_objc_class_t()
5750 outs() << "\n"; in print_objc_class_t()
5752 outs() << "\t\t version " << format("0x%08" PRIx32, objc_class->version) in print_objc_class_t()
5755 outs() << "\t\t info " << format("0x%08" PRIx32, objc_class->info); in print_objc_class_t()
5758 outs() << " CLS_CLASS"; in print_objc_class_t()
5760 outs() << " CLS_META"; in print_objc_class_t()
5762 outs() << "\n"; in print_objc_class_t()
5764 outs() << "\t instance_size " in print_objc_class_t()
5768 outs() << "\t\t ivars " << format("0x%08" PRIx32, objc_class->ivars); in print_objc_class_t()
5771 outs() << "\n"; in print_objc_class_t()
5774 outs() << " (entends past the end of the section)\n"; in print_objc_class_t()
5780 outs() << "\t\t ivar_count " << objc_ivar_list.ivar_count << "\n"; in print_objc_class_t()
5784 outs() << "\t\t remaining ivar's extend past the of the section\n"; in print_objc_class_t()
5792 outs() << "\t\t\tivar_name " << format("0x%08" PRIx32, ivar.ivar_name); in print_objc_class_t()
5796 outs() << format(" %.*s", xleft, name); in print_objc_class_t()
5798 outs() << " (not in an __OBJC section)"; in print_objc_class_t()
5800 outs() << "\n"; in print_objc_class_t()
5802 outs() << "\t\t\tivar_type " << format("0x%08" PRIx32, ivar.ivar_type); in print_objc_class_t()
5806 outs() << format(" %.*s", xleft, name); in print_objc_class_t()
5808 outs() << " (not in an __OBJC section)"; in print_objc_class_t()
5810 outs() << "\n"; in print_objc_class_t()
5812 outs() << "\t\t ivar_offset " in print_objc_class_t()
5816 outs() << " (not in an __OBJC section)\n"; in print_objc_class_t()
5819 outs() << "\t\t methods " << format("0x%08" PRIx32, objc_class->methodLists); in print_objc_class_t()
5821 outs() << " (not in an __OBJC section)\n"; in print_objc_class_t()
5823 outs() << "\t\t cache " << format("0x%08" PRIx32, objc_class->cache) in print_objc_class_t()
5826 outs() << "\t\tprotocols " << format("0x%08" PRIx32, objc_class->protocols); in print_objc_class_t()
5828 outs() << " (not in an __OBJC section)\n"; in print_objc_class_t()
5837 outs() << "\t category name " in print_objc_objc_category_t()
5843 outs() << format(" %.*s", left, name); in print_objc_objc_category_t()
5845 outs() << " (not in an __OBJC section)"; in print_objc_objc_category_t()
5847 outs() << "\n"; in print_objc_objc_category_t()
5849 outs() << "\t\t class name " in print_objc_objc_category_t()
5855 outs() << format(" %.*s", left, name); in print_objc_objc_category_t()
5857 outs() << " (not in an __OBJC section)"; in print_objc_objc_category_t()
5859 outs() << "\n"; in print_objc_objc_category_t()
5861 outs() << "\t instance methods " in print_objc_objc_category_t()
5864 outs() << " (not in an __OBJC section)\n"; in print_objc_objc_category_t()
5866 outs() << "\t class methods " in print_objc_objc_category_t()
5869 outs() << " (not in an __OBJC section)\n"; in print_objc_objc_category_t()
5886 outs() << " (category_t entends past the end of the section)\n"; in print_category64_t()
5892 outs() << " name "; in print_category64_t()
5897 outs() << sym_name; in print_category64_t()
5899 outs() << format("0x%" PRIx64, n_value); in print_category64_t()
5901 outs() << " + " << format("0x%" PRIx64, c.name); in print_category64_t()
5903 outs() << format("0x%" PRIx64, c.name); in print_category64_t()
5906 outs() << format(" %.*s", left, name); in print_category64_t()
5907 outs() << "\n"; in print_category64_t()
5909 outs() << " cls "; in print_category64_t()
5914 outs() << sym_name; in print_category64_t()
5916 outs() << format("0x%" PRIx64, n_value); in print_category64_t()
5918 outs() << " + " << format("0x%" PRIx64, c.cls); in print_category64_t()
5920 outs() << format("0x%" PRIx64, c.cls); in print_category64_t()
5921 outs() << "\n"; in print_category64_t()
5925 outs() << " instanceMethods "; in print_category64_t()
5931 outs() << sym_name; in print_category64_t()
5933 outs() << format("0x%" PRIx64, n_value); in print_category64_t()
5935 outs() << " + " << format("0x%" PRIx64, c.instanceMethods); in print_category64_t()
5937 outs() << format("0x%" PRIx64, c.instanceMethods); in print_category64_t()
5938 outs() << "\n"; in print_category64_t()
5942 outs() << " classMethods "; in print_category64_t()
5947 outs() << sym_name; in print_category64_t()
5949 outs() << format("0x%" PRIx64, n_value); in print_category64_t()
5951 outs() << " + " << format("0x%" PRIx64, c.classMethods); in print_category64_t()
5953 outs() << format("0x%" PRIx64, c.classMethods); in print_category64_t()
5954 outs() << "\n"; in print_category64_t()
5958 outs() << " protocols "; in print_category64_t()
5963 outs() << sym_name; in print_category64_t()
5965 outs() << format("0x%" PRIx64, n_value); in print_category64_t()
5967 outs() << " + " << format("0x%" PRIx64, c.protocols); in print_category64_t()
5969 outs() << format("0x%" PRIx64, c.protocols); in print_category64_t()
5970 outs() << "\n"; in print_category64_t()
5974 outs() << "instanceProperties "; in print_category64_t()
5980 outs() << sym_name; in print_category64_t()
5982 outs() << format("0x%" PRIx64, n_value); in print_category64_t()
5984 outs() << " + " << format("0x%" PRIx64, c.instanceProperties); in print_category64_t()
5986 outs() << format("0x%" PRIx64, c.instanceProperties); in print_category64_t()
5987 outs() << "\n"; in print_category64_t()
6005 outs() << " (category_t entends past the end of the section)\n"; in print_category32_t()
6011 outs() << " name " << format("0x%" PRIx32, c.name); in print_category32_t()
6015 outs() << " " << name; in print_category32_t()
6016 outs() << "\n"; in print_category32_t()
6018 outs() << " cls " << format("0x%" PRIx32, c.cls) << "\n"; in print_category32_t()
6021 outs() << " instanceMethods " << format("0x%" PRIx32, c.instanceMethods) in print_category32_t()
6025 outs() << " classMethods " << format("0x%" PRIx32, c.classMethods) in print_category32_t()
6029 outs() << " protocols " << format("0x%" PRIx32, c.protocols) << "\n"; in print_category32_t()
6032 outs() << "instanceProperties " << format("0x%" PRIx32, c.instanceProperties) in print_category32_t()
6058 outs() << "Contents of (" << SegName << "," << SectName << ") section\n"; in print_message_refs64()
6068 outs() << " (message_ref entends past the end of the section)\n"; in print_message_refs64()
6074 outs() << " imp "; in print_message_refs64()
6078 outs() << format("0x%" PRIx64, n_value) << " "; in print_message_refs64()
6080 outs() << "+ " << format("0x%" PRIx64, mr.imp) << " "; in print_message_refs64()
6082 outs() << format("0x%" PRIx64, mr.imp) << " "; in print_message_refs64()
6084 outs() << " " << name; in print_message_refs64()
6085 outs() << "\n"; in print_message_refs64()
6087 outs() << " sel "; in print_message_refs64()
6092 outs() << sym_name; in print_message_refs64()
6094 outs() << format("0x%" PRIx64, n_value); in print_message_refs64()
6096 outs() << " + " << format("0x%" PRIx64, mr.sel); in print_message_refs64()
6098 outs() << format("0x%" PRIx64, mr.sel); in print_message_refs64()
6101 outs() << format(" %.*s", left, name); in print_message_refs64()
6102 outs() << "\n"; in print_message_refs64()
6126 outs() << "Contents of (" << SegName << "," << SectName << ") section\n"; in print_message_refs32()
6136 outs() << " (message_ref entends past the end of the section)\n"; in print_message_refs32()
6142 outs() << " imp " << format("0x%" PRIx32, mr.imp); in print_message_refs32()
6146 outs() << " " << name; in print_message_refs32()
6147 outs() << "\n"; in print_message_refs32()
6149 outs() << " sel " << format("0x%" PRIx32, mr.sel); in print_message_refs32()
6152 outs() << " " << name; in print_message_refs32()
6153 outs() << "\n"; in print_message_refs32()
6177 outs() << "Contents of (" << SegName << "," << SectName << ") section\n"; in print_image_info64()
6185 outs() << " (objc_image_info entends past the end of the section)\n"; in print_image_info64()
6190 outs() << " version " << o.version << "\n"; in print_image_info64()
6191 outs() << " flags " << format("0x%" PRIx32, o.flags); in print_image_info64()
6193 outs() << " OBJC_IMAGE_IS_REPLACEMENT"; in print_image_info64()
6195 outs() << " OBJC_IMAGE_SUPPORTS_GC"; in print_image_info64()
6197 outs() << " OBJC_IMAGE_IS_SIMULATED"; in print_image_info64()
6199 outs() << " OBJC_IMAGE_HAS_CATEGORY_CLASS_PROPERTIES"; in print_image_info64()
6203 outs() << " Swift 1.0"; in print_image_info64()
6205 outs() << " Swift 1.1"; in print_image_info64()
6207 outs() << " Swift 2.0"; in print_image_info64()
6209 outs() << " Swift 3.0"; in print_image_info64()
6211 outs() << " Swift 4.0"; in print_image_info64()
6213 outs() << " Swift 4.1/Swift 4.2"; in print_image_info64()
6215 outs() << " Swift 5 or later"; in print_image_info64()
6217 outs() << " unknown future Swift version (" << swift_version << ")"; in print_image_info64()
6219 outs() << "\n"; in print_image_info64()
6239 outs() << "Contents of (" << SegName << "," << SectName << ") section\n"; in print_image_info32()
6247 outs() << " (objc_image_info entends past the end of the section)\n"; in print_image_info32()
6252 outs() << " version " << o.version << "\n"; in print_image_info32()
6253 outs() << " flags " << format("0x%" PRIx32, o.flags); in print_image_info32()
6255 outs() << " OBJC_IMAGE_IS_REPLACEMENT"; in print_image_info32()
6257 outs() << " OBJC_IMAGE_SUPPORTS_GC"; in print_image_info32()
6261 outs() << " Swift 1.0"; in print_image_info32()
6263 outs() << " Swift 1.1"; in print_image_info32()
6265 outs() << " Swift 2.0"; in print_image_info32()
6267 outs() << " Swift 3.0"; in print_image_info32()
6269 outs() << " Swift 4.0"; in print_image_info32()
6271 outs() << " Swift 4.1/Swift 4.2"; in print_image_info32()
6273 outs() << " Swift 5 or later"; in print_image_info32()
6275 outs() << " unknown future Swift version (" << swift_version << ")"; in print_image_info32()
6277 outs() << "\n"; in print_image_info32()
6294 outs() << "Contents of (" << SegName << "," << SectName << ") section\n"; in print_image_info()
6302 outs() << " (imageInfo entends past the end of the section)\n"; in print_image_info()
6307 outs() << " version " << o.version << "\n"; in print_image_info()
6308 outs() << " flags " << format("0x%" PRIx32, o.flags); in print_image_info()
6310 outs() << " F&C"; in print_image_info()
6312 outs() << " GC"; in print_image_info()
6314 outs() << " GC-only"; in print_image_info()
6316 outs() << " RR"; in print_image_info()
6317 outs() << "\n"; in print_image_info()
6491 outs() << "Objective-C segment\n"; in printObjc1_32bit_MetaData()
6513 outs() << " (module extends past end of __module_info section)\n"; in printObjc1_32bit_MetaData()
6519 outs() << "Module " << format("0x%" PRIx32, p) << "\n"; in printObjc1_32bit_MetaData()
6520 outs() << " version " << module.version << "\n"; in printObjc1_32bit_MetaData()
6521 outs() << " size " << module.size << "\n"; in printObjc1_32bit_MetaData()
6522 outs() << " name "; in printObjc1_32bit_MetaData()
6525 outs() << format("%.*s", left, name); in printObjc1_32bit_MetaData()
6527 outs() << format("0x%08" PRIx32, module.name) in printObjc1_32bit_MetaData()
6529 outs() << "\n"; in printObjc1_32bit_MetaData()
6533 outs() << " symtab " << format("0x%08" PRIx32, module.symtab) in printObjc1_32bit_MetaData()
6537 outs() << " symtab " << format("0x%08" PRIx32, module.symtab) << "\n"; in printObjc1_32bit_MetaData()
6543 outs() << "\tsymtab extends past end of an __OBJC section)\n"; in printObjc1_32bit_MetaData()
6554 outs() << "\tsel_ref_cnt " << symtab.sel_ref_cnt << "\n"; in printObjc1_32bit_MetaData()
6556 outs() << "\trefs " << format("0x%08" PRIx32, symtab.refs); in printObjc1_32bit_MetaData()
6558 outs() << " (not in an __OBJC section)"; in printObjc1_32bit_MetaData()
6559 outs() << "\n"; in printObjc1_32bit_MetaData()
6560 outs() << "\tcls_def_cnt " << symtab.cls_def_cnt << "\n"; in printObjc1_32bit_MetaData()
6561 outs() << "\tcat_def_cnt " << symtab.cat_def_cnt << "\n"; in printObjc1_32bit_MetaData()
6563 outs() << "\tClass Definitions\n"; in printObjc1_32bit_MetaData()
6566 outs() << "\t(remaining class defs entries entends past the end of the " in printObjc1_32bit_MetaData()
6575 outs() << "\tdefs[" << j << "] " << format("0x%08" PRIx32, def); in printObjc1_32bit_MetaData()
6578 outs() << "\n"; in printObjc1_32bit_MetaData()
6581 outs() << " (entends past the end of the section)\n"; in printObjc1_32bit_MetaData()
6589 outs() << "(not in an __OBJC section)\n"; in printObjc1_32bit_MetaData()
6593 outs() << "\tMeta Class"; in printObjc1_32bit_MetaData()
6597 outs() << "\n"; in printObjc1_32bit_MetaData()
6600 outs() << " (entends past the end of the section)\n"; in printObjc1_32bit_MetaData()
6608 outs() << "(not in an __OBJC section)\n"; in printObjc1_32bit_MetaData()
6613 outs() << "\tCategory Definitions\n"; in printObjc1_32bit_MetaData()
6616 outs() << "\t(remaining category defs entries entends past the end of " in printObjc1_32bit_MetaData()
6626 outs() << "\tdefs[" << j + symtab.cls_def_cnt << "] " in printObjc1_32bit_MetaData()
6630 outs() << "\n"; in printObjc1_32bit_MetaData()
6633 outs() << " (entends past the end of the section)\n"; in printObjc1_32bit_MetaData()
6641 outs() << "(not in an __OBJC section)\n"; in printObjc1_32bit_MetaData()
6669 outs() << "Protocol extends past end of __protocol section\n"; in DumpProtocolSection()
6676 outs() << "Protocol " << format("0x%" PRIx32, paddr); in DumpProtocolSection()
6678 outs() << "(not in an __OBJC section)\n"; in DumpProtocolSection()
7307 outs() << "(" << DisSegName << "," << DisSectName << ") section\n"; in DisassembleMachO()
7349 outs() << "Can't find -dis-symname: " << DisSymName << "\n"; in DisassembleMachO()
7390 outs() << "-dis-symname: " << DisSymName << " not in the section\n"; in DisassembleMachO()
7401 outs() << "-dis-symname: __mh_execute_header not in any section\n"; in DisassembleMachO()
7424 outs() << "section data ends, " << SymName in DisassembleMachO()
7471 outs() << SymName << ":\n"; in DisassembleMachO()
7481 outs() << SymName << ":\n"; in DisassembleMachO()
7487 outs() << format("%016" PRIx64, PC); in DisassembleMachO()
7489 outs() << format("%08" PRIx64, PC); in DisassembleMachO()
7491 outs() << format("%8" PRIx64 ":", PC); in DisassembleMachO()
7495 outs() << "\t"; in DisassembleMachO()
7512 dumpBytes(ArrayRef(Bytes.data() + Index, Size), outs()); in DisassembleMachO()
7514 formatted_raw_ostream FormattedOS(outs()); in DisassembleMachO()
7528 outs() << "\t## " << dli.FileName << ':' << dli.Line << ':' in DisassembleMachO()
7532 outs() << "\n"; in DisassembleMachO()
7535 outs() << format("\t.byte 0x%02x #bad opcode\n", in DisassembleMachO()
7544 outs() << format("\t.long\t0x%08x\n", opcode); in DisassembleMachO()
7550 outs() << format("\t.short\t0x%04x\n", opcode); in DisassembleMachO()
7584 outs() << format("%016" PRIx64, PC); in DisassembleMachO()
7586 outs() << format("%08" PRIx64, PC); in DisassembleMachO()
7588 outs() << format("%8" PRIx64 ":", PC); in DisassembleMachO()
7592 outs() << "\t"; in DisassembleMachO()
7593 dumpBytes(ArrayRef(Bytes.data() + Index, InstSize), outs()); in DisassembleMachO()
7596 IP->printInst(&Inst, PC, AnnotationsStr, *STI, outs()); in DisassembleMachO()
7597 outs() << "\n"; in DisassembleMachO()
7600 outs() << format("\t.byte 0x%02x #bad opcode\n", in DisassembleMachO()
7633 outs() << "warning: attempt to read past end of buffer\n"; in read()
7752 outs() << Name; in printUnwindRelocDest()
7754 outs() << " + " << format("0x%" PRIx64, Addend); in printUnwindRelocDest()
7763 outs() << "Skipping big-endian __compact_unwind section\n"; in printMachOCompactUnwindSection()
7797 outs() << "Invalid relocation in __compact_unwind section\n"; in printMachOCompactUnwindSection()
7803 outs() << "Contents of __compact_unwind section:\n"; in printMachOCompactUnwindSection()
7805 outs() << " Entry at offset " in printMachOCompactUnwindSection()
7809 outs() << " start: " << format("0x%" PRIx64, in printMachOCompactUnwindSection()
7812 outs() << '\n'; in printMachOCompactUnwindSection()
7815 outs() << " length: " << format("0x%" PRIx32, Entry.Length) in printMachOCompactUnwindSection()
7818 outs() << " compact encoding: " in printMachOCompactUnwindSection()
7823 outs() << " personality function: " in printMachOCompactUnwindSection()
7827 outs() << '\n'; in printMachOCompactUnwindSection()
7832 outs() << " LSDA: " << format("0x%" PRIx64, in printMachOCompactUnwindSection()
7835 outs() << '\n'; in printMachOCompactUnwindSection()
7858 outs() << " [" << i << "]: " in printRegularSecondLevelUnwindPage()
7881 outs() << " Page encodings: (count = " << NumPageEncodings << ")\n"; in printCompressedSecondLevelUnwindPage()
7886 outs() << " encoding[" << (i + NumCommonEncodings) in printCompressedSecondLevelUnwindPage()
7903 outs() << " [" << i << "]: " in printCompressedSecondLevelUnwindPage()
7916 outs() << "Skipping big-endian __unwind_info section\n"; in printMachOUnwindInfoSection()
7920 outs() << "Contents of __unwind_info section:\n"; in printMachOUnwindInfoSection()
7931 outs() << " Version: " in printMachOUnwindInfoSection()
7934 outs() << " Skipping section with unknown version\n"; in printMachOUnwindInfoSection()
7939 outs() << " Common encodings array section offset: " in printMachOUnwindInfoSection()
7942 outs() << " Number of common encodings in array: " in printMachOUnwindInfoSection()
7946 outs() << " Personality function array section offset: " in printMachOUnwindInfoSection()
7949 outs() << " Number of personality functions in array: " in printMachOUnwindInfoSection()
7953 outs() << " Index array section offset: " in printMachOUnwindInfoSection()
7956 outs() << " Number of indices in array: " in printMachOUnwindInfoSection()
7969 outs() << " Common encodings: (count = " << NumCommonEncodings << ")\n"; in printMachOUnwindInfoSection()
7975 outs() << " encoding[" << i << "]: " << format("0x%08" PRIx32, Encoding) in printMachOUnwindInfoSection()
7986 outs() << " Personality functions: (count = " << NumPersonalities << ")\n"; in printMachOUnwindInfoSection()
7990 outs() << " personality[" << i + 1 in printMachOUnwindInfoSection()
8009 outs() << " Top level indices: (count = " << NumIndices << ")\n"; in printMachOUnwindInfoSection()
8019 outs() << " [" << i << "]: " in printMachOUnwindInfoSection()
8034 outs() << " LSDA descriptors:\n"; in printMachOUnwindInfoSection()
8043 outs() << " [" << i << "]: " in printMachOUnwindInfoSection()
8057 outs() << " Second level indices:\n"; in printMachOUnwindInfoSection()
8063 outs() << " Second level index[" << i << "]: " in printMachOUnwindInfoSection()
8072 outs() << "warning: invalid offset for second level page: " << Pos << '\n'; in printMachOUnwindInfoSection()
8085 outs() << " Skipping 2nd level page with unknown kind " << Kind in printMachOUnwindInfoSection()
8127 outs() << "Mach header\n"; in PrintMachHeader()
8128 outs() << " magic cputype cpusubtype caps filetype ncmds " in PrintMachHeader()
8132 outs() << " MH_MAGIC"; in PrintMachHeader()
8134 outs() << "MH_MAGIC_64"; in PrintMachHeader()
8136 outs() << format(" 0x%08" PRIx32, magic); in PrintMachHeader()
8139 outs() << " I386"; in PrintMachHeader()
8142 outs() << " ALL"; in PrintMachHeader()
8145 outs() << format(" %10d", cpusubtype & ~MachO::CPU_SUBTYPE_MASK); in PrintMachHeader()
8150 outs() << " X86_64"; in PrintMachHeader()
8153 outs() << " ALL"; in PrintMachHeader()
8156 outs() << " Haswell"; in PrintMachHeader()
8159 outs() << format(" %10d", cpusubtype & ~MachO::CPU_SUBTYPE_MASK); in PrintMachHeader()
8164 outs() << " ARM"; in PrintMachHeader()
8167 outs() << " ALL"; in PrintMachHeader()
8170 outs() << " V4T"; in PrintMachHeader()
8173 outs() << " V5TEJ"; in PrintMachHeader()
8176 outs() << " XSCALE"; in PrintMachHeader()
8179 outs() << " V6"; in PrintMachHeader()
8182 outs() << " V6M"; in PrintMachHeader()
8185 outs() << " V7"; in PrintMachHeader()
8188 outs() << " V7EM"; in PrintMachHeader()
8191 outs() << " V7K"; in PrintMachHeader()
8194 outs() << " V7M"; in PrintMachHeader()
8197 outs() << " V7S"; in PrintMachHeader()
8200 outs() << format(" %10d", cpusubtype & ~MachO::CPU_SUBTYPE_MASK); in PrintMachHeader()
8205 outs() << " ARM64"; in PrintMachHeader()
8208 outs() << " ALL"; in PrintMachHeader()
8211 outs() << " V8"; in PrintMachHeader()
8214 outs() << " E"; in PrintMachHeader()
8217 outs() << format(" %10d", cpusubtype & ~MachO::CPU_SUBTYPE_MASK); in PrintMachHeader()
8222 outs() << " ARM64_32"; in PrintMachHeader()
8225 outs() << " V8"; in PrintMachHeader()
8228 outs() << format(" %10d", cpusubtype & ~MachO::CPU_SUBTYPE_MASK); in PrintMachHeader()
8233 outs() << " PPC"; in PrintMachHeader()
8236 outs() << " ALL"; in PrintMachHeader()
8239 outs() << format(" %10d", cpusubtype & ~MachO::CPU_SUBTYPE_MASK); in PrintMachHeader()
8244 outs() << " PPC64"; in PrintMachHeader()
8247 outs() << " ALL"; in PrintMachHeader()
8250 outs() << format(" %10d", cpusubtype & ~MachO::CPU_SUBTYPE_MASK); in PrintMachHeader()
8255 outs() << format(" %7d", cputype); in PrintMachHeader()
8256 outs() << format(" %10d", cpusubtype & ~MachO::CPU_SUBTYPE_MASK); in PrintMachHeader()
8260 outs() << " LIB64"; in PrintMachHeader()
8262 outs() << format(" 0x%02" PRIx32, in PrintMachHeader()
8267 outs() << " OBJECT"; in PrintMachHeader()
8270 outs() << " EXECUTE"; in PrintMachHeader()
8273 outs() << " FVMLIB"; in PrintMachHeader()
8276 outs() << " CORE"; in PrintMachHeader()
8279 outs() << " PRELOAD"; in PrintMachHeader()
8282 outs() << " DYLIB"; in PrintMachHeader()
8285 outs() << " DYLIB_STUB"; in PrintMachHeader()
8288 outs() << " DYLINKER"; in PrintMachHeader()
8291 outs() << " BUNDLE"; in PrintMachHeader()
8294 outs() << " DSYM"; in PrintMachHeader()
8297 outs() << " KEXTBUNDLE"; in PrintMachHeader()
8300 outs() << " FILESET"; in PrintMachHeader()
8303 outs() << format(" %10u", filetype); in PrintMachHeader()
8306 outs() << format(" %5u", ncmds); in PrintMachHeader()
8307 outs() << format(" %10u", sizeofcmds); in PrintMachHeader()
8310 outs() << " NOUNDEFS"; in PrintMachHeader()
8314 outs() << " INCRLINK"; in PrintMachHeader()
8318 outs() << " DYLDLINK"; in PrintMachHeader()
8322 outs() << " BINDATLOAD"; in PrintMachHeader()
8326 outs() << " PREBOUND"; in PrintMachHeader()
8330 outs() << " SPLIT_SEGS"; in PrintMachHeader()
8334 outs() << " LAZY_INIT"; in PrintMachHeader()
8338 outs() << " TWOLEVEL"; in PrintMachHeader()
8342 outs() << " FORCE_FLAT"; in PrintMachHeader()
8346 outs() << " NOMULTIDEFS"; in PrintMachHeader()
8350 outs() << " NOFIXPREBINDING"; in PrintMachHeader()
8354 outs() << " PREBINDABLE"; in PrintMachHeader()
8358 outs() << " ALLMODSBOUND"; in PrintMachHeader()
8362 outs() << " SUBSECTIONS_VIA_SYMBOLS"; in PrintMachHeader()
8366 outs() << " CANONICAL"; in PrintMachHeader()
8370 outs() << " WEAK_DEFINES"; in PrintMachHeader()
8374 outs() << " BINDS_TO_WEAK"; in PrintMachHeader()
8378 outs() << " ALLOW_STACK_EXECUTION"; in PrintMachHeader()
8382 outs() << " DEAD_STRIPPABLE_DYLIB"; in PrintMachHeader()
8386 outs() << " PIE"; in PrintMachHeader()
8390 outs() << " NO_REEXPORTED_DYLIBS"; in PrintMachHeader()
8394 outs() << " MH_HAS_TLV_DESCRIPTORS"; in PrintMachHeader()
8398 outs() << " MH_NO_HEAP_EXECUTION"; in PrintMachHeader()
8402 outs() << " APP_EXTENSION_SAFE"; in PrintMachHeader()
8406 outs() << " NLIST_OUTOFSYNC_WITH_DYLDINFO"; in PrintMachHeader()
8410 outs() << format(" 0x%08" PRIx32, f); in PrintMachHeader()
8412 outs() << format(" 0x%08" PRIx32, magic); in PrintMachHeader()
8413 outs() << format(" %7d", cputype); in PrintMachHeader()
8414 outs() << format(" %10d", cpusubtype & ~MachO::CPU_SUBTYPE_MASK); in PrintMachHeader()
8415 outs() << format(" 0x%02" PRIx32, in PrintMachHeader()
8417 outs() << format(" %10u", filetype); in PrintMachHeader()
8418 outs() << format(" %5u", ncmds); in PrintMachHeader()
8419 outs() << format(" %10u", sizeofcmds); in PrintMachHeader()
8420 outs() << format(" 0x%08" PRIx32, flags); in PrintMachHeader()
8422 outs() << "\n"; in PrintMachHeader()
8434 outs() << " cmd LC_SEGMENT\n"; in PrintSegmentCommand()
8439 outs() << " cmd LC_SEGMENT_64\n"; in PrintSegmentCommand()
8444 outs() << " cmdsize " << cmdsize; in PrintSegmentCommand()
8446 outs() << " Inconsistent size\n"; in PrintSegmentCommand()
8448 outs() << "\n"; in PrintSegmentCommand()
8449 outs() << " segname " << SegName << "\n"; in PrintSegmentCommand()
8451 outs() << " vmaddr " << format("0x%016" PRIx64, vmaddr) << "\n"; in PrintSegmentCommand()
8452 outs() << " vmsize " << format("0x%016" PRIx64, vmsize) << "\n"; in PrintSegmentCommand()
8454 outs() << " vmaddr " << format("0x%08" PRIx64, vmaddr) << "\n"; in PrintSegmentCommand()
8455 outs() << " vmsize " << format("0x%08" PRIx64, vmsize) << "\n"; in PrintSegmentCommand()
8457 outs() << " fileoff " << fileoff; in PrintSegmentCommand()
8459 outs() << " (past end of file)\n"; in PrintSegmentCommand()
8461 outs() << "\n"; in PrintSegmentCommand()
8462 outs() << " filesize " << filesize; in PrintSegmentCommand()
8464 outs() << " (past end of file)\n"; in PrintSegmentCommand()
8466 outs() << "\n"; in PrintSegmentCommand()
8471 outs() << " maxprot ?" << format("0x%08" PRIx32, maxprot) << "\n"; in PrintSegmentCommand()
8473 outs() << " maxprot "; in PrintSegmentCommand()
8474 outs() << ((maxprot & MachO::VM_PROT_READ) ? "r" : "-"); in PrintSegmentCommand()
8475 outs() << ((maxprot & MachO::VM_PROT_WRITE) ? "w" : "-"); in PrintSegmentCommand()
8476 outs() << ((maxprot & MachO::VM_PROT_EXECUTE) ? "x\n" : "-\n"); in PrintSegmentCommand()
8481 outs() << " initprot ?" << format("0x%08" PRIx32, initprot) << "\n"; in PrintSegmentCommand()
8483 outs() << " initprot "; in PrintSegmentCommand()
8484 outs() << ((initprot & MachO::VM_PROT_READ) ? "r" : "-"); in PrintSegmentCommand()
8485 outs() << ((initprot & MachO::VM_PROT_WRITE) ? "w" : "-"); in PrintSegmentCommand()
8486 outs() << ((initprot & MachO::VM_PROT_EXECUTE) ? "x\n" : "-\n"); in PrintSegmentCommand()
8489 outs() << " maxprot " << format("0x%08" PRIx32, maxprot) << "\n"; in PrintSegmentCommand()
8490 outs() << " initprot " << format("0x%08" PRIx32, initprot) << "\n"; in PrintSegmentCommand()
8492 outs() << " nsects " << nsects << "\n"; in PrintSegmentCommand()
8494 outs() << " flags"; in PrintSegmentCommand()
8496 outs() << " (none)\n"; in PrintSegmentCommand()
8499 outs() << " HIGHVM"; in PrintSegmentCommand()
8503 outs() << " FVMLIB"; in PrintSegmentCommand()
8507 outs() << " NORELOC"; in PrintSegmentCommand()
8511 outs() << " PROTECTED_VERSION_1"; in PrintSegmentCommand()
8517 outs() << " SG_READ_ONLY"; in PrintSegmentCommand()
8521 outs() << format(" 0x%08" PRIx32, flags) << " (unknown flags)\n"; in PrintSegmentCommand()
8523 outs() << "\n"; in PrintSegmentCommand()
8526 outs() << " flags " << format("0x%" PRIx32, flags) << "\n"; in PrintSegmentCommand()
8537 outs() << "Section\n"; in PrintSection()
8538 outs() << " sectname " << format("%.16s\n", sectname); in PrintSection()
8539 outs() << " segname " << format("%.16s", segname); in PrintSection()
8541 outs() << " (does not match segment)\n"; in PrintSection()
8543 outs() << "\n"; in PrintSection()
8545 outs() << " addr " << format("0x%016" PRIx64, addr) << "\n"; in PrintSection()
8546 outs() << " size " << format("0x%016" PRIx64, size); in PrintSection()
8548 outs() << " addr " << format("0x%08" PRIx64, addr) << "\n"; in PrintSection()
8549 outs() << " size " << format("0x%08" PRIx64, size); in PrintSection()
8552 outs() << " (past end of file)\n"; in PrintSection()
8554 outs() << "\n"; in PrintSection()
8555 outs() << " offset " << offset; in PrintSection()
8557 outs() << " (past end of file)\n"; in PrintSection()
8559 outs() << "\n"; in PrintSection()
8561 outs() << " align 2^" << align << " (" << align_shifted << ")\n"; in PrintSection()
8562 outs() << " reloff " << reloff; in PrintSection()
8564 outs() << " (past end of file)\n"; in PrintSection()
8566 outs() << "\n"; in PrintSection()
8567 outs() << " nreloc " << nreloc; in PrintSection()
8569 outs() << " (past end of file)\n"; in PrintSection()
8571 outs() << "\n"; in PrintSection()
8574 outs() << " type"; in PrintSection()
8576 outs() << " S_REGULAR\n"; in PrintSection()
8578 outs() << " S_ZEROFILL\n"; in PrintSection()
8580 outs() << " S_CSTRING_LITERALS\n"; in PrintSection()
8582 outs() << " S_4BYTE_LITERALS\n"; in PrintSection()
8584 outs() << " S_8BYTE_LITERALS\n"; in PrintSection()
8586 outs() << " S_16BYTE_LITERALS\n"; in PrintSection()
8588 outs() << " S_LITERAL_POINTERS\n"; in PrintSection()
8590 outs() << " S_NON_LAZY_SYMBOL_POINTERS\n"; in PrintSection()
8592 outs() << " S_LAZY_SYMBOL_POINTERS\n"; in PrintSection()
8594 outs() << " S_SYMBOL_STUBS\n"; in PrintSection()
8596 outs() << " S_MOD_INIT_FUNC_POINTERS\n"; in PrintSection()
8598 outs() << " S_MOD_TERM_FUNC_POINTERS\n"; in PrintSection()
8600 outs() << " S_COALESCED\n"; in PrintSection()
8602 outs() << " S_INTERPOSING\n"; in PrintSection()
8604 outs() << " S_DTRACE_DOF\n"; in PrintSection()
8606 outs() << " S_LAZY_DYLIB_SYMBOL_POINTERS\n"; in PrintSection()
8608 outs() << " S_THREAD_LOCAL_REGULAR\n"; in PrintSection()
8610 outs() << " S_THREAD_LOCAL_ZEROFILL\n"; in PrintSection()
8612 outs() << " S_THREAD_LOCAL_VARIABLES\n"; in PrintSection()
8614 outs() << " S_THREAD_LOCAL_VARIABLE_POINTERS\n"; in PrintSection()
8616 outs() << " S_THREAD_LOCAL_INIT_FUNCTION_POINTERS\n"; in PrintSection()
8618 outs() << " S_INIT_FUNC_OFFSETS\n"; in PrintSection()
8620 outs() << format("0x%08" PRIx32, section_type) << "\n"; in PrintSection()
8621 outs() << "attributes"; in PrintSection()
8624 outs() << " PURE_INSTRUCTIONS"; in PrintSection()
8626 outs() << " NO_TOC"; in PrintSection()
8628 outs() << " STRIP_STATIC_SYMS"; in PrintSection()
8630 outs() << " NO_DEAD_STRIP"; in PrintSection()
8632 outs() << " LIVE_SUPPORT"; in PrintSection()
8634 outs() << " SELF_MODIFYING_CODE"; in PrintSection()
8636 outs() << " DEBUG"; in PrintSection()
8638 outs() << " SOME_INSTRUCTIONS"; in PrintSection()
8640 outs() << " EXT_RELOC"; in PrintSection()
8642 outs() << " LOC_RELOC"; in PrintSection()
8644 outs() << " (none)"; in PrintSection()
8645 outs() << "\n"; in PrintSection()
8647 outs() << " flags " << format("0x%08" PRIx32, flags) << "\n"; in PrintSection()
8648 outs() << " reserved1 " << reserved1; in PrintSection()
8654 outs() << " (index into indirect symbol table)\n"; in PrintSection()
8656 outs() << "\n"; in PrintSection()
8657 outs() << " reserved2 " << reserved2; in PrintSection()
8659 outs() << " (size of stubs)\n"; in PrintSection()
8661 outs() << "\n"; in PrintSection()
8666 outs() << " cmd LC_SYMTAB\n"; in PrintSymtabLoadCommand()
8667 outs() << " cmdsize " << st.cmdsize; in PrintSymtabLoadCommand()
8669 outs() << " Incorrect size\n"; in PrintSymtabLoadCommand()
8671 outs() << "\n"; in PrintSymtabLoadCommand()
8672 outs() << " symoff " << st.symoff; in PrintSymtabLoadCommand()
8674 outs() << " (past end of file)\n"; in PrintSymtabLoadCommand()
8676 outs() << "\n"; in PrintSymtabLoadCommand()
8677 outs() << " nsyms " << st.nsyms; in PrintSymtabLoadCommand()
8684 outs() << " (past end of file)\n"; in PrintSymtabLoadCommand()
8686 outs() << "\n"; in PrintSymtabLoadCommand()
8692 outs() << " (past end of file)\n"; in PrintSymtabLoadCommand()
8694 outs() << "\n"; in PrintSymtabLoadCommand()
8696 outs() << " stroff " << st.stroff; in PrintSymtabLoadCommand()
8698 outs() << " (past end of file)\n"; in PrintSymtabLoadCommand()
8700 outs() << "\n"; in PrintSymtabLoadCommand()
8701 outs() << " strsize " << st.strsize; in PrintSymtabLoadCommand()
8705 outs() << " (past end of file)\n"; in PrintSymtabLoadCommand()
8707 outs() << "\n"; in PrintSymtabLoadCommand()
8713 outs() << " cmd LC_DYSYMTAB\n"; in PrintDysymtabLoadCommand()
8714 outs() << " cmdsize " << dyst.cmdsize; in PrintDysymtabLoadCommand()
8716 outs() << " Incorrect size\n"; in PrintDysymtabLoadCommand()
8718 outs() << "\n"; in PrintDysymtabLoadCommand()
8719 outs() << " ilocalsym " << dyst.ilocalsym; in PrintDysymtabLoadCommand()
8721 outs() << " (greater than the number of symbols)\n"; in PrintDysymtabLoadCommand()
8723 outs() << "\n"; in PrintDysymtabLoadCommand()
8724 outs() << " nlocalsym " << dyst.nlocalsym; in PrintDysymtabLoadCommand()
8729 outs() << " (past the end of the symbol table)\n"; in PrintDysymtabLoadCommand()
8731 outs() << "\n"; in PrintDysymtabLoadCommand()
8732 outs() << " iextdefsym " << dyst.iextdefsym; in PrintDysymtabLoadCommand()
8734 outs() << " (greater than the number of symbols)\n"; in PrintDysymtabLoadCommand()
8736 outs() << "\n"; in PrintDysymtabLoadCommand()
8737 outs() << " nextdefsym " << dyst.nextdefsym; in PrintDysymtabLoadCommand()
8741 outs() << " (past the end of the symbol table)\n"; in PrintDysymtabLoadCommand()
8743 outs() << "\n"; in PrintDysymtabLoadCommand()
8744 outs() << " iundefsym " << dyst.iundefsym; in PrintDysymtabLoadCommand()
8746 outs() << " (greater than the number of symbols)\n"; in PrintDysymtabLoadCommand()
8748 outs() << "\n"; in PrintDysymtabLoadCommand()
8749 outs() << " nundefsym " << dyst.nundefsym; in PrintDysymtabLoadCommand()
8753 outs() << " (past the end of the symbol table)\n"; in PrintDysymtabLoadCommand()
8755 outs() << "\n"; in PrintDysymtabLoadCommand()
8756 outs() << " tocoff " << dyst.tocoff; in PrintDysymtabLoadCommand()
8758 outs() << " (past end of file)\n"; in PrintDysymtabLoadCommand()
8760 outs() << "\n"; in PrintDysymtabLoadCommand()
8761 outs() << " ntoc " << dyst.ntoc; in PrintDysymtabLoadCommand()
8766 outs() << " (past end of file)\n"; in PrintDysymtabLoadCommand()
8768 outs() << "\n"; in PrintDysymtabLoadCommand()
8769 outs() << " modtaboff " << dyst.modtaboff; in PrintDysymtabLoadCommand()
8771 outs() << " (past end of file)\n"; in PrintDysymtabLoadCommand()
8773 outs() << "\n"; in PrintDysymtabLoadCommand()
8774 outs() << " nmodtab " << dyst.nmodtab; in PrintDysymtabLoadCommand()
8786 outs() << " (past end of file)\n"; in PrintDysymtabLoadCommand()
8788 outs() << "\n"; in PrintDysymtabLoadCommand()
8789 outs() << " extrefsymoff " << dyst.extrefsymoff; in PrintDysymtabLoadCommand()
8791 outs() << " (past end of file)\n"; in PrintDysymtabLoadCommand()
8793 outs() << "\n"; in PrintDysymtabLoadCommand()
8794 outs() << " nextrefsyms " << dyst.nextrefsyms; in PrintDysymtabLoadCommand()
8799 outs() << " (past end of file)\n"; in PrintDysymtabLoadCommand()
8801 outs() << "\n"; in PrintDysymtabLoadCommand()
8802 outs() << " indirectsymoff " << dyst.indirectsymoff; in PrintDysymtabLoadCommand()
8804 outs() << " (past end of file)\n"; in PrintDysymtabLoadCommand()
8806 outs() << "\n"; in PrintDysymtabLoadCommand()
8807 outs() << " nindirectsyms " << dyst.nindirectsyms; in PrintDysymtabLoadCommand()
8812 outs() << " (past end of file)\n"; in PrintDysymtabLoadCommand()
8814 outs() << "\n"; in PrintDysymtabLoadCommand()
8815 outs() << " extreloff " << dyst.extreloff; in PrintDysymtabLoadCommand()
8817 outs() << " (past end of file)\n"; in PrintDysymtabLoadCommand()
8819 outs() << "\n"; in PrintDysymtabLoadCommand()
8820 outs() << " nextrel " << dyst.nextrel; in PrintDysymtabLoadCommand()
8825 outs() << " (past end of file)\n"; in PrintDysymtabLoadCommand()
8827 outs() << "\n"; in PrintDysymtabLoadCommand()
8828 outs() << " locreloff " << dyst.locreloff; in PrintDysymtabLoadCommand()
8830 outs() << " (past end of file)\n"; in PrintDysymtabLoadCommand()
8832 outs() << "\n"; in PrintDysymtabLoadCommand()
8833 outs() << " nlocrel " << dyst.nlocrel; in PrintDysymtabLoadCommand()
8838 outs() << " (past end of file)\n"; in PrintDysymtabLoadCommand()
8840 outs() << "\n"; in PrintDysymtabLoadCommand()
8846 outs() << " cmd LC_DYLD_INFO\n"; in PrintDyldInfoLoadCommand()
8848 outs() << " cmd LC_DYLD_INFO_ONLY\n"; in PrintDyldInfoLoadCommand()
8849 outs() << " cmdsize " << dc.cmdsize; in PrintDyldInfoLoadCommand()
8851 outs() << " Incorrect size\n"; in PrintDyldInfoLoadCommand()
8853 outs() << "\n"; in PrintDyldInfoLoadCommand()
8854 outs() << " rebase_off " << dc.rebase_off; in PrintDyldInfoLoadCommand()
8856 outs() << " (past end of file)\n"; in PrintDyldInfoLoadCommand()
8858 outs() << "\n"; in PrintDyldInfoLoadCommand()
8859 outs() << " rebase_size " << dc.rebase_size; in PrintDyldInfoLoadCommand()
8864 outs() << " (past end of file)\n"; in PrintDyldInfoLoadCommand()
8866 outs() << "\n"; in PrintDyldInfoLoadCommand()
8867 outs() << " bind_off " << dc.bind_off; in PrintDyldInfoLoadCommand()
8869 outs() << " (past end of file)\n"; in PrintDyldInfoLoadCommand()
8871 outs() << "\n"; in PrintDyldInfoLoadCommand()
8872 outs() << " bind_size " << dc.bind_size; in PrintDyldInfoLoadCommand()
8876 outs() << " (past end of file)\n"; in PrintDyldInfoLoadCommand()
8878 outs() << "\n"; in PrintDyldInfoLoadCommand()
8879 outs() << " weak_bind_off " << dc.weak_bind_off; in PrintDyldInfoLoadCommand()
8881 outs() << " (past end of file)\n"; in PrintDyldInfoLoadCommand()
8883 outs() << "\n"; in PrintDyldInfoLoadCommand()
8884 outs() << " weak_bind_size " << dc.weak_bind_size; in PrintDyldInfoLoadCommand()
8888 outs() << " (past end of file)\n"; in PrintDyldInfoLoadCommand()
8890 outs() << "\n"; in PrintDyldInfoLoadCommand()
8891 outs() << " lazy_bind_off " << dc.lazy_bind_off; in PrintDyldInfoLoadCommand()
8893 outs() << " (past end of file)\n"; in PrintDyldInfoLoadCommand()
8895 outs() << "\n"; in PrintDyldInfoLoadCommand()
8896 outs() << " lazy_bind_size " << dc.lazy_bind_size; in PrintDyldInfoLoadCommand()
8900 outs() << " (past end of file)\n"; in PrintDyldInfoLoadCommand()
8902 outs() << "\n"; in PrintDyldInfoLoadCommand()
8903 outs() << " export_off " << dc.export_off; in PrintDyldInfoLoadCommand()
8905 outs() << " (past end of file)\n"; in PrintDyldInfoLoadCommand()
8907 outs() << "\n"; in PrintDyldInfoLoadCommand()
8908 outs() << " export_size " << dc.export_size; in PrintDyldInfoLoadCommand()
8912 outs() << " (past end of file)\n"; in PrintDyldInfoLoadCommand()
8914 outs() << "\n"; in PrintDyldInfoLoadCommand()
8920 outs() << " cmd LC_ID_DYLINKER\n"; in PrintDyldLoadCommand()
8922 outs() << " cmd LC_LOAD_DYLINKER\n"; in PrintDyldLoadCommand()
8924 outs() << " cmd LC_DYLD_ENVIRONMENT\n"; in PrintDyldLoadCommand()
8926 outs() << " cmd ?(" << dyld.cmd << ")\n"; in PrintDyldLoadCommand()
8927 outs() << " cmdsize " << dyld.cmdsize; in PrintDyldLoadCommand()
8929 outs() << " Incorrect size\n"; in PrintDyldLoadCommand()
8931 outs() << "\n"; in PrintDyldLoadCommand()
8933 outs() << " name ?(bad offset " << dyld.name << ")\n"; in PrintDyldLoadCommand()
8936 outs() << " name " << P << " (offset " << dyld.name << ")\n"; in PrintDyldLoadCommand()
8941 outs() << " cmd LC_UUID\n"; in PrintUuidLoadCommand()
8942 outs() << " cmdsize " << uuid.cmdsize; in PrintUuidLoadCommand()
8944 outs() << " Incorrect size\n"; in PrintUuidLoadCommand()
8946 outs() << "\n"; in PrintUuidLoadCommand()
8947 outs() << " uuid "; in PrintUuidLoadCommand()
8949 outs() << format("%02" PRIX32, uuid.uuid[i]); in PrintUuidLoadCommand()
8951 outs() << "-"; in PrintUuidLoadCommand()
8953 outs() << "\n"; in PrintUuidLoadCommand()
8957 outs() << " cmd LC_RPATH\n"; in PrintRpathLoadCommand()
8958 outs() << " cmdsize " << rpath.cmdsize; in PrintRpathLoadCommand()
8960 outs() << " Incorrect size\n"; in PrintRpathLoadCommand()
8962 outs() << "\n"; in PrintRpathLoadCommand()
8964 outs() << " path ?(bad offset " << rpath.path << ")\n"; in PrintRpathLoadCommand()
8967 outs() << " path " << P << " (offset " << rpath.path << ")\n"; in PrintRpathLoadCommand()
8990 outs() << " cmd " << LoadCmdName << '\n'; in PrintVersionMinLoadCommand()
8991 outs() << " cmdsize " << vd.cmdsize; in PrintVersionMinLoadCommand()
8993 outs() << " Incorrect size\n"; in PrintVersionMinLoadCommand()
8995 outs() << "\n"; in PrintVersionMinLoadCommand()
8996 outs() << " version " in PrintVersionMinLoadCommand()
9001 outs() << "." << Update; in PrintVersionMinLoadCommand()
9002 outs() << "\n"; in PrintVersionMinLoadCommand()
9004 outs() << " sdk n/a"; in PrintVersionMinLoadCommand()
9006 outs() << " sdk " in PrintVersionMinLoadCommand()
9012 outs() << "." << Update; in PrintVersionMinLoadCommand()
9013 outs() << "\n"; in PrintVersionMinLoadCommand()
9017 outs() << " cmd LC_NOTE\n"; in PrintNoteLoadCommand()
9018 outs() << " cmdsize " << Nt.cmdsize; in PrintNoteLoadCommand()
9020 outs() << " Incorrect size\n"; in PrintNoteLoadCommand()
9022 outs() << "\n"; in PrintNoteLoadCommand()
9024 outs() << "data_owner " << format("%.16s\n", d); in PrintNoteLoadCommand()
9025 outs() << " offset " << Nt.offset << "\n"; in PrintNoteLoadCommand()
9026 outs() << " size " << Nt.size << "\n"; in PrintNoteLoadCommand()
9030 outs() << " tool "; in PrintBuildToolVersion()
9032 outs() << MachOObjectFile::getBuildTool(bv.tool); in PrintBuildToolVersion()
9034 outs() << bv.tool; in PrintBuildToolVersion()
9035 outs() << "\n"; in PrintBuildToolVersion()
9036 outs() << " version " << MachOObjectFile::getVersionString(bv.version) in PrintBuildToolVersion()
9043 outs() << " cmd LC_BUILD_VERSION\n"; in PrintBuildVersionLoadCommand()
9044 outs() << " cmdsize " << bd.cmdsize; in PrintBuildVersionLoadCommand()
9048 outs() << " Incorrect size\n"; in PrintBuildVersionLoadCommand()
9050 outs() << "\n"; in PrintBuildVersionLoadCommand()
9051 outs() << " platform "; in PrintBuildVersionLoadCommand()
9053 outs() << MachOObjectFile::getBuildPlatform(bd.platform); in PrintBuildVersionLoadCommand()
9055 outs() << bd.platform; in PrintBuildVersionLoadCommand()
9056 outs() << "\n"; in PrintBuildVersionLoadCommand()
9058 outs() << " sdk " << MachOObjectFile::getVersionString(bd.sdk) in PrintBuildVersionLoadCommand()
9061 outs() << " sdk n/a\n"; in PrintBuildVersionLoadCommand()
9062 outs() << " minos " << MachOObjectFile::getVersionString(bd.minos) in PrintBuildVersionLoadCommand()
9064 outs() << " ntools " << bd.ntools << "\n"; in PrintBuildVersionLoadCommand()
9072 outs() << " cmd LC_SOURCE_VERSION\n"; in PrintSourceVersionCommand()
9073 outs() << " cmdsize " << sd.cmdsize; in PrintSourceVersionCommand()
9075 outs() << " Incorrect size\n"; in PrintSourceVersionCommand()
9077 outs() << "\n"; in PrintSourceVersionCommand()
9083 outs() << " version " << a << "." << b; in PrintSourceVersionCommand()
9085 outs() << "." << c << "." << d << "." << e; in PrintSourceVersionCommand()
9087 outs() << "." << c << "." << d; in PrintSourceVersionCommand()
9089 outs() << "." << c; in PrintSourceVersionCommand()
9090 outs() << "\n"; in PrintSourceVersionCommand()
9094 outs() << " cmd LC_MAIN\n"; in PrintEntryPointCommand()
9095 outs() << " cmdsize " << ep.cmdsize; in PrintEntryPointCommand()
9097 outs() << " Incorrect size\n"; in PrintEntryPointCommand()
9099 outs() << "\n"; in PrintEntryPointCommand()
9100 outs() << " entryoff " << ep.entryoff << "\n"; in PrintEntryPointCommand()
9101 outs() << " stacksize " << ep.stacksize << "\n"; in PrintEntryPointCommand()
9106 outs() << " cmd LC_ENCRYPTION_INFO\n"; in PrintEncryptionInfoCommand()
9107 outs() << " cmdsize " << ec.cmdsize; in PrintEncryptionInfoCommand()
9109 outs() << " Incorrect size\n"; in PrintEncryptionInfoCommand()
9111 outs() << "\n"; in PrintEncryptionInfoCommand()
9112 outs() << " cryptoff " << ec.cryptoff; in PrintEncryptionInfoCommand()
9114 outs() << " (past end of file)\n"; in PrintEncryptionInfoCommand()
9116 outs() << "\n"; in PrintEncryptionInfoCommand()
9117 outs() << " cryptsize " << ec.cryptsize; in PrintEncryptionInfoCommand()
9119 outs() << " (past end of file)\n"; in PrintEncryptionInfoCommand()
9121 outs() << "\n"; in PrintEncryptionInfoCommand()
9122 outs() << " cryptid " << ec.cryptid << "\n"; in PrintEncryptionInfoCommand()
9127 outs() << " cmd LC_ENCRYPTION_INFO_64\n"; in PrintEncryptionInfoCommand64()
9128 outs() << " cmdsize " << ec.cmdsize; in PrintEncryptionInfoCommand64()
9130 outs() << " Incorrect size\n"; in PrintEncryptionInfoCommand64()
9132 outs() << "\n"; in PrintEncryptionInfoCommand64()
9133 outs() << " cryptoff " << ec.cryptoff; in PrintEncryptionInfoCommand64()
9135 outs() << " (past end of file)\n"; in PrintEncryptionInfoCommand64()
9137 outs() << "\n"; in PrintEncryptionInfoCommand64()
9138 outs() << " cryptsize " << ec.cryptsize; in PrintEncryptionInfoCommand64()
9140 outs() << " (past end of file)\n"; in PrintEncryptionInfoCommand64()
9142 outs() << "\n"; in PrintEncryptionInfoCommand64()
9143 outs() << " cryptid " << ec.cryptid << "\n"; in PrintEncryptionInfoCommand64()
9144 outs() << " pad " << ec.pad << "\n"; in PrintEncryptionInfoCommand64()
9149 outs() << " cmd LC_LINKER_OPTION\n"; in PrintLinkerOptionCommand()
9150 outs() << " cmdsize " << lo.cmdsize; in PrintLinkerOptionCommand()
9152 outs() << " Incorrect size\n"; in PrintLinkerOptionCommand()
9154 outs() << "\n"; in PrintLinkerOptionCommand()
9155 outs() << " count " << lo.count << "\n"; in PrintLinkerOptionCommand()
9166 outs() << " string #" << i << " " << format("%.*s\n", left, string); in PrintLinkerOptionCommand()
9174 outs() << " count " << lo.count << " does not match number of strings " in PrintLinkerOptionCommand()
9180 outs() << " cmd LC_SUB_FRAMEWORK\n"; in PrintSubFrameworkCommand()
9181 outs() << " cmdsize " << sub.cmdsize; in PrintSubFrameworkCommand()
9183 outs() << " Incorrect size\n"; in PrintSubFrameworkCommand()
9185 outs() << "\n"; in PrintSubFrameworkCommand()
9188 outs() << " umbrella " << P << " (offset " << sub.umbrella << ")\n"; in PrintSubFrameworkCommand()
9190 outs() << " umbrella ?(bad offset " << sub.umbrella << ")\n"; in PrintSubFrameworkCommand()
9196 outs() << " cmd LC_SUB_UMBRELLA\n"; in PrintSubUmbrellaCommand()
9197 outs() << " cmdsize " << sub.cmdsize; in PrintSubUmbrellaCommand()
9199 outs() << " Incorrect size\n"; in PrintSubUmbrellaCommand()
9201 outs() << "\n"; in PrintSubUmbrellaCommand()
9204 outs() << " sub_umbrella " << P << " (offset " << sub.sub_umbrella << ")\n"; in PrintSubUmbrellaCommand()
9206 outs() << " sub_umbrella ?(bad offset " << sub.sub_umbrella << ")\n"; in PrintSubUmbrellaCommand()
9212 outs() << " cmd LC_SUB_LIBRARY\n"; in PrintSubLibraryCommand()
9213 outs() << " cmdsize " << sub.cmdsize; in PrintSubLibraryCommand()
9215 outs() << " Incorrect size\n"; in PrintSubLibraryCommand()
9217 outs() << "\n"; in PrintSubLibraryCommand()
9220 outs() << " sub_library " << P << " (offset " << sub.sub_library << ")\n"; in PrintSubLibraryCommand()
9222 outs() << " sub_library ?(bad offset " << sub.sub_library << ")\n"; in PrintSubLibraryCommand()
9228 outs() << " cmd LC_SUB_CLIENT\n"; in PrintSubClientCommand()
9229 outs() << " cmdsize " << sub.cmdsize; in PrintSubClientCommand()
9231 outs() << " Incorrect size\n"; in PrintSubClientCommand()
9233 outs() << "\n"; in PrintSubClientCommand()
9236 outs() << " client " << P << " (offset " << sub.client << ")\n"; in PrintSubClientCommand()
9238 outs() << " client ?(bad offset " << sub.client << ")\n"; in PrintSubClientCommand()
9243 outs() << " cmd LC_ROUTINES\n"; in PrintRoutinesCommand()
9244 outs() << " cmdsize " << r.cmdsize; in PrintRoutinesCommand()
9246 outs() << " Incorrect size\n"; in PrintRoutinesCommand()
9248 outs() << "\n"; in PrintRoutinesCommand()
9249 outs() << " init_address " << format("0x%08" PRIx32, r.init_address) << "\n"; in PrintRoutinesCommand()
9250 outs() << " init_module " << r.init_module << "\n"; in PrintRoutinesCommand()
9251 outs() << " reserved1 " << r.reserved1 << "\n"; in PrintRoutinesCommand()
9252 outs() << " reserved2 " << r.reserved2 << "\n"; in PrintRoutinesCommand()
9253 outs() << " reserved3 " << r.reserved3 << "\n"; in PrintRoutinesCommand()
9254 outs() << " reserved4 " << r.reserved4 << "\n"; in PrintRoutinesCommand()
9255 outs() << " reserved5 " << r.reserved5 << "\n"; in PrintRoutinesCommand()
9256 outs() << " reserved6 " << r.reserved6 << "\n"; in PrintRoutinesCommand()
9260 outs() << " cmd LC_ROUTINES_64\n"; in PrintRoutinesCommand64()
9261 outs() << " cmdsize " << r.cmdsize; in PrintRoutinesCommand64()
9263 outs() << " Incorrect size\n"; in PrintRoutinesCommand64()
9265 outs() << "\n"; in PrintRoutinesCommand64()
9266 outs() << " init_address " << format("0x%016" PRIx64, r.init_address) << "\n"; in PrintRoutinesCommand64()
9267 outs() << " init_module " << r.init_module << "\n"; in PrintRoutinesCommand64()
9268 outs() << " reserved1 " << r.reserved1 << "\n"; in PrintRoutinesCommand64()
9269 outs() << " reserved2 " << r.reserved2 << "\n"; in PrintRoutinesCommand64()
9270 outs() << " reserved3 " << r.reserved3 << "\n"; in PrintRoutinesCommand64()
9271 outs() << " reserved4 " << r.reserved4 << "\n"; in PrintRoutinesCommand64()
9272 outs() << " reserved5 " << r.reserved5 << "\n"; in PrintRoutinesCommand64()
9273 outs() << " reserved6 " << r.reserved6 << "\n"; in PrintRoutinesCommand64()
9277 outs() << "\t eax " << format("0x%08" PRIx32, cpu32.eax); in Print_x86_thread_state32_t()
9278 outs() << " ebx " << format("0x%08" PRIx32, cpu32.ebx); in Print_x86_thread_state32_t()
9279 outs() << " ecx " << format("0x%08" PRIx32, cpu32.ecx); in Print_x86_thread_state32_t()
9280 outs() << " edx " << format("0x%08" PRIx32, cpu32.edx) << "\n"; in Print_x86_thread_state32_t()
9281 outs() << "\t edi " << format("0x%08" PRIx32, cpu32.edi); in Print_x86_thread_state32_t()
9282 outs() << " esi " << format("0x%08" PRIx32, cpu32.esi); in Print_x86_thread_state32_t()
9283 outs() << " ebp " << format("0x%08" PRIx32, cpu32.ebp); in Print_x86_thread_state32_t()
9284 outs() << " esp " << format("0x%08" PRIx32, cpu32.esp) << "\n"; in Print_x86_thread_state32_t()
9285 outs() << "\t ss " << format("0x%08" PRIx32, cpu32.ss); in Print_x86_thread_state32_t()
9286 outs() << " eflags " << format("0x%08" PRIx32, cpu32.eflags); in Print_x86_thread_state32_t()
9287 outs() << " eip " << format("0x%08" PRIx32, cpu32.eip); in Print_x86_thread_state32_t()
9288 outs() << " cs " << format("0x%08" PRIx32, cpu32.cs) << "\n"; in Print_x86_thread_state32_t()
9289 outs() << "\t ds " << format("0x%08" PRIx32, cpu32.ds); in Print_x86_thread_state32_t()
9290 outs() << " es " << format("0x%08" PRIx32, cpu32.es); in Print_x86_thread_state32_t()
9291 outs() << " fs " << format("0x%08" PRIx32, cpu32.fs); in Print_x86_thread_state32_t()
9292 outs() << " gs " << format("0x%08" PRIx32, cpu32.gs) << "\n"; in Print_x86_thread_state32_t()
9296 outs() << " rax " << format("0x%016" PRIx64, cpu64.rax); in Print_x86_thread_state64_t()
9297 outs() << " rbx " << format("0x%016" PRIx64, cpu64.rbx); in Print_x86_thread_state64_t()
9298 outs() << " rcx " << format("0x%016" PRIx64, cpu64.rcx) << "\n"; in Print_x86_thread_state64_t()
9299 outs() << " rdx " << format("0x%016" PRIx64, cpu64.rdx); in Print_x86_thread_state64_t()
9300 outs() << " rdi " << format("0x%016" PRIx64, cpu64.rdi); in Print_x86_thread_state64_t()
9301 outs() << " rsi " << format("0x%016" PRIx64, cpu64.rsi) << "\n"; in Print_x86_thread_state64_t()
9302 outs() << " rbp " << format("0x%016" PRIx64, cpu64.rbp); in Print_x86_thread_state64_t()
9303 outs() << " rsp " << format("0x%016" PRIx64, cpu64.rsp); in Print_x86_thread_state64_t()
9304 outs() << " r8 " << format("0x%016" PRIx64, cpu64.r8) << "\n"; in Print_x86_thread_state64_t()
9305 outs() << " r9 " << format("0x%016" PRIx64, cpu64.r9); in Print_x86_thread_state64_t()
9306 outs() << " r10 " << format("0x%016" PRIx64, cpu64.r10); in Print_x86_thread_state64_t()
9307 outs() << " r11 " << format("0x%016" PRIx64, cpu64.r11) << "\n"; in Print_x86_thread_state64_t()
9308 outs() << " r12 " << format("0x%016" PRIx64, cpu64.r12); in Print_x86_thread_state64_t()
9309 outs() << " r13 " << format("0x%016" PRIx64, cpu64.r13); in Print_x86_thread_state64_t()
9310 outs() << " r14 " << format("0x%016" PRIx64, cpu64.r14) << "\n"; in Print_x86_thread_state64_t()
9311 outs() << " r15 " << format("0x%016" PRIx64, cpu64.r15); in Print_x86_thread_state64_t()
9312 outs() << " rip " << format("0x%016" PRIx64, cpu64.rip) << "\n"; in Print_x86_thread_state64_t()
9313 outs() << "rflags " << format("0x%016" PRIx64, cpu64.rflags); in Print_x86_thread_state64_t()
9314 outs() << " cs " << format("0x%016" PRIx64, cpu64.cs); in Print_x86_thread_state64_t()
9315 outs() << " fs " << format("0x%016" PRIx64, cpu64.fs) << "\n"; in Print_x86_thread_state64_t()
9316 outs() << " gs " << format("0x%016" PRIx64, cpu64.gs) << "\n"; in Print_x86_thread_state64_t()
9321 outs() << "\t mmst_reg "; in Print_mmst_reg()
9323 outs() << format("%02" PRIx32, (r.mmst_reg[f] & 0xff)) << " "; in Print_mmst_reg()
9324 outs() << "\n"; in Print_mmst_reg()
9325 outs() << "\t mmst_rsrv "; in Print_mmst_reg()
9327 outs() << format("%02" PRIx32, (r.mmst_rsrv[f] & 0xff)) << " "; in Print_mmst_reg()
9328 outs() << "\n"; in Print_mmst_reg()
9333 outs() << "\t xmm_reg "; in Print_xmm_reg()
9335 outs() << format("%02" PRIx32, (r.xmm_reg[f] & 0xff)) << " "; in Print_xmm_reg()
9336 outs() << "\n"; in Print_xmm_reg()
9340 outs() << "\t fpu_reserved[0] " << fpu.fpu_reserved[0]; in Print_x86_float_state_t()
9341 outs() << " fpu_reserved[1] " << fpu.fpu_reserved[1] << "\n"; in Print_x86_float_state_t()
9342 outs() << "\t control: invalid " << fpu.fpu_fcw.invalid; in Print_x86_float_state_t()
9343 outs() << " denorm " << fpu.fpu_fcw.denorm; in Print_x86_float_state_t()
9344 outs() << " zdiv " << fpu.fpu_fcw.zdiv; in Print_x86_float_state_t()
9345 outs() << " ovrfl " << fpu.fpu_fcw.ovrfl; in Print_x86_float_state_t()
9346 outs() << " undfl " << fpu.fpu_fcw.undfl; in Print_x86_float_state_t()
9347 outs() << " precis " << fpu.fpu_fcw.precis << "\n"; in Print_x86_float_state_t()
9348 outs() << "\t\t pc "; in Print_x86_float_state_t()
9350 outs() << "FP_PREC_24B "; in Print_x86_float_state_t()
9352 outs() << "FP_PREC_53B "; in Print_x86_float_state_t()
9354 outs() << "FP_PREC_64B "; in Print_x86_float_state_t()
9356 outs() << fpu.fpu_fcw.pc << " "; in Print_x86_float_state_t()
9357 outs() << "rc "; in Print_x86_float_state_t()
9359 outs() << "FP_RND_NEAR "; in Print_x86_float_state_t()
9361 outs() << "FP_RND_DOWN "; in Print_x86_float_state_t()
9363 outs() << "FP_RND_UP "; in Print_x86_float_state_t()
9365 outs() << "FP_CHOP "; in Print_x86_float_state_t()
9366 outs() << "\n"; in Print_x86_float_state_t()
9367 outs() << "\t status: invalid " << fpu.fpu_fsw.invalid; in Print_x86_float_state_t()
9368 outs() << " denorm " << fpu.fpu_fsw.denorm; in Print_x86_float_state_t()
9369 outs() << " zdiv " << fpu.fpu_fsw.zdiv; in Print_x86_float_state_t()
9370 outs() << " ovrfl " << fpu.fpu_fsw.ovrfl; in Print_x86_float_state_t()
9371 outs() << " undfl " << fpu.fpu_fsw.undfl; in Print_x86_float_state_t()
9372 outs() << " precis " << fpu.fpu_fsw.precis; in Print_x86_float_state_t()
9373 outs() << " stkflt " << fpu.fpu_fsw.stkflt << "\n"; in Print_x86_float_state_t()
9374 outs() << "\t errsumm " << fpu.fpu_fsw.errsumm; in Print_x86_float_state_t()
9375 outs() << " c0 " << fpu.fpu_fsw.c0; in Print_x86_float_state_t()
9376 outs() << " c1 " << fpu.fpu_fsw.c1; in Print_x86_float_state_t()
9377 outs() << " c2 " << fpu.fpu_fsw.c2; in Print_x86_float_state_t()
9378 outs() << " tos " << fpu.fpu_fsw.tos; in Print_x86_float_state_t()
9379 outs() << " c3 " << fpu.fpu_fsw.c3; in Print_x86_float_state_t()
9380 outs() << " busy " << fpu.fpu_fsw.busy << "\n"; in Print_x86_float_state_t()
9381 outs() << "\t fpu_ftw " << format("0x%02" PRIx32, fpu.fpu_ftw); in Print_x86_float_state_t()
9382 outs() << " fpu_rsrv1 " << format("0x%02" PRIx32, fpu.fpu_rsrv1); in Print_x86_float_state_t()
9383 outs() << " fpu_fop " << format("0x%04" PRIx32, fpu.fpu_fop); in Print_x86_float_state_t()
9384 outs() << " fpu_ip " << format("0x%08" PRIx32, fpu.fpu_ip) << "\n"; in Print_x86_float_state_t()
9385 outs() << "\t fpu_cs " << format("0x%04" PRIx32, fpu.fpu_cs); in Print_x86_float_state_t()
9386 outs() << " fpu_rsrv2 " << format("0x%04" PRIx32, fpu.fpu_rsrv2); in Print_x86_float_state_t()
9387 outs() << " fpu_dp " << format("0x%08" PRIx32, fpu.fpu_dp); in Print_x86_float_state_t()
9388 outs() << " fpu_ds " << format("0x%04" PRIx32, fpu.fpu_ds) << "\n"; in Print_x86_float_state_t()
9389 outs() << "\t fpu_rsrv3 " << format("0x%04" PRIx32, fpu.fpu_rsrv3); in Print_x86_float_state_t()
9390 outs() << " fpu_mxcsr " << format("0x%08" PRIx32, fpu.fpu_mxcsr); in Print_x86_float_state_t()
9391 outs() << " fpu_mxcsrmask " << format("0x%08" PRIx32, fpu.fpu_mxcsrmask); in Print_x86_float_state_t()
9392 outs() << "\n"; in Print_x86_float_state_t()
9393 outs() << "\t fpu_stmm0:\n"; in Print_x86_float_state_t()
9395 outs() << "\t fpu_stmm1:\n"; in Print_x86_float_state_t()
9397 outs() << "\t fpu_stmm2:\n"; in Print_x86_float_state_t()
9399 outs() << "\t fpu_stmm3:\n"; in Print_x86_float_state_t()
9401 outs() << "\t fpu_stmm4:\n"; in Print_x86_float_state_t()
9403 outs() << "\t fpu_stmm5:\n"; in Print_x86_float_state_t()
9405 outs() << "\t fpu_stmm6:\n"; in Print_x86_float_state_t()
9407 outs() << "\t fpu_stmm7:\n"; in Print_x86_float_state_t()
9409 outs() << "\t fpu_xmm0:\n"; in Print_x86_float_state_t()
9411 outs() << "\t fpu_xmm1:\n"; in Print_x86_float_state_t()
9413 outs() << "\t fpu_xmm2:\n"; in Print_x86_float_state_t()
9415 outs() << "\t fpu_xmm3:\n"; in Print_x86_float_state_t()
9417 outs() << "\t fpu_xmm4:\n"; in Print_x86_float_state_t()
9419 outs() << "\t fpu_xmm5:\n"; in Print_x86_float_state_t()
9421 outs() << "\t fpu_xmm6:\n"; in Print_x86_float_state_t()
9423 outs() << "\t fpu_xmm7:\n"; in Print_x86_float_state_t()
9425 outs() << "\t fpu_xmm8:\n"; in Print_x86_float_state_t()
9427 outs() << "\t fpu_xmm9:\n"; in Print_x86_float_state_t()
9429 outs() << "\t fpu_xmm10:\n"; in Print_x86_float_state_t()
9431 outs() << "\t fpu_xmm11:\n"; in Print_x86_float_state_t()
9433 outs() << "\t fpu_xmm12:\n"; in Print_x86_float_state_t()
9435 outs() << "\t fpu_xmm13:\n"; in Print_x86_float_state_t()
9437 outs() << "\t fpu_xmm14:\n"; in Print_x86_float_state_t()
9439 outs() << "\t fpu_xmm15:\n"; in Print_x86_float_state_t()
9441 outs() << "\t fpu_rsrv4:\n"; in Print_x86_float_state_t()
9443 outs() << "\t "; in Print_x86_float_state_t()
9445 outs() << format("%02" PRIx32, fpu.fpu_rsrv4[f * g]) << " "; in Print_x86_float_state_t()
9446 outs() << "\n"; in Print_x86_float_state_t()
9448 outs() << "\t fpu_reserved1 " << format("0x%08" PRIx32, fpu.fpu_reserved1); in Print_x86_float_state_t()
9449 outs() << "\n"; in Print_x86_float_state_t()
9453 outs() << "\t trapno " << format("0x%08" PRIx32, exc64.trapno); in Print_x86_exception_state_t()
9454 outs() << " err " << format("0x%08" PRIx32, exc64.err); in Print_x86_exception_state_t()
9455 outs() << " faultvaddr " << format("0x%016" PRIx64, exc64.faultvaddr) << "\n"; in Print_x86_exception_state_t()
9459 outs() << "\t r0 " << format("0x%08" PRIx32, cpu32.r[0]); in Print_arm_thread_state32_t()
9460 outs() << " r1 " << format("0x%08" PRIx32, cpu32.r[1]); in Print_arm_thread_state32_t()
9461 outs() << " r2 " << format("0x%08" PRIx32, cpu32.r[2]); in Print_arm_thread_state32_t()
9462 outs() << " r3 " << format("0x%08" PRIx32, cpu32.r[3]) << "\n"; in Print_arm_thread_state32_t()
9463 outs() << "\t r4 " << format("0x%08" PRIx32, cpu32.r[4]); in Print_arm_thread_state32_t()
9464 outs() << " r5 " << format("0x%08" PRIx32, cpu32.r[5]); in Print_arm_thread_state32_t()
9465 outs() << " r6 " << format("0x%08" PRIx32, cpu32.r[6]); in Print_arm_thread_state32_t()
9466 outs() << " r7 " << format("0x%08" PRIx32, cpu32.r[7]) << "\n"; in Print_arm_thread_state32_t()
9467 outs() << "\t r8 " << format("0x%08" PRIx32, cpu32.r[8]); in Print_arm_thread_state32_t()
9468 outs() << " r9 " << format("0x%08" PRIx32, cpu32.r[9]); in Print_arm_thread_state32_t()
9469 outs() << " r10 " << format("0x%08" PRIx32, cpu32.r[10]); in Print_arm_thread_state32_t()
9470 outs() << " r11 " << format("0x%08" PRIx32, cpu32.r[11]) << "\n"; in Print_arm_thread_state32_t()
9471 outs() << "\t r12 " << format("0x%08" PRIx32, cpu32.r[12]); in Print_arm_thread_state32_t()
9472 outs() << " sp " << format("0x%08" PRIx32, cpu32.sp); in Print_arm_thread_state32_t()
9473 outs() << " lr " << format("0x%08" PRIx32, cpu32.lr); in Print_arm_thread_state32_t()
9474 outs() << " pc " << format("0x%08" PRIx32, cpu32.pc) << "\n"; in Print_arm_thread_state32_t()
9475 outs() << "\t cpsr " << format("0x%08" PRIx32, cpu32.cpsr) << "\n"; in Print_arm_thread_state32_t()
9479 outs() << "\t x0 " << format("0x%016" PRIx64, cpu64.x[0]); in Print_arm_thread_state64_t()
9480 outs() << " x1 " << format("0x%016" PRIx64, cpu64.x[1]); in Print_arm_thread_state64_t()
9481 outs() << " x2 " << format("0x%016" PRIx64, cpu64.x[2]) << "\n"; in Print_arm_thread_state64_t()
9482 outs() << "\t x3 " << format("0x%016" PRIx64, cpu64.x[3]); in Print_arm_thread_state64_t()
9483 outs() << " x4 " << format("0x%016" PRIx64, cpu64.x[4]); in Print_arm_thread_state64_t()
9484 outs() << " x5 " << format("0x%016" PRIx64, cpu64.x[5]) << "\n"; in Print_arm_thread_state64_t()
9485 outs() << "\t x6 " << format("0x%016" PRIx64, cpu64.x[6]); in Print_arm_thread_state64_t()
9486 outs() << " x7 " << format("0x%016" PRIx64, cpu64.x[7]); in Print_arm_thread_state64_t()
9487 outs() << " x8 " << format("0x%016" PRIx64, cpu64.x[8]) << "\n"; in Print_arm_thread_state64_t()
9488 outs() << "\t x9 " << format("0x%016" PRIx64, cpu64.x[9]); in Print_arm_thread_state64_t()
9489 outs() << " x10 " << format("0x%016" PRIx64, cpu64.x[10]); in Print_arm_thread_state64_t()
9490 outs() << " x11 " << format("0x%016" PRIx64, cpu64.x[11]) << "\n"; in Print_arm_thread_state64_t()
9491 outs() << "\t x12 " << format("0x%016" PRIx64, cpu64.x[12]); in Print_arm_thread_state64_t()
9492 outs() << " x13 " << format("0x%016" PRIx64, cpu64.x[13]); in Print_arm_thread_state64_t()
9493 outs() << " x14 " << format("0x%016" PRIx64, cpu64.x[14]) << "\n"; in Print_arm_thread_state64_t()
9494 outs() << "\t x15 " << format("0x%016" PRIx64, cpu64.x[15]); in Print_arm_thread_state64_t()
9495 outs() << " x16 " << format("0x%016" PRIx64, cpu64.x[16]); in Print_arm_thread_state64_t()
9496 outs() << " x17 " << format("0x%016" PRIx64, cpu64.x[17]) << "\n"; in Print_arm_thread_state64_t()
9497 outs() << "\t x18 " << format("0x%016" PRIx64, cpu64.x[18]); in Print_arm_thread_state64_t()
9498 outs() << " x19 " << format("0x%016" PRIx64, cpu64.x[19]); in Print_arm_thread_state64_t()
9499 outs() << " x20 " << format("0x%016" PRIx64, cpu64.x[20]) << "\n"; in Print_arm_thread_state64_t()
9500 outs() << "\t x21 " << format("0x%016" PRIx64, cpu64.x[21]); in Print_arm_thread_state64_t()
9501 outs() << " x22 " << format("0x%016" PRIx64, cpu64.x[22]); in Print_arm_thread_state64_t()
9502 outs() << " x23 " << format("0x%016" PRIx64, cpu64.x[23]) << "\n"; in Print_arm_thread_state64_t()
9503 outs() << "\t x24 " << format("0x%016" PRIx64, cpu64.x[24]); in Print_arm_thread_state64_t()
9504 outs() << " x25 " << format("0x%016" PRIx64, cpu64.x[25]); in Print_arm_thread_state64_t()
9505 outs() << " x26 " << format("0x%016" PRIx64, cpu64.x[26]) << "\n"; in Print_arm_thread_state64_t()
9506 outs() << "\t x27 " << format("0x%016" PRIx64, cpu64.x[27]); in Print_arm_thread_state64_t()
9507 outs() << " x28 " << format("0x%016" PRIx64, cpu64.x[28]); in Print_arm_thread_state64_t()
9508 outs() << " fp " << format("0x%016" PRIx64, cpu64.fp) << "\n"; in Print_arm_thread_state64_t()
9509 outs() << "\t lr " << format("0x%016" PRIx64, cpu64.lr); in Print_arm_thread_state64_t()
9510 outs() << " sp " << format("0x%016" PRIx64, cpu64.sp); in Print_arm_thread_state64_t()
9511 outs() << " pc " << format("0x%016" PRIx64, cpu64.pc) << "\n"; in Print_arm_thread_state64_t()
9512 outs() << "\t cpsr " << format("0x%08" PRIx32, cpu64.cpsr) << "\n"; in Print_arm_thread_state64_t()
9518 outs() << " cmd LC_THREAD\n"; in PrintThreadCommand()
9520 outs() << " cmd LC_UNIXTHREAD\n"; in PrintThreadCommand()
9522 outs() << " cmd " << t.cmd << " (unknown)\n"; in PrintThreadCommand()
9523 outs() << " cmdsize " << t.cmdsize; in PrintThreadCommand()
9525 outs() << " Incorrect size\n"; in PrintThreadCommand()
9527 outs() << "\n"; in PrintThreadCommand()
9553 outs() << " flavor i386_THREAD_STATE\n"; in PrintThreadCommand()
9555 outs() << " count i386_THREAD_STATE_COUNT\n"; in PrintThreadCommand()
9557 outs() << " count " << count in PrintThreadCommand()
9573 outs() << " flavor x86_THREAD_STATE\n"; in PrintThreadCommand()
9575 outs() << " count x86_THREAD_STATE_COUNT\n"; in PrintThreadCommand()
9577 outs() << " count " << count in PrintThreadCommand()
9592 outs() << "\t tsh.flavor x86_THREAD_STATE32 "; in PrintThreadCommand()
9594 outs() << "tsh.count x86_THREAD_STATE32_COUNT\n"; in PrintThreadCommand()
9596 outs() << "tsh.count " << ts.tsh.count in PrintThreadCommand()
9600 outs() << "\t tsh.flavor " << ts.tsh.flavor << " tsh.count " in PrintThreadCommand()
9604 outs() << " flavor " << flavor << " (unknown)\n"; in PrintThreadCommand()
9605 outs() << " count " << count << "\n"; in PrintThreadCommand()
9606 outs() << " state (unknown)\n"; in PrintThreadCommand()
9631 outs() << " flavor x86_THREAD_STATE64\n"; in PrintThreadCommand()
9633 outs() << " count x86_THREAD_STATE64_COUNT\n"; in PrintThreadCommand()
9635 outs() << " count " << count in PrintThreadCommand()
9651 outs() << " flavor x86_THREAD_STATE\n"; in PrintThreadCommand()
9653 outs() << " count x86_THREAD_STATE_COUNT\n"; in PrintThreadCommand()
9655 outs() << " count " << count in PrintThreadCommand()
9670 outs() << "\t tsh.flavor x86_THREAD_STATE64 "; in PrintThreadCommand()
9672 outs() << "tsh.count x86_THREAD_STATE64_COUNT\n"; in PrintThreadCommand()
9674 outs() << "tsh.count " << ts.tsh.count in PrintThreadCommand()
9678 outs() << "\t tsh.flavor " << ts.tsh.flavor << " tsh.count " in PrintThreadCommand()
9682 outs() << " flavor x86_FLOAT_STATE\n"; in PrintThreadCommand()
9684 outs() << " count x86_FLOAT_STATE_COUNT\n"; in PrintThreadCommand()
9686 outs() << " count " << count << " (not x86_FLOAT_STATE_COUNT)\n"; in PrintThreadCommand()
9700 outs() << "\t fsh.flavor x86_FLOAT_STATE64 "; in PrintThreadCommand()
9702 outs() << "fsh.count x86_FLOAT_STATE64_COUNT\n"; in PrintThreadCommand()
9704 outs() << "fsh.count " << fs.fsh.count in PrintThreadCommand()
9708 outs() << "\t fsh.flavor " << fs.fsh.flavor << " fsh.count " in PrintThreadCommand()
9712 outs() << " flavor x86_EXCEPTION_STATE\n"; in PrintThreadCommand()
9714 outs() << " count x86_EXCEPTION_STATE_COUNT\n"; in PrintThreadCommand()
9716 outs() << " count " << count in PrintThreadCommand()
9731 outs() << "\t esh.flavor x86_EXCEPTION_STATE64\n"; in PrintThreadCommand()
9733 outs() << "\t esh.count x86_EXCEPTION_STATE64_COUNT\n"; in PrintThreadCommand()
9735 outs() << "\t esh.count " << es.esh.count in PrintThreadCommand()
9739 outs() << "\t esh.flavor " << es.esh.flavor << " esh.count " in PrintThreadCommand()
9743 outs() << " flavor x86_EXCEPTION_STATE64\n"; in PrintThreadCommand()
9745 outs() << " count x86_EXCEPTION_STATE64_COUNT\n"; in PrintThreadCommand()
9747 outs() << " count " << count in PrintThreadCommand()
9763 outs() << " flavor " << flavor << " (unknown)\n"; in PrintThreadCommand()
9764 outs() << " count " << count << "\n"; in PrintThreadCommand()
9765 outs() << " state (unknown)\n"; in PrintThreadCommand()
9790 outs() << " flavor ARM_THREAD_STATE\n"; in PrintThreadCommand()
9792 outs() << " count ARM_THREAD_STATE_COUNT\n"; in PrintThreadCommand()
9794 outs() << " count " << count in PrintThreadCommand()
9810 outs() << " flavor " << flavor << " (unknown)\n"; in PrintThreadCommand()
9811 outs() << " count " << count << "\n"; in PrintThreadCommand()
9812 outs() << " state (unknown)\n"; in PrintThreadCommand()
9838 outs() << " flavor ARM_THREAD_STATE64\n"; in PrintThreadCommand()
9840 outs() << " count ARM_THREAD_STATE64_COUNT\n"; in PrintThreadCommand()
9842 outs() << " count " << count in PrintThreadCommand()
9858 outs() << " flavor " << flavor << " (unknown)\n"; in PrintThreadCommand()
9859 outs() << " count " << count << "\n"; in PrintThreadCommand()
9860 outs() << " state (unknown)\n"; in PrintThreadCommand()
9884 outs() << " flavor " << flavor << "\n"; in PrintThreadCommand()
9885 outs() << " count " << count << "\n"; in PrintThreadCommand()
9886 outs() << " state (Unknown cputype/cpusubtype)\n"; in PrintThreadCommand()
9894 outs() << " cmd LC_ID_DYLIB\n"; in PrintDylibCommand()
9896 outs() << " cmd LC_LOAD_DYLIB\n"; in PrintDylibCommand()
9898 outs() << " cmd LC_LOAD_WEAK_DYLIB\n"; in PrintDylibCommand()
9900 outs() << " cmd LC_REEXPORT_DYLIB\n"; in PrintDylibCommand()
9902 outs() << " cmd LC_LAZY_LOAD_DYLIB\n"; in PrintDylibCommand()
9904 outs() << " cmd LC_LOAD_UPWARD_DYLIB\n"; in PrintDylibCommand()
9906 outs() << " cmd " << dl.cmd << " (unknown)\n"; in PrintDylibCommand()
9907 outs() << " cmdsize " << dl.cmdsize; in PrintDylibCommand()
9909 outs() << " Incorrect size\n"; in PrintDylibCommand()
9911 outs() << "\n"; in PrintDylibCommand()
9914 outs() << " name " << P << " (offset " << dl.dylib.name << ")\n"; in PrintDylibCommand()
9916 outs() << " name ?(bad offset " << dl.dylib.name << ")\n"; in PrintDylibCommand()
9918 outs() << " time stamp " << dl.dylib.timestamp << " "; in PrintDylibCommand()
9920 outs() << ctime(&t); in PrintDylibCommand()
9921 outs() << " current version "; in PrintDylibCommand()
9923 outs() << "n/a\n"; in PrintDylibCommand()
9925 outs() << ((dl.dylib.current_version >> 16) & 0xffff) << "." in PrintDylibCommand()
9928 outs() << "compatibility version "; in PrintDylibCommand()
9930 outs() << "n/a\n"; in PrintDylibCommand()
9932 outs() << ((dl.dylib.compatibility_version >> 16) & 0xffff) << "." in PrintDylibCommand()
9940 outs() << " cmd LC_CODE_SIGNATURE\n"; in PrintLinkEditDataCommand()
9942 outs() << " cmd LC_SEGMENT_SPLIT_INFO\n"; in PrintLinkEditDataCommand()
9944 outs() << " cmd LC_FUNCTION_STARTS\n"; in PrintLinkEditDataCommand()
9946 outs() << " cmd LC_DATA_IN_CODE\n"; in PrintLinkEditDataCommand()
9948 outs() << " cmd LC_DYLIB_CODE_SIGN_DRS\n"; in PrintLinkEditDataCommand()
9950 outs() << " cmd LC_LINKER_OPTIMIZATION_HINT\n"; in PrintLinkEditDataCommand()
9952 outs() << " cmd LC_DYLD_EXPORTS_TRIE\n"; in PrintLinkEditDataCommand()
9954 outs() << " cmd LC_DYLD_CHAINED_FIXUPS\n"; in PrintLinkEditDataCommand()
9956 outs() << " cmd LC_ATOM_INFO\n"; in PrintLinkEditDataCommand()
9958 outs() << " cmd " << ld.cmd << " (?)\n"; in PrintLinkEditDataCommand()
9959 outs() << " cmdsize " << ld.cmdsize; in PrintLinkEditDataCommand()
9961 outs() << " Incorrect size\n"; in PrintLinkEditDataCommand()
9963 outs() << "\n"; in PrintLinkEditDataCommand()
9964 outs() << " dataoff " << ld.dataoff; in PrintLinkEditDataCommand()
9966 outs() << " (past end of file)\n"; in PrintLinkEditDataCommand()
9968 outs() << "\n"; in PrintLinkEditDataCommand()
9969 outs() << " datasize " << ld.datasize; in PrintLinkEditDataCommand()
9973 outs() << " (past end of file)\n"; in PrintLinkEditDataCommand()
9975 outs() << "\n"; in PrintLinkEditDataCommand()
9983 outs() << "Load command " << Index++ << "\n"; in PrintLoadCommands()
10108 outs() << " cmd ?(" << format("0x%08" PRIx32, Command.C.cmd) in PrintLoadCommands()
10110 outs() << " cmdsize " << Command.C.cmdsize << "\n"; in PrintLoadCommands()
10192 outs() << "[re-export] "; in printMachOExportsTrie()
10194 outs() << format("0x%08llX ", in printMachOExportsTrie()
10196 outs() << Entry.name(); in printMachOExportsTrie()
10199 outs() << " ["; in printMachOExportsTrie()
10201 outs() << LS << "weak_def"; in printMachOExportsTrie()
10203 outs() << LS << "per-thread"; in printMachOExportsTrie()
10205 outs() << LS << "absolute"; in printMachOExportsTrie()
10207 outs() << LS << format("resolver=0x%08llX", Entry.other()); in printMachOExportsTrie()
10208 outs() << "]"; in printMachOExportsTrie()
10215 outs() << " (from " << DylibName << ")"; in printMachOExportsTrie()
10217 outs() << " (" << Entry.otherName() << " from " << DylibName << ")"; in printMachOExportsTrie()
10219 outs() << "\n"; in printMachOExportsTrie()
10230 outs() << "segment section address type\n"; in printMachORebaseTable()
10238 outs() << format("%-8s %-18s 0x%08" PRIX64 " %s\n", in printMachORebaseTable()
10275 outs() << "segment section address type " in printMachOBindTable()
10288 outs() << left_justify(SegmentName, 8) << " " in printMachOBindTable()
10305 outs() << "segment section address " in printMachOLazyBindTable()
10315 outs() << left_justify(SegmentName, 8) << " " in printMachOLazyBindTable()
10330 outs() << "segment section address " in printMachOWeakBindTable()
10336 outs() << " strong " in printMachOWeakBindTable()
10346 outs() << left_justify(SegmentName, 8) << " " in printMachOWeakBindTable()
10380 outs() << "\nLazy bind table:\n"; in printLazyBindTable()
10390 outs() << "\nWeak bind table:\n"; in printWeakBindTable()
10400 outs() << "\nExports trie:\n"; in printExportsTrie()
10410 outs() << "\nRebase table:\n"; in printRebaseTable()
10420 outs() << "\nBind table:\n"; in printBindTable()