• Home
  • Raw
  • Download

Lines Matching full:io

91 void MappingTraits<DWARFYAML::Data>::mapping(IO &IO, DWARFYAML::Data &DWARF) {  in mapping()  argument
92 void *OldContext = IO.getContext(); in mapping()
94 IO.setContext(&DWARFCtx); in mapping()
95 IO.mapOptional("debug_str", DWARF.DebugStrings); in mapping()
96 IO.mapOptional("debug_abbrev", DWARF.DebugAbbrev); in mapping()
97 IO.mapOptional("debug_aranges", DWARF.DebugAranges); in mapping()
98 IO.mapOptional("debug_ranges", DWARF.DebugRanges); in mapping()
99 IO.mapOptional("debug_pubnames", DWARF.PubNames); in mapping()
100 IO.mapOptional("debug_pubtypes", DWARF.PubTypes); in mapping()
102 IO.mapOptional("debug_gnu_pubnames", DWARF.GNUPubNames); in mapping()
103 IO.mapOptional("debug_gnu_pubtypes", DWARF.GNUPubTypes); in mapping()
104 IO.mapOptional("debug_info", DWARF.CompileUnits); in mapping()
105 IO.mapOptional("debug_line", DWARF.DebugLines); in mapping()
106 IO.mapOptional("debug_addr", DWARF.DebugAddr); in mapping()
107 IO.mapOptional("debug_str_offsets", DWARF.DebugStrOffsets); in mapping()
108 IO.mapOptional("debug_rnglists", DWARF.DebugRnglists); in mapping()
109 IO.mapOptional("debug_loclists", DWARF.DebugLoclists); in mapping()
110 IO.setContext(OldContext); in mapping()
114 IO &IO, DWARFYAML::AbbrevTable &AbbrevTable) { in mapping() argument
115 IO.mapOptional("ID", AbbrevTable.ID); in mapping()
116 IO.mapOptional("Table", AbbrevTable.Table); in mapping()
119 void MappingTraits<DWARFYAML::Abbrev>::mapping(IO &IO, in mapping() argument
121 IO.mapOptional("Code", Abbrev.Code); in mapping()
122 IO.mapRequired("Tag", Abbrev.Tag); in mapping()
123 IO.mapRequired("Children", Abbrev.Children); in mapping()
124 IO.mapOptional("Attributes", Abbrev.Attributes); in mapping()
128 IO &IO, DWARFYAML::AttributeAbbrev &AttAbbrev) { in mapping() argument
129 IO.mapRequired("Attribute", AttAbbrev.Attribute); in mapping()
130 IO.mapRequired("Form", AttAbbrev.Form); in mapping()
132 IO.mapRequired("Value", AttAbbrev.Value); in mapping()
136 IO &IO, DWARFYAML::ARangeDescriptor &Descriptor) { in mapping() argument
137 IO.mapRequired("Address", Descriptor.Address); in mapping()
138 IO.mapRequired("Length", Descriptor.Length); in mapping()
141 void MappingTraits<DWARFYAML::ARange>::mapping(IO &IO, in mapping() argument
143 IO.mapOptional("Format", ARange.Format, dwarf::DWARF32); in mapping()
144 IO.mapOptional("Length", ARange.Length); in mapping()
145 IO.mapRequired("Version", ARange.Version); in mapping()
146 IO.mapRequired("CuOffset", ARange.CuOffset); in mapping()
147 IO.mapOptional("AddressSize", ARange.AddrSize); in mapping()
148 IO.mapOptional("SegmentSelectorSize", ARange.SegSize, 0); in mapping()
149 IO.mapOptional("Descriptors", ARange.Descriptors); in mapping()
153 IO &IO, DWARFYAML::RangeEntry &Descriptor) { in mapping() argument
154 IO.mapRequired("LowOffset", Descriptor.LowOffset); in mapping()
155 IO.mapRequired("HighOffset", Descriptor.HighOffset); in mapping()
158 void MappingTraits<DWARFYAML::Ranges>::mapping(IO &IO, in mapping() argument
160 IO.mapOptional("Offset", DebugRanges.Offset); in mapping()
161 IO.mapOptional("AddrSize", DebugRanges.AddrSize); in mapping()
162 IO.mapRequired("Entries", DebugRanges.Entries); in mapping()
165 void MappingTraits<DWARFYAML::PubEntry>::mapping(IO &IO, in mapping() argument
167 IO.mapRequired("DieOffset", Entry.DieOffset); in mapping()
168 if (static_cast<DWARFYAML::DWARFContext *>(IO.getContext())->IsGNUPubSec) in mapping()
169 IO.mapRequired("Descriptor", Entry.Descriptor); in mapping()
170 IO.mapRequired("Name", Entry.Name); in mapping()
174 IO &IO, DWARFYAML::PubSection &Section) { in mapping() argument
175 IO.mapOptional("Format", Section.Format, dwarf::DWARF32); in mapping()
176 IO.mapRequired("Length", Section.Length); in mapping()
177 IO.mapRequired("Version", Section.Version); in mapping()
178 IO.mapRequired("UnitOffset", Section.UnitOffset); in mapping()
179 IO.mapRequired("UnitSize", Section.UnitSize); in mapping()
180 IO.mapRequired("Entries", Section.Entries); in mapping()
183 void MappingTraits<DWARFYAML::Unit>::mapping(IO &IO, DWARFYAML::Unit &Unit) { in mapping() argument
184 IO.mapOptional("Format", Unit.Format, dwarf::DWARF32); in mapping()
185 IO.mapOptional("Length", Unit.Length); in mapping()
186 IO.mapRequired("Version", Unit.Version); in mapping()
188 IO.mapRequired("UnitType", Unit.Type); in mapping()
189 IO.mapOptional("AbbrevTableID", Unit.AbbrevTableID); in mapping()
190 IO.mapOptional("AbbrOffset", Unit.AbbrOffset); in mapping()
191 IO.mapOptional("AddrSize", Unit.AddrSize); in mapping()
192 IO.mapOptional("Entries", Unit.Entries); in mapping()
195 void MappingTraits<DWARFYAML::Entry>::mapping(IO &IO, DWARFYAML::Entry &Entry) { in mapping() argument
196 IO.mapRequired("AbbrCode", Entry.AbbrCode); in mapping()
197 IO.mapOptional("Values", Entry.Values); in mapping()
201 IO &IO, DWARFYAML::FormValue &FormValue) { in mapping() argument
202 IO.mapOptional("Value", FormValue.Value); in mapping()
203 if (!FormValue.CStr.empty() || !IO.outputting()) in mapping()
204 IO.mapOptional("CStr", FormValue.CStr); in mapping()
205 if (!FormValue.BlockData.empty() || !IO.outputting()) in mapping()
206 IO.mapOptional("BlockData", FormValue.BlockData); in mapping()
209 void MappingTraits<DWARFYAML::File>::mapping(IO &IO, DWARFYAML::File &File) { in mapping() argument
210 IO.mapRequired("Name", File.Name); in mapping()
211 IO.mapRequired("DirIdx", File.DirIdx); in mapping()
212 IO.mapRequired("ModTime", File.ModTime); in mapping()
213 IO.mapRequired("Length", File.Length); in mapping()
217 IO &IO, DWARFYAML::LineTableOpcode &LineTableOpcode) { in mapping() argument
218 IO.mapRequired("Opcode", LineTableOpcode.Opcode); in mapping()
220 IO.mapOptional("ExtLen", LineTableOpcode.ExtLen); in mapping()
221 IO.mapRequired("SubOpcode", LineTableOpcode.SubOpcode); in mapping()
224 if (!LineTableOpcode.UnknownOpcodeData.empty() || !IO.outputting()) in mapping()
225 IO.mapOptional("UnknownOpcodeData", LineTableOpcode.UnknownOpcodeData); in mapping()
226 if (!LineTableOpcode.UnknownOpcodeData.empty() || !IO.outputting()) in mapping()
227 IO.mapOptional("StandardOpcodeData", LineTableOpcode.StandardOpcodeData); in mapping()
228 if (!LineTableOpcode.FileEntry.Name.empty() || !IO.outputting()) in mapping()
229 IO.mapOptional("FileEntry", LineTableOpcode.FileEntry); in mapping()
230 if (LineTableOpcode.Opcode == dwarf::DW_LNS_advance_line || !IO.outputting()) in mapping()
231 IO.mapOptional("SData", LineTableOpcode.SData); in mapping()
232 IO.mapOptional("Data", LineTableOpcode.Data); in mapping()
236 IO &IO, DWARFYAML::LineTable &LineTable) { in mapping() argument
237 IO.mapOptional("Format", LineTable.Format, dwarf::DWARF32); in mapping()
238 IO.mapOptional("Length", LineTable.Length); in mapping()
239 IO.mapRequired("Version", LineTable.Version); in mapping()
240 IO.mapOptional("PrologueLength", LineTable.PrologueLength); in mapping()
241 IO.mapRequired("MinInstLength", LineTable.MinInstLength); in mapping()
243 IO.mapRequired("MaxOpsPerInst", LineTable.MaxOpsPerInst); in mapping()
244 IO.mapRequired("DefaultIsStmt", LineTable.DefaultIsStmt); in mapping()
245 IO.mapRequired("LineBase", LineTable.LineBase); in mapping()
246 IO.mapRequired("LineRange", LineTable.LineRange); in mapping()
247 IO.mapOptional("OpcodeBase", LineTable.OpcodeBase); in mapping()
248 IO.mapOptional("StandardOpcodeLengths", LineTable.StandardOpcodeLengths); in mapping()
249 IO.mapOptional("IncludeDirs", LineTable.IncludeDirs); in mapping()
250 IO.mapOptional("Files", LineTable.Files); in mapping()
251 IO.mapOptional("Opcodes", LineTable.Opcodes); in mapping()
255 IO &IO, DWARFYAML::SegAddrPair &SegAddrPair) { in mapping() argument
256 IO.mapOptional("Segment", SegAddrPair.Segment, 0); in mapping()
257 IO.mapOptional("Address", SegAddrPair.Address, 0); in mapping()
261 IO &IO, DWARFYAML::AddrTableEntry &AddrTable) { in mapping() argument
262 IO.mapOptional("Format", AddrTable.Format, dwarf::DWARF32); in mapping()
263 IO.mapOptional("Length", AddrTable.Length); in mapping()
264 IO.mapRequired("Version", AddrTable.Version); in mapping()
265 IO.mapOptional("AddressSize", AddrTable.AddrSize); in mapping()
266 IO.mapOptional("SegmentSelectorSize", AddrTable.SegSelectorSize, 0); in mapping()
267 IO.mapOptional("Entries", AddrTable.SegAddrPairs); in mapping()
271 IO &IO, DWARFYAML::StringOffsetsTable &StrOffsetsTable) { in mapping() argument
272 IO.mapOptional("Format", StrOffsetsTable.Format, dwarf::DWARF32); in mapping()
273 IO.mapOptional("Length", StrOffsetsTable.Length); in mapping()
274 IO.mapOptional("Version", StrOffsetsTable.Version, 5); in mapping()
275 IO.mapOptional("Padding", StrOffsetsTable.Padding, 0); in mapping()
276 IO.mapOptional("Offsets", StrOffsetsTable.Offsets); in mapping()
280 IO &IO, DWARFYAML::DWARFOperation &DWARFOperation) { in mapping() argument
281 IO.mapRequired("Operator", DWARFOperation.Operator); in mapping()
282 IO.mapOptional("Values", DWARFOperation.Values); in mapping()
286 IO &IO, DWARFYAML::RnglistEntry &RnglistEntry) { in mapping() argument
287 IO.mapRequired("Operator", RnglistEntry.Operator); in mapping()
288 IO.mapOptional("Values", RnglistEntry.Values); in mapping()
292 IO &IO, DWARFYAML::LoclistEntry &LoclistEntry) { in mapping() argument
293 IO.mapRequired("Operator", LoclistEntry.Operator); in mapping()
294 IO.mapOptional("Values", LoclistEntry.Values); in mapping()
295 IO.mapOptional("DescriptionsLength", LoclistEntry.DescriptionsLength); in mapping()
296 IO.mapOptional("Descriptions", LoclistEntry.Descriptions); in mapping()
301 IO &IO, DWARFYAML::ListEntries<EntryType> &ListEntries) { in mapping() argument
302 IO.mapOptional("Entries", ListEntries.Entries); in mapping()
303 IO.mapOptional("Content", ListEntries.Content); in mapping()
308 IO &IO, DWARFYAML::ListEntries<EntryType> &ListEntries) { in validate() argument
316 IO &IO, DWARFYAML::ListTable<EntryType> &ListTable) { in mapping() argument
317 IO.mapOptional("Format", ListTable.Format, dwarf::DWARF32); in mapping()
318 IO.mapOptional("Length", ListTable.Length); in mapping()
319 IO.mapOptional("Version", ListTable.Version, 5); in mapping()
320 IO.mapOptional("AddressSize", ListTable.AddrSize); in mapping()
321 IO.mapOptional("SegmentSelectorSize", ListTable.SegSelectorSize, 0); in mapping()
322 IO.mapOptional("OffsetEntryCount", ListTable.OffsetEntryCount); in mapping()
323 IO.mapOptional("Offsets", ListTable.Offsets); in mapping()
324 IO.mapOptional("Lists", ListTable.Lists); in mapping()