int ICorDebugThread.CreateStepper(out ICorDebugStepper ppStepper)
        {
            Debug.Assert(!IsVirtualThread);
            ICorDebugFrame frame;

            ((ICorDebugThread)this).GetActiveFrame(out frame);
            ppStepper = new CorDebugStepper((CorDebugFrame)frame);

            return(Utility.COM_HResults.S_OK);
        }
 public ManagedCallbackStepComplete(CorDebugThread thread, CorDebugStepper stepper, CorDebugStepReason reason) : base(thread)
 {
     m_stepper = stepper;
     m_reason  = reason;
 }
			public ManagedCallbackStepComplete (CorDebugThread thread, CorDebugStepper stepper, CorDebugStepReason reason) : base (thread)
			{
				m_stepper = stepper;
				m_reason = reason;
			}
		public override void Dispose ()
		{
			foreach (var p in processes.ToArray())
				p.Dispose ();
			ObjectAdapter.Dispose ();
			ObjectAdapter = null;
			Breakpoints.Clear ();
			processes = null;
			process = null;
			VsPackage.MessageCentre.Session = null;
			documents = null;
			stepper = null;
			processesInfo = null;
			base.Dispose ();
		}
		int ICorDebugManagedCallback.StepComplete (CorDebugAppDomain pAppDomain, CorDebugThread pThread, CorDebugStepper pStepper, CorDebugStepReason reason)
		{
			TargetEventArgs args = new TargetEventArgs (TargetEventType.TargetStopped);
			args.Process = GetProcess (pAppDomain.Process);
			args.Thread = pAppDomain.Process.GetThread (pThread);
			args.Backtrace = new Backtrace (new CorDebugBacktrace (pThread, this));
			OnTargetEvent (args);
			SetActiveThread (pThread);
			return 0;
		}
		void SetActiveThread (CorDebugThread t)
		{
			activeThread = t;
			stepper = new CorDebugStepper (activeThread.ActiveFrame);
			stepper.SetJmcStatus (true);
		}
示例#7
0
        int ICorDebugFrame.CreateStepper(out ICorDebugStepper ppStepper)
        {
            ppStepper = new CorDebugStepper(this);

            return(Utility.COM_HResults.S_OK);
        }
        int ICorDebugFrame.CreateStepper (out ICorDebugStepper ppStepper)
        {
            ppStepper = new CorDebugStepper(this);

            return Utility.COM_HResults.S_OK;
        }
        int ICorDebugThread.CreateStepper(out ICorDebugStepper ppStepper)
        {
            Debug.Assert(!IsVirtualThread);
            ICorDebugFrame frame;

            ((ICorDebugThread)this).GetActiveFrame(out frame);
            ppStepper = new CorDebugStepper((CorDebugFrame)frame);

            return Utility.COM_HResults.S_OK;
        }