Share via


IDkmDisassemblyProvider.GetInstructionAddress Method

Definition

Returns the address of the kth instruction relative to a starting address. For constant length instruction sets, this is simple arithmetic. For variable length instruction sets, reverse-disassembly is required to obtain this address.

public:
 Microsoft::VisualStudio::Debugger::DkmInstructionAddress ^ GetInstructionAddress(Microsoft::VisualStudio::Debugger::DkmProcess ^ process, Microsoft::VisualStudio::Debugger::DkmInstructionAddress ^ startAddress, int instructionOffset);
public Microsoft.VisualStudio.Debugger.DkmInstructionAddress GetInstructionAddress (Microsoft.VisualStudio.Debugger.DkmProcess process, Microsoft.VisualStudio.Debugger.DkmInstructionAddress startAddress, int instructionOffset);
abstract member GetInstructionAddress : Microsoft.VisualStudio.Debugger.DkmProcess * Microsoft.VisualStudio.Debugger.DkmInstructionAddress * int -> Microsoft.VisualStudio.Debugger.DkmInstructionAddress
Public Function GetInstructionAddress (process As DkmProcess, startAddress As DkmInstructionAddress, instructionOffset As Integer) As DkmInstructionAddress

Parameters

process
DkmProcess

[In] DkmProcess represents a target process which is being debugged. The debugger debugs processes, so this is the basic unit of debugging. A DkmProcess can represent a system process or a virtual process such as minidumps.

startAddress
DkmInstructionAddress

[In] The address of the current instruction where the offset should begin.

instructionOffset
Int32

[In] The number of instructions relative to StartAddress to find the desired address. This value can be negative.

Returns

[Out] The address of the instruction InstructionOffset instructions from StartAddress.

Applies to