remote.c: don't install a deprecated_xfer_memory hook.
authorPedro Alves <palves@redhat.com>
Fri, 23 Aug 2013 13:12:17 +0000 (13:12 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 23 Aug 2013 13:12:17 +0000 (13:12 +0000)
commit00d8452480aad3dbab5d660b242cffb27d45ce8f
treecd5faf1c2b7ef00453ef4cd4decfa7342572aea0
parent9aff4b7ac12edba0c170c2a55763c3973b708749
remote.c: don't install a deprecated_xfer_memory hook.

There's no need for deprecated_xfer_memory nowadays.  Memory access
goes through target_xfer_partial/TARGET_OBJECT_MEMORY, etc.  In fact,
the remote target already handles that, and is deferring to the same
helpers the deprecated_xfer_memory hook is.  Basically, only a few
adjustments to make these helper routines's interfaces closer to
target_xfer_partial's were necessary.

Tested on x86_64 Fedora 17 w/ gdbserver.

gdb/
2013-08-23  Pedro Alves  <palves@redhat.com>

* remote.c (remote_write_bytes_aux, remote_write_bytes)
(remote_read_bytes): Change return type to LONGEST, and adjust to
return a target_xfer_error on error.
(remote_xfer_memory): Delete.
(remote_flash_write): Change type of 'ret' local to LONGEST.
(remote_xfer_partial, remote_xfer_partial): Adjust.
(init_remote_ops): Don't install a deprecated_xfer_memory hook.
gdb/ChangeLog
gdb/remote.c