internal DnILCodeBreakpoint(SerializedDnModule module, uint token, uint ilOffset, IBreakpointCondition bpCond) : base(bpCond) { this.module = module; this.token = token; this.ilOffset = ilOffset; }
internal DnCodeBreakpoint(SerializedDnModule module, uint token, uint offset) { this.module = module; this.token = token; this.offset = offset; this.code = null; }
internal DnModule(DnAssembly ownerAssembly, ICorDebugModule module, int incrementedId, int moduleOrder) { this.ownerAssembly = ownerAssembly; this.module = new CorModule(module); this.incrementedId = incrementedId; this.moduleOrder = moduleOrder; this.serializedDnModule = this.module.SerializedDnModule; }
internal DnCodeBreakpoint(CorCode code, uint offset) { this.module = GetModule(code); var func = code.Function; this.token = func == null ? 0 : func.Token; this.offset = offset; this.code = code; }
internal DnModule(DnAssembly ownerAssembly, ICorDebugModule module, int uniqueId, int uniqueIdProcess, int uniqueIdAppDomain) { this.ownerAssembly = ownerAssembly; this.module = new CorModule(module); this.uniqueId = uniqueId; this.uniqueIdProcess = uniqueIdProcess; this.uniqueIdAppDomain = uniqueIdAppDomain; this.serializedDnModule = this.module.SerializedDnModule; }
public bool Remove(SerializedDnModule module, TBP bp) { List <TBP> list; if (!dict.TryGetValue(module, out list)) { return(false); } return(list.Remove(bp)); }
public void Add(SerializedDnModule module, TBP bp) { List <TBP> list; if (!dict.TryGetValue(module, out list)) { dict.Add(module, list = new List <TBP>()); } list.Add(bp); }
public TBP[] GetBreakpoints(SerializedDnModule module) { List <TBP> list; if (!dict.TryGetValue(module, out list)) { return(new TBP[0]); } return(list.ToArray()); }
void SetILBreakpoint(SerializedDnModule serMod, uint token) { Debug.Assert(token != 0 && breakpoint == null); DnBreakpoint bp = null; bp = debugger.CreateBreakpoint(serMod, token, 0, ctx2 => { debugger.RemoveBreakpoint(bp); return(true); }); }
public static ModuleName ToModuleName(this DBG.SerializedDnModule serMod) { return(new ModuleName(serMod.AssemblyFullName, serMod.ModuleName, serMod.IsDynamic, serMod.IsInMemory, serMod.ModuleNameOnly)); }
internal DnNativeCodeBreakpoint(SerializedDnModule module, uint token, uint offset, Func <NativeCodeBreakpointConditionContext, bool> cond) : base(module, token, offset) { this.cond = cond ?? defaultCond; }
/// <summary> /// Constructor /// </summary> /// <param name="assembly">Assembly</param> /// <param name="module">Module</param> public SerializedDnModuleWithAssembly(string assembly, SerializedDnModule module) { this.asmName = assembly; this.module = module; }