This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/gdb remote.c doc/gdb.texinfo gdbserver/Mak ...
- From: drow at sourceware dot org
- To: gdb-cvs at sources dot redhat dot com
- Date: 23 May 2006 21:44:21 -0000
- Subject: src/gdb remote.c doc/gdb.texinfo gdbserver/Mak ...
CVSROOT: /cvs/src
Module name: src
Branch: gdb-csl-symbian-20060226-branch
Changes by: drow@sourceware.org 2006-05-23 21:44:20
Modified files:
gdb : remote.c
gdb/doc : gdb.texinfo
gdb/gdbserver : Makefile.in remote-utils.c server.c server.h
Added files:
gdb/gdbserver : hostio.c
Log message:
* gdb/remote.c: Include "gdb/fileio.h".
(PACKET_Fopen, PACKET_Fread, PACKET_Fwrite, PACKET_Fclose): New
enums.
(remote_escape_output, remote_unescape_input): New functions.
(remote_write_bytes): Use remote_escape_output.
(readchar): Do not mask off the high bit.
(read_frame): Print binary packets correctly.
(getpkt_sane): Likewise. Return the number of bytes read
or -1.
(remote_buffer_add_string, remote_buffer_add_bytes)
(remote_buffer_add_int, remote_hostio_parse_result)
(remote_hostio_send_command, remote_hostio_open)
(remote_hostio_write, remote_hostio_read)
(remote_hostio_close, remote_fileio_errno_to_host)
(remote_hostio_error, fclose_cleanup, remote_download_command)
(remote_upload_command): New functions.
(_initialize_remote): Register new packets and remote-upload
and remote-download commands.
* gdb/doc/gdb.texinfo (File Transfer): New section.
(Remote Configuration): Document Host I/O packet commands.
(Host I/O Packets): New section.
(Packets): Mention overloading of F prefix.
* gdb/gdbserver/Makefile.in (OBS): Add hostio.o.
(hostio.o): New rule.
* gdb/gdbserver/hostio.c: New file.
* gdb/gdbserver/remote-utils.c (putpkt_binary): New function,
broken out from putpkt.
(putpkt): Use it.
(readchar): Do not mask the high bits. Correct the buffer
type.
* gdb/gdbserver/server.c (main): Leave space for a trailing
zero in the packet buffer. Save the length of the
received packet. Handle Host I/O requests. Optionally call
putpkt_binary.
* gdb/gdbserver/server.h (handle_f_hostio, putpkt_binary): New
prototypes.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/remote.c.diff?cvsroot=src&only_with_tag=gdb-csl-symbian-20060226-branch&r1=1.202.2.3.2.7&r2=1.202.2.3.2.8
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/doc/gdb.texinfo.diff?cvsroot=src&only_with_tag=gdb-csl-symbian-20060226-branch&r1=1.314.2.1.2.4&r2=1.314.2.1.2.5
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/gdbserver/hostio.c.diff?cvsroot=src&only_with_tag=gdb-csl-symbian-20060226-branch&r1=NONE&r2=1.1.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/gdbserver/Makefile.in.diff?cvsroot=src&only_with_tag=gdb-csl-symbian-20060226-branch&r1=1.33.2.2&r2=1.33.2.2.2.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/gdbserver/remote-utils.c.diff?cvsroot=src&only_with_tag=gdb-csl-symbian-20060226-branch&r1=1.27.4.1&r2=1.27.4.2
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/gdbserver/server.c.diff?cvsroot=src&only_with_tag=gdb-csl-symbian-20060226-branch&r1=1.32.2.1.2.3&r2=1.32.2.1.2.4
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/gdbserver/server.h.diff?cvsroot=src&only_with_tag=gdb-csl-symbian-20060226-branch&r1=1.22&r2=1.22.8.1