Esempio n. 1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            int breakpoint = ActiveWatch.breakpointNumber;

            m_breakpointToWatchMap.Remove(breakpoint);
            m_watches.Remove(ActiveWatch);
            BreakPointDispatcher bpd = BreakPointDispatcher.getBreakPointDispatcher();

            bpd.removeBreakpoint(breakpoint);
            DataContext = null;
            DataContext = this;
        }
Esempio n. 2
0
        private void GotMsgFromVice(string text)
        {
            Match match = RegexMan.BreakPointHit.Match(text);

            if (match.Success)
            {
                //we have a break point hit, but does anybody want it?
                if (BreakPointDispatcher.getBreakPointDispatcher().checkBreakPointAndDisptach(match) == false)
                {
                    HandleCodeView();
                }
            }
            else
            {
                HandleCodeView(); //for now
            }
        }
Esempio n. 3
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            BreakPointDispatcher bpd = BreakPointDispatcher.getBreakPointDispatcher();

            if (m_breakpointNumber >= 0)
            {
                Button butt = sender as Button;
                butt.Content = "Trace Reads";
                bpd.removeBreakpoint(m_breakpointNumber);
                m_breakpointNumber = -1;
            }
            else
            {
                Button butt = sender as Button;
                butt.Content = "Stop Trace";
                int end = m_screenAddress + 1000;
                bpd.addWatchPointAndNotifyMe(m_screenAddress, end, new BreakPointDispatcher.BreakPointEventDelegate(hitBreakpoint), this.Dispatcher, true, false, this);
            }
        }
Esempio n. 4
0
        private void addButton_Click(object sender, RoutedEventArgs e)
        {
            BreakPointDispatcher bpd = BreakPointDispatcher.getBreakPointDispatcher();

            bpd.addWatchPointAndNotifyMe(ActiveWatch.m_address, ActiveWatch.m_address, new BreakPointDispatcher.BreakPointEventDelegate(hitBreakpoint), this.Dispatcher, false, true, this);
        }