IDkmNativeStackCallback.GetCurrentFrameInfo 方法

定义

GetCurrentFrameInfo 用于获取当前线程上下文的帧基和返回地址。 这将考虑帧指针省略,并且如果当前指令指针位于 prolog、epilog 等 .。。注意:在某些情况下,如果框架中省略了帧指针,并且没有加载任何符号,则会出现错误。

public:
 void GetCurrentFrameInfo(Microsoft::VisualStudio::Debugger::DkmThread ^ thread, [Runtime::InteropServices::Out] System::UInt64 % returnAddress, [Runtime::InteropServices::Out] System::UInt64 % frameBase, [Runtime::InteropServices::Out] System::UInt64 % vFrame);
public void GetCurrentFrameInfo (Microsoft.VisualStudio.Debugger.DkmThread thread, out ulong returnAddress, out ulong frameBase, out ulong vFrame);
abstract member GetCurrentFrameInfo : Microsoft.VisualStudio.Debugger.DkmThread * uint64 * uint64 * uint64 -> unit
Public Sub GetCurrentFrameInfo (thread As DkmThread, ByRef returnAddress As ULong, ByRef frameBase As ULong, ByRef vFrame As ULong)

参数

thread
DkmThread

中DkmThread 表示在目标进程中运行的线程。

returnAddress
UInt64

弄帧的返回地址。

frameBase
UInt64

弄帧的帧基。

vFrame
UInt64

弄当前帧的 vframe。 仅适用于 x86。

适用于