Exemplo n.º 1
0
        public void ToggleBreakpoint(bool toggleEnabledFlag)
        {
            int             relativeAddress = Viewer.CodeViewer.CurrentLine;
            AddressTypeInfo info            = Viewer.GetAddressInfo(Viewer.CodeViewer.SelectedLine);

            BreakpointManager.ToggleBreakpoint(relativeAddress, info, toggleEnabledFlag);
        }
Exemplo n.º 2
0
        public void ToggleBreakpoint()
        {
            AddressTypeInfo info = GetAddressInfo(ctrlCodeViewer.SelectedLine);

            if (info.Address >= 0)
            {
                BreakpointManager.ToggleBreakpoint(-1, info, false);
            }
        }
Exemplo n.º 3
0
        public void ToggleBreakpoint(int lineIndex)
        {
            int address = this._provider.GetLineAddress(lineIndex);

            if (address >= 0)
            {
                BreakpointManager.ToggleBreakpoint(new AddressInfo()
                {
                    Address = address,
                    Type    = SnesMemoryType.SpcMemory
                });
            }
        }
Exemplo n.º 4
0
        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);
            }
        }
Exemplo n.º 5
0
        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);
                }
            }
        }