diff options
author | Jason Molenda <jmolenda@apple.com> | 1999-07-12 11:15:22 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 1999-07-12 11:15:22 +0000 |
commit | 43e526b9b4c9868d3cd90772a54f767f8d45cadd (patch) | |
tree | 4d68a4a2d3a6c7e4f6237bc04015fc182a8ced0c /gdb/remote.c | |
parent | edac9bffc154855d959fcbc32e2fe0b073a9ec71 (diff) | |
download | gdb-43e526b9b4c9868d3cd90772a54f767f8d45cadd.zip gdb-43e526b9b4c9868d3cd90772a54f767f8d45cadd.tar.gz gdb-43e526b9b4c9868d3cd90772a54f767f8d45cadd.tar.bz2 |
import gdb-1999-07-12 snapshot
Diffstat (limited to 'gdb/remote.c')
-rw-r--r-- | gdb/remote.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index c431670..00b9661 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -3294,8 +3294,7 @@ print_packet (buf) char *buf; { puts_filtered ("\""); - while (*buf) - gdb_printchar (*buf++, gdb_stdout, '"'); + fputstr_filtered (buf, '"', gdb_stdout); puts_filtered ("\""); } @@ -3352,7 +3351,9 @@ putpkt_binary (buf, cnt) if (remote_debug) { *p = '\0'; - fprintf_unfiltered (gdb_stdlog, "Sending packet: %s...", buf2); + fprintf_unfiltered (gdb_stdlog, "Sending packet: "); + fputstrn_unfiltered (buf2, p - buf2, 0, gdb_stdlog); + fprintf_unfiltered (gdb_stdlog, "...", buf2); gdb_flush (gdb_stdlog); } if (SERIAL_WRITE (remote_desc, buf2, p - buf2)) @@ -3618,7 +3619,11 @@ getpkt (buf, forever) if (val == 1) { if (remote_debug) - fprintf_unfiltered (gdb_stdlog, "Packet received: %s\n", buf); + { + fprintf_unfiltered (gdb_stdlog, "Packet received: "); + fputstr_unfiltered (buf, 0, gdb_stdlog); + fprintf_unfiltered (gdb_stdlog, "\n"); + } SERIAL_WRITE (remote_desc, "+", 1); return; } |