Esempio n. 1
0
        private static bool IsV3InternalFrameType(CorFrame internalFrame)
        {
            // CorStackWalkEx wants to expose V2 behaviour.  The following frame types are new in V3.
            // This function checks whether the specified internal frame is a V3 frame type and returns
            // true if it is.  CorStackWalkEx uses this function to decide whether it should expose
            // an internal frame.
            CorDebugInternalFrameType type = internalFrame.InternalFrameType;

            if ((type == CorDebugInternalFrameType.STUBFRAME_INTERNALCALL) ||
                (type == CorDebugInternalFrameType.STUBFRAME_CLASS_INIT) ||
                (type == CorDebugInternalFrameType.STUBFRAME_EXCEPTION) ||
                (type == CorDebugInternalFrameType.STUBFRAME_SECURITY) ||
                (type == CorDebugInternalFrameType.STUBFRAME_JIT_COMPILATION))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Esempio n. 2
0
		public CorDebugInternalFrame (CorDebugChain chain, CorDebugInternalFrameType type)
            : base (chain, null, CorDebugFrame.DEPTH_CLR_INVALID)
		{
			m_type = type;
		}
        int ICorDebugInternalFrame.GetFrameType(out CorDebugInternalFrameType pType)
        {
            pType = _type;

            return(COM_HResults.S_OK);
        }
 public CorDebugInternalFrame(CorDebugChain chain, CorDebugInternalFrameType type)
     : base(chain, null, CorDebugFrame.DEPTH_CLR_INVALID)
 {
     _type = type;
 }
        int ICorDebugInternalFrame.GetFrameType( out CorDebugInternalFrameType pType )
        {
            pType = m_type;

            return Utility.COM_HResults.S_OK;
        }