Share via


IDkmSteppingManagerCallback.TakeStepControl Method

Definition

TakeStepControl is called when a non-controlling runtime instance detects that the thread has hit a transition into its runtime. The stepping manager will forward the call to the current controlling runtime instance. The runtime instance requesting control should first call StepControlRequested on all steppers it wants control of. If they all set Granted to true, the runtime instance should then call this method on each stepper it is taking control of.

public:
 void TakeStepControl(Microsoft::VisualStudio::Debugger::Stepping::DkmStepper ^ stepper, bool leaveGuardsInPlace, Microsoft::VisualStudio::Debugger::Stepping::DkmStepArbitrationReason reason, Microsoft::VisualStudio::Debugger::DkmRuntimeInstance ^ callingRuntimeInstance);
public void TakeStepControl (Microsoft.VisualStudio.Debugger.Stepping.DkmStepper stepper, bool leaveGuardsInPlace, Microsoft.VisualStudio.Debugger.Stepping.DkmStepArbitrationReason reason, Microsoft.VisualStudio.Debugger.DkmRuntimeInstance callingRuntimeInstance);
abstract member TakeStepControl : Microsoft.VisualStudio.Debugger.Stepping.DkmStepper * bool * Microsoft.VisualStudio.Debugger.Stepping.DkmStepArbitrationReason * Microsoft.VisualStudio.Debugger.DkmRuntimeInstance -> unit
Public Sub TakeStepControl (stepper As DkmStepper, leaveGuardsInPlace As Boolean, reason As DkmStepArbitrationReason, callingRuntimeInstance As DkmRuntimeInstance)

Parameters

stepper
DkmStepper

[In] DkmStepper represents a request to step a thread. It facilitates shared object lifetime between the various runtime debug monitors that participate in stepping.

leaveGuardsInPlace
Boolean

[In] Set to true by the caller if it would like the current controlling runtime instance to leave guards in place to stop the step if necessary. For instance, this can be used to leave guard breakpoints after a call instruction so another runtime can step back out if the target of the call doesn't have source. However, any stepping state that affects the immediate step, such as trap flags, should be removed by the controlling runtime instance.

reason
DkmStepArbitrationReason

[In] DkmStepArbitrationReason the reason step arbitration is occurring.

callingRuntimeInstance
DkmRuntimeInstance

[In] The calling runtime instance that wishes to take control of the step.

Applies to