Lines Matching refs:outs

245         dumpBytes(makeArrayRef(bytes, 4), outs());  in DumpDataInCode()
247 outs() << "\t.long " << Value; in DumpDataInCode()
251 dumpBytes(makeArrayRef(bytes, 2), outs()); in DumpDataInCode()
253 outs() << "\t.short " << Value; in DumpDataInCode()
257 dumpBytes(makeArrayRef(bytes, 2), outs()); in DumpDataInCode()
259 outs() << "\t.byte " << Value; in DumpDataInCode()
263 outs() << "\t@ KIND_DATA\n"; in DumpDataInCode()
265 outs() << "\t@ data in code kind = " << Kind << "\n"; in DumpDataInCode()
269 dumpBytes(makeArrayRef(bytes, 1), outs()); in DumpDataInCode()
271 outs() << "\t.byte " << format("%3u", Value) << "\t@ KIND_JUMP_TABLE8\n"; in DumpDataInCode()
276 dumpBytes(makeArrayRef(bytes, 2), outs()); in DumpDataInCode()
278 outs() << "\t.short " << format("%5u", Value & 0xffff) in DumpDataInCode()
285 dumpBytes(makeArrayRef(bytes, 4), outs()); in DumpDataInCode()
287 outs() << "\t.long " << Value; in DumpDataInCode()
289 outs() << "\t@ KIND_JUMP_TABLE32\n"; in DumpDataInCode()
291 outs() << "\t@ KIND_ABS_JUMP_TABLE32\n"; in DumpDataInCode()
619 outs() << " (entries start past the end of the indirect symbol " in PrintIndirectSymbolTable()
622 outs() << " (entries extends past the end of the indirect symbol " in PrintIndirectSymbolTable()
624 outs() << "\n"; in PrintIndirectSymbolTable()
627 outs() << "address index"; in PrintIndirectSymbolTable()
629 outs() << "address index"; in PrintIndirectSymbolTable()
631 outs() << " name\n"; in PrintIndirectSymbolTable()
633 outs() << "\n"; in PrintIndirectSymbolTable()
636 outs() << format("0x%016" PRIx64, addr + j * stride) << " "; in PrintIndirectSymbolTable()
638 outs() << format("0x%08" PRIx32, (uint32_t)addr + j * stride) << " "; in PrintIndirectSymbolTable()
642 outs() << "LOCAL\n"; in PrintIndirectSymbolTable()
647 outs() << "LOCAL ABSOLUTE\n"; in PrintIndirectSymbolTable()
651 outs() << "ABSOLUTE\n"; in PrintIndirectSymbolTable()
654 outs() << format("%5u ", indirect_symbol); in PrintIndirectSymbolTable()
660 outs() << unwrapOrError(Symbol.getName(), O->getFileName()); in PrintIndirectSymbolTable()
662 outs() << "?"; in PrintIndirectSymbolTable()
665 outs() << "\n"; in PrintIndirectSymbolTable()
687 outs() << "Can't print indirect symbols for (" << Sec.segname << "," in PrintIndirectSymbols()
693 outs() << "Indirect symbols for (" << Sec.segname << "," in PrintIndirectSymbols()
715 outs() << "Can't print indirect symbols for (" << Sec.segname << "," in PrintIndirectSymbols()
721 outs() << "Indirect symbols for (" << Sec.segname << "," in PrintIndirectSymbols()
754 outs() << format("%-7u", r_type) << " "; in PrintRType()
759 outs() << generic_r_types[r_type]; in PrintRType()
762 outs() << x86_64_r_types[r_type]; in PrintRType()
765 outs() << arm_r_types[r_type]; in PrintRType()
769 outs() << arm64_r_types[r_type]; in PrintRType()
772 outs() << format("%-7u ", r_type); in PrintRType()
782 outs() << "lo/"; in PrintRLength()
784 outs() << "hi/"; in PrintRLength()
786 outs() << "arm "; in PrintRLength()
788 outs() << "thm "; in PrintRLength()
792 outs() << "byte "; in PrintRLength()
795 outs() << "word "; in PrintRLength()
798 outs() << "long "; in PrintRLength()
802 outs() << "quad "; in PrintRLength()
804 outs() << format("?(%2d) ", r_length); in PrintRLength()
807 outs() << format("?(%2d) ", r_length); in PrintRLength()
843 outs() << " "; in PrintRelocationEntries()
845 outs() << format("%08x ", (unsigned int)r_address); in PrintRelocationEntries()
849 outs() << "True "; in PrintRelocationEntries()
851 outs() << "False "; in PrintRelocationEntries()
857 outs() << "n/a "; in PrintRelocationEntries()
861 outs() << format("True 0x%08x", (unsigned int)r_value); in PrintRelocationEntries()
865 outs() << format(" half = 0x%04x ", (unsigned int)r_address); in PrintRelocationEntries()
868 outs() << format(" other_half = 0x%04x ", (unsigned int)r_address); in PrintRelocationEntries()
888 outs() << "\n"; in PrintRelocationEntries()
892 outs() << format("%08x %1d %-2d n/a %-7d 1 0x%08x\n", in PrintRelocationEntries()
901 outs() << " "; in PrintRelocationEntries()
903 outs() << format("%08x ", (unsigned int)r_address); in PrintRelocationEntries()
907 outs() << "True "; in PrintRelocationEntries()
909 outs() << "False "; in PrintRelocationEntries()
916 outs() << "True "; in PrintRelocationEntries()
918 outs() << "False "; in PrintRelocationEntries()
922 outs() << format("?(%d)\n", r_symbolnum); in PrintRelocationEntries()
930 outs() << format("?(%d)\n", r_symbolnum); in PrintRelocationEntries()
932 outs() << name << "\n"; in PrintRelocationEntries()
937 outs() << "False "; in PrintRelocationEntries()
939 outs() << "False "; in PrintRelocationEntries()
943 outs() << format("other_half = 0x%04x\n", (unsigned int)r_address); in PrintRelocationEntries()
947 outs() << format("addend = 0x%06x\n", (unsigned int)r_symbolnum); in PrintRelocationEntries()
949 outs() << format("%d ", r_symbolnum); in PrintRelocationEntries()
951 outs() << "R_ABS\n"; in PrintRelocationEntries()
960 outs() << "(" << SegName << "," << *NameOrErr << ")\n"; in PrintRelocationEntries()
962 outs() << "(?,?)\n"; in PrintRelocationEntries()
965 outs() << "(?,?)\n"; in PrintRelocationEntries()
979 outs() << format("%08x %1d %-2d %1d %-7d 0 %d\n", in PrintRelocationEntries()
991 outs() << "External relocation information " << Dysymtab.nextrel in PrintRelocations()
993 outs() << "\naddress pcrel length extern type scattered " in PrintRelocations()
999 outs() << format("Local relocation information %u entries", in PrintRelocations()
1001 outs() << "\naddress pcrel length extern type scattered " in PrintRelocations()
1016 outs() << "Relocation information (" << SegName << "," << *NameOrErr in PrintRelocations()
1019 outs() << "Relocation information (" << SegName << ",?) " in PrintRelocations()
1021 outs() << "\naddress pcrel length extern type scattered " in PrintRelocations()
1036 outs() << "Relocation information (" << SegName << "," << *NameOrErr in PrintRelocations()
1039 outs() << "Relocation information (" << SegName << ",?) " in PrintRelocations()
1041 outs() << "\naddress pcrel length extern type scattered " in PrintRelocations()
1082 outs() << format("%016" PRIx64, Addr) << "\n"; in PrintFunctionStarts()
1084 outs() << format("%08" PRIx32, static_cast<uint32_t>(Addr)) << "\n"; in PrintFunctionStarts()
1091 outs() << "Data in code table (" << nentries << " entries)\n"; in PrintDataInCodeTable()
1092 outs() << "offset length kind\n"; in PrintDataInCodeTable()
1097 outs() << format("0x%08" PRIx32, Offset) << " "; in PrintDataInCodeTable()
1100 outs() << format("%6u", Length) << " "; in PrintDataInCodeTable()
1106 outs() << "DATA"; in PrintDataInCodeTable()
1109 outs() << "JUMP_TABLE8"; in PrintDataInCodeTable()
1112 outs() << "JUMP_TABLE16"; in PrintDataInCodeTable()
1115 outs() << "JUMP_TABLE32"; in PrintDataInCodeTable()
1118 outs() << "ABS_JUMP_TABLE32"; in PrintDataInCodeTable()
1121 outs() << format("0x%04" PRIx32, Kind); in PrintDataInCodeTable()
1125 outs() << format("0x%04" PRIx32, Kind); in PrintDataInCodeTable()
1126 outs() << "\n"; in PrintDataInCodeTable()
1134 outs() << "Linker optimiztion hints (" << nloh << " total bytes)\n"; in PrintLinkOptHints()
1139 outs() << " identifier " << identifier << " "; in PrintLinkOptHints()
1144 outs() << "AdrpAdrp\n"; in PrintLinkOptHints()
1147 outs() << "AdrpLdr\n"; in PrintLinkOptHints()
1150 outs() << "AdrpAddLdr\n"; in PrintLinkOptHints()
1153 outs() << "AdrpLdrGotLdr\n"; in PrintLinkOptHints()
1156 outs() << "AdrpAddStr\n"; in PrintLinkOptHints()
1159 outs() << "AdrpLdrGotStr\n"; in PrintLinkOptHints()
1162 outs() << "AdrpAdd\n"; in PrintLinkOptHints()
1165 outs() << "AdrpLdrGot\n"; in PrintLinkOptHints()
1168 outs() << "Unknown identifier value\n"; in PrintLinkOptHints()
1173 outs() << " narguments " << narguments << "\n"; in PrintLinkOptHints()
1180 outs() << "\tvalue " << format("0x%" PRIx64, value) << "\n"; in PrintLinkOptHints()
1197 outs() << "dyld information:" << '\n'; in PrintDyldInfo()
1215 outs() << p << "\n"; in PrintDylibs()
1217 outs() << "\t" << p; in PrintDylibs()
1218 outs() << " (compatibility version " in PrintDylibs()
1222 outs() << " current version " in PrintDylibs()
1227 outs() << ", weak"; in PrintDylibs()
1229 outs() << ", reexport"; in PrintDylibs()
1231 outs() << ", upward"; in PrintDylibs()
1233 outs() << ", lazy"; in PrintDylibs()
1234 outs() << ")\n"; in PrintDylibs()
1237 outs() << "\tBad offset (" << dl.dylib.name << ") for name of "; in PrintDylibs()
1239 outs() << "LC_ID_DYLIB "; in PrintDylibs()
1241 outs() << "LC_LOAD_DYLIB "; in PrintDylibs()
1243 outs() << "LC_LOAD_WEAK_DYLIB "; in PrintDylibs()
1245 outs() << "LC_LAZY_LOAD_DYLIB "; in PrintDylibs()
1247 outs() << "LC_REEXPORT_DYLIB "; in PrintDylibs()
1249 outs() << "LC_LOAD_UPWARD_DYLIB "; in PrintDylibs()
1251 outs() << "LC_??? "; in PrintDylibs()
1252 outs() << "command " << Index++ << "\n"; in PrintDylibs()
1263 outs() << P << "\n"; in printRpaths()
1304 outs().write_escaped(p); in DumpCstringChar()
1313 outs() << format("%016" PRIx64, sect_addr + i) << " "; in DumpCstringSection()
1315 outs() << format("%08" PRIx64, sect_addr + i) << " "; in DumpCstringSection()
1320 outs() << "\n"; in DumpCstringSection()
1325 outs() << format("0x%08" PRIx32, l); in DumpLiteral4()
1327 outs() << format(" (%.16e)\n", f); in DumpLiteral4()
1330 outs() << " (+Infinity)\n"; in DumpLiteral4()
1332 outs() << " (-Infinity)\n"; in DumpLiteral4()
1334 outs() << " (non-signaling Not-a-Number)\n"; in DumpLiteral4()
1336 outs() << " (signaling Not-a-Number)\n"; in DumpLiteral4()
1346 outs() << format("%016" PRIx64, sect_addr + i) << " "; in DumpLiteral4Section()
1348 outs() << format("%08" PRIx64, sect_addr + i) << " "; in DumpLiteral4Section()
1364 outs() << format("0x%08" PRIx32, l0) << " " << format("0x%08" PRIx32, l1); in DumpLiteral8()
1371 outs() << format(" (%.16e)\n", d); in DumpLiteral8()
1374 outs() << " (+Infinity)\n"; in DumpLiteral8()
1376 outs() << " (-Infinity)\n"; in DumpLiteral8()
1378 outs() << " (non-signaling Not-a-Number)\n"; in DumpLiteral8()
1380 outs() << " (signaling Not-a-Number)\n"; in DumpLiteral8()
1390 outs() << format("%016" PRIx64, sect_addr + i) << " "; in DumpLiteral8Section()
1392 outs() << format("%08" PRIx64, sect_addr + i) << " "; in DumpLiteral8Section()
1410 outs() << format("0x%08" PRIx32, l0) << " "; in DumpLiteral16()
1411 outs() << format("0x%08" PRIx32, l1) << " "; in DumpLiteral16()
1412 outs() << format("0x%08" PRIx32, l2) << " "; in DumpLiteral16()
1413 outs() << format("0x%08" PRIx32, l3) << "\n"; in DumpLiteral16()
1422 outs() << format("%016" PRIx64, sect_addr + i) << " "; in DumpLiteral16Section()
1424 outs() << format("%08" PRIx64, sect_addr + i) << " "; in DumpLiteral16Section()
1489 outs() << format("%016" PRIx64, sect_addr + i) << " "; in DumpLiteralPointerSection()
1491 outs() << format("%08" PRIx64, sect_addr + i) << " "; in DumpLiteralPointerSection()
1513 outs() << "external relocation entry for symbol:" << SymName << "\n"; in DumpLiteralPointerSection()
1522 outs() << format("0x%" PRIx64, lp) << " (not in a literal section)\n"; in DumpLiteralPointerSection()
1538 outs() << SegmentName << ":" << SectName << ":"; in DumpLiteralPointerSection()
1559 outs() << "\n"; in DumpLiteralPointerSection()
1639 outs() << format("0x%016" PRIx64, sect_addr + i * stride) << " "; in DumpInitTermPointerSection()
1644 outs() << format("0x%016" PRIx64, pointer_value); in DumpInitTermPointerSection()
1647 outs() << format("0x%08" PRIx64, sect_addr + i * stride) << " "; in DumpInitTermPointerSection()
1652 outs() << format("0x%08" PRIx32, pointer_value); in DumpInitTermPointerSection()
1662 outs() << " " << unwrapOrError(RelocSym->getName(), O->getFileName()); in DumpInitTermPointerSection()
1666 outs() << " " << SymbolName; in DumpInitTermPointerSection()
1669 outs() << "\n"; in DumpInitTermPointerSection()
1680 outs() << format("%016" PRIx64, addr) << "\t"; in DumpRawSectionContents()
1682 outs() << format("%08" PRIx64, addr) << "\t"; in DumpRawSectionContents()
1685 outs() << format("%02" PRIx32, (uint32_t)byte_word) << " "; in DumpRawSectionContents()
1687 outs() << "\n"; in DumpRawSectionContents()
1693 outs() << format("%016" PRIx64, addr) << "\t"; in DumpRawSectionContents()
1695 outs() << format("%08" PRIx64, addr) << "\t"; in DumpRawSectionContents()
1703 outs() << format("%08" PRIx32, long_word) << " "; in DumpRawSectionContents()
1707 outs() << format("%02" PRIx32, (uint32_t)byte_word) << " "; in DumpRawSectionContents()
1711 outs() << "\n"; in DumpRawSectionContents()
1779 outs() << "Contents of (" << SegName << "," << SectName in DumpSectionContents()
1789 outs() << sect; in DumpSectionContents()
1808 outs() << "zerofill section and has no contents in the file\n"; in DumpSectionContents()
1832 outs() << "Unknown section type (" in DumpSectionContents()
1839 outs() << "zerofill section and has no contents in the file\n"; in DumpSectionContents()
1862 outs() << "Contents of (" << SegName << "," << SectName << ") section\n"; in DumpInfoPlistSectionContents()
1866 outs() << format("%.*s", BytesStr.size(), sect) << "\n"; in DumpInfoPlistSectionContents()
1922 outs() << Name; in ProcessMachO()
1924 outs() << '(' << ArchiveMemberName << ')'; in ProcessMachO()
1926 outs() << " (architecture " << ArchitectureName << ")"; in ProcessMachO()
1927 outs() << ":\n"; in ProcessMachO()
2025 DICtx->dump(outs(), DumpOpts); in ProcessMachO()
2031 outs() << " cputype (" << cputype << ")\n"; in printUnknownCPUType()
2032 outs() << " cpusubtype (" << cpusubtype << ")\n"; in printUnknownCPUType()
2042 outs() << " cputype CPU_TYPE_I386\n"; in printCPUType()
2043 outs() << " cpusubtype CPU_SUBTYPE_I386_ALL\n"; in printCPUType()
2053 outs() << " cputype CPU_TYPE_X86_64\n"; in printCPUType()
2054 outs() << " cpusubtype CPU_SUBTYPE_X86_64_ALL\n"; in printCPUType()
2057 outs() << " cputype CPU_TYPE_X86_64\n"; in printCPUType()
2058 outs() << " cpusubtype CPU_SUBTYPE_X86_64_H\n"; in printCPUType()
2068 outs() << " cputype CPU_TYPE_ARM\n"; in printCPUType()
2069 outs() << " cpusubtype CPU_SUBTYPE_ARM_ALL\n"; in printCPUType()
2072 outs() << " cputype CPU_TYPE_ARM\n"; in printCPUType()
2073 outs() << " cpusubtype CPU_SUBTYPE_ARM_V4T\n"; in printCPUType()
2076 outs() << " cputype CPU_TYPE_ARM\n"; in printCPUType()
2077 outs() << " cpusubtype CPU_SUBTYPE_ARM_V5TEJ\n"; in printCPUType()
2080 outs() << " cputype CPU_TYPE_ARM\n"; in printCPUType()
2081 outs() << " cpusubtype CPU_SUBTYPE_ARM_XSCALE\n"; in printCPUType()
2084 outs() << " cputype CPU_TYPE_ARM\n"; in printCPUType()
2085 outs() << " cpusubtype CPU_SUBTYPE_ARM_V6\n"; in printCPUType()
2088 outs() << " cputype CPU_TYPE_ARM\n"; in printCPUType()
2089 outs() << " cpusubtype CPU_SUBTYPE_ARM_V6M\n"; in printCPUType()
2092 outs() << " cputype CPU_TYPE_ARM\n"; in printCPUType()
2093 outs() << " cpusubtype CPU_SUBTYPE_ARM_V7\n"; in printCPUType()
2096 outs() << " cputype CPU_TYPE_ARM\n"; in printCPUType()
2097 outs() << " cpusubtype CPU_SUBTYPE_ARM_V7EM\n"; in printCPUType()
2100 outs() << " cputype CPU_TYPE_ARM\n"; in printCPUType()
2101 outs() << " cpusubtype CPU_SUBTYPE_ARM_V7K\n"; in printCPUType()
2104 outs() << " cputype CPU_TYPE_ARM\n"; in printCPUType()
2105 outs() << " cpusubtype CPU_SUBTYPE_ARM_V7M\n"; in printCPUType()
2108 outs() << " cputype CPU_TYPE_ARM\n"; in printCPUType()
2109 outs() << " cpusubtype CPU_SUBTYPE_ARM_V7S\n"; in printCPUType()
2119 outs() << " cputype CPU_TYPE_ARM64\n"; in printCPUType()
2120 outs() << " cpusubtype CPU_SUBTYPE_ARM64_ALL\n"; in printCPUType()
2123 outs() << " cputype CPU_TYPE_ARM64\n"; in printCPUType()
2124 outs() << " cpusubtype CPU_SUBTYPE_ARM64_V8\n"; in printCPUType()
2127 outs() << " cputype CPU_TYPE_ARM64\n"; in printCPUType()
2128 outs() << " cpusubtype CPU_SUBTYPE_ARM64E\n"; in printCPUType()
2138 outs() << " cputype CPU_TYPE_ARM64_32\n"; in printCPUType()
2139 outs() << " cpusubtype CPU_SUBTYPE_ARM64_32_V8\n"; in printCPUType()
2154 outs() << "Fat headers\n"; in printMachOUniversalHeaders()
2157 outs() << "fat_magic FAT_MAGIC\n"; in printMachOUniversalHeaders()
2159 outs() << "fat_magic FAT_MAGIC_64\n"; in printMachOUniversalHeaders()
2161 outs() << "fat_magic " << format("0x%" PRIx32, MachO::FAT_MAGIC) << "\n"; in printMachOUniversalHeaders()
2168 outs() << "nfat_arch " << UB->getNumberOfObjects(); in printMachOUniversalHeaders()
2170 outs() << " (malformed, contains zero architecture types)\n"; in printMachOUniversalHeaders()
2172 outs() << " (malformed, architectures past end of file)\n"; in printMachOUniversalHeaders()
2174 outs() << "\n"; in printMachOUniversalHeaders()
2180 outs() << "architecture "; in printMachOUniversalHeaders()
2188 outs() << "(illegal duplicate architecture) "; in printMachOUniversalHeaders()
2193 outs() << OFA.getArchFlagName() << "\n"; in printMachOUniversalHeaders()
2196 outs() << i << "\n"; in printMachOUniversalHeaders()
2197 outs() << " cputype " << cputype << "\n"; in printMachOUniversalHeaders()
2198 outs() << " cpusubtype " << (cpusubtype & ~MachO::CPU_SUBTYPE_MASK) in printMachOUniversalHeaders()
2203 outs() << " capabilities CPU_SUBTYPE_LIB64\n"; in printMachOUniversalHeaders()
2205 outs() << " capabilities " in printMachOUniversalHeaders()
2208 outs() << " offset " << OFA.getOffset(); in printMachOUniversalHeaders()
2210 outs() << " (past end of file)"; in printMachOUniversalHeaders()
2212 outs() << " (not aligned on it's alignment (2^" << OFA.getAlign() << ")"; in printMachOUniversalHeaders()
2213 outs() << "\n"; in printMachOUniversalHeaders()
2214 outs() << " size " << OFA.getSize(); in printMachOUniversalHeaders()
2217 outs() << " (past end of file)"; in printMachOUniversalHeaders()
2218 outs() << "\n"; in printMachOUniversalHeaders()
2219 outs() << " align 2^" << OFA.getAlign() << " (" << (1 << OFA.getAlign()) in printMachOUniversalHeaders()
2229 outs() << C.getChildOffset() << "\t"; in printArchiveChild()
2236 outs() << "-"; in printArchiveChild()
2237 outs() << ((Mode & sys::fs::owner_read) ? "r" : "-"); in printArchiveChild()
2238 outs() << ((Mode & sys::fs::owner_write) ? "w" : "-"); in printArchiveChild()
2239 outs() << ((Mode & sys::fs::owner_exe) ? "x" : "-"); in printArchiveChild()
2240 outs() << ((Mode & sys::fs::group_read) ? "r" : "-"); in printArchiveChild()
2241 outs() << ((Mode & sys::fs::group_write) ? "w" : "-"); in printArchiveChild()
2242 outs() << ((Mode & sys::fs::group_exe) ? "x" : "-"); in printArchiveChild()
2243 outs() << ((Mode & sys::fs::others_read) ? "r" : "-"); in printArchiveChild()
2244 outs() << ((Mode & sys::fs::others_write) ? "w" : "-"); in printArchiveChild()
2245 outs() << ((Mode & sys::fs::others_exe) ? "x" : "-"); in printArchiveChild()
2247 outs() << format("0%o ", Mode); in printArchiveChild()
2250 outs() << format("%3d/%-3d %5" PRId64 " ", in printArchiveChild()
2263 outs() << "(date: \"" << RawLastModified in printArchiveChild()
2270 outs() << format("%.24s ", ctime(&t)); in printArchiveChild()
2273 outs() << RawLastModified << " "; in printArchiveChild()
2280 outs() << unwrapOrError(C.getRawName(), in printArchiveChild()
2286 outs() << Name << "\n"; in printArchiveChild()
2289 outs() << unwrapOrError(C.getRawName(), getFileNameForError(C, ChildIndex), in printArchiveChild()
2339 outs() << Filename << ": is not an object file\n"; in parseInputMachO()
2345 outs() << "Archive : " << Filename << "\n"; in parseInputMachO()
2423 outs() << "Archive : " << Filename; in parseInputMachO()
2425 outs() << " (architecture " << ArchitectureName << ")"; in parseInputMachO()
2426 outs() << "\n"; in parseInputMachO()
2487 outs() << "Archive : " << Filename << "\n"; in parseInputMachO()
2537 outs() << "Archive : " << Filename; in parseInputMachO()
2539 outs() << " (architecture " << ArchitectureName << ")"; in parseInputMachO()
2540 outs() << "\n"; in parseInputMachO()
4134 outs() << "Contents of (" << SegName << "," << SectName << ") section\n"; in walk_pointer_list_64()
4145 outs() << listname << " list pointer extends past end of (" << SegName in walk_pointer_list_64()
4147 outs() << format("%016" PRIx64, S.getAddress() + i) << " "; in walk_pointer_list_64()
4158 outs() << format("0x%" PRIx64, n_value); in walk_pointer_list_64()
4160 outs() << " + " << format("0x%" PRIx64, p); in walk_pointer_list_64()
4162 outs() << format("0x%" PRIx64, p); in walk_pointer_list_64()
4164 outs() << " " << name; in walk_pointer_list_64()
4165 outs() << "\n"; in walk_pointer_list_64()
4183 outs() << "Contents of (" << SegName << "," << SectName << ") section\n"; in walk_pointer_list_32()
4194 outs() << listname << " list pointer extends past end of (" << SegName in walk_pointer_list_32()
4197 outs() << format("%08" PRIx32, Address) << " "; in walk_pointer_list_32()
4201 outs() << format("0x%" PRIx32, p); in walk_pointer_list_32()
4205 outs() << " " << name; in walk_pointer_list_32()
4206 outs() << "\n"; in walk_pointer_list_32()
4216 outs() << " layout map: "; in print_layout_map()
4218 outs() << format("0x%02" PRIx32, (*layout_map) & 0xff) << " "; in print_layout_map()
4222 outs() << "\n"; in print_layout_map()
4263 outs() << " (method_list_t entends past the end of the section)\n"; in print_method_list64_t()
4268 outs() << indent << "\t\t entsize " << ml.entsize << "\n"; in print_method_list64_t()
4269 outs() << indent << "\t\t count " << ml.count << "\n"; in print_method_list64_t()
4280 outs() << indent << " (method_t extends past the end of the section)\n"; in print_method_list64_t()
4286 outs() << indent << "\t\t name "; in print_method_list64_t()
4291 outs() << sym_name; in print_method_list64_t()
4293 outs() << format("0x%" PRIx64, n_value); in print_method_list64_t()
4295 outs() << " + " << format("0x%" PRIx64, m.name); in print_method_list64_t()
4297 outs() << format("0x%" PRIx64, m.name); in print_method_list64_t()
4300 outs() << format(" %.*s", left, name); in print_method_list64_t()
4301 outs() << "\n"; in print_method_list64_t()
4303 outs() << indent << "\t\t types "; in print_method_list64_t()
4308 outs() << sym_name; in print_method_list64_t()
4310 outs() << format("0x%" PRIx64, n_value); in print_method_list64_t()
4312 outs() << " + " << format("0x%" PRIx64, m.types); in print_method_list64_t()
4314 outs() << format("0x%" PRIx64, m.types); in print_method_list64_t()
4317 outs() << format(" %.*s", left, name); in print_method_list64_t()
4318 outs() << "\n"; in print_method_list64_t()
4320 outs() << indent << "\t\t imp "; in print_method_list64_t()
4325 outs() << format("0x%" PRIx64, n_value) << " "; in print_method_list64_t()
4327 outs() << "+ " << format("0x%" PRIx64, m.imp) << " "; in print_method_list64_t()
4329 outs() << format("0x%" PRIx64, m.imp) << " "; in print_method_list64_t()
4332 outs() << name; in print_method_list64_t()
4333 outs() << "\n"; in print_method_list64_t()
4354 outs() << " (method_list_t entends past the end of the section)\n"; in print_method_list32_t()
4359 outs() << indent << "\t\t entsize " << ml.entsize << "\n"; in print_method_list32_t()
4360 outs() << indent << "\t\t count " << ml.count << "\n"; in print_method_list32_t()
4371 outs() << indent << " (method_t entends past the end of the section)\n"; in print_method_list32_t()
4377 outs() << indent << "\t\t name " << format("0x%" PRIx32, m.name); in print_method_list32_t()
4380 outs() << format(" %.*s", left, name); in print_method_list32_t()
4381 outs() << "\n"; in print_method_list32_t()
4383 outs() << indent << "\t\t types " << format("0x%" PRIx32, m.types); in print_method_list32_t()
4386 outs() << format(" %.*s", left, name); in print_method_list32_t()
4387 outs() << "\n"; in print_method_list32_t()
4389 outs() << indent << "\t\t imp " << format("0x%" PRIx32, m.imp); in print_method_list32_t()
4393 outs() << " " << name; in print_method_list32_t()
4394 outs() << "\n"; in print_method_list32_t()
4413 outs() << "\n"; in print_method_list()
4417 outs() << "\t\t objc_method_list extends past end of the section\n"; in print_method_list()
4424 outs() << "\t\t obsolete " in print_method_list()
4426 outs() << "\t\t method_count " << method_list.method_count << "\n"; in print_method_list()
4431 outs() << "\t\t remaining method's extend past the of the section\n"; in print_method_list()
4439 outs() << "\t\t method_name " in print_method_list()
4444 outs() << format(" %.*s", xleft, name); in print_method_list()
4446 outs() << " (not in an __OBJC section)"; in print_method_list()
4448 outs() << "\n"; in print_method_list()
4450 outs() << "\t\t method_types " in print_method_list()
4455 outs() << format(" %.*s", xleft, name); in print_method_list()
4457 outs() << " (not in an __OBJC section)"; in print_method_list()
4459 outs() << "\n"; in print_method_list()
4461 outs() << "\t\t method_imp " in print_method_list()
4466 outs() << SymbolName; in print_method_list()
4468 outs() << "\n"; in print_method_list()
4488 outs() << " (protocol_list_t entends past the end of the section)\n"; in print_protocol_list64_t()
4493 outs() << " count " << pl.count << "\n"; in print_protocol_list64_t()
4504 outs() << " (protocol_t * entends past the end of the section)\n"; in print_protocol_list64_t()
4510 outs() << "\t\t list[" << i << "] "; in print_protocol_list64_t()
4514 outs() << sym_name; in print_protocol_list64_t()
4516 outs() << format("0x%" PRIx64, n_value); in print_protocol_list64_t()
4518 outs() << " + " << format("0x%" PRIx64, q); in print_protocol_list64_t()
4520 outs() << format("0x%" PRIx64, q); in print_protocol_list64_t()
4521 outs() << " (struct protocol_t *)\n"; in print_protocol_list64_t()
4529 outs() << " (protocol_t entends past the end of the section)\n"; in print_protocol_list64_t()
4535 outs() << "\t\t\t isa " << format("0x%" PRIx64, pc.isa) << "\n"; in print_protocol_list64_t()
4537 outs() << "\t\t\t name "; in print_protocol_list64_t()
4542 outs() << sym_name; in print_protocol_list64_t()
4544 outs() << format("0x%" PRIx64, n_value); in print_protocol_list64_t()
4546 outs() << " + " << format("0x%" PRIx64, pc.name); in print_protocol_list64_t()
4548 outs() << format("0x%" PRIx64, pc.name); in print_protocol_list64_t()
4551 outs() << format(" %.*s", left, name); in print_protocol_list64_t()
4552 outs() << "\n"; in print_protocol_list64_t()
4554 outs() << "\t\t\tprotocols " << format("0x%" PRIx64, pc.protocols) << "\n"; in print_protocol_list64_t()
4556 outs() << "\t\t instanceMethods "; in print_protocol_list64_t()
4562 outs() << sym_name; in print_protocol_list64_t()
4564 outs() << format("0x%" PRIx64, n_value); in print_protocol_list64_t()
4566 outs() << " + " << format("0x%" PRIx64, pc.instanceMethods); in print_protocol_list64_t()
4568 outs() << format("0x%" PRIx64, pc.instanceMethods); in print_protocol_list64_t()
4569 outs() << " (struct method_list_t *)\n"; in print_protocol_list64_t()
4573 outs() << "\t\t classMethods "; in print_protocol_list64_t()
4579 outs() << sym_name; in print_protocol_list64_t()
4581 outs() << format("0x%" PRIx64, n_value); in print_protocol_list64_t()
4583 outs() << " + " << format("0x%" PRIx64, pc.classMethods); in print_protocol_list64_t()
4585 outs() << format("0x%" PRIx64, pc.classMethods); in print_protocol_list64_t()
4586 outs() << " (struct method_list_t *)\n"; in print_protocol_list64_t()
4590 outs() << "\t optionalInstanceMethods " in print_protocol_list64_t()
4592 outs() << "\t optionalClassMethods " in print_protocol_list64_t()
4594 outs() << "\t instanceProperties " in print_protocol_list64_t()
4617 outs() << " (protocol_list_t entends past the end of the section)\n"; in print_protocol_list32_t()
4622 outs() << " count " << pl.count << "\n"; in print_protocol_list32_t()
4633 outs() << " (protocol_t * entends past the end of the section)\n"; in print_protocol_list32_t()
4638 outs() << "\t\t list[" << i << "] " << format("0x%" PRIx32, q) in print_protocol_list32_t()
4646 outs() << " (protocol_t entends past the end of the section)\n"; in print_protocol_list32_t()
4651 outs() << "\t\t\t isa " << format("0x%" PRIx32, pc.isa) << "\n"; in print_protocol_list32_t()
4652 outs() << "\t\t\t name " << format("0x%" PRIx32, pc.name); in print_protocol_list32_t()
4655 outs() << format(" %.*s", left, name); in print_protocol_list32_t()
4656 outs() << "\n"; in print_protocol_list32_t()
4657 outs() << "\t\t\tprotocols " << format("0x%" PRIx32, pc.protocols) << "\n"; in print_protocol_list32_t()
4658 outs() << "\t\t instanceMethods " in print_protocol_list32_t()
4663 outs() << "\t\t classMethods " << format("0x%" PRIx32, pc.classMethods) in print_protocol_list32_t()
4667 outs() << "\t optionalInstanceMethods " in print_protocol_list32_t()
4669 outs() << "\t optionalClassMethods " in print_protocol_list32_t()
4671 outs() << "\t instanceProperties " in print_protocol_list32_t()
4681 outs() << "\t"; in print_indent()
4685 outs() << " "; in print_indent()
4704 outs() << "\n"; in print_method_description_list()
4709 outs() << " objc_method_description_list extends past end of the section\n"; in print_method_description_list()
4717 outs() << " count " << mdl.count << "\n"; in print_method_description_list()
4723 outs() << " remaining list entries extend past the of the section\n"; in print_method_description_list()
4727 outs() << " list[" << i << "]\n"; in print_method_description_list()
4734 outs() << " name " << format("0x%08" PRIx32, md.name); in print_method_description_list()
4738 outs() << format(" %.*s", xleft, name); in print_method_description_list()
4740 outs() << " (not in an __OBJC section)"; in print_method_description_list()
4742 outs() << "\n"; in print_method_description_list()
4745 outs() << " types " << format("0x%08" PRIx32, md.types); in print_method_description_list()
4749 outs() << format(" %.*s", xleft, name); in print_method_description_list()
4751 outs() << " (not in an __OBJC section)"; in print_method_description_list()
4753 outs() << "\n"; in print_method_description_list()
4772 outs() << "\n"; in print_protocol()
4777 outs() << " Protocol extends past end of the section\n"; in print_protocol()
4785 outs() << " isa " << format("0x%08" PRIx32, protocol.isa) in print_protocol()
4789 outs() << " protocol_name " in print_protocol()
4794 outs() << format(" %.*s", left, name); in print_protocol()
4796 outs() << " (not in an __OBJC section)"; in print_protocol()
4798 outs() << "\n"; in print_protocol()
4801 outs() << " protocol_list " in print_protocol()
4804 outs() << " (not in an __OBJC section)\n"; in print_protocol()
4807 outs() << " instance_methods " in print_protocol()
4810 outs() << " (not in an __OBJC section)\n"; in print_protocol()
4813 outs() << " class_methods " in print_protocol()
4816 outs() << " (not in an __OBJC section)\n"; in print_protocol()
4833 outs() << "\n"; in print_protocol_list()
4837 outs() << "\t\t objc_protocol_list_t extends past end of the section\n"; in print_protocol_list()
4845 outs() << " next " << format("0x%08" PRIx32, protocol_list.next) in print_protocol_list()
4848 outs() << " count " << protocol_list.count << "\n"; in print_protocol_list()
4853 outs() << "\t\t remaining list entries extend past the of the section\n"; in print_protocol_list()
4861 outs() << " list[" << i << "] " << format("0x%08" PRIx32, l); in print_protocol_list()
4863 outs() << "(not in an __OBJC section)\n"; in print_protocol_list()
4883 outs() << " (ivar_list_t entends past the end of the section)\n"; in print_ivar_list64_t()
4888 outs() << " entsize " << il.entsize << "\n"; in print_ivar_list64_t()
4889 outs() << " count " << il.count << "\n"; in print_ivar_list64_t()
4900 outs() << " (ivar_t entends past the end of the section)\n"; in print_ivar_list64_t()
4906 outs() << "\t\t\t offset "; in print_ivar_list64_t()
4911 outs() << sym_name; in print_ivar_list64_t()
4913 outs() << format("0x%" PRIx64, n_value); in print_ivar_list64_t()
4915 outs() << " + " << format("0x%" PRIx64, i.offset); in print_ivar_list64_t()
4917 outs() << format("0x%" PRIx64, i.offset); in print_ivar_list64_t()
4923 outs() << " " << ivar_offset << "\n"; in print_ivar_list64_t()
4925 outs() << "\n"; in print_ivar_list64_t()
4927 outs() << "\t\t\t name "; in print_ivar_list64_t()
4932 outs() << sym_name; in print_ivar_list64_t()
4934 outs() << format("0x%" PRIx64, n_value); in print_ivar_list64_t()
4936 outs() << " + " << format("0x%" PRIx64, i.name); in print_ivar_list64_t()
4938 outs() << format("0x%" PRIx64, i.name); in print_ivar_list64_t()
4941 outs() << format(" %.*s", left, name); in print_ivar_list64_t()
4942 outs() << "\n"; in print_ivar_list64_t()
4944 outs() << "\t\t\t type "; in print_ivar_list64_t()
4950 outs() << sym_name; in print_ivar_list64_t()
4952 outs() << format("0x%" PRIx64, n_value); in print_ivar_list64_t()
4954 outs() << " + " << format("0x%" PRIx64, i.type); in print_ivar_list64_t()
4956 outs() << format("0x%" PRIx64, i.type); in print_ivar_list64_t()
4958 outs() << format(" %.*s", left, name); in print_ivar_list64_t()
4959 outs() << "\n"; in print_ivar_list64_t()
4961 outs() << "\t\t\talignment " << i.alignment << "\n"; in print_ivar_list64_t()
4962 outs() << "\t\t\t size " << i.size << "\n"; in print_ivar_list64_t()
4984 outs() << " (ivar_list_t entends past the end of the section)\n"; in print_ivar_list32_t()
4989 outs() << " entsize " << il.entsize << "\n"; in print_ivar_list32_t()
4990 outs() << " count " << il.count << "\n"; in print_ivar_list32_t()
5001 outs() << " (ivar_t entends past the end of the section)\n"; in print_ivar_list32_t()
5007 outs() << "\t\t\t offset " << format("0x%" PRIx32, i.offset); in print_ivar_list32_t()
5013 outs() << " " << ivar_offset << "\n"; in print_ivar_list32_t()
5015 outs() << "\n"; in print_ivar_list32_t()
5017 outs() << "\t\t\t name " << format("0x%" PRIx32, i.name); in print_ivar_list32_t()
5020 outs() << format(" %.*s", left, name); in print_ivar_list32_t()
5021 outs() << "\n"; in print_ivar_list32_t()
5023 outs() << "\t\t\t type " << format("0x%" PRIx32, i.type); in print_ivar_list32_t()
5026 outs() << format(" %.*s", left, name); in print_ivar_list32_t()
5027 outs() << "\n"; in print_ivar_list32_t()
5029 outs() << "\t\t\talignment " << i.alignment << "\n"; in print_ivar_list32_t()
5030 outs() << "\t\t\t size " << i.size << "\n"; in print_ivar_list32_t()
5053 outs() << " (objc_property_list entends past the end of the section)\n"; in print_objc_property_list64()
5058 outs() << " entsize " << opl.entsize << "\n"; in print_objc_property_list64()
5059 outs() << " count " << opl.count << "\n"; in print_objc_property_list64()
5070 outs() << " (objc_property entends past the end of the section)\n"; in print_objc_property_list64()
5076 outs() << "\t\t\t name "; in print_objc_property_list64()
5081 outs() << sym_name; in print_objc_property_list64()
5083 outs() << format("0x%" PRIx64, n_value); in print_objc_property_list64()
5085 outs() << " + " << format("0x%" PRIx64, op.name); in print_objc_property_list64()
5087 outs() << format("0x%" PRIx64, op.name); in print_objc_property_list64()
5090 outs() << format(" %.*s", left, name); in print_objc_property_list64()
5091 outs() << "\n"; in print_objc_property_list64()
5093 outs() << "\t\t\tattributes "; in print_objc_property_list64()
5099 outs() << sym_name; in print_objc_property_list64()
5101 outs() << format("0x%" PRIx64, n_value); in print_objc_property_list64()
5103 outs() << " + " << format("0x%" PRIx64, op.attributes); in print_objc_property_list64()
5105 outs() << format("0x%" PRIx64, op.attributes); in print_objc_property_list64()
5108 outs() << format(" %.*s", left, name); in print_objc_property_list64()
5109 outs() << "\n"; in print_objc_property_list64()
5131 outs() << " (objc_property_list entends past the end of the section)\n"; in print_objc_property_list32()
5136 outs() << " entsize " << opl.entsize << "\n"; in print_objc_property_list32()
5137 outs() << " count " << opl.count << "\n"; in print_objc_property_list32()
5148 outs() << " (objc_property entends past the end of the section)\n"; in print_objc_property_list32()
5154 outs() << "\t\t\t name " << format("0x%" PRIx32, op.name); in print_objc_property_list32()
5157 outs() << format(" %.*s", left, name); in print_objc_property_list32()
5158 outs() << "\n"; in print_objc_property_list32()
5160 outs() << "\t\t\tattributes " << format("0x%" PRIx32, op.attributes); in print_objc_property_list32()
5163 outs() << format(" %.*s", left, name); in print_objc_property_list32()
5164 outs() << "\n"; in print_objc_property_list32()
5186 outs() << " flags " << format("0x%" PRIx32, cro.flags); in print_class_ro64_t()
5188 outs() << " RO_META"; in print_class_ro64_t()
5190 outs() << " RO_ROOT"; in print_class_ro64_t()
5192 outs() << " RO_HAS_CXX_STRUCTORS"; in print_class_ro64_t()
5193 outs() << "\n"; in print_class_ro64_t()
5194 outs() << " instanceStart " << cro.instanceStart << "\n"; in print_class_ro64_t()
5195 outs() << " instanceSize " << cro.instanceSize << "\n"; in print_class_ro64_t()
5196 outs() << " reserved " << format("0x%" PRIx32, cro.reserved) in print_class_ro64_t()
5198 outs() << " ivarLayout " << format("0x%" PRIx64, cro.ivarLayout) in print_class_ro64_t()
5202 outs() << " name "; in print_class_ro64_t()
5207 outs() << sym_name; in print_class_ro64_t()
5209 outs() << format("0x%" PRIx64, n_value); in print_class_ro64_t()
5211 outs() << " + " << format("0x%" PRIx64, cro.name); in print_class_ro64_t()
5213 outs() << format("0x%" PRIx64, cro.name); in print_class_ro64_t()
5216 outs() << format(" %.*s", left, name); in print_class_ro64_t()
5217 outs() << "\n"; in print_class_ro64_t()
5219 outs() << " baseMethods "; in print_class_ro64_t()
5224 outs() << sym_name; in print_class_ro64_t()
5226 outs() << format("0x%" PRIx64, n_value); in print_class_ro64_t()
5228 outs() << " + " << format("0x%" PRIx64, cro.baseMethods); in print_class_ro64_t()
5230 outs() << format("0x%" PRIx64, cro.baseMethods); in print_class_ro64_t()
5231 outs() << " (struct method_list_t *)\n"; in print_class_ro64_t()
5235 outs() << " baseProtocols "; in print_class_ro64_t()
5241 outs() << sym_name; in print_class_ro64_t()
5243 outs() << format("0x%" PRIx64, n_value); in print_class_ro64_t()
5245 outs() << " + " << format("0x%" PRIx64, cro.baseProtocols); in print_class_ro64_t()
5247 outs() << format("0x%" PRIx64, cro.baseProtocols); in print_class_ro64_t()
5248 outs() << "\n"; in print_class_ro64_t()
5252 outs() << " ivars "; in print_class_ro64_t()
5257 outs() << sym_name; in print_class_ro64_t()
5259 outs() << format("0x%" PRIx64, n_value); in print_class_ro64_t()
5261 outs() << " + " << format("0x%" PRIx64, cro.ivars); in print_class_ro64_t()
5263 outs() << format("0x%" PRIx64, cro.ivars); in print_class_ro64_t()
5264 outs() << "\n"; in print_class_ro64_t()
5268 outs() << " weakIvarLayout "; in print_class_ro64_t()
5274 outs() << sym_name; in print_class_ro64_t()
5276 outs() << format("0x%" PRIx64, n_value); in print_class_ro64_t()
5278 outs() << " + " << format("0x%" PRIx64, cro.weakIvarLayout); in print_class_ro64_t()
5280 outs() << format("0x%" PRIx64, cro.weakIvarLayout); in print_class_ro64_t()
5281 outs() << "\n"; in print_class_ro64_t()
5284 outs() << " baseProperties "; in print_class_ro64_t()
5290 outs() << sym_name; in print_class_ro64_t()
5292 outs() << format("0x%" PRIx64, n_value); in print_class_ro64_t()
5294 outs() << " + " << format("0x%" PRIx64, cro.baseProperties); in print_class_ro64_t()
5296 outs() << format("0x%" PRIx64, cro.baseProperties); in print_class_ro64_t()
5297 outs() << "\n"; in print_class_ro64_t()
5319 outs() << " (class_ro_t entends past the end of the section)\n"; in print_class_ro32_t()
5324 outs() << " flags " << format("0x%" PRIx32, cro.flags); in print_class_ro32_t()
5326 outs() << " RO_META"; in print_class_ro32_t()
5328 outs() << " RO_ROOT"; in print_class_ro32_t()
5330 outs() << " RO_HAS_CXX_STRUCTORS"; in print_class_ro32_t()
5331 outs() << "\n"; in print_class_ro32_t()
5332 outs() << " instanceStart " << cro.instanceStart << "\n"; in print_class_ro32_t()
5333 outs() << " instanceSize " << cro.instanceSize << "\n"; in print_class_ro32_t()
5334 outs() << " ivarLayout " << format("0x%" PRIx32, cro.ivarLayout) in print_class_ro32_t()
5338 outs() << " name " << format("0x%" PRIx32, cro.name); in print_class_ro32_t()
5341 outs() << format(" %.*s", left, name); in print_class_ro32_t()
5342 outs() << "\n"; in print_class_ro32_t()
5344 outs() << " baseMethods " in print_class_ro32_t()
5350 outs() << " baseProtocols " in print_class_ro32_t()
5354 outs() << " ivars " << format("0x%" PRIx32, cro.ivars) in print_class_ro32_t()
5358 outs() << " weakIvarLayout " in print_class_ro32_t()
5361 outs() << " baseProperties " in print_class_ro32_t()
5384 outs() << " isa " << format("0x%" PRIx64, c.isa); in print_class64_t()
5388 outs() << " " << name; in print_class64_t()
5389 outs() << "\n"; in print_class64_t()
5391 outs() << " superclass " << format("0x%" PRIx64, c.superclass); in print_class64_t()
5395 outs() << " " << name; in print_class64_t()
5400 outs() << " " << name; in print_class64_t()
5402 outs() << "\n"; in print_class64_t()
5404 outs() << " cache " << format("0x%" PRIx64, c.cache); in print_class64_t()
5408 outs() << " " << name; in print_class64_t()
5409 outs() << "\n"; in print_class64_t()
5411 outs() << " vtable " << format("0x%" PRIx64, c.vtable); in print_class64_t()
5415 outs() << " " << name; in print_class64_t()
5416 outs() << "\n"; in print_class64_t()
5420 outs() << " data "; in print_class64_t()
5423 outs() << name; in print_class64_t()
5425 outs() << format("0x%" PRIx64, n_value); in print_class64_t()
5427 outs() << " + " << format("0x%" PRIx64, c.data); in print_class64_t()
5429 outs() << format("0x%" PRIx64, c.data); in print_class64_t()
5430 outs() << " (struct class_ro_t *)"; in print_class64_t()
5434 outs() << " Swift class"; in print_class64_t()
5435 outs() << "\n"; in print_class64_t()
5445 outs() << "Meta Class\n"; in print_class64_t()
5463 outs() << " (class_t entends past the end of the section)\n"; in print_class32_t()
5469 outs() << " isa " << format("0x%" PRIx32, c.isa); in print_class32_t()
5473 outs() << " " << name; in print_class32_t()
5474 outs() << "\n"; in print_class32_t()
5476 outs() << " superclass " << format("0x%" PRIx32, c.superclass); in print_class32_t()
5480 outs() << " " << name; in print_class32_t()
5481 outs() << "\n"; in print_class32_t()
5483 outs() << " cache " << format("0x%" PRIx32, c.cache); in print_class32_t()
5487 outs() << " " << name; in print_class32_t()
5488 outs() << "\n"; in print_class32_t()
5490 outs() << " vtable " << format("0x%" PRIx32, c.vtable); in print_class32_t()
5494 outs() << " " << name; in print_class32_t()
5495 outs() << "\n"; in print_class32_t()
5499 outs() << " data " << format("0x%" PRIx32, c.data) in print_class32_t()
5504 outs() << " Swift class"; in print_class32_t()
5505 outs() << "\n"; in print_class32_t()
5511 outs() << "Meta Class\n"; in print_class32_t()
5525 outs() << "\t\t isa " << format("0x%08" PRIx32, objc_class->isa); in print_objc_class_t()
5529 outs() << format(" %.*s", left, name); in print_objc_class_t()
5531 outs() << " (not in an __OBJC section)"; in print_objc_class_t()
5533 outs() << "\n"; in print_objc_class_t()
5535 outs() << "\t super_class " in print_objc_class_t()
5540 outs() << format(" %.*s", left, name); in print_objc_class_t()
5542 outs() << " (not in an __OBJC section)"; in print_objc_class_t()
5544 outs() << "\n"; in print_objc_class_t()
5546 outs() << "\t\t name " << format("0x%08" PRIx32, objc_class->name); in print_objc_class_t()
5550 outs() << format(" %.*s", left, name); in print_objc_class_t()
5552 outs() << " (not in an __OBJC section)"; in print_objc_class_t()
5554 outs() << "\n"; in print_objc_class_t()
5556 outs() << "\t\t version " << format("0x%08" PRIx32, objc_class->version) in print_objc_class_t()
5559 outs() << "\t\t info " << format("0x%08" PRIx32, objc_class->info); in print_objc_class_t()
5562 outs() << " CLS_CLASS"; in print_objc_class_t()
5564 outs() << " CLS_META"; in print_objc_class_t()
5566 outs() << "\n"; in print_objc_class_t()
5568 outs() << "\t instance_size " in print_objc_class_t()
5572 outs() << "\t\t ivars " << format("0x%08" PRIx32, objc_class->ivars); in print_objc_class_t()
5575 outs() << "\n"; in print_objc_class_t()
5578 outs() << " (entends past the end of the section)\n"; in print_objc_class_t()
5584 outs() << "\t\t ivar_count " << objc_ivar_list.ivar_count << "\n"; in print_objc_class_t()
5588 outs() << "\t\t remaining ivar's extend past the of the section\n"; in print_objc_class_t()
5596 outs() << "\t\t\tivar_name " << format("0x%08" PRIx32, ivar.ivar_name); in print_objc_class_t()
5600 outs() << format(" %.*s", xleft, name); in print_objc_class_t()
5602 outs() << " (not in an __OBJC section)"; in print_objc_class_t()
5604 outs() << "\n"; in print_objc_class_t()
5606 outs() << "\t\t\tivar_type " << format("0x%08" PRIx32, ivar.ivar_type); in print_objc_class_t()
5610 outs() << format(" %.*s", xleft, name); in print_objc_class_t()
5612 outs() << " (not in an __OBJC section)"; in print_objc_class_t()
5614 outs() << "\n"; in print_objc_class_t()
5616 outs() << "\t\t ivar_offset " in print_objc_class_t()
5620 outs() << " (not in an __OBJC section)\n"; in print_objc_class_t()
5623 outs() << "\t\t methods " << format("0x%08" PRIx32, objc_class->methodLists); in print_objc_class_t()
5625 outs() << " (not in an __OBJC section)\n"; in print_objc_class_t()
5627 outs() << "\t\t cache " << format("0x%08" PRIx32, objc_class->cache) in print_objc_class_t()
5630 outs() << "\t\tprotocols " << format("0x%08" PRIx32, objc_class->protocols); in print_objc_class_t()
5632 outs() << " (not in an __OBJC section)\n"; in print_objc_class_t()
5641 outs() << "\t category name " in print_objc_objc_category_t()
5647 outs() << format(" %.*s", left, name); in print_objc_objc_category_t()
5649 outs() << " (not in an __OBJC section)"; in print_objc_objc_category_t()
5651 outs() << "\n"; in print_objc_objc_category_t()
5653 outs() << "\t\t class name " in print_objc_objc_category_t()
5659 outs() << format(" %.*s", left, name); in print_objc_objc_category_t()
5661 outs() << " (not in an __OBJC section)"; in print_objc_objc_category_t()
5663 outs() << "\n"; in print_objc_objc_category_t()
5665 outs() << "\t instance methods " in print_objc_objc_category_t()
5668 outs() << " (not in an __OBJC section)\n"; in print_objc_objc_category_t()
5670 outs() << "\t class methods " in print_objc_objc_category_t()
5673 outs() << " (not in an __OBJC section)\n"; in print_objc_objc_category_t()
5690 outs() << " (category_t entends past the end of the section)\n"; in print_category64_t()
5696 outs() << " name "; in print_category64_t()
5701 outs() << sym_name; in print_category64_t()
5703 outs() << format("0x%" PRIx64, n_value); in print_category64_t()
5705 outs() << " + " << format("0x%" PRIx64, c.name); in print_category64_t()
5707 outs() << format("0x%" PRIx64, c.name); in print_category64_t()
5710 outs() << format(" %.*s", left, name); in print_category64_t()
5711 outs() << "\n"; in print_category64_t()
5713 outs() << " cls "; in print_category64_t()
5718 outs() << sym_name; in print_category64_t()
5720 outs() << format("0x%" PRIx64, n_value); in print_category64_t()
5722 outs() << " + " << format("0x%" PRIx64, c.cls); in print_category64_t()
5724 outs() << format("0x%" PRIx64, c.cls); in print_category64_t()
5725 outs() << "\n"; in print_category64_t()
5729 outs() << " instanceMethods "; in print_category64_t()
5735 outs() << sym_name; in print_category64_t()
5737 outs() << format("0x%" PRIx64, n_value); in print_category64_t()
5739 outs() << " + " << format("0x%" PRIx64, c.instanceMethods); in print_category64_t()
5741 outs() << format("0x%" PRIx64, c.instanceMethods); in print_category64_t()
5742 outs() << "\n"; in print_category64_t()
5746 outs() << " classMethods "; in print_category64_t()
5751 outs() << sym_name; in print_category64_t()
5753 outs() << format("0x%" PRIx64, n_value); in print_category64_t()
5755 outs() << " + " << format("0x%" PRIx64, c.classMethods); in print_category64_t()
5757 outs() << format("0x%" PRIx64, c.classMethods); in print_category64_t()
5758 outs() << "\n"; in print_category64_t()
5762 outs() << " protocols "; in print_category64_t()
5767 outs() << sym_name; in print_category64_t()
5769 outs() << format("0x%" PRIx64, n_value); in print_category64_t()
5771 outs() << " + " << format("0x%" PRIx64, c.protocols); in print_category64_t()
5773 outs() << format("0x%" PRIx64, c.protocols); in print_category64_t()
5774 outs() << "\n"; in print_category64_t()
5778 outs() << "instanceProperties "; in print_category64_t()
5784 outs() << sym_name; in print_category64_t()
5786 outs() << format("0x%" PRIx64, n_value); in print_category64_t()
5788 outs() << " + " << format("0x%" PRIx64, c.instanceProperties); in print_category64_t()
5790 outs() << format("0x%" PRIx64, c.instanceProperties); in print_category64_t()
5791 outs() << "\n"; in print_category64_t()
5809 outs() << " (category_t entends past the end of the section)\n"; in print_category32_t()
5815 outs() << " name " << format("0x%" PRIx32, c.name); in print_category32_t()
5819 outs() << " " << name; in print_category32_t()
5820 outs() << "\n"; in print_category32_t()
5822 outs() << " cls " << format("0x%" PRIx32, c.cls) << "\n"; in print_category32_t()
5825 outs() << " instanceMethods " << format("0x%" PRIx32, c.instanceMethods) in print_category32_t()
5829 outs() << " classMethods " << format("0x%" PRIx32, c.classMethods) in print_category32_t()
5833 outs() << " protocols " << format("0x%" PRIx32, c.protocols) << "\n"; in print_category32_t()
5836 outs() << "instanceProperties " << format("0x%" PRIx32, c.instanceProperties) in print_category32_t()
5862 outs() << "Contents of (" << SegName << "," << SectName << ") section\n"; in print_message_refs64()
5872 outs() << " (message_ref entends past the end of the section)\n"; in print_message_refs64()
5878 outs() << " imp "; in print_message_refs64()
5882 outs() << format("0x%" PRIx64, n_value) << " "; in print_message_refs64()
5884 outs() << "+ " << format("0x%" PRIx64, mr.imp) << " "; in print_message_refs64()
5886 outs() << format("0x%" PRIx64, mr.imp) << " "; in print_message_refs64()
5888 outs() << " " << name; in print_message_refs64()
5889 outs() << "\n"; in print_message_refs64()
5891 outs() << " sel "; in print_message_refs64()
5896 outs() << sym_name; in print_message_refs64()
5898 outs() << format("0x%" PRIx64, n_value); in print_message_refs64()
5900 outs() << " + " << format("0x%" PRIx64, mr.sel); in print_message_refs64()
5902 outs() << format("0x%" PRIx64, mr.sel); in print_message_refs64()
5905 outs() << format(" %.*s", left, name); in print_message_refs64()
5906 outs() << "\n"; in print_message_refs64()
5930 outs() << "Contents of (" << SegName << "," << SectName << ") section\n"; in print_message_refs32()
5940 outs() << " (message_ref entends past the end of the section)\n"; in print_message_refs32()
5946 outs() << " imp " << format("0x%" PRIx32, mr.imp); in print_message_refs32()
5950 outs() << " " << name; in print_message_refs32()
5951 outs() << "\n"; in print_message_refs32()
5953 outs() << " sel " << format("0x%" PRIx32, mr.sel); in print_message_refs32()
5956 outs() << " " << name; in print_message_refs32()
5957 outs() << "\n"; in print_message_refs32()
5981 outs() << "Contents of (" << SegName << "," << SectName << ") section\n"; in print_image_info64()
5989 outs() << " (objc_image_info entends past the end of the section)\n"; in print_image_info64()
5994 outs() << " version " << o.version << "\n"; in print_image_info64()
5995 outs() << " flags " << format("0x%" PRIx32, o.flags); in print_image_info64()
5997 outs() << " OBJC_IMAGE_IS_REPLACEMENT"; in print_image_info64()
5999 outs() << " OBJC_IMAGE_SUPPORTS_GC"; in print_image_info64()
6001 outs() << " OBJC_IMAGE_IS_SIMULATED"; in print_image_info64()
6003 outs() << " OBJC_IMAGE_HAS_CATEGORY_CLASS_PROPERTIES"; in print_image_info64()
6007 outs() << " Swift 1.0"; in print_image_info64()
6009 outs() << " Swift 1.1"; in print_image_info64()
6011 outs() << " Swift 2.0"; in print_image_info64()
6013 outs() << " Swift 3.0"; in print_image_info64()
6015 outs() << " Swift 4.0"; in print_image_info64()
6017 outs() << " Swift 4.1/Swift 4.2"; in print_image_info64()
6019 outs() << " Swift 5 or later"; in print_image_info64()
6021 outs() << " unknown future Swift version (" << swift_version << ")"; in print_image_info64()
6023 outs() << "\n"; in print_image_info64()
6043 outs() << "Contents of (" << SegName << "," << SectName << ") section\n"; in print_image_info32()
6051 outs() << " (objc_image_info entends past the end of the section)\n"; in print_image_info32()
6056 outs() << " version " << o.version << "\n"; in print_image_info32()
6057 outs() << " flags " << format("0x%" PRIx32, o.flags); in print_image_info32()
6059 outs() << " OBJC_IMAGE_IS_REPLACEMENT"; in print_image_info32()
6061 outs() << " OBJC_IMAGE_SUPPORTS_GC"; in print_image_info32()
6065 outs() << " Swift 1.0"; in print_image_info32()
6067 outs() << " Swift 1.1"; in print_image_info32()
6069 outs() << " Swift 2.0"; in print_image_info32()
6071 outs() << " Swift 3.0"; in print_image_info32()
6073 outs() << " Swift 4.0"; in print_image_info32()
6075 outs() << " Swift 4.1/Swift 4.2"; in print_image_info32()
6077 outs() << " Swift 5 or later"; in print_image_info32()
6079 outs() << " unknown future Swift version (" << swift_version << ")"; in print_image_info32()
6081 outs() << "\n"; in print_image_info32()
6098 outs() << "Contents of (" << SegName << "," << SectName << ") section\n"; in print_image_info()
6106 outs() << " (imageInfo entends past the end of the section)\n"; in print_image_info()
6111 outs() << " version " << o.version << "\n"; in print_image_info()
6112 outs() << " flags " << format("0x%" PRIx32, o.flags); in print_image_info()
6114 outs() << " F&C"; in print_image_info()
6116 outs() << " GC"; in print_image_info()
6118 outs() << " GC-only"; in print_image_info()
6120 outs() << " RR"; in print_image_info()
6121 outs() << "\n"; in print_image_info()
6295 outs() << "Objective-C segment\n"; in printObjc1_32bit_MetaData()
6317 outs() << " (module extends past end of __module_info section)\n"; in printObjc1_32bit_MetaData()
6323 outs() << "Module " << format("0x%" PRIx32, p) << "\n"; in printObjc1_32bit_MetaData()
6324 outs() << " version " << module.version << "\n"; in printObjc1_32bit_MetaData()
6325 outs() << " size " << module.size << "\n"; in printObjc1_32bit_MetaData()
6326 outs() << " name "; in printObjc1_32bit_MetaData()
6329 outs() << format("%.*s", left, name); in printObjc1_32bit_MetaData()
6331 outs() << format("0x%08" PRIx32, module.name) in printObjc1_32bit_MetaData()
6333 outs() << "\n"; in printObjc1_32bit_MetaData()
6337 outs() << " symtab " << format("0x%08" PRIx32, module.symtab) in printObjc1_32bit_MetaData()
6341 outs() << " symtab " << format("0x%08" PRIx32, module.symtab) << "\n"; in printObjc1_32bit_MetaData()
6347 outs() << "\tsymtab extends past end of an __OBJC section)\n"; in printObjc1_32bit_MetaData()
6358 outs() << "\tsel_ref_cnt " << symtab.sel_ref_cnt << "\n"; in printObjc1_32bit_MetaData()
6360 outs() << "\trefs " << format("0x%08" PRIx32, symtab.refs); in printObjc1_32bit_MetaData()
6362 outs() << " (not in an __OBJC section)"; in printObjc1_32bit_MetaData()
6363 outs() << "\n"; in printObjc1_32bit_MetaData()
6364 outs() << "\tcls_def_cnt " << symtab.cls_def_cnt << "\n"; in printObjc1_32bit_MetaData()
6365 outs() << "\tcat_def_cnt " << symtab.cat_def_cnt << "\n"; in printObjc1_32bit_MetaData()
6367 outs() << "\tClass Definitions\n"; in printObjc1_32bit_MetaData()
6370 outs() << "\t(remaining class defs entries entends past the end of the " in printObjc1_32bit_MetaData()
6379 outs() << "\tdefs[" << j << "] " << format("0x%08" PRIx32, def); in printObjc1_32bit_MetaData()
6382 outs() << "\n"; in printObjc1_32bit_MetaData()
6385 outs() << " (entends past the end of the section)\n"; in printObjc1_32bit_MetaData()
6393 outs() << "(not in an __OBJC section)\n"; in printObjc1_32bit_MetaData()
6397 outs() << "\tMeta Class"; in printObjc1_32bit_MetaData()
6401 outs() << "\n"; in printObjc1_32bit_MetaData()
6404 outs() << " (entends past the end of the section)\n"; in printObjc1_32bit_MetaData()
6412 outs() << "(not in an __OBJC section)\n"; in printObjc1_32bit_MetaData()
6417 outs() << "\tCategory Definitions\n"; in printObjc1_32bit_MetaData()
6420 outs() << "\t(remaining category defs entries entends past the end of " in printObjc1_32bit_MetaData()
6430 outs() << "\tdefs[" << j + symtab.cls_def_cnt << "] " in printObjc1_32bit_MetaData()
6434 outs() << "\n"; in printObjc1_32bit_MetaData()
6437 outs() << " (entends past the end of the section)\n"; in printObjc1_32bit_MetaData()
6445 outs() << "(not in an __OBJC section)\n"; in printObjc1_32bit_MetaData()
6473 outs() << "Protocol extends past end of __protocol section\n"; in DumpProtocolSection()
6480 outs() << "Protocol " << format("0x%" PRIx32, paddr); in DumpProtocolSection()
6482 outs() << "(not in an __OBJC section)\n"; in DumpProtocolSection()
6499 outs() << "d"; in PrintModeVerbose()
6502 outs() << "c"; in PrintModeVerbose()
6505 outs() << "b"; in PrintModeVerbose()
6508 outs() << "-"; in PrintModeVerbose()
6511 outs() << "l"; in PrintModeVerbose()
6514 outs() << "s"; in PrintModeVerbose()
6517 outs() << "?"; in PrintModeVerbose()
6523 outs() << "r"; in PrintModeVerbose()
6525 outs() << "-"; in PrintModeVerbose()
6527 outs() << "w"; in PrintModeVerbose()
6529 outs() << "-"; in PrintModeVerbose()
6531 outs() << "s"; in PrintModeVerbose()
6533 outs() << "x"; in PrintModeVerbose()
6535 outs() << "-"; in PrintModeVerbose()
6539 outs() << "r"; in PrintModeVerbose()
6541 outs() << "-"; in PrintModeVerbose()
6543 outs() << "w"; in PrintModeVerbose()
6545 outs() << "-"; in PrintModeVerbose()
6547 outs() << "s"; in PrintModeVerbose()
6549 outs() << "x"; in PrintModeVerbose()
6551 outs() << "-"; in PrintModeVerbose()
6555 outs() << "r"; in PrintModeVerbose()
6557 outs() << "-"; in PrintModeVerbose()
6559 outs() << "w"; in PrintModeVerbose()
6561 outs() << "-"; in PrintModeVerbose()
6563 outs() << "t"; in PrintModeVerbose()
6565 outs() << "x"; in PrintModeVerbose()
6567 outs() << "-"; in PrintModeVerbose()
6604 outs() << "key: " << key << " value: " << val << "\n"; in PrintXarFilesSummary()
6624 outs() << "(mode: \"" << mode << "\" contains non-octal chars) "; in PrintXarFilesSummary()
6628 outs() << " "; in PrintXarFilesSummary()
6631 outs() << format("%10s/", user); in PrintXarFilesSummary()
6633 outs() << format("%-10s ", group); in PrintXarFilesSummary()
6635 outs() << format("%7s ", size); in PrintXarFilesSummary()
6638 outs() << *m; in PrintXarFilesSummary()
6641 outs() << " "; in PrintXarFilesSummary()
6643 outs() << *m; in PrintXarFilesSummary()
6644 outs() << " "; in PrintXarFilesSummary()
6647 outs() << name; in PrintXarFilesSummary()
6648 outs() << "\n"; in PrintXarFilesSummary()
6657 outs() << "size of (__LLVM,__bundle) section too small (smaller than size " in DumpBitcodeSection()
6667 outs() << "In xar member " << XarMemberName << ": "; in DumpBitcodeSection()
6669 outs() << "For (__LLVM,__bundle) section: "; in DumpBitcodeSection()
6670 outs() << "xar header\n"; in DumpBitcodeSection()
6672 outs() << " magic XAR_HEADER_MAGIC\n"; in DumpBitcodeSection()
6674 outs() << " magic " in DumpBitcodeSection()
6677 outs() << " size " << XarHeader.size << "\n"; in DumpBitcodeSection()
6678 outs() << " version " << XarHeader.version << "\n"; in DumpBitcodeSection()
6679 outs() << " toc_length_compressed " << XarHeader.toc_length_compressed in DumpBitcodeSection()
6681 outs() << "toc_length_uncompressed " << XarHeader.toc_length_uncompressed in DumpBitcodeSection()
6683 outs() << " cksum_alg "; in DumpBitcodeSection()
6686 outs() << "XAR_CKSUM_NONE\n"; in DumpBitcodeSection()
6689 outs() << "XAR_CKSUM_SHA1\n"; in DumpBitcodeSection()
6692 outs() << "XAR_CKSUM_MD5\n"; in DumpBitcodeSection()
6696 outs() << "XAR_CKSUM_SHA256\n"; in DumpBitcodeSection()
6701 outs() << "XAR_CKSUM_SHA512\n"; in DumpBitcodeSection()
6705 outs() << XarHeader.cksum_alg << "\n"; in DumpBitcodeSection()
6743 outs() << "In xar member " << XarMemberName << ": "; in DumpBitcodeSection()
6745 outs() << "For (__LLVM,__bundle) section: "; in DumpBitcodeSection()
6746 outs() << "xar archive files:\n"; in DumpBitcodeSection()
6759 outs() << "In xar member " << XarMemberName << ": "; in DumpBitcodeSection()
6761 outs() << "For (__LLVM,__bundle) section: "; in DumpBitcodeSection()
6762 outs() << "xar table of contents:\n"; in DumpBitcodeSection()
6763 outs() << Buffer->getBuffer() << "\n"; in DumpBitcodeSection()
6792 outs() << "key: " << key << " value: " << val << "\n"; in DumpBitcodeSection()
6815 outs() << "xar member: " << member_name << " extracted\n"; in DumpBitcodeSection()
6832 outs() << "could be a xar file: " << member_name << "\n"; in DumpBitcodeSection()
7453 outs() << "(" << DisSegName << "," << DisSectName << ") section\n"; in DisassembleMachO()
7495 outs() << "Can't find -dis-symname: " << DisSymName << "\n"; in DisassembleMachO()
7536 outs() << "-dis-symname: " << DisSymName << " not in the section\n"; in DisassembleMachO()
7547 outs() << "-dis-symname: __mh_execute_header not in any section\n"; in DisassembleMachO()
7570 outs() << "section data ends, " << SymName in DisassembleMachO()
7617 outs() << SymName << ":\n"; in DisassembleMachO()
7627 outs() << SymName << ":\n"; in DisassembleMachO()
7633 outs() << format("%016" PRIx64, PC); in DisassembleMachO()
7635 outs() << format("%08" PRIx64, PC); in DisassembleMachO()
7637 outs() << format("%8" PRIx64 ":", PC); in DisassembleMachO()
7641 outs() << "\t"; in DisassembleMachO()
7658 dumpBytes(makeArrayRef(Bytes.data() + Index, Size), outs()); in DisassembleMachO()
7660 formatted_raw_ostream FormattedOS(outs()); in DisassembleMachO()
7674 outs() << "\t## " << dli.FileName << ':' << dli.Line << ':' in DisassembleMachO()
7678 outs() << "\n"; in DisassembleMachO()
7681 outs() << format("\t.byte 0x%02x #bad opcode\n", in DisassembleMachO()
7690 outs() << format("\t.long\t0x%08x\n", opcode); in DisassembleMachO()
7696 outs() << format("\t.short\t0x%04x\n", opcode); in DisassembleMachO()
7730 outs() << format("%016" PRIx64, PC); in DisassembleMachO()
7732 outs() << format("%08" PRIx64, PC); in DisassembleMachO()
7734 outs() << format("%8" PRIx64 ":", PC); in DisassembleMachO()
7738 outs() << "\t"; in DisassembleMachO()
7739 dumpBytes(makeArrayRef(Bytes.data() + Index, InstSize), outs()); in DisassembleMachO()
7742 IP->printInst(&Inst, PC, AnnotationsStr, *STI, outs()); in DisassembleMachO()
7743 outs() << "\n"; in DisassembleMachO()
7746 outs() << format("\t.byte 0x%02x #bad opcode\n", in DisassembleMachO()
7782 outs() << "warning: attempt to read past end of buffer\n"; in read()
7901 outs() << Name; in printUnwindRelocDest()
7903 outs() << " + " << format("0x%" PRIx64, Addend); in printUnwindRelocDest()
7912 outs() << "Skipping big-endian __compact_unwind section\n"; in printMachOCompactUnwindSection()
7946 outs() << "Invalid relocation in __compact_unwind section\n"; in printMachOCompactUnwindSection()
7952 outs() << "Contents of __compact_unwind section:\n"; in printMachOCompactUnwindSection()
7954 outs() << " Entry at offset " in printMachOCompactUnwindSection()
7958 outs() << " start: " << format("0x%" PRIx64, in printMachOCompactUnwindSection()
7961 outs() << '\n'; in printMachOCompactUnwindSection()
7964 outs() << " length: " << format("0x%" PRIx32, Entry.Length) in printMachOCompactUnwindSection()
7967 outs() << " compact encoding: " in printMachOCompactUnwindSection()
7972 outs() << " personality function: " in printMachOCompactUnwindSection()
7976 outs() << '\n'; in printMachOCompactUnwindSection()
7981 outs() << " LSDA: " << format("0x%" PRIx64, in printMachOCompactUnwindSection()
7984 outs() << '\n'; in printMachOCompactUnwindSection()
8007 outs() << " [" << i << "]: " in printRegularSecondLevelUnwindPage()
8030 outs() << " Page encodings: (count = " << NumPageEncodings << ")\n"; in printCompressedSecondLevelUnwindPage()
8035 outs() << " encoding[" << (i + NumCommonEncodings) in printCompressedSecondLevelUnwindPage()
8052 outs() << " [" << i << "]: " in printCompressedSecondLevelUnwindPage()
8065 outs() << "Skipping big-endian __unwind_info section\n"; in printMachOUnwindInfoSection()
8069 outs() << "Contents of __unwind_info section:\n"; in printMachOUnwindInfoSection()
8080 outs() << " Version: " in printMachOUnwindInfoSection()
8083 outs() << " Skipping section with unknown version\n"; in printMachOUnwindInfoSection()
8088 outs() << " Common encodings array section offset: " in printMachOUnwindInfoSection()
8091 outs() << " Number of common encodings in array: " in printMachOUnwindInfoSection()
8095 outs() << " Personality function array section offset: " in printMachOUnwindInfoSection()
8098 outs() << " Number of personality functions in array: " in printMachOUnwindInfoSection()
8102 outs() << " Index array section offset: " in printMachOUnwindInfoSection()
8105 outs() << " Number of indices in array: " in printMachOUnwindInfoSection()
8118 outs() << " Common encodings: (count = " << NumCommonEncodings << ")\n"; in printMachOUnwindInfoSection()
8124 outs() << " encoding[" << i << "]: " << format("0x%08" PRIx32, Encoding) in printMachOUnwindInfoSection()
8135 outs() << " Personality functions: (count = " << NumPersonalities << ")\n"; in printMachOUnwindInfoSection()
8139 outs() << " personality[" << i + 1 in printMachOUnwindInfoSection()
8158 outs() << " Top level indices: (count = " << NumIndices << ")\n"; in printMachOUnwindInfoSection()
8168 outs() << " [" << i << "]: " in printMachOUnwindInfoSection()
8183 outs() << " LSDA descriptors:\n"; in printMachOUnwindInfoSection()
8192 outs() << " [" << i << "]: " in printMachOUnwindInfoSection()
8206 outs() << " Second level indices:\n"; in printMachOUnwindInfoSection()
8212 outs() << " Second level index[" << i << "]: " in printMachOUnwindInfoSection()
8221 outs() << "warning: invalid offset for second level page: " << Pos << '\n'; in printMachOUnwindInfoSection()
8234 outs() << " Skipping 2nd level page with unknown kind " << Kind in printMachOUnwindInfoSection()
8276 outs() << "Mach header\n"; in PrintMachHeader()
8277 outs() << " magic cputype cpusubtype caps filetype ncmds " in PrintMachHeader()
8281 outs() << " MH_MAGIC"; in PrintMachHeader()
8283 outs() << "MH_MAGIC_64"; in PrintMachHeader()
8285 outs() << format(" 0x%08" PRIx32, magic); in PrintMachHeader()
8288 outs() << " I386"; in PrintMachHeader()
8291 outs() << " ALL"; in PrintMachHeader()
8294 outs() << format(" %10d", cpusubtype & ~MachO::CPU_SUBTYPE_MASK); in PrintMachHeader()
8299 outs() << " X86_64"; in PrintMachHeader()
8302 outs() << " ALL"; in PrintMachHeader()
8305 outs() << " Haswell"; in PrintMachHeader()
8308 outs() << format(" %10d", cpusubtype & ~MachO::CPU_SUBTYPE_MASK); in PrintMachHeader()
8313 outs() << " ARM"; in PrintMachHeader()
8316 outs() << " ALL"; in PrintMachHeader()
8319 outs() << " V4T"; in PrintMachHeader()
8322 outs() << " V5TEJ"; in PrintMachHeader()
8325 outs() << " XSCALE"; in PrintMachHeader()
8328 outs() << " V6"; in PrintMachHeader()
8331 outs() << " V6M"; in PrintMachHeader()
8334 outs() << " V7"; in PrintMachHeader()
8337 outs() << " V7EM"; in PrintMachHeader()
8340 outs() << " V7K"; in PrintMachHeader()
8343 outs() << " V7M"; in PrintMachHeader()
8346 outs() << " V7S"; in PrintMachHeader()
8349 outs() << format(" %10d", cpusubtype & ~MachO::CPU_SUBTYPE_MASK); in PrintMachHeader()
8354 outs() << " ARM64"; in PrintMachHeader()
8357 outs() << " ALL"; in PrintMachHeader()
8360 outs() << " V8"; in PrintMachHeader()
8363 outs() << " E"; in PrintMachHeader()
8366 outs() << format(" %10d", cpusubtype & ~MachO::CPU_SUBTYPE_MASK); in PrintMachHeader()
8371 outs() << " ARM64_32"; in PrintMachHeader()
8374 outs() << " V8"; in PrintMachHeader()
8377 outs() << format(" %10d", cpusubtype & ~MachO::CPU_SUBTYPE_MASK); in PrintMachHeader()
8382 outs() << " PPC"; in PrintMachHeader()
8385 outs() << " ALL"; in PrintMachHeader()
8388 outs() << format(" %10d", cpusubtype & ~MachO::CPU_SUBTYPE_MASK); in PrintMachHeader()
8393 outs() << " PPC64"; in PrintMachHeader()
8396 outs() << " ALL"; in PrintMachHeader()
8399 outs() << format(" %10d", cpusubtype & ~MachO::CPU_SUBTYPE_MASK); in PrintMachHeader()
8404 outs() << format(" %7d", cputype); in PrintMachHeader()
8405 outs() << format(" %10d", cpusubtype & ~MachO::CPU_SUBTYPE_MASK); in PrintMachHeader()
8409 outs() << " LIB64"; in PrintMachHeader()
8411 outs() << format(" 0x%02" PRIx32, in PrintMachHeader()
8416 outs() << " OBJECT"; in PrintMachHeader()
8419 outs() << " EXECUTE"; in PrintMachHeader()
8422 outs() << " FVMLIB"; in PrintMachHeader()
8425 outs() << " CORE"; in PrintMachHeader()
8428 outs() << " PRELOAD"; in PrintMachHeader()
8431 outs() << " DYLIB"; in PrintMachHeader()
8434 outs() << " DYLIB_STUB"; in PrintMachHeader()
8437 outs() << " DYLINKER"; in PrintMachHeader()
8440 outs() << " BUNDLE"; in PrintMachHeader()
8443 outs() << " DSYM"; in PrintMachHeader()
8446 outs() << " KEXTBUNDLE"; in PrintMachHeader()
8449 outs() << format(" %10u", filetype); in PrintMachHeader()
8452 outs() << format(" %5u", ncmds); in PrintMachHeader()
8453 outs() << format(" %10u", sizeofcmds); in PrintMachHeader()
8456 outs() << " NOUNDEFS"; in PrintMachHeader()
8460 outs() << " INCRLINK"; in PrintMachHeader()
8464 outs() << " DYLDLINK"; in PrintMachHeader()
8468 outs() << " BINDATLOAD"; in PrintMachHeader()
8472 outs() << " PREBOUND"; in PrintMachHeader()
8476 outs() << " SPLIT_SEGS"; in PrintMachHeader()
8480 outs() << " LAZY_INIT"; in PrintMachHeader()
8484 outs() << " TWOLEVEL"; in PrintMachHeader()
8488 outs() << " FORCE_FLAT"; in PrintMachHeader()
8492 outs() << " NOMULTIDEFS"; in PrintMachHeader()
8496 outs() << " NOFIXPREBINDING"; in PrintMachHeader()
8500 outs() << " PREBINDABLE"; in PrintMachHeader()
8504 outs() << " ALLMODSBOUND"; in PrintMachHeader()
8508 outs() << " SUBSECTIONS_VIA_SYMBOLS"; in PrintMachHeader()
8512 outs() << " CANONICAL"; in PrintMachHeader()
8516 outs() << " WEAK_DEFINES"; in PrintMachHeader()
8520 outs() << " BINDS_TO_WEAK"; in PrintMachHeader()
8524 outs() << " ALLOW_STACK_EXECUTION"; in PrintMachHeader()
8528 outs() << " DEAD_STRIPPABLE_DYLIB"; in PrintMachHeader()
8532 outs() << " PIE"; in PrintMachHeader()
8536 outs() << " NO_REEXPORTED_DYLIBS"; in PrintMachHeader()
8540 outs() << " MH_HAS_TLV_DESCRIPTORS"; in PrintMachHeader()
8544 outs() << " MH_NO_HEAP_EXECUTION"; in PrintMachHeader()
8548 outs() << " APP_EXTENSION_SAFE"; in PrintMachHeader()
8552 outs() << " NLIST_OUTOFSYNC_WITH_DYLDINFO"; in PrintMachHeader()
8556 outs() << format(" 0x%08" PRIx32, f); in PrintMachHeader()
8558 outs() << format(" 0x%08" PRIx32, magic); in PrintMachHeader()
8559 outs() << format(" %7d", cputype); in PrintMachHeader()
8560 outs() << format(" %10d", cpusubtype & ~MachO::CPU_SUBTYPE_MASK); in PrintMachHeader()
8561 outs() << format(" 0x%02" PRIx32, in PrintMachHeader()
8563 outs() << format(" %10u", filetype); in PrintMachHeader()
8564 outs() << format(" %5u", ncmds); in PrintMachHeader()
8565 outs() << format(" %10u", sizeofcmds); in PrintMachHeader()
8566 outs() << format(" 0x%08" PRIx32, flags); in PrintMachHeader()
8568 outs() << "\n"; in PrintMachHeader()
8580 outs() << " cmd LC_SEGMENT\n"; in PrintSegmentCommand()
8585 outs() << " cmd LC_SEGMENT_64\n"; in PrintSegmentCommand()
8590 outs() << " cmdsize " << cmdsize; in PrintSegmentCommand()
8592 outs() << " Inconsistent size\n"; in PrintSegmentCommand()
8594 outs() << "\n"; in PrintSegmentCommand()
8595 outs() << " segname " << SegName << "\n"; in PrintSegmentCommand()
8597 outs() << " vmaddr " << format("0x%016" PRIx64, vmaddr) << "\n"; in PrintSegmentCommand()
8598 outs() << " vmsize " << format("0x%016" PRIx64, vmsize) << "\n"; in PrintSegmentCommand()
8600 outs() << " vmaddr " << format("0x%08" PRIx64, vmaddr) << "\n"; in PrintSegmentCommand()
8601 outs() << " vmsize " << format("0x%08" PRIx64, vmsize) << "\n"; in PrintSegmentCommand()
8603 outs() << " fileoff " << fileoff; in PrintSegmentCommand()
8605 outs() << " (past end of file)\n"; in PrintSegmentCommand()
8607 outs() << "\n"; in PrintSegmentCommand()
8608 outs() << " filesize " << filesize; in PrintSegmentCommand()
8610 outs() << " (past end of file)\n"; in PrintSegmentCommand()
8612 outs() << "\n"; in PrintSegmentCommand()
8617 outs() << " maxprot ?" << format("0x%08" PRIx32, maxprot) << "\n"; in PrintSegmentCommand()
8619 outs() << " maxprot "; in PrintSegmentCommand()
8620 outs() << ((maxprot & MachO::VM_PROT_READ) ? "r" : "-"); in PrintSegmentCommand()
8621 outs() << ((maxprot & MachO::VM_PROT_WRITE) ? "w" : "-"); in PrintSegmentCommand()
8622 outs() << ((maxprot & MachO::VM_PROT_EXECUTE) ? "x\n" : "-\n"); in PrintSegmentCommand()
8627 outs() << " initprot ?" << format("0x%08" PRIx32, initprot) << "\n"; in PrintSegmentCommand()
8629 outs() << " initprot "; in PrintSegmentCommand()
8630 outs() << ((initprot & MachO::VM_PROT_READ) ? "r" : "-"); in PrintSegmentCommand()
8631 outs() << ((initprot & MachO::VM_PROT_WRITE) ? "w" : "-"); in PrintSegmentCommand()
8632 outs() << ((initprot & MachO::VM_PROT_EXECUTE) ? "x\n" : "-\n"); in PrintSegmentCommand()
8635 outs() << " maxprot " << format("0x%08" PRIx32, maxprot) << "\n"; in PrintSegmentCommand()
8636 outs() << " initprot " << format("0x%08" PRIx32, initprot) << "\n"; in PrintSegmentCommand()
8638 outs() << " nsects " << nsects << "\n"; in PrintSegmentCommand()
8640 outs() << " flags"; in PrintSegmentCommand()
8642 outs() << " (none)\n"; in PrintSegmentCommand()
8645 outs() << " HIGHVM"; in PrintSegmentCommand()
8649 outs() << " FVMLIB"; in PrintSegmentCommand()
8653 outs() << " NORELOC"; in PrintSegmentCommand()
8657 outs() << " PROTECTED_VERSION_1"; in PrintSegmentCommand()
8661 outs() << format(" 0x%08" PRIx32, flags) << " (unknown flags)\n"; in PrintSegmentCommand()
8663 outs() << "\n"; in PrintSegmentCommand()
8666 outs() << " flags " << format("0x%" PRIx32, flags) << "\n"; in PrintSegmentCommand()
8677 outs() << "Section\n"; in PrintSection()
8678 outs() << " sectname " << format("%.16s\n", sectname); in PrintSection()
8679 outs() << " segname " << format("%.16s", segname); in PrintSection()
8681 outs() << " (does not match segment)\n"; in PrintSection()
8683 outs() << "\n"; in PrintSection()
8685 outs() << " addr " << format("0x%016" PRIx64, addr) << "\n"; in PrintSection()
8686 outs() << " size " << format("0x%016" PRIx64, size); in PrintSection()
8688 outs() << " addr " << format("0x%08" PRIx64, addr) << "\n"; in PrintSection()
8689 outs() << " size " << format("0x%08" PRIx64, size); in PrintSection()
8692 outs() << " (past end of file)\n"; in PrintSection()
8694 outs() << "\n"; in PrintSection()
8695 outs() << " offset " << offset; in PrintSection()
8697 outs() << " (past end of file)\n"; in PrintSection()
8699 outs() << "\n"; in PrintSection()
8701 outs() << " align 2^" << align << " (" << align_shifted << ")\n"; in PrintSection()
8702 outs() << " reloff " << reloff; in PrintSection()
8704 outs() << " (past end of file)\n"; in PrintSection()
8706 outs() << "\n"; in PrintSection()
8707 outs() << " nreloc " << nreloc; in PrintSection()
8709 outs() << " (past end of file)\n"; in PrintSection()
8711 outs() << "\n"; in PrintSection()
8714 outs() << " type"; in PrintSection()
8716 outs() << " S_REGULAR\n"; in PrintSection()
8718 outs() << " S_ZEROFILL\n"; in PrintSection()
8720 outs() << " S_CSTRING_LITERALS\n"; in PrintSection()
8722 outs() << " S_4BYTE_LITERALS\n"; in PrintSection()
8724 outs() << " S_8BYTE_LITERALS\n"; in PrintSection()
8726 outs() << " S_16BYTE_LITERALS\n"; in PrintSection()
8728 outs() << " S_LITERAL_POINTERS\n"; in PrintSection()
8730 outs() << " S_NON_LAZY_SYMBOL_POINTERS\n"; in PrintSection()
8732 outs() << " S_LAZY_SYMBOL_POINTERS\n"; in PrintSection()
8734 outs() << " S_SYMBOL_STUBS\n"; in PrintSection()
8736 outs() << " S_MOD_INIT_FUNC_POINTERS\n"; in PrintSection()
8738 outs() << " S_MOD_TERM_FUNC_POINTERS\n"; in PrintSection()
8740 outs() << " S_COALESCED\n"; in PrintSection()
8742 outs() << " S_INTERPOSING\n"; in PrintSection()
8744 outs() << " S_DTRACE_DOF\n"; in PrintSection()
8746 outs() << " S_LAZY_DYLIB_SYMBOL_POINTERS\n"; in PrintSection()
8748 outs() << " S_THREAD_LOCAL_REGULAR\n"; in PrintSection()
8750 outs() << " S_THREAD_LOCAL_ZEROFILL\n"; in PrintSection()
8752 outs() << " S_THREAD_LOCAL_VARIABLES\n"; in PrintSection()
8754 outs() << " S_THREAD_LOCAL_VARIABLE_POINTERS\n"; in PrintSection()
8756 outs() << " S_THREAD_LOCAL_INIT_FUNCTION_POINTERS\n"; in PrintSection()
8758 outs() << format("0x%08" PRIx32, section_type) << "\n"; in PrintSection()
8759 outs() << "attributes"; in PrintSection()
8762 outs() << " PURE_INSTRUCTIONS"; in PrintSection()
8764 outs() << " NO_TOC"; in PrintSection()
8766 outs() << " STRIP_STATIC_SYMS"; in PrintSection()
8768 outs() << " NO_DEAD_STRIP"; in PrintSection()
8770 outs() << " LIVE_SUPPORT"; in PrintSection()
8772 outs() << " SELF_MODIFYING_CODE"; in PrintSection()
8774 outs() << " DEBUG"; in PrintSection()
8776 outs() << " SOME_INSTRUCTIONS"; in PrintSection()
8778 outs() << " EXT_RELOC"; in PrintSection()
8780 outs() << " LOC_RELOC"; in PrintSection()
8782 outs() << " (none)"; in PrintSection()
8783 outs() << "\n"; in PrintSection()
8785 outs() << " flags " << format("0x%08" PRIx32, flags) << "\n"; in PrintSection()
8786 outs() << " reserved1 " << reserved1; in PrintSection()
8792 outs() << " (index into indirect symbol table)\n"; in PrintSection()
8794 outs() << "\n"; in PrintSection()
8795 outs() << " reserved2 " << reserved2; in PrintSection()
8797 outs() << " (size of stubs)\n"; in PrintSection()
8799 outs() << "\n"; in PrintSection()
8804 outs() << " cmd LC_SYMTAB\n"; in PrintSymtabLoadCommand()
8805 outs() << " cmdsize " << st.cmdsize; in PrintSymtabLoadCommand()
8807 outs() << " Incorrect size\n"; in PrintSymtabLoadCommand()
8809 outs() << "\n"; in PrintSymtabLoadCommand()
8810 outs() << " symoff " << st.symoff; in PrintSymtabLoadCommand()
8812 outs() << " (past end of file)\n"; in PrintSymtabLoadCommand()
8814 outs() << "\n"; in PrintSymtabLoadCommand()
8815 outs() << " nsyms " << st.nsyms; in PrintSymtabLoadCommand()
8822 outs() << " (past end of file)\n"; in PrintSymtabLoadCommand()
8824 outs() << "\n"; in PrintSymtabLoadCommand()
8830 outs() << " (past end of file)\n"; in PrintSymtabLoadCommand()
8832 outs() << "\n"; in PrintSymtabLoadCommand()
8834 outs() << " stroff " << st.stroff; in PrintSymtabLoadCommand()
8836 outs() << " (past end of file)\n"; in PrintSymtabLoadCommand()
8838 outs() << "\n"; in PrintSymtabLoadCommand()
8839 outs() << " strsize " << st.strsize; in PrintSymtabLoadCommand()
8843 outs() << " (past end of file)\n"; in PrintSymtabLoadCommand()
8845 outs() << "\n"; in PrintSymtabLoadCommand()
8851 outs() << " cmd LC_DYSYMTAB\n"; in PrintDysymtabLoadCommand()
8852 outs() << " cmdsize " << dyst.cmdsize; in PrintDysymtabLoadCommand()
8854 outs() << " Incorrect size\n"; in PrintDysymtabLoadCommand()
8856 outs() << "\n"; in PrintDysymtabLoadCommand()
8857 outs() << " ilocalsym " << dyst.ilocalsym; in PrintDysymtabLoadCommand()
8859 outs() << " (greater than the number of symbols)\n"; in PrintDysymtabLoadCommand()
8861 outs() << "\n"; in PrintDysymtabLoadCommand()
8862 outs() << " nlocalsym " << dyst.nlocalsym; in PrintDysymtabLoadCommand()
8867 outs() << " (past the end of the symbol table)\n"; in PrintDysymtabLoadCommand()
8869 outs() << "\n"; in PrintDysymtabLoadCommand()
8870 outs() << " iextdefsym " << dyst.iextdefsym; in PrintDysymtabLoadCommand()
8872 outs() << " (greater than the number of symbols)\n"; in PrintDysymtabLoadCommand()
8874 outs() << "\n"; in PrintDysymtabLoadCommand()
8875 outs() << " nextdefsym " << dyst.nextdefsym; in PrintDysymtabLoadCommand()
8879 outs() << " (past the end of the symbol table)\n"; in PrintDysymtabLoadCommand()
8881 outs() << "\n"; in PrintDysymtabLoadCommand()
8882 outs() << " iundefsym " << dyst.iundefsym; in PrintDysymtabLoadCommand()
8884 outs() << " (greater than the number of symbols)\n"; in PrintDysymtabLoadCommand()
8886 outs() << "\n"; in PrintDysymtabLoadCommand()
8887 outs() << " nundefsym " << dyst.nundefsym; in PrintDysymtabLoadCommand()
8891 outs() << " (past the end of the symbol table)\n"; in PrintDysymtabLoadCommand()
8893 outs() << "\n"; in PrintDysymtabLoadCommand()
8894 outs() << " tocoff " << dyst.tocoff; in PrintDysymtabLoadCommand()
8896 outs() << " (past end of file)\n"; in PrintDysymtabLoadCommand()
8898 outs() << "\n"; in PrintDysymtabLoadCommand()
8899 outs() << " ntoc " << dyst.ntoc; in PrintDysymtabLoadCommand()
8904 outs() << " (past end of file)\n"; in PrintDysymtabLoadCommand()
8906 outs() << "\n"; in PrintDysymtabLoadCommand()
8907 outs() << " modtaboff " << dyst.modtaboff; in PrintDysymtabLoadCommand()
8909 outs() << " (past end of file)\n"; in PrintDysymtabLoadCommand()
8911 outs() << "\n"; in PrintDysymtabLoadCommand()
8912 outs() << " nmodtab " << dyst.nmodtab; in PrintDysymtabLoadCommand()
8924 outs() << " (past end of file)\n"; in PrintDysymtabLoadCommand()
8926 outs() << "\n"; in PrintDysymtabLoadCommand()
8927 outs() << " extrefsymoff " << dyst.extrefsymoff; in PrintDysymtabLoadCommand()
8929 outs() << " (past end of file)\n"; in PrintDysymtabLoadCommand()
8931 outs() << "\n"; in PrintDysymtabLoadCommand()
8932 outs() << " nextrefsyms " << dyst.nextrefsyms; in PrintDysymtabLoadCommand()
8937 outs() << " (past end of file)\n"; in PrintDysymtabLoadCommand()
8939 outs() << "\n"; in PrintDysymtabLoadCommand()
8940 outs() << " indirectsymoff " << dyst.indirectsymoff; in PrintDysymtabLoadCommand()
8942 outs() << " (past end of file)\n"; in PrintDysymtabLoadCommand()
8944 outs() << "\n"; in PrintDysymtabLoadCommand()
8945 outs() << " nindirectsyms " << dyst.nindirectsyms; in PrintDysymtabLoadCommand()
8950 outs() << " (past end of file)\n"; in PrintDysymtabLoadCommand()
8952 outs() << "\n"; in PrintDysymtabLoadCommand()
8953 outs() << " extreloff " << dyst.extreloff; in PrintDysymtabLoadCommand()
8955 outs() << " (past end of file)\n"; in PrintDysymtabLoadCommand()
8957 outs() << "\n"; in PrintDysymtabLoadCommand()
8958 outs() << " nextrel " << dyst.nextrel; in PrintDysymtabLoadCommand()
8963 outs() << " (past end of file)\n"; in PrintDysymtabLoadCommand()
8965 outs() << "\n"; in PrintDysymtabLoadCommand()
8966 outs() << " locreloff " << dyst.locreloff; in PrintDysymtabLoadCommand()
8968 outs() << " (past end of file)\n"; in PrintDysymtabLoadCommand()
8970 outs() << "\n"; in PrintDysymtabLoadCommand()
8971 outs() << " nlocrel " << dyst.nlocrel; in PrintDysymtabLoadCommand()
8976 outs() << " (past end of file)\n"; in PrintDysymtabLoadCommand()
8978 outs() << "\n"; in PrintDysymtabLoadCommand()
8984 outs() << " cmd LC_DYLD_INFO\n"; in PrintDyldInfoLoadCommand()
8986 outs() << " cmd LC_DYLD_INFO_ONLY\n"; in PrintDyldInfoLoadCommand()
8987 outs() << " cmdsize " << dc.cmdsize; in PrintDyldInfoLoadCommand()
8989 outs() << " Incorrect size\n"; in PrintDyldInfoLoadCommand()
8991 outs() << "\n"; in PrintDyldInfoLoadCommand()
8992 outs() << " rebase_off " << dc.rebase_off; in PrintDyldInfoLoadCommand()
8994 outs() << " (past end of file)\n"; in PrintDyldInfoLoadCommand()
8996 outs() << "\n"; in PrintDyldInfoLoadCommand()
8997 outs() << " rebase_size " << dc.rebase_size; in PrintDyldInfoLoadCommand()
9002 outs() << " (past end of file)\n"; in PrintDyldInfoLoadCommand()
9004 outs() << "\n"; in PrintDyldInfoLoadCommand()
9005 outs() << " bind_off " << dc.bind_off; in PrintDyldInfoLoadCommand()
9007 outs() << " (past end of file)\n"; in PrintDyldInfoLoadCommand()
9009 outs() << "\n"; in PrintDyldInfoLoadCommand()
9010 outs() << " bind_size " << dc.bind_size; in PrintDyldInfoLoadCommand()
9014 outs() << " (past end of file)\n"; in PrintDyldInfoLoadCommand()
9016 outs() << "\n"; in PrintDyldInfoLoadCommand()
9017 outs() << " weak_bind_off " << dc.weak_bind_off; in PrintDyldInfoLoadCommand()
9019 outs() << " (past end of file)\n"; in PrintDyldInfoLoadCommand()
9021 outs() << "\n"; in PrintDyldInfoLoadCommand()
9022 outs() << " weak_bind_size " << dc.weak_bind_size; in PrintDyldInfoLoadCommand()
9026 outs() << " (past end of file)\n"; in PrintDyldInfoLoadCommand()
9028 outs() << "\n"; in PrintDyldInfoLoadCommand()
9029 outs() << " lazy_bind_off " << dc.lazy_bind_off; in PrintDyldInfoLoadCommand()
9031 outs() << " (past end of file)\n"; in PrintDyldInfoLoadCommand()
9033 outs() << "\n"; in PrintDyldInfoLoadCommand()
9034 outs() << " lazy_bind_size " << dc.lazy_bind_size; in PrintDyldInfoLoadCommand()
9038 outs() << " (past end of file)\n"; in PrintDyldInfoLoadCommand()
9040 outs() << "\n"; in PrintDyldInfoLoadCommand()
9041 outs() << " export_off " << dc.export_off; in PrintDyldInfoLoadCommand()
9043 outs() << " (past end of file)\n"; in PrintDyldInfoLoadCommand()
9045 outs() << "\n"; in PrintDyldInfoLoadCommand()
9046 outs() << " export_size " << dc.export_size; in PrintDyldInfoLoadCommand()
9050 outs() << " (past end of file)\n"; in PrintDyldInfoLoadCommand()
9052 outs() << "\n"; in PrintDyldInfoLoadCommand()
9058 outs() << " cmd LC_ID_DYLINKER\n"; in PrintDyldLoadCommand()
9060 outs() << " cmd LC_LOAD_DYLINKER\n"; in PrintDyldLoadCommand()
9062 outs() << " cmd LC_DYLD_ENVIRONMENT\n"; in PrintDyldLoadCommand()
9064 outs() << " cmd ?(" << dyld.cmd << ")\n"; in PrintDyldLoadCommand()
9065 outs() << " cmdsize " << dyld.cmdsize; in PrintDyldLoadCommand()
9067 outs() << " Incorrect size\n"; in PrintDyldLoadCommand()
9069 outs() << "\n"; in PrintDyldLoadCommand()
9071 outs() << " name ?(bad offset " << dyld.name << ")\n"; in PrintDyldLoadCommand()
9074 outs() << " name " << P << " (offset " << dyld.name << ")\n"; in PrintDyldLoadCommand()
9079 outs() << " cmd LC_UUID\n"; in PrintUuidLoadCommand()
9080 outs() << " cmdsize " << uuid.cmdsize; in PrintUuidLoadCommand()
9082 outs() << " Incorrect size\n"; in PrintUuidLoadCommand()
9084 outs() << "\n"; in PrintUuidLoadCommand()
9085 outs() << " uuid "; in PrintUuidLoadCommand()
9087 outs() << format("%02" PRIX32, uuid.uuid[i]); in PrintUuidLoadCommand()
9089 outs() << "-"; in PrintUuidLoadCommand()
9091 outs() << "\n"; in PrintUuidLoadCommand()
9095 outs() << " cmd LC_RPATH\n"; in PrintRpathLoadCommand()
9096 outs() << " cmdsize " << rpath.cmdsize; in PrintRpathLoadCommand()
9098 outs() << " Incorrect size\n"; in PrintRpathLoadCommand()
9100 outs() << "\n"; in PrintRpathLoadCommand()
9102 outs() << " path ?(bad offset " << rpath.path << ")\n"; in PrintRpathLoadCommand()
9105 outs() << " path " << P << " (offset " << rpath.path << ")\n"; in PrintRpathLoadCommand()
9128 outs() << " cmd " << LoadCmdName << '\n'; in PrintVersionMinLoadCommand()
9129 outs() << " cmdsize " << vd.cmdsize; in PrintVersionMinLoadCommand()
9131 outs() << " Incorrect size\n"; in PrintVersionMinLoadCommand()
9133 outs() << "\n"; in PrintVersionMinLoadCommand()
9134 outs() << " version " in PrintVersionMinLoadCommand()
9139 outs() << "." << Update; in PrintVersionMinLoadCommand()
9140 outs() << "\n"; in PrintVersionMinLoadCommand()
9142 outs() << " sdk n/a"; in PrintVersionMinLoadCommand()
9144 outs() << " sdk " in PrintVersionMinLoadCommand()
9150 outs() << "." << Update; in PrintVersionMinLoadCommand()
9151 outs() << "\n"; in PrintVersionMinLoadCommand()
9155 outs() << " cmd LC_NOTE\n"; in PrintNoteLoadCommand()
9156 outs() << " cmdsize " << Nt.cmdsize; in PrintNoteLoadCommand()
9158 outs() << " Incorrect size\n"; in PrintNoteLoadCommand()
9160 outs() << "\n"; in PrintNoteLoadCommand()
9162 outs() << "data_owner " << format("%.16s\n", d); in PrintNoteLoadCommand()
9163 outs() << " offset " << Nt.offset << "\n"; in PrintNoteLoadCommand()
9164 outs() << " size " << Nt.size << "\n"; in PrintNoteLoadCommand()
9168 outs() << " tool "; in PrintBuildToolVersion()
9170 outs() << MachOObjectFile::getBuildTool(bv.tool); in PrintBuildToolVersion()
9172 outs() << bv.tool; in PrintBuildToolVersion()
9173 outs() << "\n"; in PrintBuildToolVersion()
9174 outs() << " version " << MachOObjectFile::getVersionString(bv.version) in PrintBuildToolVersion()
9181 outs() << " cmd LC_BUILD_VERSION\n"; in PrintBuildVersionLoadCommand()
9182 outs() << " cmdsize " << bd.cmdsize; in PrintBuildVersionLoadCommand()
9186 outs() << " Incorrect size\n"; in PrintBuildVersionLoadCommand()
9188 outs() << "\n"; in PrintBuildVersionLoadCommand()
9189 outs() << " platform "; in PrintBuildVersionLoadCommand()
9191 outs() << MachOObjectFile::getBuildPlatform(bd.platform); in PrintBuildVersionLoadCommand()
9193 outs() << bd.platform; in PrintBuildVersionLoadCommand()
9194 outs() << "\n"; in PrintBuildVersionLoadCommand()
9196 outs() << " sdk " << MachOObjectFile::getVersionString(bd.sdk) in PrintBuildVersionLoadCommand()
9199 outs() << " sdk n/a\n"; in PrintBuildVersionLoadCommand()
9200 outs() << " minos " << MachOObjectFile::getVersionString(bd.minos) in PrintBuildVersionLoadCommand()
9202 outs() << " ntools " << bd.ntools << "\n"; in PrintBuildVersionLoadCommand()
9210 outs() << " cmd LC_SOURCE_VERSION\n"; in PrintSourceVersionCommand()
9211 outs() << " cmdsize " << sd.cmdsize; in PrintSourceVersionCommand()
9213 outs() << " Incorrect size\n"; in PrintSourceVersionCommand()
9215 outs() << "\n"; in PrintSourceVersionCommand()
9221 outs() << " version " << a << "." << b; in PrintSourceVersionCommand()
9223 outs() << "." << c << "." << d << "." << e; in PrintSourceVersionCommand()
9225 outs() << "." << c << "." << d; in PrintSourceVersionCommand()
9227 outs() << "." << c; in PrintSourceVersionCommand()
9228 outs() << "\n"; in PrintSourceVersionCommand()
9232 outs() << " cmd LC_MAIN\n"; in PrintEntryPointCommand()
9233 outs() << " cmdsize " << ep.cmdsize; in PrintEntryPointCommand()
9235 outs() << " Incorrect size\n"; in PrintEntryPointCommand()
9237 outs() << "\n"; in PrintEntryPointCommand()
9238 outs() << " entryoff " << ep.entryoff << "\n"; in PrintEntryPointCommand()
9239 outs() << " stacksize " << ep.stacksize << "\n"; in PrintEntryPointCommand()
9244 outs() << " cmd LC_ENCRYPTION_INFO\n"; in PrintEncryptionInfoCommand()
9245 outs() << " cmdsize " << ec.cmdsize; in PrintEncryptionInfoCommand()
9247 outs() << " Incorrect size\n"; in PrintEncryptionInfoCommand()
9249 outs() << "\n"; in PrintEncryptionInfoCommand()
9250 outs() << " cryptoff " << ec.cryptoff; in PrintEncryptionInfoCommand()
9252 outs() << " (past end of file)\n"; in PrintEncryptionInfoCommand()
9254 outs() << "\n"; in PrintEncryptionInfoCommand()
9255 outs() << " cryptsize " << ec.cryptsize; in PrintEncryptionInfoCommand()
9257 outs() << " (past end of file)\n"; in PrintEncryptionInfoCommand()
9259 outs() << "\n"; in PrintEncryptionInfoCommand()
9260 outs() << " cryptid " << ec.cryptid << "\n"; in PrintEncryptionInfoCommand()
9265 outs() << " cmd LC_ENCRYPTION_INFO_64\n"; in PrintEncryptionInfoCommand64()
9266 outs() << " cmdsize " << ec.cmdsize; in PrintEncryptionInfoCommand64()
9268 outs() << " Incorrect size\n"; in PrintEncryptionInfoCommand64()
9270 outs() << "\n"; in PrintEncryptionInfoCommand64()
9271 outs() << " cryptoff " << ec.cryptoff; in PrintEncryptionInfoCommand64()
9273 outs() << " (past end of file)\n"; in PrintEncryptionInfoCommand64()
9275 outs() << "\n"; in PrintEncryptionInfoCommand64()
9276 outs() << " cryptsize " << ec.cryptsize; in PrintEncryptionInfoCommand64()
9278 outs() << " (past end of file)\n"; in PrintEncryptionInfoCommand64()
9280 outs() << "\n"; in PrintEncryptionInfoCommand64()
9281 outs() << " cryptid " << ec.cryptid << "\n"; in PrintEncryptionInfoCommand64()
9282 outs() << " pad " << ec.pad << "\n"; in PrintEncryptionInfoCommand64()
9287 outs() << " cmd LC_LINKER_OPTION\n"; in PrintLinkerOptionCommand()
9288 outs() << " cmdsize " << lo.cmdsize; in PrintLinkerOptionCommand()
9290 outs() << " Incorrect size\n"; in PrintLinkerOptionCommand()
9292 outs() << "\n"; in PrintLinkerOptionCommand()
9293 outs() << " count " << lo.count << "\n"; in PrintLinkerOptionCommand()
9304 outs() << " string #" << i << " " << format("%.*s\n", left, string); in PrintLinkerOptionCommand()
9312 outs() << " count " << lo.count << " does not match number of strings " in PrintLinkerOptionCommand()
9318 outs() << " cmd LC_SUB_FRAMEWORK\n"; in PrintSubFrameworkCommand()
9319 outs() << " cmdsize " << sub.cmdsize; in PrintSubFrameworkCommand()
9321 outs() << " Incorrect size\n"; in PrintSubFrameworkCommand()
9323 outs() << "\n"; in PrintSubFrameworkCommand()
9326 outs() << " umbrella " << P << " (offset " << sub.umbrella << ")\n"; in PrintSubFrameworkCommand()
9328 outs() << " umbrella ?(bad offset " << sub.umbrella << ")\n"; in PrintSubFrameworkCommand()
9334 outs() << " cmd LC_SUB_UMBRELLA\n"; in PrintSubUmbrellaCommand()
9335 outs() << " cmdsize " << sub.cmdsize; in PrintSubUmbrellaCommand()
9337 outs() << " Incorrect size\n"; in PrintSubUmbrellaCommand()
9339 outs() << "\n"; in PrintSubUmbrellaCommand()
9342 outs() << " sub_umbrella " << P << " (offset " << sub.sub_umbrella << ")\n"; in PrintSubUmbrellaCommand()
9344 outs() << " sub_umbrella ?(bad offset " << sub.sub_umbrella << ")\n"; in PrintSubUmbrellaCommand()
9350 outs() << " cmd LC_SUB_LIBRARY\n"; in PrintSubLibraryCommand()
9351 outs() << " cmdsize " << sub.cmdsize; in PrintSubLibraryCommand()
9353 outs() << " Incorrect size\n"; in PrintSubLibraryCommand()
9355 outs() << "\n"; in PrintSubLibraryCommand()
9358 outs() << " sub_library " << P << " (offset " << sub.sub_library << ")\n"; in PrintSubLibraryCommand()
9360 outs() << " sub_library ?(bad offset " << sub.sub_library << ")\n"; in PrintSubLibraryCommand()
9366 outs() << " cmd LC_SUB_CLIENT\n"; in PrintSubClientCommand()
9367 outs() << " cmdsize " << sub.cmdsize; in PrintSubClientCommand()
9369 outs() << " Incorrect size\n"; in PrintSubClientCommand()
9371 outs() << "\n"; in PrintSubClientCommand()
9374 outs() << " client " << P << " (offset " << sub.client << ")\n"; in PrintSubClientCommand()
9376 outs() << " client ?(bad offset " << sub.client << ")\n"; in PrintSubClientCommand()
9381 outs() << " cmd LC_ROUTINES\n"; in PrintRoutinesCommand()
9382 outs() << " cmdsize " << r.cmdsize; in PrintRoutinesCommand()
9384 outs() << " Incorrect size\n"; in PrintRoutinesCommand()
9386 outs() << "\n"; in PrintRoutinesCommand()
9387 outs() << " init_address " << format("0x%08" PRIx32, r.init_address) << "\n"; in PrintRoutinesCommand()
9388 outs() << " init_module " << r.init_module << "\n"; in PrintRoutinesCommand()
9389 outs() << " reserved1 " << r.reserved1 << "\n"; in PrintRoutinesCommand()
9390 outs() << " reserved2 " << r.reserved2 << "\n"; in PrintRoutinesCommand()
9391 outs() << " reserved3 " << r.reserved3 << "\n"; in PrintRoutinesCommand()
9392 outs() << " reserved4 " << r.reserved4 << "\n"; in PrintRoutinesCommand()
9393 outs() << " reserved5 " << r.reserved5 << "\n"; in PrintRoutinesCommand()
9394 outs() << " reserved6 " << r.reserved6 << "\n"; in PrintRoutinesCommand()
9398 outs() << " cmd LC_ROUTINES_64\n"; in PrintRoutinesCommand64()
9399 outs() << " cmdsize " << r.cmdsize; in PrintRoutinesCommand64()
9401 outs() << " Incorrect size\n"; in PrintRoutinesCommand64()
9403 outs() << "\n"; in PrintRoutinesCommand64()
9404 outs() << " init_address " << format("0x%016" PRIx64, r.init_address) << "\n"; in PrintRoutinesCommand64()
9405 outs() << " init_module " << r.init_module << "\n"; in PrintRoutinesCommand64()
9406 outs() << " reserved1 " << r.reserved1 << "\n"; in PrintRoutinesCommand64()
9407 outs() << " reserved2 " << r.reserved2 << "\n"; in PrintRoutinesCommand64()
9408 outs() << " reserved3 " << r.reserved3 << "\n"; in PrintRoutinesCommand64()
9409 outs() << " reserved4 " << r.reserved4 << "\n"; in PrintRoutinesCommand64()
9410 outs() << " reserved5 " << r.reserved5 << "\n"; in PrintRoutinesCommand64()
9411 outs() << " reserved6 " << r.reserved6 << "\n"; in PrintRoutinesCommand64()
9415 outs() << "\t eax " << format("0x%08" PRIx32, cpu32.eax); in Print_x86_thread_state32_t()
9416 outs() << " ebx " << format("0x%08" PRIx32, cpu32.ebx); in Print_x86_thread_state32_t()
9417 outs() << " ecx " << format("0x%08" PRIx32, cpu32.ecx); in Print_x86_thread_state32_t()
9418 outs() << " edx " << format("0x%08" PRIx32, cpu32.edx) << "\n"; in Print_x86_thread_state32_t()
9419 outs() << "\t edi " << format("0x%08" PRIx32, cpu32.edi); in Print_x86_thread_state32_t()
9420 outs() << " esi " << format("0x%08" PRIx32, cpu32.esi); in Print_x86_thread_state32_t()
9421 outs() << " ebp " << format("0x%08" PRIx32, cpu32.ebp); in Print_x86_thread_state32_t()
9422 outs() << " esp " << format("0x%08" PRIx32, cpu32.esp) << "\n"; in Print_x86_thread_state32_t()
9423 outs() << "\t ss " << format("0x%08" PRIx32, cpu32.ss); in Print_x86_thread_state32_t()
9424 outs() << " eflags " << format("0x%08" PRIx32, cpu32.eflags); in Print_x86_thread_state32_t()
9425 outs() << " eip " << format("0x%08" PRIx32, cpu32.eip); in Print_x86_thread_state32_t()
9426 outs() << " cs " << format("0x%08" PRIx32, cpu32.cs) << "\n"; in Print_x86_thread_state32_t()
9427 outs() << "\t ds " << format("0x%08" PRIx32, cpu32.ds); in Print_x86_thread_state32_t()
9428 outs() << " es " << format("0x%08" PRIx32, cpu32.es); in Print_x86_thread_state32_t()
9429 outs() << " fs " << format("0x%08" PRIx32, cpu32.fs); in Print_x86_thread_state32_t()
9430 outs() << " gs " << format("0x%08" PRIx32, cpu32.gs) << "\n"; in Print_x86_thread_state32_t()
9434 outs() << " rax " << format("0x%016" PRIx64, cpu64.rax); in Print_x86_thread_state64_t()
9435 outs() << " rbx " << format("0x%016" PRIx64, cpu64.rbx); in Print_x86_thread_state64_t()
9436 outs() << " rcx " << format("0x%016" PRIx64, cpu64.rcx) << "\n"; in Print_x86_thread_state64_t()
9437 outs() << " rdx " << format("0x%016" PRIx64, cpu64.rdx); in Print_x86_thread_state64_t()
9438 outs() << " rdi " << format("0x%016" PRIx64, cpu64.rdi); in Print_x86_thread_state64_t()
9439 outs() << " rsi " << format("0x%016" PRIx64, cpu64.rsi) << "\n"; in Print_x86_thread_state64_t()
9440 outs() << " rbp " << format("0x%016" PRIx64, cpu64.rbp); in Print_x86_thread_state64_t()
9441 outs() << " rsp " << format("0x%016" PRIx64, cpu64.rsp); in Print_x86_thread_state64_t()
9442 outs() << " r8 " << format("0x%016" PRIx64, cpu64.r8) << "\n"; in Print_x86_thread_state64_t()
9443 outs() << " r9 " << format("0x%016" PRIx64, cpu64.r9); in Print_x86_thread_state64_t()
9444 outs() << " r10 " << format("0x%016" PRIx64, cpu64.r10); in Print_x86_thread_state64_t()
9445 outs() << " r11 " << format("0x%016" PRIx64, cpu64.r11) << "\n"; in Print_x86_thread_state64_t()
9446 outs() << " r12 " << format("0x%016" PRIx64, cpu64.r12); in Print_x86_thread_state64_t()
9447 outs() << " r13 " << format("0x%016" PRIx64, cpu64.r13); in Print_x86_thread_state64_t()
9448 outs() << " r14 " << format("0x%016" PRIx64, cpu64.r14) << "\n"; in Print_x86_thread_state64_t()
9449 outs() << " r15 " << format("0x%016" PRIx64, cpu64.r15); in Print_x86_thread_state64_t()
9450 outs() << " rip " << format("0x%016" PRIx64, cpu64.rip) << "\n"; in Print_x86_thread_state64_t()
9451 outs() << "rflags " << format("0x%016" PRIx64, cpu64.rflags); in Print_x86_thread_state64_t()
9452 outs() << " cs " << format("0x%016" PRIx64, cpu64.cs); in Print_x86_thread_state64_t()
9453 outs() << " fs " << format("0x%016" PRIx64, cpu64.fs) << "\n"; in Print_x86_thread_state64_t()
9454 outs() << " gs " << format("0x%016" PRIx64, cpu64.gs) << "\n"; in Print_x86_thread_state64_t()
9459 outs() << "\t mmst_reg "; in Print_mmst_reg()
9461 outs() << format("%02" PRIx32, (r.mmst_reg[f] & 0xff)) << " "; in Print_mmst_reg()
9462 outs() << "\n"; in Print_mmst_reg()
9463 outs() << "\t mmst_rsrv "; in Print_mmst_reg()
9465 outs() << format("%02" PRIx32, (r.mmst_rsrv[f] & 0xff)) << " "; in Print_mmst_reg()
9466 outs() << "\n"; in Print_mmst_reg()
9471 outs() << "\t xmm_reg "; in Print_xmm_reg()
9473 outs() << format("%02" PRIx32, (r.xmm_reg[f] & 0xff)) << " "; in Print_xmm_reg()
9474 outs() << "\n"; in Print_xmm_reg()
9478 outs() << "\t fpu_reserved[0] " << fpu.fpu_reserved[0]; in Print_x86_float_state_t()
9479 outs() << " fpu_reserved[1] " << fpu.fpu_reserved[1] << "\n"; in Print_x86_float_state_t()
9480 outs() << "\t control: invalid " << fpu.fpu_fcw.invalid; in Print_x86_float_state_t()
9481 outs() << " denorm " << fpu.fpu_fcw.denorm; in Print_x86_float_state_t()
9482 outs() << " zdiv " << fpu.fpu_fcw.zdiv; in Print_x86_float_state_t()
9483 outs() << " ovrfl " << fpu.fpu_fcw.ovrfl; in Print_x86_float_state_t()
9484 outs() << " undfl " << fpu.fpu_fcw.undfl; in Print_x86_float_state_t()
9485 outs() << " precis " << fpu.fpu_fcw.precis << "\n"; in Print_x86_float_state_t()
9486 outs() << "\t\t pc "; in Print_x86_float_state_t()
9488 outs() << "FP_PREC_24B "; in Print_x86_float_state_t()
9490 outs() << "FP_PREC_53B "; in Print_x86_float_state_t()
9492 outs() << "FP_PREC_64B "; in Print_x86_float_state_t()
9494 outs() << fpu.fpu_fcw.pc << " "; in Print_x86_float_state_t()
9495 outs() << "rc "; in Print_x86_float_state_t()
9497 outs() << "FP_RND_NEAR "; in Print_x86_float_state_t()
9499 outs() << "FP_RND_DOWN "; in Print_x86_float_state_t()
9501 outs() << "FP_RND_UP "; in Print_x86_float_state_t()
9503 outs() << "FP_CHOP "; in Print_x86_float_state_t()
9504 outs() << "\n"; in Print_x86_float_state_t()
9505 outs() << "\t status: invalid " << fpu.fpu_fsw.invalid; in Print_x86_float_state_t()
9506 outs() << " denorm " << fpu.fpu_fsw.denorm; in Print_x86_float_state_t()
9507 outs() << " zdiv " << fpu.fpu_fsw.zdiv; in Print_x86_float_state_t()
9508 outs() << " ovrfl " << fpu.fpu_fsw.ovrfl; in Print_x86_float_state_t()
9509 outs() << " undfl " << fpu.fpu_fsw.undfl; in Print_x86_float_state_t()
9510 outs() << " precis " << fpu.fpu_fsw.precis; in Print_x86_float_state_t()
9511 outs() << " stkflt " << fpu.fpu_fsw.stkflt << "\n"; in Print_x86_float_state_t()
9512 outs() << "\t errsumm " << fpu.fpu_fsw.errsumm; in Print_x86_float_state_t()
9513 outs() << " c0 " << fpu.fpu_fsw.c0; in Print_x86_float_state_t()
9514 outs() << " c1 " << fpu.fpu_fsw.c1; in Print_x86_float_state_t()
9515 outs() << " c2 " << fpu.fpu_fsw.c2; in Print_x86_float_state_t()
9516 outs() << " tos " << fpu.fpu_fsw.tos; in Print_x86_float_state_t()
9517 outs() << " c3 " << fpu.fpu_fsw.c3; in Print_x86_float_state_t()
9518 outs() << " busy " << fpu.fpu_fsw.busy << "\n"; in Print_x86_float_state_t()
9519 outs() << "\t fpu_ftw " << format("0x%02" PRIx32, fpu.fpu_ftw); in Print_x86_float_state_t()
9520 outs() << " fpu_rsrv1 " << format("0x%02" PRIx32, fpu.fpu_rsrv1); in Print_x86_float_state_t()
9521 outs() << " fpu_fop " << format("0x%04" PRIx32, fpu.fpu_fop); in Print_x86_float_state_t()
9522 outs() << " fpu_ip " << format("0x%08" PRIx32, fpu.fpu_ip) << "\n"; in Print_x86_float_state_t()
9523 outs() << "\t fpu_cs " << format("0x%04" PRIx32, fpu.fpu_cs); in Print_x86_float_state_t()
9524 outs() << " fpu_rsrv2 " << format("0x%04" PRIx32, fpu.fpu_rsrv2); in Print_x86_float_state_t()
9525 outs() << " fpu_dp " << format("0x%08" PRIx32, fpu.fpu_dp); in Print_x86_float_state_t()
9526 outs() << " fpu_ds " << format("0x%04" PRIx32, fpu.fpu_ds) << "\n"; in Print_x86_float_state_t()
9527 outs() << "\t fpu_rsrv3 " << format("0x%04" PRIx32, fpu.fpu_rsrv3); in Print_x86_float_state_t()
9528 outs() << " fpu_mxcsr " << format("0x%08" PRIx32, fpu.fpu_mxcsr); in Print_x86_float_state_t()
9529 outs() << " fpu_mxcsrmask " << format("0x%08" PRIx32, fpu.fpu_mxcsrmask); in Print_x86_float_state_t()
9530 outs() << "\n"; in Print_x86_float_state_t()
9531 outs() << "\t fpu_stmm0:\n"; in Print_x86_float_state_t()
9533 outs() << "\t fpu_stmm1:\n"; in Print_x86_float_state_t()
9535 outs() << "\t fpu_stmm2:\n"; in Print_x86_float_state_t()
9537 outs() << "\t fpu_stmm3:\n"; in Print_x86_float_state_t()
9539 outs() << "\t fpu_stmm4:\n"; in Print_x86_float_state_t()
9541 outs() << "\t fpu_stmm5:\n"; in Print_x86_float_state_t()
9543 outs() << "\t fpu_stmm6:\n"; in Print_x86_float_state_t()
9545 outs() << "\t fpu_stmm7:\n"; in Print_x86_float_state_t()
9547 outs() << "\t fpu_xmm0:\n"; in Print_x86_float_state_t()
9549 outs() << "\t fpu_xmm1:\n"; in Print_x86_float_state_t()
9551 outs() << "\t fpu_xmm2:\n"; in Print_x86_float_state_t()
9553 outs() << "\t fpu_xmm3:\n"; in Print_x86_float_state_t()
9555 outs() << "\t fpu_xmm4:\n"; in Print_x86_float_state_t()
9557 outs() << "\t fpu_xmm5:\n"; in Print_x86_float_state_t()
9559 outs() << "\t fpu_xmm6:\n"; in Print_x86_float_state_t()
9561 outs() << "\t fpu_xmm7:\n"; in Print_x86_float_state_t()
9563 outs() << "\t fpu_xmm8:\n"; in Print_x86_float_state_t()
9565 outs() << "\t fpu_xmm9:\n"; in Print_x86_float_state_t()
9567 outs() << "\t fpu_xmm10:\n"; in Print_x86_float_state_t()
9569 outs() << "\t fpu_xmm11:\n"; in Print_x86_float_state_t()
9571 outs() << "\t fpu_xmm12:\n"; in Print_x86_float_state_t()
9573 outs() << "\t fpu_xmm13:\n"; in Print_x86_float_state_t()
9575 outs() << "\t fpu_xmm14:\n"; in Print_x86_float_state_t()
9577 outs() << "\t fpu_xmm15:\n"; in Print_x86_float_state_t()
9579 outs() << "\t fpu_rsrv4:\n"; in Print_x86_float_state_t()
9581 outs() << "\t "; in Print_x86_float_state_t()
9583 outs() << format("%02" PRIx32, fpu.fpu_rsrv4[f * g]) << " "; in Print_x86_float_state_t()
9584 outs() << "\n"; in Print_x86_float_state_t()
9586 outs() << "\t fpu_reserved1 " << format("0x%08" PRIx32, fpu.fpu_reserved1); in Print_x86_float_state_t()
9587 outs() << "\n"; in Print_x86_float_state_t()
9591 outs() << "\t trapno " << format("0x%08" PRIx32, exc64.trapno); in Print_x86_exception_state_t()
9592 outs() << " err " << format("0x%08" PRIx32, exc64.err); in Print_x86_exception_state_t()
9593 outs() << " faultvaddr " << format("0x%016" PRIx64, exc64.faultvaddr) << "\n"; in Print_x86_exception_state_t()
9597 outs() << "\t r0 " << format("0x%08" PRIx32, cpu32.r[0]); in Print_arm_thread_state32_t()
9598 outs() << " r1 " << format("0x%08" PRIx32, cpu32.r[1]); in Print_arm_thread_state32_t()
9599 outs() << " r2 " << format("0x%08" PRIx32, cpu32.r[2]); in Print_arm_thread_state32_t()
9600 outs() << " r3 " << format("0x%08" PRIx32, cpu32.r[3]) << "\n"; in Print_arm_thread_state32_t()
9601 outs() << "\t r4 " << format("0x%08" PRIx32, cpu32.r[4]); in Print_arm_thread_state32_t()
9602 outs() << " r5 " << format("0x%08" PRIx32, cpu32.r[5]); in Print_arm_thread_state32_t()
9603 outs() << " r6 " << format("0x%08" PRIx32, cpu32.r[6]); in Print_arm_thread_state32_t()
9604 outs() << " r7 " << format("0x%08" PRIx32, cpu32.r[7]) << "\n"; in Print_arm_thread_state32_t()
9605 outs() << "\t r8 " << format("0x%08" PRIx32, cpu32.r[8]); in Print_arm_thread_state32_t()
9606 outs() << " r9 " << format("0x%08" PRIx32, cpu32.r[9]); in Print_arm_thread_state32_t()
9607 outs() << " r10 " << format("0x%08" PRIx32, cpu32.r[10]); in Print_arm_thread_state32_t()
9608 outs() << " r11 " << format("0x%08" PRIx32, cpu32.r[11]) << "\n"; in Print_arm_thread_state32_t()
9609 outs() << "\t r12 " << format("0x%08" PRIx32, cpu32.r[12]); in Print_arm_thread_state32_t()
9610 outs() << " sp " << format("0x%08" PRIx32, cpu32.sp); in Print_arm_thread_state32_t()
9611 outs() << " lr " << format("0x%08" PRIx32, cpu32.lr); in Print_arm_thread_state32_t()
9612 outs() << " pc " << format("0x%08" PRIx32, cpu32.pc) << "\n"; in Print_arm_thread_state32_t()
9613 outs() << "\t cpsr " << format("0x%08" PRIx32, cpu32.cpsr) << "\n"; in Print_arm_thread_state32_t()
9617 outs() << "\t x0 " << format("0x%016" PRIx64, cpu64.x[0]); in Print_arm_thread_state64_t()
9618 outs() << " x1 " << format("0x%016" PRIx64, cpu64.x[1]); in Print_arm_thread_state64_t()
9619 outs() << " x2 " << format("0x%016" PRIx64, cpu64.x[2]) << "\n"; in Print_arm_thread_state64_t()
9620 outs() << "\t x3 " << format("0x%016" PRIx64, cpu64.x[3]); in Print_arm_thread_state64_t()
9621 outs() << " x4 " << format("0x%016" PRIx64, cpu64.x[4]); in Print_arm_thread_state64_t()
9622 outs() << " x5 " << format("0x%016" PRIx64, cpu64.x[5]) << "\n"; in Print_arm_thread_state64_t()
9623 outs() << "\t x6 " << format("0x%016" PRIx64, cpu64.x[6]); in Print_arm_thread_state64_t()
9624 outs() << " x7 " << format("0x%016" PRIx64, cpu64.x[7]); in Print_arm_thread_state64_t()
9625 outs() << " x8 " << format("0x%016" PRIx64, cpu64.x[8]) << "\n"; in Print_arm_thread_state64_t()
9626 outs() << "\t x9 " << format("0x%016" PRIx64, cpu64.x[9]); in Print_arm_thread_state64_t()
9627 outs() << " x10 " << format("0x%016" PRIx64, cpu64.x[10]); in Print_arm_thread_state64_t()
9628 outs() << " x11 " << format("0x%016" PRIx64, cpu64.x[11]) << "\n"; in Print_arm_thread_state64_t()
9629 outs() << "\t x12 " << format("0x%016" PRIx64, cpu64.x[12]); in Print_arm_thread_state64_t()
9630 outs() << " x13 " << format("0x%016" PRIx64, cpu64.x[13]); in Print_arm_thread_state64_t()
9631 outs() << " x14 " << format("0x%016" PRIx64, cpu64.x[14]) << "\n"; in Print_arm_thread_state64_t()
9632 outs() << "\t x15 " << format("0x%016" PRIx64, cpu64.x[15]); in Print_arm_thread_state64_t()
9633 outs() << " x16 " << format("0x%016" PRIx64, cpu64.x[16]); in Print_arm_thread_state64_t()
9634 outs() << " x17 " << format("0x%016" PRIx64, cpu64.x[17]) << "\n"; in Print_arm_thread_state64_t()
9635 outs() << "\t x18 " << format("0x%016" PRIx64, cpu64.x[18]); in Print_arm_thread_state64_t()
9636 outs() << " x19 " << format("0x%016" PRIx64, cpu64.x[19]); in Print_arm_thread_state64_t()
9637 outs() << " x20 " << format("0x%016" PRIx64, cpu64.x[20]) << "\n"; in Print_arm_thread_state64_t()
9638 outs() << "\t x21 " << format("0x%016" PRIx64, cpu64.x[21]); in Print_arm_thread_state64_t()
9639 outs() << " x22 " << format("0x%016" PRIx64, cpu64.x[22]); in Print_arm_thread_state64_t()
9640 outs() << " x23 " << format("0x%016" PRIx64, cpu64.x[23]) << "\n"; in Print_arm_thread_state64_t()
9641 outs() << "\t x24 " << format("0x%016" PRIx64, cpu64.x[24]); in Print_arm_thread_state64_t()
9642 outs() << " x25 " << format("0x%016" PRIx64, cpu64.x[25]); in Print_arm_thread_state64_t()
9643 outs() << " x26 " << format("0x%016" PRIx64, cpu64.x[26]) << "\n"; in Print_arm_thread_state64_t()
9644 outs() << "\t x27 " << format("0x%016" PRIx64, cpu64.x[27]); in Print_arm_thread_state64_t()
9645 outs() << " x28 " << format("0x%016" PRIx64, cpu64.x[28]); in Print_arm_thread_state64_t()
9646 outs() << " fp " << format("0x%016" PRIx64, cpu64.fp) << "\n"; in Print_arm_thread_state64_t()
9647 outs() << "\t lr " << format("0x%016" PRIx64, cpu64.lr); in Print_arm_thread_state64_t()
9648 outs() << " sp " << format("0x%016" PRIx64, cpu64.sp); in Print_arm_thread_state64_t()
9649 outs() << " pc " << format("0x%016" PRIx64, cpu64.pc) << "\n"; in Print_arm_thread_state64_t()
9650 outs() << "\t cpsr " << format("0x%08" PRIx32, cpu64.cpsr) << "\n"; in Print_arm_thread_state64_t()
9656 outs() << " cmd LC_THREAD\n"; in PrintThreadCommand()
9658 outs() << " cmd LC_UNIXTHREAD\n"; in PrintThreadCommand()
9660 outs() << " cmd " << t.cmd << " (unknown)\n"; in PrintThreadCommand()
9661 outs() << " cmdsize " << t.cmdsize; in PrintThreadCommand()
9663 outs() << " Incorrect size\n"; in PrintThreadCommand()
9665 outs() << "\n"; in PrintThreadCommand()
9691 outs() << " flavor i386_THREAD_STATE\n"; in PrintThreadCommand()
9693 outs() << " count i386_THREAD_STATE_COUNT\n"; in PrintThreadCommand()
9695 outs() << " count " << count in PrintThreadCommand()
9711 outs() << " flavor x86_THREAD_STATE\n"; in PrintThreadCommand()
9713 outs() << " count x86_THREAD_STATE_COUNT\n"; in PrintThreadCommand()
9715 outs() << " count " << count in PrintThreadCommand()
9730 outs() << "\t tsh.flavor x86_THREAD_STATE32 "; in PrintThreadCommand()
9732 outs() << "tsh.count x86_THREAD_STATE32_COUNT\n"; in PrintThreadCommand()
9734 outs() << "tsh.count " << ts.tsh.count in PrintThreadCommand()
9738 outs() << "\t tsh.flavor " << ts.tsh.flavor << " tsh.count " in PrintThreadCommand()
9742 outs() << " flavor " << flavor << " (unknown)\n"; in PrintThreadCommand()
9743 outs() << " count " << count << "\n"; in PrintThreadCommand()
9744 outs() << " state (unknown)\n"; in PrintThreadCommand()
9769 outs() << " flavor x86_THREAD_STATE64\n"; in PrintThreadCommand()
9771 outs() << " count x86_THREAD_STATE64_COUNT\n"; in PrintThreadCommand()
9773 outs() << " count " << count in PrintThreadCommand()
9789 outs() << " flavor x86_THREAD_STATE\n"; in PrintThreadCommand()
9791 outs() << " count x86_THREAD_STATE_COUNT\n"; in PrintThreadCommand()
9793 outs() << " count " << count in PrintThreadCommand()
9808 outs() << "\t tsh.flavor x86_THREAD_STATE64 "; in PrintThreadCommand()
9810 outs() << "tsh.count x86_THREAD_STATE64_COUNT\n"; in PrintThreadCommand()
9812 outs() << "tsh.count " << ts.tsh.count in PrintThreadCommand()
9816 outs() << "\t tsh.flavor " << ts.tsh.flavor << " tsh.count " in PrintThreadCommand()
9820 outs() << " flavor x86_FLOAT_STATE\n"; in PrintThreadCommand()
9822 outs() << " count x86_FLOAT_STATE_COUNT\n"; in PrintThreadCommand()
9824 outs() << " count " << count << " (not x86_FLOAT_STATE_COUNT)\n"; in PrintThreadCommand()
9838 outs() << "\t fsh.flavor x86_FLOAT_STATE64 "; in PrintThreadCommand()
9840 outs() << "fsh.count x86_FLOAT_STATE64_COUNT\n"; in PrintThreadCommand()
9842 outs() << "fsh.count " << fs.fsh.count in PrintThreadCommand()
9846 outs() << "\t fsh.flavor " << fs.fsh.flavor << " fsh.count " in PrintThreadCommand()
9850 outs() << " flavor x86_EXCEPTION_STATE\n"; in PrintThreadCommand()
9852 outs() << " count x86_EXCEPTION_STATE_COUNT\n"; in PrintThreadCommand()
9854 outs() << " count " << count in PrintThreadCommand()
9869 outs() << "\t esh.flavor x86_EXCEPTION_STATE64\n"; in PrintThreadCommand()
9871 outs() << "\t esh.count x86_EXCEPTION_STATE64_COUNT\n"; in PrintThreadCommand()
9873 outs() << "\t esh.count " << es.esh.count in PrintThreadCommand()
9877 outs() << "\t esh.flavor " << es.esh.flavor << " esh.count " in PrintThreadCommand()
9881 outs() << " flavor x86_EXCEPTION_STATE64\n"; in PrintThreadCommand()
9883 outs() << " count x86_EXCEPTION_STATE64_COUNT\n"; in PrintThreadCommand()
9885 outs() << " count " << count in PrintThreadCommand()
9901 outs() << " flavor " << flavor << " (unknown)\n"; in PrintThreadCommand()
9902 outs() << " count " << count << "\n"; in PrintThreadCommand()
9903 outs() << " state (unknown)\n"; in PrintThreadCommand()
9928 outs() << " flavor ARM_THREAD_STATE\n"; in PrintThreadCommand()
9930 outs() << " count ARM_THREAD_STATE_COUNT\n"; in PrintThreadCommand()
9932 outs() << " count " << count in PrintThreadCommand()
9948 outs() << " flavor " << flavor << " (unknown)\n"; in PrintThreadCommand()
9949 outs() << " count " << count << "\n"; in PrintThreadCommand()
9950 outs() << " state (unknown)\n"; in PrintThreadCommand()
9976 outs() << " flavor ARM_THREAD_STATE64\n"; in PrintThreadCommand()
9978 outs() << " count ARM_THREAD_STATE64_COUNT\n"; in PrintThreadCommand()
9980 outs() << " count " << count in PrintThreadCommand()
9996 outs() << " flavor " << flavor << " (unknown)\n"; in PrintThreadCommand()
9997 outs() << " count " << count << "\n"; in PrintThreadCommand()
9998 outs() << " state (unknown)\n"; in PrintThreadCommand()
10022 outs() << " flavor " << flavor << "\n"; in PrintThreadCommand()
10023 outs() << " count " << count << "\n"; in PrintThreadCommand()
10024 outs() << " state (Unknown cputype/cpusubtype)\n"; in PrintThreadCommand()
10032 outs() << " cmd LC_ID_DYLIB\n"; in PrintDylibCommand()
10034 outs() << " cmd LC_LOAD_DYLIB\n"; in PrintDylibCommand()
10036 outs() << " cmd LC_LOAD_WEAK_DYLIB\n"; in PrintDylibCommand()
10038 outs() << " cmd LC_REEXPORT_DYLIB\n"; in PrintDylibCommand()
10040 outs() << " cmd LC_LAZY_LOAD_DYLIB\n"; in PrintDylibCommand()
10042 outs() << " cmd LC_LOAD_UPWARD_DYLIB\n"; in PrintDylibCommand()
10044 outs() << " cmd " << dl.cmd << " (unknown)\n"; in PrintDylibCommand()
10045 outs() << " cmdsize " << dl.cmdsize; in PrintDylibCommand()
10047 outs() << " Incorrect size\n"; in PrintDylibCommand()
10049 outs() << "\n"; in PrintDylibCommand()
10052 outs() << " name " << P << " (offset " << dl.dylib.name << ")\n"; in PrintDylibCommand()
10054 outs() << " name ?(bad offset " << dl.dylib.name << ")\n"; in PrintDylibCommand()
10056 outs() << " time stamp " << dl.dylib.timestamp << " "; in PrintDylibCommand()
10058 outs() << ctime(&t); in PrintDylibCommand()
10059 outs() << " current version "; in PrintDylibCommand()
10061 outs() << "n/a\n"; in PrintDylibCommand()
10063 outs() << ((dl.dylib.current_version >> 16) & 0xffff) << "." in PrintDylibCommand()
10066 outs() << "compatibility version "; in PrintDylibCommand()
10068 outs() << "n/a\n"; in PrintDylibCommand()
10070 outs() << ((dl.dylib.compatibility_version >> 16) & 0xffff) << "." in PrintDylibCommand()
10078 outs() << " cmd LC_CODE_SIGNATURE\n"; in PrintLinkEditDataCommand()
10080 outs() << " cmd LC_SEGMENT_SPLIT_INFO\n"; in PrintLinkEditDataCommand()
10082 outs() << " cmd LC_FUNCTION_STARTS\n"; in PrintLinkEditDataCommand()
10084 outs() << " cmd LC_DATA_IN_CODE\n"; in PrintLinkEditDataCommand()
10086 outs() << " cmd LC_DYLIB_CODE_SIGN_DRS\n"; in PrintLinkEditDataCommand()
10088 outs() << " cmd LC_LINKER_OPTIMIZATION_HINT\n"; in PrintLinkEditDataCommand()
10090 outs() << " cmd LC_DYLD_EXPORTS_TRIE\n"; in PrintLinkEditDataCommand()
10092 outs() << " cmd LC_DYLD_CHAINED_FIXUPS\n"; in PrintLinkEditDataCommand()
10094 outs() << " cmd " << ld.cmd << " (?)\n"; in PrintLinkEditDataCommand()
10095 outs() << " cmdsize " << ld.cmdsize; in PrintLinkEditDataCommand()
10097 outs() << " Incorrect size\n"; in PrintLinkEditDataCommand()
10099 outs() << "\n"; in PrintLinkEditDataCommand()
10100 outs() << " dataoff " << ld.dataoff; in PrintLinkEditDataCommand()
10102 outs() << " (past end of file)\n"; in PrintLinkEditDataCommand()
10104 outs() << "\n"; in PrintLinkEditDataCommand()
10105 outs() << " datasize " << ld.datasize; in PrintLinkEditDataCommand()
10109 outs() << " (past end of file)\n"; in PrintLinkEditDataCommand()
10111 outs() << "\n"; in PrintLinkEditDataCommand()
10119 outs() << "Load command " << Index++ << "\n"; in PrintLoadCommands()
10243 outs() << " cmd ?(" << format("0x%08" PRIx32, Command.C.cmd) in PrintLoadCommands()
10245 outs() << " cmdsize " << Command.C.cmdsize << "\n"; in PrintLoadCommands()
10321 outs() << "[re-export] "; in printMachOExportsTrie()
10323 outs() << format("0x%08llX ", in printMachOExportsTrie()
10325 outs() << Entry.name(); in printMachOExportsTrie()
10328 outs() << " ["; in printMachOExportsTrie()
10330 outs() << LS << "weak_def"; in printMachOExportsTrie()
10332 outs() << LS << "per-thread"; in printMachOExportsTrie()
10334 outs() << LS << "absolute"; in printMachOExportsTrie()
10336 outs() << LS << format("resolver=0x%08llX", Entry.other()); in printMachOExportsTrie()
10337 outs() << "]"; in printMachOExportsTrie()
10344 outs() << " (from " << DylibName << ")"; in printMachOExportsTrie()
10346 outs() << " (" << Entry.otherName() << " from " << DylibName << ")"; in printMachOExportsTrie()
10348 outs() << "\n"; in printMachOExportsTrie()
10359 outs() << "segment section address type\n"; in printMachORebaseTable()
10367 outs() << format("%-8s %-18s 0x%08" PRIX64 " %s\n", in printMachORebaseTable()
10402 outs() << "segment section address type " in printMachOBindTable()
10415 outs() << left_justify(SegmentName, 8) << " " in printMachOBindTable()
10432 outs() << "segment section address " in printMachOLazyBindTable()
10442 outs() << left_justify(SegmentName, 8) << " " in printMachOLazyBindTable()
10457 outs() << "segment section address " in printMachOWeakBindTable()
10463 outs() << " strong " in printMachOWeakBindTable()
10473 outs() << left_justify(SegmentName, 8) << " " in printMachOWeakBindTable()
10507 outs() << "\nLazy bind table:\n"; in printLazyBindTable()
10517 outs() << "\nWeak bind table:\n"; in printWeakBindTable()
10527 outs() << "\nExports trie:\n"; in printExportsTrie()
10537 outs() << "\nRebase table:\n"; in printRebaseTable()
10547 outs() << "\nBind table:\n"; in printBindTable()