From: Simon Marchi Date: Thu, 29 Oct 2015 17:41:13 +0000 (-0400) Subject: Change type of write_qxfer_response parameter X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f98cd059076c64cdb94b9743c544458b2b91716c;p=binutils-gdb.git 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 *. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 46e347daf0e..a0716426145 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2015-10-29 Simon Marchi + + * server.c (write_qxfer_response): Change type of data to + gdb_byte *. + 2015-10-29 Pedro Alves * mem-break.c (Z_packet_to_bkpt_type): Add cast. diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index 3232da18253..b2f0f6789aa 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;