mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 01:50:48 +00:00
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".
This commit is contained in:
22
gdb/target.h
22
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?
|
||||
|
||||
Reference in New Issue
Block a user