Beispiel #1
0
        void recv_output(object sender, ConsoleOutputEventArgs e)
        {
/*
            if (_log_console)
            {
                if (console_log.Length > 10000)
                    console_log.Remove(0, console_log.Length);

                console_log.Append(e.ConsoleOut);
            }
            */

            if (e.ConsoleOut.Contains("(gdb)")) //End cmd
            {

                if (onRawReply != null)
                    onRawReply(this, new GDBrawReplyEventArgs(e.ConsoleOut));

                foreach (string singleAnswer in e.ConsoleOut.Split(new string[] { "(gdb)" }, StringSplitOptions.None))
                {
                    if(parse_output(singleAnswer))
                       send_nextFIFOcmd();
                }
            }
   
        }
Beispiel #2
0
        void recv_output(object sender, ConsoleOutputEventArgs e)
        {

            if (_log_console)
            {
                if (console_log.Length > 10000)
                    console_log.Remove(0, console_log.Length);

                console_log.Append(e.ConsoleOut);
            }

            if (e.ConsoleOut.Contains("\n")) //End of line
            {
                   recv_data.Append(e.ConsoleOut);
                   string[] output_lines = recv_data.ToString().Split(new char[] { '\n' }, StringSplitOptions.RemoveEmptyEntries);
                   
                   foreach (string line in output_lines)
                      parse_output_line(line);
          
                   recv_data.Remove(0, recv_data.Length);
            }
            else recv_data.Append(e.ConsoleOut);
        }