Example #1
0
        // -------------------------------------------------------------------------------------------------
        // Context clear breakpoint
        //
        // \param   sender
        // Source of the event.
        // \param   e
        // Event information.
        // -------------------------------------------------------------------------------------------------
        private void ContextClearBreakpoint(object sender, EventArgs e)
        {
            CustomMenuItem customMenuItem = sender as CustomMenuItem;
            int            longaddr       = (int)customMenuItem.value;


            NextAddress na = new NextAddress(longaddr);

            Program.serialport.RemoveBreakpoint(null, na.GetAddr(), na.GetBank());
            MainForm.myBreakpoints.RequestUpdate();
        }
Example #2
0
        // -------------------------------------------------------------------------------------------------
        // Gets line datafrom address
        //
        // \param   na  The na.
        //
        // \return  The line datafrom address.
        // -------------------------------------------------------------------------------------------------
        public static LineData GetLineDatafromAddr(NextAddress na)
        {
            foreach (TraceFile t in traceFiles)
            {
                LineData ld = t.DoesFileHaveAddress(na.GetAddr(), na.GetBank());
                if (ld != null)
                {
                    return(ld);
                }
            }

            return(null);
        }