private static void HandleCrashes(dynamic crashes, string pdbFile, string header) { var pdbSession = DiaHelper.LoadPDB(pdbFile); int crashCount = 0; _writer.WriteLine(); _writer.WriteLine(); _writer.WriteLine(); _writer.WriteLine(); _writer.WriteLine(); _writer.WriteLine(header); foreach (var crash in crashes) { crashCount++; string hash = crash.failureHash; HandleCrash(hash, pdbSession, crashCount); } }
private static void SymbolicateInRightMode(string pdb, string arch, string header) { string fullPdbPath = Path.GetFullPath(pdb); if (!String.IsNullOrEmpty(_tsvPath)) { HandleTsvStacktrace(Path.GetFullPath(_tsvPath), DiaHelper.LoadPDB(fullPdbPath)); } else if (!String.IsNullOrEmpty(_crashTxtPath)) { HandleCrashTxtStacktrace(Path.GetFullPath(_crashTxtPath), DiaHelper.LoadPDB(fullPdbPath)); } else if (!String.IsNullOrEmpty(_failureHash)) { _accessToken = GetClientCredentialAccessToken(_tenantId, _clientId, _clientSecret, DevCenterApiUri).Result; HandleCrash(_failureHash, DiaHelper.LoadPDB(fullPdbPath), 1); } else { _accessToken = GetClientCredentialAccessToken(_tenantId, _clientId, _clientSecret, DevCenterApiUri).Result; var crashes = GetCrashes(arch); HandleCrashes(crashes, fullPdbPath, header); } }