IDkmRuntimeDisassemblyProvider.GetInstructionAddress 方法

定义

返回相对于起始地址的 k 阶指令的地址。 对于常量长度指令集,这是一个简单的算法。 对于可变长度指令集,需要反向反汇编才能获取此地址。

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

参数

runtimeInstance
DkmRuntimeInstance

中DkmRuntimeInstance 类表示加载到 DkmProcess 中的执行环境,其中包含要调试的代码。

startAddress
DkmInstructionAddress

中要开始偏移量的当前指令的地址。

instructionOffset
Int32

中相对于 StartAddress 以查找所需地址的指令数。 此值可以为负数。

返回

DkmInstructionAddress

弄StartAddress 中指令 InstructionOffset 指令的地址。

适用于