Restore original delegate use until corresponding corefx changes have gone through
authorJohn Salem <josalem@microsoft.com>
Fri, 22 Feb 2019 23:36:23 +0000 (15:36 -0800)
committerJohn Salem <josalem@microsoft.com>
Fri, 22 Feb 2019 23:36:23 +0000 (15:36 -0800)
Commit migrated from https://github.com/dotnet/coreclr/commit/8d1908e7ff4fbf01dc6c84e174dee79ff0cdf826

src/coreclr/src/System.Private.CoreLib/src/System/Diagnostics/StackFrameHelper.cs

index c86a90f..8b6d73e 100644 (file)
@@ -48,7 +48,7 @@ namespace System.Diagnostics
         private int iFrameCount;
 #pragma warning restore 414
 
-        private delegate void GetSourceLineInfoDelegate(Assembly assembly, string assemblyPath, IntPtr loadedPeAddress,
+        private delegate void GetSourceLineInfoDelegate(string assemblyPath, IntPtr loadedPeAddress,
             int loadedPeSize, IntPtr inMemoryPdbAddress, int inMemoryPdbSize, int methodToken, int ilOffset,
             out string sourceFile, out int sourceLine, out int sourceColumn);
 
@@ -140,7 +140,7 @@ namespace System.Diagnostics
                     // ENC or the source/line info was already retrieved, the method token is 0.
                     if (rgiMethodToken[index] != 0)
                     {
-                        s_getSourceLineInfo(rgAssembly[index], rgAssemblyPath[index], rgLoadedPeAddress[index], rgiLoadedPeSize[index],
+                        s_getSourceLineInfo(rgAssemblyPath[index], rgLoadedPeAddress[index], rgiLoadedPeSize[index],
                             rgInMemoryPdbAddress[index], rgiInMemoryPdbSize[index], rgiMethodToken[index],
                             rgiILOffset[index], out rgFilename[index], out rgiLineNumber[index], out rgiColumnNumber[index]);
                     }