From 0e7f50da78982a93a4603cddbb2e0c07019e9c1a Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Tue, 12 Jun 2007 14:38:32 +0000 Subject: 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. --- gdb/gdbserver/target.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdb/gdbserver/target.h') 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; -- cgit v1.1