Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/Tools/dotnet-dump/Analyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

using System;
using System.IO;
using System.Net;
using System.Net.Http;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Security;
Expand Down Expand Up @@ -102,6 +104,7 @@ or NotSupportedException
contextService.SetCurrentTarget(target);

// Automatically enable symbol server support, default cache and search for symbols in the dump directory
HttpClient.DefaultProxy.Credentials = CredentialCache.DefaultCredentials;
symbolService.AddSymbolServer(retryCount: 3);
symbolService.AddCachePath(symbolService.DefaultSymbolCache);
symbolService.AddDirectoryPath(Path.GetDirectoryName(dump_path.FullName));
Expand Down
9 changes: 5 additions & 4 deletions src/Tools/dotnet-symbol/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Runtime.InteropServices;
using System.Threading;
Expand Down Expand Up @@ -68,7 +70,7 @@ public static void Main(string[] args)
program.SymbolServers.Add(new ServerInfo { Uri = uri, PersonalAccessToken = null });
break;

case "--internal-server":
case "--internal-server":
Uri.TryCreate("https://symweb.azurefd.net/", UriKind.Absolute, out uri);
program.SymbolServers.Add(new ServerInfo { Uri = uri, PersonalAccessToken = null, InternalSymwebServer = true });
break;
Expand Down Expand Up @@ -263,7 +265,7 @@ internal async Task DownloadFiles()
private Microsoft.SymbolStore.SymbolStores.SymbolStore BuildSymbolStore()
{
Microsoft.SymbolStore.SymbolStores.SymbolStore store = null;

HttpClient.DefaultProxy.Credentials = CredentialCache.DefaultCredentials;
foreach (ServerInfo server in ((IEnumerable<ServerInfo>)SymbolServers).Reverse())
{
if (server.InternalSymwebServer)
Expand Down Expand Up @@ -597,8 +599,7 @@ internal void VerifyCoreDump()

private IEnumerable<string> GetInputFiles()
{
IEnumerable<string> inputFiles = InputFilePaths.SelectMany((string file) =>
{
IEnumerable<string> inputFiles = InputFilePaths.SelectMany((string file) => {
string directory = Path.GetDirectoryName(file);
string pattern = Path.GetFileName(file);
return Directory.EnumerateFiles(string.IsNullOrWhiteSpace(directory) ? "." : directory, pattern,
Expand Down
Loading