Stop remote_read_bytes from handling partial reads itself.
authorPedro Alves <palves@redhat.com>
Tue, 25 Jan 2011 11:54:00 +0000 (11:54 +0000)
committerPedro Alves <palves@redhat.com>
Tue, 25 Jan 2011 11:54:00 +0000 (11:54 +0000)
commitf7605bc29f0c6454f73819850dd114cdba30d9fb
treea4d2bc38047e1a5117ae9dbf59b2bb5b843dbed7
parentd08aafeffe7dcdff4c4f876c6b8f730ce0270847
Stop remote_read_bytes from handling partial reads itself.

* remote-fileio.c: Include target.h.
(remote_fileio_write_bytes): Delete.
(remote_fileio_func_open, remote_fileio_func_write)
(remote_fileio_func_rename, remote_fileio_func_unlink): Use
target_read_memory.
(remote_fileio_func_stat): Use target_read_memory and
target_write_memory.
(remote_fileio_func_gettimeofday): Use target_write_memory.
(remote_fileio_func_system): Use target_read_memory.
* remote.c (remote_write_bytes): Make it static.
(remote_read_bytes): Don't handle partial reads here.
* remote.h (remote_read_bytes): Delete declaration.
gdb/ChangeLog
gdb/remote-fileio.c
gdb/remote.c
gdb/remote.h