Ejemplo n.º 1
0
        void WriteWindowsPdb(PdbState pdbState)
        {
            var symWriter = GetWindowsPdbSymbolWriter();

            if (symWriter == null)
            {
                Error("Could not create a PDB symbol writer. A Windows OS might be required.");
                return;
            }

            using (var pdbWriter = new WindowsPdbWriter(symWriter, pdbState, metaData)) {
                pdbWriter.Logger = TheOptions.Logger;
                pdbWriter.Write();

                IMAGE_DEBUG_DIRECTORY idd;
                var data  = pdbWriter.GetDebugInfo(out idd);
                var entry = debugDirectory.Add(data);
                entry.DebugDirectory = idd;
                entry.DebugDirectory.TimeDateStamp = GetTimeDateStamp();
            }
        }