IDkmNativeEditAndContinueUpdate.ApplyCodeChange 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
验证和合并以前添加的挂起编辑编译单位的代码/符号。 注意:在调用 Commit () 之前,所有代码/符号合并都处于挂起状态,并且不会修改调试对象。
public:
void ApplyCodeChange(Microsoft::VisualStudio::Debugger::Native::DkmNativeRuntimeInstance ^ nativeRuntimeInstance, cli::array <Microsoft::VisualStudio::Debugger::Native::DkmNativeInstructionAddress ^> ^ modifiedStackIPAddresses, cli::array <System::UInt32> ^ lineHints, [Runtime::InteropServices::Out] System::Collections::ObjectModel::ReadOnlyCollection<System::String ^> ^ % warnings, [Runtime::InteropServices::Out] System::Collections::ObjectModel::ReadOnlyCollection<System::String ^> ^ % errors);
public void ApplyCodeChange (Microsoft.VisualStudio.Debugger.Native.DkmNativeRuntimeInstance nativeRuntimeInstance, Microsoft.VisualStudio.Debugger.Native.DkmNativeInstructionAddress[] modifiedStackIPAddresses, uint[] lineHints, out System.Collections.ObjectModel.ReadOnlyCollection<string> warnings, out System.Collections.ObjectModel.ReadOnlyCollection<string> errors);
abstract member ApplyCodeChange : Microsoft.VisualStudio.Debugger.Native.DkmNativeRuntimeInstance * Microsoft.VisualStudio.Debugger.Native.DkmNativeInstructionAddress[] * uint32[] * ReadOnlyCollection * ReadOnlyCollection -> unit
Public Sub ApplyCodeChange (nativeRuntimeInstance As DkmNativeRuntimeInstance, modifiedStackIPAddresses As DkmNativeInstructionAddress(), lineHints As UInteger(), ByRef warnings As ReadOnlyCollection(Of String), ByRef errors As ReadOnlyCollection(Of String))
参数
- nativeRuntimeInstance
- DkmNativeRuntimeInstance
中表示在目标进程中执行的本机代码。
- modifiedStackIPAddresses
- DkmNativeInstructionAddress[]
中已修改的堆栈帧的 Ip。 需要使用 IP 重映射的行提示。
- lineHints
- UInt32[]
中所编辑的堆栈 Ip 的从1开始的源行号提示。
- warnings
- ReadOnlyCollection<String>
[Out,Optional]警告消息(如果有)。
- errors
- ReadOnlyCollection<String>
[Out,Optional]错误消息(如果有)。