本文整理汇总了C#中ICorDebugFunction类的典型用法代码示例。如果您正苦于以下问题:C# ICorDebugFunction类的具体用法?C# ICorDebugFunction怎么用?C# ICorDebugFunction使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ICorDebugFunction类属于命名空间,在下文中一共展示了ICorDebugFunction类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: EditAndContinueRemap
public virtual void EditAndContinueRemap(
ICorDebugAppDomain appDomain,
ICorDebugThread thread,
ICorDebugFunction function,
bool accurate)
{
this.DefaultHandler(appDomain);
}
示例2: CorFunction
public CorFunction(ICorDebugFunction funtion)
{
corFunction = funtion;
ICorDebugModule imodule = null;
corFunction.GetModule(out imodule);
module = new CorModule(imodule);
corFunction.GetToken(out token);
//corFunction.GetLocalVarSigToken(
//ICorDebugFunctionBreakpoint breakPoint = null;
//corFunction.
}
示例3: FunctionRemapOpportunity
/// <summary>
/// Finds appropriete SequncePointMap instances and builds SequencePointRemapper, gets new IL offset and call RemapFunction.
/// </summary>
public void FunctionRemapOpportunity(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, ICorDebugFunction pOldFunction, ICorDebugFunction pNewFunction, uint oldILOffset)
{
ICorDebugILFrame2 frame = (ICorDebugILFrame2) pThread.GetActiveFrame();
uint nToken = pOldFunction.GetToken();
SequencePointRemapper remapper;
if(!remappers.TryGetValue(nToken,out remapper)){
throw new KeyNotFoundException("Methods sequence points not found.");
}
frame.__RemapFunction(remapper.TranslateILOffset(oldILOffset));
}
示例4: FunctionRemapOpportunityDebugCallbackEventArgs
public FunctionRemapOpportunityDebugCallbackEventArgs(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, ICorDebugFunction pOldFunction, ICorDebugFunction pNewFunction, uint oldILOffset)
: base(pAppDomain) {
this.AppDomain = pAppDomain;
this.Thread = pThread;
this.OldFunction = pOldFunction;
this.NewFunction = pNewFunction;
this.OldILOffset = oldILOffset;
}
示例5: CallFunction
public static void CallFunction(this ICorDebugEval instance, ICorDebugFunction pFunction, uint nArgs, ICorDebugValue[] ppArgs)
{
instance.__CallFunction(pFunction, nArgs, ppArgs);
}
示例6: FunctionRemapOpportunity
public virtual void FunctionRemapOpportunity(
ICorDebugAppDomain appDomain,
ICorDebugThread thread,
ICorDebugFunction oldFunction,
ICorDebugFunction newFunction,
int oldIlOffset)
{
this.DefaultHandler(appDomain);
}
示例7: RuntimeFunction
internal RuntimeFunction(RuntimeModule module, ICorDebugFunction comFunction)
{
_module = module;
_comFunction = comFunction;
}
示例8: CorFunctionRemapOpportunityEventArgs
void ICorDebugManagedCallback2.FunctionRemapOpportunity(ICorDebugAppDomain appDomain,
ICorDebugThread thread,
ICorDebugFunction oldFunction,
ICorDebugFunction newFunction,
uint oldILoffset)
{
HandleEvent(ManagedCallbackType.OnFunctionRemapOpportunity,
new CorFunctionRemapOpportunityEventArgs(appDomain == null ? null : new CorAppDomain(appDomain),
thread == null ? null : new CorThread(thread),
oldFunction == null ? null : new CorFunction(oldFunction),
newFunction == null ? null : new CorFunction(newFunction),
(int)oldILoffset,
ManagedCallbackType.OnFunctionRemapOpportunity));
}
示例9: DebugFunction
public DebugFunction(ICorDebugFunction function)
{
_function = function;
}
示例10: FunctionRemapComplete
public void FunctionRemapComplete(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, ICorDebugFunction pFunction)
{
EnterCallback("FunctionRemapComplete", pThread);
ExitCallback();
}
示例11: EditAndContinueRemap
public void EditAndContinueRemap(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, ICorDebugFunction pFunction, int fAccurate)
{
try
{
_EnterCallback();
_CallbackNotImplemented();
_CallbackEvent("EditAndContinueRemap");
}
catch (Exception e)
{
_CallbackException(e);
}
}
示例12: FunctionRemapOpportunity
public void FunctionRemapOpportunity(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, ICorDebugFunction pOldFunction, ICorDebugFunction pNewFunction, uint oldILOffset)
{
try
{
_EnterCallback();
_CallbackNotImplemented();
_CallbackEvent("FunctionRemapOpportunity");
}
catch (Exception e)
{
_CallbackException(e);
}
}
示例13: EditAndContinueRemapDebugCallbackEventArgs
public EditAndContinueRemapDebugCallbackEventArgs(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, ICorDebugFunction pFunction, int fAccurate)
: base(pAppDomain) {
this.AppDomain = pAppDomain;
this.Thread = pThread;
this.Function = pFunction;
this.Accurate = fAccurate != 0;
}
示例14: FunctionRemapOpportunity
public void FunctionRemapOpportunity(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, ICorDebugFunction pOldFunction, ICorDebugFunction pNewFunction, uint oldILOffset)
{
ManagedCallback managedCallback = GetProcessCallbackInterface("FunctionRemapOpportunity", pAppDomain);
if (managedCallback != null) {
managedCallback.FunctionRemapOpportunity(pAppDomain, pThread, pOldFunction, pNewFunction, oldILOffset);
}
}
示例15: FunctionRemapComplete
public void FunctionRemapComplete(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread, ICorDebugFunction pFunction)
{
ManagedCallback managedCallback = GetProcessCallbackInterface("FunctionRemapComplete", pAppDomain);
if (managedCallback != null) {
managedCallback.FunctionRemapComplete(pAppDomain, pThread, pFunction);
}
}