int IDebugPendingBreakpoint2.Delete() {
            if (_boundBreakpoint != null) {
                Marshal.ThrowExceptionForHR(((IDebugBoundBreakpoint2)_boundBreakpoint).Delete());
                _boundBreakpoint = null;
            }

            _state = enum_PENDING_BP_STATE.PBPS_DELETED;
            return VSConstants.S_OK;
        }
Esempio n. 2
0
        int IDebugPendingBreakpoint2.Delete()
        {
            if (_boundBreakpoint != null)
            {
                Marshal.ThrowExceptionForHR(((IDebugBoundBreakpoint2)_boundBreakpoint).Delete());
                _boundBreakpoint = null;
            }

            _state = enum_PENDING_BP_STATE.PBPS_DELETED;
            return(VSConstants.S_OK);
        }
        int IDebugPendingBreakpoint2.Bind() {
            if (!CanBind()) {
                return VSConstants.S_FALSE;
            }

            string fileName;
            int lineNumber;
            TEXT_POSITION start, end;
            GetLocation(out fileName, out lineNumber, out start, out end);

            _boundBreakpoint = new AD7BoundBreakpoint(this, new DebugBreakpointLocation(fileName, lineNumber), _state);
            return VSConstants.S_OK;
        }
Esempio n. 4
0
        int IDebugPendingBreakpoint2.Bind()
        {
            if (!CanBind())
            {
                return(VSConstants.S_FALSE);
            }

            string        fileName;
            int           lineNumber;
            TEXT_POSITION start, end;

            GetLocation(out fileName, out lineNumber, out start, out end);

            _boundBreakpoint = new AD7BoundBreakpoint(this, new DebugBreakpointLocation(fileName, lineNumber), _state);
            return(VSConstants.S_OK);
        }
Esempio n. 5
0
 public AD7BreakpointResolution(AD7BoundBreakpoint boundBreakpoint)
 {
     BoundBreakpoint = boundBreakpoint;
 }
Esempio n. 6
0
 public AD7BreakpointUnboundEvent(AD7BoundBreakpoint boundBreakpoint)
 {
     m_boundBreakpoint = boundBreakpoint;
 }
Esempio n. 7
0
 public AD7BreakpointBoundEvent(AD7PendingBreakpoint pendingBreakpoint, AD7BoundBreakpoint boundBreakpoint)
 {
     m_pendingBreakpoint = pendingBreakpoint;
     m_boundBreakpoint   = boundBreakpoint;
 }
 public AD7BreakpointResolution(AD7BoundBreakpoint boundBreakpoint) {
     BoundBreakpoint = boundBreakpoint;
 }