aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-mips.c
diff options
context:
space:
mode:
authorMark Alexander <marka@cygnus>1997-10-05 01:53:22 +0000
committerMark Alexander <marka@cygnus>1997-10-05 01:53:22 +0000
commit794868783dbcf1617254303e90616561339fa0ee (patch)
tree8c0a19c2eb200dd922d3ebba5b224e5cec41fb8b /gdb/remote-mips.c
parentb15d0449a8061453ac6e07bebdea8f9319e829af (diff)
downloadgdb-794868783dbcf1617254303e90616561339fa0ee.zip
gdb-794868783dbcf1617254303e90616561339fa0ee.tar.gz
gdb-794868783dbcf1617254303e90616561339fa0ee.tar.bz2
* remote-mips.c (mips-initialize): Work around flakiness in
some versions of PMON after loading a program.
Diffstat (limited to 'gdb/remote-mips.c')
-rw-r--r--gdb/remote-mips.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c
index b569a2b..3003add 100644
--- a/gdb/remote-mips.c
+++ b/gdb/remote-mips.c
@@ -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);