示例#1
0
        public Breakpoint AddBreakpoint( int address )
        {
            if( _breakpointLookup.ContainsKey( address ) == true )
            {
                Breakpoint existing = _breakpointLookup[ address ];
                existing.Enabled = true;
                return existing;
            }

            BasicBreakpoint breakpoint = new BasicBreakpoint( this, BreakpointType.UserSet, address );
            _breakpoints.Add( breakpoint );
            _breakpointLookup.Add( address, breakpoint );

            this.OnBreakpointAdded( breakpoint );

            return breakpoint;
        }
示例#2
0
        public Breakpoint AddSteppingBreakpoint( int address )
        {
            // TODO: redo things so that adding a stepping bp does not change real bp's enabled state

            if( _breakpointLookup.ContainsKey( address ) == true )
            {
                Breakpoint existing = _breakpointLookup[ address ];
                existing.Enabled = true;
                return null;
            }

            BasicBreakpoint breakpoint = new BasicBreakpoint( this, BreakpointType.Stepping, address );
            _breakpoints.Add( breakpoint );
            _breakpointLookup.Add( address, breakpoint );

            this.OnBreakpointAdded( breakpoint );

            return breakpoint;
        }
示例#3
0
 private void OnBreakpointAdded( BasicBreakpoint breakpoint )
 {
     this.BreakpointAdded( this, new BreakpointEventArgs( breakpoint ) );
 }