* remote-utils.c (remote_escape_output, remote_unescape_input): New.
authorDaniel Jacobowitz <drow@false.org>
Thu, 22 Jun 2006 15:20:47 +0000 (15:20 +0000)
committerDaniel Jacobowitz <drow@false.org>
Thu, 22 Jun 2006 15:20:47 +0000 (15:20 +0000)
commit01f9e8fab8e45337f0451f7edbd03cfe0381999a
tree0c0c608e4d60bbd1e26154782561d50cc70e1014
parent3994f87e9911d0ae23164d55e19dcc009cb51e1b
* remote-utils.c (remote_escape_output, remote_unescape_input): New.
(putpkt_binary): Renamed from putpkt and adjusted for binary
data.
(putpkt): New wrapper for putpkt_binary.
(readchar): Don't mask off the high bit.
(decode_X_packet): New function.
* server.c (main): Call putpkt_binary if a handler sets the packet
length.  Save the length of the incoming packet.  Handle 'X'.
* server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
gdb/gdbserver/ChangeLog
gdb/gdbserver/remote-utils.c
gdb/gdbserver/server.c
gdb/gdbserver/server.h