diff --git a/src/Microsoft.Diagnostics.Runtime/DataReaders/DbgEng/DbgEngDataReader.cs b/src/Microsoft.Diagnostics.Runtime/DataReaders/DbgEng/DbgEngDataReader.cs index e8bb3f538..e159c1739 100644 --- a/src/Microsoft.Diagnostics.Runtime/DataReaders/DbgEng/DbgEngDataReader.cs +++ b/src/Microsoft.Diagnostics.Runtime/DataReaders/DbgEng/DbgEngDataReader.cs @@ -181,7 +181,7 @@ public IEnumerable EnumerateModules() { string? fn = _symbols.GetModuleNameStringWide(DebugModuleName.Image, i, bases[i]) ?? ""; - ModuleInfo info = new PEModuleInfo(this, bases[i], fn, true, mods[i].Size, mods[i].TimeDateStamp, GetVersionInfo(bases[i])); + ModuleInfo info = new PEModuleInfo(this, bases[i], fn, true, mods[i].TimeDateStamp, mods[i].Size, GetVersionInfo(bases[i])); modules.Add(info); } } diff --git a/src/Microsoft.Diagnostics.Runtime/DataTarget.cs b/src/Microsoft.Diagnostics.Runtime/DataTarget.cs index 7fbe321d3..4331aabd8 100644 --- a/src/Microsoft.Diagnostics.Runtime/DataTarget.cs +++ b/src/Microsoft.Diagnostics.Runtime/DataTarget.cs @@ -442,13 +442,14 @@ public static DataTarget CreateSnapshotAndAttach(int processId, TokenCredential? /// (cdb.exe, windbg.exe, dbgeng.dll). /// /// An IDebugClient interface. + /// A TokenCredential for azure based symbol servers. /// A instance. - public static DataTarget CreateFromDbgEng(IntPtr pDebugClient) + public static DataTarget CreateFromDbgEng(IntPtr pDebugClient, TokenCredential? symbolCredential = null) { if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) throw GetPlatformException(); - CustomDataTarget customTarget = new(new DbgEngDataReader(pDebugClient), null); + CustomDataTarget customTarget = new(new DbgEngDataReader(pDebugClient), symbolCredential); return new DataTarget(customTarget); }