Ejemplo n.º 1
0
 public DwarfFile()
 {
     AbbreviationTable = new DwarfAbbreviationTable();
     StringTable       = new DwarfStringTable();
     LineSection       = new DwarfLineSection();
     InfoSection       = new DwarfInfoSection();
     AddressRangeTable = new DwarfAddressRangeTable();
 }
Ejemplo n.º 2
0
        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);
            }
        }