aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackie Smith Cashion <jsmith@redhat.com>1995-11-07 15:05:04 +0000
committerJackie Smith Cashion <jsmith@redhat.com>1995-11-07 15:05:04 +0000
commit8b07d12c1f7a6f13d3e81ed5e4da2935589fefbc (patch)
treee90745ad9f86bd4a511eaefe4df1a3092ebd02e3
parentf59312e9d921e601fd371b7d3261ba768353bbf6 (diff)
downloadfsf-binutils-gdb-8b07d12c1f7a6f13d3e81ed5e4da2935589fefbc.zip
fsf-binutils-gdb-8b07d12c1f7a6f13d3e81ed5e4da2935589fefbc.tar.gz
fsf-binutils-gdb-8b07d12c1f7a6f13d3e81ed5e4da2935589fefbc.tar.bz2
* remote-mips.c (mips_initialize): Updated to talk to VR4300 RISQ
monitor board. The mips_initialize() code seemed to have a "funny" switch statement. I also removed an unnecessary switch into debug monitor mode just before the call to mips_initialize() in mips_load().
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/remote-mips.c25
2 files changed, 16 insertions, 14 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index ab49887..a137789 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+Tue Nov 7 14:59:51 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
+
+ * remote-mips.c (mips_initialize): Updated to talk to VR4300 RISQ
+ monitor board.
+
Mon Nov 6 11:44:11 1995 James G. Smith <jsmith@pasanda.cygnus.co.uk>
* config/mips/{tm-vr4300.h tm-vr4300el.h} (TARGET_MONITOR_PROMPT):
diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c
index 3265599..9fdf82a 100644
--- a/gdb/remote-mips.c
+++ b/gdb/remote-mips.c
@@ -1076,22 +1076,21 @@ mips_initialize ()
the board. */
}
break;
- case 4:
- mips_error ("Failed to initialize.");
}
-
- if (mips_expect (TARGET_MONITOR_PROMPT))
- break;
+ case 4:
+ mips_error ("Failed to initialize.");
}
- 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).");
+ if (mips_expect (TARGET_MONITOR_PROMPT))
+ 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).");
if (common_breakpoint ('b', -1, 0, NULL)) /* Clear all breakpoints */
monitor_supports_breakpoints = 0; /* Failed, don't use it anymore */
@@ -2083,8 +2082,6 @@ 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 */