private void EvaluateResults(SourceIndexer sourceIndexer) { var pdbPath = this.PdbPathTextBox.Text; var debugStreams = sourceIndexer.GetDebugStreams(pdbPath); if (debugStreams == null) { debugStreams = new SourceIndexerDebugStreams(); sourceIndexer.ExtractDebugStreams(pdbPath, debugStreams); } this.EvaluatedRichTextBox.Text = this.NormalizeNewlines(debugStreams.EvaluatedResults); this.StreamRichTextBox.Text = this.NormalizeNewlines(debugStreams.RawResults); this.UnindexedRichTextBox.Text = this.NormalizeNewlines(debugStreams.UnindexedResults); }
private void IndexPdb(string pdbPath) { Config.Logger.Log(VerbosityLevel.Basic, string.Format("Indexing pdb '{0}'", pdbPath)); var repositories = Repositories; // If we're not in fast mode, we need to prune the list of repo files based upon the pdb file listing if (!Config.FastMode) { // Get the list of files from the source tool var files = this.GetFileListing(pdbPath); Config.Logger.Log(VerbosityLevel.Basic, string.Format("Pdb contains {0} files:", files.Count)); if (Config.Logger.IsVerboseEnough(VerbosityLevel.Detailed)) { foreach (var file in files) { Config.Logger.Log(VerbosityLevel.Detailed, string.Format(" {0}", file.PdbFilePath)); } } // Evaluate the pdb source files given our front end repositories = Repositories.Clone(); FrontEnd.EvaluateFiles(files, Repositories); } // Build the text data for the srcsrv stream from the backend var srcSrvStream = BackEnd.BuildSrcSrvStream(Repositories); Config.Logger.Log(VerbosityLevel.Detailed, string.Format("Writing stream\n{0}", srcSrvStream)); // Write the stream out to the pdb file PdbStr.WriteStream(pdbPath, srcSrvStream); if (Config.ExtractDebugStreams) { var debugStream = new SourceIndexerDebugStreams(); ExtractDebugStreams(pdbPath, debugStream); DebugStreams.Add(pdbPath, debugStream); } }
public void ExtractDebugStreams(string pdbPath, SourceIndexerDebugStreams debugStreams) { debugStreams.UnindexedResults = GetUnindexedList(pdbPath); debugStreams.EvaluatedResults = EvaluateSourceIndexing(pdbPath); debugStreams.RawResults = GetSourceIndexingResults(pdbPath); }