diff options
author | Pedro Alves <pedro@codesourcery.com> | 2011-01-25 11:53:59 +0000 |
---|---|---|
committer | Pedro Alves <pedro@codesourcery.com> | 2011-01-25 11:53:59 +0000 |
commit | 25ff0cbe0ffc4f5161388edf29a3393bd36337bd (patch) | |
tree | 968d5a55bd8c549b14ee2a1aa4cf096cfe92b6a3 /gdb/remote.h | |
parent | 06d60dbb3ec33298888c8107205064ef833d84a0 (diff) | |
download | gdb-25ff0cbe0ffc4f5161388edf29a3393bd36337bd.tar.gz |
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 53279474960..25f5ccc26c2 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 *); |