public CortexM(IDapAccessLink link, DebugAccessPort dp, MEM_AP ap, Memory.MemoryMap memoryMap = null, byte core_num = 0) : base(link, memoryMap) { this.arch = 0; this.core_type = 0; this.has_fpu = false; this.dp = dp; this.ap = ap; this.core_number = core_num; this._run_token = 0; this._target_context = null; // Set up breakpoints manager. this.fpb = new FPB(this.ap); this.dwt = new DWT(this.ap); this.sw_bp = new SoftwareBreakpointProvider(this); this.bp_manager = new BreakpointManager(this); this.bp_manager.add_provider(this.fpb, EBreakpointType.BREAKPOINT_HW); this.bp_manager.add_provider(this.sw_bp, EBreakpointType.BREAKPOINT_SW); }