From: Yi Zhang (CLR) Date: Fri, 21 Apr 2017 09:01:40 +0000 (-0700) Subject: Add Marshal.GetExceptionPointers (#11125) X-Git-Tag: accepted/tizen/base/20180629.140029~1329 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de27abba871bc74aa226426bc53696ddf09c9aee;p=platform%2Fupstream%2Fcoreclr.git Add Marshal.GetExceptionPointers (#11125) * Add Marshal.GetExceptionPointers * Remove SecurityCritical --- diff --git a/src/mscorlib/src/System/Runtime/InteropServices/Marshal.cs b/src/mscorlib/src/System/Runtime/InteropServices/Marshal.cs index 248e0d5..6fb6311 100644 --- a/src/mscorlib/src/System/Runtime/InteropServices/Marshal.cs +++ b/src/mscorlib/src/System/Runtime/InteropServices/Marshal.cs @@ -824,6 +824,9 @@ namespace System.Runtime.InteropServices } [MethodImplAttribute(MethodImplOptions.InternalCall)] + public static extern /* struct _EXCEPTION_POINTERS* */ IntPtr GetExceptionPointers(); + + [MethodImplAttribute(MethodImplOptions.InternalCall)] public static extern int GetExceptionCode(); diff --git a/src/vm/ecalllist.h b/src/vm/ecalllist.h index 6ed29b8..5c3e5f8 100644 --- a/src/vm/ecalllist.h +++ b/src/vm/ecalllist.h @@ -946,6 +946,7 @@ FCFuncStart(gInteropMarshalFuncs) FCFuncElement("DestroyStructure", MarshalNative::DestroyStructure) FCFuncElement("UnsafeAddrOfPinnedArrayElement", MarshalNative::FCUnsafeAddrOfPinnedArrayElement) FCFuncElement("GetExceptionCode", ExceptionNative::GetExceptionCode) + FCFuncElement("GetExceptionPointers", ExceptionNative::GetExceptionPointers) QCFuncElement("GetHINSTANCE", COMModule::GetHINSTANCE) FCFuncElement("OffsetOfHelper", MarshalNative::OffsetOfHelper)