private Breakpoint GetBreakpoint(IDebugBreakpoint e) { uint breakpointId; e.GetId(out breakpointId); Breakpoint result; _breakpoints.TryGetValue(breakpointId, out result); return result; }
/// <summary> /// Callback executed when breakpoint gets hit. /// </summary> /// <param name="Bp">Breakpoint that was hit.</param> /// <returns></returns> public int Breakpoint(IDebugBreakpoint Bp) { uint bpId = Bp.GetId(); BreakpointHitResult actionStatus = breakpoints[bpId].ExecuteAction(); if (actionStatus == BreakpointHitResult.Continue) { debugStatusGoEvent.Set(); return((int)Defines.DebugStatusGo); } else { return((int)Defines.DebugStatusBreak); } }