Allow larger single file apps debugging in DbgShim (#3659)
authormikelle-rogers <45022607+mikelle-rogers@users.noreply.github.com>
Wed, 15 Feb 2023 01:38:58 +0000 (17:38 -0800)
committerGitHub <noreply@github.com>
Wed, 15 Feb 2023 01:38:58 +0000 (17:38 -0800)
Remove check in dbgshim.cpp to ensure the file is less than 100 MB. This allows single file apps with larger sizes to be debugged under a managed debugger.

src/dbgshim/dbgshim.cpp

index 2a2c572d02daf1676da6ddd320e36ca967e383ac..5b9ac973f396fa095286d3a3a7139d6b0e29b742 100644 (file)
@@ -1117,12 +1117,6 @@ GetTargetCLRMetrics(
         return HRESULT_FROM_WIN32(GetLastError());
     }
 
-    // A maximum size of 100 MB should be more than enough for coreclr.dll.
-    if ((cbFileHigh != 0) || (cbFileLow > 0x6400000) || (cbFileLow == 0))
-    {
-        return E_FAIL;
-    }
-
     HandleHolder hCoreClrMap = WszCreateFileMapping(hCoreClrFile, NULL, PAGE_READONLY, cbFileHigh, cbFileLow, NULL);
     if (hCoreClrMap == NULL)
     {