* remote-mips.c (mips_initialize): Fix brain damage found by
authorStu Grossman <grossman@cygnus>
Wed, 8 Nov 1995 00:06:58 +0000 (00:06 +0000)
committerStu Grossman <grossman@cygnus>
Wed, 8 Nov 1995 00:06:58 +0000 (00:06 +0000)
Jamie.  Basically had case statement in the wrong place...

gdb/ChangeLog
gdb/remote-mips.c

index 3a14af1220546987a2f902b6dc0fdb13bd3dbec2..8567b62909e1caf1d89521d17937807d2c54e9ab 100644 (file)
@@ -1,3 +1,8 @@
+Tue Nov  7 16:02:25 1995  Stu Grossman  (grossman@cygnus.com)
+
+       * remote-mips.c (mips_initialize):  Fix brain damage found by
+       Jamie.  Basically had case statement in the wrong place...
+
 Tue Nov  7 12:59:14 1995  Raymond Jou  <rjou@mexican.cygnus.com>
 
        * mac-gdb.r: Added #ifdef Macgdb.
index 9fdf82a50d3d33e42887453f7b22f1cbb0d7f485..9199a28d968732795863771bff7fbc6f4a0a7e87 100644 (file)
@@ -1075,22 +1075,23 @@ mips_initialize ()
                  break;        /* Break immediatly if we get something from
                                   the board. */
              }
-           break;
          }
+         break;
        case 4:
-          mips_error ("Failed to initialize.");
+         mips_error ("Failed to initialize.");
        }
 
       if (mips_expect (TARGET_MONITOR_PROMPT))
-       break;
+       break;
     }
+
   SERIAL_WRITE (mips_desc, "db tty0\015", sizeof "db tty0\015" - 1);
   mips_expect ("db tty0\015\012"); /* Eat the echo */
 
   SERIAL_WRITE (mips_desc, "\015", sizeof "\015" - 1);
-  
+
   if (mips_receive_packet (buff, 1, 3) < 0)
-   mips_error ("Failed to initialize (didn't receive packet).");
+    mips_error ("Failed to initialize (didn't receive packet).");
 
   if (common_breakpoint ('b', -1, 0, NULL)) /* Clear all breakpoints */
     monitor_supports_breakpoints = 0; /* Failed, don't use it anymore */
@@ -2082,6 +2083,8 @@ mips_load (file, from_tty)
 
   mips_load_srec (file);
 
+  SERIAL_WRITE (mips_desc, "\015db tty0\015", sizeof "\015db tty0\015" - 1);
+
   mips_initialize ();
 
 /* Finally, make the PC point at the start address */