private void Vm_BreakpointChanged() { // We recreate the instruction with breakpoints dictionary _addressWithBreakpoints = new Dictionary <ushort, InstructionViewModel>(); List <ushort> execBreakpoints = _cpu.GetBreakpoints(BreakpointKinds.EXECUTION); foreach (ushort breakpointAddress in execBreakpoints) { if (!_addressToInstruction.ContainsKey(breakpointAddress)) { continue; } InstructionViewModel inst = _addressToInstruction[breakpointAddress]; _addressWithBreakpoints[breakpointAddress] = inst; } _breakpoints.RecreateBreakpoints(); }