public DwarfFile() { AbbreviationTable = new DwarfAbbreviationTable(); StringTable = new DwarfStringTable(); LineSection = new DwarfLineSection(); InfoSection = new DwarfInfoSection(); AddressRangeTable = new DwarfAddressRangeTable(); }
public static void Print(this DwarfAbbreviationTable abbrevTable, TextWriter writer) { if (writer == null) { throw new ArgumentNullException(nameof(writer)); } writer.WriteLine("Contents of the .debug_abbrev section:"); foreach (var abbreviation in abbrevTable.Abbreviations) { Print(abbreviation, writer); } }