// A helper method used to construct a new pending breakpoint. public void CreatePendingBreakpoint(IDebugBreakpointRequest2 pBpRequest, out IDebugPendingBreakpoint2 ppPendingBp) { var pendingBreakpoint = new AD7PendingBreakpoint(pBpRequest, _mEngine, this); ppPendingBp = pendingBreakpoint; _mPendingBreakpoints.Add(pendingBreakpoint); }
// A helper method used to construct a new pending breakpoint. public void CreatePendingBreakpoint(IDebugBreakpointRequest2 pBPRequest, out IDebugPendingBreakpoint2 ppPendingBP) { var pendingBreakpoint = new AD7PendingBreakpoint(pBPRequest, mEngine, this); ppPendingBP = (IDebugPendingBreakpoint2)pendingBreakpoint; mPendingBPs.Add(pendingBreakpoint); }
internal static void GetILOffset(AD7PendingBreakpoint bp, MethodMirror methodMirror, out int ilOffset) { List<Mono.Debugger.Soft.Location> locations = methodMirror.Locations.ToList(); foreach (Mono.Debugger.Soft.Location location in locations) { int line = location.LineNumber; int column = location.ColumnNumber; if (line != bp.StartLine + 1) continue; //if (column != bp.StartColumn) // continue; ilOffset = location.ILOffset; Console.WriteLine(location.ColumnNumber); return; } throw new Exception("Cant bind breakpoint"); }
internal static void GetILOffset(AD7PendingBreakpoint bp, MethodMirror methodMirror, out int ilOffset) { List <Mono.Debugger.Soft.Location> locations = methodMirror.Locations.ToList(); foreach (Mono.Debugger.Soft.Location location in locations) { int line = location.LineNumber; int column = location.ColumnNumber; if (line != bp.StartLine + 1) { continue; } //if (column != bp.StartColumn) // continue; ilOffset = location.ILOffset; Console.WriteLine(location.ColumnNumber); return; } throw new Exception("Cant bind breakpoint"); }
public AD7BoundBreakpoint(AD7Engine engine, AD7PendingBreakpoint pendingBreakpoint) { _engine = engine; _pendingBreakpoint = pendingBreakpoint; }
public MonoDocument(AD7PendingBreakpoint pendingBreakpoint) { _pendingBreakpoint = pendingBreakpoint; }
internal void DeletePendingBreakpoint(AD7PendingBreakpoint breakPoint) { lock (_pendingBreakpoints) _pendingBreakpoints.Remove(breakPoint); }
internal AD7PendingBreakpoint AddPendingBreakpoint(IDebugBreakpointRequest2 pBPRequest) { var bp = new AD7PendingBreakpoint(_engine, pBPRequest); lock (_pendingBreakpoints) _pendingBreakpoints.Add(bp); TryBindBreakpoints(); return bp; }
public AD7BreakpointEvent(AD7PendingBreakpoint boundBreakpoints) { _boundBreakpoints = boundBreakpoints; }
//public AD7BreakpointBoundEvent(AD7PendingBreakpoint pendingBreakpoint, AD7BoundBreakpoint boundBreakpoint) public AD7BreakpointBoundEvent(AD7PendingBreakpoint pendingBreakpoint, AD7BoundBreakpoint boundBreakpoint = null) { _pendingBreakpoint = pendingBreakpoint; _boundBreakpoint = boundBreakpoint; }
public AD7BreakpointEvent(AD7PendingBreakpoint boundBreakpoints) { _boundBreakpoints = boundBreakpoints; }
//public AD7BreakpointBoundEvent(AD7PendingBreakpoint pendingBreakpoint, AD7BoundBreakpoint boundBreakpoint) public AD7BreakpointBoundEvent(AD7PendingBreakpoint pendingBreakpoint, AD7BoundBreakpoint boundBreakpoint = null) { _pendingBreakpoint = pendingBreakpoint; _boundBreakpoint = boundBreakpoint; }
public AD7BreakpointBoundEvent(AD7PendingBreakpoint pendingBreakpoint, AD7BoundBreakpoint boundBreakpoint) { m_pendingBreakpoint = pendingBreakpoint; m_boundBreakpoint = boundBreakpoint; }
internal void BreakpointHit(AD7PendingBreakpoint breakpoint, AD7Thread thread) { var iid = new Guid(AD7BreakpointEvent.IID); _eventCallback.Event(_engine, _engine.RemoteProcess, _engine, thread, new AD7BreakpointEvent(breakpoint), ref iid, AD7StoppingEvent.Attributes); }
internal void BoundBreakpoint(AD7PendingBreakpoint breakpoint) { var iid = new Guid(AD7BreakpointBoundEvent.IID); _eventCallback.Event(_engine, _engine.RemoteProcess, _engine, null, new AD7BreakpointBoundEvent(breakpoint), ref iid, AD7AsynchronousEvent.Attributes); }