Beispiel #1
0
        // ExecuteOnThread is called when the SDM wants execution to continue and have
        // stepping state cleared.
        public int ExecuteOnThread(IDebugThread2 pThread)
        {
            Debug.Assert(Worker.MainThreadId == Worker.CurrentThreadId);

            AD7Thread thread = (AD7Thread)pThread;

            m_pollThread.RunOperation(new Operation(delegate
            {
                m_debuggedProcess.Execute(thread.GetDebuggedThread());
            }));

            return(Constants.S_OK);
        }
Beispiel #2
0
        // This method is deprecated. Use the IDebugProcess3::Step method instead.
        public int Step(IDebugThread2 pThread, enum_STEPKIND sk, enum_STEPUNIT Step)
        {
            Debug.Assert(Worker.MainThreadId == Worker.CurrentThreadId);

            AD7Thread thread = (AD7Thread)pThread;

            // RunOperationAsync
            m_pollThread.RunOperation(new Operation(delegate
            {
                m_debuggedProcess.Step(thread.GetDebuggedThread(), (int)sk, (int)Step);
            }));

            return(Constants.S_OK);
        }