aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2014-02-26 14:36:04 +0000
committerPedro Alves <palves@redhat.com>2014-02-26 14:39:23 +0000
commit7a44e40e8b7e2f91d66930cdf1fe5fed0ba9c584 (patch)
tree2886f5b5bf6d9dee2c51f887df6ab645de7e6fb4 /gdb/target.h
parentbd265cd0bde9e045ab5946532449430b66fe91ad (diff)
downloadgdb-7a44e40e8b7e2f91d66930cdf1fe5fed0ba9c584.zip
gdb-7a44e40e8b7e2f91d66930cdf1fe5fed0ba9c584.tar.gz
gdb-7a44e40e8b7e2f91d66930cdf1fe5fed0ba9c584.tar.bz2
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.
Diffstat (limited to 'gdb/target.h')
-rw-r--r--gdb/target.h26
1 files changed, 0 insertions, 26 deletions
diff --git a/gdb/target.h b/gdb/target.h
index 4b735dd..ab797b2 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -421,32 +421,6 @@ struct target_ops
void (*to_prepare_to_store) (struct target_ops *, struct regcache *)
TARGET_DEFAULT_NORETURN (noprocess ());
- /* Transfer LEN bytes of memory between GDB address MYADDR and
- target address MEMADDR. If WRITE, transfer them to the target, else
- transfer them from the target. TARGET is the target from which we
- get this function.
-
- Return value, N, is one of the following:
-
- 0 means that we can't handle this. If errno has been set, it is the
- error which prevented us from doing it (FIXME: What about bfd_error?).
-
- positive (call it N) means that we have transferred N bytes
- starting at MEMADDR. We might be able to handle more bytes
- beyond this length, but no promises.
-
- negative (call its absolute value N) means that we cannot
- transfer right at MEMADDR, but we could transfer at least
- something at MEMADDR + N.
-
- NOTE: cagney/2004-10-01: This has been entirely superseeded by
- to_xfer_partial and inferior inheritance. */
-
- int (*deprecated_xfer_memory) (CORE_ADDR memaddr, gdb_byte *myaddr,
- int len, int write,
- struct mem_attrib *attrib,
- struct target_ops *target);
-
void (*to_files_info) (struct target_ops *)
TARGET_DEFAULT_IGNORE ();
int (*to_insert_breakpoint) (struct target_ops *, struct gdbarch *,