本文整理汇总了C#中CorFrame类的典型用法代码示例。如果您正苦于以下问题:C# CorFrame类的具体用法?C# CorFrame怎么用?C# CorFrame使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CorFrame类属于命名空间,在下文中一共展示了CorFrame类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: GoTo
public static bool GoTo(IFileTabManager fileTabManager, IModuleLoader moduleLoader, CorFrame frame, bool newTab) {
if (GoToIL(fileTabManager, moduleLoader, frame, newTab))
return true;
//TODO: eg. native frame or internal frame
return false;
}
开发者ID:GreenDamTan,项目名称:dnSpy,代码行数:8,代码来源:FrameUtils.cs
示例2: GoTo
public static bool GoTo(IModuleIdProvider moduleIdProvider, IDocumentTabService documentTabService, IModuleLoader moduleLoader, CorFrame frame, bool newTab) {
if (GoToIL(moduleIdProvider, documentTabService, moduleLoader, frame, newTab))
return true;
//TODO: eg. native frame or internal frame
return false;
}
开发者ID:manojdjoshi,项目名称:dnSpy,代码行数:8,代码来源:FrameUtils.cs
示例3: GoTo
public static bool GoTo(CorFrame frame, bool newTab) {
if (GoToIL(frame, newTab))
return true;
//TODO: eg. native frame or internal frame
return false;
}
开发者ID:arkanoid1,项目名称:dnSpy,代码行数:8,代码来源:FrameUtils.cs
示例4: CanGoToDisasm
public static bool CanGoToDisasm(CorFrame frame) {
if (frame == null)
return false;
if (!frame.IsNativeFrame)
return false;
return false;//TODO:
}
开发者ID:manojdjoshi,项目名称:dnSpy,代码行数:8,代码来源:FrameUtils.cs
示例5: GoToIL
public static bool GoToIL(CorFrame frame, bool newTab) {
if (!CanGoToIL(frame))
return false;
var func = frame.Function;
if (func == null)
return false;
return DebugUtils.GoToIL(ModuleLoader.Instance.LoadModule(func.Module, true), frame.Token, frame.GetILOffset(), newTab);
}
开发者ID:arkanoid1,项目名称:dnSpy,代码行数:10,代码来源:FrameUtils.cs
示例6: GoToIL
public static bool GoToIL(IFileTabManager fileTabManager, IModuleLoader moduleLoader, CorFrame frame, bool newTab) {
if (!CanGoToIL(frame))
return false;
var func = frame.Function;
if (func == null)
return false;
return DebugUtils.GoToIL(fileTabManager, moduleLoader.LoadModule(func.Module, true), frame.Token, frame.GetILOffset(moduleLoader), newTab);
}
开发者ID:GreenDamTan,项目名称:dnSpy,代码行数:10,代码来源:FrameUtils.cs
示例7: ValueContext
public ValueContext(ILocalsOwner localsOwner, CorFrame frame, DnThread thread) {
this.LocalsOwner = localsOwner;
this.Thread = thread;
this.Process = thread.Process;
// Read everything immediately since the frame will be neutered when Continue() is called
this.FrameCouldBeNeutered = frame;
frame.GetTypeAndMethodGenericParameters(out genericTypeArguments, out genericMethodArguments);
this.Function = frame.Function;
}
开发者ID:nakijun,项目名称:dnSpy,代码行数:10,代码来源:ValueContext.cs
示例8: GoToIL
public static bool GoToIL(IModuleIdProvider moduleIdProvider, IDocumentTabService documentTabService, IModuleLoader moduleLoader, CorFrame frame, bool newTab) {
if (!CanGoToIL(frame))
return false;
var func = frame.Function;
if (func == null)
return false;
return DebugUtils.GoToIL(moduleIdProvider, documentTabService, moduleLoader.LoadModule(func.Module, canLoadDynFile: true, isAutoLoaded: true), frame.Token, frame.GetILOffset(moduleLoader), newTab);
}
开发者ID:manojdjoshi,项目名称:dnSpy,代码行数:10,代码来源:FrameUtils.cs
示例9: ValueContext
public ValueContext(ILocalsOwner localsOwner, CorFrame frame, DnThread thread, IList<CorType> genericTypeArguments) {
this.LocalsOwner = localsOwner;
this.Thread = thread;
this.Process = thread.Process;
// Read everything immediately since the frame will be neutered when Continue() is called
this.FrameCouldBeNeutered = frame;
this.genericTypeArguments = genericTypeArguments;
this.genericMethodArguments = new CorType[0];
this.Function = frame == null ? null : frame.Function;
}
开发者ID:arkanoid1,项目名称:dnSpy,代码行数:11,代码来源:ValueContext.cs
示例10: CanGoToIL
public static bool CanGoToIL(CorFrame frame) {
if (frame == null)
return false;
if (!frame.IsILFrame)
return false;
var ip = frame.ILFrameIP;
if (!ip.IsExact && !ip.IsApproximate && !ip.IsProlog && !ip.IsEpilog)
return false;
if (frame.Token == 0)
return false;
return true;
}
开发者ID:manojdjoshi,项目名称:dnSpy,代码行数:13,代码来源:FrameUtils.cs
示例11: GetRunToCallee
CorFrame GetRunToCallee(CorFrame frame)
{
if (!CanStep(frame))
return null;
if (frame == null)
return null;
if (!frame.IsILFrame)
return null;
var callee = frame.Callee;
if (callee == null)
return null;
if (!callee.IsILFrame)
return null;
return callee;
}
开发者ID:lovebanyi,项目名称:dnSpy,代码行数:16,代码来源:DnDebugger.cs
示例12: CreateStepper
CorStepper CreateStepper(CorFrame frame)
{
if (frame == null)
return null;
var stepper = frame.CreateStepper();
if (stepper == null)
return null;
if (!stepper.SetInterceptMask(debugOptions.StepperInterceptMask))
return null;
if (!stepper.SetUnmappedStopMask(debugOptions.StepperUnmappedStopMask))
return null;
if (!stepper.SetJMC(debugOptions.StepperJMC))
return null;
return stepper;
}
开发者ID:lovebanyi,项目名称:dnSpy,代码行数:17,代码来源:DnDebugger.cs
示例13: GetCodeLocation
CodeLocation? GetCodeLocation(CorFrame frame)
{
if (ProcessState != DebuggerProcessState.Stopped)
return null;
if (frame == null)
return null;
var sma = frame.GetSerializedDnModuleWithAssembly();
if (sma == null)
return null;
uint token = frame.Token;
if (token == 0)
return null;
return new CodeLocation(sma.Value, token, frame.GetILOffset(), frame.ILFrameIP.Mapping);
}
开发者ID:andyhebear,项目名称:dnSpy,代码行数:15,代码来源:DebugManager.cs
示例14: CreateMethodKey
static MethodKey? CreateMethodKey(DnDebugger debugger, CorFrame frame)
{
var sma = frame.GetSerializedDnModuleWithAssembly();
if (sma == null)
return null;
return MethodKey.Create(frame.Token, sma.Value.Module);
}
开发者ID:andyhebear,项目名称:dnSpy,代码行数:8,代码来源:DebugManager.cs
示例15: UpdateCurrentLocation
internal void UpdateCurrentLocation(CorFrame frame)
{
var newLoc = GetCodeLocation(frame);
if (currentLocation == null || newLoc == null) {
currentLocation = newLoc;
UpdateCurrentMethod();
return;
}
if (!CodeLocation.SameMethod(currentLocation.Value, newLoc.Value)) {
currentLocation = newLoc;
UpdateCurrentMethod();
return;
}
currentLocation = newLoc;
}
开发者ID:andyhebear,项目名称:dnSpy,代码行数:17,代码来源:DebugManager.cs
示例16: RunTo
public void RunTo(CorFrame frame)
{
if (!CanRunTo(frame))
return;
Debugger.RunTo(frame);
}
开发者ID:andyhebear,项目名称:dnSpy,代码行数:7,代码来源:DebugManager.cs
示例17: StepOut
/// <summary>
/// Step out of current method in the selected frame
/// </summary>
/// <param name="frame">Frame</param>
/// <param name="action">Delegate to call when completed or null</param>
/// <returns></returns>
public bool StepOut(CorFrame frame, Action<DnDebugger, StepCompleteDebugCallbackEventArgs> action = null)
{
DebugVerifyThread();
return StepOutInternal(frame, action);
}
开发者ID:lovebanyi,项目名称:dnSpy,代码行数:11,代码来源:DnDebugger.cs
示例18: RunTo
public bool RunTo(CorFrame frame)
{
DebugVerifyThread();
var callee = GetRunToCallee(frame);
if (callee == null)
return false;
return StepOutInternal(callee, null);
}
开发者ID:lovebanyi,项目名称:dnSpy,代码行数:9,代码来源:DnDebugger.cs
示例19: CanRunTo
public bool CanRunTo(CorFrame frame)
{
DebugVerifyThread();
return GetRunToCallee(frame) != null;
}
开发者ID:lovebanyi,项目名称:dnSpy,代码行数:5,代码来源:DnDebugger.cs
示例20: StepIntoOver
bool StepIntoOver(CorFrame frame, StepRange[] ranges, bool stepInto, Action<DnDebugger, StepCompleteDebugCallbackEventArgs> action = null)
{
if (ranges == null)
return StepIntoOver(frame, stepInto, action);
if (!CanStep(frame))
return false;
var stepper = CreateStepper(frame);
if (stepper == null)
return false;
if (!stepper.StepRange(stepInto, ranges))
return false;
stepInfos.Add(stepper, new StepInfo(action));
Continue();
return true;
}
开发者ID:lovebanyi,项目名称:dnSpy,代码行数:17,代码来源:DnDebugger.cs
注:本文中的CorFrame类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论