Esempio n. 1
0
 IEnumerable <Info> TryGetCoreCLRInfos(Process process, string coreclrFilename)
 {
     foreach (var ccInfo in CoreCLRHelper.GetCoreCLRInfos(process.Id, coreclrFilename, null))
     {
         yield return(new Info(process, ccInfo.CoreCLRTypeInfo.Version, ccInfo.CoreCLRTypeInfo));
     }
 }
        IEnumerable <DotNetCoreAttachProgramOptions> TryGetCoreCLRInfos(Process process, string coreclrFilename)
        {
            // We can only debug processes with the same bitness
            int bitness         = IntPtr.Size * 8;
            var dbgShimFilename = DotNetCoreHelpers.GetDebugShimFilename(bitness);

            foreach (var ccInfo in CoreCLRHelper.GetCoreCLRInfos(process.Id, coreclrFilename, dbgShimFilename))
            {
                yield return(new DotNetCoreAttachProgramOptions(process.Id, ccInfo.CoreCLRTypeInfo.Version, ccInfo.CoreCLRTypeInfo.CoreCLRFilename));
            }
        }