diff options
author | Pedro Alves <palves@redhat.com> | 2011-01-25 11:54:00 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2011-01-25 11:54:00 +0000 |
commit | f7605bc29f0c6454f73819850dd114cdba30d9fb (patch) | |
tree | a4d2bc38047e1a5117ae9dbf59b2bb5b843dbed7 /gdb/remote.h | |
parent | d08aafeffe7dcdff4c4f876c6b8f730ce0270847 (diff) | |
download | gdb-f7605bc29f0c6454f73819850dd114cdba30d9fb.zip gdb-f7605bc29f0c6454f73819850dd114cdba30d9fb.tar.gz gdb-f7605bc29f0c6454f73819850dd114cdba30d9fb.tar.bz2 |
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.
Diffstat (limited to 'gdb/remote.h')
-rw-r--r-- | gdb/remote.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/gdb/remote.h b/gdb/remote.h index 5327947..25f5ccc 100644 --- a/gdb/remote.h +++ b/gdb/remote.h @@ -42,11 +42,6 @@ extern char *unpack_varlen_hex (char *buff, ULONGEST *result); extern void async_remote_interrupt_twice (void *arg); -extern int remote_write_bytes (CORE_ADDR memaddr, const gdb_byte *myaddr, - int len); - -extern int remote_read_bytes (CORE_ADDR memaddr, gdb_byte *myaddr, int len); - void register_remote_g_packet_guess (struct gdbarch *gdbarch, int bytes, const struct target_desc *tdesc); void register_remote_support_xml (const char *); |