Пример #1
0
 private void DeleteBPButton_Click(object sender, EventArgs e)
 {
     if (BPCombo.Text != "")
     {
         knl_breakpoints.Remove(BPCombo.Text);
         UpdateDebugLines(knl_breakpoints.GetIntFromHex(BPCombo.Text), false);
         BPCombo.Items.Remove(BPCombo.Text);
     }
     if (knl_breakpoints.Count == 0)
     {
         BPCombo.Text = "";
     }
     else
     {
         BPCombo.Text = knl_breakpoints.Values[0];
     }
     BPLabel.Text = knl_breakpoints.Count.ToString() + " BP";
 }
Пример #2
0
        public bool DeleteBreakpoint(ProgramBreakpoint breakpoint)
        {
            if (Breakpoints.Contains(breakpoint))
            {
                Breakpoints.Remove(breakpoint);
                return(true);
            }

            return(false);
        }
Пример #3
0
        private void RemoveBreakPoint()
        {
            if (SelectedBreakpoint == null)
            {
                return;
            }

            Breakpoints.Remove(SelectedBreakpoint);
            SelectedBreakpoint = null;
            RaisePropertyChanged("SelectedBreakpoint");
        }
Пример #4
0
 /// <summary>
 /// Toggles a breakpoint, returning true if the breakpoint was set, and false if it was cleared.
 /// </summary>
 /// <param name="locator">A locator identifying the document or operator in which the breakpoint is set.</param>
 /// <param name="line">The line on which the breakpoint is set.</param>
 /// <param name="linePos">The line position, -1 for no line position.</param>
 /// <returns>True if the breakpoint was set, false if it was cleared.</returns>
 public bool ToggleBreakpoint(string locator, int line, int linePos)
 {
     lock (_syncHandle)
     {
         Breakpoint breakpoint = new Breakpoint(locator, line, linePos);
         int        index      = _breakpoints.IndexOf(breakpoint);
         if (index >= 0)
         {
             _breakpoints.Remove(breakpoint);
             return(false);
         }
         else
         {
             _breakpoints.Add(breakpoint);
             return(true);
         }
     }
 }
Пример #5
0
        public void ToggleBreakPoint(int address)
        {
            var breakpoint = Breakpoints[address];
            var memoryMap  = MemoryMapManager.GetMemoryMap(address);

            if (memoryMap != null && memoryMap.Type == RangeType.Data)
            {
                return;
            }

            if (breakpoint != null)
            {
                Breakpoints.Remove(breakpoint.Address);
            }
            else
            {
                Breakpoints.Add(address);
            }
        }
Пример #6
0
 public bool DeleteBreakpoint(MemoryBreakpoint breakpoint)
 {
     Breakpoints.Remove(breakpoint);
     return(true);
 }
Пример #7
0
 public bool Remove(Breakpoint breakpoint)
 {
     lock (this) return(Breakpoints.Remove(breakpoint));
 }