Ejemplo n.º 1
0
        public override void DefineSymbolInfo(MonoSymbolWriter symwriter)
        {
            base.DefineSymbolInfo(symwriter);

            comp_unit = symwriter.DefineCompilationUnit(SourceFileEntry);

            if (include_files != null)
            {
                foreach (SourceFile include in include_files.Values)
                {
                    include.DefineSymbolInfo(symwriter);
                    comp_unit.AddFile(include.SourceFileEntry);
                }
            }
        }
Ejemplo n.º 2
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);
        }
Ejemplo n.º 3
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);
        }
Ejemplo 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 ();

            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;
        }