* remote.c (escape_buffer): New.
authorPedro Alves <palves@redhat.com>
Wed, 19 Nov 2008 14:45:09 +0000 (14:45 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 19 Nov 2008 14:45:09 +0000 (14:45 +0000)
commit6e5abd65ae1e883e278d29249784d3bb225c6912
tree3d2ab38cbce3d9f84b33a01a4811bf9b0e205449
parentc91e322a293ce2af9687b5926bb45b1de83e4b13
* remote.c (escape_buffer): New.
(putpkt_binary, read_frame, getpkt_or_notif_sane_1): Use it.  Make
sure debug output printing a packet buffer goes through a single
fprintf_unfiltered call.
* utils.c (vfprintf_unfiltered): If outputting timestamps, end
output with a newline if it wasn't going to already.
gdb/ChangeLog
gdb/remote.c
gdb/utils.c