コード例 #1
0
        /**
         * If PureV3StackWalk is specified, then this method returns a CorStackWalk, which does not expose
         * ICorDebugInternalFrames.  If ExtendedV3StackWalk is specified, then this method returns a
         * CorStackWalkEx, which derives from CorStackWalk and interleaves ICorDebugInternalFrames.
         */
        public CorStackWalk CreateStackWalk(CorStackWalkType type)
        {
            ICorDebugThread3 th3 = m_th as ICorDebugThread3;

            if (th3 == null)
            {
                return(null);
            }

            ICorDebugStackWalk s = null;

            th3.CreateStackWalk(out s);
            if (type == CorStackWalkType.PureV3StackWalk)
            {
                return(new CorStackWalk(s, this));
            }
            else
            {
                return(new CorStackWalkEx(s, this));
            }
        }
コード例 #2
0
ファイル: Thread.cs プロジェクト: Orvid/Cosmos
        /** 
         * If PureV3StackWalk is specified, then this method returns a CorStackWalk, which does not expose
         * ICorDebugInternalFrames.  If ExtendedV3StackWalk is specified, then this method returns a 
         * CorStackWalkEx, which derives from CorStackWalk and interleaves ICorDebugInternalFrames.
         */
        public CorStackWalk CreateStackWalk (CorStackWalkType type)
        {
            ICorDebugThread3 th3 = m_th as ICorDebugThread3;
            if (th3 == null)
            {
                return null;
            }

            ICorDebugStackWalk s = null;
            th3.CreateStackWalk (out s);
            if (type == CorStackWalkType.PureV3StackWalk)
            {
                return new CorStackWalk(s, this);
            }
            else
            {
                return new CorStackWalkEx(s, this);
            }
        }