aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2015-10-29 13:41:13 -0400
committerSimon Marchi <simon.marchi@ericsson.com>2015-10-29 13:43:01 -0400
commitf98cd059076c64cdb94b9743c544458b2b91716c (patch)
treef8f1e13a880cf4c8fbdb0e666e5c2e4b812a9fc7
parentb40699581c0d390e653f36a5bba99f13cf9763a0 (diff)
downloadgdb-f98cd059076c64cdb94b9743c544458b2b91716c.zip
gdb-f98cd059076c64cdb94b9743c544458b2b91716c.tar.gz
gdb-f98cd059076c64cdb94b9743c544458b2b91716c.tar.bz2
Change type of write_qxfer_response parameter
Fixes: /home/simark/src/binutils-gdb/gdb/gdbserver/server.c: In function ‘int write_qxfer_response(char*, const void*, int, int)’: /home/simark/src/binutils-gdb/gdb/gdbserver/server.c:398:32: error: invalid conversion from ‘const void*’ to ‘const gdb_byte* {aka const unsigned char*}’ [-fpermissive] &out_len, PBUFSIZ - 2) + 1; ^ gdb/gdbserver/ChangeLog: * server.c (write_qxfer_response): Change type of data to gdb_byte *.
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/server.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 46e347d..a071642 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,8 @@
+2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
+
+ * server.c (write_qxfer_response): Change type of data to
+ gdb_byte *.
+
2015-10-29 Pedro Alves <palves@redhat.com>
* mem-break.c (Z_packet_to_bkpt_type): Add cast.
diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c
index 3232da1..b2f0f67 100644
--- a/gdb/gdbserver/server.c
+++ b/gdb/gdbserver/server.c
@@ -385,7 +385,7 @@ decode_xfer (char *buf, char **object, char **rw, char **annex, char **offset)
to as much of DATA/LEN as we could fit. IS_MORE controls
the first character of the response. */
static int
-write_qxfer_response (char *buf, const void *data, int len, int is_more)
+write_qxfer_response (char *buf, const gdb_byte *data, int len, int is_more)
{
int out_len;