Exemple #1
0
 public void    fAppOut(LaunchTool _oTool, string _sOut)
 {
     Output.fPrjOut("O", _sOut);
     bReceiveOutput = true;
 }
Exemple #2
0
        public void    fAppOut(LaunchTool _oTool, string _sOut)
        {
            //bRunning= false;
            if (_sOut == null || _sOut == "")
            {
                return;
            }

            //    Output.Trace("Test> "  +_sOut);


            oLaunchProject.bReceiveOutput = true;
            string _sColor = "";


            string _sLetter = "O";

            if (bCmdSend)
            {
                if (fTestEndOfCommand(_sOut))
                {
                    // fTestFrame(_sOut);
                    return;
                }
                else
                {
                    _sLetter = "C";
                    _sOut    = sCurrentCmd;
                }
            }


            //  if ( _sOut.StartsWith("Breakpoint") ) {
            if (_sOut.IndexOf("it Breakpoint ", 0) != -1)        //Hit breakpoint
            {
                if (_sOut.IndexOf("GDB_Func_ExecuteCmds") != -1) //Special function
                {
                    _sColor = Output.sGoodColorLite;
                    Output.Trace(_sLetter + "> " + _sColor + _sOut);
                    oProcess.fSend("Continue");
                    return;
                }
                _sColor = Output.sWarningColor;
                Output.Trace(_sLetter + "> " + _sColor + _sOut);
                fShowBacktrace();
                return;
            }

            //Thread 1 received signal SIGSEGV, Segmentation fault.
            //Program received signal SIGSEGV, Segmentation fault
            if (_sOut.IndexOf("received signal", 0) != -1)
            {
                _sColor = Output.sErrorColor;
                Output.Trace(_sLetter + "> " + _sColor + _sOut);
                fShowBacktrace();
                return;
            }


            Output.fPrjOut(_sLetter, _sColor + _sOut);
            if (nLimitNbOutput == -1)
            {
                Output.TraceError("Error: Output exceed Limit");
            }

            // Output.Trace(_sLetter + "> " +_sColor +_sOut);
        }