diff options
author | Stan Shebs <shebs@codesourcery.com> | 1994-06-30 01:59:36 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 1994-06-30 01:59:36 +0000 |
commit | 7d13174e087252a9a872b92469464e80260090df (patch) | |
tree | 86340b8b209b572e30b711c8432787bf2448c387 /gdb | |
parent | c2f2c6fa6c2515b6967735b6de8090b705c33e6a (diff) | |
download | gdb-7d13174e087252a9a872b92469464e80260090df.zip gdb-7d13174e087252a9a872b92469464e80260090df.tar.gz gdb-7d13174e087252a9a872b92469464e80260090df.tar.bz2 |
* remote-mips.c: Replace all \r chars with \015.
(mips_receive_header): Display control characters readably.
(mips_xfer_memory): Add a simple progress display.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/remote-mips.c | 25 |
2 files changed, 26 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 26c1df9..aad1876 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +Wed Jun 29 18:53:36 1994 Stan Shebs (shebs@andros.cygnus.com) + + * remote-mips.c: Replace all \r chars with \015. + (mips_receive_header): Display control characters readably. + (mips_xfer_memory): Add a simple progress display. + Wed Jun 29 13:11:45 1994 Steve Chamberlain (sac@cirdan.cygnus.com) * remote-e7000.c (e7000_open): Don't try a tcp open if we're diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c index 8e926c2..1ae7f92 100644 --- a/gdb/remote-mips.c +++ b/gdb/remote-mips.c @@ -366,7 +366,7 @@ mips_readchar (timeout) /* Don't use _filtered; we can't deal with a QUIT out of target_wait, and I think this might be called from there. */ printf_unfiltered ("Reinitializing MIPS debugging mode\n"); - SERIAL_WRITE (mips_desc, "\rdb tty0\r", sizeof "\rdb tty0\r" - 1); + SERIAL_WRITE (mips_desc, "\015db tty0\015", sizeof "\015db tty0\015" - 1); sleep (1); mips_need_reply = 0; @@ -418,7 +418,13 @@ mips_receive_header (hdr, pgarbage, ch, timeout) we can't deal with a QUIT out of target_wait. */ if (! mips_initializing || sr_get_debug () > 0) { - putchar_unfiltered (ch); + if (ch < 0x20 && ch != '\n') + { + putchar_unfiltered ('^'); + putchar_unfiltered (ch + 0x40); + } + else + putchar_unfiltered (ch); gdb_flush (gdb_stdout); } @@ -947,7 +953,8 @@ mips_initialize () /* The board seems to want to send us a packet. I don't know what it means. The packet seems to be triggered by a carriage return character, although perhaps any character would do. */ - cr = '\r'; + cr = '\015'; + /* FIXME check the result from this */ SERIAL_WRITE (mips_desc, &cr, 1); if (mips_receive_packet (buff, 0, 3) < 0) @@ -960,9 +967,9 @@ mips_initialize () cc = '\003'; SERIAL_WRITE (mips_desc, &cc, 1); sleep (2); - SERIAL_WRITE (mips_desc, "\rdb tty0\r", sizeof "\rdb tty0\r" - 1); + SERIAL_WRITE (mips_desc, "\015db tty0\015", sizeof "\015db tty0\015" - 1); sleep (1); - cr = '\r'; + cr = '\015'; SERIAL_WRITE (mips_desc, &cr, 1); } mips_receive_packet (buff, 1, 3); @@ -1339,6 +1346,12 @@ mips_xfer_memory (memaddr, myaddr, len, write, ignore) status = mips_store_word (addr, extract_unsigned_integer (&buffer[i*4], 4), NULL); + /* Report each kilobyte (we download 32-bit words at a time) */ + if (i % 256 == 255) + { + printf_unfiltered ("*"); + fflush (stdout); + } if (status) { errno = status; @@ -1346,6 +1359,8 @@ mips_xfer_memory (memaddr, myaddr, len, write, ignore) } /* FIXME: Do we want a QUIT here? */ } + if (count >= 256) + printf_unfiltered ("\n"); } else { |