diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-06-12 14:38:32 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-06-12 14:38:32 +0000 |
commit | 0e7f50da78982a93a4603cddbb2e0c07019e9c1a (patch) | |
tree | a928a4426efc054ce836def5815ef3d3f8783fc1 /gdb/gdbserver/target.h | |
parent | 23d964e7b6625bec3822bcb9613f65362b9b3026 (diff) | |
download | gdb-0e7f50da78982a93a4603cddbb2e0c07019e9c1a.zip gdb-0e7f50da78982a93a4603cddbb2e0c07019e9c1a.tar.gz gdb-0e7f50da78982a93a4603cddbb2e0c07019e9c1a.tar.bz2 |
ChangeLog:
* remote.c (remote_write_qxfer): New function.
(remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
(remote_read_qxfer): Do not cache empty objects.
(_initialize_remote): Add PACKET_qXfer_spu_read and
PACKET_qXfer_spu_write.
doc/ChangeLog:
* gdb.texinfo (General Query Packets): Document qXfer:spu:read
and qXfer:spu:write packets and mention them under qSupported.
gdbserver/ChangeLog:
* remote-utils.c (decode_xfer_write): New function.
* server.h (decode_xfer_write): Add prototype.
* server.c (handle_query): Add PACKET_LEN argument. Support
qXfer:spu:read and qXfer:spu:write packets.
(main): Pass packet_len to handle_query.
* spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
* target.h (target_ops): Add qxfer_spu.
Diffstat (limited to 'gdb/gdbserver/target.h')
-rw-r--r-- | gdb/gdbserver/target.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/gdbserver/target.h b/gdb/gdbserver/target.h index 66511c9..14d0e95 100644 --- a/gdb/gdbserver/target.h +++ b/gdb/gdbserver/target.h @@ -185,6 +185,10 @@ struct target_ops /* Return a string identifying the current architecture, or NULL if this operation is not supported. */ const char *(*arch_string) (void); + + /* Read/Write from/to spufs using qXfer packets. */ + int (*qxfer_spu) (const char *annex, unsigned char *readbuf, + unsigned const char *writebuf, CORE_ADDR offset, int len); }; extern struct target_ops *the_target; |