summaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorJason Molenda <jsm@bugshack.cygnus.com>1999-07-12 11:15:22 +0000
committerJason Molenda <jsm@bugshack.cygnus.com>1999-07-12 11:15:22 +0000
commitae19d289cbaea5e67b975ca6eeeff1406ae879eb (patch)
tree49b0ffd02b53a906affc3d16883a8651067bc143 /gdb/remote.c
parent0631650d4fc5394420fe2e94bdd14691b4d40963 (diff)
downloadgdb-ae19d289cbaea5e67b975ca6eeeff1406ae879eb.tar.gz
import gdb-1999-07-12 snapshot
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index c431670b66b..00b9661dc82 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;
}