DkmClrNcModuleInstance.CreateInstructionAddressesFromILAddress Method

Definition

Creates one or more DkmClrNcInstructionAddress from a method token + IL offset. There can be multiple addresses if either that IL offset maps to multiple instruction blocks or if this is a generic method and there are multiple instantiations.

This method will append a new work item to the specified work list, and return once the work item has been appended. The actual processing of the work item is asynchronous. The caller will be notified that the request is complete through the completion routine.

This API was introduced in Visual Studio 15 Update 6 (DkmApiVersion.VS15Update6).

public:
 void CreateInstructionAddressesFromILAddress(Microsoft::VisualStudio::Debugger::DkmWorkList ^ WorkList, Microsoft::VisualStudio::Debugger::Clr::DkmClrMethodId MethodId, System::UInt32 ILOffset, Microsoft::VisualStudio::Debugger::DkmCompletionRoutine<Microsoft::VisualStudio::Debugger::Clr::NativeCompilation::DkmCreateInstructionAddressesFromILAddressAsyncResult> ^ CompletionRoutine);
public void CreateInstructionAddressesFromILAddress (Microsoft.VisualStudio.Debugger.DkmWorkList WorkList, Microsoft.VisualStudio.Debugger.Clr.DkmClrMethodId MethodId, uint ILOffset, Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.Clr.NativeCompilation.DkmCreateInstructionAddressesFromILAddressAsyncResult> CompletionRoutine);
member this.CreateInstructionAddressesFromILAddress : Microsoft.VisualStudio.Debugger.DkmWorkList * Microsoft.VisualStudio.Debugger.Clr.DkmClrMethodId * uint32 * Microsoft.VisualStudio.Debugger.DkmCompletionRoutine<Microsoft.VisualStudio.Debugger.Clr.NativeCompilation.DkmCreateInstructionAddressesFromILAddressAsyncResult> -> unit
Public Sub CreateInstructionAddressesFromILAddress (WorkList As DkmWorkList, MethodId As DkmClrMethodId, ILOffset As UInteger, CompletionRoutine As DkmCompletionRoutine(Of DkmCreateInstructionAddressesFromILAddressAsyncResult))

Parameters

WorkList
DkmWorkList

WorkList to append the new work item to.

MethodId
DkmClrMethodId

[In] The method id of the IL method.

ILOffset
UInt32

[In] The IL offset of the instruction to map.

CompletionRoutine
DkmCompletionRoutine<DkmCreateInstructionAddressesFromILAddressAsyncResult>

Routine to fire when the request is complete. If the request is successfully appended to the work list, this will always fire (including when the operation is canceled). This will never fire if appending the work item fails.

Applies to