* remote-mips.c (mips-initialize): Work around flakiness in
authorMark Alexander <marka@cygnus>
Sun, 5 Oct 1997 01:53:22 +0000 (01:53 +0000)
committerMark Alexander <marka@cygnus>
Sun, 5 Oct 1997 01:53:22 +0000 (01:53 +0000)
some versions of PMON after loading a program.

gdb/remote-mips.c

index b569a2bd88e2aa2068297a432fc792c02cc54b39..3003add0837ebc3445c90a256097725fd34306c3 100644 (file)
@@ -1504,6 +1504,11 @@ mips_initialize ()
 
   if (mips_monitor != MON_IDT)
     {
+      /* Sometimes PMON ignores the first few characters in the first
+         command sent after a load.  Sending a blank command gets
+        around that.  */
+      mips_send_command ("\r", -1);
+
       /* Ensure the correct target state: */
       if (mips_monitor != MON_LSI)
        mips_send_command ("set regsize 64\r", -1);