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; }
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; }
private void OnBreakpointAdded( BasicBreakpoint breakpoint ) { this.BreakpointAdded( this, new BreakpointEventArgs( breakpoint ) ); }