llvm.org GIT mirror llvm / 7357f03
Dump the normal dwarf pubtypes section as well. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191408 91177308-0d34-0410-b5e6-96231b3b80d8 Eric Christopher 6 years ago
4 changed file(s) with 31 addition(s) and 20 deletion(s). Raw diff Collapse all Expand all
108108 DIDT_Loc,
109109 DIDT_Ranges,
110110 DIDT_Pubnames,
111 DIDT_Pubtypes,
111112 DIDT_GnuPubnames,
112113 DIDT_GnuPubtypes,
113114 DIDT_Str,
5353 << ' ' << '\"' << pubNames.getCStr(&offset) << "\"\n";
5454 } else {
5555 OS << format("0x%8.8x ", dieRef);
56 OS << pubNames.getCStr(&offset) << "\n";
56 OS << '\"' << pubNames.getCStr(&offset) << "\"\n";
5757 }
5858 }
5959 }
140140
141141 if (DumpType == DIDT_All || DumpType == DIDT_Pubnames)
142142 dumpPubSection(OS, "debug_pubnames", getPubNamesSection(),
143 isLittleEndian(), false);
144
145 if (DumpType == DIDT_All || DumpType == DIDT_Pubtypes)
146 dumpPubSection(OS, "debug_pubtypes", getPubTypesSection(),
143147 isLittleEndian(), false);
144148
145149 if (DumpType == DIDT_All || DumpType == DIDT_GnuPubnames)
604608 UncompressedSections.push_back(UncompressedSection.take());
605609 }
606610
607 StringRef *Section = StringSwitch(name)
608 .Case("debug_info", &InfoSection.Data)
609 .Case("debug_abbrev", &AbbrevSection)
610 .Case("debug_loc", &LocSection.Data)
611 .Case("debug_line", &LineSection.Data)
612 .Case("debug_aranges", &ARangeSection)
613 .Case("debug_frame", &DebugFrameSection)
614 .Case("debug_str", &StringSection)
615 .Case("debug_ranges", &RangeSection)
616 .Case("debug_pubnames", &PubNamesSection)
617 .Case("debug_gnu_pubnames", &GnuPubNamesSection)
618 .Case("debug_gnu_pubtypes", &GnuPubTypesSection)
619 .Case("debug_info.dwo", &InfoDWOSection.Data)
620 .Case("debug_abbrev.dwo", &AbbrevDWOSection)
621 .Case("debug_str.dwo", &StringDWOSection)
622 .Case("debug_str_offsets.dwo", &StringOffsetDWOSection)
623 .Case("debug_addr", &AddrSection)
624 // Any more debug info sections go here.
625 .Default(0);
611 StringRef *Section =
612 StringSwitch(name)
613 .Case("debug_info", &InfoSection.Data)
614 .Case("debug_abbrev", &AbbrevSection)
615 .Case("debug_loc", &LocSection.Data)
616 .Case("debug_line", &LineSection.Data)
617 .Case("debug_aranges", &ARangeSection)
618 .Case("debug_frame", &DebugFrameSection)
619 .Case("debug_str", &StringSection)
620 .Case("debug_ranges", &RangeSection)
621 .Case("debug_pubnames", &PubNamesSection)
622 .Case("debug_pubtypes", &PubTypesSection)
623 .Case("debug_gnu_pubnames", &GnuPubNamesSection)
624 .Case("debug_gnu_pubtypes", &GnuPubTypesSection)
625 .Case("debug_info.dwo", &InfoDWOSection.Data)
626 .Case("debug_abbrev.dwo", &AbbrevDWOSection)
627 .Case("debug_str.dwo", &StringDWOSection)
628 .Case("debug_str_offsets.dwo", &StringOffsetDWOSection)
629 .Case("debug_addr", &AddrSection)
630 // Any more debug info sections go here.
631 .Default(0);
626632 if (Section) {
627633 *Section = data;
628634 if (name == "debug_ranges") {
146146 virtual StringRef getStringSection() = 0;
147147 virtual StringRef getRangeSection() = 0;
148148 virtual StringRef getPubNamesSection() = 0;
149 virtual StringRef getPubTypesSection() = 0;
149150 virtual StringRef getGnuPubNamesSection() = 0;
150151 virtual StringRef getGnuPubTypesSection() = 0;
151152
186187 StringRef StringSection;
187188 StringRef RangeSection;
188189 StringRef PubNamesSection;
190 StringRef PubTypesSection;
189191 StringRef GnuPubNamesSection;
190192 StringRef GnuPubTypesSection;
191193
216218 virtual StringRef getStringSection() { return StringSection; }
217219 virtual StringRef getRangeSection() { return RangeSection; }
218220 virtual StringRef getPubNamesSection() { return PubNamesSection; }
221 virtual StringRef getPubTypesSection() { return PubTypesSection; }
219222 virtual StringRef getGnuPubNamesSection() { return GnuPubNamesSection; }
220223 virtual StringRef getGnuPubTypesSection() { return GnuPubTypesSection; }
221224
6666 clEnumValN(DIDT_Frames, "frames", ".debug_frame"),
6767 clEnumValN(DIDT_Ranges, "ranges", ".debug_ranges"),
6868 clEnumValN(DIDT_Pubnames, "pubnames", ".debug_pubnames"),
69 clEnumValN(DIDT_Pubtypes, "pubtypes", ".debug_pubtypes"),
6970 clEnumValN(DIDT_Str, "str", ".debug_str"),
7071 clEnumValN(DIDT_StrDwo, "str.dwo", ".debug_str.dwo"),
7172 clEnumValN(DIDT_StrOffsetsDwo, "str_offsets.dwo", ".debug_str_offsets.dwo"),