diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-10-31 15:25:34 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-10-31 15:25:34 +0000 |
commit | 4b8a223fcb9a9d720b65cb6bc36ff82982e0bf4d (patch) | |
tree | c9f384d5b8eac2595a34530eb79a1def820cc13d /gdb/target.h | |
parent | e7e6980b7e31bda032711c6a9ff5286b82bc72c3 (diff) | |
download | gdb-4b8a223fcb9a9d720b65cb6bc36ff82982e0bf4d.zip gdb-4b8a223fcb9a9d720b65cb6bc36ff82982e0bf4d.tar.gz gdb-4b8a223fcb9a9d720b65cb6bc36ff82982e0bf4d.tar.bz2 |
2003-10-31 Andrew Cagney <cagney@redhat.com>
* target.h (struct target_ops): Replace "to_read_partial" and
"to_write_partial" with "to_xfer_partial". Update comments.
* target.c (debug_to_write_partial): Delete function.
(debug_to_xfer_partial): Replace debug_to_read_partial.
(add_target, update_current_target, setup_target_debug): Set
"to_xfer_partial" instead of "to_read_partial" and
"to_write_partial".
(default_xfer_partial): Replace "default_write_partial".
(default_read_partial): Delete.
(target_read_partial, target_write_partial): Call
"to_xfer_partial".
* remote.c (init_remote_ops): Set "to_xfer_partial".
(init_remote_async_ops): Ditto.
(remote_xfer_partial): Replace "remote_read_partial".
Diffstat (limited to 'gdb/target.h')
-rw-r--r-- | gdb/target.h | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/gdb/target.h b/gdb/target.h index 2fb3381..0746c1d 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -211,10 +211,10 @@ enum target_signal target_signal_from_name (char *); to locally take responsibility for something it didn't have to worry about. - NOTE: cagney/2003-10-17: For backward compatibility with the - "target_query" method that this replaced, when BUF, OFFSET and LEN - are NULL/zero, return the "minimum" buffer size. See "remote.c" - for further information. */ + NOTE: cagney/2003-10-17: With a TARGET_OBJECT_KOD object, for + backward compatibility with the "target_query" method that this + replaced, when OFFSET and LEN are both zero, return the "minimum" + buffer size. See "remote.c" for further information. */ enum target_object { @@ -404,15 +404,13 @@ struct target_ops struct objfile *objfile, CORE_ADDR offset); - /* See above. */ - LONGEST (*to_read_partial) (struct target_ops *ops, + /* Perform partial transfers on OBJECT. See target_read_partial + and target_write_partial for details of each variant. One, and + only one, of readbuf or writebuf must be non-NULL. */ + LONGEST (*to_xfer_partial) (struct target_ops *ops, enum target_object object, - const char *annex, void *buf, - ULONGEST offset, LONGEST len); - LONGEST (*to_write_partial) (struct target_ops *ops, - enum target_object object, - const char *annex, const void *buf, - ULONGEST offset, LONGEST len); + const char *annex, const void *writebuf, + void *readbuf, ULONGEST offset, LONGEST len); int to_magic; /* Need sub-structure for target machine related rather than comm related? |