Esempio n. 1
0
 public virtual void DefineSymbolInfo(MonoSymbolWriter symwriter)
 {
     if (guid != null)
     {
         file = symwriter.DefineDocument(FullPathName, guid, checksum);
     }
     else
     {
         file = symwriter.DefineDocument(FullPathName);
         if (AutoGenerated)
         {
             file.SetAutoGenerated();
         }
     }
 }
Esempio n. 2
0
        public SourceFileEntry CreateSymbolInfo(MonoSymbolWriter symwriter)
        {
            if (hidden_lines != null)
            {
                hidden_lines.Sort();
            }

            if (guid != null)
            {
                file = symwriter.DefineDocument(FullPathName, guid, checksum);
            }
            else
            {
                file = symwriter.DefineDocument(FullPathName);
                if (AutoGenerated)
                {
                    file.SetAutoGenerated();
                }
            }

            return(file);
        }
Esempio n. 3
0
        private SourceFile GetSourceFile(MonoSymbolWriter mdbArg, PdbFunction function)
        {
            var name = (from l in function.Lines where l.File != null select l.File.Name).First();

            SourceFile file;

            if (files.TryGetValue(name, out file))
            {
                return(file);
            }

            var entry = mdbArg.DefineDocument(name);
            var unit  = mdbArg.DefineCompilationUnit(entry);

            file = new SourceFile(unit, entry);
            files.Add(name, file);
            return(file);
        }
Esempio n. 4
0
        SourceFile GetSourceFile(MonoSymbolWriter mdb, PdbFunction function)
        {
            var name = (from l in function.lines where l.file != null select l.file.name).First();

            if (name.IndexOf(windowsRootFolder, StringComparison.CurrentCultureIgnoreCase) == 0)
            {
                name = name.Replace(@"\", "/");
                name = $"{linuxRootFolder}{name.Substring(windowsRootFolder.Length)}";
            }

            SourceFile file;

            if (files.TryGetValue(name, out file))
            {
                return(file);
            }

            var entry = mdb.DefineDocument(name);
            var unit  = mdb.DefineCompilationUnit(entry);

            file = new SourceFile(unit, entry);
            files.Add(name, file);
            return(file);
        }
Esempio n. 5
0
        SourceFile GetSourceFile(MonoSymbolWriter mdb, PdbFunction function)
        {
            var name = (from l in function.lines where l.file != null select l.file.name).First ();

            SourceFile file;
            if (files.TryGetValue (name, out file))
                return file;

            var entry = mdb.DefineDocument (name);
            var unit = mdb.DefineCompilationUnit (entry);

            file = new SourceFile (unit, entry);
            files.Add (name, file);
            return file;
        }