DkmDisassembledInstruction.Create 方法

定义

创建新的 DkmDisassembledInstruction 对象实例。

位置约束:必须从 IDE 组件 (组件级别 100000) 中调用 API > 。

public:
 static Microsoft::VisualStudio::Debugger::Disassembly::DkmDisassembledInstruction ^ Create(Microsoft::VisualStudio::Debugger::DkmProcess ^ Process, System::UInt64 InstructionPointer, System::UInt32 InstructionLength, System::String ^ Address, System::String ^ AddressOffset, System::String ^ CodeBytes, System::String ^ RawOpcode, System::String ^ RawOperands, System::String ^ FormattedOpcode, System::String ^ FormattedOperands, System::String ^ Symbol, Microsoft::VisualStudio::Debugger::Symbols::DkmSourcePosition ^ DocumentPosition, System::UInt32 ByteOffset, System::Collections::ObjectModel::ReadOnlyCollection<int> ^ RegisterOperands, bool ValidInstruction);
public static Microsoft.VisualStudio.Debugger.Disassembly.DkmDisassembledInstruction Create (Microsoft.VisualStudio.Debugger.DkmProcess Process, ulong InstructionPointer, uint InstructionLength, string Address, string AddressOffset, string CodeBytes, string RawOpcode, string RawOperands, string FormattedOpcode, string FormattedOperands, string Symbol, Microsoft.VisualStudio.Debugger.Symbols.DkmSourcePosition DocumentPosition, uint ByteOffset, System.Collections.ObjectModel.ReadOnlyCollection<int> RegisterOperands, bool ValidInstruction);
static member Create : Microsoft.VisualStudio.Debugger.DkmProcess * uint64 * uint32 * string * string * string * string * string * string * string * string * Microsoft.VisualStudio.Debugger.Symbols.DkmSourcePosition * uint32 * System.Collections.ObjectModel.ReadOnlyCollection<int> * bool -> Microsoft.VisualStudio.Debugger.Disassembly.DkmDisassembledInstruction
Public Shared Function Create (Process As DkmProcess, InstructionPointer As ULong, InstructionLength As UInteger, Address As String, AddressOffset As String, CodeBytes As String, RawOpcode As String, RawOperands As String, FormattedOpcode As String, FormattedOperands As String, Symbol As String, DocumentPosition As DkmSourcePosition, ByteOffset As UInteger, RegisterOperands As ReadOnlyCollection(Of Integer), ValidInstruction As Boolean) As DkmDisassembledInstruction

参数

Process
DkmProcess

中DkmProcess 表示正在调试的目标进程。 调试器调试进程,因此这是调试的基本单元。 DkmProcess 可以表示系统进程或虚拟进程,如小型转储。

InstructionPointer
UInt64

中此指令在调试对象地址空间中的地址。

InstructionLength
UInt32

中指令的长度(以字节为单位)。

Address
String

中此指令在调试对象地址空间中的格式化地址。

AddressOffset
String

中作为来自某些起点的偏移量(通常是关联函数的开始位置)的地址。

CodeBytes
String

中此指令的代码字节。

RawOpcode
String

中不带符号查找的此指令的原始操作码。

RawOperands
String

中不带符号查找的此指令的原始操作数。

FormattedOpcode
String

中此指令的操作码,包括解析的符号名称。 如果未解析任何内容,则这与 RawOpcode 相同。

FormattedOperands
String

中此指令的操作数,其中包括解析的符号名称。 如果未解析任何内容,则这与 RawOperands 相同。

Symbol
String

[In,可选]与该地址关联的符号名称(如果有) (公共符号、标签等) 上。

DocumentPosition
DkmSourcePosition

[In,可选]对此指令在源文档中所属的文档和文本位置的可选引用。

ByteOffset
UInt32

中对应的源语句开头的字节数。

RegisterOperands
ReadOnlyCollection<Int32>

中表示反汇编指令中的任何寄存器参数的 CV 常量的只读集合。

ValidInstruction
Boolean

中如果此指令已成功反汇编,则为 True。 如果遇到无效的操作代码时,它是启发式 unwinders 使用的填充指令,则为 False。 如果将此值设置为 true,则大多数反汇编提供程序将使用问号填充 op 代码,以指示一个虚假的指令。

返回

DkmDisassembledInstruction

弄此方法调用的结果。

适用于