public void ToggleBreakpoint(bool toggleEnabledFlag) { int relativeAddress = Viewer.CodeViewer.CurrentLine; AddressTypeInfo info = Viewer.GetAddressInfo(Viewer.CodeViewer.SelectedLine); BreakpointManager.ToggleBreakpoint(relativeAddress, info, toggleEnabledFlag); }
public void ToggleBreakpoint() { AddressTypeInfo info = GetAddressInfo(ctrlCodeViewer.SelectedLine); if (info.Address >= 0) { BreakpointManager.ToggleBreakpoint(-1, info, false); } }
public void ToggleBreakpoint(int lineIndex) { int address = this._provider.GetLineAddress(lineIndex); if (address >= 0) { BreakpointManager.ToggleBreakpoint(new AddressInfo() { Address = address, Type = SnesMemoryType.SpcMemory }); } }
public void ToggleBreakpoint(bool toggleEnabledFlag) { AddressTypeInfo info = Viewer.GetAddressInfo(Viewer.CodeViewer.SelectedLine); if (info.Address < 0) { //Current line has no address, try using the next line instead. //(Used when trying to set a breakpoint on a row containing only a label) info = Viewer.GetAddressInfo(Viewer.CodeViewer.SelectedLine + 1); } if (info.Address >= 0) { BreakpointManager.ToggleBreakpoint(info, toggleEnabledFlag); } }
private void ToggleBreakpoint(int address) { if (address >= 0) { AddressInfo relAddress = new AddressInfo() { Address = address, Type = _manager.RelativeMemoryType }; AddressInfo absAddress = DebugApi.GetAbsoluteAddress(relAddress); if (absAddress.Address < 0) { BreakpointManager.ToggleBreakpoint(relAddress, _manager.CpuType); } else { BreakpointManager.ToggleBreakpoint(absAddress, _manager.CpuType); } } }