Esempio n. 1
0
 private void SendCommandToDebugger()
 {
     if (RawTrafficTextBox.Text.Length > 0 && mConnection.Debugger != null && !mConnection.Running)
     {
         String cmd = RawTrafficTextBox.Text;
         RawTrafficText.AppendText(kdbPrompt);
         if (cmd == "cont")
         {
             mConnection.Running = true;
         }
         mConnection.Debugger.Write(cmd);
     }
 }
Esempio n. 2
0
        void UpdateText()
        {
            StringBuilder toAdd = new StringBuilder();

            lock (textToAdd)
            {
                foreach (string s in textToAdd)
                {
                    if (s.EndsWith(kdbPrompt))
                    {
                        toAdd.Append(s.Remove(s.Length - kdbPrompt.Length));
                    }
                    else
                    {
                        toAdd.Append(s);
                    }
                }
                textToAdd.Clear();
            }
            RawTrafficText.AppendText(toAdd.ToString());
        }