Ejemplo n.º 1
0
        private void CheckMethodDebugInformationTable()
        {
            MethodDebugInformationTable table = pdb_metadata.table_heap.GetTable <MethodDebugInformationTable>(Table.MethodDebugInformation);

            if (table.length <= 0)
            {
                table.rows   = new Row <uint, uint> [module_metadata.method_rid - 1];
                table.length = table.rows.Length;
            }
        }
Ejemplo n.º 2
0
        private MethodDebugInformationTable CreateMethodDebugInformation()
        {
            var table = new MethodDebugInformationTable();

            table.RowCount = moduleBuilder.MethodDef.RowCount;
            foreach (var method in methods)
            {
                var index = (tokenMap[method.Token] & 0xFFFFFF) - 1;
                table.records[index].Document       = method.Document;
                table.records[index].SequencePoints = method.SequencePoints;
            }
            return(table);
        }