Add 3.1 to the installed host runtimes (#636)
authorMike McLaughlin <mikem@microsoft.com>
Fri, 22 Nov 2019 02:22:25 +0000 (18:22 -0800)
committerGitHub <noreply@github.com>
Fri, 22 Nov 2019 02:22:25 +0000 (18:22 -0800)
Add 3.1 to the installed host runtimes

Don`t enable exception callback if bpmd hasn't been executed

src/SOS/Strike/hostcoreclr.cpp
src/SOS/Strike/strike.cpp

index 92fc0900b18e66767b16e7ffcfd47442c951334e..4c45b3ce1bba903e0be69350355d5566b3232d3b 100644 (file)
@@ -349,9 +349,9 @@ static bool FindDotNetVersion(int majorFilter, int minorFilter, std::string& hos
 
 #ifdef FEATURE_PAL
 const char *g_linuxPaths[] = {
-//  "/rh-dotnet22/root/usr/bin/dotnet/shared/Microsoft.NETCore.App",
+    "/rh-dotnet31/root/usr/bin/dotnet/shared/Microsoft.NETCore.App",
+    "/rh-dotnet30/root/usr/bin/dotnet/shared/Microsoft.NETCore.App",
     "/rh-dotnet21/root/usr/bin/dotnet/shared/Microsoft.NETCore.App",
-    "/rh-dotnet20/root/usr/bin/dotnet/shared/Microsoft.NETCore.App",
     "/usr/share/dotnet/shared/Microsoft.NETCore.App",
 };
 #endif
@@ -405,11 +405,15 @@ static HRESULT GetHostRuntime(std::string& coreClrPath, std::string& hostRuntime
                 // Find highest 3.0.x version
                 if (!FindDotNetVersion(3, 0, hostRuntimeDirectory))
                 {
-                    // If an installed runtime can not be found, use the target coreclr version
-                    HRESULT hr = GetCoreClrDirectory(hostRuntimeDirectory);
-                    if (FAILED(hr))
+                    // Find highest 3.1.x version
+                    if (!FindDotNetVersion(3, 1, hostRuntimeDirectory))
                     {
-                        return hr;
+                        // If an installed runtime can not be found, use the target coreclr version
+                        HRESULT hr = GetCoreClrDirectory(hostRuntimeDirectory);
+                        if (FAILED(hr))
+                        {
+                            return hr;
+                        }
                     }
                 }
             }
index 868febf6d5d066e9f11e0b50816efb1e6d91f300..3dfcec2005082270c0f8d4ee0e2c8121c34da5cd 100644 (file)
@@ -7519,7 +7519,7 @@ Breakpoints g_bpoints;
 
 // If true, call the HandleRuntimeLoadedNotification function to enable the assembly load and JIT exceptions
 #ifndef FEATURE_PAL
-bool g_breakOnRuntimeModuleLoad = true;
+bool g_breakOnRuntimeModuleLoad = false;
 #endif
 
 // Controls whether optimizations are disabled on module load and whether NGEN can be used