diff options
author | Stu Grossman <grossman@cygnus> | 1995-11-08 00:06:58 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1995-11-08 00:06:58 +0000 |
commit | afb6948757a36857971c7f57f1d69bf0d55ab940 (patch) | |
tree | 94b86c55e56aac718f5ed2471d88347c9b4b479c /gdb/remote-mips.c | |
parent | 456c7017877ff81a3bfc038b61ddef591c53459e (diff) | |
download | gdb-afb6948757a36857971c7f57f1d69bf0d55ab940.zip gdb-afb6948757a36857971c7f57f1d69bf0d55ab940.tar.gz gdb-afb6948757a36857971c7f57f1d69bf0d55ab940.tar.bz2 |
* remote-mips.c (mips_initialize): Fix brain damage found by
Jamie. Basically had case statement in the wrong place...
Diffstat (limited to 'gdb/remote-mips.c')
-rw-r--r-- | gdb/remote-mips.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c index 9fdf82a..9199a28 100644 --- a/gdb/remote-mips.c +++ b/gdb/remote-mips.c @@ -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 */ |