eliminate target_ops->deprecated_xfer_memory
authorPedro Alves <palves@redhat.com>
Wed, 26 Feb 2014 14:36:04 +0000 (14:36 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 26 Feb 2014 14:39:23 +0000 (14:39 +0000)
commit7a44e40e8b7e2f91d66930cdf1fe5fed0ba9c584
tree2886f5b5bf6d9dee2c51f887df6ab645de7e6fb4
parentbd265cd0bde9e045ab5946532449430b66fe91ad
eliminate target_ops->deprecated_xfer_memory

As no target uses it anymore, it can finally go away.

After removing the deprecated_xfer_memory handling from
default_xfer_partial, we can delete the latter, because the only thing
it does is delegate to the target beneath unconditionally, which is
what the delegator installed by target-delegates.c will do for us if
no to_xfer_partial method is installed.

This was the last user of de_fault, so that goes away too.

Tested on x86_64 Fedora 17.

gdb/
2014-02-26  Pedro Alves  <palves@redhat.com>

* target.c (complete_target_initialization): Don't install
default_xfer_partial as to_xfer_partial hook.
(nomemory): Delete.
(update_current_target): Don't INHERIT nor de_fault
deprecated_xfer_memory.  Delete de_fault macro.
(default_xfer_partial, deprecated_debug_xfer_memory): Delete.
(setup_target_debug): Don't install a deprecated_xfer_memory hook.
* target.h (struct target_ops) <deprecated_xfer_memory>: Delete
field.
gdb/ChangeLog
gdb/target.c
gdb/target.h