private void mnuEditBreakpoint_Click(object sender, EventArgs e) { if (lstBreakpoints.SelectedItems.Count > 0) { BreakpointManager.EditBreakpoint(((Breakpoint)lstBreakpoints.SelectedItems[0].Tag)); } }
private void mnuEditBreakpoint_Click(object sender, EventArgs e) { Breakpoint bp = GetCurrentLineBreakpoint(); if (bp != null) { BreakpointManager.EditBreakpoint(bp); } }
private void AddBreakpoint(int address) { PpuAddressTypeInfo addressInfo = InteropEmu.DebugGetPpuAbsoluteAddressAndType((uint)address); BreakpointManager.EditBreakpoint(new Breakpoint() { MemoryType = addressInfo.Type.ToMemoryType(), BreakOnExec = false, BreakOnRead = true, BreakOnWrite = true, Address = (UInt32)addressInfo.Address, StartAddress = (UInt32)addressInfo.Address, EndAddress = (UInt32)addressInfo.Address, AddressType = BreakpointAddressType.SingleAddress }); }
private void mnuEditBreakpoint_Click(object sender, EventArgs e) { UInt32 startAddress = (UInt32)SelectionStartAddress; UInt32 endAddress = (UInt32)SelectionEndAddress; BreakpointAddressType addressType = startAddress == endAddress ? BreakpointAddressType.SingleAddress : BreakpointAddressType.AddressRange; Breakpoint bp = BreakpointManager.GetMatchingBreakpoint(startAddress, endAddress, this._memoryType); if (bp == null) { bp = new Breakpoint() { Address = startAddress, MemoryType = this._memoryType, StartAddress = startAddress, EndAddress = endAddress, AddressType = addressType, BreakOnWrite = true, BreakOnRead = true }; if (bp.IsCpuBreakpoint) { bp.BreakOnExec = true; } } BreakpointManager.EditBreakpoint(bp); }
private void mnuToggleBreakpoint_Click(object sender, EventArgs e) { if (DebugWindowManager.GetDebugger() == null) { return; } PpuAddressTypeInfo addressInfo = InteropEmu.DebugGetPpuAbsoluteAddressAndType((uint)_currentPpuAddress); BreakpointManager.EditBreakpoint(new Breakpoint() { MemoryType = addressInfo.Type.ToMemoryType(), BreakOnExec = false, BreakOnRead = true, BreakOnWrite = true, Address = (UInt32)addressInfo.Address, StartAddress = (UInt32)addressInfo.Address, EndAddress = (UInt32)addressInfo.Address, AddressType = BreakpointAddressType.SingleAddress }); }
private void ButtonSave_Click(object sender, RoutedEventArgs e) { // edit the breakpoint BPClass with the new data and save to the xml file Breakpoint selectedBreakpoint = BPList.SelectedItem as Breakpoint; Cells selectedCell = comboSearchList.SelectedItem as Cells; if (selectedBreakpoint != null) { int selected = BPList.SelectedIndex; BPManager.EditBreakpoint(selectedCell, selectedBreakpoint, textBPDescription.Text, dateBPStarted.SelectedDate.ToString(), dateBPFinished.SelectedDate.ToString(), comboBPCell.SelectedIndex); BPList.SelectedIndex = selected; } // once save is finished, disable all the info fields textBPDescription.IsReadOnly = true; comboBPCell.IsEnabled = false; buttonSave.IsEnabled = false; dateBPStarted.IsEnabled = false; dateBPFinished.IsEnabled = false; }