Esempio n. 1
0
        public static void DbgSetBreakPoint(string file, uint line, bool clear, string passct, string expr)
        {
            DebuggerFileView    DebuggerFileView    = "DebuggerFileView";
            DebuggerBreakPoints DebuggerBreakPoints = "DebuggerBreakPoints";
            TCPDebugger         TCPDebugger         = "TCPDebugger";

            if (!clear)
            {
                if (file == omni.sGlobal["$DebuggerFile"])
                {
                    DebuggerFileView.setBreak(line);
                }
            }
            DebuggerBreakPoints.addBreak(file, line.AsString(), clear, passct, expr);
            TCPDebugger.send("BRKSET " + file + " " + line + " " + clear + " " + passct + " " + expr + "\r\n");
        }
Esempio n. 2
0
            public void handleBreakList(string line)
            {
                DebuggerFileView    DebuggerFileView    = "DebuggerFileView";
                DebuggerBreakPoints DebuggerBreakPoints = "DebuggerBreakPoints";

                string file = Util.getWord(line, 0);

                if (file != sGlobal["$DebuggerFile"])
                {
                    return;
                }
                int  pairs   = Util.getWord(line, 1).AsInt();
                uint curLine = 1;

                DebuggerFileView.clearBreakPositions();

                // Set the possible break positions.
                for (int i = 0; i < pairs; i++)
                {
                    uint skip   = Util.getWord(line, i * 2 + 2).AsUInt();
                    int  breaks = Util.getWord(line, i * 2 + 3).AsInt();
                    curLine += skip;
                    for (int j = 0; j < breaks; j++)
                    {
                        DebuggerFileView.setBreakPosition(curLine);
                        curLine++;
                    }
                }

                // Now set the actual break points.
                for (int i = 0; i < DebuggerBreakPoints.rowCount(); i++)
                {
                    string breakText = DebuggerBreakPoints.getRowText(i);
                    string breakLine = Util.getField(breakText, 0);
                    string breakFile = Util.getField(breakText, 1);
                    if (breakFile == sGlobal["$DebuggerFile"])
                    {
                        DebuggerFileView.setBreak(breakLine.AsUint());
                    }
                }
            }