internal DnCodeBreakpoint(DnModuleId module, uint token, uint offset) { this.Module = module; this.Token = token; this.Offset = offset; this.code = null; }
internal DnCodeBreakpoint(DnModuleId module, uint token, uint offset) { Module = module; Token = token; Offset = offset; code = null; }
public bool Remove(DnModuleId module, TBP bp) { if (!dict.TryGetValue(module, out var list)) { return(false); } return(list.Remove(bp)); }
public void Add(DnModuleId module, TBP bp) { if (!dict.TryGetValue(module, out var list)) { dict.Add(module, list = new List <TBP>()); } list.Add(bp); }
public TBP[] GetBreakpoints(DnModuleId module) { if (!dict.TryGetValue(module, out var list)) { return(Array.Empty <TBP>()); } return(list.ToArray()); }
internal DnCodeBreakpoint(DnModuleId module, uint token, uint offset) { Module = module; Token = token; Offset = offset; code = null; error = DnCodeBreakpointError.OtherError; }
internal DnCodeBreakpoint(DnModuleId module, CorCode code, uint offset) { Module = module; var func = code.Function; Token = func?.Token ?? 0; Offset = offset; this.code = code; error = DnCodeBreakpointError.OtherError; }
void SetILBreakpoint(DnModuleId moduleId, uint token) { Debug.Assert(token != 0 && breakpoint == null); DnBreakpoint bp = null; bp = debugger.CreateBreakpoint(moduleId, token, 0, ctx2 => { debugger.RemoveBreakpoint(bp); return(true); }); }
void SetILBreakpoint(DnModuleId moduleId, uint token) { Debug.Assert(token != 0 && breakpoint == null); DnBreakpoint bp = null; bp = debugger.CreateBreakpoint(moduleId, token, 0, ctx2 => { debugger.RemoveBreakpoint(bp); ctx2.E.AddPauseState(new EntryPointBreakpointPauseState(ctx2.E.CorAppDomain, ctx2.E.CorThread)); return(false); }); }
internal DnILCodeBreakpoint(DnModuleId module, uint token, uint offset, Func <ILCodeBreakpointConditionContext, bool>?cond) : base(module, token, offset) => Condition = cond ?? defaultCond;
internal DnNativeCodeBreakpoint(DnModuleId module, uint token, uint offset, Func <NativeCodeBreakpointConditionContext, bool> cond) : base(module, token, offset) { Condition = cond ?? defaultCond; }