Lines Matching refs:W
365 W.printHex(FieldName + "RVA", Data->RelativeVirtualAddress); in printDataDirectory()
366 W.printHex(FieldName + "Size", Data->Size); in printDataDirectory()
375 DictScope D(W, "ImageFileHeader"); in printFileHeaders()
376 W.printEnum ("Machine", Obj->getMachine(), in printFileHeaders()
378 W.printNumber("SectionCount", Obj->getNumberOfSections()); in printFileHeaders()
379 W.printHex ("TimeDateStamp", FormattedTime, Obj->getTimeDateStamp()); in printFileHeaders()
380 W.printHex ("PointerToSymbolTable", Obj->getPointerToSymbolTable()); in printFileHeaders()
381 W.printNumber("SymbolCount", Obj->getNumberOfSymbols()); in printFileHeaders()
382 W.printNumber("OptionalHeaderSize", Obj->getSizeOfOptionalHeader()); in printFileHeaders()
383 W.printFlags ("Characteristics", Obj->getCharacteristics(), in printFileHeaders()
404 DictScope D(W, "DOSHeader"); in printDOSHeader()
405 W.printString("Magic", StringRef(DH->Magic, sizeof(DH->Magic))); in printDOSHeader()
406 W.printNumber("UsedBytesInTheLastPage", DH->UsedBytesInTheLastPage); in printDOSHeader()
407 W.printNumber("FileSizeInPages", DH->FileSizeInPages); in printDOSHeader()
408 W.printNumber("NumberOfRelocationItems", DH->NumberOfRelocationItems); in printDOSHeader()
409 W.printNumber("HeaderSizeInParagraphs", DH->HeaderSizeInParagraphs); in printDOSHeader()
410 W.printNumber("MinimumExtraParagraphs", DH->MinimumExtraParagraphs); in printDOSHeader()
411 W.printNumber("MaximumExtraParagraphs", DH->MaximumExtraParagraphs); in printDOSHeader()
412 W.printNumber("InitialRelativeSS", DH->InitialRelativeSS); in printDOSHeader()
413 W.printNumber("InitialSP", DH->InitialSP); in printDOSHeader()
414 W.printNumber("Checksum", DH->Checksum); in printDOSHeader()
415 W.printNumber("InitialIP", DH->InitialIP); in printDOSHeader()
416 W.printNumber("InitialRelativeCS", DH->InitialRelativeCS); in printDOSHeader()
417 W.printNumber("AddressOfRelocationTable", DH->AddressOfRelocationTable); in printDOSHeader()
418 W.printNumber("OverlayNumber", DH->OverlayNumber); in printDOSHeader()
419 W.printNumber("OEMid", DH->OEMid); in printDOSHeader()
420 W.printNumber("OEMinfo", DH->OEMinfo); in printDOSHeader()
421 W.printNumber("AddressOfNewExeHeader", DH->AddressOfNewExeHeader); in printDOSHeader()
426 DictScope D(W, "ImageOptionalHeader"); in printPEHeader()
427 W.printNumber("MajorLinkerVersion", Hdr->MajorLinkerVersion); in printPEHeader()
428 W.printNumber("MinorLinkerVersion", Hdr->MinorLinkerVersion); in printPEHeader()
429 W.printNumber("SizeOfCode", Hdr->SizeOfCode); in printPEHeader()
430 W.printNumber("SizeOfInitializedData", Hdr->SizeOfInitializedData); in printPEHeader()
431 W.printNumber("SizeOfUninitializedData", Hdr->SizeOfUninitializedData); in printPEHeader()
432 W.printHex ("AddressOfEntryPoint", Hdr->AddressOfEntryPoint); in printPEHeader()
433 W.printHex ("BaseOfCode", Hdr->BaseOfCode); in printPEHeader()
435 W.printHex ("ImageBase", Hdr->ImageBase); in printPEHeader()
436 W.printNumber("SectionAlignment", Hdr->SectionAlignment); in printPEHeader()
437 W.printNumber("FileAlignment", Hdr->FileAlignment); in printPEHeader()
438 W.printNumber("MajorOperatingSystemVersion", in printPEHeader()
440 W.printNumber("MinorOperatingSystemVersion", in printPEHeader()
442 W.printNumber("MajorImageVersion", Hdr->MajorImageVersion); in printPEHeader()
443 W.printNumber("MinorImageVersion", Hdr->MinorImageVersion); in printPEHeader()
444 W.printNumber("MajorSubsystemVersion", Hdr->MajorSubsystemVersion); in printPEHeader()
445 W.printNumber("MinorSubsystemVersion", Hdr->MinorSubsystemVersion); in printPEHeader()
446 W.printNumber("SizeOfImage", Hdr->SizeOfImage); in printPEHeader()
447 W.printNumber("SizeOfHeaders", Hdr->SizeOfHeaders); in printPEHeader()
448 W.printEnum ("Subsystem", Hdr->Subsystem, makeArrayRef(PEWindowsSubsystem)); in printPEHeader()
449 W.printFlags ("Characteristics", Hdr->DLLCharacteristics, in printPEHeader()
451 W.printNumber("SizeOfStackReserve", Hdr->SizeOfStackReserve); in printPEHeader()
452 W.printNumber("SizeOfStackCommit", Hdr->SizeOfStackCommit); in printPEHeader()
453 W.printNumber("SizeOfHeapReserve", Hdr->SizeOfHeapReserve); in printPEHeader()
454 W.printNumber("SizeOfHeapCommit", Hdr->SizeOfHeapCommit); in printPEHeader()
455 W.printNumber("NumberOfRvaAndSize", Hdr->NumberOfRvaAndSize); in printPEHeader()
458 DictScope D(W, "DataDirectory"); in printPEHeader()
473 W.printHex("BaseOfData", Hdr->BaseOfData); in printBaseOfDataField()
494 ListScope D(W, "CodeViewDebugInfo"); in printCodeViewSection()
500 W.printHex("Magic", Magic); in printCodeViewSection()
512 ListScope S(W, "Subsection"); in printCodeViewSection()
513 W.printHex("Type", SubSectionType); in printCodeViewSection()
514 W.printHex("PayloadSize", PayloadSize); in printCodeViewSection()
524 W.printBinaryBlock("Contents", Contents); in printCodeViewSection()
546 W.printString("LinkageName", LinkageName); in printCodeViewSection()
590 ListScope S(W, "FunctionLineTable"); in printCodeViewSection()
591 W.printString("LinkageName", Name); in printCodeViewSection()
596 W.printHex("Flags", Flags); in printCodeViewSection()
600 W.printHex("CodeSize", FunctionSize); in printCodeViewSection()
636 ListScope S(W, "FilenameSegment"); in printCodeViewSection()
637 W.printString("Filename", Filename); in printCodeViewSection()
650 W.printNumber(Buffer, LineNumber); in printCodeViewSection()
656 W.printNumber("ColStart", ColStart); in printCodeViewSection()
658 W.printNumber("ColEnd", ColEnd); in printCodeViewSection()
690 DictScope S(W, "ProcStart"); in printCodeViewSymbolsSubsection()
713 W.printString("DisplayName", DisplayName); in printCodeViewSymbolsSubsection()
714 W.printString("Section", SectionName); in printCodeViewSymbolsSubsection()
715 W.printHex("CodeSize", CodeSize); in printCodeViewSymbolsSubsection()
720 W.startLine() << "ProcEnd\n"; in printCodeViewSymbolsSubsection()
730 ListScope S(W, "Record"); in printCodeViewSymbolsSubsection()
731 W.printHex("Size", Size); in printCodeViewSymbolsSubsection()
732 W.printHex("Type", Type); in printCodeViewSymbolsSubsection()
735 W.printBinaryBlock("Contents", Contents); in printCodeViewSymbolsSubsection()
749 ListScope SectionsD(W, "Sections"); in printSections()
758 DictScope D(W, "Section"); in printSections()
759 W.printNumber("Number", SectionNumber); in printSections()
760 W.printBinary("Name", Name, Section->Name); in printSections()
761 W.printHex ("VirtualSize", Section->VirtualSize); in printSections()
762 W.printHex ("VirtualAddress", Section->VirtualAddress); in printSections()
763 W.printNumber("RawDataSize", Section->SizeOfRawData); in printSections()
764 W.printHex ("PointerToRawData", Section->PointerToRawData); in printSections()
765 W.printHex ("PointerToRelocations", Section->PointerToRelocations); in printSections()
766 W.printHex ("PointerToLineNumbers", Section->PointerToLinenumbers); in printSections()
767 W.printNumber("RelocationCount", Section->NumberOfRelocations); in printSections()
768 W.printNumber("LineNumberCount", Section->NumberOfLinenumbers); in printSections()
769 W.printFlags ("Characteristics", Section->Characteristics, in printSections()
774 ListScope D(W, "Relocations"); in printSections()
780 ListScope D(W, "Symbols"); in printSections()
794 W.printBinaryBlock("SectionData", Data); in printSections()
800 ListScope D(W, "Relocations"); in printRelocations()
811 W.startLine() << "Section (" << SectionNumber << ") " << Name << " {\n"; in printRelocations()
812 W.indent(); in printRelocations()
820 W.unindent(); in printRelocations()
821 W.startLine() << "}\n"; in printRelocations()
841 DictScope Group(W, "Relocation"); in printRelocation()
842 W.printHex("Offset", Offset); in printRelocation()
843 W.printNumber("Type", RelocName, RelocType); in printRelocation()
844 W.printString("Symbol", SymbolName.empty() ? "-" : SymbolName); in printRelocation()
846 raw_ostream& OS = W.startLine(); in printRelocation()
847 OS << W.hex(Offset) in printRelocation()
855 ListScope Group(W, "Symbols"); in printSymbols()
861 void COFFDumper::printDynamicSymbols() { ListScope Group(W, "DynamicSymbols"); } in printDynamicSymbols()
882 DictScope D(W, "Symbol"); in printSymbol()
887 W.startLine() << "Invalid section number: " << EC.message() << "\n"; in printSymbol()
888 W.flush(); in printSymbol()
902 W.printString("Name", SymbolName); in printSymbol()
903 W.printNumber("Value", Symbol.getValue()); in printSymbol()
904 W.printNumber("Section", SectionName, Symbol.getSectionNumber()); in printSymbol()
905 W.printEnum ("BaseType", Symbol.getBaseType(), makeArrayRef(ImageSymType)); in printSymbol()
906 W.printEnum ("ComplexType", Symbol.getComplexType(), in printSymbol()
908 W.printEnum ("StorageClass", Symbol.getStorageClass(), in printSymbol()
910 W.printNumber("AuxSymbolCount", Symbol.getNumberOfAuxSymbols()); in printSymbol()
917 DictScope AS(W, "AuxFunctionDef"); in printSymbol()
918 W.printNumber("TagIndex", Aux->TagIndex); in printSymbol()
919 W.printNumber("TotalSize", Aux->TotalSize); in printSymbol()
920 W.printHex("PointerToLineNumber", Aux->PointerToLinenumber); in printSymbol()
921 W.printHex("PointerToNextFunction", Aux->PointerToNextFunction); in printSymbol()
935 DictScope AS(W, "AuxWeakExternal"); in printSymbol()
936 W.printNumber("Linked", LinkedName, Aux->TagIndex); in printSymbol()
937 W.printEnum ("Search", Aux->Characteristics, in printSymbol()
944 DictScope AS(W, "AuxFileRecord"); in printSymbol()
948 W.printString("FileName", Name.rtrim(StringRef("\0", 1))); in printSymbol()
956 DictScope AS(W, "AuxSectionDef"); in printSymbol()
957 W.printNumber("Length", Aux->Length); in printSymbol()
958 W.printNumber("RelocationCount", Aux->NumberOfRelocations); in printSymbol()
959 W.printNumber("LineNumberCount", Aux->NumberOfLinenumbers); in printSymbol()
960 W.printHex("Checksum", Aux->CheckSum); in printSymbol()
961 W.printNumber("Number", AuxNumber); in printSymbol()
962 W.printEnum("Selection", Aux->Selection, makeArrayRef(ImageCOMDATSelect)); in printSymbol()
979 W.printNumber("AssocSection", AssocName, AuxNumber); in printSymbol()
994 DictScope AS(W, "AuxCLRToken"); in printSymbol()
995 W.printNumber("AuxType", Aux->AuxType); in printSymbol()
996 W.printNumber("Reserved", Aux->Reserved); in printSymbol()
997 W.printNumber("SymbolTableIndex", ReferredName, Aux->SymbolTableIndex); in printSymbol()
1000 W.startLine() << "<unhandled auxiliary record>\n"; in printSymbol()
1006 ListScope D(W, "UnwindInformation"); in printUnwindInfo()
1009 Win64EH::Dumper Dumper(W); in printUnwindInfo()
1021 ARM::WinEH::Decoder Decoder(W); in printUnwindInfo()
1026 W.printEnum("unsupported Image Machine", Obj->getMachine(), in printUnwindInfo()
1039 W.printNumber("Symbol", Sym, Ordinal); in printImportedSymbols()
1048 DictScope Import(W, "Import"); in printDelayImportedSymbols()
1053 W.printNumber("Symbol", Sym, Ordinal); in printDelayImportedSymbols()
1056 W.printHex("Address", Addr); in printDelayImportedSymbols()
1063 DictScope Import(W, "Import"); in printCOFFImports()
1066 W.printString("Name", Name); in printCOFFImports()
1069 W.printHex("ImportLookupTableRVA", Addr); in printCOFFImports()
1071 W.printHex("ImportAddressTableRVA", Addr); in printCOFFImports()
1077 DictScope Import(W, "DelayImport"); in printCOFFImports()
1080 W.printString("Name", Name); in printCOFFImports()
1083 W.printHex("Attributes", Table->Attributes); in printCOFFImports()
1084 W.printHex("ModuleHandle", Table->ModuleHandle); in printCOFFImports()
1085 W.printHex("ImportAddressTable", Table->DelayImportAddressTable); in printCOFFImports()
1086 W.printHex("ImportNameTable", Table->DelayImportNameTable); in printCOFFImports()
1087 W.printHex("BoundDelayImportTable", Table->BoundDelayImportTable); in printCOFFImports()
1088 W.printHex("UnloadDelayImportTable", Table->UnloadDelayImportTable); in printCOFFImports()
1095 DictScope Export(W, "Export"); in printCOFFExports()
1104 W.printNumber("Ordinal", Ordinal); in printCOFFExports()
1105 W.printString("Name", Name); in printCOFFExports()
1106 W.printHex("RVA", RVA); in printCOFFExports()
1121 W.printString("Directive(s)", Contents); in printCOFFDirectives()
1139 ListScope D(W, "BaseReloc"); in printCOFFBaseReloc()
1145 DictScope Import(W, "Entry"); in printCOFFBaseReloc()
1146 W.printString("Type", getBaseRelocTypeName(Type)); in printCOFFBaseReloc()
1147 W.printHex("Address", RVA); in printCOFFBaseReloc()